ng-easycommerce-v18 0.2.16 → 0.2.18
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 +6 -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 +49 -3
- 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 +12 -4
- 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 +2 -2
- 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 +132 -58
- package/fesm2022/ng-easycommerce-v18.mjs.map +1 -1
- package/lib/ec-components/checkout-ec/shipment-ec/shipment-ec.component.d.ts +22 -0
- package/lib/ec-components/filters-ec/filters-ec.component.d.ts +5 -0
- package/lib/ec-pipe/ec-safe-html.pipe.d.ts +10 -0
- package/lib/ec-pipe/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export declare class ShipmentEcComponent implements OnInit {
|
|
|
10
10
|
private _hiddenMethods;
|
|
11
11
|
buttonsDisabled: boolean;
|
|
12
12
|
methodSelect: any;
|
|
13
|
+
selectedMethodCode: string | null;
|
|
13
14
|
loadingInternal: boolean;
|
|
14
15
|
moreInfoInMethod: boolean;
|
|
15
16
|
costos: any;
|
|
@@ -19,6 +20,27 @@ export declare class ShipmentEcComponent implements OnInit {
|
|
|
19
20
|
constructor();
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
filterMethods(methods: any): any;
|
|
23
|
+
/**
|
|
24
|
+
* Combina las funciones de setActive y setMethod para una mejor experiencia
|
|
25
|
+
* @param method Método de envío seleccionado
|
|
26
|
+
* @param event Evento del botón clickeado
|
|
27
|
+
*/
|
|
28
|
+
selectMethod(method: any, event: any): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Maneja la clase .active de los botones
|
|
31
|
+
* @param event Evento del botón clickeado
|
|
32
|
+
*/
|
|
33
|
+
setActiveButton(event: any): void;
|
|
34
|
+
/**
|
|
35
|
+
* Método original mantenido para compatibilidad
|
|
36
|
+
*/
|
|
37
|
+
setActive($event: any): void;
|
|
38
|
+
/**
|
|
39
|
+
* Verifica si un método está activo basado en su código
|
|
40
|
+
* @param methodCode Código del método de envío
|
|
41
|
+
* @returns true si el método está seleccionado
|
|
42
|
+
*/
|
|
43
|
+
isMethodActive(methodCode: string): boolean;
|
|
22
44
|
setMethod(method: any): void;
|
|
23
45
|
validName(name: any): boolean;
|
|
24
46
|
emitResult: (method_name: string, contract_data: any) => void;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
1
2
|
import { Filter } from '../../classes';
|
|
2
3
|
import { FilterElement, FilterType } from '../../interfaces';
|
|
3
4
|
import { PriceRangeFilter } from '../../classes/filters/price_range-filter';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class FiltersEcComponent {
|
|
7
|
+
private _authService;
|
|
6
8
|
private _filtersService;
|
|
7
9
|
private _productsService;
|
|
8
10
|
private _constants;
|
|
9
11
|
private router;
|
|
10
12
|
filters: Filter[];
|
|
11
13
|
filter$: import("rxjs").Observable<Filter[]>;
|
|
14
|
+
showPricesOnlyToLoggedUsers: boolean;
|
|
15
|
+
injector: Injector;
|
|
16
|
+
isAuthenticated$: boolean;
|
|
12
17
|
setSelect: any;
|
|
13
18
|
ngOnInit(): void;
|
|
14
19
|
constructor();
|
|
@@ -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