react-stately 3.46.0 → 3.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (496) hide show
  1. package/dist/exports/Color.cjs.map +1 -1
  2. package/dist/exports/Color.js.map +1 -1
  3. package/dist/exports/Color.mjs.map +1 -1
  4. package/dist/exports/index.cjs.map +1 -1
  5. package/dist/exports/index.js.map +1 -1
  6. package/dist/exports/index.mjs.map +1 -1
  7. package/dist/exports/private/autocomplete/useAutocompleteState.cjs.map +1 -1
  8. package/dist/exports/private/autocomplete/useAutocompleteState.js.map +1 -1
  9. package/dist/exports/private/autocomplete/useAutocompleteState.mjs.map +1 -1
  10. package/dist/exports/private/collections/getChildNodes.cjs.map +1 -1
  11. package/dist/exports/private/collections/getChildNodes.js.map +1 -1
  12. package/dist/exports/private/collections/getChildNodes.mjs.map +1 -1
  13. package/dist/exports/private/flags/flags.cjs.map +1 -1
  14. package/dist/exports/private/flags/flags.js.map +1 -1
  15. package/dist/exports/private/flags/flags.mjs.map +1 -1
  16. package/dist/exports/private/form/useFormValidationState.cjs.map +1 -1
  17. package/dist/exports/private/form/useFormValidationState.js.map +1 -1
  18. package/dist/exports/private/form/useFormValidationState.mjs.map +1 -1
  19. package/dist/exports/private/grid/GridCollection.cjs.map +1 -1
  20. package/dist/exports/private/grid/GridCollection.js.map +1 -1
  21. package/dist/exports/private/grid/GridCollection.mjs.map +1 -1
  22. package/dist/exports/private/steplist/useStepListState.cjs.map +1 -1
  23. package/dist/exports/private/steplist/useStepListState.js.map +1 -1
  24. package/dist/exports/private/steplist/useStepListState.mjs.map +1 -1
  25. package/dist/exports/private/table/TableCollection.cjs.map +1 -1
  26. package/dist/exports/private/table/TableCollection.js.map +1 -1
  27. package/dist/exports/private/table/TableCollection.mjs.map +1 -1
  28. package/dist/exports/private/table/useTreeGridState.cjs.map +1 -1
  29. package/dist/exports/private/table/useTreeGridState.js.map +1 -1
  30. package/dist/exports/private/table/useTreeGridState.mjs.map +1 -1
  31. package/dist/exports/useAsyncList.cjs.map +1 -1
  32. package/dist/exports/useAsyncList.js.map +1 -1
  33. package/dist/exports/useAsyncList.mjs.map +1 -1
  34. package/dist/exports/useCalendarState.cjs.map +1 -1
  35. package/dist/exports/useCalendarState.js.map +1 -1
  36. package/dist/exports/useCalendarState.mjs.map +1 -1
  37. package/dist/exports/useColorAreaState.cjs.map +1 -1
  38. package/dist/exports/useColorAreaState.js.map +1 -1
  39. package/dist/exports/useColorAreaState.mjs.map +1 -1
  40. package/dist/exports/useColorFieldState.cjs.map +1 -1
  41. package/dist/exports/useColorFieldState.js.map +1 -1
  42. package/dist/exports/useColorFieldState.mjs.map +1 -1
  43. package/dist/exports/useColorPickerState.cjs.map +1 -1
  44. package/dist/exports/useColorPickerState.js.map +1 -1
  45. package/dist/exports/useColorPickerState.mjs.map +1 -1
  46. package/dist/exports/useColorSliderState.cjs.map +1 -1
  47. package/dist/exports/useColorSliderState.js.map +1 -1
  48. package/dist/exports/useColorSliderState.mjs.map +1 -1
  49. package/dist/exports/useColorWheelState.cjs.map +1 -1
  50. package/dist/exports/useColorWheelState.js.map +1 -1
  51. package/dist/exports/useColorWheelState.mjs.map +1 -1
  52. package/dist/exports/useComboBoxState.cjs +1 -1
  53. package/dist/exports/useComboBoxState.cjs.map +1 -1
  54. package/dist/exports/useComboBoxState.js +1 -1
  55. package/dist/exports/useComboBoxState.js.map +1 -1
  56. package/dist/exports/useComboBoxState.mjs +1 -1
  57. package/dist/exports/useComboBoxState.mjs.map +1 -1
  58. package/dist/exports/useDateFieldState.cjs.map +1 -1
  59. package/dist/exports/useDateFieldState.js.map +1 -1
  60. package/dist/exports/useDateFieldState.mjs.map +1 -1
  61. package/dist/exports/useDatePickerState.cjs.map +1 -1
  62. package/dist/exports/useDatePickerState.js.map +1 -1
  63. package/dist/exports/useDatePickerState.mjs.map +1 -1
  64. package/dist/exports/useDateRangePickerState.cjs.map +1 -1
  65. package/dist/exports/useDateRangePickerState.js.map +1 -1
  66. package/dist/exports/useDateRangePickerState.mjs.map +1 -1
  67. package/dist/exports/useDisclosureGroupState.cjs.map +1 -1
  68. package/dist/exports/useDisclosureGroupState.js.map +1 -1
  69. package/dist/exports/useDisclosureGroupState.mjs.map +1 -1
  70. package/dist/exports/useDraggableCollectionState.cjs.map +1 -1
  71. package/dist/exports/useDraggableCollectionState.js.map +1 -1
  72. package/dist/exports/useDraggableCollectionState.mjs.map +1 -1
  73. package/dist/exports/useDroppableCollectionState.cjs.map +1 -1
  74. package/dist/exports/useDroppableCollectionState.js.map +1 -1
  75. package/dist/exports/useDroppableCollectionState.mjs.map +1 -1
  76. package/dist/exports/useMenuTriggerState.cjs.map +1 -1
  77. package/dist/exports/useMenuTriggerState.js.map +1 -1
  78. package/dist/exports/useMenuTriggerState.mjs.map +1 -1
  79. package/dist/exports/useMultipleSelectionState.cjs.map +1 -1
  80. package/dist/exports/useMultipleSelectionState.js.map +1 -1
  81. package/dist/exports/useMultipleSelectionState.mjs.map +1 -1
  82. package/dist/exports/useOverlayTriggerState.cjs.map +1 -1
  83. package/dist/exports/useOverlayTriggerState.js.map +1 -1
  84. package/dist/exports/useOverlayTriggerState.mjs.map +1 -1
  85. package/dist/exports/useRangeCalendarState.cjs.map +1 -1
  86. package/dist/exports/useRangeCalendarState.js.map +1 -1
  87. package/dist/exports/useRangeCalendarState.mjs.map +1 -1
  88. package/dist/exports/useSelectState.cjs.map +1 -1
  89. package/dist/exports/useSelectState.js.map +1 -1
  90. package/dist/exports/useSelectState.mjs.map +1 -1
  91. package/dist/exports/useSingleSelectListState.cjs.map +1 -1
  92. package/dist/exports/useSingleSelectListState.js.map +1 -1
  93. package/dist/exports/useSingleSelectListState.mjs.map +1 -1
  94. package/dist/exports/useTableState.cjs.map +1 -1
  95. package/dist/exports/useTableState.js.map +1 -1
  96. package/dist/exports/useTableState.mjs.map +1 -1
  97. package/dist/exports/useTimeFieldState.cjs.map +1 -1
  98. package/dist/exports/useTimeFieldState.js.map +1 -1
  99. package/dist/exports/useTimeFieldState.mjs.map +1 -1
  100. package/dist/exports/useToastState.cjs.map +1 -1
  101. package/dist/exports/useToastState.js.map +1 -1
  102. package/dist/exports/useToastState.mjs.map +1 -1
  103. package/dist/private/autocomplete/useAutocompleteState.cjs.map +1 -1
  104. package/dist/private/autocomplete/useAutocompleteState.js.map +1 -1
  105. package/dist/private/autocomplete/useAutocompleteState.mjs.map +1 -1
  106. package/dist/private/calendar/useCalendarState.cjs +82 -30
  107. package/dist/private/calendar/useCalendarState.cjs.map +1 -1
  108. package/dist/private/calendar/useCalendarState.js +85 -32
  109. package/dist/private/calendar/useCalendarState.js.map +1 -1
  110. package/dist/private/calendar/useCalendarState.mjs +84 -32
  111. package/dist/private/calendar/useCalendarState.mjs.map +1 -1
  112. package/dist/private/calendar/useRangeCalendarState.cjs +53 -40
  113. package/dist/private/calendar/useRangeCalendarState.cjs.map +1 -1
  114. package/dist/private/calendar/useRangeCalendarState.js +55 -43
  115. package/dist/private/calendar/useRangeCalendarState.js.map +1 -1
  116. package/dist/private/calendar/useRangeCalendarState.mjs +55 -42
  117. package/dist/private/calendar/useRangeCalendarState.mjs.map +1 -1
  118. package/dist/private/calendar/utils.cjs +6 -1
  119. package/dist/private/calendar/utils.cjs.map +1 -1
  120. package/dist/private/calendar/utils.js +6 -2
  121. package/dist/private/calendar/utils.js.map +1 -1
  122. package/dist/private/calendar/utils.mjs +6 -2
  123. package/dist/private/calendar/utils.mjs.map +1 -1
  124. package/dist/private/checkbox/useCheckboxGroupState.cjs.map +1 -1
  125. package/dist/private/checkbox/useCheckboxGroupState.js.map +1 -1
  126. package/dist/private/checkbox/useCheckboxGroupState.mjs.map +1 -1
  127. package/dist/private/collections/CollectionBuilder.cjs.map +1 -1
  128. package/dist/private/collections/CollectionBuilder.js.map +1 -1
  129. package/dist/private/collections/CollectionBuilder.mjs.map +1 -1
  130. package/dist/private/collections/Item.cjs +1 -0
  131. package/dist/private/collections/Item.cjs.map +1 -1
  132. package/dist/private/collections/Item.js +1 -0
  133. package/dist/private/collections/Item.js.map +1 -1
  134. package/dist/private/collections/Item.mjs +1 -0
  135. package/dist/private/collections/Item.mjs.map +1 -1
  136. package/dist/private/collections/Section.cjs +1 -0
  137. package/dist/private/collections/Section.cjs.map +1 -1
  138. package/dist/private/collections/Section.js +1 -0
  139. package/dist/private/collections/Section.js.map +1 -1
  140. package/dist/private/collections/Section.mjs +1 -0
  141. package/dist/private/collections/Section.mjs.map +1 -1
  142. package/dist/private/collections/getChildNodes.cjs.map +1 -1
  143. package/dist/private/collections/getChildNodes.js.map +1 -1
  144. package/dist/private/collections/getChildNodes.mjs.map +1 -1
  145. package/dist/private/collections/useCollection.cjs.map +1 -1
  146. package/dist/private/collections/useCollection.js.map +1 -1
  147. package/dist/private/collections/useCollection.mjs.map +1 -1
  148. package/dist/private/color/Color.cjs +15 -9
  149. package/dist/private/color/Color.cjs.map +1 -1
  150. package/dist/private/color/Color.js +15 -9
  151. package/dist/private/color/Color.js.map +1 -1
  152. package/dist/private/color/Color.mjs +15 -9
  153. package/dist/private/color/Color.mjs.map +1 -1
  154. package/dist/private/color/useColorAreaState.cjs.map +1 -1
  155. package/dist/private/color/useColorAreaState.js.map +1 -1
  156. package/dist/private/color/useColorAreaState.mjs.map +1 -1
  157. package/dist/private/color/useColorChannelFieldState.cjs.map +1 -1
  158. package/dist/private/color/useColorChannelFieldState.js.map +1 -1
  159. package/dist/private/color/useColorChannelFieldState.mjs.map +1 -1
  160. package/dist/private/color/useColorFieldState.cjs.map +1 -1
  161. package/dist/private/color/useColorFieldState.js.map +1 -1
  162. package/dist/private/color/useColorFieldState.mjs.map +1 -1
  163. package/dist/private/color/useColorPickerState.cjs.map +1 -1
  164. package/dist/private/color/useColorPickerState.js.map +1 -1
  165. package/dist/private/color/useColorPickerState.mjs.map +1 -1
  166. package/dist/private/color/useColorSliderState.cjs +5 -3
  167. package/dist/private/color/useColorSliderState.cjs.map +1 -1
  168. package/dist/private/color/useColorSliderState.js +5 -3
  169. package/dist/private/color/useColorSliderState.js.map +1 -1
  170. package/dist/private/color/useColorSliderState.mjs +5 -3
  171. package/dist/private/color/useColorSliderState.mjs.map +1 -1
  172. package/dist/private/color/useColorWheelState.cjs.map +1 -1
  173. package/dist/private/color/useColorWheelState.js.map +1 -1
  174. package/dist/private/color/useColorWheelState.mjs.map +1 -1
  175. package/dist/private/combobox/useComboBoxState.cjs +8 -2
  176. package/dist/private/combobox/useComboBoxState.cjs.map +1 -1
  177. package/dist/private/combobox/useComboBoxState.js +8 -2
  178. package/dist/private/combobox/useComboBoxState.js.map +1 -1
  179. package/dist/private/combobox/useComboBoxState.mjs +8 -2
  180. package/dist/private/combobox/useComboBoxState.mjs.map +1 -1
  181. package/dist/private/data/useAsyncList.cjs.map +1 -1
  182. package/dist/private/data/useAsyncList.js.map +1 -1
  183. package/dist/private/data/useAsyncList.mjs.map +1 -1
  184. package/dist/private/data/useListData.cjs.map +1 -1
  185. package/dist/private/data/useListData.js.map +1 -1
  186. package/dist/private/data/useListData.mjs.map +1 -1
  187. package/dist/private/data/useTreeData.cjs.map +1 -1
  188. package/dist/private/data/useTreeData.js.map +1 -1
  189. package/dist/private/data/useTreeData.mjs.map +1 -1
  190. package/dist/private/datepicker/IncompleteDate.cjs +8 -2
  191. package/dist/private/datepicker/IncompleteDate.cjs.map +1 -1
  192. package/dist/private/datepicker/IncompleteDate.js +8 -2
  193. package/dist/private/datepicker/IncompleteDate.js.map +1 -1
  194. package/dist/private/datepicker/IncompleteDate.mjs +8 -2
  195. package/dist/private/datepicker/IncompleteDate.mjs.map +1 -1
  196. package/dist/private/datepicker/placeholders.cjs +5 -0
  197. package/dist/private/datepicker/placeholders.cjs.map +1 -1
  198. package/dist/private/datepicker/placeholders.js +5 -0
  199. package/dist/private/datepicker/placeholders.js.map +1 -1
  200. package/dist/private/datepicker/placeholders.mjs +5 -0
  201. package/dist/private/datepicker/placeholders.mjs.map +1 -1
  202. package/dist/private/datepicker/useDateFieldState.cjs.map +1 -1
  203. package/dist/private/datepicker/useDateFieldState.js.map +1 -1
  204. package/dist/private/datepicker/useDateFieldState.mjs.map +1 -1
  205. package/dist/private/datepicker/useDatePickerState.cjs.map +1 -1
  206. package/dist/private/datepicker/useDatePickerState.js.map +1 -1
  207. package/dist/private/datepicker/useDatePickerState.mjs.map +1 -1
  208. package/dist/private/datepicker/useDateRangePickerState.cjs +1 -1
  209. package/dist/private/datepicker/useDateRangePickerState.cjs.map +1 -1
  210. package/dist/private/datepicker/useDateRangePickerState.js +1 -1
  211. package/dist/private/datepicker/useDateRangePickerState.js.map +1 -1
  212. package/dist/private/datepicker/useDateRangePickerState.mjs +1 -1
  213. package/dist/private/datepicker/useDateRangePickerState.mjs.map +1 -1
  214. package/dist/private/datepicker/useTimeFieldState.cjs.map +1 -1
  215. package/dist/private/datepicker/useTimeFieldState.js.map +1 -1
  216. package/dist/private/datepicker/useTimeFieldState.mjs.map +1 -1
  217. package/dist/private/datepicker/utils.cjs +2 -2
  218. package/dist/private/datepicker/utils.cjs.map +1 -1
  219. package/dist/private/datepicker/utils.js +2 -2
  220. package/dist/private/datepicker/utils.js.map +1 -1
  221. package/dist/private/datepicker/utils.mjs +2 -2
  222. package/dist/private/datepicker/utils.mjs.map +1 -1
  223. package/dist/private/disclosure/useDisclosureGroupState.cjs.map +1 -1
  224. package/dist/private/disclosure/useDisclosureGroupState.js.map +1 -1
  225. package/dist/private/disclosure/useDisclosureGroupState.mjs.map +1 -1
  226. package/dist/private/disclosure/useDisclosureState.cjs.map +1 -1
  227. package/dist/private/disclosure/useDisclosureState.js.map +1 -1
  228. package/dist/private/disclosure/useDisclosureState.mjs.map +1 -1
  229. package/dist/private/dnd/useDraggableCollectionState.cjs.map +1 -1
  230. package/dist/private/dnd/useDraggableCollectionState.js.map +1 -1
  231. package/dist/private/dnd/useDraggableCollectionState.mjs.map +1 -1
  232. package/dist/private/dnd/useDroppableCollectionState.cjs.map +1 -1
  233. package/dist/private/dnd/useDroppableCollectionState.js.map +1 -1
  234. package/dist/private/dnd/useDroppableCollectionState.mjs.map +1 -1
  235. package/dist/private/form/useFormValidationState.cjs.map +1 -1
  236. package/dist/private/form/useFormValidationState.js.map +1 -1
  237. package/dist/private/form/useFormValidationState.mjs.map +1 -1
  238. package/dist/private/grid/GridCollection.cjs.map +1 -1
  239. package/dist/private/grid/GridCollection.js.map +1 -1
  240. package/dist/private/grid/GridCollection.mjs.map +1 -1
  241. package/dist/private/grid/useGridState.cjs.map +1 -1
  242. package/dist/private/grid/useGridState.js.map +1 -1
  243. package/dist/private/grid/useGridState.mjs.map +1 -1
  244. package/dist/private/layout/GridLayout.cjs +8 -3
  245. package/dist/private/layout/GridLayout.cjs.map +1 -1
  246. package/dist/private/layout/GridLayout.js +8 -3
  247. package/dist/private/layout/GridLayout.js.map +1 -1
  248. package/dist/private/layout/GridLayout.mjs +8 -3
  249. package/dist/private/layout/GridLayout.mjs.map +1 -1
  250. package/dist/private/layout/ListLayout.cjs +1 -1
  251. package/dist/private/layout/ListLayout.cjs.map +1 -1
  252. package/dist/private/layout/ListLayout.js +2 -1
  253. package/dist/private/layout/ListLayout.js.map +1 -1
  254. package/dist/private/layout/ListLayout.mjs +1 -1
  255. package/dist/private/layout/ListLayout.mjs.map +1 -1
  256. package/dist/private/layout/TableLayout.cjs +60 -35
  257. package/dist/private/layout/TableLayout.cjs.map +1 -1
  258. package/dist/private/layout/TableLayout.js +65 -38
  259. package/dist/private/layout/TableLayout.js.map +1 -1
  260. package/dist/private/layout/TableLayout.mjs +61 -36
  261. package/dist/private/layout/TableLayout.mjs.map +1 -1
  262. package/dist/private/layout/WaterfallLayout.cjs.map +1 -1
  263. package/dist/private/layout/WaterfallLayout.js.map +1 -1
  264. package/dist/private/layout/WaterfallLayout.mjs.map +1 -1
  265. package/dist/private/list/ListCollection.cjs.map +1 -1
  266. package/dist/private/list/ListCollection.js.map +1 -1
  267. package/dist/private/list/ListCollection.mjs.map +1 -1
  268. package/dist/private/list/useListState.cjs.map +1 -1
  269. package/dist/private/list/useListState.js.map +1 -1
  270. package/dist/private/list/useListState.mjs.map +1 -1
  271. package/dist/private/list/useSingleSelectListState.cjs.map +1 -1
  272. package/dist/private/list/useSingleSelectListState.js.map +1 -1
  273. package/dist/private/list/useSingleSelectListState.mjs.map +1 -1
  274. package/dist/private/menu/useMenuTriggerState.cjs.map +1 -1
  275. package/dist/private/menu/useMenuTriggerState.js.map +1 -1
  276. package/dist/private/menu/useMenuTriggerState.mjs.map +1 -1
  277. package/dist/private/menu/useSubmenuTriggerState.cjs.map +1 -1
  278. package/dist/private/menu/useSubmenuTriggerState.js.map +1 -1
  279. package/dist/private/menu/useSubmenuTriggerState.mjs.map +1 -1
  280. package/dist/private/numberfield/useNumberFieldState.cjs +13 -1
  281. package/dist/private/numberfield/useNumberFieldState.cjs.map +1 -1
  282. package/dist/private/numberfield/useNumberFieldState.js +13 -1
  283. package/dist/private/numberfield/useNumberFieldState.js.map +1 -1
  284. package/dist/private/numberfield/useNumberFieldState.mjs +13 -1
  285. package/dist/private/numberfield/useNumberFieldState.mjs.map +1 -1
  286. package/dist/private/overlays/useOverlayTriggerState.cjs.map +1 -1
  287. package/dist/private/overlays/useOverlayTriggerState.js.map +1 -1
  288. package/dist/private/overlays/useOverlayTriggerState.mjs.map +1 -1
  289. package/dist/private/radio/useRadioGroupState.cjs.map +1 -1
  290. package/dist/private/radio/useRadioGroupState.js.map +1 -1
  291. package/dist/private/radio/useRadioGroupState.mjs.map +1 -1
  292. package/dist/private/searchfield/useSearchFieldState.cjs.map +1 -1
  293. package/dist/private/searchfield/useSearchFieldState.js.map +1 -1
  294. package/dist/private/searchfield/useSearchFieldState.mjs.map +1 -1
  295. package/dist/private/select/useSelectState.cjs.map +1 -1
  296. package/dist/private/select/useSelectState.js.map +1 -1
  297. package/dist/private/select/useSelectState.mjs.map +1 -1
  298. package/dist/private/selection/SelectionManager.cjs +2 -1
  299. package/dist/private/selection/SelectionManager.cjs.map +1 -1
  300. package/dist/private/selection/SelectionManager.js +3 -2
  301. package/dist/private/selection/SelectionManager.js.map +1 -1
  302. package/dist/private/selection/SelectionManager.mjs +2 -1
  303. package/dist/private/selection/SelectionManager.mjs.map +1 -1
  304. package/dist/private/selection/useMultipleSelectionState.cjs.map +1 -1
  305. package/dist/private/selection/useMultipleSelectionState.js.map +1 -1
  306. package/dist/private/selection/useMultipleSelectionState.mjs.map +1 -1
  307. package/dist/private/slider/useSliderState.cjs +22 -2
  308. package/dist/private/slider/useSliderState.cjs.map +1 -1
  309. package/dist/private/slider/useSliderState.js +22 -2
  310. package/dist/private/slider/useSliderState.js.map +1 -1
  311. package/dist/private/slider/useSliderState.mjs +22 -2
  312. package/dist/private/slider/useSliderState.mjs.map +1 -1
  313. package/dist/private/steplist/useStepListState.cjs.map +1 -1
  314. package/dist/private/steplist/useStepListState.js.map +1 -1
  315. package/dist/private/steplist/useStepListState.mjs.map +1 -1
  316. package/dist/private/table/Cell.cjs +2 -1
  317. package/dist/private/table/Cell.cjs.map +1 -1
  318. package/dist/private/table/Cell.js +2 -1
  319. package/dist/private/table/Cell.js.map +1 -1
  320. package/dist/private/table/Cell.mjs +2 -1
  321. package/dist/private/table/Cell.mjs.map +1 -1
  322. package/dist/private/table/Column.cjs +1 -0
  323. package/dist/private/table/Column.cjs.map +1 -1
  324. package/dist/private/table/Column.js +1 -0
  325. package/dist/private/table/Column.js.map +1 -1
  326. package/dist/private/table/Column.mjs +1 -0
  327. package/dist/private/table/Column.mjs.map +1 -1
  328. package/dist/private/table/Row.cjs +2 -1
  329. package/dist/private/table/Row.cjs.map +1 -1
  330. package/dist/private/table/Row.js +2 -1
  331. package/dist/private/table/Row.js.map +1 -1
  332. package/dist/private/table/Row.mjs +2 -1
  333. package/dist/private/table/Row.mjs.map +1 -1
  334. package/dist/private/table/TableBody.cjs +4 -2
  335. package/dist/private/table/TableBody.cjs.map +1 -1
  336. package/dist/private/table/TableBody.js +4 -2
  337. package/dist/private/table/TableBody.js.map +1 -1
  338. package/dist/private/table/TableBody.mjs +4 -2
  339. package/dist/private/table/TableBody.mjs.map +1 -1
  340. package/dist/private/table/TableCollection.cjs +1 -1
  341. package/dist/private/table/TableCollection.cjs.map +1 -1
  342. package/dist/private/table/TableCollection.js +1 -1
  343. package/dist/private/table/TableCollection.js.map +1 -1
  344. package/dist/private/table/TableCollection.mjs +1 -1
  345. package/dist/private/table/TableCollection.mjs.map +1 -1
  346. package/dist/private/table/TableColumnLayout.cjs +4 -1
  347. package/dist/private/table/TableColumnLayout.cjs.map +1 -1
  348. package/dist/private/table/TableColumnLayout.js +4 -1
  349. package/dist/private/table/TableColumnLayout.js.map +1 -1
  350. package/dist/private/table/TableColumnLayout.mjs +4 -1
  351. package/dist/private/table/TableColumnLayout.mjs.map +1 -1
  352. package/dist/private/table/TableHeader.cjs +4 -2
  353. package/dist/private/table/TableHeader.cjs.map +1 -1
  354. package/dist/private/table/TableHeader.js +4 -2
  355. package/dist/private/table/TableHeader.js.map +1 -1
  356. package/dist/private/table/TableHeader.mjs +4 -2
  357. package/dist/private/table/TableHeader.mjs.map +1 -1
  358. package/dist/private/table/TableUtils.cjs +1 -1
  359. package/dist/private/table/TableUtils.cjs.map +1 -1
  360. package/dist/private/table/TableUtils.js +1 -1
  361. package/dist/private/table/TableUtils.js.map +1 -1
  362. package/dist/private/table/TableUtils.mjs +1 -1
  363. package/dist/private/table/TableUtils.mjs.map +1 -1
  364. package/dist/private/table/useTableColumnResizeState.cjs.map +1 -1
  365. package/dist/private/table/useTableColumnResizeState.js.map +1 -1
  366. package/dist/private/table/useTableColumnResizeState.mjs.map +1 -1
  367. package/dist/private/table/useTableState.cjs +2 -1
  368. package/dist/private/table/useTableState.cjs.map +1 -1
  369. package/dist/private/table/useTableState.js +2 -1
  370. package/dist/private/table/useTableState.js.map +1 -1
  371. package/dist/private/table/useTableState.mjs +2 -1
  372. package/dist/private/table/useTableState.mjs.map +1 -1
  373. package/dist/private/table/useTreeGridState.cjs +2 -1
  374. package/dist/private/table/useTreeGridState.cjs.map +1 -1
  375. package/dist/private/table/useTreeGridState.js +2 -1
  376. package/dist/private/table/useTreeGridState.js.map +1 -1
  377. package/dist/private/table/useTreeGridState.mjs +2 -1
  378. package/dist/private/table/useTreeGridState.mjs.map +1 -1
  379. package/dist/private/tabs/useTabListState.cjs.map +1 -1
  380. package/dist/private/tabs/useTabListState.js.map +1 -1
  381. package/dist/private/tabs/useTabListState.mjs.map +1 -1
  382. package/dist/private/toast/useToastState.cjs.map +1 -1
  383. package/dist/private/toast/useToastState.js.map +1 -1
  384. package/dist/private/toast/useToastState.mjs.map +1 -1
  385. package/dist/private/toggle/useToggleGroupState.cjs.map +1 -1
  386. package/dist/private/toggle/useToggleGroupState.js.map +1 -1
  387. package/dist/private/toggle/useToggleGroupState.mjs.map +1 -1
  388. package/dist/private/toggle/useToggleState.cjs.map +1 -1
  389. package/dist/private/toggle/useToggleState.js.map +1 -1
  390. package/dist/private/toggle/useToggleState.mjs.map +1 -1
  391. package/dist/private/tooltip/useTooltipTriggerState.cjs.map +1 -1
  392. package/dist/private/tooltip/useTooltipTriggerState.js.map +1 -1
  393. package/dist/private/tooltip/useTooltipTriggerState.mjs.map +1 -1
  394. package/dist/private/tree/TreeCollection.cjs.map +1 -1
  395. package/dist/private/tree/TreeCollection.js.map +1 -1
  396. package/dist/private/tree/TreeCollection.mjs.map +1 -1
  397. package/dist/private/tree/useTreeState.cjs.map +1 -1
  398. package/dist/private/tree/useTreeState.js.map +1 -1
  399. package/dist/private/tree/useTreeState.mjs.map +1 -1
  400. package/dist/private/utils/number.cjs +2 -1
  401. package/dist/private/utils/number.cjs.map +1 -1
  402. package/dist/private/utils/number.js +2 -1
  403. package/dist/private/utils/number.js.map +1 -1
  404. package/dist/private/utils/number.mjs +2 -1
  405. package/dist/private/utils/number.mjs.map +1 -1
  406. package/dist/private/utils/useControlledState.cjs.map +1 -1
  407. package/dist/private/utils/useControlledState.js.map +1 -1
  408. package/dist/private/utils/useControlledState.mjs.map +1 -1
  409. package/dist/private/virtualizer/Layout.cjs.map +1 -1
  410. package/dist/private/virtualizer/Layout.js.map +1 -1
  411. package/dist/private/virtualizer/Layout.mjs.map +1 -1
  412. package/dist/private/virtualizer/LayoutInfo.cjs +4 -2
  413. package/dist/private/virtualizer/LayoutInfo.cjs.map +1 -1
  414. package/dist/private/virtualizer/LayoutInfo.js +4 -2
  415. package/dist/private/virtualizer/LayoutInfo.js.map +1 -1
  416. package/dist/private/virtualizer/LayoutInfo.mjs +4 -2
  417. package/dist/private/virtualizer/LayoutInfo.mjs.map +1 -1
  418. package/dist/private/virtualizer/Rect.cjs +4 -0
  419. package/dist/private/virtualizer/Rect.cjs.map +1 -1
  420. package/dist/private/virtualizer/Rect.js +4 -0
  421. package/dist/private/virtualizer/Rect.js.map +1 -1
  422. package/dist/private/virtualizer/Rect.mjs +4 -0
  423. package/dist/private/virtualizer/Rect.mjs.map +1 -1
  424. package/dist/private/virtualizer/ReusableView.cjs.map +1 -1
  425. package/dist/private/virtualizer/ReusableView.js.map +1 -1
  426. package/dist/private/virtualizer/ReusableView.mjs.map +1 -1
  427. package/dist/private/virtualizer/Size.cjs.map +1 -1
  428. package/dist/private/virtualizer/Size.js.map +1 -1
  429. package/dist/private/virtualizer/Size.mjs.map +1 -1
  430. package/dist/private/virtualizer/Virtualizer.cjs +4 -4
  431. package/dist/private/virtualizer/Virtualizer.cjs.map +1 -1
  432. package/dist/private/virtualizer/Virtualizer.js +4 -4
  433. package/dist/private/virtualizer/Virtualizer.js.map +1 -1
  434. package/dist/private/virtualizer/Virtualizer.mjs +4 -4
  435. package/dist/private/virtualizer/Virtualizer.mjs.map +1 -1
  436. package/dist/private/virtualizer/useVirtualizerState.cjs.map +1 -1
  437. package/dist/private/virtualizer/useVirtualizerState.js.map +1 -1
  438. package/dist/private/virtualizer/useVirtualizerState.mjs.map +1 -1
  439. package/dist/types/exports/useCalendarState.d.ts +1 -1
  440. package/dist/types/src/autocomplete/useAutocompleteState.d.ts +4 -1
  441. package/dist/types/src/calendar/types.d.ts +50 -14
  442. package/dist/types/src/calendar/useCalendarState.d.ts +20 -6
  443. package/dist/types/src/calendar/useRangeCalendarState.d.ts +14 -5
  444. package/dist/types/src/calendar/utils.d.ts +1 -0
  445. package/dist/types/src/checkbox/useCheckboxGroupState.d.ts +1 -0
  446. package/dist/types/src/collections/useCollection.d.ts +1 -1
  447. package/dist/types/src/color/useColorAreaState.d.ts +21 -8
  448. package/dist/types/src/color/useColorFieldState.d.ts +2 -3
  449. package/dist/types/src/color/useColorSliderState.d.ts +4 -1
  450. package/dist/types/src/color/useColorWheelState.d.ts +5 -1
  451. package/dist/types/src/combobox/useComboBoxState.d.ts +19 -6
  452. package/dist/types/src/data/useAsyncList.d.ts +2 -2
  453. package/dist/types/src/data/useListData.d.ts +13 -1
  454. package/dist/types/src/data/useTreeData.d.ts +11 -0
  455. package/dist/types/src/datepicker/IncompleteDate.d.ts +11 -5
  456. package/dist/types/src/datepicker/types.d.ts +37 -11
  457. package/dist/types/src/datepicker/useDateFieldState.d.ts +13 -4
  458. package/dist/types/src/datepicker/useDatePickerState.d.ts +10 -4
  459. package/dist/types/src/datepicker/useDateRangePickerState.d.ts +12 -3
  460. package/dist/types/src/dnd/useDraggableCollectionState.d.ts +4 -1
  461. package/dist/types/src/form/useFormValidationState.d.ts +4 -1
  462. package/dist/types/src/grid/GridCollection.d.ts +2 -1
  463. package/dist/types/src/grid/useGridState.d.ts +7 -3
  464. package/dist/types/src/layout/GridLayout.d.ts +18 -2
  465. package/dist/types/src/layout/ListLayout.d.ts +34 -12
  466. package/dist/types/src/layout/TableLayout.d.ts +11 -4
  467. package/dist/types/src/layout/WaterfallLayout.d.ts +9 -2
  468. package/dist/types/src/list/useListState.d.ts +2 -2
  469. package/dist/types/src/menu/useMenuTriggerState.d.ts +3 -1
  470. package/dist/types/src/menu/useSubmenuTriggerState.d.ts +2 -2
  471. package/dist/types/src/numberfield/useNumberFieldState.d.ts +15 -11
  472. package/dist/types/src/radio/useRadioGroupState.d.ts +4 -1
  473. package/dist/types/src/select/useSelectState.d.ts +13 -2
  474. package/dist/types/src/selection/types.d.ts +4 -1
  475. package/dist/types/src/selection/useMultipleSelectionState.d.ts +2 -0
  476. package/dist/types/src/slider/useSliderState.d.ts +22 -2
  477. package/dist/types/src/table/Column.d.ts +4 -1
  478. package/dist/types/src/table/Row.d.ts +5 -3
  479. package/dist/types/src/table/TableBody.d.ts +3 -2
  480. package/dist/types/src/table/TableCollection.d.ts +4 -1
  481. package/dist/types/src/table/TableColumnLayout.d.ts +4 -1
  482. package/dist/types/src/table/TableHeader.d.ts +7 -3
  483. package/dist/types/src/table/TableUtils.d.ts +19 -16
  484. package/dist/types/src/table/useTableColumnResizeState.d.ts +5 -3
  485. package/dist/types/src/table/useTableState.d.ts +15 -6
  486. package/dist/types/src/table/useTreeGridState.d.ts +3 -2
  487. package/dist/types/src/toggle/useToggleGroupState.d.ts +1 -0
  488. package/dist/types/src/toggle/useToggleState.d.ts +2 -1
  489. package/dist/types/src/tooltip/useTooltipTriggerState.d.ts +8 -2
  490. package/dist/types/src/tree/useTreeState.d.ts +1 -1
  491. package/dist/types/src/utils/number.d.ts +2 -1
  492. package/dist/types/src/virtualizer/Layout.d.ts +5 -2
  493. package/dist/types/src/virtualizer/LayoutInfo.d.ts +10 -3
  494. package/dist/types/src/virtualizer/Rect.d.ts +4 -0
  495. package/dist/types/src/virtualizer/Virtualizer.d.ts +5 -4
  496. package/package.json +8 -7
