@mcurros2/microm 1.1.438-0 → 1.1.439-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.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -185,7 +185,6 @@ const $ed5512685e858344$export$659b17aab7c47d60 = {
|
|
|
185
185
|
};
|
|
186
186
|
function $ed5512685e858344$export$f1f43a62560a15ec(props) {
|
|
187
187
|
const { entity: entity, initialFormMode: initialFormMode, validateInputOnBlur: validateInputOnBlur, validateInputOnChange: validateInputOnChange, onSaved: onSaved, onCancel: onCancel, getDataOnInit: getDataOnInit, forceDirty: forceDirty, initialShowDescriptionInFields: initialShowDescriptionInFields, saveAndGetOverride: saveAndGetOverride, noSaveOnSubmit: noSaveOnSubmit, bindedColumnNames: bindedColumnNames, saveAndGetOnSubmit: saveAndGetOnSubmit, cancelGetOnUnmount: cancelGetOnUnmount, cancelSaveOnUnmount: cancelSaveOnUnmount, navigationProtection: navigationProtection, validateForm: validateForm, showCancel: showCancel, showOK: showOK, buttons: buttons } = (0, $b4te3$mantinecore.useComponentDefaultProps)('', $ed5512685e858344$export$659b17aab7c47d60, props);
|
|
188
|
-
const effectiveNavigationProtection = navigationProtection === 'confirm' && showCancel === false && showOK === false && !buttons ? 'disabled' : navigationProtection;
|
|
189
188
|
const { confirmWarning: confirmWarning, showValidationError: showValidationError } = (0, $n9rI9.useValidateFormModals)();
|
|
190
189
|
const modal = (0, $k7qj2.useModal)();
|
|
191
190
|
const [status, setStatus] = (0, $b4te3$react.useState)({}); // Initial queryStatus is empty on purpose to not disable fields before data is loaded
|
|
@@ -193,6 +192,7 @@ function $ed5512685e858344$export$f1f43a62560a15ec(props) {
|
|
|
193
192
|
const [, setNotifyValidationError] = notifyValidationErrorState;
|
|
194
193
|
const showDescriptionState = (0, $b4te3$react.useState)(initialShowDescriptionInFields);
|
|
195
194
|
const [formMode, setFormMode] = (0, $b4te3$react.useState)(initialFormMode);
|
|
195
|
+
const effectiveNavigationProtection = formMode !== 'view' && navigationProtection === 'confirm' && showCancel === false && showOK === false && !buttons ? 'disabled' : navigationProtection;
|
|
196
196
|
const activeFormActions = (0, $b4te3$react.useMemo)(()=>{
|
|
197
197
|
const allModesOverrides = entity.def.formActionOverrides.Allways;
|
|
198
198
|
const modeOverrides = entity.def.formActionOverrides[formMode];
|