ng-easycommerce 0.0.581 → 0.0.583
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/bundles/ng-easycommerce.umd.js +43 -10
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/ec-component/account-ec/order-ec/order-ec.component.js +10 -2
- package/esm2015/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +15 -4
- package/esm2015/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +15 -4
- package/esm2015/lib/ec-component/product-detail-ec/product-detail-ec.component.js +11 -3
- package/esm5/lib/ec-component/account-ec/order-ec/order-ec.component.js +10 -2
- package/esm5/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +15 -4
- package/esm5/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +15 -4
- package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +11 -3
- package/fesm2015/ng-easycommerce.js +43 -10
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +43 -10
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/account-ec/order-ec/order-ec.component.d.ts +2 -0
- package/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.d.ts +5 -1
- package/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.d.ts +5 -1
- package/lib/ec-component/product-detail-ec/product-detail-ec.component.d.ts +4 -1
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,8 @@ export declare class OrderEcComponent extends ComponentHelper implements OnInit
|
|
|
20
20
|
error: any;
|
|
21
21
|
numberOrder: any;
|
|
22
22
|
allowRepeatOrders: boolean;
|
|
23
|
+
showPrice: boolean;
|
|
24
|
+
creditAmountConfigured: boolean;
|
|
23
25
|
constructor(ordersService: OrdersService, activedRoute: ActivatedRoute, router: Router, consts: Constants, cartService: CartService, channelConfigService: ChannelConfigService);
|
|
24
26
|
ngOnInit(): void;
|
|
25
27
|
toDate: (date: any, format: any) => string;
|
|
@@ -3,16 +3,20 @@ import { Router } from '@angular/router';
|
|
|
3
3
|
import { ComponentHelper } from '../../../classes/component-helper';
|
|
4
4
|
import { Constants } from '../../../core.consts';
|
|
5
5
|
import { OrdersService } from '../../../services/account/orders.service';
|
|
6
|
+
import { CartService } from '../../../services/cart.service';
|
|
6
7
|
export declare class OrdersEcComponent extends ComponentHelper implements OnInit {
|
|
7
8
|
ordersService: OrdersService;
|
|
8
9
|
router: Router;
|
|
9
10
|
protected consts: Constants;
|
|
11
|
+
private cartService;
|
|
10
12
|
mediaUrl: any;
|
|
11
13
|
orders: any;
|
|
12
14
|
loading: boolean;
|
|
13
15
|
error: any;
|
|
14
16
|
sortValue: any;
|
|
15
17
|
showImage: boolean;
|
|
18
|
+
showPrice: boolean;
|
|
19
|
+
creditAmountConfigured: boolean;
|
|
16
20
|
/**
|
|
17
21
|
* @description name -> nombre de clave de valuesToSort; asc -> true: ascendente, false: descendente
|
|
18
22
|
*/
|
|
@@ -21,7 +25,7 @@ export declare class OrdersEcComponent extends ComponentHelper implements OnInit
|
|
|
21
25
|
* @description true -> ordena de forma ascendente | false -> ordena de forma decreciente
|
|
22
26
|
*/
|
|
23
27
|
valuesToSort: any;
|
|
24
|
-
constructor(ordersService: OrdersService, router: Router, consts: Constants);
|
|
28
|
+
constructor(ordersService: OrdersService, router: Router, consts: Constants, cartService: CartService);
|
|
25
29
|
ngOnInit(): void;
|
|
26
30
|
sortedByNewest: (orders: any) => any;
|
|
27
31
|
goToOrder: (order: any) => void;
|
|
@@ -2,13 +2,17 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { ComponentHelper } from '../../../classes/component-helper';
|
|
3
3
|
import { CheckoutData } from '../../../interfaces/checkout-data';
|
|
4
4
|
import { CheckoutService } from '../../../services/checkout/checkout.service';
|
|
5
|
+
import { CartService } from '../../../services/cart.service';
|
|
5
6
|
export declare class DetailCheckoutBlockEcComponent extends ComponentHelper implements OnInit {
|
|
6
7
|
checkoutService: CheckoutService;
|
|
8
|
+
private cartService;
|
|
7
9
|
asociatedData: any;
|
|
8
10
|
data: any;
|
|
9
11
|
discountTotal: number;
|
|
10
12
|
couponTotal: number;
|
|
11
|
-
|
|
13
|
+
showPrice: boolean;
|
|
14
|
+
creditAmountConfigured: boolean;
|
|
15
|
+
constructor(checkoutService: CheckoutService, cartService: CartService);
|
|
12
16
|
ngOnInit(): void;
|
|
13
17
|
calcularTotales(): void;
|
|
14
18
|
getIcon: (data_item: CheckoutData) => "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";
|
|
@@ -9,6 +9,7 @@ import { ProductDetailService } from '../../services/products/product-detail.ser
|
|
|
9
9
|
import { ProductsService } from '../../services/products/products.service';
|
|
10
10
|
import { ToastService } from '../../utils/toast.service';
|
|
11
11
|
import { Meta } from '@angular/platform-browser';
|
|
12
|
+
import { Injector } from '@angular/core';
|
|
12
13
|
export declare class ProductDetailEcComponent extends ComponentHelper implements OnInit {
|
|
13
14
|
productService: ProductDetailService;
|
|
14
15
|
consts: Constants;
|
|
@@ -20,6 +21,7 @@ export declare class ProductDetailEcComponent extends ComponentHelper implements
|
|
|
20
21
|
router: Router;
|
|
21
22
|
protected toastrService: ToastService;
|
|
22
23
|
private meta;
|
|
24
|
+
injector: Injector;
|
|
23
25
|
product: any;
|
|
24
26
|
mediaUrl: any;
|
|
25
27
|
show: boolean;
|
|
@@ -29,8 +31,9 @@ export declare class ProductDetailEcComponent extends ComponentHelper implements
|
|
|
29
31
|
code: any;
|
|
30
32
|
focusImage: string;
|
|
31
33
|
owlOptions: {};
|
|
34
|
+
showReviews: boolean;
|
|
32
35
|
contact: ElementRef;
|
|
33
|
-
constructor(productService: ProductDetailService, consts: Constants, activedRoute: ActivatedRoute, cartService: CartService, optionsService: OptionsService, productsService: ProductsService, analyticsService: AnalyticsService, router: Router, toastrService: ToastService, meta: Meta);
|
|
36
|
+
constructor(productService: ProductDetailService, consts: Constants, activedRoute: ActivatedRoute, cartService: CartService, optionsService: OptionsService, productsService: ProductsService, analyticsService: AnalyticsService, router: Router, toastrService: ToastService, meta: Meta, injector: Injector);
|
|
34
37
|
deleteHTML(cadena: string): string;
|
|
35
38
|
ngOnInit(): void;
|
|
36
39
|
addToCart: () => void;
|