@esri/calcite-components 1.0.0-next.631 → 1.0.0-next.632

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 (672) 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-b2e36784.js → p-0303fbae.js} +1 -1
  4. package/dist/calcite/{p-3b385f23.entry.js → p-0cc25e53.entry.js} +2 -2
  5. package/dist/calcite/{p-25a557a3.entry.js → p-189303c9.entry.js} +2 -2
  6. package/dist/calcite/{p-f0a5c1cf.entry.js → p-18a62c19.entry.js} +2 -2
  7. package/dist/calcite/{p-ec7b54ca.js → p-19398bcf.js} +2 -2
  8. package/dist/calcite/{p-829c6736.entry.js → p-19cc591c.entry.js} +2 -2
  9. package/dist/calcite/{p-a1a76d84.entry.js → p-1ab525eb.entry.js} +2 -2
  10. package/dist/calcite/p-1c198c5b.entry.js +6 -0
  11. package/dist/calcite/{p-a5925283.entry.js → p-1c57926c.entry.js} +2 -2
  12. package/dist/calcite/{p-0aef0b8f.js → p-201012c5.js} +2 -2
  13. package/dist/calcite/{p-e9ed1444.js → p-25af79f0.js} +1 -1
  14. package/dist/calcite/{p-c7d55f76.js → p-26221fd5.js} +1 -1
  15. package/dist/calcite/p-2a801870.entry.js +6 -0
  16. package/dist/calcite/{p-ec473061.js → p-2b0bfca8.js} +1 -1
  17. package/dist/calcite/{p-d3910b2c.entry.js → p-2c20351d.entry.js} +2 -2
  18. package/dist/calcite/p-330e5c6b.entry.js +6 -0
  19. package/dist/calcite/{p-09d0b7df.entry.js → p-350020e2.entry.js} +2 -2
  20. package/dist/calcite/{p-9eb0a60c.entry.js → p-3529e57a.entry.js} +2 -2
  21. package/dist/calcite/{p-640cf4fa.entry.js → p-3611f963.entry.js} +2 -2
  22. package/dist/calcite/p-36130c21.entry.js +6 -0
  23. package/dist/calcite/{p-1ed5c382.js → p-361465b8.js} +2 -2
  24. package/dist/calcite/{p-6765a427.entry.js → p-37f4fbf6.entry.js} +2 -2
  25. package/dist/calcite/{p-030f8c3f.js → p-3a6d68f7.js} +2 -2
  26. package/dist/calcite/{p-ee6ce295.entry.js → p-3d4b7f7b.entry.js} +2 -2
  27. package/dist/calcite/p-3ff080f1.entry.js +6 -0
  28. package/dist/calcite/{p-6c655030.entry.js → p-49fe7966.entry.js} +2 -2
  29. package/dist/calcite/{p-b3f707d1.js → p-4e6971c2.js} +1 -1
  30. package/dist/calcite/{p-f5f0f20c.entry.js → p-5230ef12.entry.js} +2 -2
  31. package/dist/calcite/{p-e2380d5f.entry.js → p-52aed615.entry.js} +2 -2
  32. package/dist/calcite/{p-471d7ed4.js → p-5527ebc8.js} +2 -2
  33. package/dist/calcite/{p-c566271a.js → p-5701017a.js} +1 -1
  34. package/dist/calcite/{p-3d2bd3a6.entry.js → p-5a898bf0.entry.js} +2 -2
  35. package/dist/calcite/{p-d1e085b3.entry.js → p-5c59c177.entry.js} +2 -2
  36. package/dist/calcite/{p-66124d87.entry.js → p-632f9793.entry.js} +2 -2
  37. package/dist/calcite/{p-2f873464.entry.js → p-64240045.entry.js} +2 -2
  38. package/dist/calcite/{p-941609dd.js → p-655ce86d.js} +2 -2
  39. package/dist/calcite/p-6a830477.js +6 -0
  40. package/dist/calcite/{p-fb7f07bc.entry.js → p-718b55be.entry.js} +2 -2
  41. package/dist/calcite/{p-63c436be.entry.js → p-72483730.entry.js} +2 -2
  42. package/dist/calcite/{p-680c3505.entry.js → p-735321ab.entry.js} +2 -2
  43. package/dist/calcite/{p-0207a04b.entry.js → p-76a6b73b.entry.js} +2 -2
  44. package/dist/calcite/{p-22a21d2f.entry.js → p-7f6763de.entry.js} +2 -2
  45. package/dist/calcite/p-85bdbb11.entry.js +6 -0
  46. package/dist/calcite/{p-9e985ad3.js → p-86905fb5.js} +1 -1
  47. package/dist/calcite/p-86f57b82.entry.js +6 -0
  48. package/dist/calcite/{p-7677636b.js → p-87b36f4c.js} +1 -1
  49. package/dist/calcite/p-89c053a0.entry.js +16 -0
  50. package/dist/calcite/{p-f2b115a1.entry.js → p-8a5c4f98.entry.js} +2 -2
  51. package/dist/calcite/{p-cc4a1d2e.entry.js → p-926bad07.entry.js} +2 -2
  52. package/dist/calcite/{p-676113f7.entry.js → p-93225a57.entry.js} +2 -2
  53. package/dist/calcite/{p-93bd2d29.entry.js → p-93d60f5a.entry.js} +2 -2
  54. package/dist/calcite/{p-4db062a5.entry.js → p-941b9462.entry.js} +2 -2
  55. package/dist/calcite/{p-423f219f.entry.js → p-9472a5ac.entry.js} +2 -2
  56. package/dist/calcite/p-96fc45cf.entry.js +6 -0
  57. package/dist/calcite/{p-ac49a5fc.entry.js → p-974f4b48.entry.js} +2 -2
  58. package/dist/calcite/{p-c079c310.js → p-993ed98a.js} +1 -1
  59. package/dist/calcite/p-9bf9e663.js +6 -0
  60. package/dist/calcite/{p-12c4354b.entry.js → p-9c51f83f.entry.js} +2 -2
  61. package/dist/calcite/{p-529b296e.js → p-a2c795b0.js} +2 -2
  62. package/dist/calcite/{p-9ac63c64.entry.js → p-a3581d8b.entry.js} +2 -2
  63. package/dist/calcite/{p-2122e0d1.js → p-a4d69d65.js} +1 -1
  64. package/dist/calcite/{p-eccd1832.entry.js → p-aa51a6fe.entry.js} +2 -2
  65. package/dist/calcite/{p-1df431db.entry.js → p-abd72bf2.entry.js} +2 -2
  66. package/dist/calcite/{p-ddb93587.js → p-ac61efff.js} +2 -2
  67. package/dist/calcite/p-ac6e713f.js +6 -0
  68. package/dist/calcite/{p-e5b8fd94.entry.js → p-afbfdab9.entry.js} +2 -2
  69. package/dist/calcite/{p-a6ad1cf2.entry.js → p-afebb7a3.entry.js} +2 -2
  70. package/dist/calcite/{p-74f724b5.entry.js → p-b4ff31d9.entry.js} +2 -2
  71. package/dist/calcite/{p-2a5bd5de.js → p-b585f1f3.js} +1 -1
  72. package/dist/calcite/{p-b00b7eb4.entry.js → p-b8180034.entry.js} +2 -2
  73. package/dist/calcite/{p-ba4b8115.entry.js → p-c114d6e9.entry.js} +2 -2
  74. package/dist/calcite/{p-cb7557e3.entry.js → p-c16b33a2.entry.js} +2 -2
  75. package/dist/calcite/{p-b02b3316.js → p-c1b5f59b.js} +1 -1
  76. package/dist/calcite/{p-852c2b37.js → p-c32059c0.js} +2 -2
  77. package/dist/calcite/{p-b3571ee3.js → p-c5c895c6.js} +2 -2
  78. package/dist/calcite/{p-256dd63d.js → p-c68d9538.js} +1 -1
  79. package/dist/calcite/p-c76023f1.entry.js +6 -0
  80. package/dist/calcite/{p-d248def9.entry.js → p-c8d99abf.entry.js} +2 -2
  81. package/dist/calcite/{p-69333e74.entry.js → p-ccfb0c33.entry.js} +2 -2
  82. package/dist/calcite/{p-d61be3b7.entry.js → p-ce7061ee.entry.js} +2 -2
  83. package/dist/calcite/{p-afc65e56.entry.js → p-d65d3da1.entry.js} +2 -2
  84. package/dist/calcite/{p-f80307a8.entry.js → p-d6764232.entry.js} +2 -2
  85. package/dist/calcite/{p-b600b3f2.entry.js → p-d874cc53.entry.js} +2 -2
  86. package/dist/calcite/{p-67c2d744.entry.js → p-d97fdcf6.entry.js} +2 -2
  87. package/dist/calcite/{p-08a381ac.js → p-e09be3fb.js} +1 -1
  88. package/dist/calcite/{p-401439ec.entry.js → p-e0a6c5f6.entry.js} +2 -2
  89. package/dist/calcite/{p-34b91fe7.js → p-f8f5f22a.js} +1 -1
  90. package/dist/calcite/{p-30cff6ab.entry.js → p-fa1bce97.entry.js} +2 -2
  91. package/dist/calcite/p-fe0be6d9.js +6 -0
  92. package/dist/cjs/{ExpandToggle-eec7a74a.js → ExpandToggle-a2268518.js} +5 -5
  93. package/dist/cjs/{Heading-96c57bf1.js → Heading-db8d4197.js} +3 -3
  94. package/dist/cjs/{app-globals-36bb7e5f.js → app-globals-7147e11d.js} +2 -2
  95. package/dist/cjs/{array-144c5568.js → array-9ea80372.js} +1 -1
  96. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  97. package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
  98. package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
  99. package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
  100. package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
  101. package/dist/cjs/calcite-action.cjs.entry.js +7 -7
  102. package/dist/cjs/calcite-alert.cjs.entry.js +10 -10
  103. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  104. package/dist/cjs/calcite-block_2.cjs.entry.js +11 -12
  105. package/dist/cjs/calcite-button.cjs.entry.js +9 -9
  106. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  107. package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
  108. package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
  109. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +10 -10
  110. package/dist/cjs/calcite-combobox_3.cjs.entry.js +14 -14
  111. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +12 -12
  112. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +11 -11
  113. package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
  114. package/dist/cjs/calcite-filter.cjs.entry.js +9 -9
  115. package/dist/cjs/calcite-flow-item.cjs.entry.js +7 -7
  116. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  117. package/dist/cjs/calcite-graph_2.cjs.entry.js +12 -12
  118. package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
  119. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  120. package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
  121. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +15 -15
  122. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  123. package/dist/cjs/calcite-input-number.cjs.entry.js +12 -12
  124. package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
  125. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +11 -11
  126. package/dist/cjs/calcite-input.cjs.entry.js +12 -12
  127. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  128. package/dist/cjs/calcite-link.cjs.entry.js +6 -6
  129. package/dist/cjs/calcite-list_3.cjs.entry.js +10 -11
  130. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  131. package/dist/cjs/calcite-modal.cjs.entry.js +1281 -134
  132. package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
  133. package/dist/cjs/calcite-option_3.cjs.entry.js +9 -9
  134. package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
  135. package/dist/cjs/calcite-panel.cjs.entry.js +11 -11
  136. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +33 -13
  137. package/dist/cjs/calcite-popover_2.cjs.entry.js +12 -13
  138. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  139. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  140. package/dist/cjs/calcite-radio-button.cjs.entry.js +9 -9
  141. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -8
  142. package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
  143. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  144. package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
  145. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  146. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  147. package/dist/cjs/calcite-stepper_2.cjs.entry.js +9 -9
  148. package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
  149. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  150. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
  151. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  152. package/dist/cjs/calcite-tip_3.cjs.entry.js +54 -56
  153. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +7 -7
  154. package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
  155. package/dist/cjs/calcite-value-list_2.cjs.entry.js +30 -12
  156. package/dist/cjs/calcite.cjs.js +5 -5
  157. package/dist/cjs/{conditionalSlot-7f4a8e10.js → conditionalSlot-fd337152.js} +3 -3
  158. package/dist/cjs/{debounce-3d8e527c.js → debounce-f8c7e9b6.js} +1 -1
  159. package/dist/cjs/{dom-1c0b6833.js → dom-f7828144.js} +3 -4
  160. package/dist/cjs/{filter-a043da6d.js → filter-f3c0b4f6.js} +2 -2
  161. package/dist/cjs/{floating-ui-78db6436.js → floating-ui-83c6ed49.js} +4 -4
  162. package/dist/cjs/{form-5cda2366.js → form-b6275ade.js} +3 -3
  163. package/dist/cjs/{guid-0bb5fc1b.js → guid-42c9f5bc.js} +1 -1
  164. package/dist/cjs/{index-5bdde370.js → index-97bc3529.js} +1 -1
  165. package/dist/cjs/index.cjs.js +1 -1
  166. package/dist/cjs/{interactive-19caf709.js → interactive-394db149.js} +1 -1
  167. package/dist/cjs/{interfaces-e83765f7.js → interfaces-15a95c78.js} +1 -1
  168. package/dist/cjs/{key-42ab632f.js → key-ef1b5c40.js} +1 -1
  169. package/dist/cjs/{label-2cc97ee2.js → label-5277de10.js} +2 -2
  170. package/dist/cjs/loader.cjs.js +5 -5
  171. package/dist/cjs/{locale-e755b3f7.js → locale-d6c8629d.js} +4 -4
  172. package/dist/cjs/{math-976c29c4.js → math-7661c5a9.js} +1 -1
  173. package/dist/cjs/{nonChromiumPlatformUtils-0e526ecf.js → nonChromiumPlatformUtils-16ccc341.js} +6 -6
  174. package/dist/cjs/{observers-bcbecbbd.js → observers-f0edd5b4.js} +1 -1
  175. package/dist/cjs/{openCloseComponent-edbc7b2a.js → openCloseComponent-3619e10f.js} +1 -1
  176. package/dist/cjs/{resources-749ca3c0.js → resources-05aec36a.js} +1 -1
  177. package/dist/cjs/{resources-b4931f11.js → resources-8411fe4f.js} +39 -15
  178. package/dist/cjs/{resources-5fdad010.js → resources-84367026.js} +1 -3
  179. package/dist/cjs/{resources-17fc0687.js → resources-cce171b0.js} +1 -1
  180. package/dist/cjs/{resources-1a9c1993.js → resources-d8cb9314.js} +3 -5
  181. package/dist/cjs/{resources-511507b8.js → resources-d8e09445.js} +1 -1
  182. package/dist/cjs/{sortable.esm-037a4c16.js → sortable.esm-7aed4258.js} +1 -1
  183. package/dist/cjs/{utils-ecc37d9b.js → utils-8cc6d606.js} +1 -1
  184. package/dist/collection/components/accordion/accordion.js +1 -1
  185. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  186. package/dist/collection/components/accordion-item/resources.js +1 -1
  187. package/dist/collection/components/action/action.js +1 -1
  188. package/dist/collection/components/action/resources.js +1 -1
  189. package/dist/collection/components/action-bar/action-bar.js +1 -1
  190. package/dist/collection/components/action-bar/resources.js +1 -1
  191. package/dist/collection/components/action-bar/utils.js +1 -1
  192. package/dist/collection/components/action-group/action-group.js +1 -1
  193. package/dist/collection/components/action-group/resources.js +1 -1
  194. package/dist/collection/components/action-menu/action-menu.js +1 -1
  195. package/dist/collection/components/action-menu/resources.js +1 -1
  196. package/dist/collection/components/action-pad/action-pad.js +1 -1
  197. package/dist/collection/components/action-pad/resources.js +1 -1
  198. package/dist/collection/components/alert/alert.js +1 -1
  199. package/dist/collection/components/alert/interfaces.js +1 -1
  200. package/dist/collection/components/alert/resources.js +1 -1
  201. package/dist/collection/components/avatar/avatar.js +1 -1
  202. package/dist/collection/components/avatar/utils.js +1 -1
  203. package/dist/collection/components/block/block.js +3 -3
  204. package/dist/collection/components/block/resources.js +1 -2
  205. package/dist/collection/components/block-section/block-section.js +1 -1
  206. package/dist/collection/components/block-section/resources.js +1 -1
  207. package/dist/collection/components/button/button.js +1 -1
  208. package/dist/collection/components/button/resources.js +1 -1
  209. package/dist/collection/components/card/card.js +1 -1
  210. package/dist/collection/components/card/resources.js +1 -1
  211. package/dist/collection/components/checkbox/checkbox.js +1 -1
  212. package/dist/collection/components/chip/chip.js +1 -1
  213. package/dist/collection/components/chip/resources.js +1 -1
  214. package/dist/collection/components/color-picker/color-picker.js +1 -1
  215. package/dist/collection/components/color-picker/resources.js +1 -1
  216. package/dist/collection/components/color-picker/utils.js +1 -1
  217. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  218. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  219. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  220. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  221. package/dist/collection/components/combobox/combobox.js +1 -1
  222. package/dist/collection/components/combobox/resources.js +1 -1
  223. package/dist/collection/components/combobox/utils.js +1 -1
  224. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  225. package/dist/collection/components/combobox-item/resources.js +1 -1
  226. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  227. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  228. package/dist/collection/components/date-picker/date-picker.js +3 -3
  229. package/dist/collection/components/date-picker/resources.js +1 -2
  230. package/dist/collection/components/date-picker/utils.js +1 -1
  231. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  232. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  233. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  234. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  235. package/dist/collection/components/dropdown/dropdown.js +1 -1
  236. package/dist/collection/components/dropdown/resources.js +1 -1
  237. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  238. package/dist/collection/components/dropdown-group/resources.js +1 -1
  239. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  240. package/dist/collection/components/dropdown-item/resources.js +1 -1
  241. package/dist/collection/components/fab/fab.js +1 -1
  242. package/dist/collection/components/fab/resources.js +1 -1
  243. package/dist/collection/components/filter/filter.js +2 -2
  244. package/dist/collection/components/filter/resources.js +1 -1
  245. package/dist/collection/components/flow/flow.js +1 -1
  246. package/dist/collection/components/flow/resources.js +1 -1
  247. package/dist/collection/components/flow-item/flow-item.js +1 -1
  248. package/dist/collection/components/flow-item/resources.js +1 -1
  249. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  250. package/dist/collection/components/functional/Heading.js +2 -2
  251. package/dist/collection/components/graph/graph.js +1 -1
  252. package/dist/collection/components/graph/util.js +1 -1
  253. package/dist/collection/components/handle/handle.js +1 -1
  254. package/dist/collection/components/handle/resources.js +1 -1
  255. package/dist/collection/components/icon/icon.js +1 -1
  256. package/dist/collection/components/icon/resources.js +1 -1
  257. package/dist/collection/components/icon/utils.js +1 -1
  258. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  259. package/dist/collection/components/inline-editable/resources.js +1 -1
  260. package/dist/collection/components/input/input.js +1 -1
  261. package/dist/collection/components/input/resources.js +1 -1
  262. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  263. package/dist/collection/components/input-date-picker/resources.js +1 -1
  264. package/dist/collection/components/input-message/input-message.js +1 -1
  265. package/dist/collection/components/input-message/interfaces.js +1 -1
  266. package/dist/collection/components/input-number/input-number.js +1 -1
  267. package/dist/collection/components/input-number/resources.js +1 -1
  268. package/dist/collection/components/input-text/input-text.js +1 -1
  269. package/dist/collection/components/input-text/resources.js +1 -1
  270. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  271. package/dist/collection/components/label/label.js +1 -1
  272. package/dist/collection/components/label/resources.js +1 -1
  273. package/dist/collection/components/link/link.js +1 -1
  274. package/dist/collection/components/list/list.js +1 -1
  275. package/dist/collection/components/list/resources.js +1 -1
  276. package/dist/collection/components/list-item/list-item.js +1 -1
  277. package/dist/collection/components/list-item/resources.js +1 -1
  278. package/dist/collection/components/list-item-group/list-item-group.js +2 -3
  279. package/dist/collection/components/list-item-group/resources.js +1 -2
  280. package/dist/collection/components/loader/loader.js +1 -1
  281. package/dist/collection/components/modal/modal.js +15 -28
  282. package/dist/collection/components/modal/resources.js +1 -1
  283. package/dist/collection/components/notice/notice.js +1 -1
  284. package/dist/collection/components/notice/resources.js +1 -1
  285. package/dist/collection/components/option/option.js +1 -1
  286. package/dist/collection/components/option-group/option-group.js +1 -1
  287. package/dist/collection/components/pagination/pagination.js +1 -1
  288. package/dist/collection/components/pagination/resources.js +1 -1
  289. package/dist/collection/components/panel/panel.js +3 -3
  290. package/dist/collection/components/panel/resources.js +1 -2
  291. package/dist/collection/components/pick-list/pick-list.js +100 -2
  292. package/dist/collection/components/pick-list/resources.js +1 -1
  293. package/dist/collection/components/pick-list/shared-list-logic.js +31 -7
  294. package/dist/collection/components/pick-list/shared-list-render.js +3 -3
  295. package/dist/collection/components/pick-list-group/pick-list-group.js +2 -3
  296. package/dist/collection/components/pick-list-group/resources.js +1 -2
  297. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  298. package/dist/collection/components/pick-list-item/resources.js +1 -1
  299. package/dist/collection/components/popover/PopoverManager.js +1 -1
  300. package/dist/collection/components/popover/popover.js +3 -3
  301. package/dist/collection/components/popover/resources.js +1 -2
  302. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  303. package/dist/collection/components/progress/progress.js +1 -1
  304. package/dist/collection/components/radio-button/radio-button.js +1 -1
  305. package/dist/collection/components/radio-button/resources.js +1 -1
  306. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  307. package/dist/collection/components/radio-group/radio-group.js +1 -1
  308. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  309. package/dist/collection/components/radio-group-item/resources.js +1 -1
  310. package/dist/collection/components/rating/rating.js +1 -1
  311. package/dist/collection/components/rating/resources.js +1 -1
  312. package/dist/collection/components/scrim/resources.js +1 -1
  313. package/dist/collection/components/scrim/scrim.js +1 -1
  314. package/dist/collection/components/select/resources.js +1 -1
  315. package/dist/collection/components/select/select.js +1 -1
  316. package/dist/collection/components/shell/resources.js +1 -1
  317. package/dist/collection/components/shell/shell.js +1 -1
  318. package/dist/collection/components/shell-center-row/resources.js +1 -1
  319. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  320. package/dist/collection/components/shell-panel/resources.js +1 -1
  321. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  322. package/dist/collection/components/slider/resources.js +1 -1
  323. package/dist/collection/components/slider/slider.js +1 -1
  324. package/dist/collection/components/sortable-list/resources.js +1 -1
  325. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  326. package/dist/collection/components/split-button/resources.js +1 -1
  327. package/dist/collection/components/split-button/split-button.js +1 -1
  328. package/dist/collection/components/stepper/stepper.js +1 -1
  329. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  330. package/dist/collection/components/switch/switch.js +1 -1
  331. package/dist/collection/components/tab/tab.js +1 -1
  332. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  333. package/dist/collection/components/tab-title/tab-title.js +1 -1
  334. package/dist/collection/components/tabs/resources.js +1 -1
  335. package/dist/collection/components/tabs/tabs.js +1 -1
  336. package/dist/collection/components/tile/resources.js +1 -1
  337. package/dist/collection/components/tile/tile.js +1 -1
  338. package/dist/collection/components/tile-select/resources.js +1 -1
  339. package/dist/collection/components/tile-select/tile-select.js +1 -1
  340. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  341. package/dist/collection/components/time-picker/resources.js +1 -1
  342. package/dist/collection/components/time-picker/time-picker.js +1 -1
  343. package/dist/collection/components/tip/resources.js +1 -3
  344. package/dist/collection/components/tip/tip.js +3 -3
  345. package/dist/collection/components/tip-group/tip-group.js +1 -1
  346. package/dist/collection/components/tip-manager/resources.js +1 -2
  347. package/dist/collection/components/tip-manager/tip-manager.js +3 -3
  348. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  349. package/dist/collection/components/tooltip/resources.js +1 -1
  350. package/dist/collection/components/tooltip/tooltip.js +1 -1
  351. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  352. package/dist/collection/components/tree/interfaces.js +1 -1
  353. package/dist/collection/components/tree/tree.js +1 -1
  354. package/dist/collection/components/tree/utils.js +1 -1
  355. package/dist/collection/components/tree-item/resources.js +1 -1
  356. package/dist/collection/components/tree-item/tree-item.js +1 -1
  357. package/dist/collection/components/value-list/resources.js +1 -1
  358. package/dist/collection/components/value-list/utils.js +1 -1
  359. package/dist/collection/components/value-list/value-list.js +98 -2
  360. package/dist/collection/components/value-list-item/resources.js +1 -1
  361. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  362. package/dist/collection/utils/array.js +1 -1
  363. package/dist/collection/utils/conditionalSlot.js +1 -1
  364. package/dist/collection/utils/config.js +1 -1
  365. package/dist/collection/utils/date.js +1 -1
  366. package/dist/collection/utils/dom.js +1 -1
  367. package/dist/collection/utils/filter.js +1 -1
  368. package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
  369. package/dist/collection/utils/floating-ui.js +1 -1
  370. package/dist/collection/utils/focusTrapComponent.js +53 -0
  371. package/dist/collection/utils/form.js +1 -1
  372. package/dist/collection/utils/globalAttributes.js +1 -1
  373. package/dist/collection/utils/globalScript.js +1 -1
  374. package/dist/collection/utils/guid.js +1 -1
  375. package/dist/collection/utils/interactive.js +1 -1
  376. package/dist/collection/utils/key.js +1 -1
  377. package/dist/collection/utils/label.js +1 -1
  378. package/dist/collection/utils/locale.js +1 -1
  379. package/dist/collection/utils/math.js +1 -1
  380. package/dist/collection/utils/number.js +1 -1
  381. package/dist/collection/utils/observers.js +1 -1
  382. package/dist/collection/utils/openCloseComponent.js +1 -1
  383. package/dist/collection/utils/resources.js +1 -1
  384. package/dist/collection/utils/t9n.js +1 -1
  385. package/dist/collection/utils/theme.js +1 -1
  386. package/dist/collection/utils/time.js +1 -1
  387. package/dist/components/ExpandToggle.js +1 -1
  388. package/dist/components/Heading.js +2 -2
  389. package/dist/components/action-group.js +1 -1
  390. package/dist/components/action-menu.js +1 -1
  391. package/dist/components/action.js +1 -1
  392. package/dist/components/array.js +1 -1
  393. package/dist/components/button.js +2 -2
  394. package/dist/components/calcite-accordion-item.js +1 -1
  395. package/dist/components/calcite-accordion.js +1 -1
  396. package/dist/components/calcite-action-bar.js +1 -1
  397. package/dist/components/calcite-action-group.js +1 -1
  398. package/dist/components/calcite-action-menu.js +1 -1
  399. package/dist/components/calcite-action-pad.js +1 -1
  400. package/dist/components/calcite-action.js +1 -1
  401. package/dist/components/calcite-alert.js +1 -1
  402. package/dist/components/calcite-avatar.js +1 -1
  403. package/dist/components/calcite-block-section.js +1 -1
  404. package/dist/components/calcite-block.js +2 -3
  405. package/dist/components/calcite-button.js +1 -1
  406. package/dist/components/calcite-card.js +1 -1
  407. package/dist/components/calcite-checkbox.js +1 -1
  408. package/dist/components/calcite-chip.js +1 -1
  409. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  410. package/dist/components/calcite-color-picker-swatch.js +1 -1
  411. package/dist/components/calcite-color-picker.js +1 -1
  412. package/dist/components/calcite-combobox-item-group.js +1 -1
  413. package/dist/components/calcite-combobox-item.js +1 -1
  414. package/dist/components/calcite-combobox.js +1 -1
  415. package/dist/components/calcite-date-picker-day.js +1 -1
  416. package/dist/components/calcite-date-picker-month-header.js +1 -1
  417. package/dist/components/calcite-date-picker-month.js +1 -1
  418. package/dist/components/calcite-date-picker.js +1 -1
  419. package/dist/components/calcite-dropdown-group.js +1 -1
  420. package/dist/components/calcite-dropdown-item.js +1 -1
  421. package/dist/components/calcite-dropdown.js +1 -1
  422. package/dist/components/calcite-fab.js +1 -1
  423. package/dist/components/calcite-filter.js +1 -1
  424. package/dist/components/calcite-flow-item.js +1 -1
  425. package/dist/components/calcite-flow.js +1 -1
  426. package/dist/components/calcite-graph.js +1 -1
  427. package/dist/components/calcite-handle.js +1 -1
  428. package/dist/components/calcite-icon.js +1 -1
  429. package/dist/components/calcite-inline-editable.js +1 -1
  430. package/dist/components/calcite-input-date-picker.js +1 -1
  431. package/dist/components/calcite-input-message.js +1 -1
  432. package/dist/components/calcite-input-number.js +1 -1
  433. package/dist/components/calcite-input-text.js +1 -1
  434. package/dist/components/calcite-input-time-picker.js +1 -1
  435. package/dist/components/calcite-input.js +1 -1
  436. package/dist/components/calcite-label.js +1 -1
  437. package/dist/components/calcite-link.js +1 -1
  438. package/dist/components/calcite-list-item-group.js +2 -3
  439. package/dist/components/calcite-list-item.js +1 -1
  440. package/dist/components/calcite-list.js +1 -1
  441. package/dist/components/calcite-loader.js +1 -1
  442. package/dist/components/calcite-modal.js +1275 -128
  443. package/dist/components/calcite-notice.js +1 -1
  444. package/dist/components/calcite-option-group.js +1 -1
  445. package/dist/components/calcite-option.js +1 -1
  446. package/dist/components/calcite-pagination.js +1 -1
  447. package/dist/components/calcite-panel.js +1 -1
  448. package/dist/components/calcite-pick-list-group.js +3 -3
  449. package/dist/components/calcite-pick-list-item.js +1 -1
  450. package/dist/components/calcite-pick-list.js +25 -2
  451. package/dist/components/calcite-popover-manager.js +1 -1
  452. package/dist/components/calcite-popover.js +1 -1
  453. package/dist/components/calcite-progress.js +1 -1
  454. package/dist/components/calcite-radio-button-group.js +1 -1
  455. package/dist/components/calcite-radio-button.js +1 -1
  456. package/dist/components/calcite-radio-group-item.js +1 -1
  457. package/dist/components/calcite-radio-group.js +1 -1
  458. package/dist/components/calcite-rating.js +1 -1
  459. package/dist/components/calcite-scrim.js +1 -1
  460. package/dist/components/calcite-select.js +1 -1
  461. package/dist/components/calcite-shell-center-row.js +1 -1
  462. package/dist/components/calcite-shell-panel.js +1 -1
  463. package/dist/components/calcite-shell.js +1 -1
  464. package/dist/components/calcite-slider.js +2 -2
  465. package/dist/components/calcite-sortable-list.js +1 -1
  466. package/dist/components/calcite-split-button.js +1 -1
  467. package/dist/components/calcite-stepper-item.js +1 -1
  468. package/dist/components/calcite-stepper.js +1 -1
  469. package/dist/components/calcite-switch.js +1 -1
  470. package/dist/components/calcite-tab-nav.js +1 -1
  471. package/dist/components/calcite-tab-title.js +1 -1
  472. package/dist/components/calcite-tab.js +1 -1
  473. package/dist/components/calcite-tabs.js +1 -1
  474. package/dist/components/calcite-tile-select-group.js +1 -1
  475. package/dist/components/calcite-tile-select.js +1 -1
  476. package/dist/components/calcite-tile.js +1 -1
  477. package/dist/components/calcite-time-picker.js +1 -1
  478. package/dist/components/calcite-tip-group.js +1 -1
  479. package/dist/components/calcite-tip-manager.js +28 -3
  480. package/dist/components/calcite-tip.js +2 -4
  481. package/dist/components/calcite-tooltip-manager.js +1 -1
  482. package/dist/components/calcite-tooltip.js +1 -1
  483. package/dist/components/calcite-tree-item.js +2 -2
  484. package/dist/components/calcite-tree.js +2 -2
  485. package/dist/components/calcite-value-list-item.js +1 -1
  486. package/dist/components/calcite-value-list.js +23 -2
  487. package/dist/components/checkbox.js +1 -1
  488. package/dist/components/chip.js +1 -1
  489. package/dist/components/color-picker-hex-input.js +1 -1
  490. package/dist/components/color-picker-swatch.js +1 -1
  491. package/dist/components/conditionalSlot.js +1 -1
  492. package/dist/components/date-picker-day.js +2 -2
  493. package/dist/components/date-picker-month-header.js +2 -2
  494. package/dist/components/date-picker-month.js +1 -1
  495. package/dist/components/date-picker.js +2 -3
  496. package/dist/components/date.js +1 -1
  497. package/dist/components/debounce.js +1 -1
  498. package/dist/components/dom.js +2 -2
  499. package/dist/components/dropdown.js +1 -1
  500. package/dist/components/filter.js +2 -2
  501. package/dist/components/filter2.js +1 -1
  502. package/dist/components/floating-ui.js +2 -2
  503. package/dist/components/form.js +2 -2
  504. package/dist/components/graph.js +1 -1
  505. package/dist/components/guid.js +1 -1
  506. package/dist/components/handle.js +1 -1
  507. package/dist/components/icon.js +1 -1
  508. package/dist/components/index.js +1 -1
  509. package/dist/components/input.js +1 -1
  510. package/dist/components/interactive.js +1 -1
  511. package/dist/components/interfaces.js +1 -1
  512. package/dist/components/interfaces2.js +1 -1
  513. package/dist/components/key.js +1 -1
  514. package/dist/components/label.js +1 -1
  515. package/dist/components/label2.js +2 -2
  516. package/dist/components/link.js +1 -1
  517. package/dist/components/loader.js +1 -1
  518. package/dist/components/locale.js +2 -2
  519. package/dist/components/math.js +1 -1
  520. package/dist/components/nonChromiumPlatformUtils.js +1 -1
  521. package/dist/components/observers.js +1 -1
  522. package/dist/components/openCloseComponent.js +1 -1
  523. package/dist/components/panel.js +2 -3
  524. package/dist/components/pick-list-item.js +1 -1
  525. package/dist/components/popover.js +2 -3
  526. package/dist/components/progress.js +1 -1
  527. package/dist/components/resources.js +1 -1
  528. package/dist/components/resources2.js +2 -3
  529. package/dist/components/scrim.js +1 -1
  530. package/dist/components/shared-list-render.js +34 -10
  531. package/dist/components/sortable.esm.js +1 -1
  532. package/dist/components/switch.js +1 -1
  533. package/dist/components/tab-nav.js +2 -2
  534. package/dist/components/tab-title.js +1 -1
  535. package/dist/components/tab.js +1 -1
  536. package/dist/components/tabs.js +1 -1
  537. package/dist/components/tile.js +1 -1
  538. package/dist/components/time-picker.js +1 -1
  539. package/dist/components/tooltip.js +1 -1
  540. package/dist/components/utils.js +1 -1
  541. package/dist/components/utils2.js +1 -1
  542. package/dist/esm/{ExpandToggle-8d1a3315.js → ExpandToggle-de7eb89e.js} +5 -5
  543. package/dist/esm/{Heading-fdaf2441.js → Heading-ce81383b.js} +3 -3
  544. package/dist/esm/{app-globals-62f1ea5d.js → app-globals-f6046b49.js} +2 -2
  545. package/dist/esm/{array-a3f4690d.js → array-93ad10ae.js} +1 -1
  546. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  547. package/dist/esm/calcite-action-bar.entry.js +11 -11
  548. package/dist/esm/calcite-action-group.entry.js +9 -9
  549. package/dist/esm/calcite-action-menu.entry.js +8 -8
  550. package/dist/esm/calcite-action-pad.entry.js +10 -10
  551. package/dist/esm/calcite-action.entry.js +7 -7
  552. package/dist/esm/calcite-alert.entry.js +10 -10
  553. package/dist/esm/calcite-avatar.entry.js +6 -6
  554. package/dist/esm/calcite-block_2.entry.js +11 -12
  555. package/dist/esm/calcite-button.entry.js +9 -9
  556. package/dist/esm/calcite-card.entry.js +7 -7
  557. package/dist/esm/calcite-checkbox.entry.js +9 -9
  558. package/dist/esm/calcite-chip.entry.js +7 -7
  559. package/dist/esm/calcite-color-picker_3.entry.js +10 -10
  560. package/dist/esm/calcite-combobox_3.entry.js +14 -14
  561. package/dist/esm/calcite-date-picker_4.entry.js +12 -12
  562. package/dist/esm/calcite-dropdown_3.entry.js +11 -11
  563. package/dist/esm/calcite-fab.entry.js +6 -6
  564. package/dist/esm/calcite-filter.entry.js +9 -9
  565. package/dist/esm/calcite-flow-item.entry.js +7 -7
  566. package/dist/esm/calcite-flow.entry.js +3 -3
  567. package/dist/esm/calcite-graph_2.entry.js +12 -12
  568. package/dist/esm/calcite-handle.entry.js +5 -5
  569. package/dist/esm/calcite-icon.entry.js +6 -6
  570. package/dist/esm/calcite-inline-editable.entry.js +8 -8
  571. package/dist/esm/calcite-input-date-picker.entry.js +15 -15
  572. package/dist/esm/calcite-input-message.entry.js +5 -5
  573. package/dist/esm/calcite-input-number.entry.js +12 -12
  574. package/dist/esm/calcite-input-text.entry.js +9 -9
  575. package/dist/esm/calcite-input-time-picker_2.entry.js +11 -11
  576. package/dist/esm/calcite-input.entry.js +12 -12
  577. package/dist/esm/calcite-label.entry.js +6 -6
  578. package/dist/esm/calcite-link.entry.js +6 -6
  579. package/dist/esm/calcite-list_3.entry.js +10 -11
  580. package/dist/esm/calcite-loader.entry.js +3 -3
  581. package/dist/esm/calcite-modal.entry.js +1281 -134
  582. package/dist/esm/calcite-notice.entry.js +8 -8
  583. package/dist/esm/calcite-option_3.entry.js +9 -9
  584. package/dist/esm/calcite-pagination.entry.js +8 -8
  585. package/dist/esm/calcite-panel.entry.js +11 -11
  586. package/dist/esm/calcite-pick-list_3.entry.js +33 -13
  587. package/dist/esm/calcite-popover_2.entry.js +12 -13
  588. package/dist/esm/calcite-progress.entry.js +2 -2
  589. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  590. package/dist/esm/calcite-radio-button.entry.js +9 -9
  591. package/dist/esm/calcite-radio-group_2.entry.js +8 -8
  592. package/dist/esm/calcite-rating.entry.js +9 -9
  593. package/dist/esm/calcite-scrim.entry.js +2 -2
  594. package/dist/esm/calcite-shell_3.entry.js +8 -8
  595. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  596. package/dist/esm/calcite-split-button.entry.js +3 -3
  597. package/dist/esm/calcite-stepper_2.entry.js +9 -9
  598. package/dist/esm/calcite-switch.entry.js +9 -9
  599. package/dist/esm/calcite-tab_4.entry.js +7 -7
  600. package/dist/esm/calcite-tile-select_2.entry.js +4 -4
  601. package/dist/esm/calcite-tile.entry.js +8 -8
  602. package/dist/esm/calcite-tip_3.entry.js +54 -56
  603. package/dist/esm/calcite-tooltip_2.entry.js +7 -7
  604. package/dist/esm/calcite-tree_2.entry.js +8 -8
  605. package/dist/esm/calcite-value-list_2.entry.js +30 -12
  606. package/dist/esm/calcite.js +5 -5
  607. package/dist/esm/{conditionalSlot-7a623ab3.js → conditionalSlot-7cbade1a.js} +3 -3
  608. package/dist/esm/{debounce-65d04f40.js → debounce-3c83dd2d.js} +1 -1
  609. package/dist/esm/{dom-6ced0696.js → dom-d49f0f97.js} +4 -4
  610. package/dist/esm/{filter-a94d668f.js → filter-677a7c1c.js} +2 -2
  611. package/dist/esm/{floating-ui-88f3cab2.js → floating-ui-a29cecf4.js} +4 -4
  612. package/dist/esm/{form-796899b4.js → form-274603f8.js} +3 -3
  613. package/dist/esm/{guid-4e7e998d.js → guid-4f56580f.js} +1 -1
  614. package/dist/esm/{index-ee2154b8.js → index-39e12ba3.js} +1 -1
  615. package/dist/esm/index.js +1 -1
  616. package/dist/esm/{interactive-c01b3adc.js → interactive-0aa06ff9.js} +1 -1
  617. package/dist/esm/{interfaces-6e1adc71.js → interfaces-171ceb04.js} +1 -1
  618. package/dist/esm/{key-29710632.js → key-0dc0bbf3.js} +1 -1
  619. package/dist/esm/{label-d97fd95f.js → label-c2d65977.js} +2 -2
  620. package/dist/esm/loader.js +5 -5
  621. package/dist/esm/{locale-9344d29f.js → locale-67e8291a.js} +4 -4
  622. package/dist/esm/{math-43507cd0.js → math-6a19492f.js} +1 -1
  623. package/dist/esm/{nonChromiumPlatformUtils-733b22ab.js → nonChromiumPlatformUtils-db4caf57.js} +6 -6
  624. package/dist/esm/{observers-3e969148.js → observers-74d18f51.js} +1 -1
  625. package/dist/esm/{openCloseComponent-2c95053e.js → openCloseComponent-733f7ffb.js} +1 -1
  626. package/dist/esm/{resources-f36e2798.js → resources-663172e7.js} +38 -15
  627. package/dist/esm/{resources-bc4bdc72.js → resources-8da94c50.js} +4 -5
  628. package/dist/esm/{resources-78c5b4d1.js → resources-a12626f7.js} +1 -1
  629. package/dist/esm/{resources-a8c464a5.js → resources-cc0585cf.js} +1 -1
  630. package/dist/esm/{resources-2c83579b.js → resources-d2959b68.js} +2 -3
  631. package/dist/esm/{resources-07ad5aa9.js → resources-fa77b6f3.js} +1 -1
  632. package/dist/esm/{sortable.esm-a5c12724.js → sortable.esm-a150fbaf.js} +1 -1
  633. package/dist/esm/{utils-e8657244.js → utils-a448267c.js} +1 -1
  634. package/dist/extras/docs-json.json +131 -1
  635. package/dist/loader/cdn.js +1 -1
  636. package/dist/loader/index.cjs.js +1 -1
  637. package/dist/loader/index.es2017.js +1 -1
  638. package/dist/loader/index.js +1 -1
  639. package/dist/types/components/block/resources.d.ts +0 -1
  640. package/dist/types/components/date-picker/resources.d.ts +0 -1
  641. package/dist/types/components/functional/Heading.d.ts +1 -1
  642. package/dist/types/components/list-item-group/resources.d.ts +0 -1
  643. package/dist/types/components/modal/modal.d.ts +4 -4
  644. package/dist/types/components/panel/resources.d.ts +0 -1
  645. package/dist/types/components/pick-list/pick-list.d.ts +24 -0
  646. package/dist/types/components/pick-list/shared-list-logic.d.ts +4 -1
  647. package/dist/types/components/pick-list/shared-list-render.d.ts +4 -1
  648. package/dist/types/components/pick-list-group/resources.d.ts +0 -1
  649. package/dist/types/components/popover/resources.d.ts +0 -1
  650. package/dist/types/components/tip/resources.d.ts +0 -2
  651. package/dist/types/components/tip-manager/resources.d.ts +0 -1
  652. package/dist/types/components/value-list/value-list.d.ts +23 -0
  653. package/dist/types/components.d.ts +65 -1
  654. package/dist/types/preact.d.ts +4 -2
  655. package/dist/types/utils/focusTrapComponent.d.ts +33 -0
  656. package/hydrate/index.js +1410 -203
  657. package/package.json +2 -2
  658. package/dist/calcite/p-079e3c1e.js +0 -6
  659. package/dist/calcite/p-1993b247.js +0 -6
  660. package/dist/calcite/p-1a291a99.entry.js +0 -6
  661. package/dist/calcite/p-23f31b98.entry.js +0 -6
  662. package/dist/calcite/p-3a4f8c9a.entry.js +0 -6
  663. package/dist/calcite/p-5d9f0c37.entry.js +0 -6
  664. package/dist/calcite/p-8557fe8d.entry.js +0 -6
  665. package/dist/calcite/p-86c3dd63.entry.js +0 -6
  666. package/dist/calcite/p-8afa3d3c.js +0 -6
  667. package/dist/calcite/p-8d81edd4.entry.js +0 -6
  668. package/dist/calcite/p-9460a0c0.js +0 -6
  669. package/dist/calcite/p-9c6f7a63.entry.js +0 -6
  670. package/dist/calcite/p-a5fed565.entry.js +0 -6
  671. package/dist/calcite/p-e1084c73.entry.js +0 -6
  672. package/dist/components/resources3.js +0 -33
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.631
4
+ * v1.0.0-next.632
5
5
  */
