@etsoo/materialui 1.5.90 → 1.5.91
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/cjs/ViewContainer.js
CHANGED
package/lib/mjs/ViewContainer.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.91",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
"@emotion/styled": "^11.14.1",
|
|
43
43
|
"@etsoo/appscript": "^1.6.49",
|
|
44
44
|
"@etsoo/notificationbase": "^1.1.66",
|
|
45
|
-
"@etsoo/react": "^1.8.
|
|
45
|
+
"@etsoo/react": "^1.8.65",
|
|
46
46
|
"@etsoo/shared": "^1.2.80",
|
|
47
47
|
"@mui/icons-material": "^7.3.6",
|
|
48
48
|
"@mui/material": "^7.3.6",
|
|
49
|
-
"@mui/x-data-grid": "^8.22.
|
|
49
|
+
"@mui/x-data-grid": "^8.22.1",
|
|
50
50
|
"chart.js": "^4.5.1",
|
|
51
51
|
"chartjs-plugin-datalabels": "^2.2.0",
|
|
52
52
|
"dompurify": "^3.3.1",
|
|
53
53
|
"eventemitter3": "^5.0.1",
|
|
54
54
|
"pica": "^9.0.1",
|
|
55
55
|
"pulltorefreshjs": "^0.1.22",
|
|
56
|
-
"react": "^19.2.
|
|
56
|
+
"react": "^19.2.3",
|
|
57
57
|
"react-avatar-editor": "^13.0.2",
|
|
58
58
|
"react-chartjs-2": "^5.3.1",
|
|
59
|
-
"react-dom": "^19.2.
|
|
59
|
+
"react-dom": "^19.2.3",
|
|
60
60
|
"react-draggable": "^4.5.0",
|
|
61
61
|
"react-imask": "7.6.1"
|
|
62
62
|
},
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@babel/preset-react": "^7.28.5",
|
|
74
74
|
"@babel/preset-typescript": "^7.28.5",
|
|
75
75
|
"@babel/runtime-corejs3": "^7.28.4",
|
|
76
|
-
"@testing-library/react": "^16.3.
|
|
76
|
+
"@testing-library/react": "^16.3.1",
|
|
77
77
|
"@types/pica": "^9.0.5",
|
|
78
78
|
"@types/pulltorefreshjs": "^0.1.7",
|
|
79
79
|
"@types/react": "^19.2.7",
|
|
@@ -83,6 +83,6 @@
|
|
|
83
83
|
"@vitejs/plugin-react": "^5.1.2",
|
|
84
84
|
"jsdom": "^27.3.0",
|
|
85
85
|
"typescript": "^5.9.3",
|
|
86
|
-
"vitest": "^4.0.
|
|
86
|
+
"vitest": "^4.0.16"
|
|
87
87
|
}
|
|
88
88
|
}
|
package/src/ViewContainer.tsx
CHANGED
|
@@ -74,7 +74,9 @@ function getItemField<T extends object>(
|
|
|
74
74
|
isHorizontal = horizontal;
|
|
75
75
|
|
|
76
76
|
// Size
|
|
77
|
-
size = getResp(
|
|
77
|
+
size = getResp(
|
|
78
|
+
typeof singleRow === "function" ? singleRow(data) : singleRow
|
|
79
|
+
);
|
|
78
80
|
|
|
79
81
|
gridProps = {
|
|
80
82
|
...rest,
|
|
@@ -252,7 +254,7 @@ export interface ViewPageField<T extends object> extends GridProps {
|
|
|
252
254
|
/**
|
|
253
255
|
* Display as single row
|
|
254
256
|
*/
|
|
255
|
-
singleRow?: ViewPageRowType;
|
|
257
|
+
singleRow?: ViewPageRowType | ((item: T) => ViewPageRowType);
|
|
256
258
|
|
|
257
259
|
/**
|
|
258
260
|
* Render as horizontal or not
|