@win2win/shared 1.0.300 → 1.0.302
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.
|
@@ -15,7 +15,9 @@ export declare enum PropValidatorKeys {
|
|
|
15
15
|
IBAN = "iban",
|
|
16
16
|
INE = "ine",
|
|
17
17
|
RFC = "rfc",
|
|
18
|
-
CURP = "curp"
|
|
18
|
+
CURP = "curp",
|
|
19
|
+
MINIMO_EDAD = "minAge",
|
|
20
|
+
MAXIMO_EDAD = "maxAge"
|
|
19
21
|
}
|
|
20
22
|
export declare const VALIDATORS: {
|
|
21
23
|
fn: (val: number) => (control: GamaPropModel) => boolean;
|
|
@@ -118,6 +118,20 @@ exports.GamaPropValidatorsMap = {
|
|
|
118
118
|
message: "El RFC no es válido",
|
|
119
119
|
label: "Identificador México (RFC)",
|
|
120
120
|
},
|
|
121
|
+
minAge: {
|
|
122
|
+
fn: () => (control) => {
|
|
123
|
+
return true;
|
|
124
|
+
},
|
|
125
|
+
message: "La edad no es válida",
|
|
126
|
+
label: "Edad mínima",
|
|
127
|
+
},
|
|
128
|
+
maxAge: {
|
|
129
|
+
fn: () => (control) => {
|
|
130
|
+
return true;
|
|
131
|
+
},
|
|
132
|
+
message: "La edad no es válida",
|
|
133
|
+
label: "Edad máxima",
|
|
134
|
+
},
|
|
121
135
|
};
|
|
122
136
|
var PropValidatorKeys;
|
|
123
137
|
(function (PropValidatorKeys) {
|
|
@@ -134,5 +148,8 @@ var PropValidatorKeys;
|
|
|
134
148
|
PropValidatorKeys["INE"] = "ine";
|
|
135
149
|
PropValidatorKeys["RFC"] = "rfc";
|
|
136
150
|
PropValidatorKeys["CURP"] = "curp";
|
|
151
|
+
// Edad
|
|
152
|
+
PropValidatorKeys["MINIMO_EDAD"] = "minAge";
|
|
153
|
+
PropValidatorKeys["MAXIMO_EDAD"] = "maxAge";
|
|
137
154
|
})(PropValidatorKeys || (exports.PropValidatorKeys = PropValidatorKeys = {}));
|
|
138
155
|
exports.VALIDATORS = Object.entries(exports.GamaPropValidatorsMap).map(([key, value]) => ({ value: key, ...value }));
|
package/package.json
CHANGED