hoeditor-web 2.0.88 → 2.0.89

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.
@@ -62563,14 +62563,14 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62563
62563
  // const markerLine1 = new createjs.Shape();
62564
62564
  // const markerLine2 = new createjs.Shape();
62565
62565
  // const markerLine3 = new createjs.Shape();
62566
- // const markerLine4 = new createjs.Shape();
62566
+ // const markerLine4 = new createjs.Shape();
62567
62567
  var width = this.dWidth;
62568
62568
  var height = this.dHeight; // markerLine1.name = "markline1";
62569
62569
  // markerLine2.name = "markline2";
62570
62570
  // markerLine3.name = "markline3";
62571
62571
  // markerLine4.name = "markline4";
62572
62572
 
62573
- this._backImg.graphics.beginStroke(color).moveTo(width - 7, height - 0.5).lineTo(width - 0.5, height - 7).moveTo(width - 5, height - 0.5).lineTo(width - 0.5, height - 5).moveTo(width - 3, height - 0.5).lineTo(width - 0.5, height - 3).moveTo(width - 2, height - 0.5).lineTo(width - 0.5, height - 2);
62573
+ this._backImg.graphics.clear().beginStroke(color).moveTo(width - 7, height - 0.5).lineTo(width - 0.5, height - 7).moveTo(width - 5, height - 0.5).lineTo(width - 0.5, height - 5).moveTo(width - 3, height - 0.5).lineTo(width - 0.5, height - 3).moveTo(width - 2, height - 0.5).lineTo(width - 0.5, height - 2);
62574
62574
 
62575
62575
  this._backImg.graphics.endStroke(); // this.addChild(markerLine1);
62576
62576
 
@@ -63588,7 +63588,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
63588
63588
  var colInfo = this._table.colInfos[c];
63589
63589
 
63590
63590
  if (partCell.cell.cellProperty.editorProperty !== 0 || colInfo.colProperty.editorProperty !== 0) {
63591
- partCell.paintMarker("#FB0101");
63591
+ partCell.paintMarker("#FF0000");
63592
63592
  }
63593
63593
 
63594
63594
  var isHasTableFormula = false;
@@ -63611,7 +63611,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
63611
63611
  loopNodes(partCell.cell.childNodes);
63612
63612
 
63613
63613
  if (isHasTableFormula) {
63614
- partCell.paintMarker("#0312FA");
63614
+ partCell.paintMarker("#0000FF");
63615
63615
  }
63616
63616
 
63617
63617
  partCell.paintCellBackground(newHeight, r, c);
@@ -76143,9 +76143,9 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
76143
76143
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
76144
76144
  /* harmony export */ "F": function() { return /* binding */ NodesDeleteUndoUnit; }
76145
76145
  /* harmony export */ });
76146
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86160);
76147
- /* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86769);
76148
- /* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1__);
76146
+ /* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86769);
76147
+ /* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0__);
76148
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86160);
76149
76149
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39873);
76150
76150
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37174);
76151
76151
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35671);
@@ -76276,73 +76276,96 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76276
76276
  }
76277
76277
  }, {
76278
76278
  key: "doUndo",
76279
- value: function doUndo() {
76280
- var arr = Array.from(this._undoNodes).reverse();
76281
- var i = 0;
76282
- var prevIsTable = false;
76283
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
76279
+ value: function () {
76280
+ var _doUndo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee() {
76281
+ var arr, i, prevIsTable, hoEditorFactory, value, np, aendPaht, changeEvent, newRange, cgEvent;
76282
+ return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
76283
+ while (1) {
76284
+ switch (_context.prev = _context.next) {
76285
+ case 0:
76286
+ arr = Array.from(this._undoNodes).reverse();
76287
+ i = 0;
76288
+ prevIsTable = false;
76289
+ hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
76284
76290
 
76285
- while (i < arr.length) {
76286
- var value = arr[i];
76291
+ while (i < arr.length) {
76292
+ value = arr[i];
76287
76293
 
76288
- if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode */ .D) {// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
76289
- } else {
76290
- if (prevIsTable) {
76291
- hoEditorFactory.docTree.insertNodeAfterNode(arr[i - 1][1], arr[i][1]);
76292
- } else {
76293
- hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
76294
- }
76294
+ if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode */ .D) {// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
76295
+ } else {
76296
+ if (prevIsTable) {
76297
+ hoEditorFactory.docTree.insertNodeAfterNode(arr[i - 1][1], arr[i][1]);
76298
+ } else {
76299
+ hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
76300
+ }
76295
76301
 
76296
- if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__/* .TableNode */ .Fh) {
76297
- prevIsTable = true; // value[1].clearDrawNodes();
76298
- // value[1].drawTable.drawPageTables.length = 0;
76302
+ if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__/* .TableNode */ .Fh) {
76303
+ prevIsTable = true; // value[1].clearDrawNodes();
76304
+ // value[1].drawTable.drawPageTables.length = 0;
76299
76305
 
76300
- var np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
76301
- if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
76302
- } else {
76303
- prevIsTable = false;
76304
- }
76305
- }
76306
+ np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
76307
+ if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
76308
+ } else {
76309
+ prevIsTable = false;
76310
+ }
76311
+ }
76306
76312
 
