@win2win/shared 1.0.133 → 1.0.135
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/interfaces/index.d.ts +8 -8
- package/dist/interfaces/index.js +1 -1
- package/dist/interfaces/landings/index.d.ts +1 -0
- package/dist/interfaces/{screen_home → landings}/index.js +1 -13
- package/dist/interfaces/landings/page_sections.d.ts +227 -0
- package/dist/interfaces/landings/page_sections.js +202 -0
- package/dist/interfaces/shared/shared-types.d.ts +3 -0
- package/package.json +1 -1
- package/dist/interfaces/screen_home/aws-config.d.ts +0 -5
- package/dist/interfaces/screen_home/aws-config.js +0 -2
- package/dist/interfaces/screen_home/config-home.d.ts +0 -15
- package/dist/interfaces/screen_home/config-home.js +0 -2
- package/dist/interfaces/screen_home/datasource-option.d.ts +0 -12
- package/dist/interfaces/screen_home/datasource-option.js +0 -2
- package/dist/interfaces/screen_home/footer-config.d.ts +0 -7
- package/dist/interfaces/screen_home/footer-config.js +0 -2
- package/dist/interfaces/screen_home/footer-variant-config.d.ts +0 -8
- package/dist/interfaces/screen_home/footer-variant-config.js +0 -2
- package/dist/interfaces/screen_home/google-config.d.ts +0 -3
- package/dist/interfaces/screen_home/google-config.js +0 -2
- package/dist/interfaces/screen_home/index.d.ts +0 -13
- package/dist/interfaces/screen_home/layout-home-config.d.ts +0 -4
- package/dist/interfaces/screen_home/layout-home-config.js +0 -2
- package/dist/interfaces/screen_home/layouts-config.d.ts +0 -14
- package/dist/interfaces/screen_home/layouts-config.js +0 -2
- package/dist/interfaces/screen_home/logo-config.d.ts +0 -3
- package/dist/interfaces/screen_home/logo-config.js +0 -2
- package/dist/interfaces/screen_home/mobile-config.d.ts +0 -3
- package/dist/interfaces/screen_home/mobile-config.js +0 -2
- package/dist/interfaces/screen_home/role-config.d.ts +0 -10
- package/dist/interfaces/screen_home/role-config.js +0 -2
- package/dist/interfaces/screen_home/sca-config.d.ts +0 -10
- package/dist/interfaces/screen_home/sca-config.js +0 -2
- package/dist/interfaces/screen_home/toolbar-config.d.ts +0 -8
- package/dist/interfaces/screen_home/toolbar-config.js +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
1
|
+
export * from "./escaparates";
|
|
2
|
+
export * from "./estados";
|
|
3
|
+
export * from "./importaciones";
|
|
4
|
+
export * from "./landings";
|
|
5
|
+
export * from "./layout_documentos";
|
|
6
|
+
export * from "./liquidaciones";
|
|
7
|
+
export * from "./props";
|
|
8
|
+
export * from "./shared";
|
package/dist/interfaces/index.js
CHANGED
|
@@ -17,8 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./escaparates"), exports);
|
|
18
18
|
__exportStar(require("./estados"), exports);
|
|
19
19
|
__exportStar(require("./importaciones"), exports);
|
|
20
|
+
__exportStar(require("./landings"), exports);
|
|
20
21
|
__exportStar(require("./layout_documentos"), exports);
|
|
21
22
|
__exportStar(require("./liquidaciones"), exports);
|
|
22
23
|
__exportStar(require("./props"), exports);
|
|
23
|
-
__exportStar(require("./screen_home"), exports);
|
|
24
24
|
__exportStar(require("./shared"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./page_sections";
|
|
@@ -14,16 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./config-home"), exports);
|
|
19
|
-
__exportStar(require("./datasource-option"), exports);
|
|
20
|
-
__exportStar(require("./footer-config"), exports);
|
|
21
|
-
__exportStar(require("./footer-variant-config"), exports);
|
|
22
|
-
__exportStar(require("./google-config"), exports);
|
|
23
|
-
__exportStar(require("./layout-home-config"), exports);
|
|
24
|
-
__exportStar(require("./layouts-config"), exports);
|
|
25
|
-
__exportStar(require("./logo-config"), exports);
|
|
26
|
-
__exportStar(require("./mobile-config"), exports);
|
|
27
|
-
__exportStar(require("./role-config"), exports);
|
|
28
|
-
__exportStar(require("./sca-config"), exports);
|
|
29
|
-
__exportStar(require("./toolbar-config"), exports);
|
|
17
|
+
__exportStar(require("./page_sections"), exports);
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { Prettify } from "../shared/shared-types";
|
|
2
|
+
export declare const TEMPLATES: Readonly<{
|
|
3
|
+
readonly "single-feature": {
|
|
4
|
+
readonly label: "Funcionalidad";
|
|
5
|
+
readonly params: readonly ["title", "text", "image", "button", "direction", "background"];
|
|
6
|
+
readonly variants: readonly ["default", "colored"];
|
|
7
|
+
};
|
|
8
|
+
readonly "feature-highlights": {
|
|
9
|
+
readonly label: "Caracteristicas destacadas";
|
|
10
|
+
readonly params: readonly ["items", "image", "background", "direction"];
|
|
11
|
+
};
|
|
12
|
+
readonly "telephone-contracting": {
|
|
13
|
+
readonly label: "Contratación de telefonía";
|
|
14
|
+
readonly params: readonly [];
|
|
15
|
+
};
|
|
16
|
+
readonly features: {
|
|
17
|
+
readonly label: "Tarjetas de funcionalidades";
|
|
18
|
+
readonly params: readonly ["title", "text", "button", "items"];
|
|
19
|
+
};
|
|
20
|
+
readonly "features-presentation": {
|
|
21
|
+
readonly label: "Presentación de funcionalidades";
|
|
22
|
+
readonly params: readonly ["title", "subtitle", "text", "background", "items", "image", "button"];
|
|
23
|
+
readonly variants: readonly ["default", "images", "hero", "parallel-images", "texts", "simple", "highlight-image", "secondary-highlight-image"];
|
|
24
|
+
};
|
|
25
|
+
readonly "product-hero-searcher": {
|
|
26
|
+
readonly label: "Buscador de productos hero";
|
|
27
|
+
readonly params: readonly ["title", "subtitle", "text", "background", "image", "items"];
|
|
28
|
+
};
|
|
29
|
+
readonly "product-package-picker": {
|
|
30
|
+
readonly label: "Selector de paquetes de productos";
|
|
31
|
+
readonly params: readonly ["title", "subtitle", "text", "background", "image", "items", "filters"];
|
|
32
|
+
};
|
|
33
|
+
readonly "perdm-contracting": {
|
|
34
|
+
readonly label: "Perdm contratar telefonía";
|
|
35
|
+
readonly params: readonly ["title"];
|
|
36
|
+
};
|
|
37
|
+
readonly "screen-products": {
|
|
38
|
+
readonly label: "Linvermedia productos de pantallas";
|
|
39
|
+
readonly params: readonly ["title"];
|
|
40
|
+
};
|
|
41
|
+
readonly "triple-text": {
|
|
42
|
+
readonly label: "Texto triple";
|
|
43
|
+
readonly params: readonly ["title", "subtitle", "text", "background", "image"];
|
|
44
|
+
};
|
|
45
|
+
readonly banner: {
|
|
46
|
+
readonly label: "Banner";
|
|
47
|
+
readonly params: readonly ["title", "text", "background", "image", "height"];
|
|
48
|
+
readonly variants: readonly ["default", "image", "colored"];
|
|
49
|
+
};
|
|
50
|
+
readonly hero: {
|
|
51
|
+
readonly label: "Hero";
|
|
52
|
+
readonly params: readonly ["text", "title", "background", "items", "image"];
|
|
53
|
+
readonly variants: readonly ["default", "dense"];
|
|
54
|
+
};
|
|
55
|
+
readonly image: {
|
|
56
|
+
readonly label: "Imagen";
|
|
57
|
+
readonly params: readonly ["background", "image"];
|
|
58
|
+
};
|
|
59
|
+
readonly text: {
|
|
60
|
+
readonly label: "Textos";
|
|
61
|
+
readonly params: readonly ["background", "items", "text", "title"];
|
|
62
|
+
};
|
|
63
|
+
readonly product: {
|
|
64
|
+
readonly label: "Producto";
|
|
65
|
+
readonly params: readonly ["title", "subtitle", "background", "button", "items_props", "filters", "sorting", "limit"];
|
|
66
|
+
readonly variants: readonly ["default", "hero-grid", "hero-one"];
|
|
67
|
+
};
|
|
68
|
+
readonly container: {
|
|
69
|
+
readonly label: "Contenedor";
|
|
70
|
+
readonly params: readonly ["background", "children"];
|
|
71
|
+
};
|
|
72
|
+
readonly footer: {
|
|
73
|
+
readonly label: "Footer";
|
|
74
|
+
readonly params: readonly ["background", "subtitle", "text", "image"];
|
|
75
|
+
};
|
|
76
|
+
readonly "product-carousel": {
|
|
77
|
+
readonly label: "Carrusel de imágenes";
|
|
78
|
+
readonly params: readonly ["title", "items_props"];
|
|
79
|
+
};
|
|
80
|
+
readonly "product-simple-info": {
|
|
81
|
+
readonly label: "Atributos simples";
|
|
82
|
+
readonly params: readonly ["title", "items_props"];
|
|
83
|
+
};
|
|
84
|
+
readonly "product-card-info": {
|
|
85
|
+
readonly label: "Tarjetas de atributos";
|
|
86
|
+
readonly params: readonly ["title", "items_props"];
|
|
87
|
+
};
|
|
88
|
+
readonly "product-location": {
|
|
89
|
+
readonly label: "Localización";
|
|
90
|
+
readonly params: readonly ["title", "params"];
|
|
91
|
+
};
|
|
92
|
+
readonly "product-description": {
|
|
93
|
+
readonly label: "Descripción del producto";
|
|
94
|
+
readonly params: readonly ["title"];
|
|
95
|
+
};
|
|
96
|
+
readonly "simple-button": {
|
|
97
|
+
readonly label: "Texto con botón";
|
|
98
|
+
readonly params: readonly ["title", "text", "subtitle", "items", "background", "image", "button"];
|
|
99
|
+
readonly variants: readonly ["default", "centered"];
|
|
100
|
+
};
|
|
101
|
+
readonly "selectable-cards": {
|
|
102
|
+
readonly label: "Tarjetas seleccionables";
|
|
103
|
+
readonly params: readonly ["title", "text", "items"];
|
|
104
|
+
readonly variants: readonly ["default", "product"];
|
|
105
|
+
};
|
|
106
|
+
readonly "steps-cards": {
|
|
107
|
+
readonly label: "Tarjetas de pasos";
|
|
108
|
+
readonly params: readonly ["title", "text", "items", "image"];
|
|
109
|
+
};
|
|
110
|
+
readonly "ecommerce-finder": {
|
|
111
|
+
readonly label: "Buscador de productos";
|
|
112
|
+
readonly params: readonly ["custom"];
|
|
113
|
+
};
|
|
114
|
+
readonly "ecommerce-catalog": {
|
|
115
|
+
readonly label: "Catálogo de productos";
|
|
116
|
+
readonly params: readonly ["title", "text", "background", "custom"];
|
|
117
|
+
};
|
|
118
|
+
readonly "ecommerce-banner": {
|
|
119
|
+
readonly label: "Banner para Ecommerce";
|
|
120
|
+
readonly params: readonly ["title", "text", "background", "image", "height", "custom"];
|
|
121
|
+
};
|
|
122
|
+
readonly "ecommerce-filters": {
|
|
123
|
+
readonly label: "Filtros para Ecommerce";
|
|
124
|
+
readonly params: readonly ["custom"];
|
|
125
|
+
};
|
|
126
|
+
readonly "ecommerce-categories": {
|
|
127
|
+
readonly label: "Botones de categorías";
|
|
128
|
+
readonly params: readonly ["items", "custom"];
|
|
129
|
+
};
|
|
130
|
+
readonly "shopcart-products": {
|
|
131
|
+
readonly label: "Checkout de shopcart";
|
|
132
|
+
readonly params: readonly ["custom"];
|
|
133
|
+
};
|
|
134
|
+
readonly "ecommerce-checkout": {
|
|
135
|
+
readonly label: "Checkout de Ecommerce";
|
|
136
|
+
};
|
|
137
|
+
}>;
|
|
138
|
+
export type Template = keyof typeof TEMPLATES;
|
|
139
|
+
export type TemplateConfig = Prettify<(typeof TEMPLATES)[Template]>;
|
|
140
|
+
export declare const PRODUCT_TEMPLATES_LABELS: Template[];
|
|
141
|
+
export declare const ECOMMERCE_TEMPLATES_LABELS: Template[];
|
|
142
|
+
export declare const CHECKOUT_TEMPLATES_LABELS: Template[];
|
|
143
|
+
export declare const ITEMS_DIRECTIONS: string[];
|
|
144
|
+
export interface ItemPropParams {
|
|
145
|
+
file?: File | null;
|
|
146
|
+
path: string[];
|
|
147
|
+
format: string;
|
|
148
|
+
label: string;
|
|
149
|
+
image: string;
|
|
150
|
+
}
|
|
151
|
+
export interface SectionImage {
|
|
152
|
+
file?: File;
|
|
153
|
+
src: string;
|
|
154
|
+
width: number;
|
|
155
|
+
height: number;
|
|
156
|
+
}
|
|
157
|
+
export interface ItemPropParams {
|
|
158
|
+
file?: File | null;
|
|
159
|
+
path: string[];
|
|
160
|
+
format: string;
|
|
161
|
+
label: string;
|
|
162
|
+
image: string;
|
|
163
|
+
}
|
|
164
|
+
export interface SectionImage {
|
|
165
|
+
file?: File;
|
|
166
|
+
src: string;
|
|
167
|
+
width: number;
|
|
168
|
+
height: number;
|
|
169
|
+
}
|
|
170
|
+
export interface SectionItem {
|
|
171
|
+
title: string;
|
|
172
|
+
description: string;
|
|
173
|
+
icon: string | null;
|
|
174
|
+
link: string | null;
|
|
175
|
+
image: {
|
|
176
|
+
src: string;
|
|
177
|
+
file?: File;
|
|
178
|
+
} | null;
|
|
179
|
+
image2?: {
|
|
180
|
+
src: string;
|
|
181
|
+
file?: File;
|
|
182
|
+
} | null;
|
|
183
|
+
}
|
|
184
|
+
export interface CustomConditions {
|
|
185
|
+
property: string;
|
|
186
|
+
value: string;
|
|
187
|
+
method: "in" | "not_in" | "=" | "!=" | ">" | "<" | "null";
|
|
188
|
+
}
|
|
189
|
+
export interface FilterParams {
|
|
190
|
+
tags?: string[];
|
|
191
|
+
gamas?: number[];
|
|
192
|
+
ids?: number[];
|
|
193
|
+
proveedores?: string[];
|
|
194
|
+
}
|
|
195
|
+
export interface SortingParams {
|
|
196
|
+
by: string | null;
|
|
197
|
+
order: "ASC" | "DESC";
|
|
198
|
+
}
|
|
199
|
+
export interface SectionParams {
|
|
200
|
+
title?: string;
|
|
201
|
+
subtitle?: string;
|
|
202
|
+
text?: string;
|
|
203
|
+
background?: string;
|
|
204
|
+
image?: SectionImage | null;
|
|
205
|
+
items?: SectionItem[];
|
|
206
|
+
classes?: string;
|
|
207
|
+
variant?: string;
|
|
208
|
+
direction?: "normal" | "invertido";
|
|
209
|
+
button?: {
|
|
210
|
+
text: string;
|
|
211
|
+
link: string;
|
|
212
|
+
} | null;
|
|
213
|
+
height?: string;
|
|
214
|
+
children?: number[];
|
|
215
|
+
parent?: number | null;
|
|
216
|
+
conditions?: CustomConditions[];
|
|
217
|
+
id_gama?: number | null;
|
|
218
|
+
items_props?: ItemPropParams[][] | null;
|
|
219
|
+
filters?: FilterParams;
|
|
220
|
+
sorting?: SortingParams[];
|
|
221
|
+
limit?: number;
|
|
222
|
+
styles?: string | Record<string, string>;
|
|
223
|
+
params?: Record<string, any>;
|
|
224
|
+
custom?: Record<string, any>;
|
|
225
|
+
}
|
|
226
|
+
export type SectionParam = keyof Partial<SectionParams>;
|
|
227
|
+
export type SectionParamValue = SectionParams[SectionParam];
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ITEMS_DIRECTIONS = exports.CHECKOUT_TEMPLATES_LABELS = exports.ECOMMERCE_TEMPLATES_LABELS = exports.PRODUCT_TEMPLATES_LABELS = exports.TEMPLATES = void 0;
|
|
4
|
+
exports.TEMPLATES = Object.freeze({
|
|
5
|
+
"single-feature": {
|
|
6
|
+
label: "Funcionalidad",
|
|
7
|
+
params: ["title", "text", "image", "button", "direction", "background"],
|
|
8
|
+
variants: ["default", "colored"],
|
|
9
|
+
},
|
|
10
|
+
"feature-highlights": {
|
|
11
|
+
label: "Caracteristicas destacadas",
|
|
12
|
+
params: ["items", "image", "background", "direction"],
|
|
13
|
+
},
|
|
14
|
+
"telephone-contracting": {
|
|
15
|
+
label: "Contratación de telefonía",
|
|
16
|
+
params: [],
|
|
17
|
+
},
|
|
18
|
+
features: {
|
|
19
|
+
label: "Tarjetas de funcionalidades",
|
|
20
|
+
params: ["title", "text", "button", "items"],
|
|
21
|
+
},
|
|
22
|
+
"features-presentation": {
|
|
23
|
+
label: "Presentación de funcionalidades",
|
|
24
|
+
params: [
|
|
25
|
+
"title",
|
|
26
|
+
"subtitle",
|
|
27
|
+
"text",
|
|
28
|
+
"background",
|
|
29
|
+
"items",
|
|
30
|
+
"image",
|
|
31
|
+
"button",
|
|
32
|
+
],
|
|
33
|
+
variants: [
|
|
34
|
+
"default",
|
|
35
|
+
"images",
|
|
36
|
+
"hero",
|
|
37
|
+
"parallel-images",
|
|
38
|
+
"texts",
|
|
39
|
+
"simple",
|
|
40
|
+
"highlight-image",
|
|
41
|
+
"secondary-highlight-image",
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
"product-hero-searcher": {
|
|
45
|
+
label: "Buscador de productos hero",
|
|
46
|
+
params: ["title", "subtitle", "text", "background", "image", "items"],
|
|
47
|
+
},
|
|
48
|
+
"product-package-picker": {
|
|
49
|
+
label: "Selector de paquetes de productos",
|
|
50
|
+
params: [
|
|
51
|
+
"title",
|
|
52
|
+
"subtitle",
|
|
53
|
+
"text",
|
|
54
|
+
"background",
|
|
55
|
+
"image",
|
|
56
|
+
"items",
|
|
57
|
+
"filters",
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
"perdm-contracting": {
|
|
61
|
+
label: "Perdm contratar telefonía",
|
|
62
|
+
params: ["title"],
|
|
63
|
+
},
|
|
64
|
+
"screen-products": {
|
|
65
|
+
label: "Linvermedia productos de pantallas",
|
|
66
|
+
params: ["title"],
|
|
67
|
+
},
|
|
68
|
+
"triple-text": {
|
|
69
|
+
label: "Texto triple",
|
|
70
|
+
params: ["title", "subtitle", "text", "background", "image"],
|
|
71
|
+
},
|
|
72
|
+
banner: {
|
|
73
|
+
label: "Banner",
|
|
74
|
+
params: ["title", "text", "background", "image", "height"],
|
|
75
|
+
variants: ["default", "image", "colored"],
|
|
76
|
+
},
|
|
77
|
+
hero: {
|
|
78
|
+
label: "Hero",
|
|
79
|
+
params: ["text", "title", "background", "items", "image"],
|
|
80
|
+
variants: ["default", "dense"],
|
|
81
|
+
},
|
|
82
|
+
image: {
|
|
83
|
+
label: "Imagen",
|
|
84
|
+
params: ["background", "image"],
|
|
85
|
+
},
|
|
86
|
+
text: {
|
|
87
|
+
label: "Textos",
|
|
88
|
+
params: ["background", "items", "text", "title"],
|
|
89
|
+
},
|
|
90
|
+
product: {
|
|
91
|
+
label: "Producto",
|
|
92
|
+
params: [
|
|
93
|
+
"title",
|
|
94
|
+
"subtitle",
|
|
95
|
+
"background",
|
|
96
|
+
"button",
|
|
97
|
+
"items_props",
|
|
98
|
+
"filters",
|
|
99
|
+
"sorting",
|
|
100
|
+
"limit",
|
|
101
|
+
],
|
|
102
|
+
variants: ["default", "hero-grid", "hero-one"],
|
|
103
|
+
},
|
|
104
|
+
container: {
|
|
105
|
+
label: "Contenedor",
|
|
106
|
+
params: ["background", "children"],
|
|
107
|
+
},
|
|
108
|
+
footer: {
|
|
109
|
+
label: "Footer",
|
|
110
|
+
params: ["background", "subtitle", "text", "image"],
|
|
111
|
+
},
|
|
112
|
+
"product-carousel": {
|
|
113
|
+
label: "Carrusel de imágenes",
|
|
114
|
+
params: ["title", "items_props"],
|
|
115
|
+
},
|
|
116
|
+
"product-simple-info": {
|
|
117
|
+
label: "Atributos simples",
|
|
118
|
+
params: ["title", "items_props"],
|
|
119
|
+
},
|
|
120
|
+
"product-card-info": {
|
|
121
|
+
label: "Tarjetas de atributos",
|
|
122
|
+
params: ["title", "items_props"],
|
|
123
|
+
},
|
|
124
|
+
"product-location": {
|
|
125
|
+
label: "Localización",
|
|
126
|
+
params: ["title", "params"],
|
|
127
|
+
},
|
|
128
|
+
"product-description": {
|
|
129
|
+
label: "Descripción del producto",
|
|
130
|
+
params: ["title"],
|
|
131
|
+
},
|
|
132
|
+
"simple-button": {
|
|
133
|
+
label: "Texto con botón",
|
|
134
|
+
params: [
|
|
135
|
+
"title",
|
|
136
|
+
"text",
|
|
137
|
+
"subtitle",
|
|
138
|
+
"items",
|
|
139
|
+
"background",
|
|
140
|
+
"image",
|
|
141
|
+
"button",
|
|
142
|
+
],
|
|
143
|
+
variants: ["default", "centered"],
|
|
144
|
+
},
|
|
145
|
+
"selectable-cards": {
|
|
146
|
+
label: "Tarjetas seleccionables",
|
|
147
|
+
params: ["title", "text", "items"],
|
|
148
|
+
variants: ["default", "product"],
|
|
149
|
+
},
|
|
150
|
+
"steps-cards": {
|
|
151
|
+
label: "Tarjetas de pasos",
|
|
152
|
+
params: ["title", "text", "items", "image"],
|
|
153
|
+
},
|
|
154
|
+
"ecommerce-finder": {
|
|
155
|
+
label: "Buscador de productos",
|
|
156
|
+
params: ["custom"],
|
|
157
|
+
},
|
|
158
|
+
"ecommerce-catalog": {
|
|
159
|
+
label: "Catálogo de productos",
|
|
160
|
+
params: ["title", "text", "background", "custom"],
|
|
161
|
+
},
|
|
162
|
+
"ecommerce-banner": {
|
|
163
|
+
label: "Banner para Ecommerce",
|
|
164
|
+
params: ["title", "text", "background", "image", "height", "custom"],
|
|
165
|
+
},
|
|
166
|
+
"ecommerce-filters": {
|
|
167
|
+
label: "Filtros para Ecommerce",
|
|
168
|
+
params: ["custom"],
|
|
169
|
+
},
|
|
170
|
+
"ecommerce-categories": {
|
|
171
|
+
label: "Botones de categorías",
|
|
172
|
+
params: ["items", "custom"],
|
|
173
|
+
},
|
|
174
|
+
"shopcart-products": {
|
|
175
|
+
label: "Checkout de shopcart",
|
|
176
|
+
params: ["custom"],
|
|
177
|
+
},
|
|
178
|
+
"ecommerce-checkout": {
|
|
179
|
+
label: "Checkout de Ecommerce",
|
|
180
|
+
},
|
|
181
|
+
});
|
|
182
|
+
exports.PRODUCT_TEMPLATES_LABELS = [
|
|
183
|
+
"product-carousel",
|
|
184
|
+
"product-card-info",
|
|
185
|
+
"product-simple-info",
|
|
186
|
+
"product-location",
|
|
187
|
+
"product-description",
|
|
188
|
+
];
|
|
189
|
+
Object.freeze(exports.PRODUCT_TEMPLATES_LABELS);
|
|
190
|
+
exports.ECOMMERCE_TEMPLATES_LABELS = [
|
|
191
|
+
"ecommerce-finder",
|
|
192
|
+
"ecommerce-catalog",
|
|
193
|
+
"ecommerce-banner",
|
|
194
|
+
"ecommerce-filters",
|
|
195
|
+
"ecommerce-checkout",
|
|
196
|
+
"ecommerce-categories",
|
|
197
|
+
];
|
|
198
|
+
Object.freeze(exports.ECOMMERCE_TEMPLATES_LABELS);
|
|
199
|
+
exports.CHECKOUT_TEMPLATES_LABELS = ["shopcart-products"];
|
|
200
|
+
Object.freeze(exports.CHECKOUT_TEMPLATES_LABELS);
|
|
201
|
+
exports.ITEMS_DIRECTIONS = ["normal", "invertido"];
|
|
202
|
+
Object.freeze(exports.ITEMS_DIRECTIONS);
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AwsConfig } from "./aws-config";
|
|
2
|
-
import { DataSourceOptions } from "./datasource-option";
|
|
3
|
-
import { GoogleConfig } from "./google-config";
|
|
4
|
-
import { ScaConfig } from "./sca-config";
|
|
5
|
-
export interface ConfigHome {
|
|
6
|
-
PUBLIC_PATH?: string;
|
|
7
|
-
URL_PUBLIC_ADMINERP?: string;
|
|
8
|
-
URL_PUBLIC_LANDING?: string;
|
|
9
|
-
FREE_CURRENCY_API_KEY?: string;
|
|
10
|
-
dataSourceOptions?: DataSourceOptions;
|
|
11
|
-
aws?: AwsConfig;
|
|
12
|
-
google?: GoogleConfig;
|
|
13
|
-
idioma?: Record<string, any>;
|
|
14
|
-
sca?: ScaConfig;
|
|
15
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface DataSourceOptions {
|
|
2
|
-
type?: string;
|
|
3
|
-
host?: string;
|
|
4
|
-
username?: string;
|
|
5
|
-
password?: string;
|
|
6
|
-
synchronize?: boolean;
|
|
7
|
-
logging?: boolean;
|
|
8
|
-
entities?: string[];
|
|
9
|
-
migrations?: string[];
|
|
10
|
-
migrationsTableName?: string;
|
|
11
|
-
database?: string;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './aws-config';
|
|
2
|
-
export * from './config-home';
|
|
3
|
-
export * from './datasource-option';
|
|
4
|
-
export * from './footer-config';
|
|
5
|
-
export * from './footer-variant-config';
|
|
6
|
-
export * from './google-config';
|
|
7
|
-
export * from './layout-home-config';
|
|
8
|
-
export * from './layouts-config';
|
|
9
|
-
export * from './logo-config';
|
|
10
|
-
export * from './mobile-config';
|
|
11
|
-
export * from './role-config';
|
|
12
|
-
export * from './sca-config';
|
|
13
|
-
export * from './toolbar-config';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FooterConfig } from "./footer-config";
|
|
2
|
-
import { LayoutHomeConfig } from "./layout-home-config";
|
|
3
|
-
import { RoleConfig } from "./role-config";
|
|
4
|
-
import { ToolbarConfig } from "./toolbar-config";
|
|
5
|
-
export interface LayoutsConfig {
|
|
6
|
-
home?: Record<string, LayoutHomeConfig>;
|
|
7
|
-
menu?: {
|
|
8
|
-
ca?: number[];
|
|
9
|
-
menu_header?: RoleConfig[];
|
|
10
|
-
menu_footer?: RoleConfig[];
|
|
11
|
-
}[];
|
|
12
|
-
toolbar?: ToolbarConfig;
|
|
13
|
-
footer?: FooterConfig;
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LayoutsConfig } from "./layouts-config";
|
|
2
|
-
export interface ScaConfig {
|
|
3
|
-
soy_banco?: boolean;
|
|
4
|
-
cliente?: string;
|
|
5
|
-
bloqueados?: Record<string, any>;
|
|
6
|
-
habilitados?: Record<string, any>;
|
|
7
|
-
roles?: Record<string, string>;
|
|
8
|
-
roles_bloqueados?: Record<string, any>;
|
|
9
|
-
layouts?: LayoutsConfig;
|
|
10
|
-
}
|