hoeditor-web 2.0.51 → 2.0.54

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.
@@ -13450,12 +13450,12 @@ var DocController = /*#__PURE__*/function () {
13450
13450
 
13451
13451
  }, {
13452
13452
  key: "insertNodeByPath",
13453
- value: function insertNodeByPath(path, node) {
13453
+ value: function insertNodeByPath(path, node, isResetFieldText) {
13454
13454
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
13455
13455
  var curRange = hoEditorFactory.docTree.curDomRange.normalize();
13456
13456
  var parentNode = node.parentNode;
13457
13457
 
13458
- if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1) {
13458
+ 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) {
13459
13459
  var firstPath = parentNode.StartMarkNode.getNodePath();
13460
13460
  var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
13461
13461
  curRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, firstPath, lastPath);
@@ -13639,7 +13639,7 @@ var DocController = /*#__PURE__*/function () {
13639
13639
  } else {
13640
13640
  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);
13641
13641
 
13642
- strPath = _this.insertNodeByPath(strPath, _textNode);
13642
+ strPath = _this.insertNodeByPath(strPath, _textNode, oldCanModifyContent == undefined ? false : true);
13643
13643
  }
13644
13644
  } else {
13645
13645
  var styleIndex = hoEditorFactory.docTree.curStyleIndex;
@@ -13650,7 +13650,7 @@ var DocController = /*#__PURE__*/function () {
13650
13650
 
13651
13651
  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);
13652
13652
 
13653
- strPath = _this.insertNodeByPath(strPath, _textNode2);
13653
+ strPath = _this.insertNodeByPath(strPath, _textNode2, oldCanModifyContent == undefined ? false : true);
13654
13654
  } // if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
13655
13655
  // pNode.canModifyContent = oldCanModifyContent;
13656
13656
  // pNode.update();
@@ -14737,8 +14737,11 @@ var DocController = /*#__PURE__*/function () {
14737
14737
  node.update();
14738
14738
 
14739
14739
  if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
14740
- node.parentNode.drawCell.needUpdate = true;
14741
- node.parentNode.table.update();
14740
+ node.parentNode.drawCell.needUpdate = true; //增加判断只有多页表格才更新table.update,以处理编辑元素 卡慢问题
14741
+
14742
+ if (node.parentNode.drawCell.drawPageCells.length > 1) {
14743
+ node.parentNode.table.update();
14744
+ }
14742
14745
  }
14743
14746
 
14744
14747
  return "";
@@ -15962,11 +15965,12 @@ var DocController = /*#__PURE__*/function () {
15962
15965
 
15963
15966
  curArea.areaComments.set(commentID, comment);
15964
15967
  hoEditorFactory.drawTree.commentsMap.set(commentID, comment);
15965
- curArea.drawComments();
15966
- var newEndpath = endNode.getNodePath();
15968
+ curArea.drawComments(); //const newEndpath = endNode.getNodePath();
15969
+
15967
15970
  hoEditorFactory.undoService.begin();
15968
- hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath, newEndpath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p("insertComment", commentID)));
15971
+ hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath, endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p("insertComment", commentID)));
15969
15972
  hoEditorFactory.undoService.commit();
15973
+ var newEndpath = endNode.getNodePath();
15970
15974
  var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, newEndpath, newEndpath);
15971
15975
  var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(newRange, newRange); //选中范围变化事件
15972
15976
 
@@ -16836,6 +16840,31 @@ var DocController = /*#__PURE__*/function () {
16836
16840
  node.imgSrc = signText;
16837
16841
  hoEditorFactory.docTree.change(changeEvent);
16838
16842
  }
