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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (604) hide show
  1. package/dist/calcite/2AP6YLXQ.js +4 -0
  2. package/dist/calcite/2M5DP5VS.js +4 -0
  3. package/dist/calcite/2MTW4RBX.js +4 -0
  4. package/dist/calcite/2TEERBTI.js +4 -0
  5. package/dist/calcite/{4TWMM7Z6.js → 3BOJE7XV.js} +4 -6
  6. package/dist/calcite/3EQ32UON.js +4 -0
  7. package/dist/calcite/3LOOBSHJ.js +4 -0
  8. package/dist/calcite/3LXK5OEB.js +5 -0
  9. package/dist/calcite/{4OYBMKUB.js → 3NJWAHVN.js} +4 -6
  10. package/dist/calcite/{2JRSKQML.js → 3TGA6ACB.js} +4 -6
  11. package/dist/calcite/3TJZ3VMN.js +4 -0
  12. package/dist/calcite/3U4EUW42.js +4 -0
  13. package/dist/calcite/45R3L3J2.js +4 -0
  14. package/dist/calcite/45YXH4D4.js +4 -0
  15. package/dist/calcite/{ZWGCNMZF.js → 46ICVIVW.js} +4 -6
  16. package/dist/calcite/{UZAQE6XP.js → 47FXQ37G.js} +4 -6
  17. package/dist/calcite/{JFBHBHJE.js → 4GUL5QXY.js} +4 -6
  18. package/dist/calcite/{AUEN6VFD.js → 4PKLCHA5.js} +4 -6
  19. package/dist/calcite/4QSXDJ3I.js +4 -0
  20. package/dist/calcite/{BGQR3WLU.js → 4TLHW2N3.js} +4 -6
  21. package/dist/calcite/{XFHDAVBK.js → 54O5ASY6.js} +4 -6
  22. package/dist/calcite/{FSQJ72IH.js → 57MQUGHN.js} +4 -6
  23. package/dist/calcite/5FYVM4AX.js +4 -0
  24. package/dist/calcite/5KCZZJGZ.js +4 -0
  25. package/dist/calcite/5OWSKBSV.js +4 -0
  26. package/dist/calcite/{3SE2Z2VK.js → 5X666Z33.js} +5 -7
  27. package/dist/calcite/5YBMD5MK.js +4 -0
  28. package/dist/calcite/5ZA467A4.js +4 -0
  29. package/dist/calcite/62M3DNDT.js +4 -0
  30. package/dist/calcite/{DF7SVAJW.js → 6AN3H3R6.js} +4 -6
  31. package/dist/calcite/{W4D5O4P2.js → 6GK2OTHZ.js} +3 -5
  32. package/dist/calcite/6HEZO2KI.js +4 -0
  33. package/dist/calcite/{BZOCG27F.js → 6KFLYQ3F.js} +4 -6
  34. package/dist/calcite/6OPQR7PL.js +4 -0
  35. package/dist/calcite/{3QV5TGZD.js → 6ZNTK2O2.js} +4 -6
  36. package/dist/calcite/7C3Y7SM7.js +4 -0
  37. package/dist/calcite/{L4IJ6KQT.js → 7C4KHH7U.js} +4 -6
  38. package/dist/calcite/{AASA6526.js → 7COKCZTB.js} +4 -6
  39. package/dist/calcite/{KA53KK35.js → 7CQS22FK.js} +3 -5
  40. package/dist/calcite/{2YSVELPG.js → 7NLQECEF.js} +3 -5
  41. package/dist/calcite/7SVWZ5TZ.js +4 -0
  42. package/dist/calcite/{I2N2BRJR.js → 7URHQAUN.js} +3 -5
  43. package/dist/calcite/ACFEDJWV.js +4 -0
  44. package/dist/calcite/{MNBTRJLH.js → AFJ2UDEO.js} +4 -6
  45. package/dist/calcite/{5MEU7SU4.js → AQANFQEK.js} +4 -6
  46. package/dist/calcite/{GU2SFYM4.js → AZPKU6ON.js} +4 -6
  47. package/dist/calcite/{SZP7YBVQ.js → B2GDIYRL.js} +4 -6
  48. package/dist/calcite/{26ES3CRO.js → BETB6YPW.js} +4 -6
  49. package/dist/calcite/BJQEZXFS.js +4 -0
  50. package/dist/calcite/BKB5MWFT.js +4 -0
  51. package/dist/calcite/BYRVP24K.js +22 -0
  52. package/dist/calcite/{UPY24BFQ.js → C3XHCMBP.js} +3 -5
  53. package/dist/calcite/C52QQAFR.js +4 -0
  54. package/dist/calcite/CE3TSSYN.js +4 -0
  55. package/dist/calcite/CHVHH4L7.js +4 -0
  56. package/dist/calcite/CNTBFQBL.js +4 -0
  57. package/dist/calcite/CPH3OCUO.js +4 -0
  58. package/dist/calcite/CWBUDJKG.js +4 -0
  59. package/dist/calcite/CWJKJUCU.js +4 -0
  60. package/dist/calcite/{XOA2TSHC.js → CYKAIRKP.js} +4 -6
  61. package/dist/calcite/D7X7U5LL.js +6 -0
  62. package/dist/calcite/DH73QGXJ.js +4 -0
  63. package/dist/calcite/{EWQKTTIO.js → DJU4LSIS.js} +4 -6
  64. package/dist/calcite/DNKJTXCY.js +4 -0
  65. package/dist/calcite/DO7AVVBP.js +4 -0
  66. package/dist/calcite/DVFRWPOF.js +4 -0
  67. package/dist/calcite/{3KND2KKH.js → DX5LTGNX.js} +4 -6
  68. package/dist/calcite/DYHX5C6J.js +4 -0
  69. package/dist/calcite/E6LODM5C.js +4 -0
  70. package/dist/calcite/{6LWRLBVD.js → EB432BS5.js} +4 -6
  71. package/dist/calcite/{ZQSF4K7D.js → EFUCITW3.js} +4 -6
  72. package/dist/calcite/ETK7F3KI.js +4 -0
  73. package/dist/calcite/{UCGUHOUO.js → EWAQVZXY.js} +4 -6
  74. package/dist/calcite/{O7B4THLC.js → EWBW2GOP.js} +4 -6
  75. package/dist/calcite/{GIRDDKPZ.js → F52GIETG.js} +4 -6
  76. package/dist/calcite/F6CK7P7G.js +4 -0
  77. package/dist/calcite/FA3DOLYY.js +4 -0
  78. package/dist/calcite/FBUTQVLY.js +4 -0
  79. package/dist/calcite/FF2SNYC6.js +4 -0
  80. package/dist/calcite/FGCSO5KT.js +4 -0
  81. package/dist/calcite/FJLPIBCZ.js +4 -0
  82. package/dist/calcite/{DO5AYUNU.js → FL63KFPW.js} +4 -6
  83. package/dist/calcite/{KHDHQPVO.js → FMALNIBL.js} +4 -6
  84. package/dist/calcite/{ARFAFPKS.js → FNTHRMT3.js} +4 -6
  85. package/dist/calcite/{KWWKG3YN.js → FOFSX3FY.js} +4 -6
  86. package/dist/calcite/FSQRHBBB.js +4 -0
  87. package/dist/calcite/FYCT4FES.js +4 -0
  88. package/dist/calcite/{G4Q2QH6B.js → FYUK2GME.js} +4 -6
  89. package/dist/calcite/G4CQ5QPF.js +4 -0
  90. package/dist/calcite/G5AYPPXM.js +4 -0
  91. package/dist/calcite/{EUXG27WD.js → GGNAK2N6.js} +4 -6
  92. package/dist/calcite/{57L4ZYLO.js → GKVYSG3G.js} +4 -6
  93. package/dist/calcite/{W3WKINVO.js → GR3JRBW6.js} +4 -6
  94. package/dist/calcite/GS4K4IEJ.js +4 -0
  95. package/dist/calcite/{EBQYJBDQ.js → GZBMMB2V.js} +4 -6
  96. package/dist/calcite/HD2NABQD.js +4 -0
  97. package/dist/calcite/{P64WY2HI.js → HEVM6SRJ.js} +4 -6
  98. package/dist/calcite/HMZA4X6S.js +4 -0
  99. package/dist/calcite/HPFCIR5F.js +4 -0
  100. package/dist/calcite/HRDRO2MA.js +4 -0
  101. package/dist/calcite/I54F3V4F.js +4 -0
  102. package/dist/calcite/{BNYX7IBO.js → IBLJGOPM.js} +4 -6
  103. package/dist/calcite/IGQGPBGN.js +4 -0
  104. package/dist/calcite/{QLJX2F4K.js → IITTEDPS.js} +4 -6
  105. package/dist/calcite/IJOUQRZG.js +4 -0
  106. package/dist/calcite/IKHZ7MAG.js +4 -0
  107. package/dist/calcite/{SYOTV4D4.js → J3ZEXA7Z.js} +4 -6
  108. package/dist/calcite/{OMBBOPRI.js → J6ES4ZTD.js} +4 -6
  109. package/dist/calcite/J6V2OKQD.js +4 -0
  110. package/dist/calcite/JHWO2CVD.js +4 -0
  111. package/dist/calcite/JUW7VCPP.js +4 -0
  112. package/dist/calcite/KAZVOPHR.js +4 -0
  113. package/dist/calcite/{3ATQZBKY.js → KCA2V6ZH.js} +4 -6
  114. package/dist/calcite/{QNGBOTGF.js → KJYAPBB2.js} +4 -6
  115. package/dist/calcite/KLG62CS4.js +4 -0
  116. package/dist/calcite/{SFWNFANJ.js → KOPH76Z4.js} +4 -6
  117. package/dist/calcite/KP4G4VQ3.js +4 -0
  118. package/dist/calcite/{ELXZUEDC.js → KPJGFWME.js} +4 -6
  119. package/dist/calcite/KPP5CUG6.js +4 -0
  120. package/dist/calcite/{3RLXG3NR.js → KT3W2WN7.js} +4 -6
  121. package/dist/calcite/{AGLAEQKV.js → KW4WGJWX.js} +4 -6
  122. package/dist/calcite/{B77QRUX7.js → LAE3F72I.js} +4 -6
  123. package/dist/calcite/LDJND26G.js +4 -0
  124. package/dist/calcite/LWAXFXVK.js +4 -0
  125. package/dist/calcite/LWKIGIQ7.js +4 -0
  126. package/dist/calcite/M5RSVI77.js +4 -0
  127. package/dist/calcite/{4JU7BKXB.js → M6GGWFWP.js} +4 -6
  128. package/dist/calcite/{QBG5T6W3.js → MCYHITP5.js} +4 -6
  129. package/dist/calcite/{J7RY7DXT.js → MCZED6UJ.js} +3 -5
  130. package/dist/calcite/MD4KKJXR.js +4 -0
  131. package/dist/calcite/{G75XVKLZ.js → MFGDUWWU.js} +4 -6
  132. package/dist/calcite/MGC5QBVT.js +4 -0
  133. package/dist/calcite/MKMTLSBP.js +4 -0
  134. package/dist/calcite/{QFH3VN2R.js → MRRSD5GQ.js} +4 -6
  135. package/dist/calcite/{Y5IWWVKB.js → MUYFLMXN.js} +4 -6
  136. package/dist/calcite/{XR2WLB7D.js → MVBR6FNF.js} +3 -5
  137. package/dist/calcite/MYXXA6E5.js +4 -0
  138. package/dist/calcite/{AFH6KP7M.js → N2AFATQQ.js} +4 -6
  139. package/dist/calcite/N2Q46D75.js +4 -0
  140. package/dist/calcite/NBX4LUWL.js +4 -0
  141. package/dist/calcite/NLK3OCCK.js +4 -0
  142. package/dist/calcite/{3Z3RDAUW.js → NPTN6OGZ.js} +4 -6
  143. package/dist/calcite/{Z2ZTWA3F.js → NQPJICFQ.js} +3 -5
  144. package/dist/calcite/{FMI6FJW4.js → NWTXX6JY.js} +4 -6
  145. package/dist/calcite/{WIGL5RKK.js → O627WVJG.js} +4 -6
  146. package/dist/calcite/{CM4U5UKC.js → O6BU5DYY.js} +4 -6
  147. package/dist/calcite/OAD7JJOE.js +4 -0
  148. package/dist/calcite/{6FI3WN2Y.js → OEK7OZTX.js} +4 -6
  149. package/dist/calcite/OENBCW7D.js +4 -0
  150. package/dist/calcite/OLP7ABVK.js +4 -0
  151. package/dist/calcite/OOHSVUO2.js +4 -0
  152. package/dist/calcite/OOWC3DHW.js +4 -0
  153. package/dist/calcite/OREMH3DL.js +4 -0
  154. package/dist/calcite/OUKBJ6J3.js +4 -0
  155. package/dist/calcite/PA6PSCEP.js +4 -0
  156. package/dist/calcite/{KMLCSDZJ.js → PFRWMYU6.js} +4 -6
  157. package/dist/calcite/PPMXW2CH.js +4 -0
  158. package/dist/calcite/{3LYDW23E.js → PU7HI4RM.js} +4 -6
  159. package/dist/calcite/{6YQ42X6L.js → PV7FS57L.js} +4 -6
  160. package/dist/calcite/PYT6F7XN.js +4 -0
  161. package/dist/calcite/QGSMNFLV.js +4 -0
  162. package/dist/calcite/{N7NWH5SX.js → QLL7IT53.js} +3 -5
  163. package/dist/calcite/{CTQ5YHOP.js → QV6PXGLB.js} +4 -6
  164. package/dist/calcite/{ESS6BUTG.js → QZ4S4NPD.js} +4 -6
  165. package/dist/calcite/{VFBPWVKE.js → R5GIKUFX.js} +4 -6
  166. package/dist/calcite/{XEW3B3B5.js → RD2YKJMP.js} +4 -6
  167. package/dist/calcite/{6EFD6XES.js → RI6ANEBM.js} +4 -6
  168. package/dist/calcite/RIXZG4AD.js +4 -0
  169. package/dist/calcite/RIYYUHQ7.js +4 -0
  170. package/dist/calcite/RRNZ4FU5.js +4 -0
  171. package/dist/calcite/{S6AE7RHT.js → RRPMD5OW.js} +4 -6
  172. package/dist/calcite/RSI5VQHT.js +4 -0
  173. package/dist/calcite/RYQPXZK6.js +4 -0
  174. package/dist/calcite/S3TERCKZ.js +4 -0
  175. package/dist/calcite/{7NVGCG7Q.js → S6DJKPG5.js} +3 -5
  176. package/dist/calcite/{3JQJ24PZ.js → S6SBHJIV.js} +4 -6
  177. package/dist/calcite/SM6GCEH6.js +4 -0
  178. package/dist/calcite/STCRUA4G.js +4 -0
  179. package/dist/calcite/{G27BUJJG.js → SVTZCS25.js} +3 -5
  180. package/dist/calcite/T246IHBX.js +4 -0
  181. package/dist/calcite/T5I34CKY.js +4 -0
  182. package/dist/calcite/{2UYJUU43.js → TC73OO6B.js} +4 -6
  183. package/dist/calcite/{3PJ42556.js → TFRMRELY.js} +4 -6
  184. package/dist/calcite/TTARWRVZ.js +4 -0
  185. package/dist/calcite/TTPB5NUF.js +4 -0
  186. package/dist/calcite/{5LAQP62T.js → TV2JMAEX.js} +4 -6
  187. package/dist/calcite/{PB4E6L52.js → U3A4ZFDA.js} +4 -6
  188. package/dist/calcite/{LQ5ITYNE.js → U3J436K5.js} +4 -6
  189. package/dist/calcite/{KBVTFWRR.js → U4KFLUXN.js} +4 -6
  190. package/dist/calcite/U5LWIQFM.js +4 -0
  191. package/dist/calcite/UAPP5RN3.js +4 -0
  192. package/dist/calcite/{MYJH43DB.js → UJ2DNCBI.js} +4 -6
  193. package/dist/calcite/UVQWXGAE.js +4 -0
  194. package/dist/calcite/{UFV4E5V5.js → V7P5NO5D.js} +4 -6
  195. package/dist/calcite/VGKMOO66.js +4 -0
  196. package/dist/calcite/VIVZTWDT.js +4 -0
  197. package/dist/calcite/VLUVMJLJ.js +4 -0
  198. package/dist/calcite/VPCQX3JS.js +4 -0
  199. package/dist/calcite/VQZMYHUR.js +4 -0
  200. package/dist/calcite/{JLIVSPKC.js → VRJOLF5U.js} +4 -6
  201. package/dist/calcite/VSACPVTO.js +4 -0
  202. package/dist/calcite/{VP4IW6MN.js → VSVGJIKO.js} +4 -6
  203. package/dist/calcite/{LR6EXHT2.js → W2IMTPXZ.js} +4 -6
  204. package/dist/calcite/{K3F2CI4A.js → W35EGCBV.js} +4 -6
  205. package/dist/calcite/{VM4VUQ54.js → W7BTFAAV.js} +4 -6
  206. package/dist/calcite/{RWW7CETF.js → WB2APVPE.js} +4 -6
  207. package/dist/calcite/WODNJF5Z.js +4 -0
  208. package/dist/calcite/{MRVEUN2O.js → X6EDNQN2.js} +4 -6
  209. package/dist/calcite/X7JJZRMI.js +4 -0
  210. package/dist/calcite/{OU4N4K2U.js → XDEHQTPQ.js} +4 -6
  211. package/dist/calcite/XFRASDZI.js +4 -0
  212. package/dist/calcite/XK4FISIX.js +4 -0
  213. package/dist/calcite/{XFKIMAJU.js → XL665FTR.js} +4 -6
  214. package/dist/calcite/XPMURWBT.js +4 -0
  215. package/dist/calcite/XUCTBMBM.js +4 -0
  216. package/dist/calcite/Y3MFFLOP.js +4 -0
  217. package/dist/calcite/YHIHWSGP.js +4 -0
  218. package/dist/calcite/YJWS4TZW.js +4 -0
  219. package/dist/calcite/YUYVD6B5.js +4 -0
  220. package/dist/calcite/YW6YWFXE.js +4 -0
  221. package/dist/calcite/YW7G4LA7.js +4 -0
  222. package/dist/calcite/YXYKAROM.js +4 -0
  223. package/dist/calcite/{O2KBYT33.js → Z7RQIFXO.js} +4 -6
  224. package/dist/calcite/ZYBMEVEB.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 +47 -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 +38 -42
  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.d.ts +2 -2
  384. package/dist/components/calcite-loader/customElement.js +3 -7
  385. package/dist/components/calcite-menu/customElement.js +12 -16
  386. package/dist/components/calcite-menu-item/customElement.js +12 -16
  387. package/dist/components/calcite-meter/customElement.js +26 -28
  388. package/dist/components/calcite-modal/customElement.d.ts +16 -3
  389. package/dist/components/calcite-modal/customElement.js +61 -61
  390. package/dist/components/calcite-navigation/customElement.js +17 -21
  391. package/dist/components/calcite-navigation-logo/customElement.js +12 -16
  392. package/dist/components/calcite-navigation-user/customElement.js +10 -14
  393. package/dist/components/calcite-notice/customElement.js +25 -28
  394. package/dist/components/calcite-option/customElement.js +3 -5
  395. package/dist/components/calcite-option-group/customElement.js +3 -5
  396. package/dist/components/calcite-pagination/customElement.js +15 -17
  397. package/dist/components/calcite-panel/customElement.js +45 -48
  398. package/dist/components/calcite-popover/customElement.d.ts +10 -7
  399. package/dist/components/calcite-popover/customElement.js +70 -79
  400. package/dist/components/calcite-progress/customElement.js +3 -5
  401. package/dist/components/calcite-radio-button/customElement.d.ts +4 -1
  402. package/dist/components/calcite-radio-button/customElement.js +17 -20
  403. package/dist/components/calcite-radio-button-group/customElement.d.ts +4 -1
  404. package/dist/components/calcite-radio-button-group/customElement.js +14 -17
  405. package/dist/components/calcite-rating/customElement.js +21 -23
  406. package/dist/components/calcite-scrim/customElement.js +3 -5
  407. package/dist/components/calcite-segmented-control/customElement.d.ts +4 -1
  408. package/dist/components/calcite-segmented-control/customElement.js +14 -17
  409. package/dist/components/calcite-segmented-control-item/customElement.js +28 -30
  410. package/dist/components/calcite-select/customElement.d.ts +4 -1
  411. package/dist/components/calcite-select/customElement.js +19 -22
  412. package/dist/components/calcite-sheet/customElement.d.ts +17 -3
  413. package/dist/components/calcite-sheet/customElement.js +59 -62
  414. package/dist/components/calcite-shell/customElement.js +3 -6
  415. package/dist/components/calcite-shell-center-row/customElement.js +3 -5
  416. package/dist/components/calcite-shell-panel/customElement.js +16 -20
  417. package/dist/components/calcite-slider/customElement.d.ts +4 -1
  418. package/dist/components/calcite-slider/customElement.js +18 -21
  419. package/dist/components/calcite-sort-handle/customElement.js +45 -35
  420. package/dist/components/calcite-sort-handle/index.d.ts +1 -1
  421. package/dist/components/calcite-sort-handle/index.js +1 -1
  422. package/dist/components/calcite-sortable-list/customElement.d.ts +4 -1
  423. package/dist/components/calcite-sortable-list/customElement.js +21 -16
  424. package/dist/components/calcite-split-button/customElement.js +13 -20
  425. package/dist/components/calcite-stack/customElement.js +4 -6
  426. package/dist/components/calcite-stepper/customElement.js +36 -39
  427. package/dist/components/calcite-stepper-item/customElement.js +23 -22
  428. package/dist/components/calcite-switch/customElement.js +10 -14
  429. package/dist/components/calcite-tab/customElement.js +3 -5
  430. package/dist/components/calcite-tab-nav/customElement.js +3 -5
  431. package/dist/components/calcite-tab-title/customElement.js +3 -5
  432. package/dist/components/calcite-table/customElement.js +44 -47
  433. package/dist/components/calcite-table-cell/customElement.js +22 -25
  434. package/dist/components/calcite-table-header/customElement.js +18 -21
  435. package/dist/components/calcite-table-row/customElement.js +6 -8
  436. package/dist/components/calcite-tabs/customElement.js +3 -5
  437. package/dist/components/calcite-text-area/customElement.d.ts +10 -3
  438. package/dist/components/calcite-text-area/customElement.js +30 -37
  439. package/dist/components/calcite-tile/customElement.js +16 -20
  440. package/dist/components/calcite-tile-group/customElement.js +3 -5
  441. package/dist/components/calcite-tile-select/customElement.js +17 -22
  442. package/dist/components/calcite-tile-select-group/customElement.js +3 -5
  443. package/dist/components/calcite-time-picker/customElement.d.ts +1 -0
  444. package/dist/components/calcite-time-picker/customElement.js +19 -23
  445. package/dist/components/calcite-tip/customElement.js +3 -5
  446. package/dist/components/calcite-tip-group/customElement.js +3 -5
  447. package/dist/components/calcite-tip-manager/customElement.js +3 -5
  448. package/dist/components/calcite-tooltip/customElement.js +41 -40
  449. package/dist/components/calcite-tree/customElement.js +3 -5
  450. package/dist/components/calcite-tree-item/customElement.js +16 -14
  451. package/dist/components/interfaces.d.ts +4 -0
  452. package/dist/controllers/useFocusTrap.d.ts +71 -0
  453. package/dist/custom-theme/block.d.ts +4 -5
  454. package/dist/custom-theme/calcite-shell-panel.d.ts +13 -0
  455. package/dist/custom-theme/date-picker.d.ts +28 -0
  456. package/dist/custom-theme/flow.d.ts +21 -0
  457. package/dist/custom-theme/graph.d.ts +4 -0
  458. package/dist/custom-theme/inline-editable.d.ts +10 -0
  459. package/dist/custom-theme/segmented-control.d.ts +7 -0
  460. package/dist/docs/api.json +1152 -170
  461. package/dist/docs/docs.json +1102 -135
  462. package/dist/docs/supported-browsers.json +1 -1
  463. package/dist/docs/vscode.css-custom-data.json +322 -14
  464. package/dist/docs/vscode.html-custom-data.json +110 -63
  465. package/dist/docs/web-types.json +671 -131
  466. package/dist/extras/vscode-data.json +110 -63
  467. package/dist/index.d.ts +25 -0
  468. package/dist/index.js +3 -5
  469. package/dist/loader.js +16 -17
  470. package/dist/types/lumina.d.ts +18 -6
  471. package/dist/types/preact.d.ts +19 -6
  472. package/dist/types/react.d.ts +180 -165
  473. package/dist/types/stencil.d.ts +18 -6
  474. package/dist/utils/component.d.ts +4 -0
  475. package/dist/utils/focusTrapComponent.d.ts +9 -0
  476. package/dist/utils/loadable.d.ts +26 -43
  477. package/dist/utils/openCloseComponent.d.ts +17 -18
  478. package/hydrate/index.d.ts +1 -0
  479. package/hydrate/index.js +1 -0
  480. package/hydrate/index.mjs +1 -0
  481. package/package.json +11 -12
  482. package/readme.md +5 -69
  483. package/dist/calcite/2AZY343I.js +0 -6
  484. package/dist/calcite/2CPZ6K5L.js +0 -6
  485. package/dist/calcite/2M35C4DF.js +0 -6
  486. package/dist/calcite/2VVNNU7Q.js +0 -6
  487. package/dist/calcite/2XACBT2N.js +0 -6
  488. package/dist/calcite/32P7BAVF.js +0 -6
  489. package/dist/calcite/3HC2LTHR.js +0 -6
  490. package/dist/calcite/455MOJA6.js +0 -6
  491. package/dist/calcite/4DVWRXRA.js +0 -6
  492. package/dist/calcite/4TF5UO7R.js +0 -6
  493. package/dist/calcite/572RARTY.js +0 -6
  494. package/dist/calcite/5I36CFLM.js +0 -6
  495. package/dist/calcite/5OJMVZTI.js +0 -6
  496. package/dist/calcite/5YZTHYBK.js +0 -6
  497. package/dist/calcite/6L5EBECQ.js +0 -6
  498. package/dist/calcite/73JK3C3F.js +0 -6
  499. package/dist/calcite/7557S5FH.js +0 -6
  500. package/dist/calcite/7FJOFJBG.js +0 -6
  501. package/dist/calcite/7KUN772K.js +0 -6
  502. package/dist/calcite/7LABYE24.js +0 -6
  503. package/dist/calcite/7NPWRWEK.js +0 -6
  504. package/dist/calcite/7PQTHMQD.js +0 -6
  505. package/dist/calcite/AEIISXUM.js +0 -6
  506. package/dist/calcite/AT2QAEKC.js +0 -6
  507. package/dist/calcite/BHLCJMB4.js +0 -6
  508. package/dist/calcite/BOMPAJVU.js +0 -6
  509. package/dist/calcite/BYURAML5.js +0 -6
  510. package/dist/calcite/CRBGPV2Y.js +0 -6
  511. package/dist/calcite/CY2QE4I2.js +0 -6
  512. package/dist/calcite/D26RI2OE.js +0 -6
  513. package/dist/calcite/DCAWR655.js +0 -6
  514. package/dist/calcite/DSYDJ57C.js +0 -6
  515. package/dist/calcite/E2PVAX5K.js +0 -6
  516. package/dist/calcite/EH7S4XKL.js +0 -6
  517. package/dist/calcite/FGCHRTFU.js +0 -6
  518. package/dist/calcite/FIJQNNLL.js +0 -6
  519. package/dist/calcite/FIVGOTUL.js +0 -6
  520. package/dist/calcite/FPZSDG22.js +0 -6
  521. package/dist/calcite/FQJWCM6B.js +0 -6
  522. package/dist/calcite/FRK56FXW.js +0 -6
  523. package/dist/calcite/FSORFWYW.js +0 -6
  524. package/dist/calcite/FWSMKN2T.js +0 -6
  525. package/dist/calcite/GGQW5H6B.js +0 -6
  526. package/dist/calcite/GHY53YEU.js +0 -6
  527. package/dist/calcite/GWGCBSIN.js +0 -6
  528. package/dist/calcite/HH5FL6GD.js +0 -6
  529. package/dist/calcite/HNNE5R46.js +0 -6
  530. package/dist/calcite/HRVN7KZA.js +0 -6
  531. package/dist/calcite/I3TEC7IS.js +0 -6
  532. package/dist/calcite/I5SQS3SN.js +0 -6
  533. package/dist/calcite/I74ZLJFG.js +0 -6
  534. package/dist/calcite/I7SBXLRM.js +0 -6
  535. package/dist/calcite/IEJMBPJU.js +0 -6
  536. package/dist/calcite/IK3QCAZN.js +0 -6
  537. package/dist/calcite/IKOOMPAX.js +0 -6
  538. package/dist/calcite/IPDH2LDG.js +0 -6
  539. package/dist/calcite/IUBUCDD6.js +0 -6
  540. package/dist/calcite/JCMCWR7J.js +0 -6
  541. package/dist/calcite/JHGP2C56.js +0 -6
  542. package/dist/calcite/JMNIVK3R.js +0 -6
  543. package/dist/calcite/KDCUMRGX.js +0 -6
  544. package/dist/calcite/KEFBUO23.js +0 -6
  545. package/dist/calcite/KHNXDA3R.js +0 -6
  546. package/dist/calcite/KLEV3IGL.js +0 -6
  547. package/dist/calcite/LIT6HBCV.js +0 -6
  548. package/dist/calcite/LKXA7MRG.js +0 -6
  549. package/dist/calcite/LMTPIXJD.js +0 -6
  550. package/dist/calcite/M3MFRN64.js +0 -6
  551. package/dist/calcite/M5MPF4VA.js +0 -6
  552. package/dist/calcite/MWGGE65N.js +0 -6
  553. package/dist/calcite/MXNAKF47.js +0 -6
  554. package/dist/calcite/NNKZWGGT.js +0 -6
  555. package/dist/calcite/NVQN43XK.js +0 -6
  556. package/dist/calcite/OHLVZUJX.js +0 -6
  557. package/dist/calcite/OHR7IMVY.js +0 -6
  558. package/dist/calcite/OJ5D52RG.js +0 -6
  559. package/dist/calcite/OJ5H4H4N.js +0 -6
  560. package/dist/calcite/OTT2SAVW.js +0 -6
  561. package/dist/calcite/OTYNRKUI.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,72 +1,68 @@
