asv-hlps 1.2.25 → 1.2.26
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/lib/cjs/models/index.d.ts +7 -7
- package/lib/cjs/models/index.js +5 -5
- package/lib/cjs/models/types/Type.d.ts +1 -1
- package/lib/cjs/npms/yup.js +4 -3
- package/lib/esm/models/index.d.ts +7 -7
- package/lib/esm/models/index.js +5 -5
- package/lib/esm/models/types/Type.d.ts +1 -1
- package/lib/esm/npms/yup.js +4 -3
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { NaAc } from "./shared/NaAc";
|
|
2
2
|
import { NaCoAc } from "./shared/NaCoAc";
|
|
3
3
|
import { NaCoShortAc } from "./shared/NaCoShortAc";
|
|
4
|
-
import { colNa, colNaCo, colNaCoSh,
|
|
4
|
+
import { colNa, colNaCo, colNaCoSh, FormPropsType, HeaderTableColumnType, IPath, MenuItemType } from "./types/Type";
|
|
5
|
+
export * from "./entities/auth/index";
|
|
5
6
|
export * from "./entities/bills/index";
|
|
6
7
|
export * from "./entities/buys/index";
|
|
7
|
-
export * from "./entities/comptas/index";
|
|
8
|
-
export * from "./entities/sales/index";
|
|
9
|
-
export * from "./entities/users/index";
|
|
10
|
-
export * from "./entities/world/index";
|
|
11
8
|
export * from "./entities/cashs/index";
|
|
12
|
-
export * from "./entities/
|
|
9
|
+
export * from "./entities/comptas/index";
|
|
13
10
|
export * from "./entities/docs/index";
|
|
14
11
|
export * from "./entities/mails/index";
|
|
15
12
|
export * from "./entities/products/index";
|
|
13
|
+
export * from "./entities/sales/index";
|
|
14
|
+
export * from "./entities/users/index";
|
|
16
15
|
export * from "./entities/utilities/index";
|
|
17
|
-
export
|
|
16
|
+
export * from "./entities/world/index";
|
|
17
|
+
export { NaAc, NaCoAc, NaCoShortAc, MenuItemType, HeaderTableColumnType, IPath, colNa, colNaCo, colNaCoSh, FormPropsType };
|
package/lib/cjs/models/index.js
CHANGED
|
@@ -19,15 +19,15 @@ const Type_1 = require("./types/Type");
|
|
|
19
19
|
Object.defineProperty(exports, "colNa", { enumerable: true, get: function () { return Type_1.colNa; } });
|
|
20
20
|
Object.defineProperty(exports, "colNaCo", { enumerable: true, get: function () { return Type_1.colNaCo; } });
|
|
21
21
|
Object.defineProperty(exports, "colNaCoSh", { enumerable: true, get: function () { return Type_1.colNaCoSh; } });
|
|
22
|
+
__exportStar(require("./entities/auth/index"), exports);
|
|
22
23
|
__exportStar(require("./entities/bills/index"), exports);
|
|
23
24
|
__exportStar(require("./entities/buys/index"), exports);
|
|
24
|
-
__exportStar(require("./entities/comptas/index"), exports);
|
|
25
|
-
__exportStar(require("./entities/sales/index"), exports);
|
|
26
|
-
__exportStar(require("./entities/users/index"), exports);
|
|
27
|
-
__exportStar(require("./entities/world/index"), exports);
|
|
28
25
|
__exportStar(require("./entities/cashs/index"), exports);
|
|
29
|
-
__exportStar(require("./entities/
|
|
26
|
+
__exportStar(require("./entities/comptas/index"), exports);
|
|
30
27
|
__exportStar(require("./entities/docs/index"), exports);
|
|
31
28
|
__exportStar(require("./entities/mails/index"), exports);
|
|
32
29
|
__exportStar(require("./entities/products/index"), exports);
|
|
30
|
+
__exportStar(require("./entities/sales/index"), exports);
|
|
31
|
+
__exportStar(require("./entities/users/index"), exports);
|
|
33
32
|
__exportStar(require("./entities/utilities/index"), exports);
|
|
33
|
+
__exportStar(require("./entities/world/index"), exports);
|
|
@@ -53,7 +53,7 @@ export declare type HeaderTableColumnType = {
|
|
|
53
53
|
export declare const colNa: HeaderTableColumnType[];
|
|
54
54
|
export declare const colNaCo: HeaderTableColumnType[];
|
|
55
55
|
export declare const colNaCoSh: HeaderTableColumnType[];
|
|
56
|
-
export declare type
|
|
56
|
+
export declare type FormPropsType = {
|
|
57
57
|
onSubmitForm?: (value: any) => any;
|
|
58
58
|
onCancelForm?: (value: any) => any;
|
|
59
59
|
tob?: any;
|
package/lib/cjs/npms/yup.js
CHANGED
|
@@ -76,8 +76,8 @@ const yupValideUniqEmail = (url, tob, isRequired = true) => {
|
|
|
76
76
|
if (isRequired) {
|
|
77
77
|
return yup
|
|
78
78
|
.string()
|
|
79
|
-
.email("this value must be a valid email")
|
|
80
79
|
.required("this value is required")
|
|
80
|
+
.email("this value must be a valid email")
|
|
81
81
|
.test("Check_name", "This name is already taken", (value) => {
|
|
82
82
|
return new Promise((resolve) => __awaiter(void 0, void 0, void 0, function* () {
|
|
83
83
|
const { data: res } = yield axios_1.default.post(url, { id: tob === null || tob === void 0 ? void 0 : tob.id, name: value });
|
|
@@ -86,7 +86,7 @@ const yupValideUniqEmail = (url, tob, isRequired = true) => {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
return yup.string().when((val) => {
|
|
89
|
-
if (val) {
|
|
89
|
+
if (val !== "") {
|
|
90
90
|
return yup
|
|
91
91
|
.string()
|
|
92
92
|
.email()
|
|
@@ -137,9 +137,10 @@ exports.yupValideUniqCode = yupValideUniqCode;
|
|
|
137
137
|
const yupValidateNoRequiredNumber = () => {
|
|
138
138
|
return yup
|
|
139
139
|
.string()
|
|
140
|
+
.nullable()
|
|
140
141
|
.when((val) => {
|
|
141
142
|
if (val) {
|
|
142
|
-
return yup.number();
|
|
143
|
+
return yup.number().nullable();
|
|
143
144
|
}
|
|
144
145
|
})
|
|
145
146
|
.typeError("must be number");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { NaAc } from "./shared/NaAc";
|
|
2
2
|
import { NaCoAc } from "./shared/NaCoAc";
|
|
3
3
|
import { NaCoShortAc } from "./shared/NaCoShortAc";
|
|
4
|
-
import { colNa, colNaCo, colNaCoSh,
|
|
4
|
+
import { colNa, colNaCo, colNaCoSh, FormPropsType, HeaderTableColumnType, IPath, MenuItemType } from "./types/Type";
|
|
5
|
+
export * from "./entities/auth/index";
|
|
5
6
|
export * from "./entities/bills/index";
|
|
6
7
|
export * from "./entities/buys/index";
|
|
7
|
-
export * from "./entities/comptas/index";
|
|
8
|
-
export * from "./entities/sales/index";
|
|
9
|
-
export * from "./entities/users/index";
|
|
10
|
-
export * from "./entities/world/index";
|
|
11
8
|
export * from "./entities/cashs/index";
|
|
12
|
-
export * from "./entities/
|
|
9
|
+
export * from "./entities/comptas/index";
|
|
13
10
|
export * from "./entities/docs/index";
|
|
14
11
|
export * from "./entities/mails/index";
|
|
15
12
|
export * from "./entities/products/index";
|
|
13
|
+
export * from "./entities/sales/index";
|
|
14
|
+
export * from "./entities/users/index";
|
|
16
15
|
export * from "./entities/utilities/index";
|
|
17
|
-
export
|
|
16
|
+
export * from "./entities/world/index";
|
|
17
|
+
export { NaAc, NaCoAc, NaCoShortAc, MenuItemType, HeaderTableColumnType, IPath, colNa, colNaCo, colNaCoSh, FormPropsType };
|
package/lib/esm/models/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { colNa, colNaCo, colNaCoSh } from "./types/Type";
|
|
2
|
+
export * from "./entities/auth/index";
|
|
2
3
|
export * from "./entities/bills/index";
|
|
3
4
|
export * from "./entities/buys/index";
|
|
4
|
-
export * from "./entities/comptas/index";
|
|
5
|
-
export * from "./entities/sales/index";
|
|
6
|
-
export * from "./entities/users/index";
|
|
7
|
-
export * from "./entities/world/index";
|
|
8
5
|
export * from "./entities/cashs/index";
|
|
9
|
-
export * from "./entities/
|
|
6
|
+
export * from "./entities/comptas/index";
|
|
10
7
|
export * from "./entities/docs/index";
|
|
11
8
|
export * from "./entities/mails/index";
|
|
12
9
|
export * from "./entities/products/index";
|
|
10
|
+
export * from "./entities/sales/index";
|
|
11
|
+
export * from "./entities/users/index";
|
|
13
12
|
export * from "./entities/utilities/index";
|
|
13
|
+
export * from "./entities/world/index";
|
|
14
14
|
export { colNa, colNaCo, colNaCoSh };
|
|
@@ -53,7 +53,7 @@ export declare type HeaderTableColumnType = {
|
|
|
53
53
|
export declare const colNa: HeaderTableColumnType[];
|
|
54
54
|
export declare const colNaCo: HeaderTableColumnType[];
|
|
55
55
|
export declare const colNaCoSh: HeaderTableColumnType[];
|
|
56
|
-
export declare type
|
|
56
|
+
export declare type FormPropsType = {
|
|
57
57
|
onSubmitForm?: (value: any) => any;
|
|
58
58
|
onCancelForm?: (value: any) => any;
|
|
59
59
|
tob?: any;
|
package/lib/esm/npms/yup.js
CHANGED
|
@@ -42,8 +42,8 @@ export const yupValideUniqEmail = (url, tob, isRequired = true) => {
|
|
|
42
42
|
if (isRequired) {
|
|
43
43
|
return yup
|
|
44
44
|
.string()
|
|
45
|
-
.email("this value must be a valid email")
|
|
46
45
|
.required("this value is required")
|
|
46
|
+
.email("this value must be a valid email")
|
|
47
47
|
.test("Check_name", "This name is already taken", (value) => {
|
|
48
48
|
return new Promise((resolve) => __awaiter(void 0, void 0, void 0, function* () {
|
|
49
49
|
const { data: res } = yield axios.post(url, { id: tob === null || tob === void 0 ? void 0 : tob.id, name: value });
|
|
@@ -52,7 +52,7 @@ export const yupValideUniqEmail = (url, tob, isRequired = true) => {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
return yup.string().when((val) => {
|
|
55
|
-
if (val) {
|
|
55
|
+
if (val !== "") {
|
|
56
56
|
return yup
|
|
57
57
|
.string()
|
|
58
58
|
.email()
|
|
@@ -100,9 +100,10 @@ export const yupValideUniqCode = (url, max = 4, tob) => {
|
|
|
100
100
|
export const yupValidateNoRequiredNumber = () => {
|
|
101
101
|
return yup
|
|
102
102
|
.string()
|
|
103
|
+
.nullable()
|
|
103
104
|
.when((val) => {
|
|
104
105
|
if (val) {
|
|
105
|
-
return yup.number();
|
|
106
|
+
return yup.number().nullable();
|
|
106
107
|
}
|
|
107
108
|
})
|
|
108
109
|
.typeError("must be number");
|