simpo-component-library 3.6.241 → 3.6.243

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 (38) hide show
  1. package/esm2022/lib/directive/corner-directive.mjs +2 -2
  2. package/esm2022/lib/directive/icon-directive.directive.mjs +27 -0
  3. package/esm2022/lib/directive/set-dynamic-background.directive.mjs +2 -2
  4. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +1 -2
  5. package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.component.mjs +19 -140
  6. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +4 -6
  7. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +2 -43
  8. package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +18 -5
  9. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +3 -3
  10. package/esm2022/lib/sections/header-section/header-section.component.mjs +3 -3
  11. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +3 -3
  12. package/esm2022/lib/services/rest.service.mjs +3 -26
  13. package/esm2022/lib/services/storage.service.mjs +1 -4
  14. package/esm2022/lib/styles/style.model.mjs +1 -1
  15. package/esm2022/public-api.mjs +2 -1
  16. package/fesm2022/simpo-component-library.mjs +70 -220
  17. package/fesm2022/simpo-component-library.mjs.map +1 -1
  18. package/lib/directive/icon-directive.directive.d.ts +10 -0
  19. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
  20. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +1 -1
  21. package/lib/ecommerce/sections/returns-calculator/returns-calculator.component.d.ts +3 -21
  22. package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +0 -3
  23. package/lib/elements/below-image-card/below-image-card.component.d.ts +1 -0
  24. package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
  25. package/lib/elements/pricing-s1/pricing-s1.component.d.ts +1 -1
  26. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
  27. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
  28. package/lib/sections/image-section/image-section.component.d.ts +2 -2
  29. package/lib/sections/logo-showcase/logo-showcase.component.d.ts +1 -1
  30. package/lib/sections/new-testimonials/new-testimonials.component.d.ts +1 -1
  31. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  32. package/lib/services/rest.service.d.ts +1 -6
  33. package/lib/services/storage.service.d.ts +0 -1
  34. package/lib/styles/style.model.d.ts +2 -0
  35. package/package.json +1 -1
  36. package/public-api.d.ts +1 -0
  37. package/simpo-component-library-3.6.243.tgz +0 -0
  38. package/simpo-component-library-3.6.241.tgz +0 -0
@@ -0,0 +1,10 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class IconDirectiveDirective {
4
+ private el;
5
+ iconData: any;
6
+ constructor(el: ElementRef);
7
+ ngOnChanges(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconDirectiveDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirectiveDirective, "[simpoIconDirective]", never, { "iconData": { "alias": "simpoIconDirective"; "required": false; }; }, {}, never, never, true, never>;
10
+ }
@@ -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): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
66
+ getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "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-4" | "col-6" | "col-3" | "width-max";
115
+ getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
116
116
  onFindInStore(id: string): void;
117
117
  onBookAppointment(): void;
118
118
  isDetails: boolean;
@@ -1,18 +1,10 @@
1
- import { TemplateRef } from '@angular/core';
2
1
  import BaseSection from '../../../sections/BaseSection';
3
2
  import { ReturnsCalculatorModel, ReturnsCalculatorStyleModel } from './returns-calculator.model';
4
3
  import { LayOutModel } from '../../../styles/style.model';
5
4
  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';
9
5
  import * as i0 from "@angular/core";
