@mui/x-date-pickers 6.18.7 → 6.19.2

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 (136) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.ts +4 -24
  2. package/AdapterDateFns/AdapterDateFns.js +11 -272
  3. package/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +65 -0
  4. package/AdapterDateFnsBase/AdapterDateFnsBase.js +308 -0
  5. package/AdapterDateFnsBase/index.d.ts +1 -0
  6. package/AdapterDateFnsBase/index.js +1 -0
  7. package/AdapterDateFnsBase/package.json +6 -0
  8. package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +1 -0
  9. package/AdapterDateFnsV3/AdapterDateFnsV3.d.ts +88 -0
  10. package/AdapterDateFnsV3/AdapterDateFnsV3.js +358 -0
  11. package/AdapterDateFnsV3/index.d.ts +1 -0
  12. package/AdapterDateFnsV3/index.js +1 -0
  13. package/AdapterDateFnsV3/package.json +6 -0
  14. package/AdapterLuxon/AdapterLuxon.js +0 -1
  15. package/CHANGELOG.md +106 -0
  16. package/DateCalendar/useCalendarState.js +0 -1
  17. package/DatePicker/DatePickerToolbar.d.ts +2 -2
  18. package/DatePicker/DatePickerToolbar.js +2 -7
  19. package/DateTimePicker/DateTimePickerTabs.js +6 -3
  20. package/DigitalClock/DigitalClock.js +1 -0
  21. package/DigitalClock/DigitalClock.types.d.ts +5 -0
  22. package/MonthCalendar/MonthCalendar.js +0 -1
  23. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  24. package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +5 -0
  25. package/PickersLayout/pickersLayoutClasses.js +3 -2
  26. package/PickersLayout/usePickerLayout.js +2 -1
  27. package/TimeClock/Clock.js +0 -1
  28. package/TimeClock/ClockPointer.js +0 -1
  29. package/TimeClock/TimeClock.js +1 -0
  30. package/TimeClock/TimeClock.types.d.ts +5 -0
  31. package/YearCalendar/YearCalendar.js +0 -1
  32. package/hooks/useClearableField.d.ts +1 -1
  33. package/hooks/useClearableField.js +3 -3
  34. package/index.js +1 -1
  35. package/internals/hooks/useClockReferenceDate.js +0 -1
  36. package/internals/hooks/useField/useField.utils.js +0 -2
  37. package/internals/hooks/useViews.js +0 -1
  38. package/internals/models/helpers.d.ts +1 -0
  39. package/internals/models/props/tabs.d.ts +1 -0
  40. package/legacy/AdapterDateFns/AdapterDateFns.js +278 -529
  41. package/legacy/AdapterDateFnsBase/AdapterDateFnsBase.js +308 -0
  42. package/legacy/AdapterDateFnsBase/index.js +1 -0
  43. package/legacy/AdapterDateFnsV3/AdapterDateFnsV3.js +376 -0
  44. package/legacy/AdapterDateFnsV3/index.js +1 -0
  45. package/legacy/AdapterLuxon/AdapterLuxon.js +0 -1
  46. package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +5 -6
  47. package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +5 -6
  48. package/legacy/DateCalendar/PickersSlideTransition.js +8 -9
  49. package/legacy/DateCalendar/useCalendarState.js +0 -1
  50. package/legacy/DatePicker/DatePickerToolbar.js +2 -7
  51. package/legacy/DateTimePicker/DateTimePickerTabs.js +6 -3
  52. package/legacy/DigitalClock/DigitalClock.js +1 -0
  53. package/legacy/MonthCalendar/MonthCalendar.js +0 -1
  54. package/legacy/MonthCalendar/PickersMonth.js +4 -5
  55. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  56. package/legacy/PickersDay/PickersDay.js +5 -6
  57. package/legacy/PickersLayout/PickersLayout.js +5 -6
  58. package/legacy/PickersLayout/pickersLayoutClasses.js +3 -2
  59. package/legacy/PickersLayout/usePickerLayout.js +2 -1
  60. package/legacy/TimeClock/Clock.js +0 -1
  61. package/legacy/TimeClock/ClockNumber.js +4 -5
  62. package/legacy/TimeClock/ClockPointer.js +0 -1
  63. package/legacy/TimeClock/TimeClock.js +1 -0
  64. package/legacy/TimePicker/TimePickerToolbar.js +1 -2
  65. package/legacy/YearCalendar/PickersYear.js +4 -5
  66. package/legacy/YearCalendar/YearCalendar.js +0 -1
  67. package/legacy/hooks/useClearableField.js +3 -3
  68. package/legacy/index.js +1 -1
  69. package/legacy/internals/components/PickersModalDialog.js +3 -4
  70. package/legacy/internals/hooks/useClockReferenceDate.js +0 -1
  71. package/legacy/internals/hooks/useField/useField.utils.js +0 -2
  72. package/legacy/internals/hooks/useViews.js +0 -1
  73. package/legacy/locales/index.js +1 -0
  74. package/legacy/locales/plPL.js +0 -1
  75. package/legacy/locales/svSE.js +0 -1
  76. package/legacy/locales/urPK.js +0 -1
  77. package/locales/index.d.ts +1 -0
  78. package/locales/index.js +1 -0
  79. package/locales/plPL.js +0 -1
  80. package/locales/svSE.js +0 -1
  81. package/locales/urPK.js +0 -1
  82. package/modern/AdapterDateFns/AdapterDateFns.js +11 -271
  83. package/modern/AdapterDateFnsBase/AdapterDateFnsBase.js +307 -0
  84. package/modern/AdapterDateFnsBase/index.js +1 -0
  85. package/modern/AdapterDateFnsV3/AdapterDateFnsV3.js +358 -0
  86. package/modern/AdapterDateFnsV3/index.js +1 -0
  87. package/modern/AdapterLuxon/AdapterLuxon.js +0 -1
  88. package/modern/DateCalendar/useCalendarState.js +0 -1
  89. package/modern/DatePicker/DatePickerToolbar.js +2 -7
  90. package/modern/DateTimePicker/DateTimePickerTabs.js +6 -3
  91. package/modern/DigitalClock/DigitalClock.js +1 -0
  92. package/modern/MonthCalendar/MonthCalendar.js +0 -1
  93. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  94. package/modern/PickersLayout/pickersLayoutClasses.js +3 -2
  95. package/modern/PickersLayout/usePickerLayout.js +2 -1
  96. package/modern/TimeClock/Clock.js +0 -1
  97. package/modern/TimeClock/ClockPointer.js +0 -1
  98. package/modern/TimeClock/TimeClock.js +1 -0
  99. package/modern/YearCalendar/YearCalendar.js +0 -1
  100. package/modern/hooks/useClearableField.js +3 -3
  101. package/modern/index.js +1 -1
  102. package/modern/internals/hooks/useClockReferenceDate.js +0 -1
  103. package/modern/internals/hooks/useField/useField.utils.js +0 -2
  104. package/modern/internals/hooks/useViews.js +0 -1
  105. package/modern/locales/index.js +1 -0
  106. package/modern/locales/plPL.js +0 -1
  107. package/modern/locales/svSE.js +0 -1
  108. package/modern/locales/urPK.js +0 -1
  109. package/node/AdapterDateFns/AdapterDateFns.js +11 -271
  110. package/node/AdapterDateFnsBase/AdapterDateFnsBase.js +315 -0
  111. package/node/AdapterDateFnsBase/index.js +12 -0
  112. package/node/AdapterDateFnsV3/AdapterDateFnsV3.js +366 -0
  113. package/node/AdapterDateFnsV3/index.js +12 -0
  114. package/node/AdapterLuxon/AdapterLuxon.js +0 -1
  115. package/node/DateCalendar/useCalendarState.js +0 -1
  116. package/node/DatePicker/DatePickerToolbar.js +0 -4
  117. package/node/DateTimePicker/DateTimePickerTabs.js +7 -4
  118. package/node/DigitalClock/DigitalClock.js +1 -0
  119. package/node/MonthCalendar/MonthCalendar.js +0 -1
  120. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  121. package/node/PickersLayout/pickersLayoutClasses.js +5 -3
  122. package/node/PickersLayout/usePickerLayout.js +2 -1
  123. package/node/TimeClock/Clock.js +0 -1
  124. package/node/TimeClock/ClockPointer.js +0 -1
  125. package/node/TimeClock/TimeClock.js +1 -0
  126. package/node/YearCalendar/YearCalendar.js +0 -1
  127. package/node/hooks/useClearableField.js +3 -3
  128. package/node/index.js +1 -1
  129. package/node/internals/hooks/useClockReferenceDate.js +0 -1
  130. package/node/internals/hooks/useField/useField.utils.js +0 -2
  131. package/node/internals/hooks/useViews.js +0 -1
  132. package/node/locales/index.js +11 -0
  133. package/node/locales/plPL.js +0 -1
  134. package/node/locales/svSE.js +0 -1
  135. package/node/locales/urPK.js +0 -1
  136. package/package.json +2 -2
