hoeditor-web 3.1.49 → 3.1.50

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.
@@ -53518,7 +53518,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
53518
53518
  /*
53519
53519
  * @Author: your name
53520
53520
  * @Date: 2020-11-18 11:43:06
53521
- * @LastEditTime: 2023-09-14 11:16:12
53521
+ * @LastEditTime: 2024-01-04 14:15:40
53522
53522
  * @LastEditors: liyanan 2441631434@qq.com
53523
53523
  * @Description: In User Settings Edit
53524
53524
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\ControlNode.ts
@@ -53850,11 +53850,11 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
53850
53850
  tip = "下拉列表";
53851
53851
  }
53852
53852
  if (nodeType === "LabelNode") {
53853
- ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn("不允许删除标签文本。请先右键转化为普通文本再进行删除操作。");
53853
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn("不允许删除标签文本。");
53854
53854
  return false;
53855
53855
  }
53856
53856
  if (nodeType) {
53857
- ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。");
53857
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn(tip + "元素已设置为不允许删除。");
53858
53858
  } else {
53859
53859
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(ControlNode.prototype), "delete", this).call(this);
53860
53860
  }
@@ -66660,7 +66660,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
66660
66660
  /*
66661
66661
  * @Author: your name
66662
66662
  * @Date: 2020-11-03 15:17:54
66663
- * @LastEditTime: 2023-12-11 17:03:02
66663
+ * @LastEditTime: 2024-01-04 14:14:28
66664
66664
  * @LastEditors: liyanan 2441631434@qq.com
66665
66665
  * @Description: In User Settings Edit
66666
66666
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -68250,7 +68250,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
68250
68250
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
68251
68251
  } else {
68252
68252
  if (operType !== 'update') {
68253
- ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_61__/* ["default"] */ .Z.warn('文本域已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。');
68253
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_61__/* ["default"] */ .Z.warn('文本域已设置为不允许删除。');
68254
68254
  } else {
68255
68255
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
68256
68256
  }
@@ -69038,15 +69038,6 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
69038
69038
  behindText = temp.text.substring(eIndex + 17, temp.text.length);
69039
69039
  }
69040
69040
  getChildTextNodes(behindText);
69041
- // const textNode2 = new TextNode(
69042
- // hoEditorFactoryID,
69043
- // rootNodes,
69044
- // temp,
69045
- // NodeType.ntText,
69046
- // behindText,
69047
- // styleIndex
69048
- // );
69049
- // temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode2);
69050
69041
  }
69051
69042
  }
69052
69043
  }
