aq-fe-framework 0.1.533 → 0.1.534
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.
@@ -216,7 +216,8 @@ function MyButtonCreateUpdate({
|
|
216
216
|
children,
|
217
217
|
disclosure: externalDisclosure,
|
218
218
|
isUpdate = false,
|
219
|
-
scrollAreaAutosizeProps
|
219
|
+
scrollAreaAutosizeProps,
|
220
|
+
formId
|
220
221
|
}) {
|
221
222
|
const theme = useMantineColorScheme3();
|
222
223
|
const defaultDisclosure = useDisclosure();
|
@@ -275,6 +276,7 @@ function MyButtonCreateUpdate({
|
|
275
276
|
children: /* @__PURE__ */ jsxs(
|
276
277
|
"form",
|
277
278
|
{
|
279
|
+
id: formId,
|
278
280
|
onSubmit: form.onSubmit((values) => {
|
279
281
|
const result = onSubmit(values);
|
280
282
|
let axiosPromise;
|
@@ -306,7 +308,7 @@ function MyButtonCreateUpdate({
|
|
306
308
|
})
|
307
309
|
),
|
308
310
|
/* @__PURE__ */ jsx4(Space, {}),
|
309
|
-
/* @__PURE__ */ jsx4(MyButton, { fullWidth: true, actionType: "save" })
|
311
|
+
/* @__PURE__ */ jsx4(MyButton, { form: formId, fullWidth: true, actionType: "save" })
|
310
312
|
]
|
311
313
|
}
|
312
314
|
)
|
package/dist/core/index.d.mts
CHANGED
@@ -41,8 +41,9 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
|
|
41
41
|
resetFormWhenSubmit?: boolean;
|
42
42
|
disclosure?: ReturnType<typeof useDisclosure>;
|
43
43
|
children?: ReactNode;
|
44
|
+
formId?: string;
|
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, form, onSubmit, onSuccess, onError, ignoreDefaultOnError, ignoreDefaultOnSuccess, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, scrollAreaAutosizeProps, formId }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
|
46
47
|
|
47
48
|
interface IFieldStructure {
|
48
49
|
fieldCode?: string;
|
package/dist/core/index.mjs
CHANGED