hoeditor-web 2.0.99 → 2.0.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6010,7 +6010,7 @@ var component = (0,componentNormalizer/* default */.Z)(
6010
6010
 
6011
6011
  /***/ }),
6012
6012
 
6013
- /***/ 10460:
6013
+ /***/ 57383:
6014
6014
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6015
6015
 
6016
6016
  "use strict";
@@ -6022,7 +6022,7 @@ __webpack_require__.d(__webpack_exports__, {
6022
6022
  "default": function() { return /* binding */ PoperSelect; }
6023
6023
  });
6024
6024
 
6025
- ;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=1331ab94&scoped=true&
6025
+ ;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=39dd7333&scoped=true&
6026
6026
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"poperSelectedModal",staticClass:"poper-selected-modal animation-in"},[_c('div',{staticStyle:{"height":"0","overflow":"hidden"}},[_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"selected"}},[_c('path',{attrs:{"d":"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636","fill":"#2175FF"}})])])])]),(_vm.isCanSearch && !_vm.mutexSelect)?_c('div',{staticStyle:{"padding":"5px"}},[_c('el-input',{attrs:{"placeholder":_vm.currentListNameText + '搜索',"size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}})],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.currentList.length >= 0)?_c('div',{staticClass:"select-poper"},[_c('div',{staticClass:"list-box"},[(_vm.currentList.length == 0)?_c('ul',{staticClass:"list"},[_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")])]):_vm._e(),(_vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.currentList.length > 0)?_c('el-checkbox-group',{on:{"change":_vm.selectItemsChange},model:{value:(_vm.selectedIds),callback:function ($$v) {_vm.selectedIds=$$v},expression:"selectedIds"}},[_c('RecycleScroller',{staticClass:"scroller",attrs:{"items":_vm.currentList,"item-size":32,"key-field":"id"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
6027
6027
  var item = ref.item;
6028
6028
  return [(item.title)?_c('p',{staticClass:"poper-select-title"},[_vm._v(_vm._s(item.text))]):_vm._e(),(!item.title)?_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")]):_vm._e()]}}],null,false,4143456003)})],1):_vm._e(),(_vm.isAllowMultiSelect && _vm.mutexSelect && _vm.currentList.length > 0)?[_c('el-checkbox-group',{on:{"change":_vm.mutexSelectItemsChange},model:{value:(_vm.mutexSelectedIds),callback:function ($$v) {_vm.mutexSelectedIds=$$v},expression:"mutexSelectedIds"}},[_vm._l((_vm.currentList),function(item,index){return [(index >= 1 && item.type != _vm.currentList[index - 1].type)?_c('p',{key:index + Math.random(),staticClass:"el-checkbox-mutex-line"}):_vm._e(),_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id,"disabled":_vm.mutexType !== '' && _vm.mutexType != item.type}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])]})],2)]:_vm._e(),(!_vm.isAllowMultiSelect && _vm.currentList.length > 0)?_c('el-radio-group',{model:{value:(_vm.selectedId),callback:function ($$v) {_vm.selectedId=$$v},expression:"selectedId"}},_vm._l((_vm.currentList),function(item){return _c('el-radio',{key:item.id + Math.random(),attrs:{"label":item.id},nativeOn:{"~click":function($event){return _vm.selectItemsChange(item)}}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])}),1):_vm._e(),(_vm.selectedList.length > 0 && _vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.isCanSearch)?_c('transition-group',{staticClass:"list",attrs:{"name":"drag","tag":"ul"}},[_c('li',{key:"已选择",staticStyle:{"position":"absolute","top":"0px","z-index":"111","background":"#fff"}},[_vm._v("已选择"+_vm._s(_vm.currentListNameText))]),_vm._l((_vm.selectedList),function(item,index){return [_c('li',{key:item.id + Math.random(),staticClass:"drag-item selected",attrs:{"draggable":""},on:{"dragenter":function($event){return _vm.dragenter($event, index)},"dragover":function($event){return _vm.dragover($event, index)},"dragstart":function($event){return _vm.dragstart(index)}}},[_c('span',[_vm._v(_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0]))]),_c('i',{staticClass:"el-icon-delete",on:{"click":function($event){return _vm.deleteItems(item, index)}}})])]})],2):_vm._e()],2)]):_vm._e(),(_vm.poperType === 'selectPoper' && !_vm.isAllowMultiSelect)?_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.isAllowMultiSelect)?_c('footer',[(!_vm.mutexSelect)?_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.allSelect}},[_vm._v("全选")]):_vm._e(),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureSelect}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.cancelSelect}},[_vm._v("清空")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1):_vm._e(),(_vm.poperType === 'datePoper')?_c('div',{staticClass:"date-poper"},[(_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('MM') && !_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"dateType":"month","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('yyyy') && !_vm.dateTimeStyle.includes('MM'))?_c('DatePanel',{attrs:{"dateType":"year","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('HH'))?_c('div',{staticClass:"timepicker",staticStyle:{"padding":"8px 0"}},[_c('el-time-picker',{staticStyle:{"width":"200px"},attrs:{"type":"time","format":_vm.timeStyle,"value-format":_vm.timeStyle,"size":"mini"},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:"time"}})],1):_vm._e(),_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureDate}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.currentDateTime}},[_vm._v("此刻")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)],1):_vm._e()])}
@@ -8418,7 +8418,7 @@ var popper = __webpack_require__(14519);
8418
8418
  if (_this2.poppernIstance) {
8419
8419
  _this2.poppernIstance.update();
8420
8420
  }
8421
- }, 0);
8421
+ }, 100);
8422
8422
  }
8423
8423
  },
8424
8424
  methods: {
@@ -8839,10 +8839,10 @@ var popper = __webpack_require__(14519);
8839
8839
  });
8840
8840
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
8841
8841
  /* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
8842
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=1331ab94&lang=scss&scoped=true&
8842
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=39dd7333&lang=scss&scoped=true&
8843
8843
  // extracted by mini-css-extract-plugin
8844
8844
 
8845
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=1331ab94&lang=scss&scoped=true&
8845
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=39dd7333&lang=scss&scoped=true&
8846
8846
 
8847
8847
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
8848
8848
  var componentNormalizer = __webpack_require__(1001);
@@ -8861,7 +8861,7 @@ var component = (0,componentNormalizer/* default */.Z)(
8861
8861
  staticRenderFns,
8862
8862
  false,
8863
8863
  null,
8864
- "1331ab94",
8864
+ "39dd7333",
8865
8865
  null
8866
8866
 
8867
8867
  )