@@ -76642,6 +76633,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
76642
76633
  }, {
76643
76634
  key: "paintCellBorders",
76644
76635
  value: function paintCellBorders(newHeight, r, c) {
76636
+ var _this2 = this;
76645
76637
  if (!this._cell.cellProperty.isDrawGridlines) {
76646
76638
  this._cell.cellProperty.gridLineDisplay = [false, false, false, false];
76647
76639
  }
@@ -76689,15 +76681,23 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
76689
76681
  }
76690
76682
  } else {
76691
76683
  if (r > 0) {
76692
- var _topCell = this._cell.table.getMainCell(r - 1, c)[0];
76693
- var drawPageCells = _topCell.drawCell.drawPageCells;
76694
- if (drawPageCells.length > 0) {
76695
- for (var i = 0; i < drawPageCells[drawPageCells.length - 1].children.length; i++) {
76696
- var child = drawPageCells[drawPageCells.length - 1].children[i];
76697
- if (child.name == "bottomLine") {
76698
- drawPageCells[drawPageCells.length - 1].children.splice(i, 1);
76684
+ var removeLine = function removeLine(row, col) {
76685
+ var topCell = _this2._cell.table.getMainCell(row, col)[0];
76686
+ var drawPageCells = topCell.drawCell.drawPageCells;
76687
+ if (drawPageCells.length > 0) {
76688
+ for (var i = 0; i < drawPageCells[drawPageCells.length - 1].children.length; i++) {
76689
+ var child = drawPageCells[drawPageCells.length - 1].children[i];
76690
+ if (child.name == "bottomLine") {
76691
+ drawPageCells[drawPageCells.length - 1].children.splice(i, 1);
76692
+ }
76699
76693
  }
76700
76694
  }
76695
+ };
76696
+ removeLine(r - 1, c);
76697
+ if (this._cell.colSpan > 1) {
76698
+ for (var j = 1; j < this._cell.colSpan; j++) {
76699
+ removeLine(r - 1, c + j);
76700
+ }
76701
76701
  }
76702
76702
  }
76703
76703
  }
@@ -76717,15 +76717,23 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
76717
76717
  }
76718
76718
  } else {
76719
76719
  if (r < this.cell.table.rowCount - 1) {
76720
- var bottomCell = this._cell.table.getMainCell(r + 1, c)[0];
76721
- var _drawPageCells = bottomCell.drawCell.drawPageCells;
76722
- if (_drawPageCells.length > 0) {
76723
- for (var _i = 0; _i < _drawPageCells[0].children.length; _i++) {
76724
- var _child = _drawPageCells[0].children[_i];
76725
- if (_child.name == "topLine") {
76726
- _drawPageCells[0].children.splice(_i, 1);
76720
+ var _removeLine = function _removeLine(row, col) {
76721
+ var bottomCell = _this2._cell.table.getMainCell(row, col)[0];
76722
+ var drawPageCells = bottomCell.drawCell.drawPageCells;
76723
+ if (drawPageCells.length > 0) {
76724
+ for (var i = 0; i < drawPageCells[0].children.length; i++) {
76725
+ var child = drawPageCells[0].children[i];
76726
+ if (child.name == "topLine") {
76727
+ drawPageCells[0].children.splice(i, 1);
76728
+ }
76727
76729
  }
76728
76730
  }
76731
+ };
76732
+ _removeLine(r + 1, c);
76733
+ if (this._cell.colSpan > 1) {
76734
+ for (var _j = 1; _j < this._cell.colSpan; _j++) {
76735
+ _removeLine(r + 1, c + _j);
76736
+ }
76729
76737
  }
76730
76738
  }
76731
76739
  }
@@ -76751,18 +76759,26 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
76751
76759
  }
76752
76760
  } else {
76753
76761
  if (c > 0) {
76754
- var _leftCell = this._cell.table.getMainCell(r, c - 1)[0];
76755
- var _drawPageCells2 = _leftCell.drawCell.drawPageCells;
76756
- if (_drawPageCells2.length > 0) {
76757
- for (var _i2 = 0; _i2 < _drawPageCells2.length; _i2++) {
76758
- var children = _drawPageCells2[_i2].children;
76759
- for (var j = 0; j < children.length; j++) {
76760
- var _child2 = children[j];
76761
- if (_child2.name == "rightLine") {
76762
- children.splice(j, 1);
76762
+ var _removeLine2 = function _removeLine2(row, col) {
76763
+ var leftCell = _this2._cell.table.getMainCell(row, col)[0];
76764
+ var drawPageCells = leftCell.drawCell.drawPageCells;
76765
+ if (drawPageCells.length > 0) {
76766
+ for (var i = 0; i < drawPageCells.length; i++) {
76767
+ var children = drawPageCells[i].children;
76768
+ for (var _j2 = 0; _j2 < children.length; _j2++) {
76769
+ var child = children[_j2];
76770
+ if (child.name == "rightLine") {
76771
+ children.splice(_j2, 1);
76772
+ }
76763
76773
  }
76764
76774
  }
76765
76775
  }
76776
+ };
76777
+ _removeLine2(r, c - 1);
76778
+ if (this._cell.rowSpan > 1) {
76779
+ for (var _j3 = 1; _j3 < this._cell.rowSpan; _j3++) {
76780
+ _removeLine2(r + _j3, c - 1);
76781
+ }
76766
76782
  }
76767
76783
  }
76768
76784
  }
@@ -76782,18 +76798,26 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
76782
76798
  }
76783
76799
  } else {
76784
76800
  if (c < this.cell.table.colCount - 1) {
76785
- var rightCell = this._cell.table.getMainCell(r, c + 1)[0];
76786
- var _drawPageCells3 = rightCell.drawCell.drawPageCells;
76787
- if (_drawPageCells3.length > 0) {
76788
- for (var _i3 = 0; _i3 < _drawPageCells3.length; _i3++) {
76789
- var _children = _drawPageCells3[_i3].children;
76790
- for (var _j = 0; _j < _children.length; _j++) {
76791
- var _child3 = _children[_j];
76792
- if (_child3.name == "leftLine") {
76793
- _children.splice(_j, 1);
76801
+ var _removeLine3 = function _removeLine3(row, col) {
76802
+ var rightCell = _this2._cell.table.getMainCell(row, col)[0];
76803
+ var drawPageCells = rightCell.drawCell.drawPageCells;
76804
+ if (drawPageCells.length > 0) {
76805
+ for (var i = 0; i < drawPageCells.length; i++) {
76806
+ var children = drawPageCells[i].children;
76807
+ for (var _j4 = 0; _j4 < children.length; _j4++) {
76808
+ var child = children[_j4];
76809
+ if (child.name == "leftLine") {
76810
+ children.splice(_j4, 1);
76811
+ }
76794
76812
  }
76795
76813
  }
76796
76814
  }
76815
+ };
76816
+ _removeLine3(r, c + 1);
76817
+ if (this._cell.rowSpan > 1) {
76818
+ for (var _j5 = 1; _j5 < this._cell.rowSpan; _j5++) {
76819
+ _removeLine3(r + _j5, c + 1);
76820
+ }
76797
76821
  }
76798
76822
  }
76799
76823
  }
@@ -76921,8 +76945,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
76921
76945
  var pageTableIndex = this._cell.table.drawTable.drawPageTables.indexOf(dPageCell._drawPageTable);
76922
76946
  var pageCellIndex = this._cell.drawCell.drawPageCells.length - 1;
76923
76947
  var cellrestHeight = rowHeightArr[pageTableIndex][0];
76924
- for (var _i4 = childCount - 1; _i4 >= 0; _i4--) {
76925
- var dObj = this._cell.drawCell.drawLines[_i4];
76948
+ for (var _i = childCount - 1; _i >= 0; _i--) {
76949
+ var dObj = this._cell.drawCell.drawLines[_i];
76926
76950
  if (dObj instanceof DrawLine/* DrawLine */.a || dObj instanceof DrawPageTable/* DrawPageTable */.ox) {
76927
76951
  while (pageCellIndex > 0 && cellrestHeight < dObj.dHeight) {
76928
76952
  pageCellIndex -= 1;
@@ -76971,13 +76995,14 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
76971
76995
  if (this._cell.cellProperty.align === TableProperty/* VAlign */.TR.vatop) {
76972
76996
  valignTop = innerTop;
76973
76997
  } else if (this._cell.cellProperty.align === TableProperty/* VAlign */.TR.vacenter) {
76998
+ //2024-01-02改
76974
76999
  var _this$calcCellHeight = this.calcCellHeight(restHeight);
76975
77000
  var _this$calcCellHeight2 = (0,slicedToArray/* default */.Z)(_this$calcCellHeight, 3);
76976
77001
  drawTreeHeight = _this$calcCellHeight2[0];
76977
77002
  pageHeight = _this$calcCellHeight2[1];
76978
77003
  toparr = _this$calcCellHeight2[2];
76979
- if (pageHeight > this._cell.drawCell.docHeight && this.dHeight - this._cell.drawCell.docHeight > hoeditorFactory.defaultLineHeight) {
76980
- valignTop = (pageHeight - this._cell.drawCell.docHeight) / 2;
77004
+ if (pageHeight > this._cell.drawCell.docHeight && this.dHeight - this._cell.drawCell.docHeight > 2) {
77005
+ valignTop = (pageHeight - (this._cell.drawCell.docHeight + 2)) / 2;
76981
77006
  }
76982
77007
  } else if (this._cell.cellProperty.align === TableProperty/* VAlign */.TR.vabottom) {
76983
77008
  var _this$calcCellHeight3 = this.calcCellHeight(restHeight);
@@ -90678,28 +90703,28 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
90678
90703
  /* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(32629);
90679
90704
  /* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(27198);
90680
90705
  /* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(2613);
90681
- /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(51760);
90682
- /* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(94639);
90683
- /* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(59057);
90684
- /* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(931);
90685
- /* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(19229);
90686
- /* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(90161);
90687
- /* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(57727);
90688
- /* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(8277);
90689
- /* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(67945);
90690
- /* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(68598);
90691
- /* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(53901);
90692
- /* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(5010);
90693
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(74089);
90694
- /* harmony import */ var _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(91105);
90695
- /* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(99152);
90696
- /* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(92501);
90697
- /* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(45712);
90698
- /* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(64465);
90699
- /* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(24701);
90700
- /* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(42921);
90701
- /* harmony import */ var _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(90832);
90702
- /* harmony import */ var _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(34910);
90706
+ /* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(94639);
90707
+ /* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(59057);
90708
+ /* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(931);
90709
+ /* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(19229);
90710
+ /* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(90161);
90711
+ /* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(57727);
90712
+ /* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(8277);
90713
+ /* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(67945);
90714
+ /* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(68598);
90715
+ /* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(53901);
90716
+ /* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(5010);
90717
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(74089);
90718
+ /* harmony import */ var _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(91105);
90719
+ /* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(99152);
90720
+ /* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(92501);
90721
+ /* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(45712);
90722
+ /* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(64465);
90723
+ /* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(24701);
90724
+ /* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(42921);
90725
+ /* harmony import */ var _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(90832);
90726
+ /* harmony import */ var _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(34910);
90727
+ /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(51760);
90703
90728
 
90704
90729
 
90705
90730
 
@@ -90775,16 +90800,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
90775
90800
  this._startPath = startPath;
90776
90801
  this._endPath = endPath;
90777
90802
  this._isForceDelete = isForceDelete;
90778
- this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_24__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
90803
+ this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_23__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
90779
90804
  this._undoNodes = new Map();
90780
- var aDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a(hoEditorFactoryID, startPath, endPath).normalize();
90805
+ var aDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(hoEditorFactoryID, startPath, endPath).normalize();
90781
90806
  var _aDomRange$inSameTabl = aDomRange.inSameTable(),
90782
90807
  _aDomRange$inSameTabl2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_aDomRange$inSameTabl, 2),
90783
90808
  bSametable = _aDomRange$inSameTabl2[0],
90784
90809
  aTable = _aDomRange$inSameTabl2[1];
90785
90810
  this._bSameTable = bSametable;
90786
90811
  this._opTime = new Date();
90787
- this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
90812
+ this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
90788
90813
  }
90789
90814
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
90790
90815
  key: "undo",
@@ -90803,10 +90828,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
90803
90828
  arr = Array.from(this._undoNodes).reverse();
90804
90829
  i = 0;
90805
90830
  prevIsTable = false;
90806
- hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
90831
+ hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
90807
90832
  while (i < arr.length) {
90808
90833
  value = arr[i];
90809
- if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_29__/* .CellNode */ .D) {
90834
+ if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_28__/* .CellNode */ .D) {
90810
90835
  // (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
90811
90836
  } else {
90812
90837
  if (prevIsTable) {
@@ -90814,12 +90839,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
90814
90839
  } else {
90815
90840
  hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
90816
90841
  }
90817
- if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__/* .TableNode */ .Fh) {
90842
+ if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_30__/* .TableNode */ .Fh) {
90818
90843
  prevIsTable = true;
90819
90844
  // value[1].clearDrawNodes();
90820
90845
  // value[1].drawTable.drawPageTables.length = 0;
90821
90846
  np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
90822
- if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_28__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
90847
+ if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_27__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
90823
90848
  } else {
90824
90849
  prevIsTable = false;
90825
90850
  }
@@ -90856,9 +90881,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
90856
90881
  // hoEditorFactory.docTree.change(changeEvent);
90857
90882
  // }
90858
90883
  //选中范围变化事件
90859
- newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
90884
+ newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
90860
90885
  hoEditorFactory.docTree.curDomRange = newRange;
90861
- cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_23__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
90886
+ cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_22__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
90862
90887
  hoEditorFactory.docTree.selectChange(cgEvent);
90863
90888
  //光标定位
90864
90889
  hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
@@ -90885,7 +90910,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
90885
90910
  }, {
90886
90911
  key: "MoveCaret",
90887
90912
  value: function MoveCaret(path) {
90888
- _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.moveCaretToPath(path);
90913
+ _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.moveCaretToPath(path);
90889
90914
  }
90890
90915
  /**
90891
90916
  * @description 返回前面一个node的开始结束选中范围 文本节点时候返回文本中单个文字的选中范围
@@ -90895,24 +90920,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
90895
90920
  key: "getPrevNodeDomRange",
90896
90921
  value: function getPrevNodeDomRange(Anode) {
90897
90922
  var spath;
90898
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
90923
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
90899
90924
  var prev = Anode.prevSibling();
90900
90925
  if (!prev) {
90901
- throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
90926
+ throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
90902
90927
  }
90903
90928
  var epath = hoEditorFactory.docTree.getNodeLastPath(prev);
90904
90929
  if (prev instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R) {
90905
90930
  spath = prev.prevPath(epath);
90906
- } else if (prev instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_28__/* .ParagraphNode */ .C) {
90931
+ } else if (prev instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_27__/* .ParagraphNode */ .C) {
90907
90932
  spath = epath;
90908
90933
  } else {
90909
90934
  var prev1 = prev.previousLeaf();
90910
90935
  if (!prev1) {
90911
- throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
90936
+ throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
90912
90937
  }
90913
90938
  spath = hoEditorFactory.docTree.getNodeLastPath(prev1);
90914
90939
  }
90915
- return new _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
90940
+ return new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
90916
90941
  }
90917
90942
  /**
90918
90943
  *
@@ -90925,20 +90950,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
90925
90950
  }, {
90926
90951
  key: "deleteRange",
90927
90952
  value: function deleteRange(endpath, startpath) {
90928
- var currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a(this._hoEditorFactoryID, startpath, endpath).normalize();
90953
+ var currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, startpath, endpath).normalize();
90929
90954
  //拆分更新节点,更新删除范围 this._tmp
90930
90955
  if (!this.spliteNode(currRange)) {
90931
90956
  return 0;
90932
90957
  }
90933
- var newDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
90934
- if (!newDomRange.npStart.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
90935
- if (!newDomRange.npEnd.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
90958
+ var newDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
90959
+ if (!newDomRange.npStart.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
90960
+ if (!newDomRange.npEnd.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
90936
90961
  var aStart = newDomRange.npStart.node;
90937
90962
  if (currRange.startMainNode) {
90938
90963
  aStart = currRange.startMainNode;
90939
90964
  }
90940
- var nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
90941
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
90965
+ var nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
90966
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
90942
90967
  // this.DeleteBaseCombineNodeContent(
90943
90968
  // newDomRange,
90944
90969
  // newDomRange.npEnd.node,
@@ -91066,24 +91091,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91066
91091
  *
91067
91092
  * @param Anode
91068
91093
  */
91069
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
91094
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
91070
91095
  var forMarkNode = function forMarkNode(Anode) {
91071
- if (Anode.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re) {
91096
+ if (Anode.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re) {
91072
91097
  var pTINode = Anode.parentNode;
91073
91098
  if (pTINode.isEmpty() || !pTINode.canModifyContent) {
91074
91099
  //为空 或者 不允许编辑
91075
91100
  var tmp = pTINode.previousLeaf();
91076
91101
  if (!tmp) {
91077
- throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
91102
+ throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
91078
91103
  }
91079
91104
  info[0] = 0;
91080
- info[1] = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a(_this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeLastPath(tmp), hoEditorFactory.docTree.getNodeLastPath(pTINode));
91105
+ info[1] = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(_this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeLastPath(tmp), hoEditorFactory.docTree.getNodeLastPath(pTINode));
91081
91106
  } else {
91082
91107
  if (Anode == pTINode.last()) {
91083
91108
  //递归调用删除
91084
91109
  var _tmp = _this.getPrevNodeDomRange(Anode);
91085
91110
  //1.移动光标
91086
- hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a(_this._hoEditorFactoryID, _tmp.endPath, _tmp.endPath);
91111
+ hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(_this._hoEditorFactoryID, _tmp.endPath, _tmp.endPath);
91087
91112
  // this.MoveCaret(tmp.endPath);
91088
91113
  //2.删除内容
91089
91114
  info[0] = 1;
@@ -91091,7 +91116,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91091
91116
  } else if (Anode == pTINode.first()) {
91092
91117
  //移动光标到文本域外
91093
91118
  var _tmp2 = _this.getPrevNodeDomRange(Anode);
91094
- hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a(_this._hoEditorFactoryID, _tmp2.endPath, _tmp2.endPath);
91119
+ hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(_this._hoEditorFactoryID, _tmp2.endPath, _tmp2.endPath);
91095
91120
  // this.MoveCaret(tmp.endPath);
91096
91121
  info[0] = 2;
91097
91122
  info[1] = _tmp2;
@@ -91100,20 +91125,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91100
91125
  }
91101
91126
  };
91102
91127
  if (!(s && e)) {
91103
- throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
91128
+ throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
91104
91129
  }
91105
91130
  this._tmp.start = Arange.startPath;
91106
91131
  this._tmp.end = Arange.endPath;
91107
91132
  var spnode = s.parentNode;
91108
91133
  var epnode = e.parentNode;
91109
91134
  var pnode = epnode;
91110
- if (spnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && epnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && spnode != epnode) {
91111
- var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_39__/* .NodePosition */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
91135
+ if (spnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && epnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && spnode != epnode) {
91136
+ var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_38__/* .NodePosition */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
91112
91137
  if (result < 0) {
91113
91138
  pnode = spnode;
91114
91139
  }
91115
91140
  }
91116
- if (this._isForceDelete && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && pnode.inputFieldType === 1 && (_pnode$downListProper = pnode.downListProperty.listItems) !== null && _pnode$downListProper !== void 0 && _pnode$downListProper.includes("<元素>")) {
91141
+ if (this._isForceDelete && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && pnode.inputFieldType === 1 && (_pnode$downListProper = pnode.downListProperty.listItems) !== null && _pnode$downListProper !== void 0 && _pnode$downListProper.includes("<元素>")) {
91117
91142
  this._tmp.start = pnode.StartMarkNode.getNodePath();
91118
91143
  this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(pnode.EndMarkNode.previousLeaf());
91119
91144
  return true;
@@ -91121,12 +91146,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91121
91146
  if (s === e) {
91122
91147
  if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R) {
91123
91148
  // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange = Arange;
91124
- var tmp = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_22__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange);
91149
+ var tmp = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_21__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange);
91125
91150
  this._undo.begin();
91126
91151
  this._undo.add(tmp);
91127
91152
  this._undo.commit();
91128
91153
  this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(tmp.theNode);
91129
- } else if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j) {
91154
+ } else if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j) {
91130
91155
  forMarkNode(s);
91131
91156
  if (info[0] == 0 && info[1]) {
91132
91157
  this._tmp.start = info[1].startPath;
@@ -91142,24 +91167,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91142
91167
  } else {
91143
91168
  var _tmp3 = null;
91144
91169
  if (e instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R && Arange.npEnd.childIndex >= 0 && Arange.npEnd.childIndex < e.getLength() - 1) {
91145
- _tmp3 = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_22__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.endPath, e, Arange);
91170
+ _tmp3 = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_21__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.endPath, e, Arange);
91146
91171
  this._undo.begin();
91147
91172
  this._undo.add(_tmp3);
91148
91173
  this._undo.commit();
91149
91174
  }
91150
91175
  if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R && Arange.npStart.childIndex >= 0 && Arange.npStart.childIndex < s.getLength() - 1) {
91151
91176
  this._undo.begin();
91152
- this._undo.add(new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_22__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange));
91177
+ this._undo.add(new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_21__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange));
91153
91178
  this._undo.commit();
91154
91179
  }
91155
- if (e instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j) {
91180
+ if (e instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j) {
91156
91181
  forMarkNode(e);
91157
91182
  if (info[0] == 0 && info[1]) {
91158
91183
  this._tmp.end = info[1].endPath;
91159
91184
  // return this.spliteNode(new DomRange(this._tmp.start, this._tmp.end));
91160
91185
  } else if ((info[0] == 1 || info[0] == 2) && info[1]) {
91161
91186
  this._tmp.end = info[1].endPath;
91162
- return this.spliteNode(new _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end));
91187
+ return this.spliteNode(new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end));
91163
91188
  }
91164
91189
  }
91165
91190
  if (_tmp3) {
@@ -91173,14 +91198,14 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91173
91198
  }, {
91174
91199
  key: "ParentRepaint",
91175
91200
  value: function ParentRepaint(Anode) {
91176
- if (Anode && Anode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re) {
91177
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
91201
+ if (Anode && Anode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re) {
91202
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
91178
91203
  if (Anode.childNodes.length === 2) {
91179
91204
  var contentMarkNode = Anode.childNodes2[1];
91180
91205
  contentMarkNode.styleIndex = Anode.childNodes[0].styleIndex;
91181
91206
  var insertPath = hoEditorFactory.docTree.getNodeLastPath(Anode.childNodes[0]);
91182
91207
  hoEditorFactory.undoService.begin();
91183
- hoEditorFactory.undoService.add(new _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, insertPath, contentMarkNode));
91208
+ hoEditorFactory.undoService.add(new _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, insertPath, contentMarkNode));
91184
91209
  hoEditorFactory.undoService.commit();
91185
91210
  }
91186
91211
  Anode.update();
@@ -91202,10 +91227,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91202
91227
  while (1) switch (_context2.prev = _context2.next) {
91203
91228
  case 0:
91204
91229
  this.initParam();
91205
- currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
91206
- hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
91230
+ currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
91231
+ hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
91207
91232
  hoEditorFactory.docTree.curDomRange = currRange;
91208
- if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psReview)) {
91233
+ if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_41__/* .PaintState */ .Dh.psReview)) {
91209
91234
  _context2.next = 11;
91210
91235
  break;
91211
91236
  }
@@ -91222,7 +91247,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91222
91247
  this._isError = true;
91223
91248
  return _context2.abrupt("return");
91224
91249
  case 11:
91225
- nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
91250
+ nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
91226
91251
  // if (npFirst && npFirst.node) {
91227
91252
  // //const parentNode = hoEditorFactory.docTree.getParentNode(this._startPath);
91228
91253
  // //if (parentNode) {
@@ -91232,12 +91257,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91232
91257
  // //}
91233
91258
  // }
91234
91259
  //if(nodes.length == 0) return;
91235
- if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psDesign && !this._isForceDelete)) {
91236
- _context2.next = 61;
91260
+ if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_41__/* .PaintState */ .Dh.psDesign && !this._isForceDelete)) {
91261
+ _context2.next = 68;
91237
91262
  break;
91238
91263
  }
91239
91264
  lastNode = nodes[nodes.length - 1];
91240
- if (!(lastNode instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && lastNode.MarkNodeType === 0)) {
91265
+ if (!(lastNode instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j && lastNode.MarkNodeType === 0)) {
91241
91266
  _context2.next = 22;
91242
91267
  break;
91243
91268
  }
@@ -91251,15 +91276,30 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91251
91276
  hoEditorFactory.docTree.curDomRange.endPath = ePath;
91252
91277
  nodes.splice(nodes.length - 1, 1);
91253
91278
  case 22:
91254
- if (nodes.length === 2 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && nodes[0].MarkNodeType === 0) {
91279
+ if (!(nodes.length === 1 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j && nodes[0].MarkNodeType === 2)) {
91280
+ _context2.next = 24;
91281
+ break;
91282
+ }
91283
+ return _context2.abrupt("return");
91284
+ case 24:
91285
+ if (nodes.length === 2 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j && nodes[0].MarkNodeType === 0) {
91255
91286
  sPath = nodes[0].getNodePath();
91256
91287
  hoEditorFactory.docTree.curDomRange.startPath = sPath;
91257
91288
  nodes.splice(0, 1);
91258
91289
  }
91290
+ if (!(nodes.length === 2 && nodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j && nodes[1].MarkNodeType === 2 && !nodes[1].parentNode.canModifyContent)) {
91291
+ _context2.next = 30;
91292
+ break;
91293
+ }
91294
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
91295
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("该元素不允许编辑。");
91296
+ this._isError = true;
91297
+ return _context2.abrupt("return");
91298
+ case 30:
91259
91299
  n = 0;
91260
- case 24:
91300
+ case 31:
91261
91301
  if (!(n < nodes.length)) {
91262
- _context2.next = 60;
91302
+ _context2.next = 67;
91263
91303
  break;
91264
91304
  }
91265
91305
  node = nodes[n]; // if (node instanceof MarkNode && node.parentNode instanceof TextInputFieldNode && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete) {
@@ -91267,79 +91307,79 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91267
91307
  // this._isError = true;
91268
91308
  // return;
91269
91309
  // }
91270
- if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_33__/* .ControlNode */ .w && !(node instanceof _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_41__/* .RareCharNode */ .Q) || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re)) {
91271
- _context2.next = 37;
91310
+ if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_32__/* .ControlNode */ .w && !(node instanceof _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_40__/* .RareCharNode */ .Q) || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re)) {
91311
+ _context2.next = 44;
91272
91312
  break;
91273
91313
  }
91274
91314
  if (node.isAllowDelete) {
91275
- _context2.next = 37;
91315
+ _context2.next = 44;
91276
91316
  break;
91277
91317
  }
91278
91318
  tip = "";
91279
- if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_34__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "RadioBox") {
91319
+ if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_33__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "RadioBox") {
91280
91320
  tip = "单选框";
91281
91321
  }
91282
- if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_34__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "CheckBox") {
91322
+ if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_33__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "CheckBox") {
91283
91323
  tip = "复选框";
91284
91324
  }
91285
- if (node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_35__/* .DateTimeNode */ .Z) {
91325
+ if (node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_34__/* .DateTimeNode */ .Z) {
91286
91326
  tip = "日期时间";
91287
91327
  }
91288
- if (node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_36__/* .DownListNode */ .yF) {
91328
+ if (node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_35__/* .DownListNode */ .yF) {
91289
91329
  tip = "下拉列表";
91290
91330
  }
91291
91331
  ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
91292
- ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。");
91332
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn(tip + "元素已设置为不允许删除。");
91293
91333
  this._isError = true;
91294
91334
  return _context2.abrupt("return");
91295
- case 37:
91296
- if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && node.MarkNodeType === 0)) {
91297
- _context2.next = 42;
91335
+ case 44:
91336
+ if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j && node.MarkNodeType === 0)) {
91337
+ _context2.next = 49;
91298
91338
  break;
91299
91339
  }
91300
91340
  ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
91301
91341
  ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("元素已设置为不允许删除,请正确操作。");
91302
91342
  this._isError = true;
91303
91343
  return _context2.abrupt("return");
91304
- case 42:
91305
- if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_40__/* .TableFormula */ .N)) {
91306
- _context2.next = 47;
91344
+ case 49:
91345
+ if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_39__/* .TableFormula */ .N)) {
91346
+ _context2.next = 54;
91307
91347
  break;
91308
91348
  }
