simpo-component-library 3.6.160 → 3.6.162

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 (55) hide show
  1. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +3 -3
  2. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +3 -3
  3. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +20 -2
  4. package/esm2022/lib/ecommerce/sections/book-appointment/book-appointment.component.mjs +168 -0
  5. package/esm2022/lib/ecommerce/sections/book-appointment/book-appointment.model.mjs +2 -0
  6. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +97 -20
  7. package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +3 -3
  8. package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +3 -3
  9. package/esm2022/lib/ecommerce/sections/customer-review/customer-review.component.mjs +3 -3
  10. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +3 -3
  11. package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +3 -3
  12. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
  13. package/esm2022/lib/ecommerce/sections/new-collection/new-collection.component.mjs +3 -3
  14. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +4 -20
  15. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +49 -29
  16. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +94 -129
  17. package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +3 -3
  18. package/esm2022/lib/ecommerce/sections/store-list/store-list.component.mjs +3 -3
  19. package/esm2022/lib/ecommerce/sections/store-page/store-page.component.mjs +3 -3
  20. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +3 -3
  21. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +4 -4
  22. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +3 -3
  23. package/esm2022/lib/ecommerce/styles/product.modal.mjs +19 -1
  24. package/esm2022/lib/elements/card-skeleton-loader/card-skeleton-loader.component.mjs +2 -2
  25. package/esm2022/lib/elements/schedule-video-call/schedule-video-call.component.mjs +15 -0
  26. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +3 -3
  27. package/esm2022/lib/elements/text-editor/text-editor.component.mjs +3 -12
  28. package/esm2022/lib/sections/footer/footer.component.mjs +3 -3
  29. package/esm2022/lib/sections/header-section/header-section.component.mjs +3 -16
  30. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +3 -3
  31. package/esm2022/lib/sections/news-letter-component/news-letter-component.component.mjs +3 -3
  32. package/esm2022/lib/services/cart.service.mjs +12 -1
  33. package/esm2022/lib/services/rest.service.mjs +13 -4
  34. package/esm2022/lib/services/storage.service.mjs +21 -1
  35. package/esm2022/public-api.mjs +2 -1
  36. package/fesm2022/simpo-component-library.mjs +542 -256
  37. package/fesm2022/simpo-component-library.mjs.map +1 -1
  38. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -0
  39. package/lib/ecommerce/sections/book-appointment/book-appointment.component.d.ts +69 -0
  40. package/lib/ecommerce/sections/book-appointment/book-appointment.model.d.ts +14 -0
  41. package/lib/ecommerce/sections/cart/cart.component.d.ts +13 -2
  42. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +0 -6
  43. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +6 -8
  44. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +14 -22
  45. package/lib/ecommerce/styles/product.modal.d.ts +16 -0
  46. package/lib/elements/schedule-video-call/schedule-video-call.component.d.ts +5 -0
  47. package/lib/elements/text-editor/text-editor.component.d.ts +0 -1
  48. package/lib/sections/header-section/header-section.component.d.ts +0 -3
  49. package/lib/services/cart.service.d.ts +1 -0
  50. package/lib/services/rest.service.d.ts +6 -2
  51. package/lib/services/storage.service.d.ts +6 -0
  52. package/package.json +1 -1
  53. package/public-api.d.ts +1 -0
  54. package/simpo-component-library-3.6.162.tgz +0 -0
  55. package/simpo-component-library-3.6.160.tgz +0 -0
@@ -80,6 +80,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
80
80
  private hexToRgba;
81
81
  setup3DEffects(): void;
82
82
  showPassword: boolean;
83
+ syncTrialCartToServerDB(userId: string): void;
83
84
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationRequiredComponent, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
84
85
  static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticationRequiredComponent, "simpo-authentication-required", 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>;
85
86
  }
