@esri/calcite-components 1.6.1 → 1.7.0-next.0

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 (950) 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-24a99441.entry.js → p-0244ee00.entry.js} +2 -2
  4. package/dist/calcite/{p-52283bc4.js → p-090db21d.js} +2 -2
  5. package/dist/calcite/p-09b5a979.entry.js +6 -0
  6. package/dist/calcite/{p-1f7eb7c8.entry.js → p-0a46144e.entry.js} +2 -2
  7. package/dist/calcite/{p-0e0d50bc.entry.js → p-0bd7dc6c.entry.js} +2 -2
  8. package/dist/calcite/{p-6907d13a.js → p-0dfda7d1.js} +2 -2
  9. package/dist/calcite/{p-e89ae3de.js → p-0f4c920c.js} +2 -2
  10. package/dist/calcite/{p-8e33d107.js → p-10535875.js} +1 -1
  11. package/dist/calcite/{p-958803ff.entry.js → p-116eccd8.entry.js} +2 -2
  12. package/dist/calcite/{p-eeb662a5.entry.js → p-12965674.entry.js} +2 -2
  13. package/dist/calcite/{p-d633633f.js → p-12a06006.js} +2 -2
  14. package/dist/calcite/{p-47e2ed4f.entry.js → p-1306ef16.entry.js} +2 -2
  15. package/dist/calcite/p-130bc299.entry.js +6 -0
  16. package/dist/calcite/{p-1c7861e8.entry.js → p-13346f15.entry.js} +2 -2
  17. package/dist/calcite/{p-b9dc3273.js → p-13630964.js} +2 -2
  18. package/dist/calcite/{p-a228d21a.entry.js → p-13754b2b.entry.js} +2 -2
  19. package/dist/calcite/{p-9467c367.entry.js → p-13fa7cf8.entry.js} +2 -2
  20. package/dist/calcite/{p-66e2d46d.js → p-144622f1.js} +2 -2
  21. package/dist/calcite/{p-a8e3645a.entry.js → p-20cf49d4.entry.js} +2 -2
  22. package/dist/calcite/{p-6dbf482f.entry.js → p-22182ac9.entry.js} +2 -2
  23. package/dist/calcite/p-22f829cd.entry.js +6 -0
  24. package/dist/calcite/{p-303b0819.js → p-2310fd7d.js} +2 -2
  25. package/dist/calcite/{p-e9397510.js → p-29e51bd5.js} +2 -2
  26. package/dist/calcite/{p-0fd93c10.entry.js → p-2b2b5a54.entry.js} +2 -2
  27. package/dist/calcite/{p-30a72db6.js → p-2f887196.js} +2 -2
  28. package/dist/calcite/{p-b45b5b4d.entry.js → p-317625a6.entry.js} +2 -2
  29. package/dist/calcite/{p-06b157f2.entry.js → p-324bc47e.entry.js} +2 -2
  30. package/dist/calcite/{p-9a95456d.js → p-372add5a.js} +2 -2
  31. package/dist/calcite/{p-06a878f3.js → p-37e8ce69.js} +2 -2
  32. package/dist/calcite/{p-06669e53.js → p-3970be35.js} +2 -2
  33. package/dist/calcite/{p-85deb402.entry.js → p-3c095467.entry.js} +2 -2
  34. package/dist/calcite/{p-307672e2.entry.js → p-3ec15730.entry.js} +2 -2
  35. package/dist/calcite/{p-8d3a467c.entry.js → p-3ed4574a.entry.js} +2 -2
  36. package/dist/calcite/p-3ff87910.entry.js +6 -0
  37. package/dist/calcite/{p-fea93262.js → p-401f9b1e.js} +1 -1
  38. package/dist/calcite/{p-7ef70911.js → p-41006447.js} +2 -2
  39. package/dist/calcite/{p-0a02e74a.entry.js → p-419ff0ed.entry.js} +2 -2
  40. package/dist/calcite/{p-9fa92ab8.js → p-42b57311.js} +1 -1
  41. package/dist/calcite/{p-7b10bd49.js → p-436d9051.js} +2 -2
  42. package/dist/calcite/p-4961a34b.entry.js +6 -0
  43. package/dist/calcite/{p-5b5e11ee.entry.js → p-496b5b01.entry.js} +2 -2
  44. package/dist/calcite/p-4a05e52b.js +6 -0
  45. package/dist/calcite/p-4af1defc.js +6 -0
  46. package/dist/calcite/{p-2dce2ad5.js → p-4d6b430f.js} +2 -2
  47. package/dist/calcite/{p-f62efbc4.js → p-550e16fd.js} +2 -2
  48. package/dist/calcite/{p-a7fc7e48.entry.js → p-57ddf59d.entry.js} +2 -2
  49. package/dist/calcite/{p-91bcc5fe.js → p-58c29f12.js} +2 -2
  50. package/dist/calcite/{p-08aa7841.entry.js → p-5d9e5fc1.entry.js} +2 -2
  51. package/dist/calcite/p-5e80e984.entry.js +6 -0
  52. package/dist/calcite/{p-717aaff4.entry.js → p-5ee96b40.entry.js} +2 -2
  53. package/dist/calcite/{p-1d51bbe7.js → p-5f0b8ad1.js} +2 -2
  54. package/dist/calcite/{p-41bdd184.js → p-5f3a3518.js} +2 -2
  55. package/dist/calcite/{p-1660b501.js → p-63d36731.js} +2 -2
  56. package/dist/calcite/{p-1e9017ef.js → p-6465dae9.js} +1 -1
  57. package/dist/calcite/{p-4eafe390.entry.js → p-67a85001.entry.js} +2 -2
  58. package/dist/calcite/{p-07f9ad25.js → p-67b2bb57.js} +2 -2
  59. package/dist/calcite/{p-56e7dc69.entry.js → p-6849a082.entry.js} +2 -2
  60. package/dist/calcite/p-6a8e1258.entry.js +6 -0
  61. package/dist/calcite/p-6aad914d.entry.js +6 -0
  62. package/dist/calcite/{p-63f54567.js → p-6d93785a.js} +2 -2
  63. package/dist/calcite/{p-954e5104.js → p-6e872dc1.js} +1 -1
  64. package/dist/calcite/{p-39e7f9c3.entry.js → p-6f5912df.entry.js} +2 -2
  65. package/dist/calcite/{p-77bbb47e.js → p-719a4e0f.js} +2 -2
  66. package/dist/calcite/p-74e44080.entry.js +6 -0
  67. package/dist/calcite/{p-d9c3ab49.js → p-78e2c580.js} +2 -2
  68. package/dist/calcite/{p-982321f1.js → p-78e68659.js} +2 -2
  69. package/dist/calcite/{p-a2b39687.js → p-8b2f756a.js} +2 -2
  70. package/dist/calcite/{p-3b82d5d5.js → p-8b5bf3f9.js} +2 -2
  71. package/dist/calcite/{p-f5581b25.entry.js → p-8bd91224.entry.js} +2 -2
  72. package/dist/calcite/{p-d9fa1c29.entry.js → p-8c83c0a4.entry.js} +2 -2
  73. package/dist/calcite/{p-9d3c5a26.js → p-8d2a30a0.js} +1 -1
  74. package/dist/calcite/{p-ed7273f5.entry.js → p-8d3d979d.entry.js} +2 -2
  75. package/dist/calcite/p-939028cc.js +6 -0
  76. package/dist/calcite/{p-6e4038de.js → p-966d9131.js} +2 -2
  77. package/dist/calcite/{p-b4f38625.js → p-97182350.js} +2 -2
  78. package/dist/calcite/{p-5468fb02.js → p-971bc7c3.js} +1 -1
  79. package/dist/calcite/{p-7497194d.entry.js → p-98c03090.entry.js} +2 -2
  80. package/dist/calcite/{p-5f6f797e.entry.js → p-9ae24cf2.entry.js} +2 -2
  81. package/dist/calcite/{p-0bde52f8.js → p-9b0f9e9a.js} +2 -2
  82. package/dist/calcite/p-9b5a4aa5.entry.js +6 -0
  83. package/dist/calcite/p-9bcbba19.js +6 -0
  84. package/dist/calcite/{p-cbc9b7c0.js → p-9dd53691.js} +2 -2
  85. package/dist/calcite/{p-88bbd282.entry.js → p-9edd6fe7.entry.js} +2 -2
  86. package/dist/calcite/{p-4b1570f3.js → p-a0177c5d.js} +3 -3
  87. package/dist/calcite/{p-11f97c29.js → p-a07f4344.js} +2 -2
  88. package/dist/calcite/{p-fc052078.js → p-a22f4515.js} +2 -2
  89. package/dist/calcite/{p-99f99b99.entry.js → p-a265a2e9.entry.js} +2 -2
  90. package/dist/calcite/{p-887e1f3e.js → p-a2931b1a.js} +1 -1
  91. package/dist/calcite/{p-7a8fa785.entry.js → p-a2f36e1b.entry.js} +2 -2
  92. package/dist/calcite/{p-5169c634.entry.js → p-a31327f7.entry.js} +2 -2
  93. package/dist/calcite/p-a39e910c.entry.js +6 -0
  94. package/dist/calcite/{p-898a5b89.entry.js → p-a3ce4f5e.entry.js} +2 -2
  95. package/dist/calcite/{p-34afd961.js → p-a5921d07.js} +3 -3
  96. package/dist/calcite/{p-6573a6a5.js → p-a6860910.js} +2 -2
  97. package/dist/calcite/p-a69e018f.entry.js +6 -0
  98. package/dist/calcite/{p-52b1da06.entry.js → p-a8ad6ac5.entry.js} +2 -2
  99. package/dist/calcite/{p-04c10602.entry.js → p-aa000dfe.entry.js} +2 -2
  100. package/dist/calcite/{p-7775a842.entry.js → p-aaddfd57.entry.js} +2 -2
  101. package/dist/calcite/{p-428437d8.js → p-abaf3b60.js} +2 -2
  102. package/dist/calcite/p-ac32f668.entry.js +6 -0
  103. package/dist/calcite/{p-c99b8ae1.js → p-acea2728.js} +2 -2
  104. package/dist/calcite/{p-79d8f6a3.js → p-ae47c8f7.js} +1 -1
  105. package/dist/calcite/{p-64ea1326.js → p-ae85c99f.js} +2 -2
  106. package/dist/calcite/{p-757b5f88.entry.js → p-af01ab15.entry.js} +2 -2
  107. package/dist/calcite/{p-464ac09d.js → p-af1fc64b.js} +1 -1
  108. package/dist/calcite/{p-8a8e6c1f.js → p-b0a9755b.js} +2 -2
  109. package/dist/calcite/{p-c4628c76.js → p-b26245f8.js} +2 -2
  110. package/dist/calcite/{p-231e15a7.js → p-b75783fd.js} +2 -2
  111. package/dist/calcite/{p-9899feb7.js → p-ba62d69a.js} +2 -2
  112. package/dist/calcite/{p-88ab1f95.js → p-bac88d5b.js} +2 -2
  113. package/dist/calcite/{p-7274f4a2.js → p-bd88b323.js} +2 -2
  114. package/dist/calcite/{p-9c14b825.entry.js → p-bf9fc36c.entry.js} +2 -2
  115. package/dist/calcite/{p-bb000fc9.entry.js → p-c1fd17c2.entry.js} +2 -2
  116. package/dist/calcite/{p-4db92dce.js → p-c367ff09.js} +2 -2
  117. package/dist/calcite/{p-56e621b7.js → p-c3ad9a11.js} +2 -2
  118. package/dist/calcite/{p-196910ec.js → p-c47baee6.js} +1 -1
  119. package/dist/calcite/{p-d41076bc.js → p-c49b065a.js} +2 -2
  120. package/dist/calcite/{p-0bcfb9f5.entry.js → p-c5482a38.entry.js} +2 -2
  121. package/dist/calcite/{p-a6c4d5c4.js → p-d00fc3a7.js} +2 -2
  122. package/dist/calcite/{p-85053819.entry.js → p-d34edddb.entry.js} +2 -2
  123. package/dist/calcite/{p-d1787bc7.js → p-d44094d7.js} +2 -2
  124. package/dist/calcite/{p-80a24329.js → p-d5d644d6.js} +2 -2
  125. package/dist/calcite/{p-a888f6d4.entry.js → p-d6112f39.entry.js} +2 -2
  126. package/dist/calcite/{p-fa0cd599.entry.js → p-d678e465.entry.js} +2 -2
  127. package/dist/calcite/{p-64f70f20.js → p-d7c399c4.js} +2 -2
  128. package/dist/calcite/{p-83bda75f.entry.js → p-d7da9585.entry.js} +2 -2
  129. package/dist/calcite/{p-24accd0a.js → p-d92b4577.js} +2 -2
  130. package/dist/calcite/{p-f780b0ba.js → p-d9b2c3a5.js} +1 -1
  131. package/dist/calcite/{p-6bdb96ba.js → p-daddbf26.js} +2 -2
  132. package/dist/calcite/{p-75a5eaea.js → p-dcbd9eee.js} +2 -2
  133. package/dist/calcite/{p-c4fec9e8.js → p-de6cc57d.js} +2 -2
  134. package/dist/calcite/{p-e2754993.entry.js → p-debfcab3.entry.js} +2 -2
  135. package/dist/calcite/{p-13c8536f.js → p-df28eb66.js} +2 -2
  136. package/dist/calcite/{p-0b73bb78.js → p-e05221c2.js} +2 -2
  137. package/dist/calcite/{p-e27dec0a.entry.js → p-e6b4d85f.entry.js} +2 -2
  138. package/dist/calcite/{p-5775b019.js → p-e8bd2e99.js} +2 -2
  139. package/dist/calcite/p-e949f0c4.entry.js +6 -0
  140. package/dist/calcite/{p-a51db05a.js → p-ea103254.js} +2 -2
  141. package/dist/calcite/{p-010443a5.entry.js → p-eb397699.entry.js} +2 -2
  142. package/dist/calcite/{p-8984d178.js → p-eccc6544.js} +2 -2
  143. package/dist/calcite/{p-3416cfde.js → p-f0184ce0.js} +1 -1
  144. package/dist/calcite/{p-d39ff7fd.js → p-f1026a92.js} +2 -2
  145. package/dist/calcite/{p-ab9bf21b.entry.js → p-f1d28107.entry.js} +2 -2
  146. package/dist/calcite/p-f2209a15.entry.js +6 -0
  147. package/dist/calcite/p-f2699c0c.js +6 -0
  148. package/dist/calcite/{p-a9f3956f.js → p-f6238201.js} +1 -1
  149. package/dist/calcite/{p-7d806c17.entry.js → p-f8104f1e.entry.js} +2 -2
  150. package/dist/calcite/{p-b1334b8c.js → p-fd5ce410.js} +2 -2
  151. package/dist/calcite/{p-3dac6baf.entry.js → p-fd7e2063.entry.js} +2 -2
  152. package/dist/calcite/{p-54e7b23d.js → p-fd98a4f2.js} +2 -2
  153. package/dist/calcite/{p-e769bcb4.js → p-ff8def52.js} +1 -1
  154. package/dist/cjs/{ExpandToggle-1a67ab36.js → ExpandToggle-4da4cde1.js} +5 -5
  155. package/dist/cjs/{FloatingArrow-b842e3f0.js → FloatingArrow-94b266a9.js} +2 -2
  156. package/dist/cjs/{Heading-164b6907.js → Heading-bae30ace.js} +2 -2
  157. package/dist/cjs/{app-globals-11a7c313.js → app-globals-a4d5ca81.js} +2 -2
  158. package/dist/cjs/{ar-bd43572e.js → ar-4f3de50f.js} +15 -15
  159. package/dist/cjs/{array-0adad2b4.js → array-c0f4b914.js} +1 -1
  160. package/dist/cjs/{bg-220bf37c.js → bg-ccda59bb.js} +15 -15
  161. package/dist/cjs/{bs-86152491.js → bs-b1d6fe63.js} +15 -15
  162. package/dist/cjs/{ca-8db38d87.js → ca-6de7dcd6.js} +15 -15
  163. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  164. package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
  165. package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
  166. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  167. package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
  168. package/dist/cjs/calcite-action.cjs.entry.js +11 -11
  169. package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
  170. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  171. package/dist/cjs/calcite-block_2.cjs.entry.js +13 -13
  172. package/dist/cjs/calcite-button.cjs.entry.js +13 -13
  173. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  174. package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
  175. package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -8
  176. package/dist/cjs/calcite-chip.cjs.entry.js +12 -12
  177. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +22 -19
  178. package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -18
  179. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -13
  180. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
  181. package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
  182. package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
  183. package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
  184. package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
  185. package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
  186. package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
  187. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  188. package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
  189. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +20 -20
  190. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  191. package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
  192. package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
  193. package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-4df5533b.js → calcite-input-time-picker.calcite-time-picker-9d77f340.js} +61 -61
  194. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +15 -15
  195. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +13 -13
  196. package/dist/cjs/calcite-input.cjs.entry.js +13 -13
  197. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  198. package/dist/cjs/calcite-link.cjs.entry.js +7 -7
  199. package/dist/cjs/calcite-list_3.cjs.entry.js +17 -16
  200. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  201. package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
  202. package/dist/cjs/calcite-meter.cjs.entry.js +329 -0
  203. package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
  204. package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
  205. package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
  206. package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
  207. package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
  208. package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
  209. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
  210. package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
  211. package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
  212. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
  213. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
  214. package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
  215. package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
  216. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +9 -9
  217. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
  218. package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
  219. package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
  220. package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
  221. package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
  222. package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
  223. package/dist/cjs/calcite-tab_4.cjs.entry.js +10 -10
  224. package/dist/cjs/calcite-text-area.cjs.entry.js +15 -15
  225. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
  226. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  227. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  228. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
  229. package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
  230. package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
  231. package/dist/cjs/calcite.cjs.js +5 -5
  232. package/dist/cjs/{conditionalSlot-8f1ed2fd.js → conditionalSlot-0b2eec9f.js} +3 -3
  233. package/dist/cjs/{cs-263437e7.js → cs-cea3b0ee.js} +15 -15
  234. package/dist/cjs/{da-04f0e8da.js → da-17725eaa.js} +15 -15
  235. package/dist/cjs/{de-853a6b05.js → de-39e15b86.js} +15 -15
  236. package/dist/cjs/{de-at-653be64b.js → de-at-6761fb0d.js} +15 -15
  237. package/dist/cjs/{de-ch-d9a24a27.js → de-ch-745fb377.js} +15 -15
  238. package/dist/cjs/{debounce-4b4096ae.js → debounce-ba742625.js} +1 -1
  239. package/dist/cjs/{dom-08db9da6.js → dom-882e8adf.js} +19 -3
  240. package/dist/cjs/{el-fe0a44e8.js → el-bf61cc1f.js} +15 -15
  241. package/dist/cjs/{en-au-031db47e.js → en-au-f5c3ce9d.js} +15 -15
  242. package/dist/cjs/{en-ca-45763ffa.js → en-ca-dda16274.js} +15 -15
  243. package/dist/cjs/{en-gb-648d431e.js → en-gb-0d465e08.js} +15 -15
  244. package/dist/cjs/{es-94671e47.js → es-b866d145.js} +15 -15
  245. package/dist/cjs/{es-mx-69c64511.js → es-mx-9011eeb8.js} +15 -15
  246. package/dist/cjs/{et-1313c76b.js → et-82b68369.js} +15 -15
  247. package/dist/cjs/{fi-3845067b.js → fi-7217192a.js} +15 -15
  248. package/dist/cjs/{filter-a8635781.js → filter-d178922e.js} +2 -2
  249. package/dist/cjs/{floating-ui-e5ca7118.js → floating-ui-05afc335.js} +3 -3
  250. package/dist/cjs/{focusTrapComponent-b5fbcc3d.js → focusTrapComponent-1c50a7e7.js} +2 -2
  251. package/dist/cjs/{form-6b658638.js → form-7ec8012f.js} +3 -3
  252. package/dist/cjs/{fr-f5fb9c6d.js → fr-bfc091a2.js} +15 -15
  253. package/dist/cjs/{fr-ch-c2a535eb.js → fr-ch-445e68b9.js} +15 -15
  254. package/dist/cjs/{guid-cfee36b5.js → guid-26de9cda.js} +1 -1
  255. package/dist/cjs/{he-e19b601e.js → he-e2c5e787.js} +15 -15
  256. package/dist/cjs/{hi-ba6064e4.js → hi-01410766.js} +15 -15
  257. package/dist/cjs/{hr-b5ddef80.js → hr-f6f84162.js} +15 -15
  258. package/dist/cjs/{hu-b9876baa.js → hu-269b67e7.js} +15 -15
  259. package/dist/cjs/{id-4d04e202.js → id-8c2bbc95.js} +15 -15
  260. package/dist/cjs/{index-cb9f6c1b.js → index-170040b3.js} +5 -1
  261. package/dist/cjs/index.cjs.js +2 -2
  262. package/dist/cjs/{interactive-3ec273b7.js → interactive-f7aec39c.js} +1 -1
  263. package/dist/cjs/{it-ch-54de7583.js → it-ch-3439fde4.js} +15 -15
  264. package/dist/cjs/{it-d38f4cff.js → it-d13a9f04.js} +15 -15
  265. package/dist/cjs/{ja-347b0a82.js → ja-0ca7d254.js} +15 -15
  266. package/dist/cjs/{key-6b4b1cdf.js → key-8df4992e.js} +1 -1
  267. package/dist/cjs/{ko-4e4a7340.js → ko-f2113549.js} +15 -15
  268. package/dist/cjs/{label-2295ac25.js → label-1abe1847.js} +32 -14
  269. package/dist/cjs/{loadable-c9aa952a.js → loadable-8ad0def8.js} +2 -2
  270. package/dist/cjs/loader.cjs.js +5 -5
  271. package/dist/cjs/{locale-e4c68974.js → locale-b39d68ba.js} +4 -4
  272. package/dist/cjs/{lt-d5a80ec7.js → lt-5c2c91c0.js} +15 -15
  273. package/dist/cjs/{lv-b083cee8.js → lv-9f5be352.js} +15 -15
  274. package/dist/cjs/{math-697801d7.js → math-ce6a2ddf.js} +1 -1
  275. package/dist/cjs/{mk-1a8bbd8a.js → mk-379f2113.js} +15 -15
  276. package/dist/cjs/{nb-7afce653.js → nb-795fd9a1.js} +15 -15
  277. package/dist/cjs/{nl-c42cd6f7.js → nl-418df115.js} +15 -15
  278. package/dist/cjs/{observers-81a76cf6.js → observers-e391d71f.js} +1 -1
  279. package/dist/cjs/{openCloseComponent-6983f68d.js → openCloseComponent-6424e4e3.js} +2 -2
  280. package/dist/cjs/{pl-5a356f9f.js → pl-2eb4ce40.js} +15 -15
  281. package/dist/cjs/{pt-e20f3f2f.js → pt-14cfe278.js} +15 -15
  282. package/dist/cjs/{pt-br-55c68446.js → pt-br-2505fe92.js} +15 -15
  283. package/dist/cjs/{resources-50e57a15.js → resources-592c7704.js} +1 -1
  284. package/dist/cjs/{resources-6af552c3.js → resources-8a58d0d6.js} +1 -1
  285. package/dist/cjs/{resources-d04cfd32.js → resources-9f59c659.js} +1 -1
  286. package/dist/cjs/{resources-5da6d3e2.js → resources-b824e0eb.js} +1 -1
  287. package/dist/cjs/{resources-3230c449.js → resources-bb7b7ffd.js} +5 -5
  288. package/dist/cjs/{resources-640e38e6.js → resources-ceda9e99.js} +1 -1
  289. package/dist/cjs/{resources-6fd0f71d.js → resources-e4c8601b.js} +1 -1
  290. package/dist/cjs/{ro-e4562c3f.js → ro-64f4a925.js} +15 -15
  291. package/dist/cjs/{ru-66aa104e.js → ru-4ffeab42.js} +15 -15
  292. package/dist/cjs/{sk-c0ec5b84.js → sk-f8a11b96.js} +15 -15
  293. package/dist/cjs/{sl-f0806058.js → sl-40e05d38.js} +15 -15
  294. package/dist/cjs/{sortableComponent-1802d073.js → sortableComponent-d6d49e58.js} +2 -2
  295. package/dist/cjs/{sr-d7fafe2b.js → sr-9688d21f.js} +15 -15
  296. package/dist/cjs/{sv-22b48291.js → sv-68b3b1ce.js} +15 -15
  297. package/dist/cjs/{t9n-e85d8a74.js → t9n-51db37e2.js} +3 -3
  298. package/dist/cjs/{th-a842b8af.js → th-dcf75e4e.js} +15 -15
  299. package/dist/cjs/{throttle-15ab661e.js → throttle-366faeab.js} +2 -2
  300. package/dist/cjs/{tr-05a8602c.js → tr-8991a83d.js} +15 -15
  301. package/dist/cjs/{uk-9581881e.js → uk-8fa9b747.js} +15 -15
  302. package/dist/cjs/{utils-02bffe0a.js → utils-c41dca81.js} +3 -3
  303. package/dist/cjs/{utils-78eae0bf.js → utils-ede1e9c6.js} +1 -1
  304. package/dist/cjs/{vi-3b77b1bd.js → vi-cc65e958.js} +15 -15
  305. package/dist/cjs/{zh-cn-d622672f.js → zh-cn-e977fd48.js} +15 -15
  306. package/dist/cjs/{zh-hk-2db9d679.js → zh-hk-5e4e266e.js} +15 -15
  307. package/dist/cjs/{zh-tw-91d4ec04.js → zh-tw-740394b9.js} +15 -15
  308. package/dist/collection/collection-manifest.json +6 -0
  309. package/dist/collection/components/accordion/accordion.js +1 -1
  310. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  311. package/dist/collection/components/accordion-item/resources.js +1 -1
  312. package/dist/collection/components/action/action.js +1 -1
  313. package/dist/collection/components/action/resources.js +1 -1
  314. package/dist/collection/components/action-bar/action-bar.js +1 -1
  315. package/dist/collection/components/action-bar/resources.js +1 -1
  316. package/dist/collection/components/action-bar/utils.js +1 -1
  317. package/dist/collection/components/action-group/action-group.js +1 -1
  318. package/dist/collection/components/action-group/resources.js +1 -1
  319. package/dist/collection/components/action-menu/action-menu.js +1 -1
  320. package/dist/collection/components/action-menu/resources.js +1 -1
  321. package/dist/collection/components/action-pad/action-pad.js +1 -1
  322. package/dist/collection/components/action-pad/resources.js +1 -1
  323. package/dist/collection/components/alert/alert.js +1 -1
  324. package/dist/collection/components/alert/resources.js +1 -1
  325. package/dist/collection/components/avatar/avatar.js +1 -1
  326. package/dist/collection/components/avatar/utils.js +1 -1
  327. package/dist/collection/components/block/block.js +1 -1
  328. package/dist/collection/components/block/resources.js +1 -1
  329. package/dist/collection/components/block-section/block-section.js +1 -1
  330. package/dist/collection/components/block-section/resources.js +1 -1
  331. package/dist/collection/components/button/button.js +1 -1
  332. package/dist/collection/components/button/resources.js +1 -1
  333. package/dist/collection/components/card/card.js +1 -1
  334. package/dist/collection/components/card/resources.js +1 -1
  335. package/dist/collection/components/checkbox/checkbox.js +1 -1
  336. package/dist/collection/components/chip/chip.js +1 -1
  337. package/dist/collection/components/chip/resources.js +1 -1
  338. package/dist/collection/components/chip-group/chip-group.js +1 -1
  339. package/dist/collection/components/color-picker/color-picker.js +10 -4
  340. package/dist/collection/components/color-picker/resources.js +1 -1
  341. package/dist/collection/components/color-picker/utils.js +1 -1
  342. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  343. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  344. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  345. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  346. package/dist/collection/components/combobox/combobox.js +1 -1
  347. package/dist/collection/components/combobox/resources.js +1 -1
  348. package/dist/collection/components/combobox/utils.js +1 -1
  349. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  350. package/dist/collection/components/combobox-item/resources.js +1 -1
  351. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  352. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  353. package/dist/collection/components/date-picker/date-picker.js +1 -1
  354. package/dist/collection/components/date-picker/resources.js +1 -1
  355. package/dist/collection/components/date-picker/utils.js +1 -1
  356. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  357. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  358. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  359. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  360. package/dist/collection/components/dropdown/dropdown.js +1 -1
  361. package/dist/collection/components/dropdown/resources.js +1 -1
  362. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  363. package/dist/collection/components/dropdown-group/resources.js +1 -1
  364. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  365. package/dist/collection/components/dropdown-item/resources.js +1 -1
  366. package/dist/collection/components/fab/fab.js +1 -1
  367. package/dist/collection/components/fab/resources.js +1 -1
  368. package/dist/collection/components/filter/filter.js +1 -1
  369. package/dist/collection/components/filter/resources.js +1 -1
  370. package/dist/collection/components/flow/flow.js +1 -1
  371. package/dist/collection/components/flow/resources.js +1 -1
  372. package/dist/collection/components/flow-item/flow-item.js +1 -1
  373. package/dist/collection/components/flow-item/resources.js +1 -1
  374. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  375. package/dist/collection/components/functional/FloatingArrow.js +1 -1
  376. package/dist/collection/components/functional/Heading.js +1 -1
  377. package/dist/collection/components/functional/XButton.js +1 -1
  378. package/dist/collection/components/graph/graph.js +1 -1
  379. package/dist/collection/components/graph/util.js +1 -1
  380. package/dist/collection/components/handle/handle.js +1 -1
  381. package/dist/collection/components/handle/resources.js +1 -1
  382. package/dist/collection/components/icon/icon.js +1 -1
  383. package/dist/collection/components/icon/resources.js +1 -1
  384. package/dist/collection/components/icon/utils.js +1 -1
  385. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  386. package/dist/collection/components/inline-editable/resources.js +1 -1
  387. package/dist/collection/components/input/input.js +1 -1
  388. package/dist/collection/components/input/resources.js +1 -1
  389. package/dist/collection/components/input-date-picker/input-date-picker.js +3 -3
  390. package/dist/collection/components/input-date-picker/resources.js +1 -1
  391. package/dist/collection/components/input-message/input-message.js +1 -1
  392. package/dist/collection/components/input-message/interfaces.js +1 -1
  393. package/dist/collection/components/input-number/input-number.js +1 -1
  394. package/dist/collection/components/input-number/resources.js +1 -1
  395. package/dist/collection/components/input-text/input-text.js +1 -1
  396. package/dist/collection/components/input-text/resources.js +1 -1
  397. package/dist/collection/components/input-time-picker/input-time-picker.js +2 -2
  398. package/dist/collection/components/input-time-picker/resources.js +1 -1
  399. package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
  400. package/dist/collection/components/input-time-zone/utils.js +1 -1
  401. package/dist/collection/components/label/label.js +1 -1
  402. package/dist/collection/components/label/resources.js +1 -1
  403. package/dist/collection/components/link/link.js +1 -1
  404. package/dist/collection/components/list/list.js +4 -3
  405. package/dist/collection/components/list/resources.js +1 -1
  406. package/dist/collection/components/list-item/list-item.js +1 -1
  407. package/dist/collection/components/list-item/resources.js +1 -1
  408. package/dist/collection/components/list-item/utils.js +1 -1
  409. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  410. package/dist/collection/components/list-item-group/resources.js +1 -1
  411. package/dist/collection/components/loader/loader.js +1 -1
  412. package/dist/collection/components/menu/menu.js +1 -1
  413. package/dist/collection/components/menu-item/menu-item.js +1 -1
  414. package/dist/collection/components/menu-item/resources.js +1 -1
  415. package/dist/collection/components/meter/interfaces.js +1 -0
  416. package/dist/collection/components/meter/meter.css +162 -0
  417. package/dist/collection/components/meter/meter.js +710 -0
  418. package/dist/collection/components/meter/resources.js +20 -0
  419. package/dist/collection/components/modal/modal.js +1 -1
  420. package/dist/collection/components/modal/resources.js +1 -1
  421. package/dist/collection/components/navigation/navigation.js +1 -1
  422. package/dist/collection/components/navigation/resources.js +1 -1
  423. package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
  424. package/dist/collection/components/navigation-logo/resources.js +1 -1
  425. package/dist/collection/components/navigation-user/navigation-user.js +1 -1
  426. package/dist/collection/components/navigation-user/resources.js +1 -1
  427. package/dist/collection/components/notice/notice.js +1 -1
  428. package/dist/collection/components/notice/resources.js +1 -1
  429. package/dist/collection/components/option/option.js +1 -1
  430. package/dist/collection/components/option-group/option-group.js +1 -1
  431. package/dist/collection/components/pagination/pagination.js +1 -1
  432. package/dist/collection/components/pagination/resources.js +1 -1
  433. package/dist/collection/components/panel/panel.js +1 -1
  434. package/dist/collection/components/panel/resources.js +1 -1
  435. package/dist/collection/components/pick-list/pick-list.js +1 -1
  436. package/dist/collection/components/pick-list/resources.js +1 -1
  437. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  438. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  439. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  440. package/dist/collection/components/pick-list-group/resources.js +1 -1
  441. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  442. package/dist/collection/components/pick-list-item/resources.js +1 -1
  443. package/dist/collection/components/popover/PopoverManager.js +1 -1
  444. package/dist/collection/components/popover/popover.js +1 -1
  445. package/dist/collection/components/popover/resources.js +1 -1
  446. package/dist/collection/components/progress/progress.js +1 -1
  447. package/dist/collection/components/radio-button/radio-button.js +1 -1
  448. package/dist/collection/components/radio-button/resources.js +1 -1
  449. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  450. package/dist/collection/components/rating/function/star.js +1 -1
  451. package/dist/collection/components/rating/rating.js +1 -1
  452. package/dist/collection/components/resources.js +1 -1
  453. package/dist/collection/components/scrim/resources.js +1 -1
  454. package/dist/collection/components/scrim/scrim.js +1 -1
  455. package/dist/collection/components/segmented-control/segmented-control.js +1 -1
  456. package/dist/collection/components/segmented-control-item/resources.js +1 -1
  457. package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
  458. package/dist/collection/components/select/resources.js +1 -1
  459. package/dist/collection/components/select/select.js +1 -1
  460. package/dist/collection/components/shell/resources.js +1 -1
  461. package/dist/collection/components/shell/shell.js +1 -1
  462. package/dist/collection/components/shell-center-row/resources.js +1 -1
  463. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  464. package/dist/collection/components/shell-panel/resources.js +1 -1
  465. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  466. package/dist/collection/components/slider/resources.js +1 -1
  467. package/dist/collection/components/slider/slider.js +1 -1
  468. package/dist/collection/components/sortable-list/resources.js +1 -1
  469. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  470. package/dist/collection/components/split-button/resources.js +1 -1
  471. package/dist/collection/components/split-button/split-button.js +1 -1
  472. package/dist/collection/components/stack/resources.js +1 -1
  473. package/dist/collection/components/stack/stack.js +1 -1
  474. package/dist/collection/components/stepper/stepper.js +1 -1
  475. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  476. package/dist/collection/components/switch/switch.js +1 -1
  477. package/dist/collection/components/tab/tab.js +1 -1
  478. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  479. package/dist/collection/components/tab-title/resources.js +1 -1
  480. package/dist/collection/components/tab-title/tab-title.js +1 -1
  481. package/dist/collection/components/tabs/resources.js +1 -1
  482. package/dist/collection/components/tabs/tabs.js +1 -1
  483. package/dist/collection/components/text-area/resources.js +1 -1
  484. package/dist/collection/components/text-area/text-area.js +1 -1
  485. package/dist/collection/components/tile/resources.js +1 -1
  486. package/dist/collection/components/tile/tile.js +1 -1
  487. package/dist/collection/components/tile-select/resources.js +1 -1
  488. package/dist/collection/components/tile-select/tile-select.js +1 -1
  489. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  490. package/dist/collection/components/time-picker/resources.js +1 -1
  491. package/dist/collection/components/time-picker/time-picker.js +1 -1
  492. package/dist/collection/components/tip/resources.js +1 -1
  493. package/dist/collection/components/tip/tip.js +1 -1
  494. package/dist/collection/components/tip-group/tip-group.js +1 -1
  495. package/dist/collection/components/tip-manager/resources.js +1 -1
  496. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  497. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  498. package/dist/collection/components/tooltip/resources.js +1 -1
  499. package/dist/collection/components/tooltip/tooltip.js +1 -1
  500. package/dist/collection/components/tooltip/utils.js +1 -1
  501. package/dist/collection/components/tree/tree.js +1 -1
  502. package/dist/collection/components/tree/utils.js +1 -1
  503. package/dist/collection/components/tree-item/resources.js +1 -1
  504. package/dist/collection/components/tree-item/tree-item.js +1 -1
  505. package/dist/collection/components/value-list/resources.js +1 -1
  506. package/dist/collection/components/value-list/utils.js +1 -1
  507. package/dist/collection/components/value-list/value-list.js +1 -1
  508. package/dist/collection/components/value-list-item/resources.js +1 -1
  509. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  510. package/dist/collection/index.js +1 -1
  511. package/dist/collection/utils/array.js +1 -1
  512. package/dist/collection/utils/browser.js +1 -1
  513. package/dist/collection/utils/conditionalSlot.js +1 -1
  514. package/dist/collection/utils/config.js +1 -1
  515. package/dist/collection/utils/date.js +1 -1
  516. package/dist/collection/utils/dom.js +16 -1
  517. package/dist/collection/utils/filter.js +1 -1
  518. package/dist/collection/utils/floating-ui.js +1 -1
  519. package/dist/collection/utils/focusTrapComponent.js +1 -1
  520. package/dist/collection/utils/form.js +1 -1
  521. package/dist/collection/utils/globalAttributes.js +1 -1
  522. package/dist/collection/utils/globalScript.js +1 -1
  523. package/dist/collection/utils/guid.js +1 -1
  524. package/dist/collection/utils/interactive.js +1 -1
  525. package/dist/collection/utils/key.js +1 -1
  526. package/dist/collection/utils/label.js +32 -14
  527. package/dist/collection/utils/loadable.js +1 -1
  528. package/dist/collection/utils/locale.js +1 -1
  529. package/dist/collection/utils/math.js +1 -1
  530. package/dist/collection/utils/mode.js +1 -1
  531. package/dist/collection/utils/number.js +1 -1
  532. package/dist/collection/utils/observers.js +1 -1
  533. package/dist/collection/utils/openCloseComponent.js +1 -1
  534. package/dist/collection/utils/resources.js +1 -1
  535. package/dist/collection/utils/sortableComponent.js +1 -1
  536. package/dist/collection/utils/t9n.js +1 -1
  537. package/dist/collection/utils/time.js +1 -1
  538. package/dist/components/ExpandToggle.js +1 -1
  539. package/dist/components/FloatingArrow.js +1 -1
  540. package/dist/components/Heading.js +1 -1
  541. package/dist/components/action-group.js +1 -1
  542. package/dist/components/action-menu.js +1 -1
  543. package/dist/components/action.js +1 -1
  544. package/dist/components/ar.js +1 -1
  545. package/dist/components/array.js +1 -1
  546. package/dist/components/avatar.js +1 -1
  547. package/dist/components/bg.js +1 -1
  548. package/dist/components/bs.js +1 -1
  549. package/dist/components/button.js +1 -1
  550. package/dist/components/ca.js +1 -1
  551. package/dist/components/calcite-accordion-item.js +1 -1
  552. package/dist/components/calcite-accordion.js +1 -1
  553. package/dist/components/calcite-action-bar.js +1 -1
  554. package/dist/components/calcite-action-group.js +1 -1
  555. package/dist/components/calcite-action-menu.js +1 -1
  556. package/dist/components/calcite-action-pad.js +1 -1
  557. package/dist/components/calcite-action.js +1 -1
  558. package/dist/components/calcite-alert.js +1 -1
  559. package/dist/components/calcite-avatar.js +1 -1
  560. package/dist/components/calcite-block-section.js +1 -1
  561. package/dist/components/calcite-block.js +1 -1
  562. package/dist/components/calcite-button.js +1 -1
  563. package/dist/components/calcite-card.js +1 -1
  564. package/dist/components/calcite-checkbox.js +1 -1
  565. package/dist/components/calcite-chip-group.js +1 -1
  566. package/dist/components/calcite-chip.js +1 -1
  567. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  568. package/dist/components/calcite-color-picker-swatch.js +1 -1
  569. package/dist/components/calcite-color-picker.js +8 -5
  570. package/dist/components/calcite-combobox-item-group.js +1 -1
  571. package/dist/components/calcite-combobox-item.js +1 -1
  572. package/dist/components/calcite-combobox.js +1 -1
  573. package/dist/components/calcite-date-picker-day.js +1 -1
  574. package/dist/components/calcite-date-picker-month-header.js +1 -1
  575. package/dist/components/calcite-date-picker-month.js +1 -1
  576. package/dist/components/calcite-date-picker.js +1 -1
  577. package/dist/components/calcite-dropdown-group.js +1 -1
  578. package/dist/components/calcite-dropdown-item.js +1 -1
  579. package/dist/components/calcite-dropdown.js +1 -1
  580. package/dist/components/calcite-fab.js +1 -1
  581. package/dist/components/calcite-filter.js +1 -1
  582. package/dist/components/calcite-flow-item.js +1 -1
  583. package/dist/components/calcite-flow.js +1 -1
  584. package/dist/components/calcite-graph.js +1 -1
  585. package/dist/components/calcite-handle.js +1 -1
  586. package/dist/components/calcite-icon.js +1 -1
  587. package/dist/components/calcite-inline-editable.js +1 -1
  588. package/dist/components/calcite-input-date-picker.js +3 -3
  589. package/dist/components/calcite-input-message.js +1 -1
  590. package/dist/components/calcite-input-number.js +1 -1
  591. package/dist/components/calcite-input-text.js +1 -1
  592. package/dist/components/calcite-input-time-picker.js +2 -2
  593. package/dist/components/calcite-input-time-zone.js +1 -1
  594. package/dist/components/calcite-input.js +1 -1
  595. package/dist/components/calcite-label.js +1 -1
  596. package/dist/components/calcite-link.js +1 -1
  597. package/dist/components/calcite-list-item-group.js +1 -1
  598. package/dist/components/calcite-list-item.js +1 -1
  599. package/dist/components/calcite-list.js +4 -3
  600. package/dist/components/calcite-loader.js +1 -1
  601. package/dist/components/calcite-menu-item.js +1 -1
  602. package/dist/components/calcite-menu.js +1 -1
  603. package/dist/components/calcite-meter.d.ts +11 -0
  604. package/dist/components/calcite-meter.js +367 -0
  605. package/dist/components/calcite-modal.js +2 -2
  606. package/dist/components/calcite-navigation-logo.js +1 -1
  607. package/dist/components/calcite-navigation-user.js +1 -1
  608. package/dist/components/calcite-navigation.js +1 -1
  609. package/dist/components/calcite-notice.js +1 -1
  610. package/dist/components/calcite-option-group.js +1 -1
  611. package/dist/components/calcite-option.js +1 -1
  612. package/dist/components/calcite-pagination.js +1 -1
  613. package/dist/components/calcite-panel.js +1 -1
  614. package/dist/components/calcite-pick-list-group.js +1 -1
  615. package/dist/components/calcite-pick-list-item.js +1 -1
  616. package/dist/components/calcite-pick-list.js +1 -1
  617. package/dist/components/calcite-popover.js +1 -1
  618. package/dist/components/calcite-progress.js +1 -1
  619. package/dist/components/calcite-radio-button-group.js +1 -1
  620. package/dist/components/calcite-radio-button.js +1 -1
  621. package/dist/components/calcite-rating.js +1 -1
  622. package/dist/components/calcite-scrim.js +1 -1
  623. package/dist/components/calcite-segmented-control-item.js +1 -1
  624. package/dist/components/calcite-segmented-control.js +1 -1
  625. package/dist/components/calcite-select.js +1 -1
  626. package/dist/components/calcite-shell-center-row.js +1 -1
  627. package/dist/components/calcite-shell-panel.js +1 -1
  628. package/dist/components/calcite-shell.js +1 -1
  629. package/dist/components/calcite-slider.js +2 -2
  630. package/dist/components/calcite-sortable-list.js +1 -1
  631. package/dist/components/calcite-split-button.js +1 -1
  632. package/dist/components/calcite-stack.js +1 -1
  633. package/dist/components/calcite-stepper-item.js +1 -1
  634. package/dist/components/calcite-stepper.js +1 -1
  635. package/dist/components/calcite-switch.js +1 -1
  636. package/dist/components/calcite-tab-nav.js +1 -1
  637. package/dist/components/calcite-tab-title.js +1 -1
  638. package/dist/components/calcite-tab.js +1 -1
  639. package/dist/components/calcite-tabs.js +1 -1
  640. package/dist/components/calcite-text-area.js +1 -1
  641. package/dist/components/calcite-tile-select-group.js +1 -1
  642. package/dist/components/calcite-tile-select.js +1 -1
  643. package/dist/components/calcite-tile.js +1 -1
  644. package/dist/components/calcite-time-picker.js +1 -1
  645. package/dist/components/calcite-tip-group.js +1 -1
  646. package/dist/components/calcite-tip-manager.js +1 -1
  647. package/dist/components/calcite-tip.js +1 -1
  648. package/dist/components/calcite-tooltip.js +1 -1
  649. package/dist/components/calcite-tree-item.js +1 -1
  650. package/dist/components/calcite-tree.js +1 -1
  651. package/dist/components/calcite-value-list-item.js +1 -1
  652. package/dist/components/calcite-value-list.js +1 -1
  653. package/dist/components/checkbox.js +1 -1
  654. package/dist/components/chip.js +1 -1
  655. package/dist/components/color-picker-hex-input.js +1 -1
  656. package/dist/components/color-picker-swatch.js +1 -1
  657. package/dist/components/combobox-item.js +1 -1
  658. package/dist/components/combobox.js +1 -1
  659. package/dist/components/conditionalSlot.js +1 -1
  660. package/dist/components/cs.js +1 -1
  661. package/dist/components/da.js +1 -1
  662. package/dist/components/date-picker-day.js +1 -1
  663. package/dist/components/date-picker-month-header.js +1 -1
  664. package/dist/components/date-picker-month.js +1 -1
  665. package/dist/components/date-picker.js +1 -1
  666. package/dist/components/date.js +1 -1
  667. package/dist/components/de-at.js +1 -1
  668. package/dist/components/de-ch.js +1 -1
  669. package/dist/components/de.js +1 -1
  670. package/dist/components/debounce.js +1 -1
  671. package/dist/components/dom.js +17 -2
  672. package/dist/components/dropdown.js +1 -1
  673. package/dist/components/el.js +1 -1
  674. package/dist/components/en-au.js +1 -1
  675. package/dist/components/en-ca.js +1 -1
  676. package/dist/components/en-gb.js +1 -1
  677. package/dist/components/es-mx.js +1 -1
  678. package/dist/components/es.js +1 -1
  679. package/dist/components/et.js +1 -1
  680. package/dist/components/fi.js +1 -1
  681. package/dist/components/filter.js +1 -1
  682. package/dist/components/filter2.js +1 -1
  683. package/dist/components/floating-ui.js +1 -1
  684. package/dist/components/focusTrapComponent.js +2 -2
  685. package/dist/components/form.js +1 -1
  686. package/dist/components/fr-ch.js +1 -1
  687. package/dist/components/fr.js +1 -1
  688. package/dist/components/graph.js +1 -1
  689. package/dist/components/guid.js +1 -1
  690. package/dist/components/handle.js +1 -1
  691. package/dist/components/he.js +1 -1
  692. package/dist/components/hi.js +1 -1
  693. package/dist/components/hr.js +1 -1
  694. package/dist/components/hu.js +1 -1
  695. package/dist/components/icon.js +1 -1
  696. package/dist/components/id.js +1 -1
  697. package/dist/components/index.d.ts +1 -0
  698. package/dist/components/index.js +1 -1
  699. package/dist/components/index2.js +1 -1
  700. package/dist/components/input-number.js +1 -1
  701. package/dist/components/input-text.js +1 -1
  702. package/dist/components/input.js +1 -1
  703. package/dist/components/interactive.js +1 -1
  704. package/dist/components/it-ch.js +1 -1
  705. package/dist/components/it.js +1 -1
  706. package/dist/components/ja.js +1 -1
  707. package/dist/components/key.js +1 -1
  708. package/dist/components/ko.js +1 -1
  709. package/dist/components/label.js +1 -1
  710. package/dist/components/label2.js +32 -14
  711. package/dist/components/link.js +1 -1
  712. package/dist/components/loadable.js +1 -1
  713. package/dist/components/loader.js +1 -1
  714. package/dist/components/locale.js +1 -1
  715. package/dist/components/lt.js +1 -1
  716. package/dist/components/lv.js +1 -1
  717. package/dist/components/math.js +1 -1
  718. package/dist/components/menu.js +1 -1
  719. package/dist/components/mk.js +1 -1
  720. package/dist/components/nb.js +1 -1
  721. package/dist/components/nl.js +1 -1
  722. package/dist/components/observers.js +1 -1
  723. package/dist/components/openCloseComponent.js +1 -1
  724. package/dist/components/panel.js +1 -1
  725. package/dist/components/pick-list-item.js +1 -1
  726. package/dist/components/pl.js +1 -1
  727. package/dist/components/popover.js +1 -1
  728. package/dist/components/progress.js +1 -1
  729. package/dist/components/pt-br.js +1 -1
  730. package/dist/components/pt.js +1 -1
  731. package/dist/components/resources.js +1 -1
  732. package/dist/components/resources2.js +1 -1
  733. package/dist/components/resources3.js +1 -1
  734. package/dist/components/ro.js +1 -1
  735. package/dist/components/ru.js +1 -1
  736. package/dist/components/scrim.js +1 -1
  737. package/dist/components/shared-list-render.js +1 -1
  738. package/dist/components/sk.js +1 -1
  739. package/dist/components/sl.js +1 -1
  740. package/dist/components/sortableComponent.js +1 -1
  741. package/dist/components/sr.js +1 -1
  742. package/dist/components/stack.js +1 -1
  743. package/dist/components/sv.js +1 -1
  744. package/dist/components/switch.js +1 -1
  745. package/dist/components/t9n.js +1 -1
  746. package/dist/components/tab-nav.js +1 -1
  747. package/dist/components/tab-title.js +1 -1
  748. package/dist/components/tab.js +1 -1
  749. package/dist/components/tabs.js +1 -1
  750. package/dist/components/th.js +1 -1
  751. package/dist/components/throttle.js +1 -1
  752. package/dist/components/tile.js +1 -1
  753. package/dist/components/time-picker.js +1 -1
  754. package/dist/components/tr.js +1 -1
  755. package/dist/components/uk.js +1 -1
  756. package/dist/components/utils.js +1 -1
  757. package/dist/components/utils2.js +1 -1
  758. package/dist/components/utils3.js +1 -1
  759. package/dist/components/vi.js +1 -1
  760. package/dist/components/zh-cn.js +1 -1
  761. package/dist/components/zh-hk.js +1 -1
  762. package/dist/components/zh-tw.js +1 -1
  763. package/dist/esm/{ExpandToggle-65708e52.js → ExpandToggle-930a2b24.js} +5 -5
  764. package/dist/esm/{FloatingArrow-d53f14f2.js → FloatingArrow-1ae168c2.js} +2 -2
  765. package/dist/esm/{Heading-f1b23de5.js → Heading-c99f50d0.js} +2 -2
  766. package/dist/esm/{app-globals-b33cd4ed.js → app-globals-55e7f68a.js} +2 -2
  767. package/dist/esm/{ar-d95b9e73.js → ar-be02c795.js} +15 -15
  768. package/dist/esm/{array-97014d39.js → array-67afda9b.js} +1 -1
  769. package/dist/esm/{bg-cdaa440d.js → bg-e8eccaac.js} +15 -15
  770. package/dist/esm/{bs-0752a9f5.js → bs-b5ea5d4a.js} +15 -15
  771. package/dist/esm/{ca-f008a360.js → ca-96e849a8.js} +15 -15
  772. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  773. package/dist/esm/calcite-action-bar.entry.js +15 -15
  774. package/dist/esm/calcite-action-group.entry.js +13 -13
  775. package/dist/esm/calcite-action-menu.entry.js +9 -9
  776. package/dist/esm/calcite-action-pad.entry.js +14 -14
  777. package/dist/esm/calcite-action.entry.js +11 -11
  778. package/dist/esm/calcite-alert.entry.js +12 -12
  779. package/dist/esm/calcite-avatar.entry.js +6 -6
  780. package/dist/esm/calcite-block_2.entry.js +13 -13
  781. package/dist/esm/calcite-button.entry.js +13 -13
  782. package/dist/esm/calcite-card.entry.js +10 -10
  783. package/dist/esm/calcite-checkbox.entry.js +10 -10
  784. package/dist/esm/calcite-chip-group.entry.js +8 -8
  785. package/dist/esm/calcite-chip.entry.js +12 -12
  786. package/dist/esm/calcite-color-picker_3.entry.js +22 -19
  787. package/dist/esm/calcite-combobox_3.entry.js +18 -18
  788. package/dist/esm/calcite-date-picker_4.entry.js +13 -13
  789. package/dist/esm/calcite-dropdown_3.entry.js +12 -12
  790. package/dist/esm/calcite-fab.entry.js +7 -7
  791. package/dist/esm/calcite-filter.entry.js +13 -13
  792. package/dist/esm/calcite-flow-item.entry.js +12 -12
  793. package/dist/esm/calcite-flow.entry.js +4 -4
  794. package/dist/esm/calcite-graph_2.entry.js +13 -13
  795. package/dist/esm/calcite-handle.entry.js +10 -10
  796. package/dist/esm/calcite-icon.entry.js +6 -6
  797. package/dist/esm/calcite-inline-editable.entry.js +12 -12
  798. package/dist/esm/calcite-input-date-picker.entry.js +20 -20
  799. package/dist/esm/calcite-input-message.entry.js +5 -5
  800. package/dist/esm/calcite-input-number.entry.js +13 -13
  801. package/dist/esm/calcite-input-text.entry.js +13 -13
  802. package/dist/esm/{calcite-input-time-picker.calcite-time-picker-54665d29.js → calcite-input-time-picker.calcite-time-picker-6102e880.js} +61 -61
  803. package/dist/esm/calcite-input-time-picker_2.entry.js +15 -15
  804. package/dist/esm/calcite-input-time-zone.entry.js +13 -13
  805. package/dist/esm/calcite-input.entry.js +13 -13
  806. package/dist/esm/calcite-label.entry.js +6 -6
  807. package/dist/esm/calcite-link.entry.js +7 -7
  808. package/dist/esm/calcite-list_3.entry.js +17 -16
  809. package/dist/esm/calcite-loader.entry.js +3 -3
  810. package/dist/esm/calcite-menu_2.entry.js +10 -10
  811. package/dist/esm/calcite-meter.entry.js +325 -0
  812. package/dist/esm/calcite-modal.entry.js +13 -13
  813. package/dist/esm/calcite-navigation_3.entry.js +6 -6
  814. package/dist/esm/calcite-notice.entry.js +12 -12
  815. package/dist/esm/calcite-option_3.entry.js +10 -10
  816. package/dist/esm/calcite-pagination.entry.js +10 -10
  817. package/dist/esm/calcite-panel.entry.js +14 -14
  818. package/dist/esm/calcite-pick-list_3.entry.js +16 -16
  819. package/dist/esm/calcite-popover.entry.js +16 -16
  820. package/dist/esm/calcite-progress.entry.js +5 -5
  821. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  822. package/dist/esm/calcite-radio-button.entry.js +10 -10
  823. package/dist/esm/calcite-rating.entry.js +13 -13
  824. package/dist/esm/calcite-scrim.entry.js +9 -9
  825. package/dist/esm/calcite-segmented-control_2.entry.js +9 -9
  826. package/dist/esm/calcite-shell_3.entry.js +11 -11
  827. package/dist/esm/calcite-sortable-list.entry.js +8 -8
  828. package/dist/esm/calcite-split-button.entry.js +4 -4
  829. package/dist/esm/calcite-stack.entry.js +6 -6
  830. package/dist/esm/calcite-stepper_2.entry.js +10 -10
  831. package/dist/esm/calcite-switch.entry.js +10 -10
  832. package/dist/esm/calcite-tab_4.entry.js +10 -10
  833. package/dist/esm/calcite-text-area.entry.js +15 -15
  834. package/dist/esm/calcite-tile-select_2.entry.js +5 -5
  835. package/dist/esm/calcite-tile.entry.js +8 -8
  836. package/dist/esm/calcite-tip_3.entry.js +11 -11
  837. package/dist/esm/calcite-tooltip.entry.js +9 -9
  838. package/dist/esm/calcite-tree_2.entry.js +8 -8
  839. package/dist/esm/calcite-value-list_2.entry.js +16 -16
  840. package/dist/esm/calcite.js +6 -6
  841. package/dist/esm/{conditionalSlot-27f1b99e.js → conditionalSlot-6f84118e.js} +3 -3
  842. package/dist/esm/{cs-5f0c6284.js → cs-e1c3af40.js} +15 -15
  843. package/dist/esm/{da-f038282b.js → da-5378d206.js} +15 -15
  844. package/dist/esm/{de-f8bb447f.js → de-1bff1feb.js} +15 -15
  845. package/dist/esm/{de-at-f679d96f.js → de-at-13cfe8cd.js} +15 -15
  846. package/dist/esm/{de-ch-40ea52e6.js → de-ch-7c9869ce.js} +15 -15
  847. package/dist/esm/{debounce-7b266b0d.js → debounce-fee8e3c3.js} +1 -1
  848. package/dist/esm/{dom-0da899b7.js → dom-a9670cdd.js} +19 -4
  849. package/dist/esm/{el-a615d547.js → el-ccd29511.js} +15 -15
  850. package/dist/esm/{en-au-1b85bd1f.js → en-au-ab5c0d13.js} +15 -15
  851. package/dist/esm/{en-ca-1cb88729.js → en-ca-cae40b3c.js} +15 -15
  852. package/dist/esm/{en-gb-a9ce1bb9.js → en-gb-72939828.js} +15 -15
  853. package/dist/esm/{es-81fc849b.js → es-b9d087e9.js} +15 -15
  854. package/dist/esm/{es-mx-edbd31e7.js → es-mx-0a6c1828.js} +15 -15
  855. package/dist/esm/{et-6fbb1a64.js → et-d86367ed.js} +15 -15
  856. package/dist/esm/{fi-9f79a0d6.js → fi-68d91c2c.js} +15 -15
  857. package/dist/esm/{filter-1716e444.js → filter-c8e3a6aa.js} +2 -2
  858. package/dist/esm/{floating-ui-2a06a63b.js → floating-ui-a2eb27ec.js} +3 -3
  859. package/dist/esm/{focusTrapComponent-23c3d774.js → focusTrapComponent-3be3180a.js} +2 -2
  860. package/dist/esm/{form-514528da.js → form-4c9b91ab.js} +3 -3
  861. package/dist/esm/{fr-9af849ac.js → fr-92812f54.js} +15 -15
  862. package/dist/esm/{fr-ch-799c2629.js → fr-ch-d3014591.js} +15 -15
  863. package/dist/esm/{guid-982fa529.js → guid-434088a0.js} +1 -1
  864. package/dist/esm/{he-57a0e3b9.js → he-3c9ec5c4.js} +15 -15
  865. package/dist/esm/{hi-4c310350.js → hi-5290cec4.js} +15 -15
  866. package/dist/esm/{hr-a2aef8f5.js → hr-59448348.js} +15 -15
  867. package/dist/esm/{hu-35cea0de.js → hu-a98d0659.js} +15 -15
  868. package/dist/esm/{id-2a4e3701.js → id-9551d33d.js} +15 -15
  869. package/dist/esm/{index-33fbe53d.js → index-93cd2078.js} +5 -1
  870. package/dist/esm/index.js +2 -2
  871. package/dist/esm/{interactive-7502dca5.js → interactive-4a9e1385.js} +1 -1
  872. package/dist/esm/{it-ch-2f078e2a.js → it-ch-2a5aa4ca.js} +15 -15
  873. package/dist/esm/{it-f4bce02e.js → it-e80ea9bd.js} +15 -15
  874. package/dist/esm/{ja-e0d1c391.js → ja-5b926db7.js} +15 -15
  875. package/dist/esm/{key-fbf3a3a2.js → key-3a20e503.js} +1 -1
  876. package/dist/esm/{ko-2c6f6bb1.js → ko-b79bb59f.js} +15 -15
  877. package/dist/esm/{label-a6e0ec34.js → label-38bb96bc.js} +32 -14
  878. package/dist/esm/{loadable-fa17899f.js → loadable-2ab8ae79.js} +2 -2
  879. package/dist/esm/loader.js +6 -6
  880. package/dist/esm/{locale-e1758752.js → locale-5212f2b3.js} +4 -4
  881. package/dist/esm/{lt-edd330d1.js → lt-6205dfce.js} +15 -15
  882. package/dist/esm/{lv-6f826b9e.js → lv-d2ba5866.js} +15 -15
  883. package/dist/esm/{math-f264e9eb.js → math-bd5f791c.js} +1 -1
  884. package/dist/esm/{mk-400378d1.js → mk-3525f8ad.js} +15 -15
  885. package/dist/esm/{nb-9a2bb240.js → nb-b3934cfe.js} +15 -15
  886. package/dist/esm/{nl-e095f7fd.js → nl-3951feee.js} +15 -15
  887. package/dist/esm/{observers-0920396c.js → observers-cab14e54.js} +1 -1
  888. package/dist/esm/{openCloseComponent-cb137fcb.js → openCloseComponent-4e57aa6b.js} +2 -2
  889. package/dist/esm/{pl-330f6c8d.js → pl-a24472a9.js} +15 -15
  890. package/dist/esm/{pt-c0f9c9b0.js → pt-12e286b2.js} +15 -15
  891. package/dist/esm/{pt-br-b1b1417d.js → pt-br-d05cc269.js} +15 -15
  892. package/dist/esm/{resources-e0e338f0.js → resources-422bdc2e.js} +1 -1
  893. package/dist/esm/{resources-88f61c2e.js → resources-467f8115.js} +5 -5
  894. package/dist/esm/{resources-2571234e.js → resources-4cd41c97.js} +1 -1
  895. package/dist/esm/{resources-50bfc36e.js → resources-58344d41.js} +1 -1
  896. package/dist/esm/{resources-af738dd0.js → resources-6fb9bced.js} +1 -1
  897. package/dist/esm/{resources-e81aa659.js → resources-deff01ca.js} +1 -1
  898. package/dist/esm/{resources-26fad53e.js → resources-e6b07fff.js} +1 -1
  899. package/dist/esm/{ro-e15dc2b2.js → ro-0ff5d382.js} +15 -15
  900. package/dist/esm/{ru-181608b9.js → ru-958398d5.js} +15 -15
  901. package/dist/esm/{sk-5783216d.js → sk-569156ba.js} +15 -15
  902. package/dist/esm/{sl-671beff3.js → sl-4458bfe8.js} +15 -15
  903. package/dist/esm/{sortableComponent-6cf182de.js → sortableComponent-c3a0fd15.js} +2 -2
  904. package/dist/esm/{sr-53695e50.js → sr-b85fa61f.js} +15 -15
  905. package/dist/esm/{sv-2c609612.js → sv-8b020ccd.js} +15 -15
  906. package/dist/esm/{t9n-24f85b28.js → t9n-08715f71.js} +3 -3
  907. package/dist/esm/{th-04520153.js → th-892eb431.js} +15 -15
  908. package/dist/esm/{throttle-c9096b55.js → throttle-d4b5accb.js} +2 -2
  909. package/dist/esm/{tr-89215303.js → tr-c2095429.js} +15 -15
  910. package/dist/esm/{uk-aec178d4.js → uk-abff2b69.js} +15 -15
  911. package/dist/esm/{utils-79e3b87b.js → utils-4d5b05ba.js} +3 -3
  912. package/dist/esm/{utils-af36a094.js → utils-e7cb3640.js} +1 -1
  913. package/dist/esm/{vi-f74978ab.js → vi-36e55919.js} +15 -15
  914. package/dist/esm/{zh-cn-589ed0f1.js → zh-cn-d414f67b.js} +15 -15
  915. package/dist/esm/{zh-hk-180ac95b.js → zh-hk-39f0ef93.js} +15 -15
  916. package/dist/esm/{zh-tw-2618f97b.js → zh-tw-b14e1615.js} +15 -15
  917. package/dist/extras/docs-json.json +458 -1
  918. package/dist/extras/vscode-data.json +199 -0
  919. package/dist/loader/cdn.js +1 -1
  920. package/dist/loader/index.cjs.js +1 -1
  921. package/dist/loader/index.es2017.js +1 -1
  922. package/dist/loader/index.js +1 -1
  923. package/dist/types/components/color-picker/color-picker.d.ts +1 -1
  924. package/dist/types/components/meter/interfaces.d.ts +1 -0
  925. package/dist/types/components/meter/meter.d.ts +98 -0
  926. package/dist/types/components/meter/resources.d.ts +15 -0
  927. package/dist/types/components.d.ts +166 -0
  928. package/dist/types/preact.d.ts +2 -0
  929. package/dist/types/utils/dom.d.ts +9 -0
  930. package/hydrate/index.js +689 -308
  931. package/package.json +2 -2
  932. package/dist/calcite/p-0c8676e8.entry.js +0 -6
  933. package/dist/calcite/p-0d2c8a9f.entry.js +0 -6
  934. package/dist/calcite/p-227f54c6.js +0 -6
  935. package/dist/calcite/p-37d89220.entry.js +0 -6
  936. package/dist/calcite/p-43db7849.entry.js +0 -6
  937. package/dist/calcite/p-4b36bfc7.entry.js +0 -6
  938. package/dist/calcite/p-4dfa1e8a.entry.js +0 -6
  939. package/dist/calcite/p-57bf7d38.entry.js +0 -6
  940. package/dist/calcite/p-6bc3e6e4.entry.js +0 -6
  941. package/dist/calcite/p-7e5a2bcd.entry.js +0 -6
  942. package/dist/calcite/p-94e56b3a.js +0 -6
  943. package/dist/calcite/p-9db0197e.js +0 -6
  944. package/dist/calcite/p-b4425351.entry.js +0 -6
  945. package/dist/calcite/p-bd3ada44.entry.js +0 -6
  946. package/dist/calcite/p-c066ce33.entry.js +0 -6
  947. package/dist/calcite/p-d6479bc2.js +0 -6
  948. package/dist/calcite/p-ddfebca5.js +0 -6
  949. package/dist/calcite/p-e36dd822.entry.js +0 -6
  950. package/dist/calcite/p-ff461a47.entry.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.6.1