91309
91349
  ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
91310
91350
  ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许删除表格计算公式");
91311
91351
  this._isError = true;
91312
91352
  return _context2.abrupt("return");
91313
- case 47:
91314
- if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__/* .TableNode */ .Fh)) {
91315
- _context2.next = 52;
91353
+ case 54:
91354
+ if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_30__/* .TableNode */ .Fh)) {
91355
+ _context2.next = 59;
91316
91356
  break;
91317
91357
  }
91318
91358
  ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
91319
91359
  ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许删除表格");
91320
91360
  this._isError = true;
91321
91361
  return _context2.abrupt("return");
91322
- case 52:
91323
- if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_38__/* .SignNode */ .N)) {
91324
- _context2.next = 57;
91362
+ case 59:
91363
+ if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_37__/* .SignNode */ .N)) {
91364
+ _context2.next = 64;
91325
91365
  break;
91326
91366
  }
91327
91367
  ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
91328
91368
  ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许直接删除签名!");
91329
91369
  this._isError = true;
91330
91370
  return _context2.abrupt("return");
91331
- case 57:
91371
+ case 64:
91332
91372
  n++;
91333
- _context2.next = 24;
91373
+ _context2.next = 31;
91334
91374
  break;
91335
- case 60:
91336
- if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j) {
91375
+ case 67:
91376
+ if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j) {
91337
91377
  hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
91338
91378
  }
91339
- case 61:
91379
+ case 68:
91340
91380
  pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
91341
- if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
91342
- _context2.next = 67;
91381
+ if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
91382
+ _context2.next = 74;
91343
91383
  break;
91344
91384
  }
91345
91385
  //判断当前TextInputField是否可编辑
@@ -91351,19 +91391,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91351
91391
  // this._undo.commit();
91352
91392
  });
91353
91393
  if (_res[0]) {
91354
- _context2.next = 67;
91394
+ _context2.next = 74;
91355
91395
  break;
91356
91396
  }
91357
91397
  return _context2.abrupt("return");
91358
- case 67:
91398
+ case 74:
91359
91399
  changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_19__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_17__/* .DocAction */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
91360
91400
  // hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
91361
91401
  if (currRange.npStart.node && currRange.npEnd.node) {
91362
- _context2.next = 70;
91402
+ _context2.next = 77;
91363
91403
  break;
91364
91404
  }
91365
- throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
91366
- case 70:
91405
+ throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
91406
+ case 77:
91367
91407
  // const [startPath, endPath] = DomRange.skipStartEndTablePath(
91368
91408
  // this._hoEditorFactory,
91369
91409
  // currRange.startPath,
@@ -91372,20 +91412,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91372
91412
  startPath = currRange.startPath;
91373
91413
  endPath = currRange.endPath;
91374
91414
  changeEvent.oldEndPath = endPath;
91375
- changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_30__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
91415
+ changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
91376
91416
  res = this.deleteRange(currRange.endPath, currRange.startPath);
91377
91417
  if (!(res == 1)) {
91378
- _context2.next = 82;
91418
+ _context2.next = 89;
91379
91419
  break;
91380
91420
  }
91381
91421
  changeEvent.beforeChangePath = startPath;
91382
91422
  changeEvent.afterChangePath = this._tmp.start;
91383
- _context2.next = 80;
91423
+ _context2.next = 87;
91384
91424
  return hoEditorFactory.docTree.change(changeEvent);
91385
- case 80:
91386
- cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_23__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_21__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
91425
+ case 87:
91426
+ cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_22__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
91387
91427
  hoEditorFactory.docTree.selectChange(cgEvent);
91388
- case 82:
91428
+ case 89:
91389
91429
  hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
91390
91430
  hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
91391
91431
  aNode = currRange.npStart.node;
