willba-component-library 0.2.61 → 0.2.62
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 +10 -7
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +10 -7
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +10 -7
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/core/components/calendar/Calendar.tsx +1 -1
- package/src/core/components/calendar/utils/calendarSelectionRules.tsx +2 -1
- package/src/core/components/calendar/utils/checkForContinuousSelection.tsx +11 -8
package/lib/index.esm.js
CHANGED
|
@@ -11071,7 +11071,8 @@ var calendarSelectionRules = function (_a) {
|
|
|
11071
11071
|
rangeContext &&
|
|
11072
11072
|
rangeTo &&
|
|
11073
11073
|
(checkOutRange === null || checkOutRange === void 0 ? void 0 : checkOutRange.lastCheckOut) &&
|
|
11074
|
-
isAfter(rangeTo, endOfDay(checkOutRange.lastCheckOut))
|
|
11074
|
+
isAfter(rangeTo, endOfDay(checkOutRange.lastCheckOut)) &&
|
|
11075
|
+
isAfter(rangeTo, endOfDay(rangeContext.to))) {
|
|
11075
11076
|
setCalendarHasError && setCalendarHasError(true);
|
|
11076
11077
|
return setCalendarRange(undefined);
|
|
11077
11078
|
}
|
|
@@ -11307,12 +11308,14 @@ var checkForContinuousSelection = function (_a) {
|
|
|
11307
11308
|
? isAfter(endOfDay(calendarRangeTo), endOfDay(rangeContextFrom)) ||
|
|
11308
11309
|
isEqual(endOfDay(calendarRangeTo), endOfDay(rangeContextFrom))
|
|
11309
11310
|
: null;
|
|
11310
|
-
|
|
11311
|
-
|
|
11312
|
-
|
|
11313
|
-
|
|
11314
|
-
|
|
11315
|
-
|
|
11311
|
+
useEffect(function () {
|
|
11312
|
+
if ((rangeContext &&
|
|
11313
|
+
calendarRangeFrom &&
|
|
11314
|
+
!startIsEqualOrBeforeRangeContextEnd) ||
|
|
11315
|
+
(rangeContext && calendarRangeTo && !endIsEqualOrAfterRangeContextStart)) {
|
|
11316
|
+
setCalendarHasError && !calendarHasError && setCalendarHasError(true);
|
|
11317
|
+
}
|
|
11318
|
+
});
|
|
11316
11319
|
};
|
|
11317
11320
|
|
|
11318
11321
|
var useCalendarTooltips = function (_a) {
|