@nicefer/types 1.0.45 → 1.0.47
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/dist/countries.js +21 -5
- package/dist/types/countries.d.ts +2 -1
- package/dist/types/products.d.ts +4 -4
- package/package.json +1 -1
package/dist/countries.js
CHANGED
|
@@ -13,11 +13,11 @@ exports.Countries = [
|
|
|
13
13
|
name: 'El Salvador',
|
|
14
14
|
code: 503
|
|
15
15
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
{
|
|
17
|
+
id: 'US',
|
|
18
|
+
name: 'Estados Unidos',
|
|
19
|
+
code: 1
|
|
20
|
+
},
|
|
21
21
|
];
|
|
22
22
|
exports.Regions = {
|
|
23
23
|
HN: [
|
|
@@ -157,6 +157,22 @@ exports.Regions = {
|
|
|
157
157
|
{ id: "WV", name: "West Virginia" },
|
|
158
158
|
{ id: "WI", name: "Wisconsin" },
|
|
159
159
|
{ id: "WY", name: "Wyoming" }
|
|
160
|
+
],
|
|
161
|
+
SV: [
|
|
162
|
+
{ id: "AH", name: "Ahuachapán" },
|
|
163
|
+
{ id: "CA", name: "Cabañas" },
|
|
164
|
+
{ id: "CH", name: "Chalatenango" },
|
|
165
|
+
{ id: "CU", name: "Cuscatlán" },
|
|
166
|
+
{ id: "LI", name: "La Libertad" },
|
|
167
|
+
{ id: "PA", name: "La Paz" },
|
|
168
|
+
{ id: "ONU", name: "La Unión" },
|
|
169
|
+
{ id: "MO", name: "Morazán" },
|
|
170
|
+
{ id: "SM", name: "San Miguel" },
|
|
171
|
+
{ id: "SS", name: "San Salvador" },
|
|
172
|
+
{ id: "SV", name: "San Vicente" },
|
|
173
|
+
{ id: "SA", name: "Santa Ana" },
|
|
174
|
+
{ id: "SO", name: "Sonsonate" },
|
|
175
|
+
{ id: "US", name: "Usulutan" }
|
|
160
176
|
]
|
|
161
177
|
};
|
|
162
178
|
function getRegionsByCountryId(id) {
|
|
@@ -17,8 +17,9 @@ export declare const Countries: Country[];
|
|
|
17
17
|
export declare const Regions: {
|
|
18
18
|
HN: Region[];
|
|
19
19
|
US: Region[];
|
|
20
|
+
SV: Region[];
|
|
20
21
|
};
|
|
21
|
-
export declare function getRegionsByCountryId(id: 'HN' | 'US'): Region[] | any[];
|
|
22
|
+
export declare function getRegionsByCountryId(id: 'HN' | 'US' | 'SV'): Region[] | any[];
|
|
22
23
|
/**
|
|
23
24
|
* Usado en el atributo [compareWith] de los mat-select's
|
|
24
25
|
* de los formularios que manejan paises y regiones.
|
package/dist/types/products.d.ts
CHANGED
|
@@ -6,14 +6,14 @@ export interface ProductFirstOptionTypeValue {
|
|
|
6
6
|
value: string;
|
|
7
7
|
codeColor?: string;
|
|
8
8
|
}
|
|
9
|
-
type clothesOptions = 'talla' | 'color';
|
|
10
|
-
type giftsOptions = 'color' | 'tipo de flor';
|
|
11
|
-
type perfumesOptions = 'onzas';
|
|
12
|
-
type electricOptions = 'watts' | 'ah';
|
|
13
9
|
export interface ProductOptionValue {
|
|
14
10
|
value: string;
|
|
15
11
|
code?: string;
|
|
16
12
|
}
|
|
13
|
+
type clothesOptions = 'talla' | 'color';
|
|
14
|
+
type giftsOptions = 'color' | 'tipo de flor';
|
|
15
|
+
type perfumesOptions = 'onzas';
|
|
16
|
+
type electricOptions = 'watts' | 'ah';
|
|
17
17
|
export interface ProductOptionToSelect {
|
|
18
18
|
option: clothesOptions | perfumesOptions | giftsOptions | electricOptions;
|
|
19
19
|
valuesAllowed: ProductOptionValue[];
|