vueless 0.0.501 → 0.0.502
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.
package/package.json
CHANGED
|
@@ -411,15 +411,15 @@ function shiftRangeNext(to: Date, from: Date, daysDifference: number) {
|
|
|
411
411
|
if (isPeriod.value.ownRange) {
|
|
412
412
|
const nextDate = {
|
|
413
413
|
title: "",
|
|
414
|
-
startRange: addDays(
|
|
415
|
-
endRange: addDays(
|
|
414
|
+
startRange: addDays(from, daysDifference),
|
|
415
|
+
endRange: addDays(to, daysDifference),
|
|
416
416
|
};
|
|
417
417
|
|
|
418
418
|
if (isDatePeriodOutOfRange(nextDate)) return;
|
|
419
419
|
|
|
420
420
|
localValue.value = {
|
|
421
421
|
from: nextDate.startRange,
|
|
422
|
-
to: nextDate.
|
|
422
|
+
to: nextDate.endRange,
|
|
423
423
|
};
|
|
424
424
|
|
|
425
425
|
return;
|
|
@@ -451,8 +451,8 @@ function shiftRangePrev(to: Date, from: Date, daysDifference: number) {
|
|
|
451
451
|
if (isPeriod.value.ownRange) {
|
|
452
452
|
const previousDate = {
|
|
453
453
|
title: "",
|
|
454
|
-
startRange: addDays(
|
|
455
|
-
endRange: addDays(
|
|
454
|
+
startRange: addDays(from, daysDifference * -1),
|
|
455
|
+
endRange: addDays(to, daysDifference * -1),
|
|
456
456
|
};
|
|
457
457
|
|
|
458
458
|
if (isDatePeriodOutOfRange(previousDate)) return;
|