@esri/calcite-components 1.0.0-next.653 → 1.0.0-next.655

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 (700) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/index.esm.js +1 -1
  3. package/dist/calcite/p-043ea88f.entry.js +6 -0
  4. package/dist/calcite/{p-dee6d536.js → p-04a542d5.js} +2 -2
  5. package/dist/calcite/{p-2ec7c680.js → p-05c07433.js} +1 -1
  6. package/dist/calcite/{p-28884998.entry.js → p-06b8eaf1.entry.js} +2 -2
  7. package/dist/calcite/p-114b5d1c.entry.js +6 -0
  8. package/dist/calcite/p-15500e9a.entry.js +6 -0
  9. package/dist/calcite/p-1982152c.entry.js +6 -0
  10. package/dist/calcite/p-19eef56a.entry.js +6 -0
  11. package/dist/calcite/p-1d01393e.js +6 -0
  12. package/dist/calcite/p-1d457dd1.js +6 -0
  13. package/dist/calcite/p-20a4c9c3.entry.js +6 -0
  14. package/dist/calcite/{p-406fcc95.entry.js → p-21588351.entry.js} +2 -2
  15. package/dist/calcite/p-26e36a96.entry.js +6 -0
  16. package/dist/calcite/p-2964e90c.entry.js +6 -0
  17. package/dist/calcite/{p-49701eee.js → p-29dc2fc3.js} +1 -1
  18. package/dist/calcite/{p-bff4c20d.entry.js → p-2e002bf7.entry.js} +2 -2
  19. package/dist/calcite/p-31512acf.js +6 -0
  20. package/dist/calcite/{p-e2f5256c.entry.js → p-3403e756.entry.js} +2 -2
  21. package/dist/calcite/p-340e338f.entry.js +6 -0
  22. package/dist/calcite/p-3b4fbb37.entry.js +6 -0
  23. package/dist/calcite/{p-220b7569.entry.js → p-3c0dcfb7.entry.js} +2 -2
  24. package/dist/calcite/{p-048b7796.js → p-3f55b93b.js} +1 -1
  25. package/dist/calcite/p-3fcadef4.entry.js +6 -0
  26. package/dist/calcite/p-442b6798.entry.js +6 -0
  27. package/dist/calcite/p-46dd2ba4.entry.js +6 -0
  28. package/dist/calcite/p-47685252.entry.js +6 -0
  29. package/dist/calcite/p-4a861228.entry.js +6 -0
  30. package/dist/calcite/p-4b46c28a.entry.js +6 -0
  31. package/dist/calcite/{p-8fb7ee35.entry.js → p-4f08640a.entry.js} +2 -2
  32. package/dist/calcite/p-5007e6bd.entry.js +6 -0
  33. package/dist/calcite/{p-d849b5b6.entry.js → p-56ad5531.entry.js} +2 -2
  34. package/dist/calcite/p-595da7bb.entry.js +6 -0
  35. package/dist/calcite/{p-d5e70d38.entry.js → p-62677747.entry.js} +2 -2
  36. package/dist/calcite/{p-24c048b5.js → p-6c29460f.js} +1 -1
  37. package/dist/calcite/{p-6e0ecbed.entry.js → p-70af3d23.entry.js} +2 -2
  38. package/dist/calcite/p-70e5d6c1.entry.js +6 -0
  39. package/dist/calcite/{p-36046779.js → p-75665b0d.js} +1 -1
  40. package/dist/calcite/p-789b6bad.entry.js +6 -0
  41. package/dist/calcite/p-7a197dad.entry.js +6 -0
  42. package/dist/calcite/p-7ce637a8.entry.js +6 -0
  43. package/dist/calcite/p-7dfeef91.entry.js +6 -0
  44. package/dist/calcite/{p-3dc251f4.entry.js → p-8087a217.entry.js} +2 -2
  45. package/dist/calcite/p-8693a7bb.entry.js +6 -0
  46. package/dist/calcite/p-883da6ae.js +6 -0
  47. package/dist/calcite/{p-1e7d0a3e.entry.js → p-894b85ce.entry.js} +2 -2
  48. package/dist/calcite/{p-675dfbe8.entry.js → p-8d68685d.entry.js} +2 -2
  49. package/dist/calcite/{p-44a78e82.entry.js → p-914480aa.entry.js} +2 -2
  50. package/dist/calcite/p-93a37211.entry.js +6 -0
  51. package/dist/calcite/{p-b567d164.js → p-94d9499a.js} +1 -1
  52. package/dist/calcite/p-97338377.entry.js +6 -0
  53. package/dist/calcite/p-9a2d8ab0.entry.js +6 -0
  54. package/dist/calcite/{p-627cd0ab.entry.js → p-9b91641b.entry.js} +2 -2
  55. package/dist/calcite/p-9be856ff.entry.js +6 -0
  56. package/dist/calcite/p-a13d26d4.entry.js +6 -0
  57. package/dist/calcite/{p-e1fa408f.js → p-a176bb86.js} +2 -2
  58. package/dist/calcite/p-a2aa2633.entry.js +6 -0
  59. package/dist/calcite/{p-3274abf2.js → p-a46eae3b.js} +2 -2
  60. package/dist/calcite/{p-b0cecf6b.js → p-a9ad5958.js} +1 -1
  61. package/dist/calcite/p-ab331d08.entry.js +6 -0
  62. package/dist/calcite/p-adc56e8e.entry.js +6 -0
  63. package/dist/calcite/p-ae16f981.entry.js +6 -0
  64. package/dist/calcite/{p-0a1f589a.js → p-af6229cc.js} +2 -2
  65. package/dist/calcite/{p-5a953a75.js → p-b2464ba9.js} +1 -1
  66. package/dist/calcite/p-b257f060.entry.js +6 -0
  67. package/dist/calcite/p-b3de53d6.js +6 -0
  68. package/dist/calcite/p-b52352f0.entry.js +6 -0
  69. package/dist/calcite/p-b60fc503.js +6 -0
  70. package/dist/calcite/{p-5bb6cc45.js → p-bb298c47.js} +1 -1
  71. package/dist/calcite/{p-4296ca3f.js → p-c55e7664.js} +1 -1
  72. package/dist/calcite/{p-b9184c58.entry.js → p-c66c342c.entry.js} +2 -2
  73. package/dist/calcite/p-c8cb4d64.entry.js +6 -0
  74. package/dist/calcite/{p-f857cfa2.entry.js → p-c91c0d84.entry.js} +2 -2
  75. package/dist/calcite/{p-74c02e3a.js → p-ce2cd41b.js} +3 -3
  76. package/dist/calcite/{p-98183f7a.js → p-d1250cd5.js} +1 -1
  77. package/dist/calcite/p-d1ea7e98.entry.js +6 -0
  78. package/dist/calcite/p-d4897627.js +6 -0
  79. package/dist/calcite/{p-1a859cf5.js → p-d63eca00.js} +1 -1
  80. package/dist/calcite/p-d7a2f588.js +6 -0
  81. package/dist/calcite/p-d9073ba3.entry.js +6 -0
  82. package/dist/calcite/p-df638ece.entry.js +6 -0
  83. package/dist/calcite/{p-c8946ac4.js → p-e0117b64.js} +1 -1
  84. package/dist/calcite/p-e17d5384.entry.js +6 -0
  85. package/dist/calcite/p-ea9d9c5c.entry.js +6 -0
  86. package/dist/calcite/{p-4869c10e.js → p-f33ca6d1.js} +2 -2
  87. package/dist/calcite/p-f4006464.js +6 -0
  88. package/dist/calcite/p-f5c2dc70.entry.js +6 -0
  89. package/dist/calcite/{p-a53596e5.js → p-f5dbda7d.js} +1 -1
  90. package/dist/calcite/{p-e452903d.js → p-f735579b.js} +1 -1
  91. package/dist/calcite/p-f86dead7.entry.js +6 -0
  92. package/dist/calcite/{p-1cdae83d.js → p-fb2017d2.js} +1 -1
  93. package/dist/calcite/{p-a1a81de3.entry.js → p-fd4ed53a.entry.js} +2 -2
  94. package/dist/cjs/{ExpandToggle-8d248ee3.js → ExpandToggle-b5b731d6.js} +7 -8
  95. package/dist/cjs/{Heading-dd6d6eb7.js → Heading-86fb7f76.js} +2 -2
  96. package/dist/cjs/{app-globals-35dd7e0f.js → app-globals-f51875dc.js} +2 -2
  97. package/dist/cjs/{array-bc2da329.js → array-6f9691d3.js} +1 -1
  98. package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -8
  99. package/dist/cjs/calcite-action-bar.cjs.entry.js +17 -20
  100. package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
  101. package/dist/cjs/calcite-action-menu.cjs.entry.js +15 -15
  102. package/dist/cjs/calcite-action-pad.cjs.entry.js +12 -13
  103. package/dist/cjs/calcite-action.cjs.entry.js +13 -17
  104. package/dist/cjs/calcite-alert.cjs.entry.js +12 -13
  105. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  106. package/dist/cjs/calcite-block_2.cjs.entry.js +11 -12
  107. package/dist/cjs/calcite-button.cjs.entry.js +15 -19
  108. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  109. package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -12
  110. package/dist/cjs/calcite-chip.cjs.entry.js +9 -10
  111. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +19 -21
  112. package/dist/cjs/calcite-combobox_3.cjs.entry.js +30 -37
  113. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +36 -28
  114. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +19 -22
  115. package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
  116. package/dist/cjs/calcite-filter.cjs.entry.js +9 -9
  117. package/dist/cjs/calcite-flow-item.cjs.entry.js +10 -11
  118. package/dist/cjs/calcite-flow.cjs.entry.js +5 -7
  119. package/dist/cjs/calcite-graph_2.cjs.entry.js +16 -18
  120. package/dist/cjs/calcite-handle.cjs.entry.js +7 -8
  121. package/dist/cjs/calcite-icon.cjs.entry.js +7 -8
  122. package/dist/cjs/calcite-inline-editable.cjs.entry.js +17 -23
  123. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +32 -36
  124. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  125. package/dist/cjs/calcite-input-number.cjs.entry.js +23 -31
  126. package/dist/cjs/calcite-input-text.cjs.entry.js +14 -18
  127. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +23 -27
  128. package/dist/cjs/calcite-input.cjs.entry.js +25 -33
  129. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  130. package/dist/cjs/calcite-link.cjs.entry.js +7 -7
  131. package/dist/cjs/calcite-list_3.cjs.entry.js +22 -26
  132. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  133. package/dist/cjs/calcite-modal.cjs.entry.js +14 -17
  134. package/dist/cjs/calcite-notice.cjs.entry.js +9 -9
  135. package/dist/cjs/calcite-option_3.cjs.entry.js +17 -22
  136. package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
  137. package/dist/cjs/calcite-panel.cjs.entry.js +18 -21
  138. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +15 -17
  139. package/dist/cjs/calcite-popover.cjs.entry.js +12 -12
  140. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  141. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -7
  142. package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
  143. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +11 -12
  144. package/dist/cjs/calcite-rating.cjs.entry.js +12 -14
  145. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  146. package/dist/cjs/calcite-shell_3.cjs.entry.js +12 -14
  147. package/dist/cjs/calcite-sortable-list.cjs.entry.js +10 -15
  148. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  149. package/dist/cjs/calcite-stepper_2.cjs.entry.js +17 -22
  150. package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
  151. package/dist/cjs/calcite-tab_4.cjs.entry.js +26 -34
  152. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -7
  153. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  154. package/dist/cjs/calcite-tip_3.cjs.entry.js +12 -15
  155. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
  156. package/dist/cjs/calcite-tree_2.cjs.entry.js +16 -21
  157. package/dist/cjs/calcite-value-list_2.cjs.entry.js +19 -21
  158. package/dist/cjs/calcite.cjs.js +4 -4
  159. package/dist/cjs/{conditionalSlot-d2dd31d5.js → conditionalSlot-01e94659.js} +3 -3
  160. package/dist/cjs/{debounce-fec2cc26.js → debounce-9787fe3f.js} +1 -1
  161. package/dist/cjs/{dom-8db20575.js → dom-0c006683.js} +13 -13
  162. package/dist/cjs/{filter-4951900a.js → filter-1f20ad58.js} +3 -3
  163. package/dist/cjs/{floating-ui-16ec7ef7.js → floating-ui-357b6162.js} +7 -8
  164. package/dist/cjs/{focusTrapComponent-1f7ac746.js → focusTrapComponent-f6ec01ac.js} +4 -6
  165. package/dist/cjs/{form-df338099.js → form-affb950f.js} +5 -7
  166. package/dist/cjs/{guid-7c9bf705.js → guid-bcf2e27d.js} +1 -1
  167. package/dist/cjs/{index-11cbd6ae.js → index-e7f6d8a9.js} +1 -1
  168. package/dist/cjs/index.cjs.js +1 -1
  169. package/dist/cjs/{interactive-12572356.js → interactive-50819d76.js} +1 -1
  170. package/dist/cjs/{interfaces-bcf5a504.js → interfaces-65e8ab48.js} +1 -1
  171. package/dist/cjs/{key-5efe25db.js → key-27cd9b48.js} +1 -1
  172. package/dist/cjs/{label-f2b57841.js → label-b53d0971.js} +4 -5
  173. package/dist/cjs/{loadable-fdc027c5.js → loadable-5fff6d49.js} +1 -1
  174. package/dist/cjs/loader.cjs.js +4 -4
  175. package/dist/cjs/{locale-ad2e4def.js → locale-7c7ea778.js} +7 -8
  176. package/dist/cjs/{math-e3bf7036.js → math-b2c68418.js} +1 -1
  177. package/dist/cjs/{nonChromiumPlatformUtils-ee7586d2.js → nonChromiumPlatformUtils-25b21483.js} +6 -6
  178. package/dist/cjs/{observers-1cb80ad6.js → observers-93a0a981.js} +1 -1
  179. package/dist/cjs/{openCloseComponent-42ea9fde.js → openCloseComponent-7e8c6590.js} +1 -1
  180. package/dist/cjs/{resources-61c779db.js → resources-154a6134.js} +1 -1
  181. package/dist/cjs/{resources-883ffa52.js → resources-2a151557.js} +3 -3
  182. package/dist/cjs/{resources-f5a03517.js → resources-34896b85.js} +1 -1
  183. package/dist/cjs/{resources-125245bd.js → resources-9a470a7e.js} +1 -1
  184. package/dist/cjs/{resources-e6605c29.js → resources-bdc925d6.js} +1 -1
  185. package/dist/cjs/{resources-01342a2b.js → resources-d4a726c6.js} +11 -16
  186. package/dist/cjs/{sortable.esm-ec7f83ae.js → sortable.esm-2e3e4661.js} +1 -1
  187. package/dist/cjs/{utils-727a0b8e.js → utils-dda0c978.js} +2 -2
  188. package/dist/collection/components/accordion/accordion.js +2 -2
  189. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  190. package/dist/collection/components/accordion-item/resources.js +1 -1
  191. package/dist/collection/components/action/action.js +6 -10
  192. package/dist/collection/components/action/resources.js +1 -1
  193. package/dist/collection/components/action-bar/action-bar.js +6 -9
  194. package/dist/collection/components/action-bar/resources.js +1 -1
  195. package/dist/collection/components/action-bar/utils.js +2 -2
  196. package/dist/collection/components/action-group/action-group.js +1 -1
  197. package/dist/collection/components/action-group/resources.js +1 -1
  198. package/dist/collection/components/action-menu/action-menu.js +7 -7
  199. package/dist/collection/components/action-menu/resources.js +1 -1
  200. package/dist/collection/components/action-pad/action-pad.js +2 -3
  201. package/dist/collection/components/action-pad/resources.js +1 -1
  202. package/dist/collection/components/alert/alert.js +2 -3
  203. package/dist/collection/components/alert/interfaces.js +1 -1
  204. package/dist/collection/components/alert/resources.js +1 -1
  205. package/dist/collection/components/avatar/avatar.js +1 -1
  206. package/dist/collection/components/avatar/utils.js +1 -1
  207. package/dist/collection/components/block/block.js +1 -1
  208. package/dist/collection/components/block/resources.js +1 -1
  209. package/dist/collection/components/block-section/block-section.js +2 -3
  210. package/dist/collection/components/block-section/resources.js +1 -1
  211. package/dist/collection/components/button/button.js +6 -10
  212. package/dist/collection/components/button/resources.js +1 -1
  213. package/dist/collection/components/card/card.js +1 -1
  214. package/dist/collection/components/card/resources.js +1 -1
  215. package/dist/collection/components/checkbox/checkbox.js +2 -3
  216. package/dist/collection/components/chip/chip.js +2 -3
  217. package/dist/collection/components/chip/resources.js +1 -1
  218. package/dist/collection/components/color-picker/color-picker.js +9 -11
  219. package/dist/collection/components/color-picker/resources.js +1 -1
  220. package/dist/collection/components/color-picker/utils.js +2 -2
  221. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  222. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  223. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  224. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  225. package/dist/collection/components/combobox/combobox.js +13 -18
  226. package/dist/collection/components/combobox/resources.js +1 -1
  227. package/dist/collection/components/combobox/utils.js +4 -6
  228. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  229. package/dist/collection/components/combobox-item/resources.js +1 -1
  230. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  231. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  232. package/dist/collection/components/date-picker/date-picker.js +5 -7
  233. package/dist/collection/components/date-picker/resources.js +1 -1
  234. package/dist/collection/components/date-picker/utils.js +1 -1
  235. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  236. package/dist/collection/components/date-picker-month/date-picker-month.js +4 -6
  237. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +7 -8
  238. package/dist/collection/components/date-picker-month-header/resources.js +14 -1
  239. package/dist/collection/components/dropdown/dropdown.js +7 -9
  240. package/dist/collection/components/dropdown/resources.js +1 -1
  241. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  242. package/dist/collection/components/dropdown-group/resources.js +1 -1
  243. package/dist/collection/components/dropdown-item/dropdown-item.js +2 -3
  244. package/dist/collection/components/dropdown-item/resources.js +1 -1
  245. package/dist/collection/components/fab/fab.js +1 -1
  246. package/dist/collection/components/fab/resources.js +1 -1
  247. package/dist/collection/components/filter/filter.js +1 -1
  248. package/dist/collection/components/filter/resources.js +1 -1
  249. package/dist/collection/components/flow/flow.js +3 -5
  250. package/dist/collection/components/flow/resources.js +1 -1
  251. package/dist/collection/components/flow-item/flow-item.js +3 -4
  252. package/dist/collection/components/flow-item/resources.js +1 -1
  253. package/dist/collection/components/functional/ExpandToggle.js +2 -3
  254. package/dist/collection/components/functional/Heading.js +1 -1
  255. package/dist/collection/components/graph/graph.js +3 -5
  256. package/dist/collection/components/graph/util.js +1 -1
  257. package/dist/collection/components/handle/handle.js +2 -3
  258. package/dist/collection/components/handle/resources.js +1 -1
  259. package/dist/collection/components/icon/icon.js +2 -3
  260. package/dist/collection/components/icon/resources.js +1 -1
  261. package/dist/collection/components/icon/utils.js +1 -1
  262. package/dist/collection/components/inline-editable/inline-editable.js +9 -15
  263. package/dist/collection/components/inline-editable/resources.js +1 -1
  264. package/dist/collection/components/input/input.js +13 -21
  265. package/dist/collection/components/input/resources.js +1 -1
  266. package/dist/collection/components/input-date-picker/input-date-picker.js +17 -21
  267. package/dist/collection/components/input-date-picker/resources.js +1 -1
  268. package/dist/collection/components/input-message/input-message.js +1 -1
  269. package/dist/collection/components/input-message/interfaces.js +1 -1
  270. package/dist/collection/components/input-number/input-number.js +11 -19
  271. package/dist/collection/components/input-number/resources.js +1 -1
  272. package/dist/collection/components/input-text/input-text.js +5 -9
  273. package/dist/collection/components/input-text/resources.js +1 -1
  274. package/dist/collection/components/input-time-picker/input-time-picker.js +4 -6
  275. package/dist/collection/components/label/label.js +1 -1
  276. package/dist/collection/components/label/resources.js +1 -1
  277. package/dist/collection/components/link/link.js +1 -1
  278. package/dist/collection/components/list/list.js +8 -12
  279. package/dist/collection/components/list/resources.js +1 -1
  280. package/dist/collection/components/list-item/list-item.js +5 -5
  281. package/dist/collection/components/list-item/resources.js +1 -1
  282. package/dist/collection/components/list-item/utils.js +3 -3
  283. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  284. package/dist/collection/components/list-item-group/resources.js +1 -1
  285. package/dist/collection/components/loader/loader.js +1 -1
  286. package/dist/collection/components/modal/modal.css +1 -1
  287. package/dist/collection/components/modal/modal.js +5 -8
  288. package/dist/collection/components/modal/resources.js +1 -1
  289. package/dist/collection/components/notice/notice.js +1 -1
  290. package/dist/collection/components/notice/resources.js +1 -1
  291. package/dist/collection/components/option/option.js +3 -5
  292. package/dist/collection/components/option-group/option-group.js +1 -1
  293. package/dist/collection/components/pagination/pagination.js +1 -1
  294. package/dist/collection/components/pagination/resources.js +1 -1
  295. package/dist/collection/components/panel/panel.js +8 -11
  296. package/dist/collection/components/panel/resources.js +1 -1
  297. package/dist/collection/components/pick-list/pick-list.js +1 -1
  298. package/dist/collection/components/pick-list/resources.js +1 -1
  299. package/dist/collection/components/pick-list/shared-list-logic.js +7 -12
  300. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  301. package/dist/collection/components/pick-list-group/pick-list-group.js +2 -3
  302. package/dist/collection/components/pick-list-group/resources.js +1 -1
  303. package/dist/collection/components/pick-list-item/pick-list-item.js +2 -3
  304. package/dist/collection/components/pick-list-item/resources.js +1 -1
  305. package/dist/collection/components/popover/PopoverManager.js +1 -1
  306. package/dist/collection/components/popover/popover.js +1 -1
  307. package/dist/collection/components/popover/resources.js +1 -1
  308. package/dist/collection/components/progress/progress.js +1 -1
  309. package/dist/collection/components/radio-button/radio-button.js +2 -2
  310. package/dist/collection/components/radio-button/resources.js +1 -1
  311. package/dist/collection/components/radio-button-group/radio-button-group.js +3 -5
  312. package/dist/collection/components/radio-group/radio-group.js +3 -4
  313. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  314. package/dist/collection/components/radio-group-item/resources.js +1 -1
  315. package/dist/collection/components/rating/rating.js +3 -5
  316. package/dist/collection/components/rating/resources.js +1 -1
  317. package/dist/collection/components/scrim/resources.js +1 -1
  318. package/dist/collection/components/scrim/scrim.js +1 -1
  319. package/dist/collection/components/select/resources.js +1 -1
  320. package/dist/collection/components/select/select.js +6 -9
  321. package/dist/collection/components/shell/resources.js +1 -1
  322. package/dist/collection/components/shell/shell.js +1 -1
  323. package/dist/collection/components/shell-center-row/resources.js +1 -1
  324. package/dist/collection/components/shell-center-row/shell-center-row.js +2 -2
  325. package/dist/collection/components/shell-panel/resources.js +1 -1
  326. package/dist/collection/components/shell-panel/shell-panel.js +4 -6
  327. package/dist/collection/components/slider/resources.js +1 -1
  328. package/dist/collection/components/slider/slider.js +2 -2
  329. package/dist/collection/components/sortable-list/resources.js +1 -1
  330. package/dist/collection/components/sortable-list/sortable-list.js +6 -11
  331. package/dist/collection/components/split-button/resources.js +1 -1
  332. package/dist/collection/components/split-button/split-button.js +1 -1
  333. package/dist/collection/components/stepper/stepper.js +3 -4
  334. package/dist/collection/components/stepper-item/stepper-item.js +6 -10
  335. package/dist/collection/components/switch/switch.js +1 -1
  336. package/dist/collection/components/tab/tab.js +3 -5
  337. package/dist/collection/components/tab-nav/tab-nav.js +13 -17
  338. package/dist/collection/components/tab-title/tab-title.js +6 -8
  339. package/dist/collection/components/tabs/resources.js +1 -1
  340. package/dist/collection/components/tabs/tabs.js +1 -1
  341. package/dist/collection/components/tile/resources.js +1 -1
  342. package/dist/collection/components/tile/tile.js +1 -1
  343. package/dist/collection/components/tile-select/resources.js +1 -1
  344. package/dist/collection/components/tile-select/tile-select.js +2 -3
  345. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  346. package/dist/collection/components/time-picker/resources.js +1 -1
  347. package/dist/collection/components/time-picker/time-picker.js +4 -5
  348. package/dist/collection/components/tip/resources.js +1 -1
  349. package/dist/collection/components/tip/tip.js +2 -3
  350. package/dist/collection/components/tip-group/tip-group.js +1 -1
  351. package/dist/collection/components/tip-manager/resources.js +1 -1
  352. package/dist/collection/components/tip-manager/tip-manager.js +4 -6
  353. package/dist/collection/components/tooltip/TooltipManager.js +2 -2
  354. package/dist/collection/components/tooltip/resources.js +1 -1
  355. package/dist/collection/components/tooltip/tooltip.js +1 -1
  356. package/dist/collection/components/tree/tree.js +3 -5
  357. package/dist/collection/components/tree/utils.js +2 -2
  358. package/dist/collection/components/tree-item/resources.js +1 -1
  359. package/dist/collection/components/tree-item/tree-item.js +6 -9
  360. package/dist/collection/components/value-list/resources.js +1 -1
  361. package/dist/collection/components/value-list/utils.js +3 -3
  362. package/dist/collection/components/value-list/value-list.js +4 -5
  363. package/dist/collection/components/value-list-item/resources.js +1 -1
  364. package/dist/collection/components/value-list-item/value-list-item.js +2 -3
  365. package/dist/collection/utils/array.js +1 -1
  366. package/dist/collection/utils/conditionalSlot.js +1 -1
  367. package/dist/collection/utils/config.js +1 -1
  368. package/dist/collection/utils/date.js +1 -1
  369. package/dist/collection/utils/dom.js +11 -11
  370. package/dist/collection/utils/filter.js +2 -2
  371. package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
  372. package/dist/collection/utils/floating-ui.js +4 -5
  373. package/dist/collection/utils/focusTrapComponent.js +3 -5
  374. package/dist/collection/utils/form.js +3 -5
  375. package/dist/collection/utils/globalAttributes.js +1 -1
  376. package/dist/collection/utils/globalScript.js +1 -1
  377. package/dist/collection/utils/guid.js +1 -1
  378. package/dist/collection/utils/interactive.js +1 -1
  379. package/dist/collection/utils/key.js +1 -1
  380. package/dist/collection/utils/label.js +3 -4
  381. package/dist/collection/utils/loadable.js +1 -1
  382. package/dist/collection/utils/locale.js +4 -5
  383. package/dist/collection/utils/math.js +1 -1
  384. package/dist/collection/utils/number.js +1 -1
  385. package/dist/collection/utils/observers.js +1 -1
  386. package/dist/collection/utils/openCloseComponent.js +1 -1
  387. package/dist/collection/utils/resources.js +1 -1
  388. package/dist/collection/utils/t9n.js +2 -3
  389. package/dist/collection/utils/theme.js +1 -1
  390. package/dist/collection/utils/time.js +6 -7
  391. package/dist/components/ExpandToggle.js +3 -4
  392. package/dist/components/Heading.js +1 -1
  393. package/dist/components/action-group.js +1 -1
  394. package/dist/components/action-menu.js +7 -7
  395. package/dist/components/action.js +6 -10
  396. package/dist/components/array.js +1 -1
  397. package/dist/components/button.js +6 -10
  398. package/dist/components/calcite-accordion-item.js +1 -1
  399. package/dist/components/calcite-accordion.js +2 -2
  400. package/dist/components/calcite-action-bar.js +6 -9
  401. package/dist/components/calcite-action-group.js +1 -1
  402. package/dist/components/calcite-action-menu.js +1 -1
  403. package/dist/components/calcite-action-pad.js +2 -3
  404. package/dist/components/calcite-action.js +1 -1
  405. package/dist/components/calcite-alert.js +2 -3
  406. package/dist/components/calcite-avatar.js +1 -1
  407. package/dist/components/calcite-block-section.js +2 -3
  408. package/dist/components/calcite-block.js +1 -1
  409. package/dist/components/calcite-button.js +1 -1
  410. package/dist/components/calcite-card.js +1 -1
  411. package/dist/components/calcite-checkbox.js +1 -1
  412. package/dist/components/calcite-chip.js +1 -1
  413. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  414. package/dist/components/calcite-color-picker-swatch.js +1 -1
  415. package/dist/components/calcite-color-picker.js +9 -11
  416. package/dist/components/calcite-combobox-item-group.js +1 -1
  417. package/dist/components/calcite-combobox-item.js +1 -1
  418. package/dist/components/calcite-combobox.js +13 -18
  419. package/dist/components/calcite-date-picker-day.js +1 -1
  420. package/dist/components/calcite-date-picker-month-header.js +1 -1
  421. package/dist/components/calcite-date-picker-month.js +1 -1
  422. package/dist/components/calcite-date-picker.js +1 -1
  423. package/dist/components/calcite-dropdown-group.js +1 -1
  424. package/dist/components/calcite-dropdown-item.js +2 -3
  425. package/dist/components/calcite-dropdown.js +1 -1
  426. package/dist/components/calcite-fab.js +1 -1
  427. package/dist/components/calcite-filter.js +1 -1
  428. package/dist/components/calcite-flow-item.js +3 -4
  429. package/dist/components/calcite-flow.js +3 -5
  430. package/dist/components/calcite-graph.js +1 -1
  431. package/dist/components/calcite-handle.js +1 -1
  432. package/dist/components/calcite-icon.js +1 -1
  433. package/dist/components/calcite-inline-editable.js +9 -15
  434. package/dist/components/calcite-input-date-picker.js +17 -21
  435. package/dist/components/calcite-input-message.js +1 -1
  436. package/dist/components/calcite-input-number.js +11 -19
  437. package/dist/components/calcite-input-text.js +5 -9
  438. package/dist/components/calcite-input-time-picker.js +4 -6
  439. package/dist/components/calcite-input.js +1 -1
  440. package/dist/components/calcite-label.js +1 -1
  441. package/dist/components/calcite-link.js +1 -1
  442. package/dist/components/calcite-list-item-group.js +1 -1
  443. package/dist/components/calcite-list-item.js +5 -5
  444. package/dist/components/calcite-list.js +8 -12
  445. package/dist/components/calcite-loader.js +1 -1
  446. package/dist/components/calcite-modal.js +5 -8
  447. package/dist/components/calcite-notice.js +1 -1
  448. package/dist/components/calcite-option-group.js +1 -1
  449. package/dist/components/calcite-option.js +3 -5
  450. package/dist/components/calcite-pagination.js +1 -1
  451. package/dist/components/calcite-panel.js +1 -1
  452. package/dist/components/calcite-pick-list-group.js +2 -3
  453. package/dist/components/calcite-pick-list-item.js +1 -1
  454. package/dist/components/calcite-pick-list.js +1 -1
  455. package/dist/components/calcite-popover.js +1 -1
  456. package/dist/components/calcite-progress.js +1 -1
  457. package/dist/components/calcite-radio-button-group.js +3 -5
  458. package/dist/components/calcite-radio-button.js +2 -2
  459. package/dist/components/calcite-radio-group-item.js +1 -1
  460. package/dist/components/calcite-radio-group.js +3 -4
  461. package/dist/components/calcite-rating.js +3 -5
  462. package/dist/components/calcite-scrim.js +1 -1
  463. package/dist/components/calcite-select.js +6 -9
  464. package/dist/components/calcite-shell-center-row.js +2 -2
  465. package/dist/components/calcite-shell-panel.js +4 -6
  466. package/dist/components/calcite-shell.js +1 -1
  467. package/dist/components/calcite-slider.js +2 -2
  468. package/dist/components/calcite-sortable-list.js +6 -11
  469. package/dist/components/calcite-split-button.js +1 -1
  470. package/dist/components/calcite-stepper-item.js +6 -10
  471. package/dist/components/calcite-stepper.js +3 -4
  472. package/dist/components/calcite-switch.js +1 -1
  473. package/dist/components/calcite-tab-nav.js +1 -1
  474. package/dist/components/calcite-tab-title.js +1 -1
  475. package/dist/components/calcite-tab.js +1 -1
  476. package/dist/components/calcite-tabs.js +1 -1
  477. package/dist/components/calcite-tile-select-group.js +1 -1
  478. package/dist/components/calcite-tile-select.js +2 -3
  479. package/dist/components/calcite-tile.js +1 -1
  480. package/dist/components/calcite-time-picker.js +1 -1
  481. package/dist/components/calcite-tip-group.js +1 -1
  482. package/dist/components/calcite-tip-manager.js +4 -6
  483. package/dist/components/calcite-tip.js +2 -3
  484. package/dist/components/calcite-tooltip.js +1 -1
  485. package/dist/components/calcite-tree-item.js +6 -9
  486. package/dist/components/calcite-tree.js +4 -6
  487. package/dist/components/calcite-value-list-item.js +2 -3
  488. package/dist/components/calcite-value-list.js +6 -7
  489. package/dist/components/checkbox.js +2 -3
  490. package/dist/components/chip.js +2 -3
  491. package/dist/components/color-picker-hex-input.js +1 -1
  492. package/dist/components/color-picker-swatch.js +1 -1
  493. package/dist/components/conditionalSlot.js +1 -1
  494. package/dist/components/date-picker-day.js +1 -1
  495. package/dist/components/date-picker-month-header.js +19 -7
  496. package/dist/components/date-picker-month.js +4 -6
  497. package/dist/components/date-picker.js +5 -7
  498. package/dist/components/date.js +1 -1
  499. package/dist/components/debounce.js +1 -1
  500. package/dist/components/dom.js +11 -11
  501. package/dist/components/dropdown.js +7 -9
  502. package/dist/components/filter.js +1 -1
  503. package/dist/components/filter2.js +2 -2
  504. package/dist/components/floating-ui.js +4 -5
  505. package/dist/components/focusTrapComponent.js +3 -5
  506. package/dist/components/form.js +3 -5
  507. package/dist/components/graph.js +3 -5
  508. package/dist/components/guid.js +1 -1
  509. package/dist/components/handle.js +2 -3
  510. package/dist/components/icon.js +2 -3
  511. package/dist/components/index.js +1 -1
  512. package/dist/components/input.js +13 -21
  513. package/dist/components/interactive.js +1 -1
  514. package/dist/components/interfaces.js +1 -1
  515. package/dist/components/key.js +1 -1
  516. package/dist/components/label.js +1 -1
  517. package/dist/components/label2.js +3 -4
  518. package/dist/components/link.js +1 -1
  519. package/dist/components/loadable.js +1 -1
  520. package/dist/components/loader.js +1 -1
  521. package/dist/components/locale.js +4 -5
  522. package/dist/components/math.js +1 -1
  523. package/dist/components/nonChromiumPlatformUtils.js +1 -1
  524. package/dist/components/observers.js +1 -1
  525. package/dist/components/openCloseComponent.js +1 -1
  526. package/dist/components/panel.js +8 -11
  527. package/dist/components/pick-list-item.js +2 -3
  528. package/dist/components/popover.js +1 -1
  529. package/dist/components/progress.js +1 -1
  530. package/dist/components/resources.js +3 -3
  531. package/dist/components/resources2.js +1 -1
  532. package/dist/components/resources3.js +1 -1
  533. package/dist/components/scrim.js +1 -1
  534. package/dist/components/shared-list-render.js +7 -12
  535. package/dist/components/sortable.esm.js +1 -1
  536. package/dist/components/switch.js +1 -1
  537. package/dist/components/tab-nav.js +13 -17
  538. package/dist/components/tab-title.js +6 -8
  539. package/dist/components/tab.js +3 -5
  540. package/dist/components/tabs.js +1 -1
  541. package/dist/components/tile.js +1 -1
  542. package/dist/components/time-picker.js +9 -11
  543. package/dist/components/tooltip.js +2 -2
  544. package/dist/components/utils.js +2 -2
  545. package/dist/components/utils2.js +4 -6
  546. package/dist/esm/{ExpandToggle-3ec34795.js → ExpandToggle-67f409ce.js} +7 -8
  547. package/dist/esm/{Heading-f71bbfe4.js → Heading-7d30eb95.js} +2 -2
  548. package/dist/esm/{app-globals-61e0f5bb.js → app-globals-91c967df.js} +2 -2
  549. package/dist/esm/{array-f3af604a.js → array-0f371fbe.js} +1 -1
  550. package/dist/esm/calcite-accordion_2.entry.js +8 -8
  551. package/dist/esm/calcite-action-bar.entry.js +17 -20
  552. package/dist/esm/calcite-action-group.entry.js +9 -9
  553. package/dist/esm/calcite-action-menu.entry.js +15 -15
  554. package/dist/esm/calcite-action-pad.entry.js +12 -13
  555. package/dist/esm/calcite-action.entry.js +13 -17
  556. package/dist/esm/calcite-alert.entry.js +12 -13
  557. package/dist/esm/calcite-avatar.entry.js +6 -6
  558. package/dist/esm/calcite-block_2.entry.js +11 -12
  559. package/dist/esm/calcite-button.entry.js +15 -19
  560. package/dist/esm/calcite-card.entry.js +7 -7
  561. package/dist/esm/calcite-checkbox.entry.js +11 -12
  562. package/dist/esm/calcite-chip.entry.js +9 -10
  563. package/dist/esm/calcite-color-picker_3.entry.js +19 -21
  564. package/dist/esm/calcite-combobox_3.entry.js +30 -37
  565. package/dist/esm/calcite-date-picker_4.entry.js +36 -28
  566. package/dist/esm/calcite-dropdown_3.entry.js +19 -22
  567. package/dist/esm/calcite-fab.entry.js +7 -7
  568. package/dist/esm/calcite-filter.entry.js +9 -9
  569. package/dist/esm/calcite-flow-item.entry.js +10 -11
  570. package/dist/esm/calcite-flow.entry.js +5 -7
  571. package/dist/esm/calcite-graph_2.entry.js +16 -18
  572. package/dist/esm/calcite-handle.entry.js +7 -8
  573. package/dist/esm/calcite-icon.entry.js +7 -8
  574. package/dist/esm/calcite-inline-editable.entry.js +17 -23
  575. package/dist/esm/calcite-input-date-picker.entry.js +32 -36
  576. package/dist/esm/calcite-input-message.entry.js +5 -5
  577. package/dist/esm/calcite-input-number.entry.js +23 -31
  578. package/dist/esm/calcite-input-text.entry.js +14 -18
  579. package/dist/esm/calcite-input-time-picker_2.entry.js +23 -27
  580. package/dist/esm/calcite-input.entry.js +25 -33
  581. package/dist/esm/calcite-label.entry.js +6 -6
  582. package/dist/esm/calcite-link.entry.js +7 -7
  583. package/dist/esm/calcite-list_3.entry.js +22 -26
  584. package/dist/esm/calcite-loader.entry.js +3 -3
  585. package/dist/esm/calcite-modal.entry.js +14 -17
  586. package/dist/esm/calcite-notice.entry.js +9 -9
  587. package/dist/esm/calcite-option_3.entry.js +17 -22
  588. package/dist/esm/calcite-pagination.entry.js +8 -8
  589. package/dist/esm/calcite-panel.entry.js +18 -21
  590. package/dist/esm/calcite-pick-list_3.entry.js +15 -17
  591. package/dist/esm/calcite-popover.entry.js +12 -12
  592. package/dist/esm/calcite-progress.entry.js +2 -2
  593. package/dist/esm/calcite-radio-button-group.entry.js +5 -7
  594. package/dist/esm/calcite-radio-button.entry.js +11 -11
  595. package/dist/esm/calcite-radio-group_2.entry.js +11 -12
  596. package/dist/esm/calcite-rating.entry.js +12 -14
  597. package/dist/esm/calcite-scrim.entry.js +2 -2
  598. package/dist/esm/calcite-shell_3.entry.js +12 -14
  599. package/dist/esm/calcite-sortable-list.entry.js +10 -15
  600. package/dist/esm/calcite-split-button.entry.js +3 -3
  601. package/dist/esm/calcite-stepper_2.entry.js +17 -22
  602. package/dist/esm/calcite-switch.entry.js +10 -10
  603. package/dist/esm/calcite-tab_4.entry.js +26 -34
  604. package/dist/esm/calcite-tile-select_2.entry.js +6 -7
  605. package/dist/esm/calcite-tile.entry.js +8 -8
  606. package/dist/esm/calcite-tip_3.entry.js +12 -15
  607. package/dist/esm/calcite-tooltip.entry.js +9 -9
  608. package/dist/esm/calcite-tree_2.entry.js +16 -21
  609. package/dist/esm/calcite-value-list_2.entry.js +19 -21
  610. package/dist/esm/calcite.js +4 -4
  611. package/dist/esm/{conditionalSlot-be35718d.js → conditionalSlot-7375791c.js} +3 -3
  612. package/dist/esm/{debounce-511eda6a.js → debounce-fa1ba8dd.js} +1 -1
  613. package/dist/esm/{dom-3d0a39a1.js → dom-f86880a8.js} +13 -13
  614. package/dist/esm/{filter-275e53f4.js → filter-fe83cf69.js} +3 -3
  615. package/dist/esm/{floating-ui-fc56a23b.js → floating-ui-06e2aace.js} +7 -8
  616. package/dist/esm/{focusTrapComponent-2dcf390f.js → focusTrapComponent-725a0cce.js} +4 -6
  617. package/dist/esm/{form-99c3afb4.js → form-411e884b.js} +5 -7
  618. package/dist/esm/{guid-b0902c5e.js → guid-8a166774.js} +1 -1
  619. package/dist/esm/{index-a3e37dea.js → index-d632f7a1.js} +1 -1
  620. package/dist/esm/index.js +1 -1
  621. package/dist/esm/{interactive-ee12cb1f.js → interactive-3f5bd2e0.js} +1 -1
  622. package/dist/esm/{interfaces-461b2615.js → interfaces-7ca05385.js} +1 -1
  623. package/dist/esm/{key-26613542.js → key-d42e35a4.js} +1 -1
  624. package/dist/esm/{label-b9c0aa89.js → label-39b9caf1.js} +4 -5
  625. package/dist/esm/{loadable-9a013351.js → loadable-ecb83b69.js} +1 -1
  626. package/dist/esm/loader.js +4 -4
  627. package/dist/esm/{locale-35d09242.js → locale-9cc8d692.js} +7 -8
  628. package/dist/esm/{math-5fdb35a6.js → math-03369c68.js} +1 -1
  629. package/dist/esm/{nonChromiumPlatformUtils-928c5ed3.js → nonChromiumPlatformUtils-0dda1ba1.js} +6 -6
  630. package/dist/esm/{observers-1bc07c7a.js → observers-2b56a317.js} +1 -1
  631. package/dist/esm/{openCloseComponent-1a0f1e5f.js → openCloseComponent-08e9135e.js} +1 -1
  632. package/dist/esm/{resources-a1b41b10.js → resources-122bdb3c.js} +1 -1
  633. package/dist/esm/{resources-fd9aac1d.js → resources-34cf847c.js} +11 -16
  634. package/dist/esm/{resources-205e1a5e.js → resources-8ab3148f.js} +3 -3
  635. package/dist/esm/{resources-52b91f29.js → resources-b8533188.js} +1 -1
  636. package/dist/esm/{resources-9c2b241b.js → resources-c1317324.js} +1 -1
  637. package/dist/esm/{resources-0440659e.js → resources-cca3a0a9.js} +1 -1
  638. package/dist/esm/{sortable.esm-a20e5345.js → sortable.esm-baccf0e5.js} +1 -1
  639. package/dist/esm/{utils-a06ba7b4.js → utils-a76ce9e9.js} +2 -2
  640. package/dist/extras/docs-json.json +2 -2
  641. package/dist/loader/cdn.js +1 -1
  642. package/dist/loader/index.cjs.js +1 -1
  643. package/dist/loader/index.es2017.js +1 -1
  644. package/dist/loader/index.js +1 -1
  645. package/dist/types/components/date-picker-month-header/resources.d.ts +13 -0
  646. package/dist/types/components/input-date-picker/input-date-picker.d.ts +0 -1
  647. package/hydrate/index.js +377 -509
  648. package/package.json +1 -1
  649. package/dist/calcite/p-01182fb3.entry.js +0 -6
  650. package/dist/calcite/p-01cdb480.entry.js +0 -6
  651. package/dist/calcite/p-0bf47b10.entry.js +0 -6
  652. package/dist/calcite/p-0fe25017.entry.js +0 -6
  653. package/dist/calcite/p-169a8a94.entry.js +0 -6
  654. package/dist/calcite/p-25ca3105.entry.js +0 -6
  655. package/dist/calcite/p-272fc5c7.entry.js +0 -6
  656. package/dist/calcite/p-2a4269f0.entry.js +0 -6
  657. package/dist/calcite/p-2d6e9def.entry.js +0 -6
  658. package/dist/calcite/p-377b89a4.entry.js +0 -6
  659. package/dist/calcite/p-3e45b099.entry.js +0 -6
  660. package/dist/calcite/p-4331211c.js +0 -6
  661. package/dist/calcite/p-47aa3608.entry.js +0 -6
  662. package/dist/calcite/p-47f53948.js +0 -6
  663. package/dist/calcite/p-49a74b3e.js +0 -6
  664. package/dist/calcite/p-4ee5ad79.js +0 -6
  665. package/dist/calcite/p-50755b97.entry.js +0 -6
  666. package/dist/calcite/p-5a715918.entry.js +0 -6
  667. package/dist/calcite/p-5dd53e64.js +0 -6
  668. package/dist/calcite/p-5fcff767.entry.js +0 -6
  669. package/dist/calcite/p-60967994.entry.js +0 -6
  670. package/dist/calcite/p-6653a04c.entry.js +0 -6
  671. package/dist/calcite/p-6d2cb8f4.entry.js +0 -6
  672. package/dist/calcite/p-761d2432.entry.js +0 -6
  673. package/dist/calcite/p-797fd5dd.entry.js +0 -6
  674. package/dist/calcite/p-798770da.entry.js +0 -6
  675. package/dist/calcite/p-7de16322.entry.js +0 -6
  676. package/dist/calcite/p-88a03f41.entry.js +0 -6
  677. package/dist/calcite/p-8e4e1bf2.entry.js +0 -6
  678. package/dist/calcite/p-90e5f7d2.entry.js +0 -6
  679. package/dist/calcite/p-95d84aec.entry.js +0 -6
  680. package/dist/calcite/p-9be255ca.entry.js +0 -6
  681. package/dist/calcite/p-9dd2a286.js +0 -6
  682. package/dist/calcite/p-9e30a932.entry.js +0 -6
  683. package/dist/calcite/p-9e30d06b.entry.js +0 -6
  684. package/dist/calcite/p-a3da6c86.entry.js +0 -6
  685. package/dist/calcite/p-a4a63866.js +0 -6
  686. package/dist/calcite/p-ae684eb2.entry.js +0 -6
  687. package/dist/calcite/p-b52accff.entry.js +0 -6
  688. package/dist/calcite/p-b858d734.entry.js +0 -6
  689. package/dist/calcite/p-c1792c48.entry.js +0 -6
  690. package/dist/calcite/p-c56796e6.entry.js +0 -6
  691. package/dist/calcite/p-c881f4fc.js +0 -6
  692. package/dist/calcite/p-c8b9c903.entry.js +0 -6
  693. package/dist/calcite/p-cce9a30d.entry.js +0 -6
  694. package/dist/calcite/p-cd5323d3.entry.js +0 -6
  695. package/dist/calcite/p-d16cee95.entry.js +0 -6
  696. package/dist/calcite/p-df1e5c64.entry.js +0 -6
  697. package/dist/calcite/p-e86f837e.js +0 -6
  698. package/dist/calcite/p-f00cdd90.entry.js +0 -6
  699. package/dist/calcite/p-f7fffa4a.entry.js +0 -6
  700. package/dist/calcite/p-fafa19e5.entry.js +0 -6
