@qite/tide-booking-component 1.0.32 → 1.0.33
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/components/icon.d.ts +7 -7
- package/build/build-cjs/booking-wizard/components/labeled-input.d.ts +18 -18
- package/build/build-cjs/booking-wizard/components/labeled-select.d.ts +21 -21
- package/build/build-cjs/booking-wizard/components/message.d.ts +9 -9
- package/build/build-cjs/booking-wizard/components/product-card.d.ts +8 -8
- package/build/build-cjs/booking-wizard/components/rating.d.ts +6 -6
- package/build/build-cjs/booking-wizard/components/step-indicator.d.ts +6 -6
- package/build/build-cjs/booking-wizard/components/step-route.d.ts +9 -9
- package/build/build-cjs/booking-wizard/features/booking/api.d.ts +6 -16
- package/build/build-cjs/booking-wizard/features/booking/booking-slice.d.ts +36 -138
- package/build/build-cjs/booking-wizard/features/booking/booking.d.ts +8 -8
- package/build/build-cjs/booking-wizard/features/booking/selectors.d.ts +95 -221
- package/build/build-cjs/booking-wizard/features/confirmation/confirmation.d.ts +5 -4
- package/build/build-cjs/booking-wizard/features/error/error.d.ts +5 -4
- package/build/build-cjs/booking-wizard/features/price-details/price-details-api.d.ts +5 -13
- package/build/build-cjs/booking-wizard/features/price-details/price-details-slice.d.ts +75 -116
- package/build/build-cjs/booking-wizard/features/price-details/util.d.ts +2 -5
- package/build/build-cjs/booking-wizard/features/product-options/no-options.d.ts +3 -3
- package/build/build-cjs/booking-wizard/features/product-options/none-option.d.ts +9 -17
- package/build/build-cjs/booking-wizard/features/product-options/option-booking-group.d.ts +12 -18
- package/build/build-cjs/booking-wizard/features/product-options/option-item.d.ts +11 -11
- package/build/build-cjs/booking-wizard/features/product-options/option-pax-card.d.ts +10 -13
- package/build/build-cjs/booking-wizard/features/product-options/option-pax-group.d.ts +13 -20
- package/build/build-cjs/booking-wizard/features/product-options/option-room.d.ts +10 -18
- package/build/build-cjs/booking-wizard/features/product-options/option-unit-group.d.ts +13 -20
- package/build/build-cjs/booking-wizard/features/product-options/option-units-card.d.ts +9 -9
- package/build/build-cjs/booking-wizard/features/product-options/options-form.d.ts +5 -4
- package/build/build-cjs/booking-wizard/features/product-options/validate-form.d.ts +2 -2
- package/build/build-cjs/booking-wizard/features/sidebar/index.d.ts +7 -7
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar-flight.d.ts +8 -8
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar-util.d.ts +12 -30
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar.d.ts +25 -29
- package/build/build-cjs/booking-wizard/features/summary/summary-booking-option-pax.d.ts +7 -7
- package/build/build-cjs/booking-wizard/features/summary/summary-booking-option-unit.d.ts +7 -7
- package/build/build-cjs/booking-wizard/features/summary/summary-flight.d.ts +8 -8
- package/build/build-cjs/booking-wizard/features/summary/summary-per-booking-option-group.d.ts +7 -10
- package/build/build-cjs/booking-wizard/features/summary/summary-per-pax-option-group.d.ts +7 -10
- package/build/build-cjs/booking-wizard/features/summary/summary-per-unit-option-group.d.ts +7 -10
- package/build/build-cjs/booking-wizard/features/summary/summary-slice.d.ts +8 -14
- package/build/build-cjs/booking-wizard/features/summary/summary.d.ts +5 -4
- package/build/build-cjs/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +46 -72
- package/build/build-cjs/booking-wizard/features/travelers-form/travelers-form.d.ts +5 -4
- package/build/build-cjs/booking-wizard/features/travelers-form/type-ahead-input.d.ts +16 -16
- package/build/build-cjs/booking-wizard/features/travelers-form/validate-form.d.ts +4 -9
- package/build/build-cjs/booking-wizard/index.d.ts +12 -12
- package/build/build-cjs/booking-wizard/settings-context.d.ts +6 -5
- package/build/build-cjs/booking-wizard/store.d.ts +21 -41
- package/build/build-cjs/booking-wizard/types.d.ts +127 -127
- package/build/build-cjs/booking-wizard/utils/class-util.d.ts +1 -1
- package/build/build-cjs/booking-wizard/utils/localization-util.d.ts +158 -158
- package/build/build-cjs/booking-wizard/utils/query-string-util.d.ts +7 -25
- package/build/build-cjs/booking-wizard/utils/tide-api-utils.d.ts +2 -2
- package/build/build-cjs/index.d.ts +2 -2
- package/build/build-cjs/index.js +3698 -8238
- package/build/build-esm/booking-wizard/components/icon.d.ts +7 -7
- package/build/build-esm/booking-wizard/components/labeled-input.d.ts +18 -18
- package/build/build-esm/booking-wizard/components/labeled-select.d.ts +21 -21
- package/build/build-esm/booking-wizard/components/message.d.ts +9 -9
- package/build/build-esm/booking-wizard/components/product-card.d.ts +8 -8
- package/build/build-esm/booking-wizard/components/rating.d.ts +6 -6
- package/build/build-esm/booking-wizard/components/step-indicator.d.ts +6 -6
- package/build/build-esm/booking-wizard/components/step-route.d.ts +9 -9
- package/build/build-esm/booking-wizard/features/booking/api.d.ts +6 -16
- package/build/build-esm/booking-wizard/features/booking/booking-slice.d.ts +36 -138
- package/build/build-esm/booking-wizard/features/booking/booking.d.ts +8 -8
- package/build/build-esm/booking-wizard/features/booking/selectors.d.ts +95 -221
- package/build/build-esm/booking-wizard/features/confirmation/confirmation.d.ts +5 -4
- package/build/build-esm/booking-wizard/features/error/error.d.ts +5 -4
- package/build/build-esm/booking-wizard/features/price-details/price-details-api.d.ts +5 -13
- package/build/build-esm/booking-wizard/features/price-details/price-details-slice.d.ts +75 -116
- package/build/build-esm/booking-wizard/features/price-details/util.d.ts +2 -5
- package/build/build-esm/booking-wizard/features/product-options/no-options.d.ts +3 -3
- package/build/build-esm/booking-wizard/features/product-options/none-option.d.ts +9 -17
- package/build/build-esm/booking-wizard/features/product-options/option-booking-group.d.ts +12 -18
- package/build/build-esm/booking-wizard/features/product-options/option-item.d.ts +11 -11
- package/build/build-esm/booking-wizard/features/product-options/option-pax-card.d.ts +10 -13
- package/build/build-esm/booking-wizard/features/product-options/option-pax-group.d.ts +13 -20
- package/build/build-esm/booking-wizard/features/product-options/option-room.d.ts +10 -18
- package/build/build-esm/booking-wizard/features/product-options/option-unit-group.d.ts +13 -20
- package/build/build-esm/booking-wizard/features/product-options/option-units-card.d.ts +9 -9
- package/build/build-esm/booking-wizard/features/product-options/options-form.d.ts +5 -4
- package/build/build-esm/booking-wizard/features/product-options/validate-form.d.ts +2 -2
- package/build/build-esm/booking-wizard/features/sidebar/index.d.ts +7 -7
- package/build/build-esm/booking-wizard/features/sidebar/sidebar-flight.d.ts +8 -8
- package/build/build-esm/booking-wizard/features/sidebar/sidebar-util.d.ts +12 -30
- package/build/build-esm/booking-wizard/features/sidebar/sidebar.d.ts +25 -29
- package/build/build-esm/booking-wizard/features/summary/summary-booking-option-pax.d.ts +7 -7
- package/build/build-esm/booking-wizard/features/summary/summary-booking-option-unit.d.ts +7 -7
- package/build/build-esm/booking-wizard/features/summary/summary-flight.d.ts +8 -8
- package/build/build-esm/booking-wizard/features/summary/summary-per-booking-option-group.d.ts +7 -10
- package/build/build-esm/booking-wizard/features/summary/summary-per-pax-option-group.d.ts +7 -10
- package/build/build-esm/booking-wizard/features/summary/summary-per-unit-option-group.d.ts +7 -10
- package/build/build-esm/booking-wizard/features/summary/summary-slice.d.ts +8 -14
- package/build/build-esm/booking-wizard/features/summary/summary.d.ts +5 -4
- package/build/build-esm/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +46 -72
- package/build/build-esm/booking-wizard/features/travelers-form/travelers-form.d.ts +5 -4
- package/build/build-esm/booking-wizard/features/travelers-form/type-ahead-input.d.ts +16 -16
- package/build/build-esm/booking-wizard/features/travelers-form/validate-form.d.ts +4 -9
- package/build/build-esm/booking-wizard/index.d.ts +12 -12
- package/build/build-esm/booking-wizard/settings-context.d.ts +6 -5
- package/build/build-esm/booking-wizard/store.d.ts +21 -41
- package/build/build-esm/booking-wizard/types.d.ts +127 -127
- package/build/build-esm/booking-wizard/utils/class-util.d.ts +1 -1
- package/build/build-esm/booking-wizard/utils/localization-util.d.ts +158 -158
- package/build/build-esm/booking-wizard/utils/query-string-util.d.ts +7 -25
- package/build/build-esm/booking-wizard/utils/tide-api-utils.d.ts +2 -2
- package/build/build-esm/index.d.ts +2 -2
- package/build/build-esm/index.js +3688 -8075
- package/package.json +1 -1
- package/selfcontained/index.html +18 -0
- package/selfcontained/index.tsx +113 -0
- package/selfcontained/package-lock.json +7587 -0
- package/selfcontained/package.json +27 -0
- package/selfcontained/scss/_animations.scss +39 -0
- package/selfcontained/scss/_base.scss +115 -0
- package/selfcontained/scss/_mixins.scss +730 -0
- package/selfcontained/scss/_overrides.scss +73 -0
- package/selfcontained/scss/_placeholders.scss +88 -0
- package/selfcontained/scss/_variables.scss +59 -0
- package/selfcontained/scss/components/_accent-frame.scss +28 -0
- package/selfcontained/scss/components/_alert-bar.scss +30 -0
- package/selfcontained/scss/components/_amount-label.scss +3 -0
- package/selfcontained/scss/components/_backdrop.scss +42 -0
- package/selfcontained/scss/components/_baseline.scss +3 -0
- package/selfcontained/scss/components/_booking.scss +894 -0
- package/selfcontained/scss/components/_breadcrumb.scss +83 -0
- package/selfcontained/scss/components/_button.scss +691 -0
- package/selfcontained/scss/components/_caption.scss +10 -0
- package/selfcontained/scss/components/_carousel.scss +250 -0
- package/selfcontained/scss/components/_checkbox.scss +214 -0
- package/selfcontained/scss/components/_column.scss +18 -0
- package/selfcontained/scss/components/_company-rooms.scss +21 -0
- package/selfcontained/scss/components/_configure-rooms.scss +417 -0
- package/selfcontained/scss/components/_configure-trip.scss +147 -0
- package/selfcontained/scss/components/_contact-bubble.scss +90 -0
- package/selfcontained/scss/components/_contact-form.scss +36 -0
- package/selfcontained/scss/components/_container.scss +19 -0
- package/selfcontained/scss/components/_copy.scss +26 -0
- package/selfcontained/scss/components/_cta.scss +407 -0
- package/selfcontained/scss/components/_date-list.scss +35 -0
- package/selfcontained/scss/components/_date-range-picker.scss +261 -0
- package/selfcontained/scss/components/_datepicker.scss +289 -0
- package/selfcontained/scss/components/_decrement-increment.scss +54 -0
- package/selfcontained/scss/components/_destination-intro.scss +50 -0
- package/selfcontained/scss/components/_destination-labels.scss +60 -0
- package/selfcontained/scss/components/_disclaimer-text.scss +4 -0
- package/selfcontained/scss/components/_dropdown.scss +271 -0
- package/selfcontained/scss/components/_embed.scss +32 -0
- package/selfcontained/scss/components/_expert.scss +84 -0
- package/selfcontained/scss/components/_faceted-search.scss +197 -0
- package/selfcontained/scss/components/_find-office.scss +122 -0
- package/selfcontained/scss/components/_flight-option.scss +79 -0
- package/selfcontained/scss/components/_flight-schedule.scss +82 -0
- package/selfcontained/scss/components/_flight-timeline.scss +162 -0
- package/selfcontained/scss/components/_footer.scss +193 -0
- package/selfcontained/scss/components/_form.scss +1441 -0
- package/selfcontained/scss/components/_gallery-grid.scss +94 -0
- package/selfcontained/scss/components/_gallery-row.scss +78 -0
- package/selfcontained/scss/components/_grid-sidebar.scss +36 -0
- package/selfcontained/scss/components/_grid.scss +72 -0
- package/selfcontained/scss/components/_hero.scss +149 -0
- package/selfcontained/scss/components/_highlight-frame.scss +32 -0
- package/selfcontained/scss/components/_highlight-two-column.scss +24 -0
- package/selfcontained/scss/components/_icon.scss +516 -0
- package/selfcontained/scss/components/_image.scss +234 -0
- package/selfcontained/scss/components/_info-message.scss +34 -0
- package/selfcontained/scss/components/_infowindow.scss +61 -0
- package/selfcontained/scss/components/_input.scss +25 -0
- package/selfcontained/scss/components/_intro-text.scss +0 -0
- package/selfcontained/scss/components/_intro.scss +27 -0
- package/selfcontained/scss/components/_itinerary.scss +138 -0
- package/selfcontained/scss/components/_legal.scss +39 -0
- package/selfcontained/scss/components/_link-items.scss +114 -0
- package/selfcontained/scss/components/_link.scss +118 -0
- package/selfcontained/scss/components/_list.scss +309 -0
- package/selfcontained/scss/components/_loader.scss +73 -0
- package/selfcontained/scss/components/_logo.scss +39 -0
- package/selfcontained/scss/components/_map-marker.scss +16 -0
- package/selfcontained/scss/components/_map-popup.scss +54 -0
- package/selfcontained/scss/components/_meals.scss +9 -0
- package/selfcontained/scss/components/_media-section.scss +14 -0
- package/selfcontained/scss/components/_media-text.scss +65 -0
- package/selfcontained/scss/components/_megamenu.scss +103 -0
- package/selfcontained/scss/components/_modal.scss +252 -0
- package/selfcontained/scss/components/_navigation-qsm.scss +95 -0
- package/selfcontained/scss/components/_navigation.scss +239 -0
- package/selfcontained/scss/components/_page.scss +8 -0
- package/selfcontained/scss/components/_pager.scss +17 -0
- package/selfcontained/scss/components/_panel.scss +41 -0
- package/selfcontained/scss/components/_placeholder-message.scss +12 -0
- package/selfcontained/scss/components/_pricing-summary.scss +72 -0
- package/selfcontained/scss/components/_pricing.scss +361 -0
- package/selfcontained/scss/components/_product-info.scss +82 -0
- package/selfcontained/scss/components/_product-intro.scss +139 -0
- package/selfcontained/scss/components/_product-offer-request.scss +8 -0
- package/selfcontained/scss/components/_productcard-grid.scss +111 -0
- package/selfcontained/scss/components/_productcard.scss +889 -0
- package/selfcontained/scss/components/_qsm.scss +427 -0
- package/selfcontained/scss/components/_quote.scss +61 -0
- package/selfcontained/scss/components/_radiobutton.scss +167 -0
- package/selfcontained/scss/components/_range-filter.scss +12 -0
- package/selfcontained/scss/components/_rating.scss +36 -0
- package/selfcontained/scss/components/_room-lines.scss +537 -0
- package/selfcontained/scss/components/_row.scss +3 -0
- package/selfcontained/scss/components/_schedule.scss +209 -0
- package/selfcontained/scss/components/_section.scss +30 -0
- package/selfcontained/scss/components/_select-wrapper.scss +53 -0
- package/selfcontained/scss/components/_social-items.scss +56 -0
- package/selfcontained/scss/components/_spinner.scss +29 -0
- package/selfcontained/scss/components/_step-indicators.scss +155 -0
- package/selfcontained/scss/components/_sticky-bar.scss +40 -0
- package/selfcontained/scss/components/_table.scss +81 -0
- package/selfcontained/scss/components/_teamcard.scss +117 -0
- package/selfcontained/scss/components/_text-highlight.scss +26 -0
- package/selfcontained/scss/components/_three-column.scss +51 -0
- package/selfcontained/scss/components/_tide-booking.scss +20 -0
- package/selfcontained/scss/components/_toggle-buttons.scss +8 -0
- package/selfcontained/scss/components/_tree.scss +538 -0
- package/selfcontained/scss/components/_two-column.scss +52 -0
- package/selfcontained/scss/components/_typeahead.scss +329 -0
- package/selfcontained/scss/components/_usp-grid.scss +75 -0
- package/selfcontained/scss/components/_white-labels.scss +15 -0
- package/selfcontained/scss/main.scss +112 -0
- package/selfcontained/tsconfig.json +10 -0
- package/selfcontained/webpack.config.js +41 -0
- package/src/booking-wizard/api-settings-slice.ts +31 -0
- package/src/booking-wizard/components/loader.tsx +12 -0
- package/src/booking-wizard/components/step-route.tsx +27 -27
- package/src/booking-wizard/features/booking/api.ts +34 -31
- package/src/booking-wizard/features/booking/booking-self-contained.tsx +300 -0
- package/src/booking-wizard/features/booking/booking-slice.ts +418 -407
- package/src/booking-wizard/features/booking/booking.tsx +306 -306
- package/src/booking-wizard/features/booking/constants.ts +11 -0
- package/src/booking-wizard/features/booking/selectors.ts +354 -348
- package/src/booking-wizard/features/confirmation/confirmation.tsx +92 -84
- package/src/booking-wizard/features/error/error.tsx +76 -73
- package/src/booking-wizard/features/price-details/price-details-api.ts +24 -22
- package/src/booking-wizard/features/price-details/price-details-slice.ts +151 -151
- package/src/booking-wizard/features/product-options/option-item.tsx +321 -321
- package/src/booking-wizard/features/product-options/option-room.tsx +316 -316
- package/src/booking-wizard/features/product-options/options-form.tsx +355 -350
- package/src/booking-wizard/features/sidebar/sidebar-util.ts +177 -175
- package/src/booking-wizard/features/summary/summary.tsx +632 -613
- package/src/booking-wizard/features/travelers-form/travelers-form.tsx +755 -767
- package/src/booking-wizard/store.ts +31 -29
- package/src/booking-wizard/translations/nl-BE.json +157 -157
- package/src/booking-wizard/types.ts +142 -138
- package/src/booking-wizard/utils/tide-api-utils.ts +34 -33
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface IconProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
declare const Icon: React.FC<IconProps>;
|
|
7
|
-
export default Icon;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IconProps {
|
|
3
|
+
name: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const Icon: React.FC<IconProps>;
|
|
7
|
+
export default Icon;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface LabeledInputProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
declare const LabeledInput: React.FC<LabeledInputProps>;
|
|
18
|
-
export default LabeledInput;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface LabeledInputProps {
|
|
3
|
+
name: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
defaultValue?: string | number;
|
|
8
|
+
min?: string | number;
|
|
9
|
+
max?: string | number;
|
|
10
|
+
label?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
hasError?: boolean;
|
|
13
|
+
extraClassName?: string;
|
|
14
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
15
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
16
|
+
}
|
|
17
|
+
declare const LabeledInput: React.FC<LabeledInputProps>;
|
|
18
|
+
export default LabeledInput;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface LabeledSelectProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
declare const LabeledSelect: React.FC<LabeledSelectProps>;
|
|
21
|
-
export default LabeledSelect;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface LabeledSelectProps {
|
|
3
|
+
name: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
defaultValue?: string | number;
|
|
8
|
+
label?: string;
|
|
9
|
+
hasError?: boolean;
|
|
10
|
+
extraClassName?: string;
|
|
11
|
+
extraDropdownClassName?: string;
|
|
12
|
+
options?: {
|
|
13
|
+
key: string;
|
|
14
|
+
value: string | number | undefined;
|
|
15
|
+
label: string;
|
|
16
|
+
}[];
|
|
17
|
+
onChange?: React.ChangeEventHandler<HTMLSelectElement>;
|
|
18
|
+
onBlur?: React.FocusEventHandler<HTMLSelectElement>;
|
|
19
|
+
}
|
|
20
|
+
declare const LabeledSelect: React.FC<LabeledSelectProps>;
|
|
21
|
+
export default LabeledSelect;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface MessageProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
declare const Message: React.FC<MessageProps>;
|
|
9
|
-
export default Message;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface MessageProps {
|
|
3
|
+
type: "error" | "success";
|
|
4
|
+
title: string;
|
|
5
|
+
actionComponent?: JSX.Element;
|
|
6
|
+
children?: JSX.Element | JSX.Element[];
|
|
7
|
+
}
|
|
8
|
+
declare const Message: React.FC<MessageProps>;
|
|
9
|
+
export default Message;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ProductCardProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
declare const ProductCard: React.FC<ProductCardProps>;
|
|
8
|
-
export default ProductCard;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ProductCardProps {
|
|
3
|
+
productName: string;
|
|
4
|
+
thumbnailUrl?: string;
|
|
5
|
+
handleToggleClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const ProductCard: React.FC<ProductCardProps>;
|
|
8
|
+
export default ProductCard;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface RatingProps {
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare const Rating: React.FC<RatingProps>;
|
|
6
|
-
export default Rating;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface RatingProps {
|
|
3
|
+
rating: number;
|
|
4
|
+
}
|
|
5
|
+
declare const Rating: React.FC<RatingProps>;
|
|
6
|
+
export default Rating;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface StepIndicatorsProps {
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare const StepIndicators: React.FC<StepIndicatorsProps>;
|
|
6
|
-
export default StepIndicators;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface StepIndicatorsProps {
|
|
3
|
+
currentStep: number;
|
|
4
|
+
}
|
|
5
|
+
declare const StepIndicators: React.FC<StepIndicatorsProps>;
|
|
6
|
+
export default StepIndicators;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface StepRoute {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
declare const StepRoute: React.FC<StepRoute>;
|
|
9
|
-
export default StepRoute;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface StepRoute {
|
|
3
|
+
path: string;
|
|
4
|
+
number: number;
|
|
5
|
+
title: string;
|
|
6
|
+
component: JSX.Element;
|
|
7
|
+
}
|
|
8
|
+
declare const StepRoute: React.FC<StepRoute>;
|
|
9
|
+
export default StepRoute;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "@qite/tide-client/build/types";
|
|
8
|
-
declare const packageApi: {
|
|
9
|
-
fetchDetails: (
|
|
10
|
-
request: BookingPackageRequest<BookingPackageDetailsRequest>,
|
|
11
|
-
signal: AbortSignal,
|
|
12
|
-
languageCode?: string
|
|
13
|
-
) => Promise<TideResponse<BookingPackage>>;
|
|
14
|
-
fetchAgents: (signal: AbortSignal) => Promise<BookingTravelAgent[]>;
|
|
15
|
-
};
|
|
16
|
-
export default packageApi;
|
|
1
|
+
import { BookingPackageRequest, BookingPackageDetailsRequest, BookingPackage, BookingTravelAgent, TideResponse } from "@qite/tide-client/build/types";
|
|
2
|
+
declare const packageApi: {
|
|
3
|
+
fetchDetails: (request: BookingPackageRequest<BookingPackageDetailsRequest>, signal: AbortSignal, languageCode?: string) => Promise<TideResponse<BookingPackage>>;
|
|
4
|
+
fetchAgents: (signal: AbortSignal) => Promise<BookingTravelAgent[]>;
|
|
5
|
+
};
|
|
6
|
+
export default packageApi;
|
|
@@ -1,138 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export
|
|
37
|
-
void,
|
|
38
|
-
void,
|
|
39
|
-
{
|
|
40
|
-
state?: unknown;
|
|
41
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
42
|
-
extra?: unknown;
|
|
43
|
-
rejectValue?: unknown;
|
|
44
|
-
serializedErrorType?: unknown;
|
|
45
|
-
pendingMeta?: unknown;
|
|
46
|
-
fulfilledMeta?: unknown;
|
|
47
|
-
rejectedMeta?: unknown;
|
|
48
|
-
}
|
|
49
|
-
>;
|
|
50
|
-
export declare const setOfficeId: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
51
|
-
number,
|
|
52
|
-
"booking/setOfficeId"
|
|
53
|
-
>,
|
|
54
|
-
setLanguageCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
55
|
-
string,
|
|
56
|
-
"booking/setLanguageCode"
|
|
57
|
-
>,
|
|
58
|
-
setBookingOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
59
|
-
BookingOptions,
|
|
60
|
-
"booking/setBookingOptions"
|
|
61
|
-
>,
|
|
62
|
-
setBookingType: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
63
|
-
string,
|
|
64
|
-
"booking/setBookingType"
|
|
65
|
-
>,
|
|
66
|
-
setProductAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
67
|
-
ProductAttributes,
|
|
68
|
-
"booking/setProductAttributes"
|
|
69
|
-
>,
|
|
70
|
-
setBookingAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
71
|
-
BookingAttributes,
|
|
72
|
-
"booking/setBookingAttributes"
|
|
73
|
-
>,
|
|
74
|
-
setCalculateDeposit: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
75
|
-
boolean,
|
|
76
|
-
"booking/setCalculateDeposit"
|
|
77
|
-
>,
|
|
78
|
-
setBookingNumber: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
79
|
-
string,
|
|
80
|
-
"booking/setBookingNumber"
|
|
81
|
-
>,
|
|
82
|
-
setIsRetry: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
83
|
-
boolean,
|
|
84
|
-
"booking/setIsRetry"
|
|
85
|
-
>,
|
|
86
|
-
setFetchingPackage: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
87
|
-
boolean,
|
|
88
|
-
"booking/setFetchingPackage"
|
|
89
|
-
>,
|
|
90
|
-
setPackage: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
91
|
-
BookingPackage,
|
|
92
|
-
"booking/setPackage"
|
|
93
|
-
>,
|
|
94
|
-
setPackageRooms: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
95
|
-
BookingPackageRoom[],
|
|
96
|
-
"booking/setPackageRooms"
|
|
97
|
-
>,
|
|
98
|
-
setPackageOptionPax: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
99
|
-
BookingOptionPax[],
|
|
100
|
-
"booking/setPackageOptionPax"
|
|
101
|
-
>,
|
|
102
|
-
setPackageOptionUnits: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
103
|
-
BookingOptionUnit[],
|
|
104
|
-
"booking/setPackageOptionUnits"
|
|
105
|
-
>,
|
|
106
|
-
setPackageGroups: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
107
|
-
BookingOptionGroup<PerBookingPackageOption>[],
|
|
108
|
-
"booking/setPackageGroups"
|
|
109
|
-
>,
|
|
110
|
-
setSkipPayment: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
111
|
-
boolean,
|
|
112
|
-
"booking/setSkipPayment"
|
|
113
|
-
>,
|
|
114
|
-
setGeneratePaymentUrl: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
115
|
-
boolean,
|
|
116
|
-
"booking/setGeneratePaymentUrl"
|
|
117
|
-
>,
|
|
118
|
-
setTagIds: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<
|
|
119
|
-
number[] | undefined,
|
|
120
|
-
"booking/setTagIds"
|
|
121
|
-
>,
|
|
122
|
-
setAgentAdressId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<
|
|
123
|
-
number | undefined,
|
|
124
|
-
"booking/setAgentAdressId"
|
|
125
|
-
>,
|
|
126
|
-
setBookingRemarks: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
127
|
-
string,
|
|
128
|
-
"booking/setBookingRemarks"
|
|
129
|
-
>,
|
|
130
|
-
setVoucherCodes: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
131
|
-
string[],
|
|
132
|
-
"booking/setVoucherCodes"
|
|
133
|
-
>;
|
|
134
|
-
declare const _default: import("redux").Reducer<
|
|
135
|
-
BookingState,
|
|
136
|
-
import("redux").AnyAction
|
|
137
|
-
>;
|
|
138
|
-
export default _default;
|
|
1
|
+
import { BookingAttributes, BookingOptions, ProductAttributes } from "../../types";
|
|
2
|
+
import { BookingOptionGroup, BookingOptionPax, BookingOptionUnit, BookingPackage, BookingPackageRoom, BookingTravelAgent, PerBookingPackageOption } from "@qite/tide-client/build/types";
|
|
3
|
+
export interface BookingState {
|
|
4
|
+
officeId: number;
|
|
5
|
+
languageCode: string;
|
|
6
|
+
productAttributes?: ProductAttributes;
|
|
7
|
+
bookingAttributes?: BookingAttributes;
|
|
8
|
+
calculateDeposit: boolean;
|
|
9
|
+
bookingNumber?: string;
|
|
10
|
+
isRetry: boolean;
|
|
11
|
+
package?: BookingPackage;
|
|
12
|
+
agents?: BookingTravelAgent[];
|
|
13
|
+
isBusy: boolean;
|
|
14
|
+
skipPaymentWithAgent: boolean;
|
|
15
|
+
generatePaymentUrl: boolean;
|
|
16
|
+
isUnavailable?: boolean;
|
|
17
|
+
tagIds?: number[];
|
|
18
|
+
agentAdressId?: number;
|
|
19
|
+
remarks?: string;
|
|
20
|
+
voucherCodes?: string[];
|
|
21
|
+
bookingOptions: BookingOptions;
|
|
22
|
+
bookingType: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const fetchPackage: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
25
|
+
state?: unknown;
|
|
26
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
27
|
+
extra?: unknown;
|
|
28
|
+
rejectValue?: unknown;
|
|
29
|
+
serializedErrorType?: unknown;
|
|
30
|
+
pendingMeta?: unknown;
|
|
31
|
+
fulfilledMeta?: unknown;
|
|
32
|
+
rejectedMeta?: unknown;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const setOfficeId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "booking/setOfficeId">, setLanguageCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "booking/setLanguageCode">, setBookingOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingOptions, "booking/setBookingOptions">, setBookingType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "booking/setBookingType">, setProductAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProductAttributes, "booking/setProductAttributes">, setBookingAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingAttributes, "booking/setBookingAttributes">, setCalculateDeposit: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "booking/setCalculateDeposit">, setBookingNumber: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "booking/setBookingNumber">, setIsRetry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "booking/setIsRetry">, setFetchingPackage: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "booking/setFetchingPackage">, setPackage: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingPackage, "booking/setPackage">, setPackageRooms: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingPackageRoom[], "booking/setPackageRooms">, setPackageOptionPax: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingOptionPax[], "booking/setPackageOptionPax">, setPackageOptionUnits: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingOptionUnit[], "booking/setPackageOptionUnits">, setPackageGroups: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingOptionGroup<PerBookingPackageOption>[], "booking/setPackageGroups">, setSkipPayment: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "booking/setSkipPayment">, setGeneratePaymentUrl: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "booking/setGeneratePaymentUrl">, setTagIds: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number[] | undefined, "booking/setTagIds">, setAgentAdressId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number | undefined, "booking/setAgentAdressId">, setBookingRemarks: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "booking/setBookingRemarks">, setVoucherCodes: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "booking/setVoucherCodes">;
|
|
35
|
+
declare const _default: import("redux").Reducer<BookingState, import("redux").AnyAction>;
|
|
36
|
+
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface BookingProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
declare const Booking: React.FC<BookingProps>;
|
|
8
|
-
export default Booking;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface BookingProps {
|
|
3
|
+
productCode: string;
|
|
4
|
+
productName: string;
|
|
5
|
+
thumbnailUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const Booking: React.FC<BookingProps>;
|
|
8
|
+
export default Booking;
|