aq-fe-framework 0.1.783 → 0.1.784
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-7QNH6MVG.mjs → chunk-GYKR3ATJ.mjs} +11071 -11072
- package/dist/{chunk-QSWIVDXC.mjs → chunk-POYIOLSP.mjs} +39 -1
- package/dist/{chunk-O7YCQQO5.mjs → chunk-QYTT3ADT.mjs} +1 -1
- package/dist/{chunk-2WSN3O4T.mjs → chunk-V3XPIF5Y.mjs} +49 -37
- package/dist/columns/index.mjs +2 -2
- package/dist/components/index.mjs +10 -10
- package/dist/const/index.mjs +1 -1
- package/dist/core/index.mjs +10 -10
- package/dist/coreService/index.mjs +5 -5
- package/dist/modules-features/index.mjs +5 -5
- package/dist/utils/index.d.mts +19 -11
- package/dist/utils/index.mjs +10 -12
- package/package.json +1 -1
- package/dist/{chunk-KAC7JMQB.mjs → chunk-DC3L5XSB.mjs} +1 -1
|
@@ -34,10 +34,48 @@ function utils_date_formatToDateTimeString(date, WithSeconds) {
|
|
|
34
34
|
const seconds = String(parsedDate.getSeconds()).padStart(2, "0");
|
|
35
35
|
return `${day}/${month}/${year} - ${hours}:${minutes}${WithSeconds && `:${seconds}`}`;
|
|
36
36
|
}
|
|
37
|
+
var utils_date = {
|
|
38
|
+
dateToDDMMYYYString(date) {
|
|
39
|
+
const parsedDate = typeof date === "string" ? new Date(date) : date;
|
|
40
|
+
if (!(parsedDate instanceof Date) || isNaN(parsedDate.getTime())) return "";
|
|
41
|
+
const day = String(parsedDate.getDate()).padStart(2, "0");
|
|
42
|
+
const month = String(parsedDate.getMonth() + 1).padStart(2, "0");
|
|
43
|
+
const year = parsedDate.getFullYear();
|
|
44
|
+
return `${day}/${month}/${year}`;
|
|
45
|
+
},
|
|
46
|
+
formatToDateTimeStartEnd(startDate, endDate) {
|
|
47
|
+
const startday = String(startDate.getDate()).padStart(2, "0");
|
|
48
|
+
const startmonth = String(startDate.getMonth() + 1).padStart(2, "0");
|
|
49
|
+
const startyear = startDate.getFullYear();
|
|
50
|
+
const starthour = String(startDate.getHours()).padStart(2, "0");
|
|
51
|
+
const startminute = String(startDate.getMinutes()).padStart(2, "0");
|
|
52
|
+
const endhour = String(endDate.getHours()).padStart(2, "0");
|
|
53
|
+
const endminuate = String(endDate.getMinutes()).padStart(2, "0");
|
|
54
|
+
return `${startday}/${startmonth}/${startyear} [${starthour}:${startminute} - ${endhour}:${endminuate}]`;
|
|
55
|
+
},
|
|
56
|
+
getHHmm(date) {
|
|
57
|
+
if (!(date instanceof Date) || isNaN(date.getTime())) return "";
|
|
58
|
+
const hour = String(date.getHours()).padStart(2, "0");
|
|
59
|
+
const minute = String(date.getMinutes()).padStart(2, "0");
|
|
60
|
+
return `${hour}:${minute}`;
|
|
61
|
+
},
|
|
62
|
+
formatToDateTimeString(date, WithSeconds) {
|
|
63
|
+
const parsedDate = typeof date === "string" ? new Date(date) : date;
|
|
64
|
+
if (!(parsedDate instanceof Date) || isNaN(parsedDate.getTime())) return "";
|
|
65
|
+
const day = String(parsedDate.getDate()).padStart(2, "0");
|
|
66
|
+
const month = String(parsedDate.getMonth() + 1).padStart(2, "0");
|
|
67
|
+
const year = parsedDate.getFullYear();
|
|
68
|
+
const hours = String(parsedDate.getHours()).padStart(2, "0");
|
|
69
|
+
const minutes = String(parsedDate.getMinutes()).padStart(2, "0");
|
|
70
|
+
const seconds = String(parsedDate.getSeconds()).padStart(2, "0");
|
|
71
|
+
return `${day}/${month}/${year} - ${hours}:${minutes}${WithSeconds && `:${seconds}`}`;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
37
74
|
|
|
38
75
|
export {
|
|
39
76
|
utils_date_dateToDDMMYYYString,
|
|
40
77
|
utils_date_formatToDateTimeStartEnd,
|
|
41
78
|
utils_date_getHHmm,
|
|
42
|
-
utils_date_formatToDateTimeString
|
|
79
|
+
utils_date_formatToDateTimeString,
|
|
80
|
+
utils_date
|
|
43
81
|
};
|
|
@@ -30,26 +30,6 @@ function utils_aq_mapDomainToEntity(domain) {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
|
|
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];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
33
|
// src/utils/utils_converter.ts
|
|
54
34
|
function utils_converter_mapEnumToSelectData(enumObj, labelMap) {
|
|
55
35
|
return Object.entries(enumObj).filter(([key, value]) => isNaN(Number(key))).map(([_, value]) => {
|
|
@@ -105,6 +85,13 @@ function utils_currency_formatWithSuffix(amount, suffix = "") {
|
|
|
105
85
|
const formattedAmount = formatter.format(amount);
|
|
106
86
|
return `${formattedAmount}${suffix}`;
|
|
107
87
|
}
|
|
88
|
+
var utils_currency = {
|
|
89
|
+
formatWithSuffix(amount, suffix = "") {
|
|
90
|
+
const formatter = new Intl.NumberFormat("vi-VN");
|
|
91
|
+
const formattedAmount = formatter.format(amount);
|
|
92
|
+
return `${formattedAmount}${suffix}`;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
108
95
|
|
|
109
96
|
// src/utils/utils_excel.ts
|
|
110
97
|
import saveAs from "file-saver";
|
|
@@ -478,32 +465,59 @@ function utils_time_extractHourMinute(isoString) {
|
|
|
478
465
|
const minutes = String(date.getMinutes()).padStart(2, "0");
|
|
479
466
|
return `${hours}:${minutes}`;
|
|
480
467
|
}
|
|
468
|
+
var utils_time = {
|
|
469
|
+
convertTimeStringToSeconds(time) {
|
|
470
|
+
const [hours, minutes, seconds] = time.split(":").map(Number);
|
|
471
|
+
return hours * 3600 + minutes * 60 + seconds;
|
|
472
|
+
},
|
|
473
|
+
getHourMinuteFromString(input) {
|
|
474
|
+
if (!input) return "";
|
|
475
|
+
if (typeof input === "string") {
|
|
476
|
+
const [hour2, minute2] = input.split(":");
|
|
477
|
+
return `${hour2}:${minute2}`;
|
|
478
|
+
}
|
|
479
|
+
const hour = String(input.getHours()).padStart(2, "0");
|
|
480
|
+
const minute = String(input.getMinutes()).padStart(2, "0");
|
|
481
|
+
return `${hour}:${minute}`;
|
|
482
|
+
},
|
|
483
|
+
getCurrentTimeString() {
|
|
484
|
+
const formatTime = (number) => {
|
|
485
|
+
return number < 10 ? "0" + number : number;
|
|
486
|
+
};
|
|
487
|
+
const now = /* @__PURE__ */ new Date();
|
|
488
|
+
const hours = formatTime(now.getHours());
|
|
489
|
+
const minutes = formatTime(now.getMinutes());
|
|
490
|
+
const seconds = formatTime(now.getSeconds());
|
|
491
|
+
return `${hours}:${minutes}:${seconds}`;
|
|
492
|
+
},
|
|
493
|
+
extractHourMinute(isoString) {
|
|
494
|
+
if (!isoString) return "";
|
|
495
|
+
const date = new Date(isoString);
|
|
496
|
+
const hours = String(date.getHours()).padStart(2, "0");
|
|
497
|
+
const minutes = String(date.getMinutes()).padStart(2, "0");
|
|
498
|
+
return `${hours}:${minutes}`;
|
|
499
|
+
}
|
|
500
|
+
};
|
|
481
501
|
|
|
482
502
|
// src/utils/utils_validator.ts
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
return /^\S+@\S+$/.test(value) ? null : "Email kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng";
|
|
489
|
-
}
|
|
490
|
-
var utils_validator_validateCode = (value) => {
|
|
491
|
-
if (!value) return "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng";
|
|
492
|
-
const isValid = /^[A-Za-z0-9][A-Za-z0-9-]*$/.test(value);
|
|
493
|
-
return isValid ? null : "Ch\u1EC9 \u0111\u01B0\u1EE3c nh\u1EADp ch\u1EEF, s\u1ED1 v\xE0 d\u1EA5u '-' (kh\xF4ng b\u1EAFt \u0111\u1EA7u b\u1EB1ng '-')";
|
|
503
|
+
var utils_validator = {
|
|
504
|
+
validateCode(value) {
|
|
505
|
+
if (!value) return "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng";
|
|
506
|
+
return null;
|
|
507
|
+
}
|
|
494
508
|
};
|
|
495
509
|
|
|
496
510
|
export {
|
|
511
|
+
utils_pdf_download,
|
|
497
512
|
utils_aq_mapBaseEntityToDomain,
|
|
498
513
|
utils_aq_mapDomainToEntity,
|
|
499
|
-
utils_config_getBaseUrl,
|
|
500
|
-
utils_config_getConfig,
|
|
501
514
|
utils_converter_mapEnumToSelectData,
|
|
502
515
|
utils_converter_getLabelByValue,
|
|
503
516
|
utils_converter_getKeyByValue,
|
|
504
517
|
utils_converter_enumToSelectOptions,
|
|
505
518
|
utils_converter_youTubeUrlToEmbed,
|
|
506
519
|
utils_currency_formatWithSuffix,
|
|
520
|
+
utils_currency,
|
|
507
521
|
utils_excel_exportExcel,
|
|
508
522
|
utils_excel_download,
|
|
509
523
|
utils_excel_parseToJson,
|
|
@@ -521,14 +535,12 @@ export {
|
|
|
521
535
|
utils_list_sumField,
|
|
522
536
|
utils_mantineReactTable_filterColumnsByVisibleKeys,
|
|
523
537
|
utils_mantineReactTable_sortColumnsByKeyOrder,
|
|
524
|
-
utils_pdf_download,
|
|
525
538
|
utils_reactQuery_updateListItemInQuery,
|
|
526
539
|
utils_text,
|
|
527
540
|
utils_time_convertTimeStringToSeconds,
|
|
528
541
|
utils_time_getHourMinuteFromString,
|
|
529
542
|
utils_time_getCurrentTimeString,
|
|
530
543
|
utils_time_extractHourMinute,
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
utils_validator_validateCode
|
|
544
|
+
utils_time,
|
|
545
|
+
utils_validator
|
|
534
546
|
};
|
package/dist/columns/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
Boxes,
|
|
10
10
|
FaviconSetter,
|
|
11
11
|
HeaderMegaMenu,
|
|
12
|
-
|
|
12
|
+
MyActionIcon,
|
|
13
13
|
MyActionIconCheck,
|
|
14
14
|
MyActionIconDelete,
|
|
15
15
|
MyActionIconDownloadPDF,
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
MyAppSpotlight,
|
|
22
22
|
MyBoxesBackground,
|
|
23
23
|
MyBoxesCore,
|
|
24
|
-
|
|
24
|
+
MyButton,
|
|
25
25
|
MyButtonCreate,
|
|
26
26
|
MyButtonDeleteList,
|
|
27
27
|
MyButtonImport,
|
|
28
|
-
|
|
28
|
+
MyButtonModal,
|
|
29
29
|
MyButtonPrintPDF2 as MyButtonPrintPDF,
|
|
30
30
|
MyButtonPrintTablePDF,
|
|
31
31
|
MyButtonRouterBack,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
MyDateInput,
|
|
42
42
|
MyFieldset,
|
|
43
43
|
MyFileInput,
|
|
44
|
-
|
|
44
|
+
MyFlexColumn,
|
|
45
45
|
MyFlexEnd2 as MyFlexEnd,
|
|
46
46
|
MyFlexRow,
|
|
47
47
|
MyHtmlWrapper,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
MyTab,
|
|
58
58
|
MyTextArea,
|
|
59
59
|
MyTextEditor,
|
|
60
|
-
|
|
60
|
+
MyTextInput,
|
|
61
61
|
SelectFieldModal,
|
|
62
62
|
SelectFileModal,
|
|
63
63
|
extractLinkedMenuItems,
|
|
@@ -70,12 +70,12 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-GYKR3ATJ.mjs";
|
|
74
74
|
import "../chunk-SUH3FFFV.mjs";
|
|
75
|
-
import "../chunk-
|
|
76
|
-
import "../chunk-
|
|
77
|
-
import "../chunk-
|
|
78
|
-
import "../chunk-
|
|
75
|
+
import "../chunk-V3XPIF5Y.mjs";
|
|
76
|
+
import "../chunk-QYTT3ADT.mjs";
|
|
77
|
+
import "../chunk-POYIOLSP.mjs";
|
|
78
|
+
import "../chunk-DC3L5XSB.mjs";
|
|
79
79
|
import "../chunk-K6S7R6LU.mjs";
|
|
80
80
|
import "../chunk-NSBIYOKX.mjs";
|
|
81
81
|
import "../chunk-WZ6PXGGC.mjs";
|
package/dist/const/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DroppablePlaceholder,
|
|
3
|
-
MyActionIcon,
|
|
4
|
-
MyButton,
|
|
3
|
+
MyActionIcon2 as MyActionIcon,
|
|
4
|
+
MyButton2 as MyButton,
|
|
5
5
|
MyButtonCreateUpdate,
|
|
6
|
-
MyButtonModal,
|
|
6
|
+
MyButtonModal2 as MyButtonModal,
|
|
7
7
|
MyButtonModalForm,
|
|
8
8
|
MyButtonPrintPDF,
|
|
9
9
|
MyButtonViewFile,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
MyDataTableStagedChanges,
|
|
13
13
|
MyDayOfWeekPicker,
|
|
14
14
|
MyFileInputPreview,
|
|
15
|
-
MyFlexColumn,
|
|
15
|
+
MyFlexColumn2 as MyFlexColumn,
|
|
16
16
|
MyFlexEnd,
|
|
17
17
|
MyFlexIconTitle,
|
|
18
18
|
MyInfoBox,
|
|
@@ -24,15 +24,15 @@ import {
|
|
|
24
24
|
MySelect,
|
|
25
25
|
MySelectFromAPI,
|
|
26
26
|
MyStatsCard,
|
|
27
|
-
MyTextInput,
|
|
27
|
+
MyTextInput2 as MyTextInput,
|
|
28
28
|
MyThemeIconSquareCheck,
|
|
29
29
|
MyWeeklySessionSchedulerPicker
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-GYKR3ATJ.mjs";
|
|
31
31
|
import "../chunk-SUH3FFFV.mjs";
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-V3XPIF5Y.mjs";
|
|
33
|
+
import "../chunk-QYTT3ADT.mjs";
|
|
34
|
+
import "../chunk-POYIOLSP.mjs";
|
|
35
|
+
import "../chunk-DC3L5XSB.mjs";
|
|
36
36
|
import "../chunk-K6S7R6LU.mjs";
|
|
37
37
|
import "../chunk-NSBIYOKX.mjs";
|
|
38
38
|
import "../chunk-WZ6PXGGC.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MyModalDelete
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-GYKR3ATJ.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-V3XPIF5Y.mjs";
|
|
6
|
+
import "../chunk-QYTT3ADT.mjs";
|
|
7
|
+
import "../chunk-POYIOLSP.mjs";
|
|
8
|
+
import "../chunk-DC3L5XSB.mjs";
|
|
9
9
|
import "../chunk-K6S7R6LU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useMyReactMutation
|
|
@@ -112,12 +112,12 @@ import {
|
|
|
112
112
|
MailTemplateDeleteButton,
|
|
113
113
|
useS_moduleConfig,
|
|
114
114
|
useStore_Authenticate
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-GYKR3ATJ.mjs";
|
|
116
116
|
import "../chunk-SUH3FFFV.mjs";
|
|
117
|
-
import "../chunk-
|
|
118
|
-
import "../chunk-
|
|
119
|
-
import "../chunk-
|
|
120
|
-
import "../chunk-
|
|
117
|
+
import "../chunk-V3XPIF5Y.mjs";
|
|
118
|
+
import "../chunk-QYTT3ADT.mjs";
|
|
119
|
+
import "../chunk-POYIOLSP.mjs";
|
|
120
|
+
import "../chunk-DC3L5XSB.mjs";
|
|
121
121
|
import "../chunk-K6S7R6LU.mjs";
|
|
122
122
|
import "../chunk-NSBIYOKX.mjs";
|
|
123
123
|
import "../chunk-WZ6PXGGC.mjs";
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -10,13 +10,6 @@ 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 utils_config_getBaseUrl({ configUrl }?: {
|
|
14
|
-
configUrl?: string;
|
|
15
|
-
}): Promise<{
|
|
16
|
-
backendUrl: string;
|
|
17
|
-
}>;
|
|
18
|
-
declare function utils_config_getConfig(configKey: string, configUrl?: string): Promise<string>;
|
|
19
|
-
|
|
20
13
|
declare function utils_converter_mapEnumToSelectData<T extends Record<string, string | number>>(enumObj: T, labelMap: Record<string, string>): {
|
|
21
14
|
value: string;
|
|
22
15
|
label: string;
|
|
@@ -35,11 +28,20 @@ declare function utils_converter_enumToSelectOptions<T extends Record<string, st
|
|
|
35
28
|
declare function utils_converter_youTubeUrlToEmbed(url: string): string;
|
|
36
29
|
|
|
37
30
|
declare function utils_currency_formatWithSuffix(amount: number, suffix?: string): string;
|
|
31
|
+
declare const utils_currency: {
|
|
32
|
+
formatWithSuffix(amount: number, suffix?: string): string;
|
|
33
|
+
};
|
|
38
34
|
|
|
39
35
|
declare function utils_date_dateToDDMMYYYString(date?: Date | string): string;
|
|
40
36
|
declare function utils_date_formatToDateTimeStartEnd(startDate: Date, endDate: Date): string;
|
|
41
37
|
declare function utils_date_getHHmm(date: Date): string;
|
|
42
38
|
declare function utils_date_formatToDateTimeString(date?: Date | string, WithSeconds?: boolean): string;
|
|
39
|
+
declare const utils_date: {
|
|
40
|
+
dateToDDMMYYYString(date?: Date | string): string;
|
|
41
|
+
formatToDateTimeStartEnd(startDate: Date, endDate: Date): string;
|
|
42
|
+
getHHmm(date: Date): string;
|
|
43
|
+
formatToDateTimeString(date?: Date | string, WithSeconds?: boolean): string;
|
|
44
|
+
};
|
|
43
45
|
|
|
44
46
|
declare function utils_field_extractAQBaseField(values?: Partial<IBaseEntity>): {
|
|
45
47
|
id: number | undefined;
|
|
@@ -97,9 +99,15 @@ declare function utils_time_convertTimeStringToSeconds(time: string): number;
|
|
|
97
99
|
declare function utils_time_getHourMinuteFromString(input?: string | Date): string;
|
|
98
100
|
declare function utils_time_getCurrentTimeString(): string;
|
|
99
101
|
declare function utils_time_extractHourMinute(isoString?: string): string;
|
|
102
|
+
declare const utils_time: {
|
|
103
|
+
convertTimeStringToSeconds(time: string): number;
|
|
104
|
+
getHourMinuteFromString(input?: string | Date): string;
|
|
105
|
+
getCurrentTimeString(): string;
|
|
106
|
+
extractHourMinute(isoString?: string): string;
|
|
107
|
+
};
|
|
100
108
|
|
|
101
|
-
declare
|
|
102
|
-
|
|
103
|
-
|
|
109
|
+
declare const utils_validator: {
|
|
110
|
+
validateCode(value?: string): "Không được để trống" | null;
|
|
111
|
+
};
|
|
104
112
|
|
|
105
|
-
export {
|
|
113
|
+
export { updateEnableList, utils_aq_mapBaseEntityToDomain, utils_aq_mapDomainToEntity, utils_converter_enumToSelectOptions, utils_converter_getKeyByValue, utils_converter_getLabelByValue, utils_converter_mapEnumToSelectData, utils_converter_youTubeUrlToEmbed, utils_currency, utils_currency_formatWithSuffix, utils_date, 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, utils_time, utils_time_convertTimeStringToSeconds, utils_time_extractHourMinute, utils_time_getCurrentTimeString, utils_time_getHourMinuteFromString, utils_validator };
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
U0MyValidateEmail,
|
|
3
|
-
U0MyValidateEmpty,
|
|
4
2
|
updateEnableList,
|
|
5
3
|
utils_aq_mapBaseEntityToDomain,
|
|
6
4
|
utils_aq_mapDomainToEntity,
|
|
7
|
-
utils_config_getBaseUrl,
|
|
8
|
-
utils_config_getConfig,
|
|
9
5
|
utils_converter_enumToSelectOptions,
|
|
10
6
|
utils_converter_getKeyByValue,
|
|
11
7
|
utils_converter_getLabelByValue,
|
|
12
8
|
utils_converter_mapEnumToSelectData,
|
|
13
9
|
utils_converter_youTubeUrlToEmbed,
|
|
10
|
+
utils_currency,
|
|
14
11
|
utils_currency_formatWithSuffix,
|
|
15
12
|
utils_excel_download,
|
|
16
13
|
utils_excel_exportExcel,
|
|
@@ -31,36 +28,36 @@ import {
|
|
|
31
28
|
utils_pdf_download,
|
|
32
29
|
utils_reactQuery_updateListItemInQuery,
|
|
33
30
|
utils_text,
|
|
31
|
+
utils_time,
|
|
34
32
|
utils_time_convertTimeStringToSeconds,
|
|
35
33
|
utils_time_extractHourMinute,
|
|
36
34
|
utils_time_getCurrentTimeString,
|
|
37
35
|
utils_time_getHourMinuteFromString,
|
|
38
|
-
|
|
39
|
-
} from "../chunk-
|
|
36
|
+
utils_validator
|
|
37
|
+
} from "../chunk-V3XPIF5Y.mjs";
|
|
40
38
|
import {
|
|
39
|
+
utils_date,
|
|
41
40
|
utils_date_dateToDDMMYYYString,
|
|
42
41
|
utils_date_formatToDateTimeStartEnd,
|
|
43
42
|
utils_date_formatToDateTimeString,
|
|
44
43
|
utils_date_getHHmm
|
|
45
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-POYIOLSP.mjs";
|
|
46
45
|
import {
|
|
47
46
|
utils_notification_show
|
|
48
47
|
} from "../chunk-7ZCOFATU.mjs";
|
|
49
48
|
import "../chunk-FWCSY2DS.mjs";
|
|
50
49
|
export {
|
|
51
|
-
U0MyValidateEmail,
|
|
52
|
-
U0MyValidateEmpty,
|
|
53
50
|
updateEnableList,
|
|
54
51
|
utils_aq_mapBaseEntityToDomain,
|
|
55
52
|
utils_aq_mapDomainToEntity,
|
|
56
|
-
utils_config_getBaseUrl,
|
|
57
|
-
utils_config_getConfig,
|
|
58
53
|
utils_converter_enumToSelectOptions,
|
|
59
54
|
utils_converter_getKeyByValue,
|
|
60
55
|
utils_converter_getLabelByValue,
|
|
61
56
|
utils_converter_mapEnumToSelectData,
|
|
62
57
|
utils_converter_youTubeUrlToEmbed,
|
|
58
|
+
utils_currency,
|
|
63
59
|
utils_currency_formatWithSuffix,
|
|
60
|
+
utils_date,
|
|
64
61
|
utils_date_dateToDDMMYYYString,
|
|
65
62
|
utils_date_formatToDateTimeStartEnd,
|
|
66
63
|
utils_date_formatToDateTimeString,
|
|
@@ -85,9 +82,10 @@ export {
|
|
|
85
82
|
utils_pdf_download,
|
|
86
83
|
utils_reactQuery_updateListItemInQuery,
|
|
87
84
|
utils_text,
|
|
85
|
+
utils_time,
|
|
88
86
|
utils_time_convertTimeStringToSeconds,
|
|
89
87
|
utils_time_extractHourMinute,
|
|
90
88
|
utils_time_getCurrentTimeString,
|
|
91
89
|
utils_time_getHourMinuteFromString,
|
|
92
|
-
|
|
90
|
+
utils_validator
|
|
93
91
|
};
|
package/package.json
CHANGED