@@ -91393,12 +91433,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
91393
91433
  pnode = aNode.parentNode;
91394
91434
  }
91395
91435
  if (!(aNode && pnode)) {
91396
- _context2.next = 89;
91436
+ _context2.next = 96;
91397
91437
  break;
91398
91438
  }
91399
- _context2.next = 89;
91439
+ _context2.next = 96;
91400
91440
  return this.ParentRepaint(pnode);
91401
- case 89:
91441
+ case 96:
91402
91442
  case "end":
91403
91443
  return _context2.stop();
91404
91444
  }
@@ -218756,7 +218796,7 @@ var TextNode = __webpack_require__(27198);
218756
218796
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
218757
218797
  var ParagraphNode = __webpack_require__(67945);
218758
218798
  ;// CONCATENATED MODULE: ./src/components/version.ts
218759
- /* harmony default export */ var version = ('3.1.49');
218799
+ /* harmony default export */ var version = ('3.1.50');
218760
218800
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
218761
218801
  var PoperTipText = __webpack_require__(50987);
218762
218802
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -220214,17 +220254,22 @@ var DrawPageTree = /*#__PURE__*/function () {
220214
220254
  return;
220215
220255
  }
220216
220256
  //页眉页脚绘制完毕
220217
- if (drawArea === mainArea && nextLine === this.drawMainDocs.length - 1 && startUpdateLine === nextLine) {
220218
- this.afterAreaFinishPaint(drawArea);
220219
- this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
220220
- this._endNeedUpdatePage = Math.max(drawArea.index, this._endNeedUpdatePage);
220221
- if (hoEditorFactory.drawTree.drawPages.length !== this._oldPageCount) {
220222
- this._oldPageCount = 0;
220223
- hoEditorFactory.drawTree.updatePageCountNodes();
220224
- }
220225
- // drawArea.stage.update();
220226
- return;
220227
- }
220257
+ //2023-12-28日注释 处理首行有日期更新重叠
220258
+ // if (
220259
+ // drawArea === mainArea &&
220260
+ // nextLine === this.drawMainDocs.length - 1 &&
220261
+ // startUpdateLine === nextLine
220262
+ // ) {
220263
+ // this.afterAreaFinishPaint(drawArea);
220264
+ // this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
220265
+ // this._endNeedUpdatePage = Math.max(drawArea.index, this._endNeedUpdatePage);
220266
+ // if (hoEditorFactory.drawTree.drawPages.length !== this._oldPageCount) {
220267
+ // this._oldPageCount = 0;
220268
+ // hoEditorFactory.drawTree.updatePageCountNodes();
220269
+ // }
220270
+ // // drawArea.stage.update();
220271
+ // return;
220272
+ // }
220228
220273
  var dobj = dRoots[mainIndex];
220229
220274
  var startDrawLine;
220230
220275
  var redrawPostion = hoEditorFactory.drawTree.getDlineDrawRootLists(dobj)[0];
