aq-fe-framework 0.1.282 → 0.1.283

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.
@@ -278,6 +278,11 @@ 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 utils_validateForm_validateCode = (value) => {
282
+ if (!value) return "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng";
283
+ const isValid = /^[A-Za-z0-9][A-Za-z0-9-]+$/.test(value);
284
+ return isValid ? null : "Ch\u1EC9 \u0111\u01B0\u1EE3c nh\u1EADp k\xFD t\u1EF1 th\u01B0\u1EDDng, s\u1ED1 , v\xE0 d\u1EA5u '-'";
285
+ };
281
286
 
282
287
  export {
283
288
  U0DateToDDMMYYYString,
@@ -298,5 +303,6 @@ export {
298
303
  utils_time_convertTimeStringToSeconds,
299
304
  utils_time_getCurrentTimeString,
300
305
  U0MyValidateEmpty,
301
- U0MyValidateEmail
306
+ U0MyValidateEmail,
307
+ utils_validateForm_validateCode
302
308
  };
@@ -72,9 +72,9 @@ import {
72
72
  useS_BasicAppShell,
73
73
  useS_ButtonImport,
74
74
  utils_layout_getItemsWithoutLinks
75
- } from "../chunk-FIH6EYE2.mjs";
76
- import "../chunk-K6S7R6LU.mjs";
75
+ } from "../chunk-B4QOFQSV.mjs";
77
76
  import "../chunk-NWBLJ3W3.mjs";
77
+ import "../chunk-K6S7R6LU.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-FIH6EYE2.mjs";
28
- import {
29
- enum_emailConfigModule
30
- } from "../chunk-VH4ZAD6M.mjs";
31
- import "../chunk-K6S7R6LU.mjs";
27
+ } from "../chunk-B4QOFQSV.mjs";
32
28
  import {
33
29
  const_object_documentTypes
34
30
  } from "../chunk-GFEMKKFH.mjs";
35
31
  import {
36
32
  const_object_colors
37
33
  } 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-PI7ZROBI.mjs";
53
+ } from "../chunk-VPI5YKN6.mjs";
54
54
  import "../chunk-5U2JSHSJ.mjs";
55
55
  import {
56
56
  utils_notification_show
@@ -44,5 +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 utils_validateForm_validateCode: (value?: string) => "Không được để trống" | "Chỉ được nhập ký tự thường, số , và dấu '-'" | null;
47
48
 
48
- 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_validateForm_validateCode };
@@ -16,8 +16,9 @@ import {
16
16
  utils_file_docxtemplaterDownload,
17
17
  utils_file_fileToAQDocumentType,
18
18
  utils_time_convertTimeStringToSeconds,
19
- utils_time_getCurrentTimeString
20
- } from "../chunk-PI7ZROBI.mjs";
19
+ utils_time_getCurrentTimeString,
20
+ utils_validateForm_validateCode
21
+ } from "../chunk-VPI5YKN6.mjs";
21
22
  import {
22
23
  utils_pdf_download
23
24
  } from "../chunk-5U2JSHSJ.mjs";
@@ -45,5 +46,6 @@ export {
45
46
  utils_notification_show,
46
47
  utils_pdf_download,
47
48
  utils_time_convertTimeStringToSeconds,
48
- utils_time_getCurrentTimeString
49
+ utils_time_getCurrentTimeString,
50
+ utils_validateForm_validateCode
49
51
  };
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "types": "./dist/enum/index.d.mts"
35
35
  }
36
36
  },
37
- "version": "0.1.282",
37
+ "version": "0.1.283",
38
38
  "private": false,
39
39
  "files": [
40
40
  "dist"
@@ -1,9 +1,9 @@
1
- import {
2
- enum_daysOfWeek
3
- } from "./chunk-K6S7R6LU.mjs";
4
1
  import {
5
2
  const_object_colors
6
3
  } from "./chunk-NWBLJ3W3.mjs";
4
+ import {
5
+ enum_daysOfWeek
6
+ } from "./chunk-K6S7R6LU.mjs";
7
7
  import {
8
8
  baseAxios_default,
9
9
  useMyReactMutation,