simpo-component-library 1.4.113 → 1.4.115

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,4 +1,4 @@
1
- import { OnInit, NgZone, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { OnInit, NgZone, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
2
2
  import { RestService } from '../../../services/rest.service';
3
3
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
4
4
  import { Router } from '@angular/router';
@@ -15,8 +15,8 @@ export declare class AddressComponent implements OnInit, OnChanges {
15
15
  responseData: any;
16
16
  data: any;
17
17
  selectedAddressIdx: number;
18
+ selectedAddress: EventEmitter<number>;
18
19
  constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
19
- addressList: any[];
20
20
  address: any;
21
21
  isCart: boolean;
22
22
  private latitute;
@@ -41,7 +41,8 @@ export declare class AddressComponent implements OnInit, OnChanges {
41
41
  getAddress(): void;
42
42
  onLocationSelected(location: any): void;
43
43
  onAutocompleteSelected(result: any): void;
44
+ addressSelected(index: number): void;
44
45
  updateAddress(): void;
45
46
  static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; }, {}, never, never, true, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; }, { "selectedAddress": "selectedAddress"; }, never, never, true, never>;
47
48
  }
@@ -23,13 +23,13 @@ export declare class CartComponent extends BaseSection implements OnInit {
23
23
  edit?: boolean;
24
24
  delete?: boolean;
25
25
  isLoading: boolean;
26
- selectedAddress: any;
27
26
  styles?: CartSectionStylesModel;
28
27
  currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
29
28
  constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, messageService: MessageService);
30
29
  private loadingItems;
31
30
  private userDetails;
32
31
  private USER_CART_ITEMS;
32
+ selectedAddressIdx: number;
33
33
  cartInfo: any;
34
34
  ngOnInit(): void;
35
35
  getIndexDBData(): void;
@@ -39,6 +39,7 @@ export declare class CartComponent extends BaseSection implements OnInit {
39
39
  addToCart(item: any, type: 'ADD' | 'SUBSTRACT'): void;
40
40
  proceedToPayment(): void;
41
41
  isItemLoading(itemId: string): boolean;
42
+ addressSelected(index: number): void;
42
43
  get getAddressList(): import("../../styles/user.modal").AddressDetails[];
43
44
  get isMobile(): boolean;
44
45
  get currency(): string;
@@ -39,6 +39,8 @@ export declare class ProductListComponent extends BaseSection {
39
39
  sortBy: string | null;
40
40
  private USER_CART;
41
41
  private USER_WISHLIST;
42
+ minProductPrice: number;
43
+ maxProductPrice: number;
42
44
  filteringArray: {
43
45
  name: string;
44
46
  value: string;
@@ -12,6 +12,8 @@ export interface ProductListStylesModal {
12
12
  background: BackgroundModel;
13
13
  elementInRow: number;
14
14
  mobileColumn: number;
15
+ maxPrice: number;
16
+ minPrice: number;
15
17
  animation: AnimationModel;
16
18
  }
17
19
  export interface ProductListContentModal {
@@ -8,6 +8,7 @@ import { RestService } from "../../../services/rest.service";
8
8
  import { StorageServiceService } from '../../../services/storage.service';
9
9
  import { User } from '../../styles/user.modal';
10
10
  import { MatDialog } from '@angular/material/dialog';
11
+ import { CookieService } from 'ngx-cookie-service';
11
12
  import * as i0 from "@angular/core";
12
13
  export declare class UserProfileComponent extends BaseSection implements OnInit {
13
14
  private readonly router;
@@ -15,7 +16,8 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
15
16
  private readonly restService;
16
17
  private readonly storageService;
17
18
  private readonly matDialog;
18
- constructor(router: Router, _eventService: EventsService, restService: RestService, storageService: StorageServiceService, matDialog: MatDialog);
19
+ private readonly cookieService;
20
+ constructor(router: Router, _eventService: EventsService, restService: RestService, storageService: StorageServiceService, matDialog: MatDialog, cookieService: CookieService);
19
21
  data?: UserProfileModal;
20
22
  index?: number;
21
23
  edit?: boolean;
@@ -53,6 +55,7 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
53
55
  get getCardBGColor(): string;
54
56
  private getComplementColor;
55
57
  private convertHEX;
58
+ get currency(): string;
56
59
  static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
57
60
  static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "simpo-user-profile", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
58
61
  }
@@ -8,7 +8,6 @@ export declare class CartService {
8
8
  private readonly storageService;
9
9
  private readonly restService;
10
10
  constructor(storageService: StorageServiceService, restService: RestService);
11
- ngOnInit(): void;
12
11
  addItemFromCartPage(product: OrderedItems, userCart: any): import("rxjs").Observable<Object>;
13
12
  addItemToCart(product: Product | OrderedItems): void | IDBRequest<IDBValidKey>;
14
13
  addItemToFavourite(product: Product): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.113",
3
+ "version": "1.4.115",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file