@oliasoft-open-source/react-ui-library 4.18.0-beta-6 → 4.18.0-beta-7
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.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1602,7 +1602,7 @@ declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
|
|
|
1602
1602
|
declare interface IUnitTableCell {
|
|
1603
1603
|
autoUnit: boolean;
|
|
1604
1604
|
unitKey: string;
|
|
1605
|
-
formatDisplayValue?: (value: TStringNumberNull) => TStringNumberNull;
|
|
1605
|
+
formatDisplayValue?: (value: TStringNumberNull, selectedUnit: string) => TStringNumberNull;
|
|
1606
1606
|
}
|
|
1607
1607
|
|
|
1608
1608
|
declare interface IUnitTableInputCell extends IInputCell, IUnitTableCell {
|
package/dist/index.js
CHANGED
|
@@ -66697,7 +66697,7 @@ const convertVisibleRows = ({
|
|
|
66697
66697
|
fromUnit: storageUnit
|
|
66698
66698
|
});
|
|
66699
66699
|
const convertedValue = unitChanged ? resultValue : cell2.value;
|
|
66700
|
-
const formattedDisplayValue = formatDisplayValue ? formatDisplayValue(convertedValue) : convertedValue;
|
|
66700
|
+
const formattedDisplayValue = formatDisplayValue ? formatDisplayValue(convertedValue, selectedUnit) : convertedValue;
|
|
66701
66701
|
return {
|
|
66702
66702
|
...cell2,
|
|
66703
66703
|
value: formattedDisplayValue,
|