simpo-component-library 1.6.103 → 1.6.104

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.
@@ -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
  }
@@ -11,6 +11,15 @@ import { OrderedItems } from '../../styles/OrderedItems.modal';
11
11
  import { MessageService } from 'primeng/api';
12
12
  import { MatBottomSheet } from '@angular/material/bottom-sheet';
13
13
  import * as i0 from "@angular/core";
14
+ interface Coupon {
15
+ discountType: string;
16
+ discountName: string;
17
+ discountDescription: string;
18
+ applicable: boolean;
19
+ status: boolean;
20
+ validFrom: Date;
21
+ validTo: Date;
22
+ }
14
23
  export declare class CartComponent extends BaseSection implements OnInit {
15
24
  private readonly _eventService;
16
25
  private readonly cartService;
@@ -35,8 +44,12 @@ export declare class CartComponent extends BaseSection implements OnInit {
35
44
  private userDetails;
36
45
  private USER_CART_ITEMS;
37
46
  selectedAddressIdx: number;
47
+ enteredCouponCode: string;
48
+ couponList: Coupon[];
38
49
  cartInfo: any;
39
50
  ngOnInit(): void;
51
+ getCouponList(): void;
52
+ removeCoupon(): void;
40
53
  getIndexDBData(): void;
41
54
  proceedToCheckout(): void;
42
55
  goToProductDetails(product: OrderedItems): void;
@@ -51,9 +64,14 @@ export declare class CartComponent extends BaseSection implements OnInit {
51
64
  getKeys(object: Object): string[];
52
65
  editSection(): void;
53
66
  closeWindow(): void;
67
+ openDialog(container: any): void;
68
+ searchIfApplicable(): void;
69
+ applyCoupon(coupon: any): void;
70
+ calculateCart(): void;
54
71
  get getAddressList(): import("../../styles/user.modal").AddressDetails[];
55
72
  get isMobile(): boolean;
56
73
  get currency(): string;
57
74
  static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
58
75
  static ɵcmp: i0.ɵɵComponentDeclaration<CartComponent, "simpo-cart", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
59
76
  }
77
+ export {};
@@ -1,13 +1,13 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { CustomerReviewModel } from './customer-review.model';
3
2
  import { ActivatedRoute } from '@angular/router';
4
3
  import { RestService } from '../../../services/rest.service';
5
4
  import { Review } from '../../styles/review.modal';
5
+ import { ProductDescModal } from '../product-desc/product-desc.modal';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class CustomerReviewComponent implements OnInit {
8
8
  private readonly activatedRoute;
9
9
  private readonly restService;
10
- data?: CustomerReviewModel;
10
+ data?: ProductDescModal;
11
11
  index?: number;
12
12
  edit?: boolean;
13
13
  delete?: boolean;
@@ -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
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
@@ -36,6 +36,8 @@ export declare class RestService implements OnDestroy {
36
36
  generateOTP(mobile: string, countryCode: string): Observable<Object>;
37
37
  verifyOTP(mobile: string, otp: string, deviceInfo: DeviceInfo): Observable<Object>;
38
38
  resendOTP(mobile: string, countryCode: string): Observable<Object>;
39
+ applicableDiscountList(cartId: string): Observable<Object>;
40
+ removeDiscountFromCart(cartId: string): Observable<Object>;
39
41
  addItemToDB(userCart: any): Observable<Object>;
40
42
  getUserItems(userId: string, cartType: 'CART' | 'WISHLIST'): Observable<Object>;
41
43
  placeOrder(cartId: string): Observable<Object>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.6.103",
3
+ "version": "1.6.104",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file