hoeditor-web 2.0.51-rc.1 → 2.0.53

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.
@@ -13440,12 +13440,12 @@ var DocController = /*#__PURE__*/function () {
13440
13440
 
13441
13441
  }, {
13442
13442
  key: "insertNodeByPath",
13443
- value: function insertNodeByPath(path, node) {
13443
+ value: function insertNodeByPath(path, node, isResetFieldText) {
13444
13444
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
13445
13445
  var curRange = hoEditorFactory.docTree.curDomRange.normalize();
13446
13446
  var parentNode = node.parentNode;
13447
13447
 
13448
- if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1) {
13448
+ if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
13449
13449
  var firstPath = parentNode.StartMarkNode.getNodePath();
13450
13450
  var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
13451
13451
  curRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, firstPath, lastPath);
@@ -13629,7 +13629,7 @@ var DocController = /*#__PURE__*/function () {
13629
13629
  } else {
13630
13630
  var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
13631
13631
 
13632
- strPath = _this.insertNodeByPath(strPath, _textNode);
13632
+ strPath = _this.insertNodeByPath(strPath, _textNode, oldCanModifyContent == undefined ? false : true);
13633
13633
  }
13634
13634
  } else {
13635
13635
  var styleIndex = hoEditorFactory.docTree.curStyleIndex;
@@ -13640,7 +13640,7 @@ var DocController = /*#__PURE__*/function () {
13640
13640
 
13641
13641
  var _textNode2 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, aText, styleIndex);
13642
13642
 
13643
- strPath = _this.insertNodeByPath(strPath, _textNode2);
13643
+ strPath = _this.insertNodeByPath(strPath, _textNode2, oldCanModifyContent == undefined ? false : true);
13644
13644
  } // if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
13645
13645
  // pNode.canModifyContent = oldCanModifyContent;
13646
13646
  // pNode.update();
@@ -14727,8 +14727,11 @@ var DocController = /*#__PURE__*/function () {
14727
14727
  node.update();
14728
14728
 
14729
14729
  if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
14730
- node.parentNode.drawCell.needUpdate = true;
14731
- node.parentNode.table.update();
14730
+ node.parentNode.drawCell.needUpdate = true; //增加判断只有多页表格才更新table.update,以处理编辑元素 卡慢问题
14731
+
14732
+ if (node.parentNode.drawCell.drawPageCells.length > 1) {
14733
+ node.parentNode.table.update();
14734
+ }
14732
14735
  }
14733
14736
 
14734
14737
  return "";
@@ -49203,6 +49206,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49203
49206
  value: function paint(dTop, dParent, restHeight) {
49204
49207
  var totalHeight = 0;
49205
49208
  var aTop = dTop;
49209
+
49210
+ if (this.table.tableProperty.fixedOnePage) {
49211
+ restHeight = Infinity;
49212
+ }
49213
+
49206
49214
  var pageRestHeight = restHeight;
49207
49215
  var bStartRowFinished = true;
49208
49216
 
@@ -49696,21 +49704,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49696
49704
  var row = -1;
49697
49705
  var col = -1;
49698
49706
 
49699
- for (var r = this._startRow; r <= this._endRow; r++) {
49700
- var _this$_partRowHeights;
49701
-
49702
- var rowHeight = (_this$_partRowHeights = this._partRowHeights.get(r)) === null || _this$_partRowHeights === void 0 ? void 0 : _this$_partRowHeights.rowHeight;
49703
-
49704
- if (rowHeight) {
49705
- if (y >= top && y <= top + rowHeight) {
49706
- row = r;
49707
- break;
49708
- }
49709
-
49710
- top += rowHeight;
49711
- }
49712
- }
49713
-
49714
49707
  for (var c = 0; c < this._table.colCount; c++) {
49715
49708
  var colWidth = this._table.colInfos[c].colWidth;
49716
49709
 
@@ -49726,12 +49719,49 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49726
49719
  left += colWidth;
49727
49720
  }
49728
49721
 
49722
+ var r = this._startRow;
49723
+
49724
+ while (r <= this._endRow) {
49725
+ var _this$_partRowHeights;
49726
+
49727
+ //for (let r = this._startRow; r <= this._endRow; r++) {
49728
+ var rowHeight = (_this$_partRowHeights = this._partRowHeights.get(r)) === null || _this$_partRowHeights === void 0 ? void 0 : _this$_partRowHeights.rowHeight;
49729
+ var aHeight = rowHeight;
49730
+ var rowSpan = 1;
49731
+
49732
+ if (this._table.tableProperty.isAutoChangeLine) {
49733
+ var _this$_table$getMainC15 = this._table.getMainCell(r, col),
49734
+ _this$_table$getMainC16 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC15, 3),
49735
+ mainCell = _this$_table$getMainC16[0],
49736
+ mr = _this$_table$getMainC16[1],
49737
+ mc = _this$_table$getMainC16[2];
49738
+
49739
+ var partCell = mainCell.drawCell.getDrawPageCell(this);
49740
+
49741
+ if (partCell && aHeight) {
49742
+ rowHeight = Math.max(aHeight, partCell.docHeight);
49743
+ }
49744
+ } //this._partRowHeights.get(r)?.rowHeight
49745
+
49746
+
49747
+ if (aHeight && rowHeight) {
49748
+ if (y >= top && y <= top + rowHeight) {
49749
+ row = r;
49750
+ break;
49751
+ }
49752
+
49753
+ top += aHeight;
49754
+ }
49755
+
49756
+ r += rowSpan;
49757
+ }
49758
+
49729
49759
  if (row >= 0 && col >= 0) {
49730
- var _this$_table$getMainC15 = this._table.getMainCell(row, col),
49731
- _this$_table$getMainC16 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC15, 3),
49732
- cell = _this$_table$getMainC16[0],
49733
- mr = _this$_table$getMainC16[1],
49734
- mc = _this$_table$getMainC16[2];
49760
+ var _this$_table$getMainC17 = this._table.getMainCell(row, col),
49761
+ _this$_table$getMainC18 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC17, 3),
49762
+ cell = _this$_table$getMainC18[0],
49763
+ _mr2 = _this$_table$getMainC18[1],
49764
+ _mc2 = _this$_table$getMainC18[2];
49735
49765
 
