@asdp/ferryui 0.1.22-dev.10281 → 0.1.22-dev.10302
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 -7
- package/dist/index.d.ts +10 -7
- package/dist/index.js +16 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -438,6 +438,10 @@ interface CardTicketLabels {
|
|
|
438
438
|
totalPriceMissing: string;
|
|
439
439
|
}
|
|
440
440
|
interface CardTicketProps {
|
|
441
|
+
/**
|
|
442
|
+
* Load type
|
|
443
|
+
*/
|
|
444
|
+
loadType?: number;
|
|
441
445
|
/**
|
|
442
446
|
* Route item
|
|
443
447
|
*/
|
|
@@ -3041,12 +3045,9 @@ interface CardVehicleOwnerFormProps {
|
|
|
3041
3045
|
/**
|
|
3042
3046
|
* Options for load type select inputs (raw, used as fallback)
|
|
3043
3047
|
*/
|
|
3044
|
-
loadTypeOptions?:
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
loadTypes?: (LoadType & {
|
|
3048
|
-
commodityId?: number;
|
|
3049
|
-
})[];
|
|
3048
|
+
loadTypeOptions?: LoadType[];
|
|
3049
|
+
loadTypes?: LoadType[];
|
|
3050
|
+
selectedLoadType: LOAD_TYPE_TYPE;
|
|
3050
3051
|
/**
|
|
3051
3052
|
* Map of commodityId -> SelectOption[] fetched from backend per cargo commodity.
|
|
3052
3053
|
* When provided, each cargo's cargoType dropdown will use the matching entry.
|
|
@@ -3078,7 +3079,9 @@ interface CardVehicleOwnerFormLabels {
|
|
|
3078
3079
|
entityTypeIndividual: string;
|
|
3079
3080
|
selectCompanyPlaceholder: string;
|
|
3080
3081
|
inputSenderNamePlaceholder: string;
|
|
3081
|
-
|
|
3082
|
+
estimatedVehicleWeightLabel: string;
|
|
3083
|
+
estimatedCargoWeightLabel: string;
|
|
3084
|
+
estimatedVehicleAndCargoWeightLabel: string;
|
|
3082
3085
|
inputNumberPlaceholder: string;
|
|
3083
3086
|
originCityLabel: string;
|
|
3084
3087
|
destinationCityLabel: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -438,6 +438,10 @@ interface CardTicketLabels {
|
|
|
438
438
|
totalPriceMissing: string;
|
|
439
439
|
}
|
|
440
440
|
interface CardTicketProps {
|
|
441
|
+
/**
|
|
442
|
+
* Load type
|
|
443
|
+
*/
|
|
444
|
+
loadType?: number;
|
|
441
445
|
/**
|
|
442
446
|
* Route item
|
|
443
447
|
*/
|
|
@@ -3041,12 +3045,9 @@ interface CardVehicleOwnerFormProps {
|
|
|
3041
3045
|
/**
|
|
3042
3046
|
* Options for load type select inputs (raw, used as fallback)
|
|
3043
3047
|
*/
|
|
3044
|
-
loadTypeOptions?:
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
loadTypes?: (LoadType & {
|
|
3048
|
-
commodityId?: number;
|
|
3049
|
-
})[];
|
|
3048
|
+
loadTypeOptions?: LoadType[];
|
|
3049
|
+
loadTypes?: LoadType[];
|
|
3050
|
+
selectedLoadType: LOAD_TYPE_TYPE;
|
|
3050
3051
|
/**
|
|
3051
3052
|
* Map of commodityId -> SelectOption[] fetched from backend per cargo commodity.
|
|
3052
3053
|
* When provided, each cargo's cargoType dropdown will use the matching entry.
|
|
@@ -3078,7 +3079,9 @@ interface CardVehicleOwnerFormLabels {
|
|
|
3078
3079
|
entityTypeIndividual: string;
|
|
3079
3080
|
selectCompanyPlaceholder: string;
|
|
3080
3081
|
inputSenderNamePlaceholder: string;
|
|
3081
|
-
|
|
3082
|
+
estimatedVehicleWeightLabel: string;
|
|
3083
|
+
estimatedCargoWeightLabel: string;
|
|
3084
|
+
estimatedVehicleAndCargoWeightLabel: string;
|
|
3082
3085
|
inputNumberPlaceholder: string;
|
|
3083
3086
|
originCityLabel: string;
|
|
3084
3087
|
destinationCityLabel: string;
|
package/dist/index.js
CHANGED
|
@@ -1337,7 +1337,8 @@ var CardTicket = ({
|
|
|
1337
1337
|
onPolicyClick,
|
|
1338
1338
|
onSelectTicket,
|
|
1339
1339
|
isLoading = false,
|
|
1340
|
-
isVerifyingTicket = false
|
|
1340
|
+
isVerifyingTicket = false,
|
|
1341
|
+
loadType = 1
|
|
1341
1342
|
}) => {
|
|
1342
1343
|
const styles = useStyles5();
|
|
1343
1344
|
const { width } = useWindowSize();
|
|
@@ -1830,18 +1831,7 @@ var CardTicket = ({
|
|
|
1830
1831
|
},
|
|
1831
1832
|
children: [
|
|
1832
1833
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle2, { children: mergedLabels.totalPriceLabel }),
|
|
1833
|
-
|
|
1834
|
-
reactComponents.Title3,
|
|
1835
|
-
{
|
|
1836
|
-
children: departureItem?.billingDetail?.total?.formatted
|
|
1837
|
-
}
|
|
1838
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1839
|
-
reactComponents.Body1Strong,
|
|
1840
|
-
{
|
|
1841
|
-
style: { wordBreak: "break-word" },
|
|
1842
|
-
children: mergedLabels.totalPriceMissing
|
|
1843
|
-
}
|
|
1844
|
-
)
|
|
1834
|
+
loadType === 6 ? /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1Strong, { style: { wordBreak: "break-word" }, children: mergedLabels.totalPriceMissing }) : /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Title3, { children: departureItem?.billingDetail?.total?.formatted })
|
|
1845
1835
|
]
|
|
1846
1836
|
}
|
|
1847
1837
|
),
|
|
@@ -12626,7 +12616,9 @@ var DEFAULT_LABELS26 = {
|
|
|
12626
12616
|
entityTypeIndividual: "Perseorangan",
|
|
12627
12617
|
selectCompanyPlaceholder: "Pilih Nama Perusahaan",
|
|
12628
12618
|
inputSenderNamePlaceholder: "Masukkan Nama Pengirim",
|
|
12629
|
-
|
|
12619
|
+
estimatedVehicleWeightLabel: "Estimasi Berat Kendaraan (Ton)",
|
|
12620
|
+
estimatedCargoWeightLabel: "Estimasi Berat Muatan (Ton)",
|
|
12621
|
+
estimatedVehicleAndCargoWeightLabel: "Estimasi Berat Kendaraan dan Muatan (Ton)",
|
|
12630
12622
|
inputNumberPlaceholder: "Masukkan Angka",
|
|
12631
12623
|
originCityLabel: "Kota Asal",
|
|
12632
12624
|
destinationCityLabel: "Kota Tujuan",
|
|
@@ -12676,7 +12668,9 @@ var DEFAULT_LABELS26 = {
|
|
|
12676
12668
|
entityTypeIndividual: "Individual",
|
|
12677
12669
|
selectCompanyPlaceholder: "Select Company Name",
|
|
12678
12670
|
inputSenderNamePlaceholder: "Enter Sender Name",
|
|
12679
|
-
|
|
12671
|
+
estimatedVehicleWeightLabel: "Estimated Vehicle Weight (Ton)",
|
|
12672
|
+
estimatedCargoWeightLabel: "Estimated Cargo Weight (Ton)",
|
|
12673
|
+
estimatedVehicleAndCargoWeightLabel: "Estimated Vehicle and Cargo Weight (Ton)",
|
|
12680
12674
|
inputNumberPlaceholder: "Enter Number",
|
|
12681
12675
|
originCityLabel: "Origin City",
|
|
12682
12676
|
destinationCityLabel: "Destination City",
|
|
@@ -12782,6 +12776,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12782
12776
|
commodityOptions = [],
|
|
12783
12777
|
loadTypeOptions = [],
|
|
12784
12778
|
loadTypes = [],
|
|
12779
|
+
selectedLoadType,
|
|
12785
12780
|
loadTypeOptionsByCommodityId = {},
|
|
12786
12781
|
industryOptions = [],
|
|
12787
12782
|
loadCategoryOptions = [],
|
|
@@ -12975,7 +12970,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12975
12970
|
/* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { lg: 6, children: [
|
|
12976
12971
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { height: "1rem" } }),
|
|
12977
12972
|
/* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Body1, { className: styles.label, children: [
|
|
12978
|
-
mergedLabels.
|
|
12973
|
+
mergedLabels.estimatedVehicleWeightLabel,
|
|
12979
12974
|
" ",
|
|
12980
12975
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "red" }, children: "*" })
|
|
12981
12976
|
] }),
|
|
@@ -13418,10 +13413,10 @@ var CardVehicleOwnerForm = ({
|
|
|
13418
13413
|
const type = watch(
|
|
13419
13414
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13420
13415
|
);
|
|
13421
|
-
const
|
|
13416
|
+
const selectedLoadType2 = loadTypes.find(
|
|
13422
13417
|
(loadType) => loadType.id.toString() === type
|
|
13423
13418
|
);
|
|
13424
|
-
if (!
|
|
13419
|
+
if (!selectedLoadType2) {
|
|
13425
13420
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { md: 3, children: [
|
|
13426
13421
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: mergedLabels.priceLabel }),
|
|
13427
13422
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13628,10 +13623,10 @@ var CardVehicleOwnerForm = ({
|
|
|
13628
13623
|
const type2 = watch(
|
|
13629
13624
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13630
13625
|
);
|
|
13631
|
-
const
|
|
13626
|
+
const selectedLoadType3 = loadTypes.find(
|
|
13632
13627
|
(loadType) => loadType.id.toString() === type2
|
|
13633
13628
|
);
|
|
13634
|
-
return
|
|
13629
|
+
return selectedLoadType3?.unit?.name;
|
|
13635
13630
|
})()
|
|
13636
13631
|
}
|
|
13637
13632
|
)
|
|
@@ -13659,7 +13654,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13659
13654
|
getValues(
|
|
13660
13655
|
`owners.${index}.cargo.${cargoIndex}.quantity`
|
|
13661
13656
|
) || 0
|
|
13662
|
-
) * (
|
|
13657
|
+
) * (selectedLoadType2?.price || 0)
|
|
13663
13658
|
);
|
|
13664
13659
|
})()
|
|
13665
13660
|
}
|