simpo-component-library 2.0.25 → 2.0.27

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
  }
@@ -54,7 +54,6 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
54
54
  ngOnInit(): void;
55
55
  ngOnDestroy(): void;
56
56
  updateUserCart(): void;
57
- updateUserCartV2(): void;
58
57
  mergeOrderItems(syncedItems: any[]): void;
59
58
  getCouponList(): void;
60
59
  removeCoupon(event: MouseEvent): void;
@@ -64,11 +63,8 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
64
63
  proceedToListPage(): void;
65
64
  removeItem(item: OrderedItems): void;
66
65
  private moveItemToWishlist;
67
- removeItemFromCartV2(item: OrderedItems): void;
68
- calculateCalculations(): void;
69
66
  private removeItemFromCart;
70
67
  addToCart(item: OrderedItems, type: 'ADD' | 'SUBSTRACT'): void;
71
- addToCartV2(item: OrderedItems, type: 'ADD' | 'SUBSTRACT'): void;
72
68
  proceedToPayment(): Promise<void>;
73
69
  addressSelected(index: number): void;
74
70
  isItemOutOfStock(product: OrderedItems): boolean;
@@ -44,7 +44,10 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
44
44
  locationData: any;
45
45
  selectedLocation: string;
46
46
  getAllLocations(): void;
47
- selectedServices: string[];
47
+ staffList: any[];
48
+ selectedStaff: string;
49
+ getAllStaff(): void;
50
+ selectedServices: string;
48
51
  formatDate(date: Date): string;
49
52
  formattedDate: any;
50
53
  timeSlotsData: any;
@@ -55,6 +58,7 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
55
58
  isFormValid(): boolean;
56
59
  prepareCreateData(): void;
57
60
  prepareLocationData(): void;
61
+ prepareStaffData(): void;
58
62
  createLoader: boolean;
59
63
  bookAppointment(): void;
60
64
  static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentFormComponent, never>;
@@ -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,5 +1,5 @@
1
1
  import { OrderedItems } from '../ecommerce/styles/OrderedItems.modal';
2
- import { ItemVariant, Product } from '../ecommerce/styles/product.modal';
2
+ import { 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';
@@ -22,9 +22,6 @@ export declare class CartService {
22
22
  private objectMapper;
23
23
  storeCartDataToServer(cart: Cart): void;
24
24
  clearCartItems(): void;
25
- addItemToLocalCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
26
- isItemOutOfStock(product: Product): boolean;
27
- getItemVarient(product: Product, varientId: string): ItemVariant | null;
28
25
  storeDataToServer(): void;
29
26
  static ɵfac: i0.ɵɵFactoryDeclaration<CartService, never>;
30
27
  static ɵprov: i0.ɵɵInjectableDeclaration<CartService>;
@@ -62,6 +62,7 @@ export declare class RestService implements OnDestroy {
62
62
  createAppointment(data: any): Observable<Object>;
63
63
  getAllServices(businessId: any, size: number, page: number): Observable<Object>;
64
64
  getAllLocation(businessId: any, size: number, page: number): Observable<Object>;
65
+ getAllStaff(businessId: any, size: number, page: number, locationId: string, serviceId: string): Observable<Object>;
65
66
  getAllTimeSlots(locationId: any, date: Date): Observable<Object>;
66
67
  getBlogByBusinessId(): Observable<Object>;
67
68
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
@@ -28,7 +28,6 @@ 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[]>;
32
31
  addProductToCart(product: OrderedItems): IDBRequest<IDBValidKey>;
33
32
  addAllProductToWishlist(products: OrderedItems[]): IDBTransaction;
34
33
  addAllProductsToCart(products: OrderedItems[]): IDBTransaction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "2.0.25",
3
+ "version": "2.0.27",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file