76307
- i += 1;
76308
- }
76313
+ i += 1;
76314
+ }
76309
76315
 
76310
- var aendPaht = hoEditorFactory.docTree.getNodeLastPath(arr[arr.length - 1][1]);
76311
- var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daInsert */ .gk.daInsert, arr[0][0], aendPaht);
76312
- hoEditorFactory.docTree.change(changeEvent); //3.合并拆分节点
76316
+ aendPaht = hoEditorFactory.docTree.getNodeLastPath(arr[arr.length - 1][1]);
76317
+ changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daInsert */ .gk.daInsert, arr[0][0], aendPaht);
76318
+ _context.next = 9;
76319
+ return hoEditorFactory.docTree.change(changeEvent);
76313
76320
 
76314
- while (!this._undo.atBottom()) {
76315
- this._undo.undo();
76316
- } // let startPath = this._startPath;
76317
- // let endPath = this._endPath;
76318
- // if (NodePosition.treePathCompare(this._startPath, this._endPath) > 0) {
76319
- // startPath = this._endPath;
76320
- // endPath = this._startPath;
76321
- // }
76322
- // if (startPath !== "" && endPath !== "") {
76323
- // const arange = new DomRange(
76324
- // this._hoEditorFactoryID,
76325
- // startPath,
76326
- // endPath
76327
- // ).normalize();
76328
- // const changeEvent = new NodeChangeEvent(
76329
- // this._hoEditorFactoryID,
76330
- // DocAction.daInsert,
76331
- // arange.startPath,
76332
- // arange.endPath
76333
- // );
76334
- // hoEditorFactory.docTree.change(changeEvent);
76335
- // }
76336
- //选中范围变化事件
76321
+ case 9:
76322
+ //3.合并拆分节点
76323
+ while (!this._undo.atBottom()) {
76324
+ this._undo.undo();
76325
+ } // let startPath = this._startPath;
76326
+ // let endPath = this._endPath;
76327
+ // if (NodePosition.treePathCompare(this._startPath, this._endPath) > 0) {
76328
+ // startPath = this._endPath;
76329
+ // endPath = this._startPath;
76330
+ // }
76331
+ // if (startPath !== "" && endPath !== "") {
76332
+ // const arange = new DomRange(
76333
+ // this._hoEditorFactoryID,
76334
+ // startPath,
76335
+ // endPath
76336
+ // ).normalize();
76337
+ // const changeEvent = new NodeChangeEvent(
76338
+ // this._hoEditorFactoryID,
76339
+ // DocAction.daInsert,
76340
+ // arange.startPath,
76341
+ // arange.endPath
76342
+ // );
76343
+ // hoEditorFactory.docTree.change(changeEvent);
76344
+ // }
76345
+ //选中范围变化事件
76337
76346
 
76338
76347
 
76339
- var newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
76340
- hoEditorFactory.docTree.curDomRange = newRange;
76341
- var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
76342
- hoEditorFactory.docTree.selectChange(cgEvent); //光标定位
76348
+ newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
76349
+ hoEditorFactory.docTree.curDomRange = newRange;
76350
+ cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
76351
+ hoEditorFactory.docTree.selectChange(cgEvent); //光标定位
76343
76352
 
