hoeditor-web 3.0.25 → 3.0.27

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.
@@ -9076,7 +9076,7 @@ var component = (0,componentNormalizer/* default */.Z)(
9076
9076
 
9077
9077
  /***/ }),
9078
9078
 
9079
- /***/ 1933:
9079
+ /***/ 12602:
9080
9080
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9081
9081
 
9082
9082
  "use strict";
@@ -9096,7 +9096,7 @@ var es_string_includes = __webpack_require__(32023);
9096
9096
  var es_regexp_exec = __webpack_require__(74916);
9097
9097
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
9098
9098
  var es_string_replace = __webpack_require__(15306);
9099
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=af700224&
9099
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=41386ead&
9100
9100
 
9101
9101
 
9102
9102
 
@@ -9477,7 +9477,7 @@ var render = function render() {
9477
9477
  };
9478
9478
  var staticRenderFns = [];
9479
9479
 
9480
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=af700224&
9480
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=41386ead&
9481
9481
 
9482
9482
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
9483
9483
  var toConsumableArray = __webpack_require__(61748);
@@ -12036,8 +12036,9 @@ var type = __webpack_require__(41542);
12036
12036
  var checkText = '<span>' + textArr.join('') + '</span>';
12037
12037
  hoEditorFactory.vueController.insertHtmlText(checkText, checkText, keyValue, this.selectedList, true);
12038
12038
  } else {
12039
- var customProperty = this.getCustomProperty ? this.getCustomProperty() : {};
12040
- hoEditorFactory.elementController.updateTextInputFieldValue(currentPoperNode, text, customProperty, keyValue, value);
12039
+ // const customProperty = this.getCustomProperty ? this.getCustomProperty() : {};
12040
+
12041
+ hoEditorFactory.elementController.updateTextInputFieldValue(currentPoperNode, text, currentPoperNode.customProperty, keyValue, value);
12041
12042
  }
12042
12043
  }
12043
12044
  // 元素联动内容延时关闭下拉选项,防止双击把光标移动到联动元素外
@@ -12089,10 +12090,10 @@ var type = __webpack_require__(41542);
12089
12090
  });