16843
+ /**
16844
+ * 更新签名类型
16845
+ * @param node 签名节点
16846
+ * @param type 签名类型
16847
+ * @param imgSrc 签名内容
16848
+ */
16849
+
16850
+ }, {
16851
+ key: "updateSignType",
16852
+ value: function updateSignType(node, type, imgSrc) {
16853
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
16854
+ var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
16855
+ var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
16856
+ var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_26__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
16857
+ changeEvent.oldEndPath = ePath;
16858
+ changeEvent.afterChangePath = ePath;
16859
+ changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
16860
+
16861
+ if (node.type !== type) {
16862
+ node.type = type;
16863
+ }
16864
+
16865
+ node.imgSrc = imgSrc;
16866
+ hoEditorFactory.docTree.change(changeEvent);
16867
+ }
16839
16868
  /**
16840
16869
  *
16841
16870
  * @returns 返回病历文件变更日志
@@ -49213,6 +49242,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49213
49242
  value: function paint(dTop, dParent, restHeight) {
49214
49243
  var totalHeight = 0;
49215
49244
  var aTop = dTop;
49245
+
49246
+ if (this.table.tableProperty.fixedOnePage) {
49247
+ restHeight = Infinity;
49248
+ }
49249
+
49216
49250
  var pageRestHeight = restHeight;
49217
49251
  var bStartRowFinished = true;
49218
49252
 
@@ -49706,21 +49740,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49706
49740
  var row = -1;
49707
49741
  var col = -1;
49708
49742
 
49709
- for (var r = this._startRow; r <= this._endRow; r++) {
49710
- var _this$_partRowHeights;
49711
-
49712
- var rowHeight = (_this$_partRowHeights = this._partRowHeights.get(r)) === null || _this$_partRowHeights === void 0 ? void 0 : _this$_partRowHeights.rowHeight;
49713
-
49714
- if (rowHeight) {
49715
- if (y >= top && y <= top + rowHeight) {
49716
- row = r;
49717
- break;
49718
- }
49719
-
49720
- top += rowHeight;
49721
- }
49722
- }
49723
-
49724
49743
  for (var c = 0; c < this._table.colCount; c++) {
49725
49744
  var colWidth = this._table.colInfos[c].colWidth;
49726
49745
 
@@ -49736,12 +49755,60 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49736
49755
  left += colWidth;
49737
49756
  }
49738
49757
 
49758
+ var r = this._startRow;
49759
+
49760
+ while (r <= this._endRow) {
49761
+ var _this$_partRowHeights;
49762
+
49763
+ //for (let r = this._startRow; r <= this._endRow; r++) {
49764
+ var rowHeight = (_this$_partRowHeights = this._partRowHeights.get(r)) === null || _this$_partRowHeights === void 0 ? void 0 : _this$_partRowHeights.rowHeight;
49765
+ var aHeight = rowHeight;
49766
+ var rowSpan = 1;
49767
+
49768
+ if (this._table.tableProperty.isAutoChangeLine) {
49769
+ var _this$_table$getMainC15 = this._table.getMainCell(r, col),
49770
+ _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),
49771
+ mainCell = _this$_table$getMainC16[0],
49772
+ mr = _this$_table$getMainC16[1],
49773
+ mc = _this$_table$getMainC16[2];
49774
+
49775
+ var partCell = mainCell.drawCell.getDrawPageCell(this);
49776
+
49777
+ if (partCell && aHeight) {
49778
+ rowHeight = Math.max(aHeight, partCell.docHeight);
49779
+ rowSpan = mainCell.rowSpan;
49780
+ }
49781
+ }
49782
+
49783
+ if (rowSpan > 1) {
49784
+ for (var i = 1; i < rowSpan; i++) {
49785
+ var arowInfos = this._partRowHeights.get(r + i);
49786
+
49787
+ if (arowInfos && arowInfos.rowHeight && aHeight) {
49788
+ aHeight += arowInfos.rowHeight;
49789
+ }
49790
+ }
49791
+ } //this._partRowHeights.get(r)?.rowHeight
49792
+
49793
+
49794
+ if (aHeight && rowHeight) {
49795
+ if (y >= top && y <= top + rowHeight) {
49796
+ row = r;
49797
+ break;
49798
+ }
49799
+
49800
+ top += aHeight;
49801
+ }
49802
+
49803
+ r += rowSpan;
49804
+ }
49805
+
49739
49806
  if (row >= 0 && col >= 0) {
49740
- var _this$_table$getMainC15 = this._table.getMainCell(row, col),
49741
- _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),
49742
- cell = _this$_table$getMainC16[0],
49743
- mr = _this$_table$getMainC16[1],
49744
- mc = _this$_table$getMainC16[2];
49807
+ var _this$_table$getMainC17 = this._table.getMainCell(row, col),
49808
+ _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),
49809
+ cell = _this$_table$getMainC18[0],
49810
+ _mr2 = _this$_table$getMainC18[1],
49811
+ _mc2 = _this$_table$getMainC18[2];
49745
49812
 
49746
49813
  var ret = cell.drawCell.getDrawPageCell(this);
49747
49814
 
@@ -49774,11 +49841,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49774
49841
  var ar = r;
49775
49842
 
49776
49843
  if (!cell) {
49777
- var _this$_table$getMainC17 = this._table.getMainCell(r, c),
49778
- _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),
49779
- mainCell = _this$_table$getMainC18[0],
49780
- mr = _this$_table$getMainC18[1],
49781
- mc = _this$_table$getMainC18[2];
49844
+ var _this$_table$getMainC19 = this._table.getMainCell(r, c),
49845
+ _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),
49846
+ mainCell = _this$_table$getMainC20[0],
49847
+ mr = _this$_table$getMainC20[1],
49848
+ mc = _this$_table$getMainC20[2];
49782
49849
 
49783
49850
  cell = mainCell;
49784
49851
  ar = mr;
@@ -49832,11 +49899,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49832
49899
  var rowPaintHeight = Math.min(rowRestHeight, pageRestHeight);
49833
49900
 
49834
49901
  for (var c = 0; c < this._table.colCount; c++) {
49835
- var _this$_table$getMainC19 = this._table.getMainCell(r, c),
49836
- _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),
49837
- cell = _this$_table$getMainC20[0],
49838
- mr = _this$_table$getMainC20[1],
49839
- mc = _this$_table$getMainC20[2];
49902
+ var _this$_table$getMainC21 = this._table.getMainCell(r, c),
49903
+ _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),
49904
+ cell = _this$_table$getMainC22[0],
49905
+ mr = _this$_table$getMainC22[1],
49906
+ mc = _this$_table$getMainC22[2];
49840
49907
 
49841
49908
  var cellRestHeight = rowPaintHeight; //同一行的合并列只绘制一次
49842
49909
 
@@ -49897,11 +49964,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49897
49964
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.table.hoEditorFactoryID);
49898
49965
 
49899
49966
  if (this.table.tableProperty.fixedOnePage) {
49900
- if (this.table.drawTable.dHeight + 28 > this._maxHeight) {
49901
- return;
49902
- } else {
49903
- dRestHeight = dRestHeight;
49904
- }
49967
+ dRestHeight = Infinity;
49905
49968
  }
49906
49969
 
49907
49970
  var pageRestHeight = dRestHeight;
@@ -49965,11 +50028,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49965
50028
  var isEmptyRow = true; //是否绘制了一个单元格
49966
50029
 
49967
50030
  for (var c = 0; c < this._table.colCount; c++) {
49968
- var _this$_table$getMainC21 = this._table.getMainCell(r, c),
49969
- _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),
49970
- cell = _this$_table$getMainC22[0],
49971
- mr = _this$_table$getMainC22[1],
49972
- mc = _this$_table$getMainC22[2];
50031
+ var _this$_table$getMainC23 = this._table.getMainCell(r, c),
50032
+ _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),
50033
+ cell = _this$_table$getMainC24[0],
50034
+ mr = _this$_table$getMainC24[1],
50035
+ mc = _this$_table$getMainC24[2];
49973
50036
 
49974
50037
  if (cell && mc === c && mr + cell.rowSpan - 1 === r) {
49975
50038
  isEmptyRow = false;
@@ -49990,18 +50053,18 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49990
50053
  }
49991
50054
 
49992
50055
  for (var _c2 = 0; _c2 < this._table.colCount; _c2++) {
49993
- var _this$_table$getMainC23 = this._table.getMainCell(r, _c2),
49994
- _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),
49995
- _cell2 = _this$_table$getMainC24[0],
49996
- _mr2 = _this$_table$getMainC24[1],
49997
- _mc2 = _this$_table$getMainC24[2];
50056
+ var _this$_table$getMainC25 = this._table.getMainCell(r, _c2),
50057
+ _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),
50058
+ _cell2 = _this$_table$getMainC26[0],
50059
+ _mr3 = _this$_table$getMainC26[1],
50060
+ _mc3 = _this$_table$getMainC26[2];
49998
50061
 
49999
- if (_cell2 && _mc2 === _c2 && (_mr2 + _cell2.rowSpan - 1 == r || rowRestHeight > pageRestHeight - 10 || pageRestHeight - rowRestHeight < hoEditorFactory.defaultLineHeight)) {
50062
+ if (_cell2 && _mc3 === _c2 && (_mr3 + _cell2.rowSpan - 1 == r || rowRestHeight > pageRestHeight - 10 || pageRestHeight - rowRestHeight < hoEditorFactory.defaultLineHeight)) {
50000
50063
  var startChildIndex = 0;
50001
50064
  var partCellindex = -1;
50002
50065
  var dPrevPartCell = null;
50003
50066
 
50004
- if (prevdPageTable && _mr2 <= this._startRow) {
50067
+ if (prevdPageTable && _mr3 <= this._startRow) {
50005
50068
  dPrevPartCell = _cell2.drawCell.getDrawPageCell(prevdPageTable);
50006
50069
 
50007
50070
  if (dPrevPartCell) {
@@ -50056,7 +50119,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50056
50119
  _cell2.drawCell.needUpdate = true;
50057
50120
  }
50058
50121
 
50059
- if (r === _mr2) {
50122
+ if (r === _mr3) {
50060
50123
  dPartCell.maxHeight = pageRestHeight;
50061
50124
  dPartCell.dHeight = Math.min(rowRestHeight, pageRestHeight);
50062
50125
  } else {
@@ -50158,11 +50221,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50158
50221
  //跨行单元格只在绘制所跨最后一行时绘制
50159
50222
  continue;
50160
50223
  } else if (!cell) {
50161
- var _this$_table$getMainC25 = this._table.getMainCell(r, j),
50162
- _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),
50163
- mainCell = _this$_table$getMainC26[0],
50164
- mr = _this$_table$getMainC26[1],
50165
- mc = _this$_table$getMainC26[2];
50224
+ var _this$_table$getMainC27 = this._table.getMainCell(r, j),
50225
+ _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),
50226
+ mainCell = _this$_table$getMainC28[0],
50227
+ mr = _this$_table$getMainC28[1],
50228
+ mc = _this$_table$getMainC28[2];
50166
50229
 
50167
50230
  if (mr + mainCell.rowSpan - 1 === r && mc === j) {
50168
50231
  cell = mainCell;
@@ -51172,7 +51235,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51172
51235
  bitmap.setTransform(bitmap.x, bitmap.y, scale, scale);
51173
51236
  fingerBitmap.setTransform(fingerBitmap.x, fingerBitmap.y, fingerscale, fingerscale);
51174
51237
  var hitArea = new createjs.Shape();
51175
- hitArea.graphics.beginFill("#000").drawRect(0, 0, hitWidth * scale, hitHeight * scale); //这里是图片大小
51238
+ hitArea.graphics.beginFill("#000").drawRect(fingerBitmap.x, 0, fingerWidth * fingerscale, fingerHeight * fingerscale); //这里是图片大小
51176
51239
 
51177
51240
  bitmap.hitArea = hitArea;
51178
51241
  fingerBitmap.hitArea = hitArea;
@@ -61227,7 +61290,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
61227
61290
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87461);
61228
61291
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60199);
61229
61292
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42015);
61230
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(16296);
61293
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(16296);
61231
61294
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83964);
61232
61295
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46455);
61233
61296
  /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
@@ -61253,6 +61316,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
61253
61316
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(28831);
61254
61317
  /* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(92730);
61255
61318
  /* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(69088);
61319
+ /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(27356);
61256
61320
 
61257
61321
 
61258
61322
 
@@ -61267,8 +61331,8 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
61267
61331
  /*
61268
61332
  * @Author: your name
61269
61333
  * @Date: 2020-09-24 15:56:09
61270
- * @LastEditTime: 2022-03-28 11:38:19
61271
- * @LastEditors: Please set LastEditors
61334
+ * @LastEditTime: 2022-06-07 15:10:10
61335
+ * @LastEditors: liyanan 2441631434@qq.com
61272
61336
  * @Description: In User Settings Edit
61273
61337
  * @FilePath: \hoeditor-web\src\editor\undoRedo\NodeInsertUndoUnit.ts
61274
61338
  */
@@ -61287,6 +61351,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
61287
61351
 
61288
61352
 
61289
61353
 
61354
+
61290
61355
  var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
61291
61356
  (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(NodeInsertUndoUnit, _UndoInfo);
61292
61357
 
@@ -61307,7 +61372,7 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
61307
61372
  return _this;
61308
61373
  }
61309
61374
 
61310
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_24__/* ["default"] */ .Z)(NodeInsertUndoUnit, [{
61375
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z)(NodeInsertUndoUnit, [{
61311
61376
  key: "undo",
61312
61377
  value: function undo() {
61313
61378
  this.doUndo();
@@ -61399,6 +61464,11 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
61399
61464
  } else if (this._pnode && this._pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__/* .TextInputFieldNode */ .re && this.strBeforePath != hoEditorFactory.docTree.getNodeLastPath(this._pnode)) {
61400
61465
  //删除文本域节点的提示文本,并更新重绘整个文本域
61401
61466
  var pTiNode = this._pnode;
61467
+
61468
+ if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_24__/* .PaintState.psReview */ .Dh.psReview && this.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNode */ .j && this.node.MarkNodeType === 2 && this.node.text.startsWith("C") && this._pnode.childNodes.length === 3 && this._pnode.childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNode */ .j) {
61469
+ return path;
61470
+ }
61471
+
61402
61472
  var res = pTiNode.getReadyToEdit(function (value) {
61403
61473
  //NOTE:在redo当中不能使用同一实例UndoRedoService的commit
61404
61474
  _this2._undo.begin();
@@ -62696,7 +62766,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62696
62766
  //if(nodes.length == 0) return;
62697
62767
 
62698
62768
  if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
62699
- _context.next = 30;
62769
+ _context.next = 33;
62700
62770
  break;
62701
62771
  }
62702
62772
 
@@ -62704,19 +62774,29 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62704
62774
 
62705
62775
  case 13:
62706
62776
  if (!(n < nodes.length)) {
62707
- _context.next = 30;
62777
+ _context.next = 33;
62708
62778
  break;
62709
62779
  }
62710
62780
 
62711
62781
  node = nodes[n];
62712
62782
 
62783
+ 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)) {
62784
+ _context.next = 18;
62785
+ break;
62786
+ }
62787
+
62788
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
62789
+
62790
+ return _context.abrupt("return", 0);
62791
+
62792
+ case 18:
62713
62793
  if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_28__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_20__/* .TextInputFieldNode */ .re)) {
62714
- _context.next = 24;
62794
+ _context.next = 27;
62715
62795
  break;
62716
62796
  }
62717
62797
 
62718
62798
  if (node.isAllowDelete) {
62719
- _context.next = 24;
62799
+ _context.next = 27;
62720
62800
  break;
62721
62801
  }
62722
62802
 
@@ -62742,9 +62822,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62742
62822
 
62743
62823
  return _context.abrupt("return", 0);
62744
62824
 
62745
- case 24:
62825
+ case 27:
62746
62826
  if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_33__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
62747
- _context.next = 27;
62827
+ _context.next = 30;
62748
62828
  break;
62749
62829
  }
62750
62830
 
@@ -62752,16 +62832,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62752
62832
 
62753
62833
  return _context.abrupt("return", 0);
62754
62834
 
62755
- case 27:
62835
+ case 30:
62756
62836
  n++;
62757
62837
  _context.next = 13;
62758
62838
  break;
62759
62839
 
62760
- case 30:
62840
+ case 33:
62761
62841
  pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
62762
62842
 
62763
62843
  if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_20__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
62764
- _context.next = 36;
62844
+ _context.next = 39;
62765
62845
  break;
62766
62846
  }