76344
- hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
76345
- }
76353
+ hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
76354
+
76355
+ case 15:
76356
+ case "end":
76357
+ return _context.stop();
76358
+ }
76359
+ }
76360
+ }, _callee, this);
76361
+ }));
76362
+
76363
+ function doUndo() {
76364
+ return _doUndo.apply(this, arguments);
76365
+ }
76366
+
76367
+ return doUndo;
76368
+ }()
76346
76369
  /**
76347
76370
  * @description 初始化变量,因为有撤销恢复可能需要反复操作,初始化不能放到create里
76348
76371
  */
@@ -76714,14 +76737,14 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76714
76737
  }, {
76715
76738
  key: "doRedo",
76716
76739
  value: function () {
76717
- var _doRedo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)().mark(function _callee() {
76740
+ var _doRedo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee2() {
76718
76741
  var _currRange$npEnd$node;
76719
76742
 
76720
76743
  var currRange, hoEditorFactory, textStyle, nodes, n, node, tip, pnode, pTiNode, _res, changeEvent, startPath, endPath, res, cgEvent, aNode;
76721
76744
 
76722
- return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
76745
+ return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
76723
76746
  while (1) {
76724
- switch (_context.prev = _context.next) {
76747
+ switch (_context2.prev = _context2.next) {
76725
76748
  case 0:
76726
76749
  this.initParam();
76727
76750
  currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
@@ -76729,26 +76752,26 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76729
76752
  hoEditorFactory.docTree.curDomRange = currRange;
76730
76753
 
76731
76754
  if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psReview */ .Dh.psReview)) {
76732
- _context.next = 11;
76755
+ _context2.next = 11;
76733
76756
  break;
76734
76757
  }
76735
76758
 
76736
76759
  if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R)) {
76737
- _context.next = 11;
76760
+ _context2.next = 11;
76738
76761
  break;
76739
76762
  }
76740
76763
 
76741
76764
  textStyle = hoEditorFactory.docTree.styles[currRange.npEnd.node.styleIndex];
76742
76765
 
76743
76766
  if (!(textStyle.strikeout && currRange.npEnd.node.text.length > 0)) {
76744
- _context.next = 11;
76767
+ _context2.next = 11;
76745
76768
  break;
76746
76769
  }
76747
76770
 
76748
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("该内容当前已处于删除状态!");
76771
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("该内容当前已处于删除状态!");
76749
76772
 
76750
76773
  this._isError = true;
76751
- return _context.abrupt("return");
76774
+ return _context2.abrupt("return");
76752
76775
 
76753
76776
  case 11:
76754
76777
  nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
@@ -76763,7 +76786,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76763
76786
  //if(nodes.length == 0) return;
76764
76787
 
76765
76788
  if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
76766
- _context.next = 38;
76789
+ _context2.next = 38;
76767
76790
  break;
76768
76791
  }
76769
76792
 
@@ -76771,21 +76794,21 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76771
76794
 
76772
76795
  case 14:
76773
76796
  if (!(n < nodes.length)) {
76774
- _context.next = 38;
76797
+ _context2.next = 38;
76775
76798
  break;
76776
76799
  }
76777
76800
 
76778
76801
  node = nodes[n];
76779
76802
 
76780
76803
  if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete)) {
76781
- _context.next = 20;
76804
+ _context2.next = 20;
76782
76805
  break;
76783
76806
  }
76784
76807
 
76785
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
76808
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
76786
76809
 
76787
76810
  this._isError = true;
76788
- return _context.abrupt("return");
76811
+ return _context2.abrupt("return");
76789
76812
 
76790
76813
  case 20:
76791
76814
  if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
@@ -76793,12 +76816,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76793
76816
  }
76794
76817
 
76795
76818
  if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
76796
- _context.next = 31;
76819
+ _context2.next = 31;
76797
76820
  break;
76798
76821
  }
76799
76822
 
76800
76823
  if (node.isAllowDelete) {
76801
- _context.next = 31;
76824
+ _context2.next = 31;
76802
76825
  break;
76803
76826
  }
76804
76827
 
@@ -76820,32 +76843,32 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76820
76843
  tip = "下拉列表";
76821
76844
  }
76822
76845
 
76823
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
76846
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
76824
76847
 
76825
76848
  this._isError = true;
76826
- return _context.abrupt("return");
76849
+ return _context2.abrupt("return");
76827
76850
 
76828
76851
  case 31:
76829
76852
  if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
76830
- _context.next = 35;
76853
+ _context2.next = 35;
76831
76854
  break;