6
6
  'use strict';
7
7
 
@@ -6021,7 +6021,7 @@ function getElementProp(el, prop, fallbackValue) {
6021
6021
  const closest = el.closest(selector);
6022
6022
  return closest ? closest.getAttribute(prop) : fallbackValue;
6023
6023
  }
6024
- function getRootNode(el) {
6024
+ function getRootNode$1(el) {
6025
6025
  return el.getRootNode();
6026
6026
  }
6027
6027
  function getHost(root) {
@@ -6048,7 +6048,7 @@ function queryElementRoots(element, { selector, id }) {
6048
6048
  if (el.assignedSlot) {
6049
6049
  el = el.assignedSlot;
6050
6050
  }
6051
- const rootNode = getRootNode(el);
6051
+ const rootNode = getRootNode$1(el);
6052
6052
  const found = id
6053
6053
  ? "getElementById" in rootNode
6054
6054
  ? /*
@@ -6068,7 +6068,7 @@ function queryElementRoots(element, { selector, id }) {
6068
6068
  function closestElementCrossShadowBoundary(element, selector) {
6069
6069
  // based on https://stackoverflow.com/q/54520554/194216
6070
6070
  function closestFrom(el) {
6071
- return el ? el.closest(selector) || closestFrom(getHost(getRootNode(el))) : null;
6071
+ return el ? el.closest(selector) || closestFrom(getHost(getRootNode$1(el))) : null;
6072
6072
  }
6073
6073
  return closestFrom(element);
6074
6074
  }
@@ -9765,13 +9765,12 @@ const ICONS$d = {
9765
9765
  invalid: "exclamation-mark-triangle",
9766
9766
  refresh: "refresh"
9767
9767
  };
9768
- const HEADING_LEVEL$7 = 4;
9769
9768
 
9770
9769
  function constrainHeadingLevel(level) {
9771
9770
  return Math.min(Math.max(Math.ceil(level), 1), 6);
9772
9771
  }
9773
9772
  const Heading = (props, children) => {
9774
- const HeadingTag = `h${props.level}`;
9773
+ const HeadingTag = props.level ? `h${props.level}` : "div";
9775
9774
  delete props.level;
9776
9775
  return hAsync(HeadingTag, { ...props }, children);
9777
9776
  };
@@ -9898,7 +9897,7 @@ class Block {
9898
9897
  }
9899
9898
  renderTitle() {
9900
9899
  const { heading, headingLevel, summary, description } = this;
9901
- return heading || summary || description ? (hAsync("div", { class: CSS$P.title }, hAsync(Heading, { class: CSS$P.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary || description ? (hAsync("div", { class: CSS$P.description }, summary || description)) : null)) : null;
9900
+ return heading || summary || description ? (hAsync("div", { class: CSS$P.title }, hAsync(Heading, { class: CSS$P.heading, level: headingLevel }, heading), summary || description ? (hAsync("div", { class: CSS$P.description }, summary || description)) : null)) : null;
9902
9901
  }
9903
9902
  render() {
9904
9903
  const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
@@ -17475,7 +17474,6 @@ function getValueAsDateRange(value) {
17475
17474
  return value.map((v, index) => dateFromISO(v, index === 1));
17476
17475
  }
17477
17476
 
17478
- const HEADING_LEVEL$6 = 2;
17479
17477
  const TEXT$i = {
17480
17478
  nextMonth: "Next month",
17481
17479
  prevMonth: "Previous month",
@@ -17838,7 +17836,7 @@ class DatePicker {
17838
17836
  */
17839
17837
  renderCalendar(activeDate, maxDate, minDate, date, endDate) {
17840
17838
  return (this.localeData && [
17841
- hAsync("calcite-date-picker-month-header", { activeDate: activeDate, headingLevel: this.headingLevel || HEADING_LEVEL$6, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerSelect: this.monthHeaderSelectChange, scale: this.scale, selectedDate: this.activeRange === "end" ? endDate : date || new Date() }),
17839
+ hAsync("calcite-date-picker-month-header", { activeDate: activeDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerSelect: this.monthHeaderSelectChange, scale: this.scale, selectedDate: this.activeRange === "end" ? endDate : date || new Date() }),
17842
17840
  hAsync("calcite-date-picker-month", { activeDate: activeDate, endDate: this.range ? endDate : undefined, hoverRange: this.hoverRange, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerActiveDateChange: this.monthActiveDateChange, onCalciteDatePickerSelect: this.monthDateChange, onCalciteInternalDatePickerHover: this.monthHoverChange, onCalciteInternalDatePickerMouseOut: this.monthMouseOutChange, scale: this.scale, selectedDate: this.activeRange === "end" ? endDate : date, startDate: this.range ? date : undefined })
17843
17841
  ]);
17844
17842
  }
@@ -19524,7 +19522,7 @@ class Filter {
19524
19522
  //
19525
19523
  //--------------------------------------------------------------------------
19526
19524
  componentWillLoad() {
19527
- this.filter(this.value);
19525
+ this.updateFiltered(filter(this.items, this.value));
19528
19526
  }
19529
19527
  // --------------------------------------------------------------------------
19530
19528
  //
@@ -19762,7 +19760,6 @@ const TEXT$f = {
19762
19760
  open: "Open",
19763
19761
  options: "Options"
19764
19762
  };
19765
- const HEADING_LEVEL$5 = 3;
19766
19763
 
19767
19764
  const flowItemCss = "@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-flow-item: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-flow-item{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-flow-item{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-flow-item{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-flow-item{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-flow-item{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-flow-item:root{--calcite-internal-duration-factor:0.01}}/*!@:host*/.sc-calcite-flow-item-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-flow-item-h *.sc-calcite-flow-item{box-sizing:border-box}/*!@:root*/.sc-calcite-flow-item:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-flow-item-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-flow-item-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-flow-item-h{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-flow-item-h[disabled] .sc-calcite-flow-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-flow-item-h [calcite-hydrated][disabled].sc-calcite-flow-item{opacity:1}/*!@.back-button*/.back-button.sc-calcite-flow-item{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}";
19768
19765
 
@@ -23923,7 +23920,6 @@ const CSS$o = {
23923
23920
  heading: "heading",
23924
23921
  container: "container"
23925
23922
  };
23926
- const HEADING_LEVEL$4 = 3;
23927
23923
 
23928
23924
  const listItemGroupCss = "@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-list-item-group: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-list-item-group{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-list-item-group{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-list-item-group{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-list-item-group{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-list-item-group{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-list-item-group:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-list-item-group:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-group-h{display:none}/*!@:host*/.sc-calcite-list-item-group-h{display:flex;flex-direction:column}/*!@.heading*/.heading.sc-calcite-list-item-group{margin:0px;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}/*!@.container*/.container.sc-calcite-list-item-group{display:flex;inline-size:100%;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}/*!@::slotted(calcite-list-item-group)*/.sc-calcite-list-item-group-s>calcite-list-item-group{padding-inline-start:0.5rem}";
23929
23925
 
@@ -23944,7 +23940,7 @@ class ListItemGroup {
23944
23940
  const { el, heading, headingLevel } = this;
23945
23941
  const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
23946
23942
  const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
23947
- const level = headingLevel || relativeLevel || HEADING_LEVEL$4;
23943
+ const level = headingLevel || relativeLevel;
23948
23944
  return (hAsync(Host, null, heading ? (hAsync(Heading, { class: CSS$o.heading, level: level }, heading)) : null, hAsync("div", { class: CSS$o.container, role: "group" }, hAsync("slot", null))));
23949
23945
  }
23950
23946
  get el() { return getElement(this); }
@@ -24061,109 +24057,6 @@ class Loader {
24061
24057
  }; }
24062
24058
  }
24063
24059
 
24064
- /**
24065
- * Traverses the slots of the open shadowroots and returns all children matching the query.
24066
- * @param {ShadowRoot | HTMLElement} root
24067
- * @param skipNode
24068
- * @param isMatch
24069
- * @param {number} maxDepth
24070
- * @param {number} depth
24071
- * @returns {HTMLElement[]}
24072
- */
24073
- function queryShadowRoot(root, skipNode, isMatch, maxDepth = 20, depth = 0) {
24074
- let matches = [];
24075
- // If the depth is above the max depth, abort the searching here.
24076
- if (depth >= maxDepth) {
24077
- return matches;
24078
- }
24079
- // Traverses a slot element
24080
- const traverseSlot = ($slot) => {
24081
- // Only check nodes that are of the type Node.ELEMENT_NODE
24082
- // Read more here https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
24083
- const assignedNodes = $slot.assignedNodes().filter(node => node.nodeType === 1);
24084
- if (assignedNodes.length > 0) {
24085
- return queryShadowRoot(assignedNodes[0].parentElement, skipNode, isMatch, maxDepth, depth + 1);
24086
- }
24087
- return [];
24088
- };
24089
- // Go through each child and continue the traversing if necessary
24090
- // Even though the typing says that children can't be undefined, Edge 15 sometimes gives an undefined value.
24091
- // Therefore we fallback to an empty array if it is undefined.
24092
- const children = Array.from(root.children || []);
24093
- for (const $child of children) {
24094
- // Check if the node and its descendants should be skipped
24095
- if (skipNode($child)) {
24096
- continue;
24097
- }
24098
- // If the child matches we always add it
24099
- if (isMatch($child)) {
24100
- matches.push($child);
24101
- }
24102
- if ($child.shadowRoot != null) {
24103
- matches.push(...queryShadowRoot($child.shadowRoot, skipNode, isMatch, maxDepth, depth + 1));
24104
- }
24105
- else if ($child.tagName === "SLOT") {
24106
- matches.push(...traverseSlot($child));
24107
- }
24108
- else {
24109
- matches.push(...queryShadowRoot($child, skipNode, isMatch, maxDepth, depth + 1));
24110
- }
24111
- }
24112
- return matches;
24113
- }
24114
-
24115
- /**
24116
- * Returns whether the element is hidden.
24117
- * @param $elem
24118
- */
24119
- function isHidden($elem) {
24120
- return $elem.hasAttribute("hidden")
24121
- || ($elem.hasAttribute("aria-hidden") && $elem.getAttribute("aria-hidden") !== "false")
24122
- // A quick and dirty way to check whether the element is hidden.
24123
- // For a more fine-grained check we could use "window.getComputedStyle" but we don't because of bad performance.
24124
- // If the element has visibility set to "hidden" or "collapse", display set to "none" or opacity set to "0" through CSS
24125
- // we won't be able to catch it here. We accept it due to the huge performance benefits.
24126
- || $elem.style.display === `none`
24127
- || $elem.style.opacity === `0`
24128
- || $elem.style.visibility === `hidden`
24129
- || $elem.style.visibility === `collapse`;
24130
- // If offsetParent is null we can assume that the element is hidden
24131
- // https://stackoverflow.com/questions/306305/what-would-make-offsetparent-null
24132
- //|| $elem.offsetParent == null;
24133
- }
24134
- /**
24135
- * Returns whether the element is disabled.
24136
- * @param $elem
24137
- */
24138
- function isDisabled($elem) {
24139
- return $elem.hasAttribute("disabled")
24140
- || ($elem.hasAttribute("aria-disabled") && $elem.getAttribute("aria-disabled") !== "false");
24141
- }
24142
- /**
24143
- * Determines whether an element is focusable.
24144
- * Read more here: https://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus/1600194#1600194
24145
- * Or here: https://stackoverflow.com/questions/18261595/how-to-check-if-a-dom-element-is-focusable
24146
- * @param $elem
24147
- */
24148
- function isFocusable($elem) {
24149
- // Discard elements that are removed from the tab order.
24150
- if ($elem.getAttribute("tabindex") === "-1" || isHidden($elem) || isDisabled($elem)) {
24151
- return false;
24152
- }
24153
- return (
24154
- // At this point we know that the element can have focus (eg. won't be -1) if the tabindex attribute exists
24155
- $elem.hasAttribute("tabindex")
24156
- // Anchor tags or area tags with a href set
24157
- || ($elem instanceof HTMLAnchorElement || $elem instanceof HTMLAreaElement) && $elem.hasAttribute("href")
24158
- // Form elements which are not disabled
24159
- || ($elem instanceof HTMLButtonElement
24160
- || $elem instanceof HTMLInputElement
24161
- || $elem instanceof HTMLTextAreaElement
24162
- || $elem instanceof HTMLSelectElement)
24163
- // IFrames
24164
- || $elem instanceof HTMLIFrameElement);
24165
- }
24166
-
24167
24060
  const CSS$n = {
24168
24061
  modal: "modal",
24169
24062
  modalOpen: "modal--open",
@@ -24197,14 +24090,1270 @@ const TEXT$a = {
24197
24090
  close: "Close"
24198
24091
  };
24199
24092
 
24200
- 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}}";
24093
+ /*!
24094
+ * tabbable 6.0.1
24095
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
24096
+ */
24097
+ var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
24098
+ var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
24099
+ var NoElement = typeof Element === 'undefined';
24100
+ var matches$1 = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
24101
+ var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
24102
+ return element.getRootNode();
24103
+ } : function (element) {
24104
+ return element.ownerDocument;
24105
+ };
24106
+
24107
+ /**
24108
+ * @param {Element} el container to check in
24109
+ * @param {boolean} includeContainer add container to check
24110
+ * @param {(node: Element) => boolean} filter filter candidates
24111
+ * @returns {Element[]}
24112
+ */
24113
+ var getCandidates = function getCandidates(el, includeContainer, filter) {
24114
+ var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
24115
+ if (includeContainer && matches$1.call(el, candidateSelector)) {
24116
+ candidates.unshift(el);
24117
+ }
24118
+ candidates = candidates.filter(filter);
24119
+ return candidates;
24120
+ };
24121
+
24122
+ /**
24123
+ * @callback GetShadowRoot
24124
+ * @param {Element} element to check for shadow root
24125
+ * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
24126
+ */
24127
+
24128
+ /**
24129
+ * @callback ShadowRootFilter
24130
+ * @param {Element} shadowHostNode the element which contains shadow content
24131
+ * @returns {boolean} true if a shadow root could potentially contain valid candidates.
24132
+ */
24133
+
24134
+ /**
24135
+ * @typedef {Object} CandidateScope
24136
+ * @property {Element} scopeParent contains inner candidates
24137
+ * @property {Element[]} candidates list of candidates found in the scope parent
24138
+ */
24139
+
24140
+ /**
24141
+ * @typedef {Object} IterativeOptions
24142
+ * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
24143
+ * if a function, implies shadow support is enabled and either returns the shadow root of an element
24144
+ * or a boolean stating if it has an undisclosed shadow root
24145
+ * @property {(node: Element) => boolean} filter filter candidates
24146
+ * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
24147
+ * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
24148
+ */
24149
+
24150
+ /**
24151
+ * @param {Element[]} elements list of element containers to match candidates from
24152
+ * @param {boolean} includeContainer add container list to check
24153
+ * @param {IterativeOptions} options
24154
+ * @returns {Array.<Element|CandidateScope>}
24155
+ */
24156
+ var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
24157
+ var candidates = [];
24158
+ var elementsToCheck = Array.from(elements);
24159
+ while (elementsToCheck.length) {
24160
+ var element = elementsToCheck.shift();
24161
+ if (element.tagName === 'SLOT') {
24162
+ // add shadow dom slot scope (slot itself cannot be focusable)
24163
+ var assigned = element.assignedElements();
24164
+ var content = assigned.length ? assigned : element.children;
24165
+ var nestedCandidates = getCandidatesIteratively(content, true, options);
24166
+ if (options.flatten) {
24167
+ candidates.push.apply(candidates, nestedCandidates);
24168
+ } else {
24169
+ candidates.push({
24170
+ scopeParent: element,
24171
+ candidates: nestedCandidates
24172
+ });
24173
+ }
24174
+ } else {
24175
+ // check candidate element
24176
+ var validCandidate = matches$1.call(element, candidateSelector);
24177
+ if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
24178
+ candidates.push(element);
24179
+ }
24180
+
24181
+ // iterate over shadow content if possible
24182
+ var shadowRoot = element.shadowRoot ||
24183
+ // check for an undisclosed shadow
24184
+ typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
24185
+ var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);
24186
+ if (shadowRoot && validShadowRoot) {
24187
+ // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
24188
+ // shadow exists, so look at light dom children as fallback BUT create a scope for any
24189
+ // child candidates found because they're likely slotted elements (elements that are
24190
+ // children of the web component element (which has the shadow), in the light dom, but
24191
+ // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
24192
+ // _after_ we return from this recursive call
24193
+ var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
24194
+ if (options.flatten) {
24195
+ candidates.push.apply(candidates, _nestedCandidates);
24196
+ } else {
24197
+ candidates.push({
24198
+ scopeParent: element,
24199
+ candidates: _nestedCandidates
24200
+ });
24201
+ }
24202
+ } else {
24203
+ // there's not shadow so just dig into the element's (light dom) children
24204
+ // __without__ giving the element special scope treatment
24205
+ elementsToCheck.unshift.apply(elementsToCheck, element.children);
24206
+ }
24207
+ }
24208
+ }
24209
+ return candidates;
24210
+ };
24211
+ var getTabindex = function getTabindex(node, isScope) {
24212
+ if (node.tabIndex < 0) {
24213
+ // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
24214
+ // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
24215
+ // yet they are still part of the regular tab order; in FF, they get a default
24216
+ // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
24217
+ // order, consider their tab index to be 0.
24218
+ // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
24219
+ // so if they don't have a tabindex attribute specifically set, assume it's 0.
24220
+ //
24221
+ // isScope is positive for custom element with shadow root or slot that by default
24222
+ // have tabIndex -1, but need to be sorted by document order in order for their
24223
+ // content to be inserted in the correct position
24224
+ if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
24225
+ return 0;
24226
+ }
24227
+ }
24228
+ return node.tabIndex;
24229
+ };
24230
+ var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
24231
+ return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
24232
+ };
24233
+ var isInput = function isInput(node) {
24234
+ return node.tagName === 'INPUT';
24235
+ };
24236
+ var isHiddenInput = function isHiddenInput(node) {
24237
+ return isInput(node) && node.type === 'hidden';
24238
+ };
24239
+ var isDetailsWithSummary = function isDetailsWithSummary(node) {
24240
+ var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
24241
+ return child.tagName === 'SUMMARY';
24242
+ });
24243
+ return r;
24244
+ };
24245
+ var getCheckedRadio = function getCheckedRadio(nodes, form) {
24246
+ for (var i = 0; i < nodes.length; i++) {
24247
+ if (nodes[i].checked && nodes[i].form === form) {
24248
+ return nodes[i];
24249
+ }
24250
+ }
24251
+ };
24252
+ var isTabbableRadio = function isTabbableRadio(node) {
24253
+ if (!node.name) {
24254
+ return true;
24255
+ }
24256
+ var radioScope = node.form || getRootNode(node);
24257
+ var queryRadios = function queryRadios(name) {
24258
+ return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
24259
+ };
24260
+ var radioSet;
24261
+ if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
24262
+ radioSet = queryRadios(window.CSS.escape(node.name));
24263
+ } else {
24264
+ try {
24265
+ radioSet = queryRadios(node.name);
24266
+ } catch (err) {
24267
+ // eslint-disable-next-line no-console
24268
+ console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
24269
+ return false;
24270
+ }
24271
+ }
24272
+ var checked = getCheckedRadio(radioSet, node.form);
24273
+ return !checked || checked === node;
24274
+ };
24275
+ var isRadio = function isRadio(node) {
24276
+ return isInput(node) && node.type === 'radio';
24277
+ };
24278
+ var isNonTabbableRadio = function isNonTabbableRadio(node) {
24279
+ return isRadio(node) && !isTabbableRadio(node);
24280
+ };
24281
+
24282
+ // determines if a node is ultimately attached to the window's document
24283
+ var isNodeAttached = function isNodeAttached(node) {
24284
+ var _nodeRootHost;
24285
+ // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
24286
+ // (but NOT _the_ document; see second 'If' comment below for more).
24287
+ // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
24288
+ // is attached, and the one we need to check if it's in the document or not (because the
24289
+ // shadow, and all nodes it contains, is never considered in the document since shadows
24290
+ // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
24291
+ // is hidden, or is not in the document itself but is detached, it will affect the shadow's
24292
+ // visibility, including all the nodes it contains). The host could be any normal node,
24293
+ // or a custom element (i.e. web component). Either way, that's the one that is considered
24294
+ // part of the document, not the shadow root, nor any of its children (i.e. the node being
24295
+ // tested).
24296
+ // To further complicate things, we have to look all the way up until we find a shadow HOST
24297
+ // that is attached (or find none) because the node might be in nested shadows...
24298
+ // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
24299
+ // document (per the docs) and while it's a Document-type object, that document does not
24300
+ // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
24301
+ // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
24302
+ // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
24303
+ // node is actually detached.
24304
+ var nodeRootHost = getRootNode(node).host;
24305
+ var attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && _nodeRootHost.ownerDocument.contains(nodeRootHost) || node.ownerDocument.contains(node));
24306
+ while (!attached && nodeRootHost) {
24307
+ var _nodeRootHost2;
24308
+ // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
24309
+ // which means we need to get the host's host and check if that parent host is contained
24310
+ // in (i.e. attached to) the document
24311
+ nodeRootHost = getRootNode(nodeRootHost).host;
24312
+ attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && _nodeRootHost2.ownerDocument.contains(nodeRootHost));
24313
+ }
24314
+ return attached;
24315
+ };
24316
+ var isZeroArea = function isZeroArea(node) {
24317
+ var _node$getBoundingClie = node.getBoundingClientRect(),
24318
+ width = _node$getBoundingClie.width,
24319
+ height = _node$getBoundingClie.height;
24320
+ return width === 0 && height === 0;
24321
+ };
24322
+ var isHidden = function isHidden(node, _ref) {
24323
+ var displayCheck = _ref.displayCheck,
24324
+ getShadowRoot = _ref.getShadowRoot;
24325
+ // NOTE: visibility will be `undefined` if node is detached from the document
24326
+ // (see notes about this further down), which means we will consider it visible
24327
+ // (this is legacy behavior from a very long way back)
24328
+ // NOTE: we check this regardless of `displayCheck="none"` because this is a
24329
+ // _visibility_ check, not a _display_ check
24330
+ if (getComputedStyle(node).visibility === 'hidden') {
24331
+ return true;
24332
+ }
24333
+ var isDirectSummary = matches$1.call(node, 'details>summary:first-of-type');
24334
+ var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
24335
+ if (matches$1.call(nodeUnderDetails, 'details:not([open]) *')) {
24336
+ return true;
24337
+ }
24338
+ if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
24339
+ if (typeof getShadowRoot === 'function') {
24340
+ // figure out if we should consider the node to be in an undisclosed shadow and use the
24341
+ // 'non-zero-area' fallback
24342
+ var originalNode = node;
24343
+ while (node) {
24344
+ var parentElement = node.parentElement;
24345
+ var rootNode = getRootNode(node);
24346
+ if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
24347
+ ) {
24348
+ // node has an undisclosed shadow which means we can only treat it as a black box, so we
24349
+ // fall back to a non-zero-area test
24350
+ return isZeroArea(node);
24351
+ } else if (node.assignedSlot) {
24352
+ // iterate up slot
24353
+ node = node.assignedSlot;
24354
+ } else if (!parentElement && rootNode !== node.ownerDocument) {
24355
+ // cross shadow boundary
24356
+ node = rootNode.host;
24357
+ } else {
24358
+ // iterate up normal dom
24359
+ node = parentElement;
24360
+ }
24361
+ }
24362
+ node = originalNode;
24363
+ }
24364
+ // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
24365
+ // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
24366
+ // it might be a falsy value, which means shadow DOM support is disabled
24367
+
24368
+ // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
24369
+ // now we can just test to see if it would normally be visible or not, provided it's
24370
+ // attached to the main document.
24371
+ // NOTE: We must consider case where node is inside a shadow DOM and given directly to
24372
+ // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
24373
+
24374
+ if (isNodeAttached(node)) {
24375
+ // this works wherever the node is: if there's at least one client rect, it's
24376
+ // somehow displayed; it also covers the CSS 'display: contents' case where the
24377
+ // node itself is hidden in place of its contents; and there's no need to search
24378
+ // up the hierarchy either
24379
+ return !node.getClientRects().length;
24380
+ }
24381
+
24382
+ // Else, the node isn't attached to the document, which means the `getClientRects()`
24383
+ // API will __always__ return zero rects (this can happen, for example, if React
24384
+ // is used to render nodes onto a detached tree, as confirmed in this thread:
24385
+ // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
24386
+ //
24387
+ // It also means that even window.getComputedStyle(node).display will return `undefined`
24388
+ // because styles are only computed for nodes that are in the document.
24389
+ //
24390
+ // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
24391
+ // somehow. Though it was never stated officially, anyone who has ever used tabbable
24392
+ // APIs on nodes in detached containers has actually implicitly used tabbable in what
24393
+ // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
24394
+ // considering __everything__ to be visible because of the innability to determine styles.
24395
+ //
24396
+ // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
24397
+ // nodes as visible with the 'none' fallback.__
24398
+ if (displayCheck !== 'legacy-full') {
24399
+ return true; // hidden
24400
+ }
24401
+ // else, fallback to 'none' mode and consider the node visible
24402
+ } else if (displayCheck === 'non-zero-area') {
24403
+ // NOTE: Even though this tests that the node's client rect is non-zero to determine
24404
+ // whether it's displayed, and that a detached node will __always__ have a zero-area
24405
+ // client rect, we don't special-case for whether the node is attached or not. In
24406
+ // this mode, we do want to consider nodes that have a zero area to be hidden at all
24407
+ // times, and that includes attached or not.
24408
+ return isZeroArea(node);
24409
+ }
24410
+
24411
+ // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
24412
+ // it's visible
24413
+ return false;
24414
+ };
24415
+
24416
+ // form fields (nested) inside a disabled fieldset are not focusable/tabbable
24417
+ // unless they are in the _first_ <legend> element of the top-most disabled
24418
+ // fieldset
24419
+ var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
24420
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
24421
+ var parentNode = node.parentElement;
24422
+ // check if `node` is contained in a disabled <fieldset>
24423
+ while (parentNode) {
24424
+ if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
24425
+ // look for the first <legend> among the children of the disabled <fieldset>
24426
+ for (var i = 0; i < parentNode.children.length; i++) {
24427
+ var child = parentNode.children.item(i);
24428
+ // when the first <legend> (in document order) is found
24429
+ if (child.tagName === 'LEGEND') {
24430
+ // if its parent <fieldset> is not nested in another disabled <fieldset>,
24431
+ // return whether `node` is a descendant of its first <legend>
24432
+ return matches$1.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
24433
+ }
24434
+ }
24435
+ // the disabled <fieldset> containing `node` has no <legend>
24436
+ return true;
24437
+ }
24438
+ parentNode = parentNode.parentElement;
24439
+ }
24440
+ }
24441
+
24442
+ // else, node's tabbable/focusable state should not be affected by a fieldset's
24443
+ // enabled/disabled state
24444
+ return false;
24445
+ };
24446
+ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
24447
+ if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
24448
+ // For a details element with a summary, the summary element gets the focus
24449
+ isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
24450
+ return false;
24451
+ }
24452
+ return true;
24453
+ };
24454
+ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
24455
+ if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
24456
+ return false;
24457
+ }
24458
+ return true;
24459
+ };
24460
+ var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
24461
+ var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
24462
+ if (isNaN(tabIndex) || tabIndex >= 0) {
24463
+ return true;
24464
+ }
24465
+ // If a custom element has an explicit negative tabindex,
24466
+ // browsers will not allow tab targeting said element's children.
24467
+ return false;
24468
+ };
24469
+
24470
+ /**
24471
+ * @param {Array.<Element|CandidateScope>} candidates
24472
+ * @returns Element[]
24473
+ */
24474
+ var sortByOrder = function sortByOrder(candidates) {
24475
+ var regularTabbables = [];
24476
+ var orderedTabbables = [];
24477
+ candidates.forEach(function (item, i) {
24478
+ var isScope = !!item.scopeParent;
24479
+ var element = isScope ? item.scopeParent : item;
24480
+ var candidateTabindex = getTabindex(element, isScope);
24481
+ var elements = isScope ? sortByOrder(item.candidates) : element;
24482
+ if (candidateTabindex === 0) {
24483
+ isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
24484
+ } else {
24485
+ orderedTabbables.push({
24486
+ documentOrder: i,
24487
+ tabIndex: candidateTabindex,
24488
+ item: item,
24489
+ isScope: isScope,
24490
+ content: elements
24491
+ });
24492
+ }
24493
+ });
24494
+ return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
24495
+ sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
24496
+ return acc;
24497
+ }, []).concat(regularTabbables);
24498
+ };
24499
+ var tabbable = function tabbable(el, options) {
24500
+ options = options || {};
24501
+ var candidates;
24502
+ if (options.getShadowRoot) {
24503
+ candidates = getCandidatesIteratively([el], options.includeContainer, {
24504
+ filter: isNodeMatchingSelectorTabbable.bind(null, options),
24505
+ flatten: false,
24506
+ getShadowRoot: options.getShadowRoot,
24507
+ shadowRootFilter: isValidShadowRootTabbable
24508
+ });
24509
+ } else {
24510
+ candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
24511
+ }
24512
+ return sortByOrder(candidates);
24513
+ };
24514
+ var focusable = function focusable(el, options) {
24515
+ options = options || {};
24516
+ var candidates;
24517
+ if (options.getShadowRoot) {
24518
+ candidates = getCandidatesIteratively([el], options.includeContainer, {
24519
+ filter: isNodeMatchingSelectorFocusable.bind(null, options),
24520
+ flatten: true,
24521
+ getShadowRoot: options.getShadowRoot
24522
+ });
24523
+ } else {
24524
+ candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
24525
+ }
24526
+ return candidates;
24527
+ };
24528
+ var isTabbable = function isTabbable(node, options) {
24529
+ options = options || {};
24530
+ if (!node) {
24531
+ throw new Error('No node provided');
24532
+ }
24533
+ if (matches$1.call(node, candidateSelector) === false) {
24534
+ return false;
24535
+ }
24536
+ return isNodeMatchingSelectorTabbable(options, node);
24537
+ };
24538
+ var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
24539
+ var isFocusable = function isFocusable(node, options) {
24540
+ options = options || {};
24541
+ if (!node) {
24542
+ throw new Error('No node provided');
24543
+ }
24544
+ if (matches$1.call(node, focusableCandidateSelector) === false) {
24545
+ return false;
24546
+ }
24547
+ return isNodeMatchingSelectorFocusable(options, node);
24548
+ };
24549
+
24550
+ /*!
24551
+ * focus-trap 7.0.0
24552
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
24553
+ */
24554
+
24555
+ function ownKeys$1(object, enumerableOnly) {
24556
+ var keys = Object.keys(object);
24557
+
24558
+ if (Object.getOwnPropertySymbols) {
24559
+ var symbols = Object.getOwnPropertySymbols(object);
24560
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
24561
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
24562
+ })), keys.push.apply(keys, symbols);
24563
+ }
24564
+
24565
+ return keys;
24566
+ }
24567
+
24568
+ function _objectSpread2$1(target) {
24569
+ for (var i = 1; i < arguments.length; i++) {
24570
+ var source = null != arguments[i] ? arguments[i] : {};
24571
+ i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
24572
+ _defineProperty$1(target, key, source[key]);
24573
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
24574
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
24575
+ });
24576
+ }
24577
+
24578
+ return target;
24579
+ }
24580
+
24581
+ function _defineProperty$1(obj, key, value) {
24582
+ if (key in obj) {
24583
+ Object.defineProperty(obj, key, {
24584
+ value: value,
24585
+ enumerable: true,
24586
+ configurable: true,
24587
+ writable: true
24588
+ });
24589
+ } else {
24590
+ obj[key] = value;
24591
+ }
24592
+
24593
+ return obj;
24594
+ }
24595
+
24596
+ var activeFocusTraps = function () {
24597
+ var trapQueue = [];
24598
+ return {
24599
+ activateTrap: function activateTrap(trap) {
24600
+ if (trapQueue.length > 0) {
24601
+ var activeTrap = trapQueue[trapQueue.length - 1];
24602
+
24603
+ if (activeTrap !== trap) {
24604
+ activeTrap.pause();
24605
+ }
24606
+ }
24607
+
24608
+ var trapIndex = trapQueue.indexOf(trap);
24609
+
24610
+ if (trapIndex === -1) {
24611
+ trapQueue.push(trap);
24612
+ } else {
24613
+ // move this existing trap to the front of the queue
24614
+ trapQueue.splice(trapIndex, 1);
24615
+ trapQueue.push(trap);
24616
+ }
24617
+ },
24618
+ deactivateTrap: function deactivateTrap(trap) {
24619
+ var trapIndex = trapQueue.indexOf(trap);
24620
+
24621
+ if (trapIndex !== -1) {
24622
+ trapQueue.splice(trapIndex, 1);
24623
+ }
24624
+
24625
+ if (trapQueue.length > 0) {
24626
+ trapQueue[trapQueue.length - 1].unpause();
24627
+ }
24628
+ }
24629
+ };
24630
+ }();
24631
+
24632
+ var isSelectableInput = function isSelectableInput(node) {
24633
+ return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
24634
+ };
24201
24635
 