49736
49766
  var ret = cell.drawCell.getDrawPageCell(this);
49737
49767
 
@@ -49764,11 +49794,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49764
49794
  var ar = r;
49765
49795
 
49766
49796
  if (!cell) {
49767
- var _this$_table$getMainC17 = this._table.getMainCell(r, c),
49768
- _this$_table$getMainC18 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC17, 3),
49769
- mainCell = _this$_table$getMainC18[0],
49770
- mr = _this$_table$getMainC18[1],
49771
- mc = _this$_table$getMainC18[2];
49797
+ var _this$_table$getMainC19 = this._table.getMainCell(r, c),
49798
+ _this$_table$getMainC20 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC19, 3),
49799
+ mainCell = _this$_table$getMainC20[0],
49800
+ mr = _this$_table$getMainC20[1],
49801
+ mc = _this$_table$getMainC20[2];
49772
49802
 
49773
49803
  cell = mainCell;
49774
49804
  ar = mr;
@@ -49822,11 +49852,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49822
49852
  var rowPaintHeight = Math.min(rowRestHeight, pageRestHeight);
49823
49853
 
49824
49854
  for (var c = 0; c < this._table.colCount; c++) {
49825
- var _this$_table$getMainC19 = this._table.getMainCell(r, c),
49826
- _this$_table$getMainC20 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC19, 3),
49827
- cell = _this$_table$getMainC20[0],
49828
- mr = _this$_table$getMainC20[1],
49829
- mc = _this$_table$getMainC20[2];
49855
+ var _this$_table$getMainC21 = this._table.getMainCell(r, c),
49856
+ _this$_table$getMainC22 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC21, 3),
49857
+ cell = _this$_table$getMainC22[0],
49858
+ mr = _this$_table$getMainC22[1],
49859
+ mc = _this$_table$getMainC22[2];
49830
49860
 
49831
49861
  var cellRestHeight = rowPaintHeight; //同一行的合并列只绘制一次
49832
49862
 
@@ -49887,11 +49917,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49887
49917
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.table.hoEditorFactoryID);
49888
49918
 