@@ -1 +1 @@
1
- {"mappings":";;AAAA;;;;;;;;;;CAUC;AAcM,MAAM;IAoCX,OAAuB;QACrB,IAAI,MAAM,IAAI,0CAAe,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS;QAC1D,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG;QAClB,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI;QACpB,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK;QACtB,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG;QAClB,IAAI,IAAI,GAAG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Q,KACV,QAAQ;QAGV,IAAI,MAAM,KAAK,GAAG,CAAC;QACnB,IAAI,SAAS,GACX,QAAQ,KAAK,IAAI,CAAC,QAAQ,OAAO;aAEjC,QAAQ,KAAK,KAAK,CAAC,QAAQ,OAAO;QAGpC,IAAI,QAAQ,KACV,QAAQ;IAEZ,OAAO;QACL,SAAS;QACT,IAAI,QAAQ,KACV,QAAQ,MAAO,CAAA,MAAM,QAAQ,CAAA;aACxB,IAAI,QAAQ,KACjB,QAAQ,MAAO,CAAA,QAAQ,MAAM,CAAA;IAEjC;IAEA,OAAO;AACT;AAEA,SAAS,kCAAY,IAAY,EAAE,SAAoB;IACrD,IAAI,YAA2B,QAAQ,KAAK,IAAI;IAChD,OAAQ;QACN,KAAK;YACH,kDAAkD;YAClD,IAAI,QAAQ,IACV,QAAQ;YAEV;QACF,KAAK;YACH,qDAAqD;YACrD,IAAI,SAAS,GACX,OAAO;iBACF,IAAI,OAAO,IAChB,QAAQ;YAEV;QACF,KAAK;YACH,kCAAkC;YAClC,YAAY;YACZ;QACF,KAAK;YACH,+EAA+E;YAC/E,QAAQ;YACR,YAAY;IAChB;IAEA,OAAO;QAAC;QAAW;KAAK;AAC1B;AAEA,SAAS,oCAAc,IAAY,EAAE,SAAiB,EAAE,SAAoB;IAC1E,OAAQ;QACN,KAAK;YACH,IAAI,cAAc,GAChB,QAAQ;YAEV;QACF,KAAK;YACH,IAAI,SAAS,IACX,OAAO;YAET,IAAI,cAAc,GAChB,QAAQ;YAEV;QACF,KAAK;YACH,QAAQ;YACR;IACJ;IAEA,OAAO;AACT","sources":["packages/react-stately/src/datepicker/IncompleteDate.ts"],"sourcesContent":["/*\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AnyDateTime, Calendar, CalendarDate, ZonedDateTime} from '@internationalized/date';\nimport {DateSegmentType} from './useDateFieldState';\nimport {DateValue} from './types';\n\ntype HourCycle = 'h12' | 'h11' | 'h23' | 'h24';\n\n/**\n * This class represents a date that is incomplete or otherwise invalid as a result of user editing.\n * For example, it can represent temporary dates such as February 31st if the user edits the day before the month.\n * Times are represented according to an hour cycle rather than always in 24 hour time. This enables the user to adjust\n * the day period (e.g. am/pm) independently from the hour.\n */\nexport class IncompleteDate {\n calendar: Calendar;\n era: string | null;\n year: number | null;\n month: number | null;\n day: number | null;\n hour: number | null;\n hourCycle: HourCycle;\n dayPeriod: number | null;\n minute: number | null;\n second: number | null;\n millisecond: number | null;\n offset: number | null;\n\n constructor(calendar: Calendar, hourCycle: HourCycle, dateValue?: Partial<Omit<AnyDateTime, 'copy'>> | null) {\n this.era = dateValue?.era ?? null;\n this.calendar = calendar;\n this.year = dateValue?.year ?? null;\n this.month = dateValue?.month ?? null;\n this.day = dateValue?.day ?? null;\n this.hour = dateValue?.hour ?? null;\n this.hourCycle = hourCycle;\n this.dayPeriod = null;\n this.minute = dateValue?.minute ?? null;\n this.second = dateValue?.second ?? null;\n this.millisecond = dateValue?.millisecond ?? null;\n this.offset = 'offset' in (dateValue ?? {}) ? (dateValue as any).offset : null;\n\n // Convert the hour from 24 hour time to the given hour cycle.\n if (this.hour != null) {\n let [dayPeriod, hour] = toHourCycle(this.hour, hourCycle);\n this.dayPeriod = dayPeriod;\n this.hour = hour;\n }\n }\n\n copy(): IncompleteDate {\n let res = new IncompleteDate(this.calendar, this.hourCycle);\n res.era = this.era;\n res.year = this.year;\n res.month = this.month;\n res.day = this.day;\n res.hour = this.hour;\n res.dayPeriod = this.dayPeriod;\n res.minute = this.minute;\n res.second = this.second;\n res.millisecond = this.millisecond;\n res.offset = this.offset;\n return res;\n }\n\n /** Checks whether all the specified segments have a value. */\n isComplete(segments: DateSegmentType[]) {\n return segments.every(segment => this[segment] != null);\n }\n\n /** Checks whether the given date value matches this value for the specified segments. */\n validate(dt: DateValue, segments: DateSegmentType[]) {\n return segments.every(segment => {\n if ((segment === 'hour' || segment === 'dayPeriod') && 'hour' in dt) {\n let [dayPeriod, hour] = toHourCycle(dt.hour, this.hourCycle);\n return this.dayPeriod === dayPeriod && this.hour === hour;\n }\n return this[segment] === dt[segment];\n });\n }\n\n /** Checks if the date is empty (i.e. all specified segments are null). */\n isCleared(segments: DateSegmentType[]): boolean {\n return segments.every(segment => this[segment] === null);\n }\n\n /** Sets the given field. */\n set(field: DateSegmentType, value: number | string, placeholder: DateValue): IncompleteDate {\n let result = this.copy();\n result[field] = value;\n if (field === 'hour' && result.dayPeriod == null && 'hour' in placeholder) {\n result.dayPeriod = toHourCycle(placeholder.hour, this.hourCycle)[0];\n }\n if (field === 'year' && result.era == null) {\n result.era = placeholder.era;\n }\n\n // clear offset when a date/time field changes since it may no longer be valid\n if (field !== 'second' && field !== 'literal' && field !== 'timeZoneName') {\n result.offset = null;\n }\n return result;\n }\n\n /** Sets the given field to null. */\n clear(field: DateSegmentType): IncompleteDate {\n let result = this.copy();\n // @ts-ignore\n result[field] = null;\n if (field === 'year') {\n result.era = null;\n }\n\n // clear offset when a field is cleared since it may no longer be valid\n result.offset = null;\n return result;\n }\n\n /** Increments or decrements the given field. If it is null, then it is set to the placeholder value. */\n cycle(field: DateSegmentType, amount: number, placeholder: DateValue, displaySegments: DateSegmentType[]): IncompleteDate {\n let res = this.copy();\n\n // If field is null, default to placeholder.\n if (res[field] == null && field !== 'dayPeriod' && field !== 'era') {\n if (field === 'hour' && 'hour' in placeholder) {\n let [dayPeriod, hour] = toHourCycle(placeholder.hour, this.hourCycle);\n res.dayPeriod = dayPeriod;\n res.hour = hour;\n } else {\n res[field] = placeholder[field];\n }\n if (field === 'year' && res.era == null) {\n res.era = placeholder.era;\n }\n\n return res;\n }\n\n switch (field) {\n case 'era': {\n let eras = this.calendar.getEras();\n let index = eras.indexOf(res.era!);\n index = cycleValue(index, amount, 0, eras.length - 1);\n res.era = eras[index];\n break;\n }\n case 'year': {\n // Use CalendarDate to cycle so that we update the era when going between 1 AD and 1 BC.\n let date = new CalendarDate(this.calendar, this.era ?? placeholder.era, this.year ?? placeholder.year, this.month ?? 1, this.day ?? 1);\n date = date.cycle(field, amount, {round: field === 'year'});\n res.era = date.era;\n res.year = date.year;\n break;\n }\n case 'month':\n res.month = cycleValue(res.month ?? 1, amount, 1, this.calendar.getMaximumMonthsInYear());\n break;\n case 'day':\n // Allow incrementing up to the maximum number of days in any month.\n res.day = cycleValue(res.day ?? 1, amount, 1, this.calendar.getMaximumDaysInMonth());\n break;\n case 'hour': {\n // if date is fully defined or it is just a time field, and we have a time zone, use toValue to get a ZonedDateTime to cycle\n // so DST fallback is properly handled\n let hasDateSegements = displaySegments.some(s => ['year', 'month', 'day'].includes(s));\n if ('timeZone' in placeholder && (!hasDateSegements || (res.year != null && res.month != null && res.day != null))) {\n let date = this.toValue(placeholder) as ZonedDateTime;\n date = date.cycle('hour', amount, {hourCycle: this.hourCycle === 'h12' ? 12 : 24, round: false});\n let [dayPeriod, adjustedHour] = toHourCycle(date.hour, this.hourCycle);\n res.hour = adjustedHour;\n res.dayPeriod = dayPeriod;\n res.offset = date.offset;\n } else {\n let hours = res.hour ?? 0;\n let limits = this.getSegmentLimits('hour')!;\n res.hour = cycleValue(hours, amount, limits.minValue, limits.maxValue);\n if (res.dayPeriod == null && 'hour' in placeholder) {\n res.dayPeriod = toHourCycle(placeholder.hour, this.hourCycle)[0];\n }\n }\n break;\n }\n case 'dayPeriod':\n res.dayPeriod = cycleValue(res.dayPeriod ?? 0, amount, 0, 1);\n break;\n case 'minute':\n res.minute = cycleValue(res.minute ?? 0, amount, 0, 59, true);\n break;\n case 'second':\n res.second = cycleValue(res.second ?? 0, amount, 0, 59, true);\n break;\n }\n\n return res;\n }\n\n /** Converts the incomplete date to a full date value, using the provided value for any unset fields. */\n toValue(value: DateValue): DateValue {\n if ('hour' in value) {\n let hour = this.hour;\n if (hour != null) {\n hour = fromHourCycle(hour, this.dayPeriod ?? 0, this.hourCycle);\n } else if (this.hourCycle === 'h12' || this.hourCycle === 'h11') {\n hour = this.dayPeriod === 1 ? 12 : 0;\n }\n\n let res = value.set({\n era: this.era ?? value.era,\n year: this.year ?? value.year,\n month: this.month ?? value.month,\n day: this.day ?? value.day,\n hour: hour ?? value.hour,\n minute: this.minute ?? value.minute,\n second: this.second ?? value.second,\n millisecond: this.millisecond ?? value.millisecond\n });\n\n if ('offset' in res && this.offset != null && res.offset !== this.offset) {\n res = res.add({milliseconds: res.offset - this.offset});\n }\n\n return res;\n } else {\n return value.set({\n era: this.era ?? value.era,\n year: this.year ?? value.year,\n month: this.month ?? value.month,\n day: this.day ?? value.day\n });\n }\n }\n\n getSegmentLimits(type: string): {value: number | null, minValue: number, maxValue: number} | undefined {\n switch (type) {\n case 'era': {\n let eras = this.calendar.getEras();\n return {\n value: this.era != null ? eras.indexOf(this.era) : eras.length - 1,\n minValue: 0,\n maxValue: eras.length - 1\n };\n }\n case 'year':\n return {\n value: this.year,\n minValue: 1,\n maxValue: 9999\n };\n case 'month':\n return {\n value: this.month,\n minValue: 1,\n maxValue: this.calendar.getMaximumMonthsInYear()\n };\n case 'day':\n return {\n value: this.day,\n minValue: 1,\n maxValue: this.calendar.getMaximumDaysInMonth()\n };\n case 'dayPeriod': {\n return {\n value: this.dayPeriod,\n minValue: 0,\n maxValue: 1\n };\n }\n case 'hour': {\n let minValue = 0;\n let maxValue = 23;\n if (this.hourCycle === 'h12') {\n minValue = 1;\n maxValue = 12;\n } else if (this.hourCycle === 'h11') {\n minValue = 0;\n maxValue = 11;\n }\n\n return {\n value: this.hour,\n minValue,\n maxValue\n };\n }\n case 'minute':\n return {\n value: this.minute,\n minValue: 0,\n maxValue: 59\n };\n case 'second':\n return {\n value: this.second,\n minValue: 0,\n maxValue: 59\n };\n }\n }\n}\n\nfunction cycleValue(value: number, amount: number, min: number, max: number, round = false) {\n if (round) {\n value += Math.sign(amount);\n\n if (value < min) {\n value = max;\n }\n\n let div = Math.abs(amount);\n if (amount > 0) {\n value = Math.ceil(value / div) * div;\n } else {\n value = Math.floor(value / div) * div;\n }\n\n if (value > max) {\n value = min;\n }\n } else {\n value += amount;\n if (value < min) {\n value = max - (min - value - 1);\n } else if (value > max) {\n value = min + (value - max - 1);\n }\n }\n\n return value;\n}\n\nfunction toHourCycle(hour: number, hourCycle: HourCycle): [number | null, number] {\n let dayPeriod: number | null = hour >= 12 ? 1 : 0;\n switch (hourCycle) {\n case 'h11':\n // Hours are numbered from 0 to 11. Used in Japan.\n if (hour >= 12) {\n hour -= 12;\n }\n break;\n case 'h12':\n // Hours are numbered from 12 (representing 0) to 11.\n if (hour === 0) {\n hour = 12;\n } else if (hour > 12) {\n hour -= 12;\n }\n break;\n case 'h23':\n // 24 hour time, numbered 0 to 23.\n dayPeriod = null;\n break;\n case 'h24':\n // 24 hour time numbered 24 to 23. Unused but supported by Intl.DateTimeFormat.\n hour += 1;\n dayPeriod = null;\n }\n\n return [dayPeriod, hour];\n}\n\nfunction fromHourCycle(hour: number, dayPeriod: number, hourCycle: HourCycle): number {\n switch (hourCycle) {\n case 'h11':\n if (dayPeriod === 1) {\n hour += 12;\n }\n break;\n case 'h12':\n if (hour === 12) {\n hour = 0;\n }\n if (dayPeriod === 1) {\n hour += 12;\n }\n break;\n case 'h24':\n hour -= 1;\n break;\n }\n\n return hour;\n}\n"],"names":[],"version":3,"file":"IncompleteDate.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC;AAcM,MAAM;IAwCX,OAAuB;QACrB,IAAI,MAAM,IAAI,0CAAe,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS;QAC1D,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG;QAClB,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI;QACpB,IAAI,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AAK;IACxF,IAAI,OAAO;QACT,SAAS,KAAK,IAAI,CAAC;QAEnB,IAAI,QAAQ,KACV,QAAQ;QAGV,IAAI,MAAM,KAAK,GAAG,CAAC;QACnB,IAAI,SAAS,GACX,QAAQ,KAAK,IAAI,CAAC,QAAQ,OAAO;aAEjC,QAAQ,KAAK,KAAK,CAAC,QAAQ,OAAO;QAGpC,IAAI,QAAQ,KACV,QAAQ;IAEZ,OAAO;QACL,SAAS;QACT,IAAI,QAAQ,KACV,QAAQ,MAAO,CAAA,MAAM,QAAQ,CAAA;aACxB,IAAI,QAAQ,KACjB,QAAQ,MAAO,CAAA,QAAQ,MAAM,CAAA;IAEjC;IAEA,OAAO;AACT;AAEA,SAAS,kCAAY,IAAY,EAAE,SAAoB;IACrD,IAAI,YAA2B,QAAQ,KAAK,IAAI;IAChD,OAAQ;QACN,KAAK;YACH,kDAAkD;YAClD,IAAI,QAAQ,IACV,QAAQ;YAEV;QACF,KAAK;YACH,qDAAqD;YACrD,IAAI,SAAS,GACX,OAAO;iBACF,IAAI,OAAO,IAChB,QAAQ;YAEV;QACF,KAAK;YACH,kCAAkC;YAClC,YAAY;YACZ;QACF,KAAK;YACH,+EAA+E;YAC/E,QAAQ;YACR,YAAY;IAChB;IAEA,OAAO;QAAC;QAAW;KAAK;AAC1B;AAEA,SAAS,oCAAc,IAAY,EAAE,SAAiB,EAAE,SAAoB;IAC1E,OAAQ;QACN,KAAK;YACH,IAAI,cAAc,GAChB,QAAQ;YAEV;QACF,KAAK;YACH,IAAI,SAAS,IACX,OAAO;YAET,IAAI,cAAc,GAChB,QAAQ;YAEV;QACF,KAAK;YACH,QAAQ;YACR;IACJ;IAEA,OAAO;AACT","sources":["packages/react-stately/src/datepicker/IncompleteDate.ts"],"sourcesContent":["/*\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AnyDateTime, Calendar, CalendarDate, ZonedDateTime} from '@internationalized/date';\nimport {DateSegmentType} from './useDateFieldState';\nimport {DateValue} from './types';\n\ntype HourCycle = 'h12' | 'h11' | 'h23' | 'h24';\n\n/**\n * This class represents a date that is incomplete or otherwise invalid as a result of user editing.\n * For example, it can represent temporary dates such as February 31st if the user edits the day\n * before the month. Times are represented according to an hour cycle rather than always in 24 hour\n * time. This enables the user to adjust the day period (e.g. am/pm) independently from the hour.\n */\nexport class IncompleteDate {\n calendar: Calendar;\n era: string | null;\n year: number | null;\n month: number | null;\n day: number | null;\n hour: number | null;\n hourCycle: HourCycle;\n dayPeriod: number | null;\n minute: number | null;\n second: number | null;\n millisecond: number | null;\n offset: number | null;\n\n constructor(\n calendar: Calendar,\n hourCycle: HourCycle,\n dateValue?: Partial<Omit<AnyDateTime, 'copy'>> | null\n ) {\n this.era = dateValue?.era ?? null;\n this.calendar = calendar;\n this.year = dateValue?.year ?? null;\n this.month = dateValue?.month ?? null;\n this.day = dateValue?.day ?? null;\n this.hour = dateValue?.hour ?? null;\n this.hourCycle = hourCycle;\n this.dayPeriod = null;\n this.minute = dateValue?.minute ?? null;\n this.second = dateValue?.second ?? null;\n this.millisecond = dateValue?.millisecond ?? null;\n this.offset = 'offset' in (dateValue ?? {}) ? (dateValue as any).offset : null;\n\n // Convert the hour from 24 hour time to the given hour cycle.\n if (this.hour != null) {\n let [dayPeriod, hour] = toHourCycle(this.hour, hourCycle);\n this.dayPeriod = dayPeriod;\n this.hour = hour;\n }\n }\n\n copy(): IncompleteDate {\n let res = new IncompleteDate(this.calendar, this.hourCycle);\n res.era = this.era;\n res.year = this.year;\n res.month = this.month;\n res.day = this.day;\n res.hour = this.hour;\n res.dayPeriod = this.dayPeriod;\n res.minute = this.minute;\n res.second = this.second;\n res.millisecond = this.millisecond;\n res.offset = this.offset;\n return res;\n }\n\n /** Checks whether all the specified segments have a value. */\n isComplete(segments: DateSegmentType[]) {\n return segments.every(segment => this[segment] != null);\n }\n\n /** Checks whether the given date value matches this value for the specified segments. */\n validate(dt: DateValue, segments: DateSegmentType[]) {\n return segments.every(segment => {\n if ((segment === 'hour' || segment === 'dayPeriod') && 'hour' in dt) {\n let [dayPeriod, hour] = toHourCycle(dt.hour, this.hourCycle);\n return this.dayPeriod === dayPeriod && this.hour === hour;\n }\n return this[segment] === dt[segment];\n });\n }\n\n /** Checks if the date is empty (i.e. all specified segments are null). */\n isCleared(segments: DateSegmentType[]): boolean {\n return segments.every(segment => this[segment] === null);\n }\n\n /** Sets the given field. */\n set(field: DateSegmentType, value: number | string, placeholder: DateValue): IncompleteDate {\n let result = this.copy();\n result[field] = value;\n if (field === 'hour' && result.dayPeriod == null && 'hour' in placeholder) {\n result.dayPeriod = toHourCycle(placeholder.hour, this.hourCycle)[0];\n }\n if (field === 'year' && result.era == null) {\n result.era = placeholder.era;\n }\n\n // clear offset when a date/time field changes since it may no longer be valid\n if (field !== 'second' && field !== 'literal' && field !== 'timeZoneName') {\n result.offset = null;\n }\n return result;\n }\n\n /** Sets the given field to null. */\n clear(field: DateSegmentType): IncompleteDate {\n let result = this.copy();\n // @ts-ignore\n result[field] = null;\n if (field === 'year') {\n result.era = null;\n }\n\n // clear offset when a field is cleared since it may no longer be valid\n result.offset = null;\n return result;\n }\n\n /**\n * Increments or decrements the given field. If it is null, then it is set to the placeholder\n * value.\n */\n cycle(\n field: DateSegmentType,\n amount: number,\n placeholder: DateValue,\n displaySegments: DateSegmentType[]\n ): IncompleteDate {\n let res = this.copy();\n\n // If field is null, default to placeholder.\n if (res[field] == null && field !== 'dayPeriod' && field !== 'era') {\n if (field === 'hour' && 'hour' in placeholder) {\n let [dayPeriod, hour] = toHourCycle(placeholder.hour, this.hourCycle);\n res.dayPeriod = dayPeriod;\n res.hour = hour;\n } else {\n res[field] = placeholder[field];\n }\n if (field === 'year' && res.era == null) {\n res.era = placeholder.era;\n }\n\n return res;\n }\n\n switch (field) {\n case 'era': {\n let eras = this.calendar.getEras();\n let index = eras.indexOf(res.era!);\n index = cycleValue(index, amount, 0, eras.length - 1);\n res.era = eras[index];\n break;\n }\n case 'year': {\n // Use CalendarDate to cycle so that we update the era when going between 1 AD and 1 BC.\n let date = new CalendarDate(\n this.calendar,\n this.era ?? placeholder.era,\n this.year ?? placeholder.year,\n this.month ?? 1,\n this.day ?? 1\n );\n date = date.cycle(field, amount, {round: field === 'year'});\n res.era = date.era;\n res.year = date.year;\n break;\n }\n case 'month':\n res.month = cycleValue(res.month ?? 1, amount, 1, this.calendar.getMaximumMonthsInYear());\n break;\n case 'day':\n // Allow incrementing up to the maximum number of days in any month.\n res.day = cycleValue(res.day ?? 1, amount, 1, this.calendar.getMaximumDaysInMonth());\n break;\n case 'hour': {\n // if date is fully defined or it is just a time field, and we have a time zone, use toValue to get a ZonedDateTime to cycle\n // so DST fallback is properly handled\n let hasDateSegements = displaySegments.some(s => ['year', 'month', 'day'].includes(s));\n if (\n 'timeZone' in placeholder &&\n (!hasDateSegements || (res.year != null && res.month != null && res.day != null))\n ) {\n let date = this.toValue(placeholder) as ZonedDateTime;\n date = date.cycle('hour', amount, {\n hourCycle: this.hourCycle === 'h12' ? 12 : 24,\n round: false\n });\n let [dayPeriod, adjustedHour] = toHourCycle(date.hour, this.hourCycle);\n res.hour = adjustedHour;\n res.dayPeriod = dayPeriod;\n res.offset = date.offset;\n } else {\n let hours = res.hour ?? 0;\n let limits = this.getSegmentLimits('hour')!;\n res.hour = cycleValue(hours, amount, limits.minValue, limits.maxValue);\n if (res.dayPeriod == null && 'hour' in placeholder) {\n res.dayPeriod = toHourCycle(placeholder.hour, this.hourCycle)[0];\n }\n }\n break;\n }\n case 'dayPeriod':\n res.dayPeriod = cycleValue(res.dayPeriod ?? 0, amount, 0, 1);\n break;\n case 'minute':\n res.minute = cycleValue(res.minute ?? 0, amount, 0, 59, true);\n break;\n case 'second':\n res.second = cycleValue(res.second ?? 0, amount, 0, 59, true);\n break;\n }\n\n return res;\n }\n\n /**\n * Converts the incomplete date to a full date value, using the provided value for any unset\n * fields.\n */\n toValue(value: DateValue): DateValue {\n if ('hour' in value) {\n let hour = this.hour;\n if (hour != null) {\n hour = fromHourCycle(hour, this.dayPeriod ?? 0, this.hourCycle);\n } else if (this.hourCycle === 'h12' || this.hourCycle === 'h11') {\n hour = this.dayPeriod === 1 ? 12 : 0;\n }\n\n let res = value.set({\n era: this.era ?? value.era,\n year: this.year ?? value.year,\n month: this.month ?? value.month,\n day: this.day ?? value.day,\n hour: hour ?? value.hour,\n minute: this.minute ?? value.minute,\n second: this.second ?? value.second,\n millisecond: this.millisecond ?? value.millisecond\n });\n\n if ('offset' in res && this.offset != null && res.offset !== this.offset) {\n res = res.add({milliseconds: res.offset - this.offset});\n }\n\n return res;\n } else {\n return value.set({\n era: this.era ?? value.era,\n year: this.year ?? value.year,\n month: this.month ?? value.month,\n day: this.day ?? value.day\n });\n }\n }\n\n getSegmentLimits(\n type: string\n ): {value: number | null; minValue: number; maxValue: number} | undefined {\n switch (type) {\n case 'era': {\n let eras = this.calendar.getEras();\n return {\n value: this.era != null ? eras.indexOf(this.era) : eras.length - 1,\n minValue: 0,\n maxValue: eras.length - 1\n };\n }\n case 'year':\n return {\n value: this.year,\n minValue: 1,\n maxValue: 9999\n };\n case 'month':\n return {\n value: this.month,\n minValue: 1,\n maxValue: this.calendar.getMaximumMonthsInYear()\n };\n case 'day':\n return {\n value: this.day,\n minValue: 1,\n maxValue: this.calendar.getMaximumDaysInMonth()\n };\n case 'dayPeriod': {\n return {\n value: this.dayPeriod,\n minValue: 0,\n maxValue: 1\n };\n }\n case 'hour': {\n let minValue = 0;\n let maxValue = 23;\n if (this.hourCycle === 'h12') {\n minValue = 1;\n maxValue = 12;\n } else if (this.hourCycle === 'h11') {\n minValue = 0;\n maxValue = 11;\n }\n\n return {\n value: this.hour,\n minValue,\n maxValue\n };\n }\n case 'minute':\n return {\n value: this.minute,\n minValue: 0,\n maxValue: 59\n };\n case 'second':\n return {\n value: this.second,\n minValue: 0,\n maxValue: 59\n };\n }\n }\n}\n\nfunction cycleValue(value: number, amount: number, min: number, max: number, round = false) {\n if (round) {\n value += Math.sign(amount);\n\n if (value < min) {\n value = max;\n }\n\n let div = Math.abs(amount);\n if (amount > 0) {\n value = Math.ceil(value / div) * div;\n } else {\n value = Math.floor(value / div) * div;\n }\n\n if (value > max) {\n value = min;\n }\n } else {\n value += amount;\n if (value < min) {\n value = max - (min - value - 1);\n } else if (value > max) {\n value = min + (value - max - 1);\n }\n }\n\n return value;\n}\n\nfunction toHourCycle(hour: number, hourCycle: HourCycle): [number | null, number] {\n let dayPeriod: number | null = hour >= 12 ? 1 : 0;\n switch (hourCycle) {\n case 'h11':\n // Hours are numbered from 0 to 11. Used in Japan.\n if (hour >= 12) {\n hour -= 12;\n }\n break;\n case 'h12':\n // Hours are numbered from 12 (representing 0) to 11.\n if (hour === 0) {\n hour = 12;\n } else if (hour > 12) {\n hour -= 12;\n }\n break;\n case 'h23':\n // 24 hour time, numbered 0 to 23.\n dayPeriod = null;\n break;\n case 'h24':\n // 24 hour time numbered 24 to 23. Unused but supported by Intl.DateTimeFormat.\n hour += 1;\n dayPeriod = null;\n }\n\n return [dayPeriod, hour];\n}\n\nfunction fromHourCycle(hour: number, dayPeriod: number, hourCycle: HourCycle): number {\n switch (hourCycle) {\n case 'h11':\n if (dayPeriod === 1) {\n hour += 12;\n }\n break;\n case 'h12':\n if (hour === 12) {\n hour = 0;\n }\n if (dayPeriod === 1) {\n hour += 12;\n }\n break;\n case 'h24':\n hour -= 1;\n break;\n }\n\n return hour;\n}\n"],"names":[],"version":3,"file":"IncompleteDate.js.map"}
@@ -79,7 +79,10 @@ class $0e8931c783099b4f$export$ae165b50d181e1ef {
79
79
  result.offset = null;
80
80
  return result;
81
81
  }
