schummar-table 0.5.4 → 0.5.5
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/cjs/index.js +7 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +4 -3
- package/dist/es/index.js.map +1 -1
- package/dist/types/components/dateFilter.d.ts +3 -0
- package/dist/types/components/datePicker.d.ts +8 -0
- package/dist/types/components/selectFilter.d.ts +4 -0
- package/dist/types/components/textFilter.d.ts +4 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/types.d.ts +25 -10
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1926,8 +1926,10 @@ function Virtualized(_e) {
|
|
|
1926
1926
|
if (!virtual || !probeRef.current)
|
|
1927
1927
|
return;
|
|
1928
1928
|
window.addEventListener("scroll", incCounter, true);
|
|
1929
|
+
window.addEventListener("resize", incCounter, true);
|
|
1929
1930
|
return () => {
|
|
1930
1931
|
window.removeEventListener("scroll", incCounter, true);
|
|
1932
|
+
window.removeEventListener("resize", incCounter, true);
|
|
1931
1933
|
};
|
|
1932
1934
|
}, [probeRef.current, incCounter]);
|
|
1933
1935
|
(_d = (_c = table.getState().props).debugRender) == null ? void 0 : _d.call(_c, `Virtualalized render ${from} to ${to}`);
|
|
@@ -2194,7 +2196,6 @@ function debounce(fn, ms) {
|
|
|
2194
2196
|
});
|
|
2195
2197
|
}
|
|
2196
2198
|
function useFilter(impl) {
|
|
2197
|
-
var _a;
|
|
2198
2199
|
const table = useTableContext();
|
|
2199
2200
|
const columnId = useColumnContext();
|
|
2200
2201
|
react.useEffect(() => {
|
|
@@ -2216,7 +2217,7 @@ function useFilter(impl) {
|
|
|
2216
2217
|
state.filters.delete(columnId);
|
|
2217
2218
|
});
|
|
2218
2219
|
};
|
|
2219
|
-
}, [table, columnId,
|
|
2220
|
+
}, [table, columnId, impl]);
|
|
2220
2221
|
const value = table.useState((state) => state.filterValues.get(columnId));
|
|
2221
2222
|
const [dirtyValue, setDirtyValue] = react.useState();
|
|
2222
2223
|
const implRef = react.useRef(impl);
|
|
@@ -2315,10 +2316,14 @@ exports.mergeThemes = tableTheme.mergeThemes;
|
|
|
2315
2316
|
exports.AutoFocusTextField = AutoFocusTextField;
|
|
2316
2317
|
exports.ColumnContext = ColumnContext;
|
|
2317
2318
|
exports.DateFilter = DateFilter;
|
|
2319
|
+
exports.DatePicker = DatePicker;
|
|
2318
2320
|
exports.SelectFilter = SelectFilter;
|
|
2319
2321
|
exports.Table = Table;
|
|
2320
2322
|
exports.TableContext = TableContext;
|
|
2321
2323
|
exports.TextFilter = TextFilter;
|
|
2324
|
+
exports.dateIntersect = dateIntersect;
|
|
2325
|
+
exports.endOfDay = endOfDay;
|
|
2326
|
+
exports.startOfDay = startOfDay;
|
|
2322
2327
|
exports.termMatch = termMatch;
|
|
2323
2328
|
exports.textMatch = textMatch;
|
|
2324
2329
|
exports.useColumnContext = useColumnContext;
|