49889
49919
  if (this.table.tableProperty.fixedOnePage) {
49890
- if (this.table.drawTable.dHeight + 28 > this._maxHeight) {
49891
- return;
49892
- } else {
49893
- dRestHeight = dRestHeight;
49894
- }
49920
+ dRestHeight = Infinity;
49895
49921
  }
49896
49922
 
49897
49923
  var pageRestHeight = dRestHeight;
@@ -49955,11 +49981,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49955
49981
  var isEmptyRow = true; //是否绘制了一个单元格
49956
49982
 
49957
49983
  for (var c = 0; c < this._table.colCount; c++) {
49958
- var _this$_table$getMainC21 = this._table.getMainCell(r, c),
49959
- _this$_table$getMainC22 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC21, 3),
49960
- cell = _this$_table$getMainC22[0],
49961
- mr = _this$_table$getMainC22[1],
49962
- mc = _this$_table$getMainC22[2];
49984
+ var _this$_table$getMainC23 = this._table.getMainCell(r, c),
49985
+ _this$_table$getMainC24 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC23, 3),
49986
+ cell = _this$_table$getMainC24[0],
49987
+ mr = _this$_table$getMainC24[1],
49988
+ mc = _this$_table$getMainC24[2];
49963
49989
 
49964
49990
  if (cell && mc === c && mr + cell.rowSpan - 1 === r) {
49965
49991
  isEmptyRow = false;
@@ -49980,18 +50006,18 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49980
50006
  }
49981
50007
 
49982
50008
  for (var _c2 = 0; _c2 < this._table.colCount; _c2++) {
49983
- var _this$_table$getMainC23 = this._table.getMainCell(r, _c2),
49984
- _this$_table$getMainC24 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC23, 3),
49985
- _cell2 = _this$_table$getMainC24[0],
49986
- _mr2 = _this$_table$getMainC24[1],
49987
- _mc2 = _this$_table$getMainC24[2];
50009
+ var _this$_table$getMainC25 = this._table.getMainCell(r, _c2),
50010
+ _this$_table$getMainC26 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC25, 3),
50011
+ _cell2 = _this$_table$getMainC26[0],
50012
+ _mr3 = _this$_table$getMainC26[1],
50013
+ _mc3 = _this$_table$getMainC26[2];
49988
50014
 
