aq-fe-framework 0.1.725 → 0.1.727
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-RW6TLBQ2.mjs → chunk-6SQDJZ5F.mjs} +43 -24
- package/dist/{chunk-7PUDC2WF.mjs → chunk-O7YCQQO5.mjs} +1 -1
- package/dist/{chunk-EWDS5IOF.mjs → chunk-QSWIVDXC.mjs} +13 -9
- package/dist/columns/index.mjs +2 -2
- package/dist/components/index.mjs +3 -3
- package/dist/core/index.mjs +3 -3
- package/dist/coreService/index.mjs +3 -3
- package/dist/modules-features/index.mjs +3 -3
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.mjs +3 -3
- package/package.json +1 -1
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
} from "./chunk-2B2FKBKX.mjs";
|
|
19
19
|
import {
|
|
20
20
|
baseColumns
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-O7YCQQO5.mjs";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
23
|
+
utils_date_dateToDDMMYYYString,
|
|
24
|
+
utils_date_formatToDateTimeString
|
|
25
|
+
} from "./chunk-QSWIVDXC.mjs";
|
|
26
26
|
import {
|
|
27
27
|
const_object_colors,
|
|
28
28
|
const_object_documentTypes
|
|
@@ -656,8 +656,28 @@ function MyDataTable(_a) {
|
|
|
656
656
|
]);
|
|
657
657
|
const { renderRowActions } = __spreadValues({}, rest);
|
|
658
658
|
const finalColumns = useMemo(() => {
|
|
659
|
-
|
|
660
|
-
|
|
659
|
+
let filterColumns = utils_mantineReactTable_filterColumnsByVisibleKeys(columns, visibleFields);
|
|
660
|
+
filterColumns = utils_mantineReactTable_sortColumnsByKeyOrder(filterColumns, visibleFields);
|
|
661
|
+
const cleanedColumns = filterColumns.filter(
|
|
662
|
+
(col) => col.accessorKey !== "modifiedWhen" && col.accessorKey !== "modifiedFullName"
|
|
663
|
+
);
|
|
664
|
+
cleanedColumns.push(
|
|
665
|
+
{
|
|
666
|
+
accessorKey: "modifiedWhen",
|
|
667
|
+
header: "Ng\xE0y c\u1EADp nh\u1EADt",
|
|
668
|
+
Cell: ({ cell }) => {
|
|
669
|
+
const value = cell.getValue();
|
|
670
|
+
return utils_date_formatToDateTimeString(value, true);
|
|
671
|
+
},
|
|
672
|
+
size: 180
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
accessorKey: "modifiedFullName",
|
|
676
|
+
header: "Ng\u01B0\u1EDDi c\u1EADp nh\u1EADt",
|
|
677
|
+
size: 150
|
|
678
|
+
}
|
|
679
|
+
);
|
|
680
|
+
return cleanedColumns;
|
|
661
681
|
}, [columns, visibleFields]);
|
|
662
682
|
const table = useMantineReactTable(__spreadProps(__spreadValues({
|
|
663
683
|
columns: finalColumns,
|
|
@@ -9716,7 +9736,7 @@ function Usecase_UserAsyncFromEdusoftnet({
|
|
|
9716
9736
|
isLoading
|
|
9717
9737
|
}) {
|
|
9718
9738
|
return /* @__PURE__ */ jsxs48(Fragment18, { children: [
|
|
9719
|
-
/* @__PURE__ */ jsx92(Button17, { color: "green", loading: isLoading, leftSection: /* @__PURE__ */ jsx92(IconRefresh, {}), onClick: onStartSync, children: "\u0110\u1ED3ng b\u1ED9 t\u1EEB Edusoft.
|
|
9739
|
+
/* @__PURE__ */ jsx92(Button17, { color: "green", loading: isLoading, leftSection: /* @__PURE__ */ jsx92(IconRefresh, {}), onClick: onStartSync, children: "\u0110\u1ED3ng b\u1ED9 t\u1EEB Edusoft.Net" }),
|
|
9720
9740
|
/* @__PURE__ */ jsxs48(Modal13, { title: "Th\xF4ng b\xE1o \u0111\u1ED3ng b\u1ED9", onClose: disclosure[1].close, opened: disclosure[0], children: [
|
|
9721
9741
|
/* @__PURE__ */ jsx92(Text23, { children: `\u0110\xE3 \u0111\u1ED3ng b\u1ED9 t\xE0i kho\u1EA3n ng\u01B0\u1EDDi d\xF9ng t\u1EEB h\u1EC7 th\u1ED1ng Edusoft.NET v\u1EDBi tr\u1EA1ng th\xE1i "\u0110ang ho\u1EA1t \u0111\u1ED9ng". B\u1EA1n vui l\xF2ng ki\u1EC3m tra l\u1EA1i` }),
|
|
9722
9742
|
/* @__PURE__ */ jsx92(Center7, { children: /* @__PURE__ */ jsx92(Button17, { onClick: disclosure[1].close, children: "\u0110\u1ED3ng \xFD" }) })
|
|
@@ -10182,7 +10202,7 @@ function SubRead({
|
|
|
10182
10202
|
},
|
|
10183
10203
|
{
|
|
10184
10204
|
header: "Ng\xE0y ban h\xE0nh",
|
|
10185
|
-
accessorFn: (row) =>
|
|
10205
|
+
accessorFn: (row) => utils_date_formatToDateTimeString(new Date(row.promulgateDate))
|
|
10186
10206
|
},
|
|
10187
10207
|
{
|
|
10188
10208
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -10526,11 +10546,11 @@ function F_core16209({ RefinementTypeId }) {
|
|
|
10526
10546
|
},
|
|
10527
10547
|
{
|
|
10528
10548
|
header: "Ng\xE0y b\u1EAFt \u0111\u1EA7u",
|
|
10529
|
-
accessorFn: (row) =>
|
|
10549
|
+
accessorFn: (row) => utils_date_formatToDateTimeString(new Date(row.startDate))
|
|
10530
10550
|
},
|
|
10531
10551
|
{
|
|
10532
10552
|
header: "Ng\xE0y k\u1EBFt th\xFAc",
|
|
10533
|
-
accessorFn: (row) =>
|
|
10553
|
+
accessorFn: (row) => utils_date_formatToDateTimeString(new Date(row.endDate))
|
|
10534
10554
|
},
|
|
10535
10555
|
{
|
|
10536
10556
|
header: "File",
|
|
@@ -10921,7 +10941,7 @@ function SubRead2({
|
|
|
10921
10941
|
},
|
|
10922
10942
|
{
|
|
10923
10943
|
header: "Ng\xE0y ban h\xE0nh",
|
|
10924
|
-
accessorFn: (row) =>
|
|
10944
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
10925
10945
|
},
|
|
10926
10946
|
{
|
|
10927
10947
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -11218,7 +11238,7 @@ function SubRead3({
|
|
|
11218
11238
|
},
|
|
11219
11239
|
{
|
|
11220
11240
|
header: "Ng\xE0y ban h\xE0nh",
|
|
11221
|
-
accessorFn: (row) =>
|
|
11241
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
11222
11242
|
},
|
|
11223
11243
|
{
|
|
11224
11244
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -11935,7 +11955,7 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
|
11935
11955
|
},
|
|
11936
11956
|
{
|
|
11937
11957
|
header: "Ng\xE0y ban h\xE0nh",
|
|
11938
|
-
accessorFn: (row) =>
|
|
11958
|
+
accessorFn: (row) => utils_date_formatToDateTimeString(new Date(row.promulgateDate))
|
|
11939
11959
|
},
|
|
11940
11960
|
{
|
|
11941
11961
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -12633,10 +12653,7 @@ import { useForm as useForm27 } from "@mantine/form";
|
|
|
12633
12653
|
import { useEffect as useEffect25, useMemo as useMemo23 } from "react";
|
|
12634
12654
|
import { jsx as jsx163, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
12635
12655
|
var getDefaultBodyForType1 = () => {
|
|
12636
|
-
return
|
|
12637
|
-
<p>K\u1EBFt qu\u1EA3 ti\xEAu ch\xED l\xE0: {TTKT}</p>
|
|
12638
|
-
<p>D\u1EEF li\u1EC7u li\xEAn quan:</p>
|
|
12639
|
-
<p>{MaKH}, {TenKH}, {MaCTDT}, {TenCTDT}, {MaGD}, {NhomCT}, {MaVC}, {TenVC}, {MaTieuChi}, {TTPT}, {TTKT}, {NXTN}</p>`;
|
|
12656
|
+
return ``;
|
|
12640
12657
|
};
|
|
12641
12658
|
function EmailTemplateCreateUpdateButton({ initValues, emailTemplateEnum }) {
|
|
12642
12659
|
var _a, _b;
|
|
@@ -13128,7 +13145,7 @@ function SubRead4({
|
|
|
13128
13145
|
},
|
|
13129
13146
|
{
|
|
13130
13147
|
header: "Ng\xE0y ban h\xE0nh",
|
|
13131
|
-
accessorFn: (row) =>
|
|
13148
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
13132
13149
|
},
|
|
13133
13150
|
{
|
|
13134
13151
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -14041,7 +14058,7 @@ function SubRead5({
|
|
|
14041
14058
|
},
|
|
14042
14059
|
{
|
|
14043
14060
|
header: "Ng\xE0y ban h\xE0nh",
|
|
14044
|
-
accessorFn: (row) =>
|
|
14061
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
14045
14062
|
},
|
|
14046
14063
|
{
|
|
14047
14064
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -14216,7 +14233,9 @@ function Feat_PageContentTable({ menuData }) {
|
|
|
14216
14233
|
description: item.description,
|
|
14217
14234
|
file: new File([], item.documentFilePath || "Vui l\xF2ng ch\u1ECDn file"),
|
|
14218
14235
|
menuName: item.name,
|
|
14219
|
-
videoLink: item.link
|
|
14236
|
+
videoLink: item.link,
|
|
14237
|
+
modifiedFullName: item.modifiedFullName,
|
|
14238
|
+
modifiedWhen: item.modifiedWhen
|
|
14220
14239
|
})) || [],
|
|
14221
14240
|
onSave: async (value) => {
|
|
14222
14241
|
const transformed = await Promise.all(value.map(async (item) => ({
|
|
@@ -15122,7 +15141,7 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
|
15122
15141
|
},
|
|
15123
15142
|
{
|
|
15124
15143
|
header: "Ng\xE0y ban h\xE0nh",
|
|
15125
|
-
accessorFn: (row) =>
|
|
15144
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
15126
15145
|
},
|
|
15127
15146
|
{
|
|
15128
15147
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -15373,11 +15392,11 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
|
15373
15392
|
},
|
|
15374
15393
|
{
|
|
15375
15394
|
header: "Ng\xE0y b\u1EAFt \u0111\u1EA7u",
|
|
15376
|
-
accessorFn: (row) =>
|
|
15395
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.startDate))
|
|
15377
15396
|
},
|
|
15378
15397
|
{
|
|
15379
15398
|
header: "Ng\xE0y k\u1EBFt th\xFAc",
|
|
15380
|
-
accessorFn: (row) =>
|
|
15399
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.endDate))
|
|
15381
15400
|
},
|
|
15382
15401
|
{
|
|
15383
15402
|
header: "File",
|
|
@@ -15841,7 +15860,7 @@ function SubRead6({
|
|
|
15841
15860
|
},
|
|
15842
15861
|
{
|
|
15843
15862
|
header: "Ng\xE0y ban h\xE0nh",
|
|
15844
|
-
accessorFn: (row) =>
|
|
15863
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
15845
15864
|
},
|
|
15846
15865
|
{
|
|
15847
15866
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
// src/utils/utils_date.ts
|
|
2
|
-
function U0DateToDDMMYYYString(date) {
|
|
3
|
-
if (!(date instanceof Date) || isNaN(date.getTime())) return "";
|
|
4
|
-
const day = String(date.getDate()).padStart(2, "0");
|
|
5
|
-
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
6
|
-
const year = date.getFullYear();
|
|
7
|
-
return `${day}/${month}/${year}`;
|
|
8
|
-
}
|
|
9
2
|
function utils_date_dateToDDMMYYYString(date) {
|
|
10
3
|
const parsedDate = typeof date === "string" ? new Date(date) : date;
|
|
11
4
|
if (!(parsedDate instanceof Date) || isNaN(parsedDate.getTime())) return "";
|
|
@@ -30,10 +23,21 @@ function utils_date_getHHmm(date) {
|
|
|
30
23
|
const minute = String(date.getMinutes()).padStart(2, "0");
|
|
31
24
|
return `${hour}:${minute}`;
|
|
32
25
|
}
|
|
26
|
+
function utils_date_formatToDateTimeString(date, WithSeconds) {
|
|
27
|
+
const parsedDate = typeof date === "string" ? new Date(date) : date;
|
|
28
|
+
if (!(parsedDate instanceof Date) || isNaN(parsedDate.getTime())) return "";
|
|
29
|
+
const day = String(parsedDate.getDate()).padStart(2, "0");
|
|
30
|
+
const month = String(parsedDate.getMonth() + 1).padStart(2, "0");
|
|
31
|
+
const year = parsedDate.getFullYear();
|
|
32
|
+
const hours = String(parsedDate.getHours()).padStart(2, "0");
|
|
33
|
+
const minutes = String(parsedDate.getMinutes()).padStart(2, "0");
|
|
34
|
+
const seconds = String(parsedDate.getSeconds()).padStart(2, "0");
|
|
35
|
+
return `${day}/${month}/${year} - ${hours}:${minutes}${WithSeconds && `:${seconds}`}`;
|
|
36
|
+
}
|
|
33
37
|
|
|
34
38
|
export {
|
|
35
|
-
U0DateToDDMMYYYString,
|
|
36
39
|
utils_date_dateToDDMMYYYString,
|
|
37
40
|
utils_date_formatToDateTimeStartEnd,
|
|
38
|
-
utils_date_getHHmm
|
|
41
|
+
utils_date_getHHmm,
|
|
42
|
+
utils_date_formatToDateTimeString
|
|
39
43
|
};
|
package/dist/columns/index.mjs
CHANGED
|
@@ -70,11 +70,11 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-6SQDJZ5F.mjs";
|
|
74
74
|
import "../chunk-SUH3FFFV.mjs";
|
|
75
75
|
import "../chunk-2B2FKBKX.mjs";
|
|
76
|
-
import "../chunk-
|
|
77
|
-
import "../chunk-
|
|
76
|
+
import "../chunk-O7YCQQO5.mjs";
|
|
77
|
+
import "../chunk-QSWIVDXC.mjs";
|
|
78
78
|
import "../chunk-IUTUR43V.mjs";
|
|
79
79
|
import "../chunk-K6S7R6LU.mjs";
|
|
80
80
|
import "../chunk-2JFYOBBR.mjs";
|
package/dist/core/index.mjs
CHANGED
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
MyStatsCard,
|
|
26
26
|
MyTextInput2 as MyTextInput,
|
|
27
27
|
MyWeeklySessionSchedulerPicker
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-6SQDJZ5F.mjs";
|
|
29
29
|
import "../chunk-SUH3FFFV.mjs";
|
|
30
30
|
import "../chunk-2B2FKBKX.mjs";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-O7YCQQO5.mjs";
|
|
32
|
+
import "../chunk-QSWIVDXC.mjs";
|
|
33
33
|
import "../chunk-IUTUR43V.mjs";
|
|
34
34
|
import "../chunk-K6S7R6LU.mjs";
|
|
35
35
|
import "../chunk-2JFYOBBR.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MyModalDelete
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-6SQDJZ5F.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
5
|
import "../chunk-2B2FKBKX.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-O7YCQQO5.mjs";
|
|
7
|
+
import "../chunk-QSWIVDXC.mjs";
|
|
8
8
|
import "../chunk-IUTUR43V.mjs";
|
|
9
9
|
import "../chunk-K6S7R6LU.mjs";
|
|
10
10
|
import {
|
|
@@ -112,11 +112,11 @@ import {
|
|
|
112
112
|
MailTemplateDeleteButton,
|
|
113
113
|
useS_authenticate,
|
|
114
114
|
useS_moduleConfig
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-6SQDJZ5F.mjs";
|
|
116
116
|
import "../chunk-SUH3FFFV.mjs";
|
|
117
117
|
import "../chunk-2B2FKBKX.mjs";
|
|
118
|
-
import "../chunk-
|
|
119
|
-
import "../chunk-
|
|
118
|
+
import "../chunk-O7YCQQO5.mjs";
|
|
119
|
+
import "../chunk-QSWIVDXC.mjs";
|
|
120
120
|
import "../chunk-IUTUR43V.mjs";
|
|
121
121
|
import "../chunk-K6S7R6LU.mjs";
|
|
122
122
|
import "../chunk-2JFYOBBR.mjs";
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -36,10 +36,10 @@ declare function utils_converter_youTubeUrlToEmbed(url: string): string;
|
|
|
36
36
|
|
|
37
37
|
declare function utils_currency_formatWithSuffix(amount: number, suffix?: string): string;
|
|
38
38
|
|
|
39
|
-
declare function U0DateToDDMMYYYString(date: Date): string;
|
|
40
39
|
declare function utils_date_dateToDDMMYYYString(date?: Date | string): string;
|
|
41
40
|
declare function utils_date_formatToDateTimeStartEnd(startDate: Date, endDate: Date): string;
|
|
42
41
|
declare function utils_date_getHHmm(date: Date): string;
|
|
42
|
+
declare function utils_date_formatToDateTimeString(date?: Date | string, WithSeconds?: boolean): string;
|
|
43
43
|
|
|
44
44
|
declare function utils_field_extractAQBaseField(values?: Partial<IBaseEntity>): {
|
|
45
45
|
id: number | undefined;
|
|
@@ -96,4 +96,4 @@ declare function U0MyValidateEmpty(message?: string): (value: unknown) => React.
|
|
|
96
96
|
declare function U0MyValidateEmail(value?: string): "Email không đúng định dạng" | null;
|
|
97
97
|
declare const utils_validator_validateCode: (value?: string) => "Không được để trống" | "Chỉ được nhập chữ, số và dấu '-' (không bắt đầu bằng '-')" | null;
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { U0MyValidateEmail, U0MyValidateEmpty, updateEnableList, utils_aq_mapBaseEntityToDomain, utils_aq_mapDomainToEntity, utils_config_getBaseUrl, utils_config_getConfig, utils_converter_enumToSelectOptions, utils_converter_getKeyByValue, utils_converter_getLabelByValue, utils_converter_mapEnumToSelectData, utils_converter_youTubeUrlToEmbed, utils_currency_formatWithSuffix, utils_date_dateToDDMMYYYString, utils_date_formatToDateTimeStartEnd, utils_date_formatToDateTimeString, utils_date_getHHmm, utils_field_extractAQBaseField, utils_format_fixDecimal, utils_list_hasEmptyField, utils_list_isFieldUnique, utils_list_isTotalEqual, utils_list_sumField, utils_mantineReactTable_filterColumnsByVisibleKeys, utils_mantineReactTable_sortColumnsByKeyOrder, utils_notification_show, utils_pdf_download, utils_reactQuery_updateListItemInQuery, utils_text_getNormalizedTextFromHtml, utils_time_convertTimeStringToSeconds, utils_time_extractHourMinute, utils_time_getCurrentTimeString, utils_time_getHourMinuteFromString, utils_validator_validateCode };
|
package/dist/utils/index.mjs
CHANGED
|
@@ -38,17 +38,16 @@ import {
|
|
|
38
38
|
utils_validator_validateCode
|
|
39
39
|
} from "../chunk-2B2FKBKX.mjs";
|
|
40
40
|
import {
|
|
41
|
-
U0DateToDDMMYYYString,
|
|
42
41
|
utils_date_dateToDDMMYYYString,
|
|
43
42
|
utils_date_formatToDateTimeStartEnd,
|
|
43
|
+
utils_date_formatToDateTimeString,
|
|
44
44
|
utils_date_getHHmm
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-QSWIVDXC.mjs";
|
|
46
46
|
import {
|
|
47
47
|
utils_notification_show
|
|
48
48
|
} from "../chunk-7ZCOFATU.mjs";
|
|
49
49
|
import "../chunk-FWCSY2DS.mjs";
|
|
50
50
|
export {
|
|
51
|
-
U0DateToDDMMYYYString,
|
|
52
51
|
U0MyValidateEmail,
|
|
53
52
|
U0MyValidateEmpty,
|
|
54
53
|
updateEnableList,
|
|
@@ -64,6 +63,7 @@ export {
|
|
|
64
63
|
utils_currency_formatWithSuffix,
|
|
65
64
|
utils_date_dateToDDMMYYYString,
|
|
66
65
|
utils_date_formatToDateTimeStartEnd,
|
|
66
|
+
utils_date_formatToDateTimeString,
|
|
67
67
|
utils_date_getHHmm,
|
|
68
68
|
utils_excel_download,
|
|
69
69
|
utils_excel_exportExcel,
|