simpo-component-library 2.0.0 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  }
@@ -54,6 +54,7 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
54
54
  ngOnInit(): void;
55
55
  ngOnDestroy(): void;
56
56
  updateUserCart(): void;
57
+ updateUserCartV2(): void;
57
58
  mergeOrderItems(syncedItems: any[]): void;
58
59
  getCouponList(): void;
59
60
  removeCoupon(event: MouseEvent): void;
@@ -16,7 +16,7 @@ export declare class PricingSectionComponent extends BaseSection {
16
16
  style?: PricingSectionStylesModel;
17
17
  constructor(_eventService: EventsService);
18
18
  ngOnInit(): void;
19
- getTextColor(): "#ffffff" | "#000000";
19
+ getTextColor(): "#000000" | "#ffffff";
20
20
  get headingSpace(): SPACING;
21
21
  editSection(): void;
22
22
  redirectTo(): void;
@@ -1,13 +1,15 @@
1
1
  import { OrderedItems } from '../ecommerce/styles/OrderedItems.modal';
2
- import { Product } from '../ecommerce/styles/product.modal';
2
+ import { ItemVariant, Product } from '../ecommerce/styles/product.modal';
3
3
  import { RestService } from './rest.service';
4
4
  import { StorageServiceService } from './storage.service';
5
5
  import { Cart } from '../ecommerce/styles/cart.modal';
6
+ import { MessageService } from 'primeng/api';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class CartService {
8
9
  private readonly storageService;
9
10
  private readonly restService;
10
- constructor(storageService: StorageServiceService, restService: RestService);
11
+ private readonly messageService;
12
+ constructor(storageService: StorageServiceService, restService: RestService, messageService: MessageService);
11
13
  addItemFromCartPage(product: OrderedItems, userCart: any): import("rxjs").Observable<Object>;
12
14
  addItemFromWishlistPage(product: OrderedItems, userWishlist: any): import("rxjs").Observable<Object>;
13
15
  removeItemFromWishlistPage(product: OrderedItems, userWishlist: any): import("rxjs").Observable<Object>;
@@ -22,6 +24,9 @@ export declare class CartService {
22
24
  private objectMapper;
23
25
  storeCartDataToServer(cart: Cart): void;
24
26
  clearCartItems(): void;
27
+ addItemToLocalCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
28
+ isItemOutOfStock(product: Product): boolean;
29
+ getItemVarient(product: Product, varientId: string): ItemVariant | null;
25
30
  storeDataToServer(): void;
26
31
  static ɵfac: i0.ɵɵFactoryDeclaration<CartService, never>;
27
32
  static ɵprov: i0.ɵɵInjectableDeclaration<CartService>;
@@ -28,6 +28,7 @@ export declare class StorageServiceService {
28
28
  updateAllData(): void;
29
29
  mergeAllItems(unSyncedItem: any[], syncedItem: any[]): any[];
30
30
  getUserCart(): Promise<IDBRequest<OrderedItems[]>>;
31
+ getCartProduct(): Promise<OrderedItems[]>;
31
32
  addProductToCart(product: OrderedItems): IDBRequest<IDBValidKey>;
32
33
  addAllProductToWishlist(products: OrderedItems[]): IDBTransaction;
33
34
  addAllProductsToCart(products: OrderedItems[]): IDBTransaction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file