aq-fe-framework 0.1.390 → 0.1.392

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.
@@ -119,8 +119,12 @@ baseAxios.interceptors.request.use(
119
119
  var baseAxios_default = baseAxios;
120
120
 
121
121
  // src/hooks/custom-hooks/useLoadAxiosConfig.ts
122
- import { useEffect } from "react";
123
- var useLoadAxiosConfig = ({ axiosInstance = baseAxios_default, url }) => {
122
+ import { useEffect, useState } from "react";
123
+ var useLoadAxiosConfig = ({
124
+ axiosInstance = baseAxios_default,
125
+ url
126
+ }) => {
127
+ const [flag, setFlag] = useState(false);
124
128
  useEffect(() => {
125
129
  (async () => {
126
130
  try {
@@ -128,13 +132,14 @@ var useLoadAxiosConfig = ({ axiosInstance = baseAxios_default, url }) => {
128
132
  const config = await res.json();
129
133
  const finalUrl = url ? url : config.baseURL;
130
134
  axiosInstance.defaults.baseURL = finalUrl;
131
- baseAxios_default.defaults.baseURL = finalUrl;
132
135
  console.log("\u2705 baseURL set to", finalUrl);
136
+ return setFlag(true);
133
137
  } catch (err) {
134
138
  console.error("\u274C L\u1ED7i khi load config.json:", err);
135
139
  }
136
140
  })();
137
141
  }, [axiosInstance]);
142
+ return { flag, setFlag };
138
143
  };
139
144
 
140
145
  // src/hooks/custom-hooks/useMutationAction.tsx
@@ -1,3 +1,6 @@
1
+ import {
2
+ createGenericStore
3
+ } from "./chunk-Y3YGC5IH.mjs";
1
4
  import {
2
5
  utils_pdf_download
3
6
  } from "./chunk-5U2JSHSJ.mjs";
@@ -13,13 +16,10 @@ import {
13
16
  baseAxios_default,
14
17
  useMyReactMutation,
15
18
  useQ_AQ_GetAQModule
16
- } from "./chunk-RZT4Z2GV.mjs";
19
+ } from "./chunk-GOXDTVAY.mjs";
17
20
  import {
18
21
  utils_notification_show
19
22
  } from "./chunk-7ZCOFATU.mjs";
20
- import {
21
- createGenericStore
22
- } from "./chunk-Y3YGC5IH.mjs";
23
23
  import {
24
24
  __objRest,
25
25
  __spreadProps,
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  useMyReactMutation,
14
14
  useMyReactQuery
15
- } from "./chunk-RZT4Z2GV.mjs";
15
+ } from "./chunk-GOXDTVAY.mjs";
16
16
  import {
17
17
  utils_notification_show
18
18
  } from "./chunk-7ZCOFATU.mjs";
@@ -287,9 +287,9 @@ function MyButtonCreateUpdate({
287
287
  }),
288
288
  children: [
289
289
  /* @__PURE__ */ jsx3(
290
- ScrollArea,
290
+ ScrollArea.Autosize,
291
291
  __spreadProps(__spreadValues({
292
- h: (modalProps == null ? void 0 : modalProps.fullScreen) ? "calc(100vh - 140px)" : "75vh"
292
+ mah: (modalProps == null ? void 0 : modalProps.fullScreen) ? "calc(100vh - 140px)" : "68vh"
293
293
  }, scrollAreaAutosizeProps), {
294
294
  children: /* @__PURE__ */ jsx3(Container, { w: "100%", fluid: true, children: /* @__PURE__ */ jsx3(MyFlexColumn, { children }) })
295
295
  })
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React$1, { ReactNode, ComponentProps } from 'react';
2
+ import React__default, { ReactNode, ComponentProps } from 'react';
3
3
  import { t as type_action, T as TYPES_MANTINE_SIZE } from '../types-B5rmBuXz.mjs';
4
4
  import { ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, MantineSize, InputWrapperProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
5
5
  import { M as MyApiResponse } from '../createBaseApi-D9OK2lA_.mjs';
@@ -22,7 +22,7 @@ import 'exceljs';
22
22
  declare const MyBoxesCore: ({ className, ...rest }: {
23
23
  className?: string;
24
24
  }) => react_jsx_runtime.JSX.Element;
25
- declare const Boxes: React$1.MemoExoticComponent<({ className, ...rest }: {
25
+ declare const Boxes: React__default.MemoExoticComponent<({ className, ...rest }: {
26
26
  className?: string;
27
27
  }) => react_jsx_runtime.JSX.Element>;
28
28
 
@@ -478,7 +478,7 @@ declare function MyPageContent({ leftTopBar, title, canBack, rightTopBar, childr
478
478
 
479
479
  interface ITab {
480
480
  label: string;
481
- icon?: React$1.ForwardRefExoticComponent<IconProps & React$1.RefAttributes<Icon>>;
481
+ icon?: React__default.ForwardRefExoticComponent<IconProps & React__default.RefAttributes<Icon>>;
482
482
  }
483
483
  interface IMyTab extends TabsProps {
484
484
  tabList: ITab[];
@@ -62,7 +62,8 @@ import {
62
62
  useS_BasicAppShell,
63
63
  useS_ButtonImport,
64
64
  utils_layout_getItemsWithoutLinks
65
- } from "../chunk-GFT7CNAX.mjs";
65
+ } from "../chunk-WVBYHI4T.mjs";
66
+ import "../chunk-Y3YGC5IH.mjs";
66
67
  import "../chunk-5U2JSHSJ.mjs";
67
68
  import {
68
69
  MyDataTable,
@@ -70,9 +71,8 @@ import {
70
71
  MyFlexRow
71
72
  } from "../chunk-GEYCGM75.mjs";
72
73
  import "../chunk-7ORPZMGL.mjs";
73
- import "../chunk-RZT4Z2GV.mjs";
74
+ import "../chunk-GOXDTVAY.mjs";
74
75
  import "../chunk-7ZCOFATU.mjs";
75
- import "../chunk-Y3YGC5IH.mjs";
76
76
  import "../chunk-FWCSY2DS.mjs";
77
77
  export {
78
78
  AQButtonCreateByImportFile,
@@ -13,11 +13,11 @@ import {
13
13
  MyStatsCard,
14
14
  MyTextInput,
15
15
  MyWeeklySessionSchedulerPicker
16
- } from "../chunk-2OSBCA3P.mjs";
16
+ } from "../chunk-YPJWNLHU.mjs";
17
17
  import "../chunk-GEYCGM75.mjs";
18
18
  import "../chunk-7ORPZMGL.mjs";
19
19
  import "../chunk-K6S7R6LU.mjs";
20
- import "../chunk-RZT4Z2GV.mjs";
20
+ import "../chunk-GOXDTVAY.mjs";
21
21
  import "../chunk-7ZCOFATU.mjs";
22
22
  import "../chunk-FWCSY2DS.mjs";
23
23
  export {
@@ -1,6 +1,7 @@
1
1
  import * as next_dist_shared_lib_app_router_context_shared_runtime from 'next/dist/shared/lib/app-router-context.shared-runtime';
2
2
  import { M as MyApiResponse } from '../createBaseApi-D9OK2lA_.mjs';
3
3
  export { I as IPagingParams, c as createBaseApi } from '../createBaseApi-D9OK2lA_.mjs';
4
+ import * as React from 'react';
4
5
  import { AxiosInstance, AxiosResponse } from 'axios';
5
6
  import * as _tanstack_react_query from '@tanstack/react-query';
6
7
  import { UseMutationOptions, QueryKey, UseQueryOptions } from '@tanstack/react-query';
@@ -34,10 +35,13 @@ declare function createBaseUrl(baseUrl: string): {
34
35
  deleteList: string;
35
36
  };
36
37
 
37
- declare const useLoadAxiosConfig: ({ axiosInstance, url }: {
38
+ declare const useLoadAxiosConfig: ({ axiosInstance, url, }: {
38
39
  axiosInstance: AxiosInstance;
39
40
  url?: string;
40
- }) => void;
41
+ }) => {
42
+ flag: boolean;
43
+ setFlag: React.Dispatch<React.SetStateAction<boolean>>;
44
+ };
41
45
 
42
46
  interface MyReactMutationProps<IReq, IRes> {
43
47
  axiosFn: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>>;
@@ -7,7 +7,7 @@ import {
7
7
  useMyReactQuery,
8
8
  useMyRouter,
9
9
  useQ_AQ_GetAQModule
10
- } from "../chunk-RZT4Z2GV.mjs";
10
+ } from "../chunk-GOXDTVAY.mjs";
11
11
  import "../chunk-7ZCOFATU.mjs";
12
12
  import "../chunk-FWCSY2DS.mjs";
13
13
  export {
@@ -11,9 +11,6 @@ import {
11
11
  import {
12
12
  U0DateToDDMMYYYString
13
13
  } from "../chunk-I2XIN2R3.mjs";
14
- import {
15
- const_object_documentTypes
16
- } from "../chunk-BZMQOGL6.mjs";
17
14
  import {
18
15
  F_authenticate_Logout,
19
16
  MyActionIconDelete,
@@ -36,16 +33,19 @@ import {
36
33
  groupToTwoLevels,
37
34
  useS_authenticate,
38
35
  utils_layout_getItemsWithoutLinks
39
- } from "../chunk-GFT7CNAX.mjs";
36
+ } from "../chunk-WVBYHI4T.mjs";
37
+ import {
38
+ createGenericStore
39
+ } from "../chunk-Y3YGC5IH.mjs";
40
40
  import "../chunk-5U2JSHSJ.mjs";
41
41
  import {
42
- enum_emailConfigModule
43
- } from "../chunk-VH4ZAD6M.mjs";
42
+ const_object_documentTypes
43
+ } from "../chunk-BZMQOGL6.mjs";
44
44
  import {
45
45
  MyButton as MyButton2,
46
46
  MyDataTableSelectOne,
47
47
  MyTextInput as MyTextInput2
48
- } from "../chunk-2OSBCA3P.mjs";
48
+ } from "../chunk-YPJWNLHU.mjs";
49
49
  import {
50
50
  MyDataTable,
51
51
  MyFlexColumn,
@@ -54,6 +54,9 @@ import {
54
54
  import {
55
55
  const_object_colors
56
56
  } from "../chunk-7ORPZMGL.mjs";
57
+ import {
58
+ enum_emailConfigModule
59
+ } from "../chunk-VH4ZAD6M.mjs";
57
60
  import "../chunk-K6S7R6LU.mjs";
58
61
  import {
59
62
  baseAxios_default,
@@ -64,13 +67,10 @@ import {
64
67
  useMyRouter,
65
68
  useQ_AQ_GetAQModule,
66
69
  useQ_SkillCenter_GetAll
67
- } from "../chunk-RZT4Z2GV.mjs";
70
+ } from "../chunk-GOXDTVAY.mjs";
68
71
  import {
69
72
  utils_notification_show
70
73
  } from "../chunk-7ZCOFATU.mjs";
71
- import {
72
- createGenericStore
73
- } from "../chunk-Y3YGC5IH.mjs";
74
74
  import {
75
75
  __objRest,
76
76
  __spreadProps,
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.390",
45
+ "version": "0.1.392",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"