@canvas-components/react-list-table 0.3.14 → 0.3.16
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 +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3124,6 +3124,7 @@ function ReactTablePaginationView(props) {
|
|
|
3124
3124
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3125
3125
|
reactComponents.ReactPagination,
|
|
3126
3126
|
{
|
|
3127
|
+
styles: config.styles,
|
|
3127
3128
|
size: layout.size,
|
|
3128
3129
|
current: config.current,
|
|
3129
3130
|
total: config.total,
|
|
@@ -3875,6 +3876,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3875
3876
|
loading,
|
|
3876
3877
|
onRow,
|
|
3877
3878
|
theme,
|
|
3879
|
+
styles,
|
|
3878
3880
|
striped,
|
|
3879
3881
|
highlightMode,
|
|
3880
3882
|
contextMenu,
|
|
@@ -3915,6 +3917,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3915
3917
|
);
|
|
3916
3918
|
const [columnConfig, setColumnConfig] = react.useState(() => /* @__PURE__ */ new Map());
|
|
3917
3919
|
const [columnConfigRevision, setColumnConfigRevision] = react.useState(0);
|
|
3920
|
+
const [columnConfigResetRevision, setColumnConfigResetRevision] = react.useState(0);
|
|
3918
3921
|
const resolvedColumns = react.useMemo(
|
|
3919
3922
|
() => applyColumnManagerState(
|
|
3920
3923
|
columns,
|
|
@@ -3947,6 +3950,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3947
3950
|
loading,
|
|
3948
3951
|
onRow,
|
|
3949
3952
|
theme,
|
|
3953
|
+
styles,
|
|
3950
3954
|
striped,
|
|
3951
3955
|
highlightMode,
|
|
3952
3956
|
contextMenu,
|
|
@@ -3980,6 +3984,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3980
3984
|
...nextOptions,
|
|
3981
3985
|
...fullscreenSize,
|
|
3982
3986
|
columnConfigRevision,
|
|
3987
|
+
columnConfigResetRevision,
|
|
3983
3988
|
ui: {
|
|
3984
3989
|
...nextOptions.ui,
|
|
3985
3990
|
onDensityChange: setDensityOverride
|
|
@@ -3998,6 +4003,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3998
4003
|
loading,
|
|
3999
4004
|
onRow,
|
|
4000
4005
|
theme,
|
|
4006
|
+
styles,
|
|
4001
4007
|
striped,
|
|
4002
4008
|
highlightMode,
|
|
4003
4009
|
contextMenu,
|
|
@@ -4022,7 +4028,8 @@ function ReactListTableInner(props, ref) {
|
|
|
4022
4028
|
rowDrag,
|
|
4023
4029
|
resolvedDebug,
|
|
4024
4030
|
isFullscreen,
|
|
4025
|
-
columnConfigRevision
|
|
4031
|
+
columnConfigRevision,
|
|
4032
|
+
columnConfigResetRevision
|
|
4026
4033
|
]);
|
|
4027
4034
|
const {
|
|
4028
4035
|
containerRef,
|
|
@@ -4148,6 +4155,7 @@ function ReactListTableInner(props, ref) {
|
|
|
4148
4155
|
setColumnVisibility(/* @__PURE__ */ new Map());
|
|
4149
4156
|
setColumnOrders(/* @__PURE__ */ new Map());
|
|
4150
4157
|
setColumnConfig(/* @__PURE__ */ new Map());
|
|
4158
|
+
setColumnConfigResetRevision((current) => current + 1);
|
|
4151
4159
|
setColumnConfigRevision((current) => current + 1);
|
|
4152
4160
|
});
|
|
4153
4161
|
}
|
|
@@ -4303,6 +4311,10 @@ Object.defineProperty(exports, "SELECTION_COLUMN", {
|
|
|
4303
4311
|
enumerable: true,
|
|
4304
4312
|
get: function () { return listTable.SELECTION_COLUMN; }
|
|
4305
4313
|
});
|
|
4314
|
+
Object.defineProperty(exports, "getListTableStoredPageSize", {
|
|
4315
|
+
enumerable: true,
|
|
4316
|
+
get: function () { return listTable.getListTableStoredPageSize; }
|
|
4317
|
+
});
|
|
4306
4318
|
exports.ReactListTable = ReactListTable;
|
|
4307
4319
|
exports.ReactListTableDebugProvider = ReactListTableDebugProvider;
|
|
4308
4320
|
//# sourceMappingURL=index.cjs.map
|