@etsoo/materialui 1.3.7 → 1.3.8
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/EditPage.d.ts +4 -0
- package/lib/pages/EditPage.js +3 -2
- package/package.json +11 -11
- package/src/pages/EditPage.tsx +7 -0
package/lib/pages/EditPage.d.ts
CHANGED
package/lib/pages/EditPage.js
CHANGED
|
@@ -13,7 +13,7 @@ import { OperationMessageContainer } from "../messages/OperationMessageContainer
|
|
|
13
13
|
*/
|
|
14
14
|
export function EditPage(props) {
|
|
15
15
|
// Destruct
|
|
16
|
-
const { children, isEditing, onDelete, onSubmit, paddings = MUGlobal.pagePaddings, scrollContainer = CommonPageScrollContainer, supportBack = true, submitDisabled = false, topPart, operationMessageHandler, ...rest } = props;
|
|
16
|
+
const { children, isEditing, onDelete, onSubmit, paddings = MUGlobal.pagePaddings, scrollContainer = CommonPageScrollContainer, supportBack = true, submitDisabled = false, bottomPart, topPart, operationMessageHandler, ...rest } = props;
|
|
17
17
|
// Labels
|
|
18
18
|
const labels = Labels.CommonPage;
|
|
19
19
|
return (React.createElement(CommonPage, { paddings: paddings, scrollContainer: scrollContainer, ...rest },
|
|
@@ -28,5 +28,6 @@ export function EditPage(props) {
|
|
|
28
28
|
} },
|
|
29
29
|
isEditing && onDelete && (React.createElement(Button, { color: "primary", variant: "outlined", onClick: () => onDelete(), startIcon: React.createElement(DeleteIcon, { color: "warning" }) }, labels.delete)),
|
|
30
30
|
React.createElement(Button, { variant: "contained", type: "submit", startIcon: React.createElement(SaveIcon, null), sx: { flexGrow: 1 }, disabled: submitDisabled }, labels.save),
|
|
31
|
-
supportBack && React.createElement(BackButton, { title: labels.back })))
|
|
31
|
+
supportBack && React.createElement(BackButton, { title: labels.back }))),
|
|
32
|
+
bottomPart));
|
|
32
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
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.41",
|
|
54
54
|
"@etsoo/notificationbase": "^1.1.28",
|
|
55
55
|
"@etsoo/react": "^1.7.7",
|
|
56
56
|
"@etsoo/shared": "^1.2.10",
|
|
@@ -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.
|
|
82
|
-
"@babel/preset-react": "^7.22.
|
|
83
|
-
"@babel/preset-typescript": "^7.22.
|
|
84
|
-
"@babel/runtime-corejs3": "^7.22.
|
|
78
|
+
"@babel/cli": "^7.22.15",
|
|
79
|
+
"@babel/core": "^7.22.15",
|
|
80
|
+
"@babel/plugin-transform-runtime": "^7.22.15",
|
|
81
|
+
"@babel/preset-env": "^7.22.15",
|
|
82
|
+
"@babel/preset-react": "^7.22.15",
|
|
83
|
+
"@babel/preset-typescript": "^7.22.15",
|
|
84
|
+
"@babel/runtime-corejs3": "^7.22.15",
|
|
85
85
|
"@testing-library/jest-dom": "^6.1.2",
|
|
86
86
|
"@testing-library/react": "^14.0.0",
|
|
87
87
|
"@types/jest": "^29.5.4",
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
89
|
-
"@typescript-eslint/parser": "^6.
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
|
89
|
+
"@typescript-eslint/parser": "^6.6.0",
|
|
90
90
|
"jest": "^29.6.4",
|
|
91
91
|
"jest-environment-jsdom": "^29.6.4",
|
|
92
92
|
"typescript": "^5.2.2"
|
package/src/pages/EditPage.tsx
CHANGED
|
@@ -40,6 +40,11 @@ export interface EditPageProps extends Omit<CommonPageProps, "onSubmit"> {
|
|
|
40
40
|
*/
|
|
41
41
|
supportBack?: boolean;
|
|
42
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Bottom part
|
|
45
|
+
*/
|
|
46
|
+
bottomPart?: React.ReactNode;
|
|
47
|
+
|
|
43
48
|
/**
|
|
44
49
|
* Top part
|
|
45
50
|
*/
|
|
@@ -66,6 +71,7 @@ export function EditPage(props: EditPageProps) {
|
|
|
66
71
|
scrollContainer = CommonPageScrollContainer,
|
|
67
72
|
supportBack = true,
|
|
68
73
|
submitDisabled = false,
|
|
74
|
+
bottomPart,
|
|
69
75
|
topPart,
|
|
70
76
|
operationMessageHandler,
|
|
71
77
|
...rest
|
|
@@ -118,6 +124,7 @@ export function EditPage(props: EditPageProps) {
|
|
|
118
124
|
{supportBack && <BackButton title={labels.back} />}
|
|
119
125
|
</Grid>
|
|
120
126
|
</form>
|
|
127
|
+
{bottomPart}
|
|
121
128
|
</CommonPage>
|
|
122
129
|
);
|
|
123
130
|
}
|