@esri/calcite-components 1.0.0-next.620 → 1.0.0-next.622

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (656) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/index.esm.js +1 -1
  3. package/dist/calcite/p-00b343e7.js +6 -0
  4. package/dist/calcite/{p-b04a6b2c.entry.js → p-0684c679.entry.js} +2 -2
  5. package/dist/calcite/{p-96fb7815.js → p-0a47f25e.js} +1 -1
  6. package/dist/calcite/{p-18590c9d.js → p-0dfed97c.js} +2 -2
  7. package/dist/calcite/{p-5d80a1a7.entry.js → p-10435a9c.entry.js} +2 -2
  8. package/dist/calcite/{p-990af603.js → p-12965257.js} +2 -2
  9. package/dist/calcite/{p-b1366a63.entry.js → p-13a16758.entry.js} +2 -2
  10. package/dist/calcite/{p-aa979404.js → p-15dbdd70.js} +2 -2
  11. package/dist/calcite/{p-8670116a.entry.js → p-16bcab6c.entry.js} +2 -2
  12. package/dist/calcite/{p-c7a0a34f.js → p-1995d332.js} +1 -1
  13. package/dist/calcite/{p-255e2ae1.entry.js → p-1a9af777.entry.js} +2 -2
  14. package/dist/calcite/{p-c7858a40.entry.js → p-1cf5f3e2.entry.js} +2 -2
  15. package/dist/calcite/{p-3d38fb35.js → p-1d0a940e.js} +1 -1
  16. package/dist/calcite/{p-ea769dde.js → p-208c298f.js} +1 -1
  17. package/dist/calcite/{p-e5972608.entry.js → p-21a933cb.entry.js} +2 -2
  18. package/dist/calcite/{p-f7a246c3.entry.js → p-25506ea4.entry.js} +2 -2
  19. package/dist/calcite/{p-a1d1f070.entry.js → p-270abe96.entry.js} +2 -2
  20. package/dist/calcite/{p-e13f1fd9.js → p-2812b58f.js} +2 -2
  21. package/dist/calcite/{p-3681c26d.entry.js → p-2bb89489.entry.js} +2 -2
  22. package/dist/calcite/{p-6e2c04a1.entry.js → p-2edbbcf4.entry.js} +2 -2
  23. package/dist/calcite/{p-b4b39bd6.js → p-3234c811.js} +1 -1
  24. package/dist/calcite/{p-9439e44e.entry.js → p-36b459ac.entry.js} +2 -2
  25. package/dist/calcite/{p-e9f23eec.js → p-38882a3b.js} +1 -1
  26. package/dist/calcite/{p-f8eb0221.js → p-3d2b3d0b.js} +1 -1
  27. package/dist/calcite/{p-95b7628b.entry.js → p-407307f8.entry.js} +2 -2
  28. package/dist/calcite/{p-0b1db23d.entry.js → p-45a2b65d.entry.js} +2 -2
  29. package/dist/calcite/p-4cc55a65.entry.js +6 -0
  30. package/dist/calcite/{p-33053f28.entry.js → p-4db0fc4c.entry.js} +2 -2
  31. package/dist/calcite/{p-21ab53c7.entry.js → p-52876bf9.entry.js} +2 -2
  32. package/dist/calcite/{p-8ec0cdda.js → p-5726e1ec.js} +2 -2
  33. package/dist/calcite/{p-daf25e2c.entry.js → p-5a4bdee7.entry.js} +2 -2
  34. package/dist/calcite/{p-5f93979f.entry.js → p-5bd00523.entry.js} +2 -2
  35. package/dist/calcite/{p-5637eb10.js → p-5fde2316.js} +1 -1
  36. package/dist/calcite/{p-e53d9005.entry.js → p-6054d272.entry.js} +2 -2
  37. package/dist/calcite/{p-10020d19.entry.js → p-6110677c.entry.js} +2 -2
  38. package/dist/calcite/{p-4fc28c5d.entry.js → p-659c856d.entry.js} +2 -2
  39. package/dist/calcite/{p-60a85329.entry.js → p-6630279a.entry.js} +2 -2
  40. package/dist/calcite/{p-fbd2940e.entry.js → p-6b4955ec.entry.js} +2 -2
  41. package/dist/calcite/{p-111e41b6.entry.js → p-6b79d351.entry.js} +2 -2
  42. package/dist/calcite/{p-f8de0739.entry.js → p-6c481567.entry.js} +2 -2
  43. package/dist/calcite/{p-c7e2df71.js → p-6cf2e38b.js} +1 -1
  44. package/dist/calcite/{p-f5b510e9.entry.js → p-6f5352a3.entry.js} +2 -2
  45. package/dist/calcite/{p-5b73fd11.entry.js → p-727b3065.entry.js} +2 -2
  46. package/dist/calcite/{p-bd67b9be.js → p-758811ae.js} +1 -1
  47. package/dist/calcite/{p-18650746.entry.js → p-781371b0.entry.js} +2 -2
  48. package/dist/calcite/{p-99605a71.entry.js → p-7a1e096b.entry.js} +2 -2
  49. package/dist/calcite/{p-0072722c.js → p-7c5eb2bc.js} +1 -1
  50. package/dist/calcite/{p-4362bb5b.entry.js → p-7d6639a8.entry.js} +2 -2
  51. package/dist/calcite/{p-293a819c.entry.js → p-8176e247.entry.js} +2 -2
  52. package/dist/calcite/{p-30dfa8fa.entry.js → p-818c7da7.entry.js} +2 -2
  53. package/dist/calcite/{p-9e18f8ff.entry.js → p-82e3d643.entry.js} +2 -2
  54. package/dist/calcite/{p-092fc365.js → p-85c36037.js} +2 -2
  55. package/dist/calcite/{p-7470ad11.entry.js → p-860a62b8.entry.js} +2 -2
  56. package/dist/calcite/{p-81f0abbe.entry.js → p-899213d6.entry.js} +2 -2
  57. package/dist/calcite/{p-8b5794c3.js → p-8a23bee9.js} +1 -1
  58. package/dist/calcite/{p-179703ee.entry.js → p-906274e5.entry.js} +2 -2
  59. package/dist/calcite/{p-108764a9.entry.js → p-9421277e.entry.js} +2 -2
  60. package/dist/calcite/{p-a9fb7422.entry.js → p-95f9ce1a.entry.js} +2 -2
  61. package/dist/calcite/{p-6c852841.entry.js → p-9641e77b.entry.js} +2 -2
  62. package/dist/calcite/{p-b01e3b51.entry.js → p-99d5ec29.entry.js} +2 -2
  63. package/dist/calcite/{p-101ae9d4.entry.js → p-a00a270a.entry.js} +2 -2
  64. package/dist/calcite/{p-ef98ffdf.entry.js → p-a4c40fbe.entry.js} +2 -2
  65. package/dist/calcite/{p-10000a5d.js → p-a7cd8b98.js} +2 -2
  66. package/dist/calcite/{p-9795f44f.entry.js → p-a80a158c.entry.js} +2 -2
  67. package/dist/calcite/{p-3362f7c4.entry.js → p-a821c137.entry.js} +2 -2
  68. package/dist/calcite/p-a9790487.entry.js +6 -0
  69. package/dist/calcite/{p-6c687147.entry.js → p-afac13a2.entry.js} +2 -2
  70. package/dist/calcite/{p-2c8e7879.entry.js → p-afc2e98e.entry.js} +2 -2
  71. package/dist/calcite/{p-a0ca6259.js → p-b648f4b7.js} +1 -1
  72. package/dist/calcite/{p-03ae7bb0.js → p-b7ca1b33.js} +2 -2
  73. package/dist/calcite/p-b8d532cf.entry.js +6 -0
  74. package/dist/calcite/{p-fc770486.entry.js → p-ba252dfd.entry.js} +2 -2
  75. package/dist/calcite/{p-7b79de67.entry.js → p-bd968bbc.entry.js} +2 -2
  76. package/dist/calcite/p-ca9e73f5.js +6 -0
  77. package/dist/calcite/p-d0b36729.js +6 -0
  78. package/dist/calcite/{p-a8045ba4.entry.js → p-d1afb786.entry.js} +2 -2
  79. package/dist/calcite/{p-b7d97b96.entry.js → p-d8a786f5.entry.js} +2 -2
  80. package/dist/calcite/p-da40bc5b.js +6 -0
  81. package/dist/calcite/{p-86c1de35.entry.js → p-e812a0f1.entry.js} +2 -2
  82. package/dist/calcite/{p-8fdab6a6.entry.js → p-e91a0472.entry.js} +2 -2
  83. package/dist/calcite/p-ecc55abe.entry.js +6 -0
  84. package/dist/calcite/{p-6d984659.js → p-f48adde2.js} +1 -1
  85. package/dist/calcite/{p-e7a986eb.entry.js → p-f4c4299f.entry.js} +2 -2
  86. package/dist/calcite/{p-1b6b98f3.entry.js → p-f55de32b.entry.js} +2 -2
  87. package/dist/calcite/{p-a3b2b864.js → p-f6204412.js} +2 -2
  88. package/dist/calcite/{p-5da7d372.js → p-f6d1cd99.js} +1 -1
  89. package/dist/calcite/{p-86b5b1b0.js → p-fe239890.js} +1 -1
  90. package/dist/calcite/{p-d74f5506.entry.js → p-fe4dbd3c.entry.js} +2 -2
  91. package/dist/calcite/{p-61bc5542.entry.js → p-fe5b18ea.entry.js} +2 -2
  92. package/dist/cjs/{ExpandToggle-9d88b485.js → ExpandToggle-f16cd4b7.js} +5 -5
  93. package/dist/cjs/{Heading-42c721fb.js → Heading-82b6415d.js} +2 -2
  94. package/dist/cjs/{app-globals-965b63b5.js → app-globals-6ed9583f.js} +2 -2
  95. package/dist/cjs/{array-daccf225.js → array-f182b3fd.js} +1 -1
  96. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  97. package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
  98. package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
  99. package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
  100. package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
  101. package/dist/cjs/calcite-action.cjs.entry.js +7 -7
  102. package/dist/cjs/calcite-alert.cjs.entry.js +10 -10
  103. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  104. package/dist/cjs/calcite-block_2.cjs.entry.js +10 -10
  105. package/dist/cjs/calcite-button.cjs.entry.js +9 -9
  106. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  107. package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
  108. package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
  109. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +10 -10
  110. package/dist/cjs/calcite-combobox_3.cjs.entry.js +15 -15
  111. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +26 -22
  112. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +13 -13
  113. package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
  114. package/dist/cjs/calcite-filter.cjs.entry.js +8 -8
  115. package/dist/cjs/calcite-flow-item.cjs.entry.js +7 -7
  116. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  117. package/dist/cjs/calcite-graph_2.cjs.entry.js +12 -12
  118. package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
  119. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  120. package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
  121. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +203 -193
  122. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  123. package/dist/cjs/calcite-input-number.cjs.entry.js +12 -12
  124. package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
  125. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +11 -11
  126. package/dist/cjs/calcite-input.cjs.entry.js +12 -12
  127. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  128. package/dist/cjs/calcite-link.cjs.entry.js +6 -6
  129. package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
  130. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  131. package/dist/cjs/calcite-modal.cjs.entry.js +8 -8
  132. package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
  133. package/dist/cjs/calcite-option_3.cjs.entry.js +9 -9
  134. package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
  135. package/dist/cjs/calcite-panel.cjs.entry.js +10 -10
  136. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -12
  137. package/dist/cjs/calcite-popover_2.cjs.entry.js +12 -12
  138. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  139. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  140. package/dist/cjs/calcite-radio-button.cjs.entry.js +9 -9
  141. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -8
  142. package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
  143. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  144. package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
  145. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  146. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  147. package/dist/cjs/calcite-stepper_2.cjs.entry.js +9 -9
  148. package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
  149. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  150. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
  151. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  152. package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
  153. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +8 -8
  154. package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
  155. package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -12
  156. package/dist/cjs/calcite.cjs.js +5 -5
  157. package/dist/cjs/{conditionalSlot-e9b39791.js → conditionalSlot-0ced7734.js} +3 -3
  158. package/dist/cjs/{debounce-900b4165.js → debounce-5c435160.js} +1 -1
  159. package/dist/cjs/{dom-050ed51d.js → dom-e3186c45.js} +3 -3
  160. package/dist/cjs/{filter-b7155c42.js → filter-946e1302.js} +2 -2
  161. package/dist/cjs/{floating-ui-cdd2427c.js → floating-ui-b245626d.js} +9 -5
  162. package/dist/cjs/{form-354faea8.js → form-160bf02c.js} +3 -3
  163. package/dist/cjs/{guid-e831a5e2.js → guid-90da9b56.js} +1 -1
  164. package/dist/cjs/{index-4ba2845b.js → index-bc274dac.js} +1 -1
  165. package/dist/cjs/index.cjs.js +1 -1
  166. package/dist/cjs/{interactive-962a14b0.js → interactive-6cebed8c.js} +1 -1
  167. package/dist/cjs/{interfaces-100c4ce3.js → interfaces-c6aa72d3.js} +1 -1
  168. package/dist/cjs/{key-040ca8df.js → key-03e7267c.js} +1 -1
  169. package/dist/cjs/{label-13427cfa.js → label-b9178040.js} +2 -2
  170. package/dist/cjs/loader.cjs.js +5 -5
  171. package/dist/cjs/{locale-75425b71.js → locale-76eeee32.js} +4 -4
  172. package/dist/cjs/{math-3c3a14bf.js → math-235c3c91.js} +1 -1
  173. package/dist/cjs/{nonChromiumPlatformUtils-d75b3668.js → nonChromiumPlatformUtils-027dfe64.js} +6 -6
  174. package/dist/cjs/{observers-af1bb8d7.js → observers-0a828123.js} +1 -1
  175. package/dist/cjs/{openCloseComponent-490cec2b.js → openCloseComponent-42118698.js} +1 -1
  176. package/dist/cjs/{resources-2628eeec.js → resources-0207cea8.js} +5 -5
  177. package/dist/cjs/{resources-a9cf54f2.js → resources-0b85abbe.js} +1 -1
  178. package/dist/cjs/{resources-91b73336.js → resources-b31191c7.js} +1 -1
  179. package/dist/cjs/{resources-4844a48d.js → resources-bd82b284.js} +55 -12
  180. package/dist/cjs/{resources-d2ceea67.js → resources-f2fa9481.js} +1 -1
  181. package/dist/cjs/{resources-00608607.js → resources-f409124d.js} +1 -1
  182. package/dist/cjs/{sortable.esm-acb58ff7.js → sortable.esm-6af0b4c7.js} +1 -1
  183. package/dist/cjs/{utils-662f5bd1.js → utils-2c07bcf4.js} +1 -1
  184. package/dist/collection/components/accordion/accordion.js +1 -1
  185. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  186. package/dist/collection/components/accordion-item/resources.js +1 -1
  187. package/dist/collection/components/action/action.js +1 -1
  188. package/dist/collection/components/action/resources.js +1 -1
  189. package/dist/collection/components/action-bar/action-bar.js +1 -1
  190. package/dist/collection/components/action-bar/resources.js +1 -1
  191. package/dist/collection/components/action-bar/utils.js +1 -1
  192. package/dist/collection/components/action-group/action-group.js +1 -1
  193. package/dist/collection/components/action-group/resources.js +1 -1
  194. package/dist/collection/components/action-menu/action-menu.js +1 -1
  195. package/dist/collection/components/action-menu/resources.js +1 -1
  196. package/dist/collection/components/action-pad/action-pad.js +1 -1
  197. package/dist/collection/components/action-pad/resources.js +1 -1
  198. package/dist/collection/components/alert/alert.js +1 -1
  199. package/dist/collection/components/alert/interfaces.js +1 -1
  200. package/dist/collection/components/alert/resources.js +1 -1
  201. package/dist/collection/components/avatar/avatar.js +1 -1
  202. package/dist/collection/components/avatar/utils.js +1 -1
  203. package/dist/collection/components/block/block.js +1 -1
  204. package/dist/collection/components/block/resources.js +1 -1
  205. package/dist/collection/components/block-section/block-section.js +1 -1
  206. package/dist/collection/components/block-section/resources.js +1 -1
  207. package/dist/collection/components/button/button.js +1 -1
  208. package/dist/collection/components/button/resources.js +1 -1
  209. package/dist/collection/components/card/card.js +1 -1
  210. package/dist/collection/components/card/resources.js +1 -1
  211. package/dist/collection/components/checkbox/checkbox.js +1 -1
  212. package/dist/collection/components/chip/chip.js +1 -1
  213. package/dist/collection/components/chip/resources.js +1 -1
  214. package/dist/collection/components/color-picker/color-picker.js +1 -1
  215. package/dist/collection/components/color-picker/resources.js +1 -1
  216. package/dist/collection/components/color-picker/utils.js +1 -1
  217. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  218. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  219. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  220. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  221. package/dist/collection/components/combobox/combobox.css +0 -4
  222. package/dist/collection/components/combobox/combobox.js +1 -1
  223. package/dist/collection/components/combobox/resources.js +1 -1
  224. package/dist/collection/components/combobox/utils.js +1 -1
  225. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  226. package/dist/collection/components/combobox-item/resources.js +1 -1
  227. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  228. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  229. package/dist/collection/components/date-picker/date-picker.js +37 -13
  230. package/dist/collection/components/date-picker/resources.js +1 -1
  231. package/dist/collection/components/date-picker/utils.js +1 -1
  232. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  233. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  234. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  235. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  236. package/dist/collection/components/dropdown/dropdown.css +0 -4
  237. package/dist/collection/components/dropdown/dropdown.js +2 -2
  238. package/dist/collection/components/dropdown/resources.js +1 -1
  239. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  240. package/dist/collection/components/dropdown-group/resources.js +1 -1
  241. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  242. package/dist/collection/components/dropdown-item/resources.js +1 -1
  243. package/dist/collection/components/fab/fab.js +1 -1
  244. package/dist/collection/components/fab/resources.js +1 -1
  245. package/dist/collection/components/filter/filter.js +1 -1
  246. package/dist/collection/components/filter/resources.js +1 -1
  247. package/dist/collection/components/flow/flow.js +1 -1
  248. package/dist/collection/components/flow/resources.js +1 -1
  249. package/dist/collection/components/flow-item/flow-item.js +1 -1
  250. package/dist/collection/components/flow-item/resources.js +1 -1
  251. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  252. package/dist/collection/components/functional/Heading.js +1 -1
  253. package/dist/collection/components/graph/graph.js +1 -1
  254. package/dist/collection/components/graph/util.js +1 -1
  255. package/dist/collection/components/handle/handle.js +1 -1
  256. package/dist/collection/components/handle/resources.js +1 -1
  257. package/dist/collection/components/icon/icon.js +1 -1
  258. package/dist/collection/components/icon/resources.js +1 -1
  259. package/dist/collection/components/icon/utils.js +1 -1
  260. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  261. package/dist/collection/components/inline-editable/resources.js +1 -1
  262. package/dist/collection/components/input/input.js +1 -1
  263. package/dist/collection/components/input/resources.js +1 -1
  264. package/dist/collection/components/input-date-picker/input-date-picker.css +0 -6
  265. package/dist/collection/components/input-date-picker/input-date-picker.js +195 -193
  266. package/dist/collection/components/input-date-picker/resources.js +1 -1
  267. package/dist/collection/components/input-message/input-message.js +1 -1
  268. package/dist/collection/components/input-message/interfaces.js +1 -1
  269. package/dist/collection/components/input-number/input-number.js +1 -1
  270. package/dist/collection/components/input-number/resources.js +1 -1
  271. package/dist/collection/components/input-text/input-text.js +1 -1
  272. package/dist/collection/components/input-text/resources.js +1 -1
  273. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  274. package/dist/collection/components/label/label.js +1 -1
  275. package/dist/collection/components/label/resources.js +1 -1
  276. package/dist/collection/components/link/link.js +1 -1
  277. package/dist/collection/components/list/list.js +1 -1
  278. package/dist/collection/components/list/resources.js +1 -1
  279. package/dist/collection/components/list-item/list-item.js +1 -1
  280. package/dist/collection/components/list-item/resources.js +1 -1
  281. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  282. package/dist/collection/components/list-item-group/resources.js +1 -1
  283. package/dist/collection/components/loader/loader.js +1 -1
  284. package/dist/collection/components/modal/modal.js +1 -1
  285. package/dist/collection/components/modal/resources.js +1 -1
  286. package/dist/collection/components/notice/notice.js +1 -1
  287. package/dist/collection/components/notice/resources.js +1 -1
  288. package/dist/collection/components/option/option.js +1 -1
  289. package/dist/collection/components/option-group/option-group.js +1 -1
  290. package/dist/collection/components/pagination/pagination.js +1 -1
  291. package/dist/collection/components/pagination/resources.js +1 -1
  292. package/dist/collection/components/panel/panel.js +1 -1
  293. package/dist/collection/components/panel/resources.js +1 -1
  294. package/dist/collection/components/pick-list/pick-list.js +1 -1
  295. package/dist/collection/components/pick-list/resources.js +1 -1
  296. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  297. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  298. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  299. package/dist/collection/components/pick-list-group/resources.js +1 -1
  300. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  301. package/dist/collection/components/pick-list-item/resources.js +1 -1
  302. package/dist/collection/components/popover/PopoverManager.js +1 -1
  303. package/dist/collection/components/popover/popover.css +5 -3
  304. package/dist/collection/components/popover/popover.js +1 -1
  305. package/dist/collection/components/popover/resources.js +1 -1
  306. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  307. package/dist/collection/components/progress/progress.js +1 -1
  308. package/dist/collection/components/radio-button/radio-button.js +1 -1
  309. package/dist/collection/components/radio-button/resources.js +1 -1
  310. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  311. package/dist/collection/components/radio-group/radio-group.js +1 -1
  312. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  313. package/dist/collection/components/radio-group-item/resources.js +1 -1
  314. package/dist/collection/components/rating/rating.js +1 -1
  315. package/dist/collection/components/rating/resources.js +1 -1
  316. package/dist/collection/components/scrim/resources.js +1 -1
  317. package/dist/collection/components/scrim/scrim.js +1 -1
  318. package/dist/collection/components/select/resources.js +1 -1
  319. package/dist/collection/components/select/select.js +1 -1
  320. package/dist/collection/components/shell/resources.js +1 -1
  321. package/dist/collection/components/shell/shell.js +1 -1
  322. package/dist/collection/components/shell-center-row/resources.js +1 -1
  323. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  324. package/dist/collection/components/shell-panel/resources.js +1 -1
  325. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  326. package/dist/collection/components/slider/resources.js +1 -1
  327. package/dist/collection/components/slider/slider.js +1 -1
  328. package/dist/collection/components/sortable-list/resources.js +1 -1
  329. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  330. package/dist/collection/components/split-button/resources.js +1 -1
  331. package/dist/collection/components/split-button/split-button.js +1 -1
  332. package/dist/collection/components/stepper/stepper.js +1 -1
  333. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  334. package/dist/collection/components/switch/switch.js +1 -1
  335. package/dist/collection/components/tab/tab.js +1 -1
  336. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  337. package/dist/collection/components/tab-title/tab-title.js +1 -1
  338. package/dist/collection/components/tabs/resources.js +1 -1
  339. package/dist/collection/components/tabs/tabs.js +1 -1
  340. package/dist/collection/components/tile/resources.js +1 -1
  341. package/dist/collection/components/tile/tile.js +1 -1
  342. package/dist/collection/components/tile-select/resources.js +1 -1
  343. package/dist/collection/components/tile-select/tile-select.js +1 -1
  344. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  345. package/dist/collection/components/time-picker/resources.js +1 -1
  346. package/dist/collection/components/time-picker/time-picker.js +1 -1
  347. package/dist/collection/components/tip/resources.js +1 -1
  348. package/dist/collection/components/tip/tip.js +1 -1
  349. package/dist/collection/components/tip-group/tip-group.js +1 -1
  350. package/dist/collection/components/tip-manager/resources.js +1 -1
  351. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  352. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  353. package/dist/collection/components/tooltip/resources.js +1 -1
  354. package/dist/collection/components/tooltip/tooltip.css +5 -3
  355. package/dist/collection/components/tooltip/tooltip.js +1 -1
  356. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  357. package/dist/collection/components/tree/interfaces.js +1 -1
  358. package/dist/collection/components/tree/tree.js +1 -1
  359. package/dist/collection/components/tree/utils.js +1 -1
  360. package/dist/collection/components/tree-item/resources.js +1 -1
  361. package/dist/collection/components/tree-item/tree-item.js +1 -1
  362. package/dist/collection/components/value-list/resources.js +1 -1
  363. package/dist/collection/components/value-list/utils.js +1 -1
  364. package/dist/collection/components/value-list/value-list.js +1 -1
  365. package/dist/collection/components/value-list-item/resources.js +1 -1
  366. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  367. package/dist/collection/utils/array.js +1 -1
  368. package/dist/collection/utils/conditionalSlot.js +1 -1
  369. package/dist/collection/utils/config.js +1 -1
  370. package/dist/collection/utils/date.js +51 -9
  371. package/dist/collection/utils/dom.js +1 -1
  372. package/dist/collection/utils/filter.js +1 -1
  373. package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
  374. package/dist/collection/utils/floating-ui.js +6 -2
  375. package/dist/collection/utils/form.js +1 -1
  376. package/dist/collection/utils/globalAttributes.js +1 -1
  377. package/dist/collection/utils/globalScript.js +1 -1
  378. package/dist/collection/utils/guid.js +1 -1
  379. package/dist/collection/utils/interactive.js +1 -1
  380. package/dist/collection/utils/key.js +1 -1
  381. package/dist/collection/utils/label.js +1 -1
  382. package/dist/collection/utils/locale.js +1 -1
  383. package/dist/collection/utils/math.js +1 -1
  384. package/dist/collection/utils/number.js +1 -1
  385. package/dist/collection/utils/observers.js +1 -1
  386. package/dist/collection/utils/openCloseComponent.js +1 -1
  387. package/dist/collection/utils/resources.js +1 -1
  388. package/dist/collection/utils/t9n.js +1 -1
  389. package/dist/collection/utils/theme.js +1 -1
  390. package/dist/collection/utils/time.js +1 -1
  391. package/dist/components/ExpandToggle.js +1 -1
  392. package/dist/components/Heading.js +1 -1
  393. package/dist/components/action-group.js +1 -1
  394. package/dist/components/action-menu.js +1 -1
  395. package/dist/components/action.js +1 -1
  396. package/dist/components/array.js +1 -1
  397. package/dist/components/button.js +1 -1
  398. package/dist/components/calcite-accordion-item.js +1 -1
  399. package/dist/components/calcite-accordion.js +1 -1
  400. package/dist/components/calcite-action-bar.js +1 -1
  401. package/dist/components/calcite-action-group.js +1 -1
  402. package/dist/components/calcite-action-menu.js +1 -1
  403. package/dist/components/calcite-action-pad.js +1 -1
  404. package/dist/components/calcite-action.js +1 -1
  405. package/dist/components/calcite-alert.js +1 -1
  406. package/dist/components/calcite-avatar.js +1 -1
  407. package/dist/components/calcite-block-section.js +1 -1
  408. package/dist/components/calcite-block.js +1 -1
  409. package/dist/components/calcite-button.js +1 -1
  410. package/dist/components/calcite-card.js +1 -1
  411. package/dist/components/calcite-checkbox.js +1 -1
  412. package/dist/components/calcite-chip.js +1 -1
  413. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  414. package/dist/components/calcite-color-picker-swatch.js +1 -1
  415. package/dist/components/calcite-color-picker.js +1 -1
  416. package/dist/components/calcite-combobox-item-group.js +1 -1
  417. package/dist/components/calcite-combobox-item.js +1 -1
  418. package/dist/components/calcite-combobox.js +2 -2
  419. package/dist/components/calcite-date-picker-day.js +1 -1
  420. package/dist/components/calcite-date-picker-month-header.js +1 -1
  421. package/dist/components/calcite-date-picker-month.js +1 -1
  422. package/dist/components/calcite-date-picker.js +1 -1
  423. package/dist/components/calcite-dropdown-group.js +1 -1
  424. package/dist/components/calcite-dropdown-item.js +1 -1
  425. package/dist/components/calcite-dropdown.js +1 -1
  426. package/dist/components/calcite-fab.js +1 -1
  427. package/dist/components/calcite-filter.js +1 -1
  428. package/dist/components/calcite-flow-item.js +1 -1
  429. package/dist/components/calcite-flow.js +1 -1
  430. package/dist/components/calcite-graph.js +1 -1
  431. package/dist/components/calcite-handle.js +1 -1
  432. package/dist/components/calcite-icon.js +1 -1
  433. package/dist/components/calcite-inline-editable.js +1 -1
  434. package/dist/components/calcite-input-date-picker.js +192 -181
  435. package/dist/components/calcite-input-message.js +1 -1
  436. package/dist/components/calcite-input-number.js +1 -1
  437. package/dist/components/calcite-input-text.js +1 -1
  438. package/dist/components/calcite-input-time-picker.js +1 -1
  439. package/dist/components/calcite-input.js +1 -1
  440. package/dist/components/calcite-label.js +1 -1
  441. package/dist/components/calcite-link.js +1 -1
  442. package/dist/components/calcite-list-item-group.js +1 -1
  443. package/dist/components/calcite-list-item.js +1 -1
  444. package/dist/components/calcite-list.js +1 -1
  445. package/dist/components/calcite-loader.js +1 -1
  446. package/dist/components/calcite-modal.js +1 -1
  447. package/dist/components/calcite-notice.js +1 -1
  448. package/dist/components/calcite-option-group.js +1 -1
  449. package/dist/components/calcite-option.js +1 -1
  450. package/dist/components/calcite-pagination.js +1 -1
  451. package/dist/components/calcite-panel.js +1 -1
  452. package/dist/components/calcite-pick-list-group.js +1 -1
  453. package/dist/components/calcite-pick-list-item.js +1 -1
  454. package/dist/components/calcite-pick-list.js +1 -1
  455. package/dist/components/calcite-popover-manager.js +1 -1
  456. package/dist/components/calcite-popover.js +1 -1
  457. package/dist/components/calcite-progress.js +1 -1
  458. package/dist/components/calcite-radio-button-group.js +1 -1
  459. package/dist/components/calcite-radio-button.js +1 -1
  460. package/dist/components/calcite-radio-group-item.js +1 -1
  461. package/dist/components/calcite-radio-group.js +1 -1
  462. package/dist/components/calcite-rating.js +1 -1
  463. package/dist/components/calcite-scrim.js +1 -1
  464. package/dist/components/calcite-select.js +1 -1
  465. package/dist/components/calcite-shell-center-row.js +1 -1
  466. package/dist/components/calcite-shell-panel.js +1 -1
  467. package/dist/components/calcite-shell.js +1 -1
  468. package/dist/components/calcite-slider.js +1 -1
  469. package/dist/components/calcite-sortable-list.js +1 -1
  470. package/dist/components/calcite-split-button.js +1 -1
  471. package/dist/components/calcite-stepper-item.js +1 -1
  472. package/dist/components/calcite-stepper.js +1 -1
  473. package/dist/components/calcite-switch.js +1 -1
  474. package/dist/components/calcite-tab-nav.js +1 -1
  475. package/dist/components/calcite-tab-title.js +1 -1
  476. package/dist/components/calcite-tab.js +1 -1
  477. package/dist/components/calcite-tabs.js +1 -1
  478. package/dist/components/calcite-tile-select-group.js +1 -1
  479. package/dist/components/calcite-tile-select.js +1 -1
  480. package/dist/components/calcite-tile.js +1 -1
  481. package/dist/components/calcite-time-picker.js +1 -1
  482. package/dist/components/calcite-tip-group.js +1 -1
  483. package/dist/components/calcite-tip-manager.js +1 -1
  484. package/dist/components/calcite-tip.js +1 -1
  485. package/dist/components/calcite-tooltip-manager.js +1 -1
  486. package/dist/components/calcite-tooltip.js +1 -1
  487. package/dist/components/calcite-tree-item.js +1 -1
  488. package/dist/components/calcite-tree.js +1 -1
  489. package/dist/components/calcite-value-list-item.js +1 -1
  490. package/dist/components/calcite-value-list.js +1 -1
  491. package/dist/components/checkbox.js +1 -1
  492. package/dist/components/chip.js +1 -1
  493. package/dist/components/color-picker-hex-input.js +1 -1
  494. package/dist/components/color-picker-swatch.js +1 -1
  495. package/dist/components/conditionalSlot.js +1 -1
  496. package/dist/components/date-picker-day.js +1 -1
  497. package/dist/components/date-picker-month-header.js +2 -2
  498. package/dist/components/date-picker-month.js +2 -2
  499. package/dist/components/date-picker.js +18 -14
  500. package/dist/components/date.js +52 -10
  501. package/dist/components/debounce.js +1 -1
  502. package/dist/components/dom.js +1 -1
  503. package/dist/components/dropdown.js +3 -3
  504. package/dist/components/filter.js +1 -1
  505. package/dist/components/filter2.js +1 -1
  506. package/dist/components/floating-ui.js +6 -2
  507. package/dist/components/form.js +1 -1
  508. package/dist/components/graph.js +1 -1
  509. package/dist/components/guid.js +1 -1
  510. package/dist/components/handle.js +1 -1
  511. package/dist/components/icon.js +1 -1
  512. package/dist/components/index.js +1 -1
  513. package/dist/components/input.js +1 -1
  514. package/dist/components/interactive.js +1 -1
  515. package/dist/components/interfaces.js +1 -1
  516. package/dist/components/interfaces2.js +1 -1
  517. package/dist/components/key.js +1 -1
  518. package/dist/components/label.js +1 -1
  519. package/dist/components/label2.js +1 -1
  520. package/dist/components/link.js +1 -1
  521. package/dist/components/loader.js +1 -1
  522. package/dist/components/locale.js +1 -1
  523. package/dist/components/math.js +1 -1
  524. package/dist/components/nonChromiumPlatformUtils.js +1 -1
  525. package/dist/components/observers.js +1 -1
  526. package/dist/components/openCloseComponent.js +1 -1
  527. package/dist/components/panel.js +1 -1
  528. package/dist/components/pick-list-item.js +1 -1
  529. package/dist/components/popover.js +2 -2
  530. package/dist/components/progress.js +1 -1
  531. package/dist/components/resources.js +1 -1
  532. package/dist/components/resources2.js +1 -1
  533. package/dist/components/resources3.js +1 -1
  534. package/dist/components/scrim.js +1 -1
  535. package/dist/components/shared-list-render.js +1 -1
  536. package/dist/components/sortable.esm.js +1 -1
  537. package/dist/components/switch.js +1 -1
  538. package/dist/components/tab-nav.js +1 -1
  539. package/dist/components/tab-title.js +1 -1
  540. package/dist/components/tab.js +1 -1
  541. package/dist/components/tabs.js +1 -1
  542. package/dist/components/tile.js +1 -1
  543. package/dist/components/time-picker.js +1 -1
  544. package/dist/components/tooltip.js +2 -2
  545. package/dist/components/utils.js +1 -1
  546. package/dist/components/utils2.js +1 -1
  547. package/dist/esm/{ExpandToggle-4253f384.js → ExpandToggle-cc2a15dd.js} +5 -5
  548. package/dist/esm/{Heading-d7b8f08a.js → Heading-22d5338d.js} +2 -2
  549. package/dist/esm/{app-globals-903b988b.js → app-globals-3737de60.js} +2 -2
  550. package/dist/esm/{array-14b21cd6.js → array-6b26472f.js} +1 -1
  551. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  552. package/dist/esm/calcite-action-bar.entry.js +11 -11
  553. package/dist/esm/calcite-action-group.entry.js +9 -9
  554. package/dist/esm/calcite-action-menu.entry.js +8 -8
  555. package/dist/esm/calcite-action-pad.entry.js +10 -10
  556. package/dist/esm/calcite-action.entry.js +7 -7
  557. package/dist/esm/calcite-alert.entry.js +10 -10
  558. package/dist/esm/calcite-avatar.entry.js +6 -6
  559. package/dist/esm/calcite-block_2.entry.js +10 -10
  560. package/dist/esm/calcite-button.entry.js +9 -9
  561. package/dist/esm/calcite-card.entry.js +7 -7
  562. package/dist/esm/calcite-checkbox.entry.js +9 -9
  563. package/dist/esm/calcite-chip.entry.js +7 -7
  564. package/dist/esm/calcite-color-picker_3.entry.js +10 -10
  565. package/dist/esm/calcite-combobox_3.entry.js +15 -15
  566. package/dist/esm/calcite-date-picker_4.entry.js +26 -22
  567. package/dist/esm/calcite-dropdown_3.entry.js +13 -13
  568. package/dist/esm/calcite-fab.entry.js +6 -6
  569. package/dist/esm/calcite-filter.entry.js +8 -8
  570. package/dist/esm/calcite-flow-item.entry.js +7 -7
  571. package/dist/esm/calcite-flow.entry.js +3 -3
  572. package/dist/esm/calcite-graph_2.entry.js +12 -12
  573. package/dist/esm/calcite-handle.entry.js +5 -5
  574. package/dist/esm/calcite-icon.entry.js +6 -6
  575. package/dist/esm/calcite-inline-editable.entry.js +8 -8
  576. package/dist/esm/calcite-input-date-picker.entry.js +203 -193
  577. package/dist/esm/calcite-input-message.entry.js +5 -5
  578. package/dist/esm/calcite-input-number.entry.js +12 -12
  579. package/dist/esm/calcite-input-text.entry.js +9 -9
  580. package/dist/esm/calcite-input-time-picker_2.entry.js +11 -11
  581. package/dist/esm/calcite-input.entry.js +12 -12
  582. package/dist/esm/calcite-label.entry.js +6 -6
  583. package/dist/esm/calcite-link.entry.js +6 -6
  584. package/dist/esm/calcite-list_3.entry.js +9 -9
  585. package/dist/esm/calcite-loader.entry.js +3 -3
  586. package/dist/esm/calcite-modal.entry.js +8 -8
  587. package/dist/esm/calcite-notice.entry.js +8 -8
  588. package/dist/esm/calcite-option_3.entry.js +9 -9
  589. package/dist/esm/calcite-pagination.entry.js +8 -8
  590. package/dist/esm/calcite-panel.entry.js +10 -10
  591. package/dist/esm/calcite-pick-list_3.entry.js +12 -12
  592. package/dist/esm/calcite-popover_2.entry.js +12 -12
  593. package/dist/esm/calcite-progress.entry.js +2 -2
  594. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  595. package/dist/esm/calcite-radio-button.entry.js +9 -9
  596. package/dist/esm/calcite-radio-group_2.entry.js +8 -8
  597. package/dist/esm/calcite-rating.entry.js +9 -9
  598. package/dist/esm/calcite-scrim.entry.js +2 -2
  599. package/dist/esm/calcite-shell_3.entry.js +8 -8
  600. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  601. package/dist/esm/calcite-split-button.entry.js +3 -3
  602. package/dist/esm/calcite-stepper_2.entry.js +9 -9
  603. package/dist/esm/calcite-switch.entry.js +9 -9
  604. package/dist/esm/calcite-tab_4.entry.js +7 -7
  605. package/dist/esm/calcite-tile-select_2.entry.js +4 -4
  606. package/dist/esm/calcite-tile.entry.js +8 -8
  607. package/dist/esm/calcite-tip_3.entry.js +8 -8
  608. package/dist/esm/calcite-tooltip_2.entry.js +8 -8
  609. package/dist/esm/calcite-tree_2.entry.js +8 -8
  610. package/dist/esm/calcite-value-list_2.entry.js +12 -12
  611. package/dist/esm/calcite.js +5 -5
  612. package/dist/esm/{conditionalSlot-c72274bb.js → conditionalSlot-236ac8c6.js} +3 -3
  613. package/dist/esm/{debounce-c9f6d406.js → debounce-7c99e653.js} +1 -1
  614. package/dist/esm/{dom-1e4deb7f.js → dom-7b1a9388.js} +3 -3
  615. package/dist/esm/{filter-8cb43127.js → filter-77ad1cab.js} +2 -2
  616. package/dist/esm/{floating-ui-9297004b.js → floating-ui-32b46ef9.js} +9 -5
  617. package/dist/esm/{form-8128fc79.js → form-857f1ff0.js} +3 -3
  618. package/dist/esm/{guid-e67a0403.js → guid-8c313d9d.js} +1 -1
  619. package/dist/esm/{index-3d98d82f.js → index-c7811f4e.js} +1 -1
  620. package/dist/esm/index.js +1 -1
  621. package/dist/esm/{interactive-280bdade.js → interactive-4239c942.js} +1 -1
  622. package/dist/esm/{interfaces-38455864.js → interfaces-c5e65cb0.js} +1 -1
  623. package/dist/esm/{key-fcfa1157.js → key-a47cc528.js} +1 -1
  624. package/dist/esm/{label-be9adac1.js → label-da4b7005.js} +2 -2
  625. package/dist/esm/loader.js +5 -5
  626. package/dist/esm/{locale-c9f01571.js → locale-011a1885.js} +4 -4
  627. package/dist/esm/{math-3a02723b.js → math-4258b418.js} +1 -1
  628. package/dist/esm/{nonChromiumPlatformUtils-276b149b.js → nonChromiumPlatformUtils-bd116351.js} +6 -6
  629. package/dist/esm/{observers-1537e191.js → observers-6ff46f9d.js} +1 -1
  630. package/dist/esm/{openCloseComponent-ebaa346a.js → openCloseComponent-42df2fc7.js} +1 -1
  631. package/dist/esm/{resources-accfd5fd.js → resources-556743be.js} +5 -5
  632. package/dist/esm/{resources-14ef9ddd.js → resources-87e42b61.js} +54 -12
  633. package/dist/esm/{resources-d1e80acf.js → resources-94c6c8b9.js} +1 -1
  634. package/dist/esm/{resources-41d8eaae.js → resources-ad95d26e.js} +1 -1
  635. package/dist/esm/{resources-d0be46e0.js → resources-c7125d11.js} +1 -1
  636. package/dist/esm/{resources-f99889eb.js → resources-f8ab3aeb.js} +1 -1
  637. package/dist/esm/{sortable.esm-c828508b.js → sortable.esm-337860b2.js} +1 -1
  638. package/dist/esm/{utils-e6154388.js → utils-c8ff0f30.js} +1 -1
  639. package/dist/loader/cdn.js +1 -1
  640. package/dist/loader/index.cjs.js +1 -1
  641. package/dist/loader/index.es2017.js +1 -1
  642. package/dist/loader/index.js +1 -1
  643. package/dist/types/components/date-picker/date-picker.d.ts +3 -5
  644. package/dist/types/components/input-date-picker/input-date-picker.d.ts +14 -28
  645. package/dist/types/components.d.ts +10 -2
  646. package/dist/types/utils/date.d.ts +22 -2
  647. package/hydrate/index.js +267 -206
  648. package/package.json +1 -1
  649. package/dist/calcite/p-1ae67147.js +0 -6
  650. package/dist/calcite/p-1ddbe023.js +0 -6
  651. package/dist/calcite/p-2ca34505.js +0 -6
  652. package/dist/calcite/p-38b7151e.entry.js +0 -6
  653. package/dist/calcite/p-51aea0bf.entry.js +0 -6
  654. package/dist/calcite/p-7fb0ca65.entry.js +0 -6
  655. package/dist/calcite/p-b2aed582.entry.js +0 -6
  656. package/dist/calcite/p-f51a4508.js +0 -6