@@ -26610,7 +26610,7 @@ var SubDocManger = /*#__PURE__*/function () {
26610
26610
  /* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86769);
26611
26611
  /* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4__);
26612
26612
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(42015);
26613
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(16296);
26613
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(16296);
26614
26614
  /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41539);
26615
26615
  /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);
26616
26616
  /* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88674);
@@ -26709,6 +26709,8 @@ var SubDocManger = /*#__PURE__*/function () {
26709
26709
  /* harmony import */ var _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(78975);
26710
26710
  /* harmony import */ var _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(88531);
26711
26711
  /* harmony import */ var _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(55817);
26712
+ /* harmony import */ var _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(85031);
26713
+
26712
26714
 
26713
26715
 
26714
26716
 
@@ -26816,7 +26818,7 @@ var DocController = /*#__PURE__*/function () {
26816
26818
  // }
26817
26819
 
26818
26820
 
26819
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_87__/* ["default"] */ .Z)(DocController, [{
26821
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_88__/* ["default"] */ .Z)(DocController, [{
26820
26822
  key: "onInsertNodeByID",
26821
26823
  get: function get() {
26822
26824
  return this._onInsertNodeByID;
@@ -26882,10 +26884,18 @@ var DocController = /*#__PURE__*/function () {
26882
26884
 
26883
26885
  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) {
26884
26886
  var firstPath = parentNode.StartMarkNode.getNodePath();
26887
+ var lastPath = parentNode.EndMarkNode.getNodePath();
26885
26888
 
26886
26889
  if (curRange.isEmpty && curRange.endPath == firstPath) {
26887
- var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
26888
- curRange.endPath = lastPath;
26890
+ var ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
26891
+ curRange.endPath = ePath;
26892
+ }
26893
+
26894
+ if (!curRange.isEmpty && curRange.endPath == lastPath) {
26895
+ var _ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
26896
+
26897
+ curRange.startPath = firstPath;
26898
+ curRange.endPath = _ePath;
26889
26899
  }
26890
26900
  }
26891
26901
 
@@ -27104,13 +27114,16 @@ var DocController = /*#__PURE__*/function () {
27104
27114
  });
27105
27115
  }
27106
27116
  } else {
27117
+ node = hoEditorFactory.docTree.findNodePositionByPath(strPath).node;
27118
+
27107
27119
  if (aTextArray[0] == 0 && node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && childIndex >= 0 && node.styleIndex == hoEditorFactory.docTree.curStyleIndex) {
27108
27120
  if (hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !curTextStyle.combineStyle.strikeout) {
27109
27121
  var textNode = node;
27110
27122
 
27111
- _this.insertNodeText(textNode, strPath, aText);
27123
+ _this.insertNodeText(textNode, strPath, aText); //strPath = hoEditorFactory.docTree.curDomRange.startPath;
27112
27124
 
27113
- strPath = hoEditorFactory.docTree.curDomRange.startPath;
27125
+
27126
+ strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
27114
27127
  } else {
27115
27128
  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);
27116
27129
 
@@ -27381,7 +27394,7 @@ var DocController = /*#__PURE__*/function () {
27381
27394
  // );
27382
27395
  // hoEditorFactory.undoService.commit();
27383
27396
 
27384
- _context.next = 124;
27397
+ _context.next = 123;
27385
27398
  break;
27386
27399
 
27387
27400
  case 6:
@@ -27390,12 +27403,12 @@ var DocController = /*#__PURE__*/function () {
27390
27403
  node = nodePosition.node;
27391
27404
 
27392
27405
  if (!node) {
27393
- _context.next = 124;
27406
+ _context.next = 123;
27394
27407
  break;
27395
27408
  }
27396
27409
 
27397
27410
  if (!domRange.isEmpty) {
27398
- _context.next = 124;
27411
+ _context.next = 123;
27399
27412
  break;
27400
27413
  }
27401
27414
 
@@ -27464,7 +27477,7 @@ var DocController = /*#__PURE__*/function () {
27464
27477
  aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
27465
27478
  this.deleteRange(aRange, true);
27466
27479
  hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
27467
- _context.next = 124;
27480
+ _context.next = 123;
27468
27481
  break;
27469
27482
 
27470
27483
  case 36:
@@ -27523,12 +27536,12 @@ var DocController = /*#__PURE__*/function () {
27523
27536
  // );
27524
27537
  // hoEditorFactory.undoService.commit();
27525
27538
 
27526
- _context.next = 124;
27539
+ _context.next = 123;
27527
27540
  break;
27528
27541
 
27529
27542
  case 55:
27530
27543
  if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C)) {
27531
- _context.next = 82;
27544
+ _context.next = 81;
27532
27545
  break;
27533
27546
  }
27534
27547
 
@@ -27543,12 +27556,12 @@ var DocController = /*#__PURE__*/function () {
27543
27556
 
27544
27557
  case 59:
27545
27558
  if (!(prevNode == null)) {
27546
- _context.next = 82;
27559
+ _context.next = 81;
27547
27560
  break;
27548
27561
  }
27549
27562
 
27550
27563
  if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
27551
- _context.next = 81;
27564
+ _context.next = 80;
27552
27565
  break;
27553
27566
  }
27554
27567
 
@@ -27559,35 +27572,39 @@ var DocController = /*#__PURE__*/function () {
27559
27572
  preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
27560
27573
 
27561
27574
  if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__/* .DrawLine */ .a && preParaNode.drawlines[0].isEmpty())) {
27562
- _context.next = 78;
27575
+ _context.next = 77;
27563
27576
  break;
27564
27577
  }
27565
27578
 
27579
+ // hoEditorFactory.undoService.begin();
27580
+ // hoEditorFactory.undoService.add(
27581
+ // new NodeDeleteUndoUnit(this._hoEditorFactoryID, tableNode.paragraphNode, tableNode.paragraphNode.getNodePath())
27582
+ // );
27583
+ // await hoEditorFactory.undoService.commit();
27566
27584
  hoEditorFactory.undoService.begin();
27567
- hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, tableNode.paragraphNode, tableNode.paragraphNode.getNodePath()));
27568
- tableNode.paragraphNode = preParaNode;
27569
- _context.next = 72;
27585
+ hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__/* .TableDeleteParagraphUndoUnit */ .T(this._hoEditorFactoryID, tableNode, tableNode.paragraphNode));
27586
+ _context.next = 71;
27570
27587
  return hoEditorFactory.undoService.commit();
27571
27588
 
27572
- case 72:
27589
+ case 71:
27573
27590
  newpath = cellNode.childNodes[0].getNodePath();
27574
27591
  hoEditorFactory.docTree.curDomRange.setSamePath(newpath);
27575
27592
  hoEditorFactory.drawTree.moveCaretToPath(newpath);
27576
27593
  return _context.abrupt("return");
27577
27594
 
27578
- case 78:
27595
+ case 77:
27579
27596
  return _context.abrupt("return");
27580
27597
 
27581
- case 79:
27582
- _context.next = 82;
27598
+ case 78:
27599
+ _context.next = 81;
27583
27600
  break;
27584
27601
 
27585
- case 81:
27602
+ case 80:
27586
27603
  return _context.abrupt("return");
27587
27604
 
27588
- case 82:
27605
+ case 81:
27589
27606
  if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
27590
- _context.next = 87;
27607
+ _context.next = 86;
27591
27608
  break;
27592
27609
  }
27593
27610
 
@@ -27595,16 +27612,16 @@ var DocController = /*#__PURE__*/function () {
27595
27612
 
27596
27613
  return _context.abrupt("return");
27597
27614
 
27598
- case 87:
27615
+ case 86:
27599
27616
  if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
27600
- _context.next = 92;
27617
+ _context.next = 91;
27601
27618
  break;
27602
27619
  }
27603
27620
 
27604
27621
  signUserId = node.customProperty.bce01;
27605
27622
 
27606
27623
  if (!(hoEditorFactory.userInfo.id != signUserId)) {
27607
- _context.next = 92;
27624
+ _context.next = 91;
27608
27625
  break;
27609
27626
  }
27610
27627
 
@@ -27612,9 +27629,9 @@ var DocController = /*#__PURE__*/function () {
27612
27629
 
27613
27630
  return _context.abrupt("return");
27614
27631
 
27615
- case 92:
27632
+ case 91:
27616
27633
  if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
27617
- _context.next = 95;
27634
+ _context.next = 94;
27618
27635
  break;
27619
27636
  }
27620
27637
 
@@ -27622,9 +27639,9 @@ var DocController = /*#__PURE__*/function () {
27622
27639
 
27623
27640
  return _context.abrupt("return");
27624
27641
 
27625
- case 95:
27642
+ case 94:
27626
27643
  if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
27627
- _context.next = 98;
27644
+ _context.next = 97;
27628
27645
  break;
27629
27646
  }
27630
27647
 
@@ -27632,9 +27649,9 @@ var DocController = /*#__PURE__*/function () {
27632
27649
 
27633
27650
  return _context.abrupt("return");
27634
27651
 
27635
- case 98:
27652
+ case 97:
27636
27653
  if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
27637
- _context.next = 119;
27654
+ _context.next = 118;
27638
27655
  break;
27639
27656
  }
27640
27657
 
@@ -27642,7 +27659,7 @@ var DocController = /*#__PURE__*/function () {
27642
27659
  nextNode = node.nextLeaf();
27643
27660
 
27644
27661
  if (!((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
27645
- _context.next = 109;
27662
+ _context.next = 108;
27646
27663
  break;
27647
27664
  }
27648
27665
 
@@ -27654,9 +27671,9 @@ var DocController = /*#__PURE__*/function () {
27654
27671
  hoEditorFactory.undoService.commit();
27655
27672
  return _context.abrupt("return");
27656
27673
 
27657
- case 109:
27674
+ case 108:
27658
27675
  if (!(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
27659
- _context.next = 119;
27676
+ _context.next = 118;
27660
27677
  break;
27661
27678
  }
27662
27679
 
@@ -27682,7 +27699,7 @@ var DocController = /*#__PURE__*/function () {
27682
27699
  hoEditorFactory.undoService.commit();
27683
27700
  return _context.abrupt("return");
27684
27701
 
27685
- case 119:
27702
+ case 118:
27686
27703
  pNode = node.parentNode;
27687
27704
  hoEditorFactory.undoService.begin();
27688
27705
  hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
@@ -27692,7 +27709,7 @@ var DocController = /*#__PURE__*/function () {
27692
27709
  this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
27693
27710
  }
27694
27711
 
27695
- case 124:
27712
+ case 123:
27696
27713
  case "end":
27697
27714
  return _context.stop();
27698
27715
  }
@@ -30515,6 +30532,28 @@ var DocController = /*#__PURE__*/function () {
30515
30532
  hoEditorFactory.undoService.commit();
30516
30533
  }
30517
30534
  }
30535
+ /**
30536
+ * 修改空签名
30537
+ * @param node 签名节点
30538
+ * @param name 签名名称
30539
+ * @param attribute 签名属性
30540
+ */
30541
+
30542
+ }, {
30543
+ key: "updateEmptySignNode",
30544
+ value: function updateEmptySignNode(node, name, attribute, connectChar) {
30545
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
30546
+ var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
30547
+ var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
30548
+ var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_26__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
30549
+ changeEvent.oldEndPath = ePath;
30550
+ changeEvent.afterChangePath = ePath;
30551
+ changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
30552
+ node.name = name;
30553
+ node.connectChar = connectChar;
30554
+ node.attribute = attribute;
30555
+ hoEditorFactory.docTree.change(changeEvent);
30556
+ }
30518
30557
  /**
30519
30558
  * 更新签名时间
30520
30559
  * @param node 签名节点
@@ -30811,6 +30850,8 @@ var DocAction;
30811
30850
  DocAction[DocAction["daParaStyleChange"] = 10] = "daParaStyleChange";
30812
30851
  DocAction[DocAction["daInsertAreaFirstParagraph"] = 11] = "daInsertAreaFirstParagraph";
30813
30852
  DocAction[DocAction["daInsertParagraphBetweenTab"] = 12] = "daInsertParagraphBetweenTab";
30853
+ DocAction[DocAction["daInsertParagraphBeforeTab"] = 13] = "daInsertParagraphBeforeTab";
30854
+ DocAction[DocAction["daDeleteParagraphBeforeTab"] = 14] = "daDeleteParagraphBeforeTab";
30814
30855
  })(DocAction || (DocAction = {}));
30815
30856
 
30816
30857
  var ctlKey;
@@ -47938,6 +47979,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
47938
47979
  set: function set(value) {
47939
47980
  if (this._attribute !== value) {
47940
47981
  this._attribute = value;
47982
+ this.node2DrawNodeRange(0, 0);
47941
47983
  }
47942
47984
  }
47943
47985
  }, {
@@ -58167,6 +58209,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
58167
58209
 
58168
58210
  if (!canfit && this._allowAcrossPage) {
58169
58211
  this._endDline = nextDline - 1;
58212
+
58213
+ if (this._endDline == -1) {
58214
+ this._endDline = -2;
58215
+ }
58216
+
58170
58217
  this.clearOverDitem(dlines, nextDline);
58171
58218
  isFull = true;
58172
58219
  bFinishedPaint = false;
@@ -58332,6 +58379,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
58332
58379
  if (!canfit && dTop > 0 && this._allowAcrossPage) {
58333
58380
  var nextArea = this.getNextDrawArea();
58334
58381
  this._endDline = nextDline - 1;
58382
+
58383
+ if (this._endDline == -1) {
58384
+ this._endDline = -2;
58385
+ }
58386
+
58335
58387
  isFull = true; // this.clearOverDitem(dlines, nextDline);
58336
58388
 
58337
58389
  return [isFull, dTop, restHeight];
@@ -63029,6 +63081,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
63029
63081
  }, {
63030
63082
  key: "paintArea",
63031
63083
  value: function paintArea(dlines, startIndex, dTop) {
63084
+ startIndex = startIndex < -1 ? 0 : startIndex;
63085
+
63032
63086
  var _get$call = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "paintArea", this).call(this, dlines, startIndex, dTop),
63033
63087
  _get$call2 = (0,slicedToArray/* default */.Z)(_get$call, 3),
63034
63088
  bret = _get$call2[0],
@@ -63434,9 +63488,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
63434
63488
  // }
63435
63489
 
63436
63490
 
63437
- this._startDline = startIndex;
63491
+ this._startDline = startIndex < -1 ? 0 : startIndex;
63438
63492
 
63439
- var ret = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "update", this).call(this, prevDrawArea, dlines, startIndex, valignTop, restHeight);
63493
+ var ret = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "update", this).call(this, prevDrawArea, dlines, this._startDline, valignTop, restHeight);
63440
63494
 
63441
63495
  this._docHeight = Math.max(0, this._docHeight - valignTop);
63442
63496
  this.updateDHeight();
@@ -64451,7 +64505,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
64451
64505
  dHeight = _cell.drawCell.getCellRestHeight(_cell.drawCell.drawPageCells.indexOf(dPartCell) - 1);
64452
64506
 
64453
64507
  if (dPartCell.isEndLineFinished()) {
64454
- startDline = dPartCell.endDline + 1;
64508
+ if (dPartCell.endDline == -2) {
64509
+ startDline = 0;
64510
+ } else {
64511
+ startDline = dPartCell.endDline + 1;
64512
+ }
64455
64513
  } else startDline = dPartCell.endDline;
64456
64514
  }
64457
64515
  } else if (_cell.drawCell.drawPageCells.length > 0) {
@@ -65188,7 +65246,13 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
65188
65246
 
65189
65247
  if (dPrevPartCell) {
65190
65248
  partCellindex = _cell2.drawCell.drawPageCells.indexOf(dPrevPartCell);
65191
- if (dPrevPartCell.isEndLineFinished()) startChildIndex = dPrevPartCell.endDline + 1;else startChildIndex = dPrevPartCell.endDline;
65249
+ if (dPrevPartCell.isEndLineFinished()) {
65250
+ if (dPrevPartCell.endDline == -2) {
65251
+ startChildIndex = 0;
65252
+ } else {
65253
+ startChildIndex = dPrevPartCell.endDline + 1;
65254
+ }
65255
+ } else startChildIndex = dPrevPartCell.endDline;
65192
65256
  }
65193
65257
  }
65194
65258
 
@@ -72055,15 +72119,114 @@ var DrawTree = /*#__PURE__*/function () {
72055
72119
  // dendDrawLine = e.redrawEndPositon.drawRoots[e.redrawEndPositon.index];
72056
72120
  // }
72057
72121
 
72058
- } else if (e.action === DocTree/* DocAction.daInsertAreaFirstParagraph */.gk.daInsertAreaFirstParagraph) {
72122
+ } else if (e.action === DocTree/* DocAction.daInsertParagraphBeforeTab */.gk.daInsertParagraphBeforeTab) {
72059
72123
  if (dCell) {
72060
72124
  dCell.needUpdate = true;
72061
72125
  }
72062
72126
 
72063
- var np = hoEditorFactory.docTree.findNodePositionByPath(e.beforeChangePath);
72127
+ var np = hoEditorFactory.docTree.findNodePositionByPath(e.afterChangePath);
72064
72128
 
72065
72129
  if (np && np.node && np.node instanceof ParagraphNode/* ParagraphNode */.C) {
72066
- paragraphNode = np.node;
72130
+ var beforeNode = np.node.prevSibling();
72131
+ var afterNode = np.node.nextSibling();
72132
+
72133
+ if (beforeNode instanceof ParagraphNode/* ParagraphNode */.C && afterNode instanceof TableNode/* TableNode */.Fh && beforeNode.drawlines[0] instanceof DrawTable/* DrawTable */.t) {
72134
+ var dTable = beforeNode.drawlines[0];
72135
+ var index = beforeNode.drootNodes.indexOf(dTable);
72136
+ beforeNode.drootNodes.splice(index, 1);
72137
+ beforeNode.node2DrawNode();
72138
+
72139
+ if (dArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && beforeNode.rootNodes.indexOf(beforeNode) == 0) {
72140
+ beforeNode.drawlines[0].dTop = hoEditorFactory.firstPageStartTop;
72141
+ beforeNode.drawlines[0].y = hoEditorFactory.firstPageStartTop;
72142
+ beforeNode.drawlines[0].x = paragraphNode.drawlines[0].dLeft;
72143
+ beforeNode.drootNodes.splice(index, 0, beforeNode.drawlines[0]);
72144
+
72145
+ if (dArea) {
72146
+ dArea.addChild(paragraphNode.drawlines[0]);
72147
+
72148
+ if (index == 0) {
72149
+ dArea.topDline = paragraphNode.drawlines[0];
72150
+ }
72151
+ }
72152
+ } else {
72153
+ beforeNode.clear();
72154
+ beforeNode.node2DrawNode();
72155
+ beforeNode.placeDNodeAfterDline(beforeNode.drootNodes[index - 1]);
72156
+ }
72157
+
72158
+ beforeNode.updateDrawLineStyle();
72159
+ beforeNode.updateDrawInfos();
72160
+ np.node.node2DrawNode();
72161
+ np.node.placeDNodeAfterDline(beforeNode.drawlines[0]);
72162
+ dTable.table.placeDNodeAfterDrawLine(np.node, np.node.drawlines[0], e.afterChangePath);
72163
+ dline = node.drawTable;
72164
+
72165
+ if (e.repaintImmediate) {
72166
+ if (!dArea) {
72167
+ return false;
72168
+ }
72169
+
72170
+ dArea.changed = true;
72171
+
72172
+ var _mainArea4 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
72173
+
72174
+ if (!_mainArea4) return false;
72175
+ _mainArea4.changed = true;
72176
+ hoEditorFactory.drawPageTree.update(dArea, alines, beforeNode.drawlines[0].dTop, index, beforeNode.drootNodes.length - 1);
72177
+ }
72178
+ }
72179
+ }
72180
+ } else if (e.action === DocTree/* DocAction.daDeleteParagraphBeforeTab */.gk.daDeleteParagraphBeforeTab) {
72181
+ if (dCell) {
72182
+ dCell.needUpdate = true;
72183
+ }
72184
+
72185
+ var _np = hoEditorFactory.docTree.findNodePositionByPath(e.afterChangePath);
72186
+
72187
+ if (_np && _np.node && _np.node instanceof TableNode/* TableNode */.Fh) {
72188
+ var _beforeNode = _np.node.prevSibling();
72189
+
72190
+ if (_beforeNode instanceof ParagraphNode/* ParagraphNode */.C && _np.node instanceof TableNode/* TableNode */.Fh && _beforeNode.drawlines[0] instanceof DrawLine/* DrawLine */.a) {
72191
+ var _dTable = _np.node.drawTable;
72192
+ var tabIndex = alines.indexOf(_dTable);
72193
+
72194
+ if (tabIndex >= 0) {
72195
+ alines.splice(tabIndex, 1);
72196
+ }
72197
+
72198
+ var _index2 = _beforeNode.drootNodes.indexOf(_beforeNode.drawlines[0]);
72199
+
72200
+ var dTop = _beforeNode.drawlines[0].y;
72201
+
72202
+ _np.node.placeDNodeAfterDrawLine(_beforeNode, _beforeNode.drawlines[0], e.afterChangePath);
72203
+
72204
+ dline = node.drawTable;
72205
+
72206
+ if (e.repaintImmediate) {
72207
+ if (!dArea) {
72208
+ return false;
72209
+ }
72210
+
72211
+ dArea.changed = true;
72212
+
72213
+ var _mainArea5 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
72214
+
72215
+ if (!_mainArea5) return false;
72216
+ _mainArea5.changed = true;
72217
+ hoEditorFactory.drawPageTree.update(dArea, alines, dTop, _index2, _beforeNode.drootNodes.length - 1);
72218
+ }
72219
+ }
72220
+ }
72221
+ } else if (e.action === DocTree/* DocAction.daInsertAreaFirstParagraph */.gk.daInsertAreaFirstParagraph) {
72222
+ if (dCell) {
72223
+ dCell.needUpdate = true;
72224
+ }
72225
+
72226
+ var _np2 = hoEditorFactory.docTree.findNodePositionByPath(e.beforeChangePath);
72227
+
72228
+ if (_np2 && _np2.node && _np2.node instanceof ParagraphNode/* ParagraphNode */.C) {
72229
+ paragraphNode = _np2.node;
72067
72230
  lineIndex = 0;
72068
72231
  paragraphNode.drawlines[0].updateLineStyle();
72069
72232
  paragraphNode.drootNodes.splice(0, 0, paragraphNode.drawlines[0]);
@@ -72095,10 +72258,10 @@ var DrawTree = /*#__PURE__*/function () {
72095
72258
 
72096
72259
  dArea.changed = true;
72097
72260
 
72098
- var _mainArea4 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
72261
+ var _mainArea6 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
72099
72262
 
72100
- if (!_mainArea4) return false;
72101
- _mainArea4.changed = true;
72263
+ if (!_mainArea6) return false;
72264
+ _mainArea6.changed = true;
72102
72265
  var _drawTop3 = alines[0].y;
72103
72266
  hoEditorFactory.drawPageTree.update(dArea, alines, _drawTop3, 0, alines.length - 1);
72104
72267
  }
@@ -72108,13 +72271,15 @@ var DrawTree = /*#__PURE__*/function () {
72108
72271
  dCell.needUpdate = true;
72109
72272
  }
72110
72273
 
72111
- var _np = hoEditorFactory.docTree.findNodePositionByPath(e.afterChangePath);
72274
+ var _np3 = hoEditorFactory.docTree.findNodePositionByPath(e.afterChangePath);
72112
72275
 
72113
- if (_np && _np.node && _np.node instanceof ParagraphNode/* ParagraphNode */.C) {
72114
- paragraphNode = _np.node;
72276
+ if (_np3 && _np3.node && _np3.node instanceof ParagraphNode/* ParagraphNode */.C) {
72277
+ paragraphNode = _np3.node;
72115
72278
  lineIndex = 0;
72116
- var index = paragraphNode.drootNodes.indexOf(dline);
72117
- var prevDline = paragraphNode.drootNodes[index - 1];
72279
+
72280
+ var _index3 = paragraphNode.drootNodes.indexOf(dline);
72281
+
72282
+ var prevDline = paragraphNode.drootNodes[_index3 - 1];
72118
72283
  paragraphNode.placeDNodeAfterDline(prevDline);
72119
72284
  paragraphNode.drawlines[0].fitLines();
72120
72285
  paragraphNode.updateDrawLineStyle();
@@ -72133,11 +72298,11 @@ var DrawTree = /*#__PURE__*/function () {
72133
72298
 
72134
72299
  dArea.changed = true;
72135
72300
 
72136
- var _mainArea5 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
72301
+ var _mainArea7 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
72137
72302
 
72138
- if (!_mainArea5) return false;
72139
- _mainArea5.changed = true;
72140
- hoEditorFactory.drawPageTree.paint(dArea, alines, index - 1, alines.length - 1);
72303
+ if (!_mainArea7) return false;
72304
+ _mainArea7.changed = true;
72305
+ hoEditorFactory.drawPageTree.paint(dArea, alines, _index3 - 1, alines.length - 1);
72141
72306
  }
72142
72307
  }
72143
72308
  } // if (dCell) {
@@ -72985,11 +73150,11 @@ var DrawTree = /*#__PURE__*/function () {
72985
73150
  if (dPlace instanceof DrawPageCell/* DrawPageCell */.k && dPlace.isEmpty()) {
72986
73151
  var aPrevPlace;
72987
73152
 
72988
- var _index2 = dPlace.cell.drawCell.drawPageCells.indexOf(dPlace);
73153
+ var _index4 = dPlace.cell.drawCell.drawPageCells.indexOf(dPlace);
72989
73154
 
72990
73155
  if (dPlace.cell.cellProperty.align != TableProperty/* VAlign.vabottom */.TR.vabottom) {
72991
- while (_index2 > 0) {
72992
- aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index2 - 1];
73156
+ while (_index4 > 0) {
73157
+ aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index4 - 1];
72993
73158
 
72994
73159
  if (!aPrevPlace.isEmpty()) {
72995
73160
  var rootArea = hoeditfactory.drawPageTree.getMainRootArea(aPrevPlace);
@@ -73001,11 +73166,11 @@ var DrawTree = /*#__PURE__*/function () {
73001
73166
  return this.getStagePosition(aPage, aPrevPlace, x, 99999999);
73002
73167
  }
73003
73168
 
73004
- _index2 -= 1;
73169
+ _index4 -= 1;
73005
73170
  }
73006
73171
  } else {
73007
- while (_index2 < dPlace.cell.drawCell.drawPageCells.length - 1) {
73008
- aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index2 + 1];
73172
+ while (_index4 < dPlace.cell.drawCell.drawPageCells.length - 1) {
73173
+ aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index4 + 1];
73009
73174
 
73010
73175
  if (!aPrevPlace.isEmpty()) {
73011
73176
  var _rootArea = hoeditfactory.drawPageTree.getMainRootArea(aPrevPlace);
@@ -73017,7 +73182,7 @@ var DrawTree = /*#__PURE__*/function () {
73017
73182
  return this.getStagePosition(aPage, aPrevPlace, x, 99999999);
73018
73183
  }
73019
73184
 
73020
- _index2 += 1;
73185
+ _index4 += 1;
73021
73186
  }
73022
73187
  }
73023
73188
  } // if (dPlace instanceof DrawCell) {
@@ -78458,6 +78623,156 @@ var TableDeleteColUndoUnit = /*#__PURE__*/function () {
78458
78623
 
78459
78624
  /***/ }),
78460
78625
 
78626
+ /***/ 85031:
78627
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
78628
+
78629
+ "use strict";
78630
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
78631
+ /* harmony export */ "T": function() { return /* binding */ TableDeleteParagraphUndoUnit; }
78632
+ /* harmony export */ });
78633
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42015);
78634
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(16296);
78635
+ /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21703);
78636
+ /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__);
78637
+ /* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71080);
78638
+ /* harmony import */ var _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(75438);
78639
+ /* harmony import */ var _editor_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(92178);
78640
+ /* harmony import */ var _editor_dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13880);
78641
+ /* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62938);
78642
+ /* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(35657);
78643
+ /* harmony import */ var _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(40713);
78644
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28831);
78645
+
78646
+
78647
+
78648
+
78649
+
78650
+
78651
+
78652
+
78653
+
78654
+
78655
+
78656
+ var TableDeleteParagraphUndoUnit = /*#__PURE__*/function () {
78657
+ function TableDeleteParagraphUndoUnit(hoEditorFactoryID, positionNode, deleteNode) {
78658
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, TableDeleteParagraphUndoUnit);
78659
+
78660
+ this._hoEditorFactoryID = hoEditorFactoryID;
78661
+ this._positionNode = positionNode;
78662
+ this._deleteNode = deleteNode;
78663
+ this._opTime = new Date();
78664
+ this._affectText = "";
78665
+ }
78666
+
78667
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(TableDeleteParagraphUndoUnit, [{
78668
+ key: "isEmpty",
78669
+ get: function get() {
78670
+ return false;
78671
+ }
78672
+ }, {
78673
+ key: "redo",
78674
+ value: function redo() {
78675
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
78676
+ var startPath = '';
78677
+ var endPath = '';
78678
+ var cgEvent;
78679
+
78680
+ var prevNode = this._deleteNode.prevSibling(); // if (this._action === DocAction.daInsertAreaFirstParagraph || this._action === DocAction.daInsertParagraphBetweenTab) {
78681
+ // startPath = this._deleteNode.getNodePath();
78682
+ // endPath = this._positionNode.paragraphNode.getNodePath();
78683
+ // cgEvent = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daDelete, startPath, endPath)
78684
+ // cgEvent.oldEndPath = endPath;
78685
+ // cgEvent.oldDrawTreeLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
78686
+ // hoEditorFactory.docTree.deleteNode(this._positionNode.paragraphNode);
78687
+ // }
78688
+ // else
78689
+
78690
+
78691
+ {
78692
+ if (prevNode && prevNode instanceof _editor_dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_5__/* .ParagraphNode */ .C) {
78693
+ startPath = prevNode.getNodePath();
78694
+ endPath = this._deleteNode.getNodePath();
78695
+ cgEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_7__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daDeleteParagraphBeforeTab */ .gk.daDeleteParagraphBeforeTab, startPath, endPath);
78696
+ cgEvent.oldEndPath = endPath;
78697
+ cgEvent.oldDrawTreeLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_6__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
78698
+ this._positionNode.paragraphNode = prevNode;
78699
+ hoEditorFactory.docTree.deleteNode(this._deleteNode);
78700
+ } else {
78701
+ throw new Error('错误的撤销恢复链,无法恢复');
78702
+ }
78703
+ } // hoEditorFactory.docController.deleteRange(new DomRange(this._hoEditorFactoryID, startPath, endPath), true)
78704
+
78705
+ hoEditorFactory.docTree.change(cgEvent);
78706
+ var caretPath = "".concat(this._positionNode.childNodes[0].getNodePath(), "/0");
78707
+ var oldRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
78708
+ var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, caretPath, caretPath);
78709
+ var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__/* .SelectionChangeEvent */ .r(oldRange, newRange);
78710
+ hoEditorFactory.docTree.selectChange(scgEvent);
78711
+ return;
78712
+ }
78713
+ }, {
78714
+ key: "undo",
78715
+ value: function undo() {
78716
+ //上方插入行
78717
+ var hoeditorfacotry = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
78718
+ this._positionNode.paragraphNode = this._deleteNode;
78719
+ hoeditorfacotry.docTree.insertNodeBeforeNode(this._positionNode, this._deleteNode);
78720
+
78721
+ var prevNode = this._deleteNode.prevSibling();
78722
+
78723
+ var startPath = '';
78724
+ var endPath = '';
78725
+ var action = _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daInsert */ .gk.daInsert;
78726
+
78727
+ if (prevNode) {
78728
+ startPath = hoeditorfacotry.docTree.getNodeLastPath(prevNode);
78729
+ endPath = this._deleteNode.getNodePath();
78730
+
78731
+ if (prevNode.nodeType == _editor_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .NodeType.ntTable */ .Jq.ntTable) {
78732
+ action = _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daInsertParagraphBetweenTab */ .gk.daInsertParagraphBetweenTab;
78733
+ } else {
78734
+ action = _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daInsertParagraphBeforeTab */ .gk.daInsertParagraphBeforeTab;
78735
+ }
78736
+ } else {
78737
+ startPath = this._deleteNode.getNodePath();
78738
+ endPath = startPath;
78739
+ }
78740
+
78741
+ this._action = action;
78742
+ var cgEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_7__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, action, startPath, endPath);
78743
+ hoeditorfacotry.docTree.change(cgEvent);
78744
+ var oldRange = hoeditorfacotry.docTree.curDomRange.clone();
78745
+ var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath);
78746
+ var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__/* .SelectionChangeEvent */ .r(oldRange, newRange);
78747
+ hoeditorfacotry.docTree.selectChange(scgEvent);
78748
+ }
78749
+ }, {
78750
+ key: "merge",
78751
+ value: function merge(undoUnit) {
78752
+ return false;
78753
+ }
78754
+ }, {
78755
+ key: "actionString",
78756
+ value: function actionString() {
78757
+ return "表格上方删除空行";
78758
+ }
78759
+ }, {
78760
+ key: "opTime",
78761
+ get: function get() {
78762
+ return this._opTime;
78763
+ }
78764
+ }, {
78765
+ key: "affectText",
78766
+ get: function get() {
78767
+ return this._affectText;
78768
+ }
78769
+ }]);
78770
+
78771
+ return TableDeleteParagraphUndoUnit;
78772
+ }();
78773
+
78774
+ /***/ }),
78775
+
78461
78776
  /***/ 41108:
