@salutejs/plasma-new-hope 0.324.1-canary.1963.15248654504.0 → 0.324.1-canary.1963.15260780182.0

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 (42) hide show
  1. package/cjs/components/Calendar/hooks/useMonths.js +3 -1
  2. package/cjs/components/Calendar/hooks/useMonths.js.map +1 -1
  3. package/cjs/components/Calendar/hooks/useQuarters.js +3 -1
  4. package/cjs/components/Calendar/hooks/useQuarters.js.map +1 -1
  5. package/cjs/components/Calendar/hooks/useYears.js +3 -1
  6. package/cjs/components/Calendar/hooks/useYears.js.map +1 -1
  7. package/cjs/components/Calendar/utils/getDateWithModification.js +28 -24
  8. package/cjs/components/Calendar/utils/getDateWithModification.js.map +1 -1
  9. package/emotion/cjs/components/Calendar/hooks/useMonths.js +3 -1
  10. package/emotion/cjs/components/Calendar/hooks/useQuarters.js +3 -1
  11. package/emotion/cjs/components/Calendar/hooks/useYears.js +3 -1
  12. package/emotion/cjs/components/Calendar/utils/getDateWithModification.js +28 -24
  13. package/emotion/es/components/Calendar/hooks/useMonths.js +3 -1
  14. package/emotion/es/components/Calendar/hooks/useQuarters.js +3 -1
  15. package/emotion/es/components/Calendar/hooks/useYears.js +3 -1
  16. package/emotion/es/components/Calendar/utils/getDateWithModification.js +28 -24
  17. package/es/components/Calendar/hooks/useMonths.js +3 -1
  18. package/es/components/Calendar/hooks/useMonths.js.map +1 -1
  19. package/es/components/Calendar/hooks/useQuarters.js +3 -1
  20. package/es/components/Calendar/hooks/useQuarters.js.map +1 -1
  21. package/es/components/Calendar/hooks/useYears.js +3 -1
  22. package/es/components/Calendar/hooks/useYears.js.map +1 -1
  23. package/es/components/Calendar/utils/getDateWithModification.js +28 -24
  24. package/es/components/Calendar/utils/getDateWithModification.js.map +1 -1
  25. package/package.json +2 -2
  26. package/styled-components/cjs/components/Calendar/hooks/useMonths.js +3 -1
  27. package/styled-components/cjs/components/Calendar/hooks/useQuarters.js +3 -1
  28. package/styled-components/cjs/components/Calendar/hooks/useYears.js +3 -1
  29. package/styled-components/cjs/components/Calendar/utils/getDateWithModification.js +28 -24
  30. package/styled-components/es/components/Calendar/hooks/useMonths.js +3 -1
  31. package/styled-components/es/components/Calendar/hooks/useQuarters.js +3 -1
  32. package/styled-components/es/components/Calendar/hooks/useYears.js +3 -1
  33. package/styled-components/es/components/Calendar/utils/getDateWithModification.js +28 -24
  34. package/types/components/Calendar/hooks/types.d.ts +7 -2
  35. package/types/components/Calendar/hooks/types.d.ts.map +1 -1
  36. package/types/components/Calendar/hooks/useMonths.d.ts +1 -1
  37. package/types/components/Calendar/hooks/useMonths.d.ts.map +1 -1
  38. package/types/components/Calendar/hooks/useQuarters.d.ts +1 -1
  39. package/types/components/Calendar/hooks/useQuarters.d.ts.map +1 -1
  40. package/types/components/Calendar/hooks/useYears.d.ts +1 -1
  41. package/types/components/Calendar/hooks/useYears.d.ts.map +1 -1
  42. package/types/components/Calendar/utils/getDateWithModification.d.ts.map +1 -1
@@ -48,7 +48,7 @@ var normalizeDate = function normalizeDate(date, type) {
48
48
  date.setMonth(0);
49
49
  }
50
50
  };