1
- import { D as H, c as j } from "../../chunks/runtime.js";
1
+ import { D as q, c as j } from "../../chunks/runtime.js";
2
2
  import { keyed as f } from "lit-html/directives/keyed.js";
3
- import { live as X } from "lit-html/directives/live.js";
4
- import { debounce as w, escapeRegExp as J } from "lodash-es";
3
+ import { live as N } from "lit-html/directives/live.js";
4
+ import { debounce as X, escapeRegExp as J } from "lodash-es";
5
5
  import { d as K } from "../../chunks/core.js";
6
6
  import { html as d, nothing as m } from "lit";
7
7
  import { createRef as Q, ref as b } from "lit-html/directives/ref.js";
8
- import { safeClassMap as h, LitElement as Y, createEvent as g, stringOrBoolean as Z } from "@arcgis/lumina";
8
+ import { safeClassMap as r, LitElement as Y, createEvent as g, stringOrBoolean as Z } from "@arcgis/lumina";
9
9
  import { f as ee } from "../../chunks/filter.js";
10
10
  import { B as v, A as te } from "../../chunks/dom.js";
11
- import { b as ie, r as se, c as C, a as le, f as oe, h as ne, F as T } from "../../chunks/floating-ui.js";
12
- import { c as ae, a as ce, d as re, s as he, H as de } from "../../chunks/form.js";
11
+ import { b as ie, r as se, c as C, a as le, f as ae, h as oe, F as H } from "../../chunks/floating-ui.js";
12
+ import { c as ne, a as ce, d as re, s as he, H as de } from "../../chunks/form.js";
13
13
  import { g as pe } from "../../chunks/guid.js";
