simpo-component-library 1.4.90 → 1.4.101

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.
Files changed (94) hide show
  1. package/esm2022/lib/directive/background-directive.mjs +1 -1
  2. package/esm2022/lib/directive/border-directive.mjs +23 -11
  3. package/esm2022/lib/directive/spacing-horizontal.directive.mjs +48 -0
  4. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +38 -19
  5. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +37 -26
  6. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +179 -42
  7. package/esm2022/lib/ecommerce/sections/cart/cart.modal.mjs +1 -1
  8. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +4 -4
  9. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +50 -29
  10. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +11 -2
  11. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +37 -4
  12. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +45 -25
  13. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
  14. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +72 -22
  15. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +18 -15
  16. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +111 -22
  17. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
  18. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +105 -12
  19. package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +2 -2
  20. package/esm2022/lib/ecommerce/styles/cart.modal.mjs +2 -1
  21. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +3 -3
  22. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +3 -4
  23. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -7
  24. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +7 -7
  25. package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
  26. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +3 -3
  27. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +3 -3
  28. package/esm2022/lib/services/cart.service.mjs +39 -109
  29. package/esm2022/lib/services/endUser.service.mjs +28 -0
  30. package/esm2022/lib/services/events.service.mjs +3 -2
  31. package/esm2022/lib/services/rest.service.mjs +5 -2
  32. package/esm2022/lib/services/storage.service.mjs +76 -30
  33. package/esm2022/lib/styles/index.mjs +8 -1
  34. package/esm2022/lib/styles/style.model.mjs +1 -1
  35. package/esm2022/lib/styles/types.mjs +1 -1
  36. package/esm2022/public-api.mjs +2 -7
  37. package/fesm2022/simpo-component-library.mjs +1000 -1030
  38. package/fesm2022/simpo-component-library.mjs.map +1 -1
  39. package/lib/directive/spacing-horizontal.directive.d.ts +18 -0
  40. package/lib/ecommerce/sections/address/address.component.d.ts +9 -5
  41. package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +16 -4
  42. package/lib/ecommerce/sections/cart/cart.component.d.ts +7 -2
  43. package/lib/ecommerce/sections/cart/cart.modal.d.ts +10 -1
  44. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +6 -3
  45. package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +4 -1
  46. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +9 -1
  47. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +6 -2
  48. package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +2 -1
  49. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +14 -1
  50. package/lib/ecommerce/sections/user-basic-info/user-basic-info.component.d.ts +5 -1
  51. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +29 -9
  52. package/lib/ecommerce/sections/user-profile/user-profile.modal.d.ts +5 -8
  53. package/lib/ecommerce/sections/whislist/whislist.component.d.ts +10 -2
  54. package/lib/ecommerce/styles/OrderedItems.modal.d.ts +1 -1
  55. package/lib/ecommerce/styles/cart.modal.d.ts +1 -0
  56. package/lib/sections/choose-us-section/choose-us-section.component.d.ts +0 -1
  57. package/lib/services/cart.service.d.ts +8 -5
  58. package/lib/services/endUser.service.d.ts +13 -0
  59. package/lib/services/events.service.d.ts +4 -3
  60. package/lib/services/rest.service.d.ts +1 -0
  61. package/lib/services/storage.service.d.ts +11 -44
  62. package/lib/styles/index.d.ts +6 -0
  63. package/lib/styles/style.model.d.ts +4 -1
  64. package/lib/styles/types.d.ts +1 -0
  65. package/package.json +1 -1
  66. package/public-api.d.ts +1 -6
  67. package/simpo-component-library-1.4.101.tgz +0 -0
  68. package/esm2022/lib/directive/removeCarousel-directive.mjs +0 -73
  69. package/esm2022/lib/ecommerce/json/user-cart.json +0 -40
  70. package/esm2022/lib/ecommerce/json/user-details.json +0 -15
  71. package/esm2022/lib/ecommerce/json/user-favourite.json +0 -32
  72. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +0 -166
  73. package/esm2022/lib/sections/carousel-banner/carousel-banner.model.mjs +0 -2
  74. package/esm2022/lib/sections/qrcode1/qrcode1.component.mjs +0 -96
  75. package/esm2022/lib/sections/qrcode1/qrcode1.model.mjs +0 -2
  76. package/esm2022/lib/sections/qrscanner-2/sanjana-testing.component.mjs +0 -96
  77. package/esm2022/lib/sections/qrscanner-2/sanjana-testing.modal.mjs +0 -2
  78. package/esm2022/lib/sections/rajesh-testing/Rajesh-model.mjs +0 -2
  79. package/esm2022/lib/sections/rajesh-testing/rajesh-testing.component.mjs +0 -95
  80. package/esm2022/lib/sections/scanner-section/scanner-section.component.mjs +0 -111
  81. package/esm2022/lib/sections/scanner-section/scanner-section.modal.mjs +0 -2
  82. package/lib/directive/removeCarousel-directive.d.ts +0 -35
  83. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +0 -28
  84. package/lib/sections/carousel-banner/carousel-banner.model.d.ts +0 -42
  85. package/lib/sections/qrcode1/qrcode1.component.d.ts +0 -21
  86. package/lib/sections/qrcode1/qrcode1.model.d.ts +0 -30
  87. package/lib/sections/qrscanner-2/sanjana-testing.component.d.ts +0 -21
  88. package/lib/sections/qrscanner-2/sanjana-testing.modal.d.ts +0 -27
  89. package/lib/sections/rajesh-testing/Rajesh-model.d.ts +0 -30
  90. package/lib/sections/rajesh-testing/rajesh-testing.component.d.ts +0 -21
  91. package/lib/sections/scanner-section/scanner-section.component.d.ts +0 -24
  92. package/lib/sections/scanner-section/scanner-section.modal.d.ts +0 -31
  93. package/simpo-component-library-1.4.88.tgz +0 -0
  94. package/simpo-component-library-1.4.90.tgz +0 -0
