@websy/websy-designs 1.4.11 → 1.4.12
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/dist/websy-designs-es6.debug.js +16 -11
- package/dist/websy-designs-es6.js +247 -243
- package/dist/websy-designs-es6.min.js +1 -1
- package/dist/websy-designs.debug.js +16 -11
- package/dist/websy-designs.js +250 -246
- package/dist/websy-designs.min.js +1 -1
- package/package.json +1 -1
|
@@ -494,11 +494,13 @@ class WebsyDatePicker {
|
|
|
494
494
|
this.close()
|
|
495
495
|
}
|
|
496
496
|
else if (event.target.classList.contains('clear-selection')) {
|
|
497
|
+
this.currentselection = []
|
|
498
|
+
this.selectedRangeDates = []
|
|
497
499
|
this.selectRange(0, false)
|
|
498
500
|
if (this.options.onClear) {
|
|
499
501
|
this.options.onClear()
|
|
500
502
|
}
|
|
501
|
-
this.updateRange(0)
|
|
503
|
+
// this.updateRange(0)
|
|
502
504
|
}
|
|
503
505
|
}
|
|
504
506
|
handleKeyDown (event) {
|
|
@@ -1017,18 +1019,21 @@ class WebsyDatePicker {
|
|
|
1017
1019
|
selectRange (index, confirm = true) {
|
|
1018
1020
|
if (this.options.ranges[this.options.mode][index]) {
|
|
1019
1021
|
this.selectedRangeDates = [...this.options.ranges[this.options.mode][index].range]
|
|
1020
|
-
this.currentselection =
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}
|
|
1022
|
+
this.currentselection = []
|
|
1023
|
+
// this.currentselection = this.options.ranges[this.options.mode][index].range.map(d => {
|
|
1024
|
+
// if (this.options.mode === 'date' || this.options.mode === 'monthyear') {
|
|
1025
|
+
// return d.getTime()
|
|
1026
|
+
// }
|
|
1027
|
+
// else {
|
|
1028
|
+
// return d
|
|
1029
|
+
// }
|
|
1030
|
+
// })
|
|
1028
1031
|
this.selectedRange = +index
|
|
1029
1032
|
this.highlightRange()
|
|
1030
|
-
this.updateRange()
|
|
1031
|
-
|
|
1033
|
+
this.updateRange()
|
|
1034
|
+
if (confirm === true) {
|
|
1035
|
+
this.close(confirm, true)
|
|
1036
|
+
}
|
|
1032
1037
|
}
|
|
1033
1038
|
}
|
|
1034
1039
|
selectCustomRange (rangeInput) {
|