simpo-component-library 3.6.838 → 3.6.839

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 (30) 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/ecommerce/sections/authentication-required/authentication-required.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 +5 -1
  17. package/lib/ecommerce/sections/schemes/schemes.component.d.ts +1 -1
  18. package/lib/ecommerce/styles/product.modal.d.ts +1 -0
  19. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
  20. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
  21. package/lib/sections/header-section/header-section.component.d.ts +0 -2
  22. package/lib/sections/image-grid-hotspot/image-grid-hotspot.component.d.ts +1 -1
  23. package/lib/sections/image-grid-section/image-grid-section.component.d.ts +1 -1
  24. package/lib/sections/image-section/image-section.component.d.ts +2 -2
  25. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  26. package/lib/services/rest.service.d.ts +5 -1
  27. package/lib/tokens/api-token.d.ts +1 -0
  28. package/package.json +1 -1
  29. package/simpo-component-library-3.6.839.tgz +0 -0
  30. package/simpo-component-library-3.6.838.tgz +0 -0
@@ -94,7 +94,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
94
94
  validateNumber(event: KeyboardEvent): void;
95
95
  validateOTP(event: KeyboardEvent): void;
96
96
  checkStrength(): void;
97
- getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
97
+ getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
98
98
  emailDebounceTimer: any;
99
99
  onEmailChange(): void;
100
100
  emailCheck: boolean;
@@ -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;
@@ -121,7 +124,7 @@ export declare class ProductDescComponent extends BaseSection {
121
124
  getTextColor(color: any): "#000000" | "#ffffff";
122
125
  languages: string[];
123
126
  selectedLang: string;
124
- getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
127
+ getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
125
128
  onFindInStore(id: string): void;
126
129
  onBookAppointment(): void;
127
130
  isDetails: 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
  }
@@ -21,7 +21,7 @@ export declare class SchemesComponent extends BaseSection {
21
21
  get stylesLayout(): LayOutModel;
22
22
  get spacingLayout(): SpacingModel;
23
23
  getParentClass(): "" | "overflow-scroll flex-nowrap";
24
- getClass(index: number): "col-12" | "col-6" | "col-6 mb-2" | "col-12 mb-2";
24
+ getClass(index: number): "col-6" | "col-12" | "col-6 mb-2" | "col-12 mb-2";
25
25
  showSchemeDetails(scheme: any): void;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<SchemesComponent, never>;
27
27
  static ɵcmp: i0.ɵɵComponentDeclaration<SchemesComponent, "simpo-schemes", 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>;
@@ -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;
@@ -33,8 +33,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
33
33
  get stylesLayout(): LayOutModel;
34
34
  get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
35
35
  get getBackgroundColor(): BackgroundModel;
36
- get getBackgroundOpacity(): "1" | "0" | "0.7" | "0.5" | "0.6" | "0.8";
37
- opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.6" | "0.8";
36
+ get getBackgroundOpacity(): "0" | "1" | "0.5" | "0.6" | "0.7" | "0.8";
37
+ opacityValue(value: OverlayValue): "1" | "0.5" | "0.6" | "0.7" | "0.8";
38
38
  editSection(): void;
39
39
  getScreenSize(): number;
40
40
  getSectionMinHeight(): string;
@@ -25,7 +25,7 @@ export declare class CarouselBannerComponent extends BaseSection implements OnIn
25
25
  get canMergeNavbar(): boolean | undefined;
26
26
  get isBorderlessImage(): boolean | undefined;
27
27
  get getPositionLayout(): PositionLayoutModal;
28
- opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
28
+ opacityValue(value: OverlayValue): "0" | "0.5" | "0.7" | "0.3" | "0.2";
29
29
  editSection(): void;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
31
31
  static ɵcmp: i0.ɵɵComponentDeclaration<CarouselBannerComponent, "simpo-carousel-banner", 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; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
@@ -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;
@@ -20,9 +20,9 @@ export declare class ImageSectionComponent extends BaseSection {
20
20
  constructor(_eventService: EventsService);
21
21
  ngOnInit(): void;
22
22
  get canMergeNavbar(): boolean | undefined;
23
- get getBackgroundOpacity(): "1" | "0.7" | "0.5" | "0.3" | "0.2";
23
+ get getBackgroundOpacity(): "1" | "0.5" | "0.7" | "0.3" | "0.2";
24
24
  get stylesLayout(): LayOutModel;
25
- opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.3" | "0.2";
25
+ opacityValue(value: OverlayValue): "1" | "0.5" | "0.7" | "0.3" | "0.2";
26
26
  editSection(): void;
27
27
  redirectTo(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
@@ -23,7 +23,7 @@ export declare class PricingSectionComponent extends BaseSection {
23
23
  getButtonId(): string;
24
24
  editSection(): void;
25
25
  redirectTo(data: any): void;
26
- getClass(): "col-4" | "col-12" | "col-6" | "col-3";
26
+ getClass(): "col-6" | "col-4" | "col-3" | "col-12";
27
27
  getAlignment(): "justify-content-start" | "justify-content-center" | "justify-content-end";
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
29
29
  static ɵcmp: i0.ɵɵComponentDeclaration<PricingSectionComponent, "simpo-pricing-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
@@ -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.839",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file