4
+ * v1.7.0-next.0
5
5
  */
6
- import{r as e,c as t,h as a,H as i,a as r,F as s}from"./p-1e9017ef.js";import{h as o,b as n,c,g as h,f as d,e as l,s as g,j as u,i as p,k as v,n as f,p as w,l as y,m as b}from"./p-64f70f20.js";import{c as x,s as m,a as k}from"./p-227f54c6.js";import{c as D,d as z,n as C,b as A}from"./p-06a878f3.js";import{c as I,d as S,s as M,u as P}from"./p-6907d13a.js";import{c as j,g as H,t as O}from"./p-4b1570f3.js";import{c as R,u as _,d as L}from"./p-954e5104.js";import{i as W}from"./p-8e33d107.js";import{C as Y}from"./p-464ac09d.js";import{H as E}from"./p-9db0197e.js";import"./p-3416cfde.js";import"./p-887e1f3e.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 M(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(){P(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=j(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=j(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-6465dae9.js";import{h as o,b as n,c,g as h,f as d,e as l,s as g,j as u,i as p,k as v,n as f,p as w,l as y,m as b}from"./p-d7c399c4.js";import{c as x,s as m,a as k}from"./p-939028cc.js";import{c as D,d as z,n as C,b as A}from"./p-37e8ce69.js";import{c as I,d as S,s as M,u as P}from"./p-0dfda7d1.js";import{c as j,g as H,t as O}from"./p-a0177c5d.js";import{c as R,u as _,d as L}from"./p-6e872dc1.js";import{i as W}from"./p-10535875.js";import{C as Y}from"./p-af1fc64b.js";import{H as E}from"./p-4a05e52b.js";import"./p-f0184ce0.js";import"./p-a2931b1a.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 M(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(){P(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=j(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=j(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}
@@ -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.6.1
4
+ * v1.7.0-next.0
5
5
  */
