ng-easycommerce-v18 0.1.5 → 0.2.1
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 +6 -1
- package/esm2022/lib/ec-components/account-ec/order-ec/order-ec.component.mjs +5 -9
- 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 +2 -1
- package/esm2022/lib/ec-components/auth-ec/password-reset-ec/password-reset-ec.component.mjs +105 -0
- package/esm2022/lib/ec-components/checkout-ec/success-ec/success-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/product-detail-ec/product-detail-ec.component.mjs +7 -2
- package/esm2022/lib/ec-components/related-products-ec/related-products-ec.component.mjs +27 -16
- package/esm2022/lib/ec-components/sidebar-ec/sidebar-ec.component.mjs +5 -1
- package/esm2022/lib/ec-services/auth.service.mjs +7 -1
- package/esm2022/lib/ec-services/cart.service.mjs +51 -32
- package/esm2022/lib/ec-services/checkout.service.mjs +2 -1
- package/fesm2022/ng-easycommerce-v18.mjs +210 -74
- package/fesm2022/ng-easycommerce-v18.mjs.map +1 -1
- package/lib/ec-components/account-ec/order-ec/order-ec.component.d.ts +1 -2
- package/lib/ec-components/auth-ec/index.d.ts +1 -0
- package/lib/ec-components/auth-ec/password-reset-ec/password-reset-ec.component.d.ts +29 -0
- package/lib/ec-components/product-detail-ec/product-detail-ec.component.d.ts +2 -0
- package/lib/ec-components/related-products-ec/related-products-ec.component.d.ts +4 -2
- package/lib/ec-components/sidebar-ec/sidebar-ec.component.d.ts +1 -0
- package/lib/ec-services/auth.service.d.ts +2 -0
- package/lib/ec-services/cart.service.d.ts +8 -7
- package/package.json +1 -1
|
@@ -12,8 +12,7 @@ export declare class OrderEcComponent implements OnInit {
|
|
|
12
12
|
order$: Observable<any>;
|
|
13
13
|
allowRepeatOrders: boolean;
|
|
14
14
|
loading: boolean;
|
|
15
|
-
|
|
16
|
-
creditAmountConfigured: boolean;
|
|
15
|
+
creditAccountShowPrices: boolean | null;
|
|
17
16
|
hidePrices: boolean;
|
|
18
17
|
hideDiscounts: boolean;
|
|
19
18
|
hideTaxes: boolean;
|
|
@@ -4,3 +4,4 @@ export * from './forgot-password-ec/forgot-password-ec.component';
|
|
|
4
4
|
export * from './confirm-account-ec/confirm-account-ec.component';
|
|
5
5
|
export * from './register-form-ec/register-form-ec.component';
|
|
6
6
|
export * from './register-wholesaler-form-ec/register-wholesaler-form-ec.component';
|
|
7
|
+
export * from './password-reset-ec/password-reset-ec.component';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { ComponentHelper } from '../../../classes/component-helper';
|
|
5
|
+
import { AuthService, ToastService } from '../../../ec-services';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PasswordResetEcComponent extends ComponentHelper implements OnInit {
|
|
8
|
+
protected authService: AuthService;
|
|
9
|
+
protected toastr: ToastService;
|
|
10
|
+
protected activedRoute: ActivatedRoute;
|
|
11
|
+
router: Router;
|
|
12
|
+
protected formBuilder: FormBuilder;
|
|
13
|
+
email: string;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
ready: boolean;
|
|
16
|
+
protected token: string | undefined;
|
|
17
|
+
formGroup: FormGroup;
|
|
18
|
+
constructor(authService: AuthService, toastr: ToastService, activedRoute: ActivatedRoute, router: Router, formBuilder: FormBuilder);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
sendNewPassword: (event: Event) => void;
|
|
21
|
+
invalidForm: () => boolean;
|
|
22
|
+
processOk: (response: any) => void;
|
|
23
|
+
processError: (response: any) => void;
|
|
24
|
+
sendToLogin: () => Promise<boolean>;
|
|
25
|
+
showPassword: () => void;
|
|
26
|
+
showPassword2: () => void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordResetEcComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PasswordResetEcComponent, "app-password-reset-ec", never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -6,6 +6,7 @@ import { Observable } from 'rxjs';
|
|
|
6
6
|
import { Product } from '../../interfaces';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ProductDetailEcComponent {
|
|
9
|
+
private _cartService;
|
|
9
10
|
private _optionsService;
|
|
10
11
|
private _productDetailService;
|
|
11
12
|
private _productService;
|
|
@@ -31,6 +32,7 @@ export declare class ProductDetailEcComponent {
|
|
|
31
32
|
quantity: WritableSignal<number>;
|
|
32
33
|
parameters$: Observable<Parameter[] | null>;
|
|
33
34
|
hasParams: (params: any, code: string) => any;
|
|
35
|
+
creditAccountShowPrices: boolean | null;
|
|
34
36
|
constructor();
|
|
35
37
|
ngOnInit(): void;
|
|
36
38
|
updateMetaTags(product: Product): void;
|
|
@@ -2,8 +2,9 @@ import { TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { SwiperContainer } from 'swiper/element';
|
|
4
4
|
import { SwiperOptions } from 'swiper/types';
|
|
5
|
+
import { BlockEcComponent } from '../abstractions-components';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class RelatedProductsEcComponent {
|
|
7
|
+
export declare class RelatedProductsEcComponent extends BlockEcComponent {
|
|
7
8
|
private _productsService;
|
|
8
9
|
private _analyticsService;
|
|
9
10
|
private _router;
|
|
@@ -21,10 +22,11 @@ export declare class RelatedProductsEcComponent {
|
|
|
21
22
|
private _relatedProductsSubject;
|
|
22
23
|
relatedProducts$: Observable<any[]>;
|
|
23
24
|
private keywordsToCompare;
|
|
24
|
-
|
|
25
|
+
swiperOptions: () => SwiperOptions;
|
|
25
26
|
constructor();
|
|
26
27
|
ngOnInit(): void;
|
|
27
28
|
private load;
|
|
29
|
+
private initSwiper;
|
|
28
30
|
includeKeyword: (word: string) => boolean;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<RelatedProductsEcComponent, never>;
|
|
30
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<RelatedProductsEcComponent, "app-related-products-ec", never, { "appProduct": { "alias": "appProduct"; "required": false; }; "productID": { "alias": "productID"; "required": true; }; }, {}, never, never, true, never>;
|
|
@@ -13,6 +13,7 @@ export declare class SidebarEcComponent {
|
|
|
13
13
|
variantsToShow: string[];
|
|
14
14
|
hideDiscounts: boolean;
|
|
15
15
|
hideTaxes: boolean;
|
|
16
|
+
creditAccountShowPrices: boolean | null;
|
|
16
17
|
cartItems$: import("rxjs").Observable<any[]>;
|
|
17
18
|
subTotalAmount$: import("rxjs").Observable<number>;
|
|
18
19
|
totalPromotionAmount$: import("rxjs").Observable<number>;
|
|
@@ -60,6 +60,7 @@ export declare class AuthService {
|
|
|
60
60
|
private channelApi;
|
|
61
61
|
private tokenApi;
|
|
62
62
|
private recoverPasswordApi;
|
|
63
|
+
private resetPasswordApi;
|
|
63
64
|
private confirmAccountApi;
|
|
64
65
|
private registerApi;
|
|
65
66
|
private registerWholesalerApi;
|
|
@@ -157,6 +158,7 @@ export declare class AuthService {
|
|
|
157
158
|
* @returns
|
|
158
159
|
*/
|
|
159
160
|
private loadUserFromStorage;
|
|
161
|
+
passwordReset: (new_password: string, token: string) => Observable<any>;
|
|
160
162
|
/**
|
|
161
163
|
* Envia la solicitud para cambiar la contraseña.
|
|
162
164
|
* @param email email del solicitante.
|
|
@@ -29,12 +29,12 @@ export declare class CartService {
|
|
|
29
29
|
cart$: Observable<any>;
|
|
30
30
|
loading$: Observable<boolean>;
|
|
31
31
|
private _haveToUpdate;
|
|
32
|
-
balanceCustomer$: Observable<BalanceCustomer>;
|
|
33
|
-
allowAnyPaymentMethod$: Observable<boolean |
|
|
34
|
-
allowExceedBalance$: Observable<boolean |
|
|
35
|
-
creditAmount$: Observable<number | null
|
|
36
|
-
showMax$: Observable<boolean |
|
|
37
|
-
showPrice$: Observable<boolean |
|
|
32
|
+
balanceCustomer$: Observable<BalanceCustomer | null>;
|
|
33
|
+
allowAnyPaymentMethod$: Observable<boolean | null>;
|
|
34
|
+
allowExceedBalance$: Observable<boolean | null>;
|
|
35
|
+
creditAmount$: Observable<number | null>;
|
|
36
|
+
showMax$: Observable<boolean | null>;
|
|
37
|
+
showPrice$: Observable<boolean | null>;
|
|
38
38
|
promotions$: Observable<any>;
|
|
39
39
|
private _cartBaseUrl;
|
|
40
40
|
updateItemQuantityApi(item_id: any): string;
|
|
@@ -212,11 +212,12 @@ export declare class CartService {
|
|
|
212
212
|
private getCartByCustomer;
|
|
213
213
|
private resetCart;
|
|
214
214
|
clearAndResetCart(): void;
|
|
215
|
-
updateBalanceAttributes(
|
|
215
|
+
updateBalanceAttributes(balance: any, total?: number | null): void;
|
|
216
216
|
addToLot(product: Product, quantity: number, variant_id: any, id?: number, order_item_id?: any, lot_quantity?: any, unit_price?: any, unit_total?: any, ajustement_total?: any, total_lot?: number, lot_status?: string, date_request?: string, notes?: string, shipping_address_id?: number, shipping_address_name?: string, action?: string): void;
|
|
217
217
|
getCreditAmount: () => Observable<number | null>;
|
|
218
218
|
getRemainingCredits: () => Observable<number | undefined>;
|
|
219
219
|
hasSufficientCreditsForCartTotal: () => boolean;
|
|
220
|
+
private validatePriceAndCredits;
|
|
220
221
|
static ɵfac: i0.ɵɵFactoryDeclaration<CartService, never>;
|
|
221
222
|
static ɵprov: i0.ɵɵInjectableDeclaration<CartService>;
|
|
222
223
|
}
|