nestiq-component-library 1.1.146 → 1.1.151
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/dist/components/NewPropertyCard/NewPropertyCard.d.ts +1 -0
- package/dist/index.es.js +18 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +18 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FloorPlanPopup/FloorPlanPopup.tsx +1 -1
- package/src/components/ImageListPopup/ImageListPopup.tsx +13 -9
- package/src/components/NewPropertyCard/NewPropertyCard.tsx +5 -6
package/dist/index.js
CHANGED
|
@@ -214,11 +214,11 @@ function ImageListPopup(props) {
|
|
|
214
214
|
setShowPopUp(false);
|
|
215
215
|
};
|
|
216
216
|
return (React.createElement("div", null, showPopUp && (React.createElement("div", { className: "popup-overlay" },
|
|
217
|
-
React.createElement("div", { className: " d-flex w-50 flex-column
|
|
217
|
+
React.createElement("div", { className: " d-flex w-50 flex-column col-6 " },
|
|
218
218
|
React.createElement("div", { className: "d-flex align-self-end me-5 mt-5" },
|
|
219
219
|
React.createElement("img", { src: iconClose, alt: "close", className: "closeIcon mt-5", onClick: handleClose })),
|
|
220
220
|
React.createElement("span", { className: "text-white align-self-center" }, props.pictureUrls[currentImageIndex].title),
|
|
221
|
-
React.createElement("div", { className: "d-flex
|
|
221
|
+
React.createElement("div", { className: "d-flex justify-content-center" },
|
|
222
222
|
React.createElement("div", { className: "p-2 bd-highlight align-self-center align-items-center me-5" },
|
|
223
223
|
React.createElement("div", { className: "rounded-circle border onImageArrow start-0 d-flex ", role: "button", onClick: function () { return handleArrowClickInMainImage("left"); } },
|
|
224
224
|
React.createElement("img", { src: blcIconArrowLeft, className: "blackArrow align-self-center", alt: "Left Arrow" }))),
|
|
@@ -234,23 +234,27 @@ function ImageListPopup(props) {
|
|
|
234
234
|
" ",
|
|
235
235
|
React.createElement("div", { role: "button", className: "rounded-circle border onImageArrow d-flex justify-content-center", onClick: function () { return handleArrowClickInMainImage("right"); } },
|
|
236
236
|
React.createElement("img", { src: blcIconArrowRight, className: "blackArrow align-self-center", alt: "Right Arrow" })))),
|
|
237
|
-
React.createElement("div", { className: "d-flex flex-row
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
237
|
+
React.createElement("div", { className: "d-flex flex-row" }),
|
|
238
|
+
React.createElement("div", { className: "d-flex flex-row gap-4 w-100 secondList " },
|
|
239
|
+
React.createElement("div", { className: "col-lg-12 d-flex flex-row p-1 align-self-center mt-5" },
|
|
240
|
+
React.createElement("div", { className: "col-12 position-relative d-flex justify-content-center" },
|
|
241
|
+
React.createElement("div", { className: "col-lg-10 rounded-3 h-100 w-100 d-flex flex-row gap-2 overflow-auto ", ref: imageListRef }, props.pictureUrls.length > 0 && (React.createElement("div", { className: "col-lg-5 h-100 w-25 d-flex gap-4 flex-row rounded-3" }, props.pictureUrls.map(function (picture, index) { return (React.createElement("div", { key: index, className: "col-lg-12 h-100 d-flex", onClick: function () {
|
|
242
|
+
setCurrentImageIndex(index);
|
|
243
|
+
imageListRef.current.scrollTo({
|
|
244
|
+
left: index * 150,
|
|
245
|
+
behavior: "smooth",
|
|
246
|
+
});
|
|
247
|
+
}, role: "button" },
|
|
248
|
+
React.createElement("img", { src: picture.url, alt: "Image ".concat(index + 1), className: "col-12 h-100 rounded-3 object-fit-cover" }))); }))))))))))));
|
|
246
249
|
}
|
|
247
250
|
|
|
248
251
|
var FloorPlanPopup = function (_a) {
|
|
249
252
|
var contentUrl = _a.contentUrl, onCloseClick = _a.onCloseClick;
|
|
250
253
|
var _b = React.useState(false), isContentImage = _b[0], setIsContentImage = _b[1];
|
|
251
254
|
React.useEffect(function () {
|
|
255
|
+
var _a;
|
|
252
256
|
if (contentUrl) {
|
|
253
|
-
var fileFormat = contentUrl.split(".").pop();
|
|
257
|
+
var fileFormat = (_a = contentUrl.split(".").pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
254
258
|
if (fileFormat === "png" ||
|
|
255
259
|
fileFormat === "jpg" ||
|
|
256
260
|
fileFormat === "jpeg" ||
|
|
@@ -465,16 +469,14 @@ function PropertyCard(props) {
|
|
|
465
469
|
var _j = React.useState(null), mainImage = _j[0], setMainImage = _j[1];
|
|
466
470
|
var _k = React.useState(0), currentImageIndex = _k[0], setCurrentImageIndex = _k[1];
|
|
467
471
|
var imageListRef = React.useRef(null);
|
|
468
|
-
var _l = React.useState(false)
|
|
472
|
+
var _l = React.useState(false); _l[0]; _l[1];
|
|
469
473
|
var _m = React.useState(false); _m[0]; _m[1];
|
|
470
474
|
var _o = React.useState(false), sharePopUp = _o[0], setSharePopUp = _o[1];
|
|
471
475
|
var pictureUrls = ((_b = (_a = props.property) === null || _a === void 0 ? void 0 : _a.pictures) === null || _b === void 0 ? void 0 : _b.length) > 0
|
|
472
476
|
? props.property.pictures.map(function (picture) { return "".concat(props.baseUrl).concat(picture.contentUrl); })
|
|
473
477
|
: [noImageIcon];
|
|
474
478
|
var floorPlanOnClick = function () {
|
|
475
|
-
|
|
476
|
-
setFloorPlan(true);
|
|
477
|
-
}
|
|
479
|
+
props.onFloorPlanClick();
|
|
478
480
|
};
|
|
479
481
|
var handleMessagPopUp = function () {
|
|
480
482
|
// setMessagPopUp(true);
|
|
@@ -606,7 +608,6 @@ function PropertyCard(props) {
|
|
|
606
608
|
React.createElement("span", { className: "kontact-button-text" },
|
|
607
609
|
"Kontakt aufnehmen",
|
|
608
610
|
" "))))))),
|
|
609
|
-
floorPlan && (React.createElement(FloorPlanPopup, { contentUrl: props.floorPlanUrl, onCloseClick: function () { return setFloorPlan(false); } })),
|
|
610
611
|
sharePopUp && React.createElement(SharePopup, { onClick: function () { return setSharePopUp(false); } })));
|
|
611
612
|
}
|
|
612
613
|
|