@sis-cc/dotstatsuite-visions 10.21.1 → 10.22.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.
@@ -2,11 +2,11 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2
2
 
3
3
  function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
4
4
 
5
- import React, { useMemo, useState } from 'react';
5
+ import React, { useState } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import * as R from 'ramda';
8
8
  import cx from 'classnames';
9
- import { getEvolvedDisableAccessor, getHierarchicalId, getScopeGetters, isItemSelected } from '../VirtualizedTree/utils';
9
+ import { getEvolvedDisableAccessor, getHierarchicalId, getScopeGetters } from '../VirtualizedTree/utils';
10
10
  import IconButton from '@material-ui/core/Button';
11
11
  import Dialog from '@material-ui/core/Dialog';
12
12
  import DialogTitle from '@material-ui/core/DialogTitle';
@@ -47,10 +47,16 @@ var useStyles = makeStyles(function (theme) {
47
47
  },
48
48
  headerLabel: {
49
49
  fontSize: '16px',
50
- font: 'PT Sans Narrow',
50
+ fontFamily: 'PT Sans Narrow',
51
51
  fontWeight: '700',
52
52
  color: theme.palette.grey[700]
53
53
  },
54
+ selectionTitle: {
55
+ fontSize: '12px',
56
+ fontFamily: 'Helvetica Neue',
57
+ fontWeight: '500',
58
+ color: theme.palette.grey['A700']
59
+ },
54
60
  closeButton: {
55
61
  color: 'grey !important',
56
62
  padding: 0
@@ -112,9 +118,10 @@ var useStyles = makeStyles(function (theme) {
112
118
  alignItems: 'center',
113
119
  '& p': {
114
120
  fontSize: '12px',
115
- font: 'Helvetica Neue',
116
- color: '#0549AB',
117
- fontWeight: '500px'
121
+ fontFamily: 'Helvetica Neue',
122
+ color: theme.palette.primary.main,
123
+ fontWeight: '500',
124
+ lineHeight: 1.43
118
125
  },
119
126
  '& img': {
120
127
  width: 21,
@@ -124,7 +131,9 @@ var useStyles = makeStyles(function (theme) {
124
131
  hint: {
125
132
  display: 'flex',
126
133
  flexDirection: 'row',
127
- alignItems: 'center'
134
+ alignItems: 'center',
135
+ marginRight: 7,
136
+ color: theme.palette.primary.main
128
137
  },
129
138
  divider: {
130
139
  backgroundColor: theme.palette.primary.light
@@ -252,32 +261,32 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
252
261
  setSelection({});
253
262
  setSpotlight({ term: '' });
254
263
  };
255
-
256
- var _useMemo = useMemo(function () {
257
- var refinedItems = R.map(function (item) {
258
- return _extends({}, item, {
259
- isSelected: isItemSelected(selectIds)(item),
260
- isGreyed: R.is(Function, isDisabled) ? isDisabled(item) : false,
261
- isDisabled: R.is(Function, _disableAccessor) ? _disableAccessor(item, selectIds) : false
262
- });
263
- }, selectionItems);
264
- var indexedItemsById = R.indexBy(getHierarchicalId, refinedItems);
265
- var groupedItemsByParentId = R.groupBy(R.propOr('#ROOT', 'parentId'), refinedItems);
266
- return { indexedItemsById: indexedItemsById, groupedItemsByParentId: groupedItemsByParentId };
267
- }, [selectionItems, selectIds]),
268
- indexedItemsById = _useMemo.indexedItemsById,
269
- groupedItemsByParentId = _useMemo.groupedItemsByParentId;
270
-
271
264
  var rejectonlyDisabledItems = function rejectonlyDisabledItems(item) {
272
265
  return R.prop('isDisabled')(item) && !R.has('isForced')(item);
273
266
  };
267
+ var getSelectedItems = function getSelectedItems(item) {
268
+ return R.prop('isSelected')(item);
269
+ };
270
+
274
271
  var selectAll = function selectAll() {
275
- var ids = R.pluck('id', R.reject(rejectonlyDisabledItems, R.values(indexedItemsById)));
272
+ var ids = R.pluck('id', R.reject(getSelectedItems, R.reject(rejectonlyDisabledItems, items)));
276
273
  var nextSelection = R.reduce(function (acc, id) {
277
274
  return R.has(id, acc) ? acc : R.assoc(id, id, acc);
278
275
  }, selection, ids);
276
+ setSelectionMode('selectAll');
277
+ setSelection(nextSelection);
278
+ };
279
+
280
+ var deselectAll = function deselectAll() {
281
+ var itemIds = R.pipe(R.filter(getSelectedItems), R.pluck('id'))(items);
282
+ var ids = R.difference(itemIds, selection);
283
+ var nextSelection = R.reduce(function (acc, id) {
284
+ return R.has(id, acc) ? acc : R.assoc(id, id, acc);
285
+ }, {}, ids);
286
+ setSelectionMode('deselectAll');
279
287
  setSelection(nextSelection);
280
288
  };
289
+
281
290
  return React.createElement(
282
291
  Dialog,
283
292
  {
@@ -285,7 +294,8 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
285
294
  PaperComponent: PaperComponent,
286
295
  'aria-labelledby': 'draggable-dialog-title',
287
296
  onClose: onClose,
288
- ref: measureRef
297
+ ref: measureRef,
298
+ 'aria-modal': true
289
299
  },
290
300
  React.createElement(
291
301
  DialogTitle,
@@ -295,7 +305,7 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
295
305
  { className: classes.header },
296
306
  React.createElement(
297
307
  'div',
298
- { className: classes.headerLabel },
308
+ { className: classes.headerLabel, 'aria-label': title },
299
309
  '\xA0',
300
310
  title
301
311
  ),
@@ -313,13 +323,19 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
313
323
  Typography,
314
324
  { variant: 'body2' },
315
325
  R.prop('hint', labels)
316
- )
326
+ ),
327
+ 'aria-label': R.prop('hint', labels),
328
+ tabIndex: 0
317
329
  },
318
330
  React.createElement(HintIcon, null)
319
331
  ),
320
332
  React.createElement(
321
333
  Typography,
322
- { variant: 'body2' },
334
+ {
335
+ className: classes.selectionTitle,
336
+ 'aria-label': R.prop('selectionMode', labels),
337
+ tabIndex: 0
338
+ },
323
339
  R.prop('selectionMode', labels)
324
340
  )
325
341
  ),
@@ -332,7 +348,8 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
332
348
  {
333
349
  key: value,
334
350
  classes: { tooltip: classes.tooltip },
335
- title: React.createElement('img', { style: { width: '72px', height: '90px' }, src: img, alt: value })
351
+ title: React.createElement('img', { style: { width: '72px', height: '90px' }, src: img, alt: value }),
352
+ tabIndex: -1
336
353
  },
337
354
  React.createElement(
338
355
  Button,
@@ -343,14 +360,15 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
343
360
  setSelectionMode(value);
344
361
  },
345
362
  'aria-pressed': value === selectionMode,
346
- 'aria-label': label
363
+ 'aria-label': label,
364
+ tabIndex: 0
347
365
  },
348
366
  React.createElement(
349
367
  Paper,
350
368
  { className: classes.selectModeItem, key: value },
351
369
  React.createElement(
352
370
  Typography,
353
- { variant: 'body2' },
371
+ null,
354
372
  label
355
373
  ),
356
374
  !R.isNil(img) && R.is(String, img) && React.createElement('img', { src: img, alt: value })
@@ -360,7 +378,11 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
360
378
  }, selectionOptions),
361
379
  onClose && React.createElement(
362
380
  IconButton,
363
- { className: classes.closeButton, onClick: onClose },
381
+ {
382
+ className: classes.closeButton,
383
+ onClick: onClose,
384
+ 'aria-label': R.prop('cancel', labels)
385
+ },
364
386
  React.createElement(CloseIcon, null)
365
387
  )
366
388
  )
@@ -407,9 +429,7 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
407
429
  ),
