@pdg/react-form 1.0.64 → 1.0.65
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.esm.js +9 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4012,7 +4012,7 @@ function NumericFormat(props) {
|
|
|
4012
4012
|
});
|
|
4013
4013
|
NumberFormatCustom.displayName = 'NumberFormatCustom';var FormNumberDefaultProps = __assign$7(__assign$7({}, FormTextFieldDefaultProps), { clear: true });var FormNumber = React.forwardRef(function (_a, ref) {
|
|
4014
4014
|
// State -------------------------------------------------------------------------------------------------------------
|
|
4015
|
-
var className = _a.className, allowNegative = _a.allowNegative, thousandSeparator = _a.thousandSeparator, allowDecimal = _a.allowDecimal, decimalScale = _a.decimalScale, prefix = _a.prefix, suffix = _a.suffix, readOnly = _a.readOnly, tabIndex = _a.tabIndex, initMuiInputProps = _a.InputProps, initValue = _a.value, onChange = _a.onChange, props = __rest$4(_a, ["className", "allowNegative", "thousandSeparator", "allowDecimal", "decimalScale", "prefix", "suffix", "readOnly", "tabIndex", "InputProps", "value", "onChange"]);
|
|
4015
|
+
var className = _a.className, allowNegative = _a.allowNegative, thousandSeparator = _a.thousandSeparator, allowDecimal = _a.allowDecimal, decimalScale = _a.decimalScale, prefix = _a.prefix, suffix = _a.suffix, readOnly = _a.readOnly, tabIndex = _a.tabIndex, initMuiInputProps = _a.InputProps, initInputProps = _a.inputProps, initValue = _a.value, onChange = _a.onChange, props = __rest$4(_a, ["className", "allowNegative", "thousandSeparator", "allowDecimal", "decimalScale", "prefix", "suffix", "readOnly", "tabIndex", "InputProps", "inputProps", "value", "onChange"]);
|
|
4016
4016
|
var _b = React.useState(function () { return (empty(initValue) ? '' : "".concat(initValue)); }), strValue = _b[0], setStrValue = _b[1];
|
|
4017
4017
|
// Effect ------------------------------------------------------------------------------------------------------------
|
|
4018
4018
|
React.useEffect(function () {
|
|
@@ -4037,17 +4037,18 @@ NumberFormatCustom.displayName = 'NumberFormatCustom';var FormNumberDefaultProps
|
|
|
4037
4037
|
else {
|
|
4038
4038
|
inputProps.decimalScale = 0;
|
|
4039
4039
|
}
|
|
4040
|
-
return __assign$7(__assign$7({}, initMuiInputProps), { inputComponent: NumberFormatCustom, inputProps: inputProps });
|
|
4040
|
+
return __assign$7(__assign$7({}, initMuiInputProps), { inputComponent: NumberFormatCustom, inputProps: __assign$7(__assign$7({}, initInputProps), inputProps) });
|
|
4041
4041
|
}, [
|
|
4042
|
-
|
|
4042
|
+
readOnly,
|
|
4043
4043
|
allowNegative,
|
|
4044
|
-
|
|
4045
|
-
initMuiInputProps,
|
|
4044
|
+
thousandSeparator,
|
|
4046
4045
|
prefix,
|
|
4047
|
-
readOnly,
|
|
4048
|
-
tabIndex,
|
|
4049
4046
|
suffix,
|
|
4050
|
-
|
|
4047
|
+
tabIndex,
|
|
4048
|
+
allowDecimal,
|
|
4049
|
+
initMuiInputProps,
|
|
4050
|
+
initInputProps,
|
|
4051
|
+
decimalScale,
|
|
4051
4052
|
]);
|
|
4052
4053
|
// Event Handler -----------------------------------------------------------------------------------------------------
|
|
4053
4054
|
var handleChange = React.useCallback(function (value) {
|