49989
- if (_cell2 && _mc2 === _c2 && (_mr2 + _cell2.rowSpan - 1 == r || rowRestHeight > pageRestHeight - 10 || pageRestHeight - rowRestHeight < hoEditorFactory.defaultLineHeight)) {
50015
+ if (_cell2 && _mc3 === _c2 && (_mr3 + _cell2.rowSpan - 1 == r || rowRestHeight > pageRestHeight - 10 || pageRestHeight - rowRestHeight < hoEditorFactory.defaultLineHeight)) {
49990
50016
  var startChildIndex = 0;
49991
50017
  var partCellindex = -1;
49992
50018
  var dPrevPartCell = null;
49993
50019
 
49994
- if (prevdPageTable && _mr2 <= this._startRow) {
50020
+ if (prevdPageTable && _mr3 <= this._startRow) {
49995
50021
  dPrevPartCell = _cell2.drawCell.getDrawPageCell(prevdPageTable);
49996
50022
 
49997
50023
  if (dPrevPartCell) {
@@ -50046,7 +50072,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50046
50072
  _cell2.drawCell.needUpdate = true;
50047
50073
  }
50048
50074
 
50049
- if (r === _mr2) {
50075
+ if (r === _mr3) {
50050
50076
  dPartCell.maxHeight = pageRestHeight;
50051
50077
  dPartCell.dHeight = Math.min(rowRestHeight, pageRestHeight);
50052
50078
  } else {
@@ -50148,11 +50174,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50148
50174
  //跨行单元格只在绘制所跨最后一行时绘制
50149
50175
  continue;
50150
50176
  } else if (!cell) {
50151
- var _this$_table$getMainC25 = this._table.getMainCell(r, j),
50152
- _this$_table$getMainC26 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC25, 3),
50153
- mainCell = _this$_table$getMainC26[0],
50154
- mr = _this$_table$getMainC26[1],
50155
- mc = _this$_table$getMainC26[2];
50177
+ var _this$_table$getMainC27 = this._table.getMainCell(r, j),
50178
+ _this$_table$getMainC28 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC27, 3),
50179
+ mainCell = _this$_table$getMainC28[0],
50180
+ mr = _this$_table$getMainC28[1],
50181
+ mc = _this$_table$getMainC28[2];
50156
50182
 
50157
50183
  if (mr + mainCell.rowSpan - 1 === r && mc === j) {
50158
50184
  cell = mainCell;
@@ -51162,7 +51188,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51162
51188
  bitmap.setTransform(bitmap.x, bitmap.y, scale, scale);
51163
51189
  fingerBitmap.setTransform(fingerBitmap.x, fingerBitmap.y, fingerscale, fingerscale);
51164
51190
  var hitArea = new createjs.Shape();
51165
- hitArea.graphics.beginFill("#000").drawRect(0, 0, hitWidth * scale, hitHeight * scale); //这里是图片大小
51191
+ hitArea.graphics.beginFill("#000").drawRect(fingerBitmap.x, 0, fingerWidth * fingerscale, fingerHeight * fingerscale); //这里是图片大小
51166
51192
 
51167
51193
  bitmap.hitArea = hitArea;
51168
51194
  fingerBitmap.hitArea = hitArea;
@@ -62686,7 +62712,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62686
62712
  //if(nodes.length == 0) return;
62687
62713
 
62688
62714
  if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
62689
- _context.next = 30;
62715
+ _context.next = 33;
62690
62716
  break;
62691
62717
  }
62692
62718
 
@@ -62694,19 +62720,29 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62694
62720
 
62695
62721
  case 13:
62696
62722
  if (!(n < nodes.length)) {
62697
- _context.next = 30;
62723
+ _context.next = 33;
62698
62724
  break;
62699
62725
  }
62700
62726
 
62701
62727
  node = nodes[n];
62702
62728
 
62729
+ if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_21__/* .MarkNode */ .j && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_20__/* .TextInputFieldNode */ .re && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete)) {
62730
+ _context.next = 18;
62731
+ break;
62732
+ }
62733
+
62734
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
62735
+
62736
+ return _context.abrupt("return", 0);
62737
+
62738
+ case 18:
62703
62739
  if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_28__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_20__/* .TextInputFieldNode */ .re)) {
62704
- _context.next = 24;
62740
+ _context.next = 27;
62705
62741
  break;
62706
62742
  }
62707
62743
 
62708
62744
  if (node.isAllowDelete) {
62709
- _context.next = 24;
62745
+ _context.next = 27;
62710
62746
  break;
62711
62747
  }
62712
62748
 
@@ -62732,9 +62768,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62732
62768
 
62733
62769
  return _context.abrupt("return", 0);
62734
62770
 
62735
- case 24:
62771
+ case 27:
62736
62772
  if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_33__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
62737
- _context.next = 27;
62773
+ _context.next = 30;
62738
62774
  break;
62739
62775
  }
62740
62776
 
@@ -62742,16 +62778,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62742
62778
 
62743
62779
  return _context.abrupt("return", 0);
62744
62780
 
62745
- case 27:
62781
+ case 30:
62746
62782
  n++;
62747
62783
  _context.next = 13;
62748
62784
  break;
62749
62785
 
62750
- case 30:
62786
+ case 33:
62751
62787
  pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
62752
62788
 
62753
62789
  if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_20__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
62754
- _context.next = 36;
62790
+ _context.next = 39;
62755
62791
  break;
62756
62792
  }
62757
62793
 
@@ -62764,24 +62800,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62764
62800
  });
62765
62801
 
62766
62802
  if (_res[0]) {
62767
- _context.next = 36;
62803
+ _context.next = 39;
62768
62804
  break;
62769
62805
  }
62770
62806
 
62771
62807
  return _context.abrupt("return");
62772
62808
 
62773
- case 36:
62809
+ case 39:
62774
62810
  changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_14__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_12__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
62775
62811
  // hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
62776
62812
 
62777
62813
  if (currRange.npStart.node && currRange.npEnd.node) {
62778
- _context.next = 39;
62814
+ _context.next = 42;
62779
62815
  break;
62780
62816
  }
