@websy/websy-designs 1.2.9 → 1.2.10
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.
|
@@ -723,12 +723,12 @@ class WebsyDatePicker {
|
|
|
723
723
|
console.log('diff', diff)
|
|
724
724
|
}
|
|
725
725
|
else if (this.options.mode === 'hour') {
|
|
726
|
-
this.options.hours.forEach(h => {
|
|
726
|
+
this.options.hours.forEach((h, i) => {
|
|
727
727
|
if (h.text === this.selectedRangeDates[0]) {
|
|
728
|
-
diffStart =
|
|
728
|
+
diffStart = i
|
|
729
729
|
}
|
|
730
730
|
if (h.text === this.selectedRangeDates[this.selectedRangeDates.length - 1]) {
|
|
731
|
-
diffEnd =
|
|
731
|
+
diffEnd = i
|
|
732
732
|
}
|
|
733
733
|
})
|
|
734
734
|
diff = diffEnd - diffStart
|
package/dist/websy-designs.js
CHANGED
|
@@ -809,13 +809,13 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
809
809
|
console.log('year diff', yearDiff);
|
|
810
810
|
console.log('diff', diff);
|
|
811
811
|
} else if (this.options.mode === 'hour') {
|
|
812
|
-
this.options.hours.forEach(function (h) {
|
|
812
|
+
this.options.hours.forEach(function (h, i) {
|
|
813
813
|
if (h.text === _this5.selectedRangeDates[0]) {
|
|
814
|
-
diffStart =
|
|
814
|
+
diffStart = i;
|
|
815
815
|
}
|
|
816
816
|
|
|
817
817
|
if (h.text === _this5.selectedRangeDates[_this5.selectedRangeDates.length - 1]) {
|
|
818
|
-
diffEnd =
|
|
818
|
+
diffEnd = i;
|
|
819
819
|
}
|
|
820
820
|
});
|
|
821
821
|
diff = diffEnd - diffStart;
|