@@ -221648,6 +221693,12 @@ var HTMLconverter2 = /*#__PURE__*/function () {
221648
221693
  this.convert.set('p', function (jnode, style) {
221649
221694
  return _this.TransHTMLP(jnode, style);
221650
221695
  });
221696
+ // this.convert.set('pclass="p1"', (jnode: ChildNode, style: string) => {
221697
+ // return this.TransHTMLP(jnode, style);
221698
+ // });
221699
+ // this.convert.set('pclass="p2"', (jnode: ChildNode, style: string) => {
221700
+ // return this.TransHTMLP(jnode, style);
221701
+ // });
221651
221702
  this.convert.set('br', function (jnode, style) {
221652
221703
  return _this.TransHTMLP(jnode, style);
221653
221704
  });
@@ -221657,6 +221708,9 @@ var HTMLconverter2 = /*#__PURE__*/function () {
221657
221708
  this.convert.set('font', function (jnode, style) {
221658
221709
  return _this.TransHTMLSPAN(jnode, style);
221659
221710
  });
221711
+ // this.convert.set('tableclass="t1"', (jnode: ChildNode, style: string) => {
221712
+ // return this.TransHTMLTABLE(jnode, style);
221713
+ // });
221660
221714
  this.convert.set('table', function (jnode, style) {
221661
221715
  return _this.TransHTMLTABLE(jnode, style);
221662
221716
  });
@@ -222478,6 +222532,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
222478
222532
  var anode = tmp[h];
222479
222533
  if (h == 0 && anode instanceof ParagraphNode/* ParagraphNode */.C) {
222480
222534
  node.childNodes[0].styleIndex = anode.styleIndex;
222535
+ node.childNodes[0].paraNo = anode.paraNo;
222481
222536
  continue;
222482
222537
  }
222483
222538
  anode.parentNode = node;
@@ -226089,6 +226144,7 @@ var hoCreateHistory = {
226089
226144
 
226090
226145
 
226091
226146
 
226147
+
226092
226148
 
226093
226149
 
226094
226150
  var VueController = /*#__PURE__*/function () {
@@ -231132,84 +231188,175 @@ var VueController = /*#__PURE__*/function () {
231132
231188
  key: "updateElementTextById",
231133
231189
  value: function () {
231134
231190
  var _updateElementTextById = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee8(id, text) {
231135
- var nodes, i, node, _nodes4, k;
231136
- return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee8$(_context9) {
231137
- while (1) switch (_context9.prev = _context9.next) {
231191
+ var _this2 = this;
231192
+ var nodes, _loop4, _ret2, i;
231193
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee8$(_context10) {
231194
+ while (1) switch (_context10.prev = _context10.next) {
231138
231195
  case 0:
231139
231196
  nodes = this.getNodeByID('all', id, 'array');
231140
231197
  if (!(nodes.length > 0)) {
231141
- _context9.next = 35;
231198
+ _context10.next = 14;
231142
231199
  break;
231143
231200
  }
231201
+ _loop4 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop4() {
231202
+ var node, _node$childNodes, hoEditorFactory, xml, x2js, object, json, childNodes, getChildNodes, _nodes4, k;
231203
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop4$(_context9) {
231204
+ while (1) switch (_context9.prev = _context9.next) {
231205
+ case 0:
231206
+ node = nodes[i];
231207
+ if (!node) {
231208
+ _context9.next = 42;
231209
+ break;
231210
+ }
231211
+ if (!(node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF || node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
231212
+ _context9.next = 39;
231213
+ break;
231214
+ }
231215
+ if (!(node.notReplaceElement === true)) {
231216
+ _context9.next = 6;
231217
+ break;
231218
+ }
231219
+ console.warn("".concat(id, " ==> ").concat(node.notReplaceElement));
231220
+ return _context9.abrupt("return", {
231221
+ v: void 0
231222
+ });
231223
+ case 6:
231224
+ if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
231225
+ _context9.next = 31;
231226
+ break;
231227
+ }
231228
+ if (!text.includes("<TextInputFieldNode>")) {
231229
+ _context9.next = 21;
231230
+ break;
231231
+ }
231232
+ hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this2._hoEditorFactoryID);
231233
+ xml = hoEditorFactory.structureConvert.replaceNodesName(text);
231234
+ x2js = new (x2js_default())({
231235
+ stripWhitespaces: false
231236
+ });
231237
+ object = x2js.xml2js(xml);
231238
+ json = object;
231239
+ childNodes = new Array();
231240
+ getChildNodes = function getChildNodes(item) {
231241
+ if (Array.isArray(item)) {
231242
+ //数组
231243
+ for (var _i3 = 1; _i3 < item.length - 1; _i3++) {
231244
+ var anode = hoEditorFactory.structureConvert.convertNode(item[_i3], node.rootNodes, node);
231245
+ if (anode) {
231246
+ if (anode instanceof TextNode/* TextNode */.R) {
231247
+ if (anode.text.length > (0,esm_toConsumableArray/* default */.Z)(anode.text).length) {
231248
+ //特殊处理生僻字
231249
+ var rareCharNode = new RareCharNode/* RareCharNode */.Q(node.hoEditorFactoryID, anode.rootNodes, node, BaseNode/* NodeType */.Jq.ntRareChar, anode.text, anode.styleIndex);
231250
+ childNodes.push(rareCharNode);
231251
+ } else {
231252
+ if (anode.text !== '' && anode.text !== '‌‌' && anode.text !== '‌‌‌‌' && anode.text !== '‌‌‌‌‌' && anode.text !== '‌‌‌' && anode.text !== '‌') {
231253
+ childNodes.push(anode);
231254
+ }
231255
+ }
231256
+ } else {
231257
+ childNodes.push(anode);
231258
+ }
231259
+ }
231260
+ }
231261
+ } else {
231262
+ //单个对象
231263
+ var bnode = hoEditorFactory.structureConvert.convertNode(item, node.rootNodes, node);
231264
+ if (bnode) {
231265
+ if (bnode instanceof TextNode/* TextNode */.R) {
231266
+ if (bnode.text.length > (0,esm_toConsumableArray/* default */.Z)(bnode.text).length) {
231267
+ //特殊处理生僻字
231268
+ var _rareCharNode = new RareCharNode/* RareCharNode */.Q(node.hoEditorFactoryID, bnode.rootNodes, node, BaseNode/* NodeType */.Jq.ntRareChar, bnode.text, bnode.styleIndex);
231269
+ childNodes.push(_rareCharNode);
231270
+ } else {
231271
+ if (bnode.text !== '' && bnode.text !== '‌‌' && bnode.text !== '‌‌‌‌' && bnode.text !== '‌‌‌‌‌' && bnode.text !== '‌‌‌' && bnode.text !== '‌') {
231272
+ childNodes.push(bnode);
231273
+ }
231274
+ }
231275
+ } else {
231276
+ childNodes.push(bnode);
231277
+ }
231278
+ }
231279
+ }
231280
+ };
231281
+ getChildNodes(json.node.childNodes.node);
231282
+ node.childNodes.splice(1, node.childNodes.length - 2);
231283
+ (_node$childNodes = node.childNodes).splice.apply(_node$childNodes, [1, 0].concat(childNodes));
231284
+ node.update(0);
231285
+ _context9.next = 31;
231286
+ break;
231287
+ case 21:
231288
+ if (!text.includes("<MedicalExpress>")) {
231289
+ _context9.next = 29;
231290
+ break;
231291
+ }
231292
+ node.childNodes.splice(1, node.childNodes.length - 2);
231293
+ _nodes4 = _this2.text2MedicalExpress(text, node.StartMarkNode, node.StartMarkNode.styleIndex);
231294
+ for (k = 0; k < _nodes4.length; k++) {
231295
+ node.childNodes.splice(1 + k, 0, _nodes4[k]);
231296
+ }
231297
+ node.update(0);
231298
+ return _context9.abrupt("return", {
231299
+ v: void 0
231300
+ });
231301
+ case 29:
231302
+ _context9.next = 31;
231303
+ return node.setFieldText(text);
231304
+ case 31:
231305
+ if (!(node instanceof DateTimeNode/* DateTimeNode */.Z)) {
231306
+ _context9.next = 34;
231307
+ break;
231308
+ }
231309
+ _context9.next = 34;
231310
+ return node.setDateTimeText(text);
231311
+ case 34:
231312
+ if (!(node instanceof DownListNode/* DownListNode */.yF)) {
231313
+ _context9.next = 37;
231314
+ break;
231315
+ }
231316
+ _context9.next = 37;
231317
+ return node.setDownListText(text);
231318
+ case 37:
231319
+ _context9.next = 40;
231320
+ break;
231321
+ case 39:
231322
+ console.warn("\u975E\u6587\u672C\u57DF\u548C\u65E5\u671F\u5143\u7D20");
231323
+ case 40:
231324
+ _context9.next = 43;
231325
+ break;
231326
+ case 42:
231327
+ console.warn('未找到对应的元素');
231328
+ case 43:
231329
+ case "end":
231330
+ return _context9.stop();
231331
+ }
231332
+ }, _loop4);
231333
+ });
231144
231334
  i = nodes.length - 1;
231145
- case 3:
231335
+ case 4:
231146
231336
  if (!(i >= 0)) {
231147
- _context9.next = 33;
231148
- break;
231149
- }
231150
- node = nodes[i];
231151
- if (!node) {
231152
- _context9.next = 29;
231153
- break;
231154
- }
231155
- if (!(node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF || node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
231156
- _context9.next = 26;
231337
+ _context10.next = 12;
231157
231338
  break;
231158
231339
  }
231159
- if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
231160
- _context9.next = 18;
231161
- break;
231162
- }
231163
- if (!text.includes("<MedicalExpress>")) {
231164
- _context9.next = 16;
231165
- break;
231166
- }
231167
- node.childNodes.splice(1, node.childNodes.length - 2);
231168
- _nodes4 = this.text2MedicalExpress(text, node.StartMarkNode, node.StartMarkNode.styleIndex);
231169
- for (k = 0; k < _nodes4.length; k++) {
231170
- node.childNodes.splice(1 + k, 0, _nodes4[k]);
231171
- }
231172
- node.update(0);
231173
- return _context9.abrupt("return");
231174
- case 16:
231175
- _context9.next = 18;
231176
- return node.setFieldText(text);
231177
- case 18:
231178
- if (!(node instanceof DateTimeNode/* DateTimeNode */.Z)) {
231179
- _context9.next = 21;
231180
- break;
231181
- }
231182
- _context9.next = 21;
231183
- return node.setDateTimeText(text);
231184
- case 21:
231185
- if (!(node instanceof DownListNode/* DownListNode */.yF)) {
231186
- _context9.next = 24;
231340
+ return _context10.delegateYield(_loop4(), "t0", 6);
231341
+ case 6:
231342
+ _ret2 = _context10.t0;
231343
+ if (!_ret2) {
231344
+ _context10.next = 9;
231187
231345
  break;
231188
231346
  }
231189
- _context9.next = 24;
231190
- return node.setDownListText(text);
231191
- case 24:
231192
- _context9.next = 27;
231193
- break;
231194
- case 26:
231195
- console.warn("\u975E\u6587\u672C\u57DF\u548C\u65E5\u671F\u5143\u7D20");
231196
- case 27:
231197
- _context9.next = 30;
231198
- break;
231199
- case 29:
231200
- console.warn('未找到对应的元素');
231201
- case 30:
231347
+ return _context10.abrupt("return", _ret2.v);
231348
+ case 9:
231202
231349
  i--;
231203
- _context9.next = 3;
231350
+ _context10.next = 4;
231204
231351
  break;
231205
- case 33:
231206
- _context9.next = 36;
231352
+ case 12:
231353
+ _context10.next = 15;
231207
231354
  break;
231208
- case 35:
231355
+ case 14:
231209
231356
  console.warn('未找到对应的元素');
231210
- case 36:
231357
+ case 15:
231211
231358
  case "end":
231212
- return _context9.stop();
231359
+ return _context10.stop();
231213
231360
  }
231214
231361
  }, _callee8, this);
231215
231362
  }));
@@ -231257,7 +231404,7 @@ var VueController = /*#__PURE__*/function () {
231257
231404
  }, {
231258
231405
  key: "createPNG",
231259
231406
  value: function createPNG(quality, type, callback) {
231260
- var _this2 = this;
231407
+ var _this3 = this;
231261
231408
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
231262
231409
  var createElementNodes = function createElementNodes() {
231263
231410
  var drawpages = hoEditorFactory.drawTree.drawPages;
@@ -231267,18 +231414,18 @@ var VueController = /*#__PURE__*/function () {
231267
231414
  var imgType = type ? type : 'image/jpeg';
231268
231415
  drawpages.forEach(function (drawpage, index) {
231269
231416
  var _drawpage$drawDomLeve;
231270
- // if (index == 0) {
231271
- // drawpage.paintBackGround();
231272
- // drawpage.needUpdateStage = true;
231273
- // }
231274
- // if (drawpage.drawDomLevel && !drawpage.drawDomLevel.stage) {
231275
- // drawpage.drawDomLevel.bindStage();
231276
- // drawpage.needUpdateStage = true;
231277
- // }
231278
- // if (drawpage.needUpdateStage && drawpage.drawDomLevel && drawpage.drawDomLevel.stage) {
231279
- // drawpage.drawDomLevel.stage.update();
231280
- // drawpage.needUpdateStage = false;
231281
- // }
231417
+ if (index == 0) {
231418
+ drawpage.paintBackGround();
231419
+ drawpage.needUpdateStage = true;
231420
+ }
231421
+ if (drawpage.drawDomLevel && !drawpage.drawDomLevel.stage) {
231422
+ drawpage.drawDomLevel.bindStage();
231423
+ drawpage.needUpdateStage = true;
231424
+ }
231425
+ if (drawpage.needUpdateStage && drawpage.drawDomLevel && drawpage.drawDomLevel.stage) {
231426
+ drawpage.drawDomLevel.stage.update();
231427
+ drawpage.needUpdateStage = false;
231428
+ }
231282
231429
  var png = document.createElement('img');
231283
231430
  var canvas = (_drawpage$drawDomLeve = drawpage.drawDomLevel) === null || _drawpage$drawDomLeve === void 0 ? void 0 : _drawpage$drawDomLeve.domCanvas;
231284
231431
  png.src = canvas.toDataURL(imgType, imgQuality);
@@ -231298,7 +231445,7 @@ var VueController = /*#__PURE__*/function () {
231298
231445
  document.body.appendChild(pngBox);
231299
231446
  callback && callback();
231300
231447
  document.querySelector('#hoDownLoadImageBtn').onclick = function () {
231301
- _this2.downLoadPNGHTML();
231448
+ _this3.downLoadPNGHTML();
231302
231449
  };
231303
231450
  };
231304
231451
  if (hoEditorFactory.loadImageCount <= 0) {
@@ -231344,7 +231491,7 @@ var VueController = /*#__PURE__*/function () {
231344
231491
  }, {
231345
231492
  key: "createPDF",
231346
231493
  value: function createPDF() {
231347
- var _this3 = this;
231494
+ var _this4 = this;
231348
231495
  var btn = document.createElement('button');
231349
231496
  btn.id = 'hoDownLoadPDFBtn';
231350
231497
  btn.style.position = 'fixed';
@@ -231356,7 +231503,7 @@ var VueController = /*#__PURE__*/function () {
231356
231503
  btn.style.outline = 'none';
231357
231504
  document.body.appendChild(btn);
231358
231505
  document.querySelector('#hoDownLoadPDFBtn').onclick = function () {
231359
- _this3.saveAsPDF();
231506
+ _this4.saveAsPDF();
231360
231507
  };
231361
231508
  }
231362
231509
  /*
@@ -231394,26 +231541,26 @@ var VueController = /*#__PURE__*/function () {
231394
231541
  node = this.getNodeByID(scope, id);
231395
231542
  }
231396
231543
  if (node) {
231397
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
231398
- var oldRange = hoEditorFactory.docTree.curDomRange;
231399
- var spath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
231400
- var epath = hoEditorFactory.docTree.getNodeLastPath(node);
231544
+ var _hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
231545
+ var oldRange = _hoEditorFactory.docTree.curDomRange;
231546
+ var spath = _hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
231547
+ var epath = _hoEditorFactory.docTree.getNodeLastPath(node);
231401
231548
  var topath = epath;
231402
231549
  if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
231403
- spath = hoEditorFactory.docTree.getNodeLastPath(node.childNodes[0]);
231404
- epath = hoEditorFactory.docTree.getNodeLastPath(node.childNodes[node.childNodes.length - 1].previousLeaf());
231550
+ spath = _hoEditorFactory.docTree.getNodeLastPath(node.childNodes[0]);
231551
+ epath = _hoEditorFactory.docTree.getNodeLastPath(node.childNodes[node.childNodes.length - 1].previousLeaf());
231405
231552
  if (node.childNodes[1] instanceof MarkNode/* MarkNode */.j) {
231406
231553
  topath = spath;
231407
231554
  } else {
231408
231555
  topath = epath;
231409
231556
  }
231410
231557
  }
231411
- hoEditorFactory.drawTree.moveCaretToPath(topath);
231558
+ _hoEditorFactory.drawTree.moveCaretToPath(topath);
231412
231559
  if (type !== 1) {
231413
231560
  var newRange = new DomRange/* DomRange */.a(this.hoEditorFactoryID, spath, epath);
231414
- hoEditorFactory.docTree.curDomRange = newRange;
231561
+ _hoEditorFactory.docTree.curDomRange = newRange;
231415
231562
  var selectChangeEvent = new SelectionChangeEvent/* SelectionChangeEvent */.r(oldRange, newRange);
231416
- hoEditorFactory.docTree.selectChange(selectChangeEvent);
231563
+ _hoEditorFactory.docTree.selectChange(selectChangeEvent);
231417
231564
  }
231418
231565
  }
231419
231566
  if (returnValue) {
@@ -231456,49 +231603,49 @@ var VueController = /*#__PURE__*/function () {
231456
231603
  key: "getBase64",
231457
231604
  value: function () {
231458
231605
  var _getBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee9(type, callback) {
231459
- var hoEditorFactory, _hoEditorFactory$vueC, curDomRange, endPath, node, htmlText, _hoEditorFactory$vueC2, _curDomRange2, _endPath, _node, base64;
231460
- return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee9$(_context10) {
231461
- while (1) switch (_context10.prev = _context10.next) {
231606
+ var hoEditorFactory, _hoEditorFactory$vueC, curDomRange, endPath, _node, htmlText, _hoEditorFactory$vueC2, _curDomRange2, _endPath, _node2, base64;
231607
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee9$(_context11) {
231608
+ while (1) switch (_context11.prev = _context11.next) {
231462
231609
  case 0:
231463
231610
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
231464
231611
  if (!(type === 'html')) {
231465
- _context10.next = 14;
231612
+ _context11.next = 14;
231466
231613
  break;
231467
231614
  }
231468
231615
  curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
231469
231616
  endPath = curDomRange.normalize().endPath;
231470
- node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
231471
- if (!(node instanceof SignNode/* SignNode */.N && !node.isTemplate && node.attribute == 1)) {
231472
- _context10.next = 8;
231617
+ _node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
231618
+ if (!(_node instanceof SignNode/* SignNode */.N && !_node.isTemplate && _node.attribute == 1)) {
231619
+ _context11.next = 8;
231473
231620
  break;
231474
231621
  }
231475
- _context10.next = 8;
231476
- return this.deleteNode(node);
231622
+ _context11.next = 8;
231623
+ return this.deleteNode(_node);
231477
231624
  case 8:
231478
- _context10.next = 10;
231625
+ _context11.next = 10;
231479
231626
  return hoEditorFactory.printController.createHtml();
231480
231627
  case 10:
231481
- htmlText = _context10.sent;
231482
- return _context10.abrupt("return", htmlText);
231628
+ htmlText = _context11.sent;
231629
+ return _context11.abrupt("return", htmlText);
231483
231630
  case 14:
231484
231631
  _curDomRange2 = hoEditorFactory.docTree.curDomRange.normalize();
231485
231632
  _endPath = _curDomRange2.normalize().endPath;
231486
- _node = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(_endPath)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
231487
- if (!(_node instanceof SignNode/* SignNode */.N && !_node.isTemplate && _node.attribute == 1)) {
231488
- _context10.next = 20;
231633
+ _node2 = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(_endPath)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
231634
+ if (!(_node2 instanceof SignNode/* SignNode */.N && !_node2.isTemplate && _node2.attribute == 1)) {
231635
+ _context11.next = 20;
231489
231636
  break;
231490
231637
  }
231491
- _context10.next = 20;
231492
- return this.deleteNode(_node);
231638
+ _context11.next = 20;
231639
+ return this.deleteNode(_node2);
231493
231640
  case 20:
231494
- _context10.next = 22;
231641
+ _context11.next = 22;
231495
231642
  return hoEditorFactory.printController.createBase64(callback);
231496
231643
  case 22:
231497
- base64 = _context10.sent;
231498
- return _context10.abrupt("return", base64);
231644
+ base64 = _context11.sent;
231645
+ return _context11.abrupt("return", base64);
231499
231646
  case 24:
231500
231647
  case "end":
231501
- return _context10.stop();
231648
+ return _context11.stop();
231502
231649
  }
231503
231650
  }, _callee9, this);
231504
231651
  }));
@@ -231512,17 +231659,17 @@ var VueController = /*#__PURE__*/function () {
231512
231659
  value: function () {
231513
231660
  var _getSvg = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee10() {
231514
231661
  var hoEditorFactory;
231515
- return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee10$(_context11) {
231516
- while (1) switch (_context11.prev = _context11.next) {
231662
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee10$(_context12) {
231663
+ while (1) switch (_context12.prev = _context12.next) {
231517
231664
  case 0:
231518
231665
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
231519
- _context11.next = 3;
231666
+ _context12.next = 3;
231520
231667
  return hoEditorFactory.printController.createSvg();
231521
231668
  case 3:
231522
- return _context11.abrupt("return", _context11.sent);
231669
+ return _context12.abrupt("return", _context12.sent);
231523
231670
  case 4:
231524
231671
  case "end":
231525
- return _context11.stop();
231672
+ return _context12.stop();
231526
231673
  }
231527
231674
  }, _callee10, this);
231528
231675
  }));
@@ -231536,18 +231683,18 @@ var VueController = /*#__PURE__*/function () {
231536
231683
  value: function () {
231537
231684
  var _isSetFontFamily = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee11(callback) {
231538
231685
  var hoEditorFactory, font;
231539
- return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee11$(_context12) {
231540
- while (1) switch (_context12.prev = _context12.next) {
231686
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee11$(_context13) {
231687
+ while (1) switch (_context13.prev = _context13.next) {
231541
231688
  case 0:
231542
231689
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
231543
231690
  if (hoEditorFactory.printController.isSetFont) {
231544
- _context12.next = 8;
231691
+ _context13.next = 8;
231545
231692
  break;
231546
231693
  }
231547
- _context12.next = 4;
231694
+ _context13.next = 4;
231548
231695
  return hoEditorFactory.vueController.hoLocalStorage().loadFontString();
231549
231696
  case 4:
231550
- font = _context12.sent;
231697
+ font = _context13.sent;
231551
231698
  if (font) {
231552
231699
  hoEditorFactory.printController.setjsPDFFonts(font);
231553
231700
  callback && callback();
@@ -231555,13 +231702,13 @@ var VueController = /*#__PURE__*/function () {
231555
231702
  font = '';
231556
231703
  }, 0);
231557
231704
  }
231558
- _context12.next = 9;
231705
+ _context13.next = 9;
231559
231706
  break;
231560
231707
  case 8:
231561
231708
  callback && callback();
231562
231709
  case 9:
231563
231710
  case "end":
231564
- return _context12.stop();
231711
+ return _context13.stop();
231565
231712
  }
231566
231713
  }, _callee11, this);
231567
231714
  }));
@@ -231663,7 +231810,7 @@ var VueController = /*#__PURE__*/function () {
231663
231810
  }, {
231664
231811
  key: "setBackgroundByName",
231665
231812
  value: function setBackgroundByName(items) {
231666
- var _this4 = this;
231813
+ var _this5 = this;
231667
231814
  var selectRangeArr = [];
231668
231815
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
231669
231816
  var iteratesNodes = function iteratesNodes(nodes) {
@@ -231673,12 +231820,12 @@ var VueController = /*#__PURE__*/function () {
231673
231820
  for (var m = 0, len = items.length - 1; m <= len; m++) {
231674
231821
  var item = items[m];
231675
231822
  if (item.text !== '' && (item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId) && anode.text.includes(item.text)) {
231676
- var range = _this4.search(anode, item.text);
231823
+ var range = _this5.search(anode, item.text);
231677
231824
  if (range.length > 0) {
231678
231825
  selectRangeArr = selectRangeArr.concat(range);
231679
231826
  }
231680
231827
  } else if (item.text === '' && (item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId)) {
231681
- var _range = _this4.search(anode, anode.text);
231828
+ var _range = _this5.search(anode, anode.text);
231682
231829
  if (_range.length > 0) {
231683
231830
  selectRangeArr = selectRangeArr.concat(_range);
231684
231831
  }
@@ -231856,7 +232003,7 @@ var VueController = /*#__PURE__*/function () {
231856
232003
  var returnPath = textNodesPaths[j];
231857
232004
  var path = returnPath;
231858
232005
  var nodeLastPath = returnPath;
231859
- var _loop4 = function _loop4() {
232006
+ var _loop5 = function _loop5() {
231860
232007
  var np = hoEditorFactory.docTree.findNodePositionByPath(path);
231861
232008
  if (np && np.node) {
231862
232009
  nodeLastPath = hoEditorFactory.docTree.getNodeLastPath(np.node);
@@ -231880,8 +232027,8 @@ var VueController = /*#__PURE__*/function () {
231880
232027
  path = pathArr.join('/');
231881
232028
  }
231882
232029
  };
231883
- for (var _i3 = 0; _i3 < text.length; _i3++) {
231884
- _loop4();
232030
+ for (var _i4 = 0; _i4 < text.length; _i4++) {
232031
+ _loop5();
231885
232032
  }
231886
232033
  var selectRange = new SelectRange/* SelectRange */.E(this.hoEditorFactoryID);
231887
232034
  var pStartPoint = StagePosition/* StagePosition */.M.getStagePosByPath(this._hoEditorFactoryID, returnPath);
@@ -231975,24 +232122,24 @@ var VueController = /*#__PURE__*/function () {
231975
232122
  value: function getCaretPreviousText(value) {
231976
232123
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
231977
232124
  if (hoEditorFactory.aiTextFunc) {
231978
- var _node$parentNode2;
232125
+ var _node3$parentNode2;
231979
232126
  var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
231980
- var node = curDomRange.npEnd.node;
232127
+ var _node3 = curDomRange.npEnd.node;
231981
232128
  var textFieldName = '';
231982
232129
  var text = value || '';
231983
232130
  if (!text) {
231984
- var _node$parentNode;
231985
- if ((node === null || node === void 0 ? void 0 : node.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
231986
- text = node.parentNode.text.replace(/\s*/g, '');
231987
- } else if ((node === null || node === void 0 || (_node$parentNode = node.parentNode) === null || _node$parentNode === void 0 ? void 0 : _node$parentNode.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
231988
- text = node.parentNode.parentNode.text.replace(/\s*/g, '');
232131
+ var _node3$parentNode;
232132
+ if ((_node3 === null || _node3 === void 0 ? void 0 : _node3.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
232133
+ text = _node3.parentNode.text.replace(/\s*/g, '');
232134
+ } else if ((_node3 === null || _node3 === void 0 || (_node3$parentNode = _node3.parentNode) === null || _node3$parentNode === void 0 ? void 0 : _node3$parentNode.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
232135
+ text = _node3.parentNode.parentNode.text.replace(/\s*/g, '');
231989
232136
  }
231990
232137
  }
231991
- if ((node === null || node === void 0 ? void 0 : node.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
231992
- textFieldName = node.parentNode.name.replace(/\s*/g, '');
231993
- } else if ((node === null || node === void 0 || (_node$parentNode2 = node.parentNode) === null || _node$parentNode2 === void 0 ? void 0 : _node$parentNode2.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
231994
- var _node$parentNode3;
231995
- textFieldName = node === null || node === void 0 || (_node$parentNode3 = node.parentNode) === null || _node$parentNode3 === void 0 ? void 0 : _node$parentNode3.parentNode.name.replace(/\s*/g, '');
232138
+ if ((_node3 === null || _node3 === void 0 ? void 0 : _node3.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
232139
+ textFieldName = _node3.parentNode.name.replace(/\s*/g, '');
232140
+ } else if ((_node3 === null || _node3 === void 0 || (_node3$parentNode2 = _node3.parentNode) === null || _node3$parentNode2 === void 0 ? void 0 : _node3$parentNode2.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
232141
+ var _node3$parentNode3;
232142
+ textFieldName = _node3 === null || _node3 === void 0 || (_node3$parentNode3 = _node3.parentNode) === null || _node3$parentNode3 === void 0 ? void 0 : _node3$parentNode3.parentNode.name.replace(/\s*/g, '');
231996
232143
  }
231997
232144
  var callback = function callback(aiText) {
231998
232145
  var aiInfo = hoEditorFactory.drawTree.caret.aiInfo;
@@ -232030,11 +232177,11 @@ var VueController = /*#__PURE__*/function () {
232030
232177
  }
232031
232178
  var index = 0;
232032
232179
  for (var i = 0; i < nodes.length; i++) {
232033
- var node = nodes[i];
232034
- if (node instanceof ParagraphNode/* ParagraphNode */.C) {
232035
- var path = node.getNodePath();
232180
+ var _node4 = nodes[i];
232181
+ if (_node4 instanceof ParagraphNode/* ParagraphNode */.C) {
232182
+ var path = _node4.getNodePath();
232036
232183
  hoEditorFactory.undoService.begin();
232037
- hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, path));
232184
+ hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, _node4, path));
232038
232185
  hoEditorFactory.undoService.commit();
232039
232186
  } else {
232040
232187
  index = i;
@@ -232292,42 +232439,42 @@ var VueController = /*#__PURE__*/function () {
232292
232439
  var downNames = [];
232293
232440
  hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
232294
232441
  for (var i = 0; i < nodes.length; i++) {
232295
- var node = nodes[i];
232296
- if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
232297
- if (fieldNames.indexOf(node.name) === -1) {
232298
- fieldNames.push(node.name);
232299
- var sameNameEles = this.getNodesByName('all', true, node.name);
232442
+ var _node5 = nodes[i];
232443
+ if (_node5 instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
232444
+ if (fieldNames.indexOf(_node5.name) === -1) {
232445
+ fieldNames.push(_node5.name);
232446
+ var sameNameEles = this.getNodesByName('all', true, _node5.name);
232300
232447
  for (var j = 0; j < sameNameEles.length; j++) {
232301
232448
  var ele = sameNameEles[j];
232302
232449
  if (nodes.indexOf(ele) >= 0) continue;
232303
232450
  if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
232304
- ele.setFieldText(node.text);
232451
+ ele.setFieldText(_node5.text);
232305
232452
  }
232306
232453
  }
232307
232454
  }
232308
232455
  }
232309
- if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
232310
- if (dateNames.indexOf(node.name) === -1) {
232311
- dateNames.push(node.name);
232312
- var _sameNameEles = this.getNodesByName('all', true, node.name);
232456
+ if (_node5 instanceof DateTimeNode/* DateTimeNode */.Z) {
232457
+ if (dateNames.indexOf(_node5.name) === -1) {
232458
+ dateNames.push(_node5.name);
232459
+ var _sameNameEles = this.getNodesByName('all', true, _node5.name);
232313
232460
  for (var _j = 0; _j < _sameNameEles.length; _j++) {
232314
232461
  var _ele = _sameNameEles[_j];
232315
232462
  if (nodes.indexOf(_ele) >= 0) continue;
232316
232463
  if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
232317
- _ele.setDateTimeText(node.text);
232464
+ _ele.setDateTimeText(_node5.text);
232318
232465
  }
232319
232466
  }
232320
232467
  }
232321
232468
  }
232322
- if (node instanceof DownListNode/* DownListNode */.yF) {
232323
- if (downNames.indexOf(node.name) === -1) {
232324
- downNames.push(node.name);
232325
- var _sameNameEles2 = this.getNodesByName('all', true, node.name);
232469
+ if (_node5 instanceof DownListNode/* DownListNode */.yF) {
232470
+ if (downNames.indexOf(_node5.name) === -1) {
232471
+ downNames.push(_node5.name);
232472
+ var _sameNameEles2 = this.getNodesByName('all', true, _node5.name);
232326
232473
  for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
232327
232474
  var _ele2 = _sameNameEles2[_j2];
232328
232475
  if (nodes.indexOf(_ele2) >= 0) continue;
232329
232476
  if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
232330
- _ele2.setDownListText(node.text);
232477
+ _ele2.setDownListText(_node5.text);
232331
232478
  }
232332
232479
  }
232333
232480
  }
@@ -232478,29 +232625,29 @@ var VueController = /*#__PURE__*/function () {
232478
232625
  var hasEmptyDoctorSign = false;
232479
232626
  var getAllNodes = function getAllNodes(nodes) {
232480
232627
  for (var i = 0; i < nodes.length; i++) {
232481
- var node = nodes[i];
232482
- if (node instanceof SignNode/* SignNode */.N) {
232628
+ var _node6 = nodes[i];
232629
+ if (_node6 instanceof SignNode/* SignNode */.N) {
232483
232630
  // 有值的患者签名
232484
- if (attribute == 1 && node.attribute === 1) {
232631
+ if (attribute == 1 && _node6.attribute === 1) {
232485
232632
  patientSignCount++;
232486
232633
  }
232487
- if (attribute == 1 && node.attribute === 1 && (node.imgSrc !== '' || node.fingerPrintSrc !== '')) {
232634
+ if (attribute == 1 && _node6.attribute === 1 && (_node6.imgSrc !== '' || _node6.fingerPrintSrc !== '')) {
232488
232635
  hasEmptyPatientSign = true;
232489
232636
  break;
232490
232637
  }
232491
232638
  // 空的医生签名
232492
- if (attribute != 1 && node.attribute != 1 && node.imgSrc === '') {
232639
+ if (attribute != 1 && _node6.attribute != 1 && _node6.imgSrc === '') {
232493
232640
  hasEmptyDoctorSign = true;
232494
232641
  break;
232495
232642
  }
232496
232643
  }
232497
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 1 && hasEmptyPatientSign) {
232644
+ if (_node6 instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 1 && hasEmptyPatientSign) {
232498
232645
  // 患者签名已存在的情况不在深层调用深层遍历
232499
- getAllNodes(node.childNodes);
232646
+ getAllNodes(_node6.childNodes);
232500
232647
  }
232501
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute != 1 && !hasEmptyDoctorSign) {
232648
+ if (_node6 instanceof BaseCombineNode/* BaseCombineNode */.V && attribute != 1 && !hasEmptyDoctorSign) {
232502
232649
  // 医生签名不存在的情况不在深层调用深层遍历
232503
- getAllNodes(node.childNodes);
232650
+ getAllNodes(_node6.childNodes);
232504
232651
  }
232505
232652
  }
232506
232653
  };
@@ -232522,13 +232669,13 @@ var VueController = /*#__PURE__*/function () {
232522
232669
  }, {
232523
232670
  key: "getAllSignNodeList",
232524
232671
  value: function getAllSignNodeList(bce01) {
232525
- var _this5 = this;
232672
+ var _this6 = this;
232526
232673
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
232527
232674
  var signList = [];
232528
232675
  var patientSignList = [];
232529
232676
  var bce01List = [];
232530
232677
  var getAllNodes = function getAllNodes(nodes) {
232531
- var _loop5 = function _loop5() {
232678
+ var _loop6 = function _loop6() {
232532
232679
  var node = nodes[i];
232533
232680
  if (node instanceof SignNode/* SignNode */.N) {
232534
232681
  if (node.parentNode instanceof CellNode/* CellNode */.D) {
@@ -232583,7 +232730,7 @@ var VueController = /*#__PURE__*/function () {
232583
232730
  }
232584
232731
  });
232585
232732
  if (signColList.length > 0) {
232586
- var firstDataRowIndex = _this5.getTableTitleMaxRowIndex(node) + 1;
232733
+ var firstDataRowIndex = _this6.getTableTitleMaxRowIndex(node) + 1;
232587
232734
  node.rows.forEach(function (rows, rowIndex) {
232588
232735
  if (rowIndex >= firstDataRowIndex) {
232589
232736
  rows.forEach(function (cellNode, colIndex) {
@@ -232621,7 +232768,7 @@ var VueController = /*#__PURE__*/function () {
232621
232768
  }
232622
232769
  };
232623
232770
  for (var i = 0; i < nodes.length; i++) {
232624
- if (_loop5()) continue;
232771
+ if (_loop6()) continue;
232625
232772
  }
232626
232773
  };
232627
232774
  var mainNodes = hoEditorFactory.docTree.mainNodes;
@@ -232636,9 +232783,9 @@ var VueController = /*#__PURE__*/function () {
232636
232783
  }
232637
232784
  }
232638
232785
  } else {
232639
- for (var _i4 = index; _i4 >= 0; _i4--) {
232640
- if (signList[_i4] && signList[_i4].number == 1) {
232641
- sign.isTemplate = signList[_i4].isTemplate;
232786
+ for (var _i5 = index; _i5 >= 0; _i5--) {
232787
+ if (signList[_i5] && signList[_i5].number == 1) {
232788
+ sign.isTemplate = signList[_i5].isTemplate;
232642
232789
  break;
232643
232790
  }
232644
232791
  }
@@ -232705,33 +232852,33 @@ var VueController = /*#__PURE__*/function () {
232705
232852
  }, {
232706
232853
  key: "getSignNodeAndText",
232707
232854
  value: function getSignNodeAndText(bce01) {
232708
- var _this6 = this;
232855
+ var _this7 = this;
232709
232856
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
232710
232857
  var signList = [];
232711
232858
  var getAllNodes = function getAllNodes(nodes) {
232712
232859
  for (var i = 0; i < nodes.length; i++) {
232713
- var node = nodes[i];
232714
- if (node instanceof SignNode/* SignNode */.N) {
232860
+ var _node7 = nodes[i];
232861
+ if (_node7 instanceof SignNode/* SignNode */.N) {
232715
232862
  // 空的医生签名
232716
- if (node.attribute != 1) {
232863
+ if (_node7.attribute != 1) {
232717
232864
  var sign = {
232718
232865
  type: 'sign',
232719
232866
  signed: false,
232720
- isTemplate: node.isTemplate,
232721
- number: node.number,
232722
- isVerify: node.otherProperties && node.otherProperties.isVerify ? true : false,
232723
- customProperty: node.customProperty,
232867
+ isTemplate: _node7.isTemplate,
232868
+ number: _node7.number,
232869
+ isVerify: _node7.otherProperties && _node7.otherProperties.isVerify ? true : false,
232870
+ customProperty: _node7.customProperty,
232724
232871
  previousText: '',
232725
- dataId: node.dataId,
232726
- name: node.name
232872
+ dataId: _node7.dataId,
232873
+ name: _node7.name
232727
232874
  };
232728
- sign.previousText = _this6.getPreviousText(node);
232875
+ sign.previousText = _this7.getPreviousText(_node7);
232729
232876
  signList.push(sign);
232730
232877
  }
232731
232878
  }
232732
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
232879
+ if (_node7 instanceof BaseCombineNode/* BaseCombineNode */.V) {
232733
232880
  // 医生签名不存在的情况不在深层调用深层遍历
232734
- getAllNodes(node.childNodes);
232881
+ getAllNodes(_node7.childNodes);
232735
232882
  }
232736
232883
  }
232737
232884
  };
@@ -232750,15 +232897,15 @@ var VueController = /*#__PURE__*/function () {
232750
232897
  var isHasDoctorSign = false;
232751
232898
  var getAllNodes = function getAllNodes(nodes) {
232752
232899
  for (var i = 0; i < nodes.length; i++) {
232753
- var node = nodes[i];
232754
- if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
232900
+ var _node8 = nodes[i];
232901
+ if (_node8 instanceof SignNode/* SignNode */.N && _node8.type !== 3 && _node8.imgSrc) {
232755
232902
  isHasDoctorSign = true;
232756
232903
  break; // 医生签名已存在的情况中断当前层的遍历
232757
232904
  }
232758
232905
 
232759
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
232906
+ if (_node8 instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
232760
232907
  // 医生签名已存在的情况不在深层调用深层遍历
232761
- getAllNodes(node.childNodes);
232908
+ getAllNodes(_node8.childNodes);
232762
232909
  }
232763
232910
  }
232764
232911
  };
@@ -232781,13 +232928,13 @@ var VueController = /*#__PURE__*/function () {
232781
232928
  }, {
232782
232929
  key: "html2Xml",
232783
232930
  value: function html2Xml(json) {
232784
- var _this7 = this;
232931
+ var _this8 = this;
232785
232932
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
232786
232933
  var headerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.header);
232787
232934
  var footerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.footer);
232788
232935
  var mainNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.main);
232789
232936
  var insertParaNode = function insertParaNode(area, index) {
232790
- var node = new ParagraphNode/* ParagraphNode */.C(_this7._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
232937
+ var node = new ParagraphNode/* ParagraphNode */.C(_this8._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
232791
232938
  if (area == 'header') {
232792
232939
  node.rootPath = 'header/0';
232793
232940
  headerNodes.splice(index, 0, node);
@@ -232907,8 +233054,8 @@ var VueController = /*#__PURE__*/function () {
232907
233054
  var rowInfosArray = new Array();
232908
233055
  var rows = node.rowInfos.length - 1;
232909
233056
  var cols = node.colInfos.length - 1;
232910
- for (var _i5 = 0; _i5 <= rows; _i5++) {
232911
- var rowInfo = node.rowInfos[_i5];
233057
+ for (var _i6 = 0; _i6 <= rows; _i6++) {
233058
+ var rowInfo = node.rowInfos[_i6];
232912
233059
  var _customProperties = {
232913
233060
  customProperty: Array(rowInfo.rowProperty.customProperties)
232914
233061
  };
@@ -232967,8 +233114,8 @@ var VueController = /*#__PURE__*/function () {
232967
233114
  var defaultColPropJson = JSON.parse(JSON.stringify(defaultColProp));
232968
233115
  //处理列宽
232969
233116
  var colInfosArray = new Array();
232970
- for (var _i6 = 0; _i6 <= cols; _i6++) {
232971
- var colInfo = node.colInfos[_i6];
233117
+ for (var _i7 = 0; _i7 <= cols; _i7++) {
233118
+ var colInfo = node.colInfos[_i7];
232972
233119
  var _customProperties2 = {
232973
233120
  customProperty: Array(colInfo.colProperty.customProperties)
232974
233121
  };
@@ -233072,7 +233219,7 @@ var VueController = /*#__PURE__*/function () {
233072
233219
  defaultColProperty: defaultColProp,
233073
233220
  item: colInfosArray
233074
233221
  };
233075
- var childNodes = {
233222
+ var _childNodes = {
233076
233223
  defaultCellProperty: defaultCellProp,
233077
233224
  item: rowArrays
233078
233225
  };
@@ -233086,7 +233233,7 @@ var VueController = /*#__PURE__*/function () {
233086
233233
  tableProperty: tableProperty,
233087
233234
  rowInfos: rowInfos,
233088
233235
  colInfos: colInfos,
233089
- childNodes: childNodes
233236
+ childNodes: _childNodes
233090
233237
  };
233091
233238
  return {
233092
233239
  TableNode: retJson
@@ -233095,8 +233242,8 @@ var VueController = /*#__PURE__*/function () {
233095
233242
  if (node instanceof CellNode/* CellNode */.D) {
233096
233243
  //处理子节点
233097
233244
  var childArray = new Array();
233098
- for (var _i7 = 0; _i7 < node.childNodes.length; _i7++) {
233099
- var anode = node.childNodes[_i7];
233245
+ for (var _i8 = 0; _i8 < node.childNodes.length; _i8++) {
233246
+ var anode = node.childNodes[_i8];
233100
233247
  var nodeJson = void 0;
233101
233248
  if (anode instanceof TextNode/* TextNode */.R) {
233102
233249
  if (anode.text !== '') {
@@ -233172,7 +233319,7 @@ var VueController = /*#__PURE__*/function () {
233172
233319
  }
233173
233320
  var colNo = node.row.indexOf(node);
233174
233321
  var rowNo = node.table.rows.indexOf(node.row);
233175
- var _childNodes = {
233322
+ var _childNodes2 = {
233176
233323
  TempNode: childArray
233177
233324
  };
233178
233325
  var cellText = node.getCellText();
@@ -233182,7 +233329,7 @@ var VueController = /*#__PURE__*/function () {
233182
233329
  crossLineType: 'ctNone',
233183
233330
  rowSpan: node.rowSpan,
233184
233331
  colSpan: node.colSpan,
233185
- childNodes: _childNodes,
233332
+ childNodes: _childNodes2,
233186
233333
  rowNo: rowNo,
233187
233334
  colNo: colNo,
233188
233335
  cellProperty: cellPropertyJson,
@@ -233211,10 +233358,10 @@ var VueController = /*#__PURE__*/function () {
233211
233358
  };
233212
233359
  var xmlRoot = '<?xml version="1.0" encoding="utf-8"?>';
233213
233360
  var doc2XmlJson = function doc2XmlJson(nodes) {
233214
- for (var _i8 = 0; _i8 < nodes.length; _i8++) {
233215
- var node = nodes[_i8];
233216
- if (node instanceof TextNode/* TextNode */.R || node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TableNode/* TableNode */.Fh || node instanceof ImageNode/* ImageNode */.H) {
233217
- var nodeJson = node2Json(node);
233361
+ for (var _i9 = 0; _i9 < nodes.length; _i9++) {
233362
+ var _node9 = nodes[_i9];
233363
+ if (_node9 instanceof TextNode/* TextNode */.R || _node9 instanceof ParagraphNode/* ParagraphNode */.C || _node9 instanceof TableNode/* TableNode */.Fh || _node9 instanceof ImageNode/* ImageNode */.H) {
233364
+ var nodeJson = node2Json(_node9);
233218
233365
  xmlRoot += x2js.js2xml(nodeJson);
233219
233366
  }
233220
233367
  }
@@ -233280,7 +233427,7 @@ var VueController = /*#__PURE__*/function () {
233280
233427
  }, {
233281
233428
  key: "updateNurseRecord",
233282
233429
  value: function updateNurseRecord(table, operType, rowIndex, data) {
233283
- var _this8 = this;
233430
+ var _this9 = this;
233284
233431
  var keys = Object.keys(data);
233285
233432
  var backfill = function backfill(r) {
233286
233433
  for (var i = 0; i < keys.length; i++) {
@@ -233289,7 +233436,7 @@ var VueController = /*#__PURE__*/function () {
233289
233436
  if (cell) {
233290
233437
  var text = data[keys[i]];
233291
233438
  cell.childNodes.splice(1, cell.childNodes.length);
233292
- var textNode = new TextNode/* TextNode */.R(_this8._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, cell.childNodes[0].styleIndex);
233439
+ var textNode = new TextNode/* TextNode */.R(_this9._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, cell.childNodes[0].styleIndex);
233293
233440
  cell.drawCell.needUpdate = true;
233294
233441
  cell.childNodes.push(textNode);
233295
233442
  }
@@ -233442,9 +233589,9 @@ var VueController = /*#__PURE__*/function () {
233442
233589
  paragraphRecordId: recordId
233443
233590
  });
233444
233591
  }
233445
- var node = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null);
233446
- if (node) {
233447
- nodes.push(node);
233592
+ var _node10 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null);
233593
+ if (_node10) {
233594
+ nodes.push(_node10);
233448
233595
  }
233449
233596
  }
233450
233597
  if (nodes.length > 0) {
@@ -233539,17 +233686,17 @@ var VueController = /*#__PURE__*/function () {
233539
233686
  }, {
233540
233687
  key: "updateAllCodeElements",
233541
233688
  value: function updateAllCodeElements(element) {
233542
- var _this9 = this;
233689
+ var _this10 = this;
233543
233690
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
233544
233691
  var ret = [];
233545
233692
  var getAllNodes = function getAllNodes(nodes) {
233546
233693
  for (var i = 0; i < nodes.length; i++) {
233547
- var node = nodes[i];
233548
- if (node instanceof QrcodeNode/* QrcodeNode */.d) {
233549
- ret.push(node);
233694
+ var _node11 = nodes[i];
233695
+ if (_node11 instanceof QrcodeNode/* QrcodeNode */.d) {
233696
+ ret.push(_node11);
233550
233697
  }
233551
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
233552
- getAllNodes(node.childNodes);
233698
+ if (_node11 instanceof BaseCombineNode/* BaseCombineNode */.V) {
233699
+ getAllNodes(_node11.childNodes);
233553
233700
  }
233554
233701
  }
233555
233702
  };
@@ -233568,7 +233715,7 @@ var VueController = /*#__PURE__*/function () {
233568
233715
  if (ret.length > 0) {
233569
233716
  ret.forEach(function (v) {
233570
233717
  if (v.name === element.name) {
233571
- _this9.updateCodeContent(v, element.content);
233718
+ _this10.updateCodeContent(v, element.content);
233572
233719
  }
233573
233720
  });
233574
233721
  this.rebuildAll(false);
@@ -233581,12 +233728,12 @@ var VueController = /*#__PURE__*/function () {
233581
233728
  var ret = [];
233582
233729
  var getAllNodes = function getAllNodes(nodes) {
233583
233730
  for (var i = 0; i < nodes.length; i++) {
233584
- var node = nodes[i];
233585
- if (node instanceof QrcodeNode/* QrcodeNode */.d) {
233586
- ret.push(node);
233731
+ var _node12 = nodes[i];
233732
+ if (_node12 instanceof QrcodeNode/* QrcodeNode */.d) {
233733
+ ret.push(_node12);
233587
233734
  }
233588
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
233589
- getAllNodes(node.childNodes);
233735
+ if (_node12 instanceof BaseCombineNode/* BaseCombineNode */.V) {
233736
+ getAllNodes(_node12.childNodes);
233590
233737
  }
233591
233738
  }
233592
233739
  };
@@ -233641,7 +233788,7 @@ var VueController = /*#__PURE__*/function () {
233641
233788
  for (var j = 0; j < pathArr.length; j++) {
233642
233789
  var apath = pathArr[j];
233643
233790
  var nodeLastPath = pathArr[j];
233644
- for (var _i9 = 0; _i9 < findText.length; _i9++) {
233791
+ for (var _i10 = 0; _i10 < findText.length; _i10++) {
233645
233792
  var np = hoEditorFactory.docTree.findNodePositionByPath(apath);
233646
233793
  if (np && np.node) {
233647
233794
  nodeLastPath = hoEditorFactory.docTree.getNodeLastPath(np.node);
@@ -233896,10 +234043,10 @@ var VueController = /*#__PURE__*/function () {
233896
234043
  value: function moveCaretToTextInputField(node) {
233897
234044
  var endNode = node.EndMarkNode.previousLeaf();
233898
234045
  if (endNode) {
233899
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
233900
- var toPath = hoEditorFactory.docTree.getNodeLastPath(endNode);
233901
- hoEditorFactory.drawTree.moveCaretToPath(toPath);
233902
- hoEditorFactory.docTree.curDomRange.setSamePath(toPath);
234046
+ var _hoEditorFactory2 = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
234047
+ var toPath = _hoEditorFactory2.docTree.getNodeLastPath(endNode);
234048
+ _hoEditorFactory2.drawTree.moveCaretToPath(toPath);
234049
+ _hoEditorFactory2.docTree.curDomRange.setSamePath(toPath);
233903
234050
  }
233904
234051
  }
233905
234052
  }, {
@@ -233928,11 +234075,11 @@ var VueController = /*#__PURE__*/function () {
233928
234075
  var table = null;
233929
234076
  var i = 0;
233930
234077
  for (var k = 0; k < hoEditorFactory.docTree.mainNodes.length; k++) {
233931
- var node = hoEditorFactory.docTree.mainNodes[k];
233932
- if (node instanceof TableNode/* TableNode */.Fh) {
234078
+ var _node13 = hoEditorFactory.docTree.mainNodes[k];
234079
+ if (_node13 instanceof TableNode/* TableNode */.Fh) {
233933
234080
  i++;
233934
234081
  if (i === index) {
233935
- table = node;
234082
+ table = _node13;
233936
234083
  break;
233937
234084
  }
233938
234085
  }
@@ -234016,8 +234163,8 @@ var VueController = /*#__PURE__*/function () {
234016
234163
  value: function () {
234017
234164
  var _importWordFile = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee12(fileStr) {
234018
234165
  var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent, nodes;
234019
- return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee12$(_context13) {
234020
- while (1) switch (_context13.prev = _context13.next) {
234166
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee12$(_context14) {
234167
+ while (1) switch (_context14.prev = _context14.next) {
234021
234168
  case 0:
234022
234169
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
234023
234170
  hoEditorFactory.isThrowError = false;
@@ -234026,10 +234173,10 @@ var VueController = /*#__PURE__*/function () {
234026
234173
  endPath = _curDomRange.normalize().endPath;
234027
234174
  changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.openLocalFiles);
234028
234175
  if (!hoEditorFactory.docTree.changing(changingEvent)) {
234029
- _context13.next = 14;
234176
+ _context14.next = 14;
234030
234177
  break;
234031
234178
  }
234032
- _context13.next = 9;
234179
+ _context14.next = 9;
234033
234180
  return hoEditorFactory.docController.initBlankDoc();
234034
234181
  case 9:
234035
234182
  hoEditorFactory.drawTree.inViewPages = [0];
@@ -234041,7 +234188,7 @@ var VueController = /*#__PURE__*/function () {
234041
234188
  hoEditorFactory.undoService.stack = [];
234042
234189
  case 15:
234043
234190
  case "end":
234044
- return _context13.stop();
234191
+ return _context14.stop();
234045
234192
  }
234046
234193
  }, _callee12, this);
234047
234194
  }));
@@ -234059,7 +234206,7 @@ var VueController = /*#__PURE__*/function () {
234059
234206
  }, {
234060
234207
  key: "getElementChangeRecords",
234061
234208
  value: function getElementChangeRecords() {
234062
- var _this10 = this;
234209
+ var _this11 = this;
234063
234210
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
234064
234211
  var recordArr = new Array();
234065
234212
  var records = hoEditorFactory.docTree.elementChangeRecords;
@@ -234104,7 +234251,7 @@ var VueController = /*#__PURE__*/function () {
234104
234251
  }
234105
234252
  } else {
234106
234253
  var id = key.split("|")[0];
234107
- var node = _this10.getNodeByID('all', id);
234254
+ var _node14 = _this11.getNodeByID('all', id);
234108
234255
  }
234109
234256
  });
234110
234257
  return recordArr;