@asdp/ferryui 0.1.22-dev.9494 → 0.1.22-dev.9508
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 +22 -15
- package/dist/index.d.ts +22 -15
- package/dist/index.js +34 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1725,6 +1725,11 @@ declare const MY_TICKET_STATUS: {
|
|
|
1725
1725
|
readonly REFUND: 11;
|
|
1726
1726
|
};
|
|
1727
1727
|
type MY_TICKET_STATUS_TYPE = typeof MY_TICKET_STATUS[keyof typeof MY_TICKET_STATUS];
|
|
1728
|
+
declare const MANIFEST_ENTITY: {
|
|
1729
|
+
readonly COMPANY: "company";
|
|
1730
|
+
readonly INDIVIDUAL: "individual";
|
|
1731
|
+
};
|
|
1732
|
+
type MANIFEST_ENTITY_TYPE = typeof MANIFEST_ENTITY[keyof typeof MANIFEST_ENTITY];
|
|
1728
1733
|
|
|
1729
1734
|
interface TypeOfServiceChild {
|
|
1730
1735
|
id: number;
|
|
@@ -2921,24 +2926,26 @@ interface CargoItem {
|
|
|
2921
2926
|
quantity?: number | string;
|
|
2922
2927
|
industryType?: string;
|
|
2923
2928
|
cargoCategory?: string;
|
|
2929
|
+
unit: string;
|
|
2924
2930
|
}
|
|
2925
2931
|
interface VehicleOwner {
|
|
2926
2932
|
id: number;
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
cargoOwnerName?: string;
|
|
2934
|
-
logisticsCompanyType?: 'Perusahaan' | 'Perseorangan';
|
|
2935
|
-
logisticsCompanyName?: string;
|
|
2936
|
-
cargoReceiverType?: 'Perusahaan' | 'Perseorangan';
|
|
2937
|
-
cargoReceiverName?: string;
|
|
2938
|
-
cargoWeight?: number | string;
|
|
2933
|
+
senderEntityType: MANIFEST_ENTITY_TYPE;
|
|
2934
|
+
senderEntity: string;
|
|
2935
|
+
senderEntityOther: string;
|
|
2936
|
+
estimatedWeight: string;
|
|
2937
|
+
originCity: string;
|
|
2938
|
+
destinationCity: string;
|
|
2939
2939
|
cargoItems?: CargoItem[];
|
|
2940
|
-
|
|
2941
|
-
|
|
2940
|
+
cargoOwnerEntityType?: MANIFEST_ENTITY_TYPE;
|
|
2941
|
+
cargoOwnerEntity?: string;
|
|
2942
|
+
cargoOwnerEntityOther?: string;
|
|
2943
|
+
logisticsEntityType?: MANIFEST_ENTITY_TYPE;
|
|
2944
|
+
logisticsEntity?: string;
|
|
2945
|
+
logisticsEntityOther?: string;
|
|
2946
|
+
cargoReceiverEntityType?: MANIFEST_ENTITY_TYPE;
|
|
2947
|
+
cargoReceiverEntity?: string;
|
|
2948
|
+
cargoReceiverEntityOther?: string;
|
|
2942
2949
|
}
|
|
2943
2950
|
interface CardVehicleOwnerFormProps {
|
|
2944
2951
|
/**
|
|
@@ -3853,4 +3860,4 @@ interface ModalListMenuServiceProps {
|
|
|
3853
3860
|
|
|
3854
3861
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3855
3862
|
|
|
3856
|
-
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, 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$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 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, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, 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 Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, 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, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
|
3863
|
+
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, 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$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 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, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, MANIFEST_ENTITY, type MANIFEST_ENTITY_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, 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 Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, 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, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
package/dist/index.d.ts
CHANGED
|
@@ -1725,6 +1725,11 @@ declare const MY_TICKET_STATUS: {
|
|
|
1725
1725
|
readonly REFUND: 11;
|
|
1726
1726
|
};
|
|
1727
1727
|
type MY_TICKET_STATUS_TYPE = typeof MY_TICKET_STATUS[keyof typeof MY_TICKET_STATUS];
|
|
1728
|
+
declare const MANIFEST_ENTITY: {
|
|
1729
|
+
readonly COMPANY: "company";
|
|
1730
|
+
readonly INDIVIDUAL: "individual";
|
|
1731
|
+
};
|
|
1732
|
+
type MANIFEST_ENTITY_TYPE = typeof MANIFEST_ENTITY[keyof typeof MANIFEST_ENTITY];
|
|
1728
1733
|
|
|
1729
1734
|
interface TypeOfServiceChild {
|
|
1730
1735
|
id: number;
|
|
@@ -2921,24 +2926,26 @@ interface CargoItem {
|
|
|
2921
2926
|
quantity?: number | string;
|
|
2922
2927
|
industryType?: string;
|
|
2923
2928
|
cargoCategory?: string;
|
|
2929
|
+
unit: string;
|
|
2924
2930
|
}
|
|
2925
2931
|
interface VehicleOwner {
|
|
2926
2932
|
id: number;
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
cargoOwnerName?: string;
|
|
2934
|
-
logisticsCompanyType?: 'Perusahaan' | 'Perseorangan';
|
|
2935
|
-
logisticsCompanyName?: string;
|
|
2936
|
-
cargoReceiverType?: 'Perusahaan' | 'Perseorangan';
|
|
2937
|
-
cargoReceiverName?: string;
|
|
2938
|
-
cargoWeight?: number | string;
|
|
2933
|
+
senderEntityType: MANIFEST_ENTITY_TYPE;
|
|
2934
|
+
senderEntity: string;
|
|
2935
|
+
senderEntityOther: string;
|
|
2936
|
+
estimatedWeight: string;
|
|
2937
|
+
originCity: string;
|
|
2938
|
+
destinationCity: string;
|
|
2939
2939
|
cargoItems?: CargoItem[];
|
|
2940
|
-
|
|
2941
|
-
|
|
2940
|
+
cargoOwnerEntityType?: MANIFEST_ENTITY_TYPE;
|
|
2941
|
+
cargoOwnerEntity?: string;
|
|
2942
|
+
cargoOwnerEntityOther?: string;
|
|
2943
|
+
logisticsEntityType?: MANIFEST_ENTITY_TYPE;
|
|
2944
|
+
logisticsEntity?: string;
|
|
2945
|
+
logisticsEntityOther?: string;
|
|
2946
|
+
cargoReceiverEntityType?: MANIFEST_ENTITY_TYPE;
|
|
2947
|
+
cargoReceiverEntity?: string;
|
|
2948
|
+
cargoReceiverEntityOther?: string;
|
|
2942
2949
|
}
|
|
2943
2950
|
interface CardVehicleOwnerFormProps {
|
|
2944
2951
|
/**
|
|
@@ -3853,4 +3860,4 @@ interface ModalListMenuServiceProps {
|
|
|
3853
3860
|
|
|
3854
3861
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3855
3862
|
|
|
3856
|
-
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, 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$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 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, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, 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 Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, 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, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
|
3863
|
+
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, 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$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 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, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, MANIFEST_ENTITY, type MANIFEST_ENTITY_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, 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 Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, 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, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
package/dist/index.js
CHANGED
|
@@ -463,6 +463,10 @@ var MY_TICKET_STATUS = {
|
|
|
463
463
|
EXPIRED_BOARDING: 10,
|
|
464
464
|
REFUND: 11
|
|
465
465
|
};
|
|
466
|
+
var MANIFEST_ENTITY = {
|
|
467
|
+
COMPANY: "company",
|
|
468
|
+
INDIVIDUAL: "individual"
|
|
469
|
+
};
|
|
466
470
|
var useStyles2 = reactComponents.makeStyles({
|
|
467
471
|
carousel: {},
|
|
468
472
|
carouselContainer: {
|
|
@@ -12250,22 +12254,22 @@ var CardVehicleOwnerForm = ({
|
|
|
12250
12254
|
{
|
|
12251
12255
|
disabled,
|
|
12252
12256
|
layout: "horizontal",
|
|
12253
|
-
value: owner.
|
|
12257
|
+
value: owner.senderEntityType,
|
|
12254
12258
|
onChange: (_, data) => onUpdateOwner(owner.id, {
|
|
12255
|
-
|
|
12259
|
+
senderEntityType: data.value
|
|
12256
12260
|
}),
|
|
12257
12261
|
children: [
|
|
12258
12262
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12259
12263
|
reactComponents.Radio,
|
|
12260
12264
|
{
|
|
12261
|
-
value:
|
|
12265
|
+
value: MANIFEST_ENTITY.COMPANY,
|
|
12262
12266
|
label: mergedLabels.senderTypeCompany
|
|
12263
12267
|
}
|
|
12264
12268
|
),
|
|
12265
12269
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12266
12270
|
reactComponents.Radio,
|
|
12267
12271
|
{
|
|
12268
|
-
value:
|
|
12272
|
+
value: MANIFEST_ENTITY.INDIVIDUAL,
|
|
12269
12273
|
label: mergedLabels.senderTypeIndividual
|
|
12270
12274
|
}
|
|
12271
12275
|
)
|
|
@@ -12279,11 +12283,11 @@ var CardVehicleOwnerForm = ({
|
|
|
12279
12283
|
{
|
|
12280
12284
|
control,
|
|
12281
12285
|
disabled,
|
|
12282
|
-
name: `owners.${index}.
|
|
12283
|
-
placeholder: owner.
|
|
12286
|
+
name: `owners.${index}.senderEntity`,
|
|
12287
|
+
placeholder: owner.senderEntityType === MANIFEST_ENTITY.COMPANY ? mergedLabels.selectCompanyPlaceholder : mergedLabels.inputSenderNamePlaceholder,
|
|
12284
12288
|
size: "large",
|
|
12285
|
-
type: owner.
|
|
12286
|
-
options: owner.
|
|
12289
|
+
type: owner.senderEntityType === MANIFEST_ENTITY.COMPANY ? "select" : "text",
|
|
12290
|
+
options: owner.senderEntityType === MANIFEST_ENTITY.COMPANY ? companySenderOptions : []
|
|
12287
12291
|
}
|
|
12288
12292
|
)
|
|
12289
12293
|
] }),
|
|
@@ -12360,22 +12364,22 @@ var CardVehicleOwnerForm = ({
|
|
|
12360
12364
|
{
|
|
12361
12365
|
disabled,
|
|
12362
12366
|
layout: "horizontal",
|
|
12363
|
-
value: owner.
|
|
12367
|
+
value: owner.cargoOwnerEntityType || MANIFEST_ENTITY.COMPANY,
|
|
12364
12368
|
onChange: (_, data) => onUpdateOwner(owner.id, {
|
|
12365
|
-
|
|
12369
|
+
cargoOwnerEntityType: data.value
|
|
12366
12370
|
}),
|
|
12367
12371
|
children: [
|
|
12368
12372
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12369
12373
|
reactComponents.Radio,
|
|
12370
12374
|
{
|
|
12371
|
-
value:
|
|
12375
|
+
value: MANIFEST_ENTITY.COMPANY,
|
|
12372
12376
|
label: mergedLabels.senderTypeCompany
|
|
12373
12377
|
}
|
|
12374
12378
|
),
|
|
12375
12379
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12376
12380
|
reactComponents.Radio,
|
|
12377
12381
|
{
|
|
12378
|
-
value:
|
|
12382
|
+
value: MANIFEST_ENTITY.INDIVIDUAL,
|
|
12379
12383
|
label: mergedLabels.senderTypeIndividual
|
|
12380
12384
|
}
|
|
12381
12385
|
)
|
|
@@ -12390,10 +12394,10 @@ var CardVehicleOwnerForm = ({
|
|
|
12390
12394
|
disabled,
|
|
12391
12395
|
control,
|
|
12392
12396
|
name: `looseCargoOwners.${index}.cargoOwnerName`,
|
|
12393
|
-
placeholder: owner.
|
|
12397
|
+
placeholder: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY ? mergedLabels.cargoOwnerCompanyPlaceholder : mergedLabels.cargoOwnerIndividualPlaceholder,
|
|
12394
12398
|
size: "large",
|
|
12395
|
-
type: owner.
|
|
12396
|
-
options: owner.
|
|
12399
|
+
type: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY ? "select" : "text",
|
|
12400
|
+
options: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY ? companyOwnerOptions : []
|
|
12397
12401
|
}
|
|
12398
12402
|
),
|
|
12399
12403
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12426,22 +12430,22 @@ var CardVehicleOwnerForm = ({
|
|
|
12426
12430
|
{
|
|
12427
12431
|
disabled,
|
|
12428
12432
|
layout: "horizontal",
|
|
12429
|
-
value: owner.
|
|
12433
|
+
value: owner.logisticsEntityType || "Perseorangan",
|
|
12430
12434
|
onChange: (_, data) => onUpdateOwner(owner.id, {
|
|
12431
|
-
|
|
12435
|
+
logisticsEntityType: data.value
|
|
12432
12436
|
}),
|
|
12433
12437
|
children: [
|
|
12434
12438
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12435
12439
|
reactComponents.Radio,
|
|
12436
12440
|
{
|
|
12437
|
-
value:
|
|
12441
|
+
value: MANIFEST_ENTITY.COMPANY,
|
|
12438
12442
|
label: mergedLabels.senderTypeCompany
|
|
12439
12443
|
}
|
|
12440
12444
|
),
|
|
12441
12445
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12442
12446
|
reactComponents.Radio,
|
|
12443
12447
|
{
|
|
12444
|
-
value:
|
|
12448
|
+
value: MANIFEST_ENTITY.INDIVIDUAL,
|
|
12445
12449
|
label: mergedLabels.senderTypeIndividual
|
|
12446
12450
|
}
|
|
12447
12451
|
)
|
|
@@ -12456,10 +12460,10 @@ var CardVehicleOwnerForm = ({
|
|
|
12456
12460
|
control,
|
|
12457
12461
|
disabled,
|
|
12458
12462
|
name: `looseCargoOwners.${index}.logisticsCompanyName`,
|
|
12459
|
-
placeholder: owner.
|
|
12463
|
+
placeholder: owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY ? mergedLabels.logisticsCompanyPlaceholder : mergedLabels.logisticsIndividualPlaceholder,
|
|
12460
12464
|
size: "large",
|
|
12461
|
-
type: owner.
|
|
12462
|
-
options: owner.
|
|
12465
|
+
type: owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY ? "select" : "text",
|
|
12466
|
+
options: owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY ? companyLogisticsOptions : []
|
|
12463
12467
|
}
|
|
12464
12468
|
),
|
|
12465
12469
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12482,22 +12486,22 @@ var CardVehicleOwnerForm = ({
|
|
|
12482
12486
|
{
|
|
12483
12487
|
disabled,
|
|
12484
12488
|
layout: "horizontal",
|
|
12485
|
-
value: owner.
|
|
12489
|
+
value: owner.cargoReceiverEntityType || MANIFEST_ENTITY.COMPANY,
|
|
12486
12490
|
onChange: (_, data) => onUpdateOwner(owner.id, {
|
|
12487
|
-
|
|
12491
|
+
cargoReceiverEntityType: data.value
|
|
12488
12492
|
}),
|
|
12489
12493
|
children: [
|
|
12490
12494
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12491
12495
|
reactComponents.Radio,
|
|
12492
12496
|
{
|
|
12493
|
-
value:
|
|
12497
|
+
value: MANIFEST_ENTITY.COMPANY,
|
|
12494
12498
|
label: mergedLabels.senderTypeCompany
|
|
12495
12499
|
}
|
|
12496
12500
|
),
|
|
12497
12501
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12498
12502
|
reactComponents.Radio,
|
|
12499
12503
|
{
|
|
12500
|
-
value:
|
|
12504
|
+
value: MANIFEST_ENTITY.INDIVIDUAL,
|
|
12501
12505
|
label: mergedLabels.senderTypeIndividual
|
|
12502
12506
|
}
|
|
12503
12507
|
)
|
|
@@ -12510,10 +12514,10 @@ var CardVehicleOwnerForm = ({
|
|
|
12510
12514
|
control,
|
|
12511
12515
|
disabled,
|
|
12512
12516
|
name: `looseCargoOwners.${index}.cargoReceiverName`,
|
|
12513
|
-
placeholder: owner.
|
|
12517
|
+
placeholder: owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY ? mergedLabels.cargoReceiverCompanyPlaceholder : mergedLabels.cargoReceiverIndividualPlaceholder,
|
|
12514
12518
|
size: "large",
|
|
12515
|
-
type: owner.
|
|
12516
|
-
options: owner.
|
|
12519
|
+
type: owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY ? "select" : "text",
|
|
12520
|
+
options: owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY ? companyReceiverOptions : []
|
|
12517
12521
|
}
|
|
12518
12522
|
),
|
|
12519
12523
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -16203,6 +16207,7 @@ exports.HTTP_STATUS = HTTP_STATUS;
|
|
|
16203
16207
|
exports.IDENTITY_TYPE = IDENTITY_TYPE;
|
|
16204
16208
|
exports.InputDynamic = InputDynamic_default;
|
|
16205
16209
|
exports.LOAD_TYPE = LOAD_TYPE;
|
|
16210
|
+
exports.MANIFEST_ENTITY = MANIFEST_ENTITY;
|
|
16206
16211
|
exports.MODAL_PRESETS = MODAL_PRESETS;
|
|
16207
16212
|
exports.MY_TICKET_STATUS = MY_TICKET_STATUS;
|
|
16208
16213
|
exports.MY_TICKET_TAB = MY_TICKET_TAB;
|