simpo-component-library 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. package/README.md +24 -24
  2. package/esm2022/lib/components/delete-hover-element/delete-hover-element.component.mjs +3 -3
  3. package/esm2022/lib/components/hover-elements/hover-elements.component.mjs +7 -5
  4. package/esm2022/lib/constants/business.constant.mjs +14 -0
  5. package/esm2022/lib/directive/background-directive.mjs +1 -1
  6. package/esm2022/lib/directive/blur-content.directive.mjs +1 -1
  7. package/esm2022/lib/directive/border-directive.mjs +23 -11
  8. package/esm2022/lib/directive/borderlessImage.directive.mjs +1 -1
  9. package/esm2022/lib/directive/button-directive.directive.mjs +1 -1
  10. package/esm2022/lib/directive/color.directive.mjs +1 -1
  11. package/esm2022/lib/directive/column-directive.directive.mjs +1 -1
  12. package/esm2022/lib/directive/container-alignment.directive.mjs +1 -1
  13. package/esm2022/lib/directive/container-fir.directive.mjs +1 -1
  14. package/esm2022/lib/directive/content-title-spacing.directive.mjs +1 -1
  15. package/esm2022/lib/directive/corner-directive.mjs +1 -1
  16. package/esm2022/lib/directive/hoverborder.directive.mjs +1 -1
  17. package/esm2022/lib/directive/image-container.directive.mjs +1 -1
  18. package/esm2022/lib/directive/image-directive.directive.mjs +1 -1
  19. package/esm2022/lib/directive/image-position.directive.mjs +1 -1
  20. package/esm2022/lib/directive/position-layout-directive.directive.mjs +1 -1
  21. package/esm2022/lib/directive/spacing-horizontal.directive.mjs +48 -0
  22. package/esm2022/lib/directive/sticky-directive.mjs +1 -1
  23. package/esm2022/lib/directive/text-background-directive.directive.mjs +1 -1
  24. package/esm2022/lib/directive/text-size.directive.mjs +1 -1
  25. package/esm2022/lib/directive/wrap-containers.directive.mjs +31 -0
  26. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +134 -28
  27. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +104 -39
  28. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +296 -61
  29. package/esm2022/lib/ecommerce/sections/cart/cart.modal.mjs +1 -1
  30. package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +13 -3
  31. package/esm2022/lib/ecommerce/sections/checkout/checkout.modal.mjs +1 -1
  32. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +13 -4
  33. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.modal.mjs +1 -1
  34. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +212 -42
  35. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +11 -2
  36. package/esm2022/lib/ecommerce/sections/item-varient/item-varient.component.mjs +11 -0
  37. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +77 -10
  38. package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +13 -7
  39. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +272 -39
  40. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
  41. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +252 -33
  42. package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
  43. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +44 -17
  44. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +300 -28
  45. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
  46. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +124 -0
  47. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.model.mjs +2 -0
  48. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +183 -17
  49. package/esm2022/lib/ecommerce/styles/BaseCollection.modal.mjs +1 -1
  50. package/esm2022/lib/ecommerce/styles/Collection.modal.mjs +1 -1
  51. package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +11 -3
  52. package/esm2022/lib/ecommerce/styles/cart.modal.mjs +2 -1
  53. package/esm2022/lib/ecommerce/styles/category.modal.mjs +1 -1
  54. package/esm2022/lib/ecommerce/styles/order.modal.mjs +1 -1
  55. package/esm2022/lib/ecommerce/styles/product.modal.mjs +10 -1
  56. package/esm2022/lib/ecommerce/styles/user.modal.mjs +1 -1
  57. package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +3 -3
  58. package/esm2022/lib/elements/button/button.component.mjs +3 -3
  59. package/esm2022/lib/elements/button/button.model.mjs +1 -1
  60. package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +3 -3
  61. package/esm2022/lib/elements/heading-element/heading-element.component.mjs +3 -3
  62. package/esm2022/lib/elements/index.mjs +1 -1
  63. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +3 -3
  64. package/esm2022/lib/elements/text/text.component.mjs +3 -3
  65. package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +3 -3
  66. package/esm2022/lib/pipes/amount.pipe.mjs +35 -0
  67. package/esm2022/lib/pipes/gender.pipe.mjs +36 -0
  68. package/esm2022/lib/sections/BaseSection.mjs +1 -1
  69. package/esm2022/lib/sections/add-new-section/add-new-section.component.mjs +3 -3
  70. package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +3 -3
  71. package/esm2022/lib/sections/banner-carousel/banner-carousel.model.mjs +1 -1
  72. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +9 -4
  73. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.model.mjs +1 -1
  74. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +3 -3
  75. package/esm2022/lib/sections/blog-list/blog-list.component.mjs +3 -3
  76. package/esm2022/lib/sections/blog-list/blog-list.model.mjs +1 -1
  77. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +12 -12
  78. package/esm2022/lib/sections/carousel-banner/carousel-banner.model.mjs +1 -1
  79. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
  80. package/esm2022/lib/sections/choose-us-section/choose-us-section.model.mjs +1 -1
  81. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +7 -5
  82. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +3 -3
  83. package/esm2022/lib/sections/faq-section/faq-section.modal.mjs +1 -1
  84. package/esm2022/lib/sections/features-section/features-section.component.mjs +3 -3
  85. package/esm2022/lib/sections/features-section/features-section.model.mjs +1 -1
  86. package/esm2022/lib/sections/footer-section/footer-section.component.mjs +3 -3
  87. package/esm2022/lib/sections/header-text/header-text.component.mjs +3 -3
  88. package/esm2022/lib/sections/header-text/header-text.model.mjs +1 -1
  89. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +3 -3
  90. package/esm2022/lib/sections/image-carousel-section/image-carousel.model.mjs +1 -1
  91. package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +3 -3
  92. package/esm2022/lib/sections/image-grid-section/image-grid-section.model.mjs +1 -1
  93. package/esm2022/lib/sections/image-section/image-section.component.mjs +3 -3
  94. package/esm2022/lib/sections/image-section/image-section.model.mjs +1 -1
  95. package/esm2022/lib/sections/location-section/location-section.component.mjs +3 -3
  96. package/esm2022/lib/sections/location-section/location-section.modal.mjs +1 -1
  97. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +3 -3
  98. package/esm2022/lib/sections/logo-showcase/logo-showcase.modal.mjs +1 -1
  99. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +42 -18
  100. package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
  101. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +3 -3
  102. package/esm2022/lib/sections/pricing-section/pricing-section.modal.mjs +1 -1
  103. package/esm2022/lib/sections/process-modern/process-modern.component.mjs +3 -3
  104. package/esm2022/lib/sections/process-modern/process-modern.model.mjs +1 -1
  105. package/esm2022/lib/sections/process-section/process-section.component.mjs +3 -3
  106. package/esm2022/lib/sections/process-section/process-section.modal.mjs +1 -1
  107. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +3 -3
  108. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.model.mjs +1 -1
  109. package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
  110. package/esm2022/lib/sections/service-section/service-section.model.mjs +1 -1
  111. package/esm2022/lib/sections/skeleton-loader-section/skeleton-loader-section.component.mjs +3 -3
  112. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +3 -3
  113. package/esm2022/lib/sections/team-member-section/team-member-section.model.mjs +1 -1
  114. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +3 -3
  115. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.model.mjs +1 -1
  116. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +3 -3
  117. package/esm2022/lib/sections/testimonial-section/testimonial-section.model.mjs +1 -1
  118. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +3 -3
  119. package/esm2022/lib/sections/text-section/text-section.component.mjs +2 -2
  120. package/esm2022/lib/sections/text-section/text-section.model.mjs +1 -1
  121. package/esm2022/lib/sections/video-section/video-section.component.mjs +11 -3
  122. package/esm2022/lib/sections/video-section/video-section.model.mjs +1 -1
  123. package/esm2022/lib/sections/view-blog/view-blog.component.mjs +3 -3
  124. package/esm2022/lib/services/cart.service.mjs +54 -120
  125. package/esm2022/lib/services/endUser.service.mjs +28 -0
  126. package/esm2022/lib/services/events.service.mjs +4 -1
  127. package/esm2022/lib/services/rest.service.mjs +58 -16
  128. package/esm2022/lib/services/storage.service.mjs +103 -35
  129. package/esm2022/lib/styles/index.mjs +8 -1
  130. package/esm2022/lib/styles/style.model.mjs +1 -1
  131. package/esm2022/lib/styles/types.mjs +1 -1
  132. package/esm2022/public-api.mjs +4 -1
  133. package/fesm2022/simpo-component-library.mjs +2535 -729
  134. package/fesm2022/simpo-component-library.mjs.map +1 -1
  135. package/lib/components/hover-elements/hover-elements.component.d.ts +2 -1
  136. package/lib/constants/business.constant.d.ts +11 -0
  137. package/lib/directive/spacing-horizontal.directive.d.ts +18 -0
  138. package/lib/directive/wrap-containers.directive.d.ts +14 -0
  139. package/lib/ecommerce/sections/address/address.component.d.ts +30 -9
  140. package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +31 -6
  141. package/lib/ecommerce/sections/cart/cart.component.d.ts +26 -11
  142. package/lib/ecommerce/sections/cart/cart.modal.d.ts +10 -1
  143. package/lib/ecommerce/sections/checkout/checkout.component.d.ts +2 -0
  144. package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +2 -0
  145. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +27 -9
  146. package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +5 -1
  147. package/lib/ecommerce/sections/item-varient/item-varient.component.d.ts +5 -0
  148. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +16 -2
  149. package/lib/ecommerce/sections/pagnination/pagnination.component.d.ts +3 -2
  150. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +33 -4
  151. package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +4 -1
  152. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +39 -3
  153. package/lib/ecommerce/sections/product-list/product-list.modal.d.ts +2 -0
  154. package/lib/ecommerce/sections/user-basic-info/user-basic-info.component.d.ts +11 -1
  155. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +52 -13
  156. package/lib/ecommerce/sections/user-profile/user-profile.modal.d.ts +6 -8
  157. package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +34 -0
  158. package/lib/ecommerce/sections/verify-payment/verify-payment.model.d.ts +23 -0
  159. package/lib/ecommerce/sections/whislist/whislist.component.d.ts +22 -6
  160. package/lib/ecommerce/styles/OrderedItems.modal.d.ts +6 -2
  161. package/lib/ecommerce/styles/cart.modal.d.ts +1 -0
  162. package/lib/ecommerce/styles/product.modal.d.ts +4 -0
  163. package/lib/ecommerce/styles/user.modal.d.ts +3 -3
  164. package/lib/pipes/amount.pipe.d.ts +7 -0
  165. package/lib/pipes/gender.pipe.d.ts +8 -0
  166. package/lib/sections/banner-grid-section/banner-grid-section.component.d.ts +1 -0
  167. package/lib/sections/banner-grid-section/banner-grid-section.model.d.ts +1 -0
  168. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +7 -5
  169. package/lib/sections/carousel-banner/carousel-banner.model.d.ts +41 -26
  170. package/lib/sections/navbar-section/navbar-section.component.d.ts +6 -1
  171. package/lib/sections/navbar-section/navbar-section.model.d.ts +1 -1
  172. package/lib/sections/video-section/video-section.component.d.ts +4 -2
  173. package/lib/services/cart.service.d.ts +13 -8
  174. package/lib/services/endUser.service.d.ts +13 -0
  175. package/lib/services/events.service.d.ts +5 -2
  176. package/lib/services/rest.service.d.ts +16 -2
  177. package/lib/services/storage.service.d.ts +11 -44
  178. package/lib/styles/index.d.ts +6 -0
  179. package/lib/styles/style.model.d.ts +4 -1
  180. package/lib/styles/types.d.ts +2 -0
  181. package/package.json +1 -1
  182. package/public-api.d.ts +3 -0
  183. package/esm2022/lib/ecommerce/json/user-cart.json +0 -40
  184. package/esm2022/lib/ecommerce/json/user-details.json +0 -15
  185. package/esm2022/lib/ecommerce/json/user-favourite.json +0 -32
  186. package/simpo-component-library-1.5.0.tgz +0 -0
