@pdg/react-form 1.0.146 → 1.0.148
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
CHANGED
|
@@ -998,7 +998,7 @@ var templateObject_1$e, templateObject_2$7;var FormBody = function (_a) {
|
|
|
998
998
|
/********************************************************************************************************************
|
|
999
999
|
* State
|
|
1000
1000
|
* ******************************************************************************************************************/
|
|
1001
|
-
var children = _a.children, hidden = _a.hidden, initStyle = _a.style;
|
|
1001
|
+
var children = _a.children, hidden = _a.hidden, initFullHeight = _a.fullHeight, initStyle = _a.style;
|
|
1002
1002
|
var _b = useFormState(), spacing = _b.spacing, fullHeight = _b.fullHeight;
|
|
1003
1003
|
/********************************************************************************************************************
|
|
1004
1004
|
* ResizeDetector
|
|
@@ -1032,7 +1032,7 @@ var templateObject_1$e, templateObject_2$7;var FormBody = function (_a) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
: undefined, className: 'FormBody', style: style },
|
|
1034
1034
|
React.createElement(StyledContentDiv, { style: contentStyle },
|
|
1035
|
-
React.createElement(Grid, { container: true, spacing: spacing, direction: 'column', style:
|
|
1035
|
+
React.createElement(Grid, { container: true, spacing: spacing, direction: 'column', style: initFullHeight ? { height: '100%' } : undefined }, children))));
|
|
1036
1036
|
};var FormFooter = function (_a) {
|
|
1037
1037
|
var children = _a.children, noLine = _a.noLine, hidden = _a.hidden;
|
|
1038
1038
|
var spacing = useFormState().spacing;
|
|
@@ -1776,7 +1776,7 @@ FormMobile.displayName = 'FormMobile';var NumberFormatCustom = React.forwardRef(
|
|
|
1776
1776
|
if (onValue) {
|
|
1777
1777
|
finalValue = onValue(finalValue);
|
|
1778
1778
|
}
|
|
1779
|
-
return finalValue !== undefined ? finalValue.toString() :
|
|
1779
|
+
return finalValue !== undefined ? finalValue.toString() : '';
|
|
1780
1780
|
}, [onValue]);
|
|
1781
1781
|
var handleValidate = useCallback(function (value) {
|
|
1782
1782
|
if (onValidate) {
|
package/dist/index.js
CHANGED
|
@@ -998,7 +998,7 @@ var templateObject_1$e, templateObject_2$7;var FormBody = function (_a) {
|
|
|
998
998
|
/********************************************************************************************************************
|
|
999
999
|
* State
|
|
1000
1000
|
* ******************************************************************************************************************/
|
|
1001
|
-
var children = _a.children, hidden = _a.hidden, initStyle = _a.style;
|
|
1001
|
+
var children = _a.children, hidden = _a.hidden, initFullHeight = _a.fullHeight, initStyle = _a.style;
|
|
1002
1002
|
var _b = useFormState(), spacing = _b.spacing, fullHeight = _b.fullHeight;
|
|
1003
1003
|
/********************************************************************************************************************
|
|
1004
1004
|
* ResizeDetector
|
|
@@ -1032,7 +1032,7 @@ var templateObject_1$e, templateObject_2$7;var FormBody = function (_a) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
: undefined, className: 'FormBody', style: style },
|
|
1034
1034
|
React.createElement(StyledContentDiv, { style: contentStyle },
|
|
1035
|
-
React.createElement(material.Grid, { container: true, spacing: spacing, direction: 'column', style:
|
|
1035
|
+
React.createElement(material.Grid, { container: true, spacing: spacing, direction: 'column', style: initFullHeight ? { height: '100%' } : undefined }, children))));
|
|
1036
1036
|
};var FormFooter = function (_a) {
|
|
1037
1037
|
var children = _a.children, noLine = _a.noLine, hidden = _a.hidden;
|
|
1038
1038
|
var spacing = useFormState().spacing;
|
|
@@ -1776,7 +1776,7 @@ FormMobile.displayName = 'FormMobile';var NumberFormatCustom = React.forwardRef(
|
|
|
1776
1776
|
if (onValue) {
|
|
1777
1777
|
finalValue = onValue(finalValue);
|
|
1778
1778
|
}
|
|
1779
|
-
return finalValue !== undefined ? finalValue.toString() :
|
|
1779
|
+
return finalValue !== undefined ? finalValue.toString() : '';
|
|
1780
1780
|
}, [onValue]);
|
|
1781
1781
|
var handleValidate = React.useCallback(function (value) {
|
|
1782
1782
|
if (onValidate) {
|