@mcurros2/microm 1.1.364-0 → 1.1.366-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 +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3748,10 +3748,11 @@ const $6d150b07756690a5$export$1c1b666b210bfb32 = {
|
|
|
3748
3748
|
preventEnterSubmission: true,
|
|
3749
3749
|
isDirtyColor: 'green',
|
|
3750
3750
|
cancelButtonVariant: 'light',
|
|
3751
|
-
okButtonVariant: 'filled'
|
|
3751
|
+
okButtonVariant: 'filled',
|
|
3752
|
+
formHeight: '100%'
|
|
3752
3753
|
};
|
|
3753
3754
|
function $6d150b07756690a5$export$6d892edbc3527d79(props) {
|
|
3754
|
-
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 } = (0, $b4te3$mantinecore.useComponentDefaultProps)('EntityForm', $6d150b07756690a5$export$1c1b666b210bfb32, props);
|
|
3755
|
+
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);
|
|
3755
3756
|
const { entity: entity } = formAPI;
|
|
3756
3757
|
const theme = (0, $b4te3$mantinecore.useMantineTheme)();
|
|
3757
3758
|
const { handleCancel: handleCancel, handleSubmit: handleSubmit, notifyValidationErrorState: notifyValidationErrorState, status: status, form: form, formMode: formMode, showDescriptionState: showDescriptionState, isFormValid: isFormValid, asyncErrors: asyncErrors } = formAPI;
|
|
@@ -3789,6 +3790,9 @@ function $6d150b07756690a5$export$6d892edbc3527d79(props) {
|
|
|
3789
3790
|
children: /*#__PURE__*/ (0, $b4te3$reactjsxruntime.jsxs)("form", {
|
|
3790
3791
|
onSubmit: handleSubmit,
|
|
3791
3792
|
onKeyDown: preventEnterSubmission ? handleKeyDown : undefined,
|
|
3793
|
+
style: {
|
|
3794
|
+
height: formHeight
|
|
3795
|
+
},
|
|
3792
3796
|
onInvalid: ()=>setNotifyValidationError(true),
|
|
3793
3797
|
children: [
|
|
3794
3798
|
showLoadingProgress && status.loading && /*#__PURE__*/ (0, $b4te3$reactjsxruntime.jsx)((0, $lFsp3.FakeProgressBar), {
|
|
@@ -3814,7 +3818,8 @@ function $6d150b07756690a5$export$6d892edbc3527d79(props) {
|
|
|
3814
3818
|
borderWidth: 0,
|
|
3815
3819
|
margin: 0,
|
|
3816
3820
|
padding: 0,
|
|
3817
|
-
minInlineSize: 'unset'
|
|
3821
|
+
minInlineSize: 'unset',
|
|
3822
|
+
height: formHeight
|
|
3818
3823
|
},
|
|
3819
3824
|
children: children
|
|
3820
3825
|
}),
|
|
@@ -10981,7 +10986,7 @@ function $2fcad708d17652da$export$8dcbab0699f0db0c(entity, proc) {
|
|
|
10981
10986
|
}
|
|
10982
10987
|
};
|
|
10983
10988
|
}, []);
|
|
10984
|
-
const execute = (0, $b4te3$react.useCallback)(async (values)=>{
|
|
10989
|
+
const execute = (0, $b4te3$react.useCallback)(async (values, force_refresh = false)=>{
|
|
10985
10990
|
const request = {
|
|
10986
10991
|
entity: entity,
|
|
10987
10992
|
proc: proc,
|
|
@@ -10992,7 +10997,7 @@ function $2fcad708d17652da$export$8dcbab0699f0db0c(entity, proc) {
|
|
|
10992
10997
|
console.warn("useExecuteProc ignored execute(): a request is already in progress. Call abort() before executing again.");
|
|
10993
10998
|
return statusRef.current;
|
|
10994
10999
|
}
|
|
10995
|
-
if ((0, $4G7uh.areExecuteProcRequestsEqual)(lastSuccessfulRequest.current, request)) return;
|
|
11000
|
+
if (!force_refresh && (0, $4G7uh.areExecuteProcRequestsEqual)(lastSuccessfulRequest.current, request)) return;
|
|
10996
11001
|
const controller = new AbortController();
|
|
10997
11002
|
const token = Symbol("useExecuteProc request");
|
|
10998
11003
|
inFlight.current = {
|
|
@@ -38998,7 +39003,7 @@ function $d2fd61b2edecbadb$export$7aab186fc1fe6b0(entity, proc) {
|
|
|
38998
39003
|
}
|
|
38999
39004
|
};
|
|
39000
39005
|
}, []);
|
|
39001
|
-
const execute = (0, $b4te3$react.useCallback)(async (values)=>{
|
|
39006
|
+
const execute = (0, $b4te3$react.useCallback)(async (values, force_refresh = false)=>{
|
|
39002
39007
|
const request = {
|
|
39003
39008
|
entity: entity,
|
|
39004
39009
|
proc: proc,
|
|
@@ -39009,7 +39014,7 @@ function $d2fd61b2edecbadb$export$7aab186fc1fe6b0(entity, proc) {
|
|
|
39009
39014
|
console.warn("useExecuteProcess ignored execute(): a request is already in progress. Call abort() before executing again.");
|
|
39010
39015
|
return statusRef.current;
|
|
39011
39016
|
}
|
|
39012
|
-
if ((0, $4G7uh.areExecuteProcRequestsEqual)(lastSuccessfulRequest.current, request)) return;
|
|
39017
|
+
if (!force_refresh && (0, $4G7uh.areExecuteProcRequestsEqual)(lastSuccessfulRequest.current, request)) return;
|
|
39013
39018
|
const controller = new AbortController();
|
|
39014
39019
|
const token = Symbol("useExecuteProcess request");
|
|
39015
39020
|
inFlight.current = {
|