@reltio/components 1.4.1442 → 1.4.1443
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.
|
@@ -29,7 +29,7 @@ exports.getActivityType = getActivityType;
|
|
|
29
29
|
var isValidActivityType = function (type) { return (0, ramda_1.pipe)(ramda_1.values, (0, ramda_1.includes)(type))(types_1.ActivityTypes); };
|
|
30
30
|
exports.isValidActivityType = isValidActivityType;
|
|
31
31
|
var removeIgnoredItems = function (activity) {
|
|
32
|
-
var
|
|
32
|
+
var _a = activity.items, items = _a === void 0 ? [] : _a, label = activity.label;
|
|
33
33
|
var isImplementedItem = function (item) { return (0, exports.isValidActivityType)(getItemDataType(item) || label); };
|
|
34
34
|
var filteredItems = (0, ramda_1.filter)(isImplementedItem)(items);
|
|
35
35
|
if (items.length !== filteredItems.length) {
|
|
@@ -70,8 +70,10 @@ var MapChart = function (_a) {
|
|
|
70
70
|
var geography = (0, useGeography_1.default)(geoUrl || USA_MAP);
|
|
71
71
|
var projection = geoUrl ? options.projection : 'geoAlbersUsa';
|
|
72
72
|
var projectionFunc = (0, react_1.useMemo)(function () {
|
|
73
|
+
var _a;
|
|
74
|
+
var geoFunc = (_a = (projection && d3Geo[projection])) !== null && _a !== void 0 ? _a : d3Geo['geoEqualEarth'];
|
|
73
75
|
return geography
|
|
74
|
-
?
|
|
76
|
+
? geoFunc().fitSize([mapWidth, height], (0, topojson_client_1.feature)(geography, geography.objects[Object.keys(geography.objects)[0]]))
|
|
75
77
|
: undefined;
|
|
76
78
|
}, [geography, mapWidth, height, projection]);
|
|
77
79
|
var _d = (0, useTooltipState_1.default)(), tooltipState = _d.tooltipState, showTooltip = _d.showTooltip, hideTooltip = _d.hideTooltip;
|
|
@@ -21,7 +21,7 @@ export var getActivityType = function (activity) {
|
|
|
21
21
|
};
|
|
22
22
|
export var isValidActivityType = function (type) { return pipe(values, includes(type))(ActivityTypes); };
|
|
23
23
|
export var removeIgnoredItems = function (activity) {
|
|
24
|
-
var
|
|
24
|
+
var _a = activity.items, items = _a === void 0 ? [] : _a, label = activity.label;
|
|
25
25
|
var isImplementedItem = function (item) { return isValidActivityType(getItemDataType(item) || label); };
|
|
26
26
|
var filteredItems = filter(isImplementedItem)(items);
|
|
27
27
|
if (items.length !== filteredItems.length) {
|
|
@@ -41,8 +41,10 @@ export var MapChart = function (_a) {
|
|
|
41
41
|
var geography = useGeography(geoUrl || USA_MAP);
|
|
42
42
|
var projection = geoUrl ? options.projection : 'geoAlbersUsa';
|
|
43
43
|
var projectionFunc = useMemo(function () {
|
|
44
|
+
var _a;
|
|
45
|
+
var geoFunc = (_a = (projection && d3Geo[projection])) !== null && _a !== void 0 ? _a : d3Geo['geoEqualEarth'];
|
|
44
46
|
return geography
|
|
45
|
-
?
|
|
47
|
+
? geoFunc().fitSize([mapWidth, height], feature(geography, geography.objects[Object.keys(geography.objects)[0]]))
|
|
46
48
|
: undefined;
|
|
47
49
|
}, [geography, mapWidth, height, projection]);
|
|
48
50
|
var _d = useTooltipState(), tooltipState = _d.tooltipState, showTooltip = _d.showTooltip, hideTooltip = _d.hideTooltip;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1443",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@date-io/moment": "^1.3.5",
|
|
9
9
|
"@react-google-maps/api": "2.7.0",
|
|
10
|
-
"@reltio/mdm-module": "^1.4.
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-module": "^1.4.1443",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1443",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|