@@ -0,0 +1,69 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { StorageServiceService } from '../../../services/storage.service';
3
+ import { RestService } from '../../../services/rest.service';
4
+ import { Router } from '@angular/router';
5
+ import { BookAppointmentSectionModal, BookAppointmentStylesModel } from './book-appointment.model';
6
+ import BaseSection from '../../../sections/BaseSection';
7
+ import { MessageService } from 'primeng/api';
8
+ import * as i0 from "@angular/core";
9
+ export declare class BookAppointmentComponent extends BaseSection implements OnInit {
10
+ private readonly storageService;
11
+ private readonly restService;
12
+ private router;
13
+ private readonly messageService;
14
+ data?: BookAppointmentSectionModal;
15
+ index?: number;
16
+ edit?: boolean;
17
+ delete?: boolean;
18
+ customClass?: string;
19
+ timeSlots: string[];
20
+ customerDetails: {
21
+ date: string;
22
+ time: string;
23
+ addressDetails: {
24
+ receiverName: string;
25
+ receiverPhone: string;
26
+ receiverEmail: string;
27
+ addressLine1: string;
28
+ stateName: string;
29
+ cityName: string;
30
+ zipCode: string;
31
+ };
32
+ userId: string;
33
+ businessId: string | null;
34
+ };
35
+ designs: {
36
+ id: number;
37
+ name: string;
38
+ price: string;
39
+ selected: boolean;
40
+ }[];
41
+ weekDays: {
42
+ dateWithMonth: string;
43
+ day: string;
44
+ date: number;
45
+ }[];
46
+ trialCartItem: any[];
47
+ styles?: BookAppointmentStylesModel;
48
+ loader: boolean;
49
+ constructor(storageService: StorageServiceService, restService: RestService, router: Router, messageService: MessageService);
50
+ ngOnInit(): void;
51
+ getTrialCart(): void;
52
+ getTrialCartIndexDBData(): void;
53
+ getNextSevenDays(): void;
54
+ toggleDesign(id: number): void;
55
+ getSelectedDesigns(): {
56
+ id: number;
57
+ name: string;
58
+ price: string;
59
+ selected: boolean;
60
+ }[];
61
+ get isValid(): boolean;
62
+ bookAppointment(): void;
63
+ selectTime(time: any): void;
64
+ getKeys(object: Object): string[];
65
+ addMoreDesign(): void;
66
+ get isMobile(): boolean;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<BookAppointmentComponent, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<BookAppointmentComponent, "simpo-book-appointment", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
69
+ }
@@ -0,0 +1,14 @@
1
+ import { AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
2
+ import { ActionModel } from '../../../styles/style.model';
3
+ export interface BookAppointmentSectionModal {
4
+ id: string;
5
+ sectionType: string;
6
+ sectionName: string;
7
+ styles: BookAppointmentStylesModel;
8
+ action: ActionModel;
9
+ }
10
+ export interface BookAppointmentStylesModel {
11
+ layout: LayOutModel;
12
+ background: BackgroundModel;
13
+ animation: AnimationModel;
14
+ }
@@ -1,4 +1,4 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
1
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { CartSectionModal, CartSectionStylesModel } from './cart.modal';
3
3
  import BaseSection from '../../../sections/BaseSection';
4
4
  import { EventsService } from '.././../../services/events.service';
@@ -46,19 +46,25 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
46
46
  isLoading: boolean;
47
47
  styles?: CartSectionStylesModel;
48
48
  currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
49
+ cartType: 'SHOPPING' | 'TRIAL';
50
+ d2: ElementRef;
49
51
  constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, messageService: MessageService, bottomSheet: MatBottomSheet, activatedRoute: ActivatedRoute, matDialogData: any, dialogRef: MatDialogRef<CartComponent>);
52
+ quantity: number[];
50
53
  private userDetails;
51
54
  private USER_CART_ITEMS;
52
55
  selectedAddressIdx: number;
53
56
  defaultAddress?: AddressDetails;
54
57
  enteredCouponCode: string;
55
58
  couponList: Coupon[];
59
+ trialCartItem: OrderedItems[] | null;
56
60
  cartInfo: any;
57
61
  loadingSubscription?: Subscription;
58
62
  subIndustryName: string;
59
63
  isJewellery: boolean;
60
64
  ngOnInit(): void;
61
65
  ngOnDestroy(): void;
