@esri/calcite-components 1.0.0-next.634 → 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 (656) 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-2b318f6c.entry.js → p-003cd928.entry.js} +2 -2
  4. package/dist/calcite/{p-19003ab3.entry.js → p-02319a55.entry.js} +2 -2
  5. package/dist/calcite/{p-1bf32f54.entry.js → p-047a894c.entry.js} +2 -2
  6. package/dist/calcite/p-050bcfa7.js +6 -0
  7. package/dist/calcite/{p-9f0364e4.entry.js → p-0cdac321.entry.js} +2 -2
  8. package/dist/calcite/p-0d0ca23e.entry.js +6 -0
  9. package/dist/calcite/{p-6791bba7.js → p-0dae116f.js} +1 -1
  10. package/dist/calcite/{p-45934568.entry.js → p-0e1b3356.entry.js} +2 -2
  11. package/dist/calcite/{p-3e516c7f.js → p-126fa44e.js} +1 -1
  12. package/dist/calcite/{p-a1df68f2.js → p-16bb1c44.js} +1 -1
  13. package/dist/calcite/{p-93eeb8dc.entry.js → p-174f21bd.entry.js} +2 -2
  14. package/dist/calcite/{p-c8ce3c7f.entry.js → p-184e54f7.entry.js} +2 -2
  15. package/dist/calcite/{p-1955c220.entry.js → p-1c63d0d7.entry.js} +2 -2
  16. package/dist/calcite/{p-8aaed1cd.entry.js → p-1c7d5079.entry.js} +2 -2
  17. package/dist/calcite/{p-45e94405.entry.js → p-1fb2b938.entry.js} +2 -2
  18. package/dist/calcite/{p-7811fc62.entry.js → p-20544b89.entry.js} +2 -2
  19. package/dist/calcite/{p-3ac19fc5.js → p-2210ff78.js} +1 -1
  20. package/dist/calcite/{p-8c7c815d.entry.js → p-227e6007.entry.js} +2 -2
  21. package/dist/calcite/{p-f20871da.entry.js → p-23e39973.entry.js} +2 -2
  22. package/dist/calcite/{p-363d6d79.entry.js → p-2431bbda.entry.js} +2 -2
  23. package/dist/calcite/{p-b949f88e.entry.js → p-28db2e6a.entry.js} +2 -2
  24. package/dist/calcite/{p-c5471b9c.js → p-2c1fcd36.js} +1 -1
  25. package/dist/calcite/{p-0c2f17ae.entry.js → p-2c2b7c1c.entry.js} +2 -2
  26. package/dist/calcite/{p-0f9820a6.entry.js → p-2c3d72da.entry.js} +2 -2
  27. package/dist/calcite/{p-283f5c09.js → p-2e729f17.js} +1 -1
  28. package/dist/calcite/{p-c51dd881.entry.js → p-32aabd8a.entry.js} +2 -2
  29. package/dist/calcite/{p-3bd2a45e.js → p-3318431e.js} +1 -1
  30. package/dist/calcite/{p-be329084.entry.js → p-34a924fa.entry.js} +2 -2
  31. package/dist/calcite/p-35b23b55.js +15 -0
  32. package/dist/calcite/{p-3248b760.js → p-3aadc225.js} +1 -1
  33. package/dist/calcite/{p-63901ce6.entry.js → p-4058beb9.entry.js} +2 -2
  34. package/dist/calcite/{p-693aae03.js → p-419c5f27.js} +1 -1
  35. package/dist/calcite/{p-e8fe4f12.js → p-41cf73d5.js} +1 -1
  36. package/dist/calcite/{p-1641222a.entry.js → p-430967c9.entry.js} +2 -2
  37. package/dist/calcite/p-44dfb0b5.entry.js +6 -0
  38. package/dist/calcite/{p-c6f2847f.js → p-4a735f17.js} +1 -1
  39. package/dist/calcite/{p-3ae26798.js → p-4ebf8ec4.js} +1 -1
  40. package/dist/calcite/{p-f21e4981.entry.js → p-4f052c43.entry.js} +2 -2
  41. package/dist/calcite/{p-43ad384d.entry.js → p-4feb2c51.entry.js} +2 -2
  42. package/dist/calcite/{p-beb4d321.entry.js → p-510399e0.entry.js} +2 -2
  43. package/dist/calcite/{p-60b58be2.js → p-51b3eb60.js} +2 -2
  44. package/dist/calcite/{p-f33f79fe.entry.js → p-59fa4629.entry.js} +2 -2
  45. package/dist/calcite/{p-54747397.entry.js → p-5e999bda.entry.js} +2 -2
  46. package/dist/calcite/{p-4fb26ddc.js → p-63030c4f.js} +1 -1
  47. package/dist/calcite/{p-99fbd79f.entry.js → p-64d1a9ae.entry.js} +2 -2
  48. package/dist/calcite/{p-1d6a3729.entry.js → p-66f8f8e2.entry.js} +2 -2
  49. package/dist/calcite/{p-a859d62c.js → p-68f451fb.js} +2 -2
  50. package/dist/calcite/{p-95ea2591.entry.js → p-6a76beed.entry.js} +2 -2
  51. package/dist/calcite/{p-a93c20e4.js → p-6ffc1716.js} +2 -2
  52. package/dist/calcite/{p-5ef82018.entry.js → p-71cf6916.entry.js} +2 -2
  53. package/dist/calcite/{p-cdff6a3b.entry.js → p-733b274a.entry.js} +2 -2
  54. package/dist/calcite/{p-d51b3c13.entry.js → p-73fa7a5f.entry.js} +2 -2
  55. package/dist/calcite/{p-8a0dcc5a.entry.js → p-789a8048.entry.js} +2 -2
  56. package/dist/calcite/{p-fe757481.js → p-7b8c4581.js} +2 -2
  57. package/dist/calcite/{p-a00ebc99.entry.js → p-7d295cf3.entry.js} +2 -2
  58. package/dist/calcite/{p-f554f86a.entry.js → p-7d3f0c98.entry.js} +2 -2
  59. package/dist/calcite/{p-aa828b48.entry.js → p-7f789875.entry.js} +2 -2
  60. package/dist/calcite/p-7fbb463d.entry.js +6 -0
  61. package/dist/calcite/{p-091c5cce.entry.js → p-87d5f0a3.entry.js} +2 -2
  62. package/dist/calcite/{p-ad93f824.js → p-8d124d33.js} +2 -2
  63. package/dist/calcite/p-9d61b3b9.entry.js +6 -0
  64. package/dist/calcite/{p-68ac060f.entry.js → p-9e38e176.entry.js} +2 -2
  65. package/dist/calcite/{p-40ac55d4.js → p-9e930bb8.js} +1 -1
  66. package/dist/calcite/{p-891c863d.entry.js → p-9ec94c00.entry.js} +2 -2
  67. package/dist/calcite/{p-7c84cdd0.entry.js → p-9fc23e93.entry.js} +2 -2
  68. package/dist/calcite/{p-3a0ebd79.js → p-a3092903.js} +2 -2
  69. package/dist/calcite/{p-b1b9a8cb.entry.js → p-a9fc00ba.entry.js} +2 -2
  70. package/dist/calcite/{p-1ade2485.entry.js → p-abe0e309.entry.js} +2 -2
  71. package/dist/calcite/{p-7d6f058f.entry.js → p-b0b67288.entry.js} +2 -2
  72. package/dist/calcite/{p-d9315abb.js → p-b27c59bc.js} +2 -2
  73. package/dist/calcite/{p-5aaca94e.entry.js → p-b2fee745.entry.js} +2 -2
  74. package/dist/calcite/{p-cfcc6d04.entry.js → p-b5c98e4a.entry.js} +2 -2
  75. package/dist/calcite/{p-6e4a7bd1.entry.js → p-b5fdb4aa.entry.js} +2 -2
  76. package/dist/calcite/{p-65af369a.entry.js → p-b6d67959.entry.js} +2 -2
  77. package/dist/calcite/{p-ff11b325.js → p-b7fd85f7.js} +2 -2
  78. package/dist/calcite/p-bb80464d.js +6 -0
  79. package/dist/calcite/{p-bbbb8e7b.entry.js → p-c1629836.entry.js} +2 -2
  80. package/dist/calcite/{p-84d1aa8c.entry.js → p-c8c0d267.entry.js} +2 -2
  81. package/dist/calcite/p-d1cfc4b3.entry.js +6 -0
  82. package/dist/calcite/{p-61ff7d33.entry.js → p-dd5132ff.entry.js} +2 -2
  83. package/dist/calcite/{p-81648a65.entry.js → p-e17b4359.entry.js} +2 -2
  84. package/dist/calcite/{p-77fd410f.js → p-e1a01667.js} +2 -2
  85. package/dist/calcite/{p-8463b612.entry.js → p-e2015219.entry.js} +2 -2
  86. package/dist/calcite/{p-a16fb01b.entry.js → p-e334b08c.entry.js} +2 -2
  87. package/dist/calcite/{p-8fd4a94b.js → p-e985b1ca.js} +1 -1
  88. package/dist/calcite/{p-1fcec990.js → p-ee4b7f4b.js} +1 -1
  89. package/dist/calcite/{p-71442073.js → p-efe6b273.js} +2 -2
  90. package/dist/calcite/p-f651dccb.js +6 -0
  91. package/dist/calcite/{p-def7411e.entry.js → p-f660df45.entry.js} +2 -2
  92. package/dist/calcite/{p-ea84f206.entry.js → p-f6d1d1d5.entry.js} +2 -2
  93. package/dist/cjs/{ExpandToggle-3e3214db.js → ExpandToggle-e018641b.js} +5 -5
  94. package/dist/cjs/{Heading-f9512062.js → Heading-2e9dceb8.js} +2 -2
  95. package/dist/cjs/{app-globals-686edd04.js → app-globals-0949b975.js} +2 -2
  96. package/dist/cjs/{array-c5663245.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 +7 -7
  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 +9 -9
  107. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  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 +5 -5
  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 +3 -3
  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 +2 -2
  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-80ddc591.js → conditionalSlot-c28021dc.js} +3 -3
  159. package/dist/cjs/{debounce-0aa10d54.js → debounce-27f4872f.js} +1 -1
  160. package/dist/cjs/{dom-48b6e7ea.js → dom-5245652b.js} +3 -3
  161. package/dist/cjs/{filter-a0be9143.js → filter-47f3c4df.js} +2 -2
  162. package/dist/cjs/{floating-ui-e113e507.js → floating-ui-c4264248.js} +4 -4
  163. package/dist/cjs/focusTrapComponent-ff4957d9.js +1274 -0
  164. package/dist/cjs/{form-6a1ae142.js → form-2ee231ac.js} +3 -3
  165. package/dist/cjs/{guid-e8bdff74.js → guid-88aff5b7.js} +1 -1
  166. package/dist/cjs/{index-cb33237a.js → index-3d158670.js} +1 -1
  167. package/dist/cjs/index.cjs.js +1 -1
  168. package/dist/cjs/{interactive-58feb714.js → interactive-659fd37c.js} +1 -1
  169. package/dist/cjs/{interfaces-514b6336.js → interfaces-40ceb8ba.js} +1 -1
  170. package/dist/cjs/{key-28925014.js → key-feab4f11.js} +1 -1
  171. package/dist/cjs/{label-db8e5611.js → label-dd4edfec.js} +2 -2
  172. package/dist/cjs/loader.cjs.js +5 -5
  173. package/dist/cjs/{locale-4712da13.js → locale-3825dbc0.js} +4 -4
  174. package/dist/cjs/{math-21003c2e.js → math-3ef4a1ed.js} +1 -1
  175. package/dist/cjs/{nonChromiumPlatformUtils-6028edcd.js → nonChromiumPlatformUtils-96decf6b.js} +6 -6
  176. package/dist/cjs/{observers-82e08d22.js → observers-460db0ff.js} +1 -1
  177. package/dist/cjs/{openCloseComponent-6fef593d.js → openCloseComponent-389f3b15.js} +1 -1
  178. package/dist/cjs/{resources-b3ffaf81.js → resources-4ba7daaf.js} +1 -1
  179. package/dist/cjs/{resources-5722680b.js → resources-8cec4531.js} +1 -1
  180. package/dist/cjs/{resources-f96b551b.js → resources-8d870113.js} +1 -1
  181. package/dist/cjs/{resources-b0c6c049.js → resources-90e2407e.js} +5 -5
  182. package/dist/cjs/{resources-160d3f9d.js → resources-adc133e8.js} +3 -3
  183. package/dist/cjs/{resources-c1ff1f36.js → resources-eef7f920.js} +1 -1
  184. package/dist/cjs/{sortable.esm-497a0105.js → sortable.esm-2847bee5.js} +1 -1
  185. package/dist/cjs/{utils-3a948a07.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 +1 -1
  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 +1 -1
  210. package/dist/collection/components/button/resources.js +1 -1
  211. package/dist/collection/components/card/card.js +1 -1
  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.js +1 -1
  267. package/dist/collection/components/input-message/interfaces.js +1 -1
  268. package/dist/collection/components/input-number/input-number.js +1 -1
  269. package/dist/collection/components/input-number/resources.js +1 -1
  270. package/dist/collection/components/input-text/input-text.js +1 -1
  271. package/dist/collection/components/input-text/resources.js +1 -1
  272. package/dist/collection/components/input-time-picker/input-time-picker.js +2 -2
  273. package/dist/collection/components/label/label.js +1 -1
  274. package/dist/collection/components/label/resources.js +1 -1
  275. package/dist/collection/components/link/link.js +1 -1
  276. package/dist/collection/components/list/list.js +1 -1
  277. package/dist/collection/components/list/resources.js +1 -1
  278. package/dist/collection/components/list-item/list-item.js +1 -1
  279. package/dist/collection/components/list-item/resources.js +1 -1
  280. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  281. package/dist/collection/components/list-item-group/resources.js +1 -1
  282. package/dist/collection/components/loader/loader.js +1 -1
  283. package/dist/collection/components/modal/modal.js +1 -1
  284. package/dist/collection/components/modal/resources.js +1 -1
  285. package/dist/collection/components/notice/notice.js +1 -1
  286. package/dist/collection/components/notice/resources.js +1 -1
  287. package/dist/collection/components/option/option.js +1 -1
  288. package/dist/collection/components/option-group/option-group.js +1 -1
  289. package/dist/collection/components/pagination/pagination.js +1 -1
  290. package/dist/collection/components/pagination/resources.js +1 -1
  291. package/dist/collection/components/panel/panel.js +1 -1
  292. package/dist/collection/components/panel/resources.js +1 -1
  293. package/dist/collection/components/pick-list/pick-list.js +1 -1
  294. package/dist/collection/components/pick-list/resources.js +1 -1
  295. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  296. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  297. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  298. package/dist/collection/components/pick-list-group/resources.js +1 -1
  299. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  300. package/dist/collection/components/pick-list-item/resources.js +1 -1
  301. package/dist/collection/components/popover/PopoverManager.js +1 -1
  302. package/dist/collection/components/popover/popover.js +32 -3
  303. package/dist/collection/components/popover/resources.js +1 -1
  304. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  305. package/dist/collection/components/progress/progress.js +1 -1
  306. package/dist/collection/components/radio-button/radio-button.js +1 -1
  307. package/dist/collection/components/radio-button/resources.js +1 -1
  308. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  309. package/dist/collection/components/radio-group/radio-group.js +1 -1
  310. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  311. package/dist/collection/components/radio-group-item/resources.js +1 -1
  312. package/dist/collection/components/rating/rating.js +1 -1
  313. package/dist/collection/components/rating/resources.js +1 -1
  314. package/dist/collection/components/scrim/resources.js +1 -1
  315. package/dist/collection/components/scrim/scrim.js +1 -1
  316. package/dist/collection/components/select/resources.js +1 -1
  317. package/dist/collection/components/select/select.js +1 -1
  318. package/dist/collection/components/shell/resources.js +1 -1
  319. package/dist/collection/components/shell/shell.js +1 -1
  320. package/dist/collection/components/shell-center-row/resources.js +1 -1
  321. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  322. package/dist/collection/components/shell-panel/resources.js +1 -1
  323. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  324. package/dist/collection/components/slider/resources.js +1 -1
  325. package/dist/collection/components/slider/slider.js +1 -1
  326. package/dist/collection/components/sortable-list/resources.js +1 -1
  327. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  328. package/dist/collection/components/split-button/resources.js +1 -1
  329. package/dist/collection/components/split-button/split-button.js +1 -1
  330. package/dist/collection/components/stepper/stepper.js +1 -1
  331. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  332. package/dist/collection/components/switch/switch.js +1 -1
  333. package/dist/collection/components/tab/tab.js +1 -1
  334. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  335. package/dist/collection/components/tab-title/tab-title.js +1 -1
  336. package/dist/collection/components/tabs/resources.js +1 -1
  337. package/dist/collection/components/tabs/tabs.js +1 -1
  338. package/dist/collection/components/tile/resources.js +1 -1
  339. package/dist/collection/components/tile/tile.js +1 -1
  340. package/dist/collection/components/tile-select/resources.js +1 -1
  341. package/dist/collection/components/tile-select/tile-select.js +1 -1
  342. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  343. package/dist/collection/components/time-picker/resources.js +1 -1
  344. package/dist/collection/components/time-picker/time-picker.js +1 -1
  345. package/dist/collection/components/tip/resources.js +1 -1
  346. package/dist/collection/components/tip/tip.js +1 -1
  347. package/dist/collection/components/tip-group/tip-group.js +1 -1
  348. package/dist/collection/components/tip-manager/resources.js +1 -1
  349. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  350. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  351. package/dist/collection/components/tooltip/resources.js +1 -1
  352. package/dist/collection/components/tooltip/tooltip.js +90 -7
  353. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  354. package/dist/collection/components/tree/interfaces.js +1 -1
  355. package/dist/collection/components/tree/tree.js +1 -1
  356. package/dist/collection/components/tree/utils.js +1 -1
  357. package/dist/collection/components/tree-item/resources.js +1 -1
  358. package/dist/collection/components/tree-item/tree-item.js +1 -1
  359. package/dist/collection/components/value-list/resources.js +1 -1
  360. package/dist/collection/components/value-list/utils.js +1 -1
  361. package/dist/collection/components/value-list/value-list.js +1 -1
  362. package/dist/collection/components/value-list-item/resources.js +1 -1
  363. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  364. package/dist/collection/utils/array.js +1 -1
  365. package/dist/collection/utils/conditionalSlot.js +1 -1
  366. package/dist/collection/utils/config.js +1 -1
  367. package/dist/collection/utils/date.js +1 -1
  368. package/dist/collection/utils/dom.js +1 -1
  369. package/dist/collection/utils/filter.js +1 -1
  370. package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
  371. package/dist/collection/utils/floating-ui.js +1 -1
  372. package/dist/collection/utils/focusTrapComponent.js +1 -1
  373. package/dist/collection/utils/form.js +1 -1
  374. package/dist/collection/utils/globalAttributes.js +1 -1
  375. package/dist/collection/utils/globalScript.js +1 -1
  376. package/dist/collection/utils/guid.js +1 -1
  377. package/dist/collection/utils/interactive.js +1 -1
  378. package/dist/collection/utils/key.js +1 -1
  379. package/dist/collection/utils/label.js +1 -1
  380. package/dist/collection/utils/locale.js +1 -1
  381. package/dist/collection/utils/math.js +1 -1
  382. package/dist/collection/utils/number.js +1 -1
  383. package/dist/collection/utils/observers.js +1 -1
  384. package/dist/collection/utils/openCloseComponent.js +1 -1
  385. package/dist/collection/utils/resources.js +1 -1
  386. package/dist/collection/utils/t9n.js +1 -1
  387. package/dist/collection/utils/theme.js +1 -1
  388. package/dist/collection/utils/time.js +1 -1
  389. package/dist/components/ExpandToggle.js +1 -1
  390. package/dist/components/Heading.js +1 -1
  391. package/dist/components/action-group.js +1 -1
  392. package/dist/components/action-menu.js +2 -2
  393. package/dist/components/action.js +1 -1
  394. package/dist/components/array.js +1 -1
  395. package/dist/components/button.js +1 -1
  396. package/dist/components/calcite-accordion-item.js +1 -1
  397. package/dist/components/calcite-accordion.js +1 -1
  398. package/dist/components/calcite-action-bar.js +1 -1
  399. package/dist/components/calcite-action-group.js +1 -1
  400. package/dist/components/calcite-action-menu.js +1 -1
  401. package/dist/components/calcite-action-pad.js +1 -1
  402. package/dist/components/calcite-action.js +1 -1
  403. package/dist/components/calcite-alert.js +1 -1
  404. package/dist/components/calcite-avatar.js +1 -1
  405. package/dist/components/calcite-block-section.js +1 -1
  406. package/dist/components/calcite-block.js +1 -1
  407. package/dist/components/calcite-button.js +1 -1
  408. package/dist/components/calcite-card.js +1 -1
  409. package/dist/components/calcite-checkbox.js +1 -1
  410. package/dist/components/calcite-chip.js +1 -1
  411. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  412. package/dist/components/calcite-color-picker-swatch.js +1 -1
  413. package/dist/components/calcite-color-picker.js +1 -1
  414. package/dist/components/calcite-combobox-item-group.js +1 -1
  415. package/dist/components/calcite-combobox-item.js +1 -1
  416. package/dist/components/calcite-combobox.js +1 -1
  417. package/dist/components/calcite-date-picker-day.js +1 -1
  418. package/dist/components/calcite-date-picker-month-header.js +1 -1
  419. package/dist/components/calcite-date-picker-month.js +1 -1
  420. package/dist/components/calcite-date-picker.js +1 -1
  421. package/dist/components/calcite-dropdown-group.js +1 -1
  422. package/dist/components/calcite-dropdown-item.js +1 -1
  423. package/dist/components/calcite-dropdown.js +1 -1
  424. package/dist/components/calcite-fab.js +1 -1
  425. package/dist/components/calcite-filter.js +1 -1
  426. package/dist/components/calcite-flow-item.js +1 -1
  427. package/dist/components/calcite-flow.js +1 -1
  428. package/dist/components/calcite-graph.js +1 -1
  429. package/dist/components/calcite-handle.js +1 -1
  430. package/dist/components/calcite-icon.js +1 -1
  431. package/dist/components/calcite-inline-editable.js +1 -1
  432. package/dist/components/calcite-input-date-picker.js +1 -1
  433. package/dist/components/calcite-input-message.js +1 -1
  434. package/dist/components/calcite-input-number.js +1 -1
  435. package/dist/components/calcite-input-text.js +1 -1
  436. package/dist/components/calcite-input-time-picker.js +2 -2
  437. package/dist/components/calcite-input.js +1 -1
  438. package/dist/components/calcite-label.js +1 -1
  439. package/dist/components/calcite-link.js +1 -1
  440. package/dist/components/calcite-list-item-group.js +1 -1
  441. package/dist/components/calcite-list-item.js +1 -1
  442. package/dist/components/calcite-list.js +1 -1
  443. package/dist/components/calcite-loader.js +1 -1
  444. package/dist/components/calcite-modal.js +3 -1264
  445. package/dist/components/calcite-notice.js +1 -1
  446. package/dist/components/calcite-option-group.js +1 -1
  447. package/dist/components/calcite-option.js +1 -1
  448. package/dist/components/calcite-pagination.js +1 -1
  449. package/dist/components/calcite-panel.js +1 -1
  450. package/dist/components/calcite-pick-list-group.js +1 -1
  451. package/dist/components/calcite-pick-list-item.js +1 -1
  452. package/dist/components/calcite-pick-list.js +1 -1
  453. package/dist/components/calcite-popover-manager.js +1 -1
  454. package/dist/components/calcite-popover.js +1 -1
  455. package/dist/components/calcite-progress.js +1 -1
  456. package/dist/components/calcite-radio-button-group.js +1 -1
  457. package/dist/components/calcite-radio-button.js +1 -1
  458. package/dist/components/calcite-radio-group-item.js +1 -1
  459. package/dist/components/calcite-radio-group.js +1 -1
  460. package/dist/components/calcite-rating.js +1 -1
  461. package/dist/components/calcite-scrim.js +1 -1
  462. package/dist/components/calcite-select.js +1 -1
  463. package/dist/components/calcite-shell-center-row.js +1 -1
  464. package/dist/components/calcite-shell-panel.js +1 -1
  465. package/dist/components/calcite-shell.js +1 -1
  466. package/dist/components/calcite-slider.js +1 -1
  467. package/dist/components/calcite-sortable-list.js +1 -1
  468. package/dist/components/calcite-split-button.js +1 -1
  469. package/dist/components/calcite-stepper-item.js +1 -1
  470. package/dist/components/calcite-stepper.js +1 -1
  471. package/dist/components/calcite-switch.js +1 -1
  472. package/dist/components/calcite-tab-nav.js +1 -1
  473. package/dist/components/calcite-tab-title.js +1 -1
  474. package/dist/components/calcite-tab.js +1 -1
  475. package/dist/components/calcite-tabs.js +1 -1
  476. package/dist/components/calcite-tile-select-group.js +1 -1
  477. package/dist/components/calcite-tile-select.js +1 -1
  478. package/dist/components/calcite-tile.js +1 -1
  479. package/dist/components/calcite-time-picker.js +1 -1
  480. package/dist/components/calcite-tip-group.js +1 -1
  481. package/dist/components/calcite-tip-manager.js +1 -1
  482. package/dist/components/calcite-tip.js +1 -1
  483. package/dist/components/calcite-tooltip-manager.js +1 -1
  484. package/dist/components/calcite-tooltip.js +1 -1
  485. package/dist/components/calcite-tree-item.js +1 -1
  486. package/dist/components/calcite-tree.js +1 -1
  487. package/dist/components/calcite-value-list-item.js +1 -1
  488. package/dist/components/calcite-value-list.js +1 -1
  489. package/dist/components/checkbox.js +1 -1
  490. package/dist/components/chip.js +1 -1
  491. package/dist/components/color-picker-hex-input.js +1 -1
  492. package/dist/components/color-picker-swatch.js +1 -1
  493. package/dist/components/conditionalSlot.js +1 -1
  494. package/dist/components/date-picker-day.js +1 -1
  495. package/dist/components/date-picker-month-header.js +1 -1
  496. package/dist/components/date-picker-month.js +1 -1
  497. package/dist/components/date-picker.js +1 -1
  498. package/dist/components/date.js +1 -1
  499. package/dist/components/debounce.js +1 -1
  500. package/dist/components/dom.js +1 -1
  501. package/dist/components/dropdown.js +1 -1
  502. package/dist/components/filter.js +1 -1
  503. package/dist/components/filter2.js +1 -1
  504. package/dist/components/floating-ui.js +1 -1
  505. package/dist/components/focusTrapComponent.js +1270 -0
  506. package/dist/components/form.js +1 -1
  507. package/dist/components/graph.js +1 -1
  508. package/dist/components/guid.js +1 -1
  509. package/dist/components/handle.js +1 -1
  510. package/dist/components/icon.js +1 -1
  511. package/dist/components/index.js +1 -1
  512. package/dist/components/input.js +1 -1
  513. package/dist/components/interactive.js +1 -1
  514. package/dist/components/interfaces.js +1 -1
  515. package/dist/components/interfaces2.js +1 -1
  516. package/dist/components/key.js +1 -1
  517. package/dist/components/label.js +1 -1
  518. package/dist/components/label2.js +1 -1
  519. package/dist/components/link.js +1 -1
  520. package/dist/components/loader.js +1 -1
  521. package/dist/components/locale.js +1 -1
  522. package/dist/components/math.js +1 -1
  523. package/dist/components/nonChromiumPlatformUtils.js +1 -1
  524. package/dist/components/observers.js +1 -1
  525. package/dist/components/openCloseComponent.js +1 -1
  526. package/dist/components/panel.js +1 -1
  527. package/dist/components/pick-list-item.js +1 -1
  528. package/dist/components/popover.js +15 -3
  529. package/dist/components/progress.js +1 -1
  530. package/dist/components/resources.js +1 -1
  531. package/dist/components/resources2.js +1 -1
  532. package/dist/components/scrim.js +1 -1
  533. package/dist/components/shared-list-render.js +1 -1
  534. package/dist/components/sortable.esm.js +1 -1
  535. package/dist/components/switch.js +1 -1
  536. package/dist/components/tab-nav.js +1 -1
  537. package/dist/components/tab-title.js +1 -1
  538. package/dist/components/tab.js +1 -1
  539. package/dist/components/tabs.js +1 -1
  540. package/dist/components/tile.js +1 -1
  541. package/dist/components/time-picker.js +1 -1
  542. package/dist/components/tooltip.js +32 -8
  543. package/dist/components/utils.js +1 -1
  544. package/dist/components/utils2.js +1 -1
  545. package/dist/esm/{ExpandToggle-57ea743b.js → ExpandToggle-41774b7f.js} +5 -5
  546. package/dist/esm/{Heading-b8ffad61.js → Heading-c29c5794.js} +2 -2
  547. package/dist/esm/{app-globals-d3678e8d.js → app-globals-d9f28e13.js} +2 -2
  548. package/dist/esm/{array-a0914ee7.js → array-0a4488f1.js} +1 -1
  549. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  550. package/dist/esm/calcite-action-bar.entry.js +11 -11
  551. package/dist/esm/calcite-action-group.entry.js +9 -9
  552. package/dist/esm/calcite-action-menu.entry.js +9 -9
  553. package/dist/esm/calcite-action-pad.entry.js +10 -10
  554. package/dist/esm/calcite-action.entry.js +7 -7
  555. package/dist/esm/calcite-alert.entry.js +10 -10
  556. package/dist/esm/calcite-avatar.entry.js +6 -6
  557. package/dist/esm/calcite-block_2.entry.js +10 -10
  558. package/dist/esm/calcite-button.entry.js +9 -9
  559. package/dist/esm/calcite-card.entry.js +7 -7
  560. package/dist/esm/calcite-checkbox.entry.js +9 -9
  561. package/dist/esm/calcite-chip.entry.js +7 -7
  562. package/dist/esm/calcite-color-picker_3.entry.js +10 -10
  563. package/dist/esm/calcite-combobox_3.entry.js +14 -14
  564. package/dist/esm/calcite-date-picker_4.entry.js +11 -11
  565. package/dist/esm/calcite-dropdown_3.entry.js +11 -11
  566. package/dist/esm/calcite-fab.entry.js +6 -6
  567. package/dist/esm/calcite-filter.entry.js +8 -8
  568. package/dist/esm/calcite-flow-item.entry.js +7 -7
  569. package/dist/esm/calcite-flow.entry.js +3 -3
  570. package/dist/esm/calcite-graph_2.entry.js +12 -12
  571. package/dist/esm/calcite-handle.entry.js +5 -5
  572. package/dist/esm/calcite-icon.entry.js +6 -6
  573. package/dist/esm/calcite-inline-editable.entry.js +8 -8
  574. package/dist/esm/calcite-input-date-picker.entry.js +15 -15
  575. package/dist/esm/calcite-input-message.entry.js +5 -5
  576. package/dist/esm/calcite-input-number.entry.js +12 -12
  577. package/dist/esm/calcite-input-text.entry.js +9 -9
  578. package/dist/esm/calcite-input-time-picker_2.entry.js +12 -12
  579. package/dist/esm/calcite-input.entry.js +12 -12
  580. package/dist/esm/calcite-label.entry.js +6 -6
  581. package/dist/esm/calcite-link.entry.js +6 -6
  582. package/dist/esm/calcite-list_3.entry.js +9 -9
  583. package/dist/esm/calcite-loader.entry.js +3 -3
  584. package/dist/esm/calcite-modal.entry.js +9 -1270
  585. package/dist/esm/calcite-notice.entry.js +8 -8
  586. package/dist/esm/calcite-option_3.entry.js +9 -9
  587. package/dist/esm/calcite-pagination.entry.js +8 -8
  588. package/dist/esm/calcite-panel.entry.js +10 -10
  589. package/dist/esm/calcite-pick-list_3.entry.js +12 -12
  590. package/dist/esm/calcite-popover_2.entry.js +24 -13
  591. package/dist/esm/calcite-progress.entry.js +2 -2
  592. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  593. package/dist/esm/calcite-radio-button.entry.js +9 -9
  594. package/dist/esm/calcite-radio-group_2.entry.js +8 -8
  595. package/dist/esm/calcite-rating.entry.js +9 -9
  596. package/dist/esm/calcite-scrim.entry.js +2 -2
  597. package/dist/esm/calcite-shell_3.entry.js +8 -8
  598. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  599. package/dist/esm/calcite-split-button.entry.js +3 -3
  600. package/dist/esm/calcite-stepper_2.entry.js +9 -9
  601. package/dist/esm/calcite-switch.entry.js +9 -9
  602. package/dist/esm/calcite-tab_4.entry.js +7 -7
  603. package/dist/esm/calcite-tile-select_2.entry.js +4 -4
  604. package/dist/esm/calcite-tile.entry.js +8 -8
  605. package/dist/esm/calcite-tip_3.entry.js +8 -8
  606. package/dist/esm/calcite-tooltip_2.entry.js +37 -13
  607. package/dist/esm/calcite-tree_2.entry.js +8 -8
  608. package/dist/esm/calcite-value-list_2.entry.js +12 -12
  609. package/dist/esm/calcite.js +5 -5
  610. package/dist/esm/{conditionalSlot-cd228b87.js → conditionalSlot-966590ec.js} +3 -3
  611. package/dist/esm/{debounce-9d3ac120.js → debounce-f66bdfff.js} +1 -1
  612. package/dist/esm/{dom-6f749d3c.js → dom-db31979f.js} +3 -3
  613. package/dist/esm/{filter-ccedb60a.js → filter-a2ddf863.js} +2 -2
  614. package/dist/esm/{floating-ui-c9d7a2d3.js → floating-ui-5f769d28.js} +4 -4
  615. package/dist/esm/focusTrapComponent-692f0964.js +1270 -0
  616. package/dist/esm/{form-9f9f8ce0.js → form-b9b0dbc4.js} +3 -3
  617. package/dist/esm/{guid-2e58a3a3.js → guid-245906d2.js} +1 -1
  618. package/dist/esm/{index-d119a9b1.js → index-89e9515d.js} +1 -1
  619. package/dist/esm/index.js +1 -1
  620. package/dist/esm/{interactive-091db0ac.js → interactive-870aacaa.js} +1 -1
  621. package/dist/esm/{interfaces-d136299b.js → interfaces-405b7654.js} +1 -1
  622. package/dist/esm/{key-88203e10.js → key-be044e8f.js} +1 -1
  623. package/dist/esm/{label-470d0c8c.js → label-dac2bce3.js} +2 -2
  624. package/dist/esm/loader.js +5 -5
  625. package/dist/esm/{locale-1513e269.js → locale-8d9e26c2.js} +4 -4
  626. package/dist/esm/{math-920d7bd4.js → math-6a5196d6.js} +1 -1
  627. package/dist/esm/{nonChromiumPlatformUtils-30a26773.js → nonChromiumPlatformUtils-44255917.js} +6 -6
  628. package/dist/esm/{observers-533bc15c.js → observers-1dcaab27.js} +1 -1
  629. package/dist/esm/{openCloseComponent-39f37c0e.js → openCloseComponent-6ed97ece.js} +1 -1
  630. package/dist/esm/{resources-4ad697f1.js → resources-46a1e1f9.js} +1 -1
  631. package/dist/esm/{resources-78021ac2.js → resources-46cbddb4.js} +1 -1
  632. package/dist/esm/{resources-2d0f02a9.js → resources-6f2cd008.js} +5 -5
  633. package/dist/esm/{resources-dd20ee16.js → resources-8d0752ff.js} +3 -3
  634. package/dist/esm/{resources-788711e6.js → resources-b744d1ce.js} +1 -1
  635. package/dist/esm/{resources-c1440888.js → resources-c02a7a33.js} +1 -1
  636. package/dist/esm/{sortable.esm-820523a0.js → sortable.esm-5b4f86a2.js} +1 -1
  637. package/dist/esm/{utils-248398b5.js → utils-7a1067a8.js} +1 -1
  638. package/dist/extras/docs-json.json +56 -2
  639. package/dist/loader/cdn.js +1 -1
  640. package/dist/loader/index.cjs.js +1 -1
  641. package/dist/loader/index.es2017.js +1 -1
  642. package/dist/loader/index.js +1 -1
  643. package/dist/types/components/popover/popover.d.ts +8 -1
  644. package/dist/types/components/tooltip/tooltip.d.ts +18 -2
  645. package/dist/types/components.d.ts +28 -0
  646. package/dist/types/preact.d.ts +6 -1
  647. package/hydrate/index.js +46 -12
  648. package/package.json +1 -1
  649. package/dist/calcite/p-15022cca.js +0 -6
  650. package/dist/calcite/p-45c22e35.entry.js +0 -6
  651. package/dist/calcite/p-53a18a5d.entry.js +0 -6
  652. package/dist/calcite/p-6633dd22.entry.js +0 -6
  653. package/dist/calcite/p-9e88aa1d.js +0 -6
  654. package/dist/calcite/p-cd548d63.entry.js +0 -16
  655. package/dist/calcite/p-daf31f54.entry.js +0 -6
  656. package/dist/calcite/p-e0446d31.js +0 -6
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.635
5
5
  */
6
6
  export * from '../esm/polyfills/index.js';
7
7
  export * from '../esm/loader.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.635
5
5
  */
6
6
  (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
7
7
  export * from '../esm/polyfills/index.js';
@@ -1,12 +1,13 @@
1
1
  import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
2
  import { OverlayPositioning, FloatingUIComponent, LogicalPlacement, EffectivePlacement, ReferenceElement } from "../../utils/floating-ui";
3
+ import { FocusTrapComponent, FocusTrap } from "../../utils/focusTrapComponent";
3
4
  import { OpenCloseComponent } from "../../utils/openCloseComponent";
4
5
  import { HeadingLevel } from "../functional/Heading";
5
6
  import { Scale } from "../interfaces";
6
7
  /**
7
8
  * @slot - A slot for adding custom content.
8
9
  */
9
- export declare class Popover implements FloatingUIComponent, OpenCloseComponent {
10
+ export declare class Popover implements FloatingUIComponent, OpenCloseComponent, FocusTrapComponent {
10
11
  /**
11
12
  * When `true`, clicking outside of the component automatically closes open `calcite-popover`s.
12
13
  */
@@ -31,6 +32,10 @@ export declare class Popover implements FloatingUIComponent, OpenCloseComponent
31
32
  * When `true`, prevents flipping the component's placement when overlapping its `referenceElement`.
32
33
  */
33
34
  disableFlip: boolean;
35
+ /**
36
+ * When `true`, prevents focus trapping.
37
+ */
38
+ disableFocusTrap: boolean;
34
39
  /**
35
40
  * When `true`, removes the caret pointer.
36
41
  */
@@ -112,6 +117,8 @@ export declare class Popover implements FloatingUIComponent, OpenCloseComponent
112
117
  openTransitionProp: string;
113
118
  transitionEl: HTMLDivElement;
114
119
  hasLoaded: boolean;
120
+ focusTrap: FocusTrap;
121
+ focusTrapEl: HTMLDivElement;
115
122
  connectedCallback(): void;
116
123
  componentDidLoad(): void;
117
124
  disconnectedCallback(): void;
@@ -1,9 +1,10 @@
1
- import { VNode } from "../../stencil-public-runtime";
1
+ import { VNode, EventEmitter } from "../../stencil-public-runtime";
2
2
  import { OverlayPositioning, FloatingUIComponent, LogicalPlacement, ReferenceElement } from "../../utils/floating-ui";
3
+ import { OpenCloseComponent } from "../../utils/openCloseComponent";
3
4
  /**
4
5
  * @slot - A slot for adding text.
5
6
  */
6
- export declare class Tooltip implements FloatingUIComponent {
7
+ export declare class Tooltip implements FloatingUIComponent, OpenCloseComponent {
7
8
  /** Closes the component when the `referenceElement` is clicked. */
8
9
  closeOnClick: boolean;
9
10
  /** Accessible name for the component. */
@@ -56,15 +57,30 @@ export declare class Tooltip implements FloatingUIComponent {
56
57
  arrowEl: HTMLDivElement;
57
58
  guid: string;
58
59
  hasLoaded: boolean;
60
+ openTransitionProp: string;
61
+ transitionEl: HTMLDivElement;
59
62
  connectedCallback(): void;
60
63
  componentDidLoad(): void;
61
64
  disconnectedCallback(): void;
65
+ /** Fires when the component is requested to be closed and before the closing transition begins. */
66
+ calciteTooltipBeforeClose: EventEmitter<void>;
67
+ /** Fires when the component is closed and animation is complete. */
68
+ calciteTooltipClose: EventEmitter<void>;
69
+ /** Fires when the component is added to the DOM but not rendered, and before the opening transition begins. */
70
+ calciteTooltipBeforeOpen: EventEmitter<void>;
71
+ /** Fires when the component is open and animation is complete. */
72
+ calciteTooltipOpen: EventEmitter<void>;
62
73
  /**
63
74
  * Updates the position of the component.
64
75
  *
65
76
  * @param delayed
66
77
  */
67
78
  reposition(delayed?: boolean): Promise<void>;
79
+ onBeforeOpen(): void;
80
+ onOpen(): void;
81
+ onBeforeClose(): void;
82
+ onClose(): void;
83
+ private setTransitionEl;
68
84
  setUpReferenceElement: (warn?: boolean) => void;
69
85
  getId: () => string;
70
86
  addReferences: () => void;
@@ -2897,6 +2897,10 @@ export namespace Components {
2897
2897
  * When `true`, prevents flipping the component's placement when overlapping its `referenceElement`.
2898
2898
  */
2899
2899
  "disableFlip": boolean;
2900
+ /**
2901
+ * When `true`, prevents focus trapping.
2902
+ */
2903
+ "disableFocusTrap": boolean;
2900
2904
  /**
2901
2905
  * When `true`, removes the caret pointer.
2902
2906
  */
@@ -4466,6 +4470,10 @@ export interface CalciteTipManagerCustomEvent<T> extends CustomEvent<T> {
4466
4470
  detail: T;
4467
4471
  target: HTMLCalciteTipManagerElement;
4468
4472
  }
4473
+ export interface CalciteTooltipCustomEvent<T> extends CustomEvent<T> {
4474
+ detail: T;
4475
+ target: HTMLCalciteTooltipElement;
4476
+ }
4469
4477
  export interface CalciteTreeCustomEvent<T> extends CustomEvent<T> {
4470
4478
  detail: T;
4471
4479
  target: HTMLCalciteTreeElement;
@@ -8062,6 +8070,10 @@ declare namespace LocalJSX {
8062
8070
  * When `true`, prevents flipping the component's placement when overlapping its `referenceElement`.
8063
8071
  */
8064
8072
  "disableFlip"?: boolean;
8073
+ /**
8074
+ * When `true`, prevents focus trapping.
8075
+ */
8076
+ "disableFocusTrap"?: boolean;
8065
8077
  /**
8066
8078
  * When `true`, removes the caret pointer.
8067
8079
  */
@@ -9128,6 +9140,22 @@ declare namespace LocalJSX {
9128
9140
  * Offset the position of the component along the `referenceElement`.
9129
9141
  */
9130
9142
  "offsetSkidding"?: number;
9143
+ /**
9144
+ * Fires when the component is requested to be closed and before the closing transition begins.
9145
+ */
9146
+ "onCalciteTooltipBeforeClose"?: (event: CalciteTooltipCustomEvent<void>) => void;
9147
+ /**
9148
+ * Fires when the component is added to the DOM but not rendered, and before the opening transition begins.
9149
+ */
9150
+ "onCalciteTooltipBeforeOpen"?: (event: CalciteTooltipCustomEvent<void>) => void;
9151
+ /**
9152
+ * Fires when the component is closed and animation is complete.
9153
+ */
9154
+ "onCalciteTooltipClose"?: (event: CalciteTooltipCustomEvent<void>) => void;
9155
+ /**
9156
+ * Fires when the component is open and animation is complete.
9157
+ */
9158
+ "onCalciteTooltipOpen"?: (event: CalciteTooltipCustomEvent<void>) => void;
9131
9159
  /**
9132
9160
  * When `true`, the component is open.
9133
9161
  */
@@ -390,7 +390,12 @@ declare module "preact/src/jsx" {
390
390
  "oncalciteTipManagerClose"?: (event: CustomEvent<any>) => void;
391
391
  }
392
392
 
393
- "calcite-tooltip": JSX.CalciteTooltip & JSXInternal.HTMLAttributes<HTMLCalciteTooltipElement>
393
+ "calcite-tooltip": Omit<JSX.CalciteTooltip, "onCalciteTooltipBeforeClose" | "onCalciteTooltipClose" | "onCalciteTooltipBeforeOpen" | "onCalciteTooltipOpen"> & JSXInternal.HTMLAttributes<HTMLCalciteTooltipElement> & {
394
+ "oncalciteTooltipBeforeClose"?: (event: CustomEvent<any>) => void;
395
+ "oncalciteTooltipClose"?: (event: CustomEvent<any>) => void;
396
+ "oncalciteTooltipBeforeOpen"?: (event: CustomEvent<any>) => void;
397
+ "oncalciteTooltipOpen"?: (event: CustomEvent<any>) => void;
398
+ }
394
399
 
395
400
  "calcite-tooltip-manager": JSX.CalciteTooltipManager & JSXInternal.HTMLAttributes<HTMLCalciteTooltipManagerElement>
396
401
 
package/hydrate/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.635
5
5
  */
6
6
  'use strict';
7
7
 
@@ -8613,7 +8613,7 @@ class ActionMenu {
8613
8613
  const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
8614
8614
  const activeAction = actionElements[activeMenuItemIndex];
8615
8615
  const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
8616
- return (hAsync("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$S.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
8616
+ return (hAsync("calcite-popover", { disableFocusTrap: true, disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$S.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
8617
8617
  }
8618
8618
  render() {
8619
8619
  return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$s.tooltip, onSlotchange: this.updateTooltip })));
@@ -23478,7 +23478,7 @@ class InputTimePicker {
23478
23478
  // --------------------------------------------------------------------------
23479
23479
  render() {
23480
23480
  const popoverId = `${this.referenceElementId}-popover`;
23481
- return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { id: popoverId, label: "Time Picker", open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId, triggerDisabled: true }, hAsync("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.effectiveLocale, numberingSystem: this.numberingSystem, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), hAsync(HiddenFormInputSlot, { component: this })));
23481
+ return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { disableFocusTrap: true, id: popoverId, label: "Time Picker", open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId, triggerDisabled: true }, hAsync("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.effectiveLocale, numberingSystem: this.numberingSystem, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), hAsync(HiddenFormInputSlot, { component: this })));
23482
23482
  }
23483
23483
  get el() { return getElement(this); }
23484
23484
  static get watchers() { return {
@@ -27511,6 +27511,10 @@ class Popover {
27511
27511
  * When `true`, prevents flipping the component's placement when overlapping its `referenceElement`.
27512
27512
  */
27513
27513
  this.disableFlip = false;
27514
+ /**
27515
+ * When `true`, prevents focus trapping.
27516
+ */
27517
+ this.disableFocusTrap = false;
27514
27518
  /**
27515
27519
  * When `true`, removes the caret pointer.
27516
27520
  */
@@ -27569,6 +27573,8 @@ class Popover {
27569
27573
  this.setTransitionEl = (el) => {
27570
27574
  this.transitionEl = el;
27571
27575
  connectOpenCloseComponent(this);
27576
+ this.focusTrapEl = el;
27577
+ connectFocusTrap(this);
27572
27578
  };
27573
27579
  this.setFilteredPlacements = () => {
27574
27580
  const { el, flipPlacements } = this;
@@ -27694,6 +27700,7 @@ class Popover {
27694
27700
  this.removeReferences();
27695
27701
  disconnectFloatingUI(this, this.effectiveReferenceElement, this.el);
27696
27702
  disconnectOpenCloseComponent(this);
27703
+ deactivateFocusTrap(this);
27697
27704
  }
27698
27705
  // --------------------------------------------------------------------------
27699
27706
  //
@@ -27727,14 +27734,13 @@ class Popover {
27727
27734
  * @param focusId
27728
27735
  */
27729
27736
  async setFocus(focusId) {
27730
- var _a;
27731
27737
  const { closeButtonEl } = this;
27732
27738
  if (focusId === "close-button" && closeButtonEl) {
27733
27739
  forceUpdate$1(closeButtonEl);
27734
27740
  closeButtonEl.setFocus();
27735
27741
  return;
27736
27742
  }
27737
- (_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
27743
+ activateFocusTrap(this);
27738
27744
  }
27739
27745
  /**
27740
27746
  * Toggles the component's open property.
@@ -27755,12 +27761,16 @@ class Popover {
27755
27761
  }
27756
27762
  onOpen() {
27757
27763
  this.calcitePopoverOpen.emit();
27764
+ if (!this.disableFocusTrap) {
27765
+ activateFocusTrap(this);
27766
+ }
27758
27767
  }
27759
27768
  onBeforeClose() {
27760
27769
  this.calcitePopoverBeforeClose.emit();
27761
27770
  }
27762
27771
  onClose() {
27763
27772
  this.calcitePopoverClose.emit();
27773
+ deactivateFocusTrap(this);
27764
27774
  }
27765
27775
  // --------------------------------------------------------------------------
27766
27776
  //
@@ -27811,6 +27821,7 @@ class Popover {
27811
27821
  "dismissible": [1540],
27812
27822
  "closable": [1540],
27813
27823
  "disableFlip": [516, "disable-flip"],
27824
+ "disableFocusTrap": [516, "disable-focus-trap"],
27814
27825
  "disablePointer": [516, "disable-pointer"],
27815
27826
  "flipPlacements": [16],
27816
27827
  "heading": [1],
@@ -27832,7 +27843,7 @@ class Popover {
27832
27843
  },
27833
27844
  "$listeners$": undefined,
27834
27845
  "$lazyBundleId$": "-",
27835
- "$attrsToReflect$": [["autoClose", "auto-close"], ["closeButton", "close-button"], ["dismissible", "dismissible"], ["closable", "closable"], ["disableFlip", "disable-flip"], ["disablePointer", "disable-pointer"], ["headingLevel", "heading-level"], ["offsetDistance", "offset-distance"], ["offsetSkidding", "offset-skidding"], ["open", "open"], ["overlayPositioning", "overlay-positioning"], ["placement", "placement"], ["scale", "scale"], ["triggerDisabled", "trigger-disabled"]]
27846
+ "$attrsToReflect$": [["autoClose", "auto-close"], ["closeButton", "close-button"], ["dismissible", "dismissible"], ["closable", "closable"], ["disableFlip", "disable-flip"], ["disableFocusTrap", "disable-focus-trap"], ["disablePointer", "disable-pointer"], ["headingLevel", "heading-level"], ["offsetDistance", "offset-distance"], ["offsetSkidding", "offset-skidding"], ["open", "open"], ["overlayPositioning", "overlay-positioning"], ["placement", "placement"], ["scale", "scale"], ["triggerDisabled", "trigger-disabled"]]
27836
27847
  }; }
27837
27848
  }
27838
27849
 
@@ -36744,6 +36755,10 @@ const manager = new TooltipManager$1();
36744
36755
  class Tooltip {
36745
36756
  constructor(hostRef) {
36746
36757
  registerInstance(this, hostRef);
36758
+ this.calciteTooltipBeforeClose = createEvent(this, "calciteTooltipBeforeClose", 6);
36759
+ this.calciteTooltipClose = createEvent(this, "calciteTooltipClose", 6);
36760
+ this.calciteTooltipBeforeOpen = createEvent(this, "calciteTooltipBeforeOpen", 6);
36761
+ this.calciteTooltipOpen = createEvent(this, "calciteTooltipOpen", 6);
36747
36762
  // --------------------------------------------------------------------------
36748
36763
  //
36749
36764
  // Properties
@@ -36782,11 +36797,11 @@ class Tooltip {
36782
36797
  this.placement = "auto";
36783
36798
  this.guid = `calcite-tooltip-${guid()}`;
36784
36799
  this.hasLoaded = false;
36785
- // --------------------------------------------------------------------------
36786
- //
36787
- // Private Methods
36788
- //
36789
- // --------------------------------------------------------------------------
36800
+ this.openTransitionProp = "opacity";
36801
+ this.setTransitionEl = (el) => {
36802
+ this.transitionEl = el;
36803
+ connectOpenCloseComponent(this);
36804
+ };
36790
36805
  this.setUpReferenceElement = (warn = true) => {
36791
36806
  this.removeReferences();
36792
36807
  this.effectiveReferenceElement = this.getReferenceElement();
@@ -36853,6 +36868,7 @@ class Tooltip {
36853
36868
  //
36854
36869
  // --------------------------------------------------------------------------
36855
36870
  connectedCallback() {
36871
+ connectOpenCloseComponent(this);
36856
36872
  this.setUpReferenceElement(this.hasLoaded);
36857
36873
  }
36858
36874
  componentDidLoad() {
@@ -36865,6 +36881,7 @@ class Tooltip {
36865
36881
  disconnectedCallback() {
36866
36882
  this.removeReferences();
36867
36883
  disconnectFloatingUI(this, this.effectiveReferenceElement, this.el);
36884
+ disconnectOpenCloseComponent(this);
36868
36885
  }
36869
36886
  // --------------------------------------------------------------------------
36870
36887
  //
@@ -36890,6 +36907,23 @@ class Tooltip {
36890
36907
  type: "tooltip"
36891
36908
  }, delayed);
36892
36909
  }
36910
+ // --------------------------------------------------------------------------
36911
+ //
36912
+ // Private Methods
36913
+ //
36914
+ // --------------------------------------------------------------------------
36915
+ onBeforeOpen() {
36916
+ this.calciteTooltipBeforeOpen.emit();
36917
+ }
36918
+ onOpen() {
36919
+ this.calciteTooltipOpen.emit();
36920
+ }
36921
+ onBeforeClose() {
36922
+ this.calciteTooltipBeforeClose.emit();
36923
+ }
36924
+ onClose() {
36925
+ this.calciteTooltipClose.emit();
36926
+ }
36893
36927
  getReferenceElement() {
36894
36928
  const { referenceElement, el } = this;
36895
36929
  return ((typeof referenceElement === "string"
@@ -36908,7 +36942,7 @@ class Tooltip {
36908
36942
  return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, hAsync("div", { class: {
36909
36943
  [FloatingCSS.animation]: true,
36910
36944
  [FloatingCSS.animationActive]: displayed
36911
- } }, hAsync("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), hAsync("div", { class: CSS$2.container }, hAsync("slot", null)))));
36945
+ }, ref: this.setTransitionEl }, hAsync("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), hAsync("div", { class: CSS$2.container }, hAsync("slot", null)))));
36912
36946
  }
36913
36947
  get el() { return getElement(this); }
36914
36948
  static get watchers() { return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-components",
3
- "version": "1.0.0-next.634",
3
+ "version": "1.0.0-next.635",
4
4
  "description": "Web Components for Esri's Calcite Design System.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
5
- */
6
- import{c as n}from"./p-a93c20e4.js";import{h as t}from"./p-e8fe4f12.js";function e(n){return"checked"in n}const o=new WeakMap,i=new WeakSet;function r(n){const{formEl:t}=n;return!!t&&("requestSubmit"in t?t.requestSubmit():t.submit(),!0)}function s(n){var t;null===(t=n.formEl)||void 0===t||t.reset()}function u(t){const{el:r,value:s}=t,u=n(r,"form");if(!u||function(n,t){const e="calciteInternalFormComponentRegister";let o=!1;return n.addEventListener(e,(n=>{o=n.composedPath().some((n=>i.has(n))),n.stopPropagation()}),{once:!0}),t.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0})),o}(u,r))return;t.formEl=u,t.defaultValue=s,e(t)&&(t.defaultChecked=t.checked);const a=(t.onFormReset||c).bind(t);u.addEventListener("reset",a),o.set(t.el,a),i.add(r)}function c(){e(this)?this.checked=this.defaultChecked:this.value=this.defaultValue}function a(n){const{el:t,formEl:e}=n;if(!e)return;const r=o.get(t);e.removeEventListener("reset",r),o.delete(t),n.formEl=null,i.delete(t)}function l(n,t){n.defaultValue=t}const f=n=>{n.target.dispatchEvent(new CustomEvent("calciteInternalHiddenInputChange",{bubbles:!0}))},m=n=>n.removeEventListener("change",f);function d(n,t,o){var i;const{defaultValue:r,disabled:s,name:u,required:c}=n;t.defaultValue=r,t.disabled=s,t.name=u,t.required=c,t.tabIndex=-1,e(n)?(t.defaultChecked=n.defaultChecked,t.value=n.checked?o||"on":"",s||n.checked||(t.disabled=!0)):t.value=o||"",null===(i=n.syncHiddenFormInput)||void 0===i||i.call(n,t)}const p=({component:n})=>(function(n){const{el:t,formEl:e,name:o,value:i}=n,{ownerDocument:r}=t,s=t.querySelectorAll('input[slot="hidden-form-input"]');if(!e||!o)return void s.forEach((n=>{m(n),n.remove()}));const u=Array.isArray(i)?i:[i],c=[],a=new Set;let l;s.forEach((t=>{const e=u.find((n=>n==t.value));null!=e?(a.add(e),d(n,t,e)):c.push(t)})),u.forEach((t=>{if(a.has(t))return;let e=c.pop();e||(e=r.createElement("input"),e.slot="hidden-form-input"),l||(l=r.createDocumentFragment()),l.append(e),e.addEventListener("change",f),d(n,e,t)})),l&&t.append(l),c.forEach((n=>{m(n),n.remove()}))}(n),t("slot",{name:"hidden-form-input"}));export{p as H,l as a,u as c,a as d,s as r,r as s}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
5
- */
6
- import{r as t,c as i,h as a,H as e,g as o}from"./p-e8fe4f12.js";import{g as n}from"./p-3e516c7f.js";import{c,d as s,H as r}from"./p-15022cca.js";import{c as l,d as h,g as d}from"./p-d9315abb.js";import{u as m}from"./p-283f5c09.js";import{t as p}from"./p-a93c20e4.js";import{i as u}from"./p-a1df68f2.js";import"./p-40ac55d4.js";const f=class{constructor(a){t(this,a),this.calciteInternalCheckboxBlur=i(this,"calciteInternalCheckboxBlur",6),this.calciteCheckboxChange=i(this,"calciteCheckboxChange",6),this.calciteInternalCheckboxFocus=i(this,"calciteInternalCheckboxFocus",6),this.checked=!1,this.disabled=!1,this.hovered=!1,this.indeterminate=!1,this.required=!1,this.scale="m",this.checkedPath="M5.5 12L2 8.689l.637-.636L5.5 10.727l8.022-7.87.637.637z",this.indeterminatePath="M13 8v1H3V8z",this.getPath=()=>this.indeterminate?this.indeterminatePath:this.checked?this.checkedPath:"",this.toggle=()=>{this.disabled||(this.checked=!this.checked,this.setFocus(),this.indeterminate=!1,this.calciteCheckboxChange.emit())},this.keyDownHandler=t=>{u(t.key)&&(this.toggle(),t.preventDefault())},this.clickHandler=()=>{this.toggle()},this.onToggleBlur=()=>{this.calciteInternalCheckboxBlur.emit(!1)},this.onToggleFocus=()=>{this.calciteInternalCheckboxFocus.emit(!0)},this.onLabelClick=()=>{this.toggle()}}async setFocus(){var t;null===(t=this.toggleEl)||void 0===t||t.focus()}connectedCallback(){this.guid=this.el.id||`calcite-checkbox-${n()}`,l(this),c(this)}disconnectedCallback(){h(this),s(this)}componentDidRender(){m(this)}render(){return a(e,{onClick:this.clickHandler,onKeyDown:this.keyDownHandler},a("div",{"aria-checked":p(this.checked),"aria-label":d(this),class:"toggle",onBlur:this.onToggleBlur,onFocus:this.onToggleFocus,ref:t=>this.toggleEl=t,role:"checkbox",tabIndex:this.disabled?void 0:0},a("svg",{"aria-hidden":"true",class:"check-svg",viewBox:"0 0 16 16"},a("path",{d:this.getPath()})),a("slot",null)),a(r,{component:this}))}get el(){return o(this)}};f.style="@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([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([scale=s]){--calcite-checkbox-size:0.75rem}:host([scale=m]){--calcite-checkbox-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-checkbox-size:1rem}:host{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg,:host .toggle{inline-size:var(--calcite-checkbox-size);block-size:var(--calcite-checkbox-size)}:host .check-svg{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-ui-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);color:var(--calcite-ui-background)}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}.toggle{outline-color:transparent}.toggle:active,.toggle:focus,.toggle:focus-visible{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{f as calcite_checkbox}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
5
- */
6
- import{r as t,c as i,h as e,H as n,g as s}from"./p-e8fe4f12.js";import{g as a}from"./p-3e516c7f.js";import{i as o,g as r,b as c,n as l,u as h,c as u,d}from"./p-a859d62c.js";import{c as m,d as p,g as f}from"./p-d9315abb.js";import{s as b,c as v,d as g,H as w}from"./p-15022cca.js";import{u as k}from"./p-283f5c09.js";import{n as y,i as x}from"./p-a1df68f2.js";import"./p-6791bba7.js";import"./p-a93c20e4.js";import"./p-40ac55d4.js";function D(t,i,e=!0){try{const n={hour:"2-digit",minute:"2-digit",timeZone:"UTC",numberingSystem:c(i)};return e&&(n.second="2-digit"),new Intl.DateTimeFormat(r(t),n)}catch(i){throw new Error(`Invalid locale supplied while attempting to create a DateTime formatter: ${t}`)}}function I(t){const i=t.toString();return t>=0&&t<=9?i.padStart(2,"0"):i}function S(t,i){var e,n,s,a;if(!t||!i)return null;if("hourSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"hour"===t))),n=i.indexOf(i.find((({type:t})=>"minute"===t))),s=i[t+1];return s&&"literal"===s.type&&n-t==2&&(null===(e=s.value)||void 0===e?void 0:e.trim())||null}if("minuteSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"minute"===t))),e=i.indexOf(i.find((({type:t})=>"second"===t))),s=i[t+1];return s&&"literal"===s.type&&e-t==2&&(null===(n=s.value)||void 0===n?void 0:n.trim())||null}if("secondSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"second"===t))),e=i[t+1];return e&&"literal"===e.type&&(null===(s=e.value)||void 0===s?void 0:s.trim())||null}return(null===(a=i.find((({type:i})=>"meridiem"==t?"dayPeriod"===i:i===t)))||void 0===a?void 0:a.value)||null}function M(t){if(!t||t.startsWith(":")||t.endsWith(":"))return!1;const i=t.split(":");if(!(i.length>1&&i.length<4))return!1;const[e,n,s]=i,a=parseInt(i[0]),r=parseInt(i[1]),c=parseInt(i[2]),l=o(e)&&a>=0&&a<24,h=o(n)&&r>=0&&r<60,u=o(s)&&c>=0&&c<60;return!!(l&&h&&!s||l&&h&&u)||void 0}function A({value:t,part:i,locale:e,numberingSystem:n}){if(!function(t,i){if("meridiem"===i)return"AM"===t||"PM"===t;if(!o(t))return!1;const e=Number(t);return"hour"===i?e>=0&&e<24:e>=0&&e<60}(t,i))return;const s=parseInt(t),a=new Date(Date.UTC(0,0,0,"hour"===i?s:"meridiem"===i?"AM"===t?0:12:0,"minute"===i?s:0,"second"===i?s:0));return a?S(i,D(e,n).formatToParts(a)):void 0}function C({value:t,locale:i,numberingSystem:e,includeSeconds:n=!0}){if(!M(t))return null;const{hour:s,minute:a,second:o="0"}=H(t),r=new Date(Date.UTC(0,0,0,parseInt(s),parseInt(a),parseInt(o))),c=D(i,e,n);return(null==c?void 0:c.format(r))||null}function P({value:t,locale:i,numberingSystem:e}){if(!M(t))return null;const{hour:n,minute:s,second:a="0"}=H(t),o=new Date(Date.UTC(0,0,0,parseInt(n),parseInt(s),parseInt(a)));if(o){const t=D(i,e).formatToParts(o);return{localizedHour:S("hour",t),localizedHourSuffix:S("hourSuffix",t),localizedMinute:S("minute",t),localizedMinuteSuffix:S("minuteSuffix",t),localizedSecond:S("second",t),localizedSecondSuffix:S("secondSuffix",t),localizedMeridiem:S("meridiem",t)}}return null}function z({value:t,locale:i,numberingSystem:e}){if(!M(t))return null;const{hour:n,minute:s,second:a="0"}=H(t),o=new Date(Date.UTC(0,0,0,parseInt(n),parseInt(s),parseInt(a)));return o?D(i,e).formatToParts(o):null}function H(t){if(M(t)){const[i,e,n]=t.split(":");return{hour:i,minute:e,second:n}}return{hour:null,minute:null,second:null}}const $=class{constructor(e){t(this,e),this.calciteInputTimePickerChange=i(this,"calciteInputTimePickerChange",7),this.active=!1,this.open=!1,this.disabled=!1,this.readOnly=!1,this.required=!1,this.scale="m",this.overlayPositioning="absolute",this.placement="auto",this.step=60,this.value=null,this.internalValueChange=!1,this.previousValidValue=null,this.referenceElementId=`input-time-picker-${a()}`,this.effectiveLocale="",this.calciteInternalInputBlurHandler=()=>{this.open=!1;const t=this.shouldIncludeSeconds(),{effectiveLocale:i,numberingSystem:e,value:n,calciteInputEl:s}=this;l.numberFormatOptions={locale:i,numberingSystem:e,useGrouping:!1};const a=C({value:l.delocalize(s.value),includeSeconds:t,locale:i,numberingSystem:e});this.setInputValue(a||C({value:n,locale:i,numberingSystem:e,includeSeconds:t}))},this.calciteInternalInputFocusHandler=t=>{this.readOnly||(this.open=!0,t.stopPropagation())},this.calciteInputInputHandler=t=>{const i=t.target;l.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:!1};const e=l.delocalize(i.value);this.setValue({value:e});const n=e.split("").map((t=>y.includes(t)?l.numberFormatter.format(Number(t)):t)).join("");this.setInputValue(n)},this.timePickerChangeHandler=t=>{t.stopPropagation(),this.setValue({value:t.target.value,origin:"time-picker"})},this.keyDownHandler=t=>{const{defaultPrevented:i,key:e}=t;i||("Enter"===e&&b(this)&&t.preventDefault(),"Escape"===e&&this.open&&(this.open=!1,t.preventDefault()))},this.setCalcitePopoverEl=t=>{this.popoverEl=t},this.setCalciteInputEl=t=>{this.calciteInputEl=t},this.setCalciteTimePickerEl=t=>{this.calciteTimePickerEl=t},this.setInputValue=t=>{this.calciteInputEl&&(this.calciteInputEl.value=t)},this.setValue=({value:t,origin:i="input"})=>{const e=this.value,n=function(t){if(!M(t))return null;const[i,e,n]=t.split(":"),s=I(parseInt(i)),a=I(parseInt(e));return n?`${s}:${a}:${I(parseInt(n))}`:`${s}:${a}`}(t),s=C({value:n,locale:this.effectiveLocale,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds()});this.internalValueChange="external"!==i&&"loading"!==i;const a="loading"!==i&&"external"!==i&&(t!==this.previousValidValue&&!t||!(this.previousValidValue||!n)||n!==this.previousValidValue&&n);t?(a&&(this.previousValidValue=n),n&&n!==this.value&&(this.value=n),this.localizedValue=s):(this.value=t,this.localizedValue=null),"time-picker"!==i&&"external"!==i||this.setInputValue(s),a&&(this.calciteInputTimePickerChange.emit().defaultPrevented?(this.internalValueChange=!1,this.value=e,this.setInputValue(e),this.previousValidValue=e):this.previousValidValue=n)}}activeHandler(t){this.open=t}openHandler(t){this.active=t,this.disabled||this.readOnly?this.open=!1:t&&this.reposition(!0)}handleDisabledAndReadOnlyChange(t){t||(this.open=!1)}localeChanged(){h(this)}valueWatcher(t){this.internalValueChange||this.setValue({value:t,origin:"external"}),this.internalValueChange=!1}effectiveLocaleWatcher(){this.setInputValue(C({value:this.value,locale:this.effectiveLocale,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds()}))}clickHandler(t){t.composedPath().includes(this.calciteTimePickerEl)||this.setFocus()}timePickerBlurHandler(t){t.preventDefault(),t.stopPropagation(),this.open=!1}timePickerFocusHandler(t){t.preventDefault(),t.stopPropagation(),this.readOnly||(this.open=!0)}async setFocus(){var t;null===(t=this.calciteInputEl)||void 0===t||t.setFocus()}async reposition(t=!1){var i;null===(i=this.popoverEl)||void 0===i||i.reposition(t)}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}connectedCallback(){u(this);const{active:t,open:i}=this;this.value&&this.setValue({value:M(this.value)?this.value:void 0,origin:"loading"}),m(this),v(this),i?this.active=i:t&&(this.open=t)}componentDidLoad(){this.setInputValue(this.localizedValue)}disconnectedCallback(){p(this),g(this),d(this)}componentDidRender(){k(this)}render(){const t=`${this.referenceElementId}-popover`;return e(n,{onKeyDown:this.keyDownHandler},e("div",{"aria-controls":t,"aria-haspopup":"dialog","aria-label":this.name,"aria-owns":t,id:this.referenceElementId,role:"combobox"},e("calcite-input",{disabled:this.disabled,icon:"clock",label:f(this),onCalciteInputInput:this.calciteInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.calciteInternalInputFocusHandler,readOnly:this.readOnly,ref:this.setCalciteInputEl,scale:this.scale,step:this.step})),e("calcite-popover",{id:t,label:"Time Picker",open:this.open,overlayPositioning:this.overlayPositioning,placement:this.placement,ref:this.setCalcitePopoverEl,referenceElement:this.referenceElementId,triggerDisabled:!0},e("calcite-time-picker",{intlHour:this.intlHour,intlHourDown:this.intlHourDown,intlHourUp:this.intlHourUp,intlMeridiem:this.intlMeridiem,intlMeridiemDown:this.intlMeridiemDown,intlMeridiemUp:this.intlMeridiemUp,intlMinute:this.intlMinute,intlMinuteDown:this.intlMinuteDown,intlMinuteUp:this.intlMinuteUp,intlSecond:this.intlSecond,intlSecondDown:this.intlSecondDown,intlSecondUp:this.intlSecondUp,lang:this.effectiveLocale,numberingSystem:this.numberingSystem,onCalciteInternalTimePickerChange:this.timePickerChangeHandler,ref:this.setCalciteTimePickerEl,scale:this.scale,step:this.step,value:this.value})),e(w,{component:this}))}get el(){return s(this)}static get watchers(){return{active:["activeHandler"],open:["openHandler"],disabled:["handleDisabledAndReadOnlyChange"],readOnly:["handleDisabledAndReadOnlyChange"],locale:["localeChanged"],value:["valueWatcher"],effectiveLocale:["effectiveLocaleWatcher"]}}};$.style="@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([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";const _={button:"button",buttonBottomLeft:"button--bottom-left",buttonBottomRight:"button--bottom-right",buttonHourDown:"button--hour-down",buttonHourUp:"button--hour-up",buttonMeridiemDown:"button--meridiem-down",buttonMeridiemUp:"button--meridiem-up",buttonMinuteDown:"button--minute-down",buttonMinuteUp:"button--minute-up",buttonSecondDown:"button--second-down",buttonSecondUp:"button--second-up",buttonTopLeft:"button--top-left",buttonTopRight:"button--top-right",column:"column",delimiter:"delimiter",hour:"hour",input:"input",meridiem:"meridiem",minute:"minute",second:"second",showMeridiem:"show-meridiem",showSecond:"show-second","scale-s":"scale-s","scale-m":"scale-m","scale-l":"scale-l",timePicker:"time-picker",meridiemStart:"meridiem--start"},L=class{constructor(e){t(this,e),this.calciteInternalTimePickerBlur=i(this,"calciteInternalTimePickerBlur",6),this.calciteInternalTimePickerChange=i(this,"calciteInternalTimePickerChange",6),this.calciteInternalTimePickerFocus=i(this,"calciteInternalTimePickerFocus",6),this.intlHour="Hour",this.intlHourDown="Decrease hour",this.intlHourUp="Increase hour",this.intlMeridiem="AM/PM",this.intlMeridiemDown="Decrease AM/PM",this.intlMeridiemUp="Increase AM/PM",this.intlMinute="Minute",this.intlMinuteDown="Decrease minute",this.intlMinuteUp="Increase minute",this.intlSecond="Second",this.intlSecondDown="Decrease second",this.intlSecondUp="Increase second",this.scale="m",this.step=60,this.value=null,this.effectiveLocale="",this.showSecond=this.step<60,this.decrementHour=()=>{const t=this.hour?"00"===this.hour?23:parseInt(this.hour)-1:0;this.setValuePart("hour",t)},this.decrementMeridiem=()=>{this.setValuePart("meridiem","PM"===this.meridiem?"AM":"PM")},this.decrementMinuteOrSecond=t=>{let i;if(o(this[t])){const e=parseInt(this[t]);i=0===e?59:e-1}else i=59;this.setValuePart(t,i)},this.decrementMinute=()=>{this.decrementMinuteOrSecond("minute")},this.decrementSecond=()=>{this.decrementMinuteOrSecond("second")},this.focusHandler=t=>{this.activeEl=t.currentTarget},this.hourDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementHour()},this.hourKeyDownHandler=t=>{const{key:i}=t;if(y.includes(i)){const t=parseInt(i);let e;if(o(this.hour))switch(this.hourCycle){case"12":e="01"===this.hour&&t>=0&&t<=2?`1${t}`:t;break;case"24":e="01"===this.hour?`1${t}`:"02"===this.hour&&t>=0&&t<=3?`2${t}`:t}else e=t;this.setValuePart("hour",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("hour",null);break;case"ArrowDown":t.preventDefault(),this.decrementHour();break;case"ArrowUp":t.preventDefault(),this.incrementHour();break;case" ":t.preventDefault()}},this.hourUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementHour()},this.incrementMeridiem=()=>{this.setValuePart("meridiem","AM"===this.meridiem?"PM":"AM")},this.incrementHour=()=>{const t=o(this.hour)?"23"===this.hour?0:parseInt(this.hour)+1:1;this.setValuePart("hour",t)},this.incrementMinuteOrSecond=t=>{const i=o(this[t])?"59"===this[t]?0:parseInt(this[t])+1:0;this.setValuePart(t,i)},this.incrementMinute=()=>{this.incrementMinuteOrSecond("minute")},this.incrementSecond=()=>{this.incrementMinuteOrSecond("second")},this.meridiemDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementMeridiem()},this.meridiemKeyDownHandler=t=>{switch(t.key){case"a":this.setValuePart("meridiem","AM");break;case"p":this.setValuePart("meridiem","PM");break;case"Backspace":case"Delete":this.setValuePart("meridiem",null);break;case"ArrowUp":t.preventDefault(),this.incrementMeridiem();break;case"ArrowDown":t.preventDefault(),this.decrementMeridiem();break;case" ":t.preventDefault()}},this.meridiemUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementMeridiem()},this.minuteDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementMinute()},this.minuteKeyDownHandler=t=>{const{key:i}=t;if(y.includes(i)){const t=parseInt(i);let e;if(o(this.minute)&&this.minute.startsWith("0")){const i=parseInt(this.minute);e=i>5?t:`${i}${t}`}else e=t;this.setValuePart("minute",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("minute",null);break;case"ArrowDown":t.preventDefault(),this.decrementMinute();break;case"ArrowUp":t.preventDefault(),this.incrementMinute();break;case" ":t.preventDefault()}},this.minuteUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementMinute()},this.secondDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementSecond()},this.secondKeyDownHandler=t=>{const{key:i}=t;if(y.includes(i)){const t=parseInt(i);let e;if(o(this.second)&&this.second.startsWith("0")){const i=parseInt(this.second);e=i>5?t:`${i}${t}`}else e=t;this.setValuePart("second",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("second",null);break;case"ArrowDown":t.preventDefault(),this.decrementSecond();break;case"ArrowUp":t.preventDefault(),this.incrementSecond();break;case" ":t.preventDefault()}},this.secondUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementSecond()},this.setHourEl=t=>this.hourEl=t,this.setMeridiemEl=t=>this.meridiemEl=t,this.setMinuteEl=t=>this.minuteEl=t,this.setSecondEl=t=>this.secondEl=t,this.setValue=(t,i=!0)=>{if(M(t)){const{hour:i,minute:e,second:n}=H(t),{effectiveLocale:s,numberingSystem:a}=this,{localizedHour:r,localizedHourSuffix:c,localizedMinute:l,localizedMinuteSuffix:h,localizedSecond:u,localizedSecondSuffix:d,localizedMeridiem:m}=P({value:t,locale:s,numberingSystem:a});if(this.localizedHour=r,this.localizedHourSuffix=c,this.localizedMinute=l,this.localizedMinuteSuffix=h,this.localizedSecond=u,this.localizedSecondSuffix=d,this.hour=i,this.minute=e,this.second=n,m){this.localizedMeridiem=m,this.meridiem=function(t){if(!o(t))return null;const i=parseInt(t);return i>=0&&i<=11?"AM":"PM"}(this.hour);const i=z({value:t,locale:s,numberingSystem:a});this.meridiemOrder=this.getMeridiemOrder(i)}}else this.hour=null,this.localizedHour=null,this.localizedHourSuffix=null,this.localizedMeridiem=null,this.localizedMinute=null,this.localizedMinuteSuffix=null,this.localizedSecond=null,this.localizedSecondSuffix=null,this.meridiem=null,this.minute=null,this.second=null,this.value=null;i&&this.calciteInternalTimePickerChange.emit()},this.setValuePart=(t,i,e=!0)=>{var n;const{effectiveLocale:s,numberingSystem:a}=this;if("meridiem"===t){if(this.meridiem=i,o(this.hour)){const t=parseInt(this.hour);switch(i){case"AM":t>=12&&(this.hour=I(t-12));break;case"PM":t<12&&(this.hour=I(t+12))}this.localizedHour=A({value:this.hour,part:"hour",locale:s,numberingSystem:a})}}else this[t]="number"==typeof i?I(i):i,this[`localized${r=t,r.charAt(0).toUpperCase()+r.slice(1)}`]=A({value:this[t],part:t,locale:s,numberingSystem:a});var r;this.value=this.hour&&this.minute?`${this.hour}:${this.minute}:${this.second&&this.showSecond?this.second:"00"}`:null,this.localizedMeridiem=this.value?(null===(n=P({value:this.value,locale:s,numberingSystem:a}))||void 0===n?void 0:n.localizedMeridiem)||null:A({value:this.meridiem,part:"meridiem",locale:s,numberingSystem:a}),e&&this.calciteInternalTimePickerChange.emit()}}localeChanged(){h(this)}valueWatcher(t){this.setValue(t,!1)}effectiveLocaleWatcher(){this.updateLocale()}hostBlurHandler(){this.calciteInternalTimePickerBlur.emit()}hostFocusHandler(){this.calciteInternalTimePickerFocus.emit()}keyDownHandler(t){const{defaultPrevented:i,key:e}=t;if(!i)switch(this.activeEl){case this.hourEl:"ArrowRight"===e&&(this.setFocus("minute"),t.preventDefault());break;case this.minuteEl:switch(e){case"ArrowLeft":this.setFocus("hour"),t.preventDefault();break;case"ArrowRight":60!==this.step?(this.setFocus("second"),t.preventDefault()):"12"===this.hourCycle&&(this.setFocus("meridiem"),t.preventDefault())}break;case this.secondEl:switch(e){case"ArrowLeft":this.setFocus("minute"),t.preventDefault();break;case"ArrowRight":"12"===this.hourCycle&&(this.setFocus("meridiem"),t.preventDefault())}break;case this.meridiemEl:switch(e){case"ArrowLeft":60!==this.step?(this.setFocus("second"),t.preventDefault()):(this.setFocus("minute"),t.preventDefault())}}}async setFocus(t){var i;null===(i=this[`${t||"hour"}El`])||void 0===i||i.focus()}buttonActivated(t){const{key:i}=t;return" "===i&&t.preventDefault(),x(i)}getMeridiemOrder(t){const i=this.effectiveLocale;return t&&"ar"!==i&&"he"!==i?t.findIndex((t=>t.value===this.localizedMeridiem)):0}updateLocale(){this.hourCycle=S("meridiem",D(this.effectiveLocale,this.numberingSystem).formatToParts(new Date(Date.UTC(0,0,0,0,0,0))))?"12":"24",this.setValue(this.value,!1)}connectedCallback(){u(this),this.updateLocale(),this.meridiemOrder=this.getMeridiemOrder(z({value:"0:00:00",locale:this.effectiveLocale,numberingSystem:this.numberingSystem}))}disconnectedCallback(){d(this)}render(){const t=o(this.hour),i="s"===this.scale||"m"===this.scale?"s":"m",n=o(this.minute),s=o(this.second),a="12"===this.hourCycle;return e("div",{class:{[_.timePicker]:!0,[_.showMeridiem]:a,[_.showSecond]:this.showSecond,[_[`scale-${this.scale}`]]:!0},dir:"ltr"},e("div",{class:_.column,role:"group"},e("span",{"aria-label":this.intlHourUp,class:{[_.button]:!0,[_.buttonHourUp]:!0,[_.buttonTopLeft]:!0},onClick:this.incrementHour,onKeyDown:this.hourUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlHour,"aria-valuemax":"23","aria-valuemin":"1","aria-valuenow":t&&parseInt(this.hour)||"0","aria-valuetext":this.hour,class:{[_.input]:!0,[_.hour]:!0},onFocus:this.focusHandler,onKeyDown:this.hourKeyDownHandler,ref:this.setHourEl,role:"spinbutton",tabIndex:0},this.localizedHour||"--"),e("span",{"aria-label":this.intlHourDown,class:{[_.button]:!0,[_.buttonHourDown]:!0,[_.buttonBottomLeft]:!0},onClick:this.decrementHour,onKeyDown:this.hourDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),e("span",{class:_.delimiter},this.localizedHourSuffix),e("div",{class:_.column,role:"group"},e("span",{"aria-label":this.intlMinuteUp,class:{[_.button]:!0,[_.buttonMinuteUp]:!0},onClick:this.incrementMinute,onKeyDown:this.minuteUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlMinute,"aria-valuemax":"12","aria-valuemin":"1","aria-valuenow":n&&parseInt(this.minute)||"0","aria-valuetext":this.minute,class:{[_.input]:!0,[_.minute]:!0},onFocus:this.focusHandler,onKeyDown:this.minuteKeyDownHandler,ref:this.setMinuteEl,role:"spinbutton",tabIndex:0},this.localizedMinute||"--"),e("span",{"aria-label":this.intlMinuteDown,class:{[_.button]:!0,[_.buttonMinuteDown]:!0},onClick:this.decrementMinute,onKeyDown:this.minuteDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),this.showSecond&&e("span",{class:_.delimiter},this.localizedMinuteSuffix),this.showSecond&&e("div",{class:_.column,role:"group"},e("span",{"aria-label":this.intlSecondUp,class:{[_.button]:!0,[_.buttonSecondUp]:!0},onClick:this.incrementSecond,onKeyDown:this.secondUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlSecond,"aria-valuemax":"59","aria-valuemin":"0","aria-valuenow":s&&parseInt(this.second)||"0","aria-valuetext":this.second,class:{[_.input]:!0,[_.second]:!0},onFocus:this.focusHandler,onKeyDown:this.secondKeyDownHandler,ref:this.setSecondEl,role:"spinbutton",tabIndex:0},this.localizedSecond||"--"),e("span",{"aria-label":this.intlSecondDown,class:{[_.button]:!0,[_.buttonSecondDown]:!0},onClick:this.decrementSecond,onKeyDown:this.secondDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),this.localizedSecondSuffix&&e("span",{class:_.delimiter},this.localizedSecondSuffix),a&&e("div",{class:{[_.column]:!0,[_.meridiemStart]:0===this.meridiemOrder},role:"group"},e("span",{"aria-label":this.intlMeridiemUp,class:{[_.button]:!0,[_.buttonMeridiemUp]:!0,[_.buttonTopRight]:!0},onClick:this.incrementMeridiem,onKeyDown:this.meridiemUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlMeridiem,"aria-valuemax":"2","aria-valuemin":"1","aria-valuenow":"PM"===this.meridiem?"2":"1","aria-valuetext":this.meridiem,class:{[_.input]:!0,[_.meridiem]:!0},onFocus:this.focusHandler,onKeyDown:this.meridiemKeyDownHandler,ref:this.setMeridiemEl,role:"spinbutton",tabIndex:0},this.localizedMeridiem||"--"),e("span",{"aria-label":this.intlMeridiemDown,class:{[_.button]:!0,[_.buttonMeridiemDown]:!0,[_.buttonBottomRight]:!0},onClick:this.decrementMeridiem,onKeyDown:this.meridiemDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))))}get el(){return s(this)}static get watchers(){return{locale:["localeChanged"],value:["valueWatcher"],effectiveLocale:["effectiveLocaleWatcher"]}}};L.style="@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{display:inline-block}.time-picker{display:flex;-webkit-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius)}.time-picker .column{display:flex;flex-direction:column}.time-picker .meridiem--start{order:-1}.time-picker .button{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1)}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-ui-foreground-2);outline:2px solid transparent;outline-offset:2px}.time-picker .button:active{background-color:var(--calcite-ui-foreground-3)}.time-picker .button.top-left{border-start-start-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-end-start-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-start-end-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-end-end-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-ui-text-3)}.time-picker .input{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-2)}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-inline:0.75rem;padding-block:0.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{padding-inline-end:0.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-inline:1rem;padding-block:0.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-inline:1.25rem;padding-block:0.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1.25rem}";export{$ as calcite_input_time_picker,L as calcite_time_picker}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
5
- */
6
- import{r as t,h as i,H as e,g as a}from"./p-e8fe4f12.js";import{g as n}from"./p-3e516c7f.js";import{b as o,c as r,u as s,a as c,r as l,F as m}from"./p-77fd410f.js";import{i as d,q as h,t as p}from"./p-a93c20e4.js";import"./p-c5471b9c.js";import"./p-40ac55d4.js";const f=new class{constructor(){this.registeredElements=new WeakMap,this.hoverTimeouts=new WeakMap,this.registeredElementCount=0,this.queryTooltip=t=>{const{registeredElements:i}=this,e=t.find((t=>i.has(t)));return i.get(e)},this.keyDownHandler=t=>{if("Escape"===t.key){const{activeTooltipEl:t}=this;t&&(this.clearHoverTimeout(t),this.toggleTooltip(t,!1))}},this.mouseEnterShow=t=>{this.hoverEvent(t,!0)},this.mouseLeaveHide=t=>{this.hoverEvent(t,!1)},this.clickHandler=t=>{if(!d(t))return;const i=this.queryTooltip(t.composedPath());this.clickedTooltip=i,(null==i?void 0:i.closeOnClick)&&(this.toggleTooltip(i,!1),this.clearHoverTimeout(i))},this.focusShow=t=>{this.focusEvent(t,!0)},this.blurHide=t=>{this.focusEvent(t,!1)},this.hoverToggle=(t,i)=>{const{hoverTimeouts:e}=this;e.delete(t),i&&this.closeExistingTooltip(),this.toggleTooltip(t,i)}}registerElement(t,i){this.registeredElementCount++,this.registeredElements.set(t,i),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}addListeners(){document.addEventListener("keydown",this.keyDownHandler),document.addEventListener("pointerover",this.mouseEnterShow,{capture:!0}),document.addEventListener("pointerout",this.mouseLeaveHide,{capture:!0}),document.addEventListener("pointerdown",this.clickHandler,{capture:!0}),document.addEventListener("focusin",this.focusShow,{capture:!0}),document.addEventListener("focusout",this.blurHide,{capture:!0})}removeListeners(){document.removeEventListener("keydown",this.keyDownHandler),document.removeEventListener("pointerover",this.mouseEnterShow,{capture:!0}),document.removeEventListener("pointerout",this.mouseLeaveHide,{capture:!0}),document.removeEventListener("pointerdown",this.clickHandler,{capture:!0}),document.removeEventListener("focusin",this.focusShow,{capture:!0}),document.removeEventListener("focusout",this.blurHide,{capture:!0})}clearHoverTimeout(t){const{hoverTimeouts:i}=this;i.has(t)&&(window.clearTimeout(i.get(t)),i.delete(t))}closeExistingTooltip(){const{activeTooltipEl:t}=this;t&&this.toggleTooltip(t,!1)}focusTooltip(t,i){this.closeExistingTooltip(),i&&this.clearHoverTimeout(t),this.toggleTooltip(t,i)}toggleTooltip(t,i){t.open=i,i&&(this.activeTooltipEl=t)}hoverTooltip(t,i){this.clearHoverTimeout(t);const{hoverTimeouts:e}=this,a=window.setTimeout((()=>this.hoverToggle(t,i)),500);e.set(t,a)}activeTooltipHover(t){const{activeTooltipEl:i,hoverTimeouts:e}=this,{type:a}=t;i&&("pointerover"===a&&t.composedPath().includes(i)?this.clearHoverTimeout(i):"pointerout"!==a||e.has(i)||this.hoverTooltip(i,!1))}hoverEvent(t,i){const e=this.queryTooltip(t.composedPath());this.activeTooltipHover(t),e&&this.hoverTooltip(e,i)}focusEvent(t,i){const e=this.queryTooltip(t.composedPath());e&&e!==this.clickedTooltip?this.focusTooltip(e,i):this.clickedTooltip=null}},u=class{constructor(i){t(this,i),this.closeOnClick=!1,this.offsetDistance=o,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.guid=`calcite-tooltip-${n()}`,this.hasLoaded=!1,this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),r(this,this.effectiveReferenceElement,this.el);const{el:i,referenceElement:e,effectiveReferenceElement:a}=this;t&&e&&!a&&console.warn(`${i.tagName}: reference-element id "${e}" was not found.`,{el:i}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const i=this.getId();"setAttribute"in t&&t.setAttribute("aria-describedby",i),f.registerElement(t,this.el)},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&t.removeAttribute("aria-describedby"),f.unregisterElement(t))}}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(t){t?this.reposition(!0):s(this.el)}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement()}connectedCallback(){this.setUpReferenceElement(this.hasLoaded)}componentDidLoad(){this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(!0),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),c(this,this.effectiveReferenceElement,this.el)}async reposition(t=!1){const{el:i,effectiveReferenceElement:e,placement:a,overlayPositioning:n,offsetDistance:o,offsetSkidding:r,arrowEl:s}=this;return l(this,{floatingEl:i,referenceEl:e,overlayPositioning:n,placement:a,offsetDistance:o,offsetSkidding:r,includeArrow:!0,arrowEl:s,type:"tooltip"},t)}getReferenceElement(){const{referenceElement:t,el:i}=this;return("string"==typeof t?h(i,{id:t}):t)||null}render(){const{effectiveReferenceElement:t,label:a,open:n}=this,o=t&&n,r=!o;return i(e,{"aria-hidden":p(r),"aria-label":a,"aria-live":"polite","calcite-hydrated-hidden":r,id:this.getId(),role:"tooltip"},i("div",{class:{[m.animation]:!0,[m.animationActive]:o}},i("div",{class:"arrow",ref:t=>this.arrowEl=t}),i("div",{class:"container"},i("slot",null))))}get el(){return a(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};u.style='@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{display:block;position:absolute;z-index:999}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.arrow,.arrow::before{position:absolute;inline-size:8px;block-size:8px;z-index:-1}.arrow::before{content:"";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-placement^=top]) .arrow{inset-block-end:-4px}:host([data-placement^=bottom]) .arrow{inset-block-start:-4px}:host([data-placement^=right]) .arrow,:host([data-placement^=left]) .arrow{direction:ltr;text-align:start}:host([data-placement^=left]) .arrow{inset-inline-end:-4px}:host([data-placement^=right]) .arrow{inset-inline-start:-4px}.container{position:relative;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);max-inline-size:20rem;max-block-size:20rem;text-align:start}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}';const v=class{constructor(i){t(this,i),this.selector="[data-calcite-tooltip-reference]"}render(){return i("slot",null)}};v.style="@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:relative;display:block}";export{u as calcite_tooltip,v as calcite_tooltip_manager}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
5
- */
6
- import{f as t}from"./p-e8fe4f12.js";import{c as o}from"./p-6791bba7.js";const n=new Set;let f;const s={childList:!0};function c(t){f||(f=o("mutation",a)),f.observe(t.el,s)}function i(t){n.delete(t.el),a(f.takeRecords()),f.disconnect();for(const[t]of n.entries())f.observe(t,s)}function a(o){o.forEach((({target:o})=>{t(o)}))}export{c,i as d}
@@ -1,16 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
5
- */
6
- import{r as t,c as e,h as i,H as n,g as a}from"./p-e8fe4f12.js";import{f as o,g as r,h as c}from"./p-a93c20e4.js";import{c as l}from"./p-6791bba7.js";import{c as s,d}from"./p-9e88aa1d.js";import{c as u,d as m}from"./p-3bd2a45e.js";import"./p-40ac55d4.js";import"./p-3e516c7f.js";
7
- /*!
8
- * tabbable 6.0.1
9
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
10
- */
11
- var f=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],h=f.join(","),p="undefined"==typeof Element,v=p?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,b=!p&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},g=function(t,e,i){var n=Array.prototype.slice.apply(t.querySelectorAll(h));return e&&v.call(t,h)&&n.unshift(t),n.filter(i)},x=function t(e,i,n){for(var a=[],o=Array.from(e);o.length;){var r=o.shift();if("SLOT"===r.tagName){var c=r.assignedElements(),l=t(c.length?c:r.children,!0,n);n.flatten?a.push.apply(a,l):a.push({scopeParent:r,candidates:l})}else{v.call(r,h)&&n.filter(r)&&(i||!e.includes(r))&&a.push(r);var s=r.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(r),d=!n.shadowRootFilter||n.shadowRootFilter(r);if(s&&d){var u=t(!0===s?r.children:s.children,!0,n);n.flatten?a.push.apply(a,u):a.push({scopeParent:r,candidates:u})}else o.unshift.apply(o,r.children)}}return a},w=function(t,e){return t.tabIndex<0&&(e||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},y=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},k=function(t){return"INPUT"===t.tagName},z=function(t){var e=t.getBoundingClientRect();return 0===e.width&&0===e.height},E=function(t,e){return!(e.disabled||function(t){return k(t)&&"hidden"===t.type}(e)||function(t,e){var i=e.displayCheck,n=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var a=v.call(t,"details>summary:first-of-type");if(v.call(a?t.parentElement:t,"details:not([open]) *"))return!0;if(i&&"full"!==i&&"legacy-full"!==i){if("non-zero-area"===i)return z(t)}else{if("function"==typeof n){for(var o=t;t;){var r=t.parentElement,c=b(t);if(r&&!r.shadowRoot&&!0===n(r))return z(t);t=t.assignedSlot?t.assignedSlot:r||c===t.ownerDocument?r:c.host}t=o}if(function(t){for(var e,i=b(t).host,n=!!(null!==(e=i)&&void 0!==e&&e.ownerDocument.contains(i)||t.ownerDocument.contains(t));!n&&i;){var a;n=!(null===(a=i=b(i).host)||void 0===a||!a.ownerDocument.contains(i))}return n}(t))return!t.getClientRects().length;if("legacy-full"!==i)return!0}return!1}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var i=0;i<e.children.length;i++){var n=e.children.item(i);if("LEGEND"===n.tagName)return!!v.call(e,"fieldset[disabled] *")||!n.contains(t)}return!0}e=e.parentElement}return!1}(e))},O=function(t,e){return!(function(t){return function(t){return k(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||b(t),n=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=n(window.CSS.escape(t.name));else try{e=n(t.name)}catch(t){return 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",t.message),!1}var a=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]}(e,t.form);return!a||a===t}(t)}(e)||w(e)<0||!E(t,e))},D=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},F=function t(e){var i=[],n=[];return e.forEach((function(e,a){var o=!!e.scopeParent,r=o?e.scopeParent:e,c=w(r,o),l=o?t(e.candidates):r;0===c?o?i.push.apply(i,l):i.push(r):n.push({documentOrder:a,tabIndex:c,item:e,isScope:o,content:l})})),n.sort(y).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(i)},T=function(t,e){var i;return i=(e=e||{}).getShadowRoot?x([t],e.includeContainer,{filter:O.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:D}):g(t,e.includeContainer,O.bind(null,e)),F(i)},j=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==v.call(t,h)&&O(e,t)},C=f.concat("iframe").join(","),N=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==v.call(t,C)&&E(e,t)};
12
- /*!
13
- * focus-trap 7.0.0
14
- * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
15
- */
16
- function S(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function A(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?S(Object(i),!0).forEach((function(e){I(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):S(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function I(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var M,R=(M=[],{activateTrap:function(t){if(M.length>0){var e=M[M.length-1];e!==t&&e.pause()}var i=M.indexOf(t);-1===i||M.splice(i,1),M.push(t)},deactivateTrap:function(t){var e=M.indexOf(t);-1!==e&&M.splice(e,1),M.length>0&&M[M.length-1].unpause()}}),B=function(t){return setTimeout(t,0)},L=function(t,e){var i=-1;return t.every((function(t,n){return!e(t)||(i=n,!1)})),i},_=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return"function"==typeof t?t.apply(void 0,i):t},P=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target};function U(t){var e;null===(e=t.focusTrap)||void 0===e||e.activate()}function $(t){var e;null===(e=t.focusTrap)||void 0===e||e.deactivate()}const H=class{constructor(i){t(this,i),this.calciteModalBeforeClose=e(this,"calciteModalBeforeClose",6),this.calciteModalClose=e(this,"calciteModalClose",6),this.calciteModalBeforeOpen=e(this,"calciteModalBeforeOpen",6),this.calciteModalOpen=e(this,"calciteModalOpen",6),this.active=!1,this.open=!1,this.beforeClose=()=>Promise.resolve(),this.disableCloseButton=!1,this.disableOutsideClose=!1,this.intlClose="Close",this.disableEscape=!1,this.scale="m",this.width="m",this.backgroundColor="white",this.noPadding=!1,this.hasFooter=!0,this.isOpen=!1,this.mutationObserver=l("mutation",(()=>this.updateFooterVisibility())),this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t,u(this),this.focusTrapEl=t,function(t){const{focusTrapEl:e}=t;var i,n,a,r,c,l,s,d,u,m,f,h,p,v,b,w,y,k,z;e&&(null==e.tabIndex&&(e.tabIndex=-1),t.focusTrap=(i=e,r=(null==(n={allowOutsideClick:!0,clickOutsideDeactivates:!1,escapeDeactivates:!1,fallbackFocus:e,setReturnFocus:t=>(o(t),!1),tabbableOptions:{getShadowRoot:!0}})?void 0:n.document)||document,c=A({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},n),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(t,e,i){return t&&void 0!==t[e]?t[e]:c[i||e]},d=function(t){return l.containerGroups.findIndex((function(e){var i=e.tabbableNodes;return e.container.contains(t)||i.find((function(e){return e===t}))}))},u=function(t){var e=c[t];if("function"==typeof e){for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];e=e.apply(void 0,n)}if(!0===e&&(e=void 0),!e){if(void 0===e||!1===e)return e;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var o=e;if("string"==typeof e&&!(o=r.querySelector(e)))throw new Error("`".concat(t,"` as selector refers to no known node"));return o},m=function(){var t=u("initialFocus");if(!1===t)return!1;if(void 0===t)if(d(r.activeElement)>=0)t=r.activeElement;else{var e=l.tabbableGroups[0];t=e&&e.firstTabbableNode||u("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},f=function(){if(l.containerGroups=l.containers.map((function(t){var e,i,n=T(t,c.tabbableOptions),a=(e=t,(i=(i=c.tabbableOptions)||{}).getShadowRoot?x([e],i.includeContainer,{filter:E.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):g(e,i.includeContainer,E.bind(null,i)));return{container:t,tabbableNodes:n,focusableNodes:a,firstTabbableNode:n.length>0?n[0]:null,lastTabbableNode:n.length>0?n[n.length-1]:null,nextTabbableNode:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=a.findIndex((function(e){return e===t}));if(!(i<0))return e?a.slice(i+1).find((function(t){return j(t,c.tabbableOptions)})):a.slice(0,i).reverse().find((function(t){return j(t,c.tabbableOptions)}))}}})),l.tabbableGroups=l.containerGroups.filter((function(t){return t.tabbableNodes.length>0})),l.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},h=function t(e){!1!==e&&e!==r.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!c.preventScroll}),l.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(m()))},p=function(t){var e=u("setReturnFocus",t);return e||!1!==e&&t},v=function(t){var e=P(t);d(e)>=0||(_(c.clickOutsideDeactivates,t)?a.deactivate({returnFocus:c.returnFocusOnDeactivate&&!N(e,c.tabbableOptions)}):_(c.allowOutsideClick,t)||t.preventDefault())},b=function(t){var e=P(t),i=d(e)>=0;i||e instanceof Document?i&&(l.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),h(l.mostRecentlyFocusedNode||m()))},w=function(t){if(function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t)&&!1!==_(c.escapeDeactivates,t))return t.preventDefault(),void a.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){var e=P(t);f();var i=null;if(l.tabbableGroups.length>0){var n=d(e),a=n>=0?l.containerGroups[n]:void 0;if(n<0)i=t.shiftKey?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var o=L(l.tabbableGroups,(function(t){return e===t.firstTabbableNode}));o<0&&(a.container===e||N(e,c.tabbableOptions)&&!j(e,c.tabbableOptions)&&!a.nextTabbableNode(e,!1))&&(o=n),o>=0&&(i=l.tabbableGroups[0===o?l.tabbableGroups.length-1:o-1].lastTabbableNode)}else{var r=L(l.tabbableGroups,(function(t){return e===t.lastTabbableNode}));r<0&&(a.container===e||N(e,c.tabbableOptions)&&!j(e,c.tabbableOptions)&&!a.nextTabbableNode(e))&&(r=n),r>=0&&(i=l.tabbableGroups[r===l.tabbableGroups.length-1?0:r+1].firstTabbableNode)}}else i=u("fallbackFocus");i&&(t.preventDefault(),h(i))}(t)},y=function(t){var e=P(t);d(e)>=0||_(c.clickOutsideDeactivates,t)||_(c.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},k=function(){if(l.active)return R.activateTrap(a),l.delayInitialFocusTimer=c.delayInitialFocus?B((function(){h(m())})):h(m()),r.addEventListener("focusin",b,!0),r.addEventListener("mousedown",v,{capture:!0,passive:!1}),r.addEventListener("touchstart",v,{capture:!0,passive:!1}),r.addEventListener("click",y,{capture:!0,passive:!1}),r.addEventListener("keydown",w,{capture:!0,passive:!1}),a},z=function(){if(l.active)return r.removeEventListener("focusin",b,!0),r.removeEventListener("mousedown",v,!0),r.removeEventListener("touchstart",v,!0),r.removeEventListener("click",y,!0),r.removeEventListener("keydown",w,!0),a},(a={get active(){return l.active},get paused(){return l.paused},activate:function(t){if(l.active)return this;var e=s(t,"onActivate"),i=s(t,"onPostActivate"),n=s(t,"checkCanFocusTrap");n||f(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=r.activeElement,e&&e();var a=function(){n&&f(),k(),i&&i()};return n?(n(l.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(t){if(!l.active)return this;var e=A({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},t);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,z(),l.active=!1,l.paused=!1,R.deactivateTrap(a);var i=s(e,"onDeactivate"),n=s(e,"onPostDeactivate"),o=s(e,"checkCanReturnFocus"),r=s(e,"returnFocus","returnFocusOnDeactivate");i&&i();var d=function(){B((function(){r&&h(p(l.nodeFocusedBeforeActivation)),n&&n()}))};return r&&o?(o(p(l.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return l.paused||!l.active||(l.paused=!0,z()),this},unpause:function(){return l.paused&&l.active?(l.paused=!1,f(),k(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return l.containers=e.map((function(t){return"string"==typeof t?r.querySelector(t):t})),l.active&&f(),this}}).updateContainerElements(i),a))}(this)},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd),U(this)},this.handleOutsideClose=()=>{this.disableOutsideClose||this.close()},this.close=()=>this.beforeClose(this.el).then((()=>{this.open=!1,this.isOpen=!1,this.removeOverflowHiddenClass()})),this.updateFooterVisibility=()=>{this.hasFooter=!!r(this.el,["back","primary","secondary"])}}componentWillLoad(){this.open&&requestAnimationFrame((()=>this.openModal()))}connectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0}),this.updateFooterVisibility(),s(this),u(this),this.open&&(this.active=this.open),this.active&&this.activeHandler(this.active)}disconnectedCallback(){var t;this.removeOverflowHiddenClass(),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),d(this),m(this),$(this)}render(){return i(n,{"aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},i("calcite-scrim",{class:"scrim",onClick:this.handleOutsideClose}),this.renderStyle(),i("div",{class:{modal:!0,"modal--open":this.isOpen},ref:this.setTransitionEl},i("div",{class:"header"},this.renderCloseButton(),i("header",{class:"title"},i("slot",{name:"header"}))),i("div",{class:{content:!0,"content--spaced":!this.noPadding,"content--no-footer":!this.hasFooter},ref:t=>this.modalContent=t},i("slot",{name:"content"})),this.renderFooter()))}renderFooter(){return this.hasFooter?i("div",{class:"footer",key:"footer"},i("span",{class:"back"},i("slot",{name:"back"})),i("span",{class:"secondary"},i("slot",{name:"secondary"})),i("span",{class:"primary"},i("slot",{name:"primary"}))):null}renderCloseButton(){return this.disableCloseButton?null:i("button",{"aria-label":this.intlClose,class:"close",key:"button",onClick:this.close,ref:t=>this.closeButtonEl=t,title:this.intlClose},i("calcite-icon",{icon:"x",scale:"s"===this.scale?"s":"m"===this.scale?"m":"l"===this.scale?"l":null}))}renderStyle(){return isNaN(parseInt(`${this.width}`))?null:i("style",null,`\n .modal {\n max-width: ${this.width}px !important;\n }\n @media screen and (max-width: ${this.width}px) {\n .modal {\n height: 100% !important;\n max-height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n margin: 0 !important;\n border-radius: 0 !important;\n }\n .content {\n flex: 1 1 auto !important;\n max-height: unset !important;\n }\n }\n `)}handleEscape(t){!this.open||this.disableEscape||"Escape"!==t.key||t.defaultPrevented||(this.close(),t.preventDefault())}async focusElement(t){return t&&t.focus(),this.setFocus()}async setFocus(t){const{closeButtonEl:e}=this;if(e&&"close-button"===t)return o(e);U(this)}async scrollContent(t=0,e=0){this.modalContent&&(this.modalContent.scrollTo?this.modalContent.scrollTo({top:t,left:e,behavior:"smooth"}):(this.modalContent.scrollTop=t,this.modalContent.scrollLeft=e))}onBeforeOpen(){this.transitionEl.classList.add("modal--opening-active"),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl.classList.remove("modal--opening-idle","modal--opening-active"),this.calciteModalOpen.emit()}onBeforeClose(){this.transitionEl.classList.add("modal--closing-active"),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl.classList.remove("modal--closing-idle","modal--closing-active"),this.calciteModalClose.emit(),$(this)}activeHandler(t){this.open=t}async toggleModal(t){var e,i;this.active=t,t?(null===(e=this.transitionEl)||void 0===e||e.classList.add("modal--opening-idle"),this.openModal()):(null===(i=this.transitionEl)||void 0===i||i.classList.add("modal--closing-idle"),this.close())}openModal(){this.el.addEventListener("calciteModalOpen",this.openEnd),this.open=!0,this.isOpen=!0;const t=r(this.el,"header"),e=r(this.el,"content");this.titleId=c(t),this.contentId=c(e),document.documentElement.classList.add("overflow-hidden")}removeOverflowHiddenClass(){document.documentElement.classList.remove("overflow-hidden")}get el(){return a(this)}static get watchers(){return{active:["activeHandler"],open:["toggleModal"]}}};H.style="@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}}";export{H as calcite_modal}