@esri/calcite-components 1.0.0-next.634 → 1.0.0-next.636

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 (812) hide show
  1. package/dist/calcite/assets/date-picker/t9n/messages_ar.json +3 -3
  2. package/dist/calcite/assets/date-picker/t9n/messages_bg.json +3 -3
  3. package/dist/calcite/assets/date-picker/t9n/messages_bs.json +3 -3
  4. package/dist/calcite/assets/date-picker/t9n/messages_ca.json +3 -3
  5. package/dist/calcite/assets/date-picker/t9n/messages_cs.json +3 -3
  6. package/dist/calcite/assets/date-picker/t9n/messages_da.json +3 -3
  7. package/dist/calcite/assets/date-picker/t9n/messages_de.json +3 -3
  8. package/dist/calcite/assets/date-picker/t9n/messages_el.json +3 -3
  9. package/dist/calcite/assets/date-picker/t9n/messages_es.json +3 -3
  10. package/dist/calcite/assets/date-picker/t9n/messages_et.json +3 -3
  11. package/dist/calcite/assets/date-picker/t9n/messages_fi.json +3 -3
  12. package/dist/calcite/assets/date-picker/t9n/messages_fr.json +3 -3
  13. package/dist/calcite/assets/date-picker/t9n/messages_he.json +3 -3
  14. package/dist/calcite/assets/date-picker/t9n/messages_hr.json +3 -3
  15. package/dist/calcite/assets/date-picker/t9n/messages_hu.json +3 -3
  16. package/dist/calcite/assets/date-picker/t9n/messages_id.json +3 -3
  17. package/dist/calcite/assets/date-picker/t9n/messages_it.json +3 -3
  18. package/dist/calcite/assets/date-picker/t9n/messages_ja.json +3 -3
  19. package/dist/calcite/assets/date-picker/t9n/messages_ko.json +3 -3
  20. package/dist/calcite/assets/date-picker/t9n/messages_lt.json +3 -3
  21. package/dist/calcite/assets/date-picker/t9n/messages_lv.json +3 -3
  22. package/dist/calcite/assets/date-picker/t9n/messages_nl.json +3 -3
  23. package/dist/calcite/assets/date-picker/t9n/messages_no.json +3 -3
  24. package/dist/calcite/assets/date-picker/t9n/messages_pl.json +3 -3
  25. package/dist/calcite/assets/date-picker/t9n/messages_pt-BR.json +3 -3
  26. package/dist/calcite/assets/date-picker/t9n/messages_pt-PT.json +3 -3
  27. package/dist/calcite/assets/date-picker/t9n/messages_ro.json +3 -3
  28. package/dist/calcite/assets/date-picker/t9n/messages_ru.json +3 -3
  29. package/dist/calcite/assets/date-picker/t9n/messages_sk.json +3 -3
  30. package/dist/calcite/assets/date-picker/t9n/messages_sl.json +3 -3
  31. package/dist/calcite/assets/date-picker/t9n/messages_sr.json +3 -3
  32. package/dist/calcite/assets/date-picker/t9n/messages_sv.json +3 -3
  33. package/dist/calcite/assets/date-picker/t9n/messages_th.json +3 -3
  34. package/dist/calcite/assets/date-picker/t9n/messages_tr.json +3 -3
  35. package/dist/calcite/assets/date-picker/t9n/messages_uk.json +3 -3
  36. package/dist/calcite/assets/date-picker/t9n/messages_vi.json +3 -3
  37. package/dist/calcite/assets/date-picker/t9n/messages_zh-CN.json +3 -3
  38. package/dist/calcite/assets/date-picker/t9n/messages_zh-HK.json +3 -3
  39. package/dist/calcite/assets/date-picker/t9n/messages_zh-TW.json +3 -3
  40. package/dist/calcite/calcite.esm.js +2 -2
  41. package/dist/calcite/index.esm.js +1 -1
  42. package/dist/calcite/{p-aa828b48.entry.js → p-00a97531.entry.js} +2 -2
  43. package/dist/calcite/p-02b1cbd1.entry.js +6 -0
  44. package/dist/calcite/p-06e408e6.entry.js +6 -0
  45. package/dist/calcite/{p-ff11b325.js → p-0acb8cbe.js} +2 -2
  46. package/dist/calcite/{p-a1df68f2.js → p-0fc28e03.js} +1 -1
  47. package/dist/calcite/{p-61ff7d33.entry.js → p-13847681.entry.js} +2 -2
  48. package/dist/calcite/{p-3248b760.js → p-19966f31.js} +1 -1
  49. package/dist/calcite/p-1bb7c568.entry.js +6 -0
  50. package/dist/calcite/p-2036d2fc.entry.js +6 -0
  51. package/dist/calcite/{p-8fd4a94b.js → p-2437f9d8.js} +1 -1
  52. package/dist/calcite/{p-ad93f824.js → p-26102edc.js} +2 -2
  53. package/dist/calcite/{p-5aaca94e.entry.js → p-333aa3fe.entry.js} +2 -2
  54. package/dist/calcite/p-33625802.entry.js +6 -0
  55. package/dist/calcite/p-33f5b8e6.entry.js +6 -0
  56. package/dist/calcite/{p-40ac55d4.js → p-366980c1.js} +1 -1
  57. package/dist/calcite/p-3bcd7786.entry.js +6 -0
  58. package/dist/calcite/{p-54747397.entry.js → p-3cce5c8b.entry.js} +2 -2
  59. package/dist/calcite/p-44006b68.entry.js +6 -0
  60. package/dist/calcite/{p-f33f79fe.entry.js → p-46fb198b.entry.js} +2 -2
  61. package/dist/calcite/{p-283f5c09.js → p-4aced9e8.js} +1 -1
  62. package/dist/calcite/p-4c679a22.entry.js +6 -0
  63. package/dist/calcite/{p-8c7c815d.entry.js → p-514a00d8.entry.js} +2 -2
  64. package/dist/calcite/{p-c8ce3c7f.entry.js → p-53a19ef1.entry.js} +2 -2
  65. package/dist/calcite/{p-3ac19fc5.js → p-5473e287.js} +1 -1
  66. package/dist/calcite/p-57562b21.entry.js +6 -0
  67. package/dist/calcite/p-578ba695.entry.js +6 -0
  68. package/dist/calcite/{p-e0446d31.js → p-57b194ca.js} +2 -2
  69. package/dist/calcite/{p-fe757481.js → p-57c084d2.js} +2 -2
  70. package/dist/calcite/p-5a12a68e.entry.js +6 -0
  71. package/dist/calcite/p-5a614bb5.entry.js +6 -0
  72. package/dist/calcite/p-5e5a9beb.entry.js +6 -0
  73. package/dist/calcite/{p-be329084.entry.js → p-60dd0565.entry.js} +2 -2
  74. package/dist/calcite/p-61cd280f.entry.js +6 -0
  75. package/dist/calcite/p-67ab44c2.entry.js +6 -0
  76. package/dist/calcite/{p-e8fe4f12.js → p-67e64dc2.js} +1 -1
  77. package/dist/calcite/p-6936c2d5.entry.js +6 -0
  78. package/dist/calcite/{p-3ae26798.js → p-6ae0e5f3.js} +1 -1
  79. package/dist/calcite/{p-d9315abb.js → p-70b4e4ec.js} +2 -2
  80. package/dist/calcite/p-71ad5676.entry.js +6 -0
  81. package/dist/calcite/{p-6791bba7.js → p-753870d8.js} +1 -1
  82. package/dist/calcite/p-75a3f683.entry.js +6 -0
  83. package/dist/calcite/{p-f20871da.entry.js → p-769b7383.entry.js} +2 -2
  84. package/dist/calcite/{p-a859d62c.js → p-771abcbf.js} +2 -2
  85. package/dist/calcite/p-7a3df001.entry.js +6 -0
  86. package/dist/calcite/{p-45934568.entry.js → p-7cc61e30.entry.js} +2 -2
  87. package/dist/calcite/p-859b6e39.entry.js +6 -0
  88. package/dist/calcite/{p-beb4d321.entry.js → p-86791119.entry.js} +2 -2
  89. package/dist/calcite/{p-c5471b9c.js → p-86d3b233.js} +1 -1
  90. package/dist/calcite/{p-ea84f206.entry.js → p-8a5f0d75.entry.js} +2 -2
  91. package/dist/calcite/p-8c770d77.entry.js +6 -0
  92. package/dist/calcite/{p-8aaed1cd.entry.js → p-8f02f472.entry.js} +2 -2
  93. package/dist/calcite/p-968cfb07.entry.js +6 -0
  94. package/dist/calcite/p-98f019e1.entry.js +6 -0
  95. package/dist/calcite/{p-3bd2a45e.js → p-9ccc1023.js} +1 -1
  96. package/dist/calcite/p-a3fe057c.js +15 -0
  97. package/dist/calcite/{p-1fcec990.js → p-a8bb1274.js} +1 -1
  98. package/dist/calcite/{p-d51b3c13.entry.js → p-a983d04b.entry.js} +2 -2
  99. package/dist/calcite/{p-9f0364e4.entry.js → p-a994432e.entry.js} +2 -2
  100. package/dist/calcite/p-a9d52a09.entry.js +6 -0
  101. package/dist/calcite/{p-71442073.js → p-ac05b6c0.js} +2 -2
  102. package/dist/calcite/{p-a93c20e4.js → p-ac445235.js} +2 -2
  103. package/dist/calcite/p-ac7f4630.entry.js +6 -0
  104. package/dist/calcite/p-ac9d8c2c.js +6 -0
  105. package/dist/calcite/{p-4fb26ddc.js → p-ad8429bc.js} +1 -1
  106. package/dist/calcite/{p-3e516c7f.js → p-b41e7e3a.js} +1 -1
  107. package/dist/calcite/{p-def7411e.entry.js → p-b44544d1.entry.js} +2 -2
  108. package/dist/calcite/p-b46a2676.entry.js +6 -0
  109. package/dist/calcite/{p-68ac060f.entry.js → p-baf10b3e.entry.js} +2 -2
  110. package/dist/calcite/p-bf88462c.entry.js +6 -0
  111. package/dist/calcite/{p-77fd410f.js → p-c87ae805.js} +2 -2
  112. package/dist/calcite/{p-3a0ebd79.js → p-cac51a71.js} +2 -2
  113. package/dist/calcite/{p-99fbd79f.entry.js → p-cb623fb2.entry.js} +2 -2
  114. package/dist/calcite/p-ce88bc2d.entry.js +6 -0
  115. package/dist/calcite/p-cfc1f51e.entry.js +6 -0
  116. package/dist/calcite/p-d34b3464.entry.js +6 -0
  117. package/dist/calcite/p-da8dd4c2.entry.js +6 -0
  118. package/dist/calcite/{p-c6f2847f.js → p-de57d2c2.js} +1 -1
  119. package/dist/calcite/p-dea1b58f.entry.js +6 -0
  120. package/dist/calcite/p-e5a1b041.entry.js +6 -0
  121. package/dist/calcite/{p-693aae03.js → p-e5e9ccfe.js} +1 -1
  122. package/dist/calcite/p-e7f64668.entry.js +6 -0
  123. package/dist/calcite/{p-c51dd881.entry.js → p-e87dcb61.entry.js} +2 -2
  124. package/dist/calcite/p-ea8f42de.entry.js +6 -0
  125. package/dist/calcite/{p-60b58be2.js → p-edd4fc77.js} +2 -2
  126. package/dist/calcite/{p-363d6d79.entry.js → p-ee221109.entry.js} +2 -2
  127. package/dist/calcite/p-eeeee029.js +6 -0
  128. package/dist/calcite/{p-f21e4981.entry.js → p-f1c98c3e.entry.js} +2 -2
  129. package/dist/calcite/{p-65af369a.entry.js → p-f378eddf.entry.js} +2 -2
  130. package/dist/calcite/{p-15022cca.js → p-fb990403.js} +2 -2
  131. package/dist/calcite/p-fe73616f.entry.js +6 -0
  132. package/dist/calcite/p-ff739aac.entry.js +6 -0
  133. package/dist/cjs/{ExpandToggle-3e3214db.js → ExpandToggle-54255b81.js} +5 -5
  134. package/dist/cjs/{Heading-f9512062.js → Heading-b526ff45.js} +2 -2
  135. package/dist/cjs/{app-globals-686edd04.js → app-globals-fba1cf21.js} +2 -2
  136. package/dist/cjs/{array-c5663245.js → array-dd1b7450.js} +1 -1
  137. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  138. package/dist/cjs/calcite-action-bar.cjs.entry.js +17 -11
  139. package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
  140. package/dist/cjs/calcite-action-menu.cjs.entry.js +17 -9
  141. package/dist/cjs/calcite-action-pad.cjs.entry.js +16 -10
  142. package/dist/cjs/calcite-action.cjs.entry.js +15 -7
  143. package/dist/cjs/calcite-alert.cjs.entry.js +16 -10
  144. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  145. package/dist/cjs/calcite-block_2.cjs.entry.js +10 -10
  146. package/dist/cjs/calcite-button.cjs.entry.js +15 -9
  147. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  148. package/dist/cjs/calcite-checkbox.cjs.entry.js +17 -9
  149. package/dist/cjs/calcite-chip.cjs.entry.js +15 -7
  150. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +23 -10
  151. package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -14
  152. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +11 -11
  153. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +17 -11
  154. package/dist/cjs/calcite-fab.cjs.entry.js +14 -6
  155. package/dist/cjs/calcite-filter.cjs.entry.js +17 -16
  156. package/dist/cjs/calcite-flow-item.cjs.entry.js +15 -7
  157. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  158. package/dist/cjs/calcite-graph_2.cjs.entry.js +18 -12
  159. package/dist/cjs/calcite-handle.cjs.entry.js +18 -5
  160. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  161. package/dist/cjs/calcite-inline-editable.cjs.entry.js +16 -8
  162. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +19 -15
  163. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  164. package/dist/cjs/calcite-input-number.cjs.entry.js +18 -12
  165. package/dist/cjs/calcite-input-text.cjs.entry.js +15 -9
  166. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +25 -12
  167. package/dist/cjs/calcite-input.cjs.entry.js +18 -12
  168. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  169. package/dist/cjs/calcite-link.cjs.entry.js +14 -6
  170. package/dist/cjs/calcite-list_3.cjs.entry.js +24 -14
  171. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  172. package/dist/cjs/calcite-modal.cjs.entry.js +20 -1275
  173. package/dist/cjs/calcite-notice.cjs.entry.js +14 -8
  174. package/dist/cjs/calcite-option_3.cjs.entry.js +15 -9
  175. package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
  176. package/dist/cjs/calcite-panel.cjs.entry.js +18 -10
  177. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +25 -12
  178. package/dist/cjs/calcite-popover_2.cjs.entry.js +30 -13
  179. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  180. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  181. package/dist/cjs/calcite-radio-button.cjs.entry.js +15 -9
  182. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +12 -8
  183. package/dist/cjs/calcite-rating.cjs.entry.js +17 -9
  184. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  185. package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
  186. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  187. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  188. package/dist/cjs/calcite-stepper_2.cjs.entry.js +15 -9
  189. package/dist/cjs/calcite-switch.cjs.entry.js +17 -9
  190. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  191. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +12 -4
  192. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  193. package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
  194. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +37 -13
  195. package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
  196. package/dist/cjs/calcite-value-list_2.cjs.entry.js +25 -12
  197. package/dist/cjs/calcite.cjs.js +5 -5
  198. package/dist/cjs/{conditionalSlot-80ddc591.js → conditionalSlot-8e686586.js} +3 -3
  199. package/dist/cjs/{debounce-0aa10d54.js → debounce-5d63b0c7.js} +1 -1
  200. package/dist/cjs/{dom-48b6e7ea.js → dom-43e4f26f.js} +3 -3
  201. package/dist/cjs/{filter-a0be9143.js → filter-2dbf260f.js} +2 -2
  202. package/dist/cjs/{floating-ui-e113e507.js → floating-ui-336cfe0f.js} +4 -4
  203. package/dist/cjs/focusTrapComponent-cb5f94cb.js +1274 -0
  204. package/dist/cjs/{form-6a1ae142.js → form-daaa94a8.js} +3 -3
  205. package/dist/cjs/{guid-e8bdff74.js → guid-00fb951d.js} +1 -1
  206. package/dist/cjs/{index-cb33237a.js → index-06711fd4.js} +1 -1
  207. package/dist/cjs/index.cjs.js +1 -1
  208. package/dist/cjs/{interactive-58feb714.js → interactive-251a436b.js} +1 -1
  209. package/dist/cjs/{interfaces-514b6336.js → interfaces-742bf539.js} +1 -1
  210. package/dist/cjs/{key-28925014.js → key-24715b4c.js} +1 -1
  211. package/dist/cjs/{label-db8e5611.js → label-2d0404d3.js} +2 -2
  212. package/dist/cjs/loadable-93fa1819.js +64 -0
  213. package/dist/cjs/loader.cjs.js +5 -5
  214. package/dist/cjs/{locale-4712da13.js → locale-f1bc7145.js} +4 -4
  215. package/dist/cjs/{math-21003c2e.js → math-d33c1733.js} +1 -1
  216. package/dist/cjs/{nonChromiumPlatformUtils-6028edcd.js → nonChromiumPlatformUtils-f8e45f33.js} +6 -6
  217. package/dist/cjs/{observers-82e08d22.js → observers-9985d188.js} +1 -1
  218. package/dist/cjs/{openCloseComponent-6fef593d.js → openCloseComponent-6000b95b.js} +1 -1
  219. package/dist/cjs/{resources-b0c6c049.js → resources-00983dc5.js} +5 -5
  220. package/dist/cjs/{resources-f96b551b.js → resources-40a41e6b.js} +1 -1
  221. package/dist/cjs/{resources-5722680b.js → resources-496495ef.js} +1 -1
  222. package/dist/cjs/{resources-160d3f9d.js → resources-69981161.js} +3 -3
  223. package/dist/cjs/{resources-c1ff1f36.js → resources-ac53ff3b.js} +1 -1
  224. package/dist/cjs/{resources-b3ffaf81.js → resources-fd8df720.js} +1 -1
  225. package/dist/cjs/{sortable.esm-497a0105.js → sortable.esm-15bf7700.js} +1 -1
  226. package/dist/cjs/{utils-3a948a07.js → utils-c9f37d0d.js} +1 -1
  227. package/dist/collection/components/accordion/accordion.js +1 -1
  228. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  229. package/dist/collection/components/accordion-item/resources.js +1 -1
  230. package/dist/collection/components/action/action.js +9 -1
  231. package/dist/collection/components/action/resources.js +1 -1
  232. package/dist/collection/components/action-bar/action-bar.js +7 -1
  233. package/dist/collection/components/action-bar/resources.js +1 -1
  234. package/dist/collection/components/action-bar/utils.js +1 -1
  235. package/dist/collection/components/action-group/action-group.js +1 -1
  236. package/dist/collection/components/action-group/resources.js +1 -1
  237. package/dist/collection/components/action-menu/action-menu.js +10 -2
  238. package/dist/collection/components/action-menu/resources.js +1 -1
  239. package/dist/collection/components/action-pad/action-pad.js +7 -1
  240. package/dist/collection/components/action-pad/resources.js +1 -1
  241. package/dist/collection/components/alert/alert.js +7 -1
  242. package/dist/collection/components/alert/interfaces.js +1 -1
  243. package/dist/collection/components/alert/resources.js +1 -1
  244. package/dist/collection/components/avatar/avatar.js +1 -1
  245. package/dist/collection/components/avatar/utils.js +1 -1
  246. package/dist/collection/components/block/block.js +1 -1
  247. package/dist/collection/components/block/resources.js +1 -1
  248. package/dist/collection/components/block-section/block-section.js +1 -1
  249. package/dist/collection/components/block-section/resources.js +1 -1
  250. package/dist/collection/components/button/button.js +7 -1
  251. package/dist/collection/components/button/resources.js +1 -1
  252. package/dist/collection/components/card/card.js +1 -1
  253. package/dist/collection/components/card/resources.js +1 -1
  254. package/dist/collection/components/checkbox/checkbox.js +9 -1
  255. package/dist/collection/components/chip/chip.js +9 -1
  256. package/dist/collection/components/chip/resources.js +1 -1
  257. package/dist/collection/components/color-picker/color-picker.js +7 -1
  258. package/dist/collection/components/color-picker/resources.js +1 -1
  259. package/dist/collection/components/color-picker/utils.js +1 -1
  260. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +9 -1
  261. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  262. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  263. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  264. package/dist/collection/components/combobox/combobox.js +5 -1
  265. package/dist/collection/components/combobox/resources.js +1 -1
  266. package/dist/collection/components/combobox/utils.js +1 -1
  267. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  268. package/dist/collection/components/combobox-item/resources.js +1 -1
  269. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  270. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  271. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ar.json +3 -3
  272. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_bg.json +3 -3
  273. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_bs.json +3 -3
  274. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ca.json +3 -3
  275. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_cs.json +3 -3
  276. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_da.json +3 -3
  277. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_de.json +3 -3
  278. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_el.json +3 -3
  279. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_es.json +3 -3
  280. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_et.json +3 -3
  281. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_fi.json +3 -3
  282. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_fr.json +3 -3
  283. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_he.json +3 -3
  284. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_hr.json +3 -3
  285. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_hu.json +3 -3
  286. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_id.json +3 -3
  287. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_it.json +3 -3
  288. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ja.json +3 -3
  289. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ko.json +3 -3
  290. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_lt.json +3 -3
  291. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_lv.json +3 -3
  292. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_nl.json +3 -3
  293. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_no.json +3 -3
  294. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_pl.json +3 -3
  295. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_pt-BR.json +3 -3
  296. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_pt-PT.json +3 -3
  297. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ro.json +3 -3
  298. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ru.json +3 -3
  299. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_sk.json +3 -3
  300. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_sl.json +3 -3
  301. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_sr.json +3 -3
  302. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_sv.json +3 -3
  303. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_th.json +3 -3
  304. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_tr.json +3 -3
  305. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_uk.json +3 -3
  306. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_vi.json +3 -3
  307. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_zh-CN.json +3 -3
  308. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_zh-HK.json +3 -3
  309. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_zh-TW.json +3 -3
  310. package/dist/collection/components/date-picker/date-picker.js +1 -1
  311. package/dist/collection/components/date-picker/resources.js +1 -1
  312. package/dist/collection/components/date-picker/utils.js +1 -1
  313. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  314. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  315. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  316. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  317. package/dist/collection/components/dropdown/dropdown.js +1 -1
  318. package/dist/collection/components/dropdown/resources.js +1 -1
  319. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  320. package/dist/collection/components/dropdown-group/resources.js +1 -1
  321. package/dist/collection/components/dropdown-item/dropdown-item.js +7 -1
  322. package/dist/collection/components/dropdown-item/resources.js +1 -1
  323. package/dist/collection/components/fab/fab.js +9 -1
  324. package/dist/collection/components/fab/resources.js +1 -1
  325. package/dist/collection/components/filter/filter.js +10 -9
  326. package/dist/collection/components/filter/resources.js +1 -1
  327. package/dist/collection/components/flow/flow.js +1 -1
  328. package/dist/collection/components/flow/resources.js +1 -1
  329. package/dist/collection/components/flow-item/flow-item.js +9 -1
  330. package/dist/collection/components/flow-item/resources.js +1 -1
  331. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  332. package/dist/collection/components/functional/Heading.js +1 -1
  333. package/dist/collection/components/graph/graph.js +1 -1
  334. package/dist/collection/components/graph/util.js +1 -1
  335. package/dist/collection/components/handle/handle.js +14 -1
  336. package/dist/collection/components/handle/resources.js +1 -1
  337. package/dist/collection/components/icon/icon.js +1 -1
  338. package/dist/collection/components/icon/resources.js +1 -1
  339. package/dist/collection/components/icon/utils.js +1 -1
  340. package/dist/collection/components/inline-editable/inline-editable.js +9 -1
  341. package/dist/collection/components/inline-editable/resources.js +1 -1
  342. package/dist/collection/components/input/input.js +7 -1
  343. package/dist/collection/components/input/resources.js +1 -1
  344. package/dist/collection/components/input-date-picker/input-date-picker.js +5 -1
  345. package/dist/collection/components/input-date-picker/resources.js +1 -1
  346. package/dist/collection/components/input-message/input-message.js +1 -1
  347. package/dist/collection/components/input-message/interfaces.js +1 -1
  348. package/dist/collection/components/input-number/input-number.js +7 -1
  349. package/dist/collection/components/input-number/resources.js +1 -1
  350. package/dist/collection/components/input-text/input-text.js +7 -1
  351. package/dist/collection/components/input-text/resources.js +1 -1
  352. package/dist/collection/components/input-time-picker/input-time-picker.js +8 -2
  353. package/dist/collection/components/label/label.js +1 -1
  354. package/dist/collection/components/label/resources.js +1 -1
  355. package/dist/collection/components/link/link.js +9 -1
  356. package/dist/collection/components/list/list.js +9 -1
  357. package/dist/collection/components/list/resources.js +1 -1
  358. package/dist/collection/components/list-item/list-item.js +9 -6
  359. package/dist/collection/components/list-item/resources.js +1 -1
  360. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  361. package/dist/collection/components/list-item-group/resources.js +1 -1
  362. package/dist/collection/components/loader/loader.js +1 -1
  363. package/dist/collection/components/modal/modal.js +7 -1
  364. package/dist/collection/components/modal/resources.js +1 -1
  365. package/dist/collection/components/notice/notice.js +7 -1
  366. package/dist/collection/components/notice/resources.js +1 -1
  367. package/dist/collection/components/option/option.js +1 -1
  368. package/dist/collection/components/option-group/option-group.js +1 -1
  369. package/dist/collection/components/pagination/pagination.js +1 -1
  370. package/dist/collection/components/pagination/resources.js +1 -1
  371. package/dist/collection/components/panel/panel.js +9 -1
  372. package/dist/collection/components/panel/resources.js +1 -1
  373. package/dist/collection/components/pick-list/pick-list.js +7 -1
  374. package/dist/collection/components/pick-list/resources.js +1 -1
  375. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  376. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  377. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  378. package/dist/collection/components/pick-list-group/resources.js +1 -1
  379. package/dist/collection/components/pick-list-item/pick-list-item.js +9 -1
  380. package/dist/collection/components/pick-list-item/resources.js +1 -1
  381. package/dist/collection/components/popover/PopoverManager.js +1 -1
  382. package/dist/collection/components/popover/popover.js +38 -3
  383. package/dist/collection/components/popover/resources.js +1 -1
  384. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  385. package/dist/collection/components/progress/progress.js +1 -1
  386. package/dist/collection/components/radio-button/radio-button.js +7 -1
  387. package/dist/collection/components/radio-button/resources.js +1 -1
  388. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  389. package/dist/collection/components/radio-group/radio-group.js +5 -1
  390. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  391. package/dist/collection/components/radio-group-item/resources.js +1 -1
  392. package/dist/collection/components/rating/rating.js +9 -1
  393. package/dist/collection/components/rating/resources.js +1 -1
  394. package/dist/collection/components/scrim/resources.js +1 -1
  395. package/dist/collection/components/scrim/scrim.js +1 -1
  396. package/dist/collection/components/select/resources.js +1 -1
  397. package/dist/collection/components/select/select.js +7 -1
  398. package/dist/collection/components/shell/resources.js +1 -1
  399. package/dist/collection/components/shell/shell.js +1 -1
  400. package/dist/collection/components/shell-center-row/resources.js +1 -1
  401. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  402. package/dist/collection/components/shell-panel/resources.js +1 -1
  403. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  404. package/dist/collection/components/slider/resources.js +1 -1
  405. package/dist/collection/components/slider/slider.js +7 -1
  406. package/dist/collection/components/sortable-list/resources.js +1 -1
  407. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  408. package/dist/collection/components/split-button/resources.js +1 -1
  409. package/dist/collection/components/split-button/split-button.js +1 -1
  410. package/dist/collection/components/stepper/stepper.js +1 -1
  411. package/dist/collection/components/stepper-item/stepper-item.js +7 -1
  412. package/dist/collection/components/switch/switch.js +9 -1
  413. package/dist/collection/components/tab/tab.js +1 -1
  414. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  415. package/dist/collection/components/tab-title/tab-title.js +1 -1
  416. package/dist/collection/components/tabs/resources.js +1 -1
  417. package/dist/collection/components/tabs/tabs.js +1 -1
  418. package/dist/collection/components/tile/resources.js +1 -1
  419. package/dist/collection/components/tile/tile.js +1 -1
  420. package/dist/collection/components/tile-select/resources.js +1 -1
  421. package/dist/collection/components/tile-select/tile-select.js +9 -1
  422. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  423. package/dist/collection/components/time-picker/resources.js +1 -1
  424. package/dist/collection/components/time-picker/time-picker.js +9 -1
  425. package/dist/collection/components/tip/resources.js +1 -1
  426. package/dist/collection/components/tip/tip.js +1 -1
  427. package/dist/collection/components/tip-group/tip-group.js +1 -1
  428. package/dist/collection/components/tip-manager/resources.js +1 -1
  429. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  430. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  431. package/dist/collection/components/tooltip/resources.js +1 -1
  432. package/dist/collection/components/tooltip/tooltip.js +90 -7
  433. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  434. package/dist/collection/components/tree/interfaces.js +1 -1
  435. package/dist/collection/components/tree/tree.js +1 -1
  436. package/dist/collection/components/tree/utils.js +1 -1
  437. package/dist/collection/components/tree-item/resources.js +1 -1
  438. package/dist/collection/components/tree-item/tree-item.js +1 -1
  439. package/dist/collection/components/value-list/resources.js +1 -1
  440. package/dist/collection/components/value-list/utils.js +1 -1
  441. package/dist/collection/components/value-list/value-list.js +7 -1
  442. package/dist/collection/components/value-list-item/resources.js +1 -1
  443. package/dist/collection/components/value-list-item/value-list-item.js +9 -1
  444. package/dist/collection/utils/array.js +1 -1
  445. package/dist/collection/utils/conditionalSlot.js +1 -1
  446. package/dist/collection/utils/config.js +1 -1
  447. package/dist/collection/utils/date.js +1 -1
  448. package/dist/collection/utils/dom.js +1 -1
  449. package/dist/collection/utils/filter.js +1 -1
  450. package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
  451. package/dist/collection/utils/floating-ui.js +1 -1
  452. package/dist/collection/utils/focusTrapComponent.js +1 -1
  453. package/dist/collection/utils/form.js +1 -1
  454. package/dist/collection/utils/globalAttributes.js +1 -1
  455. package/dist/collection/utils/globalScript.js +1 -1
  456. package/dist/collection/utils/guid.js +1 -1
  457. package/dist/collection/utils/interactive.js +1 -1
  458. package/dist/collection/utils/key.js +1 -1
  459. package/dist/collection/utils/label.js +1 -1
  460. package/dist/collection/utils/loadable.js +58 -0
  461. package/dist/collection/utils/locale.js +1 -1
  462. package/dist/collection/utils/math.js +1 -1
  463. package/dist/collection/utils/number.js +1 -1
  464. package/dist/collection/utils/observers.js +1 -1
  465. package/dist/collection/utils/openCloseComponent.js +1 -1
  466. package/dist/collection/utils/resources.js +1 -1
  467. package/dist/collection/utils/t9n.js +1 -1
  468. package/dist/collection/utils/theme.js +1 -1
  469. package/dist/collection/utils/time.js +1 -1
  470. package/dist/components/ExpandToggle.js +1 -1
  471. package/dist/components/Heading.js +1 -1
  472. package/dist/components/action-group.js +1 -1
  473. package/dist/components/action-menu.js +10 -2
  474. package/dist/components/action.js +9 -1
  475. package/dist/components/array.js +1 -1
  476. package/dist/components/button.js +7 -1
  477. package/dist/components/calcite-accordion-item.js +1 -1
  478. package/dist/components/calcite-accordion.js +1 -1
  479. package/dist/components/calcite-action-bar.js +7 -1
  480. package/dist/components/calcite-action-group.js +1 -1
  481. package/dist/components/calcite-action-menu.js +1 -1
  482. package/dist/components/calcite-action-pad.js +7 -1
  483. package/dist/components/calcite-action.js +1 -1
  484. package/dist/components/calcite-alert.js +7 -1
  485. package/dist/components/calcite-avatar.js +1 -1
  486. package/dist/components/calcite-block-section.js +1 -1
  487. package/dist/components/calcite-block.js +1 -1
  488. package/dist/components/calcite-button.js +1 -1
  489. package/dist/components/calcite-card.js +1 -1
  490. package/dist/components/calcite-checkbox.js +1 -1
  491. package/dist/components/calcite-chip.js +1 -1
  492. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  493. package/dist/components/calcite-color-picker-swatch.js +1 -1
  494. package/dist/components/calcite-color-picker.js +7 -1
  495. package/dist/components/calcite-combobox-item-group.js +1 -1
  496. package/dist/components/calcite-combobox-item.js +1 -1
  497. package/dist/components/calcite-combobox.js +5 -1
  498. package/dist/components/calcite-date-picker-day.js +1 -1
  499. package/dist/components/calcite-date-picker-month-header.js +1 -1
  500. package/dist/components/calcite-date-picker-month.js +1 -1
  501. package/dist/components/calcite-date-picker.js +1 -1
  502. package/dist/components/calcite-dropdown-group.js +1 -1
  503. package/dist/components/calcite-dropdown-item.js +7 -1
  504. package/dist/components/calcite-dropdown.js +1 -1
  505. package/dist/components/calcite-fab.js +9 -1
  506. package/dist/components/calcite-filter.js +1 -1
  507. package/dist/components/calcite-flow-item.js +9 -1
  508. package/dist/components/calcite-flow.js +1 -1
  509. package/dist/components/calcite-graph.js +1 -1
  510. package/dist/components/calcite-handle.js +1 -1
  511. package/dist/components/calcite-icon.js +1 -1
  512. package/dist/components/calcite-inline-editable.js +9 -1
  513. package/dist/components/calcite-input-date-picker.js +5 -1
  514. package/dist/components/calcite-input-message.js +1 -1
  515. package/dist/components/calcite-input-number.js +7 -1
  516. package/dist/components/calcite-input-text.js +7 -1
  517. package/dist/components/calcite-input-time-picker.js +8 -2
  518. package/dist/components/calcite-input.js +1 -1
  519. package/dist/components/calcite-label.js +1 -1
  520. package/dist/components/calcite-link.js +1 -1
  521. package/dist/components/calcite-list-item-group.js +1 -1
  522. package/dist/components/calcite-list-item.js +9 -6
  523. package/dist/components/calcite-list.js +9 -1
  524. package/dist/components/calcite-loader.js +1 -1
  525. package/dist/components/calcite-modal.js +9 -1264
  526. package/dist/components/calcite-notice.js +7 -1
  527. package/dist/components/calcite-option-group.js +1 -1
  528. package/dist/components/calcite-option.js +1 -1
  529. package/dist/components/calcite-pagination.js +1 -1
  530. package/dist/components/calcite-panel.js +1 -1
  531. package/dist/components/calcite-pick-list-group.js +1 -1
  532. package/dist/components/calcite-pick-list-item.js +1 -1
  533. package/dist/components/calcite-pick-list.js +7 -1
  534. package/dist/components/calcite-popover-manager.js +1 -1
  535. package/dist/components/calcite-popover.js +1 -1
  536. package/dist/components/calcite-progress.js +1 -1
  537. package/dist/components/calcite-radio-button-group.js +1 -1
  538. package/dist/components/calcite-radio-button.js +7 -1
  539. package/dist/components/calcite-radio-group-item.js +1 -1
  540. package/dist/components/calcite-radio-group.js +5 -1
  541. package/dist/components/calcite-rating.js +9 -1
  542. package/dist/components/calcite-scrim.js +1 -1
  543. package/dist/components/calcite-select.js +7 -1
  544. package/dist/components/calcite-shell-center-row.js +1 -1
  545. package/dist/components/calcite-shell-panel.js +1 -1
  546. package/dist/components/calcite-shell.js +1 -1
  547. package/dist/components/calcite-slider.js +7 -1
  548. package/dist/components/calcite-sortable-list.js +1 -1
  549. package/dist/components/calcite-split-button.js +1 -1
  550. package/dist/components/calcite-stepper-item.js +7 -1
  551. package/dist/components/calcite-stepper.js +1 -1
  552. package/dist/components/calcite-switch.js +1 -1
  553. package/dist/components/calcite-tab-nav.js +1 -1
  554. package/dist/components/calcite-tab-title.js +1 -1
  555. package/dist/components/calcite-tab.js +1 -1
  556. package/dist/components/calcite-tabs.js +1 -1
  557. package/dist/components/calcite-tile-select-group.js +1 -1
  558. package/dist/components/calcite-tile-select.js +9 -1
  559. package/dist/components/calcite-tile.js +1 -1
  560. package/dist/components/calcite-time-picker.js +1 -1
  561. package/dist/components/calcite-tip-group.js +1 -1
  562. package/dist/components/calcite-tip-manager.js +1 -1
  563. package/dist/components/calcite-tip.js +1 -1
  564. package/dist/components/calcite-tooltip-manager.js +1 -1
  565. package/dist/components/calcite-tooltip.js +1 -1
  566. package/dist/components/calcite-tree-item.js +1 -1
  567. package/dist/components/calcite-tree.js +1 -1
  568. package/dist/components/calcite-value-list-item.js +9 -1
  569. package/dist/components/calcite-value-list.js +7 -1
  570. package/dist/components/checkbox.js +9 -1
  571. package/dist/components/chip.js +9 -1
  572. package/dist/components/color-picker-hex-input.js +9 -1
  573. package/dist/components/color-picker-swatch.js +1 -1
  574. package/dist/components/conditionalSlot.js +1 -1
  575. package/dist/components/date-picker-day.js +1 -1
  576. package/dist/components/date-picker-month-header.js +1 -1
  577. package/dist/components/date-picker-month.js +1 -1
  578. package/dist/components/date-picker.js +1 -1
  579. package/dist/components/date.js +1 -1
  580. package/dist/components/debounce.js +1 -1
  581. package/dist/components/dom.js +1 -1
  582. package/dist/components/dropdown.js +1 -1
  583. package/dist/components/filter.js +10 -9
  584. package/dist/components/filter2.js +1 -1
  585. package/dist/components/floating-ui.js +1 -1
  586. package/dist/components/focusTrapComponent.js +1270 -0
  587. package/dist/components/form.js +1 -1
  588. package/dist/components/graph.js +1 -1
  589. package/dist/components/guid.js +1 -1
  590. package/dist/components/handle.js +14 -1
  591. package/dist/components/icon.js +1 -1
  592. package/dist/components/index.js +1 -1
  593. package/dist/components/input.js +7 -1
  594. package/dist/components/interactive.js +1 -1
  595. package/dist/components/interfaces.js +1 -1
  596. package/dist/components/interfaces2.js +1 -1
  597. package/dist/components/key.js +1 -1
  598. package/dist/components/label.js +1 -1
  599. package/dist/components/label2.js +1 -1
  600. package/dist/components/link.js +9 -1
  601. package/dist/components/loadable.js +60 -0
  602. package/dist/components/loader.js +1 -1
  603. package/dist/components/locale.js +1 -1
  604. package/dist/components/math.js +1 -1
  605. package/dist/components/nonChromiumPlatformUtils.js +1 -1
  606. package/dist/components/observers.js +1 -1
  607. package/dist/components/openCloseComponent.js +1 -1
  608. package/dist/components/panel.js +9 -1
  609. package/dist/components/pick-list-item.js +9 -1
  610. package/dist/components/popover.js +21 -3
  611. package/dist/components/progress.js +1 -1
  612. package/dist/components/resources.js +1 -1
  613. package/dist/components/resources2.js +1 -1
  614. package/dist/components/scrim.js +1 -1
  615. package/dist/components/shared-list-render.js +1 -1
  616. package/dist/components/sortable.esm.js +1 -1
  617. package/dist/components/switch.js +9 -1
  618. package/dist/components/tab-nav.js +1 -1
  619. package/dist/components/tab-title.js +1 -1
  620. package/dist/components/tab.js +1 -1
  621. package/dist/components/tabs.js +1 -1
  622. package/dist/components/tile.js +1 -1
  623. package/dist/components/time-picker.js +9 -1
  624. package/dist/components/tooltip.js +32 -8
  625. package/dist/components/utils.js +1 -1
  626. package/dist/components/utils2.js +1 -1
  627. package/dist/esm/{ExpandToggle-57ea743b.js → ExpandToggle-0d0a6dad.js} +5 -5
  628. package/dist/esm/{Heading-b8ffad61.js → Heading-5e76b2b4.js} +2 -2
  629. package/dist/esm/{app-globals-d3678e8d.js → app-globals-bdafe203.js} +2 -2
  630. package/dist/esm/{array-a0914ee7.js → array-a4e3b4cc.js} +1 -1
  631. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  632. package/dist/esm/calcite-action-bar.entry.js +17 -11
  633. package/dist/esm/calcite-action-group.entry.js +9 -9
  634. package/dist/esm/calcite-action-menu.entry.js +17 -9
  635. package/dist/esm/calcite-action-pad.entry.js +16 -10
  636. package/dist/esm/calcite-action.entry.js +15 -7
  637. package/dist/esm/calcite-alert.entry.js +16 -10
  638. package/dist/esm/calcite-avatar.entry.js +6 -6
  639. package/dist/esm/calcite-block_2.entry.js +10 -10
  640. package/dist/esm/calcite-button.entry.js +15 -9
  641. package/dist/esm/calcite-card.entry.js +7 -7
  642. package/dist/esm/calcite-checkbox.entry.js +17 -9
  643. package/dist/esm/calcite-chip.entry.js +15 -7
  644. package/dist/esm/calcite-color-picker_3.entry.js +23 -10
  645. package/dist/esm/calcite-combobox_3.entry.js +18 -14
  646. package/dist/esm/calcite-date-picker_4.entry.js +11 -11
  647. package/dist/esm/calcite-dropdown_3.entry.js +17 -11
  648. package/dist/esm/calcite-fab.entry.js +14 -6
  649. package/dist/esm/calcite-filter.entry.js +17 -16
  650. package/dist/esm/calcite-flow-item.entry.js +15 -7
  651. package/dist/esm/calcite-flow.entry.js +3 -3
  652. package/dist/esm/calcite-graph_2.entry.js +18 -12
  653. package/dist/esm/calcite-handle.entry.js +18 -5
  654. package/dist/esm/calcite-icon.entry.js +6 -6
  655. package/dist/esm/calcite-inline-editable.entry.js +16 -8
  656. package/dist/esm/calcite-input-date-picker.entry.js +19 -15
  657. package/dist/esm/calcite-input-message.entry.js +5 -5
  658. package/dist/esm/calcite-input-number.entry.js +18 -12
  659. package/dist/esm/calcite-input-text.entry.js +15 -9
  660. package/dist/esm/calcite-input-time-picker_2.entry.js +25 -12
  661. package/dist/esm/calcite-input.entry.js +18 -12
  662. package/dist/esm/calcite-label.entry.js +6 -6
  663. package/dist/esm/calcite-link.entry.js +14 -6
  664. package/dist/esm/calcite-list_3.entry.js +24 -14
  665. package/dist/esm/calcite-loader.entry.js +3 -3
  666. package/dist/esm/calcite-modal.entry.js +15 -1270
  667. package/dist/esm/calcite-notice.entry.js +14 -8
  668. package/dist/esm/calcite-option_3.entry.js +15 -9
  669. package/dist/esm/calcite-pagination.entry.js +8 -8
  670. package/dist/esm/calcite-panel.entry.js +18 -10
  671. package/dist/esm/calcite-pick-list_3.entry.js +25 -12
  672. package/dist/esm/calcite-popover_2.entry.js +30 -13
  673. package/dist/esm/calcite-progress.entry.js +2 -2
  674. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  675. package/dist/esm/calcite-radio-button.entry.js +15 -9
  676. package/dist/esm/calcite-radio-group_2.entry.js +12 -8
  677. package/dist/esm/calcite-rating.entry.js +17 -9
  678. package/dist/esm/calcite-scrim.entry.js +2 -2
  679. package/dist/esm/calcite-shell_3.entry.js +8 -8
  680. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  681. package/dist/esm/calcite-split-button.entry.js +3 -3
  682. package/dist/esm/calcite-stepper_2.entry.js +15 -9
  683. package/dist/esm/calcite-switch.entry.js +17 -9
  684. package/dist/esm/calcite-tab_4.entry.js +7 -7
  685. package/dist/esm/calcite-tile-select_2.entry.js +12 -4
  686. package/dist/esm/calcite-tile.entry.js +8 -8
  687. package/dist/esm/calcite-tip_3.entry.js +8 -8
  688. package/dist/esm/calcite-tooltip_2.entry.js +37 -13
  689. package/dist/esm/calcite-tree_2.entry.js +8 -8
  690. package/dist/esm/calcite-value-list_2.entry.js +25 -12
  691. package/dist/esm/calcite.js +5 -5
  692. package/dist/esm/{conditionalSlot-cd228b87.js → conditionalSlot-d7042454.js} +3 -3
  693. package/dist/esm/{debounce-9d3ac120.js → debounce-5b813e28.js} +1 -1
  694. package/dist/esm/{dom-6f749d3c.js → dom-1e25772a.js} +3 -3
  695. package/dist/esm/{filter-ccedb60a.js → filter-9f8f8154.js} +2 -2
  696. package/dist/esm/{floating-ui-c9d7a2d3.js → floating-ui-133bb551.js} +4 -4
  697. package/dist/esm/focusTrapComponent-579bde12.js +1270 -0
  698. package/dist/esm/{form-9f9f8ce0.js → form-9a041e68.js} +3 -3
  699. package/dist/esm/{guid-2e58a3a3.js → guid-c42adc0b.js} +1 -1
  700. package/dist/esm/{index-d119a9b1.js → index-43905a28.js} +1 -1
  701. package/dist/esm/index.js +1 -1
  702. package/dist/esm/{interactive-091db0ac.js → interactive-dc49c49b.js} +1 -1
  703. package/dist/esm/{interfaces-d136299b.js → interfaces-86bb76d1.js} +1 -1
  704. package/dist/esm/{key-88203e10.js → key-a3cbc709.js} +1 -1
  705. package/dist/esm/{label-470d0c8c.js → label-7ab2f78b.js} +2 -2
  706. package/dist/esm/loadable-f9ca5c20.js +60 -0
  707. package/dist/esm/loader.js +5 -5
  708. package/dist/esm/{locale-1513e269.js → locale-a47c2f83.js} +4 -4
  709. package/dist/esm/{math-920d7bd4.js → math-75a0848f.js} +1 -1
  710. package/dist/esm/{nonChromiumPlatformUtils-30a26773.js → nonChromiumPlatformUtils-50b180f8.js} +6 -6
  711. package/dist/esm/{observers-533bc15c.js → observers-10b6d9bf.js} +1 -1
  712. package/dist/esm/{openCloseComponent-39f37c0e.js → openCloseComponent-90c0bc0f.js} +1 -1
  713. package/dist/esm/{resources-788711e6.js → resources-10b5a81c.js} +1 -1
  714. package/dist/esm/{resources-c1440888.js → resources-12be96e6.js} +1 -1
  715. package/dist/esm/{resources-2d0f02a9.js → resources-1d29b1a4.js} +5 -5
  716. package/dist/esm/{resources-dd20ee16.js → resources-30d36ead.js} +3 -3
  717. package/dist/esm/{resources-78021ac2.js → resources-49545055.js} +1 -1
  718. package/dist/esm/{resources-4ad697f1.js → resources-9cfc185a.js} +1 -1
  719. package/dist/esm/{sortable.esm-820523a0.js → sortable.esm-381fb2a0.js} +1 -1
  720. package/dist/esm/{utils-248398b5.js → utils-42067c6f.js} +1 -1
  721. package/dist/extras/docs-json.json +56 -2
  722. package/dist/loader/cdn.js +1 -1
  723. package/dist/loader/index.cjs.js +1 -1
  724. package/dist/loader/index.es2017.js +1 -1
  725. package/dist/loader/index.js +1 -1
  726. package/dist/types/components/action/action.d.ts +4 -1
  727. package/dist/types/components/action-bar/action-bar.d.ts +3 -1
  728. package/dist/types/components/action-menu/action-menu.d.ts +4 -1
  729. package/dist/types/components/action-pad/action-pad.d.ts +3 -1
  730. package/dist/types/components/alert/alert.d.ts +3 -1
  731. package/dist/types/components/button/button.d.ts +3 -1
  732. package/dist/types/components/checkbox/checkbox.d.ts +4 -1
  733. package/dist/types/components/chip/chip.d.ts +4 -1
  734. package/dist/types/components/color-picker/color-picker.d.ts +13 -2
  735. package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +4 -1
  736. package/dist/types/components/combobox/combobox.d.ts +2 -1
  737. package/dist/types/components/dropdown-item/dropdown-item.d.ts +3 -1
  738. package/dist/types/components/fab/fab.d.ts +4 -1
  739. package/dist/types/components/filter/filter.d.ts +4 -2
  740. package/dist/types/components/flow-item/flow-item.d.ts +4 -1
  741. package/dist/types/components/handle/handle.d.ts +4 -1
  742. package/dist/types/components/inline-editable/inline-editable.d.ts +4 -1
  743. package/dist/types/components/input/input.d.ts +3 -1
  744. package/dist/types/components/input-date-picker/input-date-picker.d.ts +2 -1
  745. package/dist/types/components/input-number/input-number.d.ts +3 -1
  746. package/dist/types/components/input-text/input-text.d.ts +3 -1
  747. package/dist/types/components/input-time-picker/input-time-picker.d.ts +3 -1
  748. package/dist/types/components/link/link.d.ts +4 -1
  749. package/dist/types/components/list/list.d.ts +4 -1
  750. package/dist/types/components/list-item/list-item.d.ts +4 -1
  751. package/dist/types/components/modal/modal.d.ts +3 -1
  752. package/dist/types/components/notice/notice.d.ts +3 -1
  753. package/dist/types/components/panel/panel.d.ts +4 -1
  754. package/dist/types/components/pick-list/pick-list.d.ts +3 -1
  755. package/dist/types/components/pick-list-item/pick-list-item.d.ts +4 -1
  756. package/dist/types/components/popover/popover.d.ts +10 -1
  757. package/dist/types/components/radio-button/radio-button.d.ts +3 -1
  758. package/dist/types/components/radio-group/radio-group.d.ts +2 -1
  759. package/dist/types/components/rating/rating.d.ts +4 -1
  760. package/dist/types/components/select/select.d.ts +3 -1
  761. package/dist/types/components/slider/slider.d.ts +3 -1
  762. package/dist/types/components/stepper-item/stepper-item.d.ts +3 -1
  763. package/dist/types/components/switch/switch.d.ts +4 -1
  764. package/dist/types/components/tile-select/tile-select.d.ts +4 -1
  765. package/dist/types/components/time-picker/time-picker.d.ts +4 -1
  766. package/dist/types/components/tooltip/tooltip.d.ts +18 -2
  767. package/dist/types/components/value-list/value-list.d.ts +3 -1
  768. package/dist/types/components/value-list-item/value-list-item.d.ts +4 -1
  769. package/dist/types/components.d.ts +28 -0
  770. package/dist/types/preact.d.ts +6 -1
  771. package/dist/types/utils/loadable.d.ts +99 -0
  772. package/hydrate/index.js +350 -25
  773. package/package.json +1 -1
  774. package/dist/calcite/p-091c5cce.entry.js +0 -6
  775. package/dist/calcite/p-0c2f17ae.entry.js +0 -6
  776. package/dist/calcite/p-0f9820a6.entry.js +0 -6
  777. package/dist/calcite/p-1641222a.entry.js +0 -6
  778. package/dist/calcite/p-19003ab3.entry.js +0 -6
  779. package/dist/calcite/p-1955c220.entry.js +0 -6
  780. package/dist/calcite/p-1ade2485.entry.js +0 -6
  781. package/dist/calcite/p-1bf32f54.entry.js +0 -6
  782. package/dist/calcite/p-1d6a3729.entry.js +0 -6
  783. package/dist/calcite/p-2b318f6c.entry.js +0 -6
  784. package/dist/calcite/p-43ad384d.entry.js +0 -6
  785. package/dist/calcite/p-45c22e35.entry.js +0 -6
  786. package/dist/calcite/p-45e94405.entry.js +0 -6
  787. package/dist/calcite/p-53a18a5d.entry.js +0 -6
  788. package/dist/calcite/p-5ef82018.entry.js +0 -6
  789. package/dist/calcite/p-63901ce6.entry.js +0 -6
  790. package/dist/calcite/p-6633dd22.entry.js +0 -6
  791. package/dist/calcite/p-6e4a7bd1.entry.js +0 -6
  792. package/dist/calcite/p-7811fc62.entry.js +0 -6
  793. package/dist/calcite/p-7c84cdd0.entry.js +0 -6
  794. package/dist/calcite/p-7d6f058f.entry.js +0 -6
  795. package/dist/calcite/p-81648a65.entry.js +0 -6
  796. package/dist/calcite/p-8463b612.entry.js +0 -6
  797. package/dist/calcite/p-84d1aa8c.entry.js +0 -6
  798. package/dist/calcite/p-891c863d.entry.js +0 -6
  799. package/dist/calcite/p-8a0dcc5a.entry.js +0 -6
  800. package/dist/calcite/p-93eeb8dc.entry.js +0 -6
  801. package/dist/calcite/p-95ea2591.entry.js +0 -6
  802. package/dist/calcite/p-9e88aa1d.js +0 -6
  803. package/dist/calcite/p-a00ebc99.entry.js +0 -6
  804. package/dist/calcite/p-a16fb01b.entry.js +0 -6
  805. package/dist/calcite/p-b1b9a8cb.entry.js +0 -6
  806. package/dist/calcite/p-b949f88e.entry.js +0 -6
  807. package/dist/calcite/p-bbbb8e7b.entry.js +0 -6
  808. package/dist/calcite/p-cd548d63.entry.js +0 -16
  809. package/dist/calcite/p-cdff6a3b.entry.js +0 -6
  810. package/dist/calcite/p-cfcc6d04.entry.js +0 -6
  811. package/dist/calcite/p-daf31f54.entry.js +0 -6
  812. package/dist/calcite/p-f554f86a.entry.js +0 -6
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.636
5
+ */
6
+ import{r as t,c as i,h as e,H as a,g as n,f as o}from"./p-67e64dc2.js";import{c as r}from"./p-753870d8.js";import{u as c}from"./p-4aced9e8.js";import{t as l}from"./p-ac445235.js";import{s,a as d,c as u}from"./p-eeeee029.js";import"./p-366980c1.js";import"./p-b41e7e3a.js";const b=class{constructor(e){t(this,e),this.calciteActionClick=i(this,"calciteActionClick",6),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.indicator=!1,this.intlLoading="Loading",this.loading=!1,this.scale="m",this.textEnabled=!1,this.mutationObserver=r("mutation",(()=>o(this))),this.handleTooltipSlotChange=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-tooltip")))[0];i&&(i.referenceElement=this.buttonEl)},this.calciteActionClickHandler=()=>{this.disabled||this.calciteActionClick.emit()}}connectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0})}componentWillLoad(){s(this)}componentDidLoad(){d(this)}disconnectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect()}componentDidRender(){c(this)}async setFocus(){var t;await u(this),null===(t=this.buttonEl)||void 0===t||t.focus()}renderTextContainer(){const{text:t,textEnabled:i}=this;return t?e("div",{class:{"text-container":!0,"text-container--visible":i},key:"text-container"},t):null}renderIconContainer(){var t;const{loading:i,icon:a,scale:n,el:o,intlLoading:r}=this,c="l"===n?"m":"s",l=i?e("calcite-loader",{inline:!0,label:r,scale:"l"===n?"l":"m"}):null,s=a?e("calcite-icon",{icon:a,scale:c}):null,d=l||s,u=d||(null===(t=o.children)||void 0===t?void 0:t.length),b=e("div",{class:{"slot-container":!0,"slot-container--hidden":i}},e("slot",null));return u?e("div",{"aria-hidden":"true",class:"icon-container",key:"icon-container"},d,b):null}render(){const{compact:t,disabled:i,loading:n,textEnabled:o,label:r,text:c}=this,s=r||c,d={button:!0,"button--text-visible":o,"button--compact":t};return e(a,{onClick:this.calciteActionClickHandler},e("button",{"aria-busy":l(n),"aria-disabled":l(i),"aria-label":s,class:d,disabled:i,ref:t=>this.buttonEl=t},this.renderIconContainer(),this.renderTextContainer()),e("slot",{name:"tooltip",onSlotchange:this.handleTooltipSlotChange}))}get el(){return n(this)}};b.style='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}.button .text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}.button .text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button,:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus,:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:transparent;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus,:host([active][appearance=transparent]) .button,:host([active][appearance=transparent]) .button:hover,:host([active][appearance=transparent]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button,:host([appearance=transparent][loading]) .button,:host([appearance=transparent][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}';export{b as calcite_action}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.636
5
+ */
6
+ import{r as t,c as i,h as e,H as s,g as n}from"./p-67e64dc2.js";import{g as a}from"./p-b41e7e3a.js";import{i as o,g as r,b as c,n as l,u as h,c as u,d}from"./p-771abcbf.js";import{c as m,d as p,g as f}from"./p-70b4e4ec.js";import{s as b,c as v,d as g,H as w}from"./p-fb990403.js";import{u as k}from"./p-4aced9e8.js";import{n as y,i as x}from"./p-0fc28e03.js";import{c as D,s as I,a as S}from"./p-eeeee029.js";import"./p-753870d8.js";import"./p-ac445235.js";import"./p-366980c1.js";function M(t,i,e=!0){try{const s={hour:"2-digit",minute:"2-digit",timeZone:"UTC",numberingSystem:c(i)};return e&&(s.second="2-digit"),new Intl.DateTimeFormat(r(t),s)}catch(i){throw new Error(`Invalid locale supplied while attempting to create a DateTime formatter: ${t}`)}}function A(t){const i=t.toString();return t>=0&&t<=9?i.padStart(2,"0"):i}function C(t,i){var e,s,n,a;if(!t||!i)return null;if("hourSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"hour"===t))),s=i.indexOf(i.find((({type:t})=>"minute"===t))),n=i[t+1];return n&&"literal"===n.type&&s-t==2&&(null===(e=n.value)||void 0===e?void 0:e.trim())||null}if("minuteSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"minute"===t))),e=i.indexOf(i.find((({type:t})=>"second"===t))),n=i[t+1];return n&&"literal"===n.type&&e-t==2&&(null===(s=n.value)||void 0===s?void 0:s.trim())||null}if("secondSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"second"===t))),e=i[t+1];return e&&"literal"===e.type&&(null===(n=e.value)||void 0===n?void 0:n.trim())||null}return(null===(a=i.find((({type:i})=>"meridiem"==t?"dayPeriod"===i:i===t)))||void 0===a?void 0:a.value)||null}function P(t){if(!t||t.startsWith(":")||t.endsWith(":"))return!1;const i=t.split(":");if(!(i.length>1&&i.length<4))return!1;const[e,s,n]=i,a=parseInt(i[0]),r=parseInt(i[1]),c=parseInt(i[2]),l=o(e)&&a>=0&&a<24,h=o(s)&&r>=0&&r<60,u=o(n)&&c>=0&&c<60;return!!(l&&h&&!n||l&&h&&u)||void 0}function z({value:t,part:i,locale:e,numberingSystem:s}){if(!function(t,i){if("meridiem"===i)return"AM"===t||"PM"===t;if(!o(t))return!1;const e=Number(t);return"hour"===i?e>=0&&e<24:e>=0&&e<60}(t,i))return;const n=parseInt(t),a=new Date(Date.UTC(0,0,0,"hour"===i?n:"meridiem"===i?"AM"===t?0:12:0,"minute"===i?n:0,"second"===i?n:0));return a?C(i,M(e,s).formatToParts(a)):void 0}function H({value:t,locale:i,numberingSystem:e,includeSeconds:s=!0}){if(!P(t))return null;const{hour:n,minute:a,second:o="0"}=L(t),r=new Date(Date.UTC(0,0,0,parseInt(n),parseInt(a),parseInt(o))),c=M(i,e,s);return(null==c?void 0:c.format(r))||null}function $({value:t,locale:i,numberingSystem:e}){if(!P(t))return null;const{hour:s,minute:n,second:a="0"}=L(t),o=new Date(Date.UTC(0,0,0,parseInt(s),parseInt(n),parseInt(a)));if(o){const t=M(i,e).formatToParts(o);return{localizedHour:C("hour",t),localizedHourSuffix:C("hourSuffix",t),localizedMinute:C("minute",t),localizedMinuteSuffix:C("minuteSuffix",t),localizedSecond:C("second",t),localizedSecondSuffix:C("secondSuffix",t),localizedMeridiem:C("meridiem",t)}}return null}function _({value:t,locale:i,numberingSystem:e}){if(!P(t))return null;const{hour:s,minute:n,second:a="0"}=L(t),o=new Date(Date.UTC(0,0,0,parseInt(s),parseInt(n),parseInt(a)));return o?M(i,e).formatToParts(o):null}function L(t){if(P(t)){const[i,e,s]=t.split(":");return{hour:i,minute:e,second:s}}return{hour:null,minute:null,second:null}}const j=class{constructor(e){t(this,e),this.calciteInputTimePickerChange=i(this,"calciteInputTimePickerChange",7),this.active=!1,this.open=!1,this.disabled=!1,this.readOnly=!1,this.required=!1,this.scale="m",this.overlayPositioning="absolute",this.placement="auto",this.step=60,this.value=null,this.internalValueChange=!1,this.previousValidValue=null,this.referenceElementId=`input-time-picker-${a()}`,this.effectiveLocale="",this.calciteInternalInputBlurHandler=()=>{this.open=!1;const t=this.shouldIncludeSeconds(),{effectiveLocale:i,numberingSystem:e,value:s,calciteInputEl:n}=this;l.numberFormatOptions={locale:i,numberingSystem:e,useGrouping:!1};const a=H({value:l.delocalize(n.value),includeSeconds:t,locale:i,numberingSystem:e});this.setInputValue(a||H({value:s,locale:i,numberingSystem:e,includeSeconds:t}))},this.calciteInternalInputFocusHandler=t=>{this.readOnly||(this.open=!0,t.stopPropagation())},this.calciteInputInputHandler=t=>{const i=t.target;l.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:!1};const e=l.delocalize(i.value);this.setValue({value:e});const s=e.split("").map((t=>y.includes(t)?l.numberFormatter.format(Number(t)):t)).join("");this.setInputValue(s)},this.timePickerChangeHandler=t=>{t.stopPropagation(),this.setValue({value:t.target.value,origin:"time-picker"})},this.keyDownHandler=t=>{const{defaultPrevented:i,key:e}=t;i||("Enter"===e&&b(this)&&t.preventDefault(),"Escape"===e&&this.open&&(this.open=!1,t.preventDefault()))},this.setCalcitePopoverEl=t=>{this.popoverEl=t},this.setCalciteInputEl=t=>{this.calciteInputEl=t},this.setCalciteTimePickerEl=t=>{this.calciteTimePickerEl=t},this.setInputValue=t=>{this.calciteInputEl&&(this.calciteInputEl.value=t)},this.setValue=({value:t,origin:i="input"})=>{const e=this.value,s=function(t){if(!P(t))return null;const[i,e,s]=t.split(":"),n=A(parseInt(i)),a=A(parseInt(e));return s?`${n}:${a}:${A(parseInt(s))}`:`${n}:${a}`}(t),n=H({value:s,locale:this.effectiveLocale,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds()});this.internalValueChange="external"!==i&&"loading"!==i;const a="loading"!==i&&"external"!==i&&(t!==this.previousValidValue&&!t||!(this.previousValidValue||!s)||s!==this.previousValidValue&&s);t?(a&&(this.previousValidValue=s),s&&s!==this.value&&(this.value=s),this.localizedValue=n):(this.value=t,this.localizedValue=null),"time-picker"!==i&&"external"!==i||this.setInputValue(n),a&&(this.calciteInputTimePickerChange.emit().defaultPrevented?(this.internalValueChange=!1,this.value=e,this.setInputValue(e),this.previousValidValue=e):this.previousValidValue=s)}}activeHandler(t){this.open=t}openHandler(t){this.active=t,this.disabled||this.readOnly?this.open=!1:t&&this.reposition(!0)}handleDisabledAndReadOnlyChange(t){t||(this.open=!1)}localeChanged(){h(this)}valueWatcher(t){this.internalValueChange||this.setValue({value:t,origin:"external"}),this.internalValueChange=!1}effectiveLocaleWatcher(){this.setInputValue(H({value:this.value,locale:this.effectiveLocale,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds()}))}clickHandler(t){t.composedPath().includes(this.calciteTimePickerEl)||this.setFocus()}timePickerBlurHandler(t){t.preventDefault(),t.stopPropagation(),this.open=!1}timePickerFocusHandler(t){t.preventDefault(),t.stopPropagation(),this.readOnly||(this.open=!0)}async setFocus(){var t;await D(this),null===(t=this.calciteInputEl)||void 0===t||t.setFocus()}async reposition(t=!1){var i;null===(i=this.popoverEl)||void 0===i||i.reposition(t)}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}connectedCallback(){u(this);const{active:t,open:i}=this;this.value&&this.setValue({value:P(this.value)?this.value:void 0,origin:"loading"}),m(this),v(this),i?this.active=i:t&&(this.open=t)}componentWillLoad(){I(this)}componentDidLoad(){S(this),this.setInputValue(this.localizedValue)}disconnectedCallback(){p(this),g(this),d(this)}componentDidRender(){k(this)}render(){const t=`${this.referenceElementId}-popover`;return e(s,{onKeyDown:this.keyDownHandler},e("div",{"aria-controls":t,"aria-haspopup":"dialog","aria-label":this.name,"aria-owns":t,id:this.referenceElementId,role:"combobox"},e("calcite-input",{disabled:this.disabled,icon:"clock",label:f(this),onCalciteInputInput:this.calciteInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.calciteInternalInputFocusHandler,readOnly:this.readOnly,ref:this.setCalciteInputEl,scale:this.scale,step:this.step})),e("calcite-popover",{disableFocusTrap:!0,id:t,label:"Time Picker",open:this.open,overlayPositioning:this.overlayPositioning,placement:this.placement,ref:this.setCalcitePopoverEl,referenceElement:this.referenceElementId,triggerDisabled:!0},e("calcite-time-picker",{intlHour:this.intlHour,intlHourDown:this.intlHourDown,intlHourUp:this.intlHourUp,intlMeridiem:this.intlMeridiem,intlMeridiemDown:this.intlMeridiemDown,intlMeridiemUp:this.intlMeridiemUp,intlMinute:this.intlMinute,intlMinuteDown:this.intlMinuteDown,intlMinuteUp:this.intlMinuteUp,intlSecond:this.intlSecond,intlSecondDown:this.intlSecondDown,intlSecondUp:this.intlSecondUp,lang:this.effectiveLocale,numberingSystem:this.numberingSystem,onCalciteInternalTimePickerChange:this.timePickerChangeHandler,ref:this.setCalciteTimePickerEl,scale:this.scale,step:this.step,value:this.value})),e(w,{component:this}))}get el(){return n(this)}static get watchers(){return{active:["activeHandler"],open:["openHandler"],disabled:["handleDisabledAndReadOnlyChange"],readOnly:["handleDisabledAndReadOnlyChange"],locale:["localeChanged"],value:["valueWatcher"],effectiveLocale:["effectiveLocaleWatcher"]}}};j.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";const K={button:"button",buttonBottomLeft:"button--bottom-left",buttonBottomRight:"button--bottom-right",buttonHourDown:"button--hour-down",buttonHourUp:"button--hour-up",buttonMeridiemDown:"button--meridiem-down",buttonMeridiemUp:"button--meridiem-up",buttonMinuteDown:"button--minute-down",buttonMinuteUp:"button--minute-up",buttonSecondDown:"button--second-down",buttonSecondUp:"button--second-up",buttonTopLeft:"button--top-left",buttonTopRight:"button--top-right",column:"column",delimiter:"delimiter",hour:"hour",input:"input",meridiem:"meridiem",minute:"minute",second:"second",showMeridiem:"show-meridiem",showSecond:"show-second","scale-s":"scale-s","scale-m":"scale-m","scale-l":"scale-l",timePicker:"time-picker",meridiemStart:"meridiem--start"},U=class{constructor(e){t(this,e),this.calciteInternalTimePickerBlur=i(this,"calciteInternalTimePickerBlur",6),this.calciteInternalTimePickerChange=i(this,"calciteInternalTimePickerChange",6),this.calciteInternalTimePickerFocus=i(this,"calciteInternalTimePickerFocus",6),this.intlHour="Hour",this.intlHourDown="Decrease hour",this.intlHourUp="Increase hour",this.intlMeridiem="AM/PM",this.intlMeridiemDown="Decrease AM/PM",this.intlMeridiemUp="Increase AM/PM",this.intlMinute="Minute",this.intlMinuteDown="Decrease minute",this.intlMinuteUp="Increase minute",this.intlSecond="Second",this.intlSecondDown="Decrease second",this.intlSecondUp="Increase second",this.scale="m",this.step=60,this.value=null,this.effectiveLocale="",this.showSecond=this.step<60,this.decrementHour=()=>{const t=this.hour?"00"===this.hour?23:parseInt(this.hour)-1:0;this.setValuePart("hour",t)},this.decrementMeridiem=()=>{this.setValuePart("meridiem","PM"===this.meridiem?"AM":"PM")},this.decrementMinuteOrSecond=t=>{let i;if(o(this[t])){const e=parseInt(this[t]);i=0===e?59:e-1}else i=59;this.setValuePart(t,i)},this.decrementMinute=()=>{this.decrementMinuteOrSecond("minute")},this.decrementSecond=()=>{this.decrementMinuteOrSecond("second")},this.focusHandler=t=>{this.activeEl=t.currentTarget},this.hourDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementHour()},this.hourKeyDownHandler=t=>{const{key:i}=t;if(y.includes(i)){const t=parseInt(i);let e;if(o(this.hour))switch(this.hourCycle){case"12":e="01"===this.hour&&t>=0&&t<=2?`1${t}`:t;break;case"24":e="01"===this.hour?`1${t}`:"02"===this.hour&&t>=0&&t<=3?`2${t}`:t}else e=t;this.setValuePart("hour",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("hour",null);break;case"ArrowDown":t.preventDefault(),this.decrementHour();break;case"ArrowUp":t.preventDefault(),this.incrementHour();break;case" ":t.preventDefault()}},this.hourUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementHour()},this.incrementMeridiem=()=>{this.setValuePart("meridiem","AM"===this.meridiem?"PM":"AM")},this.incrementHour=()=>{const t=o(this.hour)?"23"===this.hour?0:parseInt(this.hour)+1:1;this.setValuePart("hour",t)},this.incrementMinuteOrSecond=t=>{const i=o(this[t])?"59"===this[t]?0:parseInt(this[t])+1:0;this.setValuePart(t,i)},this.incrementMinute=()=>{this.incrementMinuteOrSecond("minute")},this.incrementSecond=()=>{this.incrementMinuteOrSecond("second")},this.meridiemDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementMeridiem()},this.meridiemKeyDownHandler=t=>{switch(t.key){case"a":this.setValuePart("meridiem","AM");break;case"p":this.setValuePart("meridiem","PM");break;case"Backspace":case"Delete":this.setValuePart("meridiem",null);break;case"ArrowUp":t.preventDefault(),this.incrementMeridiem();break;case"ArrowDown":t.preventDefault(),this.decrementMeridiem();break;case" ":t.preventDefault()}},this.meridiemUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementMeridiem()},this.minuteDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementMinute()},this.minuteKeyDownHandler=t=>{const{key:i}=t;if(y.includes(i)){const t=parseInt(i);let e;if(o(this.minute)&&this.minute.startsWith("0")){const i=parseInt(this.minute);e=i>5?t:`${i}${t}`}else e=t;this.setValuePart("minute",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("minute",null);break;case"ArrowDown":t.preventDefault(),this.decrementMinute();break;case"ArrowUp":t.preventDefault(),this.incrementMinute();break;case" ":t.preventDefault()}},this.minuteUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementMinute()},this.secondDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementSecond()},this.secondKeyDownHandler=t=>{const{key:i}=t;if(y.includes(i)){const t=parseInt(i);let e;if(o(this.second)&&this.second.startsWith("0")){const i=parseInt(this.second);e=i>5?t:`${i}${t}`}else e=t;this.setValuePart("second",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("second",null);break;case"ArrowDown":t.preventDefault(),this.decrementSecond();break;case"ArrowUp":t.preventDefault(),this.incrementSecond();break;case" ":t.preventDefault()}},this.secondUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementSecond()},this.setHourEl=t=>this.hourEl=t,this.setMeridiemEl=t=>this.meridiemEl=t,this.setMinuteEl=t=>this.minuteEl=t,this.setSecondEl=t=>this.secondEl=t,this.setValue=(t,i=!0)=>{if(P(t)){const{hour:i,minute:e,second:s}=L(t),{effectiveLocale:n,numberingSystem:a}=this,{localizedHour:r,localizedHourSuffix:c,localizedMinute:l,localizedMinuteSuffix:h,localizedSecond:u,localizedSecondSuffix:d,localizedMeridiem:m}=$({value:t,locale:n,numberingSystem:a});if(this.localizedHour=r,this.localizedHourSuffix=c,this.localizedMinute=l,this.localizedMinuteSuffix=h,this.localizedSecond=u,this.localizedSecondSuffix=d,this.hour=i,this.minute=e,this.second=s,m){this.localizedMeridiem=m,this.meridiem=function(t){if(!o(t))return null;const i=parseInt(t);return i>=0&&i<=11?"AM":"PM"}(this.hour);const i=_({value:t,locale:n,numberingSystem:a});this.meridiemOrder=this.getMeridiemOrder(i)}}else this.hour=null,this.localizedHour=null,this.localizedHourSuffix=null,this.localizedMeridiem=null,this.localizedMinute=null,this.localizedMinuteSuffix=null,this.localizedSecond=null,this.localizedSecondSuffix=null,this.meridiem=null,this.minute=null,this.second=null,this.value=null;i&&this.calciteInternalTimePickerChange.emit()},this.setValuePart=(t,i,e=!0)=>{var s;const{effectiveLocale:n,numberingSystem:a}=this;if("meridiem"===t){if(this.meridiem=i,o(this.hour)){const t=parseInt(this.hour);switch(i){case"AM":t>=12&&(this.hour=A(t-12));break;case"PM":t<12&&(this.hour=A(t+12))}this.localizedHour=z({value:this.hour,part:"hour",locale:n,numberingSystem:a})}}else this[t]="number"==typeof i?A(i):i,this[`localized${r=t,r.charAt(0).toUpperCase()+r.slice(1)}`]=z({value:this[t],part:t,locale:n,numberingSystem:a});var r;this.value=this.hour&&this.minute?`${this.hour}:${this.minute}:${this.second&&this.showSecond?this.second:"00"}`:null,this.localizedMeridiem=this.value?(null===(s=$({value:this.value,locale:n,numberingSystem:a}))||void 0===s?void 0:s.localizedMeridiem)||null:z({value:this.meridiem,part:"meridiem",locale:n,numberingSystem:a}),e&&this.calciteInternalTimePickerChange.emit()}}localeChanged(){h(this)}valueWatcher(t){this.setValue(t,!1)}effectiveLocaleWatcher(){this.updateLocale()}hostBlurHandler(){this.calciteInternalTimePickerBlur.emit()}hostFocusHandler(){this.calciteInternalTimePickerFocus.emit()}keyDownHandler(t){const{defaultPrevented:i,key:e}=t;if(!i)switch(this.activeEl){case this.hourEl:"ArrowRight"===e&&(this.setFocus("minute"),t.preventDefault());break;case this.minuteEl:switch(e){case"ArrowLeft":this.setFocus("hour"),t.preventDefault();break;case"ArrowRight":60!==this.step?(this.setFocus("second"),t.preventDefault()):"12"===this.hourCycle&&(this.setFocus("meridiem"),t.preventDefault())}break;case this.secondEl:switch(e){case"ArrowLeft":this.setFocus("minute"),t.preventDefault();break;case"ArrowRight":"12"===this.hourCycle&&(this.setFocus("meridiem"),t.preventDefault())}break;case this.meridiemEl:switch(e){case"ArrowLeft":60!==this.step?(this.setFocus("second"),t.preventDefault()):(this.setFocus("minute"),t.preventDefault())}}}async setFocus(t){var i;await D(this),null===(i=this[`${t||"hour"}El`])||void 0===i||i.focus()}buttonActivated(t){const{key:i}=t;return" "===i&&t.preventDefault(),x(i)}getMeridiemOrder(t){const i=this.effectiveLocale;return t&&"ar"!==i&&"he"!==i?t.findIndex((t=>t.value===this.localizedMeridiem)):0}updateLocale(){this.hourCycle=C("meridiem",M(this.effectiveLocale,this.numberingSystem).formatToParts(new Date(Date.UTC(0,0,0,0,0,0))))?"12":"24",this.setValue(this.value,!1)}connectedCallback(){u(this),this.updateLocale(),this.meridiemOrder=this.getMeridiemOrder(_({value:"0:00:00",locale:this.effectiveLocale,numberingSystem:this.numberingSystem}))}componentWillLoad(){I(this)}componentDidLoad(){S(this)}disconnectedCallback(){d(this)}render(){const t=o(this.hour),i="s"===this.scale||"m"===this.scale?"s":"m",s=o(this.minute),n=o(this.second),a="12"===this.hourCycle;return e("div",{class:{[K.timePicker]:!0,[K.showMeridiem]:a,[K.showSecond]:this.showSecond,[K[`scale-${this.scale}`]]:!0},dir:"ltr"},e("div",{class:K.column,role:"group"},e("span",{"aria-label":this.intlHourUp,class:{[K.button]:!0,[K.buttonHourUp]:!0,[K.buttonTopLeft]:!0},onClick:this.incrementHour,onKeyDown:this.hourUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlHour,"aria-valuemax":"23","aria-valuemin":"1","aria-valuenow":t&&parseInt(this.hour)||"0","aria-valuetext":this.hour,class:{[K.input]:!0,[K.hour]:!0},onFocus:this.focusHandler,onKeyDown:this.hourKeyDownHandler,ref:this.setHourEl,role:"spinbutton",tabIndex:0},this.localizedHour||"--"),e("span",{"aria-label":this.intlHourDown,class:{[K.button]:!0,[K.buttonHourDown]:!0,[K.buttonBottomLeft]:!0},onClick:this.decrementHour,onKeyDown:this.hourDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),e("span",{class:K.delimiter},this.localizedHourSuffix),e("div",{class:K.column,role:"group"},e("span",{"aria-label":this.intlMinuteUp,class:{[K.button]:!0,[K.buttonMinuteUp]:!0},onClick:this.incrementMinute,onKeyDown:this.minuteUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlMinute,"aria-valuemax":"12","aria-valuemin":"1","aria-valuenow":s&&parseInt(this.minute)||"0","aria-valuetext":this.minute,class:{[K.input]:!0,[K.minute]:!0},onFocus:this.focusHandler,onKeyDown:this.minuteKeyDownHandler,ref:this.setMinuteEl,role:"spinbutton",tabIndex:0},this.localizedMinute||"--"),e("span",{"aria-label":this.intlMinuteDown,class:{[K.button]:!0,[K.buttonMinuteDown]:!0},onClick:this.decrementMinute,onKeyDown:this.minuteDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),this.showSecond&&e("span",{class:K.delimiter},this.localizedMinuteSuffix),this.showSecond&&e("div",{class:K.column,role:"group"},e("span",{"aria-label":this.intlSecondUp,class:{[K.button]:!0,[K.buttonSecondUp]:!0},onClick:this.incrementSecond,onKeyDown:this.secondUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlSecond,"aria-valuemax":"59","aria-valuemin":"0","aria-valuenow":n&&parseInt(this.second)||"0","aria-valuetext":this.second,class:{[K.input]:!0,[K.second]:!0},onFocus:this.focusHandler,onKeyDown:this.secondKeyDownHandler,ref:this.setSecondEl,role:"spinbutton",tabIndex:0},this.localizedSecond||"--"),e("span",{"aria-label":this.intlSecondDown,class:{[K.button]:!0,[K.buttonSecondDown]:!0},onClick:this.decrementSecond,onKeyDown:this.secondDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),this.localizedSecondSuffix&&e("span",{class:K.delimiter},this.localizedSecondSuffix),a&&e("div",{class:{[K.column]:!0,[K.meridiemStart]:0===this.meridiemOrder},role:"group"},e("span",{"aria-label":this.intlMeridiemUp,class:{[K.button]:!0,[K.buttonMeridiemUp]:!0,[K.buttonTopRight]:!0},onClick:this.incrementMeridiem,onKeyDown:this.meridiemUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlMeridiem,"aria-valuemax":"2","aria-valuemin":"1","aria-valuenow":"PM"===this.meridiem?"2":"1","aria-valuetext":this.meridiem,class:{[K.input]:!0,[K.meridiem]:!0},onFocus:this.focusHandler,onKeyDown:this.meridiemKeyDownHandler,ref:this.setMeridiemEl,role:"spinbutton",tabIndex:0},this.localizedMeridiem||"--"),e("span",{"aria-label":this.intlMeridiemDown,class:{[K.button]:!0,[K.buttonMeridiemDown]:!0,[K.buttonBottomRight]:!0},onClick:this.decrementMeridiem,onKeyDown:this.meridiemDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))))}get el(){return n(this)}static get watchers(){return{locale:["localeChanged"],value:["valueWatcher"],effectiveLocale:["effectiveLocaleWatcher"]}}};U.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:inline-block}.time-picker{display:flex;-webkit-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius)}.time-picker .column{display:flex;flex-direction:column}.time-picker .meridiem--start{order:-1}.time-picker .button{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1)}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-ui-foreground-2);outline:2px solid transparent;outline-offset:2px}.time-picker .button:active{background-color:var(--calcite-ui-foreground-3)}.time-picker .button.top-left{border-start-start-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-end-start-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-start-end-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-end-end-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-ui-text-3)}.time-picker .input{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-2)}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-inline:0.75rem;padding-block:0.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{padding-inline-end:0.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-inline:1rem;padding-block:0.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-inline:1.25rem;padding-block:0.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1.25rem}";export{j as calcite_input_time_picker,U as calcite_time_picker}
@@ -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-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.636
5
5
  */
