@hisptz/dhis2-analytics 1.0.34 → 1.0.35
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/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js
CHANGED
|
@@ -6,22 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.EarthEngine = void 0;
|
|
7
7
|
var _utils = require("../utils");
|
|
8
8
|
var _lodash = require("lodash");
|
|
9
|
+
var _api = _interopRequireDefault(require("./api"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
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; }
|
|
10
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
11
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); }
|
|
12
|
-
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); }
|
|
13
|
-
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; }
|
|
14
|
-
async function importEEModule() {
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
if (import.meta.env.STORYBOOK_BUILD === "true") {
|
|
17
|
-
return await Promise.resolve().then(() => _interopRequireWildcard(require("@google/earthengine")));
|
|
18
|
-
}
|
|
19
|
-
return await Promise.resolve().then(() => _interopRequireWildcard(require("./api")));
|
|
20
|
-
}
|
|
21
|
-
const EE = await importEEModule();
|
|
22
|
-
// import EE from "./api"
|
|
23
14
|
// @ts-ignore
|
|
24
|
-
const ee =
|
|
15
|
+
const ee = _api.default;
|
|
25
16
|
// @ts-ignore
|
|
26
17
|
window.ee = ee;
|
|
27
18
|
const FEATURE_STYLE = {
|
package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js
CHANGED
|
@@ -3,15 +3,16 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
|
|
|
3
3
|
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); }
|
|
4
4
|
import { combineReducers, getFeatureCollectionProperties, getHistogramStatistics, getInfo, getScale, hasClasses } from "../utils";
|
|
5
5
|
import { find, head, isEmpty } from "lodash";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
//
|
|
6
|
+
|
|
7
|
+
// async function importEEModule(): Promise<any> {
|
|
8
|
+
// // @ts-ignore
|
|
9
|
+
// if (import.meta.env.STORYBOOK_BUILD === "true") {
|
|
10
|
+
// return await import("@google/earthengine")
|
|
11
|
+
// }
|
|
12
|
+
// return await import("./api")
|
|
13
|
+
// }
|
|
14
|
+
// const EE = await importEEModule();
|
|
15
|
+
import EE from "./api";
|
|
15
16
|
// @ts-ignore
|
|
16
17
|
const ee = EE;
|
|
17
18
|
// @ts-ignore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hisptz/dhis2-analytics",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
4
4
|
"description": "A collection of reusable react components for visualizing analytics data from DHIS2",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"scripts": {
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"lodash": "^4"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "a3a385f9d815a636b9b3175f672e6b2921c96f39"
|
|
81
81
|
}
|