aq-fe-framework 0.1.675 → 0.1.676
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.
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
utils_mantineReactTable_sortColumnsByKeyOrder,
|
|
15
15
|
utils_pdf_download
|
|
16
16
|
} from "./chunk-GMM6RIVS.mjs";
|
|
17
|
-
import {
|
|
18
|
-
const_object_colors,
|
|
19
|
-
const_object_documentTypes
|
|
20
|
-
} from "./chunk-IUTUR43V.mjs";
|
|
21
17
|
import {
|
|
22
18
|
baseColumns
|
|
23
19
|
} from "./chunk-7PUDC2WF.mjs";
|
|
24
20
|
import {
|
|
25
21
|
U0DateToDDMMYYYString
|
|
26
22
|
} from "./chunk-EWDS5IOF.mjs";
|
|
23
|
+
import {
|
|
24
|
+
const_object_colors,
|
|
25
|
+
const_object_documentTypes
|
|
26
|
+
} from "./chunk-IUTUR43V.mjs";
|
|
27
27
|
import {
|
|
28
28
|
enum_daysOfWeek,
|
|
29
29
|
enum_emailConfigModule
|
|
@@ -547,6 +547,7 @@ function MyButtonViewFile(_a) {
|
|
|
547
547
|
return ext === ".pdf" || ext === ".png" || ext === ".jpg" || ext === ".jpeg";
|
|
548
548
|
};
|
|
549
549
|
const downloadFile = () => {
|
|
550
|
+
if (!file) return;
|
|
550
551
|
const mimeType = getMimeType(file.fileExtension);
|
|
551
552
|
const link = document.createElement("a");
|
|
552
553
|
link.href = `data:${mimeType};base64,${file.fileBase64String}`;
|
|
@@ -558,10 +559,16 @@ function MyButtonViewFile(_a) {
|
|
|
558
559
|
return /* @__PURE__ */ jsx10(
|
|
559
560
|
MyButtonModal,
|
|
560
561
|
__spreadProps(__spreadValues({
|
|
562
|
+
buttonProps: {
|
|
563
|
+
disabled: !file
|
|
564
|
+
},
|
|
565
|
+
toolTipProps: {
|
|
566
|
+
label: file ? void 0 : "Kh\xF4ng c\xF3 file \u0111\u1EC3 hi\u1EC3n th\u1ECB"
|
|
567
|
+
},
|
|
561
568
|
disclosure: disc,
|
|
562
569
|
modalProps: { title: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", size: "xl" }
|
|
563
570
|
}, rest), {
|
|
564
|
-
children: isPreviewable(file.fileExtension) ? /* @__PURE__ */ jsx10(
|
|
571
|
+
children: file && isPreviewable(file.fileExtension) ? /* @__PURE__ */ jsx10(
|
|
565
572
|
"iframe",
|
|
566
573
|
{
|
|
567
574
|
src: `data:${getMimeType(file.fileExtension)};base64,${file.fileBase64String}`,
|
|
@@ -70,12 +70,12 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-VO2EUP4E.mjs";
|
|
74
74
|
import "../chunk-SUH3FFFV.mjs";
|
|
75
75
|
import "../chunk-GMM6RIVS.mjs";
|
|
76
|
-
import "../chunk-IUTUR43V.mjs";
|
|
77
76
|
import "../chunk-7PUDC2WF.mjs";
|
|
78
77
|
import "../chunk-EWDS5IOF.mjs";
|
|
78
|
+
import "../chunk-IUTUR43V.mjs";
|
|
79
79
|
import "../chunk-MNJNQRZU.mjs";
|
|
80
80
|
import "../chunk-6OH47R5O.mjs";
|
|
81
81
|
import "../chunk-WZ6PXGGC.mjs";
|
package/dist/core/index.d.mts
CHANGED
|
@@ -92,7 +92,7 @@ interface MyButtonPrintPDFProps {
|
|
|
92
92
|
declare function MyButtonPrintPDF({ children, autoPadding, buttonProps, useReactToPrintProps, pageSize, }: MyButtonPrintPDFProps): react_jsx_runtime.JSX.Element;
|
|
93
93
|
|
|
94
94
|
interface MyButtonViewFile extends Omit<MyButtonModalProps, "disclosure"> {
|
|
95
|
-
file
|
|
95
|
+
file?: IAQFileDetail;
|
|
96
96
|
}
|
|
97
97
|
declare function MyButtonViewFile({ file, ...rest }: MyButtonViewFile): react_jsx_runtime.JSX.Element;
|
|
98
98
|
|
package/dist/core/index.mjs
CHANGED
|
@@ -24,12 +24,12 @@ import {
|
|
|
24
24
|
MyStatsCard,
|
|
25
25
|
MyTextInput2 as MyTextInput,
|
|
26
26
|
MyWeeklySessionSchedulerPicker
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-VO2EUP4E.mjs";
|
|
28
28
|
import "../chunk-SUH3FFFV.mjs";
|
|
29
29
|
import "../chunk-GMM6RIVS.mjs";
|
|
30
|
-
import "../chunk-IUTUR43V.mjs";
|
|
31
30
|
import "../chunk-7PUDC2WF.mjs";
|
|
32
31
|
import "../chunk-EWDS5IOF.mjs";
|
|
32
|
+
import "../chunk-IUTUR43V.mjs";
|
|
33
33
|
import "../chunk-MNJNQRZU.mjs";
|
|
34
34
|
import "../chunk-6OH47R5O.mjs";
|
|
35
35
|
import "../chunk-WZ6PXGGC.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MyModalDelete
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VO2EUP4E.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
5
|
import "../chunk-GMM6RIVS.mjs";
|
|
6
|
-
import "../chunk-IUTUR43V.mjs";
|
|
7
6
|
import "../chunk-7PUDC2WF.mjs";
|
|
8
7
|
import "../chunk-EWDS5IOF.mjs";
|
|
8
|
+
import "../chunk-IUTUR43V.mjs";
|
|
9
9
|
import "../chunk-MNJNQRZU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useMyReactMutation
|
|
@@ -106,12 +106,12 @@ import {
|
|
|
106
106
|
Feat_accessControlLevel,
|
|
107
107
|
useS_authenticate,
|
|
108
108
|
useS_moduleConfig
|
|
109
|
-
} from "../chunk-
|
|
109
|
+
} from "../chunk-VO2EUP4E.mjs";
|
|
110
110
|
import "../chunk-SUH3FFFV.mjs";
|
|
111
111
|
import "../chunk-GMM6RIVS.mjs";
|
|
112
|
-
import "../chunk-IUTUR43V.mjs";
|
|
113
112
|
import "../chunk-7PUDC2WF.mjs";
|
|
114
113
|
import "../chunk-EWDS5IOF.mjs";
|
|
114
|
+
import "../chunk-IUTUR43V.mjs";
|
|
115
115
|
import "../chunk-MNJNQRZU.mjs";
|
|
116
116
|
import "../chunk-6OH47R5O.mjs";
|
|
117
117
|
import "../chunk-WZ6PXGGC.mjs";
|