62767
62847
 
@@ -62774,24 +62854,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62774
62854
  });
62775
62855
 
62776
62856
  if (_res[0]) {
62777
- _context.next = 36;
62857
+ _context.next = 39;
62778
62858
  break;
62779
62859
  }
62780
62860
 
62781
62861
  return _context.abrupt("return");
62782
62862
 
62783
- case 36:
62863
+ case 39:
62784
62864
  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函数完成后调用这个
62785
62865
  // hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
62786
62866
 
62787
62867
  if (currRange.npStart.node && currRange.npEnd.node) {
62788
- _context.next = 39;
62868
+ _context.next = 42;
62789
62869
  break;
62790
62870
  }
62791
62871
 
62792
62872
  throw _events_Exception__WEBPACK_IMPORTED_MODULE_22__/* .Exception.NodeNotFound */ .P.NodeNotFound();
62793
62873
 
62794
- case 39:
62874
+ case 42:
62795
62875
  // const [startPath, endPath] = DomRange.skipStartEndTablePath(
62796
62876
  // this._hoEditorFactory,
62797
62877
  // currRange.startPath,
@@ -62804,33 +62884,33 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62804
62884
  res = this.deleteRange(currRange.endPath, currRange.startPath);
62805
62885
 
62806
62886
  if (!(res == 1)) {
62807
- _context.next = 51;
62887
+ _context.next = 54;
62808
62888
  break;
62809
62889
  }
