@asdp/ferryui 0.1.22-dev.9577 → 0.1.22-dev.9582

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 CHANGED
@@ -2938,7 +2938,6 @@ interface CargoItem {
2938
2938
  quantity: number | string;
2939
2939
  industryType: string;
2940
2940
  cargoCategory: string;
2941
- unit: string;
2942
2941
  }
2943
2942
  interface VehicleOwner {
2944
2943
  id: number;
package/dist/index.d.ts CHANGED
@@ -2938,7 +2938,6 @@ interface CargoItem {
2938
2938
  quantity: number | string;
2939
2939
  industryType: string;
2940
2940
  cargoCategory: string;
2941
- unit: string;
2942
2941
  }
2943
2942
  interface VehicleOwner {
2944
2943
  id: number;
package/dist/index.js CHANGED
@@ -12907,7 +12907,16 @@ var CardVehicleOwnerForm = ({
12907
12907
  fontSize: reactComponents.tokens.fontSizeBase400,
12908
12908
  fontFamily: reactComponents.tokens.fontFamilyBase
12909
12909
  },
12910
- onWheel: (e) => e.target.blur()
12910
+ onWheel: (e) => e.target.blur(),
12911
+ onChange: (e) => {
12912
+ const newVal = Number(e.target.value);
12913
+ field.onChange(e);
12914
+ onUpdateCargoQuantity(
12915
+ owner.id,
12916
+ cargo.id,
12917
+ newVal
12918
+ );
12919
+ }
12911
12920
  }
12912
12921
  )
12913
12922
  }