simpo-component-library 2.0.26 → 2.0.27
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +4 -4
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +7 -106
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +52 -78
- package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +35 -12
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +2 -2
- package/esm2022/lib/services/cart.service.mjs +1 -60
- package/esm2022/lib/services/rest.service.mjs +4 -1
- package/esm2022/lib/services/storage.service.mjs +1 -46
- package/fesm2022/simpo-component-library.mjs +98 -301
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/directive/background-directive.d.ts +1 -1
- package/lib/directive/button-directive.directive.d.ts +1 -1
- package/lib/directive/color.directive.d.ts +1 -1
- package/lib/ecommerce/sections/cart/cart.component.d.ts +0 -4
- package/lib/sections/appointment-form/appointment-form.component.d.ts +5 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/cart.service.d.ts +1 -4
- package/lib/services/rest.service.d.ts +1 -0
- package/lib/services/storage.service.d.ts +0 -1
- package/package.json +1 -1
- package/simpo-component-library-2.0.27.tgz +0 -0
- package/simpo-component-library-2.0.26.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): "#
|
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): "#
|
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(): "#
|
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
|
-
|
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(): "#
|
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 {
|
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
Binary file
|
Binary file
|