simpo-component-library 2.0.26 → 2.0.28
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 +278 -59
- 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 +18 -1
- package/esm2022/lib/services/storage.service.mjs +1 -46
- package/fesm2022/simpo-component-library.mjs +355 -348
- 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 +28 -9
- 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 +4 -0
- package/lib/services/storage.service.d.ts +0 -1
- package/package.json +1 -1
- package/simpo-component-library-2.0.28.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;
|
@@ -10,8 +10,8 @@ import * as i0 from "@angular/core";
|
|
10
10
|
export declare class AppointmentFormComponent extends BaseSection implements OnInit {
|
11
11
|
private _eventService;
|
12
12
|
private matDialog;
|
13
|
-
private
|
14
|
-
private
|
13
|
+
private appointmentService;
|
14
|
+
private snackbar;
|
15
15
|
data?: BannerSectionModel;
|
16
16
|
index?: number;
|
17
17
|
content?: BannerContentModel;
|
@@ -19,7 +19,7 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
|
|
19
19
|
delete?: boolean;
|
20
20
|
customClass?: string;
|
21
21
|
styles?: BannerStylesModel;
|
22
|
-
constructor(_eventService: EventsService, matDialog: MatDialog,
|
22
|
+
constructor(_eventService: EventsService, matDialog: MatDialog, appointmentService: RestService, snackbar: MatSnackBar);
|
23
23
|
businessId: any;
|
24
24
|
businessName: any;
|
25
25
|
ngOnInit(): void;
|
@@ -37,26 +37,45 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
|
|
37
37
|
restrictNonNumeric(event: KeyboardEvent): void;
|
38
38
|
onUserNameChange(value: string): void;
|
39
39
|
toTitleCase(str: string): string;
|
40
|
-
CreateData: any;
|
41
|
-
minDate: Date;
|
42
40
|
serviceData: any;
|
41
|
+
staffData: any;
|
42
|
+
changeLocation(): void;
|
43
|
+
updateLocationTiming(): void;
|
44
|
+
getDay(): string;
|
43
45
|
getAllServices(): void;
|
46
|
+
getAllStaff(): void;
|
47
|
+
minDate: Date;
|
48
|
+
bookedSlots: Set<unknown>;
|
49
|
+
locationTiming: string[];
|
50
|
+
changeDate(): void;
|
51
|
+
getAvailableSlots(): void;
|
52
|
+
getBookedSlots(res: any): void;
|
53
|
+
getTime(start: string, end: string, intervalMinutes: number): string[];
|
54
|
+
generateTimeSlots(startTime: string, endTime: string): string[] | undefined;
|
55
|
+
parseTime(time: string): [number, number, string];
|
44
56
|
locationData: any;
|
45
57
|
selectedLocation: string;
|
46
58
|
getAllLocations(): void;
|
47
|
-
selectedServices: string[];
|
48
59
|
formatDate(date: Date): string;
|
49
60
|
formattedDate: any;
|
50
61
|
timeSlotsData: any;
|
51
|
-
formattedTimeIntervals:
|
62
|
+
formattedTimeIntervals: {
|
63
|
+
startTime: string;
|
64
|
+
}[];
|
52
65
|
getTimeSlots(): void;
|
53
66
|
filterTimeSlots(): void;
|
54
67
|
dateFilter: (date: Date | null) => boolean;
|
55
|
-
|
68
|
+
selectedServices: string;
|
69
|
+
selectedStaff: string;
|
70
|
+
CreateData: any;
|
56
71
|
prepareCreateData(): void;
|
57
72
|
prepareLocationData(): void;
|
58
73
|
createLoader: boolean;
|
59
|
-
|
74
|
+
availableTimes: string[];
|
75
|
+
padZero(value: number): string;
|
76
|
+
isTimeGreaterThanCurrent(time: string, currentHour: number, currentMinute: number): boolean;
|
77
|
+
createAppointment(): void;
|
78
|
+
isFormValid(): boolean;
|
60
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentFormComponent, never>;
|
61
80
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppointmentFormComponent, "simpo-appointment-form", never, { "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; }; }, {}, never, never, true, never>;
|
62
81
|
}
|
@@ -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,8 +62,12 @@ 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>;
|
68
|
+
getAllService(businessId: any, size: any, page: any, locationId?: any): Observable<Object>;
|
69
|
+
getAllStaffByLocation(businessId: any, size: number, page: number, locationId: string, serviceId: string): Observable<Object>;
|
70
|
+
getAvailableSlots(data: any): Observable<Object>;
|
67
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
68
72
|
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
69
73
|
}
|
@@ -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
|