hoeditor-web 3.1.219 → 3.1.221

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.
@@ -86817,7 +86817,7 @@ var component = (0,componentNormalizer/* default */.A)(
86817
86817
 
86818
86818
  /***/ }),
86819
86819
 
86820
- /***/ 28140:
86820
+ /***/ 29731:
86821
86821
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
86822
86822
 
86823
86823
  "use strict";
@@ -86829,7 +86829,7 @@ __webpack_require__.d(__webpack_exports__, {
86829
86829
  "default": function() { return /* binding */ PoperTipText; }
86830
86830
  });
86831
86831
 
86832
- ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=17849594
86832
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=62f4863b
86833
86833
  var render = function render() {
86834
86834
  var _vm = this,
86835
86835
  _c = _vm._self._c;
@@ -86964,6 +86964,7 @@ var popper = __webpack_require__(98234);
86964
86964
  };
86965
86965
  this.poppernIstance = (0,popper/* createPopper */.n4)(virtualElement, this.poperTextNode, {
86966
86966
  placement: 'bottom-start',
86967
+ strategy: "fixed",
86967
86968
  modifiers: [{
86968
86969
  name: 'flip',
86969
86970
  options: {
@@ -86998,10 +86999,10 @@ var popper = __webpack_require__(98234);
86998
86999
 
86999
87000
  /* harmony default export */ var poperTipText_PoperTipTextvue_type_script_lang_js = (PoperTipTextvue_type_script_lang_js);
87000
87001
 
87001
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=17849594&prod&lang=less
87002
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=62f4863b&prod&lang=less
87002
87003
  // extracted by mini-css-extract-plugin
87003
87004
 
87004
- ;// ./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=17849594&prod&lang=less
87005
+ ;// ./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=62f4863b&prod&lang=less
87005
87006
 
87006
87007
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
87007
87008
  var componentNormalizer = __webpack_require__(81656);
@@ -104403,7 +104404,7 @@ const textParams = {
104403
104404
  /***/ (function(__unused_webpack_module, __webpack_exports__) {
104404
104405
 
104405
104406
  "use strict";
104406
- /* harmony default export */ __webpack_exports__.A = ('3.1.219');
104407
+ /* harmony default export */ __webpack_exports__.A = ('3.1.221');
104407
104408
 
104408
104409
  /***/ }),
104409
104410
 
@@ -107176,7 +107177,10 @@ class Print {
107176
107177
  let heightPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.heightMm, true);
107177
107178
  let orientation = widthPixes > heightPixes ? 'l' : 'p';
107178
107179
  let formats = [widthPixes, heightPixes];
107179
- let format = a4Size[orientation];
107180
+ let format = [widthPixes, heightPixes];
107181
+ if (hoEditorFactory.isFixedPrintToA4 == '1') {
107182
+ format = a4Size[orientation];
107183
+ }
107180
107184
  const svg2pdfOptions = {
107181
107185
  x: 0,
107182
107186
  y: 0
@@ -112844,39 +112848,11 @@ class DocTree {
112844
112848
  const paragraph = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_12__/* .Paragraph */ .fz(this._hoEditorFactoryID);
112845
112849
  this._paragraphs.splice(0, this._paragraphs.length);
112846
112850
  this._paragraphs.push(paragraph);
112847
- // const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
112848
- // this.headerNodes.push(new Array<BaseNode>());
112849
- // const index = this.headerNodes.length - 1;
112850
- // const paraHeader = new ParagraphNode(this.headerNodes[index], null, 0);
112851
- // this.headerNodes[index].push(paraHeader);
112852
- //this.addHeader(0);
112853
- // this.footerNodes.push(new Array<BaseNode>());
112854
- // const index1 = this.footerNodes.length - 1;
112855
- // const paraFooter = new ParagraphNode(this.footerNodes[index], null, 0);
112856
- // this.footerNodes[index].push(paraFooter);
112857
- //this.addFooter(0);
112858
112851
  const paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_18__/* .ParagraphNode */ .f(this._hoEditorFactoryID, this._mainNodes, null, 0);
112859
112852
  this._mainNodes.push(paraNode);
112860
112853
  const curPath = paraNode.getNodePath();
112861
- // this._curNodePosition= new NodePosition(this._mainNodes,paraNode,-1);
112862
112854
  this._curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_14__/* .DomRange */ .g(this._hoEditorFactoryID, curPath, curPath); //new DomRange(this._curNodePosition,this._curNodePosition);
112863
112855
  }
112864
- // public addHeader(index: number) {
112865
- // if (index > this.headerNodes.length - 1) {
112866
- // this.headerNodes.push(new Array<BaseNode>());
112867
- // const end = this.headerNodes.length - 1;
112868
- // const paraNode = new ParagraphNode(this.headerNodes[end], null, 0);
112869
- // this.headerNodes[end].push(paraNode);
112870
- // }
112871
- // }
112872
- // public addFooter(index: number) {
112873
- // if (index > this.footerNodes.length - 1) {
112874
- // this.footerNodes.push(new Array<BaseNode>());
112875
- // const end = this.footerNodes.length - 1;
112876
- // const paraNode = new ParagraphNode(this.footerNodes[end], null, 0);
112877
- // this.footerNodes[end].push(paraNode);
112878
- // }
112879
- // }
112880
112856
  //根据文档节点数组,返回文档节点的路径
112881
112857
  getRootPathByNodes(roots) {
112882
112858
  if (roots === this._mainNodes) {
@@ -114135,35 +114111,44 @@ class DocTree {
114135
114111
  clearDocTree() {
114136
114112
  this._styles.splice(0, this._styles.length);
114137
114113
  const style = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_17__/* .TextStyle */ .xJ(this._hoEditorFactoryID);
114114
+ this._defaultCombineStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_17__/* .CombineStyle */ .Ti(this._hoEditorFactoryID);
114138
114115
  this._styles.push(style);
114139
114116
  this._paragraphs.splice(0, this._paragraphs.length);
114140
114117
  const param = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_12__/* .Paragraph */ .fz(this._hoEditorFactoryID);
114141
114118
  this._paragraphs.push(param);
114142
114119
  const hoeditfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_35__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
114143
- for (let i = hoeditfactory.subDocManger.headerDocTree.length - 1; i >= 0; i--) {
114144
- const rootNodes = hoeditfactory.subDocManger.headerDocTree[i].subDocNodes;
114145
- if (rootNodes) this.clear(rootNodes);
114120
+ const footerDocTree = hoeditfactory.subDocManger.footerDocTree;
114121
+ const headerDocTree = hoeditfactory.subDocManger.headerDocTree;
114122
+ for (let i = headerDocTree.length - 1; i >= 0; i--) {
114123
+ if (headerDocTree[i] && headerDocTree[i].subDocNodes) {
114124
+ this.clear(headerDocTree[i].subDocNodes);
114125
+ }
114146
114126
  }
114147
- for (let i = hoeditfactory.subDocManger.footerDocTree.length - 1; i >= 0; i--) {
114148
- const rootNodes = hoeditfactory.subDocManger.footerDocTree[i].subDocNodes;
114149
- if (rootNodes) this.clear(rootNodes);
114127
+ for (let i = footerDocTree.length - 1; i >= 0; i--) {
114128
+ const rootNodes = footerDocTree[i].subDocNodes;
114129
+ if (footerDocTree[i] && footerDocTree[i].subDocNodes) {
114130
+ this.clear(rootNodes);
114131
+ }
114150
114132
  }
114151
- const rootNodes = this._mainNodes;
114152
- this.clear(rootNodes);
114133
+ this.clear(this._mainNodes);
114153
114134
  this._mainNodes.splice(1, this._mainNodes.length);
114154
- this._mainNodes[0].paraNo = 0;
114155
- const headerDocTree = hoeditfactory.subDocManger.headerDocTree;
114135
+ if (this._mainNodes[0]) {
114136
+ this._mainNodes[0].paraNo = 0;
114137
+ }
114156
114138
  headerDocTree.splice(1, headerDocTree.length);
114157
- headerDocTree[0].subDocNodes.splice(1, headerDocTree[0].subDocNodes.length);
114158
- headerDocTree[0].subDocNodes[0].paraNo = 0;
114159
- headerDocTree[0].pageIndex = 0;
114160
- headerDocTree[0].beginPath = "";
114161
- const footerDocTree = hoeditfactory.subDocManger.footerDocTree;
114139
+ if (headerDocTree[0]) {
114140
+ headerDocTree[0].subDocNodes.splice(1, headerDocTree[0].subDocNodes.length);
114141
+ headerDocTree[0].subDocNodes[0].paraNo = 0;
114142
+ headerDocTree[0].pageIndex = 0;
114143
+ headerDocTree[0].beginPath = "";
114144
+ }
114162
114145
  footerDocTree.splice(1, footerDocTree.length);
114163
- footerDocTree[0].subDocNodes.splice(1, footerDocTree[0].subDocNodes.length);
114164
- footerDocTree[0].subDocNodes[0].paraNo = 0;
114165
- footerDocTree[0].pageIndex = 0;
114166
- footerDocTree[0].beginPath = "";
114146
+ if (footerDocTree[0]) {
114147
+ footerDocTree[0].subDocNodes.splice(1, footerDocTree[0].subDocNodes.length);
114148
+ footerDocTree[0].subDocNodes[0].paraNo = 0;
114149
+ footerDocTree[0].pageIndex = 0;
114150
+ footerDocTree[0].beginPath = "";
114151
+ }
114167
114152
  this._nodeChangedHandlers.splice(1, this._nodeChangedHandlers.length);
114168
114153
  this._nodeChangingHandlers.splice(1, this._nodeChangingHandlers.length);
114169
114154
  this._nodeClickHandlers.splice(1, this._nodeChangingHandlers.length);
@@ -114178,8 +114163,10 @@ class DocTree {
114178
114163
  this._userHistories = new Array();
114179
114164
  this._elementChangeRecords = new Map();
114180
114165
  this._redrawHiddenParas = [];
114181
- const curPath = this._mainNodes[0].getNodePath();
114182
- this._curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_14__/* .DomRange */ .g(this._hoEditorFactoryID, curPath, curPath);
114166
+ if (this._mainNodes[0]) {
114167
+ const curPath = this._mainNodes[0].getNodePath();
114168
+ this._curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_14__/* .DomRange */ .g(this._hoEditorFactoryID, curPath, curPath);
114169
+ }
114183
114170
  }
114184
114171
  getNodesText(nodes) {
114185
114172
  let nodeText = "";
@@ -119888,11 +119875,6 @@ class DateTimeNode extends _ControlNode__WEBPACK_IMPORTED_MODULE_15__/* .Control
119888
119875
  this.node2DrawNode();
119889
119876
  changeEvent.afterChangePath = ePath;
119890
119877
  hoEditorFactory.docTree.change(changeEvent);
119891
- // if (hoEditorFactory.drawTree.paintStatus !== PaintState.psPrint) {
119892
- // hoEditorFactory.contentIsModify.isModify = true;
119893
- // hoEditorFactory.cachedModify = false;
119894
- // hoEditorFactory.hoLocalStorage.autoSaveLocalStorage();
119895
- // };
119896
119878
  }
119897
119879
  getDateTimeText() {
119898
119880
  if (this.text == this.name) {
@@ -141459,7 +141441,6 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
141459
141441
  paintCellBackground(newHeight, r, c) {
141460
141442
  this._backImg.x = 0;
141461
141443
  this._backImg.y = 0;
141462
- // this._backImg.uncache();
141463
141444
  // 白色背景转透明 处理转换pdf生成的多余线
141464
141445
  this._backImg.graphics.beginFill(this._cell.cellProperty.backColor === '#FFFFFF' ? 'transparent' : this._cell.cellProperty.backColor);
141465
141446
  this._backImg.graphics.rect(1, 1, this.dWidth - 1, this.dHeight - 1);
@@ -147451,30 +147432,20 @@ class EditorController {
147451
147432
  }
147452
147433
  } else if (keyCode === 33) {
147453
147434
  if (shiftKey) {
147454
- // this._textModel.moveCursor("line", this.size.line.toString(), "previous", shiftKey);
147455
- // this.updateScrollPosition();
147456
147435
  return true;
147457
147436
  } else {
147458
147437
  return true;
147459
- // this.scroll(-this.size.line, 0);
147460
147438
  }
147461
147439
  return true;
147462
147440
  } else if (keyCode === 34) {
147463
147441
  if (shiftKey) {
147464
147442
  return true;
147465
- // this._textModel.moveCursor("line", this.size.line.toString(), "next", shiftKey);
147466
- // this.updateScrollPosition();
147467
147443
  } else {
147468
147444
  return true;
147469
- // this.scroll(+this.size.line, 0);
147470
147445
  }
147471
147446
  } else if (keyCode === 35) {
147472
- // this._textModel.moveCursor("column", "boundary", "next", shiftKey);
147473
- // this.updateScrollPosition();
147474
147447
  return true;
147475
147448
  } else if (keyCode === 36) {
147476
- // this._textModel.moveCursor("column", "boundary", "previous", shiftKey);
147477
- // this.updateScrollPosition();
147478
147449
  return true;
147479
147450
  } else if (keyCode === 108) {
147480
147451
  return;
@@ -158413,7 +158384,7 @@ var map = {
158413
158384
  "./paragraph/ParagraphDialog.vue": 88281,
158414
158385
  "./poperSelect/PoperMark.vue": 11382,
158415
158386
  "./poperSelect/PoperSelect.vue": 49524,
158416
- "./poperTipText/PoperTipText.vue": 28140,
158387
+ "./poperTipText/PoperTipText.vue": 29731,
158417
158388
  "./popers/Poper.vue": 77363,
158418
158389
  "./popers/Title.vue": 25562,
158419
158390
  "./printstyle/PrintLineStyle.vue": 27705,
@@ -213955,7 +213926,7 @@ var entry_lib_ParagraphNode = __webpack_require__(40504);
213955
213926
  // EXTERNAL MODULE: ./src/components/version.ts
213956
213927
  var entry_lib_version = __webpack_require__(41063);
213957
213928
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
213958
- var entry_lib_PoperTipText = __webpack_require__(28140);
213929
+ var entry_lib_PoperTipText = __webpack_require__(29731);
213959
213930
  ;// ./src/components/controls/poperTipText/index.ts
213960
213931
 
213961
213932
  /* harmony default export */ var entry_lib_poperTipText = (entry_lib_PoperTipText["default"]);
@@ -227105,7 +227076,7 @@ class entry_lib_VueController {
227105
227076
  } else if (node instanceof entry_lib_ParagraphNode/* ParagraphNode */.f) {
227106
227077
  docText += '\n';
227107
227078
  } else if (node instanceof entry_lib_SignNode/* SignNode */.u && node.customProperty && node.customProperty.bce03) {
227108
- docText += node.customProperty.bce03;
227079
+ // docText += node.customProperty.bce03;
227109
227080
  }
227110
227081
  }
227111
227082
  };
@@ -228365,12 +228336,9 @@ class entry_lib_VueController {
228365
228336
  }
228366
228337
  moveCaret(path) {
228367
228338
  const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
228368
- setTimeout(() => {
228369
- hoEditorFactory.docTree.curDomRange.setSamePath(path);
228370
- hoEditorFactory.drawTree.moveCaretToPath(path);
228371
- hoEditorFactory.drawTree.caret.visible = true;
228372
- hoEditorFactory.drawTree.editor.input.focus();
228373
- }, 200);
228339
+ hoEditorFactory.drawTree.caret.visible = true;
228340
+ hoEditorFactory.docTree.curDomRange.setSamePath(path);
228341
+ hoEditorFactory.drawTree.moveCaretToPath(path);
228374
228342
  }
228375
228343
  search(node, text) {
228376
228344
  const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
@@ -228857,9 +228825,17 @@ class entry_lib_VueController {
228857
228825
  /**
228858
228826
  * 清理病历文档树 触发浏览器内存回收
228859
228827
  */
228860
- destoryEditor() {
228861
- this.newFile('caseHistory');
228828
+ async destoryEditor() {
228829
+ // this.newFile('caseHistory');
228862
228830
  let hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
228831
+ hoEditorFactory.docTree.docProperty.type = entry_lib_DocTree/* EmrType */.n8.etCaseHistory;
228832
+ const _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
228833
+ const startPath = _curDomRange.normalize().startPath;
228834
+ const endPath = _curDomRange.normalize().endPath;
228835
+ const changingEvent = new entry_lib_NodeChangingEvent/* NodeChangingEvent */.k(entry_lib_DocTree/* DocAction */.LC.daUnkown, startPath, endPath, entry_lib_NodeChangingEvent/* OperType */.j.newFile);
228836
+ if (hoEditorFactory.docTree.changing(changingEvent)) {
228837
+ await hoEditorFactory.docController.initBlankDoc();
228838
+ }
228863
228839
  if (hoEditorFactory._docTree) {
228864
228840
  hoEditorFactory._docTree.clearDocTree();
228865
228841
  delete hoEditorFactory._docTree;
@@ -228896,13 +228872,12 @@ class entry_lib_VueController {
228896
228872
  delete hoEditorFactory._tableController;
228897
228873
  delete hoEditorFactory._formatPainter;
228898
228874
  delete hoEditorFactory._hoLocalStorage;
228899
- if (hoEditorFactory._drawTree) {
228875
+ if (hoEditorFactory._drawTree && hoEditorFactory._drawTree.drawPages[0]) {
228900
228876
  hoEditorFactory._drawTree.drawPages[0].destory();
228901
228877
  hoEditorFactory._drawTree.drawPageCount.count = 0;
228902
228878
  hoEditorFactory._drawTree.drawPages.splice(0, hoEditorFactory._drawTree.drawPages.length);
228903
- delete hoEditorFactory._drawTree;
228904
228879
  }
228905
- // hoEditorFactory.clear();
228880
+ delete hoEditorFactory._drawTree;
228906
228881
  hoEditorFactory = null;
228907
228882
  }
228908
228883
  /**