simpo-component-library 3.6.230 → 3.6.235

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/components/hover-elements/hover-elements.component.mjs +3 -3
  2. package/esm2022/lib/directive/merge-header.directive.mjs +39 -0
  3. package/esm2022/lib/directive/sticky-directive.mjs +24 -5
  4. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +1 -5
  5. package/esm2022/lib/ecommerce/sections/enrollment-form/enrollment-form.component.mjs +1 -1
  6. package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.component.mjs +19 -117
  7. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +2 -43
  8. package/esm2022/lib/elements/property/property.component.mjs +1 -1
  9. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +15 -5
  10. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +12 -3
  11. package/esm2022/lib/sections/header-section/header-section.component.mjs +26 -27
  12. package/esm2022/lib/sections/location-section/location-section.component.mjs +1 -1
  13. package/esm2022/lib/services/cart.service.mjs +1 -1
  14. package/esm2022/lib/services/events.service.mjs +2 -1
  15. package/esm2022/lib/services/rest.service.mjs +1 -24
  16. package/esm2022/lib/services/storage.service.mjs +1 -4
  17. package/esm2022/public-api.mjs +2 -1
  18. package/fesm2022/simpo-component-library.mjs +124 -218
  19. package/fesm2022/simpo-component-library.mjs.map +1 -1
  20. package/lib/directive/merge-header.directive.d.ts +16 -0
  21. package/lib/directive/sticky-directive.d.ts +5 -1
  22. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
  23. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +1 -1
  24. package/lib/ecommerce/sections/returns-calculator/returns-calculator.component.d.ts +3 -20
  25. package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +0 -3
  26. package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
  27. package/lib/elements/pricing-s1/pricing-s1.component.d.ts +1 -1
  28. package/lib/elements/property/property.component.d.ts +1 -1
  29. package/lib/sections/banner-section/banner-section.component.d.ts +1 -0
  30. package/lib/sections/faq-section/faq-section.component.d.ts +1 -0
  31. package/lib/sections/header-section/header-section.component.d.ts +7 -2
  32. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  33. package/lib/services/events.service.d.ts +1 -0
  34. package/lib/services/rest.service.d.ts +0 -5
  35. package/package.json +1 -1
  36. package/public-api.d.ts +1 -0
  37. package/simpo-component-library-3.6.235.tgz +0 -0
  38. package/simpo-component-library-3.6.230.tgz +0 -0
@@ -0,0 +1,16 @@
1
+ import { ElementRef, SimpleChanges, OnInit, OnChanges } from '@angular/core';
2
+ import { EventsService } from '../services/events.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MergeHeaderDirective implements OnInit, OnChanges {
5
+ private eventsService;
6
+ private el;
7
+ merge?: boolean;
8
+ backgroundInfo: any;
9
+ private top;
10
+ constructor(eventsService: EventsService, el: ElementRef);
11
+ ngOnInit(): void;
12
+ ngOnChanges(changes: SimpleChanges): void;
13
+ private applyBackgroundPosition;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<MergeHeaderDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MergeHeaderDirective, "[simpoMergeHeader]", never, { "merge": { "alias": "simpoMergeHeader"; "required": false; }; "backgroundInfo": { "alias": "backgroundInfo"; "required": false; }; }, {}, never, never, true, never>;
16
+ }
@@ -1,11 +1,15 @@
1
1
  import { ElementRef } from '@angular/core';
2
+ import { Router } from '@angular/router';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class SimpoStickyDirective {
4
5
  private el;
6
+ private router;
5
7
  simpoSticky?: boolean;
6
8
  categoryHeader?: boolean;
7
- constructor(el: ElementRef);
9
+ constructor(el: ElementRef, router: Router);
8
10
  ngOnChanges(): void;
11
+ private resizeObserver;
12
+ ngAfterViewInit(): void;
9
13
  private addParentMargin;
10
14
  private removeParentMargin;
11
15
  ngOnDestroy(): void;
@@ -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,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,13 +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
- allSchemes: any[];
47
- getEnrolledSchemes(): void;
48
- openCashfreeSdk(sessionId: string): void;
31
+ redirectTo(data: any): void;
49
32
  static ɵfac: i0.ɵɵFactoryDeclaration<ReturnsCalculatorComponent, never>;
50
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>;
51
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>;
@@ -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
  }