408
430
  React.createElement(
409
431
  Button,
410
- { style: { marginLeft: 10 }, onClick: function onClick() {
411
- return setSelection({});
412
- }, color: 'primary' },
432
+ { style: { marginLeft: 10 }, onClick: deselectAll, color: 'primary' },
413
433
  R.prop('deselectAll', labels)
414
434
  )
415
435
  ),
@@ -430,9 +450,7 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
430
450
  selectIds: selectIds,
431
451
  treeHeight: listHeight,
432
452
  scopeGetter: scopeGetter,
433
- expandedIds: expandedIds,
434
- indexedItemsById: indexedItemsById,
435
- groupedItemsByParentId: groupedItemsByParentId
453
+ expandedIds: expandedIds
436
454
  }))
437
455
  )
438
456
  )
@@ -116,11 +116,15 @@ var CollapsibleTree = function CollapsibleTree(_ref) {
116
116
  buttonAllOpenLabel
117
117
  ),
118
118
  React.createElement(
119
- IconButton,
120
- { color: 'primary', onClick: onClick },
121
- icon
122
- ),
123
- children
119
+ 'div',
120
+ null,
121
+ children,
122
+ React.createElement(
123
+ IconButton,
124
+ { color: 'primary', onClick: onClick },
125
+ icon
126
+ )
127
+ )
124
128
  ),
