@etsoo/materialui 1.6.35 → 1.6.36
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/NotifierMU.js +5 -5
- package/lib/mjs/NotifierMU.js +5 -5
- package/package.json +1 -1
- package/src/NotifierMU.tsx +21 -21
package/lib/cjs/NotifierMU.js
CHANGED
|
@@ -260,11 +260,11 @@ class NotificationMU extends react_2.NotificationReact {
|
|
|
260
260
|
}
|
|
261
261
|
// Setup callback
|
|
262
262
|
const options = this.renderSetup ? this.renderSetup({}) : undefined;
|
|
263
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
263
|
+
return ((0, jsx_runtime_1.jsx)("form", { onSubmit: (event) => {
|
|
264
|
+
event.preventDefault();
|
|
265
|
+
event.currentTarget.elements.namedItem("okButton")?.click();
|
|
266
|
+
return false;
|
|
267
|
+
}, children: (0, jsx_runtime_1.jsxs)(Dialog_1.default, { open: this.open, PaperComponent: draggable ? DraggablePaperComponent_1.DraggablePaperComponent : undefined, className: className, fullWidth: fullWidth, maxWidth: maxWidth, fullScreen: fullScreen, scroll: "paper", ...options, children: [(0, jsx_runtime_1.jsxs)(IconDialogTitle, { draggable: draggable, className: draggable ? "dialog-title draggable-dialog-title" : "dialog-title", children: [(0, jsx_runtime_1.jsx)(Info_1.default, { color: "primary" }), (0, jsx_runtime_1.jsx)("span", { className: "dialogTitle", children: title }), closable && ((0, jsx_runtime_1.jsx)(IconButton_1.default, { className: "MuiDialogContent-root-close-button", size: "small", onClick: () => this.returnValue("CLOSE"), children: (0, jsx_runtime_1.jsx)(Close_1.default, {}) }))] }), (0, jsx_runtime_1.jsxs)(DialogContent_1.default, { dividers: true, children: [typeof this.content === "string" ? ((0, jsx_runtime_1.jsx)(DialogContentText_1.default, { children: this.content })) : (this.content), localInputs, (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "caption", display: "block", ref: errorRef, color: "error" })] }), (0, jsx_runtime_1.jsx)(DialogActions_1.default, { children: buttons ? (buttons(this, handleSubmit)) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [cancelButton && ((0, jsx_runtime_1.jsx)(Button_1.default, { color: "secondary", onClick: () => {
|
|
268
268
|
if (this.onReturn)
|
|
269
269
|
this.onReturn(undefined);
|
|
270
270
|
this.dismiss();
|
package/lib/mjs/NotifierMU.js
CHANGED
|
@@ -254,11 +254,11 @@ export class NotificationMU extends NotificationReact {
|
|
|
254
254
|
}
|
|
255
255
|
// Setup callback
|
|
256
256
|
const options = this.renderSetup ? this.renderSetup({}) : undefined;
|
|
257
|
-
return (_jsx(
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
257
|
+
return (_jsx("form", { onSubmit: (event) => {
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
event.currentTarget.elements.namedItem("okButton")?.click();
|
|
260
|
+
return false;
|
|
261
|
+
}, children: _jsxs(Dialog, { open: this.open, PaperComponent: draggable ? DraggablePaperComponent : undefined, className: className, fullWidth: fullWidth, maxWidth: maxWidth, fullScreen: fullScreen, scroll: "paper", ...options, children: [_jsxs(IconDialogTitle, { draggable: draggable, className: draggable ? "dialog-title draggable-dialog-title" : "dialog-title", children: [_jsx(InfoIcon, { color: "primary" }), _jsx("span", { className: "dialogTitle", children: title }), closable && (_jsx(IconButton, { className: "MuiDialogContent-root-close-button", size: "small", onClick: () => this.returnValue("CLOSE"), children: _jsx(CloseIcon, {}) }))] }), _jsxs(DialogContent, { dividers: true, children: [typeof this.content === "string" ? (_jsx(DialogContentText, { children: this.content })) : (this.content), localInputs, _jsx(Typography, { variant: "caption", display: "block", ref: errorRef, color: "error" })] }), _jsx(DialogActions, { children: buttons ? (buttons(this, handleSubmit)) : (_jsxs(React.Fragment, { children: [cancelButton && (_jsx(Button, { color: "secondary", onClick: () => {
|
|
262
262
|
if (this.onReturn)
|
|
263
263
|
this.onReturn(undefined);
|
|
264
264
|
this.dismiss();
|
package/package.json
CHANGED
package/src/NotifierMU.tsx
CHANGED
|
@@ -606,27 +606,27 @@ export class NotificationMU extends NotificationReact {
|
|
|
606
606
|
const options = this.renderSetup ? this.renderSetup({}) : undefined;
|
|
607
607
|
|
|
608
608
|
return (
|
|
609
|
-
<
|
|
609
|
+
<form
|
|
610
610
|
key={this.id}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
611
|
+
onSubmit={(event) => {
|
|
612
|
+
event.preventDefault();
|
|
613
|
+
(
|
|
614
|
+
event.currentTarget.elements.namedItem(
|
|
615
|
+
"okButton"
|
|
616
|
+
) as HTMLButtonElement
|
|
617
|
+
)?.click();
|
|
618
|
+
return false;
|
|
619
|
+
}}
|
|
619
620
|
>
|
|
620
|
-
<
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
}}
|
|
621
|
+
<Dialog
|
|
622
|
+
open={this.open}
|
|
623
|
+
PaperComponent={draggable ? DraggablePaperComponent : undefined}
|
|
624
|
+
className={className}
|
|
625
|
+
fullWidth={fullWidth}
|
|
626
|
+
maxWidth={maxWidth}
|
|
627
|
+
fullScreen={fullScreen}
|
|
628
|
+
scroll="paper"
|
|
629
|
+
{...options}
|
|
630
630
|
>
|
|
631
631
|
<IconDialogTitle
|
|
632
632
|
draggable={draggable}
|
|
@@ -690,8 +690,8 @@ export class NotificationMU extends NotificationReact {
|
|
|
690
690
|
</React.Fragment>
|
|
691
691
|
)}
|
|
692
692
|
</DialogActions>
|
|
693
|
-
</
|
|
694
|
-
</
|
|
693
|
+
</Dialog>
|
|
694
|
+
</form>
|
|
695
695
|
);
|
|
696
696
|
}
|
|
697
697
|
|