@esri/calcite-components 1.0.0-next.633 → 1.0.0-next.635

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 (664) 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-bbd46504.entry.js → p-003cd928.entry.js} +2 -2
  4. package/dist/calcite/{p-29cf00c4.entry.js → p-02319a55.entry.js} +2 -2
  5. package/dist/calcite/{p-0f31433c.entry.js → p-047a894c.entry.js} +2 -2
  6. package/dist/calcite/p-050bcfa7.js +6 -0
  7. package/dist/calcite/{p-cb016c52.entry.js → p-0cdac321.entry.js} +2 -2
  8. package/dist/calcite/p-0d0ca23e.entry.js +6 -0
  9. package/dist/calcite/{p-4794e7df.js → p-0dae116f.js} +1 -1
  10. package/dist/calcite/{p-7def899e.entry.js → p-0e1b3356.entry.js} +2 -2
  11. package/dist/calcite/{p-d25a6228.js → p-126fa44e.js} +1 -1
  12. package/dist/calcite/{p-22c8223d.js → p-16bb1c44.js} +1 -1
  13. package/dist/calcite/{p-d52deb05.entry.js → p-174f21bd.entry.js} +2 -2
  14. package/dist/calcite/{p-2a52b1af.entry.js → p-184e54f7.entry.js} +2 -2
  15. package/dist/calcite/{p-a359b901.entry.js → p-1c63d0d7.entry.js} +2 -2
  16. package/dist/calcite/p-1c7d5079.entry.js +6 -0
  17. package/dist/calcite/{p-431e0692.entry.js → p-1fb2b938.entry.js} +2 -2
  18. package/dist/calcite/{p-810fcf41.entry.js → p-20544b89.entry.js} +2 -2
  19. package/dist/calcite/{p-c3d50492.js → p-2210ff78.js} +1 -1
  20. package/dist/calcite/{p-bb73d51b.entry.js → p-227e6007.entry.js} +2 -2
  21. package/dist/calcite/{p-73f93e1c.entry.js → p-23e39973.entry.js} +2 -2
  22. package/dist/calcite/p-2431bbda.entry.js +6 -0
  23. package/dist/calcite/{p-1cebb96f.entry.js → p-28db2e6a.entry.js} +2 -2
  24. package/dist/calcite/{p-4f72fc01.js → p-2c1fcd36.js} +1 -1
  25. package/dist/calcite/{p-d935cc1b.entry.js → p-2c2b7c1c.entry.js} +2 -2
  26. package/dist/calcite/{p-14a7da73.entry.js → p-2c3d72da.entry.js} +2 -2
  27. package/dist/calcite/{p-ab3812ba.js → p-2e729f17.js} +1 -1
  28. package/dist/calcite/{p-a6f1ebf6.entry.js → p-32aabd8a.entry.js} +2 -2
  29. package/dist/calcite/{p-c8640992.js → p-3318431e.js} +1 -1
  30. package/dist/calcite/{p-c24271dc.entry.js → p-34a924fa.entry.js} +2 -2
  31. package/dist/calcite/p-35b23b55.js +15 -0
  32. package/dist/calcite/{p-31090aba.js → p-3aadc225.js} +1 -1
  33. package/dist/calcite/p-4058beb9.entry.js +6 -0
  34. package/dist/calcite/{p-24681cc9.js → p-419c5f27.js} +1 -1
  35. package/dist/calcite/{p-deb7df1e.js → p-41cf73d5.js} +1 -1
  36. package/dist/calcite/{p-18f9b87b.entry.js → p-430967c9.entry.js} +2 -2
  37. package/dist/calcite/p-44dfb0b5.entry.js +6 -0
  38. package/dist/calcite/{p-a2ab3648.js → p-4a735f17.js} +1 -1
  39. package/dist/calcite/{p-18b9b69e.js → p-4ebf8ec4.js} +1 -1
  40. package/dist/calcite/{p-ac3ace5c.entry.js → p-4f052c43.entry.js} +2 -2
  41. package/dist/calcite/{p-09749684.entry.js → p-4feb2c51.entry.js} +2 -2
  42. package/dist/calcite/{p-12f64f8b.entry.js → p-510399e0.entry.js} +2 -2
  43. package/dist/calcite/{p-cfaa9ea8.js → p-51b3eb60.js} +2 -2
  44. package/dist/calcite/{p-3e9f366c.entry.js → p-59fa4629.entry.js} +2 -2
  45. package/dist/calcite/{p-2c730d84.entry.js → p-5e999bda.entry.js} +2 -2
  46. package/dist/calcite/{p-05c3789b.js → p-63030c4f.js} +1 -1
  47. package/dist/calcite/p-64d1a9ae.entry.js +6 -0
  48. package/dist/calcite/{p-69d9a248.entry.js → p-66f8f8e2.entry.js} +2 -2
  49. package/dist/calcite/{p-f61babd1.js → p-68f451fb.js} +2 -2
  50. package/dist/calcite/{p-308ed699.entry.js → p-6a76beed.entry.js} +2 -2
  51. package/dist/calcite/{p-513fef9a.js → p-6ffc1716.js} +2 -2
  52. package/dist/calcite/p-71cf6916.entry.js +6 -0
  53. package/dist/calcite/{p-d5a92819.entry.js → p-733b274a.entry.js} +2 -2
  54. package/dist/calcite/{p-ac5e38a2.entry.js → p-73fa7a5f.entry.js} +2 -2
  55. package/dist/calcite/{p-3d69f172.entry.js → p-789a8048.entry.js} +2 -2
  56. package/dist/calcite/{p-2c9d7402.js → p-7b8c4581.js} +2 -2
  57. package/dist/calcite/{p-3cc531b1.entry.js → p-7d295cf3.entry.js} +2 -2
  58. package/dist/calcite/{p-d26767ec.entry.js → p-7d3f0c98.entry.js} +2 -2
  59. package/dist/calcite/{p-5c05198d.entry.js → p-7f789875.entry.js} +2 -2
  60. package/dist/calcite/{p-6f30e051.entry.js → p-7fbb463d.entry.js} +2 -2
  61. package/dist/calcite/{p-db293e50.entry.js → p-87d5f0a3.entry.js} +2 -2
  62. package/dist/calcite/{p-d17b8ee9.js → p-8d124d33.js} +2 -2
  63. package/dist/calcite/p-9d61b3b9.entry.js +6 -0
  64. package/dist/calcite/{p-1806b759.entry.js → p-9e38e176.entry.js} +2 -2
  65. package/dist/calcite/{p-004dc91c.js → p-9e930bb8.js} +1 -1
  66. package/dist/calcite/{p-e8d83a55.entry.js → p-9ec94c00.entry.js} +2 -2
  67. package/dist/calcite/{p-dcad31e0.entry.js → p-9fc23e93.entry.js} +2 -2
  68. package/dist/calcite/{p-319d0fb7.js → p-a3092903.js} +2 -2
  69. package/dist/calcite/{p-3bb21f63.entry.js → p-a9fc00ba.entry.js} +2 -2
  70. package/dist/calcite/{p-26b693c2.entry.js → p-abe0e309.entry.js} +2 -2
  71. package/dist/calcite/{p-49a5573d.entry.js → p-b0b67288.entry.js} +2 -2
  72. package/dist/calcite/{p-498de00a.js → p-b27c59bc.js} +2 -2
  73. package/dist/calcite/{p-e2db7cb6.entry.js → p-b2fee745.entry.js} +2 -2
  74. package/dist/calcite/{p-953012fa.entry.js → p-b5c98e4a.entry.js} +2 -2
  75. package/dist/calcite/{p-266871ba.entry.js → p-b5fdb4aa.entry.js} +2 -2
  76. package/dist/calcite/{p-da667566.entry.js → p-b6d67959.entry.js} +2 -2
  77. package/dist/calcite/{p-d4246ab6.js → p-b7fd85f7.js} +2 -2
  78. package/dist/calcite/p-bb80464d.js +6 -0
  79. package/dist/calcite/{p-d010539f.entry.js → p-c1629836.entry.js} +2 -2
  80. package/dist/calcite/{p-fb3e8b9b.entry.js → p-c8c0d267.entry.js} +2 -2
  81. package/dist/calcite/p-d1cfc4b3.entry.js +6 -0
  82. package/dist/calcite/{p-cc2c16c4.entry.js → p-dd5132ff.entry.js} +2 -2
  83. package/dist/calcite/{p-d2f83c6a.entry.js → p-e17b4359.entry.js} +2 -2
  84. package/dist/calcite/{p-5215672d.js → p-e1a01667.js} +2 -2
  85. package/dist/calcite/{p-8021f786.entry.js → p-e2015219.entry.js} +2 -2
  86. package/dist/calcite/{p-4ada52dc.entry.js → p-e334b08c.entry.js} +2 -2
  87. package/dist/calcite/{p-035fa26b.js → p-e985b1ca.js} +1 -1
  88. package/dist/calcite/{p-32abefe9.js → p-ee4b7f4b.js} +1 -1
  89. package/dist/calcite/{p-b672fd97.js → p-efe6b273.js} +2 -2
  90. package/dist/calcite/p-f651dccb.js +6 -0
  91. package/dist/calcite/{p-58de9d51.entry.js → p-f660df45.entry.js} +2 -2
  92. package/dist/calcite/{p-2ebffb8e.entry.js → p-f6d1d1d5.entry.js} +2 -2
  93. package/dist/cjs/{ExpandToggle-3cab12e1.js → ExpandToggle-e018641b.js} +5 -5
  94. package/dist/cjs/{Heading-79adac08.js → Heading-2e9dceb8.js} +2 -2
  95. package/dist/cjs/{app-globals-0e5a6ce5.js → app-globals-0949b975.js} +2 -2
  96. package/dist/cjs/{array-6a2dea2c.js → array-8cbd5b4a.js} +1 -1
  97. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  98. package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
  99. package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
  100. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  101. package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
  102. package/dist/cjs/calcite-action.cjs.entry.js +8 -8
  103. package/dist/cjs/calcite-alert.cjs.entry.js +10 -10
  104. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  105. package/dist/cjs/calcite-block_2.cjs.entry.js +10 -10
  106. package/dist/cjs/calcite-button.cjs.entry.js +10 -10
  107. package/dist/cjs/calcite-card.cjs.entry.js +8 -8
  108. package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
  109. package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
  110. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +10 -10
  111. package/dist/cjs/calcite-combobox_3.cjs.entry.js +14 -14
  112. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +11 -11
  113. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +11 -11
  114. package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
  115. package/dist/cjs/calcite-filter.cjs.entry.js +8 -8
  116. package/dist/cjs/calcite-flow-item.cjs.entry.js +7 -7
  117. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  118. package/dist/cjs/calcite-graph_2.cjs.entry.js +12 -12
  119. package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
  120. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  121. package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
  122. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +15 -15
  123. package/dist/cjs/calcite-input-message.cjs.entry.js +12 -7
  124. package/dist/cjs/calcite-input-number.cjs.entry.js +12 -12
  125. package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
  126. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +12 -12
  127. package/dist/cjs/calcite-input.cjs.entry.js +12 -12
  128. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  129. package/dist/cjs/calcite-link.cjs.entry.js +6 -6
  130. package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
  131. package/dist/cjs/calcite-loader.cjs.entry.js +10 -5
  132. package/dist/cjs/calcite-modal.cjs.entry.js +14 -1275
  133. package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
  134. package/dist/cjs/calcite-option_3.cjs.entry.js +9 -9
  135. package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
  136. package/dist/cjs/calcite-panel.cjs.entry.js +10 -10
  137. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -12
  138. package/dist/cjs/calcite-popover_2.cjs.entry.js +24 -13
  139. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  140. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  141. package/dist/cjs/calcite-radio-button.cjs.entry.js +9 -9
  142. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -8
  143. package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
  144. package/dist/cjs/calcite-scrim.cjs.entry.js +3 -3
  145. package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
  146. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  147. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  148. package/dist/cjs/calcite-stepper_2.cjs.entry.js +9 -9
  149. package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
  150. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  151. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
  152. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  153. package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
  154. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +37 -13
  155. package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
  156. package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -12
  157. package/dist/cjs/calcite.cjs.js +5 -5
  158. package/dist/cjs/{conditionalSlot-1322fc35.js → conditionalSlot-c28021dc.js} +3 -3
  159. package/dist/cjs/{debounce-0f9e9abc.js → debounce-27f4872f.js} +1 -1
  160. package/dist/cjs/{dom-13de8dae.js → dom-5245652b.js} +3 -3
  161. package/dist/cjs/{filter-b64d328c.js → filter-47f3c4df.js} +2 -2
  162. package/dist/cjs/{floating-ui-81762090.js → floating-ui-c4264248.js} +4 -4
  163. package/dist/cjs/focusTrapComponent-ff4957d9.js +1274 -0
  164. package/dist/cjs/{form-5d8e6d3d.js → form-2ee231ac.js} +3 -3
  165. package/dist/cjs/{guid-4c424c40.js → guid-88aff5b7.js} +1 -1
  166. package/dist/cjs/{index-a6176241.js → index-3d158670.js} +1 -1
  167. package/dist/cjs/index.cjs.js +1 -1
  168. package/dist/cjs/{interactive-4c92331d.js → interactive-659fd37c.js} +1 -1
  169. package/dist/cjs/{interfaces-31dee91d.js → interfaces-40ceb8ba.js} +1 -1
  170. package/dist/cjs/{key-98575516.js → key-feab4f11.js} +1 -1
  171. package/dist/cjs/{label-40d2674d.js → label-dd4edfec.js} +2 -2
  172. package/dist/cjs/loader.cjs.js +5 -5
  173. package/dist/cjs/{locale-59a564a4.js → locale-3825dbc0.js} +4 -4
  174. package/dist/cjs/{math-434fe599.js → math-3ef4a1ed.js} +1 -1
  175. package/dist/cjs/{nonChromiumPlatformUtils-4af36414.js → nonChromiumPlatformUtils-96decf6b.js} +6 -6
  176. package/dist/cjs/{observers-5bc9fe46.js → observers-460db0ff.js} +1 -1
  177. package/dist/cjs/{openCloseComponent-67cd4a5b.js → openCloseComponent-389f3b15.js} +1 -1
  178. package/dist/cjs/{resources-a665ff66.js → resources-4ba7daaf.js} +1 -1
  179. package/dist/cjs/{resources-a28e66cd.js → resources-8cec4531.js} +1 -1
  180. package/dist/cjs/{resources-73628073.js → resources-8d870113.js} +1 -1
  181. package/dist/cjs/{resources-e3e0e1e3.js → resources-90e2407e.js} +5 -5
  182. package/dist/cjs/{resources-aace079b.js → resources-adc133e8.js} +3 -3
  183. package/dist/cjs/{resources-69bd2041.js → resources-eef7f920.js} +1 -1
  184. package/dist/cjs/{sortable.esm-c1959d54.js → sortable.esm-2847bee5.js} +1 -1
  185. package/dist/cjs/{utils-62376f8f.js → utils-42d63f28.js} +1 -1
  186. package/dist/collection/components/accordion/accordion.js +1 -1
  187. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  188. package/dist/collection/components/accordion-item/resources.js +1 -1
  189. package/dist/collection/components/action/action.js +2 -2
  190. package/dist/collection/components/action/resources.js +1 -1
  191. package/dist/collection/components/action-bar/action-bar.js +1 -1
  192. package/dist/collection/components/action-bar/resources.js +1 -1
  193. package/dist/collection/components/action-bar/utils.js +1 -1
  194. package/dist/collection/components/action-group/action-group.js +1 -1
  195. package/dist/collection/components/action-group/resources.js +1 -1
  196. package/dist/collection/components/action-menu/action-menu.js +2 -2
  197. package/dist/collection/components/action-menu/resources.js +1 -1
  198. package/dist/collection/components/action-pad/action-pad.js +1 -1
  199. package/dist/collection/components/action-pad/resources.js +1 -1
  200. package/dist/collection/components/alert/alert.js +1 -1
  201. package/dist/collection/components/alert/interfaces.js +1 -1
  202. package/dist/collection/components/alert/resources.js +1 -1
  203. package/dist/collection/components/avatar/avatar.js +1 -1
  204. package/dist/collection/components/avatar/utils.js +1 -1
  205. package/dist/collection/components/block/block.js +1 -1
  206. package/dist/collection/components/block/resources.js +1 -1
  207. package/dist/collection/components/block-section/block-section.js +1 -1
  208. package/dist/collection/components/block-section/resources.js +1 -1
  209. package/dist/collection/components/button/button.js +2 -2
  210. package/dist/collection/components/button/resources.js +1 -1
  211. package/dist/collection/components/card/card.js +2 -2
  212. package/dist/collection/components/card/resources.js +1 -1
  213. package/dist/collection/components/checkbox/checkbox.js +1 -1
  214. package/dist/collection/components/chip/chip.js +1 -1
  215. package/dist/collection/components/chip/resources.js +1 -1
  216. package/dist/collection/components/color-picker/color-picker.js +1 -1
  217. package/dist/collection/components/color-picker/resources.js +1 -1
  218. package/dist/collection/components/color-picker/utils.js +1 -1
  219. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  220. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  221. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  222. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  223. package/dist/collection/components/combobox/combobox.js +1 -1
  224. package/dist/collection/components/combobox/resources.js +1 -1
  225. package/dist/collection/components/combobox/utils.js +1 -1
  226. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  227. package/dist/collection/components/combobox-item/resources.js +1 -1
  228. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  229. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  230. package/dist/collection/components/date-picker/date-picker.js +1 -1
  231. package/dist/collection/components/date-picker/resources.js +1 -1
  232. package/dist/collection/components/date-picker/utils.js +1 -1
  233. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  234. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  235. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  236. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  237. package/dist/collection/components/dropdown/dropdown.js +1 -1
  238. package/dist/collection/components/dropdown/resources.js +1 -1
  239. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  240. package/dist/collection/components/dropdown-group/resources.js +1 -1
  241. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  242. package/dist/collection/components/dropdown-item/resources.js +1 -1
  243. package/dist/collection/components/fab/fab.js +1 -1
  244. package/dist/collection/components/fab/resources.js +1 -1
  245. package/dist/collection/components/filter/filter.js +1 -1
  246. package/dist/collection/components/filter/resources.js +1 -1
  247. package/dist/collection/components/flow/flow.js +1 -1
  248. package/dist/collection/components/flow/resources.js +1 -1
  249. package/dist/collection/components/flow-item/flow-item.js +1 -1
  250. package/dist/collection/components/flow-item/resources.js +1 -1
  251. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  252. package/dist/collection/components/functional/Heading.js +1 -1
  253. package/dist/collection/components/graph/graph.js +1 -1
  254. package/dist/collection/components/graph/util.js +1 -1
  255. package/dist/collection/components/handle/handle.js +1 -1
  256. package/dist/collection/components/handle/resources.js +1 -1
  257. package/dist/collection/components/icon/icon.js +1 -1
  258. package/dist/collection/components/icon/resources.js +1 -1
  259. package/dist/collection/components/icon/utils.js +1 -1
  260. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  261. package/dist/collection/components/inline-editable/resources.js +1 -1
  262. package/dist/collection/components/input/input.js +1 -1
  263. package/dist/collection/components/input/resources.js +1 -1
  264. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  265. package/dist/collection/components/input-date-picker/resources.js +1 -1
  266. package/dist/collection/components/input-message/input-message.css +6 -16
  267. package/dist/collection/components/input-message/input-message.js +14 -3
  268. package/dist/collection/components/input-message/interfaces.js +1 -1
  269. package/dist/collection/components/input-number/input-number.js +1 -1
  270. package/dist/collection/components/input-number/resources.js +1 -1
  271. package/dist/collection/components/input-text/input-text.js +1 -1
  272. package/dist/collection/components/input-text/resources.js +1 -1
  273. package/dist/collection/components/input-time-picker/input-time-picker.js +2 -2
  274. package/dist/collection/components/label/label.js +1 -1
  275. package/dist/collection/components/label/resources.js +1 -1
  276. package/dist/collection/components/link/link.js +1 -1
  277. package/dist/collection/components/list/list.js +1 -1
  278. package/dist/collection/components/list/resources.js +1 -1
  279. package/dist/collection/components/list-item/list-item.js +1 -1
  280. package/dist/collection/components/list-item/resources.js +1 -1
  281. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  282. package/dist/collection/components/list-item-group/resources.js +1 -1
  283. package/dist/collection/components/loader/loader.css +0 -7
  284. package/dist/collection/components/loader/loader.js +14 -3
  285. package/dist/collection/components/modal/modal.js +1 -1
  286. package/dist/collection/components/modal/resources.js +1 -1
  287. package/dist/collection/components/notice/notice.js +1 -1
  288. package/dist/collection/components/notice/resources.js +1 -1
  289. package/dist/collection/components/option/option.js +1 -1
  290. package/dist/collection/components/option-group/option-group.js +1 -1
  291. package/dist/collection/components/pagination/pagination.js +1 -1
  292. package/dist/collection/components/pagination/resources.js +1 -1
  293. package/dist/collection/components/panel/panel.js +1 -1
  294. package/dist/collection/components/panel/resources.js +1 -1
  295. package/dist/collection/components/pick-list/pick-list.js +1 -1
  296. package/dist/collection/components/pick-list/resources.js +1 -1
  297. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  298. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  299. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  300. package/dist/collection/components/pick-list-group/resources.js +1 -1
  301. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  302. package/dist/collection/components/pick-list-item/resources.js +1 -1
  303. package/dist/collection/components/popover/PopoverManager.js +1 -1
  304. package/dist/collection/components/popover/popover.js +32 -3
  305. package/dist/collection/components/popover/resources.js +1 -1
  306. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  307. package/dist/collection/components/progress/progress.js +1 -1
  308. package/dist/collection/components/radio-button/radio-button.js +1 -1
  309. package/dist/collection/components/radio-button/resources.js +1 -1
  310. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  311. package/dist/collection/components/radio-group/radio-group.js +1 -1
  312. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  313. package/dist/collection/components/radio-group-item/resources.js +1 -1
  314. package/dist/collection/components/rating/rating.js +1 -1
  315. package/dist/collection/components/rating/resources.js +1 -1
  316. package/dist/collection/components/scrim/resources.js +1 -1
  317. package/dist/collection/components/scrim/scrim.js +2 -2
  318. package/dist/collection/components/select/resources.js +1 -1
  319. package/dist/collection/components/select/select.js +1 -1
  320. package/dist/collection/components/shell/resources.js +1 -1
  321. package/dist/collection/components/shell/shell.js +1 -1
  322. package/dist/collection/components/shell-center-row/resources.js +1 -1
  323. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  324. package/dist/collection/components/shell-panel/resources.js +1 -1
  325. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  326. package/dist/collection/components/slider/resources.js +1 -1
  327. package/dist/collection/components/slider/slider.js +1 -1
  328. package/dist/collection/components/sortable-list/resources.js +1 -1
  329. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  330. package/dist/collection/components/split-button/resources.js +1 -1
  331. package/dist/collection/components/split-button/split-button.js +1 -1
  332. package/dist/collection/components/stepper/stepper.js +1 -1
  333. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  334. package/dist/collection/components/switch/switch.js +1 -1
  335. package/dist/collection/components/tab/tab.js +1 -1
  336. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  337. package/dist/collection/components/tab-title/tab-title.js +1 -1
  338. package/dist/collection/components/tabs/resources.js +1 -1
  339. package/dist/collection/components/tabs/tabs.js +1 -1
  340. package/dist/collection/components/tile/resources.js +1 -1
  341. package/dist/collection/components/tile/tile.js +1 -1
  342. package/dist/collection/components/tile-select/resources.js +1 -1
  343. package/dist/collection/components/tile-select/tile-select.js +1 -1
  344. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  345. package/dist/collection/components/time-picker/resources.js +1 -1
  346. package/dist/collection/components/time-picker/time-picker.js +1 -1
  347. package/dist/collection/components/tip/resources.js +1 -1
  348. package/dist/collection/components/tip/tip.js +1 -1
  349. package/dist/collection/components/tip-group/tip-group.js +1 -1
  350. package/dist/collection/components/tip-manager/resources.js +1 -1
  351. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  352. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  353. package/dist/collection/components/tooltip/resources.js +1 -1
  354. package/dist/collection/components/tooltip/tooltip.js +90 -7
  355. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  356. package/dist/collection/components/tree/interfaces.js +1 -1
  357. package/dist/collection/components/tree/tree.js +1 -1
  358. package/dist/collection/components/tree/utils.js +1 -1
  359. package/dist/collection/components/tree-item/resources.js +1 -1
  360. package/dist/collection/components/tree-item/tree-item.js +1 -1
  361. package/dist/collection/components/value-list/resources.js +1 -1
  362. package/dist/collection/components/value-list/utils.js +1 -1
  363. package/dist/collection/components/value-list/value-list.js +1 -1
  364. package/dist/collection/components/value-list-item/resources.js +1 -1
  365. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  366. package/dist/collection/utils/array.js +1 -1
  367. package/dist/collection/utils/conditionalSlot.js +1 -1
  368. package/dist/collection/utils/config.js +1 -1
  369. package/dist/collection/utils/date.js +1 -1
  370. package/dist/collection/utils/dom.js +1 -1
  371. package/dist/collection/utils/filter.js +1 -1
  372. package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
  373. package/dist/collection/utils/floating-ui.js +1 -1
  374. package/dist/collection/utils/focusTrapComponent.js +1 -1
  375. package/dist/collection/utils/form.js +1 -1
  376. package/dist/collection/utils/globalAttributes.js +1 -1
  377. package/dist/collection/utils/globalScript.js +1 -1
  378. package/dist/collection/utils/guid.js +1 -1
  379. package/dist/collection/utils/interactive.js +1 -1
  380. package/dist/collection/utils/key.js +1 -1
  381. package/dist/collection/utils/label.js +1 -1
  382. package/dist/collection/utils/locale.js +1 -1
  383. package/dist/collection/utils/math.js +1 -1
  384. package/dist/collection/utils/number.js +1 -1
  385. package/dist/collection/utils/observers.js +1 -1
  386. package/dist/collection/utils/openCloseComponent.js +1 -1
  387. package/dist/collection/utils/resources.js +1 -1
  388. package/dist/collection/utils/t9n.js +1 -1
  389. package/dist/collection/utils/theme.js +1 -1
  390. package/dist/collection/utils/time.js +1 -1
  391. package/dist/components/ExpandToggle.js +1 -1
  392. package/dist/components/Heading.js +1 -1
  393. package/dist/components/action-group.js +1 -1
  394. package/dist/components/action-menu.js +2 -2
  395. package/dist/components/action.js +2 -2
  396. package/dist/components/array.js +1 -1
  397. package/dist/components/button.js +2 -2
  398. package/dist/components/calcite-accordion-item.js +1 -1
  399. package/dist/components/calcite-accordion.js +1 -1
  400. package/dist/components/calcite-action-bar.js +1 -1
  401. package/dist/components/calcite-action-group.js +1 -1
  402. package/dist/components/calcite-action-menu.js +1 -1
  403. package/dist/components/calcite-action-pad.js +1 -1
  404. package/dist/components/calcite-action.js +1 -1
  405. package/dist/components/calcite-alert.js +1 -1
  406. package/dist/components/calcite-avatar.js +1 -1
  407. package/dist/components/calcite-block-section.js +1 -1
  408. package/dist/components/calcite-block.js +1 -1
  409. package/dist/components/calcite-button.js +1 -1
  410. package/dist/components/calcite-card.js +2 -2
  411. package/dist/components/calcite-checkbox.js +1 -1
  412. package/dist/components/calcite-chip.js +1 -1
  413. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  414. package/dist/components/calcite-color-picker-swatch.js +1 -1
  415. package/dist/components/calcite-color-picker.js +1 -1
  416. package/dist/components/calcite-combobox-item-group.js +1 -1
  417. package/dist/components/calcite-combobox-item.js +1 -1
  418. package/dist/components/calcite-combobox.js +1 -1
  419. package/dist/components/calcite-date-picker-day.js +1 -1
  420. package/dist/components/calcite-date-picker-month-header.js +1 -1
  421. package/dist/components/calcite-date-picker-month.js +1 -1
  422. package/dist/components/calcite-date-picker.js +1 -1
  423. package/dist/components/calcite-dropdown-group.js +1 -1
  424. package/dist/components/calcite-dropdown-item.js +1 -1
  425. package/dist/components/calcite-dropdown.js +1 -1
  426. package/dist/components/calcite-fab.js +1 -1
  427. package/dist/components/calcite-filter.js +1 -1
  428. package/dist/components/calcite-flow-item.js +1 -1
  429. package/dist/components/calcite-flow.js +1 -1
  430. package/dist/components/calcite-graph.js +1 -1
  431. package/dist/components/calcite-handle.js +1 -1
  432. package/dist/components/calcite-icon.js +1 -1
  433. package/dist/components/calcite-inline-editable.js +1 -1
  434. package/dist/components/calcite-input-date-picker.js +1 -1
  435. package/dist/components/calcite-input-message.js +8 -3
  436. package/dist/components/calcite-input-number.js +1 -1
  437. package/dist/components/calcite-input-text.js +1 -1
  438. package/dist/components/calcite-input-time-picker.js +2 -2
  439. package/dist/components/calcite-input.js +1 -1
  440. package/dist/components/calcite-label.js +1 -1
  441. package/dist/components/calcite-link.js +1 -1
  442. package/dist/components/calcite-list-item-group.js +1 -1
  443. package/dist/components/calcite-list-item.js +1 -1
  444. package/dist/components/calcite-list.js +1 -1
  445. package/dist/components/calcite-loader.js +1 -1
  446. package/dist/components/calcite-modal.js +3 -1264
  447. package/dist/components/calcite-notice.js +1 -1
  448. package/dist/components/calcite-option-group.js +1 -1
  449. package/dist/components/calcite-option.js +1 -1
  450. package/dist/components/calcite-pagination.js +1 -1
  451. package/dist/components/calcite-panel.js +1 -1
  452. package/dist/components/calcite-pick-list-group.js +1 -1
  453. package/dist/components/calcite-pick-list-item.js +1 -1
  454. package/dist/components/calcite-pick-list.js +1 -1
  455. package/dist/components/calcite-popover-manager.js +1 -1
  456. package/dist/components/calcite-popover.js +1 -1
  457. package/dist/components/calcite-progress.js +1 -1
  458. package/dist/components/calcite-radio-button-group.js +1 -1
  459. package/dist/components/calcite-radio-button.js +1 -1
  460. package/dist/components/calcite-radio-group-item.js +1 -1
  461. package/dist/components/calcite-radio-group.js +1 -1
  462. package/dist/components/calcite-rating.js +1 -1
  463. package/dist/components/calcite-scrim.js +1 -1
  464. package/dist/components/calcite-select.js +1 -1
  465. package/dist/components/calcite-shell-center-row.js +1 -1
  466. package/dist/components/calcite-shell-panel.js +1 -1
  467. package/dist/components/calcite-shell.js +1 -1
  468. package/dist/components/calcite-slider.js +1 -1
  469. package/dist/components/calcite-sortable-list.js +1 -1
  470. package/dist/components/calcite-split-button.js +1 -1
  471. package/dist/components/calcite-stepper-item.js +1 -1
  472. package/dist/components/calcite-stepper.js +1 -1
  473. package/dist/components/calcite-switch.js +1 -1
  474. package/dist/components/calcite-tab-nav.js +1 -1
  475. package/dist/components/calcite-tab-title.js +1 -1
  476. package/dist/components/calcite-tab.js +1 -1
  477. package/dist/components/calcite-tabs.js +1 -1
  478. package/dist/components/calcite-tile-select-group.js +1 -1
  479. package/dist/components/calcite-tile-select.js +1 -1
  480. package/dist/components/calcite-tile.js +1 -1
  481. package/dist/components/calcite-time-picker.js +1 -1
  482. package/dist/components/calcite-tip-group.js +1 -1
  483. package/dist/components/calcite-tip-manager.js +1 -1
  484. package/dist/components/calcite-tip.js +1 -1
  485. package/dist/components/calcite-tooltip-manager.js +1 -1
  486. package/dist/components/calcite-tooltip.js +1 -1
  487. package/dist/components/calcite-tree-item.js +1 -1
  488. package/dist/components/calcite-tree.js +1 -1
  489. package/dist/components/calcite-value-list-item.js +1 -1
  490. package/dist/components/calcite-value-list.js +1 -1
  491. package/dist/components/checkbox.js +1 -1
  492. package/dist/components/chip.js +1 -1
  493. package/dist/components/color-picker-hex-input.js +1 -1
  494. package/dist/components/color-picker-swatch.js +1 -1
  495. package/dist/components/conditionalSlot.js +1 -1
  496. package/dist/components/date-picker-day.js +1 -1
  497. package/dist/components/date-picker-month-header.js +1 -1
  498. package/dist/components/date-picker-month.js +1 -1
  499. package/dist/components/date-picker.js +1 -1
  500. package/dist/components/date.js +1 -1
  501. package/dist/components/debounce.js +1 -1
  502. package/dist/components/dom.js +1 -1
  503. package/dist/components/dropdown.js +1 -1
  504. package/dist/components/filter.js +1 -1
  505. package/dist/components/filter2.js +1 -1
  506. package/dist/components/floating-ui.js +1 -1
  507. package/dist/components/focusTrapComponent.js +1270 -0
  508. package/dist/components/form.js +1 -1
  509. package/dist/components/graph.js +1 -1
  510. package/dist/components/guid.js +1 -1
  511. package/dist/components/handle.js +1 -1
  512. package/dist/components/icon.js +1 -1
  513. package/dist/components/index.js +1 -1
  514. package/dist/components/input.js +1 -1
  515. package/dist/components/interactive.js +1 -1
  516. package/dist/components/interfaces.js +1 -1
  517. package/dist/components/interfaces2.js +1 -1
  518. package/dist/components/key.js +1 -1
  519. package/dist/components/label.js +1 -1
  520. package/dist/components/label2.js +1 -1
  521. package/dist/components/link.js +1 -1
  522. package/dist/components/loader.js +8 -3
  523. package/dist/components/locale.js +1 -1
  524. package/dist/components/math.js +1 -1
  525. package/dist/components/nonChromiumPlatformUtils.js +1 -1
  526. package/dist/components/observers.js +1 -1
  527. package/dist/components/openCloseComponent.js +1 -1
  528. package/dist/components/panel.js +1 -1
  529. package/dist/components/pick-list-item.js +1 -1
  530. package/dist/components/popover.js +15 -3
  531. package/dist/components/progress.js +1 -1
  532. package/dist/components/resources.js +1 -1
  533. package/dist/components/resources2.js +1 -1
  534. package/dist/components/scrim.js +2 -2
  535. package/dist/components/shared-list-render.js +1 -1
  536. package/dist/components/sortable.esm.js +1 -1
  537. package/dist/components/switch.js +1 -1
  538. package/dist/components/tab-nav.js +1 -1
  539. package/dist/components/tab-title.js +1 -1
  540. package/dist/components/tab.js +1 -1
  541. package/dist/components/tabs.js +1 -1
  542. package/dist/components/tile.js +1 -1
  543. package/dist/components/time-picker.js +1 -1
  544. package/dist/components/tooltip.js +32 -8
  545. package/dist/components/utils.js +1 -1
  546. package/dist/components/utils2.js +1 -1
  547. package/dist/esm/{ExpandToggle-c1666d9f.js → ExpandToggle-41774b7f.js} +5 -5
  548. package/dist/esm/{Heading-6f3b27d7.js → Heading-c29c5794.js} +2 -2
  549. package/dist/esm/{app-globals-dc53e887.js → app-globals-d9f28e13.js} +2 -2
  550. package/dist/esm/{array-ec97ab21.js → array-0a4488f1.js} +1 -1
  551. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  552. package/dist/esm/calcite-action-bar.entry.js +11 -11
  553. package/dist/esm/calcite-action-group.entry.js +9 -9
  554. package/dist/esm/calcite-action-menu.entry.js +9 -9
  555. package/dist/esm/calcite-action-pad.entry.js +10 -10
  556. package/dist/esm/calcite-action.entry.js +8 -8
  557. package/dist/esm/calcite-alert.entry.js +10 -10
  558. package/dist/esm/calcite-avatar.entry.js +6 -6
  559. package/dist/esm/calcite-block_2.entry.js +10 -10
  560. package/dist/esm/calcite-button.entry.js +10 -10
  561. package/dist/esm/calcite-card.entry.js +8 -8
  562. package/dist/esm/calcite-checkbox.entry.js +9 -9
  563. package/dist/esm/calcite-chip.entry.js +7 -7
  564. package/dist/esm/calcite-color-picker_3.entry.js +10 -10
  565. package/dist/esm/calcite-combobox_3.entry.js +14 -14
  566. package/dist/esm/calcite-date-picker_4.entry.js +11 -11
  567. package/dist/esm/calcite-dropdown_3.entry.js +11 -11
  568. package/dist/esm/calcite-fab.entry.js +6 -6
  569. package/dist/esm/calcite-filter.entry.js +8 -8
  570. package/dist/esm/calcite-flow-item.entry.js +7 -7
  571. package/dist/esm/calcite-flow.entry.js +3 -3
  572. package/dist/esm/calcite-graph_2.entry.js +12 -12
  573. package/dist/esm/calcite-handle.entry.js +5 -5
  574. package/dist/esm/calcite-icon.entry.js +6 -6
  575. package/dist/esm/calcite-inline-editable.entry.js +8 -8
  576. package/dist/esm/calcite-input-date-picker.entry.js +15 -15
  577. package/dist/esm/calcite-input-message.entry.js +12 -7
  578. package/dist/esm/calcite-input-number.entry.js +12 -12
  579. package/dist/esm/calcite-input-text.entry.js +9 -9
  580. package/dist/esm/calcite-input-time-picker_2.entry.js +12 -12
  581. package/dist/esm/calcite-input.entry.js +12 -12
  582. package/dist/esm/calcite-label.entry.js +6 -6
  583. package/dist/esm/calcite-link.entry.js +6 -6
  584. package/dist/esm/calcite-list_3.entry.js +9 -9
  585. package/dist/esm/calcite-loader.entry.js +10 -5
  586. package/dist/esm/calcite-modal.entry.js +9 -1270
  587. package/dist/esm/calcite-notice.entry.js +8 -8
  588. package/dist/esm/calcite-option_3.entry.js +9 -9
  589. package/dist/esm/calcite-pagination.entry.js +8 -8
  590. package/dist/esm/calcite-panel.entry.js +10 -10
  591. package/dist/esm/calcite-pick-list_3.entry.js +12 -12
  592. package/dist/esm/calcite-popover_2.entry.js +24 -13
  593. package/dist/esm/calcite-progress.entry.js +2 -2
  594. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  595. package/dist/esm/calcite-radio-button.entry.js +9 -9
  596. package/dist/esm/calcite-radio-group_2.entry.js +8 -8
  597. package/dist/esm/calcite-rating.entry.js +9 -9
  598. package/dist/esm/calcite-scrim.entry.js +3 -3
  599. package/dist/esm/calcite-shell_3.entry.js +8 -8
  600. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  601. package/dist/esm/calcite-split-button.entry.js +3 -3
  602. package/dist/esm/calcite-stepper_2.entry.js +9 -9
  603. package/dist/esm/calcite-switch.entry.js +9 -9
  604. package/dist/esm/calcite-tab_4.entry.js +7 -7
  605. package/dist/esm/calcite-tile-select_2.entry.js +4 -4
  606. package/dist/esm/calcite-tile.entry.js +8 -8
  607. package/dist/esm/calcite-tip_3.entry.js +8 -8
  608. package/dist/esm/calcite-tooltip_2.entry.js +37 -13
  609. package/dist/esm/calcite-tree_2.entry.js +8 -8
  610. package/dist/esm/calcite-value-list_2.entry.js +12 -12
  611. package/dist/esm/calcite.js +5 -5
  612. package/dist/esm/{conditionalSlot-65d395e3.js → conditionalSlot-966590ec.js} +3 -3
  613. package/dist/esm/{debounce-150a7fe8.js → debounce-f66bdfff.js} +1 -1
  614. package/dist/esm/{dom-cc5c3984.js → dom-db31979f.js} +3 -3
  615. package/dist/esm/{filter-1ebb2c6b.js → filter-a2ddf863.js} +2 -2
  616. package/dist/esm/{floating-ui-93789309.js → floating-ui-5f769d28.js} +4 -4
  617. package/dist/esm/focusTrapComponent-692f0964.js +1270 -0
  618. package/dist/esm/{form-255c911d.js → form-b9b0dbc4.js} +3 -3
  619. package/dist/esm/{guid-f9660e6f.js → guid-245906d2.js} +1 -1
  620. package/dist/esm/{index-d2393e84.js → index-89e9515d.js} +1 -1
  621. package/dist/esm/index.js +1 -1
  622. package/dist/esm/{interactive-26a4cd50.js → interactive-870aacaa.js} +1 -1
  623. package/dist/esm/{interfaces-36e4a241.js → interfaces-405b7654.js} +1 -1
  624. package/dist/esm/{key-a4eb4c7a.js → key-be044e8f.js} +1 -1
  625. package/dist/esm/{label-958c6dcb.js → label-dac2bce3.js} +2 -2
  626. package/dist/esm/loader.js +5 -5
  627. package/dist/esm/{locale-356e61ad.js → locale-8d9e26c2.js} +4 -4
  628. package/dist/esm/{math-edfa7bd5.js → math-6a5196d6.js} +1 -1
  629. package/dist/esm/{nonChromiumPlatformUtils-0826d52b.js → nonChromiumPlatformUtils-44255917.js} +6 -6
  630. package/dist/esm/{observers-8a9fc943.js → observers-1dcaab27.js} +1 -1
  631. package/dist/esm/{openCloseComponent-759e2351.js → openCloseComponent-6ed97ece.js} +1 -1
  632. package/dist/esm/{resources-0fd6d659.js → resources-46a1e1f9.js} +1 -1
  633. package/dist/esm/{resources-03d3cf60.js → resources-46cbddb4.js} +1 -1
  634. package/dist/esm/{resources-c578caf8.js → resources-6f2cd008.js} +5 -5
  635. package/dist/esm/{resources-d313bb62.js → resources-8d0752ff.js} +3 -3
  636. package/dist/esm/{resources-b9c5aaf9.js → resources-b744d1ce.js} +1 -1
  637. package/dist/esm/{resources-64a95f35.js → resources-c02a7a33.js} +1 -1
  638. package/dist/esm/{sortable.esm-6298e963.js → sortable.esm-5b4f86a2.js} +1 -1
  639. package/dist/esm/{utils-18a922e5.js → utils-7a1067a8.js} +1 -1
  640. package/dist/extras/docs-json.json +79 -5
  641. package/dist/loader/cdn.js +1 -1
  642. package/dist/loader/index.cjs.js +1 -1
  643. package/dist/loader/index.es2017.js +1 -1
  644. package/dist/loader/index.js +1 -1
  645. package/dist/types/components/input-message/input-message.d.ts +6 -1
  646. package/dist/types/components/loader/loader.d.ts +6 -1
  647. package/dist/types/components/popover/popover.d.ts +8 -1
  648. package/dist/types/components/tooltip/tooltip.d.ts +18 -2
  649. package/dist/types/components.d.ts +36 -0
  650. package/dist/types/preact.d.ts +6 -1
  651. package/hydrate/index.js +64 -20
  652. package/package.json +1 -1
  653. package/dist/calcite/p-0d96f830.entry.js +0 -6
  654. package/dist/calcite/p-3ed7f5b5.js +0 -6
  655. package/dist/calcite/p-42f22b60.js +0 -6
  656. package/dist/calcite/p-5f59c538.entry.js +0 -6
  657. package/dist/calcite/p-6bc879e0.entry.js +0 -6
  658. package/dist/calcite/p-77658bab.entry.js +0 -6
  659. package/dist/calcite/p-83617657.entry.js +0 -16
  660. package/dist/calcite/p-b7fbe5a9.entry.js +0 -6
  661. package/dist/calcite/p-d0681fe7.js +0 -6
  662. package/dist/calcite/p-d728f7e7.entry.js +0 -6
  663. package/dist/calcite/p-ddb1b9bb.entry.js +0 -6
  664. package/dist/calcite/p-e64e5cdc.entry.js +0 -6
