@tanstack/table-core 8.20.5 → 8.21.3
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/lib/features/ColumnSizing.js +2 -1
- package/build/lib/features/ColumnSizing.js.map +1 -1
- package/build/lib/filterFns.js +1 -1
- package/build/lib/filterFns.js.map +1 -1
- package/build/lib/index.esm.js +6 -2
- package/build/lib/index.esm.js.map +1 -1
- package/build/lib/index.mjs +6 -2
- package/build/lib/index.mjs.map +1 -1
- package/build/lib/utils/document.d.ts +2 -0
- package/build/lib/utils/document.js +18 -0
- package/build/lib/utils/document.js.map +1 -0
- package/build/umd/index.development.js +6 -2
- 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/ColumnSizing.ts +2 -2
- package/src/filterFns.ts +1 -1
- package/src/utils/document.ts +12 -0
package/build/lib/index.mjs
CHANGED
|
@@ -618,7 +618,7 @@ const arrIncludes = (row, columnId, filterValue) => {
|
|
|
618
618
|
var _row$getValue4;
|
|
619
619
|
return (_row$getValue4 = row.getValue(columnId)) == null ? void 0 : _row$getValue4.includes(filterValue);
|
|
620
620
|
};
|
|
621
|
-
arrIncludes.autoRemove = val => testFalsey(val)
|
|
621
|
+
arrIncludes.autoRemove = val => testFalsey(val);
|
|
622
622
|
const arrIncludesAll = (row, columnId, filterValue) => {
|
|
623
623
|
return !filterValue.some(val => {
|
|
624
624
|
var _row$getValue5;
|
|
@@ -1209,6 +1209,10 @@ const ColumnPinning = {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
};
|
|
1211
1211
|
|
|
1212
|
+
function safelyAccessDocument(_document) {
|
|
1213
|
+
return _document || (typeof document !== 'undefined' ? document : null);
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1212
1216
|
//
|
|
1213
1217
|
|
|
1214
1218
|
//
|
|
@@ -1348,7 +1352,7 @@ const ColumnSizing = {
|
|
|
1348
1352
|
columnSizingStart: []
|
|
1349
1353
|
}));
|
|
1350
1354
|
};
|
|
1351
|
-
const contextDocument = _contextDocument
|
|
1355
|
+
const contextDocument = safelyAccessDocument(_contextDocument);
|
|
1352
1356
|
const mouseEvents = {
|
|
1353
1357
|
moveHandler: e => onMove(e.clientX),
|
|
1354
1358
|
upHandler: e => {
|