@websy/websy-designs 1.2.29 → 1.2.31
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.
|
@@ -405,6 +405,10 @@ class WebsyDatePicker {
|
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
+
this.priorSelectedDates = [...this.selectedRangeDates]
|
|
409
|
+
this.priorSelectedRange = this.selectedRange
|
|
410
|
+
this.priorselection = [...this.currentselection]
|
|
411
|
+
this.priorCustomRangeSelected = this.customRangeSelected
|
|
408
412
|
this.updateRange()
|
|
409
413
|
}
|
|
410
414
|
else {
|
|
@@ -1001,7 +1005,7 @@ class WebsyDatePicker {
|
|
|
1001
1005
|
let a = this.options.ranges[this.options.mode][i].range[0]
|
|
1002
1006
|
let b = rangeInput[0]
|
|
1003
1007
|
let c = this.options.ranges[this.options.mode][i].range[1]
|
|
1004
|
-
let d = rangeInput[1]
|
|
1008
|
+
let d = rangeInput[rangeInput.length - 1]
|
|
1005
1009
|
if (this.options.mode === 'date') {
|
|
1006
1010
|
a = a.getTime()
|
|
1007
1011
|
b = b.getTime()
|
|
@@ -451,6 +451,10 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
|
|
454
|
+
this.priorSelectedDates = _toConsumableArray(this.selectedRangeDates);
|
|
455
|
+
this.priorSelectedRange = this.selectedRange;
|
|
456
|
+
this.priorselection = _toConsumableArray(this.currentselection);
|
|
457
|
+
this.priorCustomRangeSelected = this.customRangeSelected;
|
|
454
458
|
this.updateRange();
|
|
455
459
|
} else {
|
|
456
460
|
this.selectedRangeDates = _toConsumableArray(this.priorSelectedDates || []);
|
|
@@ -1114,7 +1118,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
1114
1118
|
var _a = this.options.ranges[this.options.mode][i].range[0];
|
|
1115
1119
|
var _b = rangeInput[0];
|
|
1116
1120
|
var c = this.options.ranges[this.options.mode][i].range[1];
|
|
1117
|
-
var d = rangeInput[1];
|
|
1121
|
+
var d = rangeInput[rangeInput.length - 1];
|
|
1118
1122
|
|
|
1119
1123
|
if (this.options.mode === 'date') {
|
|
1120
1124
|
_a = _a.getTime();
|