66
+ getTrialCart(): void;
67
+ getTrialCartIndexDBData(): void;
62
68
  updateUserCart(): void;
63
69
  getDefaultAddress(): void;
64
70
  get stylesLayout(): LayOutModel;
@@ -72,7 +78,7 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
72
78
  removeItem(item: OrderedItems): void;
73
79
  private moveItemToWishlist;
74
80
  private removeItemFromCart;
75
- addToCart(item: OrderedItems, type: 'ADD' | 'SUBSTRACT'): void;
81
+ addToCart(item: OrderedItems, quantity: number): void;
76
82
  proceedToPayment(): Promise<void>;
77
83
  addressSelected(index: number): void;
78
84
  isItemOutOfStock(product: OrderedItems): boolean;
@@ -91,8 +97,13 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
91
97
  get currency(): string;
92
98
  changeAddress(): void;
93
99
  addAddress(): void;
100
+ scroll(e: WheelEvent): void;
101
+ scheduleVideoCall(): void;
94
102
  getButtonId(index: number): string;
95
103
  getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
104
+ changeQuantity(event: any, item: OrderedItems): void;
105
+ removeTrialItem(item: OrderedItems): void;
106
+ bookAppointment(): void;
96
107
  static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
97
108
  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; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
98
109
  }
@@ -36,12 +36,6 @@ export declare class OrderDetailsComponent implements OnInit {
36
36
  trackOrder(): void;
37
37
  productReview: number;
38
38
  submitReview(item: any): void;
39
- sectionsVisible: {
40
- billDetails: boolean;
41
- deliveryDetails: boolean;
42
- timeline: boolean;
43
- };
44
- toggleSection(section: keyof typeof this.sectionsVisible): void;
45
39
  static ɵfac: i0.ɵɵFactoryDeclaration<OrderDetailsComponent, never>;
46
40
  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; }; "customClass": { "alias": "customClass"; "required": false; }; "orderDetailData": { "alias": "orderDetailData"; "required": false; }; }, { "goBackEmitter": "goBackEmitter"; }, never, never, true, never>;
47
41
  }