51
- var isDisabledNextDate = function isDisabledNextDate(_ref, type, max) {
51
+ var isDisabledNextDate = function isDisabledNextDate(_ref, type, max, includeEdgeDates) {
52
52
  var year = _ref.year,
53
53
  monthIndex = _ref.monthIndex,
54
54
  day = _ref.day;
@@ -60,13 +60,13 @@ var isDisabledNextDate = function isDisabledNextDate(_ref, type, max) {
60
60
  var currentDate = new Date(year, monthIndex, day);
61
61
  dateOperationHandler[type].add(currentDate);
62
62
  var isOut = true;
63
- while (isOut && currentDate <= maxDate) {
64
- isOut = maxDate <= currentDate;
63
+ while (isOut && includeEdgeDates ? currentDate < maxDate : currentDate <= maxDate) {
64
+ isOut = includeEdgeDates ? maxDate < currentDate : maxDate <= currentDate;
65
65
  dateOperationHandler[type].add(currentDate);
66
66
  }
67
67
  return isOut;
68
68
  };
69
- var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min) {
69
+ var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min, includeEdgeDates) {
70
70
  var year = _ref2.year,
71
71
  monthIndex = _ref2.monthIndex,
72
72
  day = _ref2.day;
@@ -78,54 +78,58 @@ var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min) {
78
78
  var currentDate = new Date(year, monthIndex, day);
79
79
  dateOperationHandler[type].subtract(currentDate);
80
80
  var isOut = true;
81
- while (isOut && currentDate >= minDate) {
82
- isOut = minDate >= currentDate;
81
+ while (isOut && includeEdgeDates ? currentDate > minDate : currentDate >= minDate) {
82
+ isOut = includeEdgeDates ? minDate > currentDate : minDate >= currentDate;
83
83
  dateOperationHandler[type].subtract(currentDate);
84
84
  }
85
85
  return isOut;
86
86
  };
87
- var getDisabledDates = function getDisabledDates(list, type, min, max) {
87
+ var getDisabledDates = function getDisabledDates(list, type, min, max, includeEdgeDates) {
88
88
  var disabledDate = [];
89
- if (isDisabledPreviousDate(list[0], type, min)) {
89
+ if (isDisabledPreviousDate(list[0], type, min, includeEdgeDates)) {
90
90
  disabledDate.push('previous');
91
91
  }
92
- if (isDisabledNextDate(list[list.length - 1], type, max)) {
92
+ if (isDisabledNextDate(list[list.length - 1], type, max, includeEdgeDates)) {
93
93
  disabledDate.push('next');
94
94
  }
95
95
  return disabledDate.join(',');
96
96
  };
97
- var isDisabledArrowLeft = function isDisabledArrowLeft(date, min) {
97
+ var isDisabledArrowLeft = function isDisabledArrowLeft(date, min, includeEdgeDates) {
98
98
  var currentDate = new Date(date);
99
99
  currentDate.setDate(currentDate.getDate() - 1);
100
- return min && min >= currentDate || min && min >= date;
100
+ var disableCondition = min && (includeEdgeDates ? min > currentDate : min >= currentDate);
101
+ return disableCondition;
101
102
  };
102
- var isDisabledArrowRight = function isDisabledArrowRight(date, max) {
103
+ var isDisabledArrowRight = function isDisabledArrowRight(date, max, includeEdgeDates) {
103
104
  var currentDate = new Date(date);
104
105
  currentDate.setDate(currentDate.getDate() + 1);
105
- return max && max <= currentDate || max && max <= date;
106
+ var disableCondition = max && (includeEdgeDates ? max < currentDate : max <= currentDate);
107
+ return disableCondition;
106
108
  };
107
- var isDisabledArrowUp = function isDisabledArrowUp(date, min) {
109
+ var isDisabledArrowUp = function isDisabledArrowUp(date, min, includeEdgeDates) {
108
110
  var currentDate = new Date(date);
109
111
  currentDate.setDate(date.getDate() - 7);
110
- return min && min >= currentDate;
112
+ var disableCondition = min && (includeEdgeDates ? min > currentDate : min >= currentDate);
113
+ return disableCondition;
111
114
  };
112
- var isDisabledArrowDown = function isDisabledArrowDown(date, max) {
115
+ var isDisabledArrowDown = function isDisabledArrowDown(date, max, includeEdgeDates) {
113
116
  var currentDate = new Date(date);
114
117
  currentDate.setDate(date.getDate() + 7);
115
- return max && max <= currentDate;
118
+ var disableCondition = max && (includeEdgeDates ? max < currentDate : max <= currentDate);
119
+ return disableCondition;
116
120
  };
117
- var getDisabledArrowKey = function getDisabledArrowKey(currentDate, min, max) {
121
+ var getDisabledArrowKey = function getDisabledArrowKey(currentDate, min, max, includeEdgeDates) {
118
122
  var disabledArrowKey = [];
119
- if (isDisabledArrowLeft(currentDate, min)) {
123
+ if (isDisabledArrowLeft(currentDate, min, includeEdgeDates)) {
120
124
  disabledArrowKey.push('left');
121
125
  }
122
- if (isDisabledArrowRight(currentDate, max)) {
126
+ if (isDisabledArrowRight(currentDate, max, includeEdgeDates)) {
123
127
  disabledArrowKey.push('right');
124
128
  }
125
- if (isDisabledArrowDown(currentDate, max)) {
129
+ if (isDisabledArrowDown(currentDate, max, includeEdgeDates)) {
126
130
  disabledArrowKey.push('down');
127
131
  }
128
- if (isDisabledArrowUp(currentDate, min)) {
132
+ if (isDisabledArrowUp(currentDate, min, includeEdgeDates)) {
129
133
  disabledArrowKey.push('up');
130
134
  }
131
135
  return disabledArrowKey.join(',');
@@ -154,7 +158,7 @@ var getDatesWithModifications = exports.getDatesWithModifications = function get
154
158
  var date = _ref5.date;
155
159
  return date;
156
160
  });
157
- var disabledDates = getDisabledDates(datesList, type, min, max);
161
+ var disabledDates = getDisabledDates(datesList, type, min, max, includeEdgeDates);
158
162
  return dates.map(function (dateItem) {
159
163
  var date = dateItem.date;
160
164
  var year = date.year,
@@ -179,7 +183,7 @@ var getDatesWithModifications = exports.getDatesWithModifications = function get
179
183
  dateItem.events = eventsMap.get(keyDate);
180
184
  dateItem.disabled = disabledDatesMap.has(keyDate) || isOutOfMinMaxRange;
181
185
  dateItem.isOutOfMinMaxRange = isOutOfMinMaxRange;
182
- dateItem.disabledArrowKey = getDisabledArrowKey(currentDate, min, max);
186
+ dateItem.disabledArrowKey = getDisabledArrowKey(currentDate, min, max, includeEdgeDates);
183
187
  dateItem.disabledDates = disabledDates;
184
188
  return dateItem;
185
189
  });
@@ -12,7 +12,8 @@ export var useMonths = function useMonths(_ref) {
12
12
  min = _ref.min,
13
13
  max = _ref.max,
14
14
  _ref$locale = _ref.locale,
15
- locale = _ref$locale === void 0 ? 'ru' : _ref$locale;
15
+ locale = _ref$locale === void 0 ? 'ru' : _ref$locale,
16
+ includeEdgeDates = _ref.includeEdgeDates;
16
17
  return useMemo(function () {
17
18
  var months = SHORT_MONTH_NAME[locale].map(function (monthName, monthIndex) {
18
19
  return {
@@ -37,6 +38,7 @@ export var useMonths = function useMonths(_ref) {
37
38
  type: CalendarState.Months,
38
39
  min: min,
39
40
  max: max,
41
+ includeEdgeDates: includeEdgeDates,
40
42
  eventList: eventList,
41
43
  disabledList: disabledList
42
44
  });
@@ -10,7 +10,8 @@ export var useQuarters = function useQuarters(_ref) {
10
10
  eventList = _ref.eventList,
11
11
  disabledList = _ref.disabledList,
12
12
  min = _ref.min,
13
- max = _ref.max;
13
+ max = _ref.max,
14
+ includeEdgeDates = _ref.includeEdgeDates;
14
15
  return useMemo(function () {
15
16
  var quarters = QUARTER_NAMES.map(function (quarterName) {
16
17
  var _quarterDates$quarter = quarterDates[quarterName],
@@ -36,6 +37,7 @@ export var useQuarters = function useQuarters(_ref) {
36
37
  type: CalendarState.Quarters,
37
38
  min: min,
38
39
  max: max,
40
+ includeEdgeDates: includeEdgeDates,
39
41
  eventList: eventList,
40
42
  disabledList: disabledList
41
43
  });
@@ -11,7 +11,8 @@ export var useYears = function useYears(_ref) {
11
11
  eventList = _ref.eventList,
12
12
  disabledList = _ref.disabledList,
13
13
  min = _ref.min,
14
- max = _ref.max;
14
+ max = _ref.max,
15
+ includeEdgeDates = _ref.includeEdgeDates;
15
16
  return useMemo(function () {
16
17
  // type-coverage:ignore-next-line
17
18
  var years = Array.from(Array(YEAR_RENDER_COUNT), function (_, i) {
@@ -36,6 +37,7 @@ export var useYears = function useYears(_ref) {
36
37
  type: CalendarState.Years,
37
38
  min: min,
38
39
  max: max,
40
+ includeEdgeDates: includeEdgeDates,
39
41
  eventList: eventList,
40
42
  disabledList: disabledList
41
43
  });
@@ -42,7 +42,7 @@ var normalizeDate = function normalizeDate(date, type) {
42
42
  date.setMonth(0);
43
43
  }
44
44
  };
45
- var isDisabledNextDate = function isDisabledNextDate(_ref, type, max) {
45
+ var isDisabledNextDate = function isDisabledNextDate(_ref, type, max, includeEdgeDates) {
46
46
  var year = _ref.year,
47
47
  monthIndex = _ref.monthIndex,
48
48
  day = _ref.day;
@@ -54,13 +54,13 @@ var isDisabledNextDate = function isDisabledNextDate(_ref, type, max) {
54
54
  var currentDate = new Date(year, monthIndex, day);
55
55
  dateOperationHandler[type].add(currentDate);
56
56
  var isOut = true;
57
- while (isOut && currentDate <= maxDate) {
58
- isOut = maxDate <= currentDate;
57
+ while (isOut && includeEdgeDates ? currentDate < maxDate : currentDate <= maxDate) {
58
+ isOut = includeEdgeDates ? maxDate < currentDate : maxDate <= currentDate;
59
59
  dateOperationHandler[type].add(currentDate);
60
60
  }
61
61
  return isOut;
62
62
  };
63
- var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min) {
63
+ var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min, includeEdgeDates) {
64
64
  var year = _ref2.year,
65
65
  monthIndex = _ref2.monthIndex,
66
66
  day = _ref2.day;
@@ -72,54 +72,58 @@ var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min) {
72
72
  var currentDate = new Date(year, monthIndex, day);
73
73
  dateOperationHandler[type].subtract(currentDate);
74
74
  var isOut = true;
75
- while (isOut && currentDate >= minDate) {
76
- isOut = minDate >= currentDate;
75
+ while (isOut && includeEdgeDates ? currentDate > minDate : currentDate >= minDate) {
76
+ isOut = includeEdgeDates ? minDate > currentDate : minDate >= currentDate;
77
77
  dateOperationHandler[type].subtract(currentDate);
78
78
  }
79
79
  return isOut;
80
80
  };
81
- var getDisabledDates = function getDisabledDates(list, type, min, max) {
81
+ var getDisabledDates = function getDisabledDates(list, type, min, max, includeEdgeDates) {
82
82
  var disabledDate = [];
83
- if (isDisabledPreviousDate(list[0], type, min)) {
83
+ if (isDisabledPreviousDate(list[0], type, min, includeEdgeDates)) {
84
84
  disabledDate.push('previous');
85
85
  }
86
- if (isDisabledNextDate(list[list.length - 1], type, max)) {
86
+ if (isDisabledNextDate(list[list.length - 1], type, max, includeEdgeDates)) {
87
87
  disabledDate.push('next');
88
88
  }
89
89
  return disabledDate.join(',');
90
90
  };
91
- var isDisabledArrowLeft = function isDisabledArrowLeft(date, min) {
91
+ var isDisabledArrowLeft = function isDisabledArrowLeft(date, min, includeEdgeDates) {
92
92
  var currentDate = new Date(date);
93
93
  currentDate.setDate(currentDate.getDate() - 1);
94
- return min && min >= currentDate || min && min >= date;
94
+ var disableCondition = min && (includeEdgeDates ? min > currentDate : min >= currentDate);
95
+ return disableCondition;
95
96
  };
96
- var isDisabledArrowRight = function isDisabledArrowRight(date, max) {
97
+ var isDisabledArrowRight = function isDisabledArrowRight(date, max, includeEdgeDates) {
97
98
  var currentDate = new Date(date);
98
99
  currentDate.setDate(currentDate.getDate() + 1);
99
- return max && max <= currentDate || max && max <= date;
100
+ var disableCondition = max && (includeEdgeDates ? max < currentDate : max <= currentDate);
101
+ return disableCondition;
100
102
  };
101
- var isDisabledArrowUp = function isDisabledArrowUp(date, min) {
103
+ var isDisabledArrowUp = function isDisabledArrowUp(date, min, includeEdgeDates) {
102
104
  var currentDate = new Date(date);
103
105
  currentDate.setDate(date.getDate() - 7);
104
- return min && min >= currentDate;
106
+ var disableCondition = min && (includeEdgeDates ? min > currentDate : min >= currentDate);
107
+ return disableCondition;
105
108
  };
106
- var isDisabledArrowDown = function isDisabledArrowDown(date, max) {
109
+ var isDisabledArrowDown = function isDisabledArrowDown(date, max, includeEdgeDates) {
107
110
  var currentDate = new Date(date);
108
111
  currentDate.setDate(date.getDate() + 7);
109
- return max && max <= currentDate;
112
+ var disableCondition = max && (includeEdgeDates ? max < currentDate : max <= currentDate);
113
+ return disableCondition;
110
114
  };
111
- var getDisabledArrowKey = function getDisabledArrowKey(currentDate, min, max) {
115
+ var getDisabledArrowKey = function getDisabledArrowKey(currentDate, min, max, includeEdgeDates) {
112
116
  var disabledArrowKey = [];
113
- if (isDisabledArrowLeft(currentDate, min)) {
117
+ if (isDisabledArrowLeft(currentDate, min, includeEdgeDates)) {
114
118
  disabledArrowKey.push('left');
115
119
  }
116
- if (isDisabledArrowRight(currentDate, max)) {
120
+ if (isDisabledArrowRight(currentDate, max, includeEdgeDates)) {
117
121
  disabledArrowKey.push('right');
118
122
  }
119
- if (isDisabledArrowDown(currentDate, max)) {
123
+ if (isDisabledArrowDown(currentDate, max, includeEdgeDates)) {
120
124
  disabledArrowKey.push('down');
121
125
  }
122
- if (isDisabledArrowUp(currentDate, min)) {
126
+ if (isDisabledArrowUp(currentDate, min, includeEdgeDates)) {
123
127
  disabledArrowKey.push('up');
124
128
  }
125
129
  return disabledArrowKey.join(',');
@@ -148,7 +152,7 @@ export var getDatesWithModifications = function getDatesWithModifications(_ref3)
148
152
  var date = _ref5.date;
149
153
  return date;
150
154
  });
151
- var disabledDates = getDisabledDates(datesList, type, min, max);
155
+ var disabledDates = getDisabledDates(datesList, type, min, max, includeEdgeDates);
152
156
  return dates.map(function (dateItem) {
153
157
  var date = dateItem.date;
154
158
  var year = date.year,
@@ -173,7 +177,7 @@ export var getDatesWithModifications = function getDatesWithModifications(_ref3)
173
177
  dateItem.events = eventsMap.get(keyDate);
174
178
  dateItem.disabled = disabledDatesMap.has(keyDate) || isOutOfMinMaxRange;
175
179
  dateItem.isOutOfMinMaxRange = isOutOfMinMaxRange;
176
- dateItem.disabledArrowKey = getDisabledArrowKey(currentDate, min, max);
180
+ dateItem.disabledArrowKey = getDisabledArrowKey(currentDate, min, max, includeEdgeDates);
177
181
  dateItem.disabledDates = disabledDates;
178
182
  return dateItem;
179
183
  });
@@ -31,9 +31,14 @@ export declare type UseDateStructureArgs = {
31
31
  export declare type UseDaysArgs = {
32
32
  includeEdgeDates?: boolean;
33
33
  } & UseDateStructureArgs;
34
- export declare type UseMonthsArgs = UseDateStructureArgs;
35
- export declare type UseQuartersArgs = UseDateStructureArgs;
34
+ export declare type UseMonthsArgs = {
35
+ includeEdgeDates?: boolean;
36
+ } & UseDateStructureArgs;
37
+ export declare type UseQuartersArgs = {
38
+ includeEdgeDates?: boolean;
39
+ } & UseDateStructureArgs;
36
40
  export declare type UseYearsArgs = {
37
41
  startYear: number;
42
+ includeEdgeDates?: boolean;
38
43
  } & UseDateStructureArgs;
39
44
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjH,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE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AY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,oBAAoB,CAAC;AAEzB,oBAAY,aAAa,GAAG;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,oBAAoB,CAAC;AAEzB,oBAAY,eAAe,GAAG;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,oBAAoB,CAAC;AAEzB,oBAAY,YAAY,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,oBAAoB,CAAC"}
@@ -3,5 +3,5 @@ import { UseMonthsArgs } from './types';
3
3
  /**
4
4
  * Хук для получения списка месяцев.
5
5
  */
6
- export declare const useMonths: ({ date, value, eventList, disabledList, min, max, locale }: UseMonthsArgs) => readonly [DateItem[][], number[] | undefined];
6
+ export declare const useMonths: ({ date, value, eventList, disabledList, min, max, locale, includeEdgeDates, }: UseMonthsArgs) => readonly [DateItem[][], number[] | undefined];
7
7
  //# sourceMappingURL=useMonths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMonths.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useMonths.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAYlD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,SAAS,+DAAuE,aAAa,kDA6B1C,CAAC"}
1
+ {"version":3,"file":"useMonths.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useMonths.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAYlD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,SAAS,kFASnB,aAAa,kDA8BgD,CAAC"}
@@ -3,5 +3,5 @@ import type { UseQuartersArgs } from './types';
3
3
  /**
4
4
  * Хук для получения списка месяцев.
5
5
  */
6
- export declare const useQuarters: ({ date, value, eventList, disabledList, min, max }: UseQuartersArgs) => readonly [DateItem[][], number[] | undefined];
6
+ export declare const useQuarters: ({ date, value, eventList, disabledList, min, max, includeEdgeDates }: UseQuartersArgs) => readonly [DateItem[][], number[] | undefined];
7
7
  //# sourceMappingURL=useQuarters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useQuarters.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useQuarters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAYlD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,WAAW,uDAAwD,eAAe,kDA8BvC,CAAC"}
1
+ {"version":3,"file":"useQuarters.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useQuarters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAYlD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,WAAW,yEAA0E,eAAe,kDA+BzD,CAAC"}
@@ -3,5 +3,5 @@ import type { UseYearsArgs } from './types';
3
3
  /**
4
4
  * Хук для получения списка годов.
5
5
  */
6
- export declare const useYears: ({ date, value, startYear, eventList, disabledList, min, max }: UseYearsArgs) => readonly [DateItem[][], number[] | undefined];
6
+ export declare const useYears: ({ date, value, startYear, eventList, disabledList, min, max, includeEdgeDates, }: UseYearsArgs) => readonly [DateItem[][], number[] | undefined];
7
7
  //# sourceMappingURL=useYears.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useYears.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useYears.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,QAAQ,kEAAmE,YAAY,kDA8BjC,CAAC"}
1
+ {"version":3,"file":"useYears.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useYears.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,QAAQ,qFASlB,YAAY,kDA+BoD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getDateWithModification.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/utils/getDateWithModification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAc,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAiB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIlE,aAAK,6BAA6B,GAAG;IACjC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,IAAI,CAAC;CACd,CAAC;AAuJF;;GAEG;AACH,eAAO,MAAM,yBAAyB,0EAQnC,6BAA6B,eA6C/B,CAAC"}
1
+ {"version":3,"file":"getDateWithModification.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/utils/getDateWithModification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAc,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAiB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIlE,aAAK,6BAA6B,GAAG;IACjC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,IAAI,CAAC;CACd,CAAC;AA+KF;;GAEG;AACH,eAAO,MAAM,yBAAyB,0EAQnC,6BAA6B,eA6C/B,CAAC"}