@@ -1,19 +1,20 @@
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.633
4
+ * v1.0.0-next.635
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-a6176241.js');
11
- const dom = require('./dom-13de8dae.js');
12
- const observers = require('./observers-5bc9fe46.js');
13
- const conditionalSlot = require('./conditionalSlot-1322fc35.js');
14
- const openCloseComponent = require('./openCloseComponent-67cd4a5b.js');
15
- require('./resources-69bd2041.js');
16
- require('./guid-4c424c40.js');
10
+ const index = require('./index-3d158670.js');
11
+ const dom = require('./dom-5245652b.js');
12
+ const observers = require('./observers-460db0ff.js');
13
+ const conditionalSlot = require('./conditionalSlot-c28021dc.js');
14
+ const openCloseComponent = require('./openCloseComponent-389f3b15.js');
15
+ const focusTrapComponent = require('./focusTrapComponent-ff4957d9.js');
16
+ require('./resources-eef7f920.js');
17
+ require('./guid-88aff5b7.js');
17
18
 
18
19
  const CSS = {
19
20
  modal: "modal",
@@ -48,1268 +49,6 @@ const TEXT = {
48
49
  close: "Close"
49
50
  };
50
51
 
51
- /*!
52
- * tabbable 6.0.1
53
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
54
- */
55
- 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'];
56
- var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
57
- var NoElement = typeof Element === 'undefined';
58
- var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
59
- var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
60
- return element.getRootNode();
61
- } : function (element) {
62
- return element.ownerDocument;
63
- };
64
-
65
- /**
66
- * @param {Element} el container to check in
67
- * @param {boolean} includeContainer add container to check
68
- * @param {(node: Element) => boolean} filter filter candidates
69
- * @returns {Element[]}
70
- */
71
- var getCandidates = function getCandidates(el, includeContainer, filter) {
72
- var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
73
- if (includeContainer && matches.call(el, candidateSelector)) {
74
- candidates.unshift(el);
75
- }
76
- candidates = candidates.filter(filter);
77
- return candidates;
78
- };
79
-
80
- /**
81
- * @callback GetShadowRoot
82
- * @param {Element} element to check for shadow root
83
- * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
84
- */
85
-
86
- /**
87
- * @callback ShadowRootFilter
88
- * @param {Element} shadowHostNode the element which contains shadow content
89
- * @returns {boolean} true if a shadow root could potentially contain valid candidates.
90
- */
91
-
92
- /**
93
- * @typedef {Object} CandidateScope
94
- * @property {Element} scopeParent contains inner candidates
95
- * @property {Element[]} candidates list of candidates found in the scope parent
96
- */
97
-
98
- /**
99
- * @typedef {Object} IterativeOptions
100
- * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
101
- * if a function, implies shadow support is enabled and either returns the shadow root of an element
102
- * or a boolean stating if it has an undisclosed shadow root
103
- * @property {(node: Element) => boolean} filter filter candidates
104
- * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
105
- * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
106
- */
107
-
108
- /**
109
- * @param {Element[]} elements list of element containers to match candidates from
110
- * @param {boolean} includeContainer add container list to check
111
- * @param {IterativeOptions} options
112
- * @returns {Array.<Element|CandidateScope>}
113
- */
114
- var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
115
- var candidates = [];
116
- var elementsToCheck = Array.from(elements);
117
- while (elementsToCheck.length) {
118
- var element = elementsToCheck.shift();
119
- if (element.tagName === 'SLOT') {
120
- // add shadow dom slot scope (slot itself cannot be focusable)
121
- var assigned = element.assignedElements();
122
- var content = assigned.length ? assigned : element.children;
123
- var nestedCandidates = getCandidatesIteratively(content, true, options);
124
- if (options.flatten) {
125
- candidates.push.apply(candidates, nestedCandidates);
126
- } else {
127
- candidates.push({
128
- scopeParent: element,
129
- candidates: nestedCandidates
130
- });
131
- }
132
- } else {
133
- // check candidate element
134
- var validCandidate = matches.call(element, candidateSelector);
135
- if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
136
- candidates.push(element);
137
- }
138
-
139
- // iterate over shadow content if possible
140
- var shadowRoot = element.shadowRoot ||
141
- // check for an undisclosed shadow
142
- typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
143
- var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);
144
- if (shadowRoot && validShadowRoot) {
145
- // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
146
- // shadow exists, so look at light dom children as fallback BUT create a scope for any
147
- // child candidates found because they're likely slotted elements (elements that are
148
- // children of the web component element (which has the shadow), in the light dom, but
149
- // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
150
- // _after_ we return from this recursive call
151
- var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
152
- if (options.flatten) {
153
- candidates.push.apply(candidates, _nestedCandidates);
154
- } else {
155
- candidates.push({
156
- scopeParent: element,
157
- candidates: _nestedCandidates
158
- });
159
- }
160
- } else {
161
- // there's not shadow so just dig into the element's (light dom) children
162
- // __without__ giving the element special scope treatment
163
- elementsToCheck.unshift.apply(elementsToCheck, element.children);
164
- }
165
- }
166
- }
167
- return candidates;
168
- };
169
- var getTabindex = function getTabindex(node, isScope) {
170
- if (node.tabIndex < 0) {
171
- // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
172
- // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
173
- // yet they are still part of the regular tab order; in FF, they get a default
174
- // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
175
- // order, consider their tab index to be 0.
176
- // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
177
- // so if they don't have a tabindex attribute specifically set, assume it's 0.
178
- //
179
- // isScope is positive for custom element with shadow root or slot that by default
180
- // have tabIndex -1, but need to be sorted by document order in order for their
181
- // content to be inserted in the correct position
182
- if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
183
- return 0;
184
- }
185
- }
186
- return node.tabIndex;
187
- };
188
- var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
189
- return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
190
- };
191
- var isInput = function isInput(node) {
192
- return node.tagName === 'INPUT';
193
- };
194
- var isHiddenInput = function isHiddenInput(node) {
195
- return isInput(node) && node.type === 'hidden';
196
- };
197
- var isDetailsWithSummary = function isDetailsWithSummary(node) {
198
- var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
199
- return child.tagName === 'SUMMARY';
200
- });
201
- return r;
202
- };
203
- var getCheckedRadio = function getCheckedRadio(nodes, form) {
204
- for (var i = 0; i < nodes.length; i++) {
205
- if (nodes[i].checked && nodes[i].form === form) {
206
- return nodes[i];
207
- }
208
- }
209
- };
210
- var isTabbableRadio = function isTabbableRadio(node) {
211
- if (!node.name) {
212
- return true;
213
- }
214
- var radioScope = node.form || getRootNode(node);
215
- var queryRadios = function queryRadios(name) {
216
- return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
217
- };
218
- var radioSet;
219
- if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
220
- radioSet = queryRadios(window.CSS.escape(node.name));
221
- } else {
222
- try {
223
- radioSet = queryRadios(node.name);
224
- } catch (err) {
225
- // eslint-disable-next-line no-console
226
- 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);
227
- return false;
228
- }
229
- }
230
- var checked = getCheckedRadio(radioSet, node.form);
231
- return !checked || checked === node;
232
- };
233
- var isRadio = function isRadio(node) {
234
- return isInput(node) && node.type === 'radio';
235
- };
236
- var isNonTabbableRadio = function isNonTabbableRadio(node) {
237
- return isRadio(node) && !isTabbableRadio(node);
238
- };
239
-
240
- // determines if a node is ultimately attached to the window's document
241
- var isNodeAttached = function isNodeAttached(node) {
242
- var _nodeRootHost;
243
- // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
244
- // (but NOT _the_ document; see second 'If' comment below for more).
245
- // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
246
- // is attached, and the one we need to check if it's in the document or not (because the
247
- // shadow, and all nodes it contains, is never considered in the document since shadows
248
- // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
249
- // is hidden, or is not in the document itself but is detached, it will affect the shadow's
250
- // visibility, including all the nodes it contains). The host could be any normal node,
251
- // or a custom element (i.e. web component). Either way, that's the one that is considered
252
- // part of the document, not the shadow root, nor any of its children (i.e. the node being
253
- // tested).
254
- // To further complicate things, we have to look all the way up until we find a shadow HOST
255
- // that is attached (or find none) because the node might be in nested shadows...
256
- // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
257
- // document (per the docs) and while it's a Document-type object, that document does not
258
- // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
259
- // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
260
- // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
261
- // node is actually detached.
262
- var nodeRootHost = getRootNode(node).host;
263
- var attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && _nodeRootHost.ownerDocument.contains(nodeRootHost) || node.ownerDocument.contains(node));
264
- while (!attached && nodeRootHost) {
265
- var _nodeRootHost2;
266
- // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
267
- // which means we need to get the host's host and check if that parent host is contained
268
- // in (i.e. attached to) the document
269
- nodeRootHost = getRootNode(nodeRootHost).host;
270
- attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && _nodeRootHost2.ownerDocument.contains(nodeRootHost));
271
- }
272
- return attached;
273
- };
274
- var isZeroArea = function isZeroArea(node) {
275
- var _node$getBoundingClie = node.getBoundingClientRect(),
276
- width = _node$getBoundingClie.width,
277
- height = _node$getBoundingClie.height;
278
- return width === 0 && height === 0;
279
- };
280
- var isHidden = function isHidden(node, _ref) {
281
- var displayCheck = _ref.displayCheck,
282
- getShadowRoot = _ref.getShadowRoot;
283
- // NOTE: visibility will be `undefined` if node is detached from the document
284
- // (see notes about this further down), which means we will consider it visible
285
- // (this is legacy behavior from a very long way back)
286
- // NOTE: we check this regardless of `displayCheck="none"` because this is a
287
- // _visibility_ check, not a _display_ check
288
- if (getComputedStyle(node).visibility === 'hidden') {
289
- return true;
290
- }
291
- var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
292
- var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
293
- if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
294
- return true;
295
- }
296
- if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
297
- if (typeof getShadowRoot === 'function') {
298
- // figure out if we should consider the node to be in an undisclosed shadow and use the
299
- // 'non-zero-area' fallback
300
- var originalNode = node;
301
- while (node) {
302
- var parentElement = node.parentElement;
303
- var rootNode = getRootNode(node);
304
- if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
305
- ) {
306
- // node has an undisclosed shadow which means we can only treat it as a black box, so we
307
- // fall back to a non-zero-area test
308
- return isZeroArea(node);
309
- } else if (node.assignedSlot) {
310
- // iterate up slot
311
- node = node.assignedSlot;
312
- } else if (!parentElement && rootNode !== node.ownerDocument) {
313
- // cross shadow boundary
314
- node = rootNode.host;
315
- } else {
316
- // iterate up normal dom
317
- node = parentElement;
318
- }
319
- }
320
- node = originalNode;
321
- }
322
- // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
323
- // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
324
- // it might be a falsy value, which means shadow DOM support is disabled
325
-
326
- // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
327
- // now we can just test to see if it would normally be visible or not, provided it's
328
- // attached to the main document.
329
- // NOTE: We must consider case where node is inside a shadow DOM and given directly to
330
- // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
331
-
332
- if (isNodeAttached(node)) {
333
- // this works wherever the node is: if there's at least one client rect, it's
334
- // somehow displayed; it also covers the CSS 'display: contents' case where the
335
- // node itself is hidden in place of its contents; and there's no need to search
336
- // up the hierarchy either
337
- return !node.getClientRects().length;
338
- }
339
-
340
- // Else, the node isn't attached to the document, which means the `getClientRects()`
341
- // API will __always__ return zero rects (this can happen, for example, if React
342
- // is used to render nodes onto a detached tree, as confirmed in this thread:
343
- // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
344
- //
345
- // It also means that even window.getComputedStyle(node).display will return `undefined`
346
- // because styles are only computed for nodes that are in the document.
347
- //
348
- // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
349
- // somehow. Though it was never stated officially, anyone who has ever used tabbable
350
- // APIs on nodes in detached containers has actually implicitly used tabbable in what
351
- // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
352
- // considering __everything__ to be visible because of the innability to determine styles.
353
- //
354
- // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
355
- // nodes as visible with the 'none' fallback.__
356
- if (displayCheck !== 'legacy-full') {
357
- return true; // hidden
358
- }
359
- // else, fallback to 'none' mode and consider the node visible
360
- } else if (displayCheck === 'non-zero-area') {
361
- // NOTE: Even though this tests that the node's client rect is non-zero to determine
362
- // whether it's displayed, and that a detached node will __always__ have a zero-area
363
- // client rect, we don't special-case for whether the node is attached or not. In
364
- // this mode, we do want to consider nodes that have a zero area to be hidden at all
365
- // times, and that includes attached or not.
366
- return isZeroArea(node);
367
- }
368
-
369
- // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
370
- // it's visible
371
- return false;
372
- };
373
-
374
- // form fields (nested) inside a disabled fieldset are not focusable/tabbable
375
- // unless they are in the _first_ <legend> element of the top-most disabled
376
- // fieldset
377
- var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
378
- if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
379
- var parentNode = node.parentElement;
380
- // check if `node` is contained in a disabled <fieldset>
381
- while (parentNode) {
382
- if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
383
- // look for the first <legend> among the children of the disabled <fieldset>
384
- for (var i = 0; i < parentNode.children.length; i++) {
385
- var child = parentNode.children.item(i);
386
- // when the first <legend> (in document order) is found
387
- if (child.tagName === 'LEGEND') {
388
- // if its parent <fieldset> is not nested in another disabled <fieldset>,
389
- // return whether `node` is a descendant of its first <legend>
390
- return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
391
- }
392
- }
393
- // the disabled <fieldset> containing `node` has no <legend>
394
- return true;
395
- }
396
- parentNode = parentNode.parentElement;
397
- }
398
- }
399
-
400
- // else, node's tabbable/focusable state should not be affected by a fieldset's
401
- // enabled/disabled state
402
- return false;
403
- };
404
- var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
405
- if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
406
- // For a details element with a summary, the summary element gets the focus
407
- isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
408
- return false;
409
- }
410
- return true;
411
- };
412
- var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
413
- if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
414
- return false;
415
- }
416
- return true;
417
- };
418
- var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
419
- var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
420
- if (isNaN(tabIndex) || tabIndex >= 0) {
421
- return true;
422
- }
423
- // If a custom element has an explicit negative tabindex,
424
- // browsers will not allow tab targeting said element's children.
425
- return false;
426
- };
427
-
428
- /**
429
- * @param {Array.<Element|CandidateScope>} candidates
430
- * @returns Element[]
431
- */
432
- var sortByOrder = function sortByOrder(candidates) {
433
- var regularTabbables = [];
434
- var orderedTabbables = [];
435
- candidates.forEach(function (item, i) {
436
- var isScope = !!item.scopeParent;
437
- var element = isScope ? item.scopeParent : item;
438
- var candidateTabindex = getTabindex(element, isScope);
439
- var elements = isScope ? sortByOrder(item.candidates) : element;
440
- if (candidateTabindex === 0) {
441
- isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
442
- } else {
443
- orderedTabbables.push({
444
- documentOrder: i,
445
- tabIndex: candidateTabindex,
446
- item: item,
447
- isScope: isScope,
448
- content: elements
449
- });
450
- }
451
- });
452
- return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
453
- sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
454
- return acc;
455
- }, []).concat(regularTabbables);
456
- };
457
- var tabbable = function tabbable(el, options) {
458
- options = options || {};
459
- var candidates;
460
- if (options.getShadowRoot) {
461
- candidates = getCandidatesIteratively([el], options.includeContainer, {
462
- filter: isNodeMatchingSelectorTabbable.bind(null, options),
463
- flatten: false,
464
- getShadowRoot: options.getShadowRoot,
465
- shadowRootFilter: isValidShadowRootTabbable
466
- });
467
- } else {
468
- candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
469
- }
470
- return sortByOrder(candidates);
471
- };
472
- var focusable = function focusable(el, options) {
473
- options = options || {};
474
- var candidates;
475
- if (options.getShadowRoot) {
476
- candidates = getCandidatesIteratively([el], options.includeContainer, {
477
- filter: isNodeMatchingSelectorFocusable.bind(null, options),
478
- flatten: true,
479
- getShadowRoot: options.getShadowRoot
480
- });
481
- } else {
482
- candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
483
- }
484
- return candidates;
485
- };
486
- var isTabbable = function isTabbable(node, options) {
487
- options = options || {};
488
- if (!node) {
489
- throw new Error('No node provided');
490
- }
491
- if (matches.call(node, candidateSelector) === false) {
492
- return false;
493
- }
494
- return isNodeMatchingSelectorTabbable(options, node);
495
- };
496
- var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
497
- var isFocusable = function isFocusable(node, options) {
498
- options = options || {};
499
- if (!node) {
500
- throw new Error('No node provided');
501
- }
502
- if (matches.call(node, focusableCandidateSelector) === false) {
503
- return false;
504
- }
505
- return isNodeMatchingSelectorFocusable(options, node);
506
- };
507
-
508
- /*!
509
- * focus-trap 7.0.0
510
- * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
511
- */
512
-
513
- function ownKeys(object, enumerableOnly) {
514
- var keys = Object.keys(object);
515
-
516
- if (Object.getOwnPropertySymbols) {
517
- var symbols = Object.getOwnPropertySymbols(object);
518
- enumerableOnly && (symbols = symbols.filter(function (sym) {
519
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
520
- })), keys.push.apply(keys, symbols);
521
- }
522
-
523
- return keys;
524
- }
525
-
526
- function _objectSpread2(target) {
527
- for (var i = 1; i < arguments.length; i++) {
528
- var source = null != arguments[i] ? arguments[i] : {};
529
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
530
- _defineProperty(target, key, source[key]);
531
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
532
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
533
- });
534
- }
535
-
536
- return target;
537
- }
538
-
539
- function _defineProperty(obj, key, value) {
540
- if (key in obj) {
541
- Object.defineProperty(obj, key, {
542
- value: value,
543
- enumerable: true,
544
- configurable: true,
545
- writable: true
546
- });
547
- } else {
548
- obj[key] = value;
549
- }
550
-
551
- return obj;
552
- }
553
-
554
- var activeFocusTraps = function () {
555
- var trapQueue = [];
556
- return {
557
- activateTrap: function activateTrap(trap) {
558
- if (trapQueue.length > 0) {
559
- var activeTrap = trapQueue[trapQueue.length - 1];
560
-
561
- if (activeTrap !== trap) {
562
- activeTrap.pause();
563
- }
564
- }
565
-
566
- var trapIndex = trapQueue.indexOf(trap);
567
-
568
- if (trapIndex === -1) {
569
- trapQueue.push(trap);
570
- } else {
571
- // move this existing trap to the front of the queue
572
- trapQueue.splice(trapIndex, 1);
573
- trapQueue.push(trap);
574
- }
575
- },
576
- deactivateTrap: function deactivateTrap(trap) {
577
- var trapIndex = trapQueue.indexOf(trap);
578
-
579
- if (trapIndex !== -1) {
580
- trapQueue.splice(trapIndex, 1);
581
- }
582
-
583
- if (trapQueue.length > 0) {
584
- trapQueue[trapQueue.length - 1].unpause();
585
- }
586
- }
587
- };
588
- }();
589
-
590
- var isSelectableInput = function isSelectableInput(node) {
591
- return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
592
- };
593
-
594
- var isEscapeEvent = function isEscapeEvent(e) {
595
- return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
596
- };
597
-
598
- var isTabEvent = function isTabEvent(e) {
599
- return e.key === 'Tab' || e.keyCode === 9;
600
- };
601
-
602
- var delay = function delay(fn) {
603
- return setTimeout(fn, 0);
604
- }; // Array.find/findIndex() are not supported on IE; this replicates enough
605
- // of Array.findIndex() for our needs
606
-
607
-
608
- var findIndex = function findIndex(arr, fn) {
609
- var idx = -1;
610
- arr.every(function (value, i) {
611
- if (fn(value)) {
612
- idx = i;
613
- return false; // break
614
- }
615
-
616
- return true; // next
617
- });
618
- return idx;
619
- };
620
- /**
621
- * Get an option's value when it could be a plain value, or a handler that provides
622
- * the value.
623
- * @param {*} value Option's value to check.
624
- * @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
625
- * @returns {*} The `value`, or the handler's returned value.
626
- */
627
-
628
-
629
- var valueOrHandler = function valueOrHandler(value) {
630
- for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
631
- params[_key - 1] = arguments[_key];
632
- }
633
-
634
- return typeof value === 'function' ? value.apply(void 0, params) : value;
635
- };
636
-
637
- var getActualTarget = function getActualTarget(event) {
638
- // NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
639
- // shadow host. However, event.target.composedPath() will be an array of
640
- // nodes "clicked" from inner-most (the actual element inside the shadow) to
641
- // outer-most (the host HTML document). If we have access to composedPath(),
642
- // then use its first element; otherwise, fall back to event.target (and
643
- // this only works for an _open_ shadow DOM; otherwise,
644
- // composedPath()[0] === event.target always).
645
- return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
646
- };
647
-
648
- var createFocusTrap = function createFocusTrap(elements, userOptions) {
649
- // SSR: a live trap shouldn't be created in this type of environment so this
650
- // should be safe code to execute if the `document` option isn't specified
651
- var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
652
-
653
- var config = _objectSpread2({
654
- returnFocusOnDeactivate: true,
655
- escapeDeactivates: true,
656
- delayInitialFocus: true
657
- }, userOptions);
658
-
659
- var state = {
660
- // containers given to createFocusTrap()
661
- // @type {Array<HTMLElement>}
662
- containers: [],
663
- // list of objects identifying tabbable nodes in `containers` in the trap
664
- // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
665
- // is active, but the trap should never get to a state where there isn't at least one group
666
- // with at least one tabbable node in it (that would lead to an error condition that would
667
- // result in an error being thrown)
668
- // @type {Array<{
669
- // container: HTMLElement,
670
- // tabbableNodes: Array<HTMLElement>, // empty if none
671
- // focusableNodes: Array<HTMLElement>, // empty if none
672
- // firstTabbableNode: HTMLElement|null,
673
- // lastTabbableNode: HTMLElement|null,
674
- // nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
675
- // }>}
676
- containerGroups: [],
677
- // same order/length as `containers` list
678
- // references to objects in `containerGroups`, but only those that actually have
679
- // tabbable nodes in them
680
- // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
681
- // the same length
682
- tabbableGroups: [],
683
- nodeFocusedBeforeActivation: null,
684
- mostRecentlyFocusedNode: null,
685
- active: false,
686
- paused: false,
687
- // timer ID for when delayInitialFocus is true and initial focus in this trap
688
- // has been delayed during activation
689
- delayInitialFocusTimer: undefined
690
- };
691
- 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
692
-
693
- /**
694
- * Gets a configuration option value.
695
- * @param {Object|undefined} configOverrideOptions If true, and option is defined in this set,
696
- * value will be taken from this object. Otherwise, value will be taken from base configuration.
697
- * @param {string} optionName Name of the option whose value is sought.
698
- * @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
699
- * IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
700
- */
701
-
702
- var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
703
- return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
704
- };
705
- /**
706
- * Finds the index of the container that contains the element.
707
- * @param {HTMLElement} element
708
- * @returns {number} Index of the container in either `state.containers` or
709
- * `state.containerGroups` (the order/length of these lists are the same); -1
710
- * if the element isn't found.
711
- */
712
-
713
-
714
- var findContainerIndex = function findContainerIndex(element) {
715
- // NOTE: search `containerGroups` because it's possible a group contains no tabbable
716
- // nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
717
- // and we still need to find the element in there
718
- return state.containerGroups.findIndex(function (_ref) {
719
- var container = _ref.container,
720
- tabbableNodes = _ref.tabbableNodes;
721
- return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any
722
- // web components if the `tabbableOptions.getShadowRoot` option was used for
723
- // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
724
- // look inside web components even if open)
725
- tabbableNodes.find(function (node) {
726
- return node === element;
727
- });
728
- });
729
- };
730
- /**
731
- * Gets the node for the given option, which is expected to be an option that
732
- * can be either a DOM node, a string that is a selector to get a node, `false`
733
- * (if a node is explicitly NOT given), or a function that returns any of these
734
- * values.
735
- * @param {string} optionName
736
- * @returns {undefined | false | HTMLElement | SVGElement} Returns
737
- * `undefined` if the option is not specified; `false` if the option
738
- * resolved to `false` (node explicitly not given); otherwise, the resolved
739
- * DOM node.
740
- * @throws {Error} If the option is set, not `false`, and is not, or does not
741
- * resolve to a node.
742
- */
743
-
744
-
745
- var getNodeForOption = function getNodeForOption(optionName) {
746
- var optionValue = config[optionName];
747
-
748
- if (typeof optionValue === 'function') {
749
- for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
750
- params[_key2 - 1] = arguments[_key2];
751
- }
752
-
753
- optionValue = optionValue.apply(void 0, params);
754
- }
755
-
756
- if (optionValue === true) {
757
- optionValue = undefined; // use default value
758
- }
759
-
760
- if (!optionValue) {
761
- if (optionValue === undefined || optionValue === false) {
762
- return optionValue;
763
- } // else, empty string (invalid), null (invalid), 0 (invalid)
764
-
765
-
766
- throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
767
- }
768
-
769
- var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
770
-
771
- if (typeof optionValue === 'string') {
772
- node = doc.querySelector(optionValue); // resolve to node, or null if fails
773
-
774
- if (!node) {
775
- throw new Error("`".concat(optionName, "` as selector refers to no known node"));
776
- }
777
- }
778
-
779
- return node;
780
- };
781
-
782
- var getInitialFocusNode = function getInitialFocusNode() {
783
- var node = getNodeForOption('initialFocus'); // false explicitly indicates we want no initialFocus at all
784
-
785
- if (node === false) {
786
- return false;
787
- }
788
-
789
- if (node === undefined) {
790
- // option not specified: use fallback options
791
- if (findContainerIndex(doc.activeElement) >= 0) {
792
- node = doc.activeElement;
793
- } else {
794
- var firstTabbableGroup = state.tabbableGroups[0];
795
- var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode; // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
796
-
797
- node = firstTabbableNode || getNodeForOption('fallbackFocus');
798
- }
799
- }
800
-
801
- if (!node) {
802
- throw new Error('Your focus-trap needs to have at least one focusable element');
803
- }
804
-
805
- return node;
806
- };
807
-
808
- var updateTabbableNodes = function updateTabbableNodes() {
809
- state.containerGroups = state.containers.map(function (container) {
810
- var tabbableNodes = tabbable(container, config.tabbableOptions); // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
811
- // are a superset of tabbable nodes
812
-
813
- var focusableNodes = focusable(container, config.tabbableOptions);
814
- return {
815
- container: container,
816
- tabbableNodes: tabbableNodes,
817
- focusableNodes: focusableNodes,
818
- firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,
819
- lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,
820
-
821
- /**
822
- * Finds the __tabbable__ node that follows the given node in the specified direction,
823
- * in this container, if any.
824
- * @param {HTMLElement} node
825
- * @param {boolean} [forward] True if going in forward tab order; false if going
826
- * in reverse.
827
- * @returns {HTMLElement|undefined} The next tabbable node, if any.
828
- */
829
- nextTabbableNode: function nextTabbableNode(node) {
830
- var forward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
831
- // NOTE: If tabindex is positive (in order to manipulate the tab order separate
832
- // from the DOM order), this __will not work__ because the list of focusableNodes,
833
- // while it contains tabbable nodes, does not sort its nodes in any order other
834
- // than DOM order, because it can't: Where would you place focusable (but not
835
- // tabbable) nodes in that order? They have no order, because they aren't tabbale...
836
- // Support for positive tabindex is already broken and hard to manage (possibly
837
- // not supportable, TBD), so this isn't going to make things worse than they
838
- // already are, and at least makes things better for the majority of cases where
839
- // tabindex is either 0/unset or negative.
840
- // FYI, positive tabindex issue: https://github.com/focus-trap/focus-trap/issues/375
841
- var nodeIdx = focusableNodes.findIndex(function (n) {
842
- return n === node;
843
- });
844
-
845
- if (nodeIdx < 0) {
846
- return undefined;
847
- }
848
-
849
- if (forward) {
850
- return focusableNodes.slice(nodeIdx + 1).find(function (n) {
851
- return isTabbable(n, config.tabbableOptions);
852
- });
853
- }
854
-
855
- return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
856
- return isTabbable(n, config.tabbableOptions);
857
- });
858
- }
859
- };
860
- });
861
- state.tabbableGroups = state.containerGroups.filter(function (group) {
862
- return group.tabbableNodes.length > 0;
863
- }); // throw if no groups have tabbable nodes and we don't have a fallback focus node either
864
-
865
- if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
866
- ) {
867
- throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
868
- }
869
- };
870
-
871
- var tryFocus = function tryFocus(node) {
872
- if (node === false) {
873
- return;
874
- }
875
-
876
- if (node === doc.activeElement) {
877
- return;
878
- }
879
-
880
- if (!node || !node.focus) {
881
- tryFocus(getInitialFocusNode());
882
- return;
883
- }
884
-
885
- node.focus({
886
- preventScroll: !!config.preventScroll
887
- });
888
- state.mostRecentlyFocusedNode = node;
889
-
890
- if (isSelectableInput(node)) {
891
- node.select();
892
- }
893
- };
894
-
895
- var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
896
- var node = getNodeForOption('setReturnFocus', previousActiveElement);
897
- return node ? node : node === false ? false : previousActiveElement;
898
- }; // This needs to be done on mousedown and touchstart instead of click
899
- // so that it precedes the focus event.
900
-
901
-
902
- var checkPointerDown = function checkPointerDown(e) {
903
- var target = getActualTarget(e);
904
-
905
- if (findContainerIndex(target) >= 0) {
906
- // allow the click since it ocurred inside the trap
907
- return;
908
- }
909
-
910
- if (valueOrHandler(config.clickOutsideDeactivates, e)) {
911
- // immediately deactivate the trap
912
- trap.deactivate({
913
- // if, on deactivation, we should return focus to the node originally-focused
914
- // when the trap was activated (or the configured `setReturnFocus` node),
915
- // then assume it's also OK to return focus to the outside node that was
916
- // just clicked, causing deactivation, as long as that node is focusable;
917
- // if it isn't focusable, then return focus to the original node focused
918
- // on activation (or the configured `setReturnFocus` node)
919
- // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
920
- // which will result in the outside click setting focus to the node
921
- // that was clicked, whether it's focusable or not; by setting
922
- // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
923
- // on activation (or the configured `setReturnFocus` node)
924
- returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)
925
- });
926
- return;
927
- } // This is needed for mobile devices.
928
- // (If we'll only let `click` events through,
929
- // then on mobile they will be blocked anyways if `touchstart` is blocked.)
930
-
931
-
932
- if (valueOrHandler(config.allowOutsideClick, e)) {
933
- // allow the click outside the trap to take place
934
- return;
935
- } // otherwise, prevent the click
936
-
937
-
938
- e.preventDefault();
939
- }; // In case focus escapes the trap for some strange reason, pull it back in.
940
-
941
-
942
- var checkFocusIn = function checkFocusIn(e) {
943
- var target = getActualTarget(e);
944
- var targetContained = findContainerIndex(target) >= 0; // In Firefox when you Tab out of an iframe the Document is briefly focused.
945
-
946
- if (targetContained || target instanceof Document) {
947
- if (targetContained) {
948
- state.mostRecentlyFocusedNode = target;
949
- }
950
- } else {
951
- // escaped! pull it back in to where it just left
952
- e.stopImmediatePropagation();
953
- tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
954
- }
955
- }; // Hijack Tab events on the first and last focusable nodes of the trap,
956
- // in order to prevent focus from escaping. If it escapes for even a
957
- // moment it can end up scrolling the page and causing confusion so we
958
- // kind of need to capture the action at the keydown phase.
959
-
960
-
961
- var checkTab = function checkTab(e) {
962
- var target = getActualTarget(e);
963
- updateTabbableNodes();
964
- var destinationNode = null;
965
-
966
- if (state.tabbableGroups.length > 0) {
967
- // make sure the target is actually contained in a group
968
- // NOTE: the target may also be the container itself if it's focusable
969
- // with tabIndex='-1' and was given initial focus
970
- var containerIndex = findContainerIndex(target);
971
- var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
972
-
973
- if (containerIndex < 0) {
974
- // target not found in any group: quite possible focus has escaped the trap,
975
- // so bring it back in to...
976
- if (e.shiftKey) {
977
- // ...the last node in the last group
978
- destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
979
- } else {
980
- // ...the first node in the first group
981
- destinationNode = state.tabbableGroups[0].firstTabbableNode;
982
- }
983
- } else if (e.shiftKey) {
984
- // REVERSE
985
- // is the target the first tabbable node in a group?
986
- var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {
987
- var firstTabbableNode = _ref2.firstTabbableNode;
988
- return target === firstTabbableNode;
989
- });
990
-
991
- if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
992
- // an exception case where the target is either the container itself, or
993
- // a non-tabbable node that was given focus (i.e. tabindex is negative
994
- // and user clicked on it or node was programmatically given focus)
995
- // and is not followed by any other tabbable node, in which
996
- // case, we should handle shift+tab as if focus were on the container's
997
- // first tabbable node, and go to the last tabbable node of the LAST group
998
- startOfGroupIndex = containerIndex;
999
- }
1000
-
1001
- if (startOfGroupIndex >= 0) {
1002
- // YES: then shift+tab should go to the last tabbable node in the
1003
- // previous group (and wrap around to the last tabbable node of
1004
- // the LAST group if it's the first tabbable node of the FIRST group)
1005
- var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
1006
- var destinationGroup = state.tabbableGroups[destinationGroupIndex];
1007
- destinationNode = destinationGroup.lastTabbableNode;
1008
- }
1009
- } else {
1010
- // FORWARD
1011
- // is the target the last tabbable node in a group?
1012
- var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {
1013
- var lastTabbableNode = _ref3.lastTabbableNode;
1014
- return target === lastTabbableNode;
1015
- });
1016
-
1017
- if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
1018
- // an exception case where the target is the container itself, or
1019
- // a non-tabbable node that was given focus (i.e. tabindex is negative
1020
- // and user clicked on it or node was programmatically given focus)
1021
- // and is not followed by any other tabbable node, in which
1022
- // case, we should handle tab as if focus were on the container's
1023
- // last tabbable node, and go to the first tabbable node of the FIRST group
1024
- lastOfGroupIndex = containerIndex;
1025
- }
1026
-
1027
- if (lastOfGroupIndex >= 0) {
1028
- // YES: then tab should go to the first tabbable node in the next
1029
- // group (and wrap around to the first tabbable node of the FIRST
1030
- // group if it's the last tabbable node of the LAST group)
1031
- var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
1032
-
1033
- var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
1034
- destinationNode = _destinationGroup.firstTabbableNode;
1035
- }
1036
- }
1037
- } else {
1038
- // NOTE: the fallbackFocus option does not support returning false to opt-out
1039
- destinationNode = getNodeForOption('fallbackFocus');
1040
- }
1041
-
1042
- if (destinationNode) {
1043
- e.preventDefault();
1044
- tryFocus(destinationNode);
1045
- } // else, let the browser take care of [shift+]tab and move the focus
1046
-
1047
- };
1048
-
1049
- var checkKey = function checkKey(e) {
1050
- if (isEscapeEvent(e) && valueOrHandler(config.escapeDeactivates, e) !== false) {
1051
- e.preventDefault();
1052
- trap.deactivate();
1053
- return;
1054
- }
1055
-
1056
- if (isTabEvent(e)) {
1057
- checkTab(e);
1058
- return;
1059
- }
1060
- };
1061
-
1062
- var checkClick = function checkClick(e) {
1063
- var target = getActualTarget(e);
1064
-
1065
- if (findContainerIndex(target) >= 0) {
1066
- return;
1067
- }
1068
-
1069
- if (valueOrHandler(config.clickOutsideDeactivates, e)) {
1070
- return;
1071
- }
1072
-
1073
- if (valueOrHandler(config.allowOutsideClick, e)) {
1074
- return;
1075
- }
1076
-
1077
- e.preventDefault();
1078
- e.stopImmediatePropagation();
1079
- }; //
1080
- // EVENT LISTENERS
1081
- //
1082
-
1083
-
1084
- var addListeners = function addListeners() {
1085
- if (!state.active) {
1086
- return;
1087
- } // There can be only one listening focus trap at a time
1088
-
1089
-
1090
- activeFocusTraps.activateTrap(trap); // Delay ensures that the focused element doesn't capture the event
1091
- // that caused the focus trap activation.
1092
-
1093
- state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
1094
- tryFocus(getInitialFocusNode());
1095
- }) : tryFocus(getInitialFocusNode());
1096
- doc.addEventListener('focusin', checkFocusIn, true);
1097
- doc.addEventListener('mousedown', checkPointerDown, {
1098
- capture: true,
1099
- passive: false
1100
- });
1101
- doc.addEventListener('touchstart', checkPointerDown, {
1102
- capture: true,
1103
- passive: false
1104
- });
1105
- doc.addEventListener('click', checkClick, {
1106
- capture: true,
1107
- passive: false
1108
- });
1109
- doc.addEventListener('keydown', checkKey, {
1110
- capture: true,
1111
- passive: false
1112
- });
1113
- return trap;
1114
- };
1115
-
1116
- var removeListeners = function removeListeners() {
1117
- if (!state.active) {
1118
- return;
1119
- }
1120
-
1121
- doc.removeEventListener('focusin', checkFocusIn, true);
1122
- doc.removeEventListener('mousedown', checkPointerDown, true);
1123
- doc.removeEventListener('touchstart', checkPointerDown, true);
1124
- doc.removeEventListener('click', checkClick, true);
1125
- doc.removeEventListener('keydown', checkKey, true);
1126
- return trap;
1127
- }; //
1128
- // TRAP DEFINITION
1129
- //
1130
-
1131
-
1132
- trap = {
1133
- get active() {
1134
- return state.active;
1135
- },
1136
-
1137
- get paused() {
1138
- return state.paused;
1139
- },
1140
-
1141
- activate: function activate(activateOptions) {
1142
- if (state.active) {
1143
- return this;
1144
- }
1145
-
1146
- var onActivate = getOption(activateOptions, 'onActivate');
1147
- var onPostActivate = getOption(activateOptions, 'onPostActivate');
1148
- var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
1149
-
1150
- if (!checkCanFocusTrap) {
1151
- updateTabbableNodes();
1152
- }
1153
-
1154
- state.active = true;
1155
- state.paused = false;
1156
- state.nodeFocusedBeforeActivation = doc.activeElement;
1157
-
1158
- if (onActivate) {
1159
- onActivate();
1160
- }
1161
-
1162
- var finishActivation = function finishActivation() {
1163
- if (checkCanFocusTrap) {
1164
- updateTabbableNodes();
1165
- }
1166
-
1167
- addListeners();
1168
-
1169
- if (onPostActivate) {
1170
- onPostActivate();
1171
- }
1172
- };
1173
-
1174
- if (checkCanFocusTrap) {
1175
- checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
1176
- return this;
1177
- }
1178
-
1179
- finishActivation();
1180
- return this;
1181
- },
1182
- deactivate: function deactivate(deactivateOptions) {
1183
- if (!state.active) {
1184
- return this;
1185
- }
1186
-
1187
- var options = _objectSpread2({
1188
- onDeactivate: config.onDeactivate,
1189
- onPostDeactivate: config.onPostDeactivate,
1190
- checkCanReturnFocus: config.checkCanReturnFocus
1191
- }, deactivateOptions);
1192
-
1193
- clearTimeout(state.delayInitialFocusTimer); // noop if undefined
1194
-
1195
- state.delayInitialFocusTimer = undefined;
1196
- removeListeners();
1197
- state.active = false;
1198
- state.paused = false;
1199
- activeFocusTraps.deactivateTrap(trap);
1200
- var onDeactivate = getOption(options, 'onDeactivate');
1201
- var onPostDeactivate = getOption(options, 'onPostDeactivate');
1202
- var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
1203
- var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
1204
-
1205
- if (onDeactivate) {
1206
- onDeactivate();
1207
- }
1208
-
1209
- var finishDeactivation = function finishDeactivation() {
1210
- delay(function () {
1211
- if (returnFocus) {
1212
- tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
1213
- }
1214
-
1215
- if (onPostDeactivate) {
1216
- onPostDeactivate();
1217
- }
1218
- });
1219
- };
1220
-
1221
- if (returnFocus && checkCanReturnFocus) {
1222
- checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
1223
- return this;
1224
- }
1225
-
1226
- finishDeactivation();
1227
- return this;
1228
- },
1229
- pause: function pause() {
1230
- if (state.paused || !state.active) {
1231
- return this;
1232
- }
1233
-
1234
- state.paused = true;
1235
- removeListeners();
1236
- return this;
1237
- },
1238
- unpause: function unpause() {
1239
- if (!state.paused || !state.active) {
1240
- return this;
1241
- }
1242
-
1243
- state.paused = false;
1244
- updateTabbableNodes();
1245
- addListeners();
1246
- return this;
1247
- },
1248
- updateContainerElements: function updateContainerElements(containerElements) {
1249
- var elementsAsArray = [].concat(containerElements).filter(Boolean);
1250
- state.containers = elementsAsArray.map(function (element) {
1251
- return typeof element === 'string' ? doc.querySelector(element) : element;
1252
- });
1253
-
1254
- if (state.active) {
1255
- updateTabbableNodes();
1256
- }
1257
-
1258
- return this;
1259
- }
1260
- }; // initialize container elements
1261
-
1262
- trap.updateContainerElements(elements);
1263
- return trap;
1264
- };
1265
-
1266
- /**
1267
- * Helper to set up focus trap component.
1268
- *
1269
- * @param component
1270
- */
1271
- function connectFocusTrap(component) {
1272
- const { focusTrapEl } = component;
1273
- if (!focusTrapEl) {
1274
- return;
1275
- }
1276
- if (focusTrapEl.tabIndex == null) {
1277
- focusTrapEl.tabIndex = -1;
1278
- }
1279
- const focusTrapOptions = {
1280
- allowOutsideClick: true,
1281
- clickOutsideDeactivates: false,
1282
- escapeDeactivates: false,
1283
- fallbackFocus: focusTrapEl,
1284
- setReturnFocus: (el) => {
1285
- dom.focusElement(el);
1286
- return false;
1287
- },
1288
- tabbableOptions: {
1289
- getShadowRoot: true
1290
- }
1291
- };
1292
- component.focusTrap = createFocusTrap(focusTrapEl, focusTrapOptions);
1293
- }
1294
- /**
1295
- * Helper to activate focus trap component.
1296
- *
1297
- * @param component
1298
- */
1299
- function activateFocusTrap(component) {
1300
- var _a;
1301
- (_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.activate();
1302
- }
1303
- /**
1304
- * Helper to tear deactivate focus trap component.
1305
- *
1306
- * @param component
1307
- */
1308
- function deactivateFocusTrap(component) {
1309
- var _a;
1310
- (_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.deactivate();
1311
- }
1312
-
1313
52
  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{--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{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{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]){--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]){--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]){--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{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;inset:0px;display:flex;overflow-y:hidden}.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{transform:var(--calcite-modal-hidden-position)}.modal--opening-active{transform:var(--calcite-modal-shown-position)}.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([open]){opacity:1;visibility:visible !important;transition-delay:0ms}:host([open]) .modal--open{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{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{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{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{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(*),*::slotted([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{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{padding:var(--calcite-modal-padding)}.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-content-text, var(--calcite-modal-context-text-internal))}:host([background-color=grey]) .content{background-color:var(--calcite-ui-background)}.footer{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,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width=s]) .modal{max-inline-size:32rem}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width=s][docked]){align-items:flex-end}}:host([width=m]) .modal{max-inline-size:48rem}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width=m][docked]){align-items:flex-end}}:host([width=l]) .modal{max-inline-size:94rem}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width=l][docked]){align-items:flex-end}}:host([fullscreen]){background-color:transparent}:host([fullscreen]) .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{max-block-size:100%;flex:1 1 auto}:host([open][fullscreen]) .header{border-radius:0}:host([open][fullscreen]) .footer{border-radius:0}:host([docked]) .modal{block-size:auto}:host([docked]) .content{block-size:auto;flex:1 1 auto}@media screen and (max-width: 860px){:host([docked]) .modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}:host([docked]) .close{border-start-end-radius:var(--calcite-border-radius)}}:host([color=red]) .modal{border-color:var(--calcite-ui-danger)}:host([color=blue]) .modal{border-color:var(--calcite-ui-info)}:host([color=red]) .modal,:host([color=blue]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([color=red]) .header,:host([color=blue]) .header{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){slot[name=header]::slotted(*),*::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer{flex-direction:column}.back,.secondary{margin:0px;margin-block-end:0.25rem}}";
1314
53
 
1315
54
  const Modal = class {
@@ -1377,12 +116,12 @@ const Modal = class {
1377
116
  this.transitionEl = el;
1378
117
  openCloseComponent.connectOpenCloseComponent(this);
1379
118
  this.focusTrapEl = el;
1380
- connectFocusTrap(this);
119
+ focusTrapComponent.connectFocusTrap(this);
1381
120
  };
1382
121
  this.openEnd = () => {
1383
122
  this.setFocus();
1384
123
  this.el.removeEventListener("calciteModalOpen", this.openEnd);
1385
- activateFocusTrap(this);
124
+ focusTrapComponent.activateFocusTrap(this);
1386
125
  };
1387
126
  this.handleOutsideClose = () => {
1388
127
  if (this.disableOutsideClose) {
@@ -1432,7 +171,7 @@ const Modal = class {
1432
171
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
1433
172
  conditionalSlot.disconnectConditionalSlotComponent(this);
1434
173
  openCloseComponent.disconnectOpenCloseComponent(this);
1435
- deactivateFocusTrap(this);
174
+ focusTrapComponent.deactivateFocusTrap(this);
1436
175
  }
1437
176
  render() {
1438
177
  return (index.h(index.Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, index.h("calcite-scrim", { class: CSS.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), index.h("div", { class: {
@@ -1513,7 +252,7 @@ const Modal = class {
1513
252
  if (closeButtonEl && focusId === "close-button") {
1514
253
  return dom.focusElement(closeButtonEl);
1515
254
  }
1516
- activateFocusTrap(this);
255
+ focusTrapComponent.activateFocusTrap(this);
1517
256
  }
1518
257
  /**
1519
258
  * Sets the scroll top of the component's content.
@@ -1547,7 +286,7 @@ const Modal = class {
1547
286
  onClose() {
1548
287
  this.transitionEl.classList.remove(CSS.closingIdle, CSS.closingActive);
1549
288
  this.calciteModalClose.emit();
1550
- deactivateFocusTrap(this);
289
+ focusTrapComponent.deactivateFocusTrap(this);
1551
290
  }
1552
291
  activeHandler(value) {
1553
292
  this.open = value;