@recras/online-booking-js 2.0.4 → 2.0.6
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/README.md +1 -1
- package/changelog.md +6 -0
- package/dist/onlinebooking.js +7 -4
- package/dist/onlinebooking.min.js +1 -1
- package/package.json +1 -1
- package/src/booking.js +5 -3
- package/src/contactForm.js +1 -1
- package/error_messages.patch +0 -2409
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[](https://travis-ci.org/Recras/online-booking-js)
|
|
2
2
|
|
|
3
3
|
# Recras JS Integration Library
|
|
4
|
-
Version: 2.0.
|
|
4
|
+
Version: 2.0.6
|
|
5
5
|
|
|
6
6
|
JS library for easy online booking, contact form, and voucher integration
|
|
7
7
|
|
package/changelog.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.6 (2023-02-27)
|
|
4
|
+
* Fetch available dates until the end of the month, to prevent half filled months in calendar
|
|
5
|
+
|
|
6
|
+
## 2.0.5 (2023-01-30)
|
|
7
|
+
* Contact form time field only allowed time in 5-minute intervals, but browser time pickers don't show this in their UI. Removed this limitation.
|
|
8
|
+
|
|
3
9
|
## 2.0.4 (2022-10-07)
|
|
4
10
|
* Contact form/Voucher sales no longer shows error messages inline, but after the form
|
|
5
11
|
|
package/dist/onlinebooking.js
CHANGED
|
@@ -50,7 +50,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
50
50
|
|
|
51
51
|
/*******************************
|
|
52
52
|
* Recras integration library *
|
|
53
|
-
* v 2.0.
|
|
53
|
+
* v 2.0.6 *
|
|
54
54
|
*******************************/
|
|
55
55
|
var RecrasBooking = /*#__PURE__*/function () {
|
|
56
56
|
function RecrasBooking() {
|
|
@@ -1466,7 +1466,9 @@ var RecrasBooking = /*#__PURE__*/function () {
|
|
|
1466
1466
|
|
|
1467
1467
|
var newEndDate = RecrasDateHelper.clone(lastAvailableDay);
|
|
1468
1468
|
newEndDate.setFullYear(lastMonthYear.year);
|
|
1469
|
-
newEndDate.setMonth(lastMonthYear.month +
|
|
1469
|
+
newEndDate.setMonth(lastMonthYear.month + 3);
|
|
1470
|
+
newEndDate.setDate(0); // Set to 0th day of the month = last day of previous month
|
|
1471
|
+
|
|
1470
1472
|
this.getAvailableDays(packageId, lastAvailableDay, newEndDate);
|
|
1471
1473
|
}
|
|
1472
1474
|
}, {
|
|
@@ -1858,7 +1860,8 @@ var RecrasBooking = /*#__PURE__*/function () {
|
|
|
1858
1860
|
thisClass.loadingIndicatorShow(thisClass.findElement('label[for="recras-onlinebooking-date"]'));
|
|
1859
1861
|
var startDate = new Date();
|
|
1860
1862
|
var endDate = new Date();
|
|
1861
|
-
endDate.setMonth(endDate.getMonth() +
|
|
1863
|
+
endDate.setMonth(endDate.getMonth() + 4);
|
|
1864
|
+
endDate.setDate(0); // Set to 0th day of the month = last day of previous month
|
|
1862
1865
|
|
|
1863
1866
|
if (!thisClass.prefilledDate) {
|
|
1864
1867
|
thisClass.getAvailableDaysInPeriod(thisClass.selectedPackage.id, startDate, endDate);
|
|
@@ -2426,7 +2429,7 @@ var RecrasContactForm = /*#__PURE__*/function () {
|
|
|
2426
2429
|
|
|
2427
2430
|
case 'boeking.starttijd':
|
|
2428
2431
|
placeholder = this.languageHelper.translate('TIME_FORMAT');
|
|
2429
|
-
return label + "<input type=\"time\" ".concat(fixedAttributes, " placeholder=\"").concat(placeholder, "\" pattern=\"").concat(timePattern, "\"
|
|
2432
|
+
return label + "<input type=\"time\" ".concat(fixedAttributes, " placeholder=\"").concat(placeholder, "\" pattern=\"").concat(timePattern, "\">");
|
|
2430
2433
|
|
|
2431
2434
|
case 'boeking.arrangement':
|
|
2432
2435
|
var preFilledPackage = this.options.getPackageId();
|