aq-fe-framework 0.1.243 → 0.1.245
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.
@@ -2,15 +2,15 @@ import {
|
|
2
2
|
baseAxios_default,
|
3
3
|
useQ_AQ_GetAQModule
|
4
4
|
} from "./chunk-HMRYQTJT.mjs";
|
5
|
+
import {
|
6
|
+
createGenericStore
|
7
|
+
} from "./chunk-Y3YGC5IH.mjs";
|
5
8
|
import {
|
6
9
|
utils_pdf_download
|
7
10
|
} from "./chunk-5U2JSHSJ.mjs";
|
8
11
|
import {
|
9
12
|
utils_notification_show
|
10
13
|
} from "./chunk-7ZCOFATU.mjs";
|
11
|
-
import {
|
12
|
-
createGenericStore
|
13
|
-
} from "./chunk-Y3YGC5IH.mjs";
|
14
14
|
import {
|
15
15
|
__objRest,
|
16
16
|
__spreadProps,
|
@@ -1413,8 +1413,8 @@ function SelectFieldModal({ stack, onImport }) {
|
|
1413
1413
|
}
|
1414
1414
|
|
1415
1415
|
// src/components/DataDisplay/DataTable/MyDataTable.tsx
|
1416
|
-
import { Button as Button6, Group as Group8, Portal } from "@mantine/core";
|
1417
|
-
import { IconDownload as IconDownload3 } from "@tabler/icons-react";
|
1416
|
+
import { Alert, Button as Button6, Group as Group8, Portal } from "@mantine/core";
|
1417
|
+
import { IconBug, IconDownload as IconDownload3, IconInfoCircle } from "@tabler/icons-react";
|
1418
1418
|
import { download, generateCsv, mkConfig } from "export-to-csv";
|
1419
1419
|
import {
|
1420
1420
|
MantineReactTable,
|
@@ -1440,7 +1440,29 @@ function formatData(data, formats) {
|
|
1440
1440
|
});
|
1441
1441
|
}
|
1442
1442
|
function MyDataTable(_a) {
|
1443
|
-
var _b = _a, {
|
1443
|
+
var _b = _a, {
|
1444
|
+
formats = {},
|
1445
|
+
exportAble = false,
|
1446
|
+
csvConfigProps,
|
1447
|
+
rowActionSize,
|
1448
|
+
columns,
|
1449
|
+
data,
|
1450
|
+
renderTopToolbarCustomActions,
|
1451
|
+
setSelectedRow,
|
1452
|
+
isError,
|
1453
|
+
isLoading
|
1454
|
+
} = _b, rest = __objRest(_b, [
|
1455
|
+
"formats",
|
1456
|
+
"exportAble",
|
1457
|
+
"csvConfigProps",
|
1458
|
+
"rowActionSize",
|
1459
|
+
"columns",
|
1460
|
+
"data",
|
1461
|
+
"renderTopToolbarCustomActions",
|
1462
|
+
"setSelectedRow",
|
1463
|
+
"isError",
|
1464
|
+
"isLoading"
|
1465
|
+
]);
|
1444
1466
|
const { renderRowActions } = __spreadValues({}, rest);
|
1445
1467
|
const csvConfig = mkConfig(__spreadValues({
|
1446
1468
|
fieldSeparator: ",",
|
@@ -1516,7 +1538,11 @@ function MyDataTable(_a) {
|
|
1516
1538
|
paddingBottom: "2px"
|
1517
1539
|
}
|
1518
1540
|
},
|
1519
|
-
localization: MRT_Localization_VI
|
1541
|
+
localization: MRT_Localization_VI,
|
1542
|
+
renderEmptyRowsFallback: () => isError ? /* @__PURE__ */ jsx26(Alert, { icon: /* @__PURE__ */ jsx26(IconBug, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" }) : /* @__PURE__ */ jsx26(Alert, { icon: /* @__PURE__ */ jsx26(IconInfoCircle, {}), color: "blue", title: "Kh\xF4ng c\xF3 d\u1EEF li\u1EC7u!", m: "md" }),
|
1543
|
+
state: {
|
1544
|
+
showSkeletons: isLoading
|
1545
|
+
}
|
1520
1546
|
}, rest));
|
1521
1547
|
useEffect5(() => {
|
1522
1548
|
setSelectedRow && setSelectedRow(table.getSelectedRowModel().rows.map((row) => row.original));
|
@@ -6748,13 +6774,13 @@ function MyDateInput(_a) {
|
|
6748
6774
|
|
6749
6775
|
// src/constants/enum/global.ts
|
6750
6776
|
var ENUM_DAYS_OF_WEEK = /* @__PURE__ */ ((ENUM_DAYS_OF_WEEK2) => {
|
6751
|
-
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Ch\u1EE7 Nh\u1EADt"] = 0] = "Ch\u1EE7 Nh\u1EADt";
|
6752
6777
|
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 Hai"] = 1] = "Th\u1EE9 Hai";
|
6753
6778
|
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 Ba"] = 2] = "Th\u1EE9 Ba";
|
6754
6779
|
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 T\u01B0"] = 3] = "Th\u1EE9 T\u01B0";
|
6755
6780
|
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 N\u0103m"] = 4] = "Th\u1EE9 N\u0103m";
|
6756
6781
|
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 S\xE1u"] = 5] = "Th\u1EE9 S\xE1u";
|
6757
6782
|
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 B\u1EA3y"] = 6] = "Th\u1EE9 B\u1EA3y";
|
6783
|
+
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Ch\u1EE7 Nh\u1EADt"] = 0] = "Ch\u1EE7 Nh\u1EADt";
|
6758
6784
|
return ENUM_DAYS_OF_WEEK2;
|
6759
6785
|
})(ENUM_DAYS_OF_WEEK || {});
|
6760
6786
|
|
@@ -309,8 +309,10 @@ interface IDataTable$1<TData extends MRT_RowData> extends MRT_TableOptions<TData
|
|
309
309
|
[K in keyof TData]?: FormatFunction<TData>;
|
310
310
|
};
|
311
311
|
setSelectedRow?: (data: any) => void;
|
312
|
+
isError?: boolean;
|
313
|
+
isLoading?: boolean;
|
312
314
|
}
|
313
|
-
declare function MyDataTable<TData extends MRT_RowData>({ formats, exportAble, csvConfigProps, rowActionSize, columns, data, renderTopToolbarCustomActions, setSelectedRow, ...rest }: IDataTable$1<TData>): react_jsx_runtime.JSX.Element | undefined;
|
315
|
+
declare function MyDataTable<TData extends MRT_RowData>({ formats, exportAble, csvConfigProps, rowActionSize, columns, data, renderTopToolbarCustomActions, setSelectedRow, isError, isLoading, ...rest }: IDataTable$1<TData>): react_jsx_runtime.JSX.Element | undefined;
|
314
316
|
|
315
317
|
interface MyIconTextProps {
|
316
318
|
icon?: React.ElementType;
|
@@ -68,11 +68,11 @@ import {
|
|
68
68
|
useS_BasicAppShell,
|
69
69
|
useS_ButtonImport,
|
70
70
|
utils_layout_getItemsWithoutLinks
|
71
|
-
} from "../chunk-
|
71
|
+
} from "../chunk-ZD5H4QTA.mjs";
|
72
72
|
import "../chunk-HMRYQTJT.mjs";
|
73
|
+
import "../chunk-Y3YGC5IH.mjs";
|
73
74
|
import "../chunk-5U2JSHSJ.mjs";
|
74
75
|
import "../chunk-7ZCOFATU.mjs";
|
75
|
-
import "../chunk-Y3YGC5IH.mjs";
|
76
76
|
import "../chunk-FWCSY2DS.mjs";
|
77
77
|
export {
|
78
78
|
AQButtonCreateByImportFile,
|
@@ -120,7 +120,7 @@ declare function F_core18256_Delete({ id }: {
|
|
120
120
|
|
121
121
|
declare function F_core18256_Read({ documentType }: {
|
122
122
|
documentType: number;
|
123
|
-
}): react_jsx_runtime.JSX.Element | "
|
123
|
+
}): react_jsx_runtime.JSX.Element | "Có lỗi xảy ra!" | "Đang tải dữ liệu...";
|
124
124
|
|
125
125
|
interface ISelect extends SelectProps {
|
126
126
|
documentTypeId?: number;
|
@@ -253,7 +253,7 @@ declare function F_core38677({ menuData }: {
|
|
253
253
|
|
254
254
|
interface I_core38677_User extends IBaseEntity {
|
255
255
|
}
|
256
|
-
declare function F_core38677_ReadUser(): react_jsx_runtime.JSX.Element | "
|
256
|
+
declare function F_core38677_ReadUser(): react_jsx_runtime.JSX.Element | "Có lỗi xảy ra!" | "Loading...";
|
257
257
|
|
258
258
|
declare function F_core38677_Save(): react_jsx_runtime.JSX.Element;
|
259
259
|
|
@@ -329,7 +329,7 @@ declare function F_core47643_Form({ values }: {
|
|
329
329
|
values?: I$8;
|
330
330
|
}): react_jsx_runtime.JSX.Element;
|
331
331
|
|
332
|
-
declare function F_core47643_Read(): react_jsx_runtime.JSX.Element | "
|
332
|
+
declare function F_core47643_Read(): react_jsx_runtime.JSX.Element | "Có lỗi xảy ra!" | "Đang tải dữ liệu...";
|
333
333
|
|
334
334
|
declare function F_core60524({ AQModuleId }: {
|
335
335
|
AQModuleId: number;
|
@@ -475,7 +475,7 @@ declare function F_core83092({ menuData }: {
|
|
475
475
|
menuData: I_BasicAppShell_LinkItem[];
|
476
476
|
}): react_jsx_runtime.JSX.Element;
|
477
477
|
|
478
|
-
declare function F_core83092_ReadUser(): react_jsx_runtime.JSX.Element | "
|
478
|
+
declare function F_core83092_ReadUser(): react_jsx_runtime.JSX.Element | "Có lỗi xảy ra!" | "Loading...";
|
479
479
|
|
480
480
|
declare function F_core83092_Save(): react_jsx_runtime.JSX.Element;
|
481
481
|
|
@@ -25,12 +25,15 @@ import {
|
|
25
25
|
useS_BasicAppShell,
|
26
26
|
useS_authenticate,
|
27
27
|
utils_layout_getItemsWithoutLinks
|
28
|
-
} from "../chunk-
|
28
|
+
} from "../chunk-ZD5H4QTA.mjs";
|
29
29
|
import {
|
30
30
|
baseAxios_default,
|
31
31
|
useQ_AQ_GetAQModule,
|
32
32
|
useQ_SkillCenter_GetAll
|
33
33
|
} from "../chunk-HMRYQTJT.mjs";
|
34
|
+
import {
|
35
|
+
createGenericStore
|
36
|
+
} from "../chunk-Y3YGC5IH.mjs";
|
34
37
|
import {
|
35
38
|
U0DateToDDMMYYYString,
|
36
39
|
U0MyValidateEmail,
|
@@ -43,9 +46,6 @@ import "../chunk-5U2JSHSJ.mjs";
|
|
43
46
|
import {
|
44
47
|
utils_notification_show
|
45
48
|
} from "../chunk-7ZCOFATU.mjs";
|
46
|
-
import {
|
47
|
-
createGenericStore
|
48
|
-
} from "../chunk-Y3YGC5IH.mjs";
|
49
49
|
import {
|
50
50
|
__objRest,
|
51
51
|
__spreadProps,
|