@fluentui/react-calendar-compat 0.4.3 → 0.4.5

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 (238) hide show
  1. package/CHANGELOG.md +28 -2
  2. package/dist/index.d.cts +1426 -0
  3. package/lib/Calendar.js +1 -1
  4. package/lib/Calendar.js.map +1 -1
  5. package/lib/CalendarDay.js +1 -1
  6. package/lib/CalendarDay.js.map +1 -1
  7. package/lib/CalendarDayGrid.js +1 -1
  8. package/lib/CalendarDayGrid.js.map +1 -1
  9. package/lib/CalendarMonth.js +1 -1
  10. package/lib/CalendarMonth.js.map +1 -1
  11. package/lib/CalendarPicker.js +1 -1
  12. package/lib/CalendarPicker.js.map +1 -1
  13. package/lib/CalendarYear.js +1 -1
  14. package/lib/CalendarYear.js.map +1 -1
  15. package/lib/components/Calendar/Calendar.js +9 -9
  16. package/lib/components/Calendar/Calendar.js.map +1 -1
  17. package/lib/components/Calendar/calendarNavigationIcons.js +2 -2
  18. package/lib/components/Calendar/defaults.js +1 -1
  19. package/lib/components/Calendar/defaults.js.map +1 -1
  20. package/lib/components/Calendar/index.js +4 -4
  21. package/lib/components/Calendar/index.js.map +1 -1
  22. package/lib/components/Calendar/useCalendarStyles.styles.js +2 -2
  23. package/lib/components/Calendar/useCalendarStyles.styles.js.map +1 -1
  24. package/lib/components/Calendar/useCalendarStyles.styles.raw.js +2 -2
  25. package/lib/components/CalendarDay/CalendarDay.js +7 -7
  26. package/lib/components/CalendarDay/CalendarDay.js.map +1 -1
  27. package/lib/components/CalendarDay/index.js +2 -2
  28. package/lib/components/CalendarDay/index.js.map +1 -1
  29. package/lib/components/CalendarDay/useCalendarDayStyles.styles.js +2 -2
  30. package/lib/components/CalendarDay/useCalendarDayStyles.styles.js.map +1 -1
  31. package/lib/components/CalendarDay/useCalendarDayStyles.styles.raw.js +2 -2
  32. package/lib/components/CalendarDayGrid/CalendarDayGrid.js +12 -12
  33. package/lib/components/CalendarDayGrid/CalendarDayGrid.js.map +1 -1
  34. package/lib/components/CalendarDayGrid/CalendarGridDayCell.js +8 -8
  35. package/lib/components/CalendarDayGrid/CalendarGridDayCell.js.map +1 -1
  36. package/lib/components/CalendarDayGrid/CalendarGridRow.js +3 -3
  37. package/lib/components/CalendarDayGrid/CalendarGridRow.js.map +1 -1
  38. package/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js +5 -5
  39. package/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js.map +1 -1
  40. package/lib/components/CalendarDayGrid/index.js +2 -2
  41. package/lib/components/CalendarDayGrid/index.js.map +1 -1
  42. package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.styles.js +4 -4
  43. package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.styles.js.map +1 -1
  44. package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.styles.raw.js +4 -4
  45. package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.styles.raw.js.map +1 -1
  46. package/lib/components/CalendarDayGrid/useWeekCornerStyles.styles.js +4 -4
  47. package/lib/components/CalendarDayGrid/useWeekCornerStyles.styles.js.map +1 -1
  48. package/lib/components/CalendarDayGrid/useWeekCornerStyles.styles.raw.js +4 -4
  49. package/lib/components/CalendarDayGrid/useWeekCornerStyles.styles.raw.js.map +1 -1
  50. package/lib/components/CalendarDayGrid/useWeeks.js +2 -2
  51. package/lib/components/CalendarDayGrid/useWeeks.js.map +1 -1
  52. package/lib/components/CalendarMonth/CalendarMonth.js +9 -9
  53. package/lib/components/CalendarMonth/CalendarMonth.js.map +1 -1
  54. package/lib/components/CalendarMonth/index.js +2 -2
  55. package/lib/components/CalendarMonth/index.js.map +1 -1
  56. package/lib/components/CalendarMonth/useCalendarMonthStyles.styles.js +1 -1
  57. package/lib/components/CalendarMonth/useCalendarMonthStyles.styles.js.map +1 -1
  58. package/lib/components/CalendarMonth/useCalendarMonthStyles.styles.raw.js +1 -1
  59. package/lib/components/CalendarMonth/useCalendarMonthStyles.styles.raw.js.map +1 -1
  60. package/lib/components/CalendarPicker/index.js +1 -1
  61. package/lib/components/CalendarPicker/index.js.map +1 -1
  62. package/lib/components/CalendarPicker/useCalendarPickerStyles.styles.js +2 -2
  63. package/lib/components/CalendarPicker/useCalendarPickerStyles.styles.js.map +1 -1
  64. package/lib/components/CalendarPicker/useCalendarPickerStyles.styles.raw.js +2 -2
  65. package/lib/components/CalendarYear/CalendarYear.js +9 -8
  66. package/lib/components/CalendarYear/CalendarYear.js.map +1 -1
  67. package/lib/components/CalendarYear/index.js +2 -2
  68. package/lib/components/CalendarYear/index.js.map +1 -1
  69. package/lib/components/CalendarYear/useCalendarYearStyles.styles.js +1 -1
  70. package/lib/components/CalendarYear/useCalendarYearStyles.styles.js.map +1 -1
  71. package/lib/components/CalendarYear/useCalendarYearStyles.styles.raw.js +1 -1
  72. package/lib/components/CalendarYear/useCalendarYearStyles.styles.raw.js.map +1 -1
  73. package/lib/index.js +7 -7
  74. package/lib/index.js.map +1 -1
  75. package/lib/utils/animations.js +1 -1
  76. package/lib/utils/calendarMotions.js +5 -5
  77. package/lib/utils/calendarMotions.js.map +1 -1
  78. package/lib/utils/dateFormatting/index.js +1 -1
  79. package/lib/utils/dateFormatting/index.js.map +1 -1
  80. package/lib/utils/dateGrid/findAvailableDate.js +4 -4
  81. package/lib/utils/dateGrid/findAvailableDate.js.map +1 -1
  82. package/lib/utils/dateGrid/getBoundedDateRange.js +1 -1
  83. package/lib/utils/dateGrid/getBoundedDateRange.js.map +1 -1
  84. package/lib/utils/dateGrid/getDateRangeTypeToUse.js +2 -2
  85. package/lib/utils/dateGrid/getDateRangeTypeToUse.js.map +1 -1
  86. package/lib/utils/dateGrid/getDayGrid.js +5 -5
  87. package/lib/utils/dateGrid/getDayGrid.js.map +1 -1
  88. package/lib/utils/dateGrid/index.js +4 -4
  89. package/lib/utils/dateGrid/index.js.map +1 -1
  90. package/lib/utils/dateGrid/isAfterMaxDate.js +1 -1
  91. package/lib/utils/dateGrid/isAfterMaxDate.js.map +1 -1
  92. package/lib/utils/dateGrid/isBeforeMinDate.js +1 -1
  93. package/lib/utils/dateGrid/isBeforeMinDate.js.map +1 -1
  94. package/lib/utils/dateGrid/isRestrictedDate.js +3 -3
  95. package/lib/utils/dateGrid/isRestrictedDate.js.map +1 -1
  96. package/lib/utils/dateMath/dateMath.js +1 -1
  97. package/lib/utils/dateMath/dateMath.js.map +1 -1
  98. package/lib/utils/dateMath/index.js +1 -1
  99. package/lib/utils/dateMath/index.js.map +1 -1
  100. package/lib/utils/index.js +6 -6
  101. package/lib/utils/index.js.map +1 -1
  102. package/lib-commonjs/{Calendar.js → Calendar.cjs} +1 -1
  103. package/lib-commonjs/{Calendar.js.map → Calendar.cjs.map} +1 -1
  104. package/lib-commonjs/{CalendarDay.js → CalendarDay.cjs} +1 -1
  105. package/lib-commonjs/{CalendarDay.js.map → CalendarDay.cjs.map} +1 -1
  106. package/lib-commonjs/{CalendarDayGrid.js → CalendarDayGrid.cjs} +1 -1
  107. package/lib-commonjs/{CalendarDayGrid.js.map → CalendarDayGrid.cjs.map} +1 -1
  108. package/lib-commonjs/{CalendarMonth.js → CalendarMonth.cjs} +1 -1
  109. package/lib-commonjs/{CalendarMonth.js.map → CalendarMonth.cjs.map} +1 -1
  110. package/lib-commonjs/{CalendarPicker.js → CalendarPicker.cjs} +1 -1
  111. package/lib-commonjs/{CalendarPicker.js.map → CalendarPicker.cjs.map} +1 -1
  112. package/lib-commonjs/{CalendarYear.js → CalendarYear.cjs} +1 -1
  113. package/lib-commonjs/{CalendarYear.js.map → CalendarYear.cjs.map} +1 -1
  114. package/lib-commonjs/components/Calendar/{Calendar.js → Calendar.cjs} +17 -17
  115. package/lib-commonjs/components/Calendar/{Calendar.js.map → Calendar.cjs.map} +1 -1
  116. package/lib-commonjs/components/Calendar/{defaults.js → defaults.cjs} +2 -2
  117. package/lib-commonjs/components/Calendar/{defaults.js.map → defaults.cjs.map} +1 -1
  118. package/lib-commonjs/components/Calendar/{index.js → index.cjs} +4 -4
  119. package/lib-commonjs/components/Calendar/{index.js.map → index.cjs.map} +1 -1
  120. package/lib-commonjs/components/Calendar/useCalendarStyles.styles.cjs.map +1 -0
  121. package/lib-commonjs/components/CalendarDay/{CalendarDay.js → CalendarDay.cjs} +10 -10
  122. package/lib-commonjs/components/CalendarDay/{CalendarDay.js.map → CalendarDay.cjs.map} +1 -1
  123. package/lib-commonjs/components/CalendarDay/{index.js → index.cjs} +2 -2
  124. package/lib-commonjs/components/CalendarDay/{index.js.map → index.cjs.map} +1 -1
  125. package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.styles.cjs.map +1 -0
  126. package/lib-commonjs/components/CalendarDayGrid/{CalendarDayGrid.js → CalendarDayGrid.cjs} +14 -14
  127. package/lib-commonjs/components/CalendarDayGrid/{CalendarDayGrid.js.map → CalendarDayGrid.cjs.map} +1 -1
  128. package/lib-commonjs/components/CalendarDayGrid/{CalendarGridDayCell.js → CalendarGridDayCell.cjs} +13 -13
  129. package/lib-commonjs/components/CalendarDayGrid/{CalendarGridDayCell.js.map → CalendarGridDayCell.cjs.map} +1 -1
  130. package/lib-commonjs/components/CalendarDayGrid/{CalendarGridRow.js → CalendarGridRow.cjs} +3 -3
  131. package/lib-commonjs/components/CalendarDayGrid/{CalendarGridRow.js.map → CalendarGridRow.cjs.map} +1 -1
  132. package/lib-commonjs/components/CalendarDayGrid/{CalendarMonthHeaderRow.js → CalendarMonthHeaderRow.cjs} +3 -3
  133. package/lib-commonjs/components/CalendarDayGrid/{CalendarMonthHeaderRow.js.map → CalendarMonthHeaderRow.cjs.map} +1 -1
  134. package/lib-commonjs/components/CalendarDayGrid/{index.js → index.cjs} +2 -2
  135. package/lib-commonjs/components/CalendarDayGrid/{index.js.map → index.cjs.map} +1 -1
  136. package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.styles.cjs.map +1 -0
  137. package/lib-commonjs/components/CalendarDayGrid/{useCalendarDayGridStyles.styles.raw.js → useCalendarDayGridStyles.styles.raw.cjs} +1 -1
  138. package/lib-commonjs/components/CalendarDayGrid/{useCalendarDayGridStyles.styles.raw.js.map → useCalendarDayGridStyles.styles.raw.cjs.map} +1 -1
  139. package/lib-commonjs/components/CalendarDayGrid/{useWeekCornerStyles.styles.js → useWeekCornerStyles.styles.cjs} +2 -2
  140. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.styles.cjs.map +1 -0
  141. package/lib-commonjs/components/CalendarDayGrid/{useWeekCornerStyles.styles.raw.js → useWeekCornerStyles.styles.raw.cjs} +2 -2
  142. package/lib-commonjs/components/CalendarDayGrid/{useWeekCornerStyles.styles.raw.js.map → useWeekCornerStyles.styles.raw.cjs.map} +1 -1
  143. package/lib-commonjs/components/CalendarDayGrid/{useWeeks.js → useWeeks.cjs} +1 -1
  144. package/lib-commonjs/components/CalendarDayGrid/{useWeeks.js.map → useWeeks.cjs.map} +1 -1
  145. package/lib-commonjs/components/CalendarMonth/{CalendarMonth.js → CalendarMonth.cjs} +17 -17
  146. package/lib-commonjs/components/CalendarMonth/{CalendarMonth.js.map → CalendarMonth.cjs.map} +1 -1
  147. package/lib-commonjs/components/CalendarMonth/{index.js → index.cjs} +2 -2
  148. package/lib-commonjs/components/CalendarMonth/{index.js.map → index.cjs.map} +1 -1
  149. package/lib-commonjs/components/CalendarMonth/{useCalendarMonthStyles.styles.js → useCalendarMonthStyles.styles.cjs} +1 -1
  150. package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.styles.cjs.map +1 -0
  151. package/lib-commonjs/components/CalendarMonth/{useCalendarMonthStyles.styles.raw.js → useCalendarMonthStyles.styles.raw.cjs} +1 -1
  152. package/lib-commonjs/components/CalendarMonth/{useCalendarMonthStyles.styles.raw.js.map → useCalendarMonthStyles.styles.raw.cjs.map} +1 -1
  153. package/lib-commonjs/components/CalendarPicker/{index.js → index.cjs} +1 -1
  154. package/lib-commonjs/components/CalendarPicker/{index.js.map → index.cjs.map} +1 -1
  155. package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.styles.cjs.map +1 -0
  156. package/lib-commonjs/components/CalendarYear/{CalendarYear.js → CalendarYear.cjs} +5 -4
  157. package/lib-commonjs/components/CalendarYear/CalendarYear.cjs.map +1 -0
  158. package/lib-commonjs/components/CalendarYear/{index.js → index.cjs} +2 -2
  159. package/lib-commonjs/components/CalendarYear/{index.js.map → index.cjs.map} +1 -1
  160. package/lib-commonjs/components/CalendarYear/{useCalendarYearStyles.styles.js → useCalendarYearStyles.styles.cjs} +1 -1
  161. package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.styles.cjs.map +1 -0
  162. package/lib-commonjs/components/CalendarYear/{useCalendarYearStyles.styles.raw.js → useCalendarYearStyles.styles.raw.cjs} +1 -1
  163. package/lib-commonjs/components/CalendarYear/{useCalendarYearStyles.styles.raw.js.map → useCalendarYearStyles.styles.raw.cjs.map} +1 -1
  164. package/lib-commonjs/{index.js → index.cjs} +34 -34
  165. package/lib-commonjs/{index.js.map → index.cjs.map} +1 -1
  166. package/lib-commonjs/utils/{calendarMotions.js → calendarMotions.cjs} +1 -1
  167. package/lib-commonjs/utils/{calendarMotions.js.map → calendarMotions.cjs.map} +1 -1
  168. package/lib-commonjs/utils/dateFormatting/{index.js → index.cjs} +1 -1
  169. package/lib-commonjs/utils/dateFormatting/{index.js.map → index.cjs.map} +1 -1
  170. package/lib-commonjs/utils/dateGrid/{findAvailableDate.js → findAvailableDate.cjs} +4 -4
  171. package/lib-commonjs/utils/dateGrid/{findAvailableDate.js.map → findAvailableDate.cjs.map} +1 -1
  172. package/lib-commonjs/utils/dateGrid/{getBoundedDateRange.js → getBoundedDateRange.cjs} +1 -1
  173. package/lib-commonjs/utils/dateGrid/{getBoundedDateRange.js.map → getBoundedDateRange.cjs.map} +1 -1
  174. package/lib-commonjs/utils/dateGrid/{getDateRangeTypeToUse.js → getDateRangeTypeToUse.cjs} +2 -2
  175. package/lib-commonjs/utils/dateGrid/{getDateRangeTypeToUse.js.map → getDateRangeTypeToUse.cjs.map} +1 -1
  176. package/lib-commonjs/utils/dateGrid/{getDayGrid.js → getDayGrid.cjs} +5 -5
  177. package/lib-commonjs/utils/dateGrid/{getDayGrid.js.map → getDayGrid.cjs.map} +1 -1
  178. package/lib-commonjs/utils/dateGrid/{index.js → index.cjs} +4 -4
  179. package/lib-commonjs/utils/dateGrid/{index.js.map → index.cjs.map} +1 -1
  180. package/lib-commonjs/utils/dateGrid/{isAfterMaxDate.js → isAfterMaxDate.cjs} +1 -1
  181. package/lib-commonjs/utils/dateGrid/{isAfterMaxDate.js.map → isAfterMaxDate.cjs.map} +1 -1
  182. package/lib-commonjs/utils/dateGrid/{isBeforeMinDate.js → isBeforeMinDate.cjs} +1 -1
  183. package/lib-commonjs/utils/dateGrid/{isBeforeMinDate.js.map → isBeforeMinDate.cjs.map} +1 -1
  184. package/lib-commonjs/utils/dateGrid/{isRestrictedDate.js → isRestrictedDate.cjs} +3 -3
  185. package/lib-commonjs/utils/dateGrid/{isRestrictedDate.js.map → isRestrictedDate.cjs.map} +1 -1
  186. package/lib-commonjs/utils/dateMath/{dateMath.js → dateMath.cjs} +1 -1
  187. package/lib-commonjs/utils/dateMath/{dateMath.js.map → dateMath.cjs.map} +1 -1
  188. package/lib-commonjs/utils/dateMath/{index.js → index.cjs} +1 -1
  189. package/lib-commonjs/utils/dateMath/{index.js.map → index.cjs.map} +1 -1
  190. package/lib-commonjs/utils/{index.js → index.cjs} +36 -36
  191. package/lib-commonjs/utils/{index.js.map → index.cjs.map} +1 -1
  192. package/package.json +21 -15
  193. package/lib-commonjs/components/Calendar/useCalendarStyles.styles.js.map +0 -1
  194. package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.styles.js.map +0 -1
  195. package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.styles.js.map +0 -1
  196. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.styles.js.map +0 -1
  197. package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.styles.js.map +0 -1
  198. package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.styles.js.map +0 -1
  199. package/lib-commonjs/components/CalendarYear/CalendarYear.js.map +0 -1
  200. package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.styles.js.map +0 -1
  201. /package/lib-commonjs/components/Calendar/{Calendar.types.js → Calendar.types.cjs} +0 -0
  202. /package/lib-commonjs/components/Calendar/{Calendar.types.js.map → Calendar.types.cjs.map} +0 -0
  203. /package/lib-commonjs/components/Calendar/{calendarNavigationIcons.js → calendarNavigationIcons.cjs} +0 -0
  204. /package/lib-commonjs/components/Calendar/{calendarNavigationIcons.js.map → calendarNavigationIcons.cjs.map} +0 -0
  205. /package/lib-commonjs/components/Calendar/{useCalendarStyles.styles.js → useCalendarStyles.styles.cjs} +0 -0
  206. /package/lib-commonjs/components/Calendar/{useCalendarStyles.styles.raw.js → useCalendarStyles.styles.raw.cjs} +0 -0
  207. /package/lib-commonjs/components/Calendar/{useCalendarStyles.styles.raw.js.map → useCalendarStyles.styles.raw.cjs.map} +0 -0
  208. /package/lib-commonjs/components/CalendarDay/{CalendarDay.types.js → CalendarDay.types.cjs} +0 -0
  209. /package/lib-commonjs/components/CalendarDay/{CalendarDay.types.js.map → CalendarDay.types.cjs.map} +0 -0
  210. /package/lib-commonjs/components/CalendarDay/{useCalendarDayStyles.styles.js → useCalendarDayStyles.styles.cjs} +0 -0
  211. /package/lib-commonjs/components/CalendarDay/{useCalendarDayStyles.styles.raw.js → useCalendarDayStyles.styles.raw.cjs} +0 -0
  212. /package/lib-commonjs/components/CalendarDay/{useCalendarDayStyles.styles.raw.js.map → useCalendarDayStyles.styles.raw.cjs.map} +0 -0
  213. /package/lib-commonjs/components/CalendarDayGrid/{CalendarDayGrid.types.js → CalendarDayGrid.types.cjs} +0 -0
  214. /package/lib-commonjs/components/CalendarDayGrid/{CalendarDayGrid.types.js.map → CalendarDayGrid.types.cjs.map} +0 -0
  215. /package/lib-commonjs/components/CalendarDayGrid/{useCalendarDayGridStyles.styles.js → useCalendarDayGridStyles.styles.cjs} +0 -0
  216. /package/lib-commonjs/components/CalendarMonth/{CalendarMonth.types.js → CalendarMonth.types.cjs} +0 -0
  217. /package/lib-commonjs/components/CalendarMonth/{CalendarMonth.types.js.map → CalendarMonth.types.cjs.map} +0 -0
  218. /package/lib-commonjs/components/CalendarPicker/{CalendarPicker.types.js → CalendarPicker.types.cjs} +0 -0
  219. /package/lib-commonjs/components/CalendarPicker/{CalendarPicker.types.js.map → CalendarPicker.types.cjs.map} +0 -0
  220. /package/lib-commonjs/components/CalendarPicker/{useCalendarPickerStyles.styles.js → useCalendarPickerStyles.styles.cjs} +0 -0
  221. /package/lib-commonjs/components/CalendarPicker/{useCalendarPickerStyles.styles.raw.js → useCalendarPickerStyles.styles.raw.cjs} +0 -0
  222. /package/lib-commonjs/components/CalendarPicker/{useCalendarPickerStyles.styles.raw.js.map → useCalendarPickerStyles.styles.raw.cjs.map} +0 -0
  223. /package/lib-commonjs/components/CalendarYear/{CalendarYear.types.js → CalendarYear.types.cjs} +0 -0
  224. /package/lib-commonjs/components/CalendarYear/{CalendarYear.types.js.map → CalendarYear.types.cjs.map} +0 -0
  225. /package/lib-commonjs/utils/{animations.js → animations.cjs} +0 -0
  226. /package/lib-commonjs/utils/{animations.js.map → animations.cjs.map} +0 -0
  227. /package/lib-commonjs/utils/{constants.js → constants.cjs} +0 -0
  228. /package/lib-commonjs/utils/{constants.js.map → constants.cjs.map} +0 -0
  229. /package/lib-commonjs/utils/dateFormatting/{dateFormatting.defaults.js → dateFormatting.defaults.cjs} +0 -0
  230. /package/lib-commonjs/utils/dateFormatting/{dateFormatting.defaults.js.map → dateFormatting.defaults.cjs.map} +0 -0
  231. /package/lib-commonjs/utils/dateFormatting/{dateFormatting.types.js → dateFormatting.types.cjs} +0 -0
  232. /package/lib-commonjs/utils/dateFormatting/{dateFormatting.types.js.map → dateFormatting.types.cjs.map} +0 -0
  233. /package/lib-commonjs/utils/dateGrid/{dateGrid.types.js → dateGrid.types.cjs} +0 -0
  234. /package/lib-commonjs/utils/dateGrid/{dateGrid.types.js.map → dateGrid.types.cjs.map} +0 -0
  235. /package/lib-commonjs/utils/dateGrid/{isContiguous.js → isContiguous.cjs} +0 -0
  236. /package/lib-commonjs/utils/dateGrid/{isContiguous.js.map → isContiguous.cjs.map} +0 -0
  237. /package/lib-commonjs/utils/{focus.js → focus.cjs} +0 -0
  238. /package/lib-commonjs/utils/{focus.js.map → focus.cjs.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/dateGrid/getDayGrid.ts"],"sourcesContent":["import { addDays, compareDates, getDateRangeArray, isInDateRangeArray } from '../dateMath/dateMath';\nimport { DAYS_IN_WEEK } from '../constants';\nimport type { Day, DayGridOptions } from './dateGrid.types';\nimport { getDateRangeTypeToUse } from './getDateRangeTypeToUse';\nimport { getBoundedDateRange } from './getBoundedDateRange';\nimport { isRestrictedDate } from './isRestrictedDate';\n\n/**\n * Generates a grid of days, given the `options`.\n * Returns one additional week at the begining from the previous range\n * and one at the end from the future range\n * @param options - parameters to specify date related restrictions for the resulting grid\n */\nexport const getDayGrid = (options: DayGridOptions): Day[][] => {\n const {\n selectedDate,\n dateRangeType,\n firstDayOfWeek,\n today,\n minDate,\n maxDate,\n weeksToShow,\n workWeekDays,\n daysToSelectInDayView,\n restrictedDates,\n markedDays,\n } = options;\n const restrictedDateOptions = { minDate, maxDate, restrictedDates };\n\n const todaysDate = today || new Date();\n\n const navigatedDate = options.navigatedDate ? options.navigatedDate : todaysDate;\n\n let date;\n if (weeksToShow && weeksToShow <= 4) {\n // if showing less than a full month, just use date == navigatedDate\n date = new Date(navigatedDate.getFullYear(), navigatedDate.getMonth(), navigatedDate.getDate());\n } else {\n date = new Date(navigatedDate.getFullYear(), navigatedDate.getMonth(), 1);\n }\n const weeks: Day[][] = [];\n\n // Cycle the date backwards to get to the first day of the week.\n while (date.getDay() !== firstDayOfWeek) {\n date.setDate(date.getDate() - 1);\n }\n\n // add the transition week as last week of previous range\n date = addDays(date, -DAYS_IN_WEEK);\n\n // a flag to indicate whether all days of the week are outside the month\n let isAllDaysOfWeekOutOfMonth = false;\n\n // in work week view if the days aren't contiguous we use week view instead\n const selectedDateRangeType = getDateRangeTypeToUse(dateRangeType, workWeekDays, firstDayOfWeek);\n\n let selectedDates: Date[] = [];\n\n if (selectedDate) {\n selectedDates = getDateRangeArray(\n selectedDate,\n selectedDateRangeType,\n firstDayOfWeek,\n workWeekDays,\n daysToSelectInDayView,\n );\n selectedDates = getBoundedDateRange(selectedDates, minDate, maxDate);\n }\n\n let shouldGetWeeks = true;\n\n for (let weekIndex = 0; shouldGetWeeks; weekIndex++) {\n const week: Day[] = [];\n\n isAllDaysOfWeekOutOfMonth = true;\n\n for (let dayIndex = 0; dayIndex < DAYS_IN_WEEK; dayIndex++) {\n const originalDate = new Date(date.getTime());\n const dayInfo: Day = {\n key: date.toString(),\n date: date.getDate().toString(),\n originalDate,\n isInMonth: date.getMonth() === navigatedDate.getMonth(),\n isToday: compareDates(todaysDate, date),\n isSelected: isInDateRangeArray(date, selectedDates),\n isSingleSelected: selectedDates.length === 1 && compareDates(date, selectedDate),\n isInBounds: !isRestrictedDate(date, restrictedDateOptions),\n isMarked: markedDays?.some((markedDay: Date) => compareDates(originalDate, markedDay)) || false,\n };\n\n week.push(dayInfo);\n\n if (dayInfo.isInMonth) {\n isAllDaysOfWeekOutOfMonth = false;\n }\n\n date.setDate(date.getDate() + 1);\n }\n\n // We append the condition of the loop depending upon the showSixWeeksByDefault prop.\n shouldGetWeeks = weeksToShow ? weekIndex < weeksToShow + 1 : !isAllDaysOfWeekOutOfMonth || weekIndex === 0;\n\n // we don't check shouldGetWeeks before pushing because we want to add one extra week for transition state\n weeks.push(week);\n }\n\n return weeks;\n};\n"],"names":["addDays","compareDates","getDateRangeArray","isInDateRangeArray","DAYS_IN_WEEK","getDateRangeTypeToUse","getBoundedDateRange","isRestrictedDate","getDayGrid","options","selectedDate","dateRangeType","firstDayOfWeek","today","minDate","maxDate","weeksToShow","workWeekDays","daysToSelectInDayView","restrictedDates","markedDays","restrictedDateOptions","todaysDate","Date","navigatedDate","date","getFullYear","getMonth","getDate","weeks","getDay","setDate","isAllDaysOfWeekOutOfMonth","selectedDateRangeType","selectedDates","shouldGetWeeks","weekIndex","week","dayIndex","originalDate","getTime","dayInfo","key","toString","isInMonth","isToday","isSelected","isSingleSelected","length","isInBounds","isMarked","some","markedDay","push"],"mappings":";;;;+BAaaQ;;;;;;0BAbgE,uBAAuB;2BACvE,eAAe;uCAEN,0BAA0B;qCAC5B,wBAAwB;kCAC3B,qBAAqB;AAQ/C,mBAAmB,CAACC;IACzB,MAAM,EACJC,YAAY,EACZC,aAAa,EACbC,cAAc,EACdC,KAAK,EACLC,OAAO,EACPC,OAAO,EACPC,WAAW,EACXC,YAAY,EACZC,qBAAqB,EACrBC,eAAe,EACfC,UAAU,EACX,GAAGX;IACJ,MAAMY,wBAAwB;QAAEP;QAASC;QAASI;IAAgB;IAElE,MAAMG,aAAaT,SAAS,IAAIU;IAEhC,MAAMC,gBAAgBf,QAAQe,aAAa,GAAGf,QAAQe,aAAa,GAAGF;IAEtE,IAAIG;IACJ,IAAIT,eAAeA,eAAe,GAAG;QACnC,oEAAoE;QACpES,OAAO,IAAIF,KAAKC,cAAcE,WAAW,IAAIF,cAAcG,QAAQ,IAAIH,cAAcI,OAAO;IAC9F,OAAO;QACLH,OAAO,IAAIF,KAAKC,cAAcE,WAAW,IAAIF,cAAcG,QAAQ,IAAI;IACzE;IACA,MAAME,QAAiB,EAAE;IAEzB,gEAAgE;IAChE,MAAOJ,KAAKK,MAAM,OAAOlB,eAAgB;QACvCa,KAAKM,OAAO,CAACN,KAAKG,OAAO,KAAK;IAChC;IAEA,yDAAyD;IACzDH,OAAOzB,qBAAAA,EAAQyB,MAAM,CAACrB,uBAAAA;IAEtB,wEAAwE;IACxE,IAAI4B,4BAA4B;IAEhC,2EAA2E;IAC3E,MAAMC,4BAAwB5B,4CAAAA,EAAsBM,eAAe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 {"version":3,"sources":["../src/utils/dateGrid/getDayGrid.ts"],"sourcesContent":["import { addDays, compareDates, getDateRangeArray, isInDateRangeArray } from '../dateMath/dateMath';\nimport { DAYS_IN_WEEK } from '../constants';\nimport type { Day, DayGridOptions } from './dateGrid.types';\nimport { getDateRangeTypeToUse } from './getDateRangeTypeToUse';\nimport { getBoundedDateRange } from './getBoundedDateRange';\nimport { isRestrictedDate } from './isRestrictedDate';\n\n/**\n * Generates a grid of days, given the `options`.\n * Returns one additional week at the begining from the previous range\n * and one at the end from the future range\n * @param options - parameters to specify date related restrictions for the resulting grid\n */\nexport const getDayGrid = (options: DayGridOptions): Day[][] => {\n const {\n selectedDate,\n dateRangeType,\n firstDayOfWeek,\n today,\n minDate,\n maxDate,\n weeksToShow,\n workWeekDays,\n daysToSelectInDayView,\n restrictedDates,\n markedDays,\n } = options;\n const restrictedDateOptions = { minDate, maxDate, restrictedDates };\n\n const todaysDate = today || new Date();\n\n const navigatedDate = options.navigatedDate ? options.navigatedDate : todaysDate;\n\n let date;\n if (weeksToShow && weeksToShow <= 4) {\n // if showing less than a full month, just use date == navigatedDate\n date = new Date(navigatedDate.getFullYear(), navigatedDate.getMonth(), navigatedDate.getDate());\n } else {\n date = new Date(navigatedDate.getFullYear(), navigatedDate.getMonth(), 1);\n }\n const weeks: Day[][] = [];\n\n // Cycle the date backwards to get to the first day of the week.\n while (date.getDay() !== firstDayOfWeek) {\n date.setDate(date.getDate() - 1);\n }\n\n // add the transition week as last week of previous range\n date = addDays(date, -DAYS_IN_WEEK);\n\n // a flag to indicate whether all days of the week are outside the month\n let isAllDaysOfWeekOutOfMonth = false;\n\n // in work week view if the days aren't contiguous we use week view instead\n const selectedDateRangeType = getDateRangeTypeToUse(dateRangeType, workWeekDays, firstDayOfWeek);\n\n let selectedDates: Date[] = [];\n\n if (selectedDate) {\n selectedDates = getDateRangeArray(\n selectedDate,\n selectedDateRangeType,\n firstDayOfWeek,\n workWeekDays,\n daysToSelectInDayView,\n );\n selectedDates = getBoundedDateRange(selectedDates, minDate, maxDate);\n }\n\n let shouldGetWeeks = true;\n\n for (let weekIndex = 0; shouldGetWeeks; weekIndex++) {\n const week: Day[] = [];\n\n isAllDaysOfWeekOutOfMonth = true;\n\n for (let dayIndex = 0; dayIndex < DAYS_IN_WEEK; dayIndex++) {\n const originalDate = new Date(date.getTime());\n const dayInfo: Day = {\n key: date.toString(),\n date: date.getDate().toString(),\n originalDate,\n isInMonth: date.getMonth() === navigatedDate.getMonth(),\n isToday: compareDates(todaysDate, date),\n isSelected: isInDateRangeArray(date, selectedDates),\n isSingleSelected: selectedDates.length === 1 && compareDates(date, selectedDate),\n isInBounds: !isRestrictedDate(date, restrictedDateOptions),\n isMarked: markedDays?.some((markedDay: Date) => compareDates(originalDate, markedDay)) || false,\n };\n\n week.push(dayInfo);\n\n if (dayInfo.isInMonth) {\n isAllDaysOfWeekOutOfMonth = false;\n }\n\n date.setDate(date.getDate() + 1);\n }\n\n // We append the condition of the loop depending upon the showSixWeeksByDefault prop.\n shouldGetWeeks = weeksToShow ? weekIndex < weeksToShow + 1 : !isAllDaysOfWeekOutOfMonth || weekIndex === 0;\n\n // we don't check shouldGetWeeks before pushing because we want to add one extra week for transition state\n weeks.push(week);\n }\n\n return weeks;\n};\n"],"names":["addDays","compareDates","getDateRangeArray","isInDateRangeArray","DAYS_IN_WEEK","getDateRangeTypeToUse","getBoundedDateRange","isRestrictedDate","getDayGrid","options","selectedDate","dateRangeType","firstDayOfWeek","today","minDate","maxDate","weeksToShow","workWeekDays","daysToSelectInDayView","restrictedDates","markedDays","restrictedDateOptions","todaysDate","Date","navigatedDate","date","getFullYear","getMonth","getDate","weeks","getDay","setDate","isAllDaysOfWeekOutOfMonth","selectedDateRangeType","selectedDates","shouldGetWeeks","weekIndex","week","dayIndex","originalDate","getTime","dayInfo","key","toString","isInMonth","isToday","isSelected","isSingleSelected","length","isInBounds","isMarked","some","markedDay","push"],"mappings":";;;;+BAaaQ;;;;;;0BAbgE,0BAA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,IAAK,IAAIM,WAAW,GAAGA,WAAWlC,uBAAAA,EAAckC,WAAY;YAC1D,MAAMC,eAAe,IAAIhB,KAAKE,KAAKe,OAAO;YAC1C,MAAMC,UAAe;gBACnBC,KAAKjB,KAAKkB,QAAQ;gBAClBlB,MAAMA,KAAKG,OAAO,GAAGe,QAAQ;gBAC7BJ;gBACAK,WAAWnB,KAAKE,QAAQ,OAAOH,cAAcG,QAAQ;gBACrDkB,aAAS5C,sBAAAA,EAAaqB,YAAYG;gBAClCqB,gBAAY3C,4BAAAA,EAAmBsB,MAAMS;gBACrCa,kBAAkBb,cAAcc,MAAM,KAAK,SAAK/C,sBAAAA,EAAawB,MAAMf;gBACnEuC,YAAY,KAAC1C,kCAAAA,EAAiBkB,MAAMJ;gBACpC6B,UAAU9B,CAAAA,eAAAA,QAAAA,eAAAA,KAAAA,IAAAA,KAAAA,IAAAA,WAAY+B,IAAI,CAAC,CAACC,gBAAoBnD,sBAAAA,EAAasC,cAAca,WAAAA,KAAe;YAC5F;YAEAf,KAAKgB,IAAI,CAACZ;YAEV,IAAIA,QAAQG,SAAS,EAAE;gBACrBZ,4BAA4B;YAC9B;YAEAP,KAAKM,OAAO,CAACN,KAAKG,OAAO,KAAK;QAChC;QAEA,qFAAqF;QACrFO,iBAAiBnB,cAAcoB,YAAYpB,cAAc,IAAI,CAACgB,6BAA6BI,cAAc;QAEzG,0GAA0G;QAC1GP,MAAMwB,IAAI,CAAChB;IACb;IAEA,OAAOR;AACT,EAAE"}
@@ -22,7 +22,7 @@ _export(exports, {
22
22
  return _isRestrictedDate.isRestrictedDate;
23
23
  }
24
24
  });
25
- const _findAvailableDate = require("./findAvailableDate");
26
- const _getBoundedDateRange = require("./getBoundedDateRange");
27
- const _getDayGrid = require("./getDayGrid");
28
- const _isRestrictedDate = require("./isRestrictedDate");
25
+ const _findAvailableDate = require("./findAvailableDate.cjs");
26
+ const _getBoundedDateRange = require("./getBoundedDateRange.cjs");
27
+ const _getDayGrid = require("./getDayGrid.cjs");
28
+ const _isRestrictedDate = require("./isRestrictedDate.cjs");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/dateGrid/index.ts"],"sourcesContent":["export type { AvailableDateOptions, Day, DayGridOptions, RestrictedDatesOptions } from './dateGrid.types';\nexport { findAvailableDate } from './findAvailableDate';\nexport { getBoundedDateRange } from './getBoundedDateRange';\nexport { getDayGrid } from './getDayGrid';\nexport { isRestrictedDate } from './isRestrictedDate';\n"],"names":["findAvailableDate","getBoundedDateRange","getDayGrid","isRestrictedDate"],"mappings":";;;;;;;;;;;;eACSA,oCAAiB;;;eACjBC,wCAAmB;;;eACnBC,sBAAU;;;eACVC,kCAAgB;;;mCAHS,sBAAsB;qCACpB,wBAAwB;4BACjC,eAAe;kCACT,qBAAqB"}
1
+ {"version":3,"sources":["../src/utils/dateGrid/index.ts"],"sourcesContent":["export type { AvailableDateOptions, Day, DayGridOptions, RestrictedDatesOptions } from './dateGrid.types';\nexport { findAvailableDate } from './findAvailableDate';\nexport { getBoundedDateRange } from './getBoundedDateRange';\nexport { getDayGrid } from './getDayGrid';\nexport { isRestrictedDate } from './isRestrictedDate';\n"],"names":["findAvailableDate","getBoundedDateRange","getDayGrid","isRestrictedDate"],"mappings":";;;;;;;;;;;;eACSA,oCAAiB;;;eACjBC,wCAAmB;;;eACnBC,sBAAU;;;eACVC,kCAAgB;;;mCAHS,yBAAsB;qCACpB,2BAAwB;4BACjC,kBAAe;kCACT,wBAAqB"}
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "isAfterMaxDate", {
8
8
  return isAfterMaxDate;
9
9
  }
10
10
  });
