hoeditor-web 3.1.138 → 3.1.140

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.
@@ -54155,12 +54155,14 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
54155
54155
  key: "placeDNode2DrawLine",
54156
54156
  value: function placeDNode2DrawLine(droots, paragraphNode, dline, start, endIndex) {
54157
54157
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
54158
+ var paintStatus = hoEditorFactory.drawTree.paintStatus;
54158
54159
  var startIndex = start;
54159
54160
  if (startIndex >= 1) {
54160
54161
  return dline;
54161
54162
  }
54162
54163
  var drawNode = this._drawNodes[0];
54163
- if (hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psPrint && hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psReview) {
54164
+ var isDraw = true;
54165
+ if (paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psPreview && paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psPrint && paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psReview) {
54164
54166
  drawNode.alpha = 1;
54165
54167
  //const color = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).option.getColorByLevel(0);
54166
54168
  for (var i = 0; i < drawNode.children.length; i++) {
@@ -54179,16 +54181,15 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
54179
54181
  drawNode.children.splice(_i, 1);
54180
54182
  }
54181
54183
  }
54182
- if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psPrint) {
54184
+ if (paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psPreview || paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psPrint) {
54183
54185
  if (this.associatedElement) {
54184
54186
  var nodes = hoEditorFactory.vueController.getNodesById("main", true, this.associatedElement);
54185
54187
  if (nodes.length > 0) {
54186
54188
  for (var j = 0; j < nodes.length; j++) {
54187
54189
  var node = nodes[j];
54188
- //const result = NodePosition.nodePositionCompare(this, node);
54189
- //if (result < 0 && node.text == "") {
54190
54190
  if (node.text == "") {
54191
54191
  drawNode.alpha = 0;
54192
+ isDraw = hoEditorFactory.isDrawEmptyNode;
54192
54193
  break;
54193
54194
  }
54194
54195
  }
@@ -54196,8 +54197,10 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
54196
54197
  }
54197
54198
  }
54198
54199
  }
54199
- dline.addChild(drawNode);
54200
- dline.drawItems.push(drawNode);
54200
+ if (isDraw) {
54201
+ dline.addChild(drawNode);
54202
+ dline.drawItems.push(drawNode);
54203
+ }
54201
54204
  dline.fitLines();
54202
54205
  dline.updateLineStyle();
54203
54206
  return dline.paragraphNode.getLastDrawline();
@@ -54841,16 +54844,18 @@ var MarkNode = /*#__PURE__*/function (_BaseNode) {
54841
54844
  return dline;
54842
54845
  }
54843
54846
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
54847
+ var paintStatus = hoEditorFactory.drawTree.paintStatus;
54844
54848
  var style = hoEditorFactory.docTree.styles[this.styleIndex];
54845
54849
  if (!style) {
54846
54850
  style = hoEditorFactory.docTree.styles[0];
54847
54851
  this.styleIndex = 0;
54848
54852
  }
54849
54853
  var isDelete = style.deleterIndex === undefined || style.deleterIndex === -1 ? false : true; //是否是逻辑删除的状态
54850
- var isDisplay = hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psReview ? true : false; //逻辑删除的节点是否显示
54854
+ var isDisplay = paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psReview ? true : false; //逻辑删除的节点是否显示
54855
+ var isDraw = true; // 元素为空时是否绘制
54851
54856
  if (!isDelete || isDisplay) {
54852
54857
  var disPlay = true;
54853
- if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPrint) {
54858
+ if (paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPreview || paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPrint) {
54854
54859
  if (this.MarkNodeType === MarkNodeType.mtContent) {
54855
54860
  if (this.text.length > 0 && (0,jquery__WEBPACK_IMPORTED_MODULE_21__.trim)(this.text) === "") {
54856
54861
  disPlay = true;
@@ -54865,7 +54870,7 @@ var MarkNode = /*#__PURE__*/function (_BaseNode) {
54865
54870
  var drawNode = this._drawNodes[0];
54866
54871
  if (disPlay) {
54867
54872
  drawNode.alpha = 1;
54868
- if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPrint) {
54873
+ if (paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPreview || paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPrint) {
54869
54874
  for (var index = 0; index < drawNode.children.length; index++) {
54870
54875
  var child = drawNode.children[index];
54871
54876
  if (child.name === "MarkIcon") {
@@ -54875,7 +54880,7 @@ var MarkNode = /*#__PURE__*/function (_BaseNode) {
54875
54880
  }
54876
54881
  } else {
54877
54882
  drawNode.alpha = 0.01;
54878
- if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPrint) {
54883
+ if (paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPreview || paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPrint) {
54879
54884
  drawNode.alpha = 0.00;
54880
54885
  }
54881
54886
  }
@@ -54886,12 +54891,15 @@ var MarkNode = /*#__PURE__*/function (_BaseNode) {
54886
54891
  if (disPlay) {
54887
54892
  _drawNode.alpha = 1;
54888
54893
  } else {
54889
- if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPrint) {
54894
+ if (paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPreview || paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPrint) {
54890
54895
  _drawNode.alpha = 0.00;
54896
+ isDraw = hoEditorFactory.isDrawEmptyNode;
54891
54897
  }
54892
54898
  }
54893
- dline.addChild(_drawNode);
54894
- dline.drawItems.push(_drawNode);
54899
+ if (isDraw) {
54900
+ dline.addChild(_drawNode);
54901
+ dline.drawItems.push(_drawNode);
54902
+ }
54895
54903
  }
54896
54904
  }
54897
54905
  dline.fitLines();
@@ -54903,7 +54911,6 @@ var MarkNode = /*#__PURE__*/function (_BaseNode) {
54903
54911
  key: "add2DrawTree",
54904
54912
  value: function add2DrawTree(dRoots) {
54905
54913
  if (this._drawNodes.length === 0) {
54906
- // this.node2DrawNode();
54907
54914
  var dline = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeParaNode(this).getLastDrawline();
54908
54915
  // this.placeDNode2DrawLine(dRoots,dline.paragraphNode, 0,this._text.length-1);
54909
54916
  }
@@ -67961,7 +67968,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
67961
67968
  return dline;
67962
67969
  }
67963
67970
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
67964
- var endnode = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
67971
+ // const endnode = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
67965
67972
  var isEnd = false;
67966
67973
  for (var index = 0; index < this.childNodes.length; index++) {
67967
67974
  var value = this.childNodes[index];
@@ -68040,7 +68047,6 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
68040
68047
  }
68041
68048
  }
68042
68049
  if (isEnd) {
68043
- //this.EndMarkNode.node2DrawNode();
68044
68050
  aline = this.EndMarkNode.placeDNode2DrawLine(droots, paraNode, aline, start, start + this.EndMarkNode.getLength() - 1, endPath);
68045
68051
  }
68046
68052
  if (this.hideDuringPrint && !this.isEmpty() && (hoEditorFactory.drawTree.paintStatus == DrawTree/* PaintState */.Dh.psPreview || hoEditorFactory.drawTree.paintStatus == DrawTree/* PaintState */.Dh.psPrint)) {
@@ -210278,7 +210284,7 @@ var TextNode = __webpack_require__(27198);
210278
210284
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
210279
210285
  var ParagraphNode = __webpack_require__(67945);
210280
210286
  ;// CONCATENATED MODULE: ./src/components/version.ts
210281
- /* harmony default export */ var version = ('3.1.138');
210287
+ /* harmony default export */ var version = ('3.1.140');
210282
210288
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
210283
210289
  var PoperTipText = __webpack_require__(84531);
210284
210290
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -215343,13 +215349,6 @@ var StructureConvert = /*#__PURE__*/function () {
215343
215349
  xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TableFormula>', "</node>");
215344
215350
  xml = hoEditorFactory.unitConvert.replaceAll(xml, '<End>', '<node>');
215345
215351
  xml = hoEditorFactory.unitConvert.replaceAll(xml, '</End>', '</node>');
215346
- //const reg2 = new RegExp(/\<([\<A-z\>]*)\>\/|\<\/end\>|\<\/ParagraphNode\>/g)
215347
- //xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TextNode>', "<node>");
215348
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TextNode>', "</node>");
215349
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<ParagraphNode>', "<node>");
215350
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</ParagraphNode>', "</node>");
215351
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TableNode>', "<node>");
215352
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TableNode>', "</node>");
215353
215352
  xml = hoEditorFactory.unitConvert.replaceAll(xml, '<PupilMapNode>', "<node>");
215354
215353
  xml = hoEditorFactory.unitConvert.replaceAll(xml, '</PupilMapNode>', "</node>");
215355
215354
  xml = hoEditorFactory.unitConvert.replaceAll(xml, '<LightLocationMapNode>', "<node>");
@@ -215362,40 +215361,6 @@ var StructureConvert = /*#__PURE__*/function () {
215362
215361
  xml = hoEditorFactory.unitConvert.replaceAll(xml, '</PermanentTeethMapNode>', "</node>");
215363
215362
  xml = hoEditorFactory.unitConvert.replaceAll(xml, '<PrimaryTeethMapNode>', "<node>");
215364
215363
  xml = hoEditorFactory.unitConvert.replaceAll(xml, '</PrimaryTeethMapNode>', "</node>");
215365
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<ImageNode>', "<node>");
215366
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</ImageNode>', "</node>");
215367
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<BarcodeNode>', "<node>");
215368
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</BarcodeNode>', "</node>");
215369
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<QrcodeNode>', "<node>");
215370
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</QrcodeNode>', "</node>");
215371
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<DateTimeNode>', "<node>");
215372
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</DateTimeNode>', "</node>");
215373
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<DownListNode>', "<node>");
215374
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</DownListNode>', "</node>");
215375
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<RadioAndCheckBoxNode>', "<node>");
215376
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</RadioAndCheckBoxNode>', "</node>");
215377
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TextInputFieldNode>', "<node>");
215378
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TextInputFieldNode>', "</node>");
215379
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<SpecialCharsNode>', "<node>");
215380
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</SpecialCharsNode>', "</node>");
215381
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<MarkNode>', "<node>");
215382
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</MarkNode>', "</node>");
215383
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<PageCountNode>', "<node>");
215384
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</PageCountNode>', "</node>");
215385
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<PageNumNode>', "<node>");
215386
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</PageNumNode>', "</node>");
215387
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TableFormula>', "<node>");
215388
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TableFormula>', "</node>");
215389
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<End>', '<node>');
215390
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</End>', '</node>');
215391
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<CellNode>', "<node>");
215392
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</CellNode>', "</node>");
215393
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<SeparateCharNode>', "<node>");
215394
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</SeparateCharNode>', "</node>");
215395
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<LabelNode>', "<node>");
215396
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</LabelNode>', "</node>");
215397
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '<SignNode>', "<node>");
215398
- // xml = hoEditorFactory.unitConvert.replaceAll(xml, '</SignNode>', "</node>");
215399
215364
  return xml;
215400
215365
  }
215401
215366
  /**
@@ -215865,8 +215830,7 @@ var StructureConvert = /*#__PURE__*/function () {
215865
215830
  }
215866
215831
  this._comments = [];
215867
215832
  if (!isClearSign) {
215868
- var comments = xx.comments;
215869
- this._comments = comments.comment;
215833
+ this._comments = xx.comments.comment || [];
215870
215834
  }
215871
215835
  this._errors = [];
215872
215836
  var errors = xx.errors;
@@ -223421,6 +223385,9 @@ var VueController = /*#__PURE__*/function () {
223421
223385
  for (var i = 0; i < nodes.length; i++) {
223422
223386
  var node = nodes[i];
223423
223387
  if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re || node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z) {
223388
+ var xml = x2js.js2xml(node.node2Json());
223389
+ xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TempNode>', '');
223390
+ xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TempNode>', '');
223424
223391
  var elementObj = {
223425
223392
  id: node.id,
223426
223393
  dataId: node.dataId,
@@ -223438,7 +223405,8 @@ var VueController = /*#__PURE__*/function () {
223438
223405
  notReplaceElement: node.notReplaceElement,
223439
223406
  keyValue: '',
223440
223407
  value: '',
223441
- contentHtml: x2js.js2xml(node.node2Json())
223408
+ contentHtml: xml,
223409
+ content: node.text && node.text != node.name ? node.text : ''
223442
223410
  };
223443
223411
  if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
223444
223412
  elementObj.controlType = node.type;
@@ -237783,12 +237751,15 @@ var PrintController = /*#__PURE__*/function () {
237783
237751
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
237784
237752
  while (1) switch (_context2.prev = _context2.next) {
237785
237753
  case 0:
237786
- text = this.createSvg();
237754
+ _context2.next = 2;
237755
+ return this.createSvg();
237756
+ case 2:
237757
+ text = _context2.sent;
237787
237758
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
237788
237759
  orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
237789
237760
  printStyle = (0,plugins_util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
237790
237761
  return _context2.abrupt("return", "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat(text, "</body>\n </html>\n "));
237791
- case 5:
237762
+ case 7:
237792
237763
  case "end":
237793
237764
  return _context2.stop();
237794
237765
  }
@@ -239916,12 +239887,14 @@ var HOEditorFactory = /*#__PURE__*/function () {
239916
239887
  (0,esm_defineProperty/* default */.Z)(this, "reviewMode", false);
239917
239888
  // 临时审阅标记
239918
239889
  (0,esm_defineProperty/* default */.Z)(this, "innerIdentifierList", []);
239890
+ // 内部标识符列表
239891
+ (0,esm_defineProperty/* default */.Z)(this, "isDrawEmptyNode", true);
239919
239892
  this._hoEditorFactoryId = id;
239920
239893
  }
239921
239894
  (0,esm_createClass/* default */.Z)(HOEditorFactory, [{
239922
239895
  key: "hoLocalStorage",
239923
239896
  get:
239924
- // 内部标识符列表
239897
+ // 元素内容为空时是否绘制(文本域元素和关联文本域的标签元素)
239925
239898
  /**
239926
239899
  * Getter hoLocalStorage
239927
239900
  * @return {HoLocalStorage}