@asdp/ferryui 0.1.22-dev.8945 → 0.1.22-dev.8990
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/dist/index.d.mts +61 -52
- package/dist/index.d.ts +61 -52
- package/dist/index.js +154 -140
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +155 -140
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -866,14 +866,18 @@ declare const COUNTRIES: CountryOption[];
|
|
|
866
866
|
* Harbor item interface
|
|
867
867
|
*/
|
|
868
868
|
interface HarborItem {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
869
|
+
branchId: number;
|
|
870
|
+
branchName: string;
|
|
871
|
+
branchCode: string;
|
|
872
|
+
cityId: number;
|
|
873
|
+
cityName: string;
|
|
874
|
+
timezone: string;
|
|
875
|
+
portId: number;
|
|
876
|
+
portName: string;
|
|
877
|
+
portCode: string;
|
|
878
|
+
rowNum: number;
|
|
879
|
+
isFavorite: boolean;
|
|
880
|
+
routeId?: number;
|
|
877
881
|
}
|
|
878
882
|
/**
|
|
879
883
|
* Labels for ModalSearchHarbor component
|
|
@@ -887,6 +891,7 @@ interface ModalSearchHarborLabels {
|
|
|
887
891
|
loadingData: string;
|
|
888
892
|
harborNotFound: string;
|
|
889
893
|
closeAriaLabel: string;
|
|
894
|
+
popularHarborHeader: string;
|
|
890
895
|
}
|
|
891
896
|
/**
|
|
892
897
|
* Props for ModalSearchHarbor component
|
|
@@ -930,6 +935,10 @@ interface ModalSearchHarborProps {
|
|
|
930
935
|
* List of last searched harbors
|
|
931
936
|
*/
|
|
932
937
|
lastSearchedHarbors: HarborItem[];
|
|
938
|
+
/**
|
|
939
|
+
* List of popular harbors
|
|
940
|
+
*/
|
|
941
|
+
popularHarbors: HarborItem[];
|
|
933
942
|
/**
|
|
934
943
|
* Loading state
|
|
935
944
|
* @default false
|
|
@@ -958,7 +967,7 @@ interface ModalSearchHarborProps {
|
|
|
958
967
|
/**
|
|
959
968
|
* Callback when removing from last searched
|
|
960
969
|
*/
|
|
961
|
-
onRemoveLastSearched: (harborId:
|
|
970
|
+
onRemoveLastSearched: (harborId: HarborItem) => void;
|
|
962
971
|
/**
|
|
963
972
|
* Callback when clearing all last searched
|
|
964
973
|
*/
|
|
@@ -1215,25 +1224,16 @@ interface ModalServiceProps {
|
|
|
1215
1224
|
declare const ModalService: React$1.FC<ModalServiceProps>;
|
|
1216
1225
|
|
|
1217
1226
|
/**
|
|
1218
|
-
*
|
|
1219
|
-
*/
|
|
1220
|
-
type PassengerServiceCode = 'ECONOMY' | 'BUSINESS' | 'EXECUTIVE';
|
|
1221
|
-
/**
|
|
1222
|
-
* Service class data structure
|
|
1227
|
+
* Passenger class from API (e.g. EKONOMI, Bisnis, Eksekutive)
|
|
1223
1228
|
*/
|
|
1224
|
-
interface
|
|
1229
|
+
interface PassengerClass {
|
|
1225
1230
|
id: number;
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1231
|
+
classCode: string;
|
|
1232
|
+
classDescription: string;
|
|
1233
|
+
maxCapacity: number;
|
|
1234
|
+
count?: number;
|
|
1235
|
+
passengers?: Passenger[];
|
|
1230
1236
|
}
|
|
1231
|
-
/**
|
|
1232
|
-
* Default service classes available
|
|
1233
|
-
*/
|
|
1234
|
-
declare const DEFAULT_SERVICE_CLASSES: ServiceClass[];
|
|
1235
|
-
|
|
1236
|
-
type PassengerTypeCode = "ADULT" | "CHILD" | "INFANT" | "ELDERLY";
|
|
1237
1237
|
/**
|
|
1238
1238
|
* Labels for ModalTotalPassengers component
|
|
1239
1239
|
*/
|
|
@@ -1242,9 +1242,6 @@ interface ModalTotalPassengersLabels {
|
|
|
1242
1242
|
infoMessage: string;
|
|
1243
1243
|
loading: string;
|
|
1244
1244
|
saveButton: string;
|
|
1245
|
-
economy: string;
|
|
1246
|
-
business: string;
|
|
1247
|
-
executive: string;
|
|
1248
1245
|
closeAriaLabel: string;
|
|
1249
1246
|
}
|
|
1250
1247
|
/**
|
|
@@ -1260,8 +1257,8 @@ interface Passenger {
|
|
|
1260
1257
|
idNumber?: string;
|
|
1261
1258
|
age?: number;
|
|
1262
1259
|
date?: string;
|
|
1263
|
-
category?:
|
|
1264
|
-
ticketClass:
|
|
1260
|
+
category?: string;
|
|
1261
|
+
ticketClass: string;
|
|
1265
1262
|
cityId?: string;
|
|
1266
1263
|
phoneNumber?: {
|
|
1267
1264
|
countryCode: string;
|
|
@@ -1273,8 +1270,8 @@ interface Passenger {
|
|
|
1273
1270
|
* Service with passenger count
|
|
1274
1271
|
*/
|
|
1275
1272
|
interface PassengerService {
|
|
1276
|
-
serviceId
|
|
1277
|
-
serviceName:
|
|
1273
|
+
serviceId?: number;
|
|
1274
|
+
serviceName: string;
|
|
1278
1275
|
count: number;
|
|
1279
1276
|
passengers: Passenger[];
|
|
1280
1277
|
}
|
|
@@ -1283,16 +1280,25 @@ interface PassengerService {
|
|
|
1283
1280
|
*/
|
|
1284
1281
|
interface PassengerType {
|
|
1285
1282
|
id: number;
|
|
1286
|
-
|
|
1287
|
-
|
|
1283
|
+
passengerAgeCode: string;
|
|
1284
|
+
passengerAgeName: string;
|
|
1285
|
+
passengerDescription: string;
|
|
1286
|
+
minAge: number;
|
|
1287
|
+
maxAge: number;
|
|
1288
|
+
isActive: number;
|
|
1289
|
+
sortOrder: number;
|
|
1290
|
+
requiresId: number;
|
|
1291
|
+
maxCapacity: number;
|
|
1292
|
+
minCapacity: number;
|
|
1293
|
+
classes: PassengerClass[];
|
|
1288
1294
|
}
|
|
1289
1295
|
/**
|
|
1290
1296
|
* Selected passenger item structure
|
|
1291
1297
|
*/
|
|
1292
1298
|
interface SelectedPassengerItem {
|
|
1293
1299
|
passengerTypeId: number;
|
|
1294
|
-
|
|
1295
|
-
|
|
1300
|
+
passengerAgeCode: string;
|
|
1301
|
+
passengerAgeName: string;
|
|
1296
1302
|
services: PassengerService[];
|
|
1297
1303
|
}
|
|
1298
1304
|
/**
|
|
@@ -1324,19 +1330,14 @@ interface ModalTotalPassengersProps {
|
|
|
1324
1330
|
* Array of passenger types from API
|
|
1325
1331
|
*/
|
|
1326
1332
|
passengerTypes: PassengerType[];
|
|
1327
|
-
/**
|
|
1328
|
-
* Array of service classes
|
|
1329
|
-
* @default DEFAULT_SERVICE_CLASSES
|
|
1330
|
-
*/
|
|
1331
|
-
serviceClasses?: ServiceClass[];
|
|
1332
1333
|
/**
|
|
1333
1334
|
* Currently selected passengers
|
|
1334
1335
|
*/
|
|
1335
|
-
selectedPassengers:
|
|
1336
|
+
selectedPassengers: PassengerType[];
|
|
1336
1337
|
/**
|
|
1337
1338
|
* Callback when save button is clicked
|
|
1338
1339
|
*/
|
|
1339
|
-
onSave: (passengers:
|
|
1340
|
+
onSave: (passengers: PassengerType[]) => void;
|
|
1340
1341
|
/**
|
|
1341
1342
|
* Loading state
|
|
1342
1343
|
* @default false
|
|
@@ -1358,7 +1359,7 @@ interface ModalTotalPassengersProps {
|
|
|
1358
1359
|
*
|
|
1359
1360
|
* This component provides a passenger selection modal with features like:
|
|
1360
1361
|
* - Accordion for each passenger type
|
|
1361
|
-
* - Counter for each service class (
|
|
1362
|
+
* - Counter for each service class (dynamic from API)
|
|
1362
1363
|
* - Automatic default selection (1 adult economy)
|
|
1363
1364
|
* - Validation and save functionality
|
|
1364
1365
|
*
|
|
@@ -1376,20 +1377,27 @@ interface ModalTotalPassengersProps {
|
|
|
1376
1377
|
*/
|
|
1377
1378
|
declare const ModalTotalPassengers: React$1.FC<ModalTotalPassengersProps>;
|
|
1378
1379
|
|
|
1380
|
+
interface TypeOfServiceChild {
|
|
1381
|
+
id: number;
|
|
1382
|
+
loadType: number;
|
|
1383
|
+
group: number;
|
|
1384
|
+
title: string;
|
|
1385
|
+
info: string;
|
|
1386
|
+
image: string;
|
|
1387
|
+
capacity: number | null;
|
|
1388
|
+
}
|
|
1379
1389
|
/**
|
|
1380
1390
|
* Service type item structure
|
|
1381
1391
|
*/
|
|
1382
1392
|
interface TypeOfService {
|
|
1383
1393
|
id: number;
|
|
1384
|
-
|
|
1394
|
+
loadType: number;
|
|
1395
|
+
group: number;
|
|
1385
1396
|
title: string;
|
|
1386
1397
|
info: string;
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
parentTitle?: string;
|
|
1391
|
-
child: TypeOfService[];
|
|
1392
|
-
typeOfPassanger: string;
|
|
1398
|
+
image: string;
|
|
1399
|
+
children: TypeOfServiceChild[];
|
|
1400
|
+
capacity?: number | null;
|
|
1393
1401
|
}
|
|
1394
1402
|
/**
|
|
1395
1403
|
* Labels for ModalTypeOfService component
|
|
@@ -3304,6 +3312,7 @@ interface FileUploadProps<T extends FieldValues = FieldValues> {
|
|
|
3304
3312
|
declare const FileUpload: React$1.ForwardRefExoticComponent<FileUploadProps<react_hook_form.FieldValues> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3305
3313
|
|
|
3306
3314
|
interface BadgeConfig {
|
|
3315
|
+
code: string;
|
|
3307
3316
|
color: string;
|
|
3308
3317
|
icon: string;
|
|
3309
3318
|
}
|
|
@@ -3352,4 +3361,4 @@ interface CardProfileMenuProps {
|
|
|
3352
3361
|
|
|
3353
3362
|
declare const CardProfileMenu: React$1.FC<CardProfileMenuProps>;
|
|
3354
3363
|
|
|
3355
|
-
export { BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$3 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$2 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT,
|
|
3364
|
+
export { BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$3 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$2 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, FileUpload, type FileUploadProps, type FilterCount, type HarborItem, InputDynamic, type InputDynamicProps, type InputType, MODAL_PRESETS, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, type Passenger, type PassengerClass, type PassengerFormData, type PassengerListItem, type PassengerService, type PassengerType, type PaymentGuideStep, type PaymentMethodCategory, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type RadioOption, type ReservationStep, type ReviewPassengerItem, type SearchSummaryField, type SearchTicketFormData, type SelectOption, type SelectedPassengerItem, type ServiceId, type ServiceItem, SortMenu, type SortMenuProps, type SortOption, type StepStatus, Stepper, type StepperProps, type StepperStep, type TabType, type TypeOfService, type VehicleOwner, getBadgeConfig, getModalPreset, getSortLabel };
|
package/dist/index.d.ts
CHANGED
|
@@ -866,14 +866,18 @@ declare const COUNTRIES: CountryOption[];
|
|
|
866
866
|
* Harbor item interface
|
|
867
867
|
*/
|
|
868
868
|
interface HarborItem {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
869
|
+
branchId: number;
|
|
870
|
+
branchName: string;
|
|
871
|
+
branchCode: string;
|
|
872
|
+
cityId: number;
|
|
873
|
+
cityName: string;
|
|
874
|
+
timezone: string;
|
|
875
|
+
portId: number;
|
|
876
|
+
portName: string;
|
|
877
|
+
portCode: string;
|
|
878
|
+
rowNum: number;
|
|
879
|
+
isFavorite: boolean;
|
|
880
|
+
routeId?: number;
|
|
877
881
|
}
|
|
878
882
|
/**
|
|
879
883
|
* Labels for ModalSearchHarbor component
|
|
@@ -887,6 +891,7 @@ interface ModalSearchHarborLabels {
|
|
|
887
891
|
loadingData: string;
|
|
888
892
|
harborNotFound: string;
|
|
889
893
|
closeAriaLabel: string;
|
|
894
|
+
popularHarborHeader: string;
|
|
890
895
|
}
|
|
891
896
|
/**
|
|
892
897
|
* Props for ModalSearchHarbor component
|
|
@@ -930,6 +935,10 @@ interface ModalSearchHarborProps {
|
|
|
930
935
|
* List of last searched harbors
|
|
931
936
|
*/
|
|
932
937
|
lastSearchedHarbors: HarborItem[];
|
|
938
|
+
/**
|
|
939
|
+
* List of popular harbors
|
|
940
|
+
*/
|
|
941
|
+
popularHarbors: HarborItem[];
|
|
933
942
|
/**
|
|
934
943
|
* Loading state
|
|
935
944
|
* @default false
|
|
@@ -958,7 +967,7 @@ interface ModalSearchHarborProps {
|
|
|
958
967
|
/**
|
|
959
968
|
* Callback when removing from last searched
|
|
960
969
|
*/
|
|
961
|
-
onRemoveLastSearched: (harborId:
|
|
970
|
+
onRemoveLastSearched: (harborId: HarborItem) => void;
|
|
962
971
|
/**
|
|
963
972
|
* Callback when clearing all last searched
|
|
964
973
|
*/
|
|
@@ -1215,25 +1224,16 @@ interface ModalServiceProps {
|
|
|
1215
1224
|
declare const ModalService: React$1.FC<ModalServiceProps>;
|
|
1216
1225
|
|
|
1217
1226
|
/**
|
|
1218
|
-
*
|
|
1219
|
-
*/
|
|
1220
|
-
type PassengerServiceCode = 'ECONOMY' | 'BUSINESS' | 'EXECUTIVE';
|
|
1221
|
-
/**
|
|
1222
|
-
* Service class data structure
|
|
1227
|
+
* Passenger class from API (e.g. EKONOMI, Bisnis, Eksekutive)
|
|
1223
1228
|
*/
|
|
1224
|
-
interface
|
|
1229
|
+
interface PassengerClass {
|
|
1225
1230
|
id: number;
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1231
|
+
classCode: string;
|
|
1232
|
+
classDescription: string;
|
|
1233
|
+
maxCapacity: number;
|
|
1234
|
+
count?: number;
|
|
1235
|
+
passengers?: Passenger[];
|
|
1230
1236
|
}
|
|
1231
|
-
/**
|
|
1232
|
-
* Default service classes available
|
|
1233
|
-
*/
|
|
1234
|
-
declare const DEFAULT_SERVICE_CLASSES: ServiceClass[];
|
|
1235
|
-
|
|
1236
|
-
type PassengerTypeCode = "ADULT" | "CHILD" | "INFANT" | "ELDERLY";
|
|
1237
1237
|
/**
|
|
1238
1238
|
* Labels for ModalTotalPassengers component
|
|
1239
1239
|
*/
|
|
@@ -1242,9 +1242,6 @@ interface ModalTotalPassengersLabels {
|
|
|
1242
1242
|
infoMessage: string;
|
|
1243
1243
|
loading: string;
|
|
1244
1244
|
saveButton: string;
|
|
1245
|
-
economy: string;
|
|
1246
|
-
business: string;
|
|
1247
|
-
executive: string;
|
|
1248
1245
|
closeAriaLabel: string;
|
|
1249
1246
|
}
|
|
1250
1247
|
/**
|
|
@@ -1260,8 +1257,8 @@ interface Passenger {
|
|
|
1260
1257
|
idNumber?: string;
|
|
1261
1258
|
age?: number;
|
|
1262
1259
|
date?: string;
|
|
1263
|
-
category?:
|
|
1264
|
-
ticketClass:
|
|
1260
|
+
category?: string;
|
|
1261
|
+
ticketClass: string;
|
|
1265
1262
|
cityId?: string;
|
|
1266
1263
|
phoneNumber?: {
|
|
1267
1264
|
countryCode: string;
|
|
@@ -1273,8 +1270,8 @@ interface Passenger {
|
|
|
1273
1270
|
* Service with passenger count
|
|
1274
1271
|
*/
|
|
1275
1272
|
interface PassengerService {
|
|
1276
|
-
serviceId
|
|
1277
|
-
serviceName:
|
|
1273
|
+
serviceId?: number;
|
|
1274
|
+
serviceName: string;
|
|
1278
1275
|
count: number;
|
|
1279
1276
|
passengers: Passenger[];
|
|
1280
1277
|
}
|
|
@@ -1283,16 +1280,25 @@ interface PassengerService {
|
|
|
1283
1280
|
*/
|
|
1284
1281
|
interface PassengerType {
|
|
1285
1282
|
id: number;
|
|
1286
|
-
|
|
1287
|
-
|
|
1283
|
+
passengerAgeCode: string;
|
|
1284
|
+
passengerAgeName: string;
|
|
1285
|
+
passengerDescription: string;
|
|
1286
|
+
minAge: number;
|
|
1287
|
+
maxAge: number;
|
|
1288
|
+
isActive: number;
|
|
1289
|
+
sortOrder: number;
|
|
1290
|
+
requiresId: number;
|
|
1291
|
+
maxCapacity: number;
|
|
1292
|
+
minCapacity: number;
|
|
1293
|
+
classes: PassengerClass[];
|
|
1288
1294
|
}
|
|
1289
1295
|
/**
|
|
1290
1296
|
* Selected passenger item structure
|
|
1291
1297
|
*/
|
|
1292
1298
|
interface SelectedPassengerItem {
|
|
1293
1299
|
passengerTypeId: number;
|
|
1294
|
-
|
|
1295
|
-
|
|
1300
|
+
passengerAgeCode: string;
|
|
1301
|
+
passengerAgeName: string;
|
|
1296
1302
|
services: PassengerService[];
|
|
1297
1303
|
}
|
|
1298
1304
|
/**
|
|
@@ -1324,19 +1330,14 @@ interface ModalTotalPassengersProps {
|
|
|
1324
1330
|
* Array of passenger types from API
|
|
1325
1331
|
*/
|
|
1326
1332
|
passengerTypes: PassengerType[];
|
|
1327
|
-
/**
|
|
1328
|
-
* Array of service classes
|
|
1329
|
-
* @default DEFAULT_SERVICE_CLASSES
|
|
1330
|
-
*/
|
|
1331
|
-
serviceClasses?: ServiceClass[];
|
|
1332
1333
|
/**
|
|
1333
1334
|
* Currently selected passengers
|
|
1334
1335
|
*/
|
|
1335
|
-
selectedPassengers:
|
|
1336
|
+
selectedPassengers: PassengerType[];
|
|
1336
1337
|
/**
|
|
1337
1338
|
* Callback when save button is clicked
|
|
1338
1339
|
*/
|
|
1339
|
-
onSave: (passengers:
|
|
1340
|
+
onSave: (passengers: PassengerType[]) => void;
|
|
1340
1341
|
/**
|
|
1341
1342
|
* Loading state
|
|
1342
1343
|
* @default false
|
|
@@ -1358,7 +1359,7 @@ interface ModalTotalPassengersProps {
|
|
|
1358
1359
|
*
|
|
1359
1360
|
* This component provides a passenger selection modal with features like:
|
|
1360
1361
|
* - Accordion for each passenger type
|
|
1361
|
-
* - Counter for each service class (
|
|
1362
|
+
* - Counter for each service class (dynamic from API)
|
|
1362
1363
|
* - Automatic default selection (1 adult economy)
|
|
1363
1364
|
* - Validation and save functionality
|
|
1364
1365
|
*
|
|
@@ -1376,20 +1377,27 @@ interface ModalTotalPassengersProps {
|
|
|
1376
1377
|
*/
|
|
1377
1378
|
declare const ModalTotalPassengers: React$1.FC<ModalTotalPassengersProps>;
|
|
1378
1379
|
|
|
1380
|
+
interface TypeOfServiceChild {
|
|
1381
|
+
id: number;
|
|
1382
|
+
loadType: number;
|
|
1383
|
+
group: number;
|
|
1384
|
+
title: string;
|
|
1385
|
+
info: string;
|
|
1386
|
+
image: string;
|
|
1387
|
+
capacity: number | null;
|
|
1388
|
+
}
|
|
1379
1389
|
/**
|
|
1380
1390
|
* Service type item structure
|
|
1381
1391
|
*/
|
|
1382
1392
|
interface TypeOfService {
|
|
1383
1393
|
id: number;
|
|
1384
|
-
|
|
1394
|
+
loadType: number;
|
|
1395
|
+
group: number;
|
|
1385
1396
|
title: string;
|
|
1386
1397
|
info: string;
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
parentTitle?: string;
|
|
1391
|
-
child: TypeOfService[];
|
|
1392
|
-
typeOfPassanger: string;
|
|
1398
|
+
image: string;
|
|
1399
|
+
children: TypeOfServiceChild[];
|
|
1400
|
+
capacity?: number | null;
|
|
1393
1401
|
}
|
|
1394
1402
|
/**
|
|
1395
1403
|
* Labels for ModalTypeOfService component
|
|
@@ -3304,6 +3312,7 @@ interface FileUploadProps<T extends FieldValues = FieldValues> {
|
|
|
3304
3312
|
declare const FileUpload: React$1.ForwardRefExoticComponent<FileUploadProps<react_hook_form.FieldValues> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3305
3313
|
|
|
3306
3314
|
interface BadgeConfig {
|
|
3315
|
+
code: string;
|
|
3307
3316
|
color: string;
|
|
3308
3317
|
icon: string;
|
|
3309
3318
|
}
|
|
@@ -3352,4 +3361,4 @@ interface CardProfileMenuProps {
|
|
|
3352
3361
|
|
|
3353
3362
|
declare const CardProfileMenu: React$1.FC<CardProfileMenuProps>;
|
|
3354
3363
|
|
|
3355
|
-
export { BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$3 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$2 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT,
|
|
3364
|
+
export { BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$3 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$2 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, FileUpload, type FileUploadProps, type FilterCount, type HarborItem, InputDynamic, type InputDynamicProps, type InputType, MODAL_PRESETS, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, type Passenger, type PassengerClass, type PassengerFormData, type PassengerListItem, type PassengerService, type PassengerType, type PaymentGuideStep, type PaymentMethodCategory, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type RadioOption, type ReservationStep, type ReviewPassengerItem, type SearchSummaryField, type SearchTicketFormData, type SelectOption, type SelectedPassengerItem, type ServiceId, type ServiceItem, SortMenu, type SortMenuProps, type SortOption, type StepStatus, Stepper, type StepperProps, type StepperStep, type TabType, type TypeOfService, type VehicleOwner, getBadgeConfig, getModalPreset, getSortLabel };
|