12090
12091
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
12091
12092
  /* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
12092
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=af700224&prod&lang=scss&
12093
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=41386ead&prod&lang=scss&
12093
12094
  // extracted by mini-css-extract-plugin
12094
12095
 
12095
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=af700224&prod&lang=scss&
12096
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=41386ead&prod&lang=scss&
12096
12097
 
12097
12098
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
12098
12099
  var componentNormalizer = __webpack_require__(70713);
@@ -29356,16 +29357,16 @@ _ctx.prototype.__createElement = function (elementName, properties, resetFill) {
29356
29357
  element.setAttribute("font-family", "SimSun");
29357
29358
  element.setAttribute("fill", "#000000");
29358
29359
  element.setAttribute("stroke", "#000000");
29359
- element.setAttribute("stroke-width", "1");
29360
- element.setAttribute("font-weight", "normal");
29360
+ // element.setAttribute("stroke-width", "1");
29361
+ element.setAttribute("font-weight", "100");
29361
29362
  } else if (properties["font-family"] !== "Times New Roman") {
29362
29363
  // 非宋体 黑体, Times New Roman默认转换成普通宋体
29363
29364
  element.setAttribute("font-family", "SimSun");
29364
29365
  }
29365
29366
  if (properties["font-weight"] === "bold") {
29366
29367
  element.setAttribute("stroke", "#000");
29367
- element.setAttribute("stroke-width", "1");
29368
- element.setAttribute("font-weight", "normal");
29368
+ // element.setAttribute("stroke-width", "1");
29369
+ element.setAttribute("font-weight", "100");
29369
29370
  }
29370
29371
  }
29371
29372
  return element;
@@ -29916,10 +29917,17 @@ _ctx.prototype.rect = function (x, y, width, height) {
29916
29917
  if (this.__currentElement.nodeName !== "path") {
29917
29918
  this.beginPath();
29918
29919
  }
29920
+ // 处理打开前默认宽高为a4纵向时 第一次生成html背景色绘制大小错误的问题
29921
+ var dwidth = width;
29922
+ var dheight = height;
29923
+ if (width == 794 && height == 1122) {
29924
+ dwidth = this.width;
29925
+ dheight = this.height;
29926
+ }
29919
29927
  this.moveTo(x, y);
29920
- this.lineTo(x + width, y);
29921
- this.lineTo(x + width, y + height);
29922
- this.lineTo(x, y + height);
29928
+ this.lineTo(x + dwidth, y);
29929
+ this.lineTo(x + dwidth, y + dheight);
29930
+ this.lineTo(x, y + dheight);
29923
29931
  this.lineTo(x, y);
29924
29932
  this.closePath();
29925
29933
  };
@@ -35359,7 +35367,7 @@ var Print = /*#__PURE__*/function () {
35359
35367
  key: "printToPDF",
35360
35368
  value: function () {
35361
35369
  var _printToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(hoEditorFactoryID, PDF, type, fileName, reslove, positionY, format) {
35362
- var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, startPageNumOver, _iterator, _step, index, cpage, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s2, _svgBox, printStyle, exportHtml, url, link, _last, otherPageNumber, i, name;
35370
+ var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, pageNumber, startPageNumOver, _iterator, _step, index, cpage, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s2, _svgBox, printStyle, exportHtml, url, link, _last, otherPageNumber, i, name;
35363
35371
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
35364
35372
  while (1) {
35365
35373
  switch (_context3.prev = _context3.next) {
@@ -35404,37 +35412,38 @@ var Print = /*#__PURE__*/function () {
35404
35412
  }
35405
35413
  last = -1;
35406
35414
  console.time('绘制svg和生成pdf');
35415
+ pageNumber = 0;
35407
35416
  startPageNumOver = false;
35408
35417
  _iterator = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
35409
- _context3.prev = 16;
35418
+ _context3.prev = 17;
35410
35419
  _iterator.s();
35411
- case 18:
35420
+ case 19:
35412
35421
  if ((_step = _iterator.n()).done) {
35413
- _context3.next = 62;
35422
+ _context3.next = 65;
35414
35423
  break;
35415
35424
  }
35416
35425
  index = _step.value;
35417
35426
  if (!(index == -1)) {
35418
- _context3.next = 23;
35427
+ _context3.next = 24;
35419
35428
  break;
35420
35429
  }
35421
35430
  message/* default.info */.Z.info('请进行翻页');
35422
- return _context3.abrupt("continue", 60);
35423
- case 23:
35431
+ return _context3.abrupt("continue", 63);
35432
+ case 24:
35424
35433
  last = index;
35425
35434
  if (!(index < hoEditorFactory.startPageNum)) {
35426
- _context3.next = 26;
35435
+ _context3.next = 27;
35427
35436
  break;
35428
35437
  }
35429
- return _context3.abrupt("break", 62);
35430
- case 26:
35438
+ return _context3.abrupt("break", 65);
35439
+ case 27:
35431
35440
  cpage = hoEditorFactory.drawTree.drawPages[index];
35432
35441
  if (!(index === hoEditorFactory.drawTree.drawPages.length - 1 && cpage.drawMainDoc.children.length === 2 && !(cpage.drawMainDoc.children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && cpage.drawMainDoc.children[1] && cpage.drawMainDoc.children[1].drawItems.length === 0)) {
35433
- _context3.next = 29;
35442
+ _context3.next = 30;
35434
35443
  break;
35435
35444
  }
35436
- return _context3.abrupt("break", 62);
35437
- case 29:
35445
+ return _context3.abrupt("break", 65);
35446
+ case 30:
35438
35447
  if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
35439
35448
  cpage.drawDomLevel.bindStage();
35440
35449
  cpage.needUpdateStage = true;
@@ -35484,10 +35493,11 @@ var Print = /*#__PURE__*/function () {
35484
35493
  }
35485
35494
  }
35486
35495
  if (!(hoEditorFactory.isUseImagePrint && type !== 'html')) {
35487
- _context3.next = 46;
35496
+ _context3.next = 48;
35488
35497
  break;
35489
35498
  }
35490
35499
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
35500
+ pageNumber++;
35491
35501
  ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
35492
35502
  ctx.posX = svg2pdfOptions.x;
35493
35503
  ctx.posY = svg2pdfOptions.y;
@@ -35504,9 +35514,9 @@ var Print = /*#__PURE__*/function () {
35504
35514
 
35505
35515
  ctx && ((_cpage$drawDomLevel = cpage.drawDomLevel) === null || _cpage$drawDomLevel === void 0 ? void 0 : (_cpage$drawDomLevel$s = _cpage$drawDomLevel.stage) === null || _cpage$drawDomLevel$s === void 0 ? void 0 : _cpage$drawDomLevel$s.draw(ctx));
35506
35516
  ctx = null;
35507
- _context3.next = 59;
35517
+ _context3.next = 62;
35508
35518
  break;
35509
- case 46:
35519
+ case 48:
35510
35520
  _ctx = new canvas2svg({
35511
35521
  width: width,
35512
35522
  height: height,
@@ -35514,60 +35524,61 @@ var Print = /*#__PURE__*/function () {
35514
35524
  });
35515
35525
  _ctx && ((_cpage$drawDomLevel2 = cpage.drawDomLevel) === null || _cpage$drawDomLevel2 === void 0 ? void 0 : (_cpage$drawDomLevel2$ = _cpage$drawDomLevel2.stage) === null || _cpage$drawDomLevel2$ === void 0 ? void 0 : _cpage$drawDomLevel2$.draw(_ctx));
35516
35526
  if (!(type === 'html')) {
35517
- _context3.next = 53;
35527
+ _context3.next = 55;
35518
35528
  break;
35519
35529
  }
35520
35530
  svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
35521
35531
  svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
35522
- _context3.next = 58;
35532
+ _context3.next = 61;
35523
35533
  break;
35524
- case 53:
35534
+ case 55:
35525
35535
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
35536
+ pageNumber++;
35526
35537
  _context3.t0 = PDF;
35527
35538
  if (!_context3.t0) {
35528
- _context3.next = 58;
35539
+ _context3.next = 61;
35529
35540
  break;
35530
35541
  }
35531
- _context3.next = 58;
35542
+ _context3.next = 61;
35532
35543
  return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
35533
- case 58:
35544
+ case 61:
35534
35545
  _ctx = null;
35535
- case 59:
35546
+ case 62:
35536
35547
  if (index > 0 && cpage.drawDomLevel) {
35537
35548
  (_cpage$drawDomLevel$s2 = cpage.drawDomLevel.stage) === null || _cpage$drawDomLevel$s2 === void 0 ? void 0 : _cpage$drawDomLevel$s2.removeAllChildren();
35538
35549
  cpage.drawDomLevel.clearStage();
35539
35550
  }
35540
35551
  // index > 0 && cpage.drawDomLevel?.clearStage();
35541
- case 60:
35542
- _context3.next = 18;
35552
+ case 63:
35553
+ _context3.next = 19;
35543
35554
  break;
35544
- case 62:
35545
- _context3.next = 67;
35555
+ case 65:
35556
+ _context3.next = 70;
35546
35557
  break;
35547
- case 64:
35548
- _context3.prev = 64;
35549
- _context3.t1 = _context3["catch"](16);
35550
- _iterator.e(_context3.t1);
35551
35558
  case 67:
35552
35559
  _context3.prev = 67;
35553
- _iterator.f();
35554
- return _context3.finish(67);
35560
+ _context3.t1 = _context3["catch"](17);
35561
+ _iterator.e(_context3.t1);
35555
35562
  case 70:
35563
+ _context3.prev = 70;
35564
+ _iterator.f();
35565
+ return _context3.finish(70);
35566
+ case 73:
35556
35567
  console.timeEnd('绘制svg和生成pdf');
35557
35568
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
35558
35569
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
35559
35570
  if (!(type === 'html')) {
35560
- _context3.next = 90;
35571
+ _context3.next = 93;
35561
35572
  break;
35562
35573
  }
35563
35574
  if (!(svgBox && svgBox.childNodes.length === 0)) {
35564
- _context3.next = 78;
35575
+ _context3.next = 81;
35565
35576
  break;
35566
35577
  }
35567
35578
  message/* default.info */.Z.info('无新增内容');
35568
35579
  reslove && reslove('printend');
35569
35580
  return _context3.abrupt("return");
35570
- case 78:
35581
+ case 81:
35571
35582
  printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
35572
35583
  exportHtml = "\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((_svgBox = svgBox) === null || _svgBox === void 0 ? void 0 : _svgBox.innerHTML, "</body>\n </html>\n ");
35573
35584
  url = window.URL.createObjectURL(new Blob([exportHtml], {
@@ -35584,34 +35595,34 @@ var Print = /*#__PURE__*/function () {
35584
35595
  }, 100);
35585
35596
  reslove && reslove('printend');
35586
35597
  return _context3.abrupt("return");
35587
- case 90:
35598
+ case 93:
35588
35599
  if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
35589
- _context3.next = 96;
35600
+ _context3.next = 99;
35590
35601
  break;
35591
35602
  }
35592
35603
  _last = hoEditorFactory.printStatus.printRecord.last();
35593
35604
  if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
35594
- _context3.next = 96;
35605
+ _context3.next = 99;
35595
35606
  break;
35596
35607
  }
35597
35608
  message/* default.info */.Z.info('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录');
35598
35609
  reslove && reslove('printend');
35599
35610
  return _context3.abrupt("return");
35600
- case 96:
35611
+ case 99:
35601
35612
  if (type === 'pdf') {
35602
35613
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
35603
35614
  PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
35604
35615
  hoEditorFactory.printStatus.drawPrintRecord.clear();
35605
35616
  } else {
35606
- otherPageNumber = PDF.internal.getNumberOfPages() - hoEditorFactory.drawTree.drawPages.length;
35607
- if (otherPageNumber >= 1) {
35617
+ otherPageNumber = PDF.internal.getNumberOfPages() - pageNumber;
35618
+ if (otherPageNumber >= 2) {
35608
35619
  for (i = 0; i < otherPageNumber; i++) {
35609
35620
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
35610
35621
  }
35611
35622
  console.warn("\u4ECE\u5F00\u59CB\u5220\u6389".concat(otherPageNumber, "\u9875\u7A7A\u767D\u9875"));
35612
- } else if (otherPageNumber <= 0) {
35623
+ } else if (otherPageNumber <= 1) {
35613
35624
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
35614
- console.warn("otherPageNumber <= 0 \u65F6\u4ECE\u5F00\u59CB\u5220\u63891\u9875\u7A7A\u767D\u9875");
35625
+ console.warn("".concat(otherPageNumber, " <= 0 \u65F6\u4ECE\u5F00\u59CB\u5220\u63891\u9875\u7A7A\u767D\u9875"));
35615
35626
  }
35616
35627
  if (startPageNumOver) {
35617
35628
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
@@ -35620,12 +35631,12 @@ var Print = /*#__PURE__*/function () {
35620
35631
  PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
35621
35632
  }
35622
35633
  reslove && reslove('printend');
35623
- case 98:
35634
+ case 101:
35624
35635
  case "end":
35625
35636
  return _context3.stop();
35626
35637
  }
35627
35638
  }
35628
- }, _callee2, this, [[16, 64, 67, 70]]);
35639
+ }, _callee2, this, [[17, 67, 70, 73]]);
35629
35640
  }));
35630
35641
  function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
35631
35642
  return _printToPDF.apply(this, arguments);
@@ -35636,7 +35647,7 @@ var Print = /*#__PURE__*/function () {
35636
35647
  key: "createPDFBase64",
35637
35648
  value: function () {
35638
35649
  var _createPDFBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee3(hoEditorFactoryID, reslove, PDF) {
35639
- var hoEditorFactory, orientation, svgBox, last, _iterator2, _step2, _cpage$drawDomLevel5, index, cpage, _cpage$drawDomLevel3, _cpage$drawDomLevel3$, ctx, _cpage$drawDomLevel4, _cpage$drawDomLevel4$, _ctx5, _ctx4;
35650
+ var hoEditorFactory, orientation, svgBox, last, pageNumber, _iterator2, _step2, _cpage$drawDomLevel5, index, cpage, _cpage$drawDomLevel3, _cpage$drawDomLevel3$, ctx, _cpage$drawDomLevel4, _cpage$drawDomLevel4$, _ctx5, _ctx4;
35640
35651
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee3$(_context4) {
35641
35652
  while (1) {
35642
35653
  switch (_context4.prev = _context4.next) {
@@ -35651,30 +35662,31 @@ var Print = /*#__PURE__*/function () {
35651
35662
  svgBox = document.createElement('div');
35652
35663
  svgBox.className = 'ho-print-svg-box';
35653
35664
  last = -1;
35665
+ pageNumber = 0;
35654
35666
  _iterator2 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
35655
- _context4.prev = 9;
35667
+ _context4.prev = 10;
35656
35668
  _iterator2.s();
35657
- case 11:
35669
+ case 12:
35658
35670
  if ((_step2 = _iterator2.n()).done) {
35659
- _context4.next = 39;
35671
+ _context4.next = 42;
35660
35672
  break;
35661
35673
  }
35662
35674
  index = _step2.value;
35663
35675
  if (!(index == -1)) {
35664
- _context4.next = 16;
35676
+ _context4.next = 17;
35665
35677
  break;
35666
35678
  }
35667
35679
  message/* default.info */.Z.info('请进行翻页');
35668
- return _context4.abrupt("continue", 37);
35669
- case 16:
35680
+ return _context4.abrupt("continue", 40);
35681
+ case 17:
35670
35682
  last = index;
35671
35683
  cpage = hoEditorFactory.drawTree.drawPages[index];
35672
35684
  if (!(index === hoEditorFactory.drawTree.drawPages.length - 1 && cpage.drawMainDoc.children.length === 2 && !(cpage.drawMainDoc.children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && cpage.drawMainDoc.children[1] && cpage.drawMainDoc.children[1].drawItems.length === 0)) {
35673
- _context4.next = 20;
35685
+ _context4.next = 21;
35674
35686
  break;
35675
35687
  }
35676
- return _context4.abrupt("break", 39);
35677
- case 20:
35688
+ return _context4.abrupt("break", 42);
35689
+ case 21:
35678
35690
  if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
35679
35691
  cpage.drawDomLevel.bindStage();
35680
35692
  cpage.needUpdateStage = true;
@@ -35684,17 +35696,18 @@ var Print = /*#__PURE__*/function () {
35684
35696
  cpage.needUpdateStage = false;
35685
35697
  }
35686
35698
  if (!hoEditorFactory.isUseImagePrint) {
35687
- _context4.next = 30;
35699
+ _context4.next = 32;
35688
35700
  break;
35689
35701
  }
35690
35702
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
35703
+ pageNumber++;
35691
35704
  ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
35692
35705
  window.printBlack = hoEditorFactory.printBlack;
35693
35706
  ctx && ((_cpage$drawDomLevel3 = cpage.drawDomLevel) === null || _cpage$drawDomLevel3 === void 0 ? void 0 : (_cpage$drawDomLevel3$ = _cpage$drawDomLevel3.stage) === null || _cpage$drawDomLevel3$ === void 0 ? void 0 : _cpage$drawDomLevel3$.draw(ctx));
35694
35707
  ctx = null;
35695
- _context4.next = 36;
35708
+ _context4.next = 39;
35696
35709
  break;
35697
- case 30:
35710
+ case 32:
35698
35711
  _ctx4 = new canvas2svg({
35699
35712
  width: hoEditorFactory.pageProperty.widthPixes,
35700
35713
  height: orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
@@ -35702,38 +35715,39 @@ var Print = /*#__PURE__*/function () {
35702
35715
  });
35703
35716
  _ctx4 && ((_cpage$drawDomLevel4 = cpage.drawDomLevel) === null || _cpage$drawDomLevel4 === void 0 ? void 0 : (_cpage$drawDomLevel4$ = _cpage$drawDomLevel4.stage) === null || _cpage$drawDomLevel4$ === void 0 ? void 0 : _cpage$drawDomLevel4$.draw(_ctx4));
35704
35717
  PDF.addPage();
35705
- _context4.next = 35;
35718
+ pageNumber++;
35719
+ _context4.next = 38;
35706
35720
  return svg2pdf((_ctx5 = _ctx4) === null || _ctx5 === void 0 ? void 0 : _ctx5.getSvg(), PDF);
35707
- case 35:
35721
+ case 38:
35708
35722
  _ctx4 = null;
35709
- case 36:
35723
+ case 39:
35710
35724
  index > 0 && ((_cpage$drawDomLevel5 = cpage.drawDomLevel) === null || _cpage$drawDomLevel5 === void 0 ? void 0 : _cpage$drawDomLevel5.clearStage());
35711
- case 37:
35712
- _context4.next = 11;
35725
+ case 40:
35726
+ _context4.next = 12;
35713
35727
  break;
35714
- case 39:
35715
- _context4.next = 44;
35728
+ case 42:
35729
+ _context4.next = 47;
35716
35730
  break;
35717
- case 41:
35718
- _context4.prev = 41;
35719
- _context4.t0 = _context4["catch"](9);
35720
- _iterator2.e(_context4.t0);
35721
35731
  case 44:
35722
35732
  _context4.prev = 44;
35723
- _iterator2.f();
35724
- return _context4.finish(44);
35733
+ _context4.t0 = _context4["catch"](10);
35734
+ _iterator2.e(_context4.t0);
35725
35735
  case 47:
35736
+ _context4.prev = 47;
35737
+ _iterator2.f();
35738
+ return _context4.finish(47);
35739
+ case 50:
35726
35740
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
35727
35741
  hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
35728
35742
  }
35729
35743
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
35730
- reslove && reslove('printend');
35731
- case 50:
35744
+ reslove && reslove(pageNumber);
35745
+ case 53:
35732
35746
  case "end":
35733
35747
  return _context4.stop();
35734
35748
  }
35735
35749
  }
35736
- }, _callee3, null, [[9, 41, 44, 47]]);
35750
+ }, _callee3, null, [[10, 44, 47, 50]]);
35737
35751
  }));