62781
62817
 
62782
62818
  throw _events_Exception__WEBPACK_IMPORTED_MODULE_22__/* .Exception.NodeNotFound */ .P.NodeNotFound();
62783
62819
 
62784
- case 39:
62820
+ case 42:
62785
62821
  // const [startPath, endPath] = DomRange.skipStartEndTablePath(
62786
62822
  // this._hoEditorFactory,
62787
62823
  // currRange.startPath,
@@ -62794,33 +62830,33 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62794
62830
  res = this.deleteRange(currRange.endPath, currRange.startPath);
62795
62831
 
62796
62832
  if (!(res == 1)) {
62797
- _context.next = 51;
62833
+ _context.next = 54;
62798
62834
  break;
62799
62835
  }
62800
62836
 
62801
62837
  changeEvent.beforeChangePath = startPath;
62802
62838
  changeEvent.afterChangePath = this._tmp.start;
62803
- _context.next = 49;
62839
+ _context.next = 52;
62804
62840
  return hoEditorFactory.docTree.change(changeEvent);
62805
62841
 
62806
- case 49:
62842
+ case 52:
62807
62843
  cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_18__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_16__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
62808
62844
  hoEditorFactory.docTree.selectChange(cgEvent);
62809
62845
 
62810
- case 51:
62846
+ case 54:
62811
62847
  hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
62812
62848
  hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
62813
62849
  aNode = currRange.npStart.node;
62814
62850
 
62815
62851
  if (!(aNode && pnode)) {
62816
- _context.next = 57;
62852
+ _context.next = 60;
62817
62853
  break;
62818
62854
  }
62819
62855
 
62820
- _context.next = 57;
62856
+ _context.next = 60;
62821
62857
  return this.ParentRepaint(pnode);
62822
62858
 
62823
- case 57:
62859
+ case 60:
62824
62860
  case "end":
62825
62861
  return _context.stop();
62826
62862
  }
@@ -206655,7 +206691,7 @@ var SignNode = __webpack_require__(34450);
206655
206691
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
206656
206692
  var ParagraphNode = __webpack_require__(14208);
206657
206693
  ;// CONCATENATED MODULE: ./src/components/version.ts
206658
- /* harmony default export */ var version = ('2.0.51-rc.1');
206694
+ /* harmony default export */ var version = ('2.0.53');
206659
206695
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
206660
206696
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
206661
206697
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -209567,6 +209603,14 @@ var HTMLconverter2 = /*#__PURE__*/function () {
209567
209603
  return tmp;
209568
209604
  } else {
209569
209605
  for (var i = 0; i < jnode.childNodes.length; i++) {
209606
+ if (jnode.childNodes[i].nodeName.toLowerCase() == "img") {
209607
+ var src = jnode.childNodes[i].src;
209608
+
209609
+ if (src && src.toString().substring(src.length - 4, src.length) === ".svg") {
209610
+ continue;
209611
+ }
209612
+ }
209613
+
209570
209614
  var fun = this.convert.get(jnode.childNodes[i].nodeName.toLowerCase());
209571
209615
 
209572
209616
  if (fun) {
@@ -209827,7 +209871,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
209827
209871
 
209828
209872
  var width = styleobj.width ? styleobj.width.replace("px", "") : 20;
209829
209873
  var height = styleobj.height ? styleobj.height.replace("px", "") : 20;
209830
- var node = new ImageNode/* ImageNode */.H(this._hoEditorFactoryID, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes, null, BaseNode/* NodeType.ntImage */.Jq.ntImage, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID("IMG"), jquery_default()(jnode).attr("src") || "", width, height);
209874
+ var node = new ImageNode/* ImageNode */.H(this._hoEditorFactoryID, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes, null, BaseNode/* NodeType.ntImage */.Jq.ntImage, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID("IMG"), jquery_default()(jnode).attr("src") || "", Number(width), Number(height));
209831
209875
  return [node];
209832
209876
  }
209833
209877
  }, {
@@ -210041,7 +210085,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
210041
210085
  var textstyle = this.HTMLStyleToParsStyle(styleobj);
210042
210086
  if (textstyle.lineSpace === 0) textstyle.lineSpace = undefined;
210043
210087
  var index = hoEditorFactory.docTree.styleCompare(textstyle);
210044
- var node = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath), index);
210088
+ var node = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath), index //hoEditorFactory.docTree.curParaNo
210089
+ );
210045
210090
  tmp.push(node);