@@ -0,0 +1,308 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ /* eslint-disable class-methods-use-this */
3
+
4
+ const formatTokenMap = {
5
+ // Year
6
+ y: {
7
+ sectionType: 'year',
8
+ contentType: 'digit',
9
+ maxLength: 4
10
+ },
11
+ yy: 'year',
12
+ yyy: {
13
+ sectionType: 'year',
14
+ contentType: 'digit',
15
+ maxLength: 4
16
+ },
17
+ yyyy: 'year',
18
+ // Month
19
+ M: {
20
+ sectionType: 'month',
21
+ contentType: 'digit',
22
+ maxLength: 2
23
+ },
24
+ MM: 'month',
25
+ MMMM: {
26
+ sectionType: 'month',
27
+ contentType: 'letter'
28
+ },
29
+ MMM: {
30
+ sectionType: 'month',
31
+ contentType: 'letter'
32
+ },
33
+ L: {
34
+ sectionType: 'month',
35
+ contentType: 'digit',
36
+ maxLength: 2
37
+ },
38
+ LL: 'month',
39
+ LLL: {
40
+ sectionType: 'month',
41
+ contentType: 'letter'
42
+ },
43
+ LLLL: {
44
+ sectionType: 'month',
45
+ contentType: 'letter'
46
+ },
47
+ // Day of the month
48
+ d: {
49
+ sectionType: 'day',
50
+ contentType: 'digit',
51
+ maxLength: 2
52
+ },
53
+ dd: 'day',
54
+ do: {
55
+ sectionType: 'day',
56
+ contentType: 'digit-with-letter'
57
+ },
58
+ // Day of the week
59
+ E: {
60
+ sectionType: 'weekDay',
61
+ contentType: 'letter'
62
+ },
63
+ EE: {
64
+ sectionType: 'weekDay',
65
+ contentType: 'letter'
66
+ },
67
+ EEE: {
68
+ sectionType: 'weekDay',
69
+ contentType: 'letter'
70
+ },
71
+ EEEE: {
72
+ sectionType: 'weekDay',
73
+ contentType: 'letter'
74
+ },
75
+ EEEEE: {
76
+ sectionType: 'weekDay',
77
+ contentType: 'letter'
78
+ },
79
+ i: {
80
+ sectionType: 'weekDay',
81
+ contentType: 'digit',
82
+ maxLength: 1
83
+ },
84
+ ii: 'weekDay',
85
+ iii: {
86
+ sectionType: 'weekDay',
87
+ contentType: 'letter'
88
+ },
89
+ iiii: {
90
+ sectionType: 'weekDay',
91
+ contentType: 'letter'
92
+ },
93
+ e: {
94
+ sectionType: 'weekDay',
95
+ contentType: 'digit',
96
+ maxLength: 1
97
+ },
98
+ ee: 'weekDay',
99
+ eee: {
100
+ sectionType: 'weekDay',
101
+ contentType: 'letter'
102
+ },
103
+ eeee: {
104
+ sectionType: 'weekDay',
105
+ contentType: 'letter'
106
+ },
107
+ eeeee: {
108
+ sectionType: 'weekDay',
109
+ contentType: 'letter'
110
+ },
111
+ eeeeee: {
112
+ sectionType: 'weekDay',
113
+ contentType: 'letter'
114
+ },
115
+ c: {
116
+ sectionType: 'weekDay',
117
+ contentType: 'digit',
118
+ maxLength: 1
119
+ },
120
+ cc: 'weekDay',
121
+ ccc: {
122
+ sectionType: 'weekDay',
123
+ contentType: 'letter'
124
+ },
125
+ cccc: {
126
+ sectionType: 'weekDay',
127
+ contentType: 'letter'
128
+ },
129
+ ccccc: {
130
+ sectionType: 'weekDay',
131
+ contentType: 'letter'
132
+ },
133
+ cccccc: {
134
+ sectionType: 'weekDay',
135
+ contentType: 'letter'
136
+ },
137
+ // Meridiem
138
+ a: 'meridiem',
139
+ aa: 'meridiem',
140
+ aaa: 'meridiem',
141
+ // Hours
142
+ H: {
143
+ sectionType: 'hours',
144
+ contentType: 'digit',
145
+ maxLength: 2
146
+ },
147
+ HH: 'hours',
148
+ h: {
149
+ sectionType: 'hours',
150
+ contentType: 'digit',
151
+ maxLength: 2
152
+ },
153
+ hh: 'hours',
154
+ // Minutes
155
+ m: {
156
+ sectionType: 'minutes',
157
+ contentType: 'digit',
158
+ maxLength: 2
159
+ },
160
+ mm: 'minutes',
161
+ // Seconds
162
+ s: {
163
+ sectionType: 'seconds',
164
+ contentType: 'digit',
165
+ maxLength: 2
166
+ },
167
+ ss: 'seconds'
168
+ };
169
+ const defaultFormats = {
170
+ year: 'yyyy',
171
+ month: 'LLLL',
172
+ monthShort: 'MMM',
173
+ dayOfMonth: 'd',
174
+ weekday: 'EEEE',
175
+ weekdayShort: 'EEEEEE',
176
+ hours24h: 'HH',
177
+ hours12h: 'hh',
178
+ meridiem: 'aa',
179
+ minutes: 'mm',
180
+ seconds: 'ss',
181
+ fullDate: 'PP',
182
+ fullDateWithWeekday: 'PPPP',
183
+ keyboardDate: 'P',
184
+ shortDate: 'MMM d',
185
+ normalDate: 'd MMMM',
186
+ normalDateWithWeekday: 'EEE, MMM d',
187
+ monthAndYear: 'LLLL yyyy',
188
+ monthAndDate: 'MMMM d',
189
+ fullTime: 'p',
190
+ fullTime12h: 'hh:mm aa',
191
+ fullTime24h: 'HH:mm',
192
+ fullDateTime: 'PP p',
193
+ fullDateTime12h: 'PP hh:mm aa',
194
+ fullDateTime24h: 'PP HH:mm',
195
+ keyboardDateTime: 'P p',
196
+ keyboardDateTime12h: 'P hh:mm aa',
197
+ keyboardDateTime24h: 'P HH:mm'
198
+ };
199
+ /**
200
+ * Based on `@date-io/date-fns`
201
+ *
202
+ * MIT License
203
+ *
204
+ * Copyright (c) 2017 Dmitriy Kovalenko
205
+ *
206
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
207
+ * of this software and associated documentation files (the "Software"), to deal
208
+ * in the Software without restriction, including without limitation the rights
209
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
210
+ * copies of the Software, and to permit persons to whom the Software is
211
+ * furnished to do so, subject to the following conditions:
212
+ *
213
+ * The above copyright notice and this permission notice shall be included in all
214
+ * copies or substantial portions of the Software.
215
+ *
216
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
217
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
218
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
219
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
220
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
221
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
222
+ * SOFTWARE.
223
+ */
224
+ export class AdapterDateFnsBase {
225
+ constructor(props) {
226
+ this.isMUIAdapter = true;
227
+ this.isTimezoneCompatible = false;
228
+ this.lib = 'date-fns';
229
+ this.locale = void 0;
230
+ this.formats = void 0;
231
+ this.formatTokenMap = formatTokenMap;
232
+ this.escapedCharacters = {
233
+ start: "'",
234
+ end: "'"
235
+ };
236
+ this.longFormatters = void 0;
237
+ this.date = value => {
238
+ if (typeof value === 'undefined') {
239
+ return new Date();
240
+ }
241
+ if (value === null) {
242
+ return null;
243
+ }
244
+ return new Date(value);
245
+ };
246
+ this.dateWithTimezone = value => {
247
+ return this.date(value);
248
+ };
249
+ this.getTimezone = () => {
250
+ return 'default';
251
+ };
252
+ this.setTimezone = value => {
253
+ return value;
254
+ };
255
+ this.toJsDate = value => {
256
+ return value;
257
+ };
258
+ this.getCurrentLocaleCode = () => {
259
+ var _this$locale;
260
+ return ((_this$locale = this.locale) == null ? void 0 : _this$locale.code) || 'en-US';
261
+ };
262
+ // Note: date-fns input types are more lenient than this adapter, so we need to expose our more
263
+ // strict signature and delegate to the more lenient signature. Otherwise, we have downstream type errors upon usage.
264
+ this.is12HourCycleInCurrentLocale = () => {
265
+ if (this.locale) {
266
+ return /a/.test(this.locale.formatLong.time({
267
+ width: 'short'
268
+ }));
269
+ }
270
+
271
+ // By default, date-fns is using en-US locale with am/pm enabled
272
+ return true;
273
+ };
274
+ this.expandFormat = format => {
275
+ const longFormatRegexp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
276
+
277
+ // @see https://github.com/date-fns/date-fns/blob/master/src/format/index.js#L31
278
+ return format.match(longFormatRegexp).map(token => {
279
+ const firstCharacter = token[0];
280
+ if (firstCharacter === 'p' || firstCharacter === 'P') {
281
+ const longFormatter = this.longFormatters[firstCharacter];
282
+ return longFormatter(token, this.locale.formatLong);
283
+ }
284
+ return token;
285
+ }).join('');
286
+ };
287
+ this.getFormatHelperText = format => {
288
+ return this.expandFormat(format).replace(/(aaa|aa|a)/g, '(a|p)m').toLocaleLowerCase();
289
+ };
290
+ this.isNull = value => {
291
+ return value === null;
292
+ };
293
+ this.formatNumber = numberToFormat => {
294
+ return numberToFormat;
295
+ };
296
+ this.getMeridiemText = ampm => {
297
+ return ampm === 'am' ? 'AM' : 'PM';
298
+ };
299
+ const {
300
+ locale,
301
+ formats,
302
+ longFormatters
303
+ } = props;
304
+ this.locale = locale;
305
+ this.formats = _extends({}, defaultFormats, formats);
306
+ this.longFormatters = longFormatters;
307
+ }
308
+ }
@@ -0,0 +1 @@
1
+ export { AdapterDateFnsBase } from './AdapterDateFnsBase';
@@ -0,0 +1 @@
1
+ export { AdapterDateFnsBase } from './AdapterDateFnsBase';
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/AdapterDateFnsBase/index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -1,3 +1,4 @@
1
+ /// <reference types="date-fns-jalali" />
1
2
  import defaultLocale from 'date-fns-jalali/locale/fa-IR';
