@oliasoft-open-source/react-ui-library 4.15.7-beta-3 → 4.15.7-beta-5
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 +2 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1592,6 +1592,7 @@ export declare interface IUnitInputProps {
|
|
|
1592
1592
|
enableCosmeticRounding?: boolean;
|
|
1593
1593
|
enableDisplayRounding?: boolean;
|
|
1594
1594
|
roundDisplayValue?: (args: TStringOrNumber) => TStringOrNumber;
|
|
1595
|
+
selectOnFocus?: boolean;
|
|
1595
1596
|
}
|
|
1596
1597
|
|
|
1597
1598
|
declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
|
|
@@ -1889,7 +1890,7 @@ declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTabl
|
|
|
1889
1890
|
|
|
1890
1891
|
declare type UnitContextType = any;
|
|
1891
1892
|
|
|
1892
|
-
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, }: IUnitInputProps) => JSX_2.Element;
|
|
1893
|
+
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, }: IUnitInputProps) => JSX_2.Element;
|
|
1893
1894
|
|
|
1894
1895
|
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
|
|
1895
1896
|
|
package/dist/index.js
CHANGED
|
@@ -70359,7 +70359,8 @@ const UnitInput = ({
|
|
|
70359
70359
|
convertBackToStorageUnit = false,
|
|
70360
70360
|
enableCosmeticRounding = true,
|
|
70361
70361
|
enableDisplayRounding = false,
|
|
70362
|
-
roundDisplayValue
|
|
70362
|
+
roundDisplayValue,
|
|
70363
|
+
selectOnFocus = false
|
|
70363
70364
|
}) => {
|
|
70364
70365
|
const context2 = useUnitContext();
|
|
70365
70366
|
const runAfterUpdate = useRunAfterUpdate();
|
|
@@ -70611,7 +70612,8 @@ const UnitInput = ({
|
|
|
70611
70612
|
roundDisplayValue,
|
|
70612
70613
|
groupOrder: predefinedOptions ? "middle" : "first",
|
|
70613
70614
|
disableInternalErrorValidationMessages,
|
|
70614
|
-
small: small2
|
|
70615
|
+
small: small2,
|
|
70616
|
+
selectOnFocus
|
|
70615
70617
|
},
|
|
70616
70618
|
stringName
|
|
70617
70619
|
) }),
|