@esri/calcite-components 1.7.0 → 1.7.1-next.1

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 (974) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/index.esm.js +2 -2
  3. package/dist/calcite/{p-320be539.js → p-01cc076a.js} +1 -1
  4. package/dist/calcite/{p-c3277974.js → p-020b784f.js} +2 -2
  5. package/dist/calcite/{p-52639d7e.js → p-02b154bc.js} +2 -2
  6. package/dist/calcite/{p-0720f05a.js → p-05d02ec3.js} +2 -2
  7. package/dist/calcite/{p-86b26f48.js → p-086b0adf.js} +2 -2
  8. package/dist/calcite/{p-e135ec5c.js → p-0965be09.js} +2 -2
  9. package/dist/calcite/{p-c3f7b32e.js → p-09e3d28e.js} +2 -2
  10. package/dist/calcite/{p-c844a865.js → p-0b40d00a.js} +2 -2
  11. package/dist/calcite/{p-8024b8f2.entry.js → p-1064a87a.entry.js} +2 -2
  12. package/dist/calcite/{p-eff335a7.entry.js → p-1216959e.entry.js} +2 -2
  13. package/dist/calcite/{p-efe76d6b.entry.js → p-12359307.entry.js} +2 -2
  14. package/dist/calcite/p-1533859d.entry.js +6 -0
  15. package/dist/calcite/{p-4b763869.js → p-154261e7.js} +1 -1
  16. package/dist/calcite/p-1581e4df.js +6 -0
  17. package/dist/calcite/{p-fe972cbf.js → p-17a59b97.js} +2 -2
  18. package/dist/calcite/{p-a17e9c90.entry.js → p-186e8b5e.entry.js} +2 -2
  19. package/dist/calcite/{p-67a5713e.js → p-1e66f60b.js} +2 -2
  20. package/dist/calcite/{p-7c081cef.js → p-20af09cf.js} +1 -1
  21. package/dist/calcite/{p-9282a144.js → p-232dc3f4.js} +2 -2
  22. package/dist/calcite/{p-d27c3994.entry.js → p-253a6910.entry.js} +2 -2
  23. package/dist/calcite/{p-a9883ab6.entry.js → p-2573179d.entry.js} +2 -2
  24. package/dist/calcite/{p-cacf7a50.js → p-25ee0cd3.js} +2 -2
  25. package/dist/calcite/{p-509dbd5a.js → p-261d319c.js} +2 -2
  26. package/dist/calcite/{p-851896d1.js → p-268b2064.js} +2 -2
  27. package/dist/calcite/{p-5cc3d457.js → p-27ef6c74.js} +2 -2
  28. package/dist/calcite/{p-b835ad93.entry.js → p-321887ab.entry.js} +2 -2
  29. package/dist/calcite/p-33f958c1.js +6 -0
  30. package/dist/calcite/{p-593334c6.js → p-38aa44dd.js} +2 -2
  31. package/dist/calcite/{p-90dc39ad.js → p-38c29771.js} +1 -1
  32. package/dist/calcite/{p-aaa5ff2a.entry.js → p-394667ae.entry.js} +2 -2
  33. package/dist/calcite/{p-04aa11f0.js → p-39707a6e.js} +2 -2
  34. package/dist/calcite/p-3b2bd72c.entry.js +6 -0
  35. package/dist/calcite/{p-da6fd9e2.entry.js → p-3f0c4805.entry.js} +2 -2
  36. package/dist/calcite/{p-560d3c04.js → p-4309d48a.js} +1 -1
  37. package/dist/calcite/{p-1a31ad19.entry.js → p-459e0f59.entry.js} +2 -2
  38. package/dist/calcite/{p-db6581e4.entry.js → p-48091bf6.entry.js} +2 -2
  39. package/dist/calcite/{p-e99ba095.entry.js → p-485e275e.entry.js} +2 -2
  40. package/dist/calcite/{p-08ede4a4.js → p-48eedb5b.js} +2 -2
  41. package/dist/calcite/{p-fac1f152.entry.js → p-4cdf8ebe.entry.js} +2 -2
  42. package/dist/calcite/{p-e889d5a7.entry.js → p-4e695974.entry.js} +2 -2
  43. package/dist/calcite/{p-846679ec.entry.js → p-513890fd.entry.js} +2 -2
  44. package/dist/calcite/{p-c024ae74.js → p-51473212.js} +2 -2
  45. package/dist/calcite/{p-37037692.entry.js → p-52349760.entry.js} +2 -2
  46. package/dist/calcite/{p-45d8c8ac.js → p-52c73926.js} +2 -2
  47. package/dist/calcite/{p-6127c89a.js → p-55b2c7a9.js} +2 -2
  48. package/dist/calcite/{p-bf11f6b8.js → p-55d7fcbd.js} +2 -2
  49. package/dist/calcite/p-5678fe31.entry.js +6 -0
  50. package/dist/calcite/p-5acf2842.js +6 -0
  51. package/dist/calcite/{p-ccaa8af3.entry.js → p-5b400007.entry.js} +2 -2
  52. package/dist/calcite/{p-70f866f2.js → p-5bda1418.js} +2 -2
  53. package/dist/calcite/{p-d9297151.js → p-5bed146f.js} +2 -2
  54. package/dist/calcite/{p-f550dc28.entry.js → p-5cf68dd3.entry.js} +2 -2
  55. package/dist/calcite/{p-1dadf134.js → p-5df20bf2.js} +2 -2
  56. package/dist/calcite/{p-1c787574.js → p-5fcd34cc.js} +2 -2
  57. package/dist/calcite/{p-cbcad808.entry.js → p-60660407.entry.js} +2 -2
  58. package/dist/calcite/{p-49d86c7d.entry.js → p-61e6c7b4.entry.js} +2 -2
  59. package/dist/calcite/{p-6ac75e50.entry.js → p-62381f34.entry.js} +2 -2
  60. package/dist/calcite/p-623921b4.js +6 -0
  61. package/dist/calcite/{p-a3326952.entry.js → p-62e7374a.entry.js} +2 -2
  62. package/dist/calcite/{p-d7557121.entry.js → p-651b6082.entry.js} +2 -2
  63. package/dist/calcite/p-666d33da.js +6 -0
  64. package/dist/calcite/{p-0b43a0d5.entry.js → p-67cfec39.entry.js} +2 -2
  65. package/dist/calcite/{p-f105a8d3.js → p-686080bd.js} +2 -2
  66. package/dist/calcite/{p-4863d447.entry.js → p-687236fb.entry.js} +2 -2
  67. package/dist/calcite/{p-e5526dbf.js → p-68d264c9.js} +1 -1
  68. package/dist/calcite/{p-e3ac5250.entry.js → p-68dae37b.entry.js} +2 -2
  69. package/dist/calcite/p-69574303.js +6 -0
  70. package/dist/calcite/{p-7e083800.js → p-6e28fc82.js} +2 -2
  71. package/dist/calcite/{p-9de69439.entry.js → p-71995935.entry.js} +2 -2
  72. package/dist/calcite/{p-22e71ff8.entry.js → p-765698db.entry.js} +2 -2
  73. package/dist/calcite/{p-6f05c6a9.entry.js → p-790fd73c.entry.js} +2 -2
  74. package/dist/calcite/{p-7c5a2831.js → p-7a6926b5.js} +2 -2
  75. package/dist/calcite/{p-cec5f232.js → p-7b95169a.js} +2 -2
  76. package/dist/calcite/{p-82462c67.entry.js → p-7dc563af.entry.js} +2 -2
  77. package/dist/calcite/{p-082f973e.entry.js → p-7e7fab50.entry.js} +2 -2
  78. package/dist/calcite/{p-cdd4ac62.js → p-8076112c.js} +2 -2
  79. package/dist/calcite/{p-3fd90d92.entry.js → p-8419c045.entry.js} +2 -2
  80. package/dist/calcite/{p-56b76e4d.js → p-856d20b0.js} +2 -2
  81. package/dist/calcite/{p-4392795e.js → p-88c5c9c5.js} +2 -2
  82. package/dist/calcite/{p-6aa2343d.js → p-8a0af3aa.js} +2 -2
  83. package/dist/calcite/{p-c99f2ed5.entry.js → p-8b481d75.entry.js} +2 -2
  84. package/dist/calcite/{p-2c54d4d6.entry.js → p-8ce78b5d.entry.js} +2 -2
  85. package/dist/calcite/{p-ef45c6a8.entry.js → p-8e2fd9cc.entry.js} +2 -2
  86. package/dist/calcite/{p-f9fceb01.js → p-8e6522b8.js} +2 -2
  87. package/dist/calcite/{p-34842ce0.js → p-901f6a09.js} +2 -2
  88. package/dist/calcite/{p-382edd21.js → p-935ab417.js} +1 -1
  89. package/dist/calcite/{p-e92149c7.js → p-94abd728.js} +2 -2
  90. package/dist/calcite/{p-3b7816c9.js → p-977b21a5.js} +2 -2
  91. package/dist/calcite/{p-5b034d91.js → p-9dca62f6.js} +1 -1
  92. package/dist/calcite/p-9e5738d3.entry.js +6 -0
  93. package/dist/calcite/p-9e8d2d6a.js +6 -0
  94. package/dist/calcite/{p-31d76ee7.js → p-a36b8664.js} +2 -2
  95. package/dist/calcite/{p-afac0245.js → p-a45764f7.js} +2 -2
  96. package/dist/calcite/{p-26264910.entry.js → p-a7f342c8.entry.js} +2 -2
  97. package/dist/calcite/{p-1d4bddbf.entry.js → p-a8147e65.entry.js} +2 -2
  98. package/dist/calcite/{p-8f9e4eb1.js → p-ab2bb648.js} +2 -2
  99. package/dist/calcite/{p-7db8ffd2.js → p-ae058853.js} +1 -1
  100. package/dist/calcite/{p-7039b79a.js → p-ae75d0f0.js} +2 -2
  101. package/dist/calcite/{p-9472ce2d.entry.js → p-aea013cc.entry.js} +2 -2
  102. package/dist/calcite/{p-844065ac.js → p-af0f3259.js} +2 -2
  103. package/dist/calcite/{p-7ea68a76.js → p-af13c5e8.js} +1 -1
  104. package/dist/calcite/{p-a4fd4530.js → p-b3be2181.js} +2 -2
  105. package/dist/calcite/{p-7652e59b.js → p-b3d1fab5.js} +2 -2
  106. package/dist/calcite/{p-419aa0f0.js → p-b433504b.js} +2 -2
  107. package/dist/calcite/{p-5ce9b659.js → p-b5af9186.js} +1 -1
  108. package/dist/calcite/{p-1e0b1d94.js → p-b6171f85.js} +2 -2
  109. package/dist/calcite/{p-7a58570b.js → p-b69047f2.js} +2 -2
  110. package/dist/calcite/{p-8c5209c1.js → p-b9132336.js} +1 -1
  111. package/dist/calcite/{p-d7874bd5.entry.js → p-b921e46d.entry.js} +2 -2
  112. package/dist/calcite/{p-34f99c6f.js → p-b940c137.js} +2 -2
  113. package/dist/calcite/{p-ebb25cbf.entry.js → p-b9f65072.entry.js} +2 -2
  114. package/dist/calcite/{p-e3d8b831.js → p-bca344b3.js} +2 -2
  115. package/dist/calcite/{p-a43c8b83.entry.js → p-c17cf590.entry.js} +2 -2
  116. package/dist/calcite/p-c358d52d.entry.js +6 -0
  117. package/dist/calcite/{p-8bdb0cc3.js → p-c4e4af5b.js} +2 -2
  118. package/dist/calcite/{p-142a242d.js → p-c6009ee9.js} +1 -1
  119. package/dist/calcite/{p-53793725.entry.js → p-c634f8fc.entry.js} +2 -2
  120. package/dist/calcite/{p-a3d1b621.js → p-cb2a4358.js} +2 -2
  121. package/dist/calcite/{p-41345e14.js → p-cb3788eb.js} +2 -2
  122. package/dist/calcite/{p-b6caec58.entry.js → p-cd90258c.entry.js} +2 -2
  123. package/dist/calcite/p-cdc8cbfd.entry.js +6 -0
  124. package/dist/calcite/{p-7047ed2b.entry.js → p-cff410cc.entry.js} +2 -2
  125. package/dist/calcite/{p-71b3ba9d.js → p-d0347490.js} +2 -2
  126. package/dist/calcite/{p-56a36d56.entry.js → p-d082dc33.entry.js} +2 -2
  127. package/dist/calcite/{p-b09f53a0.js → p-d4331eb4.js} +1 -1
  128. package/dist/calcite/{p-b839457c.js → p-d515d0ff.js} +1 -1
  129. package/dist/calcite/{p-b6e85f3f.entry.js → p-d6e206df.entry.js} +2 -2
  130. package/dist/calcite/{p-a056d103.entry.js → p-d76b6517.entry.js} +2 -2
  131. package/dist/calcite/{p-85648b09.entry.js → p-d9a9f33d.entry.js} +2 -2
  132. package/dist/calcite/{p-8a35b3a2.js → p-dc03d799.js} +2 -2
  133. package/dist/calcite/p-dd15f371.entry.js +6 -0
  134. package/dist/calcite/{p-019d5b30.js → p-dd957f8e.js} +2 -2
  135. package/dist/calcite/{p-e3015727.js → p-df4234d8.js} +2 -2
  136. package/dist/calcite/{p-2d91d4fe.entry.js → p-e2d62bc1.entry.js} +2 -2
  137. package/dist/calcite/{p-847d1270.js → p-e346bbb8.js} +2 -2
  138. package/dist/calcite/p-e3ba6efa.js +6 -0
  139. package/dist/calcite/{p-4a93cdf8.entry.js → p-e44ae3b8.entry.js} +2 -2
  140. package/dist/calcite/p-e4880c74.entry.js +6 -0
  141. package/dist/calcite/{p-0e2c75a7.js → p-e6eae7af.js} +2 -2
  142. package/dist/calcite/{p-7bbfb1ca.js → p-e83e8602.js} +2 -2
  143. package/dist/calcite/{p-ab340417.entry.js → p-ea8a06e6.entry.js} +2 -2
  144. package/dist/calcite/{p-5ca514e0.entry.js → p-eebd9108.entry.js} +2 -2
  145. package/dist/calcite/{p-c7a4fe84.entry.js → p-eecc9f68.entry.js} +2 -2
  146. package/dist/calcite/{p-26677de8.js → p-ef07af24.js} +2 -2
  147. package/dist/calcite/p-ef9edf52.entry.js +6 -0
  148. package/dist/calcite/{p-1d898e3a.entry.js → p-f0586ad4.entry.js} +2 -2
  149. package/dist/calcite/{p-3cf1e0fa.entry.js → p-f233cb57.entry.js} +2 -2
  150. package/dist/calcite/{p-b6521a7b.entry.js → p-f307e739.entry.js} +2 -2
  151. package/dist/calcite/{p-30645775.entry.js → p-f38131e4.entry.js} +2 -2
  152. package/dist/calcite/{p-9bf4ffd8.entry.js → p-f59c1b7f.entry.js} +2 -2
  153. package/dist/calcite/{p-d57d4fed.entry.js → p-f73dbbf8.entry.js} +2 -2
  154. package/dist/calcite/{p-6d4f1b53.js → p-fae14e80.js} +1 -1
  155. package/dist/calcite/{p-eaa2f78e.entry.js → p-fca8cd65.entry.js} +2 -2
  156. package/dist/calcite/{p-f9a3c02a.js → p-fd383857.js} +2 -2
  157. package/dist/calcite/{p-e6f3b238.entry.js → p-fded402b.entry.js} +2 -2
  158. package/dist/calcite/{p-25fabd80.entry.js → p-fe9024a6.entry.js} +2 -2
  159. package/dist/cjs/{ExpandToggle-c595b0af.js → ExpandToggle-81c66462.js} +5 -5
  160. package/dist/cjs/{FloatingArrow-b55fb898.js → FloatingArrow-2218a9aa.js} +2 -2
  161. package/dist/cjs/{Heading-0666e12d.js → Heading-342807f1.js} +2 -2
  162. package/dist/cjs/{app-globals-140bbaa9.js → app-globals-a1988217.js} +2 -2
  163. package/dist/cjs/{ar-3a665b78.js → ar-ca20ab58.js} +17 -17
  164. package/dist/cjs/{array-3e8ec1ca.js → array-efe799bf.js} +1 -1
  165. package/dist/cjs/{bg-4d72ea85.js → bg-1486d7b0.js} +17 -17
  166. package/dist/cjs/{browser-c9faecb4.js → browser-4eab5e4c.js} +1 -1
  167. package/dist/cjs/{bs-55afe249.js → bs-a980f44a.js} +17 -17
  168. package/dist/cjs/{ca-82563203.js → ca-5ff6d3b2.js} +17 -17
  169. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  170. package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
  171. package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
  172. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  173. package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
  174. package/dist/cjs/calcite-action.cjs.entry.js +12 -12
  175. package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
  176. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  177. package/dist/cjs/calcite-block_2.cjs.entry.js +17 -16
  178. package/dist/cjs/calcite-button.cjs.entry.js +14 -14
  179. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  180. package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
  181. package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -9
  182. package/dist/cjs/calcite-chip.cjs.entry.js +13 -13
  183. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -16
  184. package/dist/cjs/calcite-combobox_3.cjs.entry.js +19 -19
  185. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +14 -14
  186. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +13 -13
  187. package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
  188. package/dist/cjs/calcite-filter.cjs.entry.js +14 -14
  189. package/dist/cjs/calcite-flow-item.cjs.entry.js +13 -13
  190. package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
  191. package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -14
  192. package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
  193. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  194. package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
  195. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +19 -19
  196. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  197. package/dist/cjs/calcite-input-number.cjs.entry.js +14 -14
  198. package/dist/cjs/calcite-input-text.cjs.entry.js +14 -14
  199. package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-8637bb2e.js → calcite-input-time-picker.calcite-time-picker-1738cde8.js} +61 -61
  200. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +17 -17
  201. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -14
  202. package/dist/cjs/calcite-input.cjs.entry.js +14 -14
  203. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  204. package/dist/cjs/calcite-link.cjs.entry.js +8 -8
  205. package/dist/cjs/calcite-list_3.cjs.entry.js +15 -15
  206. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  207. package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
  208. package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
  209. package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
  210. package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
  211. package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
  212. package/dist/cjs/calcite-option_3.cjs.entry.js +11 -11
  213. package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
  214. package/dist/cjs/calcite-panel.cjs.entry.js +15 -15
  215. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
  216. package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
  217. package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
  218. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
  219. package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
  220. package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
  221. package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
  222. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -11
  223. package/dist/cjs/calcite-sheet.cjs.entry.js +10 -10
  224. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
  225. package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -9
  226. package/dist/cjs/calcite-split-button.cjs.entry.js +5 -5
  227. package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
  228. package/dist/cjs/calcite-stepper_2.cjs.entry.js +11 -11
  229. package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
  230. package/dist/cjs/calcite-tab_4.cjs.entry.js +11 -11
  231. package/dist/cjs/calcite-table-cell_2.cjs.entry.js +14 -14
  232. package/dist/cjs/calcite-table-row.cjs.entry.js +8 -8
  233. package/dist/cjs/calcite-table.cjs.entry.js +11 -11
  234. package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
  235. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
  236. package/dist/cjs/calcite-tile.cjs.entry.js +9 -9
  237. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  238. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
  239. package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -9
  240. package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -17
  241. package/dist/cjs/calcite.cjs.js +4 -4
  242. package/dist/cjs/{conditionalSlot-31112024.js → conditionalSlot-ffb445bd.js} +3 -3
  243. package/dist/cjs/{cs-bfc3400c.js → cs-c1056f0e.js} +17 -17
  244. package/dist/cjs/{da-25a0bf95.js → da-c480f863.js} +17 -17
  245. package/dist/cjs/{de-2fbc6c3e.js → de-a9027439.js} +17 -17
  246. package/dist/cjs/{de-at-d379ded3.js → de-at-a0414a06.js} +17 -17
  247. package/dist/cjs/{de-ch-13fbb739.js → de-ch-31088c9d.js} +17 -17
  248. package/dist/cjs/{debounce-e92c967d.js → debounce-e05892c9.js} +1 -1
  249. package/dist/cjs/{dom-be7b3b5e.js → dom-8324c0a8.js} +3 -3
  250. package/dist/cjs/{el-b1651f08.js → el-2c88bca2.js} +17 -17
  251. package/dist/cjs/{en-au-41c17a82.js → en-au-89f0d31e.js} +17 -17
  252. package/dist/cjs/{en-ca-7a2601b1.js → en-ca-d1713afa.js} +17 -17
  253. package/dist/cjs/{en-gb-b4107d27.js → en-gb-48dfeec3.js} +17 -17
  254. package/dist/cjs/{es-4950cf55.js → es-bc92acbc.js} +17 -17
  255. package/dist/cjs/{es-mx-8f93bdb3.js → es-mx-7d088e48.js} +17 -17
  256. package/dist/cjs/{et-ec13f04e.js → et-a9775e59.js} +17 -17
  257. package/dist/cjs/{fi-d6376427.js → fi-7aa41a47.js} +17 -17
  258. package/dist/cjs/{filter-282048a2.js → filter-61ddf758.js} +2 -2
  259. package/dist/cjs/{floating-ui-49764304.js → floating-ui-3af94f27.js} +3 -3
  260. package/dist/cjs/{focusTrapComponent-917ed18b.js → focusTrapComponent-7e5da68d.js} +2 -2
  261. package/dist/cjs/{form-27befe54.js → form-4b242821.js} +3 -3
  262. package/dist/cjs/{fr-c69faf02.js → fr-227ea566.js} +17 -17
  263. package/dist/cjs/{fr-ch-aed23cbd.js → fr-ch-c8692e9a.js} +17 -17
  264. package/dist/cjs/{guid-a8269edb.js → guid-bc822f20.js} +1 -1
  265. package/dist/cjs/{he-67f42317.js → he-a9111deb.js} +17 -17
  266. package/dist/cjs/{hi-04a0147a.js → hi-cecfb4bd.js} +17 -17
  267. package/dist/cjs/{hr-34524375.js → hr-f6f7af38.js} +17 -17
  268. package/dist/cjs/{hu-1f356af6.js → hu-2ace6f65.js} +17 -17
  269. package/dist/cjs/{id-6d7a1a09.js → id-1a45ed3f.js} +17 -17
  270. package/dist/cjs/{index-5cedda26.js → index-72e31663.js} +1 -1
  271. package/dist/cjs/index.cjs.js +2 -2
  272. package/dist/cjs/{interactive-3bb6deb3.js → interactive-8f06df62.js} +2 -2
  273. package/dist/cjs/{it-43b612b9.js → it-6d9c650c.js} +17 -17
  274. package/dist/cjs/{it-ch-9e75c317.js → it-ch-d811dc20.js} +17 -17
  275. package/dist/cjs/{ja-cb86ad6a.js → ja-a6d621c7.js} +17 -17
  276. package/dist/cjs/{key-a0314f25.js → key-090a8e35.js} +1 -1
  277. package/dist/cjs/{ko-85b6231c.js → ko-a69f01b3.js} +17 -17
  278. package/dist/cjs/{label-dc984ee1.js → label-4c46a3aa.js} +2 -2
  279. package/dist/cjs/{loadable-9f17151a.js → loadable-aadb1516.js} +2 -2
  280. package/dist/cjs/loader.cjs.js +4 -4
  281. package/dist/cjs/{locale-29f97b64.js → locale-1fe32c2b.js} +4 -4
  282. package/dist/cjs/{lt-23c2c1ef.js → lt-fda13d55.js} +17 -17
  283. package/dist/cjs/{lv-2d9c4b08.js → lv-70487dc9.js} +17 -17
  284. package/dist/cjs/{math-a50a7a62.js → math-378e5e5a.js} +1 -1
  285. package/dist/cjs/{mk-df9a2de6.js → mk-b746fa17.js} +17 -17
  286. package/dist/cjs/{nb-b318ebff.js → nb-82644a05.js} +17 -17
  287. package/dist/cjs/{nl-653f0c7f.js → nl-8d5bfaea.js} +17 -17
  288. package/dist/cjs/{observers-1af2e17e.js → observers-51c920a6.js} +1 -1
  289. package/dist/cjs/{openCloseComponent-175eb783.js → openCloseComponent-035dac31.js} +2 -2
  290. package/dist/cjs/{pl-f1a90c9d.js → pl-055e83f6.js} +17 -17
  291. package/dist/cjs/{pt-257cbe1c.js → pt-aaef4dc5.js} +17 -17
  292. package/dist/cjs/{pt-br-f38824aa.js → pt-br-d2537185.js} +17 -17
  293. package/dist/cjs/{resources-1bccbd43.js → resources-44aada43.js} +1 -1
  294. package/dist/cjs/{resources-bd0c4c8a.js → resources-499a1910.js} +1 -1
  295. package/dist/cjs/{resources-ff8eb9ad.js → resources-72149924.js} +5 -5
  296. package/dist/cjs/{resources-1206684b.js → resources-ce59e8a8.js} +1 -1
  297. package/dist/cjs/{resources-09dc3cc2.js → resources-d8cd1869.js} +1 -1
  298. package/dist/cjs/{resources-4f303b29.js → resources-e14b3bcb.js} +1 -1
  299. package/dist/cjs/{resources-4717d162.js → resources-f653292b.js} +1 -1
  300. package/dist/cjs/{ro-fda66644.js → ro-6cdadcf2.js} +17 -17
  301. package/dist/cjs/{ru-e1e1363c.js → ru-c5499904.js} +17 -17
  302. package/dist/cjs/{sk-fa5539c9.js → sk-250afd78.js} +17 -17
  303. package/dist/cjs/{sl-b0e1baba.js → sl-c656861e.js} +17 -17
  304. package/dist/cjs/{sortableComponent-4da51633.js → sortableComponent-b4ddfdf1.js} +1 -1
  305. package/dist/cjs/{sr-1165d336.js → sr-cab5bb9d.js} +17 -17
  306. package/dist/cjs/{sv-89f8f9f2.js → sv-9bb230ab.js} +17 -17
  307. package/dist/cjs/{t9n-a92a13a7.js → t9n-c536710a.js} +3 -3
  308. package/dist/cjs/{th-c1ef9518.js → th-9f23967a.js} +17 -17
  309. package/dist/cjs/{throttle-7a457cee.js → throttle-8d3dcb19.js} +2 -2
  310. package/dist/cjs/{tr-f438d5b0.js → tr-d166e39f.js} +17 -17
  311. package/dist/cjs/{uk-c79f6aea.js → uk-4f126c25.js} +17 -17
  312. package/dist/cjs/{utils-401d3e34.js → utils-2400ca8b.js} +3 -3
  313. package/dist/cjs/{utils-2ac002c4.js → utils-cc0d4135.js} +1 -1
  314. package/dist/cjs/{vi-d0366090.js → vi-d9cce67d.js} +17 -17
  315. package/dist/cjs/{zh-cn-837c9fc7.js → zh-cn-cb6bc7a4.js} +17 -17
  316. package/dist/cjs/{zh-hk-9d974d62.js → zh-hk-ceb48824.js} +17 -17
  317. package/dist/cjs/{zh-tw-048613a3.js → zh-tw-39119aca.js} +17 -17
  318. package/dist/collection/components/accordion/accordion.js +1 -1
  319. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  320. package/dist/collection/components/accordion-item/resources.js +1 -1
  321. package/dist/collection/components/action/action.js +1 -1
  322. package/dist/collection/components/action/resources.js +1 -1
  323. package/dist/collection/components/action-bar/action-bar.js +1 -1
  324. package/dist/collection/components/action-bar/resources.js +1 -1
  325. package/dist/collection/components/action-bar/utils.js +1 -1
  326. package/dist/collection/components/action-group/action-group.js +1 -1
  327. package/dist/collection/components/action-group/resources.js +1 -1
  328. package/dist/collection/components/action-menu/action-menu.js +1 -1
  329. package/dist/collection/components/action-menu/resources.js +1 -1
  330. package/dist/collection/components/action-pad/action-pad.js +1 -1
  331. package/dist/collection/components/action-pad/resources.js +1 -1
  332. package/dist/collection/components/alert/alert.js +1 -1
  333. package/dist/collection/components/alert/resources.js +1 -1
  334. package/dist/collection/components/avatar/avatar.js +1 -1
  335. package/dist/collection/components/avatar/utils.js +1 -1
  336. package/dist/collection/components/block/block.js +3 -3
  337. package/dist/collection/components/block/resources.js +2 -1
  338. package/dist/collection/components/block-section/block-section.js +1 -1
  339. package/dist/collection/components/block-section/resources.js +1 -1
  340. package/dist/collection/components/button/button.js +1 -1
  341. package/dist/collection/components/button/resources.js +1 -1
  342. package/dist/collection/components/card/card.js +1 -1
  343. package/dist/collection/components/card/resources.js +1 -1
  344. package/dist/collection/components/checkbox/checkbox.js +1 -1
  345. package/dist/collection/components/chip/chip.js +1 -1
  346. package/dist/collection/components/chip/resources.js +1 -1
  347. package/dist/collection/components/chip-group/chip-group.js +1 -1
  348. package/dist/collection/components/color-picker/color-picker.js +1 -1
  349. package/dist/collection/components/color-picker/resources.js +1 -1
  350. package/dist/collection/components/color-picker/utils.js +1 -1
  351. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  352. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  353. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  354. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  355. package/dist/collection/components/combobox/combobox.js +1 -1
  356. package/dist/collection/components/combobox/resources.js +1 -1
  357. package/dist/collection/components/combobox/utils.js +1 -1
  358. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  359. package/dist/collection/components/combobox-item/resources.js +1 -1
  360. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  361. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  362. package/dist/collection/components/date-picker/date-picker.js +1 -1
  363. package/dist/collection/components/date-picker/resources.js +1 -1
  364. package/dist/collection/components/date-picker/utils.js +1 -1
  365. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  366. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  367. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  368. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  369. package/dist/collection/components/dropdown/dropdown.js +1 -1
  370. package/dist/collection/components/dropdown/resources.js +1 -1
  371. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  372. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  373. package/dist/collection/components/dropdown-item/resources.js +1 -1
  374. package/dist/collection/components/fab/fab.js +1 -1
  375. package/dist/collection/components/fab/resources.js +1 -1
  376. package/dist/collection/components/filter/filter.js +1 -1
  377. package/dist/collection/components/filter/resources.js +1 -1
  378. package/dist/collection/components/flow/flow.js +1 -1
  379. package/dist/collection/components/flow/resources.js +1 -1
  380. package/dist/collection/components/flow-item/flow-item.js +1 -1
  381. package/dist/collection/components/flow-item/resources.js +1 -1
  382. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  383. package/dist/collection/components/functional/FloatingArrow.js +1 -1
  384. package/dist/collection/components/functional/Heading.js +1 -1
  385. package/dist/collection/components/functional/XButton.js +1 -1
  386. package/dist/collection/components/graph/graph.js +1 -1
  387. package/dist/collection/components/graph/util.js +1 -1
  388. package/dist/collection/components/handle/handle.js +1 -1
  389. package/dist/collection/components/handle/resources.js +1 -1
  390. package/dist/collection/components/icon/icon.js +1 -1
  391. package/dist/collection/components/icon/resources.js +1 -1
  392. package/dist/collection/components/icon/utils.js +1 -1
  393. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  394. package/dist/collection/components/inline-editable/resources.js +1 -1
  395. package/dist/collection/components/input/input.js +1 -1
  396. package/dist/collection/components/input/resources.js +1 -1
  397. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  398. package/dist/collection/components/input-date-picker/resources.js +1 -1
  399. package/dist/collection/components/input-date-picker/utils.js +1 -1
  400. package/dist/collection/components/input-message/input-message.js +1 -1
  401. package/dist/collection/components/input-message/interfaces.js +1 -1
  402. package/dist/collection/components/input-number/input-number.js +1 -1
  403. package/dist/collection/components/input-number/resources.js +1 -1
  404. package/dist/collection/components/input-text/input-text.js +1 -1
  405. package/dist/collection/components/input-text/resources.js +1 -1
  406. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  407. package/dist/collection/components/input-time-picker/resources.js +1 -1
  408. package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
  409. package/dist/collection/components/input-time-zone/utils.js +1 -1
  410. package/dist/collection/components/label/label.js +1 -1
  411. package/dist/collection/components/label/resources.js +1 -1
  412. package/dist/collection/components/link/link.js +1 -1
  413. package/dist/collection/components/list/list.js +1 -1
  414. package/dist/collection/components/list/resources.js +1 -1
  415. package/dist/collection/components/list-item/list-item.js +1 -1
  416. package/dist/collection/components/list-item/resources.js +1 -1
  417. package/dist/collection/components/list-item/utils.js +1 -1
  418. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  419. package/dist/collection/components/list-item-group/resources.js +1 -1
  420. package/dist/collection/components/loader/loader.js +1 -1
  421. package/dist/collection/components/menu/menu.js +1 -1
  422. package/dist/collection/components/menu-item/menu-item.js +1 -1
  423. package/dist/collection/components/menu-item/resources.js +1 -1
  424. package/dist/collection/components/meter/meter.js +1 -1
  425. package/dist/collection/components/meter/resources.js +1 -1
  426. package/dist/collection/components/modal/modal.js +1 -1
  427. package/dist/collection/components/modal/resources.js +1 -1
  428. package/dist/collection/components/navigation/navigation.js +1 -1
  429. package/dist/collection/components/navigation/resources.js +1 -1
  430. package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
  431. package/dist/collection/components/navigation-logo/resources.js +1 -1
  432. package/dist/collection/components/navigation-user/navigation-user.js +1 -1
  433. package/dist/collection/components/navigation-user/resources.js +1 -1
  434. package/dist/collection/components/notice/notice.js +1 -1
  435. package/dist/collection/components/notice/resources.js +1 -1
  436. package/dist/collection/components/option/option.js +1 -1
  437. package/dist/collection/components/option-group/option-group.js +1 -1
  438. package/dist/collection/components/pagination/pagination.js +1 -1
  439. package/dist/collection/components/pagination/resources.js +1 -1
  440. package/dist/collection/components/panel/panel.js +1 -1
  441. package/dist/collection/components/panel/resources.js +1 -1
  442. package/dist/collection/components/pick-list/pick-list.js +1 -1
  443. package/dist/collection/components/pick-list/resources.js +1 -1
  444. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  445. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  446. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  447. package/dist/collection/components/pick-list-group/resources.js +1 -1
  448. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  449. package/dist/collection/components/pick-list-item/resources.js +1 -1
  450. package/dist/collection/components/popover/PopoverManager.js +1 -1
  451. package/dist/collection/components/popover/popover.js +1 -1
  452. package/dist/collection/components/popover/resources.js +1 -1
  453. package/dist/collection/components/progress/progress.js +1 -1
  454. package/dist/collection/components/radio-button/radio-button.js +1 -1
  455. package/dist/collection/components/radio-button/resources.js +1 -1
  456. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  457. package/dist/collection/components/rating/function/star.js +1 -1
  458. package/dist/collection/components/rating/rating.js +1 -1
  459. package/dist/collection/components/resources.js +1 -1
  460. package/dist/collection/components/scrim/resources.js +1 -1
  461. package/dist/collection/components/scrim/scrim.js +1 -1
  462. package/dist/collection/components/segmented-control/segmented-control.js +1 -1
  463. package/dist/collection/components/segmented-control-item/resources.js +1 -1
  464. package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
  465. package/dist/collection/components/select/resources.js +1 -1
  466. package/dist/collection/components/select/select.js +1 -1
  467. package/dist/collection/components/sheet/resources.js +1 -1
  468. package/dist/collection/components/sheet/sheet.css +3 -3
  469. package/dist/collection/components/sheet/sheet.js +1 -1
  470. package/dist/collection/components/shell/resources.js +1 -1
  471. package/dist/collection/components/shell/shell.js +1 -1
  472. package/dist/collection/components/shell-center-row/resources.js +1 -1
  473. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  474. package/dist/collection/components/shell-panel/resources.js +1 -1
  475. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  476. package/dist/collection/components/slider/resources.js +1 -1
  477. package/dist/collection/components/slider/slider.js +1 -1
  478. package/dist/collection/components/sortable-list/resources.js +1 -1
  479. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  480. package/dist/collection/components/split-button/resources.js +1 -1
  481. package/dist/collection/components/split-button/split-button.js +1 -1
  482. package/dist/collection/components/stack/resources.js +1 -1
  483. package/dist/collection/components/stack/stack.js +1 -1
  484. package/dist/collection/components/stepper/stepper.js +1 -1
  485. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  486. package/dist/collection/components/switch/switch.js +1 -1
  487. package/dist/collection/components/tab/tab.js +1 -1
  488. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  489. package/dist/collection/components/tab-title/resources.js +1 -1
  490. package/dist/collection/components/tab-title/tab-title.js +1 -1
  491. package/dist/collection/components/table/resources.js +1 -1
  492. package/dist/collection/components/table/table.js +5 -5
  493. package/dist/collection/components/table-cell/resources.js +1 -1
  494. package/dist/collection/components/table-cell/table-cell.css +1 -0
  495. package/dist/collection/components/table-cell/table-cell.js +1 -1
  496. package/dist/collection/components/table-header/resources.js +1 -1
  497. package/dist/collection/components/table-header/table-header.css +1 -0
  498. package/dist/collection/components/table-header/table-header.js +1 -1
  499. package/dist/collection/components/table-row/table-row.js +1 -1
  500. package/dist/collection/components/tabs/resources.js +1 -1
  501. package/dist/collection/components/tabs/tabs.js +1 -1
  502. package/dist/collection/components/text-area/resources.js +1 -1
  503. package/dist/collection/components/text-area/text-area.js +1 -1
  504. package/dist/collection/components/tile/resources.js +1 -1
  505. package/dist/collection/components/tile/tile.js +1 -1
  506. package/dist/collection/components/tile-select/resources.js +1 -1
  507. package/dist/collection/components/tile-select/tile-select.js +1 -1
  508. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  509. package/dist/collection/components/time-picker/resources.js +1 -1
  510. package/dist/collection/components/time-picker/time-picker.js +1 -1
  511. package/dist/collection/components/tip/resources.js +1 -1
  512. package/dist/collection/components/tip/tip.js +1 -1
  513. package/dist/collection/components/tip-group/tip-group.js +1 -1
  514. package/dist/collection/components/tip-manager/resources.js +1 -1
  515. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  516. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  517. package/dist/collection/components/tooltip/resources.js +1 -1
  518. package/dist/collection/components/tooltip/tooltip.js +1 -1
  519. package/dist/collection/components/tooltip/utils.js +1 -1
  520. package/dist/collection/components/tree/tree.js +1 -1
  521. package/dist/collection/components/tree/utils.js +1 -1
  522. package/dist/collection/components/tree-item/resources.js +1 -1
  523. package/dist/collection/components/tree-item/tree-item.js +1 -1
  524. package/dist/collection/components/value-list/resources.js +1 -1
  525. package/dist/collection/components/value-list/utils.js +1 -1
  526. package/dist/collection/components/value-list/value-list.js +1 -1
  527. package/dist/collection/components/value-list-item/resources.js +1 -1
  528. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  529. package/dist/collection/index.js +1 -1
  530. package/dist/collection/utils/array.js +1 -1
  531. package/dist/collection/utils/browser.js +1 -1
  532. package/dist/collection/utils/conditionalSlot.js +1 -1
  533. package/dist/collection/utils/config.js +1 -1
  534. package/dist/collection/utils/date.js +1 -1
  535. package/dist/collection/utils/dom.js +1 -1
  536. package/dist/collection/utils/filter.js +1 -1
  537. package/dist/collection/utils/floating-ui.js +1 -1
  538. package/dist/collection/utils/focusTrapComponent.js +1 -1
  539. package/dist/collection/utils/form.js +1 -1
  540. package/dist/collection/utils/globalAttributes.js +1 -1
  541. package/dist/collection/utils/globalScript.js +1 -1
  542. package/dist/collection/utils/guid.js +1 -1
  543. package/dist/collection/utils/interactive.js +1 -1
  544. package/dist/collection/utils/key.js +1 -1
  545. package/dist/collection/utils/label.js +1 -1
  546. package/dist/collection/utils/loadable.js +1 -1
  547. package/dist/collection/utils/locale.js +1 -1
  548. package/dist/collection/utils/math.js +1 -1
  549. package/dist/collection/utils/mode.js +1 -1
  550. package/dist/collection/utils/number.js +1 -1
  551. package/dist/collection/utils/observers.js +1 -1
  552. package/dist/collection/utils/openCloseComponent.js +1 -1
  553. package/dist/collection/utils/resources.js +1 -1
  554. package/dist/collection/utils/sortableComponent.js +1 -1
  555. package/dist/collection/utils/t9n.js +1 -1
  556. package/dist/collection/utils/time.js +1 -1
  557. package/dist/components/ExpandToggle.js +1 -1
  558. package/dist/components/FloatingArrow.js +1 -1
  559. package/dist/components/Heading.js +1 -1
  560. package/dist/components/action-group.js +1 -1
  561. package/dist/components/action-menu.js +1 -1
  562. package/dist/components/action.js +1 -1
  563. package/dist/components/ar.js +1 -1
  564. package/dist/components/array.js +1 -1
  565. package/dist/components/avatar.js +1 -1
  566. package/dist/components/bg.js +1 -1
  567. package/dist/components/bs.js +1 -1
  568. package/dist/components/button.js +1 -1
  569. package/dist/components/ca.js +1 -1
  570. package/dist/components/calcite-accordion-item.js +1 -1
  571. package/dist/components/calcite-accordion.js +1 -1
  572. package/dist/components/calcite-action-bar.js +1 -1
  573. package/dist/components/calcite-action-group.js +1 -1
  574. package/dist/components/calcite-action-menu.js +1 -1
  575. package/dist/components/calcite-action-pad.js +1 -1
  576. package/dist/components/calcite-action.js +1 -1
  577. package/dist/components/calcite-alert.js +1 -1
  578. package/dist/components/calcite-avatar.js +1 -1
  579. package/dist/components/calcite-block-section.js +1 -1
  580. package/dist/components/calcite-block.js +4 -3
  581. package/dist/components/calcite-button.js +1 -1
  582. package/dist/components/calcite-card.js +1 -1
  583. package/dist/components/calcite-checkbox.js +1 -1
  584. package/dist/components/calcite-chip-group.js +1 -1
  585. package/dist/components/calcite-chip.js +1 -1
  586. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  587. package/dist/components/calcite-color-picker-swatch.js +1 -1
  588. package/dist/components/calcite-color-picker.js +1 -1
  589. package/dist/components/calcite-combobox-item-group.js +1 -1
  590. package/dist/components/calcite-combobox-item.js +1 -1
  591. package/dist/components/calcite-combobox.js +1 -1
  592. package/dist/components/calcite-date-picker-day.js +1 -1
  593. package/dist/components/calcite-date-picker-month-header.js +1 -1
  594. package/dist/components/calcite-date-picker-month.js +1 -1
  595. package/dist/components/calcite-date-picker.js +1 -1
  596. package/dist/components/calcite-dropdown-group.js +1 -1
  597. package/dist/components/calcite-dropdown-item.js +1 -1
  598. package/dist/components/calcite-dropdown.js +1 -1
  599. package/dist/components/calcite-fab.js +1 -1
  600. package/dist/components/calcite-filter.js +1 -1
  601. package/dist/components/calcite-flow-item.js +1 -1
  602. package/dist/components/calcite-flow.js +1 -1
  603. package/dist/components/calcite-graph.js +1 -1
  604. package/dist/components/calcite-handle.js +1 -1
  605. package/dist/components/calcite-icon.js +1 -1
  606. package/dist/components/calcite-inline-editable.js +1 -1
  607. package/dist/components/calcite-input-date-picker.js +1 -1
  608. package/dist/components/calcite-input-message.js +1 -1
  609. package/dist/components/calcite-input-number.js +1 -1
  610. package/dist/components/calcite-input-text.js +1 -1
  611. package/dist/components/calcite-input-time-picker.js +1 -1
  612. package/dist/components/calcite-input-time-zone.js +1 -1
  613. package/dist/components/calcite-input.js +1 -1
  614. package/dist/components/calcite-label.js +1 -1
  615. package/dist/components/calcite-link.js +1 -1
  616. package/dist/components/calcite-list-item-group.js +1 -1
  617. package/dist/components/calcite-list-item.js +1 -1
  618. package/dist/components/calcite-list.js +1 -1
  619. package/dist/components/calcite-loader.js +1 -1
  620. package/dist/components/calcite-menu-item.js +1 -1
  621. package/dist/components/calcite-menu.js +1 -1
  622. package/dist/components/calcite-meter.js +1 -1
  623. package/dist/components/calcite-modal.js +1 -1
  624. package/dist/components/calcite-navigation-logo.js +1 -1
  625. package/dist/components/calcite-navigation-user.js +1 -1
  626. package/dist/components/calcite-navigation.js +1 -1
  627. package/dist/components/calcite-notice.js +1 -1
  628. package/dist/components/calcite-option-group.js +1 -1
  629. package/dist/components/calcite-option.js +1 -1
  630. package/dist/components/calcite-pagination.js +1 -1
  631. package/dist/components/calcite-panel.js +1 -1
  632. package/dist/components/calcite-pick-list-group.js +1 -1
  633. package/dist/components/calcite-pick-list-item.js +1 -1
  634. package/dist/components/calcite-pick-list.js +1 -1
  635. package/dist/components/calcite-popover.js +1 -1
  636. package/dist/components/calcite-progress.js +1 -1
  637. package/dist/components/calcite-radio-button-group.js +1 -1
  638. package/dist/components/calcite-radio-button.js +1 -1
  639. package/dist/components/calcite-rating.js +1 -1
  640. package/dist/components/calcite-scrim.js +1 -1
  641. package/dist/components/calcite-segmented-control-item.js +1 -1
  642. package/dist/components/calcite-segmented-control.js +1 -1
  643. package/dist/components/calcite-select.js +1 -1
  644. package/dist/components/calcite-sheet.js +2 -2
  645. package/dist/components/calcite-shell-center-row.js +1 -1
  646. package/dist/components/calcite-shell-panel.js +1 -1
  647. package/dist/components/calcite-shell.js +1 -1
  648. package/dist/components/calcite-slider.js +1 -1
  649. package/dist/components/calcite-sortable-list.js +1 -1
  650. package/dist/components/calcite-split-button.js +1 -1
  651. package/dist/components/calcite-stack.js +1 -1
  652. package/dist/components/calcite-stepper-item.js +1 -1
  653. package/dist/components/calcite-stepper.js +1 -1
  654. package/dist/components/calcite-switch.js +1 -1
  655. package/dist/components/calcite-tab-nav.js +1 -1
  656. package/dist/components/calcite-tab-title.js +1 -1
  657. package/dist/components/calcite-tab.js +1 -1
  658. package/dist/components/calcite-table-cell.js +1 -1
  659. package/dist/components/calcite-table-header.js +1 -1
  660. package/dist/components/calcite-table-row.js +1 -1
  661. package/dist/components/calcite-table.js +1 -1
  662. package/dist/components/calcite-tabs.js +1 -1
  663. package/dist/components/calcite-text-area.js +1 -1
  664. package/dist/components/calcite-tile-select-group.js +1 -1
  665. package/dist/components/calcite-tile-select.js +1 -1
  666. package/dist/components/calcite-tile.js +1 -1
  667. package/dist/components/calcite-time-picker.js +1 -1
  668. package/dist/components/calcite-tip-group.js +1 -1
  669. package/dist/components/calcite-tip-manager.js +1 -1
  670. package/dist/components/calcite-tip.js +1 -1
  671. package/dist/components/calcite-tooltip.js +1 -1
  672. package/dist/components/calcite-tree-item.js +1 -1
  673. package/dist/components/calcite-tree.js +1 -1
  674. package/dist/components/calcite-value-list-item.js +1 -1
  675. package/dist/components/calcite-value-list.js +1 -1
  676. package/dist/components/checkbox.js +1 -1
  677. package/dist/components/chip.js +1 -1
  678. package/dist/components/color-picker-hex-input.js +1 -1
  679. package/dist/components/color-picker-swatch.js +1 -1
  680. package/dist/components/combobox-item.js +1 -1
  681. package/dist/components/combobox.js +1 -1
  682. package/dist/components/conditionalSlot.js +1 -1
  683. package/dist/components/cs.js +1 -1
  684. package/dist/components/da.js +1 -1
  685. package/dist/components/date-picker-day.js +1 -1
  686. package/dist/components/date-picker-month-header.js +1 -1
  687. package/dist/components/date-picker-month.js +1 -1
  688. package/dist/components/date-picker.js +1 -1
  689. package/dist/components/date.js +1 -1
  690. package/dist/components/de-at.js +1 -1
  691. package/dist/components/de-ch.js +1 -1
  692. package/dist/components/de.js +1 -1
  693. package/dist/components/debounce.js +1 -1
  694. package/dist/components/dom.js +1 -1
  695. package/dist/components/dropdown.js +1 -1
  696. package/dist/components/el.js +1 -1
  697. package/dist/components/en-au.js +1 -1
  698. package/dist/components/en-ca.js +1 -1
  699. package/dist/components/en-gb.js +1 -1
  700. package/dist/components/es-mx.js +1 -1
  701. package/dist/components/es.js +1 -1
  702. package/dist/components/et.js +1 -1
  703. package/dist/components/fi.js +1 -1
  704. package/dist/components/filter.js +1 -1
  705. package/dist/components/filter2.js +1 -1
  706. package/dist/components/floating-ui.js +1 -1
  707. package/dist/components/focusTrapComponent.js +1 -1
  708. package/dist/components/form.js +1 -1
  709. package/dist/components/fr-ch.js +1 -1
  710. package/dist/components/fr.js +1 -1
  711. package/dist/components/graph.js +1 -1
  712. package/dist/components/guid.js +1 -1
  713. package/dist/components/handle.js +1 -1
  714. package/dist/components/he.js +1 -1
  715. package/dist/components/hi.js +1 -1
  716. package/dist/components/hr.js +1 -1
  717. package/dist/components/hu.js +1 -1
  718. package/dist/components/icon.js +1 -1
  719. package/dist/components/id.js +1 -1
  720. package/dist/components/index.js +1 -1
  721. package/dist/components/index2.js +1 -1
  722. package/dist/components/input-number.js +1 -1
  723. package/dist/components/input-text.js +1 -1
  724. package/dist/components/input.js +1 -1
  725. package/dist/components/interactive.js +1 -1
  726. package/dist/components/it-ch.js +1 -1
  727. package/dist/components/it.js +1 -1
  728. package/dist/components/ja.js +1 -1
  729. package/dist/components/key.js +1 -1
  730. package/dist/components/ko.js +1 -1
  731. package/dist/components/label.js +1 -1
  732. package/dist/components/label2.js +1 -1
  733. package/dist/components/link.js +1 -1
  734. package/dist/components/loadable.js +1 -1
  735. package/dist/components/loader.js +1 -1
  736. package/dist/components/locale.js +1 -1
  737. package/dist/components/lt.js +1 -1
  738. package/dist/components/lv.js +1 -1
  739. package/dist/components/math.js +1 -1
  740. package/dist/components/menu.js +1 -1
  741. package/dist/components/mk.js +1 -1
  742. package/dist/components/nb.js +1 -1
  743. package/dist/components/nl.js +1 -1
  744. package/dist/components/observers.js +1 -1
  745. package/dist/components/openCloseComponent.js +1 -1
  746. package/dist/components/pagination.js +1 -1
  747. package/dist/components/panel.js +1 -1
  748. package/dist/components/pick-list-item.js +1 -1
  749. package/dist/components/pl.js +1 -1
  750. package/dist/components/popover.js +1 -1
  751. package/dist/components/progress.js +1 -1
  752. package/dist/components/pt-br.js +1 -1
  753. package/dist/components/pt.js +1 -1
  754. package/dist/components/resources.js +1 -1
  755. package/dist/components/resources2.js +1 -1
  756. package/dist/components/resources3.js +1 -1
  757. package/dist/components/resources4.js +1 -1
  758. package/dist/components/ro.js +1 -1
  759. package/dist/components/ru.js +1 -1
  760. package/dist/components/scrim.js +1 -1
  761. package/dist/components/shared-list-render.js +1 -1
  762. package/dist/components/sk.js +1 -1
  763. package/dist/components/sl.js +1 -1
  764. package/dist/components/sortableComponent.js +1 -1
  765. package/dist/components/sr.js +1 -1
  766. package/dist/components/stack.js +1 -1
  767. package/dist/components/sv.js +1 -1
  768. package/dist/components/switch.js +1 -1
  769. package/dist/components/t9n.js +1 -1
  770. package/dist/components/tab-nav.js +1 -1
  771. package/dist/components/tab-title.js +1 -1
  772. package/dist/components/tab.js +1 -1
  773. package/dist/components/table-cell.js +2 -2
  774. package/dist/components/table-header.js +2 -2
  775. package/dist/components/tabs.js +1 -1
  776. package/dist/components/th.js +1 -1
  777. package/dist/components/throttle.js +1 -1
  778. package/dist/components/tile.js +1 -1
  779. package/dist/components/time-picker.js +1 -1
  780. package/dist/components/tr.js +1 -1
  781. package/dist/components/uk.js +1 -1
  782. package/dist/components/utils.js +1 -1
  783. package/dist/components/utils2.js +1 -1
  784. package/dist/components/utils3.js +1 -1
  785. package/dist/components/vi.js +1 -1
  786. package/dist/components/zh-cn.js +1 -1
  787. package/dist/components/zh-hk.js +1 -1
  788. package/dist/components/zh-tw.js +1 -1
  789. package/dist/esm/{ExpandToggle-85532e87.js → ExpandToggle-b64ca934.js} +5 -5
  790. package/dist/esm/{FloatingArrow-2df381ca.js → FloatingArrow-5c09b6b8.js} +2 -2
  791. package/dist/esm/{Heading-5acbb6cb.js → Heading-e191abdd.js} +2 -2
  792. package/dist/esm/{app-globals-575aa550.js → app-globals-6ad15981.js} +2 -2
  793. package/dist/esm/{ar-2e277070.js → ar-0daa2f1c.js} +17 -17
  794. package/dist/esm/{array-ff939574.js → array-6e276ac6.js} +1 -1
  795. package/dist/esm/{bg-e07a9213.js → bg-68426798.js} +17 -17
  796. package/dist/esm/{browser-612db93f.js → browser-9b7d9d9e.js} +1 -1
  797. package/dist/esm/{bs-41a2ac4e.js → bs-24cf36d3.js} +17 -17
  798. package/dist/esm/{ca-9028fb84.js → ca-28c2418d.js} +17 -17
  799. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  800. package/dist/esm/calcite-action-bar.entry.js +15 -15
  801. package/dist/esm/calcite-action-group.entry.js +13 -13
  802. package/dist/esm/calcite-action-menu.entry.js +9 -9
  803. package/dist/esm/calcite-action-pad.entry.js +14 -14
  804. package/dist/esm/calcite-action.entry.js +12 -12
  805. package/dist/esm/calcite-alert.entry.js +12 -12
  806. package/dist/esm/calcite-avatar.entry.js +6 -6
  807. package/dist/esm/calcite-block_2.entry.js +17 -16
  808. package/dist/esm/calcite-button.entry.js +14 -14
  809. package/dist/esm/calcite-card.entry.js +10 -10
  810. package/dist/esm/calcite-checkbox.entry.js +11 -11
  811. package/dist/esm/calcite-chip-group.entry.js +9 -9
  812. package/dist/esm/calcite-chip.entry.js +13 -13
  813. package/dist/esm/calcite-color-picker_3.entry.js +16 -16
  814. package/dist/esm/calcite-combobox_3.entry.js +19 -19
  815. package/dist/esm/calcite-date-picker_4.entry.js +14 -14
  816. package/dist/esm/calcite-dropdown_3.entry.js +13 -13
  817. package/dist/esm/calcite-fab.entry.js +8 -8
  818. package/dist/esm/calcite-filter.entry.js +14 -14
  819. package/dist/esm/calcite-flow-item.entry.js +13 -13
  820. package/dist/esm/calcite-flow.entry.js +4 -4
  821. package/dist/esm/calcite-graph_2.entry.js +14 -14
  822. package/dist/esm/calcite-handle.entry.js +10 -10
  823. package/dist/esm/calcite-icon.entry.js +6 -6
  824. package/dist/esm/calcite-inline-editable.entry.js +13 -13
  825. package/dist/esm/calcite-input-date-picker.entry.js +19 -19
  826. package/dist/esm/calcite-input-message.entry.js +5 -5
  827. package/dist/esm/calcite-input-number.entry.js +14 -14
  828. package/dist/esm/calcite-input-text.entry.js +14 -14
  829. package/dist/esm/{calcite-input-time-picker.calcite-time-picker-7f52a0b1.js → calcite-input-time-picker.calcite-time-picker-d6f987e5.js} +61 -61
  830. package/dist/esm/calcite-input-time-picker_2.entry.js +17 -17
  831. package/dist/esm/calcite-input-time-zone.entry.js +14 -14
  832. package/dist/esm/calcite-input.entry.js +14 -14
  833. package/dist/esm/calcite-label.entry.js +6 -6
  834. package/dist/esm/calcite-link.entry.js +8 -8
  835. package/dist/esm/calcite-list_3.entry.js +15 -15
  836. package/dist/esm/calcite-loader.entry.js +3 -3
  837. package/dist/esm/calcite-menu_2.entry.js +10 -10
  838. package/dist/esm/calcite-meter.entry.js +10 -10
  839. package/dist/esm/calcite-modal.entry.js +13 -13
  840. package/dist/esm/calcite-navigation_3.entry.js +6 -6
  841. package/dist/esm/calcite-notice.entry.js +12 -12
  842. package/dist/esm/calcite-option_3.entry.js +11 -11
  843. package/dist/esm/calcite-pagination.entry.js +10 -10
  844. package/dist/esm/calcite-panel.entry.js +15 -15
  845. package/dist/esm/calcite-pick-list_3.entry.js +17 -17
  846. package/dist/esm/calcite-popover.entry.js +16 -16
  847. package/dist/esm/calcite-progress.entry.js +5 -5
  848. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  849. package/dist/esm/calcite-radio-button.entry.js +11 -11
  850. package/dist/esm/calcite-rating.entry.js +14 -14
  851. package/dist/esm/calcite-scrim.entry.js +9 -9
  852. package/dist/esm/calcite-segmented-control_2.entry.js +11 -11
  853. package/dist/esm/calcite-sheet.entry.js +10 -10
  854. package/dist/esm/calcite-shell_3.entry.js +11 -11
  855. package/dist/esm/calcite-sortable-list.entry.js +9 -9
  856. package/dist/esm/calcite-split-button.entry.js +5 -5
  857. package/dist/esm/calcite-stack.entry.js +6 -6
  858. package/dist/esm/calcite-stepper_2.entry.js +11 -11
  859. package/dist/esm/calcite-switch.entry.js +11 -11
  860. package/dist/esm/calcite-tab_4.entry.js +11 -11
  861. package/dist/esm/calcite-table-cell_2.entry.js +14 -14
  862. package/dist/esm/calcite-table-row.entry.js +8 -8
  863. package/dist/esm/calcite-table.entry.js +11 -11
  864. package/dist/esm/calcite-text-area.entry.js +16 -16
  865. package/dist/esm/calcite-tile-select_2.entry.js +6 -6
  866. package/dist/esm/calcite-tile.entry.js +9 -9
  867. package/dist/esm/calcite-tip_3.entry.js +11 -11
  868. package/dist/esm/calcite-tooltip.entry.js +9 -9
  869. package/dist/esm/calcite-tree_2.entry.js +9 -9
  870. package/dist/esm/calcite-value-list_2.entry.js +17 -17
  871. package/dist/esm/calcite.js +5 -5
  872. package/dist/esm/{conditionalSlot-d8f568e7.js → conditionalSlot-4fe8f758.js} +3 -3
  873. package/dist/esm/{cs-65ce1c2c.js → cs-07c67589.js} +17 -17
  874. package/dist/esm/{da-2a5cdb6d.js → da-6a0ddd34.js} +17 -17
  875. package/dist/esm/{de-at-cefb939e.js → de-at-939f9502.js} +17 -17
  876. package/dist/esm/{de-ch-9ea5f1c8.js → de-ch-11ee1723.js} +17 -17
  877. package/dist/esm/{de-63dab6b5.js → de-dd426b8f.js} +17 -17
  878. package/dist/esm/{debounce-ec28f063.js → debounce-2f971685.js} +1 -1
  879. package/dist/esm/{dom-79f84f98.js → dom-3a67d0f4.js} +3 -3
  880. package/dist/esm/{el-c21e163a.js → el-248b1b93.js} +17 -17
  881. package/dist/esm/{en-au-f8ec7bc2.js → en-au-a595b5ff.js} +17 -17
  882. package/dist/esm/{en-ca-c85ea8e4.js → en-ca-e857ac7c.js} +17 -17
  883. package/dist/esm/{en-gb-78865153.js → en-gb-75ff5dfb.js} +17 -17
  884. package/dist/esm/{es-3cb6d7cc.js → es-21ebf248.js} +17 -17
  885. package/dist/esm/{es-mx-7809a516.js → es-mx-db2bbb75.js} +17 -17
  886. package/dist/esm/{et-d171eed3.js → et-d22586ce.js} +17 -17
  887. package/dist/esm/{fi-31096c23.js → fi-2f98d533.js} +17 -17
  888. package/dist/esm/{filter-1ee4a630.js → filter-d2beb764.js} +2 -2
  889. package/dist/esm/{floating-ui-46044970.js → floating-ui-124447e4.js} +3 -3
  890. package/dist/esm/{focusTrapComponent-0e7ce2bc.js → focusTrapComponent-a9dc1b43.js} +2 -2
  891. package/dist/esm/{form-c73d3da5.js → form-606799cd.js} +3 -3
  892. package/dist/esm/{fr-ch-875d946f.js → fr-ch-af4b48d8.js} +17 -17
  893. package/dist/esm/{fr-1bccea25.js → fr-f220ad03.js} +17 -17
  894. package/dist/esm/{guid-3f32a87e.js → guid-22639dcd.js} +1 -1
  895. package/dist/esm/{he-847d52e7.js → he-4a778259.js} +17 -17
  896. package/dist/esm/{hi-88458672.js → hi-22bb4e63.js} +17 -17
  897. package/dist/esm/{hr-fd6b5c9b.js → hr-daa6d388.js} +17 -17
  898. package/dist/esm/{hu-64bd3986.js → hu-af9de40d.js} +17 -17
  899. package/dist/esm/{id-4f1b7225.js → id-8b6b3354.js} +17 -17
  900. package/dist/esm/{index-165cd388.js → index-827489a7.js} +1 -1
  901. package/dist/esm/index.js +2 -2
  902. package/dist/esm/{interactive-5801a6e6.js → interactive-66c4842a.js} +2 -2
  903. package/dist/esm/{it-62b2a421.js → it-8771028a.js} +17 -17
  904. package/dist/esm/{it-ch-7c189f43.js → it-ch-2fa80ad1.js} +17 -17
  905. package/dist/esm/{ja-ab0ceca9.js → ja-5a8a8fb4.js} +17 -17
  906. package/dist/esm/{key-120fe23c.js → key-e0ed45d2.js} +1 -1
  907. package/dist/esm/{ko-da8a0a68.js → ko-cea7788b.js} +17 -17
  908. package/dist/esm/{label-b88198aa.js → label-21046f01.js} +2 -2
  909. package/dist/esm/{loadable-d814078e.js → loadable-6d0b870c.js} +2 -2
  910. package/dist/esm/loader.js +5 -5
  911. package/dist/esm/{locale-b09d220a.js → locale-f3cc92be.js} +4 -4
  912. package/dist/esm/{lt-ac385047.js → lt-98bc7574.js} +17 -17
  913. package/dist/esm/{lv-801bdc6f.js → lv-9ffaa245.js} +17 -17
  914. package/dist/esm/{math-4e0ea91f.js → math-4e8f01ee.js} +1 -1
  915. package/dist/esm/{mk-c6924f32.js → mk-4e2e97f2.js} +17 -17
  916. package/dist/esm/{nb-1b8c3a74.js → nb-1856dd7e.js} +17 -17
  917. package/dist/esm/{nl-b71dd00b.js → nl-cd3ac8a0.js} +17 -17
  918. package/dist/esm/{observers-200147a2.js → observers-3c121663.js} +1 -1
  919. package/dist/esm/{openCloseComponent-fb9b3aae.js → openCloseComponent-fac7876e.js} +2 -2
  920. package/dist/esm/{pl-dd4a5879.js → pl-bdc33204.js} +17 -17
  921. package/dist/esm/{pt-32b7ef57.js → pt-b9830486.js} +17 -17
  922. package/dist/esm/{pt-br-094cade6.js → pt-br-e90d6690.js} +17 -17
  923. package/dist/esm/{resources-65fce7c2.js → resources-001bd202.js} +1 -1
  924. package/dist/esm/{resources-21e9251a.js → resources-1c2db63a.js} +1 -1
  925. package/dist/esm/{resources-e0d1e0c0.js → resources-4cd98671.js} +1 -1
  926. package/dist/esm/{resources-35a7a422.js → resources-7ed62527.js} +5 -5
  927. package/dist/esm/{resources-e53513a8.js → resources-d65b621a.js} +1 -1
  928. package/dist/esm/{resources-27ffbef0.js → resources-e7d047a8.js} +1 -1
  929. package/dist/esm/{resources-4b333cce.js → resources-ea41f056.js} +1 -1
  930. package/dist/esm/{ro-05181951.js → ro-3dee4be0.js} +17 -17
  931. package/dist/esm/{ru-8255e182.js → ru-356120ff.js} +17 -17
  932. package/dist/esm/{sk-58b42580.js → sk-234fd4e5.js} +17 -17
  933. package/dist/esm/{sl-51406569.js → sl-07f931a7.js} +17 -17
  934. package/dist/esm/{sortableComponent-b0b64c13.js → sortableComponent-1892b1c6.js} +1 -1
  935. package/dist/esm/{sr-e5da1e3e.js → sr-f9b74b51.js} +17 -17
  936. package/dist/esm/{sv-587126d7.js → sv-675e6530.js} +17 -17
  937. package/dist/esm/{t9n-9a6203a1.js → t9n-75b506e8.js} +3 -3
  938. package/dist/esm/{th-cda5e838.js → th-0ce59e26.js} +17 -17
  939. package/dist/esm/{throttle-d9dc6fed.js → throttle-5b2982be.js} +2 -2
  940. package/dist/esm/{tr-ac0f7de4.js → tr-2ace57ba.js} +17 -17
  941. package/dist/esm/{uk-cd1896d0.js → uk-9fc40972.js} +17 -17
  942. package/dist/esm/{utils-9a5e88b7.js → utils-2853961b.js} +3 -3
  943. package/dist/esm/{utils-7049def3.js → utils-5acd3c44.js} +1 -1
  944. package/dist/esm/{vi-3b2932a4.js → vi-7c08b92c.js} +17 -17
  945. package/dist/esm/{zh-cn-562b60d3.js → zh-cn-8f1a7d47.js} +17 -17
  946. package/dist/esm/{zh-hk-2e68f5ea.js → zh-hk-a7017b19.js} +17 -17
  947. package/dist/esm/{zh-tw-280a45f6.js → zh-tw-24c2f938.js} +17 -17
  948. package/dist/extras/docs-json.json +11 -11
  949. package/dist/extras/vscode-data.json +1 -1
  950. package/dist/loader/cdn.js +1 -1
  951. package/dist/loader/index.cjs.js +1 -1
  952. package/dist/loader/index.es2017.js +1 -1
  953. package/dist/loader/index.js +1 -1
  954. package/dist/types/components/block/resources.d.ts +1 -0
  955. package/dist/types/components/table/table.d.ts +4 -4
  956. package/hydrate/index.js +11 -10
  957. package/package.json +2 -2
  958. package/dist/calcite/p-026fef34.js +0 -6
  959. package/dist/calcite/p-08afe35a.js +0 -6
  960. package/dist/calcite/p-5b6665f1.entry.js +0 -6
  961. package/dist/calcite/p-69437789.entry.js +0 -6
  962. package/dist/calcite/p-78e95958.entry.js +0 -6
  963. package/dist/calcite/p-887f8437.js +0 -6
  964. package/dist/calcite/p-913b6fba.entry.js +0 -6
  965. package/dist/calcite/p-982a4d8f.js +0 -6
  966. package/dist/calcite/p-9b128824.js +0 -6
  967. package/dist/calcite/p-a9eac3bc.js +0 -6
  968. package/dist/calcite/p-ba35cf0f.entry.js +0 -6
  969. package/dist/calcite/p-bb6a747f.entry.js +0 -6
  970. package/dist/calcite/p-c90104c7.js +0 -6
  971. package/dist/calcite/p-cbd2de0a.entry.js +0 -6
  972. package/dist/calcite/p-cbde759f.entry.js +0 -6
  973. package/dist/calcite/p-e357d0e0.entry.js +0 -6
  974. package/dist/calcite/p-f68ba10d.js +0 -6
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
- * v1.7.0
4
+ * v1.7.1-next.1
5
5
  */
