barsa-calendar 2.3.103 → 2.3.104
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.
|
@@ -1421,7 +1421,6 @@ class CalendarSelectionDaysComponent extends BaseComponent {
|
|
|
1421
1421
|
const { endDay, startDay } = this.getStartAndEndDay(monthInfo, day);
|
|
1422
1422
|
this.startSelectedDayIndex = startDay?.index;
|
|
1423
1423
|
this.endSelectedDayIndex = endDay?.index;
|
|
1424
|
-
// console.log('-move-', this.startSelectedDay?.index, this.endSelectedDay?.index);
|
|
1425
1424
|
}
|
|
1426
1425
|
}
|
|
1427
1426
|
onDayMouseDown(day) {
|
|
@@ -1472,7 +1471,6 @@ class CalendarSelectionDaysComponent extends BaseComponent {
|
|
|
1472
1471
|
endDay = this.endSelectedDay;
|
|
1473
1472
|
}
|
|
1474
1473
|
}
|
|
1475
|
-
// console.log('-2-', startDay, endDay);
|
|
1476
1474
|
if (startDay && endDay) {
|
|
1477
1475
|
const diff = Math.abs(startDay.momentOfDate.diff(endDay.momentOfDate, 'day'));
|
|
1478
1476
|
if (diff > 6) {
|
|
@@ -1483,13 +1481,11 @@ class CalendarSelectionDaysComponent extends BaseComponent {
|
|
|
1483
1481
|
// indexEnd++;
|
|
1484
1482
|
// }
|
|
1485
1483
|
endDay = monthInfo.days[indexEnd * 7 - 1];
|
|
1486
|
-
// console.log('-3-', startDay, endDay);
|
|
1487
1484
|
}
|
|
1488
1485
|
}
|
|
1489
1486
|
return { endDay, startDay };
|
|
1490
1487
|
}
|
|
1491
1488
|
_setFirstAndEndDay(monthInfo, popover) {
|
|
1492
|
-
// console.log('-finish-', this.startSelectedDay, this.endSelectedDay);
|
|
1493
1489
|
if (this.startSelectedDay && this.endSelectedDay) {
|
|
1494
1490
|
if (popover) {
|
|
1495
1491
|
popover.close();
|