@websy/websy-designs 1.2.31 → 1.2.32
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.
|
@@ -372,7 +372,7 @@ class WebsyDatePicker {
|
|
|
372
372
|
console.log('No element found with Id', elementId)
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
close (confirm) {
|
|
375
|
+
close (confirm, isRange = false) {
|
|
376
376
|
const maskEl = document.getElementById(`${this.elementId}_mask`)
|
|
377
377
|
const contentEl = document.getElementById(`${this.elementId}_content`)
|
|
378
378
|
const el = document.getElementById(this.elementId)
|
|
@@ -401,7 +401,7 @@ class WebsyDatePicker {
|
|
|
401
401
|
this.options.onChange(hoursOut, true)
|
|
402
402
|
}
|
|
403
403
|
else {
|
|
404
|
-
this.options.onChange(this.currentselection,
|
|
404
|
+
this.options.onChange(this.currentselection, isRange)
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
}
|
|
@@ -951,7 +951,7 @@ class WebsyDatePicker {
|
|
|
951
951
|
}
|
|
952
952
|
this.highlightRange()
|
|
953
953
|
this.updateRange()
|
|
954
|
-
this.close(confirm)
|
|
954
|
+
this.close(confirm, true)
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
957
|
selectCustomRange (rangeInput) {
|
|
@@ -413,6 +413,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
413
413
|
value: function close(confirm) {
|
|
414
414
|
var _this2 = this;
|
|
415
415
|
|
|
416
|
+
var isRange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
416
417
|
var maskEl = document.getElementById("".concat(this.elementId, "_mask"));
|
|
417
418
|
var contentEl = document.getElementById("".concat(this.elementId, "_content"));
|
|
418
419
|
var el = document.getElementById(this.elementId);
|
|
@@ -446,7 +447,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
446
447
|
|
|
447
448
|
this.options.onChange(_hoursOut, true);
|
|
448
449
|
} else {
|
|
449
|
-
this.options.onChange(this.currentselection,
|
|
450
|
+
this.options.onChange(this.currentselection, isRange);
|
|
450
451
|
}
|
|
451
452
|
}
|
|
452
453
|
}
|
|
@@ -1056,7 +1057,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
1056
1057
|
|
|
1057
1058
|
this.highlightRange();
|
|
1058
1059
|
this.updateRange();
|
|
1059
|
-
this.close(confirm);
|
|
1060
|
+
this.close(confirm, true);
|
|
1060
1061
|
}
|
|
1061
1062
|
}
|
|
1062
1063
|
}, {
|