@hisptz/dhis2-analytics 1.0.7 → 1.0.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.
|
@@ -4,21 +4,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
-
|
|
7
|
+
ChartAnalytics: true,
|
|
8
|
+
ChartDownloadMenu: true,
|
|
9
|
+
ChartAnalyticsProps: true
|
|
8
10
|
};
|
|
11
|
+
exports.ChartAnalytics = void 0;
|
|
12
|
+
Object.defineProperty(exports, "ChartAnalyticsProps", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _props.ChartAnalyticsProps;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
9
18
|
Object.defineProperty(exports, "ChartDownloadMenu", {
|
|
10
19
|
enumerable: true,
|
|
11
20
|
get: function () {
|
|
12
21
|
return _DownloadMenu.default;
|
|
13
22
|
}
|
|
14
23
|
});
|
|
15
|
-
exports.default = void 0;
|
|
16
24
|
var _dhis2Utils = require("@hisptz/dhis2-utils");
|
|
17
25
|
var _highcharts = _interopRequireDefault(require("highcharts"));
|
|
18
26
|
var _highchartsReactOfficial = _interopRequireDefault(require("highcharts-react-official"));
|
|
19
27
|
var _react = _interopRequireWildcard(require("react"));
|
|
20
28
|
var _DownloadMenu = _interopRequireDefault(require("./components/DownloadMenu"));
|
|
21
29
|
var _useChart = require("./hooks/useChart");
|
|
30
|
+
var _props = require("./types/props");
|
|
22
31
|
require("./styles/custom-highchart.css");
|
|
23
32
|
var _export = require("./services/export");
|
|
24
33
|
Object.keys(_export).forEach(function (key) {
|
|
@@ -35,7 +44,7 @@ Object.keys(_export).forEach(function (key) {
|
|
|
35
44
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
36
45
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
38
|
-
function
|
|
47
|
+
function ChartAnalyticsComponent(_ref, ref) {
|
|
39
48
|
let {
|
|
40
49
|
analytics,
|
|
41
50
|
config,
|
|
@@ -65,5 +74,5 @@ function ChartAnalytics(_ref, ref) {
|
|
|
65
74
|
}
|
|
66
75
|
});
|
|
67
76
|
}
|
|
68
|
-
|
|
69
|
-
exports.
|
|
77
|
+
const ChartAnalytics = /*#__PURE__*/(0, _react.forwardRef)(ChartAnalyticsComponent);
|
|
78
|
+
exports.ChartAnalytics = ChartAnalytics;
|
|
@@ -4,10 +4,11 @@ import HighchartsReact from "highcharts-react-official";
|
|
|
4
4
|
import React, { forwardRef, useRef } from "react";
|
|
5
5
|
import ChartDownloadMenu from "./components/DownloadMenu";
|
|
6
6
|
import { useChart } from "./hooks/useChart";
|
|
7
|
+
import { ChartAnalyticsProps } from "./types/props";
|
|
7
8
|
import "./styles/custom-highchart.css";
|
|
8
9
|
export * from "./services/export";
|
|
9
|
-
export { ChartDownloadMenu };
|
|
10
|
-
function
|
|
10
|
+
export { ChartDownloadMenu, ChartAnalyticsProps };
|
|
11
|
+
function ChartAnalyticsComponent(_ref, ref) {
|
|
11
12
|
let {
|
|
12
13
|
analytics,
|
|
13
14
|
config,
|
|
@@ -37,4 +38,4 @@ function ChartAnalytics(_ref, ref) {
|
|
|
37
38
|
}
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
|
-
export
|
|
41
|
+
export const ChartAnalytics = /*#__PURE__*/forwardRef(ChartAnalyticsComponent);
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import HighchartsReact from "highcharts-react-official";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import ChartDownloadMenu from "./components/DownloadMenu";
|
|
4
3
|
import { ChartAnalyticsProps } from "./types/props";
|
|
5
4
|
import "./styles/custom-highchart.css";
|
|
6
5
|
export * from "./services/export";
|
|
7
|
-
export { ChartDownloadMenu };
|
|
8
|
-
declare const
|
|
9
|
-
export default _default;
|
|
6
|
+
export { ChartDownloadMenu, ChartAnalyticsProps, };
|
|
7
|
+
export declare const ChartAnalytics: React.FC<ChartAnalyticsProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { OrgUnitSelection } from "@hisptz/dhis2-utils";
|
|
3
|
+
import { BasePeriod } from "@hisptz/dhis2-utils";
|
|
3
4
|
import { CustomMapLayer } from "../components/MapLayer/interfaces";
|
|
4
5
|
import { MapOrgUnit } from "../interfaces";
|
|
5
|
-
import { BasePeriod } from "@hisptz/dhis2-utils";
|
|
6
6
|
export declare const MapOrgUnitContext: import("react").Context<{
|
|
7
7
|
orgUnitSelection: OrgUnitSelection;
|
|
8
8
|
orgUnits?: MapOrgUnit[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hisptz/dhis2-analytics",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "A collection of reusable react components for visualizing analytics data from DHIS2",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"scripts": {
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"lodash": "^4",
|
|
75
75
|
"react-hook-form": "^7"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "2ff4382b1fcdd413c878a6a2e2042cd05a8b5efb"
|
|
78
78
|
}
|