@etsoo/materialui 1.3.13 → 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 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 = 120, 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;
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
package/lib/SelectEx.js CHANGED
@@ -133,7 +133,7 @@ export function SelectEx(props) {
133
133
  ? valueState
134
134
  : localOptions.some((o) => o[idField] === valueState)
135
135
  ? valueState
136
- : "", input: React.createElement(OutlinedInput, { notched: true, label: label, required: required, "data-reset": inputReset }), labelId: labelId, name: name, multiple: multiple, onChange: (event, child) => {
136
+ : "", input: React.createElement(OutlinedInput, { notched: true, label: label, required: required, inputProps: { "data-reset": inputReset } }), labelId: labelId, name: name, multiple: multiple, onChange: (event, child) => {
137
137
  if (onChange) {
138
138
  onChange(event, child);
139
139
  // event.preventDefault() will block executing
@@ -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 = 120, ...rest } = props;
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 = 120, ...rest } = props;
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({});
@@ -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 = 120, ...rest } = props;
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({});
@@ -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 = 120, ...rest } = props;
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.13",
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.52",
53
+ "@etsoo/appscript": "^1.4.53",
54
54
  "@etsoo/notificationbase": "^1.1.28",
55
- "@etsoo/react": "^1.7.8",
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.13.0",
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.17",
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 = 120,
201
+ cacheMinutes = 15,
202
202
  columns,
203
203
  containerBoxSx = defaultContainerBoxSx,
204
204
  dataGridMinWidth = Math.max(576, DataGridExCalColumns(columns).total),
package/src/SelectEx.tsx CHANGED
@@ -302,7 +302,7 @@ export function SelectEx<
302
302
  notched
303
303
  label={label}
304
304
  required={required}
305
- data-reset={inputReset}
305
+ inputProps={{ "data-reset": inputReset }}
306
306
  />
307
307
  }
308
308
  labelId={labelId}
@@ -45,7 +45,7 @@ export function DataGridPage<
45
45
  sizeReadyMiliseconds = 100,
46
46
  pageProps = {},
47
47
  cacheKey,
48
- cacheMinutes = 120,
48
+ cacheMinutes = 15,
49
49
  ...rest
50
50
  } = props;
51
51
 
@@ -46,7 +46,7 @@ export function FixedListPage<
46
46
  sizeReadyMiliseconds = 0,
47
47
  pageProps = {},
48
48
  cacheKey,
49
- cacheMinutes = 120,
49
+ cacheMinutes = 15,
50
50
  ...rest
51
51
  } = props;
52
52
 
@@ -34,7 +34,7 @@ export function ListPage<
34
34
  mRef,
35
35
  pageProps = {},
36
36
  cacheKey,
37
- cacheMinutes = 120,
37
+ cacheMinutes = 15,
38
38
  ...rest
39
39
  } = props;
40
40
 
@@ -33,7 +33,7 @@ export function TablePage<
33
33
  sizeReadyMiliseconds = 0,
34
34
  pageProps = {},
35
35
  cacheKey,
36
- cacheMinutes = 120,
36
+ cacheMinutes = 15,
37
37
  ...rest
38
38
  } = props;
39
39