@mcurros2/microm 1.1.414-0 → 1.1.415-0
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4686,7 +4686,7 @@ const $6d150b07756690a5$export$1c1b666b210bfb32 = {
|
|
|
4686
4686
|
formHeight: '100%'
|
|
4687
4687
|
};
|
|
4688
4688
|
function $6d150b07756690a5$export$6d892edbc3527d79(props) {
|
|
4689
|
-
const { formAPI: formAPI, children: children, showOK: showOK, showCancel: showCancel, showErrors: showErrors, showFormValidationNotification: showFormValidationNotification, showLoadingProgress: showLoadingProgress, OKText: OKText, CancelText: CancelText, invalidFieldsLabel: invalidFieldsLabel, showHelpButton: showHelpButton, preventEnterSubmission: preventEnterSubmission, CloseText: CloseText, buttons: buttons, isDirtyColor: isDirtyColor, cancelButtonVariant: cancelButtonVariant, okButtonVariant: okButtonVariant, disableOKIfNotDirty: disableOKIfNotDirty, formHeight: formHeight } = (0, $b4te3$mantinecore.useComponentDefaultProps)('EntityForm', $6d150b07756690a5$export$1c1b666b210bfb32, props);
|
|
4689
|
+
const { formAPI: formAPI, children: children, showOK: showOK, showCancel: showCancel, showErrors: showErrors, showFormValidationNotification: showFormValidationNotification, showLoadingProgress: showLoadingProgress, OKText: OKText, CancelText: CancelText, invalidFieldsLabel: invalidFieldsLabel, showHelpButton: showHelpButton, preventEnterSubmission: preventEnterSubmission, CloseText: CloseText, buttons: buttons, isDirtyColor: isDirtyColor, cancelButtonVariant: cancelButtonVariant, okButtonVariant: okButtonVariant, disableOKIfNotDirty: disableOKIfNotDirty, formHeight: formHeight, disableOK: disableOK } = (0, $b4te3$mantinecore.useComponentDefaultProps)('EntityForm', $6d150b07756690a5$export$1c1b666b210bfb32, props);
|
|
4690
4690
|
const { entity: entity } = formAPI;
|
|
4691
4691
|
const theme = (0, $b4te3$mantinecore.useMantineTheme)();
|
|
4692
4692
|
const { handleCancel: handleCancel, handleSubmit: handleSubmit, notifyValidationErrorState: notifyValidationErrorState, status: status, form: form, formMode: formMode, showDescriptionState: showDescriptionState, isFormValid: isFormValid, asyncErrors: asyncErrors } = formAPI;
|
|
@@ -4790,7 +4790,7 @@ function $6d150b07756690a5$export$6d892edbc3527d79(props) {
|
|
|
4790
4790
|
type: "submit",
|
|
4791
4791
|
color: form.isDirty() ? isDirtyColor : theme.primaryColor,
|
|
4792
4792
|
loading: status?.loading,
|
|
4793
|
-
disabled: disableOKIfNotDirty && !form.isDirty(),
|
|
4793
|
+
disabled: disableOK === true || disableOKIfNotDirty && !form.isDirty(),
|
|
4794
4794
|
leftIcon: /*#__PURE__*/ (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconCircleCheck), {
|
|
4795
4795
|
size: "1.125rem"
|
|
4796
4796
|
}),
|