@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.
@@ -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)(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)("form", { onSubmit: (event) => {
264
- event.preventDefault();
265
- event.currentTarget.elements.namedItem("okButton")?.click();
266
- return false;
267
- }, 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: () => {
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();
@@ -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(Dialog, { open: this.open, PaperComponent: draggable ? DraggablePaperComponent : undefined, className: className, fullWidth: fullWidth, maxWidth: maxWidth, fullScreen: fullScreen, scroll: "paper", ...options, children: _jsxs("form", { onSubmit: (event) => {
258
- event.preventDefault();
259
- event.currentTarget.elements.namedItem("okButton")?.click();
260
- return false;
261
- }, 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: () => {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.6.35",
3
+ "version": "1.6.36",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -606,27 +606,27 @@ export class NotificationMU extends NotificationReact {
606
606
  const options = this.renderSetup ? this.renderSetup({}) : undefined;
607
607
 
608
608
  return (
609
- <Dialog
609
+ <form
610
610
  key={this.id}
611
- open={this.open}
612
- PaperComponent={draggable ? DraggablePaperComponent : undefined}
613
- className={className}
614
- fullWidth={fullWidth}
615
- maxWidth={maxWidth}
616
- fullScreen={fullScreen}
617
- scroll="paper"
618
- {...options}
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
- <form
621
- onSubmit={(event) => {
622
- event.preventDefault();
623
- (
624
- event.currentTarget.elements.namedItem(
625
- "okButton"
626
- ) as HTMLButtonElement
627
- )?.click();
628
- return false;
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
- </form>
694
- </Dialog>
693
+ </Dialog>
694
+ </form>
695
695
  );
696
696
  }
697
697