labsense-ui-kit 1.4.50 → 1.4.51

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.
@@ -13256,7 +13256,7 @@ var Table = function Table(_ref9) {
13256
13256
  onChange: toggleSelectAll,
13257
13257
  "$borderSize": 2
13258
13258
  })), tableheaderconfig.headerdata.map(function (columndata, index, allCols) {
13259
- var _allCols, _columndata$maintext;
13259
+ var _allCols, _columndata$maintext, _columndata$maintext2;
13260
13260
  var currentGroupTitle = columndata.groupTitle || '';
13261
13261
  var prevGroupTitle = index > 0 ? allCols[index - 1].groupTitle || '' : '';
13262
13262
  var isFirstOfGroup = currentGroupTitle && currentGroupTitle !== prevGroupTitle;
@@ -13284,8 +13284,23 @@ var Table = function Table(_ref9) {
13284
13284
  "$lineHeight": 'normal'
13285
13285
  }, currentGroupTitle), React.createElement(LegendDivider, null)) : React.createElement(LegendDivider, {
13286
13286
  "$marginRight": currentGroupTitle !== (((_allCols = allCols[index + 1]) === null || _allCols === void 0 ? void 0 : _allCols.groupTitle) || '') ? '8px' : '0px'
13287
- })) : null), React.createElement(TableCell, {
13287
+ })) : null), columndata.sortable ? React.createElement(Container, {
13288
+ "$width": '100%',
13289
+ "$alignItems": 'center',
13290
+ "$gap": '6px',
13291
+ "$cursor": 'pointer',
13292
+ "$justifyContent": columndata.alignment === 'end' ? 'flex-end' : columndata.alignment === 'center' ? 'center' : 'flex-start',
13293
+ onClick: columndata.onSortClick
13294
+ }, React.createElement(TableCell, {
13288
13295
  maintext: (_columndata$maintext = columndata.maintext) != null ? _columndata$maintext : '',
13296
+ alignment: columndata.alignment
13297
+ }), React.createElement(Icon, {
13298
+ icon: columndata.sortDirection === 'desc' ? 'ArrowDown' : 'ArrowUp',
13299
+ size: 10,
13300
+ color: 'currentColor',
13301
+ cursor: 'pointer'
13302
+ })) : React.createElement(TableCell, {
13303
+ maintext: (_columndata$maintext2 = columndata.maintext) != null ? _columndata$maintext2 : '',
13289
13304
  width: columndata.width,
13290
13305
  minWidth: columndata.minWidth,
13291
13306
  maxWidth: columndata.maxWidth,