ng-easycommerce 0.0.411 → 0.0.414
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/README.md +26 -3
- package/assets/decidirFormEc.html +44 -38
- package/assets/ec-i18n/en.json +4 -2
- package/assets/ec-i18n/es.json +4 -2
- package/assets/images/cards-occasional.png +0 -0
- package/assets/recaptcha/recaptcha-site-keys.json +4 -0
- package/assets/recaptcha/recaptcha-sites-prod.json +36 -0
- package/assets/recaptcha/recaptcha-sites.json +51 -0
- package/bundles/ng-easycommerce.umd.js +290 -74
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/ec-component/index.js +5 -2
- package/esm2015/lib/ec-component/seller-dashboard-container-ec/seller-dashboard-container-ec.component.js +25 -9
- package/esm2015/lib/ec-component/stores-ec/stores-ec.component.js +39 -1
- package/esm2015/lib/ec-component/widgets-ec/decidir-ec/decidir-ec.component.js +1 -1
- package/esm2015/lib/ec-component/widgets-ec/re-captcha-ec/re-captcha-ec.component.js +50 -0
- package/esm2015/lib/guards/able-buyer-guard.service.js +2 -2
- package/esm2015/lib/interfaces/store.js +1 -1
- package/esm2015/lib/ng-easycommerce.module.js +3 -1
- package/esm2015/lib/services/captcha.service.js +111 -0
- package/esm2015/lib/services/cart.service.js +3 -3
- package/esm2015/ng-easycommerce.js +19 -18
- package/esm2015/public-api.js +2 -1
- package/esm5/lib/ec-component/index.js +5 -2
- package/esm5/lib/ec-component/seller-dashboard-container-ec/seller-dashboard-container-ec.component.js +25 -9
- package/esm5/lib/ec-component/stores-ec/stores-ec.component.js +44 -1
- package/esm5/lib/ec-component/widgets-ec/decidir-ec/decidir-ec.component.js +1 -1
- package/esm5/lib/ec-component/widgets-ec/re-captcha-ec/re-captcha-ec.component.js +53 -0
- package/esm5/lib/guards/able-buyer-guard.service.js +2 -2
- package/esm5/lib/interfaces/store.js +1 -1
- package/esm5/lib/ng-easycommerce.module.js +3 -1
- package/esm5/lib/services/captcha.service.js +113 -0
- package/esm5/lib/services/cart.service.js +3 -3
- package/esm5/ng-easycommerce.js +19 -18
- package/esm5/public-api.js +2 -1
- package/fesm2015/ng-easycommerce.js +262 -58
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +273 -59
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/index.d.ts +1 -0
- package/lib/ec-component/seller-dashboard-container-ec/seller-dashboard-container-ec.component.d.ts +7 -0
- package/lib/ec-component/stores-ec/stores-ec.component.d.ts +26 -0
- package/lib/ec-component/widgets-ec/re-captcha-ec/re-captcha-ec.component.d.ts +24 -0
- package/lib/interfaces/store.d.ts +2 -0
- package/lib/services/captcha.service.d.ts +70 -0
- package/ng-easycommerce.d.ts +18 -17
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/README.md
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
#
|
|
1
|
+
# version: 0.0.414
|
|
2
|
+
- Actualización de la interfaz de Seller Dashboard
|
|
3
|
+
|
|
4
|
+
- Actualización de metodo para ordernar tabla de clientes
|
|
5
|
+
|
|
6
|
+
# version: 0.0.413
|
|
7
|
+
|
|
8
|
+
- Actualización de la interfaz de Store y StoreEcComponent para manejar tiendas exclusivas y con retiro local.
|
|
9
|
+
|
|
10
|
+
- Actualización de la vista de Seller, se agrega la columna para pedidos nuevos y se acomodan los estilos.
|
|
11
|
+
|
|
12
|
+
- Atualización de redirección AbleBuyerGuardService.
|
|
13
|
+
|
|
14
|
+
- Actualización de los diccionarios ec-i18n.
|
|
15
|
+
|
|
16
|
+
### version: 0.0.412
|
|
17
|
+
|
|
18
|
+
- Se creo el componente 're-captcha-ec' para poder ampliar el uso del re-captcha
|
|
19
|
+
--Ejemplo de uso:
|
|
20
|
+
<re-captcha-ec [form]="contact_form"></re-captcha-ec>
|
|
21
|
+
form: recibe el formulario que contiene el recaptcha
|
|
22
|
+
(opcional)siteKey: recibe la clave (string) que usa el recaptcha.
|
|
23
|
+
|
|
24
|
+
- Ajustes componentes medio de pago Decidir.
|
|
2
25
|
|
|
3
26
|
### version: 0.0.411
|
|
4
27
|
|
|
@@ -22,7 +45,7 @@
|
|
|
22
45
|
|
|
23
46
|
### version: 0.0.408
|
|
24
47
|
|
|
25
|
-
- Ajuste en componente SellerDashboardContainer (UI y backend redirect)
|
|
48
|
+
- Ajuste en componente SellerDashboardContainer (UI y backend redirect).
|
|
26
49
|
|
|
27
50
|
### version: 0.0.407
|
|
28
51
|
|
|
@@ -122,7 +145,7 @@
|
|
|
122
145
|
--Ejemplo de uso:
|
|
123
146
|
<div app-magnizoom-ec
|
|
124
147
|
zoomMode="COVER"
|
|
125
|
-
[
|
|
148
|
+
[ImageSrc]="consts.mediaUrl() + picture"
|
|
126
149
|
[imageStyle]="{'width': '470px', 'height': '470px'}"
|
|
127
150
|
[imageClass]="'prueba'">
|
|
128
151
|
</div>
|
|
@@ -45,6 +45,11 @@
|
|
|
45
45
|
<body>
|
|
46
46
|
|
|
47
47
|
<style>
|
|
48
|
+
.logo-pago-seguro-img {
|
|
49
|
+
/* width: 150px;
|
|
50
|
+
height: 48px; */
|
|
51
|
+
}
|
|
52
|
+
|
|
48
53
|
.loader {
|
|
49
54
|
border: 16px solid #f3f3f3;
|
|
50
55
|
border-top: 16px solid #dc3545;
|
|
@@ -81,14 +86,18 @@
|
|
|
81
86
|
<div class="row mt-3">
|
|
82
87
|
<div class="col-12">
|
|
83
88
|
<div class="card">
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
89
|
+
|
|
90
|
+
<div class="container-fluid mt-3">
|
|
91
|
+
<div class="row">
|
|
92
|
+
<div class="col-md-6 col-12">
|
|
93
|
+
<!-- <h5><b>Decidir</b></h5> -->
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-md-6 col-12">
|
|
96
|
+
<img src="../assets/images/cards-occasional.png" class="card-img-top" alt="...">
|
|
97
|
+
</div>
|
|
87
98
|
</div>
|
|
88
|
-
</div>
|
|
99
|
+
</div>
|
|
89
100
|
<div class="card-body">
|
|
90
|
-
<!-- <h5 class="card-title">Decidir</h5> -->
|
|
91
|
-
<!-- <p class="card-text">Ingrese sus datos para continuar con el pago.</p> -->
|
|
92
101
|
<form action="" method="post" id="formulario">
|
|
93
102
|
<fieldset>
|
|
94
103
|
|
|
@@ -175,7 +184,8 @@
|
|
|
175
184
|
</div>
|
|
176
185
|
<div class="w-100 d-flex justify-content-end">
|
|
177
186
|
<div class="w-50 d-flex justify-content-end">
|
|
178
|
-
<img src="../assets/images/decidir-logo.png"
|
|
187
|
+
<img src="../assets/images/decidir-logo.png"
|
|
188
|
+
class="card-img-top w-50 logo-pago-seguro-img " alt="...">
|
|
179
189
|
</div>
|
|
180
190
|
</div>
|
|
181
191
|
</div>
|
|
@@ -214,57 +224,53 @@
|
|
|
214
224
|
&& JSON.parse(localStorage.getItem('dataDecidir'))
|
|
215
225
|
|
|
216
226
|
const publicApiKey = dataDecidir?.config?.public_key
|
|
217
|
-
|
|
227
|
+
let cybersource = dataDecidir?.config?.public_cybersource && dataDecidir?.config?.public_cybersource == 'deshabilitado'
|
|
218
228
|
let modo = dataDecidir?.config?.public_environment || null
|
|
219
229
|
|
|
220
230
|
modo && (modo == 'prod' && (modo = false) || modo == 'test' && (modo = true))
|
|
221
231
|
!modo && (modo = window.location.host.includes('easycommerce'))
|
|
222
232
|
|
|
223
|
-
|
|
233
|
+
!cybersource && (cybersource = true)
|
|
224
234
|
|
|
225
235
|
const decidir = new Decidir(modo && urlSandbox || urlProduccion, cybersource);
|
|
226
236
|
decidir.setPublishableKey(publicApiKey);
|
|
227
237
|
decidir.setTimeout(5000);
|
|
228
238
|
|
|
229
|
-
console.log("decidir", decidir);
|
|
230
|
-
|
|
231
239
|
let form = document.querySelector('#formulario');
|
|
232
240
|
|
|
233
241
|
const sendToken = (data) => {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
242
|
+
try {
|
|
243
|
+
fetch(dataRedirect, {
|
|
244
|
+
method: 'POST',
|
|
245
|
+
body: JSON.stringify(data),
|
|
246
|
+
headers: {
|
|
247
|
+
'Content-Type': 'application/json'
|
|
248
|
+
}
|
|
249
|
+
}).then(res => res.json())
|
|
250
|
+
.catch(error => {
|
|
251
|
+
console.error('Error:', error)
|
|
252
|
+
processError(response)
|
|
253
|
+
})
|
|
254
|
+
.then(response => {
|
|
255
|
+
console.log('Success:', response)
|
|
256
|
+
if (response.hasOwnProperty('status')) {
|
|
257
|
+
if (response.status == 'approved') {
|
|
258
|
+
processResponse(response)
|
|
259
|
+
} else {
|
|
260
|
+
processError(response)
|
|
261
|
+
}
|
|
251
262
|
} else {
|
|
252
|
-
|
|
263
|
+
processResponse(response)
|
|
253
264
|
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
265
|
+
});
|
|
266
|
+
} catch (error) {
|
|
267
|
+
processError(response)
|
|
268
|
+
}
|
|
258
269
|
localStorage.removeItem('dataRedirect')
|
|
259
270
|
localStorage.removeItem('dataDecidir')
|
|
260
271
|
}
|
|
261
272
|
|
|
262
273
|
const getAsBin = (data) => {
|
|
263
|
-
// console.log('validateCreditCardNumber',decidir.validateCreditCardNumber(decidir.collectFormData(form).card_number));
|
|
264
|
-
// console.log('cardType',decidir.cardType(decidir.collectFormData(form).card_number));
|
|
265
|
-
// console.log('collectFormData', decidir.collectFormData(form));
|
|
266
|
-
// console.log('getBin',JSON.stringify(decidir.getBin(decidir.collectFormData(form))));
|
|
267
|
-
// console.log('getHttp',decidir.getHttp(form));
|
|
268
274
|
mp.getPaymentMethods({ bin: data.bin }).then(
|
|
269
275
|
t => {
|
|
270
276
|
let resultmp = t.results[0]
|
package/assets/ec-i18n/en.json
CHANGED
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"product-details": "Product details",
|
|
226
226
|
"product-name": "Article name",
|
|
227
227
|
"product-removed": "Cart product removed",
|
|
228
|
-
"product-updated": "The product quantity was updated",
|
|
228
|
+
"product-updated": "The product quantity was updated to {{quantity}}",
|
|
229
229
|
"products": "Products",
|
|
230
230
|
"profile": "Profile",
|
|
231
231
|
"purchase-code": "Your purchase code is: ",
|
|
@@ -355,5 +355,7 @@
|
|
|
355
355
|
"exit": "Exit",
|
|
356
356
|
"start-impersonating": "Operating as: {{ customer }}",
|
|
357
357
|
"stop-impersonating": "You are not operating as none of your customers",
|
|
358
|
-
"must-select-customer": "You must select a customer to perform this action."
|
|
358
|
+
"must-select-customer": "You must select a customer to perform this action.",
|
|
359
|
+
"new-orders": "New orders",
|
|
360
|
+
"operate-as": "Operate as"
|
|
359
361
|
}
|
package/assets/ec-i18n/es.json
CHANGED
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"product-details": "Detalles del producto",
|
|
227
227
|
"product-name": "Nombre de artículo",
|
|
228
228
|
"product-removed": "Se eliminó el producto en tu carrito",
|
|
229
|
-
"product-updated": "Se actualizó la cantidad del producto",
|
|
229
|
+
"product-updated": "Se actualizó la cantidad del producto quedando en {{quantity}}",
|
|
230
230
|
"products": "Productos",
|
|
231
231
|
"profile": "Perfil",
|
|
232
232
|
"purchase-code": "Su código de compra es: ",
|
|
@@ -356,5 +356,7 @@
|
|
|
356
356
|
"exit": "Salir",
|
|
357
357
|
"start-impersonating": "Operando como: {{ customer }}",
|
|
358
358
|
"stop-impersonating": "No se encuentra operando por ninguno de sus clientes",
|
|
359
|
-
"must-select-customer": "Debe seleccionar un cliente para ejecutar esta acción."
|
|
359
|
+
"must-select-customer": "Debe seleccionar un cliente para ejecutar esta acción.",
|
|
360
|
+
"new-orders": "Pedidos nuevos",
|
|
361
|
+
"operate-as": "Operar como"
|
|
360
362
|
}
|
|
Binary file
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"elden.com": "tanda_2",
|
|
3
|
+
"smeg.com.ar": "tanda_2",
|
|
4
|
+
"d2dcor.com": "tanda_2",
|
|
5
|
+
"promesse.com.ar": "tanda_2",
|
|
6
|
+
"almacendelmolino.com.ar": "tanda_2",
|
|
7
|
+
"womanbypromesse.com.ar": "tanda_2",
|
|
8
|
+
"promessemayorista.com.ar": "tanda_2",
|
|
9
|
+
"outmall.com.ar": "tanda_2",
|
|
10
|
+
"profesionales.myc-homelinens.com": "tanda_2",
|
|
11
|
+
"opositoresinvencibles.com": "tanda_2",
|
|
12
|
+
"myc-homelinens.com": "tanda_2",
|
|
13
|
+
"vinals.es": "tanda_2",
|
|
14
|
+
"guolis.com.ar": "tanda_2",
|
|
15
|
+
"b2b.vidal-vidal.com": "tanda_2",
|
|
16
|
+
"lapequeteria.com": "tanda_2",
|
|
17
|
+
"backend.almacendelmolino.com.ar": "tanda_2",
|
|
18
|
+
"bonjourlulu.com.ar": "tanda_2",
|
|
19
|
+
"shop.bonjourlulu.com.ar": "tanda_2",
|
|
20
|
+
"chispa.com.py": "tanda_2",
|
|
21
|
+
"backend.tienda.dos-hermanos.com": "tanda_2",
|
|
22
|
+
"www.elden.com": "tanda_2",
|
|
23
|
+
"www.elden.com.ar": "tanda_2",
|
|
24
|
+
"www.subzero.com.ar": "tanda_2",
|
|
25
|
+
"www.subzero-wolf.com.ar": "tanda_2",
|
|
26
|
+
"www.solac.com.ar": "tanda_2",
|
|
27
|
+
"www.smeg.com.ar": "tanda_2",
|
|
28
|
+
"www.guolis.com.ar": "tanda_2",
|
|
29
|
+
"ibashop.com.ar": "tanda_2",
|
|
30
|
+
"b2b.idargentina.com": "tanda_2",
|
|
31
|
+
"backend.lapequeteria.com": "tanda_2",
|
|
32
|
+
"maxifarma.com.py": "tanda_2",
|
|
33
|
+
"andresgourmetseleccion.es": "tanda_2",
|
|
34
|
+
"www.estacioncentral.com.ar": "tanda_2",
|
|
35
|
+
"thecouples.com.ar": "tanda_2"
|
|
36
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"eq.easycommercetech.com": "tanda_1",
|
|
3
|
+
"myc.easycommercetech.tienda": "tanda_1",
|
|
4
|
+
"chispa.easycommercetech.com": "tanda_1",
|
|
5
|
+
"tekcenter.easycommercetech.com": "tanda_1",
|
|
6
|
+
"doshermanos.easycommercetech.com": "tanda_1",
|
|
7
|
+
"adctecnologia.easycommercetech.com": "tanda_1",
|
|
8
|
+
"pbg.easycommercetech.com": "tanda_1",
|
|
9
|
+
"elden.easycommercetech.com": "tanda_1",
|
|
10
|
+
"ags.easycommercetech.tienda": "tanda_1",
|
|
11
|
+
"smeg.easycommercetech.com": "tanda_1",
|
|
12
|
+
"promesse.easycommercetech.com": "tanda_1",
|
|
13
|
+
"d2dcor.easycommercetech.tienda": "tanda_1",
|
|
14
|
+
"vinals.easycommercetech.tienda": "tanda_1",
|
|
15
|
+
"scorpiostore.easycommercetech.com": "tanda_1",
|
|
16
|
+
"almacendelmolino.easycommercetech.com": "tanda_1",
|
|
17
|
+
"maxifarma.easycommercetech.com": "tanda_1",
|
|
18
|
+
"guolis.easycommercetech.com": "tanda_1",
|
|
19
|
+
"lapequeteria.easycommercetech.com": "tanda_1",
|
|
20
|
+
"farmasun.easycommercetech.com": "tanda_1",
|
|
21
|
+
"womanbypromesse.easycommercetech.com": "tanda_1",
|
|
22
|
+
"promessemayorista.easycommercetech.com": "tanda_1",
|
|
23
|
+
"outmall.easycommercetech.com": "tanda_1",
|
|
24
|
+
"opositoresinvencibles.easycommercetech.tienda": "tanda_1",
|
|
25
|
+
"seler.easycommercetech.tienda": "tanda_1",
|
|
26
|
+
"converse.easycommercetech.com": "tanda_1",
|
|
27
|
+
"id.easycommercetech.com": "tanda_1",
|
|
28
|
+
"lasoreiro.easycommercetech.com": "tanda_1",
|
|
29
|
+
"eldenv2.easycommercetech.com": "tanda_1",
|
|
30
|
+
"vidalvidal.easycommercetech.tienda": "tanda_1",
|
|
31
|
+
"estacioncentral.easycommercetech.com": "tanda_1",
|
|
32
|
+
"cuidex.easycommercetech.com": "tanda_1",
|
|
33
|
+
"sherman.easycommercetech.com": "tanda_1",
|
|
34
|
+
"bonjourlulu.easycommercetech.com": "tanda_1",
|
|
35
|
+
"deporcenter.easycommercetech.com": "tanda_1",
|
|
36
|
+
"easycommercetech.com": "tanda_1",
|
|
37
|
+
"test.easycommercetech.com": "tanda_1",
|
|
38
|
+
"subzero.easycommercetech.com": "tanda_1",
|
|
39
|
+
"smegv2.easycommercetech.com": "tanda_1",
|
|
40
|
+
"equipajes.easycommercetech.com": "tanda_1",
|
|
41
|
+
"delseychile.easycommercetech.com": "tanda_1",
|
|
42
|
+
"delseyargentina.easycommercetech.com": "tanda_1",
|
|
43
|
+
"equipajeurbano.easycommercetech.com": "tanda_1",
|
|
44
|
+
"gezatek.easycommercetech.com": "tanda_1",
|
|
45
|
+
"iba.easycommercetech.com": "tanda_1",
|
|
46
|
+
"rheem.easycommercetech.com": "tanda_1",
|
|
47
|
+
"saiar.easycommercetech.com": "tanda_1",
|
|
48
|
+
"servicompras.easycommercetech.com": "tanda_1",
|
|
49
|
+
"thecouples.easycommercetech.com": "tanda_1",
|
|
50
|
+
"iberspa.easycommercetech.tienda": "tanda_1"
|
|
51
|
+
}
|