@sis-cc/dotstatsuite-components 17.16.2 → 17.18.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.
|
@@ -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;
|
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.18.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;
|