@sis-cc/dotstatsuite-visions 11.2.0 → 11.4.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/es/TableLayout/TableLayout.js +2 -1
- package/es/VirtualizedTree/utils.js +4 -1
- package/lib/TableLayout/TableLayout.js +5 -1
- package/lib/VirtualizedTree/utils.js +4 -1
- package/package.json +1 -1
- package/umd/@sis-cc/dotstatsuite-visions.js +304 -300
- package/umd/@sis-cc/dotstatsuite-visions.min.js +8 -8
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +1 -1
|
@@ -12,6 +12,7 @@ import Reorder from '@material-ui/icons/Reorder';
|
|
|
12
12
|
import ViewQuilt from '@material-ui/icons/ViewQuiltOutlined';
|
|
13
13
|
import Undo from '@material-ui/icons/Undo';
|
|
14
14
|
import Done from '@material-ui/icons/Done';
|
|
15
|
+
import CheckBoxIcon from '@material-ui/icons/CheckBoxOutlineBlankOutlined';
|
|
15
16
|
import { makeStyles } from '@material-ui/core/styles';
|
|
16
17
|
import { DragDropContext } from '@hello-pangea/dnd';
|
|
17
18
|
import { withBlank } from '../utils';
|
|
@@ -327,7 +328,7 @@ var TableLayout = function TableLayout(_ref) {
|
|
|
327
328
|
'aria-label': R.prop('activationLabel', optionalItem),
|
|
328
329
|
color: 'primary',
|
|
329
330
|
onClick: isOptionalActivated ? deactivateOptionalItem : activateOptionalItem,
|
|
330
|
-
startIcon: React.createElement(Done, null)
|
|
331
|
+
startIcon: isOptionalActivated ? React.createElement(Done, null) : React.createElement(CheckBoxIcon, null)
|
|
331
332
|
},
|
|
332
333
|
React.createElement(
|
|
333
334
|
Typography,
|
|
@@ -152,7 +152,10 @@ export var getImposedItems = function getImposedItems(selectIds, indexedItems) {
|
|
|
152
152
|
return R.reduce(function (acc, item) {
|
|
153
153
|
var isSelected = isItemSelected(selectIds)(item);
|
|
154
154
|
if (!isSelected) {
|
|
155
|
-
var
|
|
155
|
+
var imposedIds = R.pipe(R.filter(function (i) {
|
|
156
|
+
return i.id === item.id;
|
|
157
|
+
}), R.map(R.propOr([], 'imposedIds')), R.unnest)(R.values(indexedItems));
|
|
158
|
+
var imposedItems = R.props(imposedIds, indexedItems);
|
|
156
159
|
return R.concat(acc, R.append(item, imposedItems));
|
|
157
160
|
}
|
|
158
161
|
return R.append(item, acc);
|
|
@@ -53,6 +53,10 @@ var _Done = require('@material-ui/icons/Done');
|
|
|
53
53
|
|
|
54
54
|
var _Done2 = _interopRequireDefault(_Done);
|
|
55
55
|
|
|
56
|
+
var _CheckBoxOutlineBlankOutlined = require('@material-ui/icons/CheckBoxOutlineBlankOutlined');
|
|
57
|
+
|
|
58
|
+
var _CheckBoxOutlineBlankOutlined2 = _interopRequireDefault(_CheckBoxOutlineBlankOutlined);
|
|
59
|
+
|
|
56
60
|
var _styles = require('@material-ui/core/styles');
|
|
57
61
|
|
|
58
62
|
var _dnd = require('@hello-pangea/dnd');
|
|
@@ -383,7 +387,7 @@ var TableLayout = function TableLayout(_ref) {
|
|
|
383
387
|
'aria-label': R.prop('activationLabel', optionalItem),
|
|
384
388
|
color: 'primary',
|
|
385
389
|
onClick: isOptionalActivated ? deactivateOptionalItem : activateOptionalItem,
|
|
386
|
-
startIcon: _react2.default.createElement(_Done2.default, null)
|
|
390
|
+
startIcon: isOptionalActivated ? _react2.default.createElement(_Done2.default, null) : _react2.default.createElement(_CheckBoxOutlineBlankOutlined2.default, null)
|
|
387
391
|
},
|
|
388
392
|
_react2.default.createElement(
|
|
389
393
|
_Typography2.default,
|
|
@@ -161,7 +161,10 @@ var getImposedItems = exports.getImposedItems = function getImposedItems(selectI
|
|
|
161
161
|
return R.reduce(function (acc, item) {
|
|
162
162
|
var isSelected = isItemSelected(selectIds)(item);
|
|
163
163
|
if (!isSelected) {
|
|
164
|
-
var
|
|
164
|
+
var imposedIds = R.pipe(R.filter(function (i) {
|
|
165
|
+
return i.id === item.id;
|
|
166
|
+
}), R.map(R.propOr([], 'imposedIds')), R.unnest)(R.values(indexedItems));
|
|
167
|
+
var imposedItems = R.props(imposedIds, indexedItems);
|
|
165
168
|
return R.concat(acc, R.append(item, imposedItems));
|
|
166
169
|
}
|
|
167
170
|
return R.append(item, acc);
|