@asdp/ferryui 0.1.22-dev.9610 → 0.1.22-dev.9630
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 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3051,8 +3051,12 @@ interface CardVehicleOwnerFormProps {
|
|
|
3051
3051
|
/**
|
|
3052
3052
|
* Options for load type select inputs
|
|
3053
3053
|
*/
|
|
3054
|
-
loadTypeOptions?:
|
|
3055
|
-
|
|
3054
|
+
loadTypeOptions?: (LoadType & {
|
|
3055
|
+
commodityId: number;
|
|
3056
|
+
})[];
|
|
3057
|
+
loadTypes?: (LoadType & {
|
|
3058
|
+
commodityId: number;
|
|
3059
|
+
})[];
|
|
3056
3060
|
/**
|
|
3057
3061
|
* Options for industry select inputs
|
|
3058
3062
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -3051,8 +3051,12 @@ interface CardVehicleOwnerFormProps {
|
|
|
3051
3051
|
/**
|
|
3052
3052
|
* Options for load type select inputs
|
|
3053
3053
|
*/
|
|
3054
|
-
loadTypeOptions?:
|
|
3055
|
-
|
|
3054
|
+
loadTypeOptions?: (LoadType & {
|
|
3055
|
+
commodityId: number;
|
|
3056
|
+
})[];
|
|
3057
|
+
loadTypes?: (LoadType & {
|
|
3058
|
+
commodityId: number;
|
|
3059
|
+
})[];
|
|
3056
3060
|
/**
|
|
3057
3061
|
* Options for industry select inputs
|
|
3058
3062
|
*/
|
package/dist/index.js
CHANGED
|
@@ -4242,7 +4242,8 @@ var InputDynamic = ({
|
|
|
4242
4242
|
...provided,
|
|
4243
4243
|
minHeight: "40px",
|
|
4244
4244
|
// fontSize: tokens.fontSizeBase400,
|
|
4245
|
-
transition: "all 0.2s ease"
|
|
4245
|
+
transition: "all 0.2s ease",
|
|
4246
|
+
cursor: disabled ? "not-allowed" : "pointer"
|
|
4246
4247
|
};
|
|
4247
4248
|
if (currentAppearance === "outline") {
|
|
4248
4249
|
return {
|
|
@@ -12794,6 +12795,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12794
12795
|
onUpdateOwner(owner.id, {
|
|
12795
12796
|
cargoItems: updatedCargoItems
|
|
12796
12797
|
});
|
|
12798
|
+
setValue(`owners.${index}.cargo.${cargoIndex}.cargoType`, "");
|
|
12797
12799
|
},
|
|
12798
12800
|
options: commodityOptions,
|
|
12799
12801
|
placeholder: mergedLabels.selectPlaceholder,
|
|
@@ -12844,7 +12846,12 @@ var CardVehicleOwnerForm = ({
|
|
|
12844
12846
|
cargoItems: updatedCargoItems
|
|
12845
12847
|
});
|
|
12846
12848
|
},
|
|
12847
|
-
options: loadTypeOptions
|
|
12849
|
+
options: loadTypeOptions.filter((lt) => lt.commodityId === (getValues(
|
|
12850
|
+
`owners.${index}.cargo.${cargoIndex}.commodity`
|
|
12851
|
+
) || "")).map((lt) => ({
|
|
12852
|
+
value: lt.id.toString(),
|
|
12853
|
+
label: `${lt.name} (${lt.unit?.name})`
|
|
12854
|
+
})),
|
|
12848
12855
|
placeholder: mergedLabels.selectPlaceholder,
|
|
12849
12856
|
required: true,
|
|
12850
12857
|
size: "large",
|