ublo-lib 1.21.27 → 1.21.28

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.
@@ -1 +1 @@
1
- {"version":3,"file":"pois.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/pois.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,KAAK,EAAO,QAAQ,EAAQ,MAAM,SAAS,CAAC;AA4DnD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CACxB,CAAC;AAUF,QAAA,MAAM,IAAI,8EA+PR,CAAC;AAIH,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"pois.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/pois.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,KAAK,EAAO,QAAQ,EAAQ,MAAM,SAAS,CAAC;AA4DnD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CACxB,CAAC;AAUF,QAAA,MAAM,IAAI,8EAkQR,CAAC;AAIH,eAAe,IAAI,CAAC"}
@@ -127,7 +127,7 @@ const Pois = React.forwardRef(({ pois }, ref) => {
127
127
  if (!zonePois.length) {
128
128
  return null;
129
129
  }
130
- return (_jsxs("div", { className: css.zone, children: [_jsx("div", { className: css.zoneName, children: name }), _jsx("div", { className: css.list, children: zonePois.map(({ id, name, type, liftType, trailType, activityType, trailLevel, messagePoi, openingStatus, snowQuality, groomingStatus, openingTimesReal, }) => {
130
+ return (_jsxs("div", { className: css.zone, children: [_jsx("div", { className: css.zoneName, children: name }), _jsx("div", { className: css.list, children: zonePois.map(({ id, name, type, liftType, trailType, activityType, trailLevel, messagePoi, openingStatus, snowQuality, groomingStatus, openingTimesReal, openingTimesTh, }) => {
131
131
  const isLift = type === "SKI_LIFT";
132
132
  const isInterconnection = type === "LINK";
133
133
  const translationCode = isLift
@@ -171,10 +171,11 @@ const Pois = React.forwardRef(({ pois }, ref) => {
171
171
  if (isInterconnection) {
172
172
  Icon = LinkIcon;
173
173
  }
174
- return (_jsxs("div", { className: classes, children: [_jsx("div", { className: css.poiIcon, children: specialTrail ? (_jsx(Image, { src: SPECIAL_TRAILS[specialTrail], width: 50, height: 50, alt: specialTrail })) : (_jsx(Icon, {})) }), _jsxs("div", { className: css.poiInfo, children: [_jsxs("div", { className: css.poiHeader, children: [_jsx("span", { className: css.poiName, children: name }), _jsxs("span", { className: css.poiStatus, children: [_jsx(T, { id: statusCode }), openingTimesReal &&
175
- openingTimesReal?.length > 0 &&
176
- openingTimesReal &&
177
- openingTimesReal?.length > 0 && (_jsxs("div", { className: css.poiOpeningTimes, children: [openingTimesReal[0].beginTime, " -", " ", openingTimesReal[0].endTime] }))] })] }), _jsxs("div", { className: css.poiDetail, children: [isInterconnection && (_jsx("div", { className: css.poiDetailHeader, children: _jsx("b", { children: _jsx(T, { id: "interconnection" }) }) })), trailType !== "FUN_ZONE" &&
174
+ const openingTimes = openingTimesReal || openingTimesTh;
175
+ return (_jsxs("div", { className: classes, children: [_jsx("div", { className: css.poiIcon, children: specialTrail ? (_jsx(Image, { src: SPECIAL_TRAILS[specialTrail], width: 50, height: 50, alt: specialTrail })) : (_jsx(Icon, {})) }), _jsxs("div", { className: css.poiInfo, children: [_jsxs("div", { className: css.poiHeader, children: [_jsx("span", { className: css.poiName, children: name }), _jsxs("span", { className: css.poiStatus, children: [_jsx(T, { id: statusCode }), openingTimes &&
176
+ openingTimes?.length > 0 &&
177
+ openingTimes &&
178
+ openingTimes?.length > 0 && (_jsxs("div", { className: css.poiOpeningTimes, children: [openingTimes[0].beginTime, " -", " ", openingTimes[0].endTime] }))] })] }), _jsxs("div", { className: css.poiDetail, children: [isInterconnection && (_jsx("div", { className: css.poiDetailHeader, children: _jsx("b", { children: _jsx(T, { id: "interconnection" }) }) })), trailType !== "FUN_ZONE" &&
178
179
  activityType !== "FUN_ZONE" && (_jsxs("div", { className: css.poiDetailKind, children: [_jsx(T, { id: translationCode }), " ", trailLevelLabel] })), !isLift && (_jsxs("div", { className: css.poiTrailDetail, children: [hasGroomingStatus && (_jsx("div", { className: css.poiTrailDetailItem, children: _jsx(T, { id: `snow.grooming.states.${groomingStatus}` }) })), hasSnowQuality && (_jsxs("div", { className: css.poiTrailDetailItem, children: [_jsx(T, { id: "snow.snow-quality.title" }), " :", " ", _jsx(T, { id: `snow.snow-quality.states.${snowQuality}` })] }))] }))] })] }), _jsx("div", { className: css.poiMessage, children: message?.data && (_jsx(_Fragment, { children: isMobile ? (
179
180
  // @ts-ignore
180
181
  _jsx(Popover, { innerClassName: css.poiPopover, trigger: _jsx(Button, { variant: "transparent", children: _jsx(Icons.Info, {}) }), children: message.data })) : (_jsx(Tooltip, { content: message.data, children: _jsx(Button, { variant: "transparent", children: _jsx(Icons.Info, {}) }) })) })) })] }, id));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.21.27",
3
+ "version": "1.21.28",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.1.5",
6
6
  "leaflet": "^1.9.1",