@qite/tide-booking-component 1.2.2 → 1.2.3
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/index.js +17 -8
- package/build/build-esm/index.js +17 -8
- package/package.json +1 -1
- package/src/booking-product/components/product.tsx +1 -1
- package/src/booking-wizard/features/flight-options/flight-filter.tsx +2 -2
- package/src/booking-wizard/features/flight-options/flight-utils.ts +1 -1
- package/src/shared/translations/fr-BE.json +4 -1
- package/src/shared/translations/nl-BE.json +4 -1
package/build/build-cjs/index.js
CHANGED
|
@@ -148,7 +148,10 @@ var FLIGHTS_FORM$1 = {
|
|
|
148
148
|
NIGHT_DEPARTURE: "Nuit (00:00 - 05:00)",
|
|
149
149
|
MORNING_DEPARTURE: "Matin (05:00 - 12:00)",
|
|
150
150
|
AFTERNOON_DEPARTURE: "Après-midi (12:00 - 18:00)",
|
|
151
|
-
EVENING_DEPARTURE: "Soir (18:00 - 00:00)"
|
|
151
|
+
EVENING_DEPARTURE: "Soir (18:00 - 00:00)",
|
|
152
|
+
FLIGHTS_FOUND_1: "",
|
|
153
|
+
FLIGHTS_FOUND_2: "vols",
|
|
154
|
+
FLIGHTS_FOUND_3: "trouvés"
|
|
152
155
|
};
|
|
153
156
|
var PRODUCT$1 = {
|
|
154
157
|
STAY_INCLUDED: "Séjour inclus",
|
|
@@ -391,7 +394,10 @@ var FLIGHTS_FORM = {
|
|
|
391
394
|
NIGHT_DEPARTURE: "Nacht (00:00 - 05:00)",
|
|
392
395
|
MORNING_DEPARTURE: "Ochtend (05:00 - 12:00)",
|
|
393
396
|
AFTERNOON_DEPARTURE: "Namiddag (12:00 - 18:00)",
|
|
394
|
-
EVENING_DEPARTURE: "Avond (18:00 - 00:00)"
|
|
397
|
+
EVENING_DEPARTURE: "Avond (18:00 - 00:00)",
|
|
398
|
+
FLIGHTS_FOUND_1: "Er zijn",
|
|
399
|
+
FLIGHTS_FOUND_2: "vluchten",
|
|
400
|
+
FLIGHTS_FOUND_3: "gevonden"
|
|
395
401
|
};
|
|
396
402
|
var PRODUCT = {
|
|
397
403
|
STAY_INCLUDED: "Inclusief verblijf",
|
|
@@ -9330,7 +9336,7 @@ var Product = function (_a) {
|
|
|
9330
9336
|
params["catalog"] = catalogueId.toString();
|
|
9331
9337
|
if (addProductToQuery) {
|
|
9332
9338
|
params["productCode"] = productCode;
|
|
9333
|
-
params["productName"] =
|
|
9339
|
+
params["productName"] = encodeURI(packageProductName);
|
|
9334
9340
|
}
|
|
9335
9341
|
var path = window.location.pathname;
|
|
9336
9342
|
var paramString = Object.keys(params)
|
|
@@ -10905,7 +10911,7 @@ var filterGroupedFlights = function (groups, filterOptions) {
|
|
|
10905
10911
|
filteredGroups = filteredGroups.filter(function (x) { return selectedAirlineCodes_2.some(function (y) { return y.value === x.outward.departureAirportCode; }); });
|
|
10906
10912
|
}
|
|
10907
10913
|
if (filterOptions.numberOfStops.some(function (x) { return x.isSelected; })) {
|
|
10908
|
-
var selectedNumberOfStops_1 = filterOptions.
|
|
10914
|
+
var selectedNumberOfStops_1 = filterOptions.numberOfStops.filter(function (x) { return x.isSelected; });
|
|
10909
10915
|
filteredGroups = filteredGroups.filter(function (x) { return selectedNumberOfStops_1.some(function (y) { return parseInt(y.value) === (x.outward.flightLines.length - 1); }); });
|
|
10910
10916
|
}
|
|
10911
10917
|
filteredGroups = filterGroupedFlightByDirection(filteredGroups, true, filterOptions.outward);
|
|
@@ -11098,7 +11104,7 @@ var FlightFilter = function (_a) {
|
|
|
11098
11104
|
applyFilter(updatedFilterOptions);
|
|
11099
11105
|
};
|
|
11100
11106
|
var updateStopsFilter = function (count) {
|
|
11101
|
-
var updatedFilterOptions = __assign(__assign({}, filterOptions), { numberOfStops: filterOptions.
|
|
11107
|
+
var updatedFilterOptions = __assign(__assign({}, filterOptions), { numberOfStops: filterOptions.numberOfStops.map(function (x) {
|
|
11102
11108
|
if (x.value !== count)
|
|
11103
11109
|
return x;
|
|
11104
11110
|
return __assign(__assign({}, x), { isSelected: !x.isSelected });
|
|
@@ -11147,11 +11153,14 @@ var FlightFilter = function (_a) {
|
|
|
11147
11153
|
React__default["default"].createElement("div", { className: "flight__filter__header__title" },
|
|
11148
11154
|
React__default["default"].createElement("h3", null, translations.FLIGHTS_FORM.FILTER_OPTIONS),
|
|
11149
11155
|
React__default["default"].createElement("p", null,
|
|
11150
|
-
|
|
11156
|
+
translations.FLIGHTS_FORM.FLIGHTS_FOUND_1,
|
|
11157
|
+
" ",
|
|
11151
11158
|
React__default["default"].createElement("strong", null,
|
|
11152
11159
|
resultCount,
|
|
11153
|
-
"
|
|
11154
|
-
|
|
11160
|
+
" ",
|
|
11161
|
+
translations.FLIGHTS_FORM.FLIGHTS_FOUND_2),
|
|
11162
|
+
" ",
|
|
11163
|
+
translations.FLIGHTS_FORM.FLIGHTS_FOUND_3))),
|
|
11155
11164
|
React__default["default"].createElement("div", { className: "flight__filter__body" },
|
|
11156
11165
|
React__default["default"].createElement("div", { className: "flight__filter__group" },
|
|
11157
11166
|
React__default["default"].createElement("div", { className: "flight__filter__group__title" }, translations.FLIGHTS_FORM.AIRLINES),
|
package/build/build-esm/index.js
CHANGED
|
@@ -137,7 +137,10 @@ var FLIGHTS_FORM$1 = {
|
|
|
137
137
|
NIGHT_DEPARTURE: "Nuit (00:00 - 05:00)",
|
|
138
138
|
MORNING_DEPARTURE: "Matin (05:00 - 12:00)",
|
|
139
139
|
AFTERNOON_DEPARTURE: "Après-midi (12:00 - 18:00)",
|
|
140
|
-
EVENING_DEPARTURE: "Soir (18:00 - 00:00)"
|
|
140
|
+
EVENING_DEPARTURE: "Soir (18:00 - 00:00)",
|
|
141
|
+
FLIGHTS_FOUND_1: "",
|
|
142
|
+
FLIGHTS_FOUND_2: "vols",
|
|
143
|
+
FLIGHTS_FOUND_3: "trouvés"
|
|
141
144
|
};
|
|
142
145
|
var PRODUCT$1 = {
|
|
143
146
|
STAY_INCLUDED: "Séjour inclus",
|
|
@@ -380,7 +383,10 @@ var FLIGHTS_FORM = {
|
|
|
380
383
|
NIGHT_DEPARTURE: "Nacht (00:00 - 05:00)",
|
|
381
384
|
MORNING_DEPARTURE: "Ochtend (05:00 - 12:00)",
|
|
382
385
|
AFTERNOON_DEPARTURE: "Namiddag (12:00 - 18:00)",
|
|
383
|
-
EVENING_DEPARTURE: "Avond (18:00 - 00:00)"
|
|
386
|
+
EVENING_DEPARTURE: "Avond (18:00 - 00:00)",
|
|
387
|
+
FLIGHTS_FOUND_1: "Er zijn",
|
|
388
|
+
FLIGHTS_FOUND_2: "vluchten",
|
|
389
|
+
FLIGHTS_FOUND_3: "gevonden"
|
|
384
390
|
};
|
|
385
391
|
var PRODUCT = {
|
|
386
392
|
STAY_INCLUDED: "Inclusief verblijf",
|
|
@@ -9319,7 +9325,7 @@ var Product = function (_a) {
|
|
|
9319
9325
|
params["catalog"] = catalogueId.toString();
|
|
9320
9326
|
if (addProductToQuery) {
|
|
9321
9327
|
params["productCode"] = productCode;
|
|
9322
|
-
params["productName"] =
|
|
9328
|
+
params["productName"] = encodeURI(packageProductName);
|
|
9323
9329
|
}
|
|
9324
9330
|
var path = window.location.pathname;
|
|
9325
9331
|
var paramString = Object.keys(params)
|
|
@@ -10894,7 +10900,7 @@ var filterGroupedFlights = function (groups, filterOptions) {
|
|
|
10894
10900
|
filteredGroups = filteredGroups.filter(function (x) { return selectedAirlineCodes_2.some(function (y) { return y.value === x.outward.departureAirportCode; }); });
|
|
10895
10901
|
}
|
|
10896
10902
|
if (filterOptions.numberOfStops.some(function (x) { return x.isSelected; })) {
|
|
10897
|
-
var selectedNumberOfStops_1 = filterOptions.
|
|
10903
|
+
var selectedNumberOfStops_1 = filterOptions.numberOfStops.filter(function (x) { return x.isSelected; });
|
|
10898
10904
|
filteredGroups = filteredGroups.filter(function (x) { return selectedNumberOfStops_1.some(function (y) { return parseInt(y.value) === (x.outward.flightLines.length - 1); }); });
|
|
10899
10905
|
}
|
|
10900
10906
|
filteredGroups = filterGroupedFlightByDirection(filteredGroups, true, filterOptions.outward);
|
|
@@ -11087,7 +11093,7 @@ var FlightFilter = function (_a) {
|
|
|
11087
11093
|
applyFilter(updatedFilterOptions);
|
|
11088
11094
|
};
|
|
11089
11095
|
var updateStopsFilter = function (count) {
|
|
11090
|
-
var updatedFilterOptions = __assign(__assign({}, filterOptions), { numberOfStops: filterOptions.
|
|
11096
|
+
var updatedFilterOptions = __assign(__assign({}, filterOptions), { numberOfStops: filterOptions.numberOfStops.map(function (x) {
|
|
11091
11097
|
if (x.value !== count)
|
|
11092
11098
|
return x;
|
|
11093
11099
|
return __assign(__assign({}, x), { isSelected: !x.isSelected });
|
|
@@ -11136,11 +11142,14 @@ var FlightFilter = function (_a) {
|
|
|
11136
11142
|
React.createElement("div", { className: "flight__filter__header__title" },
|
|
11137
11143
|
React.createElement("h3", null, translations.FLIGHTS_FORM.FILTER_OPTIONS),
|
|
11138
11144
|
React.createElement("p", null,
|
|
11139
|
-
|
|
11145
|
+
translations.FLIGHTS_FORM.FLIGHTS_FOUND_1,
|
|
11146
|
+
" ",
|
|
11140
11147
|
React.createElement("strong", null,
|
|
11141
11148
|
resultCount,
|
|
11142
|
-
"
|
|
11143
|
-
|
|
11149
|
+
" ",
|
|
11150
|
+
translations.FLIGHTS_FORM.FLIGHTS_FOUND_2),
|
|
11151
|
+
" ",
|
|
11152
|
+
translations.FLIGHTS_FORM.FLIGHTS_FOUND_3))),
|
|
11144
11153
|
React.createElement("div", { className: "flight__filter__body" },
|
|
11145
11154
|
React.createElement("div", { className: "flight__filter__group" },
|
|
11146
11155
|
React.createElement("div", { className: "flight__filter__group__title" }, translations.FLIGHTS_FORM.AIRLINES),
|
package/package.json
CHANGED
|
@@ -156,7 +156,7 @@ const Product: React.FC<ProductProps> = ({
|
|
|
156
156
|
|
|
157
157
|
if (addProductToQuery) {
|
|
158
158
|
params["productCode"] = productCode;
|
|
159
|
-
params["productName"] =
|
|
159
|
+
params["productName"] = encodeURI(packageProductName)!;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
const path = window.location.pathname;
|
|
@@ -58,7 +58,7 @@ const FlightFilter: React.FC<FlightFilterProps> = ({
|
|
|
58
58
|
const updateStopsFilter = (count: string) => {
|
|
59
59
|
const updatedFilterOptions = {
|
|
60
60
|
...filterOptions,
|
|
61
|
-
numberOfStops: filterOptions.
|
|
61
|
+
numberOfStops: filterOptions.numberOfStops.map(x => {
|
|
62
62
|
if (x.value !== count) return x;
|
|
63
63
|
|
|
64
64
|
return {
|
|
@@ -185,7 +185,7 @@ const FlightFilter: React.FC<FlightFilterProps> = ({
|
|
|
185
185
|
<div className="flight__filter__header">
|
|
186
186
|
<div className="flight__filter__header__title">
|
|
187
187
|
<h3>{translations.FLIGHTS_FORM.FILTER_OPTIONS}</h3>
|
|
188
|
-
<p>
|
|
188
|
+
<p>{translations.FLIGHTS_FORM.FLIGHTS_FOUND_1} <strong>{resultCount} {translations.FLIGHTS_FORM.FLIGHTS_FOUND_2}</strong> {translations.FLIGHTS_FORM.FLIGHTS_FOUND_3}</p>
|
|
189
189
|
</div>
|
|
190
190
|
</div>
|
|
191
191
|
<div className="flight__filter__body">
|
|
@@ -202,7 +202,7 @@ export const filterGroupedFlights = (groups: GroupedFlights[], filterOptions: Fl
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
if (filterOptions.numberOfStops.some(x => x.isSelected)) {
|
|
205
|
-
const selectedNumberOfStops = filterOptions.
|
|
205
|
+
const selectedNumberOfStops = filterOptions.numberOfStops.filter(x => x.isSelected);
|
|
206
206
|
filteredGroups = filteredGroups.filter(x => selectedNumberOfStops.some(y => parseInt(y.value) === (x.outward.flightLines.length - 1)));
|
|
207
207
|
}
|
|
208
208
|
|
|
@@ -45,7 +45,10 @@
|
|
|
45
45
|
"NIGHT_DEPARTURE": "Nuit (00:00 - 05:00)",
|
|
46
46
|
"MORNING_DEPARTURE": "Matin (05:00 - 12:00)",
|
|
47
47
|
"AFTERNOON_DEPARTURE": "Après-midi (12:00 - 18:00)",
|
|
48
|
-
"EVENING_DEPARTURE": "Soir (18:00 - 00:00)"
|
|
48
|
+
"EVENING_DEPARTURE": "Soir (18:00 - 00:00)",
|
|
49
|
+
"FLIGHTS_FOUND_1": "",
|
|
50
|
+
"FLIGHTS_FOUND_2": "vols",
|
|
51
|
+
"FLIGHTS_FOUND_3": "trouvés"
|
|
49
52
|
},
|
|
50
53
|
"PRODUCT": {
|
|
51
54
|
"STAY_INCLUDED": "Séjour inclus",
|
|
@@ -45,7 +45,10 @@
|
|
|
45
45
|
"NIGHT_DEPARTURE": "Nacht (00:00 - 05:00)",
|
|
46
46
|
"MORNING_DEPARTURE": "Ochtend (05:00 - 12:00)",
|
|
47
47
|
"AFTERNOON_DEPARTURE": "Namiddag (12:00 - 18:00)",
|
|
48
|
-
"EVENING_DEPARTURE": "Avond (18:00 - 00:00)"
|
|
48
|
+
"EVENING_DEPARTURE": "Avond (18:00 - 00:00)",
|
|
49
|
+
"FLIGHTS_FOUND_1": "Er zijn",
|
|
50
|
+
"FLIGHTS_FOUND_2": "vluchten",
|
|
51
|
+
"FLIGHTS_FOUND_3": "gevonden"
|
|
49
52
|
},
|
|
50
53
|
"PRODUCT": {
|
|
51
54
|
"STAY_INCLUDED": "Inclusief verblijf",
|