@propbinder/mobile-design 0.2.54 → 0.2.56
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<"
|
|
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,8 @@ declare class DsMobileBookingModalComponent implements AfterViewInit {
|
|
|
6074
6074
|
confirmBookingText: string;
|
|
6075
6075
|
availableDates?: DateOption[];
|
|
6076
6076
|
availableTimeSlots?: Record<string, TimeSlot[]>;
|
|
6077
|
+
useMockData: boolean;
|
|
6078
|
+
onSubmit?: (result: BookingResult) => Promise<void>;
|
|
6077
6079
|
swiperComponent?: DsMobileSwiperComponent;
|
|
6078
6080
|
dateOptions: _angular_core.WritableSignal<DateOption[]>;
|
|
6079
6081
|
timeSlots: _angular_core.WritableSignal<TimeSlot[]>;
|
|
@@ -6082,6 +6084,7 @@ declare class DsMobileBookingModalComponent implements AfterViewInit {
|
|
|
6082
6084
|
isConfirming: _angular_core.WritableSignal<boolean>;
|
|
6083
6085
|
canConfirm: _angular_core.Signal<boolean>;
|
|
6084
6086
|
constructor(modalController: ModalController);
|
|
6087
|
+
ngOnInit(): void;
|
|
6085
6088
|
/**
|
|
6086
6089
|
* After view init - force swiper update to fix initial positioning
|
|
6087
6090
|
*/
|
|
@@ -6101,13 +6104,13 @@ declare class DsMobileBookingModalComponent implements AfterViewInit {
|
|
|
6101
6104
|
*/
|
|
6102
6105
|
dateDisabledFn: _angular_core.Signal<(date: Date) => boolean>;
|
|
6103
6106
|
/**
|
|
6104
|
-
*
|
|
6107
|
+
* Initialize date and time data or optionally use mock data for testing
|
|
6105
6108
|
*/
|
|
6106
|
-
private
|
|
6109
|
+
private initializeData;
|
|
6107
6110
|
/**
|
|
6108
6111
|
* Generate time slots based on selected date and dynamic available timeslots
|
|
6109
6112
|
*/
|
|
6110
|
-
private
|
|
6113
|
+
private initializeTimeSlots;
|
|
6111
6114
|
/**
|
|
6112
6115
|
* Handle date selection
|
|
6113
6116
|
*/
|
|
@@ -6130,7 +6133,7 @@ declare class DsMobileBookingModalComponent implements AfterViewInit {
|
|
|
6130
6133
|
*/
|
|
6131
6134
|
handleClose(): Promise<void>;
|
|
6132
6135
|
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>;
|
|
6136
|
+
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; }; "onSubmit": { "alias": "onSubmit"; "required": false; }; }, {}, never, never, true, never>;
|
|
6134
6137
|
}
|
|
6135
6138
|
|
|
6136
6139
|
/**
|
|
@@ -6159,6 +6162,8 @@ interface BookingModalOptions {
|
|
|
6159
6162
|
daysAhead?: number;
|
|
6160
6163
|
availableDates?: DateOption[];
|
|
6161
6164
|
availableTimeSlots?: Record<string, TimeSlot[]>;
|
|
6165
|
+
useMockData?: boolean;
|
|
6166
|
+
onSubmit?: (result: BookingResult) => Promise<void>;
|
|
6162
6167
|
labels?: {
|
|
6163
6168
|
selectFromCalendar?: string;
|
|
6164
6169
|
confirmBooking?: string;
|
|
@@ -6698,6 +6703,8 @@ interface FacilityDetailData {
|
|
|
6698
6703
|
availableDates?: DateOption[];
|
|
6699
6704
|
/** Available time slots mapping */
|
|
6700
6705
|
availableTimeSlots?: Record<string, TimeSlot[]>;
|
|
6706
|
+
/** Fallback to mock data for testing */
|
|
6707
|
+
useMockData?: boolean;
|
|
6701
6708
|
}
|
|
6702
6709
|
/**
|
|
6703
6710
|
* DsMobileFacilityDetailModalComponent
|
|
@@ -7298,7 +7305,7 @@ declare class DsMobileFabComponent implements AfterViewInit, OnDestroy {
|
|
|
7298
7305
|
* Note: FAB is always 56px circular, but this affects the icon size
|
|
7299
7306
|
* @default 'md'
|
|
7300
7307
|
*/
|
|
7301
|
-
size: _angular_core.InputSignal<"
|
|
7308
|
+
size: _angular_core.InputSignal<"md" | "sm" | "lg">;
|
|
7302
7309
|
/**
|
|
7303
7310
|
* ARIA label for accessibility
|
|
7304
7311
|
* @required - Always provide a descriptive label
|