vhobjects-user 1.0.4 → 1.0.6

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.
Files changed (34) hide show
  1. package/fesm2015/vhobjects-user.js +1 -1
  2. package/fesm2015/vhobjects-user.js.map +1 -1
  3. package/lib/frames/frame-blank/user/frame-blank/frame-blank.component.d.ts +14 -6
  4. package/lib/frames/frame-repeat/user/frame-repeat/frame-repeat.component.d.ts +7 -1
  5. package/lib/objects/basic/media-list/user/media-list/media-list.component.d.ts +94 -0
  6. package/lib/objects/basic/text/user/text/text.component.d.ts +4 -2
  7. package/lib/objects/cart/button-confirm-order/user/button-confirm-order/button-confirm-order.component.d.ts +1 -1
  8. package/lib/objects/cart/noti-order-success/user/noti-order-success/noti-order-success.component.d.ts +66 -0
  9. package/lib/objects/form/button-send-contact/user/send-contact/send-contact.component.d.ts +13 -1
  10. package/lib/objects/hotel/booking-flow/user/add-ons/booking-flow-add-ons.component.d.ts +60 -0
  11. package/lib/objects/hotel/booking-flow/user/booking-flow-content.constants.d.ts +5 -0
  12. package/lib/objects/hotel/booking-flow/user/booking-flow-sample-data.d.ts +128 -0
  13. package/lib/objects/hotel/booking-flow/user/booking-flow.component.d.ts +162 -0
  14. package/lib/objects/hotel/booking-flow/user/booking-flow.models.d.ts +5 -0
  15. package/lib/objects/hotel/booking-flow/user/booking-flow.module.d.ts +16 -0
  16. package/lib/objects/hotel/booking-flow/user/booking-flow.service.d.ts +111 -0
  17. package/lib/objects/hotel/booking-flow/user/choose-room/booking-flow-choose-room.component.d.ts +87 -0
  18. package/lib/objects/hotel/booking-flow/user/payment/booking-flow-payment.component.d.ts +42 -0
  19. package/lib/objects/hotel/booking-flow/user/summary/booking-flow-summary.component.d.ts +76 -0
  20. package/lib/objects/hotel/booking-hotel-manage/user/booking-detail/booking-hotel-manage-booking-detail.component.d.ts +65 -0
  21. package/lib/objects/hotel/booking-hotel-manage/user/booking-hotel-manage.component.d.ts +66 -0
  22. package/lib/objects/hotel/booking-hotel-manage/user/booking-hotel-manage.module.d.ts +17 -0
  23. package/lib/objects/hotel/booking-hotel-manage/user/bookings/booking-hotel-manage-bookings.component.d.ts +39 -0
  24. package/lib/objects/hotel/booking-hotel-manage/user/personal/booking-hotel-manage-personal.component.d.ts +44 -0
  25. package/lib/objects/hotel/booking-hotel-manage/user/refund-detail/booking-hotel-manage-refund-detail.component.d.ts +16 -0
  26. package/lib/objects/hotel/booking-hotel-manage/user/refund-requests/booking-hotel-manage-refund-requests.component.d.ts +17 -0
  27. package/lib/objects/hotel/booking-selector/user/booking-selector.component.d.ts +80 -0
  28. package/lib/objects/hotel/btn-booking/user/btn-booking.component.d.ts +78 -0
  29. package/lib/objects/product/payment-method/user/payment-method.component.d.ts +42 -0
  30. package/lib/objects/review/user/review/review.component.d.ts +55 -6
  31. package/lib/vhautoweb-objects.module.d.ts +35 -28
  32. package/package.json +1 -1
  33. package/public-api.d.ts +7 -0
  34. package/services/cart.service.d.ts +12 -1