6
6
  const t=new WeakMap;function i(t){t.propertyName===this.openTransitionProp&&t.target===this.transitionEl&&(this.open?this.onBeforeOpen():this.onBeforeClose())}function n(t){t.propertyName===this.openTransitionProp&&t.target===this.transitionEl&&(this.open?this.onOpen():this.onClose())}function s(s){if(o(s),s.transitionEl){const o=i.bind(s),a=n.bind(s);t.set(s,[s.transitionEl,o,a]),s.transitionEl.addEventListener("transitionstart",o),s.transitionEl.addEventListener("transitionend",a)}}function o(i){if(!t.has(i))return;const[n,s,o]=t.get(i);n.removeEventListener("transitionstart",s),n.removeEventListener("transitionend",o),t.delete(i)}export{s as c,o as d}
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.636
5
+ */
6
+ import{f as n}from"./p-ac445235.js";
7
+ /*!
8
+ * tabbable 6.0.1
9
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
10
+ */var t=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],e=t.join(","),r="undefined"==typeof Element,o=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!r&&Element.prototype.getRootNode?function(n){return n.getRootNode()}:function(n){return n.ownerDocument},u=function(n,t,r){var i=Array.prototype.slice.apply(n.querySelectorAll(e));return t&&o.call(n,e)&&i.unshift(n),i.filter(r)},a=function n(t,r,i){for(var u=[],a=Array.from(t);a.length;){var c=a.shift();if("SLOT"===c.tagName){var f=c.assignedElements(),s=n(f.length?f:c.children,!0,i);i.flatten?u.push.apply(u,s):u.push({scopeParent:c,candidates:s})}else{o.call(c,e)&&i.filter(c)&&(r||!t.includes(c))&&u.push(c);var l=c.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(c),v=!i.shadowRootFilter||i.shadowRootFilter(c);if(l&&v){var d=n(!0===l?c.children:l.children,!0,i);i.flatten?u.push.apply(u,d):u.push({scopeParent:c,candidates:d})}else a.unshift.apply(a,c.children)}}return u},c=function(n,t){return n.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},f=function(n,t){return n.tabIndex===t.tabIndex?n.documentOrder-t.documentOrder:n.tabIndex-t.tabIndex},s=function(n){return"INPUT"===n.tagName},l=function(n){var t=n.getBoundingClientRect();return 0===t.width&&0===t.height},v=function(n,t){return!(t.disabled||function(n){return s(n)&&"hidden"===n.type}(t)||function(n,t){var e=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(n).visibility)return!0;var u=o.call(n,"details>summary:first-of-type");if(o.call(u?n.parentElement:n,"details:not([open]) *"))return!0;if(e&&"full"!==e&&"legacy-full"!==e){if("non-zero-area"===e)return l(n)}else{if("function"==typeof r){for(var a=n;n;){var c=n.parentElement,f=i(n);if(c&&!c.shadowRoot&&!0===r(c))return l(n);n=n.assignedSlot?n.assignedSlot:c||f===n.ownerDocument?c:f.host}n=a}if(function(n){for(var t,e=i(n).host,r=!!(null!==(t=e)&&void 0!==t&&t.ownerDocument.contains(e)||n.ownerDocument.contains(n));!r&&e;){var o;r=!(null===(o=e=i(e).host)||void 0===o||!o.ownerDocument.contains(e))}return r}(n))return!n.getClientRects().length;if("legacy-full"!==e)return!0}return!1}(t,n)||function(n){return"DETAILS"===n.tagName&&Array.prototype.slice.apply(n.children).some((function(n){return"SUMMARY"===n.tagName}))}(t)||function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var e=0;e<t.children.length;e++){var r=t.children.item(e);if("LEGEND"===r.tagName)return!!o.call(t,"fieldset[disabled] *")||!r.contains(n)}return!0}t=t.parentElement}return!1}(t))},d=function(n,t){return!(function(n){return function(n){return s(n)&&"radio"===n.type}(n)&&!function(n){if(!n.name)return!0;var t,e=n.form||i(n),r=function(n){return e.querySelectorAll('input[type="radio"][name="'+n+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(n.name));else try{t=r(n.name)}catch(n){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",n.message),!1}var o=function(n,t){for(var e=0;e<n.length;e++)if(n[e].checked&&n[e].form===t)return n[e]}(t,n.form);return!o||o===n}(n)}(t)||c(t)<0||!v(n,t))},p=function(n){var t=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},b=function n(t){var e=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,u=i?t.scopeParent:t,a=c(u,i),f=i?n(t.candidates):u;0===a?i?e.push.apply(e,f):e.push(u):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:f})})),r.sort(f).reduce((function(n,t){return t.isScope?n.push.apply(n,t.content):n.push(t.content),n}),[]).concat(e)},w=function(n,t){var e;return e=(t=t||{}).getShadowRoot?a([n],t.includeContainer,{filter:d.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:p}):u(n,t.includeContainer,d.bind(null,t)),b(e)},h=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==o.call(n,e)&&d(t,n)},y=t.concat("iframe").join(","),m=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==o.call(n,y)&&v(t,n)};
11
+ /*!
12
+ * focus-trap 7.0.0
13
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
14
+ */
15
+ function E(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function O(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?E(Object(e),!0).forEach((function(t){T(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function T(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var F,k=(F=[],{activateTrap:function(n){if(F.length>0){var t=F[F.length-1];t!==n&&t.pause()}var e=F.indexOf(n);-1===e||F.splice(e,1),F.push(n)},deactivateTrap:function(n){var t=F.indexOf(n);-1!==t&&F.splice(t,1),F.length>0&&F[F.length-1].unpause()}}),D=function(n){return setTimeout(n,0)},N=function(n,t){var e=-1;return n.every((function(n,r){return!t(n)||(e=r,!1)})),e},S=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return"function"==typeof n?n.apply(void 0,e):n},A=function(n){return n.target.shadowRoot&&"function"==typeof n.composedPath?n.composedPath()[0]:n.target};function j(t){const{focusTrapEl:e}=t;var r,o,i,c,f,s,l,d,p,b,y,E,T,F,j,g,I,R,C;e&&(null==e.tabIndex&&(e.tabIndex=-1),t.focusTrap=(r=e,c=(null==(o={allowOutsideClick:!0,clickOutsideDeactivates:!1,escapeDeactivates:!1,fallbackFocus:e,setReturnFocus:t=>(n(t),!1),tabbableOptions:{getShadowRoot:!0}})?void 0:o.document)||document,f=O({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},o),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},l=function(n,t,e){return n&&void 0!==n[t]?n[t]:f[e||t]},d=function(n){return s.containerGroups.findIndex((function(t){var e=t.tabbableNodes;return t.container.contains(n)||e.find((function(t){return t===n}))}))},p=function(n){var t=f[n];if("function"==typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(n,"` was specified but was not a node, or did not return a node"))}var i=t;if("string"==typeof t&&!(i=c.querySelector(t)))throw new Error("`".concat(n,"` as selector refers to no known node"));return i},b=function(){var n=p("initialFocus");if(!1===n)return!1;if(void 0===n)if(d(c.activeElement)>=0)n=c.activeElement;else{var t=s.tabbableGroups[0];n=t&&t.firstTabbableNode||p("fallbackFocus")}if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n},y=function(){if(s.containerGroups=s.containers.map((function(n){var t,e,r=w(n,f.tabbableOptions),o=(t=n,(e=(e=f.tabbableOptions)||{}).getShadowRoot?a([t],e.includeContainer,{filter:v.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):u(t,e.includeContainer,v.bind(null,e)));return{container:n,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=o.findIndex((function(t){return t===n}));if(!(e<0))return t?o.slice(e+1).find((function(n){return h(n,f.tabbableOptions)})):o.slice(0,e).reverse().find((function(n){return h(n,f.tabbableOptions)}))}}})),s.tabbableGroups=s.containerGroups.filter((function(n){return n.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!p("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},E=function n(t){!1!==t&&t!==c.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!f.preventScroll}),s.mostRecentlyFocusedNode=t,function(n){return n.tagName&&"input"===n.tagName.toLowerCase()&&"function"==typeof n.select}(t)&&t.select()):n(b()))},T=function(n){var t=p("setReturnFocus",n);return t||!1!==t&&n},F=function(n){var t=A(n);d(t)>=0||(S(f.clickOutsideDeactivates,n)?i.deactivate({returnFocus:f.returnFocusOnDeactivate&&!m(t,f.tabbableOptions)}):S(f.allowOutsideClick,n)||n.preventDefault())},j=function(n){var t=A(n),e=d(t)>=0;e||t instanceof Document?e&&(s.mostRecentlyFocusedNode=t):(n.stopImmediatePropagation(),E(s.mostRecentlyFocusedNode||b()))},g=function(n){if(function(n){return"Escape"===n.key||"Esc"===n.key||27===n.keyCode}(n)&&!1!==S(f.escapeDeactivates,n))return n.preventDefault(),void i.deactivate();(function(n){return"Tab"===n.key||9===n.keyCode})(n)&&function(n){var t=A(n);y();var e=null;if(s.tabbableGroups.length>0){var r=d(t),o=r>=0?s.containerGroups[r]:void 0;if(r<0)e=n.shiftKey?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(n.shiftKey){var i=N(s.tabbableGroups,(function(n){return t===n.firstTabbableNode}));i<0&&(o.container===t||m(t,f.tabbableOptions)&&!h(t,f.tabbableOptions)&&!o.nextTabbableNode(t,!1))&&(i=r),i>=0&&(e=s.tabbableGroups[0===i?s.tabbableGroups.length-1:i-1].lastTabbableNode)}else{var u=N(s.tabbableGroups,(function(n){return t===n.lastTabbableNode}));u<0&&(o.container===t||m(t,f.tabbableOptions)&&!h(t,f.tabbableOptions)&&!o.nextTabbableNode(t))&&(u=r),u>=0&&(e=s.tabbableGroups[u===s.tabbableGroups.length-1?0:u+1].firstTabbableNode)}}else e=p("fallbackFocus");e&&(n.preventDefault(),E(e))}(n)},I=function(n){var t=A(n);d(t)>=0||S(f.clickOutsideDeactivates,n)||S(f.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())},R=function(){if(s.active)return k.activateTrap(i),s.delayInitialFocusTimer=f.delayInitialFocus?D((function(){E(b())})):E(b()),c.addEventListener("focusin",j,!0),c.addEventListener("mousedown",F,{capture:!0,passive:!1}),c.addEventListener("touchstart",F,{capture:!0,passive:!1}),c.addEventListener("click",I,{capture:!0,passive:!1}),c.addEventListener("keydown",g,{capture:!0,passive:!1}),i},C=function(){if(s.active)return c.removeEventListener("focusin",j,!0),c.removeEventListener("mousedown",F,!0),c.removeEventListener("touchstart",F,!0),c.removeEventListener("click",I,!0),c.removeEventListener("keydown",g,!0),i},(i={get active(){return s.active},get paused(){return s.paused},activate:function(n){if(s.active)return this;var t=l(n,"onActivate"),e=l(n,"onPostActivate"),r=l(n,"checkCanFocusTrap");r||y(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=c.activeElement,t&&t();var o=function(){r&&y(),R(),e&&e()};return r?(r(s.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(n){if(!s.active)return this;var t=O({onDeactivate:f.onDeactivate,onPostDeactivate:f.onPostDeactivate,checkCanReturnFocus:f.checkCanReturnFocus},n);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,C(),s.active=!1,s.paused=!1,k.deactivateTrap(i);var e=l(t,"onDeactivate"),r=l(t,"onPostDeactivate"),o=l(t,"checkCanReturnFocus"),u=l(t,"returnFocus","returnFocusOnDeactivate");e&&e();var a=function(){D((function(){u&&E(T(s.nodeFocusedBeforeActivation)),r&&r()}))};return u&&o?(o(T(s.nodeFocusedBeforeActivation)).then(a,a),this):(a(),this)},pause:function(){return s.paused||!s.active||(s.paused=!0,C()),this},unpause:function(){return s.paused&&s.active?(s.paused=!1,y(),R(),this):this},updateContainerElements:function(n){var t=[].concat(n).filter(Boolean);return s.containers=t.map((function(n){return"string"==typeof n?c.querySelector(n):n})),s.active&&y(),this}}).updateContainerElements(r),i))}function g(n){var t;null===(t=n.focusTrap)||void 0===t||t.activate()}function I(n){var t;null===(t=n.focusTrap)||void 0===t||t.deactivate()}export{g as a,j as c,I as d}
@@ -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-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.636
5
5
  */
6
6
  const o={menuActions:"menu-actions",menuTooltip:"menu-tooltip"},e={more:"More"},n={menu:"ellipsis"};export{n as I,o as S,e 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-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.636
5
5
  */
6
- import{r as i,h as a,g as t}from"./p-e8fe4f12.js";const n=class{constructor(a){i(this,a),this.type="determinate",this.value=0,this.reversed=!1}render(){return a("div",{"aria-label":this.label||this.text,"aria-valuemax":1,"aria-valuemin":0,"aria-valuenow":this.value,role:"progressbar"},a("div",{class:"track"},a("div",{class:{bar:!0,indeterminate:"indeterminate"===this.type,reversed:this.reversed},style:"determinate"===this.type?{width:100*this.value+"%"}:{}})),this.text?a("div",{class:"text"},this.text):null)}get el(){return t(this)}};n.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:1;inline-size:100%;overflow:hidden;background:var(--calcite-ui-border-3)}.bar{z-index:1;background-color:var(--calcite-ui-brand)}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) * 11) linear infinite}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%, 0, 0)}50%{inline-size:40%}100%{transform:translate3d(600%, 0, 0)}}";export{n as calcite_progress}
6
+ import{r as i,h as a,g as t}from"./p-67e64dc2.js";const n=class{constructor(a){i(this,a),this.type="determinate",this.value=0,this.reversed=!1}render(){return a("div",{"aria-label":this.label||this.text,"aria-valuemax":1,"aria-valuemin":0,"aria-valuenow":this.value,role:"progressbar"},a("div",{class:"track"},a("div",{class:{bar:!0,indeterminate:"indeterminate"===this.type,reversed:this.reversed},style:"determinate"===this.type?{width:100*this.value+"%"}:{}})),this.text?a("div",{class:"text"},this.text):null)}get el(){return t(this)}};n.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:1;inline-size:100%;overflow:hidden;background:var(--calcite-ui-border-3)}.bar{z-index:1;background-color:var(--calcite-ui-brand)}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) * 11) linear infinite}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%, 0, 0)}50%{inline-size:40%}100%{transform:translate3d(600%, 0, 0)}}";export{n as calcite_progress}
@@ -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-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.636
5
5
  */
6
- import{r as a,h as t,g as i}from"./p-e8fe4f12.js";import{c as e}from"./p-6791bba7.js";const n=class{constructor(t){a(this,t),this.flowDirection=null,this.itemCount=0,this.items=[],this.itemMutationObserver=e("mutation",(()=>this.updateFlowProps())),this.getFlowDirection=(a,t)=>a&&t>1||a>1?t<a?"retreating":"advancing":null,this.updateFlowProps=()=>{const{el:a,items:t}=this,i=Array.from(a.querySelectorAll("calcite-flow-item, calcite-panel")).filter((a=>!a.matches("calcite-flow-item calcite-flow-item, calcite-panel calcite-panel"))),e=t.length,n=i.length,c=i[n-1],r=i[n-2];if(n&&c&&i.forEach((a=>{a.showBackButton=a===c&&n>1,a.hidden=a!==c})),r&&(r.menuOpen=!1),this.items=i,e!==n){const a=this.getFlowDirection(e,n);this.itemCount=n,this.flowDirection=a}}}async back(){const{items:a}=this,t=a[a.length-1];if(t)return(t.beforeBack?t.beforeBack:()=>Promise.resolve()).call(t).then((()=>(t.remove(),t)))}connectedCallback(){var a;null===(a=this.itemMutationObserver)||void 0===a||a.observe(this.el,{childList:!0,subtree:!0}),this.updateFlowProps()}disconnectedCallback(){var a;null===(a=this.itemMutationObserver)||void 0===a||a.disconnect()}handleItemBackClick(){this.back()}render(){const{flowDirection:a}=this;return t("div",{class:{frame:!0,"frame--advancing":"advancing"===a,"frame--retreating":"retreating"===a}},t("slot",null))}get el(){return i(this)}};n.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:0px}:host ::slotted(calcite-flow-item),:host ::slotted(calcite-panel){block-size:100%}:host ::slotted(.calcite-match-height:last-child){display:flex;flex:1 1 auto;overflow:hidden}:host .frame--advancing{animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{animation:calcite-frame-retreat var(--calcite-animation-timing)}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}";export{n as calcite_flow}
6
+ import{r as a,h as t,g as i}from"./p-67e64dc2.js";import{c as e}from"./p-753870d8.js";const n=class{constructor(t){a(this,t),this.flowDirection=null,this.itemCount=0,this.items=[],this.itemMutationObserver=e("mutation",(()=>this.updateFlowProps())),this.getFlowDirection=(a,t)=>a&&t>1||a>1?t<a?"retreating":"advancing":null,this.updateFlowProps=()=>{const{el:a,items:t}=this,i=Array.from(a.querySelectorAll("calcite-flow-item, calcite-panel")).filter((a=>!a.matches("calcite-flow-item calcite-flow-item, calcite-panel calcite-panel"))),e=t.length,n=i.length,c=i[n-1],r=i[n-2];if(n&&c&&i.forEach((a=>{a.showBackButton=a===c&&n>1,a.hidden=a!==c})),r&&(r.menuOpen=!1),this.items=i,e!==n){const a=this.getFlowDirection(e,n);this.itemCount=n,this.flowDirection=a}}}async back(){const{items:a}=this,t=a[a.length-1];if(t)return(t.beforeBack?t.beforeBack:()=>Promise.resolve()).call(t).then((()=>(t.remove(),t)))}connectedCallback(){var a;null===(a=this.itemMutationObserver)||void 0===a||a.observe(this.el,{childList:!0,subtree:!0}),this.updateFlowProps()}disconnectedCallback(){var a;null===(a=this.itemMutationObserver)||void 0===a||a.disconnect()}handleItemBackClick(){this.back()}render(){const{flowDirection:a}=this;return t("div",{class:{frame:!0,"frame--advancing":"advancing"===a,"frame--retreating":"retreating"===a}},t("slot",null))}get el(){return i(this)}};n.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:0px}:host ::slotted(calcite-flow-item),:host ::slotted(calcite-panel){block-size:100%}:host ::slotted(.calcite-match-height:last-child){display:flex;flex:1 1 auto;overflow:hidden}:host .frame--advancing{animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{animation:calcite-frame-retreat var(--calcite-animation-timing)}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}";export{n as calcite_flow}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.636
5
+ */
6
+ import{r as i,c as t,h as a,H as e,g as o}from"./p-67e64dc2.js";import{f as n,t as r}from"./p-ac445235.js";import{c,d as s,g as l}from"./p-70b4e4ec.js";import{c as d,d as h,H as m}from"./p-fb990403.js";import{u as p}from"./p-4aced9e8.js";import{i as u}from"./p-0fc28e03.js";import{c as b,s as f,a as k}from"./p-eeeee029.js";import"./p-366980c1.js";import"./p-b41e7e3a.js";const v=class{constructor(a){i(this,a),this.calciteSwitchChange=t(this,"calciteSwitchChange",6),this.disabled=!1,this.scale="m",this.switched=!1,this.checked=!1,this.keyDownHandler=i=>{!this.disabled&&u(i.key)&&(this.toggle(),i.preventDefault())},this.clickHandler=()=>{this.toggle()},this.setSwitchEl=i=>{this.switchEl=i}}switchedWatcher(i){this.checked=i}async setFocus(){await b(this),n(this.switchEl)}onLabelClick(){this.disabled||(this.toggle(),this.setFocus())}toggle(){this.checked=!this.checked,this.calciteSwitchChange.emit({switched:this.checked})}connectedCallback(){const i=this.checked||this.switched;i&&(this.switched=this.checked=i),c(this),d(this)}componentWillLoad(){f(this)}componentDidLoad(){k(this)}disconnectedCallback(){s(this),h(this)}componentDidRender(){p(this)}render(){return a(e,{onClick:this.clickHandler,onKeyDown:this.keyDownHandler},a("div",{"aria-checked":r(this.checked),"aria-label":l(this),class:"container",ref:this.setSwitchEl,role:"switch",tabIndex:0},a("div",{class:"track"},a("div",{class:"handle"})),a(m,{component:this})))}get el(){return o(this)}static get watchers(){return{switched:["switchedWatcher"]}}};v.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([scale=s]) .container{block-size:0.75rem}:host([scale=s]) .track{block-size:0.75rem;inline-size:1.5rem}:host([scale=s]) .handle{block-size:0.5rem;inline-size:0.5rem}:host([scale=m]) .container{block-size:1rem}:host([scale=m]) .track{block-size:1rem;inline-size:2rem}:host([scale=m]) .handle{block-size:0.75rem;inline-size:0.75rem}:host([scale=l]) .container{block-size:1.5rem}:host([scale=l]) .track{block-size:1.5rem;inline-size:3rem}:host([scale=l]) .handle{block-size:1.25rem;inline-size:1.25rem}:host{position:relative;display:inline-block;inline-size:auto;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host{inline-size:auto;outline-color:transparent}.track{pointer-events:none;position:relative;box-sizing:border-box;display:inline-block;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-2);vertical-align:top;transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.handle{pointer-events:none;position:absolute;display:block;border-radius:9999px;border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);inset-block-start:-1px;inset-inline:-1px auto}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]) .handle{border-color:var(--calcite-ui-brand);inset-inline:auto -1px}:host([checked]:hover) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}@media (forced-colors: active){:host([checked]) .track{background-color:canvasText}}.container:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{v as calcite_switch}
@@ -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-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.636
5
5
  */
6
- import{a as n}from"./p-e8fe4f12.js";import{n as t,g as e}from"./p-a859d62c.js";function a(n,t,e){if(!n)return;const a=n.getTime(),r=!(t instanceof Date)||a>=t.getTime(),o=!(e instanceof Date)||a<=e.getTime();return r&&o}function r(n,t,e){if(!(n instanceof Date))return null;const a=n.getTime(),r=t instanceof Date&&a<t.getTime(),o=e instanceof Date&&a>e.getTime();return r?t:o?e:n}function o(n,t=!1){if(n instanceof Date)return n;if(!n||"string"!=typeof n)return null;const e=n.split(/[: T-]/).map(parseFloat),a=new Date(e[0],(e[1]||1)-1,e[2]||1);if(a.setFullYear(e[0]),isNaN(a.getTime()))throw new Error(`Invalid ISO 8601 date: "${n}"`);return t?d(a):a}function s(n,t){if(!t)return null;const{separator:e}=t,{day:a,month:r,year:o}=function(n,t){const{day:e,month:a,year:r}=i(n,t);return{day:parseInt(e),month:parseInt(a)-1,year:parseInt(r)}}(n,t),s=new Date(o,r,a);s.setFullYear(o);const c=a>0,u=r>-1,f=!isNaN(s.getTime()),l=n.split(e).filter((n=>n)).length>2,p=o.toString().length>0;return c&&u&&f&&l&&p?s:null}function i(n,e){const{separator:a,unitOrder:r}=e,o=p(r),s=n.split(a).map((n=>t.delocalize(n)));return{day:s[o.indexOf("d")],month:s[o.indexOf("m")],year:s[o.indexOf("y")]}}function c(n){return"string"==typeof n?n:n instanceof Date?new Date(n.getTime()-6e4*n.getTimezoneOffset()).toISOString().split("T")[0]:""}function u(n,t){return n instanceof Date&&t instanceof Date&&n.getDate()===t.getDate()&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear()}function f(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t-1),t===e.getMonth()?new Date(n.getFullYear(),t,0):e}function l(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t+1),(t+2)%7==e.getMonth()%7?new Date(n.getFullYear(),t+2,0):e}function p(n){const t=n.toLowerCase();return["d","m","y"].sort(((n,e)=>t.indexOf(n)-t.indexOf(e)))}function D(n,t){return(n.getTime()-t.getTime())/864e5}function d(n){return n.setHours(23,59,59,999),n}const y={},h={};async function m(t){const a=e(t);if(y[a])return y[a];h[a]||(h[a]=fetch(n(`./assets/date-picker/nls/${a}.json`)).then((n=>n.json())).catch((()=>(console.error(`Translations for "${a}" not found or invalid, falling back to english`),m("en")))));const r=await h[a];return y[a]=r,r}function w(n){return n.map(((n,t)=>o(n,1===t)))}const g={nextMonth:"Next month",prevMonth:"Previous month",year:"Year"};export{g as T,s as a,c as b,o as c,i as d,m as e,r as f,w as g,D as h,a as i,u as j,p as k,l as n,f as p,d as s}
6
+ import{a as n}from"./p-67e64dc2.js";import{n as t,g as e}from"./p-771abcbf.js";function a(n,t,e){if(!n)return;const a=n.getTime(),r=!(t instanceof Date)||a>=t.getTime(),o=!(e instanceof Date)||a<=e.getTime();return r&&o}function r(n,t,e){if(!(n instanceof Date))return null;const a=n.getTime(),r=t instanceof Date&&a<t.getTime(),o=e instanceof Date&&a>e.getTime();return r?t:o?e:n}function o(n,t=!1){if(n instanceof Date)return n;if(!n||"string"!=typeof n)return null;const e=n.split(/[: T-]/).map(parseFloat),a=new Date(e[0],(e[1]||1)-1,e[2]||1);if(a.setFullYear(e[0]),isNaN(a.getTime()))throw new Error(`Invalid ISO 8601 date: "${n}"`);return t?d(a):a}function s(n,t){if(!t)return null;const{separator:e}=t,{day:a,month:r,year:o}=function(n,t){const{day:e,month:a,year:r}=i(n,t);return{day:parseInt(e),month:parseInt(a)-1,year:parseInt(r)}}(n,t),s=new Date(o,r,a);s.setFullYear(o);const c=a>0,u=r>-1,f=!isNaN(s.getTime()),l=n.split(e).filter((n=>n)).length>2,p=o.toString().length>0;return c&&u&&f&&l&&p?s:null}function i(n,e){const{separator:a,unitOrder:r}=e,o=p(r),s=n.split(a).map((n=>t.delocalize(n)));return{day:s[o.indexOf("d")],month:s[o.indexOf("m")],year:s[o.indexOf("y")]}}function c(n){return"string"==typeof n?n:n instanceof Date?new Date(n.getTime()-6e4*n.getTimezoneOffset()).toISOString().split("T")[0]:""}function u(n,t){return n instanceof Date&&t instanceof Date&&n.getDate()===t.getDate()&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear()}function f(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t-1),t===e.getMonth()?new Date(n.getFullYear(),t,0):e}function l(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t+1),(t+2)%7==e.getMonth()%7?new Date(n.getFullYear(),t+2,0):e}function p(n){const t=n.toLowerCase();return["d","m","y"].sort(((n,e)=>t.indexOf(n)-t.indexOf(e)))}function D(n,t){return(n.getTime()-t.getTime())/864e5}function d(n){return n.setHours(23,59,59,999),n}const y={},h={};async function m(t){const a=e(t);if(y[a])return y[a];h[a]||(h[a]=fetch(n(`./assets/date-picker/nls/${a}.json`)).then((n=>n.json())).catch((()=>(console.error(`Translations for "${a}" not found or invalid, falling back to english`),m("en")))));const r=await h[a];return y[a]=r,r}function w(n){return n.map(((n,t)=>o(n,1===t)))}const g={nextMonth:"Next month",prevMonth:"Previous month",year:"Year"};export{g as T,s as a,c as b,o as c,i as d,m as e,r as f,w as g,D as h,a as i,u as j,p as k,l as n,f as p,d as s}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.636
5
5
  */
