@elliemae/ds-form-date-time-picker 3.22.0-next.3 → 3.22.0-next.30

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 (261) hide show
  1. package/dist/cjs/ControlledDateTimePicker.js +2 -2
  2. package/dist/cjs/ControlledDateTimePicker.js.map +3 -3
  3. package/dist/cjs/ControlledDateTimePickerCTX.js.map +1 -1
  4. package/dist/cjs/ControlledDateTimePickerDatatestid.js.map +1 -1
  5. package/dist/cjs/ControlledDateTimePickerTypes.js.map +3 -3
  6. package/dist/cjs/config/useChangeHandlers.js.map +2 -2
  7. package/dist/cjs/config/useControlledDateTimePicker.js.map +2 -2
  8. package/dist/cjs/config/useFocusTracker.js.map +1 -1
  9. package/dist/cjs/config/useGetDestructuredValues.js.map +1 -1
  10. package/dist/cjs/config/useGetFlags.js.map +2 -2
  11. package/dist/cjs/config/useGetPropsBasedOnType.js.map +2 -2
  12. package/dist/cjs/config/useGetPropsWithDefault.js +2 -2
  13. package/dist/cjs/config/useGetPropsWithDefault.js.map +3 -3
  14. package/dist/cjs/config/useGetReferences.js.map +1 -1
  15. package/dist/cjs/config/useGlobalKeyHandlers.js.map +2 -2
  16. package/dist/cjs/config/useRelevantValueFromProps.js.map +2 -2
  17. package/dist/cjs/config/useValidateProps.js.map +2 -2
  18. package/dist/cjs/exported-related/theming.js +10 -0
  19. package/dist/cjs/exported-related/theming.js.map +3 -3
  20. package/dist/cjs/index.js +1 -1
  21. package/dist/cjs/index.js.map +3 -3
  22. package/dist/cjs/parts/ClearButton/ClearButton.js.map +1 -1
  23. package/dist/cjs/parts/ClearButton/useClearButton.js.map +1 -1
  24. package/dist/cjs/parts/ControlledDateTimePickerContent.js.map +1 -1
  25. package/dist/cjs/parts/DateInputs/DDInput.js +1 -1
  26. package/dist/cjs/parts/DateInputs/DDInput.js.map +3 -3
  27. package/dist/cjs/parts/DateInputs/DateInputs.js.map +1 -1
  28. package/dist/cjs/parts/DateInputs/MMInput.js +2 -2
  29. package/dist/cjs/parts/DateInputs/MMInput.js.map +3 -3
  30. package/dist/cjs/parts/DateInputs/YYYYInput.js +3 -3
  31. package/dist/cjs/parts/DateInputs/YYYYInput.js.map +3 -3
  32. package/dist/cjs/parts/DateInputs/useDateInputs.js.map +2 -2
  33. package/dist/cjs/parts/Pickers/Calendar/Calendar.js.map +1 -1
  34. package/dist/cjs/parts/Pickers/Calendar/CalendarBody.js.map +1 -1
  35. package/dist/cjs/parts/Pickers/Calendar/CalendarContent.js.map +1 -1
  36. package/dist/cjs/parts/Pickers/Calendar/CalendarContext.js.map +1 -1
  37. package/dist/cjs/parts/Pickers/Calendar/CalendarDaysList.js.map +1 -1
  38. package/dist/cjs/parts/Pickers/Calendar/CalendarFooter.js +2 -2
  39. package/dist/cjs/parts/Pickers/Calendar/CalendarFooter.js.map +3 -3
  40. package/dist/cjs/parts/Pickers/Calendar/CalendarHead.js.map +1 -1
  41. package/dist/cjs/parts/Pickers/Calendar/CalendarIconTrigger.js.map +1 -1
  42. package/dist/cjs/parts/Pickers/Calendar/CalendarMonthDays.js.map +1 -1
  43. package/dist/cjs/parts/Pickers/Calendar/CalendarWeekDays.js.map +1 -1
  44. package/dist/cjs/parts/Pickers/Calendar/CalendarWrapper.js +5 -1
  45. package/dist/cjs/parts/Pickers/Calendar/CalendarWrapper.js.map +3 -3
  46. package/dist/cjs/parts/Pickers/Calendar/Day.js.map +2 -2
  47. package/dist/cjs/parts/Pickers/Calendar/Styleds.js +4 -1
  48. package/dist/cjs/parts/Pickers/Calendar/Styleds.js.map +3 -3
  49. package/dist/cjs/parts/Pickers/Calendar/useConfigCalendarCTX.js.map +1 -1
  50. package/dist/cjs/parts/Pickers/Calendar/useCurrentDisplayedMonthYearLogic.js.map +1 -1
  51. package/dist/cjs/parts/Pickers/Calendar/useFocusLogic.js.map +1 -1
  52. package/dist/cjs/parts/Pickers/Calendar/useKeyboardHandlers.js.map +1 -1
  53. package/dist/cjs/parts/Pickers/Calendar/usePopperTriggerLogic.js.map +1 -1
  54. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheel.js.map +1 -1
  55. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js.map +1 -1
  56. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContext.js.map +1 -1
  57. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js +1 -1
  58. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js.map +3 -3
  59. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js.map +1 -1
  60. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js +7 -1
  61. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js.map +3 -3
  62. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/Styleds.js +4 -1
  63. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/Styleds.js.map +3 -3
  64. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/useConfigCalendarWithTimeWheelCTX.js.map +1 -1
  65. package/dist/cjs/parts/Pickers/PickersIcons.js.map +1 -1
  66. package/dist/cjs/parts/Pickers/TimeWheel/HoursList.js.map +1 -1
  67. package/dist/cjs/parts/Pickers/TimeWheel/MeridiemList.js.map +1 -1
  68. package/dist/cjs/parts/Pickers/TimeWheel/MinutesList.js.map +1 -1
  69. package/dist/cjs/parts/Pickers/TimeWheel/Styleds.js +4 -1
  70. package/dist/cjs/parts/Pickers/TimeWheel/Styleds.js.map +3 -3
  71. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheel.js.map +1 -1
  72. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelContent.js.map +1 -1
  73. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelContext.js.map +1 -1
  74. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelFooter.js.map +1 -1
  75. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js.map +1 -1
  76. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelWrapper.js +7 -1
  77. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelWrapper.js.map +3 -3
  78. package/dist/cjs/parts/Pickers/TimeWheel/useConfigTimePickerCTX.js.map +1 -1
  79. package/dist/cjs/parts/Pickers/TimeWheel/useCurrentDisplayedWheelsLogic.js.map +2 -2
  80. package/dist/cjs/parts/Pickers/TimeWheel/useKeyboardHandlers.js.map +1 -1
  81. package/dist/cjs/parts/Pickers/TimeWheel/usePopperTriggerLogic.js.map +1 -1
  82. package/dist/cjs/parts/Styleds.js +32 -5
  83. package/dist/cjs/parts/Styleds.js.map +3 -3
  84. package/dist/cjs/parts/TimeInputs/HHInput.js +2 -2
  85. package/dist/cjs/parts/TimeInputs/HHInput.js.map +3 -3
  86. package/dist/cjs/parts/TimeInputs/MeridiemInput.js +2 -2
  87. package/dist/cjs/parts/TimeInputs/MeridiemInput.js.map +3 -3
  88. package/dist/cjs/parts/TimeInputs/MinutesInput.js +3 -3
  89. package/dist/cjs/parts/TimeInputs/MinutesInput.js.map +3 -3
  90. package/dist/cjs/parts/TimeInputs/TimeInputs.js.map +1 -1
  91. package/dist/cjs/parts/TimeInputs/useTimeInputs.js.map +1 -1
  92. package/dist/cjs/parts/config.js.map +1 -1
  93. package/dist/cjs/{propTypes.js → react-desc-prop-types.js} +4 -4
  94. package/dist/cjs/{propTypes.js.map → react-desc-prop-types.js.map} +1 -1
  95. package/dist/cjs/sharedTypes.js.map +2 -2
  96. package/dist/cjs/tests/custom-props/customProps.js.map +1 -1
  97. package/dist/cjs/typescript-testing/typescript-system-message-valid.js +121 -0
  98. package/dist/cjs/typescript-testing/typescript-system-message-valid.js.map +7 -0
  99. package/dist/cjs/utils/constants.js.map +1 -1
  100. package/dist/cjs/utils/dateHelpers.js.map +2 -2
  101. package/dist/cjs/utils/dateTimeHelpers.js.map +2 -2
  102. package/dist/cjs/utils/hooks/useGetDayFromDateString.js.map +1 -1
  103. package/dist/cjs/utils/hooks/useGetMonthYearFromDateStringOrEmptyStartingMonth.js.map +1 -1
  104. package/dist/cjs/utils/hooks/useGetStartingFocusedDay.js.map +1 -1
  105. package/dist/cjs/utils/hooks/useOnClickOutside.js.map +1 -1
  106. package/dist/cjs/utils/numberHelpers.js.map +1 -1
  107. package/dist/cjs/utils/stringHelpers.js.map +1 -1
  108. package/dist/cjs/utils/timeHelpers.js.map +2 -2
  109. package/dist/cjs/utils/typeGuards.js.map +2 -2
  110. package/dist/esm/ControlledDateTimePicker.js +1 -1
  111. package/dist/esm/ControlledDateTimePicker.js.map +2 -2
  112. package/dist/esm/ControlledDateTimePickerCTX.js.map +1 -1
  113. package/dist/esm/ControlledDateTimePickerDatatestid.js.map +1 -1
  114. package/dist/esm/ControlledDateTimePickerTypes.js.map +3 -3
  115. package/dist/esm/config/useChangeHandlers.js.map +2 -2
  116. package/dist/esm/config/useControlledDateTimePicker.js.map +2 -2
  117. package/dist/esm/config/useFocusTracker.js.map +1 -1
  118. package/dist/esm/config/useGetDestructuredValues.js.map +1 -1
  119. package/dist/esm/config/useGetFlags.js.map +2 -2
  120. package/dist/esm/config/useGetPropsBasedOnType.js.map +2 -2
  121. package/dist/esm/config/useGetPropsWithDefault.js +1 -1
  122. package/dist/esm/config/useGetPropsWithDefault.js.map +2 -2
  123. package/dist/esm/config/useGetReferences.js.map +1 -1
  124. package/dist/esm/config/useGlobalKeyHandlers.js.map +2 -2
  125. package/dist/esm/config/useRelevantValueFromProps.js.map +2 -2
  126. package/dist/esm/config/useValidateProps.js.map +2 -2
  127. package/dist/esm/exported-related/theming.js +10 -0
  128. package/dist/esm/exported-related/theming.js.map +3 -3
  129. package/dist/esm/index.js +1 -1
  130. package/dist/esm/index.js.map +2 -2
  131. package/dist/esm/parts/ClearButton/ClearButton.js.map +1 -1
  132. package/dist/esm/parts/ClearButton/useClearButton.js.map +1 -1
  133. package/dist/esm/parts/ControlledDateTimePickerContent.js.map +1 -1
  134. package/dist/esm/parts/DateInputs/DDInput.js +2 -2
  135. package/dist/esm/parts/DateInputs/DDInput.js.map +3 -3
  136. package/dist/esm/parts/DateInputs/DateInputs.js.map +1 -1
  137. package/dist/esm/parts/DateInputs/MMInput.js +2 -2
  138. package/dist/esm/parts/DateInputs/MMInput.js.map +3 -3
  139. package/dist/esm/parts/DateInputs/YYYYInput.js +3 -3
  140. package/dist/esm/parts/DateInputs/YYYYInput.js.map +3 -3
  141. package/dist/esm/parts/DateInputs/useDateInputs.js.map +2 -2
  142. package/dist/esm/parts/Pickers/Calendar/Calendar.js.map +1 -1
  143. package/dist/esm/parts/Pickers/Calendar/CalendarBody.js.map +1 -1
  144. package/dist/esm/parts/Pickers/Calendar/CalendarContent.js.map +1 -1
  145. package/dist/esm/parts/Pickers/Calendar/CalendarContext.js.map +1 -1
  146. package/dist/esm/parts/Pickers/Calendar/CalendarDaysList.js.map +1 -1
  147. package/dist/esm/parts/Pickers/Calendar/CalendarFooter.js +2 -2
  148. package/dist/esm/parts/Pickers/Calendar/CalendarFooter.js.map +3 -3
  149. package/dist/esm/parts/Pickers/Calendar/CalendarHead.js.map +1 -1
  150. package/dist/esm/parts/Pickers/Calendar/CalendarIconTrigger.js.map +1 -1
  151. package/dist/esm/parts/Pickers/Calendar/CalendarMonthDays.js.map +1 -1
  152. package/dist/esm/parts/Pickers/Calendar/CalendarWeekDays.js.map +1 -1
  153. package/dist/esm/parts/Pickers/Calendar/CalendarWrapper.js +5 -1
  154. package/dist/esm/parts/Pickers/Calendar/CalendarWrapper.js.map +3 -3
  155. package/dist/esm/parts/Pickers/Calendar/Day.js.map +2 -2
  156. package/dist/esm/parts/Pickers/Calendar/Styleds.js +4 -1
  157. package/dist/esm/parts/Pickers/Calendar/Styleds.js.map +3 -3
  158. package/dist/esm/parts/Pickers/Calendar/useConfigCalendarCTX.js.map +1 -1
  159. package/dist/esm/parts/Pickers/Calendar/useCurrentDisplayedMonthYearLogic.js.map +1 -1
  160. package/dist/esm/parts/Pickers/Calendar/useFocusLogic.js.map +1 -1
  161. package/dist/esm/parts/Pickers/Calendar/useKeyboardHandlers.js.map +1 -1
  162. package/dist/esm/parts/Pickers/Calendar/usePopperTriggerLogic.js.map +1 -1
  163. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheel.js.map +1 -1
  164. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js.map +1 -1
  165. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContext.js.map +1 -1
  166. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js +1 -1
  167. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js.map +3 -3
  168. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js.map +1 -1
  169. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js +7 -1
  170. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js.map +3 -3
  171. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/Styleds.js +4 -1
  172. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/Styleds.js.map +3 -3
  173. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/useConfigCalendarWithTimeWheelCTX.js.map +1 -1
  174. package/dist/esm/parts/Pickers/PickersIcons.js.map +1 -1
  175. package/dist/esm/parts/Pickers/TimeWheel/HoursList.js.map +1 -1
  176. package/dist/esm/parts/Pickers/TimeWheel/MeridiemList.js.map +1 -1
  177. package/dist/esm/parts/Pickers/TimeWheel/MinutesList.js.map +1 -1
  178. package/dist/esm/parts/Pickers/TimeWheel/Styleds.js +4 -1
  179. package/dist/esm/parts/Pickers/TimeWheel/Styleds.js.map +3 -3
  180. package/dist/esm/parts/Pickers/TimeWheel/TimeWheel.js.map +1 -1
  181. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelContent.js.map +1 -1
  182. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelContext.js.map +1 -1
  183. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelFooter.js.map +1 -1
  184. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js.map +1 -1
  185. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelWrapper.js +7 -1
  186. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelWrapper.js.map +3 -3
  187. package/dist/esm/parts/Pickers/TimeWheel/useConfigTimePickerCTX.js.map +1 -1
  188. package/dist/esm/parts/Pickers/TimeWheel/useCurrentDisplayedWheelsLogic.js.map +2 -2
  189. package/dist/esm/parts/Pickers/TimeWheel/useKeyboardHandlers.js.map +1 -1
  190. package/dist/esm/parts/Pickers/TimeWheel/usePopperTriggerLogic.js.map +1 -1
  191. package/dist/esm/parts/Styleds.js +32 -5
  192. package/dist/esm/parts/Styleds.js.map +3 -3
  193. package/dist/esm/parts/TimeInputs/HHInput.js +3 -3
  194. package/dist/esm/parts/TimeInputs/HHInput.js.map +3 -3
  195. package/dist/esm/parts/TimeInputs/MeridiemInput.js +3 -3
  196. package/dist/esm/parts/TimeInputs/MeridiemInput.js.map +3 -3
  197. package/dist/esm/parts/TimeInputs/MinutesInput.js +3 -3
  198. package/dist/esm/parts/TimeInputs/MinutesInput.js.map +3 -3
  199. package/dist/esm/parts/TimeInputs/TimeInputs.js.map +1 -1
  200. package/dist/esm/parts/TimeInputs/useTimeInputs.js.map +1 -1
  201. package/dist/esm/parts/config.js.map +1 -1
  202. package/dist/esm/{propTypes.js → react-desc-prop-types.js} +1 -1
  203. package/dist/esm/{propTypes.js.map → react-desc-prop-types.js.map} +1 -1
  204. package/dist/esm/sharedTypes.js.map +1 -1
  205. package/dist/esm/tests/custom-props/customProps.js.map +1 -1
  206. package/dist/esm/typescript-testing/typescript-system-message-valid.js +98 -0
  207. package/dist/esm/typescript-testing/typescript-system-message-valid.js.map +7 -0
  208. package/dist/esm/utils/constants.js.map +1 -1
  209. package/dist/esm/utils/dateHelpers.js.map +2 -2
  210. package/dist/esm/utils/dateTimeHelpers.js.map +2 -2
  211. package/dist/esm/utils/hooks/useGetDayFromDateString.js.map +1 -1
  212. package/dist/esm/utils/hooks/useGetMonthYearFromDateStringOrEmptyStartingMonth.js.map +1 -1
  213. package/dist/esm/utils/hooks/useGetStartingFocusedDay.js.map +1 -1
  214. package/dist/esm/utils/hooks/useOnClickOutside.js.map +1 -1
  215. package/dist/esm/utils/numberHelpers.js.map +1 -1
  216. package/dist/esm/utils/stringHelpers.js.map +1 -1
  217. package/dist/esm/utils/timeHelpers.js.map +2 -2
  218. package/dist/esm/utils/typeGuards.js.map +2 -2
  219. package/dist/types/ControlledDateTimePicker.d.ts +2 -1
  220. package/dist/types/config/useChangeHandlers.d.ts +1 -1
  221. package/dist/types/config/useControlledDateTimePicker.d.ts +1 -1
  222. package/dist/types/config/useGetFlags.d.ts +1 -1
  223. package/dist/types/config/useGetPropsBasedOnType.d.ts +1 -1
  224. package/dist/types/config/useGetPropsWithDefault.d.ts +1 -1
  225. package/dist/types/config/useGlobalKeyHandlers.d.ts +1 -1
  226. package/dist/types/config/useRelevantValueFromProps.d.ts +1 -1
  227. package/dist/types/config/useValidateProps.d.ts +1 -1
  228. package/dist/types/exported-related/theming.d.ts +10 -0
  229. package/dist/types/index.d.ts +1 -1
  230. package/dist/types/parts/ClearButton/ClearButton.d.ts +1 -0
  231. package/dist/types/parts/ControlledDateTimePickerContent.d.ts +1 -0
  232. package/dist/types/parts/DateInputs/DateInputs.d.ts +1 -0
  233. package/dist/types/parts/Pickers/Calendar/Calendar.d.ts +1 -0
  234. package/dist/types/parts/Pickers/Calendar/CalendarContent.d.ts +1 -0
  235. package/dist/types/parts/Pickers/Calendar/CalendarHead.d.ts +1 -0
  236. package/dist/types/parts/Pickers/Calendar/CalendarIconTrigger.d.ts +1 -0
  237. package/dist/types/parts/Pickers/Calendar/CalendarMonthDays.d.ts +1 -0
  238. package/dist/types/parts/Pickers/Calendar/CalendarWrapper.d.ts +1 -0
  239. package/dist/types/parts/Pickers/Calendar/Day.d.ts +1 -0
  240. package/dist/types/parts/Pickers/Calendar/Styleds.d.ts +21 -0
  241. package/dist/types/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.d.ts +1 -0
  242. package/dist/types/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.d.ts +1 -0
  243. package/dist/types/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.d.ts +1 -1
  244. package/dist/types/parts/Pickers/PickersIcons.d.ts +1 -0
  245. package/dist/types/parts/Pickers/TimeWheel/HoursList.d.ts +1 -0
  246. package/dist/types/parts/Pickers/TimeWheel/MeridiemList.d.ts +1 -0
  247. package/dist/types/parts/Pickers/TimeWheel/MinutesList.d.ts +1 -0
  248. package/dist/types/parts/Pickers/TimeWheel/TimeWheel.d.ts +1 -0
  249. package/dist/types/parts/Pickers/TimeWheel/TimeWheelIconTrigger.d.ts +1 -0
  250. package/dist/types/parts/Pickers/TimeWheel/TimeWheelWrapper.d.ts +1 -1
  251. package/dist/types/parts/Pickers/TimeWheel/useCurrentDisplayedWheelsLogic.d.ts +1 -1
  252. package/dist/types/parts/Styleds.d.ts +7 -0
  253. package/dist/types/parts/TimeInputs/TimeInputs.d.ts +1 -0
  254. package/dist/types/sharedTypes.d.ts +1 -1
  255. package/dist/types/typescript-testing/typescript-system-message-valid.d.ts +1 -0
  256. package/dist/types/utils/dateHelpers.d.ts +1 -1
  257. package/dist/types/utils/dateTimeHelpers.d.ts +1 -1
  258. package/dist/types/utils/timeHelpers.d.ts +1 -1
  259. package/dist/types/utils/typeGuards.d.ts +1 -1
  260. package/package.json +16 -16
  261. /package/dist/types/{propTypes.d.ts → react-desc-prop-types.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/parts/TimeInputs/useTimeInputs.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../../src/parts/TimeInputs/useTimeInputs.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable complexity */\n/* eslint-disable max-statements */\n/* eslint-disable max-lines */\nimport { useCallback, useMemo, useContext } from 'react';\nimport { ControlledDateTimePickerContext } from '../../ControlledDateTimePickerCTX.js';\nimport { prependStringWithPlaceHolders } from '../../utils/stringHelpers.js';\nimport type { DSControlledDateTimePickerInternalsT } from '../../sharedTypes.js';\ninterface UseTimeInputsR {\n autoFocusHourInput: boolean;\n disabled: boolean;\n handleChangeHours: DSControlledDateTimePickerInternalsT.HandleOnChangeFunc;\n onHoursChange: DSControlledDateTimePickerInternalsT.OnChangeFunc;\n handleChangeMinutes: DSControlledDateTimePickerInternalsT.HandleOnChangeFunc;\n onMinutesChange: DSControlledDateTimePickerInternalsT.OnChangeFunc;\n handleChangeMeridiem: DSControlledDateTimePickerInternalsT.HandleOnChangeFunc;\n onMeridiemChange: DSControlledDateTimePickerInternalsT.OnChangeFunc;\n onHoursFocus: DSControlledDateTimePickerInternalsT.OnFocusFunc;\n onMinutesFocus: DSControlledDateTimePickerInternalsT.OnFocusFunc;\n onMeridiemFocus: DSControlledDateTimePickerInternalsT.OnFocusFunc;\n onHoursBlur: DSControlledDateTimePickerInternalsT.OnBlurFunc;\n onMinutesBlur: DSControlledDateTimePickerInternalsT.OnBlurFunc;\n onMeridiemBlur: DSControlledDateTimePickerInternalsT.OnBlurFunc;\n onHoursKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown;\n onMinutesKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown;\n onMeridiemKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown;\n}\nexport const useTimeInputs = (): UseTimeInputsR => {\n const {\n props: { disabled },\n hours,\n minutes,\n meridiem,\n withAnyRightController,\n withAnyPicker,\n withClearBtn,\n isWithDateInputs,\n autoFocusHourInput,\n handleChangeHours,\n handleChangeMinutes,\n handleChangeMeridiem,\n minutesInterval,\n trackFocusFirstSegment,\n trackFocusLastSegment,\n trackFocusHourInput,\n trackFocusMinuteInput,\n trackFocusMeridiemInput,\n trackFocusClearBtn,\n trackFocusPicker,\n trackFocusYearInput,\n } = useContext(ControlledDateTimePickerContext);\n\n const onHomeKeyDown = useCallback(() => {\n trackFocusFirstSegment();\n }, [trackFocusFirstSegment]);\n const onEndKeyDown = useCallback(() => {\n trackFocusLastSegment();\n }, [trackFocusLastSegment]);\n\n const onHoursFocus: DSControlledDateTimePickerInternalsT.OnFocusFunc = useCallback(() => {\n trackFocusHourInput();\n }, [trackFocusHourInput]);\n const onHoursChange: DSControlledDateTimePickerInternalsT.OnChangeFunc = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n let newHours = e?.target?.value;\n // converts hours 2~9 to 07~09\n if (Number.parseInt(newHours, 10) > 1) newHours = prependStringWithPlaceHolders(newHours, 2);\n handleChangeHours(newHours, e);\n // auto-advance functionality:\n if (newHours.length === 2) trackFocusMinuteInput();\n },\n [handleChangeHours, trackFocusMinuteInput],\n );\n const onHoursKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>) => {\n const { key, ctrlKey, metaKey } = e;\n const hoursStringConvertedToInteger = Number.parseInt(hours, 10);\n\n if (['Home', 'End', 'ArrowUp', 'ArrowDown', ':'].includes(key)) e.preventDefault();\n if (['Home', 'End', 'ArrowUp', 'ArrowDown', ':'].includes(key)) e.stopPropagation();\n if (key === 'Home') onHomeKeyDown();\n if (key === 'End') onEndKeyDown();\n if (key === 'ArrowUp' || key === 'ArrowDown') {\n const hoursInteger = Number.isNaN(hoursStringConvertedToInteger) ? 0 : hoursStringConvertedToInteger;\n let newHours;\n if (key === 'ArrowUp') newHours = hoursInteger + 1 <= 12 ? hoursInteger + 1 : hoursInteger;\n else newHours = hoursInteger - 1 > 1 ? hoursInteger - 1 : 1;\n newHours = prependStringWithPlaceHolders(`${newHours}`, 2);\n handleChangeHours(newHours, e);\n }\n if (!Number.isNaN(hoursStringConvertedToInteger) && key === ':') {\n const newHours = prependStringWithPlaceHolders(`${hoursStringConvertedToInteger}`, 2);\n handleChangeHours(newHours, e);\n // auto-advance functionality:\n if (newHours.length === 2) trackFocusMinuteInput();\n }\n\n // regressive backspace functionality\n if (\n key === 'Backspace' &&\n e.target === e.currentTarget &&\n isWithDateInputs &&\n (e.target as HTMLInputElement).selectionStart === 0 &&\n (e.target as HTMLInputElement).selectionEnd === 0\n ) {\n e.preventDefault();\n\n trackFocusYearInput();\n }\n // focus last fragment on fill with now\n if ((ctrlKey || metaKey) && key === ';') trackFocusLastSegment();\n },\n [\n hours,\n isWithDateInputs,\n trackFocusYearInput,\n onHomeKeyDown,\n onEndKeyDown,\n trackFocusLastSegment,\n trackFocusMinuteInput,\n handleChangeHours,\n ],\n );\n const onHoursBlur: DSControlledDateTimePickerInternalsT.OnBlurFunc = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n const newHours = e?.target?.value;\n if (newHours === '0') handleChangeHours('01', e, { isAutomaticFillTrigger: true });\n else if (newHours.length > 0 && newHours.length < 2)\n handleChangeHours(prependStringWithPlaceHolders(newHours, 2), e, {\n isAutomaticFillTrigger: true,\n });\n },\n [handleChangeHours],\n );\n\n const onMinutesFocus: DSControlledDateTimePickerInternalsT.OnFocusFunc = useCallback(() => {\n trackFocusMinuteInput();\n }, [trackFocusMinuteInput]);\n const onMinutesChange: DSControlledDateTimePickerInternalsT.OnChangeFunc = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n let newMinutes = e?.target?.value;\n // converts minutes 7~9 to 07~09\n if (Number.parseInt(newMinutes, 10) > 6) newMinutes = prependStringWithPlaceHolders(newMinutes, 2);\n handleChangeMinutes(newMinutes, e);\n\n // auto-advance functionality:\n if (newMinutes.length === 2) trackFocusMeridiemInput();\n },\n [handleChangeMinutes, trackFocusMeridiemInput],\n );\n const onMinutesKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>) => {\n const { key, ctrlKey, metaKey } = e;\n const minutesStringConvertedToInteger = Number.parseInt(minutes, 10);\n if (['Home', 'End', 'ArrowUp', 'ArrowDown', ' '].includes(key)) e.preventDefault();\n if (['Home', 'End', 'ArrowUp', 'ArrowDown', ' '].includes(key)) e.stopPropagation();\n\n if (key === 'Home') onHomeKeyDown();\n if (key === 'End') onEndKeyDown();\n if (key === 'ArrowUp' || key === 'ArrowDown') {\n const minutesInteger = Number.isNaN(minutesStringConvertedToInteger) ? 0 : minutesStringConvertedToInteger;\n let newMinutes;\n if (key === 'ArrowUp')\n newMinutes = minutesInteger + minutesInterval <= 59 ? minutesInteger + minutesInterval : minutesInteger;\n else newMinutes = minutesInteger - minutesInterval > 0 ? minutesInteger - minutesInterval : 0;\n newMinutes = prependStringWithPlaceHolders(`${newMinutes}`, 2);\n handleChangeMinutes(newMinutes, e);\n }\n if (!Number.isNaN(minutesStringConvertedToInteger) && key === ' ') {\n const newMinutes = prependStringWithPlaceHolders(`${minutesStringConvertedToInteger}`, 2);\n handleChangeMinutes(newMinutes, e);\n // auto-advance functionality:\n if (newMinutes.length === 2) trackFocusMeridiemInput();\n }\n\n // regressive backspace functionality\n if (\n key === 'Backspace' &&\n e.target === e.currentTarget &&\n (e.target as HTMLInputElement).selectionStart === 0 &&\n (e.target as HTMLInputElement).selectionEnd === 0\n ) {\n e.preventDefault();\n\n trackFocusHourInput();\n }\n\n // focus last fragment on fill with now\n if ((ctrlKey || metaKey) && key === ';') trackFocusLastSegment();\n },\n [\n minutes,\n onHomeKeyDown,\n onEndKeyDown,\n trackFocusLastSegment,\n minutesInterval,\n handleChangeMinutes,\n trackFocusMeridiemInput,\n trackFocusHourInput,\n ],\n );\n const onMinutesBlur: DSControlledDateTimePickerInternalsT.OnBlurFunc = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n const newMinutes = e?.target?.value;\n if (newMinutes.length > 0 && newMinutes.length < 2)\n handleChangeMinutes(prependStringWithPlaceHolders(newMinutes, 2), e, {\n isAutomaticFillTrigger: true,\n });\n },\n [handleChangeMinutes],\n );\n\n const onMeridiemFocus: DSControlledDateTimePickerInternalsT.OnFocusFunc = useCallback(() => {\n trackFocusMeridiemInput();\n }, [trackFocusMeridiemInput]);\n const onMeridiemChange: DSControlledDateTimePickerInternalsT.OnChangeFunc = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n let newMeridiem = e?.target?.value?.toUpperCase?.();\n // if new value is length 1,\n // if previous value was empty, auto-complete\n // if previous value was not empty, set to empty (regressive backspace)\n if (newMeridiem.length === 1)\n if (meridiem === '') newMeridiem = `${newMeridiem}M`;\n else newMeridiem = '';\n handleChangeMeridiem(newMeridiem, e);\n // auto-advance functionality:\n if (newMeridiem.length === 2 && withAnyRightController) {\n if (withClearBtn) trackFocusClearBtn();\n else if (withAnyPicker) trackFocusPicker();\n }\n },\n [\n meridiem,\n handleChangeMeridiem,\n withAnyRightController,\n withClearBtn,\n trackFocusClearBtn,\n withAnyPicker,\n trackFocusPicker,\n ],\n );\n const onMeridiemKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>) => {\n const { key, ctrlKey, metaKey } = e;\n\n if (['Home', 'End', 'ArrowUp', 'ArrowDown'].includes(key)) e.preventDefault();\n if (['Home', 'End', 'ArrowUp', 'ArrowDown'].includes(key)) e.stopPropagation();\n\n if (key === 'Home') onHomeKeyDown();\n if (key === 'End') onEndKeyDown();\n if (key === 'ArrowUp' && meridiem !== 'AM') handleChangeMeridiem('AM', e);\n if (key === 'ArrowDown' && meridiem !== 'PM') handleChangeMeridiem('PM', e);\n // regressive backspace functionality\n if (key === 'Backspace') {\n if (\n e.target === e.currentTarget &&\n (e.target as HTMLInputElement).selectionStart === 0 &&\n (e.target as HTMLInputElement).selectionEnd === 0\n ) {\n e.preventDefault();\n trackFocusMinuteInput();\n } else if (meridiem?.length === 2) handleChangeMeridiem('', e);\n }\n\n // focus last fragment on fill with now\n if ((ctrlKey || metaKey) && key === ';') trackFocusLastSegment();\n },\n [onHomeKeyDown, onEndKeyDown, meridiem, handleChangeMeridiem, trackFocusLastSegment, trackFocusMinuteInput],\n );\n const onMeridiemBlur: DSControlledDateTimePickerInternalsT.OnBlurFunc = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n const newMeridiem = e?.target?.value?.toUpperCase?.();\n\n if (newMeridiem.length === 1)\n handleChangeMeridiem(`${newMeridiem}M`, e, {\n isAutomaticFillTrigger: true,\n });\n },\n [handleChangeMeridiem],\n );\n\n return useMemo(\n () => ({\n autoFocusHourInput,\n disabled,\n handleChangeHours,\n onHoursFocus,\n onHoursChange,\n handleChangeMinutes,\n onMinutesFocus,\n onMinutesChange,\n handleChangeMeridiem,\n onMeridiemFocus,\n onMeridiemChange,\n onHoursBlur,\n onMinutesBlur,\n onMeridiemBlur,\n onHoursKeyDown,\n onMinutesKeyDown,\n onMeridiemKeyDown,\n }),\n [\n autoFocusHourInput,\n disabled,\n handleChangeHours,\n onHoursFocus,\n onHoursChange,\n handleChangeMinutes,\n onMinutesFocus,\n onMinutesChange,\n handleChangeMeridiem,\n onMeridiemFocus,\n onMeridiemChange,\n onHoursBlur,\n onMinutesBlur,\n onMeridiemBlur,\n onHoursKeyDown,\n onMinutesKeyDown,\n onMeridiemKeyDown,\n ],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,mBAAiD;AACjD,yCAAgD;AAChD,2BAA8C;AAqBvC,MAAM,gBAAgB,MAAsB;AACjD,QAAM;AAAA,IACJ,OAAO,EAAE,SAAS;AAAA,IAClB;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../src/parts/config.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../src/parts/config.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export const fixedValues = {\n smallInputWidth: '28px',\n largeInputWidth: '40px',\n separatorWidth: '7px',\n} as const;\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,cAAc;AAAA,EACzB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,gBAAgB;AAClB;",
6
6
  "names": []
@@ -26,12 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var propTypes_exports = {};
30
- __export(propTypes_exports, {
29
+ var react_desc_prop_types_exports = {};
30
+ __export(react_desc_prop_types_exports, {
31
31
  defaultProps: () => defaultProps,
32
32
  propTypes: () => propTypes
33
33
  });
34
- module.exports = __toCommonJS(propTypes_exports);
34
+ module.exports = __toCommonJS(react_desc_prop_types_exports);
35
35
  var React = __toESM(require("react"));
36
36
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
37
  var import_ControlledDateTimePickerDatatestid = require("./ControlledDateTimePickerDatatestid.js");
@@ -114,4 +114,4 @@ const propTypes = {
114
114
  "data-testid": import_ds_props_helpers.PropTypes.string.description("Unique id for tests.").defaultValue(""),
115
115
  ...(0, import_ds_props_helpers.getPropsPerDatatestIdPropTypes)(import_ControlledDateTimePickerDatatestid.ControlledDateTimePickerDatatestid)
116
116
  };
117
- //# sourceMappingURL=propTypes.js.map
117
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/propTypes.tsx", "../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../src/react-desc-prop-types.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable max-lines */\nimport type { WeakValidationMap } from 'react';\nimport type React from 'react';\nimport {\n PropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n getPropsPerDatatestIdPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { ControlledDateTimePickerDatatestid } from './ControlledDateTimePickerDatatestid.js';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = (): void => {};\nconst defaultReturnFalse = (): false => false;\nexport declare namespace DSControlledDateTimePickerT {\n type DataTestIdType = typeof ControlledDateTimePickerDatatestid;\n // typescript type that rapresents the union of all the values for ControlledDateTimePickerDatatestid\n export type FlatDataTestIdValues = {\n [K in keyof DataTestIdType]: DataTestIdType[K] extends Record<string, unknown>\n ? DataTestIdType[K][keyof DataTestIdType[K]] // this is only 1 level deep, but it's enough for our needs right now\n : // can be extended to more levels if needed as follows:\n // ? DataTestIdType[K][keyof DataTestIdType[K]] extends Record<string, unknown>\n // ? DataTestIdType[K][keyof DataTestIdType[K]][keyof DataTestIdType[K][keyof DataTestIdType[K]]]\n // : DataTestIdType[K][keyof DataTestIdType[K]]\n DataTestIdType[K];\n }[keyof DataTestIdType];\n\n export type AriaAndDataPropsPerDataTestId = {\n [key in FlatDataTestIdValues]?: AriaAndDataPropsOrPropsGetter;\n };\n\n export type OnInternalValuesChangeEvent =\n | React.ChangeEvent<HTMLInputElement>\n | React.KeyboardEvent<HTMLInputElement>\n | React.KeyboardEvent<HTMLButtonElement>\n | React.KeyboardEvent\n | React.MouseEvent<HTMLInputElement>\n | React.MouseEvent<HTMLButtonElement>;\n export type ControlTypes =\n | 'full-date-time'\n | 'date-time-inputs'\n | 'date-time-picker'\n | 'date-time-picker-controller-only'\n | 'full-date'\n | 'date-inputs'\n | 'date-picker'\n | 'date-picker-controller-only'\n | 'full-time'\n | 'time-inputs'\n | 'time-picker'\n | 'time-picker-controller-only';\n export interface InternalInputsChangeMetaInfo {\n isAutomaticFillTrigger?: boolean;\n isDayPresentInMonth?: boolean;\n isOutOfRangeDay?: boolean;\n isDisabledDay?: boolean;\n isDisabledTime?: boolean;\n suggestedErrorMsg?: string;\n newDateTimeString?: string;\n newDateString?: string;\n newTimeString?: string;\n }\n\n export type OnDateChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnTimeChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnDateTimeChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnInternalInputsChange = (\n val: string,\n e: OnInternalValuesChangeEvent,\n metaInfo?: InternalInputsChangeMetaInfo,\n ) => void;\n export type AppOnInputChange = (\n val: string,\n e: OnInternalValuesChangeEvent,\n metaInfo: InternalInputsChangeMetaInfo,\n ) => void;\n\n /* ------------------------ ------------------ ------------------------*/\n /* ------------------------ DATE CONFIGURATION ------------------------*/\n /* ------------------------ ------------------ ------------------------*/\n export interface DefaultDateProps {\n onMonthChange: AppOnInputChange;\n onDayChange: AppOnInputChange;\n onYearChange: AppOnInputChange;\n onPickerOpen: NoopishFunc;\n onPickerClose: NoopishFunc;\n getIsDisabledDay: BooleanGetter<string>;\n getIsOutOfRangeDay: BooleanGetter<string>;\n getIsStartRangeDay: BooleanGetter<string>;\n getIsDayInRange: BooleanGetter<string>;\n getIsEndRangeDay: BooleanGetter<string>;\n isClearable: boolean;\n disabled: boolean;\n hasError: boolean;\n autoFocus: boolean;\n preventCloseOnSelection: boolean;\n }\n export interface OptionalDatePickerProps extends AriaAndDataPropsPerDataTestId {\n emptyPickerStartingMonth?: string;\n onCalendarOpenFocusedDay?: string;\n pickerFooterMsg?: string;\n innerRef?:\n | React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>\n | ((ref: HTMLInputElement | HTMLButtonElement | null) => void);\n }\n export interface RequiredDatePickerProps {\n type: 'full-date' | 'date-inputs' | 'date-picker' | 'date-picker-controller-only';\n date: string;\n onDateChange: OnDateChange;\n }\n export type DatePickerProps = OptionalDatePickerProps & Partial<DefaultDateProps> & RequiredDatePickerProps;\n export type InternalDatePickerProps = OptionalDatePickerProps & DefaultDateProps & RequiredDatePickerProps;\n\n /* ------------------------ ------------------ ------------------------*/\n /* ------------------------ TIME CONFIGURATION ------------------------*/\n /* ------------------------ ------------------ ------------------------*/\n\n export interface DefaultTimeProps {\n onHourChange: AppOnInputChange;\n onMinuteChange: AppOnInputChange;\n onMeridiemChange: AppOnInputChange;\n onPickerOpen: NoopishFunc;\n onPickerClose: NoopishFunc;\n getIsDisabledTime: BooleanGetter<string>;\n minutesInterval: number;\n isClearable: boolean;\n disabled: boolean;\n hasError: boolean;\n autoFocus: boolean;\n preventCloseOnSelection: boolean;\n }\n export interface OptionalTimePickerProps extends AriaAndDataPropsPerDataTestId {\n pickerFooterMsg?: string;\n onTimeWheelOpenStartingTime?: string;\n innerRef?:\n | React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>\n | ((ref: HTMLInputElement | HTMLButtonElement | null) => void);\n }\n export interface RequiredTimePickerProps {\n type: 'full-time' | 'time-inputs' | 'time-picker' | 'time-picker-controller-only';\n time: string;\n onTimeChange: OnTimeChange;\n }\n export type TimePickerProps = OptionalTimePickerProps & Partial<DefaultTimeProps> & RequiredTimePickerProps;\n export type InternalTimePickerProps = OptionalTimePickerProps & DefaultTimeProps & RequiredTimePickerProps;\n\n /* -------------------- ---------------------- ------------------------*/\n /* -------------------- DATETIME CONFIGURATION ------------------------*/\n /* -------------------- ---------------------- ------------------------*/\n\n export type DefaultDateTimeProps = DefaultTimeProps &\n DefaultDateProps & {\n onDateChange: OnDateChange;\n onTimeChange: OnTimeChange;\n };\n export type OptionalDateTimeProps = AriaAndDataPropsPerDataTestId & OptionalTimePickerProps & OptionalDatePickerProps;\n export interface RequiredDateTimeProps {\n type: 'full-date-time' | 'date-time-inputs' | 'date-time-picker' | 'date-time-picker-controller-only';\n dateTime: string;\n onDateTimeChange: OnDateTimeChange;\n }\n\n export type DateTimePickerProps = Partial<DefaultDateTimeProps> & OptionalDateTimeProps & RequiredDateTimeProps;\n export type InternalDateTimePickerProps = DefaultDateTimeProps & OptionalDateTimeProps & RequiredDateTimeProps;\n\n /* ---------------------- ------------------- -------------------------*/\n /* ---------------------- FINAL CONFIGURATION -------------------------*/\n /* ---------------------- ------------------- -------------------------*/\n export type DefaultProps = DefaultDateTimeProps & { type: 'full-date-time' };\n export type Props = DateTimePickerProps | DatePickerProps | TimePickerProps;\n export type InternalProps = InternalDateTimePickerProps | InternalDatePickerProps | InternalTimePickerProps;\n}\n\nexport const defaultProps: DSControlledDateTimePickerT.DefaultProps = {\n type: 'full-date-time',\n onDateChange: noop,\n onMonthChange: noop,\n onDayChange: noop,\n onYearChange: noop,\n onTimeChange: noop,\n onHourChange: noop,\n onMinuteChange: noop,\n onMeridiemChange: noop,\n onPickerOpen: noop,\n onPickerClose: noop,\n getIsDisabledDay: defaultReturnFalse,\n getIsOutOfRangeDay: defaultReturnFalse,\n getIsStartRangeDay: defaultReturnFalse,\n getIsDayInRange: defaultReturnFalse,\n getIsEndRangeDay: defaultReturnFalse,\n getIsDisabledTime: defaultReturnFalse,\n minutesInterval: 1,\n isClearable: false,\n disabled: false,\n hasError: false,\n autoFocus: false,\n preventCloseOnSelection: false,\n};\n\nexport const propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n type: PropTypes.oneOf([\n 'full-date-time',\n 'date-time-inputs',\n 'date-time-picker',\n 'date-time-picker-controller-only',\n 'full-date',\n 'date-inputs',\n 'date-picker',\n 'date-picker-controller-only',\n 'full-time',\n 'time-inputs',\n 'time-picker',\n 'time-picker-controller-only',\n ])\n .description('Type of time form control to use')\n .defaultValue('full-date-time'),\n disabled: PropTypes.bool.description('wheter or not the input is disabled').defaultValue(false),\n isClearable: PropTypes.bool.description('with or without clearable button').defaultValue(false),\n dateTime: PropTypes.string.description('when using date-time types, this is the value of the controller'),\n date: PropTypes.string.description('when using date types, this is the value of the controller'),\n time: PropTypes.string.description('when using time types, this is the value of the controller'),\n onDateChange: PropTypes.func.description('(newDateString, metaInformations) => void'),\n onTimeChange: PropTypes.func.description('(newTimeString, metaInformations) => void'),\n onDateTimeChange: PropTypes.func.description('(newDateTimeString, metaInformations) => void'),\n onMonthChange: PropTypes.func.description('(newMonthString, event, metaInformations) => void'),\n onDayChange: PropTypes.func.description('(newDayString, event, metaInformations) => void'),\n onYearChange: PropTypes.func.description('(newYearString, event, metaInformations) => void'),\n onHourChange: PropTypes.func.description('(newHourString, event, metaInformations) => void'),\n onMinuteChange: PropTypes.func.description('(newMinuteString, event, metaInformations) => void'),\n onMeridiemChange: PropTypes.func.description('(newMeridiemString, event, metaInformations) => void'),\n getIsDisabledDay: PropTypes.func.description(\n '(dayAsString) => true for marking as disabled, false for marking as valid',\n ),\n getIsOutOfRangeDay: PropTypes.func.description(\n '(dayAsString) => true for marking as disabled, false for marking as valid',\n ),\n getIsDisabledTime: PropTypes.func.description(\n '(timeAsString) => true for marking as disabled, false for marking as valid',\n ),\n emptyPickerStartingMonth: PropTypes.string.description(\n 'which month to start the calendar on open, when value is empty, string following the \"MM/__/YYYY\" pattern',\n ),\n onCalendarOpenFocusedDay: PropTypes.string\n .description('which day to focus on calendar open when value is empty, string following the \"MM/DD/YYYY\" pattern')\n .defaultValue('if value is empty current month, else current month'),\n onTimeWheelOpenStartingTime: PropTypes.string\n .description(\n 'which day to start the timewheel on picker open when value is empty, string following the HH:MM AA\" pattern',\n )\n .defaultValue('01:00 AM'),\n minutesInterval: PropTypes.number\n .description('increments/decrements of minutes in time related controllers interactions')\n .defaultValue('1'),\n 'data-testid': PropTypes.string.description('Unique id for tests.').defaultValue(''),\n ...getPropsPerDatatestIdPropTypes(ControlledDateTimePickerDatatestid),\n} as WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA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+CAA+C;AAAA,EAC5F,eAAe,kCAAU,KAAK,YAAY,mDAAmD;AAAA,EAC7F,aAAa,kCAAU,KAAK,YAAY,iDAAiD;AAAA,EACzF,cAAc,kCAAU,KAAK,YAAY,kDAAkD;AAAA,EAC3F,cAAc,kCAAU,KAAK,YAAY,kDAAkD;AAAA,EAC3F,gBAAgB,kCAAU,KAAK,YAAY,oDAAoD;AAAA,EAC/F,kBAAkB,kCAAU,KAAK,YAAY,sDAAsD;AAAA,EACnG,kBAAkB,kCAAU,KAAK;AAAA,IAC/B;AAAA,EACF;AAAA,EACA,oBAAoB,kCAAU,KAAK;AAAA,IACjC;AAAA,EACF;AAAA,EACA,mBAAmB,kCAAU,KAAK;AAAA,IAChC;AAAA,EACF;AAAA,EACA,0BAA0B,kCAAU,OAAO;AAAA,IACzC;AAAA,EACF;AAAA,EACA,0BAA0B,kCAAU,OACjC,YAAY,oGAAoG,EAChH,aAAa,qDAAqD;AAAA,EACrE,6BAA6B,kCAAU,OACpC;AAAA,IACC;AAAA,EACF,EACC,aAAa,UAAU;AAAA,EAC1B,iBAAiB,kCAAU,OACxB,YAAY,2EAA2E,EACvF,aAAa,GAAG;AAAA,EACnB,eAAe,kCAAU,OAAO,YAAY,sBAAsB,EAAE,aAAa,EAAE;AAAA,EACnF,OAAG,wDAA+B,4EAAkC;AACtE;",
6
6
  "names": []
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/sharedTypes.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable max-lines */\nimport type React from 'react';\nimport type { DSControlledDateTimePickerT } from './propTypes.js';\n\nexport declare namespace DSControlledDateTimePickerInternalsT {\n export type DateDay =\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n | 25\n | 26\n | 27\n | 28\n | 29\n | 30\n | 31;\n export type DateMonth = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;\n export interface MetaMonthDay {\n day: Date;\n dayAsString: string;\n isPrevMonthDay: boolean;\n isNextMonthDay: boolean;\n isCurrMonthDay: boolean;\n isHidden: boolean;\n dayBtnRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export type OnKeyDown<HTMLT = HTMLInputElement> = (e: React.KeyboardEvent<HTMLT>) => void;\n export type OnChangeFunc = (e: React.ChangeEvent<HTMLInputElement>) => void;\n export type OnDSBtnClick = (\n e: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement> | React.KeyboardEvent,\n ) => void;\n export type HandleOnChangeFunc = (\n newVal: string,\n e: DSControlledDateTimePickerT.OnInternalValuesChangeEvent,\n metaInfo?: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo,\n ) => void;\n export type OnBlurFunc = (e: React.FocusEvent<HTMLInputElement>) => void;\n export type OnFocusFunc = (e: React.FocusEvent<HTMLInputElement>) => void;\n\n export interface UseDateInputsR {\n month: string;\n day: string;\n year: string;\n autoFocusMonthInput: boolean;\n innerRefMonthInput?:\n | React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>\n | ((ref: HTMLInputElement | HTMLButtonElement | null) => void);\n disabled: boolean;\n onMonthChange: OnChangeFunc;\n onDayChange: OnChangeFunc;\n onYearChange: OnChangeFunc;\n onMonthFocus: OnFocusFunc;\n onDayFocus: OnFocusFunc;\n onYearFocus: OnFocusFunc;\n onMonthBlur: OnBlurFunc;\n onDayBlur: OnBlurFunc;\n onYearBlur: OnBlurFunc;\n onMonthKeyDown: OnKeyDown;\n onDayKeyDown: OnKeyDown;\n onYearKeyDown: OnKeyDown;\n }\n export interface InputsReferences {\n monthInputRef: React.RefObject<HTMLInputElement>;\n dayInputRef: React.RefObject<HTMLInputElement>;\n yearInputRef: React.RefObject<HTMLInputElement>;\n hourInputRef: React.RefObject<HTMLInputElement>;\n minutesInputRef: React.RefObject<HTMLInputElement>;\n meridiemInputRef: React.RefObject<HTMLInputElement>;\n clearButtonRef: React.MutableRefObject<HTMLButtonElement>;\n pickerButtonRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export interface CalendarReferences {\n prevYearBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMonthBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMonthBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextYearBtnRef: React.MutableRefObject<HTMLButtonElement>;\n calendarDaysWrapperRef: React.MutableRefObject<HTMLDivElement>;\n }\n export interface TimewheelReferences {\n prevHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export interface InternalPrecalculatedFlags {\n isControllerOnly: boolean;\n shouldPreserveClearableSpace: boolean;\n isWithTimeWheelToo: boolean;\n isWithCalendarToo: boolean;\n isWithDateInputs: boolean;\n isWithDateInputsOnly: boolean;\n isWithTimeInputs: boolean;\n isWithTimeInputsOnly: boolean;\n autoFocusMonthInput: boolean;\n autoFocusHourInput: boolean;\n autoFocusPrevMonthArrow: boolean;\n autoFocusHourTimeWheel: boolean;\n hideDate: boolean;\n hideTime: boolean;\n hideDateTimePicker: boolean;\n hideDatePicker: boolean;\n hideTimePicker: boolean;\n withAnyInputs: boolean;\n withAnyPicker: boolean;\n withClearBtn: boolean;\n withAnyRightController: boolean;\n isDateSelector: boolean;\n isTimeSelector: boolean;\n isDateTimeSelector: boolean;\n }\n}\n", "import * as React from 'react';\nexport { React };\n"],
3
+ "sources": ["../../src/sharedTypes.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable max-lines */\nimport type React from 'react';\nimport type { DSControlledDateTimePickerT } from './react-desc-prop-types.js';\n\nexport declare namespace DSControlledDateTimePickerInternalsT {\n export type DateDay =\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n | 25\n | 26\n | 27\n | 28\n | 29\n | 30\n | 31;\n export type DateMonth = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;\n export interface MetaMonthDay {\n day: Date;\n dayAsString: string;\n isPrevMonthDay: boolean;\n isNextMonthDay: boolean;\n isCurrMonthDay: boolean;\n isHidden: boolean;\n dayBtnRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export type OnKeyDown<HTMLT = HTMLInputElement> = (e: React.KeyboardEvent<HTMLT>) => void;\n export type OnChangeFunc = (e: React.ChangeEvent<HTMLInputElement>) => void;\n export type OnDSBtnClick = (\n e: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement> | React.KeyboardEvent,\n ) => void;\n export type HandleOnChangeFunc = (\n newVal: string,\n e: DSControlledDateTimePickerT.OnInternalValuesChangeEvent,\n metaInfo?: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo,\n ) => void;\n export type OnBlurFunc = (e: React.FocusEvent<HTMLInputElement>) => void;\n export type OnFocusFunc = (e: React.FocusEvent<HTMLInputElement>) => void;\n\n export interface UseDateInputsR {\n month: string;\n day: string;\n year: string;\n autoFocusMonthInput: boolean;\n innerRefMonthInput?:\n | React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>\n | ((ref: HTMLInputElement | HTMLButtonElement | null) => void);\n disabled: boolean;\n onMonthChange: OnChangeFunc;\n onDayChange: OnChangeFunc;\n onYearChange: OnChangeFunc;\n onMonthFocus: OnFocusFunc;\n onDayFocus: OnFocusFunc;\n onYearFocus: OnFocusFunc;\n onMonthBlur: OnBlurFunc;\n onDayBlur: OnBlurFunc;\n onYearBlur: OnBlurFunc;\n onMonthKeyDown: OnKeyDown;\n onDayKeyDown: OnKeyDown;\n onYearKeyDown: OnKeyDown;\n }\n export interface InputsReferences {\n monthInputRef: React.RefObject<HTMLInputElement>;\n dayInputRef: React.RefObject<HTMLInputElement>;\n yearInputRef: React.RefObject<HTMLInputElement>;\n hourInputRef: React.RefObject<HTMLInputElement>;\n minutesInputRef: React.RefObject<HTMLInputElement>;\n meridiemInputRef: React.RefObject<HTMLInputElement>;\n clearButtonRef: React.MutableRefObject<HTMLButtonElement>;\n pickerButtonRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export interface CalendarReferences {\n prevYearBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMonthBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMonthBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextYearBtnRef: React.MutableRefObject<HTMLButtonElement>;\n calendarDaysWrapperRef: React.MutableRefObject<HTMLDivElement>;\n }\n export interface TimewheelReferences {\n prevHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export interface InternalPrecalculatedFlags {\n isControllerOnly: boolean;\n shouldPreserveClearableSpace: boolean;\n isWithTimeWheelToo: boolean;\n isWithCalendarToo: boolean;\n isWithDateInputs: boolean;\n isWithDateInputsOnly: boolean;\n isWithTimeInputs: boolean;\n isWithTimeInputsOnly: boolean;\n autoFocusMonthInput: boolean;\n autoFocusHourInput: boolean;\n autoFocusPrevMonthArrow: boolean;\n autoFocusHourTimeWheel: boolean;\n hideDate: boolean;\n hideTime: boolean;\n hideDateTimePicker: boolean;\n hideDatePicker: boolean;\n hideTimePicker: boolean;\n withAnyInputs: boolean;\n withAnyPicker: boolean;\n withClearBtn: boolean;\n withAnyRightController: boolean;\n isDateSelector: boolean;\n isTimeSelector: boolean;\n isDateTimeSelector: boolean;\n }\n}\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/tests/custom-props/customProps.js", "../../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../../src/tests/custom-props/customProps.js", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable max-lines */\n/* eslint-disable import/extensions */\nimport { ControlledDateTimePickerDatatestid } from '../../index';\nconst customPropsShareds = {\n [ControlledDateTimePickerDatatestid.CONTAINER]: {\n 'data-foo': 'foo-picker-container',\n 'aria-label': 'custom label for picker-container',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nconst customPropsDateInputs = {\n [ControlledDateTimePickerDatatestid.DATE_INPUTS.MONTH]: {\n 'data-foo': 'foo-month-input',\n 'aria-label': 'custom label for month-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.DATE_INPUTS.DAY]: {\n 'data-foo': 'foo-day-input',\n 'aria-label': 'custom label for day-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.DATE_INPUTS.YEAR]: {\n 'data-foo': 'foo-year-input',\n 'aria-label': 'custom label for year-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nconst customPropsTimeInputs = {\n [ControlledDateTimePickerDatatestid.TIME_INPUTS.HOUR]: {\n 'data-foo': 'foo-hour-input',\n 'aria-label': 'custom label for hour-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIME_INPUTS.MINUTE]: {\n 'data-foo': 'foo-minute-input',\n 'aria-label': 'custom label for minute-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIME_INPUTS.MERIDIEM]: {\n 'data-foo': 'foo-meridiem-input',\n 'aria-label': 'custom label for meridiem-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\n\nconst customPropsCalendarDatePart = {\n [ControlledDateTimePickerDatatestid.CALENDAR.HEADER_LABEL]: {\n 'data-foo': 'foo-calendar-header-label',\n 'aria-label': 'custom label for calendar-header-label',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.PREV_YEAR]: {\n 'data-foo': 'foo-calendar-prev-year',\n 'aria-label': 'custom label for calendar-prev-year',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.PREV_MONTH]: {\n 'data-foo': 'foo-calendar-prev-month',\n 'aria-label': 'custom label for calendar-prev-month',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.DAY]: {\n 'data-foo': 'foo-calendar-day',\n 'aria-label': 'custom label for calendar-day',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.NEXT_MONTH]: {\n 'data-foo': 'foo-calendar-next-month',\n 'aria-label': 'custom label for calendar-next-month',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.NEXT_YEAR]: {\n 'data-foo': 'foo-calendar-next-year',\n 'aria-label': 'custom label for calendar-next-year',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\n\nconst customPropsCalendarTimePart = {\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.HEADER_LABEL]: {\n 'data-foo': 'foo-timewheel-header-label',\n 'aria-label': 'custom label for timewheel-header-label',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_HOUR]: {\n 'data-foo': 'foo-timewheel-prev-hour',\n 'aria-label': 'custom label for timewheel-prev-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.HOUR]: {\n 'data-foo': 'foo-timewheel-hour',\n 'aria-label': 'custom label for timewheel-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_HOUR]: {\n 'data-foo': 'foo-timewheel-current-hour',\n 'aria-label': 'custom label for timewheel-current-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_HOUR]: {\n 'data-foo': 'foo-timewheel-next-hour',\n 'aria-label': 'custom label for timewheel-next-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_MINUTE]: {\n 'data-foo': 'foo-timewheel-prev-minute',\n 'aria-label': 'custom label for timewheel-prev-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.MINUTE]: {\n 'data-foo': 'foo-timewheel-minute',\n 'aria-label': 'custom label for timewheel-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_MINUTE]: {\n 'data-foo': 'foo-timewheel-current-minute',\n 'aria-label': 'custom label for timewheel-current-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_MINUTE]: {\n 'data-foo': 'foo-timewheel-next-minute',\n 'aria-label': 'custom label for timewheel-next-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_MERIDIEM]: {\n 'data-foo': 'foo-timewheel-prev-meridiem',\n 'aria-label': 'custom label for timewheel-prev-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.MERIDIEM]: {\n 'data-foo': 'foo-timewheel-meridiem',\n 'aria-label': 'custom label for timewheel-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_MERIDIEM]: {\n 'data-foo': 'foo-timewheel-current-meridiem',\n 'aria-label': 'custom label for timewheel-current-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_MERIDIEM]: {\n 'data-foo': 'foo-timewheel-next-meridiem',\n 'aria-label': 'custom label for timewheel-next-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\n// const customPropsCalendarDatePartSelections = {\n// [ControlledDateTimePickerDatatestid.CALENDAR.FOCUSED_DAY]: {\n// 'data-foo': 'foo-calendar-focused-day',\n// 'aria-label': 'custom label for calendar-focused-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.SELECTED_DAY]: {\n// 'data-foo': 'foo-calendar-selected-day',\n// 'aria-label': 'custom label for calendar-selected-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.SELECTED_FOCUSED_DAY]: {\n// 'data-foo': 'foo-calendar-selected-focused-day',\n// 'aria-label': 'custom label for calendar-selected-focused-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsCalendarDatePartRanges = {\n// [ControlledDateTimePickerDatatestid.CALENDAR.START_RANGE_DAY]: {\n// 'data-foo': 'foo-calendar-start-range-day',\n// 'aria-label': 'custom label for calendar-start-range-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.IN_RANGE_DAY]: {\n// 'data-foo': 'foo-calendar-in-range-day',\n// 'aria-label': 'custom label for calendar-in-range-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.END_RANGE_DAY]: {\n// 'data-foo': 'foo-calendar-end-range-day',\n// 'aria-label': 'custom label for calendar-end-range-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsPickersIcons = {\n// [ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR]: {\n// 'data-foo': 'foo-calendar-icon',\n// 'aria-label': 'custom label for calendar-icon',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.PICKER_ICONS.TIMEWHEEL]: {\n// 'data-foo': 'foo-timewheel-icon',\n// 'aria-label': 'custom label for timewheel-icon',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsContextualMenu = {\n// [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR]: {\n// 'data-foo': 'foo-contextual-menu-calendar',\n// 'aria-label': 'custom label for contextual-menu-calendar',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL]: {\n// 'data-foo': 'foo-contextual-menu-timewheel',\n// 'aria-label': 'custom label for contextual-menu-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsControllers = {\n// [ControlledDateTimePickerDatatestid.CONTROLLER_COMPONENT.CALENDAR]: {\n// 'data-foo': 'foo-controller-component-calendar',\n// 'aria-label': 'custom label for controller-component-calendar',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CONTROLLER_COMPONENT.TIMEWHEEL]: {\n// 'data-foo': 'foo-controller-component-timewheel',\n// 'aria-label': 'custom label for controller-component-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CONTROLLER_COMPONENT.CALENDAR_TIMEWHEEL]: {\n// 'data-foo': 'foo-controller-component-calendar-timewheel',\n// 'aria-label': 'custom label for controller-component-calendar-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsFooters = {\n// [ControlledDateTimePickerDatatestid.FOOTERS.CALENDAR]: {\n// 'data-foo': 'foo-footers-calendar',\n// 'aria-label': 'custom label for footers-calendar',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.FOOTERS.TIMEWHEEL]: {\n// 'data-foo': 'foo-footers-timewheel',\n// 'aria-label': 'custom label for footers-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.FOOTERS.CALENDAR_TIMEWHEEL]: {\n// 'data-foo': 'foo-footers-calendar-timewheel',\n// 'aria-label': 'custom label for footers-calendar-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n\nexport const customPropsForFullDateTimePickerWhenClosed = {\n ...customPropsShareds,\n ...customPropsDateInputs,\n ...customPropsTimeInputs,\n [ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR_TIMEWHEEL]: {\n 'data-foo': 'foo-calendar-timewheel-icon',\n 'aria-label': 'custom label for calendar-timewheel-icon',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nexport const customPropsForFullDateTimePickerWhenOpen = {\n ...customPropsForFullDateTimePickerWhenClosed,\n [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL]: {\n 'data-foo': 'foo-contextual-menu-calendar-timewheel',\n 'aria-label': 'custom label for contextual-menu-calendar-timewheel',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n ...customPropsCalendarDatePart,\n ...customPropsCalendarTimePart,\n};\nexport const customPropsForFullDatePickerWhenClosed = {\n ...customPropsShareds,\n ...customPropsDateInputs,\n [ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR]: {\n 'data-foo': 'foo-calendar-icon',\n 'aria-label': 'custom label for calendar-icon',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nexport const customPropsForFullDatePickerWhenOpen = {\n ...customPropsForFullDatePickerWhenClosed,\n [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR]: {\n 'data-foo': 'foo-contextual-menu-calendar',\n 'aria-label': 'custom label for contextual-menu-calendar',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n ...customPropsCalendarDatePart,\n};\nexport const customPropsForFullTimePickerWhenClosed = {\n ...customPropsShareds,\n ...customPropsTimeInputs,\n [ControlledDateTimePickerDatatestid.PICKER_ICONS.TIMEWHEEL]: {\n 'data-foo': 'foo-timewheel-icon',\n 'aria-label': 'custom label for timewheel-icon',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nexport const customPropsForFullTimePickerWhenOpen = {\n ...customPropsForFullTimePickerWhenClosed,\n [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL]: {\n 'data-foo': 'foo-contextual-menu-timewheel',\n 'aria-label': 'custom label for contextual-menu-timewheel',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n ...customPropsCalendarTimePart,\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;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,IACd,aAAa;AAAA,EACf;AAAA,EACA,GAAG;AACL;AACO,MAAM,yCAAyC;AAAA,EACpD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,CAAC,4CAAmC,aAAa,SAAS,GAAG;AAAA,IAC3D,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AACF;AACO,MAAM,uCAAuC;AAAA,EAClD,GAAG;AAAA,EACH,CAAC,4CAAmC,gBAAgB,SAAS,GAAG;AAAA,IAC9D,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AAAA,EACA,GAAG;AACL;",
6
6
  "names": []
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var React = __toESM(require("react"));
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import__ = require("../index.js");
27
+ const testRequiredProps = {
28
+ dateTime: "10/07/2023",
29
+ onDateTimeChange: (dateTime) => {
30
+ },
31
+ type: "full-date-time"
32
+ };
33
+ const testOptionalProps = {};
34
+ const testPartialDefaults = {};
35
+ const testProps = {
36
+ ...testRequiredProps,
37
+ ...testOptionalProps,
38
+ ...testPartialDefaults
39
+ };
40
+ const testPropsAsSyntax = {
41
+ ...testRequiredProps,
42
+ ...testOptionalProps,
43
+ ...testPartialDefaults
44
+ };
45
+ const testCompleteDefaults = {
46
+ autoFocus: false,
47
+ disabled: false,
48
+ getIsDayInRange: (day) => true,
49
+ getIsDisabledDay: (day) => false,
50
+ getIsDisabledTime: (time) => false,
51
+ getIsEndRangeDay: (day) => false,
52
+ getIsStartRangeDay: (day) => false,
53
+ getIsOutOfRangeDay: (day) => false,
54
+ hasError: false,
55
+ isClearable: false,
56
+ minutesInterval: 1,
57
+ onDateChange: (date) => {
58
+ },
59
+ onTimeChange: (time) => {
60
+ },
61
+ onDayChange: (day) => {
62
+ },
63
+ onMonthChange: (month) => {
64
+ },
65
+ onYearChange: (year) => {
66
+ },
67
+ onHourChange: (hour) => {
68
+ },
69
+ onMinuteChange: (minute) => {
70
+ },
71
+ onMeridiemChange: (meridiem) => {
72
+ },
73
+ onPickerClose: () => {
74
+ },
75
+ onPickerOpen: () => {
76
+ },
77
+ preventCloseOnSelection: false
78
+ };
79
+ const testInternalProps = {
80
+ ...testRequiredProps,
81
+ ...testOptionalProps,
82
+ ...testCompleteDefaults
83
+ };
84
+ const testInternalPropsAsSyntax = {
85
+ ...testRequiredProps,
86
+ ...testOptionalProps,
87
+ ...testCompleteDefaults
88
+ };
89
+ const testExplicitDefinition = {
90
+ dateTime: "10/07/2023",
91
+ onDateTimeChange: (dateTime) => {
92
+ },
93
+ type: "full-date-time"
94
+ };
95
+ const testInferedTypeCompatibility = {
96
+ dateTime: "10/07/2023",
97
+ onDateTimeChange: (dateTime) => {
98
+ },
99
+ type: "full-date-time"
100
+ };
101
+ const testDefinitionAsConst = {
102
+ dateTime: "10/07/2023",
103
+ onDateTimeChange: (dateTime) => {
104
+ },
105
+ type: "full-date-time"
106
+ };
107
+ const ExampleUsageComponent = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
108
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSControlledDateTimePicker, { ...testExplicitDefinition }),
109
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSControlledDateTimePicker, { ...testInferedTypeCompatibility }),
110
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSControlledDateTimePicker, { ...testDefinitionAsConst }),
111
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
112
+ import__.DSControlledDateTimePicker,
113
+ {
114
+ dateTime: "10/07/2023",
115
+ onDateTimeChange: (dateTime) => {
116
+ },
117
+ type: "full-date-time"
118
+ }
119
+ )
120
+ ] });
121
+ //# sourceMappingURL=typescript-system-message-valid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-system-message-valid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\n// eslint-disable-line no-console\nimport { DSControlledDateTimePicker } from '../index.js';\nimport type { DSControlledDateTimePickerT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSControlledDateTimePickerT.DateTimePickerProps;\ntype ComponentPropsInternals = DSControlledDateTimePickerT.InternalDateTimePickerProps;\ntype ComponentPropsDefaultProps = DSControlledDateTimePickerT.DefaultDateTimeProps;\ntype ComponentPropsOptionalProps = DSControlledDateTimePickerT.OptionalDateTimeProps;\ntype ComponentPropsRequiredProps = DSControlledDateTimePickerT.RequiredDateTimeProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n dateTime: '10/07/2023',\n onDateTimeChange: (dateTime: string) => {},\n type: 'full-date-time',\n};\nconst testOptionalProps: ComponentPropsOptionalProps = {};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {};\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n autoFocus: false,\n disabled: false,\n getIsDayInRange: (day: string) => true,\n getIsDisabledDay: (day: string) => false,\n getIsDisabledTime: (time: string) => false,\n getIsEndRangeDay: (day: string) => false,\n getIsStartRangeDay: (day: string) => false,\n getIsOutOfRangeDay: (day: string) => false,\n hasError: false,\n isClearable: false,\n minutesInterval: 1,\n onDateChange: (date: string) => {},\n onTimeChange: (time: string) => {},\n onDayChange: (day: string) => {},\n onMonthChange: (month: string) => {},\n onYearChange: (year: string) => {},\n onHourChange: (hour: string) => {},\n onMinuteChange: (minute: string) => {},\n onMeridiemChange: (meridiem: string) => {},\n onPickerClose: () => {},\n onPickerOpen: () => {},\n preventCloseOnSelection: false,\n};\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n dateTime: '10/07/2023',\n onDateTimeChange: (dateTime: string) => {},\n type: 'full-date-time',\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n dateTime: '10/07/2023',\n onDateTimeChange: (dateTime: string) => {},\n type: 'full-date-time',\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n dateTime: '10/07/2023',\n onDateTimeChange: (dateTime: string) => {},\n type: 'full-date-time',\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSControlledDateTimePicker {...testExplicitDefinition} />\n <DSControlledDateTimePicker {...testInferedTypeCompatibility} />\n <DSControlledDateTimePicker {...testDefinitionAsConst} />\n {/* works with inline values */}\n <DSControlledDateTimePicker\n dateTime=\"10/07/2023\"\n onDateTimeChange={(dateTime: string) => {}}\n type=\"full-date-time\"\n />\n </>\n);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACyFrB;AAvFF,eAA2C;AAU3C,MAAM,oBAAiD;AAAA,EACrD,UAAU;AAAA,EACV,kBAAkB,CAAC,aAAqB;AAAA,EAAC;AAAA,EACzC,MAAM;AACR;AACA,MAAM,oBAAiD,CAAC;AAIxD,MAAM,sBAA2D,CAAC;AAClE,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AACA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,uBAA6D;AAAA,EACjE,WAAW;AAAA,EACX,UAAU;AAAA,EACV,iBAAiB,CAAC,QAAgB;AAAA,EAClC,kBAAkB,CAAC,QAAgB;AAAA,EACnC,mBAAmB,CAAC,SAAiB;AAAA,EACrC,kBAAkB,CAAC,QAAgB;AAAA,EACnC,oBAAoB,CAAC,QAAgB;AAAA,EACrC,oBAAoB,CAAC,QAAgB;AAAA,EACrC,UAAU;AAAA,EACV,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,cAAc,CAAC,SAAiB;AAAA,EAAC;AAAA,EACjC,cAAc,CAAC,SAAiB;AAAA,EAAC;AAAA,EACjC,aAAa,CAAC,QAAgB;AAAA,EAAC;AAAA,EAC/B,eAAe,CAAC,UAAkB;AAAA,EAAC;AAAA,EACnC,cAAc,CAAC,SAAiB;AAAA,EAAC;AAAA,EACjC,cAAc,CAAC,SAAiB;AAAA,EAAC;AAAA,EACjC,gBAAgB,CAAC,WAAmB;AAAA,EAAC;AAAA,EACrC,kBAAkB,CAAC,aAAqB;AAAA,EAAC;AAAA,EACzC,eAAe,MAAM;AAAA,EAAC;AAAA,EACtB,cAAc,MAAM;AAAA,EAAC;AAAA,EACrB,yBAAyB;AAC3B;AACA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AACA,MAAM,4BAA4B;AAAA,EAChC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,UAAU;AAAA,EACV,kBAAkB,CAAC,aAAqB;AAAA,EAAC;AAAA,EACzC,MAAM;AACR;AAGA,MAAM,+BAA+B;AAAA,EACnC,UAAU;AAAA,EACV,kBAAkB,CAAC,aAAqB;AAAA,EAAC;AAAA,EACzC,MAAM;AACR;AAEA,MAAM,wBAAwB;AAAA,EAC5B,UAAU;AAAA,EACV,kBAAkB,CAAC,aAAqB;AAAA,EAAC;AAAA,EACzC,MAAM;AACR;AAEA,MAAM,wBAAwB,MAC5B,4EAEE;AAAA,8CAAC,uCAA4B,GAAG,wBAAwB;AAAA,EACxD,4CAAC,uCAA4B,GAAG,8BAA8B;AAAA,EAC9D,4CAAC,uCAA4B,GAAG,uBAAuB;AAAA,EAEvD;AAAA,IAAC;AAAA;AAAA,MACC,UAAS;AAAA,MACT,kBAAkB,CAAC,aAAqB;AAAA,MAAC;AAAA,MACzC,MAAK;AAAA;AAAA,EACP;AAAA,GACF;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/utils/constants.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../src/utils/constants.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export const weekDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] as const;\n\nexport const monthNames = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n] as const;\n\nexport const announcableCardinalDays = {\n 1: 'first',\n 2: 'second',\n 3: 'third',\n 4: 'fourth',\n 5: 'fifth',\n 6: 'sixth',\n 7: 'seventh',\n 8: 'eighth',\n 9: 'ninth',\n 10: 'tenth',\n 11: 'eleventh',\n 12: 'twelfth',\n 13: 'thirteenth',\n 14: 'fourteenth',\n 15: 'fifteenth',\n 16: 'sixteenth',\n 17: 'seventeenth',\n 18: 'eighteenth',\n 19: 'ninteenth',\n 20: 'twentieth',\n 21: 'twentie first',\n 22: 'twentie second',\n 23: 'twentie third',\n 24: 'twentie fourth',\n 25: 'twentie fifth',\n 26: 'twentie sixth',\n 27: 'twentie seventh',\n 28: 'twentie eighth',\n 29: 'twentie ninth',\n 30: 'thirtieth',\n 31: 'thirty first',\n} as const;\n\nexport const defaultMetaInfo = { isAutomaticFillTrigger: false };\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,WAAW,CAAC,UAAU,UAAU,WAAW,aAAa,YAAY,UAAU,UAAU;AAE9F,MAAM,aAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,0BAA0B;AAAA,EACrC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,MAAM,kBAAkB,EAAE,wBAAwB,MAAM;",
6
6
  "names": []
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/utils/dateHelpers.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable max-lines */\nimport { createRef } from 'react';\nimport { monthNames } from './constants.js';\nimport { prependStringWithPlaceHolders, deconstructValuesFromDateString, isIncompleteString } from './stringHelpers.js';\nimport { convertToPositiveNumberIfPossible } from './numberHelpers.js';\nimport type { DSControlledDateTimePickerT } from '../propTypes.js';\nimport type { DSControlledDateTimePickerInternalsT } from '../sharedTypes.js';\n\nexport const getDateValuesFromDate = (day: Date): DateValuesT => ({\n month: day?.getMonth?.() as DSControlledDateTimePickerInternalsT.DateMonth,\n day: day?.getDate?.() as DSControlledDateTimePickerInternalsT.DateDay,\n year: day?.getFullYear?.(),\n});\nexport const getDateStringFromDay = (day: Date): string => {\n const monthFromDay = prependStringWithPlaceHolders(`${day.getMonth() + 1}`, 2); // months from 1-12\n const dayFromDay = prependStringWithPlaceHolders(`${day.getDate()}`, 2);\n const yearFromDay = prependStringWithPlaceHolders(`${day.getFullYear()}`, 4);\n\n return `${monthFromDay}/${dayFromDay}/${yearFromDay}`;\n};\nexport const getTimeStringFromDay = (day: Date): string => {\n const hoursNum = day.getHours();\n const meridiem = hoursNum > 12 ? 'PM' : 'AM';\n const twelveHourFormat = hoursNum > 12 ? hoursNum - 12 : hoursNum;\n const minutesNum = day.getMinutes();\n\n const hoursFromDay = prependStringWithPlaceHolders(`${twelveHourFormat}`, 2);\n const minutesFromDay = prependStringWithPlaceHolders(`${minutesNum}`, 2);\n\n return `${hoursFromDay}:${minutesFromDay} ${meridiem}`;\n};\nexport const getMonthNameByMonthNumber = (monthNumber: number): string => monthNames[monthNumber];\nexport const isSameDateMoment = (dateA: Date, dateB: Date): boolean => dateA?.getTime?.() === dateB?.getTime?.();\n\nexport const compareTwoDatesDayEquality = (dayA: Date, dayB: Date): boolean => {\n const { day: currD, month: currM, year: currY } = getDateValuesFromDate(dayA);\n const { day: focusD, month: focusM, year: focusY } = getDateValuesFromDate(dayB);\n return currD === focusD && currM === focusM && currY === focusY;\n};\n\nexport const getLastDayOfMonth = (month: DSControlledDateTimePickerInternalsT.DateMonth, year: number): Date =>\n new Date(year, month + 1, 0);\nexport const isValidDayForTheMonth = (\n month: DSControlledDateTimePickerInternalsT.DateMonth,\n year: number,\n day: DSControlledDateTimePickerInternalsT.DateDay,\n): boolean => new Date(year, month, day)?.getMonth?.() === month;\nexport const getDayFromDateString = (dateString: string): Date | null => {\n const { month, day, year } = deconstructValuesFromDateString(dateString);\n const monthNum = convertToPositiveNumberIfPossible(month);\n const dayNum = convertToPositiveNumberIfPossible(day) as DSControlledDateTimePickerInternalsT.DateDay | -1;\n const yearNum = convertToPositiveNumberIfPossible(year);\n if (\n monthNum !== -1 &&\n dayNum !== -1 &&\n yearNum !== -1 &&\n isValidDayForTheMonth((monthNum - 1) as DSControlledDateTimePickerInternalsT.DateMonth, yearNum, dayNum)\n )\n return new Date(yearNum, monthNum - 1, dayNum);\n return null;\n};\nexport const isValidDayForTheMonthDateString = (dateString: string): boolean => {\n if (isIncompleteString(dateString)) return true;\n const { month } = deconstructValuesFromDateString(dateString);\n const monthInt = convertToPositiveNumberIfPossible(month);\n if (monthInt === -1) return false;\n const monthDateMonth = (monthInt - 1) as DSControlledDateTimePickerInternalsT.DateMonth;\n return getDayFromDateString(dateString)?.getMonth?.() === monthDateMonth;\n};\n\nexport const getValidationDateStringMetaInfo = (\n dateString: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n getIsOutOfRangeDay = (day: string) => false,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n getIsDisabledDay = (day: string) => false,\n): Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> => {\n const metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {};\n if (!isIncompleteString(dateString)) {\n metaInfo.isDayPresentInMonth = isValidDayForTheMonthDateString(dateString);\n if (!metaInfo.isDayPresentInMonth)\n metaInfo.suggestedErrorMsg = 'The selected day is not part of the selected month';\n const day = getDayFromDateString(dateString);\n if (day) {\n metaInfo.isOutOfRangeDay = getIsOutOfRangeDay(dateString);\n metaInfo.isDisabledDay = getIsDisabledDay(dateString);\n if (metaInfo.isOutOfRangeDay || metaInfo.isDisabledDay)\n metaInfo.suggestedErrorMsg = 'The selected day is not allowed';\n }\n }\n return metaInfo;\n};\n// code adapted from https://github.com/datejs/Datejs/blob/master/src/core.js\nexport const isLeapYear = (year: number): boolean => (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n\nexport const getHowManyDaysInMonth = (year: number, month: number): number => {\n const daysPerMonth = [31, isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n return daysPerMonth[month];\n};\n\nexport const dateIsLeapYear = (date: Date): boolean => isLeapYear(date.getFullYear());\n\nexport const dateGetDaysInMonth = (date: Date): number => getHowManyDaysInMonth(date.getFullYear(), date.getMonth());\n\nexport const dateAddMonths = (date: Date, value: number): Date => {\n const copiedDate = new Date(date.getTime());\n const n = copiedDate.getDate();\n copiedDate.setDate(1);\n copiedDate.setMonth(copiedDate.getMonth() + value);\n copiedDate.setDate(Math.min(n, dateGetDaysInMonth(copiedDate)));\n return copiedDate;\n};\nexport const dateAddYear = (date: Date, value: number): Date => dateAddMonths(date, value * 12);\n\ninterface DateValuesT {\n month: DSControlledDateTimePickerInternalsT.DateMonth;\n year: number;\n day?: DSControlledDateTimePickerInternalsT.DateDay;\n}\ninterface DateSumValuesT {\n monthsToSum?: number;\n yearsToSum?: number;\n daysToSum?: number;\n}\n// sumFromDateValues supports negative values to \"subtract\"\nexport const sumFromDateValues = (\n { month, year, day = 1 }: DateValuesT,\n { monthsToSum = 0, yearsToSum = 0, daysToSum = 0 }: DateSumValuesT,\n): DateValuesT => {\n let newDate = new Date(year, month, day);\n if (yearsToSum) newDate = dateAddYear(newDate, yearsToSum);\n\n if (monthsToSum) newDate = dateAddMonths(newDate, monthsToSum);\n\n if (daysToSum) newDate.setDate(newDate.getDate() + daysToSum);\n\n return {\n month: newDate.getMonth() as DSControlledDateTimePickerInternalsT.DateMonth,\n day: newDate.getDate() as DSControlledDateTimePickerInternalsT.DateDay,\n year: newDate.getFullYear(),\n };\n};\nexport const sumValuesToDate = (day: Date, sumValues: DateSumValuesT): Date => {\n const dateAsVals = getDateValuesFromDate(day);\n const { month, year, day: newD } = sumFromDateValues(dateAsVals, sumValues);\n return new Date(year, month, newD);\n};\nexport const subtractYears = (date: Date, howManyMore = 1): Date => {\n const newDate = new Date(date.getTime());\n newDate.setFullYear(date.getFullYear() - howManyMore);\n return newDate;\n};\nexport const subtractMonths = (date: Date, howManyMore = 1): Date => {\n const newDate = new Date(date.getTime());\n newDate.setMonth(date.getMonth() - howManyMore);\n return newDate;\n};\nexport const sumMonths = (date: Date, howManyMore = 1): Date => {\n const newDate = new Date(date.getTime());\n newDate.setMonth(date.getMonth() + howManyMore);\n return newDate;\n};\nexport const sumYears = (date: Date, howManyMore = 1): Date => {\n const newDate = new Date(date.getTime());\n newDate.setFullYear(date.getFullYear() + howManyMore);\n return newDate;\n};\n\nexport const getDaysInMonth = (month: number, year: number): Date[] => {\n const date = new Date(year, month, 1);\n const days: Date[] = [];\n while (date.getMonth() === month) {\n days.push(new Date(date));\n date.setDate(date.getDate() + 1);\n }\n return days;\n};\nexport const getLastXDaysFromPreviousMonth = (month: number, year: number, howMany: number): Date[] => {\n const date = new Date(year, month, 1);\n const days: Date[] = [];\n while (days.length !== howMany) {\n date.setDate(date.getDate() - 1);\n days.push(new Date(date));\n }\n return days.reverse();\n};\nexport const getFirstXDaysFromNextMonth = (month: number, year: number, howMany: number): Date[] => {\n const date = sumMonths(new Date(year, month, 1), 1);\n const days: Date[] = [];\n while (days.length !== howMany) {\n days.push(new Date(date));\n date.setDate(date.getDate() + 1);\n }\n return days;\n};\n\nexport const getSixBySevenCurrentMonthDaysMatrix = (\n month: number,\n year: number,\n): DSControlledDateTimePickerInternalsT.MetaMonthDay[] => {\n const currentMonthDays = getDaysInMonth(month, year).map((day) => ({\n day,\n dayAsString: getDateStringFromDay(day),\n isPrevMonthDay: false,\n isNextMonthDay: false,\n isCurrMonthDay: true,\n isHidden: false,\n dayBtnRef: createRef<HTMLButtonElement>() as React.MutableRefObject<HTMLButtonElement>,\n }));\n const firstDayOfTheMonthWeekDay = currentMonthDays?.[0]?.day?.getDay();\n const previousMonthDaysToPrepend = getLastXDaysFromPreviousMonth(month, year, firstDayOfTheMonthWeekDay).map(\n (day) => ({\n day,\n dayAsString: getDateStringFromDay(day),\n isPrevMonthDay: true,\n isNextMonthDay: false,\n isCurrMonthDay: false,\n isHidden: false,\n dayBtnRef: createRef<HTMLButtonElement>() as React.MutableRefObject<HTMLButtonElement>,\n }),\n );\n const lastDayOfTheMonthWeekDay = currentMonthDays?.[currentMonthDays.length - 1]?.day?.getDay();\n const nextMonthDaysToAppend = getFirstXDaysFromNextMonth(month, year, 6 - lastDayOfTheMonthWeekDay).map((day) => ({\n day,\n dayAsString: getDateStringFromDay(day),\n isPrevMonthDay: false,\n isNextMonthDay: true,\n isCurrMonthDay: false,\n isHidden: false,\n dayBtnRef: createRef<HTMLButtonElement>() as React.MutableRefObject<HTMLButtonElement>,\n }));\n\n const allDays = [...previousMonthDaysToPrepend, ...currentMonthDays, ...nextMonthDaysToAppend];\n\n // we want to be sure that we have 6 rows and 7 columns always (worst case scenario - this ensure no jump of popperjs when changing months)\n const is6by7 = allDays.length === 42;\n if (is6by7) return allDays;\n\n // by default we prepend an extra week of previous month days\n const daysBefore = 7 + firstDayOfTheMonthWeekDay;\n // and we append just enough days to fill the 6th row of the current month\n let daysAfter = 6 - lastDayOfTheMonthWeekDay;\n // in some extreme cases we might have 4 rows and 7 columns (e.g. February 2026)\n // we can check it by checking that previousMonthDaysToPrepend length is 0 + currentMonthDays length is 28 + nextMonthDaysToAppend length is 0\n const is4by7 =\n previousMonthDaysToPrepend.length === 0 && currentMonthDays.length === 28 && nextMonthDaysToAppend.length === 0;\n if (is4by7) {\n // in this case we append an extra week of next month days\n daysAfter = 7;\n }\n\n // we add a \"previous month\" rows at the start of the array to make sure we have 6 rows\n const previousMonthDaysToPrepend2 = getLastXDaysFromPreviousMonth(month, year, daysBefore).map((day) => ({\n day,\n dayAsString: getDateStringFromDay(day),\n isPrevMonthDay: true,\n isNextMonthDay: false,\n isCurrMonthDay: false,\n isHidden: false,\n dayBtnRef: createRef<HTMLButtonElement>() as React.MutableRefObject<HTMLButtonElement>,\n }));\n const nextMonthDaysToAppend2 = getFirstXDaysFromNextMonth(month, year, daysAfter).map((day) => ({\n day,\n dayAsString: getDateStringFromDay(day),\n isPrevMonthDay: false,\n isNextMonthDay: true,\n isCurrMonthDay: false,\n isHidden: false,\n dayBtnRef: createRef<HTMLButtonElement>() as React.MutableRefObject<HTMLButtonElement>,\n }));\n\n return [...previousMonthDaysToPrepend2, ...currentMonthDays, ...nextMonthDaysToAppend2];\n};\n", "import * as React from 'react';\nexport { React };\n"],
3
+ "sources": ["../../../src/utils/dateHelpers.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable max-lines */\nimport { createRef } from 'react';\nimport { monthNames } from './constants.js';\nimport { prependStringWithPlaceHolders, deconstructValuesFromDateString, isIncompleteString } from './stringHelpers.js';\nimport { convertToPositiveNumberIfPossible } from './numberHelpers.js';\nimport type { DSControlledDateTimePickerT } from '../react-desc-prop-types.js';\nimport type { DSControlledDateTimePickerInternalsT } from '../sharedTypes.js';\n\nexport const getDateValuesFromDate = (day: Date): DateValuesT => ({\n month: day?.getMonth?.() as DSControlledDateTimePickerInternalsT.DateMonth,\n day: day?.getDate?.() as DSControlledDateTimePickerInternalsT.DateDay,\n year: day?.getFullYear?.(),\n});\nexport const getDateStringFromDay = (day: Date): string => {\n const monthFromDay = prependStringWithPlaceHolders(`${day.getMonth() + 1}`, 2); // months from 1-12\n const dayFromDay = prependStringWithPlaceHolders(`${day.getDate()}`, 2);\n const yearFromDay = prependStringWithPlaceHolders(`${day.getFullYear()}`, 4);\n\n return `${monthFromDay}/${dayFromDay}/${yearFromDay}`;\n};\nexport const getTimeStringFromDay = (day: Date): string => {\n const hoursNum = day.getHours();\n const meridiem = hoursNum > 12 ? 'PM' : 'AM';\n const twelveHourFormat = hoursNum > 12 ? hoursNum - 12 : hoursNum;\n const minutesNum = day.getMinutes();\n\n const hoursFromDay = prependStringWithPlaceHolders(`${twelveHourFormat}`, 2);\n const minutesFromDay = prependStringWithPlaceHolders(`${minutesNum}`, 2);\n\n return `${hoursFromDay}:${minutesFromDay} ${meridiem}`;\n};\nexport const getMonthNameByMonthNumber = (monthNumber: number): string => monthNames[monthNumber];\nexport const isSameDateMoment = (dateA: Date, dateB: Date): boolean => dateA?.getTime?.() === dateB?.getTime?.();\n\nexport const compareTwoDatesDayEquality = (dayA: Date, dayB: Date): boolean => {\n const { day: currD, month: currM, year: currY } = getDateValuesFromDate(dayA);\n const { day: focusD, month: focusM, year: focusY } = getDateValuesFromDate(dayB);\n return currD === focusD && currM === focusM && currY === focusY;\n};\n\nexport const getLastDayOfMonth = (month: DSControlledDateTimePickerInternalsT.DateMonth, year: number): Date =>\n new Date(year, month + 1, 0);\nexport const isValidDayForTheMonth = (\n month: DSControlledDateTimePickerInternalsT.DateMonth,\n year: number,\n day: DSControlledDateTimePickerInternalsT.DateDay,\n): boolean => new Date(year, month, day)?.getMonth?.() === month;\nexport const getDayFromDateString = (dateString: string): Date | null => {\n const { month, day, year } = deconstructValuesFromDateString(dateString);\n const monthNum = convertToPositiveNumberIfPossible(month);\n const dayNum = convertToPositiveNumberIfPossible(day) as DSControlledDateTimePickerInternalsT.DateDay | -1;\n const yearNum = convertToPositiveNumberIfPossible(year);\n if (\n monthNum !== -1 &&\n dayNum !== -1 &&\n yearNum !== -1 &&\n isValidDayForTheMonth((monthNum - 1) as DSControlledDateTimePickerInternalsT.DateMonth, yearNum, dayNum)\n )\n return new Date(yearNum, monthNum - 1, dayNum);\n return null;\n};\nexport const isValidDayForTheMonthDateString = (dateString: string): boolean => {\n if (isIncompleteString(dateString)) return true;\n const { month } = deconstructValuesFromDateString(dateString);\n const monthInt = convertToPositiveNumberIfPossible(month);\n if (monthInt === -1) return false;\n const monthDateMonth = (monthInt - 1) as DSControlledDateTimePickerInternalsT.DateMonth;\n return getDayFromDateString(dateString)?.getMonth?.() === monthDateMonth;\n};\n\nexport const getValidationDateStringMetaInfo = (\n dateString: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n getIsOutOfRangeDay = (day: string) => false,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n getIsDisabledDay = (day: string) => false,\n): Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> => {\n const metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {};\n if (!isIncompleteString(dateString)) {\n metaInfo.isDayPresentInMonth = isValidDayForTheMonthDateString(dateString);\n if (!metaInfo.isDayPresentInMonth)\n metaInfo.suggestedErrorMsg = 'The selected day is not part of the selected month';\n const day = getDayFromDateString(dateString);\n if (day) {\n metaInfo.isOutOfRangeDay = getIsOutOfRangeDay(dateString);\n metaInfo.isDisabledDay = getIsDisabledDay(dateString);\n if (metaInfo.isOutOfRangeDay || metaInfo.isDisabledDay)\n metaInfo.suggestedErrorMsg = 'The selected day is not allowed';\n }\n }\n return metaInfo;\n};\n// code adapted from https://github.com/datejs/Datejs/blob/master/src/core.js\nexport const isLeapYear = (year: number): boolean => (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n\nexport const getHowManyDaysInMonth = (year: number, month: number): number => {\n const daysPerMonth = [31, isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n return daysPerMonth[month];\n};\n\nexport const dateIsLeapYear = (date: Date): boolean => isLeapYear(date.getFullYear());\n\nexport const dateGetDaysInMonth = (date: Date): number => getHowManyDaysInMonth(date.getFullYear(), date.getMonth());\n\nexport const dateAddMonths = (date: Date, value: number): Date => {\n const copiedDate = new Date(date.getTime());\n const n = copiedDate.getDate();\n copiedDate.setDate(1);\n copiedDate.setMonth(copiedDate.getMonth() + value);\n copiedDate.setDate(Math.min(n, dateGetDaysInMonth(copiedDate)));\n return copiedDate;\n};\nexport const dateAddYear = (date: Date, value: number): Date => dateAddMonths(date, value * 12);\n\ninterface DateValuesT {\n month: DSControlledDateTimePickerInternalsT.DateMonth;\n year: number;\n day?: DSControlledDateTimePickerInternalsT.DateDay;\n}\ninterface DateSumValuesT {\n monthsToSum?: number;\n yearsToSum?: number;\n daysToSum?: number;\n}\n// sumFromDateValues supports negative values to \"subtract\"\nexport const sumFromDateValues = (\n { month, year, day = 1 }: DateValuesT,\n { monthsToSum = 0, yearsToSum = 0, daysToSum = 0 }: DateSumValuesT,\n): DateValuesT => {\n let newDate = new Date(year, month, day);\n if (yearsToSum) newDate = dateAddYear(newDate, yearsToSum);\n\n if (monthsToSum) newDate = dateAddMonths(newDate, monthsToSum);\n\n if (daysToSum) newDate.setDate(newDate.getDate() + daysToSum);\n\n return {\n month: newDate.getMonth() as DSControlledDateTimePickerInternalsT.DateMonth,\n day: newDate.getDate() as DSControlledDateTimePickerInternalsT.DateDay,\n year: newDate.getFullYear(),\n };\n};\nexport const sumValuesToDate = (day: Date, sumValues: DateSumValuesT): Date => {\n const dateAsVals = getDateValuesFromDate(day);\n const { month, year, day: newD } = sumFromDateValues(dateAsVals, sumValues);\n return new Date(year, month, newD);\n};\nexport const subtractYears = (date: Date, howManyMore = 1): Date => {\n const newDate = new Date(date.getTime());\n newDate.setFullYear(date.getFullYear() - howManyMore);\n return newDate;\n};\nexport const subtractMonths = (date: Date, howManyMore = 1): Date => {\n const newDate = new Date(date.getTime());\n newDate.setMonth(date.getMonth() - howManyMore);\n return newDate;\n};\nexport const sumMonths = (date: Date, howManyMore = 1): Date => {\n const newDate = new Date(date.getTime());\n newDate.setMonth(date.getMonth() + howManyMore);\n return newDate;\n};\nexport const sumYears = (date: Date, howManyMore = 1): Date => {\n const newDate = new Date(date.getTime());\n newDate.setFullYear(date.getFullYear() + howManyMore);\n return newDate;\n};\n\nexport const getDaysInMonth = (month: number, year: number): Date[] => {\n const date = new Date(year, month, 1);\n const days: Date[] = [];\n while (date.getMonth() === month) {\n days.push(new Date(date));\n date.setDate(date.getDate() + 1);\n }\n return days;\n};\nexport const getLastXDaysFromPreviousMonth = (month: number, year: number, howMany: number): Date[] => {\n const date = new Date(year, month, 1);\n const days: Date[] = [];\n while (days.length !== howMany) {\n date.setDate(date.getDate() - 1);\n days.push(new Date(date));\n }\n return days.reverse();\n};\nexport const getFirstXDaysFromNextMonth = (month: number, year: number, howMany: number): Date[] => {\n const date = sumMonths(new Date(year, month, 1), 1);\n const days: Date[] = [];\n while (days.length !== howMany) {\n days.push(new Date(date));\n date.setDate(date.getDate() + 1);\n }\n return days;\n};\n\nexport const getSixBySevenCurrentMonthDaysMatrix = (\n month: number,\n year: number,\n): DSControlledDateTimePickerInternalsT.MetaMonthDay[] => {\n const currentMonthDays = getDaysInMonth(month, year).map((day) => ({\n day,\n dayAsString: getDateStringFromDay(day),\n isPrevMonthDay: false,\n isNextMonthDay: false,\n isCurrMonthDay: true,\n isHidden: false,\n dayBtnRef: createRef<HTMLButtonElement>() as React.MutableRefObject<HTMLButtonElement>,\n }));\n const firstDayOfTheMonthWeekDay = currentMonthDays?.[0]?.day?.getDay();\n const previousMonthDaysToPrepend = getLastXDaysFromPreviousMonth(month, year, firstDayOfTheMonthWeekDay).map(\n (day) => ({\n day,\n dayAsString: getDateStringFromDay(day),\n isPrevMonthDay: true,\n isNextMonthDay: false,\n isCurrMonthDay: false,\n isHidden: false,\n dayBtnRef: createRef<HTMLButtonElement>() as React.MutableRefObject<HTMLButtonElement>,\n }),\n );\n const lastDayOfTheMonthWeekDay = currentMonthDays?.[currentMonthDays.length - 1]?.day?.getDay();\n const nextMonthDaysToAppend = getFirstXDaysFromNextMonth(month, year, 6 - lastDayOfTheMonthWeekDay).map((day) => ({\n day,\n dayAsString: getDateStringFromDay(day),\n isPrevMonthDay: false,\n isNextMonthDay: true,\n isCurrMonthDay: false,\n isHidden: false,\n dayBtnRef: createRef<HTMLButtonElement>() as React.MutableRefObject<HTMLButtonElement>,\n }));\n\n const allDays = [...previousMonthDaysToPrepend, ...currentMonthDays, ...nextMonthDaysToAppend];\n\n // we want to be sure that we have 6 rows and 7 columns always (worst case scenario - this ensure no jump of popperjs when changing months)\n const is6by7 = allDays.length === 42;\n if (is6by7) return allDays;\n\n // by default we prepend an extra week of previous month days\n const daysBefore = 7 + firstDayOfTheMonthWeekDay;\n // and we append just enough days to fill the 6th row of the current month\n let daysAfter = 6 - lastDayOfTheMonthWeekDay;\n // in some extreme cases we might have 4 rows and 7 columns (e.g. February 2026)\n // we can check it by checking that previousMonthDaysToPrepend length is 0 + currentMonthDays length is 28 + nextMonthDaysToAppend length is 0\n const is4by7 =\n previousMonthDaysToPrepend.length === 0 && currentMonthDays.length === 28 && nextMonthDaysToAppend.length === 0;\n if (is4by7) {\n // in this case we append an extra week of next month days\n daysAfter = 7;\n }\n\n // we add a \"previous month\" rows at the start of the array to make sure we have 6 rows\n const previousMonthDaysToPrepend2 = getLastXDaysFromPreviousMonth(month, year, daysBefore).map((day) => ({\n day,\n dayAsString: getDateStringFromDay(day),\n isPrevMonthDay: true,\n isNextMonthDay: false,\n isCurrMonthDay: false,\n isHidden: false,\n dayBtnRef: createRef<HTMLButtonElement>() as React.MutableRefObject<HTMLButtonElement>,\n }));\n const nextMonthDaysToAppend2 = getFirstXDaysFromNextMonth(month, year, daysAfter).map((day) => ({\n day,\n dayAsString: getDateStringFromDay(day),\n isPrevMonthDay: false,\n isNextMonthDay: true,\n isCurrMonthDay: false,\n isHidden: false,\n dayBtnRef: createRef<HTMLButtonElement>() as React.MutableRefObject<HTMLButtonElement>,\n }));\n\n return [...previousMonthDaysToPrepend2, ...currentMonthDays, ...nextMonthDaysToAppend2];\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAA0B;AAC1B,uBAA2B;AAC3B,2BAAmG;AACnG,2BAAkD;AAI3C,MAAM,wBAAwB,CAAC,SAA4B;AAAA,EAChE,OAAO,KAAK,WAAW;AAAA,EACvB,KAAK,KAAK,UAAU;AAAA,EACpB,MAAM,KAAK,cAAc;AAC3B;AACO,MAAM,uBAAuB,CAAC,QAAsB;AACzD,QAAM,mBAAe,oDAA8B,GAAG,IAAI,SAAS,IAAI,KAAK,CAAC;AAC7E,QAAM,iBAAa,oDAA8B,GAAG,IAAI,QAAQ,KAAK,CAAC;AACtE,QAAM,kBAAc,oDAA8B,GAAG,IAAI,YAAY,KAAK,CAAC;AAE3E,SAAO,GAAG,gBAAgB,cAAc;AAC1C;AACO,MAAM,uBAAuB,C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F;AAAA,IACA,aAAa,qBAAqB,GAAG;AAAA,IACrC,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,UAAU;AAAA,IACV,eAAW,wBAA6B;AAAA,EAC1C,EAAE;AAEF,SAAO,CAAC,GAAG,6BAA6B,GAAG,kBAAkB,GAAG,sBAAsB;AACxF;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/utils/dateTimeHelpers.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { getValidationDateStringMetaInfo } from './dateHelpers.js';\nimport { getValidationTimeStringMetaInfo } from './timeHelpers.js';\nimport type { DSControlledDateTimePickerT } from '../propTypes.js';\n\ninterface Validators {\n getIsOutOfRangeDay: (day: string) => boolean;\n getIsDisabledDay: (day: string) => boolean;\n getIsDisabledTime: (val: string) => boolean;\n}\nexport const getValidationDateTimeStringMetaInfo = (\n dateString: string,\n timeString: string,\n validators: Validators,\n): Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> => ({\n ...getValidationDateStringMetaInfo(dateString, validators.getIsOutOfRangeDay, validators.getIsDisabledDay),\n ...getValidationTimeStringMetaInfo(timeString, validators.getIsDisabledTime),\n});\n", "import * as React from 'react';\nexport { React };\n"],
3
+ "sources": ["../../../src/utils/dateTimeHelpers.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { getValidationDateStringMetaInfo } from './dateHelpers.js';\nimport { getValidationTimeStringMetaInfo } from './timeHelpers.js';\nimport type { DSControlledDateTimePickerT } from '../react-desc-prop-types.js';\n\ninterface Validators {\n getIsOutOfRangeDay: (day: string) => boolean;\n getIsDisabledDay: (day: string) => boolean;\n getIsDisabledTime: (val: string) => boolean;\n}\nexport const getValidationDateTimeStringMetaInfo = (\n dateString: string,\n timeString: string,\n validators: Validators,\n): Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> => ({\n ...getValidationDateStringMetaInfo(dateString, validators.getIsOutOfRangeDay, validators.getIsDisabledDay),\n ...getValidationTimeStringMetaInfo(timeString, validators.getIsDisabledTime),\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,yBAAgD;AAChD,yBAAgD;AAQzC,MAAM,sCAAsC,CACjD,YACA,YACA,gBACuE;AAAA,EACvE,OAAG,oDAAgC,YAAY,WAAW,oBAAoB,WAAW,gBAAgB;AAAA,EACzG,OAAG,oDAAgC,YAAY,WAAW,iBAAiB;AAC7E;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/utils/hooks/useGetDayFromDateString.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../../src/utils/hooks/useGetDayFromDateString.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import { useContext, useMemo } from 'react';\nimport { ControlledDateTimePickerContext } from '../../ControlledDateTimePickerCTX.js';\nimport { getDayFromDateString } from '../dateHelpers.js';\n\nexport const useGetDayFromDateString = (): Date | null => {\n const { dateStringFromProps } = useContext(ControlledDateTimePickerContext);\n return useMemo(() => getDayFromDateString(dateStringFromProps), [dateStringFromProps]);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAoC;AACpC,yCAAgD;AAChD,yBAAqC;AAE9B,MAAM,0BAA0B,MAAmB;AACxD,QAAM,EAAE,oBAAoB,QAAI,yBAAW,kEAA+B;AAC1E,aAAO,sBAAQ,UAAM,yCAAqB,mBAAmB,GAAG,CAAC,mBAAmB,CAAC;AACvF;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/utils/hooks/useGetMonthYearFromDateStringOrEmptyStartingMonth.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../../src/utils/hooks/useGetMonthYearFromDateStringOrEmptyStartingMonth.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import { useContext, useMemo } from 'react';\nimport { ControlledDateTimePickerContext } from '../../ControlledDateTimePickerCTX.js';\nimport { deconstructValuesFromDateString } from '../stringHelpers.js';\nimport type { DSControlledDateTimePickerInternalsT } from '../../sharedTypes.js';\n\nexport const useGetMonthYearFromDateStringOrEmptyStartingMonth = (): {\n year: number;\n month: DSControlledDateTimePickerInternalsT.DateMonth;\n} => {\n const { dateStringFromProps, emptyPickerStartingMonth } = useContext(ControlledDateTimePickerContext);\n\n return useMemo(() => {\n const { month: stringMonthVal, year: stringYearVal } = deconstructValuesFromDateString(dateStringFromProps);\n\n const { month: emptyStringSplitMonth, year: emptyStringSplitYear } =\n deconstructValuesFromDateString(emptyPickerStartingMonth);\n const userEmptyStringMonth = Number.parseInt(emptyStringSplitMonth, 10);\n const userEmptyStringYear = Number.parseInt(emptyStringSplitYear, 10);\n\n const month: DSControlledDateTimePickerInternalsT.DateMonth =\n stringMonthVal === '' || stringMonthVal.length !== 2\n ? ((userEmptyStringMonth - 1) as DSControlledDateTimePickerInternalsT.DateMonth)\n : ((Number.parseInt(stringMonthVal, 10) - 1) as DSControlledDateTimePickerInternalsT.DateMonth); // month is 0~11 in javascript Date...\n\n const year = stringYearVal === '' ? userEmptyStringYear : Number.parseInt(stringYearVal, 10);\n\n return { year, month };\n }, [dateStringFromProps, emptyPickerStartingMonth]);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAoC;AACpC,yCAAgD;AAChD,2BAAgD;AAGzC,MAAM,oDAAoD,MAG5D;AACH,QAAM,EAAE,qBAAqB,yBAAyB,QAAI,yBAAW,kEAA+B;AAEpG,aAAO,sBAAQ,MAAM;AACnB,UAAM,EAAE,OAAO,gBAAgB,MAAM,cAAc,QAAI,sDAAgC,mBAAmB;AAE1G,UAAM,EAAE,OAAO,uBAAuB,MAAM,qBAAqB,QAC/D,sDAAgC,wBAAwB;AAC1D,UAAM,uBAAuB,OAAO,SAAS,uBAAuB,EAAE;AACtE,UAAM,sBAAsB,OAAO,SAAS,sBAAsB,EAAE;AAEpE,UAAM,QACJ,mBAAmB,MAAM,eAAe,WAAW,IAC7C,uBAAuB,IACvB,OAAO,SAAS,gBAAgB,EAAE,IAAI;AAE9C,UAAM,OAAO,kBAAkB,KAAK,sBAAsB,OAAO,SAAS,eAAe,EAAE;AAE3F,WAAO,EAAE,MAAM,MAAM;AAAA,EACvB,GAAG,CAAC,qBAAqB,wBAAwB,CAAC;AACpD;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/utils/hooks/useGetStartingFocusedDay.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../../src/utils/hooks/useGetStartingFocusedDay.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable max-statements */\n/* eslint-disable complexity */\nimport { useContext, useMemo } from 'react';\nimport { ControlledDateTimePickerContext } from '../../ControlledDateTimePickerCTX.js';\nimport { deconstructValuesFromDateString } from '../stringHelpers.js';\nimport { convertToPositiveNumberIfPossible } from '../numberHelpers.js';\nimport { getDateValuesFromDate, isValidDayForTheMonth } from '../dateHelpers.js';\nimport { useGetDayFromDateString } from './useGetDayFromDateString.js';\nimport type { DSControlledDateTimePickerInternalsT } from '../../sharedTypes.js';\n\ninterface StartingFocusedDayT {\n startFocusedYear: number | null;\n startFocusedDay: number | null;\n startFocusedMonth: number | null;\n startFocusedDate: Date | null;\n}\nconst empty = {\n startFocusedYear: null,\n startFocusedDay: null,\n startFocusedMonth: null,\n startFocusedDate: null,\n};\nexport const useGetStartingFocusedDay = () => {\n const { onCalendarOpenFocusedDay } = useContext(ControlledDateTimePickerContext);\n const dayFromInputValues = useGetDayFromDateString();\n const {\n month: inputValuesSplitMonth,\n day: inputValuesSplitDay,\n year: inputValuesDaySplitYear,\n } = dayFromInputValues ? getDateValuesFromDate(dayFromInputValues) : { month: null, day: null, year: null };\n const isInputFilledAndValid =\n inputValuesSplitMonth &&\n inputValuesSplitDay &&\n inputValuesDaySplitYear &&\n isValidDayForTheMonth(inputValuesSplitMonth, inputValuesDaySplitYear, inputValuesSplitDay);\n const isOnCalendarOpenFocusedDayEmpty = !onCalendarOpenFocusedDay;\n const shouldFillWithOnCalendarOpenFocusedDay = !isInputFilledAndValid && !isOnCalendarOpenFocusedDayEmpty;\n return useMemo(() => {\n const startingDay: StartingFocusedDayT = { ...empty };\n\n // if input was filled start focus is the filled value (if it's valid day for the month)\n if (isInputFilledAndValid) {\n startingDay.startFocusedMonth = inputValuesSplitMonth;\n startingDay.startFocusedDay = inputValuesSplitDay;\n startingDay.startFocusedYear = inputValuesDaySplitYear;\n startingDay.startFocusedDate = dayFromInputValues;\n // if input was not filled (or filled invalid) and there is no onCalendarOpenFocusedDay start focus is not a day\n } else if (isOnCalendarOpenFocusedDayEmpty) {\n // if input was not filled and there is onCalendarOpenFocusedDay start focus is onCalendarOpenFocusedDay day\n return empty;\n } else if (shouldFillWithOnCalendarOpenFocusedDay) {\n const {\n month: focusedDaySplitMonth,\n day: focusedDaySplitDay,\n year: focusedDaySplitYear,\n } = deconstructValuesFromDateString(onCalendarOpenFocusedDay);\n const monthAsInt = convertToPositiveNumberIfPossible(focusedDaySplitMonth);\n const dayAsInt = convertToPositiveNumberIfPossible(focusedDaySplitDay);\n const yearAsInt = convertToPositiveNumberIfPossible(focusedDaySplitYear);\n // if this condition is false, return will be the same as return empty\n // because startFocusedMonth/Day/Year/Date will be === null\n // which is the expected result\n if (\n monthAsInt !== -1 &&\n dayAsInt !== -1 &&\n yearAsInt !== -1 &&\n isValidDayForTheMonth(\n (monthAsInt - 1) as DSControlledDateTimePickerInternalsT.DateMonth,\n yearAsInt,\n dayAsInt as DSControlledDateTimePickerInternalsT.DateDay,\n )\n ) {\n startingDay.startFocusedMonth = monthAsInt;\n startingDay.startFocusedDay = dayAsInt;\n startingDay.startFocusedYear = yearAsInt;\n startingDay.startFocusedDate = new Date(yearAsInt, monthAsInt - 1, dayAsInt);\n }\n }\n return startingDay;\n }, [\n dayFromInputValues,\n inputValuesDaySplitYear,\n inputValuesSplitDay,\n inputValuesSplitMonth,\n isInputFilledAndValid,\n isOnCalendarOpenFocusedDayEmpty,\n onCalendarOpenFocusedDay,\n shouldFillWithOnCalendarOpenFocusedDay,\n ]);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,mBAAoC;AACpC,yCAAgD;AAChD,2BAAgD;AAChD,2BAAkD;AAClD,yBAA6D;AAC7D,qCAAwC;AASxC,MAAM,QAAQ;AAAA,EACZ,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,kBAAkB;AACpB;AACO,MAAM,2BAA2B,MAAM;AAC5C,QAAM,EAAE,yBAAyB,QAAI,yBAAW,kEAA+B;AAC/E,QAAM,yBAAqB,wDAAwB;AACnD,QAAM;AAAA,IACJ,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,EACR,IAAI,yBAAqB,0CAAsB,kBAAkB,IAAI,EAAE,OAAO,MAAM,KAAK,MAAM,MAAM,KAAK;AAC1G,QAAM,wBACJ,yBACA,uBACA,+BACA,0CAAsB,uBAAuB,yBAAyB,mBAAmB;AAC3F,QAAM,kCAAkC,CAAC;AACzC,QAAM,yCAAyC,CAAC,yBAAyB,CAAC;AAC1E,aAAO,sBAAQ,MAAM;AACnB,UAAM,cAAmC,EAAE,GAAG,MAAM;AAGpD,QAAI,uBAAuB;AACzB,kBAAY,oBAAoB;AAChC,kBAAY,kBAAkB;AAC9B,kBAAY,mBAAmB;AAC/B,kBAAY,mBAAmB;AAAA,IAEjC,WAAW,iCAAiC;AAE1C,aAAO;AAAA,IACT,WAAW,wCAAwC;AACjD,YAAM;AAAA,QACJ,OAAO;AAAA,QACP,KAAK;AAAA,QACL,MAAM;AAAA,MACR,QAAI,sDAAgC,wBAAwB;AAC5D,YAAM,iBAAa,wDAAkC,oBAAoB;AACzE,YAAM,eAAW,wDAAkC,kBAAkB;AACrE,YAAM,gBAAY,wDAAkC,mBAAmB;AAIvE,UACE,eAAe,MACf,aAAa,MACb,cAAc,UACd;AAAA,QACG,aAAa;AAAA,QACd;AAAA,QACA;AAAA,MACF,GACA;AACA,oBAAY,oBAAoB;AAChC,oBAAY,kBAAkB;AAC9B,oBAAY,mBAAmB;AAC/B,oBAAY,mBAAmB,IAAI,KAAK,WAAW,aAAa,GAAG,QAAQ;AAAA,MAC7E;AAAA,IACF;AACA,WAAO;AAAA,EACT,GAAG;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACH;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/utils/hooks/useOnClickOutside.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../../src/utils/hooks/useOnClickOutside.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import { useEffect } from 'react';\n\nexport const useOnClickOutside = (ref: HTMLElement | null, handler: NoopishFunc<MouseEvent | TouchEvent>): void => {\n useEffect(() => {\n const listener = (event: MouseEvent | TouchEvent) => {\n // Do nothing if clicking ref's element or descendent elements\n if (event.target instanceof Element)\n if (!ref || ref?.contains?.(event.target)) {\n return;\n }\n handler(event);\n };\n document.addEventListener('mousedown', listener);\n document.addEventListener('touchstart', listener);\n return () => {\n document.removeEventListener('mousedown', listener);\n document.removeEventListener('touchstart', listener);\n };\n }, [ref, handler]);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAA0B;AAEnB,MAAM,oBAAoB,CAAC,KAAyB,YAAwD;AACjH,8BAAU,MAAM;AACd,UAAM,WAAW,CAAC,UAAmC;AAEnD,UAAI,MAAM,kBAAkB;AAC1B,YAAI,CAAC,OAAO,KAAK,WAAW,MAAM,MAAM,GAAG;AACzC;AAAA,QACF;AAAA;AACF,cAAQ,KAAK;AAAA,IACf;AACA,aAAS,iBAAiB,aAAa,QAAQ;AAC/C,aAAS,iBAAiB,cAAc,QAAQ;AAChD,WAAO,MAAM;AACX,eAAS,oBAAoB,aAAa,QAAQ;AAClD,eAAS,oBAAoB,cAAc,QAAQ;AAAA,IACrD;AAAA,EACF,GAAG,CAAC,KAAK,OAAO,CAAC;AACnB;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/utils/numberHelpers.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../src/utils/numberHelpers.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export const convertToPositiveNumberIfPossible = (numberString: string): number => {\n const convertedNum = Number.parseInt(numberString, 10);\n if (Number.isNaN(convertedNum)) return -1;\n return convertedNum;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,oCAAoC,CAAC,iBAAiC;AACjF,QAAM,eAAe,OAAO,SAAS,cAAc,EAAE;AACrD,MAAI,OAAO,MAAM,YAAY;AAAG,WAAO;AACvC,SAAO;AACT;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/utils/stringHelpers.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../src/utils/stringHelpers.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import { monthNames, announcableCardinalDays } from './constants.js';\nimport { convertToPositiveNumberIfPossible } from './numberHelpers.js';\nimport type { DSControlledDateTimePickerInternalsT } from '../sharedTypes.js';\n/* eslint-disable max-lines */\nexport const prependStringWithPlaceHolders = (val: string, finalLength: number, placeholder = '0'): string => {\n if (val.length === finalLength) return val;\n const stringAsAnArray = val.split('').reverse();\n return new Array(finalLength)\n .fill(placeholder)\n .map((_c, i) => (stringAsAnArray[i] ? stringAsAnArray[i] : placeholder))\n .reverse()\n .join('');\n};\nexport const fillStringWithPlaceHolders = (val: string, finalLength: number, placeholder = '_'): string => {\n if (val.length === finalLength) return val;\n const stringAsAnArray = val.split('');\n return new Array(finalLength)\n .fill(placeholder)\n .map((_c, i) => (stringAsAnArray[i] ? stringAsAnArray[i] : placeholder))\n .join('');\n};\n\nexport const getFormattedDateString = ({ month, day, year }: { month: string; day: string; year: string }): string => {\n const finalMonth = fillStringWithPlaceHolders(month, 2);\n const finalDay = fillStringWithPlaceHolders(day, 2);\n const finalYear = fillStringWithPlaceHolders(year, 4);\n return `${finalMonth}/${finalDay}/${finalYear}`;\n};\nexport const dateTimeToDate = (dateTime: string): string => dateTime?.split?.(' ')?.[0];\nexport const deconstructValuesFromDateString = (dateString: string): { month: string; day: string; year: string } => {\n const [dirtyMonth = '', dirtyDay = '', dirtyYear = ''] = dateString.split('/');\n const replaceAllRegexp = /_/g;\n return {\n month: (dirtyMonth || '').replace(replaceAllRegexp, ''),\n day: (dirtyDay || '').replace(replaceAllRegexp, ''),\n year: (dirtyYear || '').replace(replaceAllRegexp, ''),\n };\n};\nexport const deconstructValuesFromTimeString = (\n timeString: string,\n): { hours: string; minutes: string; meridiem: string } => {\n const [dirtyHour = '', dirtyMintuesAndMeridiem = ''] = timeString.split(':');\n const [dirtyMinutes = '', dirtyMeridiem = ''] = dirtyMintuesAndMeridiem.split(' ');\n const replaceAllRegexp = /_/g;\n return {\n hours: (dirtyHour || '').replace(replaceAllRegexp, ''),\n minutes: (dirtyMinutes || '').replace(replaceAllRegexp, ''),\n meridiem: (dirtyMeridiem || '').replace(replaceAllRegexp, ''),\n };\n};\n// https://regex101.com/r/U5r5lh/1/\nconst dateRegExp = /^[0-9_][0-9_]\\/[0-9_][0-9_]\\/[0-9_]{4}$/;\nexport const isValidDateString = (testString: string): boolean => {\n if (testString === '') return true;\n const isValidDateRegexp = dateRegExp.test(testString);\n if (!isValidDateRegexp) return false;\n const { month, day, year } = deconstructValuesFromDateString(testString);\n if (Number.parseInt(month, 10) > 12 || Number.parseInt(day, 10) > 31 || Number.parseInt(year, 10) > 9999)\n return false;\n\n return true;\n};\n\nexport const getFormattedTimeString = ({\n hours,\n minutes,\n // seconds,\n meridiem,\n}: {\n hours: string;\n minutes: string;\n // seconds:string;\n meridiem: string;\n}): string => {\n const finalHour = fillStringWithPlaceHolders(hours, 2);\n const finalMinutes = fillStringWithPlaceHolders(minutes, 2);\n // const finalSeconds = fillStringWithPlaceHolders(seconds, 2); // <-- seconds format\n const finalMeridiem = fillStringWithPlaceHolders(meridiem, 2);\n // return `${finalHour}:${finalMinutes}:${finalSeconds} ${finalMeridiem}`;// <-- seconds format\n return `${finalHour}:${finalMinutes} ${finalMeridiem}`;\n};\nexport const dateTimeToTime = (dateTime: string): string => {\n const [\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n date,\n // timeNumbers = '__:__:__', // <-- seconds format\n timeNumbers = '__:__',\n timeMeridiem = '__',\n ] = dateTime.split(' ');\n return `${timeNumbers} ${timeMeridiem}`;\n};\nexport const deconstructTimeValues = (\n timeString: string,\n): {\n hours: string;\n minutes: string;\n meridiem: string;\n} => {\n const [dirtyTimes = '', dirtyMeridiem] = timeString.split(' '); // <--['__:__','__']\n const [dirtyHours, dirtyMinutes] = dirtyTimes.split(':'); // <--['__','__']\n const regex = /_/g; // Note the 'g' flag, which matches all occurrences of the expression\n const newValues = {\n hours: (dirtyHours || '').replace(regex, ''),\n minutes: (dirtyMinutes || '').replace(regex, ''),\n meridiem: (dirtyMeridiem || '').replace(regex, ''),\n };\n return newValues;\n};\n\n// https://regex101.com/r/jeBmNT/1\nconst timeRegExp = /^[0-9_][0-9_]:[0-9_][0-9_]\\s[aApP_][mM_]$/;\nexport const isValidTimeString = (testString: string): boolean => {\n if (testString === '') return true;\n const isValidTimeRegexp = timeRegExp.test(testString);\n if (!isValidTimeRegexp) return false;\n const { hours, minutes } = deconstructTimeValues(testString);\n if (Number.parseInt(hours, 10) > 12 || Number.parseInt(minutes, 10) > 60) return false;\n\n return true;\n};\n\nexport const isIncompleteString = (testString: string, placeholder = '_'): boolean =>\n testString === '' || testString.includes(placeholder);\n\nexport const isEmptyDateStringMask = (testString: string): boolean => testString === '__/__/____';\nexport const isEmptyTimeStringMask = (testString: string): boolean => testString === '__:__ __';\nexport const isEmptyDateTimeStringMask = (testString: string): boolean => testString === '__/__/____ __:__ __';\n\nexport const getAriaDayFromDateString = (dateString: string): string => {\n const { month: monthString, day: dayString, year: yearString } = deconstructValuesFromDateString(dateString);\n const monthNum = convertToPositiveNumberIfPossible(monthString);\n const dayNum = convertToPositiveNumberIfPossible(dayString) as DSControlledDateTimePickerInternalsT.DateDay | -1;\n const yearNum = convertToPositiveNumberIfPossible(yearString);\n if (monthNum === -1 || dayNum === -1 || yearNum === -1) return '';\n return `${monthNames[monthNum - 1]} ${announcableCardinalDays[dayNum]} ${yearNum}`;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/utils/timeHelpers.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { isIncompleteString } from './stringHelpers.js';\nimport type { DSControlledDateTimePickerT } from '../propTypes.js';\n\nexport const getValidationTimeStringMetaInfo = (\n timeString: string,\n getIsDisabledTime = (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n timeS: string,\n ) => false,\n): Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> => {\n const metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {};\n if (!isIncompleteString(timeString)) {\n metaInfo.isDisabledTime = getIsDisabledTime(timeString);\n if (metaInfo.isDisabledTime) metaInfo.suggestedErrorMsg = 'The selected time is not allowed';\n }\n\n return metaInfo;\n};\n", "import * as React from 'react';\nexport { React };\n"],
3
+ "sources": ["../../../src/utils/timeHelpers.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { isIncompleteString } from './stringHelpers.js';\nimport type { DSControlledDateTimePickerT } from '../react-desc-prop-types.js';\n\nexport const getValidationTimeStringMetaInfo = (\n timeString: string,\n getIsDisabledTime = (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n timeS: string,\n ) => false,\n): Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> => {\n const metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {};\n if (!isIncompleteString(timeString)) {\n metaInfo.isDisabledTime = getIsDisabledTime(timeString);\n if (metaInfo.isDisabledTime) metaInfo.suggestedErrorMsg = 'The selected time is not allowed';\n }\n\n return metaInfo;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,2BAAmC;AAG5B,MAAM,kCAAkC,CAC7C,YACA,oBAAoB,CAElB,UACG,UACiE;AACtE,QAAM,WAA8E,CAAC;AACrF,MAAI,KAAC,yCAAmB,UAAU,GAAG;AACnC,aAAS,iBAAiB,kBAAkB,UAAU;AACtD,QAAI,SAAS;AAAgB,eAAS,oBAAoB;AAAA,EAC5D;AAEA,SAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/utils/typeGuards.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import type { DSControlledDateTimePickerT } from '../propTypes.js';\n\nconst dateTimeTypes = ['full-date-time', 'date-time-inputs', 'date-time-picker', 'date-time-picker-controller-only'];\nconst dateTypes = ['full-date', 'date-inputs', 'date-picker', 'date-picker-controller-only'];\nconst timeTypes = ['full-time', 'time-inputs', 'time-picker', 'time-picker-controller-only'];\n\nexport const getIsDateTime = (\n props: DSControlledDateTimePickerT.Props | DSControlledDateTimePickerT.InternalProps,\n): props is DSControlledDateTimePickerT.DateTimePickerProps | DSControlledDateTimePickerT.InternalDateTimePickerProps =>\n dateTimeTypes.includes(props.type);\n\nexport const getIsDate = (\n props: DSControlledDateTimePickerT.Props | DSControlledDateTimePickerT.InternalProps,\n): props is DSControlledDateTimePickerT.DatePickerProps | DSControlledDateTimePickerT.InternalDatePickerProps =>\n dateTypes.includes(props.type);\n\nexport const getIsTime = (\n props: DSControlledDateTimePickerT.Props | DSControlledDateTimePickerT.InternalProps,\n): props is DSControlledDateTimePickerT.TimePickerProps | DSControlledDateTimePickerT.InternalTimePickerProps =>\n timeTypes.includes(props.type);\n", "import * as React from 'react';\nexport { React };\n"],
3
+ "sources": ["../../../src/utils/typeGuards.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import type { DSControlledDateTimePickerT } from '../react-desc-prop-types.js';\n\nconst dateTimeTypes = ['full-date-time', 'date-time-inputs', 'date-time-picker', 'date-time-picker-controller-only'];\nconst dateTypes = ['full-date', 'date-inputs', 'date-picker', 'date-picker-controller-only'];\nconst timeTypes = ['full-time', 'time-inputs', 'time-picker', 'time-picker-controller-only'];\n\nexport const getIsDateTime = (\n props: DSControlledDateTimePickerT.Props | DSControlledDateTimePickerT.InternalProps,\n): props is DSControlledDateTimePickerT.DateTimePickerProps | DSControlledDateTimePickerT.InternalDateTimePickerProps =>\n dateTimeTypes.includes(props.type);\n\nexport const getIsDate = (\n props: DSControlledDateTimePickerT.Props | DSControlledDateTimePickerT.InternalProps,\n): props is DSControlledDateTimePickerT.DatePickerProps | DSControlledDateTimePickerT.InternalDatePickerProps =>\n dateTypes.includes(props.type);\n\nexport const getIsTime = (\n props: DSControlledDateTimePickerT.Props | DSControlledDateTimePickerT.InternalProps,\n): props is DSControlledDateTimePickerT.TimePickerProps | DSControlledDateTimePickerT.InternalTimePickerProps =>\n timeTypes.includes(props.type);\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,MAAM,gBAAgB,CAAC,kBAAkB,oBAAoB,oBAAoB,kCAAkC;AACnH,MAAM,YAAY,CAAC,aAAa,eAAe,eAAe,6BAA6B;AAC3F,MAAM,YAAY,CAAC,aAAa,eAAe,eAAe,6BAA6B;AAEpF,MAAM,gBAAgB,CAC3B,UAEA,cAAc,SAAS,MAAM,IAAI;AAE5B,MAAM,YAAY,CACvB,UAEA,UAAU,SAAS,MAAM,IAAI;AAExB,MAAM,YAAY,CACvB,UAEA,UAAU,SAAS,MAAM,IAAI;",
6
6
  "names": []
7
7
  }