24202
- const isFocusableExtended = (el) => {
24203
- return isCalciteFocusable(el) || isFocusable(el);
24636
+ var isEscapeEvent = function isEscapeEvent(e) {
24637
+ return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
24204
24638
  };
24205
- const getFocusableElements = (el) => {
24206
- return queryShadowRoot(el, isHidden, isFocusableExtended);
24639
+
24640
+ var isTabEvent = function isTabEvent(e) {
24641
+ return e.key === 'Tab' || e.keyCode === 9;
24642
+ };
24643
+
24644
+ var delay = function delay(fn) {
24645
+ return setTimeout(fn, 0);
24646
+ }; // Array.find/findIndex() are not supported on IE; this replicates enough
24647
+ // of Array.findIndex() for our needs
24648
+
24649
+
24650
+ var findIndex = function findIndex(arr, fn) {
24651
+ var idx = -1;
24652
+ arr.every(function (value, i) {
24653
+ if (fn(value)) {
24654
+ idx = i;
24655
+ return false; // break
24656
+ }
24657
+
24658
+ return true; // next
24659
+ });
24660
+ return idx;
24661
+ };
24662
+ /**
24663
+ * Get an option's value when it could be a plain value, or a handler that provides
24664
+ * the value.
24665
+ * @param {*} value Option's value to check.
24666
+ * @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
24667
+ * @returns {*} The `value`, or the handler's returned value.
24668
+ */
24669
+
24670
+
24671
+ var valueOrHandler = function valueOrHandler(value) {
24672
+ for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
24673
+ params[_key - 1] = arguments[_key];
24674
+ }
24675
+
24676
+ return typeof value === 'function' ? value.apply(void 0, params) : value;
24677
+ };
24678
+
24679
+ var getActualTarget = function getActualTarget(event) {
24680
+ // NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
24681
+ // shadow host. However, event.target.composedPath() will be an array of
24682
+ // nodes "clicked" from inner-most (the actual element inside the shadow) to
24683
+ // outer-most (the host HTML document). If we have access to composedPath(),
24684
+ // then use its first element; otherwise, fall back to event.target (and
24685
+ // this only works for an _open_ shadow DOM; otherwise,
24686
+ // composedPath()[0] === event.target always).
24687
+ return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
24688
+ };
24689
+
24690
+ var createFocusTrap = function createFocusTrap(elements, userOptions) {
24691
+ // SSR: a live trap shouldn't be created in this type of environment so this
24692
+ // should be safe code to execute if the `document` option isn't specified
24693
+ var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
24694
+
24695
+ var config = _objectSpread2$1({
24696
+ returnFocusOnDeactivate: true,
24697
+ escapeDeactivates: true,
24698
+ delayInitialFocus: true
24699
+ }, userOptions);
24700
+
24701
+ var state = {
24702
+ // containers given to createFocusTrap()
24703
+ // @type {Array<HTMLElement>}
24704
+ containers: [],
24705
+ // list of objects identifying tabbable nodes in `containers` in the trap
24706
+ // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
24707
+ // is active, but the trap should never get to a state where there isn't at least one group
24708
+ // with at least one tabbable node in it (that would lead to an error condition that would
24709
+ // result in an error being thrown)
24710
+ // @type {Array<{
24711
+ // container: HTMLElement,
24712
+ // tabbableNodes: Array<HTMLElement>, // empty if none
24713
+ // focusableNodes: Array<HTMLElement>, // empty if none
24714
+ // firstTabbableNode: HTMLElement|null,
24715
+ // lastTabbableNode: HTMLElement|null,
24716
+ // nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
24717
+ // }>}
24718
+ containerGroups: [],
24719
+ // same order/length as `containers` list
24720
+ // references to objects in `containerGroups`, but only those that actually have
24721
+ // tabbable nodes in them
24722
+ // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
24723
+ // the same length
24724
+ tabbableGroups: [],
24725
+ nodeFocusedBeforeActivation: null,
24726
+ mostRecentlyFocusedNode: null,
24727
+ active: false,
24728
+ paused: false,
24729
+ // timer ID for when delayInitialFocus is true and initial focus in this trap
24730
+ // has been delayed during activation
24731
+ delayInitialFocusTimer: undefined
24732
+ };
24733
+ var trap; // eslint-disable-line prefer-const -- some private functions reference it, and its methods reference private functions, so we must declare here and define later
24734
+
24735
+ /**
24736
+ * Gets a configuration option value.
24737
+ * @param {Object|undefined} configOverrideOptions If true, and option is defined in this set,
24738
+ * value will be taken from this object. Otherwise, value will be taken from base configuration.
24739
+ * @param {string} optionName Name of the option whose value is sought.
24740
+ * @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
24741
+ * IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
24742
+ */
24743
+
24744
+ var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
24745
+ return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
24746
+ };
24747
+ /**
24748
+ * Finds the index of the container that contains the element.
24749
+ * @param {HTMLElement} element
24750
+ * @returns {number} Index of the container in either `state.containers` or
24751
+ * `state.containerGroups` (the order/length of these lists are the same); -1
24752
+ * if the element isn't found.
24753
+ */
24754
+
24755
+
24756
+ var findContainerIndex = function findContainerIndex(element) {
24757
+ // NOTE: search `containerGroups` because it's possible a group contains no tabbable
24758
+ // nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
24759
+ // and we still need to find the element in there
24760
+ return state.containerGroups.findIndex(function (_ref) {
24761
+ var container = _ref.container,
24762
+ tabbableNodes = _ref.tabbableNodes;
24763
+ return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any
24764
+ // web components if the `tabbableOptions.getShadowRoot` option was used for
24765
+ // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
24766
+ // look inside web components even if open)
24767
+ tabbableNodes.find(function (node) {
24768
+ return node === element;
24769
+ });
24770
+ });
24771
+ };
24772
+ /**
24773
+ * Gets the node for the given option, which is expected to be an option that
24774
+ * can be either a DOM node, a string that is a selector to get a node, `false`
24775
+ * (if a node is explicitly NOT given), or a function that returns any of these
24776
+ * values.
24777
+ * @param {string} optionName
24778
+ * @returns {undefined | false | HTMLElement | SVGElement} Returns
24779
+ * `undefined` if the option is not specified; `false` if the option
24780
+ * resolved to `false` (node explicitly not given); otherwise, the resolved
24781
+ * DOM node.
24782
+ * @throws {Error} If the option is set, not `false`, and is not, or does not
24783
+ * resolve to a node.
24784
+ */
24785
+
24786
+
24787
+ var getNodeForOption = function getNodeForOption(optionName) {
24788
+ var optionValue = config[optionName];
24789
+
24790
+ if (typeof optionValue === 'function') {
24791
+ for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
24792
+ params[_key2 - 1] = arguments[_key2];
24793
+ }
24794
+
24795
+ optionValue = optionValue.apply(void 0, params);
24796
+ }
24797
+
24798
+ if (optionValue === true) {
24799
+ optionValue = undefined; // use default value
24800
+ }
24801
+
24802
+ if (!optionValue) {
24803
+ if (optionValue === undefined || optionValue === false) {
24804
+ return optionValue;
24805
+ } // else, empty string (invalid), null (invalid), 0 (invalid)
24806
+
24807
+
24808
+ throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
24809
+ }
24810
+
24811
+ var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
24812
+
24813
+ if (typeof optionValue === 'string') {
24814
+ node = doc.querySelector(optionValue); // resolve to node, or null if fails
24815
+
24816
+ if (!node) {
24817
+ throw new Error("`".concat(optionName, "` as selector refers to no known node"));
24818
+ }
24819
+ }
24820
+
24821
+ return node;
24822
+ };
24823
+
24824
+ var getInitialFocusNode = function getInitialFocusNode() {
24825
+ var node = getNodeForOption('initialFocus'); // false explicitly indicates we want no initialFocus at all
24826
+
24827
+ if (node === false) {
24828
+ return false;
24829
+ }
24830
+
24831
+ if (node === undefined) {
24832
+ // option not specified: use fallback options
24833
+ if (findContainerIndex(doc.activeElement) >= 0) {
24834
+ node = doc.activeElement;
24835
+ } else {
24836
+ var firstTabbableGroup = state.tabbableGroups[0];
24837
+ var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode; // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
24838
+
24839
+ node = firstTabbableNode || getNodeForOption('fallbackFocus');
24840
+ }
24841
+ }
24842
+
24843
+ if (!node) {
24844
+ throw new Error('Your focus-trap needs to have at least one focusable element');
24845
+ }
24846
+
24847
+ return node;
24848
+ };
24849
+
24850
+ var updateTabbableNodes = function updateTabbableNodes() {
24851
+ state.containerGroups = state.containers.map(function (container) {
24852
+ var tabbableNodes = tabbable(container, config.tabbableOptions); // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
24853
+ // are a superset of tabbable nodes
24854
+
24855
+ var focusableNodes = focusable(container, config.tabbableOptions);
24856
+ return {
24857
+ container: container,
24858
+ tabbableNodes: tabbableNodes,
24859
+ focusableNodes: focusableNodes,
24860
+ firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,
24861
+ lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,
24862
+
24863
+ /**
24864
+ * Finds the __tabbable__ node that follows the given node in the specified direction,
24865
+ * in this container, if any.
24866
+ * @param {HTMLElement} node
24867
+ * @param {boolean} [forward] True if going in forward tab order; false if going
24868
+ * in reverse.
24869
+ * @returns {HTMLElement|undefined} The next tabbable node, if any.
24870
+ */
24871
+ nextTabbableNode: function nextTabbableNode(node) {
24872
+ var forward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
24873
+ // NOTE: If tabindex is positive (in order to manipulate the tab order separate
24874
+ // from the DOM order), this __will not work__ because the list of focusableNodes,
24875
+ // while it contains tabbable nodes, does not sort its nodes in any order other
24876
+ // than DOM order, because it can't: Where would you place focusable (but not
24877
+ // tabbable) nodes in that order? They have no order, because they aren't tabbale...
24878
+ // Support for positive tabindex is already broken and hard to manage (possibly
24879
+ // not supportable, TBD), so this isn't going to make things worse than they
24880
+ // already are, and at least makes things better for the majority of cases where
24881
+ // tabindex is either 0/unset or negative.
24882
+ // FYI, positive tabindex issue: https://github.com/focus-trap/focus-trap/issues/375
24883
+ var nodeIdx = focusableNodes.findIndex(function (n) {
24884
+ return n === node;
24885
+ });
24886
+
24887
+ if (nodeIdx < 0) {
24888
+ return undefined;
24889
+ }
24890
+
24891
+ if (forward) {
24892
+ return focusableNodes.slice(nodeIdx + 1).find(function (n) {
24893
+ return isTabbable(n, config.tabbableOptions);
24894
+ });
24895
+ }
24896
+
24897
+ return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
24898
+ return isTabbable(n, config.tabbableOptions);
24899
+ });
24900
+ }
24901
+ };
24902
+ });
24903
+ state.tabbableGroups = state.containerGroups.filter(function (group) {
24904
+ return group.tabbableNodes.length > 0;
24905
+ }); // throw if no groups have tabbable nodes and we don't have a fallback focus node either
24906
+
24907
+ if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
24908
+ ) {
24909
+ throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
24910
+ }
24911
+ };
24912
+
24913
+ var tryFocus = function tryFocus(node) {
24914
+ if (node === false) {
24915
+ return;
24916
+ }
24917
+
24918
+ if (node === doc.activeElement) {
24919
+ return;
24920
+ }
24921
+
24922
+ if (!node || !node.focus) {
24923
+ tryFocus(getInitialFocusNode());
24924
+ return;
24925
+ }
24926
+
24927
+ node.focus({
24928
+ preventScroll: !!config.preventScroll
24929
+ });
24930
+ state.mostRecentlyFocusedNode = node;
24931
+
24932
+ if (isSelectableInput(node)) {
24933
+ node.select();
24934
+ }
24935
+ };
24936
+
24937
+ var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
24938
+ var node = getNodeForOption('setReturnFocus', previousActiveElement);
24939
+ return node ? node : node === false ? false : previousActiveElement;
24940
+ }; // This needs to be done on mousedown and touchstart instead of click
24941
+ // so that it precedes the focus event.
24942
+
24943
+
24944
+ var checkPointerDown = function checkPointerDown(e) {
24945
+ var target = getActualTarget(e);
24946
+
24947
+ if (findContainerIndex(target) >= 0) {
24948
+ // allow the click since it ocurred inside the trap
24949
+ return;
24950
+ }
24951
+
24952
+ if (valueOrHandler(config.clickOutsideDeactivates, e)) {
24953
+ // immediately deactivate the trap
24954
+ trap.deactivate({
24955
+ // if, on deactivation, we should return focus to the node originally-focused
24956
+ // when the trap was activated (or the configured `setReturnFocus` node),
24957
+ // then assume it's also OK to return focus to the outside node that was
24958
+ // just clicked, causing deactivation, as long as that node is focusable;
24959
+ // if it isn't focusable, then return focus to the original node focused
24960
+ // on activation (or the configured `setReturnFocus` node)
24961
+ // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
24962
+ // which will result in the outside click setting focus to the node
24963
+ // that was clicked, whether it's focusable or not; by setting
24964
+ // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
24965
+ // on activation (or the configured `setReturnFocus` node)
24966
+ returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)
24967
+ });
24968
+ return;
24969
+ } // This is needed for mobile devices.
24970
+ // (If we'll only let `click` events through,
24971
+ // then on mobile they will be blocked anyways if `touchstart` is blocked.)
24972
+
24973
+
24974
+ if (valueOrHandler(config.allowOutsideClick, e)) {
24975
+ // allow the click outside the trap to take place
24976
+ return;
24977
+ } // otherwise, prevent the click
24978
+
24979
+
24980
+ e.preventDefault();
24981
+ }; // In case focus escapes the trap for some strange reason, pull it back in.
24982
+
24983
+
24984
+ var checkFocusIn = function checkFocusIn(e) {
24985
+ var target = getActualTarget(e);
24986
+ var targetContained = findContainerIndex(target) >= 0; // In Firefox when you Tab out of an iframe the Document is briefly focused.
24987
+
24988
+ if (targetContained || target instanceof Document) {
24989
+ if (targetContained) {
24990
+ state.mostRecentlyFocusedNode = target;
24991
+ }
24992
+ } else {
24993
+ // escaped! pull it back in to where it just left
24994
+ e.stopImmediatePropagation();
24995
+ tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
24996
+ }
24997
+ }; // Hijack Tab events on the first and last focusable nodes of the trap,
24998
+ // in order to prevent focus from escaping. If it escapes for even a
24999
+ // moment it can end up scrolling the page and causing confusion so we
25000
+ // kind of need to capture the action at the keydown phase.
25001
+
25002
+
25003
+ var checkTab = function checkTab(e) {
25004
+ var target = getActualTarget(e);
25005
+ updateTabbableNodes();
25006
+ var destinationNode = null;
25007
+
25008
+ if (state.tabbableGroups.length > 0) {
25009
+ // make sure the target is actually contained in a group
25010
+ // NOTE: the target may also be the container itself if it's focusable
25011
+ // with tabIndex='-1' and was given initial focus
25012
+ var containerIndex = findContainerIndex(target);
25013
+ var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
25014
+
25015
+ if (containerIndex < 0) {
25016
+ // target not found in any group: quite possible focus has escaped the trap,
25017
+ // so bring it back in to...
25018
+ if (e.shiftKey) {
25019
+ // ...the last node in the last group
25020
+ destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
25021
+ } else {
25022
+ // ...the first node in the first group
25023
+ destinationNode = state.tabbableGroups[0].firstTabbableNode;
25024
+ }
25025
+ } else if (e.shiftKey) {
25026
+ // REVERSE
25027
+ // is the target the first tabbable node in a group?
25028
+ var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {
25029
+ var firstTabbableNode = _ref2.firstTabbableNode;
25030
+ return target === firstTabbableNode;
25031
+ });
25032
+
25033
+ if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
25034
+ // an exception case where the target is either the container itself, or
25035
+ // a non-tabbable node that was given focus (i.e. tabindex is negative
25036
+ // and user clicked on it or node was programmatically given focus)
25037
+ // and is not followed by any other tabbable node, in which
25038
+ // case, we should handle shift+tab as if focus were on the container's
25039
+ // first tabbable node, and go to the last tabbable node of the LAST group
25040
+ startOfGroupIndex = containerIndex;
25041
+ }
25042
+
25043
+ if (startOfGroupIndex >= 0) {
25044
+ // YES: then shift+tab should go to the last tabbable node in the
25045
+ // previous group (and wrap around to the last tabbable node of
25046
+ // the LAST group if it's the first tabbable node of the FIRST group)
25047
+ var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
25048
+ var destinationGroup = state.tabbableGroups[destinationGroupIndex];
25049
+ destinationNode = destinationGroup.lastTabbableNode;
25050
+ }
25051
+ } else {
25052
+ // FORWARD
25053
+ // is the target the last tabbable node in a group?
25054
+ var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {
25055
+ var lastTabbableNode = _ref3.lastTabbableNode;
25056
+ return target === lastTabbableNode;
25057
+ });
25058
+
25059
+ if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
25060
+ // an exception case where the target is the container itself, or
25061
+ // a non-tabbable node that was given focus (i.e. tabindex is negative
25062
+ // and user clicked on it or node was programmatically given focus)
25063
+ // and is not followed by any other tabbable node, in which
25064
+ // case, we should handle tab as if focus were on the container's
25065
+ // last tabbable node, and go to the first tabbable node of the FIRST group
25066
+ lastOfGroupIndex = containerIndex;
25067
+ }
25068
+
25069
+ if (lastOfGroupIndex >= 0) {
25070
+ // YES: then tab should go to the first tabbable node in the next
25071
+ // group (and wrap around to the first tabbable node of the FIRST
25072
+ // group if it's the last tabbable node of the LAST group)
25073
+ var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
25074
+
25075
+ var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
25076
+ destinationNode = _destinationGroup.firstTabbableNode;
25077
+ }
25078
+ }
25079
+ } else {
25080
+ // NOTE: the fallbackFocus option does not support returning false to opt-out
25081
+ destinationNode = getNodeForOption('fallbackFocus');
25082
+ }
25083
+
25084
+ if (destinationNode) {
25085
+ e.preventDefault();
25086
+ tryFocus(destinationNode);
25087
+ } // else, let the browser take care of [shift+]tab and move the focus
25088
+
25089
+ };
25090
+
25091
+ var checkKey = function checkKey(e) {
25092
+ if (isEscapeEvent(e) && valueOrHandler(config.escapeDeactivates, e) !== false) {
25093
+ e.preventDefault();
25094
+ trap.deactivate();
25095
+ return;
25096
+ }
25097
+
25098
+ if (isTabEvent(e)) {
25099
+ checkTab(e);
25100
+ return;
25101
+ }
25102
+ };
25103
+
25104
+ var checkClick = function checkClick(e) {
25105
+ var target = getActualTarget(e);
25106
+
25107
+ if (findContainerIndex(target) >= 0) {
25108
+ return;
25109
+ }
25110
+
25111
+ if (valueOrHandler(config.clickOutsideDeactivates, e)) {
25112
+ return;
25113
+ }
25114
+
25115
+ if (valueOrHandler(config.allowOutsideClick, e)) {
25116
+ return;
25117
+ }
25118
+
25119
+ e.preventDefault();
25120
+ e.stopImmediatePropagation();
25121
+ }; //
25122
+ // EVENT LISTENERS
25123
+ //
25124
+
25125
+
25126
+ var addListeners = function addListeners() {
25127
+ if (!state.active) {
25128
+ return;
25129
+ } // There can be only one listening focus trap at a time
25130
+
25131
+
25132
+ activeFocusTraps.activateTrap(trap); // Delay ensures that the focused element doesn't capture the event
25133
+ // that caused the focus trap activation.
25134
+
25135
+ state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
25136
+ tryFocus(getInitialFocusNode());
25137
+ }) : tryFocus(getInitialFocusNode());
25138
+ doc.addEventListener('focusin', checkFocusIn, true);
25139
+ doc.addEventListener('mousedown', checkPointerDown, {
25140
+ capture: true,
25141
+ passive: false
25142
+ });
25143
+ doc.addEventListener('touchstart', checkPointerDown, {
25144
+ capture: true,
25145
+ passive: false
25146
+ });
25147
+ doc.addEventListener('click', checkClick, {
25148
+ capture: true,
25149
+ passive: false
25150
+ });
25151
+ doc.addEventListener('keydown', checkKey, {
25152
+ capture: true,
25153
+ passive: false
25154
+ });
25155
+ return trap;
25156
+ };
25157
+
25158
+ var removeListeners = function removeListeners() {
25159
+ if (!state.active) {
25160
+ return;
25161
+ }
25162
+
25163
+ doc.removeEventListener('focusin', checkFocusIn, true);
25164
+ doc.removeEventListener('mousedown', checkPointerDown, true);
25165
+ doc.removeEventListener('touchstart', checkPointerDown, true);
25166
+ doc.removeEventListener('click', checkClick, true);
25167
+ doc.removeEventListener('keydown', checkKey, true);
25168
+ return trap;
25169
+ }; //
25170
+ // TRAP DEFINITION
25171
+ //
25172
+
25173
+
25174
+ trap = {
25175
+ get active() {
25176
+ return state.active;
25177
+ },
25178
+
25179
+ get paused() {
25180
+ return state.paused;
25181
+ },
25182
+
25183
+ activate: function activate(activateOptions) {
25184
+ if (state.active) {
25185
+ return this;
25186
+ }
25187
+
25188
+ var onActivate = getOption(activateOptions, 'onActivate');
25189
+ var onPostActivate = getOption(activateOptions, 'onPostActivate');
25190
+ var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
25191
+
25192
+ if (!checkCanFocusTrap) {
25193
+ updateTabbableNodes();
25194
+ }
25195
+
25196
+ state.active = true;
25197
+ state.paused = false;
25198
+ state.nodeFocusedBeforeActivation = doc.activeElement;
25199
+
25200
+ if (onActivate) {
25201
+ onActivate();
25202
+ }
25203
+
25204
+ var finishActivation = function finishActivation() {
25205
+ if (checkCanFocusTrap) {
25206
+ updateTabbableNodes();
25207
+ }
25208
+
25209
+ addListeners();
25210
+
25211
+ if (onPostActivate) {
25212
+ onPostActivate();
25213
+ }
25214
+ };
25215
+
25216
+ if (checkCanFocusTrap) {
25217
+ checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
25218
+ return this;
25219
+ }
25220
+
25221
+ finishActivation();
25222
+ return this;
25223
+ },
25224
+ deactivate: function deactivate(deactivateOptions) {
25225
+ if (!state.active) {
25226
+ return this;
25227
+ }
25228
+
25229
+ var options = _objectSpread2$1({
25230
+ onDeactivate: config.onDeactivate,
25231
+ onPostDeactivate: config.onPostDeactivate,
25232
+ checkCanReturnFocus: config.checkCanReturnFocus
25233
+ }, deactivateOptions);
25234
+
25235
+ clearTimeout(state.delayInitialFocusTimer); // noop if undefined
25236
+
25237
+ state.delayInitialFocusTimer = undefined;
25238
+ removeListeners();
25239
+ state.active = false;
25240
+ state.paused = false;
25241
+ activeFocusTraps.deactivateTrap(trap);
25242
+ var onDeactivate = getOption(options, 'onDeactivate');
25243
+ var onPostDeactivate = getOption(options, 'onPostDeactivate');
25244
+ var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
25245
+ var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
25246
+
25247
+ if (onDeactivate) {
25248
+ onDeactivate();
25249
+ }
25250
+
25251
+ var finishDeactivation = function finishDeactivation() {
25252
+ delay(function () {
25253
+ if (returnFocus) {
25254
+ tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
25255
+ }
25256
+
25257
+ if (onPostDeactivate) {
25258
+ onPostDeactivate();
25259
+ }
25260
+ });
25261
+ };
25262
+
25263
+ if (returnFocus && checkCanReturnFocus) {
25264
+ checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
25265
+ return this;
25266
+ }
25267
+
25268
+ finishDeactivation();
25269
+ return this;
25270
+ },
25271
+ pause: function pause() {
25272
+ if (state.paused || !state.active) {
25273
+ return this;
25274
+ }
25275
+
25276
+ state.paused = true;
25277
+ removeListeners();
25278
+ return this;
25279
+ },
25280
+ unpause: function unpause() {
25281
+ if (!state.paused || !state.active) {
25282
+ return this;
25283
+ }
25284
+
25285
+ state.paused = false;
25286
+ updateTabbableNodes();
25287
+ addListeners();
25288
+ return this;
25289
+ },
25290
+ updateContainerElements: function updateContainerElements(containerElements) {
25291
+ var elementsAsArray = [].concat(containerElements).filter(Boolean);
25292
+ state.containers = elementsAsArray.map(function (element) {
25293
+ return typeof element === 'string' ? doc.querySelector(element) : element;
25294
+ });
25295
+
25296
+ if (state.active) {
25297
+ updateTabbableNodes();
25298
+ }
25299
+
25300
+ return this;
25301
+ }
25302
+ }; // initialize container elements
25303
+
25304
+ trap.updateContainerElements(elements);
25305
+ return trap;
24207
25306
  };
