aq-fe-framework 0.1.283 → 0.1.284
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-VPI5YKN6.mjs → chunk-4H6NEAG4.mjs} +5 -5
- package/dist/components/index.mjs +2 -2
- package/dist/modules-features/index.mjs +6 -6
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.mjs +3 -3
- package/package.json +1 -1
- package/dist/{chunk-B4QOFQSV.mjs → chunk-FIH6EYE2.mjs} +3 -3
@@ -270,7 +270,7 @@ var utils_time_getCurrentTimeString = () => {
|
|
270
270
|
return `${hours}:${minutes}:${seconds}`;
|
271
271
|
};
|
272
272
|
|
273
|
-
// src/utils/
|
273
|
+
// src/utils/utils_validator.ts
|
274
274
|
import { isNotEmpty } from "@mantine/form";
|
275
275
|
function U0MyValidateEmpty(message) {
|
276
276
|
return isNotEmpty(message ? message : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng");
|
@@ -278,10 +278,10 @@ function U0MyValidateEmpty(message) {
|
|
278
278
|
function U0MyValidateEmail(value) {
|
279
279
|
return /^\S+@\S+$/.test(value) ? null : "Email kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng";
|
280
280
|
}
|
281
|
-
var
|
281
|
+
var utils_validator_validateCode = (value) => {
|
282
282
|
if (!value) return "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng";
|
283
|
-
const isValid = /^[A-Za-z0-9][A-Za-z0-9-]
|
284
|
-
return isValid ? null : "Ch\u1EC9 \u0111\u01B0\u1EE3c nh\u1EADp
|
283
|
+
const isValid = /^[A-Za-z0-9][A-Za-z0-9-]*$/.test(value);
|
284
|
+
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 '-')";
|
285
285
|
};
|
286
286
|
|
287
287
|
export {
|
@@ -304,5 +304,5 @@ export {
|
|
304
304
|
utils_time_getCurrentTimeString,
|
305
305
|
U0MyValidateEmpty,
|
306
306
|
U0MyValidateEmail,
|
307
|
-
|
307
|
+
utils_validator_validateCode
|
308
308
|
};
|
@@ -72,9 +72,9 @@ import {
|
|
72
72
|
useS_BasicAppShell,
|
73
73
|
useS_ButtonImport,
|
74
74
|
utils_layout_getItemsWithoutLinks
|
75
|
-
} from "../chunk-
|
76
|
-
import "../chunk-NWBLJ3W3.mjs";
|
75
|
+
} from "../chunk-FIH6EYE2.mjs";
|
77
76
|
import "../chunk-K6S7R6LU.mjs";
|
77
|
+
import "../chunk-NWBLJ3W3.mjs";
|
78
78
|
import "../chunk-KKJ3OEEW.mjs";
|
79
79
|
import "../chunk-Y3YGC5IH.mjs";
|
80
80
|
import "../chunk-5U2JSHSJ.mjs";
|
@@ -24,17 +24,17 @@ import {
|
|
24
24
|
useS_BasicAppShell,
|
25
25
|
useS_authenticate,
|
26
26
|
utils_layout_getItemsWithoutLinks
|
27
|
-
} from "../chunk-
|
27
|
+
} from "../chunk-FIH6EYE2.mjs";
|
28
|
+
import {
|
29
|
+
enum_emailConfigModule
|
30
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
31
|
+
import "../chunk-K6S7R6LU.mjs";
|
28
32
|
import {
|
29
33
|
const_object_documentTypes
|
30
34
|
} from "../chunk-GFEMKKFH.mjs";
|
31
35
|
import {
|
32
36
|
const_object_colors
|
33
37
|
} from "../chunk-NWBLJ3W3.mjs";
|
34
|
-
import {
|
35
|
-
enum_emailConfigModule
|
36
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
37
|
-
import "../chunk-K6S7R6LU.mjs";
|
38
38
|
import {
|
39
39
|
baseAxios_default,
|
40
40
|
useQ_AQ_GetAQModule,
|
@@ -50,7 +50,7 @@ import {
|
|
50
50
|
utils_config_getBaseUrl,
|
51
51
|
utils_converter_enumToSelectOptions,
|
52
52
|
utils_file_fileToAQDocumentType
|
53
|
-
} from "../chunk-
|
53
|
+
} from "../chunk-4H6NEAG4.mjs";
|
54
54
|
import "../chunk-5U2JSHSJ.mjs";
|
55
55
|
import {
|
56
56
|
utils_notification_show
|
package/dist/utils/index.d.mts
CHANGED
@@ -44,6 +44,6 @@ declare const utils_time_getCurrentTimeString: () => string;
|
|
44
44
|
|
45
45
|
declare function U0MyValidateEmpty(message?: string): (value: unknown) => React.ReactNode;
|
46
46
|
declare function U0MyValidateEmail(value?: string): "Email không đúng định dạng" | null;
|
47
|
-
declare const
|
47
|
+
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;
|
48
48
|
|
49
|
-
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_time_convertTimeStringToSeconds, utils_time_getCurrentTimeString,
|
49
|
+
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_time_convertTimeStringToSeconds, utils_time_getCurrentTimeString, utils_validator_validateCode };
|
package/dist/utils/index.mjs
CHANGED
@@ -17,8 +17,8 @@ import {
|
|
17
17
|
utils_file_fileToAQDocumentType,
|
18
18
|
utils_time_convertTimeStringToSeconds,
|
19
19
|
utils_time_getCurrentTimeString,
|
20
|
-
|
21
|
-
} from "../chunk-
|
20
|
+
utils_validator_validateCode
|
21
|
+
} from "../chunk-4H6NEAG4.mjs";
|
22
22
|
import {
|
23
23
|
utils_pdf_download
|
24
24
|
} from "../chunk-5U2JSHSJ.mjs";
|
@@ -47,5 +47,5 @@ export {
|
|
47
47
|
utils_pdf_download,
|
48
48
|
utils_time_convertTimeStringToSeconds,
|
49
49
|
utils_time_getCurrentTimeString,
|
50
|
-
|
50
|
+
utils_validator_validateCode
|
51
51
|
};
|
package/package.json
CHANGED