simpo-component-library 1.6.108 → 1.6.112
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +40 -22
- package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +345 -0
- package/esm2022/lib/sections/appointment-form/appointment-form.model.mjs +2 -0
- package/esm2022/lib/services/rest.service.mjs +13 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/simpo-component-library.mjs +360 -28
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/cart/cart.component.d.ts +2 -0
- package/lib/sections/appointment-form/appointment-form.component.d.ts +62 -0
- package/lib/sections/appointment-form/appointment-form.model.d.ts +23 -0
- package/lib/services/rest.service.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/simpo-component-library-1.6.112.tgz +0 -0
- package/simpo-component-library-1.6.104.tgz +0 -0
- package/simpo-component-library-1.6.105.tgz +0 -0
- package/simpo-component-library-1.6.106.tgz +0 -0
- package/simpo-component-library-1.6.107.tgz +0 -0
- package/simpo-component-library-1.6.108.tgz +0 -0
@@ -0,0 +1,62 @@
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
2
|
+
import { BannerStylesModel, LayOutModel, PositionLayoutModal } from '../../styles/style.model';
|
3
|
+
import { EventsService } from './../../services/events.service';
|
4
|
+
import BaseSection from '../BaseSection';
|
5
|
+
import { BannerContentModel, BannerSectionModel } from './appointment-form.model';
|
6
|
+
import { MatDialog } from '@angular/material/dialog';
|
7
|
+
import { RestService } from '@simpo-ui/services/rest.service';
|
8
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
9
|
+
import * as i0 from "@angular/core";
|
10
|
+
export declare class AppointmentFormComponent extends BaseSection implements OnInit {
|
11
|
+
private _eventService;
|
12
|
+
private matDialog;
|
13
|
+
private restService;
|
14
|
+
private snackBar;
|
15
|
+
data?: BannerSectionModel;
|
16
|
+
index?: number;
|
17
|
+
content?: BannerContentModel;
|
18
|
+
edit?: boolean;
|
19
|
+
delete?: boolean;
|
20
|
+
customClass?: string;
|
21
|
+
styles?: BannerStylesModel;
|
22
|
+
constructor(_eventService: EventsService, matDialog: MatDialog, restService: RestService, snackBar: MatSnackBar);
|
23
|
+
businessId: any;
|
24
|
+
businessName: any;
|
25
|
+
ngOnInit(): void;
|
26
|
+
get stylesLayout(): LayOutModel;
|
27
|
+
get getJustifyContent(): string;
|
28
|
+
get canMergeNavbar(): boolean | undefined;
|
29
|
+
get isBorderlessImage(): boolean | undefined;
|
30
|
+
get getPositionLayout(): PositionLayoutModal;
|
31
|
+
editSection(): void;
|
32
|
+
stopPropagation(event: any): void;
|
33
|
+
opendailogbox(template: TemplateRef<HTMLDivElement>): void;
|
34
|
+
closeDialog(): void;
|
35
|
+
isMoved: boolean;
|
36
|
+
onFocus(): void;
|
37
|
+
restrictNonNumeric(event: KeyboardEvent): void;
|
38
|
+
onUserNameChange(value: string): void;
|
39
|
+
toTitleCase(str: string): string;
|
40
|
+
CreateData: any;
|
41
|
+
minDate: Date;
|
42
|
+
serviceData: any;
|
43
|
+
getAllServices(): void;
|
44
|
+
locationData: any;
|
45
|
+
selectedLocation: string;
|
46
|
+
getAllLocations(): void;
|
47
|
+
selectedServices: string[];
|
48
|
+
formatDate(date: Date): string;
|
49
|
+
formattedDate: any;
|
50
|
+
timeSlotsData: any;
|
51
|
+
formattedTimeIntervals: any;
|
52
|
+
getTimeSlots(): void;
|
53
|
+
filterTimeSlots(): void;
|
54
|
+
dateFilter: (date: Date | null) => boolean;
|
55
|
+
isFormValid(): boolean;
|
56
|
+
prepareCreateData(): void;
|
57
|
+
prepareLocationData(): void;
|
58
|
+
createLoader: boolean;
|
59
|
+
bookAppointment(): void;
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentFormComponent, never>;
|
61
|
+
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
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ActionModel, BannerStylesModel, Image, InputTextModel, ListItemModal } from './../../styles/style.model';
|
2
|
+
export interface BannerSectionModel {
|
3
|
+
id: string;
|
4
|
+
sectionType: string;
|
5
|
+
sectionName: string;
|
6
|
+
content: BannerContentModel;
|
7
|
+
styles: BannerStylesModel;
|
8
|
+
action: ActionModel;
|
9
|
+
}
|
10
|
+
export interface ImageModel extends Image {
|
11
|
+
showImage: boolean;
|
12
|
+
}
|
13
|
+
export interface textModel {
|
14
|
+
value: string;
|
15
|
+
}
|
16
|
+
export interface BannerContentModel {
|
17
|
+
inputText: InputTextModel[];
|
18
|
+
image: ImageModel;
|
19
|
+
listItem: ListItemModal<BannerListItem>;
|
20
|
+
}
|
21
|
+
export interface BannerListItem {
|
22
|
+
inputText: InputTextModel[];
|
23
|
+
}
|
@@ -58,6 +58,10 @@ export declare class RestService implements OnDestroy {
|
|
58
58
|
createPassword(payload: any): Observable<Object>;
|
59
59
|
verifySignupOTP(payload: any): Observable<Object>;
|
60
60
|
signinPassword(passData: any): Observable<Object>;
|
61
|
+
createAppointment(data: any): Observable<Object>;
|
62
|
+
getAllServices(businessId: any, size: number, page: number): Observable<Object>;
|
63
|
+
getAllLocation(businessId: any, size: number, page: number): Observable<Object>;
|
64
|
+
getAllTimeSlots(locationId: any, date: Date): Observable<Object>;
|
61
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
62
66
|
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
63
67
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -29,6 +29,7 @@ export * from './lib/sections/testimonial-fullwidth/testimonial-fullwidth.compon
|
|
29
29
|
export * from './lib/sections/logo-showcase/logo-showcase.component';
|
30
30
|
export * from './lib/sections/banner-carousel/banner-carousel.component';
|
31
31
|
export * from './lib/sections/carousel-banner/carousel-banner.component';
|
32
|
+
export * from './lib/sections/appointment-form/appointment-form.component';
|
32
33
|
export * from './lib/ecommerce/sections/featured-products/featured-products.component';
|
33
34
|
export * from './lib/ecommerce/sections/featured-category/featured-category.component';
|
34
35
|
export * from './lib/ecommerce/sections/product-desc/product-desc.component';
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|