125
129
  R.map(function (_ref3) {
126
130
  var id = _ref3.id,
package/es/Mode/Mode.js CHANGED
@@ -97,7 +97,7 @@ var Mode = function Mode(_ref2) {
97
97
  variant: 'outlined',
98
98
  color: 'primary',
99
99
  size: isSmall ? 'small' : 'medium',
100
- inputProps: { ' aria-labelledby': label, tabIndex: '0', id: label + '_' + idx }
100
+ inputProps: { tabIndex: '0', id: label + '_' + idx }
101
101
  }),
102
102
  label: React.createElement(
103
103
  'span',
@@ -39,7 +39,7 @@ var useStyles = makeStyles(function (theme) {
39
39
  rightAlign: {
40
40
  // only for rtl layout !
41
41
  // changed by right in rtl mode
42
- textAlign: 'left'
42
+ textAlign: 'right'
43
43
  }
44
44
  };
45
45
  });
@@ -81,8 +81,14 @@ var Cell = function Cell(_ref) {
81
81
  },
82
82
  className: classes.link
83
83
  },
84
- R.is(Function, HTMLRenderer) ? React.createElement(HTMLRenderer, { html: value, style: { float: textAlign } }) : value
85
- ) : R.is(Function, HTMLRenderer) ? React.createElement(HTMLRenderer, { html: value, style: { float: textAlign } }) : value;
84
+ R.is(Function, HTMLRenderer) ? React.createElement(HTMLRenderer, {
85
+ html: value,
86
+ style: { float: isRtl && R.isNil(textAlign) ? 'left' : textAlign }
87
+ }) : value
88
+ ) : R.is(Function, HTMLRenderer) ? React.createElement(HTMLRenderer, {
89
+ html: value,
90
+ style: { float: isRtl && R.isNil(textAlign) ? 'left' : textAlign }
91
+ }) : value;
86
92
 
