@tenancy.nz/feature-ui 1.7.7 → 1.7.9
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/cjs/components/AnalyticsSection.cjs +4 -0
- package/dist/cjs/components/analytics-doughnut-chart.cjs +8 -1
- package/dist/cjs/components/pdf-analytics-section.cjs +5 -1
- package/dist/esm/components/AnalyticsSection.js +4 -0
- package/dist/esm/components/analytics-doughnut-chart.js +8 -1
- package/dist/esm/components/pdf-analytics-section.js +5 -1
- package/package.json +3 -3
|
@@ -27,12 +27,14 @@ function AnalyticsSection(_ref) {
|
|
|
27
27
|
realestateEnquiriesCount = _ref.realestateEnquiriesCount,
|
|
28
28
|
tradeMeEnquiriesCount = _ref.tradeMeEnquiriesCount,
|
|
29
29
|
manualEnquiryCount = _ref.manualEnquiryCount,
|
|
30
|
+
websiteEnquiriesCount = _ref.websiteEnquiriesCount,
|
|
30
31
|
allHouseBookingsCount = _ref.allHouseBookingsCount,
|
|
31
32
|
bookMeBookingsCount = _ref.bookMeBookingsCount,
|
|
32
33
|
oneRoofBookingsCount = _ref.oneRoofBookingsCount,
|
|
33
34
|
realestateBookingsCount = _ref.realestateBookingsCount,
|
|
34
35
|
tradeMeBookingsCount = _ref.tradeMeBookingsCount,
|
|
35
36
|
manualBookingsCount = _ref.manualBookingsCount,
|
|
37
|
+
websiteBookingsCount = _ref.websiteBookingsCount,
|
|
36
38
|
_ref$outlinedItems = _ref.outlinedItems,
|
|
37
39
|
outlinedItems = _ref$outlinedItems === void 0 ? false : _ref$outlinedItems;
|
|
38
40
|
var isXlUp = useMediaQuery(function (theme) {
|
|
@@ -91,6 +93,7 @@ function AnalyticsSection(_ref) {
|
|
|
91
93
|
allhouseCount: allHouseEnquiriesCount,
|
|
92
94
|
oneRoofCount: oneRoofEnquiriesCount,
|
|
93
95
|
realEstateCount: realestateEnquiriesCount,
|
|
96
|
+
websiteCount: websiteEnquiriesCount,
|
|
94
97
|
heading: "Number of enquiries"
|
|
95
98
|
})), /* @__PURE__ */React.createElement(ui.Paper, {
|
|
96
99
|
outlined: outlinedItems,
|
|
@@ -116,6 +119,7 @@ function AnalyticsSection(_ref) {
|
|
|
116
119
|
allhouseCount: allHouseBookingsCount,
|
|
117
120
|
oneRoofCount: oneRoofBookingsCount,
|
|
118
121
|
realEstateCount: realestateBookingsCount,
|
|
122
|
+
websiteCount: websiteBookingsCount,
|
|
119
123
|
heading: "Number of bookings"
|
|
120
124
|
})), /* @__PURE__ */React.createElement(Stack, {
|
|
121
125
|
gap: {
|
|
@@ -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,
|
|
@@ -23,12 +23,14 @@ function AnalyticsSection(_ref) {
|
|
|
23
23
|
realestateEnquiriesCount = _ref.realestateEnquiriesCount,
|
|
24
24
|
tradeMeEnquiriesCount = _ref.tradeMeEnquiriesCount,
|
|
25
25
|
manualEnquiryCount = _ref.manualEnquiryCount,
|
|
26
|
+
websiteEnquiriesCount = _ref.websiteEnquiriesCount,
|
|
26
27
|
allHouseBookingsCount = _ref.allHouseBookingsCount,
|
|
27
28
|
bookMeBookingsCount = _ref.bookMeBookingsCount,
|
|
28
29
|
oneRoofBookingsCount = _ref.oneRoofBookingsCount,
|
|
29
30
|
realestateBookingsCount = _ref.realestateBookingsCount,
|
|
30
31
|
tradeMeBookingsCount = _ref.tradeMeBookingsCount,
|
|
31
32
|
manualBookingsCount = _ref.manualBookingsCount,
|
|
33
|
+
websiteBookingsCount = _ref.websiteBookingsCount,
|
|
32
34
|
_ref$outlinedItems = _ref.outlinedItems,
|
|
33
35
|
outlinedItems = _ref$outlinedItems === void 0 ? false : _ref$outlinedItems;
|
|
34
36
|
var isXlUp = useMediaQuery(function (theme) {
|
|
@@ -87,6 +89,7 @@ function AnalyticsSection(_ref) {
|
|
|
87
89
|
allhouseCount: allHouseEnquiriesCount,
|
|
88
90
|
oneRoofCount: oneRoofEnquiriesCount,
|
|
89
91
|
realEstateCount: realestateEnquiriesCount,
|
|
92
|
+
websiteCount: websiteEnquiriesCount,
|
|
90
93
|
heading: "Number of enquiries"
|
|
91
94
|
})), /* @__PURE__ */React.createElement(Paper, {
|
|
92
95
|
outlined: outlinedItems,
|
|
@@ -112,6 +115,7 @@ function AnalyticsSection(_ref) {
|
|
|
112
115
|
allhouseCount: allHouseBookingsCount,
|
|
113
116
|
oneRoofCount: oneRoofBookingsCount,
|
|
114
117
|
realEstateCount: realestateBookingsCount,
|
|
118
|
+
websiteCount: websiteBookingsCount,
|
|
115
119
|
heading: "Number of bookings"
|
|
116
120
|
})), /* @__PURE__ */React.createElement(Stack, {
|
|
117
121
|
gap: {
|
|
@@ -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.9",
|
|
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.9"
|
|
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.9"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"react-uid": "^2.4.0"
|