@qite/tide-booking-component 1.4.118 → 1.4.120
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 +16 -12
- package/build/build-cjs/src/shared/utils/localization-util.d.ts +2 -0
- package/build/build-esm/index.js +16 -12
- package/build/build-esm/src/shared/utils/localization-util.d.ts +2 -0
- package/package.json +1 -1
- package/src/search-results/components/flight/flight-selection/independent-flight-selection.tsx +4 -0
- package/src/search-results/components/search-results-container/search-results-container.tsx +1 -1
- package/src/shared/utils/localization-util.ts +5 -4
- package/styles/components/_booking.scss +18 -12
- package/styles/components/_form.scss +62 -3
package/build/build-cjs/index.js
CHANGED
|
@@ -7142,16 +7142,15 @@ var dateToDateStruct = function (date) {
|
|
|
7142
7142
|
};
|
|
7143
7143
|
};
|
|
7144
7144
|
var timeFromDateTime = function (dateTime) {
|
|
7145
|
+
var _a, _b;
|
|
7145
7146
|
if (!dateTime) {
|
|
7146
7147
|
return '';
|
|
7147
7148
|
}
|
|
7148
|
-
var
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
.concat(minutes < 10 ? '0' : '')
|
|
7154
|
-
.concat(minutes);
|
|
7149
|
+
var value = dateTime;
|
|
7150
|
+
if (typeof value === 'string') {
|
|
7151
|
+
return (_b = (_a = value.match(/T(\d{2}:\d{2})/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '';
|
|
7152
|
+
}
|
|
7153
|
+
return ''.concat(value.getHours().toString().padStart(2, '0'), ':').concat(value.getMinutes().toString().padStart(2, '0'));
|
|
7155
7154
|
};
|
|
7156
7155
|
var longFormatDate = function (dateTime, language) {
|
|
7157
7156
|
if (!dateTime) {
|
|
@@ -44276,7 +44275,8 @@ var IndependentFlightSelection = function (_a) {
|
|
|
44276
44275
|
return setSelectedOutwardKey(null);
|
|
44277
44276
|
},
|
|
44278
44277
|
selectedGuid: selectedOutward.guid,
|
|
44279
|
-
isOutward: true
|
|
44278
|
+
isOutward: true,
|
|
44279
|
+
price: selectedOutward.price
|
|
44280
44280
|
})
|
|
44281
44281
|
: uniqueOutwardFlights.map(function (result) {
|
|
44282
44282
|
return React__default['default'].createElement(IndependentFlightOption, {
|
|
@@ -44286,7 +44286,8 @@ var IndependentFlightSelection = function (_a) {
|
|
|
44286
44286
|
return setSelectedOutwardKey(getFlightKey(result.outward.segments));
|
|
44287
44287
|
},
|
|
44288
44288
|
guid: result.guid,
|
|
44289
|
-
isOutward: true
|
|
44289
|
+
isOutward: true,
|
|
44290
|
+
price: result.price
|
|
44290
44291
|
});
|
|
44291
44292
|
})
|
|
44292
44293
|
),
|
|
@@ -44321,7 +44322,8 @@ var IndependentFlightSelection = function (_a) {
|
|
|
44321
44322
|
item: selectedReturn.return,
|
|
44322
44323
|
guid: selectedReturn.guid,
|
|
44323
44324
|
selectedGuid: selectedReturn.guid,
|
|
44324
|
-
isOutward: false
|
|
44325
|
+
isOutward: false,
|
|
44326
|
+
price: selectedReturn.price
|
|
44325
44327
|
})
|
|
44326
44328
|
: uniqueReturnFlights.map(function (result) {
|
|
44327
44329
|
return React__default['default'].createElement(IndependentFlightOption, {
|
|
@@ -44331,7 +44333,8 @@ var IndependentFlightSelection = function (_a) {
|
|
|
44331
44333
|
return setSelectedReturnKey(getFlightKey(result.return.segments));
|
|
44332
44334
|
},
|
|
44333
44335
|
guid: result.guid,
|
|
44334
|
-
isOutward: false
|
|
44336
|
+
isOutward: false,
|
|
44337
|
+
price: result.price
|
|
44335
44338
|
});
|
|
44336
44339
|
})
|
|
44337
44340
|
)
|
|
@@ -49593,7 +49596,8 @@ var SearchResultsContainer = function (_a) {
|
|
|
49593
49596
|
translations.SRP.VIEW_BOOKING
|
|
49594
49597
|
)
|
|
49595
49598
|
),
|
|
49596
|
-
|
|
49599
|
+
context.searchConfiguration.qsmType !== build.PortalQsmType.AccommodationAndFlight &&
|
|
49600
|
+
sortByTypes &&
|
|
49597
49601
|
sortByTypes.length > 0 &&
|
|
49598
49602
|
React__default['default'].createElement(ItemPicker, {
|
|
49599
49603
|
items: sortByTypes,
|
package/build/build-esm/index.js
CHANGED
|
@@ -7174,16 +7174,15 @@ var dateToDateStruct = function (date) {
|
|
|
7174
7174
|
};
|
|
7175
7175
|
};
|
|
7176
7176
|
var timeFromDateTime = function (dateTime) {
|
|
7177
|
+
var _a, _b;
|
|
7177
7178
|
if (!dateTime) {
|
|
7178
7179
|
return '';
|
|
7179
7180
|
}
|
|
7180
|
-
var
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
.concat(minutes < 10 ? '0' : '')
|
|
7186
|
-
.concat(minutes);
|
|
7181
|
+
var value = dateTime;
|
|
7182
|
+
if (typeof value === 'string') {
|
|
7183
|
+
return (_b = (_a = value.match(/T(\d{2}:\d{2})/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '';
|
|
7184
|
+
}
|
|
7185
|
+
return ''.concat(value.getHours().toString().padStart(2, '0'), ':').concat(value.getMinutes().toString().padStart(2, '0'));
|
|
7187
7186
|
};
|
|
7188
7187
|
var longFormatDate = function (dateTime, language) {
|
|
7189
7188
|
if (!dateTime) {
|
|
@@ -44062,7 +44061,8 @@ var IndependentFlightSelection = function (_a) {
|
|
|
44062
44061
|
return setSelectedOutwardKey(null);
|
|
44063
44062
|
},
|
|
44064
44063
|
selectedGuid: selectedOutward.guid,
|
|
44065
|
-
isOutward: true
|
|
44064
|
+
isOutward: true,
|
|
44065
|
+
price: selectedOutward.price
|
|
44066
44066
|
})
|
|
44067
44067
|
: uniqueOutwardFlights.map(function (result) {
|
|
44068
44068
|
return React__default.createElement(IndependentFlightOption, {
|
|
@@ -44072,7 +44072,8 @@ var IndependentFlightSelection = function (_a) {
|
|
|
44072
44072
|
return setSelectedOutwardKey(getFlightKey(result.outward.segments));
|
|
44073
44073
|
},
|
|
44074
44074
|
guid: result.guid,
|
|
44075
|
-
isOutward: true
|
|
44075
|
+
isOutward: true,
|
|
44076
|
+
price: result.price
|
|
44076
44077
|
});
|
|
44077
44078
|
})
|
|
44078
44079
|
),
|
|
@@ -44101,7 +44102,8 @@ var IndependentFlightSelection = function (_a) {
|
|
|
44101
44102
|
item: selectedReturn.return,
|
|
44102
44103
|
guid: selectedReturn.guid,
|
|
44103
44104
|
selectedGuid: selectedReturn.guid,
|
|
44104
|
-
isOutward: false
|
|
44105
|
+
isOutward: false,
|
|
44106
|
+
price: selectedReturn.price
|
|
44105
44107
|
})
|
|
44106
44108
|
: uniqueReturnFlights.map(function (result) {
|
|
44107
44109
|
return React__default.createElement(IndependentFlightOption, {
|
|
@@ -44111,7 +44113,8 @@ var IndependentFlightSelection = function (_a) {
|
|
|
44111
44113
|
return setSelectedReturnKey(getFlightKey(result.return.segments));
|
|
44112
44114
|
},
|
|
44113
44115
|
guid: result.guid,
|
|
44114
|
-
isOutward: false
|
|
44116
|
+
isOutward: false,
|
|
44117
|
+
price: result.price
|
|
44115
44118
|
});
|
|
44116
44119
|
})
|
|
44117
44120
|
)
|
|
@@ -49355,7 +49358,8 @@ var SearchResultsContainer = function (_a) {
|
|
|
49355
49358
|
translations.SRP.VIEW_BOOKING
|
|
49356
49359
|
)
|
|
49357
49360
|
),
|
|
49358
|
-
|
|
49361
|
+
context.searchConfiguration.qsmType !== build.PortalQsmType.AccommodationAndFlight &&
|
|
49362
|
+
sortByTypes &&
|
|
49359
49363
|
sortByTypes.length > 0 &&
|
|
49360
49364
|
React__default.createElement(ItemPicker, {
|
|
49361
49365
|
items: sortByTypes,
|
package/package.json
CHANGED
package/src/search-results/components/flight/flight-selection/independent-flight-selection.tsx
CHANGED
|
@@ -125,6 +125,7 @@ const IndependentFlightSelection: React.FC<IndependentFlightSelectionProps> = ({
|
|
|
125
125
|
onSelect={() => setSelectedOutwardKey(null)}
|
|
126
126
|
selectedGuid={selectedOutward.guid}
|
|
127
127
|
isOutward={true}
|
|
128
|
+
price={selectedOutward.price}
|
|
128
129
|
/>
|
|
129
130
|
) : (
|
|
130
131
|
uniqueOutwardFlights.map((result) => (
|
|
@@ -134,6 +135,7 @@ const IndependentFlightSelection: React.FC<IndependentFlightSelectionProps> = ({
|
|
|
134
135
|
onSelect={() => setSelectedOutwardKey(getFlightKey(result.outward.segments))}
|
|
135
136
|
guid={result.guid}
|
|
136
137
|
isOutward={true}
|
|
138
|
+
price={result.price}
|
|
137
139
|
/>
|
|
138
140
|
))
|
|
139
141
|
)}
|
|
@@ -160,6 +162,7 @@ const IndependentFlightSelection: React.FC<IndependentFlightSelectionProps> = ({
|
|
|
160
162
|
guid={selectedReturn.guid}
|
|
161
163
|
selectedGuid={selectedReturn.guid}
|
|
162
164
|
isOutward={false}
|
|
165
|
+
price={selectedReturn.price}
|
|
163
166
|
/>
|
|
164
167
|
) : (
|
|
165
168
|
uniqueReturnFlights.map((result) => (
|
|
@@ -169,6 +172,7 @@ const IndependentFlightSelection: React.FC<IndependentFlightSelectionProps> = ({
|
|
|
169
172
|
onSelect={() => setSelectedReturnKey(getFlightKey(result.return.segments))}
|
|
170
173
|
guid={result.guid}
|
|
171
174
|
isOutward={false}
|
|
175
|
+
price={result.price}
|
|
172
176
|
/>
|
|
173
177
|
))
|
|
174
178
|
)}
|
|
@@ -1554,7 +1554,7 @@ const SearchResultsContainer: React.FC<SearchResultsContainerProps> = ({ onBooki
|
|
|
1554
1554
|
</div>
|
|
1555
1555
|
)}
|
|
1556
1556
|
</div>
|
|
1557
|
-
{sortByTypes && sortByTypes.length > 0 && (
|
|
1557
|
+
{context.searchConfiguration.qsmType !== PortalQsmType.AccommodationAndFlight && sortByTypes && sortByTypes.length > 0 && (
|
|
1558
1558
|
<ItemPicker
|
|
1559
1559
|
items={sortByTypes}
|
|
1560
1560
|
selection={selectedSortType?.label || undefined}
|
|
@@ -189,12 +189,13 @@ export const timeFromDateTime = (dateTime: Date | undefined): string => {
|
|
|
189
189
|
return '';
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
const
|
|
192
|
+
const value = dateTime as Date | string;
|
|
193
193
|
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
if (typeof value === 'string') {
|
|
195
|
+
return value.match(/T(\d{2}:\d{2})/)?.[1] ?? '';
|
|
196
|
+
}
|
|
196
197
|
|
|
197
|
-
return `${
|
|
198
|
+
return `${value.getHours().toString().padStart(2, '0')}:${value.getMinutes().toString().padStart(2, '0')}`;
|
|
198
199
|
};
|
|
199
200
|
|
|
200
201
|
export const longFormatDate = (dateTime: Date | undefined, language: string): string => {
|
|
@@ -44,13 +44,17 @@
|
|
|
44
44
|
|
|
45
45
|
&__navigator {
|
|
46
46
|
gap: 15px;
|
|
47
|
-
position:
|
|
48
|
-
bottom:
|
|
47
|
+
position: sticky;
|
|
48
|
+
bottom: 80px;
|
|
49
49
|
left: 0;
|
|
50
|
-
background-color: var(--tide-booking-
|
|
50
|
+
background-color: var(--tide-booking-bg);
|
|
51
51
|
// outline: 2px solid var(--tide-booking-bg);
|
|
52
52
|
z-index: 11;
|
|
53
53
|
width: 100%;
|
|
54
|
+
margin: 30px -45px;
|
|
55
|
+
margin-bottom: 0px;
|
|
56
|
+
padding: 15px 45px;
|
|
57
|
+
width: 99dvw;
|
|
54
58
|
|
|
55
59
|
@include row--xs;
|
|
56
60
|
justify-content: flex-end;
|
|
@@ -59,8 +63,11 @@
|
|
|
59
63
|
|
|
60
64
|
@include media-lg {
|
|
61
65
|
position: relative;
|
|
66
|
+
bottom: 0px;
|
|
62
67
|
padding: 30px 15px;
|
|
63
68
|
background: var(--tide-booking-transparent);
|
|
69
|
+
width: 100%;
|
|
70
|
+
margin: 0px;
|
|
64
71
|
}
|
|
65
72
|
|
|
66
73
|
.cta--secondary {
|
|
@@ -74,7 +81,7 @@
|
|
|
74
81
|
|
|
75
82
|
button {
|
|
76
83
|
@include media-xs {
|
|
77
|
-
max-width:
|
|
84
|
+
max-width: 200px;
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
}
|
|
@@ -154,16 +161,16 @@
|
|
|
154
161
|
|
|
155
162
|
&__product {
|
|
156
163
|
@extend %reset;
|
|
157
|
-
position: sticky;
|
|
158
|
-
top: 0px;
|
|
159
|
-
left: 0px;
|
|
164
|
+
// position: sticky;
|
|
165
|
+
// top: 0px;
|
|
166
|
+
// left: 0px;
|
|
160
167
|
border-radius: var(--tide-booking-sidebar-header-border-radius);
|
|
161
168
|
overflow: hidden;
|
|
162
169
|
display: flex;
|
|
163
170
|
align-items: center;
|
|
164
171
|
background: var(--tide-booking-sidebar-header-background);
|
|
165
|
-
|
|
166
172
|
min-height: 80px;
|
|
173
|
+
z-index: 1;
|
|
167
174
|
|
|
168
175
|
@include media-xl {
|
|
169
176
|
min-height: 100px;
|
|
@@ -249,7 +256,7 @@
|
|
|
249
256
|
position: fixed;
|
|
250
257
|
width: calc(100% - 0px);
|
|
251
258
|
max-height: calc(100dvh - 90px);
|
|
252
|
-
bottom:
|
|
259
|
+
bottom: 1px;
|
|
253
260
|
right: 0;
|
|
254
261
|
transform: translate3D(0, calc(100% - 80px), 0);
|
|
255
262
|
margin-left: auto;
|
|
@@ -261,14 +268,13 @@
|
|
|
261
268
|
|
|
262
269
|
@include media-sm {
|
|
263
270
|
width: calc(100% - 60px);
|
|
264
|
-
max-width:
|
|
271
|
+
max-width: 450px;
|
|
265
272
|
}
|
|
266
273
|
|
|
267
274
|
@include media-lg {
|
|
268
275
|
position: sticky;
|
|
269
|
-
width: 400px;
|
|
270
276
|
height: calc(100vh - 86px);
|
|
271
|
-
top:
|
|
277
|
+
top: 100px;
|
|
272
278
|
bottom: initial;
|
|
273
279
|
transform: none;
|
|
274
280
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
&__label {
|
|
11
11
|
@extend %reset;
|
|
12
|
-
margin-bottom: 15px * 0.5;
|
|
12
|
+
// margin-bottom: 15px * 0.5;
|
|
13
13
|
display: flex;
|
|
14
14
|
text-align: left;
|
|
15
15
|
text-overflow: ellipsis;
|
|
@@ -1594,7 +1594,7 @@
|
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
1596
|
.form__booking--summary {
|
|
1597
|
-
margin-top: -25px;
|
|
1597
|
+
// margin-top: -25px;
|
|
1598
1598
|
background: var(--tide-booking-form-summary-background);
|
|
1599
1599
|
border-radius: var(--tide-booking-form-summary-border-radius);
|
|
1600
1600
|
outline: var(--tide-booking-form-summary-border);
|
|
@@ -1618,7 +1618,7 @@
|
|
|
1618
1618
|
}
|
|
1619
1619
|
|
|
1620
1620
|
.form__booking--message {
|
|
1621
|
-
margin-top: -25px;
|
|
1621
|
+
// margin-top: -25px;
|
|
1622
1622
|
background: var(--tide-booking-confirmation-background);
|
|
1623
1623
|
border-radius: var(--tide-booking-confirmation-border-radius);
|
|
1624
1624
|
outline: var(--tide-booking-confirmation-border);
|
|
@@ -1632,3 +1632,62 @@
|
|
|
1632
1632
|
background: transparent;
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
1635
|
+
|
|
1636
|
+
.travelers-form__grid {
|
|
1637
|
+
display: flex;
|
|
1638
|
+
flex-direction: column;
|
|
1639
|
+
|
|
1640
|
+
@include media-md {
|
|
1641
|
+
display: grid;
|
|
1642
|
+
grid-template-columns: repeat(3, 1fr);
|
|
1643
|
+
gap: 15px;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
.control--gender {
|
|
1647
|
+
@include media-md {
|
|
1648
|
+
grid-column: span 3;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
.form__group {
|
|
1652
|
+
min-height: auto;
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
.main-booker-form__grid {
|
|
1658
|
+
display: flex;
|
|
1659
|
+
flex-direction: column;
|
|
1660
|
+
|
|
1661
|
+
@include media-md {
|
|
1662
|
+
display: grid;
|
|
1663
|
+
grid-template-columns: repeat(5, 1fr);
|
|
1664
|
+
gap: 15px;
|
|
1665
|
+
row-gap: 0px;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
.control--street {
|
|
1669
|
+
@include media-md {
|
|
1670
|
+
grid-column: span 4;
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
.control--place,
|
|
1675
|
+
.control--zipCode,
|
|
1676
|
+
.control--country {
|
|
1677
|
+
@include media-md {
|
|
1678
|
+
grid-column: span 2;
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.control--phone {
|
|
1683
|
+
@include media-md {
|
|
1684
|
+
grid-column: span 3;
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
.control--email {
|
|
1689
|
+
@include media-md {
|
|
1690
|
+
grid-column: span 5;
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
}
|