labsense-ui-kit 1.1.62 → 1.1.63
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 +23 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +23 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6791,15 +6791,18 @@ var TableHeader = styled.div(_templateObject2$k || (_templateObject2$k = _tagged
|
|
|
6791
6791
|
return props.$tcolor || 'white';
|
|
6792
6792
|
});
|
|
6793
6793
|
var TableContent = styled.div(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n width: 100%;\n svg {\n cursor: pointer;\n }\n"])));
|
|
6794
|
-
var TableData = styled.div(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n overflow: auto;\n scrollbar-width: thin;\n height: 100%;\n max-height:
|
|
6794
|
+
var TableData = styled.div(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n overflow: auto;\n scrollbar-width: thin;\n height: 100%;\n : ;\n max-height: ", ";\n\n"])), function (_ref) {
|
|
6795
|
+
var $isLegends = _ref.$isLegends;
|
|
6796
|
+
return $isLegends ? 'calc(100% - 56px)' : 'calc(100% - 36px)';
|
|
6797
|
+
});
|
|
6795
6798
|
var Divider = styled.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n height: 2px;\n background: ", ";\n"])), colorVariables.border.extraLight);
|
|
6796
|
-
var Table = function Table(
|
|
6797
|
-
var tableObject =
|
|
6798
|
-
|
|
6799
|
-
filter =
|
|
6800
|
-
loading =
|
|
6801
|
-
|
|
6802
|
-
noDataText =
|
|
6799
|
+
var Table = function Table(_ref2) {
|
|
6800
|
+
var tableObject = _ref2.tableObject,
|
|
6801
|
+
_ref2$filter = _ref2.filter,
|
|
6802
|
+
filter = _ref2$filter === void 0 ? false : _ref2$filter,
|
|
6803
|
+
loading = _ref2.loading,
|
|
6804
|
+
_ref2$noDataText = _ref2.noDataText,
|
|
6805
|
+
noDataText = _ref2$noDataText === void 0 ? 'No Data Found!' : _ref2$noDataText;
|
|
6803
6806
|
var rowconfig = tableObject.rowconfig,
|
|
6804
6807
|
tableheaderconfig = tableObject.tableheaderconfig;
|
|
6805
6808
|
var _useState = useState(new Set()),
|
|
@@ -6901,9 +6904,13 @@ var Table = function Table(_ref) {
|
|
|
6901
6904
|
"$alignItems": 'center',
|
|
6902
6905
|
"$padding": '24px 24px',
|
|
6903
6906
|
"$justifyContent": 'center'
|
|
6904
|
-
}, React.createElement(Span, null, noDataText)) : filter ? React.createElement(TableData,
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
+
}, React.createElement(Span, null, noDataText)) : filter ? React.createElement(TableData, {
|
|
6908
|
+
"$isLegends": tableheaderconfig.headerdata.some(function (col) {
|
|
6909
|
+
return !!col.legend;
|
|
6910
|
+
})
|
|
6911
|
+
}, Object.entries(roleGroups).map(function (_ref3) {
|
|
6912
|
+
var role = _ref3[0],
|
|
6913
|
+
rows = _ref3[1];
|
|
6907
6914
|
return React.createElement(React.Fragment, {
|
|
6908
6915
|
key: role
|
|
6909
6916
|
}, React.createElement(Container, {
|
|
@@ -6933,7 +6940,11 @@ var Table = function Table(_ref) {
|
|
|
6933
6940
|
tableheaderconfig: tableheaderconfig
|
|
6934
6941
|
}), rows.length > 1 && index < rows.length - 1 && React.createElement(Divider, null));
|
|
6935
6942
|
}));
|
|
6936
|
-
})) : React.createElement(TableData,
|
|
6943
|
+
})) : React.createElement(TableData, {
|
|
6944
|
+
"$isLegends": tableheaderconfig.headerdata.some(function (col) {
|
|
6945
|
+
return !!col.legend;
|
|
6946
|
+
})
|
|
6947
|
+
}, filteredRows.map(function (row, index) {
|
|
6937
6948
|
return React.createElement(React.Fragment, {
|
|
6938
6949
|
key: index
|
|
6939
6950
|
}, React.createElement(TableRow, {
|