aq-fe-framework 0.1.839 → 0.1.840
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-UAEENTR6.mjs → chunk-ECUVRL5W.mjs} +20 -23
- package/dist/{chunk-XIPVE5EK.mjs → chunk-KQK2YVLS.mjs} +7 -9
- package/dist/components/index.mjs +2 -2
- package/dist/core/index.mjs +2 -2
- package/dist/coreService/index.mjs +2 -2
- 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 +2 -2
- package/dist/shared/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -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
|
}));
|
|
@@ -9584,7 +9599,7 @@ function AcademicYearsCreate() {
|
|
|
9584
9599
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u h\xE0nh ch\xEDnh",
|
|
9585
9600
|
flex: 1,
|
|
9586
9601
|
value: form.values.administrativeYearStart,
|
|
9587
|
-
|
|
9602
|
+
clearable: false
|
|
9588
9603
|
}
|
|
9589
9604
|
) })
|
|
9590
9605
|
] }),
|
|
@@ -9614,7 +9629,7 @@ function AcademicYearsCreate() {
|
|
|
9614
9629
|
label: "Ng\xE0y k\u1EBFt th\xFAc h\xE0nh ch\xEDnh",
|
|
9615
9630
|
flex: 1,
|
|
9616
9631
|
value: form.values.administrativeYearEnd,
|
|
9617
|
-
|
|
9632
|
+
clearable: false
|
|
9618
9633
|
}
|
|
9619
9634
|
) })
|
|
9620
9635
|
] }),
|
|
@@ -9804,7 +9819,7 @@ function AcademicYearsUpdate({
|
|
|
9804
9819
|
flex: 1,
|
|
9805
9820
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u h\xE0nh ch\xEDnh",
|
|
9806
9821
|
value: form.values.administrativeYearStart,
|
|
9807
|
-
|
|
9822
|
+
clearable: false
|
|
9808
9823
|
}
|
|
9809
9824
|
) })
|
|
9810
9825
|
] }),
|
|
@@ -9835,7 +9850,7 @@ function AcademicYearsUpdate({
|
|
|
9835
9850
|
flex: 1,
|
|
9836
9851
|
label: "Ng\xE0y k\u1EBFt th\xFAc h\xE0nh ch\xEDnh",
|
|
9837
9852
|
value: form.values.administrativeYearEnd,
|
|
9838
|
-
|
|
9853
|
+
clearable: false
|
|
9839
9854
|
}
|
|
9840
9855
|
) })
|
|
9841
9856
|
] }),
|
|
@@ -10603,24 +10618,6 @@ function Adapter_UserCreateUpdate({ values }) {
|
|
|
10603
10618
|
isUpdate: !!values,
|
|
10604
10619
|
modalProps: { size: "xl" },
|
|
10605
10620
|
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
10621
|
form,
|
|
10625
10622
|
onSubmit: (formValues) => {
|
|
10626
10623
|
const _a2 = formValues, { accountStatus } = _a2, finalFormValues = __objRest(_a2, ["accountStatus"]);
|
|
@@ -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
|
}
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-ECUVRL5W.mjs";
|
|
74
74
|
import "../chunk-SUH3FFFV.mjs";
|
|
75
75
|
import "../chunk-RJH5TVHS.mjs";
|
|
76
76
|
import "../chunk-IFV3VC5B.mjs";
|
|
@@ -79,7 +79,7 @@ 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,7 +30,7 @@ import {
|
|
|
30
30
|
MyStatsCard,
|
|
31
31
|
MyTextInput2 as MyTextInput,
|
|
32
32
|
MyWeeklySessionSchedulerPicker
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-ECUVRL5W.mjs";
|
|
34
34
|
import "../chunk-SUH3FFFV.mjs";
|
|
35
35
|
import "../chunk-RJH5TVHS.mjs";
|
|
36
36
|
import "../chunk-IFV3VC5B.mjs";
|
|
@@ -39,7 +39,7 @@ 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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MyModalDelete
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ECUVRL5W.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
5
|
import "../chunk-RJH5TVHS.mjs";
|
|
6
6
|
import "../chunk-IFV3VC5B.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,7 +113,7 @@ import {
|
|
|
113
113
|
MailTemplateDeleteButton,
|
|
114
114
|
useS_moduleConfig,
|
|
115
115
|
useStore_Authenticate
|
|
116
|
-
} from "../chunk-
|
|
116
|
+
} from "../chunk-ECUVRL5W.mjs";
|
|
117
117
|
import "../chunk-SUH3FFFV.mjs";
|
|
118
118
|
import "../chunk-RJH5TVHS.mjs";
|
|
119
119
|
import "../chunk-IFV3VC5B.mjs";
|
|
@@ -122,7 +122,7 @@ 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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MySelect
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ECUVRL5W.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
5
|
import "../chunk-RJH5TVHS.mjs";
|
|
6
6
|
import {
|
|
@@ -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 {
|