@@ -1,29 +1,29 @@
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.620
4
+ * v1.0.0-next.622
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-3d98d82f.js';
7
- import { T as TEXT, d as dateToISO, g as getValueAsDateRange, a as dateFromISO, s as setEndOfDay, b as dateFromRange, c as getLocaleData, e as sameDate, p as parseDateString, i as inRange } from './resources-14ef9ddd.js';
8
- import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-be9adac1.js';
9
- import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-8128fc79.js';
10
- import { d as defaultMenuPlacement, f as filterComputedPlacements, c as connectFloatingUI, u as updateAfterClose, r as reposition, a as disconnectFloatingUI, F as FloatingCSS } from './floating-ui-9297004b.js';
11
- import { u as updateHostInteraction } from './interactive-280bdade.js';
12
- import { t as toAriaBoolean } from './dom-1e4deb7f.js';
13
- import { c as connectOpenCloseComponent, d as disconnectOpenCloseComponent } from './openCloseComponent-ebaa346a.js';
14
- import { n as numberStringFormatter, c as connectLocalized, d as disconnectLocalized } from './locale-c9f01571.js';
15
- import { n as numberKeys } from './key-fcfa1157.js';
16
- import './debounce-c9f6d406.js';
17
- import './resources-d0be46e0.js';
18
- import './guid-e67a0403.js';
19
- import './observers-1537e191.js';
6
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c7811f4e.js';
7
+ import { T as TEXT, d as datePartsFromLocalizedString, a as dateFromLocalizedString, i as inRange, b as dateToISO, g as getValueAsDateRange, s as setEndOfDay, c as dateFromISO, e as getLocaleData, f as dateFromRange } from './resources-87e42b61.js';
8
+ import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-da4b7005.js';
9
+ import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-857f1ff0.js';
10
+ import { d as defaultMenuPlacement, f as filterComputedPlacements, c as connectFloatingUI, u as updateAfterClose, r as reposition, a as disconnectFloatingUI, F as FloatingCSS } from './floating-ui-32b46ef9.js';
11
+ import { u as updateHostInteraction } from './interactive-4239c942.js';
12
+ import { t as toAriaBoolean } from './dom-7b1a9388.js';
13
+ import { c as connectOpenCloseComponent, d as disconnectOpenCloseComponent } from './openCloseComponent-42df2fc7.js';
14
+ import { n as numberStringFormatter, c as connectLocalized, d as disconnectLocalized } from './locale-011a1885.js';
15
+ import { n as numberKeys } from './key-a47cc528.js';
16
+ import './debounce-7c99e653.js';
17
+ import './resources-c7125d11.js';
18
+ import './guid-8c313d9d.js';
19
+ import './observers-6ff46f9d.js';
20
20
 