11
- const _dateMath = require("../dateMath/dateMath");
11
+ const _dateMath = require("../dateMath/dateMath.cjs");
12
12
  const isAfterMaxDate = (date, options)=>{
13
13
  const { maxDate } = options;
14
14
  return maxDate ? (0, _dateMath.compareDatePart)(date, maxDate) >= 1 : false;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/dateGrid/isAfterMaxDate.ts"],"sourcesContent":["import type { RestrictedDatesOptions } from './dateGrid.types';\nimport { compareDatePart } from '../dateMath/dateMath';\n\n/**\n * Checks if `date` happens later than max date\n * @param date - date to check\n * @param options - object with max date to check against\n */\nexport const isAfterMaxDate = (date: Date, options: RestrictedDatesOptions): boolean => {\n const { maxDate } = options;\n return maxDate ? compareDatePart(date, maxDate) >= 1 : false;\n};\n"],"names":["compareDatePart","isAfterMaxDate","date","options","maxDate"],"mappings":";;;;;;;;;;0BACgC,uBAAuB;AAOhD,MAAMC,iBAAiB,CAACC,MAAYC;IACzC,MAAM,EAAEC,OAAO,EAAE,GAAGD;IACpB,OAAOC,cAAUJ,yBAAAA,EAAgBE,MAAME,YAAY,IAAI;AACzD,EAAE"}
1
+ {"version":3,"sources":["../src/utils/dateGrid/isAfterMaxDate.ts"],"sourcesContent":["import type { RestrictedDatesOptions } from './dateGrid.types';\nimport { compareDatePart } from '../dateMath/dateMath';\n\n/**\n * Checks if `date` happens later than max date\n * @param date - date to check\n * @param options - object with max date to check against\n */\nexport const isAfterMaxDate = (date: Date, options: RestrictedDatesOptions): boolean => {\n const { maxDate } = options;\n return maxDate ? compareDatePart(date, maxDate) >= 1 : false;\n};\n"],"names":["compareDatePart","isAfterMaxDate","date","options","maxDate"],"mappings":";;;;;;;;;;0BACgC,0BAAuB;AAOhD,MAAMC,iBAAiB,CAACC,MAAYC;IACzC,MAAM,EAAEC,OAAO,EAAE,GAAGD;IACpB,OAAOC,cAAUJ,yBAAAA,EAAgBE,MAAME,YAAY,IAAI;AACzD,EAAE"}
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "isBeforeMinDate", {
8
8
  return isBeforeMinDate;
9
9
  }
10
10
  });