35738
35752
  function createPDFBase64(_x9, _x10, _x11) {
35739
35753
  return _createPDFBase.apply(this, arguments);
@@ -37123,15 +37137,15 @@ var DocController = /*#__PURE__*/function () {
37123
37137
  //插入节点到指定位置
37124
37138
  }, {
37125
37139
  key: "insertNodeByPath",
37126
- value: function insertNodeByPath(path, node, isResetFieldText) {
37140
+ value: function insertNodeByPath(path, node, isResetFieldText, isHasRelateEle) {
37127
37141
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
37128
37142
  var curRange = hoEditorFactory.docTree.curDomRange.normalize();
37129
37143
  var parentNode = node.parentNode;
37130
- if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_26__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText
37144
+ if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_26__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText && !isHasRelateEle
37131
37145
  //&& !parentNode.downListProperty.listItems?.includes("<元素>")
37132
37146
  ) {
37133
37147
  var firstPath = parentNode.StartMarkNode.getNodePath();
37134
- var lastPath = parentNode.EndMarkNode.getNodePath();
37148
+ //const lastPath = parentNode.EndMarkNode.getNodePath();
37135
37149
  var ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
37136
37150
  curRange.startPath = firstPath;
37137
37151
  curRange.endPath = ePath;
@@ -37323,6 +37337,13 @@ var DocController = /*#__PURE__*/function () {
37323
37337
  resolve(path);
37324
37338
  });
37325
37339
  var strPath = path;
37340
+ var isHasRelateEle = false;
37341
+ for (var k = 0; k < arrSubString.length; k++) {
37342
+ if (arrSubString[k][0] == 1) {
37343
+ isHasRelateEle = true;
37344
+ break;
37345
+ }
37346
+ }
37326
37347
  arrSubString.forEach(function (aTextArray, index) {
37327
37348
  aPromise = aPromise.then(function (res) {
37328
37349
  if (res) {
@@ -37358,7 +37379,7 @@ var DocController = /*#__PURE__*/function () {
37358
37379
  strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
37359
37380
  } else {
37360
37381
  var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_26__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntText */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
37361
- strPath = _this.insertNodeByPath(strPath, _textNode, oldCanModifyContent == undefined ? false : true);
37382
+ strPath = _this.insertNodeByPath(strPath, _textNode, oldCanModifyContent == undefined ? false : true, isHasRelateEle && index > 1 ? true : false);
37362
37383
  }
37363
37384
  } else {
37364
37385
  var styleIndex = hoEditorFactory.docTree.curStyleIndex;
@@ -37371,7 +37392,7 @@ var DocController = /*#__PURE__*/function () {
37371
37392
  styleIndex = hoEditorFactory.docTree.styleCompare(newStyle);
37372
37393
  }
37373
37394
  var _textNode2 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_26__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntText */ .Jq.ntText, aText, styleIndex);
37374
- strPath = _this.insertNodeByPath(strPath, _textNode2, oldCanModifyContent == undefined ? false : true);
37395
+ strPath = _this.insertNodeByPath(strPath, _textNode2, oldCanModifyContent == undefined ? false : true, isHasRelateEle && index > 1 ? true : false);
37375
37396
  }
37376
37397
  // if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
37377
37398
  // pNode.canModifyContent = oldCanModifyContent;
@@ -38720,6 +38741,12 @@ var DocController = /*#__PURE__*/function () {
38720
38741
  _cell$table$getCellIn2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn, 2),
38721
38742
  r = _cell$table$getCellIn2[0],
38722
38743
  c = _cell$table$getCellIn2[1];
38744
+ if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psEdit */ .Dh.psEdit && r > 0) {
38745
+ if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
38746
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_89__/* ["default"].warn */ .Z.warn("不允许在表头行中间插入行");
38747
+ return;
38748
+ }
38749
+ }
38723
38750
  hoEditorFactory.undoService.begin();
38724
38751
  hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r, r, count));
38725
38752
  hoEditorFactory.undoService.commit();
@@ -38765,6 +38792,12 @@ var DocController = /*#__PURE__*/function () {
38765
38792
  _cell$table$getCellIn4 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn3, 2),
38766
38793
  r = _cell$table$getCellIn4[0],
38767
38794
  c = _cell$table$getCellIn4[1];
38795
+ if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psEdit */ .Dh.psEdit) {
38796
+ if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
38797
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_89__/* ["default"].warn */ .Z.warn("不允许在表头行中间插入行");
38798
+ return;
38799
+ }
38800
+ }
38768
38801
  hoEditorFactory.undoService.begin();
38769
38802
  hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r + 1, r, count));
38770
38803
  hoEditorFactory.undoService.commit();
@@ -49586,6 +49619,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
49586
49619
  if (convertNode.text !== "" && convertNode.text !== '‌‌' && convertNode.text !== '‌‌‌‌' && convertNode.text !== '‌‌‌‌‌' && convertNode.text !== '‌‌‌' && convertNode.text !== '‌') {
49587
49620
  cellNode.addChild(convertNode);
49588
49621
  }
49622
+ if (convertNode.errorIndex != undefined) {
49623
+ hoEditorFactory.structureConvert._errTextNodes.push(convertNode);
49624
+ }
49589
49625
  } else {
49590
49626
  if (isClearSign) {
49591
49627
  if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N) {
@@ -51775,13 +51811,13 @@ var DrawImageNode = /*#__PURE__*/function (_DrawCombineNode) {
51775
51811
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_drawResize", void 0);
51776
51812
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_id", void 0);
51777
51813
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bitMap", void 0);
51814
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(hoeditfactoryID);
51815
+ var bounds = hoEditorFactory.vueController.getMainBounds(dWidth, dHeight);
51816
+ _this.dWidth = bounds.imageWidth;
51817
+ _this.dHeight = bounds.imageHeight;
51778
51818
  _this._imagePath = imagePath;
51779
51819
  _this._markImagePath = markImagePath;
51780
- _this.dWidth = dWidth;
51781
- _this.dHeight = dHeight;
51782
- //this._scaleX = scaleX;
51783
- //this._scaleY = scaleY;
51784
- _this._imageY = -dHeight;
51820
+ _this._imageY = -_this.dHeight;
51785
51821
  _this.insertImage();
51786
51822
  _this._drawResize = new DrawResize/* DrawResize */.r(hoeditfactoryID, _this.node, (0,assertThisInitialized/* default */.Z)(_this), _this._imageY);
51787
51823
  return _this;
@@ -51811,11 +51847,11 @@ var DrawImageNode = /*#__PURE__*/function (_DrawCombineNode) {
51811
51847
  // let markImageBitmap!: createjs.Bitmap;
51812
51848
  image.src = this.imagePath;
51813
51849
  this._bitMap = new createjs.Bitmap(image);
51850
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(drawNode.node.hoEditorFactoryID);
51814
51851
  this._bitMap.y = this._imageY;
51815
51852
  this._bitMap.x = 0;
51816
51853
  this._bitMap.name = this.node.id;
51817
51854
  this._bitMap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
51818
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(drawNode.node.hoEditorFactoryID);
51819
51855
  hoEditorFactory.loadImageCount++;
51820
51856
  this.addChild(this._bitMap);
51821
51857
  image.onload = function () {
@@ -61626,7 +61662,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
61626
61662
  /*
61627
61663
  * @Author: your name
61628
61664
  * @Date: 2020-11-03 15:17:54
61629
- * @LastEditTime: 2023-02-17 17:02:00
61665
+ * @LastEditTime: 2023-02-24 09:49:19
61630
61666
  * @LastEditors: liyanan 2441631434@qq.com
61631
61667
  * @Description: In User Settings Edit
61632
61668
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -63535,6 +63571,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
63535
63571
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
63536
63572
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
63537
63573
  var eachCount = 0;
63574
+ var isErrorValid = false;
63538
63575
  delete json.nodeType;
63539
63576
  this.transType(json);
63540
63577
  if (isPaste) {
@@ -63579,6 +63616,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
63579
63616
  if (node.text !== '' && node.text !== '‌‌' && node.text !== '‌‌‌‌' && node.text !== '‌‌‌‌‌' && node.text !== '‌‌‌' && node.text !== '‌') {
63580
63617
  nodes.push(node);
63581
63618
  }
63619
+ if (node.errorIndex != undefined) {
63620
+ hoEditorFactory.structureConvert._errTextNodes.push(node);
63621
+ isErrorValid = true;
63622
+ }
63582
63623
  } else {
63583
63624
  if (isClearSign) {
63584
63625
  if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
@@ -63614,6 +63655,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
63614
63655
  if (_node2.text !== '' && _node2.text !== '‌‌' && _node2.text !== '‌‌‌‌' && _node2.text !== '‌‌‌‌‌' && _node2.text !== '‌‌‌' && _node2.text !== '‌') {
63615
63656
  nodes.push(_node2);
63616
63657
  }
63658
+ if (_node2.errorIndex != undefined) {
63659
+ hoEditorFactory.structureConvert._errTextNodes.push(_node2);
63660
+ isErrorValid = true;
63661
+ }
63617
63662
  } else {
63618
63663
  //nodes.push(node);
63619
63664
  if (isClearSign) {
@@ -63693,7 +63738,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
63693
63738
  childFields.push(childNode);
63694
63739
  }
63695
63740
  }
63696
- if (childFields.length === 0) {
63741
+ if (childFields.length === 0 && !isErrorValid) {
63697
63742
  //不嵌套 用text
63698
63743
  var fieldText = temp.getFieldText();
63699
63744
  if (temp.text !== fieldText && (temp.inputFieldType == 0 || temp.inputFieldType == 1 && temp.readType == 1)) {
@@ -64040,7 +64085,7 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
64040
64085
  // private drawItems: DrawNode[];
64041
64086
  function TextNode(hoEditorFactoryID, rootNodes, pNode, nodeType,
64042
64087
  //paragraph: Paragraph,
64043
- text, styleIndex) {
64088
+ text, styleIndex, errorIndex) {
64044
64089
  var _this;
64045
64090
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, TextNode);
64046
64091
  _this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
@@ -64050,8 +64095,12 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
64050
64095
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_28__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dColor", void 0);
64051
64096
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_28__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dHeight", void 0);
64052
64097
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_28__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dCombineStyle", void 0);
64098
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_28__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_errorIndex", void 0);
64053
64099
  _this._text = text;
64054
64100
  _this._styleIndex = styleIndex;
64101
+ if (errorIndex != undefined) {
64102
+ _this._errorIndex = errorIndex;
64103
+ }
64055
64104
  _this.node2DrawNodeRange(0, text.length - 1);
64056
64105
  // this.drawItems=new Array<DrawNode>();
64057
64106
  return _this;
@@ -64085,6 +64134,11 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
64085
64134
  get: function get() {
64086
64135
  return this._dCombineStyle;
64087
64136
  }
64137
+ }, {
64138
+ key: "errorIndex",
64139
+ get: function get() {
64140
+ return this._errorIndex;
64141
+ }
64088
64142
  }, {
64089
64143
  key: "insertText",
64090
64144
  value: function insertText(atext, index) {
@@ -64666,7 +64720,7 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
64666
64720
  styleIndex = hoEditorFactory.docTree.styleCompare(textStyle);
64667
64721
  }
64668
64722
  json.text = json.text.replace("<上标>", "").replace("</上标>", "").replace("<下标>", "").replace("</下标>", "");
64669
- return new TextNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType.ntText */ .Jq.ntText, json.text, styleIndex);
64723
+ return new TextNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType.ntText */ .Jq.ntText, json.text, styleIndex, json.errorIndex ? Number(json.errorIndex) : undefined);
64670
64724
  }
64671
64725
  }]);