210046
210091
 
210047
210092
  if (jnode.childNodes.length == 0) {
@@ -213227,7 +213272,7 @@ var NodeConvert = /*#__PURE__*/function () {
213227
213272
  if (!uidArr[i]) continue;
213228
213273
 
213229
213274
  if (i > 0) {
213230
- var paraNode = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, 0);
213275
+ var paraNode = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, hoEditorFactory.docTree.curParaNo);
213231
213276
  nodes.push(paraNode);
213232
213277
  }
213233
213278
 
@@ -219013,7 +219058,7 @@ var VueController = /*#__PURE__*/function () {
219013
219058
 
219014
219059
  }, {
219015
219060
  key: "getAllElements",
219016
- value: function getAllElements() {
219061
+ value: function getAllElements(area) {
219017
219062
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
219018
219063
  var ret = [];
219019
219064
 
@@ -219023,21 +219068,29 @@ var VueController = /*#__PURE__*/function () {
219023
219068
 
219024
219069
  if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re || node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z) {
219025
219070
  // if (node.readType === 1) {
219026
- var elementObj = {
219027
- id: "",
219028
- name: "",
219029
- text: "",
219071
+ // const elementObj: Record<string, string | undefined | object> = {
219072
+ // id: "",
219073
+ // name: "",
219074
+ // text: "",
219075
+ // dataVerify: undefined,
219076
+ // innerIdentifier: "",
219077
+ // identifierFormat: "",
219078
+ // };
219079
+ // elementObj.id = node.id;
219080
+ // elementObj.name = node.name;
219081
+ // elementObj.text = node.text;
219082
+ // elementObj.innerIdentifier = node.innerIdentifier;
219083
+ // elementObj.identifierFormat = node.identifierFormat;
219084
+ // elementObj.customProperty = node.customProperty;
219085
+ ret.push({
219086
+ id: node.id,
219087
+ name: node.name,
219088
+ text: node.text,
219030
219089
  dataVerify: undefined,
219031
- innerIdentifier: "",
219032
- identifierFormat: ""
219033
- };
219034
- elementObj.id = node.id;
219035
- elementObj.name = node.name;
219036
- elementObj.text = node.text;
219037
- elementObj.innerIdentifier = node.innerIdentifier;
219038
- elementObj.identifierFormat = node.identifierFormat;
219039
- elementObj.customProperty = node.customProperty;
219040
- ret.push(elementObj); // }
219090
+ innerIdentifier: node.innerIdentifier,
219091
+ identifierFormat: node.identifierFormat,
219092
+ customProperty: node.customProperty
219093
+ }); // }
219041
219094
  }
219042
219095
 
219043
219096
  if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
@@ -219046,20 +219099,27 @@ var VueController = /*#__PURE__*/function () {
219046
219099
  }
219047
219100
  };
219048
219101
 
219049
- var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
219102
+ if (area == undefined || area == 'header') {
219103
+ var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
219050
219104
 
219051
- for (var h = 0; h < headerDocTree.length; h++) {
219052
- if (!headerDocTree[h]) continue;
219053
- getAllNodes(headerDocTree[h].subDocNodes);
219105
+ for (var h = 0; h < headerDocTree.length; h++) {
219106
+ if (!headerDocTree[h]) continue;
219107
+ getAllNodes(headerDocTree[h].subDocNodes);
219108
+ }
219054
219109
  }
219055
219110
 
219056
- var mainNodes = hoEditorFactory.docTree.mainNodes;
219057
- getAllNodes(mainNodes);
219058
- var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
219111
+ if (area == undefined || area == 'main') {
219112
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
219113
+ getAllNodes(mainNodes);
219114
+ }
219059
219115
 
219060
- for (var f = 0; f < footerDocTree.length; f++) {
219061
- if (!footerDocTree[f]) continue;
219062
- getAllNodes(footerDocTree[f].subDocNodes);
219116
+ if (area == undefined || area == 'footer') {
219117
+ var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
219118
+
219119
+ for (var f = 0; f < footerDocTree.length; f++) {
219120
+ if (!footerDocTree[f]) continue;
219121
+ getAllNodes(footerDocTree[f].subDocNodes);
219122
+ }
219063
219123
  }
219064
219124
 
219065
219125
  return ret;
@@ -219137,7 +219197,7 @@ var VueController = /*#__PURE__*/function () {
219137
219197
  return allArr;
219138
219198
  }
219139
219199
  /**
219140
- * 获取当前病历中的所有元素
219200
+ * 获取当前病历中的所有ca签名元素
219141
219201
  * @returns 返回元素是{id,name,text,json}的数据
219142
219202
  */
219143
219203
 
@@ -220086,12 +220146,20 @@ var VueController = /*#__PURE__*/function () {
220086
220146
  hoEditorFactory.docTree.curDomRange = newRange;
220087
220147
  hoEditorFactory.drawTree.moveCaretToPath(curDomRange.startPath);
220088
220148
  }
220149
+ /**
220150
+ * 初始化文档
220151
+ */
220152
+
220089
220153
  }, {
220090
220154
  key: "initBlankDoc",
220091
220155
  value: function initBlankDoc() {
220092
220156
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220093
220157
  hoEditorFactory.docController.initBlankDoc();
220094
220158
  }
220159
+ /**
220160
+ * 清理病历文档树 触发浏览器内存回收
220161
+ */
220162
+
220095
220163
  }, {
220096
220164
  key: "destoryEditor",
220097
220165
  value: function destoryEditor() {
@@ -220099,12 +220167,23 @@ var VueController = /*#__PURE__*/function () {
220099
220167
  hoEditorFactory.clear();
220100
220168
  hoEditorFactory = null;
220101
220169
  }
220170
+ /**
220171
+ * 获取签名元素清理后的病历xml内容
220172
+ * @returns xml
220173
+ */
220174
+
220102
220175
  }, {
220103
220176
  key: "clearSignNodes",
220104
220177
  value: function clearSignNodes() {
220105
220178
  var xml = this.getDocXml(true, true, true);
220106
220179
  return xml;
220107
220180
  }
220181
+ /**
220182
+ * // 获取当前病历中是否有未处理的批注
220183
+ * @param area 0 --- 未处理 1 --- 已处理 undefined ----存在批注
220184
+ * @returns boolean 是否查询到批注内容
220185
+ */
220186
+
220108
220187
  }, {
220109
220188
  key: "getDocComment",
220110
220189
  value: function getDocComment(area) {
@@ -220121,6 +220200,11 @@ var VueController = /*#__PURE__*/function () {
220121
220200
  });
220122
220201
  return ishandle;
220123
220202
  }
220203
+ /**
220204
+ * 批量修改当前病历中批注处理状态
220205
+ * @param status 默认修改为 1==已处理
220206
+ */
220207
+
220124
220208
  }, {
220125
220209
  key: "setDocCommentIsHandle",
220126
220210
  value: function setDocCommentIsHandle(status) {
@@ -220134,6 +220218,11 @@ var VueController = /*#__PURE__*/function () {
220134
220218
  });
220135
220219
  drawTree.commentsMap = commentsMap;
220136
220220
  }
220221
+ /**
220222
+ * 查询是否存在医生签名
220223
+ * @returns boolean
220224
+ */
220225
+
220137
220226
  }, {
220138
220227
  key: "getAllSignNode",
220139
220228
  value: function getAllSignNode() {
@@ -221162,6 +221251,10 @@ var EditController = /*#__PURE__*/function () {
221162
221251
  for (var n = 0; n < nodes.length; n++) {
221163
221252
  var node = nodes[n];
221164
221253
  if (node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j || node instanceof ControlNode/* ControlNode */.w) node.styleIndex = hoeditorfactory.docTree.curStyleIndex;
221254
+
221255
+ if (node instanceof ParagraphNode/* ParagraphNode */.C) {
221256
+ node.paraNo = hoeditorfactory.docTree.curParaNo;
221257
+ }
221165
221258
  }
221166
221259
  }
221167
221260