aq-fe-framework 0.1.844 → 0.1.846
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-6OLU6LFG.mjs → chunk-5T42ABQC.mjs} +6 -5
- package/dist/{chunk-IFV3VC5B.mjs → chunk-SQ5IPU7G.mjs} +2 -2
- package/dist/components/index.mjs +2 -2
- package/dist/core/index.mjs +2 -2
- package/dist/coreService/index.mjs +2 -2
- package/dist/modules-features/index.mjs +2 -2
- package/dist/shared/index.mjs +2 -2
- package/dist/utils/index.d.mts +4 -0
- package/dist/utils-v2/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-RJH5TVHS.mjs";
|
|
16
16
|
import {
|
|
17
17
|
utils_date
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SQ5IPU7G.mjs";
|
|
19
19
|
import {
|
|
20
20
|
utils_converter_enumToSelectOptions,
|
|
21
21
|
utils_converter_mapEnumToSelectData
|
|
@@ -556,6 +556,7 @@ function MyButtonPrintPDF({
|
|
|
556
556
|
// src/core/button/MyButtonViewFile.tsx
|
|
557
557
|
import { Button as Button4, Center, Loader, Text } from "@mantine/core";
|
|
558
558
|
import { useDisclosure as useDisclosure2 } from "@mantine/hooks";
|
|
559
|
+
import { IconDownload as IconDownload2 } from "@tabler/icons-react";
|
|
559
560
|
import { Fragment as Fragment4, jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
560
561
|
function MyButtonViewFile(_a) {
|
|
561
562
|
var _b = _a, {
|
|
@@ -615,7 +616,7 @@ function MyButtonViewFile(_a) {
|
|
|
615
616
|
actionIconProps: __spreadValues({
|
|
616
617
|
actionType: "viewFile"
|
|
617
618
|
}, rest.actionIconProps),
|
|
618
|
-
children: loading ? /* @__PURE__ */ jsx10(Center, { style: { width: "
|
|
619
|
+
children: loading ? /* @__PURE__ */ jsx10(Center, { style: { width: "30rem", height: "30vh" }, children: /* @__PURE__ */ jsx10(Loader, { size: "lg" }) }) : file && isPreviewable(file.fileExtension) ? /* @__PURE__ */ jsx10(
|
|
619
620
|
"iframe",
|
|
620
621
|
{
|
|
621
622
|
src: `data:${getMimeType(file.fileExtension)};base64,${file.fileBase64String}`,
|
|
@@ -624,7 +625,7 @@ function MyButtonViewFile(_a) {
|
|
|
624
625
|
}
|
|
625
626
|
) : /* @__PURE__ */ jsxs5(Fragment4, { children: [
|
|
626
627
|
/* @__PURE__ */ jsx10(Text, { children: "Kh\xF4ng th\u1EC3 xem tr\u01B0\u1EDBc lo\u1EA1i t\u1EC7p n\xE0y. B\u1EA1n c\xF3 th\u1EC3 t\u1EA3i v\u1EC1 \u0111\u1EC3 xem." }),
|
|
627
|
-
/* @__PURE__ */ jsx10(Button4, { mt: "md", onClick: downloadFile, children: "T\u1EA3i xu\u1ED1ng" })
|
|
628
|
+
/* @__PURE__ */ jsx10(Button4, { mt: "md", onClick: downloadFile, leftSection: /* @__PURE__ */ jsx10(IconDownload2, {}), children: "T\u1EA3i xu\u1ED1ng" })
|
|
628
629
|
] })
|
|
629
630
|
})
|
|
630
631
|
);
|
|
@@ -2125,10 +2126,10 @@ function MyActionIconUpdate(_a) {
|
|
|
2125
2126
|
|
|
2126
2127
|
// src/components/ActionIcons/ActionIconDownloadPDF/MyActionIconDownloadPDF.tsx
|
|
2127
2128
|
import { ActionIcon as ActionIcon5, Tooltip as Tooltip4 } from "@mantine/core";
|
|
2128
|
-
import { IconDownload as
|
|
2129
|
+
import { IconDownload as IconDownload3 } from "@tabler/icons-react";
|
|
2129
2130
|
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
2130
2131
|
function MyActionIconDownloadPDF({ pdfLink = "https://datafiles.chinhphu.vn/cpp/files/vbpq/2021/07/17-bgd.signed.pdf" }) {
|
|
2131
|
-
return /* @__PURE__ */ jsx44(Tooltip4, { label: "Nh\u1EA5p \u0111\u1EC3 t\u1EA3i xu\u1ED1ng", children: /* @__PURE__ */ jsx44(ActionIcon5, { onClick: async () => await utils_pdf_download(pdfLink), color: "red", children: /* @__PURE__ */ jsx44(
|
|
2132
|
+
return /* @__PURE__ */ jsx44(Tooltip4, { label: "Nh\u1EA5p \u0111\u1EC3 t\u1EA3i xu\u1ED1ng", children: /* @__PURE__ */ jsx44(ActionIcon5, { onClick: async () => await utils_pdf_download(pdfLink), color: "red", children: /* @__PURE__ */ jsx44(IconDownload3, {}) }) });
|
|
2132
2133
|
}
|
|
2133
2134
|
|
|
2134
2135
|
// src/components/ActionIcons/ActionIconUpload/MyActionIconUpload.tsx
|
|
@@ -11,10 +11,10 @@ var utils_converter = {
|
|
|
11
11
|
var utils_currency = {
|
|
12
12
|
formatWithSuffix(amount, suffix = "") {
|
|
13
13
|
if (amount == null || isNaN(amount)) {
|
|
14
|
-
return
|
|
14
|
+
return "";
|
|
15
15
|
}
|
|
16
16
|
const formatter = new Intl.NumberFormat("vi-VN");
|
|
17
|
-
const formattedAmount = formatter.format(amount);
|
|
17
|
+
const formattedAmount = formatter.format(amount).replace(/\./g, ",");
|
|
18
18
|
return `${formattedAmount}${suffix}`;
|
|
19
19
|
}
|
|
20
20
|
};
|
|
@@ -70,10 +70,10 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-5T42ABQC.mjs";
|
|
74
74
|
import "../chunk-SUH3FFFV.mjs";
|
|
75
75
|
import "../chunk-RJH5TVHS.mjs";
|
|
76
|
-
import "../chunk-
|
|
76
|
+
import "../chunk-SQ5IPU7G.mjs";
|
|
77
77
|
import "../chunk-7NNLZDND.mjs";
|
|
78
78
|
import "../chunk-O7YCQQO5.mjs";
|
|
79
79
|
import "../chunk-QSWIVDXC.mjs";
|
package/dist/core/index.mjs
CHANGED
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
MyStatsCard,
|
|
31
31
|
MyTextInput2 as MyTextInput,
|
|
32
32
|
MyWeeklySessionSchedulerPicker
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-5T42ABQC.mjs";
|
|
34
34
|
import "../chunk-SUH3FFFV.mjs";
|
|
35
35
|
import "../chunk-RJH5TVHS.mjs";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-SQ5IPU7G.mjs";
|
|
37
37
|
import "../chunk-7NNLZDND.mjs";
|
|
38
38
|
import "../chunk-O7YCQQO5.mjs";
|
|
39
39
|
import "../chunk-QSWIVDXC.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MyModalDelete
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-5T42ABQC.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
5
|
import "../chunk-RJH5TVHS.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-SQ5IPU7G.mjs";
|
|
7
7
|
import "../chunk-7NNLZDND.mjs";
|
|
8
8
|
import "../chunk-O7YCQQO5.mjs";
|
|
9
9
|
import "../chunk-QSWIVDXC.mjs";
|
|
@@ -113,10 +113,10 @@ import {
|
|
|
113
113
|
MailTemplateDeleteButton,
|
|
114
114
|
useS_moduleConfig,
|
|
115
115
|
useStore_Authenticate
|
|
116
|
-
} from "../chunk-
|
|
116
|
+
} from "../chunk-5T42ABQC.mjs";
|
|
117
117
|
import "../chunk-SUH3FFFV.mjs";
|
|
118
118
|
import "../chunk-RJH5TVHS.mjs";
|
|
119
|
-
import "../chunk-
|
|
119
|
+
import "../chunk-SQ5IPU7G.mjs";
|
|
120
120
|
import "../chunk-7NNLZDND.mjs";
|
|
121
121
|
import "../chunk-O7YCQQO5.mjs";
|
|
122
122
|
import "../chunk-QSWIVDXC.mjs";
|
package/dist/shared/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MySelect
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-5T42ABQC.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
5
|
import "../chunk-RJH5TVHS.mjs";
|
|
6
6
|
import {
|
|
7
7
|
utils_converter
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-SQ5IPU7G.mjs";
|
|
9
9
|
import "../chunk-7NNLZDND.mjs";
|
|
10
10
|
import "../chunk-O7YCQQO5.mjs";
|
|
11
11
|
import "../chunk-QSWIVDXC.mjs";
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -11,6 +11,10 @@ import 'exceljs';
|
|
|
11
11
|
declare function utils_aq_mapBaseEntityToDomain<T extends IBaseEntity>(entity: T): IBaseDomain;
|
|
12
12
|
declare function utils_aq_mapDomainToEntity(domain: IBaseDomain): IBaseEntity;
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Hàm này không xài nữa nha mấy ní
|
|
16
|
+
* Vui lòng dùng `utils_currency.formatWithSuffix` từ `utils-v2` thay thế.
|
|
17
|
+
*/
|
|
14
18
|
declare function utils_currency_formatWithSuffix(amount: number, suffix?: string): string;
|
|
15
19
|
|
|
16
20
|
/**
|
package/dist/utils-v2/index.mjs
CHANGED