aq-fe-framework 0.1.125 → 0.1.127

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.
@@ -28,4 +28,4 @@ interface IAQModule extends IBaseEntity {
28
28
  };
29
29
  }
30
30
 
31
- export type { IBaseEntity as I, IAQModule as a };
31
+ export type { IAQModule as I, IBaseEntity as a };
@@ -64,11 +64,14 @@ function MyButtonViewPDF({
64
64
  const query = useQuery({
65
65
  queryKey: ["MyButtonViewPDF", id, filePath],
66
66
  queryFn: async () => {
67
- console.log("huhu");
68
- if (filePath) (await baseAxios_default.get("/AQ/GetFile?filePath=" + filePath)).data.data;
69
- return (await baseAxios_default.get("/Document/Get?id=" + id)).data.data;
67
+ if (filePath) {
68
+ const res2 = await baseAxios_default.get("/AQ/GetFile?filePath=" + filePath);
69
+ return res2.data.data;
70
+ }
71
+ const res = await baseAxios_default.get("/Document/Get?id=" + id);
72
+ return res.data.data;
70
73
  },
71
- enabled: id != void 0 && disc[0] == true
74
+ enabled: disc[0] == true
72
75
  });
73
76
  return /* @__PURE__ */ jsxs(Fragment, { children: [
74
77
  /* @__PURE__ */ jsx2(Tooltip, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: isActionIcon ? /* @__PURE__ */ jsx2(
@@ -65,7 +65,7 @@ import {
65
65
  useS_BasicAppShell,
66
66
  useS_ButtonImport,
67
67
  utils_layout_getItemsWithoutLinks
68
- } from "../chunk-UQQCLJRF.mjs";
68
+ } from "../chunk-HNZ6OV46.mjs";
69
69
  import "../chunk-7EHNYA4A.mjs";
70
70
  import "../chunk-Y3YGC5IH.mjs";
71
71
  import "../chunk-CJDXLINF.mjs";
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { a as IAQModule } from '../IAQModule-Cn6xUy-6.mjs';
2
+ import { I as IAQModule } from '../IAQModule-XZYlbivW.mjs';
3
3
 
4
4
  declare function useQ_AQ_GetAQModule(): _tanstack_react_query.UseQueryResult<IAQModule, Error>;
5
5
 
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { SelectProps } from '@mantine/core';
3
3
  import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-CGIz9MsN.mjs';
4
- import { I as IBaseEntity, a as IAQModule } from '../IAQModule-Cn6xUy-6.mjs';
4
+ import { a as IBaseEntity, I as IAQModule } from '../IAQModule-XZYlbivW.mjs';
5
5
  import { ReactNode } from 'react';
6
6
 
7
7
  declare function F_core12196({ FormTypeId }: {
@@ -65,7 +65,7 @@ import {
65
65
  useS_core60524,
66
66
  useS_core83092,
67
67
  utils_core83092_mergePage
68
- } from "../chunk-UQQCLJRF.mjs";
68
+ } from "../chunk-HNZ6OV46.mjs";
69
69
  import "../chunk-7EHNYA4A.mjs";
70
70
  import "../chunk-Y3YGC5IH.mjs";
71
71
  import "../chunk-CJDXLINF.mjs";
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/hooks/index.d.mts"
23
23
  }
24
24
  },
25
- "version": "0.1.125",
25
+ "version": "0.1.127",
26
26
  "private": false,
27
27
  "files": [
28
28
  "dist"