25307
+
25308
+ /**
25309
+ * Helper to set up focus trap component.
25310
+ *
25311
+ * @param component
25312
+ */
25313
+ function connectFocusTrap(component) {
25314
+ const { focusTrapEl } = component;
25315
+ if (!focusTrapEl) {
25316
+ return;
25317
+ }
25318
+ if (focusTrapEl.tabIndex == null) {
25319
+ focusTrapEl.tabIndex = -1;
25320
+ }
25321
+ const focusTrapOptions = {
25322
+ allowOutsideClick: true,
25323
+ clickOutsideDeactivates: false,
25324
+ escapeDeactivates: false,
25325
+ fallbackFocus: focusTrapEl,
25326
+ setReturnFocus: (el) => {
25327
+ focusElement(el);
25328
+ return false;
25329
+ },
25330
+ tabbableOptions: {
25331
+ getShadowRoot: true
25332
+ }
25333
+ };
25334
+ component.focusTrap = createFocusTrap(focusTrapEl, focusTrapOptions);
25335
+ }
25336
+ /**
25337
+ * Helper to activate focus trap component.
25338
+ *
25339
+ * @param component
25340
+ */
25341
+ function activateFocusTrap(component) {
25342
+ var _a;
25343
+ (_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.activate();
25344
+ }
25345
+ /**
25346
+ * Helper to tear deactivate focus trap component.
25347
+ *
25348
+ * @param component
25349
+ */
25350
+ function deactivateFocusTrap(component) {
25351
+ var _a;
25352
+ (_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.deactivate();
25353
+ }
25354
+
25355
+ 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}}";
25356
+
24208
25357
  /**
24209
25358
  * @slot header - A slot for adding header text.
24210
25359
  * @slot content - A slot for adding the component's content.
@@ -24276,10 +25425,13 @@ class Modal {
24276
25425
  this.setTransitionEl = (el) => {
24277
25426
  this.transitionEl = el;
24278
25427
  connectOpenCloseComponent(this);
25428
+ this.focusTrapEl = el;
25429
+ connectFocusTrap(this);
24279
25430
  };
24280
25431
  this.openEnd = () => {
24281
25432
  this.setFocus();
24282
25433
  this.el.removeEventListener("calciteModalOpen", this.openEnd);
25434
+ activateFocusTrap(this);
24283
25435
  };
24284
25436
  this.handleOutsideClose = () => {
24285
25437
  if (this.disableOutsideClose) {
@@ -24292,22 +25444,9 @@ class Modal {
24292
25444
  return this.beforeClose(this.el).then(() => {
24293
25445
  this.open = false;
24294
25446
  this.isOpen = false;
24295
- focusElement(this.previousActiveElement);
24296
25447
  this.removeOverflowHiddenClass();
24297
25448
  });
24298
25449
  };
24299
- this.focusFirstElement = () => {
24300
- focusElement(this.disableCloseButton ? getFocusableElements(this.el)[0] : this.closeButtonEl);
24301
- };
24302
- this.focusLastElement = () => {
24303
- const focusableElements = getFocusableElements(this.el).filter((el) => !el.getAttribute("data-focus-fence"));
24304
- if (focusableElements.length > 0) {
24305
- focusElement(focusableElements[focusableElements.length - 1]);
24306
- }
24307
- else {
24308
- focusElement(this.closeButtonEl);
24309
- }
24310
- };
24311
25450
  this.updateFooterVisibility = () => {
24312
25451
  this.hasFooter = !!getSlotted(this.el, [SLOTS$d.back, SLOTS$d.primary, SLOTS$d.secondary]);
24313
25452
  };
@@ -24342,16 +25481,17 @@ class Modal {
24342
25481
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
24343
25482
  disconnectConditionalSlotComponent(this);
24344
25483
  disconnectOpenCloseComponent(this);
25484
+ deactivateFocusTrap(this);
24345
25485
  }
24346
25486
  render() {
24347
25487
  return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("calcite-scrim", { class: CSS$n.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: {
24348
25488
  [CSS$n.modal]: true,
24349
25489
  [CSS$n.modalOpen]: this.isOpen
24350
- }, ref: this.setTransitionEl }, hAsync("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), hAsync("div", { class: CSS$n.header }, this.renderCloseButton(), hAsync("header", { class: CSS$n.title }, hAsync("slot", { name: CSS$n.header }))), hAsync("div", { class: {
25490
+ }, ref: this.setTransitionEl }, hAsync("div", { class: CSS$n.header }, this.renderCloseButton(), hAsync("header", { class: CSS$n.title }, hAsync("slot", { name: CSS$n.header }))), hAsync("div", { class: {
24351
25491
  content: true,
24352
25492
  "content--spaced": !this.noPadding,
24353
25493
  "content--no-footer": !this.hasFooter
24354
- }, ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$d.content })), this.renderFooter(), hAsync("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
25494
+ }, ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$d.content })), this.renderFooter())));
24355
25495
  }
24356
25496
  renderFooter() {
24357
25497
  return this.hasFooter ? (hAsync("div", { class: CSS$n.footer, key: "footer" }, hAsync("span", { class: CSS$n.back }, hAsync("slot", { name: SLOTS$d.back })), hAsync("span", { class: CSS$n.secondary }, hAsync("slot", { name: SLOTS$d.secondary })), hAsync("span", { class: CSS$n.primary }, hAsync("slot", { name: SLOTS$d.primary })))) : null;
@@ -24418,8 +25558,11 @@ class Modal {
24418
25558
  * @param focusId
24419
25559
  */
