aq-fe-framework 0.1.312 → 0.1.314
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-M6B6SXA3.mjs → chunk-VECMRDKG.mjs} +9 -1
- package/dist/core/index.mjs +2 -2
- package/dist/modules-features/index.mjs +8 -8
- package/dist/utils/index.d.mts +2 -1
- package/dist/utils/index.mjs +3 -1
- package/package.json +1 -1
- package/dist/{chunk-BL4VA2RG.mjs → chunk-JIPPFPV6.mjs} +3 -3
@@ -288,6 +288,13 @@ var utils_time_getCurrentTimeString = () => {
|
|
288
288
|
const seconds = formatTime(now.getSeconds());
|
289
289
|
return `${hours}:${minutes}:${seconds}`;
|
290
290
|
};
|
291
|
+
function utils_time_extractHourMinute(isoString) {
|
292
|
+
if (!isoString) return "";
|
293
|
+
const date = new Date(isoString);
|
294
|
+
const hours = String(date.getHours()).padStart(2, "0");
|
295
|
+
const minutes = String(date.getMinutes()).padStart(2, "0");
|
296
|
+
return `${hours}:${minutes}`;
|
297
|
+
}
|
291
298
|
|
292
299
|
// src/utils/utils_validator.ts
|
293
300
|
import { isNotEmpty } from "@mantine/form";
|
@@ -324,5 +331,6 @@ export {
|
|
324
331
|
utils_excel_download,
|
325
332
|
utils_reactQuery_updateListItemInQuery,
|
326
333
|
utils_time_convertTimeStringToSeconds,
|
327
|
-
utils_time_getCurrentTimeString
|
334
|
+
utils_time_getCurrentTimeString,
|
335
|
+
utils_time_extractHourMinute
|
328
336
|
};
|
package/dist/core/index.mjs
CHANGED
@@ -6,10 +6,10 @@ import {
|
|
6
6
|
MyDayOfWeekPicker,
|
7
7
|
MyTextInput,
|
8
8
|
MyWeeklySessionSchedulerPicker
|
9
|
-
} from "../chunk-
|
9
|
+
} from "../chunk-JIPPFPV6.mjs";
|
10
10
|
import "../chunk-HHJFKKE7.mjs";
|
11
|
-
import "../chunk-K6S7R6LU.mjs";
|
12
11
|
import "../chunk-NWBLJ3W3.mjs";
|
12
|
+
import "../chunk-K6S7R6LU.mjs";
|
13
13
|
import "../chunk-QPNYGFTI.mjs";
|
14
14
|
import "../chunk-7ZCOFATU.mjs";
|
15
15
|
import "../chunk-FWCSY2DS.mjs";
|
@@ -5,7 +5,7 @@ import {
|
|
5
5
|
utils_config_getBaseUrl,
|
6
6
|
utils_converter_enumToSelectOptions,
|
7
7
|
utils_file_fileToAQDocumentType
|
8
|
-
} from "../chunk-
|
8
|
+
} from "../chunk-VECMRDKG.mjs";
|
9
9
|
import {
|
10
10
|
F_authenticate_Logout,
|
11
11
|
MyActionIconDelete,
|
@@ -32,24 +32,24 @@ import {
|
|
32
32
|
utils_layout_getItemsWithoutLinks
|
33
33
|
} from "../chunk-MLYVD4EV.mjs";
|
34
34
|
import "../chunk-5U2JSHSJ.mjs";
|
35
|
+
import {
|
36
|
+
const_object_documentTypes
|
37
|
+
} from "../chunk-GFEMKKFH.mjs";
|
35
38
|
import {
|
36
39
|
MyButton as MyButton2,
|
37
40
|
MyTextInput as MyTextInput2
|
38
|
-
} from "../chunk-
|
41
|
+
} from "../chunk-JIPPFPV6.mjs";
|
39
42
|
import {
|
40
43
|
MyFlexColumn,
|
41
44
|
MyFlexRow
|
42
45
|
} from "../chunk-HHJFKKE7.mjs";
|
46
|
+
import {
|
47
|
+
const_object_colors
|
48
|
+
} from "../chunk-NWBLJ3W3.mjs";
|
43
49
|
import {
|
44
50
|
enum_emailConfigModule
|
45
51
|
} from "../chunk-VH4ZAD6M.mjs";
|
46
52
|
import "../chunk-K6S7R6LU.mjs";
|
47
|
-
import {
|
48
|
-
const_object_documentTypes
|
49
|
-
} from "../chunk-GFEMKKFH.mjs";
|
50
|
-
import {
|
51
|
-
const_object_colors
|
52
|
-
} from "../chunk-NWBLJ3W3.mjs";
|
53
53
|
import {
|
54
54
|
baseAxios_default,
|
55
55
|
createBaseApi,
|
package/dist/utils/index.d.mts
CHANGED
@@ -51,9 +51,10 @@ declare function utils_reactQuery_updateListItemInQuery<T>({ queryClient, queryK
|
|
51
51
|
|
52
52
|
declare const utils_time_convertTimeStringToSeconds: (time: string) => number;
|
53
53
|
declare const utils_time_getCurrentTimeString: () => string;
|
54
|
+
declare function utils_time_extractHourMinute(isoString?: string): string;
|
54
55
|
|
55
56
|
declare function U0MyValidateEmpty(message?: string): (value: unknown) => React.ReactNode;
|
56
57
|
declare function U0MyValidateEmail(value?: string): "Email không đúng định dạng" | null;
|
57
58
|
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;
|
58
59
|
|
59
|
-
export { U0DateToDDMMYYYString, U0MyValidateEmail, U0MyValidateEmpty, updateEnableList, 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_reactQuery_updateListItemInQuery, utils_time_convertTimeStringToSeconds, utils_time_getCurrentTimeString, utils_validator_validateCode };
|
60
|
+
export { U0DateToDDMMYYYString, U0MyValidateEmail, U0MyValidateEmpty, updateEnableList, 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_reactQuery_updateListItemInQuery, utils_time_convertTimeStringToSeconds, utils_time_extractHourMinute, utils_time_getCurrentTimeString, utils_validator_validateCode };
|
package/dist/utils/index.mjs
CHANGED
@@ -17,9 +17,10 @@ import {
|
|
17
17
|
utils_file_fileToAQDocumentType,
|
18
18
|
utils_reactQuery_updateListItemInQuery,
|
19
19
|
utils_time_convertTimeStringToSeconds,
|
20
|
+
utils_time_extractHourMinute,
|
20
21
|
utils_time_getCurrentTimeString,
|
21
22
|
utils_validator_validateCode
|
22
|
-
} from "../chunk-
|
23
|
+
} from "../chunk-VECMRDKG.mjs";
|
23
24
|
import {
|
24
25
|
utils_pdf_download
|
25
26
|
} from "../chunk-5U2JSHSJ.mjs";
|
@@ -48,6 +49,7 @@ export {
|
|
48
49
|
utils_pdf_download,
|
49
50
|
utils_reactQuery_updateListItemInQuery,
|
50
51
|
utils_time_convertTimeStringToSeconds,
|
52
|
+
utils_time_extractHourMinute,
|
51
53
|
utils_time_getCurrentTimeString,
|
52
54
|
utils_validator_validateCode
|
53
55
|
};
|
package/package.json
CHANGED
@@ -2,12 +2,12 @@ import {
|
|
2
2
|
MyFlexColumn,
|
3
3
|
MyFlexRow
|
4
4
|
} from "./chunk-HHJFKKE7.mjs";
|
5
|
-
import {
|
6
|
-
enum_daysOfWeek
|
7
|
-
} from "./chunk-K6S7R6LU.mjs";
|
8
5
|
import {
|
9
6
|
const_object_colors
|
10
7
|
} from "./chunk-NWBLJ3W3.mjs";
|
8
|
+
import {
|
9
|
+
enum_daysOfWeek
|
10
|
+
} from "./chunk-K6S7R6LU.mjs";
|
11
11
|
import {
|
12
12
|
useMyReactMutation
|
13
13
|
} from "./chunk-QPNYGFTI.mjs";
|