simpo-component-library 1.4.84 → 1.4.87

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/authenticate-user/authenticate-user.component.mjs +31 -16
  2. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +67 -67
  3. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +6 -3
  4. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +3 -3
  5. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +3 -3
  6. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +7 -4
  7. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +68 -18
  8. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +2 -2
  9. package/esm2022/lib/services/endUser.service.mjs +28 -0
  10. package/esm2022/lib/services/events.service.mjs +2 -8
  11. package/esm2022/lib/services/storage.service.mjs +9 -1
  12. package/esm2022/public-api.mjs +2 -1
  13. package/fesm2022/simpo-component-library.mjs +214 -116
  14. package/fesm2022/simpo-component-library.mjs.map +1 -1
  15. package/lib/directive/background-directive.d.ts +1 -1
  16. package/lib/directive/button-directive.directive.d.ts +1 -1
  17. package/lib/directive/color.directive.d.ts +1 -1
  18. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +1 -0
  19. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +1 -0
  20. package/lib/ecommerce/sections/whislist/whislist.component.d.ts +1 -0
  21. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  22. package/lib/services/endUser.service.d.ts +13 -0
  23. package/lib/services/events.service.d.ts +0 -1
  24. package/lib/services/storage.service.d.ts +1 -0
  25. package/package.json +1 -1
  26. package/public-api.d.ts +1 -0
  27. package/simpo-component-library-1.4.86.tgz +0 -0
  28. package/simpo-component-library-1.4.87.tgz +0 -0
  29. package/simpo-component-library-1.4.83.tgz +0 -0
  30. package/simpo-component-library-1.4.84.tgz +0 -0
@@ -11,7 +11,7 @@ export declare class BackgroundDirective implements OnChanges {
11
11
  constructor(el: ElementRef, eventService: EventsService);
12
12
  ngOnDestroy(): void;
13
13
  ngOnChanges(change: SimpleChanges): void;
14
- getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
14
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
16
16
  static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; "scrollValue": { "alias": "scrollValue"; "required": false; }; }, {}, never, never, true, never>;
17
17
  }
@@ -15,7 +15,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
15
15
  applyButtonStyleChanges(): void;
16
16
  applyButtonType(style: ButtonStyleModel, color: string): void;
17
17
  applyButtonShape(style: ButtonStyleModel): void;
18
- getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
18
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
19
19
  buttonStyleSubscription?: Subscription;
20
20
  buttonStyleChangeCheck(): void;
21
21
  changeButtonStyle(id: any, style: ButtonStyleModel, bgColor: string): void;
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
12
12
  ngOnDestroy(): void;
13
13
  applyColor(): void;
14
14
  bgColorChangeCheck(): void;
15
- getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
15
+ getTextColor(): "#000000" | "#ffffff" | "#ffffff;";
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorDirective, never>;
17
17
  static ɵdir: i0.ɵɵDirectiveDeclaration<ColorDirective, "[simpoColor]", never, { "bgColor": { "alias": "simpoColor"; "required": false; }; }, {}, never, never, true, never>;
18
18
  }
@@ -17,6 +17,7 @@ export declare class OrderDetailsComponent implements OnInit {
17
17
  ngOnInit(): void;
18
18
  get getCardBGColor(): string;
19
19
  get isMobile(): boolean;
20
+ getSupportingColor(bgColor: string): string;
20
21
  private getComplementColor;
21
22
  private convertHEX;
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<OrderDetailsComponent, never>;
@@ -34,6 +34,7 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
34
34
  ngOnInit(): void;
35
35
  getUserOrderDetails(): void;
36
36
  get getProductWidth(): string;
37
+ getSupportingColor(bgColor: string): string;
37
38
  getUserInfo(): void;
38
39
  goToPanel(panel: any): void;
39
40
  goBack(): void;
@@ -20,6 +20,7 @@ export declare class WhislistComponent extends BaseSection implements OnInit {
20
20
  constructor(cartService: CartService, _eventService: EventsService, storageService: StorageServiceService, restService: RestService);
21
21
  private userDetails;
22
22
  private USER_WISHLIST_ITEMS;
23
+ wishlistInfo: any;
23
24
  ngOnInit(): void;
24
25
  moveToCart(item: any): void;
25
26
  deleteFromWhislist(item: any): void;
@@ -15,7 +15,7 @@ export declare class PricingSectionComponent extends BaseSection {
15
15
  style?: PricingSectionStylesModel;
16
16
  constructor(_eventService: EventsService);
17
17
  ngOnInit(): void;
18
- getTextColor(): "#ffffff" | "#000000";
18
+ getTextColor(): "#000000" | "#ffffff";
19
19
  get headingSpace(): SPACING;
20
20
  editSection(): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
@@ -0,0 +1,13 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
2
+ import { StorageServiceService } from "./storage.service";
3
+ import * as i0 from "@angular/core";
4
+ export declare class EndUserService implements OnInit, OnDestroy {
5
+ private readonly storageService;
6
+ constructor(storageService: StorageServiceService);
7
+ paymentStatusEvent: EventEmitter<boolean>;
8
+ private eventRef;
9
+ ngOnInit(): void;
10
+ ngOnDestroy(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<EndUserService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<EndUserService>;
13
+ }
@@ -41,7 +41,6 @@ export declare class EventsService implements OnInit {
41
41
  environmentType: EventEmitter<string>;
42
42
  showLoadingScreen: EventEmitter<boolean>;
43
43
  cashFreeEvent: EventEmitter<unknown>;
44
- paymentStatusEvent: EventEmitter<boolean>;
45
44
  static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
46
45
  static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
47
46
  }
@@ -26,6 +26,7 @@ export declare class StorageServiceService {
26
26
  updateAllData(): void;
27
27
  getUserCart(): Promise<IDBRequest<OrderedItems[]>>;
28
28
  addProductToCart(product: OrderedItems): IDBRequest<IDBValidKey>;
29
+ addAllProductToWishlist(products: OrderedItems[]): IDBTransaction;
29
30
  addAllProductsToCart(products: OrderedItems[]): IDBTransaction;
30
31
  removeProductFromCart(productId: string): IDBRequest<undefined>;
31
32
  getProductFromCart(productId: string): Promise<IDBRequest<any>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.84",
3
+ "version": "1.4.87",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -38,6 +38,7 @@ export * from './lib/ecommerce/sections/whislist/whislist.component';
38
38
  export * from './lib/ecommerce/sections/user-profile/user-profile.component';
39
39
  export * from './lib/ecommerce/sections/authenticate-user/authenticate-user.component';
40
40
  export * from './lib/services/events.service';
41
+ export * from './lib/services/endUser.service';
41
42
  export * from './lib/directive/animation-directive';
42
43
  export * from './lib/directive/background-directive';
43
44
  export * from './lib/directive/banner-content-fit-directive';
Binary file
Binary file