mozrest-sdk-react-dev 0.2.75 → 0.2.77

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/mozrest-sdk.es.js CHANGED
@@ -102516,34 +102516,34 @@ const ReservationsAnalytics = ({ userEmail, userFullName }) => {
102516
102516
  totalDays
102517
102517
  }));
102518
102518
  };
102519
- const mainConatiner$1 = "_mainConatiner_ek91m_48";
102520
- const mainTableContainer = "_mainTableContainer_ek91m_58";
102521
- const mainSidebarContainer = "_mainSidebarContainer_ek91m_65";
102522
- const headerContainer = "_headerContainer_ek91m_74";
102523
- const buttonList = "_buttonList_ek91m_79";
102524
- const tableTopHeader = "_tableTopHeader_ek91m_85";
102525
- const tableTopHeaderContent = "_tableTopHeaderContent_ek91m_93";
102526
- const tableRowContainer = "_tableRowContainer_ek91m_101";
102527
- const tableRowCard = "_tableRowCard_ek91m_107";
102528
- const noData = "_noData_ek91m_112";
102529
- const tableRowHour = "_tableRowHour_ek91m_119";
102530
- const hours = "_hours_ek91m_130";
102531
- const tableRowContent = "_tableRowContent_ek91m_136";
102532
- const rowImage = "_rowImage_ek91m_145";
102533
- const rowContactContainer = "_rowContactContainer_ek91m_151";
102534
- const rowContactText = "_rowContactText_ek91m_157";
102535
- const rowContactPhone = "_rowContactPhone_ek91m_163";
102536
- const rowSectionContainer = "_rowSectionContainer_ek91m_170";
102537
- const rowSectionText = "_rowSectionText_ek91m_176";
102538
- const rowSectionSecText = "_rowSectionSecText_ek91m_182";
102539
- const rowActionButton = "_rowActionButton_ek91m_189";
102540
- const bookingInfoContainer = "_bookingInfoContainer_ek91m_195";
102541
- const bookingInfoCardRow = "_bookingInfoCardRow_ek91m_199";
102542
- const bookingInfoCardContainer = "_bookingInfoCardContainer_ek91m_207";
102543
- const bookingInfoCard = "_bookingInfoCard_ek91m_199";
102544
- const bookingInfoCardContent = "_bookingInfoCardContent_ek91m_219";
102545
- const bookingInfoCardTitle = "_bookingInfoCardTitle_ek91m_225";
102546
- const bookingInfoCardText = "_bookingInfoCardText_ek91m_228";
102519
+ const mainConatiner$1 = "_mainConatiner_lnm3d_48";
102520
+ const mainTableContainer = "_mainTableContainer_lnm3d_58";
102521
+ const mainSidebarContainer = "_mainSidebarContainer_lnm3d_65";
102522
+ const headerContainer = "_headerContainer_lnm3d_74";
102523
+ const buttonList = "_buttonList_lnm3d_79";
102524
+ const tableTopHeader = "_tableTopHeader_lnm3d_85";
102525
+ const tableTopHeaderContent = "_tableTopHeaderContent_lnm3d_93";
102526
+ const tableRowContainer = "_tableRowContainer_lnm3d_101";
102527
+ const tableRowCard = "_tableRowCard_lnm3d_107";
102528
+ const noData = "_noData_lnm3d_112";
102529
+ const tableRowHour = "_tableRowHour_lnm3d_119";
102530
+ const hours = "_hours_lnm3d_130";
102531
+ const tableRowContent = "_tableRowContent_lnm3d_136";
102532
+ const rowImage = "_rowImage_lnm3d_145";
102533
+ const rowContactContainer = "_rowContactContainer_lnm3d_151";
102534
+ const rowContactText = "_rowContactText_lnm3d_158";
102535
+ const rowContactPhone = "_rowContactPhone_lnm3d_164";
102536
+ const rowSectionContainer = "_rowSectionContainer_lnm3d_171";
102537
+ const rowSectionText = "_rowSectionText_lnm3d_177";
102538
+ const rowSectionSecText = "_rowSectionSecText_lnm3d_183";
102539
+ const rowActionButton = "_rowActionButton_lnm3d_190";
102540
+ const bookingInfoContainer = "_bookingInfoContainer_lnm3d_196";
102541
+ const bookingInfoCardRow = "_bookingInfoCardRow_lnm3d_200";
102542
+ const bookingInfoCardContainer = "_bookingInfoCardContainer_lnm3d_208";
102543
+ const bookingInfoCard = "_bookingInfoCard_lnm3d_200";
102544
+ const bookingInfoCardContent = "_bookingInfoCardContent_lnm3d_220";
102545
+ const bookingInfoCardTitle = "_bookingInfoCardTitle_lnm3d_226";
102546
+ const bookingInfoCardText = "_bookingInfoCardText_lnm3d_229";
102547
102547
  var styles$f = {
102548
102548
  mainConatiner: mainConatiner$1,
102549
102549
  mainTableContainer,
@@ -106448,7 +106448,7 @@ const TableTopHeader = ({ date: date4, total }) => {
106448
106448
  const { t: t2 } = useTranslation();
106449
106449
  return /* @__PURE__ */ React__default.createElement("div", {
106450
106450
  className: styles$f.tableTopHeader
106451
- }, /* @__PURE__ */ React__default.createElement("h1", null, date4), /* @__PURE__ */ React__default.createElement("h1", null, total, " ", t2("RESERVATIONS")));
106451
+ }, /* @__PURE__ */ React__default.createElement("h1", null, hooks(date4).format("DD.MM.YYYY")), /* @__PURE__ */ React__default.createElement("h1", null, total, " ", t2("RESERVATIONS")));
106452
106452
  };
