ublo-lib 1.39.36 → 1.39.37
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.
|
@@ -46,7 +46,7 @@ export default function DateItem({ date, index, month, year, min, max, selectedD
|
|
|
46
46
|
const isDisabled = (enableAvailability &&
|
|
47
47
|
selecting &&
|
|
48
48
|
allMatchingStaysEnd?.length &&
|
|
49
|
-
!allMatchingStaysEnd.includes(date
|
|
49
|
+
!allMatchingStaysEnd.includes(date)) ||
|
|
50
50
|
(enableAvailability && !isAvailable) ||
|
|
51
51
|
isPastDate ||
|
|
52
52
|
!isInMonth ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/components/date-picker/utils.js"],"names":[],"mappings":"AAoHA,qDAIC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/components/date-picker/utils.js"],"names":[],"mappings":"AAoHA,qDAIC;AAkDD,sEAQC;AAhLM,yDAAmE;AAEnE,+EAcN;AAEM,wEAON;AAEM,kDAON;AAEM,8CAON;AAEM,2CAKN;AAEM,iEAaN;AAEM,+DAmBN;AAEM,2CAMN;AAEM,uDAON;AAEM,sDAON;AAQM,qEAQN;AAEM,gDAON;AAEM,yEAaN;AAEM;;;EAKN;AAEM;;;EAKN"}
|
|
@@ -105,11 +105,7 @@ export const getDateInterval = (startDate, endDate) => {
|
|
|
105
105
|
export const getDateISO = (date = new Date()) => {
|
|
106
106
|
if (!isDate(date))
|
|
107
107
|
return null;
|
|
108
|
-
return
|
|
109
|
-
date.getFullYear(),
|
|
110
|
-
zeroPad(+date.getMonth() + 1, 2),
|
|
111
|
-
zeroPad(+date.getDate(), 2),
|
|
112
|
-
].join("-");
|
|
108
|
+
return `${date.getFullYear()}-${zeroPad(date.getMonth() + 1, 2)}-${zeroPad(date.getDate(), 2)}`;
|
|
113
109
|
};
|
|
114
110
|
export const getQueryDateInterval = (firstDate, nights) => {
|
|
115
111
|
const splittedDate = [
|