@sis-cc/dotstatsuite-visions 7.14.0 → 7.14.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.
|
@@ -175,7 +175,7 @@ export var getItemsIds = R.curry(function (disableAccessor, _ref7, items) {
|
|
|
175
175
|
|
|
176
176
|
return R.reduce(function (acc, item) {
|
|
177
177
|
if (disableAccessor(item)) return acc;
|
|
178
|
-
if (R.
|
|
178
|
+
if (!R.prop('isSelected', item) === isSelected) return acc;
|
|
179
179
|
return R.append(R.prop('id', item), acc);
|
|
180
180
|
}, [])(items);
|
|
181
181
|
});
|
|
@@ -382,7 +382,8 @@ export var withScopeList = function withScopeList(Component) {
|
|
|
382
382
|
}
|
|
383
383
|
if (R.prop('isUp')(mouseAction) && isMousePreSelection) {
|
|
384
384
|
var items = R.pipe(getPropByIndex(R.identity), R.reject(disableAccessor))(getRangeIndexes(mouseSelection), list);
|
|
385
|
-
|
|
385
|
+
var isFirstElementSelected = !!R.prop('isSelected', R.head(items));
|
|
386
|
+
_this.changeMutliSelection(id)(getItemsIds(disableAccessor)({ isSelected: isFirstElementSelected })(items))(e);
|
|
386
387
|
return _this.setState({
|
|
387
388
|
mouseSelection: [],
|
|
388
389
|
isMousePreSelection: false,
|
|
@@ -190,7 +190,7 @@ var getItemsIds = exports.getItemsIds = R.curry(function (disableAccessor, _ref7
|
|
|
190
190
|
|
|
191
191
|
return R.reduce(function (acc, item) {
|
|
192
192
|
if (disableAccessor(item)) return acc;
|
|
193
|
-
if (R.
|
|
193
|
+
if (!R.prop('isSelected', item) === isSelected) return acc;
|
|
194
194
|
return R.append(R.prop('id', item), acc);
|
|
195
195
|
}, [])(items);
|
|
196
196
|
});
|
|
@@ -397,7 +397,8 @@ var withScopeList = exports.withScopeList = function withScopeList(Component) {
|
|
|
397
397
|
}
|
|
398
398
|
if (R.prop('isUp')(mouseAction) && isMousePreSelection) {
|
|
399
399
|
var items = R.pipe(getPropByIndex(R.identity), R.reject(disableAccessor))(getRangeIndexes(mouseSelection), list);
|
|
400
|
-
|
|
400
|
+
var isFirstElementSelected = !!R.prop('isSelected', R.head(items));
|
|
401
|
+
_this.changeMutliSelection(id)(getItemsIds(disableAccessor)({ isSelected: isFirstElementSelected })(items))(e);
|
|
401
402
|
return _this.setState({
|
|
402
403
|
mouseSelection: [],
|
|
403
404
|
isMousePreSelection: false,
|