@fluentui/react-datepicker-compat 0.0.0-beta.1

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 (263) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +56 -0
  3. package/CHANGELOG.md +19 -0
  4. package/LICENSE +15 -0
  5. package/README.md +42 -0
  6. package/dist/index.d.ts +1156 -0
  7. package/lib/Calendar.js +2 -0
  8. package/lib/Calendar.js.map +1 -0
  9. package/lib/CalendarDay.js +2 -0
  10. package/lib/CalendarDay.js.map +1 -0
  11. package/lib/CalendarDayGrid.js +2 -0
  12. package/lib/CalendarDayGrid.js.map +1 -0
  13. package/lib/CalendarMonth.js +2 -0
  14. package/lib/CalendarMonth.js.map +1 -0
  15. package/lib/CalendarPicker.js +2 -0
  16. package/lib/CalendarPicker.js.map +1 -0
  17. package/lib/CalendarYear.js +2 -0
  18. package/lib/CalendarYear.js.map +1 -0
  19. package/lib/DatePicker.js +2 -0
  20. package/lib/DatePicker.js.map +1 -0
  21. package/lib/components/Calendar/Calendar.js +319 -0
  22. package/lib/components/Calendar/Calendar.js.map +1 -0
  23. package/lib/components/Calendar/Calendar.types.js +15 -0
  24. package/lib/components/Calendar/Calendar.types.js.map +1 -0
  25. package/lib/components/Calendar/defaults.js +3 -0
  26. package/lib/components/Calendar/defaults.js.map +1 -0
  27. package/lib/components/Calendar/index.js +5 -0
  28. package/lib/components/Calendar/index.js.map +1 -0
  29. package/lib/components/Calendar/useCalendarStyles.js +149 -0
  30. package/lib/components/Calendar/useCalendarStyles.js.map +1 -0
  31. package/lib/components/CalendarDay/CalendarDay.js +143 -0
  32. package/lib/components/CalendarDay/CalendarDay.js.map +1 -0
  33. package/lib/components/CalendarDay/CalendarDay.types.js +2 -0
  34. package/lib/components/CalendarDay/CalendarDay.types.js.map +1 -0
  35. package/lib/components/CalendarDay/index.js +4 -0
  36. package/lib/components/CalendarDay/index.js.map +1 -0
  37. package/lib/components/CalendarDay/useCalendarDayStyles.js +180 -0
  38. package/lib/components/CalendarDay/useCalendarDayStyles.js.map +1 -0
  39. package/lib/components/CalendarDayGrid/CalendarDayGrid.js +183 -0
  40. package/lib/components/CalendarDayGrid/CalendarDayGrid.js.map +1 -0
  41. package/lib/components/CalendarDayGrid/CalendarDayGrid.types.js +2 -0
  42. package/lib/components/CalendarDayGrid/CalendarDayGrid.types.js.map +1 -0
  43. package/lib/components/CalendarDayGrid/CalendarGridDayCell.js +193 -0
  44. package/lib/components/CalendarDayGrid/CalendarGridDayCell.js.map +1 -0
  45. package/lib/components/CalendarDayGrid/CalendarGridRow.js +40 -0
  46. package/lib/components/CalendarDayGrid/CalendarGridRow.js.map +1 -0
  47. package/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js +46 -0
  48. package/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js.map +1 -0
  49. package/lib/components/CalendarDayGrid/index.js +5 -0
  50. package/lib/components/CalendarDayGrid/index.js.map +1 -0
  51. package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.js +443 -0
  52. package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.js.map +1 -0
  53. package/lib/components/CalendarDayGrid/useWeekCornerStyles.js +98 -0
  54. package/lib/components/CalendarDayGrid/useWeekCornerStyles.js.map +1 -0
  55. package/lib/components/CalendarDayGrid/useWeeks.js +47 -0
  56. package/lib/components/CalendarDayGrid/useWeeks.js.map +1 -0
  57. package/lib/components/CalendarMonth/CalendarMonth.js +282 -0
  58. package/lib/components/CalendarMonth/CalendarMonth.js.map +1 -0
  59. package/lib/components/CalendarMonth/CalendarMonth.types.js +2 -0
  60. package/lib/components/CalendarMonth/CalendarMonth.types.js.map +1 -0
  61. package/lib/components/CalendarMonth/index.js +4 -0
  62. package/lib/components/CalendarMonth/index.js.map +1 -0
  63. package/lib/components/CalendarMonth/useCalendarMonthStyles.js +10 -0
  64. package/lib/components/CalendarMonth/useCalendarMonthStyles.js.map +1 -0
  65. package/lib/components/CalendarPicker/CalendarPicker.types.js +2 -0
  66. package/lib/components/CalendarPicker/CalendarPicker.types.js.map +1 -0
  67. package/lib/components/CalendarPicker/index.js +3 -0
  68. package/lib/components/CalendarPicker/index.js.map +1 -0
  69. package/lib/components/CalendarPicker/useCalendarPickerStyles.js +371 -0
  70. package/lib/components/CalendarPicker/useCalendarPickerStyles.js.map +1 -0
  71. package/lib/components/CalendarYear/CalendarYear.js +350 -0
  72. package/lib/components/CalendarYear/CalendarYear.js.map +1 -0
  73. package/lib/components/CalendarYear/CalendarYear.types.js +2 -0
  74. package/lib/components/CalendarYear/CalendarYear.types.js.map +1 -0
  75. package/lib/components/CalendarYear/index.js +4 -0
  76. package/lib/components/CalendarYear/index.js.map +1 -0
  77. package/lib/components/CalendarYear/useCalendarYearStyles.js +10 -0
  78. package/lib/components/CalendarYear/useCalendarYearStyles.js.map +1 -0
  79. package/lib/components/DatePicker/DatePicker.js +11 -0
  80. package/lib/components/DatePicker/DatePicker.js.map +1 -0
  81. package/lib/components/DatePicker/DatePicker.types.js +2 -0
  82. package/lib/components/DatePicker/DatePicker.types.js.map +1 -0
  83. package/lib/components/DatePicker/defaults.js +13 -0
  84. package/lib/components/DatePicker/defaults.js.map +1 -0
  85. package/lib/components/DatePicker/index.js +7 -0
  86. package/lib/components/DatePicker/index.js.map +1 -0
  87. package/lib/components/DatePicker/renderDatePicker.js +35 -0
  88. package/lib/components/DatePicker/renderDatePicker.js.map +1 -0
  89. package/lib/components/DatePicker/useDatePicker.js +453 -0
  90. package/lib/components/DatePicker/useDatePicker.js.map +1 -0
  91. package/lib/components/DatePicker/useDatePickerStyles.js +62 -0
  92. package/lib/components/DatePicker/useDatePickerStyles.js.map +1 -0
  93. package/lib/index.js +4 -0
  94. package/lib/index.js.map +1 -0
  95. package/lib/utils/animations.js +98 -0
  96. package/lib/utils/animations.js.map +1 -0
  97. package/lib/utils/constants.js +64 -0
  98. package/lib/utils/constants.js.map +1 -0
  99. package/lib/utils/dateFormatting/dateFormatting.defaults.js +58 -0
  100. package/lib/utils/dateFormatting/dateFormatting.defaults.js.map +1 -0
  101. package/lib/utils/dateFormatting/dateFormatting.types.js +2 -0
  102. package/lib/utils/dateFormatting/dateFormatting.types.js.map +1 -0
  103. package/lib/utils/dateFormatting/index.js +3 -0
  104. package/lib/utils/dateFormatting/index.js.map +1 -0
  105. package/lib/utils/dateGrid/dateGrid.types.js +2 -0
  106. package/lib/utils/dateGrid/dateGrid.types.js.map +1 -0
  107. package/lib/utils/dateGrid/findAvailableDate.js +29 -0
  108. package/lib/utils/dateGrid/findAvailableDate.js.map +1 -0
  109. package/lib/utils/dateGrid/getBoundedDateRange.js +18 -0
  110. package/lib/utils/dateGrid/getBoundedDateRange.js.map +1 -0
  111. package/lib/utils/dateGrid/getDateRangeTypeToUse.js +18 -0
  112. package/lib/utils/dateGrid/getDateRangeTypeToUse.js.map +1 -0
  113. package/lib/utils/dateGrid/getDayGrid.js +85 -0
  114. package/lib/utils/dateGrid/getDayGrid.js.map +1 -0
  115. package/lib/utils/dateGrid/index.js +6 -0
  116. package/lib/utils/dateGrid/index.js.map +1 -0
  117. package/lib/utils/dateGrid/isAfterMaxDate.js +13 -0
  118. package/lib/utils/dateGrid/isAfterMaxDate.js.map +1 -0
  119. package/lib/utils/dateGrid/isBeforeMinDate.js +13 -0
  120. package/lib/utils/dateGrid/isBeforeMinDate.js.map +1 -0
  121. package/lib/utils/dateGrid/isContiguous.js +19 -0
  122. package/lib/utils/dateGrid/isContiguous.js.map +1 -0
  123. package/lib/utils/dateGrid/isRestrictedDate.js +21 -0
  124. package/lib/utils/dateGrid/isRestrictedDate.js.map +1 -0
  125. package/lib/utils/dateMath/dateMath.js +358 -0
  126. package/lib/utils/dateMath/dateMath.js.map +1 -0
  127. package/lib/utils/dateMath/index.js +2 -0
  128. package/lib/utils/dateMath/index.js.map +1 -0
  129. package/lib/utils/dom.js +9 -0
  130. package/lib/utils/dom.js.map +1 -0
  131. package/lib/utils/focus.js +28 -0
  132. package/lib/utils/focus.js.map +1 -0
  133. package/lib/utils/index.js +8 -0
  134. package/lib/utils/index.js.map +1 -0
  135. package/lib-commonjs/Calendar.js +9 -0
  136. package/lib-commonjs/Calendar.js.map +1 -0
  137. package/lib-commonjs/CalendarDay.js +9 -0
  138. package/lib-commonjs/CalendarDay.js.map +1 -0
  139. package/lib-commonjs/CalendarDayGrid.js +9 -0
  140. package/lib-commonjs/CalendarDayGrid.js.map +1 -0
  141. package/lib-commonjs/CalendarMonth.js +9 -0
  142. package/lib-commonjs/CalendarMonth.js.map +1 -0
  143. package/lib-commonjs/CalendarPicker.js +9 -0
  144. package/lib-commonjs/CalendarPicker.js.map +1 -0
  145. package/lib-commonjs/CalendarYear.js +9 -0
  146. package/lib-commonjs/CalendarYear.js.map +1 -0
  147. package/lib-commonjs/DatePicker.js +9 -0
  148. package/lib-commonjs/DatePicker.js.map +1 -0
  149. package/lib-commonjs/components/Calendar/Calendar.js +306 -0
  150. package/lib-commonjs/components/Calendar/Calendar.js.map +1 -0
  151. package/lib-commonjs/components/Calendar/Calendar.types.js +21 -0
  152. package/lib-commonjs/components/Calendar/Calendar.types.js.map +1 -0
  153. package/lib-commonjs/components/Calendar/defaults.js +12 -0
  154. package/lib-commonjs/components/Calendar/defaults.js.map +1 -0
  155. package/lib-commonjs/components/Calendar/index.js +16 -0
  156. package/lib-commonjs/components/Calendar/index.js.map +1 -0
  157. package/lib-commonjs/components/Calendar/useCalendarStyles.js +286 -0
  158. package/lib-commonjs/components/Calendar/useCalendarStyles.js.map +1 -0
  159. package/lib-commonjs/components/CalendarDay/CalendarDay.js +124 -0
  160. package/lib-commonjs/components/CalendarDay/CalendarDay.js.map +1 -0
  161. package/lib-commonjs/components/CalendarDay/CalendarDay.types.js +9 -0
  162. package/lib-commonjs/components/CalendarDay/CalendarDay.types.js.map +1 -0
  163. package/lib-commonjs/components/CalendarDay/index.js +11 -0
  164. package/lib-commonjs/components/CalendarDay/index.js.map +1 -0
  165. package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.js +356 -0
  166. package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.js.map +1 -0
  167. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.js +181 -0
  168. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.js.map +1 -0
  169. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.types.js +9 -0
  170. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.types.js.map +1 -0
  171. package/lib-commonjs/components/CalendarDayGrid/CalendarGridDayCell.js +173 -0
  172. package/lib-commonjs/components/CalendarDayGrid/CalendarGridDayCell.js.map +1 -0
  173. package/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js +35 -0
  174. package/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js.map +1 -0
  175. package/lib-commonjs/components/CalendarDayGrid/CalendarMonthHeaderRow.js +45 -0
  176. package/lib-commonjs/components/CalendarDayGrid/CalendarMonthHeaderRow.js.map +1 -0
  177. package/lib-commonjs/components/CalendarDayGrid/index.js +21 -0
  178. package/lib-commonjs/components/CalendarDayGrid/index.js.map +1 -0
  179. package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.js +916 -0
  180. package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.js.map +1 -0
  181. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.js +103 -0
  182. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.js.map +1 -0
  183. package/lib-commonjs/components/CalendarDayGrid/useWeeks.js +54 -0
  184. package/lib-commonjs/components/CalendarDayGrid/useWeeks.js.map +1 -0
  185. package/lib-commonjs/components/CalendarMonth/CalendarMonth.js +271 -0
  186. package/lib-commonjs/components/CalendarMonth/CalendarMonth.js.map +1 -0
  187. package/lib-commonjs/components/CalendarMonth/CalendarMonth.types.js +9 -0
  188. package/lib-commonjs/components/CalendarMonth/CalendarMonth.types.js.map +1 -0
  189. package/lib-commonjs/components/CalendarMonth/index.js +11 -0
  190. package/lib-commonjs/components/CalendarMonth/index.js.map +1 -0
  191. package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.js +14 -0
  192. package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.js.map +1 -0
  193. package/lib-commonjs/components/CalendarPicker/CalendarPicker.types.js +7 -0
  194. package/lib-commonjs/components/CalendarPicker/CalendarPicker.types.js.map +1 -0
  195. package/lib-commonjs/components/CalendarPicker/index.js +10 -0
  196. package/lib-commonjs/components/CalendarPicker/index.js.map +1 -0
  197. package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.js +746 -0
  198. package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.js.map +1 -0
  199. package/lib-commonjs/components/CalendarYear/CalendarYear.js +307 -0
  200. package/lib-commonjs/components/CalendarYear/CalendarYear.js.map +1 -0
  201. package/lib-commonjs/components/CalendarYear/CalendarYear.types.js +9 -0
  202. package/lib-commonjs/components/CalendarYear/CalendarYear.types.js.map +1 -0
  203. package/lib-commonjs/components/CalendarYear/index.js +11 -0
  204. package/lib-commonjs/components/CalendarYear/index.js.map +1 -0
  205. package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.js +14 -0
  206. package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.js.map +1 -0
  207. package/lib-commonjs/components/DatePicker/DatePicker.js +21 -0
  208. package/lib-commonjs/components/DatePicker/DatePicker.js.map +1 -0
  209. package/lib-commonjs/components/DatePicker/DatePicker.types.js +9 -0
  210. package/lib-commonjs/components/DatePicker/DatePicker.types.js.map +1 -0
  211. package/lib-commonjs/components/DatePicker/defaults.js +22 -0
  212. package/lib-commonjs/components/DatePicker/defaults.js.map +1 -0
  213. package/lib-commonjs/components/DatePicker/index.js +14 -0
  214. package/lib-commonjs/components/DatePicker/index.js.map +1 -0
  215. package/lib-commonjs/components/DatePicker/renderDatePicker.js +33 -0
  216. package/lib-commonjs/components/DatePicker/renderDatePicker.js.map +1 -0
  217. package/lib-commonjs/components/DatePicker/useDatePicker.js +486 -0
  218. package/lib-commonjs/components/DatePicker/useDatePicker.js.map +1 -0
  219. package/lib-commonjs/components/DatePicker/useDatePickerStyles.js +100 -0
  220. package/lib-commonjs/components/DatePicker/useDatePickerStyles.js.map +1 -0
  221. package/lib-commonjs/index.js +50 -0
  222. package/lib-commonjs/index.js.map +1 -0
  223. package/lib-commonjs/utils/animations.js +126 -0
  224. package/lib-commonjs/utils/animations.js.map +1 -0
  225. package/lib-commonjs/utils/constants.js +82 -0
  226. package/lib-commonjs/utils/constants.js.map +1 -0
  227. package/lib-commonjs/utils/dateFormatting/dateFormatting.defaults.js +102 -0
  228. package/lib-commonjs/utils/dateFormatting/dateFormatting.defaults.js.map +1 -0
  229. package/lib-commonjs/utils/dateFormatting/dateFormatting.types.js +7 -0
  230. package/lib-commonjs/utils/dateFormatting/dateFormatting.types.js.map +1 -0
  231. package/lib-commonjs/utils/dateFormatting/index.js +10 -0
  232. package/lib-commonjs/utils/dateFormatting/index.js.map +1 -0
  233. package/lib-commonjs/utils/dateGrid/dateGrid.types.js +7 -0
  234. package/lib-commonjs/utils/dateGrid/dateGrid.types.js.map +1 -0
  235. package/lib-commonjs/utils/dateGrid/findAvailableDate.js +29 -0
  236. package/lib-commonjs/utils/dateGrid/findAvailableDate.js.map +1 -0
  237. package/lib-commonjs/utils/dateGrid/getBoundedDateRange.js +23 -0
  238. package/lib-commonjs/utils/dateGrid/getBoundedDateRange.js.map +1 -0
  239. package/lib-commonjs/utils/dateGrid/getDateRangeTypeToUse.js +20 -0
  240. package/lib-commonjs/utils/dateGrid/getDateRangeTypeToUse.js.map +1 -0
  241. package/lib-commonjs/utils/dateGrid/getDayGrid.js +76 -0
  242. package/lib-commonjs/utils/dateGrid/getDayGrid.js.map +1 -0
  243. package/lib-commonjs/utils/dateGrid/index.js +13 -0
  244. package/lib-commonjs/utils/dateGrid/index.js.map +1 -0
  245. package/lib-commonjs/utils/dateGrid/isAfterMaxDate.js +15 -0
  246. package/lib-commonjs/utils/dateGrid/isAfterMaxDate.js.map +1 -0
  247. package/lib-commonjs/utils/dateGrid/isBeforeMinDate.js +15 -0
  248. package/lib-commonjs/utils/dateGrid/isBeforeMinDate.js.map +1 -0
  249. package/lib-commonjs/utils/dateGrid/isContiguous.js +28 -0
  250. package/lib-commonjs/utils/dateGrid/isContiguous.js.map +1 -0
  251. package/lib-commonjs/utils/dateGrid/isRestrictedDate.js +21 -0
  252. package/lib-commonjs/utils/dateGrid/isRestrictedDate.js.map +1 -0
  253. package/lib-commonjs/utils/dateMath/dateMath.js +274 -0
  254. package/lib-commonjs/utils/dateMath/dateMath.js.map +1 -0
  255. package/lib-commonjs/utils/dateMath/index.js +9 -0
  256. package/lib-commonjs/utils/dateMath/index.js.map +1 -0
  257. package/lib-commonjs/utils/dom.js +18 -0
  258. package/lib-commonjs/utils/dom.js.map +1 -0
  259. package/lib-commonjs/utils/focus.js +31 -0
  260. package/lib-commonjs/utils/focus.js.map +1 -0
  261. package/lib-commonjs/utils/index.js +15 -0
  262. package/lib-commonjs/utils/index.js.map +1 -0
  263. package/package.json +72 -0
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ datePickerClassNames: ()=>datePickerClassNames,
13
+ useDatePickerStyles_unstable: ()=>useDatePickerStyles_unstable
14
+ });
15
+ const _react = require("@griffel/react");
16
+ const datePickerClassNames = {
17
+ root: 'fui-DatePicker',
18
+ field: 'fui-DatePicker__field',
19
+ wrapper: 'fui-DatePicker__wrapper',
20
+ popover: 'fui-DatePicker__popover',
21
+ popoverSurface: 'fui-DatePicker__popoverSurface',
22
+ input: 'fui-DatePicker__input',
23
+ calendar: 'fui-DatePicker__calendar'
24
+ };
25
+ const useRootStyles = /*#__PURE__*/ (0, _react["__styles"])({
26
+ base: {
27
+ Bahqtrf: "fk6fouc",
28
+ Be2twd7: "f1pp30po",
29
+ Bhrd7zp: "figsok6"
30
+ },
31
+ normalize: {
32
+ E5pizo: "f1couhl3",
33
+ B7ck84d: "f1ewtqcl",
34
+ B6of3ja: "f1hu3pq6",
35
+ t21cq0: [
36
+ "f11qmguv",
37
+ "f1tyq0we"
38
+ ],
39
+ jrapky: "f19f4twv",
40
+ Frg6f3: [
41
+ "f1tyq0we",
42
+ "f11qmguv"
43
+ ],
44
+ z8tnut: "f1g0x7ka",
45
+ z189sj: [
46
+ "fhxju0i",
47
+ "f1cnd47f"
48
+ ],
49
+ Byoj8tv: "f1qch9an",
50
+ uwmqm3: [
51
+ "f1cnd47f",
52
+ "fhxju0i"
53
+ ]
54
+ }
55
+ }, {
56
+ d: [
57
+ ".fk6fouc{font-family:var(--fontFamilyBase);}",
58
+ ".f1pp30po{font-size:var(--fontSizeBase500);}",
59
+ ".figsok6{font-weight:var(--fontWeightRegular);}",
60
+ ".f1couhl3{box-shadow:none;}",
61
+ ".f1ewtqcl{box-sizing:border-box;}",
62
+ ".f1hu3pq6{margin-top:0;}",
63
+ ".f11qmguv{margin-right:0;}",
64
+ ".f1tyq0we{margin-left:0;}",
65
+ ".f19f4twv{margin-bottom:0;}",
66
+ ".f1g0x7ka{padding-top:0;}",
67
+ ".fhxju0i{padding-right:0;}",
68
+ ".f1cnd47f{padding-left:0;}",
69
+ ".f1qch9an{padding-bottom:0;}"
70
+ ]
71
+ });
72
+ const useTextFieldStyles = /*#__PURE__*/ (0, _react["__styles"])({
73
+ base: {
74
+ qhf8xq: "f10pi13n",
75
+ f6m02n: "f1lzi3di"
76
+ },
77
+ disabled: {
78
+ f6m02n: "f1a7qz7c"
79
+ }
80
+ }, {
81
+ d: [
82
+ ".f10pi13n{position:relative;}",
83
+ ".f1lzi3di input[readonly]{cursor:pointer;}",
84
+ ".f1a7qz7c input[readonly]{cursor:default;}"
85
+ ]
86
+ });
87
+ const useDatePickerStyles_unstable = (state)=>{
88
+ const rootStyles = useRootStyles();
89
+ const textFieldStyles = useTextFieldStyles();
90
+ const { disabled , isDatePickerShown } = state;
91
+ state.root.className = (0, _react.mergeClasses)(datePickerClassNames.root, rootStyles.base, isDatePickerShown && 'is-open', rootStyles.normalize, state.root.className);
92
+ state.wrapper.className = (0, _react.mergeClasses)(datePickerClassNames.wrapper, state.wrapper.className);
93
+ state.input.className = (0, _react.mergeClasses)(datePickerClassNames.input, textFieldStyles.base, disabled && textFieldStyles.disabled, state.input.className);
94
+ state.field.className = (0, _react.mergeClasses)(datePickerClassNames.field, state.field.className);
95
+ state.popoverSurface.className = (0, _react.mergeClasses)(datePickerClassNames.popoverSurface, state.popoverSurface.className);
96
+ state.calendar.className = (0, _react.mergeClasses)(datePickerClassNames.calendar, state.calendar.className);
97
+ return state;
98
+ }; //# sourceMappingURL=useDatePickerStyles.js.map
99
+
100
+ //# sourceMappingURL=useDatePickerStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../lib/components/DatePicker/useDatePickerStyles.js"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport { __styles, mergeClasses, shorthands } from '@griffel/react';\nexport const datePickerClassNames = {\n root: 'fui-DatePicker',\n field: 'fui-DatePicker__field',\n wrapper: 'fui-DatePicker__wrapper',\n popover: 'fui-DatePicker__popover',\n popoverSurface: 'fui-DatePicker__popoverSurface',\n input: 'fui-DatePicker__input',\n calendar: 'fui-DatePicker__calendar'\n};\nconst useRootStyles = /*#__PURE__*/__styles({\n base: {\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"f1pp30po\",\n Bhrd7zp: \"figsok6\"\n },\n normalize: {\n E5pizo: \"f1couhl3\",\n B7ck84d: \"f1ewtqcl\",\n B6of3ja: \"f1hu3pq6\",\n t21cq0: [\"f11qmguv\", \"f1tyq0we\"],\n jrapky: \"f19f4twv\",\n Frg6f3: [\"f1tyq0we\", \"f11qmguv\"],\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"]\n }\n}, {\n d: [\".fk6fouc{font-family:var(--fontFamilyBase);}\", \".f1pp30po{font-size:var(--fontSizeBase500);}\", \".figsok6{font-weight:var(--fontWeightRegular);}\", \".f1couhl3{box-shadow:none;}\", \".f1ewtqcl{box-sizing:border-box;}\", \".f1hu3pq6{margin-top:0;}\", \".f11qmguv{margin-right:0;}\", \".f1tyq0we{margin-left:0;}\", \".f19f4twv{margin-bottom:0;}\", \".f1g0x7ka{padding-top:0;}\", \".fhxju0i{padding-right:0;}\", \".f1cnd47f{padding-left:0;}\", \".f1qch9an{padding-bottom:0;}\"]\n});\nconst useTextFieldStyles = /*#__PURE__*/__styles({\n base: {\n qhf8xq: \"f10pi13n\",\n f6m02n: \"f1lzi3di\"\n },\n disabled: {\n f6m02n: \"f1a7qz7c\"\n }\n}, {\n d: [\".f10pi13n{position:relative;}\", \".f1lzi3di input[readonly]{cursor:pointer;}\", \".f1a7qz7c input[readonly]{cursor:default;}\"]\n});\n/**\n * Apply styling to the DatePicker slots based on the state\n */\nexport const useDatePickerStyles_unstable = state => {\n const rootStyles = useRootStyles();\n const textFieldStyles = useTextFieldStyles();\n const {\n disabled,\n isDatePickerShown\n } = state;\n state.root.className = mergeClasses(datePickerClassNames.root, rootStyles.base, isDatePickerShown && 'is-open', rootStyles.normalize, state.root.className);\n state.wrapper.className = mergeClasses(datePickerClassNames.wrapper, state.wrapper.className);\n state.input.className = mergeClasses(datePickerClassNames.input, textFieldStyles.base, disabled && textFieldStyles.disabled, state.input.className);\n state.field.className = mergeClasses(datePickerClassNames.field, state.field.className);\n state.popoverSurface.className = mergeClasses(datePickerClassNames.popoverSurface, state.popoverSurface.className);\n state.calendar.className = mergeClasses(datePickerClassNames.calendar, state.calendar.className);\n return state;\n};\n//# sourceMappingURL=useDatePickerStyles.js.map"],"names":["datePickerClassNames","useDatePickerStyles_unstable","root","field","wrapper","popover","popoverSurface","input","calendar","useRootStyles","__styles","base","Bahqtrf","Be2twd7","Bhrd7zp","normalize","E5pizo","B7ck84d","B6of3ja","t21cq0","jrapky","Frg6f3","z8tnut","z189sj","Byoj8tv","uwmqm3","d","useTextFieldStyles","qhf8xq","f6m02n","disabled","state","rootStyles","textFieldStyles","isDatePickerShown","className","mergeClasses"],"mappings":";;;;;;;;;;;IAEaA,oBAAoB,MAApBA;IA4CAC,4BAA4B,MAA5BA;;uBA7CsC;AAC5C,MAAMD,uBAAuB;IAClCE,MAAM;IACNC,OAAO;IACPC,SAAS;IACTC,SAAS;IACTC,gBAAgB;IAChBC,OAAO;IACPC,UAAU;AACZ;AACA,MAAMC,gBAAgB,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IAC1CC,MAAM;QACJC,SAAS;QACTC,SAAS;QACTC,SAAS;IACX;IACAC,WAAW;QACTC,QAAQ;QACRC,SAAS;QACTC,SAAS;QACTC,QAAQ;YAAC;YAAY;SAAW;QAChCC,QAAQ;QACRC,QAAQ;YAAC;YAAY;SAAW;QAChCC,QAAQ;QACRC,QAAQ;YAAC;YAAW;SAAW;QAC/BC,SAAS;QACTC,QAAQ;YAAC;YAAY;SAAU;IACjC;AACF,GAAG;IACDC,GAAG;QAAC;QAAgD;QAAgD;QAAmD;QAA+B;QAAqC;QAA4B;QAA8B;QAA6B;QAA+B;QAA6B;QAA8B;QAA8B;KAA+B;AAC3c;AACA,MAAMC,qBAAqB,WAAW,GAAEjB,IAAAA,kBAAQ,EAAC;IAC/CC,MAAM;QACJiB,QAAQ;QACRC,QAAQ;IACV;IACAC,UAAU;QACRD,QAAQ;IACV;AACF,GAAG;IACDH,GAAG;QAAC;QAAiC;QAA8C;KAA6C;AAClI;AAIO,MAAMzB,+BAA+B8B,CAAAA,QAAS;IACnD,MAAMC,aAAavB;IACnB,MAAMwB,kBAAkBN;IACxB,MAAM,EACJG,SAAQ,EACRI,kBAAiB,EAClB,GAAGH;IACJA,MAAM7B,IAAI,CAACiC,SAAS,GAAGC,IAAAA,mBAAY,EAACpC,qBAAqBE,IAAI,EAAE8B,WAAWrB,IAAI,EAAEuB,qBAAqB,WAAWF,WAAWjB,SAAS,EAAEgB,MAAM7B,IAAI,CAACiC,SAAS;IAC1JJ,MAAM3B,OAAO,CAAC+B,SAAS,GAAGC,IAAAA,mBAAY,EAACpC,qBAAqBI,OAAO,EAAE2B,MAAM3B,OAAO,CAAC+B,SAAS;IAC5FJ,MAAMxB,KAAK,CAAC4B,SAAS,GAAGC,IAAAA,mBAAY,EAACpC,qBAAqBO,KAAK,EAAE0B,gBAAgBtB,IAAI,EAAEmB,YAAYG,gBAAgBH,QAAQ,EAAEC,MAAMxB,KAAK,CAAC4B,SAAS;IAClJJ,MAAM5B,KAAK,CAACgC,SAAS,GAAGC,IAAAA,mBAAY,EAACpC,qBAAqBG,KAAK,EAAE4B,MAAM5B,KAAK,CAACgC,SAAS;IACtFJ,MAAMzB,cAAc,CAAC6B,SAAS,GAAGC,IAAAA,mBAAY,EAACpC,qBAAqBM,cAAc,EAAEyB,MAAMzB,cAAc,CAAC6B,SAAS;IACjHJ,MAAMvB,QAAQ,CAAC2B,SAAS,GAAGC,IAAAA,mBAAY,EAACpC,qBAAqBQ,QAAQ,EAAEuB,MAAMvB,QAAQ,CAAC2B,SAAS;IAC/F,OAAOJ;AACT,GACA,+CAA+C"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ AnimationDirection: ()=>_calendar.AnimationDirection,
13
+ defaultCalendarStrings: ()=>_calendar.defaultCalendarStrings,
14
+ DatePicker: ()=>_datePicker.DatePicker,
15
+ datePickerClassNames: ()=>_datePicker.datePickerClassNames,
16
+ defaultDatePickerStrings: ()=>_datePicker.defaultDatePickerStrings,
17
+ renderDatePicker_unstable: ()=>_datePicker.renderDatePicker_unstable,
18
+ useDatePicker_unstable: ()=>_datePicker.useDatePicker_unstable,
19
+ useDatePickerStyles_unstable: ()=>_datePicker.useDatePickerStyles_unstable,
20
+ DAYS_IN_WEEK: ()=>_utils.DAYS_IN_WEEK,
21
+ DateRangeType: ()=>_utils.DateRangeType,
22
+ DayOfWeek: ()=>_utils.DayOfWeek,
23
+ FirstWeekOfYear: ()=>_utils.FirstWeekOfYear,
24
+ MonthOfYear: ()=>_utils.MonthOfYear,
25
+ TimeConstants: ()=>_utils.TimeConstants,
26
+ addDays: ()=>_utils.addDays,
27
+ addMonths: ()=>_utils.addMonths,
28
+ addWeeks: ()=>_utils.addWeeks,
29
+ addYears: ()=>_utils.addYears,
30
+ compareDatePart: ()=>_utils.compareDatePart,
31
+ compareDates: ()=>_utils.compareDates,
32
+ getDatePartHashValue: ()=>_utils.getDatePartHashValue,
33
+ getDateRangeArray: ()=>_utils.getDateRangeArray,
34
+ getEndDateOfWeek: ()=>_utils.getEndDateOfWeek,
35
+ getMonthEnd: ()=>_utils.getMonthEnd,
36
+ getMonthStart: ()=>_utils.getMonthStart,
37
+ getStartDateOfWeek: ()=>_utils.getStartDateOfWeek,
38
+ getWeekNumber: ()=>_utils.getWeekNumber,
39
+ getWeekNumbersInMonth: ()=>_utils.getWeekNumbersInMonth,
40
+ getYearEnd: ()=>_utils.getYearEnd,
41
+ getYearStart: ()=>_utils.getYearStart,
42
+ isInDateRangeArray: ()=>_utils.isInDateRangeArray,
43
+ setMonth: ()=>_utils.setMonth
44
+ });
45
+ const _calendar = require("./Calendar");
46
+ const _datePicker = require("./DatePicker");
47
+ const _utils = require("./utils");
48
+ //# sourceMappingURL=index.js.map
49
+
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { AnimationDirection, defaultCalendarStrings } from './Calendar';\nexport { DatePicker, datePickerClassNames, 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//# sourceMappingURL=index.js.map"],"names":["AnimationDirection","defaultCalendarStrings","DatePicker","datePickerClassNames","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;IAAEC,sBAAsB,MAAtBA,gCAAsB;IAC1CC,UAAU,MAAVA,sBAAU;IAAEC,oBAAoB,MAApBA,gCAAoB;IAAEC,wBAAwB,MAAxBA,oCAAwB;IAAEC,yBAAyB,MAAzBA,qCAAyB;IAAEC,sBAAsB,MAAtBA,kCAAsB;IAAEC,4BAA4B,MAA5BA,wCAA4B;IAC3IC,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;;0BAFjT;4BACiG;uBACwN;CACpX,iCAAiC"}
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
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
27
+ });
28
+ const _react = require("@griffel/react");
29
+ const EASING_FUNCTION_1 = 'cubic-bezier(.1,.9,.2,1)';
30
+ const EASING_FUNCTION_2 = 'cubic-bezier(.1,.25,.75,.9)';
31
+ const DURATION_1 = '0.167s';
32
+ const DURATION_2 = '0.267s';
33
+ const DURATION_3 = '0.367s';
34
+ const DURATION_4 = '0.467s';
35
+ const FADE_IN = {
36
+ from: {
37
+ opacity: 0
38
+ },
39
+ to: {
40
+ opacity: 1
41
+ }
42
+ };
43
+ const FADE_OUT = {
44
+ from: {
45
+ opacity: 1
46
+ },
47
+ to: {
48
+ opacity: 0,
49
+ visibility: 'hidden'
50
+ }
51
+ };
52
+ const SLIDE_DOWN_IN20 = {
53
+ from: {
54
+ pointerEvents: 'none',
55
+ transform: 'translate3d(0, -20px, 0)'
56
+ },
57
+ to: {
58
+ pointerEvents: 'auto',
59
+ transform: 'translate3d(0, 0, 0)'
60
+ }
61
+ };
62
+ const SLIDE_LEFT_IN20 = {
63
+ from: {
64
+ pointerEvents: 'none',
65
+ transform: 'translate3d(20px, 0, 0)'
66
+ },
67
+ to: {
68
+ pointerEvents: 'auto',
69
+ transform: 'translate3d(0, 0, 0)'
70
+ }
71
+ };
72
+ const SLIDE_RIGHT_IN20 = {
73
+ from: {
74
+ pointerEvents: 'none',
75
+ transform: 'translate3d(-20px, 0, 0)'
76
+ },
77
+ to: {
78
+ pointerEvents: 'auto',
79
+ transform: 'translate3d(0, 0, 0)'
80
+ }
81
+ };
82
+ const SLIDE_UP_IN20 = {
83
+ from: {
84
+ pointerEvents: 'none',
85
+ transform: 'translate3d(0, 20px, 0)'
86
+ },
87
+ to: {
88
+ pointerEvents: 'auto',
89
+ transform: 'translate3d(0, 0, 0)'
90
+ }
91
+ };
92
+ const SLIDE_DOWN_OUT20 = {
93
+ from: {
94
+ transform: 'translate3d(0, 0, 0)'
95
+ },
96
+ to: {
97
+ transform: 'translate3d(0, 20px, 0)'
98
+ }
99
+ };
100
+ const SLIDE_UP_OUT20 = {
101
+ from: {
102
+ transform: 'translate3d(0, 0, 0)'
103
+ },
104
+ to: {
105
+ transform: 'translate3d(0, -20px, 0)'
106
+ }
107
+ };
108
+ const TRANSITION_ROW_DISAPPEARANCE = {
109
+ '100%': {
110
+ height: '0px',
111
+ .../*#__PURE__*/ _react.shorthands.overflow('hidden'),
112
+ width: '0px'
113
+ },
114
+ '99.9%': {
115
+ height: '28px',
116
+ .../*#__PURE__*/ _react.shorthands.overflow('visible'),
117
+ width: '100%'
118
+ },
119
+ '0%': {
120
+ height: '28px',
121
+ .../*#__PURE__*/ _react.shorthands.overflow('visible'),
122
+ width: '100%'
123
+ }
124
+ }; //# sourceMappingURL=animations.js.map
125
+
126
+ //# sourceMappingURL=animations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../lib/utils/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 ... /*#__PURE__*/shorthands.overflow('hidden'),\n width: '0px'\n },\n '99.9%': {\n height: '28px',\n ... /*#__PURE__*/shorthands.overflow('visible'),\n width: '100%'\n },\n '0%': {\n height: '28px',\n ... /*#__PURE__*/shorthands.overflow('visible'),\n width: '100%'\n }\n};\n//# sourceMappingURL=animations.js.map"],"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;IACrBS,MAAM;QACJC,SAAS;IACX;IACAC,IAAI;QACFD,SAAS;IACX;AACF;AACO,MAAMT,WAAW;IACtBQ,MAAM;QACJC,SAAS;IACX;IACAC,IAAI;QACFD,SAAS;QACTE,YAAY;IACd;AACF;AACO,MAAMV,kBAAkB;IAC7BO,MAAM;QACJI,eAAe;QACfC,WAAW;IACb;IACAH,IAAI;QACFE,eAAe;QACfC,WAAW;IACb;AACF;AACO,MAAMX,kBAAkB;IAC7BM,MAAM;QACJI,eAAe;QACfC,WAAW;IACb;IACAH,IAAI;QACFE,eAAe;QACfC,WAAW;IACb;AACF;AACO,MAAMV,mBAAmB;IAC9BK,MAAM;QACJI,eAAe;QACfC,WAAW;IACb;IACAH,IAAI;QACFE,eAAe;QACfC,WAAW;IACb;AACF;AACO,MAAMT,gBAAgB;IAC3BI,MAAM;QACJI,eAAe;QACfC,WAAW;IACb;IACAH,IAAI;QACFE,eAAe;QACfC,WAAW;IACb;AACF;AACO,MAAMR,mBAAmB;IAC9BG,MAAM;QACJK,WAAW;IACb;IACAH,IAAI;QACFG,WAAW;IACb;AACF;AACO,MAAMP,iBAAiB;IAC5BE,MAAM;QACJK,WAAW;IACb;IACAH,IAAI;QACFG,WAAW;IACb;AACF;AACO,MAAMN,+BAA+B;IAC1C,QAAQ;QACNO,QAAQ;QACR,GAAI,WAAW,GAAEC,iBAAU,CAACC,QAAQ,CAAC,SAAS;QAC9CC,OAAO;IACT;IACA,SAAS;QACPH,QAAQ;QACR,GAAI,WAAW,GAAEC,iBAAU,CAACC,QAAQ,CAAC,UAAU;QAC/CC,OAAO;IACT;IACA,MAAM;QACJH,QAAQ;QACR,GAAI,WAAW,GAAEC,iBAAU,CAACC,QAAQ,CAAC,UAAU;QAC/CC,OAAO;IACT;AACF,GACA,sCAAsC"}
@@ -0,0 +1,82 @@
1
+ /**
2
+ * The days of the week
3
+ */ "use strict";
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ function _export(target, all) {
8
+ for(var name in all)Object.defineProperty(target, name, {
9
+ enumerable: true,
10
+ get: all[name]
11
+ });
12
+ }
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
20
+ });
21
+ var DayOfWeek;
22
+ (function(DayOfWeek) {
23
+ DayOfWeek[DayOfWeek["Sunday"] = 0] = "Sunday";
24
+ DayOfWeek[DayOfWeek["Monday"] = 1] = "Monday";
25
+ DayOfWeek[DayOfWeek["Tuesday"] = 2] = "Tuesday";
26
+ DayOfWeek[DayOfWeek["Wednesday"] = 3] = "Wednesday";
27
+ DayOfWeek[DayOfWeek["Thursday"] = 4] = "Thursday";
28
+ DayOfWeek[DayOfWeek["Friday"] = 5] = "Friday";
29
+ DayOfWeek[DayOfWeek["Saturday"] = 6] = "Saturday";
30
+ })(DayOfWeek || (DayOfWeek = {}));
31
+ var MonthOfYear;
32
+ (function(MonthOfYear) {
33
+ MonthOfYear[MonthOfYear["January"] = 0] = "January";
34
+ MonthOfYear[MonthOfYear["February"] = 1] = "February";
35
+ MonthOfYear[MonthOfYear["March"] = 2] = "March";
36
+ MonthOfYear[MonthOfYear["April"] = 3] = "April";
37
+ MonthOfYear[MonthOfYear["May"] = 4] = "May";
38
+ MonthOfYear[MonthOfYear["June"] = 5] = "June";
39
+ MonthOfYear[MonthOfYear["July"] = 6] = "July";
40
+ MonthOfYear[MonthOfYear["August"] = 7] = "August";
41
+ MonthOfYear[MonthOfYear["September"] = 8] = "September";
42
+ MonthOfYear[MonthOfYear["October"] = 9] = "October";
43
+ MonthOfYear[MonthOfYear["November"] = 10] = "November";
44
+ MonthOfYear[MonthOfYear["December"] = 11] = "December";
45
+ })(MonthOfYear || (MonthOfYear = {}));
46
+ var FirstWeekOfYear;
47
+ (function(FirstWeekOfYear) {
48
+ FirstWeekOfYear[FirstWeekOfYear["FirstDay"] = 0] = "FirstDay";
49
+ FirstWeekOfYear[FirstWeekOfYear["FirstFullWeek"] = 1] = "FirstFullWeek";
50
+ FirstWeekOfYear[FirstWeekOfYear["FirstFourDayWeek"] = 2] = "FirstFourDayWeek";
51
+ })(FirstWeekOfYear || (FirstWeekOfYear = {}));
52
+ var DateRangeType;
53
+ (function(DateRangeType) {
54
+ DateRangeType[DateRangeType["Day"] = 0] = "Day";
55
+ DateRangeType[DateRangeType["Week"] = 1] = "Week";
56
+ DateRangeType[DateRangeType["Month"] = 2] = "Month";
57
+ DateRangeType[DateRangeType["WorkWeek"] = 3] = "WorkWeek";
58
+ })(DateRangeType || (DateRangeType = {}));
59
+ const DAYS_IN_WEEK = 7;
60
+ const TimeConstants = {
61
+ MillisecondsInOneDay: 86400000,
62
+ MillisecondsIn1Sec: 1000,
63
+ MillisecondsIn1Min: 60000,
64
+ MillisecondsIn30Mins: 1800000,
65
+ MillisecondsIn1Hour: 3600000,
66
+ MinutesInOneDay: 1440,
67
+ MinutesInOneHour: 60,
68
+ DaysInOneWeek: 7,
69
+ MonthInOneYear: 12,
70
+ HoursInOneDay: 24,
71
+ SecondsInOneMinute: 60,
72
+ OffsetTo24HourFormat: 12,
73
+ /**
74
+ * Matches a time string. Groups:
75
+ * 1. hours (with or without leading 0)
76
+ * 2. minutes
77
+ * 3. seconds (optional)
78
+ * 4. meridiem (am/pm, case-insensitive, optional)
79
+ */ TimeFormatRegex: /^(\d\d?):(\d\d):?(\d\d)? ?([ap]m)?/i
80
+ }; //# sourceMappingURL=constants.js.map
81
+
82
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../lib/utils/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 */\n TimeFormatRegex: /^(\\d\\d?):(\\d\\d):?(\\d\\d)? ?([ap]m)?/i\n};\n//# sourceMappingURL=constants.js.map"],"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;;;;;;;;;;;IAAaA,SAAS,MAATA;IAUHC,WAAW,MAAXA;IAeAC,eAAe,MAAfA;IAMAC,aAAa,MAAbA;IAOEC,YAAY,MAAZA;IACAC,aAAa,MAAbA;;AAvCH,IAAIL;AACb,CAAA,SAAUA,SAAS,EAAE;IACpBA,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;AACzC,CAAA,EAAGA,aAAcA,CAAAA,YAAY,CAAC,CAAA;AACvB,IAAIC;AACV,CAAA,SAAUA,WAAW,EAAE;IACtBA,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;AAC9C,CAAA,EAAGA,eAAgBA,CAAAA,cAAc,CAAC,CAAA;AAC3B,IAAIC;AACV,CAAA,SAAUA,eAAe,EAAE;IAC1BA,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;AAC7D,CAAA,EAAGA,mBAAoBA,CAAAA,kBAAkB,CAAC,CAAA;AACnC,IAAIC;AACV,CAAA,SAAUA,aAAa,EAAE;IACxBA,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;AACjD,CAAA,EAAGA,iBAAkBA,CAAAA,gBAAgB,CAAC,CAAA;AAC/B,MAAMC,eAAe;AACrB,MAAMC,gBAAgB;IAC3BC,sBAAsB;IACtBC,oBAAoB;IACpBC,oBAAoB;IACpBC,sBAAsB;IACtBC,qBAAqB;IACrBC,iBAAiB;IACjBC,kBAAkB;IAClBC,eAAe;IACfC,gBAAgB;IAChBC,eAAe;IACfC,oBAAoB;IACpBC,sBAAsB;IACtB;;;;;;EAMA,GACAC,iBAAiB;AACnB,GACA,qCAAqC"}
@@ -0,0 +1,102 @@
1
+ /**
2
+ * Format date to a day string representation
3
+ * @param date - input date to format
4
+ */ "use strict";
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ function _export(target, all) {
9
+ for(var name in all)Object.defineProperty(target, name, {
10
+ enumerable: true,
11
+ get: all[name]
12
+ });
13
+ }
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
23
+ });
24
+ const formatDay = (date)=>date.getDate().toString();
25
+ const formatMonthDayYear = (date, strings)=>strings.months[date.getMonth()] + ' ' + date.getDate() + ', ' + date.getFullYear();
26
+ const formatMonthYear = (date, strings)=>strings.months[date.getMonth()] + ' ' + date.getFullYear();
27
+ const formatMonth = (date, strings)=>strings.months[date.getMonth()];
28
+ const formatYear = (date)=>date.getFullYear().toString();
29
+ const DEFAULT_DATE_GRID_STRINGS = {
30
+ months: [
31
+ 'January',
32
+ 'February',
33
+ 'March',
34
+ 'April',
35
+ 'May',
36
+ 'June',
37
+ 'July',
38
+ 'August',
39
+ 'September',
40
+ 'October',
41
+ 'November',
42
+ 'December'
43
+ ],
44
+ shortMonths: [
45
+ 'Jan',
46
+ 'Feb',
47
+ 'Mar',
48
+ 'Apr',
49
+ 'May',
50
+ 'Jun',
51
+ 'Jul',
52
+ 'Aug',
53
+ 'Sep',
54
+ 'Oct',
55
+ 'Nov',
56
+ 'Dec'
57
+ ],
58
+ days: [
59
+ 'Sunday',
60
+ 'Monday',
61
+ 'Tuesday',
62
+ 'Wednesday',
63
+ 'Thursday',
64
+ 'Friday',
65
+ 'Saturday'
66
+ ],
67
+ shortDays: [
68
+ 'S',
69
+ 'M',
70
+ 'T',
71
+ 'W',
72
+ 'T',
73
+ 'F',
74
+ 'S'
75
+ ]
76
+ };
77
+ const DEFAULT_DATE_FORMATTING = {
78
+ formatDay,
79
+ formatMonth,
80
+ formatYear,
81
+ formatMonthDayYear,
82
+ formatMonthYear
83
+ };
84
+ const DEFAULT_CALENDAR_STRINGS = {
85
+ ...DEFAULT_DATE_GRID_STRINGS,
86
+ goToToday: 'Go to today',
87
+ weekNumberFormatString: 'Week number {0}',
88
+ prevMonthAriaLabel: 'Previous month',
89
+ nextMonthAriaLabel: 'Next month',
90
+ prevYearAriaLabel: 'Previous year',
91
+ nextYearAriaLabel: 'Next year',
92
+ prevYearRangeAriaLabel: 'Previous year range',
93
+ nextYearRangeAriaLabel: 'Next year range',
94
+ closeButtonAriaLabel: 'Close',
95
+ selectedDateFormatString: 'Selected date {0}',
96
+ todayDateFormatString: "Today's date {0}",
97
+ monthPickerHeaderAriaLabel: '{0}, change year',
98
+ yearPickerHeaderAriaLabel: '{0}, change month',
99
+ dayMarkedAriaLabel: 'marked'
100
+ }; //# sourceMappingURL=dateFormatting.defaults.js.map
101
+
102
+ //# sourceMappingURL=dateFormatting.defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../lib/utils/dateFormatting/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 */\nexport 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 */\nexport 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 */\nexport 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 */\nexport const formatYear = date => date.getFullYear().toString();\nexport const DEFAULT_DATE_GRID_STRINGS = {\n months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n shortDays: ['S', 'M', 'T', 'W', 'T', 'F', 'S']\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//# sourceMappingURL=dateFormatting.defaults.js.map"],"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;;;;;;;;;;;IAAeA,SAAS,MAATA;IAMHC,kBAAkB,MAAlBA;IAMAC,eAAe,MAAfA;IAMAC,WAAW,MAAXA;IAKAC,UAAU,MAAVA;IACAC,yBAAyB,MAAzBA;IAMAC,uBAAuB,MAAvBA;IAOAC,wBAAwB,MAAxBA;;AArCH,MAAMP,YAAYQ,CAAAA,OAAQA,KAAKC,OAAO,GAAGC,QAAQ;AAMpD,MAAMT,qBAAqB,CAACO,MAAMG,UAAYA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG,GAAG,MAAML,KAAKC,OAAO,KAAK,OAAOD,KAAKM,WAAW;AAM9H,MAAMZ,kBAAkB,CAACM,MAAMG,UAAYA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG,GAAG,MAAML,KAAKM,WAAW;AAMnG,MAAMX,cAAc,CAACK,MAAMG,UAAYA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG;AAKtE,MAAMT,aAAaI,CAAAA,OAAQA,KAAKM,WAAW,GAAGJ,QAAQ;AACtD,MAAML,4BAA4B;IACvCO,QAAQ;QAAC;QAAW;QAAY;QAAS;QAAS;QAAO;QAAQ;QAAQ;QAAU;QAAa;QAAW;QAAY;KAAW;IAClIG,aAAa;QAAC;QAAO;QAAO;QAAO;QAAO;QAAO;QAAO;QAAO;QAAO;QAAO;QAAO;QAAO;KAAM;IACjGC,MAAM;QAAC;QAAU;QAAU;QAAW;QAAa;QAAY;QAAU;KAAW;IACpFC,WAAW;QAAC;QAAK;QAAK;QAAK;QAAK;QAAK;QAAK;KAAI;AAChD;AACO,MAAMX,0BAA0B;IACrCN;IACAG;IACAC;IACAH;IACAC;AACF;AACO,MAAMK,2BAA2B;IACtC,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;AACtB,GACA,mDAAmD"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ //# sourceMappingURL=dateFormatting.types.js.map
6
+
7
+ //# sourceMappingURL=dateFormatting.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../lib/utils/dateFormatting/dateFormatting.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=dateFormatting.types.js.map"],"names":[],"mappings":";;;;CACA,gDAAgD"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
+ _exportStar(require("./dateFormatting.defaults"), exports);
7
+ _exportStar(require("./dateFormatting.types"), exports);
8
+ //# sourceMappingURL=index.js.map
9
+
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../lib/utils/dateFormatting/index.js"],"sourcesContent":["export * from './dateFormatting.defaults';\nexport * from './dateFormatting.types';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;CACd,iCAAiC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ //# sourceMappingURL=dateGrid.types.js.map
6
+
7
+ //# sourceMappingURL=dateGrid.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../lib/utils/dateGrid/dateGrid.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=dateGrid.types.js.map"],"names":[],"mappings":";;;;CACA,0CAA0C"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "findAvailableDate", {
6
+ enumerable: true,
7
+ get: ()=>findAvailableDate
8
+ });
9
+ const _isRestrictedDate = require("./isRestrictedDate");
10
+ const _isAfterMaxDate = require("./isAfterMaxDate");
11
+ const _isBeforeMinDate = require("./isBeforeMinDate");
12
+ const _dateMath = require("../dateMath/dateMath");
13
+ const findAvailableDate = (options)=>{
14
+ const { targetDate , initialDate , direction , ...restrictedDateOptions } = options;
15
+ let availableDate = targetDate;
16
+ // if the target date is available, return it immediately
17
+ if (!(0, _isRestrictedDate.isRestrictedDate)(targetDate, restrictedDateOptions)) {
18
+ return targetDate;
19
+ }
20
+ while((0, _dateMath.compareDatePart)(initialDate, availableDate) !== 0 && (0, _isRestrictedDate.isRestrictedDate)(availableDate, restrictedDateOptions) && !(0, _isAfterMaxDate.isAfterMaxDate)(availableDate, restrictedDateOptions) && !(0, _isBeforeMinDate.isBeforeMinDate)(availableDate, restrictedDateOptions)){
21
+ availableDate = (0, _dateMath.addDays)(availableDate, direction);
22
+ }
23
+ if ((0, _dateMath.compareDatePart)(initialDate, availableDate) !== 0 && !(0, _isRestrictedDate.isRestrictedDate)(availableDate, restrictedDateOptions)) {
24
+ return availableDate;
25
+ }
26
+ return undefined;
27
+ }; //# sourceMappingURL=findAvailableDate.js.map
28
+
29
+ //# sourceMappingURL=findAvailableDate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../lib/utils/dateGrid/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 */\nexport const findAvailableDate = options => {\n const {\n targetDate,\n initialDate,\n direction,\n ...restrictedDateOptions\n } = 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//# sourceMappingURL=findAvailableDate.js.map"],"names":["findAvailableDate","options","targetDate","initialDate","direction","restrictedDateOptions","availableDate","isRestrictedDate","compareDatePart","isAfterMaxDate","isBeforeMinDate","addDays","undefined"],"mappings":";;;;+BAQaA;;aAAAA;;kCARoB;gCACF;iCACC;0BACS;AAKlC,MAAMA,oBAAoBC,CAAAA,UAAW;IAC1C,MAAM,EACJC,WAAU,EACVC,YAAW,EACXC,UAAS,EACT,GAAGC,uBACJ,GAAGJ;IACJ,IAAIK,gBAAgBJ;IACpB,yDAAyD;IACzD,IAAI,CAACK,IAAAA,kCAAgB,EAACL,YAAYG,wBAAwB;QACxD,OAAOH;IACT,CAAC;IACD,MAAOM,IAAAA,yBAAe,EAACL,aAAaG,mBAAmB,KAAKC,IAAAA,kCAAgB,EAACD,eAAeD,0BAA0B,CAACI,IAAAA,8BAAc,EAACH,eAAeD,0BAA0B,CAACK,IAAAA,gCAAe,EAACJ,eAAeD,uBAAwB;QACrOC,gBAAgBK,IAAAA,iBAAO,EAACL,eAAeF;IACzC;IACA,IAAII,IAAAA,yBAAe,EAACL,aAAaG,mBAAmB,KAAK,CAACC,IAAAA,kCAAgB,EAACD,eAAeD,wBAAwB;QAChH,OAAOC;IACT,CAAC;IACD,OAAOM;AACT,GACA,6CAA6C"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "getBoundedDateRange", {
6
+ enumerable: true,
7
+ get: ()=>getBoundedDateRange
8
+ });
9
+ const _dateMath = require("../dateMath/dateMath");
10
+ const getBoundedDateRange = (dateRange, minDate, maxDate)=>{
11
+ let boundedDateRange = [
12
+ ...dateRange
13
+ ];
14
+ if (minDate) {
15
+ boundedDateRange = boundedDateRange.filter((date)=>(0, _dateMath.compareDatePart)(date, minDate) >= 0);
16
+ }
17
+ if (maxDate) {
18
+ boundedDateRange = boundedDateRange.filter((date)=>(0, _dateMath.compareDatePart)(date, maxDate) <= 0);
19
+ }
20
+ return boundedDateRange;
21
+ }; //# sourceMappingURL=getBoundedDateRange.js.map
22
+
23
+ //# sourceMappingURL=getBoundedDateRange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../lib/utils/dateGrid/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 */\nexport const getBoundedDateRange = (dateRange, minDate, maxDate) => {\n let boundedDateRange = [...dateRange];\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//# sourceMappingURL=getBoundedDateRange.js.map"],"names":["getBoundedDateRange","dateRange","minDate","maxDate","boundedDateRange","filter","date","compareDatePart"],"mappings":";;;;+BAOaA;;aAAAA;;0BAPmB;AAOzB,MAAMA,sBAAsB,CAACC,WAAWC,SAASC,UAAY;IAClE,IAAIC,mBAAmB;WAAIH;KAAU;IACrC,IAAIC,SAAS;QACXE,mBAAmBA,iBAAiBC,MAAM,CAACC,CAAAA,OAAQC,IAAAA,yBAAe,EAACD,MAAMJ,YAAY;IACvF,CAAC;IACD,IAAIC,SAAS;QACXC,mBAAmBA,iBAAiBC,MAAM,CAACC,CAAAA,OAAQC,IAAAA,yBAAe,EAACD,MAAMH,YAAY;IACvF,CAAC;IACD,OAAOC;AACT,GACA,+CAA+C"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "getDateRangeTypeToUse", {
6
+ enumerable: true,
7
+ get: ()=>getDateRangeTypeToUse
8
+ });
9
+ const _constants = require("../constants");
10
+ const _isContiguous = require("./isContiguous");
11
+ const getDateRangeTypeToUse = (dateRangeType, workWeekDays, firstDayOfWeek)=>{
12
+ if (workWeekDays && dateRangeType === _constants.DateRangeType.WorkWeek) {
13
+ if (!(0, _isContiguous.isContiguous)(workWeekDays, true, firstDayOfWeek) || workWeekDays.length === 0) {
14
+ return _constants.DateRangeType.Week;
15
+ }
16
+ }
17
+ return dateRangeType;
18
+ }; //# sourceMappingURL=getDateRangeTypeToUse.js.map
19
+
20
+ //# sourceMappingURL=getDateRangeTypeToUse.js.map