simpo-component-library 3.6.254 → 3.6.256

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 (29) hide show
  1. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +2 -1
  2. package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.component.mjs +162 -19
  3. package/esm2022/lib/ecommerce/sections/scheme-details/scheme-details.component.mjs +124 -11
  4. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +42 -15
  5. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +43 -2
  6. package/esm2022/lib/sections/header-section/header-section.component.mjs +3 -3
  7. package/esm2022/lib/services/rest.service.mjs +47 -3
  8. package/esm2022/lib/services/storage.service.mjs +4 -1
  9. package/fesm2022/simpo-component-library.mjs +405 -41
  10. package/fesm2022/simpo-component-library.mjs.map +1 -1
  11. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
  12. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +1 -1
  13. package/lib/ecommerce/sections/returns-calculator/returns-calculator.component.d.ts +28 -3
  14. package/lib/ecommerce/sections/scheme-details/scheme-details.component.d.ts +21 -2
  15. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +6 -1
  16. package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +3 -0
  17. package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
  18. package/lib/elements/pricing-s1/pricing-s1.component.d.ts +1 -1
  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/image-section/image-section.component.d.ts +2 -2
  22. package/lib/sections/logo-showcase/logo-showcase.component.d.ts +1 -1
  23. package/lib/sections/new-testimonials/new-testimonials.component.d.ts +1 -1
  24. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  25. package/lib/services/rest.service.d.ts +9 -1
  26. package/lib/services/storage.service.d.ts +1 -0
  27. package/package.json +1 -1
  28. package/simpo-component-library-3.6.256.tgz +0 -0
  29. package/simpo-component-library-3.6.254.tgz +0 -0
@@ -63,7 +63,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
63
63
  validateNumber(event: KeyboardEvent): void;
64
64
  validateOTP(event: KeyboardEvent): void;
65
65
  checkStrength(): void;
66
- getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
66
+ getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
67
67
  emailDebounceTimer: any;
68
68
  onEmailChange(): void;
69
69
  emailCheck: boolean;
