@fluentui/react-datepicker-compat 0.3.6 → 0.3.7

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 (173) hide show
  1. package/CHANGELOG.json +88 -1
  2. package/CHANGELOG.md +23 -2
  3. package/lib/components/Calendar/Calendar.js +9 -7
  4. package/lib/components/Calendar/Calendar.js.map +1 -1
  5. package/lib/components/Calendar/useCalendarStyles.styles.js.map +1 -1
  6. package/lib/components/CalendarDay/CalendarDay.js +8 -11
  7. package/lib/components/CalendarDay/CalendarDay.js.map +1 -1
  8. package/lib/components/CalendarDay/useCalendarDayStyles.styles.js.map +1 -1
  9. package/lib/components/CalendarDayGrid/CalendarDayGrid.js +8 -10
  10. package/lib/components/CalendarDayGrid/CalendarDayGrid.js.map +1 -1
  11. package/lib/components/CalendarDayGrid/CalendarGridDayCell.js +8 -5
  12. package/lib/components/CalendarDayGrid/CalendarGridDayCell.js.map +1 -1
  13. package/lib/components/CalendarDayGrid/CalendarGridRow.js +1 -1
  14. package/lib/components/CalendarDayGrid/CalendarGridRow.js.map +1 -1
  15. package/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js +1 -1
  16. package/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js.map +1 -1
  17. package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.styles.js.map +1 -1
  18. package/lib/components/CalendarDayGrid/useWeekCornerStyles.styles.js.map +1 -1
  19. package/lib/components/CalendarDayGrid/useWeeks.js +4 -3
  20. package/lib/components/CalendarDayGrid/useWeeks.js.map +1 -1
  21. package/lib/components/CalendarMonth/CalendarMonth.js +10 -8
  22. package/lib/components/CalendarMonth/CalendarMonth.js.map +1 -1
  23. package/lib/components/CalendarMonth/useCalendarMonthStyles.js.map +1 -1
  24. package/lib/components/CalendarPicker/useCalendarPickerStyles.styles.js.map +1 -1
  25. package/lib/components/CalendarYear/CalendarYear.js +38 -39
  26. package/lib/components/CalendarYear/CalendarYear.js.map +1 -1
  27. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  28. package/lib/components/DatePicker/renderDatePicker.js +15 -6
  29. package/lib/components/DatePicker/renderDatePicker.js.map +1 -1
  30. package/lib/components/DatePicker/useDatePicker.js +18 -13
  31. package/lib/components/DatePicker/useDatePicker.js.map +1 -1
  32. package/lib/components/DatePicker/useDatePickerStyles.styles.js.map +1 -1
  33. package/lib/utils/dateGrid/findAvailableDate.js +1 -1
  34. package/lib/utils/dateGrid/findAvailableDate.js.map +1 -1
  35. package/lib/utils/dateGrid/getBoundedDateRange.js.map +1 -1
  36. package/lib/utils/dateGrid/getDateRangeTypeToUse.js.map +1 -1
  37. package/lib/utils/dateGrid/getDayGrid.js +3 -2
  38. package/lib/utils/dateGrid/getDayGrid.js.map +1 -1
  39. package/lib/utils/dateGrid/isAfterMaxDate.js +1 -1
  40. package/lib/utils/dateGrid/isAfterMaxDate.js.map +1 -1
  41. package/lib/utils/dateGrid/isBeforeMinDate.js +1 -1
  42. package/lib/utils/dateGrid/isBeforeMinDate.js.map +1 -1
  43. package/lib/utils/dateGrid/isContiguous.js.map +1 -1
  44. package/lib/utils/dateGrid/isRestrictedDate.js +1 -1
  45. package/lib/utils/dateGrid/isRestrictedDate.js.map +1 -1
  46. package/lib/utils/dateMath/dateMath.js.map +1 -1
  47. package/lib/utils/dom.js.map +1 -1
  48. package/lib/utils/focus.js.map +1 -1
  49. package/lib/utils/usePopupPositioning.js +2 -2
  50. package/lib/utils/usePopupPositioning.js.map +1 -1
  51. package/lib-commonjs/Calendar.js +2 -2
  52. package/lib-commonjs/Calendar.js.map +1 -1
  53. package/lib-commonjs/CalendarDay.js +2 -2
  54. package/lib-commonjs/CalendarDay.js.map +1 -1
  55. package/lib-commonjs/CalendarDayGrid.js +2 -2
  56. package/lib-commonjs/CalendarDayGrid.js.map +1 -1
  57. package/lib-commonjs/CalendarMonth.js +2 -2
  58. package/lib-commonjs/CalendarMonth.js.map +1 -1
  59. package/lib-commonjs/CalendarPicker.js +2 -2
  60. package/lib-commonjs/CalendarPicker.js.map +1 -1
  61. package/lib-commonjs/CalendarYear.js +2 -2
  62. package/lib-commonjs/CalendarYear.js.map +1 -1
  63. package/lib-commonjs/DatePicker.js +2 -2
  64. package/lib-commonjs/DatePicker.js.map +1 -1
  65. package/lib-commonjs/components/Calendar/Calendar.js +32 -28
  66. package/lib-commonjs/components/Calendar/Calendar.js.map +1 -1
  67. package/lib-commonjs/components/Calendar/Calendar.types.js +5 -3
  68. package/lib-commonjs/components/Calendar/Calendar.types.js.map +1 -1
  69. package/lib-commonjs/components/Calendar/defaults.js +3 -1
  70. package/lib-commonjs/components/Calendar/defaults.js.map +1 -1
  71. package/lib-commonjs/components/Calendar/index.js +7 -5
  72. package/lib-commonjs/components/Calendar/index.js.map +1 -1
  73. package/lib-commonjs/components/Calendar/useCalendarStyles.styles.js +12 -8
  74. package/lib-commonjs/components/Calendar/useCalendarStyles.styles.js.map +1 -1
  75. package/lib-commonjs/components/CalendarDay/CalendarDay.js +25 -26
  76. package/lib-commonjs/components/CalendarDay/CalendarDay.js.map +1 -1
  77. package/lib-commonjs/components/CalendarDay/CalendarDay.types.js +2 -2
  78. package/lib-commonjs/components/CalendarDay/CalendarDay.types.js.map +1 -1
  79. package/lib-commonjs/components/CalendarDay/index.js +4 -4
  80. package/lib-commonjs/components/CalendarDay/index.js.map +1 -1
  81. package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.styles.js +13 -9
  82. package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.styles.js.map +1 -1
  83. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.js +27 -27
  84. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.js.map +1 -1
  85. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.types.js +2 -2
  86. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.types.js.map +1 -1
  87. package/lib-commonjs/components/CalendarDayGrid/CalendarGridDayCell.js +29 -24
  88. package/lib-commonjs/components/CalendarDayGrid/CalendarGridDayCell.js.map +1 -1
  89. package/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js +8 -6
  90. package/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js.map +1 -1
  91. package/lib-commonjs/components/CalendarDayGrid/CalendarMonthHeaderRow.js +6 -4
  92. package/lib-commonjs/components/CalendarDayGrid/CalendarMonthHeaderRow.js.map +1 -1
  93. package/lib-commonjs/components/CalendarDayGrid/index.js +10 -6
  94. package/lib-commonjs/components/CalendarDayGrid/index.js.map +1 -1
  95. package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.styles.js +29 -23
  96. package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.styles.js.map +1 -1
  97. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.styles.js +9 -5
  98. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.styles.js.map +1 -1
  99. package/lib-commonjs/components/CalendarDayGrid/useWeeks.js +9 -6
  100. package/lib-commonjs/components/CalendarDayGrid/useWeeks.js.map +1 -1
  101. package/lib-commonjs/components/CalendarMonth/CalendarMonth.js +24 -21
  102. package/lib-commonjs/components/CalendarMonth/CalendarMonth.js.map +1 -1
  103. package/lib-commonjs/components/CalendarMonth/CalendarMonth.types.js +2 -2
  104. package/lib-commonjs/components/CalendarMonth/CalendarMonth.types.js.map +1 -1
  105. package/lib-commonjs/components/CalendarMonth/index.js +4 -4
  106. package/lib-commonjs/components/CalendarMonth/index.js.map +1 -1
  107. package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.js +5 -3
  108. package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.js.map +1 -1
  109. package/lib-commonjs/components/CalendarPicker/index.js +3 -3
  110. package/lib-commonjs/components/CalendarPicker/index.js.map +1 -1
  111. package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.styles.js +20 -16
  112. package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.styles.js.map +1 -1
  113. package/lib-commonjs/components/CalendarYear/CalendarYear.js +60 -59
  114. package/lib-commonjs/components/CalendarYear/CalendarYear.js.map +1 -1
  115. package/lib-commonjs/components/CalendarYear/CalendarYear.types.js +2 -2
  116. package/lib-commonjs/components/CalendarYear/CalendarYear.types.js.map +1 -1
  117. package/lib-commonjs/components/CalendarYear/index.js +4 -4
  118. package/lib-commonjs/components/CalendarYear/index.js.map +1 -1
  119. package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.styles.js +5 -3
  120. package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.styles.js.map +1 -1
  121. package/lib-commonjs/components/DatePicker/DatePicker.js +7 -5
  122. package/lib-commonjs/components/DatePicker/DatePicker.js.map +1 -1
  123. package/lib-commonjs/components/DatePicker/defaults.js +6 -2
  124. package/lib-commonjs/components/DatePicker/defaults.js.map +1 -1
  125. package/lib-commonjs/components/DatePicker/index.js +7 -7
  126. package/lib-commonjs/components/DatePicker/index.js.map +1 -1
  127. package/lib-commonjs/components/DatePicker/renderDatePicker.js +22 -12
  128. package/lib-commonjs/components/DatePicker/renderDatePicker.js.map +1 -1
  129. package/lib-commonjs/components/DatePicker/useDatePicker.js +59 -52
  130. package/lib-commonjs/components/DatePicker/useDatePicker.js.map +1 -1
  131. package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.js +9 -5
  132. package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.js.map +1 -1
  133. package/lib-commonjs/index.js +98 -34
  134. package/lib-commonjs/index.js.map +1 -1
  135. package/lib-commonjs/utils/animations.js +45 -15
  136. package/lib-commonjs/utils/animations.js.map +1 -1
  137. package/lib-commonjs/utils/constants.js +18 -6
  138. package/lib-commonjs/utils/constants.js.map +1 -1
  139. package/lib-commonjs/utils/dateFormatting/dateFormatting.defaults.js +24 -8
  140. package/lib-commonjs/utils/dateFormatting/dateFormatting.defaults.js.map +1 -1
  141. package/lib-commonjs/utils/dateFormatting/index.js +3 -3
  142. package/lib-commonjs/utils/dateFormatting/index.js.map +1 -1
  143. package/lib-commonjs/utils/dateGrid/findAvailableDate.js +4 -2
  144. package/lib-commonjs/utils/dateGrid/findAvailableDate.js.map +1 -1
  145. package/lib-commonjs/utils/dateGrid/getBoundedDateRange.js +3 -1
  146. package/lib-commonjs/utils/dateGrid/getBoundedDateRange.js.map +1 -1
  147. package/lib-commonjs/utils/dateGrid/getDateRangeTypeToUse.js +3 -1
  148. package/lib-commonjs/utils/dateGrid/getDateRangeTypeToUse.js.map +1 -1
  149. package/lib-commonjs/utils/dateGrid/getDayGrid.js +6 -3
  150. package/lib-commonjs/utils/dateGrid/getDayGrid.js.map +1 -1
  151. package/lib-commonjs/utils/dateGrid/index.js +6 -6
  152. package/lib-commonjs/utils/dateGrid/index.js.map +1 -1
  153. package/lib-commonjs/utils/dateGrid/isAfterMaxDate.js +4 -2
  154. package/lib-commonjs/utils/dateGrid/isAfterMaxDate.js.map +1 -1
  155. package/lib-commonjs/utils/dateGrid/isBeforeMinDate.js +4 -2
  156. package/lib-commonjs/utils/dateGrid/isBeforeMinDate.js.map +1 -1
  157. package/lib-commonjs/utils/dateGrid/isContiguous.js +3 -1
  158. package/lib-commonjs/utils/dateGrid/isContiguous.js.map +1 -1
  159. package/lib-commonjs/utils/dateGrid/isRestrictedDate.js +4 -2
  160. package/lib-commonjs/utils/dateGrid/isRestrictedDate.js.map +1 -1
  161. package/lib-commonjs/utils/dateMath/dateMath.js +54 -18
  162. package/lib-commonjs/utils/dateMath/dateMath.js.map +1 -1
  163. package/lib-commonjs/utils/dateMath/index.js +2 -2
  164. package/lib-commonjs/utils/dateMath/index.js.map +1 -1
  165. package/lib-commonjs/utils/dom.js +5 -3
  166. package/lib-commonjs/utils/dom.js.map +1 -1
  167. package/lib-commonjs/utils/focus.js +3 -1
  168. package/lib-commonjs/utils/focus.js.map +1 -1
  169. package/lib-commonjs/utils/index.js +8 -8
  170. package/lib-commonjs/utils/index.js.map +1 -1
  171. package/lib-commonjs/utils/usePopupPositioning.js +9 -7
  172. package/lib-commonjs/utils/usePopupPositioning.js.map +1 -1
  173. package/package.json +17 -17
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export { AnimationDirection } from './Calendar';\nexport { DatePicker, datePickerClassNames, defaultDatePickerErrorStrings, defaultDatePickerStrings, renderDatePicker_unstable, useDatePicker_unstable, useDatePickerStyles_unstable } from './DatePicker';\nexport { DAYS_IN_WEEK, DateRangeType, DayOfWeek, FirstWeekOfYear, MonthOfYear, TimeConstants, addDays, addMonths, addWeeks, addYears, compareDatePart, compareDates, getDatePartHashValue, getDateRangeArray, getEndDateOfWeek, getMonthEnd, getMonthStart, getStartDateOfWeek, getWeekNumber, getWeekNumbersInMonth, getYearEnd, getYearStart, isInDateRangeArray, setMonth } from './utils';\n"],"names":["AnimationDirection","DatePicker","datePickerClassNames","defaultDatePickerErrorStrings","defaultDatePickerStrings","renderDatePicker_unstable","useDatePicker_unstable","useDatePickerStyles_unstable","DAYS_IN_WEEK","DateRangeType","DayOfWeek","FirstWeekOfYear","MonthOfYear","TimeConstants","addDays","addMonths","addWeeks","addYears","compareDatePart","compareDates","getDatePartHashValue","getDateRangeArray","getEndDateOfWeek","getMonthEnd","getMonthStart","getStartDateOfWeek","getWeekNumber","getWeekNumbersInMonth","getYearEnd","getYearStart","isInDateRangeArray","setMonth"],"mappings":";;;;;;;;;;;IAASA,kBAAkB,MAAlBA,4BAAkB;IAClBC,UAAU,MAAVA,sBAAU;IAAEC,oBAAoB,MAApBA,gCAAoB;IAAEC,6BAA6B,MAA7BA,yCAA6B;IAAEC,wBAAwB,MAAxBA,oCAAwB;IAAEC,yBAAyB,MAAzBA,qCAAyB;IAAEC,sBAAsB,MAAtBA,kCAAsB;IAAEC,4BAA4B,MAA5BA,wCAA4B;IAC1KC,YAAY,MAAZA,mBAAY;IAAEC,aAAa,MAAbA,oBAAa;IAAEC,SAAS,MAATA,gBAAS;IAAEC,eAAe,MAAfA,sBAAe;IAAEC,WAAW,MAAXA,kBAAW;IAAEC,aAAa,MAAbA,oBAAa;IAAEC,OAAO,MAAPA,cAAO;IAAEC,SAAS,MAATA,gBAAS;IAAEC,QAAQ,MAARA,eAAQ;IAAEC,QAAQ,MAARA,eAAQ;IAAEC,eAAe,MAAfA,sBAAe;IAAEC,YAAY,MAAZA,mBAAY;IAAEC,oBAAoB,MAApBA,2BAAoB;IAAEC,iBAAiB,MAAjBA,wBAAiB;IAAEC,gBAAgB,MAAhBA,uBAAgB;IAAEC,WAAW,MAAXA,kBAAW;IAAEC,aAAa,MAAbA,oBAAa;IAAEC,kBAAkB,MAAlBA,yBAAkB;IAAEC,aAAa,MAAbA,oBAAa;IAAEC,qBAAqB,MAArBA,4BAAqB;IAAEC,UAAU,MAAVA,iBAAU;IAAEC,YAAY,MAAZA,mBAAY;IAAEC,kBAAkB,MAAlBA,yBAAkB;IAAEC,QAAQ,MAARA,eAAQ;;0BAFzU;4BACwJ;uBACyL"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { AnimationDirection } from './Calendar';\nexport { DatePicker, datePickerClassNames, defaultDatePickerErrorStrings, defaultDatePickerStrings, renderDatePicker_unstable, useDatePicker_unstable, useDatePickerStyles_unstable } from './DatePicker';\nexport { DAYS_IN_WEEK, DateRangeType, DayOfWeek, FirstWeekOfYear, MonthOfYear, TimeConstants, addDays, addMonths, addWeeks, addYears, compareDatePart, compareDates, getDatePartHashValue, getDateRangeArray, getEndDateOfWeek, getMonthEnd, getMonthStart, getStartDateOfWeek, getWeekNumber, getWeekNumbersInMonth, getYearEnd, getYearStart, isInDateRangeArray, setMonth } from './utils';\n"],"names":["AnimationDirection","DatePicker","datePickerClassNames","defaultDatePickerErrorStrings","defaultDatePickerStrings","renderDatePicker_unstable","useDatePicker_unstable","useDatePickerStyles_unstable","DAYS_IN_WEEK","DateRangeType","DayOfWeek","FirstWeekOfYear","MonthOfYear","TimeConstants","addDays","addMonths","addWeeks","addYears","compareDatePart","compareDates","getDatePartHashValue","getDateRangeArray","getEndDateOfWeek","getMonthEnd","getMonthStart","getStartDateOfWeek","getWeekNumber","getWeekNumbersInMonth","getYearEnd","getYearStart","isInDateRangeArray","setMonth"],"mappings":";;;;;;;;;;;IAASA,kBAAkB;eAAlBA,4BAAkB;;IAClBC,UAAU;eAAVA,sBAAU;;IAAEC,oBAAoB;eAApBA,gCAAoB;;IAAEC,6BAA6B;eAA7BA,yCAA6B;;IAAEC,wBAAwB;eAAxBA,oCAAwB;;IAAEC,yBAAyB;eAAzBA,qCAAyB;;IAAEC,sBAAsB;eAAtBA,kCAAsB;;IAAEC,4BAA4B;eAA5BA,wCAA4B;;IAC1KC,YAAY;eAAZA,mBAAY;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,SAAS;eAATA,gBAAS;;IAAEC,eAAe;eAAfA,sBAAe;;IAAEC,WAAW;eAAXA,kBAAW;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,OAAO;eAAPA,cAAO;;IAAEC,SAAS;eAATA,gBAAS;;IAAEC,QAAQ;eAARA,eAAQ;;IAAEC,QAAQ;eAARA,eAAQ;;IAAEC,eAAe;eAAfA,sBAAe;;IAAEC,YAAY;eAAZA,mBAAY;;IAAEC,oBAAoB;eAApBA,2BAAoB;;IAAEC,iBAAiB;eAAjBA,wBAAiB;;IAAEC,gBAAgB;eAAhBA,uBAAgB;;IAAEC,WAAW;eAAXA,kBAAW;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,kBAAkB;eAAlBA,yBAAkB;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,qBAAqB;eAArBA,4BAAqB;;IAAEC,UAAU;eAAVA,iBAAU;;IAAEC,YAAY;eAAZA,mBAAY;;IAAEC,kBAAkB;eAAlBA,yBAAkB;;IAAEC,QAAQ;eAARA,eAAQ;;;0BAFzU;4BACwJ;uBACyL"}
@@ -9,21 +9,51 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- EASING_FUNCTION_1: ()=>EASING_FUNCTION_1,
13
- EASING_FUNCTION_2: ()=>EASING_FUNCTION_2,
14
- DURATION_1: ()=>DURATION_1,
15
- DURATION_2: ()=>DURATION_2,
16
- DURATION_3: ()=>DURATION_3,
17
- DURATION_4: ()=>DURATION_4,
18
- FADE_IN: ()=>FADE_IN,
19
- FADE_OUT: ()=>FADE_OUT,
20
- SLIDE_DOWN_IN20: ()=>SLIDE_DOWN_IN20,
21
- SLIDE_LEFT_IN20: ()=>SLIDE_LEFT_IN20,
22
- SLIDE_RIGHT_IN20: ()=>SLIDE_RIGHT_IN20,
23
- SLIDE_UP_IN20: ()=>SLIDE_UP_IN20,
24
- SLIDE_DOWN_OUT20: ()=>SLIDE_DOWN_OUT20,
25
- SLIDE_UP_OUT20: ()=>SLIDE_UP_OUT20,
26
- TRANSITION_ROW_DISAPPEARANCE: ()=>TRANSITION_ROW_DISAPPEARANCE
12
+ EASING_FUNCTION_1: function() {
13
+ return EASING_FUNCTION_1;
14
+ },
15
+ EASING_FUNCTION_2: function() {
16
+ return EASING_FUNCTION_2;
17
+ },
18
+ DURATION_1: function() {
19
+ return DURATION_1;
20
+ },
21
+ DURATION_2: function() {
22
+ return DURATION_2;
23
+ },
24
+ DURATION_3: function() {
25
+ return DURATION_3;
26
+ },
27
+ DURATION_4: function() {
28
+ return DURATION_4;
29
+ },
30
+ FADE_IN: function() {
31
+ return FADE_IN;
32
+ },
33
+ FADE_OUT: function() {
34
+ return FADE_OUT;
35
+ },
36
+ SLIDE_DOWN_IN20: function() {
37
+ return SLIDE_DOWN_IN20;
38
+ },
39
+ SLIDE_LEFT_IN20: function() {
40
+ return SLIDE_LEFT_IN20;
41
+ },
42
+ SLIDE_RIGHT_IN20: function() {
43
+ return SLIDE_RIGHT_IN20;
44
+ },
45
+ SLIDE_UP_IN20: function() {
46
+ return SLIDE_UP_IN20;
47
+ },
48
+ SLIDE_DOWN_OUT20: function() {
49
+ return SLIDE_DOWN_OUT20;
50
+ },
51
+ SLIDE_UP_OUT20: function() {
52
+ return SLIDE_UP_OUT20;
53
+ },
54
+ TRANSITION_ROW_DISAPPEARANCE: function() {
55
+ return TRANSITION_ROW_DISAPPEARANCE;
56
+ }
27
57
  });
