@esri/calcite-components 1.0.0-next.313 → 1.0.0-next.317

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 (497) hide show
  1. package/dist/calcite/calcite.esm.js +1 -1
  2. package/dist/calcite/p-01c9406e.js +5 -0
  3. package/dist/calcite/{p-765fb8ed.entry.js → p-058ee7b0.entry.js} +1 -1
  4. package/dist/calcite/p-0b53c2c6.system.entry.js +5 -0
  5. package/dist/calcite/p-0d67d5bf.system.entry.js +5 -0
  6. package/dist/calcite/{p-59a285d8.system.entry.js → p-0f33798d.system.entry.js} +1 -1
  7. package/dist/calcite/{p-e70cb594.system.entry.js → p-0f9f1f89.system.entry.js} +1 -1
  8. package/dist/calcite/p-12a9599d.system.entry.js +5 -0
  9. package/dist/calcite/p-141051c4.entry.js +5 -0
  10. package/dist/calcite/{p-9338b0bc.entry.js → p-198902ca.entry.js} +1 -1
  11. package/dist/calcite/p-19d3c50f.system.entry.js +5 -0
  12. package/dist/calcite/{p-cc788d2e.entry.js → p-1ad123f9.entry.js} +1 -1
  13. package/dist/calcite/p-1de453ba.entry.js +5 -0
  14. package/dist/calcite/p-1e4955d7.entry.js +5 -0
  15. package/dist/calcite/{p-e33fe285.system.entry.js → p-1eb04aad.system.entry.js} +1 -1
  16. package/dist/calcite/p-1eb85972.entry.js +5 -0
  17. package/dist/calcite/{p-deb36fde.system.entry.js → p-1f809e6c.system.entry.js} +1 -1
  18. package/dist/calcite/{p-1c8fe17f.system.entry.js → p-2033f545.system.entry.js} +1 -1
  19. package/dist/calcite/{p-f9c46578.entry.js → p-23bc2d32.entry.js} +1 -1
  20. package/dist/calcite/{p-a19e423a.entry.js → p-266ee9db.entry.js} +1 -1
  21. package/dist/calcite/p-26f8f2d1.js +5 -0
  22. package/dist/calcite/{p-d6e30c54.entry.js → p-29d4765b.entry.js} +1 -1
  23. package/dist/calcite/p-2b137143.system.entry.js +5 -0
  24. package/dist/calcite/{p-4e16515a.system.entry.js → p-30afa3c6.system.entry.js} +1 -1
  25. package/dist/calcite/p-35c5e6bd.entry.js +5 -0
  26. package/dist/calcite/{p-ecc00ef0.entry.js → p-3d69fba9.entry.js} +1 -1
  27. package/dist/calcite/p-3ec67fae.entry.js +5 -0
  28. package/dist/calcite/{p-6484ffb7.system.entry.js → p-3f07a3e7.system.entry.js} +1 -1
  29. package/dist/calcite/p-3f82f702.system.entry.js +5 -0
  30. package/dist/calcite/p-41f87fe7.entry.js +5 -0
  31. package/dist/calcite/p-42091a1f.system.entry.js +5 -0
  32. package/dist/calcite/p-43020fb5.js +5 -0
  33. package/dist/calcite/p-437e9d52.entry.js +5 -0
  34. package/dist/calcite/p-44a07313.system.entry.js +5 -0
  35. package/dist/calcite/{p-c34c4414.system.js → p-47f55191.system.js} +1 -1
  36. package/dist/calcite/{p-e52495d3.system.entry.js → p-4a8b3cf3.system.entry.js} +1 -1
  37. package/dist/calcite/p-4af85388.system.entry.js +5 -0
  38. package/dist/calcite/p-4bd82e40.system.js +5 -0
  39. package/dist/calcite/p-4e47f1a5.entry.js +5 -0
  40. package/dist/calcite/{p-cced5508.system.entry.js → p-4ee2f6cf.system.entry.js} +1 -1
  41. package/dist/calcite/p-5035488d.entry.js +5 -0
  42. package/dist/calcite/p-52578054.js +5 -0
  43. package/dist/calcite/p-535d635b.system.entry.js +5 -0
  44. package/dist/calcite/{p-ef39847e.entry.js → p-55bfe4fc.entry.js} +1 -1
  45. package/dist/calcite/p-58e21391.system.entry.js +5 -0
  46. package/dist/calcite/p-5c606579.entry.js +5 -0
  47. package/dist/calcite/p-5dc52ebc.entry.js +5 -0
  48. package/dist/calcite/p-5dce20e5.system.entry.js +5 -0
  49. package/dist/calcite/{p-dff7dc90.system.js → p-60916f97.system.js} +1 -1
  50. package/dist/calcite/p-65748440.entry.js +5 -0
  51. package/dist/calcite/p-6af46786.entry.js +5 -0
  52. package/dist/calcite/{p-e6d05ad6.system.entry.js → p-6c5b849f.system.entry.js} +1 -1
  53. package/dist/calcite/{p-c61ebee9.entry.js → p-702140ce.entry.js} +1 -1
  54. package/dist/calcite/{p-523bc291.system.js → p-71cdeee3.system.js} +1 -1
  55. package/dist/calcite/p-71e299a6.system.js +5 -0
  56. package/dist/calcite/{p-a5e8f022.system.entry.js → p-730b8963.system.entry.js} +1 -1
  57. package/dist/calcite/p-7311f615.entry.js +5 -0
  58. package/dist/calcite/{p-4d11efdb.system.entry.js → p-7325e7fc.system.entry.js} +1 -1
  59. package/dist/calcite/p-732d4acf.entry.js +5 -0
  60. package/dist/calcite/{p-25caf637.system.entry.js → p-784e4e32.system.entry.js} +1 -1
  61. package/dist/calcite/p-7bf46f12.system.entry.js +5 -0
  62. package/dist/calcite/{p-cf03b144.system.entry.js → p-832affcb.system.entry.js} +1 -1
  63. package/dist/calcite/{p-38bd222a.entry.js → p-87f1831b.entry.js} +1 -1
  64. package/dist/calcite/p-88784777.system.entry.js +5 -0
  65. package/dist/calcite/{p-4acfb654.entry.js → p-88b4f504.entry.js} +1 -1
  66. package/dist/calcite/{p-f1c5e7cf.entry.js → p-89987575.entry.js} +1 -1
  67. package/dist/calcite/{p-c4cb4fab.system.entry.js → p-8b2d4eac.system.entry.js} +1 -1
  68. package/dist/calcite/p-8e252799.system.js +1 -1
  69. package/dist/calcite/{p-ace12b8d.entry.js → p-9339cca3.entry.js} +1 -1
  70. package/dist/calcite/{p-f07d3627.js → p-935ff1d1.js} +1 -1
  71. package/dist/calcite/{p-1dd440e6.system.entry.js → p-9470d123.system.entry.js} +1 -1
  72. package/dist/calcite/p-949c8f43.system.entry.js +5 -0
  73. package/dist/calcite/{p-840f2937.system.entry.js → p-95a17f62.system.entry.js} +1 -1
  74. package/dist/calcite/p-9634f89d.entry.js +5 -0
  75. package/dist/calcite/p-97f8034a.system.entry.js +5 -0
  76. package/dist/calcite/{p-004460a0.system.entry.js → p-99e52ea7.system.entry.js} +1 -1
  77. package/dist/calcite/{p-29771742.entry.js → p-9be50494.entry.js} +1 -1
  78. package/dist/calcite/p-9dff8dc8.system.entry.js +5 -0
  79. package/dist/calcite/p-a7be885b.entry.js +5 -0
  80. package/dist/calcite/{p-15f3a0d7.system.entry.js → p-a821e9b3.system.entry.js} +1 -1
  81. package/dist/calcite/{p-b94bf8ac.system.entry.js → p-a98e5444.system.entry.js} +2 -2
  82. package/dist/calcite/p-ab8ce668.system.entry.js +5 -0
  83. package/dist/calcite/{p-74f390e1.system.entry.js → p-ac38b743.system.entry.js} +2 -2
  84. package/dist/calcite/{p-6296644b.entry.js → p-b16b831d.entry.js} +1 -1
  85. package/dist/calcite/{p-e956e279.js → p-b22ebcf2.js} +1 -1
  86. package/dist/calcite/{p-16f2d814.system.entry.js → p-b37b7b9e.system.entry.js} +1 -1
  87. package/dist/calcite/{p-defcee80.system.entry.js → p-b5d21a5d.system.entry.js} +1 -1
  88. package/dist/calcite/p-b6aabc24.entry.js +5 -0
  89. package/dist/calcite/{p-0229a408.js → p-b6b6ec04.js} +1 -1
  90. package/dist/calcite/p-bf82491b.entry.js +5 -0
  91. package/dist/calcite/{p-c0e35328.entry.js → p-c0690971.entry.js} +1 -1
  92. package/dist/calcite/{p-05da7439.entry.js → p-c12e88cd.entry.js} +1 -1
  93. package/dist/calcite/p-c1794615.entry.js +5 -0
  94. package/dist/calcite/{p-8baa9ba4.entry.js → p-c9551366.entry.js} +1 -1
  95. package/dist/calcite/{p-efb2169a.entry.js → p-ca5c0679.entry.js} +1 -1
  96. package/dist/calcite/{p-e5e3b591.entry.js → p-cd1cdf3c.entry.js} +1 -1
  97. package/dist/calcite/{p-35a5c74c.system.js → p-d07ff1ee.system.js} +1 -1
  98. package/dist/calcite/{p-16bb48f6.system.entry.js → p-d102e280.system.entry.js} +1 -1
  99. package/dist/calcite/p-d4e9d7bb.system.entry.js +5 -0
  100. package/dist/calcite/p-dab6ebab.system.entry.js +5 -0
  101. package/dist/calcite/p-ddcf2620.system.entry.js +5 -0
  102. package/dist/calcite/p-e1da1646.entry.js +5 -0
  103. package/dist/calcite/{p-a5269f14.system.entry.js → p-e2d18d39.system.entry.js} +1 -1
  104. package/dist/calcite/p-e5305b02.js +5 -0
  105. package/dist/calcite/{p-10708f87.system.entry.js → p-e6a47d34.system.entry.js} +1 -1
  106. package/dist/calcite/p-e78e743b.entry.js +5 -0
  107. package/dist/calcite/p-e9e13891.entry.js +5 -0
  108. package/dist/calcite/{p-aec398f3.system.entry.js → p-eeb8dfe5.system.entry.js} +1 -1
  109. package/dist/calcite/p-f2620bc3.js +5 -0
  110. package/dist/calcite/{p-f278dd53.entry.js → p-f333e31b.entry.js} +1 -1
  111. package/dist/calcite/{p-4035444d.system.js → p-f825e054.system.js} +1 -1
  112. package/dist/calcite/{p-cbf6bb04.system.js → p-f8266626.system.js} +1 -1
  113. package/dist/calcite/p-f87ba8eb.system.js +5 -0
  114. package/dist/calcite/{p-578509a8.entry.js → p-f97e1a2d.entry.js} +1 -1
  115. package/dist/calcite/{p-2451da5b.entry.js → p-fba77b86.entry.js} +1 -1
  116. package/dist/calcite/{p-289bc56f.entry.js → p-fc32b022.entry.js} +1 -1
  117. package/dist/calcite/p-fccc1605.entry.js +5 -0
  118. package/dist/calcite/{p-5f2a9710.system.entry.js → p-fd1ddcd2.system.entry.js} +1 -1
  119. package/dist/cjs/{CalciteExpandToggle-5f60c98b.js → CalciteExpandToggle-ca629f39.js} +3 -3
  120. package/dist/cjs/calcite-accordion_2.cjs.entry.js +4 -5
  121. package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
  122. package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
  123. package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
  124. package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
  125. package/dist/cjs/calcite-alert.cjs.entry.js +13 -18
  126. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  127. package/dist/cjs/calcite-block_2.cjs.entry.js +2 -2
  128. package/dist/cjs/calcite-button.cjs.entry.js +2 -2
  129. package/dist/cjs/calcite-card.cjs.entry.js +2 -3
  130. package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
  131. package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
  132. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +18 -19
  133. package/dist/cjs/calcite-combobox_3.cjs.entry.js +6 -7
  134. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -14
  135. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +7 -8
  136. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  137. package/dist/cjs/calcite-filter.cjs.entry.js +2 -16
  138. package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -14
  139. package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
  140. package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -2
  141. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +8 -9
  142. package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
  143. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +26 -27
  144. package/dist/cjs/calcite-input.cjs.entry.js +16 -12
  145. package/dist/cjs/calcite-label.cjs.entry.js +1 -1
  146. package/dist/cjs/calcite-link.cjs.entry.js +1 -1
  147. package/dist/cjs/calcite-list_3.cjs.entry.js +1 -1
  148. package/dist/cjs/calcite-modal.cjs.entry.js +3 -4
  149. package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
  150. package/dist/cjs/calcite-option_3.cjs.entry.js +5 -4
  151. package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
  152. package/dist/cjs/calcite-panel.cjs.entry.js +2 -2
  153. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +2 -2
  154. package/dist/cjs/calcite-popover_2.cjs.entry.js +3 -3
  155. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +23 -26
  156. package/dist/cjs/calcite-radio_2.cjs.entry.js +10 -11
  157. package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
  158. package/dist/cjs/calcite-shell_3.cjs.entry.js +17 -8
  159. package/dist/cjs/calcite-split-button.cjs.entry.js +1 -1
  160. package/dist/cjs/calcite-stepper_2.cjs.entry.js +3 -4
  161. package/dist/cjs/calcite-switch.cjs.entry.js +5 -6
  162. package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -7
  163. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +1 -1
  164. package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
  165. package/dist/cjs/calcite-tip_3.cjs.entry.js +2 -2
  166. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +3 -4
  167. package/dist/cjs/calcite-tree_2.cjs.entry.js +2 -3
  168. package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
  169. package/dist/cjs/calcite.cjs.js +1 -1
  170. package/dist/cjs/{dom-19822169.js → dom-41ce6029.js} +7 -0
  171. package/dist/cjs/{form-a5b44a1f.js → form-7f276aa5.js} +1 -1
  172. package/dist/cjs/{label-8e3552b2.js → label-98a31f7d.js} +1 -1
  173. package/dist/cjs/loader.cjs.js +1 -1
  174. package/dist/cjs/{locale-69dc9583.js → locale-d223548e.js} +1 -1
  175. package/dist/cjs/{number-e6448e15.js → number-7d42a856.js} +8 -3
  176. package/dist/cjs/{popper-a7580aca.js → popper-4c24a334.js} +1 -1
  177. package/dist/cjs/{resources-3f7b51c8.js → resources-c2496817.js} +1 -1
  178. package/dist/cjs/{resources-cd25dbae.js → resources-fee43dc4.js} +4 -4
  179. package/dist/collection/components/calcite-accordion/calcite-accordion.js +1 -2
  180. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +1 -2
  181. package/dist/collection/components/calcite-alert/calcite-alert.js +12 -17
  182. package/dist/collection/components/calcite-block-section/calcite-block-section.js +2 -2
  183. package/dist/collection/components/calcite-card/calcite-card.js +1 -2
  184. package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +3 -4
  185. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +1 -2
  186. package/dist/collection/components/calcite-combobox/calcite-combobox.js +1 -2
  187. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +1 -2
  188. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +1 -2
  189. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +1 -2
  190. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +3 -4
  191. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +2 -3
  192. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +1 -2
  193. package/dist/collection/components/calcite-filter/calcite-filter.js +3 -37
  194. package/dist/collection/components/calcite-input/calcite-input.js +12 -7
  195. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +1 -2
  196. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +1 -2
  197. package/dist/collection/components/calcite-modal/calcite-modal.js +2 -3
  198. package/dist/collection/components/calcite-panel/calcite-panel.js +2 -2
  199. package/dist/collection/components/calcite-pick-list/shared-list-logic.js +2 -2
  200. package/dist/collection/components/calcite-pick-list/shared-list-render.js +1 -1
  201. package/dist/collection/components/calcite-popover/calcite-popover.css +1 -0
  202. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +3 -5
  203. package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +17 -20
  204. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +1 -1
  205. package/dist/collection/components/calcite-select/calcite-select.js +2 -1
  206. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +17 -8
  207. package/dist/collection/components/calcite-slider/calcite-slider.js +1 -2
  208. package/dist/collection/components/calcite-stepper/calcite-stepper.js +1 -2
  209. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +1 -2
  210. package/dist/collection/components/calcite-switch/calcite-switch.js +1 -2
  211. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +3 -3
  212. package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +4 -5
  213. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +7 -7
  214. package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +2 -2
  215. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -2
  216. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +1 -2
  217. package/dist/collection/components/functional/CalciteExpandToggle.js +3 -3
  218. package/dist/collection/utils/dom.js +6 -0
  219. package/dist/collection/utils/key.js +0 -23
  220. package/dist/components/CalciteExpandToggle.js +3 -3
  221. package/dist/components/calcite-accordion-item.js +1 -2
  222. package/dist/components/calcite-accordion.js +1 -2
  223. package/dist/components/calcite-alert.js +12 -17
  224. package/dist/components/calcite-avatar.js +1 -1
  225. package/dist/components/calcite-block-section.js +2 -2
  226. package/dist/components/calcite-button2.js +1 -1
  227. package/dist/components/calcite-card.js +1 -2
  228. package/dist/components/calcite-color-picker-hex-input2.js +1 -2
  229. package/dist/components/calcite-color-picker-swatch2.js +1 -1
  230. package/dist/components/calcite-color-picker.js +3 -4
  231. package/dist/components/calcite-combobox.js +1 -2
  232. package/dist/components/calcite-date-picker-day2.js +1 -2
  233. package/dist/components/calcite-date-picker-month-header2.js +3 -4
  234. package/dist/components/calcite-date-picker-month2.js +1 -2
  235. package/dist/components/calcite-date-picker2.js +1 -2
  236. package/dist/components/calcite-dropdown-item.js +1 -2
  237. package/dist/components/calcite-dropdown2.js +2 -3
  238. package/dist/components/calcite-filter2.js +1 -16
  239. package/dist/components/calcite-input-date-picker.js +1 -2
  240. package/dist/components/calcite-input-time-picker.js +1 -2
  241. package/dist/components/calcite-input2.js +11 -7
  242. package/dist/components/calcite-modal.js +3 -4
  243. package/dist/components/calcite-panel.js +2 -2
  244. package/dist/components/calcite-popover-manager.js +1 -1
  245. package/dist/components/calcite-popover2.js +1 -1
  246. package/dist/components/calcite-radio-button.js +3 -4
  247. package/dist/components/calcite-radio-group.js +17 -20
  248. package/dist/components/calcite-select.js +2 -1
  249. package/dist/components/calcite-shell-panel.js +17 -8
  250. package/dist/components/calcite-slider.js +2 -3
  251. package/dist/components/calcite-stepper-item.js +1 -2
  252. package/dist/components/calcite-stepper.js +1 -2
  253. package/dist/components/calcite-switch2.js +1 -2
  254. package/dist/components/calcite-tab-nav2.js +3 -3
  255. package/dist/components/calcite-tab-title2.js +4 -5
  256. package/dist/components/calcite-time-picker2.js +7 -8
  257. package/dist/components/calcite-tip-manager.js +2 -2
  258. package/dist/components/calcite-tooltip-manager2.js +1 -2
  259. package/dist/components/calcite-tree-item.js +2 -3
  260. package/dist/components/dom.js +7 -1
  261. package/dist/components/form.js +1 -1
  262. package/dist/components/label.js +1 -1
  263. package/dist/components/number.js +5 -2
  264. package/dist/components/shared-list-render.js +3 -3
  265. package/dist/custom-elements/index.js +118 -141
  266. package/dist/esm/{CalciteExpandToggle-677f2f8b.js → CalciteExpandToggle-4b38a7d1.js} +3 -3
  267. package/dist/esm/calcite-accordion_2.entry.js +3 -4
  268. package/dist/esm/calcite-action-bar.entry.js +2 -2
  269. package/dist/esm/calcite-action-group.entry.js +1 -1
  270. package/dist/esm/calcite-action-menu.entry.js +1 -1
  271. package/dist/esm/calcite-action-pad.entry.js +2 -2
  272. package/dist/esm/calcite-alert.entry.js +13 -18
  273. package/dist/esm/calcite-avatar.entry.js +1 -1
  274. package/dist/esm/calcite-block_2.entry.js +2 -2
  275. package/dist/esm/calcite-button.entry.js +2 -2
  276. package/dist/esm/calcite-card.entry.js +2 -3
  277. package/dist/esm/calcite-checkbox.entry.js +3 -3
  278. package/dist/esm/calcite-chip.entry.js +1 -1
  279. package/dist/esm/calcite-color-picker_3.entry.js +5 -6
  280. package/dist/esm/calcite-combobox_3.entry.js +5 -6
  281. package/dist/esm/calcite-date-picker_4.entry.js +10 -11
  282. package/dist/esm/calcite-dropdown_3.entry.js +5 -6
  283. package/dist/esm/calcite-fab.entry.js +1 -1
  284. package/dist/esm/calcite-filter.entry.js +2 -16
  285. package/dist/esm/calcite-graph_2.entry.js +4 -5
  286. package/dist/esm/calcite-icon.entry.js +1 -1
  287. package/dist/esm/calcite-inline-editable.entry.js +2 -2
  288. package/dist/esm/calcite-input-date-picker.entry.js +8 -9
  289. package/dist/esm/calcite-input-message.entry.js +1 -1
  290. package/dist/esm/calcite-input-time-picker_2.entry.js +11 -12
  291. package/dist/esm/calcite-input.entry.js +15 -11
  292. package/dist/esm/calcite-label.entry.js +1 -1
  293. package/dist/esm/calcite-link.entry.js +1 -1
  294. package/dist/esm/calcite-list_3.entry.js +1 -1
  295. package/dist/esm/calcite-modal.entry.js +3 -4
  296. package/dist/esm/calcite-notice.entry.js +1 -1
  297. package/dist/esm/calcite-option_3.entry.js +5 -4
  298. package/dist/esm/calcite-pagination.entry.js +1 -1
  299. package/dist/esm/calcite-panel.entry.js +2 -2
  300. package/dist/esm/calcite-pick-list_3.entry.js +2 -2
  301. package/dist/esm/calcite-popover_2.entry.js +3 -3
  302. package/dist/esm/calcite-radio-group_2.entry.js +19 -22
  303. package/dist/esm/calcite-radio_2.entry.js +5 -6
  304. package/dist/esm/calcite-rating.entry.js +3 -3
  305. package/dist/esm/calcite-shell_3.entry.js +17 -8
  306. package/dist/esm/calcite-split-button.entry.js +1 -1
  307. package/dist/esm/calcite-stepper_2.entry.js +3 -4
  308. package/dist/esm/calcite-switch.entry.js +4 -5
  309. package/dist/esm/calcite-tab_4.entry.js +6 -7
  310. package/dist/esm/calcite-tile-select_2.entry.js +1 -1
  311. package/dist/esm/calcite-tile.entry.js +1 -1
  312. package/dist/esm/calcite-tip_3.entry.js +2 -2
  313. package/dist/esm/calcite-tooltip_2.entry.js +3 -4
  314. package/dist/esm/calcite-tree_2.entry.js +2 -3
  315. package/dist/esm/calcite-value-list_2.entry.js +2 -2
  316. package/dist/esm/calcite.js +1 -1
  317. package/dist/esm/{dom-f24e866c.js → dom-dc012a45.js} +7 -1
  318. package/dist/esm/{form-160b0fb5.js → form-6b717ce8.js} +1 -1
  319. package/dist/esm/{label-5559055d.js → label-0d804a87.js} +1 -1
  320. package/dist/esm/loader.js +1 -1
  321. package/dist/esm/{locale-6c1b85c7.js → locale-641b6af3.js} +1 -1
  322. package/dist/esm/{number-e7393766.js → number-2609a8bc.js} +5 -2
  323. package/dist/esm/{popper-f5caedc4.js → popper-ed1eefa6.js} +1 -1
  324. package/dist/esm/{resources-bece7a88.js → resources-1a5b5ecf.js} +1 -1
  325. package/dist/esm/{resources-16a2a25a.js → resources-c31631e5.js} +4 -4
  326. package/dist/esm-es5/CalciteExpandToggle-4b38a7d1.js +5 -0
  327. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  328. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  329. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  330. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  331. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  332. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  333. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  334. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  335. package/dist/esm-es5/calcite-button.entry.js +1 -1
  336. package/dist/esm-es5/calcite-card.entry.js +1 -1
  337. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  338. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  339. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  340. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  341. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  342. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  343. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  344. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  345. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  346. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  347. package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
  348. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  349. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  350. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  351. package/dist/esm-es5/calcite-input.entry.js +1 -1
  352. package/dist/esm-es5/calcite-label.entry.js +1 -1
  353. package/dist/esm-es5/calcite-link.entry.js +1 -1
  354. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  355. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  356. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  357. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  358. package/dist/esm-es5/calcite-pagination.entry.js +1 -1
  359. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  360. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  361. package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
  362. package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
  363. package/dist/esm-es5/calcite-radio_2.entry.js +1 -1
  364. package/dist/esm-es5/calcite-rating.entry.js +1 -1
  365. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  366. package/dist/esm-es5/calcite-split-button.entry.js +1 -1
  367. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  368. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  369. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  370. package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
  371. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  372. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  373. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  374. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  375. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  376. package/dist/esm-es5/calcite.js +1 -1
  377. package/dist/esm-es5/dom-dc012a45.js +5 -0
  378. package/dist/esm-es5/{form-160b0fb5.js → form-6b717ce8.js} +1 -1
  379. package/dist/esm-es5/{label-5559055d.js → label-0d804a87.js} +1 -1
  380. package/dist/esm-es5/loader.js +1 -1
  381. package/dist/esm-es5/locale-641b6af3.js +5 -0
  382. package/dist/esm-es5/number-2609a8bc.js +5 -0
  383. package/dist/esm-es5/{popper-f5caedc4.js → popper-ed1eefa6.js} +1 -1
  384. package/dist/esm-es5/{resources-bece7a88.js → resources-1a5b5ecf.js} +1 -1
  385. package/dist/esm-es5/{resources-16a2a25a.js → resources-c31631e5.js} +1 -1
  386. package/dist/extras/docs-json.json +3 -23
  387. package/dist/types/components/calcite-alert/calcite-alert.d.ts +2 -2
  388. package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +2 -1
  389. package/dist/types/components/calcite-filter/calcite-filter.d.ts +1 -10
  390. package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +1 -2
  391. package/dist/types/components.d.ts +1 -11
  392. package/dist/types/utils/dom.d.ts +4 -0
  393. package/dist/types/utils/key.d.ts +0 -4
  394. package/hydrate/index.js +117 -141
  395. package/package.json +7 -6
  396. package/readme.md +2 -2
  397. package/dist/calcite/assets/calcite-icon/checkSquareF16.json +0 -1
  398. package/dist/calcite/assets/calcite-icon/checkSquareF24.json +0 -1
  399. package/dist/calcite/assets/calcite-icon/checkSquareF32.json +0 -1
  400. package/dist/calcite/assets/calcite-icon/lineSolid4.json +0 -1
  401. package/dist/calcite/assets/calcite-icon/squareF16.json +0 -1
  402. package/dist/calcite/assets/calcite-icon/squareF24.json +0 -1
  403. package/dist/calcite/assets/calcite-icon/squareF32.json +0 -1
  404. package/dist/calcite/assets/calcite-icon/xHexagon16.json +0 -1
  405. package/dist/calcite/assets/calcite-icon/xHexagon24.json +0 -1
  406. package/dist/calcite/assets/calcite-icon/xHexagon32.json +0 -1
  407. package/dist/calcite/assets/calcite-icon/xHexagonF16.json +0 -1
  408. package/dist/calcite/assets/calcite-icon/xHexagonF24.json +0 -1
  409. package/dist/calcite/assets/calcite-icon/xHexagonF32.json +0 -1
  410. package/dist/calcite/assets/calcite-icon/xOctagonF16.json +0 -1
  411. package/dist/calcite/assets/calcite-icon/xOctagonF24.json +0 -1
  412. package/dist/calcite/assets/calcite-icon/xOctagonF32.json +0 -1
  413. package/dist/calcite/p-044d603d.system.entry.js +0 -5
  414. package/dist/calcite/p-0bbe872e.system.entry.js +0 -5
  415. package/dist/calcite/p-0d807182.system.entry.js +0 -5
  416. package/dist/calcite/p-0f014648.entry.js +0 -5
  417. package/dist/calcite/p-0fa1ba75.entry.js +0 -5
  418. package/dist/calcite/p-127e3513.system.entry.js +0 -5
  419. package/dist/calcite/p-1434e37e.entry.js +0 -5
  420. package/dist/calcite/p-1942876c.js +0 -5
  421. package/dist/calcite/p-1a962bdd.js +0 -5
  422. package/dist/calcite/p-1aa89347.system.entry.js +0 -5
  423. package/dist/calcite/p-1b8c3060.entry.js +0 -5
  424. package/dist/calcite/p-2a714a22.entry.js +0 -5
  425. package/dist/calcite/p-2aa3007a.entry.js +0 -5
  426. package/dist/calcite/p-33226317.entry.js +0 -5
  427. package/dist/calcite/p-34038a94.system.entry.js +0 -5
  428. package/dist/calcite/p-34e89de8.entry.js +0 -5
  429. package/dist/calcite/p-362cb320.entry.js +0 -5
  430. package/dist/calcite/p-3b29e94a.entry.js +0 -5
  431. package/dist/calcite/p-3dae9da3.js +0 -5
  432. package/dist/calcite/p-3e6fcede.entry.js +0 -5
  433. package/dist/calcite/p-45b4443f.entry.js +0 -5
  434. package/dist/calcite/p-4778c5cf.system.entry.js +0 -5
  435. package/dist/calcite/p-4f1f83d2.entry.js +0 -5
  436. package/dist/calcite/p-52cc870b.js +0 -5
  437. package/dist/calcite/p-55a5535b.system.entry.js +0 -5
  438. package/dist/calcite/p-56b352bf.system.js +0 -5
  439. package/dist/calcite/p-592da79d.system.entry.js +0 -5
  440. package/dist/calcite/p-5eee672a.system.entry.js +0 -5
  441. package/dist/calcite/p-5efd81e1.entry.js +0 -5
  442. package/dist/calcite/p-63da2e34.system.entry.js +0 -5
  443. package/dist/calcite/p-63e60894.entry.js +0 -5
  444. package/dist/calcite/p-648af80f.system.entry.js +0 -5
  445. package/dist/calcite/p-6cc23c39.system.js +0 -5
  446. package/dist/calcite/p-6d44b7d9.system.js +0 -5
  447. package/dist/calcite/p-72563742.js +0 -5
  448. package/dist/calcite/p-7ba971b5.system.entry.js +0 -5
  449. package/dist/calcite/p-81ab443c.entry.js +0 -5
  450. package/dist/calcite/p-8445bc9c.system.entry.js +0 -5
  451. package/dist/calcite/p-85032edc.system.entry.js +0 -5
  452. package/dist/calcite/p-8603b2e1.entry.js +0 -5
  453. package/dist/calcite/p-91645bf7.system.js +0 -5
  454. package/dist/calcite/p-9577dfd9.entry.js +0 -5
  455. package/dist/calcite/p-9a3bed69.entry.js +0 -5
  456. package/dist/calcite/p-9be6633a.entry.js +0 -5
  457. package/dist/calcite/p-a46c3870.system.entry.js +0 -5
  458. package/dist/calcite/p-a61d85db.system.entry.js +0 -5
  459. package/dist/calcite/p-aaec0d11.system.entry.js +0 -5
  460. package/dist/calcite/p-b2ab0485.js +0 -5
  461. package/dist/calcite/p-bdb92546.entry.js +0 -5
  462. package/dist/calcite/p-bf1812b4.entry.js +0 -5
  463. package/dist/calcite/p-c87c04a9.entry.js +0 -5
  464. package/dist/calcite/p-ca3bb147.entry.js +0 -5
  465. package/dist/calcite/p-cbbfa133.system.entry.js +0 -5
  466. package/dist/calcite/p-d6f20229.js +0 -5
  467. package/dist/calcite/p-dbe899c6.system.entry.js +0 -5
  468. package/dist/calcite/p-e616f9b5.entry.js +0 -5
  469. package/dist/calcite/p-f1e111f4.system.entry.js +0 -5
  470. package/dist/cjs/key-8bfb93ec.js +0 -37
  471. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF16.json +0 -1
  472. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF24.json +0 -1
  473. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF32.json +0 -1
  474. package/dist/collection/components/calcite-icon/assets/calcite-icon/lineSolid4.json +0 -1
  475. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF16.json +0 -1
  476. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF24.json +0 -1
  477. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF32.json +0 -1
  478. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon16.json +0 -1
  479. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon24.json +0 -1
  480. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon32.json +0 -1
  481. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF16.json +0 -1
  482. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF24.json +0 -1
  483. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF32.json +0 -1
  484. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF16.json +0 -1
  485. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF24.json +0 -1
  486. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF32.json +0 -1
  487. package/dist/collection/components/calcite-label/interfaces.js +0 -1
  488. package/dist/collection/demos/_assets/demo-spacer.js +0 -17
  489. package/dist/collection/demos/_assets/demo-template.js +0 -13
  490. package/dist/collection/demos/_assets/head.js +0 -45
  491. package/dist/components/key.js +0 -33
  492. package/dist/esm/key-69001a68.js +0 -33
  493. package/dist/esm-es5/CalciteExpandToggle-677f2f8b.js +0 -5
  494. package/dist/esm-es5/dom-f24e866c.js +0 -5
  495. package/dist/esm-es5/key-69001a68.js +0 -5
  496. package/dist/esm-es5/locale-6c1b85c7.js +0 -5
  497. package/dist/esm-es5/number-e7393766.js +0 -5