package/hydrate/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
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
- * v1.0.0-next.653
4
+ * v1.0.0-next.655
5
5
  */
6
6
  'use strict';
7
7
 
@@ -5953,7 +5953,7 @@ class Accordion {
5953
5953
  }
5954
5954
  focusElement(item) {
5955
5955
  const target = item;
5956
- target === null || target === void 0 ? void 0 : target.focus();
5956
+ target?.focus();
5957
5957
  }
5958
5958
  get el() { return getElement(this); }
5959
5959
  static get style() { return accordionCss; }
@@ -6005,7 +6005,7 @@ function nodeListToArray(nodeList) {
6005
6005
  }
6006
6006
  function getThemeName(el) {
6007
6007
  const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
6008
- return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains("calcite-theme-dark")) ? "dark" : "light";
6008
+ return closestElWithTheme?.classList.contains("calcite-theme-dark") ? "dark" : "light";
6009
6009
  }
6010
6010
  function getElementDir(el) {
6011
6011
  const prop = "dir";
@@ -6070,7 +6070,7 @@ function closestElementCrossShadowBoundary(element, selector) {
6070
6070
  return closestFrom(element);
6071
6071
  }
6072
6072
  function isCalciteFocusable(el) {
6073
- return typeof (el === null || el === void 0 ? void 0 : el.setFocus) === "function";
6073
+ return typeof el?.setFocus === "function";
6074
6074
  }
6075
6075
  async function focusElement(el) {
6076
6076
  if (!el) {
@@ -6089,21 +6089,21 @@ function getSlotted(element, slotName, options) {
6089
6089
  ? slotName.map((name) => `[slot="${name}"]`).join(",")
6090
6090
  : `[slot="${slotName}"]`
6091
6091
  : defaultSlotSelector;
6092
- if (options === null || options === void 0 ? void 0 : options.all) {
6092
+ if (options?.all) {
6093
6093
  return queryMultiple(element, slotSelector, options);
6094
6094
  }
6095
6095
  return querySingle(element, slotSelector, options);
6096
6096
  }
6097
6097
  function getDirectChildren(el, selector) {
6098
- return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];
6098
+ return el ? Array.from(el.children || []).filter((child) => child?.matches(selector)) : [];
6099
6099
  }
6100
6100
  function queryMultiple(element, slotSelector, options) {
6101
6101
  let matches = slotSelector === defaultSlotSelector
6102
6102
  ? getDirectChildren(element, defaultSlotSelector)
6103
6103
  : Array.from(element.querySelectorAll(slotSelector));
6104
6104
  matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
6105
- matches = (options === null || options === void 0 ? void 0 : options.matches) ? matches.filter((el) => el === null || el === void 0 ? void 0 : el.matches(options.matches)) : matches;
6106
- const selector = options === null || options === void 0 ? void 0 : options.selector;
6105
+ matches = options?.matches ? matches.filter((el) => el?.matches(options.matches)) : matches;
6106
+ const selector = options?.selector;
6107
6107
  return selector
6108
6108
  ? matches
6109
6109
  .map((item) => Array.from(item.querySelectorAll(selector)))
@@ -6115,10 +6115,10 @@ function querySingle(element, slotSelector, options) {
6115
6115
  let match = slotSelector === defaultSlotSelector
6116
6116
  ? getDirectChildren(element, defaultSlotSelector)[0] || null
6117
6117
  : element.querySelector(slotSelector);
6118
- match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;
6119
- match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;
6120
- const selector = options === null || options === void 0 ? void 0 : options.selector;
6121
- return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;
6118
+ match = options && options.direct === false ? match : match?.parentElement === element ? match : null;
6119
+ match = options?.matches ? (match?.matches(options.matches) ? match : null) : match;
6120
+ const selector = options?.selector;
6121
+ return selector ? match?.querySelector(selector) : match;
6122
6122
  }
6123
6123
  function filterDirectChildren(el, selector) {
6124
6124
  return Array.from(el.children).filter((child) => child.matches(selector));
@@ -6252,7 +6252,7 @@ const SLOTS$u = {
6252
6252
  actionsStart: "actions-start",
6253
6253
  actionsEnd: "actions-end"
6254
6254
  };
6255
- const CSS$V = {
6255
+ const CSS$W = {
6256
6256
  icon: "icon",
6257
6257
  header: "header",
6258
6258
  headerContent: "header-content",
@@ -6319,27 +6319,27 @@ class AccordionItem {
6319
6319
  // --------------------------------------------------------------------------
6320
6320
  renderActionsStart() {
6321
6321
  const { el } = this;
6322
- return getSlotted(el, SLOTS$u.actionsStart) ? (hAsync("div", { class: CSS$V.actionsStart }, hAsync("slot", { name: SLOTS$u.actionsStart }))) : null;
6322
+ return getSlotted(el, SLOTS$u.actionsStart) ? (hAsync("div", { class: CSS$W.actionsStart }, hAsync("slot", { name: SLOTS$u.actionsStart }))) : null;
6323
6323
  }
6324
6324
  renderActionsEnd() {
6325
6325
  const { el } = this;
6326
- return getSlotted(el, SLOTS$u.actionsEnd) ? (hAsync("div", { class: CSS$V.actionsEnd }, hAsync("slot", { name: SLOTS$u.actionsEnd }))) : null;
6326
+ return getSlotted(el, SLOTS$u.actionsEnd) ? (hAsync("div", { class: CSS$W.actionsEnd }, hAsync("slot", { name: SLOTS$u.actionsEnd }))) : null;
6327
6327
  }
6328
6328
  render() {
6329
6329
  const dir = getElementDir(this.el);
6330
- const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$V.iconStart, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
6331
- const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$V.iconEnd, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
6330
+ const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$W.iconStart, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
6331
+ const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$W.iconEnd, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
6332
6332
  const { description } = this;
6333
6333
  return (hAsync(Host, null, hAsync("div", { class: {
6334
6334
  [`icon-position--${this.iconPosition}`]: true,
6335
6335
  [`icon-type--${this.iconType}`]: true
6336
- } }, hAsync("div", { class: { [CSS$V.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-expanded": toAriaBoolean(this.expanded), class: CSS$V.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, hAsync("div", { class: CSS$V.headerContainer }, iconStartEl, hAsync("div", { class: CSS$V.headerText }, hAsync("span", { class: CSS$V.heading }, this.heading), description ? hAsync("span", { class: CSS$V.description }, description) : null), iconEndEl), hAsync("calcite-icon", { class: CSS$V.expandIcon, icon: this.iconType === "chevron"
6336
+ } }, hAsync("div", { class: { [CSS$W.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-expanded": toAriaBoolean(this.expanded), class: CSS$W.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, hAsync("div", { class: CSS$W.headerContainer }, iconStartEl, hAsync("div", { class: CSS$W.headerText }, hAsync("span", { class: CSS$W.heading }, this.heading), description ? hAsync("span", { class: CSS$W.description }, description) : null), iconEndEl), hAsync("calcite-icon", { class: CSS$W.expandIcon, icon: this.iconType === "chevron"
6337
6337
  ? "chevronDown"
6338
6338
  : this.iconType === "caret"
6339
6339
  ? "caretDown"
6340
6340
  : this.expanded
6341
6341
  ? "minus"
6342
- : "plus", scale: "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$V.content }, hAsync("slot", null)))));
6342
+ : "plus", scale: "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$W.content }, hAsync("slot", null)))));
6343
6343
  }
6344
6344
  //--------------------------------------------------------------------------
6345
6345
  //
@@ -6423,7 +6423,7 @@ class AccordionItem {
6423
6423
  }; }
6424
6424
  }
6425
6425
 
6426
- const CSS$U = {
6426
+ const CSS$V = {
6427
6427
  button: "button",
6428
6428
  buttonTextVisible: "button--text-visible",
6429
6429
  buttonCompact: "button--compact",
@@ -6553,7 +6553,7 @@ class Action {
6553
6553
  .assignedElements({
6554
6554
  flatten: true
6555
6555
  })
6556
- .filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-tooltip"));
6556
+ .filter((el) => el?.matches("calcite-tooltip"));
6557
6557
  const tooltip = tooltips[0];
6558
6558
  if (tooltip) {
6559
6559
  tooltip.referenceElement = this.buttonEl;
@@ -6579,8 +6579,7 @@ class Action {
6579
6579
  //
6580
6580
  // --------------------------------------------------------------------------
6581
6581
  connectedCallback() {
6582
- var _a;
6583
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
6582
+ this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
6584
6583
  }
6585
6584
  componentWillLoad() {
6586
6585
  setUpLoadableComponent(this);
@@ -6589,8 +6588,7 @@ class Action {
6589
6588
  setComponentLoaded(this);
6590
6589
  }
6591
6590
  disconnectedCallback() {
6592
- var _a;
6593
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
6591
+ this.mutationObserver?.disconnect();
6594
6592
  }
6595
6593
  componentDidRender() {
6596
6594
  updateHostInteraction(this);
@@ -6602,9 +6600,8 @@ class Action {
6602
6600
  // --------------------------------------------------------------------------
6603
6601
  /** Sets focus on the component. */
6604
6602
  async setFocus() {
6605
- var _a;
6606
6603
  await componentLoaded(this);
6607
- (_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
6604
+ this.buttonEl?.focus();
6608
6605
  }
6609
6606
  // --------------------------------------------------------------------------
6610
6607
  //
@@ -6614,33 +6611,32 @@ class Action {
6614
6611
  renderTextContainer() {
6615
6612
  const { text, textEnabled } = this;
6616
6613
  const textContainerClasses = {
6617
- [CSS$U.textContainer]: true,
6618
- [CSS$U.textContainerVisible]: textEnabled
6614
+ [CSS$V.textContainer]: true,
6615
+ [CSS$V.textContainerVisible]: textEnabled
6619
6616
  };
6620
6617
  return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
6621
6618
  }
6622
6619
  renderIconContainer() {
6623
- var _a;
6624
6620
  const { loading, icon, scale, el, intlLoading } = this;
6625
6621
  const iconScale = scale === "l" ? "m" : "s";
6626
6622
  const loaderScale = scale === "l" ? "l" : "m";
6627
6623
  const calciteLoaderNode = loading ? (hAsync("calcite-loader", { inline: true, label: intlLoading, scale: loaderScale })) : null;
6628
6624
  const calciteIconNode = icon ? hAsync("calcite-icon", { icon: icon, scale: iconScale }) : null;
6629
6625
  const iconNode = calciteLoaderNode || calciteIconNode;
6630
- const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
6626
+ const hasIconToDisplay = iconNode || el.children?.length;
6631
6627
  const slotContainerNode = (hAsync("div", { class: {
6632
- [CSS$U.slotContainer]: true,
6633
- [CSS$U.slotContainerHidden]: loading
6628
+ [CSS$V.slotContainer]: true,
6629
+ [CSS$V.slotContainerHidden]: loading
6634
6630
  } }, hAsync("slot", null)));
6635
- return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$U.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
6631
+ return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$V.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
6636
6632
  }
6637
6633
  render() {
6638
6634
  const { compact, disabled, loading, textEnabled, label, text } = this;
6639
6635
  const ariaLabel = label || text;
6640
6636
  const buttonClasses = {
6641
- [CSS$U.button]: true,
6642
- [CSS$U.buttonTextVisible]: textEnabled,
6643
- [CSS$U.buttonCompact]: compact
6637
+ [CSS$V.button]: true,
6638
+ [CSS$V.buttonTextVisible]: textEnabled,
6639
+ [CSS$V.buttonCompact]: compact
6644
6640
  };
6645
6641
  return (hAsync(Host, null, hAsync("button", { "aria-busy": toAriaBoolean(loading), "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), hAsync("slot", { name: SLOTS$t.tooltip, onSlotchange: this.handleTooltipSlotChange })));
6646
6642
  }
@@ -6671,7 +6667,7 @@ class Action {
6671
6667
  }; }
6672
6668
  }
6673
6669
 
6674
- const CSS$T = {
6670
+ const CSS$U = {
6675
6671
  menu: "menu",
6676
6672
  defaultTrigger: "default-trigger"
6677
6673
  };
@@ -6698,7 +6694,7 @@ const overflowActionsDebounceInMs = 150;
6698
6694
  const groupBufferPx = 2;
6699
6695
  const getAverage = (arr) => arr.reduce((p, c) => p + c, 0) / arr.length;
6700
6696
  const geActionDimensions = (actions) => {
6701
- const actionLen = actions === null || actions === void 0 ? void 0 : actions.length;
6697
+ const actionLen = actions?.length;
6702
6698
  return {
6703
6699
  actionWidth: actionLen ? getAverage(actions.map((action) => action.clientWidth || 0)) : 0,
6704
6700
  actionHeight: actionLen ? getAverage(actions.map((action) => action.clientHeight || 0)) : 0
@@ -6749,8 +6745,7 @@ const ICONS$f = {
6749
6745
  chevronsRight: "chevrons-right"
6750
6746
  };
6751
6747
  function getCalcitePosition(position, el) {
6752
- var _a;
6753
- return position || ((_a = el.closest("calcite-shell-panel")) === null || _a === void 0 ? void 0 : _a.position) || "start";
6748
+ return position || el.closest("calcite-shell-panel")?.position || "start";
6754
6749
  }
6755
6750
  function toggleChildActionText({ parent, expanded }) {
6756
6751
  queryActions(parent)
@@ -6783,7 +6778,7 @@ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position
6783
6778
  return actionNode;
6784
6779
  };
6785
6780
 
6786
- const CSS$S = {
6781
+ const CSS$T = {
6787
6782
  actionGroupBottom: "action-group--bottom"
6788
6783
  };
6789
6784
  const SLOTS$q = {
@@ -8166,20 +8161,18 @@ class ActionBar {
8166
8161
  this.conditionallyOverflowActions();
8167
8162
  }
8168
8163
  connectedCallback() {
8169
- var _a, _b;
8170
8164
  const { el, expanded } = this;
8171
8165
  toggleChildActionText({ parent: el, expanded });
8172
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, { childList: true, subtree: true });
8166
+ this.mutationObserver?.observe(el, { childList: true, subtree: true });
8173
8167
  if (!this.overflowActionsDisabled) {
8174
- (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
8168
+ this.resizeObserver?.observe(el);
8175
8169
  }
8176
8170
  this.conditionallyOverflowActions();
8177
8171
  connectConditionalSlotComponent(this);
8178
8172
  }
8179
8173
  disconnectedCallback() {
8180
- var _a, _b;
8181
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
8182
- (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
8174
+ this.mutationObserver?.disconnect();
8175
+ this.resizeObserver?.disconnect();
8183
8176
  disconnectConditionalSlotComponent(this);
8184
8177
  }
8185
8178
  // --------------------------------------------------------------------------
@@ -8201,13 +8194,12 @@ class ActionBar {
8201
8194
  * @param focusId
8202
8195
  */
8203
8196
  async setFocus(focusId) {
8204
- var _a;
8205
8197
  await componentLoaded(this);
8206
8198
  if (focusId === "expand-toggle") {
8207
8199
  await focusElement(this.expandToggleEl);
8208
8200
  return;
8209
8201
  }
8210
- (_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
8202
+ this.el?.focus();
8211
8203
  }
8212
8204
  // --------------------------------------------------------------------------
8213
8205
  //
@@ -8220,7 +8212,7 @@ class ActionBar {
8220
8212
  const expandLabel = intlExpand || TEXT$s.expand;
8221
8213
  const collapseLabel = intlCollapse || TEXT$s.collapse;
8222
8214
  const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
8223
- return getSlotted(el, SLOTS$q.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$S.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$q.bottomActions }), hAsync("slot", { name: SLOTS$q.expandTooltip }), expandToggleNode)) : null;
8215
+ return getSlotted(el, SLOTS$q.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$T.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$q.bottomActions }), hAsync("slot", { name: SLOTS$q.expandTooltip }), expandToggleNode)) : null;
8224
8216
  }
8225
8217
  render() {
8226
8218
  return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("slot", null), this.renderBottomActionGroup()));
@@ -8403,7 +8395,7 @@ class ActionMenu {
8403
8395
  .assignedElements({
8404
8396
  flatten: true
8405
8397
  })
8406
- .filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-action"));
8398
+ .filter((el) => el?.matches("calcite-action"));
8407
8399
  this.slottedMenuButtonEl = actions[0];
8408
8400
  this.connectMenuButtonEl();
8409
8401
  };
@@ -8431,7 +8423,7 @@ class ActionMenu {
8431
8423
  .assignedElements({
8432
8424
  flatten: true
8433
8425
  })
8434
- .filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-tooltip"));
8426
+ .filter((el) => el?.matches("calcite-tooltip"));
8435
8427
  this.tooltipEl = tooltips[0];
8436
8428
  this.setTooltipReferenceElement();
8437
8429
  };
@@ -8452,14 +8444,14 @@ class ActionMenu {
8452
8444
  action.active = index === activeMenuItemIndex;
8453
8445
  };
8454
8446
  this.updateActions = (actions) => {
8455
- actions === null || actions === void 0 ? void 0 : actions.forEach(this.updateAction);
8447
+ actions?.forEach(this.updateAction);
8456
8448
  };
8457
8449
  this.handleDefaultSlotChange = (event) => {
8458
8450
  const actions = event.target
8459
8451
  .assignedElements({
8460
8452
  flatten: true
8461
8453
  })
8462
- .filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-action"));
8454
+ .filter((el) => el?.matches("calcite-action"));
8463
8455
  this.actionElements = actions;
8464
8456
  };
8465
8457
  this.menuButtonKeyDown = (event) => {
@@ -8586,14 +8578,14 @@ class ActionMenu {
8586
8578
  }
8587
8579
  renderMenuButton() {
8588
8580
  const { label, scale, expanded } = this;
8589
- const menuButtonSlot = (hAsync("slot", { name: SLOTS$s.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$T.defaultTrigger, icon: ICONS$h.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
8581
+ const menuButtonSlot = (hAsync("slot", { name: SLOTS$s.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$U.defaultTrigger, icon: ICONS$h.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
8590
8582
  return menuButtonSlot;
8591
8583
  }
8592
8584
  renderMenuItems() {
8593
8585
  const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
8594
8586
  const activeAction = actionElements[activeMenuItemIndex];
8595
- const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
8596
- return (hAsync("calcite-popover", { disableFocusTrap: true, disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$T.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
8587
+ const activeDescendantId = activeAction?.id || null;
8588
+ return (hAsync("calcite-popover", { disableFocusTrap: true, disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl?.id, class: CSS$U.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
8597
8589
  }
8598
8590
  render() {
8599
8591
  return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$s.tooltip, onSlotchange: this.updateTooltip })));
@@ -8629,7 +8621,7 @@ class ActionMenu {
8629
8621
  }; }
8630
8622
  }
8631
8623
 
8632
- const CSS$R = {
8624
+ const CSS$S = {
8633
8625
  actionGroupBottom: "action-group--bottom",
8634
8626
  container: "container"
8635
8627
  };
@@ -8714,13 +8706,12 @@ class ActionPad {
8714
8706
  * @param focusId
8715
8707
  */
8716
8708
  async setFocus(focusId) {
8717
- var _a;
8718
8709
  await componentLoaded(this);
8719
8710
  if (focusId === "expand-toggle") {
8720
8711
  await focusElement(this.expandToggleEl);
8721
8712
  return;
8722
8713
  }
8723
- (_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
8714
+ this.el?.focus();
8724
8715
  }
8725
8716
  // --------------------------------------------------------------------------
8726
8717
  //
@@ -8733,10 +8724,10 @@ class ActionPad {
8733
8724
  const expandLabel = intlExpand || TEXT$r.expand;
8734
8725
  const collapseLabel = intlCollapse || TEXT$r.collapse;
8735
8726
  const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
8736
- return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$R.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$p.expandTooltip }), expandToggleNode)) : null;
8727
+ return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$S.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$p.expandTooltip }), expandToggleNode)) : null;
8737
8728
  }
8738
8729
  render() {
8739
- return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$R.container }, hAsync("slot", null), this.renderBottomActionGroup())));
8730
+ return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$S.container }, hAsync("slot", null), this.renderBottomActionGroup())));
8740
8731
  }
8741
8732
  get el() { return getElement(this); }
8742
8733
  static get watchers() { return {
@@ -8776,7 +8767,7 @@ const SLOTS$o = {
8776
8767
  message: "message",
8777
8768
  link: "link"
8778
8769
  };
8779
- const CSS$Q = {
8770
+ const CSS$R = {
8780
8771
  actionsEnd: "actions-end",
8781
8772
  container: "container"
8782
8773
  };
@@ -9107,10 +9098,9 @@ const mutationObserver = createObserver();
9107
9098
  * @param component
9108
9099
  */
9109
9100
  function getLocale(component) {
9110
- var _a;
9111
9101
  return (component.el.lang ||
9112
9102
  component.locale ||
9113
- ((_a = closestElementCrossShadowBoundary(component.el, "[lang]")) === null || _a === void 0 ? void 0 : _a.lang) ||
9103
+ closestElementCrossShadowBoundary(component.el, "[lang]")?.lang ||
9114
9104
  document.documentElement.lang ||
9115
9105
  defaultLocale);
9116
9106
  }
@@ -9161,8 +9151,8 @@ class NumberStringFormat {
9161
9151
  * numberFormatOptions needs to be set before localize/delocalize is called to ensure the options are up to date
9162
9152
  */
9163
9153
  set numberFormatOptions(options) {
9164
- options.locale = getSupportedLocale(options === null || options === void 0 ? void 0 : options.locale);
9165
- options.numberingSystem = getSupportedNumberingSystem(options === null || options === void 0 ? void 0 : options.numberingSystem);
9154
+ options.locale = getSupportedLocale(options?.locale);
9155
+ options.numberingSystem = getSupportedNumberingSystem(options?.numberingSystem);
9166
9156
  if (
9167
9157
  // No need to create the formatter if `locale` and `numberingSystem`
9168
9158
  // are the default values and `numberFormatOptions` has not been set
@@ -9320,7 +9310,7 @@ class Alert {
9320
9310
  container: true,
9321
9311
  queued,
9322
9312
  [placement]: true
9323
- }, ref: this.setTransitionEl }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$o.title }), hAsync("slot", { name: SLOTS$o.message }), hAsync("slot", { name: SLOTS$o.link })), hAsync("div", { class: CSS$Q.actionsEnd, hidden: !hasEndActions }, slotNode), this.queueLength > 1 ? queueCount : null, !autoDismiss ? closeButton : null, open && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
9313
+ }, ref: this.setTransitionEl }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$o.title }), hAsync("slot", { name: SLOTS$o.message }), hAsync("slot", { name: SLOTS$o.link })), hAsync("div", { class: CSS$R.actionsEnd, hidden: !hasEndActions }, slotNode), this.queueLength > 1 ? queueCount : null, !autoDismiss ? closeButton : null, open && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
9324
9314
  }
9325
9315
  // when an alert is opened or closed, update queue and determine active alert
9326
9316
  alertSync(event) {
@@ -9361,8 +9351,7 @@ class Alert {
9361
9351
  }
9362
9352
  /** determine which alert is active */
9363
9353
  determineActiveAlert() {
9364
- var _a;
9365
- if (((_a = this.queue) === null || _a === void 0 ? void 0 : _a[0]) === this.el) {
9354
+ if (this.queue?.[0] === this.el) {
9366
9355
  this.openAlert();
9367
9356
  if (this.autoDismiss && !this.autoDismissTimeoutId) {
9368
9357
  this.trackTimer = Date.now();
@@ -9531,7 +9520,7 @@ function hasChannels(colorObject, ...channels) {
9531
9520
  return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);
9532
9521
  }
9533
9522
  function colorEqual(value1, value2) {
9534
- return (value1 === null || value1 === void 0 ? void 0 : value1.rgbNumber()) === (value2 === null || value2 === void 0 ? void 0 : value2.rgbNumber());
9523
+ return value1?.rgbNumber() === value2?.rgbNumber();
9535
9524
  }
9536
9525
 
9537
9526
  /**
@@ -9677,7 +9666,7 @@ class Avatar {
9677
9666
  }; }
9678
9667
  }
9679
9668
 
9680
- const CSS$P = {
9669
+ const CSS$Q = {
9681
9670
  container: "container",
9682
9671
  content: "content",
9683
9672
  headerContainer: "header-container",
@@ -9795,31 +9784,31 @@ class Block {
9795
9784
  const statusIcon = showingLoadingStatus ? ICONS$e.refresh : ICONS$e[status];
9796
9785
  const hasIcon = getSlotted(el, SLOTS$n.icon) || statusIcon;
9797
9786
  const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$n.icon })) : (hAsync("calcite-icon", { class: {
9798
- [CSS$P.statusIcon]: true,
9799
- [CSS$P.valid]: status == "valid",
9800
- [CSS$P.invalid]: status == "invalid",
9801
- [CSS$P.loading]: showingLoadingStatus
9787
+ [CSS$Q.statusIcon]: true,
9788
+ [CSS$Q.valid]: status == "valid",
9789
+ [CSS$Q.invalid]: status == "invalid",
9790
+ [CSS$Q.loading]: showingLoadingStatus
9802
9791
  }, icon: statusIcon, scale: "m" }));
9803
- return hasIcon ? hAsync("div", { class: CSS$P.icon }, iconEl) : null;
9792
+ return hasIcon ? hAsync("div", { class: CSS$Q.icon }, iconEl) : null;
9804
9793
  }
9805
9794
  renderTitle() {
9806
9795
  const { heading, headingLevel, description } = this;
9807
- return heading || description ? (hAsync("div", { class: CSS$P.title }, hAsync(Heading, { class: CSS$P.heading, level: headingLevel }, heading), description ? hAsync("div", { class: CSS$P.description }, description) : null)) : null;
9796
+ return heading || description ? (hAsync("div", { class: CSS$Q.title }, hAsync(Heading, { class: CSS$Q.heading, level: headingLevel }, heading), description ? hAsync("div", { class: CSS$Q.description }, description) : null)) : null;
9808
9797
  }
9809
9798
  render() {
9810
9799
  const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
9811
9800
  const toggleLabel = open ? intlCollapse || TEXT$p.collapse : intlExpand || TEXT$p.expand;
9812
- const headerContent = (hAsync("header", { class: CSS$P.header }, this.renderIcon(), this.renderTitle()));
9801
+ const headerContent = (hAsync("header", { class: CSS$Q.header }, this.renderIcon(), this.renderTitle()));
9813
9802
  const hasControl = !!getSlotted(el, SLOTS$n.control);
9814
9803
  const hasMenuActions = !!getSlotted(el, SLOTS$n.headerMenuActions);
9815
9804
  const collapseIcon = open ? ICONS$e.opened : ICONS$e.closed;
9816
9805
  const { guid } = this;
9817
9806
  const regionId = `${guid}-region`;
9818
9807
  const buttonId = `${guid}-button`;
9819
- const headerNode = (hAsync("div", { class: CSS$P.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$P.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$P.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$P.controlContainer }, hAsync("slot", { name: SLOTS$n.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$p.options }, hAsync("slot", { name: SLOTS$n.headerMenuActions }))) : null));
9808
+ const headerNode = (hAsync("div", { class: CSS$Q.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$Q.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$Q.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$Q.controlContainer }, hAsync("slot", { name: SLOTS$n.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$p.options }, hAsync("slot", { name: SLOTS$n.headerMenuActions }))) : null));
9820
9809
  return (hAsync(Host, null, hAsync("article", { "aria-busy": toAriaBoolean(loading), class: {
9821
- [CSS$P.container]: true
9822
- } }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$P.content, hidden: !open, id: regionId }, this.renderScrim()))));
9810
+ [CSS$Q.container]: true
9811
+ } }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$Q.content, hidden: !open, id: regionId }, this.renderScrim()))));
9823
9812
  }
9824
9813
  get el() { return getElement(this); }
9825
9814
  static get style() { return blockCss; }
@@ -9847,7 +9836,7 @@ class Block {
9847
9836
  }; }
9848
9837
  }
9849
9838
 
9850
- const CSS$O = {
9839
+ const CSS$P = {
9851
9840
  content: "content",
9852
9841
  invalid: "invalid",
9853
9842
  toggle: "toggle",
@@ -9910,13 +9899,12 @@ class BlockSection {
9910
9899
  //
9911
9900
  // --------------------------------------------------------------------------
9912
9901
  renderStatusIcon() {
9913
- var _a;
9914
9902
  const { status } = this;
9915
- const statusIcon = (_a = ICONS$d[status]) !== null && _a !== void 0 ? _a : false;
9903
+ const statusIcon = ICONS$d[status] ?? false;
9916
9904
  const statusIconClasses = {
9917
- [CSS$O.statusIcon]: true,
9918
- [CSS$O.valid]: status == "valid",
9919
- [CSS$O.invalid]: status == "invalid"
9905
+ [CSS$P.statusIcon]: true,
9906
+ [CSS$P.valid]: status == "valid",
9907
+ [CSS$P.invalid]: status == "invalid"
9920
9908
  };
9921
9909
  return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
9922
9910
  }
@@ -9933,13 +9921,13 @@ class BlockSection {
9933
9921
  const regionId = `${guid}-region`;
9934
9922
  const buttonId = `${guid}-button`;
9935
9923
  const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
9936
- [CSS$O.toggle]: true,
9937
- [CSS$O.toggleSwitch]: true
9938
- }, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$O.toggleSwitchContent }, hAsync("span", { class: CSS$O.toggleSwitchText }, text)), hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (hAsync("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
9939
- [CSS$O.sectionHeader]: true,
9940
- [CSS$O.toggle]: true
9941
- }, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$O.sectionHeaderText }, text), this.renderStatusIcon()));
9942
- return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$O.content, hidden: !open, id: regionId }, hAsync("slot", null))));
9924
+ [CSS$P.toggle]: true,
9925
+ [CSS$P.toggleSwitch]: true
9926
+ }, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$P.toggleSwitchContent }, hAsync("span", { class: CSS$P.toggleSwitchText }, text)), hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (hAsync("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
9927
+ [CSS$P.sectionHeader]: true,
9928
+ [CSS$P.toggle]: true
9929
+ }, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$P.sectionHeaderText }, text), this.renderStatusIcon()));
9930
+ return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$P.content, hidden: !open, id: regionId }, hAsync("slot", null))));
9943
9931
  }
9944
9932
  get el() { return getElement(this); }
9945
9933
  static get style() { return blockSectionCss; }
@@ -9988,7 +9976,7 @@ class BlockSection {
9988
9976
  }
9989
9977
  })(HTMLFormElement.prototype);
9990
9978
 
9991
- const CSS$N = {
9979
+ const CSS$O = {
9992
9980
  buttonLoader: "calcite-button--loader",
9993
9981
  content: "content",
9994
9982
  contentSlotted: "content--slotted",
@@ -10046,7 +10034,7 @@ function hasAncestorCustomElements(label, componentEl) {
10046
10034
  label.removeEventListener(customElementAncestorCheckEventType, listener);
10047
10035
  const ancestorCustomElements = traversedElements
10048
10036
  .filter((el) => el !== componentEl && el !== label)
10049
- .filter((el) => { var _a; return (_a = el.tagName) === null || _a === void 0 ? void 0 : _a.includes("-"); });
10037
+ .filter((el) => el.tagName?.includes("-"));
10050
10038
  return ancestorCustomElements.length > 0;
10051
10039
  }
10052
10040
  /**
@@ -10099,8 +10087,7 @@ function disconnectLabel(component) {
10099
10087
  * @param component
10100
10088
  */
10101
10089
  function getLabelText(component) {
10102
- var _a, _b;
10103
- return component.label || ((_b = (_a = component.labelEl) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || "";
10090
+ return component.label || component.labelEl?.textContent?.trim() || "";
10104
10091
  }
10105
10092
  function onLabelClick(event) {
10106
10093
  if (this.disabled) {
@@ -10169,8 +10156,7 @@ function submitForm(component) {
10169
10156
  * @param component
10170
10157
  */
10171
10158
  function resetForm(component) {
10172
- var _a;
10173
- (_a = component.formEl) === null || _a === void 0 ? void 0 : _a.reset();
10159
+ component.formEl?.reset();
10174
10160
  }
10175
10161
  /**
10176
10162
  * Helper to set up form interactions on connectedCallback.
@@ -10291,7 +10277,6 @@ function syncHiddenFormInput(component) {
10291
10277
  });
10292
10278
  }
10293
10279
  function defaultSyncHiddenFormInput(component, input, value) {
10294
- var _a;
10295
10280
  const { defaultValue, disabled, name, required } = component;
10296
10281
  // keep in sync to prevent losing reset value
10297
10282
  input.defaultValue = defaultValue;
@@ -10312,7 +10297,7 @@ function defaultSyncHiddenFormInput(component, input, value) {
10312
10297
  else {
10313
10298
  input.value = value || "";
10314
10299
  }
10315
- (_a = component.syncHiddenFormInput) === null || _a === void 0 ? void 0 : _a.call(component, input);
10300
+ component.syncHiddenFormInput?.(input);
10316
10301
  }
10317
10302
  /**
10318
10303
  * Helper to render the slot for form-associated component's hidden input.
@@ -10407,8 +10392,7 @@ class Button {
10407
10392
  this.formEl = closestElementCrossShadowBoundary(this.el, this.form ? `#${this.form}` : "form");
10408
10393
  }
10409
10394
  disconnectedCallback() {
10410
- var _a;
10411
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
10395
+ this.mutationObserver?.disconnect();
10412
10396
  disconnectLabel(this);
10413
10397
  this.formEl = null;
10414
10398
  }
@@ -10424,17 +10408,17 @@ class Button {
10424
10408
  render() {
10425
10409
  const childElType = this.href ? "a" : "button";
10426
10410
  const Tag = childElType;
10427
- const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$N.buttonLoader }, hAsync("calcite-loader", { class: this.loading ? CSS$N.loadingIn : CSS$N.loadingOut, inline: true, label: this.intlLoading, scale: this.scale === "l" ? "m" : "s" }))) : null;
10411
+ const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$O.buttonLoader }, hAsync("calcite-loader", { class: this.loading ? CSS$O.loadingIn : CSS$O.loadingOut, inline: true, label: this.intlLoading, scale: this.scale === "l" ? "m" : "s" }))) : null;
10428
10412
  const noStartEndIcons = !this.iconStart && !this.iconEnd;
10429
- const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$N.icon]: true, [CSS$N.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: this.scale === "l" ? "m" : "s" }));
10430
- const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$N.icon]: true, [CSS$N.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: this.scale === "l" ? "m" : "s" }));
10431
- const contentEl = (hAsync("span", { class: CSS$N.content }, hAsync("slot", null)));
10413
+ const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$O.icon]: true, [CSS$O.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: this.scale === "l" ? "m" : "s" }));
10414
+ const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$O.icon]: true, [CSS$O.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: this.scale === "l" ? "m" : "s" }));
10415
+ const contentEl = (hAsync("span", { class: CSS$O.content }, hAsync("slot", null)));
10432
10416
  return (hAsync(Tag, { "aria-label": getLabelText(this), class: {
10433
- [CSS$N.buttonPadding]: noStartEndIcons,
10434
- [CSS$N.buttonPaddingShrunk]: !noStartEndIcons,
10435
- [CSS$N.contentSlotted]: this.hasContent,
10436
- [CSS$N.iconStartEmpty]: !this.iconStart,
10437
- [CSS$N.iconEndEmpty]: !this.iconEnd
10417
+ [CSS$O.buttonPadding]: noStartEndIcons,
10418
+ [CSS$O.buttonPaddingShrunk]: !noStartEndIcons,
10419
+ [CSS$O.contentSlotted]: this.hasContent,
10420
+ [CSS$O.iconStartEmpty]: !this.iconStart,
10421
+ [CSS$O.iconEndEmpty]: !this.iconEnd
10438
10422
  }, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: childElType === "a" && this.target, type: childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
10439
10423
  }
10440
10424
  //--------------------------------------------------------------------------
@@ -10444,21 +10428,18 @@ class Button {
10444
10428
  //--------------------------------------------------------------------------
10445
10429
  /** Sets focus on the component. */
10446
10430
  async setFocus() {
10447
- var _a;
10448
10431
  await componentLoaded(this);
10449
- (_a = this.childEl) === null || _a === void 0 ? void 0 : _a.focus();
10432
+ this.childEl?.focus();
10450
10433
  }
10451
10434
  updateHasContent() {
10452
- var _a, _b;
10453
10435
  const slottedContent = this.el.textContent.trim().length > 0 || this.el.childNodes.length > 0;
10454
10436
  this.hasContent =
10455
- this.el.childNodes.length === 1 && ((_a = this.el.childNodes[0]) === null || _a === void 0 ? void 0 : _a.nodeName) === "#text"
10456
- ? ((_b = this.el.textContent) === null || _b === void 0 ? void 0 : _b.trim().length) > 0
10437
+ this.el.childNodes.length === 1 && this.el.childNodes[0]?.nodeName === "#text"
10438
+ ? this.el.textContent?.trim().length > 0
10457
10439
  : slottedContent;
10458
10440
  }
10459
10441
  setupTextContentObserver() {
10460
- var _a;
10461
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
10442
+ this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
10462
10443
  }
10463
10444
  //--------------------------------------------------------------------------
10464
10445
  //
@@ -10508,7 +10489,7 @@ class Button {
10508
10489
  }; }
10509
10490
  }
10510
10491
 
10511
- const CSS$M = {
10492
+ const CSS$N = {
10512
10493
  container: "container",
10513
10494
  header: "header",
10514
10495
  footer: "footer",
@@ -10592,32 +10573,32 @@ class Card {
10592
10573
  render() {
10593
10574
  const thumbnailInline = this.thumbnailPosition.startsWith("inline");
10594
10575
  const thumbnailStart = this.thumbnailPosition.endsWith("start");
10595
- return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$M.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
10576
+ return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$N.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
10596
10577
  }
10597
10578
  selectCard() {
10598
10579
  this.selected = !this.selected;
10599
10580
  this.calciteCardSelect.emit();
10600
10581
  }
10601
10582
  renderThumbnail() {
10602
- return getSlotted(this.el, SLOTS$m.thumbnail) ? (hAsync("section", { class: CSS$M.thumbnailWrapper }, hAsync("slot", { name: SLOTS$m.thumbnail }))) : null;
10583
+ return getSlotted(this.el, SLOTS$m.thumbnail) ? (hAsync("section", { class: CSS$N.thumbnailWrapper }, hAsync("slot", { name: SLOTS$m.thumbnail }))) : null;
10603
10584
  }
10604
10585
  renderCheckbox() {
10605
10586
  const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
10606
- return (hAsync("calcite-label", { class: CSS$M.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
10587
+ return (hAsync("calcite-label", { class: CSS$N.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
10607
10588
  }
10608
10589
  renderHeader() {
10609
10590
  const { el } = this;
10610
10591
  const title = getSlotted(el, SLOTS$m.title);
10611
10592
  const subtitle = getSlotted(el, SLOTS$m.subtitle);
10612
10593
  const hasHeader = title || subtitle;
10613
- return hasHeader ? (hAsync("header", { class: CSS$M.header }, hAsync("slot", { name: SLOTS$m.title }), hAsync("slot", { name: SLOTS$m.subtitle }))) : null;
10594
+ return hasHeader ? (hAsync("header", { class: CSS$N.header }, hAsync("slot", { name: SLOTS$m.title }), hAsync("slot", { name: SLOTS$m.subtitle }))) : null;
10614
10595
  }
10615
10596
  renderFooter() {
10616
10597
  const { el } = this;
10617
10598
  const leadingFooter = getSlotted(el, SLOTS$m.footerLeading);
10618
10599
  const trailingFooter = getSlotted(el, SLOTS$m.footerTrailing);
10619
10600
  const hasFooter = leadingFooter || trailingFooter;
10620
- return hasFooter ? (hAsync("footer", { class: CSS$M.footer }, hAsync("slot", { name: SLOTS$m.footerLeading }), hAsync("slot", { name: SLOTS$m.footerTrailing }))) : null;
10601
+ return hasFooter ? (hAsync("footer", { class: CSS$N.footer }, hAsync("slot", { name: SLOTS$m.footerLeading }), hAsync("slot", { name: SLOTS$m.footerTrailing }))) : null;
10621
10602
  }
10622
10603
  get el() { return getElement(this); }
10623
10604
  static get style() { return cardCss; }
@@ -10709,9 +10690,8 @@ class Checkbox {
10709
10690
  //--------------------------------------------------------------------------
10710
10691
  /** Sets focus on the component. */
10711
10692
  async setFocus() {
10712
- var _a;
10713
10693
  await componentLoaded(this);
10714
- (_a = this.toggleEl) === null || _a === void 0 ? void 0 : _a.focus();
10694
+ this.toggleEl?.focus();
10715
10695
  }
10716
10696
  //--------------------------------------------------------------------------
10717
10697
  //
@@ -10768,7 +10748,7 @@ class Checkbox {
10768
10748
  }; }
10769
10749
  }
10770
10750
 
10771
- const CSS$L = {
10751
+ const CSS$M = {
10772
10752
  title: "title",
10773
10753
  close: "close",
10774
10754
  imageContainer: "image-container",
@@ -10840,9 +10820,8 @@ class Chip {
10840
10820
  //--------------------------------------------------------------------------
10841
10821
  /** Sets focus on the component. */
10842
10822
  async setFocus() {
10843
- var _a;
10844
10823
  await componentLoaded(this);
10845
- (_a = this.closeButton) === null || _a === void 0 ? void 0 : _a.focus();
10824
+ this.closeButton?.focus();
10846
10825
  }
10847
10826
  //--------------------------------------------------------------------------
10848
10827
  //
@@ -10852,12 +10831,12 @@ class Chip {
10852
10831
  renderChipImage() {
10853
10832
  const { el } = this;
10854
10833
  const hasChipImage = getSlotted(el, SLOTS$l.image);
10855
- return hasChipImage ? (hAsync("div", { class: CSS$L.imageContainer, key: "image" }, hAsync("slot", { name: SLOTS$l.image }))) : null;
10834
+ return hasChipImage ? (hAsync("div", { class: CSS$M.imageContainer, key: "image" }, hAsync("slot", { name: SLOTS$l.image }))) : null;
10856
10835
  }
10857
10836
  render() {
10858
- const iconEl = (hAsync("calcite-icon", { class: CSS$L.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
10859
- const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$L.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { class: CSS$L.closeIcon, icon: ICONS$c.close, scale: "s" })));
10860
- return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$L.title, id: this.guid }, hAsync("slot", null)), this.closable ? closeButton : null));
10837
+ const iconEl = (hAsync("calcite-icon", { class: CSS$M.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
10838
+ const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$M.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { class: CSS$M.closeIcon, icon: ICONS$c.close, scale: "s" })));
10839
+ return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$M.title, id: this.guid }, hAsync("slot", null)), this.closable ? closeButton : null));
10861
10840
  }
10862
10841
  get el() { return getElement(this); }
10863
10842
  static get style() { return chipCss; }
@@ -12992,7 +12971,7 @@ function zeroArray(array, length) {
12992
12971
 
12993
12972
  var color = Color;
12994
12973
 
12995
- const CSS$K = {
12974
+ const CSS$L = {
12996
12975
  container: "container",
12997
12976
  controlSection: "control-section",
12998
12977
  hexOptions: "color-hex-options",
@@ -13223,7 +13202,6 @@ class ColorPicker {
13223
13202
  }
13224
13203
  };
13225
13204
  this.handleColorFieldAndSliderPointerDown = (event) => {
13226
- var _a, _b;
13227
13205
  if (!isPrimaryPointerButton(event)) {
13228
13206
  return;
13229
13207
  }
@@ -13232,12 +13210,12 @@ class ColorPicker {
13232
13210
  if (region === "color-field") {
13233
13211
  this.hueThumbState = "drag";
13234
13212
  this.captureColorFieldColor(offsetX, offsetY);
13235
- (_a = this.colorFieldScopeNode) === null || _a === void 0 ? void 0 : _a.focus();
13213
+ this.colorFieldScopeNode?.focus();
13236
13214
  }
13237
13215
  else if (region === "slider") {
13238
13216
  this.sliderThumbState = "drag";
13239
13217
  this.captureHueSliderColor(offsetX);
13240
- (_b = this.hueScopeNode) === null || _b === void 0 ? void 0 : _b.focus();
13218
+ this.hueScopeNode?.focus();
13241
13219
  }
13242
13220
  // prevent text selection outside of color field & slider area
13243
13221
  event.preventDefault();
@@ -13366,7 +13344,7 @@ class ColorPicker {
13366
13344
  const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
13367
13345
  const active = channelMode === activeChannelMode;
13368
13346
  const label = channelMode === "rgb" ? intlRgb : intlHsv;
13369
- return (hAsync("calcite-tab-title", { active: active, class: CSS$K.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
13347
+ return (hAsync("calcite-tab-title", { active: active, class: CSS$L.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
13370
13348
  };
13371
13349
  this.renderChannelsTab = (channelMode) => {
13372
13350
  const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
@@ -13377,11 +13355,11 @@ class ColorPicker {
13377
13355
  ? [intlRed, intlGreen, intlBlue]
13378
13356
  : [intlHue, intlSaturation, intlValue];
13379
13357
  const direction = getElementDir(this.el);
13380
- return (hAsync("calcite-tab", { active: active, class: CSS$K.control, key: channelMode }, hAsync("div", { class: CSS$K.channels, dir: "ltr" }, channels.map((channel, index) =>
13358
+ return (hAsync("calcite-tab", { active: active, class: CSS$L.control, key: channelMode }, hAsync("div", { class: CSS$L.channels, dir: "ltr" }, channels.map((channel, index) =>
13381
13359
  /* the channel container is ltr, so we apply the host's direction */
13382
13360
  this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
13383
13361
  };
13384
- this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$K.channel, "data-channel-index": index, dir: direction, label: ariaLabel, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
13362
+ this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$L.channel, "data-channel-index": index, dir: direction, label: ariaLabel, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value?.toString() }));
13385
13363
  this.deleteColor = () => {
13386
13364
  const colorToDelete = this.color.hex();
13387
13365
  const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
@@ -13477,9 +13455,8 @@ class ColorPicker {
13477
13455
  this.internalColorSet(this.color, false, "internal");
13478
13456
  }
13479
13457
  handleScaleChange(scale = "m") {
13480
- var _a;
13481
13458
  this.updateDimensions(scale);
13482
- this.updateCanvasSize((_a = this.fieldAndSliderRenderingContext) === null || _a === void 0 ? void 0 : _a.canvas);
13459
+ this.updateCanvasSize(this.fieldAndSliderRenderingContext?.canvas);
13483
13460
  }
13484
13461
  handleValueChange(value, oldValue) {
13485
13462
  const { allowEmpty, format } = this;
@@ -13525,7 +13502,7 @@ class ColorPicker {
13525
13502
  this.shiftKeyChannelAdjustment = 0;
13526
13503
  const { key } = event;
13527
13504
  if ((key !== "ArrowUp" && key !== "ArrowDown") ||
13528
- !event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$K.channel); })) {
13505
+ !event.composedPath().some((node) => node.classList?.contains(CSS$L.channel))) {
13529
13506
  return;
13530
13507
  }
13531
13508
  const { shiftKey } = event;
@@ -13597,24 +13574,24 @@ class ColorPicker {
13597
13574
  const selectedColorInHex = color ? color.hex() : null;
13598
13575
  const hexInputScale = scale === "l" ? "m" : "s";
13599
13576
  const { colorFieldAndSliderInteractive, colorFieldScopeTop, colorFieldScopeLeft, hueScopeLeft, hueScopeTop, scopeOrientation, dimensions: { colorField: { height: colorFieldHeight, width: colorFieldWidth }, slider: { height: sliderHeight } } } = this;
13600
- const hueTop = hueScopeTop !== null && hueScopeTop !== void 0 ? hueScopeTop : sliderHeight / 2 + colorFieldHeight;
13601
- const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
13577
+ const hueTop = hueScopeTop ?? sliderHeight / 2 + colorFieldHeight;
13578
+ const hueLeft = hueScopeLeft ?? (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
13602
13579
  const noColor = color === null;
13603
13580
  const vertical = scopeOrientation === "vertical";
13604
- return (hAsync("div", { class: CSS$K.container }, hAsync("div", { class: CSS$K.colorFieldAndSliderWrap }, hAsync("canvas", { class: {
13605
- [CSS$K.colorFieldAndSlider]: true,
13606
- [CSS$K.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
13607
- }, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$K.scope]: true, [CSS$K.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), hAsync("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR$1.round().hue(), class: { [CSS$K.scope]: true, [CSS$K.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, ref: this.storeHueScope, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (hAsync("div", { class: {
13608
- [CSS$K.controlSection]: true,
13609
- [CSS$K.section]: true
13610
- } }, hideHex ? null : (hAsync("div", { class: CSS$K.hexOptions }, hAsync("span", { class: {
13611
- [CSS$K.header]: true,
13612
- [CSS$K.headerHex]: true
13613
- } }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$K.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (hAsync("calcite-tabs", { class: {
13614
- [CSS$K.colorModeContainer]: true,
13615
- [CSS$K.splitSection]: true
13616
- }, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$K.savedColorsSection]: true, [CSS$K.section]: true } }, hAsync("div", { class: CSS$K.header }, hAsync("label", null, intlSaved), hAsync("div", { class: CSS$K.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$K.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), hAsync("calcite-button", { appearance: "transparent", class: CSS$K.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$K.savedColors }, [
13617
- ...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$K.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
13581
+ return (hAsync("div", { class: CSS$L.container }, hAsync("div", { class: CSS$L.colorFieldAndSliderWrap }, hAsync("canvas", { class: {
13582
+ [CSS$L.colorFieldAndSlider]: true,
13583
+ [CSS$L.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
13584
+ }, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color?.saturationv() : color?.value()) || "0", class: { [CSS$L.scope]: true, [CSS$L.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), hAsync("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": color?.round().hue() || DEFAULT_COLOR$1.round().hue(), class: { [CSS$L.scope]: true, [CSS$L.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, ref: this.storeHueScope, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (hAsync("div", { class: {
13585
+ [CSS$L.controlSection]: true,
13586
+ [CSS$L.section]: true
13587
+ } }, hideHex ? null : (hAsync("div", { class: CSS$L.hexOptions }, hAsync("span", { class: {
13588
+ [CSS$L.header]: true,
13589
+ [CSS$L.headerHex]: true
13590
+ } }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$L.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (hAsync("calcite-tabs", { class: {
13591
+ [CSS$L.colorModeContainer]: true,
13592
+ [CSS$L.splitSection]: true
13593
+ }, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$L.savedColorsSection]: true, [CSS$L.section]: true } }, hAsync("div", { class: CSS$L.header }, hAsync("label", null, intlSaved), hAsync("div", { class: CSS$L.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$L.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), hAsync("calcite-button", { appearance: "transparent", class: CSS$L.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$L.savedColors }, [
13594
+ ...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$L.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
13618
13595
  ])) : null))));
13619
13596
  }
13620
13597
  // --------------------------------------------------------------------------
@@ -13860,7 +13837,7 @@ class ColorPicker {
13860
13837
  }; }
13861
13838
  }
13862
13839
 
13863
- const CSS$J = {
13840
+ const CSS$K = {
13864
13841
  container: "container",
13865
13842
  preview: "preview",
13866
13843
  input: "input"
@@ -13974,7 +13951,7 @@ class ColorPickerHexInput {
13974
13951
  render() {
13975
13952
  const { intlHex, value } = this;
13976
13953
  const hexInputValue = this.formatForInternalInput(value);
13977
- return (hAsync("div", { class: CSS$J.container }, hAsync("calcite-input", { class: CSS$J.input, label: intlHex, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, onPaste: this.onPaste, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$J.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
13954
+ return (hAsync("div", { class: CSS$K.container }, hAsync("calcite-input", { class: CSS$K.input, label: intlHex, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, onPaste: this.onPaste, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$K.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
13978
13955
  }
13979
13956
  //--------------------------------------------------------------------------
13980
13957
  //
@@ -14051,7 +14028,7 @@ class ColorPickerHexInput {
14051
14028
  }; }
14052
14029
  }
14053
14030
 
14054
- const CSS$I = {
14031
+ const CSS$J = {
14055
14032
  swatch: "swatch",
14056
14033
  noColorIcon: "no-color-icon"
14057
14034
  };
@@ -14086,7 +14063,7 @@ class ColorPickerSwatch {
14086
14063
  const hex = internalColor.hex();
14087
14064
  const theme = getThemeName(el);
14088
14065
  const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
14089
- return (hAsync("svg", { class: CSS$I.swatch, xmlns: "http://www.w3.org/2000/svg" }, hAsync("title", null, hex), hAsync("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
14066
+ return (hAsync("svg", { class: CSS$J.swatch, xmlns: "http://www.w3.org/2000/svg" }, hAsync("title", null, hex), hAsync("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
14090
14067
  }
14091
14068
  get el() { return getElement(this); }
14092
14069
  static get watchers() { return {
@@ -14115,7 +14092,7 @@ const filter = (data, value) => {
14115
14092
  The data argument should be an array of objects`);
14116
14093
  }
14117
14094
  const find = (input, RE) => {
14118
- if ((input === null || input === void 0 ? void 0 : input.constant) || (input === null || input === void 0 ? void 0 : input.filterDisabled)) {
14095
+ if (input?.constant || input?.filterDisabled) {
14119
14096
  return true;
14120
14097
  }
14121
14098
  let found = false;
@@ -15618,7 +15595,6 @@ const debouncedReposition = debounce(positionFloatingUI, repositionDebounceTimeo
15618
15595
  * @param root0.includeArrow
15619
15596
  */
15620
15597
  async function positionFloatingUI({ referenceEl, floatingEl, overlayPositioning = "absolute", placement, disableFlip, flipPlacements, offsetDistance, offsetSkidding, includeArrow = false, arrowEl, type }) {
15621
- var _a;
15622
15598
  if (!referenceEl || !floatingEl || (includeArrow && !arrowEl)) {
15623
15599
  return null;
15624
15600
  }
@@ -15638,14 +15614,14 @@ async function positionFloatingUI({ referenceEl, floatingEl, overlayPositioning
15638
15614
  type
15639
15615
  })
15640
15616
  });
15641
- if (middlewareData === null || middlewareData === void 0 ? void 0 : middlewareData.arrow) {
15617
+ if (middlewareData?.arrow) {
15642
15618
  const { x: arrowX, y: arrowY } = middlewareData.arrow;
15643
15619
  Object.assign(arrowEl.style, {
15644
15620
  left: arrowX != null ? `${arrowX}px` : "",
15645
15621
  top: arrowY != null ? `${arrowY}px` : ""
15646
15622
  });
15647
15623
  }
15648
- const referenceHidden = (_a = middlewareData === null || middlewareData === void 0 ? void 0 : middlewareData.hide) === null || _a === void 0 ? void 0 : _a.referenceHidden;
15624
+ const referenceHidden = middlewareData?.hide?.referenceHidden;
15649
15625
  const visibility = referenceHidden ? "hidden" : null;
15650
15626
  const pointerEvents = visibility ? "none" : null;
15651
15627
  floatingEl.setAttribute(placementDataAttribute, effectivePlacement);
@@ -15766,14 +15742,12 @@ const TEXT$j = {
15766
15742
  };
15767
15743
 
15768
15744
  function getAncestors(element) {
15769
- var _a, _b;
15770
- const parent = (_a = element.parentElement) === null || _a === void 0 ? void 0 : _a.closest(ComboboxChildSelector);
15771
- const grandparent = (_b = parent === null || parent === void 0 ? void 0 : parent.parentElement) === null || _b === void 0 ? void 0 : _b.closest(ComboboxChildSelector);
15745
+ const parent = element.parentElement?.closest(ComboboxChildSelector);
15746
+ const grandparent = parent?.parentElement?.closest(ComboboxChildSelector);
15772
15747
  return [parent, grandparent].filter((el) => el);
15773
15748
  }
15774
15749
  function getItemAncestors(item) {
15775
- var _a;
15776
- return (((_a = item.ancestors) === null || _a === void 0 ? void 0 : _a.filter((el) => el.nodeName === "CALCITE-COMBOBOX-ITEM")) || []);
15750
+ return (item.ancestors?.filter((el) => el.nodeName === "CALCITE-COMBOBOX-ITEM") || []);
15777
15751
  }
15778
15752
  function getItemChildren(item) {
15779
15753
  return nodeListToArray(item.querySelectorAll("calcite-combobox-item"));
@@ -15836,8 +15810,8 @@ class Combobox {
15836
15810
  : null;
15837
15811
  };
15838
15812
  this.getValue = () => {
15839
- const items = this.selectedItems.map((item) => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.value) === null || _a === void 0 ? void 0 : _a.toString(); });
15840
- return (items === null || items === void 0 ? void 0 : items.length) ? (items.length > 1 ? items : items[0]) : "";
15813
+ const items = this.selectedItems.map((item) => item?.value?.toString());
15814
+ return items?.length ? (items.length > 1 ? items : items[0]) : "";
15841
15815
  };
15842
15816
  this.onLabelClick = () => {
15843
15817
  this.setFocus();
@@ -16083,8 +16057,7 @@ class Combobox {
16083
16057
  }
16084
16058
  };
16085
16059
  this.comboboxFocusHandler = () => {
16086
- var _a;
16087
- (_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
16060
+ this.textInput?.focus();
16088
16061
  };
16089
16062
  this.comboboxBlurHandler = (event) => {
16090
16063
  this.setInactiveIfNotContained(event);
@@ -16209,9 +16182,8 @@ class Combobox {
16209
16182
  }
16210
16183
  /** Sets focus on the component. */
16211
16184
  async setFocus() {
16212
- var _a;
16213
16185
  await componentLoaded(this);
16214
- (_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
16186
+ this.textInput?.focus();
16215
16187
  this.activeChipIndex = -1;
16216
16188
  this.activeItemIndex = -1;
16217
16189
  }
@@ -16221,11 +16193,10 @@ class Combobox {
16221
16193
  //
16222
16194
  // --------------------------------------------------------------------------
16223
16195
  connectedCallback() {
16224
- var _a;
16225
16196
  this.internalValueChangeFlag = true;
16226
16197
  this.value = this.getValue();
16227
16198
  this.internalValueChangeFlag = false;
16228
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
16199
+ this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
16229
16200
  connectLabel(this);
16230
16201
  connectForm(this);
16231
16202
  connectOpenCloseComponent(this);
@@ -16255,9 +16226,8 @@ class Combobox {
16255
16226
  updateHostInteraction(this);
16256
16227
  }
16257
16228
  disconnectedCallback() {
16258
- var _a, _b;
16259
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
16260
- (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
16229
+ this.mutationObserver?.disconnect();
16230
+ this.resizeObserver?.disconnect();
16261
16231
  disconnectLabel(this);
16262
16232
  disconnectForm(this);
16263
16233
  disconnectFloatingUI(this, this.referenceEl, this.floatingEl);
@@ -16314,7 +16284,7 @@ class Combobox {
16314
16284
  // if item has children items, don't count their height twice
16315
16285
  const children = Array.from(item.querySelectorAll(ComboboxChildSelector));
16316
16286
  children
16317
- .map((child) => child === null || child === void 0 ? void 0 : child.offsetHeight)
16287
+ .map((child) => child?.offsetHeight)
16318
16288
  .forEach((offsetHeight) => {
16319
16289
  height -= offsetHeight;
16320
16290
  });
@@ -16474,12 +16444,11 @@ class Combobox {
16474
16444
  this.updateActiveItemIndex(-1);
16475
16445
  }
16476
16446
  focusChip() {
16477
- var _a;
16478
- const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
16447
+ const guid = this.selectedItems[this.activeChipIndex]?.guid;
16479
16448
  const chip = guid
16480
16449
  ? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
16481
16450
  : null;
16482
- chip === null || chip === void 0 ? void 0 : chip.setFocus();
16451
+ chip?.setFocus();
16483
16452
  }
16484
16453
  shiftActiveItemIndex(delta) {
16485
16454
  const { length } = this.visibleItems;
@@ -16535,7 +16504,7 @@ class Combobox {
16535
16504
  "input-wrap--single": single
16536
16505
  } }, showLabel && (hAsync("span", { class: {
16537
16506
  label: true,
16538
- "label--icon": !!(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon)
16507
+ "label--icon": !!selectedItem?.icon
16539
16508
  }, key: "label" }, selectedItem.textLabel)), hAsync("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": getLabelText(this), class: {
16540
16509
  input: true,
16541
16510
  "input--single": true,
@@ -16562,7 +16531,7 @@ class Combobox {
16562
16531
  renderIconStart() {
16563
16532
  const { selectedItems, placeholderIcon, selectionMode } = this;
16564
16533
  const selectedItem = selectedItems[0];
16565
- const selectedIcon = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon;
16534
+ const selectedIcon = selectedItem?.icon;
16566
16535
  const singleSelectionMode = selectionMode === "single";
16567
16536
  const iconAtStart = !this.open && selectedItem
16568
16537
  ? !!selectedIcon && singleSelectionMode
@@ -16633,7 +16602,7 @@ class Combobox {
16633
16602
  }; }
16634
16603
  }
16635
16604
 
16636
- const CSS$H = {
16605
+ const CSS$I = {
16637
16606
  icon: "icon",
16638
16607
  iconActive: "icon--active",
16639
16608
  custom: "icon--custom",
@@ -16719,18 +16688,18 @@ class ComboboxItem {
16719
16688
  // --------------------------------------------------------------------------
16720
16689
  renderIcon(isSingle) {
16721
16690
  const { icon, disabled, selected } = this;
16722
- const level = `${CSS$H.icon}--indent`;
16691
+ const level = `${CSS$I.icon}--indent`;
16723
16692
  const defaultIcon = isSingle ? "dot" : "check";
16724
16693
  const iconPath = disabled ? "circle-disallowed" : defaultIcon;
16725
16694
  const showDot = isSingle && !icon && !disabled;
16726
16695
  return showDot ? (hAsync("span", { class: {
16727
- [CSS$H.icon]: true,
16728
- [CSS$H.dot]: true,
16696
+ [CSS$I.icon]: true,
16697
+ [CSS$I.dot]: true,
16729
16698
  [level]: true
16730
16699
  } })) : (hAsync("calcite-icon", { class: {
16731
- [CSS$H.icon]: !icon,
16732
- [CSS$H.custom]: !!icon,
16733
- [CSS$H.iconActive]: icon && selected,
16700
+ [CSS$I.icon]: !icon,
16701
+ [CSS$I.custom]: !!icon,
16702
+ [CSS$I.iconActive]: icon && selected,
16734
16703
  [level]: true
16735
16704
  }, icon: icon || iconPath, scale: "s" }));
16736
16705
  }
@@ -16743,13 +16712,13 @@ class ComboboxItem {
16743
16712
  render() {
16744
16713
  const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
16745
16714
  const classes = {
16746
- [CSS$H.label]: true,
16747
- [CSS$H.selected]: this.selected,
16748
- [CSS$H.active]: this.active,
16749
- [CSS$H.single]: isSingleSelect
16715
+ [CSS$I.label]: true,
16716
+ [CSS$I.selected]: this.selected,
16717
+ [CSS$I.active]: this.active,
16718
+ [CSS$I.single]: isSingleSelect
16750
16719
  };
16751
16720
  const depth = getDepth$1();
16752
- return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$H.title }, this.textLabel)), this.renderChildren())));
16721
+ return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$I.title }, this.textLabel)), this.renderChildren())));
16753
16722
  }
16754
16723
  get el() { return getElement(this); }
16755
16724
  static get watchers() { return {
@@ -16778,7 +16747,7 @@ class ComboboxItem {
16778
16747
  }; }
16779
16748
  }
16780
16749
 
16781
- const CSS$G = {
16750
+ const CSS$H = {
16782
16751
  list: "list",
16783
16752
  label: "label",
16784
16753
  title: "title"
@@ -16813,8 +16782,8 @@ class ComboboxItemGroup {
16813
16782
  // --------------------------------------------------------------------------
16814
16783
  render() {
16815
16784
  const { el, scale } = this;
16816
- const indent = `${CSS$G.label}--indent-${getDepth$1()}`;
16817
- return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$G.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$G.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, hAsync("span", { class: CSS$G.title }, this.label)), hAsync("slot", null)));
16785
+ const indent = `${CSS$H.label}--indent-${getDepth$1()}`;
16786
+ return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$H.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$H.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, hAsync("span", { class: CSS$H.title }, this.label)), hAsync("slot", null)));
16818
16787
  }
16819
16788
  get el() { return getElement(this); }
16820
16789
  static get style() { return comboboxItemGroupCss; }
@@ -17177,16 +17146,15 @@ class DatePicker {
17177
17146
  * Reset active date and close
17178
17147
  */
17179
17148
  this.reset = () => {
17180
- var _a, _b, _c, _d, _e, _f;
17181
17149
  if (!Array.isArray(this.valueAsDate) &&
17182
17150
  this.valueAsDate &&
17183
- ((_a = this.valueAsDate) === null || _a === void 0 ? void 0 : _a.getTime()) !== ((_b = this.activeDate) === null || _b === void 0 ? void 0 : _b.getTime())) {
17151
+ this.valueAsDate?.getTime() !== this.activeDate?.getTime()) {
17184
17152
  this.activeDate = new Date(this.valueAsDate);
17185
17153
  }
17186
- if (this.startAsDate && ((_c = this.startAsDate) === null || _c === void 0 ? void 0 : _c.getTime()) !== ((_d = this.activeStartDate) === null || _d === void 0 ? void 0 : _d.getTime())) {
17154
+ if (this.startAsDate && this.startAsDate?.getTime() !== this.activeStartDate?.getTime()) {
17187
17155
  this.activeStartDate = new Date(this.startAsDate);
17188
17156
  }
17189
- if (this.endAsDate && ((_e = this.endAsDate) === null || _e === void 0 ? void 0 : _e.getTime()) !== ((_f = this.activeEndDate) === null || _f === void 0 ? void 0 : _f.getTime())) {
17157
+ if (this.endAsDate && this.endAsDate?.getTime() !== this.activeEndDate?.getTime()) {
17190
17158
  this.activeEndDate = new Date(this.endAsDate);
17191
17159
  }
17192
17160
  };
@@ -17346,7 +17314,6 @@ class DatePicker {
17346
17314
  this.onMaxChanged(this.max);
17347
17315
  }
17348
17316
  render() {
17349
- var _a;
17350
17317
  const date = dateFromRange(this.range && Array.isArray(this.valueAsDate) ? this.valueAsDate[0] : this.valueAsDate, this.minAsDate, this.maxAsDate);
17351
17318
  let activeDate = this.getActiveDate(date, this.minAsDate, this.maxAsDate);
17352
17319
  const endDate = this.range && Array.isArray(this.valueAsDate)
@@ -17354,7 +17321,7 @@ class DatePicker {
17354
17321
  : null;
17355
17322
  const activeEndDate = this.getActiveEndDate(endDate, this.minAsDate, this.maxAsDate);
17356
17323
  if ((this.activeRange === "end" ||
17357
- (((_a = this.hoverRange) === null || _a === void 0 ? void 0 : _a.focused) === "end" && (!this.proximitySelectionDisabled || endDate))) &&
17324
+ (this.hoverRange?.focused === "end" && (!this.proximitySelectionDisabled || endDate))) &&
17358
17325
  activeEndDate) {
17359
17326
  activeDate = activeEndDate;
17360
17327
  }
@@ -17869,10 +17836,9 @@ class DatePickerMonth {
17869
17836
  * @param ref
17870
17837
  */
17871
17838
  renderDateDay(active, day, date, currentMonth, ref) {
17872
- var _a;
17873
17839
  const isFocusedOnStart = this.isFocusedOnStart();
17874
17840
  const isHoverInRange = this.isHoverInRange() ||
17875
- (!this.endDate && this.hoverRange && sameDate((_a = this.hoverRange) === null || _a === void 0 ? void 0 : _a.end, this.startDate));
17841
+ (!this.endDate && this.hoverRange && sameDate(this.hoverRange?.end, this.startDate));
17876
17842
  return (hAsync("calcite-date-picker-day", { active: active, class: {
17877
17843
  "hover--inside-range": this.startDate && isHoverInRange,
17878
17844
  "hover--outside-range": this.startDate && !isHoverInRange,
@@ -17881,13 +17847,12 @@ class DatePickerMonth {
17881
17847
  }, currentMonth: currentMonth, day: day, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), key: date.toDateString(), onCalciteDaySelect: this.daySelect, onCalciteInternalDayHover: this.dayHover, range: !!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate), rangeHover: this.isRangeHover(date), ref: (el) => {
17882
17848
  // when moving via keyboard, focus must be updated on active date
17883
17849
  if (ref && active && this.activeFocus) {
17884
- el === null || el === void 0 ? void 0 : el.focus();
17850
+ el?.focus();
17885
17851
  }
17886
17852
  }, scale: this.scale, selected: this.isSelected(date), startOfRange: this.isStartOfRange(date), value: date }));
17887
17853
  }
17888
17854
  isFocusedOnStart() {
17889
- var _a;
17890
- return ((_a = this.hoverRange) === null || _a === void 0 ? void 0 : _a.focused) === "start";
17855
+ return this.hoverRange?.focused === "start";
17891
17856
  }
17892
17857
  isHoverInRange() {
17893
17858
  if (!this.hoverRange) {
@@ -17937,6 +17902,19 @@ class DatePickerMonth {
17937
17902
  }
17938
17903
 
17939
17904
  const BUDDHIST_CALENDAR_YEAR_OFFSET = 543;
17905
+ const CSS$G = {
17906
+ header: "header",
17907
+ month: "month",
17908
+ chevron: "chevron",
17909
+ suffix: "suffix",
17910
+ yearSuffix: "year--suffix",
17911
+ yearWrap: "year-wrap",
17912
+ textReverse: "text--reverse"
17913
+ };
17914
+ const ICON = {
17915
+ chevronLeft: "chevron-left",
17916
+ chevronRight: "chevron-right"
17917
+ };
17940
17918
 
17941
17919
  const datePickerMonthHeaderCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-date-picker-month-header:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-date-picker-month-header{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-date-picker-month-header{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-date-picker-month-header{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-date-picker-month-header{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-date-picker-month-header{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-date-picker-month-header:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-date-picker-month-header:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-date-picker-month-header-h{display:none}/*!@:host*/.sc-calcite-date-picker-month-header-h{display:block}/*!@.header*/.header.sc-calcite-date-picker-month-header{display:flex;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}/*!@:host([scale=s]) .text*/[scale=s].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=s]) .chevron*/[scale=s].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:2.25rem}/*!@:host([scale=m]) .text*/[scale=m].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=m]) .chevron*/[scale=m].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:3rem}/*!@:host([scale=l]) .text*/[scale=l].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}/*!@:host([scale=l]) .chevron*/[scale=l].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:3.5rem}/*!@.chevron*/.chevron.sc-calcite-date-picker-month-header{margin-inline:-0.25rem;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}/*!@.chevron:focus*/.chevron.sc-calcite-date-picker-month-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.chevron:hover, .chevron:focus*/.chevron.sc-calcite-date-picker-month-header:hover,.chevron.sc-calcite-date-picker-month-header:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@.chevron:active*/.chevron.sc-calcite-date-picker-month-header:active{background-color:var(--calcite-ui-foreground-3)}/*!@.chevron[aria-disabled=true]*/.chevron[aria-disabled=true].sc-calcite-date-picker-month-header{pointer-events:none;opacity:0}/*!@.text*/.text.sc-calcite-date-picker-month-header{margin-block:auto;display:flex;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:center;text-align:center;line-height:1}/*!@.text--reverse*/.text--reverse.sc-calcite-date-picker-month-header{flex-direction:row-reverse}/*!@.month,\n.year,\n.suffix*/.month.sc-calcite-date-picker-month-header,.year.sc-calcite-date-picker-month-header,.suffix.sc-calcite-date-picker-month-header{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}/*!@.year*/.year.sc-calcite-date-picker-month-header{position:relative;inline-size:2.5rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent}/*!@.year:hover*/.year.sc-calcite-date-picker-month-header:hover{transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}/*!@.year:focus*/.year.sc-calcite-date-picker-month-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}/*!@.year--suffix*/.year--suffix.sc-calcite-date-picker-month-header{text-align:start}/*!@.year-wrap*/.year-wrap.sc-calcite-date-picker-month-header{position:relative}/*!@.suffix*/.suffix.sc-calcite-date-picker-month-header{inset-block-start:0px;white-space:nowrap;text-align:start;inset-inline-start:0}";
17942
17920
 
@@ -18027,10 +18005,9 @@ class DatePickerMonthHeader {
18027
18005
  this.setNextPrevMonthDates();
18028
18006
  }
18029
18007
  render() {
18030
- return hAsync("div", { class: "header" }, this.renderContent());
18008
+ return hAsync("div", { class: CSS$G.header }, this.renderContent());
18031
18009
  }
18032
18010
  renderContent() {
18033
- var _a;
18034
18011
  if (!this.activeDate || !this.localeData) {
18035
18012
  return null;
18036
18013
  }
@@ -18049,11 +18026,11 @@ class DatePickerMonthHeader {
18049
18026
  const iconScale = this.scale === "l" ? "m" : "s";
18050
18027
  const order = getOrder(unitOrder);
18051
18028
  const reverse = order.indexOf("y") < order.indexOf("m");
18052
- const suffix = (_a = this.localeData.year) === null || _a === void 0 ? void 0 : _a.suffix;
18053
- return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlPrevMonth, class: "chevron", href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: "chevron-left", scale: iconScale })), hAsync("div", { class: { text: true, "text--reverse": reverse } }, hAsync(Heading, { class: "month", level: this.headingLevel }, localizedMonth), hAsync("span", { class: "year-wrap" }, hAsync("input", { "aria-label": this.intlYear, class: {
18029
+ const suffix = this.localeData.year?.suffix;
18030
+ return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlPrevMonth, class: CSS$G.chevron, href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronLeft, scale: iconScale })), hAsync("div", { class: { text: true, [CSS$G.textReverse]: reverse } }, hAsync(Heading, { class: CSS$G.month, level: this.headingLevel }, localizedMonth), hAsync("span", { class: CSS$G.yearWrap }, hAsync("input", { "aria-label": this.intlYear, class: {
18054
18031
  year: true,
18055
- "year--suffix": !!suffix
18056
- }, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", ref: (el) => (this.yearInput = el), type: "text", value: localizedYear }), suffix && hAsync("span", { class: "suffix" }, suffix))), hAsync("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlNextMonth, class: "chevron", href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: "chevron-right", scale: iconScale }))));
18032
+ [CSS$G.yearSuffix]: !!suffix
18033
+ }, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", ref: (el) => (this.yearInput = el), type: "text", value: localizedYear }), suffix && hAsync("span", { class: CSS$G.suffix }, suffix))), hAsync("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlNextMonth, class: CSS$G.chevron, href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronRight, scale: iconScale }))));
18057
18034
  }
18058
18035
  setNextPrevMonthDates() {
18059
18036
  if (!this.activeDate) {
@@ -18189,7 +18166,7 @@ class Dropdown {
18189
18166
  };
18190
18167
  this.updateItems = () => {
18191
18168
  this.items = this.groups
18192
- .map((group) => Array.from(group === null || group === void 0 ? void 0 : group.querySelectorAll("calcite-dropdown-item")))
18169
+ .map((group) => Array.from(group?.querySelectorAll("calcite-dropdown-item")))
18193
18170
  .reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
18194
18171
  this.updateSelectedItems();
18195
18172
  this.reposition(true);
@@ -18197,7 +18174,7 @@ class Dropdown {
18197
18174
  this.updateGroups = (event) => {
18198
18175
  const groups = event.target
18199
18176
  .assignedElements({ flatten: true })
18200
- .filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-dropdown-group"));
18177
+ .filter((el) => el?.matches("calcite-dropdown-group"));
18201
18178
  this.groups = groups;
18202
18179
  this.updateItems();
18203
18180
  };
@@ -18214,7 +18191,7 @@ class Dropdown {
18214
18191
  };
18215
18192
  this.setDropdownWidth = () => {
18216
18193
  const { referenceEl, scrollerEl } = this;
18217
- const referenceElWidth = referenceEl === null || referenceEl === void 0 ? void 0 : referenceEl.clientWidth;
18194
+ const referenceElWidth = referenceEl?.clientWidth;
18218
18195
  if (!referenceElWidth || !scrollerEl) {
18219
18196
  return;
18220
18197
  }
@@ -18339,8 +18316,7 @@ class Dropdown {
18339
18316
  //
18340
18317
  //--------------------------------------------------------------------------
18341
18318
  connectedCallback() {
18342
- var _a;
18343
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
18319
+ this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
18344
18320
  this.setFilteredPlacements();
18345
18321
  this.reposition(true);
18346
18322
  if (this.open) {
@@ -18355,10 +18331,9 @@ class Dropdown {
18355
18331
  updateHostInteraction(this);
18356
18332
  }
18357
18333
  disconnectedCallback() {
18358
- var _a, _b;
18359
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
18334
+ this.mutationObserver?.disconnect();
18360
18335
  disconnectFloatingUI(this, this.referenceEl, this.floatingEl);
18361
- (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
18336
+ this.resizeObserver?.disconnect();
18362
18337
  disconnectOpenCloseComponent(this);
18363
18338
  }
18364
18339
  render() {
@@ -18684,9 +18659,8 @@ class DropdownItem {
18684
18659
  //--------------------------------------------------------------------------
18685
18660
  /** Sets focus on the component. */
18686
18661
  async setFocus() {
18687
- var _a;
18688
18662
  await componentLoaded(this);
18689
- (_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
18663
+ this.el?.focus();
18690
18664
  }
18691
18665
  //--------------------------------------------------------------------------
18692
18666
  //
@@ -19129,13 +19103,11 @@ class Flow {
19129
19103
  //
19130
19104
  // --------------------------------------------------------------------------
19131
19105
  connectedCallback() {
19132
- var _a;
19133
- (_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
19106
+ this.itemMutationObserver?.observe(this.el, { childList: true, subtree: true });
19134
19107
  this.updateFlowProps();
19135
19108
  }
19136
19109
  disconnectedCallback() {
19137
- var _a;
19138
- (_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
19110
+ this.itemMutationObserver?.disconnect();
19139
19111
  }
19140
19112
  // --------------------------------------------------------------------------
19141
19113
  //
@@ -19324,7 +19296,7 @@ class FlowItem {
19324
19296
  backButtonEl.setFocus();
19325
19297
  return;
19326
19298
  }
19327
- containerEl === null || containerEl === void 0 ? void 0 : containerEl.setFocus();
19299
+ containerEl?.setFocus();
19328
19300
  }
19329
19301
  /**
19330
19302
  * Scrolls the component's content to a specified set of coordinates.
@@ -19338,8 +19310,7 @@ class FlowItem {
19338
19310
  * @param options
19339
19311
  */
19340
19312
  async scrollContentTo(options) {
19341
- var _a;
19342
- await ((_a = this.containerEl) === null || _a === void 0 ? void 0 : _a.scrollContentTo(options));
19313
+ await this.containerEl?.scrollContentTo(options);
19343
19314
  }
19344
19315
  // --------------------------------------------------------------------------
19345
19316
  //
@@ -19542,12 +19513,10 @@ class Graph {
19542
19513
  //
19543
19514
  //--------------------------------------------------------------------------
19544
19515
  connectedCallback() {
19545
- var _a;
19546
- (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
19516
+ this.resizeObserver?.observe(this.el);
19547
19517
  }
19548
19518
  disconnectedCallback() {
19549
- var _a;
19550
- (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
19519
+ this.resizeObserver?.disconnect();
19551
19520
  }
19552
19521
  render() {
19553
19522
  const { data, colorStops, el, highlightMax, highlightMin, min, max } = this;
@@ -19677,9 +19646,8 @@ class Handle {
19677
19646
  // --------------------------------------------------------------------------
19678
19647
  /** Sets focus on the component. */
19679
19648
  async setFocus() {
19680
- var _a;
19681
19649
  await componentLoaded(this);
19682
- (_a = this.handleButton) === null || _a === void 0 ? void 0 : _a.focus();
19650
+ this.handleButton?.focus();
19683
19651
  }
19684
19652
  // --------------------------------------------------------------------------
19685
19653
  //
@@ -19744,8 +19712,7 @@ class Icon {
19744
19712
  });
19745
19713
  }
19746
19714
  disconnectedCallback() {
19747
- var _a;
19748
- (_a = this.intersectionObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
19715
+ this.intersectionObserver?.disconnect();
19749
19716
  this.intersectionObserver = null;
19750
19717
  }
19751
19718
  async componentWillLoad() {
@@ -19832,10 +19799,9 @@ class InlineEditable {
19832
19799
  this.calciteInternalInlineEditableEnableEditingChange = createEvent(this, "calciteInternalInlineEditableEnableEditingChange", 6);
19833
19800
  this.mutationObserver = createObserver();
19834
19801
  this.enableEditing = () => {
19835
- var _a, _b;
19836
- this.valuePriorToEditing = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value;
19802
+ this.valuePriorToEditing = this.inputElement?.value;
19837
19803
  this.editingEnabled = true;
19838
- (_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.setFocus();
19804
+ this.inputElement?.setFocus();
19839
19805
  this.calciteInternalInlineEditableEnableEditingChange.emit();
19840
19806
  };
19841
19807
  this.disableEditing = () => {
@@ -19852,7 +19818,6 @@ class InlineEditable {
19852
19818
  }
19853
19819
  };
19854
19820
  this.escapeKeyHandler = async (event) => {
19855
- var _a;
19856
19821
  if (event.defaultPrevented) {
19857
19822
  return;
19858
19823
  }
@@ -19867,7 +19832,7 @@ class InlineEditable {
19867
19832
  }
19868
19833
  if (!!event.shiftKey && event.target === this.cancelEditingButton) {
19869
19834
  event.preventDefault();
19870
- (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setFocus();
19835
+ this.inputElement?.setFocus();
19871
19836
  }
19872
19837
  }
19873
19838
  };
@@ -19932,9 +19897,8 @@ class InlineEditable {
19932
19897
  //
19933
19898
  //--------------------------------------------------------------------------
19934
19899
  connectedCallback() {
19935
- var _a;
19936
19900
  connectLabel(this);
19937
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
19901
+ this.mutationObserver?.observe(this.el, { childList: true });
19938
19902
  this.mutationObserverCallback();
19939
19903
  }
19940
19904
  componentWillLoad() {
@@ -19944,9 +19908,8 @@ class InlineEditable {
19944
19908
  setComponentLoaded(this);
19945
19909
  }
19946
19910
  disconnectedCallback() {
19947
- var _a;
19948
19911
  disconnectLabel(this);
19949
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
19912
+ this.mutationObserver?.disconnect();
19950
19913
  }
19951
19914
  componentDidRender() {
19952
19915
  updateHostInteraction(this);
@@ -19976,13 +19939,12 @@ class InlineEditable {
19976
19939
  //
19977
19940
  //--------------------------------------------------------------------------
19978
19941
  async setFocus() {
19979
- var _a, _b;
19980
19942
  await componentLoaded(this);
19981
19943
  if (this.editingEnabled) {
19982
- (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setFocus();
19944
+ this.inputElement?.setFocus();
19983
19945
  }
19984
19946
  else {
19985
- (_b = this.enableEditingButton) === null || _b === void 0 ? void 0 : _b.setFocus();
19947
+ this.enableEditingButton?.setFocus();
19986
19948
  }
19987
19949
  }
19988
19950
  //--------------------------------------------------------------------------
@@ -19991,10 +19953,9 @@ class InlineEditable {
19991
19953
  //
19992
19954
  //--------------------------------------------------------------------------
19993
19955
  mutationObserverCallback() {
19994
- var _a;
19995
19956
  this.updateSlottedInput();
19996
19957
  this.scale =
19997
- this.scale || ((_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.scale) || getElementProp(this.el, "scale", undefined);
19958
+ this.scale || this.inputElement?.scale || getElementProp(this.el, "scale", undefined);
19998
19959
  }
19999
19960
  onLabelClick() {
20000
19961
  this.setFocus();
@@ -20423,13 +20384,11 @@ class Input {
20423
20384
  }
20424
20385
  /** watcher to update number-to-string for max */
20425
20386
  maxWatcher() {
20426
- var _a;
20427
- this.maxString = ((_a = this.max) === null || _a === void 0 ? void 0 : _a.toString()) || null;
20387
+ this.maxString = this.max?.toString() || null;
20428
20388
  }
20429
20389
  /** watcher to update number-to-string for min */
20430
20390
  minWatcher() {
20431
- var _a;
20432
- this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
20391
+ this.minString = this.min?.toString() || null;
20433
20392
  }
20434
20393
  valueWatcher(newValue, previousValue) {
20435
20394
  if (!this.userChangedValue) {
@@ -20463,7 +20422,6 @@ class Input {
20463
20422
  //
20464
20423
  //--------------------------------------------------------------------------
20465
20424
  connectedCallback() {
20466
- var _a;
20467
20425
  connectLocalized(this);
20468
20426
  this.scale = getElementProp(this.el, "scale", this.scale);
20469
20427
  this.status = getElementProp(this.el, "status", this.status);
@@ -20482,24 +20440,22 @@ class Input {
20482
20440
  value: isValidNumber(this.value) ? this.value : ""
20483
20441
  });
20484
20442
  }
20485
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
20443
+ this.mutationObserver?.observe(this.el, { childList: true });
20486
20444
  this.setDisabledAction();
20487
20445
  this.el.addEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
20488
20446
  }
20489
20447
  disconnectedCallback() {
20490
- var _a;
20491
20448
  disconnectLabel(this);
20492
20449
  disconnectForm(this);
20493
20450
  disconnectLocalized(this);
20494
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
20451
+ this.mutationObserver?.disconnect();
20495
20452
  this.el.removeEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
20496
20453
  }
20497
20454
  componentWillLoad() {
20498
- var _a, _b;
20499
20455
  setUpLoadableComponent(this);
20500
20456
  this.childElType = this.type === "textarea" ? "textarea" : "input";
20501
- this.maxString = (_a = this.max) === null || _a === void 0 ? void 0 : _a.toString();
20502
- this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
20457
+ this.maxString = this.max?.toString();
20458
+ this.minString = this.min?.toString();
20503
20459
  this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
20504
20460
  }
20505
20461
  componentDidLoad() {
@@ -20525,23 +20481,21 @@ class Input {
20525
20481
  //--------------------------------------------------------------------------
20526
20482
  /** Sets focus on the component. */
20527
20483
  async setFocus() {
20528
- var _a, _b;
20529
20484
  await componentLoaded(this);
20530
20485
  if (this.type === "number") {
20531
- (_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.focus();
20486
+ this.childNumberEl?.focus();
20532
20487
  }
20533
20488
  else {
20534
- (_b = this.childEl) === null || _b === void 0 ? void 0 : _b.focus();
20489
+ this.childEl?.focus();
20535
20490
  }
20536
20491
  }
20537
20492
  /** Selects all text of the component's `value`. */
20538
20493
  async selectText() {
20539
- var _a, _b;
20540
20494
  if (this.type === "number") {
20541
- (_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.select();
20495
+ this.childNumberEl?.select();
20542
20496
  }
20543
20497
  else {
20544
- (_b = this.childEl) === null || _b === void 0 ? void 0 : _b.select();
20498
+ this.childEl?.select();
20545
20499
  }
20546
20500
  }
20547
20501
  onLabelClick() {
@@ -20573,11 +20527,10 @@ class Input {
20573
20527
  });
20574
20528
  }
20575
20529
  syncHiddenFormInput(input) {
20576
- var _a, _b, _c, _d;
20577
20530
  if (this.type === "number") {
20578
20531
  input.type = "number";
20579
- input.min = (_b = (_a = this.min) === null || _a === void 0 ? void 0 : _a.toString(10)) !== null && _b !== void 0 ? _b : "";
20580
- input.max = (_d = (_c = this.max) === null || _c === void 0 ? void 0 : _c.toString(10)) !== null && _d !== void 0 ? _d : "";
20532
+ input.min = this.min?.toString(10) ?? "";
20533
+ input.max = this.max?.toString(10) ?? "";
20581
20534
  }
20582
20535
  else if (this.type === "text") {
20583
20536
  input.type = "text";
@@ -20769,15 +20722,14 @@ class InputDatePicker {
20769
20722
  this.open = false;
20770
20723
  };
20771
20724
  this.keyDownHandler = (event) => {
20772
- var _a, _b;
20773
20725
  const { defaultPrevented, key } = event;
20774
20726
  if (key === "Enter" && !defaultPrevented) {
20775
20727
  this.commitValue();
20776
20728
  if (this.shouldFocusRangeEnd()) {
20777
- (_a = this.endInput) === null || _a === void 0 ? void 0 : _a.setFocus();
20729
+ this.endInput?.setFocus();
20778
20730
  }
20779
20731
  else if (this.shouldFocusRangeStart()) {
20780
- (_b = this.startInput) === null || _b === void 0 ? void 0 : _b.setFocus();
20732
+ this.startInput?.setFocus();
20781
20733
  }
20782
20734
  if (submitForm(this)) {
20783
20735
  event.preventDefault();
@@ -20829,7 +20781,6 @@ class InputDatePicker {
20829
20781
  this.localizeInputValues();
20830
20782
  };
20831
20783
  this.handleDateRangeChange = (event) => {
20832
- var _a, _b;
20833
20784
  if (!this.range || !event.detail) {
20834
20785
  return;
20835
20786
  }
@@ -20838,10 +20789,10 @@ class InputDatePicker {
20838
20789
  this.setRangeValue([startDate, endDate]);
20839
20790
  this.localizeInputValues();
20840
20791
  if (this.shouldFocusRangeEnd()) {
20841
- (_a = this.endInput) === null || _a === void 0 ? void 0 : _a.setFocus();
20792
+ this.endInput?.setFocus();
20842
20793
  }
20843
20794
  else if (this.shouldFocusRangeStart()) {
20844
- (_b = this.startInput) === null || _b === void 0 ? void 0 : _b.setFocus();
20795
+ this.startInput?.setFocus();
20845
20796
  }
20846
20797
  };
20847
20798
  this.setInputValue = (newValue, input = "start") => {
@@ -20909,17 +20860,12 @@ class InputDatePicker {
20909
20860
  this.setInputValue(oldValue);
20910
20861
  }
20911
20862
  };
20912
- this.commonDateSeparators = [".", "-", "/"];
20913
20863
  this.formatNumerals = (value) => value
20914
20864
  ? value
20915
20865
  .split("")
20916
- .map((char) =>
20917
- // convert common separators to the locale's
20918
- this.commonDateSeparators.includes(char)
20919
- ? this.localeData.separator
20920
- : numberKeys.includes(char)
20921
- ? numberStringFormatter.numberFormatter.format(Number(char))
20922
- : char)
20866
+ .map((char) => numberKeys.includes(char)
20867
+ ? numberStringFormatter.numberFormatter.format(Number(char))
20868
+ : char)
20923
20869
  .join("")
20924
20870
  : "";
20925
20871
  this.disabled = false;
@@ -21048,9 +20994,8 @@ class InputDatePicker {
21048
20994
  // --------------------------------------------------------------------------
21049
20995
  /** Sets focus on the component. */
21050
20996
  async setFocus() {
21051
- var _a;
21052
20997
  await componentLoaded(this);
21053
- (_a = this.startInput) === null || _a === void 0 ? void 0 : _a.setFocus();
20998
+ this.startInput?.setFocus();
21054
20999
  }
21055
21000
  /**
21056
21001
  * Updates the position of the component.
@@ -21142,14 +21087,13 @@ class InputDatePicker {
21142
21087
  updateHostInteraction(this);
21143
21088
  }
21144
21089
  render() {
21145
- var _a, _b;
21146
21090
  const { disabled, effectiveLocale, numberingSystem, readOnly } = this;
21147
21091
  numberStringFormatter.numberFormatOptions = {
21148
21092
  numberingSystem,
21149
21093
  locale: effectiveLocale,
21150
21094
  useGrouping: false
21151
21095
  };
21152
- return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text" })), hAsync("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
21096
+ return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.startInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text" })), hAsync("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
21153
21097
  [CSS$u.menu]: true,
21154
21098
  [CSS$u.menuActive]: this.open
21155
21099
  }, ref: this.setFloatingEl }, hAsync("div", { class: {
@@ -21157,10 +21101,10 @@ class InputDatePicker {
21157
21101
  ["calendar-picker-wrapper--end"]: this.focusedInput === "end",
21158
21102
  [FloatingCSS.animation]: true,
21159
21103
  [FloatingCSS.animationActive]: this.open
21160
- }, ref: this.setTransitionEl }, hAsync("calcite-date-picker", { activeDate: this.datePickerActiveDate, activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, lang: effectiveLocale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, numberingSystem: numberingSystem, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
21104
+ }, ref: this.setTransitionEl }, hAsync("calcite-date-picker", { activeDate: this.datePickerActiveDate, activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, numberingSystem: numberingSystem, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
21161
21105
  input: true,
21162
21106
  "border-top-color-one": this.layout === "vertical" && this.range
21163
- }, disabled: disabled, icon: "calendar", lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.endInputFocus, placeholder: (_b = this.localeData) === null || _b === void 0 ? void 0 : _b.placeholder, readOnly: readOnly, ref: this.setEndInput, scale: this.scale, type: "text" }))))), hAsync(HiddenFormInputSlot, { component: this })));
21107
+ }, disabled: disabled, icon: "calendar", "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.endInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, ref: this.setEndInput, scale: this.scale, type: "text" }))))), hAsync(HiddenFormInputSlot, { component: this })));
21164
21108
  }
21165
21109
  setReferenceEl() {
21166
21110
  const { focusedInput, layout, endWrapper, startWrapper } = this;
@@ -21726,13 +21670,11 @@ class InputNumber {
21726
21670
  }
21727
21671
  /** watcher to update number-to-string for max */
21728
21672
  maxWatcher() {
21729
- var _a;
21730
- this.maxString = ((_a = this.max) === null || _a === void 0 ? void 0 : _a.toString()) || null;
21673
+ this.maxString = this.max?.toString() || null;
21731
21674
  }
21732
21675
  /** watcher to update number-to-string for min */
21733
21676
  minWatcher() {
21734
- var _a;
21735
- this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
21677
+ this.minString = this.min?.toString() || null;
21736
21678
  }
21737
21679
  valueWatcher(newValue, previousValue) {
21738
21680
  if (!this.userChangedValue) {
@@ -21761,7 +21703,6 @@ class InputNumber {
21761
21703
  //
21762
21704
  //--------------------------------------------------------------------------
21763
21705
  connectedCallback() {
21764
- var _a;
21765
21706
  connectLocalized(this);
21766
21707
  this.scale = getElementProp(this.el, "scale", this.scale);
21767
21708
  this.status = getElementProp(this.el, "status", this.status);
@@ -21778,7 +21719,7 @@ class InputNumber {
21778
21719
  origin: "connected",
21779
21720
  value: isValidNumber(this.value) ? this.value : ""
21780
21721
  });
21781
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
21722
+ this.mutationObserver?.observe(this.el, { childList: true });
21782
21723
  this.setDisabledAction();
21783
21724
  this.el.addEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
21784
21725
  }
@@ -21786,18 +21727,16 @@ class InputNumber {
21786
21727
  setComponentLoaded(this);
21787
21728
  }
21788
21729
  disconnectedCallback() {
21789
- var _a;
21790
21730
  disconnectLabel(this);
21791
21731
  disconnectForm(this);
21792
21732
  disconnectLocalized(this);
21793
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
21733
+ this.mutationObserver?.disconnect();
21794
21734
  this.el.removeEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
21795
21735
  }
21796
21736
  componentWillLoad() {
21797
- var _a, _b;
21798
21737
  setUpLoadableComponent(this);
21799
- this.maxString = (_a = this.max) === null || _a === void 0 ? void 0 : _a.toString();
21800
- this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
21738
+ this.maxString = this.max?.toString();
21739
+ this.minString = this.min?.toString();
21801
21740
  this.requestedIcon = setRequestedIcon({}, this.icon, "number");
21802
21741
  }
21803
21742
  componentShouldUpdate(newValue, oldValue, property) {
@@ -21820,14 +21759,12 @@ class InputNumber {
21820
21759
  //--------------------------------------------------------------------------
21821
21760
  /** Sets focus on the component. */
21822
21761
  async setFocus() {
21823
- var _a;
21824
21762
  await componentLoaded(this);
21825
- (_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.focus();
21763
+ this.childNumberEl?.focus();
21826
21764
  }
21827
21765
  /** Selects all text of the component's `value`. */
21828
21766
  async selectText() {
21829
- var _a;
21830
- (_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.select();
21767
+ this.childNumberEl?.select();
21831
21768
  }
21832
21769
  onLabelClick() {
21833
21770
  this.setFocus();
@@ -21858,10 +21795,9 @@ class InputNumber {
21858
21795
  });
21859
21796
  }
21860
21797
  syncHiddenFormInput(input) {
21861
- var _a, _b, _c, _d;
21862
21798
  input.type = "number";
21863
- input.min = (_b = (_a = this.min) === null || _a === void 0 ? void 0 : _a.toString(10)) !== null && _b !== void 0 ? _b : "";
21864
- input.max = (_d = (_c = this.max) === null || _c === void 0 ? void 0 : _c.toString(10)) !== null && _d !== void 0 ? _d : "";
21799
+ input.min = this.min?.toString(10) ?? "";
21800
+ input.max = this.max?.toString(10) ?? "";
21865
21801
  }
21866
21802
  setDisabledAction() {
21867
21803
  const slottedActionEl = getSlotted(this.el, "action");
@@ -22163,7 +22099,6 @@ class InputText {
22163
22099
  //
22164
22100
  //--------------------------------------------------------------------------
22165
22101
  connectedCallback() {
22166
- var _a;
22167
22102
  this.scale = getElementProp(this.el, "scale", this.scale);
22168
22103
  this.status = getElementProp(this.el, "status", this.status);
22169
22104
  this.inlineEditableEl = this.el.closest("calcite-inline-editable");
@@ -22174,15 +22109,14 @@ class InputText {
22174
22109
  this.setPreviousValue(this.value);
22175
22110
  connectLabel(this);
22176
22111
  connectForm(this);
22177
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
22112
+ this.mutationObserver?.observe(this.el, { childList: true });
22178
22113
  this.setDisabledAction();
22179
22114
  this.el.addEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
22180
22115
  }
22181
22116
  disconnectedCallback() {
22182
- var _a;
22183
22117
  disconnectLabel(this);
22184
22118
  disconnectForm(this);
22185
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
22119
+ this.mutationObserver?.disconnect();
22186
22120
  this.el.removeEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
22187
22121
  }
22188
22122
  componentWillLoad() {
@@ -22202,14 +22136,12 @@ class InputText {
22202
22136
  //--------------------------------------------------------------------------
22203
22137
  /** Sets focus on the component. */
22204
22138
  async setFocus() {
22205
- var _a;
22206
22139
  await componentLoaded(this);
22207
- (_a = this.childEl) === null || _a === void 0 ? void 0 : _a.focus();
22140
+ this.childEl?.focus();
22208
22141
  }
22209
22142
  /** Selects all text of the component's `value`. */
22210
22143
  async selectText() {
22211
- var _a;
22212
- (_a = this.childEl) === null || _a === void 0 ? void 0 : _a.select();
22144
+ this.childEl?.select();
22213
22145
  }
22214
22146
  onLabelClick() {
22215
22147
  this.setFocus();
@@ -22341,7 +22273,6 @@ function getLocaleHourCycle(locale, numberingSystem) {
22341
22273
  return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
22342
22274
  }
22343
22275
  function getLocalizedTimePart(part, parts) {
22344
- var _a, _b, _c, _d;
22345
22276
  if (!part || !parts) {
22346
22277
  return null;
22347
22278
  }
@@ -22350,7 +22281,7 @@ function getLocalizedTimePart(part, parts) {
22350
22281
  const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
22351
22282
  const hourSuffix = parts[hourIndex + 1];
22352
22283
  return hourSuffix && hourSuffix.type === "literal" && minuteIndex - hourIndex === 2
22353
- ? ((_a = hourSuffix.value) === null || _a === void 0 ? void 0 : _a.trim()) || null
22284
+ ? hourSuffix.value?.trim() || null
22354
22285
  : null;
22355
22286
  }
22356
22287
  if (part === "minuteSuffix") {
@@ -22358,15 +22289,15 @@ function getLocalizedTimePart(part, parts) {
22358
22289
  const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
22359
22290
  const minuteSuffix = parts[minuteIndex + 1];
22360
22291
  return minuteSuffix && minuteSuffix.type === "literal" && secondIndex - minuteIndex === 2
22361
- ? ((_b = minuteSuffix.value) === null || _b === void 0 ? void 0 : _b.trim()) || null
22292
+ ? minuteSuffix.value?.trim() || null
22362
22293
  : null;
22363
22294
  }
22364
22295
  if (part === "secondSuffix") {
22365
22296
  const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
22366
22297
  const secondSuffix = parts[secondIndex + 1];
22367
- return secondSuffix && secondSuffix.type === "literal" ? ((_c = secondSuffix.value) === null || _c === void 0 ? void 0 : _c.trim()) || null : null;
22298
+ return secondSuffix && secondSuffix.type === "literal" ? secondSuffix.value?.trim() || null : null;
22368
22299
  }
22369
- return ((_d = parts.find(({ type }) => (part == "meridiem" ? type === "dayPeriod" : type === part))) === null || _d === void 0 ? void 0 : _d.value) || null;
22300
+ return parts.find(({ type }) => (part == "meridiem" ? type === "dayPeriod" : type === part))?.value || null;
22370
22301
  }
22371
22302
  function getMeridiem(hour) {
22372
22303
  if (!isValidNumber(hour)) {
@@ -22425,7 +22356,7 @@ function localizeTimeString({ value, locale, numberingSystem, includeSeconds = t
22425
22356
  const { hour, minute, second = "0" } = parseTimeString(value);
22426
22357
  const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
22427
22358
  const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds);
22428
- return (formatter === null || formatter === void 0 ? void 0 : formatter.format(dateFromTimeString)) || null;
22359
+ return formatter?.format(dateFromTimeString) || null;
22429
22360
  }
22430
22361
  function localizeTimeStringToParts({ value, locale, numberingSystem }) {
22431
22362
  if (!isValidTime(value)) {
@@ -22708,9 +22639,8 @@ class InputTimePicker {
22708
22639
  // --------------------------------------------------------------------------
22709
22640
  /** Sets focus on the component. */
22710
22641
  async setFocus() {
22711
- var _a;
22712
22642
  await componentLoaded(this);
22713
- (_a = this.calciteInputEl) === null || _a === void 0 ? void 0 : _a.setFocus();
22643
+ this.calciteInputEl?.setFocus();
22714
22644
  }
22715
22645
  /**
22716
22646
  * Updates the position of the component.
@@ -22718,8 +22648,7 @@ class InputTimePicker {
22718
22648
  * @param delayed
22719
22649
  */
22720
22650
  async reposition(delayed = false) {
22721
- var _a;
22722
- (_a = this.popoverEl) === null || _a === void 0 ? void 0 : _a.reposition(delayed);
22651
+ this.popoverEl?.reposition(delayed);
22723
22652
  }
22724
22653
  onLabelClick() {
22725
22654
  this.setFocus();
@@ -22769,7 +22698,7 @@ class InputTimePicker {
22769
22698
  // --------------------------------------------------------------------------
22770
22699
  render() {
22771
22700
  const popoverId = `${this.referenceElementId}-popover`;
22772
- return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { disableFocusTrap: true, id: popoverId, label: "Time Picker", open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId, triggerDisabled: true }, hAsync("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.effectiveLocale, numberingSystem: this.numberingSystem, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), hAsync(HiddenFormInputSlot, { component: this })));
22701
+ return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { disableFocusTrap: true, id: popoverId, label: "Time Picker", open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId, triggerDisabled: true }, hAsync("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, numberingSystem: this.numberingSystem, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), hAsync(HiddenFormInputSlot, { component: this })));
22773
22702
  }
22774
22703
  get el() { return getElement(this); }
22775
22704
  static get watchers() { return {
@@ -23005,10 +22934,10 @@ const listItemGroupSelector = "calcite-list-item-group";
23005
22934
  const listItemSelector$1 = "calcite-list-item";
23006
22935
  function getListItemChildren(event) {
23007
22936
  const assignedElements = event.target.assignedElements({ flatten: true });
23008
- const listItemGroupChildren = assignedElements.filter((el) => el === null || el === void 0 ? void 0 : el.matches(listItemGroupSelector))
22937
+ const listItemGroupChildren = assignedElements.filter((el) => el?.matches(listItemGroupSelector))
23009
22938
  .map((group) => Array.from(group.querySelectorAll(listItemSelector$1)))
23010
22939
  .reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
23011
- const listItemChildren = assignedElements.filter((el) => el === null || el === void 0 ? void 0 : el.matches(listItemSelector$1));
22940
+ const listItemChildren = assignedElements.filter((el) => el?.matches(listItemSelector$1));
23012
22941
  return [...listItemGroupChildren, ...listItemChildren];
23013
22942
  }
23014
22943
  function updateListItemChildren(listItemChildren) {
@@ -23097,7 +23026,7 @@ class List$1 {
23097
23026
  const { listItems, filteredData, filterText } = this;
23098
23027
  const values = filteredData.map((item) => item.value);
23099
23028
  const groups = new Set();
23100
- const filteredItems = (listItems === null || listItems === void 0 ? void 0 : listItems.filter((item) => {
23029
+ const filteredItems = listItems?.filter((item) => {
23101
23030
  const parent = item.parentElement;
23102
23031
  const grouped = parent.matches("calcite-list-item-group");
23103
23032
  if (grouped) {
@@ -23106,7 +23035,7 @@ class List$1 {
23106
23035
  const matches = filterText ? values.includes(item.value) : true;
23107
23036
  item.hidden = !matches;
23108
23037
  return matches;
23109
- })) || [];
23038
+ }) || [];
23110
23039
  this.filteredItems = filteredItems;
23111
23040
  groups.forEach((group) => {
23112
23041
  const hasAtLeastOneMatch = filteredItems.some((item) => group.contains(item));
@@ -23168,8 +23097,7 @@ class List$1 {
23168
23097
  focusEl.setFocus();
23169
23098
  };
23170
23099
  this.isNavigable = (listItem) => {
23171
- var _a;
23172
- const parentListItemEl = (_a = listItem.parentElement) === null || _a === void 0 ? void 0 : _a.closest(listItemSelector);
23100
+ const parentListItemEl = listItem.parentElement?.closest(listItemSelector);
23173
23101
  if (!parentListItemEl) {
23174
23102
  return true;
23175
23103
  }
@@ -23254,13 +23182,11 @@ class List$1 {
23254
23182
  //
23255
23183
  //--------------------------------------------------------------------------
23256
23184
  connectedCallback() {
23257
- var _a;
23258
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
23185
+ this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
23259
23186
  this.updateListItems();
23260
23187
  }
23261
23188
  disconnectedCallback() {
23262
- var _a;
23263
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
23189
+ this.mutationObserver?.disconnect();
23264
23190
  }
23265
23191
  componentWillLoad() {
23266
23192
  setUpLoadableComponent(this);
@@ -23271,7 +23197,7 @@ class List$1 {
23271
23197
  componentDidLoad() {
23272
23198
  setComponentLoaded(this);
23273
23199
  const { filterEl } = this;
23274
- const filteredItems = filterEl === null || filterEl === void 0 ? void 0 : filterEl.filteredItems;
23200
+ const filteredItems = filterEl?.filteredItems;
23275
23201
  if (filteredItems) {
23276
23202
  this.filteredData = filteredItems;
23277
23203
  }
@@ -23284,9 +23210,8 @@ class List$1 {
23284
23210
  // --------------------------------------------------------------------------
23285
23211
  /** Sets focus on the component. */
23286
23212
  async setFocus() {
23287
- var _a;
23288
23213
  await componentLoaded(this);
23289
- (_a = this.enabledListItems.find((listItem) => listItem.active)) === null || _a === void 0 ? void 0 : _a.setFocus();
23214
+ this.enabledListItems.find((listItem) => listItem.active)?.setFocus();
23290
23215
  }
23291
23216
  // --------------------------------------------------------------------------
23292
23217
  //
@@ -23453,7 +23378,7 @@ class ListItem {
23453
23378
  tableCell.removeAttribute(tabIndexAttr);
23454
23379
  }
23455
23380
  });
23456
- focusEl === null || focusEl === void 0 ? void 0 : focusEl.focus();
23381
+ focusEl?.focus();
23457
23382
  };
23458
23383
  this.active = false;
23459
23384
  this.description = undefined;
@@ -23518,11 +23443,11 @@ class ListItem {
23518
23443
  this.focusCell(cells[focusIndex]);
23519
23444
  }
23520
23445
  else {
23521
- containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
23446
+ containerEl?.focus();
23522
23447
  }
23523
23448
  return;
23524
23449
  }
23525
- containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
23450
+ containerEl?.focus();
23526
23451
  }
23527
23452
  // --------------------------------------------------------------------------
23528
23453
  //
@@ -23543,7 +23468,7 @@ class ListItem {
23543
23468
  renderOpen() {
23544
23469
  const { el, open, openable, parentListEl } = this;
23545
23470
  const dir = getElementDir(el);
23546
- return openable ? (hAsync("td", { class: CSS$p.openContainer, key: "open-container", onClick: this.toggleOpen }, hAsync("calcite-icon", { icon: open ? ICONS$6.open : dir === "rtl" ? ICONS$6.closedRTL : ICONS$6.closedLTR, scale: "s" }))) : (parentListEl === null || parentListEl === void 0 ? void 0 : parentListEl.openable) ? (hAsync("td", { class: CSS$p.openContainer, key: "open-container", onClick: this.toggleSelected }, hAsync("calcite-icon", { icon: ICONS$6.blank, scale: "s" }))) : null;
23471
+ return openable ? (hAsync("td", { class: CSS$p.openContainer, key: "open-container", onClick: this.toggleOpen }, hAsync("calcite-icon", { icon: open ? ICONS$6.open : dir === "rtl" ? ICONS$6.closedRTL : ICONS$6.closedLTR, scale: "s" }))) : parentListEl?.openable ? (hAsync("td", { class: CSS$p.openContainer, key: "open-container", onClick: this.toggleSelected }, hAsync("calcite-icon", { icon: ICONS$6.blank, scale: "s" }))) : null;
23547
23472
  }
23548
23473
  renderActionsStart() {
23549
23474
  const { label, hasActionsStart } = this;
@@ -24988,8 +24913,7 @@ function connectFocusTrap(component) {
24988
24913
  * @param component
24989
24914
  */
24990
24915
  function activateFocusTrap(component) {
24991
- var _a;
24992
- (_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.activate();
24916
+ component.focusTrap?.activate();
24993
24917
  }
24994
24918
  /**
24995
24919
  * Helper to tear deactivate focus trap component.
@@ -24997,8 +24921,7 @@ function activateFocusTrap(component) {
24997
24921
  * @param component
24998
24922
  */
24999
24923
  function deactivateFocusTrap(component) {
25000
- var _a;
25001
- (_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.deactivate();
24924
+ component.focusTrap?.deactivate();
25002
24925
  }
25003
24926
 
25004
24927
  const modalCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-modal:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-modal{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-modal{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-modal{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-modal{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-modal{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-modal:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-modal:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-modal-h{display:none}/*!@:host*/.sc-calcite-modal-h{position:fixed;inset:0px;z-index:700;display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}/*!@:host([scale=s])*/[scale=s].sc-calcite-modal-h{--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1);--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}/*!@:host([scale=m])*/[scale=m].sc-calcite-modal-h{--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0);--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}/*!@:host([scale=l])*/[scale=l].sc-calcite-modal-h{--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1);--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}/*!@.scrim*/.scrim.sc-calcite-modal{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;inset:0px;display:flex;overflow-y:hidden}/*!@.modal*/.modal.sc-calcite-modal{pointer-events:none;z-index:800;float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -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);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}/*!@.modal--opening-idle*/.modal--opening-idle.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@.modal--opening-active*/.modal--opening-active.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-idle*/.modal--closing-idle.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-active*/.modal--closing-active.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@:host([open])*/[open].sc-calcite-modal-h{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@:host([open]) .modal--open*/[open].sc-calcite-modal-h .modal--open.sc-calcite-modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}/*!@.header*/.header.sc-calcite-modal{z-index:400;display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}/*!@.close*/.close.sc-calcite-modal{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-start-end-radius:0.25rem;padding-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));flex:0 0 auto}/*!@.close calcite-icon*/.close.sc-calcite-modal calcite-icon.sc-calcite-modal{pointer-events:none;vertical-align:-2px}/*!@.close:focus*/.close.sc-calcite-modal:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.close:hover, .close:focus, .close:active*/.close.sc-calcite-modal:hover,.close.sc-calcite-modal:focus,.close.sc-calcite-modal:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.title*/.title.sc-calcite-modal{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding, var(--calcite-model-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}/*!@slot[name=header]::slotted(*),\n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text, var(--calcite-modal-title-text-internal))}/*!@.content*/.content.sc-calcite-modal{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-block-size:calc(100vh - 12rem)}/*!@.content--spaced*/.content--spaced.sc-calcite-modal{padding:var(--calcite-modal-padding)}/*!@.content--no-footer*/.content--no-footer.sc-calcite-modal{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}/*!@slot[name=content]::slotted(*),\n*::slotted([slot=content])*/slot[name=content].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=content]{font-size:var(--calcite-modal-content-text, var(--calcite-modal-context-text-internal))}/*!@:host([background-color=grey]) .content*/[background-color=grey].sc-calcite-modal-h .content.sc-calcite-modal{background-color:var(--calcite-ui-background)}/*!@.footer*/.footer.sc-calcite-modal{z-index:400;margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}/*!@.footer--hide-back .back,\n.footer--hide-secondary .secondary*/.footer--hide-back.sc-calcite-modal .back.sc-calcite-modal,.footer--hide-secondary.sc-calcite-modal .secondary.sc-calcite-modal{display:none}/*!@.back*/.back.sc-calcite-modal{display:block;margin-inline-end:auto}/*!@.secondary*/.secondary.sc-calcite-modal{margin-inline:0.25rem;display:block}/*!@slot[name=primary]*/slot[name=primary].sc-calcite-modal{display:block}/*!@:host([width=small]) .modal*/[width=small].sc-calcite-modal-h .modal.sc-calcite-modal{inline-size:auto}/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{max-inline-size:32rem}@media screen and (max-width: 35rem){/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}/*!@:host([width=s]) .content*/[width=s].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=s][docked])*/[width=s][docked].sc-calcite-modal-h{align-items:flex-end}}/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{max-inline-size:48rem}@media screen and (max-width: 51rem){/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}/*!@:host([width=m]) .content*/[width=m].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=m][docked])*/[width=m][docked].sc-calcite-modal-h{align-items:flex-end}}/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{max-inline-size:94rem}@media screen and (max-width: 97rem){/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}/*!@:host([width=l]) .content*/[width=l].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=l][docked])*/[width=l][docked].sc-calcite-modal-h{align-items:flex-end}}/*!@:host([fullscreen])*/[fullscreen].sc-calcite-modal-h{background-color:transparent}/*!@:host([fullscreen]) .modal*/[fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}/*!@:host([fullscreen]) .content*/[fullscreen].sc-calcite-modal-h .content.sc-calcite-modal{max-block-size:100%;flex:1 1 auto}/*!@:host([open][fullscreen]) .header*/[open][fullscreen].sc-calcite-modal-h .header.sc-calcite-modal{border-radius:0}/*!@:host([open][fullscreen]) .footer*/[open][fullscreen].sc-calcite-modal-h .footer.sc-calcite-modal{border-radius:0}/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{block-size:auto}/*!@:host([docked]) .content*/[docked].sc-calcite-modal-h .content.sc-calcite-modal{block-size:auto;flex:1 1 auto}@media screen and (max-width: 860px){/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}/*!@:host([docked]) .close*/[docked].sc-calcite-modal-h .close.sc-calcite-modal{border-start-end-radius:var(--calcite-border-radius)}}/*!@:host([color=red]) .modal*/[color=red].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-danger)}/*!@:host([color=blue]) .modal*/[color=blue].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-info)}/*!@:host([color=red]) .modal,\n:host([color=blue]) .modal*/[color=red].sc-calcite-modal-h .modal.sc-calcite-modal,[color=blue].sc-calcite-modal-h .modal.sc-calcite-modal{border-width:0px;border-block-start-width:4px;border-style:solid}/*!@:host([color=red]) .header,\n:host([color=blue]) .header*/[color=red].sc-calcite-modal-h .header.sc-calcite-modal,[color=blue].sc-calcite-modal-h .header.sc-calcite-modal{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){/*!@slot[name=header]::slotted(*),\n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{font-size:var(--calcite-font-size-1)}/*!@.footer*/.footer.sc-calcite-modal{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){/*!@.footer*/.footer.sc-calcite-modal{flex-direction:column}/*!@.back,\n.secondary*/.back.sc-calcite-modal,.secondary.sc-calcite-modal{margin:0px;margin-block-end:0.25rem}}";
@@ -25085,8 +25008,7 @@ class Modal {
25085
25008
  setComponentLoaded(this);
25086
25009
  }
25087
25010
  connectedCallback() {
25088
- var _a;
25089
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
25011
+ this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
25090
25012
  this.updateFooterVisibility();
25091
25013
  connectConditionalSlotComponent(this);
25092
25014
  connectOpenCloseComponent(this);
@@ -25098,9 +25020,8 @@ class Modal {
25098
25020
  }
25099
25021
  }
25100
25022
  disconnectedCallback() {
25101
- var _a;
25102
25023
  this.removeOverflowHiddenClass();
25103
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
25024
+ this.mutationObserver?.disconnect();
25104
25025
  disconnectConditionalSlotComponent(this);
25105
25026
  disconnectOpenCloseComponent(this);
25106
25027
  deactivateFocusTrap(this);
@@ -25225,14 +25146,13 @@ class Modal {
25225
25146
  this.open = value;
25226
25147
  }
25227
25148
  async toggleModal(value) {
25228
- var _a, _b;
25229
25149
  this.active = value;
25230
25150
  if (value) {
25231
- (_a = this.transitionEl) === null || _a === void 0 ? void 0 : _a.classList.add(CSS$n.openingIdle);
25151
+ this.transitionEl?.classList.add(CSS$n.openingIdle);
25232
25152
  this.openModal();
25233
25153
  }
25234
25154
  else {
25235
- (_b = this.transitionEl) === null || _b === void 0 ? void 0 : _b.classList.add(CSS$n.closingIdle);
25155
+ this.transitionEl?.classList.add(CSS$n.closingIdle);
25236
25156
  this.close();
25237
25157
  }
25238
25158
  }
@@ -25481,9 +25401,8 @@ class Option {
25481
25401
  //
25482
25402
  //--------------------------------------------------------------------------
25483
25403
  connectedCallback() {
25484
- var _a;
25485
25404
  this.ensureTextContentDependentProps();
25486
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, {
25405
+ this.mutationObserver?.observe(this.el, {
25487
25406
  attributeFilter: ["label", "value"],
25488
25407
  characterData: true,
25489
25408
  childList: true,
@@ -25491,8 +25410,7 @@ class Option {
25491
25410
  });
25492
25411
  }
25493
25412
  disconnectedCallback() {
25494
- var _a;
25495
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
25413
+ this.mutationObserver?.disconnect();
25496
25414
  }
25497
25415
  //--------------------------------------------------------------------------
25498
25416
  //
@@ -25864,11 +25782,10 @@ class Panel {
25864
25782
  this.hasFab = !!elements.length;
25865
25783
  };
25866
25784
  this.setPanelScrollEl = (el) => {
25867
- var _a, _b;
25868
25785
  this.panelScrollEl = el;
25869
- (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
25786
+ this.resizeObserver?.disconnect();
25870
25787
  if (el) {
25871
- (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
25788
+ this.resizeObserver?.observe(el);
25872
25789
  this.resizeHandler();
25873
25790
  }
25874
25791
  };
@@ -25912,8 +25829,7 @@ class Panel {
25912
25829
  //
25913
25830
  // --------------------------------------------------------------------------
25914
25831
  disconnectedCallback() {
25915
- var _a;
25916
- (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
25832
+ this.resizeObserver?.disconnect();
25917
25833
  }
25918
25834
  // --------------------------------------------------------------------------
25919
25835
  //
@@ -25929,11 +25845,11 @@ class Panel {
25929
25845
  await componentLoaded(this);
25930
25846
  const { backButtonEl, closeButtonEl, containerEl } = this;
25931
25847
  if (focusId === "back-button") {
25932
- backButtonEl === null || backButtonEl === void 0 ? void 0 : backButtonEl.setFocus();
25848
+ backButtonEl?.setFocus();
25933
25849
  return;
25934
25850
  }
25935
25851
  if (focusId === "dismiss-button") {
25936
- closeButtonEl === null || closeButtonEl === void 0 ? void 0 : closeButtonEl.setFocus();
25852
+ closeButtonEl?.setFocus();
25937
25853
  return;
25938
25854
  }
25939
25855
  if (backButtonEl) {
@@ -25944,7 +25860,7 @@ class Panel {
25944
25860
  closeButtonEl.setFocus();
25945
25861
  return;
25946
25862
  }
25947
- containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
25863
+ containerEl?.focus();
25948
25864
  }
25949
25865
  /**
25950
25866
  * Scrolls the component's content to a specified set of coordinates.
@@ -25958,8 +25874,7 @@ class Panel {
25958
25874
  * @param options
25959
25875
  */
25960
25876
  async scrollContentTo(options) {
25961
- var _a;
25962
- (_a = this.panelScrollEl) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
25877
+ this.panelScrollEl?.scrollTo(options);
25963
25878
  }
25964
25879
  // --------------------------------------------------------------------------
25965
25880
  //
@@ -26102,12 +26017,10 @@ function initialize() {
26102
26017
  this.emitCalciteListFilter = debounce(internalCalciteListFilterEvent.bind(this), 0);
26103
26018
  }
26104
26019
  function initializeObserver() {
26105
- var _a;
26106
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
26020
+ this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
26107
26021
  }
26108
26022
  function cleanUpObserver() {
26109
- var _a;
26110
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
26023
+ this.mutationObserver?.disconnect();
26111
26024
  }
26112
26025
  // --------------------------------------------------------------------------
26113
26026
  //
@@ -26250,7 +26163,6 @@ function toggleSingleSelectItemTabbing(item, selectable) {
26250
26163
  }
26251
26164
  }
26252
26165
  async function setFocus(focusId) {
26253
- var _a;
26254
26166
  if (this.filterEnabled && focusId === "filter") {
26255
26167
  await focusElement(this.filterEl);
26256
26168
  return;
@@ -26260,7 +26172,7 @@ async function setFocus(focusId) {
26260
26172
  return;
26261
26173
  }
26262
26174
  if (multiple) {
26263
- return (_a = filterOutDisabled(items)[0]) === null || _a === void 0 ? void 0 : _a.setFocus();
26175
+ return filterOutDisabled(items)[0]?.setFocus();
26264
26176
  }
26265
26177
  const filtered = filterOutDisabled(items);
26266
26178
  const focusTarget = filtered.find((item) => item.selected) || filtered[0];
@@ -26332,14 +26244,13 @@ function selectSiblings(item, deselect = false) {
26332
26244
  }
26333
26245
  let groups;
26334
26246
  function handleFilter(emit = false) {
26335
- var _a;
26336
26247
  const { filteredData, filterText } = this;
26337
26248
  const values = filteredData.map((item) => item.value);
26338
26249
  let hasSelectedMatch = false;
26339
26250
  if (!groups) {
26340
26251
  groups = new Set();
26341
26252
  }
26342
- const matchedItems = ((_a = this.items) === null || _a === void 0 ? void 0 : _a.filter((item) => {
26253
+ const matchedItems = this.items?.filter((item) => {
26343
26254
  const parent = item.parentElement;
26344
26255
  const grouped = parent.matches("calcite-pick-list-group");
26345
26256
  if (grouped) {
@@ -26351,7 +26262,7 @@ function handleFilter(emit = false) {
26351
26262
  hasSelectedMatch = matches && item.selected;
26352
26263
  }
26353
26264
  return matches;
26354
- })) || [];
26265
+ }) || [];
26355
26266
  groups.forEach((group) => {
26356
26267
  const hasAtLeastOneMatch = matchedItems.some((item) => group.contains(item));
26357
26268
  group.hidden = !hasAtLeastOneMatch;
@@ -26376,8 +26287,7 @@ function handleFilter(emit = false) {
26376
26287
  }
26377
26288
  }
26378
26289
  function handleInitialFilter() {
26379
- var _a;
26380
- const filteredItems = (_a = this.filterEl) === null || _a === void 0 ? void 0 : _a.filteredItems;
26290
+ const filteredItems = this.filterEl?.filteredItems;
26381
26291
  if (filteredItems) {
26382
26292
  this.filteredData = filteredItems;
26383
26293
  }
@@ -26586,7 +26496,6 @@ class PickListGroup {
26586
26496
  //
26587
26497
  // --------------------------------------------------------------------------
26588
26498
  render() {
26589
- var _a;
26590
26499
  const { el, groupTitle, headingLevel } = this;
26591
26500
  const hasParentItem = getSlotted(el, SLOTS$a.parentItem) !== null;
26592
26501
  const sectionClasses = {
@@ -26594,7 +26503,7 @@ class PickListGroup {
26594
26503
  [CSS$j.indented]: hasParentItem
26595
26504
  };
26596
26505
  const title = groupTitle;
26597
- const parentLevel = (_a = el.closest("calcite-pick-list")) === null || _a === void 0 ? void 0 : _a.headingLevel;
26506
+ const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
26598
26507
  const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
26599
26508
  const level = headingLevel || relativeLevel;
26600
26509
  return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$j.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$a.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
@@ -26747,9 +26656,8 @@ class PickListItem {
26747
26656
  }
26748
26657
  /** Sets focus on the component. */
26749
26658
  async setFocus() {
26750
- var _a;
26751
26659
  await componentLoaded(this);
26752
- (_a = this.focusEl) === null || _a === void 0 ? void 0 : _a.focus();
26660
+ this.focusEl?.focus();
26753
26661
  }
26754
26662
  // --------------------------------------------------------------------------
26755
26663
  //
@@ -27407,7 +27315,7 @@ class RadioButton {
27407
27315
  checkLastRadioButton() {
27408
27316
  const radioButtons = this.queryButtons();
27409
27317
  const checkedRadioButtons = radioButtons.filter((radioButton) => radioButton.checked);
27410
- if ((checkedRadioButtons === null || checkedRadioButtons === void 0 ? void 0 : checkedRadioButtons.length) > 1) {
27318
+ if (checkedRadioButtons?.length > 1) {
27411
27319
  const lastCheckedRadioButton = checkedRadioButtons[checkedRadioButtons.length - 1];
27412
27320
  checkedRadioButtons
27413
27321
  .filter((checkedRadioButton) => checkedRadioButton !== lastCheckedRadioButton)
@@ -27583,13 +27491,11 @@ class RadioButtonGroup {
27583
27491
  //
27584
27492
  //--------------------------------------------------------------------------
27585
27493
  connectedCallback() {
27586
- var _a;
27587
27494
  this.passPropsToRadioButtons();
27588
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
27495
+ this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
27589
27496
  }
27590
27497
  disconnectedCallback() {
27591
- var _a;
27592
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
27498
+ this.mutationObserver?.disconnect();
27593
27499
  }
27594
27500
  //--------------------------------------------------------------------------
27595
27501
  //
@@ -27666,7 +27572,7 @@ class RadioGroup {
27666
27572
  items.forEach((item) => (item.checked = item.value === value));
27667
27573
  }
27668
27574
  handleSelectedItemChange(newItem, oldItem) {
27669
- this.value = newItem === null || newItem === void 0 ? void 0 : newItem.value;
27575
+ this.value = newItem?.value;
27670
27576
  if (newItem === oldItem) {
27671
27577
  return;
27672
27578
  }
@@ -27773,9 +27679,8 @@ class RadioGroup {
27773
27679
  // --------------------------------------------------------------------------
27774
27680
  /** Sets focus on the component. */
27775
27681
  async setFocus() {
27776
- var _a;
27777
27682
  await componentLoaded(this);
27778
- (_a = (this.selectedItem || this.getItems()[0])) === null || _a === void 0 ? void 0 : _a.focus();
27683
+ (this.selectedItem || this.getItems()[0])?.focus();
27779
27684
  }
27780
27685
  //--------------------------------------------------------------------------
27781
27686
  //
@@ -27988,8 +27893,7 @@ class Rating {
27988
27893
  }
27989
27894
  render() {
27990
27895
  const { disabled, intlRating, showChip, scale, count, average } = this;
27991
- return (hAsync(Fragment, null, hAsync("fieldset", { class: "fieldset", disabled: disabled, onBlur: () => (this.hoverValue = null), onPointerLeave: () => (this.hoverValue = null), onTouchEnd: () => (this.hoverValue = null) }, hAsync("legend", { class: "visually-hidden" }, intlRating), this.renderStars()), (count || average) && showChip ? (hAsync("calcite-chip", { scale: scale, value: count === null || count === void 0 ? void 0 : count.toString() }, !!average && hAsync("span", { class: "number--average" }, average.toString()), !!count && hAsync("span", { class: "number--count" }, "(", count === null || count === void 0 ? void 0 :
27992
- count.toString(), ")"))) : null, hAsync(HiddenFormInputSlot, { component: this })));
27896
+ return (hAsync(Fragment, null, hAsync("fieldset", { class: "fieldset", disabled: disabled, onBlur: () => (this.hoverValue = null), onPointerLeave: () => (this.hoverValue = null), onTouchEnd: () => (this.hoverValue = null) }, hAsync("legend", { class: "visually-hidden" }, intlRating), this.renderStars()), (count || average) && showChip ? (hAsync("calcite-chip", { scale: scale, value: count?.toString() }, !!average && hAsync("span", { class: "number--average" }, average.toString()), !!count && hAsync("span", { class: "number--count" }, "(", count?.toString(), ")"))) : null, hAsync(HiddenFormInputSlot, { component: this })));
27993
27897
  }
27994
27898
  //--------------------------------------------------------------------------
27995
27899
  //
@@ -28010,9 +27914,8 @@ class Rating {
28010
27914
  //--------------------------------------------------------------------------
28011
27915
  /** Sets focus on the component. */
28012
27916
  async setFocus() {
28013
- var _a;
28014
27917
  await componentLoaded(this);
28015
- (_a = this.inputFocusRef) === null || _a === void 0 ? void 0 : _a.focus();
27918
+ this.inputFocusRef?.focus();
28016
27919
  }
28017
27920
  get el() { return getElement(this); }
28018
27921
  static get style() { return ratingCss; }
@@ -28119,7 +28022,7 @@ class Select {
28119
28022
  this.populateInternalSelect = () => {
28120
28023
  const optionsAndGroups = Array.from(this.el.children).filter((child) => child.tagName === "CALCITE-OPTION" || child.tagName === "CALCITE-OPTION-GROUP");
28121
28024
  this.clearInternalSelect();
28122
- optionsAndGroups.forEach((optionOrGroup) => { var _a; return (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.append(this.toNativeElement(optionOrGroup)); });
28025
+ optionsAndGroups.forEach((optionOrGroup) => this.selectEl?.append(this.toNativeElement(optionOrGroup)));
28123
28026
  };
28124
28027
  this.storeSelectRef = (node) => {
28125
28028
  this.selectEl = node;
@@ -28144,7 +28047,7 @@ class Select {
28144
28047
  items.forEach((item) => (item.selected = item.value === value));
28145
28048
  }
28146
28049
  selectedOptionHandler(selectedOption) {
28147
- this.value = selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value;
28050
+ this.value = selectedOption?.value;
28148
28051
  }
28149
28052
  //--------------------------------------------------------------------------
28150
28053
  //
@@ -28152,9 +28055,8 @@ class Select {
28152
28055
  //
28153
28056
  //--------------------------------------------------------------------------
28154
28057
  connectedCallback() {
28155
- var _a;
28156
28058
  const { el } = this;
28157
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, {
28059
+ this.mutationObserver?.observe(el, {
28158
28060
  subtree: true,
28159
28061
  childList: true
28160
28062
  });
@@ -28162,8 +28064,7 @@ class Select {
28162
28064
  connectForm(this);
28163
28065
  }
28164
28066
  disconnectedCallback() {
28165
- var _a;
28166
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
28067
+ this.mutationObserver?.disconnect();
28167
28068
  disconnectLabel(this);
28168
28069
  disconnectForm(this);
28169
28070
  }
@@ -28171,9 +28072,8 @@ class Select {
28171
28072
  setUpLoadableComponent(this);
28172
28073
  }
28173
28074
  componentDidLoad() {
28174
- var _a, _b;
28175
28075
  setComponentLoaded(this);
28176
- afterConnectDefaultValueSet(this, (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "");
28076
+ afterConnectDefaultValueSet(this, this.selectedOption?.value ?? "");
28177
28077
  }
28178
28078
  componentDidRender() {
28179
28079
  updateHostInteraction(this);
@@ -28439,7 +28339,7 @@ class ShellCenterRow {
28439
28339
  const actionBar = getSlotted(el, SLOTS$6.actionBar);
28440
28340
  const actionBarNode = actionBar ? (hAsync("div", { class: CSS$b.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
28441
28341
  const children = [actionBarNode, contentNode];
28442
- if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
28342
+ if (actionBar?.position === "end") {
28443
28343
  children.reverse();
28444
28344
  }
28445
28345
  return hAsync(Fragment, null, children);
@@ -28566,8 +28466,7 @@ class ShellPanel {
28566
28466
  document.removeEventListener("pointermove", this.separatorPointerMove);
28567
28467
  };
28568
28468
  this.setInitialContentWidth = () => {
28569
- var _a;
28570
- this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
28469
+ this.initialContentWidth = this.contentEl?.getBoundingClientRect().width;
28571
28470
  };
28572
28471
  this.separatorPointerDown = (event) => {
28573
28472
  if (!isPrimaryPointerButton(event)) {
@@ -28587,8 +28486,7 @@ class ShellPanel {
28587
28486
  separatorEl.addEventListener("pointerdown", this.separatorPointerDown);
28588
28487
  };
28589
28488
  this.disconnectSeparator = () => {
28590
- var _a;
28591
- (_a = this.separatorEl) === null || _a === void 0 ? void 0 : _a.removeEventListener("pointerdown", this.separatorPointerDown);
28489
+ this.separatorEl?.removeEventListener("pointerdown", this.separatorPointerDown);
28592
28490
  };
28593
28491
  this.collapsed = false;
28594
28492
  this.detached = false;
@@ -28628,7 +28526,7 @@ class ShellPanel {
28628
28526
  const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
28629
28527
  const allowResizing = !detached && resizable;
28630
28528
  const contentNode = (hAsync("div", { class: { [CSS$a.content]: true, [CSS$a.contentDetached]: detached }, hidden: collapsed, key: "content", ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), hAsync("div", { class: CSS$a.contentBody }, hAsync("slot", null))));
28631
- const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$a.separator, key: "separator", onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
28529
+ const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth ?? initialContentWidth, class: CSS$a.separator, key: "separator", onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
28632
28530
  const actionBarNode = hAsync("slot", { key: "action-bar", name: SLOTS$5.actionBar });
28633
28531
  const mainNodes = [actionBarNode, contentNode, separatorNode];
28634
28532
  if (position === "end") {
@@ -29131,7 +29029,7 @@ class Slider {
29131
29029
  async setFocus() {
29132
29030
  await componentLoaded(this);
29133
29031
  const handle = this.minHandle ? this.minHandle : this.maxHandle;
29134
- handle === null || handle === void 0 ? void 0 : handle.focus();
29032
+ handle?.focus();
29135
29033
  }
29136
29034
  //--------------------------------------------------------------------------
29137
29035
  //
@@ -32592,15 +32490,13 @@ class SortableList {
32592
32490
  this.beginObserving();
32593
32491
  }
32594
32492
  disconnectedCallback() {
32595
- var _a;
32596
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
32493
+ this.mutationObserver?.disconnect();
32597
32494
  this.cleanUpDragAndDrop();
32598
32495
  }
32599
32496
  componentDidRender() {
32600
32497
  updateHostInteraction(this);
32601
32498
  }
32602
32499
  calciteHandleNudgeHandler(event) {
32603
- var _a;
32604
32500
  const sortItem = this.items.find((item) => {
32605
32501
  return item.contains(event.detail.handle) || event.composedPath().includes(item);
32606
32502
  });
@@ -32633,7 +32529,7 @@ class SortableList {
32633
32529
  default:
32634
32530
  return;
32635
32531
  }
32636
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
32532
+ this.mutationObserver?.disconnect();
32637
32533
  if (appendInstead) {
32638
32534
  sortItem.parentElement.appendChild(sortItem);
32639
32535
  }
@@ -32663,8 +32559,7 @@ class SortableList {
32663
32559
  },
32664
32560
  // Element dragging started
32665
32561
  onStart: () => {
32666
- var _a;
32667
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
32562
+ this.mutationObserver?.disconnect();
32668
32563
  },
32669
32564
  // Element dragging ended
32670
32565
  onEnd: () => {
@@ -32677,13 +32572,11 @@ class SortableList {
32677
32572
  this.sortable = Sortable.create(this.el, options);
32678
32573
  }
32679
32574
  cleanUpDragAndDrop() {
32680
- var _a;
32681
- (_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
32575
+ this.sortable?.destroy();
32682
32576
  this.sortable = null;
32683
32577
  }
32684
32578
  beginObserving() {
32685
- var _a;
32686
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
32579
+ this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
32687
32580
  }
32688
32581
  // --------------------------------------------------------------------------
32689
32582
  //
@@ -32868,7 +32761,7 @@ class Stepper {
32868
32761
  return (hAsync("slot", { onSlotchange: (event) => {
32869
32762
  const items = event.currentTarget
32870
32763
  .assignedElements()
32871
- .filter((el) => (el === null || el === void 0 ? void 0 : el.tagName) === "CALCITE-STEPPER-ITEM");
32764
+ .filter((el) => el?.tagName === "CALCITE-STEPPER-ITEM");
32872
32765
  const spacing = Array(items.length).fill("1fr").join(" ");
32873
32766
  this.el.style.gridTemplateAreas = spacing;
32874
32767
  this.el.style.gridTemplateColumns = spacing;
@@ -32989,10 +32882,9 @@ class Stepper {
32989
32882
  //
32990
32883
  //--------------------------------------------------------------------------
32991
32884
  getEnabledStepIndex(startIndex, direction = "next") {
32992
- var _a;
32993
32885
  const { items, currentPosition } = this;
32994
32886
  let newIndex = startIndex;
32995
- while ((_a = items[newIndex]) === null || _a === void 0 ? void 0 : _a.disabled) {
32887
+ while (items[newIndex]?.disabled) {
32996
32888
  newIndex = newIndex + (direction === "previous" ? -1 : 1);
32997
32889
  }
32998
32890
  return newIndex !== currentPosition && newIndex < items.length && newIndex >= 0
@@ -33097,7 +32989,7 @@ class StepperItem {
33097
32989
  if (this.layout === "horizontal" &&
33098
32990
  event
33099
32991
  .composedPath()
33100
- .some((el) => { var _a; return (_a = el.classList) === null || _a === void 0 ? void 0 : _a.contains("stepper-item-content"); })) {
32992
+ .some((el) => el.classList?.contains("stepper-item-content"))) {
33101
32993
  return;
33102
32994
  }
33103
32995
  this.emitUserRequestedItem();
@@ -33148,10 +33040,9 @@ class StepperItem {
33148
33040
  this.registerStepperItem();
33149
33041
  }
33150
33042
  effectiveLocaleWatcher(locale) {
33151
- var _a;
33152
33043
  numberStringFormatter.numberFormatOptions = {
33153
33044
  locale,
33154
- numberingSystem: (_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.numberingSystem,
33045
+ numberingSystem: this.parentStepperEl?.numberingSystem,
33155
33046
  useGrouping: false
33156
33047
  };
33157
33048
  }
@@ -33171,7 +33062,6 @@ class StepperItem {
33171
33062
  }
33172
33063
  }
33173
33064
  componentWillLoad() {
33174
- var _a;
33175
33065
  setUpLoadableComponent(this);
33176
33066
  this.icon = getElementProp(this.el, "icon", false);
33177
33067
  this.numbered = getElementProp(this.el, "numbered", false);
@@ -33185,7 +33075,7 @@ class StepperItem {
33185
33075
  }
33186
33076
  numberStringFormatter.numberFormatOptions = {
33187
33077
  locale: this.effectiveLocale,
33188
- numberingSystem: (_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.numberingSystem,
33078
+ numberingSystem: this.parentStepperEl?.numberingSystem,
33189
33079
  useGrouping: false
33190
33080
  };
33191
33081
  }
@@ -33221,9 +33111,8 @@ class StepperItem {
33221
33111
  //
33222
33112
  //--------------------------------------------------------------------------
33223
33113
  async setFocus() {
33224
- var _a;
33225
33114
  await componentLoaded(this);
33226
- (_a = (this.layout === "vertical" ? this.el : this.headerEl)) === null || _a === void 0 ? void 0 : _a.focus();
33115
+ (this.layout === "vertical" ? this.el : this.headerEl)?.focus();
33227
33116
  }
33228
33117
  renderIcon() {
33229
33118
  const path = this.selected
@@ -33244,8 +33133,7 @@ class StepperItem {
33244
33133
  });
33245
33134
  }
33246
33135
  getItemPosition() {
33247
- var _a;
33248
- return Array.from((_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll("calcite-stepper-item")).indexOf(this.el);
33136
+ return Array.from(this.parentStepperEl?.querySelectorAll("calcite-stepper-item")).indexOf(this.el);
33249
33137
  }
33250
33138
  get el() { return getElement(this); }
33251
33139
  static get watchers() { return {
@@ -33439,13 +33327,11 @@ class Tab {
33439
33327
  this.calciteInternalTabRegister.emit();
33440
33328
  }
33441
33329
  componentWillRender() {
33442
- var _a;
33443
- this.scale = (_a = this.parentTabsEl) === null || _a === void 0 ? void 0 : _a.scale;
33330
+ this.scale = this.parentTabsEl?.scale;
33444
33331
  }
33445
33332
  disconnectedCallback() {
33446
- var _a;
33447
33333
  // Dispatching to body in order to be listened by other elements that are still connected to the DOM.
33448
- (_a = document.body) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new CustomEvent("calciteTabUnregister", {
33334
+ document.body?.dispatchEvent(new CustomEvent("calciteTabUnregister", {
33449
33335
  detail: this.el
33450
33336
  }));
33451
33337
  }
@@ -33540,7 +33426,7 @@ class TabNav {
33540
33426
  //
33541
33427
  //--------------------------------------------------------------------------
33542
33428
  this.handleTabFocus = (event, tabTitle) => {
33543
- tabTitle === null || tabTitle === void 0 ? void 0 : tabTitle.focus();
33429
+ tabTitle?.focus();
33544
33430
  event.stopPropagation();
33545
33431
  event.preventDefault();
33546
33432
  };
@@ -33584,13 +33470,11 @@ class TabNav {
33584
33470
  //
33585
33471
  //--------------------------------------------------------------------------
33586
33472
  connectedCallback() {
33587
- var _a;
33588
33473
  this.parentTabsEl = this.el.closest("calcite-tabs");
33589
- (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
33474
+ this.resizeObserver?.observe(this.el);
33590
33475
  }
33591
33476
  disconnectedCallback() {
33592
- var _a;
33593
- (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
33477
+ this.resizeObserver?.disconnect();
33594
33478
  }
33595
33479
  componentWillLoad() {
33596
33480
  const storageKey = `calcite-tab-nav-${this.storageId}`;
@@ -33601,10 +33485,10 @@ class TabNav {
33601
33485
  }
33602
33486
  componentWillRender() {
33603
33487
  const { parentTabsEl } = this;
33604
- this.layout = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.layout;
33605
- this.position = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.position;
33606
- this.scale = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.scale;
33607
- this.bordered = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.bordered;
33488
+ this.layout = parentTabsEl?.layout;
33489
+ this.position = parentTabsEl?.position;
33490
+ this.scale = parentTabsEl?.scale;
33491
+ this.bordered = parentTabsEl?.bordered;
33608
33492
  // fix issue with active tab-title not lining up with blue indicator
33609
33493
  if (this.selectedTabEl) {
33610
33494
  this.updateOffsetPosition();
@@ -33686,18 +33570,16 @@ class TabNav {
33686
33570
  this.updateActiveWidth();
33687
33571
  }
33688
33572
  updateOffsetPosition() {
33689
- var _a, _b, _c, _d, _e;
33690
33573
  const dir = getElementDir(this.el);
33691
- const navWidth = (_a = this.activeIndicatorContainerEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
33692
- const tabLeft = (_b = this.selectedTabEl) === null || _b === void 0 ? void 0 : _b.offsetLeft;
33693
- const tabWidth = (_c = this.selectedTabEl) === null || _c === void 0 ? void 0 : _c.offsetWidth;
33574
+ const navWidth = this.activeIndicatorContainerEl?.offsetWidth;
33575
+ const tabLeft = this.selectedTabEl?.offsetLeft;
33576
+ const tabWidth = this.selectedTabEl?.offsetWidth;
33694
33577
  const offsetRight = navWidth - (tabLeft + tabWidth);
33695
33578
  this.indicatorOffset =
33696
- dir !== "rtl" ? tabLeft - ((_d = this.tabNavEl) === null || _d === void 0 ? void 0 : _d.scrollLeft) : offsetRight + ((_e = this.tabNavEl) === null || _e === void 0 ? void 0 : _e.scrollLeft);
33579
+ dir !== "rtl" ? tabLeft - this.tabNavEl?.scrollLeft : offsetRight + this.tabNavEl?.scrollLeft;
33697
33580
  }
33698
33581
  updateActiveWidth() {
33699
- var _a;
33700
- this.indicatorWidth = (_a = this.selectedTabEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
33582
+ this.indicatorWidth = this.selectedTabEl?.offsetWidth;
33701
33583
  }
33702
33584
  getIndexOfTabTitle(el, tabTitles = this.tabTitles) {
33703
33585
  // In most cases, since these indexes correlate with tab contents, we want to consider all tab titles.
@@ -33808,13 +33690,12 @@ class TabTitle {
33808
33690
  this.parentTabsEl = this.el.closest("calcite-tabs");
33809
33691
  }
33810
33692
  disconnectedCallback() {
33811
- var _a, _b, _c;
33812
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
33693
+ this.mutationObserver?.disconnect();
33813
33694
  // Dispatching to body in order to be listened by other elements that are still connected to the DOM.
33814
- (_b = document.body) === null || _b === void 0 ? void 0 : _b.dispatchEvent(new CustomEvent("calciteTabTitleUnregister", {
33695
+ document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister", {
33815
33696
  detail: this.el
33816
33697
  }));
33817
- (_c = this.resizeObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
33698
+ this.resizeObserver?.disconnect();
33818
33699
  }
33819
33700
  componentWillLoad() {
33820
33701
  if (this.tab && this.selected) {
@@ -33841,7 +33722,7 @@ class TabTitle {
33841
33722
  return (hAsync(Host, { "aria-controls": this.controls, "aria-selected": toAriaBoolean(this.selected), id: id, role: "tab", tabIndex: this.selected ? 0 : -1 }, hAsync("div", { class: {
33842
33723
  container: true,
33843
33724
  "container--has-text": this.hasText
33844
- }, ref: (el) => { var _a; return (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(el); } }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
33725
+ }, ref: (el) => this.resizeObserver?.observe(el) }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
33845
33726
  }
33846
33727
  async componentDidLoad() {
33847
33728
  this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier());
@@ -33940,8 +33821,7 @@ class TabTitle {
33940
33821
  this.hasText = this.el.textContent.trim().length > 0;
33941
33822
  }
33942
33823
  setupTextContentObserver() {
33943
- var _a;
33944
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
33824
+ this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
33945
33825
  }
33946
33826
  emitActiveTab(userTriggered = true) {
33947
33827
  if (this.disabled) {
@@ -34253,9 +34133,8 @@ class TileSelect {
34253
34133
  //--------------------------------------------------------------------------
34254
34134
  /** Sets focus on the component. */
34255
34135
  async setFocus() {
34256
- var _a;
34257
34136
  await componentLoaded(this);
34258
- (_a = this.input) === null || _a === void 0 ? void 0 : _a.setFocus();
34137
+ this.input?.setFocus();
34259
34138
  }
34260
34139
  //--------------------------------------------------------------------------
34261
34140
  //
@@ -34794,7 +34673,6 @@ class TimePicker {
34794
34673
  }
34795
34674
  };
34796
34675
  this.setValuePart = (key, value, emit = true) => {
34797
- var _a;
34798
34676
  const { effectiveLocale: locale, numberingSystem } = this;
34799
34677
  if (key === "meridiem") {
34800
34678
  this.meridiem = value;
@@ -34837,7 +34715,8 @@ class TimePicker {
34837
34715
  this.value = null;
34838
34716
  }
34839
34717
  this.localizedMeridiem = this.value
34840
- ? ((_a = localizeTimeStringToParts({ value: this.value, locale, numberingSystem })) === null || _a === void 0 ? void 0 : _a.localizedMeridiem) || null
34718
+ ? localizeTimeStringToParts({ value: this.value, locale, numberingSystem })
34719
+ ?.localizedMeridiem || null
34841
34720
  : localizeTimePart({ value: this.meridiem, part: "meridiem", locale, numberingSystem });
34842
34721
  if (emit) {
34843
34722
  this.calciteInternalTimePickerChange.emit();
@@ -34966,9 +34845,8 @@ class TimePicker {
34966
34845
  * @param target
34967
34846
  */
34968
34847
  async setFocus(target) {
34969
- var _a;
34970
34848
  await componentLoaded(this);
34971
- (_a = this[`${target || "hour"}El`]) === null || _a === void 0 ? void 0 : _a.focus();
34849
+ this[`${target || "hour"}El`]?.focus();
34972
34850
  }
34973
34851
  // --------------------------------------------------------------------------
34974
34852
  //
@@ -35193,9 +35071,8 @@ class Tip {
35193
35071
  //
35194
35072
  // --------------------------------------------------------------------------
35195
35073
  renderHeader() {
35196
- var _a;
35197
35074
  const { heading, headingLevel, el } = this;
35198
- const parentLevel = (_a = el.closest("calcite-tip-manager")) === null || _a === void 0 ? void 0 : _a.headingLevel;
35075
+ const parentLevel = el.closest("calcite-tip-manager")?.headingLevel;
35199
35076
  const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
35200
35077
  const level = headingLevel || relativeLevel;
35201
35078
  return heading ? (hAsync("header", { class: CSS$4.header }, hAsync(Heading, { class: CSS$4.heading, level: level }, heading))) : null;
@@ -35361,13 +35238,11 @@ class TipManager {
35361
35238
  //
35362
35239
  // --------------------------------------------------------------------------
35363
35240
  connectedCallback() {
35364
- var _a;
35365
35241
  this.setUpTips();
35366
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
35242
+ this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
35367
35243
  }
35368
35244
  disconnectedCallback() {
35369
- var _a;
35370
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
35245
+ this.mutationObserver?.disconnect();
35371
35246
  }
35372
35247
  // --------------------------------------------------------------------------
35373
35248
  //
@@ -35416,7 +35291,7 @@ class TipManager {
35416
35291
  updateGroupTitle() {
35417
35292
  const selectedTip = this.tips[this.selectedIndex];
35418
35293
  const tipParent = selectedTip.closest("calcite-tip-group");
35419
- this.groupTitle = (tipParent === null || tipParent === void 0 ? void 0 : tipParent.groupTitle) || this.intlDefaultTitle || TEXT.defaultGroupTitle;
35294
+ this.groupTitle = tipParent?.groupTitle || this.intlDefaultTitle || TEXT.defaultGroupTitle;
35420
35295
  }
35421
35296
  // --------------------------------------------------------------------------
35422
35297
  //
@@ -35522,7 +35397,7 @@ class TooltipManager {
35522
35397
  }
35523
35398
  const clickedTooltip = this.queryTooltip(event.composedPath());
35524
35399
  this.clickedTooltip = clickedTooltip;
35525
- if (clickedTooltip === null || clickedTooltip === void 0 ? void 0 : clickedTooltip.closeOnClick) {
35400
+ if (clickedTooltip?.closeOnClick) {
35526
35401
  this.toggleTooltip(clickedTooltip, false);
35527
35402
  this.clearHoverTimeout(clickedTooltip);
35528
35403
  }
@@ -35844,7 +35719,7 @@ class Tooltip {
35844
35719
  }
35845
35720
 
35846
35721
  function isTreeItem(element) {
35847
- return element === null || element === void 0 ? void 0 : element.matches("calcite-tree-item");
35722
+ return element?.matches("calcite-tree-item");
35848
35723
  }
35849
35724
  function getEnabledSiblingItem(el, direction) {
35850
35725
  const directionProp = direction === "down" ? "nextElementSibling" : "previousElementSibling";
@@ -35880,8 +35755,7 @@ class Tree {
35880
35755
  //
35881
35756
  //--------------------------------------------------------------------------
35882
35757
  componentWillRender() {
35883
- var _a;
35884
- const parent = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.closest("calcite-tree");
35758
+ const parent = this.el.parentElement?.closest("calcite-tree");
35885
35759
  this.lines = parent ? parent.lines : this.lines;
35886
35760
  this.scale = parent ? parent.scale : this.scale;
35887
35761
  this.selectionMode = parent ? parent.selectionMode : this.selectionMode;
@@ -35998,7 +35872,6 @@ class Tree {
35998
35872
  event.stopPropagation();
35999
35873
  }
36000
35874
  keyDownHandler(event) {
36001
- var _a;
36002
35875
  const root = this.el.closest("calcite-tree:not([child])");
36003
35876
  const target = event.target;
36004
35877
  if (!(root === this.el && target.tagName === "CALCITE-TREE-ITEM" && this.el.contains(target))) {
@@ -36040,7 +35913,7 @@ class Tree {
36040
35913
  if (target.hasChildren) {
36041
35914
  if (target.expanded && getRootNode$1(this.el).activeElement === target) {
36042
35915
  // When focus is on an open node, moves focus to the first child node.
36043
- (_a = getEnabledSiblingItem(target.querySelector("calcite-tree-item"), "down")) === null || _a === void 0 ? void 0 : _a.focus();
35916
+ getEnabledSiblingItem(target.querySelector("calcite-tree-item"), "down")?.focus();
36044
35917
  event.preventDefault();
36045
35918
  }
36046
35919
  else {
@@ -36178,13 +36051,12 @@ class TreeItem {
36178
36051
  items.forEach((item) => (item.parentExpanded = expanded));
36179
36052
  };
36180
36053
  this.updateAncestorTree = () => {
36181
- var _a;
36182
36054
  if (this.selected && this.selectionMode === "ancestors") {
36183
36055
  const ancestors = [];
36184
36056
  let parent = this.parentTreeItem;
36185
36057
  while (parent) {
36186
36058
  ancestors.push(parent);
36187
- parent = (_a = parent.parentElement) === null || _a === void 0 ? void 0 : _a.closest("calcite-tree-item");
36059
+ parent = parent.parentElement?.closest("calcite-tree-item");
36188
36060
  }
36189
36061
  ancestors.forEach((item) => (item.indeterminate = true));
36190
36062
  return;
@@ -36216,8 +36088,7 @@ class TreeItem {
36216
36088
  //
36217
36089
  //--------------------------------------------------------------------------
36218
36090
  connectedCallback() {
36219
- var _a;
36220
- this.parentTreeItem = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.closest("calcite-tree-item");
36091
+ this.parentTreeItem = this.el.parentElement?.closest("calcite-tree-item");
36221
36092
  if (this.parentTreeItem) {
36222
36093
  const { expanded } = this.parentTreeItem;
36223
36094
  this.updateParentIsExpanded(this.parentTreeItem, expanded);
@@ -36228,7 +36099,6 @@ class TreeItem {
36228
36099
  disconnectConditionalSlotComponent(this);
36229
36100
  }
36230
36101
  componentWillRender() {
36231
- var _a;
36232
36102
  this.hasChildren = !!this.el.querySelector("calcite-tree");
36233
36103
  this.depth = 0;
36234
36104
  let parentTree = this.el.closest("calcite-tree");
@@ -36240,7 +36110,7 @@ class TreeItem {
36240
36110
  this.lines = parentTree.lines;
36241
36111
  let nextParentTree;
36242
36112
  while (parentTree) {
36243
- nextParentTree = (_a = parentTree.parentElement) === null || _a === void 0 ? void 0 : _a.closest("calcite-tree");
36113
+ nextParentTree = parentTree.parentElement?.closest("calcite-tree");
36244
36114
  if (nextParentTree === parentTree) {
36245
36115
  break;
36246
36116
  }
@@ -36342,7 +36212,7 @@ class TreeItem {
36342
36212
  case "Home":
36343
36213
  root = this.el.closest("calcite-tree:not([child])");
36344
36214
  const firstNode = root.querySelector("calcite-tree-item");
36345
- firstNode === null || firstNode === void 0 ? void 0 : firstNode.focus();
36215
+ firstNode?.focus();
36346
36216
  break;
36347
36217
  case "End":
36348
36218
  root = this.el.closest("calcite-tree:not([child])");
@@ -36352,7 +36222,7 @@ class TreeItem {
36352
36222
  currentNode = currentTree.children[root.children.length - 1];
36353
36223
  currentTree = nodeListToArray(currentNode.children).find((el) => el.matches("calcite-tree"));
36354
36224
  }
36355
- currentNode === null || currentNode === void 0 ? void 0 : currentNode.focus();
36225
+ currentNode?.focus();
36356
36226
  break;
36357
36227
  }
36358
36228
  }
@@ -36424,10 +36294,10 @@ function getScreenReaderText(item, status, valueList) {
36424
36294
  function getHandleAndItemElement(event) {
36425
36295
  const handle = event
36426
36296
  .composedPath()
36427
- .find((item) => { var _a; return ((_a = item.dataset) === null || _a === void 0 ? void 0 : _a.jsHandle) !== undefined; });
36297
+ .find((item) => item.dataset?.jsHandle !== undefined);
36428
36298
  const item = event
36429
36299
  .composedPath()
36430
- .find((item) => { var _a; return ((_a = item.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "calcite-value-list-item"; });
36300
+ .find((item) => item.tagName?.toLowerCase() === "calcite-value-list-item");
36431
36301
  return { handle, item };
36432
36302
  }
36433
36303
  function replacePlaceholders(text, label, position, total) {
@@ -36496,7 +36366,7 @@ class ValueList {
36496
36366
  }
36497
36367
  this.items = this.getItems();
36498
36368
  this.calciteListOrderChange.emit(this.items.map(({ value }) => value));
36499
- requestAnimationFrame(() => handle === null || handle === void 0 ? void 0 : handle.focus());
36369
+ requestAnimationFrame(() => handle?.focus());
36500
36370
  item.handleActivated = true;
36501
36371
  this.updateHandleAriaLabel(handle, getScreenReaderText(item, "change", this));
36502
36372
  };
@@ -36505,7 +36375,7 @@ class ValueList {
36505
36375
  };
36506
36376
  this.handleFocusIn = (event) => {
36507
36377
  const { handle, item } = getHandleAndItemElement(event);
36508
- if (!(item === null || item === void 0 ? void 0 : item.handleActivated) && item && handle) {
36378
+ if (!item?.handleActivated && item && handle) {
36509
36379
  this.updateHandleAriaLabel(handle, getScreenReaderText(item, "idle", this));
36510
36380
  }
36511
36381
  };
@@ -36602,8 +36472,7 @@ class ValueList {
36602
36472
  });
36603
36473
  }
36604
36474
  cleanUpDragAndDrop() {
36605
- var _a;
36606
- (_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
36475
+ this.sortable?.destroy();
36607
36476
  this.sortable = null;
36608
36477
  }
36609
36478
  handleBlur() {
@@ -36768,9 +36637,8 @@ class ValueListItem {
36768
36637
  }
36769
36638
  /** Set focus on the component. */
36770
36639
  async setFocus() {
36771
- var _a;
36772
36640
  await componentLoaded(this);
36773
- (_a = this.pickListItem) === null || _a === void 0 ? void 0 : _a.setFocus();
36641
+ this.pickListItem?.setFocus();
36774
36642
  }
36775
36643
  calciteListItemChangeHandler(event) {
36776
36644
  // adjust item payload from wrapped item before bubbling