@agilemotion/oui-react-js 1.8.54 → 1.8.56
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/DynamicJS.js +1 -0
- package/dist/components/TableCellContent.js +2 -2
- package/dist/components/TemplateDesigner.js +2 -2
- package/dist/components/form/CurrencyField.js +1 -1
- package/dist/components/form/GridField.js +2 -1
- package/dist/components/signatures/SignatureInputProps.js +3 -4
- package/dist/components/signatures/SignatureTemplateDesigner.js +4 -3
- package/package.json +1 -1
package/dist/DynamicJS.js
CHANGED
|
@@ -157,7 +157,7 @@ const TableCellContent = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.de
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
if (props.columnConfig.cellFormat === 'CURRENCY' || props.columnConfig.cellFormat === 'NUMBER') {
|
|
160
|
-
return props.cellFormatter ? _DynamicJS.default.executeScriptFunction(props.cellFormatter, contentValue) : _Utils.default.isNull(contentValue) ? '' : props.columnConfig.cellFormat === 'CURRENCY' ? formatter.format(contentValue) : contentValue.
|
|
160
|
+
return props.cellFormatter ? _DynamicJS.default.executeScriptFunction(props.cellFormatter, contentValue) : _Utils.default.isNull(contentValue) ? '' : props.columnConfig.cellFormat === 'CURRENCY' ? formatter.format(Math.round((contentValue + Number.EPSILON) * 100) / 100) : Math.round((contentValue + Number.EPSILON) * 100) / 100;
|
|
161
161
|
} else {
|
|
162
162
|
if (_Utils.default.isNull(contentValue)) {
|
|
163
163
|
displayValue = '';
|
|
@@ -219,7 +219,7 @@ const TableCellContent = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.de
|
|
|
219
219
|
handle: props.handle,
|
|
220
220
|
values: formValue,
|
|
221
221
|
valueChangeHandler: value => {
|
|
222
|
-
editorValue.current = value[editor.dataBinding || editor.id];
|
|
222
|
+
editorValue.current = value ? value[editor.dataBinding || editor.id] : null;
|
|
223
223
|
valueChangeHandler(editorValue.current);
|
|
224
224
|
},
|
|
225
225
|
viewId: props.viewId
|
|
@@ -76,7 +76,7 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
76
76
|
borderTop: '1px solid #e1e1e1'
|
|
77
77
|
},
|
|
78
78
|
paletteButton: {
|
|
79
|
-
width: '
|
|
79
|
+
width: '256px',
|
|
80
80
|
height: '40px',
|
|
81
81
|
backgroundColor: '#e1e1e1',
|
|
82
82
|
margin: '4px',
|
|
@@ -88,7 +88,7 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
88
88
|
'&:hover': {
|
|
89
89
|
backgroundColor: 'yellowgreen'
|
|
90
90
|
},
|
|
91
|
-
width: '
|
|
91
|
+
width: '256px',
|
|
92
92
|
height: '40px',
|
|
93
93
|
backgroundColor: 'yellowgreen',
|
|
94
94
|
margin: '4px',
|
|
@@ -96,7 +96,7 @@ const CurrencyField = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.defau
|
|
|
96
96
|
}
|
|
97
97
|
if (inbound) {
|
|
98
98
|
const numValue = parseFloat(value);
|
|
99
|
-
return isNaN(numValue) ? null : numValue;
|
|
99
|
+
return isNaN(numValue) ? null : Math.round((numValue + Number.EPSILON) * 100) / 100;
|
|
100
100
|
} else {
|
|
101
101
|
return value;
|
|
102
102
|
}
|
|
@@ -79,11 +79,12 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.de
|
|
|
79
79
|
}
|
|
80
80
|
_react.default.useEffect(() => {
|
|
81
81
|
if (!_Utils.default.isNull(base.value) && !initialValueSet.current) {
|
|
82
|
-
setNewRows(base.value);
|
|
82
|
+
setNewRows(!_Utils.default.isNull(base.value) ? base.value : []);
|
|
83
83
|
}
|
|
84
84
|
}, [base.value]);
|
|
85
85
|
_react.default.useEffect(() => {
|
|
86
86
|
initialValueSet.current = false;
|
|
87
|
+
setNewRows(!_Utils.default.isNull(base.valueObject[base.valueProperty]) ? base.valueObject[base.valueProperty] : []);
|
|
87
88
|
}, [base.valueObject[base.valueProperty]]);
|
|
88
89
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
89
90
|
className: "MuiFormControl-root MuiTextField-root MuiFormControl-marginDense",
|
|
@@ -36,7 +36,6 @@ const SigPropsLookupField = props => {
|
|
|
36
36
|
const [open, setOpen] = _react.default.useState(false);
|
|
37
37
|
const formHandle = _react.default.useRef({});
|
|
38
38
|
_react.default.useEffect(() => {
|
|
39
|
-
console.log("NEW PROPS VAL : ", props.value);
|
|
40
39
|
setValue(props.value);
|
|
41
40
|
formHandle.current.api.model = {
|
|
42
41
|
signatory: props.value
|
|
@@ -80,10 +79,10 @@ const SigPropsLookupField = props => {
|
|
|
80
79
|
})), !props.signatorySearchForm && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("table", {
|
|
81
80
|
className: "w-100"
|
|
82
81
|
}, /*#__PURE__*/_react.default.createElement("tbody", null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
|
|
83
|
-
width: "
|
|
82
|
+
width: "180px"
|
|
84
83
|
}, /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
|
85
84
|
style: {
|
|
86
|
-
width: '
|
|
85
|
+
width: '180px'
|
|
87
86
|
},
|
|
88
87
|
InputProps: {
|
|
89
88
|
readOnly: true
|
|
@@ -226,7 +225,7 @@ const SignatureInputProps = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react
|
|
|
226
225
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
227
226
|
className: "row",
|
|
228
227
|
style: {
|
|
229
|
-
width: "
|
|
228
|
+
width: "246px"
|
|
230
229
|
}
|
|
231
230
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
232
231
|
className: "col-*-*",
|
|
@@ -58,7 +58,7 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
58
58
|
borderTop: '1px solid #e1e1e1'
|
|
59
59
|
},
|
|
60
60
|
paletteButton: {
|
|
61
|
-
width: '
|
|
61
|
+
width: '252px',
|
|
62
62
|
height: '40px',
|
|
63
63
|
backgroundColor: '#e1e1e1',
|
|
64
64
|
margin: '4px',
|
|
@@ -71,7 +71,7 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
71
71
|
'&:hover': {
|
|
72
72
|
backgroundColor: 'yellowgreen'
|
|
73
73
|
},
|
|
74
|
-
width: '
|
|
74
|
+
width: '252px',
|
|
75
75
|
height: '40px',
|
|
76
76
|
backgroundColor: 'yellowgreen',
|
|
77
77
|
margin: '4px',
|
|
@@ -460,7 +460,8 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo(/*#__PURE__*/
|
|
|
460
460
|
className: `${classes.palette} col-*-*`,
|
|
461
461
|
style: {
|
|
462
462
|
maxHeight: 'calc(70vh - 80px)',
|
|
463
|
-
|
|
463
|
+
overflowX: 'hidden',
|
|
464
|
+
overflowY: 'auto',
|
|
464
465
|
width: '280px'
|
|
465
466
|
}
|
|
466
467
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
package/package.json
CHANGED