labsense-ui-kit 1.2.95 → 1.2.97
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/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9683,7 +9683,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
9683
9683
|
};
|
|
9684
9684
|
|
|
9685
9685
|
var _templateObject$q, _templateObject2$l, _templateObject3$e, _templateObject4$b, _templateObject5$9;
|
|
9686
|
-
var TableContainer = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n background: ", ";\n display: flex;\n flex-direction: column;\n border-radius: 8px;\n scrollbar-width: thin;\n flex: 1;\n height: 100%;\n
|
|
9686
|
+
var TableContainer = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n background: ", ";\n display: flex;\n flex-direction: column;\n border-radius: 8px;\n scrollbar-width: thin;\n flex: 1;\n height: 100%;\n"])), function (_ref) {
|
|
9687
9687
|
var theme = _ref.theme;
|
|
9688
9688
|
return theme.vms.brand.light;
|
|
9689
9689
|
});
|
|
@@ -9797,16 +9797,21 @@ var Table = function Table(_ref9) {
|
|
|
9797
9797
|
}
|
|
9798
9798
|
};
|
|
9799
9799
|
var handleScroll = function handleScroll() {
|
|
9800
|
-
checkForScrollbar();
|
|
9800
|
+
return checkForScrollbar();
|
|
9801
9801
|
};
|
|
9802
9802
|
tableDataRef.current.addEventListener('scroll', handleScroll);
|
|
9803
|
-
var
|
|
9803
|
+
var observer = new MutationObserver(checkForScrollbar);
|
|
9804
|
+
observer.observe(tableDataRef.current, {
|
|
9805
|
+
childList: true,
|
|
9806
|
+
subtree: true
|
|
9807
|
+
});
|
|
9808
|
+
checkForScrollbar();
|
|
9804
9809
|
return function () {
|
|
9805
9810
|
var _tableDataRef$current;
|
|
9806
|
-
|
|
9811
|
+
observer.disconnect();
|
|
9807
9812
|
(_tableDataRef$current = tableDataRef.current) === null || _tableDataRef$current === void 0 ? void 0 : _tableDataRef$current.removeEventListener('scroll', handleScroll);
|
|
9808
9813
|
};
|
|
9809
|
-
}, []);
|
|
9814
|
+
}, [rowconfig, filter, loading]);
|
|
9810
9815
|
return React.createElement(TableContainer, null, React.createElement(TableHeaderWithScrollbarAdjustment, {
|
|
9811
9816
|
"$hasScrollbar": hasScrollbar,
|
|
9812
9817
|
"$hbcolor": tableheaderconfig.headercolor,
|