@etsoo/materialui 1.3.14 → 1.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/lib/GridUtils.js +1 -0
- package/lib/ResponsibleContainer.js +1 -1
- package/lib/pages/DataGridPage.js +1 -1
- package/lib/pages/FixedListPage.js +1 -1
- package/lib/pages/ListPage.js +1 -1
- package/lib/pages/TablePage.js +1 -1
- package/package.json +5 -5
- package/src/GridUtils.ts +1 -0
- package/src/ResponsibleContainer.tsx +1 -1
- package/src/pages/DataGridPage.tsx +1 -1
- package/src/pages/FixedListPage.tsx +1 -1
- package/src/pages/ListPage.tsx +1 -1
- package/src/pages/TablePage.tsx +1 -1
package/lib/GridUtils.js
CHANGED
|
@@ -30,6 +30,7 @@ export var GridUtils;
|
|
|
30
30
|
if (cacheSource) {
|
|
31
31
|
const cacheData = JSON.parse(cacheSource);
|
|
32
32
|
if (new Date().valueOf() - cacheData.creation > cacheMinutes * 60000) {
|
|
33
|
+
sessionStorage.removeItem(`${cacheKey}-searchbar`);
|
|
33
34
|
sessionStorage.removeItem(cacheKey);
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
@@ -23,7 +23,7 @@ function defaultContainerBoxSx(paddings, hasField, _dataGrid) {
|
|
|
23
23
|
*/
|
|
24
24
|
export function ResponsibleContainer(props) {
|
|
25
25
|
// Destruct
|
|
26
|
-
const { adjustHeight, adjustFabHeight, cacheKey, cacheMinutes =
|
|
26
|
+
const { adjustHeight, adjustFabHeight, cacheKey, cacheMinutes = 15, columns, containerBoxSx = defaultContainerBoxSx, dataGridMinWidth = Math.max(576, DataGridExCalColumns(columns).total), elementReady, fields, fieldTemplate, height, loadData, mRef, paddings = MUGlobal.pagePaddings, pullToRefresh = true, quickAction, sizeReadyMiliseconds = 0, searchBarHeight = 45.6, ...rest } = props;
|
|
27
27
|
// Labels
|
|
28
28
|
const labels = Labels.CommonPage;
|
|
29
29
|
// Refs
|
|
@@ -14,7 +14,7 @@ import { GridUtils } from "../GridUtils";
|
|
|
14
14
|
export function DataGridPage(props) {
|
|
15
15
|
var _a;
|
|
16
16
|
// Destruct
|
|
17
|
-
const { adjustHeight, fields, fieldTemplate, height, loadData, mRef, sizeReadyMiliseconds = 100, pageProps = {}, cacheKey, cacheMinutes =
|
|
17
|
+
const { adjustHeight, fields, fieldTemplate, height, loadData, mRef, sizeReadyMiliseconds = 100, pageProps = {}, cacheKey, cacheMinutes = 15, ...rest } = props;
|
|
18
18
|
(_a = pageProps.paddings) !== null && _a !== void 0 ? _a : (pageProps.paddings = MUGlobal.pagePaddings);
|
|
19
19
|
// States
|
|
20
20
|
const [states, setStates] = React.useReducer((currentState, newState) => {
|
|
@@ -14,7 +14,7 @@ import { GridUtils } from "../GridUtils";
|
|
|
14
14
|
export function FixedListPage(props) {
|
|
15
15
|
var _a;
|
|
16
16
|
// Destruct
|
|
17
|
-
const { adjustHeight, fields, fieldTemplate, loadData, mRef, sizeReadyMiliseconds = 0, pageProps = {}, cacheKey, cacheMinutes =
|
|
17
|
+
const { adjustHeight, fields, fieldTemplate, loadData, mRef, sizeReadyMiliseconds = 0, pageProps = {}, cacheKey, cacheMinutes = 15, ...rest } = props;
|
|
18
18
|
(_a = pageProps.paddings) !== null && _a !== void 0 ? _a : (pageProps.paddings = MUGlobal.pagePaddings);
|
|
19
19
|
// States
|
|
20
20
|
const [states] = React.useState({});
|
package/lib/pages/ListPage.js
CHANGED
|
@@ -14,7 +14,7 @@ import { GridUtils } from "../GridUtils";
|
|
|
14
14
|
export function ListPage(props) {
|
|
15
15
|
var _a;
|
|
16
16
|
// Destruct
|
|
17
|
-
const { fields, fieldTemplate, loadData, mRef, pageProps = {}, cacheKey, cacheMinutes =
|
|
17
|
+
const { fields, fieldTemplate, loadData, mRef, pageProps = {}, cacheKey, cacheMinutes = 15, ...rest } = props;
|
|
18
18
|
(_a = pageProps.paddings) !== null && _a !== void 0 ? _a : (pageProps.paddings = MUGlobal.pagePaddings);
|
|
19
19
|
// States
|
|
20
20
|
const [states] = React.useState({});
|
package/lib/pages/TablePage.js
CHANGED
|
@@ -14,7 +14,7 @@ import { GridUtils } from "../GridUtils";
|
|
|
14
14
|
export function TablePage(props) {
|
|
15
15
|
var _a;
|
|
16
16
|
// Destruct
|
|
17
|
-
const { columns, fields, fieldTemplate, loadData, mRef, sizeReadyMiliseconds = 0, pageProps = {}, cacheKey, cacheMinutes =
|
|
17
|
+
const { columns, fields, fieldTemplate, loadData, mRef, sizeReadyMiliseconds = 0, pageProps = {}, cacheKey, cacheMinutes = 15, ...rest } = props;
|
|
18
18
|
(_a = pageProps.paddings) !== null && _a !== void 0 ? _a : (pageProps.paddings = MUGlobal.pagePaddings);
|
|
19
19
|
// States
|
|
20
20
|
const [states] = React.useState({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.15",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
"@emotion/css": "^11.11.2",
|
|
51
51
|
"@emotion/react": "^11.11.1",
|
|
52
52
|
"@emotion/styled": "^11.11.0",
|
|
53
|
-
"@etsoo/appscript": "^1.4.
|
|
53
|
+
"@etsoo/appscript": "^1.4.53",
|
|
54
54
|
"@etsoo/notificationbase": "^1.1.28",
|
|
55
|
-
"@etsoo/react": "^1.7.
|
|
55
|
+
"@etsoo/react": "^1.7.9",
|
|
56
56
|
"@etsoo/shared": "^1.2.12",
|
|
57
57
|
"@mui/icons-material": "^5.14.9",
|
|
58
58
|
"@mui/material": "^5.14.9",
|
|
59
|
-
"@mui/x-data-grid": "^6.
|
|
59
|
+
"@mui/x-data-grid": "^6.14.0",
|
|
60
60
|
"@types/pica": "^9.0.1",
|
|
61
61
|
"@types/pulltorefreshjs": "^0.1.5",
|
|
62
62
|
"@types/react": "^18.2.21",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@babel/cli": "^7.22.15",
|
|
79
|
-
"@babel/core": "^7.22.
|
|
79
|
+
"@babel/core": "^7.22.19",
|
|
80
80
|
"@babel/plugin-transform-runtime": "^7.22.15",
|
|
81
81
|
"@babel/preset-env": "^7.22.15",
|
|
82
82
|
"@babel/preset-react": "^7.22.15",
|
package/src/GridUtils.ts
CHANGED
|
@@ -42,6 +42,7 @@ export namespace GridUtils {
|
|
|
42
42
|
if (cacheSource) {
|
|
43
43
|
const cacheData = JSON.parse(cacheSource) as GridDataCacheType<T>;
|
|
44
44
|
if (new Date().valueOf() - cacheData.creation > cacheMinutes * 60000) {
|
|
45
|
+
sessionStorage.removeItem(`${cacheKey}-searchbar`);
|
|
45
46
|
sessionStorage.removeItem(cacheKey);
|
|
46
47
|
return;
|
|
47
48
|
}
|
|
@@ -198,7 +198,7 @@ export function ResponsibleContainer<
|
|
|
198
198
|
adjustHeight,
|
|
199
199
|
adjustFabHeight,
|
|
200
200
|
cacheKey,
|
|
201
|
-
cacheMinutes =
|
|
201
|
+
cacheMinutes = 15,
|
|
202
202
|
columns,
|
|
203
203
|
containerBoxSx = defaultContainerBoxSx,
|
|
204
204
|
dataGridMinWidth = Math.max(576, DataGridExCalColumns(columns).total),
|
package/src/pages/ListPage.tsx
CHANGED