24420
25560
  async setFocus(focusId) {
24421
- const closeButton = this.closeButtonEl;
24422
- return focusElement(focusId === "close-button" ? closeButton : getFocusableElements(this.el)[0] || closeButton);
25561
+ const { closeButtonEl } = this;
25562
+ if (closeButtonEl && focusId === "close-button") {
25563
+ return focusElement(closeButtonEl);
25564
+ }
25565
+ activateFocusTrap(this);
24423
25566
  }
24424
25567
  /**
24425
25568
  * Sets the scroll top of the component's content.
@@ -24453,6 +25596,7 @@ class Modal {
24453
25596
  onClose() {
24454
25597
  this.transitionEl.classList.remove(CSS$n.closingIdle, CSS$n.closingActive);
24455
25598
  this.calciteModalClose.emit();
25599
+ deactivateFocusTrap(this);
24456
25600
  }
24457
25601
  activeHandler(value) {
24458
25602
  this.open = value;
@@ -24471,7 +25615,6 @@ class Modal {
24471
25615
  }
24472
25616
  /** Open the modal */
24473
25617
  openModal() {
24474
- this.previousActiveElement = document.activeElement;
24475
25618
  this.el.addEventListener("calciteModalOpen", this.openEnd);
24476
25619
  this.open = true;
24477
25620
  this.isOpen = true;
@@ -25319,7 +26462,7 @@ class Panel {
25319
26462
  }
25320
26463
  renderHeaderContent() {
25321
26464
  const { heading, headingLevel, summary, description, hasHeaderContent } = this;
25322
- const headingNode = heading ? (hAsync(Heading, { class: CSS$z.heading, level: headingLevel || HEADING_LEVEL$5 }, heading)) : null;
26465
+ const headingNode = heading ? (hAsync(Heading, { class: CSS$z.heading, level: headingLevel }, heading)) : null;
25323
26466
  const descriptionNode = description || summary ? hAsync("span", { class: CSS$z.description }, description || summary) : null;
25324
26467
  return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$z.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
25325
26468
  }
@@ -25447,7 +26590,6 @@ const CSS$j = {
25447
26590
  const SLOTS$a = {
25448
26591
  parentItem: "parent-item"
25449
26592
  };
25450
- const HEADING_LEVEL$3 = 3;
25451
26593
 
25452
26594
  function mutationObserverCallback() {
25453
26595
  this.setUpItems();
@@ -25464,6 +26606,7 @@ function initialize() {
25464
26606
  this.setUpItems();
25465
26607
  this.setUpFilter();
25466
26608
  this.emitCalciteListChange = debounce(internalCalciteListChangeEvent.bind(this), 0);
26609
+ this.emitCalciteListFilter = debounce(internalCalciteListFilterEvent.bind(this), 0);
25467
26610
  }
25468
26611
  function initializeObserver() {
25469
26612
  var _a;
@@ -25579,6 +26722,9 @@ function getItemIndex(list, item) {
25579
26722
  function filterOutDisabled(items) {
25580
26723
  return items.filter((item) => !item.disabled);
25581
26724
  }
26725
+ function internalCalciteListFilterEvent() {
26726
+ this.calciteListFilter.emit();
26727
+ }
25582
26728
  function internalCalciteListChangeEvent() {
25583
26729
  this.calciteListChange.emit(this.selectedValues);
25584
26730
  }
@@ -25692,26 +26838,27 @@ function selectSiblings(item, deselect = false) {
25692
26838
  });
25693
26839
  }
25694
26840
  let groups;
25695
- function handleFilter(event) {
25696
- const { filteredItems } = event.currentTarget;
25697
- const values = filteredItems.map((item) => item.value);
26841
+ function handleFilter(emit = false) {
26842
+ var _a;
26843
+ const { filteredData, filterText } = this;
26844
+ const values = filteredData.map((item) => item.value);
25698
26845
  let hasSelectedMatch = false;
25699
26846
  if (!groups) {
25700
26847
  groups = new Set();
25701
26848
  }
25702
- const matchedItems = this.items.filter((item) => {
26849
+ const matchedItems = ((_a = this.items) === null || _a === void 0 ? void 0 : _a.filter((item) => {
25703
26850
  const parent = item.parentElement;
25704
26851
  const grouped = parent.matches("calcite-pick-list-group");
25705
26852
  if (grouped) {
25706
26853
  groups.add(parent);
25707
26854
  }
25708
- const matches = values.includes(item.value);
26855
+ const matches = filterText ? values.includes(item.value) : true;
25709
26856
  item.hidden = !matches;
25710
26857
  if (!hasSelectedMatch) {
25711
26858
  hasSelectedMatch = matches && item.selected;
25712
26859
  }
25713
26860
  return matches;
25714
- });
26861
+ })) || [];
25715
26862
  groups.forEach((group) => {
25716
26863
  const hasAtLeastOneMatch = matchedItems.some((item) => group.contains(item));
25717
26864
  group.hidden = !hasAtLeastOneMatch;
@@ -25730,6 +26877,25 @@ function handleFilter(event) {
25730
26877
  if (matchedItems.length > 0 && !hasSelectedMatch && !this.multiple) {
25731
26878
  toggleSingleSelectItemTabbing(matchedItems[0], true);
25732
26879
  }
26880
+ this.setFilteredItems(matchedItems);
26881
+ if (emit) {
26882
+ this.emitCalciteListFilter();
26883
+ }
26884
+ }
26885
+ function handleInitialFilter() {
26886
+ var _a;
26887
+ const filteredItems = (_a = this.filterEl) === null || _a === void 0 ? void 0 : _a.filteredItems;
26888
+ if (filteredItems) {
26889
+ this.filteredData = filteredItems;
26890
+ }
26891
+ this.handleFilter();
26892
+ }
26893
+ function handleFilterEvent(event) {
26894
+ event.stopPropagation();
26895
+ const { filteredItems, value } = event.currentTarget;
26896
+ this.filterText = value;
26897
+ this.filteredData = filteredItems;
26898
+ this.handleFilter(true);
25733
26899
  }
25734
26900
  function getItemData() {
25735
26901
  return this.items.map((item) => ({
@@ -25740,13 +26906,13 @@ function getItemData() {
25740
26906
  }));
25741
26907
  }
25742
26908
 
25743
- const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, setFilterEl, dragEnabled, storeAssistiveEl }, ...rest }) => {
26909
+ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handleFilterEvent, filterPlaceholder, filterText, setFilterEl, dragEnabled, storeAssistiveEl }, ...rest }) => {
25744
26910
  const defaultSlot = hAsync("slot", null);
25745
26911
  return (hAsync(Host, { "aria-busy": toAriaBoolean(loading), role: "menu", ...rest },
25746
26912
  hAsync("section", null,
25747
26913
  dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: "assistive-text", ref: storeAssistiveEl })) : null,
25748
26914
  hAsync("header", { class: { [CSS$k.sticky]: true } },
25749
- filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
26915
+ filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilterEvent, placeholder: filterPlaceholder, ref: setFilterEl, value: filterText })) : null,
25750
26916
  hAsync("slot", { name: SLOTS$b.menuActions })),
25751
26917
  loading ? hAsync("calcite-scrim", { loading: loading }) : null,
25752
26918
  defaultSlot)));
