asma-ui-table 1.6.4 → 1.6.5
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/asma-ui-table.es.js +1 -16
- package/package.json +1 -1
package/dist/asma-ui-table.es.js
CHANGED
|
@@ -12401,7 +12401,6 @@ function TableRow({
|
|
|
12401
12401
|
defaultExpanded,
|
|
12402
12402
|
actions,
|
|
12403
12403
|
customActionsNode,
|
|
12404
|
-
rowActionsState,
|
|
12405
12404
|
textExpandArrow,
|
|
12406
12405
|
enableMultiRowSelection,
|
|
12407
12406
|
enableRowSelection,
|
|
@@ -12473,21 +12472,7 @@ function TableRow({
|
|
|
12473
12472
|
() => rightCells.some((cell) => cell.column.id === ACTIONS_COLUMN_ID),
|
|
12474
12473
|
[rightCells]
|
|
12475
12474
|
);
|
|
12476
|
-
const shouldStickActionsCell =
|
|
12477
|
-
if (customActionsNode)
|
|
12478
|
-
return true;
|
|
12479
|
-
if (!actions)
|
|
12480
|
-
return false;
|
|
12481
|
-
const state = (rowActionsState == null ? void 0 : rowActionsState(row)) ?? { state: "enabled" };
|
|
12482
|
-
if (state.state === "hidden")
|
|
12483
|
-
return false;
|
|
12484
|
-
const rowActions = actions(row);
|
|
12485
|
-
if (state.state === "disabled")
|
|
12486
|
-
return true;
|
|
12487
|
-
if (rowActions.length === 0)
|
|
12488
|
-
return false;
|
|
12489
|
-
return rowActions.some((action) => isCustomAction(action) ? true : !action.hide);
|
|
12490
|
-
}, [actions, customActionsNode, row, rowActionsState]);
|
|
12475
|
+
const shouldStickActionsCell = Boolean(actions) || Boolean(customActionsNode);
|
|
12491
12476
|
const hasFixedRightColumns = useMemo(
|
|
12492
12477
|
() => rightCells.some((cell) => Boolean(cell.column.columnDef.fixedRight)),
|
|
12493
12478
|
[rightCells]
|