hoeditor-web 2.0.100 → 2.0.101
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.common.js +387 -69
- package/lib/hoeditor.css +3 -815
- package/lib/hoeditor.umd.js +387 -69
- package/lib/hoeditor.umd.min.js +7 -7
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -26600,7 +26600,7 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
26600
26600
|
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86769);
|
|
26601
26601
|
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4__);
|
|
26602
26602
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35671);
|
|
26603
|
-
/* harmony import */ var
|
|
26603
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(22342);
|
|
26604
26604
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41539);
|
|
26605
26605
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
26606
26606
|
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88674);
|
|
@@ -26699,6 +26699,8 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
26699
26699
|
/* harmony import */ var _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(34450);
|
|
26700
26700
|
/* harmony import */ var _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(49482);
|
|
26701
26701
|
/* harmony import */ var _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(74873);
|
|
26702
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(72964);
|
|
26703
|
+
|
|
26702
26704
|
|
|
26703
26705
|
|
|
26704
26706
|
|
|
@@ -26806,7 +26808,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26806
26808
|
// }
|
|
26807
26809
|
|
|
26808
26810
|
|
|
26809
|
-
(0,
|
|
26811
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_88__/* ["default"] */ .Z)(DocController, [{
|
|
26810
26812
|
key: "onInsertNodeByID",
|
|
26811
26813
|
get: function get() {
|
|
26812
26814
|
return this._onInsertNodeByID;
|
|
@@ -27382,7 +27384,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27382
27384
|
// );
|
|
27383
27385
|
// hoEditorFactory.undoService.commit();
|
|
27384
27386
|
|
|
27385
|
-
_context.next =
|
|
27387
|
+
_context.next = 123;
|
|
27386
27388
|
break;
|
|
27387
27389
|
|
|
27388
27390
|
case 6:
|
|
@@ -27391,12 +27393,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27391
27393
|
node = nodePosition.node;
|
|
27392
27394
|
|
|
27393
27395
|
if (!node) {
|
|
27394
|
-
_context.next =
|
|
27396
|
+
_context.next = 123;
|
|
27395
27397
|
break;
|
|
27396
27398
|
}
|
|
27397
27399
|
|
|
27398
27400
|
if (!domRange.isEmpty) {
|
|
27399
|
-
_context.next =
|
|
27401
|
+
_context.next = 123;
|
|
27400
27402
|
break;
|
|
27401
27403
|
}
|
|
27402
27404
|
|
|
@@ -27465,7 +27467,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27465
27467
|
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
27466
27468
|
this.deleteRange(aRange, true);
|
|
27467
27469
|
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
|
|
27468
|
-
_context.next =
|
|
27470
|
+
_context.next = 123;
|
|
27469
27471
|
break;
|
|
27470
27472
|
|
|
27471
27473
|
case 36:
|
|
@@ -27524,12 +27526,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27524
27526
|
// );
|
|
27525
27527
|
// hoEditorFactory.undoService.commit();
|
|
27526
27528
|
|
|
27527
|
-
_context.next =
|
|
27529
|
+
_context.next = 123;
|
|
27528
27530
|
break;
|
|
27529
27531
|
|
|
27530
27532
|
case 55:
|
|
27531
27533
|
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C)) {
|
|
27532
|
-
_context.next =
|
|
27534
|
+
_context.next = 81;
|
|
27533
27535
|
break;
|
|
27534
27536
|
}
|
|
27535
27537
|
|
|
@@ -27544,12 +27546,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27544
27546
|
|
|
27545
27547
|
case 59:
|
|
27546
27548
|
if (!(prevNode == null)) {
|
|
27547
|
-
_context.next =
|
|
27549
|
+
_context.next = 81;
|
|
27548
27550
|
break;
|
|
27549
27551
|
}
|
|
27550
27552
|
|
|
27551
27553
|
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
27552
|
-
_context.next =
|
|
27554
|
+
_context.next = 80;
|
|
27553
27555
|
break;
|
|
27554
27556
|
}
|
|
27555
27557
|
|
|
@@ -27560,35 +27562,39 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27560
27562
|
preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
|
|
27561
27563
|
|
|
27562
27564
|
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__/* .DrawLine */ .a && preParaNode.drawlines[0].isEmpty())) {
|
|
27563
|
-
_context.next =
|
|
27565
|
+
_context.next = 77;
|
|
27564
27566
|
break;
|
|
27565
27567
|
}
|
|
27566
27568
|
|
|
27569
|
+
// hoEditorFactory.undoService.begin();
|
|
27570
|
+
// hoEditorFactory.undoService.add(
|
|
27571
|
+
// new NodeDeleteUndoUnit(this._hoEditorFactoryID, tableNode.paragraphNode, tableNode.paragraphNode.getNodePath())
|
|
27572
|
+
// );
|
|
27573
|
+
// await hoEditorFactory.undoService.commit();
|
|
27567
27574
|
hoEditorFactory.undoService.begin();
|
|
27568
|
-
hoEditorFactory.undoService.add(new
|
|
27569
|
-
|
|
27570
|
-
_context.next = 72;
|
|
27575
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__/* .TableDeleteParagraphUndoUnit */ .T(this._hoEditorFactoryID, tableNode, tableNode.paragraphNode));
|
|
27576
|
+
_context.next = 71;
|
|
27571
27577
|
return hoEditorFactory.undoService.commit();
|
|
27572
27578
|
|
|
27573
|
-
case
|
|
27579
|
+
case 71:
|
|
27574
27580
|
newpath = cellNode.childNodes[0].getNodePath();
|
|
27575
27581
|
hoEditorFactory.docTree.curDomRange.setSamePath(newpath);
|
|
27576
27582
|
hoEditorFactory.drawTree.moveCaretToPath(newpath);
|
|
27577
27583
|
return _context.abrupt("return");
|
|
27578
27584
|
|
|
27579
|
-
case
|
|
27585
|
+
case 77:
|
|
27580
27586
|
return _context.abrupt("return");
|
|
27581
27587
|
|
|
27582
|
-
case
|
|
27583
|
-
_context.next =
|
|
27588
|
+
case 78:
|
|
27589
|
+
_context.next = 81;
|
|
27584
27590
|
break;
|
|
27585
27591
|
|
|
27586
|
-
case
|
|
27592
|
+
case 80:
|
|
27587
27593
|
return _context.abrupt("return");
|
|
27588
27594
|
|
|
27589
|
-
case
|
|
27595
|
+
case 81:
|
|
27590
27596
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
|
|
27591
|
-
_context.next =
|
|
27597
|
+
_context.next = 86;
|
|
27592
27598
|
break;
|
|
27593
27599
|
}
|
|
27594
27600
|
|
|
@@ -27596,16 +27602,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27596
27602
|
|
|
27597
27603
|
return _context.abrupt("return");
|
|
27598
27604
|
|
|
27599
|
-
case
|
|
27605
|
+
case 86:
|
|
27600
27606
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27601
|
-
_context.next =
|
|
27607
|
+
_context.next = 91;
|
|
27602
27608
|
break;
|
|
27603
27609
|
}
|
|
27604
27610
|
|
|
27605
27611
|
signUserId = node.customProperty.bce01;
|
|
27606
27612
|
|
|
27607
27613
|
if (!(hoEditorFactory.userInfo.id != signUserId)) {
|
|
27608
|
-
_context.next =
|
|
27614
|
+
_context.next = 91;
|
|
27609
27615
|
break;
|
|
27610
27616
|
}
|
|
27611
27617
|
|
|
@@ -27613,9 +27619,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27613
27619
|
|
|
27614
27620
|
return _context.abrupt("return");
|
|
27615
27621
|
|
|
27616
|
-
case
|
|
27622
|
+
case 91:
|
|
27617
27623
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27618
|
-
_context.next =
|
|
27624
|
+
_context.next = 94;
|
|
27619
27625
|
break;
|
|
27620
27626
|
}
|
|
27621
27627
|
|
|
@@ -27623,9 +27629,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27623
27629
|
|
|
27624
27630
|
return _context.abrupt("return");
|
|
27625
27631
|
|
|
27626
|
-
case
|
|
27632
|
+
case 94:
|
|
27627
27633
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
27628
|
-
_context.next =
|
|
27634
|
+
_context.next = 97;
|
|
27629
27635
|
break;
|
|
27630
27636
|
}
|
|
27631
27637
|
|
|
@@ -27633,9 +27639,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27633
27639
|
|
|
27634
27640
|
return _context.abrupt("return");
|
|
27635
27641
|
|
|
27636
|
-
case
|
|
27642
|
+
case 97:
|
|
27637
27643
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27638
|
-
_context.next =
|
|
27644
|
+
_context.next = 118;
|
|
27639
27645
|
break;
|
|
27640
27646
|
}
|
|
27641
27647
|
|
|
@@ -27643,7 +27649,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27643
27649
|
nextNode = node.nextLeaf();
|
|
27644
27650
|
|
|
27645
27651
|
if (!((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
|
|
27646
|
-
_context.next =
|
|
27652
|
+
_context.next = 108;
|
|
27647
27653
|
break;
|
|
27648
27654
|
}
|
|
27649
27655
|
|
|
@@ -27655,9 +27661,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27655
27661
|
hoEditorFactory.undoService.commit();
|
|
27656
27662
|
return _context.abrupt("return");
|
|
27657
27663
|
|
|
27658
|
-
case
|
|
27664
|
+
case 108:
|
|
27659
27665
|
if (!(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27660
|
-
_context.next =
|
|
27666
|
+
_context.next = 118;
|
|
27661
27667
|
break;
|
|
27662
27668
|
}
|
|
27663
27669
|
|
|
@@ -27683,7 +27689,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27683
27689
|
hoEditorFactory.undoService.commit();
|
|
27684
27690
|
return _context.abrupt("return");
|
|
27685
27691
|
|
|
27686
|
-
case
|
|
27692
|
+
case 118:
|
|
27687
27693
|
pNode = node.parentNode;
|
|
27688
27694
|
hoEditorFactory.undoService.begin();
|
|
27689
27695
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
@@ -27693,7 +27699,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27693
27699
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
27694
27700
|
}
|
|
27695
27701
|
|
|
27696
|
-
case
|
|
27702
|
+
case 123:
|
|
27697
27703
|
case "end":
|
|
27698
27704
|
return _context.stop();
|
|
27699
27705
|
}
|
|
@@ -30516,6 +30522,28 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30516
30522
|
hoEditorFactory.undoService.commit();
|
|
30517
30523
|
}
|
|
30518
30524
|
}
|
|
30525
|
+
/**
|
|
30526
|
+
* 修改空签名
|
|
30527
|
+
* @param node 签名节点
|
|
30528
|
+
* @param name 签名名称
|
|
30529
|
+
* @param attribute 签名属性
|
|
30530
|
+
*/
|
|
30531
|
+
|
|
30532
|
+
}, {
|
|
30533
|
+
key: "updateEmptySignNode",
|
|
30534
|
+
value: function updateEmptySignNode(node, name, attribute, connectChar) {
|
|
30535
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
30536
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
30537
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
30538
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_26__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
|
|
30539
|
+
changeEvent.oldEndPath = ePath;
|
|
30540
|
+
changeEvent.afterChangePath = ePath;
|
|
30541
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
30542
|
+
node.name = name;
|
|
30543
|
+
node.connectChar = connectChar;
|
|
30544
|
+
node.attribute = attribute;
|
|
30545
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
30546
|
+
}
|
|
30519
30547
|
/**
|
|
30520
30548
|
* 更新签名时间
|
|
30521
30549
|
* @param node 签名节点
|
|
@@ -30812,6 +30840,8 @@ var DocAction;
|
|
|
30812
30840
|
DocAction[DocAction["daParaStyleChange"] = 10] = "daParaStyleChange";
|
|
30813
30841
|
DocAction[DocAction["daInsertAreaFirstParagraph"] = 11] = "daInsertAreaFirstParagraph";
|
|
30814
30842
|
DocAction[DocAction["daInsertParagraphBetweenTab"] = 12] = "daInsertParagraphBetweenTab";
|
|
30843
|
+
DocAction[DocAction["daInsertParagraphBeforeTab"] = 13] = "daInsertParagraphBeforeTab";
|
|
30844
|
+
DocAction[DocAction["daDeleteParagraphBeforeTab"] = 14] = "daDeleteParagraphBeforeTab";
|
|
30815
30845
|
})(DocAction || (DocAction = {}));
|
|
30816
30846
|
|
|
30817
30847
|
var ctlKey;
|
|
@@ -47939,6 +47969,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47939
47969
|
set: function set(value) {
|
|
47940
47970
|
if (this._attribute !== value) {
|
|
47941
47971
|
this._attribute = value;
|
|
47972
|
+
this.node2DrawNodeRange(0, 0);
|
|
47942
47973
|
}
|
|
47943
47974
|
}
|
|
47944
47975
|
}, {
|
|
@@ -72078,15 +72109,114 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72078
72109
|
// dendDrawLine = e.redrawEndPositon.drawRoots[e.redrawEndPositon.index];
|
|
72079
72110
|
// }
|
|
72080
72111
|
|
|
72081
|
-
} else if (e.action === DocTree/* DocAction.
|
|
72112
|
+
} else if (e.action === DocTree/* DocAction.daInsertParagraphBeforeTab */.gk.daInsertParagraphBeforeTab) {
|
|
72082
72113
|
if (dCell) {
|
|
72083
72114
|
dCell.needUpdate = true;
|
|
72084
72115
|
}
|
|
72085
72116
|
|
|
72086
|
-
var np = hoEditorFactory.docTree.findNodePositionByPath(e.
|
|
72117
|
+
var np = hoEditorFactory.docTree.findNodePositionByPath(e.afterChangePath);
|
|
72087
72118
|
|
|
72088
72119
|
if (np && np.node && np.node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
72089
|
-
|
|
72120
|
+
var beforeNode = np.node.prevSibling();
|
|
72121
|
+
var afterNode = np.node.nextSibling();
|
|
72122
|
+
|
|
72123
|
+
if (beforeNode instanceof ParagraphNode/* ParagraphNode */.C && afterNode instanceof TableNode/* TableNode */.Fh && beforeNode.drawlines[0] instanceof DrawTable/* DrawTable */.t) {
|
|
72124
|
+
var dTable = beforeNode.drawlines[0];
|
|
72125
|
+
var index = beforeNode.drootNodes.indexOf(dTable);
|
|
72126
|
+
beforeNode.drootNodes.splice(index, 1);
|
|
72127
|
+
beforeNode.node2DrawNode();
|
|
72128
|
+
|
|
72129
|
+
if (dArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && beforeNode.rootNodes.indexOf(beforeNode) == 0) {
|
|
72130
|
+
beforeNode.drawlines[0].dTop = hoEditorFactory.firstPageStartTop;
|
|
72131
|
+
beforeNode.drawlines[0].y = hoEditorFactory.firstPageStartTop;
|
|
72132
|
+
beforeNode.drawlines[0].x = paragraphNode.drawlines[0].dLeft;
|
|
72133
|
+
beforeNode.drootNodes.splice(index, 0, beforeNode.drawlines[0]);
|
|
72134
|
+
|
|
72135
|
+
if (dArea) {
|
|
72136
|
+
dArea.addChild(paragraphNode.drawlines[0]);
|
|
72137
|
+
|
|
72138
|
+
if (index == 0) {
|
|
72139
|
+
dArea.topDline = paragraphNode.drawlines[0];
|
|
72140
|
+
}
|
|
72141
|
+
}
|
|
72142
|
+
} else {
|
|
72143
|
+
beforeNode.clear();
|
|
72144
|
+
beforeNode.node2DrawNode();
|
|
72145
|
+
beforeNode.placeDNodeAfterDline(beforeNode.drootNodes[index - 1]);
|
|
72146
|
+
}
|
|
72147
|
+
|
|
72148
|
+
beforeNode.updateDrawLineStyle();
|
|
72149
|
+
beforeNode.updateDrawInfos();
|
|
72150
|
+
np.node.node2DrawNode();
|
|
72151
|
+
np.node.placeDNodeAfterDline(beforeNode.drawlines[0]);
|
|
72152
|
+
dTable.table.placeDNodeAfterDrawLine(np.node, np.node.drawlines[0], e.afterChangePath);
|
|
72153
|
+
dline = node.drawTable;
|
|
72154
|
+
|
|
72155
|
+
if (e.repaintImmediate) {
|
|
72156
|
+
if (!dArea) {
|
|
72157
|
+
return false;
|
|
72158
|
+
}
|
|
72159
|
+
|
|
72160
|
+
dArea.changed = true;
|
|
72161
|
+
|
|
72162
|
+
var _mainArea4 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
|
|
72163
|
+
|
|
72164
|
+
if (!_mainArea4) return false;
|
|
72165
|
+
_mainArea4.changed = true;
|
|
72166
|
+
hoEditorFactory.drawPageTree.update(dArea, alines, beforeNode.drawlines[0].dTop, index, beforeNode.drootNodes.length - 1);
|
|
72167
|
+
}
|
|
72168
|
+
}
|
|
72169
|
+
}
|
|
72170
|
+
} else if (e.action === DocTree/* DocAction.daDeleteParagraphBeforeTab */.gk.daDeleteParagraphBeforeTab) {
|
|
72171
|
+
if (dCell) {
|
|
72172
|
+
dCell.needUpdate = true;
|
|
72173
|
+
}
|
|
72174
|
+
|
|
72175
|
+
var _np = hoEditorFactory.docTree.findNodePositionByPath(e.afterChangePath);
|
|
72176
|
+
|
|
72177
|
+
if (_np && _np.node && _np.node instanceof TableNode/* TableNode */.Fh) {
|
|
72178
|
+
var _beforeNode = _np.node.prevSibling();
|
|
72179
|
+
|
|
72180
|
+
if (_beforeNode instanceof ParagraphNode/* ParagraphNode */.C && _np.node instanceof TableNode/* TableNode */.Fh && _beforeNode.drawlines[0] instanceof DrawLine/* DrawLine */.a) {
|
|
72181
|
+
var _dTable = _np.node.drawTable;
|
|
72182
|
+
var tabIndex = alines.indexOf(_dTable);
|
|
72183
|
+
|
|
72184
|
+
if (tabIndex >= 0) {
|
|
72185
|
+
alines.splice(tabIndex, 1);
|
|
72186
|
+
}
|
|
72187
|
+
|
|
72188
|
+
var _index2 = _beforeNode.drootNodes.indexOf(_beforeNode.drawlines[0]);
|
|
72189
|
+
|
|
72190
|
+
var dTop = _beforeNode.drawlines[0].y;
|
|
72191
|
+
|
|
72192
|
+
_np.node.placeDNodeAfterDrawLine(_beforeNode, _beforeNode.drawlines[0], e.afterChangePath);
|
|
72193
|
+
|
|
72194
|
+
dline = node.drawTable;
|
|
72195
|
+
|
|
72196
|
+
if (e.repaintImmediate) {
|
|
72197
|
+
if (!dArea) {
|
|
72198
|
+
return false;
|
|
72199
|
+
}
|
|
72200
|
+
|
|
72201
|
+
dArea.changed = true;
|
|
72202
|
+
|
|
72203
|
+
var _mainArea5 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
|
|
72204
|
+
|
|
72205
|
+
if (!_mainArea5) return false;
|
|
72206
|
+
_mainArea5.changed = true;
|
|
72207
|
+
hoEditorFactory.drawPageTree.update(dArea, alines, dTop, _index2, _beforeNode.drootNodes.length - 1);
|
|
72208
|
+
}
|
|
72209
|
+
}
|
|
72210
|
+
}
|
|
72211
|
+
} else if (e.action === DocTree/* DocAction.daInsertAreaFirstParagraph */.gk.daInsertAreaFirstParagraph) {
|
|
72212
|
+
if (dCell) {
|
|
72213
|
+
dCell.needUpdate = true;
|
|
72214
|
+
}
|
|
72215
|
+
|
|
72216
|
+
var _np2 = hoEditorFactory.docTree.findNodePositionByPath(e.beforeChangePath);
|
|
72217
|
+
|
|
72218
|
+
if (_np2 && _np2.node && _np2.node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
72219
|
+
paragraphNode = _np2.node;
|
|
72090
72220
|
lineIndex = 0;
|
|
72091
72221
|
paragraphNode.drawlines[0].updateLineStyle();
|
|
72092
72222
|
paragraphNode.drootNodes.splice(0, 0, paragraphNode.drawlines[0]);
|
|
@@ -72118,10 +72248,10 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72118
72248
|
|
|
72119
72249
|
dArea.changed = true;
|
|
72120
72250
|
|
|
72121
|
-
var
|
|
72251
|
+
var _mainArea6 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
|
|
72122
72252
|
|
|
72123
|
-
if (!
|
|
72124
|
-
|
|
72253
|
+
if (!_mainArea6) return false;
|
|
72254
|
+
_mainArea6.changed = true;
|
|
72125
72255
|
var _drawTop3 = alines[0].y;
|
|
72126
72256
|
hoEditorFactory.drawPageTree.update(dArea, alines, _drawTop3, 0, alines.length - 1);
|
|
72127
72257
|
}
|
|
@@ -72131,13 +72261,15 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72131
72261
|
dCell.needUpdate = true;
|
|
72132
72262
|
}
|
|
72133
72263
|
|
|
72134
|
-
var
|
|
72264
|
+
var _np3 = hoEditorFactory.docTree.findNodePositionByPath(e.afterChangePath);
|
|
72135
72265
|
|
|
72136
|
-
if (
|
|
72137
|
-
paragraphNode =
|
|
72266
|
+
if (_np3 && _np3.node && _np3.node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
72267
|
+
paragraphNode = _np3.node;
|
|
72138
72268
|
lineIndex = 0;
|
|
72139
|
-
|
|
72140
|
-
var
|
|
72269
|
+
|
|
72270
|
+
var _index3 = paragraphNode.drootNodes.indexOf(dline);
|
|
72271
|
+
|
|
72272
|
+
var prevDline = paragraphNode.drootNodes[_index3 - 1];
|
|
72141
72273
|
paragraphNode.placeDNodeAfterDline(prevDline);
|
|
72142
72274
|
paragraphNode.drawlines[0].fitLines();
|
|
72143
72275
|
paragraphNode.updateDrawLineStyle();
|
|
@@ -72156,11 +72288,11 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72156
72288
|
|
|
72157
72289
|
dArea.changed = true;
|
|
72158
72290
|
|
|
72159
|
-
var
|
|
72291
|
+
var _mainArea7 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
|
|
72160
72292
|
|
|
72161
|
-
if (!
|
|
72162
|
-
|
|
72163
|
-
hoEditorFactory.drawPageTree.paint(dArea, alines,
|
|
72293
|
+
if (!_mainArea7) return false;
|
|
72294
|
+
_mainArea7.changed = true;
|
|
72295
|
+
hoEditorFactory.drawPageTree.paint(dArea, alines, _index3 - 1, alines.length - 1);
|
|
72164
72296
|
}
|
|
72165
72297
|
}
|
|
72166
72298
|
} // if (dCell) {
|
|
@@ -73008,11 +73140,11 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
73008
73140
|
if (dPlace instanceof DrawPageCell/* DrawPageCell */.k && dPlace.isEmpty()) {
|
|
73009
73141
|
var aPrevPlace;
|
|
73010
73142
|
|
|
73011
|
-
var
|
|
73143
|
+
var _index4 = dPlace.cell.drawCell.drawPageCells.indexOf(dPlace);
|
|
73012
73144
|
|
|
73013
73145
|
if (dPlace.cell.cellProperty.align != TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
73014
|
-
while (
|
|
73015
|
-
aPrevPlace = dPlace.cell.drawCell.drawPageCells[
|
|
73146
|
+
while (_index4 > 0) {
|
|
73147
|
+
aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index4 - 1];
|
|
73016
73148
|
|
|
73017
73149
|
if (!aPrevPlace.isEmpty()) {
|
|
73018
73150
|
var rootArea = hoeditfactory.drawPageTree.getMainRootArea(aPrevPlace);
|
|
@@ -73024,11 +73156,11 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
73024
73156
|
return this.getStagePosition(aPage, aPrevPlace, x, 99999999);
|
|
73025
73157
|
}
|
|
73026
73158
|
|
|
73027
|
-
|
|
73159
|
+
_index4 -= 1;
|
|
73028
73160
|
}
|
|
73029
73161
|
} else {
|
|
73030
|
-
while (
|
|
73031
|
-
aPrevPlace = dPlace.cell.drawCell.drawPageCells[
|
|
73162
|
+
while (_index4 < dPlace.cell.drawCell.drawPageCells.length - 1) {
|
|
73163
|
+
aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index4 + 1];
|
|
73032
73164
|
|
|
73033
73165
|
if (!aPrevPlace.isEmpty()) {
|
|
73034
73166
|
var _rootArea = hoeditfactory.drawPageTree.getMainRootArea(aPrevPlace);
|
|
@@ -73040,7 +73172,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
73040
73172
|
return this.getStagePosition(aPage, aPrevPlace, x, 99999999);
|
|
73041
73173
|
}
|
|
73042
73174
|
|
|
73043
|
-
|
|
73175
|
+
_index4 += 1;
|
|
73044
73176
|
}
|
|
73045
73177
|
}
|
|
73046
73178
|
} // if (dPlace instanceof DrawCell) {
|
|
@@ -78481,6 +78613,156 @@ var TableDeleteColUndoUnit = /*#__PURE__*/function () {
|
|
|
78481
78613
|
|
|
78482
78614
|
/***/ }),
|
|
78483
78615
|
|
|
78616
|
+
/***/ 72964:
|
|
78617
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
78618
|
+
|
|
78619
|
+
"use strict";
|
|
78620
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
78621
|
+
/* harmony export */ "T": function() { return /* binding */ TableDeleteParagraphUndoUnit; }
|
|
78622
|
+
/* harmony export */ });
|
|
78623
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35671);
|
|
78624
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(22342);
|
|
78625
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21703);
|
|
78626
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
78627
|
+
/* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23375);
|
|
78628
|
+
/* harmony import */ var _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66828);
|
|
78629
|
+
/* harmony import */ var _editor_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50369);
|
|
78630
|
+
/* harmony import */ var _editor_dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(14208);
|
|
78631
|
+
/* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1470);
|
|
78632
|
+
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(34534);
|
|
78633
|
+
/* harmony import */ var _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(13113);
|
|
78634
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41005);
|
|
78635
|
+
|
|
78636
|
+
|
|
78637
|
+
|
|
78638
|
+
|
|
78639
|
+
|
|
78640
|
+
|
|
78641
|
+
|
|
78642
|
+
|
|
78643
|
+
|
|
78644
|
+
|
|
78645
|
+
|
|
78646
|
+
var TableDeleteParagraphUndoUnit = /*#__PURE__*/function () {
|
|
78647
|
+
function TableDeleteParagraphUndoUnit(hoEditorFactoryID, positionNode, deleteNode) {
|
|
78648
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, TableDeleteParagraphUndoUnit);
|
|
78649
|
+
|
|
78650
|
+
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
78651
|
+
this._positionNode = positionNode;
|
|
78652
|
+
this._deleteNode = deleteNode;
|
|
78653
|
+
this._opTime = new Date();
|
|
78654
|
+
this._affectText = "";
|
|
78655
|
+
}
|
|
78656
|
+
|
|
78657
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(TableDeleteParagraphUndoUnit, [{
|
|
78658
|
+
key: "isEmpty",
|
|
78659
|
+
get: function get() {
|
|
78660
|
+
return false;
|
|
78661
|
+
}
|
|
78662
|
+
}, {
|
|
78663
|
+
key: "redo",
|
|
78664
|
+
value: function redo() {
|
|
78665
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
78666
|
+
var startPath = '';
|
|
78667
|
+
var endPath = '';
|
|
78668
|
+
var cgEvent;
|
|
78669
|
+
|
|
78670
|
+
var prevNode = this._deleteNode.prevSibling(); // if (this._action === DocAction.daInsertAreaFirstParagraph || this._action === DocAction.daInsertParagraphBetweenTab) {
|
|
78671
|
+
// startPath = this._deleteNode.getNodePath();
|
|
78672
|
+
// endPath = this._positionNode.paragraphNode.getNodePath();
|
|
78673
|
+
// cgEvent = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daDelete, startPath, endPath)
|
|
78674
|
+
// cgEvent.oldEndPath = endPath;
|
|
78675
|
+
// cgEvent.oldDrawTreeLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
78676
|
+
// hoEditorFactory.docTree.deleteNode(this._positionNode.paragraphNode);
|
|
78677
|
+
// }
|
|
78678
|
+
// else
|
|
78679
|
+
|
|
78680
|
+
|
|
78681
|
+
{
|
|
78682
|
+
if (prevNode && prevNode instanceof _editor_dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_5__/* .ParagraphNode */ .C) {
|
|
78683
|
+
startPath = prevNode.getNodePath();
|
|
78684
|
+
endPath = this._deleteNode.getNodePath();
|
|
78685
|
+
cgEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_7__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daDeleteParagraphBeforeTab */ .gk.daDeleteParagraphBeforeTab, startPath, endPath);
|
|
78686
|
+
cgEvent.oldEndPath = endPath;
|
|
78687
|
+
cgEvent.oldDrawTreeLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_6__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
78688
|
+
this._positionNode.paragraphNode = prevNode;
|
|
78689
|
+
hoEditorFactory.docTree.deleteNode(this._deleteNode);
|
|
78690
|
+
} else {
|
|
78691
|
+
throw new Error('错误的撤销恢复链,无法恢复');
|
|
78692
|
+
}
|
|
78693
|
+
} // hoEditorFactory.docController.deleteRange(new DomRange(this._hoEditorFactoryID, startPath, endPath), true)
|
|
78694
|
+
|
|
78695
|
+
hoEditorFactory.docTree.change(cgEvent);
|
|
78696
|
+
var caretPath = "".concat(this._positionNode.childNodes[0].getNodePath(), "/0");
|
|
78697
|
+
var oldRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
|
|
78698
|
+
var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, caretPath, caretPath);
|
|
78699
|
+
var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__/* .SelectionChangeEvent */ .r(oldRange, newRange);
|
|
78700
|
+
hoEditorFactory.docTree.selectChange(scgEvent);
|
|
78701
|
+
return;
|
|
78702
|
+
}
|
|
78703
|
+
}, {
|
|
78704
|
+
key: "undo",
|
|
78705
|
+
value: function undo() {
|
|
78706
|
+
//上方插入行
|
|
78707
|
+
var hoeditorfacotry = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
78708
|
+
this._positionNode.paragraphNode = this._deleteNode;
|
|
78709
|
+
hoeditorfacotry.docTree.insertNodeBeforeNode(this._positionNode, this._deleteNode);
|
|
78710
|
+
|
|
78711
|
+
var prevNode = this._deleteNode.prevSibling();
|
|
78712
|
+
|
|
78713
|
+
var startPath = '';
|
|
78714
|
+
var endPath = '';
|
|
78715
|
+
var action = _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daInsert */ .gk.daInsert;
|
|
78716
|
+
|
|
78717
|
+
if (prevNode) {
|
|
78718
|
+
startPath = hoeditorfacotry.docTree.getNodeLastPath(prevNode);
|
|
78719
|
+
endPath = this._deleteNode.getNodePath();
|
|
78720
|
+
|
|
78721
|
+
if (prevNode.nodeType == _editor_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .NodeType.ntTable */ .Jq.ntTable) {
|
|
78722
|
+
action = _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daInsertParagraphBetweenTab */ .gk.daInsertParagraphBetweenTab;
|
|
78723
|
+
} else {
|
|
78724
|
+
action = _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daInsertParagraphBeforeTab */ .gk.daInsertParagraphBeforeTab;
|
|
78725
|
+
}
|
|
78726
|
+
} else {
|
|
78727
|
+
startPath = this._deleteNode.getNodePath();
|
|
78728
|
+
endPath = startPath;
|
|
78729
|
+
}
|
|
78730
|
+
|
|
78731
|
+
this._action = action;
|
|
78732
|
+
var cgEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_7__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, action, startPath, endPath);
|
|
78733
|
+
hoeditorfacotry.docTree.change(cgEvent);
|
|
78734
|
+
var oldRange = hoeditorfacotry.docTree.curDomRange.clone();
|
|
78735
|
+
var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath);
|
|
78736
|
+
var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__/* .SelectionChangeEvent */ .r(oldRange, newRange);
|
|
78737
|
+
hoeditorfacotry.docTree.selectChange(scgEvent);
|
|
78738
|
+
}
|
|
78739
|
+
}, {
|
|
78740
|
+
key: "merge",
|
|
78741
|
+
value: function merge(undoUnit) {
|
|
78742
|
+
return false;
|
|
78743
|
+
}
|
|
78744
|
+
}, {
|
|
78745
|
+
key: "actionString",
|
|
78746
|
+
value: function actionString() {
|
|
78747
|
+
return "表格上方删除空行";
|
|
78748
|
+
}
|
|
78749
|
+
}, {
|
|
78750
|
+
key: "opTime",
|
|
78751
|
+
get: function get() {
|
|
78752
|
+
return this._opTime;
|
|
78753
|
+
}
|
|
78754
|
+
}, {
|
|
78755
|
+
key: "affectText",
|
|
78756
|
+
get: function get() {
|
|
78757
|
+
return this._affectText;
|
|
78758
|
+
}
|
|
78759
|
+
}]);
|
|
78760
|
+
|
|
78761
|
+
return TableDeleteParagraphUndoUnit;
|
|
78762
|
+
}();
|
|
78763
|
+
|
|
78764
|
+
/***/ }),
|
|
78765
|
+
|
|
78484
78766
|
/***/ 83588:
|
|
78485
78767
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
78486
78768
|
|
|
@@ -78839,7 +79121,7 @@ var TableInsertParagraphUndoUnit = /*#__PURE__*/function () {
|
|
|
78839
79121
|
|
|
78840
79122
|
|
|
78841
79123
|
hoEditorFactory.docTree.change(cgEvent);
|
|
78842
|
-
var caretPath = "".concat(this._positionNode.childNodes[0], "/0");
|
|
79124
|
+
var caretPath = "".concat(this._positionNode.childNodes[0].getNodePath(), "/0");
|
|
78843
79125
|
var oldRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
|
|
78844
79126
|
var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, caretPath, caretPath);
|
|
78845
79127
|
var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_7__/* .SelectionChangeEvent */ .r(oldRange, newRange);
|
|
@@ -218403,7 +218685,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
218403
218685
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218404
218686
|
var ParagraphNode = __webpack_require__(14208);
|
|
218405
218687
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218406
|
-
/* harmony default export */ var version = ('2.0.
|
|
218688
|
+
/* harmony default export */ var version = ('2.0.101');
|
|
218407
218689
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218408
218690
|
var PoperTipText = __webpack_require__(91831);
|
|
218409
218691
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -221742,7 +222024,7 @@ var es_string_search = __webpack_require__(64765);
|
|
|
221742
222024
|
|
|
221743
222025
|
|
|
221744
222026
|
|
|
221745
|
-
function
|
|
222027
|
+
function XmlBeauty_xmlBeauty(text) {
|
|
221746
222028
|
var ar = text //.replace(/>\s{0,}</g, "><")
|
|
221747
222029
|
.replace(/</g, "~::~<").replace(/xmlns:/g, "~::~xmlns:").replace(/xmlns=/g, "~::~xmlns=").split('~::~');
|
|
221748
222030
|
var len = ar.length;
|
|
@@ -222700,13 +222982,13 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
222700
222982
|
xmlRoot += "</pageSettings>";
|
|
222701
222983
|
xmlRoot += "<styles>";
|
|
222702
222984
|
|
|
222703
|
-
var _styles = this.doc2Json("styles");
|
|
222985
|
+
var _styles = this.doc2Json("styles", "xml", xmlRoot, clearSign);
|
|
222704
222986
|
|
|
222705
222987
|
xmlRoot += x2js.js2xml(_styles);
|
|
222706
222988
|
xmlRoot += "</styles>";
|
|
222707
222989
|
xmlRoot += "<comments>";
|
|
222708
222990
|
|
|
222709
|
-
var _comments = this.doc2Json("comments");
|
|
222991
|
+
var _comments = this.doc2Json("comments", "xml", xmlRoot, clearSign);
|
|
222710
222992
|
|
|
222711
222993
|
xmlRoot += x2js.js2xml(_comments);
|
|
222712
222994
|
xmlRoot += "</comments>";
|
|
@@ -222739,9 +223021,16 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
222739
223021
|
return xmlRoot;
|
|
222740
223022
|
}
|
|
222741
223023
|
|
|
222742
|
-
return
|
|
223024
|
+
return XmlBeauty_xmlBeauty(xmlRoot);
|
|
222743
223025
|
}
|
|
222744
223026
|
}
|
|
223027
|
+
}, {
|
|
223028
|
+
key: "xmlBeauty",
|
|
223029
|
+
value: function xmlBeauty(xml) {
|
|
223030
|
+
var axml = XmlBeauty_xmlBeauty(xml);
|
|
223031
|
+
|
|
223032
|
+
return axml;
|
|
223033
|
+
}
|
|
222745
223034
|
}, {
|
|
222746
223035
|
key: "xml2Doc",
|
|
222747
223036
|
value: function xml2Doc(xml, isClearSign) {
|
|
@@ -222793,6 +223082,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
222793
223082
|
// footerArrays[index][fj] = node;
|
|
222794
223083
|
// }
|
|
222795
223084
|
// }
|
|
223085
|
+
//this.xmlBeauty(xml)
|
|
222796
223086
|
var aobject = this.xml2Object(xml);
|
|
222797
223087
|
|
|
222798
223088
|
if (aobject) {
|
|
@@ -223181,6 +223471,10 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
223181
223471
|
delete textStyleJson["creatorIndex"];
|
|
223182
223472
|
}
|
|
223183
223473
|
|
|
223474
|
+
if (clearSign && textStyle.commentID !== "0" && textStyle.commentID !== undefined) {
|
|
223475
|
+
textStyle.commentID = "0";
|
|
223476
|
+
}
|
|
223477
|
+
|
|
223184
223478
|
if (textStyle.commentID === "0" || textStyle.commentID === undefined || textStyle.commentID === defaultFont.commentID) {
|
|
223185
223479
|
delete textStyleJson["commentID"];
|
|
223186
223480
|
}
|
|
@@ -223240,12 +223534,16 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
223240
223534
|
|
|
223241
223535
|
if (xmlNode === "comments") {
|
|
223242
223536
|
var commentsArr = [];
|
|
223243
|
-
|
|
223244
|
-
|
|
223245
|
-
var
|
|
223246
|
-
|
|
223247
|
-
|
|
223248
|
-
|
|
223537
|
+
|
|
223538
|
+
if (!clearSign) {
|
|
223539
|
+
var comments = hoEditorFactory.drawTree.commentsMap;
|
|
223540
|
+
comments.forEach(function (value) {
|
|
223541
|
+
var commentJson = JSON.parse(JSON.stringify(value, Comment/* Comment.whiteList */.s.whiteList()));
|
|
223542
|
+
commentJson.customProperty = value.customProperty;
|
|
223543
|
+
commentsArr.push(commentJson);
|
|
223544
|
+
});
|
|
223545
|
+
}
|
|
223546
|
+
|
|
223249
223547
|
return {
|
|
223250
223548
|
comment: commentsArr
|
|
223251
223549
|
};
|
|
@@ -223978,6 +224276,9 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
223978
224276
|
}
|
|
223979
224277
|
} else if (temp.nodeType == BaseNode/* NodeType.ntImage */.Jq.ntImage) {
|
|
223980
224278
|
if (temp.imageType == "Image") {
|
|
224279
|
+
// if (temp.imageDataBase64String.substring(0, 5) == "file:") {
|
|
224280
|
+
// return;
|
|
224281
|
+
// }
|
|
223981
224282
|
return ImageNode/* ImageNode.json2Node */.H.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
223982
224283
|
} else if (temp.imageType == "Barcode") {
|
|
223983
224284
|
return BarcodeNode/* BarcodeNode.json2Node */.T.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
@@ -230337,6 +230638,23 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230337
230638
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
230338
230639
|
hoEditorFactory.docController.updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
|
|
230339
230640
|
}
|
|
230641
|
+
/**
|
|
230642
|
+
* 修改空签名
|
|
230643
|
+
* @param node 签名节点
|
|
230644
|
+
* @param name 签名名称
|
|
230645
|
+
* @param attribute 签名属性
|
|
230646
|
+
*/
|
|
230647
|
+
|
|
230648
|
+
}, {
|
|
230649
|
+
key: "updateEmptySignNode",
|
|
230650
|
+
value: function updateEmptySignNode(node, name, attribute, connectChar) {
|
|
230651
|
+
if (node.type !== 0) {
|
|
230652
|
+
return;
|
|
230653
|
+
}
|
|
230654
|
+
|
|
230655
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
230656
|
+
hoEditorFactory.docController.updateEmptySignNode(node, name, attribute, connectChar);
|
|
230657
|
+
}
|
|
230340
230658
|
/**
|
|
230341
230659
|
* 更新签名时间
|
|
230342
230660
|
* @param node 签名节点
|