@hisptz/dhis2-analytics 1.0.43 → 1.0.45
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/build/cjs/components/CircularProgressDashboard/index.js +15 -0
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +3 -2
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js +1 -9
- package/build/cjs/components/SingleValueContainer/index.js +16 -0
- package/build/es/components/CircularProgressDashboard/index.js +1 -0
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +2 -1
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js +1 -1
- package/build/es/components/SingleValueContainer/index.js +1 -0
- package/build/types/components/CircularProgressDashboard/index.d.ts +1 -0
- package/build/types/components/SingleValueContainer/index.d.ts +1 -0
- package/package.json +13 -7
- package/build/cjs/components/ChartAnalytics/ChartAnalytics.stories.js +0 -253
- package/build/cjs/components/ChartAnalytics/data/column-data.json +0 -210
- package/build/cjs/components/ChartAnalytics/data/complex-multi-series-data.json +0 -124
- package/build/cjs/components/ChartAnalytics/data/multi-series-data.json +0 -536
- package/build/cjs/components/ChartAnalytics/data/pie-data.json +0 -115
- package/build/cjs/components/ChartAnalytics/data/stacked-chart-data.json +0 -415
- package/build/cjs/components/CircularProgressDashboard/CircularProgressIndicator.stories.js +0 -45
- package/build/cjs/components/CustomPivotTable/CustomPivotTable.stories.js +0 -69
- package/build/cjs/components/Map/Map.stories.js +0 -352
- package/build/cjs/components/SingleValueContainer/SingleValueContainer.stories.js +0 -127
- package/build/cjs/components/Visualization/Visualization.stories.js +0 -138
- package/build/cjs/dataProviders/map.js +0 -31
- package/build/es/components/ChartAnalytics/ChartAnalytics.stories.js +0 -235
- package/build/es/components/ChartAnalytics/data/column-data.json +0 -210
- package/build/es/components/ChartAnalytics/data/complex-multi-series-data.json +0 -124
- package/build/es/components/ChartAnalytics/data/multi-series-data.json +0 -536
- package/build/es/components/ChartAnalytics/data/pie-data.json +0 -115
- package/build/es/components/ChartAnalytics/data/stacked-chart-data.json +0 -415
- package/build/es/components/CircularProgressDashboard/CircularProgressIndicator.stories.js +0 -34
- package/build/es/components/CustomPivotTable/CustomPivotTable.stories.js +0 -59
- package/build/es/components/Map/Map.stories.js +0 -334
- package/build/es/components/SingleValueContainer/SingleValueContainer.stories.js +0 -115
- package/build/es/components/Visualization/Visualization.stories.js +0 -129
- package/build/es/dataProviders/map.js +0 -24
- package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.d.ts +0 -1
package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js
CHANGED
|
@@ -10,15 +10,7 @@ var _api = _interopRequireDefault(require("./api"));
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
13
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
14
|
-
// // @ts-ignore
|
|
15
|
-
// if (import.meta.env.STORYBOOK_BUILD === "true") {
|
|
16
|
-
// return await import("@google/earthengine");
|
|
17
|
-
// }
|
|
18
|
-
// return await import("./api");
|
|
19
|
-
// }
|
|
20
|
-
//
|
|
21
|
-
// const EE = await importEEModule();
|
|
13
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
22
14
|
// @ts-ignore
|
|
23
15
|
const ee = _api.default;
|
|
24
16
|
// @ts-ignore
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
SingleValueContainer: true,
|
|
8
|
+
SingleValueItem: true
|
|
9
|
+
};
|
|
6
10
|
exports.SingleValueContainer = SingleValueContainer;
|
|
7
11
|
Object.defineProperty(exports, "SingleValueItem", {
|
|
8
12
|
enumerable: true,
|
|
@@ -15,6 +19,18 @@ var _ui = require("@dhis2/ui");
|
|
|
15
19
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
20
|
var _SingleValueItem = _interopRequireDefault(require("./components/SingleValueItem/SingleValueItem"));
|
|
17
21
|
var _SingleValueContainerModule = _interopRequireDefault(require("./styles/SingleValueContainer.module.css"));
|
|
22
|
+
var _props = require("./types/props");
|
|
23
|
+
Object.keys(_props).forEach(function (key) {
|
|
24
|
+
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
26
|
+
if (key in exports && exports[key] === _props[key]) return;
|
|
27
|
+
Object.defineProperty(exports, key, {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return _props[key];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
18
34
|
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); }
|
|
19
35
|
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; }
|
|
20
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { colors } from "@dhis2/ui";
|
|
2
2
|
import React, { useMemo } from "react";
|
|
3
3
|
import { CircularProgressbarWithChildren } from "react-circular-progressbar";
|
|
4
|
+
export * from "./types/props";
|
|
4
5
|
export function CircularProgressDashboard(_ref) {
|
|
5
6
|
var _strokeStyle$color, _textStyle$fontSize, _ref2, _textStyle$color;
|
|
6
7
|
let {
|