6
- import{C as n}from"./p-40ac55d4.js";import{g as t}from"./p-3e516c7f.js";function r(n){return n?n.id=n.id||`${n.tagName.toLowerCase()}-${t()}`:""}function o(n){return Array.isArray(n)?n:Array.from(n)}function u(t){const r=f(t,`.${n.darkTheme}, .${n.lightTheme}`);return(null==r?void 0:r.classList.contains("calcite-theme-dark"))?"dark":"light"}function l(n){const t=f(n,"[dir]");return t?t.getAttribute("dir"):"ltr"}function i(n,t,r){const o=n.closest(`[${t}]`);return o?o.getAttribute(t):r}function e(n){return n.getRootNode()}function c(n){return n.host||null}function s(n,{selector:t,id:r}){return function n(o){if(!o)return null;o.assignedSlot&&(o=o.assignedSlot);const u=e(o),l=r?"getElementById"in u?u.getElementById(r):null:t?u.querySelector(t):null,i=c(u);return l||(i?n(i):null)}(n)}function f(n,t){return function n(r){return r?r.closest(t)||n(c(e(r))):null}(n)}function a(n,t){return d(n,t)}function d(n,t){if(!n)return;const r=t(n);if(void 0!==r)return r;const{parentNode:o}=n;return d(o instanceof ShadowRoot?o.host:o,t)}function v(n,t){return!!a(t,(t=>t===n||void 0))}async function y(n){if(n)return function(n){return"function"==typeof(null==n?void 0:n.setFocus)}(n)?n.setFocus():n.focus()}function p(n,t,r){t&&!Array.isArray(t)&&"string"!=typeof t&&(r=t,t=null);const o=t?Array.isArray(t)?t.map((n=>`[slot="${n}"]`)).join(","):`[slot="${t}"]`:":not([slot])";return(null==r?void 0:r.all)?function(n,t,r){let o=":not([slot])"===t?A(n,":not([slot])"):Array.from(n.querySelectorAll(t));o=r&&!1===r.direct?o:o.filter((t=>t.parentElement===n)),o=(null==r?void 0:r.matches)?o.filter((n=>null==n?void 0:n.matches(r.matches))):o;const u=null==r?void 0:r.selector;return u?o.map((n=>Array.from(n.querySelectorAll(u)))).reduce(((n,t)=>[...n,...t]),[]).filter((n=>!!n)):o}(n,o,r):function(n,t,r){let o=":not([slot])"===t?A(n,":not([slot])")[0]||null:n.querySelector(t);o=r&&!1===r.direct||(null==o?void 0:o.parentElement)===n?o:null,o=(null==r?void 0:r.matches)?(null==o?void 0:o.matches(r.matches))?o:null:o;const u=null==r?void 0:r.selector;return u?null==o?void 0:o.querySelector(u):o}(n,o,r)}function A(n,t){return n?Array.from(n.children||[]).filter((n=>null==n?void 0:n.matches(t))):[]}function $(n,t){return Array.from(n.children).filter((n=>n.matches(t)))}function g(n,t,r){return"string"==typeof t&&""!==t?t:""===t?n[r]:void 0}function m(n,t){return!(t.left>n.right||t.right<n.left||t.top>n.bottom||t.bottom<n.top)}function h(n){return Boolean(n).toString()}function j(n){return!(!n.isPrimary||0!==n.button)}export{l as a,v as b,f as c,u as d,i as e,y as f,p as g,r as h,j as i,m as j,e as k,$ as l,o as n,s as q,g as s,h as t}
6
+ import{C as n}from"./p-366980c1.js";import{g as t}from"./p-b41e7e3a.js";function r(n){return n?n.id=n.id||`${n.tagName.toLowerCase()}-${t()}`:""}function o(n){return Array.isArray(n)?n:Array.from(n)}function u(t){const r=f(t,`.${n.darkTheme}, .${n.lightTheme}`);return(null==r?void 0:r.classList.contains("calcite-theme-dark"))?"dark":"light"}function l(n){const t=f(n,"[dir]");return t?t.getAttribute("dir"):"ltr"}function i(n,t,r){const o=n.closest(`[${t}]`);return o?o.getAttribute(t):r}function e(n){return n.getRootNode()}function c(n){return n.host||null}function s(n,{selector:t,id:r}){return function n(o){if(!o)return null;o.assignedSlot&&(o=o.assignedSlot);const u=e(o),l=r?"getElementById"in u?u.getElementById(r):null:t?u.querySelector(t):null,i=c(u);return l||(i?n(i):null)}(n)}function f(n,t){return function n(r){return r?r.closest(t)||n(c(e(r))):null}(n)}function a(n,t){return d(n,t)}function d(n,t){if(!n)return;const r=t(n);if(void 0!==r)return r;const{parentNode:o}=n;return d(o instanceof ShadowRoot?o.host:o,t)}function v(n,t){return!!a(t,(t=>t===n||void 0))}async function y(n){if(n)return function(n){return"function"==typeof(null==n?void 0:n.setFocus)}(n)?n.setFocus():n.focus()}function p(n,t,r){t&&!Array.isArray(t)&&"string"!=typeof t&&(r=t,t=null);const o=t?Array.isArray(t)?t.map((n=>`[slot="${n}"]`)).join(","):`[slot="${t}"]`:":not([slot])";return(null==r?void 0:r.all)?function(n,t,r){let o=":not([slot])"===t?A(n,":not([slot])"):Array.from(n.querySelectorAll(t));o=r&&!1===r.direct?o:o.filter((t=>t.parentElement===n)),o=(null==r?void 0:r.matches)?o.filter((n=>null==n?void 0:n.matches(r.matches))):o;const u=null==r?void 0:r.selector;return u?o.map((n=>Array.from(n.querySelectorAll(u)))).reduce(((n,t)=>[...n,...t]),[]).filter((n=>!!n)):o}(n,o,r):function(n,t,r){let o=":not([slot])"===t?A(n,":not([slot])")[0]||null:n.querySelector(t);o=r&&!1===r.direct||(null==o?void 0:o.parentElement)===n?o:null,o=(null==r?void 0:r.matches)?(null==o?void 0:o.matches(r.matches))?o:null:o;const u=null==r?void 0:r.selector;return u?null==o?void 0:o.querySelector(u):o}(n,o,r)}function A(n,t){return n?Array.from(n.children||[]).filter((n=>null==n?void 0:n.matches(t))):[]}function $(n,t){return Array.from(n.children).filter((n=>n.matches(t)))}function g(n,t,r){return"string"==typeof t&&""!==t?t:""===t?n[r]:void 0}function m(n,t){return!(t.left>n.right||t.right<n.left||t.top>n.bottom||t.bottom<n.top)}function h(n){return Boolean(n).toString()}function j(n){return!(!n.isPrimary||0!==n.button)}export{l as a,v as b,f as c,u as d,i as e,y as f,p as g,r as h,j as i,m as j,e as k,$ as l,o as n,s as q,g as s,h as t}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.636
5
+ */
6
+ import{r as i,c as t,h as a,H as e,g as n}from"./p-67e64dc2.js";import{a as o,e as r,t as l}from"./p-ac445235.js";import{c,d as s}from"./p-70b4e4ec.js";import{a as m,c as d,d as h,H as u}from"./p-fb990403.js";import{u as p}from"./p-4aced9e8.js";import{s as g,a as f,c as b}from"./p-eeeee029.js";import"./p-366980c1.js";import"./p-b41e7e3a.js";const v=class{constructor(a){i(this,a),this.calciteRadioGroupChange=t(this,"calciteRadioGroupChange",6),this.appearance="solid",this.disabled=!1,this.required=!1,this.layout="horizontal",this.scale="m",this.value=null,this.width="auto",this.handleClick=i=>{"calcite-radio-group-item"===i.target.localName&&this.selectItem(i.target,!0)}}valueHandler(i){this.getItems().forEach((t=>t.checked=t.value===i))}handleSelectedItemChange(i,t){if(this.value=null==i?void 0:i.value,i===t)return;const a=this.getItems(),e=Array.from(a).filter((t=>t===i)).pop();e?this.selectItem(e):a[0]&&(a[0].tabIndex=0)}componentWillLoad(){g(this);const i=this.getItems(),t=Array.from(i).filter((i=>i.checked)).pop();t?this.selectItem(t):i[0]&&(i[0].tabIndex=0)}componentDidLoad(){m(this,this.value),f(this)}connectedCallback(){c(this),d(this)}disconnectedCallback(){s(this),h(this)}componentDidRender(){p(this)}render(){return a(e,{onClick:this.handleClick,role:"radiogroup"},a("slot",null),a(u,{component:this}))}handleSelected(i){i.preventDefault(),this.selectItem(i.target),i.stopPropagation()}handleKeyDown(i){const{key:t}=i,{el:a,selectedItem:e}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(t))return;let n=t;"rtl"===o(a)&&("ArrowRight"===t&&(n="ArrowLeft"),"ArrowLeft"===t&&(n="ArrowRight"));const r=this.getItems();let l=-1;switch(r.forEach(((i,t)=>{i===e&&(l=t)})),n){case"ArrowLeft":case"ArrowUp":i.preventDefault();const t=r.item(l<1?r.length-1:l-1);return void this.selectItem(t,!0);case"ArrowRight":case"ArrowDown":i.preventDefault();const a=-1===l?r.item(1):r.item(l+1)||r.item(0);return void this.selectItem(a,!0);case" ":return i.preventDefault(),void this.selectItem(i.target,!0);default:return}}async setFocus(){var i;await b(this),null===(i=this.selectedItem||this.getItems()[0])||void 0===i||i.focus()}onLabelClick(){this.setFocus()}getItems(){return this.el.querySelectorAll("calcite-radio-group-item")}selectItem(i,t=!1){if(i===this.selectedItem)return;const a=this.getItems();let e=null;a.forEach((a=>{const n=a.value===i.value;(n&&!a.checked||!n&&a.checked)&&(a.checked=n),a.tabIndex=n?0:-1,n&&(e=a,t&&this.calciteRadioGroupChange.emit(e.value))})),this.selectedItem=e,e&&e.focus()}get el(){return n(this)}static get watchers(){return{value:["valueHandler"],selectedItem:["handleSelectedItemChange"]}}};v.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;background-color:var(--calcite-ui-foreground-1);inline-size:-moz-fit-content;inline-size:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([layout=vertical]){flex-direction:column;align-items:flex-start;align-self:flex-start}:host([width=full]){inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content}:host([width=full]) ::slotted(calcite-radio-group-item){flex:1 1 auto}:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item){justify-content:flex-start}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";const y=class{constructor(a){i(this,a),this.calciteInternalRadioGroupItemChange=t(this,"calciteInternalRadioGroupItemChange",6),this.checked=!1,this.iconFlipRtl=!1,this.iconPosition="start"}handleCheckedChange(){this.calciteInternalRadioGroupItemChange.emit()}render(){const{checked:i,value:t}=this,n=r(this.el,"scale","m"),o=r(this.el,"appearance","solid"),c=r(this.el,"layout","horizontal"),s=this.iconStart?a("calcite-icon",{class:"radio-group-item-icon",flipRtl:this.iconFlipRtl,icon:this.iconStart,key:"icon-start",scale:"s"}):null,m=this.iconEnd?a("calcite-icon",{class:"radio-group-item-icon",flipRtl:this.iconFlipRtl,icon:this.iconEnd,key:"icon-end",scale:"s"}):null,d=a("calcite-icon",{class:"radio-group-item-icon",flipRtl:this.iconFlipRtl,icon:this.icon,key:"icon",scale:"s"}),h=this.icon&&"start"===this.iconPosition&&!this.iconStart?d:null,u=this.icon&&"end"===this.iconPosition&&!this.iconEnd?d:null;return a(e,{"aria-checked":l(i),"aria-label":t,role:"radio"},a("label",{class:{"label--scale-s":"s"===n,"label--scale-m":"m"===n,"label--scale-l":"l"===n,"label--horizontal":"horizontal"===c,"label--outline":"outline"===o}},h,this.iconStart?s:null,a("slot",null,t),a("slot",{name:"input"}),u,this.iconEnd?m:null))}get el(){return n(this)}static get watchers(){return{checked:["handleCheckedChange"]}}};y.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-ui-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}.label--scale-s{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}.label--scale-m{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}.label--scale-l{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:active) label{background-color:var(--calcite-ui-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}:host([checked]) .label--outline{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon{color:highlightText}}.radio-group-item-icon{position:relative;margin:0px;display:inline-flex;line-height:inherit}:host([icon-position=start]) .label--scale-s .radio-group-item-icon{margin-inline-end:0.5rem}:host([icon-position=end]) .label--scale-s .radio-group-item-icon{margin-inline-end:unset;margin-inline-start:0.5rem}:host([icon-position=start]) .label--scale-m .radio-group-item-icon{margin-inline-end:0.75rem}:host([icon-position=end]) .label--scale-m .radio-group-item-icon{margin-inline-end:unset;margin-inline-start:0.75rem}:host([icon-position=start]) .label--scale-l .radio-group-item-icon{margin-inline-end:1rem}:host([icon-position=end]) .label--scale-l .radio-group-item-icon{margin-inline-end:unset;margin-inline-start:1rem}:host([icon-start]) .label--scale-s .radio-group-item-icon{margin-inline-end:0.5rem}:host([icon-end]) .label--scale-s .radio-group-item-icon{margin-inline-start:0.5rem}:host([icon-start]) .label--scale-m .radio-group-item-icon{margin-inline-end:0.75rem}:host([icon-end]) .label--scale-m .radio-group-item-icon{margin-inline-start:0.75rem}:host([icon-start]) .label--scale-l .radio-group-item-icon{margin-inline-end:1rem}:host([icon-end]) .label--scale-l .radio-group-item-icon{margin-inline-start:1rem}";export{v as calcite_radio_group,y as calcite_radio_group_item}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.636
5
+ */
6
+ import{f as t}from"./p-67e64dc2.js";import{c as o}from"./p-753870d8.js";const n=new Set;let c;const s={childList:!0};function f(t){c||(c=o("mutation",r)),c.observe(t.el,s)}function i(t){n.delete(t.el),r(c.takeRecords()),c.disconnect();for(const[t]of n.entries())c.observe(t,s)}function r(o){o.forEach((({target:o})=>{t(o)}))}export{f as c,i as d}
@@ -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-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.636
5
5
  */
