@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.
- package/build/cjs/features/Pinning.js +6 -0
- package/build/cjs/features/Pinning.js.map +1 -1
- package/build/esm/index.js +6 -0
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +250 -250
- package/build/types/features/Pinning.d.ts +1 -0
- package/build/umd/index.development.js +6 -0
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/features/Pinning.ts +7 -0
|
@@ -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
|
}
|