ng-easycommerce 0.0.624 → 0.0.626

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.
@@ -1,11 +1,13 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
- import { FormGroup, FormBuilder } from '@angular/forms';
2
+ import { FormGroup, FormBuilder, ValidatorFn } from '@angular/forms';
3
3
  import { Router } from "@angular/router";
4
4
  import { ComponentHelper } from '../../../classes/component-helper';
5
5
  import { AnalyticsService } from '../../../services/analytics.service';
6
6
  import { AuthService } from '../../../services/auth.service';
7
7
  import { ToastService } from '../../../utils/toast.service';
8
8
  import { ChannelConfigService } from '../../../services/channel-config.service';
9
+ import { BehaviorSubject } from 'rxjs';
10
+ import { Constants } from '../../../core.consts';
9
11
  export declare class RegisterFormEcComponent extends ComponentHelper implements OnInit {
10
12
  authService: AuthService;
11
13
  protected toastr: ToastService;
@@ -13,6 +15,13 @@ export declare class RegisterFormEcComponent extends ComponentHelper implements
13
15
  analyticsService: AnalyticsService;
14
16
  protected formBuilder: FormBuilder;
15
17
  private channelConfigService;
18
+ consts: Constants;
19
+ protected provincesSubject: BehaviorSubject<any[]>;
20
+ protected countriesSubject: BehaviorSubject<any[]>;
21
+ protected documentTypesSubject: BehaviorSubject<any[]>;
22
+ provinces$: import("rxjs").Observable<any[]>;
23
+ countries$: import("rxjs").Observable<any[]>;
24
+ documentTypes$: import("rxjs").Observable<any[]>;
16
25
  isLogged: Boolean;
17
26
  darkMode: boolean;
18
27
  redirect: boolean;
@@ -25,10 +34,15 @@ export declare class RegisterFormEcComponent extends ComponentHelper implements
25
34
  registroUsuario: any;
26
35
  isAccountVerificationRequired: boolean;
27
36
  isSendWelcomeEmail: boolean;
28
- constructor(authService: AuthService, toastr: ToastService, router: Router, analyticsService: AnalyticsService, formBuilder: FormBuilder, channelConfigService: ChannelConfigService);
37
+ constructor(authService: AuthService, toastr: ToastService, router: Router, analyticsService: AnalyticsService, formBuilder: FormBuilder, channelConfigService: ChannelConfigService, consts: Constants);
29
38
  ngOnInit(): void;
30
39
  setProp: (prop: any, event: any) => void;
31
40
  redirectHome: () => void;
32
41
  register: (event: any) => void;
33
- prueba(): void;
42
+ direccionCompletaValidator(): ValidatorFn;
43
+ optionalMaxLengthValidator(max: number): ValidatorFn;
44
+ onCountrySelected: (value: any) => void;
45
+ onGenderSelected: (value: any) => void;
46
+ onProvincesSelected: (value: any) => void;
47
+ private normalizeRegisterData;
34
48
  }
@@ -42,7 +42,7 @@ export declare class CartEcComponent extends ComponentHelper implements OnInit {
42
42
  updateLoggedIn(): void;
43
43
  ngOnInit(): void;
44
44
  toDecimal: (amount: any) => any;
45
- actualizarCantidad: (item: any, cantidad: any, stock: any, id?: any) => void;
45
+ protected actualizarCantidad(item: any, cantidad: number | string, stock: number, id?: string): void;
46
46
  redirectCheckout(): boolean;
47
47
  redirectRegister: () => Promise<boolean>;
48
48
  openModal(template: TemplateRef<any>): void;
@@ -22,7 +22,7 @@ export declare class SidebarEcComponent {
22
22
  showTaxLegend: boolean;
23
23
  constructor(cartService: CartService, consts: Constants, authService: AuthService, router: Router, toastrService: ToastService, channelConfigService: ChannelConfigService);
24
24
  ngOnInit(): void;
25
- actualizarCantidad: (item: any, cantidad: any, stock: any, id?: any) => void;
25
+ protected actualizarCantidad(item: any, cantidad: number | string, stock: number, id?: string): void;
26
26
  redirectDetailProduct(product: any): void;
27
27
  getVariants: (product: any) => any[];
28
28
  createDiscountMessage(saleprice: number, price: number): string;