@@ -0,0 +1,18 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { EventsService } from '../services/events.service';
3
+ import { Subscription } from 'rxjs';
4
+ import { LayOutModel } from '../styles/style.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SpacingHorizontalDirective {
7
+ private el;
8
+ private eventService;
9
+ layout?: LayOutModel;
10
+ constructor(el: ElementRef, eventService: EventsService);
11
+ ngOnChanges(): void;
12
+ ngOnDestroy(): void;
13
+ changeHorizontalSpacing(): void;
14
+ positionLayoutSubscription?: Subscription;
15
+ positionLayoutChangeCheck(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpacingHorizontalDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SpacingHorizontalDirective, "[spacingHorizontal]", never, { "layout": { "alias": "spacingHorizontal"; "required": false; }; }, {}, never, never, true, never>;
18
+ }
@@ -1,8 +1,9 @@
1
1
  import { OnInit, NgZone, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { RestService } from '../../../services/rest.service';
3
- import { MatDialog } from '@angular/material/dialog';
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 { EventsService } from '../../../services/events.service';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class AddressComponent implements OnInit, OnChanges {
8
9
  private readonly ngZone;
@@ -10,9 +11,13 @@ export declare class AddressComponent implements OnInit, OnChanges {
10
11
  private readonly matDialog;
11
12
  private readonly router;
12
13
  private readonly storageService;
14
+ private readonly eventService;
15
+ matData: any;
16
+ matDialogRef: MatDialogRef<AddressComponent>;
13
17
  responseData: any;
14
18
  data: any;
15
- constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService);
19
+ selectedAddressIdx: number;
20
+ constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, eventService: EventsService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
16
21
  addressList: any[];
17
22
  address: any;
18
23
  isCart: boolean;
@@ -23,7 +28,6 @@ export declare class AddressComponent implements OnInit, OnChanges {
23
28
  markerPosition: google.maps.LatLngLiteral;
24
29
  markerOptions: google.maps.MarkerOptions;
25
30
  private geocoder;
26
- selectedAddressIdx: number;
27
31
  addessType: {
28
32
  key: string;
29
33
  status: boolean;
@@ -40,6 +44,6 @@ export declare class AddressComponent implements OnInit, OnChanges {
40
44
  onLocationSelected(location: any): void;
41
45
  onAutocompleteSelected(result: any): void;
42
46
  updateAddress(): void;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; "selectedAddressIdx": { "alias": "selectedAddressIdx"; "required": false; }; }, {}, never, never, true, never>;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
48
+ 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>;
45
49
  }
@@ -4,8 +4,20 @@ import { RestService } from '../../../services/rest.service';
4
4
  import { Router } from '@angular/router';
5
5
  import { StorageServiceService } from '../../../services/storage.service';
6
6
  import { EventsService } from '../../../services/events.service';
7
+ import { InputTextModel, StylesModel } from '../../../styles/style.model';
8
+ import { ActionModel } from "../../../styles/style.model";
9
+ import BaseSection from '../../../sections/BaseSection';
7
10
  import * as i0 from "@angular/core";
8
- export declare class AuthenticateUserComponent implements OnInit {
11
+ interface AuthenticateSectionModel {
12
+ content: AuthenticateContentModel;
13
+ styles: StylesModel;
14
+ action: ActionModel;
15
+ type: 'STATIC' | 'E_COMMERCE';
16
+ }
17
+ interface AuthenticateContentModel {
18
+ siteName: InputTextModel;
19
+ }
20
+ export declare class AuthenticateUserComponent extends BaseSection implements OnInit {
9
21
  matData: any;
10
22
  private readonly restService;
11
23
  private readonly router;
@@ -13,8 +25,7 @@ export declare class AuthenticateUserComponent implements OnInit {
13
25
  private readonly storageService;
14
26
  private readonly dialogRef;
15
27
  private readonly _eventService;
16
- data?: any;
17
- responseData?: any;
28
+ data?: AuthenticateSectionModel;
18
29
  isLoading: boolean;
19
30
  otpString: string;
20
31
  screen: 'LOGIN' | 'OTP';
@@ -31,5 +42,6 @@ export declare class AuthenticateUserComponent implements OnInit {
31
42
  resendOTP(): void;
32
43
  get isMobile(): boolean;
33
44
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateUserComponent, [{ optional: true; }, null, null, null, null, { optional: true; }, null]>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateUserComponent, "simpo-authenticate-user", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; }, {}, never, never, true, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateUserComponent, "simpo-authenticate-user", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
35
46
  }
47
+ export {};
@@ -22,11 +22,15 @@ export declare class CartComponent extends BaseSection {
22
22
  edit?: boolean;
23
23
  delete?: boolean;
24
24
  isLoading: boolean;
25
- selectedAddressIdx: number;
25
+ selectedAddress: any;
26
26
  styles?: CartSectionStylesModel;
27
27
  currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
28
28
  constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, cookieService: CookieService);
29
29
  private loadingItems;
30
+ private userDetails;
31
+ private userCart;
32
+ private USER_CART_ITEMS;
33
+ cartInfo: any;
30
34
  ngOnInit(): void;
31
35
  proceedToCheckout(): void;
32
36
  proceedToListPage(): void;
@@ -34,7 +38,8 @@ export declare class CartComponent extends BaseSection {
34
38
  addToCart(item: any, type: 'ADD' | 'SUBSTRACT'): void;
35
39
  proceedToPayment(): void;
36
40
  isItemLoading(itemId: string): boolean;
37
- get getAddressList(): never[];
41
+ get getAddressList(): import("../../styles/user.modal").AddressDetails[];
42
+ get isMobile(): boolean;
38
43
  static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, never>;
39
44
  static ɵcmp: i0.ɵɵComponentDeclaration<CartComponent, "simpo-cart", 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>;
40
45
  }
@@ -1,12 +1,21 @@
1
+ import { InputTextModel } from "../../../styles/style.model";
1
2
  import { AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
2
- import { ActionModel } from '../../../styles/style.model';
3
+ import { ActionModel, Image } from '../../../styles/style.model';
3
4
  export interface CartSectionModal {
4
5
  id: string;
5
6
  sectionType: string;
6
7
  sectionName: string;
7
8
  styles: CartSectionStylesModel;
9
+ content: CartContentSectionModel;
8
10
  action: ActionModel;
9
11
  }
12
+ export interface CartContentSectionModel {
13
+ inputText: InputTextModel[];
14
+ image: ImageModel;
15
+ }
16
+ export interface ImageModel extends Image {
17
+ showImage: boolean;
18
+ }
10
19
  export interface CartSectionStylesModel {
11
20
  layout: LayOutModel;
12
21
  background: BackgroundModel;
@@ -7,6 +7,7 @@ import { ButtonModel } from '../../../styles/style.model';
7
7
  import { RestService } from '../../../services/rest.service';
8
8
  import { Router } from '@angular/router';
9
9
  import { CartService } from '../../../services/cart.service';
10
+ import { StorageServiceService } from '../../../services/storage.service';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class FeaturedProductsComponent extends BaseSection implements OnDestroy {
12
13
  private platformId;
@@ -14,6 +15,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
14
15
  private readonly restService;
15
16
  private readonly router;
16
17
  private readonly cartService;
18
+ private readonly storageService;
17
19
  data?: FeaturedProductModal;
18
20
  responseData?: Product[];
19
21
  index?: number;
@@ -25,8 +27,10 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
25
27
  styles?: FeaturedProductStylesModel;
26
28
  button?: ButtonModel;
27
29
  private _eventSubscriber;
28
- constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, cartService: CartService);
30
+ constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, cartService: CartService, storageService: StorageServiceService);
29
31
  screenWidth: number;
32
+ private USER_CART;
33
+ private USER_WISHLIST;
30
34
  getScreenSize(): void;
31
35
  ngOnInit(): void;
32
36
  ngOnDestroy(): void;
@@ -36,8 +40,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
36
40
  addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
37
41
  toggleItemToFav(product: Product, type: 'ADD' | 'REMOVE'): void;
38
42
  proceedToProductDesc(productId: any): void;
39
- isItemFav(product: Product): boolean;
40
43
  togglePreviewImage(product: Product, idx: number): void;
41
44
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "isRelatedProduct": { "alias": "isRelatedProduct"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "isRelatedProduct": { "alias": "isRelatedProduct"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
43
46
  }
@@ -1,12 +1,15 @@
1
1
  import { InputTextModel, StylesModel, ImageStyle, ActionModel } from "../../../styles/style.model";
2
2
  import { Corners } from "../../.././styles/index";
3
- export interface FeaturedProductModal {
3
+ export declare class FeaturedProductModal {
4
4
  id: string;
5
5
  sectionType: string;
6
6
  sectionName: string;
7
7
  content: FeaturedProductContentModal;
8
8
  styles: FeaturedProductStylesModel;
9
9
  action: ActionModel;
10
+ constructor(json?: {
11
+ [key: string]: any;
12
+ });
10
13
  }
11
14
  export interface FeaturedProductContentModal {
12
15
  inputText: InputTextModel[];
@@ -1,5 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { EventsService } from '../../../services/events.service';
3
+ import { ProfileStylesModal } from '../user-profile/user-profile.modal';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class OrderDetailsComponent implements OnInit {
5
6
  private readonly _eventService;
@@ -8,10 +9,17 @@ export declare class OrderDetailsComponent implements OnInit {
8
9
  index?: number;
9
10
  edit?: boolean;
10
11
  delete?: boolean;
12
+ orderDetailData: any;
11
13
  isLoading: boolean;
14
+ styles?: ProfileStylesModal;
12
15
  constructor(_eventService: EventsService);
13
16
  orderTimiline: any;
14
17
  ngOnInit(): void;
18
+ get getCardBGColor(): string;
19
+ get isMobile(): boolean;
20
+ getSupportingColor(bgColor: string): string;
21
+ private getComplementColor;
22
+ private convertHEX;
15
23
  static ɵfac: i0.ɵɵFactoryDeclaration<OrderDetailsComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<OrderDetailsComponent, "simpo-order-details", 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; }; }, {}, never, never, true, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<OrderDetailsComponent, "simpo-order-details", 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; }; "orderDetailData": { "alias": "orderDetailData"; "required": false; }; }, {}, never, never, true, never>;
17
25
  }
@@ -7,6 +7,7 @@ import { ActivatedRoute, Router } from '@angular/router';
7
7
  import { RestService } from '../../../services/rest.service';
8
8
  import { CartService } from '../../../services/cart.service';
9
9
  import { FeaturedProductModal } from '../featured-products/featured-products.modal';
10
+ import { StorageServiceService } from '../../../services/storage.service';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class ProductDescComponent extends BaseSection {
12
13
  private platformId;
@@ -15,6 +16,7 @@ export declare class ProductDescComponent extends BaseSection {
15
16
  private readonly activatedRoute;
16
17
  private readonly restService;
17
18
  private readonly cartService;
19
+ private readonly storageService;
18
20
  data?: ProductDescModal;
19
21
  responseData: Product;
20
22
  index?: number;
@@ -22,10 +24,13 @@ export declare class ProductDescComponent extends BaseSection {
22
24
  delete?: boolean;
23
25
  isLoading: boolean;
24
26
  relatedProductData: Product[];
25
- constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService);
27
+ constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService);
26
28
  buttonId?: string;
27
29
  button?: ButtonModel;
28
30
  styles?: ProductDescStylesModal;
31
+ isItemAsFavorite: boolean;
32
+ private USER_CART;
33
+ private USER_WISHLIST;
29
34
  ngOnInit(): void;
30
35
  routeToHome(): void;
31
36
  screenWidth: any;
@@ -36,7 +41,6 @@ export declare class ProductDescComponent extends BaseSection {
36
41
  goToFilter(category: string): void;
37
42
  addToFavourite(): void;
38
43
  removeToFavourite(): void;
39
- get isItemAsFavorite(): boolean;
40
44
  get getFeatureProductData(): FeaturedProductModal;
41
45
  getProductByCategory(): void;
42
46
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
@@ -1,4 +1,4 @@
1
- import { AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
1
+ import { AnimationModel, BackgroundModel, InputTextModel, LayOutModel } from "../../../styles/style.model";
2
2
  import { ActionModel } from '../../../styles/style.model';
3
3
  export interface ProductDescModal {
4
4
  id: string;
@@ -15,4 +15,5 @@ export interface ProductDescStylesModal {
15
15
  }
16
16
  export interface ProductDescContentModal {
17
17
  button: string;
18
+ inputText: InputTextModel[];
18
19
  }
@@ -5,6 +5,9 @@ import { EventsService } from '.././../../services/events.service';
5
5
  import { RestService } from '.././../../services/rest.service';
6
6
  import { ButtonModel } from '../../../styles/style.model';
7
7
  import { ActivatedRoute, Router } from '@angular/router';
8
+ import { StorageServiceService } from '../../../services/storage.service';
9
+ import { MatBottomSheet } from '@angular/material/bottom-sheet';
10
+ import { MatDialog } from '@angular/material/dialog';
8
11
  import * as i0 from "@angular/core";
9
12
  interface BaseModel {
10
13
  option: string;
@@ -17,6 +20,9 @@ export declare class ProductListComponent extends BaseSection {
17
20
  private readonly restService;
18
21
  private readonly router;
19
22
  private readonly activatedRoute;
23
+ private readonly storageService;
24
+ private readonly matBottomSheet;
25
+ private readonly matDialog;
20
26
  responseData?: Product[];
21
27
  data?: ProductListModal;
22
28
  index?: number;
@@ -25,10 +31,14 @@ export declare class ProductListComponent extends BaseSection {
25
31
  isLoading: boolean;
26
32
  content?: ProductListContentModal;
27
33
  button?: ButtonModel;
28
- constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute);
34
+ constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog);
35
+ private filterBottomSheetRef;
36
+ private sortingDialogRef;
29
37
  pricingMin: number;
30
38
  pricingMax: number;
31
39
  sortBy: string | null;
40
+ private USER_CART;
41
+ private USER_WISHLIST;
32
42
  filteringArray: {
33
43
  name: string;
34
44
  value: string;
@@ -54,6 +64,9 @@ export declare class ProductListComponent extends BaseSection {
54
64
  applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
55
65
  navigateFilter(sorting: string): void;
56
66
  filterItemList(): void;
67
+ openFilter(FilterSection: any): void;
68
+ openSorting(SortingSection: any): void;
69
+ closeDialog(): void;
57
70
  get getTotalPage(): number;
58
71
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
59
72
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductListComponent, "simpo-product-list", 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; }; }, {}, never, never, true, never>;
@@ -2,18 +2,22 @@ import { OnInit } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { RestService } from "../../../services/rest.service";
4
4
  import { Router } from '@angular/router';
5
+ import { StorageServiceService } from '../../../services/storage.service';
6
+ import { User } from '../../styles/user.modal';
5
7
  import * as i0 from "@angular/core";
6
8
  export declare class UserBasicInfoComponent implements OnInit {
7
9
  private readonly restService;
8
10
  private readonly router;
9
11
  private readonly dialogRef;
12
+ private readonly storageService;
10
13
  gender: 'MALE' | 'FEMALE' | null;
11
14
  firstName: string;
12
15
  middleName: string;
13
16
  lastName: string;
14
17
  email: string;
15
18
  profilePic: string;
16
- constructor(restService: RestService, router: Router, dialogRef: MatDialogRef<UserBasicInfoComponent>);
19
+ userDetails: User | null;
20
+ constructor(restService: RestService, router: Router, dialogRef: MatDialogRef<UserBasicInfoComponent>, storageService: StorageServiceService);
17
21
  ngOnInit(): void;
18
22
  close(): void;
19
23
  saveProfile(): void;
@@ -1,37 +1,57 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import BaseSection from '../../../sections/BaseSection';
2
3
  import { EventsService } from '.././../../services/events.service';
3
- import { ResponseData, Tabs, UserProfile } from './user-profile.modal';
4
+ import { ProfileContentModal, ProfileStylesModal, Tabs, UserProfileModal } from './user-profile.modal';
4
5
  import { OrderItem } from '../../styles/order.modal';
5
6
  import { Router } from '@angular/router';
6
7
  import { RestService } from "../../../services/rest.service";
8
+ import { StorageServiceService } from '../../../services/storage.service';
9
+ import { User } from '../../styles/user.modal';
10
+ import { MatDialog } from '@angular/material/dialog';
7
11
  import * as i0 from "@angular/core";
8
- export declare class UserProfileComponent implements OnInit {
12
+ export declare class UserProfileComponent extends BaseSection implements OnInit {
9
13
  private readonly router;
10
14
  private readonly _eventService;
11
15
  private readonly restService;
12
- constructor(router: Router, _eventService: EventsService, restService: RestService);
13
- responseData?: ResponseData;
14
- data?: any;
16
+ private readonly storageService;
17
+ private readonly matDialog;
18
+ constructor(router: Router, _eventService: EventsService, restService: RestService, storageService: StorageServiceService, matDialog: MatDialog);
19
+ data?: UserProfileModal;
15
20
  index?: number;
16
21
  edit?: boolean;
17
22
  delete?: boolean;
18
23
  isLoading: boolean;
24
+ styles?: ProfileStylesModal;
25
+ content?: ProfileContentModal;
19
26
  button: any;
20
27
  selectedSidePanelTab: string | null;
21
- userDetails: UserProfile | null;
28
+ userDetails: User | null;
22
29
  addressList: any;
30
+ orderDetailsData: any;
23
31
  sidePanelList: Tabs[];
24
32
  tabs: Tabs[];
25
33
  orderList: OrderItem[];
26
34
  ngOnInit(): void;
35
+ getUserOrderDetails(): void;
36
+ get getProductWidth(): string;
37
+ getSupportingColor(bgColor: string): string;
38
+ getUserInfo(): void;
27
39
  goToPanel(panel: any): void;
28
40
  goBack(): void;
29
- goToDetails(order: any): void;
41
+ goToOrderDetails(order: any): void;
42
+ addNewAddress(): void;
30
43
  goToHome(): void;
44
+ editAddress(index: number): void;
45
+ deleteAddress(index: number): void;
46
+ private saveProfile;
31
47
  selectTab(tab: Tabs): void;
32
48
  toggleSidepanelTab(tab: Tabs): void;
33
- get getUserDetails(): UserProfile | null;
49
+ get getUserDetails(): User | null;
34
50
  get isMobile(): boolean;
51
+ get getUserProfile(): string;
52
+ get getCardBGColor(): string;
53
+ private getComplementColor;
54
+ private convertHEX;
35
55
  static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "simpo-user-profile", 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; }; }, {}, never, never, true, never>;
56
+ 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>;
37
57
  }
@@ -1,5 +1,5 @@
1
1
  import { UserDetails } from "../../styles/cart.modal";
2
- import { ActionModel, AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
2
+ import { ActionModel, AnimationModel, BackgroundModel, BorderModel, Image, InputTextModel, LayOutModel } from "../../../styles/style.model";
3
3
  import { OrderItem } from "../../styles/order.modal";
4
4
  export interface Tabs {
5
5
  icon: string | null;
@@ -22,10 +22,14 @@ export interface ProfileStylesModal {
22
22
  elementInRow: number;
23
23
  mobileColumn: number;
24
24
  animation: AnimationModel;
25
+ border: BorderModel;
26
+ swap: boolean;
25
27
  }
26
28
  export interface ProfileContentModal {
27
29
  display: Display;
28
30
  button: string;
31
+ image: Image;
32
+ inputText: InputTextModel[];
29
33
  }
30
34
  export interface Display {
31
35
  showButton: boolean;
@@ -35,13 +39,6 @@ export interface ResponseData {
35
39
  tabs: Tabs[];
36
40
  orders: OrderItem[];
37
41
  }
38
- export interface UserProfile {
39
- userId: string;
40
- businessId: string;
41
- address: any;
42
- gender: string;
43
- contact: UserContact;
44
- }
45
42
  export interface UserContact {
46
43
  id: string;
47
44
  name: string;
@@ -1,10 +1,15 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { CartService } from '../../../services/cart.service';
3
3
  import { EventsService } from '../../../services/events.service';
4
+ import { StorageServiceService } from '../../../services/storage.service';
5
+ import { RestService } from '../../../services/rest.service';
6
+ import BaseSection from '../../../sections/BaseSection';
4
7
  import * as i0 from "@angular/core";
5
- export declare class WhislistComponent implements OnInit {
8
+ export declare class WhislistComponent extends BaseSection implements OnInit {
6
9
  private readonly cartService;
7
10
  private readonly _eventService;
11
+ private readonly storageService;
12
+ private readonly restService;
8
13
  responseData?: any;
9
14
  data?: any;
10
15
  index?: number;
@@ -12,7 +17,10 @@ export declare class WhislistComponent implements OnInit {
12
17
  delete?: boolean;
13
18
  isLoading: boolean;
14
19
  styles: any;
15
- constructor(cartService: CartService, _eventService: EventsService);
20
+ constructor(cartService: CartService, _eventService: EventsService, storageService: StorageServiceService, restService: RestService);
21
+ private userDetails;
22
+ private USER_WISHLIST_ITEMS;
23
+ wishlistInfo: any;
16
24
  ngOnInit(): void;
17
25
  moveToCart(item: any): void;
18
26
  deleteFromWhislist(item: any): void;
@@ -2,7 +2,7 @@ export declare class OrderedItems {
2
2
  itemId: string;
3
3
  businessId: string;
4
4
  itemName: string;
5
- brandName: string;
5
+ businessName: string;
6
6
  imgUrl: string;
7
7
  price: number;
8
8
  itemTax: number;
@@ -1,6 +1,7 @@
1
1
  import { OrderedItems } from "./OrderedItems.modal";
2
2
  export declare class Cart {
3
3
  cartId?: string;
4
+ businessId: string;
4
5
  pgOrderId: string;
5
6
  orderedItems: OrderedItems[];
6
7
  billdetails: Billdetails;
@@ -14,7 +14,6 @@ export declare class ChooseUsSectionComponent extends BaseSection implements OnI
14
14
  constructor(_eventService: EventsService);
15
15
  ngOnInit(): void;
16
16
  editSection(): void;
17
- getSanitizedData(value: string): string;
18
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ChooseUsSectionComponent, never>;
19
18
  static ɵcmp: i0.ɵɵComponentDeclaration<ChooseUsSectionComponent, "simpo-choose-us-section", 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>;
20
19
  }
@@ -2,22 +2,25 @@ import { OrderedItems } from '../ecommerce/styles/OrderedItems.modal';
2
2
  import { Product } from '../ecommerce/styles/product.modal';
3
3
  import { RestService } from './rest.service';
4
4
  import { StorageServiceService } from './storage.service';
5
+ import { Cart } from '../ecommerce/styles/cart.modal';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class CartService {
7
8
  private readonly storageService;
8
9
  private readonly restService;
9
10
  constructor(storageService: StorageServiceService, restService: RestService);
10
- addItemFromCartPage(product: OrderedItems): import("rxjs").Observable<Object>;
11
- addItemToCart(product: Product | OrderedItems, isFromCart?: boolean): void;
11
+ ngOnInit(): void;
12
+ addItemFromCartPage(product: OrderedItems, userCart: any): import("rxjs").Observable<Object>;
13
+ addItemToCart(product: Product | OrderedItems): void | IDBRequest<IDBValidKey>;
12
14
  addItemToFavourite(product: Product): void;
13
15
  removeItemFromFavourite(product: Product): void;
14
16
  removeItemFromCart(product: Product | OrderedItems): void;
17
+ getItemIdxJSON(id: string, type: 'FAVOURITE' | 'CART'): Promise<IDBRequest<any>>;
15
18
  storeItemToDB(product: Product, type: 'CART' | 'WISHLIST'): void;
16
- getItemIdxJSON(itemId: string, type: 'FAVOURITE' | 'CART'): number;
17
19
  getItemByIdx(itemId: string, type: 'FAVOURITE' | 'CART'): OrderedItems | null;
18
20
  private objectMapper;
19
- storeDataToServer(): import("rxjs").Observable<[Object, Object]>;
20
- storeDBToJSON(): void;
21
+ storeCartDataToServer(cart: Cart): void;
22
+ clearCartItems(): void;
23
+ storeDataToServer(): void;
21
24
  static ɵfac: i0.ɵɵFactoryDeclaration<CartService, never>;
22
25
  static ɵprov: i0.ɵɵInjectableDeclaration<CartService>;
23
26
  }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
2
+ import { StorageServiceService } from "./storage.service";
3
+ import * as i0 from "@angular/core";
4
+ export declare class EndUserService implements OnInit, OnDestroy {
5
+ private readonly storageService;
6
+ constructor(storageService: StorageServiceService);
7
+ paymentStatusEvent: EventEmitter<boolean>;
8
+ private eventRef;
9
+ ngOnInit(): void;
10
+ ngOnDestroy(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<EndUserService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<EndUserService>;
13
+ }
@@ -1,7 +1,8 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class EventsService {
3
+ export declare class EventsService implements OnInit {
4
4
  constructor();
5
+ ngOnInit(): void;
5
6
  editSection: EventEmitter<unknown>;
6
7
  duplicate: EventEmitter<unknown>;
7
8
  delete: EventEmitter<unknown>;
@@ -33,7 +34,6 @@ export declare class EventsService {
33
34
  openBlogListEvent: EventEmitter<unknown>;
34
35
  toggleEditorEvent: EventEmitter<boolean>;
35
36
  closeEditorEvent: EventEmitter<false>;
36
- stopCarouselEvent: EventEmitter<any>;
37
37
  redirectToPage: EventEmitter<unknown>;
38
38
  addToCart: EventEmitter<unknown>;
39
39
  placeOrder: EventEmitter<unknown>;
@@ -41,6 +41,7 @@ export declare class EventsService {
41
41
  environmentType: EventEmitter<string>;
42
42
  showLoadingScreen: EventEmitter<boolean>;
43
43
  cashFreeEvent: EventEmitter<unknown>;
44
+ addressAddedIdx: EventEmitter<number>;
44
45
  static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
45
46
  static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
46
47
  }
@@ -25,6 +25,7 @@ export declare class RestService implements OnDestroy {
25
25
  getUserInfo(userId: string): Observable<Object>;
26
26
  addUserAddress(user: any): Observable<Object>;
27
27
  updateProfile(payload: any): Observable<Object>;
28
+ getUserOrders(payload: any): Observable<Object>;
28
29
  toggleItemCartToFav(): void;
29
30
  createPaymentToken(payload: any): Observable<Object>;
30
31
  refundPayment(orderId: string, payload: any): Observable<Object>;