64672
64726
  return TextNode;
@@ -78768,6 +78822,7 @@ var DrawTree = /*#__PURE__*/function () {
78768
78822
  (0,defineProperty/* default */.Z)(this, "_curOnSelectedComment", void 0);
78769
78823
  (0,defineProperty/* default */.Z)(this, "_pageNumNodes", void 0);
78770
78824
  (0,defineProperty/* default */.Z)(this, "_pageCountNodes", void 0);
78825
+ (0,defineProperty/* default */.Z)(this, "_errorsMap", void 0);
78771
78826
  (0,defineProperty/* default */.Z)(this, "_formularNodes", void 0);
78772
78827
  this._hoEditorFactoryID = hoEditorFactoryID;
78773
78828
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
@@ -78796,6 +78851,7 @@ var DrawTree = /*#__PURE__*/function () {
78796
78851
  this._pageNumNodes = new Map();
78797
78852
  this._pageCountNodes = new Map();
78798
78853
  this._formularNodes = new Map();
78854
+ this._errorsMap = new Map();
78799
78855
  // this._drawPageMarks = new Array<DrawPageMarkNode>();
78800
78856
  // this._nodeMouseOverHandler = new Array<NodeMouseOverHandler>();
78801
78857
  // this._nodeMouseOutHandler = new Array<NodeMouseOutHandler>();
@@ -78819,6 +78875,8 @@ var DrawTree = /*#__PURE__*/function () {
78819
78875
  //所有drawArea里面的批注 不用来显示 只用来做判断
78820
78876
  //当前处于选中状态的批注
78821
78877
 
78878
+ //错别字提示
78879
+
78822
78880
  // private _drawPageMarks: Array<DrawPageMarkNode>;
78823
78881
  // get drawPageMarks() {
78824
78882
  // return this._drawPageMarks;
@@ -78905,6 +78963,16 @@ var DrawTree = /*#__PURE__*/function () {
78905
78963
  this._commentsMap = value;
78906
78964
  }
78907
78965
  }
78966
+ }, {
78967
+ key: "errorsMap",
78968
+ get: function get() {
78969
+ return this._errorsMap;
78970
+ },
78971
+ set: function set(value) {
78972
+ if (this._errorsMap !== value) {
78973
+ this._errorsMap = value;
78974
+ }
78975
+ }
78908
78976
  }, {
78909
78977
  key: "curOnSelectedComment",
78910
78978
  get: function get() {
@@ -82513,6 +82581,7 @@ var DrawTree = /*#__PURE__*/function () {
82513
82581
  this._curOnSelectedComment = null;
82514
82582
  this._pageNumNodes = new Map();
82515
82583
  this._pageCountNodes = new Map();
82584
+ this._errorsMap = new Map();
82516
82585
  // this._drawPageMarks = [];
82517
82586
  // const drawObjet = this.getDNodeByPath("main/0");
82518
82587
  // if (drawObjet instanceof DrawTable) {
@@ -89370,7 +89439,7 @@ var createPrintHTMLStyle = function createPrintHTMLStyle(pageSize, orientation)
89370
89439
  var printStyle = document.createElement('style');
89371
89440
  // css打印设置 size中 纸张尺寸暂时无法生效 打印方向生效
89372
89441
  printStyle.type = 'text/css';
89373
- printStyle.innerHTML = "\n @media print {\n @page {\n margin: 0;\n border: 0 solid transparent;\n size: ".concat(pageSize, " ").concat(orientation === 'l' ? 'landscape' : 'portrait', ";\n }\n\n body, html {\n padding: 0;\n margin: 0;\n background: #fff;\n }\n svg {\n display: block;\n margin: 0 auto;\n border: 0;\n }\n }\n body, html {\n margin: 0;\n background: #eee;\n text-align: center;\n }\n .ho-print-svg-list {\n margin: 0 auto;\n }\n .ho-print-svg-box {\n margin: 0 auto;\n position: relative;\n }\n svg {\n display: block;\n margin: 20px auto;\n border: 0;\n }\n svg:first-child {\n margin-top: 0\n }\n svg:last-child {\n margin-bottom: 0\n }\n ");
89442
+ printStyle.innerHTML = "\n @media print {\n @page {\n margin: 0;\n border: 0 solid transparent;\n size: ".concat(pageSize, " ").concat(orientation === 'l' ? 'landscape' : 'portrait', ";\n }\n\n body, html {\n padding: 0;\n margin: 0;\n background: #fff;\n }\n svg {\n display: block;\n margin: 0 auto;\n border: 0;\n background: #FFF;\n }\n }\n body, html {\n margin: 0;\n background: #eee;\n text-align: center;\n }\n .ho-print-svg-list {\n margin: 0 auto;\n }\n .ho-print-svg-box {\n margin: 0 auto;\n position: relative;\n }\n svg {\n display: block;\n margin: 20px auto;\n border: 0;\n background: #FFF;\n }\n svg:first-child {\n margin-top: 0\n }\n svg:last-child {\n margin-bottom: 0\n }\n ");
89374
89443
  return printStyle;
89375
89444
  };
89376
89445
  /**
@@ -220161,7 +220230,7 @@ var map = {
220161
220230
  "./pageInfoes/PageInfoes.vue": 17481,
220162
220231
  "./paragraph/ParagraphDialog.vue": 54949,
220163
220232
  "./poperSelect/PoperMark.vue": 71472,
220164
- "./poperSelect/PoperSelect.vue": 1933,
220233
+ "./poperSelect/PoperSelect.vue": 12602,
220165
220234
  "./poperTipText/PoperTipText.vue": 15845,
220166
220235
  "./popers/Poper.vue": 57937,
220167
220236
  "./popers/Title.vue": 89987,
@@ -256413,8 +256482,8 @@ var es_string_match = __webpack_require__(4723);
256413
256482
  var es_number_constructor = __webpack_require__(9653);
256414
256483
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
256415
256484
  var es_json_stringify = __webpack_require__(38862);
256416
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=47dcd5c8&
256417
- var HoDocvue_type_template_id_47dcd5c8_render = function render() {
256485
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=ce9bcdc6&
256486
+ var HoDocvue_type_template_id_ce9bcdc6_render = function render() {
256418
256487
  var _vm = this,
256419
256488
  _c = _vm._self._c;
256420
256489
  return _c('div', {
@@ -256560,7 +256629,7 @@ var HoDocvue_type_template_id_47dcd5c8_render = function render() {
256560
256629
  }
256561
256630
  }, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
256562
256631
  };
256563
- var HoDocvue_type_template_id_47dcd5c8_staticRenderFns = [];
256632
+ var HoDocvue_type_template_id_ce9bcdc6_staticRenderFns = [];
256564
256633
 
256565
256634
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
256566
256635
  var es_array_filter = __webpack_require__(57327);
@@ -256570,8 +256639,8 @@ var es_string_includes = __webpack_require__(32023);
256570
256639
  var es_array_sort = __webpack_require__(2707);
256571
256640
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
256572
256641
  var es_string_replace = __webpack_require__(15306);
256573
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=template&id=188fb5b4&scoped=true&
256574
- var HoPagevue_type_template_id_188fb5b4_scoped_true_render = function render() {
256642
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=template&id=5ed62e92&scoped=true&
256643
+ var HoPagevue_type_template_id_5ed62e92_scoped_true_render = function render() {
256575
256644
  var _vm = this,
256576
256645
  _c = _vm._self._c;
256577
256646
  return _c('div', {
@@ -256635,7 +256704,7 @@ var HoPagevue_type_template_id_188fb5b4_scoped_true_render = function render() {
256635
256704
  }], null, true)
256636
256705
  }) : _vm._e()], 2);
256637
256706
  };
256638
- var HoPagevue_type_template_id_188fb5b4_scoped_true_staticRenderFns = [];
256707
+ var HoPagevue_type_template_id_5ed62e92_scoped_true_staticRenderFns = [];
256639
256708
 
256640
256709
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
256641
256710
  var regeneratorRuntime = __webpack_require__(80543);
@@ -257561,270 +257630,6 @@ var DrawDomLevel = /*#__PURE__*/function () {
257561
257630
  }]);
257562
257631
  return DrawDomLevel;
257563
257632
  }();
