@asdp/ferryui 0.1.22-dev.10281 → 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 +6 -7
- package/dist/index.d.ts +6 -7
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3041,12 +3041,9 @@ interface CardVehicleOwnerFormProps {
|
|
|
3041
3041
|
/**
|
|
3042
3042
|
* Options for load type select inputs (raw, used as fallback)
|
|
3043
3043
|
*/
|
|
3044
|
-
loadTypeOptions?:
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
loadTypes?: (LoadType & {
|
|
3048
|
-
commodityId?: number;
|
|
3049
|
-
})[];
|
|
3044
|
+
loadTypeOptions?: LoadType[];
|
|
3045
|
+
loadTypes?: LoadType[];
|
|
3046
|
+
selectedLoadType: LOAD_TYPE_TYPE;
|
|
3050
3047
|
/**
|
|
3051
3048
|
* Map of commodityId -> SelectOption[] fetched from backend per cargo commodity.
|
|
3052
3049
|
* When provided, each cargo's cargoType dropdown will use the matching entry.
|
|
@@ -3078,7 +3075,9 @@ interface CardVehicleOwnerFormLabels {
|
|
|
3078
3075
|
entityTypeIndividual: string;
|
|
3079
3076
|
selectCompanyPlaceholder: string;
|
|
3080
3077
|
inputSenderNamePlaceholder: string;
|
|
3081
|
-
|
|
3078
|
+
estimatedVehicleWeightLabel: string;
|
|
3079
|
+
estimatedCargoWeightLabel: string;
|
|
3080
|
+
estimatedVehicleAndCargoWeightLabel: string;
|
|
3082
3081
|
inputNumberPlaceholder: string;
|
|
3083
3082
|
originCityLabel: string;
|
|
3084
3083
|
destinationCityLabel: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3041,12 +3041,9 @@ interface CardVehicleOwnerFormProps {
|
|
|
3041
3041
|
/**
|
|
3042
3042
|
* Options for load type select inputs (raw, used as fallback)
|
|
3043
3043
|
*/
|
|
3044
|
-
loadTypeOptions?:
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
loadTypes?: (LoadType & {
|
|
3048
|
-
commodityId?: number;
|
|
3049
|
-
})[];
|
|
3044
|
+
loadTypeOptions?: LoadType[];
|
|
3045
|
+
loadTypes?: LoadType[];
|
|
3046
|
+
selectedLoadType: LOAD_TYPE_TYPE;
|
|
3050
3047
|
/**
|
|
3051
3048
|
* Map of commodityId -> SelectOption[] fetched from backend per cargo commodity.
|
|
3052
3049
|
* When provided, each cargo's cargoType dropdown will use the matching entry.
|
|
@@ -3078,7 +3075,9 @@ interface CardVehicleOwnerFormLabels {
|
|
|
3078
3075
|
entityTypeIndividual: string;
|
|
3079
3076
|
selectCompanyPlaceholder: string;
|
|
3080
3077
|
inputSenderNamePlaceholder: string;
|
|
3081
|
-
|
|
3078
|
+
estimatedVehicleWeightLabel: string;
|
|
3079
|
+
estimatedCargoWeightLabel: string;
|
|
3080
|
+
estimatedVehicleAndCargoWeightLabel: string;
|
|
3082
3081
|
inputNumberPlaceholder: string;
|
|
3083
3082
|
originCityLabel: string;
|
|
3084
3083
|
destinationCityLabel: string;
|
package/dist/index.js
CHANGED
|
@@ -12626,7 +12626,9 @@ var DEFAULT_LABELS26 = {
|
|
|
12626
12626
|
entityTypeIndividual: "Perseorangan",
|
|
12627
12627
|
selectCompanyPlaceholder: "Pilih Nama Perusahaan",
|
|
12628
12628
|
inputSenderNamePlaceholder: "Masukkan Nama Pengirim",
|
|
12629
|
-
|
|
12629
|
+
estimatedVehicleWeightLabel: "Estimasi Berat Kendaraan (Ton)",
|
|
12630
|
+
estimatedCargoWeightLabel: "Estimasi Berat Muatan (Ton)",
|
|
12631
|
+
estimatedVehicleAndCargoWeightLabel: "Estimasi Berat Kendaraan dan Muatan (Ton)",
|
|
12630
12632
|
inputNumberPlaceholder: "Masukkan Angka",
|
|
12631
12633
|
originCityLabel: "Kota Asal",
|
|
12632
12634
|
destinationCityLabel: "Kota Tujuan",
|
|
@@ -12676,7 +12678,9 @@ var DEFAULT_LABELS26 = {
|
|
|
12676
12678
|
entityTypeIndividual: "Individual",
|
|
12677
12679
|
selectCompanyPlaceholder: "Select Company Name",
|
|
12678
12680
|
inputSenderNamePlaceholder: "Enter Sender Name",
|
|
12679
|
-
|
|
12681
|
+
estimatedVehicleWeightLabel: "Estimated Vehicle Weight (Ton)",
|
|
12682
|
+
estimatedCargoWeightLabel: "Estimated Cargo Weight (Ton)",
|
|
12683
|
+
estimatedVehicleAndCargoWeightLabel: "Estimated Vehicle and Cargo Weight (Ton)",
|
|
12680
12684
|
inputNumberPlaceholder: "Enter Number",
|
|
12681
12685
|
originCityLabel: "Origin City",
|
|
12682
12686
|
destinationCityLabel: "Destination City",
|
|
@@ -12782,6 +12786,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12782
12786
|
commodityOptions = [],
|
|
12783
12787
|
loadTypeOptions = [],
|
|
12784
12788
|
loadTypes = [],
|
|
12789
|
+
selectedLoadType,
|
|
12785
12790
|
loadTypeOptionsByCommodityId = {},
|
|
12786
12791
|
industryOptions = [],
|
|
12787
12792
|
loadCategoryOptions = [],
|
|
@@ -12975,7 +12980,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12975
12980
|
/* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { lg: 6, children: [
|
|
12976
12981
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { height: "1rem" } }),
|
|
12977
12982
|
/* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Body1, { className: styles.label, children: [
|
|
12978
|
-
mergedLabels.
|
|
12983
|
+
mergedLabels.estimatedVehicleWeightLabel,
|
|
12979
12984
|
" ",
|
|
12980
12985
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "red" }, children: "*" })
|
|
12981
12986
|
] }),
|
|
@@ -13418,10 +13423,10 @@ var CardVehicleOwnerForm = ({
|
|
|
13418
13423
|
const type = watch(
|
|
13419
13424
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13420
13425
|
);
|
|
13421
|
-
const
|
|
13426
|
+
const selectedLoadType2 = loadTypes.find(
|
|
13422
13427
|
(loadType) => loadType.id.toString() === type
|
|
13423
13428
|
);
|
|
13424
|
-
if (!
|
|
13429
|
+
if (!selectedLoadType2) {
|
|
13425
13430
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { md: 3, children: [
|
|
13426
13431
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: mergedLabels.priceLabel }),
|
|
13427
13432
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13628,10 +13633,10 @@ var CardVehicleOwnerForm = ({
|
|
|
13628
13633
|
const type2 = watch(
|
|
13629
13634
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13630
13635
|
);
|
|
13631
|
-
const
|
|
13636
|
+
const selectedLoadType3 = loadTypes.find(
|
|
13632
13637
|
(loadType) => loadType.id.toString() === type2
|
|
13633
13638
|
);
|
|
13634
|
-
return
|
|
13639
|
+
return selectedLoadType3?.unit?.name;
|
|
13635
13640
|
})()
|
|
13636
13641
|
}
|
|
13637
13642
|
)
|
|
@@ -13659,7 +13664,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13659
13664
|
getValues(
|
|
13660
13665
|
`owners.${index}.cargo.${cargoIndex}.quantity`
|
|
13661
13666
|
) || 0
|
|
13662
|
-
) * (
|
|
13667
|
+
) * (selectedLoadType2?.price || 0)
|
|
13663
13668
|
);
|
|
13664
13669
|
})()
|
|
13665
13670
|
}
|