@asdp/ferryui 0.1.22-dev.10231 → 0.1.22-dev.10301
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 +7 -63
- package/dist/index.d.ts +7 -63
- package/dist/index.js +13 -70
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -70
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1645,61 +1645,6 @@ interface ModalTotalPassengersProps {
|
|
|
1645
1645
|
*/
|
|
1646
1646
|
declare const ModalTotalPassengers: React$1.FC<ModalTotalPassengersProps>;
|
|
1647
1647
|
|
|
1648
|
-
declare const API_ENDPOINTS: {
|
|
1649
|
-
readonly PORTS: {
|
|
1650
|
-
readonly ORIGIN: "/v1/surrounding/catalog/ports/list/origin";
|
|
1651
|
-
readonly DESTINATION: "/v1/surrounding/catalog/ports/list/destination";
|
|
1652
|
-
};
|
|
1653
|
-
readonly SERVICES: {
|
|
1654
|
-
readonly LIST: "/v1/surrounding/catalog/service-types";
|
|
1655
|
-
};
|
|
1656
|
-
readonly PASSENGERS: {
|
|
1657
|
-
readonly LIST: "/v1/surrounding/catalog/passenger-types";
|
|
1658
|
-
};
|
|
1659
|
-
readonly AUTH: {
|
|
1660
|
-
readonly LOGIN: "/v1/surrounding/auth/login";
|
|
1661
|
-
readonly REGISTER: "/auth/register";
|
|
1662
|
-
readonly LOGOUT: "/auth/logout";
|
|
1663
|
-
readonly REFRESH: "/auth/refresh";
|
|
1664
|
-
readonly PROFILE: "/auth/profile";
|
|
1665
|
-
readonly UPDATE_PROFILE: "/auth/profile";
|
|
1666
|
-
readonly CHANGE_PASSWORD: "/auth/change-password";
|
|
1667
|
-
readonly FORGOT_PASSWORD: "/auth/forgot-password";
|
|
1668
|
-
readonly RESET_PASSWORD: "/auth/reset-password";
|
|
1669
|
-
readonly VERIFY_EMAIL: "/auth/verify-email";
|
|
1670
|
-
};
|
|
1671
|
-
readonly USERS: {
|
|
1672
|
-
readonly LIST: "/users";
|
|
1673
|
-
readonly CREATE: "/users";
|
|
1674
|
-
readonly DETAIL: (id: string) => string;
|
|
1675
|
-
readonly UPDATE: (id: string) => string;
|
|
1676
|
-
readonly DELETE: (id: string) => string;
|
|
1677
|
-
readonly AVATAR: (id: string) => string;
|
|
1678
|
-
};
|
|
1679
|
-
readonly FILES: {
|
|
1680
|
-
readonly UPLOAD: "/files/upload";
|
|
1681
|
-
readonly DOWNLOAD: (id: string) => string;
|
|
1682
|
-
readonly DELETE: (id: string) => string;
|
|
1683
|
-
readonly LIST: "/files";
|
|
1684
|
-
};
|
|
1685
|
-
readonly DASHBOARD: {
|
|
1686
|
-
readonly STATS: "/dashboard/stats";
|
|
1687
|
-
readonly CHART_DATA: "/dashboard/chart-data";
|
|
1688
|
-
readonly RECENT_ACTIVITIES: "/dashboard/recent-activities";
|
|
1689
|
-
};
|
|
1690
|
-
readonly NOTIFICATIONS: {
|
|
1691
|
-
readonly LIST: "/notifications";
|
|
1692
|
-
readonly MARK_READ: (id: string) => string;
|
|
1693
|
-
readonly MARK_ALL_READ: "/notifications/read-all";
|
|
1694
|
-
readonly DELETE: (id: string) => string;
|
|
1695
|
-
readonly SETTINGS: "/notifications/settings";
|
|
1696
|
-
};
|
|
1697
|
-
readonly SETTINGS: {
|
|
1698
|
-
readonly GENERAL: "/settings/general";
|
|
1699
|
-
readonly SECURITY: "/settings/security";
|
|
1700
|
-
readonly PREFERENCES: "/settings/preferences";
|
|
1701
|
-
};
|
|
1702
|
-
};
|
|
1703
1648
|
declare const API_CONFIG: {
|
|
1704
1649
|
readonly TIMEOUT: 30000;
|
|
1705
1650
|
readonly RETRY_ATTEMPTS: 3;
|
|
@@ -3096,12 +3041,9 @@ interface CardVehicleOwnerFormProps {
|
|
|
3096
3041
|
/**
|
|
3097
3042
|
* Options for load type select inputs (raw, used as fallback)
|
|
3098
3043
|
*/
|
|
3099
|
-
loadTypeOptions?:
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
loadTypes?: (LoadType & {
|
|
3103
|
-
commodityId?: number;
|
|
3104
|
-
})[];
|
|
3044
|
+
loadTypeOptions?: LoadType[];
|
|
3045
|
+
loadTypes?: LoadType[];
|
|
3046
|
+
selectedLoadType: LOAD_TYPE_TYPE;
|
|
3105
3047
|
/**
|
|
3106
3048
|
* Map of commodityId -> SelectOption[] fetched from backend per cargo commodity.
|
|
3107
3049
|
* When provided, each cargo's cargoType dropdown will use the matching entry.
|
|
@@ -3133,7 +3075,9 @@ interface CardVehicleOwnerFormLabels {
|
|
|
3133
3075
|
entityTypeIndividual: string;
|
|
3134
3076
|
selectCompanyPlaceholder: string;
|
|
3135
3077
|
inputSenderNamePlaceholder: string;
|
|
3136
|
-
|
|
3078
|
+
estimatedVehicleWeightLabel: string;
|
|
3079
|
+
estimatedCargoWeightLabel: string;
|
|
3080
|
+
estimatedVehicleAndCargoWeightLabel: string;
|
|
3137
3081
|
inputNumberPlaceholder: string;
|
|
3138
3082
|
originCityLabel: string;
|
|
3139
3083
|
destinationCityLabel: string;
|
|
@@ -4096,4 +4040,4 @@ interface ModalListMenuServiceProps {
|
|
|
4096
4040
|
|
|
4097
4041
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
4098
4042
|
|
|
4099
|
-
export { API_CONFIG,
|
|
4043
|
+
export { API_CONFIG, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingAddOn, type CardBookingAddOnData, type CardBookingAddOnItem, type CardBookingAddOnLabels, type CardBookingAddOnProps, 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, CardReviewDetail, type CardReviewDetailProps, 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, type IdentityType, 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 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 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
|
@@ -1645,61 +1645,6 @@ interface ModalTotalPassengersProps {
|
|
|
1645
1645
|
*/
|
|
1646
1646
|
declare const ModalTotalPassengers: React$1.FC<ModalTotalPassengersProps>;
|
|
1647
1647
|
|
|
1648
|
-
declare const API_ENDPOINTS: {
|
|
1649
|
-
readonly PORTS: {
|
|
1650
|
-
readonly ORIGIN: "/v1/surrounding/catalog/ports/list/origin";
|
|
1651
|
-
readonly DESTINATION: "/v1/surrounding/catalog/ports/list/destination";
|
|
1652
|
-
};
|
|
1653
|
-
readonly SERVICES: {
|
|
1654
|
-
readonly LIST: "/v1/surrounding/catalog/service-types";
|
|
1655
|
-
};
|
|
1656
|
-
readonly PASSENGERS: {
|
|
1657
|
-
readonly LIST: "/v1/surrounding/catalog/passenger-types";
|
|
1658
|
-
};
|
|
1659
|
-
readonly AUTH: {
|
|
1660
|
-
readonly LOGIN: "/v1/surrounding/auth/login";
|
|
1661
|
-
readonly REGISTER: "/auth/register";
|
|
1662
|
-
readonly LOGOUT: "/auth/logout";
|
|
1663
|
-
readonly REFRESH: "/auth/refresh";
|
|
1664
|
-
readonly PROFILE: "/auth/profile";
|
|
1665
|
-
readonly UPDATE_PROFILE: "/auth/profile";
|
|
1666
|
-
readonly CHANGE_PASSWORD: "/auth/change-password";
|
|
1667
|
-
readonly FORGOT_PASSWORD: "/auth/forgot-password";
|
|
1668
|
-
readonly RESET_PASSWORD: "/auth/reset-password";
|
|
1669
|
-
readonly VERIFY_EMAIL: "/auth/verify-email";
|
|
1670
|
-
};
|
|
1671
|
-
readonly USERS: {
|
|
1672
|
-
readonly LIST: "/users";
|
|
1673
|
-
readonly CREATE: "/users";
|
|
1674
|
-
readonly DETAIL: (id: string) => string;
|
|
1675
|
-
readonly UPDATE: (id: string) => string;
|
|
1676
|
-
readonly DELETE: (id: string) => string;
|
|
1677
|
-
readonly AVATAR: (id: string) => string;
|
|
1678
|
-
};
|
|
1679
|
-
readonly FILES: {
|
|
1680
|
-
readonly UPLOAD: "/files/upload";
|
|
1681
|
-
readonly DOWNLOAD: (id: string) => string;
|
|
1682
|
-
readonly DELETE: (id: string) => string;
|
|
1683
|
-
readonly LIST: "/files";
|
|
1684
|
-
};
|
|
1685
|
-
readonly DASHBOARD: {
|
|
1686
|
-
readonly STATS: "/dashboard/stats";
|
|
1687
|
-
readonly CHART_DATA: "/dashboard/chart-data";
|
|
1688
|
-
readonly RECENT_ACTIVITIES: "/dashboard/recent-activities";
|
|
1689
|
-
};
|
|
1690
|
-
readonly NOTIFICATIONS: {
|
|
1691
|
-
readonly LIST: "/notifications";
|
|
1692
|
-
readonly MARK_READ: (id: string) => string;
|
|
1693
|
-
readonly MARK_ALL_READ: "/notifications/read-all";
|
|
1694
|
-
readonly DELETE: (id: string) => string;
|
|
1695
|
-
readonly SETTINGS: "/notifications/settings";
|
|
1696
|
-
};
|
|
1697
|
-
readonly SETTINGS: {
|
|
1698
|
-
readonly GENERAL: "/settings/general";
|
|
1699
|
-
readonly SECURITY: "/settings/security";
|
|
1700
|
-
readonly PREFERENCES: "/settings/preferences";
|
|
1701
|
-
};
|
|
1702
|
-
};
|
|
1703
1648
|
declare const API_CONFIG: {
|
|
1704
1649
|
readonly TIMEOUT: 30000;
|
|
1705
1650
|
readonly RETRY_ATTEMPTS: 3;
|
|
@@ -3096,12 +3041,9 @@ interface CardVehicleOwnerFormProps {
|
|
|
3096
3041
|
/**
|
|
3097
3042
|
* Options for load type select inputs (raw, used as fallback)
|
|
3098
3043
|
*/
|
|
3099
|
-
loadTypeOptions?:
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
loadTypes?: (LoadType & {
|
|
3103
|
-
commodityId?: number;
|
|
3104
|
-
})[];
|
|
3044
|
+
loadTypeOptions?: LoadType[];
|
|
3045
|
+
loadTypes?: LoadType[];
|
|
3046
|
+
selectedLoadType: LOAD_TYPE_TYPE;
|
|
3105
3047
|
/**
|
|
3106
3048
|
* Map of commodityId -> SelectOption[] fetched from backend per cargo commodity.
|
|
3107
3049
|
* When provided, each cargo's cargoType dropdown will use the matching entry.
|
|
@@ -3133,7 +3075,9 @@ interface CardVehicleOwnerFormLabels {
|
|
|
3133
3075
|
entityTypeIndividual: string;
|
|
3134
3076
|
selectCompanyPlaceholder: string;
|
|
3135
3077
|
inputSenderNamePlaceholder: string;
|
|
3136
|
-
|
|
3078
|
+
estimatedVehicleWeightLabel: string;
|
|
3079
|
+
estimatedCargoWeightLabel: string;
|
|
3080
|
+
estimatedVehicleAndCargoWeightLabel: string;
|
|
3137
3081
|
inputNumberPlaceholder: string;
|
|
3138
3082
|
originCityLabel: string;
|
|
3139
3083
|
destinationCityLabel: string;
|
|
@@ -4096,4 +4040,4 @@ interface ModalListMenuServiceProps {
|
|
|
4096
4040
|
|
|
4097
4041
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
4098
4042
|
|
|
4099
|
-
export { API_CONFIG,
|
|
4043
|
+
export { API_CONFIG, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingAddOn, type CardBookingAddOnData, type CardBookingAddOnItem, type CardBookingAddOnLabels, type CardBookingAddOnProps, 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, CardReviewDetail, type CardReviewDetailProps, 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, type IdentityType, 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 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 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
|
@@ -366,67 +366,6 @@ var extendedTokens = {
|
|
|
366
366
|
colorBrandForegroundLinkSelected: customBrand[110]});
|
|
367
367
|
|
|
368
368
|
// src/constants/api.ts
|
|
369
|
-
var API_ENDPOINTS = {
|
|
370
|
-
PORTS: {
|
|
371
|
-
ORIGIN: "/v1/surrounding/catalog/ports/list/origin",
|
|
372
|
-
DESTINATION: "/v1/surrounding/catalog/ports/list/destination"
|
|
373
|
-
},
|
|
374
|
-
SERVICES: {
|
|
375
|
-
LIST: "/v1/surrounding/catalog/service-types"
|
|
376
|
-
},
|
|
377
|
-
PASSENGERS: {
|
|
378
|
-
LIST: "/v1/surrounding/catalog/passenger-types"
|
|
379
|
-
},
|
|
380
|
-
// Authentication endpoints
|
|
381
|
-
AUTH: {
|
|
382
|
-
LOGIN: "/v1/surrounding/auth/login",
|
|
383
|
-
REGISTER: "/auth/register",
|
|
384
|
-
LOGOUT: "/auth/logout",
|
|
385
|
-
REFRESH: "/auth/refresh",
|
|
386
|
-
PROFILE: "/auth/profile",
|
|
387
|
-
UPDATE_PROFILE: "/auth/profile",
|
|
388
|
-
CHANGE_PASSWORD: "/auth/change-password",
|
|
389
|
-
FORGOT_PASSWORD: "/auth/forgot-password",
|
|
390
|
-
RESET_PASSWORD: "/auth/reset-password",
|
|
391
|
-
VERIFY_EMAIL: "/auth/verify-email"
|
|
392
|
-
},
|
|
393
|
-
// User management
|
|
394
|
-
USERS: {
|
|
395
|
-
LIST: "/users",
|
|
396
|
-
CREATE: "/users",
|
|
397
|
-
DETAIL: (id) => `/users/${id}`,
|
|
398
|
-
UPDATE: (id) => `/users/${id}`,
|
|
399
|
-
DELETE: (id) => `/users/${id}`,
|
|
400
|
-
AVATAR: (id) => `/users/${id}/avatar`
|
|
401
|
-
},
|
|
402
|
-
// File management
|
|
403
|
-
FILES: {
|
|
404
|
-
UPLOAD: "/files/upload",
|
|
405
|
-
DOWNLOAD: (id) => `/files/${id}/download`,
|
|
406
|
-
DELETE: (id) => `/files/${id}`,
|
|
407
|
-
LIST: "/files"
|
|
408
|
-
},
|
|
409
|
-
// Dashboard/Analytics
|
|
410
|
-
DASHBOARD: {
|
|
411
|
-
STATS: "/dashboard/stats",
|
|
412
|
-
CHART_DATA: "/dashboard/chart-data",
|
|
413
|
-
RECENT_ACTIVITIES: "/dashboard/recent-activities"
|
|
414
|
-
},
|
|
415
|
-
// Notifications
|
|
416
|
-
NOTIFICATIONS: {
|
|
417
|
-
LIST: "/notifications",
|
|
418
|
-
MARK_READ: (id) => `/notifications/${id}/read`,
|
|
419
|
-
MARK_ALL_READ: "/notifications/read-all",
|
|
420
|
-
DELETE: (id) => `/notifications/${id}`,
|
|
421
|
-
SETTINGS: "/notifications/settings"
|
|
422
|
-
},
|
|
423
|
-
// Settings
|
|
424
|
-
SETTINGS: {
|
|
425
|
-
GENERAL: "/settings/general",
|
|
426
|
-
SECURITY: "/settings/security",
|
|
427
|
-
PREFERENCES: "/settings/preferences"
|
|
428
|
-
}
|
|
429
|
-
};
|
|
430
369
|
var API_CONFIG = {
|
|
431
370
|
TIMEOUT: 3e4,
|
|
432
371
|
RETRY_ATTEMPTS: 3,
|
|
@@ -12687,7 +12626,9 @@ var DEFAULT_LABELS26 = {
|
|
|
12687
12626
|
entityTypeIndividual: "Perseorangan",
|
|
12688
12627
|
selectCompanyPlaceholder: "Pilih Nama Perusahaan",
|
|
12689
12628
|
inputSenderNamePlaceholder: "Masukkan Nama Pengirim",
|
|
12690
|
-
|
|
12629
|
+
estimatedVehicleWeightLabel: "Estimasi Berat Kendaraan (Ton)",
|
|
12630
|
+
estimatedCargoWeightLabel: "Estimasi Berat Muatan (Ton)",
|
|
12631
|
+
estimatedVehicleAndCargoWeightLabel: "Estimasi Berat Kendaraan dan Muatan (Ton)",
|
|
12691
12632
|
inputNumberPlaceholder: "Masukkan Angka",
|
|
12692
12633
|
originCityLabel: "Kota Asal",
|
|
12693
12634
|
destinationCityLabel: "Kota Tujuan",
|
|
@@ -12737,7 +12678,9 @@ var DEFAULT_LABELS26 = {
|
|
|
12737
12678
|
entityTypeIndividual: "Individual",
|
|
12738
12679
|
selectCompanyPlaceholder: "Select Company Name",
|
|
12739
12680
|
inputSenderNamePlaceholder: "Enter Sender Name",
|
|
12740
|
-
|
|
12681
|
+
estimatedVehicleWeightLabel: "Estimated Vehicle Weight (Ton)",
|
|
12682
|
+
estimatedCargoWeightLabel: "Estimated Cargo Weight (Ton)",
|
|
12683
|
+
estimatedVehicleAndCargoWeightLabel: "Estimated Vehicle and Cargo Weight (Ton)",
|
|
12741
12684
|
inputNumberPlaceholder: "Enter Number",
|
|
12742
12685
|
originCityLabel: "Origin City",
|
|
12743
12686
|
destinationCityLabel: "Destination City",
|
|
@@ -12843,6 +12786,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12843
12786
|
commodityOptions = [],
|
|
12844
12787
|
loadTypeOptions = [],
|
|
12845
12788
|
loadTypes = [],
|
|
12789
|
+
selectedLoadType,
|
|
12846
12790
|
loadTypeOptionsByCommodityId = {},
|
|
12847
12791
|
industryOptions = [],
|
|
12848
12792
|
loadCategoryOptions = [],
|
|
@@ -13036,7 +12980,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13036
12980
|
/* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { lg: 6, children: [
|
|
13037
12981
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { height: "1rem" } }),
|
|
13038
12982
|
/* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Body1, { className: styles.label, children: [
|
|
13039
|
-
mergedLabels.
|
|
12983
|
+
mergedLabels.estimatedVehicleWeightLabel,
|
|
13040
12984
|
" ",
|
|
13041
12985
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "red" }, children: "*" })
|
|
13042
12986
|
] }),
|
|
@@ -13479,10 +13423,10 @@ var CardVehicleOwnerForm = ({
|
|
|
13479
13423
|
const type = watch(
|
|
13480
13424
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13481
13425
|
);
|
|
13482
|
-
const
|
|
13426
|
+
const selectedLoadType2 = loadTypes.find(
|
|
13483
13427
|
(loadType) => loadType.id.toString() === type
|
|
13484
13428
|
);
|
|
13485
|
-
if (!
|
|
13429
|
+
if (!selectedLoadType2) {
|
|
13486
13430
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { md: 3, children: [
|
|
13487
13431
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: mergedLabels.priceLabel }),
|
|
13488
13432
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13689,10 +13633,10 @@ var CardVehicleOwnerForm = ({
|
|
|
13689
13633
|
const type2 = watch(
|
|
13690
13634
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13691
13635
|
);
|
|
13692
|
-
const
|
|
13636
|
+
const selectedLoadType3 = loadTypes.find(
|
|
13693
13637
|
(loadType) => loadType.id.toString() === type2
|
|
13694
13638
|
);
|
|
13695
|
-
return
|
|
13639
|
+
return selectedLoadType3?.unit?.name;
|
|
13696
13640
|
})()
|
|
13697
13641
|
}
|
|
13698
13642
|
)
|
|
@@ -13720,7 +13664,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13720
13664
|
getValues(
|
|
13721
13665
|
`owners.${index}.cargo.${cargoIndex}.quantity`
|
|
13722
13666
|
) || 0
|
|
13723
|
-
) * (
|
|
13667
|
+
) * (selectedLoadType2?.price || 0)
|
|
13724
13668
|
);
|
|
13725
13669
|
})()
|
|
13726
13670
|
}
|
|
@@ -17612,7 +17556,6 @@ var CardProfileMenu = ({
|
|
|
17612
17556
|
};
|
|
17613
17557
|
|
|
17614
17558
|
exports.API_CONFIG = API_CONFIG;
|
|
17615
|
-
exports.API_ENDPOINTS = API_ENDPOINTS;
|
|
17616
17559
|
exports.API_ERROR_MESSAGES = API_ERROR_MESSAGES;
|
|
17617
17560
|
exports.BackgroundTicketCard = BackgroundTicketCard_default;
|
|
17618
17561
|
exports.BackgroundTicketCardVertical = BackgroundTicketCardVertical_default;
|