62810
62890
 
62811
62891
  changeEvent.beforeChangePath = startPath;
62812
62892
  changeEvent.afterChangePath = this._tmp.start;
62813
- _context.next = 49;
62893
+ _context.next = 52;
62814
62894
  return hoEditorFactory.docTree.change(changeEvent);
62815
62895
 
62816
- case 49:
62896
+ case 52:
62817
62897
  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));
62818
62898
  hoEditorFactory.docTree.selectChange(cgEvent);
62819
62899
 
62820
- case 51:
62900
+ case 54:
62821
62901
  hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
62822
62902
  hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
62823
62903
  aNode = currRange.npStart.node;
62824
62904
 
62825
62905
  if (!(aNode && pnode)) {
62826
- _context.next = 57;
62906
+ _context.next = 60;
62827
62907
  break;
62828
62908
  }
62829
62909
 
62830
- _context.next = 57;
62910
+ _context.next = 60;
62831
62911
  return this.ParentRepaint(pnode);
62832
62912
 
62833
- case 57:
62913
+ case 60:
62834
62914
  case "end":
62835
62915
  return _context.stop();
62836
62916
  }
@@ -199971,7 +200051,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
199971
200051
  key: "mouseDblClick",
199972
200052
  value: function () {
199973
200053
  var _mouseDblClick = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(aevent) {
199974
- var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2, dPageTable, dPageCell, pos, docHeight, dHeight, index, i, dLastObj, distance, aHeight, count, str, j, _oldRange, _endPath, _newRange;
200054
+ var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2;
199975
200055
 
199976
200056
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
199977
200057
  while (1) {
@@ -200129,48 +200209,42 @@ var DrawSelectLevel = /*#__PURE__*/function () {
200129
200209
  } else if (cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
200130
200210
  _nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, "dblclick", this._pageIndex);
200131
200211
  hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent2);
200132
- } else if (cellNode.table.tableProperty.isAutoChangeLine) {
200133
- //处理自动换行表格,双击时光标跳到指定双击位置
200134
- dPageTable = cellNode.table.drawTable.getDrawTableByPageIndex(dPage.pageIndex);
200135
-
200136
- if (dPageTable) {
200137
- dPageCell = cellNode.drawCell.getDrawPageCell(dPageTable);
200138
-
200139
- if (dPageCell) {
200140
- pos = dPageCell.globalToLocal(aevent.stageX, aevent.stageY);
200141
- docHeight = 0;
200142
- dHeight = 0;
200143
- index = cellNode.drawCell.drawPageCells.indexOf(dPageCell);
200144
-
200145
- for (i = 0; i < index; i++) {
200146
- docHeight += cellNode.drawCell.drawPageCells[i].docHeight;
200147
- dHeight += cellNode.drawCell.drawPageCells[i].dHeight;
200148
- }
200149
-
200150
- dLastObj = cellNode.drawCell.drawLines[cellNode.drawCell.drawLines.length - 1];
200151
-
200152
- if (dLastObj.dTop + dLastObj.docHeight < dHeight + pos.y) {
200153
- distance = pos.y + dHeight - (dLastObj.dTop + dLastObj.dHeight);
200154
- aHeight = cellNode.table.tableProperty.autoLineHeightPx;
200155
- count = Math.floor(distance / aHeight);
200156
- str = "";
200157
-
200158
- for (j = 0; j < count; j++) {
200159
- str += "\n";
200160
- }
200212
+ } // else if (cellNode.table.tableProperty.isAutoChangeLine) {
200213
+ // //处理自动换行表格,双击时光标跳到指定双击位置
200214
+ // const dPageTable = cellNode.table.drawTable.getDrawTableByPageIndex(dPage.pageIndex);
200215
+ // if (dPageTable) {
200216
+ // const dPageCell = cellNode.drawCell.getDrawPageCell(dPageTable);
200217
+ // if (dPageCell) {
200218
+ // const pos = dPageCell.globalToLocal(aevent.stageX, aevent.stageY);
200219
+ // let docHeight = 0;
200220
+ // let dHeight = 0;
200221
+ // const index = cellNode.drawCell.drawPageCells.indexOf(dPageCell);
200222
+ // for (let i = 0; i < index; i++) {
200223
+ // docHeight += cellNode.drawCell.drawPageCells[i].docHeight;
200224
+ // dHeight += cellNode.drawCell.drawPageCells[i].dHeight
200225
+ // }
200226
+ // const dLastObj = cellNode.drawCell.drawLines[cellNode.drawCell.drawLines.length - 1]
200227
+ // if (dLastObj.dTop + dLastObj.docHeight < dHeight + pos.y) {
200228
+ // const distance = pos.y + dHeight - (dLastObj.dTop + dLastObj.dHeight)
200229
+ // const aHeight = cellNode.table.tableProperty.autoLineHeightPx;
200230
+ // const count = Math.floor(distance / aHeight);
200231
+ // let str = "";
200232
+ // for (let j = 0; j < count; j++) {
200233
+ // str += "\n"
200234
+ // }
200235
+ // if (str != "") {
200236
+ // const oldRange = hoEditorFactory.docTree.curDomRange.clone();
200237
+ // const endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
200238
+ // const newRange = new DomRange(hoEditorFactory.hoEditorFactoryId, endPath, endPath);
200239
+ // hoEditorFactory.drawTree.moveCaretToPath(endPath);
200240
+ // hoEditorFactory.docTree.curDomRange = newRange;
200241
+ // hoEditorFactory.docController.insertPlainTextAfterPath(endPath, str);
200242
+ // }
200243
+ // }
200244
+ // }
200245
+ // }
200246
+ // }
200161
200247
 
200162
- if (str != "") {
200163
- _oldRange = hoEditorFactory.docTree.curDomRange.clone();
200164
- _endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
200165
- _newRange = new DomRange/* DomRange */.a(hoEditorFactory.hoEditorFactoryId, _endPath, _endPath);
200166
- hoEditorFactory.drawTree.moveCaretToPath(_endPath);
200167
- hoEditorFactory.docTree.curDomRange = _newRange;
200168
- hoEditorFactory.docController.insertPlainTextAfterPath(_endPath, str);
200169
- }
200170
- }
200171
- }
200172
- }
200173
- }
200174
200248
 