6
6
  function n(n,r){return(n+r)%r}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-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.636
5
5
  */
6
6
  const t=()=>[2,1,1,1,3].map((t=>{let e="";for(let r=0;r<t;r++)e+=(65536*(1+Math.random())|0).toString(16).substring(1);return e})).join("-");export{t 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-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.634
4
+ * v1.0.0-next.636
5
5
  */
6
- import{r as t,c as e,h as a,H as i,g as r,F as s}from"./p-e8fe4f12.js";import{T as o,h as n,b as c,c as l,g as h,f as d,e as u,s as p,j as g,i as f,k as v,n as m,p as w}from"./p-71442073.js";import{c as y,d as x,n as b}from"./p-a859d62c.js";import{c as k,a as D}from"./p-a93c20e4.js";import{C as z}from"./p-40ac55d4.js";import{u as _}from"./p-283f5c09.js";import{i as C}from"./p-a1df68f2.js";import{H as A}from"./p-e0446d31.js";import"./p-6791bba7.js";import"./p-3e516c7f.js";const P=class{constructor(a){t(this,a),this.calciteDatePickerChange=e(this,"calciteDatePickerChange",6),this.calciteDatePickerRangeChange=e(this,"calciteDatePickerRangeChange",6),this.intlPrevMonth=o.prevMonth,this.intlNextMonth=o.nextMonth,this.intlYear=o.year,this.scale="m",this.range=!1,this.proximitySelectionDisabled=!1,this.globalAttributes={},this.effectiveLocale="",this.keyDownHandler=t=>{"Escape"===t.key&&this.reset()},this.monthHeaderSelectChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthActiveDateChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthHoverChange=t=>{if(!this.startAsDate)return void(this.hoverRange=void 0);const e=new Date(t.detail);if(this.hoverRange={focused:this.activeRange||"start",start:this.startAsDate,end:this.endAsDate},this.proximitySelectionDisabled)this.endAsDate?this.hoverRange=void 0:e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");else if(this.endAsDate){const t=n(e,this.startAsDate),a=n(e,this.endAsDate);a>0?(this.hoverRange.end=e,this.hoverRange.focused="end"):t<0||t>a?(this.hoverRange.start=e,this.hoverRange.focused="start"):(this.hoverRange.end=e,this.hoverRange.focused="end")}else e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");t.stopPropagation()},this.monthMouseOutChange=()=>{this.hoverRange&&(this.hoverRange=void 0)},this.reset=()=>{var t,e,a,i,r,s;!Array.isArray(this.valueAsDate)&&this.valueAsDate&&(null===(t=this.valueAsDate)||void 0===t?void 0:t.getTime())!==(null===(e=this.activeDate)||void 0===e?void 0:e.getTime())&&(this.activeDate=new Date(this.valueAsDate)),this.startAsDate&&(null===(a=this.startAsDate)||void 0===a?void 0:a.getTime())!==(null===(i=this.activeStartDate)||void 0===i?void 0:i.getTime())&&(this.activeStartDate=new Date(this.startAsDate)),this.endAsDate&&(null===(r=this.endAsDate)||void 0===r?void 0:r.getTime())!==(null===(s=this.activeEndDate)||void 0===s?void 0:s.getTime())&&(this.activeEndDate=new Date(this.endAsDate))},this.monthDateChange=t=>{const e=new Date(t.detail),a=c(e);if(this.range||a!==c(this.valueAsDate)){if(!this.range)return this.value=a||"",this.valueAsDate=e||null,this.activeDate=e||null,void this.calciteDatePickerChange.emit(e);if(!this.startAsDate||!this.endAsDate&&e<this.startAsDate)this.startAsDate&&this.setEndDate(new Date(this.startAsDate)),"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else if(this.endAsDate)if(this.proximitySelectionDisabled)this.setStartDate(e),this.endAsDate=this.activeEndDate=this.end=void 0;else if(this.activeRange)"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else{const t=n(e,this.startAsDate),a=n(e,this.endAsDate);0===a||t<0?this.setStartDate(e):0===t||a<0?this.setEndDate(e):t<a?this.setStartDate(e):this.setEndDate(e)}else this.setEndDate(e);this.calciteDatePickerChange.emit(e)}}}activeDateWatcher(t){"end"===this.activeRange&&(this.activeEndDate=t)}handleValueAsDate(t){!Array.isArray(t)&&t&&t!==this.activeDate&&(this.activeDate=t)}handleRangeChange(){const{startAsDate:t,endAsDate:e}=this;this.activeEndDate=e,this.activeStartDate=t}onMinChanged(t){t&&(this.minAsDate=l(t))}onMaxChanged(t){t&&(this.maxAsDate=l(t))}connectedCallback(){y(this),Array.isArray(this.value)?(this.valueAsDate=h(this.value),this.start=this.value[0],this.end=this.value[1]):this.value&&(this.valueAsDate=l(this.value)),this.start&&this.setStartAsDate(l(this.start)),this.end&&this.setEndAsDate(l(this.end)),this.min&&(this.minAsDate=l(this.min)),this.max&&(this.maxAsDate=l(this.max))}disconnectedCallback(){x(this)}async componentWillLoad(){await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}render(){var t;const e=d(this.range&&Array.isArray(this.valueAsDate)?this.valueAsDate[0]:this.valueAsDate,this.minAsDate,this.maxAsDate);let r=this.getActiveDate(e,this.minAsDate,this.maxAsDate);const s=this.range&&Array.isArray(this.valueAsDate)?d(this.valueAsDate[1],this.minAsDate,this.maxAsDate):null,o=this.getActiveEndDate(s,this.minAsDate,this.maxAsDate);return"end"!==this.activeRange&&("end"!==(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)||this.proximitySelectionDisabled&&!s)||!o||(r=o),this.range&&this.mostRecentRangeValue&&(r=this.mostRecentRangeValue),a(i,{onBlur:this.reset,onKeyDown:this.keyDownHandler,role:"application"},this.renderCalendar(r,this.range&&this.activeRange&&"start"===this.activeRange&&s||this.maxAsDate,this.range&&this.activeRange?"start"===this.activeRange?this.minAsDate:e||this.minAsDate:this.minAsDate,e,s))}valueHandler(t){Array.isArray(t)?(this.valueAsDate=h(t),this.start=t[0],this.end=t[1]):t&&(this.valueAsDate=l(t),this.start="",this.end="")}startWatcher(t){this.setStartAsDate(l(t))}endWatcher(t){this.setEndAsDate(l(t))}async loadLocaleData(){b.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1},this.localeData=await u(this.effectiveLocale)}renderCalendar(t,e,i,r,s){return this.localeData&&[a("calcite-date-picker-month-header",{activeDate:t,headingLevel:this.headingLevel,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:e,min:i,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r||new Date}),a("calcite-date-picker-month",{activeDate:t,endDate:this.range?s:void 0,hoverRange:this.hoverRange,localeData:this.localeData,max:e,min:i,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerSelect:this.monthDateChange,onCalciteInternalDatePickerHover:this.monthHoverChange,onCalciteInternalDatePickerMouseOut:this.monthMouseOutChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r,startDate:this.range?r:void 0})]}setStartAsDate(t,e){this.startAsDate=t,this.mostRecentRangeValue=this.startAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:t,endDate:this.endAsDate})}setEndAsDate(t,e){this.endAsDate=t?p(t):t,this.mostRecentRangeValue=this.endAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:t})}setEndDate(t){this.end=t?c(t):"",this.setEndAsDate(t,!0),this.activeEndDate=t||null}setStartDate(t){this.start=t?c(t):"",this.setStartAsDate(t,!0),this.activeStartDate=t||null}getActiveDate(t,e,a){return d(this.activeDate,e,a)||t||d(new Date,e,a)}getActiveEndDate(t,e,a){return d(this.activeEndDate,e,a)||t||d(new Date,e,a)}static get assetsDirs(){return["assets"]}get el(){return r(this)}static get watchers(){return{activeDate:["activeDateWatcher"],valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],min:["onMinChanged"],max:["onMaxChanged"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],effectiveLocale:["loadLocaleData"]}}};P.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);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}";const S=class{constructor(a){t(this,a),this.calciteDaySelect=e(this,"calciteDaySelect",6),this.calciteInternalDayHover=e(this,"calciteInternalDayHover",6),this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.onClick=()=>{!this.disabled&&this.calciteDaySelect.emit()},this.keyDownHandler=t=>{C(t.key)&&(!this.disabled&&this.calciteDaySelect.emit(),t.preventDefault())}}mouseoverHandler(){this.calciteInternalDayHover.emit()}componentWillLoad(){this.parentDatePickerEl=k(this.el,"calcite-date-picker")}render(){if(this.parentDatePickerEl){const{numberingSystem:t,lang:e}=this.parentDatePickerEl;b.numberFormatOptions={useGrouping:!1,...t&&{numberingSystem:t},...e&&{locale:e}}}const t=b.localize(String(this.day)),e=D(this.el);return a(i,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell"},a("div",{class:{"day-v-wrapper":!0,[z.rtl]:"rtl"===e}},a("div",{class:"day-wrapper"},a("span",{class:"day"},a("span",{class:"text"},t)))))}componentDidRender(){_(this,this.isTabbable)}isTabbable(){return this.active}get el(){return r(this)}};S.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;min-inline-size:0px;cursor:pointer;justify-content:center;color:var(--calcite-ui-text-3);inline-size:14.2857142857%}: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-brand);outline-offset:2px;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{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 -2px var(--calcite-ui-foreground-1)}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 -2px var(--calcite-ui-foreground-1)}: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{border-radius:0px;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]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) .day-wrapper,:host([range-hover]:first-child) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted]:last-child) .day-wrapper,:host([range-hover]:last-child) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .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}}";const M=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",6),this.calciteInternalDatePickerHover=e(this,"calciteInternalDatePickerHover",6),this.calciteDatePickerActiveDateChange=e(this,"calciteDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=e(this,"calciteInternalDatePickerMouseOut",6),this.activeDate=new Date,this.keyDownHandler=t=>{if(t.defaultPrevented)return;const e="rtl"===this.el.dir;switch(t.key){case"ArrowUp":t.preventDefault(),this.addDays(-7);break;case"ArrowRight":t.preventDefault(),this.addDays(e?-1:1);break;case"ArrowDown":t.preventDefault(),this.addDays(7);break;case"ArrowLeft":t.preventDefault(),this.addDays(e?1:-1);break;case"PageUp":t.preventDefault(),this.addMonths(-1);break;case"PageDown":t.preventDefault(),this.addMonths(1);break;case"Home":t.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":t.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":t.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=t=>{const e=t.target;e.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(e.value),t.stopPropagation()},this.daySelect=t=>{this.calciteDatePickerSelect.emit(t.target.value)}}mouseoutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const t=this.activeDate.getMonth(),e=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,l=[...c.slice(r,7),...c.slice(0,r)],h=this.getCurrentMonthDays(t,e),d=this.getPrevMonthdays(t,e,r),u=this.getNextMonthDays(t,e,r),p=[...d.map((a=>{const i=new Date(e,t-1,a);return this.renderDateDay(!1,a,i)})),...h.map((a=>{const i=new Date(e,t,a),r=g(i,this.activeDate);return this.renderDateDay(r,a,i,!0,!0)})),...u.map((a=>{const i=new Date(e,t+1,a);return this.renderDateDay(!1,a,i)}))],f=[];for(let t=0;t<p.length;t+=7)f.push(p.slice(t,t+7));return a(i,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},a("div",{class:"calender",role:"grid"},a("div",{class:"week-headers",role:"row"},l.map((t=>a("span",{class:"week-header",role:"columnheader"},t)))),f.map((t=>a("div",{class:"week-days",role:"row"},t)))))}addMonths(t){const e=new Date(this.activeDate);e.setMonth(this.activeDate.getMonth()+t),this.calciteDatePickerActiveDateChange.emit(d(e,this.min,this.max)),this.activeFocus=!0}addDays(t=0){const e=new Date(this.activeDate);e.setDate(this.activeDate.getDate()+t),this.calciteDatePickerActiveDateChange.emit(d(e,this.min,this.max)),this.activeFocus=!0}getPrevMonthdays(t,e,a){const i=new Date(e,t,0),r=i.getDate(),s=[];if(i.getDay()-6===a)return s;for(let t=i.getDay()-a;t>=0;t--)s.push(r-t);return s}getCurrentMonthDays(t,e){const a=new Date(e,t+1,0).getDate(),i=[];for(let t=0;t<a;t++)i.push(t+1);return i}getNextMonthDays(t,e,a){const i=new Date(e,t+1,0).getDay(),r=[];if(i===(a+6)%7)return r;for(let t=0;t<(6-(i-a))%7;t++)r.push(t+1);return r}betweenSelectedRange(t){return!(!(this.startDate&&this.endDate&&t>this.startDate&&t<this.endDate)||this.isRangeHover(t))}isSelected(t){return!!(g(t,this.selectedDate)||this.startDate&&g(t,this.startDate)||this.endDate&&g(t,this.endDate))}isStartOfRange(t){return!(!this.startDate||g(this.startDate,this.endDate)||!g(this.startDate,t)||this.isEndOfRange(t))}isEndOfRange(t){return!!(this.endDate&&!g(this.startDate,this.endDate)&&g(this.endDate,t)||!this.endDate&&this.hoverRange&&g(this.startDate,this.hoverRange.end)&&g(t,this.hoverRange.end))}renderDateDay(t,e,i,r,s){var o;const n=this.isFocusedOnStart(),c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&g(null===(o=this.hoverRange)||void 0===o?void 0:o.end,this.startDate);return a("calcite-date-picker-day",{active:t,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":n,"focused--end":!n},currentMonth:r,day:e,disabled:!f(i,this.min,this.max),endOfRange:this.isEndOfRange(i),highlighted:this.betweenSelectedRange(i),key:i.toDateString(),onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!g(this.startDate,this.endDate),rangeHover:this.isRangeHover(i),ref:e=>{s&&t&&this.activeFocus&&(null==e||e.focus())},scale:this.scale,selected:this.isSelected(i),startOfRange:this.isStartOfRange(i),value:i})}isFocusedOnStart(){var t;return"start"===(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)}isHoverInRange(){if(!this.hoverRange)return!1;const{start:t,end:e}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||e<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)}isRangeHover(t){if(!this.hoverRange)return!1;const{start:e,end:a}=this.hoverRange,i=this.isFocusedOnStart(),r=this.isHoverInRange(),s=r&&(!i&&t>this.startDate&&(t<a||g(t,a))||i&&t<this.endDate&&(t>e||g(t,e))),o=!r&&(!i&&t>=this.endDate&&(t<a||g(t,a))||i&&(t<this.startDate||this.endDate&&g(t,this.startDate))&&(t>e||g(t,e)));return s||o}get el(){return r(this)}};M.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.calender{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%}: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 j=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",6),this.globalAttributes={},this.onYearKey=t=>{const e=this.parseCalendarYear(t.target.value);switch(t.key){case"ArrowDown":t.preventDefault(),this.setYear({localizedYear:e,offset:-1});break;case"ArrowUp":t.preventDefault(),this.setYear({localizedYear:e,offset:1})}},this.onYearChange=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value)})},this.onYearInput=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value),commit:!1})},this.prevMonthClick=t=>{this.handleArrowClick(t,this.prevMonthDate)},this.prevMonthKeydown=t=>{C(t.key)&&this.prevMonthClick(t)},this.nextMonthClick=t=>{this.handleArrowClick(t,this.nextMonthDate)},this.nextMonthKeydown=t=>{C(t.key)&&this.nextMonthClick(t)},this.handleArrowClick=(t,e)=>{t.preventDefault(),this.calciteDatePickerSelect.emit(e)}}componentWillLoad(){this.parentDatePickerEl=k(this.el,"calcite-date-picker")}connectedCallback(){this.setNextPrevMonthDates()}render(){return a("div",{class:"header"},this.renderContent())}renderContent(){var t;if(!this.activeDate||!this.localeData)return null;if(this.parentDatePickerEl){const{numberingSystem:t,lang:e}=this.parentDatePickerEl;b.numberFormatOptions={useGrouping:!1,...t&&{numberingSystem:t},...e&&{locale:e}}}const e=this.activeDate.getMonth(),{months:i,unitOrder:r}=this.localeData,o=(i.wide||i.narrow||i.abbreviated)[e],n=this.formatCalendarYear(this.activeDate.getFullYear()),c="l"===this.scale?"m":"s",l=v(r),h=l.indexOf("y")<l.indexOf("m"),d=null===(t=this.localeData.year)||void 0===t?void 0:t.suffix;return a(s,null,a("a",{"aria-disabled":`${this.prevMonthDate.getMonth()===e}`,"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===e?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-left",scale:c})),a("div",{class:{text:!0,"text--reverse":h}},a(A,{class:"month",level:this.headingLevel},o),a("span",{class:"year-wrap"},a("input",{"aria-label":this.intlYear,class:{year:!0,"year--suffix":!!d},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.onYearChange,onInput:this.onYearInput,onKeyDown:this.onYearKey,pattern:"\\d*",ref:t=>this.yearInput=t,type:"text",value:n}),d&&a("span",{class:"suffix"},d))),a("a",{"aria-disabled":`${this.nextMonthDate.getMonth()===e}`,"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===e?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-right",scale:c})))}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=d(m(this.activeDate),this.min,this.max),this.prevMonthDate=d(w(this.activeDate),this.min,this.max))}formatCalendarYear(t){const{localeData:e}=this;return b.localize(`${t+("buddhist"===e["default-calendar"]?543:0)}`)}parseCalendarYear(t){const{localeData:e}=this,a="buddhist"===e["default-calendar"]?543:0,i=Number(b.delocalize(t))-a;return b.localize(`${i}`)}getInRangeDate({localizedYear:t,offset:e=0}){const{min:a,max:i,activeDate:r}=this,s=Number(b.delocalize(t)),o=s.toString().length,n=!isNaN(s)&&s+e,c=n&&(!a||a.getFullYear()<=n)&&(!i||i.getFullYear()>=n);if(n&&c&&o===t.length){const t=new Date(r);return t.setFullYear(n),d(t,a,i)}}setYear({localizedYear:t,commit:e=!0,offset:a=0}){const{yearInput:i,activeDate:r}=this,s=this.getInRangeDate({localizedYear:t,offset:a});s&&this.calciteDatePickerSelect.emit(s),e&&(i.value=this.formatCalendarYear((s||r).getFullYear()))}get el(){return r(this)}static get watchers(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}}};j.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.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-brand);outline-offset:-2px}.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-brand);outline-offset:2px}.year--suffix{text-align:start}.year-wrap{position:relative}.suffix{inset-block-start:0px;white-space:nowrap;text-align:start;inset-inline-start:0}";export{P as calcite_date_picker,S as calcite_date_picker_day,M as calcite_date_picker_month,j as calcite_date_picker_month_header}
6
+ import{r as t,c as e,h as a,H as i,g as r,F as s}from"./p-67e64dc2.js";import{T as o,h as n,b as c,c as l,g as h,f as d,e as u,s as p,j as g,i as f,k as v,n as m,p as w}from"./p-ac05b6c0.js";import{c as y,d as x,n as b}from"./p-771abcbf.js";import{c as k,a as D}from"./p-ac445235.js";import{C as z}from"./p-366980c1.js";import{u as _}from"./p-4aced9e8.js";import{i as C}from"./p-0fc28e03.js";import{H as A}from"./p-57b194ca.js";import"./p-753870d8.js";import"./p-b41e7e3a.js";const P=class{constructor(a){t(this,a),this.calciteDatePickerChange=e(this,"calciteDatePickerChange",6),this.calciteDatePickerRangeChange=e(this,"calciteDatePickerRangeChange",6),this.intlPrevMonth=o.prevMonth,this.intlNextMonth=o.nextMonth,this.intlYear=o.year,this.scale="m",this.range=!1,this.proximitySelectionDisabled=!1,this.globalAttributes={},this.effectiveLocale="",this.keyDownHandler=t=>{"Escape"===t.key&&this.reset()},this.monthHeaderSelectChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthActiveDateChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthHoverChange=t=>{if(!this.startAsDate)return void(this.hoverRange=void 0);const e=new Date(t.detail);if(this.hoverRange={focused:this.activeRange||"start",start:this.startAsDate,end:this.endAsDate},this.proximitySelectionDisabled)this.endAsDate?this.hoverRange=void 0:e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");else if(this.endAsDate){const t=n(e,this.startAsDate),a=n(e,this.endAsDate);a>0?(this.hoverRange.end=e,this.hoverRange.focused="end"):t<0||t>a?(this.hoverRange.start=e,this.hoverRange.focused="start"):(this.hoverRange.end=e,this.hoverRange.focused="end")}else e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");t.stopPropagation()},this.monthMouseOutChange=()=>{this.hoverRange&&(this.hoverRange=void 0)},this.reset=()=>{var t,e,a,i,r,s;!Array.isArray(this.valueAsDate)&&this.valueAsDate&&(null===(t=this.valueAsDate)||void 0===t?void 0:t.getTime())!==(null===(e=this.activeDate)||void 0===e?void 0:e.getTime())&&(this.activeDate=new Date(this.valueAsDate)),this.startAsDate&&(null===(a=this.startAsDate)||void 0===a?void 0:a.getTime())!==(null===(i=this.activeStartDate)||void 0===i?void 0:i.getTime())&&(this.activeStartDate=new Date(this.startAsDate)),this.endAsDate&&(null===(r=this.endAsDate)||void 0===r?void 0:r.getTime())!==(null===(s=this.activeEndDate)||void 0===s?void 0:s.getTime())&&(this.activeEndDate=new Date(this.endAsDate))},this.monthDateChange=t=>{const e=new Date(t.detail),a=c(e);if(this.range||a!==c(this.valueAsDate)){if(!this.range)return this.value=a||"",this.valueAsDate=e||null,this.activeDate=e||null,void this.calciteDatePickerChange.emit(e);if(!this.startAsDate||!this.endAsDate&&e<this.startAsDate)this.startAsDate&&this.setEndDate(new Date(this.startAsDate)),"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else if(this.endAsDate)if(this.proximitySelectionDisabled)this.setStartDate(e),this.endAsDate=this.activeEndDate=this.end=void 0;else if(this.activeRange)"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else{const t=n(e,this.startAsDate),a=n(e,this.endAsDate);0===a||t<0?this.setStartDate(e):0===t||a<0?this.setEndDate(e):t<a?this.setStartDate(e):this.setEndDate(e)}else this.setEndDate(e);this.calciteDatePickerChange.emit(e)}}}activeDateWatcher(t){"end"===this.activeRange&&(this.activeEndDate=t)}handleValueAsDate(t){!Array.isArray(t)&&t&&t!==this.activeDate&&(this.activeDate=t)}handleRangeChange(){const{startAsDate:t,endAsDate:e}=this;this.activeEndDate=e,this.activeStartDate=t}onMinChanged(t){t&&(this.minAsDate=l(t))}onMaxChanged(t){t&&(this.maxAsDate=l(t))}connectedCallback(){y(this),Array.isArray(this.value)?(this.valueAsDate=h(this.value),this.start=this.value[0],this.end=this.value[1]):this.value&&(this.valueAsDate=l(this.value)),this.start&&this.setStartAsDate(l(this.start)),this.end&&this.setEndAsDate(l(this.end)),this.min&&(this.minAsDate=l(this.min)),this.max&&(this.maxAsDate=l(this.max))}disconnectedCallback(){x(this)}async componentWillLoad(){await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}render(){var t;const e=d(this.range&&Array.isArray(this.valueAsDate)?this.valueAsDate[0]:this.valueAsDate,this.minAsDate,this.maxAsDate);let r=this.getActiveDate(e,this.minAsDate,this.maxAsDate);const s=this.range&&Array.isArray(this.valueAsDate)?d(this.valueAsDate[1],this.minAsDate,this.maxAsDate):null,o=this.getActiveEndDate(s,this.minAsDate,this.maxAsDate);return"end"!==this.activeRange&&("end"!==(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)||this.proximitySelectionDisabled&&!s)||!o||(r=o),this.range&&this.mostRecentRangeValue&&(r=this.mostRecentRangeValue),a(i,{onBlur:this.reset,onKeyDown:this.keyDownHandler,role:"application"},this.renderCalendar(r,this.range&&this.activeRange&&"start"===this.activeRange&&s||this.maxAsDate,this.range&&this.activeRange?"start"===this.activeRange?this.minAsDate:e||this.minAsDate:this.minAsDate,e,s))}valueHandler(t){Array.isArray(t)?(this.valueAsDate=h(t),this.start=t[0],this.end=t[1]):t&&(this.valueAsDate=l(t),this.start="",this.end="")}startWatcher(t){this.setStartAsDate(l(t))}endWatcher(t){this.setEndAsDate(l(t))}async loadLocaleData(){b.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1},this.localeData=await u(this.effectiveLocale)}renderCalendar(t,e,i,r,s){return this.localeData&&[a("calcite-date-picker-month-header",{activeDate:t,headingLevel:this.headingLevel,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:e,min:i,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r||new Date}),a("calcite-date-picker-month",{activeDate:t,endDate:this.range?s:void 0,hoverRange:this.hoverRange,localeData:this.localeData,max:e,min:i,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerSelect:this.monthDateChange,onCalciteInternalDatePickerHover:this.monthHoverChange,onCalciteInternalDatePickerMouseOut:this.monthMouseOutChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r,startDate:this.range?r:void 0})]}setStartAsDate(t,e){this.startAsDate=t,this.mostRecentRangeValue=this.startAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:t,endDate:this.endAsDate})}setEndAsDate(t,e){this.endAsDate=t?p(t):t,this.mostRecentRangeValue=this.endAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:t})}setEndDate(t){this.end=t?c(t):"",this.setEndAsDate(t,!0),this.activeEndDate=t||null}setStartDate(t){this.start=t?c(t):"",this.setStartAsDate(t,!0),this.activeStartDate=t||null}getActiveDate(t,e,a){return d(this.activeDate,e,a)||t||d(new Date,e,a)}getActiveEndDate(t,e,a){return d(this.activeEndDate,e,a)||t||d(new Date,e,a)}static get assetsDirs(){return["assets"]}get el(){return r(this)}static get watchers(){return{activeDate:["activeDateWatcher"],valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],min:["onMinChanged"],max:["onMaxChanged"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],effectiveLocale:["loadLocaleData"]}}};P.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);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}";const S=class{constructor(a){t(this,a),this.calciteDaySelect=e(this,"calciteDaySelect",6),this.calciteInternalDayHover=e(this,"calciteInternalDayHover",6),this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.onClick=()=>{!this.disabled&&this.calciteDaySelect.emit()},this.keyDownHandler=t=>{C(t.key)&&(!this.disabled&&this.calciteDaySelect.emit(),t.preventDefault())}}mouseoverHandler(){this.calciteInternalDayHover.emit()}componentWillLoad(){this.parentDatePickerEl=k(this.el,"calcite-date-picker")}render(){if(this.parentDatePickerEl){const{numberingSystem:t,lang:e}=this.parentDatePickerEl;b.numberFormatOptions={useGrouping:!1,...t&&{numberingSystem:t},...e&&{locale:e}}}const t=b.localize(String(this.day)),e=D(this.el);return a(i,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell"},a("div",{class:{"day-v-wrapper":!0,[z.rtl]:"rtl"===e}},a("div",{class:"day-wrapper"},a("span",{class:"day"},a("span",{class:"text"},t)))))}componentDidRender(){_(this,this.isTabbable)}isTabbable(){return this.active}get el(){return r(this)}};S.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;min-inline-size:0px;cursor:pointer;justify-content:center;color:var(--calcite-ui-text-3);inline-size:14.2857142857%}: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-brand);outline-offset:2px;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{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 -2px var(--calcite-ui-foreground-1)}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 -2px var(--calcite-ui-foreground-1)}: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{border-radius:0px;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]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) .day-wrapper,:host([range-hover]:first-child) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted]:last-child) .day-wrapper,:host([range-hover]:last-child) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .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}}";const M=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",6),this.calciteInternalDatePickerHover=e(this,"calciteInternalDatePickerHover",6),this.calciteDatePickerActiveDateChange=e(this,"calciteDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=e(this,"calciteInternalDatePickerMouseOut",6),this.activeDate=new Date,this.keyDownHandler=t=>{if(t.defaultPrevented)return;const e="rtl"===this.el.dir;switch(t.key){case"ArrowUp":t.preventDefault(),this.addDays(-7);break;case"ArrowRight":t.preventDefault(),this.addDays(e?-1:1);break;case"ArrowDown":t.preventDefault(),this.addDays(7);break;case"ArrowLeft":t.preventDefault(),this.addDays(e?1:-1);break;case"PageUp":t.preventDefault(),this.addMonths(-1);break;case"PageDown":t.preventDefault(),this.addMonths(1);break;case"Home":t.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":t.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":t.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=t=>{const e=t.target;e.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(e.value),t.stopPropagation()},this.daySelect=t=>{this.calciteDatePickerSelect.emit(t.target.value)}}mouseoutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const t=this.activeDate.getMonth(),e=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,l=[...c.slice(r,7),...c.slice(0,r)],h=this.getCurrentMonthDays(t,e),d=this.getPrevMonthdays(t,e,r),u=this.getNextMonthDays(t,e,r),p=[...d.map((a=>{const i=new Date(e,t-1,a);return this.renderDateDay(!1,a,i)})),...h.map((a=>{const i=new Date(e,t,a),r=g(i,this.activeDate);return this.renderDateDay(r,a,i,!0,!0)})),...u.map((a=>{const i=new Date(e,t+1,a);return this.renderDateDay(!1,a,i)}))],f=[];for(let t=0;t<p.length;t+=7)f.push(p.slice(t,t+7));return a(i,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},a("div",{class:"calender",role:"grid"},a("div",{class:"week-headers",role:"row"},l.map((t=>a("span",{class:"week-header",role:"columnheader"},t)))),f.map((t=>a("div",{class:"week-days",role:"row"},t)))))}addMonths(t){const e=new Date(this.activeDate);e.setMonth(this.activeDate.getMonth()+t),this.calciteDatePickerActiveDateChange.emit(d(e,this.min,this.max)),this.activeFocus=!0}addDays(t=0){const e=new Date(this.activeDate);e.setDate(this.activeDate.getDate()+t),this.calciteDatePickerActiveDateChange.emit(d(e,this.min,this.max)),this.activeFocus=!0}getPrevMonthdays(t,e,a){const i=new Date(e,t,0),r=i.getDate(),s=[];if(i.getDay()-6===a)return s;for(let t=i.getDay()-a;t>=0;t--)s.push(r-t);return s}getCurrentMonthDays(t,e){const a=new Date(e,t+1,0).getDate(),i=[];for(let t=0;t<a;t++)i.push(t+1);return i}getNextMonthDays(t,e,a){const i=new Date(e,t+1,0).getDay(),r=[];if(i===(a+6)%7)return r;for(let t=0;t<(6-(i-a))%7;t++)r.push(t+1);return r}betweenSelectedRange(t){return!(!(this.startDate&&this.endDate&&t>this.startDate&&t<this.endDate)||this.isRangeHover(t))}isSelected(t){return!!(g(t,this.selectedDate)||this.startDate&&g(t,this.startDate)||this.endDate&&g(t,this.endDate))}isStartOfRange(t){return!(!this.startDate||g(this.startDate,this.endDate)||!g(this.startDate,t)||this.isEndOfRange(t))}isEndOfRange(t){return!!(this.endDate&&!g(this.startDate,this.endDate)&&g(this.endDate,t)||!this.endDate&&this.hoverRange&&g(this.startDate,this.hoverRange.end)&&g(t,this.hoverRange.end))}renderDateDay(t,e,i,r,s){var o;const n=this.isFocusedOnStart(),c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&g(null===(o=this.hoverRange)||void 0===o?void 0:o.end,this.startDate);return a("calcite-date-picker-day",{active:t,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":n,"focused--end":!n},currentMonth:r,day:e,disabled:!f(i,this.min,this.max),endOfRange:this.isEndOfRange(i),highlighted:this.betweenSelectedRange(i),key:i.toDateString(),onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!g(this.startDate,this.endDate),rangeHover:this.isRangeHover(i),ref:e=>{s&&t&&this.activeFocus&&(null==e||e.focus())},scale:this.scale,selected:this.isSelected(i),startOfRange:this.isStartOfRange(i),value:i})}isFocusedOnStart(){var t;return"start"===(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)}isHoverInRange(){if(!this.hoverRange)return!1;const{start:t,end:e}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||e<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)}isRangeHover(t){if(!this.hoverRange)return!1;const{start:e,end:a}=this.hoverRange,i=this.isFocusedOnStart(),r=this.isHoverInRange(),s=r&&(!i&&t>this.startDate&&(t<a||g(t,a))||i&&t<this.endDate&&(t>e||g(t,e))),o=!r&&(!i&&t>=this.endDate&&(t<a||g(t,a))||i&&(t<this.startDate||this.endDate&&g(t,this.startDate))&&(t>e||g(t,e)));return s||o}get el(){return r(this)}};M.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.calender{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%}: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 j=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",6),this.globalAttributes={},this.onYearKey=t=>{const e=this.parseCalendarYear(t.target.value);switch(t.key){case"ArrowDown":t.preventDefault(),this.setYear({localizedYear:e,offset:-1});break;case"ArrowUp":t.preventDefault(),this.setYear({localizedYear:e,offset:1})}},this.onYearChange=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value)})},this.onYearInput=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value),commit:!1})},this.prevMonthClick=t=>{this.handleArrowClick(t,this.prevMonthDate)},this.prevMonthKeydown=t=>{C(t.key)&&this.prevMonthClick(t)},this.nextMonthClick=t=>{this.handleArrowClick(t,this.nextMonthDate)},this.nextMonthKeydown=t=>{C(t.key)&&this.nextMonthClick(t)},this.handleArrowClick=(t,e)=>{t.preventDefault(),this.calciteDatePickerSelect.emit(e)}}componentWillLoad(){this.parentDatePickerEl=k(this.el,"calcite-date-picker")}connectedCallback(){this.setNextPrevMonthDates()}render(){return a("div",{class:"header"},this.renderContent())}renderContent(){var t;if(!this.activeDate||!this.localeData)return null;if(this.parentDatePickerEl){const{numberingSystem:t,lang:e}=this.parentDatePickerEl;b.numberFormatOptions={useGrouping:!1,...t&&{numberingSystem:t},...e&&{locale:e}}}const e=this.activeDate.getMonth(),{months:i,unitOrder:r}=this.localeData,o=(i.wide||i.narrow||i.abbreviated)[e],n=this.formatCalendarYear(this.activeDate.getFullYear()),c="l"===this.scale?"m":"s",l=v(r),h=l.indexOf("y")<l.indexOf("m"),d=null===(t=this.localeData.year)||void 0===t?void 0:t.suffix;return a(s,null,a("a",{"aria-disabled":`${this.prevMonthDate.getMonth()===e}`,"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===e?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-left",scale:c})),a("div",{class:{text:!0,"text--reverse":h}},a(A,{class:"month",level:this.headingLevel},o),a("span",{class:"year-wrap"},a("input",{"aria-label":this.intlYear,class:{year:!0,"year--suffix":!!d},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.onYearChange,onInput:this.onYearInput,onKeyDown:this.onYearKey,pattern:"\\d*",ref:t=>this.yearInput=t,type:"text",value:n}),d&&a("span",{class:"suffix"},d))),a("a",{"aria-disabled":`${this.nextMonthDate.getMonth()===e}`,"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===e?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-right",scale:c})))}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=d(m(this.activeDate),this.min,this.max),this.prevMonthDate=d(w(this.activeDate),this.min,this.max))}formatCalendarYear(t){const{localeData:e}=this;return b.localize(`${t+("buddhist"===e["default-calendar"]?543:0)}`)}parseCalendarYear(t){const{localeData:e}=this,a="buddhist"===e["default-calendar"]?543:0,i=Number(b.delocalize(t))-a;return b.localize(`${i}`)}getInRangeDate({localizedYear:t,offset:e=0}){const{min:a,max:i,activeDate:r}=this,s=Number(b.delocalize(t)),o=s.toString().length,n=!isNaN(s)&&s+e,c=n&&(!a||a.getFullYear()<=n)&&(!i||i.getFullYear()>=n);if(n&&c&&o===t.length){const t=new Date(r);return t.setFullYear(n),d(t,a,i)}}setYear({localizedYear:t,commit:e=!0,offset:a=0}){const{yearInput:i,activeDate:r}=this,s=this.getInRangeDate({localizedYear:t,offset:a});s&&this.calciteDatePickerSelect.emit(s),e&&(i.value=this.formatCalendarYear((s||r).getFullYear()))}get el(){return r(this)}static get watchers(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}}};j.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.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-brand);outline-offset:-2px}.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-brand);outline-offset:2px}.year--suffix{text-align:start}.year-wrap{position:relative}.suffix{inset-block-start:0px;white-space:nowrap;text-align:start;inset-inline-start:0}";export{P as calcite_date_picker,S as calcite_date_picker_day,M as calcite_date_picker_month,j as calcite_date_picker_month_header}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.636
5
+ */
6
+ import{r as t,c as i,h as a,g as s}from"./p-67e64dc2.js";import{e,g as n}from"./p-ac445235.js";import{c,d as o,g as l}from"./p-70b4e4ec.js";import{c as r}from"./p-753870d8.js";import{u as h}from"./p-4aced9e8.js";import{s as d,a as p,c as m}from"./p-eeeee029.js";import"./p-366980c1.js";import"./p-b41e7e3a.js";const u=class{constructor(a){t(this,a),this.calciteInlineEditableEditCancel=i(this,"calciteInlineEditableEditCancel",6),this.calciteInlineEditableEditConfirm=i(this,"calciteInlineEditableEditConfirm",6),this.calciteInternalInlineEditableEnableEditingChange=i(this,"calciteInternalInlineEditableEnableEditingChange",6),this.disabled=!1,this.editingEnabled=!1,this.loading=!1,this.controls=!1,this.intlEnableEditing="Click to edit",this.intlCancelEditing="Cancel",this.intlConfirmChanges="Save",this.mutationObserver=r("mutation",(()=>this.mutationObserverCallback())),this.enableEditing=()=>{var t,i;this.valuePriorToEditing=null===(t=this.inputElement)||void 0===t?void 0:t.value,this.editingEnabled=!0,null===(i=this.inputElement)||void 0===i||i.setFocus(),this.calciteInternalInlineEditableEnableEditingChange.emit()},this.disableEditing=()=>{this.editingEnabled=!1},this.cancelEditing=()=>{this.inputElement&&(this.inputElement.value=this.valuePriorToEditing),this.disableEditing(),this.enableEditingButton.setFocus(),!this.editingEnabled&&this.shouldEmitCancel&&this.calciteInlineEditableEditCancel.emit()},this.escapeKeyHandler=async t=>{var i;t.defaultPrevented||("Escape"===t.key&&(t.preventDefault(),this.cancelEditing()),"Tab"===t.key&&this.shouldShowControls&&(t.shiftKey||t.target!==this.inputElement||(t.preventDefault(),this.cancelEditingButton.setFocus()),t.shiftKey&&t.target===this.cancelEditingButton&&(t.preventDefault(),null===(i=this.inputElement)||void 0===i||i.setFocus())))},this.cancelEditingHandler=async t=>{t.preventDefault(),this.cancelEditing()},this.enableEditingHandler=async t=>{this.disabled||t.target===this.cancelEditingButton||t.target===this.confirmEditingButton||(t.preventDefault(),this.editingEnabled||this.enableEditing())},this.confirmChangesHandler=async t=>{t.preventDefault(),this.calciteInlineEditableEditConfirm.emit();try{this.afterConfirm&&(this.loading=!0,await this.afterConfirm(),this.disableEditing(),this.enableEditingButton.setFocus())}catch(t){}finally{this.loading=!1}}}disabledWatcher(t){this.inputElement&&(this.inputElement.disabled=t)}editingEnabledWatcher(t,i){this.inputElement&&(this.inputElement.editingEnabled=t),!t&&i&&(this.shouldEmitCancel=!0)}connectedCallback(){var t;c(this),null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0}),this.mutationObserverCallback()}componentWillLoad(){d(this)}componentDidLoad(){p(this)}disconnectedCallback(){var t;o(this),null===(t=this.mutationObserver)||void 0===t||t.disconnect()}componentDidRender(){h(this)}render(){return a("div",{class:"wrapper",onClick:this.enableEditingHandler,onKeyDown:this.escapeKeyHandler},a("div",{class:"input-wrapper"},a("slot",null)),a("div",{class:"controls-wrapper"},a("calcite-button",{appearance:"transparent",class:"enable-editing-button",color:"neutral",disabled:this.disabled,iconStart:"pencil",label:this.intlEnableEditing,onClick:this.enableEditingHandler,ref:t=>this.enableEditingButton=t,scale:this.scale,style:{opacity:this.editingEnabled?"0":"1",width:this.editingEnabled?"0":"inherit"},type:"button"}),this.shouldShowControls&&[a("div",{class:"cancel-editing-button-wrapper"},a("calcite-button",{appearance:"transparent",class:"cancel-editing-button",color:"neutral",disabled:this.disabled,iconStart:"x",label:this.intlCancelEditing,onClick:this.cancelEditingHandler,ref:t=>this.cancelEditingButton=t,scale:this.scale,type:"button"})),a("calcite-button",{appearance:"solid",class:"confirm-changes-button",color:"blue",disabled:this.disabled,iconStart:"check",label:this.intlConfirmChanges,loading:this.loading,onClick:this.confirmChangesHandler,ref:t=>this.confirmEditingButton=t,scale:this.scale,type:"button"})]))}blurHandler(){this.controls||this.disableEditing()}async setFocus(){var t,i;await m(this),this.editingEnabled?null===(t=this.inputElement)||void 0===t||t.setFocus():null===(i=this.enableEditingButton)||void 0===i||i.setFocus()}mutationObserverCallback(){var t;this.updateSlottedInput(),this.scale=this.scale||(null===(t=this.inputElement)||void 0===t?void 0:t.scale)||e(this.el,"scale",void 0)}onLabelClick(){this.setFocus()}updateSlottedInput(){const t=n(this.el,{matches:"calcite-input"});this.inputElement=t,t&&(this.inputElement.disabled=this.disabled,this.inputElement.label=this.inputElement.label||l(this))}get shouldShowControls(){return this.editingEnabled&&this.controls}get el(){return s(this)}static get watchers(){return{disabled:["disabledWatcher"],editingEnabled:["editingEnabledWatcher"]}}};u.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:block}:host([scale=s]) .controls-wrapper{block-size:1.5rem}:host([scale=m]) .controls-wrapper{block-size:2rem}:host([scale=l]) .controls-wrapper{block-size:2.75rem}:host(:not([editing-enabled]):not([disabled])) .wrapper:hover{background-color:var(--calcite-ui-foreground-2)}.wrapper{box-sizing:border-box;display:flex;justify-content:space-between;background-color:var(--calcite-ui-foreground-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.wrapper .input-wrapper{flex:1 1 0%}.controls-wrapper{display:flex}:host([disabled]) .cancel-editing-button-wrapper{border-color:var(--calcite-ui-border-2)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";export{u as calcite_inline_editable}