@esri/calcite-components 5.1.0-next.9 → 5.1.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (512) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/2DXIZU6R.js +2 -0
  3. package/dist/cdn/2IWGUAWA.js +2 -0
  4. package/dist/cdn/{EB4M47KA.js → 2JARICGO.js} +1 -1
  5. package/dist/cdn/{34EJXQYF.js → 2KGEPRUF.js} +1 -1
  6. package/dist/cdn/3BPI3O6E.js +2 -0
  7. package/dist/cdn/3RBTYVUD.js +2 -0
  8. package/dist/cdn/{67QHQNZF.js → 3SYGBKWR.js} +1 -1
  9. package/dist/cdn/{U4MTAQRM.js → 4CB2O5QG.js} +1 -1
  10. package/dist/cdn/{VQHTMUYJ.js → 4ERCP6XO.js} +1 -1
  11. package/dist/cdn/4FUCDFGK.js +2 -0
  12. package/dist/cdn/4SJPPENI.js +2 -0
  13. package/dist/cdn/56VYPYFF.js +2 -0
  14. package/dist/cdn/5AMCYZ6W.js +2 -0
  15. package/dist/cdn/5BXGV5ZQ.js +2 -0
  16. package/dist/cdn/{CNR7IJIS.js → 5IISC3HD.js} +1 -1
  17. package/dist/cdn/5IYNIOCS.js +2 -0
  18. package/dist/cdn/5TNWLRB6.js +2 -0
  19. package/dist/cdn/{3GXLGKZV.js → 6BDNCIAA.js} +1 -1
  20. package/dist/cdn/{BG7CCT2Q.js → 6CEBXQSC.js} +1 -1
  21. package/dist/cdn/6H3CYBMZ.js +2 -0
  22. package/dist/cdn/6J6NDAUF.js +2 -0
  23. package/dist/cdn/{5TJGOI64.js → 6JKXCCTG.js} +1 -1
  24. package/dist/cdn/6RRQ22LO.js +2 -0
  25. package/dist/cdn/6SLXQWU4.js +2 -0
  26. package/dist/cdn/75I5SJ4X.js +2 -0
  27. package/dist/cdn/7RS475AK.js +2 -0
  28. package/dist/cdn/{6C76CPWO.js → 7TFO6D5F.js} +1 -1
  29. package/dist/cdn/{MVA4NE6I.js → A7U6OOWG.js} +1 -1
  30. package/dist/cdn/AA3NSH3U.js +2 -0
  31. package/dist/cdn/ACAPEXIF.js +2 -0
  32. package/dist/cdn/ADCXSL56.js +2 -0
  33. package/dist/cdn/{XW3UC4FN.js → AGRNONET.js} +1 -1
  34. package/dist/cdn/ALDJUEQ6.js +2 -0
  35. package/dist/cdn/{BPIG37CO.js → AVN7GDNI.js} +1 -1
  36. package/dist/cdn/AZHDD5QW.js +2 -0
  37. package/dist/cdn/B5SIF6E3.js +2 -0
  38. package/dist/cdn/BAMXLXKZ.js +2 -0
  39. package/dist/cdn/{UKC7JB7P.js → BXRNRAM4.js} +1 -1
  40. package/dist/cdn/BZVESTLV.js +2 -0
  41. package/dist/cdn/CAU3D7O6.js +2 -0
  42. package/dist/cdn/CQMZOIYT.js +3 -0
  43. package/dist/cdn/D2IHG7U6.js +2 -0
  44. package/dist/cdn/D36FINW3.js +2 -0
  45. package/dist/cdn/DBKOSP2J.js +2 -0
  46. package/dist/cdn/DCLKVSQL.js +2 -0
  47. package/dist/cdn/{EHIAXJAL.js → DCWL5FUH.js} +1 -1
  48. package/dist/cdn/DEUPIV3Z.js +2 -0
  49. package/dist/cdn/DPVKTTT4.js +2 -0
  50. package/dist/cdn/E4DM4ZJR.js +2 -0
  51. package/dist/cdn/{RPT5BJMD.js → EBCHRNQU.js} +1 -1
  52. package/dist/cdn/EGJCIQXC.js +2 -0
  53. package/dist/cdn/FAMRE5HY.js +2 -0
  54. package/dist/cdn/{TKH5LW5O.js → FDZMMKDF.js} +1 -1
  55. package/dist/cdn/{AS2M2ZWD.js → FFQ7TM4J.js} +1 -1
  56. package/dist/cdn/FHT56RXI.js +2 -0
  57. package/dist/cdn/{EIXE62NK.js → FSIXQSOF.js} +1 -1
  58. package/dist/cdn/{S7XHDLIF.js → FVT27KQD.js} +1 -1
  59. package/dist/cdn/G456YVPG.js +2 -0
  60. package/dist/cdn/G4W7YKDH.js +2 -0
  61. package/dist/cdn/GQ7DKFA5.js +2 -0
  62. package/dist/cdn/GQDKVK3D.js +2 -0
  63. package/dist/cdn/GURB6TIJ.js +2 -0
  64. package/dist/cdn/{WBJUAZ65.js → H2UXQDON.js} +1 -1
  65. package/dist/cdn/{CMVTCAFL.js → HEIK7T3T.js} +1 -1
  66. package/dist/cdn/{JVAE3MLA.js → HLF26T4C.js} +1 -1
  67. package/dist/cdn/HP3ZLN4B.js +2 -0
  68. package/dist/cdn/{YMHR4PKM.js → HVGZLEM5.js} +1 -1
  69. package/dist/cdn/HVO2U7ZI.js +2 -0
  70. package/dist/cdn/{ZGJRTQBX.js → HZZHIGHG.js} +1 -1
  71. package/dist/cdn/{PIU3YYLU.js → I3XG7K6C.js} +1 -1
  72. package/dist/cdn/{LQD663MA.js → I4VNM5NL.js} +1 -1
  73. package/dist/cdn/{HQDFIE2B.js → IEF6JYBC.js} +1 -1
  74. package/dist/cdn/{TXRFE5GH.js → ILQX7Y7Q.js} +1 -1
  75. package/dist/cdn/INTGSZ5Z.js +2 -0
  76. package/dist/cdn/{NJRKH5Q7.js → IPPMCVC6.js} +1 -1
  77. package/dist/cdn/{VOTW2RMD.js → IVWQJUEE.js} +1 -1
  78. package/dist/cdn/JHTPQLAI.js +2 -0
  79. package/dist/cdn/JHXH6UZJ.js +2 -0
  80. package/dist/cdn/{OQ2UCUQP.js → JOCO4XI3.js} +1 -1
  81. package/dist/cdn/{WEAILY72.js → KLCLUDIS.js} +1 -1
  82. package/dist/cdn/{7XBTO6NQ.js → KQCAFH4L.js} +1 -1
  83. package/dist/cdn/KTBY2CGR.js +2 -0
  84. package/dist/cdn/KUL73QJV.js +2 -0
  85. package/dist/cdn/{SHD6TE4R.js → KZ3LUSU2.js} +1 -1
  86. package/dist/cdn/{HZGU4N3I.js → L4A2ANF6.js} +1 -1
  87. package/dist/cdn/LJ4KTE6Y.js +2 -0
  88. package/dist/cdn/{BZGE52YU.js → LRZTZSHC.js} +1 -1
  89. package/dist/cdn/{IWG7JAQJ.js → LT4BKZ77.js} +1 -1
  90. package/dist/cdn/LZRGGTLJ.js +2 -0
  91. package/dist/cdn/{O7BFREIB.js → LZRUNHQB.js} +1 -1
  92. package/dist/cdn/{PFKFYB45.js → M4FJ2QZO.js} +1 -1
  93. package/dist/cdn/{JRWW665Q.js → MBFZ33SM.js} +1 -1
  94. package/dist/cdn/{CSOE3CJR.js → MJEQO4QJ.js} +1 -1
  95. package/dist/cdn/MLSILTYB.js +4 -0
  96. package/dist/cdn/MOOXNG3K.js +2 -0
  97. package/dist/cdn/MREXPRS4.js +2 -0
  98. package/dist/cdn/MUOYIJVV.js +2 -0
  99. package/dist/cdn/N5GIKXDL.js +2 -0
  100. package/dist/cdn/N7F4APVB.js +2 -0
  101. package/dist/cdn/{XUSE3II4.js → NIOQGKNW.js} +1 -1
  102. package/dist/cdn/O7YMPQUI.js +2 -0
  103. package/dist/cdn/{XJZLGVT6.js → PBNKEMBL.js} +1 -1
  104. package/dist/cdn/{6LA4PLL2.js → POYAO7CJ.js} +1 -1
  105. package/dist/cdn/QAASRSQZ.js +2 -0
  106. package/dist/cdn/{YM6QAFEQ.js → QGKI3OMJ.js} +1 -1
  107. package/dist/cdn/QO5UB5D4.js +2 -0
  108. package/dist/cdn/QXQDUUO7.js +2 -0
  109. package/dist/cdn/R7KZTTEV.js +2 -0
  110. package/dist/cdn/{QCDS2TXE.js → RF73TS72.js} +1 -1
  111. package/dist/cdn/{TTFCVVON.js → RMTFO2LM.js} +1 -1
  112. package/dist/cdn/{IZLDBAPA.js → S6DQQTW3.js} +1 -1
  113. package/dist/cdn/{YJHXVSEP.js → SFJW4TZX.js} +1 -1
  114. package/dist/cdn/{DYBHFMG7.js → SIAFDW7Y.js} +1 -1
  115. package/dist/cdn/SRXPPFYE.js +2 -0
  116. package/dist/cdn/{QULVDSNJ.js → SZD4HZMW.js} +1 -1
  117. package/dist/cdn/SZSMPM6E.js +2 -0
  118. package/dist/cdn/TOEE2LYN.js +2 -0
  119. package/dist/cdn/{BAMCFG7H.js → TZI723KV.js} +1 -1
  120. package/dist/cdn/U3EXF4ZG.js +2 -0
  121. package/dist/cdn/{E6EGKXUX.js → UDMEFBNA.js} +1 -1
  122. package/dist/cdn/UFURWY36.js +2 -0
  123. package/dist/cdn/UH5QPC23.js +2 -0
  124. package/dist/cdn/{L24DVRWE.js → UQ4U2WKO.js} +1 -1
  125. package/dist/cdn/URRCLJJL.js +2 -0
  126. package/dist/cdn/{BMRN6G4T.js → US2R5SI2.js} +1 -1
  127. package/dist/cdn/UZ6A3EVC.js +2 -0
  128. package/dist/cdn/V2R55PMZ.js +2 -0
  129. package/dist/cdn/VZDAEJEF.js +4 -0
  130. package/dist/cdn/{OPHJLVOH.js → W3AYPD7P.js} +1 -1
  131. package/dist/cdn/{RH6ZIP65.js → WGGFNK4Z.js} +1 -1
  132. package/dist/cdn/X3P7R4XF.js +2 -0
  133. package/dist/cdn/{3IHT5FIP.js → X7CHFMN5.js} +1 -1
  134. package/dist/cdn/XHP4ORWZ.js +2 -0
  135. package/dist/cdn/XLD2OUA2.js +2 -0
  136. package/dist/cdn/XM4MM6Q2.js +2 -0
  137. package/dist/cdn/{IJ7V345Q.js → XSAUQUSM.js} +1 -1
  138. package/dist/cdn/Y4RJBGTN.js +2 -0
  139. package/dist/cdn/{GGGN54CY.js → YK5IMHQT.js} +1 -1
  140. package/dist/cdn/YX2QYEVF.js +2 -0
  141. package/dist/cdn/Z3AYOD3V.js +2 -0
  142. package/dist/cdn/{C25ETLQX.js → ZHTE4PVO.js} +1 -1
  143. package/dist/cdn/{43FMFYKZ.js → ZJBIXCJU.js} +1 -1
  144. package/dist/cdn/ZLL3IOQH.js +2 -0
  145. package/dist/cdn/{I7BWPAOF.js → ZQRR6YTB.js} +1 -1
  146. package/dist/cdn/ZWHKM56M.js +2 -0
  147. package/dist/cdn/{7JGWCRII.js → ZX5NT7BW.js} +1 -1
  148. package/dist/cdn/assets/combobox/t9n/messages.ar.json +1 -1
  149. package/dist/cdn/assets/combobox/t9n/messages.bg.json +1 -1
  150. package/dist/cdn/assets/combobox/t9n/messages.bs.json +1 -1
  151. package/dist/cdn/assets/combobox/t9n/messages.ca.json +1 -1
  152. package/dist/cdn/assets/combobox/t9n/messages.cs.json +1 -1
  153. package/dist/cdn/assets/combobox/t9n/messages.da.json +1 -1
  154. package/dist/cdn/assets/combobox/t9n/messages.de.json +1 -1
  155. package/dist/cdn/assets/combobox/t9n/messages.el.json +1 -1
  156. package/dist/cdn/assets/combobox/t9n/messages.en.json +1 -1
  157. package/dist/cdn/assets/combobox/t9n/messages.es.json +1 -1
  158. package/dist/cdn/assets/combobox/t9n/messages.et.json +1 -1
  159. package/dist/cdn/assets/combobox/t9n/messages.fi.json +1 -1
  160. package/dist/cdn/assets/combobox/t9n/messages.fr.json +1 -1
  161. package/dist/cdn/assets/combobox/t9n/messages.he.json +1 -1
  162. package/dist/cdn/assets/combobox/t9n/messages.hr.json +1 -1
  163. package/dist/cdn/assets/combobox/t9n/messages.hu.json +1 -1
  164. package/dist/cdn/assets/combobox/t9n/messages.id.json +1 -1
  165. package/dist/cdn/assets/combobox/t9n/messages.it.json +1 -1
  166. package/dist/cdn/assets/combobox/t9n/messages.ja.json +1 -1
  167. package/dist/cdn/assets/combobox/t9n/messages.json +1 -1
  168. package/dist/cdn/assets/combobox/t9n/messages.ko.json +1 -1
  169. package/dist/cdn/assets/combobox/t9n/messages.lt.json +1 -1
  170. package/dist/cdn/assets/combobox/t9n/messages.lv.json +1 -1
  171. package/dist/cdn/assets/combobox/t9n/messages.nl.json +1 -1
  172. package/dist/cdn/assets/combobox/t9n/messages.no.json +1 -1
  173. package/dist/cdn/assets/combobox/t9n/messages.pl.json +1 -1
  174. package/dist/cdn/assets/combobox/t9n/messages.pt-BR.json +1 -1
  175. package/dist/cdn/assets/combobox/t9n/messages.pt-PT.json +1 -1
  176. package/dist/cdn/assets/combobox/t9n/messages.ro.json +1 -1
  177. package/dist/cdn/assets/combobox/t9n/messages.ru.json +1 -1
  178. package/dist/cdn/assets/combobox/t9n/messages.sk.json +1 -1
  179. package/dist/cdn/assets/combobox/t9n/messages.sl.json +1 -1
  180. package/dist/cdn/assets/combobox/t9n/messages.sr.json +1 -1
  181. package/dist/cdn/assets/combobox/t9n/messages.sv.json +1 -1
  182. package/dist/cdn/assets/combobox/t9n/messages.th.json +1 -1
  183. package/dist/cdn/assets/combobox/t9n/messages.tr.json +1 -1
  184. package/dist/cdn/assets/combobox/t9n/messages.uk.json +1 -1
  185. package/dist/cdn/assets/combobox/t9n/messages.vi.json +1 -1
  186. package/dist/cdn/assets/combobox/t9n/messages.zh-CN.json +1 -1
  187. package/dist/cdn/assets/combobox/t9n/messages.zh-HK.json +1 -1
  188. package/dist/cdn/assets/combobox/t9n/messages.zh-TW.json +1 -1
  189. package/dist/cdn/assets/icon/arcgisQuickcapture16.json +1 -0
  190. package/dist/cdn/assets/icon/arcgisQuickcapture24.json +1 -0
  191. package/dist/cdn/assets/icon/arcgisQuickcapture32.json +1 -0
  192. package/dist/cdn/assets/icon/arcgisSurvey12316.json +1 -0
  193. package/dist/cdn/assets/icon/arcgisSurvey12324.json +1 -0
  194. package/dist/cdn/assets/icon/arcgisSurvey12332.json +1 -0
  195. package/dist/cdn/assets/icon/buttons16.json +1 -0
  196. package/dist/cdn/assets/icon/buttons24.json +1 -0
  197. package/dist/cdn/assets/icon/buttons32.json +1 -0
  198. package/dist/cdn/assets/icon/entityTypes16.json +1 -0
  199. package/dist/cdn/assets/icon/entityTypes24.json +1 -0
  200. package/dist/cdn/assets/icon/entityTypes32.json +1 -0
  201. package/dist/cdn/assets/icon/gpsReceiver16.json +1 -0
  202. package/dist/cdn/assets/icon/gpsReceiver24.json +1 -0
  203. package/dist/cdn/assets/icon/gpsReceiver32.json +1 -0
  204. package/dist/cdn/assets/icon/layerStreamSetting16.json +1 -0
  205. package/dist/cdn/assets/icon/layerStreamSetting24.json +1 -0
  206. package/dist/cdn/assets/icon/layerStreamSetting32.json +1 -0
  207. package/dist/cdn/assets/icon/orientedImageryFullSuperimpose16.json +1 -0
  208. package/dist/cdn/assets/icon/orientedImageryFullSuperimpose24.json +1 -0
  209. package/dist/cdn/assets/icon/orientedImageryFullSuperimpose32.json +1 -0
  210. package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose16.json +1 -0
  211. package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose24.json +1 -0
  212. package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose32.json +1 -0
  213. package/dist/cdn/assets/icon/orientedImagerySceneOnly16.json +1 -0
  214. package/dist/cdn/assets/icon/orientedImagerySceneOnly24.json +1 -0
  215. package/dist/cdn/assets/icon/orientedImagerySceneOnly32.json +1 -0
  216. package/dist/cdn/assets/icon/returnToDefault16.json +1 -0
  217. package/dist/cdn/assets/icon/returnToDefault24.json +1 -0
  218. package/dist/cdn/assets/icon/returnToDefault32.json +1 -0
  219. package/dist/cdn/assets/icon/reviewMap16.json +1 -0
  220. package/dist/cdn/assets/icon/reviewMap24.json +1 -0
  221. package/dist/cdn/assets/icon/reviewMap32.json +1 -0
  222. package/dist/cdn/assets/icon/totalStation16.json +1 -0
  223. package/dist/cdn/assets/icon/totalStation24.json +1 -0
  224. package/dist/cdn/assets/icon/totalStation32.json +1 -0
  225. package/dist/cdn/assets/icon/velocityServer16.json +1 -0
  226. package/dist/cdn/assets/icon/velocityServer24.json +1 -0
  227. package/dist/cdn/assets/icon/velocityServer32.json +1 -0
  228. package/dist/cdn/index.js +2 -2
  229. package/dist/cdn/main.css +2 -2
  230. package/dist/chunks/ClearButton.js +16 -0
  231. package/dist/chunks/ExpandToggle.js +2 -2
  232. package/dist/chunks/FloatingArrow.js +24 -0
  233. package/dist/chunks/Heading.js +3 -3
  234. package/dist/chunks/component.js +1 -1
  235. package/dist/chunks/dom.js +50 -29
  236. package/dist/chunks/floating-ui.js +1 -1
  237. package/dist/chunks/locale.js +29 -12
  238. package/dist/chunks/{useReferenceElement.js → manager.js} +114 -114
  239. package/dist/chunks/resources6.js +2 -0
  240. package/dist/chunks/runtime.js +4 -4
  241. package/dist/chunks/useFocusTrap.js +70 -28
  242. package/dist/chunks/useForm.js +225 -44
  243. package/dist/chunks/useFormTrigger.js +25 -0
  244. package/dist/chunks/{sortableComponent.js → useSortable.js} +70 -44
  245. package/dist/chunks/utils.js +6 -6
  246. package/dist/chunks/utils3.js +18 -3
  247. package/dist/components/calcite-accordion-item/customElement.d.ts +6 -6
  248. package/dist/components/calcite-action/customElement.d.ts +20 -12
  249. package/dist/components/calcite-action/customElement.js +10 -15
  250. package/dist/components/calcite-action-bar/customElement.d.ts +4 -4
  251. package/dist/components/calcite-action-bar/customElement.js +12 -6
  252. package/dist/components/calcite-action-group/customElement.d.ts +12 -6
  253. package/dist/components/calcite-action-group/customElement.js +2 -1
  254. package/dist/components/calcite-action-menu/customElement.d.ts +2 -2
  255. package/dist/components/calcite-action-pad/customElement.d.ts +3 -3
  256. package/dist/components/calcite-action-pad/customElement.js +12 -7
  257. package/dist/components/calcite-alert/customElement.d.ts +2 -2
  258. package/dist/components/calcite-alert/customElement.js +1 -1
  259. package/dist/components/calcite-autocomplete/customElement.d.ts +16 -13
  260. package/dist/components/calcite-autocomplete/customElement.js +21 -32
  261. package/dist/components/calcite-autocomplete-item/customElement.d.ts +6 -0
  262. package/dist/components/calcite-autocomplete-item/customElement.js +9 -4
  263. package/dist/components/calcite-block/customElement.d.ts +11 -7
  264. package/dist/components/calcite-block/customElement.js +1 -1
  265. package/dist/components/calcite-block-group/customElement.d.ts +1 -1
  266. package/dist/components/calcite-block-group/customElement.js +4 -11
  267. package/dist/components/calcite-block-group/interfaces.d.ts +2 -6
  268. package/dist/components/calcite-block-section/customElement.d.ts +1 -1
  269. package/dist/components/calcite-button/customElement.d.ts +6 -6
  270. package/dist/components/calcite-button/customElement.js +10 -22
  271. package/dist/components/calcite-card/customElement.d.ts +11 -5
  272. package/dist/components/calcite-card/customElement.js +5 -3
  273. package/dist/components/calcite-card-group/customElement.d.ts +9 -3
  274. package/dist/components/calcite-card-group/customElement.js +11 -1
  275. package/dist/components/calcite-carousel/customElement.d.ts +8 -2
  276. package/dist/components/calcite-carousel/customElement.js +11 -8
  277. package/dist/components/calcite-carousel/interfaces.d.ts +3 -1
  278. package/dist/components/calcite-checkbox/customElement.d.ts +4 -5
  279. package/dist/components/calcite-checkbox/customElement.js +2 -15
  280. package/dist/components/calcite-chip/customElement.d.ts +2 -2
  281. package/dist/components/calcite-chip/customElement.js +1 -1
  282. package/dist/components/calcite-chip-group/customElement.d.ts +1 -1
  283. package/dist/components/calcite-color-picker/customElement.d.ts +2 -2
  284. package/dist/components/calcite-color-picker/customElement.js +2 -2
  285. package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
  286. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  287. package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
  288. package/dist/components/calcite-combobox/customElement.d.ts +5 -5
  289. package/dist/components/calcite-combobox/customElement.js +57 -69
  290. package/dist/components/calcite-combobox/index.js +2 -1
  291. package/dist/components/calcite-combobox-item/customElement.d.ts +1 -1
  292. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  293. package/dist/components/calcite-date-picker/customElement.d.ts +1 -1
  294. package/dist/components/calcite-date-picker/customElement.js +4 -14
  295. package/dist/components/calcite-date-picker-day/customElement.d.ts +1 -1
  296. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  297. package/dist/components/calcite-date-picker-month/customElement.js +2 -2
  298. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  299. package/dist/components/calcite-dialog/customElement.d.ts +7 -5
  300. package/dist/components/calcite-dialog/customElement.js +4 -2
  301. package/dist/components/calcite-dropdown/customElement.d.ts +15 -5
  302. package/dist/components/calcite-dropdown/customElement.js +166 -91
  303. package/dist/components/calcite-dropdown-item/customElement.d.ts +2 -2
  304. package/dist/components/calcite-dropdown-item/customElement.js +14 -32
  305. package/dist/components/calcite-fab/customElement.d.ts +1 -1
  306. package/dist/components/calcite-fab/customElement.js +2 -2
  307. package/dist/components/calcite-filter/customElement.d.ts +1 -1
  308. package/dist/components/calcite-flow/customElement.d.ts +1 -1
  309. package/dist/components/calcite-flow-item/customElement.d.ts +8 -5
  310. package/dist/components/calcite-flow-item/customElement.js +4 -2
  311. package/dist/components/calcite-focus-trap/customElement.d.ts +46 -0
  312. package/dist/components/calcite-focus-trap/customElement.js +56 -0
  313. package/dist/components/calcite-focus-trap/index.d.ts +1 -0
  314. package/dist/components/calcite-focus-trap/index.js +1 -0
  315. package/dist/components/calcite-graph/customElement.js +1 -1
  316. package/dist/components/calcite-handle/customElement.d.ts +1 -1
  317. package/dist/components/calcite-icon/customElement.d.ts +1 -1
  318. package/dist/components/calcite-inline-editable/customElement.d.ts +2 -2
  319. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  320. package/dist/components/calcite-input/customElement.d.ts +17 -18
  321. package/dist/components/calcite-input/customElement.js +26 -49
  322. package/dist/components/calcite-input/index.js +1 -0
  323. package/dist/components/calcite-input-date-picker/customElement.d.ts +6 -7
  324. package/dist/components/calcite-input-date-picker/customElement.js +67 -76
  325. package/dist/components/calcite-input-message/customElement.d.ts +1 -1
  326. package/dist/components/calcite-input-number/customElement.d.ts +13 -14
  327. package/dist/components/calcite-input-number/customElement.js +22 -48
  328. package/dist/components/calcite-input-number/index.js +1 -0
  329. package/dist/components/calcite-input-text/customElement.d.ts +11 -12
  330. package/dist/components/calcite-input-text/customElement.js +6 -18
  331. package/dist/components/calcite-input-text/index.js +1 -0
  332. package/dist/components/calcite-input-time-picker/customElement.d.ts +6 -7
  333. package/dist/components/calcite-input-time-picker/customElement.js +11 -23
  334. package/dist/components/calcite-input-time-zone/customElement.d.ts +5 -6
  335. package/dist/components/calcite-input-time-zone/customElement.js +21 -19
  336. package/dist/components/calcite-label/customElement.js +1 -1
  337. package/dist/components/calcite-link/customElement.d.ts +9 -9
  338. package/dist/components/calcite-link/customElement.js +28 -23
  339. package/dist/components/calcite-list/customElement.d.ts +1 -1
  340. package/dist/components/calcite-list/customElement.js +18 -15
  341. package/dist/components/calcite-list/interfaces.d.ts +2 -6
  342. package/dist/components/calcite-list-item/customElement.d.ts +2 -2
  343. package/dist/components/calcite-list-item/customElement.js +7 -4
  344. package/dist/components/calcite-list-item-group/customElement.js +6 -0
  345. package/dist/components/calcite-loader/customElement.d.ts +1 -1
  346. package/dist/components/calcite-menu/customElement.d.ts +1 -1
  347. package/dist/components/calcite-menu/customElement.js +1 -1
  348. package/dist/components/calcite-menu-item/customElement.d.ts +3 -3
  349. package/dist/components/calcite-menu-item/customElement.js +1 -1
  350. package/dist/components/calcite-meter/customElement.js +4 -4
  351. package/dist/components/calcite-navigation/customElement.d.ts +9 -2
  352. package/dist/components/calcite-navigation/customElement.js +56 -3
  353. package/dist/components/calcite-navigation-logo/customElement.d.ts +3 -3
  354. package/dist/components/calcite-navigation-logo/customElement.js +4 -3
  355. package/dist/components/calcite-navigation-user/customElement.d.ts +2 -2
  356. package/dist/components/calcite-navigation-user/customElement.js +11 -6
  357. package/dist/components/calcite-notice/customElement.d.ts +3 -3
  358. package/dist/components/calcite-notice/customElement.js +1 -1
  359. package/dist/components/calcite-pagination/customElement.d.ts +1 -1
  360. package/dist/components/calcite-pagination/customElement.js +1 -1
  361. package/dist/components/calcite-panel/customElement.d.ts +7 -5
  362. package/dist/components/calcite-panel/customElement.js +20 -8
  363. package/dist/components/calcite-popover/customElement.d.ts +2 -2
  364. package/dist/components/calcite-popover/customElement.js +3 -2
  365. package/dist/components/calcite-radio-button/customElement.d.ts +30 -2
  366. package/dist/components/calcite-radio-button/customElement.js +12 -19
  367. package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -1
  368. package/dist/components/calcite-radio-button-group/customElement.js +20 -1
  369. package/dist/components/calcite-rating/customElement.d.ts +3 -4
  370. package/dist/components/calcite-rating/customElement.js +12 -18
  371. package/dist/components/calcite-segmented-control/customElement.d.ts +3 -4
  372. package/dist/components/calcite-segmented-control/customElement.js +8 -19
  373. package/dist/components/calcite-segmented-control-item/customElement.d.ts +0 -1
  374. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  375. package/dist/components/calcite-select/customElement.d.ts +3 -4
  376. package/dist/components/calcite-select/customElement.js +9 -20
  377. package/dist/components/calcite-sheet/customElement.d.ts +3 -3
  378. package/dist/components/calcite-sheet/customElement.js +3 -7
  379. package/dist/components/calcite-shell-panel/customElement.d.ts +4 -4
  380. package/dist/components/calcite-shell-panel/customElement.js +59 -30
  381. package/dist/components/calcite-slider/customElement.d.ts +3 -4
  382. package/dist/components/calcite-slider/customElement.js +12 -22
  383. package/dist/components/calcite-sort-handle/customElement.d.ts +4 -4
  384. package/dist/components/calcite-sort-handle/customElement.js +44 -17
  385. package/dist/components/calcite-sortable-list/customElement.d.ts +1 -1
  386. package/dist/components/calcite-sortable-list/customElement.js +3 -3
  387. package/dist/components/calcite-split-button/customElement.d.ts +8 -8
  388. package/dist/components/calcite-stepper/customElement.d.ts +2 -2
  389. package/dist/components/calcite-stepper/customElement.js +29 -42
  390. package/dist/components/calcite-stepper-item/customElement.d.ts +1 -1
  391. package/dist/components/calcite-stepper-item/customElement.js +2 -8
  392. package/dist/components/calcite-swatch/customElement.d.ts +1 -1
  393. package/dist/components/calcite-switch/customElement.d.ts +4 -4
  394. package/dist/components/calcite-switch/customElement.js +9 -8
  395. package/dist/components/calcite-tab/customElement.d.ts +1 -1
  396. package/dist/components/calcite-tab/customElement.js +1 -1
  397. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  398. package/dist/components/calcite-tab-title/customElement.js +1 -1
  399. package/dist/components/calcite-table/customElement.js +1 -1
  400. package/dist/components/calcite-table-cell/customElement.d.ts +2 -2
  401. package/dist/components/calcite-table-header/customElement.d.ts +2 -2
  402. package/dist/components/calcite-table-row/customElement.d.ts +1 -1
  403. package/dist/components/calcite-tabs/customElement.js +2 -1
  404. package/dist/components/calcite-text-area/customElement.d.ts +13 -14
  405. package/dist/components/calcite-text-area/customElement.js +32 -37
  406. package/dist/components/calcite-tile/customElement.d.ts +1 -1
  407. package/dist/components/calcite-time-picker/customElement.d.ts +1 -1
  408. package/dist/components/calcite-time-picker/customElement.js +2 -2
  409. package/dist/components/calcite-tooltip/customElement.d.ts +15 -2
  410. package/dist/components/calcite-tooltip/customElement.js +16 -8
  411. package/dist/components/calcite-tree/customElement.js +1 -1
  412. package/dist/components/calcite-tree-item/customElement.js +2 -3
  413. package/dist/controllers/useSortable.d.ts +7 -0
  414. package/dist/docs/api.json +1 -1
  415. package/dist/docs/docs.json +1 -1
  416. package/dist/docs/supported-browsers.json +1 -1
  417. package/dist/docs/translations.json +1 -1
  418. package/dist/docs/vscode.css-custom-data.json +1 -1
  419. package/dist/docs/vscode.html-custom-data.json +1 -1
  420. package/dist/docs/web-types.json +1 -1
  421. package/dist/index.d.ts +10 -0
  422. package/dist/loader.js +27 -26
  423. package/dist/types/lumina.d.ts +16 -10
  424. package/dist/types/preact.d.ts +17 -10
  425. package/dist/types/react.d.ts +18 -10
  426. package/dist/types/stencil.d.ts +16 -10
  427. package/package.json +22 -23
  428. package/dist/cdn/24BVOJIY.js +0 -2
  429. package/dist/cdn/3O7NXGXJ.js +0 -3
  430. package/dist/cdn/43SP7K3P.js +0 -2
  431. package/dist/cdn/45Z5R6GR.js +0 -2
  432. package/dist/cdn/47RTCYTX.js +0 -2
  433. package/dist/cdn/4AQ3DQDN.js +0 -2
  434. package/dist/cdn/4DJKUEBQ.js +0 -2
  435. package/dist/cdn/4IBKGKIH.js +0 -2
  436. package/dist/cdn/4JVVYRDW.js +0 -2
  437. package/dist/cdn/4U633XVG.js +0 -2
  438. package/dist/cdn/55GOZN42.js +0 -2
  439. package/dist/cdn/575ZYV35.js +0 -2
  440. package/dist/cdn/5LUEFKD3.js +0 -2
  441. package/dist/cdn/5RDU2ZNH.js +0 -2
  442. package/dist/cdn/6OKASMD7.js +0 -2
  443. package/dist/cdn/7ECYZZBW.js +0 -2
  444. package/dist/cdn/7UOYXJ3K.js +0 -2
  445. package/dist/cdn/A6XPQQWN.js +0 -2
  446. package/dist/cdn/ANQRSTGE.js +0 -2
  447. package/dist/cdn/BDQCESE7.js +0 -2
  448. package/dist/cdn/CKMZY3H7.js +0 -2
  449. package/dist/cdn/DRQCOAQ4.js +0 -2
  450. package/dist/cdn/DTUD5FAT.js +0 -2
  451. package/dist/cdn/EQZPTVS3.js +0 -2
  452. package/dist/cdn/ESATITDD.js +0 -2
  453. package/dist/cdn/ETIO6SPJ.js +0 -2
  454. package/dist/cdn/EY7FPNVS.js +0 -2
  455. package/dist/cdn/FIEDEHAP.js +0 -2
  456. package/dist/cdn/FZ6ZUHKQ.js +0 -2
  457. package/dist/cdn/GH34TDLL.js +0 -2
  458. package/dist/cdn/HG2EYXWI.js +0 -2
  459. package/dist/cdn/I5G3H4D4.js +0 -2
  460. package/dist/cdn/IBQYZCFQ.js +0 -2
  461. package/dist/cdn/IQ4VNR4Q.js +0 -2
  462. package/dist/cdn/J2OGE3DI.js +0 -2
  463. package/dist/cdn/JPWQ44GC.js +0 -2
  464. package/dist/cdn/JRF656V5.js +0 -2
  465. package/dist/cdn/K2H2TINH.js +0 -2
  466. package/dist/cdn/KDZRPYFR.js +0 -2
  467. package/dist/cdn/KHIMNKVO.js +0 -2
  468. package/dist/cdn/KMOFSKZF.js +0 -2
  469. package/dist/cdn/KQNOWW4C.js +0 -2
  470. package/dist/cdn/KYKC2CK2.js +0 -2
  471. package/dist/cdn/L5LBH4FP.js +0 -2
  472. package/dist/cdn/LKRLVAVK.js +0 -2
  473. package/dist/cdn/M6MHKAA5.js +0 -2
  474. package/dist/cdn/MMEADS6E.js +0 -2
  475. package/dist/cdn/NGXAYCAR.js +0 -2
  476. package/dist/cdn/NVHH3XZJ.js +0 -2
  477. package/dist/cdn/NVSO6GLT.js +0 -2
  478. package/dist/cdn/NY7A5LKZ.js +0 -2
  479. package/dist/cdn/OLYLT2L5.js +0 -2
  480. package/dist/cdn/OXCJDMGQ.js +0 -2
  481. package/dist/cdn/P4JFMLKY.js +0 -2
  482. package/dist/cdn/PCTQTX5N.js +0 -2
  483. package/dist/cdn/PHGT3YNE.js +0 -2
  484. package/dist/cdn/QR4JRFEP.js +0 -4
  485. package/dist/cdn/QWALXRY6.js +0 -2
  486. package/dist/cdn/RCUNETDY.js +0 -2
  487. package/dist/cdn/SAQAAU52.js +0 -2
  488. package/dist/cdn/SG24GAXY.js +0 -2
  489. package/dist/cdn/SIMNCT4V.js +0 -2
  490. package/dist/cdn/SJSCENKK.js +0 -2
  491. package/dist/cdn/SLVFP6JA.js +0 -2
  492. package/dist/cdn/TMOOTRK4.js +0 -2
  493. package/dist/cdn/TXYWJHYI.js +0 -2
  494. package/dist/cdn/UHQ454NG.js +0 -2
  495. package/dist/cdn/UTQKB5CS.js +0 -2
  496. package/dist/cdn/V2EVNXUV.js +0 -2
  497. package/dist/cdn/WITGQRKF.js +0 -2
  498. package/dist/cdn/WJXZ7BPV.js +0 -2
  499. package/dist/cdn/WM4NZNNA.js +0 -2
  500. package/dist/cdn/YANXY6FO.js +0 -2
  501. package/dist/cdn/YMSZKTCN.js +0 -2
  502. package/dist/cdn/YYDYHAP7.js +0 -2
  503. package/dist/cdn/ZEASFJJQ.js +0 -2
  504. package/dist/cdn/ZGCRVGEK.js +0 -2
  505. package/dist/cdn/ZPZI63EH.js +0 -3
  506. package/dist/cdn/ZQLGBHLZ.js +0 -2
  507. package/dist/cdn/ZTV4V5SF.js +0 -2
  508. package/dist/chunks/form.js +0 -268
  509. package/dist/chunks/input.js +0 -40
  510. package/dist/controllers/useForm.d.ts +0 -3
  511. package/dist/utils/form.d.ts +0 -3
  512. package/dist/utils/sortableComponent.d.ts +0 -7
