@qite/tide-booking-component 1.3.4 → 1.3.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.
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar-util.d.ts +3 -3
- package/build/build-cjs/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +5 -5
- package/build/build-cjs/booking-wizard/types.d.ts +6 -0
- package/build/build-cjs/index.js +223 -147
- package/build/build-cjs/shared/utils/localization-util.d.ts +2 -0
- package/build/build-esm/booking-wizard/features/sidebar/sidebar-util.d.ts +3 -3
- package/build/build-esm/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +5 -5
- package/build/build-esm/booking-wizard/types.d.ts +6 -0
- package/build/build-esm/index.js +223 -147
- package/build/build-esm/shared/utils/localization-util.d.ts +2 -0
- package/package.json +75 -75
- package/src/booking-wizard/components/print-offer-button.tsx +63 -63
- package/src/booking-wizard/features/booking/booking-self-contained.tsx +389 -389
- package/src/booking-wizard/features/booking/booking-slice.ts +663 -663
- package/src/booking-wizard/features/booking/booking.tsx +361 -361
- package/src/booking-wizard/features/flight-options/flight-utils.ts +522 -522
- package/src/booking-wizard/features/product-options/options-form.tsx +481 -481
- package/src/booking-wizard/features/sidebar/sidebar-util.ts +177 -177
- package/src/booking-wizard/features/summary/summary-booking-option-pax.tsx +25 -25
- package/src/booking-wizard/features/summary/summary.tsx +674 -674
- package/src/booking-wizard/features/travelers-form/travelers-form-slice.ts +164 -164
- package/src/booking-wizard/features/travelers-form/travelers-form.tsx +888 -754
- package/src/booking-wizard/settings-context.ts +62 -62
- package/src/booking-wizard/types.ts +286 -279
- package/src/booking-wizard/use-offer-printer.ts +117 -117
- package/src/shared/translations/en-GB.json +239 -237
- package/src/shared/translations/fr-BE.json +239 -238
- package/src/shared/translations/nl-BE.json +239 -237
- package/src/shared/utils/tide-api-utils.ts +36 -36
- package/styles/booking-wizard-variables.scss +873 -873
- package/styles/components/_booking.scss +879 -879
- package/styles/components/_dropdown.scss +72 -72
- package/styles/components/_form.scss +1583 -1583
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BookingPackageFlightMetaData } from "@qite/tide-client/build/types";
|
|
2
|
-
import { FlightLine } from "../../types";
|
|
2
|
+
import { FlightLine, RoomTraveler } from "../../types";
|
|
3
3
|
export declare const getTravelersText: (rooms: {
|
|
4
|
-
adults:
|
|
5
|
-
children:
|
|
4
|
+
adults: RoomTraveler[];
|
|
5
|
+
children: RoomTraveler[];
|
|
6
6
|
}[]) => string[];
|
|
7
7
|
export declare const getDateText: (date: string | undefined, hideYear?: boolean) => string | undefined;
|
|
8
8
|
export declare const getDatePeriodText: (from?: string, to?: string, nightsOnly?: boolean) => string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootState } from "../../store";
|
|
2
|
-
import { TravelersFormValues } from "../../types";
|
|
2
|
+
import { TravelersFormValues, RoomTraveler } from "../../types";
|
|
3
3
|
export interface TravelersFormState {
|
|
4
4
|
formValues?: TravelersFormValues;
|
|
5
5
|
}
|
|
@@ -35,11 +35,11 @@ export declare const selectFormRooms: ((state: {
|
|
|
35
35
|
summary: import("../summary/summary-slice").SummaryState;
|
|
36
36
|
apiSettings: import("../../../shared/types").ApiSettingsState;
|
|
37
37
|
}) => {
|
|
38
|
-
adults:
|
|
39
|
-
children:
|
|
38
|
+
adults: RoomTraveler[];
|
|
39
|
+
children: RoomTraveler[];
|
|
40
40
|
}[]) & import("reselect").OutputSelectorFields<(args_0: import("@qite/tide-client/build/types").BookingPackageRequestRoom[] | undefined) => {
|
|
41
|
-
adults:
|
|
42
|
-
children:
|
|
41
|
+
adults: RoomTraveler[];
|
|
42
|
+
children: RoomTraveler[];
|
|
43
43
|
}[], {
|
|
44
44
|
clearCache: () => void;
|
|
45
45
|
}> & {
|
|
@@ -20,6 +20,7 @@ export interface Settings {
|
|
|
20
20
|
};
|
|
21
21
|
travellers: {
|
|
22
22
|
pathSuffix: string;
|
|
23
|
+
compactForm?: boolean;
|
|
23
24
|
};
|
|
24
25
|
summary: {
|
|
25
26
|
pathSuffix: string;
|
|
@@ -84,6 +85,7 @@ export interface Traveler {
|
|
|
84
85
|
firstName: string;
|
|
85
86
|
lastName: string;
|
|
86
87
|
birthDate: string;
|
|
88
|
+
age?: number;
|
|
87
89
|
}
|
|
88
90
|
export interface Room {
|
|
89
91
|
adults: number;
|
|
@@ -251,3 +253,7 @@ export interface TimeRangeFilter {
|
|
|
251
253
|
selectedMin: number;
|
|
252
254
|
selectedMax: number;
|
|
253
255
|
}
|
|
256
|
+
export interface RoomTraveler {
|
|
257
|
+
id: number;
|
|
258
|
+
age: number;
|
|
259
|
+
}
|