hoeditor-web 3.1.220 → 3.1.222

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.220');
104407
+ /* harmony default export */ __webpack_exports__.A = ('3.1.222');
104407
104408
 
104408
104409
  /***/ }),
104409
104410
 
@@ -112847,39 +112848,11 @@ class DocTree {
112847
112848
  const paragraph = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_12__/* .Paragraph */ .fz(this._hoEditorFactoryID);
112848
112849
  this._paragraphs.splice(0, this._paragraphs.length);
112849
112850
  this._paragraphs.push(paragraph);
112850
- // const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
112851
- // this.headerNodes.push(new Array<BaseNode>());
112852
- // const index = this.headerNodes.length - 1;
112853
- // const paraHeader = new ParagraphNode(this.headerNodes[index], null, 0);
112854
- // this.headerNodes[index].push(paraHeader);
112855
- //this.addHeader(0);
112856
- // this.footerNodes.push(new Array<BaseNode>());
112857
- // const index1 = this.footerNodes.length - 1;
112858
- // const paraFooter = new ParagraphNode(this.footerNodes[index], null, 0);
112859
- // this.footerNodes[index].push(paraFooter);
112860
- //this.addFooter(0);
112861
112851
  const paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_18__/* .ParagraphNode */ .f(this._hoEditorFactoryID, this._mainNodes, null, 0);
112862
112852
  this._mainNodes.push(paraNode);
112863
112853
  const curPath = paraNode.getNodePath();
112864
- // this._curNodePosition= new NodePosition(this._mainNodes,paraNode,-1);
112865
112854
  this._curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_14__/* .DomRange */ .g(this._hoEditorFactoryID, curPath, curPath); //new DomRange(this._curNodePosition,this._curNodePosition);
112866
112855
  }
112867
- // public addHeader(index: number) {
112868
- // if (index > this.headerNodes.length - 1) {
112869
- // this.headerNodes.push(new Array<BaseNode>());
112870
- // const end = this.headerNodes.length - 1;
112871
- // const paraNode = new ParagraphNode(this.headerNodes[end], null, 0);
112872
- // this.headerNodes[end].push(paraNode);
112873
- // }
112874
- // }
112875
- // public addFooter(index: number) {
112876
- // if (index > this.footerNodes.length - 1) {
112877
- // this.footerNodes.push(new Array<BaseNode>());
112878
- // const end = this.footerNodes.length - 1;
112879
- // const paraNode = new ParagraphNode(this.footerNodes[end], null, 0);
112880
- // this.footerNodes[end].push(paraNode);
112881
- // }
112882
- // }
112883
112856
  //根据文档节点数组,返回文档节点的路径
112884
112857
  getRootPathByNodes(roots) {
112885
112858
  if (roots === this._mainNodes) {
@@ -114138,35 +114111,44 @@ class DocTree {
114138
114111
  clearDocTree() {
114139
114112
  this._styles.splice(0, this._styles.length);
114140
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);
114141
114115
  this._styles.push(style);
114142
114116
  this._paragraphs.splice(0, this._paragraphs.length);
114143
114117
  const param = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_12__/* .Paragraph */ .fz(this._hoEditorFactoryID);
114144
114118
  this._paragraphs.push(param);
114145
114119
  const hoeditfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_35__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
114146
- for (let i = hoeditfactory.subDocManger.headerDocTree.length - 1; i >= 0; i--) {
114147
- const rootNodes = hoeditfactory.subDocManger.headerDocTree[i].subDocNodes;
114148
- 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
+ }
114149
114126
  }
114150
- for (let i = hoeditfactory.subDocManger.footerDocTree.length - 1; i >= 0; i--) {
114151
- const rootNodes = hoeditfactory.subDocManger.footerDocTree[i].subDocNodes;
114152
- 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
+ }
114153
114132
  }
114154
- const rootNodes = this._mainNodes;
114155
- this.clear(rootNodes);
114133
+ this.clear(this._mainNodes);
114156
114134
  this._mainNodes.splice(1, this._mainNodes.length);
114157
- this._mainNodes[0].paraNo = 0;
114158
- const headerDocTree = hoeditfactory.subDocManger.headerDocTree;
114135
+ if (this._mainNodes[0]) {
114136
+ this._mainNodes[0].paraNo = 0;
114137
+ }
114159
114138
  headerDocTree.splice(1, headerDocTree.length);
114160
- headerDocTree[0].subDocNodes.splice(1, headerDocTree[0].subDocNodes.length);
114161
- headerDocTree[0].subDocNodes[0].paraNo = 0;
114162
- headerDocTree[0].pageIndex = 0;
114163
- headerDocTree[0].beginPath = "";
114164
- 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
+ }
114165
114145
  footerDocTree.splice(1, footerDocTree.length);
