aq-fe-framework 0.1.675 → 0.1.677
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-Y6HANUXD.mjs → chunk-PCGMU4Z2.mjs} +27 -13
- package/dist/components/index.mjs +3 -3
- package/dist/core/index.d.mts +1 -1
- package/dist/core/index.mjs +3 -3
- package/dist/coreService/index.mjs +3 -3
- package/dist/modules-features/index.mjs +3 -3
- package/dist/types/index.d.mts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createGenericStore,
|
|
3
|
-
useStore_Permission
|
|
4
|
-
} from "./chunk-SUH3FFFV.mjs";
|
|
5
1
|
import {
|
|
6
2
|
U0MyValidateEmail,
|
|
7
3
|
updateEnableList,
|
|
@@ -15,15 +11,19 @@ import {
|
|
|
15
11
|
utils_pdf_download
|
|
16
12
|
} from "./chunk-GMM6RIVS.mjs";
|
|
17
13
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./chunk-
|
|
14
|
+
createGenericStore,
|
|
15
|
+
useStore_Permission
|
|
16
|
+
} from "./chunk-SUH3FFFV.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
|
|
@@ -114,7 +114,8 @@ var getActionConfig = (colorScheme) => ({
|
|
|
114
114
|
tempUpdate: {
|
|
115
115
|
color: "yellow",
|
|
116
116
|
children: /* @__PURE__ */ jsx(IconPencil, {})
|
|
117
|
-
}
|
|
117
|
+
},
|
|
118
|
+
viewFile: {}
|
|
118
119
|
});
|
|
119
120
|
function MyActionIcon(_a) {
|
|
120
121
|
var _b = _a, { children, actionType: actionType2 } = _b, rest = __objRest(_b, ["children", "actionType"]);
|
|
@@ -140,6 +141,7 @@ import {
|
|
|
140
141
|
IconDeviceFloppy as IconDeviceFloppy2,
|
|
141
142
|
IconDownload,
|
|
142
143
|
IconEdit as IconEdit2,
|
|
144
|
+
IconLivePhoto,
|
|
143
145
|
IconPencil as IconPencil2,
|
|
144
146
|
IconPlus as IconPlus2,
|
|
145
147
|
IconPrinter as IconPrinter2,
|
|
@@ -214,6 +216,10 @@ var getActionConfig2 = (colorScheme) => ({
|
|
|
214
216
|
tempUpdate: {
|
|
215
217
|
color: "yellow",
|
|
216
218
|
leftSection: /* @__PURE__ */ jsx2(IconPencil2, {})
|
|
219
|
+
},
|
|
220
|
+
viewFile: {
|
|
221
|
+
color: "cyan",
|
|
222
|
+
leftSection: /* @__PURE__ */ jsx2(IconLivePhoto, {})
|
|
217
223
|
}
|
|
218
224
|
});
|
|
219
225
|
function MyButton(_a) {
|
|
@@ -547,6 +553,7 @@ function MyButtonViewFile(_a) {
|
|
|
547
553
|
return ext === ".pdf" || ext === ".png" || ext === ".jpg" || ext === ".jpeg";
|
|
548
554
|
};
|
|
549
555
|
const downloadFile = () => {
|
|
556
|
+
if (!file) return;
|
|
550
557
|
const mimeType = getMimeType(file.fileExtension);
|
|
551
558
|
const link = document.createElement("a");
|
|
552
559
|
link.href = `data:${mimeType};base64,${file.fileBase64String}`;
|
|
@@ -558,10 +565,17 @@ function MyButtonViewFile(_a) {
|
|
|
558
565
|
return /* @__PURE__ */ jsx10(
|
|
559
566
|
MyButtonModal,
|
|
560
567
|
__spreadProps(__spreadValues({
|
|
568
|
+
buttonProps: {
|
|
569
|
+
disabled: !file,
|
|
570
|
+
actionType: "viewFile"
|
|
571
|
+
},
|
|
572
|
+
toolTipProps: {
|
|
573
|
+
label: file ? void 0 : "Kh\xF4ng c\xF3 file \u0111\u1EC3 hi\u1EC3n th\u1ECB"
|
|
574
|
+
},
|
|
561
575
|
disclosure: disc,
|
|
562
576
|
modalProps: { title: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", size: "xl" }
|
|
563
577
|
}, rest), {
|
|
564
|
-
children: isPreviewable(file.fileExtension) ? /* @__PURE__ */ jsx10(
|
|
578
|
+
children: file && isPreviewable(file.fileExtension) ? /* @__PURE__ */ jsx10(
|
|
565
579
|
"iframe",
|
|
566
580
|
{
|
|
567
581
|
src: `data:${getMimeType(file.fileExtension)};base64,${file.fileBase64String}`,
|
|
@@ -1164,7 +1178,7 @@ function MyActionIconUpload() {
|
|
|
1164
1178
|
// src/components/ActionIcons/ActionIconViewPdf/MyActionIconViewPDF.tsx
|
|
1165
1179
|
import { ActionIcon as ActionIcon8, Group as Group2, Modal as Modal5, Paper, Text as Text4, Tooltip as Tooltip4 } from "@mantine/core";
|
|
1166
1180
|
import { useDisclosure as useDisclosure6 } from "@mantine/hooks";
|
|
1167
|
-
import { IconLivePhoto, IconMaximize, IconMinimize } from "@tabler/icons-react";
|
|
1181
|
+
import { IconLivePhoto as IconLivePhoto2, IconMaximize, IconMinimize } from "@tabler/icons-react";
|
|
1168
1182
|
import { useState as useState3 } from "react";
|
|
1169
1183
|
import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1170
1184
|
function MyActionIconViewPDF(_a) {
|
|
@@ -1179,7 +1193,7 @@ function MyActionIconViewPDF(_a) {
|
|
|
1179
1193
|
const fullScreen = useState3(false);
|
|
1180
1194
|
const hSize = useState3("80vh");
|
|
1181
1195
|
return /* @__PURE__ */ jsxs11(Fragment7, { children: [
|
|
1182
|
-
/* @__PURE__ */ jsx23(Tooltip4, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: /* @__PURE__ */ jsx23(ActionIcon8, __spreadProps(__spreadValues({ color: "cyan", onClick: disc[1].open }, rest), { children: /* @__PURE__ */ jsx23(
|
|
1196
|
+
/* @__PURE__ */ jsx23(Tooltip4, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: /* @__PURE__ */ jsx23(ActionIcon8, __spreadProps(__spreadValues({ color: "cyan", onClick: disc[1].open }, rest), { children: /* @__PURE__ */ jsx23(IconLivePhoto2, {}) })) }),
|
|
1183
1197
|
/* @__PURE__ */ jsx23(
|
|
1184
1198
|
Modal5,
|
|
1185
1199
|
{
|
|
@@ -2557,7 +2571,7 @@ import {
|
|
|
2557
2571
|
Tooltip as Tooltip5
|
|
2558
2572
|
} from "@mantine/core";
|
|
2559
2573
|
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
|
2560
|
-
import { IconLivePhoto as
|
|
2574
|
+
import { IconLivePhoto as IconLivePhoto3, IconMaximize as IconMaximize3, IconMinimize as IconMinimize3 } from "@tabler/icons-react";
|
|
2561
2575
|
import { useQuery } from "@tanstack/react-query";
|
|
2562
2576
|
import { useEffect as useEffect6, useState as useState8 } from "react";
|
|
2563
2577
|
import { Fragment as Fragment14, jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
@@ -2604,7 +2618,7 @@ function MyButtonViewPDF({
|
|
|
2604
2618
|
};
|
|
2605
2619
|
}, [query.data]);
|
|
2606
2620
|
return /* @__PURE__ */ jsxs25(Fragment14, { children: [
|
|
2607
|
-
/* @__PURE__ */ jsx43(Tooltip5, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: isActionIcon ? /* @__PURE__ */ jsx43(ActionIcon12, { onClick: open, children: /* @__PURE__ */ jsx43(
|
|
2621
|
+
/* @__PURE__ */ jsx43(Tooltip5, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: isActionIcon ? /* @__PURE__ */ jsx43(ActionIcon12, { onClick: open, children: /* @__PURE__ */ jsx43(IconLivePhoto3, {}) }) : /* @__PURE__ */ jsx43(Button14, { color: "cyan", onClick: open, leftSection: /* @__PURE__ */ jsx43(IconLivePhoto3, {}), children: label }) }),
|
|
2608
2622
|
/* @__PURE__ */ jsx43(
|
|
2609
2623
|
Modal12,
|
|
2610
2624
|
{
|
|
@@ -70,12 +70,12 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
74
|
-
import "../chunk-SUH3FFFV.mjs";
|
|
73
|
+
} from "../chunk-PCGMU4Z2.mjs";
|
|
75
74
|
import "../chunk-GMM6RIVS.mjs";
|
|
76
|
-
import "../chunk-
|
|
75
|
+
import "../chunk-SUH3FFFV.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-
|
|
28
|
-
import "../chunk-SUH3FFFV.mjs";
|
|
27
|
+
} from "../chunk-PCGMU4Z2.mjs";
|
|
29
28
|
import "../chunk-GMM6RIVS.mjs";
|
|
30
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-SUH3FFFV.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-
|
|
4
|
-
import "../chunk-SUH3FFFV.mjs";
|
|
3
|
+
} from "../chunk-PCGMU4Z2.mjs";
|
|
5
4
|
import "../chunk-GMM6RIVS.mjs";
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-SUH3FFFV.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-
|
|
110
|
-
import "../chunk-SUH3FFFV.mjs";
|
|
109
|
+
} from "../chunk-PCGMU4Z2.mjs";
|
|
111
110
|
import "../chunk-GMM6RIVS.mjs";
|
|
112
|
-
import "../chunk-
|
|
111
|
+
import "../chunk-SUH3FFFV.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";
|
package/dist/types/index.d.mts
CHANGED
|
@@ -3,6 +3,6 @@ export { a as typeLabel_mutation, t as type_mutation } from '../type_mutation-CC
|
|
|
3
3
|
|
|
4
4
|
type type_mantineSize = number | MantineSize | (string & {}) | undefined;
|
|
5
5
|
type type_tempStatus = "default" | "created" | "updated" | "deleted";
|
|
6
|
-
type type_action = "default" | "create" | "update" | "delete" | "save" | "createMultiple" | "check" | "import" | "print" | "cancel" | "export" | "select" | "find" | "tempDelete" | "tempUpdate";
|
|
6
|
+
type type_action = "default" | "create" | "update" | "delete" | "save" | "createMultiple" | "check" | "import" | "print" | "cancel" | "export" | "select" | "find" | "tempDelete" | "tempUpdate" | "viewFile";
|
|
7
7
|
|
|
8
8
|
export type { type_action, type_mantineSize, type_tempStatus };
|