6
- import{r as e,c as t,h as a,H as i,a as r,F as s}from"./p-142a242d.js";import{j as o,c as n,e as c,g as h,h as d,f as l,s as g,k as u,i as p,l as v,n as f,p as w,m as y,o as b}from"./p-026fef34.js";import{c as x,s as m,a as k}from"./p-f68ba10d.js";import{c as D,d as z,n as C,b as A}from"./p-509dbd5a.js";import{c as I,d as S,s as j,u as M}from"./p-887f8437.js";import{c as P,g as H,t as O}from"./p-45d8c8ac.js";import{c as R,u as _,d as L}from"./p-847d1270.js";import{i as W}from"./p-4b763869.js";import{C as Y}from"./p-e5526dbf.js";import{H as E}from"./p-c90104c7.js";import"./p-5b034d91.js";import"./p-382edd21.js";import"./p-7c081cef.js";const N={dateStyle:"full"},F=class{constructor(a){e(this,a),this.calciteDatePickerChange=t(this,"calciteDatePickerChange",6),this.calciteDatePickerRangeChange=t(this,"calciteDatePickerRangeChange",6),this.keyDownHandler=e=>{"Escape"===e.key&&this.resetActiveDates()},this.monthHeaderSelectChange=e=>{const t=new Date(e.detail);this.range?("end"===this.activeRange?this.activeEndDate=t:this.activeStartDate=t,this.mostRecentRangeValue=t):this.activeDate=t},this.monthActiveDateChange=e=>{const t=new Date(e.detail);this.range?("end"===this.activeRange?this.activeEndDate=t:this.activeStartDate=t,this.mostRecentRangeValue=t):this.activeDate=t},this.monthHoverChange=e=>{if(!this.range)return void(this.hoverRange=void 0);const{valueAsDate:t}=this,a=Array.isArray(t)&&t[0],i=Array.isArray(t)&&t[1],r=new Date(e.detail);if(this.hoverRange={focused:this.activeRange||"start",start:a,end:i},this.proximitySelectionDisabled)i?this.hoverRange=void 0:r<a?this.hoverRange={focused:"start",start:r,end:a}:(this.hoverRange.end=r,this.hoverRange.focused="end");else if(i){const e=o(r,a),t=o(r,i);t>0?(this.hoverRange.end=r,this.hoverRange.focused="end"):e<0||e>t?(this.hoverRange.start=r,this.hoverRange.focused="start"):(this.hoverRange.end=r,this.hoverRange.focused="end")}else a&&(r<a?this.hoverRange={focused:"start",start:r,end:a}:(this.hoverRange.end=r,this.hoverRange.focused="end"));e.stopPropagation()},this.monthMouseOutChange=()=>{this.hoverRange&&(this.hoverRange=void 0)},this.resetActiveDates=()=>{const{valueAsDate:e}=this;!Array.isArray(e)&&e&&e!==this.activeDate&&(this.activeDate=new Date(e)),Array.isArray(e)&&(e[0]&&e[0]!==this.activeStartDate&&(this.activeStartDate=new Date(e[0])),e[1]&&e[1]!==this.activeEndDate&&(this.activeEndDate=new Date(e[1])))},this.monthDateChange=e=>{const t=new Date(e.detail),a=n(t);if(!this.range&&a===n(this.valueAsDate))return;if(!this.range)return this.value=a||"",this.valueAsDate=t||null,this.activeDate=t||null,void this.calciteDatePickerChange.emit();const i=this.getStartDate(),r=this.getEndDate();if(!i||!r&&t<i)i&&this.setEndDate(new Date(i)),"end"==this.activeRange?this.setEndDate(t):this.setStartDate(t);else if(r)if(this.proximitySelectionDisabled)this.setStartDate(t);else if(this.activeRange)"end"==this.activeRange?this.setEndDate(t):this.setStartDate(t);else{const e=o(t,i),a=o(t,r);0===a||e<0?this.setStartDate(t):0===e||a<0?this.setEndDate(t):e<a?this.setStartDate(t):this.setEndDate(t)}else this.setEndDate(t);this.calciteDatePickerChange.emit()},this.activeDate=void 0,this.activeRange=void 0,this.value=void 0,this.headingLevel=void 0,this.valueAsDate=void 0,this.minAsDate=void 0,this.maxAsDate=void 0,this.min=void 0,this.max=void 0,this.numberingSystem=void 0,this.scale="m",this.range=!1,this.proximitySelectionDisabled=!1,this.messageOverrides=void 0,this.messages=void 0,this.activeEndDate=void 0,this.activeStartDate=void 0,this.dateTimeFormat=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.endAsDate=void 0,this.hoverRange=void 0,this.localeData=void 0,this.mostRecentRangeValue=void 0,this.startAsDate=void 0}activeDateWatcher(e){"end"===this.activeRange&&(this.activeEndDate=e)}valueAsDateWatcher(e){if(this.range&&Array.isArray(e)){const{activeStartDate:t,activeEndDate:a}=this,i=e[0],r=e[1];this.activeStartDate=t!==i&&i,this.activeEndDate=a!==r&&r}else e&&e!==this.activeDate&&(this.activeDate=e)}onMinChanged(e){e&&(this.minAsDate=c(e))}onMaxChanged(e){e&&(this.maxAsDate=c(e))}onMessagesChange(){}async setFocus(){await x(this),this.el.focus()}async reset(){this.resetActiveDates(),this.mostRecentRangeValue=void 0}connectedCallback(){D(this),I(this),Array.isArray(this.value)?this.valueAsDate=h(this.value):this.value&&(this.valueAsDate=c(this.value)),this.min&&(this.minAsDate=c(this.min)),this.max&&(this.maxAsDate=c(this.max))}disconnectedCallback(){z(this),S(this)}async componentWillLoad(){m(this),await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max),await j(this)}componentDidLoad(){k(this)}render(){const e=d(this.range&&Array.isArray(this.valueAsDate)?this.valueAsDate[0]:this.valueAsDate,this.minAsDate,this.maxAsDate);let t=this.getActiveDate(e,this.minAsDate,this.maxAsDate);const r=this.range&&Array.isArray(this.valueAsDate)?d(this.valueAsDate[1],this.minAsDate,this.maxAsDate):null,s=this.getActiveEndDate(r,this.minAsDate,this.maxAsDate);return"end"!==this.activeRange&&("end"!==this.hoverRange?.focused||this.proximitySelectionDisabled&&!r)||!s||(t=s),this.range&&this.mostRecentRangeValue&&(t=this.mostRecentRangeValue),a(i,{onBlur:this.resetActiveDates,onKeyDown:this.keyDownHandler},this.renderCalendar(t,this.range&&this.activeRange&&"start"===this.activeRange&&r||this.maxAsDate,this.range&&this.activeRange?"start"===this.activeRange?this.minAsDate:e||this.minAsDate:this.minAsDate,e,r))}effectiveLocaleChange(){M(this,this.effectiveLocale)}valueHandler(e){Array.isArray(e)?this.valueAsDate=h(e):e&&(this.valueAsDate=c(e))}async loadLocaleData(){C.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1},this.localeData=await l(this.effectiveLocale),this.dateTimeFormat=A(this.effectiveLocale,N)}renderCalendar(e,t,i,r,s){return this.localeData&&[a("calcite-date-picker-month-header",{activeDate:e,headingLevel:this.headingLevel||2,localeData:this.localeData,max:t,messages:this.messages,min:i,onCalciteInternalDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r||new Date}),a("calcite-date-picker-month",{activeDate:e,dateTimeFormat:this.dateTimeFormat,endDate:this.range?s:void 0,hoverRange:this.hoverRange,localeData:this.localeData,max:t,min:i,onCalciteInternalDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteInternalDatePickerHover:this.monthHoverChange,onCalciteInternalDatePickerMouseOut:this.monthMouseOutChange,onCalciteInternalDatePickerSelect:this.monthDateChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r,startDate:this.range?r:void 0})]}getEndDate(){return Array.isArray(this.valueAsDate)&&this.valueAsDate[1]||void 0}setEndDate(e){const t=this.getStartDate(),a=e?g(e):e;this.value=[n(t),n(e)],this.valueAsDate=[t,e],this.mostRecentRangeValue=a,this.calciteDatePickerRangeChange.emit(),this.activeEndDate=e||null}getStartDate(){return Array.isArray(this.valueAsDate)&&this.valueAsDate[0]}setStartDate(e){const t=this.getEndDate();this.value=[n(e),n(t)],this.valueAsDate=[e,t],this.mostRecentRangeValue=e,this.calciteDatePickerRangeChange.emit(),this.activeStartDate=e||null}getActiveDate(e,t,a){return d(this.activeDate,t,a)||e||d(new Date,t,a)}getActiveEndDate(e,t,a){return d(this.activeEndDate,t,a)||e||d(new Date,t,a)}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return r(this)}static get watchers(){return{activeDate:["activeDateWatcher"],valueAsDate:["valueAsDateWatcher"],min:["onMinChanged"],max:["onMaxChanged"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange","loadLocaleData"],value:["valueHandler"]}}};F.style=":host{position:relative;display:inline-block;inline-size:100%;overflow:visible;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1);vertical-align:top}:host([scale=s]){max-inline-size:216px}:host([scale=m]){max-inline-size:286px}:host([scale=l]){max-inline-size:398px}:host([hidden]){display:none}[hidden]{display:none}";const K=class{constructor(a){e(this,a),this.calciteDaySelect=t(this,"calciteDaySelect",6),this.calciteInternalDayHover=t(this,"calciteInternalDayHover",6),this.onClick=()=>{this.disabled||this.calciteDaySelect.emit()},this.keyDownHandler=e=>{W(e.key)&&(!this.disabled&&this.calciteDaySelect.emit(),e.preventDefault())},this.day=void 0,this.dateTimeFormat=void 0,this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.rangeEdge=void 0,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.scale=void 0,this.value=void 0}pointerOverHandler(){this.disabled||this.calciteInternalDayHover.emit()}componentWillLoad(){this.parentDatePickerEl=P(this.el,"calcite-date-picker")}render(){const e=n(this.value).replaceAll("-","");if(this.parentDatePickerEl){const{numberingSystem:e,lang:t}=this.parentDatePickerEl;C.numberFormatOptions={useGrouping:!1,...e&&{numberingSystem:e},...t&&{locale:t}}}const t=C.localize(String(this.day)),r=H(this.el),s=this.dateTimeFormat.format(this.value);return a(i,{"aria-disabled":O(this.disabled),"aria-label":s,"aria-selected":O(this.active),id:e,onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"button"},a("div",{"aria-hidden":"true",class:{"day-v-wrapper":!0,[Y.rtl]:"rtl"===r}},a("div",{class:"day-wrapper"},a("span",{class:"day"},a("span",{class:"text"},t)))))}connectedCallback(){R(this)}componentDidRender(){_(this,this.isTabbable)}disconnectedCallback(){L(this)}isTabbable(){return this.active}get el(){return r(this)}};K.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;cursor:pointer;color:var(--calcite-ui-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{flex:1 1 auto}.day-wrapper{display:flex;flex-direction:column;align-items:center}.day{display:flex;align-items:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;box-shadow:0 0 0 2px transparent}.text{margin-block:1px 0px;margin-inline-start:0px}:host([scale=s]) .day-v-wrapper{padding-block:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{block-size:27px;inline-size:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-block:0.25rem}:host([scale=m]) .day-wrapper{padding-inline:0.25rem}:host([scale=m]) .day{block-size:33px;inline-size:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-block:0.25rem}:host([scale=l]) .day-wrapper{padding-inline:0.25rem}:host([scale=l]) .day{block-size:43px;inline-size:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) .day-wrapper{border-start-start-radius:40%;border-end-start-radius:40%}:host([end-of-range]) .day-wrapper{border-start-end-radius:40%;border-end-end-radius:40%}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .day{opacity:1}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range]:not(:focus)) .calcite--rtl .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0px}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--start) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--end) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([range-hover][range-edge=start]) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([scale=s][range-hover][range-edge=start]) .calcite--rtl .day-wrapper{box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([scale=s][range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([scale=l][range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted][range-edge=start]) .day-wrapper,:host([range-hover][range-edge=start]) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted][range-edge=end]) .day-wrapper,:host([range-hover][range-edge=end]) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([scale=l][range-hover][range-edge=start]) .calcite--rtl .day-wrapper{box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{border-radius:0px}:host([selected]){outline:2px solid canvasText}:host([selected]) .day{border-radius:0px;background-color:highlight}:host([range][selected]) .day-wrapper,:host([highlighted]) .day-wrapper,:host([range-hover]:not([selected])) .day-wrapper{background-color:highlight}:host([range][selected][start-of-range]) .day-wrapper,:host([range][selected][end-of-range]) .day-wrapper{background-color:canvas}}:host([hidden]){display:none}[hidden]{display:none}";const T=class{constructor(a){e(this,a),this.calciteInternalDatePickerSelect=t(this,"calciteInternalDatePickerSelect",6),this.calciteInternalDatePickerHover=t(this,"calciteInternalDatePickerHover",6),this.calciteInternalDatePickerActiveDateChange=t(this,"calciteInternalDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=t(this,"calciteInternalDatePickerMouseOut",6),this.keyDownHandler=e=>{if(e.defaultPrevented)return;const t="rtl"===this.el.dir;switch(e.key){case"ArrowUp":e.preventDefault(),this.addDays(-7);break;case"ArrowRight":e.preventDefault(),this.addDays(t?-1:1);break;case"ArrowDown":e.preventDefault(),this.addDays(7);break;case"ArrowLeft":e.preventDefault(),this.addDays(t?1:-1);break;case"PageUp":e.preventDefault(),this.addMonths(-1);break;case"PageDown":e.preventDefault(),this.addMonths(1);break;case"Home":e.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":e.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=e=>{const t=e.target;t.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(t.value),e.stopPropagation()},this.daySelect=e=>{this.calciteInternalDatePickerSelect.emit(e.target.value)},this.dateTimeFormat=void 0,this.selectedDate=void 0,this.activeDate=new Date,this.startDate=void 0,this.endDate=void 0,this.min=void 0,this.max=void 0,this.scale=void 0,this.localeData=void 0,this.hoverRange=void 0}pointerOutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const e=this.activeDate.getMonth(),t=this.activeDate.getFullYear(),r=this.localeData.weekStart%7,{abbreviated:s,short:o,narrow:n}=this.localeData.days,c="s"===this.scale?n||o||s:o||s||n,h=[...c.slice(r,7),...c.slice(0,r)],d=this.getCurrentMonthDays(e,t),l=this.getPreviousMonthDays(e,t,r),g=this.getNextMonthDays(e,t,r);let p=0;const v=()=>p++%7,f=[...l.map((a=>({active:!1,day:a,dayInWeek:v(),date:new Date(t,e-1,a)}))),...d.map((a=>{const i=new Date(t,e,a);return{active:u(i,this.activeDate),currentMonth:!0,day:a,dayInWeek:v(),date:i,ref:!0}})),...g.map((a=>({active:!1,day:a,dayInWeek:v(),date:new Date(t,e+1,a)})))],w=[];for(let e=0;e<f.length;e+=7)w.push(f.slice(e,e+7));return a(i,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},a("div",{class:"calendar",role:"grid"},a("div",{class:"week-headers",role:"row"},h.map((e=>a("span",{class:"week-header",role:"columnheader"},e)))),w.map((e=>a("div",{class:"week-days",role:"row"},e.map((e=>this.renderDateDay(e))))))))}addMonths(e){const t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e),this.calciteInternalDatePickerActiveDateChange.emit(d(t,this.min,this.max)),this.activeFocus=!0}addDays(e=0){const t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e),this.calciteInternalDatePickerActiveDateChange.emit(d(t,this.min,this.max)),this.activeFocus=!0}getPreviousMonthDays(e,t,a){const i=new Date(t,e,0),r=i.getDate(),s=i.getDay(),o=[];if(s===(a+6)%7)return o;if(s===a)return[r];for(let e=(7+s-a)%7;e>=0;e--)o.push(r-e);return o}getCurrentMonthDays(e,t){const a=new Date(t,e+1,0).getDate(),i=[];for(let e=0;e<a;e++)i.push(e+1);return i}getNextMonthDays(e,t,a){const i=new Date(t,e+1,0).getDay(),r=[];if(i===(a+6)%7)return r;for(let e=0;e<(6-(i-a))%7;e++)r.push(e+1);return r}betweenSelectedRange(e){return!(!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate)||this.isRangeHover(e))}isSelected(e){return!!(u(e,this.selectedDate)||this.startDate&&u(e,this.startDate)||this.endDate&&u(e,this.endDate))}isStartOfRange(e){return!(!this.startDate||u(this.startDate,this.endDate)||!u(this.startDate,e)||this.isEndOfRange(e))}isEndOfRange(e){return!!(this.endDate&&!u(this.startDate,this.endDate)&&u(this.endDate,e)||!this.endDate&&this.hoverRange&&u(this.startDate,this.hoverRange.end)&&u(e,this.hoverRange.end))}renderDateDay({active:e,currentMonth:t,date:i,day:r,dayInWeek:s,ref:o}){const n=this.isFocusedOnStart(),c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&u(this.hoverRange?.end,this.startDate);return a("div",{class:"day",key:i.toDateString(),role:"gridcell"},a("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":n,"focused--end":!n},currentMonth:t,dateTimeFormat:this.dateTimeFormat,day:r,disabled:!p(i,this.min,this.max),endOfRange:this.isEndOfRange(i),highlighted:this.betweenSelectedRange(i),onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!u(this.startDate,this.endDate),rangeEdge:0===s?"start":6===s?"end":void 0,rangeHover:this.isRangeHover(i),scale:this.scale,selected:this.isSelected(i),startOfRange:this.isStartOfRange(i),value:i,ref:t=>{o&&e&&this.activeFocus&&t?.focus()}}))}isFocusedOnStart(){return"start"===this.hoverRange?.focused}isHoverInRange(){if(!this.hoverRange)return!1;const{start:e,end:t}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||t<this.endDate)||this.isFocusedOnStart()&&this.startDate&&e>this.startDate)}isRangeHover(e){if(!this.hoverRange)return!1;const{start:t,end:a}=this.hoverRange,i=this.isFocusedOnStart(),r=this.isHoverInRange(),s=r&&(!i&&e>this.startDate&&(e<a||u(e,a))||i&&e<this.endDate&&(e>t||u(e,t))),o=!r&&(!i&&e>=this.endDate&&(e<a||u(e,a))||i&&(this.startDate&&e<this.startDate||this.endDate&&u(e,this.startDate))&&(t&&e>t||u(e,t)));return s||o}get el(){return r(this)}};T.style=":host([hidden]){display:none}[hidden]{display:none}.calendar{margin-block-end:0.25rem}.week-headers{display:flex;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;padding-inline:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);inline-size:14.2857142857%}.day{display:flex;min-inline-size:0px;justify-content:center;inline-size:14.2857142857%}:host([scale=s]) .week-header{padding-inline:0px;padding-block:0.5rem 0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-inline:0px;padding-block:0.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-inline:0px;padding-block:1rem 1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:flex;flex-direction:row;padding-block:0px;padding-inline:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";const $="chevron",G=class{constructor(a){e(this,a),this.calciteInternalDatePickerSelect=t(this,"calciteInternalDatePickerSelect",6),this.onYearKey=e=>{const t=this.parseCalendarYear(e.target.value);switch(e.key){case"ArrowDown":e.preventDefault(),this.setYear({localizedYear:t,offset:-1});break;case"ArrowUp":e.preventDefault(),this.setYear({localizedYear:t,offset:1})}},this.onYearChange=e=>{this.setYear({localizedYear:this.parseCalendarYear(e.target.value)})},this.onYearInput=e=>{this.setYear({localizedYear:this.parseCalendarYear(e.target.value),commit:!1})},this.prevMonthClick=e=>{this.handleArrowClick(e,this.prevMonthDate)},this.prevMonthKeydown=e=>{W(e.key)&&this.prevMonthClick(e)},this.nextMonthClick=e=>{this.handleArrowClick(e,this.nextMonthDate)},this.nextMonthKeydown=e=>{W(e.key)&&this.nextMonthClick(e)},this.handleArrowClick=(e,t)=>{e.preventDefault(),this.calciteInternalDatePickerSelect.emit(t)},this.selectedDate=void 0,this.activeDate=void 0,this.headingLevel=void 0,this.min=void 0,this.max=void 0,this.scale=void 0,this.localeData=void 0,this.messages=void 0,this.nextMonthDate=void 0,this.prevMonthDate=void 0}componentWillLoad(){this.parentDatePickerEl=P(this.el,"calcite-date-picker")}connectedCallback(){this.setNextPrevMonthDates()}render(){return a("div",{class:"header"},this.renderContent())}renderContent(){const{messages:e,localeData:t,activeDate:i}=this;if(!i||!t)return null;if(this.parentDatePickerEl){const{numberingSystem:e,lang:t}=this.parentDatePickerEl;C.numberFormatOptions={useGrouping:!1,...e&&{numberingSystem:e},...t&&{locale:t}}}const r=i.getMonth(),{months:o,unitOrder:n}=t,c=(o.wide||o.narrow||o.abbreviated)[r],h=this.formatCalendarYear(i.getFullYear()),d="l"===this.scale?"m":"s",l=v(n),g=l.indexOf("y")<l.indexOf("m"),u=t.year?.suffix;return a(s,null,a("a",{"aria-disabled":`${this.prevMonthDate.getMonth()===r}`,"aria-label":e.prevMonth,class:$,href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===r?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-left",scale:d})),a("div",{class:{text:!0,"text--reverse":g}},a(E,{class:"month",level:this.headingLevel},c),a("span",{class:"year-wrap"},a("input",{"aria-label":e.year,class:{year:!0,"year--suffix":!!u},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.onYearChange,onInput:this.onYearInput,onKeyDown:this.onYearKey,pattern:"\\d*",type:"text",value:h,ref:e=>this.yearInput=e}),u&&a("span",{class:"suffix"},u))),a("a",{"aria-disabled":`${this.nextMonthDate.getMonth()===r}`,"aria-label":e.nextMonth,class:$,href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===r?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-right",scale:d})))}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=d(f(this.activeDate),this.min,this.max),this.prevMonthDate=d(w(this.activeDate),this.min,this.max))}formatCalendarYear(e){return C.localize(`${y(e,this.localeData)}`)}parseCalendarYear(e){return C.localize(`${b(Number(C.delocalize(e)),this.localeData)}`)}getInRangeDate({localizedYear:e,offset:t=0}){const{min:a,max:i,activeDate:r}=this,s=Number(C.delocalize(e)),o=s.toString().length,n=!isNaN(s)&&s+t,c=n&&(!a||a.getFullYear()<=n)&&(!i||i.getFullYear()>=n);if(n&&c&&o===e.length){const e=new Date(r);return e.setFullYear(n),d(e,a,i)}}setYear({localizedYear:e,commit:t=!0,offset:a=0}){const{yearInput:i,activeDate:r}=this,s=this.getInRangeDate({localizedYear:e,offset:a});s&&this.calciteInternalDatePickerSelect.emit(s),t&&(i.value=this.formatCalendarYear((s||r).getFullYear()))}get el(){return r(this)}static get watchers(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}}};G.style=":host{display:block}.header{display:flex;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}:host([scale=s]) .text{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{block-size:2.25rem}:host([scale=m]) .text{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{block-size:3rem}:host([scale=l]) .text{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{block-size:3.5rem}.chevron{margin-inline:-0.25rem;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.chevron:hover,.chevron:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{margin-block:auto;display:flex;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:center;text-align:center;line-height:1}.text--reverse{flex-direction:row-reverse}.month,.year,.suffix{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}.year{position:relative;inline-size:2.5rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent}.year:hover{transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.year--suffix{text-align:start}.year-wrap{position:relative}.suffix{inset-block-start:0px;white-space:nowrap;text-align:start;inset-inline-start:0}:host([hidden]){display:none}[hidden]{display:none}";export{F as calcite_date_picker,K as calcite_date_picker_day,T as calcite_date_picker_month,G as calcite_date_picker_month_header}
6
+ import{r as e,c as t,h as a,H as i,a as r,F as s}from"./p-c6009ee9.js";import{j as o,c as n,e as c,g as h,h as d,f as l,s as g,k as u,i as p,l as v,n as f,p as w,m as y,o as b}from"./p-69574303.js";import{c as x,s as m,a as k}from"./p-5acf2842.js";import{c as D,d as z,n as C,b as A}from"./p-261d319c.js";import{c as I,d as S,s as j,u as M}from"./p-623921b4.js";import{c as P,g as H,t as O}from"./p-52c73926.js";import{c as R,u as _,d as L}from"./p-e346bbb8.js";import{i as W}from"./p-154261e7.js";import{C as Y}from"./p-68d264c9.js";import{H as E}from"./p-33f958c1.js";import"./p-9dca62f6.js";import"./p-935ab417.js";import"./p-20af09cf.js";const N={dateStyle:"full"},F=class{constructor(a){e(this,a),this.calciteDatePickerChange=t(this,"calciteDatePickerChange",6),this.calciteDatePickerRangeChange=t(this,"calciteDatePickerRangeChange",6),this.keyDownHandler=e=>{"Escape"===e.key&&this.resetActiveDates()},this.monthHeaderSelectChange=e=>{const t=new Date(e.detail);this.range?("end"===this.activeRange?this.activeEndDate=t:this.activeStartDate=t,this.mostRecentRangeValue=t):this.activeDate=t},this.monthActiveDateChange=e=>{const t=new Date(e.detail);this.range?("end"===this.activeRange?this.activeEndDate=t:this.activeStartDate=t,this.mostRecentRangeValue=t):this.activeDate=t},this.monthHoverChange=e=>{if(!this.range)return void(this.hoverRange=void 0);const{valueAsDate:t}=this,a=Array.isArray(t)&&t[0],i=Array.isArray(t)&&t[1],r=new Date(e.detail);if(this.hoverRange={focused:this.activeRange||"start",start:a,end:i},this.proximitySelectionDisabled)i?this.hoverRange=void 0:r<a?this.hoverRange={focused:"start",start:r,end:a}:(this.hoverRange.end=r,this.hoverRange.focused="end");else if(i){const e=o(r,a),t=o(r,i);t>0?(this.hoverRange.end=r,this.hoverRange.focused="end"):e<0||e>t?(this.hoverRange.start=r,this.hoverRange.focused="start"):(this.hoverRange.end=r,this.hoverRange.focused="end")}else a&&(r<a?this.hoverRange={focused:"start",start:r,end:a}:(this.hoverRange.end=r,this.hoverRange.focused="end"));e.stopPropagation()},this.monthMouseOutChange=()=>{this.hoverRange&&(this.hoverRange=void 0)},this.resetActiveDates=()=>{const{valueAsDate:e}=this;!Array.isArray(e)&&e&&e!==this.activeDate&&(this.activeDate=new Date(e)),Array.isArray(e)&&(e[0]&&e[0]!==this.activeStartDate&&(this.activeStartDate=new Date(e[0])),e[1]&&e[1]!==this.activeEndDate&&(this.activeEndDate=new Date(e[1])))},this.monthDateChange=e=>{const t=new Date(e.detail),a=n(t);if(!this.range&&a===n(this.valueAsDate))return;if(!this.range)return this.value=a||"",this.valueAsDate=t||null,this.activeDate=t||null,void this.calciteDatePickerChange.emit();const i=this.getStartDate(),r=this.getEndDate();if(!i||!r&&t<i)i&&this.setEndDate(new Date(i)),"end"==this.activeRange?this.setEndDate(t):this.setStartDate(t);else if(r)if(this.proximitySelectionDisabled)this.setStartDate(t);else if(this.activeRange)"end"==this.activeRange?this.setEndDate(t):this.setStartDate(t);else{const e=o(t,i),a=o(t,r);0===a||e<0?this.setStartDate(t):0===e||a<0?this.setEndDate(t):e<a?this.setStartDate(t):this.setEndDate(t)}else this.setEndDate(t);this.calciteDatePickerChange.emit()},this.activeDate=void 0,this.activeRange=void 0,this.value=void 0,this.headingLevel=void 0,this.valueAsDate=void 0,this.minAsDate=void 0,this.maxAsDate=void 0,this.min=void 0,this.max=void 0,this.numberingSystem=void 0,this.scale="m",this.range=!1,this.proximitySelectionDisabled=!1,this.messageOverrides=void 0,this.messages=void 0,this.activeEndDate=void 0,this.activeStartDate=void 0,this.dateTimeFormat=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.endAsDate=void 0,this.hoverRange=void 0,this.localeData=void 0,this.mostRecentRangeValue=void 0,this.startAsDate=void 0}activeDateWatcher(e){"end"===this.activeRange&&(this.activeEndDate=e)}valueAsDateWatcher(e){if(this.range&&Array.isArray(e)){const{activeStartDate:t,activeEndDate:a}=this,i=e[0],r=e[1];this.activeStartDate=t!==i&&i,this.activeEndDate=a!==r&&r}else e&&e!==this.activeDate&&(this.activeDate=e)}onMinChanged(e){e&&(this.minAsDate=c(e))}onMaxChanged(e){e&&(this.maxAsDate=c(e))}onMessagesChange(){}async setFocus(){await x(this),this.el.focus()}async reset(){this.resetActiveDates(),this.mostRecentRangeValue=void 0}connectedCallback(){D(this),I(this),Array.isArray(this.value)?this.valueAsDate=h(this.value):this.value&&(this.valueAsDate=c(this.value)),this.min&&(this.minAsDate=c(this.min)),this.max&&(this.maxAsDate=c(this.max))}disconnectedCallback(){z(this),S(this)}async componentWillLoad(){m(this),await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max),await j(this)}componentDidLoad(){k(this)}render(){const e=d(this.range&&Array.isArray(this.valueAsDate)?this.valueAsDate[0]:this.valueAsDate,this.minAsDate,this.maxAsDate);let t=this.getActiveDate(e,this.minAsDate,this.maxAsDate);const r=this.range&&Array.isArray(this.valueAsDate)?d(this.valueAsDate[1],this.minAsDate,this.maxAsDate):null,s=this.getActiveEndDate(r,this.minAsDate,this.maxAsDate);return"end"!==this.activeRange&&("end"!==this.hoverRange?.focused||this.proximitySelectionDisabled&&!r)||!s||(t=s),this.range&&this.mostRecentRangeValue&&(t=this.mostRecentRangeValue),a(i,{onBlur:this.resetActiveDates,onKeyDown:this.keyDownHandler},this.renderCalendar(t,this.range&&this.activeRange&&"start"===this.activeRange&&r||this.maxAsDate,this.range&&this.activeRange?"start"===this.activeRange?this.minAsDate:e||this.minAsDate:this.minAsDate,e,r))}effectiveLocaleChange(){M(this,this.effectiveLocale)}valueHandler(e){Array.isArray(e)?this.valueAsDate=h(e):e&&(this.valueAsDate=c(e))}async loadLocaleData(){C.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1},this.localeData=await l(this.effectiveLocale),this.dateTimeFormat=A(this.effectiveLocale,N)}renderCalendar(e,t,i,r,s){return this.localeData&&[a("calcite-date-picker-month-header",{activeDate:e,headingLevel:this.headingLevel||2,localeData:this.localeData,max:t,messages:this.messages,min:i,onCalciteInternalDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r||new Date}),a("calcite-date-picker-month",{activeDate:e,dateTimeFormat:this.dateTimeFormat,endDate:this.range?s:void 0,hoverRange:this.hoverRange,localeData:this.localeData,max:t,min:i,onCalciteInternalDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteInternalDatePickerHover:this.monthHoverChange,onCalciteInternalDatePickerMouseOut:this.monthMouseOutChange,onCalciteInternalDatePickerSelect:this.monthDateChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r,startDate:this.range?r:void 0})]}getEndDate(){return Array.isArray(this.valueAsDate)&&this.valueAsDate[1]||void 0}setEndDate(e){const t=this.getStartDate(),a=e?g(e):e;this.value=[n(t),n(e)],this.valueAsDate=[t,e],this.mostRecentRangeValue=a,this.calciteDatePickerRangeChange.emit(),this.activeEndDate=e||null}getStartDate(){return Array.isArray(this.valueAsDate)&&this.valueAsDate[0]}setStartDate(e){const t=this.getEndDate();this.value=[n(e),n(t)],this.valueAsDate=[e,t],this.mostRecentRangeValue=e,this.calciteDatePickerRangeChange.emit(),this.activeStartDate=e||null}getActiveDate(e,t,a){return d(this.activeDate,t,a)||e||d(new Date,t,a)}getActiveEndDate(e,t,a){return d(this.activeEndDate,t,a)||e||d(new Date,t,a)}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return r(this)}static get watchers(){return{activeDate:["activeDateWatcher"],valueAsDate:["valueAsDateWatcher"],min:["onMinChanged"],max:["onMaxChanged"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange","loadLocaleData"],value:["valueHandler"]}}};F.style=":host{position:relative;display:inline-block;inline-size:100%;overflow:visible;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1);vertical-align:top}:host([scale=s]){max-inline-size:216px}:host([scale=m]){max-inline-size:286px}:host([scale=l]){max-inline-size:398px}:host([hidden]){display:none}[hidden]{display:none}";const K=class{constructor(a){e(this,a),this.calciteDaySelect=t(this,"calciteDaySelect",6),this.calciteInternalDayHover=t(this,"calciteInternalDayHover",6),this.onClick=()=>{this.disabled||this.calciteDaySelect.emit()},this.keyDownHandler=e=>{W(e.key)&&(!this.disabled&&this.calciteDaySelect.emit(),e.preventDefault())},this.day=void 0,this.dateTimeFormat=void 0,this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.rangeEdge=void 0,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.scale=void 0,this.value=void 0}pointerOverHandler(){this.disabled||this.calciteInternalDayHover.emit()}componentWillLoad(){this.parentDatePickerEl=P(this.el,"calcite-date-picker")}render(){const e=n(this.value).replaceAll("-","");if(this.parentDatePickerEl){const{numberingSystem:e,lang:t}=this.parentDatePickerEl;C.numberFormatOptions={useGrouping:!1,...e&&{numberingSystem:e},...t&&{locale:t}}}const t=C.localize(String(this.day)),r=H(this.el),s=this.dateTimeFormat.format(this.value);return a(i,{"aria-disabled":O(this.disabled),"aria-label":s,"aria-selected":O(this.active),id:e,onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"button"},a("div",{"aria-hidden":"true",class:{"day-v-wrapper":!0,[Y.rtl]:"rtl"===r}},a("div",{class:"day-wrapper"},a("span",{class:"day"},a("span",{class:"text"},t)))))}connectedCallback(){R(this)}componentDidRender(){_(this,this.isTabbable)}disconnectedCallback(){L(this)}isTabbable(){return this.active}get el(){return r(this)}};K.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;cursor:pointer;color:var(--calcite-ui-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{flex:1 1 auto}.day-wrapper{display:flex;flex-direction:column;align-items:center}.day{display:flex;align-items:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;box-shadow:0 0 0 2px transparent}.text{margin-block:1px 0px;margin-inline-start:0px}:host([scale=s]) .day-v-wrapper{padding-block:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{block-size:27px;inline-size:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-block:0.25rem}:host([scale=m]) .day-wrapper{padding-inline:0.25rem}:host([scale=m]) .day{block-size:33px;inline-size:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-block:0.25rem}:host([scale=l]) .day-wrapper{padding-inline:0.25rem}:host([scale=l]) .day{block-size:43px;inline-size:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) .day-wrapper{border-start-start-radius:40%;border-end-start-radius:40%}:host([end-of-range]) .day-wrapper{border-start-end-radius:40%;border-end-end-radius:40%}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .day{opacity:1}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range]:not(:focus)) .calcite--rtl .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0px}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--start) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--end) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([range-hover][range-edge=start]) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([scale=s][range-hover][range-edge=start]) .calcite--rtl .day-wrapper{box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([scale=s][range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([scale=l][range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted][range-edge=start]) .day-wrapper,:host([range-hover][range-edge=start]) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted][range-edge=end]) .day-wrapper,:host([range-hover][range-edge=end]) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([scale=l][range-hover][range-edge=start]) .calcite--rtl .day-wrapper{box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{border-radius:0px}:host([selected]){outline:2px solid canvasText}:host([selected]) .day{border-radius:0px;background-color:highlight}:host([range][selected]) .day-wrapper,:host([highlighted]) .day-wrapper,:host([range-hover]:not([selected])) .day-wrapper{background-color:highlight}:host([range][selected][start-of-range]) .day-wrapper,:host([range][selected][end-of-range]) .day-wrapper{background-color:canvas}}:host([hidden]){display:none}[hidden]{display:none}";const T=class{constructor(a){e(this,a),this.calciteInternalDatePickerSelect=t(this,"calciteInternalDatePickerSelect",6),this.calciteInternalDatePickerHover=t(this,"calciteInternalDatePickerHover",6),this.calciteInternalDatePickerActiveDateChange=t(this,"calciteInternalDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=t(this,"calciteInternalDatePickerMouseOut",6),this.keyDownHandler=e=>{if(e.defaultPrevented)return;const t="rtl"===this.el.dir;switch(e.key){case"ArrowUp":e.preventDefault(),this.addDays(-7);break;case"ArrowRight":e.preventDefault(),this.addDays(t?-1:1);break;case"ArrowDown":e.preventDefault(),this.addDays(7);break;case"ArrowLeft":e.preventDefault(),this.addDays(t?1:-1);break;case"PageUp":e.preventDefault(),this.addMonths(-1);break;case"PageDown":e.preventDefault(),this.addMonths(1);break;case"Home":e.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":e.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=e=>{const t=e.target;t.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(t.value),e.stopPropagation()},this.daySelect=e=>{this.calciteInternalDatePickerSelect.emit(e.target.value)},this.dateTimeFormat=void 0,this.selectedDate=void 0,this.activeDate=new Date,this.startDate=void 0,this.endDate=void 0,this.min=void 0,this.max=void 0,this.scale=void 0,this.localeData=void 0,this.hoverRange=void 0}pointerOutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const e=this.activeDate.getMonth(),t=this.activeDate.getFullYear(),r=this.localeData.weekStart%7,{abbreviated:s,short:o,narrow:n}=this.localeData.days,c="s"===this.scale?n||o||s:o||s||n,h=[...c.slice(r,7),...c.slice(0,r)],d=this.getCurrentMonthDays(e,t),l=this.getPreviousMonthDays(e,t,r),g=this.getNextMonthDays(e,t,r);let p=0;const v=()=>p++%7,f=[...l.map((a=>({active:!1,day:a,dayInWeek:v(),date:new Date(t,e-1,a)}))),...d.map((a=>{const i=new Date(t,e,a);return{active:u(i,this.activeDate),currentMonth:!0,day:a,dayInWeek:v(),date:i,ref:!0}})),...g.map((a=>({active:!1,day:a,dayInWeek:v(),date:new Date(t,e+1,a)})))],w=[];for(let e=0;e<f.length;e+=7)w.push(f.slice(e,e+7));return a(i,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},a("div",{class:"calendar",role:"grid"},a("div",{class:"week-headers",role:"row"},h.map((e=>a("span",{class:"week-header",role:"columnheader"},e)))),w.map((e=>a("div",{class:"week-days",role:"row"},e.map((e=>this.renderDateDay(e))))))))}addMonths(e){const t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e),this.calciteInternalDatePickerActiveDateChange.emit(d(t,this.min,this.max)),this.activeFocus=!0}addDays(e=0){const t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e),this.calciteInternalDatePickerActiveDateChange.emit(d(t,this.min,this.max)),this.activeFocus=!0}getPreviousMonthDays(e,t,a){const i=new Date(t,e,0),r=i.getDate(),s=i.getDay(),o=[];if(s===(a+6)%7)return o;if(s===a)return[r];for(let e=(7+s-a)%7;e>=0;e--)o.push(r-e);return o}getCurrentMonthDays(e,t){const a=new Date(t,e+1,0).getDate(),i=[];for(let e=0;e<a;e++)i.push(e+1);return i}getNextMonthDays(e,t,a){const i=new Date(t,e+1,0).getDay(),r=[];if(i===(a+6)%7)return r;for(let e=0;e<(6-(i-a))%7;e++)r.push(e+1);return r}betweenSelectedRange(e){return!(!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate)||this.isRangeHover(e))}isSelected(e){return!!(u(e,this.selectedDate)||this.startDate&&u(e,this.startDate)||this.endDate&&u(e,this.endDate))}isStartOfRange(e){return!(!this.startDate||u(this.startDate,this.endDate)||!u(this.startDate,e)||this.isEndOfRange(e))}isEndOfRange(e){return!!(this.endDate&&!u(this.startDate,this.endDate)&&u(this.endDate,e)||!this.endDate&&this.hoverRange&&u(this.startDate,this.hoverRange.end)&&u(e,this.hoverRange.end))}renderDateDay({active:e,currentMonth:t,date:i,day:r,dayInWeek:s,ref:o}){const n=this.isFocusedOnStart(),c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&u(this.hoverRange?.end,this.startDate);return a("div",{class:"day",key:i.toDateString(),role:"gridcell"},a("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":n,"focused--end":!n},currentMonth:t,dateTimeFormat:this.dateTimeFormat,day:r,disabled:!p(i,this.min,this.max),endOfRange:this.isEndOfRange(i),highlighted:this.betweenSelectedRange(i),onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!u(this.startDate,this.endDate),rangeEdge:0===s?"start":6===s?"end":void 0,rangeHover:this.isRangeHover(i),scale:this.scale,selected:this.isSelected(i),startOfRange:this.isStartOfRange(i),value:i,ref:t=>{o&&e&&this.activeFocus&&t?.focus()}}))}isFocusedOnStart(){return"start"===this.hoverRange?.focused}isHoverInRange(){if(!this.hoverRange)return!1;const{start:e,end:t}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||t<this.endDate)||this.isFocusedOnStart()&&this.startDate&&e>this.startDate)}isRangeHover(e){if(!this.hoverRange)return!1;const{start:t,end:a}=this.hoverRange,i=this.isFocusedOnStart(),r=this.isHoverInRange(),s=r&&(!i&&e>this.startDate&&(e<a||u(e,a))||i&&e<this.endDate&&(e>t||u(e,t))),o=!r&&(!i&&e>=this.endDate&&(e<a||u(e,a))||i&&(this.startDate&&e<this.startDate||this.endDate&&u(e,this.startDate))&&(t&&e>t||u(e,t)));return s||o}get el(){return r(this)}};T.style=":host([hidden]){display:none}[hidden]{display:none}.calendar{margin-block-end:0.25rem}.week-headers{display:flex;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;padding-inline:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);inline-size:14.2857142857%}.day{display:flex;min-inline-size:0px;justify-content:center;inline-size:14.2857142857%}:host([scale=s]) .week-header{padding-inline:0px;padding-block:0.5rem 0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-inline:0px;padding-block:0.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-inline:0px;padding-block:1rem 1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:flex;flex-direction:row;padding-block:0px;padding-inline:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";const $="chevron",G=class{constructor(a){e(this,a),this.calciteInternalDatePickerSelect=t(this,"calciteInternalDatePickerSelect",6),this.onYearKey=e=>{const t=this.parseCalendarYear(e.target.value);switch(e.key){case"ArrowDown":e.preventDefault(),this.setYear({localizedYear:t,offset:-1});break;case"ArrowUp":e.preventDefault(),this.setYear({localizedYear:t,offset:1})}},this.onYearChange=e=>{this.setYear({localizedYear:this.parseCalendarYear(e.target.value)})},this.onYearInput=e=>{this.setYear({localizedYear:this.parseCalendarYear(e.target.value),commit:!1})},this.prevMonthClick=e=>{this.handleArrowClick(e,this.prevMonthDate)},this.prevMonthKeydown=e=>{W(e.key)&&this.prevMonthClick(e)},this.nextMonthClick=e=>{this.handleArrowClick(e,this.nextMonthDate)},this.nextMonthKeydown=e=>{W(e.key)&&this.nextMonthClick(e)},this.handleArrowClick=(e,t)=>{e.preventDefault(),this.calciteInternalDatePickerSelect.emit(t)},this.selectedDate=void 0,this.activeDate=void 0,this.headingLevel=void 0,this.min=void 0,this.max=void 0,this.scale=void 0,this.localeData=void 0,this.messages=void 0,this.nextMonthDate=void 0,this.prevMonthDate=void 0}componentWillLoad(){this.parentDatePickerEl=P(this.el,"calcite-date-picker")}connectedCallback(){this.setNextPrevMonthDates()}render(){return a("div",{class:"header"},this.renderContent())}renderContent(){const{messages:e,localeData:t,activeDate:i}=this;if(!i||!t)return null;if(this.parentDatePickerEl){const{numberingSystem:e,lang:t}=this.parentDatePickerEl;C.numberFormatOptions={useGrouping:!1,...e&&{numberingSystem:e},...t&&{locale:t}}}const r=i.getMonth(),{months:o,unitOrder:n}=t,c=(o.wide||o.narrow||o.abbreviated)[r],h=this.formatCalendarYear(i.getFullYear()),d="l"===this.scale?"m":"s",l=v(n),g=l.indexOf("y")<l.indexOf("m"),u=t.year?.suffix;return a(s,null,a("a",{"aria-disabled":`${this.prevMonthDate.getMonth()===r}`,"aria-label":e.prevMonth,class:$,href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===r?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-left",scale:d})),a("div",{class:{text:!0,"text--reverse":g}},a(E,{class:"month",level:this.headingLevel},c),a("span",{class:"year-wrap"},a("input",{"aria-label":e.year,class:{year:!0,"year--suffix":!!u},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.onYearChange,onInput:this.onYearInput,onKeyDown:this.onYearKey,pattern:"\\d*",type:"text",value:h,ref:e=>this.yearInput=e}),u&&a("span",{class:"suffix"},u))),a("a",{"aria-disabled":`${this.nextMonthDate.getMonth()===r}`,"aria-label":e.nextMonth,class:$,href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===r?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-right",scale:d})))}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=d(f(this.activeDate),this.min,this.max),this.prevMonthDate=d(w(this.activeDate),this.min,this.max))}formatCalendarYear(e){return C.localize(`${y(e,this.localeData)}`)}parseCalendarYear(e){return C.localize(`${b(Number(C.delocalize(e)),this.localeData)}`)}getInRangeDate({localizedYear:e,offset:t=0}){const{min:a,max:i,activeDate:r}=this,s=Number(C.delocalize(e)),o=s.toString().length,n=!isNaN(s)&&s+t,c=n&&(!a||a.getFullYear()<=n)&&(!i||i.getFullYear()>=n);if(n&&c&&o===e.length){const e=new Date(r);return e.setFullYear(n),d(e,a,i)}}setYear({localizedYear:e,commit:t=!0,offset:a=0}){const{yearInput:i,activeDate:r}=this,s=this.getInRangeDate({localizedYear:e,offset:a});s&&this.calciteInternalDatePickerSelect.emit(s),t&&(i.value=this.formatCalendarYear((s||r).getFullYear()))}get el(){return r(this)}static get watchers(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}}};G.style=":host{display:block}.header{display:flex;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}:host([scale=s]) .text{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{block-size:2.25rem}:host([scale=m]) .text{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{block-size:3rem}:host([scale=l]) .text{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{block-size:3.5rem}.chevron{margin-inline:-0.25rem;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.chevron:hover,.chevron:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{margin-block:auto;display:flex;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:center;text-align:center;line-height:1}.text--reverse{flex-direction:row-reverse}.month,.year,.suffix{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}.year{position:relative;inline-size:2.5rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent}.year:hover{transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.year--suffix{text-align:start}.year-wrap{position:relative}.suffix{inset-block-start:0px;white-space:nowrap;text-align:start;inset-inline-start:0}:host([hidden]){display:none}[hidden]{display:none}";export{F as calcite_date_picker,K as calcite_date_picker_day,T as calcite_date_picker_month,G as calcite_date_picker_month_header}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
+ * v1.7.1-next.1
5
+ */
6
+ import{h as t}from"./p-c6009ee9.js";function e(t){return Math.min(Math.max(Math.ceil(t),1),6)}const r=(e,r)=>{const n=e.level?`h${e.level}`:"div";return delete e.level,t(n,{...e},r)};export{r as H,e as c}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
- * v1.7.0
4
+ * v1.7.1-next.1
5
5
  */
