ng-easycommerce-v18 0.3.17-beta.2 → 0.3.17-beta.3
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 +4 -0
- package/esm2022/lib/classes/filters/filter.mjs +27 -2
- package/esm2022/lib/constants/api.constants.service.mjs +41 -44
- package/esm2022/lib/ec-components/blocks-ec/block-products-ec/block-products-ec.component.mjs +5 -3
- package/esm2022/lib/ec-components/header-ec/header-ec.component.mjs +33 -24
- package/esm2022/lib/ec-components/related-products-ec/related-products-ec.component.mjs +6 -4
- package/esm2022/lib/ec-components/widgets-ec/magnizoom-ec/magnizoom-ec.component.mjs +4 -2
- package/esm2022/lib/ec-services/analytics/facebook-pixel.service.mjs +4 -2
- package/esm2022/lib/ec-services/analytics/google-analytics.service.mjs +4 -2
- package/esm2022/lib/ec-services/options.service.mjs +27 -3
- package/fesm2022/ng-easycommerce-v18.mjs +138 -74
- package/fesm2022/ng-easycommerce-v18.mjs.map +1 -1
- package/lib/constants/api.constants.service.d.ts +13 -24
- package/lib/ec-components/header-ec/header-ec.component.d.ts +1 -1
- package/lib/ec-services/options.service.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,48 +1,37 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
/**
|
|
3
|
-
* Servicio que provee de datos
|
|
4
|
-
* @export
|
|
5
|
-
* @class ApiConstantsService
|
|
3
|
+
* Servicio que provee de datos relacionados con las peticiones a la API
|
|
6
4
|
*/
|
|
7
5
|
export declare class ApiConstantsService {
|
|
6
|
+
private ssrApiUrl;
|
|
8
7
|
private _localStorage;
|
|
9
8
|
private _translate;
|
|
10
|
-
/**
|
|
11
|
-
* Contiene los datos provisto por el frontend en el archivo environment.ts
|
|
12
|
-
*/
|
|
13
9
|
private environment;
|
|
14
|
-
|
|
15
|
-
* Canal actual del frontend
|
|
16
|
-
*/
|
|
17
|
-
get CHANNEL(): string;
|
|
18
|
-
set CHANNEL(value: string);
|
|
10
|
+
private platformId;
|
|
19
11
|
private _channel;
|
|
20
|
-
/**
|
|
21
|
-
* Locale actual del frontend
|
|
22
|
-
*/
|
|
23
12
|
LOCALE: string;
|
|
24
|
-
/**
|
|
25
|
-
* URL para las peticiones a shop-api
|
|
26
|
-
*/
|
|
27
13
|
readonly SHOP_API_URL: string;
|
|
14
|
+
readonly CMS_URL: string;
|
|
15
|
+
constructor(ssrApiUrl: string);
|
|
28
16
|
/**
|
|
29
|
-
*
|
|
17
|
+
* Canal actual del frontend
|
|
30
18
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
get CHANNEL(): string;
|
|
20
|
+
set CHANNEL(value: string);
|
|
33
21
|
/**
|
|
34
22
|
* URL del backend para realizar las peticiones
|
|
35
23
|
*/
|
|
36
24
|
get API_URL(): string;
|
|
37
25
|
/**
|
|
38
|
-
*
|
|
39
|
-
|
|
26
|
+
* URL base completa para shop-api con channel y locale
|
|
27
|
+
*/
|
|
28
|
+
getShopApiBase(): string;
|
|
29
|
+
/**
|
|
30
|
+
* Retorna la url base general (sin shop-api)
|
|
40
31
|
*/
|
|
41
32
|
getUrlBase(): string;
|
|
42
33
|
/**
|
|
43
34
|
* Cambia el canal actual
|
|
44
|
-
* @param code
|
|
45
|
-
* @returns
|
|
46
35
|
*/
|
|
47
36
|
setChannel(code: string): void;
|
|
48
37
|
setLocale(locale: string): void;
|
|
@@ -16,13 +16,13 @@ export declare class HeaderEcComponent extends MenuEcComponent {
|
|
|
16
16
|
private _channelService;
|
|
17
17
|
private changeDetector;
|
|
18
18
|
private appRouter;
|
|
19
|
-
protected platformId: Object;
|
|
20
19
|
logged$: Observable<boolean>;
|
|
21
20
|
isAuthenticated$: boolean;
|
|
22
21
|
constructor();
|
|
23
22
|
private coreConstantsService;
|
|
24
23
|
private router;
|
|
25
24
|
private cdr;
|
|
25
|
+
protected platformId: Object;
|
|
26
26
|
ngOnInit(): void;
|
|
27
27
|
ngAfterViewInit(): void;
|
|
28
28
|
/**
|