82
- /** Increments or decrements the given field. If it is null, then it is set to the placeholder value. */ cycle(field, amount, placeholder, displaySegments) {
82
+ /**
83
+ * Increments or decrements the given field. If it is null, then it is set to the placeholder
84
+ * value.
85
+ */ cycle(field, amount, placeholder, displaySegments) {
83
86
  let res = this.copy();
84
87
  // If field is null, default to placeholder.
85
88
  if (res[field] == null && field !== 'dayPeriod' && field !== 'era') {
@@ -157,7 +160,10 @@ class $0e8931c783099b4f$export$ae165b50d181e1ef {
157
160
  }
158
161
  return res;
159
162
  }
160
- /** Converts the incomplete date to a full date value, using the provided value for any unset fields. */ toValue(value) {
163
+ /**
164
+ * Converts the incomplete date to a full date value, using the provided value for any unset
165
+ * fields.
166
+ */ toValue(value) {
161
167
  if ('hour' in value) {
162
168
  let hour = this.hour;
163
169
  if (hour != null) hour = $0e8931c783099b4f$var$fromHourCycle(hour, this.dayPeriod ?? 0, this.hourCycle);
@@ -1 +1 @@
1
- {"mappings":";;AAAA;;;;;;;;;;CAUC;AAcM,MAAM;IAcX,YAAY,QAAkB,EAAE,SAAoB,EAAE,SAAqD,CAAE;QAC3G,IAAI,CAAC,GAAG,GAAG,WAAW,OAAO;QAC7B,IAAI,CAAC,QAAQ,GAAG;QAChB,IAAI,CAAC,IAAI,GAAG,WAAW,QAAQ;QAC/B,IAAI,CAAC,KAAK,GAAG,WAAW,SAAS;QACjC,IAAI,CAAC,GAAG,GAAG,WAAW,OAAO;QAC7B,IAAI,CAAC,IAAI,GAAG,WAAW,QAAQ;QAC/B,IAAI,CAAC,SAAS,GAAG;QACjB,IAAI,CAAC,SAAS,GAAG;QACjB,IAAI,CAAC,MAAM,GAAG,WAAW,UAAU;QACnC,IAAI,CAAC,MAAM,GAAG,WAAW,UAAU;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,eAAe;QAC7C,IAAI,CAAC,MAAM,GAAG,YAAa,CAAA,aAAa,CAAC,CAAA,IAAK,AAAC,UAAkB,MAAM,GAAG;QAE1E,8DAA8D;QAC9D,IAAI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KACjB,QAAQ,MAAO,CAAA,QAAQ,MAAM,CAAA;IAEjC;IAEA,OAAO;AACT;AAEA,SAAS,kCAAY,IAAY,EAAE,SAAoB;IACrD,IAAI,YAA2B,QAAQ,KAAK,IAAI;IAChD,OAAQ;QACN,KAAK;YACH,kDAAkD;YAClD,IAAI,QAAQ,IACV,QAAQ;YAEV;QACF,KAAK;YACH,qDAAqD;YACrD,IAAI,SAAS,GACX,OAAO;iBACF,IAAI,OAAO,IAChB,QAAQ;YAEV;QACF,KAAK;YACH,kCAAkC;YAClC,YAAY;YACZ;QACF,KAAK;YACH,+EAA+E;YAC/E,QAAQ;YACR,YAAY;IAChB;IAEA,OAAO;QAAC;QAAW;KAAK;AAC1B;AAEA,SAAS,oCAAc,IAAY,EAAE,SAAiB,EAAE,SAAoB;IAC1E,OAAQ;QACN,KAAK;YACH,IAAI,cAAc,GAChB,QAAQ;YAEV;QACF,KAAK;YACH,IAAI,SAAS,IACX,OAAO;YAET,IAAI,cAAc,GAChB,QAAQ;YAEV;QACF,KAAK;YACH,QAAQ;YACR;IACJ;IAEA,OAAO;AACT","sources":["packages/react-stately/src/datepicker/IncompleteDate.ts"],"sourcesContent":["/*\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AnyDateTime, Calendar, CalendarDate, ZonedDateTime} from '@internationalized/date';\nimport {DateSegmentType} from './useDateFieldState';\nimport {DateValue} from './types';\n\ntype HourCycle = 'h12' | 'h11' | 'h23' | 'h24';\n\n/**\n * This class represents a date that is incomplete or otherwise invalid as a result of user editing.\n * For example, it can represent temporary dates such as February 31st if the user edits the day before the month.\n * Times are represented according to an hour cycle rather than always in 24 hour time. This enables the user to adjust\n * the day period (e.g. am/pm) independently from the hour.\n */\nexport class IncompleteDate {\n calendar: Calendar;\n era: string | null;\n year: number | null;\n month: number | null;\n day: number | null;\n hour: number | null;\n hourCycle: HourCycle;\n dayPeriod: number | null;\n minute: number | null;\n second: number | null;\n millisecond: number | null;\n offset: number | null;\n\n constructor(calendar: Calendar, hourCycle: HourCycle, dateValue?: Partial<Omit<AnyDateTime, 'copy'>> | null) {\n this.era = dateValue?.era ?? null;\n this.calendar = calendar;\n this.year = dateValue?.year ?? null;\n this.month = dateValue?.month ?? null;\n this.day = dateValue?.day ?? null;\n this.hour = dateValue?.hour ?? null;\n this.hourCycle = hourCycle;\n this.dayPeriod = null;\n this.minute = dateValue?.minute ?? null;\n this.second = dateValue?.second ?? null;\n this.millisecond = dateValue?.millisecond ?? null;\n this.offset = 'offset' in (dateValue ?? {}) ? (dateValue as any).offset : null;\n\n // Convert the hour from 24 hour time to the given hour cycle.\n if (this.hour != null) {\n let [dayPeriod, hour] = toHourCycle(this.hour, hourCycle);\n this.dayPeriod = dayPeriod;\n this.hour = hour;\n }\n }\n\n copy(): IncompleteDate {\n let res = new IncompleteDate(this.calendar, this.hourCycle);\n res.era = this.era;\n res.year = this.year;\n res.month = this.month;\n res.day = this.day;\n res.hour = this.hour;\n res.dayPeriod = this.dayPeriod;\n res.minute = this.minute;\n res.second = this.second;\n res.millisecond = this.millisecond;\n res.offset = this.offset;\n return res;\n }\n\n /** Checks whether all the specified segments have a value. */\n isComplete(segments: DateSegmentType[]) {\n return segments.every(segment => this[segment] != null);\n }\n\n /** Checks whether the given date value matches this value for the specified segments. */\n validate(dt: DateValue, segments: DateSegmentType[]) {\n return segments.every(segment => {\n if ((segment === 'hour' || segment === 'dayPeriod') && 'hour' in dt) {\n let [dayPeriod, hour] = toHourCycle(dt.hour, this.hourCycle);\n return this.dayPeriod === dayPeriod && this.hour === hour;\n }\n return this[segment] === dt[segment];\n });\n }\n\n /** Checks if the date is empty (i.e. all specified segments are null). */\n isCleared(segments: DateSegmentType[]): boolean {\n return segments.every(segment => this[segment] === null);\n }\n\n /** Sets the given field. */\n set(field: DateSegmentType, value: number | string, placeholder: DateValue): IncompleteDate {\n let result = this.copy();\n result[field] = value;\n if (field === 'hour' && result.dayPeriod == null && 'hour' in placeholder) {\n result.dayPeriod = toHourCycle(placeholder.hour, this.hourCycle)[0];\n }\n if (field === 'year' && result.era == null) {\n result.era = placeholder.era;\n }\n\n // clear offset when a date/time field changes since it may no longer be valid\n if (field !== 'second' && field !== 'literal' && field !== 'timeZoneName') {\n result.offset = null;\n }\n return result;\n }\n\n /** Sets the given field to null. */\n clear(field: DateSegmentType): IncompleteDate {\n let result = this.copy();\n // @ts-ignore\n result[field] = null;\n if (field === 'year') {\n result.era = null;\n }\n\n // clear offset when a field is cleared since it may no longer be valid\n result.offset = null;\n return result;\n }\n\n /** Increments or decrements the given field. If it is null, then it is set to the placeholder value. */\n cycle(field: DateSegmentType, amount: number, placeholder: DateValue, displaySegments: DateSegmentType[]): IncompleteDate {\n let res = this.copy();\n\n // If field is null, default to placeholder.\n if (res[field] == null && field !== 'dayPeriod' && field !== 'era') {\n if (field === 'hour' && 'hour' in placeholder) {\n let [dayPeriod, hour] = toHourCycle(placeholder.hour, this.hourCycle);\n res.dayPeriod = dayPeriod;\n res.hour = hour;\n } else {\n res[field] = placeholder[field];\n }\n if (field === 'year' && res.era == null) {\n res.era = placeholder.era;\n }\n\n return res;\n }\n\n switch (field) {\n case 'era': {\n let eras = this.calendar.getEras();\n let index = eras.indexOf(res.era!);\n index = cycleValue(index, amount, 0, eras.length - 1);\n res.era = eras[index];\n break;\n }\n case 'year': {\n // Use CalendarDate to cycle so that we update the era when going between 1 AD and 1 BC.\n let date = new CalendarDate(this.calendar, this.era ?? placeholder.era, this.year ?? placeholder.year, this.month ?? 1, this.day ?? 1);\n date = date.cycle(field, amount, {round: field === 'year'});\n res.era = date.era;\n res.year = date.year;\n break;\n }\n case 'month':\n res.month = cycleValue(res.month ?? 1, amount, 1, this.calendar.getMaximumMonthsInYear());\n break;\n case 'day':\n // Allow incrementing up to the maximum number of days in any month.\n res.day = cycleValue(res.day ?? 1, amount, 1, this.calendar.getMaximumDaysInMonth());\n break;\n case 'hour': {\n // if date is fully defined or it is just a time field, and we have a time zone, use toValue to get a ZonedDateTime to cycle\n // so DST fallback is properly handled\n let hasDateSegements = displaySegments.some(s => ['year', 'month', 'day'].includes(s));\n if ('timeZone' in placeholder && (!hasDateSegements || (res.year != null && res.month != null && res.day != null))) {\n let date = this.toValue(placeholder) as ZonedDateTime;\n date = date.cycle('hour', amount, {hourCycle: this.hourCycle === 'h12' ? 12 : 24, round: false});\n let [dayPeriod, adjustedHour] = toHourCycle(date.hour, this.hourCycle);\n res.hour = adjustedHour;\n res.dayPeriod = dayPeriod;\n res.offset = date.offset;\n } else {\n let hours = res.hour ?? 0;\n let limits = this.getSegmentLimits('hour')!;\n res.hour = cycleValue(hours, amount, limits.minValue, limits.maxValue);\n if (res.dayPeriod == null && 'hour' in placeholder) {\n res.dayPeriod = toHourCycle(placeholder.hour, this.hourCycle)[0];\n }\n }\n break;\n }\n case 'dayPeriod':\n res.dayPeriod = cycleValue(res.dayPeriod ?? 0, amount, 0, 1);\n break;\n case 'minute':\n res.minute = cycleValue(res.minute ?? 0, amount, 0, 59, true);\n break;\n case 'second':\n res.second = cycleValue(res.second ?? 0, amount, 0, 59, true);\n break;\n }\n\n return res;\n }\n\n /** Converts the incomplete date to a full date value, using the provided value for any unset fields. */\n toValue(value: DateValue): DateValue {\n if ('hour' in value) {\n let hour = this.hour;\n if (hour != null) {\n hour = fromHourCycle(hour, this.dayPeriod ?? 0, this.hourCycle);\n } else if (this.hourCycle === 'h12' || this.hourCycle === 'h11') {\n hour = this.dayPeriod === 1 ? 12 : 0;\n }\n\n let res = value.set({\n era: this.era ?? value.era,\n year: this.year ?? value.year,\n month: this.month ?? value.month,\n day: this.day ?? value.day,\n hour: hour ?? value.hour,\n minute: this.minute ?? value.minute,\n second: this.second ?? value.second,\n millisecond: this.millisecond ?? value.millisecond\n });\n\n if ('offset' in res && this.offset != null && res.offset !== this.offset) {\n res = res.add({milliseconds: res.offset - this.offset});\n }\n\n return res;\n } else {\n return value.set({\n era: this.era ?? value.era,\n year: this.year ?? value.year,\n month: this.month ?? value.month,\n day: this.day ?? value.day\n });\n }\n }\n\n getSegmentLimits(type: string): {value: number | null, minValue: number, maxValue: number} | undefined {\n switch (type) {\n case 'era': {\n let eras = this.calendar.getEras();\n return {\n value: this.era != null ? eras.indexOf(this.era) : eras.length - 1,\n minValue: 0,\n maxValue: eras.length - 1\n };\n }\n case 'year':\n return {\n value: this.year,\n minValue: 1,\n maxValue: 9999\n };\n case 'month':\n return {\n value: this.month,\n minValue: 1,\n maxValue: this.calendar.getMaximumMonthsInYear()\n };\n case 'day':\n return {\n value: this.day,\n minValue: 1,\n maxValue: this.calendar.getMaximumDaysInMonth()\n };\n case 'dayPeriod': {\n return {\n value: this.dayPeriod,\n minValue: 0,\n maxValue: 1\n };\n }\n case 'hour': {\n let minValue = 0;\n let maxValue = 23;\n if (this.hourCycle === 'h12') {\n minValue = 1;\n maxValue = 12;\n } else if (this.hourCycle === 'h11') {\n minValue = 0;\n maxValue = 11;\n }\n\n return {\n value: this.hour,\n minValue,\n maxValue\n };\n }\n case 'minute':\n return {\n value: this.minute,\n minValue: 0,\n maxValue: 59\n };\n case 'second':\n return {\n value: this.second,\n minValue: 0,\n maxValue: 59\n };\n }\n }\n}\n\nfunction cycleValue(value: number, amount: number, min: number, max: number, round = false) {\n if (round) {\n value += Math.sign(amount);\n\n if (value < min) {\n value = max;\n }\n\n let div = Math.abs(amount);\n if (amount > 0) {\n value = Math.ceil(value / div) * div;\n } else {\n value = Math.floor(value / div) * div;\n }\n\n if (value > max) {\n value = min;\n }\n } else {\n value += amount;\n if (value < min) {\n value = max - (min - value - 1);\n } else if (value > max) {\n value = min + (value - max - 1);\n }\n }\n\n return value;\n}\n\nfunction toHourCycle(hour: number, hourCycle: HourCycle): [number | null, number] {\n let dayPeriod: number | null = hour >= 12 ? 1 : 0;\n switch (hourCycle) {\n case 'h11':\n // Hours are numbered from 0 to 11. Used in Japan.\n if (hour >= 12) {\n hour -= 12;\n }\n break;\n case 'h12':\n // Hours are numbered from 12 (representing 0) to 11.\n if (hour === 0) {\n hour = 12;\n } else if (hour > 12) {\n hour -= 12;\n }\n break;\n case 'h23':\n // 24 hour time, numbered 0 to 23.\n dayPeriod = null;\n break;\n case 'h24':\n // 24 hour time numbered 24 to 23. Unused but supported by Intl.DateTimeFormat.\n hour += 1;\n dayPeriod = null;\n }\n\n return [dayPeriod, hour];\n}\n\nfunction fromHourCycle(hour: number, dayPeriod: number, hourCycle: HourCycle): number {\n switch (hourCycle) {\n case 'h11':\n if (dayPeriod === 1) {\n hour += 12;\n }\n break;\n case 'h12':\n if (hour === 12) {\n hour = 0;\n }\n if (dayPeriod === 1) {\n hour += 12;\n }\n break;\n case 'h24':\n hour -= 1;\n break;\n }\n\n return hour;\n}\n"],"names":[],"version":3,"file":"IncompleteDate.mjs.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC;AAcM,MAAM;IAcX,YACE,QAAkB,EAClB,SAAoB,EACpB,SAAqD,CACrD;QACA,IAAI,CAAC,GAAG,GAAG,WAAW,OAAO;QAC7B,IAAI,CAAC,QAAQ,GAAG;QAChB,IAAI,CAAC,IAAI,GAAG,WAAW,QAAQ;QAC/B,IAAI,CAAC,KAAK,GAAG,WAAW,SAAS;QACjC,IAAI,CAAC,GAAG,GAAG,WAAW,OAAO;QAC7B,IAAI,CAAC,IAAI,GAAG,WAAW,QAAQ;QAC/B,IAAI,CAAC,SAAS,GAAG;QACjB,IAAI,CAAC,SAAS,GAAG;QACjB,IAAI,CAAC,MAAM,GAAG,WAAW,UAAU;QACnC,IAAI,CAAC,MAAM,GAAG,WAAW,UAAU;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,e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AAQ;IAEZ,OAAO;QACL,SAAS;QACT,IAAI,QAAQ,KACV,QAAQ,MAAO,CAAA,MAAM,QAAQ,CAAA;aACxB,IAAI,QAAQ,KACjB,QAAQ,MAAO,CAAA,QAAQ,MAAM,CAAA;IAEjC;IAEA,OAAO;AACT;AAEA,SAAS,kCAAY,IAAY,EAAE,SAAoB;IACrD,IAAI,YAA2B,QAAQ,KAAK,IAAI;IAChD,OAAQ;QACN,KAAK;YACH,kDAAkD;YAClD,IAAI,QAAQ,IACV,QAAQ;YAEV;QACF,KAAK;YACH,qDAAqD;YACrD,IAAI,SAAS,GACX,OAAO;iBACF,IAAI,OAAO,IAChB,QAAQ;YAEV;QACF,KAAK;YACH,kCAAkC;YAClC,YAAY;YACZ;QACF,KAAK;YACH,+EAA+E;YAC/E,QAAQ;YACR,YAAY;IAChB;IAEA,OAAO;QAAC;QAAW;KAAK;AAC1B;AAEA,SAAS,oCAAc,IAAY,EAAE,SAAiB,EAAE,SAAoB;IAC1E,OAAQ;QACN,KAAK;YACH,IAAI,cAAc,GAChB,QAAQ;YAEV;QACF,KAAK;YACH,IAAI,SAAS,IACX,OAAO;YAET,IAAI,cAAc,GAChB,QAAQ;YAEV;QACF,KAAK;YACH,QAAQ;YACR;IACJ;IAEA,OAAO;AACT","sources":["packages/react-stately/src/datepicker/IncompleteDate.ts"],"sourcesContent":["/*\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AnyDateTime, Calendar, CalendarDate, ZonedDateTime} from '@internationalized/date';\nimport {DateSegmentType} from './useDateFieldState';\nimport {DateValue} from './types';\n\ntype HourCycle = 'h12' | 'h11' | 'h23' | 'h24';\n\n/**\n * This class represents a date that is incomplete or otherwise invalid as a result of user editing.\n * For example, it can represent temporary dates such as February 31st if the user edits the day\n * before the month. Times are represented according to an hour cycle rather than always in 24 hour\n * time. This enables the user to adjust the day period (e.g. am/pm) independently from the hour.\n */\nexport class IncompleteDate {\n calendar: Calendar;\n era: string | null;\n year: number | null;\n month: number | null;\n day: number | null;\n hour: number | null;\n hourCycle: HourCycle;\n dayPeriod: number | null;\n minute: number | null;\n second: number | null;\n millisecond: number | null;\n offset: number | null;\n\n constructor(\n calendar: Calendar,\n hourCycle: HourCycle,\n dateValue?: Partial<Omit<AnyDateTime, 'copy'>> | null\n ) {\n this.era = dateValue?.era ?? null;\n this.calendar = calendar;\n this.year = dateValue?.year ?? null;\n this.month = dateValue?.month ?? null;\n this.day = dateValue?.day ?? null;\n this.hour = dateValue?.hour ?? null;\n this.hourCycle = hourCycle;\n this.dayPeriod = null;\n this.minute = dateValue?.minute ?? null;\n this.second = dateValue?.second ?? null;\n this.millisecond = dateValue?.millisecond ?? null;\n this.offset = 'offset' in (dateValue ?? {}) ? (dateValue as any).offset : null;\n\n // Convert the hour from 24 hour time to the given hour cycle.\n if (this.hour != null) {\n let [dayPeriod, hour] = toHourCycle(this.hour, hourCycle);\n this.dayPeriod = dayPeriod;\n this.hour = hour;\n }\n }\n\n copy(): IncompleteDate {\n let res = new IncompleteDate(this.calendar, this.hourCycle);\n res.era = this.era;\n res.year = this.year;\n res.month = this.month;\n res.day = this.day;\n res.hour = this.hour;\n res.dayPeriod = this.dayPeriod;\n res.minute = this.minute;\n res.second = this.second;\n res.millisecond = this.millisecond;\n res.offset = this.offset;\n return res;\n }\n\n /** Checks whether all the specified segments have a value. */\n isComplete(segments: DateSegmentType[]) {\n return segments.every(segment => this[segment] != null);\n }\n\n /** Checks whether the given date value matches this value for the specified segments. */\n validate(dt: DateValue, segments: DateSegmentType[]) {\n return segments.every(segment => {\n if ((segment === 'hour' || segment === 'dayPeriod') && 'hour' in dt) {\n let [dayPeriod, hour] = toHourCycle(dt.hour, this.hourCycle);\n return this.dayPeriod === dayPeriod && this.hour === hour;\n }\n return this[segment] === dt[segment];\n });\n }\n\n /** Checks if the date is empty (i.e. all specified segments are null). */\n isCleared(segments: DateSegmentType[]): boolean {\n return segments.every(segment => this[segment] === null);\n }\n\n /** Sets the given field. */\n set(field: DateSegmentType, value: number | string, placeholder: DateValue): IncompleteDate {\n let result = this.copy();\n result[field] = value;\n if (field === 'hour' && result.dayPeriod == null && 'hour' in placeholder) {\n result.dayPeriod = toHourCycle(placeholder.hour, this.hourCycle)[0];\n }\n if (field === 'year' && result.era == null) {\n result.era = placeholder.era;\n }\n\n // clear offset when a date/time field changes since it may no longer be valid\n if (field !== 'second' && field !== 'literal' && field !== 'timeZoneName') {\n result.offset = null;\n }\n return result;\n }\n\n /** Sets the given field to null. */\n clear(field: DateSegmentType): IncompleteDate {\n let result = this.copy();\n // @ts-ignore\n result[field] = null;\n if (field === 'year') {\n result.era = null;\n }\n\n // clear offset when a field is cleared since it may no longer be valid\n result.offset = null;\n return result;\n }\n\n /**\n * Increments or decrements the given field. If it is null, then it is set to the placeholder\n * value.\n */\n cycle(\n field: DateSegmentType,\n amount: number,\n placeholder: DateValue,\n displaySegments: DateSegmentType[]\n ): IncompleteDate {\n let res = this.copy();\n\n // If field is null, default to placeholder.\n if (res[field] == null && field !== 'dayPeriod' && field !== 'era') {\n if (field === 'hour' && 'hour' in placeholder) {\n let [dayPeriod, hour] = toHourCycle(placeholder.hour, this.hourCycle);\n res.dayPeriod = dayPeriod;\n res.hour = hour;\n } else {\n res[field] = placeholder[field];\n }\n if (field === 'year' && res.era == null) {\n res.era = placeholder.era;\n }\n\n return res;\n }\n\n switch (field) {\n case 'era': {\n let eras = this.calendar.getEras();\n let index = eras.indexOf(res.era!);\n index = cycleValue(index, amount, 0, eras.length - 1);\n res.era = eras[index];\n break;\n }\n case 'year': {\n // Use CalendarDate to cycle so that we update the era when going between 1 AD and 1 BC.\n let date = new CalendarDate(\n this.calendar,\n this.era ?? placeholder.era,\n this.year ?? placeholder.year,\n this.month ?? 1,\n this.day ?? 1\n );\n date = date.cycle(field, amount, {round: field === 'year'});\n res.era = date.era;\n res.year = date.year;\n break;\n }\n case 'month':\n res.month = cycleValue(res.month ?? 1, amount, 1, this.calendar.getMaximumMonthsInYear());\n break;\n case 'day':\n // Allow incrementing up to the maximum number of days in any month.\n res.day = cycleValue(res.day ?? 1, amount, 1, this.calendar.getMaximumDaysInMonth());\n break;\n case 'hour': {\n // if date is fully defined or it is just a time field, and we have a time zone, use toValue to get a ZonedDateTime to cycle\n // so DST fallback is properly handled\n let hasDateSegements = displaySegments.some(s => ['year', 'month', 'day'].includes(s));\n if (\n 'timeZone' in placeholder &&\n (!hasDateSegements || (res.year != null && res.month != null && res.day != null))\n ) {\n let date = this.toValue(placeholder) as ZonedDateTime;\n date = date.cycle('hour', amount, {\n hourCycle: this.hourCycle === 'h12' ? 12 : 24,\n round: false\n });\n let [dayPeriod, adjustedHour] = toHourCycle(date.hour, this.hourCycle);\n res.hour = adjustedHour;\n res.dayPeriod = dayPeriod;\n res.offset = date.offset;\n } else {\n let hours = res.hour ?? 0;\n let limits = this.getSegmentLimits('hour')!;\n res.hour = cycleValue(hours, amount, limits.minValue, limits.maxValue);\n if (res.dayPeriod == null && 'hour' in placeholder) {\n res.dayPeriod = toHourCycle(placeholder.hour, this.hourCycle)[0];\n }\n }\n break;\n }\n case 'dayPeriod':\n res.dayPeriod = cycleValue(res.dayPeriod ?? 0, amount, 0, 1);\n break;\n case 'minute':\n res.minute = cycleValue(res.minute ?? 0, amount, 0, 59, true);\n break;\n case 'second':\n res.second = cycleValue(res.second ?? 0, amount, 0, 59, true);\n break;\n }\n\n return res;\n }\n\n /**\n * Converts the incomplete date to a full date value, using the provided value for any unset\n * fields.\n */\n toValue(value: DateValue): DateValue {\n if ('hour' in value) {\n let hour = this.hour;\n if (hour != null) {\n hour = fromHourCycle(hour, this.dayPeriod ?? 0, this.hourCycle);\n } else if (this.hourCycle === 'h12' || this.hourCycle === 'h11') {\n hour = this.dayPeriod === 1 ? 12 : 0;\n }\n\n let res = value.set({\n era: this.era ?? value.era,\n year: this.year ?? value.year,\n month: this.month ?? value.month,\n day: this.day ?? value.day,\n hour: hour ?? value.hour,\n minute: this.minute ?? value.minute,\n second: this.second ?? value.second,\n millisecond: this.millisecond ?? value.millisecond\n });\n\n if ('offset' in res && this.offset != null && res.offset !== this.offset) {\n res = res.add({milliseconds: res.offset - this.offset});\n }\n\n return res;\n } else {\n return value.set({\n era: this.era ?? value.era,\n year: this.year ?? value.year,\n month: this.month ?? value.month,\n day: this.day ?? value.day\n });\n }\n }\n\n getSegmentLimits(\n type: string\n ): {value: number | null; minValue: number; maxValue: number} | undefined {\n switch (type) {\n case 'era': {\n let eras = this.calendar.getEras();\n return {\n value: this.era != null ? eras.indexOf(this.era) : eras.length - 1,\n minValue: 0,\n maxValue: eras.length - 1\n };\n }\n case 'year':\n return {\n value: this.year,\n minValue: 1,\n maxValue: 9999\n };\n case 'month':\n return {\n value: this.month,\n minValue: 1,\n maxValue: this.calendar.getMaximumMonthsInYear()\n };\n case 'day':\n return {\n value: this.day,\n minValue: 1,\n maxValue: this.calendar.getMaximumDaysInMonth()\n };\n case 'dayPeriod': {\n return {\n value: this.dayPeriod,\n minValue: 0,\n maxValue: 1\n };\n }\n case 'hour': {\n let minValue = 0;\n let maxValue = 23;\n if (this.hourCycle === 'h12') {\n minValue = 1;\n maxValue = 12;\n } else if (this.hourCycle === 'h11') {\n minValue = 0;\n maxValue = 11;\n }\n\n return {\n value: this.hour,\n minValue,\n maxValue\n };\n }\n case 'minute':\n return {\n value: this.minute,\n minValue: 0,\n maxValue: 59\n };\n case 'second':\n return {\n value: this.second,\n minValue: 0,\n maxValue: 59\n };\n }\n }\n}\n\nfunction cycleValue(value: number, amount: number, min: number, max: number, round = false) {\n if (round) {\n value += Math.sign(amount);\n\n if (value < min) {\n value = max;\n }\n\n let div = Math.abs(amount);\n if (amount > 0) {\n value = Math.ceil(value / div) * div;\n } else {\n value = Math.floor(value / div) * div;\n }\n\n if (value > max) {\n value = min;\n }\n } else {\n value += amount;\n if (value < min) {\n value = max - (min - value - 1);\n } else if (value > max) {\n value = min + (value - max - 1);\n }\n }\n\n return value;\n}\n\nfunction toHourCycle(hour: number, hourCycle: HourCycle): [number | null, number] {\n let dayPeriod: number | null = hour >= 12 ? 1 : 0;\n switch (hourCycle) {\n case 'h11':\n // Hours are numbered from 0 to 11. Used in Japan.\n if (hour >= 12) {\n hour -= 12;\n }\n break;\n case 'h12':\n // Hours are numbered from 12 (representing 0) to 11.\n if (hour === 0) {\n hour = 12;\n } else if (hour > 12) {\n hour -= 12;\n }\n break;\n case 'h23':\n // 24 hour time, numbered 0 to 23.\n dayPeriod = null;\n break;\n case 'h24':\n // 24 hour time numbered 24 to 23. Unused but supported by Intl.DateTimeFormat.\n hour += 1;\n dayPeriod = null;\n }\n\n return [dayPeriod, hour];\n}\n\nfunction fromHourCycle(hour: number, dayPeriod: number, hourCycle: HourCycle): number {\n switch (hourCycle) {\n case 'h11':\n if (dayPeriod === 1) {\n hour += 12;\n }\n break;\n case 'h12':\n if (hour === 12) {\n hour = 0;\n }\n if (dayPeriod === 1) {\n hour += 12;\n }\n break;\n case 'h24':\n hour -= 1;\n break;\n }\n\n return hour;\n}\n"],"names":[],"version":3,"file":"IncompleteDate.mjs.map"}
@@ -366,6 +366,11 @@ const $a3cd970f716ed621$var$placeholders = new (0, $jmcWT$internationalizedstrin
366
366
  month: "\u043C\u043C",
367
367
  day: "\u0434\u0434"
368
368
  },
369
+ 'sr-Latn': {
370
+ year: 'gggg',
371
+ month: 'mm',
372
+ day: 'dd'
373
+ },
369
374
  sv: {
370
375
  year: "\xe5\xe5\xe5\xe5",
371
376
  month: 'mm',
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AAID,8EAA8E;AAC9E,4EAA4E;AA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AM;QAAQ,OAAO;QAAM,KAAK;IAAI;IAC1C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,KAAK;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IAC1C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,SAAS;QAAC,MAAM;QAAK,OAAO;QAAK,KAAK;IAAG;IACzC,SAAS;QAAC,MAAM;QAAK,OAAO;QAAK,KAAK;IAAG;AAC3C,GAAG;AAEI,SAAS,0CAAe,KAAa,EAAE,KAAa,EAAE,MAAc;IACzE,sEAAsE;IACtE,IAAI,UAAU,SAAS,UAAU,aAC/B,OAAO;IAGT,IAAI,UAAU,UAAU,UAAU,WAAW,UAAU,OACrD,OAAO,mCAAa,kBAAkB,CAAC,OAAO;IAGhD,gFAAgF;IAChF,OAAO;AACT","sources":["packages/react-stately/src/datepicker/placeholders.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {LocalizedStringDictionary} from '@internationalized/string';\n\n// These placeholders are based on the strings used by the <input type=\"date\">\n// implementations in Chrome and Firefox. Additional languages are supported\n// here than React Spectrum's typical translations.\nconst placeholders = new LocalizedStringDictionary({\n ach: {year: 'mwaka', month: 'dwe', day: 'nino'},\n af: {year: 'jjjj', month: 'mm', day: 'dd'},\n am: {year: 'ዓዓዓዓ', month: 'ሚሜ', day: 'ቀቀ'},\n an: {year: 'aaaa', month: 'mm', day: 'dd'},\n ar: {year: 'سنة', month: 'شهر', day: 'يوم'},\n ast: {year: 'aaaa', month: 'mm', day: 'dd'},\n az: {year: 'iiii', month: 'aa', day: 'gg'},\n be: {year: 'гггг', month: 'мм', day: 'дд'},\n bg: {year: 'гггг', month: 'мм', day: 'дд'},\n bn: {year: 'yyyy', month: 'মিমি', day: 'dd'},\n br: {year: 'bbbb', month: 'mm', day: 'dd'},\n bs: {year: 'gggg', month: 'mm', day: 'dd'},\n ca: {year: 'aaaa', month: 'mm', day: 'dd'},\n cak: {year: 'jjjj', month: 'ii', day: \"q'q'\"},\n ckb: {year: 'ساڵ', month: 'مانگ', day: 'ڕۆژ'},\n cs: {year: 'rrrr', month: 'mm', day: 'dd'},\n cy: {year: 'bbbb', month: 'mm', day: 'dd'},\n da: {year: 'åååå', month: 'mm', day: 'dd'},\n de: {year: 'jjjj', month: 'mm', day: 'tt'},\n dsb: {year: 'llll', month: 'mm', day: 'źź'},\n el: {year: 'εεεε', month: 'μμ', day: 'ηη'},\n en: {year: 'yyyy', month: 'mm', day: 'dd'},\n eo: {year: 'jjjj', month: 'mm', day: 'tt'},\n es: {year: 'aaaa', month: 'mm', day: 'dd'},\n et: {year: 'aaaa', month: 'kk', day: 'pp'},\n eu: {year: 'uuuu', month: 'hh', day: 'ee'},\n fa: {year: 'سال', month: 'ماه', day: 'روز'},\n ff: {year: 'hhhh', month: 'll', day: 'ññ'},\n fi: {year: 'vvvv', month: 'kk', day: 'pp'},\n fr: {year: 'aaaa', month: 'mm', day: 'jj'},\n fy: {year: 'jjjj', month: 'mm', day: 'dd'},\n ga: {year: 'bbbb', month: 'mm', day: 'll'},\n gd: {year: 'bbbb', month: 'mm', day: 'll'},\n gl: {year: 'aaaa', month: 'mm', day: 'dd'},\n he: {year: 'שנה', month: 'חודש', day: 'יום'},\n hr: {year: 'gggg', month: 'mm', day: 'dd'},\n hsb: {year: 'llll', month: 'mm', day: 'dd'},\n hu: {year: 'éééé', month: 'hh', day: 'nn'},\n ia: {year: 'aaaa', month: 'mm', day: 'dd'},\n id: {year: 'tttt', month: 'bb', day: 'hh'},\n is: {year: 'áááá', month: 'mm', day: 'dd'},\n it: {year: 'aaaa', month: 'mm', day: 'gg'},\n ja: {year: '年', month: '月', day: '日'},\n ka: {year: 'წწწწ', month: 'თთ', day: 'რრ'},\n kk: {year: 'жжжж', month: 'аа', day: 'кк'},\n kn: {year: 'ವವವವ', month: 'ಮಿಮೀ', day: 'ದಿದಿ'},\n ko: {year: '연도', month: '월', day: '일'},\n lb: {year: 'jjjj', month: 'mm', day: 'dd'},\n lo: {year: 'ປປປປ', month: 'ດດ', day: 'ວວ'},\n lt: {year: 'mmmm', month: 'mm', day: 'dd'},\n lv: {year: 'gggg', month: 'mm', day: 'dd'},\n meh: {year: 'aaaa', month: 'mm', day: 'dd'},\n ml: {year: 'വർഷം', month: 'മാസം', day: 'തീയതി'},\n ms: {year: 'tttt', month: 'mm', day: 'hh'},\n nb: {year: 'åååå', month: 'mm', day: 'dd'},\n nl: {year: 'jjjj', month: 'mm', day: 'dd'},\n nn: {year: 'åååå', month: 'mm', day: 'dd'},\n no: {year: 'åååå', month: 'mm', day: 'dd'},\n oc: {year: 'aaaa', month: 'mm', day: 'jj'},\n pl: {year: 'rrrr', month: 'mm', day: 'dd'},\n pt: {year: 'aaaa', month: 'mm', day: 'dd'},\n rm: {year: 'oooo', month: 'mm', day: 'dd'},\n ro: {year: 'aaaa', month: 'll', day: 'zz'},\n ru: {year: 'гггг', month: 'мм', day: 'дд'},\n sc: {year: 'aaaa', month: 'mm', day: 'dd'},\n scn: {year: 'aaaa', month: 'mm', day: 'jj'},\n sk: {year: 'rrrr', month: 'mm', day: 'dd'},\n sl: {year: 'llll', month: 'mm', day: 'dd'},\n sr: {year: 'гггг', month: 'мм', day: 'дд'},\n sv: {year: 'åååå', month: 'mm', day: 'dd'},\n szl: {year: 'rrrr', month: 'mm', day: 'dd'},\n tg: {year: 'сссс', month: 'мм', day: 'рр'},\n th: {year: 'ปปปป', month: 'ดด', day: 'วว'},\n tr: {year: 'yyyy', month: 'aa', day: 'gg'},\n uk: {year: 'рррр', month: 'мм', day: 'дд'},\n 'zh-CN': {year: '年', month: '月', day: '日'},\n 'zh-TW': {year: '年', month: '月', day: '日'}\n}, 'en');\n\nexport function getPlaceholder(field: string, value: string, locale: string): string {\n // Use the actual placeholder value for the era and day period fields.\n if (field === 'era' || field === 'dayPeriod') {\n return value;\n }\n\n if (field === 'year' || field === 'month' || field === 'day') {\n return placeholders.getStringForLocale(field, locale);\n }\n\n // For time fields (e.g. hour, minute, etc.), use two dashes as the placeholder.\n return '––';\n}\n"],"names":[],"version":3,"file":"placeholders.cjs.map"}
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AAID,8EAA8E;AAC9E,4EAA4E;AAC5E,mDAAmD;AACnD,MAAM,qCAAe,IAAI,CAAA,GAAA,wDAAwB,EAC/C;IACE,KAAK;QAAC,MAAM;QAAS,OAAO;QAAO,KAAK;IAAM;IAC9C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAO,OAAO;QAAO,KAAK;IAAK;IAC1C,KAAK;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IAC1C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IA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QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,SAAS;QAAC,MAAM;QAAK,OAAO;QAAK,KAAK;IAAG;IACzC,SAAS;QAAC,MAAM;QAAK,OAAO;QAAK,KAAK;IAAG;AAC3C,GACA;AAGK,SAAS,0CAAe,KAAa,EAAE,KAAa,EAAE,MAAc;IACzE,sEAAsE;IACtE,IAAI,UAAU,SAAS,UAAU,aAC/B,OAAO;IAGT,IAAI,UAAU,UAAU,UAAU,WAAW,UAAU,OACrD,OAAO,mCAAa,kBAAkB,CAAC,OAAO;IAGhD,gFAAgF;IAChF,OAAO;AACT","sources":["packages/react-stately/src/datepicker/placeholders.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {LocalizedStringDictionary} from '@internationalized/string';\n\n// These placeholders are based on the strings used by the <input type=\"date\">\n// implementations in Chrome and Firefox. Additional languages are supported\n// here than React Spectrum's typical translations.\nconst placeholders = new LocalizedStringDictionary(\n {\n ach: {year: 'mwaka', month: 'dwe', day: 'nino'},\n af: {year: 'jjjj', month: 'mm', day: 'dd'},\n am: {year: 'ዓዓዓዓ', month: 'ሚሜ', day: 'ቀቀ'},\n an: {year: 'aaaa', month: 'mm', day: 'dd'},\n ar: {year: 'سنة', month: 'شهر', day: 'يوم'},\n ast: {year: 'aaaa', month: 'mm', day: 'dd'},\n az: {year: 'iiii', month: 'aa', day: 'gg'},\n be: {year: 'гггг', month: 'мм', day: 'дд'},\n bg: {year: 'гггг', month: 'мм', day: 'дд'},\n bn: {year: 'yyyy', month: 'মিমি', day: 'dd'},\n br: {year: 'bbbb', month: 'mm', day: 'dd'},\n bs: {year: 'gggg', month: 'mm', day: 'dd'},\n ca: {year: 'aaaa', month: 'mm', day: 'dd'},\n cak: {year: 'jjjj', month: 'ii', day: \"q'q'\"},\n ckb: {year: 'ساڵ', month: 'مانگ', day: 'ڕۆژ'},\n cs: {year: 'rrrr', month: 'mm', day: 'dd'},\n cy: {year: 'bbbb', month: 'mm', day: 'dd'},\n da: {year: 'åååå', month: 'mm', day: 'dd'},\n de: {year: 'jjjj', month: 'mm', day: 'tt'},\n dsb: {year: 'llll', month: 'mm', day: 'źź'},\n el: {year: 'εεεε', month: 'μμ', day: 'ηη'},\n en: {year: 'yyyy', month: 'mm', day: 'dd'},\n eo: {year: 'jjjj', month: 'mm', day: 'tt'},\n es: {year: 'aaaa', month: 'mm', day: 'dd'},\n et: {year: 'aaaa', month: 'kk', day: 'pp'},\n eu: {year: 'uuuu', month: 'hh', day: 'ee'},\n fa: {year: 'سال', month: 'ماه', day: 'روز'},\n ff: {year: 'hhhh', month: 'll', day: 'ññ'},\n fi: {year: 'vvvv', month: 'kk', day: 'pp'},\n fr: {year: 'aaaa', month: 'mm', day: 'jj'},\n fy: {year: 'jjjj', month: 'mm', day: 'dd'},\n ga: {year: 'bbbb', month: 'mm', day: 'll'},\n gd: {year: 'bbbb', month: 'mm', day: 'll'},\n gl: {year: 'aaaa', month: 'mm', day: 'dd'},\n he: {year: 'שנה', month: 'חודש', day: 'יום'},\n hr: {year: 'gggg', month: 'mm', day: 'dd'},\n hsb: {year: 'llll', month: 'mm', day: 'dd'},\n hu: {year: 'éééé', month: 'hh', day: 'nn'},\n ia: {year: 'aaaa', month: 'mm', day: 'dd'},\n id: {year: 'tttt', month: 'bb', day: 'hh'},\n is: {year: 'áááá', month: 'mm', day: 'dd'},\n it: {year: 'aaaa', month: 'mm', day: 'gg'},\n ja: {year: '年', month: '月', day: '日'},\n ka: {year: 'წწწწ', month: 'თთ', day: 'რრ'},\n kk: {year: 'жжжж', month: 'аа', day: 'кк'},\n kn: {year: 'ವವವವ', month: 'ಮಿಮೀ', day: 'ದಿದಿ'},\n ko: {year: '연도', month: '월', day: '일'},\n lb: {year: 'jjjj', month: 'mm', day: 'dd'},\n lo: {year: 'ປປປປ', month: 'ດດ', day: 'ວວ'},\n lt: {year: 'mmmm', month: 'mm', day: 'dd'},\n lv: {year: 'gggg', month: 'mm', day: 'dd'},\n meh: {year: 'aaaa', month: 'mm', day: 'dd'},\n ml: {year: 'വർഷം', month: 'മാസം', day: 'തീയതി'},\n ms: {year: 'tttt', month: 'mm', day: 'hh'},\n nb: {year: 'åååå', month: 'mm', day: 'dd'},\n nl: {year: 'jjjj', month: 'mm', day: 'dd'},\n nn: {year: 'åååå', month: 'mm', day: 'dd'},\n no: {year: 'åååå', month: 'mm', day: 'dd'},\n oc: {year: 'aaaa', month: 'mm', day: 'jj'},\n pl: {year: 'rrrr', month: 'mm', day: 'dd'},\n pt: {year: 'aaaa', month: 'mm', day: 'dd'},\n rm: {year: 'oooo', month: 'mm', day: 'dd'},\n ro: {year: 'aaaa', month: 'll', day: 'zz'},\n ru: {year: 'гггг', month: 'мм', day: 'дд'},\n sc: {year: 'aaaa', month: 'mm', day: 'dd'},\n scn: {year: 'aaaa', month: 'mm', day: 'jj'},\n sk: {year: 'rrrr', month: 'mm', day: 'dd'},\n sl: {year: 'llll', month: 'mm', day: 'dd'},\n sr: {year: 'гггг', month: 'мм', day: 'дд'},\n 'sr-Latn': {year: 'gggg', month: 'mm', day: 'dd'},\n sv: {year: 'åååå', month: 'mm', day: 'dd'},\n szl: {year: 'rrrr', month: 'mm', day: 'dd'},\n tg: {year: 'сссс', month: 'мм', day: 'рр'},\n th: {year: 'ปปปป', month: 'ดด', day: 'วว'},\n tr: {year: 'yyyy', month: 'aa', day: 'gg'},\n uk: {year: 'рррр', month: 'мм', day: 'дд'},\n 'zh-CN': {year: '年', month: '月', day: '日'},\n 'zh-TW': {year: '年', month: '月', day: '日'}\n },\n 'en'\n);\n\nexport function getPlaceholder(field: string, value: string, locale: string): string {\n // Use the actual placeholder value for the era and day period fields.\n if (field === 'era' || field === 'dayPeriod') {\n return value;\n }\n\n if (field === 'year' || field === 'month' || field === 'day') {\n return placeholders.getStringForLocale(field, locale);\n }\n\n // For time fields (e.g. hour, minute, etc.), use two dashes as the placeholder.\n return '––';\n}\n"],"names":[],"version":3,"file":"placeholders.cjs.map"}
@@ -360,6 +360,11 @@ const $ce805244e23bbccf$var$placeholders = new (0, $b5gTA$LocalizedStringDiction
360
360
  month: "\u043C\u043C",
361
361
  day: "\u0434\u0434"
362
362
  },
363
+ 'sr-Latn': {
364
+ year: 'gggg',
365
+ month: 'mm',
366
+ day: 'dd'
367
+ },
363
368
  sv: {
364
369
  year: "\xe5\xe5\xe5\xe5",
365
370
  month: 'mm',
@@ -1 +1 @@
1
- {"mappings":";;AAAA;;;;;;;;;;CAUC;AAID,8EAA8E;AAC9E,4EAA4E;AAC5E,mDAAmD;AACnD,MAAM,qCAAe,IAAI,CAAA,GAAA,gCAAwB,EAAE;IACjD,KAAK;QAAC,MAAM;QAAS,OAAO;QAAO,KAAK;IAAM;IAC9C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAO,OAAO;QAAO,KAAK;IAAK;IAC1C,KAAK;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IAC1C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI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K,OAAO;QAAK,KAAK;IAAG;IACzC,SAAS;QAAC,MAAM;QAAK,OAAO;QAAK,KAAK;IAAG;AAC3C,GAAG;AAEI,SAAS,0CAAe,KAAa,EAAE,KAAa,EAAE,MAAc;IACzE,sEAAsE;IACtE,IAAI,UAAU,SAAS,UAAU,aAC/B,OAAO;IAGT,IAAI,UAAU,UAAU,UAAU,WAAW,UAAU,OACrD,OAAO,mCAAa,kBAAkB,CAAC,OAAO;IAGhD,gFAAgF;IAChF,OAAO;AACT","sources":["packages/react-stately/src/datepicker/placeholders.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {LocalizedStringDictionary} from '@internationalized/string';\n\n// These placeholders are based on the strings used by the <input type=\"date\">\n// implementations in Chrome and Firefox. Additional languages are supported\n// here than React Spectrum's typical translations.\nconst placeholders = new LocalizedStringDictionary({\n ach: {year: 'mwaka', month: 'dwe', day: 'nino'},\n af: {year: 'jjjj', month: 'mm', day: 'dd'},\n am: {year: 'ዓዓዓዓ', month: 'ሚሜ', day: 'ቀቀ'},\n an: {year: 'aaaa', month: 'mm', day: 'dd'},\n ar: {year: 'سنة', month: 'شهر', day: 'يوم'},\n ast: {year: 'aaaa', month: 'mm', day: 'dd'},\n az: {year: 'iiii', month: 'aa', day: 'gg'},\n be: {year: 'гггг', month: 'мм', day: 'дд'},\n bg: {year: 'гггг', month: 'мм', day: 'дд'},\n bn: {year: 'yyyy', month: 'মিমি', day: 'dd'},\n br: {year: 'bbbb', month: 'mm', day: 'dd'},\n bs: {year: 'gggg', month: 'mm', day: 'dd'},\n ca: {year: 'aaaa', month: 'mm', day: 'dd'},\n cak: {year: 'jjjj', month: 'ii', day: \"q'q'\"},\n ckb: {year: 'ساڵ', month: 'مانگ', day: 'ڕۆژ'},\n cs: {year: 'rrrr', month: 'mm', day: 'dd'},\n cy: {year: 'bbbb', month: 'mm', day: 'dd'},\n da: {year: 'åååå', month: 'mm', day: 'dd'},\n de: {year: 'jjjj', month: 'mm', day: 'tt'},\n dsb: {year: 'llll', month: 'mm', day: 'źź'},\n el: {year: 'εεεε', month: 'μμ', day: 'ηη'},\n en: {year: 'yyyy', month: 'mm', day: 'dd'},\n eo: {year: 'jjjj', month: 'mm', day: 'tt'},\n es: {year: 'aaaa', month: 'mm', day: 'dd'},\n et: {year: 'aaaa', month: 'kk', day: 'pp'},\n eu: {year: 'uuuu', month: 'hh', day: 'ee'},\n fa: {year: 'سال', month: 'ماه', day: 'روز'},\n ff: {year: 'hhhh', month: 'll', day: 'ññ'},\n fi: {year: 'vvvv', month: 'kk', day: 'pp'},\n fr: {year: 'aaaa', month: 'mm', day: 'jj'},\n fy: {year: 'jjjj', month: 'mm', day: 'dd'},\n ga: {year: 'bbbb', month: 'mm', day: 'll'},\n gd: {year: 'bbbb', month: 'mm', day: 'll'},\n gl: {year: 'aaaa', month: 'mm', day: 'dd'},\n he: {year: 'שנה', month: 'חודש', day: 'יום'},\n hr: {year: 'gggg', month: 'mm', day: 'dd'},\n hsb: {year: 'llll', month: 'mm', day: 'dd'},\n hu: {year: 'éééé', month: 'hh', day: 'nn'},\n ia: {year: 'aaaa', month: 'mm', day: 'dd'},\n id: {year: 'tttt', month: 'bb', day: 'hh'},\n is: {year: 'áááá', month: 'mm', day: 'dd'},\n it: {year: 'aaaa', month: 'mm', day: 'gg'},\n ja: {year: '年', month: '月', day: '日'},\n ka: {year: 'წწწწ', month: 'თთ', day: 'რრ'},\n kk: {year: 'жжжж', month: 'аа', day: 'кк'},\n kn: {year: 'ವವವವ', month: 'ಮಿಮೀ', day: 'ದಿದಿ'},\n ko: {year: '연도', month: '월', day: '일'},\n lb: {year: 'jjjj', month: 'mm', day: 'dd'},\n lo: {year: 'ປປປປ', month: 'ດດ', day: 'ວວ'},\n lt: {year: 'mmmm', month: 'mm', day: 'dd'},\n lv: {year: 'gggg', month: 'mm', day: 'dd'},\n meh: {year: 'aaaa', month: 'mm', day: 'dd'},\n ml: {year: 'വർഷം', month: 'മാസം', day: 'തീയതി'},\n ms: {year: 'tttt', month: 'mm', day: 'hh'},\n nb: {year: 'åååå', month: 'mm', day: 'dd'},\n nl: {year: 'jjjj', month: 'mm', day: 'dd'},\n nn: {year: 'åååå', month: 'mm', day: 'dd'},\n no: {year: 'åååå', month: 'mm', day: 'dd'},\n oc: {year: 'aaaa', month: 'mm', day: 'jj'},\n pl: {year: 'rrrr', month: 'mm', day: 'dd'},\n pt: {year: 'aaaa', month: 'mm', day: 'dd'},\n rm: {year: 'oooo', month: 'mm', day: 'dd'},\n ro: {year: 'aaaa', month: 'll', day: 'zz'},\n ru: {year: 'гггг', month: 'мм', day: 'дд'},\n sc: {year: 'aaaa', month: 'mm', day: 'dd'},\n scn: {year: 'aaaa', month: 'mm', day: 'jj'},\n sk: {year: 'rrrr', month: 'mm', day: 'dd'},\n sl: {year: 'llll', month: 'mm', day: 'dd'},\n sr: {year: 'гггг', month: 'мм', day: 'дд'},\n sv: {year: 'åååå', month: 'mm', day: 'dd'},\n szl: {year: 'rrrr', month: 'mm', day: 'dd'},\n tg: {year: 'сссс', month: 'мм', day: 'рр'},\n th: {year: 'ปปปป', month: 'ดด', day: 'วว'},\n tr: {year: 'yyyy', month: 'aa', day: 'gg'},\n uk: {year: 'рррр', month: 'мм', day: 'дд'},\n 'zh-CN': {year: '年', month: '月', day: '日'},\n 'zh-TW': {year: '年', month: '月', day: '日'}\n}, 'en');\n\nexport function getPlaceholder(field: string, value: string, locale: string): string {\n // Use the actual placeholder value for the era and day period fields.\n if (field === 'era' || field === 'dayPeriod') {\n return value;\n }\n\n if (field === 'year' || field === 'month' || field === 'day') {\n return placeholders.getStringForLocale(field, locale);\n }\n\n // For time fields (e.g. hour, minute, etc.), use two dashes as the placeholder.\n return '––';\n}\n"],"names":[],"version":3,"file":"placeholders.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC;AAID,8EAA8E;AAC9E,4EAA4E;AAC5E,mDAAmD;AACnD,MAAM,qCAAe,IAAI,CAAA,GAAA,gCAAwB,EAC/C;IACE,KAAK;QAAC,MAAM;QAAS,OAAO;QAAO,KAAK;IAAM;IAC9C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAO,OAAO;QAAO,KAAK;IAAK;IAC1C,KAAK;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IAC1C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAQ,KAAK;IAAI;IAC3C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,KAAK;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAM;IAC5C,KAAK;QAAC,MAAM;QAAO,OAAO;QAAQ,KAAK;IAAK;IAC5C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM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AAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,KAAK;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IAC1C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,WAAW;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IAChD,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,KAAK;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IAC1C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,SAAS;QAAC,MAAM;QAAK,OAAO;QAAK,KAAK;IAAG;IACzC,SAAS;QAAC,MAAM;QAAK,OAAO;QAAK,KAAK;IAAG;AAC3C,GACA;AAGK,SAAS,0CAAe,KAAa,EAAE,KAAa,EAAE,MAAc;IACzE,sEAAsE;IACtE,IAAI,UAAU,SAAS,UAAU,aAC/B,OAAO;IAGT,IAAI,UAAU,UAAU,UAAU,WAAW,UAAU,OACrD,OAAO,mCAAa,kBAAkB,CAAC,OAAO;IAGhD,gFAAgF;IAChF,OAAO;AACT","sources":["packages/react-stately/src/datepicker/placeholders.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {LocalizedStringDictionary} from '@internationalized/string';\n\n// These placeholders are based on the strings used by the <input type=\"date\">\n// implementations in Chrome and Firefox. Additional languages are supported\n// here than React Spectrum's typical translations.\nconst placeholders = new LocalizedStringDictionary(\n {\n ach: {year: 'mwaka', month: 'dwe', day: 'nino'},\n af: {year: 'jjjj', month: 'mm', day: 'dd'},\n am: {year: 'ዓዓዓዓ', month: 'ሚሜ', day: 'ቀቀ'},\n an: {year: 'aaaa', month: 'mm', day: 'dd'},\n ar: {year: 'سنة', month: 'شهر', day: 'يوم'},\n ast: {year: 'aaaa', month: 'mm', day: 'dd'},\n az: {year: 'iiii', month: 'aa', day: 'gg'},\n be: {year: 'гггг', month: 'мм', day: 'дд'},\n bg: {year: 'гггг', month: 'мм', day: 'дд'},\n bn: {year: 'yyyy', month: 'মিমি', day: 'dd'},\n br: {year: 'bbbb', month: 'mm', day: 'dd'},\n bs: {year: 'gggg', month: 'mm', day: 'dd'},\n ca: {year: 'aaaa', month: 'mm', day: 'dd'},\n cak: {year: 'jjjj', month: 'ii', day: \"q'q'\"},\n ckb: {year: 'ساڵ', month: 'مانگ', day: 'ڕۆژ'},\n cs: {year: 'rrrr', month: 'mm', day: 'dd'},\n cy: {year: 'bbbb', month: 'mm', day: 'dd'},\n da: {year: 'åååå', month: 'mm', day: 'dd'},\n de: {year: 'jjjj', month: 'mm', day: 'tt'},\n dsb: {year: 'llll', month: 'mm', day: 'źź'},\n el: {year: 'εεεε', month: 'μμ', day: 'ηη'},\n en: {year: 'yyyy', month: 'mm', day: 'dd'},\n eo: {year: 'jjjj', month: 'mm', day: 'tt'},\n es: {year: 'aaaa', month: 'mm', day: 'dd'},\n et: {year: 'aaaa', month: 'kk', day: 'pp'},\n eu: {year: 'uuuu', month: 'hh', day: 'ee'},\n fa: {year: 'سال', month: 'ماه', day: 'روز'},\n ff: {year: 'hhhh', month: 'll', day: 'ññ'},\n fi: {year: 'vvvv', month: 'kk', day: 'pp'},\n fr: {year: 'aaaa', month: 'mm', day: 'jj'},\n fy: {year: 'jjjj', month: 'mm', day: 'dd'},\n ga: {year: 'bbbb', month: 'mm', day: 'll'},\n gd: {year: 'bbbb', month: 'mm', day: 'll'},\n gl: {year: 'aaaa', month: 'mm', day: 'dd'},\n he: {year: 'שנה', month: 'חודש', day: 'יום'},\n hr: {year: 'gggg', month: 'mm', day: 'dd'},\n hsb: {year: 'llll', month: 'mm', day: 'dd'},\n hu: {year: 'éééé', month: 'hh', day: 'nn'},\n ia: {year: 'aaaa', month: 'mm', day: 'dd'},\n id: {year: 'tttt', month: 'bb', day: 'hh'},\n is: {year: 'áááá', month: 'mm', day: 'dd'},\n it: {year: 'aaaa', month: 'mm', day: 'gg'},\n ja: {year: '年', month: '月', day: '日'},\n ka: {year: 'წწწწ', month: 'თთ', day: 'რრ'},\n kk: {year: 'жжжж', month: 'аа', day: 'кк'},\n kn: {year: 'ವವವವ', month: 'ಮಿಮೀ', day: 'ದಿದಿ'},\n ko: {year: '연도', month: '월', day: '일'},\n lb: {year: 'jjjj', month: 'mm', day: 'dd'},\n lo: {year: 'ປປປປ', month: 'ດດ', day: 'ວວ'},\n lt: {year: 'mmmm', month: 'mm', day: 'dd'},\n lv: {year: 'gggg', month: 'mm', day: 'dd'},\n meh: {year: 'aaaa', month: 'mm', day: 'dd'},\n ml: {year: 'വർഷം', month: 'മാസം', day: 'തീയതി'},\n ms: {year: 'tttt', month: 'mm', day: 'hh'},\n nb: {year: 'åååå', month: 'mm', day: 'dd'},\n nl: {year: 'jjjj', month: 'mm', day: 'dd'},\n nn: {year: 'åååå', month: 'mm', day: 'dd'},\n no: {year: 'åååå', month: 'mm', day: 'dd'},\n oc: {year: 'aaaa', month: 'mm', day: 'jj'},\n pl: {year: 'rrrr', month: 'mm', day: 'dd'},\n pt: {year: 'aaaa', month: 'mm', day: 'dd'},\n rm: {year: 'oooo', month: 'mm', day: 'dd'},\n ro: {year: 'aaaa', month: 'll', day: 'zz'},\n ru: {year: 'гггг', month: 'мм', day: 'дд'},\n sc: {year: 'aaaa', month: 'mm', day: 'dd'},\n scn: {year: 'aaaa', month: 'mm', day: 'jj'},\n sk: {year: 'rrrr', month: 'mm', day: 'dd'},\n sl: {year: 'llll', month: 'mm', day: 'dd'},\n sr: {year: 'гггг', month: 'мм', day: 'дд'},\n 'sr-Latn': {year: 'gggg', month: 'mm', day: 'dd'},\n sv: {year: 'åååå', month: 'mm', day: 'dd'},\n szl: {year: 'rrrr', month: 'mm', day: 'dd'},\n tg: {year: 'сссс', month: 'мм', day: 'рр'},\n th: {year: 'ปปปป', month: 'ดด', day: 'วว'},\n tr: {year: 'yyyy', month: 'aa', day: 'gg'},\n uk: {year: 'рррр', month: 'мм', day: 'дд'},\n 'zh-CN': {year: '年', month: '月', day: '日'},\n 'zh-TW': {year: '年', month: '月', day: '日'}\n },\n 'en'\n);\n\nexport function getPlaceholder(field: string, value: string, locale: string): string {\n // Use the actual placeholder value for the era and day period fields.\n if (field === 'era' || field === 'dayPeriod') {\n return value;\n }\n\n if (field === 'year' || field === 'month' || field === 'day') {\n return placeholders.getStringForLocale(field, locale);\n }\n\n // For time fields (e.g. hour, minute, etc.), use two dashes as the placeholder.\n return '––';\n}\n"],"names":[],"version":3,"file":"placeholders.js.map"}
@@ -360,6 +360,11 @@ const $8e5fbb9a25791ca0$var$placeholders = new (0, $bwGbA$LocalizedStringDiction
360
360
  month: "\u043C\u043C",
361
361
  day: "\u0434\u0434"
362
362
  },
363
+ 'sr-Latn': {
364
+ year: 'gggg',
365
+ month: 'mm',
366
+ day: 'dd'
367
+ },
363
368
  sv: {
364
369
  year: "\xe5\xe5\xe5\xe5",
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AO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,KAAK;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IAC1C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,KAAK;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IAC1C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,SAAS;QAAC,MAAM;QAAK,OAAO;QAAK,KAAK;IAAG;IACzC,SAAS;QAAC,MAAM;QAAK,OAAO;QAAK,KAAK;IAAG;AAC3C,GAAG;AAEI,SAAS,0CAAe,KAAa,EAAE,KAAa,EAAE,MAAc;IACzE,sEAAsE;IACtE,IAAI,UAAU,SAAS,UAAU,aAC/B,OAAO;IAGT,IAAI,UAAU,UAAU,UAAU,WAAW,UAAU,OACrD,OAAO,mCAAa,kBAAkB,CAAC,OAAO;IAGhD,gFAAgF;IAChF,OAAO;AACT","sources":["packages/react-stately/src/datepicker/placeholders.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {LocalizedStringDictionary} from '@internationalized/string';\n\n// These placeholders are based on the strings used by the <input type=\"date\">\n// implementations in Chrome and Firefox. Additional languages are supported\n// here than React Spectrum's typical translations.\nconst placeholders = new LocalizedStringDictionary({\n ach: {year: 'mwaka', month: 'dwe', day: 'nino'},\n af: {year: 'jjjj', month: 'mm', day: 'dd'},\n am: {year: 'ዓዓዓዓ', month: 'ሚሜ', day: 'ቀቀ'},\n an: {year: 'aaaa', month: 'mm', day: 'dd'},\n ar: {year: 'سنة', month: 'شهر', day: 'يوم'},\n ast: {year: 'aaaa', month: 'mm', day: 'dd'},\n az: {year: 'iiii', month: 'aa', day: 'gg'},\n be: {year: 'гггг', month: 'мм', day: 'дд'},\n bg: {year: 'гггг', month: 'мм', day: 'дд'},\n bn: {year: 'yyyy', month: 'মিমি', day: 'dd'},\n br: {year: 'bbbb', month: 'mm', day: 'dd'},\n bs: {year: 'gggg', month: 'mm', day: 'dd'},\n ca: {year: 'aaaa', month: 'mm', day: 'dd'},\n cak: {year: 'jjjj', month: 'ii', day: \"q'q'\"},\n ckb: {year: 'ساڵ', month: 'مانگ', day: 'ڕۆژ'},\n cs: {year: 'rrrr', month: 'mm', day: 'dd'},\n cy: {year: 'bbbb', month: 'mm', day: 'dd'},\n da: {year: 'åååå', month: 'mm', day: 'dd'},\n de: {year: 'jjjj', month: 'mm', day: 'tt'},\n dsb: {year: 'llll', month: 'mm', day: 'źź'},\n el: {year: 'εεεε', month: 'μμ', day: 'ηη'},\n en: {year: 'yyyy', month: 'mm', day: 'dd'},\n eo: {year: 'jjjj', month: 'mm', day: 'tt'},\n es: {year: 'aaaa', month: 'mm', day: 'dd'},\n et: {year: 'aaaa', month: 'kk', day: 'pp'},\n eu: {year: 'uuuu', month: 'hh', day: 'ee'},\n fa: {year: 'سال', month: 'ماه', day: 'روز'},\n ff: {year: 'hhhh', month: 'll', day: 'ññ'},\n fi: {year: 'vvvv', month: 'kk', day: 'pp'},\n fr: {year: 'aaaa', month: 'mm', day: 'jj'},\n fy: {year: 'jjjj', month: 'mm', day: 'dd'},\n ga: {year: 'bbbb', month: 'mm', day: 'll'},\n gd: {year: 'bbbb', month: 'mm', day: 'll'},\n gl: {year: 'aaaa', month: 'mm', day: 'dd'},\n he: {year: 'שנה', month: 'חודש', day: 'יום'},\n hr: {year: 'gggg', month: 'mm', day: 'dd'},\n hsb: {year: 'llll', month: 'mm', day: 'dd'},\n hu: {year: 'éééé', month: 'hh', day: 'nn'},\n ia: {year: 'aaaa', month: 'mm', day: 'dd'},\n id: {year: 'tttt', month: 'bb', day: 'hh'},\n is: {year: 'áááá', month: 'mm', day: 'dd'},\n it: {year: 'aaaa', month: 'mm', day: 'gg'},\n ja: {year: '年', month: '月', day: '日'},\n ka: {year: 'წწწწ', month: 'თთ', day: 'რრ'},\n kk: {year: 'жжжж', month: 'аа', day: 'кк'},\n kn: {year: 'ವವವವ', month: 'ಮಿಮೀ', day: 'ದಿದಿ'},\n ko: {year: '연도', month: '월', day: '일'},\n lb: {year: 'jjjj', month: 'mm', day: 'dd'},\n lo: {year: 'ປປປປ', month: 'ດດ', day: 'ວວ'},\n lt: {year: 'mmmm', month: 'mm', day: 'dd'},\n lv: {year: 'gggg', month: 'mm', day: 'dd'},\n meh: {year: 'aaaa', month: 'mm', day: 'dd'},\n ml: {year: 'വർഷം', month: 'മാസം', day: 'തീയതി'},\n ms: {year: 'tttt', month: 'mm', day: 'hh'},\n nb: {year: 'åååå', month: 'mm', day: 'dd'},\n nl: {year: 'jjjj', month: 'mm', day: 'dd'},\n nn: {year: 'åååå', month: 'mm', day: 'dd'},\n no: {year: 'åååå', month: 'mm', day: 'dd'},\n oc: {year: 'aaaa', month: 'mm', day: 'jj'},\n pl: {year: 'rrrr', month: 'mm', day: 'dd'},\n pt: {year: 'aaaa', month: 'mm', day: 'dd'},\n rm: {year: 'oooo', month: 'mm', day: 'dd'},\n ro: {year: 'aaaa', month: 'll', day: 'zz'},\n ru: {year: 'гггг', month: 'мм', day: 'дд'},\n sc: {year: 'aaaa', month: 'mm', day: 'dd'},\n scn: {year: 'aaaa', month: 'mm', day: 'jj'},\n sk: {year: 'rrrr', month: 'mm', day: 'dd'},\n sl: {year: 'llll', month: 'mm', day: 'dd'},\n sr: {year: 'гггг', month: 'мм', day: 'дд'},\n sv: {year: 'åååå', month: 'mm', day: 'dd'},\n szl: {year: 'rrrr', month: 'mm', day: 'dd'},\n tg: {year: 'сссс', month: 'мм', day: 'рр'},\n th: {year: 'ปปปป', month: 'ดด', day: 'วว'},\n tr: {year: 'yyyy', month: 'aa', day: 'gg'},\n uk: {year: 'рррр', month: 'мм', day: 'дд'},\n 'zh-CN': {year: '年', month: '月', day: '日'},\n 'zh-TW': {year: '年', month: '月', day: '日'}\n}, 'en');\n\nexport function getPlaceholder(field: string, value: string, locale: string): string {\n // Use the actual placeholder value for the era and day period fields.\n if (field === 'era' || field === 'dayPeriod') {\n return value;\n }\n\n if (field === 'year' || field === 'month' || field === 'day') {\n return placeholders.getStringForLocale(field, locale);\n }\n\n // For time fields (e.g. hour, minute, etc.), use two dashes as the placeholder.\n return '––';\n}\n"],"names":[],"version":3,"file":"placeholders.mjs.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC;AAID,8EAA8E;AAC9E,4EAA4E;AAC5E,mDAAmD;AACnD,MAAM,qCAAe,IAAI,CAAA,GAAA,gCAAwB,EAC/C;IACE,KAAK;QAAC,MAAM;QAAS,OAAO;QAAO,KAAK;IAAM;IAC9C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAO,OAAO;QAAO,KAAK;IAAK;IAC1C,KAAK;QAAC,MAAM;QAAQ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1C,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,IAAI;QAAC,MAAM;QAAQ,OAAO;QAAM,KAAK;IAAI;IACzC,SAAS;QAAC,MAAM;QAAK,OAAO;QAAK,KAAK;IAAG;IACzC,SAAS;QAAC,MAAM;QAAK,OAAO;QAAK,KAAK;IAAG;AAC3C,GACA;AAGK,SAAS,0CAAe,KAAa,EAAE,KAAa,EAAE,MAAc;IACzE,sEAAsE;IACtE,IAAI,UAAU,SAAS,UAAU,aAC/B,OAAO;IAGT,IAAI,UAAU,UAAU,UAAU,WAAW,UAAU,OACrD,OAAO,mCAAa,kBAAkB,CAAC,OAAO;IAGhD,gFAAgF;IAChF,OAAO;AACT","sources":["packages/react-stately/src/datepicker/placeholders.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {LocalizedStringDictionary} from '@internationalized/string';\n\n// These placeholders are based on the strings used by the <input type=\"date\">\n// implementations in Chrome and Firefox. Additional languages are supported\n// here than React Spectrum's typical translations.\nconst placeholders = new LocalizedStringDictionary(\n {\n ach: {year: 'mwaka', month: 'dwe', day: 'nino'},\n af: {year: 'jjjj', month: 'mm', day: 'dd'},\n am: {year: 'ዓዓዓዓ', month: 'ሚሜ', day: 'ቀቀ'},\n an: {year: 'aaaa', month: 'mm', day: 'dd'},\n ar: {year: 'سنة', month: 'شهر', day: 'يوم'},\n ast: {year: 'aaaa', month: 'mm', day: 'dd'},\n az: {year: 'iiii', month: 'aa', day: 'gg'},\n be: {year: 'гггг', month: 'мм', day: 'дд'},\n bg: {year: 'гггг', month: 'мм', day: 'дд'},\n bn: {year: 'yyyy', month: 'মিমি', day: 'dd'},\n br: {year: 'bbbb', month: 'mm', day: 'dd'},\n bs: {year: 'gggg', month: 'mm', day: 'dd'},\n ca: {year: 'aaaa', month: 'mm', day: 'dd'},\n cak: {year: 'jjjj', month: 'ii', day: \"q'q'\"},\n ckb: {year: 'ساڵ', month: 'مانگ', day: 'ڕۆژ'},\n cs: {year: 'rrrr', month: 'mm', day: 'dd'},\n cy: {year: 'bbbb', month: 'mm', day: 'dd'},\n da: {year: 'åååå', month: 'mm', day: 'dd'},\n de: {year: 'jjjj', month: 'mm', day: 'tt'},\n dsb: {year: 'llll', month: 'mm', day: 'źź'},\n el: {year: 'εεεε', month: 'μμ', day: 'ηη'},\n en: {year: 'yyyy', month: 'mm', day: 'dd'},\n eo: {year: 'jjjj', month: 'mm', day: 'tt'},\n es: {year: 'aaaa', month: 'mm', day: 'dd'},\n et: {year: 'aaaa', month: 'kk', day: 'pp'},\n eu: {year: 'uuuu', month: 'hh', day: 'ee'},\n fa: {year: 'سال', month: 'ماه', day: 'روز'},\n ff: {year: 'hhhh', month: 'll', day: 'ññ'},\n fi: {year: 'vvvv', month: 'kk', day: 'pp'},\n fr: {year: 'aaaa', month: 'mm', day: 'jj'},\n fy: {year: 'jjjj', month: 'mm', day: 'dd'},\n ga: {year: 'bbbb', month: 'mm', day: 'll'},\n gd: {year: 'bbbb', month: 'mm', day: 'll'},\n gl: {year: 'aaaa', month: 'mm', day: 'dd'},\n he: {year: 'שנה', month: 'חודש', day: 'יום'},\n hr: {year: 'gggg', month: 'mm', day: 'dd'},\n hsb: {year: 'llll', month: 'mm', day: 'dd'},\n hu: {year: 'éééé', month: 'hh', day: 'nn'},\n ia: {year: 'aaaa', month: 'mm', day: 'dd'},\n id: {year: 'tttt', month: 'bb', day: 'hh'},\n is: {year: 'áááá', month: 'mm', day: 'dd'},\n it: {year: 'aaaa', month: 'mm', day: 'gg'},\n ja: {year: '年', month: '月', day: '日'},\n ka: {year: 'წწწწ', month: 'თთ', day: 'რრ'},\n kk: {year: 'жжжж', month: 'аа', day: 'кк'},\n kn: {year: 'ವವವವ', month: 'ಮಿಮೀ', day: 'ದಿದಿ'},\n ko: {year: '연도', month: '월', day: '일'},\n lb: {year: 'jjjj', month: 'mm', day: 'dd'},\n lo: {year: 'ປປປປ', month: 'ດດ', day: 'ວວ'},\n lt: {year: 'mmmm', month: 'mm', day: 'dd'},\n lv: {year: 'gggg', month: 'mm', day: 'dd'},\n meh: {year: 'aaaa', month: 'mm', day: 'dd'},\n ml: {year: 'വർഷം', month: 'മാസം', day: 'തീയതി'},\n ms: {year: 'tttt', month: 'mm', day: 'hh'},\n nb: {year: 'åååå', month: 'mm', day: 'dd'},\n nl: {year: 'jjjj', month: 'mm', day: 'dd'},\n nn: {year: 'åååå', month: 'mm', day: 'dd'},\n no: {year: 'åååå', month: 'mm', day: 'dd'},\n oc: {year: 'aaaa', month: 'mm', day: 'jj'},\n pl: {year: 'rrrr', month: 'mm', day: 'dd'},\n pt: {year: 'aaaa', month: 'mm', day: 'dd'},\n rm: {year: 'oooo', month: 'mm', day: 'dd'},\n ro: {year: 'aaaa', month: 'll', day: 'zz'},\n ru: {year: 'гггг', month: 'мм', day: 'дд'},\n sc: {year: 'aaaa', month: 'mm', day: 'dd'},\n scn: {year: 'aaaa', month: 'mm', day: 'jj'},\n sk: {year: 'rrrr', month: 'mm', day: 'dd'},\n sl: {year: 'llll', month: 'mm', day: 'dd'},\n sr: {year: 'гггг', month: 'мм', day: 'дд'},\n 'sr-Latn': {year: 'gggg', month: 'mm', day: 'dd'},\n sv: {year: 'åååå', month: 'mm', day: 'dd'},\n szl: {year: 'rrrr', month: 'mm', day: 'dd'},\n tg: {year: 'сссс', month: 'мм', day: 'рр'},\n th: {year: 'ปปปป', month: 'ดด', day: 'วว'},\n tr: {year: 'yyyy', month: 'aa', day: 'gg'},\n uk: {year: 'рррр', month: 'мм', day: 'дд'},\n 'zh-CN': {year: '年', month: '月', day: '日'},\n 'zh-TW': {year: '年', month: '月', day: '日'}\n },\n 'en'\n);\n\nexport function getPlaceholder(field: string, value: string, locale: string): string {\n // Use the actual placeholder value for the era and day period fields.\n if (field === 'era' || field === 'dayPeriod') {\n return value;\n }\n\n if (field === 'year' || field === 'month' || field === 'day') {\n return placeholders.getStringForLocale(field, locale);\n }\n\n // For time fields (e.g. hour, minute, etc.), use two dashes as the placeholder.\n return '––';\n}\n"],"names":[],"version":3,"file":"placeholders.mjs.map"}