87
93
  return React.createElement(
88
94
  TableCell,
@@ -44,14 +44,16 @@ export var getHasChildrenOnLevel = function getHasChildrenOnLevel(groupedItems)
44
44
  var VirtualizedTree = function VirtualizedTree(props) {
45
45
  var accessibility = props.accessibility,
46
46
  changeSelection = props.changeSelection,
47
- _props$disableAccesso = props.disableAccessor,
48
- disableAccessor = _props$disableAccesso === undefined ? R.always(false) : _props$disableAccesso,
49
- _props$isGreyed = props.isGreyed,
50
- isGreyed = _props$isGreyed === undefined ? R.always(false) : _props$isGreyed,
51
47
  HTMLRenderer = props.HTMLRenderer,
52
48
  items = props.items,
49
+ selectIds = props.selectIds,
50
+ setSelectIds = props.setSelectIds,
53
51
  labelRenderer = props.labelRenderer,
54
52
  labels = props.labels,
53
+ _props$disableAccesso = props.disableAccessor,
54
+ disableAccessor = _props$disableAccesso === undefined ? R.always(false) : _props$disableAccesso,
55
+ _props$isGreyed = props.isGreyed,
56
+ isGreyed = _props$isGreyed === undefined ? R.always(false) : _props$isGreyed,
55
57
  expandedIds = props.expandedIds,
56
58
  expand = props.expand,
57
59
  collapse = props.collapse,
@@ -74,17 +76,13 @@ var VirtualizedTree = function VirtualizedTree(props) {
74
76
  shiftIndexes = _useState2[0],
75
77
  setShiftIndexes = _useState2[1];
76
78
 
77
- var _useState3 = useState({}),
78
- selectIds = _useState3[0],
79
- setSelectIds = _useState3[1];
80
-
81
- var _useState4 = useState(false),
82
- isMouseDown = _useState4[0],
83
- setIsMouseDown = _useState4[1];
79
+ var _useState3 = useState(false),
80
+ isMouseDown = _useState3[0],
81
+ setIsMouseDown = _useState3[1];
84
82
 
85
- var _useState5 = useState(null),
86
- lastItemId = _useState5[0],
87
- setLastItemId = _useState5[1];
83
+ var _useState4 = useState(null),
84
+ lastItemId = _useState4[0],
85
+ setLastItemId = _useState4[1];
88
86
 
89
87
  var _useMemo = useMemo(function () {
90
88
  var refinedItems = R.map(function (item) {
@@ -340,6 +338,8 @@ var VirtualizedTree = function VirtualizedTree(props) {
340
338
  };
341
339
 
342
340
  VirtualizedTree.propTypes = process.env.NODE_ENV !== "production" ? {
341
+ selectIds: PropTypes.object,
342
+ setSelectIds: PropTypes.func,
343
343
  accessibility: PropTypes.bool,
344
344
  changeSelection: PropTypes.func,
345
345
  disableAccessor: PropTypes.func,
@@ -117,10 +117,16 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
117
117
  },
118
118
  headerLabel: {
119
119
  fontSize: '16px',
120
- font: 'PT Sans Narrow',
120
+ fontFamily: 'PT Sans Narrow',
121
121
  fontWeight: '700',
122
122
  color: theme.palette.grey[700]
123
123
  },
124
+ selectionTitle: {
125
+ fontSize: '12px',
126
+ fontFamily: 'Helvetica Neue',
127
+ fontWeight: '500',
128
+ color: theme.palette.grey['A700']
129
+ },
124
130
  closeButton: {
125
131
  color: 'grey !important',
126
132
  padding: 0
@@ -182,9 +188,10 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
182
188
  alignItems: 'center',
183
189
  '& p': {
184
190
  fontSize: '12px',
185
- font: 'Helvetica Neue',
186
- color: '#0549AB',
187
- fontWeight: '500px'
191
+ fontFamily: 'Helvetica Neue',
192
+ color: theme.palette.primary.main,
193
+ fontWeight: '500',
194
+ lineHeight: 1.43
188
195
  },
189
196
  '& img': {
190
197
  width: 21,
@@ -194,7 +201,9 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
194
201
  hint: {
195
202
  display: 'flex',
196
203
  flexDirection: 'row',
197
- alignItems: 'center'
204
+ alignItems: 'center',
205
+ marginRight: 7,
206
+ color: theme.palette.primary.main
198
207
  },
199
208
  divider: {
200
209
  backgroundColor: theme.palette.primary.light
@@ -322,32 +331,32 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
322
331
  setSelection({});
323
332
  setSpotlight({ term: '' });
324
333
  };
325
-
326
- var _useMemo = (0, _react.useMemo)(function () {
327
- var refinedItems = R.map(function (item) {
328
- return _extends({}, item, {
329
- isSelected: (0, _utils.isItemSelected)(selectIds)(item),
330
- isGreyed: R.is(Function, isDisabled) ? isDisabled(item) : false,
331
- isDisabled: R.is(Function, _disableAccessor) ? _disableAccessor(item, selectIds) : false
332
- });
333
- }, selectionItems);
334
- var indexedItemsById = R.indexBy(_utils.getHierarchicalId, refinedItems);
335
- var groupedItemsByParentId = R.groupBy(R.propOr('#ROOT', 'parentId'), refinedItems);
336
- return { indexedItemsById: indexedItemsById, groupedItemsByParentId: groupedItemsByParentId };
337
- }, [selectionItems, selectIds]),
338
- indexedItemsById = _useMemo.indexedItemsById,
339
- groupedItemsByParentId = _useMemo.groupedItemsByParentId;
340
-
341
334
  var rejectonlyDisabledItems = function rejectonlyDisabledItems(item) {
342
335
  return R.prop('isDisabled')(item) && !R.has('isForced')(item);
343
336
  };
337
+ var getSelectedItems = function getSelectedItems(item) {
338
+ return R.prop('isSelected')(item);
339
+ };
340
+
344
341
  var selectAll = function selectAll() {
345
- var ids = R.pluck('id', R.reject(rejectonlyDisabledItems, R.values(indexedItemsById)));
342
+ var ids = R.pluck('id', R.reject(getSelectedItems, R.reject(rejectonlyDisabledItems, items)));
346
343
  var nextSelection = R.reduce(function (acc, id) {
347
344
  return R.has(id, acc) ? acc : R.assoc(id, id, acc);
348
345
  }, selection, ids);
346
+ setSelectionMode('selectAll');
347
+ setSelection(nextSelection);
348
+ };
349
+
350
+ var deselectAll = function deselectAll() {
351
+ var itemIds = R.pipe(R.filter(getSelectedItems), R.pluck('id'))(items);
352
+ var ids = R.difference(itemIds, selection);
353
+ var nextSelection = R.reduce(function (acc, id) {
354
+ return R.has(id, acc) ? acc : R.assoc(id, id, acc);
355
+ }, {}, ids);
356
+ setSelectionMode('deselectAll');
349
357
  setSelection(nextSelection);
350
358
  };
359
+
351
360
  return _react2.default.createElement(
352
361
  _Dialog2.default,
353
362
  {
@@ -355,7 +364,8 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
355
364
  PaperComponent: PaperComponent,
356
365
  'aria-labelledby': 'draggable-dialog-title',
357
366
  onClose: onClose,
358
- ref: measureRef
367
+ ref: measureRef,
368
+ 'aria-modal': true
359
369
  },
360
370
  _react2.default.createElement(
361
371
  _DialogTitle2.default,
@@ -365,7 +375,7 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
365
375
  { className: classes.header },
366
376
  _react2.default.createElement(
367
377
  'div',
368
- { className: classes.headerLabel },
378
+ { className: classes.headerLabel, 'aria-label': title },
369
379
  '\xA0',
370
380
  title
371
381
  ),
@@ -383,13 +393,19 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
383
393
  _Typography2.default,
384
394
  { variant: 'body2' },
385
395
  R.prop('hint', labels)
386
- )
396
+ ),
397
+ 'aria-label': R.prop('hint', labels),
398
+ tabIndex: 0
387
399
  },
388
400
  _react2.default.createElement(_EmojiObjects2.default, null)
389
401
  ),
390
402
  _react2.default.createElement(
391
403
  _Typography2.default,
392
- { variant: 'body2' },
404
+ {
405
+ className: classes.selectionTitle,
406
+ 'aria-label': R.prop('selectionMode', labels),
407
+ tabIndex: 0
408
+ },
393
409
  R.prop('selectionMode', labels)
394
410
  )
395
411
  ),
@@ -402,7 +418,8 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
402
418
  {
403
419
  key: value,
404
420
  classes: { tooltip: classes.tooltip },
405
- title: _react2.default.createElement('img', { style: { width: '72px', height: '90px' }, src: img, alt: value })
421
+ title: _react2.default.createElement('img', { style: { width: '72px', height: '90px' }, src: img, alt: value }),
422
+ tabIndex: -1
406
423
  },
407
424
  _react2.default.createElement(
408
425
  _.Button,
@@ -413,14 +430,15 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
413
430
  setSelectionMode(value);
414
431
  },
415
432
  'aria-pressed': value === selectionMode,
416
- 'aria-label': label
433
+ 'aria-label': label,
434
+ tabIndex: 0
417
435
  },
418
436
  _react2.default.createElement(
419
437
  _Paper2.default,
420
438
  { className: classes.selectModeItem, key: value },
421
439
  _react2.default.createElement(
422
440
  _Typography2.default,
423
- { variant: 'body2' },
441
+ null,
424
442
  label
425
443
  ),
426
444
  !R.isNil(img) && R.is(String, img) && _react2.default.createElement('img', { src: img, alt: value })
@@ -430,7 +448,11 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
430
448
  }, selectionOptions),
431
449
  onClose && _react2.default.createElement(
432
450
  _Button2.default,
433
- { className: classes.closeButton, onClick: onClose },
451
+ {
452
+ className: classes.closeButton,
453
+ onClick: onClose,
454
+ 'aria-label': R.prop('cancel', labels)
455
+ },
434
456
  _react2.default.createElement(_Close2.default, null)
435
457
  )
436
458
  )
@@ -477,9 +499,7 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
477
499
  ),
478
500
  _react2.default.createElement(
479
501
  _.Button,
480
- { style: { marginLeft: 10 }, onClick: function onClick() {
481
- return setSelection({});
482
- }, color: 'primary' },
502
+ { style: { marginLeft: 10 }, onClick: deselectAll, color: 'primary' },
483
503
  R.prop('deselectAll', labels)
484
504
  )
485
505
  ),
@@ -500,9 +520,7 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
500
520
  selectIds: selectIds,
501
521
  treeHeight: listHeight,
502
522
  scopeGetter: scopeGetter,
503
- expandedIds: expandedIds,
504
- indexedItemsById: indexedItemsById,
505
- groupedItemsByParentId: groupedItemsByParentId
523
+ expandedIds: expandedIds
506
524
  }))