28
58
  const _react = require("@griffel/react");
29
59
  const EASING_FUNCTION_1 = 'cubic-bezier(.1,.9,.2,1)';
@@ -1 +1 @@
1
- {"version":3,"sources":["animations.js"],"sourcesContent":["import { shorthands } from '@griffel/react';\nexport const EASING_FUNCTION_1 = 'cubic-bezier(.1,.9,.2,1)';\nexport const EASING_FUNCTION_2 = 'cubic-bezier(.1,.25,.75,.9)';\nexport const DURATION_1 = '0.167s';\nexport const DURATION_2 = '0.267s';\nexport const DURATION_3 = '0.367s';\nexport const DURATION_4 = '0.467s';\nexport const FADE_IN = {\n from: {\n opacity: 0\n },\n to: {\n opacity: 1\n }\n};\nexport const FADE_OUT = {\n from: {\n opacity: 1\n },\n to: {\n opacity: 0,\n visibility: 'hidden'\n }\n};\nexport const SLIDE_DOWN_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(0, -20px, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_LEFT_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(20px, 0, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_RIGHT_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(-20px, 0, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_UP_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(0, 20px, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_DOWN_OUT20 = {\n from: {\n transform: 'translate3d(0, 0, 0)'\n },\n to: {\n transform: 'translate3d(0, 20px, 0)'\n }\n};\nexport const SLIDE_UP_OUT20 = {\n from: {\n transform: 'translate3d(0, 0, 0)'\n },\n to: {\n transform: 'translate3d(0, -20px, 0)'\n }\n};\nexport const TRANSITION_ROW_DISAPPEARANCE = {\n '100%': {\n height: '0px',\n ...shorthands.overflow('hidden'),\n width: '0px'\n },\n '99.9%': {\n height: '28px',\n ...shorthands.overflow('visible'),\n width: '100%'\n },\n '0%': {\n height: '28px',\n ...shorthands.overflow('visible'),\n width: '100%'\n }\n};\n"],"names":["EASING_FUNCTION_1","EASING_FUNCTION_2","DURATION_1","DURATION_2","DURATION_3","DURATION_4","FADE_IN","FADE_OUT","SLIDE_DOWN_IN20","SLIDE_LEFT_IN20","SLIDE_RIGHT_IN20","SLIDE_UP_IN20","SLIDE_DOWN_OUT20","SLIDE_UP_OUT20","TRANSITION_ROW_DISAPPEARANCE","from","opacity","to","visibility","pointerEvents","transform","height","shorthands","overflow","width"],"mappings":";;;;;;;;;;;IACaA,iBAAiB,MAAjBA;IACAC,iBAAiB,MAAjBA;IACAC,UAAU,MAAVA;IACAC,UAAU,MAAVA;IACAC,UAAU,MAAVA;IACAC,UAAU,MAAVA;IACAC,OAAO,MAAPA;IAQAC,QAAQ,MAARA;IASAC,eAAe,MAAfA;IAUAC,eAAe,MAAfA;IAUAC,gBAAgB,MAAhBA;IAUAC,aAAa,MAAbA;IAUAC,gBAAgB,MAAhBA;IAQAC,cAAc,MAAdA;IAQAC,4BAA4B,MAA5BA;;uBAhFc;AACpB,MAAMd,oBAAoB;AAC1B,MAAMC,oBAAoB;AAC1B,MAAMC,aAAa;AACnB,MAAMC,aAAa;AACnB,MAAMC,aAAa;AACnB,MAAMC,aAAa;AACnB,MAAMC,UAAU;IACnBS,MAAM;QACFC,SAAS;IACb;IACAC,IAAI;QACAD,SAAS;IACb;AACJ;AACO,MAAMT,WAAW;IACpBQ,MAAM;QACFC,SAAS;IACb;IACAC,IAAI;QACAD,SAAS;QACTE,YAAY;IAChB;AACJ;AACO,MAAMV,kBAAkB;IAC3BO,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMX,kBAAkB;IAC3BM,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMV,mBAAmB;IAC5BK,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMT,gBAAgB;IACzBI,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMR,mBAAmB;IAC5BG,MAAM;QACFK,WAAW;IACf;IACAH,IAAI;QACAG,WAAW;IACf;AACJ;AACO,MAAMP,iBAAiB;IAC1BE,MAAM;QACFK,WAAW;IACf;IACAH,IAAI;QACAG,WAAW;IACf;AACJ;AACO,MAAMN,+BAA+B;IACxC,QAAQ;QACJO,QAAQ;QACR,GAAGC,iBAAU,CAACC,QAAQ,CAAC,SAAS;QAChCC,OAAO;IACX;IACA,SAAS;QACLH,QAAQ;QACR,GAAGC,iBAAU,CAACC,QAAQ,CAAC,UAAU;QACjCC,OAAO;IACX;IACA,MAAM;QACFH,QAAQ;QACR,GAAGC,iBAAU,CAACC,QAAQ,CAAC,UAAU;QACjCC,OAAO;IACX;AACJ"}
1
+ {"version":3,"sources":["animations.js"],"sourcesContent":["import { shorthands } from '@griffel/react';\nexport const EASING_FUNCTION_1 = 'cubic-bezier(.1,.9,.2,1)';\nexport const EASING_FUNCTION_2 = 'cubic-bezier(.1,.25,.75,.9)';\nexport const DURATION_1 = '0.167s';\nexport const DURATION_2 = '0.267s';\nexport const DURATION_3 = '0.367s';\nexport const DURATION_4 = '0.467s';\nexport const FADE_IN = {\n from: {\n opacity: 0\n },\n to: {\n opacity: 1\n }\n};\nexport const FADE_OUT = {\n from: {\n opacity: 1\n },\n to: {\n opacity: 0,\n visibility: 'hidden'\n }\n};\nexport const SLIDE_DOWN_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(0, -20px, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_LEFT_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(20px, 0, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_RIGHT_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(-20px, 0, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_UP_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(0, 20px, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_DOWN_OUT20 = {\n from: {\n transform: 'translate3d(0, 0, 0)'\n },\n to: {\n transform: 'translate3d(0, 20px, 0)'\n }\n};\nexport const SLIDE_UP_OUT20 = {\n from: {\n transform: 'translate3d(0, 0, 0)'\n },\n to: {\n transform: 'translate3d(0, -20px, 0)'\n }\n};\nexport const TRANSITION_ROW_DISAPPEARANCE = {\n '100%': {\n height: '0px',\n ...shorthands.overflow('hidden'),\n width: '0px'\n },\n '99.9%': {\n height: '28px',\n ...shorthands.overflow('visible'),\n width: '100%'\n },\n '0%': {\n height: '28px',\n ...shorthands.overflow('visible'),\n width: '100%'\n }\n};\n"],"names":["EASING_FUNCTION_1","EASING_FUNCTION_2","DURATION_1","DURATION_2","DURATION_3","DURATION_4","FADE_IN","FADE_OUT","SLIDE_DOWN_IN20","SLIDE_LEFT_IN20","SLIDE_RIGHT_IN20","SLIDE_UP_IN20","SLIDE_DOWN_OUT20","SLIDE_UP_OUT20","TRANSITION_ROW_DISAPPEARANCE","from","opacity","to","visibility","pointerEvents","transform","height","shorthands","overflow","width"],"mappings":";;;;;;;;;;;IACaA,iBAAiB;eAAjBA;;IACAC,iBAAiB;eAAjBA;;IACAC,UAAU;eAAVA;;IACAC,UAAU;eAAVA;;IACAC,UAAU;eAAVA;;IACAC,UAAU;eAAVA;;IACAC,OAAO;eAAPA;;IAQAC,QAAQ;eAARA;;IASAC,eAAe;eAAfA;;IAUAC,eAAe;eAAfA;;IAUAC,gBAAgB;eAAhBA;;IAUAC,aAAa;eAAbA;;IAUAC,gBAAgB;eAAhBA;;IAQAC,cAAc;eAAdA;;IAQAC,4BAA4B;eAA5BA;;;uBAhFc;AACpB,MAAMd,oBAAoB;AAC1B,MAAMC,oBAAoB;AAC1B,MAAMC,aAAa;AACnB,MAAMC,aAAa;AACnB,MAAMC,aAAa;AACnB,MAAMC,aAAa;AACnB,MAAMC,UAAU;IACnBS,MAAM;QACFC,SAAS;IACb;IACAC,IAAI;QACAD,SAAS;IACb;AACJ;AACO,MAAMT,WAAW;IACpBQ,MAAM;QACFC,SAAS;IACb;IACAC,IAAI;QACAD,SAAS;QACTE,YAAY;IAChB;AACJ;AACO,MAAMV,kBAAkB;IAC3BO,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMX,kBAAkB;IAC3BM,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMV,mBAAmB;IAC5BK,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMT,gBAAgB;IACzBI,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMR,mBAAmB;IAC5BG,MAAM;QACFK,WAAW;IACf;IACAH,IAAI;QACAG,WAAW;IACf;AACJ;AACO,MAAMP,iBAAiB;IAC1BE,MAAM;QACFK,WAAW;IACf;IACAH,IAAI;QACAG,WAAW;IACf;AACJ;AACO,MAAMN,+BAA+B;IACxC,QAAQ;QACJO,QAAQ;QACR,GAAGC,iBAAU,CAACC,QAAQ,CAAC,SAAS;QAChCC,OAAO;IACX;IACA,SAAS;QACLH,QAAQ;QACR,GAAGC,iBAAU,CAACC,QAAQ,CAAC,UAAU;QACjCC,OAAO;IACX;IACA,MAAM;QACFH,QAAQ;QACR,GAAGC,iBAAU,CAACC,QAAQ,CAAC,UAAU;QACjCC,OAAO;IACX;AACJ"}
@@ -11,12 +11,24 @@ function _export(target, all) {
11
11
  });