@@ -0,0 +1,5 @@
1
+ export declare type BookingStep = 'choose-room' | 'select-service-add-on' | 'payment';
2
+ export declare type BookingFlowStyleBucket = Record<string, string>;
3
+ export declare type BookingFlowStyleMap = Record<string, BookingFlowStyleBucket>;
4
+ export declare function getBookingFlowDeviceClass(data: any, device: string): BookingFlowStyleMap;
5
+ export declare function pickBookingFlowStyles(data: any, device: string, keys: string[]): BookingFlowStyleMap;
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./booking-flow.component";
3
+ import * as i2 from "./choose-room/booking-flow-choose-room.component";
4
+ import * as i3 from "./add-ons/booking-flow-add-ons.component";
5
+ import * as i4 from "./payment/booking-flow-payment.component";
6
+ import * as i5 from "./summary/booking-flow-summary.component";
7
+ import * as i6 from "@angular/common";
8
+ import * as i7 from "vhobjects-service";
9
+ import * as i8 from "@angular/router";
10
+ import * as i9 from "@angular/forms";
11
+ import * as i10 from "@ngx-translate/core";
12
+ export declare class BookingFlowModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<BookingFlowModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BookingFlowModule, [typeof i1.AtwBookingFlow, typeof i2.AtwBookingFlowChooseRoom, typeof i3.AtwBookingFlowAddOns, typeof i4.AtwBookingFlowPayment, typeof i5.AtwBookingFlowSummary], [typeof i6.CommonModule, typeof i7.MaterialModule, typeof i7.NgZorroAntModule, typeof i8.RouterModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.TranslateModule, typeof i7.VhLanguagePipeModule], never>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<BookingFlowModule>;
16
+ }
@@ -0,0 +1,111 @@
1
+ import { Observable } from 'rxjs';
2
+ import { VhQueryAutoWeb } from 'vhautowebdb';
3
+ import { FunctionService, LanguageService } from 'vhobjects-service/src/services';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BookingFlowService {
6
+ private vhQueryAutoWeb;
7
+ private languageService;
8
+ private functionService;
9
+ private paymentMethods;
10
+ constructor(vhQueryAutoWeb: VhQueryAutoWeb, languageService: LanguageService, functionService: FunctionService);
11
+ admin_getWallets_byFields_byPages(fields?: any, options?: any, pages?: any): Promise<any>;
12
+ getlocalEndUser(): any;
13
+ getPage_byLink(url: string): Promise<any>;
14
+ updateBill(id: string, updates: any): Promise<any>;
15
+ localStorageGET(key: string): any;
16
+ getHotel(hotelId: string): Promise<any>;
17
+ formatDate(date: string | Date): string;
18
+ getAvailableRooms(hotelId: string, roomTypeId: string, dateFrom: string, dateTo: string, adults?: number, children?: number): Observable<any[]>;
19
+ createOrder(formData: any): Observable<any>;
20
+ private applyVoucherToOrderObject;
21
+ addOrderHistory(idBill: string, stateId: number, metadata?: {
22
+ title?: string;
23
+ description?: string;
24
+ }): Observable<any>;
25
+ getCartRuleByCode(code: string): Promise<any | null>;
26
+ calculateDiscountAmount(rule: any, baseAmount: number): number;
27
+ determineDiscountType(rule: Pick<any, 'rule_type' | 'discount_value'>): 'PERCENTAGE' | 'FIXED';
28
+ addPayment(idBill: string, paymentData: Partial<any>): Observable<any>;
29
+ getPaymentMethodLabel(paymentMethodId: string): string;
30
+ getRoomTypesArray(): Promise<any[]>;
31
+ getServiceRoomsArray(): Promise<any[]>;
32
+ getAdditionalFacilitiesArray(): Promise<any[]>;
33
+ calculateRoomPricing(roomType: any, dateFrom: string, dateTo: string, customerGroups?: string[], pricingContext?: any): Promise<any>;
34
+ calculateUnitPrice(pricing: any | null | undefined): number;
35
+ private createEmptyPricing;
36
+ getRoomsArray(): Promise<any[]>;
37
+ private getBookingDetailsArray;
38
+ private getBillDetailsByFields;
39
+ private isBookingRemovedFromOrderTotals;
40
+ private buildCartItems;
41
+ getRoomById(id: string): Promise<any | null>;
42
+ private calculateConvenienceFee;
43
+ getRoomTypeById(id: string): Promise<any | null>;
44
+ private buildBookingDetails;
45
+ private calculateCartItemTotal;
46
+ isRoomAvailable(roomId: string, dateFrom: string, dateTo: string, excludeBookingId?: string): Promise<boolean>;
47
+ private applyBookingSummary;
48
+ private getOrderBaseAmount;
49
+ getCartRuleById(ruleId: string): Promise<any | null>;
50
+ incrementUsage(ruleId: string): Promise<void>;
51
+ private addTax;
52
+ private removeTax;
53
+ private roundPrice;
54
+ private calculateSpecificPrice;
55
+ private findBestSpecificPrice;
56
+ private dateWeight;
57
+ private getSpecificScore;
58
+ private isLeaveBasePrice;
59
+ private isPercentageReduction;
60
+ private isPercentageImpact;
61
+ private applyFeatureImpact;
62
+ private normalizedPercentage;
63
+ private matchesDate;
64
+ private matchesScope;
65
+ private matchesScopedValue;
66
+ getBestFeatureRuleForDate(roomTypeId: string, date: Date, customerGroups?: string[], context?: {
67
+ id_cart?: string | number;
68
+ id_guest?: string | number;
69
+ id_room?: string | number;
70
+ }): Promise<any | null>;
71
+ private getActiveRulesByRoomType;
72
+ private getFeatureRuleKind;
73
+ private matchesFeatureRuleScope;
74
+ private matchesFeatureRuleGroups;
75
+ private matchesRuleField;
76
+ private isRuleApplicableForDate;
77
+ private isRestrictionApplicableForDate;
78
+ private getDayOfWeek;
79
+ calculateExtraServicesPricing(selectedFacilities: any[], selectedServices: any[], dateFrom: string, dateTo: string): Promise<any>;
80
+ calculateServiceRoomTotals(serviceLinks: any[], dateFrom: string, dateTo: string): Promise<{
81
+ room_service_total_tax_excl: number;
82
+ room_service_total_tax_incl: number;
83
+ convenience_fee_total_tax_excl: number;
84
+ convenience_fee_total_tax_incl: number;
85
+ applied_services: any[];
86
+ nightly_breakdown: Array<{
87
+ date: string;
88
+ room_service_tax_excl: number;
89
+ room_service_tax_incl: number;
90
+ convenience_fee_tax_excl: number;
91
+ convenience_fee_tax_incl: number;
92
+ applied_services: any[];
93
+ }>;
94
+ }>;
95
+ private findApplicableServiceSpecialPrice;
96
+ private applyServiceSpecialPrice;
97
+ getServiceById(id: string): Promise<any | null>;
98
+ calculateServicePrice(service: any, date: Date | string): {
99
+ price_excl: number;
100
+ tax: number;
101
+ price_incl: number;
102
+ applied_special?: any;
103
+ };
104
+ calculateNights(dateFrom: string | Date, dateTo: string | Date): number;
105
+ getLocalizedText(obj: any, field?: string): string;
106
+ getStayDates(dateFrom: string | Date, dateTo: string | Date): string[];
107
+ formatDateKey(date: Date): string;
108
+ toDateOnly(value: string | Date | undefined | null): string;
109
+ static ɵfac: i0.ɵɵFactoryDeclaration<BookingFlowService, never>;
110
+ static ɵprov: i0.ɵɵInjectableDeclaration<BookingFlowService>;
111
+ }
@@ -0,0 +1,87 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
2
+ import { MatDialog, MatDialogRef } from '@angular/material/dialog';
3
+ import { BookingFlowStyleMap } from '../booking-flow.models';
4
+ import { FunctionService } from 'vhobjects-service/src/services';
5
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
6
+ import { VhQueryAutoWeb } from 'vhautowebdb';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AtwBookingFlowChooseRoom implements OnChanges {
9
+ private matDialog;
10
+ private vhQueryAutoWeb;
11
+ functionService: FunctionService;
12
+ private sanitizer;
13
+ rooms: any[];
14
+ data: any;
15
+ device: any;
16
+ hotelId: any;
17
+ selectedRoomIds: string[];
18
+ selectedRooms: any[];
19
+ numberOfRoomsNeeded: number;
20
+ editingIndex: number | null;
21
+ roomOccupancy: Array<{
22
+ adults: number;
23
+ children: number;
24
+ }>;
25
+ formatCurrency: (value: number) => string;
26
+ roomPreviewTemplate: TemplateRef<any>;
27
+ roomAdded: EventEmitter<string>;
28
+ previewRoom: any | null;
29
+ previewImageIndex: number;
30
+ matDialogRef: MatDialogRef<any> | null;
31
+ class: BookingFlowStyleMap;
32
+ staticdata: any;
33
+ constructor(matDialog: MatDialog, vhQueryAutoWeb: VhQueryAutoWeb, functionService: FunctionService, sanitizer: DomSanitizer);
34
+ ngOnInit(): Promise<void>;
35
+ ngOnChanges(_: SimpleChanges): void;
36
+ trackByRoomId(index: number, room: any): string;
37
+ trackByAmenity(index: number, amenity: {
38
+ label: string;
39
+ }): string;
40
+ trackBySelectedRoom(index: number, room: any): string;
41
+ getRoomDisplayPrice(room: any): number;
42
+ /**
43
+ * Get remaining rooms to select
44
+ */
45
+ getRemainingRooms(): number;
46
+ /**
47
+ * Check if can add more rooms
48
+ */
49
+ canAddRoom(): boolean;
50
+ /**
51
+ * Select a room to add to array
52
+ */
53
+ selectRoom(roomTypeId: string): void;
54
+ /**
55
+ * Get images from room using original 'img' field
56
+ */
57
+ getImages(room: any): string[];
58
+ currentIndexMap: {
59
+ [roomId: string]: number;
60
+ };
61
+ getIndex(roomId: string): number;
62
+ next(roomId: string, total: number): void;
63
+ prev(roomId: string, total: number): void;
64
+ trackByImg(index: number, item: string): string;
65
+ openRoomPreview(room: any): Promise<void>;
66
+ closeRoomPreview(): void;
67
+ currentIndexPreview: number;
68
+ showNextPreviewImage(track: HTMLElement): void;
69
+ showPreviousPreviewImage(track: HTMLElement): void;
70
+ getPreviewImage(): string;
71
+ isRoomSelected(roomTypeId: string): boolean;
72
+ getRoomCardStyle(roomTypeId: string): import("../booking-flow.models").BookingFlowStyleBucket;
73
+ getSelectButtonStyle(roomTypeId: string): import("../booking-flow.models").BookingFlowStyleBucket;
74
+ getCurrentRoomStep(): number;
75
+ getNavStyle(type: 'prev' | 'next'): {
76
+ [x: string]: string;
77
+ };
78
+ getPreviewNavStyle(type: 'prev' | 'next'): {
79
+ [x: string]: string;
80
+ };
81
+ private loadStyles;
82
+ getSafeHtml(obj: any, field?: string): SafeHtml;
83
+ getLocalizedText(obj: any, field?: string): string;
84
+ private getFeature;
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtwBookingFlowChooseRoom, never>;
86
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtwBookingFlowChooseRoom, "atw-booking-flow-choose-room", never, { "rooms": "rooms"; "data": "data"; "device": "device"; "hotelId": "hotelId"; "selectedRoomIds": "selectedRoomIds"; "selectedRooms": "selectedRooms"; "numberOfRoomsNeeded": "numberOfRoomsNeeded"; "editingIndex": "editingIndex"; "roomOccupancy": "roomOccupancy"; "formatCurrency": "formatCurrency"; }, { "roomAdded": "roomAdded"; }, never, never>;
87
+ }
@@ -0,0 +1,42 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { BookingFlowStyleMap } from '../booking-flow.models';
3
+ import { FunctionService } from 'vhobjects-service/src/services';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AtwBookingFlowPayment implements OnChanges {
6
+ functionService: FunctionService;
7
+ guestInfo: any;
8
+ paymentMethods: any[];
9
+ data: any;
10
+ device: any;
11
+ selectedPaymentMethodId: string;
12
+ back: EventEmitter<void>;
13
+ paymentMethodSelected: EventEmitter<string>;
14
+ submitPayment: EventEmitter<void>;
15
+ class: BookingFlowStyleMap;
16
+ staticdata: any;
17
+ constructor(functionService: FunctionService);
18
+ ngOnInit(): void;
19
+ ngOnChanges(_: SimpleChanges): void;
20
+ trackByPaymentMethodId(index: number, paymentMethod: any): string;
21
+ getMethodStyle(isSelected: boolean, index: number): {
22
+ [x: string]: string;
23
+ };
24
+ getPanelStyle(variantKey: string): {
25
+ [x: string]: string;
26
+ };
27
+ getFieldStyle(fieldKey: string): {
28
+ [x: string]: string;
29
+ };
30
+ getSelectStyle(variantKey?: string): {
31
+ [x: string]: string;
32
+ };
33
+ getInputStyle(variantKey?: string): {
34
+ [x: string]: string;
35
+ };
36
+ private loadStyles;
37
+ getCheckboxStyle(variantKey?: string): {
38
+ [x: string]: string;
39
+ };
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtwBookingFlowPayment, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtwBookingFlowPayment, "atw-booking-flow-payment", never, { "guestInfo": "guestInfo"; "paymentMethods": "paymentMethods"; "data": "data"; "device": "device"; "selectedPaymentMethodId": "selectedPaymentMethodId"; }, { "back": "back"; "paymentMethodSelected": "paymentMethodSelected"; "submitPayment": "submitPayment"; }, never, never>;
42
+ }
@@ -0,0 +1,76 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { BookingFlowStyleMap, BookingStep } from '../booking-flow.models';
3
+ import { FunctionService } from 'vhobjects-service/src/services';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AtwBookingFlowSummary implements OnChanges {
6
+ functionService: FunctionService;
7
+ currentStep: BookingStep;
8
+ tripInfo: any;
9
+ data: any;
10
+ device: any;
11
+ selectedRooms: any[];
12
+ selectedAddOnsMap: {
13
+ [roomIndex: number]: string[];
14
+ };
15
+ selectedAddOnOptionsByRoom: {
16
+ [roomIndex: number]: {
17
+ [addOnId: string]: string;
18
+ };
19
+ };
20
+ addOns: any[];
21
+ grandTotal: number;
22
+ formatCurrency: (value: number) => string;
23
+ discountAmount: number;
24
+ appliedVoucherCode: string | null;
25
+ voucherError: string | null;
26
+ applyingVoucher: boolean;
27
+ applyVoucher: EventEmitter<string>;
28
+ removeVoucher: EventEmitter<void>;
29
+ stepChange: EventEmitter<BookingStep>;
30
+ next: EventEmitter<void>;
31
+ editRoom: EventEmitter<any>;
32
+ class: BookingFlowStyleMap;
33
+ staticdata: any;
34
+ constructor(functionService: FunctionService);
35
+ ngOnInit(): void;
36
+ ngOnChanges(_: SimpleChanges): void;
37
+ trackByAddOnId(_: number, addOn: any): string;
38
+ trackBySelectedRoom(_: number, room: any): string;
39
+ getRoomsTotalPrice(): number;
40
+ getAddOnPrice(addOn: any): number;
41
+ getAddOnPriceTaxExcl(addOn: any): number;
42
+ getAutoServicePrice(service: any): number;
43
+ getAutoServicePriceTaxExcl(service: any): number;
44
+ getRoomLabel(index: number): string;
45
+ getRoomTypeName(room: any): string;
46
+ getAddOnsByRoom(roomIndex: number): any[];
47
+ getRoomAddOnTotal(roomIndex: number): number;
48
+ getRoomBaseTotal(room: any): number;
49
+ getRoomBaseTotalTaxExcl(room: any): number;
50
+ getRoomBaseTax(room: any): number;
51
+ getRoomTotal(room: any): number;
52
+ getRoomTotalTaxExcl(room: any): number;
53
+ getRoomTotalTax(room: any): number;
54
+ getGrandTotalTaxExcl(): number;
55
+ getGrandTotalTax(): number;
56
+ getGrandTotalTaxIncl(): number;
57
+ getAddOnDisplayName(addOn: any): string;
58
+ getAutoServiceDisplayName(service: any): string;
59
+ getAutoServicesByRoom(room: any): any[];
60
+ hasRoomPriceDetails(room: any, roomIndex: number): boolean;
61
+ getOccupancyText(room: any): string;
62
+ private withSelectedOptionLabel;
63
+ private getFallbackAddOnPrice;
64
+ private getRoomAddOnsTaxExcl;
65
+ private getRoomAddOnsTaxIncl;
66
+ private roundPrice;
67
+ private firstPositivePrice;
68
+ private parsePrice;
69
+ private loadStyles;
70
+ private getLocalizedText;
71
+ voucherInputValue: string;
72
+ onApplyVoucher(): void;
73
+ onRemoveVoucher(): void;
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtwBookingFlowSummary, never>;
75
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtwBookingFlowSummary, "atw-booking-flow-summary", never, { "currentStep": "currentStep"; "tripInfo": "tripInfo"; "data": "data"; "device": "device"; "selectedRooms": "selectedRooms"; "selectedAddOnsMap": "selectedAddOnsMap"; "selectedAddOnOptionsByRoom": "selectedAddOnOptionsByRoom"; "addOns": "addOns"; "grandTotal": "grandTotal"; "formatCurrency": "formatCurrency"; "discountAmount": "discountAmount"; "appliedVoucherCode": "appliedVoucherCode"; "voucherError": "voucherError"; "applyingVoucher": "applyingVoucher"; }, { "applyVoucher": "applyVoucher"; "removeVoucher": "removeVoucher"; "stepChange": "stepChange"; "next": "next"; "editRoom": "editRoom"; }, never, never>;
76
+ }
@@ -0,0 +1,65 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { VhQueryAutoWeb } from 'vhautowebdb';
3
+ import { LanguageService } from 'vhobjects-service/src/services';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AtwBookingHotelManageBookingDetail implements OnInit {
6
+ private vhQueryAutoWeb;
7
+ private languageService;
8
+ selectedBooking: any;
9
+ staticdata: any;
10
+ functionService: any;
11
+ data: any;
12
+ classStyles: any;
13
+ type: any;
14
+ back: EventEmitter<void>;
15
+ cancellationSubmitted: EventEmitter<any>;
16
+ currentHotel: any;
17
+ hotelLoading: boolean;
18
+ hotelError: string | null;
19
+ showCancelRequest: boolean;
20
+ cancelReason: string;
21
+ selectedRoomIds: string[];
22
+ cancelSubmitting: boolean;
23
+ cancelError: string | null;
24
+ cancelSuccess: string | null;
25
+ private orderStatuses;
26
+ roomStatuses: {
27
+ id: string;
28
+ name: string;
29
+ label: string;
30
+ }[];
31
+ private paymentMethods;
32
+ constructor(vhQueryAutoWeb: VhQueryAutoWeb, languageService: LanguageService);
33
+ ngOnInit(): void;
34
+ loadHotel(): void;
35
+ private getSampleHotel;
36
+ getHotelName(): string;
37
+ formatPrice(price: number): string;
38
+ getStatusClass(status: any): string;
39
+ goBack(): void;
40
+ toggleCancelRequest(): void;
41
+ toggleRoomSelection(roomId: string, checked: boolean): void;
42
+ canCancelRoom(item: any): boolean;
43
+ isRoomSelected(roomId: string): boolean;
44
+ hasCancelableRooms(): boolean;
45
+ getBookingStatusClass(booking: any): number;
46
+ submitCancelRequest(): void;
47
+ private cancelOrder;
48
+ /**
49
+ * Creates the refund-request record and its per-booking detail rows directly
50
+ * via vhQueryAutoWeb, mirroring the RefundRequest / RefundDetail shapes used
51
+ * elsewhere in the codebase (see refund-modal.component.ts). Verify the
52
+ * collection names below against your actual schema.
53
+ */
54
+ private createRefundRequestRecord;
55
+ private isBookingRemovedFromOrderTotals;
56
+ private markSelectedRoomsAsCancelRequested;
57
+ getPaymentStatusName(): string;
58
+ getPaymentStatusColor(): string;
59
+ getHotel(hotelId: string): Promise<any>;
60
+ getStatusById(id: number): any | undefined;
61
+ getPaymentMethodLabel(): string;
62
+ getBookingStatusLabel(booking: any): string;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtwBookingHotelManageBookingDetail, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtwBookingHotelManageBookingDetail, "atw-booking-hotel-manage-booking-detail", never, { "selectedBooking": "selectedBooking"; "staticdata": "staticdata"; "functionService": "functionService"; "data": "data"; "classStyles": "classStyles"; "type": "type"; }, { "back": "back"; "cancellationSubmitted": "cancellationSubmitted"; }, never, never>;
65
+ }
@@ -0,0 +1,66 @@
1
+ import { ElementRef, OnInit, OnDestroy, EventEmitter } from '@angular/core';
2
+ import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
3
+ import { FunctionService } from 'vhobjects-service/src/services';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ declare type ActiveSection = 'personal' | 'bookings' | 'bookingDetail' | 'refund' | 'refundDetail';
7
+ export declare class AtwBookingHotelManage implements OnInit, OnDestroy {
8
+ private vhQueryAutoWeb;
9
+ private vhEventMediator;
10
+ functionService: FunctionService;
11
+ data: any;
12
+ type: any;
13
+ device: any;
14
+ id_subproject: string;
15
+ isComponentExist: ElementRef<HTMLDivElement>;
16
+ hanldleProcessResizeOffset: EventEmitter<any>;
17
+ prevHeight: number | undefined;
18
+ class: any;
19
+ cutWebMan: boolean;
20
+ config: any;
21
+ staticdata: any;
22
+ activeSection: ActiveSection;
23
+ selectedBooking: any;
24
+ selectedRefund: any;
25
+ bookings: any[];
26
+ refundRequests: any[];
27
+ listOrder: any[];
28
+ listRefundRequest: any[];
29
+ bookingsLoading: boolean;
30
+ refundsLoading: boolean;
31
+ bookingsError: string | null;
32
+ refundsError: string | null;
33
+ private destroy$;
34
+ isLoggedIn: boolean;
35
+ loginLogoutStateChangedSubscription: any;
36
+ private resizeObserver;
37
+ private lastObservedSize;
38
+ currentCustomerId: string | null;
39
+ get isPreviewMode(): boolean;
40
+ get isResizeMode(): boolean;
41
+ constructor(vhQueryAutoWeb: VhQueryAutoWeb, vhEventMediator: VhEventMediator, functionService: FunctionService);
42
+ ngOnInit(): void;
43
+ ngAfterViewInit(): void;
44
+ ngOnDestroy(): void;
45
+ getDetailObject(): void;
46
+ checkLoginStatus(): void;
47
+ setSection(section: ActiveSection): void;
48
+ openBookingDetail(booking: any): void;
49
+ handleBookingCancellationSubmitted(): void;
50
+ openRefundDetail(refund: any): void;
51
+ savePersonalInformation(): void;
52
+ sendBookingMessage(): void;
53
+ loadBookings(): void;
54
+ loadRefundRequests(): void;
55
+ private getSampleBookings;
56
+ private getSampleRefundRequests;
57
+ private setupResizeObserver;
58
+ private handleResize;
59
+ getOrderByIdCustomer(customerId: string): Observable<any[]>;
60
+ getBookingsByIdBill(idBill: string): Observable<any[]>;
61
+ getRefundRequests(): Observable<any[]>;
62
+ getRefundDetails(requestId: string): Promise<any[]>;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtwBookingHotelManage, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtwBookingHotelManage, "atw-booking-hotel-manage", never, { "data": "data"; "type": "type"; "device": "device"; "id_subproject": "id_subproject"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
65
+ }
66
+ export {};
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./booking-hotel-manage.component";
3
+ import * as i2 from "./personal/booking-hotel-manage-personal.component";
4
+ import * as i3 from "./bookings/booking-hotel-manage-bookings.component";
5
+ import * as i4 from "./booking-detail/booking-hotel-manage-booking-detail.component";
6
+ import * as i5 from "./refund-requests/booking-hotel-manage-refund-requests.component";
7
+ import * as i6 from "./refund-detail/booking-hotel-manage-refund-detail.component";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "vhobjects-service";
10
+ import * as i9 from "@angular/router";
11
+ import * as i10 from "@angular/forms";
12
+ import * as i11 from "@ngx-translate/core";
13
+ export declare class BookingHotelManageModule {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<BookingHotelManageModule, never>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BookingHotelManageModule, [typeof i1.AtwBookingHotelManage, typeof i2.AtwBookingHotelManagePersonal, typeof i3.AtwBookingHotelManageBookings, typeof i4.AtwBookingHotelManageBookingDetail, typeof i5.AtwBookingHotelManageRefundRequests, typeof i6.AtwBookingHotelManageRefundDetail], [typeof i7.CommonModule, typeof i8.MaterialModule, typeof i8.NgZorroAntModule, typeof i9.RouterModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.TranslateModule, typeof i8.VhLanguagePipeModule], never>;
16
+ static ɵinj: i0.ɵɵInjectorDeclaration<BookingHotelManageModule>;
17
+ }
@@ -0,0 +1,39 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AtwBookingHotelManageBookings {
4
+ bookings: any[];
5
+ staticdata: any;
6
+ functionService: any;
7
+ data: any;
8
+ classStyles: any;
9
+ loading: boolean;
10
+ error: string | null;
11
+ viewDetail: EventEmitter<any>;
12
+ private orderStatuses;
13
+ constructor();
14
+ formatPrice(price: number): string;
15
+ getStatusById(id: number): any | undefined;
16
+ /**
17
+ * Single source of truth for status color — pulled directly from
18
+ * OrderStatusService instead of guessing from a translated string.
19
+ */
20
+ getStatusColor(statusId: number): string;
21
+ /**
22
+ * Translated label for the status, keyed off OrderStatusService's
23
+ * canonical `name` (e.g. 'cho_thanh_toan'), following the same
24
+ * staticdata + vhLanguage pattern used for every other label in
25
+ * this component. Falls back to the raw name if no translation
26
+ * exists yet.
27
+ */
28
+ getStatusLabel(statusId: number): string;
29
+ /**
30
+ * Light background tint derived from the status color, so the
31
+ * badge keeps the "pill" look without needing a hardcoded class
32
+ * per status.
33
+ */
34
+ getStatusBackground(statusId: number): string;
35
+ private hexToRgba;
36
+ onViewDetail(booking: any): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtwBookingHotelManageBookings, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtwBookingHotelManageBookings, "atw-booking-hotel-manage-bookings", never, { "bookings": "bookings"; "staticdata": "staticdata"; "functionService": "functionService"; "data": "data"; "classStyles": "classStyles"; "loading": "loading"; "error": "error"; }, { "viewDetail": "viewDetail"; }, never, never>;
39
+ }
@@ -0,0 +1,44 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { NzModalService } from 'ng-zorro-antd/modal';
4
+ import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
5
+ import { Router } from '@angular/router';
6
+ import * as i0 from "@angular/core";
7
+ export declare class AtwBookingHotelManagePersonal implements OnInit {
8
+ private vhQueryAutoWeb;
9
+ private modalService;
10
+ private vhEventMediator;
11
+ private router;
12
+ staticdata: any;
13
+ functionService: any;
14
+ data: any;
15
+ classStyles: any;
16
+ type: any;
17
+ id_subproject: string;
18
+ save: EventEmitter<void>;
19
+ infoUserForm: FormGroup;
20
+ passwordForm: FormGroup;
21
+ submittedInfo: boolean;
22
+ currentPassowdVisible: boolean;
23
+ newPassowdVisible: boolean;
24
+ confirmPassowdVisible: boolean;
25
+ userCurrent: any;
26
+ constructor(vhQueryAutoWeb: VhQueryAutoWeb, modalService: NzModalService, vhEventMediator: VhEventMediator, router: Router);
27
+ ngOnInit(): void;
28
+ getCurrentUser(): void;
29
+ initInfoForm(): void;
30
+ get controlFormInfoUser(): {
31
+ [key: string]: import("@angular/forms").AbstractControl;
32
+ };
33
+ submitInfoForm(): void;
34
+ showConfirmUpdateInfo(): void;
35
+ private updatePersonalInformation;
36
+ initPasswordForm(): void;
37
+ get controlFormChangePass(): {
38
+ [key: string]: import("@angular/forms").AbstractControl;
39
+ };
40
+ mustMatch(controlName: string, matchingControlName: string): (formGroup: FormGroup) => any;
41
+ submitPasswordForm(): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtwBookingHotelManagePersonal, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtwBookingHotelManagePersonal, "atw-booking-hotel-manage-personal", never, { "staticdata": "staticdata"; "functionService": "functionService"; "data": "data"; "classStyles": "classStyles"; "type": "type"; "id_subproject": "id_subproject"; }, { "save": "save"; }, never, never>;
44
+ }
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AtwBookingHotelManageRefundDetail {
4
+ selectedRefund: any;
5
+ staticdata: any;
6
+ functionService: any;
7
+ data: any;
8
+ classStyles: any;
9
+ back: EventEmitter<void>;
10
+ ngOnInit(): void;
11
+ formatPrice(price: number): string;
12
+ getStatusClass(status: any): string;
13
+ goBack(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtwBookingHotelManageRefundDetail, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtwBookingHotelManageRefundDetail, "atw-booking-hotel-manage-refund-detail", never, { "selectedRefund": "selectedRefund"; "staticdata": "staticdata"; "functionService": "functionService"; "data": "data"; "classStyles": "classStyles"; }, { "back": "back"; }, never, never>;
16
+ }
@@ -0,0 +1,17 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AtwBookingHotelManageRefundRequests {
4
+ refundRequests: any[];
5
+ staticdata: any;
6
+ functionService: any;
7
+ data: any;
8
+ classStyles: any;
9
+ loading: boolean;
10
+ error: string | null;
11
+ viewDetail: EventEmitter<any>;
12
+ formatPrice(price: number): string;
13
+ getStatusClass(status: any): string;
14
+ onViewDetail(refund: any): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtwBookingHotelManageRefundRequests, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtwBookingHotelManageRefundRequests, "atw-booking-hotel-manage-refund-requests", never, { "refundRequests": "refundRequests"; "staticdata": "staticdata"; "functionService": "functionService"; "data": "data"; "classStyles": "classStyles"; "loading": "loading"; "error": "error"; }, { "viewDetail": "viewDetail"; }, never, never>;
17
+ }