@pdg/react-table 1.0.24 → 1.0.26

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.esm.js CHANGED
@@ -9008,6 +9008,18 @@ var Table = React__default.forwardRef(function (_a, ref) {
9008
9008
  useEffect(function () {
9009
9009
  stopHeadCheckTimer();
9010
9010
  clearFireOnCheckChangeTimer();
9011
+ Object.keys(localHeaderDataRef.current).forEach(function (key) {
9012
+ var _a;
9013
+ if (localHeaderDataRef.current[key].column.type === 'check') {
9014
+ (_a = localHeaderDataRef.current[key].commands) === null || _a === void 0 ? void 0 : _a.setChecked(false);
9015
+ }
9016
+ });
9017
+ Object.keys(localBodyDataRef.current).forEach(function (key) {
9018
+ Object.keys(localBodyDataRef.current[key].columns).forEach(function (cKey) {
9019
+ var _a;
9020
+ (_a = localBodyDataRef.current[key].columns[cKey].commands) === null || _a === void 0 ? void 0 : _a.setChecked(false);
9021
+ });
9022
+ });
9011
9023
  setSortableItems(makeSortableItems(items));
9012
9024
  // eslint-disable-next-line react-hooks/exhaustive-deps
9013
9025
  }, [items]);
@@ -9220,10 +9232,10 @@ var Table = React__default.forwardRef(function (_a, ref) {
9220
9232
  var simpleBarStyle = useMemo(function () {
9221
9233
  if (fullHeight) {
9222
9234
  return {
9223
- height: (containerHeight || 0) - (finalPagingHeight || 0) - 2,
9235
+ height: (containerHeight || 0) - (finalPagingHeight || 0) - 1,
9224
9236
  flex: 1,
9225
9237
  position: 'absolute',
9226
- top: 1,
9238
+ top: 0,
9227
9239
  left: 0,
9228
9240
  right: 0,
9229
9241
  marginBottom: finalPagingHeight || 0,