@arquimedes.co/eureka-forms 2.0.80 → 2.0.82
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/dist/App/App.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface AppProps {
|
|
|
36
36
|
customConfirmation?: (confirmation: {
|
|
37
37
|
url: string;
|
|
38
38
|
caseNumber: string;
|
|
39
|
-
}, renderIcon: () => JSX.Element, renderConfirmation: (state?: EditorState) => JSX.Element | void, renderLink: () => JSX.Element | void) => JSX.Element;
|
|
39
|
+
}, renderIcon: () => JSX.Element, renderConfirmation: (state?: EditorState) => JSX.Element | void, renderLink: () => JSX.Element | void, onClose: () => void) => JSX.Element;
|
|
40
40
|
/** Custom function to call on send */
|
|
41
41
|
customSubmit?: (values: Record<string, unknown>, reload: () => void) => Promise<void>;
|
|
42
42
|
/** Custom submit function, when passed it is called */
|
|
@@ -85,6 +85,6 @@ function ConfirmationDialog(_a) {
|
|
|
85
85
|
} }, { children: _jsx(CloseRoundedIcon, { fontSize: "inherit" }) })), !customConfirmation && (_jsxs("div", __assign({ className: styles.container }, { children: [renderIcon(), renderConfirmation(), renderLink()] }))), customConfirmation === null || customConfirmation === void 0 ? void 0 : customConfirmation({
|
|
86
86
|
url: confirmation.url,
|
|
87
87
|
caseNumber: confirmation.case,
|
|
88
|
-
}, renderIcon, renderConfirmation, renderLink)] })) })));
|
|
88
|
+
}, renderIcon, renderConfirmation, renderLink, onClose)] })) })));
|
|
89
89
|
}
|
|
90
90
|
export default ConfirmationDialog;
|
|
@@ -254,18 +254,23 @@ function CustomSelect(_a) {
|
|
|
254
254
|
: {
|
|
255
255
|
margin: containerMargin,
|
|
256
256
|
}, fullWidth: true, required: required, error: error }, { children: [label && (_jsx(InputLabel, __assign({ classes: labelClasses }, { children: label }))), _jsx(Select, __assign({}, others, { innerRef: ref, title: calcTimeString(value), value: value ? 0 : '', IconComponent: ScheduleRoundedIcon, onClose: function () {
|
|
257
|
-
|
|
257
|
+
if (!cantEdit)
|
|
258
|
+
setOpen(false);
|
|
258
259
|
}, onOpen: function () {
|
|
260
|
+
if (cantEdit)
|
|
261
|
+
return;
|
|
259
262
|
setOpen(true);
|
|
260
263
|
if (required)
|
|
261
264
|
handleChange(value !== null && value !== void 0 ? value : {});
|
|
262
265
|
}, onFocus: function (e) {
|
|
263
266
|
var _a;
|
|
264
|
-
if (!((_a = e.relatedTarget) === null || _a === void 0 ? void 0 : _a.closest('.EF-MuiPaper-root'))
|
|
267
|
+
if (!((_a = e.relatedTarget) === null || _a === void 0 ? void 0 : _a.closest('.EF-MuiPaper-root')) &&
|
|
268
|
+
!cantEdit) {
|
|
265
269
|
setOpen(true);
|
|
266
270
|
}
|
|
267
271
|
}, onBlur: function () {
|
|
268
|
-
|
|
272
|
+
if (!cantEdit)
|
|
273
|
+
setOpen(false);
|
|
269
274
|
}, input: _jsx(OutlinedInput, { disabled: cantEdit, name: label, label: label ? calcLabel() : undefined, classes: outlinedInputClasses }), renderValue: function () {
|
|
270
275
|
return calcTimeString(value);
|
|
271
276
|
}, MenuProps: {
|