@asdp/ferryui 0.1.22-dev.9567 → 0.1.22-dev.9577
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 +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +28 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1738,6 +1738,10 @@ interface LoadType {
|
|
|
1738
1738
|
name: string;
|
|
1739
1739
|
};
|
|
1740
1740
|
}
|
|
1741
|
+
declare const HARDCODED_ID: {
|
|
1742
|
+
readonly FAQ_ID_PEMESANAN_TIKET: 1;
|
|
1743
|
+
readonly COMPANY_ID_LAINNYA: "999999";
|
|
1744
|
+
};
|
|
1741
1745
|
|
|
1742
1746
|
interface TypeOfServiceChild {
|
|
1743
1747
|
id: number;
|
|
@@ -3862,4 +3866,4 @@ interface ModalListMenuServiceProps {
|
|
|
3862
3866
|
|
|
3863
3867
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3864
3868
|
|
|
3865
|
-
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, type LoadType, 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 };
|
|
3869
|
+
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, HARDCODED_ID, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, type LoadType, 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
|
@@ -1738,6 +1738,10 @@ interface LoadType {
|
|
|
1738
1738
|
name: string;
|
|
1739
1739
|
};
|
|
1740
1740
|
}
|
|
1741
|
+
declare const HARDCODED_ID: {
|
|
1742
|
+
readonly FAQ_ID_PEMESANAN_TIKET: 1;
|
|
1743
|
+
readonly COMPANY_ID_LAINNYA: "999999";
|
|
1744
|
+
};
|
|
1741
1745
|
|
|
1742
1746
|
interface TypeOfServiceChild {
|
|
1743
1747
|
id: number;
|
|
@@ -3862,4 +3866,4 @@ interface ModalListMenuServiceProps {
|
|
|
3862
3866
|
|
|
3863
3867
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3864
3868
|
|
|
3865
|
-
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, type LoadType, 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 };
|
|
3869
|
+
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, HARDCODED_ID, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, type LoadType, 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
|
@@ -467,6 +467,10 @@ var MANIFEST_ENTITY = {
|
|
|
467
467
|
COMPANY: "company",
|
|
468
468
|
INDIVIDUAL: "individual"
|
|
469
469
|
};
|
|
470
|
+
var HARDCODED_ID = {
|
|
471
|
+
FAQ_ID_PEMESANAN_TIKET: 1,
|
|
472
|
+
COMPANY_ID_LAINNYA: "999999"
|
|
473
|
+
};
|
|
470
474
|
var useStyles2 = reactComponents.makeStyles({
|
|
471
475
|
carousel: {},
|
|
472
476
|
carouselContainer: {
|
|
@@ -3634,7 +3638,7 @@ var DEFAULT_LABELS7 = {
|
|
|
3634
3638
|
hidePasswordAriaLabel: "Sembunyikan kata sandi",
|
|
3635
3639
|
datePickerPlaceholder: "Pilih tanggal",
|
|
3636
3640
|
phoneDefaultPlaceholder: "Nomor telepon",
|
|
3637
|
-
requiredFieldError: "
|
|
3641
|
+
requiredFieldError: "wajib diisi",
|
|
3638
3642
|
invalidEmailError: "Email tidak valid",
|
|
3639
3643
|
emailOrPhoneRequiredError: "Email atau nomor HP wajib diisi",
|
|
3640
3644
|
invalidEmailFormatError: "Format email tidak valid",
|
|
@@ -3657,7 +3661,7 @@ var DEFAULT_LABELS7 = {
|
|
|
3657
3661
|
hidePasswordAriaLabel: "Hide password",
|
|
3658
3662
|
datePickerPlaceholder: "Select date",
|
|
3659
3663
|
phoneDefaultPlaceholder: "Phone number",
|
|
3660
|
-
requiredFieldError: "
|
|
3664
|
+
requiredFieldError: "is required",
|
|
3661
3665
|
invalidEmailError: "Invalid email",
|
|
3662
3666
|
emailOrPhoneRequiredError: "Email or phone number is required",
|
|
3663
3667
|
invalidEmailFormatError: "Invalid email format",
|
|
@@ -5235,8 +5239,9 @@ var InputDynamic = ({
|
|
|
5235
5239
|
};
|
|
5236
5240
|
const getValidationRules = () => {
|
|
5237
5241
|
const rules = {};
|
|
5242
|
+
const requiredMessage = typeof validationRules?.required === "string" ? validationRules.required : `${label || (language === "id" ? "Field ini" : "This field")} ${mergedLabels.requiredFieldError}`;
|
|
5238
5243
|
if (required) {
|
|
5239
|
-
rules.required =
|
|
5244
|
+
rules.required = requiredMessage;
|
|
5240
5245
|
}
|
|
5241
5246
|
if (validationRules?.minLength) {
|
|
5242
5247
|
rules.minLength = validationRules.minLength;
|
|
@@ -5265,7 +5270,7 @@ var InputDynamic = ({
|
|
|
5265
5270
|
if (type === "emailOrPhone") {
|
|
5266
5271
|
rules.validate = (value) => {
|
|
5267
5272
|
if (required && !value) {
|
|
5268
|
-
return mergedLabels.emailOrPhoneRequiredError;
|
|
5273
|
+
return label ? requiredMessage : mergedLabels.emailOrPhoneRequiredError;
|
|
5269
5274
|
}
|
|
5270
5275
|
const stringValue = typeof value === "string" ? value : "";
|
|
5271
5276
|
if (!stringValue) return true;
|
|
@@ -5288,7 +5293,7 @@ var InputDynamic = ({
|
|
|
5288
5293
|
if (type === "identity") {
|
|
5289
5294
|
rules.validate = (value) => {
|
|
5290
5295
|
if (required && !value) {
|
|
5291
|
-
return
|
|
5296
|
+
return requiredMessage;
|
|
5292
5297
|
}
|
|
5293
5298
|
const stringValue = typeof value === "string" ? value : value?.phoneNumber || "";
|
|
5294
5299
|
if (!stringValue) return true;
|
|
@@ -5309,7 +5314,7 @@ var InputDynamic = ({
|
|
|
5309
5314
|
if (type === "phone") {
|
|
5310
5315
|
rules.validate = (value) => {
|
|
5311
5316
|
if (required && !value) {
|
|
5312
|
-
return
|
|
5317
|
+
return requiredMessage;
|
|
5313
5318
|
}
|
|
5314
5319
|
if (value) {
|
|
5315
5320
|
const stringValue = typeof value === "string" ? value : String(value);
|
|
@@ -10974,9 +10979,15 @@ var ModalPassengerForm = ({
|
|
|
10974
10979
|
const [capturedImage, setCapturedImage] = React.useState(null);
|
|
10975
10980
|
const [stream, setStream] = React.useState(null);
|
|
10976
10981
|
const videoRef = React.useRef(null);
|
|
10977
|
-
const { control, handleSubmit, reset, watch, setValue } = reactHookForm.useForm({
|
|
10982
|
+
const { control, handleSubmit, reset, watch, setValue, trigger } = reactHookForm.useForm({
|
|
10983
|
+
mode: "all",
|
|
10978
10984
|
defaultValues
|
|
10979
10985
|
});
|
|
10986
|
+
React.useEffect(() => {
|
|
10987
|
+
if (open) {
|
|
10988
|
+
trigger();
|
|
10989
|
+
}
|
|
10990
|
+
}, [open, trigger]);
|
|
10980
10991
|
const watchIdentityTypeId = watch("identityTypeId");
|
|
10981
10992
|
const watchPassportCountryId = watch("countryId");
|
|
10982
10993
|
const watchBirthdate = watch("birthdate");
|
|
@@ -11976,6 +11987,7 @@ var CardVehicleDetail = ({
|
|
|
11976
11987
|
disabled,
|
|
11977
11988
|
name: vehicleNumberName,
|
|
11978
11989
|
placeholder: mergedLabels.vehicleNumberPlaceholder,
|
|
11990
|
+
required: true,
|
|
11979
11991
|
type: "text"
|
|
11980
11992
|
}
|
|
11981
11993
|
)
|
|
@@ -12284,14 +12296,14 @@ var CardVehicleOwnerForm = ({
|
|
|
12284
12296
|
reactComponents.Radio,
|
|
12285
12297
|
{
|
|
12286
12298
|
value: MANIFEST_ENTITY.COMPANY,
|
|
12287
|
-
label:
|
|
12299
|
+
label: mergedLabels.entityTypeCompany
|
|
12288
12300
|
}
|
|
12289
12301
|
),
|
|
12290
12302
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12291
12303
|
reactComponents.Radio,
|
|
12292
12304
|
{
|
|
12293
12305
|
value: MANIFEST_ENTITY.INDIVIDUAL,
|
|
12294
|
-
label:
|
|
12306
|
+
label: mergedLabels.entityTypeIndividual
|
|
12295
12307
|
}
|
|
12296
12308
|
)
|
|
12297
12309
|
]
|
|
@@ -12303,7 +12315,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12303
12315
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12304
12316
|
reactGridSystem.Col,
|
|
12305
12317
|
{
|
|
12306
|
-
lg: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoOwnerEntity ===
|
|
12318
|
+
lg: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoOwnerEntity === HARDCODED_ID.COMPANY_ID_LAINNYA ? 6 : 12,
|
|
12307
12319
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12308
12320
|
InputDynamic_default,
|
|
12309
12321
|
{
|
|
@@ -12325,7 +12337,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12325
12337
|
)
|
|
12326
12338
|
}
|
|
12327
12339
|
),
|
|
12328
|
-
owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoOwnerEntity ===
|
|
12340
|
+
owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoOwnerEntity === HARDCODED_ID.COMPANY_ID_LAINNYA && /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xl: 6, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12329
12341
|
InputDynamic_default,
|
|
12330
12342
|
{
|
|
12331
12343
|
control,
|
|
@@ -12443,7 +12455,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12443
12455
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12444
12456
|
reactGridSystem.Col,
|
|
12445
12457
|
{
|
|
12446
|
-
lg: owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoReceiverEntity ===
|
|
12458
|
+
lg: owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoReceiverEntity === HARDCODED_ID.COMPANY_ID_LAINNYA ? 6 : 12,
|
|
12447
12459
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12448
12460
|
InputDynamic_default,
|
|
12449
12461
|
{
|
|
@@ -12468,7 +12480,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12468
12480
|
)
|
|
12469
12481
|
}
|
|
12470
12482
|
),
|
|
12471
|
-
owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoReceiverEntity ===
|
|
12483
|
+
owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoReceiverEntity === HARDCODED_ID.COMPANY_ID_LAINNYA && /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { lg: 6, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12472
12484
|
InputDynamic_default,
|
|
12473
12485
|
{
|
|
12474
12486
|
control,
|
|
@@ -12560,7 +12572,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12560
12572
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12561
12573
|
reactGridSystem.Col,
|
|
12562
12574
|
{
|
|
12563
|
-
xl: owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY && owner.logisticsEntity ===
|
|
12575
|
+
xl: owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY && owner.logisticsEntity === HARDCODED_ID.COMPANY_ID_LAINNYA ? 6 : 12,
|
|
12564
12576
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12565
12577
|
InputDynamic_default,
|
|
12566
12578
|
{
|
|
@@ -12585,7 +12597,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12585
12597
|
)
|
|
12586
12598
|
}
|
|
12587
12599
|
),
|
|
12588
|
-
owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY && owner.logisticsEntity ===
|
|
12600
|
+
owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY && owner.logisticsEntity === HARDCODED_ID.COMPANY_ID_LAINNYA && /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xl: 6, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12589
12601
|
InputDynamic_default,
|
|
12590
12602
|
{
|
|
12591
12603
|
control,
|
|
@@ -16387,6 +16399,7 @@ exports.EmptyContent = EmptyContent;
|
|
|
16387
16399
|
exports.EmptyContentDefaultLabels = DEFAULT_LABELS11;
|
|
16388
16400
|
exports.FileUpload = FileUpload_default;
|
|
16389
16401
|
exports.GENDER = GENDER;
|
|
16402
|
+
exports.HARDCODED_ID = HARDCODED_ID;
|
|
16390
16403
|
exports.HTTP_STATUS = HTTP_STATUS;
|
|
16391
16404
|
exports.IDENTITY_TYPE = IDENTITY_TYPE;
|
|
16392
16405
|
exports.InputDynamic = InputDynamic_default;
|