aq-fe-framework 0.1.119 → 0.1.121

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.
@@ -2,6 +2,9 @@ import {
2
2
  baseAxios_default,
3
3
  useQ_AQ_GetAQModule
4
4
  } from "./chunk-7EHNYA4A.mjs";
5
+ import {
6
+ createGenericStore
7
+ } from "./chunk-Y3YGC5IH.mjs";
5
8
  import {
6
9
  U0DateToDDMMYYYString,
7
10
  U0MyValidateEmail,
@@ -12,9 +15,6 @@ import {
12
15
  import {
13
16
  utils_notification_show
14
17
  } from "./chunk-7ZCOFATU.mjs";
15
- import {
16
- createGenericStore
17
- } from "./chunk-Y3YGC5IH.mjs";
18
18
  import {
19
19
  __objRest,
20
20
  __spreadProps,
@@ -54,7 +54,8 @@ function MyButtonViewPDF({
54
54
  modalSize = "80%",
55
55
  label = "Xem file",
56
56
  src = "https://datafiles.chinhphu.vn/cpp/files/vbpq/2016/07/85.signed.pdf",
57
- isActionIcon = false
57
+ isActionIcon = false,
58
+ filePath
58
59
  }) {
59
60
  var _a, _b;
60
61
  const disc = useDisclosure(false);
@@ -63,6 +64,7 @@ function MyButtonViewPDF({
63
64
  const query = useQuery({
64
65
  queryKey: ["MyButtonViewPDF", id],
65
66
  queryFn: async () => {
67
+ if (filePath) await baseAxios_default.get("/AQ/GetFile?filePath=" + filePath);
66
68
  return (await baseAxios_default.get("/Document/Get?id=" + id)).data.data;
67
69
  },
68
70
  enabled: id != void 0 && disc[0] == true
@@ -11287,7 +11289,7 @@ function F_Authenticate_Login({
11287
11289
  }, {
11288
11290
  onSuccess: (data) => {
11289
11291
  if (data.isSuccess === false) {
11290
- form.setFieldError("username", "T\xE0i kho\u1EA3n kh\xF4ng t\u1ED3n t\u1EA1i!");
11292
+ form.setFieldError("username", "T\xE0i kho\u1EA3n kh\xF4ng t\u1ED3n t\u1EA1i");
11291
11293
  loadingState[1](false);
11292
11294
  return;
11293
11295
  }
@@ -241,8 +241,9 @@ interface IMyButtonViewPDF {
241
241
  id?: number;
242
242
  src?: string;
243
243
  isActionIcon?: boolean;
244
+ filePath?: string;
244
245
  }
245
- declare function MyButtonViewPDF({ id, modalSize, label, src, isActionIcon, }: IMyButtonViewPDF): react_jsx_runtime.JSX.Element;
246
+ declare function MyButtonViewPDF({ id, modalSize, label, src, isActionIcon, filePath }: IMyButtonViewPDF): react_jsx_runtime.JSX.Element;
246
247
 
247
248
  declare function MyCalendar(): react_jsx_runtime.JSX.Element;
248
249
 
@@ -65,11 +65,11 @@ import {
65
65
  useS_BasicAppShell,
66
66
  useS_ButtonImport,
67
67
  utils_layout_getItemsWithoutLinks
68
- } from "../chunk-JINO4V4J.mjs";
68
+ } from "../chunk-GFY44TZQ.mjs";
69
69
  import "../chunk-7EHNYA4A.mjs";
70
+ import "../chunk-Y3YGC5IH.mjs";
70
71
  import "../chunk-CJDXLINF.mjs";
71
72
  import "../chunk-7ZCOFATU.mjs";
72
- import "../chunk-Y3YGC5IH.mjs";
73
73
  import "../chunk-FWCSY2DS.mjs";
74
74
  export {
75
75
  AQButtonCreateByImportFile,
@@ -65,11 +65,11 @@ import {
65
65
  useS_core60524,
66
66
  useS_core83092,
67
67
  utils_core83092_mergePage
68
- } from "../chunk-JINO4V4J.mjs";
68
+ } from "../chunk-GFY44TZQ.mjs";
69
69
  import "../chunk-7EHNYA4A.mjs";
70
+ import "../chunk-Y3YGC5IH.mjs";
70
71
  import "../chunk-CJDXLINF.mjs";
71
72
  import "../chunk-7ZCOFATU.mjs";
72
- import "../chunk-Y3YGC5IH.mjs";
73
73
  import "../chunk-FWCSY2DS.mjs";
74
74
  export {
75
75
  F_Authenticate_Login,
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/hooks/index.d.mts"
23
23
  }
24
24
  },
25
- "version": "0.1.119",
25
+ "version": "0.1.121",
26
26
  "private": false,
27
27
  "files": [
28
28
  "dist"