78462
78777
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
78463
78778
 
@@ -78816,7 +79131,7 @@ var TableInsertParagraphUndoUnit = /*#__PURE__*/function () {
78816
79131
 
78817
79132
 
78818
79133
  hoEditorFactory.docTree.change(cgEvent);
78819
- var caretPath = "".concat(this._positionNode.childNodes[0], "/0");
79134
+ var caretPath = "".concat(this._positionNode.childNodes[0].getNodePath(), "/0");
78820
79135
  var oldRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
78821
79136
  var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, caretPath, caretPath);
78822
79137
  var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_7__/* .SelectionChangeEvent */ .r(oldRange, newRange);
@@ -213181,7 +213496,7 @@ var map = {
213181
213496
  "./pageInfoes/PageInfoes.vue": 65562,
213182
213497
  "./paragraph/ParagraphDialog.vue": 43433,
213183
213498
  "./poperSelect/PoperMark.vue": 39959,
213184
- "./poperSelect/PoperSelect.vue": 10460,
213499
+ "./poperSelect/PoperSelect.vue": 57383,
213185
213500
  "./poperTipText/PoperTipText.vue": 97824,
213186
213501
  "./popers/Poper.vue": 67574,
213187
213502
  "./popers/Title.vue": 95196,
@@ -214737,9 +215052,9 @@ var es_string_match = __webpack_require__(4723);
214737
215052
  var es_number_constructor = __webpack_require__(9653);
214738
215053
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
214739
215054
  var es_json_stringify = __webpack_require__(38862);
214740
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=6a4e96d0&
214741
- var HoDocvue_type_template_id_6a4e96d0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.showDeleteSignMenu)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本:   "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
214742
- var HoDocvue_type_template_id_6a4e96d0_staticRenderFns = []
215055
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=088d007e&
215056
+ var HoDocvue_type_template_id_088d007e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.showDeleteSignMenu)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本:   "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
215057
+ var HoDocvue_type_template_id_088d007e_staticRenderFns = []
214743
215058
 
