@esri/calcite-components 5.1.1-next.5 → 5.1.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 (268) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/{6URRYJJC.js → 25SUELBY.js} +1 -1
  3. package/dist/cdn/{QKYRWKTU.js → 2J4U5E4U.js} +1 -1
  4. package/dist/cdn/{5UM2PD3Y.js → 2JJ5YBBT.js} +1 -1
  5. package/dist/cdn/{6JJSMJ5O.js → 2P3LOGHK.js} +1 -1
  6. package/dist/cdn/{6OQ7N7VS.js → 34ENIUR5.js} +1 -1
  7. package/dist/cdn/{V4PO6GRD.js → 3KWJQXAT.js} +1 -1
  8. package/dist/cdn/{MUUP34X3.js → 3RRY5HHA.js} +1 -1
  9. package/dist/cdn/{HHH7H3RQ.js → 3TYJSBP3.js} +1 -1
  10. package/dist/cdn/{7UQ4BXIA.js → 44HFP2I6.js} +1 -1
  11. package/dist/cdn/44VCOKJX.js +2 -0
  12. package/dist/cdn/{SY4OTCR3.js → 47Q2AE5B.js} +1 -1
  13. package/dist/cdn/{GLRM5ZT5.js → 4NUFBGFK.js} +1 -1
  14. package/dist/cdn/{7MDIWERA.js → 4UHTWXNV.js} +1 -1
  15. package/dist/cdn/{VG7NP4T6.js → 524MMG22.js} +1 -1
  16. package/dist/cdn/{5VR5L3IN.js → 5D7IEY6J.js} +1 -1
  17. package/dist/cdn/{EV4D2B4G.js → 5O6YGOJE.js} +1 -1
  18. package/dist/cdn/{ZD2AZI2C.js → 5VAPN2S2.js} +1 -1
  19. package/dist/cdn/5X2CR2NN.js +2 -0
  20. package/dist/cdn/{ZRMUXK2V.js → 6HRHKHF5.js} +1 -1
  21. package/dist/cdn/{IPV6SRQB.js → 6S3G75WP.js} +1 -1
  22. package/dist/cdn/6SZY5PY7.js +2 -0
  23. package/dist/cdn/{BJ4ABCUP.js → 6V3FX2W2.js} +1 -1
  24. package/dist/cdn/{6PNEL3GY.js → 6VDGKXTH.js} +1 -1
  25. package/dist/cdn/{L3DV3PDZ.js → 6VP3K6WL.js} +1 -1
  26. package/dist/cdn/{VPAYQE3N.js → 6X3QWKZL.js} +1 -1
  27. package/dist/cdn/{KLK5B7QV.js → 6XMUSNRS.js} +1 -1
  28. package/dist/cdn/{ZYP2R6KW.js → 7B4FOF3S.js} +1 -1
  29. package/dist/cdn/{ACHU3T7F.js → 7QS3Z4ZJ.js} +1 -1
  30. package/dist/cdn/{V4P7PWKU.js → 7SDGC2RW.js} +1 -1
  31. package/dist/cdn/A6V4I2J3.js +2 -0
  32. package/dist/cdn/{TR3GWZR3.js → ALLL4LZ4.js} +1 -1
  33. package/dist/cdn/{LW32DABQ.js → BCRYMNH7.js} +1 -1
  34. package/dist/cdn/{ZCF63ZNP.js → BSMPD6VA.js} +1 -1
  35. package/dist/cdn/{V7UCH3LL.js → C462ZIJD.js} +1 -1
  36. package/dist/cdn/{QJNZ4DGE.js → C4DW27AP.js} +1 -1
  37. package/dist/cdn/C4OX3FC4.js +2 -0
  38. package/dist/cdn/{QGJMSJYV.js → CDNETLLO.js} +1 -1
  39. package/dist/cdn/{5X5GP5QD.js → CENYPZ3Y.js} +1 -1
  40. package/dist/cdn/{YENIJIGH.js → CEWOZ7LP.js} +1 -1
  41. package/dist/cdn/{AQ3IFEKN.js → CM45J66U.js} +1 -1
  42. package/dist/cdn/{MUEVO64B.js → COXLBEPM.js} +1 -1
  43. package/dist/cdn/CVJBK7K3.js +2 -0
  44. package/dist/cdn/{LBC3QOSD.js → DDUIHGBF.js} +1 -1
  45. package/dist/cdn/{56OUAFHZ.js → DK3SDSZL.js} +1 -1
  46. package/dist/cdn/{U54ZTDU5.js → DP2TY4KH.js} +1 -1
  47. package/dist/cdn/{GKHYTKRX.js → E6X6BQLH.js} +1 -1
  48. package/dist/cdn/{7TWNW2BD.js → E7GXKIIO.js} +1 -1
  49. package/dist/cdn/{5KHTOS43.js → ECVX7SVS.js} +1 -1
  50. package/dist/cdn/{CY2QEKCK.js → ELXBBUY5.js} +1 -1
  51. package/dist/cdn/{GATVDTCX.js → EQKCU4NC.js} +1 -1
  52. package/dist/cdn/{7YW5YF3W.js → ETEMG44R.js} +1 -1
  53. package/dist/cdn/{JCCTCJBT.js → G2G6FHMB.js} +1 -1
  54. package/dist/cdn/{26TKJ45G.js → GCAYSD7G.js} +1 -1
  55. package/dist/cdn/{K3J3HP3C.js → GDFQSWZ7.js} +1 -1
  56. package/dist/cdn/{ZFON2VHB.js → GDYGEN45.js} +1 -1
  57. package/dist/cdn/{CISWZLPM.js → GTH6QFMV.js} +1 -1
  58. package/dist/cdn/{6HZDBIQR.js → HA65OOQD.js} +1 -1
  59. package/dist/cdn/HYIVUAZU.js +2 -0
  60. package/dist/cdn/{VOJ3FHN7.js → I4IDQ735.js} +1 -1
  61. package/dist/cdn/{YL72ZNRG.js → ICGT7C6U.js} +1 -1
  62. package/dist/cdn/{3WWVPHTN.js → ID2LCYSN.js} +1 -1
  63. package/dist/cdn/{M3IE6HID.js → IEWVQCQW.js} +1 -1
  64. package/dist/cdn/{FIDNERXC.js → IHYNJVS4.js} +1 -1
  65. package/dist/cdn/{SKUVMTOE.js → IMUM436K.js} +1 -1
  66. package/dist/cdn/{QAQYS3BO.js → IRANNKJ2.js} +1 -1
  67. package/dist/cdn/{4OKNI2ME.js → JCVLN6XL.js} +1 -1
  68. package/dist/cdn/{TQ74DQDG.js → JDVSVNSE.js} +1 -1
  69. package/dist/cdn/{HETBUMGG.js → JGCJVDJA.js} +1 -1
  70. package/dist/cdn/{UWMTXTYU.js → JPPCKAMD.js} +1 -1
  71. package/dist/cdn/{EOXVTTON.js → JSXQ6NFN.js} +1 -1
  72. package/dist/cdn/KCN4PBFZ.js +2 -0
  73. package/dist/cdn/{APBFB6S3.js → KJCVGOXF.js} +1 -1
  74. package/dist/cdn/{6PA56XE3.js → KLNQGCK2.js} +1 -1
  75. package/dist/cdn/KOWFGIAY.js +2 -0
  76. package/dist/cdn/{MKMBDYHE.js → KXD6O3ZI.js} +1 -1
  77. package/dist/cdn/{BZ2ZKLD7.js → L3D2OBOR.js} +1 -1
  78. package/dist/cdn/L5IKT3WY.js +2 -0
  79. package/dist/cdn/LGB6OAXT.js +2 -0
  80. package/dist/cdn/{KC4N5X3R.js → LI2CATYC.js} +1 -1
  81. package/dist/cdn/{5CZT7ZF2.js → LJSR66HF.js} +1 -1
  82. package/dist/cdn/{FMGMUK7H.js → LKYA2H2B.js} +1 -1
  83. package/dist/cdn/{GLODC255.js → LOJBKHVF.js} +1 -1
  84. package/dist/cdn/{4ZARBNVE.js → MHE72N53.js} +1 -1
  85. package/dist/cdn/{2UXB22NZ.js → MW5MGBT4.js} +1 -1
  86. package/dist/cdn/{ANS7V4RO.js → NBAYHB3K.js} +1 -1
  87. package/dist/cdn/{YHXTGLCG.js → NCSMOKFP.js} +1 -1
  88. package/dist/cdn/{ISATMK3J.js → ND7KY7GE.js} +1 -1
  89. package/dist/cdn/{4U2T5QCF.js → NG7BG3QY.js} +1 -1
  90. package/dist/cdn/NL77UDLL.js +2 -0
  91. package/dist/cdn/{WY23ABPE.js → NTD2BJWG.js} +1 -1
  92. package/dist/cdn/{2B22J6N7.js → ODGJXDZK.js} +1 -1
  93. package/dist/cdn/{YIUURHN4.js → ORIGVFX7.js} +1 -1
  94. package/dist/cdn/{AXVF2756.js → OWIJSXYV.js} +1 -1
  95. package/dist/cdn/{HWD5HVPG.js → OXCL3M4W.js} +1 -1
  96. package/dist/cdn/{FNQJGIT5.js → PB3LTBSS.js} +1 -1
  97. package/dist/cdn/{BTFUTGOB.js → PHEMAFCT.js} +1 -1
  98. package/dist/cdn/{ARP32LFE.js → PIR7PWBO.js} +1 -1
  99. package/dist/cdn/PM5MZR4Z.js +2 -0
  100. package/dist/cdn/{D5H6K3NA.js → Q4V5DVKS.js} +1 -1
  101. package/dist/cdn/{VWXOBCBN.js → Q56UST3A.js} +1 -1
  102. package/dist/cdn/{ZD5WXZ5Y.js → QC5NB4VL.js} +1 -1
  103. package/dist/cdn/{W3FK3ZCB.js → QEJBAQOY.js} +1 -1
  104. package/dist/cdn/{7P74AKWI.js → QGF4JJQO.js} +1 -1
  105. package/dist/cdn/{F7DJCE7J.js → QZJ7GLQ3.js} +1 -1
  106. package/dist/cdn/RK2LH73E.js +2 -0
  107. package/dist/cdn/{YDF4DHQ3.js → ROJYTRK6.js} +1 -1
  108. package/dist/cdn/{HIUFMP4S.js → RRKFBHMW.js} +1 -1
  109. package/dist/cdn/{H4DJFHRD.js → RUUD543Z.js} +1 -1
  110. package/dist/cdn/{J4CNKBKA.js → S2BIRHQ7.js} +1 -1
  111. package/dist/cdn/{T6AQWGKD.js → SJCWFQNF.js} +1 -1
  112. package/dist/cdn/SNJLHXVG.js +2 -0
  113. package/dist/cdn/{G2GTTVSE.js → SNY2QKQJ.js} +1 -1
  114. package/dist/cdn/{ZACTCZNT.js → ST6WRTR2.js} +1 -1
  115. package/dist/cdn/{FIIPI4TO.js → SW5TNX5V.js} +1 -1
  116. package/dist/cdn/SXXFODM6.js +2 -0
  117. package/dist/cdn/{ONJA74QA.js → TKK3AWQJ.js} +1 -1
  118. package/dist/cdn/{ZG5BEBIM.js → TTCZVBEF.js} +1 -1
  119. package/dist/cdn/{A7T3VN2V.js → TV47CRME.js} +1 -1
  120. package/dist/cdn/{KU7JKZKM.js → TVU7KEKM.js} +1 -1
  121. package/dist/cdn/{3BFO4M6M.js → TVYIJRI2.js} +1 -1
  122. package/dist/cdn/{KOB2L5OF.js → TWVXE232.js} +1 -1
  123. package/dist/cdn/{LYU2H6SF.js → TYQB2FN4.js} +1 -1
  124. package/dist/cdn/{RQWRV3MX.js → U4GRIQVY.js} +1 -1
  125. package/dist/cdn/{YWOGIBVU.js → U7OJQ4EC.js} +1 -1
  126. package/dist/cdn/{FGLX24UP.js → UCWB5EGV.js} +1 -1
  127. package/dist/cdn/{ODZLYUK3.js → UTVGUMUM.js} +1 -1
  128. package/dist/cdn/{WA2S45EI.js → V3X47NBI.js} +1 -1
  129. package/dist/cdn/{L4PX2B5Q.js → V7PYDILT.js} +1 -1
  130. package/dist/cdn/{27CKMD4S.js → V7YPIVAX.js} +1 -1
  131. package/dist/cdn/{WCQV2FD5.js → VDJMOKVP.js} +1 -1
  132. package/dist/cdn/{VOXGCDBD.js → VEZBAZZG.js} +1 -1
  133. package/dist/cdn/VXBJOP6X.js +2 -0
  134. package/dist/cdn/{OORT75JS.js → VZ2YR2UG.js} +1 -1
  135. package/dist/cdn/{WTNLCUMG.js → W57IL7KF.js} +1 -1
  136. package/dist/cdn/{F5LUOXQA.js → WCUO6JQN.js} +1 -1
  137. package/dist/cdn/{DBQJQXU6.js → WER7FADP.js} +1 -1
  138. package/dist/cdn/{3NAS4Q4X.js → WQCT4VLB.js} +1 -1
  139. package/dist/cdn/X3HV2NYH.js +2 -0
  140. package/dist/cdn/{JZQC7UCN.js → XRUJ4D7O.js} +1 -1
  141. package/dist/cdn/{LTTOM2CS.js → XT4GLBAQ.js} +1 -1
  142. package/dist/cdn/{D2VTJOPM.js → Y7O6UR4T.js} +1 -1
  143. package/dist/cdn/{LLESMANM.js → YHAJICJ2.js} +1 -1
  144. package/dist/cdn/{PWME5N37.js → YKL7MIG5.js} +1 -1
  145. package/dist/cdn/YYAYEKGB.js +2 -0
  146. package/dist/cdn/{2TUMH7BJ.js → Z3IP3JBL.js} +1 -1
  147. package/dist/cdn/ZK2W2KJX.js +2 -0
  148. package/dist/cdn/{QER5D477.js → ZOEJDQXA.js} +1 -1
  149. package/dist/cdn/{D2NNUCFT.js → ZRMTOZ3B.js} +1 -1
  150. package/dist/cdn/index.js +1 -1
  151. package/dist/chunks/ExpandToggle.js +1 -1
  152. package/dist/chunks/date.js +3 -3
  153. package/dist/chunks/dom.js +3 -15
  154. package/dist/chunks/floating-ui.js +1 -1
  155. package/dist/chunks/label.js +6 -6
  156. package/dist/chunks/locale.js +6 -3
  157. package/dist/chunks/manager.js +5 -5
  158. package/dist/chunks/resources10.js +63 -0
  159. package/dist/chunks/resources5.js +27 -52
  160. package/dist/chunks/resources6.js +48 -45
  161. package/dist/chunks/resources7.js +49 -7
  162. package/dist/chunks/resources8.js +9 -11
  163. package/dist/chunks/resources9.js +4 -48
  164. package/dist/chunks/runtime.js +4 -4
  165. package/dist/chunks/utils2.js +59 -6
  166. package/dist/components/calcite-accordion-item/customElement.d.ts +6 -6
  167. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  168. package/dist/components/calcite-alert/customElement.d.ts +2 -2
  169. package/dist/components/calcite-alert/customElement.js +4 -6
  170. package/dist/components/calcite-autocomplete/customElement.d.ts +16 -16
  171. package/dist/components/calcite-autocomplete/customElement.js +4 -4
  172. package/dist/components/calcite-autocomplete-item/customElement.d.ts +5 -5
  173. package/dist/components/calcite-avatar/customElement.d.ts +5 -5
  174. package/dist/components/calcite-card/customElement.d.ts +1 -1
  175. package/dist/components/calcite-carousel/customElement.js +6 -5
  176. package/dist/components/calcite-checkbox/customElement.d.ts +4 -4
  177. package/dist/components/calcite-checkbox/customElement.js +1 -1
  178. package/dist/components/calcite-chip/customElement.js +1 -27
  179. package/dist/components/calcite-chip-group/customElement.js +1 -1
  180. package/dist/components/calcite-color-picker/customElement.js +1 -1
  181. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  182. package/dist/components/calcite-combobox/customElement.js +286 -132
  183. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  184. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  185. package/dist/components/calcite-date-picker/customElement.js +1 -1
  186. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  187. package/dist/components/calcite-date-picker-month/customElement.js +11 -2
  188. package/dist/components/calcite-dialog/customElement.js +8 -8
  189. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  190. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  191. package/dist/components/calcite-flow/customElement.d.ts +2 -2
  192. package/dist/components/calcite-flow/customElement.js +1 -1
  193. package/dist/components/calcite-flow-item/customElement.js +2 -2
  194. package/dist/components/calcite-input/customElement.js +5 -2
  195. package/dist/components/calcite-input-date-picker/customElement.js +5 -10
  196. package/dist/components/calcite-input-text/customElement.js +2 -2
  197. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  198. package/dist/components/calcite-list/customElement.d.ts +4 -4
  199. package/dist/components/calcite-list/customElement.js +6 -5
  200. package/dist/components/calcite-list-item/customElement.d.ts +6 -6
  201. package/dist/components/calcite-list-item/customElement.js +21 -14
  202. package/dist/components/calcite-list-item-group/customElement.d.ts +1 -1
  203. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  204. package/dist/components/calcite-loader/customElement.js +3 -3
  205. package/dist/components/calcite-menu-item/customElement.d.ts +7 -7
  206. package/dist/components/calcite-menu-item/customElement.js +0 -3
  207. package/dist/components/calcite-meter/customElement.d.ts +6 -6
  208. package/dist/components/calcite-meter/customElement.js +7 -14
  209. package/dist/components/calcite-pagination/customElement.d.ts +1 -1
  210. package/dist/components/calcite-pagination/customElement.js +0 -3
  211. package/dist/components/calcite-panel/customElement.d.ts +6 -6
  212. package/dist/components/calcite-panel/customElement.js +1 -1
  213. package/dist/components/calcite-popover/customElement.d.ts +4 -4
  214. package/dist/components/calcite-popover/customElement.js +1 -1
  215. package/dist/components/calcite-progress/customElement.d.ts +2 -2
  216. package/dist/components/calcite-radio-button/customElement.d.ts +5 -5
  217. package/dist/components/calcite-radio-button/customElement.js +1 -1
  218. package/dist/components/calcite-radio-button-group/customElement.d.ts +4 -4
  219. package/dist/components/calcite-radio-button-group/customElement.js +3 -3
  220. package/dist/components/calcite-rating/customElement.d.ts +7 -7
  221. package/dist/components/calcite-rating/customElement.js +9 -13
  222. package/dist/components/calcite-sheet/customElement.js +27 -32
  223. package/dist/components/calcite-stack/customElement.js +1 -1
  224. package/dist/controllers/useSortable.d.ts +2 -2
  225. package/dist/docs/api.json +1 -1
  226. package/dist/docs/docs.json +1 -1
  227. package/dist/docs/supported-browsers.json +1 -1
  228. package/dist/docs/vscode.html-custom-data.json +1 -1
  229. package/dist/docs/web-types.json +1 -1
  230. package/dist/loader.js +2 -2
  231. package/dist/utils/dom.d.ts +1 -1
  232. package/package.json +9 -8
  233. package/dist/cdn/4YU7KVLN.js +0 -2
  234. package/dist/cdn/AJKRULVQ.js +0 -2
  235. package/dist/cdn/AP2LDRUV.js +0 -2
  236. package/dist/cdn/BDZQSO2J.js +0 -2
  237. package/dist/cdn/BQES6LWB.js +0 -2
  238. package/dist/cdn/DYWNKQ25.js +0 -2
  239. package/dist/cdn/ECNYDS76.js +0 -2
  240. package/dist/cdn/H4MCSFNA.js +0 -2
  241. package/dist/cdn/H4QDWLO2.js +0 -2
  242. package/dist/cdn/KNKMPJAL.js +0 -2
  243. package/dist/cdn/M47XC6PF.js +0 -2
  244. package/dist/cdn/MR5GODA3.js +0 -2
  245. package/dist/cdn/P3CJF65O.js +0 -2
  246. package/dist/cdn/RX6W4SRU.js +0 -2
  247. package/dist/cdn/SB5RUV2I.js +0 -2
  248. package/dist/cdn/SSDV2Z4W.js +0 -2
  249. package/dist/cdn/TL7FQYNH.js +0 -2
  250. package/dist/cdn/VNLB6ONW.js +0 -2
  251. package/dist/cdn/VPGSTQTT.js +0 -2
  252. package/dist/cdn/assets/icon/orientedImageryFullSuperimpose16.json +0 -1
  253. package/dist/cdn/assets/icon/orientedImageryFullSuperimpose24.json +0 -1
  254. package/dist/cdn/assets/icon/orientedImageryFullSuperimpose32.json +0 -1
  255. package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose16.json +0 -1
  256. package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose24.json +0 -1
  257. package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose32.json +0 -1
  258. package/dist/cdn/assets/icon/orientedImagerySceneOnly16.json +0 -1
  259. package/dist/cdn/assets/icon/orientedImagerySceneOnly24.json +0 -1
  260. package/dist/cdn/assets/icon/orientedImagerySceneOnly32.json +0 -1
  261. package/dist/cdn/assets/icon/parquetFeatureLayer16.json +0 -1
  262. package/dist/cdn/assets/icon/parquetFeatureLayer24.json +0 -1
  263. package/dist/cdn/assets/icon/parquetFeatureLayer32.json +0 -1
  264. /package/dist/cdn/{IYGANVDT.js → 72YUATHS.js} +0 -0
  265. /package/dist/cdn/{MYDCGCGV.js → IIA2H2SU.js} +0 -0
  266. /package/dist/cdn/{DCWL5FUH.js → LKL63VXR.js} +0 -0
  267. /package/dist/cdn/{UM6KICQF.js → MO64UYDH.js} +0 -0
  268. /package/dist/cdn/{R6HABYRV.js → Q55YTOMB.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { isServer } from "lit";
3
3
  import { n as nodeListToArray } from "./dom.js";
4
- import { A as AllComboboxChildrenSelector, a as ComboboxItemSelector, b as ComboboxItemGroupSelector } from "./resources5.js";
4
+ import { A as AllComboboxChildrenSelector, a as ComboboxItemSelector, b as ComboboxItemGroupSelector } from "./resources6.js";
5
5
  function getAncestors(element) {
6
6
  const parent = element.parentElement?.closest(AllComboboxChildrenSelector);
7
7
  const grandparent = parent?.parentElement?.closest(AllComboboxChildrenSelector);
@@ -47,12 +47,65 @@ function isSingleLike(selectionMode) {
47
47
  function getLabel(item) {
48
48
  return item.shortHeading || item.heading;
49
49
  }
50
+ function orderByPrevious(items, previousItems) {
51
+ if (items.length < 2 || previousItems.length === 0) {
52
+ return items;
53
+ }
54
+ const previousItemOrder = new Map(previousItems.map((item, index) => [item, index]));
55
+ return [...items].sort((a, b) => {
56
+ const aOrder = previousItemOrder.get(a);
57
+ const bOrder = previousItemOrder.get(b);
58
+ if (aOrder !== void 0 && bOrder !== void 0) {
59
+ return aOrder - bOrder;
60
+ }
61
+ if (aOrder !== void 0) {
62
+ return -1;
63
+ }
64
+ if (bOrder !== void 0) {
65
+ return 1;
66
+ }
67
+ return 0;
68
+ });
69
+ }
70
+ function consumeValue(counts, value) {
71
+ const count = counts.get(value) ?? 0;
72
+ if (count === 0) {
73
+ return false;
74
+ }
75
+ if (count === 1) {
76
+ counts.delete(value);
77
+ } else {
78
+ counts.set(value, count - 1);
79
+ }
80
+ return true;
81
+ }
82
+ function orderValuesByPrevious(selectedValues, previousValues) {
83
+ if (selectedValues.length < 2 || previousValues.length === 0) {
84
+ return selectedValues;
85
+ }
86
+ const selectedValueCounts = /* @__PURE__ */ new Map();
87
+ selectedValues.forEach((value) => {
88
+ selectedValueCounts.set(value, (selectedValueCounts.get(value) ?? 0) + 1);
89
+ });
90
+ const orderedSelectedValues = previousValues.filter((value) => consumeValue(selectedValueCounts, value));
91
+ if (orderedSelectedValues.length === 0) {
92
+ return selectedValues;
93
+ }
94
+ selectedValues.forEach((value) => {
95
+ if (consumeValue(selectedValueCounts, value)) {
96
+ orderedSelectedValues.push(value);
97
+ }
98
+ });
99
+ return orderedSelectedValues;
100
+ }
50
101
  export {
51
- getItemAncestors as a,
52
- getItemChildren as b,
53
- getAncestors as c,
54
- getDepth as d,
102
+ orderByPrevious as a,
103
+ getItemAncestors as b,
104
+ getItemChildren as c,
105
+ getAncestors as d,
106
+ getDepth as e,
55
107
  getLabel as g,
56
108
  hasActiveChildren as h,
57
- isSingleLike as i
109
+ isSingleLike as i,
110
+ orderValuesByPrevious as o
58
111
  };
@@ -31,7 +31,7 @@ import type { HeadingLevel } from "../functional/Heading.js";
31
31
  */
32
32
  export abstract class AccordionItem extends LitElement {
33
33
  /** Specifies a description for the component. */
34
- accessor description: string | undefined;
34
+ accessor description: string;
35
35
  /**
36
36
  * When `true`, expands the component and its contents.
37
37
  *
@@ -39,15 +39,15 @@ export abstract class AccordionItem extends LitElement {
39
39
  */
40
40
  accessor expanded: boolean;
41
41
  /** Specifies the component's heading text. */
42
- accessor heading: string | undefined;
42
+ accessor heading: string;
43
43
  /** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
44
- accessor headingLevel: HeadingLevel | undefined;
44
+ accessor headingLevel: HeadingLevel;
45
45
  /** Specifies an icon to display at the end of the component. */
46
- accessor iconEnd: IconName | undefined;
46
+ accessor iconEnd: IconName;
47
47
  /** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
48
- accessor iconFlipRtl: FlipContext | undefined;
48
+ accessor iconFlipRtl: FlipContext;
49
49
  /** Specifies an icon to display at the start of the component. */
50
- accessor iconStart: IconName | undefined;
50
+ accessor iconStart: IconName;
51
51
  /** Overrides individual strings used by the component. */
52
52
  accessor messageOverrides: {
53
53
  collapse?: string;
@@ -70,7 +70,7 @@ class AccordionItem extends LitElement {
70
70
  this.listenOn(document, "calciteInternalAccordionItemsSync", this.accordionItemSyncHandler);
71
71
  }
72
72
  static {
73
- this.properties = { hasActionsEnd: [16, {}, { state: true }], hasActionsStart: [16, {}, { state: true }], hasContentEnd: [16, {}, { state: true }], hasContentStart: [16, {}, { state: true }], description: 1, expanded: [7, {}, { reflect: true, type: Boolean }], heading: 1, iconEnd: [3, { type: String }, { reflect: true }], iconFlipRtl: [3, {}, { reflect: true }], appearance: 1, headingLevel: [11, {}, { type: Number, reflect: true }], iconPosition: 1, iconStart: [3, { type: String }, { reflect: true }], iconType: 1, scale: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }] };
73
+ this.properties = { hasActionsEnd: [16, {}, { state: true }], hasActionsStart: [16, {}, { state: true }], hasContentEnd: [16, {}, { state: true }], hasContentStart: [16, {}, { state: true }], accordionParent: [0, {}, { attribute: false }], description: 1, expanded: [7, {}, { reflect: true, type: Boolean }], heading: 1, iconEnd: [3, { type: String }, { reflect: true }], iconFlipRtl: [3, {}, { reflect: true }], appearance: 1, headingLevel: [11, {}, { type: Number, reflect: true }], iconPosition: 1, iconStart: [3, { type: String }, { reflect: true }], iconType: 1, scale: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }] };
74
74
  }
75
75
  static {
76
76
  this.styles = styles;
@@ -37,7 +37,7 @@ export abstract class Alert extends LitElement {
37
37
  * When `true`, shows a default recommended icon. Alternatively,
38
38
  * pass a Calcite UI Icon name to display a specific icon.
39
39
  */
40
- accessor icon: IconName | boolean | undefined;
40
+ accessor icon: IconName | boolean;
41
41
  /**
42
42
  * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`).
43
43
  *
@@ -59,7 +59,7 @@ export abstract class Alert extends LitElement {
59
59
  /** Overrides individual strings used by the component. */
60
60
  accessor messageOverrides: { close?: string; };
61
61
  /** Specifies the Unicode numeral system used by the component for localization. */
62
- accessor numberingSystem: NumberingSystem | undefined;
62
+ accessor numberingSystem: NumberingSystem;
63
63
  /**
64
64
  * When `true`, displays and positions the component.
65
65
  *
@@ -95,9 +95,7 @@ const manager = new AlertManager();
95
95
  class Alert extends LitElement {
96
96
  constructor() {
97
97
  super(...arguments);
98
- this.initialOpenTime = -1;
99
- this.isHovered = false;
100
- this.lastMouseOverBegin = -1;
98
+ this.autoCloseTimeoutId = null;
101
99
  this.transitionProp = "opacity";
102
100
  this.totalHoverTime = 0;
103
101
  this.totalOpenTime = 0;
@@ -228,7 +226,7 @@ class Alert extends LitElement {
228
226
  }
229
227
  clearAutoCloseTimeout() {
230
228
  window.clearTimeout(this.autoCloseTimeoutId);
231
- this.autoCloseTimeoutId = void 0;
229
+ this.autoCloseTimeoutId = null;
232
230
  }
233
231
  closeAlert() {
234
232
  this.open = false;
@@ -288,10 +286,10 @@ class Alert extends LitElement {
288
286
  [`${CSS.container}--${placement}`]: true,
289
287
  [CSS.containerEmbedded]: this.embedded,
290
288
  [CSS.focused]: this.isFocused
291
- })} @pointerenter=${this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : void 0} @pointerleave=${this.autoClose ? this.handleMouseLeave : void 0} .popover=${!this.embedded ? "manual" : void 0} ${ref(this.transitionRef)}>${effectiveIcon && this.renderIcon(effectiveIcon) || ""}<div class=${safeClassMap(CSS.textContainer)} @focusin=${this.autoClose && this.autoCloseTimeoutId ? this.handleKeyBoardFocus : void 0} @focusout=${this.autoClose ? this.handleKeyBoardBlur : void 0}><slot name=${SLOTS.title}></slot><slot name=${SLOTS.message}></slot><slot name=${SLOTS.link}></slot></div>${this.renderActionsEnd()}${hasQueuedAlerts ? this.renderQueueCount() : void 0}${this.renderCloseButton()}${open && active && autoClose ? html`<div class=${safeClassMap(CSS.dismissProgress)}></div>` : void 0}</div>`;
289
+ })} @pointerenter=${this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : null} @pointerleave=${this.autoClose ? this.handleMouseLeave : null} .popover=${!this.embedded ? "manual" : null} ${ref(this.transitionRef)}>${effectiveIcon && this.renderIcon(effectiveIcon) || ""}<div class=${safeClassMap(CSS.textContainer)} @focusin=${this.autoClose && this.autoCloseTimeoutId ? this.handleKeyBoardFocus : null} @focusout=${this.autoClose ? this.handleKeyBoardBlur : null}><slot name=${SLOTS.title}></slot><slot name=${SLOTS.message}></slot><slot name=${SLOTS.link}></slot></div>${this.renderActionsEnd()}${hasQueuedAlerts ? this.renderQueueCount() : null}${this.renderCloseButton()}${open && active && autoClose ? html`<div class=${safeClassMap(CSS.dismissProgress)}></div>` : null}</div>`;
292
290
  }
293
291
  renderCloseButton() {
294
- return html`<calcite-action class=${safeClassMap(CSS.close)} icon=x .label=${this.messages.close} @click=${this.closeAlert} @focusin=${this.autoClose ? this.handleKeyBoardFocus : void 0} @focusout=${this.autoClose ? this.handleKeyBoardBlur : void 0} .scale=${this.scale} .text=${this.messages.close}></calcite-action>`;
292
+ return html`<calcite-action class=${safeClassMap(CSS.close)} icon=x .label=${this.messages.close} @click=${this.closeAlert} @focusin=${this.autoClose ? this.handleKeyBoardFocus : null} @focusout=${this.autoClose ? this.handleKeyBoardBlur : null} .scale=${this.scale} .text=${this.messages.close}></calcite-action>`;
295
293
  }
296
294
  renderQueueCount() {
297
295
  const { openAlertCount } = this;
@@ -46,7 +46,7 @@ export abstract class Autocomplete extends LitElement {
46
46
  *
47
47
  * @see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
48
48
  */
49
- accessor autocomplete: AutoFill | undefined;
49
+ accessor autocomplete: AutoFill;
50
50
  /**
51
51
  * When `true`, interaction is prevented and the component is displayed with lower opacity.
52
52
  *
@@ -54,19 +54,19 @@ export abstract class Autocomplete extends LitElement {
54
54
  */
55
55
  accessor disabled: boolean;
56
56
  /** Specifies the component's fallback `placement` for slotted content when it's initial or specified `placement` has insufficient space available. */
57
- accessor flipPlacements: FlipPlacement[] | undefined;
57
+ accessor flipPlacements: FlipPlacement[];
58
58
  /**
59
59
  * Specifies the `id` of the component's associated form.
60
60
  *
61
61
  * When not set, the component is associated with its ancestor form element, if one exists.
62
62
  */
63
- accessor form: string | undefined;
63
+ accessor form: string;
64
64
  /**
65
65
  * When `true` or not set, shows a default recommended icon. Alternatively, pass a Calcite UI Icon name to display a specific icon.
66
66
  *
67
67
  * To hide the default icon, set the property to `false` using JavaScript.
68
68
  */
69
- accessor icon: IconName | boolean | undefined;
69
+ accessor icon: IconName | boolean;
70
70
  /**
71
71
  * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`).
72
72
  *
@@ -74,11 +74,11 @@ export abstract class Autocomplete extends LitElement {
74
74
  */
75
75
  accessor iconFlipRtl: boolean;
76
76
  /** Specifies the text typed into the component and is used to filter slotted `autocomplete-item`s. */
77
- accessor inputValue: string | undefined;
77
+ accessor inputValue: string;
78
78
  /** Specifies an accessible label for the component. */
79
- accessor label: string | undefined;
79
+ accessor label: string;
80
80
  /** Specifies the component's label text. */
81
- accessor labelText: string | undefined;
81
+ accessor labelText: string;
82
82
  /**
83
83
  * When `true`, a busy indicator is displayed.
84
84
  *
@@ -91,7 +91,7 @@ export abstract class Autocomplete extends LitElement {
91
91
  *
92
92
  * @see [MDN - maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
93
93
  */
94
- accessor maxLength: number | undefined;
94
+ accessor maxLength: number;
95
95
  /** Overrides individual strings used by the component. */
96
96
  accessor messageOverrides: {
97
97
  clear?: string;
@@ -104,7 +104,7 @@ export abstract class Autocomplete extends LitElement {
104
104
  *
105
105
  * @see [MDN - minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
106
106
  */
107
- accessor minLength: number | undefined;
107
+ accessor minLength: number;
108
108
  /**
109
109
  * Specifies the name of the component.
110
110
  *
@@ -112,7 +112,7 @@ export abstract class Autocomplete extends LitElement {
112
112
  *
113
113
  * @see [MDN - name](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name)
114
114
  */
115
- accessor name: string | undefined;
115
+ accessor name: string;
116
116
  /**
117
117
  * When `true`, displays and positions the component.
118
118
  *
@@ -136,13 +136,13 @@ export abstract class Autocomplete extends LitElement {
136
136
  *
137
137
  * @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern)
138
138
  */
139
- accessor pattern: string | undefined;
139
+ accessor pattern: string;
140
140
  /**
141
141
  * Specifies placeholder text for the component.
142
142
  *
143
143
  * @see [MDN - placeholder](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder)
144
144
  */
145
- accessor placeholder: string | undefined;
145
+ accessor placeholder: string;
146
146
  /**
147
147
  * Determines where the component will be positioned relative to the container element.
148
148
  *
@@ -150,7 +150,7 @@ export abstract class Autocomplete extends LitElement {
150
150
  */
151
151
  accessor placement: MenuPlacement;
152
152
  /** Specifies the component's prefix text. */
153
- accessor prefixText: string | undefined;
153
+ accessor prefixText: string;
154
154
  /**
155
155
  * When `true`, the component's value can be read, but cannot be modified.
156
156
  *
@@ -178,7 +178,7 @@ export abstract class Autocomplete extends LitElement {
178
178
  */
179
179
  accessor status: Status;
180
180
  /** Specifies the component's suffix text. */
181
- accessor suffixText: string | undefined;
181
+ accessor suffixText: string;
182
182
  /**
183
183
  * When `true` and the component is `open`, disables top layer placement.
184
184
  *
@@ -189,9 +189,9 @@ export abstract class Autocomplete extends LitElement {
189
189
  */
190
190
  accessor topLayerDisabled: boolean;
191
191
  /** Specifies the validation icon to display under the component. */
192
- accessor validationIcon: IconName | boolean | undefined;
192
+ accessor validationIcon: IconName | boolean;
193
193
  /** Specifies the validation message to display under the component. */
194
- accessor validationMessage: string | undefined;
194
+ accessor validationMessage: string;
195
195
  /**
196
196
  * The component's current validation state.
197
197
  *
@@ -130,7 +130,7 @@ class Autocomplete extends LitElement {
130
130
  this.transitionRef.value?.scrollTo(options);
131
131
  }
132
132
  async selectText() {
133
- return this.referenceEl?.selectText();
133
+ return this.referenceEl.selectText();
134
134
  }
135
135
  async setFocus(options) {
136
136
  return this.focusSetter(() => this.referenceEl, options);
@@ -163,7 +163,7 @@ class Autocomplete extends LitElement {
163
163
  }
164
164
  let itemsAndGroupsUpdated = false;
165
165
  if (changes.has("inputValue") && (this.hasUpdated || this.inputValue)) {
166
- this.inputValueMatchPattern = this.inputValue ? new RegExp(`(${escapeRegExp(this.inputValue)})`, "i") : void 0;
166
+ this.inputValueMatchPattern = this.inputValue && new RegExp(`(${escapeRegExp(this.inputValue)})`, "i");
167
167
  this.updateItems();
168
168
  this.updateGroups();
169
169
  itemsAndGroupsUpdated = true;
@@ -260,7 +260,7 @@ class Autocomplete extends LitElement {
260
260
  });
261
261
  }
262
262
  updateItems() {
263
- let activeDescendant = "";
263
+ let activeDescendant = null;
264
264
  this.items.forEach((item) => {
265
265
  item.scale = this.scale;
266
266
  item.inputValueMatchPattern = this.inputValueMatchPattern;
@@ -386,7 +386,7 @@ class Autocomplete extends LitElement {
386
386
  const autofocus = this.el.autofocus;
387
387
  const enterKeyHint = this.el.enterKeyHint;
388
388
  const inputMode = this.el.inputMode;
389
- return this.interactiveContainer({ disabled, children: html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div class=${safeClassMap(CSS.inputContainer)}><calcite-input .alignment=${this.alignment} aria-activedescendant=${this.activeDescendant ?? nothing} aria-controls=${listId ?? nothing} aria-label=${getLabelText(this) ?? nothing} aria-owns=${listId ?? nothing} aria-autocomplete=list .ariaExpanded=${isOpen} aria-haspopup=listbox .autocomplete=${this.autocomplete} .autofocus=${autofocus} class=${safeClassMap(CSS.input)} clearable .disabled=${disabled} enterkeyhint=${enterKeyHint ?? nothing} .form=${this.form} .icon=${this.icon ?? true} .iconFlipRtl=${this.iconFlipRtl} id=${inputId ?? nothing} inputmode=${inputMode ?? nothing} .label=${this.label} .loading=${this.loading} .maxLength=${this.maxLength} .messageOverrides=${this.messages} .minLength=${this.minLength} .name=${this.name} @calciteInputChange=${this.changeHandler} @calciteInputInput=${this.inputHandler} @calciteInternalInputFocus=${this.handleInputFocus} @click=${this.inputClickHandler} @keydown=${this.keyDownHandler} .pattern=${this.pattern} .placeholder=${this.placeholder} .prefixText=${this.prefixText} .readOnly=${this.readOnly} .required=${this.required} role=combobox .scale=${this.scale} .status=${this.status} .suffixText=${this.suffixText} type=search .value=${this.inputValue} ${ref(this.setReferenceEl)}></calcite-input>${this.renderListBox()}<div class=${safeClassMap({
389
+ return this.interactiveContainer({ disabled, children: html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div class=${safeClassMap(CSS.inputContainer)}><calcite-input .alignment=${this.alignment} aria-activedescendant=${this.activeDescendant ?? nothing} aria-controls=${listId ?? nothing} aria-label=${getLabelText(this) ?? nothing} aria-owns=${listId ?? nothing} aria-autocomplete=list .ariaExpanded=${isOpen} aria-haspopup=listbox .autocomplete=${this.autocomplete} .autofocus=${autofocus} class=${safeClassMap(CSS.input)} clearable .disabled=${disabled} enterkeyhint=${enterKeyHint ?? nothing} .form=${this.form} .icon=${this.icon ?? true} .iconFlipRtl=${this.iconFlipRtl} id=${inputId ?? nothing} inputmode=${inputMode ?? nothing} .label=${this.label} .loading=${this.loading} .maxLength=${this.maxLength} .messageOverrides=${this.messages} .minLength=${this.minLength} .name=${this.name} @click=${this.inputClickHandler} @keydown=${this.keyDownHandler} @calciteInputChange=${this.changeHandler} @calciteInputInput=${this.inputHandler} @calciteInternalInputFocus=${this.handleInputFocus} .pattern=${this.pattern} .placeholder=${this.placeholder} .prefixText=${this.prefixText} .readOnly=${this.readOnly} .required=${this.required} role=combobox .scale=${this.scale} .status=${this.status} .suffixText=${this.suffixText} type=search .value=${this.inputValue} ${ref(this.setReferenceEl)}></calcite-input>${this.renderListBox()}<div class=${safeClassMap({
390
390
  [CSS.contentContainer]: true,
391
391
  [CSS.floatingUIContainer]: true,
392
392
  [CSS.floatingUIContainerActive]: isOpen
@@ -13,7 +13,7 @@ import type { IconName } from "../calcite-icon/interfaces.js";
13
13
  */
14
14
  export abstract class AutocompleteItem extends LitElement {
15
15
  /** Specifies a description for the component. Displays below the label text. */
16
- accessor description: string | undefined;
16
+ accessor description: string;
17
17
  /**
18
18
  * When `true`, interaction is prevented and the component is displayed with lower opacity.
19
19
  *
@@ -27,13 +27,13 @@ export abstract class AutocompleteItem extends LitElement {
27
27
  */
28
28
  accessor heading: string;
29
29
  /** Specifies an icon to display at the end of the component. */
30
- accessor iconEnd: IconName | undefined;
30
+ accessor iconEnd: IconName;
31
31
  /** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
32
- accessor iconFlipRtl: FlipContext | undefined;
32
+ accessor iconFlipRtl: FlipContext;
33
33
  /** Specifies an icon to display at the start of the component. */
34
- accessor iconStart: IconName | undefined;
34
+ accessor iconStart: IconName;
35
35
  /** Specifies an accessible label for the component. */
36
- accessor label: string | undefined;
36
+ accessor label: string;
37
37
  /**
38
38
  * When `true`, the component is selected.
39
39
  *
@@ -9,9 +9,9 @@ import type { Scale } from "../interfaces.js";
9
9
  */
10
10
  export abstract class Avatar extends LitElement {
11
11
  /** Specifies the full name of the user. When `label` and `thumbnail` are not defined, specifies the accessible name for the component. */
12
- accessor fullName: string | undefined;
12
+ accessor fullName: string;
13
13
  /** Specifies alternative text when `thumbnail` is defined, otherwise specifies an accessible label for the component. */
14
- accessor label: string | undefined;
14
+ accessor label: string;
15
15
  /**
16
16
  * Specifies the size of the component.
17
17
  *
@@ -19,9 +19,9 @@ export abstract class Avatar extends LitElement {
19
19
  */
20
20
  accessor scale: Scale;
21
21
  /** Specifies the `src` to an image. If the image is private, include an access token in the URL. */
22
- accessor thumbnail: string | undefined;
22
+ accessor thumbnail: string;
23
23
  /** Specifies the unique id of the user. */
24
- accessor userId: string | undefined;
24
+ accessor userId: string;
25
25
  /** Specifies the username of the user. */
26
- accessor username: string | undefined;
26
+ accessor username: string;
27
27
  }
@@ -30,7 +30,7 @@ export abstract class Card extends LitElement {
30
30
  */
31
31
  accessor disabled: boolean;
32
32
  /** Specifies an accessible label for the component. */
33
- accessor label: string | undefined;
33
+ accessor label: string;
34
34
  /**
35
35
  * When `true`, a busy indicator is displayed.
36
36
  *
@@ -70,6 +70,8 @@ class Carousel extends LitElement {
70
70
  this.setMaxItemsToBreakpoint(width);
71
71
  };
72
72
  this.resizeObserver = createObserver("resize", (entries) => entries.forEach(this.resizeHandler));
73
+ this.slideDurationInterval = null;
74
+ this.slideInterval = null;
73
75
  this.tabListRef = createRef();
74
76
  this.timer = () => {
75
77
  let time = this.slideDurationRemaining;
@@ -95,7 +97,6 @@ class Carousel extends LitElement {
95
97
  this.items = [];
96
98
  this.maxItems = centerItemsByBreakpoint.xxsmall;
97
99
  this.playing = false;
98
- this.selectedIndex = 0;
99
100
  this.slideDurationRemaining = 1;
100
101
  this.suspendedDueToFocus = false;
101
102
  this.suspendedDueToHover = false;
@@ -121,7 +122,7 @@ class Carousel extends LitElement {
121
122
  this.styles = styles;
122
123
  }
123
124
  async play() {
124
- if (this.playing || !this.hasMultiple || this.autoplay !== "" && this.autoplay !== true && this.autoplay !== "paused") {
125
+ if (this.playing || !this.hasMultiple || this.autoplay !== "" && !this.autoplay && this.autoplay !== "paused") {
125
126
  return;
126
127
  }
127
128
  this.handlePlay(true);
@@ -286,7 +287,7 @@ class Carousel extends LitElement {
286
287
  }
287
288
  }
288
289
  handleItemSelection(event) {
289
- const item = event.currentTarget;
290
+ const item = event.target;
290
291
  const requestedPosition = parseInt(item.dataset.index);
291
292
  if (requestedPosition === this.selectedIndex) {
292
293
  return;
@@ -354,7 +355,7 @@ class Carousel extends LitElement {
354
355
  case " ":
355
356
  case "Enter":
356
357
  event.preventDefault();
357
- if (this.autoplay === "" || this.autoplay === true || this.autoplay === "paused") {
358
+ if (this.autoplay === "" || this.autoplay || this.autoplay === "paused") {
358
359
  this.toggleRotation();
359
360
  }
360
361
  break;
@@ -424,7 +425,7 @@ class Carousel extends LitElement {
424
425
  return html`<div class=${safeClassMap({
425
426
  [CSS.pagination]: true,
426
427
  [CSS.containerOverlaid]: this.controlOverlay
427
- })} @keydown=${this.tabListKeyDownHandler} ${ref(this.tabListRef)}>${(this.playing || this.autoplay === "" || this.autoplay === true || this.autoplay === "paused") && this.hasMultiple && this.renderRotationControl() || ""}${this.arrowType === "inline" && this.hasMultiple && this.renderArrow("previous") || ""}${this.paginationDisabled ? this.renderPaginationAriaLive() : this.renderPaginationItems()}${this.arrowType === "inline" && this.hasMultiple && this.renderArrow("next") || ""}</div>`;
428
+ })} @keydown=${this.tabListKeyDownHandler} ${ref(this.tabListRef)}>${(this.playing || this.autoplay === "" || this.autoplay || this.autoplay === "paused") && this.hasMultiple && this.renderRotationControl() || ""}${this.arrowType === "inline" && this.hasMultiple && this.renderArrow("previous") || ""}${this.paginationDisabled ? this.renderPaginationAriaLive() : this.renderPaginationItems()}${this.arrowType === "inline" && this.hasMultiple && this.renderArrow("next") || ""}</div>`;
428
429
  }
429
430
  renderPaginationItems() {
430
431
  const { selectedIndex, maxItems, items, label, handleItemSelection } = this;
@@ -27,7 +27,7 @@ export abstract class Checkbox extends LitElement {
27
27
  *
28
28
  * When not set, the component is associated with its ancestor form element, if one exists.
29
29
  */
30
- accessor form: string | undefined;
30
+ accessor form: string;
31
31
  /**
32
32
  * When `true`, the component is initially indeterminate, which is independent from its `checked` value.
33
33
  *
@@ -38,13 +38,13 @@ export abstract class Checkbox extends LitElement {
38
38
  */
39
39
  accessor indeterminate: boolean;
40
40
  /** Specifies an accessible label for the component. */
41
- accessor label: string | undefined;
41
+ accessor label: string;
42
42
  /** Specifies the component's label text. */
43
- accessor labelText: string | undefined;
43
+ accessor labelText: string;
44
44
  /** Overrides individual strings used by the component. */
45
45
  accessor messageOverrides: { required?: string; };
46
46
  /** Specifies the name of the component. Required to pass the component's `value` on form submission. */
47
- accessor name: string | undefined;
47
+ accessor name: string;
48
48
  /**
49
49
  * When `true` and the component resides in a form,
50
50
  * the component must have a value in order for the form to submit.
@@ -15,7 +15,7 @@ const CSS = {
15
15
  toggle: "toggle",
16
16
  check: "check-svg"
17
17
  };
18
- const styles = css`: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([scale=s]) .check-svg,:host([scale=s]) .toggle{inline-size:var(--calcite-checkbox-size, .75rem);block-size:var(--calcite-checkbox-size, .75rem)}:host([scale=m]) .check-svg,:host([scale=m]) .toggle{inline-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base));block-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base))}:host([scale=l]) .check-svg,:host([scale=l]) .toggle{inline-size:var(--calcite-checkbox-size, 1rem);block-size:var(--calcite-checkbox-size, 1rem)}:host{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-color-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-shadow:inset 0 0 0 1px var(--calcite-checkbox-border-color, var(--calcite-color-border-input));color:var(--calcite-checkbox-icon-color, var(--calcite-color-background))}:host([status=invalid]:not([checked])) .check-svg{box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-brand-hover)}:host([status=invalid]:not([checked])) .toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([status=invalid]:not([checked])) .toggle:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-color-brand);box-shadow:inset 0 0 0 1px var(--calcite-color-brand)}:host([checked]) .toggle:hover .check-svg,:host([indeterminate]) .toggle:hover .check-svg{background-color:var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}:host([checked]) .toggle:active .check-svg,:host([indeterminate]) .toggle:active .check-svg{background-color:var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press));box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}.toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}.toggle{position:relative;outline-color:transparent}.toggle:active,.toggle:focus,.toggle:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.toggle:after,.toggle:before{inset-block-start:50%;inset-inline-start:50%;min-block-size:1.5rem;min-inline-size:1.5rem;position:absolute}.toggle:not(.calcite--rtl):after{content:"";transform:translate(-50%) translateY(-50%)}.toggle.calcite--rtl:before{content:"";transform:translate(50%) translateY(-50%)}@media(forced-colors:active){.check-svg{border:1px solid currentColor}}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
18
+ const styles = css`: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([scale=s]) .check-svg,:host([scale=s]) .toggle{inline-size:var(--calcite-checkbox-size, .75rem);block-size:var(--calcite-checkbox-size, .75rem)}:host([scale=m]) .check-svg,:host([scale=m]) .toggle{inline-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base));block-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base))}:host([scale=l]) .check-svg,:host([scale=l]) .toggle{inline-size:var(--calcite-checkbox-size, 1rem);block-size:var(--calcite-checkbox-size, 1rem)}:host{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-color-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-shadow:inset 0 0 0 1px var(--calcite-checkbox-border-color, var(--calcite-color-border-input));color:var(--calcite-checkbox-icon-color, var(--calcite-color-background))}:host([status=invalid]:not([checked])) .check-svg{box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([status=invalid]:not([checked])) .toggle:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-color-brand);box-shadow:inset 0 0 0 1px var(--calcite-color-brand)}:host([checked]) .toggle:hover .check-svg,:host([indeterminate]) .toggle:hover .check-svg{background-color:var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}:host([checked]) .toggle:active .check-svg,:host([indeterminate]) .toggle:active .check-svg{background-color:var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press));box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}.toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}.toggle{position:relative;outline-color:transparent}.toggle:active,.toggle:focus,.toggle:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.toggle:after,.toggle:before{inset-block-start:50%;inset-inline-start:50%;min-block-size:1.5rem;min-inline-size:1.5rem;position:absolute}.toggle:not(.calcite--rtl):after{content:"";transform:translate(-50%) translateY(-50%)}.toggle.calcite--rtl:before{content:"";transform:translate(50%) translateY(-50%)}@media(forced-colors:active){.check-svg{border:1px solid currentColor}}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
19
19
  class Checkbox extends LitElement {
20
20
  constructor() {
21
21
  super();
@@ -9,33 +9,7 @@ import { g as getIconScale } from "../../chunks/component.js";
9
9
  import { u as useT9n } from "../../chunks/useT9n.js";
10
10
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
11
11
  import { u as useInteractive } from "../../chunks/useInteractive.js";
12
- const CSS = {
13
- title: "title",
14
- close: "close",
15
- imageContainer: "image-container",
16
- chipIcon: "chip-icon",
17
- textSlotted: "text--slotted",
18
- container: "container",
19
- imageSlotted: "image--slotted",
20
- closable: "closable",
21
- multiple: "multiple",
22
- single: "single",
23
- selectable: "selectable",
24
- selectIcon: "select-icon",
25
- selectIconActive: "select-icon--active",
26
- nonInteractive: "non-interactive",
27
- isCircle: "is-circle",
28
- selected: "selected"
29
- };
30
- const SLOTS = {
31
- image: "image"
32
- };
33
- const ICONS = {
34
- close: "x",
35
- checkedSingle: "circle-f",
36
- uncheckedMultiple: "square",
37
- checkedMultiple: "check-square-f"
38
- };
12
+ import { S as SLOTS, C as CSS, I as ICONS } from "../../chunks/resources5.js";
39
13
  const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-flex;cursor:default;border-radius:var(--calcite-chip-corner-radius, 9999px)}:host([closed]){display:none}:host([appearance=outline]) .container,:host([appearance=outline-fill]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-1))}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-brand));--calcite-internal-chip-selectable-hover-border-color: var(--calcite-chip-border-color, var(--calcite-color-brand));--calcite-internal-chip-selectable-active-border-color: var( --calcite-chip-border-color, var(--calcite-color-brand) )}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-border-inverse))}:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-border-1))}:host([appearance=outline]){--calcite-internal-chip-background-color: transparent}:host([appearance=outline-fill]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-foreground-1))}:host([appearance=solid]){--calcite-internal-chip-border-color: transparent;--calcite-internal-chip-selectable-hover-border-color: transparent;--calcite-internal-chip-selectable-active-border-color: transparent}:host([appearance=solid]):host([kind=brand]),:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-close-background-color-hover: var(--calcite-color-transparent-inverse-hover);--calcite-internal-chip-close-background-color-press: var(--calcite-color-transparent-inverse-press);--calcite-internal-chip-close-icon-color: var(--calcite-color-text-inverse);--calcite-internal-chip-close-icon-color-hover: var(--calcite-color-text-inverse)}:host([appearance=solid]):host([kind=brand]) .container,:host([appearance=solid]):host([kind=inverse]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-inverse))}:host([appearance=solid]):host([kind=brand]) .close,:host([appearance=solid]):host([kind=inverse]) .close{--calcite-color-focus: var(--calcite-color-text-inverse)}:host([appearance=solid]):host([kind=brand]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-brand))}:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-inverse))}:host([appearance=solid]):host([kind=neutral]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-foreground-2))}:host([kind=neutral]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-1))}:host([selected]) .select-icon{opacity:1}:host([appearance=solid]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-3);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-border-2)}:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-inverse-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-inverse-press)}:host([appearance=solid]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-brand-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-2);--calcite-internal-chip-selectable-hover-border-color: var(--calcite-color-border-input);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-foreground-3);--calcite-internal-chip-selectable-active-border-color: var(--calcite-color-text-3)}:host([appearance=outline-fill]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-2);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-foreground-3)}:host([appearance=outline]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-transparent-hover);--calcite-internal-chip-selectable-hover-border-color: var(--calcite-color-border-input);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-transparent-press);--calcite-internal-chip-selectable-active-border-color: var(--calcite-color-text-3)}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-transparent-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-transparent-press)}:host([scale=s]){--calcite-internal-chip-close-padding: var(--calcite-spacing-none)}:host([scale=s]) .container{--calcite-internal-chip-block-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-font-size: var(--calcite-font-size--2);--calcite-internal-chip-icon-size: var(--calcite-size-xs, 1rem) ;--calcite-internal-chip-icon-space: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-image-size: var(--calcite-spacing-xl, 1.25rem) ;--calcite-internal-chip-title-space: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-close-size: var(--calcite-size-xs, 1rem) }:host([scale=s]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px);--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-px)}:host([scale=s]) .container.image--slotted:has(.chip-icon),:host([scale=s]) .container.image--slotted.text--slotted,:host([scale=s]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: var(--calcite-spacing-xxs, .25rem) }:host([scale=s]) .container.image--slotted:not(.text--slotted,:has(.chip-icon)),:host([scale=s]) .container.image--slotted:not(.selectable){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=s]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: .125rem }:host([scale=s]) .container.multiple:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=s]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.multiple:not(.is-circle).image--slotted:not(.text--slotted){--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=m]){--calcite-internal-chip-close-padding: var(--calcite-spacing-xxs)}:host([scale=m]) .container{--calcite-internal-chip-block-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-font-size: var(--calcite-font-size--1);--calcite-internal-chip-icon-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-icon-space: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-image-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-title-space: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-close-size: var(--calcite-size-sm, 1.5rem) }:host([scale=m]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-px);--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=m]) .container.image--slotted:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.image--slotted:has(.chip-icon),:host([scale=m]) .container.image--slotted.text--slotted,:host([scale=m]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: var(--calcite-spacing-xs, .375rem) }:host([scale=m]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-px);--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=m]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=m]) .container.multiple:not(.is-circle){--calcite-internal-chip-select-space-x-end: .125rem ;--calcite-internal-chip-select-space-x-start: .125rem }:host([scale=m]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.closable:not(.is-circle){--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]){--calcite-internal-chip-close-padding: var(--calcite-spacing-xxs)}:host([scale=l]) .container{--calcite-internal-chip-block-size: 2.75rem ;--calcite-internal-chip-container-space-x-end: .5rem ;--calcite-internal-chip-container-space-x-start: .5rem ;--calcite-internal-chip-font-size: var(--calcite-font-size-0);--calcite-internal-chip-icon-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-icon-space: .5rem ;--calcite-internal-chip-image-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-title-space: .5rem ;--calcite-internal-close-size: var(--calcite-size-md, 2rem) }:host([scale=l]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]) .container.image--slotted:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=l]) .container.image--slotted:has(.chip-icon),:host([scale=l]) .container.image--slotted.text--slotted,:host([scale=l]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: .5rem }:host([scale=l]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=l]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=l]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-select-space-x-start: .5rem }:host([scale=l]) .container.multiple:not(.is-circle){--calcite-internal-chip-container-space-x-start: .5rem ;--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .75rem }:host([scale=l]) .container.closable:not(.is-circle){--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xs, .375rem) }.container{box-sizing:border-box;display:inline-flex;block-size:100%;max-inline-size:100%;align-items:center;justify-content:center;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-internal-chip-background-color);border-color:var(--calcite-internal-chip-border-color);border-radius:var(--calcite-chip-corner-radius, 9999px);border-width:var(--calcite-border-width-sm);border-style:solid;font-size:var(--calcite-internal-chip-font-size, var(--calcite-font-size));padding-inline-start:var(--calcite-internal-chip-container-space-x-start);padding-inline-end:var(--calcite-internal-chip-container-space-x-end);block-size:var(--calcite-internal-chip-block-size, auto);inline-size:var(--calcite-internal-chip-inline-size, auto);min-inline-size:var(--calcite-internal-chip-block-size, auto)}.container:hover .select-icon--active{opacity:var(--calcite-opacity-full, 1)}.container.selectable{cursor:pointer}.container.selectable:hover{background-color:var(--calcite-internal-chip-selectable-hover-background-color);border-color:var(--calcite-internal-chip-selectable-hover-border-color)}.container.selectable:active{background-color:var(--calcite-internal-chip-selectable-active-background-color);border-color:var(--calcite-internal-chip-selectable-active-border-color)}.container:not(.non-interactive):focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container.text--slotted .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container:not(.text--slotted) .title,.container:not(.image--slotted) .image-container{display:none}.container.is-circle .chip-icon,.container.is-circle .image-container{padding:var(--calcite-spacing-none, 0)}.title{padding-inline:var(--calcite-internal-chip-title-space)}.image-container{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;pointer-events:none;block-size:var(--calcite-internal-chip-image-size, var(--calcite-spacing-xxl, 1.5rem));inline-size:var(--calcite-internal-chip-image-size, var(--calcite-spacing-xxl, 1.5rem));padding-inline-start:var(--calcite-spacing-none, 0);padding-inline-end:var(--calcite-internal-chip-image-space-x-end, 0)}.chip-icon{position:relative;margin-block:0px;display:inline-flex;transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-chip-icon-color, var(--calcite-chip-text-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))));padding-inline:var(--calcite-internal-chip-icon-space, var(--calcite-spacing-xs, .375rem))}.select-icon{align-self:center;justify-content:center;align-items:center;display:flex;inset-block-start:-1px;position:absolute;visibility:hidden;inline-size:auto;opacity:0;transition:opacity .15s ease-in-out,inline-size .15s ease-in-out;color:var(--calcite-chip-select-icon-color, currentColor)}.select-icon.select-icon--active{position:relative;visibility:visible;opacity:var(--calcite-opacity-half, .5);color:var(--calcite-chip-select-icon-color-press, var(--calcite-chip-select-icon-color-pressed, var(--calcite-chip-select-icon-color, currentColor)))}.multiple .select-icon{display:flex;align-items:center;justify-content:center}.multiple .select-icon,.single .select-icon--active{padding-inline-start:var(--calcite-internal-chip-select-space-x-start);padding-inline-end:var(--calcite-internal-chip-select-space-x-end);block-size:var(--calcite-internal-chip-icon-size, var(--calcite-spacing-xxl, 1.5rem));inline-size:var(--calcite-internal-chip-icon-size, var(--calcite-spacing-xxl, 1.5rem))}.close{--calcite-action-background-color-hover: var(--calcite-internal-chip-close-background-color-hover);--calcite-action-background-color-press: var(--calcite-internal-chip-close-background-color-press);--calcite-action-corner-radius: var(--calcite-corner-radius-pill);--calcite-action-text-color: var( --calcite-chip-close-icon-color, var(--calcite-close-icon-color, var(--calcite-internal-chip-close-icon-color)) );--calcite-action-text-color-press: var( --calcite-chip-close-icon-color, var(--calcite-close-icon-color, var(--calcite-internal-chip-close-icon-color-hover)) );--calcite-icon-color: var(--calcite-action-text-color);--calcite-internal-action-min-height: unset;--calcite-internal-action-spacing: var(--calcite-internal-chip-close-padding)}slot[name=image]::slotted(*){display:flex;block-size:100%;inline-size:100%;overflow:hidden;border-radius:50%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
40
14
  class Chip extends LitElement {
41
15
  constructor() {
@@ -91,7 +91,7 @@ class ChipGroup extends LitElement {
91
91
  event.stopPropagation();
92
92
  }
93
93
  updateItems(event) {
94
- const itemsFromSlot = this.slotRef.value?.assignedElements({ flatten: true }).filter((el) => el?.matches("calcite-chip")) || [];
94
+ const itemsFromSlot = this.slotRef.value?.assignedElements({ flatten: true }).filter((el) => el?.matches("calcite-chip"));
95
95
  this.items = !event ? itemsFromSlot : slotChangeGetAssignedElements(event);
96
96
  if (this.items?.length < 1) {
97
97
  return;
@@ -879,7 +879,7 @@ class ColorPicker extends LitElement {
879
879
  })}</div></calcite-tab>`);
880
880
  }
881
881
  renderChannel(value, index, ariaLabel, direction, suffix) {
882
- return keyed(index, html`<calcite-input-number class=${safeClassMap(CSS.channel)} data-channel-index=${index ?? nothing} dir=${direction ?? nothing} .label=${ariaLabel} lang=${this.messages._lang ?? nothing} number-button-type=none .numberingSystem=${this.numberingSystem} @calciteInputNumberChange=${this.handleChannelChange} @calciteInputNumberInput=${this.handleChannelInput} @calciteInternalInputNumberBlur=${this.handleChannelBlur} @calciteInternalInputNumberFocus=${this.handleChannelFocus} @keydown=${this.handleKeyDown} .scale=${this.scale === "l" ? "m" : "s"} style=${safeStyleMap({
882
+ return keyed(index, html`<calcite-input-number class=${safeClassMap(CSS.channel)} data-channel-index=${index ?? nothing} dir=${direction ?? nothing} .label=${ariaLabel} lang=${this.messages._lang ?? nothing} number-button-type=none .numberingSystem=${this.numberingSystem} @keydown=${this.handleKeyDown} @calciteInputNumberChange=${this.handleChannelChange} @calciteInputNumberInput=${this.handleChannelInput} @calciteInternalInputNumberBlur=${this.handleChannelBlur} @calciteInternalInputNumberFocus=${this.handleChannelFocus} .scale=${this.scale === "l" ? "m" : "s"} style=${safeStyleMap({
883
883
  marginLeft: index > 0 && !(this.scale === "s" && this.alphaChannel && index === 3) ? "-1px" : ""
884
884
  })} .suffixText=${suffix} .value=${value?.toString()}></calcite-input-number>`);
885
885
  }
@@ -223,7 +223,7 @@ class ColorPickerHexInput extends LitElement {
223
223
  const hexInputValue = this.formatHexForInternalInput(value);
224
224
  const opacityInputValue = this.formatOpacityForInternalInput(internalColor);
225
225
  const inputScale = scale === "l" ? "m" : "s";
226
- return html`<div class=${safeClassMap(CSS.container)}><calcite-input-text class=${safeClassMap(CSS.hexInput)} .label=${messages?.hex || hexLabel} .maxLength=${this.alphaChannel ? 8 : 6} @calciteInputTextChange=${this.onHexInputChange} @calciteInputTextInput=${this.onHexInputInput} @calciteInternalInputTextBlur=${this.onHexInputBlur} @calciteInternalInputTextFocus=${this.onInputFocus} @keydown=${this.onInputKeyDown} @paste=${this.onHexInputPaste} prefix-text=# .scale=${inputScale} .value=${hexInputValue} ${ref(this.hexInputRef)}></calcite-input-text>${alphaChannel ? keyed("opacity-input", html`<calcite-input-number class=${safeClassMap(CSS.opacityInput)} .label=${messages?.opacity} .max=${OPACITY_LIMITS.max} max-length=3 .min=${OPACITY_LIMITS.min} number-button-type=none .numberingSystem=${this.numberingSystem} @calciteInputNumberInput=${this.onOpacityInputInput} @calciteInternalInputNumberBlur=${this.onOpacityInputBlur} @calciteInternalInputNumberFocus=${this.onInputFocus} @keydown=${this.onInputKeyDown} .scale=${inputScale} suffix-text=% .value=${opacityInputValue} ${ref(this.opacityInputRef)}></calcite-input-number>`) : null}</div>`;
226
+ return html`<div class=${safeClassMap(CSS.container)}><calcite-input-text class=${safeClassMap(CSS.hexInput)} .label=${messages?.hex || hexLabel} .maxLength=${this.alphaChannel ? 8 : 6} @keydown=${this.onInputKeyDown} @paste=${this.onHexInputPaste} @calciteInputTextChange=${this.onHexInputChange} @calciteInputTextInput=${this.onHexInputInput} @calciteInternalInputTextBlur=${this.onHexInputBlur} @calciteInternalInputTextFocus=${this.onInputFocus} prefix-text=# .scale=${inputScale} .value=${hexInputValue} ${ref(this.hexInputRef)}></calcite-input-text>${alphaChannel ? keyed("opacity-input", html`<calcite-input-number class=${safeClassMap(CSS.opacityInput)} .label=${messages?.opacity} .max=${OPACITY_LIMITS.max} max-length=3 .min=${OPACITY_LIMITS.min} number-button-type=none .numberingSystem=${this.numberingSystem} @keydown=${this.onInputKeyDown} @calciteInputNumberInput=${this.onOpacityInputInput} @calciteInternalInputNumberBlur=${this.onOpacityInputBlur} @calciteInternalInputNumberFocus=${this.onInputFocus} .scale=${inputScale} suffix-text=% .value=${opacityInputValue} ${ref(this.opacityInputRef)}></calcite-input-number>`) : null}</div>`;
227
227
  }
228
228
  }
229
229
  customElement("calcite-color-picker-hex-input", ColorPickerHexInput);