@etsoo/materialui 1.3.53 → 1.3.55

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/lib/TableEx.js CHANGED
@@ -61,10 +61,6 @@ export function TableEx(props) {
61
61
  const reset = (add) => {
62
62
  const { queryPaging, ...rest } = add ?? {};
63
63
  const resetState = {
64
- queryPaging: {
65
- currentPage: 0,
66
- ...queryPaging
67
- },
68
64
  autoLoad: true,
69
65
  loadedItems: 0,
70
66
  hasNextPage: true,
@@ -73,6 +69,10 @@ export function TableEx(props) {
73
69
  ...rest
74
70
  };
75
71
  Object.assign(state, resetState);
72
+ Object.assign(state.queryPaging, {
73
+ currentPage: 0,
74
+ ...queryPaging
75
+ });
76
76
  };
77
77
  React.useImperativeHandle(mRef, () => ({
78
78
  delete(index) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.3.53",
3
+ "version": "1.3.55",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -50,10 +50,10 @@
50
50
  "@emotion/css": "^11.11.2",
51
51
  "@emotion/react": "^11.11.4",
52
52
  "@emotion/styled": "^11.11.5",
53
- "@etsoo/appscript": "^1.4.86",
53
+ "@etsoo/appscript": "^1.4.87",
54
54
  "@etsoo/notificationbase": "^1.1.42",
55
- "@etsoo/react": "^1.7.39",
56
- "@etsoo/shared": "^1.2.37",
55
+ "@etsoo/react": "^1.7.41",
56
+ "@etsoo/shared": "^1.2.40",
57
57
  "@mui/icons-material": "^5.15.17",
58
58
  "@mui/material": "^5.15.17",
59
59
  "@mui/x-data-grid": "^7.3.2",
package/src/TableEx.tsx CHANGED
@@ -174,10 +174,6 @@ export function TableEx<
174
174
  const reset = (add?: GridLoaderPartialStates<T>) => {
175
175
  const { queryPaging, ...rest } = add ?? {};
176
176
  const resetState: GridLoaderPartialStates<T> = {
177
- queryPaging: {
178
- currentPage: 0,
179
- ...queryPaging
180
- },
181
177
  autoLoad: true,
182
178
  loadedItems: 0,
183
179
  hasNextPage: true,
@@ -186,6 +182,10 @@ export function TableEx<
186
182
  ...rest
187
183
  };
188
184
  Object.assign(state, resetState);
185
+ Object.assign(state.queryPaging, {
186
+ currentPage: 0,
187
+ ...queryPaging
188
+ });
189
189
  };
190
190
 
191
191
  React.useImperativeHandle(