21
21
  const CSS = {
22
22
  menu: "menu-container",
23
23
  menuActive: "menu-container--active"
24
24
  };
25
25
 
26
- const inputDatePickerCss = "@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{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}: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{position:relative;display:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--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 .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;transform:translate(0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;inline-size:100%;--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);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:flex}:host([range]) .input-wrapper{flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:flex;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}:host([range][layout=vertical]) .input-wrapper{inline-size:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{inset-block-start:1.5rem;position:absolute;z-index:1;margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem;inset-inline-start:0}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:398px}.menu-container{display:block;position:absolute;z-index:900;inline-size:0;block-size:0;overflow:hidden;pointer-events:none;visibility:hidden}.menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;transform:translate(0)}:host([open]) .menu-container{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}.menu-container--active{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}.input .calcite-input__wrapper{margin-block-start:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{inset-block-start:1.5rem;padding-inline-start:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{inset-block-start:2.25rem;padding-inline:0.875rem}:host([range][layout=vertical][open]) .vertical-arrow-container{display:none}::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}";
26
+ const inputDatePickerCss = "@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{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}: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{position:relative;display:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--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 .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;inline-size:100%;--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);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:flex}:host([range]) .input-wrapper{flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:flex;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}:host([range][layout=vertical]) .input-wrapper{inline-size:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{inset-block-start:1.5rem;position:absolute;z-index:1;margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem;inset-inline-start:0}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:398px}.menu-container{display:block;position:absolute;z-index:900;inline-size:0;block-size:0;overflow:hidden;pointer-events:none;visibility:hidden}.menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([open]) .menu-container{visibility:visible;inline-size:unset;block-size:unset;overflow:unset}.menu-container--active{visibility:visible;inline-size:unset;block-size:unset;overflow:unset}.input .calcite-input__wrapper{margin-block-start:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{inset-block-start:1.5rem;padding-inline-start:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{inset-block-start:2.25rem;padding-inline:0.875rem}:host([range][layout=vertical][open]) .vertical-arrow-container{display:none}::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}";
27
27
 