@@ -1,14 +1,20 @@
1
- import { Product } from '../../styles/product.modal';
1
+ import { ItemVariant, Product } from '../../styles/product.modal';
2
2
  import BaseSection from '../../../sections/BaseSection';
3
3
  import { ProductListContentModal, ProductListModal, ProductListStylesModal } from './product-list.modal';
4
4
  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';
11
+ import { CartService } from '../../../services/cart.service';
12
+ import { MessageService } from 'primeng/api';
8
13
  import * as i0 from "@angular/core";
9
14
  interface BaseModel {
10
15
  option: string;
11
16
  id: string;
17
+ imgUrl: string;
12
18
  status: boolean;
13
19
  }
14
20
  export declare class ProductListComponent extends BaseSection {
@@ -17,6 +23,11 @@ export declare class ProductListComponent extends BaseSection {
17
23
  private readonly restService;
18
24
  private readonly router;
19
25
  private readonly activatedRoute;
26
+ private readonly storageService;
27
+ private readonly matBottomSheet;
28
+ private readonly matDialog;
29
+ private readonly cartService;
30
+ private readonly messageService;
20
31
  responseData?: Product[];
21
32
  data?: ProductListModal;
22
33
  index?: number;
@@ -25,10 +36,18 @@ export declare class ProductListComponent extends BaseSection {
25
36
  isLoading: boolean;
26
37
  content?: ProductListContentModal;
27
38
  button?: ButtonModel;
28
- constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute);
39
+ totalPages: number;
40
+ constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog, cartService: CartService, messageService: MessageService);
41
+ private filterBottomSheetRef;
42
+ private sortingDialogRef;
29
43
  pricingMin: number;
30
44
  pricingMax: number;
31
45
  sortBy: string | null;
46
+ searchText: string;
47
+ private USER_CART;
48
+ private USER_WISHLIST;
49
+ minProductPrice: number;
50
+ maxProductPrice: number;
32
51
  filteringArray: {
33
52
  name: string;
34
53
  value: string;
@@ -41,6 +60,7 @@ export declare class ProductListComponent extends BaseSection {
41
60
  pageNo: number;
42
61
  size: number;
43
62
  searchTxt: string;
63
+ filterLoading: boolean;
44
64
  ngOnInit(): void;
45
65
  filterByCategoryCollectionParam(qCategories: any, qCollections: any): void;
46
66
  getAllCategories(): void;
@@ -49,12 +69,28 @@ export declare class ProductListComponent extends BaseSection {
49
69
  getProductWidth(): string;
50
70
  proceedToProductDesc(productId: any): void;
51
71
  clearFilter(): void;
72
+ toggleItemToFav(event: PointerEvent | MouseEvent, product: Product, type: 'ADD' | 'REMOVE'): void;
73
+ addItemToCart(event: PointerEvent | MouseEvent, product: Product, type: 'ADD' | 'SUBSTRACT'): void;
74
+ searchProduct(): void;
75
+ selectVarient(product: Product, varient: ItemVariant): void;
76
+ private getVarientQuantity;
77
+ private isVarientPresentInWishtlist;
78
+ goToHome(): void;
52
79
  categories: BaseModel[];
53
80
  collections: BaseModel[];
54
81
  applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
55
82
  navigateFilter(sorting: string): void;
56
83
  filterItemList(): void;
57
- get getTotalPage(): number;
84
+ openFilter(FilterSection: any): void;
85
+ openSorting(SortingSection: any): void;
86
+ paginationChange(page: number): void;
87
+ closeDialog(): void;
88
+ isItemOutOfStock(product: Product): boolean;
89
+ getItemVarient(product: Product, varientId: string): ItemVariant | null;
90
+ editSection(): void;
91
+ get isMobile(): boolean;
92
+ get currency(): string;
93
+ get minSize(): number;
58
94
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
59
95
  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>;
60
96
  }
@@ -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 {
@@ -2,21 +2,31 @@ 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';
7
+ import { MessageService } from 'primeng/api';
5
8
  import * as i0 from "@angular/core";
6
9
  export declare class UserBasicInfoComponent implements OnInit {
7
10
  private readonly restService;
8
11
  private readonly router;
9
12
  private readonly dialogRef;
13
+ private readonly storageService;
14
+ private readonly messageService;
10
15
  gender: 'MALE' | 'FEMALE' | null;
11
16
  firstName: string;
12
17
  middleName: string;
13
18
  lastName: string;
19
+ mobile: string;
14
20
  email: string;
15
21
  profilePic: string;
16
- constructor(restService: RestService, router: Router, dialogRef: MatDialogRef<UserBasicInfoComponent>);
22
+ userDetails: User | null;
23
+ isEdit: boolean;
24
+ constructor(restService: RestService, router: Router, dialogRef: MatDialogRef<UserBasicInfoComponent>, storageService: StorageServiceService, messageService: MessageService);
17
25
  ngOnInit(): void;
18
26
  close(): void;
19
27
  saveProfile(): void;
28
+ validateName(event: KeyboardEvent): void;
29
+ get isEmailValid(): boolean;
20
30
  static ɵfac: i0.ɵɵFactoryDeclaration<UserBasicInfoComponent, never>;
21
31
  static ɵcmp: i0.ɵɵComponentDeclaration<UserBasicInfoComponent, "simpo-user-basic-info", never, {}, {}, never, never, true, never>;
22
32
  }
@@ -1,37 +1,76 @@
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 { OrderItem } from '../../styles/order.modal';
4
+ import { ProfileContentModal, ProfileStylesModal, Tabs, UserProfileModal } from './user-profile.modal';
5
5
  import { Router } from '@angular/router';
6
6
  import { RestService } from "../../../services/rest.service";
7
+ import { StorageServiceService } from '../../../services/storage.service';
8
+ import { User } from '../../styles/user.modal';
9
+ import { MatDialog } from '@angular/material/dialog';
10
+ import { MatBottomSheet } from '@angular/material/bottom-sheet';
11
+ import { CookieService } from 'ngx-cookie-service';
12
+ import { MessageService } from 'primeng/api';
13
+ import { OrderedItems } from '../../styles/OrderedItems.modal';
14
+ import { CartService } from '../../../services/cart.service';
7
15
  import * as i0 from "@angular/core";
8
- export declare class UserProfileComponent implements OnInit {
16
+ export declare class UserProfileComponent extends BaseSection implements OnInit {
9
17
  private readonly router;
10
18
  private readonly _eventService;
11
19
  private readonly restService;
12
- constructor(router: Router, _eventService: EventsService, restService: RestService);
13
- responseData?: ResponseData;
14
- data?: any;
20
+ private readonly storageService;
21
+ private readonly cartService;
22
+ private readonly matDialog;
23
+ private readonly matBottomSheet;
24
+ private readonly cookieService;
25
+ private readonly messageService;
26
+ constructor(router: Router, _eventService: EventsService, restService: RestService, storageService: StorageServiceService, cartService: CartService, matDialog: MatDialog, matBottomSheet: MatBottomSheet, cookieService: CookieService, messageService: MessageService);
27
+ data?: UserProfileModal;
15
28
  index?: number;
16
29
  edit?: boolean;
17
30
  delete?: boolean;
18
31
  isLoading: boolean;
19
- button: any;
20
- selectedSidePanelTab: string | null;
21
- userDetails: UserProfile | null;
32
+ styles?: ProfileStylesModal;
33
+ content?: ProfileContentModal;
34
+ selectedSidePanelTab: string;
35
+ userDetails: User | null;
22
36
  addressList: any;
37
+ orderDetailsData: any;
23
38
  sidePanelList: Tabs[];
24
39
  tabs: Tabs[];
25
- orderList: OrderItem[];
40
+ orderList: OrderedItems[];
41
+ wishlistData: OrderedItems[];
26
42
  ngOnInit(): void;
43
+ getUserOrderDetails(): void;
44
+ getUserWislistDetails(): void;
45
+ deleteFromWhislist(product: OrderedItems): void;
46
+ moveToCart(product: OrderedItems): void;
47
+ addToFav(item: OrderedItems, type: 'ADD' | 'SUBSTRACT'): void;
48
+ editProfileData(type: 'MOBILE' | 'EMAIL'): Promise<void>;
49
+ get getProductWidth(): string;
50
+ getSupportingColor(bgColor: string): string;
51
+ getUserInfo(): void;
27
52
  goToPanel(panel: any): void;
28
53
  goBack(): void;
29
- goToDetails(order: any): void;
54
+ goToOrderDetails(order: any): void;
55
+ addNewAddress(): void;
30
56
  goToHome(): void;
57
+ editAddress(index: number): void;
58
+ deleteAddress(index: number): void;
59
+ screenWidth: number;
60
+ getScreenSize(event?: any): void;
61
+ editProfile(): void;
62
+ logout(): void;
63
+ private saveProfile;
31
64
  selectTab(tab: Tabs): void;
32
65
  toggleSidepanelTab(tab: Tabs): void;
33
- get getUserDetails(): UserProfile | null;
66
+ editSection(): void;
67
+ get getUserDetails(): User | null;
34
68
  get isMobile(): boolean;
69
+ get userGender(): import("../../styles/user.modal").GENDER | null;
70
+ get getCardBGColor(): string;
71
+ private getComplementColor;
72
+ private convertHEX;
73
+ get currency(): string;
35
74
  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>;
75
+ 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
76
  }
@@ -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;
@@ -7,6 +7,7 @@ export interface Tabs {
7
7
  label: string;
8
8
  status: boolean;
9
9
  url: string;
10
+ image: string;
10
11
  }
11
12
  export interface UserProfileModal {
12
13
  id: string;
@@ -22,10 +23,14 @@ export interface ProfileStylesModal {
22
23
  elementInRow: number;
23
24
  mobileColumn: number;
24
25
  animation: AnimationModel;
26
+ border: BorderModel;
27
+ swap: boolean;
25
28
  }
26
29
  export interface ProfileContentModal {
27
30
  display: Display;
28
31
  button: string;
32
+ image: Image;
33
+ inputText: InputTextModel[];
29
34
  }
30
35
  export interface Display {
31
36
  showButton: boolean;
@@ -35,13 +40,6 @@ export interface ResponseData {
35
40
  tabs: Tabs[];
36
41
  orders: OrderItem[];
37
42
  }
38
- export interface UserProfile {
39
- userId: string;
40
- businessId: string;
41
- address: any;
42
- gender: string;
43
- contact: UserContact;
44
- }
45
43
  export interface UserContact {
46
44
  id: string;
47
45
  name: string;
@@ -0,0 +1,34 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { RestService } from '../../../services/rest.service';
3
+ import { Router } from '@angular/router';
4
+ import { StorageServiceService } from '../../../services/storage.service';
5
+ import { VerifyPaymentContentModel, VerifyPaymentSectionModal, VerifyPaymentStylesModel } from './verify-payment.model';
6
+ import { MessageService } from 'primeng/api';
7
+ import { EventsService } from '../../../services/events.service';
8
+ import BaseSection from '../../../sections/BaseSection';
9
+ import * as i0 from "@angular/core";
10
+ export declare class VerifyComponent extends BaseSection implements OnInit {
11
+ private readonly restService;
12
+ private readonly router;
13
+ private readonly storageService;
14
+ private readonly messageService;
15
+ private readonly _eventService;
16
+ data?: VerifyPaymentSectionModal;
17
+ responseData: any;
18
+ edit?: boolean;
19
+ index?: number;
20
+ delete?: boolean;
21
+ styles?: VerifyPaymentStylesModel;
22
+ content?: VerifyPaymentContentModel;
23
+ private userDetails;
24
+ constructor(restService: RestService, router: Router, storageService: StorageServiceService, messageService: MessageService, _eventService: EventsService);
25
+ loadingText: string;
26
+ private API_COUNT;
27
+ private MAX_API_COUNT;
28
+ ngOnInit(): void;
29
+ get getImageUrl(): string | undefined;
30
+ checkPaymentStatus(): void;
31
+ editSection(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<VerifyComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<VerifyComponent, "simpo-verify-payment", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "index": { "alias": "index"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
34
+ }
@@ -0,0 +1,23 @@
1
+ import { InputTextModel } from "../../../styles/style.model";
2
+ import { AnimationModel, BackgroundModel, LayOutModel, Image } from "../../../styles/style.model";
3
+ import { ActionModel } from '../../../styles/style.model';
4
+ export interface VerifyPaymentSectionModal {
5
+ id: string;
6
+ sectionType: string;
7
+ sectionName: string;
8
+ styles: VerifyPaymentStylesModel;
9
+ content: VerifyPaymentContentModel;
10
+ action: ActionModel;
11
+ }
12
+ export interface VerifyPaymentStylesModel {
13
+ layout: LayOutModel;
14
+ background: BackgroundModel;
15
+ animation: AnimationModel;
16
+ }
17
+ export interface VerifyPaymentContentModel {
18
+ inputText: InputTextModel[];
19
+ image: ImageModel;
20
+ }
21
+ export interface ImageModel extends Image {
22
+ showImage: boolean;
23
+ }
@@ -1,22 +1,38 @@
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 { OrderedItems } from '../../styles/OrderedItems.modal';
7
+ import BaseSection from '../../../sections/BaseSection';
8
+ import { MessageService } from 'primeng/api';
9
+ import { Cart } from '../../styles/cart.modal';
4
10
  import * as i0 from "@angular/core";
5
- export declare class WhislistComponent implements OnInit {
11
+ export declare class WhislistComponent extends BaseSection implements OnInit {
6
12
  private readonly cartService;
7
13
  private readonly _eventService;
8
- responseData?: any;
14
+ private readonly storageService;
15
+ private readonly restService;
16
+ private readonly messageService;
17
+ responseData?: Cart;
9
18
  data?: any;
10
19
  index?: number;
11
20
  edit?: boolean;
12
21
  delete?: boolean;
13
22
  isLoading: boolean;
14
23
  styles: any;
15
- constructor(cartService: CartService, _eventService: EventsService);
24
+ constructor(cartService: CartService, _eventService: EventsService, storageService: StorageServiceService, restService: RestService, messageService: MessageService);
25
+ private userDetails;
26
+ private USER_WISHLIST_ITEMS;
27
+ wishlistInfo: any;
16
28
  ngOnInit(): void;
17
- moveToCart(item: any): void;
18
- deleteFromWhislist(item: any): void;
19
- addToFav(item: any, type: 'ADD' | 'SUBSTRACT'): void;
29
+ moveToCart(product: OrderedItems): void;
30
+ getWishlistIndexDBData(): void;
31
+ deleteFromWhislist(product: OrderedItems): void;
32
+ addToFav(item: OrderedItems, type: 'ADD' | 'SUBSTRACT'): void;
33
+ getKeys(object: Object): string[];
34
+ editSection(): void;
35
+ get currency(): string;
20
36
  static ɵfac: i0.ɵɵFactoryDeclaration<WhislistComponent, never>;
21
37
  static ɵcmp: i0.ɵɵComponentDeclaration<WhislistComponent, "simpo-whislist", 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>;
22
38
  }
@@ -1,15 +1,19 @@
1
+ import { ItemVariant } from './product.modal';
1
2
  export declare class OrderedItems {
2
3
  itemId: string;
4
+ varientId: string;
3
5
  businessId: string;
4
6
  itemName: string;
5
- brandName: string;
7
+ itemVariant: ItemVariant | null;
8
+ businessName: string;
6
9
  imgUrl: string;
7
10
  price: number;
11
+ sellingPrice: number;
8
12
  itemTax: number;
9
13
  quantity: number;
10
14
  discountedPrice: number;
11
15
  taxAfterDiscount: number;
12
16
  constructor(json?: {
13
17
  [key: string]: any;
14
- });
18
+ }, varientId?: string);
15
19
  }
@@ -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;
@@ -1,5 +1,7 @@
1
1
  export declare class Product {
2
2
  itemId: string;
3
+ varientId: string;
4
+ businessId: string;
3
5
  storeId: string[];
4
6
  name: string;
5
7
  itemCategorisation: ItemCategorisation;
@@ -76,6 +78,8 @@ export interface ItemInventory {
76
78
  export interface ItemVariant {
77
79
  variantId: string;
78
80
  itemId: string;
81
+ quantity: number;
82
+ wishlist: boolean;
79
83
  variantName: string;
80
84
  variantImages: VariantImage[];
81
85
  itemPacks: ItemPack[];
@@ -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
- declare type GENDER = "MALE" | "FEMALE" | "OTHERS";
38
- export {};
37
+ export declare type ADDRESS_TYPE = "HOME" | "WORK" | "OTHER";
38
+ export declare type GENDER = "MALE" | "FEMALE" | "OTHERS";
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormateAmount implements PipeTransform {
4
+ transform(value: string | number, system?: "IND" | "INT"): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormateAmount, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<FormateAmount, "formateAmount", true>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { GENDER } from '../ecommerce/styles/user.modal';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GenderIcon implements PipeTransform {
5
+ transform(gender: GENDER | string | null): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenderIcon, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<GenderIcon, "genderIcon", true>;
8
+ }
@@ -15,6 +15,7 @@ export declare class BannerGridSectionComponent extends BaseSection implements O
15
15
  constructor(_eventService: EventsService);
16
16
  ngOnInit(): void;
17
17
  get canMergeNavbar(): boolean | undefined;
18
+ get isBorderlessImage(): boolean | undefined;
18
19
  editSection(): void;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerGridSectionComponent, never>;
20
21
  static ɵcmp: i0.ɵɵComponentDeclaration<BannerGridSectionComponent, "simpo-banner-grid-section", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
@@ -20,6 +20,7 @@ export interface BannerGridStylesModel extends StylesModel {
20
20
  merge?: boolean;
21
21
  contentAlignment: AlignContent;
22
22
  positionLayout: PositionLayoutModal;
23
+ borderLessImage: boolean;
23
24
  }
24
25
  export interface BannerGridItemModel {
25
26
  image: Image;
@@ -2,7 +2,7 @@ import { OnInit, ElementRef } from '@angular/core';
2
2
  import { LayOutModel, PositionLayoutModal } from '../../styles/style.model';
3
3
  import BaseSection from '../BaseSection';
4
4
  import { EventsService } from './../../services/events.service';
5
- import { BannerSectionModel } from './carousel-banner.model';
5
+ import { BannerSectionModel, CarouselBannerContentModel, CarouselBannerStyelsModel } from './carousel-banner.model';
6
6
  import { OverlayValue } from "../../styles/index";
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class CarouselBannerComponent extends BaseSection implements OnInit {
@@ -10,17 +10,19 @@ export declare class CarouselBannerComponent extends BaseSection implements OnIn
10
10
  carouselElement1: ElementRef;
11
11
  data?: BannerSectionModel;
12
12
  index?: number;
13
+ content?: CarouselBannerContentModel;
13
14
  edit?: boolean;
14
15
  delete?: boolean;
16
+ styles?: CarouselBannerStyelsModel;
15
17
  currentIndex: number;
16
18
  selectSlide(index: number): void;
17
19
  constructor(_eventService: EventsService);
18
20
  ngOnInit(): void;
19
- stylesLayout(item: any): LayOutModel;
21
+ get stylesLayout(): LayOutModel;
20
22
  get getJustifyContent(): string;
21
- canMergeNavbar(item: any): any;
22
- isBorderlessImage(item: any): any;
23
- getPositionLayout(item: any): PositionLayoutModal;
23
+ get canMergeNavbar(): boolean | undefined;
24
+ get isBorderlessImage(): boolean | undefined;
25
+ get getPositionLayout(): PositionLayoutModal;
24
26
  opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
25
27
  editSection(): void;
26
28
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
@@ -1,39 +1,54 @@
1
- import { ActionModel, BannerStylesModel, Image, InputTextModel, ListItemModal } from './../../styles/style.model';
1
+ import { ActionModel, AnimationModel, BackgroundModel, BorderModel, Image, ImageStyle, InputTextModel, ListItemModal, PositionLayoutModal, TextSize } from './../../styles/style.model';
2
+ import { Corners, AlignContent } from "./../../styles/index";
3
+ import { ALIGN, FIT, SPACING_TYPE, BANNER_TRANSITION } from './../../styles/types';
2
4
  export interface BannerSectionModel {
3
5
  id: string;
4
6
  sectionType: string;
5
7
  sectionName: string;
6
- listBanners: [singleBannerModel];
7
- styles: stylesModel;
8
+ content: CarouselBannerContentModel;
9
+ styles: CarouselBannerStyelsModel;
8
10
  }
9
- export interface ImageModel extends Image {
10
- showImage: boolean;
11
- }
12
- export interface stylesModel {
13
- bannerAnimation: {
14
- label: string;
15
- value: string;
16
- types: [];
17
- };
18
- }
19
- export interface textModel {
20
- value: string;
11
+ export interface CarouselBannerContentModel {
12
+ listItem: ListItemModal<BannerItemModel>;
21
13
  }
22
- export interface BannerContentModel {
14
+ export interface BannerItemModel {
15
+ id: string;
23
16
  inputText: InputTextModel[];
24
17
  image: ImageModel;
25
- listItem: ListItemModal<BannerListItem>;
18
+ additionalData: AdditionalData[];
19
+ action: ActionModel;
20
+ styles: BannerItemStylesModel;
26
21
  }
27
- export interface BannerListItem {
28
- inputText: InputTextModel[];
22
+ export interface BannerItemStylesModel {
23
+ contentAlignment: AlignContent;
24
+ background: BackgroundModel;
25
+ border: BorderModel;
26
+ image: ImageStyle;
27
+ corners: Corners;
29
28
  }
30
- export interface singleBannerModel {
31
- sectionName: string;
32
- sectionType: string;
33
- id: string;
34
- content: BannerContentModel;
35
- styles: BannerStylesModel;
36
- action: ActionModel;
29
+ export interface AdditionalData {
30
+ content: string;
31
+ }
32
+ export interface ImageModel extends Image {
33
+ showImage: boolean;
34
+ }
35
+ export interface CarouselBannerStyelsModel {
36
+ layout: CarouselBannerLayoutModel;
37
+ borderLessImage: boolean;
38
+ positionLayout: PositionLayoutModal;
39
+ animation: AnimationModel;
40
+ textSize: TextSize;
41
+ merge?: boolean;
42
+ transition: BANNER_TRANSITION;
43
+ }
44
+ export interface CarouselBannerLayoutModel {
45
+ fit: FIT;
46
+ spacing: SpacingModel;
47
+ align: ALIGN;
48
+ }
49
+ export interface SpacingModel {
50
+ top: SPACING_TYPE;
51
+ bottom: SPACING_TYPE;
37
52
  }
38
53
  export interface actionsModel {
39
54
  label: string;
@@ -6,12 +6,14 @@ import { ActivatedRoute, Router } from '@angular/router';
6
6
  import { MatDialog } from '@angular/material/dialog';
7
7
  import { CookieService } from 'ngx-cookie-service';
8
8
  import { StorageServiceService } from '../../services/storage.service';
9
+ import { MatBottomSheet } from '@angular/material/bottom-sheet';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class NavbarSectionComponent implements OnInit {
11
12
  private readonly _eventService;
12
13
  private readonly router;
13
14
  private readonly activatedRoute;
14
15
  private readonly matDialog;
16
+ private readonly bottomSheet;
15
17
  private readonly cookieService;
16
18
  private readonly storageService;
17
19
  data?: HeaderSectionModel;
@@ -25,10 +27,11 @@ export declare class NavbarSectionComponent implements OnInit {
25
27
  action?: ActionModel;
26
28
  color: string;
27
29
  searchText: string;
28
- constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, cookieService: CookieService, storageService: StorageServiceService);
30
+ constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, bottomSheet: MatBottomSheet, cookieService: CookieService, storageService: StorageServiceService);
29
31
  searchProducts(): void;
30
32
  goToFav(): void;
31
33
  goToAccount(): void;
34
+ goToWishlist(): void;
32
35
  goToCart(): void;
33
36
  applyFilter(value: any, type: string): void;
34
37
  onScroll(event: any): void;
@@ -50,9 +53,11 @@ export declare class NavbarSectionComponent implements OnInit {
50
53
  redirectTo(content: any): void;
51
54
  get isComponentMerged(): any;
52
55
  editSection(): void;
56
+ get showMobileHomeIcon(): boolean;
53
57
  get getCartItemsCount(): number;
54
58
  getKeys(object: any): string[];
55
59
  getValues(object: any): unknown[];
60
+ get userGender(): import("../../ecommerce/styles/user.modal").GENDER | null;
56
61
  static ɵfac: i0.ɵɵFactoryDeclaration<NavbarSectionComponent, never>;
57
62
  static ɵcmp: i0.ɵɵComponentDeclaration<NavbarSectionComponent, "simpo-navbar-section", never, { "data": { "alias": "data"; "required": false; }; "nextComponent": { "alias": "nextComponent"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
58
63
  }
@@ -16,7 +16,7 @@ export interface HeaderContentModel {
16
16
  logo: FooterLogoModel;
17
17
  socialLinks: FooterSocialLinkModel;
18
18
  navbarButtons: NavbarButton[];
19
- ecomLinks: {
19
+ ecomlinks: {
20
20
  [key: string]: string[];
21
21
  };
22
22
  }