257564
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
257565
- var es_array_slice = __webpack_require__(47042);
257566
- // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
257567
- var MarkNode = __webpack_require__(57727);
257568
- // EXTERNAL MODULE: ./src/editor/dom/treeNode/TextNode.ts
257569
- var TextNode = __webpack_require__(27198);
257570
- // EXTERNAL MODULE: ./src/editor/events/NodeClickEvent.ts
257571
- var NodeClickEvent = __webpack_require__(84561);
257572
- ;// CONCATENATED MODULE: ./src/editor/events/NodeMouseMoveEvent.ts
257573
-
257574
-
257575
-
257576
-
257577
-
257578
-
257579
-
257580
-
257581
-
257582
-
257583
-
257584
-
257585
-
257586
-
257587
-
257588
-
257589
-
257590
-
257591
-
257592
-
257593
- var DmouseEventType;
257594
- (function (DmouseEventType) {
257595
- DmouseEventType[DmouseEventType["detOver"] = 0] = "detOver";
257596
- DmouseEventType[DmouseEventType["detOut"] = 1] = "detOut";
257597
- DmouseEventType[DmouseEventType["detClick"] = 2] = "detClick";
257598
- DmouseEventType[DmouseEventType["detDblclick"] = 3] = "detDblclick";
257599
- })(DmouseEventType || (DmouseEventType = {}));
257600
- var NodeMouseMoveEvent = /*#__PURE__*/function () {
257601
- // private _name!: string;
257602
-
257603
- function NodeMouseMoveEvent(hoEditorFactoryID) {
257604
- (0,esm_classCallCheck/* default */.Z)(this, NodeMouseMoveEvent);
257605
- (0,esm_defineProperty/* default */.Z)(this, "_pageIndex", void 0);
257606
- (0,esm_defineProperty/* default */.Z)(this, "_moveType", void 0);
257607
- (0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
257608
- (0,esm_defineProperty/* default */.Z)(this, "_position", void 0);
257609
- (0,esm_defineProperty/* default */.Z)(this, "_poperTipPos", void 0);
257610
- (0,esm_defineProperty/* default */.Z)(this, "_tipText", void 0);
257611
- (0,esm_defineProperty/* default */.Z)(this, "_id", void 0);
257612
- (0,esm_defineProperty/* default */.Z)(this, "_deleterIndex", void 0);
257613
- (0,esm_defineProperty/* default */.Z)(this, "_creatorIndex", void 0);
257614
- (0,esm_defineProperty/* default */.Z)(this, "_isUseTipText", void 0);
257615
- this._pageIndex = 0;
257616
- this._moveType = DmouseEventType.detOut;
257617
- this._hoEditorFactoryID = hoEditorFactoryID;
257618
- this._tipText = [];
257619
- this._id = [];
257620
- }
257621
- (0,esm_createClass/* default */.Z)(NodeMouseMoveEvent, [{
257622
- key: "pageIndex",
257623
- get: function get() {
257624
- return this._pageIndex;
257625
- }
257626
- }, {
257627
- key: "moveType",
257628
- get: function get() {
257629
- return this._moveType;
257630
- }
257631
- }, {
257632
- key: "id",
257633
- get: function get() {
257634
- return this._id;
257635
- }
257636
- }, {
257637
- key: "tipText",
257638
- get: function get() {
257639
- return this._tipText;
257640
- }
257641
- }, {
257642
- key: "position",
257643
- get: function get() {
257644
- return this._position;
257645
- }
257646
- }, {
257647
- key: "deleterIndex",
257648
- get: function get() {
257649
- return this._deleterIndex;
257650
- }
257651
- }, {
257652
- key: "poperTipPos",
257653
- get: function get() {
257654
- return this._poperTipPos;
257655
- },
257656
- set: function set(value) {
257657
- if (this._poperTipPos !== value) {
257658
- this._poperTipPos = value;
257659
- }
257660
- }
257661
- }, {
257662
- key: "isUseTipText",
257663
- get: function get() {
257664
- return this._isUseTipText;
257665
- },
257666
- set: function set(value) {
257667
- if (this._isUseTipText !== value) {
257668
- this._isUseTipText = value;
257669
- }
257670
- }
257671
- /**
257672
- * @param node moveNode
257673
- * @param moveType
257674
- */
257675
- }, {
257676
- key: "setNode",
257677
- value: function setNode(node, moveType) {
257678
- this._creatorIndex = -1;
257679
- this._deleterIndex = -1;
257680
- this._tipText = [];
257681
- this._id = [];
257682
- // if(moveType === DmouseEventType.detOut) {
257683
- // return;
257684
- // }
257685
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
257686
- if (node instanceof TextNode/* TextNode */.R) {
257687
- if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
257688
- this._creatorIndex = hoEditorFactory.docTree.styles[node.styleIndex].creatorIndex;
257689
- this._deleterIndex = hoEditorFactory.docTree.styles[node.styleIndex].deleterIndex;
257690
- // if(moveType === DmouseEventType.detOver) {
257691
- // console.log(this._creatorIndex, this._deleterIndex);
257692
- // console.log(HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.userHistories);
257693
- // }
257694
- if (this._creatorIndex !== undefined && this._creatorIndex >= 0) {
257695
- var userHistories = hoEditorFactory.docTree.userHistories[this._creatorIndex];
257696
- this._moveType = moveType;
257697
- this._tipText.push("".concat(userHistories.editDate, " ").concat(userHistories.name, "\u521B\u5EFA"));
257698
- this._id.push(userHistories.id);
257699
- this.computedPosition(node.drawNodes[0]);
257700
- }
257701
- if (this._deleterIndex !== undefined && this._deleterIndex >= 0) {
257702
- var _userHistories = hoEditorFactory.docTree.userHistories[this._deleterIndex];
257703
- this._moveType = moveType;
257704
- this._tipText.push("".concat(_userHistories.editDate, " ").concat(_userHistories.name, "\u5220\u9664"));
257705
- this._id.push(_userHistories.id);
257706
- this.computedPosition(node.drawNodes[0]);
257707
- }
257708
- } else {
257709
- if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
257710
- this._moveType = moveType;
257711
- if (node.parentNode.tipText) {
257712
- var text = JSON.stringify(node.parentNode.tipText);
257713
- text = text.slice(1, text.length - 1);
257714
- var arr = text.split("\\n").filter(function (v) {
257715
- return v;
257716
- });
257717
- this._tipText = arr;
257718
- } else {
257719
- this._tipText.push('');
257720
- }
257721
- this._id.push(node.parentNode.id);
257722
- this.computedPosition(node.drawNodes[0]);
257723
- }
257724
- }
257725
- } else if (node instanceof MarkNode/* MarkNode */.j) {
257726
- if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
257727
- this._moveType = moveType;
257728
- if (node.parentNode.tipText) {
257729
- var _text = JSON.stringify(node.parentNode.tipText);
257730
- _text = _text.slice(1, _text.length - 1);
257731
- var _arr = _text.split("\\n").filter(function (v) {
257732
- return v;
257733
- });
257734
- this._tipText = _arr;
257735
- } else {
257736
- this._tipText.push('');
257737
- }
257738
- this._id.push(node.parentNode.id);
257739
- this.computedPosition(node.drawNodes[0]);
257740
- }
257741
- } else {
257742
- if (this._isUseTipText && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
257743
- if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
257744
- this._moveType = moveType;
257745
- if (node.tipText) {
257746
- var _text2 = JSON.stringify(node.tipText);
257747
- _text2 = _text2.slice(1, _text2.length - 1);
257748
- var _arr2 = _text2.split("\\n").filter(function (v) {
257749
- return v;
257750
- });
257751
- this._tipText = _arr2;
257752
- } else {
257753
- this._tipText.push('');
257754
- }
257755
- this._id.push(node.id);
257756
- this.computedPosition(node.drawNodes[0]);
257757
- }
257758
- }
257759
- }
257760
- }
257761
- }, {
257762
- key: "NodeClick",
257763
- value: function NodeClick(node, moveType) {
257764
- var _this = this;
257765
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
257766
- if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh && moveType === DmouseEventType.detClick) {
257767
- var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
257768
- var nodeClickEvent = new NodeClickEvent/* NodeClickEvent */.W(node, "click");
257769
- hoEditorFactory.docTree.nodeClick(nodeClickEvent);
257770
- node.drawNodes[0].parent = drawLine;
257771
- }
257772
- if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
257773
- var paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
257774
- if (paragraphNode && paragraphNode.customProperty) {
257775
- var customProperty = paragraphNode.customProperty;
257776
- var paragraphTip = ['男', '女'].includes(customProperty.sex) || customProperty.age && customProperty.age.select == '隐藏';
257777
- var arr = [];
257778
- if (paragraphTip) {
257779
- if (['男', '女'].includes(customProperty.sex)) {
257780
- arr.push("\u60A3\u8005\u4E3A<span style=\"color:#f00\"> ".concat(customProperty.sex, " </span>\u6027\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
257781
- }
257782
- if (customProperty.age && customProperty.age.select == '隐藏') {
257783
- arr.push("\u60A3\u8005\u5E74\u9F84\u5728<span style=\"color:#f00\"> ".concat(customProperty.age.minAge, " </span>\u5C81\u5230<span style=\"color:#f00\"> ").concat(customProperty.age.maxAge, " </span>\u4E4B\u95F4\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
257784
- }
257785
- if (arr.length > 0) {
257786
- setTimeout(function () {
257787
- _this.createParagraphTipHTML(hoEditorFactory.drawTree.caret, arr);
257788
- }, 0);
257789
- }
257790
- }
257791
- }
257792
- }
257793
- }
257794
- }, {
257795
- key: "createParagraphTipHTML",
257796
- value: function createParagraphTipHTML(caret, text) {
257797
- var _caret$cursor$parentN;
257798
- var tipdiv = document.createElement('div');
257799
- tipdiv.id = "ho_paragrapgh_tip";
257800
- tipdiv.style.left = caret.X + "px";
257801
- tipdiv.style.top = caret.Y + caret.height + "px";
257802
- tipdiv.innerHTML = text.join("<br />");
257803
- (_caret$cursor$parentN = caret.cursor.parentNode) === null || _caret$cursor$parentN === void 0 ? void 0 : _caret$cursor$parentN.appendChild(tipdiv);
257804
- }
257805
- /**
257806
- * @param node moveNode
257807
- */
257808
- }, {
257809
- key: "computedPosition",
257810
- value: function computedPosition(nodePos) {
257811
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
257812
- var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(nodePos);
257813
- if (drawLine) {
257814
- var docPos = drawLine.localToGlobal(nodePos.x, nodePos.y === 0 ? drawLine.dHeight : nodePos.y);
257815
- this._pageIndex = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.activePage.pageIndex;
257816
- this._poperTipPos.width = nodePos.dWidth ? nodePos.dWidth : 0; // // 目标元素 width
257817
- this._poperTipPos.height = drawLine.dHeight; // 目标元素所在行的 height
257818
- this._poperTipPos.pageIndex = this._pageIndex; // 目标元素所在页
257819
- this._poperTipPos.moveType = this._moveType;
257820
- this._poperTipPos.y = docPos.y / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + 5; // 目标元素所在行的 y
257821
- this._poperTipPos.x = docPos.x / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY; // 目标元素所在行的 x
257822
- }
257823
- }
257824
- }]);
257825
- return NodeMouseMoveEvent;
257826
- }();
257827
- (0,esm_defineProperty/* default */.Z)(NodeMouseMoveEvent, "eventName", "nodeMouseMove");
257828
257633
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoHeadFoot.vue?vue&type=template&id=d3353ee6&
257829
257634
  var HoHeadFootvue_type_template_id_d3353ee6_render = function render() {
257830
257635
  var _vm = this,
@@ -258060,7 +257865,6 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
258060
257865
 
258061
257866
 
258062
257867
 
258063
-
258064
257868
  /* harmony default export */ var HoPagevue_type_script_lang_js_ = ({
258065
257869
  name: 'HoPage',
258066
257870
  components: {
@@ -258180,10 +257984,10 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
258180
257984
  });
258181
257985
  ;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=script&lang=js&
258182
257986
  /* harmony default export */ var components_HoPagevue_type_script_lang_js_ = (HoPagevue_type_script_lang_js_);
258183
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=style&index=0&id=188fb5b4&prod&scoped=true&lang=css&
257987
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=style&index=0&id=5ed62e92&prod&scoped=true&lang=css&
258184
257988
  // extracted by mini-css-extract-plugin
258185
257989
 
258186
- ;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=188fb5b4&prod&scoped=true&lang=css&
257990
+ ;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=5ed62e92&prod&scoped=true&lang=css&
258187
257991
 
258188
257992
  ;// CONCATENATED MODULE: ./src/components/HoPage.vue
258189
257993
 
@@ -258196,11 +258000,11 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
258196
258000
 
258197
258001
  var HoPage_component = (0,componentNormalizer/* default */.Z)(
258198
258002
  components_HoPagevue_type_script_lang_js_,
258199
- HoPagevue_type_template_id_188fb5b4_scoped_true_render,
258200
- HoPagevue_type_template_id_188fb5b4_scoped_true_staticRenderFns,
258003
+ HoPagevue_type_template_id_5ed62e92_scoped_true_render,
258004
+ HoPagevue_type_template_id_5ed62e92_scoped_true_staticRenderFns,
258201
258005
  false,
258202
258006
  null,
258203
- "188fb5b4",
258007
+ "5ed62e92",
258204
258008
  null
258205
258009
 
258206
258010
  )
@@ -258387,7 +258191,7 @@ var DrawPage = __webpack_require__(72722);
258387
258191
  // EXTERNAL MODULE: ./src/plugins/util.ts
258388
258192
  var plugins_util = __webpack_require__(62783);
258389
258193
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
258390
- var PoperSelect = __webpack_require__(1933);
258194
+ var PoperSelect = __webpack_require__(12602);
258391
258195
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
258392
258196
  var PoperMark = __webpack_require__(71472);
258393
258197
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
@@ -260079,10 +259883,14 @@ if (typeof window.IntersectionObserver === 'function') {
260079
259883
  /* harmony default export */ var intersection_observer_polyfill = (intersection_observer_polyfill_IntersectionObserver);
260080
259884
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/SignNode.ts
260081
259885
  var SignNode = __webpack_require__(24701);
259886
+ // EXTERNAL MODULE: ./src/editor/dom/treeNode/TextNode.ts
259887
+ var TextNode = __webpack_require__(27198);
260082
259888
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
260083
259889
  var ParagraphNode = __webpack_require__(67945);
259890
+ // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
259891
+ var MarkNode = __webpack_require__(57727);
260084
259892
  ;// CONCATENATED MODULE: ./src/components/version.ts
260085
- /* harmony default export */ var version = ('3.0.25');
259893
+ /* harmony default export */ var version = ('3.0.27');
260086
259894
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
260087
259895
  var PoperTipText = __webpack_require__(15845);
260088
259896
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -260130,7 +259938,6 @@ var ImageNode = __webpack_require__(97186);
260130
259938
 
260131
259939
 
260132
259940
 
260133
-
260134
259941
 
260135
259942
 
260136
259943
  var defaultWidth = Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY) % 2 === 1 ? Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY) + 1 : Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY);
