@almatar/smart-booking-dashboard 0.0.2-alpha.4 → 0.0.2-alpha.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 (19) hide show
  1. package/esm2022/lib/components/hotel-cancel/almatar-hotel-auto-cancellation.component.mjs +40 -27
  2. package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-summary/almatar-hotel-auto-cancellation-refund-summary.component.mjs +14 -28
  3. package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-summary-skeleton/almatar-hotel-auto-cancellation-refund-summary-skeleton.component.mjs +16 -0
  4. package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-result-overlay/almatar-hotel-auto-cancellation-result-overlay.component.mjs +10 -13
  5. package/esm2022/lib/components/hotel-cancel/components/hotel-content/hotel-content.component.mjs +4 -4
  6. package/esm2022/lib/components/hotel-cancel/components/hotel-refund-method-selector/hotel-refund-method-selector.component.mjs +9 -10
  7. package/esm2022/lib/components/hotel-cancel/services/almatar-hotel-auto-cancellation-endpoints.service.mjs +2 -30
  8. package/esm2022/lib/models/booking.types.mjs +8 -1
  9. package/fesm2022/almatar-smart-booking-dashboard.mjs +175 -189
  10. package/fesm2022/almatar-smart-booking-dashboard.mjs.map +1 -1
  11. package/lib/components/cancel-dialog/cancel-dialog.component.d.ts +2 -2
  12. package/lib/components/hotel-cancel/almatar-hotel-auto-cancellation.component.d.ts +1 -3
  13. package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-summary/almatar-hotel-auto-cancellation-refund-summary.component.d.ts +2 -4
  14. package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-summary-skeleton/almatar-hotel-auto-cancellation-refund-summary-skeleton.component.d.ts +7 -0
  15. package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-result-overlay/almatar-hotel-auto-cancellation-result-overlay.component.d.ts +1 -1
  16. package/lib/models/booking.types.d.ts +2 -0
  17. package/package.json +1 -1
  18. package/esm2022/lib/shared/store/selectors/currency.selectors.mjs +0 -9
  19. package/lib/shared/store/selectors/currency.selectors.d.ts +0 -2