200175
200249
  case 45:
200176
200250
  return _context.abrupt("return", true);
@@ -206665,7 +206739,7 @@ var SignNode = __webpack_require__(78975);
206665
206739
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
206666
206740
  var ParagraphNode = __webpack_require__(13880);
206667
206741
  ;// CONCATENATED MODULE: ./src/components/version.ts
206668
- /* harmony default export */ var version = ('2.0.51');
206742
+ /* harmony default export */ var version = ('2.0.54');
206669
206743
  ;// 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&
206670
206744
  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)}
206671
206745
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -209577,6 +209651,14 @@ var HTMLconverter2 = /*#__PURE__*/function () {
209577
209651
  return tmp;
209578
209652
  } else {
209579
209653
  for (var i = 0; i < jnode.childNodes.length; i++) {
209654
+ if (jnode.childNodes[i].nodeName.toLowerCase() == "img") {
209655
+ var src = jnode.childNodes[i].src;
209656
+
209657
+ if (src && src.toString().substring(src.length - 4, src.length) === ".svg") {
209658
+ continue;
209659
+ }
209660
+ }
209661
+
209580
209662
  var fun = this.convert.get(jnode.childNodes[i].nodeName.toLowerCase());
209581
209663
 
209582
209664
  if (fun) {
@@ -209837,7 +209919,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
209837
209919
 
209838
209920
  var width = styleobj.width ? styleobj.width.replace("px", "") : 20;
209839
209921
  var height = styleobj.height ? styleobj.height.replace("px", "") : 20;
209840
- 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);
209922
+ 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));
209841
209923
  return [node];