@@ -305,16 +305,16 @@ export {
305
305
  hexToRGB as h,
306
306
  isValidHex as i,
307
307
  CSS as j,
308
- toNonAlphaMode as k,
309
- HUE_LIMIT_CONSTRAINED as l,
310
- normalizeAlpha as m,
308
+ HUE_LIMIT_CONSTRAINED as k,
309
+ normalizeAlpha as l,
310
+ alphaToOpacity as m,
311
311
  normalizeHex as n,
312
312
  opacityToAlpha as o,
313
313
  parseMode as p,
314
- alphaToOpacity as q,
315
- SCOPE_SIZE as r,
314
+ SCOPE_SIZE as q,
315
+ toAlphaMode as r,
316
316
  isLonghandHex as s,
317
- toAlphaMode as t,
317
+ toNonAlphaMode as t,
318
318
  isShorthandHex as u,
319
319
  rgbToHex as v,
320
320
  hexChar as w
@@ -53,8 +53,23 @@ function applyLocaleOverride(locale) {
53
53
  function getValueAsDateRange(value) {
54
54
  return value.map((v, index) => dateFromISO(v, index === 1));
55
55
  }
56
+ function getSource(changes, stringProp, dateProp) {
57
+ const stringPropChanged = changes.has(stringProp);
58
+ const datePropChanged = changes.has(dateProp);
59
+ if (stringPropChanged && !datePropChanged) {
60
+ return stringProp;
61
+ }
62
+ if (datePropChanged && !stringPropChanged) {
63
+ return dateProp;
64
+ }
65
+ return null;
66
+ }
67
+ function getMinMaxSource(changes, type) {
68
+ return type === "min" ? getSource(changes, "min", "minAsDate") : getSource(changes, "max", "maxAsDate");
69
+ }
56
70
  export {
57
- applyLocaleOverride as a,
58
- getLocaleData as b,
59
- getValueAsDateRange as g
71
+ getValueAsDateRange as a,
72
+ applyLocaleOverride as b,
73
+ getLocaleData as c,
74
+ getMinMaxSource as g
60
75
  };
@@ -10,8 +10,8 @@ import type { HeadingLevel } from "../functional/Heading.js";
10
10
  * @cssproperty [--calcite-accordion-text-color] - Specifies the component's text color.
11
11
  * @cssproperty [--calcite-accordion-text-color-hover] - Specifies the component's main text color on hover.
12
12
  * @cssproperty [--calcite-accordion-text-color-press] - Specifies the component's main text color when pressed.
13
- * @cssproperty [--calcite-accordion-item-background-color] - [Deprecated] Use `--calcite-accordion-background-color`. Specifies the component's background color.
14
- * @cssproperty [--calcite-accordion-item-border-color] - [Deprecated] Use `--calcite-accordion-border-color`. Specifies the component's border color.
13
+ * @cssproperty [--calcite-accordion-item-background-color] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-accordion-background-color` instead. Specifies the component's background color.
14
+ * @cssproperty [--calcite-accordion-item-border-color] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-accordion-border-color` instead. Specifies the component's border color.
15
15
  * @cssproperty [--calcite-accordion-item-content-space] - Specifies the component's padding.
16
16
  * @cssproperty [--calcite-accordion-item-end-icon-color] - Specifies the component's `iconEnd` color. Falls back to `--calcite-accordion-item-icon-color` or current color.
17
17
  * @cssproperty [--calcite-accordion-item-expand-icon-color] - Specifies the component's expand icon color.
@@ -19,10 +19,10 @@ import type { HeadingLevel } from "../functional/Heading.js";
19
19
  * @cssproperty [--calcite-accordion-item-header-background-color-hover] - Specifies the component's `heading` background color when hovered.
20
20
  * @cssproperty [--calcite-accordion-item-header-background-color-press] - Specifies the component's `heading` background color when pressed.
21
21
  * @cssproperty [--calcite-accordion-item-heading-text-color] - Specifies the component's `heading` text color.
22
- * @cssproperty [--calcite-accordion-item-icon-color] - [Deprecated] Use `--calcite-icon-color`. Specifies the component's default icon color.
22
+ * @cssproperty [--calcite-accordion-item-icon-color] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-icon-color` instead. Specifies the component's default icon color.
23
23
  * @cssproperty [--calcite-accordion-item-start-icon-color] - Specifies the component's `iconStart` color. Falls back to `--calcite-accordion-item-icon-color` or current color.
24
- * @cssproperty [--calcite-accordion-item-text-color] - [Deprecated] Use `--calcite-accordion-text-color`. Specifies the component's text color.
25
- * @cssproperty [--calcite-accordion-item-text-color-hover] - [Deprecated] Use `--calcite-accordion-text-color-hover`. Specifies the component's text color on hover.
24
+ * @cssproperty [--calcite-accordion-item-text-color] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-accordion-text-color` instead. Specifies the component's text color.
25
+ * @cssproperty [--calcite-accordion-item-text-color-hover] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-accordion-text-color-hover` instead. Specifies the component's text color on hover.
26
26
  * @slot - A slot for adding custom content, including nested `calcite-accordion-item`s.
27
27
  * @slot [actions-end] - A slot for adding `calcite-action`s or content to the end side of the component's header.
28
28
  * @slot [actions-start] - A slot for adding `calcite-action`s or content to the start side of the component's header.
@@ -57,7 +57,7 @@ export abstract class AccordionItem extends LitElement {
57
57
  * Sets focus on the component.
58
58
  *
59
59
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
60
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
60
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
61
61
  */
62
62
  setFocus(options?: FocusOptions): Promise<void>;
63
63
  /** Fires when the component's content area is collapsed. */
@@ -6,16 +6,16 @@ import type { IconName } from "../calcite-icon/interfaces.js";
6
6
  /**
7
7
  * @cssproperty [--calcite-action-background-color-hover] - Specifies the component's background color when hovered.
8
8
  * @cssproperty [--calcite-action-background-color-press] - Specifies the component's background color when active.
9
- * @cssproperty [--calcite-action-background-color-pressed] - [Deprecated] Use --calcite-action-background-color-press. Specifies the component's background color when active.
9
+ * @cssproperty [--calcite-action-background-color-pressed] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-background-color-press` instead. Specifies the component's background color when active.
10
10
  * @cssproperty [--calcite-action-background-color] - Specifies the component's background color.
11
- * @cssproperty [--calcite-action-corner-radius-end-end] - [Deprecated] Use --calcite-action-corner-radius. Specifies the component's corner radius end end.
12
- * @cssproperty [--calcite-action-corner-radius-end-start] - [Deprecated] Use --calcite-action-corner-radius. Specifies the component's corner radius end start.
13
- * @cssproperty [--calcite-action-corner-radius-start-end] - [Deprecated] Use --calcite-action-corner-radius. Specifies the component's corner radius start end.
14
- * @cssproperty [--calcite-action-corner-radius-start-start] - [Deprecated] Use --calcite-action-corner-radius. Specifies the component's corner radius start start.
11
+ * @cssproperty [--calcite-action-corner-radius-end-end] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-corner-radius` instead. Specifies the component's corner radius end end.
12
+ * @cssproperty [--calcite-action-corner-radius-end-start] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-corner-radius` instead. Specifies the component's corner radius end start.
13
+ * @cssproperty [--calcite-action-corner-radius-start-end] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-corner-radius` instead. Specifies the component's corner radius start end.
14
+ * @cssproperty [--calcite-action-corner-radius-start-start] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-corner-radius` instead. Specifies the component's corner radius start start.
15
15
  * @cssproperty [--calcite-action-corner-radius] - Specifies the component's corner radius.
16
16
  * @cssproperty [--calcite-action-indicator-color] - Specifies the component's indicator color.
17
17
  * @cssproperty [--calcite-action-text-color-press] - Specifies the component's text color when pressed or hovered.
18
- * @cssproperty [--calcite-action-text-color-pressed] - [Deprecated] Use --calcite-action-text-color-press. Specifies the component's text color when hovered.
18
+ * @cssproperty [--calcite-action-text-color-pressed] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-text-color-press` instead. Specifies the component's text color when hovered.
19
19
  * @cssproperty [--calcite-action-text-color] - Specifies the component's text color.
20
20
  * @slot - A slot for adding non-interactive content, such as a `calcite-icon`.
21
21
  */
@@ -27,7 +27,7 @@ export abstract class Action extends LitElement {
27
27
  */
28
28
  accessor active: boolean;
29
29
  /** Specifies the horizontal alignment of button elements with text content. */
30
- accessor alignment: Alignment;
30
+ accessor alignment: Alignment | undefined;
31
31
  /**
32
32
  * Specifies the appearance of the component.
33
33
  *
@@ -55,9 +55,9 @@ export abstract class Action extends LitElement {
55
55
  *
56
56
  * When not set, the component is associated with its ancestor form element, if one exists.
57
57
  */
58
- accessor form: string;
58
+ accessor form: string | undefined;
59
59
  /** Specifies an icon to display. */
60
- accessor icon: IconName;
60
+ accessor icon: IconName | undefined;
61
61
  /**
62
62
  * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`).
63
63
  *
@@ -71,7 +71,7 @@ export abstract class Action extends LitElement {
71
71
  */
72
72
  accessor indicator: boolean;
73
73
  /** Specifies an accessible label for the component. If no label is provided, the label inherits what's provided for the `text` prop. */
74
- accessor label: string;
74
+ accessor label: string | undefined;
75
75
  /**
76
76
  * When `true`, a busy indicator is displayed.
77
77
  *
@@ -84,6 +84,12 @@ export abstract class Action extends LitElement {
84
84
  indicator?: string;
85
85
  indicatorLabel?: string;
86
86
  };
87
+ /**
88
+ * When `true`, the component is not automatically overflowed into a menu by a parent `calcite-action-bar`.
89
+ *
90
+ * @default false
91
+ */
92
+ accessor overflowDisabled: boolean;
87
93
  /**
88
94
  * Specifies the size of the component.
89
95
  *
@@ -99,6 +105,8 @@ export abstract class Action extends LitElement {
99
105
  /**
100
106
  * When `true`, displays `text` adjacent to the `icon`.
101
107
  *
108
+ * When `true` and the component is used as a child of `calcite-action-bar`, the text will be shown initially regardless of the parent components `expanded` state.
109
+ *
102
110
  * @default false
103
111
  */
104
112
  accessor textEnabled: boolean;
@@ -106,14 +114,14 @@ export abstract class Action extends LitElement {
106
114
  * Specifies the default behavior of the component.
107
115
  *
108
116
  * @default "button"
109
- * @mdn [type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type)
117
+ * @see [MDN - type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type)
110
118
  */
111
119
  accessor type: HTMLButtonElement["type"];
112
120
  /**
113
121
  * Sets focus on the component.
114
122
  *
115
123
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
116
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
124
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
117
125
  */
118
126
  setFocus(options?: FocusOptions): Promise<void>;
119
127
  }
@@ -9,10 +9,10 @@ import { c as createObserver } from "../../chunks/observers.js";
9
9
  import { g as getIconScale } from "../../chunks/component.js";
10
10
  import { u as useT9n } from "../../chunks/useT9n.js";
11
11
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
12
- import { f as findAssociatedForm, s as submitForm, r as resetForm } from "../../chunks/form.js";
13
12
  import { u as useInteractive } from "../../chunks/useInteractive.js";
13
+ import { u as useFormTrigger } from "../../chunks/useFormTrigger.js";
14
14
  import { I as IDS, C as CSS } from "../../chunks/resources.js";
15
- const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-action-font-size: var(--calcite-font-size--2);--calcite-internal-action-height: var(--calcite-size-sm);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-font-size: var(--calcite-font-size--1);--calcite-internal-action-height: var(--calcite-size-md);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-font-size: var(--calcite-font-size-0);--calcite-internal-action-height: var(--calcite-size-lg);--calcite-internal-action-line-height: 1.25rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm-plus)}:host{display:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius-xs)))}.interaction-container{border-radius:inherit}:host([width=full]){flex:1 0 auto}:host([width=full]) .button{justify-content:center}:host([width=full]) .button .text-container--visible{flex:none}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}.button{position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));border-radius:inherit;color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));cursor:inherit;flex:1 0 auto;font-family:inherit;font-size:var(--calcite-internal-action-font-size);font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-internal-action-line-height);min-block-size:var(--calcite-internal-action-height);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-internal-action-spacing));padding-inline:var(--calcite-internal-action-padding-inline, var(--calcite-internal-action-spacing));text-align:start}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.button--text-visible{gap:var(--calcite-internal-action-spacing);inline-size:100%}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;transition-property:opacity;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-3));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}:host([active]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-3))}:host([active]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([appearance=transparent]) .button{transition-property:box-shadow;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);background-color:var(--calcite-action-background-color, var(--calcite-color-transparent))}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}:host([appearance=transparent]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([selection-appearance=highlight]):host([active]) .button{background-color:var(--calcite-color-surface-highlight);color:var(--calcite-color-text-highlight)}:host([active-descendant]) .button{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}:host([scale=s]) .indicator-with-icon{position:relative}:host([scale=s]) .indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.125rem;inset-inline-end:-.125rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([scale=s]) .indicator-without-icon{position:relative}:host([scale=s]) .indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.175rem;inset-inline-end:-.175rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
15
+ const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-action-font-size: var(--calcite-font-size--2);--calcite-internal-action-min-height: var(--calcite-size-sm);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-font-size: var(--calcite-font-size--1);--calcite-internal-action-min-height: var(--calcite-size-md);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-font-size: var(--calcite-font-size-0);--calcite-internal-action-min-height: var(--calcite-size-lg);--calcite-internal-action-line-height: 1.25rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm-plus)}:host{display:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius-xs)))}.interaction-container{border-radius:inherit}:host([width=full]){flex:1 0 auto}:host([width=full]) .button{justify-content:center}:host([width=full]) .button .text-container--visible{flex:none}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}.button{position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;outline-color:transparent;box-sizing:border-box;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));border-radius:inherit;color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));cursor:inherit;flex:1 0 auto;font-family:inherit;font-size:var(--calcite-internal-action-font-size);font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-internal-action-line-height);min-block-size:var(--calcite-internal-action-height, var(--calcite-internal-action-min-height));max-block-size:var(--calcite-internal-action-height, none);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-internal-action-spacing));padding-inline:var(--calcite-internal-action-padding-inline, var(--calcite-internal-action-spacing));text-align:start}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.button--text-visible{gap:var(--calcite-internal-action-spacing);inline-size:100%}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;transition-property:opacity;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-3));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}:host([active]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-3))}:host([active]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([appearance=transparent]) .button{transition-property:box-shadow;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);background-color:var(--calcite-action-background-color, var(--calcite-color-transparent))}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}:host([appearance=transparent]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([selection-appearance=highlight]):host([active]) .button{background-color:var(--calcite-color-surface-highlight);color:var(--calcite-color-text-highlight)}:host([active-descendant]) .button{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}:host([scale=s]) .indicator-with-icon{position:relative}:host([scale=s]) .indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.125rem;inset-inline-end:-.125rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([scale=s]) .indicator-without-icon{position:relative}:host([scale=s]) .indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.175rem;inset-inline-end:-.175rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
16
16
  class Action extends LitElement {
17
17
  constructor() {
18
18
  super(...arguments);
@@ -24,6 +24,7 @@ class Action extends LitElement {
24
24
  this.focusSetter = useSetFocus()(this);
25
25
  this.indicatorRef = createRef();
26
26
  this.interactiveContainer = useInteractive(this);
27
+ this.formTrigger = useFormTrigger()(this);
27
28
  this.active = false;
28
29
  this.activeDescendant = false;
29
30
  this.appearance = "transparent";
@@ -33,13 +34,17 @@ class Action extends LitElement {
33
34
  this.iconFlipRtl = false;
34
35
  this.indicator = false;
35
36
  this.loading = false;
37
+ this.overflowDisabled = false;
36
38
  this.scale = "m";
37
39
  this.width = "auto";
38
40
  this.textEnabled = false;
39
41
  this.type = "button";
40
42
  }
41
43
  static {
42
- this.properties = { aria: [0, {}, { attribute: false }], active: [7, {}, { reflect: true, type: Boolean }], activeDescendant: [7, {}, { reflect: true, type: Boolean }], alignment: [3, {}, { reflect: true }], appearance: [3, {}, { reflect: true }], compact: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], dragHandle: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], icon: [3, { type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], indicator: [7, {}, { reflect: true, type: Boolean }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], scale: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }], text: 1, textEnabled: [7, {}, { reflect: true, type: Boolean }], type: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }] };
44
+ this.properties = { aria: [0, {}, { attribute: false }], active: [7, {}, { reflect: true, type: Boolean }], activeDescendant: [7, {}, { reflect: true, type: Boolean }], alignment: [3, {}, { reflect: true }], appearance: [3, {}, { reflect: true }], compact: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], dragHandle: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], icon: [3, { type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], indicator: [7, {}, { reflect: true, type: Boolean }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], overflowDisabled: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }], text: 1, textEnabled: [7, {}, { reflect: true, type: Boolean }], type: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }] };
45
+ }
46
+ static {
47
+ this.formAssociated = true;
43
48
  }