@@ -1,4 +1,4 @@
1
- import { Property } from '@simpo-ui/sections/property-component/property-component.modal';
1
+ import { Property } from '../../sections/property-component/property-component.modal';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class PropertyComponent {
4
4
  element?: Property;
@@ -25,6 +25,7 @@ export declare class BannerSectionComponent extends BaseSection implements OnIni
25
25
  stopPropagation(event: any): void;
26
26
  screenWidth: any;
27
27
  getScreenSize(): void;
28
+ getColor(): string;
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerSectionComponent, never>;
29
30
  static ɵcmp: i0.ɵɵComponentDeclaration<BannerSectionComponent, "simpo-banner-section", 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>;
30
31
  }
@@ -23,6 +23,7 @@ export declare class FaqSectionComponent extends BaseSection {
23
23
  toggleContent(idx: number): void;
24
24
  editSection(): void;
25
25
  getScreenSize(): void;
26
+ getLayout(): "justify-content-start" | "justify-content-center" | "justify-content-end";
26
27
  static ɵfac: i0.ɵɵFactoryDeclaration<FaqSectionComponent, never>;
27
28
  static ɵcmp: i0.ɵɵComponentDeclaration<FaqSectionComponent, "simpo-faq-section", 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>;
28
29
  }
@@ -16,12 +16,14 @@ export declare class HeaderSectionComponent implements OnInit {
16
16
  private readonly matDialog;
17
17
  private readonly storageService;
18
18
  private restService;
19
+ private eventService;
19
20
  data?: HeaderSectionModel;
20
21
  nextComponent: any;
21
22
  index?: number;
22
23
  customClass?: string;
23
24
  edit?: boolean;
24
25
  childContainer: any;
26
+ private resizeObserver;
25
27
  scrollValue: number;
26
28
  content?: HeaderContentModel;
27
29
  style?: HeaderStyleModel;
@@ -31,7 +33,7 @@ export declare class HeaderSectionComponent implements OnInit {
31
33
  theme: typeof ProductCardTheme;
32
34
  HeaderStyling: typeof Header_Type;
33
35
  parentHeight: number;
34
- constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService, restService: RestService);
36
+ constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService, restService: RestService, eventService: EventsService);
35
37
  searchChangeTimeout: any;
36
38
  waitBeforeSearch(): void;
37
39
  searchProducts(): void;
@@ -46,11 +48,14 @@ export declare class HeaderSectionComponent implements OnInit {
46
48
  onScroll(event: any): void;
47
49
  movingText?: MovingTextModal;
48
50
  toShowInJewellery: boolean;
51
+ differ: any;
49
52
  ngOnInit(): void;
53
+ ngAfterViewInit(): void;
50
54
  showSearchBarMobile: boolean;
51
55
  isNavbarOpen: boolean;
52
56
  screenWidth: number;
53
57
  getScreenSize(event?: number): void;
58
+ height: any;
54
59
  getParentHeight(): void;
55
60
  get getDropdownLinks(): string[];
56
61
  get isEcommerceWebsite(): boolean;
@@ -58,7 +63,7 @@ export declare class HeaderSectionComponent implements OnInit {
58
63
  showEditors: boolean;
59
64
  showEditTabs(isShow: boolean): void;
60
65
  goToHome(): void;
61
- get isHeaderSticky(): boolean;
66
+ get isHeaderSticky(): boolean | undefined;
62
67
  get backgroundInfo(): any;
63
68
  get simpoColor(): any;
64
69
  get accentColor(): 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
  }
@@ -45,6 +45,7 @@ export declare class EventsService implements OnInit {
45
45
  cashFreeEvent: EventEmitter<unknown>;
46
46
  showBagIcon: EventEmitter<boolean>;
47
47
  formFieldChanged: EventEmitter<unknown>;
48
+ elementHeight: EventEmitter<unknown>;
48
49
  static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
49
50
  static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
50
51
  }
@@ -16,12 +16,10 @@ 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
24
  getAllSchemes(userCode?: any): any;
27
25
  getAllRedemptionSchemes(): Observable<Object>;
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.230",
3
+ "version": "3.6.235",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -95,6 +95,7 @@ export * from './lib/directive/spacing.directive';
95
95
  export * from './lib/directive/height.directive';
96
96
  export * from './lib/directive/alignment.directive';
97
97
  export * from './lib/directive/translate-onhover.directive';
98
+ export * from './lib/directive/merge-header.directive';
98
99
  export * from './lib/styles/index';
99
100
  export * from './lib/styles/style.model';
100
101
  export * from './lib/styles/types';
Binary file