simpo-component-library 1.4.301 → 1.4.302

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,13 +3,16 @@ import { RestService } from '../../../services/rest.service';
3
3
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
4
4
  import { Router } from '@angular/router';
5
5
  import { StorageServiceService } from '../../../services/storage.service';
6
+ import { AddressDetails } from '../../styles/user.modal';
6
7
  import { EventsService } from '../../../services/events.service';
7
8
  import BaseSection from '../../../sections/BaseSection';
9
+ import { MatBottomSheet } from '@angular/material/bottom-sheet';
8
10
  import * as i0 from "@angular/core";
9
11
  export declare class AddressComponent extends BaseSection implements OnInit, OnChanges {
10
12
  private readonly ngZone;
11
13
  private readonly restService;
12
14
  private readonly matDialog;
15
+ private readonly matBottomsheet;
13
16
  private readonly router;
14
17
  private readonly storageService;
15
18
  private readonly _eventService;
@@ -23,8 +26,8 @@ export declare class AddressComponent extends BaseSection implements OnInit, OnC
23
26
  addressList: any;
24
27
  selectedAddressIdx: number;
25
28
  selectedAddress: EventEmitter<number>;
26
- constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, _eventService: EventsService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
27
- address: any;
29
+ constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, matBottomsheet: MatBottomSheet, router: Router, storageService: StorageServiceService, _eventService: EventsService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
30
+ address: AddressDetails;
28
31
  isCart: boolean;
29
32
  private editIndex;
30
33
  private latitute;
@@ -57,6 +60,7 @@ export declare class AddressComponent extends BaseSection implements OnInit, OnC
57
60
  validateName(event: KeyboardEvent): void;
58
61
  editSection(): void;
59
62
  get isEmailValid(): boolean;
60
- static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
63
+ get isMobile(): boolean;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
61
65
  static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; }, { "selectedAddress": "selectedAddress"; }, never, never, true, never>;
62
66
  }
@@ -36,6 +36,7 @@ export declare class CartComponent extends BaseSection implements OnInit {
36
36
  ngOnInit(): void;
37
37
  getIndexDBData(): void;
38
38
  proceedToCheckout(): void;
39
+ goToProductDetails(product: OrderedItems): void;
39
40
  proceedToListPage(): void;
40
41
  removeItem(item: OrderedItems): void;
41
42
  private moveItemToWishlist;
@@ -24,6 +24,7 @@ export declare class FeaturedCategoryComponent extends BaseSection {
24
24
  redirectToListPage(category: string): void;
25
25
  getAllCategories(): void;
26
26
  editSection(): void;
27
+ get isMobile(): boolean;
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCategoryComponent, never>;
28
29
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCategoryComponent, "simpo-featured-category", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
29
30
  }
@@ -25,6 +25,7 @@ export interface AddressDetails {
25
25
  localityName: string;
26
26
  addressLine1: string;
27
27
  landmark: string;
28
+ stateCode: string;
28
29
  zipCode: string;
29
30
  addressType: ADDRESS_TYPE;
30
31
  geolocation: Geolocation;
@@ -33,6 +34,5 @@ export interface Geolocation {
33
34
  latitude: number;
34
35
  longitude: number;
35
36
  }
36
- declare type ADDRESS_TYPE = "HOME" | "WORK" | "OTHER";
37
+ export declare type ADDRESS_TYPE = "HOME" | "WORK" | "OTHER";
37
38
  export declare type GENDER = "MALE" | "FEMALE" | "OTHERS";
38
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.301",
3
+ "version": "1.4.302",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",