@win2win/shared 1.0.113 → 1.0.115
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/README.md
ADDED
|
@@ -79,6 +79,15 @@ exports.GamaPropValidatorsMap = {
|
|
|
79
79
|
message: "La URL no es válida",
|
|
80
80
|
label: "URL",
|
|
81
81
|
},
|
|
82
|
+
iban: {
|
|
83
|
+
fn: () => (control) => {
|
|
84
|
+
if (!control.value)
|
|
85
|
+
return true;
|
|
86
|
+
return iban.isValid(String(control.value) || "");
|
|
87
|
+
},
|
|
88
|
+
message: "El IBAN no es válido",
|
|
89
|
+
label: "Cuenta Bancaria (IBAN)",
|
|
90
|
+
},
|
|
82
91
|
dni: {
|
|
83
92
|
fn: () => (control) => {
|
|
84
93
|
if (!control.value)
|
|
@@ -86,17 +95,22 @@ exports.GamaPropValidatorsMap = {
|
|
|
86
95
|
return (0, better_dni_1.isValid)(String(control.value) || "");
|
|
87
96
|
},
|
|
88
97
|
message: "El dni no es válido",
|
|
89
|
-
label: "Identificación (DNI, NIF, NIE)",
|
|
98
|
+
label: "Identificación España (DNI, NIF, NIE)",
|
|
90
99
|
},
|
|
91
|
-
|
|
100
|
+
ine: {
|
|
92
101
|
fn: () => (control) => {
|
|
93
|
-
|
|
94
|
-
return true;
|
|
95
|
-
return iban.isValid(String(control.value) || "");
|
|
102
|
+
return true;
|
|
96
103
|
},
|
|
97
|
-
message: "El
|
|
98
|
-
label: "
|
|
104
|
+
message: "El INE no es válido",
|
|
105
|
+
label: "Identificación México (INE, RFC)",
|
|
99
106
|
},
|
|
107
|
+
// rfc: {
|
|
108
|
+
// fn: () => (control: GamaPropModel) => {
|
|
109
|
+
// return true
|
|
110
|
+
// },
|
|
111
|
+
// message: "El RFC no es válido",
|
|
112
|
+
// label: "Identificador (RFC)",
|
|
113
|
+
// },
|
|
100
114
|
};
|
|
101
115
|
var PropValidatorKeys;
|
|
102
116
|
(function (PropValidatorKeys) {
|
|
@@ -106,7 +120,11 @@ var PropValidatorKeys;
|
|
|
106
120
|
PropValidatorKeys["SOLO_NUMEROS"] = "onlyNumbers";
|
|
107
121
|
PropValidatorKeys["EMAIL"] = "email";
|
|
108
122
|
PropValidatorKeys["URL"] = "url";
|
|
123
|
+
// ID España
|
|
109
124
|
PropValidatorKeys["DNI"] = "dni";
|
|
110
125
|
PropValidatorKeys["IBAN"] = "iban";
|
|
126
|
+
// ID México
|
|
127
|
+
PropValidatorKeys["INE"] = "ine";
|
|
128
|
+
// RFC = "rfc",
|
|
111
129
|
})(PropValidatorKeys || (exports.PropValidatorKeys = PropValidatorKeys = {}));
|
|
112
130
|
exports.VALIDATORS = Object.entries(exports.GamaPropValidatorsMap).map(([key, value]) => ({ value: key, ...value }));
|
package/package.json
CHANGED