ng-easycommerce-v18 0.4.4-beta.2 → 0.4.6
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 +130 -125
- package/assets/decidirFormEc.html +514 -514
- package/assets/ec-i18n/ct.json +286 -282
- package/assets/ec-i18n/en.json +12 -1
- package/assets/ec-i18n/es.json +445 -434
- package/assets/ec-i18n/fr.json +4 -0
- package/assets/ec-i18n/gl.json +286 -282
- package/assets/ec-i18n/pr.json +286 -282
- package/assets/images/cards-occasional.svg +21 -21
- package/assets/recaptcha/recaptcha-site-keys.json +3 -3
- package/assets/recaptcha/recaptcha-sites-prod.json +38 -38
- package/assets/recaptcha/recaptcha-sites.json +52 -52
- package/esm2022/lib/api/connection.service.mjs +7 -6
- package/esm2022/lib/classes/checkout/steps.mjs +1 -1
- package/esm2022/lib/classes/component-helper.mjs +1 -1
- package/esm2022/lib/classes/filters/attributes-filter.mjs +1 -1
- package/esm2022/lib/classes/filters/category-filter.mjs +1 -1
- package/esm2022/lib/classes/filters/dynamics-filter.mjs +1 -1
- package/esm2022/lib/classes/filters/filter-factory.mjs +1 -1
- package/esm2022/lib/classes/filters/filter.mjs +1 -1
- package/esm2022/lib/classes/filters/index.mjs +1 -1
- package/esm2022/lib/classes/filters/price_range-filter.mjs +1 -1
- package/esm2022/lib/classes/filters/sort-filter.mjs +1 -1
- package/esm2022/lib/classes/index.mjs +1 -1
- package/esm2022/lib/classes/user.mjs +1 -1
- package/esm2022/lib/constants/api.constants.service.mjs +1 -1
- package/esm2022/lib/constants/core.constants.service.mjs +1 -1
- package/esm2022/lib/constants/index.mjs +1 -1
- package/esm2022/lib/ec-components/abstractions-components/block-ec.component.mjs +1 -1
- package/esm2022/lib/ec-components/abstractions-components/index.mjs +1 -1
- package/esm2022/lib/ec-components/abstractions-components/menu-ec.component.mjs +1 -1
- package/esm2022/lib/ec-components/account-ec/account-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/account-ec/index.mjs +1 -1
- package/esm2022/lib/ec-components/account-ec/order-ec/order-ec.component.mjs +5 -9
- package/esm2022/lib/ec-components/account-ec/orders-list-ec/orders-list-ec.component.mjs +11 -5
- package/esm2022/lib/ec-components/auth-ec/auth-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/auth-ec/confirm-account-ec/confirm-account-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/auth-ec/forgot-password-ec/forgot-password-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/auth-ec/index.mjs +1 -1
- package/esm2022/lib/ec-components/auth-ec/login-form-ec/login-form-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/auth-ec/password-reset-ec/password-reset-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/auth-ec/register-form-ec/register-form-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/auth-ec/register-wholesaler-form-ec/register-wholesaler-form-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/blocks-ec/block-banner-box-ec/block-banner-box-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/blocks-ec/block-banner-full-ec/block-banner-full-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/blocks-ec/block-form-contact-ec/block-form-contact-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/blocks-ec/block-html-ec/block-html-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/blocks-ec/block-newsletter-ec/block-newsletter-ec.component.mjs +3 -4
- package/esm2022/lib/ec-components/blocks-ec/block-products-ec/block-products-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/blocks-ec/blocks-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/blocks-ec/index.mjs +1 -1
- package/esm2022/lib/ec-components/breadcrumb-ec/breadcrumb-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/cart-ec/cart-ec.component.mjs +12 -3
- package/esm2022/lib/ec-components/cart-ec/cart-item-ec/cart-item-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/cart-ec/index.mjs +1 -1
- package/esm2022/lib/ec-components/checkout-ec/checkout-ec.component.mjs +10 -3
- package/esm2022/lib/ec-components/checkout-ec/dataform-ec/dataform-ec.component.mjs +11 -4
- package/esm2022/lib/ec-components/checkout-ec/dataform-ec/input-ec/input-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.mjs +5 -3
- package/esm2022/lib/ec-components/checkout-ec/payment-ec/payment-ec.component.mjs +44 -4
- package/esm2022/lib/ec-components/checkout-ec/payment-ec/payment-methods/bank-transfer-ec/bank-transfer-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/checkout-ec/payment-ec/payment-methods/index.mjs +1 -1
- package/esm2022/lib/ec-components/checkout-ec/payment-ec/payment-methods/mp-redirect-ec/mp-redirect-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/checkout-ec/payment-ec/payment-methods/offline-ec/offline-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/checkout-ec/shipment-ec/shipment-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/checkout-ec/step-container-ec/step-container-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/checkout-ec/success-ec/success-ec.component.mjs +4 -3
- package/esm2022/lib/ec-components/collection-ec/collection-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/contact-ec/contact-ec.component.mjs +1 -1
- package/esm2022/lib/ec-components/coupon-ec/coupon-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/credit-account-banner-ec/credit-account-banner-ec.component.mjs +79 -0
- package/esm2022/lib/ec-components/faqs-ec/faqs-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/filters-ec/filters-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/filters-sort-ec/filters-sort-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/footer-ec/footer-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/header-ec/header-ec.component.mjs +27 -13
- package/esm2022/lib/ec-components/home-ec/home-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/index.mjs +2 -1
- package/esm2022/lib/ec-components/price-range-filter/price-range-filter.component.mjs +3 -3
- package/esm2022/lib/ec-components/product-detail-ec/product-detail-ec.component.mjs +1 -1
- package/esm2022/lib/ec-components/product-ec/product-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/related-products-ec/related-products-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/reviews-ec/reviews-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/reviews-form-ec/reviews-form-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/section-container-ec/section-container-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/share-ec/share-buttons-ec/index.mjs +1 -1
- package/esm2022/lib/ec-components/share-ec/share-buttons-ec/share-email-ec/share-email-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/share-ec/share-buttons-ec/share-facebook-ec/share-facebook-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/share-ec/share-buttons-ec/share-pinterest-ec/share-pinterest-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/share-ec/share-buttons-ec/share-twitter-ec/share-twitter-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/share-ec/share-buttons-ec/share-whatsapp-ec/share-whatsapp-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/share-ec/share-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/sidebar-ec/sidebar-ec.component.mjs +5 -7
- package/esm2022/lib/ec-components/stores-ec/stores-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/variants-ec/variants-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/widgets-ec/decidir-ec/decidir-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/widgets-ec/index.mjs +1 -1
- package/esm2022/lib/ec-components/widgets-ec/loading/index.mjs +1 -1
- package/esm2022/lib/ec-components/widgets-ec/loading/loading-full-ec/loading-full-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/widgets-ec/loading/loading-inline-ec/loading-inline-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/widgets-ec/loading/loading-section-ec/loading-section-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/widgets-ec/magnizoom-ec/magnizoom-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/widgets-ec/price-ec/price-ec.component.mjs +5 -11
- package/esm2022/lib/ec-components/widgets-ec/rating-ec/rating-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/widgets-ec/re-captcha-ec/re-captcha-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/widgets-ec/redsys-catch-ec/redsys-catch-ec.component.mjs +3 -3
- package/esm2022/lib/ec-directive/index.mjs +1 -1
- package/esm2022/lib/ec-directive/product-off.directive.mjs +1 -1
- package/esm2022/lib/ec-directive/product-stock.directive.mjs +1 -1
- package/esm2022/lib/ec-guards/auth.guard.mjs +1 -1
- package/esm2022/lib/ec-pipe/ec-currency-symbol.pipe.mjs +1 -1
- package/esm2022/lib/ec-pipe/ec-safe-html.pipe.mjs +1 -1
- package/esm2022/lib/ec-pipe/index.mjs +1 -1
- package/esm2022/lib/ec-services/addressing.service.mjs +1 -1
- package/esm2022/lib/ec-services/analytics/analytics.service.mjs +1 -1
- package/esm2022/lib/ec-services/analytics/doppler.service.mjs +1 -1
- package/esm2022/lib/ec-services/analytics/facebook-pixel.service.mjs +1 -1
- package/esm2022/lib/ec-services/analytics/google-analytics.service.mjs +1 -1
- package/esm2022/lib/ec-services/analytics/gtm.service.mjs +1 -1
- package/esm2022/lib/ec-services/analytics/index.mjs +1 -1
- package/esm2022/lib/ec-services/analytics/metricool-pixel.service.mjs +11 -11
- package/esm2022/lib/ec-services/auth.service.mjs +1 -1
- package/esm2022/lib/ec-services/auth.storage.service.mjs +1 -1
- package/esm2022/lib/ec-services/base-api.service.mjs +1 -1
- package/esm2022/lib/ec-services/blocks-repository.service.mjs +1 -1
- package/esm2022/lib/ec-services/blocks.service.mjs +1 -1
- package/esm2022/lib/ec-services/cart.service.mjs +42 -7
- package/esm2022/lib/ec-services/channel.service.mjs +1 -1
- package/esm2022/lib/ec-services/checkout.service.mjs +1 -1
- package/esm2022/lib/ec-services/currency.service.mjs +1 -1
- package/esm2022/lib/ec-services/filters.service.mjs +1 -1
- package/esm2022/lib/ec-services/form.service.mjs +1 -1
- package/esm2022/lib/ec-services/index.mjs +2 -1
- package/esm2022/lib/ec-services/local-storage.service.mjs +1 -1
- package/esm2022/lib/ec-services/ngx-local-storage.service.mjs +1 -1
- package/esm2022/lib/ec-services/options.service.mjs +1 -1
- package/esm2022/lib/ec-services/order-utility.service.mjs +1 -1
- package/esm2022/lib/ec-services/orders.service.mjs +1 -1
- package/esm2022/lib/ec-services/pagination.service.mjs +1 -1
- package/esm2022/lib/ec-services/parameters.service.mjs +1 -1
- package/esm2022/lib/ec-services/payment.service.mjs +1 -1
- package/esm2022/lib/ec-services/price-visibility.service.mjs +40 -0
- package/esm2022/lib/ec-services/product-detail.service.mjs +45 -7
- package/esm2022/lib/ec-services/products.service.mjs +1 -1
- package/esm2022/lib/ec-services/re-captcha.service.mjs +1 -1
- package/esm2022/lib/ec-services/reviews.service.mjs +1 -1
- package/esm2022/lib/ec-services/runtime-config.service.mjs +13 -31
- package/esm2022/lib/ec-services/shipment.service.mjs +1 -1
- package/esm2022/lib/ec-services/stores.service.mjs +1 -1
- package/esm2022/lib/ec-services/test.service.mjs +1 -1
- package/esm2022/lib/ec-services/toast.service.mjs +1 -1
- package/esm2022/lib/interceptors/auth.interceptor.mjs +1 -1
- package/esm2022/lib/interceptors/index.mjs +1 -1
- package/esm2022/lib/interceptors/runtime-config.interceptor.mjs +1 -1
- package/esm2022/lib/interfaces/analytics/event-key.mjs +1 -1
- package/esm2022/lib/interfaces/analytics/facebook-pixel-data.mjs +1 -1
- package/esm2022/lib/interfaces/analytics/gtm-config.mjs +1 -1
- package/esm2022/lib/interfaces/analytics/index.mjs +1 -1
- package/esm2022/lib/interfaces/blocks.mjs +1 -1
- package/esm2022/lib/interfaces/checkout.mjs +1 -1
- package/esm2022/lib/interfaces/connection.mjs +1 -1
- package/esm2022/lib/interfaces/coupon.mjs +1 -1
- package/esm2022/lib/interfaces/currency.mjs +1 -1
- package/esm2022/lib/interfaces/deserializable.mjs +1 -1
- package/esm2022/lib/interfaces/environment.mjs +1 -1
- package/esm2022/lib/interfaces/faqs.mjs +1 -1
- package/esm2022/lib/interfaces/filter.mjs +1 -1
- package/esm2022/lib/interfaces/index.mjs +1 -1
- package/esm2022/lib/interfaces/options.mjs +1 -1
- package/esm2022/lib/interfaces/pagination.mjs +1 -1
- package/esm2022/lib/interfaces/parameter.mjs +1 -1
- package/esm2022/lib/interfaces/product.mjs +1 -1
- package/esm2022/lib/interfaces/runtime-config.mjs +1 -1
- package/esm2022/lib/interfaces/step.mjs +1 -1
- package/esm2022/lib/interfaces/storage.mjs +1 -1
- package/esm2022/lib/interfaces/store.mjs +1 -1
- package/esm2022/lib/interfaces/types/user.type.mjs +1 -1
- package/esm2022/lib/providers/index.mjs +1 -2
- package/esm2022/lib/providers/provideEnvironment.mjs +1 -1
- package/esm2022/lib/providers/provideRuntimeConfig.mjs +1 -1
- package/esm2022/lib/stores/currency.store.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/ng-easycommerce-v18.mjs +437 -232
- package/fesm2022/ng-easycommerce-v18.mjs.map +1 -1
- package/lib/api/connection.service.d.ts +4 -3
- package/lib/ec-components/account-ec/order-ec/order-ec.component.d.ts +2 -2
- package/lib/ec-components/account-ec/orders-list-ec/orders-list-ec.component.d.ts +3 -0
- package/lib/ec-components/cart-ec/cart-ec.component.d.ts +4 -2
- package/lib/ec-components/checkout-ec/checkout-ec.component.d.ts +2 -0
- package/lib/ec-components/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.d.ts +2 -0
- package/lib/ec-components/checkout-ec/payment-ec/payment-ec.component.d.ts +6 -0
- package/lib/ec-components/checkout-ec/success-ec/success-ec.component.d.ts +1 -0
- package/lib/ec-components/credit-account-banner-ec/credit-account-banner-ec.component.d.ts +27 -0
- package/lib/ec-components/header-ec/header-ec.component.d.ts +12 -4
- package/lib/ec-components/index.d.ts +1 -0
- package/lib/ec-components/sidebar-ec/sidebar-ec.component.d.ts +2 -1
- package/lib/ec-components/widgets-ec/price-ec/price-ec.component.d.ts +2 -4
- package/lib/ec-services/cart.service.d.ts +1 -0
- package/lib/ec-services/index.d.ts +1 -0
- package/lib/ec-services/price-visibility.service.d.ts +23 -0
- package/lib/ec-services/product-detail.service.d.ts +3 -0
- package/lib/ec-services/runtime-config.service.d.ts +2 -3
- package/lib/providers/index.d.ts +0 -1
- package/package.json +1 -1
- package/esm2022/lib/providers/provideServerRuntimeConfig.mjs +0 -20
- package/lib/providers/provideServerRuntimeConfig.d.ts +0 -13
|
@@ -19,11 +19,12 @@ export declare class ConnectionService implements Connection {
|
|
|
19
19
|
*/
|
|
20
20
|
private constantsSvr;
|
|
21
21
|
/**
|
|
22
|
-
* URL Base para las peticiones
|
|
23
|
-
* @
|
|
22
|
+
* URL Base para las peticiones.
|
|
23
|
+
* @type {string}
|
|
24
24
|
* @memberof ConnectionService
|
|
25
25
|
*/
|
|
26
|
-
private
|
|
26
|
+
private url;
|
|
27
|
+
constructor();
|
|
27
28
|
/**
|
|
28
29
|
* Función para generar peticiones de tipo GET
|
|
29
30
|
* @param apiurl url del endpoint
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { PriceVisibilityService } from '../../../ec-services/price-visibility.service';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class OrderEcComponent implements OnInit {
|
|
@@ -9,11 +10,10 @@ export declare class OrderEcComponent implements OnInit {
|
|
|
9
10
|
private _cartService;
|
|
10
11
|
private _channelConfigService;
|
|
11
12
|
private _activedRoute;
|
|
13
|
+
readonly priceVisibility: PriceVisibilityService;
|
|
12
14
|
order$: Observable<any>;
|
|
13
15
|
allowRepeatOrders: boolean;
|
|
14
16
|
loading: boolean;
|
|
15
|
-
creditAccountShowPrices: boolean | null;
|
|
16
|
-
hidePrices: boolean;
|
|
17
17
|
hideDiscounts: boolean;
|
|
18
18
|
hideTaxes: boolean;
|
|
19
19
|
channelConfig: any;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { PriceVisibilityService } from '../../../ec-services/price-visibility.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class OrdersListEcComponent implements OnInit {
|
|
4
5
|
private _ordersService;
|
|
5
6
|
private _router;
|
|
7
|
+
private _cartService;
|
|
8
|
+
readonly priceVisibility: PriceVisibilityService;
|
|
6
9
|
loading: boolean;
|
|
7
10
|
orders: any[];
|
|
8
11
|
private error;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
1
|
+
import { Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CartEcComponent {
|
|
4
|
+
export declare class CartEcComponent implements OnInit {
|
|
5
5
|
private _channelService;
|
|
6
6
|
channel: any;
|
|
7
7
|
private _toastrService;
|
|
@@ -12,6 +12,7 @@ export declare class CartEcComponent {
|
|
|
12
12
|
totalPromotionAmount$: import("rxjs").Observable<number>;
|
|
13
13
|
taxesAmount$: import("rxjs").Observable<number>;
|
|
14
14
|
totalAmount$: import("rxjs").Observable<any>;
|
|
15
|
+
creditAccountShowPrices$: import("rxjs").Observable<boolean | null>;
|
|
15
16
|
private _authService;
|
|
16
17
|
isAuthenticated$: boolean;
|
|
17
18
|
getTotalAmount: import("rxjs").Observable<any>;
|
|
@@ -19,6 +20,7 @@ export declare class CartEcComponent {
|
|
|
19
20
|
hideTaxes: boolean;
|
|
20
21
|
injector: Injector;
|
|
21
22
|
constructor();
|
|
23
|
+
ngOnInit(): void;
|
|
22
24
|
removeCoupon(): void;
|
|
23
25
|
redirectCheckout(): boolean;
|
|
24
26
|
getMinimumPurchaseAmount: () => any;
|
|
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class CheckoutEcComponent implements OnInit {
|
|
5
5
|
private _channelService;
|
|
6
6
|
private _checkoutService;
|
|
7
|
+
private _router;
|
|
7
8
|
readonly ADDRESS: StepType;
|
|
8
9
|
readonly SHIPMENT: StepType;
|
|
9
10
|
readonly PAYMENT: StepType;
|
|
@@ -11,6 +12,7 @@ export declare class CheckoutEcComponent implements OnInit {
|
|
|
11
12
|
channel: any;
|
|
12
13
|
subCan: any;
|
|
13
14
|
canCheckout: boolean;
|
|
15
|
+
hidePrices: boolean;
|
|
14
16
|
constructor();
|
|
15
17
|
ngOnInit(): void;
|
|
16
18
|
initializeCheckout(): void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { PriceVisibilityService } from '../../../ec-services/price-visibility.service';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class DetailCheckoutBlockEcComponent {
|
|
3
4
|
private _checkoutService;
|
|
5
|
+
readonly priceVisibility: PriceVisibilityService;
|
|
4
6
|
data$: import("rxjs").Observable<any>;
|
|
5
7
|
data: any;
|
|
6
8
|
getIcon: (data_type: string) => "fas fa-ticket-alt fa-3x" | "fas fa-tags fa-3x" | "fas fa-shipping-fast fa-3x" | "fas fa-boxes fa-3x" | "fas fa-file-invoice-dollar fa-3x" | "fas fa-shopping-basket fa-3x";
|
|
@@ -5,6 +5,7 @@ export declare class PaymentEcComponent implements OnInit {
|
|
|
5
5
|
_paymentService: PaymentService;
|
|
6
6
|
private _checkoutService;
|
|
7
7
|
private _cartService;
|
|
8
|
+
private _toastService;
|
|
8
9
|
private _methodDataSubject;
|
|
9
10
|
private _loadingSubject;
|
|
10
11
|
methods$: import("rxjs").Observable<any[]>;
|
|
@@ -12,10 +13,14 @@ export declare class PaymentEcComponent implements OnInit {
|
|
|
12
13
|
methodData$: import("rxjs").Observable<any>;
|
|
13
14
|
loadingInternal: boolean;
|
|
14
15
|
total_amount: number;
|
|
16
|
+
allowAnyPaymentMethod: boolean | null;
|
|
17
|
+
balanceMethodRejected: boolean;
|
|
18
|
+
showMethodError: boolean;
|
|
15
19
|
constructor();
|
|
16
20
|
ngOnInit(): void;
|
|
17
21
|
setActive($event: any): void;
|
|
18
22
|
setMethod(method: any): Promise<void>;
|
|
23
|
+
private handleMethodError;
|
|
19
24
|
isRedirectRedsys: (code: string) => boolean;
|
|
20
25
|
isRedirectCecaBank: (code: string) => boolean;
|
|
21
26
|
isMP: (code: string) => boolean;
|
|
@@ -29,6 +34,7 @@ export declare class PaymentEcComponent implements OnInit {
|
|
|
29
34
|
isBankTransfer: (code: string) => boolean;
|
|
30
35
|
isCatastro: (code: string) => boolean;
|
|
31
36
|
isBamboo: (code: string) => boolean;
|
|
37
|
+
isBalanceInAccount: (code: string) => boolean;
|
|
32
38
|
allData(): any;
|
|
33
39
|
emitResult: () => Promise<void>;
|
|
34
40
|
setLoading: (estado?: boolean) => boolean;
|
|
@@ -25,6 +25,7 @@ export declare class SuccessEcComponent implements OnInit {
|
|
|
25
25
|
* @returns el bloque si lo encontro.
|
|
26
26
|
*/
|
|
27
27
|
containsBlock(codeBlock: string): any;
|
|
28
|
+
isBalanceInAccount: (code: string) => boolean | "";
|
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuccessEcComponent, never>;
|
|
29
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<SuccessEcComponent, "app-order-success-ec", never, {}, {}, never, never, true, never>;
|
|
30
31
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type CreditAccountBannerLayout = 'inline' | 'mobile';
|
|
3
|
+
export declare class CreditAccountBannerEcComponent {
|
|
4
|
+
private readonly cartService;
|
|
5
|
+
private readonly authService;
|
|
6
|
+
layout: CreditAccountBannerLayout;
|
|
7
|
+
title?: string;
|
|
8
|
+
subtitle?: string;
|
|
9
|
+
availableLabel?: string;
|
|
10
|
+
limitLabel?: string;
|
|
11
|
+
titleKey: string;
|
|
12
|
+
subtitleKey: string;
|
|
13
|
+
availableLabelKey: string;
|
|
14
|
+
limitLabelKey: string;
|
|
15
|
+
requireLogged: boolean;
|
|
16
|
+
private readonly balance;
|
|
17
|
+
private readonly loggedIn;
|
|
18
|
+
readonly showMax: import("@angular/core").Signal<boolean>;
|
|
19
|
+
readonly canShowAmounts: import("@angular/core").Signal<boolean>;
|
|
20
|
+
readonly remainingCredits: import("@angular/core").Signal<number>;
|
|
21
|
+
readonly creditAmount: import("@angular/core").Signal<number>;
|
|
22
|
+
readonly progress: import("@angular/core").Signal<number>;
|
|
23
|
+
readonly barColor: import("@angular/core").Signal<"#6c757d" | "#198754" | "#ffc107" | "#dc3545">;
|
|
24
|
+
shouldRender(): boolean;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreditAccountBannerEcComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CreditAccountBannerEcComponent, "app-credit-account-banner-ec", never, { "layout": { "alias": "layout"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "availableLabel": { "alias": "availableLabel"; "required": false; }; "limitLabel": { "alias": "limitLabel"; "required": false; }; "titleKey": { "alias": "titleKey"; "required": false; }; "subtitleKey": { "alias": "subtitleKey"; "required": false; }; "availableLabelKey": { "alias": "availableLabelKey"; "required": false; }; "limitLabelKey": { "alias": "limitLabelKey"; "required": false; }; "requireLogged": { "alias": "requireLogged"; "required": false; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MenuEcComponent } from '../abstractions-components';
|
|
3
|
+
import { PriceVisibilityService } from '../../ec-services/price-visibility.service';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
4
5
|
import { AuthService } from '../../ec-services';
|
|
5
6
|
import { Router } from '@angular/router';
|
|
7
|
+
import { BalanceCustomer } from '../../interfaces';
|
|
6
8
|
import { ChannelService } from '../../ec-services';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
/**
|
|
9
11
|
* Componente que se encarga de manejar la funcionalidad del Header.
|
|
10
12
|
*/
|
|
11
|
-
export declare class HeaderEcComponent extends MenuEcComponent {
|
|
13
|
+
export declare class HeaderEcComponent extends MenuEcComponent implements OnInit, OnDestroy {
|
|
12
14
|
channel: string | undefined;
|
|
13
15
|
searchValue: string;
|
|
14
16
|
transparent: boolean;
|
|
15
17
|
isHome: boolean;
|
|
16
18
|
isScrolled: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
balanceAttributes: BalanceCustomer | null;
|
|
20
|
+
private subscriptions;
|
|
19
21
|
__authService: AuthService;
|
|
20
22
|
_channelService: ChannelService;
|
|
23
|
+
readonly priceVisibility: PriceVisibilityService;
|
|
21
24
|
changeDetector: ChangeDetectorRef;
|
|
22
25
|
appRouter: Router;
|
|
23
26
|
platformId: Object;
|
|
27
|
+
private _cartService;
|
|
28
|
+
balanceAttributes$: Observable<BalanceCustomer | null>;
|
|
24
29
|
mobileDropdownOpen: import("@angular/core").WritableSignal<boolean>;
|
|
25
30
|
isMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
26
31
|
logged$: Observable<boolean>;
|
|
@@ -46,6 +51,9 @@ export declare class HeaderEcComponent extends MenuEcComponent {
|
|
|
46
51
|
togglePanel(id: string): void;
|
|
47
52
|
openPanels: import("@angular/core").WritableSignal<Record<string, boolean>>;
|
|
48
53
|
collapseAllMenus(): void;
|
|
54
|
+
get canShowPrices(): boolean;
|
|
55
|
+
ngOnDestroy(): void;
|
|
56
|
+
private subscribeToBalance;
|
|
49
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderEcComponent, never>;
|
|
50
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderEcComponent, "lib-header-ec", never, {}, {}, never, never, true, never>;
|
|
51
59
|
}
|
|
@@ -32,3 +32,4 @@ export * from './reviews-form-ec/reviews-form-ec.component';
|
|
|
32
32
|
export * from './section-container-ec/section-container-ec.component';
|
|
33
33
|
export * from './stores-ec/stores-ec.component';
|
|
34
34
|
export * from './price-range-filter/price-range-filter.component';
|
|
35
|
+
export * from './credit-account-banner-ec/credit-account-banner-ec.component';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { User } from '../../classes';
|
|
2
|
+
import { PriceVisibilityService } from '../../ec-services/price-visibility.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class SidebarEcComponent {
|
|
4
5
|
private _cartService;
|
|
@@ -7,13 +8,13 @@ export declare class SidebarEcComponent {
|
|
|
7
8
|
private _router;
|
|
8
9
|
private _toastrService;
|
|
9
10
|
private _channelService;
|
|
11
|
+
readonly priceVisibility: PriceVisibilityService;
|
|
10
12
|
user: User | null;
|
|
11
13
|
mediaUrl: string;
|
|
12
14
|
promotions: never[];
|
|
13
15
|
variantsToShow: string[];
|
|
14
16
|
hideDiscounts: boolean;
|
|
15
17
|
hideTaxes: boolean;
|
|
16
|
-
creditAccountShowPrices: boolean | null;
|
|
17
18
|
cartItems$: import("rxjs").Observable<any[]>;
|
|
18
19
|
subTotalAmount$: import("rxjs").Observable<number>;
|
|
19
20
|
totalPromotionAmount$: import("rxjs").Observable<number>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { PriceVisibilityService } from '../../../ec-services/price-visibility.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* Componente para manejar la vista del precio de un producto.
|
|
@@ -22,12 +23,9 @@ export declare class PriceEcComponent implements OnInit {
|
|
|
22
23
|
customTaxTemplate: TemplateRef<any> | null;
|
|
23
24
|
customOnlyTaxLabelTemplate: TemplateRef<any> | null;
|
|
24
25
|
private _channelService;
|
|
25
|
-
|
|
26
|
+
readonly priceVisibility: PriceVisibilityService;
|
|
26
27
|
showTaxLegend: boolean;
|
|
27
28
|
hideTaxes: boolean;
|
|
28
|
-
showPricesOnlyToLoggedUsers: boolean;
|
|
29
|
-
logged: boolean;
|
|
30
|
-
hidePrices: boolean;
|
|
31
29
|
ngOnInit(): void;
|
|
32
30
|
/** Determina si mostrar la sección de impuestos */
|
|
33
31
|
get shouldShowTaxes(): boolean;
|
|
@@ -222,6 +222,7 @@ export declare class CartService {
|
|
|
222
222
|
getRemainingCredits: () => Observable<number | undefined>;
|
|
223
223
|
hasSufficientCreditsForCartTotal: () => boolean;
|
|
224
224
|
private validatePriceAndCredits;
|
|
225
|
+
private hasCreditsForNewItem;
|
|
225
226
|
addRepeatOrderToCart(items: any[]): void;
|
|
226
227
|
static ɵfac: i0.ɵɵFactoryDeclaration<CartService, never>;
|
|
227
228
|
static ɵprov: i0.ɵɵInjectableDeclaration<CartService>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Gestiona la visibilidad global de precios según:
|
|
4
|
+
* - configuración del canal (hidePrices, showPricesOnlyToLoggedUsers)
|
|
5
|
+
* - estado de autenticación
|
|
6
|
+
* - restricciones por cuenta corriente (showPrice desde balance)
|
|
7
|
+
*
|
|
8
|
+
* Nota: este servicio no contempla reglas por producto (shouldShowPrice, etc.).
|
|
9
|
+
*/
|
|
10
|
+
export declare class PriceVisibilityService {
|
|
11
|
+
private readonly channelService;
|
|
12
|
+
private readonly authService;
|
|
13
|
+
private readonly cartService;
|
|
14
|
+
private readonly channelConfig;
|
|
15
|
+
private readonly loggedIn;
|
|
16
|
+
private readonly creditAccountShowPrices;
|
|
17
|
+
readonly hidePrices: import("@angular/core").Signal<boolean>;
|
|
18
|
+
readonly showPricesOnlyToLoggedUsers: import("@angular/core").Signal<boolean>;
|
|
19
|
+
readonly canShowPrices: import("@angular/core").Signal<boolean>;
|
|
20
|
+
readonly canShowPrices$: import("rxjs").Observable<boolean>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PriceVisibilityService, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PriceVisibilityService>;
|
|
23
|
+
}
|
|
@@ -11,6 +11,8 @@ export declare class ProductDetailService {
|
|
|
11
11
|
options$: import("rxjs").Observable<any>;
|
|
12
12
|
associatedData$: import("rxjs").Observable<any>;
|
|
13
13
|
private variants;
|
|
14
|
+
private _currentTotalAmount;
|
|
15
|
+
private _balanceCustomer;
|
|
14
16
|
constructor();
|
|
15
17
|
/**
|
|
16
18
|
* Obtengo el producto a traves de su codigo e inicializo la configuración
|
|
@@ -92,6 +94,7 @@ export declare class ProductDetailService {
|
|
|
92
94
|
* @returns
|
|
93
95
|
*/
|
|
94
96
|
private validateQuantity;
|
|
97
|
+
private validatePriceAndCredits;
|
|
95
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductDetailService, never>;
|
|
96
99
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProductDetailService>;
|
|
97
100
|
}
|
|
@@ -7,13 +7,12 @@ export declare class RuntimeConfigService {
|
|
|
7
7
|
private platformId;
|
|
8
8
|
private http;
|
|
9
9
|
private environment;
|
|
10
|
-
private serverRuntimeConfig;
|
|
11
10
|
private configSubject;
|
|
12
11
|
config$: Observable<RuntimeConfig | null>;
|
|
13
12
|
private _config;
|
|
14
13
|
private _loadPromise;
|
|
15
14
|
private _isLoaded;
|
|
16
|
-
constructor(platformId: Object, http: HttpClient, environment: Environment | null
|
|
15
|
+
constructor(platformId: Object, http: HttpClient, environment: Environment | null);
|
|
17
16
|
/**
|
|
18
17
|
* Obtiene configuración de fallback desde environment.ts
|
|
19
18
|
*/
|
|
@@ -65,6 +64,6 @@ export declare class RuntimeConfigService {
|
|
|
65
64
|
* Método helper para construir URLs del frontend
|
|
66
65
|
*/
|
|
67
66
|
buildFrontendUrl(path: string): string;
|
|
68
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeConfigService, [null, null, { optional: true; }
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeConfigService, [null, null, { optional: true; }]>;
|
|
69
68
|
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeConfigService>;
|
|
70
69
|
}
|
package/lib/providers/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, makeEnvironmentProviders } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Token para inyectar la configuración de runtime desde el servidor
|
|
4
|
-
*/
|
|
5
|
-
export const SERVER_RUNTIME_CONFIG = new InjectionToken('server.runtime.config');
|
|
6
|
-
/**
|
|
7
|
-
* Provider para inyectar la configuración de runtime en SSR
|
|
8
|
-
* Debe ser usado en app.config.server.ts
|
|
9
|
-
*
|
|
10
|
-
* @param config Configuración de runtime obtenida desde las variables de entorno del servidor
|
|
11
|
-
*/
|
|
12
|
-
export function provideServerRuntimeConfig(config) {
|
|
13
|
-
return makeEnvironmentProviders([
|
|
14
|
-
{
|
|
15
|
-
provide: SERVER_RUNTIME_CONFIG,
|
|
16
|
-
useValue: config
|
|
17
|
-
}
|
|
18
|
-
]);
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZVNlcnZlclJ1bnRpbWVDb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1lYXN5Y29tbWVyY2UtdjE4L3NyYy9saWIvcHJvdmlkZXJzL3Byb3ZpZGVTZXJ2ZXJSdW50aW1lQ29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBd0IsY0FBYyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRy9GOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0scUJBQXFCLEdBQUcsSUFBSSxjQUFjLENBQWdCLHVCQUF1QixDQUFDLENBQUM7QUFFaEc7Ozs7O0dBS0c7QUFDSCxNQUFNLFVBQVUsMEJBQTBCLENBQUMsTUFBcUI7SUFDOUQsT0FBTyx3QkFBd0IsQ0FBQztRQUM5QjtZQUNFLE9BQU8sRUFBRSxxQkFBcUI7WUFDOUIsUUFBUSxFQUFFLE1BQU07U0FDakI7S0FDRixDQUFDLENBQUM7QUFDTCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRW52aXJvbm1lbnRQcm92aWRlcnMsIEluamVjdGlvblRva2VuLCBtYWtlRW52aXJvbm1lbnRQcm92aWRlcnMgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHsgUnVudGltZUNvbmZpZyB9IGZyb20gJy4uL2ludGVyZmFjZXMvcnVudGltZS1jb25maWcnO1xyXG5cclxuLyoqXHJcbiAqIFRva2VuIHBhcmEgaW55ZWN0YXIgbGEgY29uZmlndXJhY2nDs24gZGUgcnVudGltZSBkZXNkZSBlbCBzZXJ2aWRvclxyXG4gKi9cclxuZXhwb3J0IGNvbnN0IFNFUlZFUl9SVU5USU1FX0NPTkZJRyA9IG5ldyBJbmplY3Rpb25Ub2tlbjxSdW50aW1lQ29uZmlnPignc2VydmVyLnJ1bnRpbWUuY29uZmlnJyk7XHJcblxyXG4vKipcclxuICogUHJvdmlkZXIgcGFyYSBpbnllY3RhciBsYSBjb25maWd1cmFjacOzbiBkZSBydW50aW1lIGVuIFNTUlxyXG4gKiBEZWJlIHNlciB1c2FkbyBlbiBhcHAuY29uZmlnLnNlcnZlci50c1xyXG4gKiBcclxuICogQHBhcmFtIGNvbmZpZyBDb25maWd1cmFjacOzbiBkZSBydW50aW1lIG9idGVuaWRhIGRlc2RlIGxhcyB2YXJpYWJsZXMgZGUgZW50b3JubyBkZWwgc2Vydmlkb3JcclxuICovXHJcbmV4cG9ydCBmdW5jdGlvbiBwcm92aWRlU2VydmVyUnVudGltZUNvbmZpZyhjb25maWc6IFJ1bnRpbWVDb25maWcpOiBFbnZpcm9ubWVudFByb3ZpZGVycyB7XHJcbiAgcmV0dXJuIG1ha2VFbnZpcm9ubWVudFByb3ZpZGVycyhbXHJcbiAgICB7XHJcbiAgICAgIHByb3ZpZGU6IFNFUlZFUl9SVU5USU1FX0NPTkZJRyxcclxuICAgICAgdXNlVmFsdWU6IGNvbmZpZ1xyXG4gICAgfVxyXG4gIF0pO1xyXG59XHJcbiJdfQ==
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EnvironmentProviders, InjectionToken } from '@angular/core';
|
|
2
|
-
import { RuntimeConfig } from '../interfaces/runtime-config';
|
|
3
|
-
/**
|
|
4
|
-
* Token para inyectar la configuración de runtime desde el servidor
|
|
5
|
-
*/
|
|
6
|
-
export declare const SERVER_RUNTIME_CONFIG: InjectionToken<RuntimeConfig>;
|
|
7
|
-
/**
|
|
8
|
-
* Provider para inyectar la configuración de runtime en SSR
|
|
9
|
-
* Debe ser usado en app.config.server.ts
|
|
10
|
-
*
|
|
11
|
-
* @param config Configuración de runtime obtenida desde las variables de entorno del servidor
|
|
12
|
-
*/
|
|
13
|
-
export declare function provideServerRuntimeConfig(config: RuntimeConfig): EnvironmentProviders;
|