12
12
  }
13
13
  _export(exports, {
14
- DayOfWeek: ()=>DayOfWeek,
15
- MonthOfYear: ()=>MonthOfYear,
16
- FirstWeekOfYear: ()=>FirstWeekOfYear,
17
- DateRangeType: ()=>DateRangeType,
18
- DAYS_IN_WEEK: ()=>DAYS_IN_WEEK,
19
- TimeConstants: ()=>TimeConstants
14
+ DayOfWeek: function() {
15
+ return DayOfWeek;
16
+ },
17
+ MonthOfYear: function() {
18
+ return MonthOfYear;
19
+ },
20
+ FirstWeekOfYear: function() {
21
+ return FirstWeekOfYear;
22
+ },
23
+ DateRangeType: function() {
24
+ return DateRangeType;
25
+ },
26
+ DAYS_IN_WEEK: function() {
27
+ return DAYS_IN_WEEK;
28
+ },
29
+ TimeConstants: function() {
30
+ return TimeConstants;
31
+ }
20
32
  });
21
33
  var DayOfWeek;
22
34
  (function(DayOfWeek) {
@@ -1 +1 @@
1
- {"version":3,"sources":["constants.js"],"sourcesContent":["/**\n * The days of the week\n */ export var DayOfWeek;\n(function(DayOfWeek) {\n DayOfWeek[DayOfWeek[\"Sunday\"] = 0] = \"Sunday\";\n DayOfWeek[DayOfWeek[\"Monday\"] = 1] = \"Monday\";\n DayOfWeek[DayOfWeek[\"Tuesday\"] = 2] = \"Tuesday\";\n DayOfWeek[DayOfWeek[\"Wednesday\"] = 3] = \"Wednesday\";\n DayOfWeek[DayOfWeek[\"Thursday\"] = 4] = \"Thursday\";\n DayOfWeek[DayOfWeek[\"Friday\"] = 5] = \"Friday\";\n DayOfWeek[DayOfWeek[\"Saturday\"] = 6] = \"Saturday\";\n})(DayOfWeek || (DayOfWeek = {}));\nexport var MonthOfYear;\n(function(MonthOfYear) {\n MonthOfYear[MonthOfYear[\"January\"] = 0] = \"January\";\n MonthOfYear[MonthOfYear[\"February\"] = 1] = \"February\";\n MonthOfYear[MonthOfYear[\"March\"] = 2] = \"March\";\n MonthOfYear[MonthOfYear[\"April\"] = 3] = \"April\";\n MonthOfYear[MonthOfYear[\"May\"] = 4] = \"May\";\n MonthOfYear[MonthOfYear[\"June\"] = 5] = \"June\";\n MonthOfYear[MonthOfYear[\"July\"] = 6] = \"July\";\n MonthOfYear[MonthOfYear[\"August\"] = 7] = \"August\";\n MonthOfYear[MonthOfYear[\"September\"] = 8] = \"September\";\n MonthOfYear[MonthOfYear[\"October\"] = 9] = \"October\";\n MonthOfYear[MonthOfYear[\"November\"] = 10] = \"November\";\n MonthOfYear[MonthOfYear[\"December\"] = 11] = \"December\";\n})(MonthOfYear || (MonthOfYear = {}));\nexport var FirstWeekOfYear;\n(function(FirstWeekOfYear) {\n FirstWeekOfYear[FirstWeekOfYear[\"FirstDay\"] = 0] = \"FirstDay\";\n FirstWeekOfYear[FirstWeekOfYear[\"FirstFullWeek\"] = 1] = \"FirstFullWeek\";\n FirstWeekOfYear[FirstWeekOfYear[\"FirstFourDayWeek\"] = 2] = \"FirstFourDayWeek\";\n})(FirstWeekOfYear || (FirstWeekOfYear = {}));\nexport var DateRangeType;\n(function(DateRangeType) {\n DateRangeType[DateRangeType[\"Day\"] = 0] = \"Day\";\n DateRangeType[DateRangeType[\"Week\"] = 1] = \"Week\";\n DateRangeType[DateRangeType[\"Month\"] = 2] = \"Month\";\n DateRangeType[DateRangeType[\"WorkWeek\"] = 3] = \"WorkWeek\";\n})(DateRangeType || (DateRangeType = {}));\nexport const DAYS_IN_WEEK = 7;\nexport const TimeConstants = {\n MillisecondsInOneDay: 86400000,\n MillisecondsIn1Sec: 1000,\n MillisecondsIn1Min: 60000,\n MillisecondsIn30Mins: 1800000,\n MillisecondsIn1Hour: 3600000,\n MinutesInOneDay: 1440,\n MinutesInOneHour: 60,\n DaysInOneWeek: 7,\n MonthInOneYear: 12,\n HoursInOneDay: 24,\n SecondsInOneMinute: 60,\n OffsetTo24HourFormat: 12,\n /**\n * Matches a time string. Groups:\n * 1. hours (with or without leading 0)\n * 2. minutes\n * 3. seconds (optional)\n * 4. meridiem (am/pm, case-insensitive, optional)\n */ TimeFormatRegex: /^(\\d\\d?):(\\d\\d):?(\\d\\d)? ?([ap]m)?/i\n};\n"],"names":["DayOfWeek","MonthOfYear","FirstWeekOfYear","DateRangeType","DAYS_IN_WEEK","TimeConstants","MillisecondsInOneDay","MillisecondsIn1Sec","MillisecondsIn1Min","MillisecondsIn30Mins","MillisecondsIn1Hour","MinutesInOneDay","MinutesInOneHour","DaysInOneWeek","MonthInOneYear","HoursInOneDay","SecondsInOneMinute","OffsetTo24HourFormat","TimeFormatRegex"],"mappings":"AAAA;;CAEC;;;;;;;;;;;IAAcA,SAAS,MAATA;IAUJC,WAAW,MAAXA;IAeAC,eAAe,MAAfA;IAMAC,aAAa,MAAbA;IAOEC,YAAY,MAAZA;IACAC,aAAa,MAAbA;;AAvCF,IAAIL;AACd,CAAA,SAASA,SAAS,EAAE;IACjBA,SAAS,CAACA,SAAS,CAAC,SAAS,GAAG,EAAE,GAAG;IACrCA,SAAS,CAACA,SAAS,CAAC,SAAS,GAAG,EAAE,GAAG;IACrCA,SAAS,CAACA,SAAS,CAAC,UAAU,GAAG,EAAE,GAAG;IACtCA,SAAS,CAACA,SAAS,CAAC,YAAY,GAAG,EAAE,GAAG;IACxCA,SAAS,CAACA,SAAS,CAAC,WAAW,GAAG,EAAE,GAAG;IACvCA,SAAS,CAACA,SAAS,CAAC,SAAS,GAAG,EAAE,GAAG;IACrCA,SAAS,CAACA,SAAS,CAAC,WAAW,GAAG,EAAE,GAAG;AAC3C,CAAA,EAAGA,aAAcA,CAAAA,YAAY,CAAC,CAAA;AACvB,IAAIC;AACV,CAAA,SAASA,WAAW,EAAE;IACnBA,WAAW,CAACA,WAAW,CAAC,UAAU,GAAG,EAAE,GAAG;IAC1CA,WAAW,CAACA,WAAW,CAAC,WAAW,GAAG,EAAE,GAAG;IAC3CA,WAAW,CAACA,WAAW,CAAC,QAAQ,GAAG,EAAE,GAAG;IACxCA,WAAW,CAACA,WAAW,CAAC,QAAQ,GAAG,EAAE,GAAG;IACxCA,WAAW,CAACA,WAAW,CAAC,MAAM,GAAG,EAAE,GAAG;IACtCA,WAAW,CAACA,WAAW,CAAC,OAAO,GAAG,EAAE,GAAG;IACvCA,WAAW,CAACA,WAAW,CAAC,OAAO,GAAG,EAAE,GAAG;IACvCA,WAAW,CAACA,WAAW,CAAC,SAAS,GAAG,EAAE,GAAG;IACzCA,WAAW,CAACA,WAAW,CAAC,YAAY,GAAG,EAAE,GAAG;IAC5CA,WAAW,CAACA,WAAW,CAAC,UAAU,GAAG,EAAE,GAAG;IAC1CA,WAAW,CAACA,WAAW,CAAC,WAAW,GAAG,GAAG,GAAG;IAC5CA,WAAW,CAACA,WAAW,CAAC,WAAW,GAAG,GAAG,GAAG;AAChD,CAAA,EAAGA,eAAgBA,CAAAA,cAAc,CAAC,CAAA;AAC3B,IAAIC;AACV,CAAA,SAASA,eAAe,EAAE;IACvBA,eAAe,CAACA,eAAe,CAAC,WAAW,GAAG,EAAE,GAAG;IACnDA,eAAe,CAACA,eAAe,CAAC,gBAAgB,GAAG,EAAE,GAAG;IACxDA,eAAe,CAACA,eAAe,CAAC,mBAAmB,GAAG,EAAE,GAAG;AAC/D,CAAA,EAAGA,mBAAoBA,CAAAA,kBAAkB,CAAC,CAAA;AACnC,IAAIC;AACV,CAAA,SAASA,aAAa,EAAE;IACrBA,aAAa,CAACA,aAAa,CAAC,MAAM,GAAG,EAAE,GAAG;IAC1CA,aAAa,CAACA,aAAa,CAAC,OAAO,GAAG,EAAE,GAAG;IAC3CA,aAAa,CAACA,aAAa,CAAC,QAAQ,GAAG,EAAE,GAAG;IAC5CA,aAAa,CAACA,aAAa,CAAC,WAAW,GAAG,EAAE,GAAG;AACnD,CAAA,EAAGA,iBAAkBA,CAAAA,gBAAgB,CAAC,CAAA;AAC/B,MAAMC,eAAe;AACrB,MAAMC,gBAAgB;IACzBC,sBAAsB;IACtBC,oBAAoB;IACpBC,oBAAoB;IACpBC,sBAAsB;IACtBC,qBAAqB;IACrBC,iBAAiB;IACjBC,kBAAkB;IAClBC,eAAe;IACfC,gBAAgB;IAChBC,eAAe;IACfC,oBAAoB;IACpBC,sBAAsB;IACtB;;;;;;GAMD,GAAGC,iBAAiB;AACvB"}
1
+ {"version":3,"sources":["constants.js"],"sourcesContent":["/**\n * The days of the week\n */ export var DayOfWeek;\n(function(DayOfWeek) {\n DayOfWeek[DayOfWeek[\"Sunday\"] = 0] = \"Sunday\";\n DayOfWeek[DayOfWeek[\"Monday\"] = 1] = \"Monday\";\n DayOfWeek[DayOfWeek[\"Tuesday\"] = 2] = \"Tuesday\";\n DayOfWeek[DayOfWeek[\"Wednesday\"] = 3] = \"Wednesday\";\n DayOfWeek[DayOfWeek[\"Thursday\"] = 4] = \"Thursday\";\n DayOfWeek[DayOfWeek[\"Friday\"] = 5] = \"Friday\";\n DayOfWeek[DayOfWeek[\"Saturday\"] = 6] = \"Saturday\";\n})(DayOfWeek || (DayOfWeek = {}));\nexport var MonthOfYear;\n(function(MonthOfYear) {\n MonthOfYear[MonthOfYear[\"January\"] = 0] = \"January\";\n MonthOfYear[MonthOfYear[\"February\"] = 1] = \"February\";\n MonthOfYear[MonthOfYear[\"March\"] = 2] = \"March\";\n MonthOfYear[MonthOfYear[\"April\"] = 3] = \"April\";\n MonthOfYear[MonthOfYear[\"May\"] = 4] = \"May\";\n MonthOfYear[MonthOfYear[\"June\"] = 5] = \"June\";\n MonthOfYear[MonthOfYear[\"July\"] = 6] = \"July\";\n MonthOfYear[MonthOfYear[\"August\"] = 7] = \"August\";\n MonthOfYear[MonthOfYear[\"September\"] = 8] = \"September\";\n MonthOfYear[MonthOfYear[\"October\"] = 9] = \"October\";\n MonthOfYear[MonthOfYear[\"November\"] = 10] = \"November\";\n MonthOfYear[MonthOfYear[\"December\"] = 11] = \"December\";\n})(MonthOfYear || (MonthOfYear = {}));\nexport var FirstWeekOfYear;\n(function(FirstWeekOfYear) {\n FirstWeekOfYear[FirstWeekOfYear[\"FirstDay\"] = 0] = \"FirstDay\";\n FirstWeekOfYear[FirstWeekOfYear[\"FirstFullWeek\"] = 1] = \"FirstFullWeek\";\n FirstWeekOfYear[FirstWeekOfYear[\"FirstFourDayWeek\"] = 2] = \"FirstFourDayWeek\";\n})(FirstWeekOfYear || (FirstWeekOfYear = {}));\nexport var DateRangeType;\n(function(DateRangeType) {\n DateRangeType[DateRangeType[\"Day\"] = 0] = \"Day\";\n DateRangeType[DateRangeType[\"Week\"] = 1] = \"Week\";\n DateRangeType[DateRangeType[\"Month\"] = 2] = \"Month\";\n DateRangeType[DateRangeType[\"WorkWeek\"] = 3] = \"WorkWeek\";\n})(DateRangeType || (DateRangeType = {}));\nexport const DAYS_IN_WEEK = 7;\nexport const TimeConstants = {\n MillisecondsInOneDay: 86400000,\n MillisecondsIn1Sec: 1000,\n MillisecondsIn1Min: 60000,\n MillisecondsIn30Mins: 1800000,\n MillisecondsIn1Hour: 3600000,\n MinutesInOneDay: 1440,\n MinutesInOneHour: 60,\n DaysInOneWeek: 7,\n MonthInOneYear: 12,\n HoursInOneDay: 24,\n SecondsInOneMinute: 60,\n OffsetTo24HourFormat: 12,\n /**\n * Matches a time string. Groups:\n * 1. hours (with or without leading 0)\n * 2. minutes\n * 3. seconds (optional)\n * 4. meridiem (am/pm, case-insensitive, optional)\n */ TimeFormatRegex: /^(\\d\\d?):(\\d\\d):?(\\d\\d)? ?([ap]m)?/i\n};\n"],"names":["DayOfWeek","MonthOfYear","FirstWeekOfYear","DateRangeType","DAYS_IN_WEEK","TimeConstants","MillisecondsInOneDay","MillisecondsIn1Sec","MillisecondsIn1Min","MillisecondsIn30Mins","MillisecondsIn1Hour","MinutesInOneDay","MinutesInOneHour","DaysInOneWeek","MonthInOneYear","HoursInOneDay","SecondsInOneMinute","OffsetTo24HourFormat","TimeFormatRegex"],"mappings":"AAAA;;CAEC;;;;;;;;;;;IAAcA,SAAS;eAATA;;IAUJC,WAAW;eAAXA;;IAeAC,eAAe;eAAfA;;IAMAC,aAAa;eAAbA;;IAOEC,YAAY;eAAZA;;IACAC,aAAa;eAAbA;;;AAvCF,IAAIL;AACd,CAAA,SAASA,SAAS;IACfA,SAAS,CAACA,SAAS,CAAC,SAAS,GAAG,EAAE,GAAG;IACrCA,SAAS,CAACA,SAAS,CAAC,SAAS,GAAG,EAAE,GAAG;IACrCA,SAAS,CAACA,SAAS,CAAC,UAAU,GAAG,EAAE,GAAG;IACtCA,SAAS,CAACA,SAAS,CAAC,YAAY,GAAG,EAAE,GAAG;IACxCA,SAAS,CAACA,SAAS,CAAC,WAAW,GAAG,EAAE,GAAG;IACvCA,SAAS,CAACA,SAAS,CAAC,SAAS,GAAG,EAAE,GAAG;IACrCA,SAAS,CAACA,SAAS,CAAC,WAAW,GAAG,EAAE,GAAG;AAC3C,CAAA,EAAGA,aAAcA,CAAAA,YAAY,CAAC,CAAA;AACvB,IAAIC;AACV,CAAA,SAASA,WAAW;IACjBA,WAAW,CAACA,WAAW,CAAC,UAAU,GAAG,EAAE,GAAG;IAC1CA,WAAW,CAACA,WAAW,CAAC,WAAW,GAAG,EAAE,GAAG;IAC3CA,WAAW,CAACA,WAAW,CAAC,QAAQ,GAAG,EAAE,GAAG;IACxCA,WAAW,CAACA,WAAW,CAAC,QAAQ,GAAG,EAAE,GAAG;IACxCA,WAAW,CAACA,WAAW,CAAC,MAAM,GAAG,EAAE,GAAG;IACtCA,WAAW,CAACA,WAAW,CAAC,OAAO,GAAG,EAAE,GAAG;IACvCA,WAAW,CAACA,WAAW,CAAC,OAAO,GAAG,EAAE,GAAG;IACvCA,WAAW,CAACA,WAAW,CAAC,SAAS,GAAG,EAAE,GAAG;IACzCA,WAAW,CAACA,WAAW,CAAC,YAAY,GAAG,EAAE,GAAG;IAC5CA,WAAW,CAACA,WAAW,CAAC,UAAU,GAAG,EAAE,GAAG;IAC1CA,WAAW,CAACA,WAAW,CAAC,WAAW,GAAG,GAAG,GAAG;IAC5CA,WAAW,CAACA,WAAW,CAAC,WAAW,GAAG,GAAG,GAAG;AAChD,CAAA,EAAGA,eAAgBA,CAAAA,cAAc,CAAC,CAAA;AAC3B,IAAIC;AACV,CAAA,SAASA,eAAe;IACrBA,eAAe,CAACA,eAAe,CAAC,WAAW,GAAG,EAAE,GAAG;IACnDA,eAAe,CAACA,eAAe,CAAC,gBAAgB,GAAG,EAAE,GAAG;IACxDA,eAAe,CAACA,eAAe,CAAC,mBAAmB,GAAG,EAAE,GAAG;AAC/D,CAAA,EAAGA,mBAAoBA,CAAAA,kBAAkB,CAAC,CAAA;AACnC,IAAIC;AACV,CAAA,SAASA,aAAa;IACnBA,aAAa,CAACA,aAAa,CAAC,MAAM,GAAG,EAAE,GAAG;IAC1CA,aAAa,CAACA,aAAa,CAAC,OAAO,GAAG,EAAE,GAAG;IAC3CA,aAAa,CAACA,aAAa,CAAC,QAAQ,GAAG,EAAE,GAAG;IAC5CA,aAAa,CAACA,aAAa,CAAC,WAAW,GAAG,EAAE,GAAG;AACnD,CAAA,EAAGA,iBAAkBA,CAAAA,gBAAgB,CAAC,CAAA;AAC/B,MAAMC,eAAe;AACrB,MAAMC,gBAAgB;IACzBC,sBAAsB;IACtBC,oBAAoB;IACpBC,oBAAoB;IACpBC,sBAAsB;IACtBC,qBAAqB;IACrBC,iBAAiB;IACjBC,kBAAkB;IAClBC,eAAe;IACfC,gBAAgB;IAChBC,eAAe;IACfC,oBAAoB;IACpBC,sBAAsB;IACtB;;;;;;GAMD,GAAGC,iBAAiB;AACvB"}
@@ -12,14 +12,30 @@ function _export(target, all) {
12
12
  });
13
13
  }