@@ -25762,6 +26928,7 @@ class PickList {
25762
26928
  constructor(hostRef) {
25763
26929
  registerInstance(this, hostRef);
25764
26930
  this.calciteListChange = createEvent(this, "calciteListChange", 6);
26931
+ this.calciteListFilter = createEvent(this, "calciteListFilter", 6);
25765
26932
  // --------------------------------------------------------------------------
25766
26933
  //
25767
26934
  // Properties
@@ -25771,6 +26938,18 @@ class PickList {
25771
26938
  * When `true`, interaction is prevented and the component is displayed with lower opacity.
25772
26939
  */
25773
26940
  this.disabled = false;
26941
+ /**
26942
+ * **read-only** The currently filtered items
26943
+ *
26944
+ * @readonly
26945
+ */
26946
+ this.filteredItems = [];
26947
+ /**
26948
+ * **read-only** The currently filtered items
26949
+ *
26950
+ * @readonly
26951
+ */
26952
+ this.filteredData = [];
25774
26953
  /**
25775
26954
  * When `true`, an input appears at the top of the list that can be used by end users to filter items in the list.
25776
26955
  */
@@ -25802,10 +26981,14 @@ class PickList {
25802
26981
  this.setFilterEl = (el) => {
25803
26982
  this.filterEl = el;
25804
26983
  };
26984
+ this.setFilteredItems = (filteredItems) => {
26985
+ this.filteredItems = filteredItems;
26986
+ };
25805
26987
  this.deselectRemovedItems = deselectRemovedItems.bind(this);
25806
26988
  this.deselectSiblingItems = deselectSiblingItems.bind(this);
25807
26989
  this.selectSiblings = selectSiblings.bind(this);
25808
26990
  this.handleFilter = handleFilter.bind(this);
26991
+ this.handleFilterEvent = handleFilterEvent.bind(this);
25809
26992
  this.getItemData = getItemData.bind(this);
25810
26993
  this.keyDownHandler = keyDownHandler.bind(this);
25811
26994
  }
@@ -25821,6 +27004,9 @@ class PickList {
25821
27004
  disconnectedCallback() {
25822
27005
  cleanUpObserver.call(this);
25823
27006
  }
27007
+ componentDidLoad() {
27008
+ handleInitialFilter.call(this);
27009
+ }
25824
27010
  componentDidRender() {
25825
27011
  updateHostInteraction(this);
25826
27012
  }
@@ -25889,8 +27075,11 @@ class PickList {
25889
27075
  "$tagName$": "calcite-pick-list",
25890
27076
  "$members$": {
25891
27077
  "disabled": [516],
27078
+ "filteredItems": [1040],
27079
+ "filteredData": [1040],
25892
27080
  "filterEnabled": [516, "filter-enabled"],
25893
27081
  "filterPlaceholder": [513, "filter-placeholder"],
27082
+ "filterText": [1537, "filter-text"],
25894
27083
  "headingLevel": [514, "heading-level"],
25895
27084
  "loading": [516],
25896
27085
  "multiple": [516],
@@ -25902,7 +27091,7 @@ class PickList {
25902
27091
  },
25903
27092
  "$listeners$": [[0, "calciteListItemRemove", "calciteListItemRemoveHandler"], [0, "calciteListItemChange", "calciteListItemChangeHandler"], [0, "calciteInternalListItemPropsChange", "calciteInternalListItemPropsChangeHandler"], [0, "calciteInternalListItemValueChange", "calciteInternalListItemValueChangeHandler"], [0, "focusout", "calciteListFocusOutHandler"]],
25904
27093
  "$lazyBundleId$": "-",
25905
- "$attrsToReflect$": [["disabled", "disabled"], ["filterEnabled", "filter-enabled"], ["filterPlaceholder", "filter-placeholder"], ["headingLevel", "heading-level"], ["loading", "loading"], ["multiple", "multiple"], ["selectionFollowsFocus", "selection-follows-focus"]]
27094
+ "$attrsToReflect$": [["disabled", "disabled"], ["filterEnabled", "filter-enabled"], ["filterPlaceholder", "filter-placeholder"], ["filterText", "filter-text"], ["headingLevel", "heading-level"], ["loading", "loading"], ["multiple", "multiple"], ["selectionFollowsFocus", "selection-follows-focus"]]
25906
27095
  }; }
25907
27096
  }
25908
27097
 
@@ -25942,7 +27131,7 @@ class PickListGroup {
25942
27131
  const title = groupTitle;
25943
27132
  const parentLevel = (_a = el.closest("calcite-pick-list")) === null || _a === void 0 ? void 0 : _a.headingLevel;
25944
27133
  const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
25945
- const level = headingLevel || relativeLevel || HEADING_LEVEL$3;
27134
+ const level = headingLevel || relativeLevel;
25946
27135
  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))));
