@tenancy.nz/feature-ui 1.7.7 → 1.7.8
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.
|
@@ -8,7 +8,7 @@ var doughnutChart = require('./doughnut-chart.cjs');
|
|
|
8
8
|
var partnerLogo = require('./partner-logo.cjs');
|
|
9
9
|
var general = require('../utils/helpers/general.cjs');
|
|
10
10
|
|
|
11
|
-
var _excluded = ["allhouseCount", "bookMeCount", "oneRoofCount", "realEstateCount", "tradeMeCount", "manualCount", "heading"];
|
|
11
|
+
var _excluded = ["allhouseCount", "bookMeCount", "oneRoofCount", "realEstateCount", "tradeMeCount", "manualCount", "websiteCount", "heading"];
|
|
12
12
|
function AnalyticsDoughnutChart(_ref) {
|
|
13
13
|
var _ref$allhouseCount = _ref.allhouseCount,
|
|
14
14
|
allhouseCount = _ref$allhouseCount === void 0 ? 0 : _ref$allhouseCount,
|
|
@@ -22,6 +22,8 @@ function AnalyticsDoughnutChart(_ref) {
|
|
|
22
22
|
tradeMeCount = _ref$tradeMeCount === void 0 ? 0 : _ref$tradeMeCount,
|
|
23
23
|
_ref$manualCount = _ref.manualCount,
|
|
24
24
|
manualCount = _ref$manualCount === void 0 ? 0 : _ref$manualCount,
|
|
25
|
+
_ref$websiteCount = _ref.websiteCount,
|
|
26
|
+
websiteCount = _ref$websiteCount === void 0 ? 0 : _ref$websiteCount,
|
|
25
27
|
_ref$heading = _ref.heading,
|
|
26
28
|
heading = _ref$heading === void 0 ? void 0 : _ref$heading,
|
|
27
29
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
@@ -94,6 +96,11 @@ function AnalyticsDoughnutChart(_ref) {
|
|
|
94
96
|
md: "12px"
|
|
95
97
|
}
|
|
96
98
|
})
|
|
99
|
+
}, {
|
|
100
|
+
color: "#6D6D6D",
|
|
101
|
+
count: general.parseChartCount(websiteCount),
|
|
102
|
+
slug: "website",
|
|
103
|
+
title: "Office Website"
|
|
97
104
|
}, {
|
|
98
105
|
color: "#D9D9D9",
|
|
99
106
|
count: general.parseChartCount(manualCount),
|
|
@@ -36,12 +36,14 @@ function PDFAnalyticsSection(_ref) {
|
|
|
36
36
|
realestateEnquiriesCount = _ref.realestateEnquiriesCount,
|
|
37
37
|
tradeMeEnquiriesCount = _ref.tradeMeEnquiriesCount,
|
|
38
38
|
manualEnquiryCount = _ref.manualEnquiryCount,
|
|
39
|
+
websiteEnquiryCount = _ref.websiteEnquiryCount,
|
|
39
40
|
allHouseBookingsCount = _ref.allHouseBookingsCount,
|
|
40
41
|
bookMeBookingsCount = _ref.bookMeBookingsCount,
|
|
41
42
|
oneRoofBookingsCount = _ref.oneRoofBookingsCount,
|
|
42
43
|
realestateBookingsCount = _ref.realestateBookingsCount,
|
|
43
44
|
tradeMeBookingsCount = _ref.tradeMeBookingsCount,
|
|
44
|
-
manualBookingsCount = _ref.manualBookingsCount
|
|
45
|
+
manualBookingsCount = _ref.manualBookingsCount,
|
|
46
|
+
websiteBookingsCount = _ref.websiteBookingsCount;
|
|
45
47
|
var isXlUp = useMediaQuery(function (theme) {
|
|
46
48
|
return theme.breakpoints.up("xl");
|
|
47
49
|
});
|
|
@@ -92,6 +94,7 @@ function PDFAnalyticsSection(_ref) {
|
|
|
92
94
|
allhouseCount: allHouseEnquiriesCount,
|
|
93
95
|
oneRoofCount: oneRoofEnquiriesCount,
|
|
94
96
|
realEstateCount: realestateEnquiriesCount,
|
|
97
|
+
websiteCount: websiteEnquiryCount,
|
|
95
98
|
heading: "Number of enquiries"
|
|
96
99
|
}))), /* @__PURE__ */React.createElement(ui.Grid, {
|
|
97
100
|
item: true,
|
|
@@ -108,6 +111,7 @@ function PDFAnalyticsSection(_ref) {
|
|
|
108
111
|
allhouseCount: allHouseBookingsCount,
|
|
109
112
|
oneRoofCount: oneRoofBookingsCount,
|
|
110
113
|
realEstateCount: realestateBookingsCount,
|
|
114
|
+
websiteCount: websiteBookingsCount,
|
|
111
115
|
heading: "Number of bookings"
|
|
112
116
|
})))), /* @__PURE__ */React.createElement(ui.Grid, {
|
|
113
117
|
item: true,
|
|
@@ -4,7 +4,7 @@ import DoughnutChart from './doughnut-chart.js';
|
|
|
4
4
|
import PartnerLogo from './partner-logo.js';
|
|
5
5
|
import { parseChartCount } from '../utils/helpers/general.js';
|
|
6
6
|
|
|
7
|
-
var _excluded = ["allhouseCount", "bookMeCount", "oneRoofCount", "realEstateCount", "tradeMeCount", "manualCount", "heading"];
|
|
7
|
+
var _excluded = ["allhouseCount", "bookMeCount", "oneRoofCount", "realEstateCount", "tradeMeCount", "manualCount", "websiteCount", "heading"];
|
|
8
8
|
function AnalyticsDoughnutChart(_ref) {
|
|
9
9
|
var _ref$allhouseCount = _ref.allhouseCount,
|
|
10
10
|
allhouseCount = _ref$allhouseCount === void 0 ? 0 : _ref$allhouseCount,
|
|
@@ -18,6 +18,8 @@ function AnalyticsDoughnutChart(_ref) {
|
|
|
18
18
|
tradeMeCount = _ref$tradeMeCount === void 0 ? 0 : _ref$tradeMeCount,
|
|
19
19
|
_ref$manualCount = _ref.manualCount,
|
|
20
20
|
manualCount = _ref$manualCount === void 0 ? 0 : _ref$manualCount,
|
|
21
|
+
_ref$websiteCount = _ref.websiteCount,
|
|
22
|
+
websiteCount = _ref$websiteCount === void 0 ? 0 : _ref$websiteCount,
|
|
21
23
|
_ref$heading = _ref.heading,
|
|
22
24
|
heading = _ref$heading === void 0 ? void 0 : _ref$heading,
|
|
23
25
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -90,6 +92,11 @@ function AnalyticsDoughnutChart(_ref) {
|
|
|
90
92
|
md: "12px"
|
|
91
93
|
}
|
|
92
94
|
})
|
|
95
|
+
}, {
|
|
96
|
+
color: "#6D6D6D",
|
|
97
|
+
count: parseChartCount(websiteCount),
|
|
98
|
+
slug: "website",
|
|
99
|
+
title: "Office Website"
|
|
93
100
|
}, {
|
|
94
101
|
color: "#D9D9D9",
|
|
95
102
|
count: parseChartCount(manualCount),
|
|
@@ -32,12 +32,14 @@ function PDFAnalyticsSection(_ref) {
|
|
|
32
32
|
realestateEnquiriesCount = _ref.realestateEnquiriesCount,
|
|
33
33
|
tradeMeEnquiriesCount = _ref.tradeMeEnquiriesCount,
|
|
34
34
|
manualEnquiryCount = _ref.manualEnquiryCount,
|
|
35
|
+
websiteEnquiryCount = _ref.websiteEnquiryCount,
|
|
35
36
|
allHouseBookingsCount = _ref.allHouseBookingsCount,
|
|
36
37
|
bookMeBookingsCount = _ref.bookMeBookingsCount,
|
|
37
38
|
oneRoofBookingsCount = _ref.oneRoofBookingsCount,
|
|
38
39
|
realestateBookingsCount = _ref.realestateBookingsCount,
|
|
39
40
|
tradeMeBookingsCount = _ref.tradeMeBookingsCount,
|
|
40
|
-
manualBookingsCount = _ref.manualBookingsCount
|
|
41
|
+
manualBookingsCount = _ref.manualBookingsCount,
|
|
42
|
+
websiteBookingsCount = _ref.websiteBookingsCount;
|
|
41
43
|
var isXlUp = useMediaQuery(function (theme) {
|
|
42
44
|
return theme.breakpoints.up("xl");
|
|
43
45
|
});
|
|
@@ -88,6 +90,7 @@ function PDFAnalyticsSection(_ref) {
|
|
|
88
90
|
allhouseCount: allHouseEnquiriesCount,
|
|
89
91
|
oneRoofCount: oneRoofEnquiriesCount,
|
|
90
92
|
realEstateCount: realestateEnquiriesCount,
|
|
93
|
+
websiteCount: websiteEnquiryCount,
|
|
91
94
|
heading: "Number of enquiries"
|
|
92
95
|
}))), /* @__PURE__ */React.createElement(Grid, {
|
|
93
96
|
item: true,
|
|
@@ -104,6 +107,7 @@ function PDFAnalyticsSection(_ref) {
|
|
|
104
107
|
allhouseCount: allHouseBookingsCount,
|
|
105
108
|
oneRoofCount: oneRoofBookingsCount,
|
|
106
109
|
realEstateCount: realestateBookingsCount,
|
|
110
|
+
websiteCount: websiteBookingsCount,
|
|
107
111
|
heading: "Number of bookings"
|
|
108
112
|
})))), /* @__PURE__ */React.createElement(Grid, {
|
|
109
113
|
item: true,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenancy.nz/feature-ui",
|
|
3
3
|
"description": "React UI feature components.",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.8",
|
|
5
5
|
"author": "TPS <https://www.tenancy.co.nz>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/cjs/index.cjs",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"primereact": "3.1.3",
|
|
21
21
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
22
22
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
23
|
-
"@tenancy.nz/ui": "1.7.
|
|
23
|
+
"@tenancy.nz/ui": "1.7.8"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@emotion/react": "^11.14.0",
|
|
27
27
|
"@emotion/styled": "^11.14.1",
|
|
28
28
|
"@mui/icons-material": "^7.2.0",
|
|
29
29
|
"@mui/material": "^7.3.1",
|
|
30
|
-
"@tenancy.nz/ui": "1.7.
|
|
30
|
+
"@tenancy.nz/ui": "1.7.8"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"react-uid": "^2.4.0"
|