simpo-component-library 3.6.251 → 3.6.253

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 (63) hide show
  1. package/esm2022/lib/directive/corner-directive.mjs +2 -2
  2. package/esm2022/lib/directive/icon-directive.directive.mjs +43 -0
  3. package/esm2022/lib/directive/image-editor.directive.mjs +11 -4
  4. package/esm2022/lib/directive/set-dynamic-background.directive.mjs +2 -2
  5. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +1 -2
  6. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +4 -10
  7. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +2 -2
  8. package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.component.mjs +19 -141
  9. package/esm2022/lib/ecommerce/sections/scheme-details/scheme-details.component.mjs +11 -89
  10. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +14 -31
  11. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +2 -43
  12. package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +24 -5
  13. package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +2 -2
  14. package/esm2022/lib/elements/image-editor/image-editor.component.mjs +57 -27
  15. package/esm2022/lib/elements/pricing-s1/pricing-s1.component.mjs +2 -2
  16. package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +2 -2
  17. package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +2 -2
  18. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +2 -2
  19. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +4 -4
  20. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +1 -1
  21. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +1 -1
  22. package/esm2022/lib/sections/features-section/features-section.component.mjs +2 -2
  23. package/esm2022/lib/sections/header-section/header-section.component.mjs +3 -3
  24. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +2 -2
  25. package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +2 -2
  26. package/esm2022/lib/sections/image-section/image-section.component.mjs +2 -2
  27. package/esm2022/lib/sections/logo-gallery/logo-gallery.component.mjs +2 -2
  28. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +5 -4
  29. package/esm2022/lib/sections/logo-showcase/logo-showcase.modal.mjs +1 -1
  30. package/esm2022/lib/sections/new-services/new-services.component.mjs +1 -1
  31. package/esm2022/lib/sections/new-testimonials/new-testimonials.component.mjs +1 -1
  32. package/esm2022/lib/sections/news-letter-component/news-letter-component.component.mjs +2 -2
  33. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +2 -2
  34. package/esm2022/lib/sections/process-modern/process-modern.component.mjs +2 -2
  35. package/esm2022/lib/sections/process-section/process-section.component.mjs +1 -1
  36. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +2 -2
  37. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +2 -2
  38. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +2 -2
  39. package/esm2022/lib/services/events.service.mjs +2 -1
  40. package/esm2022/lib/services/rest.service.mjs +3 -30
  41. package/esm2022/lib/services/storage.service.mjs +1 -4
  42. package/esm2022/lib/styles/style.model.mjs +1 -1
  43. package/esm2022/public-api.mjs +2 -1
  44. package/fesm2022/simpo-component-library.mjs +203 -396
  45. package/fesm2022/simpo-component-library.mjs.map +1 -1
  46. package/lib/directive/icon-directive.directive.d.ts +16 -0
  47. package/lib/directive/image-editor.directive.d.ts +4 -1
  48. package/lib/ecommerce/sections/returns-calculator/returns-calculator.component.d.ts +3 -21
  49. package/lib/ecommerce/sections/scheme-details/scheme-details.component.d.ts +2 -16
  50. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +1 -2
  51. package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +0 -3
  52. package/lib/elements/below-image-card/below-image-card.component.d.ts +3 -0
  53. package/lib/elements/image-editor/image-editor.component.d.ts +4 -1
  54. package/lib/sections/logo-showcase/logo-showcase.component.d.ts +0 -1
  55. package/lib/sections/logo-showcase/logo-showcase.modal.d.ts +2 -3
  56. package/lib/services/events.service.d.ts +1 -0
  57. package/lib/services/rest.service.d.ts +1 -6
  58. package/lib/services/storage.service.d.ts +0 -1
  59. package/lib/styles/style.model.d.ts +4 -0
  60. package/package.json +1 -1
  61. package/public-api.d.ts +1 -0
  62. package/simpo-component-library-3.6.253.tgz +0 -0
  63. package/simpo-component-library-3.6.251.tgz +0 -0
@@ -0,0 +1,16 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { Icon } from '../styles/style.model';
3
+ import { EventsService } from '../services/events.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class IconDirectiveDirective {
6
+ private eventsService;
7
+ private el;
8
+ iconData?: Icon;
9
+ iconId: string;
10
+ constructor(eventsService: EventsService, el: ElementRef);
11
+ ngOnInit(): void;
12
+ ngOnChanges(): void;
13
+ private updateIconStyles;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconDirectiveDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirectiveDirective, "[simpoIconDirective]", never, { "iconData": { "alias": "simpoIconDirective"; "required": false; }; "iconId": { "alias": "iconId"; "required": false; }; }, {}, never, never, true, never>;
16
+ }
@@ -3,6 +3,7 @@ import { Image } from '../styles/style.model';
3
3
  import { MatDialog } from '@angular/material/dialog';
