simpo-component-library 3.6.838 → 3.6.840

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 (25) hide show
  1. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +70 -4
  2. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +70 -4
  3. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +65 -3
  4. package/esm2022/lib/ecommerce/styles/product.modal.mjs +1 -1
  5. package/esm2022/lib/sections/header-section/header-section.component.mjs +3 -42
  6. package/esm2022/lib/services/rest.service.mjs +17 -4
  7. package/esm2022/lib/tokens/api-token.mjs +2 -1
  8. package/fesm2022/simpo-component-library.mjs +9299 -9131
  9. package/fesm2022/simpo-component-library.mjs.map +1 -1
  10. package/lib/components/input-fields/input-fields.component.d.ts +1 -1
  11. package/lib/ecommerce/sections/cart/cart.component.d.ts +7 -0
  12. package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -1
  13. package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -1
  14. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +5 -1
  15. package/lib/ecommerce/sections/new-collection/new-collection.component.d.ts +1 -1
  16. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +4 -0
  17. package/lib/ecommerce/styles/product.modal.d.ts +1 -0
  18. package/lib/sections/header-section/header-section.component.d.ts +0 -2
  19. package/lib/sections/image-grid-hotspot/image-grid-hotspot.component.d.ts +1 -1
  20. package/lib/sections/image-grid-section/image-grid-section.component.d.ts +1 -1
  21. package/lib/services/rest.service.d.ts +5 -1
  22. package/lib/tokens/api-token.d.ts +1 -0
  23. package/package.json +1 -1
  24. package/simpo-component-library-3.6.840.tgz +0 -0
  25. package/simpo-component-library-3.6.838.tgz +0 -0
@@ -13,7 +13,7 @@ export declare class InputFieldsComponent implements OnChanges {
13
13
  constructor(elementRef: ElementRef);
14
14
  ngOnChanges(changes: SimpleChanges): void;
15
15
  handleMoneyInput(event: any): void;
16
- get getTextColor(): "#000" | "#FFF";
16
+ get getTextColor(): "#FFF" | "#000";
17
17
  interpolateColor(color1: string, color2: string, factor: number): string;
18
18
  padZero(str: string, length: number): string;
19
19
  generateColorBasedOnNumber(number: number): string;
@@ -13,6 +13,7 @@ import { MessageService } from 'primeng/api';
13
13
  import { MatBottomSheet } from '@angular/material/bottom-sheet';
14
14
  import { Subscription } from 'rxjs';
15
15
  import { LayOutModel } from '../../../styles/style.model';
16
+ import { FeaturedProductModal } from '../featured-products/featured-products.modal';
16
17
  import * as i0 from "@angular/core";
17
18
  interface Coupon {
18
19
  discountType: string;
@@ -57,6 +58,9 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
57
58
  defaultAddress?: AddressDetails;
58
59
  enteredCouponCode: string;
59
60
  couponList: Coupon[];
61
+ featureProductData: FeaturedProductModal | null;
62
+ private USER_CART;
63
+ private USER_WISHLIST;
60
64
  trialCartItem: OrderedItems[] | null;
61
65
  selectMatureScheme: boolean;
62
66
  cartInfo: any;
@@ -65,6 +69,8 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
65
69
  isJewellery: boolean;
66
70
  selectedRedemption: boolean;
67
71
  ecomConfigs: any;
72
+ userId: any;
73
+ recommededData: any;
68
74
  ngOnInit(): void;
69
75
  dummyCartItems: any;
70
76
  getEcommerceConfigs(): void;
@@ -155,6 +161,7 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
155
161
  get getRemainingPoints(): number;
156
162
  get getRemainingRupees(): any;
157
163
  paymentWithCompletePoints(): void;
164
+ getCartRecommendations(): void;
158
165
  static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
159
166
  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>;
160
167
  }
@@ -37,7 +37,7 @@ export declare class FeaturedCategoryComponent extends BaseSection {
37
37
  get getDirection(): "ROW" | "COLUMN" | undefined;
38
38
  get stylesLayout(): LayOutModel;
39
39
  get isMobile(): boolean;
40
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
40
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCategoryComponent, never>;
42
42
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCategoryComponent, "simpo-featured-category", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
43
43
  }
@@ -32,7 +32,7 @@ export declare class FeaturedCollectionComponent extends BaseSection {
32
32
  get getDirection(): "ROW" | "COLUMN" | undefined;
33
33
  get isMobile(): boolean;
34
34
  editSection(): void;
35
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
35
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCollectionComponent, never>;
37
37
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCollectionComponent, "simpo-featured-collection", 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>;
38
38
  }
@@ -23,6 +23,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
23
23
  responseData?: Product[];
24
24
  index?: number;
25
25
  isRelatedProduct: boolean;
26
+ isBrowseProduct: boolean;
26
27
  isLoading: boolean;
27
28
  apiLoading: boolean;
28
29
  edit?: boolean;
@@ -40,6 +41,8 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
40
41
  screenWidth: number;
41
42
  private USER_CART;
42
43
  private USER_WISHLIST;
44
+ userDetails: any;
45
+ userId: any;
43
46
  theme: typeof ProductCardTheme;
44
47
  getScreenSize(): void;
45
48
  ngAfterViewInit(): void;
@@ -52,6 +55,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
52
55
  getSliceParameters(): number[];
53
56
  raiseLead(): void;
54
57
  getFeatureProduct(): void;
58
+ getBrowseProduct(): void;
55
59
  addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
56
60
  toggleItemToFav(event: PointerEvent | MouseEvent, product: Product, type: 'ADD' | 'REMOVE'): void;
57
61
  proceedToProductDesc(product: Product): void;
@@ -78,5 +82,5 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
78
82
  redirectTo(data: any): void;
79
83
  getJustifyContent(): "center" | "flex-start" | "flex-end";
80
84
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
81
- 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; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, { "changeDetailProduct": "changeDetailProduct"; }, never, never, true, never>;
85
+ 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; }; "isBrowseProduct": { "alias": "isBrowseProduct"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, { "changeDetailProduct": "changeDetailProduct"; }, never, never, true, never>;
82
86
  }