14
14
  _export(exports, {
15
- formatDay: ()=>formatDay,
16
- formatMonthDayYear: ()=>formatMonthDayYear,
17
- formatMonthYear: ()=>formatMonthYear,
18
- formatMonth: ()=>formatMonth,
19
- formatYear: ()=>formatYear,
20
- DEFAULT_DATE_GRID_STRINGS: ()=>DEFAULT_DATE_GRID_STRINGS,
21
- DEFAULT_DATE_FORMATTING: ()=>DEFAULT_DATE_FORMATTING,
22
- DEFAULT_CALENDAR_STRINGS: ()=>DEFAULT_CALENDAR_STRINGS
15
+ formatDay: function() {
16
+ return formatDay;
17
+ },
18
+ formatMonthDayYear: function() {
19
+ return formatMonthDayYear;
20
+ },
21
+ formatMonthYear: function() {
22
+ return formatMonthYear;
23
+ },
24
+ formatMonth: function() {
25
+ return formatMonth;
26
+ },
27
+ formatYear: function() {
28
+ return formatYear;
29
+ },
30
+ DEFAULT_DATE_GRID_STRINGS: function() {
31
+ return DEFAULT_DATE_GRID_STRINGS;
32
+ },
33
+ DEFAULT_DATE_FORMATTING: function() {
34
+ return DEFAULT_DATE_FORMATTING;
35
+ },
36
+ DEFAULT_CALENDAR_STRINGS: function() {
37
+ return DEFAULT_CALENDAR_STRINGS;
38
+ }
23
39
  });
24
40
  const formatDay = (date)=>date.getDate().toString();
25
41
  const formatMonthDayYear = (date, strings)=>strings.months[date.getMonth()] + ' ' + date.getDate() + ', ' + date.getFullYear();