76832
76855
  }
76833
76856
 
76834
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("该签名元素不允许删除!", "系统提示");
76857
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("该签名元素不允许删除!", "系统提示");
76835
76858
 
76836
76859
  this._isError = true;
76837
- return _context.abrupt("return");
76860
+ return _context2.abrupt("return");
76838
76861
 
76839
76862
  case 35:
76840
76863
  n++;
76841
- _context.next = 14;
76864
+ _context2.next = 14;
76842
76865
  break;
76843
76866
 
76844
76867
  case 38:
76845
76868
  pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
76846
76869
 
76847
76870
  if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
76848
- _context.next = 44;
76871
+ _context2.next = 44;
76849
76872
  break;
76850
76873
  }
76851
76874
 
@@ -76858,18 +76881,18 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76858
76881
  });
76859
76882
 
76860
76883
  if (_res[0]) {
76861
- _context.next = 44;
76884
+ _context2.next = 44;
76862
76885
  break;
76863
76886
  }
76864
76887
 
76865
- return _context.abrupt("return");
76888
+ return _context2.abrupt("return");
76866
76889
 
76867
76890
  case 44:
76868
76891
  changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
76869
76892
  // hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
76870
76893
 
76871
76894
  if (currRange.npStart.node && currRange.npEnd.node) {
76872
- _context.next = 47;
76895
+ _context2.next = 47;
76873
76896
  break;
76874
76897
  }
76875
76898
 
@@ -76888,13 +76911,13 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76888
76911
  res = this.deleteRange(currRange.endPath, currRange.startPath);
76889
76912
 
76890
76913
  if (!(res == 1)) {
76891
- _context.next = 59;
76914
+ _context2.next = 59;
76892
76915
  break;
76893
76916
  }
76894
76917
 
76895
76918
  changeEvent.beforeChangePath = startPath;
76896
76919
  changeEvent.afterChangePath = this._tmp.start;
76897
- _context.next = 57;
76920
+ _context2.next = 57;
76898
76921
  return hoEditorFactory.docTree.change(changeEvent);
76899
76922
 
76900
76923
  case 57:
@@ -76907,19 +76930,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76907
76930
  aNode = currRange.npStart.node;
76908
76931
 
76909
76932
  if (!(aNode && pnode)) {
76910
- _context.next = 65;
76933
+ _context2.next = 65;
76911
76934
  break;
76912
76935
  }
76913
76936
 
76914
- _context.next = 65;
76937
+ _context2.next = 65;
76915
76938
  return this.ParentRepaint(pnode);
76916
76939
 
76917
76940
  case 65:
76918
76941
  case "end":
76919
- return _context.stop();
76942
+ return _context2.stop();
76920
76943
  }
76921
76944
  }
76922
- }, _callee, this);
76945
+ }, _callee2, this);
76923
76946
  }));
76924
76947
 
76925
76948
  function doRedo() {
@@ -213912,9 +213935,9 @@ var es_string_match = __webpack_require__(4723);
213912
213935
  var es_number_constructor = __webpack_require__(9653);
213913
213936
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
213914
213937
  var es_json_stringify = __webpack_require__(38862);
213915
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=90f26168&
213916
- var HoDocvue_type_template_id_90f26168_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.currentNode && _vm.currentNode.customProperty && _vm.currentNode.signFormat )?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本:   "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
213917
- var HoDocvue_type_template_id_90f26168_staticRenderFns = []
213938
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=f01421b2&
213939
+ var HoDocvue_type_template_id_f01421b2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.currentNode && _vm.currentNode.customProperty && _vm.currentNode.signFormat )?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本:   "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
213940
+ var HoDocvue_type_template_id_f01421b2_staticRenderFns = []
213918
213941
 
213919
213942
 