@@ -33,7 +33,7 @@ export declare class NewCollectionComponent extends BaseSection {
33
33
  get isMobile(): boolean;
34
34
  editSection(): void;
35
35
  getColor(color: any): "#000000" | "#ffffff";
36
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
36
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<NewCollectionComponent, never>;
38
38
  static ɵcmp: i0.ɵɵComponentDeclaration<NewCollectionComponent, "simpo-new-collection", 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>;
39
39
  }
@@ -67,6 +67,9 @@ export declare class ProductDescComponent extends BaseSection {
67
67
  items: MenuItem[] | null;
68
68
  businessDetails: any;
69
69
  trialCartItem: any[];
70
+ userDetails: any;
71
+ userId: any;
72
+ recommededData: Product[];
70
73
  isPinCode: boolean;
71
74
  toShowInJewellery: boolean;
72
75
  IsEcommerce: boolean;
@@ -159,6 +162,7 @@ export declare class ProductDescComponent extends BaseSection {
159
162
  showDetailReview(review: any): void;
160
163
  get stylesLayout(): LayOutModel;
161
164
  getDateAfterxDays(): Date;
165
+ getProductDescriptionRecommendations(): void;
162
166
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
163
167
  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>;
164
168
  }
@@ -25,6 +25,7 @@ export declare class Product {
25
25
  baseWeight: number;
26
26
  totalReviewCount: number;
27
27
  averageRating: number;
28
+ productId?: string;
28
29
  categoryId: string;
29
30
  descriptor: Descriptor;
30
31
  rating: number;
@@ -67,8 +67,6 @@ export declare class HeaderSectionComponent implements OnInit, AfterViewInit, On
67
67
  ngOnInit(): void;
68
68
  ngAfterViewInit(): void;
69
69
  ngOnDestroy(): void;
70
- handleSearchInputClick(event: Event): void;
71
- private closeMobileOffcanvas;
72
70
  passbookAppStatus: boolean;
73
71
  checkPassbookApp(): void;
74
72
  showSearchBarMobile: boolean;
@@ -23,7 +23,7 @@ export declare class ImageGridHotspotComponent extends BaseSection {
23
23
  get headingSpace(): SPACING;
24
24
  editSection(): void;
25
25
  getLength(): number;
26
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
26
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
27
27
  private get scrollStep();
28
28
  scrollRight(): void;
29
29
  isOverflowing: boolean;
@@ -23,7 +23,7 @@ export declare class ImageGridSectionComponent extends BaseSection {
23
23
  get headingSpace(): SPACING;
24
24
  editSection(): void;
25
25
  getLength(): number;
26
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
26
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
27
27
  private get scrollStep();
28
28
  scrollRight(): void;
29
29
  isOverflowing: boolean;
@@ -16,11 +16,12 @@ export declare class RestService implements OnDestroy {
16
16
  private storage;
17
17
  private PASSBOOK_URL;
18
18
  private APPOINTMENT_URL;
19
+ private RECOMMENDATION_URL;
19
20
  private environmentTypeSubscriber;
20
21
  businessDetails: any;
21
22
  subIndustryName: any;
22
23
  isJewellery: boolean;
23
- constructor(http: HttpClient, BASE_URL: string, ECOMMERCE_URL: string, CMIS_URL: string, cookieService: CookieService, storage: StorageLike, PASSBOOK_URL: string, APPOINTMENT_URL: string);
24
+ constructor(http: HttpClient, BASE_URL: string, ECOMMERCE_URL: string, CMIS_URL: string, cookieService: CookieService, storage: StorageLike, PASSBOOK_URL: string, APPOINTMENT_URL: string, RECOMMENDATION_URL: string);
24
25
  orraBaseUrl: string;
25
26
  getBusinessDetails(): void;
26
27
  ngOnDestroy(): void;
@@ -152,6 +153,9 @@ export declare class RestService implements OnDestroy {
152
153
  flush(eventsToSend: any): void;
153
154
  getPopularSearches(): Observable<Object>;
154
155
  getMenuItems(menuId: any): Observable<Object>;
156
+ getHomeRecommendations(businessId: any, UserId: any): Observable<Object>;
157
+ getCartRecommendations(businessId: any, UserId: any): Observable<Object>;
158
+ getProductDescriptionRecommendations(businessId: any, UserId: any): Observable<Object>;
155
159
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
156
160
  static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
157
161
  }
@@ -5,3 +5,4 @@ export declare const CMIS_URL: InjectionToken<String>;
5
5
  export declare const BUCKET_URL: InjectionToken<String>;
6
6
  export declare const PASSBOOK_URL: InjectionToken<String>;
7
7
  export declare const APPOINTMENT_URL: InjectionToken<String>;
8
+ export declare const RECOMMENDATION_URL: InjectionToken<String>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.838",
3
+ "version": "3.6.840",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file