simpo-component-library 2.0.1 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 restService;
14
- private snackBar;
13
+ private appointmentService;
14
+ private snackbar;
15
15
  data?: BannerSectionModel;
16
16
  index?: number;
17
17
  content?: BannerContentModel;
@@ -19,7 +19,9 @@ 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, restService: RestService, snackBar: MatSnackBar);
22
+ constructor(_eventService: EventsService, matDialog: MatDialog, appointmentService: RestService, snackbar: MatSnackBar);
23
+ screenWidth: number;
24
+ getScreenSize(): void;
23
25
  businessId: any;
24
26
  businessName: any;
25
27
  ngOnInit(): void;
@@ -37,26 +39,46 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
37
39
  restrictNonNumeric(event: KeyboardEvent): void;
38
40
  onUserNameChange(value: string): void;
39
41
  toTitleCase(str: string): string;
40
- CreateData: any;
41
- minDate: Date;
42
42
  serviceData: any;
43
+ staffData: any;
44
+ changeLocation(): void;
45
+ updateLocationTiming(): void;
46
+ getDay(): string;
43
47
  getAllServices(): void;
48
+ getAllStaff(): void;
49
+ minDate: Date;
50
+ bookedSlots: Set<unknown>;
51
+ locationTiming: string[];
52
+ changeDate(): void;
53
+ getAvailableSlots(): void;
54
+ getBookedSlots(res: any): void;
55
+ getTime(start: string, end: string, intervalMinutes: number): string[];
56
+ generateTimeSlots(startTime: string, endTime: string): string[] | undefined;
57
+ parseTime(time: string): [number, number, string];
44
58
  locationData: any;
45
59
  selectedLocation: string;
46
60
  getAllLocations(): void;
47
- selectedServices: string[];
48
61
  formatDate(date: Date): string;
49
62
  formattedDate: any;
50
63
  timeSlotsData: any;
51
- formattedTimeIntervals: any;
64
+ formattedTimeIntervals: {
65
+ startTime: string;
66
+ }[];
52
67
  getTimeSlots(): void;
53
68
  filterTimeSlots(): void;
54
69
  dateFilter: (date: Date | null) => boolean;
55
- isFormValid(): boolean;
70
+ selectedServices: string;
71
+ selectedStaff: string;
72
+ CreateData: any;
56
73
  prepareCreateData(): void;
57
74
  prepareLocationData(): void;
58
75
  createLoader: boolean;
59
- bookAppointment(): void;
76
+ availableTimes: string[];
77
+ padZero(value: number): string;
78
+ isTimeGreaterThanCurrent(time: string, currentHour: number, currentMinute: number): boolean;
79
+ createAppointment(): void;
80
+ reFilterData(): void;
81
+ isFormValid(): boolean;
60
82
  static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentFormComponent, never>;
61
83
  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
84
  }
@@ -18,6 +18,8 @@ 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;
22
+ get checkFooter(): boolean;
21
23
  static ɵfac: i0.ɵɵFactoryDeclaration<FooterSectionComponent, never>;
22
24
  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
25
  }
@@ -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
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "2.0.1",
3
+ "version": "2.0.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file