@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.
|
@@ -591,6 +591,10 @@ class WebsyDatePicker {
|
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
+
this.priorSelectedDates = [...this.selectedRangeDates]
|
|
595
|
+
this.priorSelectedRange = this.selectedRange
|
|
596
|
+
this.priorselection = [...this.currentselection]
|
|
597
|
+
this.priorCustomRangeSelected = this.customRangeSelected
|
|
594
598
|
this.updateRange()
|
|
595
599
|
}
|
|
596
600
|
else {
|
|
@@ -1187,7 +1191,7 @@ class WebsyDatePicker {
|
|
|
1187
1191
|
let a = this.options.ranges[this.options.mode][i].range[0]
|
|
1188
1192
|
let b = rangeInput[0]
|
|
1189
1193
|
let c = this.options.ranges[this.options.mode][i].range[1]
|
|
1190
|
-
let d = rangeInput[1]
|
|
1194
|
+
let d = rangeInput[rangeInput.length - 1]
|
|
1191
1195
|
if (this.options.mode === 'date') {
|
|
1192
1196
|
a = a.getTime()
|
|
1193
1197
|
b = b.getTime()
|
package/dist/websy-designs.js
CHANGED
|
@@ -663,6 +663,10 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
|
|
666
|
+
this.priorSelectedDates = _toConsumableArray(this.selectedRangeDates);
|
|
667
|
+
this.priorSelectedRange = this.selectedRange;
|
|
668
|
+
this.priorselection = _toConsumableArray(this.currentselection);
|
|
669
|
+
this.priorCustomRangeSelected = this.customRangeSelected;
|
|
666
670
|
this.updateRange();
|
|
667
671
|
} else {
|
|
668
672
|
this.selectedRangeDates = _toConsumableArray(this.priorSelectedDates || []);
|
|
@@ -1326,7 +1330,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
1326
1330
|
var _a = this.options.ranges[this.options.mode][i].range[0];
|
|
1327
1331
|
var _b = rangeInput[0];
|
|
1328
1332
|
var c = this.options.ranges[this.options.mode][i].range[1];
|
|
1329
|
-
var d = rangeInput[1];
|
|
1333
|
+
var d = rangeInput[rangeInput.length - 1];
|
|
1330
1334
|
|
|
1331
1335
|
if (this.options.mode === 'date') {
|
|
1332
1336
|
_a = _a.getTime();
|