labsense-ui-kit 1.1.61 → 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/Inputs/CheckBox.d.ts +5 -0
- package/dist/index.js +38 -21
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +38 -21
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6113,7 +6113,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref8) {
|
|
|
6113
6113
|
};
|
|
6114
6114
|
|
|
6115
6115
|
var _templateObject$i, _templateObject2$f;
|
|
6116
|
-
var
|
|
6116
|
+
var StyledCheckBox = styled.input(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n appearance: none;\n border: ", ";\n border-radius: 4px;\n background-color: ", ";\n cursor: pointer;\n display: inline-block;\n position: relative;\n transition: all 0.2s ease;\n font-size: ", "; // for em units\n\n &:checked::after {\n content: '';\n position: absolute;\n top: ", ";\n right: ", ";\n width: ", ";\n height: ", ";\n border: solid ", ";\n border-width: 0 0.2em 0.2em 0;\n transform: rotate(45deg);\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n"])), function (_ref) {
|
|
6117
6117
|
var $checkboxSize = _ref.$checkboxSize;
|
|
6118
6118
|
return $checkboxSize + "px";
|
|
6119
6119
|
}, function (_ref2) {
|
|
@@ -6176,7 +6176,7 @@ var CheckBox = function CheckBox(_ref10) {
|
|
|
6176
6176
|
height: checkboxSize,
|
|
6177
6177
|
display: 'flex'
|
|
6178
6178
|
}
|
|
6179
|
-
}, React.createElement(
|
|
6179
|
+
}, React.createElement(StyledCheckBox, {
|
|
6180
6180
|
type: 'checkbox',
|
|
6181
6181
|
id: safeId,
|
|
6182
6182
|
"$checkboxSize": checkboxSize,
|
|
@@ -6751,13 +6751,16 @@ var TableRow = function TableRow(_ref) {
|
|
|
6751
6751
|
}, tableheaderconfig.isAllSelectable && React.createElement(Container, {
|
|
6752
6752
|
"$padding": '0px 16px 0px 0px',
|
|
6753
6753
|
"$alignItems": 'center'
|
|
6754
|
-
}, React.createElement(
|
|
6755
|
-
type:
|
|
6754
|
+
}, React.createElement(StyledCheckBox, {
|
|
6755
|
+
type: 'checkbox',
|
|
6756
|
+
"$checkboxSize": 13.5,
|
|
6756
6757
|
checked: rowconfig[Index]._checked,
|
|
6757
|
-
|
|
6758
|
-
|
|
6758
|
+
"$checked": rowconfig[Index]._checked,
|
|
6759
|
+
onChange: function onChange() {
|
|
6759
6760
|
return toggleChecked(Index);
|
|
6760
|
-
}
|
|
6761
|
+
},
|
|
6762
|
+
disabled: (_rowconfig$Index = rowconfig[Index]) === null || _rowconfig$Index === void 0 ? void 0 : _rowconfig$Index._selectable,
|
|
6763
|
+
"$borderSize": 2
|
|
6761
6764
|
})), data.rowData.map(function (cellData, cellkey) {
|
|
6762
6765
|
var _tableheaderconfig$he;
|
|
6763
6766
|
return React.createElement(TableCell, {
|
|
@@ -6788,15 +6791,18 @@ var TableHeader = styled.div(_templateObject2$k || (_templateObject2$k = _tagged
|
|
|
6788
6791
|
return props.$tcolor || 'white';
|
|
6789
6792
|
});
|
|
6790
6793
|
var TableContent = styled.div(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n width: 100%;\n svg {\n cursor: pointer;\n }\n"])));
|
|
6791
|
-
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
|
+
});
|
|
6792
6798
|
var Divider = styled.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n height: 2px;\n background: ", ";\n"])), colorVariables.border.extraLight);
|
|
6793
|
-
var Table = function Table(
|
|
6794
|
-
var tableObject =
|
|
6795
|
-
|
|
6796
|
-
filter =
|
|
6797
|
-
loading =
|
|
6798
|
-
|
|
6799
|
-
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;
|
|
6800
6806
|
var rowconfig = tableObject.rowconfig,
|
|
6801
6807
|
tableheaderconfig = tableObject.tableheaderconfig;
|
|
6802
6808
|
var _useState = useState(new Set()),
|
|
@@ -6845,10 +6851,13 @@ var Table = function Table(_ref) {
|
|
|
6845
6851
|
}, tableheaderconfig.isAllSelectable && React.createElement(Container, {
|
|
6846
6852
|
"$padding": '0px 16px 0px 0px',
|
|
6847
6853
|
"$alignItems": 'center'
|
|
6848
|
-
}, React.createElement(
|
|
6854
|
+
}, React.createElement(StyledCheckBox, {
|
|
6849
6855
|
type: 'checkbox',
|
|
6856
|
+
"$checkboxSize": 13.5,
|
|
6850
6857
|
checked: isAllSelected,
|
|
6851
|
-
|
|
6858
|
+
"$checked": isAllSelected,
|
|
6859
|
+
onChange: toggleSelectAll,
|
|
6860
|
+
"$borderSize": 2
|
|
6852
6861
|
})), tableheaderconfig.headerdata.map(function (columndata, index, allCols) {
|
|
6853
6862
|
var _columndata$maintext;
|
|
6854
6863
|
var currentLegend = columndata.legend || '';
|
|
@@ -6895,9 +6904,13 @@ var Table = function Table(_ref) {
|
|
|
6895
6904
|
"$alignItems": 'center',
|
|
6896
6905
|
"$padding": '24px 24px',
|
|
6897
6906
|
"$justifyContent": 'center'
|
|
6898
|
-
}, React.createElement(Span, null, noDataText)) : filter ? React.createElement(TableData,
|
|
6899
|
-
|
|
6900
|
-
|
|
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];
|
|
6901
6914
|
return React.createElement(React.Fragment, {
|
|
6902
6915
|
key: role
|
|
6903
6916
|
}, React.createElement(Container, {
|
|
@@ -6927,7 +6940,11 @@ var Table = function Table(_ref) {
|
|
|
6927
6940
|
tableheaderconfig: tableheaderconfig
|
|
6928
6941
|
}), rows.length > 1 && index < rows.length - 1 && React.createElement(Divider, null));
|
|
6929
6942
|
}));
|
|
6930
|
-
})) : 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) {
|
|
6931
6948
|
return React.createElement(React.Fragment, {
|
|
6932
6949
|
key: index
|
|
6933
6950
|
}, React.createElement(TableRow, {
|