@@ -53,18 +53,21 @@ export declare class ProductDescComponent extends BaseSection {
53
53
  styles?: ProductDescStylesModal;
54
54
  subIndustryName: string;
55
55
  isItemAsFavorite: boolean;
56
+ isItemAddedAsTrial: boolean;
56
57
  private USER_CART;
57
58
  private USER_WISHLIST;
58
59
  itemImages: ItemImage[];
59
60
  items: MenuItem[] | null;
60
61
  businessDetails: any;
61
- isPinCode: boolean;
62
+ trialCartItem: any[];
62
63
  ngOnInit(): void;
63
64
  varientLoading: boolean;
64
65
  recentViewItemList: Product[];
65
66
  getRelatedProducts(): void;
66
67
  selectVarient(key: string, value: string): void;
67
68
  getItemVarient(): ItemVariant | null;
69
+ checkItemAlreadyAddedInTrial(): void;
70
+ getTrialCartIndexDBData(): void;
68
71
  shareProduct(): void;
69
72
  routeToHome(): void;
70
73
  screenWidth: any;
@@ -105,7 +108,7 @@ export declare class ProductDescComponent extends BaseSection {
105
108
  getTextColor(color: any): "#000000" | "#ffffff";
106
109
  languages: string[];
107
110
  selectedLang: string;
108
- getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
111
+ getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
109
112
  onFindInStore(id: string): void;
110
113
  onBookAppointment(): void;
111
114
  isDetails: boolean;
@@ -131,12 +134,7 @@ export declare class ProductDescComponent extends BaseSection {
131
134
  opendailogbox(template: TemplateRef<HTMLDivElement>): void;
132
135
  closeDialog(): void;
133
136
  getRatings(noofratings: any): any;
134
- reviewsData: any[];
135
- ratingCounts: any;
136
- pageNumber: number;
137
- loadMoreReviews(): void;
138
- getReviews(productId: string): void;
139
- getPercentage(rating: number): string;
137
+ addToTrialCart(): void;
140
138
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
141
139
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductDescComponent, "simpo-product-desc", 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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
142
140
  }
@@ -1,9 +1,8 @@
1
- import { ElementRef } from '@angular/core';
2
1
  import { ItemVariant, Product } from '../../styles/product.modal';
3
2
  import BaseSection from '../../../sections/BaseSection';
4
3
  import { ProductListContentModal, ProductListModal, ProductListStylesModal } from './product-list.modal';
5
- import { EventsService } from '../../../services/events.service';
6
- import { RestService } from '../../../services/rest.service';
4
+ import { EventsService } from '.././../../services/events.service';
5
+ import { RestService } from '.././../../services/rest.service';
7
6
  import { BackgroundModel, ButtonModel } from '../../../styles/style.model';
8
7
  import { ActivatedRoute, Router } from '@angular/router';
9
8
  import { StorageServiceService } from '../../../services/storage.service';
@@ -39,12 +38,15 @@ export declare class ProductListComponent extends BaseSection {
39
38
  nextComponentColor?: BackgroundModel;
40
39
  isLoading: boolean;
41
40
  apiLoading: boolean;
42
- isListLoading: boolean;
43
- isAllListLoaded: boolean;
44
41
  content?: ProductListContentModal;
45
42
  button?: ButtonModel;
46
43
  totalPages: number;
47
44
  scrollingValue: number;
45
+ onWindowScroll(event: Event): void;
46
+ constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog, cartService: CartService, messageService: MessageService);
47
+ items: MenuItem[] | null;
48
+ private filterBottomSheetRef;
49
+ private sortingDialogRef;
48
50
  pricingMin: number;
49
51
  pricingMax: number;
50
52
  sortBy: string | null;
@@ -58,6 +60,7 @@ export declare class ProductListComponent extends BaseSection {
58
60
  value: string;
59
61
  }[];
60
62
  screenWidth: number;
63
+ getScreenSize(): void;
61
64
  filterList: any[];
62
65
  styles?: ProductListStylesModal;
63
66
  totalCount: number;
@@ -65,24 +68,12 @@ export declare class ProductListComponent extends BaseSection {
65
68
  size: number;
66
69
  searchTxt: string;
67
70
  theme: typeof ProductCardTheme;
68
- items: MenuItem[] | null;
69
- private filterBottomSheetRef;
70
- private sortingDialogRef;
71
- categories: BaseModel[];
72
- collections: BaseModel[];
73
- imageIndex: number;
74
- listScrollContainer: ElementRef<HTMLDivElement>;
75
- getScreenSize(): void;
76
- onWindowScroll(event: Event): void;
77
- constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog, cartService: CartService, messageService: MessageService);
78
- handleProductListScroll(): void;
79
- loadMoreProductsToList(): void;
80
71
  ngOnInit(): void;
72
+ getButtonId(index: number): string;
73
+ getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
81
74
  filterByCategoryCollectionParam(qCategories: any, qCollections: any): void;
82
75
  getAllCategories(): void;
83
76
  getAllCollections(): void;
84
- filterItemList(): void;
85
- updateProductCartWishlistProperties(): void;
86
77
  removeFilter(filter: any): void;
87
78
  applyProductWidth(): boolean;
88
79
  getProductWidth(): string;
@@ -94,8 +85,11 @@ export declare class ProductListComponent extends BaseSection {
94
85
  selectVarient(product: Product, varient: ItemVariant): void;
95
86
  private getVarientQuantity;
96
87
  private isVarientPresentInWishtlist;
88
+ categories: BaseModel[];
89
+ collections: BaseModel[];
97
90
  applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
98
91
  navigateFilter(sorting: string): void;
92
+ filterItemList(): void;
99
93
  openFilter(FilterSection: any): void;
100
94
  openSorting(SortingSection: any): void;
101
95
  paginationChange(page: number): void;
@@ -106,10 +100,8 @@ export declare class ProductListComponent extends BaseSection {
106
100
  get currency(): string;
107
101
  get minSize(): number;
108
102
  getProductImages(product: any): any;
103
+ imageIndex: number;
109
104
  changeImage(product: any, action: 'PREV' | 'NEXT', index: number): Promise<void>;
110
- getButtonId(index: number): string;
111
- getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
112
- getElementRow(): number;
113
105
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
114
106
  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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
115
107
  }
@@ -204,3 +204,19 @@ export interface ItemImage2 {
204
204
  imgUrl: string;
205
205
  imgDesc: string;
206
206
  }
207
+ export declare class syncItemToServerDBRequest {
208
+ businessId: string;
209
+ userId: string;
210
+ cartType: 'CART' | 'WISHLISH' | 'TRIAL_CART';
211
+ cartItems: any[];
212
+ platform: string;
213
+ constructor(userId: string, cartType: 'CART' | 'WISHLISH' | 'TRIAL_CART', cartItems: any[]);
214
+ }
215
+ export declare class checkItemAlreadyAdded {
216
+ itemId: string;
217
+ variantId: string;
218
+ userId: string;
219
+ businessId: string;
220
+ cartType: 'CART' | 'WISHLISH' | 'TRIAL_CART';
221
+ constructor(itemId: string, variantId: string, userId: string, cartType: 'CART' | 'WISHLISH' | 'TRIAL_CART');
222
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScheduleVideoCallComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScheduleVideoCallComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScheduleVideoCallComponent, "simpo-schedule-video-call", never, {}, {}, never, never, true, never>;
5
+ }
@@ -44,7 +44,6 @@ export declare class TextEditorComponent {
44
44
  restoreSelection(): void;
45
45
  onPaste(event: ClipboardEvent): void;
46
46
  stripStyles(html: string): string;
47
- getText(): string;
48
47
  static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorComponent, never>;
49
48
  static ɵcmp: i0.ɵɵComponentDeclaration<TextEditorComponent, "simpo-text-editor", never, { "value": { "alias": "value"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
50
49
  }
@@ -32,8 +32,6 @@ export declare class HeaderSectionComponent implements OnInit {
32
32
  HeaderStyling: typeof Header_Type;
33
33
  parentHeight: number;
34
34
  constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService, restService: RestService);
35
- searchChangeTimeout: any;
36
- waitBeforeSearch(): void;
37
35
  searchProducts(): void;
38
36
  goToFav(): void;
39
37
  get stylesLayout(): LayOutModel;
@@ -84,7 +82,6 @@ export declare class HeaderSectionComponent implements OnInit {
84
82
  getCategoriesHeader(): void;
85
83
  Object: ObjectConstructor;
86
84
  applyFilterToList(obj: any, type: any): void;
87
- filterByCategory(): void;
88
85
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderSectionComponent, never>;
89
86
  static ɵcmp: i0.ɵɵComponentDeclaration<HeaderSectionComponent, "simpo-header-section", never, { "data": { "alias": "data"; "required": false; }; "nextComponent": { "alias": "nextComponent"; "required": false; }; "index": { "alias": "index"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
90
87
  }
@@ -12,6 +12,7 @@ export declare class CartService {
12
12
  removeItemFromWishlistPage(product: OrderedItems, userWishlist: any): import("rxjs").Observable<Object>;
13
13
  addItemToCart(product: Product | OrderedItems, varientId?: string): void | IDBRequest<IDBValidKey>;
14
14
  addItemToFavourite(product: Product, varientId?: string): void;
15
+ addItemToTrial(product: Product, varientId?: string): void;
15
16
  addItemToFavFromCart(product: OrderedItems): void;
16
17
  addOrderedItemToFavourite(orderedItem: OrderedItems): void;
17
18
  removeItemFromFavourite(varientId: string): void;
@@ -3,6 +3,7 @@ import { OnDestroy } from "@angular/core";
3
3
  import { Observable } from "rxjs";
4
4
  import { Review } from "../ecommerce/styles/review.modal";
5
5
  import { DeviceInfo } from "../ecommerce/styles/user.modal";
6
+ import { checkItemAlreadyAdded, syncItemToServerDBRequest } from "../ecommerce/styles/product.modal";
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class RestService implements OnDestroy {
8
9
  private readonly http;
@@ -42,7 +43,7 @@ export declare class RestService implements OnDestroy {
42
43
  resendOTP(mobile: string, countryCode: string): Observable<Object>;
43
44
  applicableDiscountList(cartId: string): Observable<Object>;
44
45
  addItemToDB(userCart: any): Observable<Object>;
45
- getUserItems(userId: string, cartType: 'CART' | 'WISHLIST'): Observable<Object>;
46
+ getUserItems(userId: string, cartType: 'CART' | 'WISHLIST' | 'TRIAL_CART'): Observable<Object>;
46
47
  getUserInfo(userId: string): Observable<Object>;
47
48
  addUserAddress(user: any): Observable<Object>;
48
49
  updateProfile(payload: any): Observable<Object>;
@@ -90,8 +91,11 @@ export declare class RestService implements OnDestroy {
90
91
  getAllState(): Observable<Object>;
91
92
  getCityByStateBypaginated(stateId: any, pageNo: any, size: any): Observable<Object>;
92
93
  getStoreBySlab(data: any): Observable<Object>;
94
+ addTrialItem(request: syncItemToServerDBRequest): Observable<Object>;
95
+ checkItemAlreadyAdded(request: checkItemAlreadyAdded): Observable<Object>;
96
+ deleteItemFromCart(request: checkItemAlreadyAdded): Observable<Object>;
97
+ bookAppointment(request: any): Observable<Object>;
93
98
  createEnrollmentScheme(enrollement: any): Observable<Object>;
94
- getReviewsByProductId(productId: string, pageNumber: number): Observable<Object>;
95
99
  getFieldsToDisplay(fieldsList: any[]): any;
96
100
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
97
101
  static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
@@ -17,11 +17,13 @@ export declare class StorageServiceService {
17
17
  databaseVersion: number;
18
18
  cartCollectionName: string;
19
19
  favouriteCollectionName: string;
20
+ trialCartCollectionName: string;
20
21
  userCollectionName: string;
21
22
  database: IDBDatabase;
22
23
  cartCollectionRef: IDBObjectStore | null;
23
24
  favouriteCollectionRef: IDBObjectStore | null;
24
25
  userCollectionRef: IDBObjectStore | null;
26
+ trialCartCollectionRef: IDBObjectStore | null;
25
27
  createDataBase(): Promise<void>;
26
28
  updateAllData(): void;
27
29
  mergeAllItems(unSyncedItem: any[], syncedItem: any[]): any[];
@@ -32,9 +34,13 @@ export declare class StorageServiceService {
32
34
  removeProductFromCart(productId: string): IDBRequest<undefined>;
33
35
  getProductFromCart(productId: string): Promise<IDBRequest<any>>;
34
36
  getUserWhishlist(): Promise<IDBRequest<OrderedItems[]>>;
37
+ getTrialCart(): Promise<IDBRequest<OrderedItems[]>>;
35
38
  addProductToWishlist(product: OrderedItems): IDBRequest<IDBValidKey>;
39
+ addProductToTrial(product: OrderedItems): IDBRequest<IDBValidKey>;
36
40
  removeProductFromWishlist(productId: string): IDBRequest<undefined>;
37
41
  clearUserCart(): IDBRequest<undefined>;
42
+ clearTrialCart(): IDBRequest<undefined>;
43
+ removeProductFromTrialCart(productId: string): IDBRequest<undefined>;
38
44
  setUser(user: User): User;
39
45
  getUser(): User | null;
40
46
  static ɵfac: i0.ɵɵFactoryDeclaration<StorageServiceService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.160",
3
+ "version": "3.6.162",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -61,6 +61,7 @@ export * from './lib/ecommerce/sections/authentication-required/authentication-r
61
61
  export * from './lib/ecommerce/sections/new-collection/new-collection.component';
62
62
  export * from './lib/ecommerce/sections/store-list/store-list.component';
63
63
  export * from './lib/ecommerce/sections/store-page/store-page.component';
64
+ export * from './lib/ecommerce/sections/book-appointment/book-appointment.component';
64
65
  export * from './lib/services/events.service';
65
66
  export * from './lib/services/endUser.service';
66
67
  export * from './lib/services/sanitizeHtml';
Binary file