hoeditor-web 3.1.100 → 3.1.102
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/lib/hoeditor.css +1 -17966
- package/lib/hoeditor.umd.js +538 -417
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -37669,6 +37669,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37669
37669
|
}
|
|
37670
37670
|
startPath = domRange.startPath;
|
|
37671
37671
|
endPath = domRange.endPath;
|
|
37672
|
+
var drawPage = hoEditorFactory.drawTree.activePage;
|
|
37673
|
+
if (drawPage) {
|
|
37674
|
+
var dNode = hoEditorFactory.drawTree.getDNodeByPath(endPath);
|
|
37675
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
37676
|
+
var stagePt = dline.localToGlobal(dNode.x, dNode.y);
|
|
37677
|
+
var result = hoEditorFactory.vueController.isCanEdit(drawPage.pageIndex, stagePt.x, stagePt.y);
|
|
37678
|
+
if (!result) return;
|
|
37679
|
+
}
|
|
37672
37680
|
var changingEvent = new _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_24__/* .NodeChangingEvent */ .Q(_DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daInsert, startPath, endPath, _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_24__/* .OperType */ .y.keyBoardDelete);
|
|
37673
37681
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
37674
37682
|
if (keyValue === 'Backspace') {
|
|
@@ -63769,7 +63777,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63769
63777
|
/*
|
|
63770
63778
|
* @Author: your name
|
|
63771
63779
|
* @Date: 2020-11-03 15:17:54
|
|
63772
|
-
* @LastEditTime: 2024-04-
|
|
63780
|
+
* @LastEditTime: 2024-04-05 21:38:57
|
|
63773
63781
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
63774
63782
|
* @Description: In User Settings Edit
|
|
63775
63783
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -65510,6 +65518,62 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
65510
65518
|
}
|
|
65511
65519
|
}
|
|
65512
65520
|
//}
|
|
65521
|
+
// let mark = true;
|
|
65522
|
+
// for (let m = 0; m < this.childNodes.length; m++) {
|
|
65523
|
+
// const anode = this.childNodes[m];
|
|
65524
|
+
// if (anode instanceof ControlNode || anode instanceof TextInputFieldNode || anode instanceof SignNode || anode instanceof QrcodeNode) {
|
|
65525
|
+
// mark = false;
|
|
65526
|
+
// break;
|
|
65527
|
+
// }
|
|
65528
|
+
// }
|
|
65529
|
+
// if (clearSign && mark && this.readType === 1) {
|
|
65530
|
+
// this.text = "";
|
|
65531
|
+
// this._childNodes.splice(1, this._childNodes.length - 2);
|
|
65532
|
+
// this._childNodes2.splice(1, this._childNodes2.length - 2);
|
|
65533
|
+
// const markNode = new MarkNode(
|
|
65534
|
+
// this.hoEditorFactoryID,
|
|
65535
|
+
// this.rootNodes,
|
|
65536
|
+
// this,
|
|
65537
|
+
// NodeType.ntMark,
|
|
65538
|
+
// this.labelText,
|
|
65539
|
+
// this.StartMarkNode.styleIndex,
|
|
65540
|
+
// MarkNodeType.mtContent
|
|
65541
|
+
// );
|
|
65542
|
+
// this._childNodes.splice(1, 0, markNode);
|
|
65543
|
+
// this._childNodes2.splice(1, 0, markNode);
|
|
65544
|
+
// for (let n = 0; n < this.childNodes.length; n++) {
|
|
65545
|
+
// childArray.push(this.childNodes[n].node2Json(undefined, isCopy));
|
|
65546
|
+
// }
|
|
65547
|
+
// } else {
|
|
65548
|
+
for (var _i = 0; _i < this.childNodes.length; _i++) {
|
|
65549
|
+
var _node = this.childNodes[_i];
|
|
65550
|
+
if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && _node.text.substr(0, 1) !== 'C')) {
|
|
65551
|
+
if (_node instanceof TextInputFieldNode) {
|
|
65552
|
+
childArray.push(_node.node2Json(undefined, isCopy, type, clearSign));
|
|
65553
|
+
} else if (_node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_54__/* .SignNode */ .N) {
|
|
65554
|
+
if (clearSign) {
|
|
65555
|
+
if (_node.isTemplate) {
|
|
65556
|
+
childArray.push(_node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
65557
|
+
}
|
|
65558
|
+
} else {
|
|
65559
|
+
childArray.push(_node.node2Json(undefined, isCopy));
|
|
65560
|
+
}
|
|
65561
|
+
} else {
|
|
65562
|
+
if (_node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_57__/* .TextNode */ .R) {
|
|
65563
|
+
if (_node.text !== '') {
|
|
65564
|
+
childArray.push(_node.node2Json(undefined, isCopy));
|
|
65565
|
+
}
|
|
65566
|
+
} else if (_node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_44__/* .DateTimeNode */ .Z || _node instanceof _QrcodeNode__WEBPACK_IMPORTED_MODULE_58__/* .QrcodeNode */ .d || _node instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_43__/* .ControlNode */ .w && _node.readType === 1) {
|
|
65567
|
+
childArray.push(_node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
65568
|
+
} else {
|
|
65569
|
+
childArray.push(_node.node2Json(undefined, isCopy));
|
|
65570
|
+
}
|
|
65571
|
+
}
|
|
65572
|
+
} else {
|
|
65573
|
+
childArray.push(_node.node2Json(undefined, isCopy));
|
|
65574
|
+
}
|
|
65575
|
+
}
|
|
65576
|
+
//}
|
|
65513
65577
|
// if (childArray.length > 0) {
|
|
65514
65578
|
// if (childArray[0].MarkNode && childArray[0].MarkNode.type === 0) {
|
|
65515
65579
|
// if (!childArray[childArray.length - 1].MarkNode) {
|
|
@@ -65547,17 +65611,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
65547
65611
|
if (rec.from == this.range().from) {
|
|
65548
65612
|
canCopy = true;
|
|
65549
65613
|
}
|
|
65550
|
-
for (var
|
|
65551
|
-
var
|
|
65614
|
+
for (var _i2 = 0; _i2 < this.childNodes.length; _i2++) {
|
|
65615
|
+
var _node2 = this.childNodes[_i2];
|
|
65552
65616
|
if (!canCopy) {
|
|
65553
|
-
canCopy =
|
|
65617
|
+
canCopy = _node2.checkPath(rec.from);
|
|
65554
65618
|
}
|
|
65555
65619
|
if (canCopy) {
|
|
65556
|
-
if (!(
|
|
65557
|
-
childArray.push(
|
|
65620
|
+
if (!(_node2 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && _node2.text.substr(0, 1) === 'C')) {
|
|
65621
|
+
childArray.push(_node2.node2Json(rec, isCopy));
|
|
65558
65622
|
}
|
|
65559
65623
|
}
|
|
65560
|
-
if (
|
|
65624
|
+
if (_node2.checkPath(rec.to)) {
|
|
65561
65625
|
break;
|
|
65562
65626
|
}
|
|
65563
65627
|
}
|
|
@@ -65879,45 +65943,45 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
65879
65943
|
}
|
|
65880
65944
|
} else {
|
|
65881
65945
|
//单个对象
|
|
65882
|
-
var
|
|
65883
|
-
if (
|
|
65884
|
-
if (
|
|
65885
|
-
if (
|
|
65946
|
+
var _node3 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
65947
|
+
if (_node3) {
|
|
65948
|
+
if (_node3 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_57__/* .TextNode */ .R) {
|
|
65949
|
+
if (_node3.text.length > (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_node3.text).length) {
|
|
65886
65950
|
//特殊处理生僻字
|
|
65887
|
-
var _rareCharNode = new _RareCharNode__WEBPACK_IMPORTED_MODULE_59__/* .RareCharNode */ .Q(temp.hoEditorFactoryID,
|
|
65951
|
+
var _rareCharNode = new _RareCharNode__WEBPACK_IMPORTED_MODULE_59__/* .RareCharNode */ .Q(temp.hoEditorFactoryID, _node3.rootNodes, _node3.parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_42__/* .NodeType */ .Jq.ntRareChar, _node3.text, _node3.styleIndex);
|
|
65888
65952
|
nodes.push(_rareCharNode);
|
|
65889
65953
|
} else {
|
|
65890
|
-
if (
|
|
65891
|
-
nodes.push(
|
|
65954
|
+
if (_node3.text !== '' && _node3.text !== '' && _node3.text !== '' && _node3.text !== '' && _node3.text !== '' && _node3.text !== '') {
|
|
65955
|
+
nodes.push(_node3);
|
|
65892
65956
|
}
|
|
65893
|
-
if (
|
|
65894
|
-
hoEditorFactory.structureConvert._errTextNodes.push(
|
|
65957
|
+
if (_node3.errorIndex != undefined) {
|
|
65958
|
+
hoEditorFactory.structureConvert._errTextNodes.push(_node3);
|
|
65895
65959
|
isErrorValid = true;
|
|
65896
65960
|
}
|
|
65897
65961
|
}
|
|
65898
65962
|
} else {
|
|
65899
65963
|
//nodes.push(node);
|
|
65900
65964
|
if (isClearSign) {
|
|
65901
|
-
if (
|
|
65902
|
-
if (
|
|
65903
|
-
nodes.push(
|
|
65965
|
+
if (_node3 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_54__/* .SignNode */ .N) {
|
|
65966
|
+
if (_node3.isTemplate && !(_node3.number == 0 && _node3.type == 0 && _node3.name == '')) {
|
|
65967
|
+
nodes.push(_node3);
|
|
65904
65968
|
}
|
|
65905
65969
|
} else {
|
|
65906
|
-
nodes.push(
|
|
65970
|
+
nodes.push(_node3);
|
|
65907
65971
|
}
|
|
65908
65972
|
} else {
|
|
65909
|
-
if (
|
|
65910
|
-
if (!(
|
|
65911
|
-
nodes.push(
|
|
65973
|
+
if (_node3 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_54__/* .SignNode */ .N) {
|
|
65974
|
+
if (!(_node3.number == 0 && _node3.type == 0 && _node3.name == '')) {
|
|
65975
|
+
nodes.push(_node3);
|
|
65912
65976
|
}
|
|
65913
65977
|
} else {
|
|
65914
|
-
nodes.push(
|
|
65978
|
+
nodes.push(_node3);
|
|
65915
65979
|
}
|
|
65916
65980
|
}
|
|
65917
65981
|
}
|
|
65918
65982
|
}
|
|
65919
|
-
if (
|
|
65920
|
-
hoEditorFactory.structureConvert._markNodes.push(
|
|
65983
|
+
if (_node3 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && _node3.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtEnd && _node3.text.substring(0, 1) === 'C') {
|
|
65984
|
+
hoEditorFactory.structureConvert._markNodes.push(_node3);
|
|
65921
65985
|
}
|
|
65922
65986
|
// if (node instanceof SignNode &&
|
|
65923
65987
|
// ((node.imgSrc != "" && ((hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes((node.customProperty as any).bce01)) || hoEditorFactory.forbidEditBeforeSign))
|
|
@@ -66114,14 +66178,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66114
66178
|
}
|
|
66115
66179
|
}
|
|
66116
66180
|
if (textArr.length > 1) {
|
|
66117
|
-
for (var
|
|
66181
|
+
for (var _i3 = 1; _i3 < textArr.length; _i3++) {
|
|
66118
66182
|
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_50__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
66119
66183
|
paragraNode.styleIndex = styleIndex;
|
|
66120
66184
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paragraNode);
|
|
66121
|
-
if (textArr[
|
|
66122
|
-
if (textArr[
|
|
66185
|
+
if (textArr[_i3] !== '') {
|
|
66186
|
+
if (textArr[_i3].indexOf('<上标>') >= 0 || textArr[_i3].indexOf('<下标>') >= 0) {
|
|
66123
66187
|
result = [];
|
|
66124
|
-
var resultArr1 = getText(textArr[
|
|
66188
|
+
var resultArr1 = getText(textArr[_i3]);
|
|
66125
66189
|
for (var _k = 0; _k < resultArr1.length; _k++) {
|
|
66126
66190
|
if (resultArr1[_k].text != '') {
|
|
66127
66191
|
var _newStyleIndex = styleIndex;
|
|
@@ -66136,7 +66200,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66136
66200
|
}
|
|
66137
66201
|
}
|
|
66138
66202
|
} else {
|
|
66139
|
-
var _textNode2 = new _TextNode__WEBPACK_IMPORTED_MODULE_57__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_42__/* .NodeType */ .Jq.ntText, textArr[
|
|
66203
|
+
var _textNode2 = new _TextNode__WEBPACK_IMPORTED_MODULE_57__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_42__/* .NodeType */ .Jq.ntText, textArr[_i3], styleIndex);
|
|
66140
66204
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode2);
|
|
66141
66205
|
}
|
|
66142
66206
|
}
|
|
@@ -66148,9 +66212,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66148
66212
|
}
|
|
66149
66213
|
if (expressArr.length > 0) {
|
|
66150
66214
|
//每遍历一个表达式 先插入表达式 再将表达式后的文本插进去
|
|
66151
|
-
for (var
|
|
66152
|
-
var sIndex = expressArr[
|
|
66153
|
-
var eIndex = expressArr[
|
|
66215
|
+
for (var _i4 = 0; _i4 < expressArr.length; _i4++) {
|
|
66216
|
+
var sIndex = expressArr[_i4].sIndex;
|
|
66217
|
+
var eIndex = expressArr[_i4].eIndex;
|
|
66154
66218
|
var expressJson = temp.text.substring(sIndex + 16, eIndex);
|
|
66155
66219
|
var expressObj = JSON.parse(expressJson);
|
|
66156
66220
|
var expressStyle = _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_49__/* .ExpressStyle */ .e[expressObj.expressStyle];
|
|
@@ -66176,8 +66240,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66176
66240
|
}
|
|
66177
66241
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, medicalExpressNode);
|
|
66178
66242
|
var behindText = ''; //表达式后的文本串
|
|
66179
|
-
if (
|
|
66180
|
-
behindText = temp.text.substring(eIndex + 17, expressArr[
|
|
66243
|
+
if (_i4 < expressArr.length - 1) {
|
|
66244
|
+
behindText = temp.text.substring(eIndex + 17, expressArr[_i4 + 1].sIndex);
|
|
66181
66245
|
} else {
|
|
66182
66246
|
behindText = temp.text.substring(eIndex + 17, temp.text.length);
|
|
66183
66247
|
}
|
|
@@ -204744,14 +204808,14 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
204744
204808
|
key: "mouseDblClick",
|
|
204745
204809
|
value: function () {
|
|
204746
204810
|
var _mouseDblClick = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(aevent) {
|
|
204747
|
-
var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2, _nodeNeedModifyEvent3, dPageTable, dPageCell, pos, docHeight, dHeight, index, i, dLastObj, distance, aHeight, count, str, j, _oldRange, _endPath, _newRange;
|
|
204811
|
+
var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, dNode, dline, stagePt, result, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2, _nodeNeedModifyEvent3, dPageTable, dPageCell, pos, docHeight, dHeight, index, i, dLastObj, distance, aHeight, count, str, j, _oldRange, _endPath, _newRange;
|
|
204748
204812
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
204749
204813
|
while (1) switch (_context.prev = _context.next) {
|
|
204750
204814
|
case 0:
|
|
204751
204815
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
204752
204816
|
dPage = hoEditorFactory.drawTree.drawPages[this._pageIndex];
|
|
204753
204817
|
if (!(aevent.currentTarget === this.stage)) {
|
|
204754
|
-
_context.next =
|
|
204818
|
+
_context.next = 55;
|
|
204755
204819
|
break;
|
|
204756
204820
|
}
|
|
204757
204821
|
oldDPage = hoEditorFactory.drawTree.activePage;
|
|
@@ -204793,27 +204857,37 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
204793
204857
|
//this._drawPage.drawDomLevel.activeDrawRect,
|
|
204794
204858
|
aevent.stageX, aevent.stageY);
|
|
204795
204859
|
if (!startPos) {
|
|
204796
|
-
_context.next =
|
|
204860
|
+
_context.next = 55;
|
|
204797
204861
|
break;
|
|
204798
204862
|
}
|
|
204799
|
-
|
|
204863
|
+
dNode = hoEditorFactory.drawTree.getDNodeByPath(startPos.path);
|
|
204864
|
+
dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
204865
|
+
stagePt = dline.localToGlobal(dNode.x, dNode.y);
|
|
204866
|
+
result = hoEditorFactory.vueController.isCanEdit(dPage.pageIndex, stagePt.x, stagePt.y);
|
|
204867
|
+
if (result) {
|
|
204800
204868
|
_context.next = 30;
|
|
204801
204869
|
break;
|
|
204802
204870
|
}
|
|
204871
|
+
return _context.abrupt("return");
|
|
204872
|
+
case 30:
|
|
204873
|
+
if (!(!isSameArea && startPos.page)) {
|
|
204874
|
+
_context.next = 36;
|
|
204875
|
+
break;
|
|
204876
|
+
}
|
|
204803
204877
|
//活动区域变更
|
|
204804
204878
|
hoEditorFactory.docTree.curDomRange.setSamePath(startPos.path);
|
|
204805
204879
|
if (!(targetArea.children.length === 0)) {
|
|
204806
|
-
_context.next =
|
|
204880
|
+
_context.next = 34;
|
|
204807
204881
|
break;
|
|
204808
204882
|
}
|
|
204809
204883
|
return _context.abrupt("return", true);
|
|
204810
|
-
case
|
|
204884
|
+
case 34:
|
|
204811
204885
|
hoEditorFactory.drawTree.moveCaretToPath(startPos.path);
|
|
204812
204886
|
return _context.abrupt("return", true);
|
|
204813
|
-
case
|
|
204887
|
+
case 36:
|
|
204814
204888
|
np = hoEditorFactory.docTree.findNodePositionByPath(startPos.path);
|
|
204815
204889
|
if (!(np && np.node)) {
|
|
204816
|
-
_context.next =
|
|
204890
|
+
_context.next = 55;
|
|
204817
204891
|
break;
|
|
204818
204892
|
}
|
|
204819
204893
|
prevNode = np.node.prevSibling();
|
|
@@ -204830,33 +204904,33 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
204830
204904
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
204831
204905
|
}
|
|
204832
204906
|
if (!(np.node.nodeType === BaseNode/* NodeType */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType */.Jq.ntImage)) {
|
|
204833
|
-
_context.next =
|
|
204907
|
+
_context.next = 45;
|
|
204834
204908
|
break;
|
|
204835
204909
|
}
|
|
204836
204910
|
nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
204837
204911
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
204838
|
-
_context.next =
|
|
204912
|
+
_context.next = 55;
|
|
204839
204913
|
break;
|
|
204840
|
-
case
|
|
204914
|
+
case 45:
|
|
204841
204915
|
if (!(np.node.parentNode instanceof CellNode/* CellNode */.D)) {
|
|
204842
|
-
_context.next =
|
|
204916
|
+
_context.next = 55;
|
|
204843
204917
|
break;
|
|
204844
204918
|
}
|
|
204845
204919
|
cellNode = np.node.parentNode;
|
|
204846
204920
|
colInfos = cellNode.table.colInfos[np.node.parentNode.row.indexOf(np.node.parentNode)];
|
|
204847
204921
|
if (colInfos.isAllowEdit) {
|
|
204848
|
-
_context.next =
|
|
204922
|
+
_context.next = 50;
|
|
204849
204923
|
break;
|
|
204850
204924
|
}
|
|
204851
204925
|
return _context.abrupt("return");
|
|
204852
|
-
case
|
|
204926
|
+
case 50:
|
|
204853
204927
|
rowInfos = cellNode.table.rowInfos[np.node.parentNode.table.rows.indexOf(np.node.parentNode.row)];
|
|
204854
204928
|
if (!(!rowInfos.isAllowEdit || rowInfos.rowProperty.repeatAsTitleAtPageTop)) {
|
|
204855
|
-
_context.next =
|
|
204929
|
+
_context.next = 53;
|
|
204856
204930
|
break;
|
|
204857
204931
|
}
|
|
204858
204932
|
return _context.abrupt("return");
|
|
204859
|
-
case
|
|
204933
|
+
case 53:
|
|
204860
204934
|
colProperty = colInfos.colProperty;
|
|
204861
204935
|
if (cellNode.table.tableProperty.isUsePopEdit && colProperty.editorProperty !== TableProperty/* EditorProperty */.YS.Sign) {
|
|
204862
204936
|
_nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(cellNode, 'dblclick', this._pageIndex);
|
|
@@ -204902,9 +204976,9 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
204902
204976
|
}
|
|
204903
204977
|
}
|
|
204904
204978
|
}
|
|
204905
|
-
case
|
|
204979
|
+
case 55:
|
|
204906
204980
|
return _context.abrupt("return", true);
|
|
204907
|
-
case
|
|
204981
|
+
case 56:
|
|
204908
204982
|
case "end":
|
|
204909
204983
|
return _context.stop();
|
|
204910
204984
|
}
|
|
@@ -205032,8 +205106,8 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
205032
205106
|
var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
205033
205107
|
hoeditorfactory.drawTree.caret.aiInfo.aiText = '';
|
|
205034
205108
|
comment/* hoCreateComment */.$.close();
|
|
205035
|
-
|
|
205036
|
-
if (!result) return false;
|
|
205109
|
+
// const result = hoeditorfactory.vueController.isCanEdit(this._pageIndex, aevent.stageX, aevent.stageY);
|
|
205110
|
+
// if (!result) return false;
|
|
205037
205111
|
if (aevent.nativeEvent.button === 0) {
|
|
205038
205112
|
this._mouseDownCount += 1;
|
|
205039
205113
|
var leftDownInterval = setTimeout(function () {
|
|
@@ -207363,7 +207437,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
207363
207437
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207364
207438
|
var ParagraphNode = __webpack_require__(67945);
|
|
207365
207439
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207366
|
-
/* harmony default export */ var version = ('3.1.
|
|
207440
|
+
/* harmony default export */ var version = ('3.1.102');
|
|
207367
207441
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
207368
207442
|
var PoperTipText = __webpack_require__(50987);
|
|
207369
207443
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -217073,184 +217147,230 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217073
217147
|
}
|
|
217074
217148
|
}, {
|
|
217075
217149
|
key: "hiddenMask",
|
|
217076
|
-
value: function
|
|
217077
|
-
var
|
|
217078
|
-
|
|
217079
|
-
|
|
217080
|
-
|
|
217081
|
-
|
|
217082
|
-
|
|
217083
|
-
|
|
217084
|
-
|
|
217085
|
-
|
|
217086
|
-
|
|
217087
|
-
|
|
217088
|
-
|
|
217089
|
-
|
|
217090
|
-
|
|
217091
|
-
|
|
217092
|
-
|
|
217093
|
-
var _this$getAllSignNodeL = this.getAllSignNodeList(hoEditorFactory.userInfo.id),
|
|
217094
|
-
bce01List = _this$getAllSignNodeL.bce01List;
|
|
217095
|
-
if (!bce01List.length) {
|
|
217096
|
-
this.hiddenMask(true);
|
|
217097
|
-
return;
|
|
217098
|
-
}
|
|
217099
|
-
}
|
|
217100
|
-
var curArea = hoEditorFactory.drawPageTree.getMainRootArea(signNode.drawNodes[0]);
|
|
217101
|
-
var actualHeight = hoEditorFactory.drawPageTree.drawHeaders[0].displayHeight;
|
|
217102
|
-
if (curArea && curArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
217103
|
-
var pageWidth = hoEditorFactory.pageProperty.widthPixes + 1;
|
|
217104
|
-
var pageHeight = hoEditorFactory.pageProperty.heightPixes;
|
|
217105
|
-
var curPageIndex = curArea.pageIndex;
|
|
217106
|
-
var pageCount = hoEditorFactory.drawPageTree.drawMainDocs.length;
|
|
217107
|
-
var paintMask = function paintMask(index, height, start) {
|
|
217108
|
-
var drawPage = hoEditorFactory.drawTree.drawPages[index];
|
|
217109
|
-
var selectContainer = drawPage.selectContainer;
|
|
217110
|
-
for (var k = selectContainer.children.length - 1; k >= 0; k--) {
|
|
217111
|
-
if (selectContainer.children[k].name && selectContainer.children[k].name.indexOf('mask') >= 0 && !start) {
|
|
217112
|
-
selectContainer.children.splice(k, 1);
|
|
217113
|
-
}
|
|
217114
|
-
}
|
|
217115
|
-
var yVal = 0;
|
|
217116
|
-
var heightVal = height;
|
|
217117
|
-
if (start) {
|
|
217118
|
-
yVal = start + actualHeight;
|
|
217119
|
-
heightVal = height - start - actualHeight;
|
|
217120
|
-
}
|
|
217121
|
-
var mask = new createjs.Shape();
|
|
217122
|
-
mask.setBounds(0, yVal, pageWidth, heightVal);
|
|
217123
|
-
mask.graphics.clear().beginFill('#000000').drawRect(0, yVal, pageWidth, heightVal).endFill();
|
|
217124
|
-
mask.x = 0;
|
|
217125
|
-
mask.y = 0;
|
|
217126
|
-
mask.alpha = 0.1;
|
|
217127
|
-
if (height < pageHeight) {
|
|
217128
|
-
mask.name = 'mask0';
|
|
217129
|
-
} else {
|
|
217130
|
-
mask.name = 'mask' + (index + 1).toString();
|
|
217131
|
-
}
|
|
217132
|
-
selectContainer.addChild(mask);
|
|
217133
|
-
//selectContainer.stage.update();
|
|
217134
|
-
hoEditorFactory.drawPageTree.updateDrawPage(index);
|
|
217135
|
-
};
|
|
217136
|
-
var _this$getPreEmptySign = this.getPreEmptySign(signNode),
|
|
217137
|
-
_this$getPreEmptySign2 = (0,esm_slicedToArray/* default */.Z)(_this$getPreEmptySign, 2),
|
|
217138
|
-
isExist = _this$getPreEmptySign2[0],
|
|
217139
|
-
pSignArr = _this$getPreEmptySign2[1];
|
|
217140
|
-
var drawNode = signNode.drawNodes[0];
|
|
217141
|
-
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(drawNode);
|
|
217142
|
-
superiorSign[1] = curPageIndex;
|
|
217143
|
-
//superiorSign[2] = dline.y;
|
|
217144
|
-
var stagePt = dline.localToGlobal(drawNode.x, drawNode.y);
|
|
217145
|
-
var localPt = curArea.globalToLocal(stagePt.x, stagePt.y);
|
|
217146
|
-
superiorSign[2] = localPt.y - hoEditorFactory.signHeight;
|
|
217147
|
-
if (isExist) {
|
|
217148
|
-
var arrs = [];
|
|
217149
|
-
for (var g = 0; g < pSignArr.length; g++) {
|
|
217150
|
-
var pSign = pSignArr[g];
|
|
217151
|
-
var pDrawNode = pSign.drawNodes[0];
|
|
217152
|
-
var pArea = hoEditorFactory.drawPageTree.getMainRootArea(pDrawNode);
|
|
217153
|
-
if (pArea && pArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
217154
|
-
var pageIndex = pArea.pageIndex;
|
|
217155
|
-
var pline = hoEditorFactory.drawTree.getDrawLineByDNode(pDrawNode);
|
|
217156
|
-
var stagePt1 = pline.localToGlobal(pDrawNode.x, pDrawNode.y);
|
|
217157
|
-
var localPt1 = curArea.globalToLocal(stagePt1.x, stagePt1.y);
|
|
217158
|
-
var start = localPt1.y;
|
|
217159
|
-
if (pSignArr.length === 1) {
|
|
217160
|
-
for (var h = 0; h < pageIndex; h++) {
|
|
217161
|
-
paintMask(h, pageHeight);
|
|
217150
|
+
value: function () {
|
|
217151
|
+
var _hiddenMask = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(isHidden) {
|
|
217152
|
+
var hoEditorFactory, i, drawPage, children, j, superiorSign, signNode, _this$getAllSignNodeL, bce01List, curArea, actualHeight, pageWidth, pageHeight, curPageIndex, pageCount, paintMask, _yield$this$getPreEmp, _yield$this$getPreEmp2, isExist, pSignArr, drawNode, dline, stagePt, localPt, arrs, g, pSign, pDrawNode, pArea, pageIndex, pline, stagePt1, localPt1, start, h, n, k, _k, t, arr, _h, parr, _k2, sarr, _n, _k3, _k4, _i, _i2;
|
|
217153
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
217154
|
+
while (1) switch (_context.prev = _context.next) {
|
|
217155
|
+
case 0:
|
|
217156
|
+
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
217157
|
+
if (!isHidden) {
|
|
217158
|
+
_context.next = 5;
|
|
217159
|
+
break;
|
|
217160
|
+
}
|
|
217161
|
+
for (i = hoEditorFactory.drawTree.drawPages.length - 1; i >= 0; i--) {
|
|
217162
|
+
drawPage = hoEditorFactory.drawTree.drawPages[i];
|
|
217163
|
+
children = drawPage.selectContainer.children;
|
|
217164
|
+
for (j = children.length - 1; j >= 0; j--) {
|
|
217165
|
+
if (children[j].name && children[j].name.indexOf('mask') >= 0) {
|
|
217166
|
+
children.splice(j, 1);
|
|
217162
217167
|
}
|
|
217163
|
-
|
|
217164
|
-
|
|
217165
|
-
|
|
217166
|
-
|
|
217167
|
-
|
|
217168
|
-
|
|
217169
|
-
|
|
217170
|
-
|
|
217171
|
-
|
|
217172
|
-
|
|
217173
|
-
|
|
217174
|
-
|
|
217175
|
-
|
|
217176
|
-
|
|
217177
|
-
|
|
217178
|
-
|
|
217179
|
-
|
|
217180
|
-
|
|
217181
|
-
|
|
217182
|
-
|
|
217183
|
-
|
|
217184
|
-
|
|
217168
|
+
}
|
|
217169
|
+
hoEditorFactory.drawPageTree.updateDrawPage(i);
|
|
217170
|
+
}
|
|
217171
|
+
_context.next = 60;
|
|
217172
|
+
break;
|
|
217173
|
+
case 5:
|
|
217174
|
+
superiorSign = hoEditorFactory.structureConvert._superiorSign;
|
|
217175
|
+
signNode = superiorSign[0];
|
|
217176
|
+
if (!(hoEditorFactory.forbidEditBeforeSign && hoEditorFactory.reviewMode)) {
|
|
217177
|
+
_context.next = 12;
|
|
217178
|
+
break;
|
|
217179
|
+
}
|
|
217180
|
+
_this$getAllSignNodeL = this.getAllSignNodeList(hoEditorFactory.userInfo.id), bce01List = _this$getAllSignNodeL.bce01List;
|
|
217181
|
+
if (bce01List.length) {
|
|
217182
|
+
_context.next = 12;
|
|
217183
|
+
break;
|
|
217184
|
+
}
|
|
217185
|
+
this.hiddenMask(true);
|
|
217186
|
+
return _context.abrupt("return");
|
|
217187
|
+
case 12:
|
|
217188
|
+
curArea = hoEditorFactory.drawPageTree.getMainRootArea(signNode.drawNodes[0]);
|
|
217189
|
+
actualHeight = hoEditorFactory.drawPageTree.drawHeaders[0].displayHeight;
|
|
217190
|
+
if (!(curArea && curArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$)) {
|
|
217191
|
+
_context.next = 60;
|
|
217192
|
+
break;
|
|
217193
|
+
}
|
|
217194
|
+
pageWidth = hoEditorFactory.pageProperty.widthPixes + 1;
|
|
217195
|
+
pageHeight = hoEditorFactory.pageProperty.heightPixes;
|
|
217196
|
+
curPageIndex = curArea.pageIndex;
|
|
217197
|
+
pageCount = hoEditorFactory.drawPageTree.drawMainDocs.length;
|
|
217198
|
+
paintMask = function paintMask(index, height, start) {
|
|
217199
|
+
var drawPage = hoEditorFactory.drawTree.drawPages[index];
|
|
217200
|
+
var selectContainer = drawPage.selectContainer;
|
|
217201
|
+
for (var k = selectContainer.children.length - 1; k >= 0; k--) {
|
|
217202
|
+
if (selectContainer.children[k].name && selectContainer.children[k].name.indexOf('mask') >= 0 && !start) {
|
|
217203
|
+
selectContainer.children.splice(k, 1);
|
|
217185
217204
|
}
|
|
217186
|
-
return;
|
|
217187
217205
|
}
|
|
217188
|
-
|
|
217206
|
+
var yVal = 0;
|
|
217207
|
+
var heightVal = height;
|
|
217208
|
+
if (start) {
|
|
217209
|
+
yVal = start + actualHeight;
|
|
217210
|
+
heightVal = height - start - actualHeight;
|
|
217211
|
+
}
|
|
217212
|
+
var mask = new createjs.Shape();
|
|
217213
|
+
mask.setBounds(0, yVal, pageWidth, heightVal);
|
|
217214
|
+
mask.graphics.clear().beginFill('#000000').drawRect(0, yVal, pageWidth, heightVal).endFill();
|
|
217215
|
+
mask.x = 0;
|
|
217216
|
+
mask.y = 0;
|
|
217217
|
+
mask.alpha = 0.1;
|
|
217218
|
+
if (height < pageHeight) {
|
|
217219
|
+
mask.name = 'mask0';
|
|
217220
|
+
} else {
|
|
217221
|
+
mask.name = 'mask' + (index + 1).toString();
|
|
217222
|
+
}
|
|
217223
|
+
selectContainer.addChild(mask);
|
|
217224
|
+
//selectContainer.stage.update();
|
|
217225
|
+
hoEditorFactory.drawPageTree.updateDrawPage(index);
|
|
217226
|
+
};
|
|
217227
|
+
_context.next = 22;
|
|
217228
|
+
return this.getPreEmptySign(signNode);
|
|
217229
|
+
case 22:
|
|
217230
|
+
_yield$this$getPreEmp = _context.sent;
|
|
217231
|
+
_yield$this$getPreEmp2 = (0,esm_slicedToArray/* default */.Z)(_yield$this$getPreEmp, 2);
|
|
217232
|
+
isExist = _yield$this$getPreEmp2[0];
|
|
217233
|
+
pSignArr = _yield$this$getPreEmp2[1];
|
|
217234
|
+
drawNode = signNode.drawNodes[0];
|
|
217235
|
+
dline = hoEditorFactory.drawTree.getDrawLineByDNode(drawNode);
|
|
217236
|
+
superiorSign[1] = curPageIndex;
|
|
217237
|
+
//superiorSign[2] = dline.y;
|
|
217238
|
+
stagePt = dline.localToGlobal(drawNode.x, drawNode.y);
|
|
217239
|
+
localPt = curArea.globalToLocal(stagePt.x, stagePt.y);
|
|
217240
|
+
superiorSign[2] = localPt.y - hoEditorFactory.signHeight;
|
|
217241
|
+
if (!isExist) {
|
|
217242
|
+
_context.next = 59;
|
|
217243
|
+
break;
|
|
217189
217244
|
}
|
|
217190
|
-
|
|
217191
|
-
|
|
217192
|
-
|
|
217193
|
-
if (
|
|
217194
|
-
|
|
217195
|
-
|
|
217245
|
+
arrs = [];
|
|
217246
|
+
g = 0;
|
|
217247
|
+
case 35:
|
|
217248
|
+
if (!(g < pSignArr.length)) {
|
|
217249
|
+
_context.next = 54;
|
|
217250
|
+
break;
|
|
217251
|
+
}
|
|
217252
|
+
pSign = pSignArr[g];
|
|
217253
|
+
pDrawNode = pSign.drawNodes[0];
|
|
217254
|
+
pArea = hoEditorFactory.drawPageTree.getMainRootArea(pDrawNode);
|
|
217255
|
+
if (!(pArea && pArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$)) {
|
|
217256
|
+
_context.next = 51;
|
|
217257
|
+
break;
|
|
217258
|
+
}
|
|
217259
|
+
pageIndex = pArea.pageIndex;
|
|
217260
|
+
pline = hoEditorFactory.drawTree.getDrawLineByDNode(pDrawNode);
|
|
217261
|
+
stagePt1 = pline.localToGlobal(pDrawNode.x, pDrawNode.y);
|
|
217262
|
+
localPt1 = curArea.globalToLocal(stagePt1.x, stagePt1.y);
|
|
217263
|
+
start = localPt1.y;
|
|
217264
|
+
if (!(pSignArr.length === 1)) {
|
|
217265
|
+
_context.next = 50;
|
|
217266
|
+
break;
|
|
217267
|
+
}
|
|
217268
|
+
for (h = 0; h < pageIndex; h++) {
|
|
217269
|
+
paintMask(h, pageHeight);
|
|
217270
|
+
}
|
|
217271
|
+
paintMask(pageIndex, localPt1.y + actualHeight - hoEditorFactory.signHeight);
|
|
217272
|
+
if (pageIndex === curPageIndex) {
|
|
217273
|
+
if (hoEditorFactory.lockContent) {
|
|
217274
|
+
paintMask(pageIndex, pageHeight, start);
|
|
217275
|
+
for (n = pageIndex + 1; n < pageCount; n++) {
|
|
217276
|
+
paintMask(n, pageHeight);
|
|
217277
|
+
}
|
|
217278
|
+
} else {
|
|
217279
|
+
paintMask(pageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight, start);
|
|
217196
217280
|
}
|
|
217197
|
-
|
|
217198
|
-
|
|
217199
|
-
|
|
217200
|
-
|
|
217201
|
-
|
|
217202
|
-
|
|
217203
|
-
|
|
217204
|
-
for (
|
|
217205
|
-
paintMask(
|
|
217281
|
+
} else if (pageIndex + 1 <= curPageIndex) {
|
|
217282
|
+
paintMask(pageIndex, pageHeight, start);
|
|
217283
|
+
if (hoEditorFactory.lockContent) {
|
|
217284
|
+
for (k = pageIndex + 1; k < pageCount; k++) {
|
|
217285
|
+
paintMask(k, pageHeight);
|
|
217286
|
+
}
|
|
217287
|
+
} else {
|
|
217288
|
+
for (_k = pageIndex + 1; _k < curPageIndex; _k++) {
|
|
217289
|
+
paintMask(_k, pageHeight);
|
|
217290
|
+
}
|
|
217291
|
+
paintMask(curPageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight);
|
|
217292
|
+
}
|
|
217293
|
+
}
|
|
217294
|
+
return _context.abrupt("return");
|
|
217295
|
+
case 50:
|
|
217296
|
+
arrs.push([pageIndex, start]);
|
|
217297
|
+
case 51:
|
|
217298
|
+
g++;
|
|
217299
|
+
_context.next = 35;
|
|
217300
|
+
break;
|
|
217301
|
+
case 54:
|
|
217302
|
+
for (t = 0; t < arrs.length; t++) {
|
|
217303
|
+
arr = arrs[t];
|
|
217304
|
+
if (t === 0) {
|
|
217305
|
+
for (_h = 0; _h < arr[0]; _h++) {
|
|
217306
|
+
paintMask(_h, pageHeight);
|
|
217206
217307
|
}
|
|
217207
217308
|
paintMask(arr[0], arr[1] + actualHeight - hoEditorFactory.signHeight);
|
|
217309
|
+
} else {
|
|
217310
|
+
parr = arrs[t - 1];
|
|
217311
|
+
if (parr[0] === arr[0]) {
|
|
217312
|
+
paintMask(parr[0], arr[1] + actualHeight - hoEditorFactory.signHeight, parr[1]);
|
|
217313
|
+
} else if (parr[0] <= arr[0]) {
|
|
217314
|
+
paintMask(parr[0], pageHeight, parr[1]);
|
|
217315
|
+
for (_k2 = parr[0] + 1; _k2 < arr[0]; _k2++) {
|
|
217316
|
+
paintMask(_k2, pageHeight);
|
|
217317
|
+
}
|
|
217318
|
+
paintMask(arr[0], arr[1] + actualHeight - hoEditorFactory.signHeight);
|
|
217319
|
+
}
|
|
217208
217320
|
}
|
|
217209
217321
|
}
|
|
217210
|
-
|
|
217211
|
-
|
|
217212
|
-
|
|
217213
|
-
|
|
217322
|
+
sarr = arrs[arrs.length - 1];
|
|
217323
|
+
if (sarr[0] === curPageIndex) {
|
|
217324
|
+
if (hoEditorFactory.lockContent) {
|
|
217325
|
+
paintMask(sarr[0], pageHeight, sarr[1]);
|
|
217326
|
+
for (_n = sarr[0] + 1; _n < pageCount; _n++) {
|
|
217327
|
+
paintMask(_n, pageHeight);
|
|
217328
|
+
}
|
|
217329
|
+
} else {
|
|
217330
|
+
paintMask(sarr[0], localPt.y + actualHeight - hoEditorFactory.signHeight, sarr[1]);
|
|
217331
|
+
}
|
|
217332
|
+
} else if (sarr[0] <= curPageIndex) {
|
|
217214
217333
|
paintMask(sarr[0], pageHeight, sarr[1]);
|
|
217215
|
-
|
|
217216
|
-
|
|
217334
|
+
if (hoEditorFactory.lockContent) {
|
|
217335
|
+
for (_k3 = sarr[0] + 1; _k3 < pageCount; _k3++) {
|
|
217336
|
+
paintMask(_k3, pageHeight);
|
|
217337
|
+
}
|
|
217338
|
+
} else {
|
|
217339
|
+
for (_k4 = sarr[0] + 1; _k4 < curPageIndex; _k4++) {
|
|
217340
|
+
paintMask(_k4, pageHeight);
|
|
217341
|
+
}
|
|
217342
|
+
paintMask(curPageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight);
|
|
217217
217343
|
}
|
|
217218
|
-
} else {
|
|
217219
|
-
paintMask(sarr[0], localPt.y + actualHeight - hoEditorFactory.signHeight, sarr[1]);
|
|
217220
217344
|
}
|
|
217221
|
-
|
|
217222
|
-
|
|
217345
|
+
_context.next = 60;
|
|
217346
|
+
break;
|
|
217347
|
+
case 59:
|
|
217223
217348
|
if (hoEditorFactory.lockContent) {
|
|
217224
|
-
for (
|
|
217225
|
-
|
|
217349
|
+
for (_i = 0; _i < pageCount; _i++) {
|
|
217350
|
+
//给前面的页画遮罩层
|
|
217351
|
+
paintMask(_i, pageHeight);
|
|
217226
217352
|
}
|
|
217227
217353
|
} else {
|
|
217228
|
-
|
|
217229
|
-
|
|
217354
|
+
if (curPageIndex > 0) {
|
|
217355
|
+
for (_i2 = 0; _i2 < curPageIndex; _i2++) {
|
|
217356
|
+
//给前面的页画遮罩层
|
|
217357
|
+
paintMask(_i2, pageHeight);
|
|
217358
|
+
}
|
|
217230
217359
|
}
|
|
217360
|
+
//画当前页的遮罩层
|
|
217231
217361
|
paintMask(curPageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight);
|
|
217232
217362
|
}
|
|
217233
|
-
|
|
217234
|
-
|
|
217235
|
-
|
|
217236
|
-
for (var _i = 0; _i < pageCount; _i++) {
|
|
217237
|
-
//给前面的页画遮罩层
|
|
217238
|
-
paintMask(_i, pageHeight);
|
|
217239
|
-
}
|
|
217240
|
-
} else {
|
|
217241
|
-
if (curPageIndex > 0) {
|
|
217242
|
-
for (var _i2 = 0; _i2 < curPageIndex; _i2++) {
|
|
217243
|
-
//给前面的页画遮罩层
|
|
217244
|
-
paintMask(_i2, pageHeight);
|
|
217245
|
-
}
|
|
217246
|
-
}
|
|
217247
|
-
//画当前页的遮罩层
|
|
217248
|
-
paintMask(curPageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight);
|
|
217249
|
-
}
|
|
217363
|
+
case 60:
|
|
217364
|
+
case "end":
|
|
217365
|
+
return _context.stop();
|
|
217250
217366
|
}
|
|
217251
|
-
}
|
|
217367
|
+
}, _callee, this);
|
|
217368
|
+
}));
|
|
217369
|
+
function hiddenMask(_x) {
|
|
217370
|
+
return _hiddenMask.apply(this, arguments);
|
|
217252
217371
|
}
|
|
217253
|
-
|
|
217372
|
+
return hiddenMask;
|
|
217373
|
+
}()
|
|
217254
217374
|
}, {
|
|
217255
217375
|
key: "getPreEmptySign",
|
|
217256
217376
|
value: function getPreEmptySign(curSign) {
|
|
@@ -217262,14 +217382,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217262
217382
|
var iteratesNodes = function iteratesNodes(nodes) {
|
|
217263
217383
|
for (var i = 0; i < nodes.length; i++) {
|
|
217264
217384
|
var anode = nodes[i];
|
|
217265
|
-
if (anode instanceof SignNode/* SignNode */.N && anode.imgSrc === ""
|
|
217266
|
-
|
|
217267
|
-
var result = NodePosition/* NodePosition */.F.treePathCompare(path1, path2);
|
|
217268
|
-
if (result > 0) {
|
|
217385
|
+
if (anode instanceof SignNode/* SignNode */.N && anode.imgSrc === "") {
|
|
217386
|
+
if (hoEditorFactory.lockContent && anode.attribute == 1) {
|
|
217269
217387
|
mark = true;
|
|
217270
|
-
//node = anode;
|
|
217271
|
-
//return;
|
|
217272
217388
|
signArr.push(anode);
|
|
217389
|
+
} else if (!hoEditorFactory.lockContent) {
|
|
217390
|
+
var path2 = anode.getNodePath();
|
|
217391
|
+
var result = NodePosition/* NodePosition */.F.treePathCompare(path1, path2);
|
|
217392
|
+
if (result > 0) {
|
|
217393
|
+
mark = true;
|
|
217394
|
+
signArr.push(anode);
|
|
217395
|
+
}
|
|
217273
217396
|
}
|
|
217274
217397
|
}
|
|
217275
217398
|
if (anode instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
@@ -217988,38 +218111,38 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217988
218111
|
}, {
|
|
217989
218112
|
key: "insertHtmlText",
|
|
217990
218113
|
value: function () {
|
|
217991
|
-
var _insertHtmlText = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
218114
|
+
var _insertHtmlText = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(strHtml, value, keyValue, listItems, clear) {
|
|
217992
218115
|
var hoEditorFactory, nodes, result, _nodes, i, node, textStyle, curTextStyle, newIndex, startPath, parentNode, downListProperty, arr, spath, epath, range, canModifyContent;
|
|
217993
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
217994
|
-
while (1) switch (
|
|
218116
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
|
|
218117
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
217995
218118
|
case 0:
|
|
217996
218119
|
if (!(strHtml === "<span></span>")) {
|
|
217997
|
-
|
|
218120
|
+
_context2.next = 2;
|
|
217998
218121
|
break;
|
|
217999
218122
|
}
|
|
218000
|
-
return
|
|
218123
|
+
return _context2.abrupt("return");
|
|
218001
218124
|
case 2:
|
|
218002
218125
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218003
218126
|
if (!(hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReadOnly)) {
|
|
218004
|
-
|
|
218127
|
+
_context2.next = 5;
|
|
218005
218128
|
break;
|
|
218006
218129
|
}
|
|
218007
|
-
return
|
|
218130
|
+
return _context2.abrupt("return");
|
|
218008
218131
|
case 5:
|
|
218009
218132
|
if (!strHtml.includes('<MedicalExpress>')) {
|
|
218010
|
-
|
|
218133
|
+
_context2.next = 10;
|
|
218011
218134
|
break;
|
|
218012
218135
|
}
|
|
218013
218136
|
strHtml = strHtml.replace("<span>", "").replace("</span>", "");
|
|
218014
218137
|
nodes = this.text2MedicalExpress(strHtml, hoEditorFactory.docTree.curDomRange.npEnd.node, 0);
|
|
218015
218138
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
218016
|
-
return
|
|
218139
|
+
return _context2.abrupt("return");
|
|
218017
218140
|
case 10:
|
|
218018
218141
|
strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</上标>', '<上标/>');
|
|
218019
218142
|
strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</下标>', '<下标/>');
|
|
218020
218143
|
result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
218021
218144
|
if (!result) {
|
|
218022
|
-
|
|
218145
|
+
_context2.next = 45;
|
|
218023
218146
|
break;
|
|
218024
218147
|
}
|
|
218025
218148
|
_nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
|
|
@@ -218041,23 +218164,23 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218041
218164
|
}
|
|
218042
218165
|
}
|
|
218043
218166
|
if (!(value && keyValue && listItems)) {
|
|
218044
|
-
|
|
218167
|
+
_context2.next = 44;
|
|
218045
218168
|
break;
|
|
218046
218169
|
}
|
|
218047
218170
|
startPath = hoEditorFactory.docTree.curDomRange.normalize().startPath;
|
|
218048
218171
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
218049
218172
|
if (!(parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.insCheckSyncUpdateList)) {
|
|
218050
|
-
|
|
218173
|
+
_context2.next = 44;
|
|
218051
218174
|
break;
|
|
218052
218175
|
}
|
|
218053
218176
|
downListProperty = parentNode.downListProperty;
|
|
218054
218177
|
if (!downListProperty.allowMultiSelected) {
|
|
218055
|
-
|
|
218178
|
+
_context2.next = 44;
|
|
218056
218179
|
break;
|
|
218057
218180
|
}
|
|
218058
218181
|
arr = downListProperty.listItems ? JSON.parse(downListProperty.listItems) : [];
|
|
218059
218182
|
if (!clear) {
|
|
218060
|
-
|
|
218183
|
+
_context2.next = 38;
|
|
218061
218184
|
break;
|
|
218062
218185
|
}
|
|
218063
218186
|
parentNode.value = '';
|
|
@@ -218071,7 +218194,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218071
218194
|
if (!canModifyContent) {
|
|
218072
218195
|
parentNode.canModifyContent = true;
|
|
218073
218196
|
}
|
|
218074
|
-
|
|
218197
|
+
_context2.next = 36;
|
|
218075
218198
|
return hoEditorFactory.docController.deleteRange(range, true, 'update');
|
|
218076
218199
|
case 36:
|
|
218077
218200
|
parentNode.canModifyContent = canModifyContent;
|
|
@@ -218089,11 +218212,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218089
218212
|
hoEditorFactory.docController.parseNodeData(_nodes);
|
|
218090
218213
|
case 45:
|
|
218091
218214
|
case "end":
|
|
218092
|
-
return
|
|
218215
|
+
return _context2.stop();
|
|
218093
218216
|
}
|
|
218094
|
-
},
|
|
218217
|
+
}, _callee2, this);
|
|
218095
218218
|
}));
|
|
218096
|
-
function insertHtmlText(
|
|
218219
|
+
function insertHtmlText(_x2, _x3, _x4, _x5, _x6) {
|
|
218097
218220
|
return _insertHtmlText.apply(this, arguments);
|
|
218098
218221
|
}
|
|
218099
218222
|
return insertHtmlText;
|
|
@@ -218521,9 +218644,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218521
218644
|
}, {
|
|
218522
218645
|
key: "mergeDocs",
|
|
218523
218646
|
value: function () {
|
|
218524
|
-
var _mergeDocs = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
218525
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
218526
|
-
while (1) switch (
|
|
218647
|
+
var _mergeDocs = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee3(xml, printAsSinglePage, resolve, isDelBlockLine) {
|
|
218648
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee3$(_context3) {
|
|
218649
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
218527
218650
|
case 0:
|
|
218528
218651
|
if (!printAsSinglePage) {
|
|
218529
218652
|
this.insertXml(xml, 'main', undefined, isDelBlockLine);
|
|
@@ -218533,14 +218656,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218533
218656
|
this.insertXml(xml, 'main', printAsSinglePage, isDelBlockLine);
|
|
218534
218657
|
}
|
|
218535
218658
|
resolve && resolve();
|
|
218536
|
-
return
|
|
218659
|
+
return _context3.abrupt("return", true);
|
|
218537
218660
|
case 3:
|
|
218538
218661
|
case "end":
|
|
218539
|
-
return
|
|
218662
|
+
return _context3.stop();
|
|
218540
218663
|
}
|
|
218541
|
-
},
|
|
218664
|
+
}, _callee3, this);
|
|
218542
218665
|
}));
|
|
218543
|
-
function mergeDocs(
|
|
218666
|
+
function mergeDocs(_x7, _x8, _x9, _x10) {
|
|
218544
218667
|
return _mergeDocs.apply(this, arguments);
|
|
218545
218668
|
}
|
|
218546
218669
|
return mergeDocs;
|
|
@@ -218548,16 +218671,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218548
218671
|
}, {
|
|
218549
218672
|
key: "openDocsForPrint",
|
|
218550
218673
|
value: function () {
|
|
218551
|
-
var _openDocsForPrint = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
218674
|
+
var _openDocsForPrint = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(list) {
|
|
218552
218675
|
var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent, arrFontString, arrParaString, getDetailStyle, mergeObject, tdefault, pdefault, si, style, sstyle, pi, _style, updateNodesStyle, _loop, i, nodes;
|
|
218553
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
218554
|
-
while (1) switch (
|
|
218676
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee4$(_context5) {
|
|
218677
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
218555
218678
|
case 0:
|
|
218556
218679
|
if (!(list.length == 0)) {
|
|
218557
|
-
|
|
218680
|
+
_context5.next = 2;
|
|
218558
218681
|
break;
|
|
218559
218682
|
}
|
|
218560
|
-
return
|
|
218683
|
+
return _context5.abrupt("return");
|
|
218561
218684
|
case 2:
|
|
218562
218685
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218563
218686
|
_curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
@@ -218566,10 +218689,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218566
218689
|
changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.openXml);
|
|
218567
218690
|
hoEditorFactory.openXmled = true;
|
|
218568
218691
|
if (!hoEditorFactory.docTree.changing(changingEvent)) {
|
|
218569
|
-
|
|
218692
|
+
_context5.next = 12;
|
|
218570
218693
|
break;
|
|
218571
218694
|
}
|
|
218572
|
-
|
|
218695
|
+
_context5.next = 11;
|
|
218573
218696
|
return hoEditorFactory.docController.initBlankDoc();
|
|
218574
218697
|
case 11:
|
|
218575
218698
|
hoEditorFactory.drawTree.inViewPages = [0];
|
|
@@ -218672,10 +218795,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218672
218795
|
}
|
|
218673
218796
|
}
|
|
218674
218797
|
if (mergeObject) {
|
|
218675
|
-
|
|
218798
|
+
_context5.next = 43;
|
|
218676
218799
|
break;
|
|
218677
218800
|
}
|
|
218678
|
-
return
|
|
218801
|
+
return _context5.abrupt("return");
|
|
218679
218802
|
case 43:
|
|
218680
218803
|
//let arrFontStyle = new Array<number>();
|
|
218681
218804
|
//let arrParaStyle = new Array<number>();
|
|
@@ -218752,8 +218875,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218752
218875
|
};
|
|
218753
218876
|
_loop = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop() {
|
|
218754
218877
|
var fontStyleMap, paraStyleMap, xmlobj, fontStyle, defaultFontStyle, strDefaultFont, index1, jobjFontStyle, is, detailStyle, strFont, findex, paraStyle, defaultParaStyle, strDefaultPara, index2, getParaDetailStyle, jobjParaStyle, ps, detailParaStyle, strPara, pindex, ilen, strID, _strID, _mergeObject$main, _mergeObject$main2;
|
|
218755
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop$(
|
|
218756
|
-
while (1) switch (
|
|
218878
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop$(_context4) {
|
|
218879
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
218757
218880
|
case 0:
|
|
218758
218881
|
fontStyleMap = new Map();
|
|
218759
218882
|
paraStyleMap = new Map();
|
|
@@ -218895,40 +219018,40 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218895
219018
|
}
|
|
218896
219019
|
case 24:
|
|
218897
219020
|
case "end":
|
|
218898
|
-
return
|
|
219021
|
+
return _context4.stop();
|
|
218899
219022
|
}
|
|
218900
219023
|
}, _loop);
|
|
218901
219024
|
});
|
|
218902
219025
|
i = 1;
|
|
218903
219026
|
case 46:
|
|
218904
219027
|
if (!(i < list.length)) {
|
|
218905
|
-
|
|
219028
|
+
_context5.next = 51;
|
|
218906
219029
|
break;
|
|
218907
219030
|
}
|
|
218908
|
-
return
|
|
219031
|
+
return _context5.delegateYield(_loop(), "t0", 48);
|
|
218909
219032
|
case 48:
|
|
218910
219033
|
i++;
|
|
218911
|
-
|
|
219034
|
+
_context5.next = 46;
|
|
218912
219035
|
break;
|
|
218913
219036
|
case 51:
|
|
218914
|
-
|
|
219037
|
+
_context5.next = 53;
|
|
218915
219038
|
return hoEditorFactory.structureConvert.json2Doc(mergeObject);
|
|
218916
219039
|
case 53:
|
|
218917
|
-
nodes =
|
|
218918
|
-
|
|
219040
|
+
nodes = _context5.sent;
|
|
219041
|
+
_context5.next = 56;
|
|
218919
219042
|
return hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
218920
219043
|
case 56:
|
|
218921
|
-
|
|
219044
|
+
_context5.next = 58;
|
|
218922
219045
|
return hoEditorFactory.structureConvert.openJson2Doc(nodes);
|
|
218923
219046
|
case 58:
|
|
218924
|
-
return
|
|
219047
|
+
return _context5.abrupt("return");
|
|
218925
219048
|
case 59:
|
|
218926
219049
|
case "end":
|
|
218927
|
-
return
|
|
219050
|
+
return _context5.stop();
|
|
218928
219051
|
}
|
|
218929
|
-
},
|
|
219052
|
+
}, _callee4, this);
|
|
218930
219053
|
}));
|
|
218931
|
-
function openDocsForPrint(
|
|
219054
|
+
function openDocsForPrint(_x11) {
|
|
218932
219055
|
return _openDocsForPrint.apply(this, arguments);
|
|
218933
219056
|
}
|
|
218934
219057
|
return openDocsForPrint;
|
|
@@ -218954,10 +219077,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218954
219077
|
}, {
|
|
218955
219078
|
key: "insertHeaderJson",
|
|
218956
219079
|
value: function () {
|
|
218957
|
-
var _insertHeaderJson = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
219080
|
+
var _insertHeaderJson = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(jsonData) {
|
|
218958
219081
|
var hoEditorFactory, index, headerNode, epath, sPath, range, nodes, i, _nodes2, dline, startPath, endPath, cgEvent;
|
|
218959
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
218960
|
-
while (1) switch (
|
|
219082
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context6) {
|
|
219083
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
218961
219084
|
case 0:
|
|
218962
219085
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID); // const headerNodes=hoEditorFactory.subDocManger.getHeaderPageNodes();
|
|
218963
219086
|
index = 0;
|
|
@@ -218965,7 +219088,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218965
219088
|
epath = hoEditorFactory.docTree.getNodeLastPath(headerNode[headerNode.length - 1]);
|
|
218966
219089
|
sPath = 'header/' + index.toString() + '/0';
|
|
218967
219090
|
range = new DomRange/* DomRange */.a(this._hoEditorFactoryID, sPath, epath);
|
|
218968
|
-
|
|
219091
|
+
_context6.next = 8;
|
|
218969
219092
|
return hoEditorFactory.docController.deleteRange(range, true);
|
|
218970
219093
|
case 8:
|
|
218971
219094
|
hoEditorFactory.docTree.curDomRange.setSamePath(sPath);
|
|
@@ -218996,11 +219119,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218996
219119
|
}
|
|
218997
219120
|
case 13:
|
|
218998
219121
|
case "end":
|
|
218999
|
-
return
|
|
219122
|
+
return _context6.stop();
|
|
219000
219123
|
}
|
|
219001
|
-
},
|
|
219124
|
+
}, _callee5, this);
|
|
219002
219125
|
}));
|
|
219003
|
-
function insertHeaderJson(
|
|
219126
|
+
function insertHeaderJson(_x12) {
|
|
219004
219127
|
return _insertHeaderJson.apply(this, arguments);
|
|
219005
219128
|
}
|
|
219006
219129
|
return insertHeaderJson;
|
|
@@ -219026,17 +219149,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219026
219149
|
}, {
|
|
219027
219150
|
key: "insertFooterJson",
|
|
219028
219151
|
value: function () {
|
|
219029
|
-
var _insertFooterJson = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
219152
|
+
var _insertFooterJson = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee6(jsonData) {
|
|
219030
219153
|
var hoEditorFactory, footerNodes, footerNode, epath, range, nodes, j, _nodes3, dline, startPath, endPath, cgEvent;
|
|
219031
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
219032
|
-
while (1) switch (
|
|
219154
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee6$(_context7) {
|
|
219155
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
219033
219156
|
case 0:
|
|
219034
219157
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219035
219158
|
footerNodes = hoEditorFactory.subDocManger.getFooterPageNodes();
|
|
219036
219159
|
footerNode = footerNodes[0];
|
|
219037
219160
|
epath = hoEditorFactory.docTree.getNodeLastPath(footerNode[footerNode.length - 1]);
|
|
219038
219161
|
range = new DomRange/* DomRange */.a(this._hoEditorFactoryID, 'footer/0/0', epath);
|
|
219039
|
-
|
|
219162
|
+
_context7.next = 7;
|
|
219040
219163
|
return hoEditorFactory.docController.deleteRange(range, true);
|
|
219041
219164
|
case 7:
|
|
219042
219165
|
hoEditorFactory.docTree.curDomRange.setSamePath('footer/0/0');
|
|
@@ -219067,11 +219190,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219067
219190
|
}
|
|
219068
219191
|
case 12:
|
|
219069
219192
|
case "end":
|
|
219070
|
-
return
|
|
219193
|
+
return _context7.stop();
|
|
219071
219194
|
}
|
|
219072
|
-
},
|
|
219195
|
+
}, _callee6, this);
|
|
219073
219196
|
}));
|
|
219074
|
-
function insertFooterJson(
|
|
219197
|
+
function insertFooterJson(_x13) {
|
|
219075
219198
|
return _insertFooterJson.apply(this, arguments);
|
|
219076
219199
|
}
|
|
219077
219200
|
return insertFooterJson;
|
|
@@ -219114,16 +219237,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219114
219237
|
}, {
|
|
219115
219238
|
key: "openXml",
|
|
219116
219239
|
value: function () {
|
|
219117
|
-
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
219240
|
+
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee7(xml, callback, isDelBlockLine, isRender, isClearSign) {
|
|
219118
219241
|
var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent;
|
|
219119
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
219120
|
-
while (1) switch (
|
|
219242
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee7$(_context8) {
|
|
219243
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
219121
219244
|
case 0:
|
|
219122
219245
|
if (!(isRender === false)) {
|
|
219123
|
-
|
|
219246
|
+
_context8.next = 2;
|
|
219124
219247
|
break;
|
|
219125
219248
|
}
|
|
219126
|
-
return
|
|
219249
|
+
return _context8.abrupt("return");
|
|
219127
219250
|
case 2:
|
|
219128
219251
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID); // const fPage = hoEditorFactory.drawTree.drawPages[0];
|
|
219129
219252
|
// if (fPage.drawDomLevel && !fPage.drawDomLevel.stage) {
|
|
@@ -219136,26 +219259,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219136
219259
|
changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.openXml);
|
|
219137
219260
|
hoEditorFactory.openXmled = true;
|
|
219138
219261
|
if (!hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219139
|
-
|
|
219262
|
+
_context8.next = 15;
|
|
219140
219263
|
break;
|
|
219141
219264
|
}
|
|
219142
|
-
|
|
219265
|
+
_context8.next = 11;
|
|
219143
219266
|
return hoEditorFactory.docController.initBlankDoc();
|
|
219144
219267
|
case 11:
|
|
219145
219268
|
hoEditorFactory.drawTree.inViewPages = [0];
|
|
219146
219269
|
if (!(xml > '')) {
|
|
219147
|
-
|
|
219270
|
+
_context8.next = 15;
|
|
219148
219271
|
break;
|
|
219149
219272
|
}
|
|
219150
|
-
|
|
219273
|
+
_context8.next = 15;
|
|
219151
219274
|
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine, isClearSign);
|
|
219152
219275
|
case 15:
|
|
219153
219276
|
case "end":
|
|
219154
|
-
return
|
|
219277
|
+
return _context8.stop();
|
|
219155
219278
|
}
|
|
219156
|
-
},
|
|
219279
|
+
}, _callee7, this);
|
|
219157
219280
|
}));
|
|
219158
|
-
function openXml(
|
|
219281
|
+
function openXml(_x14, _x15, _x16, _x17, _x18) {
|
|
219159
219282
|
return _openXml.apply(this, arguments);
|
|
219160
219283
|
}
|
|
219161
219284
|
return openXml;
|
|
@@ -219335,7 +219458,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219335
219458
|
hoEditorFactory.undoService.begin();
|
|
219336
219459
|
hoEditorFactory.undoService.add(new NodesDeleteUndoUnit/* NodesDeleteUndoUnit */.F(this._hoEditorFactoryID, sPath, ePath, true));
|
|
219337
219460
|
hoEditorFactory.undoService.commit();
|
|
219338
|
-
// setTimeout(() => {
|
|
219339
219461
|
var _superiorSign = hoEditorFactory.structureConvert._superiorSign;
|
|
219340
219462
|
if (_superiorSign.length > 0) {
|
|
219341
219463
|
// 处理前缀签名删除后,签名前无签名元素,签名有签名元素情况
|
|
@@ -219354,7 +219476,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219354
219476
|
}
|
|
219355
219477
|
}
|
|
219356
219478
|
}
|
|
219357
|
-
// }, 0);
|
|
219358
219479
|
return;
|
|
219359
219480
|
}
|
|
219360
219481
|
/*
|
|
@@ -220159,83 +220280,83 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220159
220280
|
}, {
|
|
220160
220281
|
key: "updateElementText",
|
|
220161
220282
|
value: function () {
|
|
220162
|
-
var _updateElementText = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
220283
|
+
var _updateElementText = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee8(scope, name, text) {
|
|
220163
220284
|
var nodes, i, node;
|
|
220164
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
220165
|
-
while (1) switch (
|
|
220285
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee8$(_context9) {
|
|
220286
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
220166
220287
|
case 0:
|
|
220167
220288
|
if (!(name === '' || name === '请输入' || name === '请选择')) {
|
|
220168
|
-
|
|
220289
|
+
_context9.next = 2;
|
|
220169
220290
|
break;
|
|
220170
220291
|
}
|
|
220171
|
-
return
|
|
220292
|
+
return _context9.abrupt("return");
|
|
220172
220293
|
case 2:
|
|
220173
220294
|
nodes = this.getNodesByName(scope, true, name);
|
|
220174
220295
|
if (!(nodes.length > 0)) {
|
|
220175
|
-
|
|
220296
|
+
_context9.next = 29;
|
|
220176
220297
|
break;
|
|
220177
220298
|
}
|
|
220178
220299
|
i = nodes.length - 1;
|
|
220179
220300
|
case 5:
|
|
220180
220301
|
if (!(i >= 0)) {
|
|
220181
|
-
|
|
220302
|
+
_context9.next = 27;
|
|
220182
220303
|
break;
|
|
220183
220304
|
}
|
|
220184
220305
|
node = nodes[i];
|
|
220185
220306
|
if (!node) {
|
|
220186
|
-
|
|
220307
|
+
_context9.next = 23;
|
|
220187
220308
|
break;
|
|
220188
220309
|
}
|
|
220189
220310
|
if (!(node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF || node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
220190
|
-
|
|
220311
|
+
_context9.next = 20;
|
|
220191
220312
|
break;
|
|
220192
220313
|
}
|
|
220193
220314
|
if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
220194
|
-
|
|
220315
|
+
_context9.next = 12;
|
|
220195
220316
|
break;
|
|
220196
220317
|
}
|
|
220197
|
-
|
|
220318
|
+
_context9.next = 12;
|
|
220198
220319
|
return node.setFieldText(text);
|
|
220199
220320
|
case 12:
|
|
220200
220321
|
if (!(node instanceof DateTimeNode/* DateTimeNode */.Z)) {
|
|
220201
|
-
|
|
220322
|
+
_context9.next = 15;
|
|
220202
220323
|
break;
|
|
220203
220324
|
}
|
|
220204
|
-
|
|
220325
|
+
_context9.next = 15;
|
|
220205
220326
|
return node.setDateTimeText(text);
|
|
220206
220327
|
case 15:
|
|
220207
220328
|
if (!(node instanceof DownListNode/* DownListNode */.yF)) {
|
|
220208
|
-
|
|
220329
|
+
_context9.next = 18;
|
|
220209
220330
|
break;
|
|
220210
220331
|
}
|
|
220211
|
-
|
|
220332
|
+
_context9.next = 18;
|
|
220212
220333
|
return node.setDownListText(text);
|
|
220213
220334
|
case 18:
|
|
220214
|
-
|
|
220335
|
+
_context9.next = 21;
|
|
220215
220336
|
break;
|
|
220216
220337
|
case 20:
|
|
220217
220338
|
throw new Error('根据元素name:' + name + '定位到的元素非可回填元素');
|
|
220218
220339
|
case 21:
|
|
220219
|
-
|
|
220340
|
+
_context9.next = 24;
|
|
220220
220341
|
break;
|
|
220221
220342
|
case 23:
|
|
220222
220343
|
throw new Error('根据元素name:' + name + '未找到对应的元素');
|
|
220223
220344
|
case 24:
|
|
220224
220345
|
i--;
|
|
220225
|
-
|
|
220346
|
+
_context9.next = 5;
|
|
220226
220347
|
break;
|
|
220227
220348
|
case 27:
|
|
220228
|
-
|
|
220349
|
+
_context9.next = 30;
|
|
220229
220350
|
break;
|
|
220230
220351
|
case 29:
|
|
220231
220352
|
throw new Error('根据元素name:' + name + '未找到对应的元素');
|
|
220232
220353
|
case 30:
|
|
220233
220354
|
case "end":
|
|
220234
|
-
return
|
|
220355
|
+
return _context9.stop();
|
|
220235
220356
|
}
|
|
220236
|
-
},
|
|
220357
|
+
}, _callee8, this);
|
|
220237
220358
|
}));
|
|
220238
|
-
function updateElementText(
|
|
220359
|
+
function updateElementText(_x19, _x20, _x21) {
|
|
220239
220360
|
return _updateElementText.apply(this, arguments);
|
|
220240
220361
|
}
|
|
220241
220362
|
return updateElementText;
|
|
@@ -220243,47 +220364,47 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220243
220364
|
}, {
|
|
220244
220365
|
key: "updateElementTextById",
|
|
220245
220366
|
value: function () {
|
|
220246
|
-
var _updateElementTextById = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
220367
|
+
var _updateElementTextById = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee9(id, text) {
|
|
220247
220368
|
var _this3 = this;
|
|
220248
220369
|
var nodes, _loop4, _ret2, i;
|
|
220249
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
220250
|
-
while (1) switch (
|
|
220370
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee9$(_context11) {
|
|
220371
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
220251
220372
|
case 0:
|
|
220252
220373
|
nodes = this.getNodeByID('all', id, 'array');
|
|
220253
220374
|
if (!(nodes.length > 0)) {
|
|
220254
|
-
|
|
220375
|
+
_context11.next = 16;
|
|
220255
220376
|
break;
|
|
220256
220377
|
}
|
|
220257
220378
|
_loop4 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop4() {
|
|
220258
|
-
var node,
|
|
220259
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop4$(
|
|
220260
|
-
while (1) switch (
|
|
220379
|
+
var node, _hoEditorFactory, _node$childNodes, xml, x2js, object, json, childNodes, getChildNodes, spath, epath, range, _nodes4, k, _xml, _x2js, _object, _json, _xml2, _x2js2, _object2, _json2;
|
|
220380
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop4$(_context10) {
|
|
220381
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
220261
220382
|
case 0:
|
|
220262
220383
|
node = nodes[i];
|
|
220263
220384
|
if (!node) {
|
|
220264
|
-
|
|
220385
|
+
_context10.next = 46;
|
|
220265
220386
|
break;
|
|
220266
220387
|
}
|
|
220267
220388
|
if (!(node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF || node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
220268
|
-
|
|
220389
|
+
_context10.next = 43;
|
|
220269
220390
|
break;
|
|
220270
220391
|
}
|
|
220271
220392
|
if (!node.notReplaceElement) {
|
|
220272
|
-
|
|
220393
|
+
_context10.next = 5;
|
|
220273
220394
|
break;
|
|
220274
220395
|
}
|
|
220275
|
-
return
|
|
220396
|
+
return _context10.abrupt("return", 0);
|
|
220276
220397
|
case 5:
|
|
220277
|
-
|
|
220398
|
+
_hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this3._hoEditorFactoryID);
|
|
220278
220399
|
if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
220279
|
-
|
|
220400
|
+
_context10.next = 33;
|
|
220280
220401
|
break;
|
|
220281
220402
|
}
|
|
220282
220403
|
if (!text.includes("<TextInputFieldNode>")) {
|
|
220283
|
-
|
|
220404
|
+
_context10.next = 23;
|
|
220284
220405
|
break;
|
|
220285
220406
|
}
|
|
220286
|
-
xml =
|
|
220407
|
+
xml = _hoEditorFactory.structureConvert.replaceNodesName(text);
|
|
220287
220408
|
x2js = new (x2js_default())({
|
|
220288
220409
|
stripWhitespaces: false
|
|
220289
220410
|
});
|
|
@@ -220294,7 +220415,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220294
220415
|
if (Array.isArray(item)) {
|
|
220295
220416
|
//数组
|
|
220296
220417
|
for (var _i4 = 1; _i4 < item.length - 1; _i4++) {
|
|
220297
|
-
var anode =
|
|
220418
|
+
var anode = _hoEditorFactory.structureConvert.convertNode(item[_i4], node.rootNodes, node);
|
|
220298
220419
|
if (anode) {
|
|
220299
220420
|
if (anode instanceof TextNode/* TextNode */.R) {
|
|
220300
220421
|
if (anode.text.length > (0,esm_toConsumableArray/* default */.Z)(anode.text).length) {
|
|
@@ -220313,7 +220434,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220313
220434
|
}
|
|
220314
220435
|
} else {
|
|
220315
220436
|
//单个对象
|
|
220316
|
-
var bnode =
|
|
220437
|
+
var bnode = _hoEditorFactory.structureConvert.convertNode(item, node.rootNodes, node);
|
|
220317
220438
|
if (bnode) {
|
|
220318
220439
|
if (bnode instanceof TextNode/* TextNode */.R) {
|
|
220319
220440
|
if (bnode.text.length > (0,esm_toConsumableArray/* default */.Z)(bnode.text).length) {
|
|
@@ -220335,14 +220456,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220335
220456
|
spath = node.StartMarkNode.getNodePath();
|
|
220336
220457
|
epath = node.EndMarkNode.getNodePath();
|
|
220337
220458
|
range = new DomRange/* DomRange */.a(_this3._hoEditorFactoryID, spath, epath);
|
|
220338
|
-
|
|
220459
|
+
_hoEditorFactory.docController.deleteRange(range, true, "update");
|
|
220339
220460
|
(_node$childNodes = node.childNodes).splice.apply(_node$childNodes, [1, 0].concat(childNodes));
|
|
220340
220461
|
node.update(0);
|
|
220341
|
-
|
|
220462
|
+
_context10.next = 33;
|
|
220342
220463
|
break;
|
|
220343
220464
|
case 23:
|
|
220344
220465
|
if (!text.includes("<MedicalExpress>")) {
|
|
220345
|
-
|
|
220466
|
+
_context10.next = 31;
|
|
220346
220467
|
break;
|
|
220347
220468
|
}
|
|
220348
220469
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
@@ -220351,19 +220472,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220351
220472
|
node.childNodes.splice(1 + k, 0, _nodes4[k]);
|
|
220352
220473
|
}
|
|
220353
220474
|
node.update(0);
|
|
220354
|
-
return
|
|
220475
|
+
return _context10.abrupt("return", {
|
|
220355
220476
|
v: void 0
|
|
220356
220477
|
});
|
|
220357
220478
|
case 31:
|
|
220358
|
-
|
|
220479
|
+
_context10.next = 33;
|
|
220359
220480
|
return node.setFieldText(text);
|
|
220360
220481
|
case 33:
|
|
220361
220482
|
if (!(node instanceof DateTimeNode/* DateTimeNode */.Z)) {
|
|
220362
|
-
|
|
220483
|
+
_context10.next = 37;
|
|
220363
220484
|
break;
|
|
220364
220485
|
}
|
|
220365
220486
|
if (text.includes("<DateTimeNode>")) {
|
|
220366
|
-
_xml =
|
|
220487
|
+
_xml = _hoEditorFactory.structureConvert.replaceNodesName(text);
|
|
220367
220488
|
_x2js = new (x2js_default())({
|
|
220368
220489
|
stripWhitespaces: false
|
|
220369
220490
|
});
|
|
@@ -220371,15 +220492,15 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220371
220492
|
_json = _object;
|
|
220372
220493
|
text = _json.node.text;
|
|
220373
220494
|
}
|
|
220374
|
-
|
|
220495
|
+
_context10.next = 37;
|
|
220375
220496
|
return node.setDateTimeText(text);
|
|
220376
220497
|
case 37:
|
|
220377
220498
|
if (!(node instanceof DownListNode/* DownListNode */.yF)) {
|
|
220378
|
-
|
|
220499
|
+
_context10.next = 41;
|
|
220379
220500
|
break;
|
|
220380
220501
|
}
|
|
220381
220502
|
if (text.includes("<DownListNode>")) {
|
|
220382
|
-
_xml2 =
|
|
220503
|
+
_xml2 = _hoEditorFactory.structureConvert.replaceNodesName(text);
|
|
220383
220504
|
_x2js2 = new (x2js_default())({
|
|
220384
220505
|
stripWhitespaces: false
|
|
220385
220506
|
});
|
|
@@ -220387,60 +220508,60 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220387
220508
|
_json2 = _object2;
|
|
220388
220509
|
text = _json2.node.text;
|
|
220389
220510
|
}
|
|
220390
|
-
|
|
220511
|
+
_context10.next = 41;
|
|
220391
220512
|
return node.setDownListText(text);
|
|
220392
220513
|
case 41:
|
|
220393
|
-
|
|
220514
|
+
_context10.next = 44;
|
|
220394
220515
|
break;
|
|
220395
220516
|
case 43:
|
|
220396
220517
|
console.warn("\u975E\u6587\u672C\u57DF\u548C\u65E5\u671F\u5143\u7D20");
|
|
220397
220518
|
case 44:
|
|
220398
|
-
|
|
220519
|
+
_context10.next = 47;
|
|
220399
220520
|
break;
|
|
220400
220521
|
case 46:
|
|
220401
220522
|
console.warn('未找到对应的元素');
|
|
220402
220523
|
case 47:
|
|
220403
220524
|
case "end":
|
|
220404
|
-
return
|
|
220525
|
+
return _context10.stop();
|
|
220405
220526
|
}
|
|
220406
220527
|
}, _loop4);
|
|
220407
220528
|
});
|
|
220408
220529
|
i = nodes.length - 1;
|
|
220409
220530
|
case 4:
|
|
220410
220531
|
if (!(i >= 0)) {
|
|
220411
|
-
|
|
220532
|
+
_context11.next = 14;
|
|
220412
220533
|
break;
|
|
220413
220534
|
}
|
|
220414
|
-
return
|
|
220535
|
+
return _context11.delegateYield(_loop4(), "t0", 6);
|
|
220415
220536
|
case 6:
|
|
220416
|
-
_ret2 =
|
|
220537
|
+
_ret2 = _context11.t0;
|
|
220417
220538
|
if (!(_ret2 === 0)) {
|
|
220418
|
-
|
|
220539
|
+
_context11.next = 9;
|
|
220419
220540
|
break;
|
|
220420
220541
|
}
|
|
220421
|
-
return
|
|
220542
|
+
return _context11.abrupt("continue", 11);
|
|
220422
220543
|
case 9:
|
|
220423
220544
|
if (!_ret2) {
|
|
220424
|
-
|
|
220545
|
+
_context11.next = 11;
|
|
220425
220546
|
break;
|
|
220426
220547
|
}
|
|
220427
|
-
return
|
|
220548
|
+
return _context11.abrupt("return", _ret2.v);
|
|
220428
220549
|
case 11:
|
|
220429
220550
|
i--;
|
|
220430
|
-
|
|
220551
|
+
_context11.next = 4;
|
|
220431
220552
|
break;
|
|
220432
220553
|
case 14:
|
|
220433
|
-
|
|
220554
|
+
_context11.next = 17;
|
|
220434
220555
|
break;
|
|
220435
220556
|
case 16:
|
|
220436
220557
|
console.warn('未找到对应的元素');
|
|
220437
220558
|
case 17:
|
|
220438
220559
|
case "end":
|
|
220439
|
-
return
|
|
220560
|
+
return _context11.stop();
|
|
220440
220561
|
}
|
|
220441
|
-
},
|
|
220562
|
+
}, _callee9, this);
|
|
220442
220563
|
}));
|
|
220443
|
-
function updateElementTextById(
|
|
220564
|
+
function updateElementTextById(_x22, _x23) {
|
|
220444
220565
|
return _updateElementTextById.apply(this, arguments);
|
|
220445
220566
|
}
|
|
220446
220567
|
return updateElementTextById;
|
|
@@ -220621,26 +220742,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220621
220742
|
node = this.getNodeByID(scope, id);
|
|
220622
220743
|
}
|
|
220623
220744
|
if (node) {
|
|
220624
|
-
var
|
|
220625
|
-
var oldRange =
|
|
220626
|
-
var spath =
|
|
220627
|
-
var epath =
|
|
220745
|
+
var _hoEditorFactory2 = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220746
|
+
var oldRange = _hoEditorFactory2.docTree.curDomRange;
|
|
220747
|
+
var spath = _hoEditorFactory2.docTree.getNodeLastPath(node.previousLeaf());
|
|
220748
|
+
var epath = _hoEditorFactory2.docTree.getNodeLastPath(node);
|
|
220628
220749
|
var topath = epath;
|
|
220629
220750
|
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220630
|
-
spath =
|
|
220631
|
-
epath =
|
|
220751
|
+
spath = _hoEditorFactory2.docTree.getNodeLastPath(node.childNodes[0]);
|
|
220752
|
+
epath = _hoEditorFactory2.docTree.getNodeLastPath(node.childNodes[node.childNodes.length - 1].previousLeaf());
|
|
220632
220753
|
if (node.childNodes[1] instanceof MarkNode/* MarkNode */.j) {
|
|
220633
220754
|
topath = spath;
|
|
220634
220755
|
} else {
|
|
220635
220756
|
topath = epath;
|
|
220636
220757
|
}
|
|
220637
220758
|
}
|
|
220638
|
-
|
|
220759
|
+
_hoEditorFactory2.drawTree.moveCaretToPath(topath);
|
|
220639
220760
|
if (type !== 1) {
|
|
220640
220761
|
var newRange = new DomRange/* DomRange */.a(this.hoEditorFactoryID, spath, epath);
|
|
220641
|
-
|
|
220762
|
+
_hoEditorFactory2.docTree.curDomRange = newRange;
|
|
220642
220763
|
var selectChangeEvent = new SelectionChangeEvent/* SelectionChangeEvent */.r(oldRange, newRange);
|
|
220643
|
-
|
|
220764
|
+
_hoEditorFactory2.docTree.selectChange(selectChangeEvent);
|
|
220644
220765
|
}
|
|
220645
220766
|
}
|
|
220646
220767
|
if (returnValue) {
|
|
@@ -220730,54 +220851,54 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220730
220851
|
}, {
|
|
220731
220852
|
key: "getBase64",
|
|
220732
220853
|
value: function () {
|
|
220733
|
-
var _getBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
220854
|
+
var _getBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee10(type, callback) {
|
|
220734
220855
|
var hoEditorFactory, _hoEditorFactory$vueC, curDomRange, endPath, _node, htmlText, _hoEditorFactory$vueC2, _curDomRange2, _endPath, _node2, base64;
|
|
220735
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
220736
|
-
while (1) switch (
|
|
220856
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee10$(_context12) {
|
|
220857
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
220737
220858
|
case 0:
|
|
220738
220859
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220739
220860
|
if (!(type === 'html')) {
|
|
220740
|
-
|
|
220861
|
+
_context12.next = 14;
|
|
220741
220862
|
break;
|
|
220742
220863
|
}
|
|
220743
220864
|
curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
220744
220865
|
endPath = curDomRange.normalize().endPath;
|
|
220745
220866
|
_node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
220746
220867
|
if (!(_node instanceof SignNode/* SignNode */.N && !_node.isTemplate && _node.attribute == 1)) {
|
|
220747
|
-
|
|
220868
|
+
_context12.next = 8;
|
|
220748
220869
|
break;
|
|
220749
220870
|
}
|
|
220750
|
-
|
|
220871
|
+
_context12.next = 8;
|
|
220751
220872
|
return this.deleteNode(_node);
|
|
220752
220873
|
case 8:
|
|
220753
|
-
|
|
220874
|
+
_context12.next = 10;
|
|
220754
220875
|
return hoEditorFactory.printController.createHtml();
|
|
220755
220876
|
case 10:
|
|
220756
|
-
htmlText =
|
|
220757
|
-
return
|
|
220877
|
+
htmlText = _context12.sent;
|
|
220878
|
+
return _context12.abrupt("return", htmlText);
|
|
220758
220879
|
case 14:
|
|
220759
220880
|
_curDomRange2 = hoEditorFactory.docTree.curDomRange.normalize();
|
|
220760
220881
|
_endPath = _curDomRange2.normalize().endPath;
|
|
220761
220882
|
_node2 = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(_endPath)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
|
|
220762
220883
|
if (!(_node2 instanceof SignNode/* SignNode */.N && !_node2.isTemplate && _node2.attribute == 1)) {
|
|
220763
|
-
|
|
220884
|
+
_context12.next = 20;
|
|
220764
220885
|
break;
|
|
220765
220886
|
}
|
|
220766
|
-
|
|
220887
|
+
_context12.next = 20;
|
|
220767
220888
|
return this.deleteNode(_node2);
|
|
220768
220889
|
case 20:
|
|
220769
|
-
|
|
220890
|
+
_context12.next = 22;
|
|
220770
220891
|
return hoEditorFactory.printController.createBase64(callback);
|
|
220771
220892
|
case 22:
|
|
220772
|
-
base64 =
|
|
220773
|
-
return
|
|
220893
|
+
base64 = _context12.sent;
|
|
220894
|
+
return _context12.abrupt("return", base64);
|
|
220774
220895
|
case 24:
|
|
220775
220896
|
case "end":
|
|
220776
|
-
return
|
|
220897
|
+
return _context12.stop();
|
|
220777
220898
|
}
|
|
220778
|
-
},
|
|
220899
|
+
}, _callee10, this);
|
|
220779
220900
|
}));
|
|
220780
|
-
function getBase64(
|
|
220901
|
+
function getBase64(_x24, _x25) {
|
|
220781
220902
|
return _getBase.apply(this, arguments);
|
|
220782
220903
|
}
|
|
220783
220904
|
return getBase64;
|
|
@@ -220785,21 +220906,21 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220785
220906
|
}, {
|
|
220786
220907
|
key: "getSvg",
|
|
220787
220908
|
value: function () {
|
|
220788
|
-
var _getSvg = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
220909
|
+
var _getSvg = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee11() {
|
|
220789
220910
|
var hoEditorFactory;
|
|
220790
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
220791
|
-
while (1) switch (
|
|
220911
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee11$(_context13) {
|
|
220912
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
220792
220913
|
case 0:
|
|
220793
220914
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220794
|
-
|
|
220915
|
+
_context13.next = 3;
|
|
220795
220916
|
return hoEditorFactory.printController.createSvg();
|
|
220796
220917
|
case 3:
|
|
220797
|
-
return
|
|
220918
|
+
return _context13.abrupt("return", _context13.sent);
|
|
220798
220919
|
case 4:
|
|
220799
220920
|
case "end":
|
|
220800
|
-
return
|
|
220921
|
+
return _context13.stop();
|
|
220801
220922
|
}
|
|
220802
|
-
},
|
|
220923
|
+
}, _callee11, this);
|
|
220803
220924
|
}));
|
|
220804
220925
|
function getSvg() {
|
|
220805
220926
|
return _getSvg.apply(this, arguments);
|
|
@@ -220809,20 +220930,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220809
220930
|
}, {
|
|
220810
220931
|
key: "isSetFontFamily",
|
|
220811
220932
|
value: function () {
|
|
220812
|
-
var _isSetFontFamily = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
220933
|
+
var _isSetFontFamily = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee12(callback) {
|
|
220813
220934
|
var hoEditorFactory, font;
|
|
220814
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
220815
|
-
while (1) switch (
|
|
220935
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee12$(_context14) {
|
|
220936
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
220816
220937
|
case 0:
|
|
220817
220938
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220818
220939
|
if (hoEditorFactory.printController.isSetFont) {
|
|
220819
|
-
|
|
220940
|
+
_context14.next = 8;
|
|
220820
220941
|
break;
|
|
220821
220942
|
}
|
|
220822
|
-
|
|
220943
|
+
_context14.next = 4;
|
|
220823
220944
|
return hoEditorFactory.vueController.hoLocalStorage().loadFontString();
|
|
220824
220945
|
case 4:
|
|
220825
|
-
font =
|
|
220946
|
+
font = _context14.sent;
|
|
220826
220947
|
if (font) {
|
|
220827
220948
|
hoEditorFactory.printController.setjsPDFFonts(font);
|
|
220828
220949
|
callback && callback();
|
|
@@ -220830,17 +220951,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220830
220951
|
font = '';
|
|
220831
220952
|
}, 0);
|
|
220832
220953
|
}
|
|
220833
|
-
|
|
220954
|
+
_context14.next = 9;
|
|
220834
220955
|
break;
|
|
220835
220956
|
case 8:
|
|
220836
220957
|
callback && callback();
|
|
220837
220958
|
case 9:
|
|
220838
220959
|
case "end":
|
|
220839
|
-
return
|
|
220960
|
+
return _context14.stop();
|
|
220840
220961
|
}
|
|
220841
|
-
},
|
|
220962
|
+
}, _callee12, this);
|
|
220842
220963
|
}));
|
|
220843
|
-
function isSetFontFamily(
|
|
220964
|
+
function isSetFontFamily(_x26) {
|
|
220844
220965
|
return _isSetFontFamily.apply(this, arguments);
|
|
220845
220966
|
}
|
|
220846
220967
|
return isSetFontFamily;
|
|
@@ -223323,10 +223444,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223323
223444
|
value: function moveCaretToTextInputField(node) {
|
|
223324
223445
|
var endNode = node.EndMarkNode.previousLeaf();
|
|
223325
223446
|
if (endNode) {
|
|
223326
|
-
var
|
|
223327
|
-
var toPath =
|
|
223328
|
-
|
|
223329
|
-
|
|
223447
|
+
var _hoEditorFactory3 = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
223448
|
+
var toPath = _hoEditorFactory3.docTree.getNodeLastPath(endNode);
|
|
223449
|
+
_hoEditorFactory3.drawTree.moveCaretToPath(toPath);
|
|
223450
|
+
_hoEditorFactory3.docTree.curDomRange.setSamePath(toPath);
|
|
223330
223451
|
}
|
|
223331
223452
|
}
|
|
223332
223453
|
}, {
|
|
@@ -223441,10 +223562,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223441
223562
|
}, {
|
|
223442
223563
|
key: "importWordFile",
|
|
223443
223564
|
value: function () {
|
|
223444
|
-
var _importWordFile = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
223565
|
+
var _importWordFile = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee13(fileStr) {
|
|
223445
223566
|
var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent, nodes;
|
|
223446
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
223447
|
-
while (1) switch (
|
|
223567
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee13$(_context15) {
|
|
223568
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
223448
223569
|
case 0:
|
|
223449
223570
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
223450
223571
|
hoEditorFactory.isThrowError = false;
|
|
@@ -223453,10 +223574,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223453
223574
|
endPath = _curDomRange.normalize().endPath;
|
|
223454
223575
|
changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.openLocalFiles);
|
|
223455
223576
|
if (!hoEditorFactory.docTree.changing(changingEvent)) {
|
|
223456
|
-
|
|
223577
|
+
_context15.next = 14;
|
|
223457
223578
|
break;
|
|
223458
223579
|
}
|
|
223459
|
-
|
|
223580
|
+
_context15.next = 9;
|
|
223460
223581
|
return hoEditorFactory.docController.initBlankDoc();
|
|
223461
223582
|
case 9:
|
|
223462
223583
|
hoEditorFactory.drawTree.inViewPages = [0];
|
|
@@ -223468,11 +223589,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223468
223589
|
hoEditorFactory.undoService.stack = [];
|
|
223469
223590
|
case 15:
|
|
223470
223591
|
case "end":
|
|
223471
|
-
return
|
|
223592
|
+
return _context15.stop();
|
|
223472
223593
|
}
|
|
223473
|
-
},
|
|
223594
|
+
}, _callee13, this);
|
|
223474
223595
|
}));
|
|
223475
|
-
function importWordFile(
|
|
223596
|
+
function importWordFile(_x27) {
|
|
223476
223597
|
return _importWordFile.apply(this, arguments);
|
|
223477
223598
|
}
|
|
223478
223599
|
return importWordFile;
|