@@ -112,7 +112,7 @@ export declare class ProductDescComponent extends BaseSection {
112
112
  getTextColor(color: any): "#000000" | "#ffffff";
113
113
  languages: string[];
114
114
  selectedLang: string;
115
- getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
115
+ getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
116
116
  onFindInStore(id: string): void;
117
117
  onBookAppointment(): void;
118
118
  isDetails: boolean;
@@ -1,10 +1,18 @@
1
+ import { TemplateRef } from '@angular/core';
1
2
  import BaseSection from '../../../sections/BaseSection';
2
3
  import { ReturnsCalculatorModel, ReturnsCalculatorStyleModel } from './returns-calculator.model';
3
4
  import { LayOutModel } from '../../../styles/style.model';
4
5
  import { EventsService } from '.././../../services/events.service';
6
+ import { RestService } from '../../../services/rest.service';
7
+ import { StorageServiceService } from '../../../services/storage.service';
8
+ import { MatDialog } from '@angular/material/dialog';
5
9
  import * as i0 from "@angular/core";
6
10
  export declare class ReturnsCalculatorComponent extends BaseSection {
7
11
  private readonly _eventService;
12
+ private restService;
13
+ private matDialog;
14
+ private storageService;
15
+ showChargesTemplate: TemplateRef<HTMLDivElement>;
8
16
  data?: ReturnsCalculatorModel;
9
17
  edit?: boolean;
10
18
  customClass?: string;
@@ -15,10 +23,19 @@ export declare class ReturnsCalculatorComponent extends BaseSection {
15
23
  monthlyAmount: number;
16
24
  maxAmount: number;
17
25
  minAmount: number;
18
- constructor(_eventService: EventsService);
26
+ constructor(_eventService: EventsService, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService);
19
27
  ngOnInit(): void;
20
- onSchemeChange(): void;
28
+ maturityCount: number;
29
+ enrolledScheme: any;
30
+ selectedStore: any;
31
+ selectedStaff: string;
32
+ stores: any[];
33
+ staffMembers: any[];
34
+ onSchemeChange(scheme: any): void;
35
+ benefitAmount: number;
21
36
  onAmountChange(): void;
37
+ getStaffList(): void;
38
+ setMonthlyAmount(amount: number): void;
22
39
  get individualContribution(): number;
23
40
  get orraBonus(): number;
24
41
  get totalRedemptionValue(): number;
@@ -28,7 +45,15 @@ export declare class ReturnsCalculatorComponent extends BaseSection {
28
45
  getButtonId(index: number): string;
29
46
  getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
30
47
  getButtonData(index: number): import("../../../styles/style.model").Button | undefined;
31
- redirectTo(data: any): void;
48
+ redirectTo(scheme: any): void;
49
+ closeDialog(): void;
50
+ storeCharges: any;
51
+ enrollScheme(scheme: any): void;
52
+ continuePayment(payload: any): void;
53
+ allSchemes: any[];
54
+ getEnrolledSchemes(): void;
55
+ installmentOptions: number[];
56
+ openCashfreeSdk(sessionId: string): void;
32
57
  static ɵfac: i0.ɵɵFactoryDeclaration<ReturnsCalculatorComponent, never>;
33
58
  static ɵcmp: i0.ɵɵComponentDeclaration<ReturnsCalculatorComponent, "simpo-returns-calculator", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
34
59
  }
@@ -1,15 +1,34 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
+ import { StorageServiceService } from '.././../../services/storage.service';
3
+ import { RestService } from '.././../../services/rest.service';
4
+ import { MatDialog } from '@angular/material/dialog';
5
+ import { EventsService } from '.././../../services/events.service';
2
6
  import * as i0 from "@angular/core";
3
7
  export declare class SchemeDetailsComponent implements OnInit {
8
+ private storageService;
9
+ private restService;
10
+ private matDialog;
11
+ private readonly _eventService;
4
12
  schemeDetails: any;
5
13
  gotoSchemeOverview: EventEmitter<void>;
6
- constructor();
14
+ showChargesTemplate: TemplateRef<HTMLDivElement>;
15
+ slabListTemplate: TemplateRef<HTMLDivElement>;
16
+ constructor(storageService: StorageServiceService, restService: RestService, matDialog: MatDialog, _eventService: EventsService);
7
17
  ngOnInit(): void;
8
18
  screenWidth: any;
9
19
  getScreenSize(event?: any): void;
10
20
  paymentData: any[];
11
21
  getPaymentScheme(): void;
12
22
  getDueDate(paymentDate: string | Date): number | null;
23
+ storeCharges: any;
24
+ closeDialog(): void;
25
+ payDuePayment(passBook: any): void;
26
+ continuePayment(payload: any): void;
27
+ openCashfreeSdk(sessionId: string): void;
28
+ showBenefitSlab(): void;
29
+ confirmRequest(): void;
30
+ slabDetails: any;
31
+ getvalidSlabList(): void;
13
32
  goBack(): void;
14
33
  static ɵfac: i0.ɵɵFactoryDeclaration<SchemeDetailsComponent, never>;
15
34
  static ɵcmp: i0.ɵɵComponentDeclaration<SchemeDetailsComponent, "simpo-scheme-details", never, { "schemeDetails": { "alias": "schemeDetails"; "required": false; }; }, { "gotoSchemeOverview": "gotoSchemeOverview"; }, never, never, true, never>;
@@ -39,17 +39,21 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
39
39
  addressList: any;
40
40
  orderDetailsData: any;
41
41
  schemeDetails: any;
42
+ storeListing: any[];
42
43
  sidePanelList: Tabs[];
43
44
  tabs: Tabs[];
44
45
  orderList: OrderedItems[];
45
46
  wishlistData: OrderedItems[];
47
+ storeId: any;
46
48
  ngOnInit(): void;
49
+ getAllStores(): void;
47
50
  ecomConfigs: any;
48
51
  getEcommerceConfigs(): void;
49
52
  getUserOrderDetails(): void;
50
- passbookSummary: any;
53
+ totalSavings: number;
51
54
  userEnrollments: any[];
52
55
  paymentData: any[];
56
+ totalSchemes: any[];
53
57
  getAllSchemes(): void;
54
58
  getUserWislistDetails(): void;
55
59
  deleteFromWhislist(product: OrderedItems): void;
@@ -83,6 +87,7 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
83
87
  private convertHEX;
84
88
  get currency(): string;
85
89
  getOrderedItems(order: any): any;
90
+ changeStore(ev: any): void;
86
91
  static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
87
92
  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; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
88
93
  }
@@ -26,10 +26,13 @@ export declare class VerifyComponent extends BaseSection implements OnInit {
26
26
  loadingText: string;
27
27
  private API_COUNT;
28
28
  private MAX_API_COUNT;
29
+ private PASSBOOK_API_COUNT;
30
+ private MAX_PASSBOOK_API_COUNT;
29
31
  ngOnInit(): void;
30
32
  get getImageUrl(): string | undefined;
31
33
  get isMobile(): boolean;
32
34
  checkPaymentStatus(): void;
35
+ checkPassbookPaymentStatus(): void;
33
36
  editSection(): void;
34
37
  static ɵfac: i0.ɵɵFactoryDeclaration<VerifyComponent, never>;
35
38
  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; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
@@ -29,7 +29,7 @@ export declare class LinkEditorComponent {
29
29
  changeButtonStyle(): void;
30
30
  getContrastTextColor(backgroundHex: any): void;
31
31
  backgroundType: string[];
32
- setBorderRadius(): "0px" | "7px" | "99px";
32
+ setBorderRadius(): "0px" | "99px" | "7px";
33
33
  setBorder(): string;
34
34
  setColor(): any;
35
35
  setBackground(): any;
@@ -15,7 +15,7 @@ export declare class PricingS1Component extends BaseSection {
15
15
  editSection(): void;
16
16
  getButtonId(): string;
17
17
  redirectTo(): void;
18
- getClass(): "col-4" | "col-3" | "col-12" | "col-5";
18
+ getClass(): "col-4" | "col-12" | "col-5" | "col-3";
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingS1Component, never>;
20
20
  static ɵcmp: i0.ɵɵComponentDeclaration<PricingS1Component, "simpo-pricing-s1", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
21
21
  }
@@ -25,8 +25,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
25
25
  get stylesLayout(): LayOutModel;
26
26
  get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
27
27
  get getBackgroundColor(): BackgroundModel;
28
- get getBackgroundOpacity(): "0" | "0.2" | "0.3" | "0.5" | "0.7";
29
- opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
28
+ get getBackgroundOpacity(): "0" | "0.7" | "0.5" | "0.3" | "0.2";
29
+ opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
30
30
  editSection(): void;
31
31
  getScreenSize(): number;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
@@ -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.2" | "0.3" | "0.5" | "0.7";
28
+ opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "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>;
@@ -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(): "0.2" | "0.3" | "0.5" | "0.7" | "1";
23
+ get getBackgroundOpacity(): "1" | "0.7" | "0.5" | "0.3" | "0.2";
24
24
  get stylesLayout(): LayOutModel;
25
- opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "1";
25
+ opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.3" | "0.2";
26
26
  editSection(): void;
27
27
  redirectTo(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
@@ -24,7 +24,7 @@ export declare class LogoShowcaseComponent extends BaseSection implements OnInit
24
24
  ngOnInit(): void;
25
25
  get stylesLayout(): LayOutModel;
26
26
  get animationDuration(): logoSpeed;
27
- get animationDirection(): "reverse" | "normal" | logoDirection.Left;
27
+ get animationDirection(): logoDirection.Left | "reverse" | "normal";
28
28
  get isMobile(): boolean;
29
29
  get getPositionLayout(): PositionLayoutModal;
30
30
  screenWidth: number;
@@ -21,7 +21,7 @@ export declare class NewTestimonialsComponent extends BaseSection {
21
21
  idx: number;
22
22
  getImageData(): import("../../styles/style.model").Image | undefined;
23
23
  getImageUrl(): string | undefined;
24
- getImageType(): "Video" | "Image";
24
+ getImageType(): "Image" | "Video";
25
25
  editSection(): void;
26
26
  stopPropagation(event: any): void;
27
27
  screenWidth: any;
@@ -23,7 +23,7 @@ export declare class PricingSectionComponent extends BaseSection {
23
23
  getButtonId(): string;
24
24
  editSection(): void;
25
25
  redirectTo(): void;
26
- getClass(): "col-6" | "col-4" | "col-3" | "col-12";
26
+ getClass(): "col-4" | "col-12" | "col-6" | "col-3";
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
28
28
  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>;
29
29
  }
@@ -16,12 +16,14 @@ export declare class RestService implements OnDestroy {
16
16
  isJewellery: boolean;
17
17
  constructor(http: HttpClient, BASE_URL: string, ECOMMERCE_URL: string, CMIS_URL: string);
18
18
  orraBaseUrl: string;
19
+ passBookUrl: string;
19
20
  getBusinessDetails(): void;
20
21
  ngOnDestroy(): void;
21
22
  getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
22
23
  getCategoriesByCollectionId(collectionId: string): Observable<any>;
24
+ getPassbookOrderStatus(orderId: any): Observable<Object>;
23
25
  getProductBySelectedCategory(categoryId: string): Observable<Object>;
24
- getAllSchemes(userCode?: any): any;
26
+ getAllSchemes(userId?: any, storeId?: any): any;
25
27
  getAllRedemptionSchemes(): Observable<Object>;
26
28
  getProductDetails(productId?: string | null): Observable<any>;
27
29
  getCollectionByIds(collectionIds: string[]): Observable<any>;
@@ -104,6 +106,12 @@ export declare class RestService implements OnDestroy {
104
106
  redeemScheme(scheme: string, cartId: any, action: boolean): Observable<Object>;
105
107
  getReviewsByProductId(productId: string, pageNumber: number): Observable<Object>;
106
108
  getFieldsToDisplay(fieldsList: any[]): any;
109
+ generateToken(bId: any, userId: any, storeId?: any, userType?: any): Observable<Object>;
110
+ getAllEnrolledSchemes(payload: any): Observable<Object>;
111
+ enrollScheme(payload: any, checkCharges: boolean): Observable<Object>;
112
+ getBenefitSlab(passbookId?: any): Observable<Object>;
113
+ getAllStaffList(): Observable<Object>;
114
+ requestRedeemption(passbookId: any): Observable<Object>;
107
115
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
108
116
  static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
109
117
  }
@@ -25,6 +25,7 @@ export declare class StorageServiceService {
25
25
  userCollectionRef: IDBObjectStore | null;
26
26
  trialCartCollectionRef: IDBObjectStore | null;
27
27
  createDataBase(): Promise<void>;
28
+ setToken(token: any): void;
28
29
  updateAllData(): void;
29
30
  mergeAllItems(unSyncedItem: any[], syncedItem: any[]): any[];
30
31
  getUserCart(): Promise<IDBRequest<OrderedItems[]>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.254",
3
+ "version": "3.6.256",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file