@stenajs-webui/grid 15.5.0 → 15.5.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.
package/dist/index.js
CHANGED
|
@@ -1545,10 +1545,10 @@ var StandardTableCell = React__namespace.memo(function StandardTableCell(_a) {
|
|
|
1545
1545
|
var onKeyDownTable = useOnKeyDownContext();
|
|
1546
1546
|
var numNavigableColumns = useColumnIndexPerColumnIdContext().numNavigableColumns;
|
|
1547
1547
|
var stickyPropsPerColumnContext = useStickyPropsPerColumnContext();
|
|
1548
|
+
var itemKey = React.useMemo(function () { return keyResolver(item); }, [item, keyResolver]);
|
|
1548
1549
|
var isSelected = React.useMemo(function () {
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
}, [item, keyResolver, selectedIds]);
|
|
1550
|
+
return selectedIds.indexOf(itemKey) >= 0;
|
|
1551
|
+
}, [itemKey, selectedIds]);
|
|
1552
1552
|
var _d = useColumnConfigById(columnId), itemValueResolver = _d.itemValueResolver, itemLabelFormatter = _d.itemLabelFormatter, width = _d.width, minWidth = _d.minWidth, _e = _d.justifyContentCell, justifyContentCell = _e === void 0 ? "flex-start" : _e, borderLeft = _d.borderLeft, renderCell = _d.renderCell, gridCellOptionsForColumn = _d.gridCellOptions, isEditable = _d.isEditable, onChange = _d.onChange, onKeyDownCell = _d.onKeyDown, disableGridCell = _d.disableGridCell, disableGridCellFocus = _d.disableGridCellFocus, zIndex = _d.zIndex;
|
|
1553
1553
|
var itemValue = React.useMemo(function () {
|
|
1554
1554
|
if (itemValueResolver) {
|
|
@@ -1594,6 +1594,7 @@ var StandardTableCell = React__namespace.memo(function StandardTableCell(_a) {
|
|
|
1594
1594
|
isEditable: editable,
|
|
1595
1595
|
isSelected: isSelected,
|
|
1596
1596
|
zIndex: currentZIndex,
|
|
1597
|
+
itemKey: itemKey,
|
|
1597
1598
|
})) : (React__namespace.createElement(TextCell, { label: label }));
|
|
1598
1599
|
}, [
|
|
1599
1600
|
renderCell,
|
|
@@ -1604,6 +1605,7 @@ var StandardTableCell = React__namespace.memo(function StandardTableCell(_a) {
|
|
|
1604
1605
|
editable,
|
|
1605
1606
|
isSelected,
|
|
1606
1607
|
currentZIndex,
|
|
1608
|
+
itemKey,
|
|
1607
1609
|
]);
|
|
1608
1610
|
var activeBorderLeft = getCellBorder(borderFromGroup, disableBorderLeft, borderLeft);
|
|
1609
1611
|
var shadow = stickyProps.sticky &&
|