11
- const _dateMath = require("../dateMath/dateMath");
11
+ const _dateMath = require("../dateMath/dateMath.cjs");
12
12
  const isBeforeMinDate = (date, options)=>{
13
13
  const { minDate } = options;
14
14
  return minDate ? (0, _dateMath.compareDatePart)(minDate, date) >= 1 : false;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/dateGrid/isBeforeMinDate.ts"],"sourcesContent":["import type { RestrictedDatesOptions } from './dateGrid.types';\nimport { compareDatePart } from '../dateMath/dateMath';\n\n/**\n * Checks if `date` happens earlier than min date\n * @param date - date to check\n * @param options - object with min date to check against\n */\nexport const isBeforeMinDate = (date: Date, options: RestrictedDatesOptions): boolean => {\n const { minDate } = options;\n return minDate ? compareDatePart(minDate, date) >= 1 : false;\n};\n"],"names":["compareDatePart","isBeforeMinDate","date","options","minDate"],"mappings":";;;;;;;;;;0BACgC,uBAAuB;AAOhD,MAAMC,kBAAkB,CAACC,MAAYC;IAC1C,MAAM,EAAEC,OAAO,EAAE,GAAGD;IACpB,OAAOC,cAAUJ,yBAAAA,EAAgBI,SAASF,SAAS,IAAI;AACzD,EAAE"}
1
+ {"version":3,"sources":["../src/utils/dateGrid/isBeforeMinDate.ts"],"sourcesContent":["import type { RestrictedDatesOptions } from './dateGrid.types';\nimport { compareDatePart } from '../dateMath/dateMath';\n\n/**\n * Checks if `date` happens earlier than min date\n * @param date - date to check\n * @param options - object with min date to check against\n */\nexport const isBeforeMinDate = (date: Date, options: RestrictedDatesOptions): boolean => {\n const { minDate } = options;\n return minDate ? compareDatePart(minDate, date) >= 1 : false;\n};\n"],"names":["compareDatePart","isBeforeMinDate","date","options","minDate"],"mappings":";;;;;;;;;;0BACgC,0BAAuB;AAOhD,MAAMC,kBAAkB,CAACC,MAAYC;IAC1C,MAAM,EAAEC,OAAO,EAAE,GAAGD;IACpB,OAAOC,cAAUJ,yBAAAA,EAAgBI,SAASF,SAAS,IAAI;AACzD,EAAE"}
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "isRestrictedDate", {
8
8
  return isRestrictedDate;
9
9
  }
10
10
  });
