@win2win/shared 1.0.115 → 1.0.117

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.
@@ -32,6 +32,7 @@ export interface TextLine {
32
32
  type: TextLineType;
33
33
  text: string;
34
34
  align?: Align;
35
+ styles?: Record<string, string>;
35
36
  /** Campo que permite que una linea de texto se genere a partir de un valor de tipo Array */
36
37
  sourceCollection?: string;
37
38
  }
@@ -13,7 +13,8 @@ export declare enum PropValidatorKeys {
13
13
  URL = "url",
14
14
  DNI = "dni",
15
15
  IBAN = "iban",
16
- INE = "ine"
16
+ INE = "ine",
17
+ RFC = "rfc"
17
18
  }
18
19
  export declare const VALIDATORS: {
19
20
  fn: (val: number) => (control: GamaPropModel) => boolean;
@@ -102,15 +102,15 @@ exports.GamaPropValidatorsMap = {
102
102
  return true;
103
103
  },
104
104
  message: "El INE no es válido",
105
- label: "Identificación México (INE, RFC)",
105
+ label: "Identificación México (INE)",
106
+ },
107
+ rfc: {
108
+ fn: () => (control) => {
109
+ return true;
110
+ },
111
+ message: "El RFC no es válido",
112
+ label: "Identificador México (RFC)",
106
113
  },
107
- // rfc: {
108
- // fn: () => (control: GamaPropModel) => {
109
- // return true
110
- // },
111
- // message: "El RFC no es válido",
112
- // label: "Identificador (RFC)",
113
- // },
114
114
  };
115
115
  var PropValidatorKeys;
116
116
  (function (PropValidatorKeys) {
@@ -125,6 +125,6 @@ var PropValidatorKeys;
125
125
  PropValidatorKeys["IBAN"] = "iban";
126
126
  // ID México
127
127
  PropValidatorKeys["INE"] = "ine";
128
- // RFC = "rfc",
128
+ PropValidatorKeys["RFC"] = "rfc";
129
129
  })(PropValidatorKeys || (exports.PropValidatorKeys = PropValidatorKeys = {}));
130
130
  exports.VALIDATORS = Object.entries(exports.GamaPropValidatorsMap).map(([key, value]) => ({ value: key, ...value }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.115",
3
+ "version": "1.0.117",
4
4
  "description": "Tipos, interfaces, funciones, constantes, clases y enums compartidos por todos los proyectos de Win2Win",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",