aq-fe-framework 0.1.596 → 0.1.597
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/{chunk-5NR2OP5O.mjs → chunk-AR64BQSX.mjs} +4 -0
- package/dist/{chunk-VGZ2UE3K.mjs → chunk-BCTZIPA2.mjs} +5 -4
- package/dist/{chunk-YXBTBZCE.mjs → chunk-GFW64WZ2.mjs} +1 -1
- package/dist/{chunk-TM5KDO5S.mjs → chunk-S4K4K3X3.mjs} +2 -2
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/core/index.d.mts +1 -1
- package/dist/core/index.mjs +4 -4
- package/dist/coreService/index.mjs +3 -3
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/modules-features/index.mjs +5 -5
- package/dist/{useMyReactMutation-DdCNebJI.d.mts → useMyReactMutation-CqcrOOF9.d.mts} +3 -2
- package/package.json +1 -1
|
@@ -194,6 +194,7 @@ import { useQueryClient } from "@tanstack/react-query";
|
|
|
194
194
|
import { notifications } from "@mantine/notifications";
|
|
195
195
|
import { useMutation, useQueryClient as useQueryClient2 } from "@tanstack/react-query";
|
|
196
196
|
function useMyReactMutation({
|
|
197
|
+
isPrototype,
|
|
197
198
|
axiosFn,
|
|
198
199
|
options,
|
|
199
200
|
mutationType = "create",
|
|
@@ -204,6 +205,9 @@ function useMyReactMutation({
|
|
|
204
205
|
const queryClient = useQueryClient2();
|
|
205
206
|
return useMutation(__spreadProps(__spreadValues({
|
|
206
207
|
mutationFn: async (values) => {
|
|
208
|
+
if (isPrototype) {
|
|
209
|
+
return [];
|
|
210
|
+
}
|
|
207
211
|
const res = await axiosFn(values);
|
|
208
212
|
if (res.data.isSuccess == 0) throw new Error(res.data.message);
|
|
209
213
|
return res.data.data;
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
baseAxios_default,
|
|
15
15
|
useMyReactMutation,
|
|
16
16
|
useQ_AQ_GetAQModule
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AR64BQSX.mjs";
|
|
18
18
|
import {
|
|
19
19
|
utils_notification_show
|
|
20
20
|
} from "./chunk-7ZCOFATU.mjs";
|
|
@@ -477,7 +477,7 @@ function MyActionIconDelete(_a) {
|
|
|
477
477
|
{
|
|
478
478
|
crudType: "delete",
|
|
479
479
|
onClick: handleCLick,
|
|
480
|
-
loading:
|
|
480
|
+
loading: mutation.isPending
|
|
481
481
|
}
|
|
482
482
|
),
|
|
483
483
|
/* @__PURE__ */ jsx10(
|
|
@@ -575,7 +575,8 @@ function MyActionIconUpdate(_a) {
|
|
|
575
575
|
MyButton,
|
|
576
576
|
{
|
|
577
577
|
type: "submit",
|
|
578
|
-
crudType: "save"
|
|
578
|
+
crudType: "save",
|
|
579
|
+
loading: mutation.isPending
|
|
579
580
|
}
|
|
580
581
|
)
|
|
581
582
|
] }) })
|
|
@@ -1139,7 +1140,7 @@ function MyButtonCreate(_a) {
|
|
|
1139
1140
|
mutation.mutate(values);
|
|
1140
1141
|
}), children: /* @__PURE__ */ jsxs11(MyFlexColumn, { children: [
|
|
1141
1142
|
children,
|
|
1142
|
-
/* @__PURE__ */ jsx21(MyButton, { type: "submit", crudType: "save" })
|
|
1143
|
+
/* @__PURE__ */ jsx21(MyButton, { type: "submit", crudType: "save", loading: mutation.isPending })
|
|
1143
1144
|
] }) })
|
|
1144
1145
|
})
|
|
1145
1146
|
);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MyFieldset,
|
|
4
4
|
MyFlexColumn,
|
|
5
5
|
MyFlexRow
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BCTZIPA2.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useStore_Permission
|
|
9
9
|
} from "./chunk-PW6WTEVB.mjs";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
baseAxios_default,
|
|
18
18
|
useMyReactMutation,
|
|
19
19
|
useMyReactQuery
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AR64BQSX.mjs";
|
|
21
21
|
import {
|
|
22
22
|
utils_notification_show
|
|
23
23
|
} from "./chunk-7ZCOFATU.mjs";
|
|
@@ -6,7 +6,7 @@ import { AxiosResponse } from 'axios';
|
|
|
6
6
|
import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
|
|
7
7
|
import { useDisclosure, useListState } from '@mantine/hooks';
|
|
8
8
|
import { UseFormReturnType, useForm } from '@mantine/form';
|
|
9
|
-
import { M as MyReactMutationProps } from '../useMyReactMutation-
|
|
9
|
+
import { M as MyReactMutationProps } from '../useMyReactMutation-CqcrOOF9.mjs';
|
|
10
10
|
import { I as I_BasicAppShell_LinkItem, B as BasicAppShellProps } from '../types-DcfN8y1h.mjs';
|
|
11
11
|
import { I as IUtils_Excel_ColumnConfig } from '../utils_excel-BYB9qbHd.mjs';
|
|
12
12
|
import { MRT_ColumnDef, MRT_RowData, MRT_TableOptions, MRT_TableInstance } from 'mantine-react-table';
|
|
@@ -68,12 +68,12 @@ import {
|
|
|
68
68
|
useHeaderMegaMenuStore,
|
|
69
69
|
useS_ButtonImport,
|
|
70
70
|
useStore_BasicAppShell
|
|
71
|
-
} from "../chunk-
|
|
71
|
+
} from "../chunk-BCTZIPA2.mjs";
|
|
72
72
|
import "../chunk-PW6WTEVB.mjs";
|
|
73
73
|
import "../chunk-5COIJ2CE.mjs";
|
|
74
74
|
import "../chunk-EWDS5IOF.mjs";
|
|
75
75
|
import "../chunk-OMJJAHOC.mjs";
|
|
76
|
-
import "../chunk-
|
|
76
|
+
import "../chunk-AR64BQSX.mjs";
|
|
77
77
|
import "../chunk-WZ6PXGGC.mjs";
|
|
78
78
|
import "../chunk-7ZCOFATU.mjs";
|
|
79
79
|
import "../chunk-FWCSY2DS.mjs";
|
package/dist/core/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import { UseFormReturnType } from '@mantine/form';
|
|
|
6
6
|
import { AxiosResponse } from 'axios';
|
|
7
7
|
import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
|
|
8
8
|
import { useDisclosure } from '@mantine/hooks';
|
|
9
|
-
import { M as MyReactMutationProps } from '../useMyReactMutation-
|
|
9
|
+
import { M as MyReactMutationProps } from '../useMyReactMutation-CqcrOOF9.mjs';
|
|
10
10
|
import { UseReactToPrintOptions } from 'react-to-print';
|
|
11
11
|
import { UseQueryResult, QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
|
12
12
|
import { MRT_RowData, MRT_ColumnDef } from 'mantine-react-table';
|
package/dist/core/index.mjs
CHANGED
|
@@ -22,18 +22,18 @@ import {
|
|
|
22
22
|
MyStatsCard,
|
|
23
23
|
MyTextInput,
|
|
24
24
|
MyWeeklySessionSchedulerPicker
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-S4K4K3X3.mjs";
|
|
26
26
|
import "../chunk-GFEMKKFH.mjs";
|
|
27
27
|
import {
|
|
28
28
|
MyModalDelete
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import "../chunk-
|
|
29
|
+
} from "../chunk-GFW64WZ2.mjs";
|
|
30
|
+
import "../chunk-BCTZIPA2.mjs";
|
|
31
31
|
import "../chunk-PW6WTEVB.mjs";
|
|
32
32
|
import "../chunk-5COIJ2CE.mjs";
|
|
33
33
|
import "../chunk-EWDS5IOF.mjs";
|
|
34
34
|
import "../chunk-OMJJAHOC.mjs";
|
|
35
35
|
import "../chunk-K6S7R6LU.mjs";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-AR64BQSX.mjs";
|
|
37
37
|
import "../chunk-WZ6PXGGC.mjs";
|
|
38
38
|
import "../chunk-7ZCOFATU.mjs";
|
|
39
39
|
import "../chunk-FWCSY2DS.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MyModalDelete
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-GFW64WZ2.mjs";
|
|
4
|
+
import "../chunk-BCTZIPA2.mjs";
|
|
5
5
|
import "../chunk-PW6WTEVB.mjs";
|
|
6
6
|
import "../chunk-5COIJ2CE.mjs";
|
|
7
7
|
import "../chunk-EWDS5IOF.mjs";
|
|
8
8
|
import "../chunk-OMJJAHOC.mjs";
|
|
9
9
|
import {
|
|
10
10
|
useMyReactMutation
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-AR64BQSX.mjs";
|
|
12
12
|
import "../chunk-WZ6PXGGC.mjs";
|
|
13
13
|
import "../chunk-7ZCOFATU.mjs";
|
|
14
14
|
import {
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
|
|
|
7
7
|
export { I as IPagingParams, c as createBaseApi } from '../createBaseApi-75GHCO22.mjs';
|
|
8
8
|
import * as next_dist_shared_lib_app_router_context_shared_runtime from 'next/dist/shared/lib/app-router-context.shared-runtime';
|
|
9
9
|
import * as React from 'react';
|
|
10
|
-
export { M as MyReactMutationProps, u as useMyReactMutation } from '../useMyReactMutation-
|
|
10
|
+
export { M as MyReactMutationProps, u as useMyReactMutation } from '../useMyReactMutation-CqcrOOF9.mjs';
|
|
11
11
|
import { I as IAQModule } from '../IAQModule-4U3n2emx.mjs';
|
|
12
12
|
import '../IBaseEntity-ChMy9RzQ.mjs';
|
|
13
13
|
import '../type_mutation-CCtnyeP3.mjs';
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
MyRichTextEditor,
|
|
8
8
|
MySelect as MySelect2,
|
|
9
9
|
MyTextInput as MyTextInput2
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-S4K4K3X3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
const_object_documentTypes
|
|
13
13
|
} from "../chunk-GFEMKKFH.mjs";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-GFW64WZ2.mjs";
|
|
15
15
|
import {
|
|
16
16
|
F_authenticate_Logout,
|
|
17
17
|
MyActionIconDelete,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
MyTab,
|
|
35
35
|
MyTextInput,
|
|
36
36
|
useS_authenticate
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-BCTZIPA2.mjs";
|
|
38
38
|
import {
|
|
39
39
|
createGenericStore,
|
|
40
40
|
useStore_Permission
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
useMyRouter,
|
|
68
68
|
useQ_AQ_GetAQModule,
|
|
69
69
|
useQ_SkillCenter_GetAll
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-AR64BQSX.mjs";
|
|
71
71
|
import "../chunk-WZ6PXGGC.mjs";
|
|
72
72
|
import {
|
|
73
73
|
utils_notification_show
|
|
@@ -4388,7 +4388,7 @@ function F_pageContentConfig_Save({ menuValues }) {
|
|
|
4388
4388
|
return service_pageContent.updateList([{ id: 1 }]);
|
|
4389
4389
|
}
|
|
4390
4390
|
});
|
|
4391
|
-
return /* @__PURE__ */ jsx91(MyButton2, { actionType: "save", onClick: () => updatePageConfigMutation.mutate(
|
|
4391
|
+
return /* @__PURE__ */ jsx91(MyButton2, { actionType: "save", onClick: () => updatePageConfigMutation.mutate() });
|
|
4392
4392
|
}
|
|
4393
4393
|
|
|
4394
4394
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
|
@@ -4,7 +4,8 @@ import { t as type_mutation } from './type_mutation-CCtnyeP3.mjs';
|
|
|
4
4
|
import { AxiosResponse } from 'axios';
|
|
5
5
|
import { M as MyApiResponse } from './createBaseApi-75GHCO22.mjs';
|
|
6
6
|
|
|
7
|
-
interface MyReactMutationProps<IReq, IRes> {
|
|
7
|
+
interface MyReactMutationProps<IReq = void, IRes = void> {
|
|
8
|
+
isPrototype?: boolean;
|
|
8
9
|
axiosFn: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>>;
|
|
9
10
|
options?: UseMutationOptions<IRes, Error, IReq>;
|
|
10
11
|
mutationType?: type_mutation;
|
|
@@ -12,6 +13,6 @@ interface MyReactMutationProps<IReq, IRes> {
|
|
|
12
13
|
enableDefaultError?: boolean;
|
|
13
14
|
successNotification?: string;
|
|
14
15
|
}
|
|
15
|
-
declare function useMyReactMutation<IReq, IRes>({ axiosFn, options, mutationType, enableDefaultSuccess, enableDefaultError, successNotification }: MyReactMutationProps<IReq, IRes>): _tanstack_react_query.UseMutationResult<IRes, Error, IReq, unknown>;
|
|
16
|
+
declare function useMyReactMutation<IReq = void, IRes = void>({ isPrototype, axiosFn, options, mutationType, enableDefaultSuccess, enableDefaultError, successNotification }: MyReactMutationProps<IReq, IRes>): _tanstack_react_query.UseMutationResult<IRes, Error, IReq, unknown>;
|
|
16
17
|
|
|
17
18
|
export { type MyReactMutationProps as M, useMyReactMutation as u };
|