@etsoo/materialui 1.2.67 → 1.2.69
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/pages/ViewPage.d.ts +1 -1
- package/lib/pages/ViewPage.js +5 -5
- package/package.json +17 -17
- package/src/pages/ViewPage.tsx +6 -6
package/lib/pages/ViewPage.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { CommonPageProps } from "./CommonPageProps";
|
|
|
6
6
|
/**
|
|
7
7
|
* View page row width type
|
|
8
8
|
*/
|
|
9
|
-
export type ViewPageRowType = boolean | "default" | "small" | object;
|
|
9
|
+
export type ViewPageRowType = boolean | "default" | "small" | "medium" | object;
|
|
10
10
|
/**
|
|
11
11
|
* View page display field
|
|
12
12
|
*/
|
package/lib/pages/ViewPage.js
CHANGED
|
@@ -22,16 +22,16 @@ function formatItemData(fieldData) {
|
|
|
22
22
|
function getResp(singleRow) {
|
|
23
23
|
return typeof singleRow === "object"
|
|
24
24
|
? singleRow
|
|
25
|
-
: singleRow === "
|
|
26
|
-
? { xs: 12, sm: 12, md:
|
|
25
|
+
: singleRow === "medium"
|
|
26
|
+
? { xs: 12, sm: 12, md: 6, lg: 4, xl: 3 }
|
|
27
27
|
: singleRow === true
|
|
28
28
|
? { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }
|
|
29
29
|
: {
|
|
30
30
|
xs: singleRow === false ? 12 : 6,
|
|
31
31
|
sm: 6,
|
|
32
|
-
md:
|
|
33
|
-
lg:
|
|
34
|
-
xl:
|
|
32
|
+
md: 4,
|
|
33
|
+
lg: 3,
|
|
34
|
+
xl: 2
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
function getItemField(field, data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.69",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,18 +50,18 @@
|
|
|
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.26",
|
|
54
54
|
"@etsoo/notificationbase": "^1.1.25",
|
|
55
|
-
"@etsoo/react": "^1.6.
|
|
56
|
-
"@etsoo/shared": "^1.2.
|
|
57
|
-
"@mui/icons-material": "^5.
|
|
58
|
-
"@mui/material": "^5.
|
|
59
|
-
"@mui/x-data-grid": "^6.
|
|
55
|
+
"@etsoo/react": "^1.6.97",
|
|
56
|
+
"@etsoo/shared": "^1.2.8",
|
|
57
|
+
"@mui/icons-material": "^5.14.0",
|
|
58
|
+
"@mui/material": "^5.14.0",
|
|
59
|
+
"@mui/x-data-grid": "^6.10.0",
|
|
60
60
|
"@types/pica": "^9.0.1",
|
|
61
61
|
"@types/pulltorefreshjs": "^0.1.5",
|
|
62
|
-
"@types/react": "^18.2.
|
|
62
|
+
"@types/react": "^18.2.15",
|
|
63
63
|
"@types/react-avatar-editor": "^13.0.0",
|
|
64
|
-
"@types/react-dom": "^18.2.
|
|
64
|
+
"@types/react-dom": "^18.2.7",
|
|
65
65
|
"@types/react-input-mask": "^3.0.2",
|
|
66
66
|
"chart.js": "^4.3.0",
|
|
67
67
|
"chartjs-plugin-datalabels": "^2.2.0",
|
|
@@ -75,18 +75,18 @@
|
|
|
75
75
|
"react-imask": "6.6.3"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@babel/cli": "^7.22.
|
|
79
|
-
"@babel/core": "^7.22.
|
|
80
|
-
"@babel/plugin-transform-runtime": "^7.22.
|
|
81
|
-
"@babel/preset-env": "^7.22.
|
|
78
|
+
"@babel/cli": "^7.22.9",
|
|
79
|
+
"@babel/core": "^7.22.9",
|
|
80
|
+
"@babel/plugin-transform-runtime": "^7.22.9",
|
|
81
|
+
"@babel/preset-env": "^7.22.9",
|
|
82
82
|
"@babel/preset-react": "^7.22.5",
|
|
83
83
|
"@babel/preset-typescript": "^7.22.5",
|
|
84
84
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
85
|
-
"@testing-library/jest-dom": "^5.
|
|
85
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
86
86
|
"@testing-library/react": "^14.0.0",
|
|
87
|
-
"@types/jest": "^29.5.
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
89
|
-
"@typescript-eslint/parser": "^
|
|
87
|
+
"@types/jest": "^29.5.3",
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
|
89
|
+
"@typescript-eslint/parser": "^6.1.0",
|
|
90
90
|
"jest": "^29.6.1",
|
|
91
91
|
"jest-environment-jsdom": "^29.6.1",
|
|
92
92
|
"typescript": "^5.1.6"
|
package/src/pages/ViewPage.tsx
CHANGED
|
@@ -23,7 +23,7 @@ import { CommonPageProps } from "./CommonPageProps";
|
|
|
23
23
|
/**
|
|
24
24
|
* View page row width type
|
|
25
25
|
*/
|
|
26
|
-
export type ViewPageRowType = boolean | "default" | "small" | object;
|
|
26
|
+
export type ViewPageRowType = boolean | "default" | "small" | "medium" | object;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* View page display field
|
|
@@ -135,16 +135,16 @@ function formatItemData(fieldData: unknown): string | undefined {
|
|
|
135
135
|
function getResp(singleRow: ViewPageRowType) {
|
|
136
136
|
return typeof singleRow === "object"
|
|
137
137
|
? singleRow
|
|
138
|
-
: singleRow === "
|
|
139
|
-
? { xs: 12, sm: 12, md:
|
|
138
|
+
: singleRow === "medium"
|
|
139
|
+
? { xs: 12, sm: 12, md: 6, lg: 4, xl: 3 }
|
|
140
140
|
: singleRow === true
|
|
141
141
|
? { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }
|
|
142
142
|
: {
|
|
143
143
|
xs: singleRow === false ? 12 : 6,
|
|
144
144
|
sm: 6,
|
|
145
|
-
md:
|
|
146
|
-
lg:
|
|
147
|
-
xl:
|
|
145
|
+
md: 4,
|
|
146
|
+
lg: 3,
|
|
147
|
+
xl: 2
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
|