11
- const _dateMath = require("../dateMath/dateMath");
12
- const _isBeforeMinDate = require("./isBeforeMinDate");
13
- const _isAfterMaxDate = require("./isAfterMaxDate");
11
+ const _dateMath = require("../dateMath/dateMath.cjs");
12
+ const _isBeforeMinDate = require("./isBeforeMinDate.cjs");
13
+ const _isAfterMaxDate = require("./isAfterMaxDate.cjs");
14
14
  const isRestrictedDate = (date, options)=>{
15
15
  const { restrictedDates, minDate, maxDate } = options;
16
16
  if (!restrictedDates && !minDate && !maxDate) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/dateGrid/isRestrictedDate.ts"],"sourcesContent":["import type { RestrictedDatesOptions } from './dateGrid.types';\nimport { compareDates } from '../dateMath/dateMath';\nimport { isBeforeMinDate } from './isBeforeMinDate';\nimport { isAfterMaxDate } from './isAfterMaxDate';\n\n/**\n * Checks if `date` falls into the restricted `options`\n * @param date - date to check\n * @param options - restriction options (min date, max date and list of restricted dates)\n */\nexport const isRestrictedDate = (date: Date, options: RestrictedDatesOptions): boolean => {\n const { restrictedDates, minDate, maxDate } = options;\n if (!restrictedDates && !minDate && !maxDate) {\n return false;\n }\n const inRestrictedDates = restrictedDates && restrictedDates.some((rd: Date) => compareDates(rd, date));\n return inRestrictedDates || isBeforeMinDate(date, options) || isAfterMaxDate(date, options);\n};\n"],"names":["compareDates","isBeforeMinDate","isAfterMaxDate","isRestrictedDate","date","options","restrictedDates","minDate","maxDate","inRestrictedDates","some","rd"],"mappings":";;;;+BAUaG;;;;;;0BATgB,uBAAuB;iCACpB,oBAAoB;gCACrB,mBAAmB;AAO3C,yBAAyB,CAACC,MAAYC;IAC3C,MAAM,EAAEC,eAAe,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAAGH;IAC9C,IAAI,CAACC,mBAAmB,CAACC,WAAW,CAACC,SAAS;QAC5C,OAAO;IACT;IACA,MAAMC,oBAAoBH,mBAAmBA,gBAAgBI,IAAI,CAAC,CAACC,SAAaX,sBAAAA,EAAaW,IAAIP;IACjG,OAAOK,yBAAqBR,gCAAAA,EAAgBG,MAAMC,gBAAYH,8BAAAA,EAAeE,MAAMC;AACrF,EAAE"}
1
+ {"version":3,"sources":["../src/utils/dateGrid/isRestrictedDate.ts"],"sourcesContent":["import type { RestrictedDatesOptions } from './dateGrid.types';\nimport { compareDates } from '../dateMath/dateMath';\nimport { isBeforeMinDate } from './isBeforeMinDate';\nimport { isAfterMaxDate } from './isAfterMaxDate';\n\n/**\n * Checks if `date` falls into the restricted `options`\n * @param date - date to check\n * @param options - restriction options (min date, max date and list of restricted dates)\n */\nexport const isRestrictedDate = (date: Date, options: RestrictedDatesOptions): boolean => {\n const { restrictedDates, minDate, maxDate } = options;\n if (!restrictedDates && !minDate && !maxDate) {\n return false;\n }\n const inRestrictedDates = restrictedDates && restrictedDates.some((rd: Date) => compareDates(rd, date));\n return inRestrictedDates || isBeforeMinDate(date, options) || isAfterMaxDate(date, options);\n};\n"],"names":["compareDates","isBeforeMinDate","isAfterMaxDate","isRestrictedDate","date","options","restrictedDates","minDate","maxDate","inRestrictedDates","some","rd"],"mappings":";;;;+BAUaG;;;;;;0BATgB,0BAAuB;iCACpB,uBAAoB;gCACrB,sBAAmB;AAO3C,yBAAyB,CAACC,MAAYC;IAC3C,MAAM,EAAEC,eAAe,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAAGH;IAC9C,IAAI,CAACC,mBAAmB,CAACC,WAAW,CAACC,SAAS;QAC5C,OAAO;IACT;IACA,MAAMC,oBAAoBH,mBAAmBA,gBAAgBI,IAAI,CAAC,CAACC,SAAaX,sBAAAA,EAAaW,IAAIP;IACjG,OAAOK,yBAAqBR,gCAAAA,EAAgBG,MAAMC,gBAAYH,8BAAAA,EAAeE,MAAMC;AACrF,EAAE"}
@@ -64,7 +64,7 @@ _export(exports, {
64
64
  return setMonth;
65
65
  }
66
66
  });
