@asdp/ferryui 0.1.22-dev.9540 → 0.1.22-dev.9545
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 +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +159 -151
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +159 -151
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1730,6 +1730,14 @@ declare const MANIFEST_ENTITY: {
|
|
|
1730
1730
|
readonly INDIVIDUAL: "individual";
|
|
1731
1731
|
};
|
|
1732
1732
|
type MANIFEST_ENTITY_TYPE = typeof MANIFEST_ENTITY[keyof typeof MANIFEST_ENTITY];
|
|
1733
|
+
interface LoadType {
|
|
1734
|
+
id: number;
|
|
1735
|
+
name: string;
|
|
1736
|
+
unit?: {
|
|
1737
|
+
id: string;
|
|
1738
|
+
name: string;
|
|
1739
|
+
};
|
|
1740
|
+
}
|
|
1733
1741
|
|
|
1734
1742
|
interface TypeOfServiceChild {
|
|
1735
1743
|
id: number;
|
|
@@ -3033,6 +3041,7 @@ interface CardVehicleOwnerFormProps {
|
|
|
3033
3041
|
* Options for load type select inputs
|
|
3034
3042
|
*/
|
|
3035
3043
|
loadTypeOptions?: SelectOption[];
|
|
3044
|
+
loadTypes?: LoadType[];
|
|
3036
3045
|
/**
|
|
3037
3046
|
* Options for industry select inputs
|
|
3038
3047
|
*/
|
|
@@ -3861,4 +3870,4 @@ interface ModalListMenuServiceProps {
|
|
|
3861
3870
|
|
|
3862
3871
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3863
3872
|
|
|
3864
|
-
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 };
|
|
3873
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1730,6 +1730,14 @@ declare const MANIFEST_ENTITY: {
|
|
|
1730
1730
|
readonly INDIVIDUAL: "individual";
|
|
1731
1731
|
};
|
|
1732
1732
|
type MANIFEST_ENTITY_TYPE = typeof MANIFEST_ENTITY[keyof typeof MANIFEST_ENTITY];
|
|
1733
|
+
interface LoadType {
|
|
1734
|
+
id: number;
|
|
1735
|
+
name: string;
|
|
1736
|
+
unit?: {
|
|
1737
|
+
id: string;
|
|
1738
|
+
name: string;
|
|
1739
|
+
};
|
|
1740
|
+
}
|
|
1733
1741
|
|
|
1734
1742
|
interface TypeOfServiceChild {
|
|
1735
1743
|
id: number;
|
|
@@ -3033,6 +3041,7 @@ interface CardVehicleOwnerFormProps {
|
|
|
3033
3041
|
* Options for load type select inputs
|
|
3034
3042
|
*/
|
|
3035
3043
|
loadTypeOptions?: SelectOption[];
|
|
3044
|
+
loadTypes?: LoadType[];
|
|
3036
3045
|
/**
|
|
3037
3046
|
* Options for industry select inputs
|
|
3038
3047
|
*/
|
|
@@ -3861,4 +3870,4 @@ interface ModalListMenuServiceProps {
|
|
|
3861
3870
|
|
|
3862
3871
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3863
3872
|
|
|
3864
|
-
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 };
|
|
3873
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -12162,6 +12162,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12162
12162
|
cityDestinationOptions = [],
|
|
12163
12163
|
commodityOptions = [],
|
|
12164
12164
|
loadTypeOptions = [],
|
|
12165
|
+
loadTypes = [],
|
|
12165
12166
|
industryOptions = [],
|
|
12166
12167
|
loadCategoryOptions = [],
|
|
12167
12168
|
language = "id",
|
|
@@ -12776,55 +12777,132 @@ var CardVehicleOwnerForm = ({
|
|
|
12776
12777
|
}
|
|
12777
12778
|
)
|
|
12778
12779
|
] }),
|
|
12779
|
-
|
|
12780
|
-
|
|
12781
|
-
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12788
|
-
|
|
12789
|
-
|
|
12790
|
-
|
|
12791
|
-
|
|
12792
|
-
|
|
12793
|
-
|
|
12794
|
-
|
|
12795
|
-
|
|
12796
|
-
"
|
|
12797
|
-
{
|
|
12798
|
-
|
|
12799
|
-
|
|
12800
|
-
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12812
|
-
|
|
12813
|
-
|
|
12814
|
-
|
|
12815
|
-
|
|
12780
|
+
(() => {
|
|
12781
|
+
const type = watch(
|
|
12782
|
+
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
12783
|
+
);
|
|
12784
|
+
const selectedLoadType = loadTypes.find(
|
|
12785
|
+
(loadType) => loadType.id === type
|
|
12786
|
+
);
|
|
12787
|
+
if (!selectedLoadType) {
|
|
12788
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
12789
|
+
}
|
|
12790
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { md: 3, children: [
|
|
12791
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: mergedLabels.cargoQuantityLabel }),
|
|
12792
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12793
|
+
"div",
|
|
12794
|
+
{
|
|
12795
|
+
style: {
|
|
12796
|
+
display: "flex",
|
|
12797
|
+
alignItems: "center",
|
|
12798
|
+
border: `1px solid ${reactComponents.tokens.colorNeutralStroke1}`,
|
|
12799
|
+
borderRadius: reactComponents.tokens.borderRadiusMedium,
|
|
12800
|
+
height: "40px",
|
|
12801
|
+
padding: "0 12px",
|
|
12802
|
+
backgroundColor: reactComponents.tokens.colorNeutralBackground1
|
|
12803
|
+
},
|
|
12804
|
+
children: [
|
|
12805
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { flex: 0.5 } }),
|
|
12806
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12807
|
+
"div",
|
|
12808
|
+
{
|
|
12809
|
+
style: {
|
|
12810
|
+
display: "flex",
|
|
12811
|
+
alignItems: "center",
|
|
12812
|
+
gap: "12px"
|
|
12813
|
+
},
|
|
12814
|
+
children: [
|
|
12815
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12816
|
+
reactComponents.Button,
|
|
12817
|
+
{
|
|
12818
|
+
appearance: "transparent",
|
|
12819
|
+
disabled,
|
|
12820
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12821
|
+
react.Icon,
|
|
12822
|
+
{
|
|
12823
|
+
icon: "fluent:subtract-circle-24-regular",
|
|
12824
|
+
style: {
|
|
12825
|
+
fontSize: "24px",
|
|
12826
|
+
color: reactComponents.tokens.colorNeutralForeground4
|
|
12827
|
+
}
|
|
12828
|
+
}
|
|
12829
|
+
),
|
|
12830
|
+
"aria-label": mergedLabels.decrementQuantityAriaLabel,
|
|
12831
|
+
size: "small",
|
|
12832
|
+
onClick: () => {
|
|
12833
|
+
const currentVal = getValues(
|
|
12834
|
+
`owners.${index}.cargo.${cargoIndex}.quantity`
|
|
12835
|
+
) || 0;
|
|
12836
|
+
const currentQty = Number(currentVal);
|
|
12837
|
+
if (currentQty > 0) {
|
|
12838
|
+
const newVal = currentQty - 1;
|
|
12839
|
+
setValue(
|
|
12840
|
+
`owners.${index}.cargo.${cargoIndex}.quantity`,
|
|
12841
|
+
newVal
|
|
12842
|
+
);
|
|
12843
|
+
onUpdateCargoQuantity(
|
|
12844
|
+
owner.id,
|
|
12845
|
+
cargo.id,
|
|
12846
|
+
newVal
|
|
12847
|
+
);
|
|
12816
12848
|
}
|
|
12849
|
+
},
|
|
12850
|
+
style: {
|
|
12851
|
+
minWidth: "32px",
|
|
12852
|
+
padding: "0"
|
|
12817
12853
|
}
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12854
|
+
}
|
|
12855
|
+
),
|
|
12856
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { width: "40px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12857
|
+
reactHookForm.Controller,
|
|
12858
|
+
{
|
|
12859
|
+
name: `owners.${index}.cargo.${cargoIndex}.quantity`,
|
|
12860
|
+
control,
|
|
12861
|
+
disabled,
|
|
12862
|
+
render: ({ field }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12863
|
+
"input",
|
|
12864
|
+
{
|
|
12865
|
+
...field,
|
|
12866
|
+
min: 1,
|
|
12867
|
+
type: "number",
|
|
12868
|
+
style: {
|
|
12869
|
+
border: "none",
|
|
12870
|
+
width: "100%",
|
|
12871
|
+
textAlign: "center",
|
|
12872
|
+
outline: "none",
|
|
12873
|
+
backgroundColor: "transparent",
|
|
12874
|
+
color: reactComponents.tokens.colorNeutralForeground1,
|
|
12875
|
+
fontSize: reactComponents.tokens.fontSizeBase400,
|
|
12876
|
+
fontFamily: reactComponents.tokens.fontFamilyBase
|
|
12877
|
+
},
|
|
12878
|
+
onWheel: (e) => e.target.blur()
|
|
12879
|
+
}
|
|
12880
|
+
)
|
|
12881
|
+
}
|
|
12882
|
+
) }),
|
|
12883
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12884
|
+
reactComponents.Button,
|
|
12885
|
+
{
|
|
12886
|
+
appearance: "transparent",
|
|
12887
|
+
disabled,
|
|
12888
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12889
|
+
react.Icon,
|
|
12890
|
+
{
|
|
12891
|
+
icon: "fluent:add-circle-24-regular",
|
|
12892
|
+
style: {
|
|
12893
|
+
fontSize: "24px",
|
|
12894
|
+
color: reactComponents.tokens.colorBrandStroke1
|
|
12895
|
+
}
|
|
12896
|
+
}
|
|
12897
|
+
),
|
|
12898
|
+
"aria-label": mergedLabels.incrementQuantityAriaLabel,
|
|
12899
|
+
size: "small",
|
|
12900
|
+
onClick: () => {
|
|
12901
|
+
const currentVal = getValues(
|
|
12902
|
+
`owners.${index}.cargo.${cargoIndex}.quantity`
|
|
12903
|
+
) || 0;
|
|
12904
|
+
const currentQty = Number(currentVal);
|
|
12905
|
+
const newVal = currentQty + 1;
|
|
12828
12906
|
setValue(
|
|
12829
12907
|
`owners.${index}.cargo.${cargoIndex}.quantity`,
|
|
12830
12908
|
newVal
|
|
@@ -12834,112 +12912,42 @@ var CardVehicleOwnerForm = ({
|
|
|
12834
12912
|
cargo.id,
|
|
12835
12913
|
newVal
|
|
12836
12914
|
);
|
|
12915
|
+
},
|
|
12916
|
+
style: {
|
|
12917
|
+
minWidth: "32px",
|
|
12918
|
+
padding: "0"
|
|
12837
12919
|
}
|
|
12838
|
-
},
|
|
12839
|
-
style: {
|
|
12840
|
-
minWidth: "32px",
|
|
12841
|
-
padding: "0"
|
|
12842
|
-
}
|
|
12843
|
-
}
|
|
12844
|
-
),
|
|
12845
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { width: "40px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12846
|
-
reactHookForm.Controller,
|
|
12847
|
-
{
|
|
12848
|
-
name: `owners.${index}.cargo.${cargoIndex}.quantity`,
|
|
12849
|
-
control,
|
|
12850
|
-
disabled,
|
|
12851
|
-
render: ({ field }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12852
|
-
"input",
|
|
12853
|
-
{
|
|
12854
|
-
...field,
|
|
12855
|
-
type: "number",
|
|
12856
|
-
style: {
|
|
12857
|
-
border: "none",
|
|
12858
|
-
width: "100%",
|
|
12859
|
-
textAlign: "center",
|
|
12860
|
-
outline: "none",
|
|
12861
|
-
backgroundColor: "transparent",
|
|
12862
|
-
color: reactComponents.tokens.colorNeutralForeground1,
|
|
12863
|
-
fontSize: reactComponents.tokens.fontSizeBase400,
|
|
12864
|
-
fontFamily: reactComponents.tokens.fontFamilyBase
|
|
12865
|
-
},
|
|
12866
|
-
onWheel: (e) => e.target.blur()
|
|
12867
|
-
}
|
|
12868
|
-
)
|
|
12869
|
-
}
|
|
12870
|
-
) }),
|
|
12871
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12872
|
-
reactComponents.Button,
|
|
12873
|
-
{
|
|
12874
|
-
appearance: "transparent",
|
|
12875
|
-
disabled,
|
|
12876
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12877
|
-
react.Icon,
|
|
12878
|
-
{
|
|
12879
|
-
icon: "fluent:add-circle-24-regular",
|
|
12880
|
-
style: {
|
|
12881
|
-
fontSize: "24px",
|
|
12882
|
-
color: reactComponents.tokens.colorBrandStroke1
|
|
12883
|
-
}
|
|
12884
|
-
}
|
|
12885
|
-
),
|
|
12886
|
-
"aria-label": mergedLabels.incrementQuantityAriaLabel,
|
|
12887
|
-
size: "small",
|
|
12888
|
-
onClick: () => {
|
|
12889
|
-
const currentVal = getValues(
|
|
12890
|
-
`owners.${index}.cargo.${cargoIndex}.quantity`
|
|
12891
|
-
) || 0;
|
|
12892
|
-
const currentQty = Number(currentVal);
|
|
12893
|
-
const newVal = currentQty + 1;
|
|
12894
|
-
setValue(
|
|
12895
|
-
`owners.${index}.cargo.${cargoIndex}.quantity`,
|
|
12896
|
-
newVal
|
|
12897
|
-
);
|
|
12898
|
-
onUpdateCargoQuantity(
|
|
12899
|
-
owner.id,
|
|
12900
|
-
cargo.id,
|
|
12901
|
-
newVal
|
|
12902
|
-
);
|
|
12903
|
-
},
|
|
12904
|
-
style: {
|
|
12905
|
-
minWidth: "32px",
|
|
12906
|
-
padding: "0"
|
|
12907
12920
|
}
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
|
|
12929
|
-
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
)
|
|
12939
|
-
]
|
|
12940
|
-
}
|
|
12941
|
-
)
|
|
12942
|
-
] }),
|
|
12921
|
+
)
|
|
12922
|
+
]
|
|
12923
|
+
}
|
|
12924
|
+
),
|
|
12925
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12926
|
+
"div",
|
|
12927
|
+
{
|
|
12928
|
+
style: {
|
|
12929
|
+
flex: 1,
|
|
12930
|
+
textAlign: "left",
|
|
12931
|
+
color: reactComponents.tokens.colorNeutralForeground1,
|
|
12932
|
+
fontSize: reactComponents.tokens.fontSizeBase300,
|
|
12933
|
+
paddingRight: "8px"
|
|
12934
|
+
},
|
|
12935
|
+
children: (() => {
|
|
12936
|
+
const type2 = watch(
|
|
12937
|
+
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
12938
|
+
);
|
|
12939
|
+
const selectedLoadType2 = loadTypes.find(
|
|
12940
|
+
(loadType) => loadType.id === type2
|
|
12941
|
+
);
|
|
12942
|
+
return selectedLoadType2?.unit?.name || "87";
|
|
12943
|
+
})()
|
|
12944
|
+
}
|
|
12945
|
+
)
|
|
12946
|
+
]
|
|
12947
|
+
}
|
|
12948
|
+
)
|
|
12949
|
+
] });
|
|
12950
|
+
})(),
|
|
12943
12951
|
/* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { md: 3, children: [
|
|
12944
12952
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: mergedLabels.priceLabel }),
|
|
12945
12953
|
/* @__PURE__ */ jsxRuntime.jsx(
|