@oliasoft-open-source/react-ui-library 10.2.4 → 10.2.5-beta-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 CHANGED
@@ -1957,6 +1957,10 @@ declare interface IUnitConfigItem {
1957
1957
  preferredUnit?: string;
1958
1958
  }
1959
1959
 
1960
+ declare interface IUnitEntry {
1961
+ [key: string]: string;
1962
+ }
1963
+
1960
1964
  export declare interface IUnitInputProps {
1961
1965
  name?: string | {
1962
1966
  fieldName?: string;
@@ -2023,6 +2027,14 @@ declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
2023
2027
  rows?: IUnitTableRow[];
2024
2028
  }
2025
2029
 
2030
+ export declare interface IUnitTableBeforeRenderRowParams {
2031
+ row: IUnitTableRow;
2032
+ rowIndex: number;
2033
+ selectedUnits: IUnitEntry;
2034
+ storageUnits: IUnitEntry;
2035
+ convertValue: (value: TStringNumberNull, unitKey: string) => TStringNumberNull;
2036
+ }
2037
+
2026
2038
  declare interface IUnitTableCell {
2027
2039
  autoUnit: boolean;
2028
2040
  unitKey: string;
@@ -2043,7 +2055,7 @@ export declare interface IUnitTableOnChangeEvent extends ITableOnChangeEvent {
2043
2055
  };
2044
2056
  }
2045
2057
 
2046
- export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
2058
+ export declare interface IUnitTableProps extends Omit<ITableProps, 'table' | 'beforeRenderRow'> {
2047
2059
  table: IUnitTable;
2048
2060
  unitConfig: IUnitConfigItem[];
2049
2061
  convertBackToStorageUnit?: boolean;
@@ -2057,10 +2069,7 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
2057
2069
  from: number;
2058
2070
  to: number;
2059
2071
  }) => boolean;
2060
- beforeRenderRow?: ({ row, rowIndex }: {
2061
- row: IUnitTableRow;
2062
- rowIndex: number;
2063
- }) => IUnitTableRow;
2072
+ beforeRenderRow?: (params: IUnitTableBeforeRenderRowParams) => IUnitTableRow;
2064
2073
  }
2065
2074
 
2066
2075
  export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {