simpo-component-library 1.9.0 → 1.9.2

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
  }
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { CartSectionModal, CartSectionStylesModel } from './cart.modal';
3
3
  import BaseSection from '../../../sections/BaseSection';
4
4
  import { EventsService } from '.././../../services/events.service';
@@ -10,6 +10,7 @@ import { StorageServiceService } from '../../../services/storage.service';
10
10
  import { OrderedItems } from '../../styles/OrderedItems.modal';
11
11
  import { MessageService } from 'primeng/api';
12
12
  import { MatBottomSheet } from '@angular/material/bottom-sheet';
13
+ import { Subscription } from 'rxjs';
13
14
  import * as i0 from "@angular/core";
14
15
  interface Coupon {
15
16
  discountType: string;
@@ -22,7 +23,7 @@ interface Coupon {
22
23
  validFrom: Date;
23
24
  validTo: Date;
24
25
  }
25
- export declare class CartComponent extends BaseSection implements OnInit {
26
+ export declare class CartComponent extends BaseSection implements OnInit, OnDestroy {
26
27
  private readonly _eventService;
27
28
  private readonly cartService;
28
29
  private readonly router;
@@ -49,7 +50,9 @@ export declare class CartComponent extends BaseSection implements OnInit {
49
50
  enteredCouponCode: string;
50
51
  couponList: Coupon[];
51
52
  cartInfo: any;
53
+ loadingSubscription?: Subscription;
52
54
  ngOnInit(): void;
55
+ ngOnDestroy(): void;
53
56
  updateUserCart(): void;
54
57
  getCouponList(): void;
55
58
  removeCoupon(event: MouseEvent): void;
@@ -27,6 +27,7 @@ export declare class OrderDetailsComponent implements OnInit {
27
27
  get currency(): string;
28
28
  get canCancelOrder(): boolean;
29
29
  get orderAddress(): string;
30
+ trackOrder(): void;
30
31
  static ɵfac: i0.ɵɵFactoryDeclaration<OrderDetailsComponent, never>;
31
32
  static ɵcmp: i0.ɵɵComponentDeclaration<OrderDetailsComponent, "simpo-order-details", never, { "responseData": { "alias": "responseData"; "required": false; }; "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; }; "orderDetailData": { "alias": "orderDetailData"; "required": false; }; }, { "goBackEmitter": "goBackEmitter"; }, never, never, true, never>;
32
33
  }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file