@oliasoft-open-source/react-ui-library 4.17.0 → 4.17.1
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
|
@@ -1604,7 +1604,7 @@ declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
|
|
|
1604
1604
|
declare interface IUnitTableCell {
|
|
1605
1605
|
autoUnit: boolean;
|
|
1606
1606
|
unitKey: string;
|
|
1607
|
-
formatDisplayValue?: (value: TStringNumberNull) => TStringNumberNull;
|
|
1607
|
+
formatDisplayValue?: (value: TStringNumberNull, selectedUnit: string) => TStringNumberNull;
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
1610
|
declare interface IUnitTableInputCell extends IInputCell, IUnitTableCell {
|
package/dist/index.js
CHANGED
|
@@ -66288,7 +66288,7 @@ const convertVisibleRows = ({
|
|
|
66288
66288
|
fromUnit: storageUnit
|
|
66289
66289
|
});
|
|
66290
66290
|
const convertedValue = unitChanged ? resultValue : cell2.value;
|
|
66291
|
-
const formattedDisplayValue = formatDisplayValue ? formatDisplayValue(convertedValue) : convertedValue;
|
|
66291
|
+
const formattedDisplayValue = formatDisplayValue ? formatDisplayValue(convertedValue, selectedUnit) : convertedValue;
|
|
66292
66292
|
return {
|
|
66293
66293
|
...cell2,
|
|
66294
66294
|
value: formattedDisplayValue,
|