@qite/tide-booking-component 1.4.104 → 1.4.106
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 +1312 -187
- package/build/build-cjs/src/search-results/components/excursions/day-by-day-excursions.d.ts +4 -0
- package/build/build-cjs/src/search-results/components/excursions/excursion-details.d.ts +3 -0
- package/build/build-cjs/src/search-results/components/excursions/excursion-results.d.ts +8 -0
- package/build/build-cjs/src/search-results/store/search-results-selectors.d.ts +122 -0
- package/build/build-cjs/src/search-results/store/search-results-slice.d.ts +30 -2
- package/build/build-cjs/src/search-results/types.d.ts +27 -1
- package/build/build-cjs/src/search-results/utils/query-utils.d.ts +1 -0
- package/build/build-cjs/src/shared/components/flyin/flyin.d.ts +2 -1
- package/build/build-cjs/src/shared/utils/localization-util.d.ts +3 -0
- package/build/build-cjs/src/shared/utils/tide-api-utils.d.ts +6 -0
- package/build/build-esm/index.js +1304 -187
- package/build/build-esm/src/search-results/components/excursions/day-by-day-excursions.d.ts +4 -0
- package/build/build-esm/src/search-results/components/excursions/excursion-details.d.ts +3 -0
- package/build/build-esm/src/search-results/components/excursions/excursion-results.d.ts +8 -0
- package/build/build-esm/src/search-results/store/search-results-selectors.d.ts +122 -0
- package/build/build-esm/src/search-results/store/search-results-slice.d.ts +30 -2
- package/build/build-esm/src/search-results/types.d.ts +27 -1
- package/build/build-esm/src/search-results/utils/query-utils.d.ts +1 -0
- package/build/build-esm/src/shared/components/flyin/flyin.d.ts +2 -1
- package/build/build-esm/src/shared/utils/localization-util.d.ts +3 -0
- package/build/build-esm/src/shared/utils/tide-api-utils.d.ts +6 -0
- package/package.json +2 -2
- package/src/search-results/components/excursions/day-by-day-excursions.tsx +169 -0
- package/src/search-results/components/excursions/excursion-details.tsx +340 -0
- package/src/search-results/components/excursions/excursion-results.tsx +186 -0
- package/src/search-results/components/hotel/hotel-card.tsx +0 -3
- package/src/search-results/components/icon.tsx +1 -4
- package/src/search-results/components/itinerary/full-itinerary.tsx +161 -53
- package/src/search-results/components/itinerary/index.tsx +31 -7
- package/src/search-results/components/search-results-container/search-results-container.tsx +90 -28
- package/src/search-results/store/search-results-selectors.ts +11 -0
- package/src/search-results/store/search-results-slice.ts +46 -3
- package/src/search-results/types.ts +42 -1
- package/src/search-results/utils/query-utils.ts +1 -0
- package/src/shared/components/flyin/accommodation-flyin.tsx +4 -2
- package/src/shared/components/flyin/flights-flyin.tsx +3 -1
- package/src/shared/components/flyin/flyin.tsx +18 -6
- package/src/shared/components/flyin/group-tour-flyin.tsx +3 -1
- package/src/shared/translations/ar-SA.json +8 -2
- package/src/shared/translations/da-DK.json +8 -2
- package/src/shared/translations/de-DE.json +8 -2
- package/src/shared/translations/en-GB.json +8 -2
- package/src/shared/translations/es-ES.json +8 -2
- package/src/shared/translations/fr-BE.json +8 -2
- package/src/shared/translations/fr-FR.json +8 -2
- package/src/shared/translations/is-IS.json +8 -2
- package/src/shared/translations/it-IT.json +8 -2
- package/src/shared/translations/ja-JP.json +8 -2
- package/src/shared/translations/nl-BE.json +8 -2
- package/src/shared/translations/nl-NL.json +8 -2
- package/src/shared/translations/no-NO.json +8 -2
- package/src/shared/translations/pl-PL.json +8 -2
- package/src/shared/translations/pt-PT.json +8 -2
- package/src/shared/translations/sv-SE.json +8 -2
- package/src/shared/utils/localization-util.ts +14 -0
- package/src/shared/utils/tide-api-utils.ts +8 -0
- package/styles/components/_search.scss +11 -1
|
@@ -276,3 +276,17 @@ export const getSortingName = (translations: any, sortByType: SortByType): strin
|
|
|
276
276
|
export const findSortByType = (sortByTypes: SortByType[], sortKey: string, direction: string) => {
|
|
277
277
|
return sortByTypes.find((s) => s.label === sortKey && s.direction === direction) || sortByTypes[0];
|
|
278
278
|
};
|
|
279
|
+
|
|
280
|
+
export const getDatesBetween = (fromDate: string, toDate: string): Date[] => {
|
|
281
|
+
const dates: Date[] = [];
|
|
282
|
+
|
|
283
|
+
const current = new Date(fromDate);
|
|
284
|
+
const end = new Date(toDate);
|
|
285
|
+
|
|
286
|
+
while (current < end) {
|
|
287
|
+
dates.push(new Date(current));
|
|
288
|
+
current.setUTCDate(current.getUTCDate() + 1);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
return dates;
|
|
292
|
+
};
|
|
@@ -2,6 +2,14 @@ import { TideClientConfig } from '@qite/tide-client';
|
|
|
2
2
|
import { isNil } from 'lodash';
|
|
3
3
|
import { ApiSettingsState } from '../types';
|
|
4
4
|
|
|
5
|
+
export const tideConnection = {
|
|
6
|
+
host: 'https://localhost:44341',
|
|
7
|
+
// host: 'https://preview-tide.tidesoftware.be',
|
|
8
|
+
apiKey: 'e9b95d79-de4c-41d6-ab7e-3dd429873058',
|
|
9
|
+
catalogueIds: [1],
|
|
10
|
+
officeId: 1
|
|
11
|
+
};
|
|
12
|
+
|
|
5
13
|
export function buildTideClientConfig(settings?: ApiSettingsState): TideClientConfig {
|
|
6
14
|
const HOST = settings?.apiUrl || process.env.REACT_APP_BOOKING_HOST;
|
|
7
15
|
const API_KEY = settings?.apiKey || process.env.REACT_APP_BOOKING_API_KEY;
|
|
@@ -767,7 +767,12 @@
|
|
|
767
767
|
|
|
768
768
|
&__actions {
|
|
769
769
|
display: flex;
|
|
770
|
-
justify-content:
|
|
770
|
+
justify-content: space-between;
|
|
771
|
+
align-items: center;
|
|
772
|
+
|
|
773
|
+
.cta {
|
|
774
|
+
margin-left: auto;
|
|
775
|
+
}
|
|
771
776
|
}
|
|
772
777
|
}
|
|
773
778
|
|
|
@@ -1091,6 +1096,11 @@
|
|
|
1091
1096
|
flex-direction: column;
|
|
1092
1097
|
gap: 10px;
|
|
1093
1098
|
}
|
|
1099
|
+
|
|
1100
|
+
&--extra {
|
|
1101
|
+
padding: 0 15px;
|
|
1102
|
+
margin-top: -20px;
|
|
1103
|
+
}
|
|
1094
1104
|
}
|
|
1095
1105
|
|
|
1096
1106
|
&__header {
|