@@ -308,9 +308,9 @@ export declare class SbdCancelDialogComponent {
308
308
  * Card-refund settlement-timeline badge — Tabby and Tamara each have their
309
309
  * own processing window, distinct from a plain card's generic bank policy.
310
310
  */
311
- cardBadgeText: import("@angular/core").Signal<"From 5-7 business days" | "Up to 10 business days" | "Loyalty Program Policy" | "Up to 15 business days, bank policy">;
311
+ cardBadgeText: import("@angular/core").Signal<"Up to 10 business days" | "From 5-7 business days" | "Loyalty Program Policy" | "Up to 15 business days, bank policy">;
312
312
  /** Same as `cardBadgeText`, scoped to the confirmed cancellation result. */
313
- confirmCardBadgeText: import("@angular/core").Signal<"From 5-7 business days" | "Up to 10 business days" | "Loyalty Program Policy" | "Up to 15 business days, bank policy">;
313
+ confirmCardBadgeText: import("@angular/core").Signal<"Up to 10 business days" | "From 5-7 business days" | "Loyalty Program Policy" | "Up to 15 business days, bank policy">;
314
314
  /**
315
315
  * Per-method breakdown of the "Total paid" amount. The backend doesn't
316
316
  * (yet) expose a dedicated original-payment breakdown, so the known
@@ -15,7 +15,6 @@ export declare class AlmatarHotelAutoCancellationComponent implements OnInit, On
15
15
  private readonly autoCancellationEndpointsService;
16
16
  private readonly activatedRoute;
17
17
  private readonly destroyRef;
18
- private readonly store;
19
18
  private readonly sharedService;
20
19
  readonly selectedHotelBooking: import("@angular/core").InputSignal<IHotelBookingData>;
21
20
  readonly closed: import("@angular/core").OutputEmitterRef<void>;
@@ -49,11 +48,10 @@ export declare class AlmatarHotelAutoCancellationComponent implements OnInit, On
49
48
  readonly totalAdults: import("@angular/core").Signal<any>;
50
49
  readonly totalChildren: import("@angular/core").Signal<any>;
51
50
  readonly totalInfants: import("@angular/core").Signal<any>;
52
- readonly asideTitle: import("@angular/core").Signal<"Select Refund Method" | "Confirm Cancellation" | "Select Rooms" | "Cancel Booking Request" | "Cancel Booking">;
51
+ readonly asideTitle: import("@angular/core").Signal<"Confirm Cancellation" | "Select Rooms" | "Cancel Booking Request" | "Select Refund Method" | "Cancel Booking">;
53
52
  constructor();
54
53
  get closeIconName(): string;
55
54
  ngOnInit(): void;
56
- private initCurrency;
57
55
  ngOnDestroy(): void;
58
56
  private initializeQueryParams;
59
57
  private loadBookingDataFromPackages;
@@ -4,8 +4,6 @@ import * as i0 from "@angular/core";
4
4
  export declare class AlmatarHotelAutoCancellationRefundSummaryComponent implements OnInit {
5
5
  private readonly endpointsService;
6
6
  private readonly autoCancellationService;
7
- private readonly store;
8
- private readonly sharedService;
9
7
  private readonly destroyRef;
10
8
  private readonly translateService;
11
9
  private readonly hotelManageBookingsEndpointsService;
@@ -20,6 +18,7 @@ export declare class AlmatarHotelAutoCancellationRefundSummaryComponent implemen
20
18
  readonly hotelId: import("@angular/core").InputSignal<string | number>;
21
19
  readonly hotelInfo: import("@angular/core").InputSignal<IAlmatarHotelAutoCancellationHotelInfo>;
22
20
  readonly selectionSkipped: import("@angular/core").InputSignal<boolean>;
21
+ readonly currency: import("@angular/core").InputSignal<any>;
23
22
  readonly keepRoom: import("@angular/core").OutputEmitterRef<void>;
24
23
  readonly selectRefundOption: import("@angular/core").OutputEmitterRef<{
25
24
  packageIds: string[];
@@ -70,7 +69,6 @@ export declare class AlmatarHotelAutoCancellationRefundSummaryComponent implemen
70
69
  readonly hasDeductions: import("@angular/core").Signal<boolean>;
71
70
  ngOnInit(): void;
72
71
  private initLanguage;
73
- private initCurrency;
74
72
  loadRefundDetails(): void;
75
73
  private calculateLocalRefundSummary;
76
74
  togglePackageExpand(packageId: string): void;
@@ -88,5 +86,5 @@ export declare class AlmatarHotelAutoCancellationRefundSummaryComponent implemen
88
86
  formatDate(date: string | undefined): string;
89
87
  private determinePaymentMethod;
90
88
  static ɵfac: i0.ɵɵFactoryDeclaration<AlmatarHotelAutoCancellationRefundSummaryComponent, never>;
91
- static ɵcmp: i0.ɵɵComponentDeclaration<AlmatarHotelAutoCancellationRefundSummaryComponent, "almatar-hotel-auto-cancellation-refund-summary", never, { "selectedRooms": { "alias": "selectedRooms"; "required": true; "isSignal": true; }; "bookingId": { "alias": "bookingId"; "required": false; "isSignal": true; }; "hotelId": { "alias": "hotelId"; "required": false; "isSignal": true; }; "hotelInfo": { "alias": "hotelInfo"; "required": false; "isSignal": true; }; "selectionSkipped": { "alias": "selectionSkipped"; "required": false; "isSignal": true; }; }, { "keepRoom": "keepRoom"; "selectRefundOption": "selectRefundOption"; "closeModal": "closeModal"; }, never, never, true, never>;
89
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlmatarHotelAutoCancellationRefundSummaryComponent, "almatar-hotel-auto-cancellation-refund-summary", never, { "selectedRooms": { "alias": "selectedRooms"; "required": true; "isSignal": true; }; "bookingId": { "alias": "bookingId"; "required": false; "isSignal": true; }; "hotelId": { "alias": "hotelId"; "required": false; "isSignal": true; }; "hotelInfo": { "alias": "hotelInfo"; "required": false; "isSignal": true; }; "selectionSkipped": { "alias": "selectionSkipped"; "required": false; "isSignal": true; }; "currency": { "alias": "currency"; "required": false; "isSignal": true; }; }, { "keepRoom": "keepRoom"; "selectRefundOption": "selectRefundOption"; "closeModal": "closeModal"; }, never, never, true, never>;
92
90
  }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AlmatarHotelAutoCancellationRefundSummarySkeletonComponent {
3
+ readonly skeletonCards: number[];
4
+ readonly summaryRows: number[];
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlmatarHotelAutoCancellationRefundSummarySkeletonComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlmatarHotelAutoCancellationRefundSummarySkeletonComponent, "almatar-hotel-auto-cancellation-refund-summary-skeleton", never, {}, {}, never, never, true, never>;
7
+ }
@@ -19,7 +19,6 @@ export interface RefundResultRow {
19
19
  }
20
20
  export declare class AlmatarHotelAutoCancellationResultOverlayComponent implements OnInit {
21
21
  private readonly translateService;
22
- private readonly store;
23
22
  private readonly sharedService;
24
23
  private readonly destroyRef;
25
24
  readonly baseCurrencyCode: import("@angular/core").WritableSignal<string>;
@@ -29,6 +28,7 @@ export declare class AlmatarHotelAutoCancellationResultOverlayComponent implemen
29
28
  readonly refundMethod: import("@angular/core").InputSignal<RefundPreferredMethod>;
30
29
  readonly apiResponse: import("@angular/core").InputSignal<IAutoCancellationProcessResponse>;
31
30
  readonly done: import("@angular/core").OutputEmitterRef<void>;
31
+ constructor();
32
32
  ngOnInit(): void;
33
33
  private initCurrency;
34
34
  readonly isNilRefund: import("@angular/core").Signal<boolean>;
@@ -25,7 +25,9 @@ export interface IHotelBookingData {
25
25
  checkInTime?: string;
26
26
  checkOutTime?: string;
27
27
  price?: number;
28
+ priceCurrency?: string;
28
29
  data?: any;
30
+ currency?: any;
29
31
  }
30
32
  /**
31
33
  * Maps raw API response to IHotelBookingData interface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almatar/smart-booking-dashboard",
3
- "version": "0.0.2-alpha.4",
3
+ "version": "0.0.2-alpha.6",
4
4
  "description": "Almatar Smart Booking Dashboard (Angular library)",
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "^18.0.0 || ^21.0.0",
@@ -1,9 +0,0 @@
1
- import { createSelector } from '@ngrx/store';
2
- // Stub selector for getCurrentCurrency
3
- export const getCurrentCurrency = createSelector(() => ({}), () => ({
4
- code: 'SAR',
5
- name: 'Saudi Riyal',
6
- symbol: 'SAR',
7
- rate: 1
8
- }));
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kuc2VsZWN0b3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc21hcnQtYm9va2luZy1kYXNoYm9hcmQvc3JjL2xpYi9zaGFyZWQvc3RvcmUvc2VsZWN0b3JzL2N1cnJlbmN5LnNlbGVjdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBRzdDLHVDQUF1QztBQUN2QyxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyxjQUFjLENBQzlDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQ1YsR0FBYyxFQUFFLENBQUMsQ0FBQztJQUNoQixJQUFJLEVBQUUsS0FBSztJQUNYLElBQUksRUFBRSxhQUFhO0lBQ25CLE1BQU0sRUFBRSxLQUFLO0lBQ2IsSUFBSSxFQUFFLENBQUM7Q0FDUixDQUFDLENBQ0gsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNyZWF0ZVNlbGVjdG9yIH0gZnJvbSAnQG5ncngvc3RvcmUnO1xuaW1wb3J0IHsgSUN1cnJlbmN5IH0gZnJvbSAnLi4vLi4vbW9kZWxzJztcblxuLy8gU3R1YiBzZWxlY3RvciBmb3IgZ2V0Q3VycmVudEN1cnJlbmN5XG5leHBvcnQgY29uc3QgZ2V0Q3VycmVudEN1cnJlbmN5ID0gY3JlYXRlU2VsZWN0b3IoXG4gICgpID0+ICh7fSksXG4gICgpOiBJQ3VycmVuY3kgPT4gKHtcbiAgICBjb2RlOiAnU0FSJyxcbiAgICBuYW1lOiAnU2F1ZGkgUml5YWwnLFxuICAgIHN5bWJvbDogJ1NBUicsXG4gICAgcmF0ZTogMVxuICB9KVxuKTtcbiJdfQ==
@@ -1,2 +0,0 @@
1
- import { ICurrency } from '../../models';
2
- export declare const getCurrentCurrency: import("@ngrx/store").MemoizedSelector<unknown, ICurrency, (s1: {}) => ICurrency>;