aq-fe-framework 0.1.724 → 0.1.726
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-7PUDC2WF.mjs → chunk-DYD2CUQE.mjs} +1 -1
- package/dist/{chunk-EWDS5IOF.mjs → chunk-JI3KBDMY.mjs} +13 -9
- package/dist/{chunk-JIUD5FJF.mjs → chunk-WFBHQHGQ.mjs} +17 -18
- package/dist/columns/index.mjs +2 -2
- package/dist/components/index.mjs +4 -4
- package/dist/core/index.mjs +4 -4
- package/dist/coreService/index.mjs +4 -4
- package/dist/hooks/index.mjs +1 -1
- package/dist/modules-features/index.mjs +4 -4
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.mjs +3 -3
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
} from "./chunk-2B2FKBKX.mjs";
|
|
19
19
|
import {
|
|
20
20
|
baseColumns
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DYD2CUQE.mjs";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
23
|
+
utils_date_dateToDDMMYYYString,
|
|
24
|
+
utils_date_formatToDateTimeString
|
|
25
|
+
} from "./chunk-JI3KBDMY.mjs";
|
|
26
26
|
import {
|
|
27
27
|
const_object_colors,
|
|
28
28
|
const_object_documentTypes
|
|
@@ -10182,7 +10182,7 @@ function SubRead({
|
|
|
10182
10182
|
},
|
|
10183
10183
|
{
|
|
10184
10184
|
header: "Ng\xE0y ban h\xE0nh",
|
|
10185
|
-
accessorFn: (row) =>
|
|
10185
|
+
accessorFn: (row) => utils_date_formatToDateTimeString(new Date(row.promulgateDate))
|
|
10186
10186
|
},
|
|
10187
10187
|
{
|
|
10188
10188
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -10526,11 +10526,11 @@ function F_core16209({ RefinementTypeId }) {
|
|
|
10526
10526
|
},
|
|
10527
10527
|
{
|
|
10528
10528
|
header: "Ng\xE0y b\u1EAFt \u0111\u1EA7u",
|
|
10529
|
-
accessorFn: (row) =>
|
|
10529
|
+
accessorFn: (row) => utils_date_formatToDateTimeString(new Date(row.startDate))
|
|
10530
10530
|
},
|
|
10531
10531
|
{
|
|
10532
10532
|
header: "Ng\xE0y k\u1EBFt th\xFAc",
|
|
10533
|
-
accessorFn: (row) =>
|
|
10533
|
+
accessorFn: (row) => utils_date_formatToDateTimeString(new Date(row.endDate))
|
|
10534
10534
|
},
|
|
10535
10535
|
{
|
|
10536
10536
|
header: "File",
|
|
@@ -10921,7 +10921,7 @@ function SubRead2({
|
|
|
10921
10921
|
},
|
|
10922
10922
|
{
|
|
10923
10923
|
header: "Ng\xE0y ban h\xE0nh",
|
|
10924
|
-
accessorFn: (row) =>
|
|
10924
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
10925
10925
|
},
|
|
10926
10926
|
{
|
|
10927
10927
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -11218,7 +11218,7 @@ function SubRead3({
|
|
|
11218
11218
|
},
|
|
11219
11219
|
{
|
|
11220
11220
|
header: "Ng\xE0y ban h\xE0nh",
|
|
11221
|
-
accessorFn: (row) =>
|
|
11221
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
11222
11222
|
},
|
|
11223
11223
|
{
|
|
11224
11224
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -11935,7 +11935,7 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
|
11935
11935
|
},
|
|
11936
11936
|
{
|
|
11937
11937
|
header: "Ng\xE0y ban h\xE0nh",
|
|
11938
|
-
accessorFn: (row) =>
|
|
11938
|
+
accessorFn: (row) => utils_date_formatToDateTimeString(new Date(row.promulgateDate))
|
|
11939
11939
|
},
|
|
11940
11940
|
{
|
|
11941
11941
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -13128,7 +13128,7 @@ function SubRead4({
|
|
|
13128
13128
|
},
|
|
13129
13129
|
{
|
|
13130
13130
|
header: "Ng\xE0y ban h\xE0nh",
|
|
13131
|
-
accessorFn: (row) =>
|
|
13131
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
13132
13132
|
},
|
|
13133
13133
|
{
|
|
13134
13134
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -14041,7 +14041,7 @@ function SubRead5({
|
|
|
14041
14041
|
},
|
|
14042
14042
|
{
|
|
14043
14043
|
header: "Ng\xE0y ban h\xE0nh",
|
|
14044
|
-
accessorFn: (row) =>
|
|
14044
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
14045
14045
|
},
|
|
14046
14046
|
{
|
|
14047
14047
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -15122,7 +15122,7 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
|
15122
15122
|
},
|
|
15123
15123
|
{
|
|
15124
15124
|
header: "Ng\xE0y ban h\xE0nh",
|
|
15125
|
-
accessorFn: (row) =>
|
|
15125
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
15126
15126
|
},
|
|
15127
15127
|
{
|
|
15128
15128
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -15373,11 +15373,11 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
|
15373
15373
|
},
|
|
15374
15374
|
{
|
|
15375
15375
|
header: "Ng\xE0y b\u1EAFt \u0111\u1EA7u",
|
|
15376
|
-
accessorFn: (row) =>
|
|
15376
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.startDate))
|
|
15377
15377
|
},
|
|
15378
15378
|
{
|
|
15379
15379
|
header: "Ng\xE0y k\u1EBFt th\xFAc",
|
|
15380
|
-
accessorFn: (row) =>
|
|
15380
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.endDate))
|
|
15381
15381
|
},
|
|
15382
15382
|
{
|
|
15383
15383
|
header: "File",
|
|
@@ -15841,7 +15841,7 @@ function SubRead6({
|
|
|
15841
15841
|
},
|
|
15842
15842
|
{
|
|
15843
15843
|
header: "Ng\xE0y ban h\xE0nh",
|
|
15844
|
-
accessorFn: (row) =>
|
|
15844
|
+
accessorFn: (row) => utils_date_dateToDDMMYYYString(new Date(row.promulgateDate))
|
|
15845
15845
|
},
|
|
15846
15846
|
{
|
|
15847
15847
|
header: "T\xEAn t\xE0i li\u1EC7u",
|
|
@@ -16139,6 +16139,7 @@ function Feat_Authenticate_SSOHandler({
|
|
|
16139
16139
|
const studentCode = searchParams.get("code");
|
|
16140
16140
|
const token = searchParams.get("token");
|
|
16141
16141
|
useEffect32(() => {
|
|
16142
|
+
localStorage.clear();
|
|
16142
16143
|
if (config3.isLoading == true) return;
|
|
16143
16144
|
if (studentCode && token) {
|
|
16144
16145
|
loginSSO(studentCode, token);
|
|
@@ -16165,9 +16166,7 @@ function Feat_Authenticate_SSOHandler({
|
|
|
16165
16166
|
manager.onLoginSuccessSaveStore({ data: data2.data });
|
|
16166
16167
|
const firstPageIdCanView = (_c = (_b = data2.data.permissions) == null ? void 0 : _b.find((element) => element.isRead)) == null ? void 0 : _c.pageId;
|
|
16167
16168
|
const flatmenu = extractLinkedMenuItems(menuData || []);
|
|
16168
|
-
console.log(firstPageIdCanView);
|
|
16169
16169
|
const first = flatmenu.find((item) => item.pageId == firstPageIdCanView);
|
|
16170
|
-
console.log();
|
|
16171
16170
|
onSuccessNavigateFollowRole(data2.data || [], first);
|
|
16172
16171
|
} else {
|
|
16173
16172
|
setMessError("\u0110\u0103ng nh\u1EADp kh\xF4ng th\xE0nh c\xF4ng");
|
package/dist/columns/index.mjs
CHANGED
|
@@ -70,16 +70,16 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-WFBHQHGQ.mjs";
|
|
74
74
|
import "../chunk-SUH3FFFV.mjs";
|
|
75
75
|
import "../chunk-2B2FKBKX.mjs";
|
|
76
|
-
import "../chunk-
|
|
77
|
-
import "../chunk-
|
|
76
|
+
import "../chunk-DYD2CUQE.mjs";
|
|
77
|
+
import "../chunk-JI3KBDMY.mjs";
|
|
78
78
|
import "../chunk-IUTUR43V.mjs";
|
|
79
79
|
import "../chunk-K6S7R6LU.mjs";
|
|
80
80
|
import "../chunk-2JFYOBBR.mjs";
|
|
81
|
-
import "../chunk-WZ6PXGGC.mjs";
|
|
82
81
|
import "../chunk-7ZCOFATU.mjs";
|
|
82
|
+
import "../chunk-WZ6PXGGC.mjs";
|
|
83
83
|
import "../chunk-FWCSY2DS.mjs";
|
|
84
84
|
export {
|
|
85
85
|
AQButtonCreateByImportFile,
|
package/dist/core/index.mjs
CHANGED
|
@@ -25,16 +25,16 @@ import {
|
|
|
25
25
|
MyStatsCard,
|
|
26
26
|
MyTextInput2 as MyTextInput,
|
|
27
27
|
MyWeeklySessionSchedulerPicker
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-WFBHQHGQ.mjs";
|
|
29
29
|
import "../chunk-SUH3FFFV.mjs";
|
|
30
30
|
import "../chunk-2B2FKBKX.mjs";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-DYD2CUQE.mjs";
|
|
32
|
+
import "../chunk-JI3KBDMY.mjs";
|
|
33
33
|
import "../chunk-IUTUR43V.mjs";
|
|
34
34
|
import "../chunk-K6S7R6LU.mjs";
|
|
35
35
|
import "../chunk-2JFYOBBR.mjs";
|
|
36
|
-
import "../chunk-WZ6PXGGC.mjs";
|
|
37
36
|
import "../chunk-7ZCOFATU.mjs";
|
|
37
|
+
import "../chunk-WZ6PXGGC.mjs";
|
|
38
38
|
import "../chunk-FWCSY2DS.mjs";
|
|
39
39
|
export {
|
|
40
40
|
DroppablePlaceholder,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MyModalDelete
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-WFBHQHGQ.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
5
|
import "../chunk-2B2FKBKX.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-DYD2CUQE.mjs";
|
|
7
|
+
import "../chunk-JI3KBDMY.mjs";
|
|
8
8
|
import "../chunk-IUTUR43V.mjs";
|
|
9
9
|
import "../chunk-K6S7R6LU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useMyReactMutation
|
|
12
12
|
} from "../chunk-2JFYOBBR.mjs";
|
|
13
|
-
import "../chunk-WZ6PXGGC.mjs";
|
|
14
13
|
import "../chunk-7ZCOFATU.mjs";
|
|
14
|
+
import "../chunk-WZ6PXGGC.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__objRest,
|
|
17
17
|
__spreadValues
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -112,16 +112,16 @@ import {
|
|
|
112
112
|
MailTemplateDeleteButton,
|
|
113
113
|
useS_authenticate,
|
|
114
114
|
useS_moduleConfig
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-WFBHQHGQ.mjs";
|
|
116
116
|
import "../chunk-SUH3FFFV.mjs";
|
|
117
117
|
import "../chunk-2B2FKBKX.mjs";
|
|
118
|
-
import "../chunk-
|
|
119
|
-
import "../chunk-
|
|
118
|
+
import "../chunk-DYD2CUQE.mjs";
|
|
119
|
+
import "../chunk-JI3KBDMY.mjs";
|
|
120
120
|
import "../chunk-IUTUR43V.mjs";
|
|
121
121
|
import "../chunk-K6S7R6LU.mjs";
|
|
122
122
|
import "../chunk-2JFYOBBR.mjs";
|
|
123
|
-
import "../chunk-WZ6PXGGC.mjs";
|
|
124
123
|
import "../chunk-7ZCOFATU.mjs";
|
|
124
|
+
import "../chunk-WZ6PXGGC.mjs";
|
|
125
125
|
import "../chunk-FWCSY2DS.mjs";
|
|
126
126
|
export {
|
|
127
127
|
AcademicYearsCreate,
|
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-JI3KBDMY.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,
|