ng-easycommerce-v18 0.0.7 → 0.0.8
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/assets/ec-i18n/es.json +4 -0
- package/esm2022/lib/ec-components/auth-ec/register-form-ec/register-form-ec.component.mjs +20 -21
- package/esm2022/lib/ec-components/blocks-ec/block-banner-box-ec/block-banner-box-ec.component.mjs +5 -4
- package/esm2022/lib/ec-components/blocks-ec/block-products-ec/block-products-ec.component.mjs +4 -4
- package/esm2022/lib/ec-components/filters-ec/filters-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/product-detail-ec/product-detail-ec.component.mjs +8 -2
- package/esm2022/lib/ec-components/product-ec/product-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/sidebar-ec/sidebar-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/variants-ec/variants-ec.component.mjs +3 -3
- package/esm2022/lib/ec-services/options.service.mjs +19 -12
- package/fesm2022/ng-easycommerce-v18.mjs +57 -44
- package/fesm2022/ng-easycommerce-v18.mjs.map +1 -1
- package/lib/ec-components/auth-ec/register-form-ec/register-form-ec.component.d.ts +1 -2
- package/lib/ec-components/blocks-ec/block-banner-box-ec/block-banner-box-ec.component.d.ts +1 -0
- package/lib/ec-components/product-detail-ec/product-detail-ec.component.d.ts +3 -1
- package/lib/ec-services/options.service.d.ts +6 -7
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class RegisterFormEcComponent {
|
|
5
4
|
private _authService;
|
|
@@ -18,7 +17,7 @@ export declare class RegisterFormEcComponent {
|
|
|
18
17
|
/**
|
|
19
18
|
* Contiene el formulario de registro.
|
|
20
19
|
*/
|
|
21
|
-
|
|
20
|
+
registerForm: any;
|
|
22
21
|
/**
|
|
23
22
|
* Para indicar que se esta procesando la solicitud de registro.
|
|
24
23
|
*/
|
|
@@ -42,6 +42,7 @@ export declare class BlockBannerBoxEcComponent extends BlockEcComponent {
|
|
|
42
42
|
*/
|
|
43
43
|
selectPromotion(banner: any): void;
|
|
44
44
|
redirectRoute(url: string): void;
|
|
45
|
+
boxesInlcudesCode: (box: string) => any;
|
|
45
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlockBannerBoxEcComponent, never>;
|
|
46
47
|
static ɵcmp: i0.ɵɵComponentDeclaration<BlockBannerBoxEcComponent, "app-block-banner-box-ec", never, { "banners": { "alias": "banners"; "required": true; }; "meta": { "alias": "meta"; "required": true; }; }, {}, never, never, true, never>;
|
|
47
48
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { Parameter } from '../../interfaces';
|
|
3
3
|
import { WritableSignal } from '@angular/core';
|
|
4
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
4
5
|
import { Observable } from 'rxjs';
|
|
5
6
|
import { Product } from '../../interfaces';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
@@ -31,7 +32,8 @@ export declare class ProductDetailEcComponent {
|
|
|
31
32
|
constructor();
|
|
32
33
|
ngOnInit(): void;
|
|
33
34
|
updateMetaTags(product: Product): void;
|
|
34
|
-
|
|
35
|
+
decodeHtml(html: string): string;
|
|
36
|
+
sanitizedHtml(html: string): SafeHtml;
|
|
35
37
|
addToCart(): void;
|
|
36
38
|
plus(stock?: number, multipleQuantity?: number): void;
|
|
37
39
|
less(multipleQuantity?: any): void;
|
|
@@ -69,12 +69,11 @@ export declare class OptionsService {
|
|
|
69
69
|
* @returns
|
|
70
70
|
*/
|
|
71
71
|
getAttributes(params?: any): Observable<Attribute[]>;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*/
|
|
72
|
+
slugify(value: any): string; /**
|
|
73
|
+
* Elimina los acentos
|
|
74
|
+
* @param str
|
|
75
|
+
* @returns
|
|
76
|
+
*/
|
|
78
77
|
private removeAccents;
|
|
79
78
|
/**
|
|
80
79
|
* Realiza un mapeo de los datos para darle un formato mas entendible a la
|
|
@@ -83,7 +82,7 @@ export declare class OptionsService {
|
|
|
83
82
|
* @param response Respuesta que obtiene del backend con los datos a mapear.
|
|
84
83
|
* @returns
|
|
85
84
|
*/
|
|
86
|
-
appendPaths(isCategory: boolean, response: any): any;
|
|
85
|
+
appendPaths(isCategory: boolean, response: any): any[];
|
|
87
86
|
/**
|
|
88
87
|
* Genera un mapeo de secciones para que queden mas amigables a la hora de manejar como menú.
|
|
89
88
|
* @param section
|