@almatar/smart-booking-dashboard 0.0.2-alpha.3 → 0.0.2-alpha.4
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/components/hotel-cancel/almatar-hotel-auto-cancellation.component.mjs +17 -12
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-summary/almatar-hotel-auto-cancellation-refund-summary.component.mjs +9 -3
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-result-overlay/almatar-hotel-auto-cancellation-result-overlay.component.mjs +210 -0
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/almatar-hotel-auto-cancellation-select-rooms.component.mjs +3 -3
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/components/almatar-hotel-auto-cancellation-non-refundable-room/almatar-hotel-auto-cancellation-non-refundable-room.component.mjs +3 -3
- package/esm2022/lib/components/hotel-cancel/components/hotel-content/hotel-content.component.mjs +11 -4
- package/esm2022/lib/components/hotel-cancel/components/hotel-refund-method-selector/hotel-refund-method-selector.component.mjs +23 -21
- package/esm2022/lib/components/hotel-cancel/services/almatar-hotel-auto-cancellation-endpoints.service.mjs +30 -31
- package/fesm2022/almatar-smart-booking-dashboard.mjs +283 -68
- package/fesm2022/almatar-smart-booking-dashboard.mjs.map +1 -1
- package/lib/components/hotel-cancel/almatar-hotel-auto-cancellation.component.d.ts +3 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-summary/almatar-hotel-auto-cancellation-refund-summary.component.d.ts +1 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-result-overlay/almatar-hotel-auto-cancellation-result-overlay.component.d.ts +46 -0
- package/lib/components/hotel-cancel/components/hotel-content/hotel-content.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -31,6 +31,8 @@ export declare class AlmatarHotelAutoCancellationComponent implements OnInit, On
|
|
|
31
31
|
readonly isNusk: import("@angular/core").WritableSignal<boolean>;
|
|
32
32
|
readonly showResultOverlay: import("@angular/core").WritableSignal<boolean>;
|
|
33
33
|
readonly resultOverlayData: import("@angular/core").WritableSignal<ResultOverlayData>;
|
|
34
|
+
readonly showDetailedResultOverlay: import("@angular/core").WritableSignal<boolean>;
|
|
35
|
+
readonly cancellationApiResponse: import("@angular/core").WritableSignal<IAutoCancellationProcessResponse>;
|
|
34
36
|
readonly rooms: import("@angular/core").WritableSignal<IAlmatarHotelAutoCancellationRoom[]>;
|
|
35
37
|
readonly packages: import("@angular/core").WritableSignal<IAlmatarHotelAutoCancellationPackage[]>;
|
|
36
38
|
readonly hotelInfo: import("@angular/core").WritableSignal<IAlmatarHotelAutoCancellationHotelInfo>;
|
|
@@ -92,6 +94,7 @@ export declare class AlmatarHotelAutoCancellationComponent implements OnInit, On
|
|
|
92
94
|
closeAllModals(): void;
|
|
93
95
|
onResultOverlayConfirm(): void;
|
|
94
96
|
onResultOverlayCancel(): void;
|
|
97
|
+
onDetailedResultOverlayDone(): void;
|
|
95
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlmatarHotelAutoCancellationComponent, never>;
|
|
96
99
|
static ɵcmp: i0.ɵɵComponentDeclaration<AlmatarHotelAutoCancellationComponent, "almatar-hotel-auto-cancellation", never, { "selectedHotelBooking": { "alias": "selectedHotelBooking"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "cancellationSuccess": "cancellationSuccess"; "nonRefundableSubmitSuccess": "nonRefundableSubmitSuccess"; "chatWithAgent": "chatWithAgent"; }, never, never, true, never>;
|
|
97
100
|
}
|
|
@@ -49,6 +49,7 @@ export declare class AlmatarHotelAutoCancellationRefundSummaryComponent implemen
|
|
|
49
49
|
basis?: string;
|
|
50
50
|
}[];
|
|
51
51
|
readonly packages: import("@angular/core").Signal<IAlmatarHotelAutoCancellationRefundPackage[]>;
|
|
52
|
+
readonly allPackagesCancelled: import("@angular/core").Signal<boolean>;
|
|
52
53
|
readonly currentRefundRoomsNumber: import("@angular/core").Signal<number>;
|
|
53
54
|
readonly totalPaid: import("@angular/core").Signal<number>;
|
|
54
55
|
readonly totalRefund: import("@angular/core").Signal<number>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { RefundPreferredMethod } from '../../../shared/interfaces/i-flight-refund-details';
|
|
3
|
+
import { IAutoCancellationProcessResponse } from '../../services/almatar-hotel-auto-cancellation-endpoints.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface LoyaltySubItem {
|
|
6
|
+
label: string;
|
|
7
|
+
value: number;
|
|
8
|
+
}
|
|
9
|
+
export interface RefundResultRow {
|
|
10
|
+
label: string;
|
|
11
|
+
value: number;
|
|
12
|
+
instant: boolean;
|
|
13
|
+
badgeKey: string;
|
|
14
|
+
isWallet?: boolean;
|
|
15
|
+
isMada?: boolean;
|
|
16
|
+
hasLoyaltyNote?: boolean;
|
|
17
|
+
isInstallment?: boolean;
|
|
18
|
+
loyaltySubItems?: LoyaltySubItem[];
|
|
19
|
+
}
|
|
20
|
+
export declare class AlmatarHotelAutoCancellationResultOverlayComponent implements OnInit {
|
|
21
|
+
private readonly translateService;
|
|
22
|
+
private readonly store;
|
|
23
|
+
private readonly sharedService;
|
|
24
|
+
private readonly destroyRef;
|
|
25
|
+
readonly baseCurrencyCode: import("@angular/core").WritableSignal<string>;
|
|
26
|
+
readonly currentCurrency: import("@angular/core").WritableSignal<any>;
|
|
27
|
+
readonly visible: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
readonly currencyObj: import("@angular/core").InputSignal<any>;
|
|
29
|
+
readonly refundMethod: import("@angular/core").InputSignal<RefundPreferredMethod>;
|
|
30
|
+
readonly apiResponse: import("@angular/core").InputSignal<IAutoCancellationProcessResponse>;
|
|
31
|
+
readonly done: import("@angular/core").OutputEmitterRef<void>;
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
private initCurrency;
|
|
34
|
+
readonly isNilRefund: import("@angular/core").Signal<boolean>;
|
|
35
|
+
readonly displayCurrency: import("@angular/core").Signal<any>;
|
|
36
|
+
readonly refundRows: import("@angular/core").Signal<RefundResultRow[]>;
|
|
37
|
+
private buildRowsFromApiResponse;
|
|
38
|
+
private getLoyaltyPrograms;
|
|
39
|
+
private getLoyaltyProgramLabel;
|
|
40
|
+
private getPaymentMethodLabel;
|
|
41
|
+
isWalletRow(row: RefundResultRow): boolean;
|
|
42
|
+
fmtAmount(value: number | undefined): string;
|
|
43
|
+
onDone(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlmatarHotelAutoCancellationResultOverlayComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlmatarHotelAutoCancellationResultOverlayComponent, "almatar-hotel-auto-cancellation-result-overlay", never, { "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "currencyObj": { "alias": "currencyObj"; "required": false; "isSignal": true; }; "refundMethod": { "alias": "refundMethod"; "required": false; "isSignal": true; }; "apiResponse": { "alias": "apiResponse"; "required": false; "isSignal": true; }; }, { "done": "done"; }, never, never, true, never>;
|
|
46
|
+
}
|
|
@@ -9,6 +9,7 @@ export declare class SbdHotelContentComponent {
|
|
|
9
9
|
bookingHistory: import("@angular/core").InputSignal<any[]>;
|
|
10
10
|
historyGroups: import("@angular/core").InputSignal<any[]>;
|
|
11
11
|
activeContextTab: import("@angular/core").InputSignal<"notes" | "changes">;
|
|
12
|
+
allPackagesCancelled: import("@angular/core").Signal<boolean>;
|
|
12
13
|
cancelBooking: import("@angular/core").OutputEmitterRef<void>;
|
|
13
14
|
addNoteRequested: import("@angular/core").OutputEmitterRef<void>;
|
|
14
15
|
contextTabChanged: import("@angular/core").OutputEmitterRef<"notes" | "changes">;
|
package/package.json
CHANGED