209842
209924
  }
209843
209925
  }, {
@@ -210051,7 +210133,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
210051
210133
  var textstyle = this.HTMLStyleToParsStyle(styleobj);
210052
210134
  if (textstyle.lineSpace === 0) textstyle.lineSpace = undefined;
210053
210135
  var index = hoEditorFactory.docTree.styleCompare(textstyle);
210054
- 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);
210136
+ 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
210137
+ );
210055
210138
  tmp.push(node);
210056
210139
 
210057
210140
  if (jnode.childNodes.length == 0) {
@@ -213237,7 +213320,7 @@ var NodeConvert = /*#__PURE__*/function () {
213237
213320
  if (!uidArr[i]) continue;
213238
213321
 
213239
213322
  if (i > 0) {
213240
- var paraNode = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, 0);
213323
+ var paraNode = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, hoEditorFactory.docTree.curParaNo);
213241
213324
  nodes.push(paraNode);
213242
213325
  }
213243
213326
 
@@ -218812,6 +218895,19 @@ var VueController = /*#__PURE__*/function () {
218812
218895
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
218813
218896
  hoEditorFactory.docController.updateSignTime(node, signText);
218814
218897
  }
218898
+ /**
218899
+ * 更新签名类型
218900
+ * @param node 签名节点
218901
+ * @param type 签名类型
218902
+ * @param imgSrc 签名内容
218903
+ */
218904
+
218905
+ }, {
218906
+ key: "updateSignType",
218907
+ value: function updateSignType(node, type, imgSrc) {
218908
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
218909
+ hoEditorFactory.docController.updateSignType(node, type, imgSrc);
218910
+ }
218815
218911
  /**
218816
218912
  * 强制删除
218817
218913
  */
@@ -219023,7 +219119,7 @@ var VueController = /*#__PURE__*/function () {
219023
219119
 
219024
219120
  }, {
219025
219121
  key: "getAllElements",
219026
- value: function getAllElements() {
219122
+ value: function getAllElements(area) {
219027
219123
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
219028
219124
  var ret = [];
219029
219125
 
@@ -219033,21 +219129,29 @@ var VueController = /*#__PURE__*/function () {
219033
219129
 
219034
219130
  if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re || node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z) {
219035
219131
  // if (node.readType === 1) {
219036
- var elementObj = {
219037
- id: "",
219038
- name: "",
219039
- text: "",
219132
+ // const elementObj: Record<string, string | undefined | object> = {
219133
+ // id: "",
219134
+ // name: "",
219135
+ // text: "",
219136
+ // dataVerify: undefined,
219137
+ // innerIdentifier: "",
219138
+ // identifierFormat: "",
219139
+ // };
219140
+ // elementObj.id = node.id;
219141
+ // elementObj.name = node.name;
219142
+ // elementObj.text = node.text;
219143
+ // elementObj.innerIdentifier = node.innerIdentifier;
219144
+ // elementObj.identifierFormat = node.identifierFormat;
219145
+ // elementObj.customProperty = node.customProperty;
219146
+ ret.push({
219147
+ id: node.id,
219148
+ name: node.name,
219149
+ text: node.text,
219040
219150
  dataVerify: undefined,
219041
- innerIdentifier: "",
219042
- identifierFormat: ""
219043
- };
219044
- elementObj.id = node.id;
219045
- elementObj.name = node.name;
219046
- elementObj.text = node.text;
219047
- elementObj.innerIdentifier = node.innerIdentifier;
219048
- elementObj.identifierFormat = node.identifierFormat;
219049
- elementObj.customProperty = node.customProperty;
219050
- ret.push(elementObj); // }
219151
+ innerIdentifier: node.innerIdentifier,
219152
+ identifierFormat: node.identifierFormat,
219153
+ customProperty: node.customProperty
219154
+ }); // }
219051
219155
  }
219052
219156
 
219053
219157
  if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
@@ -219056,20 +219160,27 @@ var VueController = /*#__PURE__*/function () {
219056
219160
  }
219057
219161
  };
219058
219162
 
219059
- var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
219163
+ if (area == undefined || area == 'header') {
219164
+ var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
219060
219165
 
219061
- for (var h = 0; h < headerDocTree.length; h++) {
219062
- if (!headerDocTree[h]) continue;
219063
- getAllNodes(headerDocTree[h].subDocNodes);
219166
+ for (var h = 0; h < headerDocTree.length; h++) {
219167
+ if (!headerDocTree[h]) continue;
219168
+ getAllNodes(headerDocTree[h].subDocNodes);
219169
+ }
219064
219170
  }
219065
219171
 
219066
- var mainNodes = hoEditorFactory.docTree.mainNodes;
219067
- getAllNodes(mainNodes);
219068
- var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
219172
+ if (area == undefined || area == 'main') {
219173
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
219174
+ getAllNodes(mainNodes);
219175
+ }
219069
219176
 
219070
- for (var f = 0; f < footerDocTree.length; f++) {
219071
- if (!footerDocTree[f]) continue;
219072
- getAllNodes(footerDocTree[f].subDocNodes);
219177
+ if (area == undefined || area == 'footer') {
219178
+ var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
219179
+
219180
+ for (var f = 0; f < footerDocTree.length; f++) {
219181
+ if (!footerDocTree[f]) continue;
219182
+ getAllNodes(footerDocTree[f].subDocNodes);
219183
+ }
219073
219184
  }
219074
219185
 
219075
219186
  return ret;
@@ -219088,7 +219199,7 @@ var VueController = /*#__PURE__*/function () {
219088
219199
  var _loop2 = function _loop2(i) {
219089
219200
  var node = nodes[i];
219090
219201
 
219091
- if (node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.childNodes.filter(function (child) {
219202
+ if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && !node.canModifyContent && node.inputFieldType == 0 && node.childNodes.filter(function (child) {
219092
219203
  return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
219093
219204
  }).length === 0) {
219094
219205
  if (arr.filter(function (v) {
@@ -219147,7 +219258,7 @@ var VueController = /*#__PURE__*/function () {
219147
219258
  return allArr;
219148
219259
  }
219149
219260
  /**
219150
- * 获取当前病历中的所有元素
219261
+ * 获取当前病历中的所有ca签名元素
219151
219262
  * @returns 返回元素是{id,name,text,json}的数据
219152
219263
  */
219153
219264
 
@@ -220096,12 +220207,20 @@ var VueController = /*#__PURE__*/function () {
220096
220207
  hoEditorFactory.docTree.curDomRange = newRange;
220097
220208
  hoEditorFactory.drawTree.moveCaretToPath(curDomRange.startPath);
220098
220209
  }
220210
+ /**
220211
+ * 初始化文档
220212
+ */
220213
+
220099
220214
  }, {
220100
220215
  key: "initBlankDoc",
220101
220216
  value: function initBlankDoc() {
220102
220217
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220103
220218
  hoEditorFactory.docController.initBlankDoc();
220104
220219
  }
220220
+ /**
220221
+ * 清理病历文档树 触发浏览器内存回收
220222
+ */
220223
+
220105
220224
  }, {
220106
220225
  key: "destoryEditor",
220107
220226
  value: function destoryEditor() {
@@ -220109,12 +220228,23 @@ var VueController = /*#__PURE__*/function () {
220109
220228
  hoEditorFactory.clear();
220110
220229
  hoEditorFactory = null;
220111
220230
  }
220231
+ /**
220232
+ * 获取签名元素清理后的病历xml内容
220233
+ * @returns xml
220234
+ */
220235
+
220112
220236
  }, {
220113
220237
  key: "clearSignNodes",
220114
220238
  value: function clearSignNodes() {
220115
220239
  var xml = this.getDocXml(true, true, true);
220116
220240
  return xml;
220117
220241
  }
220242
+ /**
220243
+ * // 获取当前病历中是否有未处理的批注
220244
+ * @param area 0 --- 未处理 1 --- 已处理 undefined ----存在批注
220245
+ * @returns boolean 是否查询到批注内容
220246
+ */
220247
+
220118
220248
  }, {
220119
220249
  key: "getDocComment",
220120
220250
  value: function getDocComment(area) {
@@ -220131,6 +220261,11 @@ var VueController = /*#__PURE__*/function () {
220131
220261
  });
220132
220262
  return ishandle;
220133
220263
  }
220264
+ /**
220265
+ * 批量修改当前病历中批注处理状态
220266
+ * @param status 默认修改为 1==已处理
220267
+ */
220268
+
220134
220269
  }, {
220135
220270
  key: "setDocCommentIsHandle",
220136
220271
  value: function setDocCommentIsHandle(status) {
@@ -220144,6 +220279,11 @@ var VueController = /*#__PURE__*/function () {
220144
220279
  });
220145
220280
  drawTree.commentsMap = commentsMap;
220146
220281
  }
220282
+ /**
220283
+ * 查询是否存在医生签名
220284
+ * @returns boolean
220285
+ */
220286
+
220147
220287
  }, {
220148
220288
  key: "getAllSignNode",
220149
220289
  value: function getAllSignNode() {
@@ -221172,6 +221312,10 @@ var EditController = /*#__PURE__*/function () {
221172
221312
  for (var n = 0; n < nodes.length; n++) {
221173
221313
  var node = nodes[n];
221174
221314
  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;
221315
+
221316
+ if (node instanceof ParagraphNode/* ParagraphNode */.C) {
221317
+ node.paraNo = hoeditorfactory.docTree.curParaNo;
221318
+ }
221175
221319
  }
221176
221320
  }
221177
221321
 
@@ -222545,9 +222689,9 @@ var PrintController = /*#__PURE__*/function () {
222545
222689
  hoEditorFactory.printStatus.printAppoint = '';
222546
222690
  hoEditorFactory.printStatus.drawPrintRecord.Position = [0, 0];
222547
222691
  hoEditorFactory.startPageNum = 0;
222548
- hoEditorFactory.firstPageStartTop = 0; // hoEditorFactory.printStatus.clearArea();
222549
- // hoEditorFactory.printStatus.drawPrintRecord.clear();
222550
-
222692
+ hoEditorFactory.firstPageStartTop = 0;
222693
+ hoEditorFactory.printStatus.clearArea();
222694
+ hoEditorFactory.printStatus.drawPrintRecord.clear();
222551
222695
  hoEditorFactory.drawTree.rebuildAllDrawLine(false);
222552
222696
  }
222553
222697
  });