28
28
  const InputDatePicker = class {
29
29
  constructor(hostRef) {
@@ -50,6 +50,8 @@ const InputDatePicker = class {
50
50
  * @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
51
51
  */
52
52
  this.readOnly = false;
53
+ /** Selected date as a string in ISO format (YYYY-MM-DD) */
54
+ this.value = "";
53
55
  /**
54
56
  * When `true`, the component is active.
55
57
  *
@@ -108,9 +110,25 @@ const InputDatePicker = class {
108
110
  this.proximitySelectionDisabled = false;
109
111
  /** Defines the layout of the component. */
110
112
  this.layout = "horizontal";
113
+ this.calciteInternalInputInputHandler = (event) => {
114
+ const target = event.target;
115
+ const value = target.value;
116
+ const { year } = datePartsFromLocalizedString(value, this.localeData);
117
+ if (year && year.length < 4) {
118
+ return;
119
+ }
120
+ const date = dateFromLocalizedString(value, this.localeData);
121
+ if (inRange(date, this.min, this.max)) {
122
+ this.datePickerActiveDate = date;
123
+ }
124
+ };
125
+ this.calciteInternalInputBlurHandler = () => {
126
+ this.commitValue();
127
+ };
111
128
  this.effectiveLocale = "";
112
129
  this.focusedInput = "start";
113
130
  this.globalAttributes = {};
131
+ this.userChangedValue = false;
114
132
  this.openTransitionProp = "opacity";
115
133
  //--------------------------------------------------------------------------
116
134
  //
@@ -137,8 +155,16 @@ const InputDatePicker = class {
137
155
  this.open = false;
138
156
  };
139
157
  this.keyDownHandler = (event) => {
158
+ var _a, _b;
140
159
  const { defaultPrevented, key } = event;
141
160
  if (key === "Enter" && !defaultPrevented) {
161
+ this.commitValue();
162
+ if (this.shouldFocusRangeEnd()) {
163
+ (_a = this.endInput) === null || _a === void 0 ? void 0 : _a.setFocus();
164
+ }
165
+ else if (this.shouldFocusRangeStart()) {
166
+ (_b = this.startInput) === null || _b === void 0 ? void 0 : _b.setFocus();
167
+ }
142
168
  if (submitForm(this)) {
143
169
  event.preventDefault();
144
170
  }
@@ -149,9 +175,6 @@ const InputDatePicker = class {
149
175
  event.preventDefault();
150
176
  }
151
177
  };
152
- this.inputBlur = (event) => {
153
- this.blur(event.currentTarget);
154
- };
155
178
  this.startInputFocus = () => {
156
179
  if (!this.readOnly) {
157
180
  this.open = true;
@@ -164,18 +187,6 @@ const InputDatePicker = class {
164
187
  }
165
188
  this.focusedInput = "end";
166
189
  };
167
- this.startInputInput = () => {
168
- const parsedValue = this.parseNumerals(this.startInput.value);
169
- const formattedValue = this.formatNumerals(parsedValue);
170
- this.startInput.value = formattedValue;
171
- this.input(parsedValue);
172
- };
173
- this.endInputInput = () => {
174
- const parsedValue = this.parseNumerals(this.endInput.value);
175
- const formattedValue = this.formatNumerals(parsedValue);
176
- this.endInput.value = formattedValue;
177
- this.input(parsedValue);
178
- };
179
190
  this.setFloatingEl = (el) => {
180
191
  if (el) {
181
192
  this.floatingEl = el;
@@ -193,23 +204,25 @@ const InputDatePicker = class {
193
204
  /**
194
205
  * Event handler for when the selected date changes
195
206
  *
196
- * @param event
207
+ * @param event CalciteDatePicker custom change event
197
208
  */
198
209
  this.handleDateChange = (event) => {
199
210
  if (this.range) {
200
211
  return;
201
212
  }
202
- this.value = dateToISO(event.detail);
213
+ event.stopPropagation();
214
+ this.setValue(event.detail);
215
+ this.localizeInputValues();
203
216
  };
204
217
  this.handleDateRangeChange = (event) => {
205
218
  var _a, _b;
206
219
  if (!this.range || !event.detail) {
207
220
  return;
208
221
  }
222
+ event.stopPropagation();
209
223
  const { startDate, endDate } = event.detail;
210
- this.start = dateToISO(startDate);
211
- this.end = dateToISO(endDate);
212
- this.value = [this.start, this.end];
224
+ this.setRangeValue([startDate, endDate]);
225
+ this.localizeInputValues();
213
226
  if (this.shouldFocusRangeEnd()) {
214
227
  (_a = this.endInput) === null || _a === void 0 ? void 0 : _a.setFocus();
215
228
  }
@@ -217,6 +230,71 @@ const InputDatePicker = class {
217
230
  (_b = this.startInput) === null || _b === void 0 ? void 0 : _b.setFocus();
218
231
  }
219
232
  };
233
+ this.setInputValue = (newValue, input = "start") => {
234
+ const inputEl = this[`${input}Input`];
235
+ if (!inputEl) {
236
+ return;
237
+ }
238
+ inputEl.value = newValue;
239
+ };
240
+ this.setRangeValue = (value) => {
241
+ if (!this.range) {
242
+ return;
243
+ }
244
+ const { value: oldValue } = this;
245
+ const oldValueIsArray = Array.isArray(oldValue);
246
+ const valueIsArray = Array.isArray(value);
247
+ const newStartDate = valueIsArray ? value[0] : "";
248
+ const newStartDateISO = valueIsArray ? dateToISO(newStartDate) : "";
249
+ const newEndDate = valueIsArray ? value[1] : "";
250
+ const newEndDateISO = valueIsArray ? dateToISO(newEndDate) : "";
251
+ const newValue = newStartDateISO || newEndDateISO ? [newStartDateISO, newEndDateISO] : "";
252
+ if (newValue === oldValue) {
253
+ return;
254
+ }
255
+ this.userChangedValue = true;
256
+ this.value = newValue;
257
+ this.valueAsDate = newValue ? getValueAsDateRange(newValue) : undefined;
258
+ this.start = newStartDateISO;
259
+ this.end = newEndDateISO;
260
+ const eventDetail = {
261
+ startDate: newStartDate,
262
+ endDate: newEndDate ? setEndOfDay(newEndDate) : null
263
+ };
264
+ const changeEvent = this.calciteInputDatePickerChange.emit();
265
+ const rangeChangeEvent = this.calciteDatePickerRangeChange.emit(eventDetail);
266
+ if ((changeEvent && changeEvent.defaultPrevented) ||
267
+ (rangeChangeEvent && rangeChangeEvent.defaultPrevented)) {
268
+ this.value = oldValue;
269
+ if (oldValueIsArray) {
270
+ this.setInputValue(oldValue[0], "start");
271
+ this.setInputValue(oldValue[1], "end");
272
+ }
273
+ else {
274
+ this.value = oldValue;
275
+ this.setInputValue(oldValue);
276
+ }
277
+ }
278
+ };
279
+ this.setValue = (value) => {
280
+ if (this.range) {
281
+ return;
282
+ }
283
+ const oldValue = this.value;
284
+ const newValue = dateToISO(value);
285
+ if (newValue === oldValue) {
286
+ return;
287
+ }
288
+ this.userChangedValue = true;
289
+ this.valueAsDate = newValue ? dateFromISO(newValue) : undefined;
290
+ this.value = newValue || "";
291
+ const changeEvent = this.calciteInputDatePickerChange.emit();
292
+ const deprecatedDatePickerChangeEvent = this.calciteDatePickerChange.emit(value);
293
+ if (changeEvent.defaultPrevented || deprecatedDatePickerChangeEvent.defaultPrevented) {
294
+ this.value = oldValue;
295
+ this.setInputValue(oldValue);
296
+ }
297
+ };
220
298
  this.commonDateSeparators = [".", "-", "/"];
221
299
  this.formatNumerals = (value) => value
222
300
  ? value
@@ -230,34 +308,31 @@ const InputDatePicker = class {
230
308
  : char)
231
309
  .join("")
232
310
  : "";
233
- this.parseNumerals = (value) => value
234
- ? value
235
- .split("")
236
- .map((char) => numberKeys.includes(char) ? numberStringFormatter.delocalize(char) : char)
237
- .join("")
238
- : "";
239
311
  }
240
312
  handleDisabledAndReadOnlyChange(value) {
241
313
  if (!value) {
242
314
  this.open = false;
243
315
  }
244
316
  }
245
- valueHandler(value) {
246
- if (Array.isArray(value)) {
247
- this.valueAsDate = getValueAsDateRange(value);
248
- this.start = value[0];
249
- this.end = value[1];
250
- }
251
- else if (value) {
252
- this.valueAsDate = dateFromISO(value);
253
- this.start = "";
254
- this.end = "";
255
- }
256
- else {
257
- this.valueAsDate = undefined;
258
- this.start = undefined;
259
- this.end = undefined;
317
+ valueWatcher(newValue) {
318
+ if (!this.userChangedValue) {
319
+ if (Array.isArray(newValue)) {
320
+ this.valueAsDate = getValueAsDateRange(newValue);
321
+ this.start = newValue[0];
322
+ this.end = newValue[1];
323
+ }
324
+ else if (newValue) {
325
+ this.valueAsDate = dateFromISO(newValue);
326
+ }
327
+ else {
328
+ this.valueAsDate = undefined;
329
+ }
330
+ this.localizeInputValues();
260
331
  }
332
+ this.userChangedValue = false;
333
+ }
334
+ valueAsDateWatcher(valueAsDate) {
335
+ this.datePickerActiveDate = valueAsDate;
261
336
  }
262
337
  flipPlacementsHandler() {
263
338
  this.setFilteredPlacements();
@@ -300,9 +375,6 @@ const InputDatePicker = class {
300
375
  // Event Listeners
301
376
  //
302
377
  //--------------------------------------------------------------------------
303
- handleDateOrRangeChange() {
304
- this.calciteInputDatePickerChange.emit();
305
- }
306
378
  calciteDaySelectHandler() {
307
379
  if (this.shouldFocusRangeStart() || this.shouldFocusRangeEnd()) {
308
380
  return;
@@ -351,7 +423,13 @@ const InputDatePicker = class {
351
423
  this.end = this.value[1];
352
424
  }
353
425
  else if (this.value) {
354
- this.valueAsDate = dateFromISO(this.value);
426
+ try {
427
+ this.valueAsDate = dateFromISO(this.value);
428
+ }
429
+ catch (error) {
430
+ this.warnAboutInvalidValue(this.value);
431
+ this.value = "";
432
+ }
355
433
  this.start = "";
356
434
  this.end = "";
357
435
  }
@@ -384,6 +462,7 @@ const InputDatePicker = class {
384
462
  this.onMaxChanged(this.max);
385
463
  }
386
464
  componentDidLoad() {
465
+ this.localizeInputValues();
387
466
  this.reposition(true);
388
467
  }
389
468
  disconnectedCallback() {
@@ -398,21 +477,13 @@ const InputDatePicker = class {
398
477
  }
399
478
  render() {
400
479
  var _a, _b;
401
- const { disabled, readOnly, numberingSystem, effectiveLocale } = this;
480
+ const { disabled, effectiveLocale, numberingSystem, readOnly } = this;
402
481
  numberStringFormatter.numberFormatOptions = {
403
482
  numberingSystem,
404
483
  locale: effectiveLocale,
405
484
  useGrouping: false
406
485
  };
407
- const date = dateFromRange(this.range ? this.startAsDate : this.valueAsDate, this.minAsDate, this.maxAsDate);
408
- const endDate = this.range
409
- ? dateFromRange(this.endAsDate, this.minAsDate, this.maxAsDate)
410
- : null;
411
- const formattedEndDate = endDate
412
- ? this.formatNumerals(endDate.toLocaleDateString(effectiveLocale))
413
- : "";
414
- const formattedDate = date ? this.formatNumerals(date.toLocaleDateString(effectiveLocale)) : "";
415
- return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.startInputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
486
+ return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text" })), h("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
416
487
  [CSS.menu]: true,
417
488
  [CSS.menuActive]: this.open
418
489
  }, ref: this.setFloatingEl }, h("div", { class: {
@@ -420,10 +491,10 @@ const InputDatePicker = class {
420
491
  ["calendar-picker-wrapper--end"]: this.focusedInput === "end",
421
492
  [FloatingCSS.animation]: true,
422
493
  [FloatingCSS.animationActive]: this.open
423
- }, ref: this.setTransitionEl }, h("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, lang: effectiveLocale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, numberingSystem: numberingSystem, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (h("div", { class: "horizontal-arrow-container" }, h("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (h("div", { class: "vertical-arrow-container" }, h("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (h("div", { class: "input-wrapper", ref: this.setEndWrapper }, h("calcite-input", { class: {
494
+ }, ref: this.setTransitionEl }, h("calcite-date-picker", { activeDate: this.datePickerActiveDate, activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, lang: effectiveLocale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, numberingSystem: numberingSystem, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (h("div", { class: "horizontal-arrow-container" }, h("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (h("div", { class: "vertical-arrow-container" }, h("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (h("div", { class: "input-wrapper", ref: this.setEndWrapper }, h("calcite-input", { class: {
424
495
  input: true,
425
496
  "border-top-color-one": this.layout === "vertical" && this.range
426
- }, disabled: disabled, icon: "calendar", lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.endInputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.endInputFocus, placeholder: (_b = this.localeData) === null || _b === void 0 ? void 0 : _b.placeholder, readOnly: readOnly, ref: this.setEndInput, scale: this.scale, type: "text", value: formattedEndDate }))))), h(HiddenFormInputSlot, { component: this })));
497
+ }, disabled: disabled, icon: "calendar", lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.endInputFocus, placeholder: (_b = this.localeData) === null || _b === void 0 ? void 0 : _b.placeholder, readOnly: readOnly, ref: this.setEndInput, scale: this.scale, type: "text" }))))), h(HiddenFormInputSlot, { component: this })));
427
498
  }
428
499
  setReferenceEl() {
429
500
  const { focusedInput, layout, endWrapper, startWrapper } = this;
@@ -448,6 +519,51 @@ const InputDatePicker = class {
448
519
  onClose() {
449
520
  this.calciteInputDatePickerClose.emit();
450
521
  }
522
+ commitValue() {
523
+ const { focusedInput, value } = this;
524
+ const focusedInputName = `${focusedInput}Input`;
525
+ const focusedInputValue = this[focusedInputName].value;
526
+ const date = dateFromLocalizedString(focusedInputValue, this.localeData);
527
+ const dateAsISO = dateToISO(date);
528
+ const valueIsArray = Array.isArray(value);
529
+ if (this.range) {
530
+ const focusedInputValueIndex = focusedInput === "start" ? 0 : 1;
531
+ if (valueIsArray) {
532
+ if (dateAsISO === value[focusedInputValueIndex]) {
533
+ return;
534
+ }
535
+ if (date) {
536
+ this.setRangeValue([
537
+ focusedInput === "start" ? date : dateFromISO(value[0]),
538
+ focusedInput === "end" ? date : dateFromISO(value[1])
539
+ ]);
540
+ this.localizeInputValues();
541
+ }
542
+ else {
543
+ this.setRangeValue([
544
+ focusedInput === "end" && dateFromISO(value[0]),
545
+ focusedInput === "start" && dateFromISO(value[1])
546
+ ]);
547
+ }
548
+ }
549
+ else {
550
+ if (date) {
551
+ this.setRangeValue([
552
+ focusedInput === "start" ? date : dateFromISO(value[0]),
553
+ focusedInput === "end" ? date : dateFromISO(value[1])
554
+ ]);
555
+ this.localizeInputValues();
556
+ }
557
+ }
558
+ }
559
+ else {
560
+ if (dateAsISO === value) {
561
+ return;
562
+ }
563
+ this.setValue(date);
564
+ this.localizeInputValues();
565
+ }
566
+ }
451
567
  startWatcher(start) {
452
568
  this.startAsDate = dateFromISO(start);
453
569
  }
@@ -457,97 +573,6 @@ const InputDatePicker = class {
457
573
  async loadLocaleData() {
458
574
  this.localeData = await getLocaleData(this.effectiveLocale);
459
575
  }
460
- clearCurrentValue() {
461
- if (!this.range) {
462
- if (typeof this.value === "string" && this.value) {
463
- this.calciteDatePickerChange.emit();
464
- }
465
- this.value = "";
466
- return;
467
- }
468
- const { focusedInput } = this;
469
- if (focusedInput === "start") {
470
- if (this.start) {
471
- this.calciteDatePickerRangeChange.emit();
472
- }
473
- this.value = Array.isArray(this.value) ? ["", this.value[1] || ""] : [""];
474
- this.start = undefined;
475
- }
476
- else if (focusedInput === "end") {
477
- if (this.end) {
478
- this.calciteDatePickerRangeChange.emit();
479
- }
480
- this.value = Array.isArray(this.value) ? [this.value[0] || "", ""] : ["", ""];
481
- this.end = undefined;
482
- }
483
- }
484
- /**
485
- * If inputted string is a valid date, update value/active
486
- *
487
- * @param value
488
- */
489
- input(value) {
490
- const date = this.getDateFromInput(value);
491
- if (!date) {
492
- this.clearCurrentValue();
493
- return;
494
- }
495
- if (!this.range) {
496
- this.value = dateToISO(date);
497
- this.calciteDatePickerChange.emit(date);
498
- return;
499
- }
500
- const { focusedInput } = this;
501
- if (focusedInput === "start") {
502
- if (!this.startAsDate || !sameDate(date, this.startAsDate)) {
503
- const startDateISO = dateToISO(date);
504
- this.value = Array.isArray(this.value)
505
- ? [startDateISO, this.value[1] || ""]
506
- : [startDateISO];
507
- this.start = startDateISO;
508
- this.calciteDatePickerRangeChange.emit({
509
- startDate: date,
510
- endDate: this.endAsDate
511
- });
512
- }
513
- }
514
- else if (focusedInput === "end") {
515
- if (!this.endAsDate || !sameDate(date, this.endAsDate)) {
516
- const endDateISO = dateToISO(date);
517
- this.value = Array.isArray(this.value)
518
- ? [this.value[0] || "", endDateISO]
519
- : ["", endDateISO];
520
- this.end = endDateISO;
521
- this.calciteDatePickerRangeChange.emit({
522
- startDate: this.startAsDate,
523
- endDate: setEndOfDay(date)
524
- });
525
- }
526
- }
527
- }
528
- /**
529
- * Clean up invalid date from input on blur
530
- *
531
- * @param target
532
- */
533
- blur(target) {
534
- const { focusedInput, endAsDate, range, startAsDate, valueAsDate } = this;
535
- const locale = this.effectiveLocale;
536
- const date = this.getDateFromInput(target.value);
537
- if (!date) {
538
- if (!range && valueAsDate) {
539
- target.value = this.formatNumerals(Array.isArray(valueAsDate)
540
- ? valueAsDate[focusedInput === "end" ? 1 : 0].toLocaleDateString(locale)
541
- : valueAsDate.toLocaleDateString(locale));
542
- }
543
- else if (focusedInput === "start" && startAsDate) {
544
- target.value = this.formatNumerals(startAsDate.toLocaleDateString(locale));
545
- }
546
- else if (focusedInput === "end" && endAsDate) {
547
- target.value = this.formatNumerals(endAsDate.toLocaleDateString(locale));
548
- }
549
- }
550
- }
551
576
  shouldFocusRangeStart() {
552
577
  return !!(this.endAsDate &&
553
578
  !this.startAsDate &&
@@ -560,40 +585,25 @@ const InputDatePicker = class {
560
585
  this.focusedInput === "start" &&
561
586
  this.endInput);
562
587
  }
563
- /**
564
- * Find a date from input string
565
- * return false if date is invalid, or out of range
566
- *
567
- * @param value
568
- */
569
- getDateFromInput(value) {
570
- if (!this.localeData) {
571
- return false;
572
- }
573
- const { separator } = this.localeData;
574
- const { day, month, year } = parseDateString(value, this.localeData);
575
- const validDay = day > 0;
576
- const validMonth = month > -1;
577
- const date = new Date(year, month, day);
578
- date.setFullYear(year);
579
- const validDate = !isNaN(date.getTime());
580
- const validLength = value.split(separator).filter((c) => c).length > 2;
581
- const validYear = year.toString().length > 0;
582
- if (validDay &&
583
- validMonth &&
584
- validDate &&
585
- validLength &&
586
- validYear &&
587
- inRange(date, this.min, this.max)) {
588
- return date;
589
- }
590
- return false;
588
+ localizeInputValues() {
589
+ const date = dateFromRange(this.range ? this.startAsDate : this.valueAsDate, this.minAsDate, this.maxAsDate);
590
+ const endDate = this.range
591
+ ? dateFromRange(this.endAsDate, this.minAsDate, this.maxAsDate)
592
+ : null;
593
+ const localizedDate = date && this.formatNumerals(date.toLocaleDateString(this.effectiveLocale));
594
+ const localizedEndDate = endDate && this.formatNumerals(endDate.toLocaleDateString(this.effectiveLocale));
595
+ localizedDate && this.setInputValue(localizedDate, "start");
596
+ this.range && localizedEndDate && this.setInputValue(localizedEndDate, "end");
597
+ }
598
+ warnAboutInvalidValue(value) {
599
+ console.warn(`The specified value "${value}" does not conform to the required format, "yyyy-MM-dd".`);
591
600
  }
592
601
  get el() { return getElement(this); }
593
602
  static get watchers() { return {
594
603
  "disabled": ["handleDisabledAndReadOnlyChange"],
595
604
  "readOnly": ["handleDisabledAndReadOnlyChange"],
596
- "value": ["valueHandler"],
605
+ "value": ["valueWatcher"],
606
+ "valueAsDate": ["valueAsDateWatcher"],
597
607
  "flipPlacements": ["flipPlacementsHandler"],
598
608
  "min": ["onMinChanged"],
599
609
  "max": ["onMaxChanged"],
@@ -1,12 +1,12 @@
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.620
4
+ * v1.0.0-next.622
5
5
  */
6
- import { r as registerInstance, h, H as Host, g as getElement } from './index-3d98d82f.js';
7
- import { s as setRequestedIcon, e as getElementProp } from './dom-1e4deb7f.js';
8
- import './resources-d0be46e0.js';
9
- import './guid-e67a0403.js';
6
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-c7811f4e.js';
7
+ import { s as setRequestedIcon, e as getElementProp } from './dom-7b1a9388.js';
8
+ import './resources-c7125d11.js';
9
+ import './guid-8c313d9d.js';
10
10
 
11
11
  var StatusIconDefaults;
12
12
  (function (StatusIconDefaults) {
@@ -1,19 +1,19 @@
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.620
4
+ * v1.0.0-next.622
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-3d98d82f.js';
7
- import { g as getSlotted, i as isPrimaryPointerButton, s as setRequestedIcon, e as getElementProp, a as getElementDir } from './dom-1e4deb7f.js';
8
- import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-be9adac1.js';
9
- import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-8128fc79.js';
10
- import { n as numberStringFormatter, i as isValidNumber, p as parseNumberString, s as sanitizeNumberString, a as defaultNumberingSystem, u as updateEffectiveLocale, c as connectLocalized, d as disconnectLocalized } from './locale-c9f01571.js';
11
- import { n as numberKeys } from './key-fcfa1157.js';
12
- import { T as TEXT$1, C as CSS_UTILITY } from './resources-d0be46e0.js';
13
- import { d as decimalPlaces } from './math-3a02723b.js';
14
- import { c as createObserver } from './observers-1537e191.js';
15
- import { u as updateHostInteraction } from './interactive-280bdade.js';
16
- import './guid-e67a0403.js';
6
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c7811f4e.js';
7
+ import { g as getSlotted, i as isPrimaryPointerButton, s as setRequestedIcon, e as getElementProp, a as getElementDir } from './dom-7b1a9388.js';
8
+ import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-da4b7005.js';
9
+ import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-857f1ff0.js';
10
+ import { n as numberStringFormatter, i as isValidNumber, p as parseNumberString, s as sanitizeNumberString, a as defaultNumberingSystem, u as updateEffectiveLocale, c as connectLocalized, d as disconnectLocalized } from './locale-011a1885.js';
11
+ import { n as numberKeys } from './key-a47cc528.js';
12
+ import { T as TEXT$1, C as CSS_UTILITY } from './resources-c7125d11.js';
13
+ import { d as decimalPlaces } from './math-4258b418.js';
14
+ import { c as createObserver } from './observers-6ff46f9d.js';
15
+ import { u as updateHostInteraction } from './interactive-4239c942.js';
16
+ import './guid-8c313d9d.js';
17
17
 
18
18
  const CSS = {
19
19
  loader: "loader",
@@ -1,16 +1,16 @@
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.620
4
+ * v1.0.0-next.622
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-3d98d82f.js';
7
- import { g as getSlotted, s as setRequestedIcon, e as getElementProp, a as getElementDir } from './dom-1e4deb7f.js';
8
- import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-be9adac1.js';
9
- import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-8128fc79.js';
10
- import { T as TEXT$1, C as CSS_UTILITY } from './resources-d0be46e0.js';
11
- import { c as createObserver } from './observers-1537e191.js';
12
- import { u as updateHostInteraction } from './interactive-280bdade.js';
13
- import './guid-e67a0403.js';
6
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c7811f4e.js';
7
+ import { g as getSlotted, s as setRequestedIcon, e as getElementProp, a as getElementDir } from './dom-7b1a9388.js';
8
+ import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-da4b7005.js';
9
+ import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-857f1ff0.js';
10
+ import { T as TEXT$1, C as CSS_UTILITY } from './resources-c7125d11.js';
11
+ import { c as createObserver } from './observers-6ff46f9d.js';
12
+ import { u as updateHostInteraction } from './interactive-4239c942.js';
13
+ import './guid-8c313d9d.js';
14
14
 
15
15
  const CSS = {
16
16
  loader: "loader",