@propbinder/mobile-design 0.2.53 → 0.2.55

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/index.d.ts CHANGED
@@ -918,7 +918,7 @@ declare class WhitelabelService {
918
918
  readonly logoUrl: _angular_core.Signal<string>;
919
919
  readonly logoMarkUrl: _angular_core.Signal<string>;
920
920
  readonly logoAlt: _angular_core.Signal<string>;
921
- readonly logoSize: _angular_core.Signal<"sm" | "md" | "lg" | "xl">;
921
+ readonly logoSize: _angular_core.Signal<"md" | "sm" | "lg" | "xl">;
922
922
  readonly logoHeight: _angular_core.Signal<number>;
923
923
  readonly appIconSurface: _angular_core.Signal<string>;
924
924
  readonly appIconContent: _angular_core.Signal<string>;
@@ -6061,7 +6061,7 @@ interface BookingResult {
6061
6061
  * const result = await modal.onWillDismiss<BookingResult>();
6062
6062
  * ```
6063
6063
  */
6064
- declare class DsMobileBookingModalComponent implements AfterViewInit {
6064
+ declare class DsMobileBookingModalComponent implements AfterViewInit, OnInit {
6065
6065
  private modalController;
6066
6066
  facilityId: string;
6067
6067
  facilityTitle: string;
@@ -6074,6 +6074,7 @@ declare class DsMobileBookingModalComponent implements AfterViewInit {
6074
6074
  confirmBookingText: string;
6075
6075
  availableDates?: DateOption[];
6076
6076
  availableTimeSlots?: Record<string, TimeSlot[]>;
6077
+ useMockData: boolean;
6077
6078
  swiperComponent?: DsMobileSwiperComponent;
6078
6079
  dateOptions: _angular_core.WritableSignal<DateOption[]>;
6079
6080
  timeSlots: _angular_core.WritableSignal<TimeSlot[]>;
@@ -6082,6 +6083,7 @@ declare class DsMobileBookingModalComponent implements AfterViewInit {
6082
6083
  isConfirming: _angular_core.WritableSignal<boolean>;
6083
6084
  canConfirm: _angular_core.Signal<boolean>;
6084
6085
  constructor(modalController: ModalController);
6086
+ ngOnInit(): void;
6085
6087
  /**
6086
6088
  * After view init - force swiper update to fix initial positioning
6087
6089
  */
@@ -6101,13 +6103,13 @@ declare class DsMobileBookingModalComponent implements AfterViewInit {
6101
6103
  */
6102
6104
  dateDisabledFn: _angular_core.Signal<(date: Date) => boolean>;
6103
6105
  /**
6104
- * Generate mock date and time data or use provided available data
6106
+ * Initialize date and time data or optionally use mock data for testing
6105
6107
  */
6106
- private generateMockData;
6108
+ private initializeData;
6107
6109
  /**
6108
6110
  * Generate time slots based on selected date and dynamic available timeslots
6109
6111
  */
6110
- private generateTimeSlots;
6112
+ private initializeTimeSlots;
6111
6113
  /**
6112
6114
  * Handle date selection
6113
6115
  */
@@ -6130,7 +6132,7 @@ declare class DsMobileBookingModalComponent implements AfterViewInit {
6130
6132
  */
6131
6133
  handleClose(): Promise<void>;
6132
6134
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DsMobileBookingModalComponent, never>;
6133
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsMobileBookingModalComponent, "ds-mobile-booking-modal", never, { "facilityId": { "alias": "facilityId"; "required": false; }; "facilityTitle": { "alias": "facilityTitle"; "required": false; }; "daysAhead": { "alias": "daysAhead"; "required": false; }; "selectFromCalendarText": { "alias": "selectFromCalendarText"; "required": false; }; "confirmBookingText": { "alias": "confirmBookingText"; "required": false; }; "availableDates": { "alias": "availableDates"; "required": false; }; "availableTimeSlots": { "alias": "availableTimeSlots"; "required": false; }; }, {}, never, never, true, never>;
6135
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsMobileBookingModalComponent, "ds-mobile-booking-modal", never, { "facilityId": { "alias": "facilityId"; "required": false; }; "facilityTitle": { "alias": "facilityTitle"; "required": false; }; "daysAhead": { "alias": "daysAhead"; "required": false; }; "selectFromCalendarText": { "alias": "selectFromCalendarText"; "required": false; }; "confirmBookingText": { "alias": "confirmBookingText"; "required": false; }; "availableDates": { "alias": "availableDates"; "required": false; }; "availableTimeSlots": { "alias": "availableTimeSlots"; "required": false; }; "useMockData": { "alias": "useMockData"; "required": false; }; }, {}, never, never, true, never>;
6134
6136
  }
6135
6137
 
6136
6138
  /**
@@ -6159,6 +6161,7 @@ interface BookingModalOptions {
6159
6161
  daysAhead?: number;
6160
6162
  availableDates?: DateOption[];
6161
6163
  availableTimeSlots?: Record<string, TimeSlot[]>;
6164
+ useMockData?: boolean;
6162
6165
  labels?: {
6163
6166
  selectFromCalendar?: string;
6164
6167
  confirmBooking?: string;
@@ -6694,6 +6697,12 @@ interface FacilityDetailData {
6694
6697
  bookingDate?: string;
6695
6698
  /** Booking time range (for active bookings) */
6696
6699
  bookingTime?: string;
6700
+ /** Available dates for the calendar */
6701
+ availableDates?: DateOption[];
6702
+ /** Available time slots mapping */
6703
+ availableTimeSlots?: Record<string, TimeSlot[]>;
6704
+ /** Fallback to mock data for testing */
6705
+ useMockData?: boolean;
6697
6706
  }
6698
6707
  /**
6699
6708
  * DsMobileFacilityDetailModalComponent
@@ -7294,7 +7303,7 @@ declare class DsMobileFabComponent implements AfterViewInit, OnDestroy {
7294
7303
  * Note: FAB is always 56px circular, but this affects the icon size
7295
7304
  * @default 'md'
7296
7305
  */
7297
- size: _angular_core.InputSignal<"sm" | "md" | "lg">;
7306
+ size: _angular_core.InputSignal<"md" | "sm" | "lg">;
7298
7307
  /**
7299
7308
  * ARIA label for accessibility
7300
7309
  * @required - Always provide a descriptive label
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propbinder/mobile-design",
3
- "version": "0.2.53",
3
+ "version": "0.2.55",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0 || ^21.0.0",
6
6
  "@angular/core": "^20.3.0 || ^21.0.0"