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.join("-"))) ||
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;AAmDD,sEAQC;AAjLM,yDAAmE;AAEnE,+EAcN;AAEM,wEAON;AAEM,kDAON;AAEM,8CAON;AAEM,2CAKN;AAEM,iEAaN;AAEM,+DAmBN;AAEM,2CAMN;AAEM,uDAON;AAEM,sDAON;AAQM,qEAQN;AAEM,gDAQN;AAEM,yEAaN;AAEM;;;EAKN;AAEM;;;EAKN"}
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 = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.39.36",
3
+ "version": "1.39.37",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.10.8",
6
6
  "leaflet": "^1.9.1",