@sis-cc/dotstatsuite-visions 7.10.0 → 7.10.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.
@@ -94,21 +94,21 @@ var Section = function Section(_ref) {
94
94
  SideIcon: SideIcon,
95
95
  HTMLRenderer: HTMLRenderer
96
96
  }),
97
- R.map(function (sectionbody) {
97
+ R.addIndex(R.map)(function (sectionbody, rowIndex) {
98
98
  var _cx2;
99
99
 
100
- var rowId = sectionbody.key + '_' + sectionIndex;
100
+ var rowId = sectionbody.key + '_' + sectionIndex + '_' + rowIndex;
101
101
  var rowIds = R.pipe(R.map(function (index) {
102
102
  return sectionbody.key + '_' + sectionIndex + '_' + index;
103
103
  }), R.join(' '))(R.times(R.identity, R.length(R.prop('data', sectionbody))));
104
104
  return React.createElement(
105
105
  TableRow,
106
- { key: sectionbody.key },
106
+ { key: rowId },
107
107
  mapIndexed(function (cell, index) {
108
108
  var _cx;
109
109
 
110
110
  var flags = R.path(['value', 'flags'], cell);
111
- var id = rowId + '_' + index;
111
+ var id = rowIndex + '_' + rowId + '_' + index;
112
112
 
113
113
  // special space is used for hierarchy U+2007    
114
114
  var hierarchySpace = R.pipe(R.pathOr([], ['value', 'parents']), R.when(R.isNil, R.always([])), R.length,
@@ -136,21 +136,21 @@ var Section = function Section(_ref) {
136
136
  SideIcon: SideIcon,
137
137
  HTMLRenderer: HTMLRenderer
138
138
  }),
139
- R.map(function (sectionbody) {
139
+ R.addIndex(R.map)(function (sectionbody, rowIndex) {
140
140
  var _cx2;
141
141
 
142
- var rowId = sectionbody.key + '_' + sectionIndex;
142
+ var rowId = sectionbody.key + '_' + sectionIndex + '_' + rowIndex;
143
143
  var rowIds = R.pipe(R.map(function (index) {
144
144
  return sectionbody.key + '_' + sectionIndex + '_' + index;
145
145
  }), R.join(' '))(R.times(R.identity, R.length(R.prop('data', sectionbody))));
146
146
  return _react2.default.createElement(
147
147
  _TableRow2.default,
148
- { key: sectionbody.key },
148
+ { key: rowId },
149
149
  mapIndexed(function (cell, index) {
150
150
  var _cx;
151
151
 
152
152
  var flags = R.path(['value', 'flags'], cell);
153
- var id = rowId + '_' + index;
153
+ var id = rowIndex + '_' + rowId + '_' + index;
154
154
 
155
155
  // special space is used for hierarchy U+2007    
156
156
  var hierarchySpace = R.pipe(R.pathOr([], ['value', 'parents']), R.when(R.isNil, R.always([])), R.length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "7.10.0",
3
+ "version": "7.10.1",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",