aq-fe-framework 0.1.512 → 0.1.514
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-H6JXSSOQ.mjs → chunk-K6LP524K.mjs} +5 -5
- package/dist/{chunk-GIBGEGLU.mjs → chunk-LAVGCZ5I.mjs} +10 -5
- package/dist/{chunk-4RT3JFPJ.mjs → chunk-NQMVDLMU.mjs} +1 -1
- package/dist/components/index.mjs +2 -3
- package/dist/core/index.mjs +5 -6
- package/dist/enum/index.d.mts +8 -3
- package/dist/enum/index.mjs +13 -4
- package/dist/hooks/index.d.mts +3 -2
- package/dist/hooks/index.mjs +1 -2
- package/dist/modules-features/index.mjs +14 -15
- package/package.json +1 -1
- package/dist/chunk-Z4DYBTYB.mjs +0 -17
- package/dist/enum_mutationType-Dn5oi0sv.d.mts +0 -8
@@ -1,18 +1,18 @@
|
|
1
|
+
import {
|
2
|
+
enum_daysOfWeek
|
3
|
+
} from "./chunk-K6S7R6LU.mjs";
|
1
4
|
import {
|
2
5
|
MyDataTable,
|
3
6
|
MyFlexColumn,
|
4
7
|
MyFlexRow
|
5
|
-
} from "./chunk-
|
8
|
+
} from "./chunk-NQMVDLMU.mjs";
|
6
9
|
import {
|
7
10
|
const_object_colors
|
8
11
|
} from "./chunk-OMJJAHOC.mjs";
|
9
|
-
import {
|
10
|
-
enum_daysOfWeek
|
11
|
-
} from "./chunk-K6S7R6LU.mjs";
|
12
12
|
import {
|
13
13
|
useMyReactMutation,
|
14
14
|
useMyReactQuery
|
15
|
-
} from "./chunk-
|
15
|
+
} from "./chunk-LAVGCZ5I.mjs";
|
16
16
|
import {
|
17
17
|
utils_notification_show
|
18
18
|
} from "./chunk-7ZCOFATU.mjs";
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
enumLabel_mutationTypeNotification
|
3
|
-
} from "./chunk-Z4DYBTYB.mjs";
|
4
1
|
import {
|
5
2
|
__spreadProps,
|
6
3
|
__spreadValues
|
@@ -150,13 +147,21 @@ var useLoadAxiosConfig = ({
|
|
150
147
|
// src/hooks/custom-hooks/useMutationAction.tsx
|
151
148
|
import { useQueryClient } from "@tanstack/react-query";
|
152
149
|
|
150
|
+
// src/types/type_mutation.ts
|
151
|
+
var typeLabel_mutation = {
|
152
|
+
create: "T\u1EA1o th\xE0nh c\xF4ng!",
|
153
|
+
update: "C\u1EADp nh\u1EADt th\xE0nh c\xF4ng!",
|
154
|
+
delete: "X\xF3a th\xE0nh c\xF4ng!",
|
155
|
+
mutation: "Thao t\xE1c th\xE0nh c\xF4ng!"
|
156
|
+
};
|
157
|
+
|
153
158
|
// src/hooks/custom-hooks/useMyReactMutation.ts
|
154
159
|
import { notifications } from "@mantine/notifications";
|
155
160
|
import { useMutation, useQueryClient as useQueryClient2 } from "@tanstack/react-query";
|
156
161
|
function useMyReactMutation({
|
157
162
|
axiosFn,
|
158
163
|
options,
|
159
|
-
mutationType = "create"
|
164
|
+
mutationType = "create"
|
160
165
|
}) {
|
161
166
|
const queryClient = useQueryClient2();
|
162
167
|
return useMutation(__spreadValues({
|
@@ -167,7 +172,7 @@ function useMyReactMutation({
|
|
167
172
|
},
|
168
173
|
onSuccess: () => {
|
169
174
|
notifications.show({
|
170
|
-
message:
|
175
|
+
message: typeLabel_mutation[mutationType],
|
171
176
|
color: "green"
|
172
177
|
});
|
173
178
|
queryClient.invalidateQueries();
|
@@ -67,13 +67,12 @@ import {
|
|
67
67
|
useS_BasicAppShell,
|
68
68
|
useS_ButtonImport,
|
69
69
|
utils_layout_getItemsWithoutLinks
|
70
|
-
} from "../chunk-
|
70
|
+
} from "../chunk-NQMVDLMU.mjs";
|
71
71
|
import "../chunk-U62R2QKJ.mjs";
|
72
72
|
import "../chunk-5U2JSHSJ.mjs";
|
73
73
|
import "../chunk-OMJJAHOC.mjs";
|
74
|
-
import "../chunk-
|
74
|
+
import "../chunk-LAVGCZ5I.mjs";
|
75
75
|
import "../chunk-7ZCOFATU.mjs";
|
76
|
-
import "../chunk-Z4DYBTYB.mjs";
|
77
76
|
import "../chunk-FWCSY2DS.mjs";
|
78
77
|
export {
|
79
78
|
AQButtonCreateByImportFile,
|
package/dist/core/index.mjs
CHANGED
@@ -18,16 +18,15 @@ import {
|
|
18
18
|
MyStatsCard,
|
19
19
|
MyTextInput,
|
20
20
|
MyWeeklySessionSchedulerPicker
|
21
|
-
} from "../chunk-
|
22
|
-
import "../chunk-
|
23
|
-
import "../chunk-
|
21
|
+
} from "../chunk-K6LP524K.mjs";
|
22
|
+
import "../chunk-K6S7R6LU.mjs";
|
23
|
+
import "../chunk-NQMVDLMU.mjs";
|
24
24
|
import "../chunk-U62R2QKJ.mjs";
|
25
25
|
import "../chunk-5U2JSHSJ.mjs";
|
26
|
+
import "../chunk-GFEMKKFH.mjs";
|
26
27
|
import "../chunk-OMJJAHOC.mjs";
|
27
|
-
import "../chunk-
|
28
|
-
import "../chunk-GIBGEGLU.mjs";
|
28
|
+
import "../chunk-LAVGCZ5I.mjs";
|
29
29
|
import "../chunk-7ZCOFATU.mjs";
|
30
|
-
import "../chunk-Z4DYBTYB.mjs";
|
31
30
|
import "../chunk-FWCSY2DS.mjs";
|
32
31
|
export {
|
33
32
|
MyActionIcon,
|
package/dist/enum/index.d.mts
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
export { a as enumLabel_mutationTypeNotification, e as enum_mutationType } from '../enum_mutationType-Dn5oi0sv.mjs';
|
2
|
-
|
3
1
|
declare enum enum_daysOfWeek {
|
4
2
|
"Thứ Hai" = 1,
|
5
3
|
"Thứ Ba" = 2,
|
@@ -24,4 +22,11 @@ declare enum enum_gender {
|
|
24
22
|
}
|
25
23
|
declare const enumLabel_gender: Record<enum_gender, string>;
|
26
24
|
|
27
|
-
|
25
|
+
declare enum enum_mutationType {
|
26
|
+
Create = "create",
|
27
|
+
Update = "update",
|
28
|
+
Delete = "delete"
|
29
|
+
}
|
30
|
+
declare const enumLabel_mutationTypeNotification: Record<enum_mutationType, string>;
|
31
|
+
|
32
|
+
export { enumLabel_gender, enumLabel_mutationTypeNotification, enum_daysOfWeek, enum_emailConfigModule, enum_gender, enum_mutationType };
|
package/dist/enum/index.mjs
CHANGED
@@ -4,10 +4,6 @@ import {
|
|
4
4
|
import {
|
5
5
|
enum_daysOfWeek
|
6
6
|
} from "../chunk-K6S7R6LU.mjs";
|
7
|
-
import {
|
8
|
-
enumLabel_mutationTypeNotification,
|
9
|
-
enum_mutationType
|
10
|
-
} from "../chunk-Z4DYBTYB.mjs";
|
11
7
|
import "../chunk-FWCSY2DS.mjs";
|
12
8
|
|
13
9
|
// src/enum/enum_gender.ts
|
@@ -22,6 +18,19 @@ var enumLabel_gender = {
|
|
22
18
|
[2 /* Female */]: "N\u1EEF",
|
23
19
|
[3 /* Other */]: "Kh\xE1c"
|
24
20
|
};
|
21
|
+
|
22
|
+
// src/enum/enum_mutationType.ts
|
23
|
+
var enum_mutationType = /* @__PURE__ */ ((enum_mutationType2) => {
|
24
|
+
enum_mutationType2["Create"] = "create";
|
25
|
+
enum_mutationType2["Update"] = "update";
|
26
|
+
enum_mutationType2["Delete"] = "delete";
|
27
|
+
return enum_mutationType2;
|
28
|
+
})(enum_mutationType || {});
|
29
|
+
var enumLabel_mutationTypeNotification = {
|
30
|
+
["create" /* Create */]: "T\u1EA1o m\u1EDBi th\xE0nh c\xF4ng!",
|
31
|
+
["update" /* Update */]: "C\u1EADp nh\u1EADt th\xE0nh c\xF4ng!",
|
32
|
+
["delete" /* Delete */]: "Xo\xE1 th\xE0nh c\xF4ng!"
|
33
|
+
};
|
25
34
|
export {
|
26
35
|
enumLabel_gender,
|
27
36
|
enumLabel_mutationTypeNotification,
|
package/dist/hooks/index.d.mts
CHANGED
@@ -5,7 +5,6 @@ import * as React from 'react';
|
|
5
5
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
6
6
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
7
7
|
import { UseMutationOptions, QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
8
|
-
import { e as enum_mutationType } from '../enum_mutationType-Dn5oi0sv.mjs';
|
9
8
|
import { I as IAQModule } from '../IAQModule-4U3n2emx.mjs';
|
10
9
|
import '../IBaseEntity-ChMy9RzQ.mjs';
|
11
10
|
|
@@ -44,10 +43,12 @@ declare const useLoadAxiosConfig: ({ axiosInstance, url, }: {
|
|
44
43
|
setFlag: React.Dispatch<React.SetStateAction<boolean>>;
|
45
44
|
};
|
46
45
|
|
46
|
+
type type_mutation = "create" | "update" | "delete" | "mutation";
|
47
|
+
|
47
48
|
interface MyReactMutationProps<IReq, IRes> {
|
48
49
|
axiosFn: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>>;
|
49
50
|
options?: UseMutationOptions<IRes, Error, IReq>;
|
50
|
-
mutationType?:
|
51
|
+
mutationType?: type_mutation;
|
51
52
|
}
|
52
53
|
declare function useMyReactMutation<IReq, IRes>({ axiosFn, options, mutationType }: MyReactMutationProps<IReq, IRes>): _tanstack_react_query.UseMutationResult<IRes, Error, IReq, unknown>;
|
53
54
|
|
package/dist/hooks/index.mjs
CHANGED
@@ -7,9 +7,8 @@ import {
|
|
7
7
|
useMyReactQuery,
|
8
8
|
useMyRouter,
|
9
9
|
useQ_AQ_GetAQModule
|
10
|
-
} from "../chunk-
|
10
|
+
} from "../chunk-LAVGCZ5I.mjs";
|
11
11
|
import "../chunk-7ZCOFATU.mjs";
|
12
|
-
import "../chunk-Z4DYBTYB.mjs";
|
13
12
|
import "../chunk-FWCSY2DS.mjs";
|
14
13
|
export {
|
15
14
|
createBaseApi,
|
@@ -6,20 +6,21 @@ import {
|
|
6
6
|
utils_file_fileToAQDocumentType,
|
7
7
|
utils_mantineDataTable_filterColumns
|
8
8
|
} from "../chunk-NIDKTA35.mjs";
|
9
|
+
import {
|
10
|
+
MyButton,
|
11
|
+
MyDataTableSelectOne,
|
12
|
+
MyTextInput as MyTextInput2
|
13
|
+
} from "../chunk-K6LP524K.mjs";
|
14
|
+
import {
|
15
|
+
enum_emailConfigModule
|
16
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
17
|
+
import "../chunk-K6S7R6LU.mjs";
|
9
18
|
import {
|
10
19
|
baseColumns
|
11
20
|
} from "../chunk-7PUDC2WF.mjs";
|
12
21
|
import {
|
13
22
|
U0DateToDDMMYYYString
|
14
23
|
} from "../chunk-EWDS5IOF.mjs";
|
15
|
-
import {
|
16
|
-
MyButton,
|
17
|
-
MyDataTableSelectOne,
|
18
|
-
MyTextInput as MyTextInput2
|
19
|
-
} from "../chunk-H6JXSSOQ.mjs";
|
20
|
-
import {
|
21
|
-
const_object_documentTypes
|
22
|
-
} from "../chunk-GFEMKKFH.mjs";
|
23
24
|
import {
|
24
25
|
F_authenticate_Logout,
|
25
26
|
MyActionIconDelete,
|
@@ -45,18 +46,17 @@ import {
|
|
45
46
|
groupToTwoLevels,
|
46
47
|
useS_authenticate,
|
47
48
|
utils_layout_getItemsWithoutLinks
|
48
|
-
} from "../chunk-
|
49
|
+
} from "../chunk-NQMVDLMU.mjs";
|
49
50
|
import {
|
50
51
|
createGenericStore
|
51
52
|
} from "../chunk-U62R2QKJ.mjs";
|
52
53
|
import "../chunk-5U2JSHSJ.mjs";
|
54
|
+
import {
|
55
|
+
const_object_documentTypes
|
56
|
+
} from "../chunk-GFEMKKFH.mjs";
|
53
57
|
import {
|
54
58
|
const_object_colors
|
55
59
|
} from "../chunk-OMJJAHOC.mjs";
|
56
|
-
import {
|
57
|
-
enum_emailConfigModule
|
58
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
59
|
-
import "../chunk-K6S7R6LU.mjs";
|
60
60
|
import {
|
61
61
|
baseAxios_default,
|
62
62
|
createBaseApi,
|
@@ -66,11 +66,10 @@ import {
|
|
66
66
|
useMyRouter,
|
67
67
|
useQ_AQ_GetAQModule,
|
68
68
|
useQ_SkillCenter_GetAll
|
69
|
-
} from "../chunk-
|
69
|
+
} from "../chunk-LAVGCZ5I.mjs";
|
70
70
|
import {
|
71
71
|
utils_notification_show
|
72
72
|
} from "../chunk-7ZCOFATU.mjs";
|
73
|
-
import "../chunk-Z4DYBTYB.mjs";
|
74
73
|
import {
|
75
74
|
__objRest,
|
76
75
|
__spreadProps,
|
package/package.json
CHANGED
package/dist/chunk-Z4DYBTYB.mjs
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
// src/enum/enum_mutationType.ts
|
2
|
-
var enum_mutationType = /* @__PURE__ */ ((enum_mutationType2) => {
|
3
|
-
enum_mutationType2["Create"] = "create";
|
4
|
-
enum_mutationType2["Update"] = "update";
|
5
|
-
enum_mutationType2["Delete"] = "delete";
|
6
|
-
return enum_mutationType2;
|
7
|
-
})(enum_mutationType || {});
|
8
|
-
var enumLabel_mutationTypeNotification = {
|
9
|
-
["create" /* Create */]: "T\u1EA1o m\u1EDBi th\xE0nh c\xF4ng!",
|
10
|
-
["update" /* Update */]: "C\u1EADp nh\u1EADt th\xE0nh c\xF4ng!",
|
11
|
-
["delete" /* Delete */]: "Xo\xE1 th\xE0nh c\xF4ng!"
|
12
|
-
};
|
13
|
-
|
14
|
-
export {
|
15
|
-
enum_mutationType,
|
16
|
-
enumLabel_mutationTypeNotification
|
17
|
-
};
|