@@ -4,8 +4,7 @@
4
4
  */
5
5
  import { Component, Prop, Event, Listen, Element, Method, h, Host, State, Build, Watch } from "@stencil/core";
6
6
  import { guid } from "../../utils/guid";
7
- import { getElementDir, getElementProp } from "../../utils/dom";
8
- import { getKey } from "../../utils/key";
7
+ import { getElementDir, getElementProp, getElementStyleDir } from "../../utils/dom";
9
8
  import { CSS_UTILITY } from "../../utils/resources";
10
9
  import { createObserver } from "../../utils/observers";
11
10
  /**
@@ -123,14 +122,14 @@ export class CalciteTabTitle {
123
122
  this.emitActiveTab();
124
123
  }
125
124
  keyDownHandler(e) {
126
- switch (getKey(e.key)) {
125
+ switch (e.key) {
127
126
  case " ":
128
127
  case "Enter":
129
128
  this.emitActiveTab();
130
129
  e.preventDefault();
131
130
  break;
132
131
  case "ArrowRight":
133
- if (getElementDir(this.el) === "ltr") {
132
+ if (getElementStyleDir(this.el) === "ltr") {
134
133
  this.calciteTabsFocusNext.emit();
135
134
  }
136
135
  else {
@@ -138,7 +137,7 @@ export class CalciteTabTitle {
138
137
  }
139
138
  break;
140
139
  case "ArrowLeft":
141
- if (getElementDir(this.el) === "ltr") {
140
+ if (getElementStyleDir(this.el) === "ltr") {
142
141
  this.calciteTabsFocusPrevious.emit();
143
142
  }
144
143
  else {
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { Component, Element, Host, h, Prop, Event, Watch, State, Listen, Method } from "@stencil/core";
6
- import { getKey, isActivationKey, numberKeys } from "../../utils/key";
6
+ import { isActivationKey, numberKeys } from "../../utils/key";
7
7
  import { isValidNumber } from "../../utils/number";
8
8
  import { formatTimePart, maxTenthForMinuteAndSecond, getMeridiem, getMeridiemHour } from "../../utils/time";
9
9
  import { CSS, TEXT } from "./resources";
@@ -122,7 +122,7 @@ export class CalciteTimePicker {
122
122
  }
123
123
  };
124
124
  this.hourKeyDownHandler = (event) => {
125
- const key = getKey(event.key);
125
+ const key = event.key;
126
126
  if (numberKeys.includes(key)) {
127
127
  const keyAsNumber = parseInt(key);
128
128
  let newHour;
@@ -210,7 +210,7 @@ export class CalciteTimePicker {
210
210
  }
211
211
  };
212
212
  this.meridiemKeyDownHandler = (event) => {
213
- switch (getKey(event.key)) {
213
+ switch (event.key) {
214
214
  case "a":
215
215
  this.setTime("meridiem", "AM");
216
216
  break;
@@ -246,7 +246,7 @@ export class CalciteTimePicker {
246
246
  }
247
247
  };
248
248
  this.minuteKeyDownHandler = (event) => {
249
- const key = getKey(event.key);
249
+ const key = event.key;
250
250
  if (numberKeys.includes(key)) {
251
251
  const keyAsNumber = parseInt(key);
252
252
  let newMinute;
@@ -294,7 +294,7 @@ export class CalciteTimePicker {
294
294
  }
295
295
  };
296
296
  this.secondKeyDownHandler = (event) => {
297
- const key = getKey(event.key);
297
+ const key = event.key;
298
298
  if (numberKeys.includes(key)) {
299
299
  const keyAsNumber = parseInt(key);
300
300
  let newSecond;
@@ -403,7 +403,7 @@ export class CalciteTimePicker {
403
403
  this.calciteTimePickerFocus.emit();
404
404
  }
405
405
  keyDownHandler(event) {
406
- const key = getKey(event.key);
406
+ const key = event.key;
407
407
  switch (this.activeEl) {
408
408
  case this.hourEl:
409
409
  if (key === "ArrowRight") {
@@ -462,7 +462,7 @@ export class CalciteTimePicker {
462
462
  (_a = this[`${target || "hour"}El`]) === null || _a === void 0 ? void 0 : _a.focus();
463
463
  }
464
464
  buttonActivated(event) {
465
- const key = getKey(event.key);
465
+ const key = event.key;
466
466
  if (key === " ") {
467
467
  event.preventDefault();
468
468
  }
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { Component, Element, Event, Method, Prop, State, Watch, h } from "@stencil/core";
6
6
  import { CSS, ICONS, TEXT, HEADING_LEVEL } from "./resources";
7
- import { getElementDir } from "../../utils/dom";
7
+ import { getElementStyleDir } from "../../utils/dom";
8
8
  import { CalciteHeading } from "../functional/CalciteHeading";
9
9
  import { createObserver } from "../../utils/observers";
10
10
  /**
@@ -136,7 +136,7 @@ export class CalciteTipManager {
136
136
  //
137
137
  // --------------------------------------------------------------------------
138
138
  renderPagination() {
139
- const dir = getElementDir(this.el);
139
+ const dir = getElementStyleDir(this.el);
140
140
  const { selectedIndex, tips, total, intlNext, intlPrevious, intlPaginationLabel } = this;
141
141
  const nextLabel = intlNext || TEXT.next;
142
142
  const previousLabel = intlPrevious || TEXT.previous;
@@ -5,7 +5,6 @@
5
5
  import { Component, h, Listen, Prop, Element } from "@stencil/core";
6
6
  import { TOOLTIP_REFERENCE, TOOLTIP_DELAY_MS } from "../calcite-tooltip/resources";
7
7
  import { queryElementRoots } from "../../utils/dom";
8
- import { getKey } from "../../utils/key";
9
8
  /**
10
9
  * @slot - A slot for adding elements that reference a 'calcite-tooltip' by the 'selector' property.
11
10
  */
