simpo-component-library 2.0.27 → 2.0.29
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 +278 -80
- package/esm2022/lib/sections/footer-section/footer-section.component.mjs +6 -3
- package/esm2022/lib/sections/footer-section/footer-section.modal.mjs +1 -1
- package/esm2022/lib/services/rest.service.mjs +15 -1
- package/fesm2022/simpo-component-library.mjs +295 -81
- 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/sections/appointment-form/appointment-form.component.d.ts +28 -13
- package/lib/sections/footer-section/footer-section.component.d.ts +1 -0
- package/lib/sections/footer-section/footer-section.modal.d.ts +2 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/rest.service.d.ts +3 -0
- package/package.json +1 -1
- package/simpo-component-library-2.0.29.tgz +0 -0
- package/simpo-component-library-2.0.27.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): "#ffffff" | "#000000" | "#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): "#ffffff" | "#000000" | "#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(): "#ffffff" | "#000000" | "#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
|
}
|
@@ -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
|
}
|
@@ -18,6 +18,7 @@ export declare class FooterSectionComponent extends BaseSection implements OnIni
|
|
18
18
|
constructor(_eventService: EventsService);
|
19
19
|
ngOnInit(): void;
|
20
20
|
editSection(): void;
|
21
|
+
changePage(pageData?: any): void;
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FooterSectionComponent, never>;
|
22
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<FooterSectionComponent, "simpo-footer-section", 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>;
|
23
24
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ChannelType, FooterTypes } from "./../../styles/index";
|
2
|
-
import { ActionModel, BackgroundModel, InputTextModel, SpacingModel } from "./../../styles/style.model";
|
2
|
+
import { ActionModel, BackgroundModel, InputTextModel, NavbarButton, SpacingModel } from "./../../styles/style.model";
|
3
3
|
import { FOOTER_IMAGE_SOURCE, SOCIAL_ICON_SHAPE, SOCIAL_ICON_SIZE, SOCIAL_ICON_TYPE } from "./../../styles/types";
|
4
4
|
export interface FooterSectionModel {
|
5
5
|
id: string;
|
@@ -29,6 +29,7 @@ export interface FooterContentModel {
|
|
29
29
|
additionalDetails: InputTextModel;
|
30
30
|
logo: FooterLogoModel;
|
31
31
|
image: FooterImageModel;
|
32
|
+
navbarButtons: NavbarButton[];
|
32
33
|
socialLinks: FooterSocialLinkModel;
|
33
34
|
displayBranding: boolean;
|
34
35
|
}
|
@@ -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(): "#ffffff" | "#000000";
|
20
20
|
get headingSpace(): SPACING;
|
21
21
|
editSection(): void;
|
22
22
|
redirectTo(): void;
|
@@ -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
|