aq-fe-framework 0.1.443 → 0.1.445
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-NRTOFI27.mjs → chunk-PDIW6MN3.mjs} +9 -4
- package/dist/components/index.mjs +2 -2
- package/dist/modules-features/index.mjs +5 -5
- package/dist/utils/index.d.mts +4 -3
- package/dist/utils/index.mjs +3 -1
- package/package.json +1 -1
- package/dist/{chunk-JLROGQ4X.mjs → chunk-IROEUYWE.mjs} +3 -3
@@ -274,11 +274,15 @@ function utils_text_getNormalizedTextFromHtml(html) {
|
|
274
274
|
}
|
275
275
|
|
276
276
|
// src/utils/utils_time.ts
|
277
|
-
|
277
|
+
function utils_time_convertTimeStringToSeconds(time) {
|
278
278
|
const [hours, minutes, seconds] = time.split(":").map(Number);
|
279
279
|
return hours * 3600 + minutes * 60 + seconds;
|
280
|
-
}
|
281
|
-
|
280
|
+
}
|
281
|
+
function utils_time_getHourMinuteFromString(timeString) {
|
282
|
+
const [hour, minute] = timeString.split(":");
|
283
|
+
return `${hour}:${minute}`;
|
284
|
+
}
|
285
|
+
function utils_time_getCurrentTimeString() {
|
282
286
|
const formatTime = (number) => {
|
283
287
|
return number < 10 ? "0" + number : number;
|
284
288
|
};
|
@@ -287,7 +291,7 @@ var utils_time_getCurrentTimeString = () => {
|
|
287
291
|
const minutes = formatTime(now.getMinutes());
|
288
292
|
const seconds = formatTime(now.getSeconds());
|
289
293
|
return `${hours}:${minutes}:${seconds}`;
|
290
|
-
}
|
294
|
+
}
|
291
295
|
function utils_time_extractHourMinute(isoString) {
|
292
296
|
if (!isoString) return "";
|
293
297
|
const date = new Date(isoString);
|
@@ -331,6 +335,7 @@ export {
|
|
331
335
|
utils_reactQuery_updateListItemInQuery,
|
332
336
|
utils_text_getNormalizedTextFromHtml,
|
333
337
|
utils_time_convertTimeStringToSeconds,
|
338
|
+
utils_time_getHourMinuteFromString,
|
334
339
|
utils_time_getCurrentTimeString,
|
335
340
|
utils_time_extractHourMinute
|
336
341
|
};
|
@@ -62,8 +62,7 @@ import {
|
|
62
62
|
useS_BasicAppShell,
|
63
63
|
useS_ButtonImport,
|
64
64
|
utils_layout_getItemsWithoutLinks
|
65
|
-
} from "../chunk-
|
66
|
-
import "../chunk-Y3YGC5IH.mjs";
|
65
|
+
} from "../chunk-IROEUYWE.mjs";
|
67
66
|
import "../chunk-5U2JSHSJ.mjs";
|
68
67
|
import {
|
69
68
|
MyDataTable,
|
@@ -73,6 +72,7 @@ import {
|
|
73
72
|
import "../chunk-OMJJAHOC.mjs";
|
74
73
|
import "../chunk-PRN7KYPD.mjs";
|
75
74
|
import "../chunk-7ZCOFATU.mjs";
|
75
|
+
import "../chunk-Y3YGC5IH.mjs";
|
76
76
|
import "../chunk-FWCSY2DS.mjs";
|
77
77
|
export {
|
78
78
|
AQButtonCreateByImportFile,
|
@@ -4,7 +4,7 @@ import {
|
|
4
4
|
utils_config_getBaseUrl,
|
5
5
|
utils_converter_enumToSelectOptions,
|
6
6
|
utils_file_fileToAQDocumentType
|
7
|
-
} from "../chunk-
|
7
|
+
} from "../chunk-PDIW6MN3.mjs";
|
8
8
|
import {
|
9
9
|
baseColumns
|
10
10
|
} from "../chunk-BEFEWY44.mjs";
|
@@ -33,10 +33,7 @@ import {
|
|
33
33
|
groupToTwoLevels,
|
34
34
|
useS_authenticate,
|
35
35
|
utils_layout_getItemsWithoutLinks
|
36
|
-
} from "../chunk-
|
37
|
-
import {
|
38
|
-
createGenericStore
|
39
|
-
} from "../chunk-Y3YGC5IH.mjs";
|
36
|
+
} from "../chunk-IROEUYWE.mjs";
|
40
37
|
import "../chunk-5U2JSHSJ.mjs";
|
41
38
|
import {
|
42
39
|
MyButton as MyButton2,
|
@@ -71,6 +68,9 @@ import {
|
|
71
68
|
import {
|
72
69
|
utils_notification_show
|
73
70
|
} from "../chunk-7ZCOFATU.mjs";
|
71
|
+
import {
|
72
|
+
createGenericStore
|
73
|
+
} from "../chunk-Y3YGC5IH.mjs";
|
74
74
|
import {
|
75
75
|
__objRest,
|
76
76
|
__spreadProps,
|
package/dist/utils/index.d.mts
CHANGED
@@ -58,12 +58,13 @@ declare function utils_reactQuery_updateListItemInQuery<T>({ queryClient, queryK
|
|
58
58
|
|
59
59
|
declare function utils_text_getNormalizedTextFromHtml(html?: string): string;
|
60
60
|
|
61
|
-
declare
|
62
|
-
declare
|
61
|
+
declare function utils_time_convertTimeStringToSeconds(time: string): number;
|
62
|
+
declare function utils_time_getHourMinuteFromString(timeString: string): string;
|
63
|
+
declare function utils_time_getCurrentTimeString(): string;
|
63
64
|
declare function utils_time_extractHourMinute(isoString?: string): string;
|
64
65
|
|
65
66
|
declare function U0MyValidateEmpty(message?: string): (value: unknown) => React.ReactNode;
|
66
67
|
declare function U0MyValidateEmail(value?: string): "Email không đúng định dạng" | null;
|
67
68
|
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;
|
68
69
|
|
69
|
-
export { U0DateToDDMMYYYString, U0MyValidateEmail, U0MyValidateEmpty, updateEnableList, utils_converter_enumToSelectOptions, utils_converter_getKeyByValue, utils_converter_getLabelByValue, utils_converter_mapEnumToSelectData, utils_currency_formatWithSuffix, utils_date_dateToDDMMYYYString, utils_date_formatToDateTimeStartEnd, utils_date_getHHmm, utils_list_isFieldUnique, utils_list_isTotalEqual, utils_notification_show, utils_pdf_download, utils_reactQuery_updateListItemInQuery, utils_text_getNormalizedTextFromHtml, utils_time_convertTimeStringToSeconds, utils_time_extractHourMinute, utils_time_getCurrentTimeString, utils_validator_validateCode };
|
70
|
+
export { U0DateToDDMMYYYString, U0MyValidateEmail, U0MyValidateEmpty, updateEnableList, utils_converter_enumToSelectOptions, utils_converter_getKeyByValue, utils_converter_getLabelByValue, utils_converter_mapEnumToSelectData, utils_currency_formatWithSuffix, utils_date_dateToDDMMYYYString, utils_date_formatToDateTimeStartEnd, utils_date_getHHmm, utils_list_isFieldUnique, utils_list_isTotalEqual, 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
@@ -19,8 +19,9 @@ import {
|
|
19
19
|
utils_time_convertTimeStringToSeconds,
|
20
20
|
utils_time_extractHourMinute,
|
21
21
|
utils_time_getCurrentTimeString,
|
22
|
+
utils_time_getHourMinuteFromString,
|
22
23
|
utils_validator_validateCode
|
23
|
-
} from "../chunk-
|
24
|
+
} from "../chunk-PDIW6MN3.mjs";
|
24
25
|
import {
|
25
26
|
U0DateToDDMMYYYString,
|
26
27
|
utils_date_dateToDDMMYYYString,
|
@@ -61,5 +62,6 @@ export {
|
|
61
62
|
utils_time_convertTimeStringToSeconds,
|
62
63
|
utils_time_extractHourMinute,
|
63
64
|
utils_time_getCurrentTimeString,
|
65
|
+
utils_time_getHourMinuteFromString,
|
64
66
|
utils_validator_validateCode
|
65
67
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
createGenericStore
|
3
|
-
} from "./chunk-Y3YGC5IH.mjs";
|
4
1
|
import {
|
5
2
|
utils_pdf_download
|
6
3
|
} from "./chunk-5U2JSHSJ.mjs";
|
@@ -20,6 +17,9 @@ import {
|
|
20
17
|
import {
|
21
18
|
utils_notification_show
|
22
19
|
} from "./chunk-7ZCOFATU.mjs";
|
20
|
+
import {
|
21
|
+
createGenericStore
|
22
|
+
} from "./chunk-Y3YGC5IH.mjs";
|
23
23
|
import {
|
24
24
|
__objRest,
|
25
25
|
__spreadProps,
|