aq-fe-framework 0.1.152 → 0.1.153
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.
@@ -53,6 +53,12 @@ function utils_date_formatToDateTimeStartEnd(startDate, endDate) {
|
|
53
53
|
const endminuate = String(endDate.getMinutes()).padStart(2, "0");
|
54
54
|
return `${startday}/${startmonth}/${startyear} [${starthour}:${startminute} - ${endhour}:${endminuate}]`;
|
55
55
|
}
|
56
|
+
function utils_date_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
|
+
}
|
56
62
|
|
57
63
|
// src/utils/utils_excel.ts
|
58
64
|
import saveAs from "file-saver";
|
@@ -213,6 +219,7 @@ export {
|
|
213
219
|
U0DateToDDMMYYYString,
|
214
220
|
utils_date_dateToDDMMYYYString,
|
215
221
|
utils_date_formatToDateTimeStartEnd,
|
222
|
+
utils_date_getHHmm,
|
216
223
|
utils_file_fileToAQDocumentType,
|
217
224
|
utils_file_docxtemplaterDownload,
|
218
225
|
utils_converter_getLabelByValue,
|
package/dist/utils/index.d.mts
CHANGED
@@ -19,6 +19,7 @@ declare function utils_currency_formatWithSuffix(amount: number, suffix?: string
|
|
19
19
|
declare function U0DateToDDMMYYYString(date: Date): string;
|
20
20
|
declare function utils_date_dateToDDMMYYYString(date: Date): string;
|
21
21
|
declare function utils_date_formatToDateTimeStartEnd(startDate: Date, endDate: Date): string;
|
22
|
+
declare function utils_date_getHHmm(date: Date): string;
|
22
23
|
|
23
24
|
interface I {
|
24
25
|
crudType?: "delete" | "update" | "create" | "error" | "importSucess";
|
@@ -35,4 +36,4 @@ declare const utils_time_getCurrentTimeString: () => string;
|
|
35
36
|
declare function U0MyValidateEmpty(message?: string): (value: unknown) => React.ReactNode;
|
36
37
|
declare function U0MyValidateEmail(value?: string): "Email không đúng định dạng" | null;
|
37
38
|
|
38
|
-
export { U0DateToDDMMYYYString, U0MyValidateEmail, U0MyValidateEmpty, utils_converter_enumToSelectOptions, utils_converter_getKeyByValue, utils_converter_getLabelByValue, utils_currency_formatWithSuffix, utils_date_dateToDDMMYYYString, utils_date_formatToDateTimeStartEnd, utils_notification_show, utils_pdf_download, utils_time_convertTimeStringToSeconds, utils_time_getCurrentTimeString };
|
39
|
+
export { U0DateToDDMMYYYString, U0MyValidateEmail, U0MyValidateEmpty, utils_converter_enumToSelectOptions, utils_converter_getKeyByValue, utils_converter_getLabelByValue, utils_currency_formatWithSuffix, utils_date_dateToDDMMYYYString, utils_date_formatToDateTimeStartEnd, utils_date_getHHmm, utils_notification_show, utils_pdf_download, utils_time_convertTimeStringToSeconds, utils_time_getCurrentTimeString };
|
package/dist/utils/index.mjs
CHANGED
@@ -8,13 +8,14 @@ import {
|
|
8
8
|
utils_currency_formatWithSuffix,
|
9
9
|
utils_date_dateToDDMMYYYString,
|
10
10
|
utils_date_formatToDateTimeStartEnd,
|
11
|
+
utils_date_getHHmm,
|
11
12
|
utils_excel_download,
|
12
13
|
utils_excel_exportExcel,
|
13
14
|
utils_file_docxtemplaterDownload,
|
14
15
|
utils_file_fileToAQDocumentType,
|
15
16
|
utils_time_convertTimeStringToSeconds,
|
16
17
|
utils_time_getCurrentTimeString
|
17
|
-
} from "../chunk-
|
18
|
+
} from "../chunk-KWCUUD5Z.mjs";
|
18
19
|
import {
|
19
20
|
utils_pdf_download
|
20
21
|
} from "../chunk-5U2JSHSJ.mjs";
|
@@ -32,6 +33,7 @@ export {
|
|
32
33
|
utils_currency_formatWithSuffix,
|
33
34
|
utils_date_dateToDDMMYYYString,
|
34
35
|
utils_date_formatToDateTimeStartEnd,
|
36
|
+
utils_date_getHHmm,
|
35
37
|
utils_excel_download,
|
36
38
|
utils_excel_exportExcel,
|
37
39
|
utils_file_docxtemplaterDownload,
|