@agilemotion/oui-react-js 1.8.58 → 1.8.60
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.
|
@@ -261,7 +261,7 @@ const Toolbar = props => {
|
|
|
261
261
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
262
262
|
style: {
|
|
263
263
|
width: 'calc(100% - 40px)',
|
|
264
|
-
maxHeight: '
|
|
264
|
+
maxHeight: '64px'
|
|
265
265
|
},
|
|
266
266
|
ref: sectionContainerRef
|
|
267
267
|
}, toolbar.sections.map((section, index) => {
|
|
@@ -351,10 +351,9 @@ const Toolbar = props => {
|
|
|
351
351
|
id: props.config.id,
|
|
352
352
|
className: 'oui-toolbar',
|
|
353
353
|
style: _Utils.default.mergeStyles({
|
|
354
|
-
borderBottom: '1px solid #e2e2e2',
|
|
355
354
|
padding: '4px 0',
|
|
356
355
|
overflow: 'hidden',
|
|
357
|
-
maxHeight: '
|
|
356
|
+
maxHeight: '64px'
|
|
358
357
|
}, props.config)
|
|
359
358
|
}, render(props.config));
|
|
360
359
|
};
|
|
@@ -223,8 +223,8 @@ const WordDocumentViewer = props => {
|
|
|
223
223
|
};
|
|
224
224
|
function extractDocumentText(editor) {
|
|
225
225
|
if (currentText.current) return currentText.current;
|
|
226
|
-
const originalStart = selection.startOffset;
|
|
227
|
-
const originalEnd = selection.endOffset;
|
|
226
|
+
const originalStart = editor.selection.startOffset;
|
|
227
|
+
const originalEnd = editor.selection.endOffset;
|
|
228
228
|
editor.selection.selectAll();
|
|
229
229
|
const text = editor.selection.getText();
|
|
230
230
|
editor.selection.select(originalStart, originalEnd);
|
|
@@ -426,6 +426,9 @@ const Form = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwar
|
|
|
426
426
|
if (!_Utils.default.isNull(props.valueChangeHandler)) {
|
|
427
427
|
props.valueChangeHandler({});
|
|
428
428
|
}
|
|
429
|
+
if (!_Utils.default.isNull(props.modelChangeHandler)) {
|
|
430
|
+
props.modelChangeHandler({});
|
|
431
|
+
}
|
|
429
432
|
_ApplicationManager.default.enableFormMarkers(true);
|
|
430
433
|
}
|
|
431
434
|
function doBindData(data) {
|
|
@@ -561,6 +564,9 @@ const Form = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwar
|
|
|
561
564
|
if (!_Utils.default.isNull(props.valueChangeHandler)) {
|
|
562
565
|
props.valueChangeHandler(invalid ? null : values.current, id, value);
|
|
563
566
|
}
|
|
567
|
+
if (!_Utils.default.isNull(props.modelChangeHandler)) {
|
|
568
|
+
props.modelChangeHandler(values.current, id, value);
|
|
569
|
+
}
|
|
564
570
|
}
|
|
565
571
|
_ApplicationManager.default.enableFormMarkers(false);
|
|
566
572
|
_Observable.default.processSystemGeneratedSubscriptions(props.config.id);
|
|
@@ -609,6 +615,11 @@ const Form = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwar
|
|
|
609
615
|
props.valueChangeHandler(_objectSpread(_objectSpread({}, values.current), {}, {
|
|
610
616
|
[name]: value
|
|
611
617
|
}));
|
|
618
|
+
if (props.modelChangeHandler) {
|
|
619
|
+
props.modelChangeHandler(_objectSpread(_objectSpread({}, values.current), {}, {
|
|
620
|
+
[name]: value
|
|
621
|
+
}));
|
|
622
|
+
}
|
|
612
623
|
};
|
|
613
624
|
function render(form) {
|
|
614
625
|
return _Utils.default.isNull(form.sections) || form.sections.length === 0 ? null : /*#__PURE__*/_react.default.createElement("div", null, form.sections.map(section => {
|
package/package.json
CHANGED