@oliasoft-open-source/react-ui-library 4.20.9 → 4.20.10-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 +9 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1651,6 +1651,14 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
|
1651
1651
|
convertBackToStorageUnit?: boolean;
|
|
1652
1652
|
enableCosmeticRounding?: boolean;
|
|
1653
1653
|
enableDisplayRounding?: boolean;
|
|
1654
|
+
onListReorder?: (obj: {
|
|
1655
|
+
from: number;
|
|
1656
|
+
to: number;
|
|
1657
|
+
}) => void;
|
|
1658
|
+
canListReorder?: (obj: {
|
|
1659
|
+
from: number;
|
|
1660
|
+
to: number;
|
|
1661
|
+
}) => boolean;
|
|
1654
1662
|
}
|
|
1655
1663
|
|
|
1656
1664
|
export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
@@ -1918,7 +1926,7 @@ declare type UnitContextType = any;
|
|
|
1918
1926
|
|
|
1919
1927
|
export declare const UnitInput: ({ name, placeholder, disabled, disabledUnit, error, left, small, width, value, unitkey, initUnit, noConversion, onChange, onClick, onFocus, onSwitchUnit, unitTemplate, testId, warning, predefinedOptions, initialPredefinedOption, shouldLinkAutomaticly, selectedPredefinedOptionKey, validationCallback, disabledValidation, allowEmpty, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, selectOnFocus, groupOrder, }: IUnitInputProps) => JSX_2.Element;
|
|
1920
1928
|
|
|
1921
|
-
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
|
|
1929
|
+
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, }: IUnitTableProps) => JSX_2.Element;
|
|
1922
1930
|
|
|
1923
1931
|
export declare const useFocus: () => UseFocusReturnType;
|
|
1924
1932
|
|
package/dist/index.js
CHANGED
|
@@ -66701,7 +66701,9 @@ const UnitTable = ({
|
|
|
66701
66701
|
unitConfig,
|
|
66702
66702
|
convertBackToStorageUnit = true,
|
|
66703
66703
|
enableCosmeticRounding = true,
|
|
66704
|
-
enableDisplayRounding = true
|
|
66704
|
+
enableDisplayRounding = true,
|
|
66705
|
+
onListReorder,
|
|
66706
|
+
canListReorder
|
|
66705
66707
|
}) => {
|
|
66706
66708
|
const { rows, headers, ...otherProps } = table2;
|
|
66707
66709
|
const { storageUnits, preferredUnits } = normalizeUnits(unitConfig);
|
|
@@ -66761,7 +66763,9 @@ const UnitTable = ({
|
|
|
66761
66763
|
...otherProps,
|
|
66762
66764
|
headers: viewData.convertedHeaders,
|
|
66763
66765
|
rows: viewData.convertedRows
|
|
66764
|
-
}
|
|
66766
|
+
},
|
|
66767
|
+
onListReorder,
|
|
66768
|
+
canListReorder
|
|
66765
66769
|
}
|
|
66766
66770
|
);
|
|
66767
66771
|
};
|