aq-fe-framework 0.1.687 → 0.1.688
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-GMM6RIVS.mjs → chunk-AEZIAU63.mjs} +20 -6
- package/dist/{chunk-42CBLK24.mjs → chunk-SXMAHPKA.mjs} +2 -2
- package/dist/components/index.mjs +3 -3
- package/dist/const/index.mjs +1 -1
- 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 +6 -3
- package/dist/utils/index.mjs +5 -3
- package/package.json +1 -1
- package/dist/{chunk-IUTUR43V.mjs → chunk-REMYBOSK.mjs} +1 -1
|
@@ -30,11 +30,24 @@ function utils_aq_mapDomainToEntity(domain) {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
// src/utils/
|
|
34
|
-
async function
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
// src/utils/utils_config_getBaseUrl.ts
|
|
34
|
+
async function utils_config_getBaseUrl({
|
|
35
|
+
configUrl = "/config.json"
|
|
36
|
+
} = {}) {
|
|
37
|
+
const res = await fetch(configUrl);
|
|
38
|
+
if (!res.ok) {
|
|
39
|
+
throw new Error("Kh\xF4ng th\u1EC3 t\u1EA3i c\u1EA5u h\xECnh runtime");
|
|
40
|
+
}
|
|
41
|
+
const config = await res.json();
|
|
42
|
+
return config.baseURL;
|
|
43
|
+
}
|
|
44
|
+
async function utils_config_getConfig(configKey, configUrl = "/config.json") {
|
|
45
|
+
const res = await fetch(configUrl);
|
|
46
|
+
if (!res.ok) {
|
|
47
|
+
throw new Error("Kh\xF4ng th\u1EC3 t\u1EA3i c\u1EA5u h\xECnh runtime");
|
|
48
|
+
}
|
|
49
|
+
const config = await res.json();
|
|
50
|
+
return config[configKey];
|
|
38
51
|
}
|
|
39
52
|
|
|
40
53
|
// src/utils/utils_converter.ts
|
|
@@ -453,7 +466,8 @@ export {
|
|
|
453
466
|
utils_pdf_download,
|
|
454
467
|
utils_aq_mapBaseEntityToDomain,
|
|
455
468
|
utils_aq_mapDomainToEntity,
|
|
456
|
-
|
|
469
|
+
utils_config_getBaseUrl,
|
|
470
|
+
utils_config_getConfig,
|
|
457
471
|
utils_converter_mapEnumToSelectData,
|
|
458
472
|
utils_converter_getLabelByValue,
|
|
459
473
|
utils_converter_getKeyByValue,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
utils_mantineReactTable_filterColumnsByVisibleKeys,
|
|
14
14
|
utils_mantineReactTable_sortColumnsByKeyOrder,
|
|
15
15
|
utils_pdf_download
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AEZIAU63.mjs";
|
|
17
17
|
import {
|
|
18
18
|
baseColumns
|
|
19
19
|
} from "./chunk-7PUDC2WF.mjs";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
const_object_colors,
|
|
25
25
|
const_object_documentTypes
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-REMYBOSK.mjs";
|
|
27
27
|
import {
|
|
28
28
|
enum_daysOfWeek,
|
|
29
29
|
enum_emailConfigModule
|
|
@@ -70,12 +70,12 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-SXMAHPKA.mjs";
|
|
74
74
|
import "../chunk-SUH3FFFV.mjs";
|
|
75
|
-
import "../chunk-
|
|
75
|
+
import "../chunk-AEZIAU63.mjs";
|
|
76
76
|
import "../chunk-7PUDC2WF.mjs";
|
|
77
77
|
import "../chunk-EWDS5IOF.mjs";
|
|
78
|
-
import "../chunk-
|
|
78
|
+
import "../chunk-REMYBOSK.mjs";
|
|
79
79
|
import "../chunk-MNJNQRZU.mjs";
|
|
80
80
|
import "../chunk-6OH47R5O.mjs";
|
|
81
81
|
import "../chunk-WZ6PXGGC.mjs";
|
package/dist/const/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
MyStatsCard,
|
|
26
26
|
MyTextInput2 as MyTextInput,
|
|
27
27
|
MyWeeklySessionSchedulerPicker
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-SXMAHPKA.mjs";
|
|
29
29
|
import "../chunk-SUH3FFFV.mjs";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-AEZIAU63.mjs";
|
|
31
31
|
import "../chunk-7PUDC2WF.mjs";
|
|
32
32
|
import "../chunk-EWDS5IOF.mjs";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-REMYBOSK.mjs";
|
|
34
34
|
import "../chunk-MNJNQRZU.mjs";
|
|
35
35
|
import "../chunk-6OH47R5O.mjs";
|
|
36
36
|
import "../chunk-WZ6PXGGC.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MyModalDelete
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-SXMAHPKA.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-AEZIAU63.mjs";
|
|
6
6
|
import "../chunk-7PUDC2WF.mjs";
|
|
7
7
|
import "../chunk-EWDS5IOF.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-REMYBOSK.mjs";
|
|
9
9
|
import "../chunk-MNJNQRZU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useMyReactMutation
|
|
@@ -106,12 +106,12 @@ import {
|
|
|
106
106
|
Feat_accessControlLevel,
|
|
107
107
|
useS_authenticate,
|
|
108
108
|
useS_moduleConfig
|
|
109
|
-
} from "../chunk-
|
|
109
|
+
} from "../chunk-SXMAHPKA.mjs";
|
|
110
110
|
import "../chunk-SUH3FFFV.mjs";
|
|
111
|
-
import "../chunk-
|
|
111
|
+
import "../chunk-AEZIAU63.mjs";
|
|
112
112
|
import "../chunk-7PUDC2WF.mjs";
|
|
113
113
|
import "../chunk-EWDS5IOF.mjs";
|
|
114
|
-
import "../chunk-
|
|
114
|
+
import "../chunk-REMYBOSK.mjs";
|
|
115
115
|
import "../chunk-MNJNQRZU.mjs";
|
|
116
116
|
import "../chunk-6OH47R5O.mjs";
|
|
117
117
|
import "../chunk-WZ6PXGGC.mjs";
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -10,9 +10,12 @@ import 'exceljs';
|
|
|
10
10
|
declare function utils_aq_mapBaseEntityToDomain<T extends IBaseEntity>(entity: T): IBaseDomain;
|
|
11
11
|
declare function utils_aq_mapDomainToEntity(domain: IBaseDomain): IBaseEntity;
|
|
12
12
|
|
|
13
|
-
declare function
|
|
14
|
-
|
|
13
|
+
declare function utils_config_getBaseUrl({ configUrl }?: {
|
|
14
|
+
configUrl?: string;
|
|
15
|
+
}): Promise<{
|
|
16
|
+
backendUrl: string;
|
|
15
17
|
}>;
|
|
18
|
+
declare function utils_config_getConfig(configKey: string, configUrl?: string): Promise<string>;
|
|
16
19
|
|
|
17
20
|
declare function utils_converter_mapEnumToSelectData<T extends Record<string, string | number>>(enumObj: T, labelMap: Record<string, string>): {
|
|
18
21
|
value: string;
|
|
@@ -93,4 +96,4 @@ declare function U0MyValidateEmpty(message?: string): (value: unknown) => React.
|
|
|
93
96
|
declare function U0MyValidateEmail(value?: string): "Email không đúng định dạng" | null;
|
|
94
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;
|
|
95
98
|
|
|
96
|
-
export { U0DateToDDMMYYYString, U0MyValidateEmail, U0MyValidateEmpty, updateEnableList, utils_aq_mapBaseEntityToDomain, utils_aq_mapDomainToEntity,
|
|
99
|
+
export { U0DateToDDMMYYYString, 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_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
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
updateEnableList,
|
|
5
5
|
utils_aq_mapBaseEntityToDomain,
|
|
6
6
|
utils_aq_mapDomainToEntity,
|
|
7
|
-
|
|
7
|
+
utils_config_getBaseUrl,
|
|
8
|
+
utils_config_getConfig,
|
|
8
9
|
utils_converter_enumToSelectOptions,
|
|
9
10
|
utils_converter_getKeyByValue,
|
|
10
11
|
utils_converter_getLabelByValue,
|
|
@@ -34,7 +35,7 @@ import {
|
|
|
34
35
|
utils_time_getCurrentTimeString,
|
|
35
36
|
utils_time_getHourMinuteFromString,
|
|
36
37
|
utils_validator_validateCode
|
|
37
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-AEZIAU63.mjs";
|
|
38
39
|
import {
|
|
39
40
|
U0DateToDDMMYYYString,
|
|
40
41
|
utils_date_dateToDDMMYYYString,
|
|
@@ -52,7 +53,8 @@ export {
|
|
|
52
53
|
updateEnableList,
|
|
53
54
|
utils_aq_mapBaseEntityToDomain,
|
|
54
55
|
utils_aq_mapDomainToEntity,
|
|
55
|
-
|
|
56
|
+
utils_config_getBaseUrl,
|
|
57
|
+
utils_config_getConfig,
|
|
56
58
|
utils_converter_enumToSelectOptions,
|
|
57
59
|
utils_converter_getKeyByValue,
|
|
58
60
|
utils_converter_getLabelByValue,
|
package/package.json
CHANGED