@tanstack/table-core 8.0.0-alpha.21 → 8.0.0-alpha.22

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.
@@ -31,6 +31,7 @@ export declare type ColumnPinningInstance<TGenerics extends PartialGenerics> = {
31
31
  getColumnCanPin: (columnId: string) => boolean;
32
32
  getColumnIsPinned: (columnId: string) => ColumnPinningPosition;
33
33
  getColumnPinnedIndex: (columnId: string) => number;
34
+ getIsSomeColumnsPinned: () => boolean;
34
35
  };
35
36
  export declare const Pinning: {
36
37
  getInitialState: () => ColumnPinningTableState;
@@ -899,6 +899,12 @@
899
899
 
900
900
  var position = instance.getColumnIsPinned(columnId);
901
901
  return position ? (_instance$getState$co2 = (_instance$getState$co3 = instance.getState().columnPinning) == null ? void 0 : (_instance$getState$co4 = _instance$getState$co3[position]) == null ? void 0 : _instance$getState$co4.indexOf(columnId)) != null ? _instance$getState$co2 : -1 : 0;
902
+ },
903
+ getIsSomeColumnsPinned: function getIsSomeColumnsPinned() {
904
+ var _instance$getState$co5 = instance.getState().columnPinning,
905
+ left = _instance$getState$co5.left,
906
+ right = _instance$getState$co5.right;
907
+ return Boolean((left == null ? void 0 : left.length) || (right == null ? void 0 : right.length));
902
908
  }
903
909
  };
904
910
  }