labsense-ui-kit 1.1.62 → 1.1.64
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 +27 -23
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +27 -23
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6783,7 +6783,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
6783
6783
|
}));
|
|
6784
6784
|
};
|
|
6785
6785
|
|
|
6786
|
-
var _templateObject$p, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$9;
|
|
6786
|
+
var _templateObject$p, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$9, _templateObject6$7;
|
|
6787
6787
|
var TableContainer = styled.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["\n background: ", ";\n width: 100%;\n display: flex;\n overflow: hidden;\n border-radius: 8px;\n"])), colorVariables.brand.light);
|
|
6788
6788
|
var TableHeader = styled.div(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n display: flex;\n background: ", ";\n color: ", ";\n min-height: 36px;\n align-items: center;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n padding: 9px 12px;\n"])), function (props) {
|
|
6789
6789
|
return props.$hbcolor || 'transparent';
|
|
@@ -6791,15 +6791,19 @@ 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:
|
|
6795
|
-
var
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
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
|
+
});
|
|
6798
|
+
var LegendDivider = styled.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n flex: 1;\n height: 1px;\n background: ", ";\n"])), colorVariables.border.extraLight);
|
|
6799
|
+
var Divider = styled.div(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n height: 2px;\n background: ", ";\n"])), colorVariables.border.extraLight);
|
|
6800
|
+
var Table = function Table(_ref2) {
|
|
6801
|
+
var tableObject = _ref2.tableObject,
|
|
6802
|
+
_ref2$filter = _ref2.filter,
|
|
6803
|
+
filter = _ref2$filter === void 0 ? false : _ref2$filter,
|
|
6804
|
+
loading = _ref2.loading,
|
|
6805
|
+
_ref2$noDataText = _ref2.noDataText,
|
|
6806
|
+
noDataText = _ref2$noDataText === void 0 ? 'No Data Found!' : _ref2$noDataText;
|
|
6803
6807
|
var rowconfig = tableObject.rowconfig,
|
|
6804
6808
|
tableheaderconfig = tableObject.tableheaderconfig;
|
|
6805
6809
|
var _useState = useState(new Set()),
|
|
@@ -6876,15 +6880,7 @@ var Table = function Table(_ref) {
|
|
|
6876
6880
|
"$fontWeight": '400',
|
|
6877
6881
|
"$width": 'max-content',
|
|
6878
6882
|
"$lineHeight": 'normal'
|
|
6879
|
-
}, currentLegend), React.createElement(
|
|
6880
|
-
"$flex": '1',
|
|
6881
|
-
"$height": '1px',
|
|
6882
|
-
"$background": colorVariables.border.extraLight
|
|
6883
|
-
})) : React.createElement(Container, {
|
|
6884
|
-
"$flex": '1',
|
|
6885
|
-
"$height": '1px',
|
|
6886
|
-
"$background": colorVariables.border.extraLight
|
|
6887
|
-
})) : null), React.createElement(TableCell, {
|
|
6883
|
+
}, currentLegend), React.createElement(LegendDivider, null)) : React.createElement(LegendDivider, null)) : null), React.createElement(TableCell, {
|
|
6888
6884
|
maintext: (_columndata$maintext = columndata.maintext) != null ? _columndata$maintext : '',
|
|
6889
6885
|
width: columndata.width,
|
|
6890
6886
|
alignment: columndata.alignment
|
|
@@ -6901,9 +6897,13 @@ var Table = function Table(_ref) {
|
|
|
6901
6897
|
"$alignItems": 'center',
|
|
6902
6898
|
"$padding": '24px 24px',
|
|
6903
6899
|
"$justifyContent": 'center'
|
|
6904
|
-
}, React.createElement(Span, null, noDataText)) : filter ? React.createElement(TableData,
|
|
6905
|
-
|
|
6906
|
-
|
|
6900
|
+
}, React.createElement(Span, null, noDataText)) : filter ? React.createElement(TableData, {
|
|
6901
|
+
"$isLegends": tableheaderconfig.headerdata.some(function (col) {
|
|
6902
|
+
return !!col.legend;
|
|
6903
|
+
})
|
|
6904
|
+
}, Object.entries(roleGroups).map(function (_ref3) {
|
|
6905
|
+
var role = _ref3[0],
|
|
6906
|
+
rows = _ref3[1];
|
|
6907
6907
|
return React.createElement(React.Fragment, {
|
|
6908
6908
|
key: role
|
|
6909
6909
|
}, React.createElement(Container, {
|
|
@@ -6933,7 +6933,11 @@ var Table = function Table(_ref) {
|
|
|
6933
6933
|
tableheaderconfig: tableheaderconfig
|
|
6934
6934
|
}), rows.length > 1 && index < rows.length - 1 && React.createElement(Divider, null));
|
|
6935
6935
|
}));
|
|
6936
|
-
})) : React.createElement(TableData,
|
|
6936
|
+
})) : React.createElement(TableData, {
|
|
6937
|
+
"$isLegends": tableheaderconfig.headerdata.some(function (col) {
|
|
6938
|
+
return !!col.legend;
|
|
6939
|
+
})
|
|
6940
|
+
}, filteredRows.map(function (row, index) {
|
|
6937
6941
|
return React.createElement(React.Fragment, {
|
|
6938
6942
|
key: index
|
|
6939
6943
|
}, React.createElement(TableRow, {
|