@oliasoft-open-source/react-ui-library 10.2.4-beta-1 → 10.2.4

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