@almatar/smart-booking-dashboard 0.0.2-alpha.4 → 0.0.2-alpha.5

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 (24) hide show
  1. package/esm2022/lib/components/hotel-cancel/almatar-hotel-auto-cancellation.component.mjs +33 -19
  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 +3 -3
  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 +77 -88
  10. package/fesm2022/almatar-smart-booking-dashboard.mjs.map +1 -1
  11. package/lib/components/action-dialog/action-dialog.component.d.ts +1 -1
  12. package/lib/components/cancel-dialog/cancel-dialog.component.d.ts +1 -1
  13. package/lib/components/hotel-cancel/almatar-hotel-auto-cancellation.component.d.ts +1 -3
  14. package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-summary/almatar-hotel-auto-cancellation-refund-summary.component.d.ts +2 -4
  15. 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
  16. package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-result-overlay/almatar-hotel-auto-cancellation-result-overlay.component.d.ts +1 -1
  17. package/lib/components/hotel-cancel/components/hotel-content/hotel-content.component.d.ts +1 -1
  18. package/lib/components/reissue-dialog/steps/reissue-notice/reissue-notice.component.d.ts +1 -1
  19. package/lib/components/result-panel/result-panel.component.d.ts +1 -1
  20. package/lib/models/booking.types.d.ts +2 -0
  21. package/lib/pages/smart-booking-dashboard/smart-booking-dashboard.component.d.ts +1 -1
  22. package/package.json +1 -1
  23. package/esm2022/lib/shared/store/selectors/currency.selectors.mjs +0 -9
  24. package/lib/shared/store/selectors/currency.selectors.d.ts +0 -2
@@ -12,7 +12,7 @@ export declare class SbdActionDialogComponent {
12
12
  preloadedData: import("@angular/core").InputSignal<any>;
13
13
  closed: import("@angular/core").OutputEmitterRef<void>;
14
14
  selectedAction: import("@angular/core").WritableSignal<ActionConfig>;
15
- actionStatus: import("@angular/core").WritableSignal<"error" | "success" | "idle" | "loading">;
15
+ actionStatus: import("@angular/core").WritableSignal<"idle" | "loading" | "success" | "error">;
16
16
  actionData: import("@angular/core").WritableSignal<unknown>;
17
17
  elapsedMs: import("@angular/core").WritableSignal<number>;
18
18
  copying: import("@angular/core").WritableSignal<boolean>;
@@ -36,7 +36,7 @@ export declare class SbdCancelDialogComponent {
36
36
  * bookings the backend hasn't already restricted to a single leg — mirrors
37
37
  * almatar-b2c's select-leg screen. Skipped straight to 'details' otherwise.
38
38
  */
39
- step: import("@angular/core").WritableSignal<"loading" | "select-leg" | "details">;
39
+ step: import("@angular/core").WritableSignal<"loading" | "details" | "select-leg">;
40
40
  /** Per-leg inclusion (checkbox) and expand/collapse state — round-trip only. */
41
41
  onwardChecked: import("@angular/core").WritableSignal<boolean>;
42
42
  returnChecked: import("@angular/core").WritableSignal<boolean>;
@@ -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>;
@@ -2,7 +2,7 @@ import { IHotelBookingData } from '../../../../models/booking.types';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SbdHotelContentComponent {
4
4
  bookingData: import("@angular/core").InputSignal<IHotelBookingData>;
5
- bookingStatus: import("@angular/core").InputSignal<"error" | "success" | "idle" | "loading">;
5
+ bookingStatus: import("@angular/core").InputSignal<"idle" | "loading" | "success" | "error">;
6
6
  bookingId: import("@angular/core").InputSignal<string>;
7
7
  dataVerified: import("@angular/core").InputSignal<boolean>;
8
8
  bookingNotes: import("@angular/core").InputSignal<any[]>;
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
2
2
  /** Icon + message box used for the info callout, loading / error states and the validation hint. */
3
3
  export declare class SbdReissueNoticeComponent {
4
4
  icon: import("@angular/core").InputSignal<string>;
5
- tone: import("@angular/core").InputSignal<"error" | "success" | "info" | "warn" | "muted">;
5
+ tone: import("@angular/core").InputSignal<"success" | "error" | "info" | "warn" | "muted">;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SbdReissueNoticeComponent, never>;
7
7
  static ɵcmp: i0.ɵɵComponentDeclaration<SbdReissueNoticeComponent, "app-sbd-reissue-notice", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[action]"], true, never>;
8
8
  }
@@ -4,7 +4,7 @@ export declare class SbdResultPanelComponent {
4
4
  private toast;
5
5
  actionLabel: import("@angular/core").InputSignal<string>;
6
6
  elapsedMs: import("@angular/core").InputSignal<number>;
7
- status: import("@angular/core").InputSignal<"error" | "success" | "idle" | "loading">;
7
+ status: import("@angular/core").InputSignal<"idle" | "loading" | "success" | "error">;
8
8
  result: import("@angular/core").InputSignal<ResultContent>;
9
9
  feedbackGiven: import("@angular/core").OutputEmitterRef<"up" | "down">;
10
10
  get elapsedSeconds(): string;
@@ -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
@@ -7,7 +7,7 @@ export declare class SmartBookingDashboardComponent {
7
7
  protected readonly reissueEnabled: boolean;
8
8
  product: import("@angular/core").WritableSignal<ProductType>;
9
9
  bookingId: import("@angular/core").WritableSignal<string>;
10
- bookingStatus: import("@angular/core").WritableSignal<"error" | "success" | "idle" | "loading">;
10
+ bookingStatus: import("@angular/core").WritableSignal<"idle" | "loading" | "success" | "error">;
11
11
  bookingData: import("@angular/core").WritableSignal<any>;
12
12
  cancelDialogOpen: import("@angular/core").WritableSignal<boolean>;
13
13
  hotelAutoCancelDialogOpen: import("@angular/core").WritableSignal<boolean>;
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.5",
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>;