@true-engineering/true-react-common-ui-kit 4.0.0-alpha18 → 4.0.0-alpha19

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.
@@ -27152,7 +27152,7 @@
27152
27152
  return target;
27153
27153
  }
27154
27154
  function FlexibleTableCell(_param) {
27155
- var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$9(_param, [
27155
+ var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, updateNestedComponent = _param.updateNestedComponent, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$9(_param, [
27156
27156
  "row",
27157
27157
  "columnName",
27158
27158
  "config",
@@ -27160,6 +27160,7 @@
27160
27160
  "isSecond",
27161
27161
  "isSticky",
27162
27162
  "isLoading",
27163
+ "updateNestedComponent",
27163
27164
  "tweakStyles"
27164
27165
  ]);
27165
27166
  var classes = useStyles$i({
@@ -27171,6 +27172,12 @@
27171
27172
  var isSticky = isOldSticky || position === "sticky";
27172
27173
  var isClickable = !isLoading && trueReactPlatformHelpers.isNotEmpty(onCellClick);
27173
27174
  var cellComponentProps = _object_spread_props$l(_object_spread$m({}, valueComponentProps), {
27175
+ onSetNestedComponent: React.useCallback(function(node) {
27176
+ return updateNestedComponent(node, columnName);
27177
+ }, [
27178
+ columnName,
27179
+ updateNestedComponent
27180
+ ]),
27174
27181
  value,
27175
27182
  row
27176
27183
  });
@@ -27369,7 +27376,7 @@
27369
27376
  isOpen: false
27370
27377
  });
27371
27378
  };
27372
- var updateNestedComponent = function(component, cellKey) {
27379
+ var updateNestedComponent = React.useCallback(function(component, cellKey) {
27373
27380
  if (trueReactPlatformHelpers.isEmpty(component)) {
27374
27381
  closeNestedComponent();
27375
27382
  } else {
@@ -27379,7 +27386,7 @@
27379
27386
  cellKey
27380
27387
  });
27381
27388
  }
27382
- };
27389
+ }, []);
27383
27390
  var handleRowClick = function() {
27384
27391
  if (trueReactPlatformHelpers.isNotEmpty(uniqueField)) {
27385
27392
  onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(item[uniqueField]);
@@ -27426,9 +27433,7 @@
27426
27433
  isActiveRow: isActive,
27427
27434
  isNestedComponentExpanded: isNestedComponentExpanded && nestedComponentCellKey === key,
27428
27435
  isRowNestedComponentExpanded: isNestedComponentExpanded && trueReactPlatformHelpers.isEmpty(nestedComponentCellKey),
27429
- onSetNestedComponent: function(component) {
27430
- return updateNestedComponent(component, key);
27431
- }
27436
+ updateNestedComponent
27432
27437
  }, key);
27433
27438
  })
27434
27439
  })),