6
- import{d as a}from"./p-f9fceb01.js";import"./p-142a242d.js";import"./p-0e2c75a7.js";import"./p-45d8c8ac.js";import"./p-382edd21.js";import"./p-e5526dbf.js";import"./p-847d1270.js";import"./p-7c081cef.js";import"./p-4b763869.js";import"./p-419aa0f0.js";import"./p-f68ba10d.js";import"./p-509dbd5a.js";import"./p-5b034d91.js";import"./p-cacf7a50.js";import"./p-560d3c04.js";import"./p-887f8437.js";var r={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};a.locale(r,null,!0);export default r;
6
+ import{d as a}from"./p-8e6522b8.js";import"./p-c6009ee9.js";import"./p-e6eae7af.js";import"./p-52c73926.js";import"./p-935ab417.js";import"./p-68d264c9.js";import"./p-e346bbb8.js";import"./p-20af09cf.js";import"./p-154261e7.js";import"./p-b433504b.js";import"./p-5acf2842.js";import"./p-261d319c.js";import"./p-9dca62f6.js";import"./p-25ee0cd3.js";import"./p-4309d48a.js";import"./p-623921b4.js";var r={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};a.locale(r,null,!0);export default r;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
- * v1.7.0
4
+ * v1.7.1-next.1
5
5
  */
