aq-fe-framework 0.1.284 → 0.1.286
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.
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
enum_daysOfWeek
|
3
|
-
} from "./chunk-K6S7R6LU.mjs";
|
4
1
|
import {
|
5
2
|
const_object_colors
|
6
3
|
} from "./chunk-NWBLJ3W3.mjs";
|
4
|
+
import {
|
5
|
+
enum_daysOfWeek
|
6
|
+
} from "./chunk-K6S7R6LU.mjs";
|
7
7
|
import {
|
8
8
|
baseAxios_default,
|
9
9
|
useMyReactMutation,
|
@@ -939,7 +939,7 @@ function CoreButtonCreateUpdate({
|
|
939
939
|
resetFormWhenSubmit = true,
|
940
940
|
children,
|
941
941
|
disclosure: externalDisclosure,
|
942
|
-
|
942
|
+
isUpdate = true
|
943
943
|
}) {
|
944
944
|
const defaultDisclosure = useDisclosure5();
|
945
945
|
const disclosure = externalDisclosure != null ? externalDisclosure : defaultDisclosure;
|
@@ -965,15 +965,7 @@ function CoreButtonCreateUpdate({
|
|
965
965
|
})
|
966
966
|
});
|
967
967
|
return /* @__PURE__ */ jsxs8(Fragment5, { children: [
|
968
|
-
|
969
|
-
Button5,
|
970
|
-
__spreadProps(__spreadValues({
|
971
|
-
onClick: disclosure[1].open,
|
972
|
-
leftSection: /* @__PURE__ */ jsx19(IconPlus6, {})
|
973
|
-
}, buttonProps), {
|
974
|
-
children: "Th\xEAm"
|
975
|
-
})
|
976
|
-
) : /* @__PURE__ */ jsx19(
|
968
|
+
isUpdate ? /* @__PURE__ */ jsx19(
|
977
969
|
ActionIcon9,
|
978
970
|
__spreadProps(__spreadValues({
|
979
971
|
color: "yellow",
|
@@ -981,11 +973,19 @@ function CoreButtonCreateUpdate({
|
|
981
973
|
}, actionIconProps), {
|
982
974
|
children: /* @__PURE__ */ jsx19(IconEdit6, {})
|
983
975
|
})
|
976
|
+
) : /* @__PURE__ */ jsx19(
|
977
|
+
Button5,
|
978
|
+
__spreadProps(__spreadValues({
|
979
|
+
onClick: disclosure[1].open,
|
980
|
+
leftSection: /* @__PURE__ */ jsx19(IconPlus6, {})
|
981
|
+
}, buttonProps), {
|
982
|
+
children: "Th\xEAm"
|
983
|
+
})
|
984
984
|
),
|
985
985
|
/* @__PURE__ */ jsx19(
|
986
986
|
Modal4,
|
987
987
|
__spreadProps(__spreadValues({
|
988
|
-
title:
|
988
|
+
title: isUpdate ? "S\u1EEDa d\u1EEF li\u1EC7u" : "Th\xEAm d\u1EEF li\u1EC7u",
|
989
989
|
opened: disclosure[0],
|
990
990
|
onClose: disclosure[1].close
|
991
991
|
}, modalProps), {
|
@@ -108,7 +108,7 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
|
|
108
108
|
modalProps?: ModalProps;
|
109
109
|
actionIconProps?: ActionIconProps;
|
110
110
|
buttonProps?: ButtonProps;
|
111
|
-
|
111
|
+
isUpdate?: boolean;
|
112
112
|
onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>>;
|
113
113
|
onSuccess?: () => void;
|
114
114
|
onError?: () => void;
|
@@ -118,7 +118,7 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
|
|
118
118
|
disclosure?: ReturnType<typeof useDisclosure>;
|
119
119
|
children?: ReactNode;
|
120
120
|
}
|
121
|
-
declare function CoreButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure,
|
121
|
+
declare function CoreButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
|
122
122
|
|
123
123
|
interface CoreButtonModalProps {
|
124
124
|
children?: ReactNode;
|
@@ -72,9 +72,9 @@ import {
|
|
72
72
|
useS_BasicAppShell,
|
73
73
|
useS_ButtonImport,
|
74
74
|
utils_layout_getItemsWithoutLinks
|
75
|
-
} from "../chunk-
|
76
|
-
import "../chunk-K6S7R6LU.mjs";
|
75
|
+
} from "../chunk-OXJ56NV2.mjs";
|
77
76
|
import "../chunk-NWBLJ3W3.mjs";
|
77
|
+
import "../chunk-K6S7R6LU.mjs";
|
78
78
|
import "../chunk-KKJ3OEEW.mjs";
|
79
79
|
import "../chunk-Y3YGC5IH.mjs";
|
80
80
|
import "../chunk-5U2JSHSJ.mjs";
|
@@ -24,17 +24,17 @@ import {
|
|
24
24
|
useS_BasicAppShell,
|
25
25
|
useS_authenticate,
|
26
26
|
utils_layout_getItemsWithoutLinks
|
27
|
-
} from "../chunk-
|
28
|
-
import {
|
29
|
-
enum_emailConfigModule
|
30
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
31
|
-
import "../chunk-K6S7R6LU.mjs";
|
27
|
+
} from "../chunk-OXJ56NV2.mjs";
|
32
28
|
import {
|
33
29
|
const_object_documentTypes
|
34
30
|
} from "../chunk-GFEMKKFH.mjs";
|
35
31
|
import {
|
36
32
|
const_object_colors
|
37
33
|
} from "../chunk-NWBLJ3W3.mjs";
|
34
|
+
import {
|
35
|
+
enum_emailConfigModule
|
36
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
37
|
+
import "../chunk-K6S7R6LU.mjs";
|
38
38
|
import {
|
39
39
|
baseAxios_default,
|
40
40
|
useQ_AQ_GetAQModule,
|