67
- const _constants = require("../constants");
67
+ const _constants = require("../constants.cjs");
68
68
  function addDays(date, days) {
69
69
  const result = new Date(date.getTime());
70
70
  result.setDate(result.getDate() + days);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/dateMath/dateMath.ts"],"sourcesContent":["import { DateRangeType, DayOfWeek, FirstWeekOfYear, MonthOfYear, TimeConstants } from '../constants';\n\n/**\n * Returns a date offset from the given date by the specified number of days.\n * @param date - The origin date\n * @param days - The number of days to offset. 'days' can be negative.\n * @returns A new Date object offset from the origin date by the given number of days\n */\nexport function addDays(date: Date, days: number): Date {\n const result = new Date(date.getTime());\n result.setDate(result.getDate() + days);\n return result;\n}\n\n/**\n * Returns a date offset from the given date by the specified number of weeks.\n * @param date - The origin date\n * @param weeks - The number of weeks to offset. 'weeks' can be negative.\n * @returns A new Date object offset from the origin date by the given number of weeks\n */\nexport function addWeeks(date: Date, weeks: number): Date {\n return addDays(date, weeks * TimeConstants.DaysInOneWeek);\n}\n\n/**\n * Returns a date offset from the given date by the specified number of months.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param months - The number of months to offset. 'months' can be negative.\n * @returns A new Date object offset from the origin date by the given number of months\n */\nexport function addMonths(date: Date, months: number): Date {\n let result = new Date(date.getTime());\n const newMonth = result.getMonth() + months;\n result.setMonth(newMonth);\n\n // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days.\n // Loop until we back up to a day the new month has.\n // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo)\n if (\n result.getMonth() !==\n ((newMonth % TimeConstants.MonthInOneYear) + TimeConstants.MonthInOneYear) % TimeConstants.MonthInOneYear\n ) {\n result = addDays(result, -result.getDate());\n }\n return result;\n}\n\n/**\n * Returns a date offset from the given date by the specified number of years.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param years - The number of years to offset. 'years' can be negative.\n * @returns A new Date object offset from the origin date by the given number of years\n */\nexport function addYears(date: Date, years: number): Date {\n let result = new Date(date.getTime());\n result.setFullYear(date.getFullYear() + years);\n\n // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days.\n // Loop until we back up to a day the new month has.\n // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo)\n if (\n result.getMonth() !==\n ((date.getMonth() % TimeConstants.MonthInOneYear) + TimeConstants.MonthInOneYear) % TimeConstants.MonthInOneYear\n ) {\n result = addDays(result, -result.getDate());\n }\n return result;\n}\n\n/**\n * Returns a date that is the first day of the month of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the first day of the month.\n */\nexport function getMonthStart(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth(), 1, 0, 0, 0, 0);\n}\n\n/**\n * Returns a date that is the last day of the month of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the last day of the month.\n */\nexport function getMonthEnd(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth() + 1, 0, 0, 0, 0, 0);\n}\n\n/**\n * Returns a date that is the first day of the year of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the first day of the year.\n */\nexport function getYearStart(date: Date): Date {\n return new Date(date.getFullYear(), 0, 1, 0, 0, 0, 0);\n}\n\n/**\n * Returns a date that is the last day of the year of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the last day of the year.\n */\nexport function getYearEnd(date: Date): Date {\n return new Date(date.getFullYear() + 1, 0, 0, 0, 0, 0, 0);\n}\n\n/**\n * Returns a date that is a copy of the given date, aside from the month changing to the given month.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param month - The 0-based index of the month to set on the date.\n * @returns A new Date object with the given month set.\n */\nexport function setMonth(date: Date, month: number): Date {\n return addMonths(date, month - date.getMonth());\n}\n\n/**\n * Compares two dates, and returns true if the two dates (not accounting for time-of-day) are equal.\n * @returns True if the two dates represent the same date (regardless of time-of-day), false otherwise.\n */\nexport function compareDates(date1: Date, date2: Date): boolean {\n if (!date1 && !date2) {\n return true;\n } else if (!date1 || !date2) {\n return false;\n } else {\n return (\n date1.getFullYear() === date2.getFullYear() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getDate() === date2.getDate()\n );\n }\n}\n\n/**\n * Compare the date parts of two dates\n * @param date1 - The first date to compare\n * @param date2 - The second date to compare\n * @returns A negative value if date1 is earlier than date2, 0 if the dates are equal, or a positive value\n * if date1 is later than date2.\n */\nexport function compareDatePart(date1: Date, date2: Date): number {\n return getDatePartHashValue(date1) - getDatePartHashValue(date2);\n}\n\n/**\n * Gets the date range array including the specified date. The date range array is calculated as the list\n * of dates accounting for the specified first day of the week and date range type.\n * @param date - The input date\n * @param dateRangeType - The desired date range type, i.e., day, week, month, etc.\n * @param firstDayOfWeek - The first day of the week.\n * @param workWeekDays - The allowed days in work week. If not provided, assumes all days are allowed.\n * @param daysToSelectInDayView - The number of days to include when using dateRangeType === DateRangeType.Day\n * for multiday view. Defaults to 1\n * @returns An array of dates representing the date range containing the specified date.\n */\nexport function getDateRangeArray(\n date: Date,\n dateRangeType: DateRangeType,\n firstDayOfWeek: DayOfWeek,\n workWeekDays?: DayOfWeek[],\n daysToSelectInDayView: number = 1,\n): Date[] {\n const datesArray: Date[] = [];\n let startDate: Date;\n let endDate = null;\n\n if (!workWeekDays) {\n workWeekDays = [DayOfWeek.Monday, DayOfWeek.Tuesday, DayOfWeek.Wednesday, DayOfWeek.Thursday, DayOfWeek.Friday];\n }\n\n switch (dateRangeType) {\n case DateRangeType.Day:\n // Create a date range for the specified date\n\n [startDate, endDate] = [date, addDays(date, daysToSelectInDayView)];\n\n // If the start date is after the end date, swap them\n if (compareDatePart(startDate, endDate) > 0) {\n // For reverse dates we need to add one day to both dates\n // to ensure correct start date\n [startDate, endDate] = [addDays(endDate, 1), addDays(startDate, 1)];\n }\n\n break;\n\n case DateRangeType.Week:\n case DateRangeType.WorkWeek:\n startDate = getStartDateOfWeek(getDatePart(date), firstDayOfWeek);\n endDate = addDays(startDate, TimeConstants.DaysInOneWeek);\n break;\n\n case DateRangeType.Month:\n startDate = new Date(date.getFullYear(), date.getMonth(), 1);\n endDate = addMonths(startDate, 1);\n break;\n\n default:\n throw new Error('Unexpected object: ' + dateRangeType);\n }\n\n // Populate the dates array with the dates in range\n let nextDate = startDate;\n\n do {\n if (dateRangeType !== DateRangeType.WorkWeek) {\n // push all days not in work week view\n datesArray.push(nextDate);\n } else if (workWeekDays.indexOf(nextDate.getDay()) !== -1) {\n datesArray.push(nextDate);\n }\n nextDate = addDays(nextDate, 1);\n } while (!compareDates(nextDate, endDate));\n\n return datesArray;\n}\n\n/**\n * Checks whether the specified date is in the given date range.\n * @param date - The origin date\n * @param dateRange - An array of dates to do the lookup on\n * @returns True if the date matches one of the dates in the specified array, false otherwise.\n */\nexport function isInDateRangeArray(date: Date, dateRange: Date[]): boolean {\n for (const dateInRange of dateRange) {\n if (compareDates(date, dateInRange)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Returns the week number for a date.\n * Week numbers are 1 - 52 (53) in a year\n * @param navigatedDate - A date to find the week number for.\n * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0)\n * @param firstWeekOfYear - The first week of the year (1-2)\n * @returns The weeks number array for the current month.\n */\nexport function getWeekNumbersInMonth(\n weeksInMonth: number,\n firstDayOfWeek: DayOfWeek,\n firstWeekOfYear: FirstWeekOfYear,\n navigatedDate: Date,\n): number[] {\n const selectedYear = navigatedDate.getFullYear();\n const selectedMonth = navigatedDate.getMonth();\n let dayOfMonth = 1;\n const fistDayOfMonth = new Date(selectedYear, selectedMonth, dayOfMonth);\n const endOfFirstWeek =\n dayOfMonth +\n (firstDayOfWeek + TimeConstants.DaysInOneWeek - 1) -\n adjustWeekDay(firstDayOfWeek, fistDayOfMonth.getDay());\n let endOfWeekRange = new Date(selectedYear, selectedMonth, endOfFirstWeek);\n dayOfMonth = endOfWeekRange.getDate();\n\n const weeksArray = [];\n for (let i = 0; i < weeksInMonth; i++) {\n // Get week number for end of week\n weeksArray.push(getWeekNumber(endOfWeekRange, firstDayOfWeek, firstWeekOfYear));\n dayOfMonth += TimeConstants.DaysInOneWeek;\n endOfWeekRange = new Date(selectedYear, selectedMonth, dayOfMonth);\n }\n return weeksArray;\n}\n\n/**\n * Returns the week number for a date.\n * Week numbers are 1 - 52 (53) in a year\n * @param date - A date to find the week number for.\n * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0)\n * @param firstWeekOfYear - The first week of the year (1-2)\n * @returns The week's number in the year.\n */\nexport function getWeekNumber(date: Date, firstDayOfWeek: DayOfWeek, firstWeekOfYear: FirstWeekOfYear): number {\n // First four-day week of the year - minumum days count\n const fourDayWeek = 4;\n\n switch (firstWeekOfYear) {\n case FirstWeekOfYear.FirstFullWeek:\n return getWeekOfYearFullDays(date, firstDayOfWeek, TimeConstants.DaysInOneWeek);\n\n case FirstWeekOfYear.FirstFourDayWeek:\n return getWeekOfYearFullDays(date, firstDayOfWeek, fourDayWeek);\n\n default:\n return getFirstDayWeekOfYear(date, firstDayOfWeek);\n }\n}\n\n/**\n * Gets the date for the first day of the week based on the given date assuming\n * the specified first day of the week.\n * @param date - The date to find the beginning of the week date for.\n * @returns A new date object representing the first day of the week containing the input date.\n */\nexport function getStartDateOfWeek(date: Date, firstDayOfWeek: DayOfWeek): Date {\n let daysOffset = firstDayOfWeek - date.getDay();\n if (daysOffset > 0) {\n // If first day of week is > date, go 1 week back, to ensure resulting date is in the past.\n daysOffset -= TimeConstants.DaysInOneWeek;\n }\n return addDays(date, daysOffset);\n}\n\n/**\n * Gets the date for the last day of the week based on the given date assuming\n * the specified first day of the week.\n * @param date - The date to find the beginning of the week date for.\n * @returns A new date object representing the first day of the week containing the input date.\n */\nexport function getEndDateOfWeek(date: Date, firstDayOfWeek: DayOfWeek): Date {\n const lastDayOfWeek = firstDayOfWeek - 1 >= 0 ? firstDayOfWeek - 1 : TimeConstants.DaysInOneWeek - 1;\n let daysOffset = lastDayOfWeek - date.getDay();\n if (daysOffset < 0) {\n // If last day of week is < date, go 1 week forward, to ensure resulting date is in the future.\n daysOffset += TimeConstants.DaysInOneWeek;\n }\n return addDays(date, daysOffset);\n}\n\n/**\n * Gets a new date with the time portion zeroed out, i.e., set to midnight\n * @param date - The origin date\n * @returns A new date with the time set to midnight\n */\nfunction getDatePart(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate());\n}\n\n/**\n * Helper function to assist in date comparisons\n */\nexport function getDatePartHashValue(date: Date): number {\n // Generate date hash value created as sum of Date (up to 31 = 5 bits), Month (up to 11 = 4 bits) and Year.\n // eslint-disable-next-line no-bitwise\n return date.getDate() + (date.getMonth() << 5) + (date.getFullYear() << 9);\n}\n\n/**\n * Helper function for `getWeekNumber`.\n * Returns week number for a date.\n * @param date - current selected date.\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @param numberOfFullDays - week settings.\n * @returns The week's number in the year.\n */\nfunction getWeekOfYearFullDays(date: Date, firstDayOfWeek: DayOfWeek, numberOfFullDays: number): number {\n const dayOfYear = getDayOfYear(date) - 1;\n let num = date.getDay() - (dayOfYear % TimeConstants.DaysInOneWeek);\n\n const lastDayOfPrevYear = new Date(date.getFullYear() - 1, MonthOfYear.December, 31);\n const daysInYear = getDayOfYear(lastDayOfPrevYear) - 1;\n\n let num2 = (firstDayOfWeek - num + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n if (num2 !== 0 && num2 >= numberOfFullDays) {\n num2 -= TimeConstants.DaysInOneWeek;\n }\n\n let num3 = dayOfYear - num2;\n if (num3 < 0) {\n num -= daysInYear % TimeConstants.DaysInOneWeek;\n num2 = (firstDayOfWeek - num + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n if (num2 !== 0 && num2 + 1 >= numberOfFullDays) {\n num2 -= TimeConstants.DaysInOneWeek;\n }\n\n num3 = daysInYear - num2;\n }\n\n return Math.floor(num3 / TimeConstants.DaysInOneWeek + 1);\n}\n\n/**\n * Helper function for `getWeekNumber`.\n * Returns week number for a date.\n * @param date - current selected date.\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @returns The week's number in the year.\n */\nfunction getFirstDayWeekOfYear(date: Date, firstDayOfWeek: number): number {\n const num = getDayOfYear(date) - 1;\n const num2 = date.getDay() - (num % TimeConstants.DaysInOneWeek);\n const num3 = (num2 - firstDayOfWeek + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n\n return Math.floor((num + num3) / TimeConstants.DaysInOneWeek + 1);\n}\n\n/**\n * Helper function for `getWeekNumber`.\n * Returns adjusted week day number when `firstDayOfWeek` is other than Sunday.\n * For Week Day Number comparison checks\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @param dateWeekDay - shifts number forward to 1 week in case passed as true\n * @returns The day of week adjusted to `firstDayOfWeek`; e.g. when `firstDayOfWeek` is Monday (1),\n * Sunday becomes 7.\n */\nfunction adjustWeekDay(firstDayOfWeek: DayOfWeek, dateWeekDay: DayOfWeek): number {\n return firstDayOfWeek !== DayOfWeek.Sunday && dateWeekDay < firstDayOfWeek\n ? dateWeekDay + TimeConstants.DaysInOneWeek\n : dateWeekDay;\n}\n\n/**\n * Returns the day number for a date in a year:\n * the number of days since January 1st in the particular year.\n * @param date - A date to find the day number for.\n * @returns The day's number in the year.\n */\nfunction getDayOfYear(date: Date): number {\n const month = date.getMonth();\n const year = date.getFullYear();\n let daysUntilDate = 0;\n\n for (let i = 0; i < month; i++) {\n daysUntilDate += daysInMonth(i + 1, year);\n }\n\n daysUntilDate += date.getDate();\n\n return daysUntilDate;\n}\n\n/**\n * Returns the number of days in the month\n * @param month - The month number to target (months 1-12).\n * @param year - The year to target.\n * @returns The number of days in the month.\n */\nfunction daysInMonth(month: number, year: number): number {\n return new Date(year, month, 0).getDate();\n}\n"],"names":["DateRangeType","DayOfWeek","FirstWeekOfYear","MonthOfYear","TimeConstants","addDays","date","days","result","Date","getTime","setDate","getDate","addWeeks","weeks","DaysInOneWeek","addMonths","months","newMonth","getMonth","setMonth","MonthInOneYear","addYears","years","setFullYear","getFullYear","getMonthStart","getMonthEnd","getYearStart","getYearEnd","month","compareDates","date1","date2","compareDatePart","getDatePartHashValue","getDateRangeArray","dateRangeType","firstDayOfWeek","workWeekDays","daysToSelectInDayView","datesArray","startDate","endDate","Monday","Tuesday","Wednesday","Thursday","Friday","Day","Week","WorkWeek","getStartDateOfWeek","getDatePart","Month","Error","nextDate","push","indexOf","getDay","isInDateRangeArray","dateRange","dateInRange","getWeekNumbersInMonth","weeksInMonth","firstWeekOfYear","navigatedDate","selectedYear","selectedMonth","dayOfMonth","fistDayOfMonth","endOfFirstWeek","adjustWeekDay","endOfWeekRange","weeksArray","i","getWeekNumber","fourDayWeek","FirstFullWeek","getWeekOfYearFullDays","FirstFourDayWeek","getFirstDayWeekOfYear","daysOffset","getEndDateOfWeek","lastDayOfWeek","numberOfFullDays","dayOfYear","getDayOfYear","num","lastDayOfPrevYear","December","daysInYear","num2","num3","Math","floor","dateWeekDay","Sunday","year","daysUntilDate","daysInMonth"],"mappings":";;;;;;;;;;;WAQgBK;eAAAA;;aAwBAW;;;YAZAH;;;IAqCAS,QAAAA;;;IAyFAY,eAAAA;;;gBArBAH;;;IAsNAI,oBAAAA;;;qBAlLAC;eAAAA;;IA4JA+C,gBAAAA;;;eAtOAxD;;;iBATAD;;;sBAgOA0B;;;iBAtBAwB;;;IAnCAb,qBAAAA;;;IA5IAlC,UAAAA;;;IATAD,YAAAA;;;IAoIAgC,kBAAAA;;;YA/GAxC;;;;2BArHsE,eAAe;AAQ9F,iBAAiBd,IAAU,EAAEC,IAAY;IAC9C,MAAMC,SAAS,IAAIC,KAAKH,KAAKI,OAAO;IACpCF,OAAOG,OAAO,CAACH,OAAOI,OAAO,KAAKL;IAClC,OAAOC;AACT;AAQO,SAASK,SAASP,IAAU,EAAEQ,KAAa;IAChD,OAAOT,QAAQC,MAAMQ,QAAQV,wBAAAA,CAAcW,aAAa;AAC1D;AAUO,SAASC,UAAUV,IAAU,EAAEW,MAAc;IAClD,IAAIT,SAAS,IAAIC,KAAKH,KAAKI,OAAO;IAClC,MAAMQ,WAAWV,OAAOW,QAAQ,KAAKF;IACrCT,OAAOY,QAAQ,CAACF;IAEhB,qHAAqH;IACrH,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W,aAAa;IAEpG,OAAO+E,KAAKC,KAAK,CAAEP,CAAAA,MAAMK,IAAAA,CAAG,GAAKzF,wBAAAA,CAAcW,aAAa,GAAG;AACjE;AAEA;;;;;;;;CAQC,GACD,SAASyD,cAAclC,cAAyB,EAAE0D,WAAsB;IACtE,OAAO1D,mBAAmBrC,oBAAAA,CAAUgG,MAAM,IAAID,cAAc1D,iBACxD0D,cAAc5F,wBAAAA,CAAcW,aAAa,GACzCiF;AACN;AAEA;;;;;CAKC,GACD,SAAST,aAAajF,IAAU;IAC9B,MAAMwB,QAAQxB,KAAKa,QAAQ;IAC3B,MAAM+E,OAAO5F,KAAKmB,WAAW;IAC7B,IAAI0E,gBAAgB;IAEpB,IAAK,IAAIxB,IAAI,GAAGA,IAAI7C,OAAO6C,IAAK;QAC9BwB,iBAAiBC,YAAYzB,IAAI,GAAGuB;IACtC;IAEAC,iBAAiB7F,KAAKM,OAAO;IAE7B,OAAOuF;AACT;AAEA;;;;;CAKC,GACD,SAASC,YAAYtE,KAAa,EAAEoE,IAAY;IAC9C,OAAO,IAAIzF,KAAKyF,MAAMpE,OAAO,GAAGlB,OAAO;AACzC"}
1
+ {"version":3,"sources":["../src/utils/dateMath/dateMath.ts"],"sourcesContent":["import { DateRangeType, DayOfWeek, FirstWeekOfYear, MonthOfYear, TimeConstants } from '../constants';\n\n/**\n * Returns a date offset from the given date by the specified number of days.\n * @param date - The origin date\n * @param days - The number of days to offset. 'days' can be negative.\n * @returns A new Date object offset from the origin date by the given number of days\n */\nexport function addDays(date: Date, days: number): Date {\n const result = new Date(date.getTime());\n result.setDate(result.getDate() + days);\n return result;\n}\n\n/**\n * Returns a date offset from the given date by the specified number of weeks.\n * @param date - The origin date\n * @param weeks - The number of weeks to offset. 'weeks' can be negative.\n * @returns A new Date object offset from the origin date by the given number of weeks\n */\nexport function addWeeks(date: Date, weeks: number): Date {\n return addDays(date, weeks * TimeConstants.DaysInOneWeek);\n}\n\n/**\n * Returns a date offset from the given date by the specified number of months.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param months - The number of months to offset. 'months' can be negative.\n * @returns A new Date object offset from the origin date by the given number of months\n */\nexport function addMonths(date: Date, months: number): Date {\n let result = new Date(date.getTime());\n const newMonth = result.getMonth() + months;\n result.setMonth(newMonth);\n\n // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days.\n // Loop until we back up to a day the new month has.\n // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo)\n if (\n result.getMonth() !==\n ((newMonth % TimeConstants.MonthInOneYear) + TimeConstants.MonthInOneYear) % TimeConstants.MonthInOneYear\n ) {\n result = addDays(result, -result.getDate());\n }\n return result;\n}\n\n/**\n * Returns a date offset from the given date by the specified number of years.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param years - The number of years to offset. 'years' can be negative.\n * @returns A new Date object offset from the origin date by the given number of years\n */\nexport function addYears(date: Date, years: number): Date {\n let result = new Date(date.getTime());\n result.setFullYear(date.getFullYear() + years);\n\n // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days.\n // Loop until we back up to a day the new month has.\n // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo)\n if (\n result.getMonth() !==\n ((date.getMonth() % TimeConstants.MonthInOneYear) + TimeConstants.MonthInOneYear) % TimeConstants.MonthInOneYear\n ) {\n result = addDays(result, -result.getDate());\n }\n return result;\n}\n\n/**\n * Returns a date that is the first day of the month of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the first day of the month.\n */\nexport function getMonthStart(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth(), 1, 0, 0, 0, 0);\n}\n\n/**\n * Returns a date that is the last day of the month of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the last day of the month.\n */\nexport function getMonthEnd(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth() + 1, 0, 0, 0, 0, 0);\n}\n\n/**\n * Returns a date that is the first day of the year of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the first day of the year.\n */\nexport function getYearStart(date: Date): Date {\n return new Date(date.getFullYear(), 0, 1, 0, 0, 0, 0);\n}\n\n/**\n * Returns a date that is the last day of the year of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the last day of the year.\n */\nexport function getYearEnd(date: Date): Date {\n return new Date(date.getFullYear() + 1, 0, 0, 0, 0, 0, 0);\n}\n\n/**\n * Returns a date that is a copy of the given date, aside from the month changing to the given month.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param month - The 0-based index of the month to set on the date.\n * @returns A new Date object with the given month set.\n */\nexport function setMonth(date: Date, month: number): Date {\n return addMonths(date, month - date.getMonth());\n}\n\n/**\n * Compares two dates, and returns true if the two dates (not accounting for time-of-day) are equal.\n * @returns True if the two dates represent the same date (regardless of time-of-day), false otherwise.\n */\nexport function compareDates(date1: Date, date2: Date): boolean {\n if (!date1 && !date2) {\n return true;\n } else if (!date1 || !date2) {\n return false;\n } else {\n return (\n date1.getFullYear() === date2.getFullYear() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getDate() === date2.getDate()\n );\n }\n}\n\n/**\n * Compare the date parts of two dates\n * @param date1 - The first date to compare\n * @param date2 - The second date to compare\n * @returns A negative value if date1 is earlier than date2, 0 if the dates are equal, or a positive value\n * if date1 is later than date2.\n */\nexport function compareDatePart(date1: Date, date2: Date): number {\n return getDatePartHashValue(date1) - getDatePartHashValue(date2);\n}\n\n/**\n * Gets the date range array including the specified date. The date range array is calculated as the list\n * of dates accounting for the specified first day of the week and date range type.\n * @param date - The input date\n * @param dateRangeType - The desired date range type, i.e., day, week, month, etc.\n * @param firstDayOfWeek - The first day of the week.\n * @param workWeekDays - The allowed days in work week. If not provided, assumes all days are allowed.\n * @param daysToSelectInDayView - The number of days to include when using dateRangeType === DateRangeType.Day\n * for multiday view. Defaults to 1\n * @returns An array of dates representing the date range containing the specified date.\n */\nexport function getDateRangeArray(\n date: Date,\n dateRangeType: DateRangeType,\n firstDayOfWeek: DayOfWeek,\n workWeekDays?: DayOfWeek[],\n daysToSelectInDayView: number = 1,\n): Date[] {\n const datesArray: Date[] = [];\n let startDate: Date;\n let endDate = null;\n\n if (!workWeekDays) {\n workWeekDays = [DayOfWeek.Monday, DayOfWeek.Tuesday, DayOfWeek.Wednesday, DayOfWeek.Thursday, DayOfWeek.Friday];\n }\n\n switch (dateRangeType) {\n case DateRangeType.Day:\n // Create a date range for the specified date\n\n [startDate, endDate] = [date, addDays(date, daysToSelectInDayView)];\n\n // If the start date is after the end date, swap them\n if (compareDatePart(startDate, endDate) > 0) {\n // For reverse dates we need to add one day to both dates\n // to ensure correct start date\n [startDate, endDate] = [addDays(endDate, 1), addDays(startDate, 1)];\n }\n\n break;\n\n case DateRangeType.Week:\n case DateRangeType.WorkWeek:\n startDate = getStartDateOfWeek(getDatePart(date), firstDayOfWeek);\n endDate = addDays(startDate, TimeConstants.DaysInOneWeek);\n break;\n\n case DateRangeType.Month:\n startDate = new Date(date.getFullYear(), date.getMonth(), 1);\n endDate = addMonths(startDate, 1);\n break;\n\n default:\n throw new Error('Unexpected object: ' + dateRangeType);\n }\n\n // Populate the dates array with the dates in range\n let nextDate = startDate;\n\n do {\n if (dateRangeType !== DateRangeType.WorkWeek) {\n // push all days not in work week view\n datesArray.push(nextDate);\n } else if (workWeekDays.indexOf(nextDate.getDay()) !== -1) {\n datesArray.push(nextDate);\n }\n nextDate = addDays(nextDate, 1);\n } while (!compareDates(nextDate, endDate));\n\n return datesArray;\n}\n\n/**\n * Checks whether the specified date is in the given date range.\n * @param date - The origin date\n * @param dateRange - An array of dates to do the lookup on\n * @returns True if the date matches one of the dates in the specified array, false otherwise.\n */\nexport function isInDateRangeArray(date: Date, dateRange: Date[]): boolean {\n for (const dateInRange of dateRange) {\n if (compareDates(date, dateInRange)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Returns the week number for a date.\n * Week numbers are 1 - 52 (53) in a year\n * @param navigatedDate - A date to find the week number for.\n * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0)\n * @param firstWeekOfYear - The first week of the year (1-2)\n * @returns The weeks number array for the current month.\n */\nexport function getWeekNumbersInMonth(\n weeksInMonth: number,\n firstDayOfWeek: DayOfWeek,\n firstWeekOfYear: FirstWeekOfYear,\n navigatedDate: Date,\n): number[] {\n const selectedYear = navigatedDate.getFullYear();\n const selectedMonth = navigatedDate.getMonth();\n let dayOfMonth = 1;\n const fistDayOfMonth = new Date(selectedYear, selectedMonth, dayOfMonth);\n const endOfFirstWeek =\n dayOfMonth +\n (firstDayOfWeek + TimeConstants.DaysInOneWeek - 1) -\n adjustWeekDay(firstDayOfWeek, fistDayOfMonth.getDay());\n let endOfWeekRange = new Date(selectedYear, selectedMonth, endOfFirstWeek);\n dayOfMonth = endOfWeekRange.getDate();\n\n const weeksArray = [];\n for (let i = 0; i < weeksInMonth; i++) {\n // Get week number for end of week\n weeksArray.push(getWeekNumber(endOfWeekRange, firstDayOfWeek, firstWeekOfYear));\n dayOfMonth += TimeConstants.DaysInOneWeek;\n endOfWeekRange = new Date(selectedYear, selectedMonth, dayOfMonth);\n }\n return weeksArray;\n}\n\n/**\n * Returns the week number for a date.\n * Week numbers are 1 - 52 (53) in a year\n * @param date - A date to find the week number for.\n * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0)\n * @param firstWeekOfYear - The first week of the year (1-2)\n * @returns The week's number in the year.\n */\nexport function getWeekNumber(date: Date, firstDayOfWeek: DayOfWeek, firstWeekOfYear: FirstWeekOfYear): number {\n // First four-day week of the year - minumum days count\n const fourDayWeek = 4;\n\n switch (firstWeekOfYear) {\n case FirstWeekOfYear.FirstFullWeek:\n return getWeekOfYearFullDays(date, firstDayOfWeek, TimeConstants.DaysInOneWeek);\n\n case FirstWeekOfYear.FirstFourDayWeek:\n return getWeekOfYearFullDays(date, firstDayOfWeek, fourDayWeek);\n\n default:\n return getFirstDayWeekOfYear(date, firstDayOfWeek);\n }\n}\n\n/**\n * Gets the date for the first day of the week based on the given date assuming\n * the specified first day of the week.\n * @param date - The date to find the beginning of the week date for.\n * @returns A new date object representing the first day of the week containing the input date.\n */\nexport function getStartDateOfWeek(date: Date, firstDayOfWeek: DayOfWeek): Date {\n let daysOffset = firstDayOfWeek - date.getDay();\n if (daysOffset > 0) {\n // If first day of week is > date, go 1 week back, to ensure resulting date is in the past.\n daysOffset -= TimeConstants.DaysInOneWeek;\n }\n return addDays(date, daysOffset);\n}\n\n/**\n * Gets the date for the last day of the week based on the given date assuming\n * the specified first day of the week.\n * @param date - The date to find the beginning of the week date for.\n * @returns A new date object representing the first day of the week containing the input date.\n */\nexport function getEndDateOfWeek(date: Date, firstDayOfWeek: DayOfWeek): Date {\n const lastDayOfWeek = firstDayOfWeek - 1 >= 0 ? firstDayOfWeek - 1 : TimeConstants.DaysInOneWeek - 1;\n let daysOffset = lastDayOfWeek - date.getDay();\n if (daysOffset < 0) {\n // If last day of week is < date, go 1 week forward, to ensure resulting date is in the future.\n daysOffset += TimeConstants.DaysInOneWeek;\n }\n return addDays(date, daysOffset);\n}\n\n/**\n * Gets a new date with the time portion zeroed out, i.e., set to midnight\n * @param date - The origin date\n * @returns A new date with the time set to midnight\n */\nfunction getDatePart(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate());\n}\n\n/**\n * Helper function to assist in date comparisons\n */\nexport function getDatePartHashValue(date: Date): number {\n // Generate date hash value created as sum of Date (up to 31 = 5 bits), Month (up to 11 = 4 bits) and Year.\n // eslint-disable-next-line no-bitwise\n return date.getDate() + (date.getMonth() << 5) + (date.getFullYear() << 9);\n}\n\n/**\n * Helper function for `getWeekNumber`.\n * Returns week number for a date.\n * @param date - current selected date.\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @param numberOfFullDays - week settings.\n * @returns The week's number in the year.\n */\nfunction getWeekOfYearFullDays(date: Date, firstDayOfWeek: DayOfWeek, numberOfFullDays: number): number {\n const dayOfYear = getDayOfYear(date) - 1;\n let num = date.getDay() - (dayOfYear % TimeConstants.DaysInOneWeek);\n\n const lastDayOfPrevYear = new Date(date.getFullYear() - 1, MonthOfYear.December, 31);\n const daysInYear = getDayOfYear(lastDayOfPrevYear) - 1;\n\n let num2 = (firstDayOfWeek - num + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n if (num2 !== 0 && num2 >= numberOfFullDays) {\n num2 -= TimeConstants.DaysInOneWeek;\n }\n\n let num3 = dayOfYear - num2;\n if (num3 < 0) {\n num -= daysInYear % TimeConstants.DaysInOneWeek;\n num2 = (firstDayOfWeek - num + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n if (num2 !== 0 && num2 + 1 >= numberOfFullDays) {\n num2 -= TimeConstants.DaysInOneWeek;\n }\n\n num3 = daysInYear - num2;\n }\n\n return Math.floor(num3 / TimeConstants.DaysInOneWeek + 1);\n}\n\n/**\n * Helper function for `getWeekNumber`.\n * Returns week number for a date.\n * @param date - current selected date.\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @returns The week's number in the year.\n */\nfunction getFirstDayWeekOfYear(date: Date, firstDayOfWeek: number): number {\n const num = getDayOfYear(date) - 1;\n const num2 = date.getDay() - (num % TimeConstants.DaysInOneWeek);\n const num3 = (num2 - firstDayOfWeek + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n\n return Math.floor((num + num3) / TimeConstants.DaysInOneWeek + 1);\n}\n\n/**\n * Helper function for `getWeekNumber`.\n * Returns adjusted week day number when `firstDayOfWeek` is other than Sunday.\n * For Week Day Number comparison checks\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @param dateWeekDay - shifts number forward to 1 week in case passed as true\n * @returns The day of week adjusted to `firstDayOfWeek`; e.g. when `firstDayOfWeek` is Monday (1),\n * Sunday becomes 7.\n */\nfunction adjustWeekDay(firstDayOfWeek: DayOfWeek, dateWeekDay: DayOfWeek): number {\n return firstDayOfWeek !== DayOfWeek.Sunday && dateWeekDay < firstDayOfWeek\n ? dateWeekDay + TimeConstants.DaysInOneWeek\n : dateWeekDay;\n}\n\n/**\n * Returns the day number for a date in a year:\n * the number of days since January 1st in the particular year.\n * @param date - A date to find the day number for.\n * @returns The day's number in the year.\n */\nfunction getDayOfYear(date: Date): number {\n const month = date.getMonth();\n const year = date.getFullYear();\n let daysUntilDate = 0;\n\n for (let i = 0; i < month; i++) {\n daysUntilDate += daysInMonth(i + 1, year);\n }\n\n daysUntilDate += date.getDate();\n\n return daysUntilDate;\n}\n\n/**\n * Returns the number of days in the month\n * @param month - The month number to target (months 1-12).\n * @param year - The year to target.\n * @returns The number of days in the month.\n */\nfunction daysInMonth(month: number, year: number): number {\n return new Date(year, month, 0).getDate();\n}\n"],"names":["DateRangeType","DayOfWeek","FirstWeekOfYear","MonthOfYear","TimeConstants","addDays","date","days","result","Date","getTime","setDate","getDate","addWeeks","weeks","DaysInOneWeek","addMonths","months","newMonth","getMonth","setMonth","MonthInOneYear","addYears","years","setFullYear","getFullYear","getMonthStart","getMonthEnd","getYearStart","getYearEnd","month","compareDates","date1","date2","compareDatePart","getDatePartHashValue","getDateRangeArray","dateRangeType","firstDayOfWeek","workWeekDays","daysToSelectInDayView","datesArray","startDate","endDate","Monday","Tuesday","Wednesday","Thursday","Friday","Day","Week","WorkWeek","getStartDateOfWeek","getDatePart","Month","Error","nextDate","push","indexOf","getDay","isInDateRangeArray","dateRange","dateInRange","getWeekNumbersInMonth","weeksInMonth","firstWeekOfYear","navigatedDate","selectedYear","selectedMonth","dayOfMonth","fistDayOfMonth","endOfFirstWeek","adjustWeekDay","endOfWeekRange","weeksArray","i","getWeekNumber","fourDayWeek","FirstFullWeek","getWeekOfYearFullDays","FirstFourDayWeek","getFirstDayWeekOfYear","daysOffset","getEndDateOfWeek","lastDayOfWeek","numberOfFullDays","dayOfYear","getDayOfYear","num","lastDayOfPrevYear","December","daysInYear","num2","num3","Math","floor","dateWeekDay","Sunday","year","daysUntilDate","daysInMonth"],"mappings":";;;;;;;;;;;WAQgBK;eAAAA;;aAwBAW;;;YAZAH;;;IAqCAS,QAAAA;;;IAyFAY,eAAAA;;;gBArBAH;;;IAsNAI,oBAAAA;;;qBAlLAC;eAAAA;;IA4JA+C,gBAAAA;;;eAtOAxD;;;iBATAD;;;sBAgOA0B;;;iBAtBAwB;;;IAnCAb,qBAAAA;;;IA5IAlC,UAAAA;;;IATAD,YAAAA;;;IAoIAgC,kBAAAA;;;YA/GAxC;;;;2BArHsE,kBAAe;AAQ9F,iBAAiBd,IAAU,EAAEC,IAAY;IAC9C,MAAMC,SAAS,IAAIC,KAAKH,KAAKI,OAAO;IACpCF,OAAOG,OAAO,CAACH,OAAOI,OAAO,KAAKL;IAClC,OAAOC;AACT;AAQO,SAASK,SAASP,IAAU,EAAEQ,KAAa;IAChD,OAAOT,QAAQC,MAAMQ,QAAQV,wBAAAA,CAAcW,aAAa;AAC1D;AAUO,SAASC,UAAUV,IAAU,EAAEW,MAAc;IAClD,IAAIT,SAAS,IAAIC,KAAKH,KAAKI,OAAO;IAClC,MAAMQ,WAAWV,OAAOW,QAAQ,KAAKF;IACrCT,OAAOY,QAAQ,CAACF;IAEhB,qHAAqH;IACrH,oDAAoD;IACpD,qFAAqF;IACrF,IACEV,OAAOW,QAAQ,OACd,CAACD,WAAWd,wBAAAA,CAAciB,cAAc,GAAIjB,wBAAAA,CAAciB,cAAa,AAAbA,IAAkBjB,wBAAAA,CAAciB,cAAc,EACzG;QACAb,SAASH,QAAQG,QAAQ,CAACA,OAAOI,OAAO;IAC1C;IACA,OAAOJ;AACT;AAUO,kBAAkBF,IAAU,EAAEiB,KAAa;IAChD,IAAIf,SAAS,IAAIC,KAAKH,KAAKI,OAAO;IAClCF,OAAOgB,WAAW,CAAClB,KAAKmB,WAAW,KAAKF;IAExC,qHAAqH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AM+E,OAAO5F,KAAKmB,WAAW;IAC7B,IAAI0E,gBAAgB;IAEpB,IAAK,IAAIxB,IAAI,GAAGA,IAAI7C,OAAO6C,IAAK;QAC9BwB,iBAAiBC,YAAYzB,IAAI,GAAGuB;IACtC;IAEAC,iBAAiB7F,KAAKM,OAAO;IAE7B,OAAOuF;AACT;AAEA;;;;;CAKC,GACD,SAASC,YAAYtE,KAAa,EAAEoE,IAAY;IAC9C,OAAO,IAAIzF,KAAKyF,MAAMpE,OAAO,GAAGlB,OAAO;AACzC"}
@@ -64,4 +64,4 @@ _export(exports, {
64
64
  return _dateMath.setMonth;
65
65
  }
66
66
  });
67
- const _dateMath = require("./dateMath");
67
+ const _dateMath = require("./dateMath.cjs");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/dateMath/index.ts"],"sourcesContent":["export {\n addDays,\n addMonths,\n addWeeks,\n addYears,\n compareDatePart,\n compareDates,\n getDatePartHashValue,\n getDateRangeArray,\n getEndDateOfWeek,\n getMonthEnd,\n getMonthStart,\n getStartDateOfWeek,\n getWeekNumber,\n getWeekNumbersInMonth,\n getYearEnd,\n getYearStart,\n isInDateRangeArray,\n setMonth,\n} from './dateMath';\n"],"names":["addDays","addMonths","addWeeks","addYears","compareDatePart","compareDates","getDatePartHashValue","getDateRangeArray","getEndDateOfWeek","getMonthEnd","getMonthStart","getStartDateOfWeek","getWeekNumber","getWeekNumbersInMonth","getYearEnd","getYearStart","isInDateRangeArray","setMonth"],"mappings":";;;;;;;;;;;IACEA,OAAO;;;;eACPC,mBAAS;;;eACTC,kBAAQ;;;eACRC,kBAAQ;;;eACRC,yBAAe;;;eACfC,sBAAY;;;eACZC,8BAAoB;;;eACpBC,2BAAiB;;;eACjBC,0BAAgB;;;eAChBC,qBAAW;;;eACXC,uBAAa;;;eACbC,4BAAkB;;;eAClBC,uBAAa;;;eACbC,+BAAqB;;;eACrBC,oBAAU;;;eACVC,sBAAY;;;eACZC,4BAAkB;;;eAClBC,kBAAQ;;;0BACH,aAAa"}
1
+ {"version":3,"sources":["../src/utils/dateMath/index.ts"],"sourcesContent":["export {\n addDays,\n addMonths,\n addWeeks,\n addYears,\n compareDatePart,\n compareDates,\n getDatePartHashValue,\n getDateRangeArray,\n getEndDateOfWeek,\n getMonthEnd,\n getMonthStart,\n getStartDateOfWeek,\n getWeekNumber,\n getWeekNumbersInMonth,\n getYearEnd,\n getYearStart,\n isInDateRangeArray,\n setMonth,\n} from './dateMath';\n"],"names":["addDays","addMonths","addWeeks","addYears","compareDatePart","compareDates","getDatePartHashValue","getDateRangeArray","getEndDateOfWeek","getMonthEnd","getMonthStart","getStartDateOfWeek","getWeekNumber","getWeekNumbersInMonth","getYearEnd","getYearStart","isInDateRangeArray","setMonth"],"mappings":";;;;;;;;;;;IACEA,OAAO;;;;eACPC,mBAAS;;;eACTC,kBAAQ;;;eACRC,kBAAQ;;;eACRC,yBAAe;;;eACfC,sBAAY;;;eACZC,8BAAoB;;;eACpBC,2BAAiB;;;eACjBC,0BAAgB;;;eAChBC,qBAAW;;;eACXC,uBAAa;;;eACbC,4BAAkB;;;eAClBC,uBAAa;;;eACbC,+BAAqB;;;eACrBC,oBAAU;;;eACVC,sBAAY;;;eACZC,4BAAkB;;;eAClBC,kBAAQ;;;0BACH,gBAAa"}
@@ -13,13 +13,13 @@ _export(exports, {
13
13
  return _constants.DAYS_IN_WEEK;
14
14
  },
15
15
  DEFAULT_CALENDAR_STRINGS: function() {
16
- return _dateFormatting.DEFAULT_CALENDAR_STRINGS;
16
+ return _index.DEFAULT_CALENDAR_STRINGS;
17
17
  },
18
18
  DEFAULT_DATE_FORMATTING: function() {
19
- return _dateFormatting.DEFAULT_DATE_FORMATTING;
19
+ return _index.DEFAULT_DATE_FORMATTING;
20
20
  },
21
21
  DEFAULT_DATE_GRID_STRINGS: function() {
22
- return _dateFormatting.DEFAULT_DATE_GRID_STRINGS;
22
+ return _index.DEFAULT_DATE_GRID_STRINGS;
23
23
  },
24
24
  DURATION_1: function() {
25
25
  return _animations.DURATION_1;
@@ -82,93 +82,93 @@ _export(exports, {
82
82
  return _constants.TimeConstants;
83
83
  },
84
84
  addDays: function() {
85
- return _dateMath.addDays;
85
+ return _index2.addDays;
86
86
  },
87
87
  addMonths: function() {
88
- return _dateMath.addMonths;
88
+ return _index2.addMonths;
89
89
  },
90
90
  addWeeks: function() {
91
- return _dateMath.addWeeks;
91
+ return _index2.addWeeks;
92
92
  },
93
93
  addYears: function() {
94
- return _dateMath.addYears;
94
+ return _index2.addYears;
95
95
  },
96
96
  compareDatePart: function() {
97
- return _dateMath.compareDatePart;
97
+ return _index2.compareDatePart;
98
98
  },
99
99
  compareDates: function() {
100
- return _dateMath.compareDates;
100
+ return _index2.compareDates;
101
101
  },
102
102
  findAvailableDate: function() {
103
- return _dateGrid.findAvailableDate;
103
+ return _index1.findAvailableDate;
104
104
  },
105
105
  focusAsync: function() {
106
106
  return _focus.focusAsync;
107
107
  },
108
108
  formatDay: function() {
109
- return _dateFormatting.formatDay;
109
+ return _index.formatDay;
110
110
  },
111
111
  formatMonth: function() {
112
- return _dateFormatting.formatMonth;
112
+ return _index.formatMonth;
113
113
  },
114
114
  formatMonthDayYear: function() {
115
- return _dateFormatting.formatMonthDayYear;
115
+ return _index.formatMonthDayYear;
116
116
  },
117
117
  formatMonthYear: function() {
118
- return _dateFormatting.formatMonthYear;
118
+ return _index.formatMonthYear;
119
119
  },
120
120
  formatYear: function() {
121
- return _dateFormatting.formatYear;
121
+ return _index.formatYear;
122
122
  },
123
123
  getBoundedDateRange: function() {
124
- return _dateGrid.getBoundedDateRange;
124
+ return _index1.getBoundedDateRange;
125
125
  },
126
126
  getDatePartHashValue: function() {
127
- return _dateMath.getDatePartHashValue;
127
+ return _index2.getDatePartHashValue;
128
128
  },
129
129
  getDateRangeArray: function() {
130
- return _dateMath.getDateRangeArray;
130
+ return _index2.getDateRangeArray;
131
131
  },
132
132
  getDayGrid: function() {
133
- return _dateGrid.getDayGrid;
133
+ return _index1.getDayGrid;
134
134
  },
135
135
  getEndDateOfWeek: function() {
136
- return _dateMath.getEndDateOfWeek;
136
+ return _index2.getEndDateOfWeek;
137
137
  },
138
138
  getMonthEnd: function() {
139
- return _dateMath.getMonthEnd;
139
+ return _index2.getMonthEnd;
140
140
  },
141
141
  getMonthStart: function() {
142
- return _dateMath.getMonthStart;
142
+ return _index2.getMonthStart;
143
143
  },
144
144
  getStartDateOfWeek: function() {
145
- return _dateMath.getStartDateOfWeek;
145
+ return _index2.getStartDateOfWeek;
146
146
  },
147
147
  getWeekNumber: function() {
148
- return _dateMath.getWeekNumber;
148
+ return _index2.getWeekNumber;
149
149
  },
150
150
  getWeekNumbersInMonth: function() {
151
- return _dateMath.getWeekNumbersInMonth;
151
+ return _index2.getWeekNumbersInMonth;
152
152
  },
153
153
  getYearEnd: function() {
154
- return _dateMath.getYearEnd;
154
+ return _index2.getYearEnd;
155
155
  },
156
156
  getYearStart: function() {
157
- return _dateMath.getYearStart;
157
+ return _index2.getYearStart;
158
158
  },
159
159
  isInDateRangeArray: function() {
160
- return _dateMath.isInDateRangeArray;
160
+ return _index2.isInDateRangeArray;
161
161
  },
162
162
  isRestrictedDate: function() {
163
- return _dateGrid.isRestrictedDate;
163
+ return _index1.isRestrictedDate;
164
164
  },
165
165
  setMonth: function() {
166
- return _dateMath.setMonth;
166
+ return _index2.setMonth;
167
167
  }
168
168
  });
169
- const _animations = require("./animations");
170
- const _constants = require("./constants");
171
- const _dateFormatting = require("./dateFormatting");
172
- const _dateGrid = require("./dateGrid");
173
- const _dateMath = require("./dateMath");
174
- const _focus = require("./focus");
169
+ const _animations = require("./animations.cjs");
170
+ const _constants = require("./constants.cjs");
171
+ const _index = require("./dateFormatting/index.cjs");
172
+ const _index1 = require("./dateGrid/index.cjs");
173
+ const _index2 = require("./dateMath/index.cjs");
174
+ const _focus = require("./focus.cjs");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-deprecated -- Re-exporting deprecated animations for backwards compatibility */\nexport {\n DURATION_1,\n DURATION_2,\n DURATION_3,\n DURATION_4,\n EASING_FUNCTION_1,\n EASING_FUNCTION_2,\n FADE_IN,\n FADE_OUT,\n SLIDE_DOWN_IN20,\n SLIDE_DOWN_OUT20,\n SLIDE_LEFT_IN20,\n SLIDE_RIGHT_IN20,\n SLIDE_UP_IN20,\n SLIDE_UP_OUT20,\n TRANSITION_ROW_DISAPPEARANCE,\n} from './animations';\n/* eslint-enable @typescript-eslint/no-deprecated */\nexport { DAYS_IN_WEEK, DateRangeType, DayOfWeek, FirstWeekOfYear, MonthOfYear, TimeConstants } from './constants';\nexport type { CalendarStrings, DateFormatting, DateGridStrings } from './dateFormatting';\nexport {\n DEFAULT_CALENDAR_STRINGS,\n DEFAULT_DATE_FORMATTING,\n DEFAULT_DATE_GRID_STRINGS,\n formatDay,\n formatMonth,\n formatMonthDayYear,\n formatMonthYear,\n formatYear,\n} from './dateFormatting';\nexport type { AvailableDateOptions, Day, DayGridOptions, RestrictedDatesOptions } from './dateGrid';\nexport { findAvailableDate, getBoundedDateRange, getDayGrid, isRestrictedDate } from './dateGrid';\nexport {\n addDays,\n addMonths,\n addWeeks,\n addYears,\n compareDatePart,\n compareDates,\n getDatePartHashValue,\n getDateRangeArray,\n getEndDateOfWeek,\n getMonthEnd,\n getMonthStart,\n getStartDateOfWeek,\n getWeekNumber,\n getWeekNumbersInMonth,\n getYearEnd,\n getYearStart,\n isInDateRangeArray,\n setMonth,\n} from './dateMath';\nexport { focusAsync } from './focus';\n"],"names":["DURATION_1","DURATION_2","DURATION_3","DURATION_4","EASING_FUNCTION_1","EASING_FUNCTION_2","FADE_IN","FADE_OUT","SLIDE_DOWN_IN20","SLIDE_DOWN_OUT20","SLIDE_LEFT_IN20","SLIDE_RIGHT_IN20","SLIDE_UP_IN20","SLIDE_UP_OUT20","TRANSITION_ROW_DISAPPEARANCE","DAYS_IN_WEEK","DateRangeType","DayOfWeek","FirstWeekOfYear","MonthOfYear","TimeConstants","DEFAULT_CALENDAR_STRINGS","DEFAULT_DATE_FORMATTING","DEFAULT_DATE_GRID_STRINGS","formatDay","formatMonth","formatMonthDayYear","formatMonthYear","formatYear","findAvailableDate","getBoundedDateRange","getDayGrid","isRestrictedDate","addDays","addMonths","addWeeks","addYears","compareDatePart","compareDates","getDatePartHashValue","getDateRangeArray","getEndDateOfWeek","getMonthEnd","getMonthStart","getStartDateOfWeek","getWeekNumber","getWeekNumbersInMonth","getYearEnd","getYearStart","isInDateRangeArray","setMonth","focusAsync"],"mappings":"AAAA,qHAAqH,GACrH;;;;;;;;;;;;eAkBSe,uBAAY;;IAGnBM,wBAAwB;;;IACxBC,uBAAuB;;;;eACvBC,yCAAyB;;;eAtBzBvB,sBAAU;;;eACVC,sBAAU;;;eACVC,sBAAU;;;eACVC,sBAAU;;;eAcWa,wBAAa;;;eAAEC,oBAAS;;;eAb7Cb,6BAAiB;;qBACA;eAAjBC;;;eACAC,mBAAO;;;eACPC,oBAAQ;;;eAUuCW,0BAAe;;;eAAEC,sBAAW;;;eAT3EX,2BAAe;;;eACfC,4BAAgB;;;eAChBC,2BAAe;;oBACC;eAAhBC;;;eACAC,yBAAa;;;eACbC,0BAAc;;;eACdC,wCAA4B;;;eAGiDM,wBAAa;;;eAe1Fa,iBAAO;;;eACPC,mBAAS;;IACTC,QAAQ;;;;eACRC,kBAAQ;;;eACRC,yBAAe;;IACfC,YAAY;;;;eAPLT,2BAAiB;;cAqBP;eAAVsB;;;eA5BP3B,yBAAS;;;eACTC,2BAAW;;;eACXC,kCAAkB;;;eAClBC,+BAAe;;;eACfC,0BAAU;;;eAGgBE,6BAAmB;;wBAQzB;eAApBS;;IACAC,iBAAiB;;;cATwC;eAAVT;;;eAU/CU,0BAAgB;;eACL;eAAXC;;;eACAC,uBAAa;;;eACbC,4BAAkB;;;eAClBC,uBAAa;;;eACbC,+BAAqB;;cACX;eAAVC;;;eACAC,sBAAY;;;eACZC,4BAAkB;;;eAlByCjB,0BAAgB;;;eAmB3EkB,kBAAQ;;;4BAlCH,eAAe;2BAE8E,cAAc;gCAW3G,mBAAmB;0BAE2D,aAAa;0BAoB3F,aAAa;uBACO,UAAU"}
1
+ {"version":3,"sources":["../src/utils/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-deprecated -- Re-exporting deprecated animations for backwards compatibility */\nexport {\n DURATION_1,\n DURATION_2,\n DURATION_3,\n DURATION_4,\n EASING_FUNCTION_1,\n EASING_FUNCTION_2,\n FADE_IN,\n FADE_OUT,\n SLIDE_DOWN_IN20,\n SLIDE_DOWN_OUT20,\n SLIDE_LEFT_IN20,\n SLIDE_RIGHT_IN20,\n SLIDE_UP_IN20,\n SLIDE_UP_OUT20,\n TRANSITION_ROW_DISAPPEARANCE,\n} from './animations';\n/* eslint-enable @typescript-eslint/no-deprecated */\nexport { DAYS_IN_WEEK, DateRangeType, DayOfWeek, FirstWeekOfYear, MonthOfYear, TimeConstants } from './constants';\nexport type { CalendarStrings, DateFormatting, DateGridStrings } from './dateFormatting';\nexport {\n DEFAULT_CALENDAR_STRINGS,\n DEFAULT_DATE_FORMATTING,\n DEFAULT_DATE_GRID_STRINGS,\n formatDay,\n formatMonth,\n formatMonthDayYear,\n formatMonthYear,\n formatYear,\n} from './dateFormatting';\nexport type { AvailableDateOptions, Day, DayGridOptions, RestrictedDatesOptions } from './dateGrid';\nexport { findAvailableDate, getBoundedDateRange, getDayGrid, isRestrictedDate } from './dateGrid';\nexport {\n addDays,\n addMonths,\n addWeeks,\n addYears,\n compareDatePart,\n compareDates,\n getDatePartHashValue,\n getDateRangeArray,\n getEndDateOfWeek,\n getMonthEnd,\n getMonthStart,\n getStartDateOfWeek,\n getWeekNumber,\n getWeekNumbersInMonth,\n getYearEnd,\n getYearStart,\n isInDateRangeArray,\n setMonth,\n} from './dateMath';\nexport { focusAsync } from './focus';\n"],"names":["DURATION_1","DURATION_2","DURATION_3","DURATION_4","EASING_FUNCTION_1","EASING_FUNCTION_2","FADE_IN","FADE_OUT","SLIDE_DOWN_IN20","SLIDE_DOWN_OUT20","SLIDE_LEFT_IN20","SLIDE_RIGHT_IN20","SLIDE_UP_IN20","SLIDE_UP_OUT20","TRANSITION_ROW_DISAPPEARANCE","DAYS_IN_WEEK","DateRangeType","DayOfWeek","FirstWeekOfYear","MonthOfYear","TimeConstants","DEFAULT_CALENDAR_STRINGS","DEFAULT_DATE_FORMATTING","DEFAULT_DATE_GRID_STRINGS","formatDay","formatMonth","formatMonthDayYear","formatMonthYear","formatYear","findAvailableDate","getBoundedDateRange","getDayGrid","isRestrictedDate","addDays","addMonths","addWeeks","addYears","compareDatePart","compareDates","getDatePartHashValue","getDateRangeArray","getEndDateOfWeek","getMonthEnd","getMonthStart","getStartDateOfWeek","getWeekNumber","getWeekNumbersInMonth","getYearEnd","getYearStart","isInDateRangeArray","setMonth","focusAsync"],"mappings":"AAAA,qHAAqH,GACrH;;;;;;;;;;;;eAkBSe,uBAAY;;IAGnBM,wBAAwB;;;IACxBC,uBAAuB;;;;eACvBC,gCAAyB;;;eAtBzBvB,sBAAU;;;eACVC,sBAAU;;;eACVC,sBAAU;;;eACVC,sBAAU;;;eAcWa,wBAAa;;;eAAEC,oBAAS;;;eAb7Cb,6BAAiB;;qBACA;eAAjBC;;;eACAC,mBAAO;;;eACPC,oBAAQ;;;eAUuCW,0BAAe;;;eAAEC,sBAAW;;;eAT3EX,2BAAe;;;eACfC,4BAAgB;;;eAChBC,2BAAe;;oBACC;eAAhBC;;;eACAC,yBAAa;;;eACbC,0BAAc;;;eACdC,wCAA4B;;;eAGiDM,wBAAa;;;eAe1Fa,eAAO;;;eACPC,iBAAS;;IACTC,QAAQ;;;;eACRC,gBAAQ;;;eACRC,uBAAe;;IACfC,YAAY;;;;eAPLT,yBAAiB;;cAqBP;eAAVsB;;;eA5BP3B,gBAAS;;;eACTC,kBAAW;;;eACXC,yBAAkB;;;eAClBC,sBAAe;;;eACfC,iBAAU;;;eAGgBE,2BAAmB;;wBAQzB;eAApBS;;IACAC,iBAAiB;;;cATwC;eAAVT;;;eAU/CU,wBAAgB;;eACL;eAAXC;;;eACAC,qBAAa;;;eACbC,0BAAkB;;;eAClBC,qBAAa;;;eACbC,6BAAqB;;cACX;eAAVC;;;eACAC,oBAAY;;;eACZC,0BAAkB;;;eAlByCjB,wBAAgB;;;eAmB3EkB,gBAAQ;;;4BAlCH,kBAAe;2BAE8E,iBAAc;uBAW3G,4BAAmB;wBAE2D,sBAAa;wBAoB3F,sBAAa;uBACO,aAAU"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@fluentui/react-calendar-compat",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Calendar compat component for Fluent UI v9",
5
- "main": "lib-commonjs/index.js",
5
+ "main": "lib-commonjs/index.cjs",
6
6
  "module": "lib/index.js",
7
7
  "typings": "./dist/index.d.ts",
8
8
  "sideEffects": false,
@@ -12,15 +12,15 @@
12
12
  },
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@fluentui/keyboard-keys": "^9.0.8",
15
+ "@fluentui/keyboard-keys": "^9.0.9",
16
16
  "@fluentui/react-icons": "^2.0.245",
17
- "@fluentui/react-jsx-runtime": "^9.4.4",
18
- "@fluentui/react-motion": "^9.16.1",
19
- "@fluentui/react-motion-components-preview": "^0.15.6",
20
- "@fluentui/react-shared-contexts": "^9.26.2",
21
- "@fluentui/react-tabster": "^9.26.16",
22
- "@fluentui/react-theme": "^9.2.1",
23
- "@fluentui/react-utilities": "^9.26.5",
17
+ "@fluentui/react-jsx-runtime": "^9.4.5",
18
+ "@fluentui/react-motion": "^9.16.2",
19
+ "@fluentui/react-motion-components-preview": "^0.15.7",
20
+ "@fluentui/react-shared-contexts": "^9.26.3",
21
+ "@fluentui/react-tabster": "^9.26.17",
22
+ "@fluentui/react-theme": "^9.2.2",
23
+ "@fluentui/react-utilities": "^9.26.6",
24
24
  "@griffel/react": "^1.5.32",
25
25
  "@swc/helpers": "^0.5.1"
26
26
  },
@@ -32,10 +32,14 @@
32
32
  },
