@true-engineering/true-react-common-ui-kit 3.0.0 → 3.0.1

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.
@@ -24939,11 +24939,12 @@ function FlexibleTableRowInner(param) {
24939
24939
  }
24940
24940
  };
24941
24941
  var items = enabledColumns !== null && enabledColumns !== void 0 ? enabledColumns : Object.keys(config);
24942
+ var isEditable = isNotEmpty(onRowClick) || isNotEmpty(onRowHover);
24942
24943
  var _obj;
24943
24944
  return /* @__PURE__ */ jsxs(Fragment, {
24944
24945
  children: [
24945
24946
  /* @__PURE__ */ jsx("tr", _object_spread_props$f(_object_spread$g({
24946
- className: clsx(classes.root, (_obj = {}, _define_property$h(_obj, classes.active, isActive), _define_property$h(_obj, classes.editable, isNotEmpty(onRowClick) || isNotEmpty(onRowHover)), _define_property$h(_obj, classes.clickable, isNotEmpty(onRowClick) || isNotEmpty(expandableRowComponent)), _obj)),
24947
+ className: clsx(classes.root, (_obj = {}, _define_property$h(_obj, classes.active, isActive), _define_property$h(_obj, classes.editable, isEditable), _define_property$h(_obj, classes.clickable, isNotEmpty(onRowClick) || isNotEmpty(expandableRowComponent)), _obj)),
24947
24948
  onMouseEnter: function(e) {
24948
24949
  if (uniqueField !== void 0 && onRowHover !== void 0) {
24949
24950
  e.stopPropagation();
@@ -24954,6 +24955,8 @@ function FlexibleTableRowInner(param) {
24954
24955
  onMouseLeave: handleMouseLeave,
24955
24956
  onClick: handleRowClick
24956
24957
  }, addDataAttributes(_object_spread_props$f(_object_spread$g({}, rowData), {
24958
+ active: isActive ? true : void 0,
24959
+ editable: isEditable ? true : void 0,
24957
24960
  isExpandableComponentActive: nestedComponent.isOpen ? true : void 0
24958
24961
  }))), {
24959
24962
  children: items.map(function(key, i) {