25947
27136
  }
25948
27137
  get el() { return getElement(this); }
@@ -26194,7 +27383,6 @@ const TEXT$6 = {
26194
27383
  const defaultPopoverPlacement = "auto";
26195
27384
  const ARIA_CONTROLS = "aria-controls";
26196
27385
  const ARIA_EXPANDED = "aria-expanded";
26197
- const HEADING_LEVEL$2 = 2;
26198
27386
 
26199
27387
  class PopoverManager$1 {
26200
27388
  constructor() {
@@ -26577,7 +27765,7 @@ class Popover {
26577
27765
  }
26578
27766
  renderHeader() {
26579
27767
  const { heading, headingLevel } = this;
26580
- const headingNode = heading ? (hAsync(Heading, { class: CSS$h.heading, level: headingLevel || HEADING_LEVEL$2 }, heading)) : null;
27768
+ const headingNode = heading ? (hAsync(Heading, { class: CSS$h.heading, level: headingLevel }, heading)) : null;
26581
27769
  return headingNode ? (hAsync("div", { class: CSS$h.header }, headingNode, this.renderCloseButton())) : null;
26582
27770
  }
26583
27771
  render() {
@@ -35018,33 +36206,6 @@ class TimePicker {
35018
36206
  }
35019
36207
 
35020
36208
  const CSS$4 = {
35021
- header: "header",
35022
- heading: "heading",
35023
- close: "close",
35024
- container: "container",
35025
- tipContainer: "tip-container",
35026
- tipContainerAdvancing: "tip-container--advancing",
35027
- tipContainerRetreating: "tip-container--retreating",
35028
- pagination: "pagination",
35029
- pagePosition: "page-position",
35030
- pageNext: "page-next",
35031
- pagePrevious: "page-previous"
35032
- };
35033
- const ICONS$3 = {
35034
- chevronLeft: "chevron-left",
35035
- chevronRight: "chevron-right",
35036
- close: "x"
35037
- };
35038
- const TEXT$1 = {
35039
- defaultGroupTitle: "Tips",
35040
- defaultPaginationLabel: "Tip",
35041
- close: "Close",
35042
- previous: "Previous",
35043
- next: "Next"
35044
- };
35045
- const HEADING_LEVEL$1 = 2;
35046
-
35047
- const CSS$3 = {
35048
36209
  container: "container",
35049
36210
  header: "header",
35050
36211
  heading: "heading",
@@ -35053,16 +36214,15 @@ const CSS$3 = {
35053
36214
  content: "content",
35054
36215
  info: "info"
35055
36216
  };
35056
- const ICONS$2 = {
36217
+ const ICONS$3 = {
35057
36218
  close: "x"
35058
36219
  };
35059
36220
  const SLOTS$2 = {
35060
36221
  thumbnail: "thumbnail"
35061
36222
  };
35062
- const TEXT = {
36223
+ const TEXT$1 = {
35063
36224
  close: "Close"
35064
36225
  };
35065
- const HEADING_LEVEL = (HEADING_LEVEL$1 + 1);
35066
36226
 
35067
36227
  const tipCss = "@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-tip: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-tip{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tip{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tip{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tip{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tip{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-tip:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-tip:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tip-h{display:none}/*!@:host*/.sc-calcite-tip-h{position:relative;margin:1rem;box-sizing:border-box;display:flex;flex-direction:row;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}/*!@:host **/.sc-calcite-tip-h *.sc-calcite-tip{box-sizing:border-box}/*!@.container*/.container.sc-calcite-tip{inline-size:100%;padding:1rem}/*!@:host([dismissed]),\n:host([dismissed]) .container*/[dismissed].sc-calcite-tip-h,[dismissed].sc-calcite-tip-h .container.sc-calcite-tip{display:none}/*!@:host([selected]) .container*/[selected].sc-calcite-tip-h .container.sc-calcite-tip{margin:0px;border-style:none;padding:0px}/*!@.header*/.header.sc-calcite-tip{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-tip{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}/*!@.header .heading*/.header.sc-calcite-tip .heading.sc-calcite-tip{flex:1 1 auto;padding:0.5rem}/*!@.header*/.header.sc-calcite-tip{margin-block-end:0.5rem}/*!@.header .heading*/.header.sc-calcite-tip .heading.sc-calcite-tip{padding:0px;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-ui-text-1)}/*!@.container[hidden]*/.container[hidden].sc-calcite-tip{display:none}/*!@.content*/.content.sc-calcite-tip{display:flex}/*!@.info*/.info.sc-calcite-tip{padding-block:0px;padding-inline:1rem;inline-size:70%}/*!@.info:only-child*/.info.sc-calcite-tip:only-child{inline-size:100%;padding-inline:0px}/*!@::slotted(p)*/.sc-calcite-tip-s>p{margin-block-start:0px}/*!@::slotted(a)*/.sc-calcite-tip-s>a{outline-color:transparent;color:var(--calcite-ui-brand)}/*!@::slotted(a:focus)*/.sc-calcite-tip-s>a:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}/*!@.image-frame*/.image-frame.sc-calcite-tip{inline-size:25%}/*!@.image-frame img*/.image-frame.sc-calcite-tip img.sc-calcite-tip{max-inline-size:100%}/*!@::slotted(img)*/.sc-calcite-tip-s>img{max-inline-size:100%}";
35068
36228
 
@@ -35124,26 +36284,26 @@ class Tip {
35124
36284
  const { heading, headingLevel, el } = this;
35125
36285
  const parentLevel = (_a = el.closest("calcite-tip-manager")) === null || _a === void 0 ? void 0 : _a.headingLevel;
35126
36286
  const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
35127
- const level = headingLevel || relativeLevel || HEADING_LEVEL;
35128
- return heading ? (hAsync("header", { class: CSS$3.header }, hAsync(Heading, { class: CSS$3.heading, level: level }, heading))) : null;
36287
+ const level = headingLevel || relativeLevel;
36288
+ return heading ? (hAsync("header", { class: CSS$4.header }, hAsync(Heading, { class: CSS$4.heading, level: level }, heading))) : null;
35129
36289
  }
35130
36290
  renderDismissButton() {
35131
36291
  const { nonDismissible, hideTip, intlClose } = this;
35132
- const text = intlClose || TEXT.close;
35133
- return !nonDismissible ? (hAsync("calcite-action", { class: CSS$3.close, icon: ICONS$2.close, onClick: hideTip, scale: "l", text: text })) : null;
36292
+ const text = intlClose || TEXT$1.close;
36293
+ return !nonDismissible ? (hAsync("calcite-action", { class: CSS$4.close, icon: ICONS$3.close, onClick: hideTip, scale: "l", text: text })) : null;
35134
36294
  }
35135
36295
  renderImageFrame() {
35136
36296
  const { el } = this;
35137
- return getSlotted(el, SLOTS$2.thumbnail) ? (hAsync("div", { class: CSS$3.imageFrame, key: "thumbnail" }, hAsync("slot", { name: SLOTS$2.thumbnail }))) : null;
36297
+ return getSlotted(el, SLOTS$2.thumbnail) ? (hAsync("div", { class: CSS$4.imageFrame, key: "thumbnail" }, hAsync("slot", { name: SLOTS$2.thumbnail }))) : null;
35138
36298
  }
35139
36299
  renderInfoNode() {
35140
- return (hAsync("div", { class: CSS$3.info }, hAsync("slot", null)));
36300
+ return (hAsync("div", { class: CSS$4.info }, hAsync("slot", null)));
35141
36301
  }
35142
36302
  renderContent() {
35143
- return (hAsync("div", { class: CSS$3.content }, this.renderImageFrame(), this.renderInfoNode()));
36303
+ return (hAsync("div", { class: CSS$4.content }, this.renderImageFrame(), this.renderInfoNode()));
35144
36304
  }
35145
36305
  render() {
35146
- return (hAsync(Fragment, null, hAsync("article", { class: CSS$3.container }, this.renderHeader(), this.renderContent()), this.renderDismissButton()));
36306
+ return (hAsync(Fragment, null, hAsync("article", { class: CSS$4.container }, this.renderHeader(), this.renderContent()), this.renderDismissButton()));
35147
36307
  }
35148
36308
  get el() { return getElement(this); }
35149
36309
  static get style() { return tipCss; }
@@ -35189,6 +36349,32 @@ class TipGroup {
35189
36349
  }; }
35190
36350
  }
35191
36351
 
36352
+ const CSS$3 = {
36353
+ header: "header",
36354
+ heading: "heading",
36355
+ close: "close",
36356
+ container: "container",
36357
+ tipContainer: "tip-container",
36358
+ tipContainerAdvancing: "tip-container--advancing",
36359
+ tipContainerRetreating: "tip-container--retreating",
36360
+ pagination: "pagination",
36361
+ pagePosition: "page-position",
36362
+ pageNext: "page-next",
36363
+ pagePrevious: "page-previous"
36364
+ };
36365
+ const ICONS$2 = {
36366
+ chevronLeft: "chevron-left",
36367
+ chevronRight: "chevron-right",
36368
+ close: "x"
36369
+ };
36370
+ const TEXT = {
36371
+ defaultGroupTitle: "Tips",
36372
+ defaultPaginationLabel: "Tip",
36373
+ close: "Close",
36374
+ previous: "Previous",
36375
+ next: "Next"
36376
+ };
36377
+
35192
36378
  const tipManagerCss = "@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-tip-manager: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-tip-manager{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tip-manager{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tip-manager{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tip-manager{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tip-manager{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-tip-manager:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-tip-manager:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tip-manager-h{display:none}/*!@:host*/.sc-calcite-tip-manager-h{box-sizing:border-box;display:block;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2);--calcite-tip-manager-height:19vh}/*!@:host **/.sc-calcite-tip-manager-h *.sc-calcite-tip-manager{box-sizing:border-box}/*!@:host([closed])*/[closed].sc-calcite-tip-manager-h{display:none}/*!@.header*/.header.sc-calcite-tip-manager{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-tip-manager{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}/*!@.header .heading*/.header.sc-calcite-tip-manager .heading.sc-calcite-tip-manager{flex:1 1 auto;padding:0.5rem}/*!@.header*/.header.sc-calcite-tip-manager{border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;padding-inline-end:0px;padding-inline-start:1rem}/*!@.header .heading*/.header.sc-calcite-tip-manager .heading.sc-calcite-tip-manager{padding:0px;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-1)}/*!@.container*/.container.sc-calcite-tip-manager{position:relative;overflow:hidden;outline-color:transparent;min-block-size:150px}/*!@.container:focus*/.container.sc-calcite-tip-manager:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}/*!@.tip-container*/.tip-container.sc-calcite-tip-manager{margin-block-start:1px;display:flex;align-items:flex-start;justify-content:center;overflow:auto;outline-color:transparent;animation-name:none;animation-duration:var(--calcite-animation-timing);block-size:var(--calcite-tip-manager-height)}/*!@.tip-container:focus*/.tip-container.sc-calcite-tip-manager:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}/*!@::slotted(calcite-tip)*/.sc-calcite-tip-manager-s>calcite-tip{border-style:none;padding:0.75rem;max-inline-size:var(--calcite-tip-max-width)}/*!@.tip-container--advancing*/.tip-container--advancing.sc-calcite-tip-manager{animation-name:tip-advance}/*!@.tip-container--retreating*/.tip-container--retreating.sc-calcite-tip-manager{animation-name:tip-retreat}/*!@.pagination*/.pagination.sc-calcite-tip-manager{display:flex;align-items:center;justify-content:center;padding-inline:0px;padding-block:0.75rem 0.5rem}/*!@.page-position*/.page-position.sc-calcite-tip-manager{margin-block:0px;margin-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}@keyframes tip-advance{0%{opacity:0;transform:translate3d(50px, 0, 0) scale(0.99)}100%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}}@keyframes tip-retreat{0%{opacity:0;transform:translate3d(-50px, 0, 0) scale(0.99)}100%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}}";
35193
36379
 
35194
36380
  /**
@@ -35316,7 +36502,7 @@ class TipManager {
35316
36502
  updateGroupTitle() {
35317
36503
  const selectedTip = this.tips[this.selectedIndex];
35318
36504
  const tipParent = selectedTip.closest("calcite-tip-group");
35319
- this.groupTitle = (tipParent === null || tipParent === void 0 ? void 0 : tipParent.groupTitle) || this.intlDefaultTitle || TEXT$1.defaultGroupTitle;
36505
+ this.groupTitle = (tipParent === null || tipParent === void 0 ? void 0 : tipParent.groupTitle) || this.intlDefaultTitle || TEXT.defaultGroupTitle;
35320
36506
  }
35321
36507
  // --------------------------------------------------------------------------
35322
36508
  //
@@ -35326,21 +36512,21 @@ class TipManager {
35326
36512
  renderPagination() {
35327
36513
  const dir = getElementDir(this.el);
35328
36514
  const { selectedIndex, tips, total, intlNext, intlPrevious, intlPaginationLabel } = this;
35329
- const nextLabel = intlNext || TEXT$1.next;
35330
- const previousLabel = intlPrevious || TEXT$1.previous;
35331
- const paginationLabel = intlPaginationLabel || TEXT$1.defaultPaginationLabel;
35332
- return tips.length > 1 ? (hAsync("footer", { class: CSS$4.pagination }, hAsync("calcite-action", { class: CSS$4.pagePrevious, icon: dir === "ltr" ? ICONS$3.chevronLeft : ICONS$3.chevronRight, onClick: this.previousClicked, scale: "m", text: previousLabel }), hAsync("span", { class: CSS$4.pagePosition }, `${paginationLabel} ${selectedIndex + 1}/${total}`), hAsync("calcite-action", { class: CSS$4.pageNext, icon: dir === "ltr" ? ICONS$3.chevronRight : ICONS$3.chevronLeft, onClick: this.nextClicked, scale: "m", text: nextLabel }))) : null;
36515
+ const nextLabel = intlNext || TEXT.next;
36516
+ const previousLabel = intlPrevious || TEXT.previous;
36517
+ const paginationLabel = intlPaginationLabel || TEXT.defaultPaginationLabel;
36518
+ return tips.length > 1 ? (hAsync("footer", { class: CSS$3.pagination }, hAsync("calcite-action", { class: CSS$3.pagePrevious, icon: dir === "ltr" ? ICONS$2.chevronLeft : ICONS$2.chevronRight, onClick: this.previousClicked, scale: "m", text: previousLabel }), hAsync("span", { class: CSS$3.pagePosition }, `${paginationLabel} ${selectedIndex + 1}/${total}`), hAsync("calcite-action", { class: CSS$3.pageNext, icon: dir === "ltr" ? ICONS$2.chevronRight : ICONS$2.chevronLeft, onClick: this.nextClicked, scale: "m", text: nextLabel }))) : null;
35333
36519
  }
35334
36520
  render() {
35335
36521
  const { closed, direction, headingLevel, groupTitle, selectedIndex, intlClose, total } = this;
35336
- const closeLabel = intlClose || TEXT$1.close;
36522
+ const closeLabel = intlClose || TEXT.close;
35337
36523
  if (total === 0) {
35338
36524
  return null;
35339
36525
  }
35340
- return (hAsync("section", { "aria-hidden": toAriaBoolean(closed), class: CSS$4.container, hidden: closed, onKeyDown: this.tipManagerKeyDownHandler, ref: this.storeContainerRef, tabIndex: 0 }, hAsync("header", { class: CSS$4.header }, hAsync(Heading, { class: CSS$4.heading, level: headingLevel || HEADING_LEVEL$1 }, groupTitle), hAsync("calcite-action", { class: CSS$4.close, onClick: this.hideTipManager, scale: "m", text: closeLabel }, hAsync("calcite-icon", { icon: ICONS$3.close, scale: "m" }))), hAsync("div", { class: {
35341
- [CSS$4.tipContainer]: true,
35342
- [CSS$4.tipContainerAdvancing]: !closed && direction === "advancing",
35343
- [CSS$4.tipContainerRetreating]: !closed && direction === "retreating"
36526
+ return (hAsync("section", { "aria-hidden": toAriaBoolean(closed), class: CSS$3.container, hidden: closed, onKeyDown: this.tipManagerKeyDownHandler, ref: this.storeContainerRef, tabIndex: 0 }, hAsync("header", { class: CSS$3.header }, hAsync(Heading, { class: CSS$3.heading, level: headingLevel }, groupTitle), hAsync("calcite-action", { class: CSS$3.close, onClick: this.hideTipManager, scale: "m", text: closeLabel }, hAsync("calcite-icon", { icon: ICONS$2.close, scale: "m" }))), hAsync("div", { class: {
36527
+ [CSS$3.tipContainer]: true,
36528
+ [CSS$3.tipContainerAdvancing]: !closed && direction === "advancing",
36529
+ [CSS$3.tipContainerRetreating]: !closed && direction === "retreating"
35344
36530
  }, key: selectedIndex, tabIndex: 0 }, hAsync("slot", null)), this.renderPagination()));
35345
36531
  }
35346
36532
  get el() { return getElement(this); }
@@ -36016,7 +37202,7 @@ class Tree {
36016
37202
  }
36017
37203
  if (event.key === "ArrowRight" && !target.disabled) {
36018
37204
  if (target.hasChildren) {
36019
- if (target.expanded && getRootNode(this.el).activeElement === target) {
37205
+ if (target.expanded && getRootNode$1(this.el).activeElement === target) {
36020
37206
  // When focus is on an open node, moves focus to the first child node.
36021
37207
  (_a = getEnabledSiblingItem(target.querySelector("calcite-tree-item"), "down")) === null || _a === void 0 ? void 0 : _a.focus();
36022
37208
  event.preventDefault();
@@ -36437,6 +37623,7 @@ class ValueList {
36437
37623
  registerInstance(this, hostRef);
36438
37624
  this.calciteListChange = createEvent(this, "calciteListChange", 6);
36439
37625
  this.calciteListOrderChange = createEvent(this, "calciteListOrderChange", 6);
37626
+ this.calciteListFilter = createEvent(this, "calciteListFilter", 6);
36440
37627
  // --------------------------------------------------------------------------
36441
37628
  //
36442
37629
  // Properties
@@ -36450,6 +37637,18 @@ class ValueList {
36450
37637
  * When `true`, `calcite-value-list-item`s are sortable via a draggable button.
36451
37638
  */
36452
37639
  this.dragEnabled = false;
37640
+ /**
37641
+ * **read-only** The currently filtered items
37642
+ *
37643
+ * @readonly
37644
+ */
37645
+ this.filteredItems = [];
37646
+ /**
37647
+ * **read-only** The currently filtered items
37648
+ *
37649
+ * @readonly
37650
+ */
37651
+ this.filteredData = [];
36453
37652
  /**
36454
37653
  * When `true`, an input appears at the top of the component that can be used by end users to filter list items.
36455
37654
  */
@@ -36481,10 +37680,14 @@ class ValueList {
36481
37680
  this.setFilterEl = (el) => {
36482
37681
  this.filterEl = el;
36483
37682
  };
37683
+ this.setFilteredItems = (filteredItems) => {
37684
+ this.filteredItems = filteredItems;
37685
+ };
36484
37686
  this.deselectRemovedItems = deselectRemovedItems.bind(this);
36485
37687
  this.deselectSiblingItems = deselectSiblingItems.bind(this);
36486
37688
  this.selectSiblings = selectSiblings.bind(this);
36487
37689
  this.handleFilter = handleFilter.bind(this);
37690
+ this.handleFilterEvent = handleFilterEvent.bind(this);
36488
37691
  this.getItemData = getItemData.bind(this);
36489
37692
  this.keyDownHandler = (event) => {
36490
37693
  if (event.defaultPrevented) {
@@ -36545,6 +37748,7 @@ class ValueList {
36545
37748
  }
36546
37749
  componentDidLoad() {
36547
37750
  this.setUpDragAndDrop();
37751
+ handleInitialFilter.call(this);
36548
37752
  }
36549
37753
  componentDidRender() {
36550
37754
  updateHostInteraction(this);
@@ -36659,8 +37863,11 @@ class ValueList {
36659
37863
  "$members$": {
36660
37864
  "disabled": [516],
36661
37865
  "dragEnabled": [516, "drag-enabled"],
37866
+ "filteredItems": [1040],
37867
+ "filteredData": [1040],
36662
37868
  "filterEnabled": [516, "filter-enabled"],
36663
37869
  "filterPlaceholder": [513, "filter-placeholder"],
37870
+ "filterText": [1537, "filter-text"],
36664
37871
  "group": [513],
36665
37872
  "loading": [516],
36666
37873
  "multiple": [516],
@@ -36676,7 +37883,7 @@ class ValueList {
36676
37883
  },
36677
37884
  "$listeners$": [[0, "focusout", "calciteListFocusOutHandler"], [0, "calciteListItemRemove", "calciteListItemRemoveHandler"], [0, "calciteListItemChange", "calciteListItemChangeHandler"], [0, "calciteInternalListItemPropsChange", "calciteInternalListItemPropsChangeHandler"], [0, "calciteInternalListItemValueChange", "calciteInternalListItemValueChangeHandler"]],
36678
37885
  "$lazyBundleId$": "-",
36679
- "$attrsToReflect$": [["disabled", "disabled"], ["dragEnabled", "drag-enabled"], ["filterEnabled", "filter-enabled"], ["filterPlaceholder", "filter-placeholder"], ["group", "group"], ["loading", "loading"], ["multiple", "multiple"], ["selectionFollowsFocus", "selection-follows-focus"]]
37886
+ "$attrsToReflect$": [["disabled", "disabled"], ["dragEnabled", "drag-enabled"], ["filterEnabled", "filter-enabled"], ["filterPlaceholder", "filter-placeholder"], ["filterText", "filter-text"], ["group", "group"], ["loading", "loading"], ["multiple", "multiple"], ["selectionFollowsFocus", "selection-follows-focus"]]
36680
37887
  }; }
36681
37888
  }
36682
37889