simpo-component-library 2.0.27 → 2.0.28
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +276 -80
- package/esm2022/lib/services/rest.service.mjs +15 -1
- package/fesm2022/simpo-component-library.mjs +289 -79
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/sections/appointment-form/appointment-form.component.d.ts +28 -13
- package/lib/services/rest.service.d.ts +3 -0
- package/package.json +1 -1
- package/simpo-component-library-2.0.28.tgz +0 -0
- package/simpo-component-library-2.0.27.tgz +0 -0
@@ -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,30 +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
|
-
staffList: any[];
|
48
|
-
selectedStaff: string;
|
49
|
-
getAllStaff(): void;
|
50
|
-
selectedServices: string;
|
51
59
|
formatDate(date: Date): string;
|
52
60
|
formattedDate: any;
|
53
61
|
timeSlotsData: any;
|
54
|
-
formattedTimeIntervals:
|
62
|
+
formattedTimeIntervals: {
|
63
|
+
startTime: string;
|
64
|
+
}[];
|
55
65
|
getTimeSlots(): void;
|
56
66
|
filterTimeSlots(): void;
|
57
67
|
dateFilter: (date: Date | null) => boolean;
|
58
|
-
|
68
|
+
selectedServices: string;
|
69
|
+
selectedStaff: string;
|
70
|
+
CreateData: any;
|
59
71
|
prepareCreateData(): void;
|
60
72
|
prepareLocationData(): void;
|
61
|
-
prepareStaffData(): void;
|
62
73
|
createLoader: boolean;
|
63
|
-
|
74
|
+
availableTimes: string[];
|
75
|
+
padZero(value: number): string;
|
76
|
+
isTimeGreaterThanCurrent(time: string, currentHour: number, currentMinute: number): boolean;
|
77
|
+
createAppointment(): void;
|
78
|
+
isFormValid(): boolean;
|
64
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentFormComponent, never>;
|
65
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>;
|
66
81
|
}
|
@@ -65,6 +65,9 @@ export declare class RestService implements OnDestroy {
|
|
65
65
|
getAllStaff(businessId: any, size: number, page: number, locationId: string, serviceId: string): Observable<Object>;
|
66
66
|
getAllTimeSlots(locationId: any, date: Date): Observable<Object>;
|
67
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>;
|
68
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
69
72
|
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
70
73
|
}
|
package/package.json
CHANGED
Binary file
|
Binary file
|