@sis-cc/dotstatsuite-components 17.16.0 → 17.17.0
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/LICENSE
CHANGED
|
@@ -34,7 +34,7 @@ var dimensionValueDisplay = exports.dimensionValueDisplay = function dimensionVa
|
|
|
34
34
|
var name = (0, _get3.default)(dimensionValue, accessors.name || 'name', '');
|
|
35
35
|
// a non-coded component (dim | attr) has no name, names nor label
|
|
36
36
|
// the only valid thing to display is the id
|
|
37
|
-
if (dimensionValue
|
|
37
|
+
if ((0, _get3.default)(dimensionValue, 'isNonCoded', false)) return id;
|
|
38
38
|
switch (display) {
|
|
39
39
|
case 'label':
|
|
40
40
|
return (0, _isEmpty3.default)(name) ? '[' + id + ']' : name;
|
|
@@ -33,7 +33,7 @@ var getValueData = function getValueData(index, dimension, parentsIndexes) {
|
|
|
33
33
|
var missingParents = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
34
34
|
return {
|
|
35
35
|
dimension: R.pick(['id', 'name', '__index'], dimension),
|
|
36
|
-
value: (0, _extends3.default)({}, R.pipe(R.pathOr({}, ['values', index]), R.pick(['id', 'name']))(dimension), {
|
|
36
|
+
value: (0, _extends3.default)({}, R.pipe(R.pathOr({}, ['values', index]), R.pick(['id', 'name', 'isNonCoded']))(dimension), {
|
|
37
37
|
parents: parentsIndexes,
|
|
38
38
|
missingParents: missingParents
|
|
39
39
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sis-cc/dotstatsuite-components",
|
|
3
3
|
"description": "Set components based on React.",
|
|
4
|
-
"version": "17.
|
|
4
|
+
"version": "17.17.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "OECD",
|
|
7
7
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@react-hook/size": "^2.1.1",
|
|
27
|
-
"@sis-cc/dotstatsuite-d3-charts": "^8.
|
|
27
|
+
"@sis-cc/dotstatsuite-d3-charts": "^8.2.0",
|
|
28
28
|
"date-fns": "^1.30.1",
|
|
29
29
|
"lodash": "^4.17.2",
|
|
30
30
|
"lodash.compose": "^2.4.1",
|
|
@@ -7,7 +7,7 @@ export const dimensionValueDisplay =
|
|
|
7
7
|
const name = get(dimensionValue, accessors.name || 'name', '');
|
|
8
8
|
// a non-coded component (dim | attr) has no name, names nor label
|
|
9
9
|
// the only valid thing to display is the id
|
|
10
|
-
if (dimensionValue
|
|
10
|
+
if (get(dimensionValue, 'isNonCoded', false)) return id;
|
|
11
11
|
switch (display) {
|
|
12
12
|
case 'label':
|
|
13
13
|
return isEmpty(name) ? `[${id}]` : name;
|
|
@@ -5,7 +5,7 @@ import { getLayoutCoordinatesValidator } from '../utils';
|
|
|
5
5
|
const getValueData = (index, dimension, parentsIndexes, missingParents = []) => ({
|
|
6
6
|
dimension: R.pick(['id', 'name', '__index'], dimension),
|
|
7
7
|
value: {
|
|
8
|
-
...R.pipe(R.pathOr({}, ['values', index]), R.pick(['id', 'name']))(dimension),
|
|
8
|
+
...R.pipe(R.pathOr({}, ['values', index]), R.pick(['id', 'name', 'isNonCoded']))(dimension),
|
|
9
9
|
parents: parentsIndexes,
|
|
10
10
|
missingParents
|
|
11
11
|
}
|