@@ -1 +1 @@
1
- {"version":3,"sources":["dateFormatting.defaults.js"],"sourcesContent":["/**\n * Format date to a day string representation\n * @param date - input date to format\n */ export const formatDay = (date)=>date.getDate().toString();\n/**\n * Format date to a month-day-year string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonthDayYear = (date, strings)=>strings.months[date.getMonth()] + ' ' + date.getDate() + ', ' + date.getFullYear();\n/**\n * Format date to a month-year string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonthYear = (date, strings)=>strings.months[date.getMonth()] + ' ' + date.getFullYear();\n/**\n * Format date to a month string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonth = (date, strings)=>strings.months[date.getMonth()];\n/**\n * Format date to a year string representation\n * @param date - input date to format\n */ export const formatYear = (date)=>date.getFullYear().toString();\nexport const DEFAULT_DATE_GRID_STRINGS = {\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n ],\n shortMonths: [\n 'Jan',\n 'Feb',\n 'Mar',\n 'Apr',\n 'May',\n 'Jun',\n 'Jul',\n 'Aug',\n 'Sep',\n 'Oct',\n 'Nov',\n 'Dec'\n ],\n days: [\n 'Sunday',\n 'Monday',\n 'Tuesday',\n 'Wednesday',\n 'Thursday',\n 'Friday',\n 'Saturday'\n ],\n shortDays: [\n 'S',\n 'M',\n 'T',\n 'W',\n 'T',\n 'F',\n 'S'\n ]\n};\nexport const DEFAULT_DATE_FORMATTING = {\n formatDay,\n formatMonth,\n formatYear,\n formatMonthDayYear,\n formatMonthYear\n};\nexport const DEFAULT_CALENDAR_STRINGS = {\n ...DEFAULT_DATE_GRID_STRINGS,\n goToToday: 'Go to today',\n weekNumberFormatString: 'Week number {0}',\n prevMonthAriaLabel: 'Previous month',\n nextMonthAriaLabel: 'Next month',\n prevYearAriaLabel: 'Previous year',\n nextYearAriaLabel: 'Next year',\n prevYearRangeAriaLabel: 'Previous year range',\n nextYearRangeAriaLabel: 'Next year range',\n closeButtonAriaLabel: 'Close',\n selectedDateFormatString: 'Selected date {0}',\n todayDateFormatString: \"Today's date {0}\",\n monthPickerHeaderAriaLabel: '{0}, change year',\n yearPickerHeaderAriaLabel: '{0}, change month',\n dayMarkedAriaLabel: 'marked'\n};\n"],"names":["formatDay","formatMonthDayYear","formatMonthYear","formatMonth","formatYear","DEFAULT_DATE_GRID_STRINGS","DEFAULT_DATE_FORMATTING","DEFAULT_CALENDAR_STRINGS","date","getDate","toString","strings","months","getMonth","getFullYear","shortMonths","days","shortDays","goToToday","weekNumberFormatString","prevMonthAriaLabel","nextMonthAriaLabel","prevYearAriaLabel","nextYearAriaLabel","prevYearRangeAriaLabel","nextYearRangeAriaLabel","closeButtonAriaLabel","selectedDateFormatString","todayDateFormatString","monthPickerHeaderAriaLabel","yearPickerHeaderAriaLabel","dayMarkedAriaLabel"],"mappings":"AAAA;;;CAGC;;;;;;;;;;;IAAgBA,SAAS,MAATA;IAKAC,kBAAkB,MAAlBA;IAKAC,eAAe,MAAfA;IAKAC,WAAW,MAAXA;IAIAC,UAAU,MAAVA;IACJC,yBAAyB,MAAzBA;IAgDAC,uBAAuB,MAAvBA;IAOAC,wBAAwB,MAAxBA;;AA3EF,MAAMP,YAAY,CAACQ,OAAOA,KAAKC,OAAO,GAAGC,QAAQ;AAKjD,MAAMT,qBAAqB,CAACO,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG,GAAG,MAAML,KAAKC,OAAO,KAAK,OAAOD,KAAKM,WAAW;AAK5H,MAAMZ,kBAAkB,CAACM,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG,GAAG,MAAML,KAAKM,WAAW;AAKjG,MAAMX,cAAc,CAACK,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG;AAIpE,MAAMT,aAAa,CAACI,OAAOA,KAAKM,WAAW,GAAGJ,QAAQ;AAC1D,MAAML,4BAA4B;IACrCO,QAAQ;QACJ;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDG,aAAa;QACT;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDC,MAAM;QACF;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDC,WAAW;QACP;QACA;QACA;QACA;QACA;QACA;QACA;KACH;AACL;AACO,MAAMX,0BAA0B;IACnCN;IACAG;IACAC;IACAH;IACAC;AACJ;AACO,MAAMK,2BAA2B;IACpC,GAAGF,yBAAyB;IAC5Ba,WAAW;IACXC,wBAAwB;IACxBC,oBAAoB;IACpBC,oBAAoB;IACpBC,mBAAmB;IACnBC,mBAAmB;IACnBC,wBAAwB;IACxBC,wBAAwB;IACxBC,sBAAsB;IACtBC,0BAA0B;IAC1BC,uBAAuB;IACvBC,4BAA4B;IAC5BC,2BAA2B;IAC3BC,oBAAoB;AACxB"}
1
+ {"version":3,"sources":["dateFormatting.defaults.js"],"sourcesContent":["/**\n * Format date to a day string representation\n * @param date - input date to format\n */ export const formatDay = (date)=>date.getDate().toString();\n/**\n * Format date to a month-day-year string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonthDayYear = (date, strings)=>strings.months[date.getMonth()] + ' ' + date.getDate() + ', ' + date.getFullYear();\n/**\n * Format date to a month-year string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonthYear = (date, strings)=>strings.months[date.getMonth()] + ' ' + date.getFullYear();\n/**\n * Format date to a month string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonth = (date, strings)=>strings.months[date.getMonth()];\n/**\n * Format date to a year string representation\n * @param date - input date to format\n */ export const formatYear = (date)=>date.getFullYear().toString();\nexport const DEFAULT_DATE_GRID_STRINGS = {\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n ],\n shortMonths: [\n 'Jan',\n 'Feb',\n 'Mar',\n 'Apr',\n 'May',\n 'Jun',\n 'Jul',\n 'Aug',\n 'Sep',\n 'Oct',\n 'Nov',\n 'Dec'\n ],\n days: [\n 'Sunday',\n 'Monday',\n 'Tuesday',\n 'Wednesday',\n 'Thursday',\n 'Friday',\n 'Saturday'\n ],\n shortDays: [\n 'S',\n 'M',\n 'T',\n 'W',\n 'T',\n 'F',\n 'S'\n ]\n};\nexport const DEFAULT_DATE_FORMATTING = {\n formatDay,\n formatMonth,\n formatYear,\n formatMonthDayYear,\n formatMonthYear\n};\nexport const DEFAULT_CALENDAR_STRINGS = {\n ...DEFAULT_DATE_GRID_STRINGS,\n goToToday: 'Go to today',\n weekNumberFormatString: 'Week number {0}',\n prevMonthAriaLabel: 'Previous month',\n nextMonthAriaLabel: 'Next month',\n prevYearAriaLabel: 'Previous year',\n nextYearAriaLabel: 'Next year',\n prevYearRangeAriaLabel: 'Previous year range',\n nextYearRangeAriaLabel: 'Next year range',\n closeButtonAriaLabel: 'Close',\n selectedDateFormatString: 'Selected date {0}',\n todayDateFormatString: \"Today's date {0}\",\n monthPickerHeaderAriaLabel: '{0}, change year',\n yearPickerHeaderAriaLabel: '{0}, change month',\n dayMarkedAriaLabel: 'marked'\n};\n"],"names":["formatDay","formatMonthDayYear","formatMonthYear","formatMonth","formatYear","DEFAULT_DATE_GRID_STRINGS","DEFAULT_DATE_FORMATTING","DEFAULT_CALENDAR_STRINGS","date","getDate","toString","strings","months","getMonth","getFullYear","shortMonths","days","shortDays","goToToday","weekNumberFormatString","prevMonthAriaLabel","nextMonthAriaLabel","prevYearAriaLabel","nextYearAriaLabel","prevYearRangeAriaLabel","nextYearRangeAriaLabel","closeButtonAriaLabel","selectedDateFormatString","todayDateFormatString","monthPickerHeaderAriaLabel","yearPickerHeaderAriaLabel","dayMarkedAriaLabel"],"mappings":"AAAA;;;CAGC;;;;;;;;;;;IAAgBA,SAAS;eAATA;;IAKAC,kBAAkB;eAAlBA;;IAKAC,eAAe;eAAfA;;IAKAC,WAAW;eAAXA;;IAIAC,UAAU;eAAVA;;IACJC,yBAAyB;eAAzBA;;IAgDAC,uBAAuB;eAAvBA;;IAOAC,wBAAwB;eAAxBA;;;AA3EF,MAAMP,YAAY,CAACQ,OAAOA,KAAKC,OAAO,GAAGC,QAAQ;AAKjD,MAAMT,qBAAqB,CAACO,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG,GAAG,MAAML,KAAKC,OAAO,KAAK,OAAOD,KAAKM,WAAW;AAK5H,MAAMZ,kBAAkB,CAACM,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG,GAAG,MAAML,KAAKM,WAAW;AAKjG,MAAMX,cAAc,CAACK,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG;AAIpE,MAAMT,aAAa,CAACI,OAAOA,KAAKM,WAAW,GAAGJ,QAAQ;AAC1D,MAAML,4BAA4B;IACrCO,QAAQ;QACJ;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDG,aAAa;QACT;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDC,MAAM;QACF;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDC,WAAW;QACP;QACA;QACA;QACA;QACA;QACA;QACA;KACH;AACL;AACO,MAAMX,0BAA0B;IACnCN;IACAG;IACAC;IACAH;IACAC;AACJ;AACO,MAAMK,2BAA2B;IACpC,GAAGF,yBAAyB;IAC5Ba,WAAW;IACXC,wBAAwB;IACxBC,oBAAoB;IACpBC,oBAAoB;IACpBC,mBAAmB;IACnBC,mBAAmB;IACnBC,wBAAwB;IACxBC,wBAAwB;IACxBC,sBAAsB;IACtBC,0BAA0B;IAC1BC,uBAAuB;IACvBC,4BAA4B;IAC5BC,2BAA2B;IAC3BC,oBAAoB;AACxB"}
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./dateFormatting.defaults"), exports);
7
- _exportStar(require("./dateFormatting.types"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./dateFormatting.defaults"), exports);
7
+ _export_star._(require("./dateFormatting.types"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './dateFormatting.defaults';\nexport * from './dateFormatting.types';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './dateFormatting.defaults';\nexport * from './dateFormatting.types';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA"}
@@ -4,14 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "findAvailableDate", {
6
6
  enumerable: true,
7
- get: ()=>findAvailableDate
7
+ get: function() {
8
+ return findAvailableDate;
9
+ }
8
10
  });
9
11
  const _isRestrictedDate = require("./isRestrictedDate");
10
12
  const _isAfterMaxDate = require("./isAfterMaxDate");
11
13
  const _isBeforeMinDate = require("./isBeforeMinDate");
12
14
  const _dateMath = require("../dateMath/dateMath");
13
15
  const findAvailableDate = (options)=>{
14
- const { targetDate , initialDate , direction , ...restrictedDateOptions } = options;
16
+ const { targetDate, initialDate, direction, ...restrictedDateOptions } = options;
15
17
  let availableDate = targetDate;
16
18
  // if the target date is available, return it immediately
17
19
  if (!(0, _isRestrictedDate.isRestrictedDate)(targetDate, restrictedDateOptions)) {
@@ -1 +1 @@
1
- {"version":3,"sources":["findAvailableDate.js"],"sourcesContent":["import { isRestrictedDate } from './isRestrictedDate';\nimport { isAfterMaxDate } from './isAfterMaxDate';\nimport { isBeforeMinDate } from './isBeforeMinDate';\nimport { compareDatePart, addDays } from '../dateMath/dateMath';\n/**\n * Returns closest available date given the restriction `options`, or undefined otherwise\n * @param options - list of search options\n */ export const findAvailableDate = (options)=>{\n const { targetDate , initialDate , direction , ...restrictedDateOptions } = options;\n let availableDate = targetDate;\n // if the target date is available, return it immediately\n if (!isRestrictedDate(targetDate, restrictedDateOptions)) {\n return targetDate;\n }\n while(compareDatePart(initialDate, availableDate) !== 0 && isRestrictedDate(availableDate, restrictedDateOptions) && !isAfterMaxDate(availableDate, restrictedDateOptions) && !isBeforeMinDate(availableDate, restrictedDateOptions)){\n availableDate = addDays(availableDate, direction);\n }\n if (compareDatePart(initialDate, availableDate) !== 0 && !isRestrictedDate(availableDate, restrictedDateOptions)) {\n return availableDate;\n }\n return undefined;\n};\n"],"names":["findAvailableDate","options","targetDate","initialDate","direction","restrictedDateOptions","availableDate","isRestrictedDate","compareDatePart","isAfterMaxDate","isBeforeMinDate","addDays","undefined"],"mappings":";;;;+BAOiBA;;aAAAA;;kCAPgB;gCACF;iCACC;0BACS;AAI9B,MAAMA,oBAAoB,CAACC,UAAU;IAC5C,MAAM,EAAEC,WAAU,EAAGC,YAAW,EAAGC,UAAS,EAAG,GAAGC,uBAAuB,GAAGJ;IAC5E,IAAIK,gBAAgBJ;IACpB,yDAAyD;IACzD,IAAI,CAACK,IAAAA,kCAAgB,EAACL,YAAYG,wBAAwB;QACtD,OAAOH;IACX,CAAC;IACD,MAAMM,IAAAA,yBAAe,EAACL,aAAaG,mBAAmB,KAAKC,IAAAA,kCAAgB,EAACD,eAAeD,0BAA0B,CAACI,IAAAA,8BAAc,EAACH,eAAeD,0BAA0B,CAACK,IAAAA,gCAAe,EAACJ,eAAeD,uBAAuB;QACjOC,gBAAgBK,IAAAA,iBAAO,EAACL,eAAeF;IAC3C;IACA,IAAII,IAAAA,yBAAe,EAACL,aAAaG,mBAAmB,KAAK,CAACC,IAAAA,kCAAgB,EAACD,eAAeD,wBAAwB;QAC9G,OAAOC;IACX,CAAC;IACD,OAAOM;AACX"}
1
+ {"version":3,"sources":["findAvailableDate.js"],"sourcesContent":["import { isRestrictedDate } from './isRestrictedDate';\nimport { isAfterMaxDate } from './isAfterMaxDate';\nimport { isBeforeMinDate } from './isBeforeMinDate';\nimport { compareDatePart, addDays } from '../dateMath/dateMath';\n/**\n * Returns closest available date given the restriction `options`, or undefined otherwise\n * @param options - list of search options\n */ export const findAvailableDate = (options)=>{\n const { targetDate, initialDate, direction, ...restrictedDateOptions } = options;\n let availableDate = targetDate;\n // if the target date is available, return it immediately\n if (!isRestrictedDate(targetDate, restrictedDateOptions)) {\n return targetDate;\n }\n while(compareDatePart(initialDate, availableDate) !== 0 && isRestrictedDate(availableDate, restrictedDateOptions) && !isAfterMaxDate(availableDate, restrictedDateOptions) && !isBeforeMinDate(availableDate, restrictedDateOptions)){\n availableDate = addDays(availableDate, direction);\n }\n if (compareDatePart(initialDate, availableDate) !== 0 && !isRestrictedDate(availableDate, restrictedDateOptions)) {\n return availableDate;\n }\n return undefined;\n};\n"],"names":["findAvailableDate","options","targetDate","initialDate","direction","restrictedDateOptions","availableDate","isRestrictedDate","compareDatePart","isAfterMaxDate","isBeforeMinDate","addDays","undefined"],"mappings":";;;;+BAOiBA;;;eAAAA;;;kCAPgB;gCACF;iCACC;0BACS;AAI9B,MAAMA,oBAAoB,CAACC;IAClC,MAAM,EAAEC,UAAU,EAAEC,WAAW,EAAEC,SAAS,EAAE,GAAGC,uBAAuB,GAAGJ;IACzE,IAAIK,gBAAgBJ;IACpB,yDAAyD;IACzD,IAAI,CAACK,IAAAA,kCAAgB,EAACL,YAAYG,wBAAwB;QACtD,OAAOH;IACX;IACA,MAAMM,IAAAA,yBAAe,EAACL,aAAaG,mBAAmB,KAAKC,IAAAA,kCAAgB,EAACD,eAAeD,0BAA0B,CAACI,IAAAA,8BAAc,EAACH,eAAeD,0BAA0B,CAACK,IAAAA,gCAAe,EAACJ,eAAeD,uBAAuB;QACjOC,gBAAgBK,IAAAA,iBAAO,EAACL,eAAeF;IAC3C;IACA,IAAII,IAAAA,yBAAe,EAACL,aAAaG,mBAAmB,KAAK,CAACC,IAAAA,kCAAgB,EAACD,eAAeD,wBAAwB;QAC9G,OAAOC;IACX;IACA,OAAOM;AACX"}
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "getBoundedDateRange", {
6
6
  enumerable: true,
7
- get: ()=>getBoundedDateRange
7
+ get: function() {
8
+ return getBoundedDateRange;
9
+ }
8
10
  });
9
11
  const _dateMath = require("../dateMath/dateMath");
10
12
  const getBoundedDateRange = (dateRange, minDate, maxDate)=>{
@@ -1 +1 @@
1
- {"version":3,"sources":["getBoundedDateRange.js"],"sourcesContent":["import { compareDatePart } from '../dateMath/dateMath';\n/**\n * Generates a list of dates, bounded by min and max dates\n * @param dateRange - input date range\n * @param minDate - min date to limit the range\n * @param maxDate - max date to limit the range\n */ export const getBoundedDateRange = (dateRange, minDate, maxDate)=>{\n let boundedDateRange = [\n ...dateRange\n ];\n if (minDate) {\n boundedDateRange = boundedDateRange.filter((date)=>compareDatePart(date, minDate) >= 0);\n }\n if (maxDate) {\n boundedDateRange = boundedDateRange.filter((date)=>compareDatePart(date, maxDate) <= 0);\n }\n return boundedDateRange;\n};\n"],"names":["getBoundedDateRange","dateRange","minDate","maxDate","boundedDateRange","filter","date","compareDatePart"],"mappings":";;;;+BAMiBA;;aAAAA;;0BANe;AAMrB,MAAMA,sBAAsB,CAACC,WAAWC,SAASC,UAAU;IAClE,IAAIC,mBAAmB;WAChBH;KACN;IACD,IAAIC,SAAS;QACTE,mBAAmBA,iBAAiBC,MAAM,CAAC,CAACC,OAAOC,IAAAA,yBAAe,EAACD,MAAMJ,YAAY;IACzF,CAAC;IACD,IAAIC,SAAS;QACTC,mBAAmBA,iBAAiBC,MAAM,CAAC,CAACC,OAAOC,IAAAA,yBAAe,EAACD,MAAMH,YAAY;IACzF,CAAC;IACD,OAAOC;AACX"}
1
+ {"version":3,"sources":["getBoundedDateRange.js"],"sourcesContent":["import { compareDatePart } from '../dateMath/dateMath';\n/**\n * Generates a list of dates, bounded by min and max dates\n * @param dateRange - input date range\n * @param minDate - min date to limit the range\n * @param maxDate - max date to limit the range\n */ export const getBoundedDateRange = (dateRange, minDate, maxDate)=>{\n let boundedDateRange = [\n ...dateRange\n ];\n if (minDate) {\n boundedDateRange = boundedDateRange.filter((date)=>compareDatePart(date, minDate) >= 0);\n }\n if (maxDate) {\n boundedDateRange = boundedDateRange.filter((date)=>compareDatePart(date, maxDate) <= 0);\n }\n return boundedDateRange;\n};\n"],"names":["getBoundedDateRange","dateRange","minDate","maxDate","boundedDateRange","filter","date","compareDatePart"],"mappings":";;;;+BAMiBA;;;eAAAA;;;0BANe;AAMrB,MAAMA,sBAAsB,CAACC,WAAWC,SAASC;IACxD,IAAIC,mBAAmB;WAChBH;KACN;IACD,IAAIC,SAAS;QACTE,mBAAmBA,iBAAiBC,MAAM,CAAC,CAACC,OAAOC,IAAAA,yBAAe,EAACD,MAAMJ,YAAY;IACzF;IACA,IAAIC,SAAS;QACTC,mBAAmBA,iBAAiBC,MAAM,CAAC,CAACC,OAAOC,IAAAA,yBAAe,EAACD,MAAMH,YAAY;IACzF;IACA,OAAOC;AACX"}
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "getDateRangeTypeToUse", {
6
6
  enumerable: true,
7
- get: ()=>getDateRangeTypeToUse
7
+ get: function() {
8
+ return getDateRangeTypeToUse;
9
+ }
8
10
  });
9
11
  const _constants = require("../constants");
10
12
  const _isContiguous = require("./isContiguous");
@@ -1 +1 @@
1
- {"version":3,"sources":["getDateRangeTypeToUse.js"],"sourcesContent":["import { DateRangeType } from '../constants';\nimport { isContiguous } from './isContiguous';\n/**\n * Return corrected date range type, given `dateRangeType` and list of working days.\n * For non-contiguous working days and working week range type, returns general week range type.\n * For other cases returns input date range type.\n * @param dateRangeType - input type of range\n * @param workWeekDays - list of working days in a week\n */ export const getDateRangeTypeToUse = (dateRangeType, workWeekDays, firstDayOfWeek)=>{\n if (workWeekDays && dateRangeType === DateRangeType.WorkWeek) {\n if (!isContiguous(workWeekDays, true, firstDayOfWeek) || workWeekDays.length === 0) {\n return DateRangeType.Week;\n }\n }\n return dateRangeType;\n};\n"],"names":["getDateRangeTypeToUse","dateRangeType","workWeekDays","firstDayOfWeek","DateRangeType","WorkWeek","isContiguous","length","Week"],"mappings":";;;;+BAQiBA;;aAAAA;;2BARa;8BACD;AAOlB,MAAMA,wBAAwB,CAACC,eAAeC,cAAcC,iBAAiB;IACpF,IAAID,gBAAgBD,kBAAkBG,wBAAa,CAACC,QAAQ,EAAE;QAC1D,IAAI,CAACC,IAAAA,0BAAY,EAACJ,cAAc,IAAI,EAAEC,mBAAmBD,aAAaK,MAAM,KAAK,GAAG;YAChF,OAAOH,wBAAa,CAACI,IAAI;QAC7B,CAAC;IACL,CAAC;IACD,OAAOP;AACX"}
1
+ {"version":3,"sources":["getDateRangeTypeToUse.js"],"sourcesContent":["import { DateRangeType } from '../constants';\nimport { isContiguous } from './isContiguous';\n/**\n * Return corrected date range type, given `dateRangeType` and list of working days.\n * For non-contiguous working days and working week range type, returns general week range type.\n * For other cases returns input date range type.\n * @param dateRangeType - input type of range\n * @param workWeekDays - list of working days in a week\n */ export const getDateRangeTypeToUse = (dateRangeType, workWeekDays, firstDayOfWeek)=>{\n if (workWeekDays && dateRangeType === DateRangeType.WorkWeek) {\n if (!isContiguous(workWeekDays, true, firstDayOfWeek) || workWeekDays.length === 0) {\n return DateRangeType.Week;\n }\n }\n return dateRangeType;\n};\n"],"names":["getDateRangeTypeToUse","dateRangeType","workWeekDays","firstDayOfWeek","DateRangeType","WorkWeek","isContiguous","length","Week"],"mappings":";;;;+BAQiBA;;;eAAAA;;;2BARa;8BACD;AAOlB,MAAMA,wBAAwB,CAACC,eAAeC,cAAcC;IACnE,IAAID,gBAAgBD,kBAAkBG,wBAAa,CAACC,QAAQ,EAAE;QAC1D,IAAI,CAACC,IAAAA,0BAAY,EAACJ,cAAc,MAAMC,mBAAmBD,aAAaK,MAAM,KAAK,GAAG;YAChF,OAAOH,wBAAa,CAACI,IAAI;QAC7B;IACJ;IACA,OAAOP;AACX"}
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "getDayGrid", {
6
6
  enumerable: true,
7
- get: ()=>getDayGrid
7
+ get: function() {
8
+ return getDayGrid;
9
+ }
8
10
  });
9
11
  const _dateMath = require("../dateMath/dateMath");
10
12
  const _constants = require("../constants");
@@ -12,7 +14,7 @@ const _getDateRangeTypeToUse = require("./getDateRangeTypeToUse");
12
14
  const _getBoundedDateRange = require("./getBoundedDateRange");
13
15
  const _isRestrictedDate = require("./isRestrictedDate");
14
16
  const getDayGrid = (options)=>{
15
- const { selectedDate , dateRangeType , firstDayOfWeek , today , minDate , maxDate , weeksToShow , workWeekDays , daysToSelectInDayView , restrictedDates , markedDays } = options;
17
+ const { selectedDate, dateRangeType, firstDayOfWeek, today, minDate, maxDate, weeksToShow, workWeekDays, daysToSelectInDayView, restrictedDates, markedDays } = options;
16
18
  const restrictedDateOptions = {
17
19
  minDate,
18
20
  maxDate,
@@ -48,6 +50,7 @@ const getDayGrid = (options)=>{
48
50
  const week = [];
49
51
  isAllDaysOfWeekOutOfMonth = true;
50
52
  for(let dayIndex = 0; dayIndex < _constants.DAYS_IN_WEEK; dayIndex++){
53
+ var _markedDays;
51
54
  const originalDate = new Date(date.getTime());
52
55
  const dayInfo = {
53
56
  key: date.toString(),
@@ -57,7 +60,7 @@ const getDayGrid = (options)=>{
57
60
  isToday: (0, _dateMath.compareDates)(todaysDate, date),
58
61
  isSelected: (0, _dateMath.isInDateRangeArray)(date, selectedDates),
59
62
  isInBounds: !(0, _isRestrictedDate.isRestrictedDate)(date, restrictedDateOptions),
60
- isMarked: (markedDays === null || markedDays === void 0 ? void 0 : markedDays.some((markedDay)=>(0, _dateMath.compareDates)(originalDate, markedDay))) || false
63
+ isMarked: ((_markedDays = markedDays) === null || _markedDays === void 0 ? void 0 : _markedDays.some((markedDay)=>(0, _dateMath.compareDates)(originalDate, markedDay))) || false
61
64
  };
62
65
  week.push(dayInfo);
63
66
  if (dayInfo.isInMonth) {
@@ -1 +1 @@
1
- {"version":3,"sources":["getDayGrid.js"],"sourcesContent":["import { addDays, compareDates, getDateRangeArray, isInDateRangeArray } from '../dateMath/dateMath';\nimport { DAYS_IN_WEEK } from '../constants';\nimport { getDateRangeTypeToUse } from './getDateRangeTypeToUse';\nimport { getBoundedDateRange } from './getBoundedDateRange';\nimport { isRestrictedDate } from './isRestrictedDate';\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 */ export const getDayGrid = (options)=>{\n const { selectedDate , dateRangeType , firstDayOfWeek , today , minDate , maxDate , weeksToShow , workWeekDays , daysToSelectInDayView , restrictedDates , markedDays } = options;\n const restrictedDateOptions = {\n minDate,\n maxDate,\n restrictedDates\n };\n const todaysDate = today || new Date();\n const navigatedDate = options.navigatedDate ? options.navigatedDate : todaysDate;\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 = [];\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 // add the transition week as last week of previous range\n date = addDays(date, -DAYS_IN_WEEK);\n // a flag to indicate whether all days of the week are outside the month\n let isAllDaysOfWeekOutOfMonth = false;\n // in work week view if the days aren't contiguous we use week view instead\n const selectedDateRangeType = getDateRangeTypeToUse(dateRangeType, workWeekDays, firstDayOfWeek);\n let selectedDates = [];\n if (selectedDate) {\n selectedDates = getDateRangeArray(selectedDate, selectedDateRangeType, firstDayOfWeek, workWeekDays, daysToSelectInDayView);\n selectedDates = getBoundedDateRange(selectedDates, minDate, maxDate);\n }\n let shouldGetWeeks = true;\n for(let weekIndex = 0; shouldGetWeeks; weekIndex++){\n const week = [];\n isAllDaysOfWeekOutOfMonth = true;\n for(let dayIndex = 0; dayIndex < DAYS_IN_WEEK; dayIndex++){\n const originalDate = new Date(date.getTime());\n const dayInfo = {\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 isInBounds: !isRestrictedDate(date, restrictedDateOptions),\n isMarked: (markedDays === null || markedDays === void 0 ? void 0 : markedDays.some((markedDay)=>compareDates(originalDate, markedDay))) || false\n };\n week.push(dayInfo);\n if (dayInfo.isInMonth) {\n isAllDaysOfWeekOutOfMonth = false;\n }\n date.setDate(date.getDate() + 1);\n }\n // We append the condition of the loop depending upon the showSixWeeksByDefault prop.\n shouldGetWeeks = weeksToShow ? weekIndex < weeksToShow + 1 : !isAllDaysOfWeekOutOfMonth || weekIndex === 0;\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 return weeks;\n};\n"],"names":["getDayGrid","options","selectedDate","dateRangeType","firstDayOfWeek","today","minDate","maxDate","weeksToShow","workWeekDays","daysToSelectInDayView","restrictedDates","markedDays","restrictedDateOptions","todaysDate","Date","navigatedDate","date","getFullYear","getMonth","getDate","weeks","getDay","setDate","addDays","DAYS_IN_WEEK","isAllDaysOfWeekOutOfMonth","selectedDateRangeType","getDateRangeTypeToUse","selectedDates","getDateRangeArray","getBoundedDateRange","shouldGetWeeks","weekIndex","week","dayIndex","originalDate","getTime","dayInfo","key","toString","isInMonth","isToday","compareDates","isSelected","isInDateRangeArray","isInBounds","isRestrictedDate","isMarked","some","markedDay","push"],"mappings":";;;;+BAUiBA;;aAAAA;;0BAV4D;2BAChD;uCACS;qCACF;kCACH;AAMtB,MAAMA,aAAa,CAACC,UAAU;IACrC,MAAM,EAAEC,aAAY,EAAGC,cAAa,EAAGC,eAAc,EAAGC,MAAK,EAAGC,QAAO,EAAGC,QAAO,EAAGC,YAAW,EAAGC,aAAY,EAAGC,sBAAqB,EAAGC,gBAAe,EAAGC,WAAU,EAAG,GAAGX;IAC3K,MAAMY,wBAAwB;QAC1BP;QACAC;QACAI;IACJ;IACA,MAAMG,aAAaT,SAAS,IAAIU;IAChC,MAAMC,gBAAgBf,QAAQe,aAAa,GAAGf,QAAQe,aAAa,GAAGF,UAAU;IAChF,IAAIG;IACJ,IAAIT,eAAeA,eAAe,GAAG;QACjC,oEAAoE;QACpES,OAAO,IAAIF,KAAKC,cAAcE,WAAW,IAAIF,cAAcG,QAAQ,IAAIH,cAAcI,OAAO;IAChG,OAAO;QACHH,OAAO,IAAIF,KAAKC,cAAcE,WAAW,IAAIF,cAAcG,QAAQ,IAAI;IAC3E,CAAC;IACD,MAAME,QAAQ,EAAE;IAChB,gEAAgE;IAChE,MAAMJ,KAAKK,MAAM,OAAOlB,eAAe;QACnCa,KAAKM,OAAO,CAACN,KAAKG,OAAO,KAAK;IAClC;IACA,yDAAyD;IACzDH,OAAOO,IAAAA,iBAAO,EAACP,MAAM,CAACQ,uBAAY;IAClC,wEAAwE;IACxE,IAAIC,4BAA4B,KAAK;IACrC,2EAA2E;IAC3E,MAAMC,wBAAwBC,IAAAA,4CAAqB,EAACzB,eAAeM,cAAcL;IACjF,IAAIyB,gBAAgB,EAAE;IACtB,IAAI3B,cAAc;QACd2B,gBAAgBC,IAAAA,2BAAiB,EAAC5B,cAAcyB,uBAAuBvB,gBAAgBK,cAAcC;QACrGmB,gBAAgBE,IAAAA,wCAAmB,EAACF,eAAevB,SAASC;IAChE,CAAC;IACD,IAAIyB,iBAAiB,IAAI;IACzB,IAAI,IAAIC,YAAY,GAAGD,gBAAgBC,YAAY;QAC/C,MAAMC,OAAO,EAAE;QACfR,4BAA4B,IAAI;QAChC,IAAI,IAAIS,WAAW,GAAGA,WAAWV,uBAAY,EAAEU,WAAW;YACtD,MAAMC,eAAe,IAAIrB,KAAKE,KAAKoB,OAAO;YAC1C,MAAMC,UAAU;gBACZC,KAAKtB,KAAKuB,QAAQ;gBAClBvB,MAAMA,KAAKG,OAAO,GAAGoB,QAAQ;gBAC7BJ;gBACAK,WAAWxB,KAAKE,QAAQ,OAAOH,cAAcG,QAAQ;gBACrDuB,SAASC,IAAAA,sBAAY,EAAC7B,YAAYG;gBAClC2B,YAAYC,IAAAA,4BAAkB,EAAC5B,MAAMY;gBACrCiB,YAAY,CAACC,IAAAA,kCAAgB,EAAC9B,MAAMJ;gBACpCmC,UAAU,AAACpC,CAAAA,eAAe,IAAI,IAAIA,eAAe,KAAK,IAAI,KAAK,IAAIA,WAAWqC,IAAI,CAAC,CAACC,YAAYP,IAAAA,sBAAY,EAACP,cAAcc,WAAW,AAAD,KAAM,KAAK;YACpJ;YACAhB,KAAKiB,IAAI,CAACb;YACV,IAAIA,QAAQG,SAAS,EAAE;gBACnBf,4BAA4B,KAAK;YACrC,CAAC;YACDT,KAAKM,OAAO,CAACN,KAAKG,OAAO,KAAK;QAClC;QACA,qFAAqF;QACrFY,iBAAiBxB,cAAcyB,YAAYzB,cAAc,IAAI,CAACkB,6BAA6BO,cAAc,CAAC;QAC1G,0GAA0G;QAC1GZ,MAAM8B,IAAI,CAACjB;IACf;IACA,OAAOb;AACX"}
1
+ {"version":3,"sources":["getDayGrid.js"],"sourcesContent":["import { addDays, compareDates, getDateRangeArray, isInDateRangeArray } from '../dateMath/dateMath';\nimport { DAYS_IN_WEEK } from '../constants';\nimport { getDateRangeTypeToUse } from './getDateRangeTypeToUse';\nimport { getBoundedDateRange } from './getBoundedDateRange';\nimport { isRestrictedDate } from './isRestrictedDate';\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 */ export const getDayGrid = (options)=>{\n const { selectedDate, dateRangeType, firstDayOfWeek, today, minDate, maxDate, weeksToShow, workWeekDays, daysToSelectInDayView, restrictedDates, markedDays } = options;\n const restrictedDateOptions = {\n minDate,\n maxDate,\n restrictedDates\n };\n const todaysDate = today || new Date();\n const navigatedDate = options.navigatedDate ? options.navigatedDate : todaysDate;\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 = [];\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 // add the transition week as last week of previous range\n date = addDays(date, -DAYS_IN_WEEK);\n // a flag to indicate whether all days of the week are outside the month\n let isAllDaysOfWeekOutOfMonth = false;\n // in work week view if the days aren't contiguous we use week view instead\n const selectedDateRangeType = getDateRangeTypeToUse(dateRangeType, workWeekDays, firstDayOfWeek);\n let selectedDates = [];\n if (selectedDate) {\n selectedDates = getDateRangeArray(selectedDate, selectedDateRangeType, firstDayOfWeek, workWeekDays, daysToSelectInDayView);\n selectedDates = getBoundedDateRange(selectedDates, minDate, maxDate);\n }\n let shouldGetWeeks = true;\n for(let weekIndex = 0; shouldGetWeeks; weekIndex++){\n const week = [];\n isAllDaysOfWeekOutOfMonth = true;\n for(let dayIndex = 0; dayIndex < DAYS_IN_WEEK; dayIndex++){\n var _markedDays;\n const originalDate = new Date(date.getTime());\n const dayInfo = {\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 isInBounds: !isRestrictedDate(date, restrictedDateOptions),\n isMarked: ((_markedDays = markedDays) === null || _markedDays === void 0 ? void 0 : _markedDays.some((markedDay)=>compareDates(originalDate, markedDay))) || false\n };\n week.push(dayInfo);\n if (dayInfo.isInMonth) {\n isAllDaysOfWeekOutOfMonth = false;\n }\n date.setDate(date.getDate() + 1);\n }\n // We append the condition of the loop depending upon the showSixWeeksByDefault prop.\n shouldGetWeeks = weeksToShow ? weekIndex < weeksToShow + 1 : !isAllDaysOfWeekOutOfMonth || weekIndex === 0;\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 return weeks;\n};\n"],"names":["getDayGrid","options","selectedDate","dateRangeType","firstDayOfWeek","today","minDate","maxDate","weeksToShow","workWeekDays","daysToSelectInDayView","restrictedDates","markedDays","restrictedDateOptions","todaysDate","Date","navigatedDate","date","getFullYear","getMonth","getDate","weeks","getDay","setDate","addDays","DAYS_IN_WEEK","isAllDaysOfWeekOutOfMonth","selectedDateRangeType","getDateRangeTypeToUse","selectedDates","getDateRangeArray","getBoundedDateRange","shouldGetWeeks","weekIndex","week","dayIndex","_markedDays","originalDate","getTime","dayInfo","key","toString","isInMonth","isToday","compareDates","isSelected","isInDateRangeArray","isInBounds","isRestrictedDate","isMarked","some","markedDay","push"],"mappings":";;;;+BAUiBA;;;eAAAA;;;0BAV4D;2BAChD;uCACS;qCACF;kCACH;AAMtB,MAAMA,aAAa,CAACC;IAC3B,MAAM,EAAEC,YAAY,EAAEC,aAAa,EAAEC,cAAc,EAAEC,KAAK,EAAEC,OAAO,EAAEC,OAAO,EAAEC,WAAW,EAAEC,YAAY,EAAEC,qBAAqB,EAAEC,eAAe,EAAEC,UAAU,EAAE,GAAGX;IAChK,MAAMY,wBAAwB;QAC1BP;QACAC;QACAI;IACJ;IACA,MAAMG,aAAaT,SAAS,IAAIU;IAChC,MAAMC,gBAAgBf,QAAQe,aAAa,GAAGf,QAAQe,aAAa,GAAGF;IACtE,IAAIG;IACJ,IAAIT,eAAeA,eAAe,GAAG;QACjC,oEAAoE;QACpES,OAAO,IAAIF,KAAKC,cAAcE,WAAW,IAAIF,cAAcG,QAAQ,IAAIH,cAAcI,OAAO;IAChG,OAAO;QACHH,OAAO,IAAIF,KAAKC,cAAcE,WAAW,IAAIF,cAAcG,QAAQ,IAAI;IAC3E;IACA,MAAME,QAAQ,EAAE;IAChB,gEAAgE;IAChE,MAAMJ,KAAKK,MAAM,OAAOlB,eAAe;QACnCa,KAAKM,OAAO,CAACN,KAAKG,OAAO,KAAK;IAClC;IACA,yDAAyD;IACzDH,OAAOO,IAAAA,iBAAO,EAACP,MAAM,CAACQ,uBAAY;IAClC,wEAAwE;IACxE,IAAIC,4BAA4B;IAChC,2EAA2E;IAC3E,MAAMC,wBAAwBC,IAAAA,4CAAqB,EAACzB,eAAeM,cAAcL;IACjF,IAAIyB,gBAAgB,EAAE;IACtB,IAAI3B,cAAc;QACd2B,gBAAgBC,IAAAA,2BAAiB,EAAC5B,cAAcyB,uBAAuBvB,gBAAgBK,cAAcC;QACrGmB,gBAAgBE,IAAAA,wCAAmB,EAACF,eAAevB,SAASC;IAChE;IACA,IAAIyB,iBAAiB;IACrB,IAAI,IAAIC,YAAY,GAAGD,gBAAgBC,YAAY;QAC/C,MAAMC,OAAO,EAAE;QACfR,4BAA4B;QAC5B,IAAI,IAAIS,WAAW,GAAGA,WAAWV,uBAAY,EAAEU,WAAW;YACtD,IAAIC;YACJ,MAAMC,eAAe,IAAItB,KAAKE,KAAKqB,OAAO;YAC1C,MAAMC,UAAU;gBACZC,KAAKvB,KAAKwB,QAAQ;gBAClBxB,MAAMA,KAAKG,OAAO,GAAGqB,QAAQ;gBAC7BJ;gBACAK,WAAWzB,KAAKE,QAAQ,OAAOH,cAAcG,QAAQ;gBACrDwB,SAASC,IAAAA,sBAAY,EAAC9B,YAAYG;gBAClC4B,YAAYC,IAAAA,4BAAkB,EAAC7B,MAAMY;gBACrCkB,YAAY,CAACC,IAAAA,kCAAgB,EAAC/B,MAAMJ;gBACpCoC,UAAU,AAAC,CAAA,AAACb,CAAAA,cAAcxB,UAAS,MAAO,QAAQwB,gBAAgB,KAAK,IAAI,KAAK,IAAIA,YAAYc,IAAI,CAAC,CAACC,YAAYP,IAAAA,sBAAY,EAACP,cAAcc,WAAU,KAAM;YACjK;YACAjB,KAAKkB,IAAI,CAACb;YACV,IAAIA,QAAQG,SAAS,EAAE;gBACnBhB,4BAA4B;YAChC;YACAT,KAAKM,OAAO,CAACN,KAAKG,OAAO,KAAK;QAClC;QACA,qFAAqF;QACrFY,iBAAiBxB,cAAcyB,YAAYzB,cAAc,IAAI,CAACkB,6BAA6BO,cAAc;QACzG,0GAA0G;QAC1GZ,MAAM+B,IAAI,CAAClB;IACf;IACA,OAAOb;AACX"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./dateGrid.types"), exports);
7
- _exportStar(require("./findAvailableDate"), exports);
8
- _exportStar(require("./getBoundedDateRange"), exports);
9
- _exportStar(require("./getDayGrid"), exports);
10
- _exportStar(require("./isRestrictedDate"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./dateGrid.types"), exports);
7
+ _export_star._(require("./findAvailableDate"), exports);
8
+ _export_star._(require("./getBoundedDateRange"), exports);
9
+ _export_star._(require("./getDayGrid"), exports);
10
+ _export_star._(require("./isRestrictedDate"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './dateGrid.types';\nexport * from './findAvailableDate';\nexport * from './getBoundedDateRange';\nexport * from './getDayGrid';\nexport * from './isRestrictedDate';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './dateGrid.types';\nexport * from './findAvailableDate';\nexport * from './getBoundedDateRange';\nexport * from './getDayGrid';\nexport * from './isRestrictedDate';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA"}
@@ -4,10 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "isAfterMaxDate", {
6
6
  enumerable: true,
7
- get: ()=>isAfterMaxDate
7
+ get: function() {
8
+ return isAfterMaxDate;
9
+ }
8
10
  });
9
11
  const _dateMath = require("../dateMath/dateMath");
10
12
  const isAfterMaxDate = (date, options)=>{
11
- const { maxDate } = options;
13
+ const { maxDate } = options;
12
14
  return maxDate ? (0, _dateMath.compareDatePart)(date, maxDate) >= 1 : false;
13
15
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["isAfterMaxDate.js"],"sourcesContent":["import { compareDatePart } from '../dateMath/dateMath';\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 */ export const isAfterMaxDate = (date, options)=>{\n const { maxDate } = options;\n return maxDate ? compareDatePart(date, maxDate) >= 1 : false;\n};\n"],"names":["isAfterMaxDate","date","options","maxDate","compareDatePart"],"mappings":";;;;+BAKiBA;;aAAAA;;0BALe;AAKrB,MAAMA,iBAAiB,CAACC,MAAMC,UAAU;IAC/C,MAAM,EAAEC,QAAO,EAAG,GAAGD;IACrB,OAAOC,UAAUC,IAAAA,yBAAe,EAACH,MAAME,YAAY,IAAI,KAAK;AAChE"}
1
+ {"version":3,"sources":["isAfterMaxDate.js"],"sourcesContent":["import { compareDatePart } from '../dateMath/dateMath';\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 */ export const isAfterMaxDate = (date, options)=>{\n const { maxDate } = options;\n return maxDate ? compareDatePart(date, maxDate) >= 1 : false;\n};\n"],"names":["isAfterMaxDate","date","options","maxDate","compareDatePart"],"mappings":";;;;+BAKiBA;;;eAAAA;;;0BALe;AAKrB,MAAMA,iBAAiB,CAACC,MAAMC;IACrC,MAAM,EAAEC,OAAO,EAAE,GAAGD;IACpB,OAAOC,UAAUC,IAAAA,yBAAe,EAACH,MAAME,YAAY,IAAI;AAC3D"}
@@ -4,10 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "isBeforeMinDate", {
6
6
  enumerable: true,
7
- get: ()=>isBeforeMinDate
7
+ get: function() {
8
+ return isBeforeMinDate;
9
+ }
8
10
  });
9
11
  const _dateMath = require("../dateMath/dateMath");
10
12
  const isBeforeMinDate = (date, options)=>{
11
- const { minDate } = options;
13
+ const { minDate } = options;
12
14
  return minDate ? (0, _dateMath.compareDatePart)(minDate, date) >= 1 : false;
13
15
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["isBeforeMinDate.js"],"sourcesContent":["import { compareDatePart } from '../dateMath/dateMath';\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 */ export const isBeforeMinDate = (date, options)=>{\n const { minDate } = options;\n return minDate ? compareDatePart(minDate, date) >= 1 : false;\n};\n"],"names":["isBeforeMinDate","date","options","minDate","compareDatePart"],"mappings":";;;;+BAKiBA;;aAAAA;;0BALe;AAKrB,MAAMA,kBAAkB,CAACC,MAAMC,UAAU;IAChD,MAAM,EAAEC,QAAO,EAAG,GAAGD;IACrB,OAAOC,UAAUC,IAAAA,yBAAe,EAACD,SAASF,SAAS,IAAI,KAAK;AAChE"}
1
+ {"version":3,"sources":["isBeforeMinDate.js"],"sourcesContent":["import { compareDatePart } from '../dateMath/dateMath';\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 */ export const isBeforeMinDate = (date, options)=>{\n const { minDate } = options;\n return minDate ? compareDatePart(minDate, date) >= 1 : false;\n};\n"],"names":["isBeforeMinDate","date","options","minDate","compareDatePart"],"mappings":";;;;+BAKiBA;;;eAAAA;;;0BALe;AAKrB,MAAMA,kBAAkB,CAACC,MAAMC;IACtC,MAAM,EAAEC,OAAO,EAAE,GAAGD;IACpB,OAAOC,UAAUC,IAAAA,yBAAe,EAACD,SAASF,SAAS,IAAI;AAC3D"}
@@ -9,7 +9,9 @@ Object.defineProperty(exports, "__esModule", {
9
9
  });
10
10
  Object.defineProperty(exports, "isContiguous", {
11
11
  enumerable: true,
12
- get: ()=>isContiguous
12
+ get: function() {
13
+ return isContiguous;
14
+ }
13
15
  });
14
16
  const isContiguous = (days, isSingleWeek, firstDayOfWeek)=>{
15
17
  const daySet = new Set(days);
@@ -1 +1 @@
1
- {"version":3,"sources":["isContiguous.js"],"sourcesContent":["/**\n * Returns whether provided week days are contiguous.\n * @param days - list of days in a week\n * @param isSingleWeek - decides whether the contiguous logic applies across week boundaries or not\n * @param firstDayOfWeek - decides which day of week is the first one in the order.\n */ export const isContiguous = (days, isSingleWeek, firstDayOfWeek)=>{\n const daySet = new Set(days);\n let amountOfNoNeighbors = 0;\n for (const day of days){\n const nextDay = (day + 1) % 7;\n if (!(daySet.has(nextDay) && (!isSingleWeek || firstDayOfWeek !== nextDay))) {\n amountOfNoNeighbors++;\n }\n }\n // In case the full week is provided, then each day has a neighbor\n //, otherwise the last day does not have a neighbor.\n return amountOfNoNeighbors < 2;\n};\n"],"names":["isContiguous","days","isSingleWeek","firstDayOfWeek","daySet","Set","amountOfNoNeighbors","day","nextDay","has"],"mappings":"AAAA;;;;;CAKC;;;;+BAAgBA;;aAAAA;;AAAN,MAAMA,eAAe,CAACC,MAAMC,cAAcC,iBAAiB;IAClE,MAAMC,SAAS,IAAIC,IAAIJ;IACvB,IAAIK,sBAAsB;IAC1B,KAAK,MAAMC,OAAON,KAAK;QACnB,MAAMO,UAAU,AAACD,CAAAA,MAAM,CAAA,IAAK;QAC5B,IAAI,CAAEH,CAAAA,OAAOK,GAAG,CAACD,YAAa,CAAA,CAACN,gBAAgBC,mBAAmBK,OAAM,CAAC,GAAI;YACzEF;QACJ,CAAC;IACL;IACA,kEAAkE;IAClE,oDAAoD;IACpD,OAAOA,sBAAsB;AACjC"}
1
+ {"version":3,"sources":["isContiguous.js"],"sourcesContent":["/**\n * Returns whether provided week days are contiguous.\n * @param days - list of days in a week\n * @param isSingleWeek - decides whether the contiguous logic applies across week boundaries or not\n * @param firstDayOfWeek - decides which day of week is the first one in the order.\n */ export const isContiguous = (days, isSingleWeek, firstDayOfWeek)=>{\n const daySet = new Set(days);\n let amountOfNoNeighbors = 0;\n for (const day of days){\n const nextDay = (day + 1) % 7;\n if (!(daySet.has(nextDay) && (!isSingleWeek || firstDayOfWeek !== nextDay))) {\n amountOfNoNeighbors++;\n }\n }\n // In case the full week is provided, then each day has a neighbor\n //, otherwise the last day does not have a neighbor.\n return amountOfNoNeighbors < 2;\n};\n"],"names":["isContiguous","days","isSingleWeek","firstDayOfWeek","daySet","Set","amountOfNoNeighbors","day","nextDay","has"],"mappings":"AAAA;;;;;CAKC;;;;+BAAgBA;;;eAAAA;;;AAAN,MAAMA,eAAe,CAACC,MAAMC,cAAcC;IACjD,MAAMC,SAAS,IAAIC,IAAIJ;IACvB,IAAIK,sBAAsB;IAC1B,KAAK,MAAMC,OAAON,KAAK;QACnB,MAAMO,UAAU,AAACD,CAAAA,MAAM,CAAA,IAAK;QAC5B,IAAI,CAAEH,CAAAA,OAAOK,GAAG,CAACD,YAAa,CAAA,CAACN,gBAAgBC,mBAAmBK,OAAM,CAAC,GAAI;YACzEF;QACJ;IACJ;IACA,kEAAkE;IAClE,oDAAoD;IACpD,OAAOA,sBAAsB;AACjC"}
@@ -4,13 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "isRestrictedDate", {
6
6
  enumerable: true,
7
- get: ()=>isRestrictedDate
7
+ get: function() {
8
+ return isRestrictedDate;
9
+ }
8
10
  });
9
11
  const _dateMath = require("../dateMath/dateMath");
10
12
  const _isBeforeMinDate = require("./isBeforeMinDate");
11
13
  const _isAfterMaxDate = require("./isAfterMaxDate");
12
14
  const isRestrictedDate = (date, options)=>{
13
- const { restrictedDates , minDate , maxDate } = options;
15
+ const { restrictedDates, minDate, maxDate } = options;
14
16
  if (!restrictedDates && !minDate && !maxDate) {
15
17
  return false;
16
18
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["isRestrictedDate.js"],"sourcesContent":["import { compareDates } from '../dateMath/dateMath';\nimport { isBeforeMinDate } from './isBeforeMinDate';\nimport { isAfterMaxDate } from './isAfterMaxDate';\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 */ export const isRestrictedDate = (date, options)=>{\n const { restrictedDates , minDate , maxDate } = options;\n if (!restrictedDates && !minDate && !maxDate) {\n return false;\n }\n const inRestrictedDates = restrictedDates && restrictedDates.some((rd)=>compareDates(rd, date));\n return inRestrictedDates || isBeforeMinDate(date, options) || isAfterMaxDate(date, options);\n};\n"],"names":["isRestrictedDate","date","options","restrictedDates","minDate","maxDate","inRestrictedDates","some","rd","compareDates","isBeforeMinDate","isAfterMaxDate"],"mappings":";;;;+BAOiBA;;aAAAA;;0BAPY;iCACG;gCACD;AAKpB,MAAMA,mBAAmB,CAACC,MAAMC,UAAU;IACjD,MAAM,EAAEC,gBAAe,EAAGC,QAAO,EAAGC,QAAO,EAAG,GAAGH;IACjD,IAAI,CAACC,mBAAmB,CAACC,WAAW,CAACC,SAAS;QAC1C,OAAO,KAAK;IAChB,CAAC;IACD,MAAMC,oBAAoBH,mBAAmBA,gBAAgBI,IAAI,CAAC,CAACC,KAAKC,IAAAA,sBAAY,EAACD,IAAIP;IACzF,OAAOK,qBAAqBI,IAAAA,gCAAe,EAACT,MAAMC,YAAYS,IAAAA,8BAAc,EAACV,MAAMC;AACvF"}
1
+ {"version":3,"sources":["isRestrictedDate.js"],"sourcesContent":["import { compareDates } from '../dateMath/dateMath';\nimport { isBeforeMinDate } from './isBeforeMinDate';\nimport { isAfterMaxDate } from './isAfterMaxDate';\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 */ export const isRestrictedDate = (date, options)=>{\n const { restrictedDates, minDate, maxDate } = options;\n if (!restrictedDates && !minDate && !maxDate) {\n return false;\n }\n const inRestrictedDates = restrictedDates && restrictedDates.some((rd)=>compareDates(rd, date));\n return inRestrictedDates || isBeforeMinDate(date, options) || isAfterMaxDate(date, options);\n};\n"],"names":["isRestrictedDate","date","options","restrictedDates","minDate","maxDate","inRestrictedDates","some","rd","compareDates","isBeforeMinDate","isAfterMaxDate"],"mappings":";;;;+BAOiBA;;;eAAAA;;;0BAPY;iCACG;gCACD;AAKpB,MAAMA,mBAAmB,CAACC,MAAMC;IACvC,MAAM,EAAEC,eAAe,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAAGH;IAC9C,IAAI,CAACC,mBAAmB,CAACC,WAAW,CAACC,SAAS;QAC1C,OAAO;IACX;IACA,MAAMC,oBAAoBH,mBAAmBA,gBAAgBI,IAAI,CAAC,CAACC,KAAKC,IAAAA,sBAAY,EAACD,IAAIP;IACzF,OAAOK,qBAAqBI,IAAAA,gCAAe,EAACT,MAAMC,YAAYS,IAAAA,8BAAc,EAACV,MAAMC;AACvF"}
@@ -9,24 +9,60 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- addDays: ()=>addDays,
13
- addWeeks: ()=>addWeeks,
14
- addMonths: ()=>addMonths,
15
- addYears: ()=>addYears,
16
- getMonthStart: ()=>getMonthStart,
17
- getMonthEnd: ()=>getMonthEnd,
18
- getYearStart: ()=>getYearStart,
19
- getYearEnd: ()=>getYearEnd,
20
- setMonth: ()=>setMonth,
21
- compareDates: ()=>compareDates,
22
- compareDatePart: ()=>compareDatePart,
23
- getDateRangeArray: ()=>getDateRangeArray,
24
- isInDateRangeArray: ()=>isInDateRangeArray,
25
- getWeekNumbersInMonth: ()=>getWeekNumbersInMonth,
26
- getWeekNumber: ()=>getWeekNumber,
27
- getStartDateOfWeek: ()=>getStartDateOfWeek,
28
- getEndDateOfWeek: ()=>getEndDateOfWeek,
29
- getDatePartHashValue: ()=>getDatePartHashValue
12
+ addDays: function() {
13
+ return addDays;
14
+ },
15
+ addWeeks: function() {
16
+ return addWeeks;
17
+ },
18
+ addMonths: function() {
19
+ return addMonths;
20
+ },
21
+ addYears: function() {
22
+ return addYears;
23
+ },
24
+ getMonthStart: function() {
25
+ return getMonthStart;
26
+ },
27
+ getMonthEnd: function() {
28
+ return getMonthEnd;
29
+ },
30
+ getYearStart: function() {
31
+ return getYearStart;
32
+ },
33
+ getYearEnd: function() {
34
+ return getYearEnd;
35
+ },
36
+ setMonth: function() {
37
+ return setMonth;
38
+ },
39
+ compareDates: function() {
40
+ return compareDates;
41
+ },
42
+ compareDatePart: function() {
43
+ return compareDatePart;
44
+ },
45
+ getDateRangeArray: function() {
46
+ return getDateRangeArray;
47
+ },
48
+ isInDateRangeArray: function() {
49
+ return isInDateRangeArray;
50
+ },
51
+ getWeekNumbersInMonth: function() {
52
+ return getWeekNumbersInMonth;
53
+ },
54
+ getWeekNumber: function() {
55
+ return getWeekNumber;
56
+ },
57
+ getStartDateOfWeek: function() {
58
+ return getStartDateOfWeek;
59
+ },
60
+ getEndDateOfWeek: function() {
61
+ return getEndDateOfWeek;
62
+ },
63
+ getDatePartHashValue: function() {
64
+ return getDatePartHashValue;
65
+ }
30
66
  });
31
67
  const _constants = require("../constants");
32
68
  function addDays(date, days) {