willba-component-library 0.2.37 → 0.2.39
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/lib/index.esm.js +3 -7
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +3 -7
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +3 -7
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterCalendar/FilterCalendar.tsx +2 -2
- package/src/core/components/calendar/Calendar.tsx +1 -5
package/lib/index.esm.js
CHANGED
|
@@ -10884,7 +10884,6 @@ var Calendar = forwardRef(function (_a, ref) {
|
|
|
10884
10884
|
var calendarOverlappingDate = document.querySelectorAll('.will-filter-bar-calendar .rdp-cell:has(.overlapping-date)');
|
|
10885
10885
|
var tooltipClonesCheckIn = [];
|
|
10886
10886
|
var tooltipClonesCheckOut = [];
|
|
10887
|
-
var tooltipClonesSpinner = [];
|
|
10888
10887
|
var tooltipClonesOverlappingDates = [];
|
|
10889
10888
|
if (calendarTooltip && calendarButtons.length > 0) {
|
|
10890
10889
|
calendarButtons.forEach(function (element) {
|
|
@@ -10901,9 +10900,7 @@ var Calendar = forwardRef(function (_a, ref) {
|
|
|
10901
10900
|
});
|
|
10902
10901
|
}
|
|
10903
10902
|
if (loadingSpinner && calendarMonthContainer) {
|
|
10904
|
-
|
|
10905
|
-
calendarMonthContainer.appendChild(tooltipClone);
|
|
10906
|
-
tooltipClonesSpinner.push(tooltipClone);
|
|
10903
|
+
calendarMonthContainer.appendChild(loadingSpinner);
|
|
10907
10904
|
}
|
|
10908
10905
|
if (calendarTooltipOverlappingDate &&
|
|
10909
10906
|
calendarOverlappingDate.length > 0) {
|
|
@@ -10916,7 +10913,6 @@ var Calendar = forwardRef(function (_a, ref) {
|
|
|
10916
10913
|
return function () {
|
|
10917
10914
|
tooltipClonesCheckIn.forEach(function (clone) { return clone.remove(); });
|
|
10918
10915
|
tooltipClonesCheckOut.forEach(function (clone) { return clone.remove(); });
|
|
10919
|
-
tooltipClonesSpinner.forEach(function (clone) { return clone.remove(); });
|
|
10920
10916
|
tooltipClonesOverlappingDates.forEach(function (clone) { return clone.remove(); });
|
|
10921
10917
|
};
|
|
10922
10918
|
}, [
|
|
@@ -11536,13 +11532,13 @@ function FilterCalendar(_a) {
|
|
|
11536
11532
|
React__default__default.createElement("div", { className: "will-calendar-footer-dates" },
|
|
11537
11533
|
React__default__default.createElement("div", null,
|
|
11538
11534
|
React__default__default.createElement("span", null, parseDate({
|
|
11539
|
-
date: calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from,
|
|
11535
|
+
date: (initialCalendarRange === null || initialCalendarRange === void 0 ? void 0 : initialCalendarRange.from) || (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from),
|
|
11540
11536
|
dateFormat: 'EEEEEE d.M.yyyy',
|
|
11541
11537
|
language: language,
|
|
11542
11538
|
}) || t('common:checkIn')),
|
|
11543
11539
|
React__default__default.createElement("span", { className: "will-calendar-footer-dates-separator" }, "-"),
|
|
11544
11540
|
React__default__default.createElement("span", null, parseDate({
|
|
11545
|
-
date: calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to,
|
|
11541
|
+
date: (initialCalendarRange === null || initialCalendarRange === void 0 ? void 0 : initialCalendarRange.to) || (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to),
|
|
11546
11542
|
dateFormat: 'EEEEEE d.M.yyyy',
|
|
11547
11543
|
language: language,
|
|
11548
11544
|
}) || t('common:checkOut'))),
|