10
6
  export declare class ReturnsCalculatorComponent extends BaseSection {
11
7
  private readonly _eventService;
12
- private restService;
13
- private matDialog;
14
- private storageService;
15
- showChargesTemplate: TemplateRef<HTMLDivElement>;
16
8
  data?: ReturnsCalculatorModel;
17
9
  edit?: boolean;
18
10
  customClass?: string;
@@ -23,12 +15,9 @@ export declare class ReturnsCalculatorComponent extends BaseSection {
23
15
  monthlyAmount: number;
24
16
  maxAmount: number;
25
17
  minAmount: number;
26
- constructor(_eventService: EventsService, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService);
18
+ constructor(_eventService: EventsService);
27
19
  ngOnInit(): void;
28
- maturityCount: number;
29
- enrolledScheme: any;
30
- onSchemeChange(scheme: any): void;
31
- benefitAmount: number;
20
+ onSchemeChange(): void;
32
21
  onAmountChange(): void;
33
22
  get individualContribution(): number;
34
23
  get orraBonus(): number;
@@ -39,14 +28,7 @@ export declare class ReturnsCalculatorComponent extends BaseSection {
39
28
  getButtonId(index: number): string;
40
29
  getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
41
30
  getButtonData(index: number): import("../../../styles/style.model").Button | undefined;
42
- redirectTo(scheme: any): void;
43
- closeDialog(): void;
44
- storeCharges: any;
45
- enrollScheme(scheme: any): void;
46
- continuePayment(payload: any): void;
47
- allSchemes: any[];
48
- getEnrolledSchemes(): void;
49
- openCashfreeSdk(sessionId: string): void;
31
+ redirectTo(data: any): void;
50
32
  static ɵfac: i0.ɵɵFactoryDeclaration<ReturnsCalculatorComponent, never>;
51
33
  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>;
52
34
  }
@@ -26,13 +26,10 @@ 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;
31
29
  ngOnInit(): void;
32
30
  get getImageUrl(): string | undefined;
33
31
  get isMobile(): boolean;
34
32
  checkPaymentStatus(): void;
35
- checkPassbookPaymentStatus(): void;
36
33
  editSection(): void;
37
34
  static ɵfac: i0.ɵɵFactoryDeclaration<VerifyComponent, never>;
38
35
  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>;
@@ -16,6 +16,7 @@ export declare class BelowImageCardComponent {
16
16
  getContentAnimation(): {
17
17
  contentAnimation: any;
18
18
  };
19
+ getAlignment(): "justify-items-start" | "justify-items-end" | "justify-items-center";
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<BelowImageCardComponent, never>;
20
21
  static ɵcmp: i0.ɵɵComponentDeclaration<BelowImageCardComponent, "simpo-below-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
21
22
  }
@@ -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" | "99px" | "7px";
32
+ setBorderRadius(): "0px" | "7px" | "99px";
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-12" | "col-5" | "col-3";
18
+ getClass(): "col-4" | "col-3" | "col-12" | "col-5";
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.7" | "0.5" | "0.3" | "0.2";
29
- opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
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";
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.7" | "0.5" | "0.3" | "0.2";
28
+ opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
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(): "1" | "0.7" | "0.5" | "0.3" | "0.2";
23
+ get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "1";
24
24
  get stylesLayout(): LayOutModel;
25
- opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.3" | "0.2";
25
+ opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "1";
26
26
  editSection(): void;
27
27
  redirectTo(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
@@ -25,7 +25,7 @@ export declare class LogoShowcaseComponent extends BaseSection implements OnInit
25
25
  leftOrRight: any;
26
26
  get stylesLayout(): LayOutModel;
27
27
  get animationDuration(): logoSpeed;
28
- get animationDirection(): logoDirection.Left | "reverse" | "normal";
28
+ get animationDirection(): "reverse" | "normal" | logoDirection.Left;
29
29
  get isMobile(): boolean;
30
30
  get getPositionLayout(): PositionLayoutModal;
31
31
  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(): "Image" | "Video";
24
+ getImageType(): "Video" | "Image";
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-4" | "col-12" | "col-6" | "col-3";
26
+ getClass(): "col-6" | "col-4" | "col-3" | "col-12";
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,14 +16,12 @@ 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;
20
19
  getBusinessDetails(): void;
21
20
  ngOnDestroy(): void;
22
21
  getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
23
22
  getCategoriesByCollectionId(collectionId: string): Observable<any>;
24
- getPassbookOrderStatus(orderId: any): Observable<Object>;
25
23
  getProductBySelectedCategory(categoryId: string): Observable<Object>;
26
- getAllSchemes(userId?: any, storeId?: any): any;
24
+ getAllSchemes(userCode?: any): any;
27
25
  getAllRedemptionSchemes(): Observable<Object>;
28
26
  getProductDetails(productId?: string | null): Observable<any>;
29
27
  getCollectionByIds(collectionIds: string[]): Observable<any>;
@@ -106,9 +104,6 @@ export declare class RestService implements OnDestroy {
106
104
  redeemScheme(scheme: string, cartId: any, action: boolean): Observable<Object>;
107
105
  getReviewsByProductId(productId: string, pageNumber: number): Observable<Object>;
108
106
  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
107
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
113
108
  static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
114
109
  }
@@ -25,7 +25,6 @@ export declare class StorageServiceService {
25
25
  userCollectionRef: IDBObjectStore | null;
26
26
  trialCartCollectionRef: IDBObjectStore | null;
27
27
  createDataBase(): Promise<void>;
28
- setToken(token: any): void;
29
28
  updateAllData(): void;
30
29
  mergeAllItems(unSyncedItem: any[], syncedItem: any[]): any[];
31
30
  getUserCart(): Promise<IDBRequest<OrderedItems[]>>;
@@ -171,6 +171,8 @@ export interface Image {
171
171
  export interface Icon {
172
172
  url: string;
173
173
  color: string;
174
+ showBackground?: boolean;
175
+ backgroundColor?: string;
174
176
  }
175
177
  export interface ButtonStyleModel {
176
178
  type: BUTTON_TYPE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.241",
3
+ "version": "3.6.243",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -96,6 +96,7 @@ export * from './lib/directive/height.directive';
96
96
  export * from './lib/directive/alignment.directive';
97
97
  export * from './lib/directive/translate-onhover.directive';
98
98
  export * from './lib/directive/merge-header.directive';
99
+ export * from './lib/directive/icon-directive.directive';
99
100
  export * from './lib/styles/index';
100
101
  export * from './lib/styles/style.model';
101
102
  export * from './lib/styles/types';
Binary file