106453
106453
  const TimeFormat = ({ dateTime, currentTimeZone }) => {
106454
106454
  const formattedTime = new Date(dateTime).toLocaleTimeString([], {
@@ -106591,20 +106591,22 @@ const TableBody = ({ data: data2, filtersData, venueId }) => {
106591
106591
  if (data2 && filtersData) {
106592
106592
  const groupedByHour = _23.groupBy(data2, (item2) => {
106593
106593
  const formattedTime = new Date(item2.date).toLocaleTimeString([], {
106594
- ...(filtersData == null ? void 0 : filtersData.timeZone) ? {
106595
- timeZone: filtersData == null ? void 0 : filtersData.timeZone
106596
- } : {},
106594
+ ...(filtersData == null ? void 0 : filtersData.timeZone) ? { timeZone: filtersData == null ? void 0 : filtersData.timeZone } : {},
106597
106595
  hour: "2-digit",
106598
106596
  minute: void 0,
106599
106597
  hour12: false
106600
106598
  });
106601
106599
  return `${formattedTime}:00`;
106602
106600
  });
106603
- const sortedGroupedByHour = _23(groupedByHour).toPairs().orderBy(
106601
+ const sortedGroupedByHour = _23(groupedByHour).toPairs().map(([hour2, reservations]) => [
106602
+ hour2,
106603
+ _23.orderBy(reservations, (r2) => new Date(r2.date), ["desc"])
106604
+ ]).orderBy(
106604
106605
  ([hour2]) => parseInt(hour2.split(":")[0], 10),
106605
106606
  ["asc"]
106606
106607
  ).fromPairs().value();
106607
106608
  setFormattedData(sortedGroupedByHour);
106609
+ console.log(sortedGroupedByHour, "sortedGroupedByHour");
106608
106610
  }
106609
106611
  }, [data2, filtersData]);
106610
106612
  return /* @__PURE__ */ React__default.createElement("div", null, _23.isEmpty(formattedData) ? /* @__PURE__ */ React__default.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.2.75",
3
+ "version": "0.2.77",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": ["mozrest"],
6
6
  "author": {