nestiq-component-library 1.1.170 → 1.1.171
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 +0 -1
- package/dist/components/PropertyImageList/PropertyImageList.d.ts +9 -2
- package/dist/index.es.js +16 -21
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +16 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FloorPlanPopup/FloorPlanPopup.css +3 -3
- package/src/components/NewPropertyCard/NewPropertyCard.tsx +0 -8
- package/src/components/Popup/Popup.tsx +29 -29
- package/src/components/PropertyImageList/PropertyImageList.tsx +21 -14
- package/src/components/ToastWrapper/ToastWrapper.tsx +25 -25
- package/src/models/message.model.ts +7 -7
|
@@ -37,7 +37,6 @@ interface PopupProps {
|
|
|
37
37
|
expose: {
|
|
38
38
|
title: string;
|
|
39
39
|
};
|
|
40
|
-
selectedFloorPlan?: string;
|
|
41
40
|
pictures: { contentUrl: string; pictureType: { id: number } }[];
|
|
42
41
|
};
|
|
43
42
|
userData?: { firstname: string; lastname: string; company: string };
|
|
@@ -83,13 +82,6 @@ export default function PropertyCard(props: PopupProps) {
|
|
|
83
82
|
title: `Floor Plan ${index + 1}`,
|
|
84
83
|
})) || [];
|
|
85
84
|
|
|
86
|
-
if (props.property.selectedFloorPlan) {
|
|
87
|
-
floorPlanImages.push({
|
|
88
|
-
url: props.property.selectedFloorPlan,
|
|
89
|
-
title: "Selected Floor Plan",
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
85
|
// setPictureUrls(pictureUrls);
|
|
94
86
|
const handleLike = () => {
|
|
95
87
|
setLiked(!liked);
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import closeIcon from "../../assets/images/icon_close_2.png";
|
|
3
|
-
import "./Popup.css";
|
|
4
|
-
import "../../styles/common.css";
|
|
5
|
-
|
|
6
|
-
interface PopupProps {
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
onCloseClick: () => void;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const Popup: React.FC<PopupProps> = ({ onCloseClick, children }) => {
|
|
12
|
-
return (
|
|
13
|
-
<div className="popup-overlay">
|
|
14
|
-
<div className="shareSection col-12 d-flex position-relative flex-column mx-auto justify-content-center col-5 col-lg-6 d-flex gap-4">
|
|
15
|
-
<div className="end-0 top-0 position-absolute ">
|
|
16
|
-
<img
|
|
17
|
-
src={closeIcon}
|
|
18
|
-
alt="close"
|
|
19
|
-
className="closeIcon me-2"
|
|
20
|
-
onClick={onCloseClick}
|
|
21
|
-
/>
|
|
22
|
-
</div>
|
|
23
|
-
{children}
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default Popup;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import closeIcon from "../../assets/images/icon_close_2.png";
|
|
3
|
+
import "./Popup.css";
|
|
4
|
+
import "../../styles/common.css";
|
|
5
|
+
|
|
6
|
+
interface PopupProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
onCloseClick: () => void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const Popup: React.FC<PopupProps> = ({ onCloseClick, children }) => {
|
|
12
|
+
return (
|
|
13
|
+
<div className="popup-overlay">
|
|
14
|
+
<div className="shareSection col-12 d-flex position-relative flex-column mx-auto justify-content-center col-5 col-lg-6 d-flex gap-4">
|
|
15
|
+
<div className="end-0 top-0 position-absolute ">
|
|
16
|
+
<img
|
|
17
|
+
src={closeIcon}
|
|
18
|
+
alt="close"
|
|
19
|
+
className="closeIcon me-2"
|
|
20
|
+
onClick={onCloseClick}
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
{children}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default Popup;
|
|
@@ -6,6 +6,7 @@ import iconArrowLeft from "../../assets/images/chevron-left.svg";
|
|
|
6
6
|
import iconGallery from "../../assets/images/icon_gallery.svg";
|
|
7
7
|
import iconMap from "../../assets/images/icon_map.svg";
|
|
8
8
|
import iconLayers from "../../assets/images/layer_icon.svg";
|
|
9
|
+
import noImageIcon from "../../assets/Images/default-property.jpg";
|
|
9
10
|
import "./PropertyImageList.css";
|
|
10
11
|
import ImageListPopup from "../ImageListPopup/ImageListPopup";
|
|
11
12
|
import PopupProps from "../ImageListPopup/ImageListPopup";
|
|
@@ -13,10 +14,17 @@ import FloorPlanPopup from "../FloorPlanPopup/FloorPlanPopup";
|
|
|
13
14
|
|
|
14
15
|
interface PopupProps {
|
|
15
16
|
pictureUrls: { title: string; url: string }[];
|
|
16
|
-
|
|
17
|
+
allPictureUrls: { title: string; url: string }[];
|
|
17
18
|
property: {
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
pictures: {
|
|
20
|
+
contentUrl: string;
|
|
21
|
+
pictureType: { id: number };
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
translations?: {
|
|
25
|
+
allPhotos?: string;
|
|
26
|
+
map?: string;
|
|
27
|
+
grundriss?: string;
|
|
20
28
|
};
|
|
21
29
|
baseUrl: string;
|
|
22
30
|
}
|
|
@@ -57,13 +65,6 @@ export default function PropertyImageList(prop: PopupProps) {
|
|
|
57
65
|
title: `Floor Plan ${index + 1}`,
|
|
58
66
|
})) || [];
|
|
59
67
|
|
|
60
|
-
if (prop.property.selectedFloorPlan) {
|
|
61
|
-
floorPlanImages.push({
|
|
62
|
-
url: prop.property.selectedFloorPlan,
|
|
63
|
-
title: "Selected Floor Plan",
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
68
|
const toggleAllPhotos = () => {
|
|
68
69
|
setIsImagePopupOpen(!isImagePopupOpen);
|
|
69
70
|
};
|
|
@@ -76,6 +77,12 @@ export default function PropertyImageList(prop: PopupProps) {
|
|
|
76
77
|
setIsFloorPlanPopupOpen(false);
|
|
77
78
|
};
|
|
78
79
|
|
|
80
|
+
const t = {
|
|
81
|
+
allPhotos: prop.translations?.allPhotos || "Alle Fotos",
|
|
82
|
+
map: prop.translations?.map || "Karte",
|
|
83
|
+
grundriss: prop.translations?.grundriss || "Grundriss",
|
|
84
|
+
};
|
|
85
|
+
|
|
79
86
|
return (
|
|
80
87
|
<div className="col-8 Pimagelist ">
|
|
81
88
|
<div
|
|
@@ -189,7 +196,7 @@ export default function PropertyImageList(prop: PopupProps) {
|
|
|
189
196
|
>
|
|
190
197
|
<div className="border col-lg-12 h-100 d-flex flex-column listImageButton border-0 rounded-3">
|
|
191
198
|
<img src={iconGallery} alt="Gallery Icon" />
|
|
192
|
-
<span className="listImgText">
|
|
199
|
+
<span className="listImgText"> {t.allPhotos}</span>
|
|
193
200
|
</div>
|
|
194
201
|
</div>
|
|
195
202
|
<div
|
|
@@ -199,7 +206,7 @@ export default function PropertyImageList(prop: PopupProps) {
|
|
|
199
206
|
>
|
|
200
207
|
<div className="border col-lg-12 h-100 d-flex flex-column listImageButton border-0 rounded-3">
|
|
201
208
|
<img src={iconLayers} alt="Layers Icon" />
|
|
202
|
-
<span className="listImgText">
|
|
209
|
+
<span className="listImgText">{t.grundriss}</span>
|
|
203
210
|
</div>
|
|
204
211
|
</div>
|
|
205
212
|
<div
|
|
@@ -213,7 +220,7 @@ export default function PropertyImageList(prop: PopupProps) {
|
|
|
213
220
|
>
|
|
214
221
|
<div className="border col-lg-12 h-100 d-flex flex-column listImageButton border-0 rounded-3">
|
|
215
222
|
<img src={iconMap} alt="Map Icon" />
|
|
216
|
-
<span className="listImgText">
|
|
223
|
+
<span className="listImgText">{t.map}</span>
|
|
217
224
|
</div>
|
|
218
225
|
</div>
|
|
219
226
|
</div>
|
|
@@ -222,7 +229,7 @@ export default function PropertyImageList(prop: PopupProps) {
|
|
|
222
229
|
{/* Popup for all photos */}
|
|
223
230
|
{isImagePopupOpen && (
|
|
224
231
|
<ImageListPopup
|
|
225
|
-
pictureUrls={prop.
|
|
232
|
+
pictureUrls={prop.allPictureUrls}
|
|
226
233
|
onClose={() => setIsImagePopupOpen(false)}
|
|
227
234
|
/>
|
|
228
235
|
)}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ToastContainer, toast } from "react-toastify";
|
|
3
|
-
|
|
4
|
-
// Utility function to show a toast
|
|
5
|
-
export const showToast = (
|
|
6
|
-
message: string,
|
|
7
|
-
type: "info" | "success" | "warning" | "error" = "info",
|
|
8
|
-
) => {
|
|
9
|
-
toast(message, { type });
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const ToastWrapper: React.FC = () => (
|
|
13
|
-
<ToastContainer
|
|
14
|
-
position="top-right"
|
|
15
|
-
autoClose={5000}
|
|
16
|
-
hideProgressBar={false}
|
|
17
|
-
closeOnClick
|
|
18
|
-
rtl={false}
|
|
19
|
-
pauseOnFocusLoss
|
|
20
|
-
draggable
|
|
21
|
-
pauseOnHover
|
|
22
|
-
/>
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
export default ToastWrapper;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ToastContainer, toast } from "react-toastify";
|
|
3
|
+
|
|
4
|
+
// Utility function to show a toast
|
|
5
|
+
export const showToast = (
|
|
6
|
+
message: string,
|
|
7
|
+
type: "info" | "success" | "warning" | "error" = "info",
|
|
8
|
+
) => {
|
|
9
|
+
toast(message, { type });
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const ToastWrapper: React.FC = () => (
|
|
13
|
+
<ToastContainer
|
|
14
|
+
position="top-right"
|
|
15
|
+
autoClose={5000}
|
|
16
|
+
hideProgressBar={false}
|
|
17
|
+
closeOnClick
|
|
18
|
+
rtl={false}
|
|
19
|
+
pauseOnFocusLoss
|
|
20
|
+
draggable
|
|
21
|
+
pauseOnHover
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export default ToastWrapper;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface MessageModel {
|
|
2
|
-
themeId: string;
|
|
3
|
-
subject: string;
|
|
4
|
-
messageText: string;
|
|
5
|
-
firstName: string;
|
|
6
|
-
lastName: string;
|
|
7
|
-
}
|
|
1
|
+
export interface MessageModel {
|
|
2
|
+
themeId: string;
|
|
3
|
+
subject: string;
|
|
4
|
+
messageText: string;
|
|
5
|
+
firstName: string;
|
|
6
|
+
lastName: string;
|
|
7
|
+
}
|