114166
- footerDocTree[0].subDocNodes.splice(1, footerDocTree[0].subDocNodes.length);
114167
- footerDocTree[0].subDocNodes[0].paraNo = 0;
114168
- footerDocTree[0].pageIndex = 0;
114169
- 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
+ }
114170
114152
  this._nodeChangedHandlers.splice(1, this._nodeChangedHandlers.length);
114171
114153
  this._nodeChangingHandlers.splice(1, this._nodeChangingHandlers.length);
114172
114154
  this._nodeClickHandlers.splice(1, this._nodeChangingHandlers.length);
@@ -114181,8 +114163,10 @@ class DocTree {
114181
114163
  this._userHistories = new Array();
114182
114164
  this._elementChangeRecords = new Map();
114183
114165
  this._redrawHiddenParas = [];
114184
- const curPath = this._mainNodes[0].getNodePath();
114185
- 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
+ }
114186
114170
  }
114187
114171
  getNodesText(nodes) {
114188
114172
  let nodeText = "";
@@ -119891,11 +119875,6 @@ class DateTimeNode extends _ControlNode__WEBPACK_IMPORTED_MODULE_15__/* .Control
119891
119875
  this.node2DrawNode();
119892
119876
  changeEvent.afterChangePath = ePath;
119893
119877
  hoEditorFactory.docTree.change(changeEvent);
119894
- // if (hoEditorFactory.drawTree.paintStatus !== PaintState.psPrint) {
119895
- // hoEditorFactory.contentIsModify.isModify = true;
119896
- // hoEditorFactory.cachedModify = false;
119897
- // hoEditorFactory.hoLocalStorage.autoSaveLocalStorage();
119898
- // };
119899
119878
  }
119900
119879
  getDateTimeText() {
119901
119880
  if (this.text == this.name) {
@@ -141462,7 +141441,6 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
141462
141441
  paintCellBackground(newHeight, r, c) {
141463
141442
  this._backImg.x = 0;
141464
141443
  this._backImg.y = 0;
141465
- // this._backImg.uncache();
141466
141444
  // 白色背景转透明 处理转换pdf生成的多余线
141467
141445
  this._backImg.graphics.beginFill(this._cell.cellProperty.backColor === '#FFFFFF' ? 'transparent' : this._cell.cellProperty.backColor);
141468
141446
  this._backImg.graphics.rect(1, 1, this.dWidth - 1, this.dHeight - 1);
@@ -147454,30 +147432,20 @@ class EditorController {
147454
147432
  }
147455
147433
  } else if (keyCode === 33) {
147456
147434
  if (shiftKey) {
147457
- // this._textModel.moveCursor("line", this.size.line.toString(), "previous", shiftKey);
147458
- // this.updateScrollPosition();
147459
147435
  return true;
147460
147436
  } else {
147461
147437
  return true;
147462
- // this.scroll(-this.size.line, 0);
147463
147438
  }
147464
147439
  return true;
147465
147440
  } else if (keyCode === 34) {
147466
147441
  if (shiftKey) {
147467
147442
  return true;
147468
- // this._textModel.moveCursor("line", this.size.line.toString(), "next", shiftKey);
147469
- // this.updateScrollPosition();
147470
147443
  } else {
147471
147444
  return true;
147472
- // this.scroll(+this.size.line, 0);
147473
147445
  }
147474
147446
  } else if (keyCode === 35) {
147475
- // this._textModel.moveCursor("column", "boundary", "next", shiftKey);
147476
- // this.updateScrollPosition();
147477
147447
  return true;
147478
147448
  } else if (keyCode === 36) {
147479
- // this._textModel.moveCursor("column", "boundary", "previous", shiftKey);
147480
- // this.updateScrollPosition();
147481
147449
  return true;
147482
147450
  } else if (keyCode === 108) {
147483
147451
  return;
@@ -158416,7 +158384,7 @@ var map = {
158416
158384
  "./paragraph/ParagraphDialog.vue": 88281,
158417
158385
  "./poperSelect/PoperMark.vue": 11382,
158418
158386
  "./poperSelect/PoperSelect.vue": 49524,
158419
- "./poperTipText/PoperTipText.vue": 28140,
158387
+ "./poperTipText/PoperTipText.vue": 29731,
158420
158388
  "./popers/Poper.vue": 77363,
158421
158389
  "./popers/Title.vue": 25562,
158422
158390
  "./printstyle/PrintLineStyle.vue": 27705,
@@ -213958,7 +213926,7 @@ var entry_lib_ParagraphNode = __webpack_require__(40504);
213958
213926
  // EXTERNAL MODULE: ./src/components/version.ts
213959
213927
  var entry_lib_version = __webpack_require__(41063);
213960
213928
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
213961
- var entry_lib_PoperTipText = __webpack_require__(28140);
213929
+ var entry_lib_PoperTipText = __webpack_require__(29731);
213962
213930
  ;// ./src/components/controls/poperTipText/index.ts
213963
213931
 
213964
213932
  /* harmony default export */ var entry_lib_poperTipText = (entry_lib_PoperTipText["default"]);
@@ -228368,12 +228336,9 @@ class entry_lib_VueController {
228368
228336
  }
228369
228337
  moveCaret(path) {
228370
228338
  const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
228371
- setTimeout(() => {
228372
- hoEditorFactory.docTree.curDomRange.setSamePath(path);
228373
- hoEditorFactory.drawTree.moveCaretToPath(path);
228374
- hoEditorFactory.drawTree.caret.visible = true;
228375
- hoEditorFactory.drawTree.editor.input.focus();
228376
- }, 200);
228339
+ hoEditorFactory.drawTree.caret.visible = true;
228340
+ hoEditorFactory.docTree.curDomRange.setSamePath(path);
228341
+ hoEditorFactory.drawTree.moveCaretToPath(path);
228377
228342
  }
228378
228343
  search(node, text) {
228379
228344
  const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
@@ -228860,9 +228825,17 @@ class entry_lib_VueController {
228860
228825
  /**
228861
228826
  * 清理病历文档树 触发浏览器内存回收
228862
228827
  */
228863
- destoryEditor() {
228864
- this.newFile('caseHistory');
228828
+ async destoryEditor() {
228829
+ // this.newFile('caseHistory');
228865
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
+ }
228866
228839
  if (hoEditorFactory._docTree) {
228867
228840
  hoEditorFactory._docTree.clearDocTree();
228868
228841
  delete hoEditorFactory._docTree;
@@ -228899,13 +228872,12 @@ class entry_lib_VueController {
228899
228872
  delete hoEditorFactory._tableController;
228900
228873
  delete hoEditorFactory._formatPainter;
228901
228874
  delete hoEditorFactory._hoLocalStorage;
228902
- if (hoEditorFactory._drawTree) {
228875
+ if (hoEditorFactory._drawTree && hoEditorFactory._drawTree.drawPages[0]) {
228903
228876
  hoEditorFactory._drawTree.drawPages[0].destory();
228904
228877
  hoEditorFactory._drawTree.drawPageCount.count = 0;
228905
228878
  hoEditorFactory._drawTree.drawPages.splice(0, hoEditorFactory._drawTree.drawPages.length);
228906
- delete hoEditorFactory._drawTree;
228907
228879
  }
228908
- // hoEditorFactory.clear();
228880
+ delete hoEditorFactory._drawTree;
228909
228881
  hoEditorFactory = null;
228910
228882
  }
228911
228883
  /**
@@ -237188,6 +237160,8 @@ var ARRAY_APPLY_BATCH=8192;var imageFileTypeHeaders={PNG:[[0x89,0x50,0x4e,0x47]]
237188
237160
  [0x49,0x49,0x2a,0x00]//Intel
237189
237161
  ],JPEG:[[0xff,0xd8,0xff,0xe0,undefined,undefined,0x4a,0x46,0x49,0x46,0x00],//JFIF
237190
237162
  [0xff,0xd8,0xff,0xe1,undefined,undefined,0x45,0x78,0x69,0x66,0x00,0x00],//Exif
237163
+ [0xff,0xd8,0xff,0xe2],//Canon Camera Image File Format (CIFF)
237164
+ [0xff,0xd8,0xff,0xe8,undefined,undefined,0x53,0x50,0x49,0x46,0x46,0x00],// Still Picture Interchange File Format (SPIFF)
237191
237165
  [0xff,0xd8,0xff,0xdb],//JPEG RAW
237192
237166
  [0xff,0xd8,0xff,0xee]//EXIF RAW
237193
237167
  ],JPEG2000:[[0x00,0x00,0x00,0x0c,0x6a,0x50,0x20,0x20]],GIF87a:[[0x47,0x49,0x46,0x38,0x37,0x61]],GIF89a:[[0x47,0x49,0x46,0x38,0x39,0x61]],WEBP:[[0x52,0x49,0x46,0x46,undefined,undefined,undefined,undefined,0x57,0x45,0x42,0x50]],BMP:[[0x42,0x4d],//BM - Windows 3.1x, 95, NT, ... etc.