@@ -260758,10 +260565,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
260758
260565
  });
260759
260566
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
260760
260567
  /* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
260761
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=47dcd5c8&prod&lang=scss&
260568
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=ce9bcdc6&prod&lang=scss&
260762
260569
  // extracted by mini-css-extract-plugin
260763
260570
 
260764
- ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=47dcd5c8&prod&lang=scss&
260571
+ ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=ce9bcdc6&prod&lang=scss&
260765
260572
 
260766
260573
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue
260767
260574
 
@@ -260774,8 +260581,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
260774
260581
 
260775
260582
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
260776
260583
  components_HoDocvue_type_script_lang_js_,
260777
- HoDocvue_type_template_id_47dcd5c8_render,
260778
- HoDocvue_type_template_id_47dcd5c8_staticRenderFns,
260584
+ HoDocvue_type_template_id_ce9bcdc6_render,
260585
+ HoDocvue_type_template_id_ce9bcdc6_staticRenderFns,
260779
260586
  false,
260780
260587
  null,
260781
260588
  null,
@@ -262041,6 +261848,276 @@ var DrawPageTree = /*#__PURE__*/function () {
262041
261848
  }]);
262042
261849
  return DrawPageTree;
262043
261850
  }();
261851
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
261852
+ var es_array_slice = __webpack_require__(47042);
261853
+ // EXTERNAL MODULE: ./src/editor/events/NodeClickEvent.ts
261854
+ var NodeClickEvent = __webpack_require__(84561);
261855
+ ;// CONCATENATED MODULE: ./src/editor/events/NodeMouseMoveEvent.ts
261856
+
261857
+
261858
+
261859
+
261860
+
261861
+
261862
+
261863
+
261864
+
261865
+
261866
+
261867
+
261868
+
261869
+
261870
+
261871
+
261872
+
261873
+
261874
+
261875
+
261876
+ var DmouseEventType;
261877
+ (function (DmouseEventType) {
261878
+ DmouseEventType[DmouseEventType["detOver"] = 0] = "detOver";
261879
+ DmouseEventType[DmouseEventType["detOut"] = 1] = "detOut";
261880
+ DmouseEventType[DmouseEventType["detClick"] = 2] = "detClick";
261881
+ DmouseEventType[DmouseEventType["detDblclick"] = 3] = "detDblclick";
261882
+ })(DmouseEventType || (DmouseEventType = {}));
261883
+ var NodeMouseMoveEvent = /*#__PURE__*/function () {
261884
+ // private _name!: string;
261885
+
261886
+ function NodeMouseMoveEvent(hoEditorFactoryID) {
261887
+ (0,esm_classCallCheck/* default */.Z)(this, NodeMouseMoveEvent);
261888
+ (0,esm_defineProperty/* default */.Z)(this, "_pageIndex", void 0);
261889
+ (0,esm_defineProperty/* default */.Z)(this, "_moveType", void 0);
261890
+ (0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
261891
+ (0,esm_defineProperty/* default */.Z)(this, "_position", void 0);
261892
+ (0,esm_defineProperty/* default */.Z)(this, "_poperTipPos", void 0);
261893
+ (0,esm_defineProperty/* default */.Z)(this, "_tipText", void 0);
261894
+ (0,esm_defineProperty/* default */.Z)(this, "_id", void 0);
261895
+ (0,esm_defineProperty/* default */.Z)(this, "_deleterIndex", void 0);
261896
+ (0,esm_defineProperty/* default */.Z)(this, "_creatorIndex", void 0);
261897
+ (0,esm_defineProperty/* default */.Z)(this, "_isUseTipText", void 0);
261898
+ this._pageIndex = 0;
261899
+ this._moveType = DmouseEventType.detOut;
261900
+ this._hoEditorFactoryID = hoEditorFactoryID;
261901
+ this._tipText = [];
261902
+ this._id = [];
261903
+ }
261904
+ (0,esm_createClass/* default */.Z)(NodeMouseMoveEvent, [{
261905
+ key: "pageIndex",
261906
+ get: function get() {
261907
+ return this._pageIndex;
261908
+ }
261909
+ }, {
261910
+ key: "moveType",
261911
+ get: function get() {
261912
+ return this._moveType;
261913
+ }
261914
+ }, {
261915
+ key: "id",
261916
+ get: function get() {
261917
+ return this._id;
261918
+ }
261919
+ }, {
261920
+ key: "tipText",
261921
+ get: function get() {
261922
+ return this._tipText;
261923
+ }
261924
+ }, {
261925
+ key: "position",
261926
+ get: function get() {
261927
+ return this._position;
261928
+ }
261929
+ }, {
261930
+ key: "deleterIndex",
261931
+ get: function get() {
261932
+ return this._deleterIndex;
261933
+ }
261934
+ }, {
261935
+ key: "poperTipPos",
261936
+ get: function get() {
261937
+ return this._poperTipPos;
261938
+ },
261939
+ set: function set(value) {
261940
+ if (this._poperTipPos !== value) {
261941
+ this._poperTipPos = value;
261942
+ }
261943
+ }
261944
+ }, {
261945
+ key: "isUseTipText",
261946
+ get: function get() {
261947
+ return this._isUseTipText;
261948
+ },
261949
+ set: function set(value) {
261950
+ if (this._isUseTipText !== value) {
261951
+ this._isUseTipText = value;
261952
+ }
261953
+ }
261954
+ /**
261955
+ * @param node moveNode
261956
+ * @param moveType
261957
+ */
261958
+ }, {
261959
+ key: "setNode",
261960
+ value: function setNode(node, moveType) {
261961
+ this._creatorIndex = -1;
261962
+ this._deleterIndex = -1;
261963
+ this._tipText = [];
261964
+ this._id = [];
261965
+ // if(moveType === DmouseEventType.detOut) {
261966
+ // return;
261967
+ // }
261968
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
261969
+ if (node instanceof TextNode/* TextNode */.R) {
261970
+ if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
261971
+ this._creatorIndex = hoEditorFactory.docTree.styles[node.styleIndex].creatorIndex;
261972
+ this._deleterIndex = hoEditorFactory.docTree.styles[node.styleIndex].deleterIndex;
261973
+ // if(moveType === DmouseEventType.detOver) {
261974
+ // console.log(this._creatorIndex, this._deleterIndex);
261975
+ // console.log(HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.userHistories);
261976
+ // }
261977
+ if (this._creatorIndex !== undefined && this._creatorIndex >= 0) {
261978
+ var userHistories = hoEditorFactory.docTree.userHistories[this._creatorIndex];
261979
+ this._moveType = moveType;
261980
+ this._tipText.push("".concat(userHistories.editDate, " ").concat(userHistories.name, "\u521B\u5EFA"));
261981
+ this._id.push(userHistories.id);
261982
+ this.computedPosition(node.drawNodes[0]);
261983
+ }
261984
+ if (this._deleterIndex !== undefined && this._deleterIndex >= 0) {
261985
+ var _userHistories = hoEditorFactory.docTree.userHistories[this._deleterIndex];
261986
+ this._moveType = moveType;
261987
+ this._tipText.push("".concat(_userHistories.editDate, " ").concat(_userHistories.name, "\u5220\u9664"));
261988
+ this._id.push(_userHistories.id);
261989
+ this.computedPosition(node.drawNodes[0]);
261990
+ }
261991
+ } else {
261992
+ if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
261993
+ this._moveType = moveType;
261994
+ if (node.parentNode.tipText) {
261995
+ var text = JSON.stringify(node.parentNode.tipText);
261996
+ text = text.slice(1, text.length - 1);
261997
+ var arr = text.split("\\n").filter(function (v) {
261998
+ return v;
261999
+ });
262000
+ this._tipText = arr;
262001
+ } else {
262002
+ this._tipText.push('');
262003
+ }
262004
+ this._id.push(node.parentNode.id);
262005
+ this.computedPosition(node.drawNodes[0]);
262006
+ }
262007
+ }
262008
+ } else if (node instanceof MarkNode/* MarkNode */.j) {
262009
+ if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
262010
+ this._moveType = moveType;
262011
+ if (node.parentNode.tipText) {
262012
+ var _text = JSON.stringify(node.parentNode.tipText);
262013
+ _text = _text.slice(1, _text.length - 1);
262014
+ var _arr = _text.split("\\n").filter(function (v) {
262015
+ return v;
262016
+ });
262017
+ this._tipText = _arr;
262018
+ } else {
262019
+ this._tipText.push('');
262020
+ }
262021
+ this._id.push(node.parentNode.id);
262022
+ this.computedPosition(node.drawNodes[0]);
262023
+ }
262024
+ } else {
262025
+ if (this._isUseTipText && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
262026
+ if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
262027
+ this._moveType = moveType;
262028
+ if (node.tipText) {
262029
+ var _text2 = JSON.stringify(node.tipText);
262030
+ _text2 = _text2.slice(1, _text2.length - 1);
262031
+ var _arr2 = _text2.split("\\n").filter(function (v) {
262032
+ return v;
262033
+ });
262034
+ this._tipText = _arr2;
262035
+ } else {
262036
+ this._tipText.push('');
262037
+ }
262038
+ this._id.push(node.id);
262039
+ this.computedPosition(node.drawNodes[0]);
262040
+ }
262041
+ }
262042
+ }
262043
+ }
262044
+ }, {
262045
+ key: "NodeClick",
262046
+ value: function NodeClick(node, moveType) {
262047
+ var _this = this;
262048
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
262049
+ if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh && moveType === DmouseEventType.detClick) {
262050
+ var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
262051
+ var nodeClickEvent = new NodeClickEvent/* NodeClickEvent */.W(node, "click");
262052
+ hoEditorFactory.docTree.nodeClick(nodeClickEvent);
262053
+ node.drawNodes[0].parent = drawLine;
262054
+ }
262055
+ if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
262056
+ var paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
262057
+ if (paragraphNode && paragraphNode.customProperty) {
262058
+ var customProperty = paragraphNode.customProperty;
262059
+ var paragraphTip = ['男', '女'].includes(customProperty.sex) || customProperty.age && customProperty.age.select == '隐藏';
262060
+ var arr = [];
262061
+ if (paragraphTip) {
262062
+ if (['男', '女'].includes(customProperty.sex)) {
262063
+ arr.push("\u60A3\u8005\u4E3A<span style=\"color:#f00\"> ".concat(customProperty.sex, " </span>\u6027\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
262064
+ }
262065
+ if (customProperty.age && customProperty.age.select == '隐藏') {
262066
+ arr.push("\u60A3\u8005\u5E74\u9F84\u5728<span style=\"color:#f00\"> ".concat(customProperty.age.minAge, " </span>\u5C81\u5230<span style=\"color:#f00\"> ").concat(customProperty.age.maxAge, " </span>\u4E4B\u95F4\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
262067
+ }
262068
+ if (arr.length > 0) {
262069
+ setTimeout(function () {
262070
+ _this.createParagraphTipHTML(hoEditorFactory.drawTree.caret, arr);
262071
+ }, 0);
262072
+ }
262073
+ }
262074
+ }
262075
+ }
262076
+ if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psEdit */.Dh.psEdit) {
262077
+ if (node.errorIndex !== undefined) {
262078
+ var text = hoEditorFactory.drawTree.errorsMap.get(node.errorIndex);
262079
+ if (Array.isArray(text) && text.length > 0) {
262080
+ setTimeout(function () {
262081
+ _this.createParagraphTipHTML(hoEditorFactory.drawTree.caret, text);
262082
+ }, 0);
262083
+ }
262084
+ }
262085
+ }
262086
+ }
262087
+ }, {
262088
+ key: "createParagraphTipHTML",
262089
+ value: function createParagraphTipHTML(caret, text) {
262090
+ var _caret$cursor$parentN;
262091
+ var tipdiv = document.createElement('div');
262092
+ tipdiv.id = "ho_paragrapgh_tip";
262093
+ tipdiv.style.left = caret.X + "px";
262094
+ tipdiv.style.top = caret.Y + caret.height + "px";
262095
+ tipdiv.innerHTML = text.join("<br />");
262096
+ (_caret$cursor$parentN = caret.cursor.parentNode) === null || _caret$cursor$parentN === void 0 ? void 0 : _caret$cursor$parentN.appendChild(tipdiv);
262097
+ }
262098
+ /**
262099
+ * @param node moveNode
262100
+ */
262101
+ }, {
262102
+ key: "computedPosition",
262103
+ value: function computedPosition(nodePos) {
262104
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
262105
+ var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(nodePos);
262106
+ if (drawLine) {
262107
+ var docPos = drawLine.localToGlobal(nodePos.x, nodePos.y === 0 ? drawLine.dHeight : nodePos.y);
262108
+ this._pageIndex = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.activePage.pageIndex;
262109
+ this._poperTipPos.width = nodePos.dWidth ? nodePos.dWidth : 0; // // 目标元素 width
262110
+ this._poperTipPos.height = drawLine.dHeight; // 目标元素所在行的 height
262111
+ this._poperTipPos.pageIndex = this._pageIndex; // 目标元素所在页
262112
+ this._poperTipPos.moveType = this._moveType;
262113
+ this._poperTipPos.y = docPos.y / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + 5; // 目标元素所在行的 y
262114
+ this._poperTipPos.x = docPos.x / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY; // 目标元素所在行的 x
262115
+ }
262116
+ }
262117
+ }]);
262118
+ return NodeMouseMoveEvent;
262119
+ }();
262120
+ (0,esm_defineProperty/* default */.Z)(NodeMouseMoveEvent, "eventName", "nodeMouseMove");
262044
262121
  // EXTERNAL MODULE: ./src/editor/runTimeInfo/UserInfo.ts