6
- import{r as t,c as i,h as e,H as s,a as o}from"./p-1e9017ef.js";import{q as n,i as a,w as r,t as l}from"./p-4b1570f3.js";import{c,b as h,a as d,r as p,F as f}from"./p-9a95456d.js";import{g as u}from"./p-887e1f3e.js";import{o as m}from"./p-66e2d46d.js";import{F as g}from"./p-c99b8ae1.js";import"./p-464ac09d.js";import"./p-196910ec.js";const v="aria-describedby";function w(t){const{referenceElement:i}=t;return("string"==typeof i?n(t,{id:i}):i)||null}const b=new class{constructor(){this.registeredElements=new WeakMap,this.registeredShadowRootCounts=new WeakMap,this.hoverOpenTimeout=null,this.hoverCloseTimeout=null,this.hoveredTooltip=null,this.clickedTooltip=null,this.activeTooltip=null,this.registeredElementCount=0,this.queryTooltip=t=>{const{registeredElements:i}=this,e=t.find((t=>i.has(t)));return i.get(e)},this.keyDownHandler=t=>{if("Escape"===t.key&&!t.defaultPrevented){const{activeTooltip:i}=this;if(i?.open){this.clearHoverTimeout(),this.closeActiveTooltip();const e=w(i);e instanceof Element&&e.contains(t.target)&&t.preventDefault()}}},this.pointerMoveHandler=t=>{const i=t.composedPath(),{activeTooltip:e}=this;if(e?.open&&i.includes(e))return void this.clearHoverTimeout();const s=this.queryTooltip(i);this.hoveredTooltip=s,this.isClosableClickedTooltip(s)||(this.clickedTooltip=null,s?this.openHoveredTooltip(s):e&&this.closeHoveredTooltip())},this.pointerDownHandler=t=>{if(!a(t))return;const i=this.queryTooltip(t.composedPath());this.clickedTooltip=i,i?.closeOnClick&&(this.toggleTooltip(i,!1),this.clearHoverTimeout())},this.focusInHandler=t=>{this.queryFocusedTooltip(t,!0)},this.focusOutHandler=t=>{this.queryFocusedTooltip(t,!1)},this.openHoveredTooltip=t=>{this.hoverOpenTimeout=window.setTimeout((()=>{null!==this.hoverOpenTimeout&&(this.clearHoverCloseTimeout(),this.activeTooltip!==this.hoveredTooltip&&(this.closeActiveTooltip(),t===this.hoveredTooltip&&this.toggleTooltip(t,!0)))}),this.activeTooltip?0:300)},this.closeHoveredTooltip=()=>{this.hoverCloseTimeout=window.setTimeout((()=>{null!==this.hoverCloseTimeout&&this.closeActiveTooltip()}),500)}}registerElement(t,i){this.registeredElementCount++,this.registeredElements.set(t,i);const e=this.getReferenceElShadowRootNode(t);e&&this.registerShadowRoot(e),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){const i=this.getReferenceElShadowRootNode(t);i&&this.unregisterShadowRoot(i),this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}addShadowListeners(t){t.addEventListener("focusin",this.focusInHandler,{capture:!0}),t.addEventListener("focusout",this.focusOutHandler,{capture:!0})}removeShadowListeners(t){t.removeEventListener("focusin",this.focusInHandler,{capture:!0}),t.removeEventListener("focusout",this.focusOutHandler,{capture:!0})}addListeners(){document.addEventListener("keydown",this.keyDownHandler,{capture:!0}),document.addEventListener("pointermove",this.pointerMoveHandler,{capture:!0}),document.addEventListener("pointerdown",this.pointerDownHandler,{capture:!0}),document.addEventListener("focusin",this.focusInHandler,{capture:!0}),document.addEventListener("focusout",this.focusOutHandler,{capture:!0})}removeListeners(){document.removeEventListener("keydown",this.keyDownHandler,{capture:!0}),document.removeEventListener("pointermove",this.pointerMoveHandler,{capture:!0}),document.removeEventListener("pointerdown",this.pointerDownHandler,{capture:!0}),document.removeEventListener("focusin",this.focusInHandler,{capture:!0}),document.removeEventListener("focusout",this.focusOutHandler,{capture:!0})}clearHoverOpenTimeout(){window.clearTimeout(this.hoverOpenTimeout),this.hoverOpenTimeout=null}clearHoverCloseTimeout(){window.clearTimeout(this.hoverCloseTimeout),this.hoverCloseTimeout=null}clearHoverTimeout(){this.clearHoverOpenTimeout(),this.clearHoverCloseTimeout()}closeActiveTooltip(){const{activeTooltip:t}=this;t?.open&&this.toggleTooltip(t,!1)}toggleFocusedTooltip(t,i){this.closeActiveTooltip(),i&&this.clearHoverTimeout(),this.toggleTooltip(t,i)}toggleTooltip(t,i){t.open=i,this.activeTooltip=i?t:null}queryFocusedTooltip(t,i){const e=this.queryTooltip(t.composedPath());e&&!this.isClosableClickedTooltip(e)&&this.toggleFocusedTooltip(e,i)}isClosableClickedTooltip(t){return t?.closeOnClick&&t===this.clickedTooltip}registerShadowRoot(t){const{registeredShadowRootCounts:i}=this,e=(i.get(t)??0)+1;1===e&&this.addShadowListeners(t),i.set(t,e)}unregisterShadowRoot(t){const{registeredShadowRootCounts:i}=this,e=i.get(t)-1;0===e&&this.removeShadowListeners(t),i.set(t,e)}getReferenceElShadowRootNode(t){return t instanceof Element?r(t):null}},y=class{constructor(e){t(this,e),this.calciteTooltipBeforeClose=i(this,"calciteTooltipBeforeClose",6),this.calciteTooltipClose=i(this,"calciteTooltipClose",6),this.calciteTooltipBeforeOpen=i(this,"calciteTooltipBeforeOpen",6),this.calciteTooltipOpen=i(this,"calciteTooltipOpen",6),this.guid=`calcite-tooltip-${u()}`,this.hasLoaded=!1,this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=w(this.el),c(this,this.effectiveReferenceElement,this.el);const{el:i,referenceElement:e,effectiveReferenceElement:s}=this;t&&e&&!s&&console.warn(`${i.tagName}: reference-element id "${e}" was not found.`,{el:i}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const i=this.getId();"setAttribute"in t&&t.setAttribute(v,i),b.registerElement(t,this.el)},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&t.removeAttribute(v),b.unregisterElement(t))},this.closeOnClick=!1,this.label=void 0,this.offsetDistance=h,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.effectiveReferenceElement=void 0,this.floatingLayout="vertical"}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(t){m(this),t&&this.reposition(!0)}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement()}connectedCallback(){this.setUpReferenceElement(this.hasLoaded),this.open&&m(this)}async componentWillLoad(){this.open&&m(this)}componentDidLoad(){this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(!0),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),d(this,this.effectiveReferenceElement,this.el)}async reposition(t=!1){const{el:i,effectiveReferenceElement:e,placement:s,overlayPositioning:o,offsetDistance:n,offsetSkidding:a,arrowEl:r}=this;return p(this,{floatingEl:i,referenceEl:e,overlayPositioning:o,placement:s,offsetDistance:n,offsetSkidding:a,arrowEl:r,type:"tooltip"},t)}onBeforeOpen(){this.calciteTooltipBeforeOpen.emit()}onOpen(){this.calciteTooltipOpen.emit()}onBeforeClose(){this.calciteTooltipBeforeClose.emit()}onClose(){this.calciteTooltipClose.emit()}render(){const{effectiveReferenceElement:t,label:i,open:o,floatingLayout:n}=this,a=t&&o,r=!a;return e(s,{"aria-hidden":l(r),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":r,id:this.getId(),role:"tooltip"},e("div",{class:{[f.animation]:!0,[f.animationActive]:a},ref:this.setTransitionEl},e(g,{floatingLayout:n,ref:t=>this.arrowEl=t}),e("div",{class:"container"},e("slot",null))))}get el(){return o(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};y.style=":host{--calcite-floating-ui-z-index:var(--calcite-tooltip-z-index, var(--calcite-app-z-index-tooltip));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-app-z-index) * -1);fill:var(--calcite-ui-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-ui-border-3)}.container{position:relative;overflow:hidden;border-radius:0.25rem;padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);max-inline-size:20rem;max-block-size:20rem;text-align:start}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}:host([hidden]){display:none}[hidden]{display:none}";export{y as calcite_tooltip}
6
+ import{r as t,c as i,h as e,H as s,a as o}from"./p-6465dae9.js";import{q as n,i as a,y as r,t as l}from"./p-a0177c5d.js";import{c,b as h,a as d,r as p,F as f}from"./p-372add5a.js";import{g as u}from"./p-a2931b1a.js";import{o as m}from"./p-144622f1.js";import{F as g}from"./p-acea2728.js";import"./p-af1fc64b.js";import"./p-c47baee6.js";const v="aria-describedby";function b(t){const{referenceElement:i}=t;return("string"==typeof i?n(t,{id:i}):i)||null}const w=new class{constructor(){this.registeredElements=new WeakMap,this.registeredShadowRootCounts=new WeakMap,this.hoverOpenTimeout=null,this.hoverCloseTimeout=null,this.hoveredTooltip=null,this.clickedTooltip=null,this.activeTooltip=null,this.registeredElementCount=0,this.queryTooltip=t=>{const{registeredElements:i}=this,e=t.find((t=>i.has(t)));return i.get(e)},this.keyDownHandler=t=>{if("Escape"===t.key&&!t.defaultPrevented){const{activeTooltip:i}=this;if(i?.open){this.clearHoverTimeout(),this.closeActiveTooltip();const e=b(i);e instanceof Element&&e.contains(t.target)&&t.preventDefault()}}},this.pointerMoveHandler=t=>{const i=t.composedPath(),{activeTooltip:e}=this;if(e?.open&&i.includes(e))return void this.clearHoverTimeout();const s=this.queryTooltip(i);this.hoveredTooltip=s,this.isClosableClickedTooltip(s)||(this.clickedTooltip=null,s?this.openHoveredTooltip(s):e&&this.closeHoveredTooltip())},this.pointerDownHandler=t=>{if(!a(t))return;const i=this.queryTooltip(t.composedPath());this.clickedTooltip=i,i?.closeOnClick&&(this.toggleTooltip(i,!1),this.clearHoverTimeout())},this.focusInHandler=t=>{this.queryFocusedTooltip(t,!0)},this.focusOutHandler=t=>{this.queryFocusedTooltip(t,!1)},this.openHoveredTooltip=t=>{this.hoverOpenTimeout=window.setTimeout((()=>{null!==this.hoverOpenTimeout&&(this.clearHoverCloseTimeout(),this.activeTooltip!==this.hoveredTooltip&&(this.closeActiveTooltip(),t===this.hoveredTooltip&&this.toggleTooltip(t,!0)))}),this.activeTooltip?0:300)},this.closeHoveredTooltip=()=>{this.hoverCloseTimeout=window.setTimeout((()=>{null!==this.hoverCloseTimeout&&this.closeActiveTooltip()}),500)}}registerElement(t,i){this.registeredElementCount++,this.registeredElements.set(t,i);const e=this.getReferenceElShadowRootNode(t);e&&this.registerShadowRoot(e),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){const i=this.getReferenceElShadowRootNode(t);i&&this.unregisterShadowRoot(i),this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}addShadowListeners(t){t.addEventListener("focusin",this.focusInHandler,{capture:!0}),t.addEventListener("focusout",this.focusOutHandler,{capture:!0})}removeShadowListeners(t){t.removeEventListener("focusin",this.focusInHandler,{capture:!0}),t.removeEventListener("focusout",this.focusOutHandler,{capture:!0})}addListeners(){document.addEventListener("keydown",this.keyDownHandler,{capture:!0}),document.addEventListener("pointermove",this.pointerMoveHandler,{capture:!0}),document.addEventListener("pointerdown",this.pointerDownHandler,{capture:!0}),document.addEventListener("focusin",this.focusInHandler,{capture:!0}),document.addEventListener("focusout",this.focusOutHandler,{capture:!0})}removeListeners(){document.removeEventListener("keydown",this.keyDownHandler,{capture:!0}),document.removeEventListener("pointermove",this.pointerMoveHandler,{capture:!0}),document.removeEventListener("pointerdown",this.pointerDownHandler,{capture:!0}),document.removeEventListener("focusin",this.focusInHandler,{capture:!0}),document.removeEventListener("focusout",this.focusOutHandler,{capture:!0})}clearHoverOpenTimeout(){window.clearTimeout(this.hoverOpenTimeout),this.hoverOpenTimeout=null}clearHoverCloseTimeout(){window.clearTimeout(this.hoverCloseTimeout),this.hoverCloseTimeout=null}clearHoverTimeout(){this.clearHoverOpenTimeout(),this.clearHoverCloseTimeout()}closeActiveTooltip(){const{activeTooltip:t}=this;t?.open&&this.toggleTooltip(t,!1)}toggleFocusedTooltip(t,i){this.closeActiveTooltip(),i&&this.clearHoverTimeout(),this.toggleTooltip(t,i)}toggleTooltip(t,i){t.open=i,this.activeTooltip=i?t:null}queryFocusedTooltip(t,i){const e=this.queryTooltip(t.composedPath());e&&!this.isClosableClickedTooltip(e)&&this.toggleFocusedTooltip(e,i)}isClosableClickedTooltip(t){return t?.closeOnClick&&t===this.clickedTooltip}registerShadowRoot(t){const{registeredShadowRootCounts:i}=this,e=(i.get(t)??0)+1;1===e&&this.addShadowListeners(t),i.set(t,e)}unregisterShadowRoot(t){const{registeredShadowRootCounts:i}=this,e=i.get(t)-1;0===e&&this.removeShadowListeners(t),i.set(t,e)}getReferenceElShadowRootNode(t){return t instanceof Element?r(t):null}},y=class{constructor(e){t(this,e),this.calciteTooltipBeforeClose=i(this,"calciteTooltipBeforeClose",6),this.calciteTooltipClose=i(this,"calciteTooltipClose",6),this.calciteTooltipBeforeOpen=i(this,"calciteTooltipBeforeOpen",6),this.calciteTooltipOpen=i(this,"calciteTooltipOpen",6),this.guid=`calcite-tooltip-${u()}`,this.hasLoaded=!1,this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=b(this.el),c(this,this.effectiveReferenceElement,this.el);const{el:i,referenceElement:e,effectiveReferenceElement:s}=this;t&&e&&!s&&console.warn(`${i.tagName}: reference-element id "${e}" was not found.`,{el:i}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const i=this.getId();"setAttribute"in t&&t.setAttribute(v,i),w.registerElement(t,this.el)},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&t.removeAttribute(v),w.unregisterElement(t))},this.closeOnClick=!1,this.label=void 0,this.offsetDistance=h,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.effectiveReferenceElement=void 0,this.floatingLayout="vertical"}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(t){m(this),t&&this.reposition(!0)}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement()}connectedCallback(){this.setUpReferenceElement(this.hasLoaded),this.open&&m(this)}async componentWillLoad(){this.open&&m(this)}componentDidLoad(){this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(!0),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),d(this,this.effectiveReferenceElement,this.el)}async reposition(t=!1){const{el:i,effectiveReferenceElement:e,placement:s,overlayPositioning:o,offsetDistance:n,offsetSkidding:a,arrowEl:r}=this;return p(this,{floatingEl:i,referenceEl:e,overlayPositioning:o,placement:s,offsetDistance:n,offsetSkidding:a,arrowEl:r,type:"tooltip"},t)}onBeforeOpen(){this.calciteTooltipBeforeOpen.emit()}onOpen(){this.calciteTooltipOpen.emit()}onBeforeClose(){this.calciteTooltipBeforeClose.emit()}onClose(){this.calciteTooltipClose.emit()}render(){const{effectiveReferenceElement:t,label:i,open:o,floatingLayout:n}=this,a=t&&o,r=!a;return e(s,{"aria-hidden":l(r),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":r,id:this.getId(),role:"tooltip"},e("div",{class:{[f.animation]:!0,[f.animationActive]:a},ref:this.setTransitionEl},e(g,{floatingLayout:n,ref:t=>this.arrowEl=t}),e("div",{class:"container"},e("slot",null))))}get el(){return o(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};y.style=":host{--calcite-floating-ui-z-index:var(--calcite-tooltip-z-index, var(--calcite-app-z-index-tooltip));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-app-z-index) * -1);fill:var(--calcite-ui-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-ui-border-3)}.container{position:relative;overflow:hidden;border-radius:0.25rem;padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);max-inline-size:20rem;max-block-size:20rem;text-align:start}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}:host([hidden]){display:none}[hidden]{display:none}";export{y as calcite_tooltip}
@@ -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.6.1
4
+ * v1.7.0-next.0
5
5
  */
