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