@canvas-components/react-list-table 0.3.13 → 0.3.15
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/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3915,6 +3915,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3915
3915
|
);
|
|
3916
3916
|
const [columnConfig, setColumnConfig] = react.useState(() => /* @__PURE__ */ new Map());
|
|
3917
3917
|
const [columnConfigRevision, setColumnConfigRevision] = react.useState(0);
|
|
3918
|
+
const [columnConfigResetRevision, setColumnConfigResetRevision] = react.useState(0);
|
|
3918
3919
|
const resolvedColumns = react.useMemo(
|
|
3919
3920
|
() => applyColumnManagerState(
|
|
3920
3921
|
columns,
|
|
@@ -3980,6 +3981,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3980
3981
|
...nextOptions,
|
|
3981
3982
|
...fullscreenSize,
|
|
3982
3983
|
columnConfigRevision,
|
|
3984
|
+
columnConfigResetRevision,
|
|
3983
3985
|
ui: {
|
|
3984
3986
|
...nextOptions.ui,
|
|
3985
3987
|
onDensityChange: setDensityOverride
|
|
@@ -4022,7 +4024,8 @@ function ReactListTableInner(props, ref) {
|
|
|
4022
4024
|
rowDrag,
|
|
4023
4025
|
resolvedDebug,
|
|
4024
4026
|
isFullscreen,
|
|
4025
|
-
columnConfigRevision
|
|
4027
|
+
columnConfigRevision,
|
|
4028
|
+
columnConfigResetRevision
|
|
4026
4029
|
]);
|
|
4027
4030
|
const {
|
|
4028
4031
|
containerRef,
|
|
@@ -4148,6 +4151,7 @@ function ReactListTableInner(props, ref) {
|
|
|
4148
4151
|
setColumnVisibility(/* @__PURE__ */ new Map());
|
|
4149
4152
|
setColumnOrders(/* @__PURE__ */ new Map());
|
|
4150
4153
|
setColumnConfig(/* @__PURE__ */ new Map());
|
|
4154
|
+
setColumnConfigResetRevision((current) => current + 1);
|
|
4151
4155
|
setColumnConfigRevision((current) => current + 1);
|
|
4152
4156
|
});
|
|
4153
4157
|
}
|
|
@@ -4303,6 +4307,10 @@ Object.defineProperty(exports, "SELECTION_COLUMN", {
|
|
|
4303
4307
|
enumerable: true,
|
|
4304
4308
|
get: function () { return listTable.SELECTION_COLUMN; }
|
|
4305
4309
|
});
|
|
4310
|
+
Object.defineProperty(exports, "getListTableStoredPageSize", {
|
|
4311
|
+
enumerable: true,
|
|
4312
|
+
get: function () { return listTable.getListTableStoredPageSize; }
|
|
4313
|
+
});
|
|
4306
4314
|
exports.ReactListTable = ReactListTable;
|
|
4307
4315
|
exports.ReactListTableDebugProvider = ReactListTableDebugProvider;
|
|
4308
4316
|
//# sourceMappingURL=index.cjs.map
|