6
- import{r as e,h as t,a as i}from"./p-1e9017ef.js";import{c as s,d as a}from"./p-06a878f3.js";import{u as n,c,s as o,d as r}from"./p-6907d13a.js";import{c as l}from"./p-3416cfde.js";import{v as h}from"./p-4b1570f3.js";import"./p-8e33d107.js";import"./p-887e1f3e.js";import"./p-464ac09d.js";const d=class{constructor(t){e(this,t),this.resizeObserver=l("resize",(()=>this.handleResize())),this.handleDefaultSlotChange=e=>{this.hasContent=h(e)},this.storeLoaderEl=e=>{this.loaderEl=e,this.handleResize()},this.loading=!1,this.messages=void 0,this.messageOverrides=void 0,this.loaderScale=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.hasContent=!1}onMessagesChange(){}effectiveLocaleChange(){n(this,this.effectiveLocale)}connectedCallback(){s(this),c(this),this.resizeObserver?.observe(this.el)}async componentWillLoad(){await o(this)}disconnectedCallback(){a(this),r(this),this.resizeObserver?.disconnect()}render(){const{hasContent:e,loading:i,messages:s}=this;return t("div",{class:"scrim"},i?t("calcite-loader",{label:s.loading,ref:this.storeLoaderEl,scale:this.loaderScale}):null,t("div",{class:"content",hidden:!e},t("slot",{onSlotchange:this.handleDefaultSlotChange})))}getScale(e){return e<72?"s":e>=480?"l":"m"}handleResize(){const{loaderEl:e,el:t}=this;e&&(this.loaderScale=this.getScale(Math.min(t.clientHeight,t.clientWidth)??0))}static get assetsDirs(){return["assets"]}get el(){return i(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};d.style=":host{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;inset:0px;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-scrim-background-internal))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}";export{d as calcite_scrim}
6
+ import{r as t,h as e,a as i}from"./p-6465dae9.js";import{c as s,d as a}from"./p-37e8ce69.js";import{u as n,c,s as o,d as r}from"./p-0dfda7d1.js";import{c as l}from"./p-f0184ce0.js";import{x as h}from"./p-a0177c5d.js";import"./p-10535875.js";import"./p-a2931b1a.js";import"./p-af1fc64b.js";const d=class{constructor(e){t(this,e),this.resizeObserver=l("resize",(()=>this.handleResize())),this.handleDefaultSlotChange=t=>{this.hasContent=h(t)},this.storeLoaderEl=t=>{this.loaderEl=t,this.handleResize()},this.loading=!1,this.messages=void 0,this.messageOverrides=void 0,this.loaderScale=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.hasContent=!1}onMessagesChange(){}effectiveLocaleChange(){n(this,this.effectiveLocale)}connectedCallback(){s(this),c(this),this.resizeObserver?.observe(this.el)}async componentWillLoad(){await o(this)}disconnectedCallback(){a(this),r(this),this.resizeObserver?.disconnect()}render(){const{hasContent:t,loading:i,messages:s}=this;return e("div",{class:"scrim"},i?e("calcite-loader",{label:s.loading,ref:this.storeLoaderEl,scale:this.loaderScale}):null,e("div",{class:"content",hidden:!t},e("slot",{onSlotchange:this.handleDefaultSlotChange})))}getScale(t){return t<72?"s":t>=480?"l":"m"}handleResize(){const{loaderEl:t,el:e}=this;t&&(this.loaderScale=this.getScale(Math.min(e.clientHeight,e.clientWidth)??0))}static get assetsDirs(){return["assets"]}get el(){return i(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};d.style=":host{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;inset:0px;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-scrim-background-internal))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}";export{d as calcite_scrim}
@@ -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.0-next.0
5
+ */
6
+ import{r as t,c as e,h as i,a as s,H as n}from"./p-6465dae9.js";import{b as a,t as l,g as o}from"./p-a0177c5d.js";import{c,d as r,u as h}from"./p-6e872dc1.js";import{c as d}from"./p-f0184ce0.js";import{d as p,c as u}from"./p-ba62d69a.js";import{S as m}from"./p-8d2a30a0.js";import{s as f,a as b,c as g}from"./p-939028cc.js";import{d as v}from"./p-c47baee6.js";import{c as w,d as y}from"./p-37e8ce69.js";import{u as x,c as C,s as k,d as I}from"./p-0dfda7d1.js";import"./p-a2931b1a.js";import"./p-af1fc64b.js";import"./p-10535875.js";const E="open-container",L="calcite-list-item";function S(t){const e=t.assignedElements({flatten:!0}),i=e.filter((t=>t?.matches("calcite-list-item-group"))).map((t=>Array.from(t.querySelectorAll(L)))).reduce(((t,e)=>[...t,...e]),[]),s=e.filter((t=>t?.matches(L)));return[...e.filter((t=>t?.matches("calcite-list"))).map((t=>Array.from(t.querySelectorAll(L)))).reduce(((t,e)=>[...t,...e]),[]),...i,...s]}function z(t){t.forEach((e=>{e.setPosition=t.indexOf(e)+1,e.setSize=t.length}))}function A(t,e=!1){return document.evaluate(e?"ancestor::calcite-list-item | ancestor::calcite-list-item-group":"ancestor::calcite-list-item",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength}const D="calcite-list-item",j=class{constructor(i){t(this,i),this.calciteListChange=e(this,"calciteListChange",6),this.calciteListFilter=e(this,"calciteListFilter",6),this.calciteListOrderChange=e(this,"calciteListOrderChange",6),this.calciteInternalListDefaultSlotChange=e(this,"calciteInternalListDefaultSlotChange",6),this.dragSelector="calcite-list-item",this.enabledListItems=[],this.handleSelector="calcite-handle",this.listItems=[],this.mutationObserver=d("mutation",(()=>this.updateListItems())),this.handleDefaultSlotChange=t=>{z(S(t.target)),this.parentListEl&&this.calciteInternalListDefaultSlotChange.emit()},this.handleFilterActionsStartSlotChange=t=>{this.hasFilterActionsStart=a(t)},this.handleFilterActionsEndSlotChange=t=>{this.hasFilterActionsEnd=a(t)},this.setActiveListItem=()=>{const{enabledListItems:t}=this;t.some((t=>t.active))||t[0]&&(t[0].active=!0)},this.updateSelectedItems=(t=!1)=>{this.selectedItems=this.enabledListItems.filter((t=>t.selected)),t&&this.calciteListChange.emit()},this.updateFilteredItems=(t=!1)=>{const{listItems:e,filteredData:i,filterText:s}=this,n=i.map((t=>t.value)),a=e?.filter((t=>e.every((e=>e===t||!t.contains(e))))),l=e.filter((t=>!s||n.includes(t.value)))||[],o=new WeakSet;a.forEach((t=>this.filterElements({el:t,filteredItems:l,visibleParents:o}))),this.filteredItems=l,t&&this.calciteListFilter.emit()},this.setFilterEl=t=>{this.filterEl=t,this.performFilter()},this.handleFilterChange=t=>{t.stopPropagation();const{value:e}=t.currentTarget;this.filterText=e,this.updateFilteredData(!0)},this.getItemData=()=>this.listItems.map((t=>({label:t.label,description:t.description,metadata:t.metadata,value:t.value}))),this.updateListItems=v(((t=!1)=>{const{selectionAppearance:e,selectionMode:i,dragEnabled:s}=this;if(this.parentListEl)return this.queryListItems(!0).forEach((t=>{t.dragHandle=s})),void this.setUpSorting();const n=this.queryListItems();n.forEach((t=>{t.selectionAppearance=e,t.selectionMode=i})),this.queryListItems(!0).forEach((t=>{t.dragHandle=s})),this.listItems=n,this.filterEnabled&&(this.dataForFilter=this.getItemData(),this.filterEl&&(this.filterEl.items=this.dataForFilter)),this.updateFilteredItems(t),this.enabledListItems=this.filteredItems.filter((t=>!t.disabled&&!t.closed)),this.setActiveListItem(),this.updateSelectedItems(t),this.setUpSorting()}),0),this.queryListItems=(t=!1)=>Array.from(this.el.querySelectorAll(t?":scope > calcite-list-item":D)),this.focusRow=t=>{const{enabledListItems:e}=this;t&&(e.forEach((e=>e.active=e===t)),t.setFocus())},this.isNavigable=t=>{const e=t.parentElement?.closest(D);return!e||e.open&&this.isNavigable(e)},this.handleListKeydown=t=>{if(t.defaultPrevented||this.parentListEl)return;const{key:e}=t,i=this.enabledListItems.filter((t=>this.isNavigable(t))),s=i.findIndex((t=>t.active));if("ArrowDown"===e){t.preventDefault();const e=t.target===this.filterEl?0:s+1;i[e]&&this.focusRow(i[e])}else if("ArrowUp"===e){if(t.preventDefault(),0===s&&this.filterEnabled)return void this.filterEl?.setFocus();const e=s-1;i[e]&&this.focusRow(i[e])}else if("Home"===e){t.preventDefault();const e=i[0];e&&this.focusRow(e)}else if("End"===e){t.preventDefault();const e=i[i.length-1];e&&this.focusRow(e)}},this.disabled=!1,this.canPull=void 0,this.canPut=void 0,this.dragEnabled=!1,this.group=void 0,this.filterEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterPlaceholder=void 0,this.filterText=void 0,this.label=void 0,this.loading=!1,this.openable=!1,this.selectedItems=[],this.selectionMode="none",this.selectionAppearance="icon",this.assistiveText=void 0,this.dataForFilter=[],this.hasFilterActionsEnd=!1,this.hasFilterActionsStart=!1}async handleFilterTextChange(){this.performFilter()}handleListItemChange(){this.updateListItems()}handleCalciteInternalFocusPreviousItem(t){if(this.parentListEl)return;t.stopPropagation();const{enabledListItems:e}=this,i=e.findIndex((t=>t.active))-1;e[i]&&this.focusRow(e[i])}handleCalciteInternalListItemActive(t){if(this.parentListEl)return;t.stopPropagation();const e=t.target,{listItems:i}=this;i.forEach((t=>{t.active=t===e}))}handleCalciteListItemSelect(){this.parentListEl||this.updateSelectedItems(!0)}handleCalciteInternalHandleChange(t){this.assistiveText=t.detail.message,t.stopPropagation()}handleCalciteHandleNudge(t){this.parentListEl||this.handleNudgeEvent(t)}handleCalciteInternalListItemSelect(t){if(this.parentListEl)return;t.stopPropagation();const e=t.target,{listItems:i,selectionMode:s}=this;!e.selected||"single"!==s&&"single-persist"!==s||i.forEach((t=>t.selected=t===e)),this.updateSelectedItems()}handleCalciteInternalListItemChange(t){this.parentListEl||(t.stopPropagation(),this.updateListItems(!0))}handleCalciteInternalListItemGroupDefaultSlotChange(t){t.stopPropagation()}connectedCallback(){this.connectObserver(),this.updateListItems(),this.setUpSorting(),c(this),this.parentListEl=this.el.parentElement.closest("calcite-list")}disconnectedCallback(){this.disconnectObserver(),p(this),r(this)}componentWillLoad(){f(this)}componentDidRender(){h(this)}componentDidLoad(){b(this)}async setFocus(){return await g(this),this.filterEnabled?this.filterEl?.setFocus():this.enabledListItems.find((t=>t.active))?.setFocus()}render(){const{loading:t,label:e,disabled:s,dataForFilter:n,filterEnabled:a,filterPlaceholder:o,filterText:c,hasFilterActionsStart:r,hasFilterActionsEnd:h}=this;return i("div",{class:"container"},this.dragEnabled?i("span",{"aria-live":"assertive",class:"assistive-text"},this.assistiveText):null,t?i("calcite-scrim",{class:"scrim",loading:t}):null,i("table",{"aria-busy":l(t),"aria-label":e||"",class:"table",onKeyDown:this.handleListKeydown,role:"treegrid"},a||r||h?i("thead",null,i("tr",{class:{"sticky-pos":!0}},i("th",{colSpan:0},i("calcite-stack",{class:"stack"},i("slot",{name:"filter-actions-start",onSlotchange:this.handleFilterActionsStartSlotChange,slot:m.actionsStart}),i("calcite-filter",{"aria-label":o,disabled:t||s,items:n,onCalciteFilterChange:this.handleFilterChange,placeholder:o,value:c,ref:this.setFilterEl}),i("slot",{name:"filter-actions-end",onSlotchange:this.handleFilterActionsEndSlotChange,slot:m.actionsEnd}))))):null,i("tbody",{class:"table-container"},i("slot",{onSlotchange:this.handleDefaultSlotChange}))))}connectObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}disconnectObserver(){this.mutationObserver?.disconnect()}setUpSorting(){const{dragEnabled:t}=this;t&&u(this)}onDragStart(){this.disconnectObserver()}onDragEnd(){this.connectObserver()}onDragSort(t){this.updateListItems();const{from:e,item:i,to:s}=t;this.calciteListOrderChange.emit({dragEl:i,fromEl:e,toEl:s})}filterElements({el:t,filteredItems:e,visibleParents:i}){const s=!i.has(t)&&!e.includes(t);t.hidden=s;const n=t.parentElement.closest("calcite-list-item-group, calcite-list-item");n&&(s||i.add(n),this.filterElements({el:n,filteredItems:e,visibleParents:i}))}updateFilteredData(t=!1){const{filterEl:e}=this;e&&(e.filteredItems&&(this.filteredData=e.filteredItems),this.updateListItems(t))}async performFilter(){const{filterEl:t,filterText:e}=this;t&&(t.value=e,await t.filter(e),this.updateFilteredData())}handleNudgeEvent(t){const{direction:e}=t.detail,i=t.composedPath(),s=i.find((t=>"CALCITE-HANDLE"===t.tagName)),n=i.find((t=>"CALCITE-LIST-ITEM"===t.tagName)),a=n?.parentElement;if(!a)return;const{enabledListItems:l}=this,o=l.filter((t=>t.parentElement===a)),c=o.length-1,r=o.indexOf(n);let h,d=!1;"up"===e?0===r?d=!0:h=r-1:r===c?h=0:r===c-1?d=!0:h=r+2,this.disconnectObserver(),d?a.appendChild(n):a.insertBefore(n,o[h]),this.updateListItems(),this.connectObserver(),this.calciteListOrderChange.emit({dragEl:n,fromEl:null,toEl:null}),s.setFocus().then((()=>{s.activated=!0}))}get el(){return s(this)}static get watchers(){return{filterText:["handleFilterTextChange"],filterEnabled:["handleListItemChange"],group:["handleListItemChange"],dragEnabled:["handleListItemChange"],selectionMode:["handleListItemChange"],selectionAppearance:["handleListItemChange"]}}};j.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}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{position:relative}.table-container{position:relative;z-index:var(--calcite-app-z-index);box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}.table-container *{box-sizing:border-box}.table{inline-size:100%;border-collapse:collapse}.stack{--calcite-stack-padding-inline:0;--calcite-stack-padding-block:0}::slotted(calcite-list-item){margin-block-end:1px;--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)}::slotted(calcite-list-item:last-child){--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)}.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-app-z-index-sticky);background-color:var(--calcite-ui-foreground-1)}.sticky-pos th{padding:0px}.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 F=new Map,M=class{constructor(i){t(this,i),this.calciteListItemSelect=e(this,"calciteListItemSelect",6),this.calciteListItemClose=e(this,"calciteListItemClose",6),this.calciteInternalListItemSelect=e(this,"calciteInternalListItemSelect",6),this.calciteInternalListItemActive=e(this,"calciteInternalListItemActive",6),this.calciteInternalFocusPreviousItem=e(this,"calciteInternalFocusPreviousItem",6),this.calciteInternalListItemChange=e(this,"calciteInternalListItemChange",6),this.closeClickHandler=()=>{this.closed=!0,this.calciteListItemClose.emit()},this.handleContentSlotChange=t=>{this.hasCustomContent=a(t)},this.handleActionsStartSlotChange=t=>{this.hasActionsStart=a(t)},this.handleActionsEndSlotChange=t=>{this.hasActionsEnd=a(t)},this.handleContentStartSlotChange=t=>{this.hasContentStart=a(t)},this.handleContentEndSlotChange=t=>{this.hasContentEnd=a(t)},this.handleDefaultSlotChange=t=>{this.handleOpenableChange(t.target)},this.toggleOpen=()=>{this.open=!this.open},this.itemClicked=t=>{t.defaultPrevented||(this.toggleSelected(),this.calciteInternalListItemActive.emit())},this.toggleSelected=()=>{const{selectionMode:t,selected:e}=this;this.disabled||("multiple"===t||"single"===t?this.selected=!e:"single-persist"===t&&(this.selected=!0),this.calciteListItemSelect.emit())},this.handleItemKeyDown=t=>{if(t.defaultPrevented)return;const{key:e}=t,i=t.composedPath(),{containerEl:s,contentEl:n,actionsStartEl:a,actionsEndEl:l,open:o,openable:c}=this,r=[a,n,l].filter(Boolean),h=r.findIndex((t=>i.includes(t)));if("Enter"===e)t.preventDefault(),this.toggleSelected();else if("ArrowRight"===e){t.preventDefault();const e=h+1;-1===h?!o&&c?(this.open=!0,this.focusCell(null)):r[0]&&this.focusCell(r[0]):r[h]&&r[e]&&this.focusCell(r[e])}else if("ArrowLeft"===e){t.preventDefault();const e=h-1;-1===h?(this.focusCell(null),o&&c?this.open=!1:this.calciteInternalFocusPreviousItem.emit()):0===h?(this.focusCell(null),s.focus()):r[h]&&r[e]&&this.focusCell(r[e])}},this.focusCellNull=()=>{this.focusCell(null)},this.focusCell=(t,e=!0)=>{const{contentEl:i,actionsStartEl:s,actionsEndEl:n,parentListEl:a}=this;e&&F.set(a,null),[s,i,n].filter(Boolean).forEach(((i,s)=>{const n="tabindex";i===t?(i.setAttribute(n,"0"),e&&F.set(a,s)):i.removeAttribute(n)})),t?.focus()},this.active=!1,this.closable=!1,this.closed=!1,this.description=void 0,this.disabled=!1,this.dragHandle=!1,this.label=void 0,this.metadata=void 0,this.open=!1,this.setSize=null,this.setPosition=null,this.selected=!1,this.value=void 0,this.selectionMode=null,this.selectionAppearance=null,this.messageOverrides=void 0,this.messages=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.level=null,this.visualLevel=null,this.parentListEl=void 0,this.openable=!1,this.hasActionsStart=!1,this.hasActionsEnd=!1,this.hasCustomContent=!1,this.hasContentStart=!1,this.hasContentEnd=!1}activeHandler(t){t||this.focusCell(null,!1)}handleClosedChange(){this.emitCalciteInternalListItemChange()}handleDisabledChange(){this.emitCalciteInternalListItemChange()}handleSelectedChange(){this.calciteInternalListItemSelect.emit()}onMessagesChange(){}handleCalciteInternalListDefaultSlotChanges(t){t.stopPropagation(),this.handleOpenableChange(this.defaultSlotEl)}effectiveLocaleChange(){x(this,this.effectiveLocale)}connectedCallback(){c(this),w(this),C(this);const{el:t}=this;this.parentListEl=t.closest("calcite-list"),this.level=A(t)+1,this.visualLevel=A(t,!0),this.setSelectionDefaults()}async componentWillLoad(){f(this),await k(this)}componentDidLoad(){b(this)}componentDidRender(){h(this,"managed")}disconnectedCallback(){r(this),y(this),I(this)}async setFocus(){await g(this);const{containerEl:t,contentEl:e,actionsStartEl:i,actionsEndEl:s,parentListEl:n}=this,a=F.get(n);if("number"!=typeof a)t?.focus();else{const n=[i,e,s].filter(Boolean);n[a]?this.focusCell(n[a]):t?.focus()}}renderSelected(){const{selected:t,selectionMode:e,selectionAppearance:s}=this;return"none"===e||"border"===s?null:i("td",{class:"selection-container",key:"selection-container",onClick:this.itemClicked},i("calcite-icon",{icon:t?"multiple"===e?"check-circle-f":"circle-f":"blank",scale:"s"}))}renderDragHandle(){return this.dragHandle?i("td",{class:"drag-container",key:"drag-handle-container"},i("calcite-handle",{label:this.label,setPosition:this.setPosition,setSize:this.setSize})):null}renderOpen(){const{el:t,open:e,openable:s,parentListEl:n}=this,a=o(t);return s?i("td",{class:E,key:"open-container",onClick:this.toggleOpen},i("calcite-icon",{icon:e?"caret-down":"rtl"===a?"caret-left":"caret-right",scale:"s"})):n?.openable?i("td",{class:E,key:"open-container",onClick:this.itemClicked},i("calcite-icon",{icon:"blank",scale:"s"})):null}renderActionsStart(){const{label:t,hasActionsStart:e}=this;return i("td",{"aria-label":t,class:"actions-start",hidden:!e,key:"actions-start-container",role:"gridcell",ref:t=>this.actionsStartEl=t},i("slot",{name:"actions-start",onSlotchange:this.handleActionsStartSlotChange}))}renderActionsEnd(){const{label:t,hasActionsEnd:e,closable:s,messages:n}=this;return i("td",{"aria-label":t,class:"actions-end",hidden:!(e||s),key:"actions-end-container",role:"gridcell",ref:t=>this.actionsEndEl=t},i("slot",{name:"actions-end",onSlotchange:this.handleActionsEndSlotChange}),s?i("calcite-action",{appearance:"transparent",icon:"x",key:"close-action",label:n.close,onClick:this.closeClickHandler,text:n.close}):null)}renderContentStart(){const{hasContentStart:t}=this;return i("div",{class:"content-start",hidden:!t},i("slot",{name:"content-start",onSlotchange:this.handleContentStartSlotChange}))}renderCustomContent(){const{hasCustomContent:t}=this;return i("div",{class:"custom-content",hidden:!t},i("slot",{name:"content",onSlotchange:this.handleContentSlotChange}))}renderContentEnd(){const{hasContentEnd:t}=this;return i("div",{class:"content-end",hidden:!t},i("slot",{name:"content-end",onSlotchange:this.handleContentEndSlotChange}))}renderContentProperties(){const{label:t,description:e,hasCustomContent:s}=this;return s||!t&&!e?null:i("div",{class:"content",key:"content"},t?i("div",{class:"label",key:"label"},t):null,e?i("div",{class:"description",key:"description"},e):null)}renderContentContainer(){const{description:t,label:e,selectionMode:s,hasCustomContent:n}=this,a=n||!!e||!!t,l=[this.renderContentStart(),this.renderCustomContent(),this.renderContentProperties(),this.renderContentEnd()];return i("td",{"aria-label":e,class:{"content-container":!0,"content-container--selectable":"none"!==s,"content-container--has-center-content":a},key:"content-container",onClick:this.itemClicked,role:"gridcell",ref:t=>this.contentEl=t},l)}render(){const{openable:t,open:e,level:s,setPosition:a,setSize:o,active:c,label:r,selected:h,selectionAppearance:d,selectionMode:p,closed:u}=this,m="none"!==p&&"border"===d,f=m&&h,b=m&&!h;return i(n,null,i("tr",{"aria-expanded":t?l(e):null,"aria-label":r,"aria-level":s,"aria-posinset":a,"aria-selected":l(h),"aria-setsize":o,class:{container:!0,"container--border-selected":f,"container--border-unselected":b},hidden:u,onFocus:this.focusCellNull,onKeyDown:this.handleItemKeyDown,role:"row",style:{"--calcite-list-item-spacing-indent-multiplier":`${this.visualLevel}`},tabIndex:c?0:-1,ref:t=>this.containerEl=t},this.renderDragHandle(),this.renderSelected(),this.renderOpen(),this.renderActionsStart(),this.renderContentContainer(),this.renderActionsEnd()),i("div",{class:{"nested-container":!0,"nested-container--hidden":t&&!e}},i("slot",{onSlotchange:this.handleDefaultSlotChange,ref:t=>this.defaultSlotEl=t})))}emitCalciteInternalListItemChange(){this.calciteInternalListItemChange.emit()}setSelectionDefaults(){const{parentListEl:t,selectionMode:e,selectionAppearance:i}=this;t&&(e||(this.selectionMode=t.selectionMode),i||(this.selectionAppearance=t.selectionAppearance))}handleOpenableChange(t){if(!t)return;const{parentListEl:e}=this,i=S(t);z(i);const s=!!i.length;s&&e&&!e.openable&&(e.openable=!0),this.openable=s,s||(this.open=!1)}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{active:["activeHandler"],closed:["handleClosedChange"],disabled:["handleDisabledChange"],selected:["handleSelectedChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};M.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;flex-direction:column;--calcite-list-item-icon-color:var(--calcite-ui-brand);--calcite-list-item-spacing-indent:1rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family);padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}.container *{box-sizing:border-box}.container:hover{cursor:pointer;background-color:var(--calcite-ui-foreground-2)}.container--border-selected{border-inline-start:4px solid var(--calcite-ui-brand)}.container--border-unselected{border-inline-start:4px solid transparent}.nested-container{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.nested-container--hidden{display:none}.content-container{display:flex;flex:1 1 auto;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}tr,td{outline-color:transparent}tr:focus,td:focus{z-index:var(--calcite-app-z-index-sticky);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 )}.content,.custom-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}.label,.description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}.label:only-child,.description:only-child{margin:0px;padding-block:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.content-container--has-center-content .content-start,.content-container--has-center-content .content-end{flex:0 1 auto}.selection-container{display:flex;padding-inline:0.75rem;color:var(--calcite-list-item-icon-color)}.actions-start,.actions-end,.content-start,.content-end,.selection-container,.drag-container,.open-container{display:flex;align-items:center}.open-container,.selection-container{cursor:pointer}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){align-self:stretch;color:inherit}::slotted(calcite-list-item){border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([hidden]){display:none}[hidden]{display:none}";const P=class{constructor(i){t(this,i),this.calciteInternalListItemGroupDefaultSlotChange=e(this,"calciteInternalListItemGroupDefaultSlotChange",6),this.handleDefaultSlotChange=()=>{this.calciteInternalListItemGroupDefaultSlotChange.emit()},this.disabled=!1,this.heading=void 0,this.visualLevel=null}connectedCallback(){const{el:t}=this;this.visualLevel=A(t,!0),c(this)}componentDidRender(){h(this)}disconnectedCallback(){r(this)}render(){const{heading:t,visualLevel:e}=this;return i(n,null,i("tr",{class:"container",style:{"--calcite-list-item-spacing-indent-multiplier":`${e}`}},i("td",{class:"heading",colSpan:0},t)),i("slot",{onSlotchange:this.handleDefaultSlotChange}))}get el(){return s(this)}};P.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;flex-direction:column;background-color:var(--calcite-ui-foreground-1);--calcite-list-item-spacing-indent:1rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{margin:0px;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.heading{padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}::slotted(calcite-list-item){margin-block-end:1px;--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)}::slotted(calcite-list-item:last-child){--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([hidden]){display:none}[hidden]{display:none}";export{j as calcite_list,M as calcite_list_item,P as calcite_list_item_group}
@@ -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.6.1
4
+ * v1.7.0-next.0
5
5
  */
6
6
  const n=/^[0-9A-F]$/i,r=/^#[0-9A-F]{3}$/i,t=/^#[0-9A-F]{6}$/i,e=/^#[0-9A-F]{4}$/i,s=/^#[0-9A-F]{8}$/i,u=n=>Number((100*n).toFixed()),a=n=>Number((n/100).toFixed(2));function i(n,r=!1){return c(n,r)||o(n,r)}function f(n,r,t){return!!n&&n.length===r&&t.test(n)}function c(n,t=!1){return f(n,t?5:4,t?e:r)}function o(n,r=!1){return f(n,r?9:7,r?s:t)}function $(n,r=!1,t=!1){return(n=n.toLowerCase()).startsWith("#")||(n=`#${n}`),c(n,r)?h(S(n,r)):r&&t&&i(n,!1)?h(S(`${n}${c(n,!1)?"f":"ff"}`,!0)):n}function l(n,r=!1){return r?n.hexa():n.hex()}function h(n){const{r,g:t,b:e}=n;return`#${b(r)}${b(t)}${b(e)}${"a"in n?b(255*n.a):""}`.toLowerCase()}function b(n){return n.toString(16).padStart(2,"0")}function g(n){const r={...n,a:n.alpha??1};return delete r.alpha,r}function p(n){const r={...n,alpha:n.a??1};return delete r.a,r}function S(n,r=!1){if(!i(n,r))return null;let t,e,s,u;if(3===(n=n.replace("#","")).length||4===n.length){const[r,a,i,f]=n.split("");t=parseInt(`${r}${r}`,16),e=parseInt(`${a}${a}`,16),s=parseInt(`${i}${i}`,16),u=parseInt(`${f}${f}`,16)/255}else t=parseInt(n.slice(0,2),16),e=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16),u=parseInt(n.slice(6,8),16)/255;return isNaN(u)?{r:t,g:e,b:s}:{r:t,g:e,b:s,a:u}}const A={HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"},I="rgb",C="rgba",F="hsl",H="hsla",N="hsv",_="hsva";function d(n){if("string"==typeof n){if(n.startsWith("#")){const{length:r}=n;if(4===r||7===r)return A.HEX;if(5===r||9===r)return A.HEXA}if(n.startsWith("rgba("))return A.RGBA_CSS;if(n.startsWith("rgb("))return A.RGB_CSS;if(n.startsWith("hsl("))return A.HSL_CSS;if(n.startsWith("hsla("))return A.HSLA_CSS}if("object"==typeof n){if(v(n,"r","g","b"))return v(n,"a")?C:I;if(v(n,"h","s","l"))return v(n,"a")?H:F;if(v(n,"h","s","v"))return v(n,"a")?_:N}return null}function v(n,...r){return r.every((r=>r&&n&&`${r}`in n))}function x(n,r){return n?.rgb().array().toString()===r?.rgb().array().toString()}function j(n){return n===A.HEXA||n===A.RGBA_CSS||n===A.HSLA_CSS||n===C||n===H||n===_}function m(n){return n===A.HEX?A.HEXA:n===A.RGB_CSS?A.RGBA_CSS:n===A.HSL_CSS?A.HSLA_CSS:n===I?C:n===F?H:n===N?_:n}function y(n){return n===A.HEXA?A.HEX:n===A.RGBA_CSS?A.RGB_CSS:n===A.HSLA_CSS?A.HSL_CSS:n===C?I:n===H?F:n===_?N:n}export{A as C,l as a,u as b,j as c,x as d,g as e,m as f,p as g,S as h,i,o as j,n as k,$ as n,a as o,d as p,h as r,y as t}
@@ -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.6.1
4
+ * v1.7.0-next.0
5
5
  */
6
- import{d as e,a as t}from"./p-464ac09d.js";function o(){const{classList:o}=document.body,n=window.matchMedia("(prefers-color-scheme: dark)").matches,d=()=>o.contains(e)||o.contains(t)&&n?"dark":"light",c=e=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:e}})),i=e=>{a!==e&&c(e),a=e};let a=d();c(a),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(e=>i(e.matches?"dark":"light"))),new MutationObserver((()=>i(d()))).observe(document.body,{attributes:!0,attributeFilter:["class"]})}const n=function(){"undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document&&("interactive"===document.readyState?o():document.addEventListener("DOMContentLoaded",(()=>o()),{once:!0}))};export{n as g}
6
+ import{d as e,a as t}from"./p-af1fc64b.js";function o(){const{classList:o}=document.body,n=window.matchMedia("(prefers-color-scheme: dark)").matches,d=()=>o.contains(e)||o.contains(t)&&n?"dark":"light",c=e=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:e}})),i=e=>{a!==e&&c(e),a=e};let a=d();c(a),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(e=>i(e.matches?"dark":"light"))),new MutationObserver((()=>i(d()))).observe(document.body,{attributes:!0,attributeFilter:["class"]})}const n=function(){"undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document&&("interactive"===document.readyState?o():document.addEventListener("DOMContentLoaded",(()=>o()),{once:!0}))};export{n as g}
@@ -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.6.1
4
+ * v1.7.0-next.0
5
5
  */
6
- import{r as i,c as t,h as e,H as a,a as o}from"./p-1e9017ef.js";import{c as n,d as s}from"./p-94e56b3a.js";import{h as r,b as l,f as c,u as d}from"./p-4b1570f3.js";import{d as h,a as m,c as p,u as b}from"./p-34afd961.js";import{s as u,a as x,c as v}from"./p-227f54c6.js";import{c as g}from"./p-3416cfde.js";import{o as f}from"./p-66e2d46d.js";import{c as k,d as z}from"./p-06a878f3.js";import{s as w,c as y,d as C,u as $}from"./p-6907d13a.js";import"./p-887e1f3e.js";import"./p-464ac09d.js";import"./p-8e33d107.js";const j="modal",M="header",O="container",D="modal--opening-idle",F="modal--opening-active",B="modal--closing-idle",L="modal--closing-active",S="content",T="back",E="secondary",H="primary",q=class{constructor(e){i(this,e),this.calciteModalBeforeClose=t(this,"calciteModalBeforeClose",6),this.calciteModalClose=t(this,"calciteModalClose",6),this.calciteModalBeforeOpen=t(this,"calciteModalBeforeOpen",6),this.calciteModalOpen=t(this,"calciteModalOpen",6),this.mutationObserver=g("mutation",(()=>this.handleMutationObserver())),this.cssVarObserver=g("mutation",(()=>{this.updateSizeCssVars()})),this.openTransitionProp="opacity",this.setTransitionEl=i=>{this.transitionEl=i},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.handleOutsideClose=()=>{this.outsideCloseDisabled||this.close()},this.close=()=>this.beforeClose(this.el).then((()=>{this.open=!1,this.isOpen=!1,this.removeOverflowHiddenClass()})),this.handleMutationObserver=()=>{this.updateFooterVisibility(),this.updateFocusTrapElements()},this.updateFooterVisibility=()=>{this.hasFooter=!!r(this.el,[T,H,E])},this.updateSizeCssVars=()=>{this.cssWidth=getComputedStyle(this.el).getPropertyValue("--calcite-modal-width"),this.cssHeight=getComputedStyle(this.el).getPropertyValue("--calcite-modal-height")},this.contentTopSlotChangeHandler=i=>{this.hasContentTop=l(i)},this.contentBottomSlotChangeHandler=i=>{this.hasContentBottom=l(i)},this.open=!1,this.beforeClose=()=>Promise.resolve(),this.closeButtonDisabled=!1,this.focusTrapDisabled=!1,this.outsideCloseDisabled=!1,this.docked=void 0,this.escapeDisabled=!1,this.scale="m",this.width="m",this.fullscreen=void 0,this.kind=void 0,this.messages=void 0,this.messageOverrides=void 0,this.slottedInShell=void 0,this.cssWidth=void 0,this.cssHeight=void 0,this.hasFooter=!0,this.hasContentTop=!1,this.hasContentBottom=!1,this.isOpen=!1,this.effectiveLocale=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(i){this.open&&(i?h(this):m(this))}onMessagesChange(){}async componentWillLoad(){await w(this),u(this),this.open&&(f(this),requestAnimationFrame((()=>this.openModal())))}componentDidLoad(){x(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.cssVarObserver?.observe(this.el,{attributeFilter:["style"]}),this.updateSizeCssVars(),this.updateFooterVisibility(),n(this),k(this),y(this),p(this)}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.cssVarObserver?.disconnect(),s(this),h(this),z(this),C(this),this.slottedInShell=!1}render(){return e(a,{"aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},e("div",{class:{[O]:!0,"container--open":this.isOpen,"slotted-in-shell":this.slottedInShell}},e("calcite-scrim",{class:"scrim",onClick:this.handleOutsideClose}),this.renderStyle(),e("div",{class:{[j]:!0},ref:this.setTransitionEl},e("div",{class:M},this.renderCloseButton(),e("header",{class:"title"},e("slot",{name:M}))),this.renderContentTop(),e("div",{class:{content:!0,"content--no-footer":!this.hasFooter},ref:i=>this.modalContent=i},e("slot",{name:S})),this.renderContentBottom(),this.renderFooter())))}renderFooter(){return this.hasFooter?e("div",{class:"footer",key:"footer"},e("span",{class:"back"},e("slot",{name:T})),e("span",{class:"secondary"},e("slot",{name:E})),e("span",{class:"primary"},e("slot",{name:H}))):null}renderContentTop(){return e("div",{class:"content-top",hidden:!this.hasContentTop},e("slot",{name:"content-top",onSlotchange:this.contentTopSlotChangeHandler}))}renderContentBottom(){return e("div",{class:"content-bottom",hidden:!this.hasContentBottom},e("slot",{name:"content-bottom",onSlotchange:this.contentBottomSlotChangeHandler}))}renderCloseButton(){return this.closeButtonDisabled?null:e("button",{"aria-label":this.messages.close,class:"close",key:"button",onClick:this.close,title:this.messages.close,ref:i=>this.closeButtonEl=i},e("calcite-icon",{icon:"x",scale:"s"===this.scale?"s":"m"===this.scale?"m":"l"===this.scale?"l":null}))}renderStyle(){if(!this.fullscreen&&(this.cssWidth||this.cssHeight))return e("style",null,`.${O} {\n ${this.docked&&this.cssWidth?"align-items: center !important;":""}\n }\n .${j} {\n block-size: ${this.cssHeight?this.cssHeight:"auto"} !important;\n ${this.cssWidth?`inline-size: ${this.cssWidth} !important;`:""}\n ${this.cssWidth?`max-inline-size: ${this.cssWidth} !important;`:""}\n ${this.docked?"border-radius: var(--calcite-border-radius) !important;":""}\n }\n @media screen and (max-width: ${this.cssWidth}) {\n .${O} {\n ${this.docked?"align-items: flex-end !important;":""}\n }\n .${j} {\n max-block-size: 100% !important;\n inline-size: 100% !important;\n max-inline-size: 100% !important;\n min-inline-size: 100% !important;\n margin: 0 !important;\n ${this.docked?"":"block-size: 100% !important;"}\n ${this.docked?"":"border-radius: 0 !important;"}\n ${this.docked?"border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0 !important;":""}\n }\n }\n `)}effectiveLocaleChange(){$(this,this.effectiveLocale)}handleEscape(i){!this.open||this.escapeDisabled||"Escape"!==i.key||i.defaultPrevented||(this.close(),i.preventDefault())}async setFocus(){await v(this),c(this.el)}async updateFocusTrapElements(){b(this)}async scrollContent(i=0,t=0){this.modalContent&&(this.modalContent.scrollTo?this.modalContent.scrollTo({top:i,left:t,behavior:"smooth"}):(this.modalContent.scrollTop=i,this.modalContent.scrollLeft=t))}onBeforeOpen(){this.transitionEl.classList.add(F),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl.classList.remove(D,F),this.calciteModalOpen.emit(),m(this)}onBeforeClose(){this.transitionEl.classList.add(L),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl.classList.remove(B,L),this.calciteModalClose.emit(),h(this)}async toggleModal(i){f(this),i?(this.transitionEl?.classList.add(D),this.openModal()):(this.transitionEl?.classList.add(B),this.close())}openModal(){this.el.addEventListener("calciteModalOpen",this.openEnd),this.open=!0,this.isOpen=!0;const i=r(this.el,"header"),t=r(this.el,S);this.titleId=d(i),this.contentId=d(t),this.slottedInShell||(this.initialOverflowCSS=document.documentElement.style.overflow,document.documentElement.style.setProperty("overflow","hidden"))}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",this.initialOverflowCSS)}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"],open:["toggleModal"]}}};q.style=":host{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-scrim-background-internal:rgba(0, 0, 0, 0.85)}.content-top[hidden],.content-bottom[hidden]{display:none}.container{position:fixed;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([scale=s]){--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:var(--calcite-modal-scrim-background, var(--calcite-modal-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:var(--calcite-app-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active{transform:var(--calcite-modal-shown-position)}.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([open]){opacity:1;visibility:visible !important;transition-delay:0ms}.container--open{opacity:1;visibility:visible !important;transition-delay:0ms}.container--open .modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}.header{z-index:var(--calcite-app-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}.close{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-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 )}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text-internal)}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0px;background-color:var(--calcite-modal-content-background, var(--calcite-ui-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}.content-top,.content-bottom{z-index:var(--calcite-app-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}.content-top{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}.content-bottom{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}.content-top:not(.header~.content-top){border-start-start-radius:0.25rem;border-start-end-radius:0.25rem}.content-bottom:not(.content-bottom~.footer),.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-context-text-internal)}.footer{z-index:var(--calcite-app-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width=s]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width=s][docked]) .container{align-items:flex-end}}:host([width=m]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width=m][docked]) .container{align-items:flex-end}}:host([width=l]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width=l][docked]) .container{align-items:flex-end}}:host([fullscreen]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([open][fullscreen]) .header,:host([open][fullscreen]) .footer,:host([open][fullscreen]) .content-top,:host([open][fullscreen]) .content-bottom{border-radius:0}:host([docked]) .modal{block-size:var(--calcite-modal-height, auto)}:host([docked]) .content{block-size:auto;flex:1 1 auto}:host([kind=brand]) .modal{border-color:var(--calcite-ui-brand)}:host([kind=danger]) .modal{border-color:var(--calcite-ui-danger)}:host([kind=info]) .modal{border-color:var(--calcite-ui-info)}:host([kind=success]) .modal{border-color:var(--calcite-ui-success)}:host([kind=warning]) .modal{border-color:var(--calcite-ui-warning)}:host([kind=brand]) .modal,:host([kind=danger]) .modal,:host([kind=info]) .modal,:host([kind=success]) .modal,:host([kind=warning]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([kind=brand]) .header,:host([kind=brand]) .content-top,:host([kind=danger]) .header,:host([kind=danger]) .content-top,:host([kind=info]) .header,:host([kind=info]) .content-top,:host([kind=success]) .header,:host([kind=success]) .content-top,:host([kind=warning]) .header,:host([kind=warning]) .content-top{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){* slot[name=header]::slotted(content-top),* content-top::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer,.content-bottom{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer,.content-bottom{flex-direction:column}.back,.secondary{margin:0px;margin-block-end:0.25rem}}.container.slotted-in-shell{position:absolute;pointer-events:auto}.container.slotted-in-shell calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}";export{q as calcite_modal}
6
+ import{r as i,c as t,h as e,H as a,a as o}from"./p-6465dae9.js";import{c as n,d as s}from"./p-f2699c0c.js";import{h as r,b as l,f as c,w as d}from"./p-a0177c5d.js";import{d as h,a as m,c as p,u as b}from"./p-a5921d07.js";import{s as u,a as x,c as v}from"./p-939028cc.js";import{c as g}from"./p-f0184ce0.js";import{o as f}from"./p-144622f1.js";import{c as k,d as z}from"./p-37e8ce69.js";import{s as w,c as y,d as C,u as $}from"./p-0dfda7d1.js";import"./p-a2931b1a.js";import"./p-af1fc64b.js";import"./p-10535875.js";const j="modal",M="header",O="container",D="modal--opening-idle",F="modal--opening-active",B="modal--closing-idle",L="modal--closing-active",S="content",T="back",E="secondary",H="primary",q=class{constructor(e){i(this,e),this.calciteModalBeforeClose=t(this,"calciteModalBeforeClose",6),this.calciteModalClose=t(this,"calciteModalClose",6),this.calciteModalBeforeOpen=t(this,"calciteModalBeforeOpen",6),this.calciteModalOpen=t(this,"calciteModalOpen",6),this.mutationObserver=g("mutation",(()=>this.handleMutationObserver())),this.cssVarObserver=g("mutation",(()=>{this.updateSizeCssVars()})),this.openTransitionProp="opacity",this.setTransitionEl=i=>{this.transitionEl=i},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.handleOutsideClose=()=>{this.outsideCloseDisabled||this.close()},this.close=()=>this.beforeClose(this.el).then((()=>{this.open=!1,this.isOpen=!1,this.removeOverflowHiddenClass()})),this.handleMutationObserver=()=>{this.updateFooterVisibility(),this.updateFocusTrapElements()},this.updateFooterVisibility=()=>{this.hasFooter=!!r(this.el,[T,H,E])},this.updateSizeCssVars=()=>{this.cssWidth=getComputedStyle(this.el).getPropertyValue("--calcite-modal-width"),this.cssHeight=getComputedStyle(this.el).getPropertyValue("--calcite-modal-height")},this.contentTopSlotChangeHandler=i=>{this.hasContentTop=l(i)},this.contentBottomSlotChangeHandler=i=>{this.hasContentBottom=l(i)},this.open=!1,this.beforeClose=()=>Promise.resolve(),this.closeButtonDisabled=!1,this.focusTrapDisabled=!1,this.outsideCloseDisabled=!1,this.docked=void 0,this.escapeDisabled=!1,this.scale="m",this.width="m",this.fullscreen=void 0,this.kind=void 0,this.messages=void 0,this.messageOverrides=void 0,this.slottedInShell=void 0,this.cssWidth=void 0,this.cssHeight=void 0,this.hasFooter=!0,this.hasContentTop=!1,this.hasContentBottom=!1,this.isOpen=!1,this.effectiveLocale=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(i){this.open&&(i?h(this):m(this))}onMessagesChange(){}async componentWillLoad(){await w(this),u(this),this.open&&(f(this),requestAnimationFrame((()=>this.openModal())))}componentDidLoad(){x(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.cssVarObserver?.observe(this.el,{attributeFilter:["style"]}),this.updateSizeCssVars(),this.updateFooterVisibility(),n(this),k(this),y(this),p(this)}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.cssVarObserver?.disconnect(),s(this),h(this),z(this),C(this),this.slottedInShell=!1}render(){return e(a,{"aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},e("div",{class:{[O]:!0,"container--open":this.isOpen,"slotted-in-shell":this.slottedInShell}},e("calcite-scrim",{class:"scrim",onClick:this.handleOutsideClose}),this.renderStyle(),e("div",{class:{[j]:!0},ref:this.setTransitionEl},e("div",{class:M},this.renderCloseButton(),e("header",{class:"title"},e("slot",{name:M}))),this.renderContentTop(),e("div",{class:{content:!0,"content--no-footer":!this.hasFooter},ref:i=>this.modalContent=i},e("slot",{name:S})),this.renderContentBottom(),this.renderFooter())))}renderFooter(){return this.hasFooter?e("div",{class:"footer",key:"footer"},e("span",{class:"back"},e("slot",{name:T})),e("span",{class:"secondary"},e("slot",{name:E})),e("span",{class:"primary"},e("slot",{name:H}))):null}renderContentTop(){return e("div",{class:"content-top",hidden:!this.hasContentTop},e("slot",{name:"content-top",onSlotchange:this.contentTopSlotChangeHandler}))}renderContentBottom(){return e("div",{class:"content-bottom",hidden:!this.hasContentBottom},e("slot",{name:"content-bottom",onSlotchange:this.contentBottomSlotChangeHandler}))}renderCloseButton(){return this.closeButtonDisabled?null:e("button",{"aria-label":this.messages.close,class:"close",key:"button",onClick:this.close,title:this.messages.close,ref:i=>this.closeButtonEl=i},e("calcite-icon",{icon:"x",scale:"s"===this.scale?"s":"m"===this.scale?"m":"l"===this.scale?"l":null}))}renderStyle(){if(!this.fullscreen&&(this.cssWidth||this.cssHeight))return e("style",null,`.${O} {\n ${this.docked&&this.cssWidth?"align-items: center !important;":""}\n }\n .${j} {\n block-size: ${this.cssHeight?this.cssHeight:"auto"} !important;\n ${this.cssWidth?`inline-size: ${this.cssWidth} !important;`:""}\n ${this.cssWidth?`max-inline-size: ${this.cssWidth} !important;`:""}\n ${this.docked?"border-radius: var(--calcite-border-radius) !important;":""}\n }\n @media screen and (max-width: ${this.cssWidth}) {\n .${O} {\n ${this.docked?"align-items: flex-end !important;":""}\n }\n .${j} {\n max-block-size: 100% !important;\n inline-size: 100% !important;\n max-inline-size: 100% !important;\n min-inline-size: 100% !important;\n margin: 0 !important;\n ${this.docked?"":"block-size: 100% !important;"}\n ${this.docked?"":"border-radius: 0 !important;"}\n ${this.docked?"border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0 !important;":""}\n }\n }\n `)}effectiveLocaleChange(){$(this,this.effectiveLocale)}handleEscape(i){!this.open||this.escapeDisabled||"Escape"!==i.key||i.defaultPrevented||(this.close(),i.preventDefault())}async setFocus(){await v(this),c(this.el)}async updateFocusTrapElements(){b(this)}async scrollContent(i=0,t=0){this.modalContent&&(this.modalContent.scrollTo?this.modalContent.scrollTo({top:i,left:t,behavior:"smooth"}):(this.modalContent.scrollTop=i,this.modalContent.scrollLeft=t))}onBeforeOpen(){this.transitionEl.classList.add(F),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl.classList.remove(D,F),this.calciteModalOpen.emit(),m(this)}onBeforeClose(){this.transitionEl.classList.add(L),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl.classList.remove(B,L),this.calciteModalClose.emit(),h(this)}async toggleModal(i){f(this),i?(this.transitionEl?.classList.add(D),this.openModal()):(this.transitionEl?.classList.add(B),this.close())}openModal(){this.el.addEventListener("calciteModalOpen",this.openEnd),this.open=!0,this.isOpen=!0;const i=r(this.el,"header"),t=r(this.el,S);this.titleId=d(i),this.contentId=d(t),this.slottedInShell||(this.initialOverflowCSS=document.documentElement.style.overflow,document.documentElement.style.setProperty("overflow","hidden"))}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",this.initialOverflowCSS)}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"],open:["toggleModal"]}}};q.style=":host{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-scrim-background-internal:rgba(0, 0, 0, 0.85)}.content-top[hidden],.content-bottom[hidden]{display:none}.container{position:fixed;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([scale=s]){--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:var(--calcite-modal-scrim-background, var(--calcite-modal-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:var(--calcite-app-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active{transform:var(--calcite-modal-shown-position)}.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([open]){opacity:1;visibility:visible !important;transition-delay:0ms}.container--open{opacity:1;visibility:visible !important;transition-delay:0ms}.container--open .modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}.header{z-index:var(--calcite-app-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}.close{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-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 )}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text-internal)}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0px;background-color:var(--calcite-modal-content-background, var(--calcite-ui-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}.content-top,.content-bottom{z-index:var(--calcite-app-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}.content-top{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}.content-bottom{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}.content-top:not(.header~.content-top){border-start-start-radius:0.25rem;border-start-end-radius:0.25rem}.content-bottom:not(.content-bottom~.footer),.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-context-text-internal)}.footer{z-index:var(--calcite-app-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width=s]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width=s][docked]) .container{align-items:flex-end}}:host([width=m]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width=m][docked]) .container{align-items:flex-end}}:host([width=l]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width=l][docked]) .container{align-items:flex-end}}:host([fullscreen]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([open][fullscreen]) .header,:host([open][fullscreen]) .footer,:host([open][fullscreen]) .content-top,:host([open][fullscreen]) .content-bottom{border-radius:0}:host([docked]) .modal{block-size:var(--calcite-modal-height, auto)}:host([docked]) .content{block-size:auto;flex:1 1 auto}:host([kind=brand]) .modal{border-color:var(--calcite-ui-brand)}:host([kind=danger]) .modal{border-color:var(--calcite-ui-danger)}:host([kind=info]) .modal{border-color:var(--calcite-ui-info)}:host([kind=success]) .modal{border-color:var(--calcite-ui-success)}:host([kind=warning]) .modal{border-color:var(--calcite-ui-warning)}:host([kind=brand]) .modal,:host([kind=danger]) .modal,:host([kind=info]) .modal,:host([kind=success]) .modal,:host([kind=warning]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([kind=brand]) .header,:host([kind=brand]) .content-top,:host([kind=danger]) .header,:host([kind=danger]) .content-top,:host([kind=info]) .header,:host([kind=info]) .content-top,:host([kind=success]) .header,:host([kind=success]) .content-top,:host([kind=warning]) .header,:host([kind=warning]) .content-top{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){* slot[name=header]::slotted(content-top),* content-top::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer,.content-bottom{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer,.content-bottom{flex-direction:column}.back,.secondary{margin:0px;margin-block-end:0.25rem}}.container.slotted-in-shell{position:absolute;pointer-events:auto}.container.slotted-in-shell calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}";export{q as calcite_modal}
@@ -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.6.1
4
+ * v1.7.0-next.0
5
5
  */
6
6
  var a;!function(a){a.brand="lightbulb",a.danger="exclamationMarkTriangle",a.info="information",a.success="checkCircle",a.warning="exclamationMarkTriangle"}(a||(a={}));export{a as K}
@@ -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.6.1
4
+ * v1.7.0-next.0
5
5
  */
6
- import{d as t}from"./p-30a72db6.js";import"./p-1e9017ef.js";import"./p-6bdb96ba.js";import"./p-4b1570f3.js";import"./p-887e1f3e.js";import"./p-464ac09d.js";import"./p-954e5104.js";import"./p-8e33d107.js";import"./p-ddfebca5.js";import"./p-227f54c6.js";import"./p-06a878f3.js";import"./p-3416cfde.js";import"./p-34afd961.js";import"./p-6907d13a.js";var m={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}};t.locale(m,null,!0);export default m;
6
+ import{d as t}from"./p-2f887196.js";import"./p-6465dae9.js";import"./p-daddbf26.js";import"./p-a0177c5d.js";import"./p-a2931b1a.js";import"./p-af1fc64b.js";import"./p-6e872dc1.js";import"./p-10535875.js";import"./p-4af1defc.js";import"./p-939028cc.js";import"./p-37e8ce69.js";import"./p-f0184ce0.js";import"./p-a5921d07.js";import"./p-0dfda7d1.js";var m={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}};t.locale(m,null,!0);export default m;
@@ -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.0-next.0
5
+ */
6
+ export{I as calcite_input_time_picker,T as calcite_time_picker}from"./p-2f887196.js";import"./p-6465dae9.js";import"./p-daddbf26.js";import"./p-a0177c5d.js";import"./p-a2931b1a.js";import"./p-af1fc64b.js";import"./p-6e872dc1.js";import"./p-10535875.js";import"./p-4af1defc.js";import"./p-939028cc.js";import"./p-37e8ce69.js";import"./p-f0184ce0.js";import"./p-a5921d07.js";import"./p-0dfda7d1.js";