@sis-cc/dotstatsuite-components 13.0.0 → 13.0.1
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.
|
@@ -113,8 +113,15 @@ var dataTransformer = exports.dataTransformer = function dataTransformer(dataNew
|
|
|
113
113
|
});
|
|
114
114
|
}, attrObservations);
|
|
115
115
|
|
|
116
|
+
var datasetAttributes = R.map(function (attr) {
|
|
117
|
+
return (0, _extends3.default)({}, attr, {
|
|
118
|
+
name: getLocalisedProp('names', observation),
|
|
119
|
+
values: getValues(attr.values || [])
|
|
120
|
+
});
|
|
121
|
+
}, R.propOr([], 'dataSet', attributes));
|
|
122
|
+
|
|
116
123
|
var resAttributes = (0, _extends3.default)({}, attributes, {
|
|
117
|
-
observation: resAttrObservations
|
|
124
|
+
observation: R.concat(resAttrObservations, datasetAttributes)
|
|
118
125
|
});
|
|
119
126
|
|
|
120
127
|
//----------------------------------------------------------------------------------------Dimensions
|
package/package.json
CHANGED
|
@@ -102,9 +102,18 @@ export const dataTransformer = (dataNew, options = {}) => {
|
|
|
102
102
|
roles: !R.isNil(observation.role) ? R.head(observation.role) : null,
|
|
103
103
|
}), attrObservations);
|
|
104
104
|
|
|
105
|
+
const datasetAttributes = R.map(
|
|
106
|
+
(attr) => ({
|
|
107
|
+
...attr,
|
|
108
|
+
name: getLocalisedProp('names', observation),
|
|
109
|
+
values: getValues(attr.values || [])
|
|
110
|
+
}),
|
|
111
|
+
R.propOr([], 'dataSet', attributes)
|
|
112
|
+
)
|
|
113
|
+
|
|
105
114
|
const resAttributes = {
|
|
106
115
|
...attributes,
|
|
107
|
-
observation: resAttrObservations,
|
|
116
|
+
observation: R.concat(resAttrObservations, datasetAttributes)
|
|
108
117
|
};
|
|
109
118
|
|
|
110
119
|
//----------------------------------------------------------------------------------------Dimensions
|