aq-fe-framework 0.1.975 → 0.1.976
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/{MyDataTable-Doa_T88Z.d.mts → MyDataTable-CThYCmt0.d.mts} +1 -0
- package/dist/{chunk-DJG24DWZ.mjs → chunk-2ZDGJ3SE.mjs} +38 -31
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +3 -3
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.mjs +3 -3
- package/dist/modules-features/index.mjs +3 -3
- package/dist/shared/index.mjs +3 -3
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ declare function MyActionIcon({ children, actionType, isCheckPermission, ...rest
|
|
|
14
14
|
interface MyButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "style">, ButtonProps {
|
|
15
15
|
actionType?: type_action;
|
|
16
16
|
children?: ReactNode;
|
|
17
|
+
/** Không cần bật kiểm tra quyền mặc định = true */
|
|
17
18
|
isCheckPermission?: boolean;
|
|
18
19
|
}
|
|
19
20
|
declare function MyButton({ children, actionType, isCheckPermission, ...rest }: MyButtonProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useStore_Permission,
|
|
3
|
+
useStore_ProjectInfo
|
|
4
|
+
} from "./chunk-BJAYNNOF.mjs";
|
|
5
|
+
import {
|
|
6
|
+
utils_date,
|
|
7
|
+
utils_excel,
|
|
8
|
+
utils_file,
|
|
9
|
+
utils_mantineReactTable
|
|
10
|
+
} from "./chunk-PBI7RFUT.mjs";
|
|
1
11
|
import {
|
|
2
12
|
utils_aq_mapBaseEntityToDomain,
|
|
3
13
|
utils_aq_mapDomainToEntity,
|
|
@@ -12,26 +22,16 @@ import {
|
|
|
12
22
|
utils_notification_show,
|
|
13
23
|
utils_pdf_download
|
|
14
24
|
} from "./chunk-KGBXMHKR.mjs";
|
|
15
|
-
import {
|
|
16
|
-
useStore_Permission,
|
|
17
|
-
useStore_ProjectInfo
|
|
18
|
-
} from "./chunk-BJAYNNOF.mjs";
|
|
19
|
-
import {
|
|
20
|
-
utils_date,
|
|
21
|
-
utils_excel,
|
|
22
|
-
utils_file,
|
|
23
|
-
utils_mantineReactTable
|
|
24
|
-
} from "./chunk-PBI7RFUT.mjs";
|
|
25
25
|
import {
|
|
26
26
|
createGenericStore2 as createGenericStore
|
|
27
27
|
} from "./chunk-YGWSHSTG.mjs";
|
|
28
|
-
import {
|
|
29
|
-
enum_daysOfWeek
|
|
30
|
-
} from "./chunk-K6S7R6LU.mjs";
|
|
31
28
|
import {
|
|
32
29
|
const_object_colors,
|
|
33
30
|
const_object_documentTypes
|
|
34
31
|
} from "./chunk-SPG47QW7.mjs";
|
|
32
|
+
import {
|
|
33
|
+
enum_daysOfWeek
|
|
34
|
+
} from "./chunk-K6S7R6LU.mjs";
|
|
35
35
|
import {
|
|
36
36
|
createBaseApi,
|
|
37
37
|
useConfig,
|
|
@@ -106,6 +106,7 @@ import {
|
|
|
106
106
|
IconPencil,
|
|
107
107
|
IconPlus,
|
|
108
108
|
IconPrinter,
|
|
109
|
+
IconSelect,
|
|
109
110
|
IconTrash,
|
|
110
111
|
IconX
|
|
111
112
|
} from "@tabler/icons-react";
|
|
@@ -152,10 +153,12 @@ var getActionConfig = (colorScheme) => ({
|
|
|
152
153
|
color: "gray",
|
|
153
154
|
children: /* @__PURE__ */ jsx3(IconX, {})
|
|
154
155
|
},
|
|
155
|
-
select: {
|
|
156
|
+
select: {
|
|
157
|
+
children: /* @__PURE__ */ jsx3(IconSelect, {}),
|
|
158
|
+
color: "violet"
|
|
159
|
+
},
|
|
156
160
|
check: {
|
|
157
|
-
|
|
158
|
-
children: /* @__PURE__ */ jsx3(IconChecklist, {})
|
|
161
|
+
children: /* @__PURE__ */ jsx3(IconSelect, {})
|
|
159
162
|
},
|
|
160
163
|
find: {},
|
|
161
164
|
tempDelete: {
|
|
@@ -178,7 +181,10 @@ var getActionConfig = (colorScheme) => ({
|
|
|
178
181
|
color: "grape",
|
|
179
182
|
children: /* @__PURE__ */ jsx3(IconMail, {})
|
|
180
183
|
},
|
|
181
|
-
validate: {
|
|
184
|
+
validate: {
|
|
185
|
+
color: "orange",
|
|
186
|
+
children: /* @__PURE__ */ jsx3(IconChecklist, {})
|
|
187
|
+
}
|
|
182
188
|
});
|
|
183
189
|
function MyActionIcon(_a) {
|
|
184
190
|
var _b = _a, { children, actionType: actionType2, isCheckPermission = true } = _b, rest = __objRest(_b, ["children", "actionType", "isCheckPermission"]);
|
|
@@ -210,12 +216,13 @@ import {
|
|
|
210
216
|
IconDeviceFloppy as IconDeviceFloppy2,
|
|
211
217
|
IconDownload,
|
|
212
218
|
IconEdit as IconEdit2,
|
|
219
|
+
IconEye as IconEye2,
|
|
213
220
|
IconLivePhoto,
|
|
214
221
|
IconMail as IconMail2,
|
|
215
|
-
IconPencil as IconPencil2,
|
|
216
222
|
IconPlus as IconPlus2,
|
|
217
223
|
IconPrinter as IconPrinter2,
|
|
218
224
|
IconSearch,
|
|
225
|
+
IconSelect as IconSelect2,
|
|
219
226
|
IconTrash as IconTrash2,
|
|
220
227
|
IconUpload,
|
|
221
228
|
IconX as IconX2
|
|
@@ -272,21 +279,18 @@ var getActionConfig2 = (colorScheme) => ({
|
|
|
272
279
|
children: "H\u1EE7y thao t\xE1c"
|
|
273
280
|
},
|
|
274
281
|
select: {
|
|
275
|
-
children: "Ch\u1ECDn"
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
children: "Ch\u1ECDn"
|
|
282
|
+
children: "Ch\u1ECDn",
|
|
283
|
+
leftSection: /* @__PURE__ */ jsx4(IconSelect2, {}),
|
|
284
|
+
color: "violet"
|
|
279
285
|
},
|
|
286
|
+
check: {},
|
|
280
287
|
find: {
|
|
281
288
|
color: "green",
|
|
282
289
|
leftSection: /* @__PURE__ */ jsx4(IconSearch, {}),
|
|
283
290
|
children: "T\xECm"
|
|
284
291
|
},
|
|
285
292
|
tempDelete: {},
|
|
286
|
-
tempUpdate: {
|
|
287
|
-
color: "yellow",
|
|
288
|
-
leftSection: /* @__PURE__ */ jsx4(IconPencil2, {})
|
|
289
|
-
},
|
|
293
|
+
tempUpdate: {},
|
|
290
294
|
viewFile: {
|
|
291
295
|
color: "cyan",
|
|
292
296
|
leftSection: /* @__PURE__ */ jsx4(IconLivePhoto, {}),
|
|
@@ -297,9 +301,12 @@ var getActionConfig2 = (colorScheme) => ({
|
|
|
297
301
|
leftSection: /* @__PURE__ */ jsx4(IconMail2, {}),
|
|
298
302
|
children: "G\u1EEDi mail"
|
|
299
303
|
},
|
|
300
|
-
view: {
|
|
304
|
+
view: {
|
|
305
|
+
children: "Xem chi ti\u1EBFt",
|
|
306
|
+
leftSection: /* @__PURE__ */ jsx4(IconEye2, {})
|
|
307
|
+
},
|
|
301
308
|
validate: {
|
|
302
|
-
color: "
|
|
309
|
+
color: "orange",
|
|
303
310
|
variant: "outline",
|
|
304
311
|
children: "Ki\u1EC3m tra",
|
|
305
312
|
leftSection: /* @__PURE__ */ jsx4(IconChecklist2, {})
|
|
@@ -9566,13 +9573,13 @@ import { useEffect as useEffect15, useState as useState14 } from "react";
|
|
|
9566
9573
|
|
|
9567
9574
|
// src/module/Permission/usecase/UseCase_PermissionViewCheckTable.tsx
|
|
9568
9575
|
import { Center as Center6, Checkbox as Checkbox4, Flex as Flex6, Paper as Paper8, ScrollArea as ScrollArea3, Skeleton, Stack as Stack4, Table as Table4, Text as Text16 } from "@mantine/core";
|
|
9569
|
-
import { IconEye as
|
|
9576
|
+
import { IconEye as IconEye3, IconFileExport as IconFileExport3, IconPencil as IconPencil2, IconPlus as IconPlus8, IconPrinter as IconPrinter6, IconTrash as IconTrash7 } from "@tabler/icons-react";
|
|
9570
9577
|
import React2 from "react";
|
|
9571
9578
|
import { jsx as jsx73, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
9572
9579
|
var actionType = [
|
|
9573
|
-
{ text: "Xem", icon: /* @__PURE__ */ jsx73(
|
|
9580
|
+
{ text: "Xem", icon: /* @__PURE__ */ jsx73(IconEye3, {}), iconColor: "gray" },
|
|
9574
9581
|
{ text: "Th\xEAm", icon: /* @__PURE__ */ jsx73(IconPlus8, {}), iconColor: "blue" },
|
|
9575
|
-
{ text: "S\u1EEDa", icon: /* @__PURE__ */ jsx73(
|
|
9582
|
+
{ text: "S\u1EEDa", icon: /* @__PURE__ */ jsx73(IconPencil2, {}), iconColor: "yellow" },
|
|
9576
9583
|
{ text: "X\xF3a", icon: /* @__PURE__ */ jsx73(IconTrash7, {}), iconColor: "red" },
|
|
9577
9584
|
{ text: "In", icon: /* @__PURE__ */ jsx73(IconPrinter6, {}), iconColor: "cyan" },
|
|
9578
9585
|
{ text: "Xu\u1EA5t", icon: /* @__PURE__ */ jsx73(IconFileExport3, {}), iconColor: "green" }
|
|
@@ -8,8 +8,8 @@ import { type_mantineSize } from '../types/index.mjs';
|
|
|
8
8
|
import { useDisclosure, useListState } from '@mantine/hooks';
|
|
9
9
|
import { UseFormReturnType, useForm } from '@mantine/form';
|
|
10
10
|
import { I as I_BasicAppShell_LinkItem, B as BasicAppShellProps } from '../types-km2g-xx5.mjs';
|
|
11
|
-
import { d as MyButtonModal$1 } from '../MyDataTable-
|
|
12
|
-
export { h as MyDataTable, g as MyDataTableInternalProps, c as MyDataTableProps, P as PaginationState } from '../MyDataTable-
|
|
11
|
+
import { d as MyButtonModal$1 } from '../MyDataTable-CThYCmt0.mjs';
|
|
12
|
+
export { h as MyDataTable, g as MyDataTableInternalProps, c as MyDataTableProps, P as PaginationState } from '../MyDataTable-CThYCmt0.mjs';
|
|
13
13
|
import { I as IUtils_Excel_ColumnConfig } from '../utils_excel-BfUQ3dS3.mjs';
|
|
14
14
|
import { MRT_ColumnDef, MRT_RowData, MRT_TableOptions, MRT_TableInstance } from 'mantine-react-table';
|
|
15
15
|
import { DateInputProps } from '@mantine/dates';
|
|
@@ -68,13 +68,13 @@ import {
|
|
|
68
68
|
useHeaderMegaMenuStore,
|
|
69
69
|
useS_ButtonImport,
|
|
70
70
|
useStore_BasicAppShell
|
|
71
|
-
} from "../chunk-
|
|
72
|
-
import "../chunk-KGBXMHKR.mjs";
|
|
71
|
+
} from "../chunk-2ZDGJ3SE.mjs";
|
|
73
72
|
import "../chunk-BJAYNNOF.mjs";
|
|
74
73
|
import "../chunk-PBI7RFUT.mjs";
|
|
74
|
+
import "../chunk-KGBXMHKR.mjs";
|
|
75
75
|
import "../chunk-YGWSHSTG.mjs";
|
|
76
|
-
import "../chunk-K6S7R6LU.mjs";
|
|
77
76
|
import "../chunk-SPG47QW7.mjs";
|
|
77
|
+
import "../chunk-K6S7R6LU.mjs";
|
|
78
78
|
import "../chunk-G2IMUVMM.mjs";
|
|
79
79
|
import "../chunk-WZ6PXGGC.mjs";
|
|
80
80
|
import "../chunk-YWANA62C.mjs";
|
package/dist/core/index.d.mts
CHANGED
|
@@ -5,8 +5,8 @@ import { UseFormReturnType } from '@mantine/form';
|
|
|
5
5
|
import { AxiosResponse } from 'axios';
|
|
6
6
|
import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMutation-D8XdiELk.mjs';
|
|
7
7
|
import { ModalProps, ScrollAreaAutosizeProps, TooltipProps, ButtonProps, BadgeProps, TextProps, PaperProps, GroupProps, ThemeIconProps, AutocompleteProps, NumberInputProps, TextInputProps, FileInputProps, InputWrapperProps, FlexProps } from '@mantine/core';
|
|
8
|
-
import { M as MyActionIconProps, a as MyButtonProps, b as MyButtonModalProps, c as MyDataTableProps } from '../MyDataTable-
|
|
9
|
-
export { e as MyActionIcon, f as MyButton, d as MyButtonModal } from '../MyDataTable-
|
|
8
|
+
import { M as MyActionIconProps, a as MyButtonProps, b as MyButtonModalProps, c as MyDataTableProps } from '../MyDataTable-CThYCmt0.mjs';
|
|
9
|
+
export { e as MyActionIcon, f as MyButton, d as MyButtonModal } from '../MyDataTable-CThYCmt0.mjs';
|
|
10
10
|
import { UseReactToPrintOptions } from 'react-to-print';
|
|
11
11
|
import { I as IAQFileDetail } from '../utils_file-JlhzjLGS.mjs';
|
|
12
12
|
import { TablerIcon } from '@tabler/icons-react';
|
package/dist/core/index.mjs
CHANGED
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
MyStatsCard,
|
|
32
32
|
MyTextInput2 as MyTextInput,
|
|
33
33
|
MyWeeklySessionSchedulerPicker
|
|
34
|
-
} from "../chunk-
|
|
35
|
-
import "../chunk-KGBXMHKR.mjs";
|
|
34
|
+
} from "../chunk-2ZDGJ3SE.mjs";
|
|
36
35
|
import "../chunk-BJAYNNOF.mjs";
|
|
37
36
|
import "../chunk-PBI7RFUT.mjs";
|
|
37
|
+
import "../chunk-KGBXMHKR.mjs";
|
|
38
38
|
import "../chunk-YGWSHSTG.mjs";
|
|
39
|
-
import "../chunk-K6S7R6LU.mjs";
|
|
40
39
|
import "../chunk-SPG47QW7.mjs";
|
|
40
|
+
import "../chunk-K6S7R6LU.mjs";
|
|
41
41
|
import "../chunk-G2IMUVMM.mjs";
|
|
42
42
|
import "../chunk-WZ6PXGGC.mjs";
|
|
43
43
|
import "../chunk-YWANA62C.mjs";
|
|
@@ -102,13 +102,13 @@ import {
|
|
|
102
102
|
MailTemplateDeleteButton,
|
|
103
103
|
useS_moduleConfig,
|
|
104
104
|
useStore_Authenticate
|
|
105
|
-
} from "../chunk-
|
|
106
|
-
import "../chunk-KGBXMHKR.mjs";
|
|
105
|
+
} from "../chunk-2ZDGJ3SE.mjs";
|
|
107
106
|
import "../chunk-BJAYNNOF.mjs";
|
|
108
107
|
import "../chunk-PBI7RFUT.mjs";
|
|
108
|
+
import "../chunk-KGBXMHKR.mjs";
|
|
109
109
|
import "../chunk-YGWSHSTG.mjs";
|
|
110
|
-
import "../chunk-K6S7R6LU.mjs";
|
|
111
110
|
import "../chunk-SPG47QW7.mjs";
|
|
111
|
+
import "../chunk-K6S7R6LU.mjs";
|
|
112
112
|
import "../chunk-G2IMUVMM.mjs";
|
|
113
113
|
import "../chunk-WZ6PXGGC.mjs";
|
|
114
114
|
import "../chunk-YWANA62C.mjs";
|
package/dist/shared/index.mjs
CHANGED
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
} from "../chunk-RGUQWALX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
MySelect
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-KGBXMHKR.mjs";
|
|
7
|
+
} from "../chunk-2ZDGJ3SE.mjs";
|
|
9
8
|
import "../chunk-BJAYNNOF.mjs";
|
|
10
9
|
import {
|
|
11
10
|
utils_converter
|
|
12
11
|
} from "../chunk-PBI7RFUT.mjs";
|
|
12
|
+
import "../chunk-KGBXMHKR.mjs";
|
|
13
13
|
import "../chunk-YGWSHSTG.mjs";
|
|
14
|
-
import "../chunk-K6S7R6LU.mjs";
|
|
15
14
|
import "../chunk-SPG47QW7.mjs";
|
|
15
|
+
import "../chunk-K6S7R6LU.mjs";
|
|
16
16
|
import "../chunk-G2IMUVMM.mjs";
|
|
17
17
|
import "../chunk-WZ6PXGGC.mjs";
|
|
18
18
|
import "../chunk-YWANA62C.mjs";
|