@@ -117,7 +116,7 @@ export class CalciteTooltipManager {
117
116
  //
118
117
  //--------------------------------------------------------------------------
119
118
  keyUpHandler(event) {
120
- if (getKey(event.key) === "Escape") {
119
+ if (event.key === "Escape") {
121
120
  const { tooltipEl } = this;
122
121
  if (tooltipEl) {
123
122
  this.clearHoverTimeout(tooltipEl);
@@ -5,7 +5,6 @@
5
5
  import { Component, Element, Prop, Host, Event, Listen, Watch, h } from "@stencil/core";
6
6
  import { TreeSelectionMode } from "../calcite-tree/interfaces";
7
7
  import { nodeListToArray, getElementDir, filterDirectChildren, getSlotted } from "../../utils/dom";
8
- import { getKey } from "../../utils/key";
9
8
  import { CSS, SLOTS, ICONS } from "./resources";
10
9
  import { CSS_UTILITY } from "../../utils/resources";
11
10
  /**
@@ -164,7 +163,7 @@ export class CalciteTreeItem {
164
163
  }
165
164
  keyDownHandler(e) {
166
165
  let root;
167
- switch (getKey(e.key)) {
166
+ switch (e.key) {
168
167
  case " ":
169
168
  this.calciteTreeItemSelect.emit({
170
169
  modifyCurrentSelection: e.shiftKey,
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { h } from "@stencil/core";
6
- import { getElementDir } from "../../utils/dom";
6
+ import { getElementDir, getElementStyleDir } from "../../utils/dom";
7
7
  import { queryActions } from "../calcite-action-bar/utils";
8
8
  import { SLOTS as ACTION_GROUP_SLOTS } from "../calcite-action-group/resources";
9
9
  const ICONS = {
@@ -30,7 +30,7 @@ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
30
30
  return referenceElement;
31
31
  };
32
32
  export const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
33
- const rtl = getElementDir(el) === "rtl";
33
+ const rtl = getElementStyleDir(el) === "rtl";
34
34
  const expandText = expanded ? intlCollapse : intlExpand;
35
35
  const icons = [ICONS.chevronsLeft, ICONS.chevronsRight];
36
36
  if (rtl) {
@@ -39,6 +39,6 @@ export const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle
39
39
  const end = getCalcitePosition(position, el) === "end";
40
40
  const expandIcon = end ? icons[1] : icons[0];
41
41
  const collapseIcon = end ? icons[0] : icons[1];
42
- const actionNode = (h("calcite-action", { dir: rtl ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
42
+ const actionNode = (h("calcite-action", { dir: getElementDir(el) === "rtl" ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
43
43
  return tooltip ? h("calcite-tooltip-manager", null, actionNode) : actionNode;
44
44
  };
@@ -23,6 +23,12 @@ export function nodeListToArray(nodeList) {
23
23
  export function getThemeName(el) {
24
24
  return closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}`) ? "dark" : "light";
25
25
  }
26
+ export function getElementStyleDir(el) {
27
+ return window.getComputedStyle(el).direction || "ltr";
28
+ }
29
+ /**
30
+ * @deprecated use getElementStyleDir instead.
31
+ */
26
32
  export function getElementDir(el) {
27
33
  const prop = "dir";
28
34
  const selector = `[${prop}]`;
@@ -2,30 +2,7 @@
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
- /**
6
- * Standardize key property of keyboard event (mostly for ie11)
7
- */
8
- export function getKey(key, dir) {
9
- const lookup = {
10
- Up: "ArrowUp",
11
- Down: "ArrowDown",
12
- Left: "ArrowLeft",
13
- Right: "ArrowRight",
14
- Spacebar: " ",
15
- Esc: "Escape"
16
- };
17
- const adjustedKey = lookup[key] || key;
18
- const isRTL = dir === "rtl";
19
- if (isRTL && adjustedKey === "ArrowLeft") {
20
- return "ArrowRight";
21
- }
22
- if (isRTL && adjustedKey === "ArrowRight") {
23
- return "ArrowLeft";
24
- }
25
- return adjustedKey;
26
- }
27
5
  export function isActivationKey(key) {
28
- key = getKey(key);
29
6
  return key === "Enter" || key === " ";
30
7
  }
31
8
  export const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { forceUpdate, h } from '@stencil/core/internal/client';
6
- import { a as getElementDir } from './dom.js';
6
+ import { c as getElementStyleDir, a as getElementDir } from './dom.js';
7
7
  import { S as SLOTS } from './calcite-action-menu2.js';
8
8
  import { S as SLOTS$1 } from './calcite-action-group2.js';
9
9
 
@@ -71,7 +71,7 @@ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
71
71
  return referenceElement;
72
72
  };
73
73
  const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
74
- const rtl = getElementDir(el) === "rtl";
74
+ const rtl = getElementStyleDir(el) === "rtl";
75
75
  const expandText = expanded ? intlCollapse : intlExpand;
76
76
  const icons = [ICONS.chevronsLeft, ICONS.chevronsRight];
77
77
  if (rtl) {
@@ -80,7 +80,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
80
80
  const end = getCalcitePosition(position, el) === "end";
81
81
  const expandIcon = end ? icons[1] : icons[0];
82
82
  const collapseIcon = end ? icons[0] : icons[1];
83
- const actionNode = (h("calcite-action", { dir: rtl ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
83
+ const actionNode = (h("calcite-action", { dir: getElementDir(el) === "rtl" ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
84
84
  return tooltip ? h("calcite-tooltip-manager", null, actionNode) : actionNode;
85
85
  };
86
86
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
  import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { g as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom.js';
7
- import { g as getKey } from './key.js';
8
7
  import { d as defineCustomElement$2 } from './calcite-icon2.js';
9
8
 
10
9
  const calciteAccordionItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:-90deg;--calcite-accordion-item-active-icon-rotation:0;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0;--calcite-accordion-item-active-icon-rotation-rtl:-180deg}:host{--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host-context([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0}:host-context([appearance=transparent]){--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative;color:var(--calcite-ui-text-3);background-color:var(--calcite-accordion-item-background);--calcite-accordion-item-border:var(--calcite-ui-border-2)}:host .accordion-item-header{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{display:-ms-inline-flexbox;display:inline-flex;position:relative;margin:0;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-right:var(--calcite-accordion-item-icon-spacing-start);margin-left:var(--calcite-accordion-item-icon-spacing-end)}.calcite--rtl .accordion-item-icon{margin-left:var(--calcite-accordion-item-icon-spacing-start);margin-right:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border)}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .accordion-item-content{display:none;color:var(--calcite-ui-text-3);padding-top:0;text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);margin-left:var(--calcite-accordion-item-icon-spacing-start);margin-right:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{margin-left:var(--calcite-accordion-item-icon-spacing-end);margin-right:var(--calcite-accordion-item-icon-spacing-start);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{-ms-flex-direction:column;flex-direction:column;-ms-flex-positive:1;flex-grow:1;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;margin-right:auto;text-align:initial}.calcite--rtl .accordion-item-header-text{margin-right:0;margin-left:auto}:host .accordion-item-title,:host .accordion-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-title{color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-medium)}:host .accordion-item-subtitle{color:var(--calcite-ui-text-3);margin-top:0.25rem}.calcite--rtl .accordion-item-title{margin-right:0;margin-left:auto}:host(:focus) .accordion-item-title,:host(:hover) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:hover) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-title,:host(:active) .accordion-item-title,:host([active]) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:active) .accordion-item-subtitle,:host([active]) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}";
@@ -69,7 +68,7 @@ let CalciteAccordionItem$1 = class extends HTMLElement {
69
68
  //--------------------------------------------------------------------------
70
69
  keyDownHandler(e) {
71
70
  if (e.target === this.el) {
72
- switch (getKey(e.key)) {
71
+ switch (e.key) {
73
72
  case " ":
74
73
  case "Enter":
75
74
  this.emitRequestedItem();
@@ -3,7 +3,6 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
6
- import { g as getKey } from './key.js';
7
6
 
8
7
  const calciteAccordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{display:block;position:relative;max-width:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);border-bottom-width:0;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0;border-color:transparent}:host([appearance=transparent]){border-color:transparent;--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}";
9
8
 
@@ -63,7 +62,7 @@ let CalciteAccordion$1 = class extends HTMLElement {
63
62
  const item = e.detail.item;
64
63
  const parent = e.detail.parent;
65
64
  if (this.el === parent) {
66
- const key = getKey(item.key);
65
+ const key = item.key;
67
66
  const itemToFocus = e.target;
68
67
  const isFirstItem = this.itemIndex(itemToFocus) === 0;
69
68
  const isLastItem = this.itemIndex(itemToFocus) === this.items.length - 1;
@@ -63,13 +63,11 @@ let CalciteAlert$1 = class extends HTMLElement {
63
63
  this.queueLength = 0;
64
64
  /** is the alert queued */
65
65
  this.queued = false;
66
- this.autoDismissTimeout = null;
67
- this.trackTimer = new Date();
66
+ this.autoDismissTimeoutId = null;
67
+ this.trackTimer = Date.now();
68
68
  /** close and emit the closed alert and the queue */
69
69
  this.closeAlert = () => {
70
- if (this.autoDismissTimeout) {
71
- this.autoDismissTimeout = null;
72
- }
70
+ this.autoDismissTimeoutId = null;
73
71
  this.queued = false;
74
72
  this.active = false;
75
73
  this.queue = this.queue.filter((e) => e !== this.el);
@@ -93,10 +91,10 @@ let CalciteAlert$1 = class extends HTMLElement {
93
91
  updateRequestedIcon() {
94
92
  this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
95
93
  }
96
- updateDuration(newDuration, prevDuration) {
97
- if (this.autoDismiss && prevDuration !== newDuration && this.autoDismissTimeout) {
98
- window.clearTimeout(this.autoDismissTimeout);
99
- this.autoDismissTimeout = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration] - (new Date().valueOf() - this.trackTimer.valueOf()));
94
+ updateDuration() {
95
+ if (this.autoDismiss && this.autoDismissTimeoutId) {
96
+ window.clearTimeout(this.autoDismissTimeoutId);
97
+ this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration] - (Date.now() - this.trackTimer));
100
98
  }
101
99
  }
102
100
  //--------------------------------------------------------------------------
@@ -116,9 +114,7 @@ let CalciteAlert$1 = class extends HTMLElement {
116
114
  this.alertLinkEl = this.el.querySelectorAll("calcite-link")[0];
117
115
  }
118
116
  disconnectedCallback() {
119
- if (this.autoDismissTimeout) {
120
- window.clearTimeout(this.autoDismissTimeout);
121
- }
117
+ window.clearTimeout(this.autoDismissTimeoutId);
122
118
  }
123
119
  render() {
124
120
  const dir = getElementDir(this.el);
@@ -126,14 +122,13 @@ let CalciteAlert$1 = class extends HTMLElement {
126
122
  const queueText = `+${this.queueLength > 2 ? this.queueLength - 1 : 1}`;
127
123
  const queueCount = (h("div", { class: `${this.queueLength > 1 ? "active " : ""}alert-queue-count` }, h("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
128
124
  const { active, autoDismiss, label, queued, requestedIcon } = this;
129
- const progressBar = h("div", { class: "alert-dismiss-progress" });
130
125
  const role = autoDismiss ? "alert" : "alertdialog";
131
126
  const hidden = !active;
132
127
  return (h(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, h("div", { class: {
133
128
  container: true,
134
129
  queued,
135
130
  [CSS_UTILITY.rtl]: dir === "rtl"
136
- } }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS.title }), h("slot", { name: SLOTS.message }), h("slot", { name: SLOTS.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? progressBar : null)));
131
+ } }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS.title }), h("slot", { name: SLOTS.message }), h("slot", { name: SLOTS.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
137
132
  }
138
133
  // when an alert is opened or closed, update queue and determine active alert
139
134
  alertSync(event) {
@@ -179,9 +174,9 @@ let CalciteAlert$1 = class extends HTMLElement {
179
174
  var _a;
180
175
  if (((_a = this.queue) === null || _a === void 0 ? void 0 : _a[0]) === this.el) {
181
176
  this.openAlert();
182
- if (this.autoDismiss && !this.autoDismissTimeout) {
183
- this.trackTimer = new Date();
184
- this.autoDismissTimeout = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration]);
177
+ if (this.autoDismiss && !this.autoDismissTimeoutId) {
178
+ this.trackTimer = Date.now();
179
+ this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration]);
185
180
  }
186
181
  }
187
182
  else {
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { HTMLElement, h, proxyCustomElement } from '@stencil/core/internal/client';
6
- import { a as getElementDir, c as getThemeName } from './dom.js';
6
+ import { a as getElementDir, d as getThemeName } from './dom.js';
7
7
  import { h as hexToRGB, i as isValidHex } from './utils.js';
8
8
  import { d as defineCustomElement$2 } from './calcite-icon2.js';
9
9
 
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
6
- import { a as getElementDir, C as CSS_UTILITY } from './dom.js';
6
+ import { c as getElementStyleDir, C as CSS_UTILITY } from './dom.js';
7
7
  import { d as defineCustomElement$3 } from './calcite-icon2.js';
8
8
  import { d as defineCustomElement$2 } from './calcite-switch2.js';
9
9
 
@@ -84,7 +84,7 @@ let CalciteBlockSection$1 = class extends HTMLElement {
84
84
  }
85
85
  render() {
86
86
  const { el, intlCollapse, intlExpand, open, text, toggleDisplay } = this;
87
- const dir = getElementDir(el);
87
+ const dir = getElementStyleDir(el);
88
88
  const arrowIcon = open
89
89
  ? ICONS.menuOpen
90
90
  : dir === "rtl"
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { HTMLElement as HTMLElement$1, Build, h, proxyCustomElement } from '@stencil/core/internal/client';
6
- import { d as closestElementCrossShadowBoundary, a as getElementDir, C as CSS_UTILITY } from './dom.js';
6
+ import { e as closestElementCrossShadowBoundary, a as getElementDir, C as CSS_UTILITY } from './dom.js';
7
7
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label.js';
8
8
  import { c as createObserver } from './observers.js';
9
9
  import { d as defineCustomElement$2 } from './calcite-icon2.js';
@@ -4,7 +4,6 @@
4
4
  */
5
5
  import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { a as getElementDir, C as CSS_UTILITY } from './dom.js';
7
- import { g as getKey } from './key.js';
8
7
  import { d as defineCustomElement$4 } from './calcite-checkbox2.js';
9
8
  import { d as defineCustomElement$3 } from './calcite-label2.js';
10
9
  import { d as defineCustomElement$2 } from './calcite-loader2.js';
@@ -76,7 +75,7 @@ let CalciteCard$1 = class extends HTMLElement {
76
75
  this.selectCard();
77
76
  };
78
77
  this.cardSelectKeyDown = (e) => {
79
- switch (getKey(e.key)) {
78
+ switch (e.key) {
80
79
  case " ":
81
80
  case "Enter":
82
81
  this.selectCard();
@@ -6,7 +6,6 @@ import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/i
6
6
  import { n as normalizeHex, i as isValidHex, a as isLonghandHex, r as rgbToHex, h as hexToRGB, b as hexChar } from './utils.js';
7
7
  import { c as color, d as defineCustomElement$4 } from './calcite-color-picker-swatch2.js';
8
8
  import { a as getElementDir, f as focusElement } from './dom.js';
9
- import { g as getKey } from './key.js';
10
9
  import { d as defineCustomElement$3 } from './calcite-icon2.js';
11
10
  import { d as defineCustomElement$2 } from './calcite-input2.js';
12
11
  import { d as defineCustomElement$1 } from './calcite-progress2.js';
@@ -248,7 +247,7 @@ let CalciteColorPickerHexInput = class extends HTMLElement {
248
247
  onInputKeyDown(event) {
249
248
  const { altKey, ctrlKey, metaKey, shiftKey } = event;
250
249
  const { internalColor, value } = this;
251
- const key = getKey(event.key);
250
+ const key = event.key;
252
251
  if (key === "Tab" || key === "Enter") {
253
252
  this.onInputChange();
254
253
  return;
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { HTMLElement, h, proxyCustomElement } from '@stencil/core/internal/client';
6
- import { c as getThemeName } from './dom.js';
6
+ import { d as getThemeName } from './dom.js';
7
7
 
8
8
  function createCommonjsModule(fn, basedir, module) {
9
9
  return module = {
@@ -7,7 +7,6 @@ import { c as color, d as defineCustomElement$a } from './calcite-color-picker-s
7
7
  import { D as DEFAULT_COLOR, T as TEXT, a as DIMENSIONS, H as HSV_LIMITS, C as CSS, d as defineCustomElement$b, b as DEFAULT_STORAGE_KEY_PREFIX, R as RGB_LIMITS } from './calcite-color-picker-hex-input2.js';
8
8
  import { f as focusElement, a as getElementDir, C as CSS_UTILITY } from './dom.js';
9
9
  import { n as normalizeHex, C as CSSColorMode, p as parseMode, c as colorEqual } from './utils.js';
10
- import { g as getKey } from './key.js';
11
10
  import { c as clamp } from './math.js';
12
11
  import { d as defineCustomElement$c } from './calcite-button2.js';
13
12
  import { d as defineCustomElement$9 } from './calcite-icon2.js';
@@ -237,7 +236,7 @@ let CalciteColorPicker$1 = class extends HTMLElement {
237
236
  this.updateChannelsFromColor(this.color);
238
237
  };
239
238
  this.handleColorFieldScopeKeyDown = (event) => {
240
- const key = getKey(event.key);
239
+ const key = event.key;
241
240
  const arrowKeyToXYOffset = {
242
241
  ArrowUp: { x: 0, y: -10 },
243
242
  ArrowRight: { x: 10, y: 0 },
@@ -252,7 +251,7 @@ let CalciteColorPicker$1 = class extends HTMLElement {
252
251
  };
253
252
  this.handleHueScopeKeyDown = (event) => {
254
253
  const modifier = event.shiftKey ? 10 : 1;
255
- const key = getKey(event.key);
254
+ const key = event.key;
256
255
  const arrowKeyToXOffset = {
257
256
  ArrowUp: 1,
258
257
  ArrowRight: 1,
@@ -590,7 +589,7 @@ let CalciteColorPicker$1 = class extends HTMLElement {
590
589
  // using @Listen as a workaround for VDOM listener not firing
591
590
  handleChannelKeyUpOrDown(event) {
592
591
  this.shiftKeyChannelAdjustment = 0;
593
- const key = getKey(event.key);
592
+ const key = event.key;
594
593
  if ((key !== "ArrowUp" && key !== "ArrowDown") ||
595
594
  !event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS.channel); })) {
596
595
  return;
@@ -6,7 +6,6 @@ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/
6
6
  import { a as isSymbol, S as Symbol, d as debounce } from './debounce.js';
7
7
  import { i as isArray, f as forIn } from './forIn.js';
8
8
  import { a as getElementDir } from './dom.js';
9
- import { g as getKey } from './key.js';
10
9
  import { u as updatePopper, c as createPopper, C as CSS } from './popper.js';
11
10
  import { g as guid } from './guid.js';
12
11
  import { C as ComboboxChildSelector, g as getItemAncestors, a as getItemChildren, h as hasActiveChildren, b as ComboboxItem, c as ComboboxItemGroup, d as ComboboxDefaultPlacement } from './utils2.js';
@@ -235,7 +234,7 @@ let CalciteCombobox$1 = class extends HTMLElement {
235
234
  this.setFocus();
236
235
  };
237
236
  this.keydownHandler = (event) => {
238
- const key = getKey(event.key, getElementDir(this.el));
237
+ const { key } = event;
239
238
  switch (key) {
240
239
  case "Tab":
241
240
  this.activeChipIndex = -1;
@@ -3,7 +3,6 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
6
- import { g as getKey } from './key.js';
7
6
  import { a as getElementDir, C as CSS_UTILITY } from './dom.js';
8
7
 
9
8
  const calciteDatePickerDayCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;color:var(--calcite-ui-text-3);cursor:pointer;min-width:0;width:14.2857142857%}.day-v-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}.day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.day{display:-ms-flexbox;display:flex;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;line-height:1;color:var(--calcite-ui-text-3);-webkit-transition-property:all;transition-property:all;opacity:var(--calcite-ui-opacity-disabled);background:none;-webkit-box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent;box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent}.text{margin-top:1px;margin-right:0;margin-bottom:0;margin-left:1px}:host([scale=s]) .day-v-wrapper{padding-top:0.125rem;padding-bottom:0.125rem}:host([scale=s]) .day-wrapper{padding:0}:host([scale=s]) .day{height:27px;width:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=m]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]) .day{height:33px;width:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=l]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=l]) .day{height:43px;width:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host([disabled]){cursor:default;opacity:0.25}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){z-index:1}:host(:focus:not([disabled])) .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important;z-index:1}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range]) .calcite--rtl .day-wrapper{border-top-left-radius:40%;border-bottom-left-radius:40%;-webkit-box-shadow:inset 4px 0 var(--calcite-ui-foreground-1);box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) :not(.calcite--rtl) .day,:host([end-of-range]) .calcite--rtl .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range]) .calcite--rtl .day-wrapper{border-top-right-radius:40%;border-bottom-right-radius:40%;-webkit-box-shadow:inset -4px 0 var(--calcite-ui-foreground-1);box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day,:host([start-of-range]) .calcite--rtl .day{opacity:1}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([start-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -8px 0 var(--calcite-ui-foreground-1);box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 8px 0 var(--calcite-ui-foreground-1);box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{border-radius:0;color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0;-webkit-box-shadow:none;box-shadow:none}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0;-webkit-box-shadow:none;box-shadow:none}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0;-webkit-box-shadow:none;box-shadow:none}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0;-webkit-box-shadow:none;box-shadow:none}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-current)), to(var(--calcite-ui-foreground-current)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{border-top-right-radius:45%;border-bottom-right-radius:45%;-webkit-box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{border-top-left-radius:45%;border-bottom-left-radius:45%;-webkit-box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}";
@@ -42,7 +41,7 @@ let CalciteDatePickerDay = class extends HTMLElement {
42
41
  !this.disabled && this.calciteDaySelect.emit();
43
42
  };
44
43
  this.keyDownHandler = (e) => {
45
- const key = getKey(e.key);
44
+ const key = e.key;
46
45
  if (key === " " || key === "Enter") {
47
46
  !this.disabled && this.calciteDaySelect.emit();
48
47
  }
@@ -5,7 +5,6 @@
5
5
  import { HTMLElement, createEvent, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { a as getElementDir } from './dom.js';
7
7
  import { l as localizeNumber, c as getOrder, b as dateFromRange, n as nextMonth, p as prevMonth, e as parseNumber } from './date.js';
8
- import { g as getKey } from './key.js';
9
8
  import { C as CalciteHeading } from './CalciteHeading.js';
10
9
  import { d as defineCustomElement$1 } from './calcite-icon2.js';
11
10
 
@@ -27,7 +26,7 @@ let CalciteDatePickerMonthHeader = class extends HTMLElement {
27
26
  */
28
27
  this.onYearKey = (e) => {
29
28
  const year = e.target.value;
30
- switch (getKey(e.key)) {
29
+ switch (e.key) {
31
30
  case "ArrowDown":
32
31
  e.preventDefault();
33
32
  this.setYear(year, -1);
@@ -45,7 +44,7 @@ let CalciteDatePickerMonthHeader = class extends HTMLElement {
45
44
  this.handleArrowClick(e, this.prevMonthDate);
46
45
  };
47
46
  this.prevMonthKeydown = (e) => {
48
- const key = getKey(e.key);
47
+ const key = e.key;
49
48
  if (key === " " || key === "Enter") {
50
49
  this.prevMonthClick(e);
51
50
  }
@@ -54,7 +53,7 @@ let CalciteDatePickerMonthHeader = class extends HTMLElement {
54
53
  this.handleArrowClick(e, this.nextMonthDate);
55
54
  };
56
55
  this.nextMonthKeydown = (e) => {
57
- const key = getKey(e.key);
56
+ const key = e.key;
58
57
  if (key === " " || key === "Enter") {
59
58
  this.nextMonthClick(e);
60
59
  }
@@ -4,7 +4,6 @@
4
4
  */
5
5
  import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { s as sameDate, b as dateFromRange, i as inRange } from './date.js';
7
- import { g as getKey } from './key.js';
8
7
  import { a as getElementDir } from './dom.js';
9
8
  import { d as defineCustomElement$1 } from './calcite-date-picker-day2.js';
10
9
 
@@ -28,7 +27,7 @@ let CalciteDatePickerMonth = class extends HTMLElement {
28
27
  //--------------------------------------------------------------------------
29
28
  this.keyDownHandler = (e) => {
30
29
  const isRTL = this.el.dir === "rtl";
31
- switch (getKey(e.key)) {
30
+ switch (e.key) {
32
31
  case "ArrowUp":
33
32
  e.preventDefault();
34
33
  this.addDays(-7);