213920
213943
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/message-box.js
@@ -214802,7 +214825,13 @@ var DrawDomLevel = /*#__PURE__*/function () {
214802
214825
  hoeditorfactory.subDocManger.paintSubDoc(dPage.pageIndex, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
214803
214826
  hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawFooter, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
214804
214827
 
214805
- var keys = (0,toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort();
214828
+ var keys = (0,toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort(function (a, b) {
214829
+ if (a > b) {
214830
+ return 1;
214831
+ } else {
214832
+ return -1;
214833
+ }
214834
+ });
214806
214835
 
214807
214836
  if (keys.length > 0) {
214808
214837
  for (var index = keys[0]; index <= keys[keys.length - 1]; index++) {
@@ -217552,7 +217581,7 @@ var SignNode = __webpack_require__(34450);
217552
217581
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
217553
217582
  var ParagraphNode = __webpack_require__(14208);
217554
217583
  ;// CONCATENATED MODULE: ./src/components/version.ts
217555
- /* harmony default export */ var version = ('2.0.88');
217584
+ /* harmony default export */ var version = ('2.0.89');
217556
217585
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
217557
217586
  var PoperTipText = __webpack_require__(91831);
217558
217587
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -217875,20 +217904,23 @@ var ImageNode = __webpack_require__(88389);
217875
217904
  },
217876
217905
  methods: {
217877
217906
  deleteSignNode: function deleteSignNode() {
217878
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
217879
- var signUserId = this.currentNode.customProperty.bce01 || '';
217907
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId); // const signUserId = this.currentNode.customProperty.bce01 || '';
217908
+ // if (hoEditorFactory.userInfo.id != signUserId) {
217909
+ // MessageBox.alert("不是本人签名,不允许删除!");
217910
+ // this.eleNode = null;
217911
+ // this.currentNode = null;
217912
+ // this.isCreateRightMenuModal = false;
217913
+ // return;
217914
+ // }
217880
217915
 
217881
- if (hoEditorFactory.userInfo.id != signUserId) {
217882
- message_box_default().alert("不是本人签名,不允许删除!");
217916
+ if (!this.currentNode instanceof SignNode/* SignNode */.N) {
217917
+ message_box_default().alert("请右键签名元素进行删除");
217883
217918
 
217884
- this.eleNode = null;
217885
- this.currentNode = null;
217886
- this.isCreateRightMenuModal = false;
217887
217919
  return;
217888
- } // hoEditorFactory.elementController.deleteNode(this.eleNode.node());
217920
+ }
217889
217921
 
217922
+ hoEditorFactory.elementController.deleteNode(this.currentNode); // hoEditorFactory.vueController.forceDelete();
217890
217923
 
217891
- hoEditorFactory.vueController.forceDelete();
217892
217924
  this.eleNode = null;
217893
217925
  this.currentNode = null;
217894
217926
  this.isCreateRightMenuModal = false;
@@ -218332,8 +218364,8 @@ var ImageNode = __webpack_require__(88389);
218332
218364
 
218333
218365
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
218334
218366
  components_HoDocvue_type_script_lang_js_,
218335
- HoDocvue_type_template_id_90f26168_render,
218336
- HoDocvue_type_template_id_90f26168_staticRenderFns,
218367
+ HoDocvue_type_template_id_f01421b2_render,
218368
+ HoDocvue_type_template_id_f01421b2_staticRenderFns,
218337
218369
  false,
218338
218370
  null,
218339
218371
  null,
@@ -219633,16 +219665,15 @@ var DrawPageTree = /*#__PURE__*/function () {
219633
219665
  }
219634
219666
 
219635
219667
  for (var j = 0; j < hoEditorFactory.drawTree.inViewPages.length; j++) {
219636
- var _dPage = hoEditorFactory.drawTree.drawPages[hoEditorFactory.drawTree.inViewPages[j]];
219637
-
219638
- if (_dPage.drawDomLevel && !_dPage.drawDomLevel.stage) {
219639
- _dPage.drawDomLevel.bindStage();
219668
+ var aPage = hoEditorFactory.drawTree.drawPages[hoEditorFactory.drawTree.inViewPages[j]];
219640
219669
 
219641
- this.updateDrawPage(_dPage.pageIndex);
219670
+ if (aPage.drawDomLevel && !aPage.drawDomLevel.stage) {
219671
+ aPage.drawDomLevel.bindStage();
219672
+ this.updateDrawPage(aPage.pageIndex);
219642
219673
  }
219643
219674
 
219644
- if (_dPage.drawSelectLevel && !_dPage.drawSelectLevel.stage) {
219645
- _dPage.drawSelectLevel.bindStage();
219675
+ if (aPage.drawSelectLevel && !aPage.drawSelectLevel.stage) {
219676
+ aPage.drawSelectLevel.bindStage();
219646
219677
  }
219647
219678
  }
219648
219679
  }