schummar-table 0.32.1 → 0.33.1
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 +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +3 -1
- package/dist/es/index.js.map +1 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -2204,7 +2204,7 @@ function useTableState(_props) {
|
|
|
2204
2204
|
if (props.hiddenColumns === void 0) {
|
|
2205
2205
|
(_d = props.onHiddenColumnsChange) == null ? void 0 : _d.call(props, props.defaultHiddenColumns ?? /* @__PURE__ */ new Set());
|
|
2206
2206
|
}
|
|
2207
|
-
(_e = props.onReset) == null ? void 0 : _e.call(props);
|
|
2207
|
+
(_e = props.onReset) == null ? void 0 : _e.call(props, "table");
|
|
2208
2208
|
}
|
|
2209
2209
|
const state = useMemo(() => new Store({
|
|
2210
2210
|
props,
|
|
@@ -2258,9 +2258,11 @@ function ClearFiltersButton() {
|
|
|
2258
2258
|
const table = useTableContext();
|
|
2259
2259
|
return /* @__PURE__ */ jsx("div", { css: defaultClasses.clearFiltersButton, children: /* @__PURE__ */ jsx(Button2, { variant: "outlined", onClick: () => {
|
|
2260
2260
|
table.update((state) => {
|
|
2261
|
+
var _a, _b;
|
|
2261
2262
|
state.activeColumns.forEach((column) => {
|
|
2262
2263
|
state.filterValues.delete(column.id);
|
|
2263
2264
|
});
|
|
2265
|
+
(_b = (_a = table.getState().props).onReset) == null ? void 0 : _b.call(_a, "filters");
|
|
2264
2266
|
});
|
|
2265
2267
|
}, children: textClearFilters }) });
|
|
2266
2268
|
}
|