44
49
  static {
45
50
  this.styles = styles;
@@ -49,22 +54,12 @@ class Action extends LitElement {
49
54
  }
50
55
  connectedCallback() {
51
56
  super.connectedCallback();
52
- this.formEl = findAssociatedForm(this);
53
57
  this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
54
58
  }
55
59
  disconnectedCallback() {
56
60
  super.disconnectedCallback();
57
- this.formEl = null;
58
61
  this.mutationObserver?.disconnect();
59
62
  }
60
- handleClick() {
61
- const { type } = this;
62
- if (type === "submit") {
63
- submitForm(this);
64
- } else if (type === "reset") {
65
- resetForm(this);
66
- }
67
- }
68
63
  renderTextContainer() {
69
64
  const { text, textEnabled } = this;
70
65
  const textContainerClasses = {
@@ -106,9 +101,9 @@ class Action extends LitElement {
106
101
  ...internalControlsElements
107
102
  ];
108
103
  if (this.dragHandle) {
109
- return html`<span .ariaBusy=${loading} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${ariaLabel} .ariaLabelledByElements=${this.aria?.labelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} id=${buttonId ?? nothing} role=button tabindex=${(this.disabled ? null : 0) ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</span>`;
104
+ return html`<span .ariaBusy=${loading} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${ariaLabel} .ariaLabelledByElements=${this.aria?.labelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} id=${buttonId ?? nothing} role=button tabindex=${(this.disabled ? void 0 : 0) ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</span>`;
110
105
  }
111
- return html`<button .ariaBusy=${loading} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${ariaLabel} .ariaLabelledByElements=${this.aria?.labelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} .disabled=${disabled} id=${buttonId ?? nothing} @click=${this.handleClick} .role=${this.aria?.role} ${ref(this.buttonRef)}>${buttonContent}</button>`;
106
+ return html`<button .ariaBusy=${loading} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${ariaLabel} .ariaLabelledByElements=${this.aria?.labelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} .disabled=${disabled} id=${buttonId ?? nothing} .role=${this.aria?.role} type=${this.type ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</button>`;
112
107
  }
113
108
  render() {
114
109
  return this.interactiveContainer({ disabled: this.disabled, children: html`${this.renderButton()}${this.renderIndicatorText()}` });
@@ -16,9 +16,9 @@ import type { OverlayPositioning } from "../../utils/floating-ui.js";
16
16
  */
17
17
  export abstract class ActionBar extends LitElement {
18
18
  /** Specifies an accessible name for the last `calcite-action-group`. */
19
- accessor actionsEndGroupLabel: string;
19
+ accessor actionsEndGroupLabel: string | undefined;
20
20
  /** Specifies an accessible name for the first `calcite-action-group`. */
21
- accessor actionsStartGroupLabel: string;
21
+ accessor actionsStartGroupLabel: string | undefined;
22
22
  /**
23
23
  * When `true`, the expand-toggling behavior is disabled.
24
24
  *
@@ -81,7 +81,7 @@ export abstract class ActionBar extends LitElement {
81
81
  *
82
82
  * When `expanded` is `true`, the chevron direction is reversed.
83
83
  */
84
- accessor position: Extract<"start" | "end", Position>;
84
+ accessor position: Extract<"start" | "end", Position> | undefined;
85
85
  /**
86
86
  * Specifies the size of the expand `calcite-action`.
87
87
  *
@@ -98,7 +98,7 @@ export abstract class ActionBar extends LitElement {
98
98
  * Sets focus on the component's first focusable element.
99
99
  *
100
100
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
101
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
101
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
102
102
  */
103
103
  setFocus(options?: FocusOptions): Promise<void>;
104
104
  /** Fires when the component's content area is collapsed. */
@@ -48,18 +48,19 @@ const SLOTS = {
48
48
  actionsStart: "actions-start",
49
49
  expandTooltip: "expand-tooltip"
50
50
  };
51
- const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([scale=s]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-spacing-xxs));--calcite-internal-action-bar-padding: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-spacing-sm));--calcite-internal-action-bar-padding: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-space-sm-plus));--calcite-internal-action-bar-padding: var(--calcite-spacing-sm-plus)}:host{display:inline-flex;align-self:stretch;background:transparent;--calcite-internal-action-group-dividing-border-margin: calc(var(--calcite-spacing-base) + 1px)}.container{display:inline-flex;flex:1 1 auto;flex-direction:column;background-color:var(--calcite-action-bar-background-color, var(--calcite-color-foreground-1));gap:var(--calcite-internal-action-bar-gap);padding:var(--calcite-internal-action-bar-padding)}@keyframes in{0%{opacity:0}to{opacity:1}}:host([floating]) .container{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;overflow:hidden;border-radius:var(--calcite-action-bar-corner-radius, var(--calcite-corner-radius-round));--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--calcite-action-bar-shadow, var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow))}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]):host([overflow-actions-disabled]) .container{overflow-y:auto}:host([layout=vertical]):host([expanded]) .container{max-inline-size:var(--calcite-action-bar-expanded-max-width, auto)}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm);border-image:linear-gradient(to right,transparent var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-group-dividing-border-margin)),transparent var(--calcite-internal-action-group-dividing-border-margin));border-image-slice:1;padding-block-end:var(--calcite-internal-action-bar-padding)}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]):host([overflow-actions-disabled]) .container{overflow-x:auto}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=horizontal]) ::slotted(calcite-action-group:not(:last-of-type)){border-image:linear-gradient(transparent var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-group-dividing-border-margin)),transparent var(--calcite-internal-action-group-dividing-border-margin));border-image-slice:1;border-inline-end-width:var(--calcite-border-width-sm);padding-inline-end:var(--calcite-internal-action-bar-padding)}.action-group--end{justify-content:flex-end}:host([hidden]){display:none}[hidden]{display:none}`;
51
+ const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([scale=s]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-spacing-xxs));--calcite-internal-action-bar-padding: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-spacing-sm));--calcite-internal-action-bar-padding: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-space-sm-plus));--calcite-internal-action-bar-padding: var(--calcite-spacing-sm-plus)}:host{display:inline-flex;align-self:stretch;background:transparent;--calcite-internal-action-group-dividing-border-margin: calc(var(--calcite-spacing-base) + 1px)}.container{display:inline-flex;flex:1 1 auto;flex-direction:column;background-color:var(--calcite-action-bar-background-color, var(--calcite-color-foreground-1));gap:var(--calcite-internal-action-bar-gap);padding:var(--calcite-internal-action-bar-padding)}@keyframes in{0%{opacity:0}to{opacity:1}}:host([floating]) .container{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;overflow:hidden;border-radius:var(--calcite-action-bar-corner-radius, var(--calcite-corner-radius-round));box-shadow:var(--calcite-action-bar-shadow, var(--calcite-shadow-md))}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]):host([overflow-actions-disabled]) .container{overflow-y:auto}:host([layout=vertical]):host([expanded]) .container{max-inline-size:var(--calcite-action-bar-expanded-max-width, auto)}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm);border-image:linear-gradient(to right,transparent var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-group-dividing-border-margin)),transparent var(--calcite-internal-action-group-dividing-border-margin));border-image-slice:1;padding-block-end:var(--calcite-internal-action-bar-padding)}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]):host([overflow-actions-disabled]) .container{overflow-x:auto}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=horizontal]) ::slotted(calcite-action-group:not(:last-of-type)){border-image:linear-gradient(transparent var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-group-dividing-border-margin)),transparent var(--calcite-internal-action-group-dividing-border-margin));border-image-slice:1;border-inline-end-width:var(--calcite-border-width-sm);padding-inline-end:var(--calcite-internal-action-bar-padding)}.action-group--end{justify-content:flex-end}:host([hidden]){display:none}[hidden]{display:none}`;
52
52
  class ActionBar extends LitElement {
53
53
  constructor() {
54
54
  super();
55
55
  this.actions = [];
56
56
  this.containerRef = createRef();
57
57
  this.direction = useDirection();
58
+ this.actionGroups = [];
58
59
  this.mutationObserver = createObserver("mutation", () => this.mutationObserverHandler());
59
60
  this.cancelable = useCancelable()(this);
60
61
  this.resize = debounce(({ width, height }) => {
61
62
  const { expanded, expandDisabled, layout, overflowActionsDisabled, expandPosition } = this;
62
- if (overflowActionsDisabled || layout === "vertical" && !height || layout === "horizontal" && !width) {
63
+ if (overflowActionsDisabled || layout === "vertical" && !height || layout === "horizontal" && !width || !this.containerRef.value) {
63
64
  return;
64
65
  }
65
66
  this.updateGroups();
@@ -108,7 +109,7 @@ class ActionBar extends LitElement {
108
109
  this.expanded = !this.expanded;
109
110
  this.calciteActionBarToggle.emit();
110
111
  };
111
- this.messages = useT9n();
112
+ this.messages = useT9n({ blocking: true });
112
113
  this.focusSetter = useSetFocus()(this);
113
114
  this.setExpandToggleEl = (el) => {
114
115
  this.expandToggleEl = el;
@@ -260,7 +261,7 @@ class ActionBar extends LitElement {
260
261
  this.queryAndStoreActions();
261
262
  const actions = this.actions.filter((action) => !action.disabled);
262
263
  const current = document.activeElement;
263
- if (!isAction(current)) {
264
+ if (!isAction(current) || !actions.includes(current)) {
264
265
  return;
265
266
  }
266
267
  switch (event.key) {
@@ -289,7 +290,12 @@ class ActionBar extends LitElement {
289
290
  }
290
291
  setActionTabIndexes(active) {
291
292
  this.actions.forEach((action) => {
292
- action.tabIndex = !action.disabled && action === active ? 0 : -1;
293
+ const tabIndex = !action.disabled && action === active ? 0 : -1;
294
+ if (tabIndex === 0) {
295
+ action.removeAttribute("tabindex");
296
+ } else {
297
+ action.tabIndex = tabIndex;
298
+ }
293
299
  });
294
300
  }
295
301
  renderExpandTooltipSlot() {
@@ -297,7 +303,7 @@ class ActionBar extends LitElement {
297
303
  }
298
304
  renderExpandToggle() {
299
305
  const { el, expanded, toggleExpand, messages, position, scale } = this;
300
- return ExpandToggle({ collapseLabel: messages.collapseLabel, collapseText: messages.collapse, direction: this.direction, el, expandLabel: messages.expandLabel, expandText: messages.expand, expanded, position, ref: this.setExpandToggleEl, scale, toggle: toggleExpand, tooltip: this.expandTooltip });
306
+ return ExpandToggle({ collapseLabel: messages.collapseLabel, collapseText: messages.collapse, direction: this.direction, el, expanded, expandLabel: messages.expandLabel, expandText: messages.expand, position, ref: this.setExpandToggleEl, scale, toggle: toggleExpand, tooltip: this.expandTooltip });
301
307
  }
302
308
  renderActionsGroup(position) {
303
309
  const { expandDisabled, scale, layout, overlayPositioning, expandPosition } = this;
@@ -16,7 +16,7 @@ import type { Columns } from "./interfaces.js";
16
16
  */
17
17
  export abstract class ActionGroup extends LitElement {
18
18
  /** Specifies the number of columns. */
19
- accessor columns: Columns;
19
+ accessor columns: Columns | undefined;
20
20
  /**
21
21
  * When `true`, expands the component and its contents.
22
22
  *
@@ -24,7 +24,7 @@ export abstract class ActionGroup extends LitElement {
24
24
  */
25
25
  accessor expanded: boolean;
26
26
  /** Specifies an accessible label for the component. */
27
- accessor label: string;
27
+ accessor label: string | undefined;
28
28
  /**
29
29
  * Indicates the layout of the component.
30
30
  *
@@ -33,7 +33,7 @@ export abstract class ActionGroup extends LitElement {
33
33
  */
34
34
  accessor layout: Extract<"horizontal" | "vertical" | "grid", Layout>;
35
35
  /** Specifies the component's fallback `menuPlacement` when it's initial or specified `menuPlacement` has insufficient space available. */
36
- accessor menuFlipPlacements: FlipPlacement[];
36
+ accessor menuFlipPlacements: FlipPlacement[] | undefined;
37
37
  /**
38
38
  * When `true`, the `calcite-action-menu` is open.
39
39
  *
@@ -41,9 +41,15 @@ export abstract class ActionGroup extends LitElement {
41
41
  */
42
42
  accessor menuOpen: boolean;
43
43
  /** Specifies the position of the action menu. */
44
- accessor menuPlacement: LogicalPlacement;
44
+ accessor menuPlacement: LogicalPlacement | undefined;
45
45
  /** Overrides individual strings used by the component. */
46
46
  accessor messageOverrides: { more?: string; };
47
+ /**
48
+ * When `true`, the component's actions will not be overflowed into a menu by a parent `calcite-action-bar`.
49
+ *
50
+ * @default false
51
+ */
52
+ accessor overflowActionsDisabled: boolean;
47
53
  /**
48
54
  * Specifies the type of positioning to use for overlaid content, where:
49
55
  *
@@ -82,14 +88,14 @@ export abstract class ActionGroup extends LitElement {
82
88
  * Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
83
89
  *
84
90
  * @default false
85
- * @mdn [Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
91
+ * @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
86
92
  */
87
93
  accessor topLayerDisabled: boolean;
88
94
  /**
89
95
  * Sets focus on the component's first focusable element.
90
96
  *
91
97
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
92
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
98
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
93
99
  */
94
100
  setFocus(options?: FocusOptions): Promise<void>;
95
101
  /** Fires after an action's active state changes. */
@@ -29,6 +29,7 @@ class ActionGroup extends LitElement {
29
29
  this.layout = "vertical";
30
30
  this.menuOpen = false;
31
31
  this.overlayPositioning = "absolute";
32
+ this.overflowActionsDisabled = false;
32
33
  this.scale = "m";
33
34
  this.selectionMode = "none";
34
35
  this.topLayerDisabled = false;
@@ -39,7 +40,7 @@ class ActionGroup extends LitElement {
39
40
  this.listen("click", this.handleActionClick);
40
41
  }
41
42
  static {
42
- this.properties = { hasMenuActions: [16, {}, { state: true }], columns: [11, {}, { type: Number, reflect: true }], expanded: [7, {}, { reflect: true, type: Boolean }], label: 1, layout: [3, {}, { reflect: true }], menuFlipPlacements: [0, {}, { attribute: false }], menuOpen: [7, {}, { reflect: true, type: Boolean }], menuPlacement: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], overlayPositioning: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], selectedActions: [0, {}, { attribute: false }] };
43
+ this.properties = { hasMenuActions: [16, {}, { state: true }], columns: [11, {}, { type: Number, reflect: true }], expanded: [7, {}, { reflect: true, type: Boolean }], label: 1, layout: [3, {}, { reflect: true }], menuFlipPlacements: [0, {}, { attribute: false }], menuOpen: [7, {}, { reflect: true, type: Boolean }], menuPlacement: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], overlayPositioning: [3, {}, { reflect: true }], overflowActionsDisabled: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], selectedActions: [0, {}, { attribute: false }] };
43
44
  }
44
45
  static {
45
46
  this.shadowRootOptions = { mode: "open", delegatesFocus: true };
@@ -64,14 +64,14 @@ export abstract class ActionMenu extends LitElement {
64
64
  * Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
65
65
  *
66
66
  * @default false
67
- * @mdn [Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
67
+ * @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
68
68
  */
69
69
  accessor topLayerDisabled: boolean;
70
70
  /**
71
71
  * Sets focus on the component.
72
72
  *
73
73
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
74
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
74
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
75
75
  */
76
76
  setFocus(options?: FocusOptions): Promise<void>;
77
77
  /** Fires when the component's content area is collapsed. */
@@ -13,7 +13,7 @@ import type { OverlayPositioning } from "../../utils/floating-ui.js";
13
13
  */
14
14
  export abstract class ActionPad extends LitElement {
15
15
  /** Specifies the accessible label for the last `calcite-action-group`. */
16
- accessor actionsEndGroupLabel: string;
16
+ accessor actionsEndGroupLabel: string | undefined;
17
17
  /**
18
18
  * When `true`, the expand-toggling behavior is disabled.
19
19
  *
@@ -50,7 +50,7 @@ export abstract class ActionPad extends LitElement {
50
50
  */
51
51
  accessor overlayPositioning: OverlayPositioning;
52
52
  /** Specifies the position of the component depending on the element's `dir` property. */
53
- accessor position: Extract<"start" | "end", Position>;
53
+ accessor position: Extract<"start" | "end", Position> | undefined;
54
54
  /**
55
55
  * Specifies the size of the expand `calcite-action`.
56
56
  *
@@ -67,7 +67,7 @@ export abstract class ActionPad extends LitElement {
67
67
  * Sets focus on the component's first focusable element.
68
68
  *
69
69
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
70
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
70
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
71
71
  */
72
72
  setFocus(options?: FocusOptions): Promise<void>;
73
73
  /** Fires when the component's content area is collapsed. */
@@ -17,7 +17,7 @@ const CSS = {
17
17
  const SLOTS = {
18
18
  expandTooltip: "expand-tooltip"
19
19
  };
20
- const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([scale=s]){--calcite-internal-action-pad-gap: var(--calcite-action-pad-items-space, var(--calcite-spacing-xxs));--calcite-internal-action-pad-padding: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-pad-gap: var(--calcite-action-pad-items-space, var(--calcite-spacing-sm));--calcite-internal-action-pad-padding: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-pad-gap: var(--calcite-action-pad-items-space, var(--calcite-space-sm-plus));--calcite-internal-action-pad-padding: var(--calcite-spacing-sm-plus)}:host{display:block}@keyframes in{0%{opacity:0}to{opacity:1}}:host{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:var(--calcite-action-pad-corner-radius, .125rem);background:transparent}:host([expanded][layout=vertical]) .container{max-inline-size:var(--calcite-action-pad-expanded-max-width, auto)}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:1px;padding-block-end:var(--calcite-internal-action-pad-padding)}.container{display:inline-flex;flex-direction:column;overflow:hidden;--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-radius:calc(var(--calcite-action-pad-corner-radius, .125rem) * 2);background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));gap:var(--calcite-internal-action-pad-gap);padding:var(--calcite-internal-action-pad-padding)}.action-group--bottom{flex-grow:1;justify-content:flex-end;padding-block-end:0px}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]) .container .action-group--bottom{padding:0}:host([layout=horizontal]) .container ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:1px;padding-inline-end:var(--calcite-internal-action-pad-padding)}:host([hidden]){display:none}[hidden]{display:none}`;
20
+ const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([scale=s]){--calcite-internal-action-pad-gap: var(--calcite-action-pad-items-space, var(--calcite-spacing-xxs));--calcite-internal-action-pad-padding: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-pad-gap: var(--calcite-action-pad-items-space, var(--calcite-spacing-sm));--calcite-internal-action-pad-padding: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-pad-gap: var(--calcite-action-pad-items-space, var(--calcite-space-sm-plus));--calcite-internal-action-pad-padding: var(--calcite-spacing-sm-plus)}:host{display:block}@keyframes in{0%{opacity:0}to{opacity:1}}:host{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:var(--calcite-action-pad-corner-radius, .125rem);background:transparent}:host([expanded][layout=vertical]) .container{max-inline-size:var(--calcite-action-pad-expanded-max-width, auto)}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:1px;padding-block-end:var(--calcite-internal-action-pad-padding)}.container{display:inline-flex;flex-direction:column;overflow:hidden;box-shadow:var(--calcite-shadow-md);border-radius:calc(var(--calcite-action-pad-corner-radius, .125rem) * 2);background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));gap:var(--calcite-internal-action-pad-gap);padding:var(--calcite-internal-action-pad-padding)}.action-group--bottom{flex-grow:1;justify-content:flex-end;padding-block-end:0px}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]) .container .action-group--bottom{padding:0}:host([layout=horizontal]) .container ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:1px;padding-inline-end:var(--calcite-internal-action-pad-padding)}:host([hidden]){display:none}[hidden]{display:none}`;
21
21
  class ActionPad extends LitElement {
22
22
  constructor() {
23
23
  super();
@@ -28,7 +28,7 @@ class ActionPad extends LitElement {
28
28
  this.expanded = !this.expanded;
29
29
  this.calciteActionPadToggle.emit();
30
30
  };
31
- this.messages = useT9n();
31
+ this.messages = useT9n({ blocking: true });
32
32
  this.focusSetter = useSetFocus()(this);
33
33
  this.expandDisabled = false;
34
34
  this.expanded = false;
@@ -120,7 +120,7 @@ class ActionPad extends LitElement {
120
120
  this.queryAndStoreActions();
121
121
  const actions = this.actions.filter((action) => !action.disabled);
122
122
  const current = document.activeElement;
123
- if (!isAction(current)) {
123
+ if (!isAction(current) || !actions.includes(current)) {
124
124
  return;
125
125
  }
126
126
  switch (event.key) {
@@ -152,9 +152,14 @@ class ActionPad extends LitElement {
152
152
  action.selectionAppearance = this.selectionAppearance;
153
153
  });
154
154
  }
155
- updateTabIndexOfItems(target) {
156
- this.actions.forEach((item) => {
157
- item.tabIndex = target !== item ? -1 : 0;
155
+ updateTabIndexOfItems(active) {
156
+ this.actions.forEach((action) => {
157
+ const tabIndex = !action.disabled && action === active ? 0 : -1;
158
+ if (tabIndex === 0) {
159
+ action.removeAttribute("tabindex");
160
+ } else {
161
+ action.tabIndex = tabIndex;
162
+ }
158
163
  });
159
164
  }
160
165
  queryAndStoreActions() {
@@ -167,7 +172,7 @@ class ActionPad extends LitElement {
167
172
  }
168
173
  renderBottomActionGroup() {
169
174
  const { expanded, expandDisabled, messages, el, position, toggleExpand, scale, layout, actionsEndGroupLabel, overlayPositioning } = this;
170
- const expandToggleNode = !expandDisabled ? ExpandToggle({ collapseLabel: messages.collapseLabel, collapseText: messages.collapse, direction: this.direction, el, expandLabel: messages.expandLabel, expandText: messages.expand, expanded, position, scale, toggle: toggleExpand, tooltip: this.expandTooltip }) : null;
175
+ const expandToggleNode = !expandDisabled ? ExpandToggle({ collapseLabel: messages.collapseLabel, collapseText: messages.collapse, direction: this.direction, el, expanded, expandLabel: messages.expandLabel, expandText: messages.expand, position, scale, toggle: toggleExpand, tooltip: this.expandTooltip }) : null;
171
176
  return expandToggleNode ? html`<calcite-action-group class=${safeClassMap(CSS.actionGroupEnd)} .label=${actionsEndGroupLabel} .layout=${layout} .overlayPositioning=${overlayPositioning} .scale=${scale}><slot name=${SLOTS.expandTooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${expandToggleNode}</calcite-action-group>` : null;
172
177
  }
173
178
  render() {
@@ -90,14 +90,14 @@ export abstract class Alert extends LitElement {
90
90
  * Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
91
91
  *
92
92
  * @default false
93
- * @mdn [Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
93
+ * @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
94
94
  */
95
95
  accessor topLayerDisabled: boolean;
96
96
  /**
97
97
  * Sets focus on the component's "close" button, the first focusable item.
98
98
  *
99
99
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
100
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
100
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
101
101
  */
102
102
  setFocus(options?: FocusOptions): Promise<void>;
103
103
  /** Fires when the component is requested to be closed and before the closing transition begins. */