@win2win/shared 1.0.298 → 1.0.301
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.
|
@@ -3,7 +3,8 @@ export declare enum TiposIncidencia {
|
|
|
3
3
|
AUDIO_LLAMADAS = "audio_llamadas",
|
|
4
4
|
DATOS_CONTACTO = "datos_contacto",
|
|
5
5
|
FORMULARIO = "formulario",
|
|
6
|
-
LOCALIZACION = "localizacion"
|
|
6
|
+
LOCALIZACION = "localizacion",
|
|
7
|
+
OTRO = "otro"
|
|
7
8
|
}
|
|
8
9
|
export declare const TIPOS_INCIDENCIA: readonly {
|
|
9
10
|
label: string;
|
package/dist/enums/incidencia.js
CHANGED
|
@@ -8,6 +8,7 @@ var TiposIncidencia;
|
|
|
8
8
|
TiposIncidencia["DATOS_CONTACTO"] = "datos_contacto";
|
|
9
9
|
TiposIncidencia["FORMULARIO"] = "formulario";
|
|
10
10
|
TiposIncidencia["LOCALIZACION"] = "localizacion";
|
|
11
|
+
TiposIncidencia["OTRO"] = "otro";
|
|
11
12
|
})(TiposIncidencia || (exports.TiposIncidencia = TiposIncidencia = {}));
|
|
12
13
|
exports.TIPOS_INCIDENCIA = Object.freeze([
|
|
13
14
|
{ label: "Documentación", value: TiposIncidencia.DOCUMENTACION },
|
|
@@ -48,4 +49,5 @@ exports.DEFAULT_REASONS_INCIDENCIA = Object.freeze({
|
|
|
48
49
|
"Coordenadas erróneas",
|
|
49
50
|
"Otros",
|
|
50
51
|
],
|
|
52
|
+
[TiposIncidencia.OTRO]: ["Otros"],
|
|
51
53
|
});
|
|
@@ -26,6 +26,10 @@ export declare const GAMA_PROP_CONTROL_TYPES: readonly [{
|
|
|
26
26
|
readonly code: "checkbox";
|
|
27
27
|
readonly icon: "o_check_box";
|
|
28
28
|
readonly label: "Checkbox";
|
|
29
|
+
}, {
|
|
30
|
+
readonly code: "checkbox_with_dialog";
|
|
31
|
+
readonly icon: "o_check_box";
|
|
32
|
+
readonly label: "Checkbox con diálogo";
|
|
29
33
|
}, {
|
|
30
34
|
readonly code: "select";
|
|
31
35
|
readonly icon: "list";
|
|
@@ -74,6 +78,7 @@ export declare enum ControlType {
|
|
|
74
78
|
CHECKBOX = "checkbox",
|
|
75
79
|
SELECT = "select",
|
|
76
80
|
CARDS_SELECT = "cards_select",
|
|
81
|
+
CHECKBOX_WITH_DIALOG = "checkbox_with_dialog",
|
|
77
82
|
LOCATION = "location",
|
|
78
83
|
DYNAMIC_ARRAY = "dynamic_array",
|
|
79
84
|
OBJECT = "object",
|
|
@@ -9,6 +9,7 @@ exports.GAMA_PROP_CONTROL_TYPES = [
|
|
|
9
9
|
{ code: "time", icon: "schedule", label: "Hora" },
|
|
10
10
|
{ code: "switch", icon: "toggle_on", label: "Switch" },
|
|
11
11
|
{ code: "checkbox", icon: "o_check_box", label: "Checkbox" },
|
|
12
|
+
{ code: "checkbox_with_dialog", icon: "o_check_box", label: "Checkbox con diálogo" },
|
|
12
13
|
{ code: "select", icon: "list", label: "Selector simple" },
|
|
13
14
|
{ code: "cards_select", icon: "grid_view", label: "Selector de tarjetas" },
|
|
14
15
|
{ code: "location", icon: "o_location_on", label: "Ubicación" },
|
|
@@ -30,6 +31,7 @@ var ControlType;
|
|
|
30
31
|
ControlType["CHECKBOX"] = "checkbox";
|
|
31
32
|
ControlType["SELECT"] = "select";
|
|
32
33
|
ControlType["CARDS_SELECT"] = "cards_select";
|
|
34
|
+
ControlType["CHECKBOX_WITH_DIALOG"] = "checkbox_with_dialog";
|
|
33
35
|
ControlType["LOCATION"] = "location";
|
|
34
36
|
ControlType["DYNAMIC_ARRAY"] = "dynamic_array";
|
|
35
37
|
ControlType["OBJECT"] = "object";
|
|
@@ -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) {
|
package/package.json
CHANGED