aq-fe-framework 0.1.839 → 0.1.841
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/{IRole-9xwpMv4C.d.mts → IRole-IjhZQmyx.d.mts} +3 -0
- package/dist/{chunk-XIPVE5EK.mjs → chunk-KQK2YVLS.mjs} +7 -9
- package/dist/{chunk-UAEENTR6.mjs → chunk-YSTK5GYG.mjs} +24 -29
- package/dist/components/index.mjs +3 -3
- package/dist/core/index.mjs +3 -3
- package/dist/coreService/index.mjs +3 -3
- package/dist/hooks/index.mjs +1 -1
- package/dist/interfaces/index.d.mts +1 -1
- package/dist/modules-features/index.d.mts +1 -1
- package/dist/modules-features/index.mjs +3 -3
- package/dist/shared/index.mjs +3 -3
- package/package.json +1 -1
|
@@ -261,19 +261,17 @@ function useMyReactMutation({
|
|
|
261
261
|
onError: (error, variables, context) => {
|
|
262
262
|
var _a;
|
|
263
263
|
if (enableDefaultError) {
|
|
264
|
-
if (
|
|
265
|
-
if (JSON.parse(error.message).message === null || JSON.parse(error.message).message === "null") {
|
|
266
|
-
notifications.show({
|
|
267
|
-
message: "Kh\xF4ng th\u1EC3 thao t\xE1c, l\u1ED7i ch\u01B0a x\xE1c \u0111\u1ECBnh!",
|
|
268
|
-
color: "red"
|
|
269
|
-
});
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
264
|
+
if (error.message === null || error.message === "null") {
|
|
272
265
|
notifications.show({
|
|
273
|
-
message:
|
|
266
|
+
message: "Kh\xF4ng th\u1EC3 thao t\xE1c, l\u1ED7i ch\u01B0a x\xE1c \u0111\u1ECBnh!",
|
|
274
267
|
color: "red"
|
|
275
268
|
});
|
|
269
|
+
return;
|
|
276
270
|
}
|
|
271
|
+
notifications.show({
|
|
272
|
+
message: error.message,
|
|
273
|
+
color: "red"
|
|
274
|
+
});
|
|
277
275
|
}
|
|
278
276
|
(_a = options == null ? void 0 : options.onError) == null ? void 0 : _a.call(options, error, variables, context);
|
|
279
277
|
}
|
|
@@ -2,6 +2,9 @@ import {
|
|
|
2
2
|
createGenericStore,
|
|
3
3
|
useStore_Permission
|
|
4
4
|
} from "./chunk-SUH3FFFV.mjs";
|
|
5
|
+
import {
|
|
6
|
+
utils_date
|
|
7
|
+
} from "./chunk-IFV3VC5B.mjs";
|
|
5
8
|
import {
|
|
6
9
|
utils_aq_mapBaseEntityToDomain,
|
|
7
10
|
utils_aq_mapDomainToEntity,
|
|
@@ -13,9 +16,6 @@ import {
|
|
|
13
16
|
utils_mantineReactTable_sortColumnsByKeyOrder,
|
|
14
17
|
utils_pdf_download
|
|
15
18
|
} from "./chunk-RJH5TVHS.mjs";
|
|
16
|
-
import {
|
|
17
|
-
utils_date
|
|
18
|
-
} from "./chunk-IFV3VC5B.mjs";
|
|
19
19
|
import {
|
|
20
20
|
utils_converter_enumToSelectOptions,
|
|
21
21
|
utils_converter_mapEnumToSelectData
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
useMyReactMutation,
|
|
44
44
|
useMyReactQuery,
|
|
45
45
|
useQ_AQ_GetAQModule
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KQK2YVLS.mjs";
|
|
47
47
|
import {
|
|
48
48
|
utils_notification_show
|
|
49
49
|
} from "./chunk-7ZCOFATU.mjs";
|
|
@@ -302,6 +302,7 @@ function MyButtonCreateUpdate({
|
|
|
302
302
|
},
|
|
303
303
|
mutationType: isUpdate ? "update" : "create"
|
|
304
304
|
}, useMyReactMutationProps), {
|
|
305
|
+
enableDefaultError: false,
|
|
305
306
|
options: __spreadValues({
|
|
306
307
|
onSuccess: (...args) => {
|
|
307
308
|
if (!ignoreDefaultOnSuccess) {
|
|
@@ -309,6 +310,20 @@ function MyButtonCreateUpdate({
|
|
|
309
310
|
if (resetFormWhenSubmit) form.reset();
|
|
310
311
|
}
|
|
311
312
|
onSuccess == null ? void 0 : onSuccess(...args);
|
|
313
|
+
},
|
|
314
|
+
onError: (error) => {
|
|
315
|
+
let parsed;
|
|
316
|
+
try {
|
|
317
|
+
parsed = JSON.parse(error.message);
|
|
318
|
+
} catch (e4) {
|
|
319
|
+
parsed = null;
|
|
320
|
+
}
|
|
321
|
+
if (parsed == null ? void 0 : parsed.data) {
|
|
322
|
+
Object.entries(parsed.data).forEach(([field, message]) => {
|
|
323
|
+
form.setFieldError(field.charAt(0).toLowerCase() + field.slice(1), message);
|
|
324
|
+
});
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
312
327
|
}
|
|
313
328
|
}, useMyReactMutationProps == null ? void 0 : useMyReactMutationProps.options)
|
|
314
329
|
}));
|
|
@@ -9210,7 +9225,6 @@ import {
|
|
|
9210
9225
|
Select as Select5,
|
|
9211
9226
|
Stack as Stack5
|
|
9212
9227
|
} from "@mantine/core";
|
|
9213
|
-
import { IconCopy } from "@tabler/icons-react";
|
|
9214
9228
|
import { useEffect as useEffect14, useMemo as useMemo7, useState as useState13 } from "react";
|
|
9215
9229
|
import * as XLSX4 from "xlsx";
|
|
9216
9230
|
import { jsx as jsx83, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
@@ -9288,7 +9302,7 @@ function Usecase_FileImportConfigModal(_a) {
|
|
|
9288
9302
|
}, rest), {
|
|
9289
9303
|
children: /* @__PURE__ */ jsxs43(Stack5, { children: [
|
|
9290
9304
|
/* @__PURE__ */ jsxs43(Grid, { children: [
|
|
9291
|
-
/* @__PURE__ */ jsx83(Grid.Col, { span:
|
|
9305
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: 12, children: /* @__PURE__ */ jsx83(
|
|
9292
9306
|
FileInput5,
|
|
9293
9307
|
{
|
|
9294
9308
|
clearable: true,
|
|
@@ -9298,7 +9312,6 @@ function Usecase_FileImportConfigModal(_a) {
|
|
|
9298
9312
|
onChange: handleSelectFile
|
|
9299
9313
|
}
|
|
9300
9314
|
) }),
|
|
9301
|
-
/* @__PURE__ */ jsx83(Grid.Col, { span: 4, children: /* @__PURE__ */ jsx83(Group23, { align: "end", h: "100%", children: /* @__PURE__ */ jsx83(Button18, { leftSection: /* @__PURE__ */ jsx83(IconCopy, {}), w: "100%", children: "D\xE1n t\u1EEB b\u1ED9 nh\u1EDB" }) }) }),
|
|
9302
9315
|
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(
|
|
9303
9316
|
Select5,
|
|
9304
9317
|
{
|
|
@@ -9584,7 +9597,7 @@ function AcademicYearsCreate() {
|
|
|
9584
9597
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u h\xE0nh ch\xEDnh",
|
|
9585
9598
|
flex: 1,
|
|
9586
9599
|
value: form.values.administrativeYearStart,
|
|
9587
|
-
|
|
9600
|
+
clearable: false
|
|
9588
9601
|
}
|
|
9589
9602
|
) })
|
|
9590
9603
|
] }),
|
|
@@ -9614,7 +9627,7 @@ function AcademicYearsCreate() {
|
|
|
9614
9627
|
label: "Ng\xE0y k\u1EBFt th\xFAc h\xE0nh ch\xEDnh",
|
|
9615
9628
|
flex: 1,
|
|
9616
9629
|
value: form.values.administrativeYearEnd,
|
|
9617
|
-
|
|
9630
|
+
clearable: false
|
|
9618
9631
|
}
|
|
9619
9632
|
) })
|
|
9620
9633
|
] }),
|
|
@@ -9804,7 +9817,7 @@ function AcademicYearsUpdate({
|
|
|
9804
9817
|
flex: 1,
|
|
9805
9818
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u h\xE0nh ch\xEDnh",
|
|
9806
9819
|
value: form.values.administrativeYearStart,
|
|
9807
|
-
|
|
9820
|
+
clearable: false
|
|
9808
9821
|
}
|
|
9809
9822
|
) })
|
|
9810
9823
|
] }),
|
|
@@ -9835,7 +9848,7 @@ function AcademicYearsUpdate({
|
|
|
9835
9848
|
flex: 1,
|
|
9836
9849
|
label: "Ng\xE0y k\u1EBFt th\xFAc h\xE0nh ch\xEDnh",
|
|
9837
9850
|
value: form.values.administrativeYearEnd,
|
|
9838
|
-
|
|
9851
|
+
clearable: false
|
|
9839
9852
|
}
|
|
9840
9853
|
) })
|
|
9841
9854
|
] }),
|
|
@@ -10603,24 +10616,6 @@ function Adapter_UserCreateUpdate({ values }) {
|
|
|
10603
10616
|
isUpdate: !!values,
|
|
10604
10617
|
modalProps: { size: "xl" },
|
|
10605
10618
|
scrollAreaAutosizeProps: { h: "auto" },
|
|
10606
|
-
useMyReactMutationProps: {
|
|
10607
|
-
options: {
|
|
10608
|
-
onError: (error) => {
|
|
10609
|
-
let parsed;
|
|
10610
|
-
try {
|
|
10611
|
-
parsed = JSON.parse(error.message);
|
|
10612
|
-
} catch (e4) {
|
|
10613
|
-
parsed = null;
|
|
10614
|
-
}
|
|
10615
|
-
if (parsed == null ? void 0 : parsed.data) {
|
|
10616
|
-
Object.entries(parsed.data).forEach(([field, message]) => {
|
|
10617
|
-
form.setFieldError(field.charAt(0).toLowerCase() + field.slice(1), message);
|
|
10618
|
-
});
|
|
10619
|
-
return;
|
|
10620
|
-
}
|
|
10621
|
-
}
|
|
10622
|
-
}
|
|
10623
|
-
},
|
|
10624
10619
|
form,
|
|
10625
10620
|
onSubmit: (formValues) => {
|
|
10626
10621
|
const _a2 = formValues, { accountStatus } = _a2, finalFormValues = __objRest(_a2, ["accountStatus"]);
|
|
@@ -70,16 +70,16 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-YSTK5GYG.mjs";
|
|
74
74
|
import "../chunk-SUH3FFFV.mjs";
|
|
75
|
-
import "../chunk-RJH5TVHS.mjs";
|
|
76
75
|
import "../chunk-IFV3VC5B.mjs";
|
|
76
|
+
import "../chunk-RJH5TVHS.mjs";
|
|
77
77
|
import "../chunk-7NNLZDND.mjs";
|
|
78
78
|
import "../chunk-O7YCQQO5.mjs";
|
|
79
79
|
import "../chunk-QSWIVDXC.mjs";
|
|
80
80
|
import "../chunk-KAC7JMQB.mjs";
|
|
81
81
|
import "../chunk-K6S7R6LU.mjs";
|
|
82
|
-
import "../chunk-
|
|
82
|
+
import "../chunk-KQK2YVLS.mjs";
|
|
83
83
|
import "../chunk-WZ6PXGGC.mjs";
|
|
84
84
|
import "../chunk-7ZCOFATU.mjs";
|
|
85
85
|
import "../chunk-FWCSY2DS.mjs";
|
package/dist/core/index.mjs
CHANGED
|
@@ -30,16 +30,16 @@ import {
|
|
|
30
30
|
MyStatsCard,
|
|
31
31
|
MyTextInput2 as MyTextInput,
|
|
32
32
|
MyWeeklySessionSchedulerPicker
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-YSTK5GYG.mjs";
|
|
34
34
|
import "../chunk-SUH3FFFV.mjs";
|
|
35
|
-
import "../chunk-RJH5TVHS.mjs";
|
|
36
35
|
import "../chunk-IFV3VC5B.mjs";
|
|
36
|
+
import "../chunk-RJH5TVHS.mjs";
|
|
37
37
|
import "../chunk-7NNLZDND.mjs";
|
|
38
38
|
import "../chunk-O7YCQQO5.mjs";
|
|
39
39
|
import "../chunk-QSWIVDXC.mjs";
|
|
40
40
|
import "../chunk-KAC7JMQB.mjs";
|
|
41
41
|
import "../chunk-K6S7R6LU.mjs";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-KQK2YVLS.mjs";
|
|
43
43
|
import "../chunk-WZ6PXGGC.mjs";
|
|
44
44
|
import "../chunk-7ZCOFATU.mjs";
|
|
45
45
|
import "../chunk-FWCSY2DS.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MyModalDelete
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YSTK5GYG.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
|
-
import "../chunk-RJH5TVHS.mjs";
|
|
6
5
|
import "../chunk-IFV3VC5B.mjs";
|
|
6
|
+
import "../chunk-RJH5TVHS.mjs";
|
|
7
7
|
import "../chunk-7NNLZDND.mjs";
|
|
8
8
|
import "../chunk-O7YCQQO5.mjs";
|
|
9
9
|
import "../chunk-QSWIVDXC.mjs";
|
|
@@ -11,7 +11,7 @@ import "../chunk-KAC7JMQB.mjs";
|
|
|
11
11
|
import "../chunk-K6S7R6LU.mjs";
|
|
12
12
|
import {
|
|
13
13
|
useMyReactMutation
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-KQK2YVLS.mjs";
|
|
15
15
|
import "../chunk-WZ6PXGGC.mjs";
|
|
16
16
|
import "../chunk-7ZCOFATU.mjs";
|
|
17
17
|
import {
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AcademicYearUpdateDto, I as IAcademicYear, a as IEmailConfig, b as IEmailTemplate, c as IRole } from '../IRole-
|
|
1
|
+
export { A as AcademicYearUpdateDto, I as IAcademicYear, a as IEmailConfig, b as IEmailTemplate, c as IRole } from '../IRole-IjhZQmyx.mjs';
|
|
2
2
|
import { I as IBaseEntity } from '../IBaseEntity-ChMy9RzQ.mjs';
|
|
3
3
|
import { I as IAQFileDetail } from '../utils_file-JlhzjLGS.mjs';
|
|
4
4
|
export { I as IAQModule } from '../IAQModule-4U3n2emx.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { I as IAcademicYear, a as IEmailConfig, b as IEmailTemplate, c as IRole } from '../IRole-
|
|
2
|
+
import { I as IAcademicYear, a as IEmailConfig, b as IEmailTemplate, c as IRole } from '../IRole-IjhZQmyx.mjs';
|
|
3
3
|
import { I as I_BasicAppShell_LinkItem } from '../types-km2g-xx5.mjs';
|
|
4
4
|
import { I as IBaseEntity } from '../IBaseEntity-ChMy9RzQ.mjs';
|
|
5
5
|
import { SelectProps, ButtonProps } from '@mantine/core';
|
|
@@ -113,16 +113,16 @@ import {
|
|
|
113
113
|
MailTemplateDeleteButton,
|
|
114
114
|
useS_moduleConfig,
|
|
115
115
|
useStore_Authenticate
|
|
116
|
-
} from "../chunk-
|
|
116
|
+
} from "../chunk-YSTK5GYG.mjs";
|
|
117
117
|
import "../chunk-SUH3FFFV.mjs";
|
|
118
|
-
import "../chunk-RJH5TVHS.mjs";
|
|
119
118
|
import "../chunk-IFV3VC5B.mjs";
|
|
119
|
+
import "../chunk-RJH5TVHS.mjs";
|
|
120
120
|
import "../chunk-7NNLZDND.mjs";
|
|
121
121
|
import "../chunk-O7YCQQO5.mjs";
|
|
122
122
|
import "../chunk-QSWIVDXC.mjs";
|
|
123
123
|
import "../chunk-KAC7JMQB.mjs";
|
|
124
124
|
import "../chunk-K6S7R6LU.mjs";
|
|
125
|
-
import "../chunk-
|
|
125
|
+
import "../chunk-KQK2YVLS.mjs";
|
|
126
126
|
import "../chunk-WZ6PXGGC.mjs";
|
|
127
127
|
import "../chunk-7ZCOFATU.mjs";
|
|
128
128
|
import "../chunk-FWCSY2DS.mjs";
|
package/dist/shared/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MySelect
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YSTK5GYG.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
|
-
import "../chunk-RJH5TVHS.mjs";
|
|
6
5
|
import {
|
|
7
6
|
utils_converter
|
|
8
7
|
} from "../chunk-IFV3VC5B.mjs";
|
|
8
|
+
import "../chunk-RJH5TVHS.mjs";
|
|
9
9
|
import "../chunk-7NNLZDND.mjs";
|
|
10
10
|
import "../chunk-O7YCQQO5.mjs";
|
|
11
11
|
import "../chunk-QSWIVDXC.mjs";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
enum_gender
|
|
16
16
|
} from "../chunk-RGUQWALX.mjs";
|
|
17
17
|
import "../chunk-K6S7R6LU.mjs";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-KQK2YVLS.mjs";
|
|
19
19
|
import "../chunk-WZ6PXGGC.mjs";
|
|
20
20
|
import "../chunk-7ZCOFATU.mjs";
|
|
21
21
|
import {
|