@reltio/components 1.4.1897 → 1.4.1899
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.
|
@@ -252,6 +252,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
252
252
|
};
|
|
253
253
|
ReactSortableTree.prototype.componentWillUnmount = function () {
|
|
254
254
|
this.clearMonitorSubscription();
|
|
255
|
+
this.dndManager.resetDragVariables();
|
|
255
256
|
};
|
|
256
257
|
ReactSortableTree.prototype.getRows = function (treeData) {
|
|
257
258
|
return (0, memoizedTreeData_1.memoizedGetFlatDataFromTree)({
|
|
@@ -337,12 +338,14 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
337
338
|
// if onlyExpandSearchedNodes collapse the tree and search
|
|
338
339
|
var _a = (0, tree_1.find)({
|
|
339
340
|
getNodeKey: getNodeKey,
|
|
341
|
+
/* eslint-disable indent */
|
|
340
342
|
treeData: onlyExpandSearchedNodes
|
|
341
343
|
? (0, tree_1.toggleExpandedForAll)({
|
|
342
344
|
treeData: instanceProps.treeData,
|
|
343
345
|
expanded: false
|
|
344
346
|
})
|
|
345
347
|
: instanceProps.treeData,
|
|
348
|
+
/* eslint-enable indent */
|
|
346
349
|
searchQuery: searchQuery,
|
|
347
350
|
searchMethod: searchMethod || defaultHandlers_1.defaultSearchMethod,
|
|
348
351
|
searchFocusOffset: searchFocusOffset,
|
|
@@ -521,8 +524,9 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
521
524
|
// Only replace the old node if it's the one we set off to find children
|
|
522
525
|
// for in the first place
|
|
523
526
|
return oldNode === node
|
|
524
|
-
? __assign(__assign({}, oldNode), { children: childrenArray }) : oldNode;
|
|
527
|
+
? /* eslint-disable indent */ __assign(__assign({}, oldNode), { children: childrenArray }) : oldNode;
|
|
525
528
|
},
|
|
529
|
+
/* eslint-enable indent */
|
|
526
530
|
getNodeKey: props.getNodeKey
|
|
527
531
|
}), true);
|
|
528
532
|
}
|
|
@@ -613,7 +617,9 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
613
617
|
return (react_1.default.createElement(ScrollZoneVirtualList_1, __assign({}, scrollToInfo, { dragDropManager: dragDropManager, verticalStrength: _this.vStrength, horizontalStrength: _this.hStrength, speed: 30, scrollToAlignment: "start", className: _this.props.classes.rst__virtualScrollOverride, width: width, onScroll: function (_a) {
|
|
614
618
|
var scrollTop = _a.scrollTop;
|
|
615
619
|
_this.scrollTop = scrollTop;
|
|
616
|
-
}, height: height, style: innerStyle, rowCount: rows.length, estimatedRowSize: typeof rowHeight !== 'function' ? rowHeight : undefined, rowHeight:
|
|
620
|
+
}, height: height, style: innerStyle, rowCount: rows.length, estimatedRowSize: typeof rowHeight !== 'function' ? rowHeight : undefined, rowHeight:
|
|
621
|
+
/* eslint-disable indent */
|
|
622
|
+
typeof rowHeight !== 'function'
|
|
617
623
|
? rowHeight
|
|
618
624
|
: function (_a) {
|
|
619
625
|
var index = _a.index;
|
|
@@ -224,6 +224,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
224
224
|
};
|
|
225
225
|
ReactSortableTree.prototype.componentWillUnmount = function () {
|
|
226
226
|
this.clearMonitorSubscription();
|
|
227
|
+
this.dndManager.resetDragVariables();
|
|
227
228
|
};
|
|
228
229
|
ReactSortableTree.prototype.getRows = function (treeData) {
|
|
229
230
|
return memoizedGetFlatDataFromTree({
|
|
@@ -309,12 +310,14 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
309
310
|
// if onlyExpandSearchedNodes collapse the tree and search
|
|
310
311
|
var _a = find({
|
|
311
312
|
getNodeKey: getNodeKey,
|
|
313
|
+
/* eslint-disable indent */
|
|
312
314
|
treeData: onlyExpandSearchedNodes
|
|
313
315
|
? toggleExpandedForAll({
|
|
314
316
|
treeData: instanceProps.treeData,
|
|
315
317
|
expanded: false
|
|
316
318
|
})
|
|
317
319
|
: instanceProps.treeData,
|
|
320
|
+
/* eslint-enable indent */
|
|
318
321
|
searchQuery: searchQuery,
|
|
319
322
|
searchMethod: searchMethod || defaultSearchMethod,
|
|
320
323
|
searchFocusOffset: searchFocusOffset,
|
|
@@ -493,8 +496,9 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
493
496
|
// Only replace the old node if it's the one we set off to find children
|
|
494
497
|
// for in the first place
|
|
495
498
|
return oldNode === node
|
|
496
|
-
? __assign(__assign({}, oldNode), { children: childrenArray }) : oldNode;
|
|
499
|
+
? /* eslint-disable indent */ __assign(__assign({}, oldNode), { children: childrenArray }) : oldNode;
|
|
497
500
|
},
|
|
501
|
+
/* eslint-enable indent */
|
|
498
502
|
getNodeKey: props.getNodeKey
|
|
499
503
|
}), true);
|
|
500
504
|
}
|
|
@@ -585,7 +589,9 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
585
589
|
return (React.createElement(ScrollZoneVirtualList_1, __assign({}, scrollToInfo, { dragDropManager: dragDropManager, verticalStrength: _this.vStrength, horizontalStrength: _this.hStrength, speed: 30, scrollToAlignment: "start", className: _this.props.classes.rst__virtualScrollOverride, width: width, onScroll: function (_a) {
|
|
586
590
|
var scrollTop = _a.scrollTop;
|
|
587
591
|
_this.scrollTop = scrollTop;
|
|
588
|
-
}, height: height, style: innerStyle, rowCount: rows.length, estimatedRowSize: typeof rowHeight !== 'function' ? rowHeight : undefined, rowHeight:
|
|
592
|
+
}, height: height, style: innerStyle, rowCount: rows.length, estimatedRowSize: typeof rowHeight !== 'function' ? rowHeight : undefined, rowHeight:
|
|
593
|
+
/* eslint-disable indent */
|
|
594
|
+
typeof rowHeight !== 'function'
|
|
589
595
|
? rowHeight
|
|
590
596
|
: function (_a) {
|
|
591
597
|
var index = _a.index;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1899",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
9
9
|
"@react-google-maps/api": "2.7.0",
|
|
10
10
|
"@react-sigma/core": "3.4.0",
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1830",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|