aq-fe-framework 0.1.392 → 0.1.393

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.
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  useMyReactMutation,
14
14
  useMyReactQuery
15
- } from "./chunk-GOXDTVAY.mjs";
15
+ } from "./chunk-KZERBMEK.mjs";
16
16
  import {
17
17
  utils_notification_show
18
18
  } from "./chunk-7ZCOFATU.mjs";
@@ -287,11 +287,11 @@ function MyButtonCreateUpdate({
287
287
  }),
288
288
  children: [
289
289
  /* @__PURE__ */ jsx3(
290
- ScrollArea.Autosize,
290
+ ScrollArea,
291
291
  __spreadProps(__spreadValues({
292
- mah: (modalProps == null ? void 0 : modalProps.fullScreen) ? "calc(100vh - 140px)" : "68vh"
292
+ h: (modalProps == null ? void 0 : modalProps.fullScreen) ? "calc(100vh - 140px)" : "auto"
293
293
  }, scrollAreaAutosizeProps), {
294
- children: /* @__PURE__ */ jsx3(Container, { w: "100%", fluid: true, children: /* @__PURE__ */ jsx3(MyFlexColumn, { children }) })
294
+ children: /* @__PURE__ */ jsx3(Container, { w: "100%", fluid: true, pt: "md", children: /* @__PURE__ */ jsx3(MyFlexColumn, { children }) })
295
295
  })
296
296
  ),
297
297
  /* @__PURE__ */ jsx3(Space, {}),
@@ -126,19 +126,20 @@ var useLoadAxiosConfig = ({
126
126
  }) => {
127
127
  const [flag, setFlag] = useState(false);
128
128
  useEffect(() => {
129
- (async () => {
129
+ const loadConfig = async () => {
130
130
  try {
131
131
  const res = await fetch("/config.json");
132
132
  const config = await res.json();
133
133
  const finalUrl = url ? url : config.baseURL;
134
134
  axiosInstance.defaults.baseURL = finalUrl;
135
135
  console.log("\u2705 baseURL set to", finalUrl);
136
- return setFlag(true);
136
+ setFlag(true);
137
137
  } catch (err) {
138
138
  console.error("\u274C L\u1ED7i khi load config.json:", err);
139
139
  }
140
- })();
141
- }, [axiosInstance]);
140
+ };
141
+ loadConfig();
142
+ }, [axiosInstance, url]);
142
143
  return { flag, setFlag };
143
144
  };
144
145
 
@@ -1,9 +1,9 @@
1
- import {
2
- createGenericStore
3
- } from "./chunk-Y3YGC5IH.mjs";
4
1
  import {
5
2
  utils_pdf_download
6
3
  } from "./chunk-5U2JSHSJ.mjs";
4
+ import {
5
+ createGenericStore
6
+ } from "./chunk-Y3YGC5IH.mjs";
7
7
  import {
8
8
  MyDataTable,
9
9
  MyFlexColumn,
@@ -16,7 +16,7 @@ import {
16
16
  baseAxios_default,
17
17
  useMyReactMutation,
18
18
  useQ_AQ_GetAQModule
19
- } from "./chunk-GOXDTVAY.mjs";
19
+ } from "./chunk-KZERBMEK.mjs";
20
20
  import {
21
21
  utils_notification_show
22
22
  } from "./chunk-7ZCOFATU.mjs";
@@ -62,16 +62,16 @@ import {
62
62
  useS_BasicAppShell,
63
63
  useS_ButtonImport,
64
64
  utils_layout_getItemsWithoutLinks
65
- } from "../chunk-WVBYHI4T.mjs";
66
- import "../chunk-Y3YGC5IH.mjs";
65
+ } from "../chunk-XLB5ACVY.mjs";
67
66
  import "../chunk-5U2JSHSJ.mjs";
67
+ import "../chunk-Y3YGC5IH.mjs";
68
68
  import {
69
69
  MyDataTable,
70
70
  MyFlexColumn,
71
71
  MyFlexRow
72
72
  } from "../chunk-GEYCGM75.mjs";
73
73
  import "../chunk-7ORPZMGL.mjs";
74
- import "../chunk-GOXDTVAY.mjs";
74
+ import "../chunk-KZERBMEK.mjs";
75
75
  import "../chunk-7ZCOFATU.mjs";
76
76
  import "../chunk-FWCSY2DS.mjs";
77
77
  export {
@@ -13,11 +13,11 @@ import {
13
13
  MyStatsCard,
14
14
  MyTextInput,
15
15
  MyWeeklySessionSchedulerPicker
16
- } from "../chunk-YPJWNLHU.mjs";
16
+ } from "../chunk-FHBYQMXY.mjs";
17
17
  import "../chunk-GEYCGM75.mjs";
18
18
  import "../chunk-7ORPZMGL.mjs";
19
19
  import "../chunk-K6S7R6LU.mjs";
20
- import "../chunk-GOXDTVAY.mjs";
20
+ import "../chunk-KZERBMEK.mjs";
21
21
  import "../chunk-7ZCOFATU.mjs";
22
22
  import "../chunk-FWCSY2DS.mjs";
23
23
  export {
@@ -36,7 +36,7 @@ declare function createBaseUrl(baseUrl: string): {
36
36
  };
37
37
 
38
38
  declare const useLoadAxiosConfig: ({ axiosInstance, url, }: {
39
- axiosInstance: AxiosInstance;
39
+ axiosInstance?: AxiosInstance;
40
40
  url?: string;
41
41
  }) => {
42
42
  flag: boolean;
@@ -7,7 +7,7 @@ import {
7
7
  useMyReactQuery,
8
8
  useMyRouter,
9
9
  useQ_AQ_GetAQModule
10
- } from "../chunk-GOXDTVAY.mjs";
10
+ } from "../chunk-KZERBMEK.mjs";
11
11
  import "../chunk-7ZCOFATU.mjs";
12
12
  import "../chunk-FWCSY2DS.mjs";
13
13
  export {
@@ -11,6 +11,9 @@ import {
11
11
  import {
12
12
  U0DateToDDMMYYYString
13
13
  } from "../chunk-I2XIN2R3.mjs";
14
+ import {
15
+ const_object_documentTypes
16
+ } from "../chunk-BZMQOGL6.mjs";
14
17
  import {
15
18
  F_authenticate_Logout,
16
19
  MyActionIconDelete,
@@ -33,19 +36,16 @@ import {
33
36
  groupToTwoLevels,
34
37
  useS_authenticate,
35
38
  utils_layout_getItemsWithoutLinks
36
- } from "../chunk-WVBYHI4T.mjs";
39
+ } from "../chunk-XLB5ACVY.mjs";
40
+ import "../chunk-5U2JSHSJ.mjs";
37
41
  import {
38
42
  createGenericStore
39
43
  } from "../chunk-Y3YGC5IH.mjs";
40
- import "../chunk-5U2JSHSJ.mjs";
41
- import {
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-YPJWNLHU.mjs";
48
+ } from "../chunk-FHBYQMXY.mjs";
49
49
  import {
50
50
  MyDataTable,
51
51
  MyFlexColumn,
@@ -67,7 +67,7 @@ import {
67
67
  useMyRouter,
68
68
  useQ_AQ_GetAQModule,
69
69
  useQ_SkillCenter_GetAll
70
- } from "../chunk-GOXDTVAY.mjs";
70
+ } from "../chunk-KZERBMEK.mjs";
71
71
  import {
72
72
  utils_notification_show
73
73
  } from "../chunk-7ZCOFATU.mjs";
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.392",
45
+ "version": "0.1.393",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"