214744
215059
 
214745
215060
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
@@ -215396,7 +215711,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
215396
215711
  var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
215397
215712
  var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
215398
215713
 
215399
- if (!dPage.drawDomLevel) {
215714
+ if (!dPage || !dPage.drawDomLevel) {
215400
215715
  return false;
215401
215716
  }
215402
215717
 
@@ -216668,7 +216983,7 @@ var DrawPage = __webpack_require__(62530);
216668
216983
  // EXTERNAL MODULE: ./src/plugins/util.ts
216669
216984
  var util = __webpack_require__(17987);
216670
216985
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 8 modules
216671
- var PoperSelect = __webpack_require__(10460);
216986
+ var PoperSelect = __webpack_require__(57383);
216672
216987
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
216673
216988
  var PoperMark = __webpack_require__(39959);
216674
216989
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
@@ -218380,7 +218695,7 @@ var SignNode = __webpack_require__(78975);
218380
218695
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
218381
218696
  var ParagraphNode = __webpack_require__(13880);
218382
218697
  ;// CONCATENATED MODULE: ./src/components/version.ts
218383
- /* harmony default export */ var version = ('2.0.99');
218698
+ /* harmony default export */ var version = ('2.0.101');
218384
218699
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
218385
218700
  var PoperTipText = __webpack_require__(97824);
218386
218701
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -219163,8 +219478,8 @@ var ImageNode = __webpack_require__(23778);
219163
219478
 
219164
219479
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
219165
219480
  components_HoDocvue_type_script_lang_js_,
219166
- HoDocvue_type_template_id_6a4e96d0_render,
219167
- HoDocvue_type_template_id_6a4e96d0_staticRenderFns,
219481
+ HoDocvue_type_template_id_088d007e_render,
219482
+ HoDocvue_type_template_id_088d007e_staticRenderFns,
219168
219483
  false,
219169
219484
  null,
219170
219485
  null,
@@ -219431,6 +219746,7 @@ var DrawPageTree = /*#__PURE__*/function () {
219431
219746
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
219432
219747
 
219433
219748
  if (aDrawArea instanceof DrawPageCell/* DrawPageCell */.k) {
219749
+ //单元格内的绘制单独调用paintDrawPageCell
219434
219750
  this.paintDrawPageCell(aDrawArea, dRoots, startLine, endLine);
219435
219751
  return;
219436
219752
  }
@@ -219438,16 +219754,19 @@ var DrawPageTree = /*#__PURE__*/function () {
219438
219754
  var startUpdateLine = endLine;
219439
219755
  var drawArea = aDrawArea;
219440
219756
  this._oldPageCount = hoEditorFactory.drawTree.drawPages.length;
219441
- var restHeight = Infinity;
219757
+ var restHeight = Infinity; //-----------开始定位绘制起始行,绘制起始位置--------------------------
219758
+
219442
219759
  var aline = dRoots[startLine];
219443
219760
  var dLine;
219444
219761
  var dTop = 0;
219445
219762
  var mainDTop = 0;
219446
219763
 
219447
219764
  if (aline instanceof DrawTable/* DrawTable */.t) {
219765
+ //表格在绘制时,只取最后一个分页表格,
219448
219766
  if (aline.drawPageTables.length > 0) {
219449
219767
  dLine = aline.drawPageTables[aline.drawPageTables.length - 1];
219450
219768
  } else {
219769
+ //表格还未开始绘制,无起始行
219451
219770
  dLine = null;
219452
219771
 
219453
219772
  if (startLine > 0) {
@@ -219479,7 +219798,8 @@ var DrawPageTree = /*#__PURE__*/function () {
219479
219798
  } else {
219480
219799
  dLine = aline;
219481
219800
  dTop = aline.y;
219482
- }
219801
+ } //----------------结束定位绘制起始行,绘制起始位置--------------------------
219802
+
219483
219803
 
219484
219804
  if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop; // let drawArea = this.getMainRootArea(dLine);
219485
219805
 
@@ -219497,12 +219817,13 @@ var DrawPageTree = /*#__PURE__*/function () {
219497
219817
  this.clearAreas([mainArea]);
219498
219818
  }
219499
219819
 
219500
- var nextLine = startLine;
219820
+ var nextLine = startLine; //用于判断是否页已经満页的map
219821
+
219501
219822
  var pageIsFull = new Map();
219502
219823
 
219503
219824
  try {
219504
219825
  this._startNeedUpdatePage = -1;
219505
- this._endNeedUpdatePage = -1;
219826
+ this._endNeedUpdatePage = -1; //------------开始将不分页绘制树中的绘制行,按页进行摆放--------------------------
219506
219827
 
219507
219828
  while (nextLine <= endLine) {
219508
219829
  var dline = dRoots[nextLine]; //如果需要新起一页,则新起一页
@@ -219515,7 +219836,8 @@ var DrawPageTree = /*#__PURE__*/function () {
219515
219836
  drawArea = this.getNextDrawArea(drawArea, true)[0];
219516
219837
  dTop = 0;
219517
219838
  if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
219518
- }
219839
+ } // 判断是否已经满页
219840
+
219519
219841
 
219520
219842
  if (dline instanceof DrawTable/* DrawTable */.t && restHeight < hoEditorFactory.defaultLineHeight || dline instanceof DrawLine/* DrawLine */.a && restHeight < dline.dHeight) {
219521
219843
  if (dline instanceof DrawLine/* DrawLine */.a && restHeight >= hoEditorFactory.defaultLineHeight) {
@@ -219534,11 +219856,13 @@ var DrawPageTree = /*#__PURE__*/function () {
219534
219856
 
219535
219857
 
219536
219858
  if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
219537
- this.afterAreaFinishPaint(drawArea);
219859
+ //当前已经満页,绘制批注页码等信息
219860
+ this.afterAreaFinishPaint(drawArea); // 计算重绘页范围 ,已废弃
219861
+
219538
219862
  this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
219539
219863
  this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
219540
219864
  pageIsFull.set(drawArea.index, true);
219541
- var isNew = false;
219865
+ var isNew = false; //获取下一个绘制页,并初始化绘制位置
219542
219866
 
219543
219867
  var _this$getNextDrawArea = this.getNextDrawArea(drawArea);
219544
219868
 
@@ -219556,7 +219880,8 @@ var DrawPageTree = /*#__PURE__*/function () {
219556
219880
  break;
219557
219881
  }
219558
219882
  }
219559
- }
219883
+ } //当前行不会触发满页,正常绘制
219884
+
219560
219885
 
219561
219886
  var _dobj = dRoots[nextLine];
219562
219887
  var cbParagraph = _dobj.paragraphNode.combineParagraph;
@@ -219565,10 +219890,12 @@ var DrawPageTree = /*#__PURE__*/function () {
219565
219890
  var bFinishedPaint = _dobj.drawPageTables.length > 0 && _dobj.isFinishedPaint();
219566
219891
 
219567
219892
  if (bFinishedPaint) {
219893
+ //修改起始绘制点,已废弃
219568
219894
  if (nextLine < startUpdateLine) {
219569
219895
  startUpdateLine = nextLine > 0 ? nextLine - 1 : 0;
219570
219896
  }
219571
219897
  } else {
219898
+ //表格分页绘制,当表格分页绘制完成,但未达到最后一行绘制完时,需要新起一页,接着绘制,直到表格绘制完成
219572
219899
  while (!bFinishedPaint) {
219573
219900
  var startRow = 0;
219574
219901
 
@@ -219631,6 +219958,7 @@ var DrawPageTree = /*#__PURE__*/function () {
219631
219958
  dTop += cbParagraph.lineSpace;
219632
219959
  }
219633
219960
  } else {
219961
+ //普通行绘制,检查是否满页,満页后需要新起一页绘制
219634
219962
  if (_dobj.dHeight > restHeight && dTop > 0) {
219635
219963
  if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
219636
219964
  drawArea.endDline = nextLine - 1; // drawArea.stage.update();
@@ -219646,12 +219974,14 @@ var DrawPageTree = /*#__PURE__*/function () {
219646
219974
  restHeight = drawArea.maxHeight - dTop;
219647
219975
  }
219648
219976
  }
219649
- }
219977
+ } //普通行正常绘制
219978
+
219650
219979
 
219651
219980
  if (nextLine > startLine || nextLine === startLine && !drawArea.contains(_dobj)) {
219652
219981
  drawArea.addChild(_dobj);
219653
219982
  _dobj.y = dTop; // dobj.x = cbParagraph.leftMarginPixes;
219654
- }
219983
+ } //修改下一行的绘制起始位置
219984
+
219655
219985
 
219656
219986
  dTop = _dobj.y + _dobj.dHeight + _dobj.paragraphNode.combineParagraph.lineSpace;
219657
219987
  mainArea.docHeight = dTop;
@@ -219664,7 +219994,7 @@ var DrawPageTree = /*#__PURE__*/function () {
219664
219994
  // }
219665
219995
 
219666
219996
 
219667
- var mainIndex = Math.min(nextLine, endLine, startUpdateLine); //正文绘制完毕 最后一行不需要执行更新
219997
+ var mainIndex = Math.min(nextLine, endLine, startUpdateLine); //绘制完成,清理多出来的绘制页
219668
219998
 
219669
219999
  if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && mainIndex === dRoots.length - 1) {
219670
220000
  drawArea.endDline = mainIndex;
@@ -219741,7 +220071,8 @@ var DrawPageTree = /*#__PURE__*/function () {
219741
220071
 
219742
220072
  if (startDrawLine instanceof DrawPageTable/* DrawPageTable */.ox && !mainArea.contains(startDrawLine) && startDrawLine instanceof DrawPageTable/* DrawPageTable */.ox && startDrawLine.table.drawTable.drawPageTables.indexOf(startDrawLine) > 0) {
219743
220073
  drawTop = 0;
219744
- }
220074
+ } //对于新插入的内容绘制完成后(一直到最后一个插入的段落结束),后续的段落需要进行移动位置,则调用update
220075
+
219745
220076
 
219746
220077
  this.update(mainArea, dMainRoots, drawTop, mainIndex, mainIndex, true);
219747
220078
  } finally {
@@ -220009,7 +220340,8 @@ var DrawPageTree = /*#__PURE__*/function () {
220009
220340
  }
220010
220341
 
220011
220342
  var startIndex = startLine;
220012
- var bChangedInTable = false;
220343
+ var bChangedInTable = false; //计算绘制起始坐标
220344
+
220013
220345
  var nextDlineTop = 0;
220014
220346
 
220015
220347
  if (startIndex === endLine && dRoots[startIndex] instanceof DrawTable/* DrawTable */.t) {
@@ -220027,7 +220359,8 @@ var DrawPageTree = /*#__PURE__*/function () {
220027
220359
 
220028
220360
  nextDlineTop = dobj.y;
220029
220361
  }
220030
- }
220362
+ } //----------
220363
+
220031
220364
 
220032
220365
  var aEndLine = dRoots.length - 1;
220033
220366
  var restHeight = Infinity;
@@ -220060,6 +220393,7 @@ var DrawPageTree = /*#__PURE__*/function () {
220060
220393
  // dLine.paragraphNode.combineParagraph.lineSpace;
220061
220394
  // startDline.dHeight +
220062
220395
  // startDline.paragraphNode.combineParagraph.lineSpace;
220396
+ //启用绘制优化,如果当前页不可见,则缓存绘制调用,当页可见时再调用
220063
220397
 
220064
220398
 
220065
220399
  if (hoEditorFactory.isUseDrawingOptimization) {
@@ -220070,13 +220404,14 @@ var DrawPageTree = /*#__PURE__*/function () {
220070
220404
  return;
220071
220405
  }
220072
220406
  }
220073
- }
220407
+ } //按区域调整区域内的所有坐标
220408
+
220074
220409
 
220075
220410
  drawArea.update(prevArea, dRoots, startIndex, dTop, restHeight);
220076
220411
  this.afterAreaFinishPaint(drawArea);
220077
220412
  this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
220078
220413
  this._endNeedUpdatePage = Math.max(drawArea.index, this._endNeedUpdatePage);
220079
- startIndex = drawArea.endDline;
220414
+ startIndex = drawArea.endDline; //如果绘制是在表格内,将下一个绘制对象切换到表格外(只遍历最外层绘制对象)
220080
220415
 
220081
220416
  if (bChangedInTable && startIndex > endLine + 1) {
220082
220417
  var _dItem = dRoots[endLine + 1];
@@ -221699,7 +222034,7 @@ var es_string_search = __webpack_require__(64765);
221699
222034
 
221700
222035
 
221701
222036
 
221702
- function xmlBeauty(text) {
222037
+ function XmlBeauty_xmlBeauty(text) {
221703
222038
  var ar = text //.replace(/>\s{0,}</g, "><")
221704
222039
  .replace(/</g, "~::~<").replace(/xmlns:/g, "~::~xmlns:").replace(/xmlns=/g, "~::~xmlns=").split('~::~');
221705
222040
  var len = ar.length;
@@ -222657,13 +222992,13 @@ var StructureConvert = /*#__PURE__*/function () {
222657
222992
  xmlRoot += "</pageSettings>";
222658
222993
  xmlRoot += "<styles>";
222659
222994
 
222660
- var _styles = this.doc2Json("styles");
222995
+ var _styles = this.doc2Json("styles", "xml", xmlRoot, clearSign);
222661
222996
 
222662
222997
  xmlRoot += x2js.js2xml(_styles);
222663
222998
  xmlRoot += "</styles>";
222664
222999
  xmlRoot += "<comments>";
222665
223000
 
222666
- var _comments = this.doc2Json("comments");
223001
+ var _comments = this.doc2Json("comments", "xml", xmlRoot, clearSign);
222667
223002
 
222668
223003
  xmlRoot += x2js.js2xml(_comments);
222669
223004
  xmlRoot += "</comments>";
@@ -222696,9 +223031,16 @@ var StructureConvert = /*#__PURE__*/function () {
222696
223031
  return xmlRoot;
222697
223032
  }
222698
223033
 
222699
- return xmlBeauty(xmlRoot);
223034
+ return XmlBeauty_xmlBeauty(xmlRoot);
222700
223035
  }
222701
223036
  }
223037
+ }, {
223038
+ key: "xmlBeauty",
223039
+ value: function xmlBeauty(xml) {
223040
+ var axml = XmlBeauty_xmlBeauty(xml);
223041
+
223042
+ return axml;
223043
+ }
222702
223044
  }, {
222703
223045
  key: "xml2Doc",
222704
223046
  value: function xml2Doc(xml, isClearSign) {
@@ -222750,6 +223092,7 @@ var StructureConvert = /*#__PURE__*/function () {
222750
223092
  // footerArrays[index][fj] = node;
222751
223093
  // }
222752
223094
  // }
223095
+ //this.xmlBeauty(xml)
222753
223096
  var aobject = this.xml2Object(xml);
222754
223097
 
222755
223098
  if (aobject) {
@@ -223138,6 +223481,10 @@ var StructureConvert = /*#__PURE__*/function () {
223138
223481
  delete textStyleJson["creatorIndex"];
223139
223482
  }
223140
223483
 
223484
+ if (clearSign && textStyle.commentID !== "0" && textStyle.commentID !== undefined) {
223485
+ textStyle.commentID = "0";
223486
+ }
223487
+
223141
223488
  if (textStyle.commentID === "0" || textStyle.commentID === undefined || textStyle.commentID === defaultFont.commentID) {
223142
223489
  delete textStyleJson["commentID"];
223143
223490
  }
@@ -223197,12 +223544,16 @@ var StructureConvert = /*#__PURE__*/function () {
223197
223544
 
223198
223545
  if (xmlNode === "comments") {
223199
223546
  var commentsArr = [];
223200
- var comments = hoEditorFactory.drawTree.commentsMap;
223201
- comments.forEach(function (value) {
223202
- var commentJson = JSON.parse(JSON.stringify(value, Comment/* Comment.whiteList */.s.whiteList()));
223203
- commentJson.customProperty = value.customProperty;
223204
- commentsArr.push(commentJson);
223205
- });
223547
+
223548
+ if (!clearSign) {
223549
+ var comments = hoEditorFactory.drawTree.commentsMap;
223550
+ comments.forEach(function (value) {
223551
+ var commentJson = JSON.parse(JSON.stringify(value, Comment/* Comment.whiteList */.s.whiteList()));
223552
+ commentJson.customProperty = value.customProperty;
223553
+ commentsArr.push(commentJson);
223554
+ });
223555
+ }
223556
+
223206
223557
  return {
223207
223558
  comment: commentsArr
223208
223559
  };
@@ -223935,6 +224286,9 @@ var StructureConvert = /*#__PURE__*/function () {
223935
224286
  }
223936
224287
  } else if (temp.nodeType == BaseNode/* NodeType.ntImage */.Jq.ntImage) {
223937
224288
  if (temp.imageType == "Image") {
224289
+ // if (temp.imageDataBase64String.substring(0, 5) == "file:") {
224290
+ // return;
224291
+ // }
223938
224292
  return ImageNode/* ImageNode.json2Node */.H.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
223939
224293
  } else if (temp.imageType == "Barcode") {
223940
224294
  return BarcodeNode/* BarcodeNode.json2Node */.T.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
@@ -224998,6 +225352,11 @@ var StructureNode = /*#__PURE__*/function () {
224998
225352
  this._text = this._Convertor.toText();
224999
225353
 
225000
225354
  if (clipboard) {
225355
+ if (this._json != "") {
225356
+ var patientID = hoEditorFactory.docTree.docProperty.patientID;
225357
+ this._json = patientID + ":" + this._json;
225358
+ }
225359
+
225001
225360
  clipboard.setData(ClipboardType.ctJSON, this._json);
225002
225361
  clipboard.setData(ClipboardType.ctHTML, this._html);
225003
225362
  clipboard.setData(ClipboardType.ctText, this._text);
@@ -230289,6 +230648,23 @@ var VueController = /*#__PURE__*/function () {
230289
230648
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
230290
230649
  hoEditorFactory.docController.updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
230291
230650
  }
230651
+ /**
230652
+ * 修改空签名
230653
+ * @param node 签名节点
230654
+ * @param name 签名名称
230655
+ * @param attribute 签名属性
230656
+ */
230657
+
230658
+ }, {
230659
+ key: "updateEmptySignNode",
230660
+ value: function updateEmptySignNode(node, name, attribute, connectChar) {
230661
+ if (node.type !== 0) {
230662
+ return;
230663
+ }
230664
+
230665
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
230666
+ hoEditorFactory.docController.updateEmptySignNode(node, name, attribute, connectChar);
230667
+ }
230292
230668
  /**
230293
230669
  * 更新签名时间
230294
230670
  * @param node 签名节点
@@ -232734,6 +233110,10 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message);
232734
233110
 
232735
233111
 
232736
233112
 
233113
+
233114
+
233115
+
233116
+
232737
233117
 
232738
233118
 
232739
233119
 
@@ -233069,10 +233449,28 @@ var EditController = /*#__PURE__*/function () {
233069
233449
 
233070
233450
  var nodes;
233071
233451
 
233452
+ if (!jsonData) {
233453
+ if (hoeditorfactory.notAllowCrossPatiPaste && hoeditorfactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign) {
233454
+ message_box_default().alert("不能粘贴他人病历内容到该患者病历中");
233455
+
233456
+ return;
233457
+ }
233458
+ }
233459
+
233072
233460
  if (jsonData) {
233461
+ var patientID = jsonData.split(":")[0];
233462
+ var index = jsonData.indexOf(":");
233463
+ jsonData = jsonData.substring(index + 1, jsonData.length);
233464
+
233073
233465
  if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
233074
233466
  nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
233075
233467
  } else {
233468
+ if (hoeditorfactory.notAllowCrossPatiPaste && patientID !== hoeditorfactory.docTree.docProperty.patientID) {
233469
+ message_box_default().alert("不能粘贴他人病历内容到该患者病历中");
233470
+
233471
+ return;
233472
+ }
233473
+
233076
233474
  var jsonObject = JSON.parse(jsonData);
233077
233475
 
233078
233476
  if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntTable" && parentNode instanceof CellNode/* CellNode */.D) {
@@ -235319,28 +235717,24 @@ var HoLocalStorage = /*#__PURE__*/function () {
235319
235717
  // storeName: this._storeName,
235320
235718
  // });
235321
235719
 
235322
- (_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : (_window$chrome$webvie = _window$chrome.webview) === null || _window$chrome$webvie === void 0 ? void 0 : _window$chrome$webvie.addEventListener("message", function (e) {
235720
+ (_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : (_window$chrome$webvie = _window$chrome.webview) === null || _window$chrome$webvie === void 0 ? void 0 : _window$chrome$webvie.addEventListener('message', function (e) {
235323
235721
  var res = JSON.parse(e.data);
235324
235722
 
235325
- if (res.result == true && res.res.cmd == "GetList") {
235723
+ if (res.result == true && res.res.cmd == 'GetList') {
235326
235724
  var _this$callBack;
235327
235725
 
235328
235726
  _this._localXmlList = res.res.EMR;
235329
235727
  (_this$callBack = _this.callBack) === null || _this$callBack === void 0 ? void 0 : _this$callBack.call(_this, _this._localXmlList);
235330
235728
  }
235331
235729
 
235332
- ;
235333
-
235334
- if (res.result == true && res.res.cmd == "Load") {
235730
+ if (res.result == true && res.res.cmd == 'Load') {
235335
235731
  var _this$callBackForLoad;
235336
235732
 
235337
235733
  _this._localXmlContent = res.res.EMR;
235338
235734
  (_this$callBackForLoad = _this.callBackForLoad) === null || _this$callBackForLoad === void 0 ? void 0 : _this$callBackForLoad.call(_this, _this._localXmlContent);
235339
235735
  }
235340
235736
 
235341
- ;
235342
-
235343
- if (res.res.cmd == "save") {} else {
235737
+ if (res.res.cmd == 'save') {} else {
235344
235738
  return false;
235345
235739
  }
235346
235740
  });
@@ -235374,9 +235768,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
235374
235768
  this.callBack = callBack;
235375
235769
  var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
235376
235770
  var data = {
235377
- exec: "emr",
235771
+ exec: 'emr',
235378
235772
  data: {
235379
- cmd: "getlist",
235773
+ cmd: 'getlist',
235380
235774
  content: {
235381
235775
  PatientID: hoEitfactory.docTree.docProperty.patientID,
235382
235776
  EMRName: hoEitfactory.docTree.docProperty.title
@@ -235401,9 +235795,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
235401
235795
 
235402
235796
  this.callBackForLoad = callBack;
235403
235797
  var data = {
235404
- exec: "emr",
235798
+ exec: 'emr',
235405
235799
  data: {
235406
- cmd: "load",
235800
+ cmd: 'load',
235407
235801
  content: {
235408
235802
  PatientID: item.PatientID,
235409
235803
  FileName: item.FileName
@@ -235461,9 +235855,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
235461
235855
 
235462
235856
  if (hoEitfactory && hoEitfactory.vueController.isModifyDoc()) {
235463
235857
  var data = {
235464
- exec: "emr",
235858
+ exec: 'emr',
235465
235859
  data: {
235466
- cmd: "save",
235860
+ cmd: 'save',
235467
235861
  content: {
235468
235862
  PatientID: hoEitfactory.docTree.docProperty.patientID,
235469
235863
  EMRName: hoEitfactory.docTree.docProperty.title,
@@ -235550,10 +235944,18 @@ var HoLocalStorage = /*#__PURE__*/function () {
235550
235944
  key: "saveFontString",
235551
235945
  value: function saveFontString(font) {
235552
235946
  this._print_font.setItem('sunsim_font', font);
235947
+
235948
+ this._print_font.setItem('sunsim_font_cache', '1');
235553
235949
  }
235554
235950
  }, {
235555
235951
  key: "loadFontString",
235556
- value: function loadFontString() {
235952
+ value: function loadFontString(cache) {
235953
+ if (cache === '1') {
235954
+ return this._print_font.getItem('sunsim_font_cache');
235955
+ }
235956
+
235957
+ this._print_font.setItem('sunsim_font_cache', '1');
235958
+
235557
235959
  return this._print_font.getItem('sunsim_font');
235558
235960
  }
235559
235961
  }]);
@@ -235635,6 +236037,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
235635
236037
  this._lastSaveTime = new Date(Date.now());
235636
236038
  this._superiorSigns = []; //上级医生签名
235637
236039
 
236040
+ this._notAllowCrossPatiPaste = false; //不允许跨病人复制粘贴
236041
+
235638
236042
  this._hoEditorFactoryId = id;
235639
236043
  }
235640
236044
  /**
@@ -236191,6 +236595,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
236191
236595
  this._pasteBase = value;
236192
236596
  }
236193
236597
  }
236598
+ }, {
236599
+ key: "notAllowCrossPatiPaste",
236600
+ get: function get() {
236601
+ return this._notAllowCrossPatiPaste;
236602
+ },
236603
+ set: function set(value) {
236604
+ if (this._notAllowCrossPatiPaste !== value) {
236605
+ this._notAllowCrossPatiPaste = value;
236606
+ }
236607
+ }
236194
236608
  }, {
236195
236609
  key: "isHideComments",
236196
236610
  get: function get() {