aq-fe-framework 0.1.1085 → 0.1.1087
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,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createGenericStore
|
|
2
|
+
createGenericStore,
|
|
3
3
|
useAppStore,
|
|
4
4
|
useStore_Permission,
|
|
5
5
|
useStore_ProjectInfo
|
|
@@ -27,16 +27,16 @@ import {
|
|
|
27
27
|
utils_text
|
|
28
28
|
} from "./chunk-7ZI7IOEP.mjs";
|
|
29
29
|
import {
|
|
30
|
-
createGenericStore
|
|
30
|
+
createGenericStore as createGenericStore2
|
|
31
31
|
} from "./chunk-BTITP4TN.mjs";
|
|
32
|
-
import {
|
|
33
|
-
enumLabel_gender,
|
|
34
|
-
enum_daysOfWeek
|
|
35
|
-
} from "./chunk-VFTEXXA7.mjs";
|
|
36
32
|
import {
|
|
37
33
|
const_object_colors,
|
|
38
34
|
const_object_documentTypes
|
|
39
35
|
} from "./chunk-OHAOJE5F.mjs";
|
|
36
|
+
import {
|
|
37
|
+
enumLabel_gender,
|
|
38
|
+
enum_daysOfWeek
|
|
39
|
+
} from "./chunk-VFTEXXA7.mjs";
|
|
40
40
|
import {
|
|
41
41
|
baseAxios_default,
|
|
42
42
|
createBaseApi,
|
|
@@ -631,14 +631,7 @@ function MyButtonCreateUpdate({
|
|
|
631
631
|
},
|
|
632
632
|
mutationType: isUpdate ? "update" : "create"
|
|
633
633
|
}, useMyReactMutationProps), {
|
|
634
|
-
options: __spreadValues({
|
|
635
|
-
onSuccess: (...args) => {
|
|
636
|
-
if (!ignoreDefaultOnSuccess) {
|
|
637
|
-
if (closeModalWhenSubmit) disclosure[1].close();
|
|
638
|
-
if (resetFormWhenSubmit) form.reset();
|
|
639
|
-
}
|
|
640
|
-
onSuccess == null ? void 0 : onSuccess(...args);
|
|
641
|
-
},
|
|
634
|
+
options: __spreadProps(__spreadValues({
|
|
642
635
|
onError: (error) => {
|
|
643
636
|
let parsed;
|
|
644
637
|
try {
|
|
@@ -659,7 +652,15 @@ function MyButtonCreateUpdate({
|
|
|
659
652
|
return;
|
|
660
653
|
}
|
|
661
654
|
}
|
|
662
|
-
}, useMyReactMutationProps == null ? void 0 : useMyReactMutationProps.options)
|
|
655
|
+
}, useMyReactMutationProps == null ? void 0 : useMyReactMutationProps.options), {
|
|
656
|
+
onSuccess: (...args) => {
|
|
657
|
+
if (!ignoreDefaultOnSuccess) {
|
|
658
|
+
if (closeModalWhenSubmit) disclosure[1].close();
|
|
659
|
+
if (resetFormWhenSubmit) form.reset();
|
|
660
|
+
}
|
|
661
|
+
onSuccess == null ? void 0 : onSuccess(...args);
|
|
662
|
+
}
|
|
663
|
+
})
|
|
663
664
|
}));
|
|
664
665
|
useEffect3(() => {
|
|
665
666
|
if (disclosure[0]) {
|
|
@@ -1882,7 +1883,7 @@ import { IconArrowBackUp, IconArrowBigLeft, IconArrowBigRight, IconSquareRounded
|
|
|
1882
1883
|
// src/components/Button/ButtonImport/useS_ButtonImport.ts
|
|
1883
1884
|
import { useEffect as useEffect5, useMemo as useMemo2 } from "react";
|
|
1884
1885
|
import * as XLSX2 from "xlsx";
|
|
1885
|
-
var useStore =
|
|
1886
|
+
var useStore = createGenericStore2({
|
|
1886
1887
|
initialState: {
|
|
1887
1888
|
data: [],
|
|
1888
1889
|
title: [],
|
|
@@ -2229,6 +2230,7 @@ function MyDataTable(_a) {
|
|
|
2229
2230
|
case "list":
|
|
2230
2231
|
col.Cell = ({ cell }) => {
|
|
2231
2232
|
const value = cell.getValue();
|
|
2233
|
+
if (value.length == 0) return;
|
|
2232
2234
|
return /* @__PURE__ */ jsx35(List, { children: value.map((item, idx) => /* @__PURE__ */ jsx35(List.Item, { children: item }, idx)) });
|
|
2233
2235
|
};
|
|
2234
2236
|
col.size = 300;
|
|
@@ -7896,7 +7898,7 @@ function AQStatCard2({
|
|
|
7896
7898
|
import { useEffect as useEffect9 } from "react";
|
|
7897
7899
|
|
|
7898
7900
|
// src/components/Layouts/BasicAppShell/useStore_BasicAppShell.ts
|
|
7899
|
-
var useStore2 =
|
|
7901
|
+
var useStore2 = createGenericStore2({
|
|
7900
7902
|
initialState: {
|
|
7901
7903
|
menuCode: "",
|
|
7902
7904
|
moduleCode: "Module code",
|
|
@@ -10349,7 +10351,7 @@ import { IconSearch as IconSearch4 } from "@tabler/icons-react";
|
|
|
10349
10351
|
import { useEffect as useEffect20, useMemo as useMemo9, useState as useState18 } from "react";
|
|
10350
10352
|
|
|
10351
10353
|
// src/modules-features/admin/core/accountManagement/useStore_AccountManagement.ts
|
|
10352
|
-
var useStore3 =
|
|
10354
|
+
var useStore3 = createGenericStore({
|
|
10353
10355
|
initialState: {}
|
|
10354
10356
|
});
|
|
10355
10357
|
function useStore_AccountManagement() {
|
|
@@ -14409,7 +14411,7 @@ import { useEffect as useEffect28 } from "react";
|
|
|
14409
14411
|
import { useMutation as useMutation3 } from "@tanstack/react-query";
|
|
14410
14412
|
|
|
14411
14413
|
// src/modules-features/admin/core/moduleConfig/useS_moduleConfig.ts
|
|
14412
|
-
var useStore4 =
|
|
14414
|
+
var useStore4 = createGenericStore2({
|
|
14413
14415
|
initialState: {}
|
|
14414
14416
|
});
|
|
14415
14417
|
function useS_moduleConfig() {
|
|
@@ -16575,7 +16577,7 @@ import { useRouter as useRouter4 } from "next/navigation.js";
|
|
|
16575
16577
|
import { useEffect as useEffect36 } from "react";
|
|
16576
16578
|
|
|
16577
16579
|
// src/modules-features/authenticate/useStore_Authenticate.ts
|
|
16578
|
-
var useStore5 =
|
|
16580
|
+
var useStore5 = createGenericStore2({
|
|
16579
16581
|
initialState: { token: "", saveLogin: false, username: "", password: "", workingUnitId: 0, roleIds: [] },
|
|
16580
16582
|
storageKey: "useStore_Authenticate"
|
|
16581
16583
|
});
|
|
@@ -17400,7 +17402,7 @@ import Link4 from "next/link.js";
|
|
|
17400
17402
|
import classes from "./css.module-4ICLUKPO.module.css";
|
|
17401
17403
|
|
|
17402
17404
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenuStore.ts
|
|
17403
|
-
var useStore6 =
|
|
17405
|
+
var useStore6 = createGenericStore2({
|
|
17404
17406
|
initialState: { name: "\u0110\u0103ng k\xFD kh\xF3a h\u1ECDc" },
|
|
17405
17407
|
storageKey: "HeaderMegaMenuStore"
|
|
17406
17408
|
});
|
|
@@ -69,14 +69,14 @@ import {
|
|
|
69
69
|
useHeaderMegaMenuStore,
|
|
70
70
|
useS_ButtonImport,
|
|
71
71
|
useStore_BasicAppShell
|
|
72
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-YIXR7XL3.mjs";
|
|
73
73
|
import "../chunk-WW55EZ4B.mjs";
|
|
74
74
|
import "../chunk-KGBXMHKR.mjs";
|
|
75
75
|
import "../chunk-7ZI7IOEP.mjs";
|
|
76
76
|
import "../chunk-NYAWQRB7.mjs";
|
|
77
77
|
import "../chunk-BTITP4TN.mjs";
|
|
78
|
-
import "../chunk-VFTEXXA7.mjs";
|
|
79
78
|
import "../chunk-OHAOJE5F.mjs";
|
|
79
|
+
import "../chunk-VFTEXXA7.mjs";
|
|
80
80
|
import "../chunk-Z76CSZFI.mjs";
|
|
81
81
|
import "../chunk-WZ6PXGGC.mjs";
|
|
82
82
|
import "../chunk-JD6AELXS.mjs";
|
package/dist/core/index.mjs
CHANGED
|
@@ -34,14 +34,14 @@ import {
|
|
|
34
34
|
MyStatsCard,
|
|
35
35
|
MyTextInput2 as MyTextInput,
|
|
36
36
|
MyWeeklySessionSchedulerPicker
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-YIXR7XL3.mjs";
|
|
38
38
|
import "../chunk-WW55EZ4B.mjs";
|
|
39
39
|
import "../chunk-KGBXMHKR.mjs";
|
|
40
40
|
import "../chunk-7ZI7IOEP.mjs";
|
|
41
41
|
import "../chunk-NYAWQRB7.mjs";
|
|
42
42
|
import "../chunk-BTITP4TN.mjs";
|
|
43
|
-
import "../chunk-VFTEXXA7.mjs";
|
|
44
43
|
import "../chunk-OHAOJE5F.mjs";
|
|
44
|
+
import "../chunk-VFTEXXA7.mjs";
|
|
45
45
|
import "../chunk-Z76CSZFI.mjs";
|
|
46
46
|
import "../chunk-WZ6PXGGC.mjs";
|
|
47
47
|
import "../chunk-JD6AELXS.mjs";
|
|
@@ -97,14 +97,14 @@ import {
|
|
|
97
97
|
MailTemplateDeleteButton,
|
|
98
98
|
useS_moduleConfig,
|
|
99
99
|
useStore_Authenticate
|
|
100
|
-
} from "../chunk-
|
|
100
|
+
} from "../chunk-YIXR7XL3.mjs";
|
|
101
101
|
import "../chunk-WW55EZ4B.mjs";
|
|
102
102
|
import "../chunk-KGBXMHKR.mjs";
|
|
103
103
|
import "../chunk-7ZI7IOEP.mjs";
|
|
104
104
|
import "../chunk-NYAWQRB7.mjs";
|
|
105
105
|
import "../chunk-BTITP4TN.mjs";
|
|
106
|
-
import "../chunk-VFTEXXA7.mjs";
|
|
107
106
|
import "../chunk-OHAOJE5F.mjs";
|
|
107
|
+
import "../chunk-VFTEXXA7.mjs";
|
|
108
108
|
import "../chunk-Z76CSZFI.mjs";
|
|
109
109
|
import "../chunk-WZ6PXGGC.mjs";
|
|
110
110
|
import "../chunk-JD6AELXS.mjs";
|
package/dist/shared/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MySelect
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YIXR7XL3.mjs";
|
|
4
4
|
import "../chunk-WW55EZ4B.mjs";
|
|
5
5
|
import "../chunk-KGBXMHKR.mjs";
|
|
6
6
|
import {
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "../chunk-7ZI7IOEP.mjs";
|
|
9
9
|
import "../chunk-NYAWQRB7.mjs";
|
|
10
10
|
import "../chunk-BTITP4TN.mjs";
|
|
11
|
+
import "../chunk-OHAOJE5F.mjs";
|
|
11
12
|
import {
|
|
12
13
|
enumLabel_gender,
|
|
13
14
|
enum_gender
|
|
14
15
|
} from "../chunk-VFTEXXA7.mjs";
|
|
15
|
-
import "../chunk-OHAOJE5F.mjs";
|
|
16
16
|
import "../chunk-Z76CSZFI.mjs";
|
|
17
17
|
import "../chunk-WZ6PXGGC.mjs";
|
|
18
18
|
import {
|