33
33
  "exports": {
34
34
  ".": {
35
- "types": "./dist/index.d.ts",
36
- "node": "./lib-commonjs/index.js",
37
- "import": "./lib/index.js",
38
- "require": "./lib-commonjs/index.js"
35
+ "import": {
36
+ "types": "./dist/index.d.ts",
37
+ "default": "./lib/index.js"
38
+ },
39
+ "require": {
40
+ "types": "./dist/index.d.cts",
41
+ "default": "./lib-commonjs/index.cjs"
42
+ }
39
43
  },
40
44
  "./package.json": "./package.json"
41
45
  },
@@ -48,7 +52,9 @@
48
52
  "files": [
49
53
  "*.md",
50
54
  "dist/*.d.ts",
55
+ "dist/*.d.cts",
51
56
  "lib",
52
57
  "lib-commonjs"
53
- ]
58
+ ],
59
+ "type": "module"
54
60
  }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useCalendarStyles.styles.js"],"sourcesContent":["'use client';\nimport { tokens } from '@fluentui/react-theme';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\n/**\n * @internal\n */ export const calendarClassNames = {\n root: 'fui-Calendar',\n divider: 'fui-Calendar__divider',\n goTodayButton: 'fui-Calendar__goTodayButton',\n monthPickerWrapper: 'fui-Calendar__monthPickerWrapper',\n liveRegion: 'fui-Calendar__liveRegion'\n};\nconst useRootStyles = makeStyles({\n base: {\n display: 'flex',\n width: '220px'\n },\n normalize: {\n boxShadow: 'none',\n boxSizing: 'border-box',\n margin: '0',\n padding: '0'\n },\n monthPickerNotVisible: {\n flexDirection: 'column'\n },\n dayAndMonthPickersVisible: {\n width: '440px'\n },\n dayPickerVisibleAndWeekNumbersShown: {\n width: '250px'\n },\n dayAndMonthPickersVisibleAndWeekNumbersShown: {\n width: '470px'\n }\n});\nconst useDividerStyles = makeStyles({\n base: {\n borderRight: `1px solid ${tokens.colorNeutralStroke2}`,\n top: 0\n }\n});\nconst useMonthPickerWrapperStyles = makeStyles({\n base: {\n display: 'flex',\n flexDirection: 'column'\n }\n});\nconst useGoTodayButtonStyles = makeStyles({\n base: {\n alignSelf: 'flex-end',\n backgroundColor: tokens.colorTransparentBackground,\n ...shorthands.borderStyle('none'),\n bottom: 0,\n boxSizing: 'content-box',\n color: tokens.colorNeutralForeground1,\n fontFamily: 'inherit',\n fontSize: tokens.fontSizeBase200,\n height: '30px',\n lineHeight: '30px',\n marginRight: '16px',\n marginTop: '3px',\n overflow: 'visible',\n padding: '0 4px',\n '& div': {\n fontSize: tokens.fontSizeBase200\n },\n '&:hover': {\n backgroundColor: tokens.colorTransparentBackground,\n color: tokens.colorBrandForeground1,\n cursor: 'pointer',\n '@media (forced-colors: active)': {\n outline: tokens.strokeWidthThin,\n borderRadius: tokens.borderRadiusSmall\n }\n },\n '&:hover:active': {\n color: tokens.colorBrandForeground2\n },\n '&:disabled': {\n color: tokens.colorNeutralForegroundDisabled,\n pointerEvents: 'none'\n }\n }\n});\nconst useLiveRegionStyles = makeStyles({\n base: {\n border: 'none',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n width: '1px'\n }\n});\n/**\n * Apply styling to the Calendar slots based on the state\n *\n * @internal\n */ export const useCalendarStyles_unstable = (props)=>{\n 'use no memo'; // justified: compiler would optimize useCalendarStyles_unstable — manual opt-out to preserve runtime behavior\n const rootStyles = useRootStyles();\n const dividerStyles = useDividerStyles();\n const monthPickerWrapperStyles = useMonthPickerWrapperStyles();\n const goTodayButtonStyles = useGoTodayButtonStyles();\n const liveRegionStyles = useLiveRegionStyles();\n const { className, isDayPickerVisible, isMonthPickerVisible, showWeekNumbers } = props;\n return {\n root: mergeClasses(calendarClassNames.root, rootStyles.base, rootStyles.normalize, !isMonthPickerVisible && rootStyles.monthPickerNotVisible, isDayPickerVisible && isMonthPickerVisible && !showWeekNumbers && rootStyles.dayAndMonthPickersVisible, isDayPickerVisible && !isMonthPickerVisible && showWeekNumbers && rootStyles.dayPickerVisibleAndWeekNumbersShown, isDayPickerVisible && isMonthPickerVisible && showWeekNumbers && rootStyles.dayAndMonthPickersVisibleAndWeekNumbersShown, className),\n divider: mergeClasses(calendarClassNames.divider, dividerStyles.base),\n monthPickerWrapper: mergeClasses(calendarClassNames.monthPickerWrapper, monthPickerWrapperStyles.base),\n goTodayButton: mergeClasses(calendarClassNames.goTodayButton, goTodayButtonStyles.base),\n liveRegion: mergeClasses(calendarClassNames.liveRegion, liveRegionStyles.base)\n };\n};\n"],"names":["tokens","__styles","mergeClasses","shorthands","calendarClassNames","root","divider","goTodayButton","monthPickerWrapper","liveRegion","useRootStyles","base","mc9l5x","a9b677","normalize","E5pizo","B7ck84d","jrapky","Frg6f3","t21cq0","B6of3ja","B74szlk","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","monthPickerNotVisible","Beiy3e4","dayAndMonthPickersVisible","dayPickerVisibleAndWeekNumbersShown","dayAndMonthPickersVisibleAndWeekNumbersShown","d","p","useDividerStyles","h3c5rm","vrafjx","Bekrc4i","u1mtju","Bhzewxz","useMonthPickerWrapperStyles","useGoTodayButtonStyles","qb2dma","De3pzq","icvyot","oivjwe","wvpqe5","B5kzvoi","sj55zd","Bahqtrf","Be2twd7","Bqenvij","Bg96gwp","B68tc82","Bmxbyg5","Bpg54ce","seuwu7","Jwef8y","Bi91k9c","eoavqd","Bv6y5q5","uq1ffc","Bokaozi","Bfrni1f","Bkzqrjd","hu2duy","n9pfp1","dfw8yp","qugvs6","B2d53fq","Dyrjrp","Be90el1","h","m","useLiveRegionStyles","Bgfg5da","B9xav0g","Bn0qgzm","B4g9neb","zhjwy3","ibv6hh","i8vvqc","g2u3we","B4j52fo","irswps","qhf8xq","useCalendarStyles_unstable","props","rootStyles","dividerStyles","monthPickerWrapperStyles","goTodayButtonStyles","liveRegionStyles","className","isDayPickerVisible","isMonthPickerVisible","showWeekNumbers"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAKKI,kBAAkB;;;8BA+FQ;eAA1BkF;;;uBAlGoC,gBAAgB;AAG1D,2BAA2B;IAClCjF,IAAI,EAAE,cAAc;I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,MAAEL,mBAAY,EAACE,kBAAkB,CAACG,aAAa,EAAEoF,mBAAmB,CAAChF,IAAI,CAAC;QACvFF,UAAU,MAAEP,mBAAY,EAACE,kBAAkB,CAACK,UAAU,EAAEmF,gBAAgB,CAACjF,IAAI;IACjF,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useCalendarDayStyles.styles.js"],"sourcesContent":["'use client';\nimport { tokens } from '@fluentui/react-theme';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\n/**\n * @internal\n */ export const calendarDayClassNames = {\n root: 'fui-CalendarDay',\n header: 'fui-CalendarDay__header',\n monthAndYear: 'fui-CalendarDay__monthAndYear',\n monthComponents: 'fui-CalendarDay__monthComponents',\n headerIconButton: 'fui-CalendarDay__headerIconButton',\n disabledStyle: 'fui-CalendarDay__disabledStyle'\n};\nconst useRootStyles = makeStyles({\n base: {\n boxSizing: 'content-box',\n padding: '12px',\n width: '196px'\n },\n normalize: {\n boxShadow: 'none',\n boxSizing: 'border-box',\n margin: '0',\n padding: '0'\n },\n showWeekNumbers: {\n width: '226px'\n }\n});\nconst useHeaderStyles = makeStyles({\n base: {\n display: 'inline-flex',\n height: '28px',\n lineHeight: '44px',\n position: 'relative',\n width: '100%'\n }\n});\nconst useMonthAndYearStyles = makeStyles({\n base: {\n alignItems: 'center',\n backgroundColor: tokens.colorTransparentBackground,\n ...shorthands.borderStyle('none'),\n borderRadius: tokens.borderRadiusMedium,\n color: tokens.colorNeutralForeground1,\n display: 'inline-block',\n flexGrow: 1,\n fontFamily: 'inherit',\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightSemibold,\n lineHeight: '28px',\n overflow: 'hidden',\n padding: '0 4px 0 10px',\n textAlign: 'left',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n },\n headerIsClickable: {\n '&:hover': {\n backgroundColor: tokens.colorBrandBackgroundInvertedHover,\n color: tokens.colorBrandForegroundOnLightHover,\n cursor: 'pointer',\n outline: `1px solid ${tokens.colorTransparentStroke}`\n },\n '&:hover:active': {\n backgroundColor: tokens.colorBrandBackgroundInvertedPressed,\n color: tokens.colorBrandForegroundOnLightPressed,\n cursor: 'pointer',\n outline: `1px solid ${tokens.colorTransparentStroke}`\n }\n }\n});\nconst useMonthComponentsStyles = makeStyles({\n base: {\n alignSelf: 'flex-end',\n display: 'inline-flex'\n }\n});\nconst useHeaderIconButtonStyles = makeStyles({\n base: {\n backgroundColor: tokens.colorTransparentBackground,\n ...shorthands.borderStyle('none'),\n borderRadius: tokens.borderRadiusMedium,\n color: tokens.colorNeutralForeground3,\n display: 'block',\n fontFamily: 'inherit',\n fontSize: tokens.fontSizeBase200,\n height: '28px',\n lineHeight: '28px',\n overflow: 'visible',\n padding: '0',\n position: 'relative',\n textAlign: 'center',\n width: '28px',\n '&:hover': {\n backgroundColor: tokens.colorBrandBackgroundInvertedHover,\n color: tokens.colorBrandForegroundOnLightHover,\n cursor: 'pointer',\n outline: `1px solid ${tokens.colorTransparentStroke}`\n },\n '&:hover:active': {\n backgroundColor: tokens.colorBrandBackgroundInvertedPressed,\n color: tokens.colorBrandForegroundOnLightPressed\n }\n }\n});\nconst useDisabledStyleStyles = makeStyles({\n base: {\n '&, &:disabled, & button': {\n color: tokens.colorNeutralForegroundDisabled,\n pointerEvents: 'none',\n // add this explicitly for aria-disabled buttons that don't get default forced-colors disabled styles\n '@media (forced-colors: active)': {\n color: 'GrayText'\n }\n }\n }\n});\n/**\n * Apply styling to the CalendarDay slots based on the state\n *\n * @internal\n */ export const useCalendarDayStyles_unstable = (props)=>{\n 'use no memo'; // justified: compiler would optimize useCalendarDayStyles_unstable — manual opt-out to preserve runtime behavior\n const rootStyles = useRootStyles();\n const headerStyles = useHeaderStyles();\n const monthAndYearStyles = useMonthAndYearStyles();\n const monthComponentsStyles = useMonthComponentsStyles();\n const headerIconButtonStyles = useHeaderIconButtonStyles();\n const disabledStyleStyles = useDisabledStyleStyles();\n const { className, headerIsClickable, showWeekNumbers } = props;\n return {\n root: mergeClasses(calendarDayClassNames.root, rootStyles.normalize, rootStyles.base, showWeekNumbers && rootStyles.showWeekNumbers, className),\n header: mergeClasses(calendarDayClassNames.header, headerStyles.base),\n monthAndYear: mergeClasses(calendarDayClassNames.monthAndYear, monthAndYearStyles.base, headerIsClickable && monthAndYearStyles.headerIsClickable),\n monthComponents: mergeClasses(calendarDayClassNames.monthComponents, monthComponentsStyles.base),\n headerIconButton: mergeClasses(calendarDayClassNames.headerIconButton, headerIconButtonStyles.base),\n disabledStyle: mergeClasses(calendarDayClassNames.disabledStyle, disabledStyleStyles.base)\n };\n};\n"],"names":["tokens","__styles","mergeClasses","shorthands","calendarDayClassNames","root","header","monthAndYear","monthComponents","headerIconButton","disabledStyle","useRootStyles","base","B7ck84d","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","a9b677","normalize","E5pizo","jrapky","Frg6f3","t21cq0","B6of3ja","B74szlk","showWeekNumbers","d","p","useHeaderStyles","mc9l5x","Bqenvij","Bg96gwp","qhf8xq","useMonthAndYearStyles","Bt984gj","De3pzq","icvyot","vrafjx","oivjwe","wvpqe5","Beyfa6y","Bbmb7ep","Btl43ni","B7oj6ja","Dimara","sj55zd","Bh6795r","Bahqtrf","Be2twd7","Bhrd7zp","B68tc82","Bmxbyg5","Bpg54ce","fsow6f","ygn44y","Huce71","headerIsClickable","Jwef8y","Bi91k9c","eoavqd","pugfm4","ukgb2i","Dwtyhm","Biisq0s","iro3zm","B2d53fq","c3iz72","mghro0","Bx68yb","syojd9","E5hylx","h","useMonthComponentsStyles","qb2dma","useHeaderIconButtonStyles","useDisabledStyleStyles","Bg33ivm","t69wg0","Bnh7jwd","m","useCalendarDayStyles_unstable","props","rootStyles","headerStyles","monthAndYearStyles","monthComponentsStyles","headerIconButtonStyles","disabledStyleStyles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAKKI,qBAAqB;;;iCAqHQ;eAA7B8E;;;uBAxHoC,gBAAgB;AAG1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