simpo-component-library 3.6.945 → 3.6.947
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component.mjs +78 -13
- package/fesm2022/simpo-component-library.mjs +75 -12
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component.d.ts +10 -3
- package/package.json +1 -1
- package/simpo-component-library-3.6.947.tgz +0 -0
- package/simpo-component-library-3.6.945.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { RestService } from '../../../../services/rest.service';
|
|
4
4
|
import { EventsService } from '../../../../services/events.service';
|
|
5
5
|
import { Router } from '@angular/router';
|
|
@@ -8,6 +8,7 @@ import { BackgroundModel, BannerStylesModel } from '../../../../styles/style.mod
|
|
|
8
8
|
import { MessageService } from 'primeng/api';
|
|
9
9
|
import { BookingProductCartService } from '../../../../services/booking-product-cart.service';
|
|
10
10
|
import { StorageServiceService } from '../../../../services/storage.service';
|
|
11
|
+
import { AddressDetails, User } from '../../../../ecommerce/styles/user.modal';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
type BookingMode = 'STORE_VISIT' | 'HOME_VISIT' | 'VIDEO_CALL';
|
|
13
14
|
interface ResolvedLine {
|
|
@@ -35,8 +36,9 @@ export declare class AppointmentBookingComponent implements OnInit {
|
|
|
35
36
|
private readonly messageService;
|
|
36
37
|
private readonly bookingProductCartService;
|
|
37
38
|
private readonly storageService;
|
|
39
|
+
private readonly matDialog;
|
|
38
40
|
private readonly dialogRef;
|
|
39
|
-
constructor(restService: RestService, _eventService: EventsService, router: Router, messageService: MessageService, bookingProductCartService: BookingProductCartService, storageService: StorageServiceService, dialogRef: MatDialogRef<AppointmentBookingComponent>);
|
|
41
|
+
constructor(restService: RestService, _eventService: EventsService, router: Router, messageService: MessageService, bookingProductCartService: BookingProductCartService, storageService: StorageServiceService, matDialog: MatDialog, dialogRef: MatDialogRef<AppointmentBookingComponent>);
|
|
40
42
|
data?: BannerSectionModel;
|
|
41
43
|
index?: number;
|
|
42
44
|
content?: BannerContentModel;
|
|
@@ -79,6 +81,8 @@ export declare class AppointmentBookingComponent implements OnInit {
|
|
|
79
81
|
resolvingCart: boolean;
|
|
80
82
|
productCartItems: any[];
|
|
81
83
|
selectedLocation: any;
|
|
84
|
+
userDetails: User | null;
|
|
85
|
+
defaultAddress: AddressDetails | null;
|
|
82
86
|
homeVisitAddress: any;
|
|
83
87
|
instructions: string;
|
|
84
88
|
Object: ObjectConstructor;
|
|
@@ -116,11 +120,14 @@ export declare class AppointmentBookingComponent implements OnInit {
|
|
|
116
120
|
isProcessing: boolean;
|
|
117
121
|
termsAndConditions: boolean;
|
|
118
122
|
checkRequiredValues(): void;
|
|
123
|
+
private refreshDefaultAddress;
|
|
124
|
+
changeAddress(): void;
|
|
125
|
+
addAddress(): void;
|
|
119
126
|
appointmentPayload: any;
|
|
120
127
|
apiStatus: boolean;
|
|
121
128
|
confirmBooking(): void;
|
|
122
129
|
goBack(): void;
|
|
123
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentBookingComponent, [null, null, null, null, null, null, { optional: true; }]>;
|
|
130
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentBookingComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
|
|
124
131
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppointmentBookingComponent, "simpo-appointment-booking", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "isAdminBooking": { "alias": "isAdminBooking"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; "prefillContact": { "alias": "prefillContact"; "required": false; }; }, {}, never, never, true, never>;
|
|
125
132
|
}
|
|
126
133
|
export {};
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|