507
525
  )
508
526
  )
@@ -166,11 +166,15 @@ var CollapsibleTree = function CollapsibleTree(_ref) {
166
166
  buttonAllOpenLabel
167
167
  ),
168
168
  _react2.default.createElement(
169
- _IconButton2.default,
170
- { color: 'primary', onClick: onClick },
171
- icon
172
- ),
173
- children
169
+ 'div',
170
+ null,
171
+ children,
172
+ _react2.default.createElement(
173
+ _IconButton2.default,
174
+ { color: 'primary', onClick: onClick },
175
+ icon
176
+ )
177
+ )
174
178
  ),
175
179
  R.map(function (_ref3) {
176
180
  var id = _ref3.id,
package/lib/Mode/Mode.js CHANGED
@@ -127,7 +127,7 @@ var Mode = function Mode(_ref2) {
127
127
  variant: 'outlined',
128
128
  color: 'primary',
129
129
  size: isSmall ? 'small' : 'medium',
130
- inputProps: { ' aria-labelledby': label, tabIndex: '0', id: label + '_' + idx }
130
+ inputProps: { tabIndex: '0', id: label + '_' + idx }
131
131
  }),
132
132
  label: _react2.default.createElement(
133
133
  'span',
@@ -69,7 +69,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
69
69
  rightAlign: {
70
70
  // only for rtl layout !
71
71
  // changed by right in rtl mode
72
- textAlign: 'left'
72
+ textAlign: 'right'
73
73
  }
74
74
  };
75
75
  });
