ng-easycommerce-v18 0.2.15 → 0.2.17
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 +5 -0
- package/assets/decidirFormEc.html +7 -7
- package/esm2022/lib/ec-components/account-ec/order-ec/order-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/auth-ec/register-form-ec/register-form-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/blocks-ec/block-banner-full-ec/block-banner-full-ec.component.mjs +11 -11
- package/esm2022/lib/ec-components/blocks-ec/block-newsletter-ec/block-newsletter-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/blocks-ec/block-products-ec/block-products-ec.component.mjs +12 -12
- package/esm2022/lib/ec-components/cart-ec/cart-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/cart-ec/cart-item-ec/cart-item-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/checkout-ec/dataform-ec/dataform-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/checkout-ec/payment-ec/payment-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/checkout-ec/payment-ec/payment-methods/mp-redirect-ec/mp-redirect-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/checkout-ec/shipment-ec/shipment-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/checkout-ec/step-container-ec/step-container-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/faqs-ec/faqs-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/filters-ec/filters-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/header-ec/header-ec.component.mjs +4 -4
- package/esm2022/lib/ec-components/related-products-ec/related-products-ec.component.mjs +4 -4
- package/esm2022/lib/ec-components/section-container-ec/section-container-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/stores-ec/stores-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/widgets-ec/decidir-ec/decidir-ec.component.mjs +4 -4
- package/esm2022/lib/ec-components/widgets-ec/re-captcha-ec/re-captcha-ec.component.mjs +2 -2
- package/esm2022/lib/ec-pipe/ec-safe-html.pipe.mjs +24 -0
- package/esm2022/lib/ec-pipe/index.mjs +2 -1
- package/esm2022/lib/ec-services/cart.service.mjs +47 -18
- package/esm2022/lib/ec-services/checkout.service.mjs +3 -3
- package/esm2022/lib/ec-services/currency.service.mjs +2 -2
- package/esm2022/lib/ec-services/test.service.mjs +2 -2
- package/fesm2022/ng-easycommerce-v18.mjs +122 -72
- package/fesm2022/ng-easycommerce-v18.mjs.map +1 -1
- package/lib/ec-pipe/ec-safe-html.pipe.d.ts +10 -0
- package/lib/ec-pipe/index.d.ts +1 -0
- package/lib/ec-services/cart.service.d.ts +5 -4
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class EcSafeHtmlPipe implements PipeTransform {
|
|
5
|
+
private sanitizer;
|
|
6
|
+
constructor(sanitizer: DomSanitizer);
|
|
7
|
+
transform(value: string): SafeHtml;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcSafeHtmlPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<EcSafeHtmlPipe, "ecSafeHtml", true>;
|
|
10
|
+
}
|
package/lib/ec-pipe/index.d.ts
CHANGED
|
@@ -44,12 +44,13 @@ export declare class CartService {
|
|
|
44
44
|
couponApi(): string;
|
|
45
45
|
constructor();
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Sincroniza el carrito cuando el usuario hace login
|
|
48
|
+
* Implementa la lógica de Angular 9 para preservar el carrito del invitado
|
|
48
49
|
*/
|
|
49
|
-
private
|
|
50
|
+
private syncCartOnLogin;
|
|
50
51
|
/**
|
|
51
|
-
* Obtiene el carrito desde el backend
|
|
52
|
-
*
|
|
52
|
+
* Obtiene el carrito desde el backend con lógica de sincronización
|
|
53
|
+
* Envía el token si hay carrito local para fusionar carritos
|
|
53
54
|
*/
|
|
54
55
|
private getCart;
|
|
55
56
|
/**
|