262045
262122
  var UserInfo = __webpack_require__(14871);
262046
262123
  ;// CONCATENATED MODULE: ./src/editor/runTimeInfo/Option.ts
@@ -263251,6 +263328,8 @@ var PageCountNode = __webpack_require__(66034);
263251
263328
  var PageNumNode = __webpack_require__(10719);
263252
263329
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ControlNode.ts
263253
263330
  var ControlNode = __webpack_require__(91105);
263331
+ // EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
263332
+ var SelectRange = __webpack_require__(53901);
263254
263333
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
263255
263334
  var TableFormula = __webpack_require__(90832);
263256
263335
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js
@@ -263330,6 +263409,8 @@ var SeparateCharNode = __webpack_require__(39385);
263330
263409
  var LabelNode = __webpack_require__(95089);
263331
263410
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/GestationNode.ts
263332
263411
  var GestationNode = __webpack_require__(73632);
263412
+ // EXTERNAL MODULE: ./src/editor/draw/StagePosition.ts
263413
+ var StagePosition = __webpack_require__(63074);
263333
263414
  ;// CONCATENATED MODULE: ./src/editor/utils/StructureConvert.ts
263334
263415
 
263335
263416
 
@@ -263410,6 +263491,9 @@ var GestationNode = __webpack_require__(73632);
263410
263491
 
263411
263492
 
263412
263493
 
263494
+
263495
+
263496
+
263413
263497
 
263414
263498
 
263415
263499
 