2
3
  import { AdapterFormats, AdapterOptions, AdapterUnits, DateBuilderReturnType, FieldFormatTokenMap, MuiPickersAdapter } from '../models';
3
4
  type DateFnsLocale = typeof defaultLocale;
@@ -0,0 +1,88 @@
1
+ import { Locale as DateFnsLocale } from 'date-fns/locale/types';
2
+ import { AdapterFormats, AdapterOptions, AdapterUnits, MuiPickersAdapter } from '../models';
3
+ import { AdapterDateFnsBase } from '../AdapterDateFnsBase';
4
+ /**
5
+ * Based on `@date-io/date-fns`
6
+ *
7
+ * MIT License
8
+ *
9
+ * Copyright (c) 2017 Dmitriy Kovalenko
10
+ *
11
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ * of this software and associated documentation files (the "Software"), to deal
13
+ * in the Software without restriction, including without limitation the rights
14
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ * copies of the Software, and to permit persons to whom the Software is
16
+ * furnished to do so, subject to the following conditions:
17
+ *
18
+ * The above copyright notice and this permission notice shall be included in all
19
+ * copies or substantial portions of the Software.
20
+ *
21
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ * SOFTWARE.
28
+ */
29
+ export declare class AdapterDateFns extends AdapterDateFnsBase<DateFnsLocale> implements MuiPickersAdapter<Date, DateFnsLocale> {
30
+ constructor({ locale, formats }?: AdapterOptions<DateFnsLocale, never>);
31
+ parseISO: (isoString: string) => any;
32
+ toISO: (value: Date) => any;
33
+ parse: (value: string, format: string) => any;
34
+ isValid: (value: any) => any;
35
+ format: (value: Date, formatKey: keyof AdapterFormats) => any;
36
+ formatByString: (value: Date, formatString: string) => any;
37
+ getDiff: (value: Date, comparing: Date | string, unit?: AdapterUnits) => any;
38
+ isEqual: (value: any, comparing: any) => any;
39
+ isSameYear: (value: Date, comparing: Date) => any;
40
+ isSameMonth: (value: Date, comparing: Date) => any;
41
+ isSameDay: (value: Date, comparing: Date) => any;
42
+ isSameHour: (value: Date, comparing: Date) => any;
43
+ isAfter: (value: Date, comparing: Date) => any;
44
+ isAfterYear: (value: Date, comparing: Date) => any;
45
+ isAfterDay: (value: Date, comparing: Date) => any;
46
+ isBefore: (value: Date, comparing: Date) => any;
47
+ isBeforeYear: (value: Date, comparing: Date) => any;
48
+ isBeforeDay: (value: Date, comparing: Date) => any;
49
+ isWithinRange: (value: Date, [start, end]: [Date, Date]) => any;
50
+ startOfYear: (value: Date) => any;
51
+ startOfMonth: (value: Date) => any;
52
+ startOfWeek: (value: Date) => any;
53
+ startOfDay: (value: Date) => any;
54
+ endOfYear: (value: Date) => any;
55
+ endOfMonth: (value: Date) => any;
56
+ endOfWeek: (value: Date) => any;
57
+ endOfDay: (value: Date) => any;
58
+ addYears: (value: Date, amount: number) => any;
59
+ addMonths: (value: Date, amount: number) => any;
60
+ addWeeks: (value: Date, amount: number) => any;
61
+ addDays: (value: Date, amount: number) => any;
62
+ addHours: (value: Date, amount: number) => any;
63
+ addMinutes: (value: Date, amount: number) => any;
64
+ addSeconds: (value: Date, amount: number) => any;
65
+ getYear: (value: Date) => any;
66
+ getMonth: (value: Date) => any;
67
+ getDate: (value: Date) => any;
68
+ getHours: (value: Date) => any;
69
+ getMinutes: (value: Date) => any;
70
+ getSeconds: (value: Date) => any;
71
+ getMilliseconds: (value: Date) => any;
72
+ setYear: (value: Date, year: number) => any;
73
+ setMonth: (value: Date, month: number) => any;
74
+ setDate: (value: Date, date: number) => any;
75
+ setHours: (value: Date, hours: number) => any;
76
+ setMinutes: (value: Date, minutes: number) => any;
77
+ setSeconds: (value: Date, seconds: number) => any;
78
+ setMilliseconds: (value: Date, milliseconds: number) => any;
79
+ getDaysInMonth: (value: Date) => any;
80
+ getNextMonth: (value: Date) => any;
81
+ getPreviousMonth: (value: Date) => any;
82
+ getMonthArray: (value: Date) => any[];
83
+ mergeDateAndTime: (dateParam: Date, timeParam: Date) => any;
84
+ getWeekdays: () => any;
85
+ getWeekArray: (value: Date) => Date[][];
86
+ getWeekNumber: (value: Date) => any;
87
+ getYearRange: (start: Date, end: Date) => Date[];
88
+ }