aq-fe-framework 0.1.676 → 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.
|
@@ -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,
|
|
@@ -14,6 +10,10 @@ import {
|
|
|
14
10
|
utils_mantineReactTable_sortColumnsByKeyOrder,
|
|
15
11
|
utils_pdf_download
|
|
16
12
|
} from "./chunk-GMM6RIVS.mjs";
|
|
13
|
+
import {
|
|
14
|
+
createGenericStore,
|
|
15
|
+
useStore_Permission
|
|
16
|
+
} from "./chunk-SUH3FFFV.mjs";
|
|
17
17
|
import {
|
|
18
18
|
baseColumns
|
|
19
19
|
} from "./chunk-7PUDC2WF.mjs";
|
|
@@ -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) {
|
|
@@ -560,7 +566,8 @@ function MyButtonViewFile(_a) {
|
|
|
560
566
|
MyButtonModal,
|
|
561
567
|
__spreadProps(__spreadValues({
|
|
562
568
|
buttonProps: {
|
|
563
|
-
disabled: !file
|
|
569
|
+
disabled: !file,
|
|
570
|
+
actionType: "viewFile"
|
|
564
571
|
},
|
|
565
572
|
toolTipProps: {
|
|
566
573
|
label: file ? void 0 : "Kh\xF4ng c\xF3 file \u0111\u1EC3 hi\u1EC3n th\u1ECB"
|
|
@@ -1171,7 +1178,7 @@ function MyActionIconUpload() {
|
|
|
1171
1178
|
// src/components/ActionIcons/ActionIconViewPdf/MyActionIconViewPDF.tsx
|
|
1172
1179
|
import { ActionIcon as ActionIcon8, Group as Group2, Modal as Modal5, Paper, Text as Text4, Tooltip as Tooltip4 } from "@mantine/core";
|
|
1173
1180
|
import { useDisclosure as useDisclosure6 } from "@mantine/hooks";
|
|
1174
|
-
import { IconLivePhoto, IconMaximize, IconMinimize } from "@tabler/icons-react";
|
|
1181
|
+
import { IconLivePhoto as IconLivePhoto2, IconMaximize, IconMinimize } from "@tabler/icons-react";
|
|
1175
1182
|
import { useState as useState3 } from "react";
|
|
1176
1183
|
import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1177
1184
|
function MyActionIconViewPDF(_a) {
|
|
@@ -1186,7 +1193,7 @@ function MyActionIconViewPDF(_a) {
|
|
|
1186
1193
|
const fullScreen = useState3(false);
|
|
1187
1194
|
const hSize = useState3("80vh");
|
|
1188
1195
|
return /* @__PURE__ */ jsxs11(Fragment7, { children: [
|
|
1189
|
-
/* @__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, {}) })) }),
|
|
1190
1197
|
/* @__PURE__ */ jsx23(
|
|
1191
1198
|
Modal5,
|
|
1192
1199
|
{
|
|
@@ -2564,7 +2571,7 @@ import {
|
|
|
2564
2571
|
Tooltip as Tooltip5
|
|
2565
2572
|
} from "@mantine/core";
|
|
2566
2573
|
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
|
2567
|
-
import { IconLivePhoto as
|
|
2574
|
+
import { IconLivePhoto as IconLivePhoto3, IconMaximize as IconMaximize3, IconMinimize as IconMinimize3 } from "@tabler/icons-react";
|
|
2568
2575
|
import { useQuery } from "@tanstack/react-query";
|
|
2569
2576
|
import { useEffect as useEffect6, useState as useState8 } from "react";
|
|
2570
2577
|
import { Fragment as Fragment14, jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
@@ -2611,7 +2618,7 @@ function MyButtonViewPDF({
|
|
|
2611
2618
|
};
|
|
2612
2619
|
}, [query.data]);
|
|
2613
2620
|
return /* @__PURE__ */ jsxs25(Fragment14, { children: [
|
|
2614
|
-
/* @__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 }) }),
|
|
2615
2622
|
/* @__PURE__ */ jsx43(
|
|
2616
2623
|
Modal12,
|
|
2617
2624
|
{
|
|
@@ -70,9 +70,9 @@ 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";
|
|
75
|
+
import "../chunk-SUH3FFFV.mjs";
|
|
76
76
|
import "../chunk-7PUDC2WF.mjs";
|
|
77
77
|
import "../chunk-EWDS5IOF.mjs";
|
|
78
78
|
import "../chunk-IUTUR43V.mjs";
|
package/dist/core/index.mjs
CHANGED
|
@@ -24,9 +24,9 @@ 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";
|
|
29
|
+
import "../chunk-SUH3FFFV.mjs";
|
|
30
30
|
import "../chunk-7PUDC2WF.mjs";
|
|
31
31
|
import "../chunk-EWDS5IOF.mjs";
|
|
32
32
|
import "../chunk-IUTUR43V.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
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";
|
|
5
|
+
import "../chunk-SUH3FFFV.mjs";
|
|
6
6
|
import "../chunk-7PUDC2WF.mjs";
|
|
7
7
|
import "../chunk-EWDS5IOF.mjs";
|
|
8
8
|
import "../chunk-IUTUR43V.mjs";
|
|
@@ -106,9 +106,9 @@ 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";
|
|
111
|
+
import "../chunk-SUH3FFFV.mjs";
|
|
112
112
|
import "../chunk-7PUDC2WF.mjs";
|
|
113
113
|
import "../chunk-EWDS5IOF.mjs";
|
|
114
114
|
import "../chunk-IUTUR43V.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 };
|