@@ -263430,12 +263514,16 @@ var StructureConvert = /*#__PURE__*/function () {
263430
263514
  (0,esm_classCallCheck/* default */.Z)(this, StructureConvert);
263431
263515
  (0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
263432
263516
  (0,esm_defineProperty/* default */.Z)(this, "_comments", []);
263517
+ (0,esm_defineProperty/* default */.Z)(this, "_errors", []);
263433
263518
  (0,esm_defineProperty/* default */.Z)(this, "_markNodes", []);
263519
+ (0,esm_defineProperty/* default */.Z)(this, "_errTextNodes", []);
263434
263520
  (0,esm_defineProperty/* default */.Z)(this, "_superiorSign", []);
263435
263521
  this._hoEditorFactoryID = hoEditorFactoryID;
263436
263522
  this._comments = [];
263437
263523
  this._markNodes = [];
263438
263524
  this._superiorSign = [];
263525
+ this._errors = [];
263526
+ this._errTextNodes = [];
263439
263527
  }
263440
263528
  (0,esm_createClass/* default */.Z)(StructureConvert, [{
263441
263529
  key: "nodes2Html",
@@ -264282,7 +264370,8 @@ var StructureConvert = /*#__PURE__*/function () {
264282
264370
  styles: root.styles,
264283
264371
  main: root.main.node,
264284
264372
  header: headerDocTree,
264285
- footer: footerDocTree
264373
+ footer: footerDocTree,
264374
+ errors: root.errors
264286
264375
  };
264287
264376
  }
264288
264377
  return null;
@@ -264767,6 +264856,11 @@ var StructureConvert = /*#__PURE__*/function () {
264767
264856
  var comments = xx.comments;
264768
264857
  this._comments = comments.comment;
264769
264858
  }
264859
+ this._errors = [];
264860
+ var errors = xx.errors;
264861
+ if (errors) {
264862
+ this._errors = errors.error;
264863
+ }
264770
264864
  // console.time("histories");
264771
264865
  hoEditorFactory.docTree.userHistories = [];
264772
264866
  var histories = xx.userHistories;
@@ -265145,6 +265239,7 @@ var StructureConvert = /*#__PURE__*/function () {
265145
265239
  value: function openFile(file, callback, test) {
265146
265240
  var _this3 = this;
265147
265241
  this._superiorSign = [];
265242
+ this._errTextNodes = [];
265148
265243
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
265149
265244
  var reader = new FileReader();
265150
265245
  // 读取文件
@@ -265198,6 +265293,7 @@ var StructureConvert = /*#__PURE__*/function () {
265198
265293
  key: "openXml",
265199
265294
  value: function openXml(xml, callback, isDelBlockLine, isClearSign) {
265200
265295
  var _this4 = this;
265296
+ this._errTextNodes = [];
265201
265297
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
265202
265298
  this._superiorSign = [];
265203
265299
  hoEditorFactory.isThrowError = false;
@@ -265271,6 +265367,9 @@ var StructureConvert = /*#__PURE__*/function () {
265271
265367
  if (aNode instanceof SignNode/* SignNode */.N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(aNode.customProperty.bce01)) {
265272
265368
  _this5._superiorSign[0] = aNode;
265273
265369
  }
265370
+ if (aNode instanceof TextNode/* TextNode */.R && aNode.errorIndex != undefined) {
265371
+ _this5._errTextNodes.push(aNode);
265372
+ }
265274
265373
  }
265275
265374
  };
265276
265375
  // console.time("openJson2Doc--headersArray");
@@ -265454,6 +265553,67 @@ var StructureConvert = /*#__PURE__*/function () {
265454
265553
  // );
265455
265554
  // }
265456
265555
  }
265556
+ //错别字检测
265557
+ var errors = [];
265558
+ if (this._errors.length === undefined) {
265559
+ errors = Array(this._errors);
265560
+ } else {
265561
+ errors = this._errors;
265562
+ }
265563
+ if (errors.length > 0) {
265564
+ for (var m = 0; m < errors.length; m++) {
265565
+ var tips = [];
265566
+ var error = errors[m];
265567
+ var datas = error.data;
265568
+ if (datas.length == undefined) {
265569
+ datas = Array(datas);
265570
+ }
265571
+ for (var d = 0; d < datas.length; d++) {
265572
+ var data = datas[d];
265573
+ tips.push("错误:" + data.wrong + ",正确:" + data.correct);
265574
+ }
265575
+ hoEditorFactory.drawTree.errorsMap.set(m, tips);
265576
+ }
265577
+ var selectRangeArr = [];
265578
+ for (var n = 0; n < this._errTextNodes.length; n++) {
265579
+ var node = this._errTextNodes[n];
265580
+ var errIndex = this._errTextNodes[n].errorIndex;
265581
+ var _error = errors[errIndex];
265582
+ var datass = _error.data;
265583
+ if (datass.length == undefined) {
265584
+ datass = Array(datass);
265585
+ }
265586
+ for (var _t = 0; _t < datass.length; _t++) {
265587
+ var adata = datass[_t];
265588
+ var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
265589
+ var eindexArr = ePath.split("/");
265590
+ var eindex = eindexArr[eindexArr.length - 1];
265591
+ if (Number(adata.start) < 0 || Number(adata.start) > Number(eindex)) {
265592
+ message/* default.warn */.Z.warn("文本节点(" + node.text + ')的起始位置有误:' + adata.start);
265593
+ return;
265594
+ }
265595
+ if (Number(adata.end) < 0 || Number(adata.end) > Number(eindex)) {
265596
+ message/* default.warn */.Z.warn("文本节点(" + node.text + ')的结束位置有误:' + adata.end);
265597
+ return;
265598
+ }
265599
+ var sPath = hoEditorFactory.docTree.getNodeFirstPath(node);
265600
+ var pathArr = sPath.split("/");
265601
+ pathArr[pathArr.length - 1] = adata.start;
265602
+ var rsPath = pathArr.join("/");
265603
+ pathArr[pathArr.length - 1] = adata.end;
265604
+ var rePath = pathArr.join("/");
265605
+ var pStartPoint = StagePosition/* StagePosition.getStagePosByPath */.M.getStagePosByPath(this._hoEditorFactoryID, rsPath);
265606
+ var pEndPoint = StagePosition/* StagePosition.getStagePosByPath */.M.getStagePosByPath(this._hoEditorFactoryID, rePath);
265607
+ var selectRange = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID);
265608
+ selectRange.spStart = pStartPoint;
265609
+ selectRange.spEnd = pEndPoint;
265610
+ selectRangeArr.push(selectRange);
265611
+ }
265612
+ }
265613
+ if (selectRangeArr.length > 0) {
265614
+ hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, true, true);
265615
+ }
265616
+ }
265457
265617
  //模板加载完成后 开始加载数据集
265458
265618
  // if (test) {
265459
265619
  // const data =hoEditorFactory.testDataSet.getTestJsonData();
@@ -266658,8 +266818,6 @@ var web_url_search_params = __webpack_require__(41637);
266658
266818
  var NodeChangingEvent = __webpack_require__(10574);
266659
266819
  // EXTERNAL MODULE: ./src/plugins/pretty-data.js
266660
266820
  var pretty_data = __webpack_require__(49049);
266661
- // EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
266662
- var SelectRange = __webpack_require__(53901);
266663
266821
  // EXTERNAL MODULE: ./src/plugins/type.ts
266664
266822
  var type = __webpack_require__(41542);
266665
266823
  // EXTERNAL MODULE: ./src/editor/undoRedo/NodeDeleteUndoUnit.ts
@@ -266670,8 +266828,6 @@ var NodesDeleteUndoUnit = __webpack_require__(71144);
266670
266828
  var NodeInsertUndoUnit = __webpack_require__(64465);
266671
266829
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MedicalExpressionNode.ts
266672
266830
  var MedicalExpressionNode = __webpack_require__(80177);
266673
- // EXTERNAL MODULE: ./src/editor/draw/StagePosition.ts
266674
- var StagePosition = __webpack_require__(63074);
266675
266831
  // EXTERNAL MODULE: ./src/commonParamList.ts
266676
266832
  var commonParamList = __webpack_require__(30794);
266677
266833
  ;// CONCATENATED MODULE: ./src/editor/VueController.ts
@@ -271440,7 +271596,7 @@ var VueController = /*#__PURE__*/function () {
271440
271596
  }, {
271441
271597
  key: "getBase64",
271442
271598
  value: function () {
271443
- var _getBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee8(type) {
271599
+ var _getBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee8(type, callback) {
271444
271600
  var _hoEditorFactory2$vue, _hoEditorFactory2, curDomRange, endPath, node, htmlText, _hoEditorFactory3$vue, _hoEditorFactory3, _curDomRange2, _endPath, _node, base64;
271445
271601
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee8$(_context8) {
271446
271602
  while (1) {
@@ -271479,7 +271635,7 @@ var VueController = /*#__PURE__*/function () {
271479
271635
  return this.deleteNode(_node);
271480
271636
  case 21:
271481
271637
  _context8.next = 23;
271482
- return _hoEditorFactory3.printController.createBase64();
271638
+ return _hoEditorFactory3.printController.createBase64(callback);
271483
271639
  case 23:
271484
271640
  base64 = _context8.sent;
271485
271641
  return _context8.abrupt("return", base64);
@@ -271490,7 +271646,7 @@ var VueController = /*#__PURE__*/function () {
271490
271646
  }
271491
271647
  }, _callee8, this);
271492
271648
  }));
271493
- function getBase64(_x21) {
271649
+ function getBase64(_x21, _x22) {
271494
271650
  return _getBase.apply(this, arguments);
271495
271651
  }
271496
271652
  return getBase64;
@@ -276255,7 +276411,7 @@ var PrintController = /*#__PURE__*/function () {
276255
276411
  }, {
276256
276412
  key: "createBase64",
276257
276413
  value: function () {
276258
- var _createBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2() {
276414
+ var _createBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(callback) {
276259
276415
  var _this2 = this;
276260
276416
  var hoEditorFactory, path, beforePrintStatus, xml, orientation, format, options, hPromise, base64;
276261
276417
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
@@ -276298,24 +276454,30 @@ var PrintController = /*#__PURE__*/function () {
276298
276454
  });
276299
276455
  });
276300
276456
  _context2.next = 17;
276301
- return hPromise.then(function (resolve) {
276457
+ return hPromise.then(function (pageNumber) {
276302
276458
  // 恢复文档状态 和 内容;
276303
276459
  hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
276304
276460
  hoEditorFactory.vueController.openXml(xml);
276305
276461
  // this.PDF.deletePage(1);
276306
- var otherPageNumber = _this2.PDF.internal.getNumberOfPages() - hoEditorFactory.drawTree.drawPages.length;
276307
- if (otherPageNumber >= 1) {
276462
+ var otherPageNumber = _this2.PDF.internal.getNumberOfPages() - pageNumber;
276463
+ if (otherPageNumber >= 2) {
276308
276464
  for (var i = 0; i < otherPageNumber; i++) {
276309
276465
  var _this2$PDF;
276310
276466
  (_this2$PDF = _this2.PDF) === null || _this2$PDF === void 0 ? void 0 : _this2$PDF.deletePage(1);
276311
276467
  }
276312
276468
  console.warn("\u4ECE\u5F00\u59CB\u5220\u6389".concat(otherPageNumber, "\u9875\u7A7A\u767D\u9875"));
276313
- } else if (otherPageNumber <= 0) {
276469
+ } else if (otherPageNumber <= 1) {
276314
276470
  var _this2$PDF2;
276315
276471
  (_this2$PDF2 = _this2.PDF) === null || _this2$PDF2 === void 0 ? void 0 : _this2$PDF2.deletePage(1);
276316
- console.warn("otherPageNumber <= 0 \u65F6\u4ECE\u5F00\u59CB\u5220\u63891\u9875\u7A7A\u767D\u9875");
276472
+ console.warn("".concat(otherPageNumber, " <= 0 \u65F6\u4ECE\u5F00\u59CB\u5220\u63891\u9875\u7A7A\u767D\u9875"));
276317
276473
  }
276318
276474
  return new Promise(function (resolves) {
276475
+ if (callback) {
276476
+ callback && callback({
276477
+ page: pageNumber,
276478
+ pdf: _this2.PDF.output('datauristring').replace(/^data:application\/pdf;filename=generated.pdf;base64,/, '')
276479
+ });
276480
+ }
276319
276481
  resolves(_this2.PDF.output('datauristring'));
276320
276482
  });
276321
276483
  });
@@ -276338,7 +276500,7 @@ var PrintController = /*#__PURE__*/function () {
276338
276500
  }
276339
276501
  }, _callee2, this);
276340
276502
  }));
276341
- function createBase64() {
276503
+ function createBase64(_x) {
276342
276504
  return _createBase.apply(this, arguments);
276343
276505
  }
276344
276506
  return createBase64;
@@ -276404,7 +276566,7 @@ var PrintController = /*#__PURE__*/function () {
276404
276566
  orientation: orientation,
276405
276567
  unit: 'px',
276406
276568
  format: format,
276407
- hotfixes: ["px_scaling"],
276569
+ hotfixes: ['px_scaling'],
276408
276570
  compress: true
276409
276571
  };
276410
276572
  _this3.PDF = null;
@@ -276448,9 +276610,6 @@ var PrintController = /*#__PURE__*/function () {
276448
276610
  });
276449
276611
  return;
276450
276612
  }
276451
- // if (hoEditorFactory.isHideComments) {
276452
- // hoEditorFactory.vueController.hideComments(true);
276453
- // }
276454
276613
  var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
276455
276614
  for (var k = 0; k < drawMainDocs.length; k++) {
276456
276615
  for (var s = drawMainDocs[k].children.length - 1; s >= 0; s--) {
@@ -276497,7 +276656,7 @@ var PrintController = /*#__PURE__*/function () {
276497
276656
  }
276498
276657
  }, _callee3, null, [[0, 9]]);
276499
276658
  }));
276500
- return function (_x, _x2) {
276659
+ return function (_x2, _x3) {
276501
276660
  return _ref.apply(this, arguments);
276502
276661
  };
276503
276662
  }());
@@ -276683,7 +276842,7 @@ var PrintController = /*#__PURE__*/function () {
276683
276842
  }
276684
276843
  }, _callee4);
276685
276844
  }));
276686
- return function (_x5) {
276845
+ return function (_x6) {
276687
276846
  return _ref2.apply(this, arguments);
276688
276847
  };
276689
276848
  }());
@@ -276762,7 +276921,7 @@ var PrintController = /*#__PURE__*/function () {
276762
276921
  }
276763
276922
  }, _callee5, this);
276764
276923
  }));
276765
- function mergeXmlToPrintPDFNew(_x3, _x4) {
276924
+ function mergeXmlToPrintPDFNew(_x4, _x5) {
276766
276925
  return _mergeXmlToPrintPDFNew.apply(this, arguments);
276767
276926
  }
276768
276927
  return mergeXmlToPrintPDFNew;
@@ -276894,7 +277053,7 @@ var PrintController = /*#__PURE__*/function () {
276894
277053
  }
276895
277054
  }, _callee8, this);
276896
277055
  }));
276897
- function pintAllToPDF(_x6, _x7) {
277056
+ function pintAllToPDF(_x7, _x8) {
276898
277057
  return _pintAllToPDF.apply(this, arguments);
276899
277058
  }
276900
277059
  return pintAllToPDF;