4
4
  import { EventsService } from '../services/events.service';
5
5
  import { Router } from '@angular/router';
6
+ import { Icon } from '../styles/style.model';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class ImageEditorDirective implements OnInit, OnDestroy {
8
9
  private el;
@@ -12,6 +13,8 @@ export declare class ImageEditorDirective implements OnInit, OnDestroy {
12
13
  appImageEditor: boolean;
13
14
  imageData?: Image;
14
15
  sectionId?: string;
16
+ showIcon?: boolean;
17
+ iconData?: Icon;
15
18
  private mouseEnterSub?;
16
19
  private mouseLeaveSub?;
17
20
  private clickSub?;
@@ -24,5 +27,5 @@ export declare class ImageEditorDirective implements OnInit, OnDestroy {
24
27
  ngOnDestroy(): void;
25
28
  redirectTo(): void;
26
29
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorDirective, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<ImageEditorDirective, "img[appImageEditor]", never, { "appImageEditor": { "alias": "appImageEditor"; "required": false; }; "imageData": { "alias": "imageData"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; }, {}, never, never, true, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ImageEditorDirective, "[appImageEditor]", never, { "appImageEditor": { "alias": "appImageEditor"; "required": false; }; "imageData": { "alias": "imageData"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "iconData": { "alias": "iconData"; "required": false; }; }, {}, never, never, true, never>;
28
31
  }
@@ -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
  }
@@ -1,29 +1,15 @@
1
- import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
- import { StorageServiceService } from '@simpo-ui/services/storage.service';
3
- import { RestService } from '@simpo-ui/services/rest.service';
4
- import { MatDialog } from '@angular/material/dialog';
5
- import { EventsService } from '.././../../services/events.service';
1
+ import { EventEmitter, OnInit } from '@angular/core';
6
2
  import * as i0 from "@angular/core";
7
3
  export declare class SchemeDetailsComponent implements OnInit {
8
- private storageService;
9
- private restService;
10
- private matDialog;
11
- private readonly _eventService;
12
4
  schemeDetails: any;
13
5
  gotoSchemeOverview: EventEmitter<void>;
14
- showChargesTemplate: TemplateRef<HTMLDivElement>;
15
- constructor(storageService: StorageServiceService, restService: RestService, matDialog: MatDialog, _eventService: EventsService);
6
+ constructor();
16
7
  ngOnInit(): void;
17
8
  screenWidth: any;
18
9
  getScreenSize(event?: any): void;
19
10
  paymentData: any[];
20
11
  getPaymentScheme(): void;
21
12
  getDueDate(paymentDate: string | Date): number | null;
22
- storeCharges: any;
23
- closeDialog(): void;
24
- payDuePayment(passBook: any): void;
25
- continuePayment(payload: any): void;
26
- openCashfreeSdk(sessionId: string): void;
27
13
  goBack(): void;
28
14
  static ɵfac: i0.ɵɵFactoryDeclaration<SchemeDetailsComponent, never>;
29
15
  static ɵcmp: i0.ɵɵComponentDeclaration<SchemeDetailsComponent, "simpo-scheme-details", never, { "schemeDetails": { "alias": "schemeDetails"; "required": false; }; }, { "gotoSchemeOverview": "gotoSchemeOverview"; }, never, never, true, never>;
@@ -47,10 +47,9 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
47
47
  ecomConfigs: any;
48
48
  getEcommerceConfigs(): void;
49
49
  getUserOrderDetails(): void;
50
- totalSavings: number;
50
+ passbookSummary: any;
51
51
  userEnrollments: any[];
52
52
  paymentData: any[];
53
- totalSchemes: any[];
54
53
  getAllSchemes(): void;
55
54
  getUserWislistDetails(): void;
56
55
  deleteFromWhislist(product: OrderedItems): void;
@@ -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,9 @@ export declare class BelowImageCardComponent {
16
16
  getContentAnimation(): {
17
17
  contentAnimation: any;
18
18
  };
19
+ get getIconStyls(): any;
20
+ ngOnChanges(): void;
21
+ getAlignment(): "justify-items-start" | "justify-items-end" | "justify-items-center";
19
22
  static ɵfac: i0.ɵɵFactoryDeclaration<BelowImageCardComponent, never>;
20
23
  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
24
  }
@@ -1,6 +1,6 @@
1
1
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
2
2
  import { EventsService } from '../../services/events.service';
3
- import { Button, Image } from '../../styles/style.model';
3
+ import { Button, Icon, Image } from '../../styles/style.model';
4
4
  import { ElementServiceService } from '../editor-service.service';
5
5
  import { RedirectionLinkType } from '../../styles/index';
6
6
  import * as i0 from "@angular/core";
@@ -12,6 +12,7 @@ export declare class ImageEditorComponent {
12
12
  private matDialog;
13
13
  constructor(eventsService: EventsService, editorService: ElementServiceService, dialogRef: MatDialogRef<ImageEditorComponent>, data: any, matDialog: MatDialog);
14
14
  imageData: Image;
15
+ iconData: Icon;
15
16
  sectionId: string;
16
17
  private backDrop;
17
18
  link: Button;
@@ -22,6 +23,7 @@ export declare class ImageEditorComponent {
22
23
  min: number;
23
24
  imgLoader: boolean;
24
25
  updateImage(): Promise<void>;
26
+ changeIconColor(): void;
25
27
  horizontalPosition(): void;
26
28
  deleteImage(): void;
27
29
  linkType: any[];
@@ -40,6 +42,7 @@ export declare class ImageEditorComponent {
40
42
  categoryPath: any;
41
43
  addCategoryToPath(): void;
42
44
  onPageChange(event: any): void;
45
+ imageHelperFunction(): Promise<void>;
43
46
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorComponent, never>;
44
47
  static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "simpo-image-editor", never, {}, {}, never, never, true, never>;
45
48
  }
@@ -22,7 +22,6 @@ export declare class LogoShowcaseComponent extends BaseSection implements OnInit
22
22
  isFullWidth: boolean;
23
23
  constructor(_eventService: EventsService);
24
24
  ngOnInit(): void;
25
- leftOrRight: any;
26
25
  get stylesLayout(): LayOutModel;
27
26
  get animationDuration(): logoSpeed;
28
27
  get animationDirection(): logoDirection.Left | "reverse" | "normal";
@@ -1,4 +1,4 @@
1
- import { Image, ImageStyle, StylesModel, ActionModel, InputTextModel, ListItemModal, PositionLayoutModal, DisplaySection } from "./../../styles/style.model";
1
+ import { ImageStyle, StylesModel, ActionModel, InputTextModel, ListItemModal, PositionLayoutModal, DisplaySection, Icon } from "./../../styles/style.model";
2
2
  import { Corners, logoDirection, logoSpeed, logoType, showCaseType, AlignContent } from './../../styles/index';
3
3
  import { CARD_SIZE, LOGO_POSITION } from './../../styles/types';
4
4
  export interface LogoShowcaseSection {
@@ -15,11 +15,10 @@ export interface LogoShowcaseContentModel {
15
15
  listItem: ListItemModal<LogoShowcaseItemModel>;
16
16
  }
17
17
  export interface Display extends DisplaySection {
18
- showIcon: boolean;
19
18
  showButtonOnHover: boolean;
20
19
  }
21
20
  export interface LogoShowcaseItemModel {
22
- image: Image;
21
+ icon: Icon;
23
22
  inputText: InputTextModel[];
24
23
  }
25
24
  export interface LogoShowcaseStylesModel extends StylesModel {
@@ -46,6 +46,7 @@ export declare class EventsService implements OnInit {
46
46
  showBagIcon: EventEmitter<boolean>;
47
47
  formFieldChanged: EventEmitter<unknown>;
48
48
  elementHeight: EventEmitter<unknown>;
49
+ iconChanged: EventEmitter<unknown>;
49
50
  static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
50
51
  static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
51
52
  }
@@ -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[]>>;
@@ -169,8 +169,12 @@ export interface Image {
169
169
  content?: Button;
170
170
  }
171
171
  export interface Icon {
172
+ id?: string;
172
173
  url: string;
174
+ altText?: string;
173
175
  color: string;
176
+ showBackground?: boolean;
177
+ backgroundColor?: string;
174
178
  }
175
179
  export interface ButtonStyleModel {
176
180
  type: BUTTON_TYPE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.251",
3
+ "version": "3.6.253",
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