aq-fe-framework 0.1.495 → 0.1.496
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-OJTYSGR6.mjs → chunk-5IELATPH.mjs} +2 -0
- package/dist/{chunk-JC4GDGCC.mjs → chunk-K2DC3T55.mjs} +2 -2
- package/dist/{chunk-PLJGH3OJ.mjs → chunk-YAMXCOJ5.mjs} +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/core/index.d.mts +1 -1
- package/dist/core/index.mjs +3 -3
- package/dist/hooks/index.mjs +1 -1
- package/dist/modules-features/index.mjs +3 -3
- package/package.json +1 -1
@@ -187,6 +187,8 @@ function useMyReactQuery({
|
|
187
187
|
return useQuery(__spreadValues({
|
188
188
|
queryKey: queryKey != null ? queryKey : [],
|
189
189
|
// dùng mảng rỗng để tránh lỗi
|
190
|
+
enabled: !!queryKey,
|
191
|
+
// nếu queryKey undefined thì không chạy query
|
190
192
|
queryFn: async () => {
|
191
193
|
const isPrototype = process.env.NEXT_PUBLIC_APP_PROTOTYPE === "1";
|
192
194
|
if (isPrototype) {
|
@@ -2,7 +2,7 @@ import {
|
|
2
2
|
MyDataTable,
|
3
3
|
MyFlexColumn,
|
4
4
|
MyFlexRow
|
5
|
-
} from "./chunk-
|
5
|
+
} from "./chunk-YAMXCOJ5.mjs";
|
6
6
|
import {
|
7
7
|
const_object_colors
|
8
8
|
} from "./chunk-OMJJAHOC.mjs";
|
@@ -12,7 +12,7 @@ import {
|
|
12
12
|
import {
|
13
13
|
useMyReactMutation,
|
14
14
|
useMyReactQuery
|
15
|
-
} from "./chunk-
|
15
|
+
} from "./chunk-5IELATPH.mjs";
|
16
16
|
import {
|
17
17
|
utils_notification_show
|
18
18
|
} from "./chunk-7ZCOFATU.mjs";
|
@@ -66,11 +66,11 @@ import {
|
|
66
66
|
useS_BasicAppShell,
|
67
67
|
useS_ButtonImport,
|
68
68
|
utils_layout_getItemsWithoutLinks
|
69
|
-
} from "../chunk-
|
69
|
+
} from "../chunk-YAMXCOJ5.mjs";
|
70
70
|
import "../chunk-U62R2QKJ.mjs";
|
71
71
|
import "../chunk-5U2JSHSJ.mjs";
|
72
72
|
import "../chunk-OMJJAHOC.mjs";
|
73
|
-
import "../chunk-
|
73
|
+
import "../chunk-5IELATPH.mjs";
|
74
74
|
import "../chunk-7ZCOFATU.mjs";
|
75
75
|
import "../chunk-FWCSY2DS.mjs";
|
76
76
|
export {
|
package/dist/core/index.d.mts
CHANGED
@@ -150,7 +150,7 @@ interface MySelectProps extends SelectProps {
|
|
150
150
|
declare function MySelect({ label, data, isLoading, isError, ...rest }: MySelectProps): react_jsx_runtime.JSX.Element;
|
151
151
|
|
152
152
|
interface MySelectFromAPIProps<IRes extends IBaseEntity, IBody = any> extends MySelectProps {
|
153
|
-
queryKey
|
153
|
+
queryKey?: QueryKey;
|
154
154
|
axiosFn?: () => Promise<AxiosResponse<MyApiResponse<IRes[]>, IBody>>;
|
155
155
|
labelWithCode?: boolean;
|
156
156
|
queryOptions?: Partial<UseQueryOptions<IRes[], Error>>;
|
package/dist/core/index.mjs
CHANGED
@@ -18,14 +18,14 @@ import {
|
|
18
18
|
MyStatsCard,
|
19
19
|
MyTextInput,
|
20
20
|
MyWeeklySessionSchedulerPicker
|
21
|
-
} from "../chunk-
|
22
|
-
import "../chunk-
|
21
|
+
} from "../chunk-K2DC3T55.mjs";
|
22
|
+
import "../chunk-YAMXCOJ5.mjs";
|
23
23
|
import "../chunk-U62R2QKJ.mjs";
|
24
24
|
import "../chunk-5U2JSHSJ.mjs";
|
25
25
|
import "../chunk-GFEMKKFH.mjs";
|
26
26
|
import "../chunk-OMJJAHOC.mjs";
|
27
27
|
import "../chunk-K6S7R6LU.mjs";
|
28
|
-
import "../chunk-
|
28
|
+
import "../chunk-5IELATPH.mjs";
|
29
29
|
import "../chunk-7ZCOFATU.mjs";
|
30
30
|
import "../chunk-FWCSY2DS.mjs";
|
31
31
|
export {
|
package/dist/hooks/index.mjs
CHANGED
@@ -15,7 +15,7 @@ import {
|
|
15
15
|
MyButton as MyButton2,
|
16
16
|
MyDataTableSelectOne,
|
17
17
|
MyTextInput as MyTextInput2
|
18
|
-
} from "../chunk-
|
18
|
+
} from "../chunk-K2DC3T55.mjs";
|
19
19
|
import {
|
20
20
|
F_authenticate_Logout,
|
21
21
|
MyActionIconDelete,
|
@@ -41,7 +41,7 @@ import {
|
|
41
41
|
groupToTwoLevels,
|
42
42
|
useS_authenticate,
|
43
43
|
utils_layout_getItemsWithoutLinks
|
44
|
-
} from "../chunk-
|
44
|
+
} from "../chunk-YAMXCOJ5.mjs";
|
45
45
|
import {
|
46
46
|
createGenericStore
|
47
47
|
} from "../chunk-U62R2QKJ.mjs";
|
@@ -65,7 +65,7 @@ import {
|
|
65
65
|
useMyRouter,
|
66
66
|
useQ_AQ_GetAQModule,
|
67
67
|
useQ_SkillCenter_GetAll
|
68
|
-
} from "../chunk-
|
68
|
+
} from "../chunk-5IELATPH.mjs";
|
69
69
|
import {
|
70
70
|
utils_notification_show
|
71
71
|
} from "../chunk-7ZCOFATU.mjs";
|