14
14
  import { u as ue, I as me } from "../../chunks/interactive.js";
15
15
  import { c as fe, d as be, g as ge } from "../../chunks/label.js";
16
- import { c as xe, s as Ie, a as ve, b as Ce } from "../../chunks/loadable.js";
17
- import { c as F } from "../../chunks/observers.js";
18
- import { o as M } from "../../chunks/openCloseComponent.js";
19
- import { html as $e } from "lit-html";
20
- import { g as k } from "../../chunks/component.js";
21
- import { V as ye } from "../../chunks/Validation.js";
16
+ import { c as xe, a as Ie } from "../../chunks/loadable.js";
17
+ import { c as E } from "../../chunks/observers.js";
18
+ import { o as ve } from "../../chunks/openCloseComponent.js";
19
+ import { html as Ce } from "lit-html";
20
+ import { g as S, i as F } from "../../chunks/component.js";
21
+ import { V as $e } from "../../chunks/Validation.js";
22
22
  import { u as we } from "../../chunks/useT9n.js";
23
- import { h as V, i as x, C as r, b as $, c as z, d as Se, e as P, f as O, I as L } from "../../chunks/utils3.js";
24
- import { css as ke } from "@lit/reactive-element/css-tag.js";
25
- /*!
26
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
27
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
28
- * v3.0.0-next.99
29
- */
30
- const W = {
23
+ import { h as T, i as x, C as c, b as V, c as O, d as $, e as M, f as ye, I as P } from "../../chunks/utils3.js";
24
+ import { css as Se } from "@lit/reactive-element/css-tag.js";
25
+ /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
26
+ See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
27
+ v3.0.1 */
28
+ const U = {
31
29
  button: "x-button"
32
- }, De = ({ disabled: D, key: e, label: t, scale: i }) => f(e, $e`<button .ariaLabel=${t} class=${h(W.button)} .disabled=${D} tabindex=-1 type=button><calcite-icon icon=x .scale=${k(i)}></calcite-icon></button>`), Ee = ke`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]) .x-button{inline-size:1rem;block-size:1rem}:host([scale=m]) .x-button{inline-size:1.5rem;block-size:1.5rem}:host([scale=l]) .x-button{inline-size:2rem;block-size:2rem}.x-button{margin:0;display:flex;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-width:2px;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-radius:50%;border-color:transparent;background-color:var(--calcite-color-foreground-2)}.x-button:active,.x-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.x-button:active{border-style:solid;border-color:var(--calcite-color-brand)}.x-button calcite-icon{color:inherit}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l: .5rem;--calcite-combobox-item-spacing-unit-s: .25rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.25rem - 1px) }:host([scale=s]) .x-button{margin-inline:.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l: .75rem;--calcite-combobox-item-spacing-unit-s: .5rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.5rem - 1px) }:host([scale=m]) .x-button{margin-inline-end:.75rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l: 1rem;--calcite-combobox-item-spacing-unit-s: .75rem;--calcite-combobox-input-height: 1.5rem;--calcite-internal-combobox-input-margin-block: calc(.625rem - 1px) }:host([scale=l]) .x-button{margin-inline-end:1rem}.wrapper{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.wrapper:hover .icon{color:var(--calcite-color-text-1)}:host(:focus-within) .wrapper,.wrapper--active{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([read-only]) .wrapper{background-color:var(--calcite-color-background)}:host([read-only]) .label{font-weight:var(--calcite-font-weight-medium)}:host([status=invalid]) .wrapper{border-color:var(--calcite-color-status-danger)}:host([status=invalid]:focus-within) .wrapper{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;gap:var(--calcite-combobox-item-spacing-unit-s);margin-inline-end:var(--calcite-combobox-item-spacing-unit-s)}.grid-input.selection-display-fit,.grid-input.selection-display-single{flex-wrap:nowrap;overflow:hidden}.input{flex-grow:1;appearance:none;overflow:hidden;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0;font-family:inherit;color:var(--calcite-color-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-combobox-item-spacing-unit-s);min-inline-size:4.8125rem}.input:focus{outline:2px solid transparent;outline-offset:2px}.input:placeholder-shown{text-overflow:ellipsis}.input--single{padding:0;margin-block:var(--calcite-internal-combobox-input-margin-block)}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.placeholder-icon{color:var(--calcite-color-text-3)}.input-wrap{display:flex;flex-grow:1;align-items:center}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:flex;cursor:pointer;align-items:center}.icon-end{flex:none}.icon-end .icon{color:var(--calcite-color-text-3)}.floating-ui-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.floating-ui-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}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@media (forced-colors: active){.wrapper,.floating-ui-container{border:1px solid canvasText}}.screen-readers-only{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}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-color-foreground-1);inline-size:var(--calcite-dropdown-width, 100%)}.list{margin:0;display:block;padding:0}.list--hide{block-size:0px;overflow:hidden}calcite-chip{--calcite-animation-timing: 0}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);max-inline-size:100%}.chip--active{background-color:var(--calcite-color-foreground-3)}.chip--invisible{visibility:hidden;position:absolute}.item{display:block}.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}::slotted(calcite-combobox-item-group:not(:first-child)){padding-block-start:var(--calcite-combobox-item-spacing-unit-l)}`, B = "combobox-item-", U = "combobox-chip-", R = "combobox-label-", S = "combobox-listbox-", G = "combobox-input-";
30
+ }, ke = ({ disabled: k, key: e, label: t, scale: i }) => f(e, Ce`<button .ariaLabel=${t} class=${r(U.button)} .disabled=${k} tabindex=-1 type=button><calcite-icon icon=x .scale=${S(i)}></calcite-icon></button>`), De = Se`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]) .x-button{inline-size:1rem;block-size:1rem}:host([scale=m]) .x-button{inline-size:1.5rem;block-size:1.5rem}:host([scale=l]) .x-button{inline-size:2rem;block-size:2rem}.x-button{margin:0;display:flex;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-width:2px;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-radius:50%;border-color:transparent;background-color:var(--calcite-color-foreground-2)}.x-button:active,.x-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.x-button:active{border-style:solid;border-color:var(--calcite-color-brand)}.x-button calcite-icon{color:inherit}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l: .5rem;--calcite-combobox-item-spacing-unit-s: .25rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.25rem - 1px) }:host([scale=s]) .x-button{margin-inline:.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l: .75rem;--calcite-combobox-item-spacing-unit-s: .5rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.5rem - 1px) }:host([scale=m]) .x-button{margin-inline-end:.75rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l: 1rem;--calcite-combobox-item-spacing-unit-s: .75rem;--calcite-combobox-input-height: 1.5rem;--calcite-internal-combobox-input-margin-block: calc(.625rem - 1px) }:host([scale=l]) .x-button{margin-inline-end:1rem}.wrapper{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.wrapper:hover .icon{color:var(--calcite-color-text-1)}:host(:focus-within) .wrapper,.wrapper--active{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([read-only]) .wrapper{background-color:var(--calcite-color-background)}:host([read-only]) .label{font-weight:var(--calcite-font-weight-medium)}:host([status=invalid]) .wrapper{border-color:var(--calcite-color-status-danger)}:host([status=invalid]:focus-within) .wrapper{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;gap:var(--calcite-combobox-item-spacing-unit-s);margin-inline-end:var(--calcite-combobox-item-spacing-unit-s)}.grid-input.selection-display-fit,.grid-input.selection-display-single{flex-wrap:nowrap;overflow:hidden}.input{flex-grow:1;appearance:none;overflow:hidden;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0;font-family:inherit;color:var(--calcite-color-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-combobox-item-spacing-unit-s);min-inline-size:4.8125rem}.input:focus{outline:2px solid transparent;outline-offset:2px}.input:placeholder-shown{text-overflow:ellipsis}.input--single{padding:0;margin-block:var(--calcite-internal-combobox-input-margin-block)}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.placeholder-icon{color:var(--calcite-color-text-3)}.input-wrap{display:flex;flex-grow:1;align-items:center}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;max-width:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:flex;cursor:pointer;align-items:center}.icon-end{flex:none}.icon-end .icon{color:var(--calcite-color-text-3)}.floating-ui-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.floating-ui-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}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@media (forced-colors: active){.wrapper,.floating-ui-container{border:1px solid canvasText}}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.list-container{max-height:45vh;overflow-y:auto;background-color:var(--calcite-color-foreground-1);inline-size:var(--calcite-dropdown-width, 100%)}.list{margin:0;display:block;padding:0}.list--hide{height:0px;overflow:hidden}calcite-chip{--calcite-animation-timing: 0}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);max-inline-size:100%}.chip--active{background-color:var(--calcite-color-foreground-3)}.chip--invisible{visibility:hidden;position:absolute}.item{display:block}.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}::slotted(calcite-combobox-item-group:not(:first-child)){padding-block-start:var(--calcite-combobox-item-spacing-unit-l)}`, z = "combobox-item-", L = "combobox-chip-", R = "combobox-label-", y = "combobox-listbox-", B = "combobox-input-";
33
31
  class Ae extends Y {
34
32
  // #endregion
35
33
  // #region Lifecycle
36
34
  constructor() {
37
- super(), this.internalComboboxChangeEvent = () => {
38
- this.calciteComboboxChange.emit();
39
- }, this.emitComboboxChange = w(this.internalComboboxChangeEvent, 0), this.filterItems = (() => {
35
+ super(), this.filterItems = (() => {
40
36
  const e = (t, i) => t && i.some(({ el: s }) => t === s);
41
- return w((t, i = !1, s = !0) => {
42
- const l = ee([...this.data, ...this.groupData], t, this.effectiveFilterProps), o = this.getItemsAndGroups(), n = t === "";
43
- o.forEach((a) => {
44
- if (n) {
45
- a.hidden = !1;
37
+ return X((t, i = !1, s = !0) => {
38
+ const l = ee([...this.data, ...this.groupData], t, this.effectiveFilterProps), a = this.getItemsAndGroups(), o = t === "";
39
+ a.forEach((n) => {
40
+ if (o) {
41
+ n.itemHidden = !1;
46
42
  return;
47
43
  }
48
- const c = !e(a, l);
49
- a.hidden = c;
50
- const [p, I] = a.ancestors;
51
- (e(p, l) || e(I, l)) && (a.hidden = !1), c || a.ancestors.forEach((u) => u.hidden = !1);
52
- }), this.filterTextMatchPattern = this.filterText && new RegExp(`(${J(this.filterText)})`, "i"), this.filteredItems = this.getFilteredItems(), this.filteredItems.forEach((a) => {
53
- a.filterTextMatchPattern = this.filterTextMatchPattern;
44
+ const h = !e(n, l);
45
+ n.itemHidden = h;
46
+ const [p, I] = n.ancestors;
47
+ (e(p, l) || e(I, l)) && (n.itemHidden = !1), h || n.ancestors.forEach((u) => u.itemHidden = !1);
48
+ }), this.filterTextMatchPattern = this.filterText && new RegExp(`(${J(this.filterText)})`, "i"), this.filteredItems = this.getFilteredItems(), this.filteredItems.forEach((n) => {
49
+ n.filterTextMatchPattern = this.filterTextMatchPattern;
54
50
  }), i && (this.open = this.filterText.trim().length > 0 && this.filteredItems.length > 0), s && this.calciteComboboxFilterChange.emit();
55
- }, H.filter);
51
+ }, q.filter);
56
52
  })(), this._filterText = "", this.getSelectedItems = () => {
57
53
  if (!this.isMulti()) {
58
54
  const e = this.items.find(({ selected: t }) => t);
59
55
  return e ? [e] : [];
60
56
  }
61
- return this.items.filter((e) => e.selected && (this.selectionMode !== "ancestors" || !V(e))).sort((e, t) => {
57
+ return this.items.filter((e) => e.selected && (this.selectionMode !== "ancestors" || !T(e))).sort((e, t) => {
62
58
  const i = this.selectedItems.indexOf(e), s = this.selectedItems.indexOf(t);
63
59
  return i > -1 && s > -1 ? i - s : s - i;
64
60
  });
65
- }, this.guid = pe(), this.ignoreSelectedEventsFlag = !1, this.inputHeight = 0, this.internalValueChangeFlag = !1, this.mutationObserver = F("mutation", () => this.updateItems()), this.onLabelClick = () => {
61
+ }, this.groupItems = [], this.guid = pe(), this.ignoreSelectedEventsFlag = !1, this.inputHeight = 0, this.internalValueChangeFlag = !1, this.items = [], this.mutationObserver = E("mutation", () => this.updateItems()), this.onLabelClick = () => {
66
62
  this.setFocus();
67
- }, this.openTransitionProp = "opacity", this.placement = ie, this.resizeObserver = F("resize", () => {
63
+ }, this.transitionProp = "opacity", this.placement = ie, this.resizeObserver = E("resize", () => {
68
64
  this.setMaxScrollerHeight(), this.refreshSelectionDisplay();
69
- }), this.textInput = Q(), this._value = null, this.activeChipIndex = -1, this.activeDescendant = "", this.activeItemIndex = -1, this.compactSelectionDisplay = !1, this.groupItems = [], this.items = [], this.selectedHiddenChipsCount = 0, this.selectedVisibleChipsCount = 0, this.clearDisabled = !1, this.disabled = !1, this.filteredItems = [], this.maxItems = 0, this.messages = we(), this.open = !1, this.overlayPositioning = "absolute", this.placeholderIconFlipRtl = !1, this.readOnly = !1, this.required = !1, this.scale = "m", this.selectedItems = [], this.selectionDisplay = "all", this.selectionMode = "multiple", this.status = "idle", this.validity = {
65
+ }), this._selectedItems = [], this.textInput = Q(), this._value = null, this.activeChipIndex = -1, this.activeDescendant = "", this.activeItemIndex = -1, this.compactSelectionDisplay = !1, this.selectedHiddenChipsCount = 0, this.selectedVisibleChipsCount = 0, this.clearDisabled = !1, this.disabled = !1, this.filteredItems = [], this.maxItems = 0, this.messages = we(), this.open = !1, this.overlayPositioning = "absolute", this.placeholderIconFlipRtl = !1, this.readOnly = !1, this.required = !1, this.scale = "m", this.selectionDisplay = "all", this.selectionMode = "multiple", this.status = "idle", this.validity = {
70
66
  valid: !1,
71
67
  badInput: !1,
72
68
  customError: !1,
@@ -78,28 +74,23 @@ class Ae extends Y {
78
74
  tooShort: !1,
79
75
  typeMismatch: !1,
80
76
  valueMissing: !1
81
- }, this.calciteComboboxBeforeClose = g({ cancelable: !1 }), this.calciteComboboxBeforeOpen = g({ cancelable: !1 }), this.calciteComboboxChange = g({ cancelable: !1 }), this.calciteComboboxChipClose = g({ cancelable: !1 }), this.calciteComboboxClose = g({ cancelable: !1 }), this.calciteComboboxFilterChange = g({ cancelable: !1 }), this.calciteComboboxOpen = g({ cancelable: !1 }), this.updateItems = w(() => {
82
- this.items = this.getItems(), this.groupItems = this.getGroupItems(), this.data = this.getData(), this.groupData = this.getGroupData(), this.selectedItems = this.getSelectedItems(), this.filteredItems = this.getFilteredItems(), this.needsIcon = this.getNeedsIcon(), this.items.forEach((e) => {
83
- e.selectionMode = this.selectionMode, e.scale = this.scale;
84
- }), this.groupItems.forEach((e) => e.scale = this.scale), this.allowCustomValues || this.setMaxScrollerHeight(), this.groupItems.forEach((e, t, i) => {
85
- t === 0 && (e.afterEmptyGroup = !1);
86
- const s = i[t + 1];
87
- s && (s.afterEmptyGroup = e.children.length === 0);
88
- });
89
- }, H.nextTick), this.listenOn(document, "click", this.documentClickHandler), this.listen("calciteComboboxItemChange", this.calciteComboboxItemChangeHandler), this.listen("calciteInternalComboboxItemChange", this.calciteInternalComboboxItemChangeHandler), this.listen("click", this.comboboxFocusHandler);
77
+ }, this.calciteComboboxBeforeClose = g({ cancelable: !1 }), this.calciteComboboxBeforeOpen = g({ cancelable: !1 }), this.calciteComboboxChange = g({ cancelable: !1 }), this.calciteComboboxChipClose = g({ cancelable: !1 }), this.calciteComboboxClose = g({ cancelable: !1 }), this.calciteComboboxFilterChange = g({ cancelable: !1 }), this.calciteComboboxOpen = g({ cancelable: !1 }), this.listenOn(document, "click", this.documentClickHandler), this.listen("calciteComboboxItemChange", this.calciteComboboxItemChangeHandler), this.listen("calciteInternalComboboxItemChange", this.calciteInternalComboboxItemChangeHandler), this.listen("click", this.comboboxFocusHandler);
90
78
  }
91
79
  static {
92
- this.properties = { activeChipIndex: 16, activeDescendant: 16, activeItemIndex: 16, compactSelectionDisplay: 16, groupItems: 16, items: 16, needsIcon: 16, selectedHiddenChipsCount: 16, selectedVisibleChipsCount: 16, allowCustomValues: 7, clearDisabled: 7, disabled: 7, filterText: 3, filterProps: 0, filteredItems: 0, flipPlacements: 0, form: 3, label: 1, maxItems: 11, messageOverrides: 0, name: 3, open: 7, overlayPositioning: 3, placeholder: 1, placeholderIcon: 3, placeholderIconFlipRtl: 7, readOnly: 7, required: 7, scale: 3, selectedItems: 0, selectionDisplay: 3, selectionMode: 3, status: 3, validationIcon: [3, { converter: Z }], validationMessage: 1, validity: 0, value: 1 };
80
+ this.properties = { activeChipIndex: 16, activeDescendant: 16, activeItemIndex: 16, compactSelectionDisplay: 16, selectedHiddenChipsCount: 16, selectedVisibleChipsCount: 16, allowCustomValues: 7, clearDisabled: 7, disabled: 7, filterText: 3, filterProps: 0, filteredItems: 0, flipPlacements: 0, form: 3, label: 1, maxItems: 11, messageOverrides: 0, name: 3, open: 7, overlayPositioning: 3, placeholder: 1, placeholderIcon: 3, placeholderIconFlipRtl: 7, readOnly: 7, required: 7, scale: 3, selectedItems: 0, selectionDisplay: 3, selectionMode: 3, status: 3, validationIcon: [3, { converter: Z }], validationMessage: 1, validity: 0, value: 1 };
93
81
  }
94
82
  static {
95
- this.styles = Ee;
83
+ this.styles = De;
84
+ }
85
+ emitComboboxChange() {
86
+ this.calciteComboboxChange.emit();
96
87
  }
97
88
  get effectiveFilterProps() {
98
89
  return this.filterProps ? this.filterProps.filter((e) => e !== "el") : ["description", "label", "metadata", "shortHeading", "textLabel"];
99
90
  }
100
91
  get showingInlineIcon() {
101
- const { placeholderIcon: e, selectionMode: t, selectedItems: i, open: s } = this, l = i[0], o = l?.icon, n = x(t);
102
- return !s && l ? !!o && n : !!e && (!l || n);
92
+ const { placeholderIcon: e, selectionMode: t, selectedItems: i, open: s } = this, l = i[0], a = l?.icon, o = x(t);
93
+ return !s && l ? !!a && o : !!e && (!l || o);
103
94
  }
104
95
  /** Text for the component's filter input field. */
105
96
  get filterText() {
@@ -109,6 +100,18 @@ class Ae extends Y {
109
100
  const t = this._filterText;
110
101
  e !== t && (this._filterText = e, this.filterTextChange(e));
111
102
  }
103
+ /**
104
+ * Specifies the component's selected items.
105
+ *
106
+ * @readonly
107
+ */
108
+ get selectedItems() {
109
+ return this._selectedItems;
110
+ }
111
+ set selectedItems(e) {
112
+ const t = this._selectedItems;
113
+ e !== t && (this._selectedItems = e, this.selectedItemsHandler());
114
+ }
112
115
  /** The component's value(s) from the selected `calcite-combobox-item`(s). */
113
116
  get value() {
114
117
  return this._value;
@@ -126,13 +129,13 @@ class Ae extends Y {
126
129
  * @returns Promise
127
130
  */
128
131
  async reposition(e = !1) {
129
- const { floatingEl: t, referenceEl: i, placement: s, overlayPositioning: l, filteredFlipPlacements: o } = this;
132
+ const { floatingEl: t, referenceEl: i, placement: s, overlayPositioning: l, filteredFlipPlacements: a } = this;
130
133
  return se(this, {
131
134
  floatingEl: t,
132
135
  referenceEl: i,
133
136
  overlayPositioning: l,
134
137
  placement: s,
135
- flipPlacements: o,
138
+ flipPlacements: a,
136
139
  type: "menu"
137
140
  }, e);
138
141
  }
@@ -141,19 +144,18 @@ class Ae extends Y {
141
144
  await xe(this), this.textInput.value?.focus(), this.activeChipIndex = -1, this.activeItemIndex = -1;
142
145
  }
143
146
  connectedCallback() {
144
- super.connectedCallback(), fe(this), ae(this), this.internalValueChangeFlag = !0, this.value = this.getValue(), this.internalValueChangeFlag = !1, this.mutationObserver?.observe(this.el, { childList: !0, subtree: !0 }), this.setFilteredPlacements(), this.open && (this.openHandler(), M(this)), C(this);
147
+ super.connectedCallback(), fe(this), ne(this), this.internalValueChangeFlag = !0, this.value = this.getValue(), this.internalValueChangeFlag = !1, this.mutationObserver?.observe(this.el, { childList: !0, subtree: !0 }), this.setFilteredPlacements(), C(this);
145
148
  }
146
149
  async load() {
147
- Ie(this), this.filterItems(this.filterText, !1, !1);
148
150
  }
149
151
  willUpdate(e) {
150
- e.has("open") && (this.hasUpdated || this.open !== !1) && this.openHandler(), e.has("disabled") && (this.hasUpdated || this.disabled !== !1) && this.handleDisabledChange(this.disabled), e.has("maxItems") && (this.hasUpdated || this.maxItems !== 0) && this.setMaxScrollerHeight(), e.has("overlayPositioning") && (this.hasUpdated || this.overlayPositioning !== "absolute") && this.reposition(!0), (e.has("selectionMode") || e.has("scale")) && this.updateItems(), e.has("flipPlacements") && this.flipPlacementsHandler(), e.has("selectedItems") && (this.hasUpdated || this.selectedItems?.length > 0) && this.selectedItemsHandler();
152
+ e.has("open") && (this.hasUpdated || this.open !== !1) && this.openHandler(), e.has("disabled") && (this.hasUpdated || this.disabled !== !1) && this.handleDisabledChange(this.disabled), e.has("maxItems") && (this.hasUpdated || this.maxItems !== 0) && this.setMaxScrollerHeight(), e.has("overlayPositioning") && (this.hasUpdated || this.overlayPositioning !== "absolute") && this.reposition(!0), (e.has("selectionMode") || e.has("scale")) && this.updateItems(), e.has("flipPlacements") && this.flipPlacementsHandler();
151
153
  }
152
154
  updated() {
153
- this.el.offsetHeight !== this.inputHeight && (this.reposition(!0), this.inputHeight = this.el.offsetHeight), ue(this), this.hasUpdated || this.refreshSelectionDisplay();
155
+ this.el.offsetHeight !== this.inputHeight && (this.reposition(!0), this.inputHeight = this.el.offsetHeight), ue(this), this.refreshSelectionDisplay();
154
156
  }
155
157
  loaded() {
156
- ce(this, this.getValue()), C(this), ve(this);
158
+ ce(this, this.getValue()), C(this), this.updateItems(), this.filterItems(this.filterText, !1, !1);
157
159
  }
158
160
  disconnectedCallback() {
159
161
  super.disconnectedCallback(), this.mutationObserver?.disconnect(), this.resizeObserver?.disconnect(), be(this), re(this), le(this);
@@ -164,16 +166,15 @@ class Ae extends Y {
164
166
  this.updateActiveItemIndex(-1), this.filterItems(e, !0);
165
167
  }
166
168
  openHandler() {
167
- M(this), !this.disabled && this.setMaxScrollerHeight();
169
+ ve(this), !this.disabled && this.setMaxScrollerHeight();
168
170
  }
169
171
  handleDisabledChange(e) {
170
172
  e || (this.open = !1);
171
173
  }
172
174
  valueHandler(e) {
173
- if (!this.internalValueChangeFlag) {
174
- const t = this.getItems();
175
- Array.isArray(e) ? t.forEach((i) => i.selected = e.includes(i.value)) : e ? t.forEach((i) => i.selected = e === i.value) : t.forEach((i) => i.selected = !1), this.updateItems();
176
- }
175
+ this.internalValueChangeFlag || (this.getItems().forEach((t) => {
176
+ t.selected = Array.isArray(e) ? e.includes(t.value) : e === t.value;
177
+ }), this.updateItems());
177
178
  }
178
179
  flipPlacementsHandler() {
179
180
  this.setFilteredPlacements(), this.reposition(!0);
@@ -191,7 +192,7 @@ class Ae extends Y {
191
192
  this.updateActiveItemIndex(i), this.toggleSelection(t, t.selected);
192
193
  }
193
194
  calciteInternalComboboxItemChangeHandler(e) {
194
- e.stopPropagation(), this.updateItems();
195
+ e.stopPropagation(), this.hasUpdated && this.updateItems();
195
196
  }
196
197
  clearValue() {
197
198
  this.ignoreSelectedEventsFlag = !0, this.items.forEach((e) => e.selected = !1), this.ignoreSelectedEventsFlag = !1, this.selectedItems = [], this.emitComboboxChange(), this.open = !1, this.updateActiveItemIndex(-1), this.resetText(), this.filterItems(""), this.setFocus();
@@ -201,11 +202,11 @@ class Ae extends Y {
201
202
  }
202
203
  setFilteredPlacements() {
203
204
  const { el: e, flipPlacements: t } = this;
204
- this.filteredFlipPlacements = t ? oe(t, e) : null;
205
+ this.filteredFlipPlacements = t ? ae(t, e) : null;
205
206
  }
206
207
  getValue() {
207
- const e = this.selectedItems.map((t) => t?.value?.toString());
208
- return e?.length ? e.length > 1 ? e : e[0] : "";
208
+ const e = this.selectedItems.map((t) => t.value?.toString());
209
+ return e.length ? e.length > 1 ? e : e[0] : "";
209
210
  }
210
211
  comboboxInViewport() {
211
212
  const e = this.el.getBoundingClientRect();
@@ -237,12 +238,12 @@ class Ae extends Y {
237
238
  case "Home":
238
239
  if (!this.open)
239
240
  return;
240
- e.preventDefault(), this.updateActiveItemIndex(0), this.scrollToActiveItem(), this.comboboxInViewport() || this.el.scrollIntoView();
241
+ e.preventDefault(), this.updateActiveItemIndex(0), this.scrollToActiveOrSelectedItem(), this.comboboxInViewport() || this.el.scrollIntoView();
241
242
  break;
242
243
  case "End":
243
244
  if (!this.open)
244
245
  return;
245
- e.preventDefault(), this.updateActiveItemIndex(this.filteredItems.length - 1), this.scrollToActiveItem(), this.comboboxInViewport() || this.el.scrollIntoView();
246
+ e.preventDefault(), this.updateActiveItemIndex(this.filteredItems.length - 1), this.scrollToActiveOrSelectedItem(), this.comboboxInViewport() || this.el.scrollIntoView();
246
247
  break;
247
248
  case "Escape":
248
249
  !this.clearDisabled && !this.open && this.clearValue(), this.open = !1, e.preventDefault();
@@ -263,16 +264,16 @@ class Ae extends Y {
263
264
  }
264
265
  }
265
266
  onBeforeOpen() {
266
- this.scrollToActiveItem(), this.calciteComboboxBeforeOpen.emit();
267
+ this.scrollToActiveOrSelectedItem(), this.calciteComboboxBeforeOpen.emit();
267
268
  }
268
269
  onOpen() {
269
- this.calciteComboboxOpen.emit();
270
+ this.scrollToActiveOrSelectedItem(!0), this.calciteComboboxOpen.emit();
270
271
  }
271
272
  onBeforeClose() {
272
273
  this.calciteComboboxBeforeClose.emit();
273
274
  }
274
275
  onClose() {
275
- this.calciteComboboxClose.emit(), ne(this);
276
+ this.calciteComboboxClose.emit(), oe(this);
276
277
  }
277
278
  async setMaxScrollerHeight() {
278
279
  const { listContainerEl: e, open: t, referenceEl: i } = this;
@@ -295,7 +296,7 @@ class Ae extends Y {
295
296
  this.open = !1, e.preventDefault();
296
297
  return;
297
298
  }
298
- if (t.some((i) => i.classList?.contains(W.button))) {
299
+ if (t.some((i) => i.classList?.contains(U.button))) {
299
300
  this.clearValue(), e.preventDefault();
300
301
  return;
301
302
  }
@@ -306,10 +307,10 @@ class Ae extends Y {
306
307
  this.updateActiveItemIndex(t);
307
308
  }
308
309
  hideChip(e) {
309
- e.classList.add(r.chipInvisible);
310
+ e.classList.add(c.chipInvisible);
310
311
  }
311
312
  showChip(e) {
312
- e.classList.remove(r.chipInvisible);
313
+ e.classList.remove(c.chipInvisible);
313
314
  }
314
315
  refreshChipDisplay({ chipEls: e, availableHorizontalChipElSpace: t, chipContainerElGap: i }) {
315
316
  e.forEach((s) => {
@@ -326,17 +327,17 @@ class Ae extends Y {
326
327
  });
327
328
  }
328
329
  async refreshSelectionDisplay() {
329
- if (await Ce(this), x(this.selectionMode) || !this.textInput.value)
330
+ if (await Ie(this), x(this.selectionMode) || !this.textInput.value)
330
331
  return;
331
- const { allSelectedIndicatorChipEl: e, chipContainerEl: t, selectionDisplay: i, placeholder: s, selectedIndicatorChipEl: l, textInput: { value: o } } = this, n = parseInt(getComputedStyle(t).gap.replace("px", "")), a = v(t), { fontSize: c, fontFamily: p } = getComputedStyle(o), u = (te(s, `${c} ${p}`) || parseInt(K)) + n, y = v(e), E = v(l), _ = Math.max(y, E);
332
+ const { allSelectedIndicatorChipEl: e, chipContainerEl: t, selectionDisplay: i, placeholder: s, selectedIndicatorChipEl: l, textInput: { value: a } } = this, o = parseInt(getComputedStyle(t).gap.replace("px", "")), n = v(t), { fontSize: h, fontFamily: p } = getComputedStyle(a), u = (te(s, `${h} ${p}`) || parseInt(K)) + o, w = v(e), D = v(l), G = Math.max(w, D);
332
333
  if (this.setCompactSelectionDisplay({
333
- chipContainerElGap: n,
334
- chipContainerElWidth: a,
334
+ chipContainerElGap: o,
335
+ chipContainerElWidth: n,
335
336
  inputWidth: u,
336
- largestSelectedIndicatorChipWidth: _
337
+ largestSelectedIndicatorChipWidth: G
337
338
  }), i === "fit") {
338
- const A = Array.from(this.el.shadowRoot.querySelectorAll("calcite-chip")).filter((N) => N.closable), q = Math.round(a - ((this.selectedHiddenChipsCount > 0 ? E : 0) + n + u + n));
339
- this.refreshChipDisplay({ availableHorizontalChipElSpace: q, chipContainerElGap: n, chipEls: A }), this.setVisibleAndHiddenChips(A);
339
+ const A = Array.from(this.el.shadowRoot.querySelectorAll("calcite-chip")).filter((_) => _.closable), W = Math.round(n - ((this.selectedHiddenChipsCount > 0 ? D : 0) + o + u + o));
340
+ this.refreshChipDisplay({ availableHorizontalChipElSpace: W, chipContainerElGap: o, chipEls: A }), this.setVisibleAndHiddenChips(A);
340
341
  }
341
342
  }
342
343
  setFloatingEl(e) {
@@ -364,25 +365,25 @@ class Ae extends Y {
364
365
  setVisibleAndHiddenChips(e) {
365
366
  let t = 0;
366
367
  e.forEach((s) => {
367
- s.selected && !s.classList.contains(r.chipInvisible) && t++;
368
+ s.selected && !s.classList.contains(c.chipInvisible) && t++;
368
369
  }), t !== this.selectedVisibleChipsCount && (this.selectedVisibleChipsCount = t);
369
370
  const i = this.getSelectedItems().length - t;
370
371
  i !== this.selectedHiddenChipsCount && (this.selectedHiddenChipsCount = i);
371
372
  }
372
373
  getMaxScrollerHeight() {
373
- const t = [...this.groupItems, ...this.getItems(!0)].filter((o) => !o.hidden), { maxItems: i } = this;
374
+ const t = [...this.groupItems, ...this.getItems(!0)].filter((a) => !F(a)), { maxItems: i } = this;
374
375
  let s = 0, l = 0;
375
- return t.length >= i && t.forEach((o) => {
376
+ return t.length >= i && t.forEach((a) => {
376
377
  if (s < i) {
377
- const n = this.calculateScrollerHeight(o);
378
- l += n, s += 1;
378
+ const o = this.calculateScrollerHeight(a);
379
+ l += o, s += 1;
379
380
  }
380
381
  }), l;
381
382
  }
382
383
  calculateScrollerHeight(e) {
383
384
  if (!e)
384
385
  return 0;
385
- const t = e.getBoundingClientRect().height, i = `:scope > ${P}, :scope > ${O}`, s = Array.from(e.querySelectorAll(i)).reduce((l, o) => l + o.getBoundingClientRect().height, 0);
386
+ const t = e.getBoundingClientRect().height, i = `:scope > ${V}, :scope > ${O}`, s = Array.from(e.querySelectorAll(i)).reduce((l, a) => l + a.getBoundingClientRect().height, 0);
386
387
  return t - s;
387
388
  }
388
389
  inputHandler(e) {
@@ -398,15 +399,27 @@ class Ae extends Y {
398
399
  updateAncestors(e) {
399
400
  if (this.selectionMode !== "ancestors")
400
401
  return;
401
- const t = z(e), i = Se(e);
402
+ const t = M(e), i = ye(e);
402
403
  e.selected ? t.forEach((s) => {
403
404
  s.selected = !0;
404
405
  }) : (i.forEach((s) => s.selected = !1), [...t].forEach((s) => {
405
- V(s) || (s.selected = !1);
406
+ T(s) || (s.selected = !1);
406
407
  }));
407
408
  }
408
409
  getFilteredItems() {
409
- return this.filterText === "" ? this.items : this.items.filter((e) => !e.hidden);
410
+ return this.filterText === "" ? this.items : this.items.filter((e) => !F(e));
411
+ }
412
+ updateItems() {
413
+ this.items = this.getItems(), this.groupItems = this.getGroupItems(), this.data = this.getData(), this.groupData = this.getGroupData(), this.updateItemProps(), this.selectedItems = this.getSelectedItems(), this.filteredItems = this.getFilteredItems();
414
+ }
415
+ updateItemProps() {
416
+ this.getItems(!0).forEach((e) => {
417
+ e.selectionMode = this.selectionMode, e.scale = this.scale;
418
+ }), this.groupItems.forEach((e) => e.scale = this.scale), this.allowCustomValues || this.setMaxScrollerHeight(), this.groupItems.forEach((e, t, i) => {
419
+ t === 0 && (e.afterEmptyGroup = !1);
420
+ const s = i[t + 1];
421
+ s && (s.afterEmptyGroup = e.children.length === 0);
422
+ });
410
423
  }
411
424
  getData() {
412
425
  return this.items.map((e) => ({
@@ -426,14 +439,11 @@ class Ae extends Y {
426
439
  el: e
427
440
  }));
428
441
  }
429
- getNeedsIcon() {
430
- return x(this.selectionMode) && this.items.some((e) => e.icon);
431
- }
432
442
  resetText() {
433
443
  this.textInput.value && (this.textInput.value.value = ""), this.filterText = "";
434
444
  }
435
445
  getItems(e = !1) {
436
- return Array.from(this.el.querySelectorAll(P)).filter((i) => e || !i.disabled);
446
+ return Array.from(this.el.querySelectorAll(V)).filter((i) => e || !i.disabled);
437
447
  }
438
448
  getGroupItems() {
439
449
  return Array.from(this.el.querySelectorAll(O));
@@ -443,12 +453,11 @@ class Ae extends Y {
443
453
  if (i)
444
454
  this.toggleSelection(i, !0);
445
455
  else {
446
- this.isMulti() || this.toggleSelection(this.selectedItems[this.selectedItems.length - 1], !1);
447
456
  const s = document.createElement(
448
457
  // TODO: [MIGRATION] If this is dynamically creating a web component, please read the docs: https://qawebgis.esri.com/arcgis-components/?path=/docs/lumina-jsx--docs#rendering-jsx-outside-the-component
449
458
  "calcite-combobox-item"
450
459
  );
451
- s.value = e, s.heading = e, s.selected = !0, this.el.prepend(s), this.resetText(), t && this.setFocus(), this.updateItems(), this.filterItems(""), this.open = !0, this.emitComboboxChange();
460
+ s.value = e, s.heading = e, this.el.prepend(s), this.updateItems(), this.toggleSelection(s, !0), this.open = !0, t && this.setFocus();
452
461
  }
453
462
  }
454
463
  removeActiveChip() {
@@ -467,24 +476,21 @@ class Ae extends Y {
467
476
  }
468
477
  focusChip() {
469
478
  const e = this.selectedItems[this.activeChipIndex]?.guid;
470
- (e ? this.referenceEl.querySelector(`#${U}${e}`) : null)?.setFocus();
479
+ (e ? this.referenceEl.querySelector(`#${L}${e}`) : null)?.setFocus();
471
480
  }
472
- scrollToActiveItem() {
473
- const e = this.filteredItems[this.activeItemIndex];
474
- if (!e)
475
- return;
476
- const t = this.calculateScrollerHeight(e), { offsetHeight: i, scrollTop: s } = this.listContainerEl;
477
- i + s < e.offsetTop + t ? this.listContainerEl.scrollTop = e.offsetTop - i + t : e.offsetTop < s && (this.listContainerEl.scrollTop = e.offsetTop);
481
+ scrollToActiveOrSelectedItem(e = !1) {
482
+ const t = e && this.selectedItems && this.selectedItems.length ? this.selectedItems[0] : this.filteredItems[this.activeItemIndex];
483
+ t && t.scrollIntoView({ block: "nearest" });
478
484
  }
479
485
  shiftActiveItemIndex(e) {
480
486
  const { length: t } = this.filteredItems, i = (this.activeItemIndex + t + e) % t;
481
- this.updateActiveItemIndex(i), this.scrollToActiveItem();
487
+ this.updateActiveItemIndex(i), this.scrollToActiveOrSelectedItem();
482
488
  }
483
489
  updateActiveItemIndex(e) {
484
490
  this.activeItemIndex = e;
485
491
  let t = null;
486
492
  this.filteredItems.forEach((i, s) => {
487
- s === e ? (i.active = !0, t = `${B}${i.guid}`) : i.active = !1;
493
+ s === e ? (i.active = !0, t = `${z}${i.guid}`) : i.active = !1;
488
494
  }), this.activeDescendant = t, this.activeItemIndex > -1 && (this.activeChipIndex = -1);
489
495
  }
490
496
  isAllSelected() {
@@ -500,108 +506,108 @@ class Ae extends Y {
500
506
  // #region Rendering
501
507
  renderChips() {
502
508
  const { activeChipIndex: e, readOnly: t, scale: i, selectionMode: s, messages: l } = this;
503
- return this.selectedItems.map((o, n) => {
504
- const a = {
509
+ return this.selectedItems.map((a, o) => {
510
+ const n = {
505
511
  chip: !0,
506
- "chip--active": e === n
507
- }, c = [...z(o)].reverse(), p = $(o), I = [...c, o].map((y) => $(y)), u = s !== "ancestors" ? p : I.join(" / ");
508
- return f(p, d`<calcite-chip .appearance=${t ? "outline" : "solid"} class=${h(a)} .closable=${!t} data-test-id=${`chip-${n}`} .icon=${o.icon} .iconFlipRtl=${o.iconFlipRtl} id=${(o.guid ? `${U}${o.guid}` : null) ?? m} .label=${u} .messageOverrides=${{ dismissLabel: l.removeTag }} @focusin=${() => this.activeChipIndex = n} @calciteChipClose=${() => this.calciteChipCloseHandler(o)} .scale=${i} .selected=${o.selected} .tabIndex=${e === n ? 0 : -1} title=${u ?? m} .value=${o.value}>${u}</calcite-chip>`);
512
+ "chip--active": e === o
513
+ }, h = [...M(a)].reverse(), p = $(a), I = [...h, a].map((w) => $(w)), u = s !== "ancestors" ? p : I.join(" / ");
514
+ return f(p, d`<calcite-chip .appearance=${t ? "outline" : "solid"} class=${r(n)} .closable=${!t} data-test-id=${`chip-${o}`} .icon=${a.icon} .iconFlipRtl=${a.iconFlipRtl} id=${(a.guid ? `${L}${a.guid}` : null) ?? m} .label=${u} .messageOverrides=${{ dismissLabel: l.removeTag }} @focusin=${() => this.activeChipIndex = o} @calciteChipClose=${() => this.calciteChipCloseHandler(a)} .scale=${i} .selected=${a.selected} .tabIndex=${e === o ? 0 : -1} title=${u ?? m} .value=${a.value}>${u}</calcite-chip>`);
509
515
  });
510
516
  }
511
517
  renderAllSelectedIndicatorChip() {
512
518
  const { compactSelectionDisplay: e, scale: t, selectedVisibleChipsCount: i, setAllSelectedIndicatorChipEl: s } = this, l = this.messages.allSelected;
513
- return d`<calcite-chip class=${h({
519
+ return d`<calcite-chip class=${r({
514
520
  chip: !0,
515
- [r.chipInvisible]: !(this.isAllSelected() && !i && !e)
521
+ [c.chipInvisible]: !(this.isAllSelected() && !i && !e)
516
522
  })} .label=${l} .scale=${t} title=${l ?? m} value ${b(s)}>${l}</calcite-chip>`;
517
523
  }
518
524
  renderAllSelectedIndicatorChipCompact() {
519
525
  const { compactSelectionDisplay: e, scale: t, selectedVisibleChipsCount: i } = this, s = this.messages.all || "All";
520
- return d`<calcite-chip class=${h({
526
+ return d`<calcite-chip class=${r({
521
527
  chip: !0,
522
- [r.chipInvisible]: !(this.isAllSelected() && !i && e)
528
+ [c.chipInvisible]: !(this.isAllSelected() && !i && e)
523
529
  })} .label=${s} .scale=${t} title=${s} value>${s}</calcite-chip>`;
524
530
  }
525
531
  renderSelectedIndicatorChip() {
526
- const { compactSelectionDisplay: e, selectionDisplay: t, getSelectedItems: i, scale: s, selectedHiddenChipsCount: l, selectedVisibleChipsCount: o, setSelectedIndicatorChipEl: n } = this;
527
- let a, c;
532
+ const { compactSelectionDisplay: e, selectionDisplay: t, getSelectedItems: i, scale: s, selectedHiddenChipsCount: l, selectedVisibleChipsCount: a, setSelectedIndicatorChipEl: o } = this;
533
+ let n, h;
528
534
  if (e)
529
- a = !0;
535
+ n = !0;
530
536
  else if (t === "single") {
531
537
  const p = i().length;
532
- this.isAllSelected() ? a = !0 : p > 0 ? a = !1 : a = !0, c = `${p} ${this.messages.selected}`;
533
- } else t === "fit" && (a = !!(this.isAllSelected() && o === 0 || l === 0), c = o > 0 ? `+${l}` : `${l} ${this.messages.selected}`);
534
- return d`<calcite-chip class=${h({
538
+ this.isAllSelected() ? n = !0 : p > 0 ? n = !1 : n = !0, h = `${p} ${this.messages.selected}`;
539
+ } else t === "fit" && (n = !!(this.isAllSelected() && a === 0 || l === 0), h = a > 0 ? `+${l}` : `${l} ${this.messages.selected}`);
540
+ return d`<calcite-chip class=${r({
535
541
  chip: !0,
536
- [r.chipInvisible]: a
537
- })} .label=${c} .scale=${s} title=${c ?? m} value ${b(n)}>${c}</calcite-chip>`;
542
+ [c.chipInvisible]: n
543
+ })} .label=${h} .scale=${s} title=${h ?? m} value ${b(o)}>${h}</calcite-chip>`;
538
544
  }
539
545
  renderSelectedIndicatorChipCompact() {
540
546
  const { compactSelectionDisplay: e, selectionDisplay: t, getSelectedItems: i, scale: s, selectedHiddenChipsCount: l } = this;
541
- let o, n;
547
+ let a, o;
542
548
  if (e) {
543
- const a = i().length;
544
- this.isAllSelected() ? o = !0 : t === "fit" ? (o = !(l > 0), n = `${l || 0}`) : t === "single" && (o = !(a > 0), n = `${a}`);
549
+ const n = i().length;
550
+ this.isAllSelected() ? a = !0 : t === "fit" ? (a = !(l > 0), o = `${l || 0}`) : t === "single" && (a = !(n > 0), o = `${n}`);
545
551
  } else
546
- o = !0;
547
- return d`<calcite-chip class=${h({
552
+ a = !0;
553
+ return d`<calcite-chip class=${r({
548
554
  chip: !0,
549
- [r.chipInvisible]: o
550
- })} .label=${n} .scale=${s} title=${n ?? m} value>${n}</calcite-chip>`;
555
+ [c.chipInvisible]: a
556
+ })} .label=${o} .scale=${s} title=${o ?? m} value>${o}</calcite-chip>`;
551
557
  }
552
558
  renderInput() {
553
- const { guid: e, disabled: t, placeholder: i, selectionMode: s, selectedItems: l, open: o } = this, n = x(s), a = l[0], c = !o && n && !!a && !this.filterText;
554
- return d`<span class=${h({
559
+ const { guid: e, disabled: t, placeholder: i, selectionMode: s, selectedItems: l, open: a } = this, o = x(s), n = l[0], h = !a && o && !!n && !this.filterText;
560
+ return d`<span class=${r({
555
561
  "input-wrap": !0,
556
- "input-wrap--single": n
557
- })}>${c && f("label", d`<span class=${h({
562
+ "input-wrap--single": o
563
+ })}>${h && f("label", d`<span class=${r({
558
564
  label: !0,
559
- "label--icon": !!a?.icon
560
- })}>${$(a)}</span>`) || ""}${f("input", d`<input aria-activedescendant=${this.activeDescendant ?? m} aria-controls=${`${S}${e}`} aria-errormessage=${L.validationMessage} aria-owns=${`${S}${e}`} aria-autocomplete=list .ariaExpanded=${o} aria-haspopup=listbox .ariaInvalid=${this.status === "invalid"} .ariaLabel=${ge(this)} class=${h({
561
- [r.input]: !0,
565
+ "label--icon": !!n?.icon
566
+ })}>${$(n)}</span>`) || ""}${f("input", d`<input aria-activedescendant=${this.activeDescendant ?? m} aria-controls=${`${y}${e}`} aria-errormessage=${P.validationMessage} aria-owns=${`${y}${e}`} aria-autocomplete=list .ariaExpanded=${a} aria-haspopup=listbox .ariaInvalid=${this.status === "invalid"} .ariaLabel=${ge(this)} class=${r({
567
+ [c.input]: !0,
562
568
  "input--single": !0,
563
- [r.inputHidden]: c,
569
+ [c.inputHidden]: h,
564
570
  "input--icon": this.showingInlineIcon && !!this.placeholderIcon
565
- })} data-test-id=input .disabled=${t} .id=${`${G}${e}`} @focus=${this.comboboxFocusHandler} @input=${this.inputHandler} placeholder=${i ?? m} .readOnly=${this.readOnly} role=combobox .tabIndex=${this.activeChipIndex === -1 ? 0 : -1} type=text .value=${X(this.filterText ?? "")} ${b(this.textInput)}>`)}</span>`;
571
+ })} data-test-id=input .disabled=${t} .id=${`${B}${e}`} @focus=${this.comboboxFocusHandler} @input=${this.inputHandler} placeholder=${i ?? m} .readOnly=${this.readOnly} role=combobox .tabIndex=${this.activeChipIndex === -1 ? 0 : -1} type=text .value=${N(this.filterText ?? "")} ${b(this.textInput)}>`)}</span>`;
566
572
  }
567
573
  renderListBoxOptions() {
568
- return this.filteredItems.map((e) => d`<li .ariaSelected=${e.selected} id=${(e.guid ? `${B}${e.guid}` : null) ?? m} role=option tabindex=-1>${e.heading || e.textLabel}</li>`);
574
+ return this.filteredItems.map((e) => d`<li .ariaLabel=${e.label} .ariaSelected=${e.selected} id=${(e.guid ? `${z}${e.guid}` : null) ?? m} role=option tabindex=-1>${e.heading || e.textLabel}</li>`);
569
575
  }
570
576
  renderFloatingUIContainer() {
571
577
  const { setFloatingEl: e, setContainerEl: t, open: i } = this, s = {
572
- [r.listContainer]: !0,
573
- [T.animation]: !0,
574
- [T.animationActive]: i
578
+ [c.listContainer]: !0,
579
+ [H.animation]: !0,
580
+ [H.animationActive]: i
575
581
  };
576
- return d`<div aria-hidden=true class=${h(r.floatingUIContainer)} ${b(e)}><div class=${h(s)} ${b(t)}><ul class=${h({ list: !0, "list--hide": !i })}><slot></slot></ul></div></div>`;
582
+ return d`<div aria-hidden=true class=${r(c.floatingUIContainer)} ${b(e)}><div class=${r(s)} ${b(t)}><ul class=${r({ list: !0, "list--hide": !i })}><slot></slot></ul></div></div>`;
577
583
  }
578
584
  renderSelectedOrPlaceholderIcon() {
579
- const { open: e, placeholderIcon: t, placeholderIconFlipRtl: i, selectedItems: s } = this, l = s[0], o = l?.icon, n = t && (e || !l);
580
- return this.showingInlineIcon && f("selected-placeholder-icon", d`<span class="icon-start"><calcite-icon class=${h({
581
- [r.selectedIcon]: !n,
582
- [r.placeholderIcon]: n
583
- })} .flipRtl=${n ? i : l.iconFlipRtl} .icon=${n ? t : o} .scale=${k(this.scale)}></calcite-icon></span>`) || "";
585
+ const { open: e, placeholderIcon: t, placeholderIconFlipRtl: i, selectedItems: s } = this, l = s[0], a = l?.icon, o = t && (e || !l);
586
+ return this.showingInlineIcon && f("selected-placeholder-icon", d`<span class="icon-start"><calcite-icon class=${r({
587
+ [c.selectedIcon]: !o,
588
+ [c.placeholderIcon]: o
589
+ })} .flipRtl=${o ? i : l.iconFlipRtl} .icon=${o ? t : a} .scale=${S(this.scale)}></calcite-icon></span>`) || "";
584
590
  }
585
591
  renderChevronIcon() {
586
592
  const { open: e } = this;
587
- return f("chevron", d`<span class="icon-end"><calcite-icon class=${h(r.icon)} .icon=${e ? "chevron-up" : "chevron-down"} .scale=${k(this.scale)}></calcite-icon></span>`);
593
+ return f("chevron", d`<span class="icon-end"><calcite-icon class=${r(c.icon)} .icon=${e ? "chevron-up" : "chevron-down"} .scale=${S(this.scale)}></calcite-icon></span>`);
588
594
  }
589
595
  render() {
590
- const { selectionDisplay: e, guid: t, label: i, open: s, readOnly: l } = this, o = x(this.selectionMode), n = e === "all", a = e === "single", c = !o && e === "fit", p = !this.clearDisabled && this.value?.length > 0;
591
- return me({ disabled: this.disabled, children: d`<div aria-live=polite class=${h({
596
+ const { selectionDisplay: e, guid: t, label: i, open: s, readOnly: l } = this, a = x(this.selectionMode), o = e === "all", n = e === "single", h = !a && e === "fit", p = !this.clearDisabled && this.value?.length > 0;
597
+ return me({ disabled: this.disabled, children: d`<div aria-live=polite class=${r({
592
598
  wrapper: !0,
593
- "wrapper--single": o || !this.selectedItems.length,
599
+ "wrapper--single": a || !this.selectedItems.length,
594
600
  "wrapper--active": s
595
- })} @click=${this.clickHandler} @keydown=${this.keyDownHandler} ${b(this.setReferenceEl)}>${this.renderSelectedOrPlaceholderIcon()}${f("grid", d`<div class=${h({
601
+ })} @click=${this.clickHandler} @keydown=${this.keyDownHandler} ${b(this.setReferenceEl)}>${this.renderSelectedOrPlaceholderIcon()}${f("grid", d`<div class=${r({
596
602
  "grid-input": !0,
597
- [r.selectionDisplayFit]: c,
598
- [r.selectionDisplaySingle]: a
599
- })} ${b(this.setChipContainerEl)}>${!o && !a && this.renderChips() || ""}${!o && !n && [
603
+ [c.selectionDisplayFit]: h,
604
+ [c.selectionDisplaySingle]: n
605
+ })} ${b(this.setChipContainerEl)}>${!a && !n && this.renderChips() || ""}${!a && !o && [
600
606
  this.renderSelectedIndicatorChip(),
601
607
  this.renderSelectedIndicatorChipCompact(),
602
608
  this.renderAllSelectedIndicatorChip(),
603
609
  this.renderAllSelectedIndicatorChipCompact()
604
- ] || ""}<label class="screen-readers-only" .htmlFor=${`${G}${t}`} .id=${`${R}${t}`}>${i}</label>${this.renderInput()}</div>`)}${!l && p ? f("close-button", De({ disabled: this.disabled, label: this.messages.clear, scale: this.scale })) : null}${!l && this.renderChevronIcon() || ""}</div><ul aria-labelledby=${`${R}${t}`} aria-multiselectable=true class="screen-readers-only" .id=${`${S}${t}`} role=listbox tabindex=-1>${this.renderListBoxOptions()}</ul>${this.renderFloatingUIContainer()}${de({ component: this })}${this.validationMessage && this.status === "invalid" ? ye({ icon: this.validationIcon, id: L.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
610
+ ] || ""}<label class=${r(c.screenReadersOnly)} .htmlFor=${`${B}${t}`} .id=${`${R}${t}`}>${i}</label>${this.renderInput()}</div>`)}${!l && p ? f("close-button", ke({ disabled: this.disabled, label: this.messages.clear, scale: this.scale })) : null}${!l && this.renderChevronIcon() || ""}</div><ul aria-labelledby=${`${R}${t}`} aria-multiselectable=true class=${r(c.screenReadersOnly)} .id=${`${y}${t}`} role=listbox tabindex=-1>${this.renderListBoxOptions()}</ul>${this.renderFloatingUIContainer()}${de({ component: this })}${this.validationMessage && this.status === "invalid" ? $e({ icon: this.validationIcon, id: P.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
605
611
  }
606
612
  }
607
613
  j("calcite-combobox", Ae);