6
6
  const e={actionBarContainer:"action-bar-container",backButton:"back-button",container:"container",header:"header",headerContainer:"header-container",headerContainerBorderEnd:"header-container--border-end",heading:"heading",summary:"summary",description:"description",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",fabContainer:"fab-container",footer:"footer"},a={close:"x",menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right"},n={actionBar:"action-bar",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerActions:"footer-actions"};export{e as C,a as I,n as S}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
- * v1.7.0
4
+ * v1.7.1-next.1
5
5
  */
6
- import{r as t,c as e,h as i,H as s,a as o,F as n}from"./p-142a242d.js";import{z as a,l as c,g as r,A as l,B as h,t as d}from"./p-45d8c8ac.js";import{g as b}from"./p-382edd21.js";import{c as u}from"./p-5b034d91.js";import{c as p,d as m,u as v}from"./p-847d1270.js";import{c as g,d as f}from"./p-509dbd5a.js";import{c as x,d as k,s as y,u as T}from"./p-887f8437.js";import"./p-e5526dbf.js";import"./p-7c081cef.js";import"./p-4b763869.js";const w=class{constructor(i){t(this,i),this.calciteInternalTabRegister=e(this,"calciteInternalTabRegister",6),this.guid=`calcite-tab-title-${b()}`,this.tab=void 0,this.selected=!1,this.scale="m",this.labeledBy=void 0}render(){return i(s,{"aria-labelledby":this.labeledBy,id:this.el.id||this.guid},i("div",{class:"container",role:"tabpanel",tabIndex:this.selected?0:-1},i("section",null,i("slot",null))))}connectedCallback(){this.parentTabsEl=this.el.closest("calcite-tabs")}componentDidLoad(){this.calciteInternalTabRegister.emit()}componentWillRender(){this.scale=this.parentTabsEl?.scale}disconnectedCallback(){document.body?.dispatchEvent(new CustomEvent("calciteTabUnregister",{detail:this.el}))}internalTabChangeHandler(t){t.composedPath().find((t=>"CALCITE-TABS"===t.tagName))===this.parentTabsEl&&(this.tab?this.selected=this.tab===t.detail.tab:this.getTabIndex().then((e=>{this.selected=e===t.detail.tab})),t.stopPropagation())}async getTabIndex(){return Array.prototype.indexOf.call(a(this.el.parentElement.children).filter((t=>t.matches("calcite-tab"))),this.el)}async updateAriaInfo(t=[],e=[]){this.labeledBy=e[t.indexOf(this.el.id)]||null}get el(){return o(this)}};w.style=":host([selected]) section,:host([selected]) .container{display:block}:host{display:none;block-size:100%;inline-size:100%}:host([selected]){display:block;block-size:100%;inline-size:100%;overflow:auto}section,.container{display:none;block-size:100%;inline-size:100%}:host([scale=s]){padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-block:13px}:host([hidden]){display:none}[hidden]{display:none}";const z=class{constructor(i){t(this,i),this.calciteTabChange=e(this,"calciteTabChange",6),this.calciteInternalTabChange=e(this,"calciteInternalTabChange",6),this.animationActiveDuration=.3,this.resizeObserver=u("resize",(()=>{this.activeIndicatorEl&&(this.activeIndicatorEl.style.transitionDuration="0s",this.updateActiveWidth(),this.updateOffsetPosition())})),this.handleTabFocus=(t,e,i)=>{c(this.enabledTabTitles,e,i),t.stopPropagation()},this.handleContainerScroll=()=>{this.activeIndicatorEl.style.transitionDuration="0s",this.updateOffsetPosition()},this.storageId=void 0,this.syncId=void 0,this.selectedTitle=null,this.scale="m",this.layout="inline",this.position="bottom",this.bordered=!1,this.indicatorOffset=void 0,this.indicatorWidth=void 0,this.selectedTabId=void 0}async selectedTabIdChanged(){localStorage&&this.storageId&&null!=this.selectedTabId&&localStorage.setItem(`calcite-tab-nav-${this.storageId}`,JSON.stringify(this.selectedTabId)),this.calciteInternalTabChange.emit({tab:this.selectedTabId}),this.selectedTitle=await this.getTabTitleById(this.selectedTabId)}selectedTitleChanged(){this.updateOffsetPosition(),this.updateActiveWidth(),this.activeIndicatorEl.style.transitionDuration=`${this.animationActiveDuration}s`}connectedCallback(){this.parentTabsEl=this.el.closest("calcite-tabs"),this.resizeObserver?.observe(this.el)}disconnectedCallback(){this.resizeObserver?.disconnect()}componentWillLoad(){const t=`calcite-tab-nav-${this.storageId}`;if(localStorage&&this.storageId&&localStorage.getItem(t)){const e=JSON.parse(localStorage.getItem(t));this.selectedTabId=e}}componentWillRender(){const{parentTabsEl:t}=this;this.layout=t?.layout,this.position=t?.position,this.scale=t?.scale,this.bordered=t?.bordered,this.selectedTitle&&this.updateOffsetPosition()}componentDidRender(){this.tabTitles.length&&this.tabTitles.every((t=>!t.selected))&&!this.selectedTabId&&this.tabTitles[0].getTabIdentifier().then((t=>{this.calciteInternalTabChange.emit({tab:t})}))}render(){const t=r(this.el),e=`${this.indicatorWidth}px`,o=`${this.indicatorOffset}px`,n="rtl"!==t?{width:e,left:o}:{width:e,right:o};return i(s,{role:"tablist"},i("div",{class:"tab-nav",onScroll:this.handleContainerScroll,ref:t=>this.tabNavEl=t},i("slot",null),i("div",{class:"tab-nav-active-indicator-container",ref:t=>this.activeIndicatorContainerEl=t},i("div",{class:"tab-nav-active-indicator",style:n,ref:t=>this.activeIndicatorEl=t}))))}focusPreviousTabHandler(t){this.handleTabFocus(t,t.target,"previous")}focusNextTabHandler(t){this.handleTabFocus(t,t.target,"next")}focusFirstTabHandler(t){this.handleTabFocus(t,t.target,"first")}focusLastTabHandler(t){this.handleTabFocus(t,t.target,"last")}internalActivateTabHandler(t){this.selectedTabId=t.detail.tab?t.detail.tab:this.getIndexOfTabTitle(t.target),t.stopPropagation()}activateTabHandler(t){this.calciteTabChange.emit(),t.stopPropagation()}internalCloseTabHandler(t){this.handleTabTitleClose(t.target),t.stopPropagation()}updateTabTitles(t){t.target.selected&&(this.selectedTabId=t.detail)}globalInternalTabChangeHandler(t){this.syncId&&t.target!==this.el&&t.target.syncId===this.syncId&&this.selectedTabId!==t.detail.tab&&(this.selectedTabId=t.detail.tab),t.stopPropagation()}iconStartChangeHandler(){this.updateActiveWidth()}updateOffsetPosition(){const t=r(this.el),e=this.activeIndicatorContainerEl?.offsetWidth,i=this.selectedTitle?.offsetLeft,s=this.selectedTitle?.offsetWidth;this.indicatorOffset="rtl"!==t?i-this.tabNavEl?.scrollLeft:e-(i+s)+this.tabNavEl?.scrollLeft}updateActiveWidth(){this.indicatorWidth=this.selectedTitle?.offsetWidth}getIndexOfTabTitle(t,e=this.tabTitles){return e.indexOf(t)}async getTabTitleById(t){return Promise.all(this.tabTitles.map((t=>t.getTabIdentifier()))).then((e=>this.tabTitles[e.indexOf(t)]))}get tabTitles(){return l(this.el,"calcite-tab-title")}get enabledTabTitles(){return l(this.el,"calcite-tab-title:not([disabled])").filter((t=>!t.closed))}handleTabTitleClose(t){const{tabTitles:e}=this,i=e.reduce(((t,e,i)=>e.closed?t:[...t,i]),[]),s=i.length;if(1===s&&e[i[0]].closable)e[i[0]].closable=!1,this.selectedTabId=i[0];else if(s>1){const o=e.findIndex((e=>e===t)),n=i.find((t=>t>o));this.selectedTabId===o&&(this.selectedTabId=n||s-1)}requestAnimationFrame((()=>{this.updateOffsetPosition(),this.updateActiveWidth(),e[this.selectedTabId].focus()}))}get el(){return o(this)}static get watchers(){return{selectedTabId:["selectedTabIdChanged"],selectedTitle:["selectedTitleChanged"]}}};z.style=":host{position:relative;display:flex}:host([scale=s]){min-block-size:1.5rem}:host([scale=m]){min-block-size:2rem}:host([scale=l]){min-block-size:2.75rem}.tab-nav{display:flex;inline-size:100%;justify-content:flex-start;overflow:auto}.tab-nav-active-indicator-container{position:absolute;inset-inline:0px;inset-block-end:0px;block-size:0.125rem;inline-size:100%;overflow:hidden}.tab-nav-active-indicator{position:absolute;inset-block-end:0px;display:block;block-size:0.125rem;background-color:var(--calcite-ui-brand);transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host([layout=center]) .tab-nav{justify-content:space-evenly}:host([position=bottom]) .tab-nav-active-indicator{inset-block-end:unset;inset-block-start:0px}:host([position=bottom]) .tab-nav-active-indicator-container{inset-block-end:unset;inset-block-start:0px}:host([bordered]) .tab-nav-active-indicator-container{inset-block-end:unset}:host([bordered][position=bottom]) .tab-nav-active-indicator-container{inset-block-end:0;inset-block-start:unset}@media (forced-colors: active){.tab-nav-active-indicator{background-color:highlight}}:host([hidden]){display:none}[hidden]{display:none}";const C="close-button",I="calcite-tab-title--icon",A=class{constructor(i){t(this,i),this.calciteTabsActivate=e(this,"calciteTabsActivate",6),this.calciteInternalTabsActivate=e(this,"calciteInternalTabsActivate",6),this.calciteTabsClose=e(this,"calciteTabsClose",6),this.calciteInternalTabsClose=e(this,"calciteInternalTabsClose",6),this.calciteInternalTabsFocusNext=e(this,"calciteInternalTabsFocusNext",6),this.calciteInternalTabsFocusPrevious=e(this,"calciteInternalTabsFocusPrevious",6),this.calciteInternalTabsFocusFirst=e(this,"calciteInternalTabsFocusFirst",6),this.calciteInternalTabsFocusLast=e(this,"calciteInternalTabsFocusLast",6),this.calciteInternalTabTitleRegister=e(this,"calciteInternalTabTitleRegister",6),this.calciteInternalTabIconChanged=e(this,"calciteInternalTabIconChanged",6),this.closeClickHandler=()=>{this.closeTabTitleAndNotify()},this.mutationObserver=u("mutation",(()=>this.updateHasText())),this.resizeObserver=u("resize",(()=>{this.calciteInternalTabIconChanged.emit()})),this.guid=`calcite-tab-title-${b()}`,this.selected=!1,this.closable=!1,this.closed=!1,this.disabled=!1,this.iconEnd=void 0,this.iconFlipRtl=void 0,this.iconStart=void 0,this.layout=void 0,this.position=void 0,this.scale=void 0,this.bordered=!1,this.tab=void 0,this.messages=void 0,this.messageOverrides=void 0,this.controls=void 0,this.defaultMessages=void 0,this.effectiveLocale=void 0,this.hasText=!1}selectedHandler(){this.selected&&this.emitActiveTab(!1)}onMessagesChange(){}connectedCallback(){p(this),g(this),x(this),this.setupTextContentObserver(),this.parentTabNavEl=this.el.closest("calcite-tab-nav"),this.parentTabsEl=this.el.closest("calcite-tabs")}disconnectedCallback(){this.mutationObserver?.disconnect(),document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el})),this.resizeObserver?.disconnect(),m(this),f(this),k(this)}async componentWillLoad(){await y(this),this.updateHasText(),this.tab&&this.selected&&this.emitActiveTab(!1)}componentWillRender(){this.parentTabsEl&&(this.layout=this.parentTabsEl.layout,this.position=this.parentTabsEl.position,this.scale=this.parentTabsEl.scale,this.bordered=this.parentTabsEl.bordered),!this.parentTabsEl&&this.parentTabNavEl&&(this.position=h(this.parentTabNavEl,"position",this.position),this.scale=h(this.parentTabNavEl,"scale",this.scale))}render(){const{el:t,closed:e}=this,o=t.id||this.guid,n=i("calcite-icon",{class:{[I]:!0,"icon-start":!0},flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:"l"===this.scale?"m":"s"}),a=i("calcite-icon",{class:{[I]:!0,"icon-end":!0},flipRtl:"end"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconEnd,scale:"l"===this.scale?"m":"s"});return i(s,{"aria-controls":this.controls,"aria-selected":d(this.selected),id:o,role:"tab",tabIndex:this.selected?0:-1},i("div",{class:{container:!0,"icon-present":!!this.iconStart||!!this.iconEnd},hidden:e,ref:t=>this.resizeObserver?.observe(t)},i("div",{class:{content:!0,"content--has-text":this.hasText}},this.iconStart?n:null,i("slot",null),this.iconEnd?a:null),this.renderCloseButton()))}renderCloseButton(){const{closable:t,messages:e}=this;return t?i("button",{"aria-label":e.close,class:C,disabled:!1,key:C,onClick:this.closeClickHandler,title:e.close,type:"button",ref:t=>this.closeButtonEl=t},i("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"})):null}async componentDidLoad(){this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier())}componentDidRender(){v(this,(()=>this.selected))}internalTabChangeHandler(t){t.composedPath().find((t=>"CALCITE-TABS"===t.tagName))===this.parentTabsEl&&(this.tab?this.selected=this.tab===t.detail.tab:this.getTabIndex().then((e=>{this.selected=e===t.detail.tab})),t.stopPropagation())}onClick(){this.disabled||this.emitActiveTab()}keyDownHandler(t){switch(t.key){case" ":case"Enter":t.composedPath().includes(this.closeButtonEl)||(this.emitActiveTab(),t.preventDefault());break;case"ArrowRight":t.preventDefault(),"ltr"===r(this.el)?this.calciteInternalTabsFocusNext.emit():this.calciteInternalTabsFocusPrevious.emit();break;case"ArrowLeft":t.preventDefault(),"ltr"===r(this.el)?this.calciteInternalTabsFocusPrevious.emit():this.calciteInternalTabsFocusNext.emit();break;case"Home":t.preventDefault(),this.calciteInternalTabsFocusFirst.emit();break;case"End":t.preventDefault(),this.calciteInternalTabsFocusLast.emit()}}async getTabIndex(){return Array.prototype.indexOf.call(a(this.el.parentElement.children).filter((t=>t.matches("calcite-tab-title"))),this.el)}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async updateAriaInfo(t=[],e=[]){this.controls=t[e.indexOf(this.el.id)]||null}effectiveLocaleChange(){T(this,this.effectiveLocale)}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}emitActiveTab(t=!0){this.disabled||this.closed||(this.calciteInternalTabsActivate.emit({tab:this.tab}),t&&requestAnimationFrame((()=>this.calciteTabsActivate.emit())))}closeTabTitleAndNotify(){this.closed=!0,this.calciteInternalTabsClose.emit({tab:this.tab}),this.calciteTabsClose.emit()}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{selected:["selectedHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};A.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;margin-inline-start:0px;margin-inline-end:1.25rem}:host([layout=center][scale=s]),:host([layout=center][scale=m]),:host([layout=center][scale=l]){margin-block:0px;text-align:center;margin-inline-end:0px;flex-basis:12rem}:host([layout=center][scale=s]) .content,:host([layout=center][scale=m]) .content,:host([layout=center][scale=l]) .content{margin:auto}:host([layout=center][closable]) .content{padding-inline-start:32px}:host([layout=center][bordered][closable][scale=s]) .content{padding-inline-start:36px}:host([layout=center][bordered][closable][scale=m]) .content{padding-inline-start:40px}:host([layout=center][closable][scale=l]) .content{padding-inline-start:40px}:host([layout=center][closable][bordered][scale=l]) .content{padding-inline-start:52px}:host([position=bottom]) .container{border-block-end-width:0px;border-block-start-width:2px;border-block-start-color:transparent;border-block-start-style:solid}:host([closed]){display:none}.container{outline-color:transparent}:host(:focus) .container{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host(:focus) .container:focus-within{outline-color:transparent}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-1);text-decoration-line:none}:host([selected]) .container{border-color:transparent;color:var(--calcite-ui-text-1)}:host([disabled]) .container{pointer-events:none;opacity:0.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){margin-inline-end:1rem}:host([scale=s]) .content{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .content{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){margin-inline-end:1.5rem}:host([scale=l]) .content{padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.container{box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;align-content:center;justify-content:space-between;border-block-end-width:2px;padding-inline:0px;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-block-end-color:transparent;border-block-end-style:solid}.content{display:flex;align-items:center;justify-content:center}.calcite-tab-title--icon{position:relative;margin:0px;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.content--has-text{padding:0.25rem}.content--has-text .calcite-tab-title--icon.icon-start{margin-inline-end:0.5rem}.content--has-text .calcite-tab-title--icon.icon-end{margin-inline-start:0.5rem}.close-button{display:flex;cursor:pointer;-webkit-appearance:none;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-style:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:calc(100% - 2px);background-color:var(--calcite-button-transparent-1);margin-inline-start:auto}.close-button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:-1px}.close-button:focus,.close-button:hover{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-2)}.close-button:active{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}.close-button calcite-icon{color:inherit}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-inline-end:0.5rem}:host([bordered]){margin-inline-end:0}:host([bordered][selected]){box-shadow:inset 0px -2px var(--calcite-ui-foreground-1)}:host([bordered][selected][position=bottom]){box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered]:hover) .container,:host([bordered]:focus) .container,:host([bordered]:active) .container{position:relative}:host([bordered]:hover) .container{background-color:var(--calcite-button-transparent-hover)}:host([closable]) .container,:host([bordered]) .container{border-inline-start:1px solid transparent;border-inline-end:1px solid transparent}:host([closable]) .container .close-button,:host([bordered]) .container .close-button{margin-inline:0}:host([closable]) .content{box-sizing:border-box;block-size:100%;border-block-end-color:transparent}:host([closable][position=bottom]) .container,:host([bordered][position=bottom]) .container{border-block-start-style:unset}:host([selected][bordered]) .container{border-inline-start-color:var(--calcite-ui-border-1);border-inline-end-color:var(--calcite-ui-border-1)}:host([bordered]) .content{padding-inline:0.75rem}:host([bordered][scale=s]) .content{padding-inline:0.5rem}:host([bordered][scale=l]) .content{padding-inline:1rem}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered]) .container{border-block-end-style:solid}:host([bordered][position=bottom]) .container{border-block-start-style:solid}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][position=bottom][selected]) .container{border-block-start-style:none}.close-button{z-index:var(--calcite-app-z-index)}}:host([hidden]){display:none}[hidden]{display:none}";const H=class{constructor(e){t(this,e),this.layout="inline",this.position="top",this.scale="m",this.bordered=!1,this.titles=[],this.tabs=[]}render(){return i(n,null,i("slot",{name:"title-group"}),i("section",null,i("slot",null)))}calciteInternalTabTitleRegister(t){this.titles=[...this.titles,t.target],this.registryHandler(),t.stopPropagation()}calciteTabTitleUnregister(t){this.titles=this.titles.filter((e=>e!==t.detail)),this.registryHandler(),t.stopPropagation()}calciteInternalTabRegister(t){this.tabs=[...this.tabs,t.target],this.registryHandler(),t.stopPropagation()}calciteTabUnregister(t){this.tabs=this.tabs.filter((e=>e!==t.detail)),this.registryHandler(),t.stopPropagation()}async registryHandler(){let t,e;if(this.tabs.some((t=>t.tab))||this.titles.some((t=>t.tab)))t=this.tabs.sort(((t,e)=>t.tab.localeCompare(e.tab))).map((t=>t.id)),e=this.titles.sort(((t,e)=>t.tab.localeCompare(e.tab))).map((t=>t.id));else{const i=await Promise.all(this.tabs.map((t=>t.getTabIndex()))),s=await Promise.all(this.titles.map((t=>t.getTabIndex())));t=i.reduce(((t,e,i)=>(t[e]=this.tabs[i].id,t)),[]),e=s.reduce(((t,e,i)=>(t[e]=this.titles[i].id,t)),[])}this.tabs.forEach((i=>i.updateAriaInfo(t,e))),this.titles.forEach((i=>i.updateAriaInfo(t,e)))}get el(){return o(this)}};H.style=":host{display:flex;flex-direction:column}:host([bordered]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1)}:host([bordered]:not([position=bottom])) ::slotted(calcite-tab-nav){margin-block-end:-1px}:host([bordered][position=bottom]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered]) section{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=bottom]){flex-direction:column-reverse}section{display:flex;flex-grow:1;overflow:hidden;border-block-start-width:1px;border-block-start-color:var(--calcite-ui-border-1);border-block-start-style:solid}:host([position=bottom]) section{flex-direction:column-reverse;border-block-start-width:0px;border-block-end-width:1px;border-block-end-color:var(--calcite-ui-border-1)}:host([position=bottom]:not([bordered])) section{border-block-end-style:solid}@media (forced-colors: active){:host([bordered]) section{border-block-start-width:0px;border-block-end-width:1px}:host([position=bottom][bordered]) section{border-block-start-width:1px;border-block-end-width:0px}}:host([hidden]){display:none}[hidden]{display:none}";export{w as calcite_tab,z as calcite_tab_nav,A as calcite_tab_title,H as calcite_tabs}
6
+ import{r as t,c as e,h as i,H as s,a as o,F as n}from"./p-c6009ee9.js";import{z as a,l as c,g as r,A as l,B as h,t as d}from"./p-52c73926.js";import{g as b}from"./p-935ab417.js";import{c as u}from"./p-9dca62f6.js";import{c as p,d as m,u as v}from"./p-e346bbb8.js";import{c as g,d as f}from"./p-261d319c.js";import{c as x,d as k,s as y,u as T}from"./p-623921b4.js";import"./p-68d264c9.js";import"./p-20af09cf.js";import"./p-154261e7.js";const w=class{constructor(i){t(this,i),this.calciteInternalTabRegister=e(this,"calciteInternalTabRegister",6),this.guid=`calcite-tab-title-${b()}`,this.tab=void 0,this.selected=!1,this.scale="m",this.labeledBy=void 0}render(){return i(s,{"aria-labelledby":this.labeledBy,id:this.el.id||this.guid},i("div",{class:"container",role:"tabpanel",tabIndex:this.selected?0:-1},i("section",null,i("slot",null))))}connectedCallback(){this.parentTabsEl=this.el.closest("calcite-tabs")}componentDidLoad(){this.calciteInternalTabRegister.emit()}componentWillRender(){this.scale=this.parentTabsEl?.scale}disconnectedCallback(){document.body?.dispatchEvent(new CustomEvent("calciteTabUnregister",{detail:this.el}))}internalTabChangeHandler(t){t.composedPath().find((t=>"CALCITE-TABS"===t.tagName))===this.parentTabsEl&&(this.tab?this.selected=this.tab===t.detail.tab:this.getTabIndex().then((e=>{this.selected=e===t.detail.tab})),t.stopPropagation())}async getTabIndex(){return Array.prototype.indexOf.call(a(this.el.parentElement.children).filter((t=>t.matches("calcite-tab"))),this.el)}async updateAriaInfo(t=[],e=[]){this.labeledBy=e[t.indexOf(this.el.id)]||null}get el(){return o(this)}};w.style=":host([selected]) section,:host([selected]) .container{display:block}:host{display:none;block-size:100%;inline-size:100%}:host([selected]){display:block;block-size:100%;inline-size:100%;overflow:auto}section,.container{display:none;block-size:100%;inline-size:100%}:host([scale=s]){padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-block:13px}:host([hidden]){display:none}[hidden]{display:none}";const z=class{constructor(i){t(this,i),this.calciteTabChange=e(this,"calciteTabChange",6),this.calciteInternalTabChange=e(this,"calciteInternalTabChange",6),this.animationActiveDuration=.3,this.resizeObserver=u("resize",(()=>{this.activeIndicatorEl&&(this.activeIndicatorEl.style.transitionDuration="0s",this.updateActiveWidth(),this.updateOffsetPosition())})),this.handleTabFocus=(t,e,i)=>{c(this.enabledTabTitles,e,i),t.stopPropagation()},this.handleContainerScroll=()=>{this.activeIndicatorEl.style.transitionDuration="0s",this.updateOffsetPosition()},this.storageId=void 0,this.syncId=void 0,this.selectedTitle=null,this.scale="m",this.layout="inline",this.position="bottom",this.bordered=!1,this.indicatorOffset=void 0,this.indicatorWidth=void 0,this.selectedTabId=void 0}async selectedTabIdChanged(){localStorage&&this.storageId&&null!=this.selectedTabId&&localStorage.setItem(`calcite-tab-nav-${this.storageId}`,JSON.stringify(this.selectedTabId)),this.calciteInternalTabChange.emit({tab:this.selectedTabId}),this.selectedTitle=await this.getTabTitleById(this.selectedTabId)}selectedTitleChanged(){this.updateOffsetPosition(),this.updateActiveWidth(),this.activeIndicatorEl.style.transitionDuration=`${this.animationActiveDuration}s`}connectedCallback(){this.parentTabsEl=this.el.closest("calcite-tabs"),this.resizeObserver?.observe(this.el)}disconnectedCallback(){this.resizeObserver?.disconnect()}componentWillLoad(){const t=`calcite-tab-nav-${this.storageId}`;if(localStorage&&this.storageId&&localStorage.getItem(t)){const e=JSON.parse(localStorage.getItem(t));this.selectedTabId=e}}componentWillRender(){const{parentTabsEl:t}=this;this.layout=t?.layout,this.position=t?.position,this.scale=t?.scale,this.bordered=t?.bordered,this.selectedTitle&&this.updateOffsetPosition()}componentDidRender(){this.tabTitles.length&&this.tabTitles.every((t=>!t.selected))&&!this.selectedTabId&&this.tabTitles[0].getTabIdentifier().then((t=>{this.calciteInternalTabChange.emit({tab:t})}))}render(){const t=r(this.el),e=`${this.indicatorWidth}px`,o=`${this.indicatorOffset}px`,n="rtl"!==t?{width:e,left:o}:{width:e,right:o};return i(s,{role:"tablist"},i("div",{class:"tab-nav",onScroll:this.handleContainerScroll,ref:t=>this.tabNavEl=t},i("slot",null),i("div",{class:"tab-nav-active-indicator-container",ref:t=>this.activeIndicatorContainerEl=t},i("div",{class:"tab-nav-active-indicator",style:n,ref:t=>this.activeIndicatorEl=t}))))}focusPreviousTabHandler(t){this.handleTabFocus(t,t.target,"previous")}focusNextTabHandler(t){this.handleTabFocus(t,t.target,"next")}focusFirstTabHandler(t){this.handleTabFocus(t,t.target,"first")}focusLastTabHandler(t){this.handleTabFocus(t,t.target,"last")}internalActivateTabHandler(t){this.selectedTabId=t.detail.tab?t.detail.tab:this.getIndexOfTabTitle(t.target),t.stopPropagation()}activateTabHandler(t){this.calciteTabChange.emit(),t.stopPropagation()}internalCloseTabHandler(t){this.handleTabTitleClose(t.target),t.stopPropagation()}updateTabTitles(t){t.target.selected&&(this.selectedTabId=t.detail)}globalInternalTabChangeHandler(t){this.syncId&&t.target!==this.el&&t.target.syncId===this.syncId&&this.selectedTabId!==t.detail.tab&&(this.selectedTabId=t.detail.tab),t.stopPropagation()}iconStartChangeHandler(){this.updateActiveWidth()}updateOffsetPosition(){const t=r(this.el),e=this.activeIndicatorContainerEl?.offsetWidth,i=this.selectedTitle?.offsetLeft,s=this.selectedTitle?.offsetWidth;this.indicatorOffset="rtl"!==t?i-this.tabNavEl?.scrollLeft:e-(i+s)+this.tabNavEl?.scrollLeft}updateActiveWidth(){this.indicatorWidth=this.selectedTitle?.offsetWidth}getIndexOfTabTitle(t,e=this.tabTitles){return e.indexOf(t)}async getTabTitleById(t){return Promise.all(this.tabTitles.map((t=>t.getTabIdentifier()))).then((e=>this.tabTitles[e.indexOf(t)]))}get tabTitles(){return l(this.el,"calcite-tab-title")}get enabledTabTitles(){return l(this.el,"calcite-tab-title:not([disabled])").filter((t=>!t.closed))}handleTabTitleClose(t){const{tabTitles:e}=this,i=e.reduce(((t,e,i)=>e.closed?t:[...t,i]),[]),s=i.length;if(1===s&&e[i[0]].closable)e[i[0]].closable=!1,this.selectedTabId=i[0];else if(s>1){const o=e.findIndex((e=>e===t)),n=i.find((t=>t>o));this.selectedTabId===o&&(this.selectedTabId=n||s-1)}requestAnimationFrame((()=>{this.updateOffsetPosition(),this.updateActiveWidth(),e[this.selectedTabId].focus()}))}get el(){return o(this)}static get watchers(){return{selectedTabId:["selectedTabIdChanged"],selectedTitle:["selectedTitleChanged"]}}};z.style=":host{position:relative;display:flex}:host([scale=s]){min-block-size:1.5rem}:host([scale=m]){min-block-size:2rem}:host([scale=l]){min-block-size:2.75rem}.tab-nav{display:flex;inline-size:100%;justify-content:flex-start;overflow:auto}.tab-nav-active-indicator-container{position:absolute;inset-inline:0px;inset-block-end:0px;block-size:0.125rem;inline-size:100%;overflow:hidden}.tab-nav-active-indicator{position:absolute;inset-block-end:0px;display:block;block-size:0.125rem;background-color:var(--calcite-ui-brand);transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host([layout=center]) .tab-nav{justify-content:space-evenly}:host([position=bottom]) .tab-nav-active-indicator{inset-block-end:unset;inset-block-start:0px}:host([position=bottom]) .tab-nav-active-indicator-container{inset-block-end:unset;inset-block-start:0px}:host([bordered]) .tab-nav-active-indicator-container{inset-block-end:unset}:host([bordered][position=bottom]) .tab-nav-active-indicator-container{inset-block-end:0;inset-block-start:unset}@media (forced-colors: active){.tab-nav-active-indicator{background-color:highlight}}:host([hidden]){display:none}[hidden]{display:none}";const C="close-button",I="calcite-tab-title--icon",A=class{constructor(i){t(this,i),this.calciteTabsActivate=e(this,"calciteTabsActivate",6),this.calciteInternalTabsActivate=e(this,"calciteInternalTabsActivate",6),this.calciteTabsClose=e(this,"calciteTabsClose",6),this.calciteInternalTabsClose=e(this,"calciteInternalTabsClose",6),this.calciteInternalTabsFocusNext=e(this,"calciteInternalTabsFocusNext",6),this.calciteInternalTabsFocusPrevious=e(this,"calciteInternalTabsFocusPrevious",6),this.calciteInternalTabsFocusFirst=e(this,"calciteInternalTabsFocusFirst",6),this.calciteInternalTabsFocusLast=e(this,"calciteInternalTabsFocusLast",6),this.calciteInternalTabTitleRegister=e(this,"calciteInternalTabTitleRegister",6),this.calciteInternalTabIconChanged=e(this,"calciteInternalTabIconChanged",6),this.closeClickHandler=()=>{this.closeTabTitleAndNotify()},this.mutationObserver=u("mutation",(()=>this.updateHasText())),this.resizeObserver=u("resize",(()=>{this.calciteInternalTabIconChanged.emit()})),this.guid=`calcite-tab-title-${b()}`,this.selected=!1,this.closable=!1,this.closed=!1,this.disabled=!1,this.iconEnd=void 0,this.iconFlipRtl=void 0,this.iconStart=void 0,this.layout=void 0,this.position=void 0,this.scale=void 0,this.bordered=!1,this.tab=void 0,this.messages=void 0,this.messageOverrides=void 0,this.controls=void 0,this.defaultMessages=void 0,this.effectiveLocale=void 0,this.hasText=!1}selectedHandler(){this.selected&&this.emitActiveTab(!1)}onMessagesChange(){}connectedCallback(){p(this),g(this),x(this),this.setupTextContentObserver(),this.parentTabNavEl=this.el.closest("calcite-tab-nav"),this.parentTabsEl=this.el.closest("calcite-tabs")}disconnectedCallback(){this.mutationObserver?.disconnect(),document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el})),this.resizeObserver?.disconnect(),m(this),f(this),k(this)}async componentWillLoad(){await y(this),this.updateHasText(),this.tab&&this.selected&&this.emitActiveTab(!1)}componentWillRender(){this.parentTabsEl&&(this.layout=this.parentTabsEl.layout,this.position=this.parentTabsEl.position,this.scale=this.parentTabsEl.scale,this.bordered=this.parentTabsEl.bordered),!this.parentTabsEl&&this.parentTabNavEl&&(this.position=h(this.parentTabNavEl,"position",this.position),this.scale=h(this.parentTabNavEl,"scale",this.scale))}render(){const{el:t,closed:e}=this,o=t.id||this.guid,n=i("calcite-icon",{class:{[I]:!0,"icon-start":!0},flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:"l"===this.scale?"m":"s"}),a=i("calcite-icon",{class:{[I]:!0,"icon-end":!0},flipRtl:"end"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconEnd,scale:"l"===this.scale?"m":"s"});return i(s,{"aria-controls":this.controls,"aria-selected":d(this.selected),id:o,role:"tab",tabIndex:this.selected?0:-1},i("div",{class:{container:!0,"icon-present":!!this.iconStart||!!this.iconEnd},hidden:e,ref:t=>this.resizeObserver?.observe(t)},i("div",{class:{content:!0,"content--has-text":this.hasText}},this.iconStart?n:null,i("slot",null),this.iconEnd?a:null),this.renderCloseButton()))}renderCloseButton(){const{closable:t,messages:e}=this;return t?i("button",{"aria-label":e.close,class:C,disabled:!1,key:C,onClick:this.closeClickHandler,title:e.close,type:"button",ref:t=>this.closeButtonEl=t},i("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"})):null}async componentDidLoad(){this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier())}componentDidRender(){v(this,(()=>this.selected))}internalTabChangeHandler(t){t.composedPath().find((t=>"CALCITE-TABS"===t.tagName))===this.parentTabsEl&&(this.tab?this.selected=this.tab===t.detail.tab:this.getTabIndex().then((e=>{this.selected=e===t.detail.tab})),t.stopPropagation())}onClick(){this.disabled||this.emitActiveTab()}keyDownHandler(t){switch(t.key){case" ":case"Enter":t.composedPath().includes(this.closeButtonEl)||(this.emitActiveTab(),t.preventDefault());break;case"ArrowRight":t.preventDefault(),"ltr"===r(this.el)?this.calciteInternalTabsFocusNext.emit():this.calciteInternalTabsFocusPrevious.emit();break;case"ArrowLeft":t.preventDefault(),"ltr"===r(this.el)?this.calciteInternalTabsFocusPrevious.emit():this.calciteInternalTabsFocusNext.emit();break;case"Home":t.preventDefault(),this.calciteInternalTabsFocusFirst.emit();break;case"End":t.preventDefault(),this.calciteInternalTabsFocusLast.emit()}}async getTabIndex(){return Array.prototype.indexOf.call(a(this.el.parentElement.children).filter((t=>t.matches("calcite-tab-title"))),this.el)}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async updateAriaInfo(t=[],e=[]){this.controls=t[e.indexOf(this.el.id)]||null}effectiveLocaleChange(){T(this,this.effectiveLocale)}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}emitActiveTab(t=!0){this.disabled||this.closed||(this.calciteInternalTabsActivate.emit({tab:this.tab}),t&&requestAnimationFrame((()=>this.calciteTabsActivate.emit())))}closeTabTitleAndNotify(){this.closed=!0,this.calciteInternalTabsClose.emit({tab:this.tab}),this.calciteTabsClose.emit()}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{selected:["selectedHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};A.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;margin-inline-start:0px;margin-inline-end:1.25rem}:host([layout=center][scale=s]),:host([layout=center][scale=m]),:host([layout=center][scale=l]){margin-block:0px;text-align:center;margin-inline-end:0px;flex-basis:12rem}:host([layout=center][scale=s]) .content,:host([layout=center][scale=m]) .content,:host([layout=center][scale=l]) .content{margin:auto}:host([layout=center][closable]) .content{padding-inline-start:32px}:host([layout=center][bordered][closable][scale=s]) .content{padding-inline-start:36px}:host([layout=center][bordered][closable][scale=m]) .content{padding-inline-start:40px}:host([layout=center][closable][scale=l]) .content{padding-inline-start:40px}:host([layout=center][closable][bordered][scale=l]) .content{padding-inline-start:52px}:host([position=bottom]) .container{border-block-end-width:0px;border-block-start-width:2px;border-block-start-color:transparent;border-block-start-style:solid}:host([closed]){display:none}.container{outline-color:transparent}:host(:focus) .container{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host(:focus) .container:focus-within{outline-color:transparent}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-1);text-decoration-line:none}:host([selected]) .container{border-color:transparent;color:var(--calcite-ui-text-1)}:host([disabled]) .container{pointer-events:none;opacity:0.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){margin-inline-end:1rem}:host([scale=s]) .content{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .content{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){margin-inline-end:1.5rem}:host([scale=l]) .content{padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.container{box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;align-content:center;justify-content:space-between;border-block-end-width:2px;padding-inline:0px;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-block-end-color:transparent;border-block-end-style:solid}.content{display:flex;align-items:center;justify-content:center}.calcite-tab-title--icon{position:relative;margin:0px;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.content--has-text{padding:0.25rem}.content--has-text .calcite-tab-title--icon.icon-start{margin-inline-end:0.5rem}.content--has-text .calcite-tab-title--icon.icon-end{margin-inline-start:0.5rem}.close-button{display:flex;cursor:pointer;-webkit-appearance:none;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-style:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:calc(100% - 2px);background-color:var(--calcite-button-transparent-1);margin-inline-start:auto}.close-button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:-1px}.close-button:focus,.close-button:hover{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-2)}.close-button:active{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}.close-button calcite-icon{color:inherit}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-inline-end:0.5rem}:host([bordered]){margin-inline-end:0}:host([bordered][selected]){box-shadow:inset 0px -2px var(--calcite-ui-foreground-1)}:host([bordered][selected][position=bottom]){box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered]:hover) .container,:host([bordered]:focus) .container,:host([bordered]:active) .container{position:relative}:host([bordered]:hover) .container{background-color:var(--calcite-button-transparent-hover)}:host([closable]) .container,:host([bordered]) .container{border-inline-start:1px solid transparent;border-inline-end:1px solid transparent}:host([closable]) .container .close-button,:host([bordered]) .container .close-button{margin-inline:0}:host([closable]) .content{box-sizing:border-box;block-size:100%;border-block-end-color:transparent}:host([closable][position=bottom]) .container,:host([bordered][position=bottom]) .container{border-block-start-style:unset}:host([selected][bordered]) .container{border-inline-start-color:var(--calcite-ui-border-1);border-inline-end-color:var(--calcite-ui-border-1)}:host([bordered]) .content{padding-inline:0.75rem}:host([bordered][scale=s]) .content{padding-inline:0.5rem}:host([bordered][scale=l]) .content{padding-inline:1rem}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered]) .container{border-block-end-style:solid}:host([bordered][position=bottom]) .container{border-block-start-style:solid}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][position=bottom][selected]) .container{border-block-start-style:none}.close-button{z-index:var(--calcite-app-z-index)}}:host([hidden]){display:none}[hidden]{display:none}";const H=class{constructor(e){t(this,e),this.layout="inline",this.position="top",this.scale="m",this.bordered=!1,this.titles=[],this.tabs=[]}render(){return i(n,null,i("slot",{name:"title-group"}),i("section",null,i("slot",null)))}calciteInternalTabTitleRegister(t){this.titles=[...this.titles,t.target],this.registryHandler(),t.stopPropagation()}calciteTabTitleUnregister(t){this.titles=this.titles.filter((e=>e!==t.detail)),this.registryHandler(),t.stopPropagation()}calciteInternalTabRegister(t){this.tabs=[...this.tabs,t.target],this.registryHandler(),t.stopPropagation()}calciteTabUnregister(t){this.tabs=this.tabs.filter((e=>e!==t.detail)),this.registryHandler(),t.stopPropagation()}async registryHandler(){let t,e;if(this.tabs.some((t=>t.tab))||this.titles.some((t=>t.tab)))t=this.tabs.sort(((t,e)=>t.tab.localeCompare(e.tab))).map((t=>t.id)),e=this.titles.sort(((t,e)=>t.tab.localeCompare(e.tab))).map((t=>t.id));else{const i=await Promise.all(this.tabs.map((t=>t.getTabIndex()))),s=await Promise.all(this.titles.map((t=>t.getTabIndex())));t=i.reduce(((t,e,i)=>(t[e]=this.tabs[i].id,t)),[]),e=s.reduce(((t,e,i)=>(t[e]=this.titles[i].id,t)),[])}this.tabs.forEach((i=>i.updateAriaInfo(t,e))),this.titles.forEach((i=>i.updateAriaInfo(t,e)))}get el(){return o(this)}};H.style=":host{display:flex;flex-direction:column}:host([bordered]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1)}:host([bordered]:not([position=bottom])) ::slotted(calcite-tab-nav){margin-block-end:-1px}:host([bordered][position=bottom]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered]) section{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=bottom]){flex-direction:column-reverse}section{display:flex;flex-grow:1;overflow:hidden;border-block-start-width:1px;border-block-start-color:var(--calcite-ui-border-1);border-block-start-style:solid}:host([position=bottom]) section{flex-direction:column-reverse;border-block-start-width:0px;border-block-end-width:1px;border-block-end-color:var(--calcite-ui-border-1)}:host([position=bottom]:not([bordered])) section{border-block-end-style:solid}@media (forced-colors: active){:host([bordered]) section{border-block-start-width:0px;border-block-end-width:1px}:host([position=bottom][bordered]) section{border-block-start-width:1px;border-block-end-width:0px}}:host([hidden]){display:none}[hidden]{display:none}";export{w as calcite_tab,z as calcite_tab_nav,A as calcite_tab_title,H as calcite_tabs}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
- * v1.7.0
4
+ * v1.7.1-next.1
5
5
  */
6
- import{g as t}from"./p-45d8c8ac.js";import{d as n}from"./p-6d4f1b53.js";const e=["top","right","bottom","left"],o=["start","end"],r=e.reduce(((t,n)=>t.concat(n,n+"-"+o[0],n+"-"+o[1])),[]),i=Math.min,a=Math.max,l=Math.round,c=Math.floor,s=t=>({x:t,y:t}),f={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function d(t,n,e){return a(t,i(n,e))}function m(t,n){return"function"==typeof t?t(n):t}function p(t){return t.split("-")[0]}function y(t){return t.split("-")[1]}function g(t){return"x"===t?"y":"x"}function h(t){return"y"===t?"height":"width"}function x(t){return["top","bottom"].includes(p(t))?"y":"x"}function w(t){return g(x(t))}function v(t,n,e){void 0===e&&(e=!1);const o=y(t),r=w(t),i=h(r);let a="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=A(a)),[a,A(a)]}function b(t){return t.replace(/start|end/g,(t=>u[t]))}function A(t){return t.replace(/left|right|bottom|top/g,(t=>f[t]))}function S(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function k(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function P(t,n,e){let{reference:o,floating:r}=t;const i=x(n),a=w(n),l=h(a),c=p(n),s="y"===i,f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let m;switch(c){case"top":m={x:f,y:o.y-r.height};break;case"bottom":m={x:f,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:u};break;case"left":m={x:o.x-r.width,y:u};break;default:m={x:o.x,y:o.y}}switch(y(n)){case"start":m[a]-=d*(e&&s?-1:1);break;case"end":m[a]+=d*(e&&s?-1:1)}return m}async function D(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=m(n,t),y=S(p),g=l[d?"floating"===u?"reference":"floating":u],h=k(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(g)))||e?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:f,strategy:c})),x="floating"===u?{...a.floating,x:o,y:r}:a.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),v=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:w,strategy:c}):x);return{top:(h.top-b.top+y.top)/v.y,bottom:(b.bottom-h.bottom+y.bottom)/v.y,left:(h.left-b.left+y.left)/v.x,right:(b.right-h.right+y.right)/v.x}}const R=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e;const{placement:o,middlewareData:r,rects:i,initialPlacement:a,platform:l,elements:c}=n,{mainAxis:s=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...x}=m(t,n),w=p(o),S=p(a)===a,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),P=u||(S||!h?[A(a)]:function(t){const n=A(t);return[b(t),n,b(n)]}(a));u||"none"===g||P.push(...function(t,n,e,o){const r=y(t);let i=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(p(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(b)))),i}(a,h,g,k));const R=[a,...P],E=await D(n,x),O=[];let M=(null==(e=r.flip)?void 0:e.overflows)||[];if(s&&O.push(E[w]),f){const t=v(o,i,k);O.push(E[t[0]],E[t[1]])}if(M=[...M,{placement:o,overflows:O}],!O.every((t=>t<=0))){var F,T;const t=((null==(F=r.flip)?void 0:F.index)||0)+1,n=R[t];if(n)return{data:{index:t,overflows:M},reset:{placement:n}};let e=null==(T=M.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:T.placement;if(!e)switch(d){case"bestFit":{var C;const t=null==(C=M.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:C[0];t&&(e=t);break}case"initialPlacement":e=a}if(o!==e)return{reset:{placement:e}}}return{}}}};function E(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function O(t){return e.some((n=>t[n]>=0))}const M=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:o="referenceHidden",...r}=m(t,n);switch(o){case"referenceHidden":{const t=E(await D(n,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:O(t)}}}case"escaped":{const t=E(await D(n,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:O(t)}}}default:return{}}}}},F=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){const{x:e,y:o}=n,r=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=p(e),l=y(e),c="y"===x(e),s=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,u=m(n,t);let{mainAxis:d,crossAxis:g,alignmentAxis:h}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&"number"==typeof h&&(g="end"===l?-1*h:h),c?{x:g*f,y:d*s}:{x:d*s,y:g*f}}(n,t);return{x:e+r.x,y:o+r.y,data:r}}}};function T(t){return z(t)?(t.nodeName||"").toLowerCase():"#document"}function C(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function $(t){var n;return null==(n=(z(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function z(t){return t instanceof Node||t instanceof C(t).Node}function B(t){return t instanceof Element||t instanceof C(t).Element}function L(t){return t instanceof HTMLElement||t instanceof C(t).HTMLElement}function j(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof C(t).ShadowRoot)}function H(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=Y(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function I(t){return["table","td","th"].includes(T(t))}function W(t){const n=N(),e=Y(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function N(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function q(t){return["html","body","#document"].includes(T(t))}function Y(t){return C(t).getComputedStyle(t)}function V(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function X(t){if("html"===T(t))return t;const n=t.assignedSlot||t.parentNode||j(t)&&t.host||$(t);return j(n)?n.host:n}function _(t){const n=X(t);return q(n)?t.ownerDocument?t.ownerDocument.body:t.body:L(n)&&H(n)?n:_(n)}function G(t,n){var e;void 0===n&&(n=[]);const o=_(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=C(o);return r?n.concat(i,i.visualViewport||[],H(o)?o:[]):n.concat(o,G(o))}function J(t){const n=Y(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=L(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,c=l(e)!==i||l(o)!==a;return c&&(e=i,o=a),{width:e,height:o,$:c}}function K(t){return B(t)?t:t.contextElement}function Q(t){const n=K(t);if(!L(n))return s(1);const e=n.getBoundingClientRect(),{width:o,height:r,$:i}=J(n);let a=(i?l(e.width):e.width)/o,c=(i?l(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const U=s(0);function Z(t){const n=C(t);return N()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:U}function tt(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=K(t);let a=s(1);n&&(o?B(o)&&(a=Q(o)):a=Q(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==C(t))&&n}(i,e,o)?Z(i):s(0);let c=(r.left+l.x)/a.x,f=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const t=C(i),n=o&&B(o)?C(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=Q(e),n=e.getBoundingClientRect(),o=Y(e),r=n.left+(e.clientLeft+parseFloat(o.paddingLeft))*t.x,i=n.top+(e.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,f*=t.y,u*=t.x,d*=t.y,c+=r,f+=i,e=C(e).frameElement}}return k({width:u,height:d,x:c,y:f})}function nt(t){return tt($(t)).left+V(t).scrollLeft}function et(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=C(t),o=$(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=N();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,e);else if("document"===n)o=function(t){const n=$(t),e=V(t),o=t.ownerDocument.body,r=a(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=a(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+nt(t);const c=-e.scrollTop;return"rtl"===Y(o).direction&&(l+=a(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:l,y:c}}($(t));else if(B(n))o=function(t,n){const e=tt(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=L(t)?Q(t):s(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=Z(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return k(o)}function ot(t,n){const e=X(t);return!(e===n||!B(e)||q(e))&&("fixed"===Y(e).position||ot(e,n))}function rt(t,n,e){const o=L(n),r=$(n),i="fixed"===e,a=tt(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const c=s(0);if(o||!o&&!i)if(("body"!==T(n)||H(r))&&(l=V(n)),o){const t=tt(n,!0,i,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else r&&(c.x=nt(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function it(t,n){return L(t)&&"fixed"!==Y(t).position?n?n(t):t.offsetParent:null}function at(t,n){const e=C(t);if(!L(t))return e;let o=it(t,n);for(;o&&I(o)&&"static"===Y(o).position;)o=it(o,n);return o&&("html"===T(o)||"body"===T(o)&&"static"===Y(o).position&&!W(o))?e:o||function(t){let n=X(t);for(;L(n)&&!q(n);){if(W(n))return n;n=X(n)}return null}(t)||e}const lt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=L(e),i=$(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0},l=s(1);const c=s(0);if((r||!r&&"fixed"!==o)&&(("body"!==T(e)||H(i))&&(a=V(e)),L(e))){const t=tt(e);l=Q(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+c.x,y:n.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:$,getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const l=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=G(t).filter((t=>B(t)&&"body"!==T(t))),r=null;const i="fixed"===Y(t).position;let a=i?X(t):t;for(;B(a)&&!q(a);){const n=Y(a),e=W(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||H(a)&&!e&&ot(t,a))?o=o.filter((t=>t!==a)):r=n,a=X(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],c=l.reduce(((t,e)=>{const o=et(n,e,r);return t.top=a(o.top,t.top),t.right=i(o.right,t.right),t.bottom=i(o.bottom,t.bottom),t.left=a(o.left,t.left),t}),et(n,l[0],r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:at,getElementRects:async function(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||at,i=this.getDimensions;return{reference:rt(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return J(t)},getScale:Q,isElement:B,isRTL:function(t){return"rtl"===Y(t).direction}};function ct(t){return function(t){for(let n=t;n;n=st(n))if(n instanceof Element&&"none"===getComputedStyle(n).display)return null;for(let n=st(t);n;n=st(n)){if(!(n instanceof Element))continue;const t=getComputedStyle(n);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return n;if("BODY"===n.tagName)return n}}return null}(t)}function st(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}!function(){{const t=lt.getOffsetParent;lt.getOffsetParent=n=>t(n,ct)}}();const ft=async(t,{referenceEl:n,floatingEl:e,overlayPositioning:o="absolute",placement:r,flipDisabled:i,flipPlacements:a,offsetDistance:l,offsetSkidding:c,arrowEl:s,type:f})=>{if(!n||!e)return null;const{x:u,y:d,placement:m,strategy:p,middlewareData:y}=await((t,n,e)=>{const o=new Map,r={platform:lt,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=e,l=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(n));let s=await a.getElementRects({reference:t,floating:n,strategy:r}),{x:f,y:u}=P(s,o,c),d=o,m={},p=0;for(let e=0;e<l.length;e++){const{name:i,fn:y}=l[e],{x:g,y:h,data:x,reset:w}=await y({x:f,y:u,initialPlacement:o,placement:d,strategy:r,middlewareData:m,rects:s,platform:a,elements:{reference:t,floating:n}});f=null!=g?g:f,u=null!=h?h:u,m={...m,[i]:{...m[i],...x}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await a.getElementRects({reference:t,floating:n,strategy:r}):w.rects),({x:f,y:u}=P(s,d,c))),e=-1)}return{x:f,y:u,placement:d,strategy:r,middlewareData:m}})(t,n,{...r,platform:i})})(n,e,{strategy:o,placement:"auto"===r||"auto-start"===r||"auto-end"===r?void 0:ht(e,r),middleware:yt({placement:r,flipDisabled:i,flipPlacements:a,offsetDistance:l,offsetSkidding:c,arrowEl:s,type:f})});if(s&&y.arrow){const{x:n,y:e}=y.arrow,o=m.split("-")[0],r=null!=n?"left":"top",i=wt[o],a={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout="left"===o||"right"===o?"horizontal":"vertical"),Object.assign(s.style,{...a,[r]:`${"left"==r?n:e}px`,[o]:"100%",transform:i})}const g=y.hide?.referenceHidden,h=g?"hidden":null,x=h?"none":null;e.setAttribute(ut,m);const w=`translate(${Math.round(u)}px,${Math.round(d)}px)`;Object.assign(e.style,{visibility:h,pointerEvents:x,position:p,top:"0",left:"0",transform:w})},ut="data-placement",dt=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],mt="bottom-start",pt={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};function yt({placement:t,flipDisabled:n,flipPlacements:e,offsetDistance:o,offsetSkidding:a,arrowEl:l,type:c}){const s=[(void 0===f&&(f={}),{name:"shift",options:f,async fn(t){const{x:n,y:e,placement:o}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:a={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...l}=m(f,t),c={x:n,y:e},s=await D(t,l),u=x(p(o)),y=g(u);let h=c[y],w=c[u];r&&(h=d(h+s["y"===y?"top":"left"],h,h-s["y"===y?"bottom":"right"])),i&&(w=d(w+s["y"===u?"top":"left"],w,w-s["y"===u?"bottom":"right"]));const v=a.fn({...t,[y]:h,[u]:w});return{...v,data:{x:v.x-n,y:v.y-e}}}}),M()];var f;if("menu"===c)return[...s,R({fallbackPlacements:e||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if("popover"===c||"tooltip"===c){const c=[...s,F({mainAxis:"number"==typeof o?o:0,crossAxis:"number"==typeof a?a:0})];return"auto"===t||"auto-start"===t||"auto-end"===t?c.push(function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(n){var e,o,i;const{rects:a,middlewareData:l,placement:c,platform:s,elements:f}=n,{crossAxis:u=!1,alignment:d,allowedPlacements:g=r,autoAlignment:h=!0,...x}=m(t,n),w=void 0!==d||g===r?function(t,n,e){return(t?[...e.filter((n=>y(n)===t)),...e.filter((n=>y(n)!==t))]:e.filter((t=>p(t)===t))).filter((e=>!t||y(e)===t||!!n&&b(e)!==e))}(d||null,h,g):g,A=await D(n,x),S=(null==(e=l.autoPlacement)?void 0:e.index)||0,k=w[S];if(null==k)return{};const P=v(k,a,await(null==s.isRTL?void 0:s.isRTL(f.floating)));if(c!==k)return{reset:{placement:w[0]}};const R=[A[p(k)],A[P[0]],A[P[1]]],E=[...(null==(o=l.autoPlacement)?void 0:o.overflows)||[],{placement:k,overflows:R}],O=w[S+1];if(O)return{data:{index:S+1,overflows:E},reset:{placement:O}};const M=E.map((t=>{const n=y(t.placement);return[t.placement,n&&u?t.overflows.slice(0,2).reduce(((t,n)=>t+n),0):t.overflows[0],t.overflows]})).sort(((t,n)=>t[1]-n[1])),F=(null==(i=M.filter((t=>t[2].slice(0,y(t[0])?2:3).every((t=>t<=0))))[0])?void 0:i[0])||M[0][0];return F!==c?{data:{index:S+1,overflows:E},reset:{placement:F}}:{}}}}({alignment:"auto-start"===t?"start":"auto-end"===t?"end":null})):n||c.push(R(e?{fallbackPlacements:e}:{})),l&&c.push((t=>({name:"arrow",options:t,async fn(n){const{x:e,y:o,placement:r,rects:a,platform:l,elements:c}=n,{element:s,padding:f=0}=m(t,n)||{};if(null==s)return{};const u=S(f),p={x:e,y:o},g=w(r),x=h(g),v=await l.getDimensions(s),b="y"===g,A=b?"top":"left",k=b?"bottom":"right",P=b?"clientHeight":"clientWidth",D=a.reference[x]+a.reference[g]-p[g]-a.floating[x],R=p[g]-a.reference[g],E=await(null==l.getOffsetParent?void 0:l.getOffsetParent(s));let O=E?E[P]:0;O&&await(null==l.isElement?void 0:l.isElement(E))||(O=c.floating[P]||a.floating[x]);const M=D/2-R/2,F=O/2-v[x]/2-1,T=i(u[A],F),C=i(u[k],F),$=T,z=O-v[x]-C,B=O/2-v[x]/2+M,L=d($,B,z),j=null!=y(r)&&B!=L&&a.reference[x]/2-(B<$?T:C)-v[x]/2<0?B<$?$-B:z-B:0;return{[g]:p[g]-j,data:{[g]:L,centerOffset:B-L+j}}}}))({element:l})),c}return[]}function gt(t,n){const e=t.filter((t=>dt.includes(t)));return e.length!==t.length&&console.warn(`${n.tagName}: Invalid value found in: flipPlacements. Try any of these: ${dt.map((t=>`"${t}"`)).join(", ").trim()}`,{el:n}),e}function ht(n,e){const o=["left","right"];return"rtl"===t(n)&&o.reverse(),e.replace(/leading/gi,o[0]).replace(/trailing/gi,o[1])}async function xt(t,e,o=!1){if(!t.open)return;const r=o?function(t){let e=bt.get(t);return e||(e=n(ft,100,{leading:!0,maxWait:100}),bt.set(t,e),e)}(t):ft;return r(t,e)}const wt={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},vt=new WeakMap,bt=new WeakMap;function At(t,n,e){e&&n&&(St(t,n,e),Object.assign(e.style,{visibility:"hidden",pointerEvents:"none",position:t.overlayPositioning,top:"0",left:"0"}),vt.set(t,function(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,d=K(t),m=r||l?[...d?G(d):[],...G(n)]:[];m.forEach((t=>{r&&t.addEventListener("scroll",e,{passive:!0}),l&&t.addEventListener("resize",e)}));const p=d&&f?function(t,n){let e,o=null;const r=$(t);function l(){clearTimeout(e),o&&o.disconnect(),o=null}return function s(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),l();const{left:d,top:m,width:p,height:y}=t.getBoundingClientRect();if(f||n(),!p||!y)return;const g={rootMargin:-c(m)+"px "+-c(r.clientWidth-(d+p))+"px "+-c(r.clientHeight-(m+y))+"px "+-c(d)+"px",threshold:a(0,i(1,u))||1};let h=!0;function x(t){const n=t[0].intersectionRatio;if(n!==u){if(!h)return s();n?s(!1,n):e=setTimeout((()=>{s(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(x,{...g,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,g)}o.observe(t)}(!0),l}(d,e):null;let y,g=-1,h=null;s&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&h&&(h.unobserve(n),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{h&&h.observe(n)}))),e()})),d&&!u&&h.observe(d),h.observe(n));let x=u?tt(t):null;return u&&function n(){const o=tt(t);!x||o.x===x.x&&o.y===x.y&&o.width===x.width&&o.height===x.height||e(),x=o,y=requestAnimationFrame(n)}(),e(),()=>{m.forEach((t=>{r&&t.removeEventListener("scroll",e),l&&t.removeEventListener("resize",e)})),p&&p(),h&&h.disconnect(),h=null,u&&cancelAnimationFrame(y)}}(n,e,(()=>t.reposition()))))}function St(t,n,e){e&&n&&(vt.get(t)?.(),vt.delete(t),bt.get(t)?.cancel(),bt.delete(t))}const kt=Math.ceil(Math.hypot(4,4));export{pt as F,St as a,kt as b,At as c,mt as d,gt as f,xt as r}
6
+ import{g as t}from"./p-52c73926.js";import{d as n}from"./p-fae14e80.js";const e=["top","right","bottom","left"],o=["start","end"],r=e.reduce(((t,n)=>t.concat(n,n+"-"+o[0],n+"-"+o[1])),[]),i=Math.min,a=Math.max,l=Math.round,c=Math.floor,s=t=>({x:t,y:t}),f={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function d(t,n,e){return a(t,i(n,e))}function m(t,n){return"function"==typeof t?t(n):t}function p(t){return t.split("-")[0]}function y(t){return t.split("-")[1]}function g(t){return"x"===t?"y":"x"}function h(t){return"y"===t?"height":"width"}function x(t){return["top","bottom"].includes(p(t))?"y":"x"}function w(t){return g(x(t))}function v(t,n,e){void 0===e&&(e=!1);const o=y(t),r=w(t),i=h(r);let a="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=A(a)),[a,A(a)]}function b(t){return t.replace(/start|end/g,(t=>u[t]))}function A(t){return t.replace(/left|right|bottom|top/g,(t=>f[t]))}function S(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function k(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function P(t,n,e){let{reference:o,floating:r}=t;const i=x(n),a=w(n),l=h(a),c=p(n),s="y"===i,f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let m;switch(c){case"top":m={x:f,y:o.y-r.height};break;case"bottom":m={x:f,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:u};break;case"left":m={x:o.x-r.width,y:u};break;default:m={x:o.x,y:o.y}}switch(y(n)){case"start":m[a]-=d*(e&&s?-1:1);break;case"end":m[a]+=d*(e&&s?-1:1)}return m}async function D(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=m(n,t),y=S(p),g=l[d?"floating"===u?"reference":"floating":u],h=k(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(g)))||e?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:f,strategy:c})),x="floating"===u?{...a.floating,x:o,y:r}:a.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),v=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:w,strategy:c}):x);return{top:(h.top-b.top+y.top)/v.y,bottom:(b.bottom-h.bottom+y.bottom)/v.y,left:(h.left-b.left+y.left)/v.x,right:(b.right-h.right+y.right)/v.x}}const R=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e;const{placement:o,middlewareData:r,rects:i,initialPlacement:a,platform:l,elements:c}=n,{mainAxis:s=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...x}=m(t,n),w=p(o),S=p(a)===a,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),P=u||(S||!h?[A(a)]:function(t){const n=A(t);return[b(t),n,b(n)]}(a));u||"none"===g||P.push(...function(t,n,e,o){const r=y(t);let i=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(p(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(b)))),i}(a,h,g,k));const R=[a,...P],E=await D(n,x),O=[];let M=(null==(e=r.flip)?void 0:e.overflows)||[];if(s&&O.push(E[w]),f){const t=v(o,i,k);O.push(E[t[0]],E[t[1]])}if(M=[...M,{placement:o,overflows:O}],!O.every((t=>t<=0))){var F,T;const t=((null==(F=r.flip)?void 0:F.index)||0)+1,n=R[t];if(n)return{data:{index:t,overflows:M},reset:{placement:n}};let e=null==(T=M.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:T.placement;if(!e)switch(d){case"bestFit":{var C;const t=null==(C=M.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:C[0];t&&(e=t);break}case"initialPlacement":e=a}if(o!==e)return{reset:{placement:e}}}return{}}}};function E(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function O(t){return e.some((n=>t[n]>=0))}const M=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:o="referenceHidden",...r}=m(t,n);switch(o){case"referenceHidden":{const t=E(await D(n,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:O(t)}}}case"escaped":{const t=E(await D(n,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:O(t)}}}default:return{}}}}},F=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){const{x:e,y:o}=n,r=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=p(e),l=y(e),c="y"===x(e),s=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,u=m(n,t);let{mainAxis:d,crossAxis:g,alignmentAxis:h}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&"number"==typeof h&&(g="end"===l?-1*h:h),c?{x:g*f,y:d*s}:{x:d*s,y:g*f}}(n,t);return{x:e+r.x,y:o+r.y,data:r}}}};function T(t){return z(t)?(t.nodeName||"").toLowerCase():"#document"}function C(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function $(t){var n;return null==(n=(z(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function z(t){return t instanceof Node||t instanceof C(t).Node}function B(t){return t instanceof Element||t instanceof C(t).Element}function L(t){return t instanceof HTMLElement||t instanceof C(t).HTMLElement}function j(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof C(t).ShadowRoot)}function H(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=Y(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function I(t){return["table","td","th"].includes(T(t))}function W(t){const n=N(),e=Y(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function N(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function q(t){return["html","body","#document"].includes(T(t))}function Y(t){return C(t).getComputedStyle(t)}function V(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function X(t){if("html"===T(t))return t;const n=t.assignedSlot||t.parentNode||j(t)&&t.host||$(t);return j(n)?n.host:n}function _(t){const n=X(t);return q(n)?t.ownerDocument?t.ownerDocument.body:t.body:L(n)&&H(n)?n:_(n)}function G(t,n){var e;void 0===n&&(n=[]);const o=_(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=C(o);return r?n.concat(i,i.visualViewport||[],H(o)?o:[]):n.concat(o,G(o))}function J(t){const n=Y(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=L(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,c=l(e)!==i||l(o)!==a;return c&&(e=i,o=a),{width:e,height:o,$:c}}function K(t){return B(t)?t:t.contextElement}function Q(t){const n=K(t);if(!L(n))return s(1);const e=n.getBoundingClientRect(),{width:o,height:r,$:i}=J(n);let a=(i?l(e.width):e.width)/o,c=(i?l(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const U=s(0);function Z(t){const n=C(t);return N()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:U}function tt(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=K(t);let a=s(1);n&&(o?B(o)&&(a=Q(o)):a=Q(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==C(t))&&n}(i,e,o)?Z(i):s(0);let c=(r.left+l.x)/a.x,f=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const t=C(i),n=o&&B(o)?C(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=Q(e),n=e.getBoundingClientRect(),o=Y(e),r=n.left+(e.clientLeft+parseFloat(o.paddingLeft))*t.x,i=n.top+(e.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,f*=t.y,u*=t.x,d*=t.y,c+=r,f+=i,e=C(e).frameElement}}return k({width:u,height:d,x:c,y:f})}function nt(t){return tt($(t)).left+V(t).scrollLeft}function et(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=C(t),o=$(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=N();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,e);else if("document"===n)o=function(t){const n=$(t),e=V(t),o=t.ownerDocument.body,r=a(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=a(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+nt(t);const c=-e.scrollTop;return"rtl"===Y(o).direction&&(l+=a(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:l,y:c}}($(t));else if(B(n))o=function(t,n){const e=tt(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=L(t)?Q(t):s(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=Z(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return k(o)}function ot(t,n){const e=X(t);return!(e===n||!B(e)||q(e))&&("fixed"===Y(e).position||ot(e,n))}function rt(t,n,e){const o=L(n),r=$(n),i="fixed"===e,a=tt(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const c=s(0);if(o||!o&&!i)if(("body"!==T(n)||H(r))&&(l=V(n)),o){const t=tt(n,!0,i,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else r&&(c.x=nt(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function it(t,n){return L(t)&&"fixed"!==Y(t).position?n?n(t):t.offsetParent:null}function at(t,n){const e=C(t);if(!L(t))return e;let o=it(t,n);for(;o&&I(o)&&"static"===Y(o).position;)o=it(o,n);return o&&("html"===T(o)||"body"===T(o)&&"static"===Y(o).position&&!W(o))?e:o||function(t){let n=X(t);for(;L(n)&&!q(n);){if(W(n))return n;n=X(n)}return null}(t)||e}const lt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=L(e),i=$(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0},l=s(1);const c=s(0);if((r||!r&&"fixed"!==o)&&(("body"!==T(e)||H(i))&&(a=V(e)),L(e))){const t=tt(e);l=Q(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+c.x,y:n.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:$,getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const l=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=G(t).filter((t=>B(t)&&"body"!==T(t))),r=null;const i="fixed"===Y(t).position;let a=i?X(t):t;for(;B(a)&&!q(a);){const n=Y(a),e=W(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||H(a)&&!e&&ot(t,a))?o=o.filter((t=>t!==a)):r=n,a=X(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],c=l.reduce(((t,e)=>{const o=et(n,e,r);return t.top=a(o.top,t.top),t.right=i(o.right,t.right),t.bottom=i(o.bottom,t.bottom),t.left=a(o.left,t.left),t}),et(n,l[0],r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:at,getElementRects:async function(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||at,i=this.getDimensions;return{reference:rt(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return J(t)},getScale:Q,isElement:B,isRTL:function(t){return"rtl"===Y(t).direction}};function ct(t){return function(t){for(let n=t;n;n=st(n))if(n instanceof Element&&"none"===getComputedStyle(n).display)return null;for(let n=st(t);n;n=st(n)){if(!(n instanceof Element))continue;const t=getComputedStyle(n);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return n;if("BODY"===n.tagName)return n}}return null}(t)}function st(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}!function(){{const t=lt.getOffsetParent;lt.getOffsetParent=n=>t(n,ct)}}();const ft=async(t,{referenceEl:n,floatingEl:e,overlayPositioning:o="absolute",placement:r,flipDisabled:i,flipPlacements:a,offsetDistance:l,offsetSkidding:c,arrowEl:s,type:f})=>{if(!n||!e)return null;const{x:u,y:d,placement:m,strategy:p,middlewareData:y}=await((t,n,e)=>{const o=new Map,r={platform:lt,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=e,l=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(n));let s=await a.getElementRects({reference:t,floating:n,strategy:r}),{x:f,y:u}=P(s,o,c),d=o,m={},p=0;for(let e=0;e<l.length;e++){const{name:i,fn:y}=l[e],{x:g,y:h,data:x,reset:w}=await y({x:f,y:u,initialPlacement:o,placement:d,strategy:r,middlewareData:m,rects:s,platform:a,elements:{reference:t,floating:n}});f=null!=g?g:f,u=null!=h?h:u,m={...m,[i]:{...m[i],...x}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await a.getElementRects({reference:t,floating:n,strategy:r}):w.rects),({x:f,y:u}=P(s,d,c))),e=-1)}return{x:f,y:u,placement:d,strategy:r,middlewareData:m}})(t,n,{...r,platform:i})})(n,e,{strategy:o,placement:"auto"===r||"auto-start"===r||"auto-end"===r?void 0:ht(e,r),middleware:yt({placement:r,flipDisabled:i,flipPlacements:a,offsetDistance:l,offsetSkidding:c,arrowEl:s,type:f})});if(s&&y.arrow){const{x:n,y:e}=y.arrow,o=m.split("-")[0],r=null!=n?"left":"top",i=wt[o],a={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout="left"===o||"right"===o?"horizontal":"vertical"),Object.assign(s.style,{...a,[r]:`${"left"==r?n:e}px`,[o]:"100%",transform:i})}const g=y.hide?.referenceHidden,h=g?"hidden":null,x=h?"none":null;e.setAttribute(ut,m);const w=`translate(${Math.round(u)}px,${Math.round(d)}px)`;Object.assign(e.style,{visibility:h,pointerEvents:x,position:p,top:"0",left:"0",transform:w})},ut="data-placement",dt=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],mt="bottom-start",pt={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};function yt({placement:t,flipDisabled:n,flipPlacements:e,offsetDistance:o,offsetSkidding:a,arrowEl:l,type:c}){const s=[(void 0===f&&(f={}),{name:"shift",options:f,async fn(t){const{x:n,y:e,placement:o}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:a={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...l}=m(f,t),c={x:n,y:e},s=await D(t,l),u=x(p(o)),y=g(u);let h=c[y],w=c[u];r&&(h=d(h+s["y"===y?"top":"left"],h,h-s["y"===y?"bottom":"right"])),i&&(w=d(w+s["y"===u?"top":"left"],w,w-s["y"===u?"bottom":"right"]));const v=a.fn({...t,[y]:h,[u]:w});return{...v,data:{x:v.x-n,y:v.y-e}}}}),M()];var f;if("menu"===c)return[...s,R({fallbackPlacements:e||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if("popover"===c||"tooltip"===c){const c=[...s,F({mainAxis:"number"==typeof o?o:0,crossAxis:"number"==typeof a?a:0})];return"auto"===t||"auto-start"===t||"auto-end"===t?c.push(function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(n){var e,o,i;const{rects:a,middlewareData:l,placement:c,platform:s,elements:f}=n,{crossAxis:u=!1,alignment:d,allowedPlacements:g=r,autoAlignment:h=!0,...x}=m(t,n),w=void 0!==d||g===r?function(t,n,e){return(t?[...e.filter((n=>y(n)===t)),...e.filter((n=>y(n)!==t))]:e.filter((t=>p(t)===t))).filter((e=>!t||y(e)===t||!!n&&b(e)!==e))}(d||null,h,g):g,A=await D(n,x),S=(null==(e=l.autoPlacement)?void 0:e.index)||0,k=w[S];if(null==k)return{};const P=v(k,a,await(null==s.isRTL?void 0:s.isRTL(f.floating)));if(c!==k)return{reset:{placement:w[0]}};const R=[A[p(k)],A[P[0]],A[P[1]]],E=[...(null==(o=l.autoPlacement)?void 0:o.overflows)||[],{placement:k,overflows:R}],O=w[S+1];if(O)return{data:{index:S+1,overflows:E},reset:{placement:O}};const M=E.map((t=>{const n=y(t.placement);return[t.placement,n&&u?t.overflows.slice(0,2).reduce(((t,n)=>t+n),0):t.overflows[0],t.overflows]})).sort(((t,n)=>t[1]-n[1])),F=(null==(i=M.filter((t=>t[2].slice(0,y(t[0])?2:3).every((t=>t<=0))))[0])?void 0:i[0])||M[0][0];return F!==c?{data:{index:S+1,overflows:E},reset:{placement:F}}:{}}}}({alignment:"auto-start"===t?"start":"auto-end"===t?"end":null})):n||c.push(R(e?{fallbackPlacements:e}:{})),l&&c.push((t=>({name:"arrow",options:t,async fn(n){const{x:e,y:o,placement:r,rects:a,platform:l,elements:c}=n,{element:s,padding:f=0}=m(t,n)||{};if(null==s)return{};const u=S(f),p={x:e,y:o},g=w(r),x=h(g),v=await l.getDimensions(s),b="y"===g,A=b?"top":"left",k=b?"bottom":"right",P=b?"clientHeight":"clientWidth",D=a.reference[x]+a.reference[g]-p[g]-a.floating[x],R=p[g]-a.reference[g],E=await(null==l.getOffsetParent?void 0:l.getOffsetParent(s));let O=E?E[P]:0;O&&await(null==l.isElement?void 0:l.isElement(E))||(O=c.floating[P]||a.floating[x]);const M=D/2-R/2,F=O/2-v[x]/2-1,T=i(u[A],F),C=i(u[k],F),$=T,z=O-v[x]-C,B=O/2-v[x]/2+M,L=d($,B,z),j=null!=y(r)&&B!=L&&a.reference[x]/2-(B<$?T:C)-v[x]/2<0?B<$?$-B:z-B:0;return{[g]:p[g]-j,data:{[g]:L,centerOffset:B-L+j}}}}))({element:l})),c}return[]}function gt(t,n){const e=t.filter((t=>dt.includes(t)));return e.length!==t.length&&console.warn(`${n.tagName}: Invalid value found in: flipPlacements. Try any of these: ${dt.map((t=>`"${t}"`)).join(", ").trim()}`,{el:n}),e}function ht(n,e){const o=["left","right"];return"rtl"===t(n)&&o.reverse(),e.replace(/leading/gi,o[0]).replace(/trailing/gi,o[1])}async function xt(t,e,o=!1){if(!t.open)return;const r=o?function(t){let e=bt.get(t);return e||(e=n(ft,100,{leading:!0,maxWait:100}),bt.set(t,e),e)}(t):ft;return r(t,e)}const wt={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},vt=new WeakMap,bt=new WeakMap;function At(t,n,e){e&&n&&(St(t,n,e),Object.assign(e.style,{visibility:"hidden",pointerEvents:"none",position:t.overlayPositioning,top:"0",left:"0"}),vt.set(t,function(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,d=K(t),m=r||l?[...d?G(d):[],...G(n)]:[];m.forEach((t=>{r&&t.addEventListener("scroll",e,{passive:!0}),l&&t.addEventListener("resize",e)}));const p=d&&f?function(t,n){let e,o=null;const r=$(t);function l(){clearTimeout(e),o&&o.disconnect(),o=null}return function s(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),l();const{left:d,top:m,width:p,height:y}=t.getBoundingClientRect();if(f||n(),!p||!y)return;const g={rootMargin:-c(m)+"px "+-c(r.clientWidth-(d+p))+"px "+-c(r.clientHeight-(m+y))+"px "+-c(d)+"px",threshold:a(0,i(1,u))||1};let h=!0;function x(t){const n=t[0].intersectionRatio;if(n!==u){if(!h)return s();n?s(!1,n):e=setTimeout((()=>{s(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(x,{...g,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,g)}o.observe(t)}(!0),l}(d,e):null;let y,g=-1,h=null;s&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&h&&(h.unobserve(n),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{h&&h.observe(n)}))),e()})),d&&!u&&h.observe(d),h.observe(n));let x=u?tt(t):null;return u&&function n(){const o=tt(t);!x||o.x===x.x&&o.y===x.y&&o.width===x.width&&o.height===x.height||e(),x=o,y=requestAnimationFrame(n)}(),e(),()=>{m.forEach((t=>{r&&t.removeEventListener("scroll",e),l&&t.removeEventListener("resize",e)})),p&&p(),h&&h.disconnect(),h=null,u&&cancelAnimationFrame(y)}}(n,e,(()=>t.reposition()))))}function St(t,n,e){e&&n&&(vt.get(t)?.(),vt.delete(t),bt.get(t)?.cancel(),bt.delete(t))}const kt=Math.ceil(Math.hypot(4,4));export{pt as F,St as a,kt as b,At as c,mt as d,gt as f,xt as r}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
+ * v1.7.1-next.1
5
+ */
6
+ import{r as e,h as t,H as i,a}from"./p-c6009ee9.js";import{s as l,a as c,c as s}from"./p-5acf2842.js";import{u as o,s as n,c as r,d as h}from"./p-623921b4.js";import{c as d,u,d as v}from"./p-e346bbb8.js";import{c as b,d as p}from"./p-261d319c.js";import"./p-20af09cf.js";import"./p-52c73926.js";import"./p-935ab417.js";import"./p-68d264c9.js";import"./p-154261e7.js";import"./p-9dca62f6.js";const g=class{constructor(t){e(this,t),this.updateScreenReaderContentsText=()=>{this.contentsText=this.el.textContent},this.onContainerBlur=()=>{this.focused=!1},this.onContainerFocus=()=>{this.focused=!0},this.alignment="start",this.colSpan=void 0,this.rowSpan=void 0,this.disabled=void 0,this.numberCell=void 0,this.parentRowIsSelected=void 0,this.parentRowPositionLocalized=void 0,this.parentRowType=void 0,this.positionInRow=void 0,this.readCellContentsToAT=void 0,this.scale="m",this.selectionCell=void 0,this.messages=void 0,this.messageOverrides=void 0,this.contentsText="",this.defaultMessages=void 0,this.focused=!1,this.selectionText="",this.effectiveLocale=""}onSelectedChange(){this.updateScreenReaderSelectionText()}onMessagesChange(){}effectiveLocaleChange(){o(this,this.effectiveLocale)}async componentWillLoad(){l(this),await n(this),this.updateScreenReaderContentsText(),this.updateScreenReaderSelectionText()}componentDidLoad(){c(this)}connectedCallback(){b(this),r(this),d(this)}componentDidRender(){u(this)}disconnectedCallback(){p(this),h(this),v(this)}async setFocus(){await s(this),this.containerEl.focus()}updateScreenReaderSelectionText(){this.selectionText=this.parentRowIsSelected?`${this.messages?.row} ${this.parentRowPositionLocalized} ${this.messages?.selected} ${this.messages?.keyboardDeselect}`:`${this.messages?.row} ${this.parentRowPositionLocalized} ${this.messages?.unselected} ${this.messages?.keyboardSelect}`}render(){return t(i,null,t("td",{"aria-disabled":this.disabled,class:{"footer-cell":"foot"===this.parentRowType,"number-cell":this.numberCell,"selection-cell":this.selectionCell,"selected-cell":this.parentRowIsSelected},colSpan:this.colSpan,onBlur:this.onContainerBlur,onFocus:this.onContainerFocus,role:"gridcell",rowSpan:this.rowSpan,tabIndex:this.disabled?-1:0,ref:e=>this.containerEl=e},(this.selectionCell||this.readCellContentsToAT)&&this.focused&&t("span",{"aria-hidden":!0,"aria-live":"polite",class:"assistive-text"},this.selectionCell&&this.selectionText,this.readCellContentsToAT&&!this.selectionCell&&this.contentsText),t("slot",{onSlotchange:this.updateScreenReaderContentsText})))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{parentRowIsSelected:["onSelectedChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};g.style=":host{--calcite-internal-table-cell-background-internal:var(--calcite-table-cell-background, transparent);--calcite-internal-table-cell-border-color-internal:var(--calcite-table-cell-border-color, transparent);display:contents}:host([alignment=center]) td{text-align:center}:host([alignment=end]) td{text-align:end}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}td{white-space:normal;text-align:start;vertical-align:middle;color:var(--calcite-ui-text-1);outline-color:transparent;background:var(--calcite-internal-table-cell-background);border-inline-end:1px solid var(--calcite-ui-border-3);font-size:var(--calcite-internal-table-cell-font-size);padding:var(--calcite-internal-table-cell-padding)}td:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.number-cell{background-color:var(--calcite-ui-foreground-2)}.footer-cell{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);border-block-start:1px solid var(--calcite-ui-border-3)}.number-cell,.selection-cell{border-inline-end:1px solid var(--calcite-ui-border-3);inline-size:2rem;min-inline-size:2rem}.selection-cell{cursor:pointer;color:var(--calcite-ui-text-3);inset-inline-start:2rem}.selected-cell:not(.number-cell):not(.footer-cell){--calcite-table-cell-background:var(--calcite-ui-foreground-current);background:var(--calcite-ui-foreground-current)}.selection-cell.selected-cell{box-shadow:inset 0.25rem 0 0 0 var(--calcite-ui-brand);color:var(--calcite-ui-brand)}.selection-cell.selected-cell calcite-icon{color:var(--calcite-ui-brand)}.selection-cell{vertical-align:middle}.selection-cell ::slotted(calcite-icon){pointer-events:none;margin-block-start:0.25rem}";const m=class{constructor(t){e(this,t),this.alignment="start",this.colSpan=void 0,this.description=void 0,this.heading=void 0,this.rowSpan=void 0,this.numberCell=!1,this.parentRowPosition=void 0,this.parentRowType=void 0,this.positionInRow=void 0,this.scale=void 0,this.selectedRowCount=void 0,this.selectedRowCountLocalized=void 0,this.selectionCell=!1,this.selectionMode=void 0,this.bodyRowCount=void 0,this.messages=void 0,this.messageOverrides=void 0,this.defaultMessages=void 0,this.screenReaderText="",this.effectiveLocale=""}onSelectedChange(){this.updateScreenReaderText()}onMessagesChange(){}async componentWillLoad(){l(this),await n(this),this.updateScreenReaderText()}componentDidLoad(){c(this)}connectedCallback(){b(this),r(this)}disconnectedCallback(){p(this),h(this)}effectiveLocaleChange(){o(this,this.effectiveLocale)}async setFocus(){await s(this),this.containerEl.focus()}updateScreenReaderText(){let e="";const t=`${this.selectedRowCountLocalized} ${this.messages?.selected}`;e=this.numberCell?this.messages?.rowNumber:"single"===this.selectionMode?`${this.messages?.selectionColumn}. ${t}`:this.bodyRowCount===this.selectedRowCount?`${this.messages?.selectionColumn}. ${this.messages?.all} ${t} ${this.messages?.keyboardDeselectAll}`:`${this.messages?.selectionColumn}. ${t} ${this.messages?.keyboardSelectAll}`,this.screenReaderText=e}render(){const e=this.selectedRowCount===this.bodyRowCount,a=e?"check-square-f":"check-square";return t(i,null,t("th",{"aria-colindex":"body"!==this.parentRowType?this.positionInRow:"",class:{"body-row":"body"===this.parentRowType,"footer-row":"foot"===this.parentRowType,"number-cell":this.numberCell,"selection-cell":this.selectionCell,"cell--multiple-selection":"multiple"===this.selectionMode},colSpan:this.colSpan,role:"columnheader",rowSpan:this.rowSpan,scope:this.rowSpan?"rowgroup":this.colSpan?"colgroup":"body"===this.parentRowType?"row":"col",tabIndex:0,ref:e=>this.containerEl=e},this.heading&&t("div",{class:"heading"},this.heading),this.description&&t("div",{class:"description"},this.description),this.selectionCell&&"multiple"===this.selectionMode&&t("calcite-icon",{class:{active:e},icon:a,scale:"l"===this.scale?"m":"s"}),(this.selectionCell||this.numberCell)&&t("span",{"aria-hidden":!0,"aria-live":"polite",class:"assistive-text"},this.screenReaderText)))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{selectedRowCount:["onSelectedChange"],selectedRowCountLocalized:["onSelectedChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};m.style=":host{--calcite-internal-table-header-background:var(--calcite-table-header-background, var(--calcite-ui-foreground-2));--calcite-internal-table-header-border-color:var(--calcite-table-border-color, var(--calcite-ui-border-3));display:contents}:host([alignment=center]) th{text-align:center}:host([alignment=end]) th{text-align:end}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}th{white-space:normal;text-align:start;vertical-align:top;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);outline-color:transparent;font-size:var(--calcite-internal-table-cell-font-size);border-inline-end:1px solid var(--calcite-internal-table-header-border-color);border-block-end:1px solid var(--calcite-internal-table-header-border-color);padding-block:calc(var(--calcite-internal-table-cell-padding) * 1.5);padding-inline:var(--calcite-internal-table-cell-padding);background-color:var(--calcite-internal-table-header-background)}th:focus-within{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}th.body-row,th.footer-row{vertical-align:middle;border-block-end:0}th.footer-row{border-block-start:1px solid var(--calcite-internal-table-header-border-color)}.cell--multiple-selection{cursor:pointer;vertical-align:middle;color:var(--calcite-ui-text-3)}.number-cell,.selection-cell{color:var(--calcite-ui-text-2);inline-size:2rem;min-inline-size:2rem}.selection-cell calcite-icon.active{color:var(--calcite-ui-brand)}.number-cell calcite-icon,.selection-cell calcite-icon{margin-inline-start:auto;margin-inline-end:auto;vertical-align:middle}.heading{color:var(--calcite-ui-text-1)}.description{color:var(--calcite-ui-text-3);font-size:var(--calcite-internal-table-cell-font-size-secondary)}";export{g as calcite_table_cell,m as calcite_table_header}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
- * v1.7.0
4
+ * v1.7.1-next.1
5
5
  */
6
- import{r as t,c as i,h as s,a as e,H as a}from"./p-142a242d.js";import{c as o,u as r,d as n}from"./p-847d1270.js";import{s as h,a as c,c as l}from"./p-f68ba10d.js";import{c as d,d as u}from"./p-509dbd5a.js";import{c as p}from"./p-5b034d91.js";import{u as m,c as v,s as b,d as w}from"./p-887f8437.js";import{g as f,m as g,d as x,a as y,s as k,h as L,b as j,c as C,k as I,e as D,i as z,f as H,j as A,l as F,n as S,r as R,o as B,p as U,q as _,t as E,L as M,I as O,C as V,S as q}from"./p-56b76e4d.js";import{d as K,a as T,c as W}from"./p-b839457c.js";import{d as P,h as $}from"./p-45d8c8ac.js";import{c as G,d as J}from"./p-9b128824.js";import{g as N}from"./p-382edd21.js";import"./p-7c081cef.js";import"./p-4b763869.js";import"./p-7db8ffd2.js";import"./p-6d4f1b53.js";import"./p-e5526dbf.js";var Q;function X(t,i,s){const{items:e,messages:a}=s,o=e.length,r=f(s,t)+1;return function(t,i,s,e){return t.replace("{position}",s.toString()).replace("{itemLabel}",i).replace("{total}",e.toString())}("idle"===i?a.dragHandleIdle:"active"===i?a.dragHandleActive:"change"===i?a.dragHandleChange:a.dragHandleCommit,t.label,r,o)}function Y(t){return{handle:t.composedPath().find((t=>void 0!==t.dataset?.jsHandle)),item:t.composedPath().find((t=>"calcite-value-list-item"===t.tagName?.toLowerCase()))}}!function(t){t.grip="grip"}(Q||(Q={}));const Z=class{constructor(s){t(this,s),this.calciteListChange=i(this,"calciteListChange",6),this.calciteListOrderChange=i(this,"calciteListOrderChange",6),this.calciteListFilter=i(this,"calciteListFilter",6),this.lastSelectedItem=null,this.mutationObserver=p("mutation",g.bind(this)),this.handleSelector=".handle",this.dragSelector="calcite-value-list-item",this.setFilterEl=t=>{this.filterEl=t},this.setFilteredItems=t=>{this.filteredItems=t},this.deselectRemovedItems=x.bind(this),this.deselectSiblingItems=y.bind(this),this.selectSiblings=k.bind(this),this.handleFilter=L.bind(this),this.handleFilterEvent=j.bind(this),this.getItemData=C.bind(this),this.keyDownHandler=t=>{if(t.defaultPrevented)return;const{handle:i,item:s}=Y(t);if(i&&!s.handleActivated&&" "===t.key&&this.updateScreenReaderText(X(s,"commit",this)),!i||!s.handleActivated)return void I.call(this,t);t.preventDefault();const{items:e}=this;if(" "===t.key&&this.updateScreenReaderText(X(s,"active",this)),"ArrowUp"!==t.key&&"ArrowDown"!==t.key||e.length<=1)return;const{el:a}=this,o=D(this,s,"ArrowUp"===t.key?"up":"down");if(o===e.length-1)a.appendChild(s);else{const t=a.children[o];a.insertBefore(s,t===s.nextElementSibling?t.nextElementSibling:t)}this.items=this.getItems(),this.calciteListOrderChange.emit(this.items.map((({value:t})=>t))),requestAnimationFrame((()=>P(i))),s.handleActivated=!0,this.updateHandleAriaLabel(i,X(s,"change",this))},this.storeAssistiveEl=t=>{this.assistiveTextEl=t},this.handleFocusIn=t=>{const{handle:i,item:s}=Y(t);!s?.handleActivated&&s&&i&&this.updateHandleAriaLabel(i,X(s,"idle",this))},this.disabled=!1,this.canPull=void 0,this.canPut=void 0,this.dragEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterEnabled=!1,this.filterPlaceholder=void 0,this.filterText=void 0,this.group=void 0,this.loading=!1,this.multiple=!1,this.selectionFollowsFocus=!1,this.messageOverrides=void 0,this.messages=void 0,this.dataForFilter=[],this.defaultMessages=void 0,this.effectiveLocale="",this.selectedValues=new Map}onMessagesChange(){}effectiveLocaleChange(){m(this,this.effectiveLocale)}connectedCallback(){K(this)||(o(this),d(this),v(this),z.call(this),H.call(this),this.setUpSorting())}async componentWillLoad(){h(this),await b(this)}componentDidLoad(){c(this),A.call(this)}componentDidRender(){r(this)}disconnectedCallback(){K(this)||(n(this),T(this),u(this),w(this),F.call(this))}calciteListFocusOutHandler(t){S.call(this,t)}calciteListItemRemoveHandler(t){R.call(this,t)}calciteListItemChangeHandler(t){B.call(this,t)}calciteInternalListItemPropsChangeHandler(t){t.stopPropagation(),this.setUpFilter()}calciteInternalListItemValueChangeHandler(t){U.call(this,t),t.stopPropagation()}onDragStart(){F.call(this)}onDragEnd(){H.call(this)}onDragSort(){this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const t=this.items.map((t=>t.value));this.calciteListOrderChange.emit(t)}getItems(){return Array.from(this.el.querySelectorAll("calcite-value-list-item"))}setUpItems(){_.call(this,"calcite-value-list-item"),this.setUpSorting()}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpSorting(){const{dragEnabled:t}=this;t&&W(this)}handleBlur(){this.dragEnabled&&this.updateScreenReaderText("")}async getSelectedItems(){return this.selectedValues}async setFocus(t){return await l(this),E.call(this,t)}getIconType(){let t=null;return this.dragEnabled&&(t=Q.grip),t}updateScreenReaderText(t){this.assistiveTextEl.textContent=t}updateHandleAriaLabel(t,i){t.ariaLabel=i}handleValueListItemBlur(t){const{item:i,handle:s}=t.detail;!i?.handleActivated&&i&&this.updateHandleAriaLabel(s,X(i,"idle",this)),t.stopPropagation()}render(){return s(M,{onBlur:this.handleBlur,onFocusin:this.handleFocusIn,onKeyDown:this.keyDownHandler,props:this})}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};Z.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-value-list-item:last-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header{margin-block-end:0.25rem;display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-app-z-index-sticky)}calcite-filter{margin-block-end:1px}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}";const tt="actions-end",it="actions-start",st=class{constructor(s){t(this,s),this.calciteListItemChange=i(this,"calciteListItemChange",6),this.calciteListItemRemove=i(this,"calciteListItemRemove",7),this.calciteValueListItemDragHandleBlur=i(this,"calciteValueListItemDragHandleBlur",6),this.pickListItem=null,this.guid=`calcite-value-list-item-${N()}`,this.getPickListRef=t=>this.pickListItem=t,this.handleKeyDown=t=>{" "===t.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1,this.calciteValueListItemDragHandleBlur.emit({item:this.el,handle:this.handleEl})},this.handleSelectChange=t=>{this.selected=t.detail.selected},this.description=void 0,this.disabled=!1,this.deselectDisabled=!1,this.nonInteractive=!1,this.handleActivated=!1,this.icon=null,this.iconFlipRtl=!1,this.label=void 0,this.metadata=void 0,this.removable=!1,this.selected=!1,this.value=void 0}connectedCallback(){G(this),o(this)}disconnectedCallback(){J(this),n(this)}componentWillLoad(){h(this)}componentDidLoad(){c(this)}componentDidRender(){r(this,!!this.el.closest("calcite-value-list")&&"managed")}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){return await l(this),this.pickListItem?.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;return $(t,tt)?s("slot",{name:tt,slot:q.actionsEnd}):null}renderActionsStart(){const{el:t}=this;return $(t,it)?s("slot",{name:it,slot:q.actionsStart}):null}renderHandle(){const{icon:t,iconFlipRtl:i}=this;if(t===O.grip)return s("span",{class:{[V.handle]:!0,[V.handleActivated]:this.handleActivated},"data-js-handle":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>this.handleEl=t,role:"button",tabindex:"0"},s("calcite-icon",{flipRtl:i,icon:"drag",scale:"s"}))}render(){return s(a,{id:this.el.id||this.guid},this.renderHandle(),s("calcite-pick-list-item",{description:this.description,deselectDisabled:this.deselectDisabled,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,removable:this.removable,selected:this.selected,value:this.value,ref:this.getPickListRef},this.renderActionsStart(),this.renderActionsEnd()))}get el(){return e(this)}};st.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{margin-block-end:1px;box-sizing:border-box;display:flex;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}:host *{box-sizing:border-box}calcite-pick-list-item{position:relative;margin:0px;flex-grow:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([active]),:host([selected]){--tw-shadow:0 0 0 1px var(--calcite-ui-brand);--tw-shadow-colored:0 0 0 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)}.handle{display:flex;cursor:move;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding-block:0px;padding-inline:0.25rem;color:var(--calcite-ui-border-input);outline-color:transparent}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hidden]){display:none}[hidden]{display:none}";export{Z as calcite_value_list,st as calcite_value_list_item}
6
+ import{r as t,c as i,h as s,a as e,H as a}from"./p-c6009ee9.js";import{c as o,u as r,d as n}from"./p-e346bbb8.js";import{s as h,a as c,c as l}from"./p-5acf2842.js";import{c as d,d as u}from"./p-261d319c.js";import{c as p}from"./p-9dca62f6.js";import{u as m,c as v,s as w,d as f}from"./p-623921b4.js";import{g as b,m as g,d as x,a as y,s as k,h as L,b as j,c as C,k as I,e as D,i as z,f as H,j as A,l as F,n as S,r as R,o as B,p as U,q as _,t as E,L as M,I as O,C as V,S as q}from"./p-856d20b0.js";import{d as K,a as T,c as W}from"./p-d515d0ff.js";import{d as P,h as $}from"./p-52c73926.js";import{c as G,d as J}from"./p-1581e4df.js";import{g as N}from"./p-935ab417.js";import"./p-20af09cf.js";import"./p-154261e7.js";import"./p-ae058853.js";import"./p-fae14e80.js";import"./p-68d264c9.js";var Q;function X(t,i,s){const{items:e,messages:a}=s,o=e.length,r=b(s,t)+1;return function(t,i,s,e){return t.replace("{position}",s.toString()).replace("{itemLabel}",i).replace("{total}",e.toString())}("idle"===i?a.dragHandleIdle:"active"===i?a.dragHandleActive:"change"===i?a.dragHandleChange:a.dragHandleCommit,t.label,r,o)}function Y(t){return{handle:t.composedPath().find((t=>void 0!==t.dataset?.jsHandle)),item:t.composedPath().find((t=>"calcite-value-list-item"===t.tagName?.toLowerCase()))}}!function(t){t.grip="grip"}(Q||(Q={}));const Z=class{constructor(s){t(this,s),this.calciteListChange=i(this,"calciteListChange",6),this.calciteListOrderChange=i(this,"calciteListOrderChange",6),this.calciteListFilter=i(this,"calciteListFilter",6),this.lastSelectedItem=null,this.mutationObserver=p("mutation",g.bind(this)),this.handleSelector=".handle",this.dragSelector="calcite-value-list-item",this.setFilterEl=t=>{this.filterEl=t},this.setFilteredItems=t=>{this.filteredItems=t},this.deselectRemovedItems=x.bind(this),this.deselectSiblingItems=y.bind(this),this.selectSiblings=k.bind(this),this.handleFilter=L.bind(this),this.handleFilterEvent=j.bind(this),this.getItemData=C.bind(this),this.keyDownHandler=t=>{if(t.defaultPrevented)return;const{handle:i,item:s}=Y(t);if(i&&!s.handleActivated&&" "===t.key&&this.updateScreenReaderText(X(s,"commit",this)),!i||!s.handleActivated)return void I.call(this,t);t.preventDefault();const{items:e}=this;if(" "===t.key&&this.updateScreenReaderText(X(s,"active",this)),"ArrowUp"!==t.key&&"ArrowDown"!==t.key||e.length<=1)return;const{el:a}=this,o=D(this,s,"ArrowUp"===t.key?"up":"down");if(o===e.length-1)a.appendChild(s);else{const t=a.children[o];a.insertBefore(s,t===s.nextElementSibling?t.nextElementSibling:t)}this.items=this.getItems(),this.calciteListOrderChange.emit(this.items.map((({value:t})=>t))),requestAnimationFrame((()=>P(i))),s.handleActivated=!0,this.updateHandleAriaLabel(i,X(s,"change",this))},this.storeAssistiveEl=t=>{this.assistiveTextEl=t},this.handleFocusIn=t=>{const{handle:i,item:s}=Y(t);!s?.handleActivated&&s&&i&&this.updateHandleAriaLabel(i,X(s,"idle",this))},this.disabled=!1,this.canPull=void 0,this.canPut=void 0,this.dragEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterEnabled=!1,this.filterPlaceholder=void 0,this.filterText=void 0,this.group=void 0,this.loading=!1,this.multiple=!1,this.selectionFollowsFocus=!1,this.messageOverrides=void 0,this.messages=void 0,this.dataForFilter=[],this.defaultMessages=void 0,this.effectiveLocale="",this.selectedValues=new Map}onMessagesChange(){}effectiveLocaleChange(){m(this,this.effectiveLocale)}connectedCallback(){K(this)||(o(this),d(this),v(this),z.call(this),H.call(this),this.setUpSorting())}async componentWillLoad(){h(this),await w(this)}componentDidLoad(){c(this),A.call(this)}componentDidRender(){r(this)}disconnectedCallback(){K(this)||(n(this),T(this),u(this),f(this),F.call(this))}calciteListFocusOutHandler(t){S.call(this,t)}calciteListItemRemoveHandler(t){R.call(this,t)}calciteListItemChangeHandler(t){B.call(this,t)}calciteInternalListItemPropsChangeHandler(t){t.stopPropagation(),this.setUpFilter()}calciteInternalListItemValueChangeHandler(t){U.call(this,t),t.stopPropagation()}onDragStart(){F.call(this)}onDragEnd(){H.call(this)}onDragSort(){this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const t=this.items.map((t=>t.value));this.calciteListOrderChange.emit(t)}getItems(){return Array.from(this.el.querySelectorAll("calcite-value-list-item"))}setUpItems(){_.call(this,"calcite-value-list-item"),this.setUpSorting()}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpSorting(){const{dragEnabled:t}=this;t&&W(this)}handleBlur(){this.dragEnabled&&this.updateScreenReaderText("")}async getSelectedItems(){return this.selectedValues}async setFocus(t){return await l(this),E.call(this,t)}getIconType(){let t=null;return this.dragEnabled&&(t=Q.grip),t}updateScreenReaderText(t){this.assistiveTextEl.textContent=t}updateHandleAriaLabel(t,i){t.ariaLabel=i}handleValueListItemBlur(t){const{item:i,handle:s}=t.detail;!i?.handleActivated&&i&&this.updateHandleAriaLabel(s,X(i,"idle",this)),t.stopPropagation()}render(){return s(M,{onBlur:this.handleBlur,onFocusin:this.handleFocusIn,onKeyDown:this.keyDownHandler,props:this})}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};Z.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-value-list-item:last-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header{margin-block-end:0.25rem;display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-app-z-index-sticky)}calcite-filter{margin-block-end:1px}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}";const tt="actions-end",it="actions-start",st=class{constructor(s){t(this,s),this.calciteListItemChange=i(this,"calciteListItemChange",6),this.calciteListItemRemove=i(this,"calciteListItemRemove",7),this.calciteValueListItemDragHandleBlur=i(this,"calciteValueListItemDragHandleBlur",6),this.pickListItem=null,this.guid=`calcite-value-list-item-${N()}`,this.getPickListRef=t=>this.pickListItem=t,this.handleKeyDown=t=>{" "===t.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1,this.calciteValueListItemDragHandleBlur.emit({item:this.el,handle:this.handleEl})},this.handleSelectChange=t=>{this.selected=t.detail.selected},this.description=void 0,this.disabled=!1,this.deselectDisabled=!1,this.nonInteractive=!1,this.handleActivated=!1,this.icon=null,this.iconFlipRtl=!1,this.label=void 0,this.metadata=void 0,this.removable=!1,this.selected=!1,this.value=void 0}connectedCallback(){G(this),o(this)}disconnectedCallback(){J(this),n(this)}componentWillLoad(){h(this)}componentDidLoad(){c(this)}componentDidRender(){r(this,!!this.el.closest("calcite-value-list")&&"managed")}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){return await l(this),this.pickListItem?.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;return $(t,tt)?s("slot",{name:tt,slot:q.actionsEnd}):null}renderActionsStart(){const{el:t}=this;return $(t,it)?s("slot",{name:it,slot:q.actionsStart}):null}renderHandle(){const{icon:t,iconFlipRtl:i}=this;if(t===O.grip)return s("span",{class:{[V.handle]:!0,[V.handleActivated]:this.handleActivated},"data-js-handle":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>this.handleEl=t,role:"button",tabindex:"0"},s("calcite-icon",{flipRtl:i,icon:"drag",scale:"s"}))}render(){return s(a,{id:this.el.id||this.guid},this.renderHandle(),s("calcite-pick-list-item",{description:this.description,deselectDisabled:this.deselectDisabled,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,removable:this.removable,selected:this.selected,value:this.value,ref:this.getPickListRef},this.renderActionsStart(),this.renderActionsEnd()))}get el(){return e(this)}};st.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{margin-block-end:1px;box-sizing:border-box;display:flex;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}:host *{box-sizing:border-box}calcite-pick-list-item{position:relative;margin:0px;flex-grow:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([active]),:host([selected]){--tw-shadow:0 0 0 1px var(--calcite-ui-brand);--tw-shadow-colored:0 0 0 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)}.handle{display:flex;cursor:move;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding-block:0px;padding-inline:0.25rem;color:var(--calcite-ui-border-input);outline-color:transparent}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hidden]){display:none}[hidden]{display:none}";export{Z as calcite_value_list,st as calcite_value_list_item}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
- * v1.7.0
4
+ * v1.7.1-next.1
5
5
  */
6
6
  const t=(t,n,a)=>Math.max(n,Math.min(t,a)),n=new RegExp(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/),a=t=>{const a=(""+t).match(n);return a&&0!==parseInt(a[1])?Math.max(0,(a[1]?a[1].length:0)-(a[2]?+a[2]:0)):0};function r(t){return a(t)>0&&t>0?parseFloat(`0.${t.toString().split(".")[1]}`):t}function e(t,n,a,r,e){return(t-n)*(e-r)/(a-n)+r}function s(t,n,a){return t<a?-1:t>n-a?1:0}export{s as a,t as c,a as d,r as g,e as r}