aq-fe-framework 0.1.536 → 0.1.537
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.
@@ -205,6 +205,7 @@ function MyButtonCreateUpdate({
|
|
205
205
|
modalProps,
|
206
206
|
actionIconProps,
|
207
207
|
buttonProps,
|
208
|
+
submitButtonProps,
|
208
209
|
form,
|
209
210
|
onSubmit,
|
210
211
|
onSuccess,
|
@@ -307,7 +308,7 @@ function MyButtonCreateUpdate({
|
|
307
308
|
})
|
308
309
|
),
|
309
310
|
/* @__PURE__ */ jsx4(Space, {}),
|
310
|
-
/* @__PURE__ */ jsx4(MyButton, { fullWidth: true, actionType: "save" })
|
311
|
+
/* @__PURE__ */ jsx4(MyButton, __spreadValues({ fullWidth: true, actionType: "save" }, submitButtonProps))
|
311
312
|
]
|
312
313
|
}
|
313
314
|
)
|
package/dist/core/index.d.mts
CHANGED
@@ -29,6 +29,7 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
|
|
29
29
|
modalProps?: Omit<ModalProps, "opened" | "onClose">;
|
30
30
|
actionIconProps?: ActionIconProps;
|
31
31
|
buttonProps?: MyButtonProps;
|
32
|
+
submitButtonProps?: MyButtonProps;
|
32
33
|
scrollAreaAutosizeProps?: ScrollAreaAutosizeProps;
|
33
34
|
isUpdate?: boolean;
|
34
35
|
onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>> | false | void;
|
@@ -42,7 +43,7 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
|
|
42
43
|
disclosure?: ReturnType<typeof useDisclosure>;
|
43
44
|
children?: ReactNode;
|
44
45
|
}
|
45
|
-
declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, ignoreDefaultOnError, ignoreDefaultOnSuccess, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, scrollAreaAutosizeProps, }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
|
46
|
+
declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, submitButtonProps, form, onSubmit, onSuccess, onError, ignoreDefaultOnError, ignoreDefaultOnSuccess, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, scrollAreaAutosizeProps, }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
|
46
47
|
|
47
48
|
interface IFieldStructure {
|
48
49
|
fieldCode?: string;
|
package/dist/core/index.mjs
CHANGED