@tenancy.nz/reports 1.0.2 → 1.0.3
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.
|
@@ -7,27 +7,26 @@ var React = require('react');
|
|
|
7
7
|
var reactUid = require('react-uid');
|
|
8
8
|
var ui = require('@tenancy.nz/ui');
|
|
9
9
|
var featureUi = require('@tenancy.nz/feature-ui');
|
|
10
|
+
var ReportHeader = require('./ReportHeader.cjs');
|
|
11
|
+
var ReportFooter = require('./ReportFooter.cjs');
|
|
10
12
|
|
|
11
13
|
function OwnerBookingReport(_ref) {
|
|
12
|
-
var _ref$
|
|
13
|
-
|
|
14
|
-
_ref$
|
|
15
|
-
|
|
16
|
-
_ref$
|
|
17
|
-
|
|
18
|
-
_ref$
|
|
19
|
-
|
|
20
|
-
_ref$
|
|
21
|
-
|
|
22
|
-
_ref$
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_ref$property = _ref.property,
|
|
26
|
-
property = _ref$property === void 0 ? {} : _ref$property,
|
|
27
|
-
stats = _ref.stats;
|
|
14
|
+
var _ref$eventData = _ref.eventData,
|
|
15
|
+
_ref$eventData$agent = _ref$eventData.agent,
|
|
16
|
+
agent = _ref$eventData$agent === void 0 ? {} : _ref$eventData$agent,
|
|
17
|
+
_ref$eventData$bookin = _ref$eventData.bookings,
|
|
18
|
+
bookings = _ref$eventData$bookin === void 0 ? [] : _ref$eventData$bookin,
|
|
19
|
+
_ref$eventData$chart = _ref$eventData.chart,
|
|
20
|
+
chart = _ref$eventData$chart === void 0 ? {} : _ref$eventData$chart,
|
|
21
|
+
_ref$eventData$loadin = _ref$eventData.loading,
|
|
22
|
+
loading = _ref$eventData$loadin === void 0 ? false : _ref$eventData$loadin,
|
|
23
|
+
notes = _ref$eventData.notes,
|
|
24
|
+
_ref$eventData$proper = _ref$eventData.property,
|
|
25
|
+
property = _ref$eventData$proper === void 0 ? {} : _ref$eventData$proper,
|
|
26
|
+
stats = _ref$eventData.stats;
|
|
28
27
|
return /* @__PURE__ */React.createElement(ui.Box, {
|
|
29
28
|
width: "100%"
|
|
30
|
-
},
|
|
29
|
+
}, /* @__PURE__ */React.createElement(ui.Grid, {
|
|
31
30
|
container: true,
|
|
32
31
|
spacing: 6
|
|
33
32
|
}, /* @__PURE__ */React.createElement(ui.Grid, {
|
|
@@ -188,7 +187,9 @@ function OwnerBookingReport(_ref) {
|
|
|
188
187
|
outlined: true
|
|
189
188
|
}));
|
|
190
189
|
})));
|
|
191
|
-
})
|
|
190
|
+
}));
|
|
192
191
|
}
|
|
192
|
+
OwnerBookingReport.Header = ReportHeader.default;
|
|
193
|
+
OwnerBookingReport.Footer = ReportFooter.default;
|
|
193
194
|
|
|
194
195
|
exports.default = OwnerBookingReport;
|
|
@@ -3,27 +3,26 @@ import React from 'react';
|
|
|
3
3
|
import { uid } from 'react-uid';
|
|
4
4
|
import { Box, Grid, Paper, Heading, Text } from '@tenancy.nz/ui';
|
|
5
5
|
import { PropertyCard, AgentDetailsCard, AnalyticsBox, BookingChart, BookingTable, NotesCard } from '@tenancy.nz/feature-ui';
|
|
6
|
+
import ReportHeader from './ReportHeader.js';
|
|
7
|
+
import ReportFooter from './ReportFooter.js';
|
|
6
8
|
|
|
7
9
|
function OwnerBookingReport(_ref) {
|
|
8
|
-
var _ref$
|
|
9
|
-
|
|
10
|
-
_ref$
|
|
11
|
-
|
|
12
|
-
_ref$
|
|
13
|
-
|
|
14
|
-
_ref$
|
|
15
|
-
|
|
16
|
-
_ref$
|
|
17
|
-
|
|
18
|
-
_ref$
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_ref$property = _ref.property,
|
|
22
|
-
property = _ref$property === void 0 ? {} : _ref$property,
|
|
23
|
-
stats = _ref.stats;
|
|
10
|
+
var _ref$eventData = _ref.eventData,
|
|
11
|
+
_ref$eventData$agent = _ref$eventData.agent,
|
|
12
|
+
agent = _ref$eventData$agent === void 0 ? {} : _ref$eventData$agent,
|
|
13
|
+
_ref$eventData$bookin = _ref$eventData.bookings,
|
|
14
|
+
bookings = _ref$eventData$bookin === void 0 ? [] : _ref$eventData$bookin,
|
|
15
|
+
_ref$eventData$chart = _ref$eventData.chart,
|
|
16
|
+
chart = _ref$eventData$chart === void 0 ? {} : _ref$eventData$chart,
|
|
17
|
+
_ref$eventData$loadin = _ref$eventData.loading,
|
|
18
|
+
loading = _ref$eventData$loadin === void 0 ? false : _ref$eventData$loadin,
|
|
19
|
+
notes = _ref$eventData.notes,
|
|
20
|
+
_ref$eventData$proper = _ref$eventData.property,
|
|
21
|
+
property = _ref$eventData$proper === void 0 ? {} : _ref$eventData$proper,
|
|
22
|
+
stats = _ref$eventData.stats;
|
|
24
23
|
return /* @__PURE__ */React.createElement(Box, {
|
|
25
24
|
width: "100%"
|
|
26
|
-
},
|
|
25
|
+
}, /* @__PURE__ */React.createElement(Grid, {
|
|
27
26
|
container: true,
|
|
28
27
|
spacing: 6
|
|
29
28
|
}, /* @__PURE__ */React.createElement(Grid, {
|
|
@@ -184,7 +183,9 @@ function OwnerBookingReport(_ref) {
|
|
|
184
183
|
outlined: true
|
|
185
184
|
}));
|
|
186
185
|
})));
|
|
187
|
-
})
|
|
186
|
+
}));
|
|
188
187
|
}
|
|
188
|
+
OwnerBookingReport.Header = ReportHeader;
|
|
189
|
+
OwnerBookingReport.Footer = ReportFooter;
|
|
189
190
|
|
|
190
191
|
export { OwnerBookingReport as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenancy.nz/reports",
|
|
3
3
|
"description": "React UI reporting components.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"author": "TPS <https://www.tenancy.co.nz>",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"type": "module",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"react": ">= 16.0.0 <= 18.3.1",
|
|
16
16
|
"react-dom": ">= 16.0.0 <= 18.3.1",
|
|
17
17
|
"@tenancy.nz/feature-ui": "1.0.2",
|
|
18
|
-
"@tenancy.nz/ui": "1.0.
|
|
18
|
+
"@tenancy.nz/ui": "1.0.6"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"react": "^19.1.0",
|
|
22
22
|
"react-dom": "^19.1.0",
|
|
23
|
-
"@tenancy.nz/ui": "1.0.
|
|
24
|
-
"@tenancy.nz/
|
|
23
|
+
"@tenancy.nz/feature-ui": "1.0.2",
|
|
24
|
+
"@tenancy.nz/ui": "1.0.6"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"react-uid": "^2.4.0"
|