@@ -111,8 +111,14 @@ var Cell = function Cell(_ref) {
111
111
  },
112
112
  className: classes.link
113
113
  },
114
- R.is(Function, HTMLRenderer) ? _react2.default.createElement(HTMLRenderer, { html: value, style: { float: textAlign } }) : value
115
- ) : R.is(Function, HTMLRenderer) ? _react2.default.createElement(HTMLRenderer, { html: value, style: { float: textAlign } }) : value;
114
+ R.is(Function, HTMLRenderer) ? _react2.default.createElement(HTMLRenderer, {
115
+ html: value,
116
+ style: { float: isRtl && R.isNil(textAlign) ? 'left' : textAlign }
117
+ }) : value
118
+ ) : R.is(Function, HTMLRenderer) ? _react2.default.createElement(HTMLRenderer, {
119
+ html: value,
120
+ style: { float: isRtl && R.isNil(textAlign) ? 'left' : textAlign }
121
+ }) : value;
116
122
 
117
123
  return _react2.default.createElement(
118
124
  _TableCell2.default,
@@ -80,14 +80,16 @@ var getHasChildrenOnLevel = exports.getHasChildrenOnLevel = function getHasChild
80
80
  var VirtualizedTree = function VirtualizedTree(props) {
81
81
  var accessibility = props.accessibility,
82
82
  changeSelection = props.changeSelection,
83
- _props$disableAccesso = props.disableAccessor,
84
- disableAccessor = _props$disableAccesso === undefined ? R.always(false) : _props$disableAccesso,
85
- _props$isGreyed = props.isGreyed,
86
- isGreyed = _props$isGreyed === undefined ? R.always(false) : _props$isGreyed,
87
83
  HTMLRenderer = props.HTMLRenderer,
88
84
  items = props.items,
85
+ selectIds = props.selectIds,
86
+ setSelectIds = props.setSelectIds,
89
87
  labelRenderer = props.labelRenderer,
90
88
  labels = props.labels,
89
+ _props$disableAccesso = props.disableAccessor,
90
+ disableAccessor = _props$disableAccesso === undefined ? R.always(false) : _props$disableAccesso,
91
+ _props$isGreyed = props.isGreyed,
92
+ isGreyed = _props$isGreyed === undefined ? R.always(false) : _props$isGreyed,
91
93
  expandedIds = props.expandedIds,
92
94
  expand = props.expand,
93
95
  collapse = props.collapse,
@@ -110,17 +112,13 @@ var VirtualizedTree = function VirtualizedTree(props) {
110
112
  shiftIndexes = _useState2[0],
111
113
  setShiftIndexes = _useState2[1];
112
114
 
113
- var _useState3 = (0, _react.useState)({}),
114
- selectIds = _useState3[0],
115
- setSelectIds = _useState3[1];
116
-
117
- var _useState4 = (0, _react.useState)(false),
118
- isMouseDown = _useState4[0],
119
- setIsMouseDown = _useState4[1];
115
+ var _useState3 = (0, _react.useState)(false),
116
+ isMouseDown = _useState3[0],
117
+ setIsMouseDown = _useState3[1];
120
118
 
121
- var _useState5 = (0, _react.useState)(null),
122
- lastItemId = _useState5[0],
123
- setLastItemId = _useState5[1];
119
+ var _useState4 = (0, _react.useState)(null),
120
+ lastItemId = _useState4[0],
121
+ setLastItemId = _useState4[1];
124
122
 
125
123
  var _useMemo = (0, _react.useMemo)(function () {
126
124
  var refinedItems = R.map(function (item) {
@@ -376,6 +374,8 @@ var VirtualizedTree = function VirtualizedTree(props) {
376
374
  };
377
375
 
378
376
  VirtualizedTree.propTypes = process.env.NODE_ENV !== "production" ? {
377
+ selectIds: _propTypes2.default.object,
378
+ setSelectIds: _propTypes2.default.func,
379
379
  accessibility: _propTypes2.default.bool,
380
380
  changeSelection: _propTypes2.default.func,
381
381
  disableAccessor: _propTypes2.default.func,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "10.21.1",
3
+ "version": "10.22.0",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",