hoeditor-web 3.1.10 → 3.1.12

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.
@@ -3596,7 +3596,7 @@ var component = (0,componentNormalizer/* default */.Z)(
3596
3596
 
3597
3597
  /***/ }),
3598
3598
 
3599
- /***/ 62814:
3599
+ /***/ 72727:
3600
3600
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3601
3601
 
3602
3602
  "use strict";
@@ -3608,7 +3608,7 @@ __webpack_require__.d(__webpack_exports__, {
3608
3608
  "default": function() { return /* binding */ BarCodes; }
3609
3609
  });
3610
3610
 
3611
- ;// 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/barCode/BarCodes.vue?vue&type=template&id=15bd5089&
3611
+ ;// 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/barCode/BarCodes.vue?vue&type=template&id=15c46fec&
3612
3612
  var render = function render() {
3613
3613
  var _vm = this,
3614
3614
  _c = _vm._self._c;
@@ -3842,9 +3842,9 @@ var HOEditorFactorys = __webpack_require__(74089);
3842
3842
  // this.dataSource = this.hoEditorProvider.getDataSource();
3843
3843
 
3844
3844
  if (this.controlStatus === 'add') {
3845
- vueController.insertBarcode(this.controlStatus, this.id, this.textContent, this.isDisplayText, this.barcode.src, width, height, '', this.innerIdentifier);
3845
+ vueController.insertBarcode(this.controlStatus, this.id, this.textContent, this.isDisplayText, this.barcode.src, width, height, this.innerIdentifier);
3846
3846
  } else if (this.controlStatus === 'update') {
3847
- vueController.updateBarcode(this.id, this.textContent, this.isDisplayText, this.barcode.src, width, height, this.name, this.innerIdentifier);
3847
+ vueController.updateBarcode(this.id, this.textContent, this.isDisplayText, this.barcode.src, width, height, this.innerIdentifier);
3848
3848
  }
3849
3849
  this.handleClose();
3850
3850
  },
@@ -3859,10 +3859,10 @@ var HOEditorFactorys = __webpack_require__(74089);
3859
3859
  });
3860
3860
  ;// CONCATENATED MODULE: ./src/components/controls/barCode/BarCodes.vue?vue&type=script&lang=js&
3861
3861
  /* harmony default export */ var barCode_BarCodesvue_type_script_lang_js_ = (BarCodesvue_type_script_lang_js_);
3862
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=15bd5089&prod&lang=less&
3862
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=15c46fec&prod&lang=less&
3863
3863
  // extracted by mini-css-extract-plugin
3864
3864
 
3865
- ;// CONCATENATED MODULE: ./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=15bd5089&prod&lang=less&
3865
+ ;// CONCATENATED MODULE: ./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=15c46fec&prod&lang=less&
3866
3866
 
3867
3867
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
3868
3868
  var componentNormalizer = __webpack_require__(70713);
@@ -13529,7 +13529,7 @@ var component = (0,componentNormalizer/* default */.Z)(
13529
13529
 
13530
13530
  /***/ }),
13531
13531
 
13532
- /***/ 68763:
13532
+ /***/ 23875:
13533
13533
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13534
13534
 
13535
13535
  "use strict";
@@ -13543,7 +13543,7 @@ __webpack_require__.d(__webpack_exports__, {
13543
13543
 
13544
13544
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
13545
13545
  var es_function_name = __webpack_require__(68309);
13546
- ;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=ddf4f372&
13546
+ ;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=53dc81b2&
13547
13547
 
13548
13548
  var render = function render() {
13549
13549
  var _vm = this,
@@ -14252,7 +14252,7 @@ var render = function render() {
14252
14252
  };
14253
14253
  var staticRenderFns = [];
14254
14254
 
14255
- ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=ddf4f372&
14255
+ ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=53dc81b2&
14256
14256
 
14257
14257
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
14258
14258
  var objectSpread2 = __webpack_require__(63442);
@@ -14516,6 +14516,7 @@ var defaultBox = {
14516
14516
  v.groupName = _this2.groupName;
14517
14517
  v.controlStyle = _this2.controlType == 'RadioBox' ? 'RadioBox' : 'CheckBox';
14518
14518
  v.groupHasOptions = _this2.groupHasOptions;
14519
+ v.readType = v.readType ? 1 : 0;
14519
14520
  if (v.id === _this2.tableRadio) v.isSelected = true;
14520
14521
  if (v.text == '') return; // 处理单复选文本值为空的情况
14521
14522
  _this2.vueController.insertRadioAndCheckBox('add', JSON.stringify(v));
@@ -14526,6 +14527,7 @@ var defaultBox = {
14526
14527
  v.groupName = _this2.groupName;
14527
14528
  v.controlStyle = _this2.controlType == 'RadioBox' ? 'RadioBox' : 'CheckBox';
14528
14529
  v.groupHasOptions = _this2.groupHasOptions;
14530
+ v.readType = v.readType ? 1 : 0;
14529
14531
  if (v.id === _this2.tableRadio) v.isSelected = true;
14530
14532
  if (v.text == '') return; // 处理单复选文本值为空的情况
14531
14533
  if (v.tableType == 'update') {
@@ -14553,10 +14555,10 @@ var defaultBox = {
14553
14555
  });
14554
14556
  ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
14555
14557
  /* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_js_ = (RadioCheckboxvue_type_script_lang_js_);
14556
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=ddf4f372&prod&lang=less&
14558
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=53dc81b2&prod&lang=less&
14557
14559
  // extracted by mini-css-extract-plugin
14558
14560
 
14559
- ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=ddf4f372&prod&lang=less&
14561
+ ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=53dc81b2&prod&lang=less&
14560
14562
 
14561
14563
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
14562
14564
  var componentNormalizer = __webpack_require__(70713);
@@ -37863,7 +37865,7 @@ var Print = /*#__PURE__*/function () {
37863
37865
  key: "printToPDF",
37864
37866
  value: function () {
37865
37867
  var _printToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(hoEditorFactoryID, PDF, type, fileName, reslove, positionY, format, repeatPrintToA5) {
37866
- var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, pageSize, last, pageNumber, startPageNumOver, _iterator, _step, _children$1$drawItems, _children$0$drawItems, index, cpage, children, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, ctx, _cpage$drawDomLevel, _cpage$drawDomLevel2, _cpage$drawDomLevel3, _cpage$drawDomLevel4, _cpage$drawDomLevel5, _cpage$drawDomLevel6, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s, _svgBox, printStyle, exportHtml, url, link, _last, otherPageNumber, i, name;
37868
+ var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, pageSize, last, pageNumber, startPageNumOver, _iterator, _step, _children$1$drawItems, _children$0$drawItems, index, cpage, children, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, ctx, _cpage$drawDomLevel, _cpage$drawDomLevel2, _cpage$drawDomLevel3, _cpage$drawDomLevel4, _cpage$drawDomLevel5, _cpage$drawDomLevel6, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s, _last, _svgBox, printStyle, exportHtml, url, link, otherPageNumber, i, name;
37867
37869
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
37868
37870
  while (1) switch (_context3.prev = _context3.next) {
37869
37871
  case 0:
@@ -38107,18 +38109,31 @@ var Print = /*#__PURE__*/function () {
38107
38109
  console.timeEnd('绘制svg和生成pdf');
38108
38110
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
38109
38111
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
38112
+ if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
38113
+ _context3.next = 82;
38114
+ break;
38115
+ }
38116
+ _last = hoEditorFactory.printStatus.printRecord.last();
38117
+ if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
38118
+ _context3.next = 82;
38119
+ break;
38120
+ }
38121
+ message/* default */.Z.info('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录');
38122
+ reslove && reslove('printend');
38123
+ return _context3.abrupt("return");
38124
+ case 82:
38110
38125
  if (!(type === 'html')) {
38111
- _context3.next = 93;
38126
+ _context3.next = 101;
38112
38127
  break;
38113
38128
  }
38114
38129
  if (!(svgBox && svgBox.childNodes.length === 0)) {
38115
- _context3.next = 81;
38130
+ _context3.next = 87;
38116
38131
  break;
38117
38132
  }
38118
38133
  message/* default */.Z.info('无新增内容');
38119
38134
  reslove && reslove('printend');
38120
38135
  return _context3.abrupt("return");
38121
- case 81:
38136
+ case 87:
38122
38137
  printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
38123
38138
  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 ");
38124
38139
  url = window.URL.createObjectURL(new Blob([exportHtml], {
@@ -38135,20 +38150,7 @@ var Print = /*#__PURE__*/function () {
38135
38150
  }, 100);
38136
38151
  reslove && reslove('printend');
38137
38152
  return _context3.abrupt("return");
38138
- case 93:
38139
- if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
38140
- _context3.next = 99;
38141
- break;
38142
- }
38143
- _last = hoEditorFactory.printStatus.printRecord.last();
38144
- if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
38145
- _context3.next = 99;
38146
- break;
38147
- }
38148
- message/* default */.Z.info('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录');
38149
- reslove && reslove('printend');
38150
- return _context3.abrupt("return");
38151
- case 99:
38153
+ case 101:
38152
38154
  if (type === 'pdf') {
38153
38155
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
38154
38156
  PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
@@ -38170,8 +38172,9 @@ var Print = /*#__PURE__*/function () {
38170
38172
  name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
38171
38173
  PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.printSilently);
38172
38174
  }
38175
+ case 102:
38173
38176
  reslove && reslove('printend');
38174
- case 101:
38177
+ case 103:
38175
38178
  case "end":
38176
38179
  return _context3.stop();
38177
38180
  }
@@ -38403,7 +38406,7 @@ var Print = /*#__PURE__*/function () {
38403
38406
  }, {
38404
38407
  key: "printAllNew",
38405
38408
  value: function () {
38406
- var _printAllNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(hoEditorFactoryID, reslove, PDF, position, isPrintFirstDoc) {
38409
+ var _printAllNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(hoEditorFactoryID, reslove, PDF, position, isPrintFirstDoc, pageNumber) {
38407
38410
  var hoEditorFactory, a4Size, svgBox, last, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, firstPageIndex, _iterator4, _step4, _cpage$drawDomLevel14, index, cpage, children, _cpage$drawDomLevel12, pageSize, ctx, _cpage$drawDomLevel13, _ctx7, _ctx6, lastPos;
38408
38411
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context6) {
38409
38412
  while (1) switch (_context6.prev = _context6.next) {
@@ -38452,7 +38455,7 @@ var Print = /*#__PURE__*/function () {
38452
38455
  _iterator4.s();
38453
38456
  case 19:
38454
38457
  if ((_step4 = _iterator4.n()).done) {
38455
- _context6.next = 55;
38458
+ _context6.next = 56;
38456
38459
  break;
38457
38460
  }
38458
38461
  index = _step4.value;
@@ -38461,13 +38464,13 @@ var Print = /*#__PURE__*/function () {
38461
38464
  break;
38462
38465
  }
38463
38466
  message/* default */.Z.info('请进行翻页');
38464
- return _context6.abrupt("continue", 53);
38467
+ return _context6.abrupt("continue", 54);
38465
38468
  case 24:
38466
38469
  if (!(index < firstPageIndex)) {
38467
38470
  _context6.next = 26;
38468
38471
  break;
38469
38472
  }
38470
- return _context6.abrupt("continue", 53);
38473
+ return _context6.abrupt("continue", 54);
38471
38474
  case 26:
38472
38475
  last = index;
38473
38476
  cpage = hoEditorFactory.drawTree.drawPages[index];
@@ -38494,7 +38497,7 @@ var Print = /*#__PURE__*/function () {
38494
38497
  _context6.next = 33;
38495
38498
  break;
38496
38499
  }
38497
- return _context6.abrupt("continue", 53);
38500
+ return _context6.abrupt("continue", 54);
38498
38501
  case 33:
38499
38502
  if (!hoEditorFactory.isUseImagePrint) {
38500
38503
  _context6.next = 46;
@@ -38548,22 +38551,23 @@ var Print = /*#__PURE__*/function () {
38548
38551
  case 51:
38549
38552
  _ctx6 = null;
38550
38553
  case 52:
38554
+ if (pageNumber) pageNumber.value++;
38551
38555
  index > 0 && ((_cpage$drawDomLevel14 = cpage.drawDomLevel) === null || _cpage$drawDomLevel14 === void 0 ? void 0 : _cpage$drawDomLevel14.clearStage());
38552
- case 53:
38556
+ case 54:
38553
38557
  _context6.next = 19;
38554
38558
  break;
38555
- case 55:
38556
- _context6.next = 60;
38559
+ case 56:
38560
+ _context6.next = 61;
38557
38561
  break;
38558
- case 57:
38559
- _context6.prev = 57;
38562
+ case 58:
38563
+ _context6.prev = 58;
38560
38564
  _context6.t0 = _context6["catch"](17);
38561
38565
  _iterator4.e(_context6.t0);
38562
- case 60:
38563
- _context6.prev = 60;
38566
+ case 61:
38567
+ _context6.prev = 61;
38564
38568
  _iterator4.f();
38565
- return _context6.finish(60);
38566
- case 63:
38569
+ return _context6.finish(61);
38570
+ case 64:
38567
38571
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
38568
38572
  hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
38569
38573
  }
@@ -38577,13 +38581,13 @@ var Print = /*#__PURE__*/function () {
38577
38581
  }
38578
38582
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
38579
38583
  reslove();
38580
- case 67:
38584
+ case 68:
38581
38585
  case "end":
38582
38586
  return _context6.stop();
38583
38587
  }
38584
- }, _callee5, null, [[17, 57, 60, 63]]);
38588
+ }, _callee5, null, [[17, 58, 61, 64]]);
38585
38589
  }));
38586
- function printAllNew(_x16, _x17, _x18, _x19, _x20) {
38590
+ function printAllNew(_x16, _x17, _x18, _x19, _x20, _x21) {
38587
38591
  return _printAllNew.apply(this, arguments);
38588
38592
  }
38589
38593
  return printAllNew;
@@ -41222,7 +41226,8 @@ var DocController = /*#__PURE__*/function () {
41222
41226
  key: "insertBarcode",
41223
41227
  value: function insertBarcode(operType, curDomRange, id, textContent, isDisplayText, imagePath, width, height,
41224
41228
  //bandDataSource: string,
41225
- name, innerIdentifier) {
41229
+ //name: string,
41230
+ innerIdentifier) {
41226
41231
  var domRange = curDomRange.normalize();
41227
41232
  var startPath = domRange.endPath;
41228
41233
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
@@ -41239,7 +41244,9 @@ var DocController = /*#__PURE__*/function () {
41239
41244
  }
41240
41245
  var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
41241
41246
  var rootPath = hoEditorFactory.docTree.getRootPathByNodes(domRange.npStart.roots);
41242
- var barCodeNode = new _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_50__/* .BarcodeNode */ .T(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id, name, innerIdentifier, textContent, isDisplayText, imagePath, width, height
41247
+ var barCodeNode = new _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_50__/* .BarcodeNode */ .T(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id,
41248
+ //name,
41249
+ innerIdentifier, textContent, isDisplayText, imagePath, width, height
41243
41250
  //,bandDataSource
41244
41251
  );
41245
41252
  //插入该表达式节点
@@ -41266,15 +41273,7 @@ var DocController = /*#__PURE__*/function () {
41266
41273
  */
41267
41274
  }, {
41268
41275
  key: "insertQrcode",
41269
- value: function insertQrcode(operType, curDomRange, id, textContent, type, correctLevel,
41270
- // dataSourceEnabled: boolean,
41271
- // dataSource: string,
41272
- // format: string,
41273
- // visitPath: string,
41274
- // isReadOnly: boolean,
41275
- // autoUpdate: boolean,
41276
- // execState: string,
41277
- width, height, name, innerIdentifier, isFillBack) {
41276
+ value: function insertQrcode(operType, curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack) {
41278
41277
  var domRange = curDomRange.normalize();
41279
41278
  var startPath = domRange.endPath;
41280
41279
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
@@ -41292,15 +41291,7 @@ var DocController = /*#__PURE__*/function () {
41292
41291
  }
41293
41292
  }
41294
41293
  var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
41295
- var qrcodeNode = new _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_51__/* .QrcodeNode */ .d(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id, name, innerIdentifier, textContent, type, correctLevel,
41296
- // dataSourceEnabled,
41297
- // dataSource,
41298
- // format,
41299
- // visitPath,
41300
- // isReadOnly,
41301
- // autoUpdate,
41302
- // execState,
41303
- width, height, isFillBack);
41294
+ var qrcodeNode = new _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_51__/* .QrcodeNode */ .d(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id, name, innerIdentifier, textContent, type, correctLevel, width, height, isFillBack);
41304
41295
  //插入该表达式节点
41305
41296
  if (operType === "add") {
41306
41297
  hoEditorFactory.undoService.begin();
@@ -47608,7 +47599,7 @@ var PageProperty = /*#__PURE__*/function () {
47608
47599
  /*
47609
47600
  * @Author: your name
47610
47601
  * @Date: 2020-12-24 16:01:16
47611
- * @LastEditTime: 2023-08-23 15:35:57
47602
+ * @LastEditTime: 2023-09-15 15:03:38
47612
47603
  * @LastEditors: liyanan 2441631434@qq.com
47613
47604
  * @Description: In User Settings Edit
47614
47605
  * @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
@@ -47634,10 +47625,8 @@ var TableProperty = /*#__PURE__*/function () {
47634
47625
  //用户可删除表格
47635
47626
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_continuePrintBorders", false);
47636
47627
  //续打时打印所有单元格边框
47637
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_layoutFullLine", true);
47638
- //排版时占据整行
47639
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_tightLineSpace", false);
47640
- //压缩表格上下行间距
47628
+ //private _layoutFullLine = true;//排版时占据整行
47629
+ //private _tightLineSpace = false;//压缩表格上下行间距
47641
47630
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isAutoChangeLine", false);
47642
47631
  //表格内是否自动换行
47643
47632
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_autoLineHeight", 0.53);
@@ -47737,22 +47726,6 @@ var TableProperty = /*#__PURE__*/function () {
47737
47726
  set: function set(value) {
47738
47727
  this._continuePrintBorders = value;
47739
47728
  }
47740
- }, {
47741
- key: "layoutFullLine",
47742
- get: function get() {
47743
- return this._layoutFullLine;
47744
- },
47745
- set: function set(value) {
47746
- this._layoutFullLine = value;
47747
- }
47748
- }, {
47749
- key: "tightLineSpace",
47750
- get: function get() {
47751
- return this._tightLineSpace;
47752
- },
47753
- set: function set(value) {
47754
- this._tightLineSpace = value;
47755
- }
47756
47729
  }, {
47757
47730
  key: "isAutoChangeLine",
47758
47731
  get: function get() {
@@ -50441,14 +50414,11 @@ var UserHistory = /*#__PURE__*/function () {
50441
50414
  /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__);
50442
50415
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(57658);
50443
50416
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_11__);
50444
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(68309);
50445
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_12__);
50446
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9653);
50447
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__);
50448
- /* harmony import */ var _editor_draw_drawNode_DrawBarcodeNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(48396);
50449
- /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(62358);
50450
- /* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(90161);
50451
-
50417
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9653);
50418
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__);
50419
+ /* harmony import */ var _editor_draw_drawNode_DrawBarcodeNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(48396);
50420
+ /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(62358);
50421
+ /* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(90161);
50452
50422
 
50453
50423
 
50454
50424
 
@@ -50564,7 +50534,7 @@ var BandDataSource = /*#__PURE__*/function () {
50564
50534
  ret._visitPath = "";
50565
50535
  ret._isReadOnly = false;
50566
50536
  ret._autoUpdate = false;
50567
- ret._executeStatus = _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_16__/* .ExecuteStatus */ .hc.AlwaysExec;
50537
+ ret._executeStatus = _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_15__/* .ExecuteStatus */ .hc.AlwaysExec;
50568
50538
  return ret;
50569
50539
  }
50570
50540
  }]);
@@ -50574,7 +50544,9 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50574
50544
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(BarcodeNode, _BaseNode);
50575
50545
  var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(BarcodeNode);
50576
50546
  //private _bandDataSource!: BandDataSource; //绑定数据源
50577
- function BarcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, name, innerIdentifier, textContent, isDisplayText, imagePath, width, height,
50547
+ function BarcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id,
50548
+ //name: string,
50549
+ innerIdentifier, textContent, isDisplayText, imagePath, width, height,
50578
50550
  //bandDataSource: string,
50579
50551
  scaleX, scaleY) {
50580
50552
  var _this;
@@ -50582,8 +50554,7 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50582
50554
  _this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
50583
50555
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_id", void 0);
50584
50556
  //编号
50585
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_name", void 0);
50586
- //名称
50557
+ //private _name!: string;//名称
50587
50558
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_innerIdentifier", void 0);
50588
50559
  //内部标识符
50589
50560
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_textContent", "");
@@ -50596,8 +50567,7 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50596
50567
  //条形码高
50597
50568
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_scaleX", void 0);
50598
50569
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_scaleY", void 0);
50599
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_remark", "");
50600
- //扩展字段
50570
+ //private _remark = ""; //扩展字段
50601
50571
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_imageDataBase64String", "");
50602
50572
  _this._id = id;
50603
50573
  _this._textContent = textContent;
@@ -50607,7 +50577,7 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50607
50577
  _this._height = height;
50608
50578
  _this._scaleX = scaleX ? scaleX : 1;
50609
50579
  _this._scaleY = scaleY ? scaleY : 1;
50610
- _this._name = name ? name : "";
50580
+ //this._name = name ? name : "";
50611
50581
  _this._innerIdentifier = innerIdentifier ? innerIdentifier : "";
50612
50582
  //this._bandDataSource = new BandDataSource();
50613
50583
  //this.setValuesObject(bandDataSource);
@@ -50641,16 +50611,14 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50641
50611
  get: function get() {
50642
50612
  return this._id;
50643
50613
  }
50644
- }, {
50645
- key: "remark",
50646
- get: function get() {
50647
- return this._remark;
50648
- },
50649
- set: function set(value) {
50650
- if (this._remark !== value) {
50651
- this._remark = value;
50652
- }
50653
- }
50614
+ // get remark(): string {
50615
+ // return this._remark;
50616
+ // }
50617
+ // set remark(value: string) {
50618
+ // if (this._remark !== value) {
50619
+ // this._remark = value;
50620
+ // }
50621
+ // }
50654
50622
  }, {
50655
50623
  key: "textContent",
50656
50624
  get: function get() {
@@ -50717,16 +50685,14 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50717
50685
  // this._bandDataSource = value;
50718
50686
  // }
50719
50687
  // }
50720
- }, {
50721
- key: "name",
50722
- get: function get() {
50723
- return this._name;
50724
- },
50725
- set: function set(value) {
50726
- if (this._name !== value) {
50727
- this._name = value;
50728
- }
50729
- }
50688
+ // get name(): string {
50689
+ // return this._name;
50690
+ // }
50691
+ // set name(value: string) {
50692
+ // if (this._name !== value) {
50693
+ // this._name = value;
50694
+ // }
50695
+ // }
50730
50696
  }, {
50731
50697
  key: "innerIdentifier",
50732
50698
  get: function get() {
@@ -50751,7 +50717,7 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50751
50717
  }, {
50752
50718
  key: "node2DrawNodeRange",
50753
50719
  value: function node2DrawNodeRange(startIndex, endIndex) {
50754
- var dNode = new _editor_draw_drawNode_DrawBarcodeNode__WEBPACK_IMPORTED_MODULE_14__/* .DrawBarcodeNode */ .w(this._hoEditorFactoryID, this._rootPath, this, 0, this.textContent, this.isDisplayText, this.imageDataBase64String, this.width, this.height, this.scaleX, this.scaleY);
50720
+ var dNode = new _editor_draw_drawNode_DrawBarcodeNode__WEBPACK_IMPORTED_MODULE_13__/* .DrawBarcodeNode */ .w(this._hoEditorFactoryID, this._rootPath, this, 0, this.textContent, this.isDisplayText, this.imageDataBase64String, this.width, this.height, this.scaleX, this.scaleY);
50755
50721
  this._drawNodes.push(dNode);
50756
50722
  }
50757
50723
  }, {
@@ -50788,21 +50754,29 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50788
50754
  var scaleX = drawBarcodeNode.children[0].scaleX;
50789
50755
  var scaleY = drawBarcodeNode.children[0].scaleY;
50790
50756
  var retObj = {
50791
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq[this.nodeType],
50757
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_14__/* .NodeType */ .Jq[this.nodeType],
50792
50758
  imageType: "Barcode",
50793
50759
  id: this.id,
50794
- name: this.name,
50795
50760
  innerIdentifier: this.innerIdentifier,
50796
50761
  textContent: this.textContent,
50797
- isDisplayText: this.isDisplayText,
50762
+ //isDisplayText: this.isDisplayText,
50798
50763
  width: width,
50799
50764
  height: height,
50800
- scaleX: scaleX,
50801
- scaleY: scaleY,
50802
- imageDataBase64String: this.imageDataBase64String,
50803
- //andDataSource: this.bandDataSource,
50804
- remark: this.remark
50765
+ //scaleX: scaleX,
50766
+ //scaleY: scaleY,
50767
+ imageDataBase64String: this.imageDataBase64String
50768
+ //remark: this.remark
50805
50769
  };
50770
+
50771
+ if (this.scaleX !== 1) {
50772
+ retObj.scaleX = this.scaleX;
50773
+ }
50774
+ if (this.scaleY !== 1) {
50775
+ retObj.scaleY = this.scaleY;
50776
+ }
50777
+ if (this.isDisplayText) {
50778
+ retObj.isDisplayText = this.isDisplayText;
50779
+ }
50806
50780
  if (isCopy) {
50807
50781
  return retObj;
50808
50782
  }
@@ -50825,17 +50799,15 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50825
50799
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
50826
50800
  var width = Number(json.width);
50827
50801
  var height = Number(json.height);
50828
- var scaleX = Number(json.scaleX);
50829
- var scaleY = Number(json.scaleY);
50802
+ var scaleX = json.scaleX === undefined ? 1 : Number(json.scaleX);
50803
+ var scaleY = json.scaleY === undefined ? 1 : Number(json.scaleY);
50830
50804
  this.transType(json);
50831
50805
  var isDisplayText = !json.isDisplayText ? false : json.isDisplayText;
50832
- return new BarcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq.ntImage, json.id, json.name, json.innerIdentifier, json.textContent, isDisplayText, json.imageDataBase64String, width, height,
50833
- //json.bandDataSource,
50834
- scaleX, scaleY);
50806
+ return new BarcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_14__/* .NodeType */ .Jq.ntImage, json.id, json.innerIdentifier, json.textContent, isDisplayText, json.imageDataBase64String, width, height, scaleX, scaleY);
50835
50807
  }
50836
50808
  }]);
50837
50809
  return BarcodeNode;
50838
- }(_BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .BaseNode */ .Hd);
50810
+ }(_BaseNode__WEBPACK_IMPORTED_MODULE_14__/* .BaseNode */ .Hd);
50839
50811
 
50840
50812
  /***/ }),
50841
50813
 
@@ -52461,15 +52433,15 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52461
52433
  if (cellPropertyJson["gridLineDisplay"] === "true,true,true,true") {
52462
52434
  delete cellPropertyJson["gridLineDisplay"];
52463
52435
  }
52464
- }
52465
- // else if (keysName[k] === "dataSource") {
52466
- // if (this.cellProperty.dataSource === undefined || (cellPropertyJson["dataSource"] === "")) {
52467
- // delete cellPropertyJson["dataSource"];
52468
- // }
52469
- // }
52470
- else {
52471
- if (cellPropertyJson[keysName[k]] === defaultCellPropJson[keysName[k]]) {
52472
- delete cellPropertyJson[keysName[k]];
52436
+ } else {
52437
+ if (keysName[k] === "backColor") {
52438
+ if (cellPropertyJson["backColor"].toString().toLowerCase() === defaultCellPropJson["backColor"].toString().toLowerCase()) {
52439
+ delete cellPropertyJson["backColor"];
52440
+ }
52441
+ } else {
52442
+ if (cellPropertyJson[keysName[k]] === defaultCellPropJson[keysName[k]]) {
52443
+ delete cellPropertyJson[keysName[k]];
52444
+ }
52473
52445
  }
52474
52446
  }
52475
52447
  }
@@ -52490,19 +52462,35 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52490
52462
  }
52491
52463
  }
52492
52464
  var cellText = this.getCellText(clearSign);
52493
- return {
52465
+ var retObj = {
52494
52466
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_31__/* .NodeType */ .Jq[this.nodeType],
52495
- borderVisible: this.borderVisible.toString(),
52496
- crossLineType: CrossLineType[this.crossLineType],
52497
- rowSpan: this.rowSpan,
52498
- colSpan: this.colSpan,
52467
+ //borderVisible: this.borderVisible.toString(),
52468
+ //crossLineType: CrossLineType[this.crossLineType],
52469
+ //rowSpan: this.rowSpan,
52470
+ //colSpan: this.colSpan,
52499
52471
  childNodes: childNodes,
52500
52472
  rowNo: rowNo,
52501
52473
  colNo: colNo,
52502
- cellProperty: cellPropertyJson,
52474
+ //cellProperty: cellPropertyJson,
52503
52475
  isModified: false,
52504
52476
  text: cellText
52505
52477
  };
52478
+ if (this.borderVisible.toString() !== "true,true,true,true") {
52479
+ retObj.borderVisible = this.borderVisible.toString();
52480
+ }
52481
+ if (this.crossLineType !== CrossLineType.ctNone) {
52482
+ retObj.crossLineType = CrossLineType[this.crossLineType];
52483
+ }
52484
+ if (this.rowSpan !== 1) {
52485
+ retObj.rowSpan = this.rowSpan;
52486
+ }
52487
+ if (this.colSpan !== 1) {
52488
+ retObj.colSpan = this.colSpan;
52489
+ }
52490
+ if (Object.keys(cellPropertyJson).length > 0) {
52491
+ retObj.cellProperty = cellPropertyJson;
52492
+ }
52493
+ return retObj;
52506
52494
  }
52507
52495
  }, {
52508
52496
  key: "removeChild",
@@ -52706,16 +52694,18 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52706
52694
  }
52707
52695
  }], [{
52708
52696
  key: "json2Node",
52709
- value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign) {
52697
+ value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows,
52698
+ //defaultCellProperty: any,
52699
+ isPaste, isClearSign) {
52710
52700
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_24__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
52711
52701
  var rowNo = parseInt(json.rowNo);
52712
52702
  var colNo = parseInt(json.colNo);
52713
52703
  aRow = rowsMap.get(rowNo);
52714
52704
  var cellNode = new CellNode(hoEditorFactoryID, rootNodes, tableNode, aRow, undefined, rowNo, colNo, 1, 1, new _TableProperty__WEBPACK_IMPORTED_MODULE_29__/* .CellProperty */ .$W(""));
52715
52705
  var cellProperty = json.cellProperty;
52716
- if (cellProperty === "") {
52717
- cellProperty = JSON.parse("{}");
52718
- }
52706
+ // if (cellProperty === "") {
52707
+ // cellProperty = JSON.parse("{}");
52708
+ // }
52719
52709
  var assignvalue = function assignvalue(target, source) {
52720
52710
  Object.keys(source).forEach(function (value) {
52721
52711
  if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target[value]) == "object") {
@@ -52755,7 +52745,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52755
52745
  ;
52756
52746
  });
52757
52747
  };
52758
- assignvalue(cellNode.cellProperty, cellProperty);
52748
+ if (cellProperty && Object.keys(cellProperty).length > 0) {
52749
+ assignvalue(cellNode.cellProperty, cellProperty);
52750
+ }
52759
52751
  aRow.splice(colNo, 1);
52760
52752
  aRow.splice(colNo, 0, cellNode);
52761
52753
  //aRow.push(cellNode);
@@ -52766,10 +52758,10 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52766
52758
  // }
52767
52759
  // }
52768
52760
  cellNode.initBlankDoc();
52769
- cellNode.rowSpan = Number(json.rowSpan);
52770
- cellNode.colSpan = Number(json.colSpan);
52771
- cellNode.borderVisible = json.borderVisible;
52772
- cellNode.crossLineType = Number(CrossLineType[json.crossLineType]);
52761
+ cellNode.rowSpan = json.rowSpan === undefined ? 1 : Number(json.rowSpan);
52762
+ cellNode.colSpan = json.colSpan === undefined ? 1 : Number(json.colSpan);
52763
+ cellNode.borderVisible = json.borderVisible === undefined ? "true,true,true,true" : json.borderVisible;
52764
+ cellNode.crossLineType = json.crossLineType === undefined ? 0 : Number(CrossLineType[json.crossLineType]);
52773
52765
  rows[rowNo] = aRow;
52774
52766
  cellNode.row = aRow;
52775
52767
  rows[rowNo][colNo] = cellNode;
@@ -52917,7 +52909,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52917
52909
  /*
52918
52910
  * @Author: your name
52919
52911
  * @Date: 2020-11-18 11:43:06
52920
- * @LastEditTime: 2023-09-13 15:12:20
52912
+ * @LastEditTime: 2023-09-14 11:16:12
52921
52913
  * @LastEditors: liyanan 2441631434@qq.com
52922
52914
  * @Description: In User Settings Edit
52923
52915
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\ControlNode.ts
@@ -52951,7 +52943,7 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
52951
52943
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_name", void 0);
52952
52944
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_text", void 0);
52953
52945
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_labelText", void 0);
52954
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_title", void 0);
52946
+ //protected _title!: string;
52955
52947
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_styleIndex", void 0);
52956
52948
  // protected _checkCascadeObject!: string;
52957
52949
  // protected _unCheckCascadeObject!: string;
@@ -53080,16 +53072,14 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
53080
53072
  this._text = value;
53081
53073
  }
53082
53074
  }
53083
- }, {
53084
- key: "title",
53085
- get: function get() {
53086
- return this._title;
53087
- },
53088
- set: function set(value) {
53089
- if (this._title !== value) {
53090
- this._title = value;
53091
- }
53092
- }
53075
+ // get title(): string {
53076
+ // return this._title;
53077
+ // }
53078
+ // set title(value: string) {
53079
+ // if (this._title !== value) {
53080
+ // this._title = value;
53081
+ // }
53082
+ // }
53093
53083
  }, {
53094
53084
  key: "styleIndex",
53095
53085
  get: function get() {
@@ -53370,45 +53360,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
53370
53360
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_controlStyle", "");
53371
53361
  _this._styleIndex = styleIndex;
53372
53362
  _this.remark = "";
53373
- // if (valuesObj["id"] !== undefined) {
53374
- // this._id = valuesObj["id"];
53375
- // }
53376
53363
  _this._type = _ControlNode__WEBPACK_IMPORTED_MODULE_25__/* .ControlType */ .C.ctDateTime;
53377
- // if (valuesObj["name"] !== undefined) {
53378
- // this._name = valuesObj["name"];
53379
- // }
53380
- // if (valuesObj["controlStyle"] !== undefined) {
53381
- // this._controlStyle = valuesObj["controlStyle"];
53382
- // }
53383
- // if (valuesObj["labelText"] !== undefined) {
53384
- // this._labelText = valuesObj["labelText"];
53385
- // }
53386
- // if (this._labelText === "") {
53387
- // this.labelText = this._name !== "" ? this.name : this._controlStyle;
53388
- // }
53389
- // if (valuesObj["text"] !== undefined && valuesObj["text"] !== null && valuesObj["text"] !== '') {
53390
- // this._text = valuesObj["text"];
53391
- // } else {
53392
- // this._text = this._labelText !== "" && this._labelText !== undefined && this._labelText != null ? this._labelText : " ";
53393
- // }
53394
- // if (valuesObj["title"] !== undefined) {
53395
- // this._title = valuesObj["title"];
53396
- // }
53397
- // if (valuesObj["tipText"] !== undefined) {
53398
- // this._tipText = valuesObj["tipText"];
53399
- // }
53400
- // if (valuesObj["isAllowDelete"] !== undefined) {
53401
- // this._isAllowDelete = valuesObj["isAllowDelete"];
53402
- // }
53403
- // if (valuesObj["isReadOnly"] !== undefined) {
53404
- // this._isReadOnly = valuesObj["isReadOnly"];
53405
- // }
53406
- // if (valuesObj["readType"] !== undefined) {
53407
- // this._readType = valuesObj["readType"];
53408
- // }
53409
- // if (valuesObj["dataId"] !== undefined) {
53410
- // this.dataId = valuesObj["dataId"];
53411
- // }
53412
53364
  _this.customProperty = new Object();
53413
53365
  _this.setValuesObject(valuesObject);
53414
53366
  if (!_this.dataId) {
@@ -53619,7 +53571,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
53619
53571
  name: this.name,
53620
53572
  text: isClearValue || this.text === this.name ? "" : this.text,
53621
53573
  labelText: this.labelText,
53622
- title: this.title,
53574
+ //title: this.title,
53623
53575
  styleIndex: this.styleIndex,
53624
53576
  tipText: this.tipText,
53625
53577
  isAllowDelete: this.isAllowDelete,
@@ -53644,22 +53596,44 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
53644
53596
  innerIdentifier: this.innerIdentifier,
53645
53597
  dataMetaIdentifier: this.dataMetaIdentifier,
53646
53598
  identifierFormat: this.identifierFormat,
53647
- isSynchro: this.isSynchro,
53599
+ //isSynchro: this.isSynchro,
53648
53600
  controlStyle: this.controlStyle.replace("hh", "HH"),
53649
53601
  name: this.name,
53650
53602
  text: isClearValue || this.text === this.name ? "" : this.text,
53651
53603
  labelText: this.labelText,
53652
- title: this.title,
53604
+ //title: this.title,
53653
53605
  styleIndex: this.styleIndex,
53654
- tipText: this.tipText,
53655
- isAllowDelete: this.isAllowDelete,
53656
- isReadOnly: this.isReadOnly,
53606
+ //tipText: this.tipText,
53607
+ //isAllowDelete: this.isAllowDelete,
53608
+ //isReadOnly: this.isReadOnly,
53657
53609
  readType: this.readType,
53658
- customProperty: this.customProperty,
53659
- notReplaceElement: this.notReplaceElement,
53660
- notSelectTime: this.notSelectTime,
53661
- remark: this.remark
53610
+ customProperty: this.customProperty
53611
+ //notReplaceElement: this.notReplaceElement,
53612
+ //notSelectTime: this.notSelectTime,
53613
+ //remark: this.remark,
53662
53614
  };
53615
+
53616
+ if (this.isSynchro) {
53617
+ retObj.isSynchro = this.isSynchro;
53618
+ }
53619
+ if (this.tipText) {
53620
+ retObj.tipText = this.tipText;
53621
+ }
53622
+ if (this.isAllowDelete) {
53623
+ retObj.isAllowDelete = this.isAllowDelete;
53624
+ }
53625
+ if (this.isReadOnly) {
53626
+ retObj.isReadOnly = this.isReadOnly;
53627
+ }
53628
+ if (this.notReplaceElement) {
53629
+ retObj.notReplaceElement = this.notReplaceElement;
53630
+ }
53631
+ if (this.notSelectTime) {
53632
+ retObj.notSelectTime = this.notSelectTime;
53633
+ }
53634
+ if (this.remark) {
53635
+ retObj.remark = this.remark;
53636
+ }
53663
53637
  var paga = {
53664
53638
  "DateTimeNode": retObj
53665
53639
  };
@@ -53686,6 +53660,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
53686
53660
  json.isSynchro = !json.isSynchro ? false : json.isSynchro;
53687
53661
  json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
53688
53662
  json.isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
53663
+ json.notReplaceElement = !json.notReplaceElement ? false : json.notReplaceElement;
53689
53664
  json.notSelectTime = !json.notSelectTime ? false : json.notSelectTime;
53690
53665
  json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_25__/* .ControlType */ .C[json.type]);
53691
53666
  json.controlStyle = json.controlStyle.replace("hh", "HH");
@@ -54252,7 +54227,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
54252
54227
  var ret = new DownListNodeInstance();
54253
54228
  ret.Id = this.id !== undefined ? this.id : ret.Id;
54254
54229
  ret.Name = this.name !== undefined ? this.name : ret.Name;
54255
- ret.Title = this.title !== undefined ? this.title : ret.Title;
54230
+ //ret.Title = this.title !== undefined ? this.title : ret.Title;
54256
54231
  ret.Text = this.text !== undefined ? this.text : ret.Text;
54257
54232
  ret.KeyValue = this.keyValue !== undefined ? this.keyValue : ret.KeyValue;
54258
54233
  ret.TipText = this.tipText !== undefined ? this.tipText : ret.TipText;
@@ -54423,7 +54398,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
54423
54398
  text: this.keyValue == "" ? "" : this.text,
54424
54399
  keyValue: this.keyValue,
54425
54400
  value: this.value,
54426
- title: this.title,
54401
+ //title: this.title,
54427
54402
  styleIndex: this.styleIndex,
54428
54403
  tipText: this.tipText,
54429
54404
  labelText: this.labelText,
@@ -54451,25 +54426,46 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
54451
54426
  innerIdentifier: this.innerIdentifier,
54452
54427
  dataMetaIdentifier: this.dataMetaIdentifier,
54453
54428
  identifierFormat: this.identifierFormat,
54454
- isSynchro: this.isSynchro,
54429
+ //isSynchro: this.isSynchro,
54455
54430
  name: this.name,
54456
54431
  text: this.keyValue == "" ? "" : this.text,
54457
54432
  keyValue: this.keyValue,
54458
54433
  value: this.value,
54459
- title: this.title,
54434
+ //title: this.title,
54460
54435
  styleIndex: this.styleIndex,
54461
- tipText: this.tipText,
54436
+ //tipText: this.tipText,
54462
54437
  labelText: this.labelText,
54463
- isAllowDelete: this.isAllowDelete,
54464
- isReadOnly: this.isReadOnly,
54465
- mutexSelect: this.mutexSelect,
54466
- allowMultiSelect: this.allowMultiSelect,
54438
+ //isAllowDelete: this.isAllowDelete,
54439
+ //isReadOnly: this.isReadOnly,
54440
+ //mutexSelect: this.mutexSelect,
54441
+ //allowMultiSelect: this.allowMultiSelect,
54467
54442
  readType: this.readType,
54468
54443
  downLists: downLists,
54469
54444
  //dataSource: this.bandDataSource,
54470
- remark: this.remark,
54445
+ //remark: this.remark,
54471
54446
  customProperty: this.customProperty
54472
54447
  };
54448
+ if (this.isSynchro) {
54449
+ retObj.isSynchro = this.isSynchro;
54450
+ }
54451
+ if (this.tipText) {
54452
+ retObj.tipText = this.tipText;
54453
+ }
54454
+ if (this.isAllowDelete) {
54455
+ retObj.isAllowDelete = this.isAllowDelete;
54456
+ }
54457
+ if (this.isReadOnly) {
54458
+ retObj.isReadOnly = this.isReadOnly;
54459
+ }
54460
+ if (this.mutexSelect) {
54461
+ retObj.mutexSelect = this.mutexSelect;
54462
+ }
54463
+ if (this.allowMultiSelect) {
54464
+ retObj.allowMultiSelect = this.allowMultiSelect;
54465
+ }
54466
+ if (this.remark) {
54467
+ retObj.remark = this.remark;
54468
+ }
54473
54469
  var paga = {
54474
54470
  "DownListNode": retObj
54475
54471
  };
@@ -55426,8 +55422,8 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
55426
55422
  var drawImageNode = this.drawNodes[0];
55427
55423
  var width = drawImageNode.dWidth;
55428
55424
  var height = drawImageNode.dHeight;
55429
- var scaleX = drawImageNode.children[0].scaleX;
55430
- var scaleY = drawImageNode.children[0].scaleY;
55425
+ //const scaleX = drawImageNode.children[0].scaleX;
55426
+ //const scaleY = drawImageNode.children[0].scaleY;
55431
55427
  var retObj = {
55432
55428
  nodeType: BaseNode/* NodeType */.Jq[this.nodeType],
55433
55429
  imageType: "Image",
@@ -55436,12 +55432,25 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
55436
55432
  height: height,
55437
55433
  //scaleX: scaleX,
55438
55434
  //scaleY: scaleY,
55439
- imageDataBase64String: this.imageDataBase64String,
55440
- isFormula: this.isFormula,
55441
- remark: this.remark,
55442
- markImage: this.markImage,
55443
- imageJson: this.imageJson
55435
+ imageDataBase64String: this.imageDataBase64String
55436
+ //isFormula: this.isFormula,
55437
+ //remark: this.remark,
55438
+ //markImage: this.markImage,
55439
+ //imageJson: this.imageJson
55444
55440
  };
55441
+
55442
+ if (this.isFormula) {
55443
+ retObj.isFormula = this.isFormula;
55444
+ }
55445
+ if (this.remark) {
55446
+ retObj.remark = this.remark;
55447
+ }
55448
+ if (this.markImage) {
55449
+ retObj.markImage = this.markImage;
55450
+ }
55451
+ if (this.imageJson) {
55452
+ retObj.imageJson = this.imageJson;
55453
+ }
55445
55454
  if (isCopy) {
55446
55455
  return retObj;
55447
55456
  }
@@ -55615,7 +55624,7 @@ var DrawTree = __webpack_require__(51760);
55615
55624
  * @Author: liyanan 2441631434@qq.com
55616
55625
  * @Date: 2023-03-17 14:00:18
55617
55626
  * @LastEditors: liyanan 2441631434@qq.com
55618
- * @LastEditTime: 2023-03-17 17:53:26
55627
+ * @LastEditTime: 2023-05-09 16:23:54
55619
55628
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\JumpButtonNode.ts
55620
55629
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
55621
55630
  */
@@ -55671,15 +55680,6 @@ var JumpButtonNode = /*#__PURE__*/function (_BaseNode) {
55671
55680
  }, {
55672
55681
  key: "node2DrawNodeRange",
55673
55682
  value: function node2DrawNodeRange() {
55674
- //const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
55675
- // const textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
55676
- // let cbStyle;
55677
- // if (textStyle) {
55678
- // cbStyle = textStyle.combineStyle;
55679
- // } else {
55680
- // cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
55681
- // }
55682
- //const dHeight = hoEditorFactory.getFontHeightByFontSize(14);
55683
55683
  var dNode = new DrawJumpButton(this._hoEditorFactoryID, this._rootPath, this, this.name);
55684
55684
  this._drawNodes.push(dNode);
55685
55685
  }
@@ -55937,9 +55937,13 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
55937
55937
  var retObj = {
55938
55938
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType */ .Jq[this.nodeType],
55939
55939
  text: this.text,
55940
- styleIndex: this.styleIndex,
55941
- associatedElement: this.associatedElement
55940
+ styleIndex: this.styleIndex
55941
+ //associatedElement: this.associatedElement,
55942
55942
  };
55943
+
55944
+ if (this.associatedElement) {
55945
+ retObj.associatedElement = this.associatedElement;
55946
+ }
55943
55947
  if (isCopy) {
55944
55948
  return retObj;
55945
55949
  }
@@ -57115,9 +57119,13 @@ var MenstrualHistoryNode = /*#__PURE__*/function (_MedicalExpressionNod) {
57115
57119
  menseDays: this.menseDays,
57116
57120
  cycleDays: this.cycleDays,
57117
57121
  menarcheAge: this.menarcheAge,
57118
- menoPauseAge: this.menoPauseAge,
57119
- remark: this.remark
57122
+ menoPauseAge: this.menoPauseAge
57123
+ //remark: this.remark,
57120
57124
  };
57125
+
57126
+ if (this.remark !== "") {
57127
+ retObj.remark = this.remark;
57128
+ }
57121
57129
  if (isCopy) {
57122
57130
  return retObj;
57123
57131
  }
@@ -58127,16 +58135,32 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58127
58135
  };
58128
58136
  return paga;
58129
58137
  }
58138
+ var paraNode = {
58139
+ //"ParagraphNode": {
58140
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq[this.nodeType],
58141
+ styleIndex: this._paraNo,
58142
+ textStyleNo: this.styleIndex
58143
+ //printAsSinglePage: this.printAsSinglePage,
58144
+ //forceChangeHeader: this.forceChangeHeader,
58145
+ //docId: this.docId,
58146
+ //customProperty: this.customProperty
58147
+ //}
58148
+ };
58149
+
58150
+ if (this.printAsSinglePage) {
58151
+ paraNode.printAsSinglePage = this.printAsSinglePage;
58152
+ }
58153
+ if (this.forceChangeHeader) {
58154
+ paraNode.forceChangeHeader = this.forceChangeHeader;
58155
+ }
58156
+ if (this.docId !== "") {
58157
+ paraNode.docId = this.docId;
58158
+ }
58159
+ if (Object.keys(this.customProperty).length > 0) {
58160
+ paraNode.customProperty = this.customProperty;
58161
+ }
58130
58162
  return {
58131
- "ParagraphNode": {
58132
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq[this.nodeType],
58133
- styleIndex: this._paraNo,
58134
- textStyleNo: this.styleIndex,
58135
- printAsSinglePage: this.printAsSinglePage,
58136
- forceChangeHeader: this.forceChangeHeader,
58137
- docId: this.docId,
58138
- customProperty: this.customProperty
58139
- }
58163
+ "ParagraphNode": paraNode
58140
58164
  };
58141
58165
  }
58142
58166
  }, {
@@ -58394,9 +58418,13 @@ var PermanentTeethMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
58394
58418
  topLeftSelected: this.topLeftSelected.toString(),
58395
58419
  topRightSelected: this.topRightSelected.toString(),
58396
58420
  bottomLeftSelected: this.bottomLeftSelected.toString(),
58397
- bottomRightSelected: this.bottomRightSelected.toString(),
58398
- remark: this.remark
58421
+ bottomRightSelected: this.bottomRightSelected.toString()
58422
+ //remark: this.remark,
58399
58423
  };
58424
+
58425
+ if (this.remark !== "") {
58426
+ retObj.remark = this.remark;
58427
+ }
58400
58428
  if (isCopy) {
58401
58429
  return retObj;
58402
58430
  }
@@ -58608,9 +58636,13 @@ var PrimaryTeethMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
58608
58636
  topLeftSelected: this.topLeftSelected.toString(),
58609
58637
  topRightSelected: this.topRightSelected.toString(),
58610
58638
  bottomLeftSelected: this.bottomLeftSelected.toString(),
58611
- bottomRightSelected: this.bottomRightSelected.toString(),
58612
- remark: this.remark
58639
+ bottomRightSelected: this.bottomRightSelected.toString()
58640
+ //remark: this.remark,
58613
58641
  };
58642
+
58643
+ if (this.remark !== "") {
58644
+ retObj.remark = this.remark;
58645
+ }
58614
58646
  if (isCopy) {
58615
58647
  return retObj;
58616
58648
  }
@@ -58666,8 +58698,8 @@ var PrimaryTeethMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
58666
58698
  /*
58667
58699
  * @Author: your name
58668
58700
  * @Date: 2020-10-28 15:50:18
58669
- * @LastEditTime: 2022-03-25 10:05:10
58670
- * @LastEditors: Please set LastEditors
58701
+ * @LastEditTime: 2023-09-14 11:03:19
58702
+ * @LastEditors: liyanan 2441631434@qq.com
58671
58703
  * @Description: 瞳孔图
58672
58704
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\PupilMap.ts
58673
58705
  */
@@ -58852,6 +58884,9 @@ var PupilMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
58852
58884
  value7: this.value7,
58853
58885
  remark: this.remark
58854
58886
  };
58887
+ if (this.remark !== "") {
58888
+ retObj.remark = this.remark;
58889
+ }
58855
58890
  if (isCopy) {
58856
58891
  return retObj;
58857
58892
  }
@@ -59037,7 +59072,7 @@ var BaseNode = __webpack_require__(62358);
59037
59072
  /*
59038
59073
  * @Author: your name
59039
59074
  * @Date: 2020-11-13 08:51:37
59040
- * @LastEditTime: 2023-06-30 15:24:31
59075
+ * @LastEditTime: 2023-09-14 17:38:33
59041
59076
  * @LastEditors: liyanan 2441631434@qq.com
59042
59077
  * @Description: In User Settings Edit
59043
59078
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\QrcodeNode.ts
@@ -59047,18 +59082,7 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59047
59082
  (0,inherits/* default */.Z)(QrcodeNode, _BaseNode);
59048
59083
  var _super = (0,createSuper/* default */.Z)(QrcodeNode);
59049
59084
  //是否回填
59050
- function QrcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, name, innerIdentifier, textContent, type, correctLevel,
59051
- // dataSourceEnabled: boolean,
59052
- // dataSource: string,
59053
- // format: string,
59054
- // visitPath: string,
59055
- // isReadOnly: boolean,
59056
- // autoUpdate: boolean,
59057
- // execState: string,
59058
- width, height,
59059
- //scaleX?: number,
59060
- //scaleY?: number
59061
- isFillBack) {
59085
+ function QrcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, name, innerIdentifier, textContent, type, correctLevel, width, height, isFillBack) {
59062
59086
  var _this;
59063
59087
  (0,classCallCheck/* default */.Z)(this, QrcodeNode);
59064
59088
  _this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
@@ -59074,32 +59098,16 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59074
59098
  //类型
59075
59099
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_correctLevel", "M");
59076
59100
  //纠错能力
59077
- // private _dataSourceEnabled = true; //数据源绑定设置有效
59078
- // private _dataSource = ""; //数据源
59079
- // private _format = ""; //格式化
59080
- // private _visitPath = ""; //访问路径
59081
- // private _isReadOnly = false; //只读,不能回填
59082
- // private _autoUpdate = false; //自动更新,当加载文档或者数据源发生改变时自动更新数值
59083
- // private _execState = ""; //执行状态
59084
59101
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_width", void 0);
59085
59102
  //宽
59086
59103
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_height", void 0);
59087
59104
  //高
59088
- (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_remark", "");
59089
- //扩展字段
59090
59105
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_imageDataBase64String", "");
59091
59106
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_isFillBack", false);
59092
59107
  _this._id = id;
59093
59108
  _this._textContent = textContent;
59094
59109
  _this._type = type;
59095
59110
  _this._correctLevel = correctLevel;
59096
- // this._dataSourceEnabled = dataSourceEnabled;
59097
- // this._dataSource = dataSource;
59098
- // this._format = format;
59099
- // this._visitPath = visitPath;
59100
- // this._isReadOnly = isReadOnly;
59101
- // this._autoUpdate = autoUpdate;
59102
- // this._execState = execState;
59103
59111
  _this._width = width;
59104
59112
  _this._height = height;
59105
59113
  _this._name = name ? name : "";
@@ -59118,16 +59126,6 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59118
59126
  get: function get() {
59119
59127
  return this._id;
59120
59128
  }
59121
- }, {
59122
- key: "remark",
59123
- get: function get() {
59124
- return this._remark;
59125
- },
59126
- set: function set(value) {
59127
- if (this._remark !== value) {
59128
- this._remark = value;
59129
- }
59130
- }
59131
59129
  }, {
59132
59130
  key: "textContent",
59133
59131
  get: function get() {
@@ -59149,27 +59147,6 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59149
59147
  get: function get() {
59150
59148
  return this._correctLevel;
59151
59149
  }
59152
- // get dataSource(): string {
59153
- // return this._dataSource;
59154
- // }
59155
- // get format(): string {
59156
- // return this._format;
59157
- // }
59158
- // get visitPath(): string {
59159
- // return this._visitPath;
59160
- // }
59161
- // get isReadOnly(): boolean {
59162
- // return this._isReadOnly;
59163
- // }
59164
- // get autoUpdate(): boolean {
59165
- // return this._autoUpdate;
59166
- // }
59167
- // get execState(): string {
59168
- // return this._execState;
59169
- // }
59170
- // get dataSourceEnabled(): boolean {
59171
- // return this._dataSourceEnabled;
59172
- // }
59173
59150
  }, {
59174
59151
  key: "width",
59175
59152
  get: function get() {
@@ -59305,26 +59282,23 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59305
59282
  nodeType: BaseNode/* NodeType */.Jq[this.nodeType],
59306
59283
  imageType: "Qrcode",
59307
59284
  id: this.id,
59308
- name: this.name,
59285
+ //name: this.name,
59309
59286
  innerIdentifier: this.innerIdentifier,
59310
59287
  textContent: isClearValue && this.isFillBack ? "" : this.textContent,
59311
59288
  type: this.type,
59312
59289
  correctLevel: this.correctLevel,
59313
- // dataSourceEnabled: this.dataSourceEnabled,
59314
- // dataSource: this.dataSource,
59315
- // format: this.format,
59316
- // visitPath: this.visitPath,
59317
- // isReadOnly: this.isReadOnly,
59318
- // autoUpdate: this.autoUpdate,
59319
- // execState: this.execState,
59320
59290
  width: width,
59321
59291
  height: height,
59322
- remark: this.remark,
59323
- //scaleX: scaleX,
59324
- //scaleY: scaleY,
59325
- imageDataBase64String: this.imageDataBase64String,
59326
- isFillBack: this.isFillBack
59292
+ imageDataBase64String: this.imageDataBase64String
59293
+ //isFillBack: this.isFillBack
59327
59294
  };
59295
+
59296
+ if (this.name) {
59297
+ retObj.name = this.name;
59298
+ }
59299
+ if (this.isFillBack) {
59300
+ retObj.isFillBack = this.isFillBack;
59301
+ }
59328
59302
  if (isCopy) {
59329
59303
  return retObj;
59330
59304
  }
@@ -59343,23 +59317,8 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59343
59317
  this.transType(json);
59344
59318
  var width = Number(json.width);
59345
59319
  var height = Number(json.height);
59346
- //const scaleX = Number(json.scaleX);
59347
- //const scaleY = Number(json.scaleY);
59348
- // const dataSourceEnabled = !json.dataSourceEnabled
59349
- // ? false
59350
- // : json.dataSourceEnabled;
59351
- // const isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
59352
- // const autoUpdate = !json.autoUpdate ? false : json.autoUpdate;
59353
59320
  var isFillBack = !json.isFillBack ? false : json.isFillBack;
59354
- return new QrcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntImage, json.id, json.name, json.innerIdentifier, json.textContent, json.type, json.correctLevel,
59355
- // dataSourceEnabled,
59356
- // json.dataSource,
59357
- // json.format,
59358
- // json.visitPath,
59359
- // isReadOnly,
59360
- // autoUpdate,
59361
- // json.execState,
59362
- width, height, isFillBack);
59321
+ return new QrcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntImage, json.id, json.name ? json.name : "", json.innerIdentifier, json.textContent, json.type, json.correctLevel, width, height, isFillBack);
59363
59322
  }
59364
59323
  }]);
59365
59324
  return QrcodeNode;
@@ -59382,16 +59341,16 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59382
59341
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70280);
59383
59342
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66298);
59384
59343
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(78255);
59385
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(68309);
59386
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7__);
59387
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41539);
59388
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
59389
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(54747);
59390
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__);
59391
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(47941);
59392
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__);
59393
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(39714);
59394
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11__);
59344
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41539);
59345
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__);
59346
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54747);
59347
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8__);
59348
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(47941);
59349
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9__);
59350
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(39714);
59351
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__);
59352
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(68309);
59353
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__);
59395
59354
  /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9653);
59396
59355
  /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__);
59397
59356
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(57658);
@@ -59546,9 +59505,9 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59546
59505
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "id", void 0);
59547
59506
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "dataId", void 0);
59548
59507
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "type", void 0);
59549
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "name", void 0);
59508
+ //private name!: string;
59550
59509
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "text", void 0);
59551
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "title", void 0);
59510
+ //private title!: string;
59552
59511
  //private checkCascadeObject!: string;
59553
59512
  //private unCheckCascadeObject!: string;
59554
59513
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "controlStyle", void 0);
@@ -59608,16 +59567,14 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59608
59567
  this.type = value;
59609
59568
  }
59610
59569
  }
59611
- }, {
59612
- key: "Name",
59613
- get: function get() {
59614
- return this.name;
59615
- },
59616
- set: function set(value) {
59617
- if (this.name !== value) {
59618
- this.name = value;
59619
- }
59620
- }
59570
+ // get Name(): string {
59571
+ // return this.name;
59572
+ // }
59573
+ // set Name(value: string) {
59574
+ // if (this.name !== value) {
59575
+ // this.name = value;
59576
+ // }
59577
+ // }
59621
59578
  }, {
59622
59579
  key: "Text",
59623
59580
  get: function get() {
@@ -59628,16 +59585,14 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59628
59585
  this.text = value;
59629
59586
  }
59630
59587
  }
59631
- }, {
59632
- key: "Title",
59633
- get: function get() {
59634
- return this.title;
59635
- },
59636
- set: function set(value) {
59637
- if (this.title !== value) {
59638
- this.title = value;
59639
- }
59640
- }
59588
+ // get Title(): string {
59589
+ // return this.title;
59590
+ // }
59591
+ // set Title(value: string) {
59592
+ // if (this.title !== value) {
59593
+ // this.title = value;
59594
+ // }
59595
+ // }
59641
59596
  // get CheckCascadeObject(): string {
59642
59597
  // return this.checkCascadeObject;
59643
59598
  // }
@@ -59808,9 +59763,9 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59808
59763
  ret.id = "";
59809
59764
  ret.dataId = "";
59810
59765
  ret.type = _ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType */ .C.ctRadioAndCheckBox;
59811
- ret.name = "";
59766
+ //ret.name = "";
59812
59767
  ret.text = "";
59813
- ret.title = "复选框";
59768
+ //ret.title = "复选框";
59814
59769
  // ret.checkCascadeObject = "";
59815
59770
  // ret.unCheckCascadeObject = "";
59816
59771
  ret.controlStyle = "CheckBox";
@@ -60116,7 +60071,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60116
60071
  ret.NumericValue = this.numericValue !== undefined ? this.numericValue : ret.NumericValue;
60117
60072
  ret.Id = this.id !== undefined ? this.id : ret.Id;
60118
60073
  ret.Type = this.type !== undefined ? this.type : ret.Type;
60119
- ret.Title = this.title !== undefined ? this.title : ret.Title;
60074
+ //ret.Title = this.title !== undefined ? this.title : ret.Title;
60120
60075
  ret.Text = this.text !== undefined ? this.text : ret.Text;
60121
60076
  // ret.CheckCascadeObject =
60122
60077
  // this.checkCascadeObject !== undefined
@@ -60126,7 +60081,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60126
60081
  // this.unCheckCascadeObject !== undefined
60127
60082
  // ? this.unCheckCascadeObject
60128
60083
  // : ret.UnCheckCascadeObject;
60129
- ret.Name = this.name !== undefined ? this.name : ret.Name;
60084
+ //ret.Name = this.name !== undefined ? this.name : ret.Name;
60130
60085
  ret.ReadType = this.readType !== undefined ? this.readType : ret.ReadType;
60131
60086
  ret.IsEditText = this.isEditText !== undefined ? this.isEditText : ret.IsEditText;
60132
60087
  ret.AppendText = this.appendText !== undefined ? this.appendText : ret.AppendText;
@@ -60158,9 +60113,13 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60158
60113
  this.styleIndex = 0;
60159
60114
  }
60160
60115
  var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
60161
- var dNode = new _editor_draw_drawNode_DrawRadioAndCheckBox__WEBPACK_IMPORTED_MODULE_15__/* .DrawRadioAndCheckBox */ .e(this._hoEditorFactoryID, this._rootPath, this, 0, this.controlStyle, this.name, this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
60116
+ var dNode = new _editor_draw_drawNode_DrawRadioAndCheckBox__WEBPACK_IMPORTED_MODULE_15__/* .DrawRadioAndCheckBox */ .e(this._hoEditorFactoryID, this._rootPath, this, 0, this.controlStyle,
60117
+ //this.name,
60118
+ this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
60162
60119
  this._drawNodes.push(dNode);
60163
- var dNodePrint = new _editor_draw_drawNode_DrawRadioAndCheckBoxPrint__WEBPACK_IMPORTED_MODULE_16__/* .DrawRadioAndCheckBoxPrint */ .w(this._hoEditorFactoryID, this._rootPath, this, 0, this.controlStyle, this.name, this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
60120
+ var dNodePrint = new _editor_draw_drawNode_DrawRadioAndCheckBoxPrint__WEBPACK_IMPORTED_MODULE_16__/* .DrawRadioAndCheckBoxPrint */ .w(this._hoEditorFactoryID, this._rootPath, this, 0, this.controlStyle,
60121
+ //this.name,
60122
+ this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
60164
60123
  this._drawNodes.push(dNodePrint);
60165
60124
  }
60166
60125
  }, {
@@ -60227,9 +60186,9 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60227
60186
  }, {
60228
60187
  key: "node2Json",
60229
60188
  value: function node2Json(range, isCopy, type) {
60230
- var name = "";
60231
- if (this.controlStyle === "RadioBox") name = "RB";
60232
- if (this.controlStyle === "CheckBox") name = "CB";
60189
+ //let name = "";
60190
+ //if (this.controlStyle === "RadioBox") name = "RB";
60191
+ //if (this.controlStyle === "CheckBox") name = "CB";
60233
60192
  if (isCopy) {
60234
60193
  return {
60235
60194
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq.ntControl],
@@ -60237,9 +60196,9 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60237
60196
  controlStyle: this.controlStyle,
60238
60197
  id: this.id,
60239
60198
  dataId: this.dataId,
60240
- name: this.name,
60199
+ //name: this.name,
60241
60200
  text: this.text,
60242
- title: this.title,
60201
+ //title: this.title,
60243
60202
  styleIndex: this.styleIndex,
60244
60203
  //checkCascadeObject: this.checkCascadeObject,
60245
60204
  //unCheckCascadeObject: this.unCheckCascadeObject,
@@ -60271,28 +60230,62 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60271
60230
  id: this.id,
60272
60231
  parentId: parentid,
60273
60232
  dataId: this.dataId,
60274
- name: this.name,
60233
+ //name: this.name,
60275
60234
  text: this.text,
60276
- title: this.title,
60235
+ //title: this.title,
60277
60236
  styleIndex: this.styleIndex,
60278
60237
  //checkCascadeObject: this.checkCascadeObject,
60279
60238
  //unCheckCascadeObject: this.unCheckCascadeObject,
60280
- tipText: this.tipText,
60281
- isAllowDelete: this.isAllowDelete,
60239
+ //tipText: this.tipText,
60240
+ //isAllowDelete: this.isAllowDelete,
60282
60241
  groupName: this.groupName,
60283
60242
  isSelected: this.isSelected,
60284
- boxAlign: this.boxAlign,
60285
- numericValue: this.numericValue,
60286
- additionalData: this.additionalData,
60287
- isTransToText: this.isTransToText,
60288
- groupHasOptions: this.groupHasOptions,
60289
- isEditText: this.isEditText,
60290
- appendText: this.appendText,
60291
- readType: this.readType,
60292
- associatedElement: this.associatedElement,
60243
+ //boxAlign: this.boxAlign,
60244
+ //numericValue: this.numericValue,
60245
+ //additionalData: this.additionalData,
60246
+ //isTransToText: this.isTransToText,
60247
+ //groupHasOptions: this.groupHasOptions,
60248
+ //isEditText: this.isEditText,
60249
+ //appendText: this.appendText,
60250
+ readType: this.readType
60251
+ //associatedElement: this.associatedElement,
60293
60252
  //bandDataSource: this.bandDataSource,
60294
- remark: this.remark
60253
+ //remark: this.remark,
60295
60254
  };
60255
+
60256
+ if (this.tipText) {
60257
+ retObj.tipText = this.tipText;
60258
+ }
60259
+ if (this.isAllowDelete) {
60260
+ retObj.isAllowDelete = this.isAllowDelete;
60261
+ }
60262
+ if (!this.boxAlign) {
60263
+ retObj.boxAlign = this.boxAlign;
60264
+ }
60265
+ if (this.numericValue && this.numericValue !== "0") {
60266
+ retObj.numericValue = this.numericValue;
60267
+ }
60268
+ if (this.additionalData) {
60269
+ retObj.additionalData = this.additionalData;
60270
+ }
60271
+ if (this.isTransToText) {
60272
+ retObj.isTransToText = this.isTransToText;
60273
+ }
60274
+ if (this.groupHasOptions) {
60275
+ retObj.groupHasOptions = this.groupHasOptions;
60276
+ }
60277
+ if (this.isEditText) {
60278
+ retObj.isEditText = this.isEditText;
60279
+ }
60280
+ if (this.appendText) {
60281
+ retObj.appendText = this.appendText;
60282
+ }
60283
+ if (this.associatedElement) {
60284
+ retObj.associatedElement = this.associatedElement;
60285
+ }
60286
+ if (this.remark) {
60287
+ retObj.remark = this.remark;
60288
+ }
60296
60289
  var paga = {
60297
60290
  "RadioAndCheckBoxNode": retObj
60298
60291
  };
@@ -60328,11 +60321,11 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60328
60321
  }
60329
60322
  json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
60330
60323
  json.isSelected = !json.isSelected ? false : json.isSelected.text != undefined ? json.isSelected.text : json.isSelected;
60331
- json.boxAlign = !json.boxAlign ? false : json.boxAlign;
60324
+ json.boxAlign = json.boxAlign === undefined ? true : json.boxAlign;
60332
60325
  json.isEditText = !json.isEditText ? false : json.isEditText;
60333
60326
  json.isTransToText = !json.isTransToText ? false : json.isTransToText;
60334
60327
  json.groupHasOptions = !json.groupHasOptions ? false : json.groupHasOptions;
60335
- json.numericValue = Number(json.numericValue);
60328
+ json.numericValue = json.numericValue === undefined ? '0' : Number(json.numericValue);
60336
60329
  var styleIndex = Number(json.styleIndex);
60337
60330
  json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType */ .C[json.type]);
60338
60331
  json.readType = json.readType ? Number(json.readType) : -1;
@@ -61994,10 +61987,13 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
61994
61987
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_34__/* .NodeType */ .Jq[this.nodeType],
61995
61988
  text: this._formulaStr,
61996
61989
  styleIndex: this.styleIndex,
61997
- hideZero: this._hideZero,
61990
+ //hideZero: this._hideZero,
61998
61991
  formularType: this.formularType,
61999
61992
  customProperty: this.customProperty
62000
61993
  };
61994
+ if (!this.hideZero) {
61995
+ retObj.hideZero = this.hideZero;
61996
+ }
62001
61997
  if (isCopy) {
62002
61998
  return retObj;
62003
61999
  }
@@ -62940,7 +62936,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
62940
62936
  key: "json2Node",
62941
62937
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
62942
62938
  var styleIndex = Number(json.styleIndex);
62943
- var hideZero = !json.hideZero ? false : json.hideZero;
62939
+ var hideZero = json.hideZero === undefined ? true : json.hideZero;
62944
62940
  var formularType = FormularType.ftSum;
62945
62941
  if (json.formularType) {
62946
62942
  formularType = Number(json.formularType);
@@ -63000,10 +62996,10 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
63000
62996
  /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_19__);
63001
62997
  /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(39714);
63002
62998
  /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20__);
63003
- /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(23157);
63004
- /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_21__);
63005
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(9653);
63006
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_22__);
62999
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(9653);
63000
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_21__);
63001
+ /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(23157);
63002
+ /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_22__);
63007
63003
  /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(66992);
63008
63004
  /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_23__);
63009
63005
  /* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(51532);
@@ -63025,9 +63021,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
63025
63021
  /* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(32629);
63026
63022
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(74089);
63027
63023
  /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(51760);
63028
- /* harmony import */ var _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(91404);
63029
- /* harmony import */ var _editor_draw_drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(15694);
63030
-
63024
+ /* harmony import */ var _editor_draw_drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(15694);
63031
63025
 
63032
63026
 
63033
63027
 
@@ -64532,26 +64526,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64532
64526
  cols = pto.col;
64533
64527
  if (to.colSpan > 1) {
64534
64528
  cols = pto.col + to.colSpan - 1;
64535
- } //else {
64536
- // const tableProperty = {
64537
- // canAddRow: this.tableProperty.canAddRow,
64538
- // canAddCol: this.tableProperty.canAddCol,
64539
- // canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
64540
- // canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
64541
- // canDeleteRow: this.tableProperty.canDeleteRow,
64542
- // canDeleteTable: this.tableProperty.canDeleteTable,
64543
- // continuePrintBorders: this.tableProperty.continuePrintBorders,
64544
- // customProperties: this.tableProperty.customProperties,
64545
- // layoutFullLine: this.tableProperty.layoutFullLine,
64546
- // tightLineSpace: this.tableProperty.tightLineSpace,
64547
- // isAutoChangeLine: this.tableProperty.isAutoChangeLine,
64548
- // autoLineHeight: this.tableProperty.autoLineHeight,
64549
- // fixedOnePage: this.tableProperty.fixedOnePage,
64550
- // isUsePopEdit: this.tableProperty.isUsePopEdit,
64551
- // isSignLock: this.tableProperty.isSignLock,
64552
- // isLock: this.tableProperty.isLock
64553
- // };
64554
- //}
64529
+ }
64555
64530
  }
64556
64531
  //for (let i = pfrom.row; i <= this.rowInfos.length-1; i++) {
64557
64532
  for (var i = pfrom.row; i <= rows; i++) {
@@ -64581,24 +64556,23 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64581
64556
  if (rowInfo.rowProperty.customProperties.length === 0) {
64582
64557
  delete rowPropertyJson["customProperties"];
64583
64558
  }
64584
- }
64585
- // else if (keysName[k] === "dataSource") {
64586
- // if (rowInfo.rowProperty.dataSource === undefined) {
64587
- // delete rowPropertyJson["dataSource"];
64588
- // }
64589
- // }
64590
- else {
64559
+ } else {
64591
64560
  if (rowPropertyJson[keysName[k]] === defaultRowPropJson[keysName[k]]) {
64592
64561
  delete rowPropertyJson[keysName[k]];
64593
64562
  }
64594
64563
  }
64595
64564
  }
64596
- rowInfosArray.push({
64597
- rowHeight: rowInfo.rowHeight,
64565
+ var rowProp = {
64566
+ rowHeight: rowInfo.rowHeight
64598
64567
  //heightFixed: rowInfo.heightFixed,
64599
64568
  //rowBaseDTop: rowInfo.rowBaseDTop,
64600
- rowProperty: rowPropertyJson
64601
- });
64569
+ //rowProperty: rowPropertyJson
64570
+ };
64571
+
64572
+ if (Object.keys(rowPropertyJson).length > 0) {
64573
+ rowProp.rowProperty = rowPropertyJson;
64574
+ }
64575
+ rowInfosArray.push(rowProp);
64602
64576
  }
64603
64577
  var defaultColProp = {
64604
64578
  editorProperty: _TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS[_TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS.None],
@@ -64638,17 +64612,31 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64638
64612
  };
64639
64613
  var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
64640
64614
  var colKeysName = Object.keys(defaultColProp);
64615
+ if (colInfo.colProperty.customProperties.length === 0 || colInfo.colProperty.customProperties[0].length === 0) {
64616
+ delete colPropertyJson["customProperties"];
64617
+ }
64641
64618
  for (var _k = 0; _k < colKeysName.length; _k++) {
64642
64619
  if (colPropertyJson[colKeysName[_k]] === defaultColPropJson[colKeysName[_k]]) {
64643
64620
  delete colPropertyJson[colKeysName[_k]];
64644
64621
  }
64645
64622
  }
64646
- colInfosArray.push({
64647
- colWidth: colInfo.colWidth,
64648
- widthFixed: colInfo.widthFixed,
64649
- dLeft: colInfo.dLeft,
64650
- colProperty: colPropertyJson
64651
- });
64623
+ var cinfo = {
64624
+ colWidth: colInfo.colWidth
64625
+ //widthFixed: colInfo.widthFixed,
64626
+ //dLeft: colInfo.dLeft,
64627
+ //colProperty: colPropertyJson
64628
+ };
64629
+
64630
+ if (colInfo.widthFixed) {
64631
+ cinfo.widthFixed = colInfo.widthFixed;
64632
+ }
64633
+ if (colInfo.dLeft > 0) {
64634
+ cinfo.dLeft = colInfo.dLeft;
64635
+ }
64636
+ if (Object.keys(colPropertyJson).length > 0) {
64637
+ cinfo.colProperty = colPropertyJson;
64638
+ }
64639
+ colInfosArray.push(cinfo);
64652
64640
  }
64653
64641
  var defaultCellProp = {
64654
64642
  //title: "",
@@ -64665,7 +64653,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64665
64653
  customProperties: "",
64666
64654
  //lightCellBorders: false,
64667
64655
  //dataSource: "",
64668
- backColor: "transparent",
64656
+ backColor: "#FFFFFF",
64669
64657
  editorProperty: _TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS.None,
64670
64658
  downListProperty: "",
64671
64659
  dateTimeProperty: "",
@@ -64761,79 +64749,114 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64761
64749
  }
64762
64750
  }
64763
64751
  }
64752
+ //const rowInfos = { defaultRowProperty: defaultRowProp, item: rowInfosArray };
64753
+ //const colInfos = { defaultColProperty: defaultColProp, item: colInfosArray };
64754
+ //const childNodes = { defaultCellProperty: defaultCellProp, item: rowArrays };
64764
64755
  var rowInfos = {
64765
- defaultRowProperty: defaultRowProp,
64766
64756
  item: rowInfosArray
64767
64757
  };
64768
64758
  var colInfos = {
64769
- defaultColProperty: defaultColProp,
64770
64759
  item: colInfosArray
64771
64760
  };
64772
64761
  var childNodes = {
64773
- defaultCellProperty: defaultCellProp,
64774
64762
  item: rowArrays
64775
64763
  };
64776
64764
  var customProperties = {
64777
64765
  customProperty: Array(this.tableProperty.customProperties)
64778
64766
  };
64779
- // const childNodes = [...rowArrays];
64780
- //const rowCount = Math.abs(pfrom.row - pto.row) + 1;
64781
- //const colCount = Math.abs(pfrom.col - pto.col) + 1;
64782
- //const rowCount = Math.abs(pfrom.row - rowInfos.item.length);
64783
- //const colCount = Math.abs(pfrom.col - colInfos.item.length);
64784
64767
  var rowCount = rowInfos.item.length;
64785
64768
  var colCount = colInfos.item.length;
64786
- var tableProperty = {
64787
- canAddRow: this.tableProperty.canAddRow,
64788
- canAddCol: this.tableProperty.canAddCol,
64789
- canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
64790
- canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
64791
- canDeleteRow: this.tableProperty.canDeleteRow,
64792
- canDeleteTable: this.tableProperty.canDeleteTable,
64793
- continuePrintBorders: this.tableProperty.continuePrintBorders,
64794
- //customProperties: this.tableProperty.customProperties,
64795
- customProperties: customProperties,
64796
- layoutFullLine: this.tableProperty.layoutFullLine,
64797
- tightLineSpace: this.tableProperty.tightLineSpace,
64798
- isAutoChangeLine: this.tableProperty.isAutoChangeLine,
64799
- autoLineHeight: this.tableProperty.autoLineHeight,
64800
- fixedOnePage: this.tableProperty.fixedOnePage,
64801
- isUsePopEdit: this.tableProperty.isUsePopEdit,
64802
- isSignLock: this.tableProperty.isSignLock,
64803
- isLock: this.tableProperty.isLock
64804
- };
64769
+ // const tableProperty = {
64770
+ // canAddRow: this.tableProperty.canAddRow,
64771
+ // canAddCol: this.tableProperty.canAddCol,
64772
+ // canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
64773
+ // canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
64774
+ // canDeleteRow: this.tableProperty.canDeleteRow,
64775
+ // canDeleteTable: this.tableProperty.canDeleteTable,
64776
+ // continuePrintBorders: this.tableProperty.continuePrintBorders,
64777
+ // customProperties,
64778
+ // layoutFullLine: this.tableProperty.layoutFullLine,
64779
+ // tightLineSpace: this.tableProperty.tightLineSpace,
64780
+ // isAutoChangeLine: this.tableProperty.isAutoChangeLine,
64781
+ // autoLineHeight: this.tableProperty.autoLineHeight,
64782
+ // fixedOnePage: this.tableProperty.fixedOnePage,
64783
+ // isUsePopEdit: this.tableProperty.isUsePopEdit,
64784
+ // isSignLock: this.tableProperty.isSignLock,
64785
+ // isLock: this.tableProperty.isLock,
64786
+ // };
64787
+ var tableProperty = {};
64788
+ if (this.tableProperty.canAdjustRowHeight) {
64789
+ tableProperty.canAdjustRowHeight = this.tableProperty.canAdjustRowHeight;
64790
+ }
64791
+ if (this.tableProperty.canAdjustRowWidth) {
64792
+ tableProperty.canAdjustRowWidth = this.tableProperty.canAdjustRowWidth;
64793
+ }
64794
+ if (!this.tableProperty.canAddRow) {
64795
+ tableProperty.canAddRow = this.tableProperty.canAddRow;
64796
+ }
64797
+ if (this.tableProperty.canAddCol === false) {
64798
+ tableProperty.canAddCol = this.tableProperty.canAddCol;
64799
+ }
64800
+ if (!this.tableProperty.canDeleteRow) {
64801
+ tableProperty.canDeleteRow = this.tableProperty.canDeleteRow;
64802
+ }
64803
+ if (!this.tableProperty.canDeleteTable) {
64804
+ tableProperty.canDeleteTable = this.tableProperty.canDeleteTable;
64805
+ }
64806
+ if (this.tableProperty.continuePrintBorders) {
64807
+ tableProperty.continuePrintBorders = this.tableProperty.continuePrintBorders;
64808
+ }
64809
+ if (this.tableProperty.isAutoChangeLine) {
64810
+ tableProperty.isAutoChangeLine = this.tableProperty.isAutoChangeLine;
64811
+ }
64812
+ if (this.tableProperty.autoLineHeight.toString() !== '0.53') {
64813
+ tableProperty.autoLineHeight = Number(this.tableProperty.autoLineHeight);
64814
+ }
64815
+ if (this.tableProperty.fixedOnePage) {
64816
+ tableProperty.fixedOnePage = this.tableProperty.fixedOnePage;
64817
+ }
64818
+ if (this.tableProperty.isUsePopEdit) {
64819
+ tableProperty.isUsePopEdit = this.tableProperty.isUsePopEdit;
64820
+ }
64821
+ if (this.tableProperty.isSignLock) {
64822
+ tableProperty.isSignLock = this.tableProperty.isSignLock;
64823
+ }
64824
+ if (this.tableProperty.isLock) {
64825
+ tableProperty.isLock = this.tableProperty.isLock;
64826
+ }
64827
+ if (this.tableProperty.customProperties.length > 0 && this.tableProperty.customProperties[0]) {
64828
+ tableProperty.customProperties = customProperties;
64829
+ }
64805
64830
  var retJson = {
64806
64831
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_28__/* .NodeType */ .Jq[this.nodeType],
64807
64832
  rowCount: rowCount,
64808
64833
  colCount: colCount,
64809
- borderVisible: this.borderVisible.toString(),
64810
- borderWidth: this._borderWidth,
64811
- headerRowCount: this.headerRowCount,
64812
- tableProperty: tableProperty,
64834
+ //borderVisible: this.borderVisible.toString(),
64835
+ //borderWidth: this._borderWidth,
64836
+ //headerRowCount: this.headerRowCount,
64837
+ //tableProperty: tableProperty,
64813
64838
  rowInfos: rowInfos,
64814
64839
  colInfos: colInfos,
64815
64840
  childNodes: childNodes
64816
64841
  };
64842
+ if (this.borderVisible.toString() !== "true,true,true,true") {
64843
+ retJson.borderVisible = this.borderVisible.toString();
64844
+ }
64845
+ if (this.borderWidth !== 1) {
64846
+ retJson.borderWidth = this.borderWidth;
64847
+ }
64848
+ if (this.headerRowCount !== 0) {
64849
+ retJson.headerRowCount = this.headerRowCount;
64850
+ }
64851
+ if (Object.keys(tableProperty).length > 0) {
64852
+ retJson.tableProperty = tableProperty;
64853
+ }
64817
64854
  if (isCopy) {
64818
64855
  return retJson;
64819
64856
  }
64820
64857
  return {
64821
64858
  "TableNode": retJson
64822
64859
  };
64823
- // return {
64824
- // nodeType: NodeType[this.nodeType],
64825
- // rowCount, //: this.rowCount,
64826
- // colCount, //: this.colCount,
64827
- // borderVisible: this.borderVisible.toString(),
64828
- // borderWidth: this._borderWidth,
64829
- // headerRowCount: this.headerRowCount,
64830
- // tableProperty: tableProperty,
64831
- // rowInfos,
64832
- // colInfos,
64833
- // //paragraphNode: this._paragraphNode.node2Json(),
64834
- // // cellNodes: cellNodes,
64835
- // childNodes,
64836
- // };
64837
64860
  }
64838
64861
  }, {
64839
64862
  key: "calcRowSpanColsSpan",
@@ -64952,7 +64975,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64952
64975
  var mainArea = hoEditorFactory.drawPageTree.getMainRootArea(this.drawTable.drawPageTables[0]);
64953
64976
  if (mainArea) {
64954
64977
  var drawTop = this.drawTable.drawPageTables[0].y;
64955
- if (mainArea.contains(this.drawTable.drawPageTables[0]) && this.drawTable.drawPageTables[0] instanceof _editor_draw_drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_41__/* .DrawPageTable */ .ox && this.drawTable.drawPageTables[0].table.drawTable.drawPageTables.indexOf(this.drawTable.drawPageTables[0]) > 0) {
64978
+ if (mainArea.contains(this.drawTable.drawPageTables[0]) && this.drawTable.drawPageTables[0] instanceof _editor_draw_drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_40__/* .DrawPageTable */ .ox && this.drawTable.drawPageTables[0].table.drawTable.drawPageTables.indexOf(this.drawTable.drawPageTables[0]) > 0) {
64956
64979
  drawTop = 0;
64957
64980
  }
64958
64981
  hoEditorFactory.drawPageTree.update(mainArea, dpos[0].drawRoots, drawTop, dpos[0].index, dpos[0].index);
@@ -65470,29 +65493,31 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65470
65493
  key: "json2Node",
65471
65494
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
65472
65495
  json = this.transType(json);
65473
- var tableProperty = json.tableProperty;
65474
- tableProperty.customProperties = Array.isArray(tableProperty.customProperties.customProperty) ? tableProperty.customProperties.customProperty : Array(tableProperty.customProperties.customProperty);
65475
- tableProperty.tightLineSpace = tableProperty["tightLineSpace"] || false;
65476
- tableProperty.layoutFullLinisAutoChangeLineidth = tableProperty["canAdjustRowWidth"] || false;
65477
- tableProperty.canAdjustRowHeight = tableProperty["canAdjustRowHeight"] || false;
65478
- tableProperty.fixedOnePage = tableProperty["fixedOnePage"] || false;
65479
- tableProperty.isUsePopEdit = tableProperty["isUsePopEdit"] || false;
65480
- tableProperty.isAutoChangeLine = tableProperty["isAutoChangeLine"] || false;
65481
- tableProperty.autoLineHeight = tableProperty["autoLineHeight"] || 0.53;
65482
- tableProperty.autoLineHeightPx = _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_40__/* .UnitConvert */ .P.instance.mmConversionPx(parseFloat(tableProperty.autoLineHeight) * 10, false);
65483
- tableProperty.isSignLock = tableProperty["isSignLock"] || false;
65484
- tableProperty.isLock = tableProperty["isLock"] || false;
65485
- // console.log("json2node", 1);
65496
+ var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .TableProperty */ .vE("");
65497
+ if (json.tableProperty) {
65498
+ tableProperty.canAdjustRowHeight = json.tableProperty["canAdjustRowHeight"] || false;
65499
+ tableProperty.canAdjustRowWidth = json.tableProperty["canAdjustRowWidth"] || false;
65500
+ tableProperty.canAddRow = json.tableProperty["canAddRow"] || true;
65501
+ tableProperty.canAddCol = json.tableProperty["canAddCol"] || true;
65502
+ tableProperty.canDeleteRow = json.tableProperty["canDeleteRow"] || true;
65503
+ tableProperty.canDeleteTable = json.tableProperty["canDeleteTable"] || true;
65504
+ tableProperty.continuePrintBorders = json.tableProperty["continuePrintBorders"] || false;
65505
+ tableProperty.isAutoChangeLine = json.tableProperty["isAutoChangeLine"] || false;
65506
+ tableProperty.autoLineHeight = json.tableProperty["autoLineHeight"] ? Number(json.tableProperty["autoLineHeight"]) : 0.53;
65507
+ tableProperty.fixedOnePage = json.tableProperty["fixedOnePage"] || false;
65508
+ tableProperty.isUsePopEdit = json.tableProperty["isUsePopEdit"] || false;
65509
+ tableProperty.isSignLock = json.tableProperty["isSignLock"] || false;
65510
+ tableProperty.isLock = json.tableProperty["isLock"] || false;
65511
+ tableProperty.customProperties = json.tableProperty.customProperties ? Array.isArray(json.tableProperty.customProperties.customProperty) ? json.tableProperty.customProperties.customProperty : Array(json.tableProperty.customProperties.customProperty) : "";
65512
+ }
65486
65513
  var tableNode = new TableNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, Number(json.rowCount), Number(json.colCount), tableProperty);
65487
- // console.log("json2node", 2);
65488
65514
  tableNode.rowCount = Number(json.rowCount);
65489
65515
  tableNode.colCount = Number(json.colCount);
65490
- tableNode.borderVisible = json.borderVisible;
65491
- tableNode._borderWidth = Number(json.borderWidth);
65492
- tableNode.headerRowCount = Number(json.headerRowCount);
65493
- // console.log("json2node", 3);
65516
+ tableNode.borderVisible = json.borderVisible === undefined ? "true,true,true,true" : json.borderVisible;
65517
+ tableNode._borderWidth = json.borderWidth === undefined ? 1 : Number(json.borderWidth);
65518
+ tableNode.headerRowCount = json.headerRowCount === undefined ? 0 : Number(json.headerRowCount);
65494
65519
  //行高处理
65495
- var defaultRowProp = json.rowInfos.defaultRowProperty;
65520
+ //const defaultRowProp = json.rowInfos.defaultRowProperty;
65496
65521
  var rowInfosArr = json.rowInfos.item;
65497
65522
  if (!rowInfosArr.length) {
65498
65523
  rowInfosArr = Array(json.rowInfos.item);
@@ -65500,9 +65525,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65500
65525
  var _loop = function _loop() {
65501
65526
  var rowInfo = rowInfosArr[i];
65502
65527
  tableNode.rowInfos[i].rowHeight = Number(rowInfo.rowHeight);
65503
- //rowInfo.heightFixed = rowInfo["heightFixed"] || false;
65504
- //tableNode.rowInfos[i].heightFixed = rowInfo.heightFixed;
65505
- //tableNode.rowInfos[i].rowBaseDTop = rowInfo.rowBaseDTop;
65506
65528
  var rowProperty = rowInfo.rowProperty;
65507
65529
  var assignvalue = function assignvalue(target, source) {
65508
65530
  Object.keys(source).forEach(function (value) {
@@ -65535,33 +65557,15 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65535
65557
  }
65536
65558
  });
65537
65559
  };
65538
- assignvalue(tableNode.rowInfos[i].rowProperty, rowProperty);
65539
- // tableNode.rowInfos[i].rowProperty.tabKeyInsNewLine =
65540
- // rowProperty["tabKeyInsNewLine"] || false;
65541
- // tableNode.rowInfos[i].rowProperty.printCellBg =
65542
- // rowProperty["printCellBg"] || false;
65543
- // tableNode.rowInfos[i].rowProperty.printCellBorders =
65544
- // rowProperty["printCellBorders"] || false;
65545
- // tableNode.rowInfos[i].rowProperty.forcedPageBreak =
65546
- // rowProperty["forcedPageBreak"] || false;
65547
- // tableNode.rowInfos[i].rowProperty.sameLineCanAcrossPages =
65548
- // rowProperty["sameLineCanAcrossPages"] || false;
65549
- // tableNode.rowInfos[i].rowProperty.repeatAsTitleAtPageTop =
65550
- // rowProperty["repeatAsTitleAtPageTop"] || false;
65551
- // tableNode.rowInfos[i].rowProperty.isAutoRaiseHeight =
65552
- // rowProperty["isAutoRaiseHeight"] || false;
65553
- // tableNode.rowInfos[i].rowProperty.isSpecifyHeight =
65554
- // rowProperty["isSpecifyHeight"] || false;
65555
- // tableNode.rowInfos[i].rowProperty.rowHeight = Number(
65556
- // rowProperty["rowHeight"]
65557
- // );
65560
+ if (rowProperty && Object.keys(rowProperty).length > 0) {
65561
+ assignvalue(tableNode.rowInfos[i].rowProperty, rowProperty);
65562
+ }
65558
65563
  };
65559
65564
  for (var i = 0; i < rowInfosArr.length; i++) {
65560
65565
  _loop();
65561
65566
  }
65562
- // console.log("json2node", 4);
65563
65567
  //列宽处理
65564
- var defaultColProp = json.colInfos.defaultColProperty;
65568
+ //const defaultColProp = json.colInfos.defaultColProperty;
65565
65569
  var colInfosArr = json.colInfos.item;
65566
65570
  if (!colInfosArr.length) {
65567
65571
  colInfosArr = Array(json.colInfos.item);
@@ -65570,18 +65574,18 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65570
65574
  var colInfo = colInfosArr[_i6];
65571
65575
  tableNode.colInfos[_i6].colWidth = Number(colInfo.colWidth);
65572
65576
  tableNode.colInfos[_i6].widthFixed = colInfo["widthFixed"] || false;
65573
- tableNode.colInfos[_i6].dLeft = Number(colInfo.dLeft);
65577
+ tableNode.colInfos[_i6].dLeft = colInfo.dLeft === undefined ? 0 : Number(colInfo.dLeft);
65574
65578
  var colProperty = colInfo.colProperty;
65575
65579
  if (colProperty) {
65576
65580
  if (colProperty.align) {
65577
65581
  tableNode.colInfos[_i6].colProperty.align = Number(_TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .VAlign */ .TR[colProperty.align]);
65578
65582
  } else {
65579
- tableNode.colInfos[_i6].colProperty.align = Number(_TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .VAlign */ .TR[defaultColProp.align]);
65583
+ tableNode.colInfos[_i6].colProperty.align = _TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .VAlign */ .TR.vatop;
65580
65584
  }
65581
65585
  if (colProperty.editorProperty) {
65582
65586
  tableNode.colInfos[_i6].colProperty.editorProperty = Number(_TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS[colProperty.editorProperty]);
65583
65587
  } else {
65584
- tableNode.colInfos[_i6].colProperty.editorProperty = Number(_TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS[defaultColProp.editorProperty]);
65588
+ tableNode.colInfos[_i6].colProperty.editorProperty = _TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS.None;
65585
65589
  }
65586
65590
  tableNode.colInfos[_i6].colProperty.width = colProperty.width ? Number(colProperty.width) : 0;
65587
65591
  tableNode.colInfos[_i6].colProperty.isSpecifyWidth = colProperty.isSpecifyWidth;
@@ -65608,13 +65612,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65608
65612
  }
65609
65613
  }
65610
65614
  }
65611
- // console.log("json2node", 5);
65612
65615
  //单元格处理
65613
65616
  var rows = tableNode.rows;
65614
- // let cellNodes = json.childNodes;
65615
- // if (cellNodes.length === undefined) {
65616
- // cellNodes = Array(cellNodes);
65617
- // }
65618
65617
  var transArr = function transArr(info) {
65619
65618
  var row = new Array();
65620
65619
  if (!Array.isArray(info.childNodes.item)) {
@@ -65655,8 +65654,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65655
65654
  return cells;
65656
65655
  };
65657
65656
  var cellNodes = transArr(json); //table.childNodes.childNodes
65658
- // console.log("json2node", 7);
65659
- // console.log(cellNodes);
65660
65657
  var existMap = new Map();
65661
65658
  var rowsMap = new Map();
65662
65659
  for (var _i7 = 0; _i7 < cellNodes.length; _i7++) {
@@ -65667,7 +65664,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65667
65664
  rowsMap.set(rowNo, _aRow);
65668
65665
  }
65669
65666
  rowsMap.delete(NaN);
65670
- var defaultCellProperty = json.childNodes.defaultCellProperty;
65667
+ //const defaultCellProperty = json.childNodes.defaultCellProperty;
65671
65668
  var aRow;
65672
65669
  for (var s = 0; s < cellNodes.length; s++) {
65673
65670
  var _node = cellNodes[s];
@@ -65675,14 +65672,12 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65675
65672
  var _rowNo = parseInt(_node.rowNo);
65676
65673
  var colNo = parseInt(_node.colNo);
65677
65674
  existMap.set(_rowNo + "-" + colNo, 1);
65678
- aRow = _CellNode__WEBPACK_IMPORTED_MODULE_27__/* .CellNode */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign);
65675
+ aRow = _CellNode__WEBPACK_IMPORTED_MODULE_27__/* .CellNode */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows,
65676
+ //defaultCellProperty,
65677
+ isPaste, isClearSign);
65679
65678
  }
65680
65679
  }
65681
- // console.log("json2node", 8);
65682
- //console.log(existMap);
65683
65680
  //删除掉不存在的合并节点
65684
- // for (let x = 0; x < tableNode.rows.length; x++) {
65685
- //for (let y = 0; y < tableNode.rows[x].length; y++) {
65686
65681
  for (var x = 0; x < tableNode._rowCount; x++) {
65687
65682
  for (var y = 0; y < tableNode._colCount; y++) {
65688
65683
  if (!existMap.get(x + "-" + y)) {
@@ -65869,7 +65864,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65869
65864
  /*
65870
65865
  * @Author: your name
65871
65866
  * @Date: 2020-11-03 15:17:54
65872
- * @LastEditTime: 2023-09-13 15:54:25
65867
+ * @LastEditTime: 2023-09-14 16:25:00
65873
65868
  * @LastEditors: liyanan 2441631434@qq.com
65874
65869
  * @Description: In User Settings Edit
65875
65870
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -66321,8 +66316,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
66321
66316
  //允许被删除
66322
66317
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_enableGlobalColor", true);
66323
66318
  //启用全局文本颜色
66324
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_defaultValue", '');
66325
- //默认值
66319
+ //private _defaultValue = ''; //默认值
66326
66320
  //private _importStyle!: ImportStyle;//输入样式
66327
66321
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_downListProperty", void 0);
66328
66322
  //下拉列表属性
@@ -66640,16 +66634,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
66640
66634
  this._enableGlobalColor = value;
66641
66635
  }
66642
66636
  }
66643
- }, {
66644
- key: "defaultValue",
66645
- get: function get() {
66646
- return this._defaultValue;
66647
- },
66648
- set: function set(value) {
66649
- if (this._defaultValue !== value) {
66650
- this._defaultValue = value;
66651
- }
66652
- }
66637
+ // get defaultValue(): string {
66638
+ // return this._defaultValue;
66639
+ // }
66640
+ // set defaultValue(value: string) {
66641
+ // if (this._defaultValue !== value) {
66642
+ // this._defaultValue = value;
66643
+ // }
66644
+ // }
66653
66645
  // get importStyle(): ImportStyle {
66654
66646
  // return this._importStyle;
66655
66647
  // }
@@ -67644,7 +67636,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
67644
67636
  canModifyContent: this.canModifyContent,
67645
67637
  isAllowDelete: this.isAllowDelete,
67646
67638
  enableGlobalColor: this.enableGlobalColor,
67647
- defaultValue: this.defaultValue,
67639
+ //defaultValue: this.defaultValue,
67648
67640
  downListProperty: this.downListProperty,
67649
67641
  //dataVerifyFormat: this.dataVerifyFormat,
67650
67642
  //bandDataSource: this.bandDataSource,
@@ -67673,34 +67665,76 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
67673
67665
  innerIdentifier: this.innerIdentifier,
67674
67666
  dataMetaIdentifier: this.dataMetaIdentifier,
67675
67667
  identifierFormat: this.identifierFormat,
67676
- isSynchro: this.isSynchro,
67668
+ //isSynchro: this.isSynchro,
67677
67669
  text: this.text,
67678
67670
  keyValue: this.keyValue,
67679
67671
  value: this.value,
67680
67672
  name: this.name,
67681
- tipText: this.tipText,
67673
+ //tipText: this.tipText,
67682
67674
  labelText: this.labelText,
67683
- //readOnlyStatus: this.readOnlyStatus,
67684
- fixedWidth: this.fixedWidth,
67685
- isCentered: this.isCentered,
67686
- canModifyContent: this.canModifyContent,
67687
- isAllowDelete: this.isAllowDelete,
67688
- enableGlobalColor: this.enableGlobalColor,
67689
- defaultValue: this.defaultValue,
67690
- downListProperty: this.downListProperty,
67691
- //dataVerifyFormat: this.dataVerifyFormat,
67692
- //bandDataSource: this.bandDataSource,
67675
+ //fixedWidth: this.fixedWidth,
67676
+ //isCentered: this.isCentered,
67677
+ //canModifyContent: this.canModifyContent,
67678
+ //isAllowDelete: this.isAllowDelete,
67679
+ //enableGlobalColor: this.enableGlobalColor,
67680
+ //defaultValue: this.defaultValue,
67681
+ //downListProperty: this.downListProperty,
67693
67682
  customProperty: this.customProperty,
67694
- alignWithBlocked: this.alignWithBlocked,
67683
+ //alignWithBlocked: this.alignWithBlocked,
67695
67684
  readType: this.readType,
67696
- insCheckSyncUpdateList: this.insCheckSyncUpdateList,
67697
- hideDuringPrint: this.hideDuringPrint,
67698
- notReplaceElement: this.notReplaceElement,
67699
- valueArea: this.valueArea,
67700
- includesKeyword: this.includesKeyword,
67701
- isElementLink: this.isElementLink,
67685
+ //insCheckSyncUpdateList: this.insCheckSyncUpdateList,
67686
+ //hideDuringPrint: this.hideDuringPrint,
67687
+ //notReplaceElement: this.notReplaceElement,
67688
+ //valueArea: this.valueArea,
67689
+ //includesKeyword: this.includesKeyword,
67690
+ //isElementLink: this.isElementLink,
67702
67691
  childNodes: childNodes
67703
67692
  };
67693
+ if (this.isSynchro) {
67694
+ retObj.isSynchro = this.isSynchro;
67695
+ }
67696
+ if (this.tipText) {
67697
+ retObj.tipText = this.tipText;
67698
+ }
67699
+ if (this.fixedWidth > 0) {
67700
+ retObj.fixedWidth = this.fixedWidth;
67701
+ }
67702
+ if (this.isCentered) {
67703
+ retObj.isCentered = this.isCentered;
67704
+ }
67705
+ if (!this.canModifyContent) {
67706
+ retObj.canModifyContent = this.canModifyContent;
67707
+ }
67708
+ if (this.isAllowDelete) {
67709
+ retObj.isAllowDelete = this.isAllowDelete;
67710
+ }
67711
+ if (this.enableGlobalColor) {
67712
+ retObj.enableGlobalColor = this.enableGlobalColor;
67713
+ }
67714
+ if (this.inputFieldType === 1) {
67715
+ retObj.downListProperty = this.downListProperty;
67716
+ }
67717
+ if (this.alignWithBlocked) {
67718
+ retObj.alignWithBlocked = this.alignWithBlocked;
67719
+ }
67720
+ if (this.insCheckSyncUpdateList) {
67721
+ retObj.insCheckSyncUpdateList = this.insCheckSyncUpdateList;
67722
+ }
67723
+ if (this.hideDuringPrint) {
67724
+ retObj.hideDuringPrint = this.hideDuringPrint;
67725
+ }
67726
+ if (this.notReplaceElement) {
67727
+ retObj.notReplaceElement = this.notReplaceElement;
67728
+ }
67729
+ if (this.valueArea !== "[]") {
67730
+ retObj.valueArea = this.valueArea;
67731
+ }
67732
+ if (this.includesKeyword !== "[]") {
67733
+ retObj.includesKeyword = this.includesKeyword;
67734
+ }
67735
+ if (this.isElementLink) {
67736
+ retObj.isElementLink = this.isElementLink;
67737
+ }
67704
67738
  return {
67705
67739
  TextInputFieldNode: retObj
67706
67740
  };
@@ -67776,22 +67810,25 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
67776
67810
  // }
67777
67811
  json.dataId = hoEditorFactory.gernerateCode.generateID('Field');
67778
67812
  }
67779
- json.canModifyContent = !json.canModifyContent ? false : json.canModifyContent;
67813
+ json.canModifyContent = json.canModifyContent === undefined ? true : json.canModifyContent;
67780
67814
  json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
67781
67815
  json.enableGlobalColor = !json.enableGlobalColor ? false : json.enableGlobalColor;
67782
- json.fixedWidth = Number(json.fixedWidth);
67816
+ json.fixedWidth = Number(json.fixedWidth === undefined ? 0 : json.fixedWidth);
67783
67817
  json.isCentered = !json.isCentered ? false : json.isCentered;
67784
67818
  json.inputFieldType = InputFieldType[json.inputFieldType];
67785
- json.downListProperty._allowMultiSelected = json.downListProperty.allowMultiSelected ? json.downListProperty.allowMultiSelected : json.downListProperty._allowMultiSelected;
67786
- json.downListProperty._isMultiLinesDisplay = json.downListProperty.isMultiLinesDisplay ? json.downListProperty.isMultiLinesDisplay : json.downListProperty._isMultiLinesDisplay == "true" || json.downListProperty._isMultiLinesDisplay == true ? true : false;
67819
+ if (json.inputFieldType == 1) {
67820
+ json.downListProperty._allowMultiSelected = json.downListProperty.allowMultiSelected ? json.downListProperty.allowMultiSelected : json.downListProperty._allowMultiSelected;
67821
+ json.downListProperty._isMultiLinesDisplay = json.downListProperty.isMultiLinesDisplay ? json.downListProperty.isMultiLinesDisplay : json.downListProperty._isMultiLinesDisplay == "true" || json.downListProperty._isMultiLinesDisplay == true ? true : false;
67822
+ json.downListProperty._mutexSelect = json.downListProperty.mutexSelect ? json.downListProperty.mutexSelect : json.downListProperty._mutexSelect == "true" || json.downListProperty._mutexSelect == true ? true : false;
67823
+ }
67787
67824
  json.alignWithBlocked = !json.alignWithBlocked ? false : json.alignWithBlocked;
67788
67825
  json.isSynchro = !json.isSynchro ? false : json.isSynchro;
67789
67826
  json.readType = json.readType ? Number(json.readType) : -1;
67790
67827
  json.insCheckSyncUpdateList = !json.insCheckSyncUpdateList ? false : json.insCheckSyncUpdateList;
67791
67828
  json.hideDuringPrint = !json.hideDuringPrint ? false : json.hideDuringPrint;
67792
67829
  json.notReplaceElement = !json.notReplaceElement ? false : json.notReplaceElement;
67793
- json.includesKeyword = !json.includesKeyword ? false : json.includesKeyword;
67794
- json.valueArea = !json.valueArea ? false : json.valueArea;
67830
+ json.includesKeyword = !json.includesKeyword ? "[]" : json.includesKeyword;
67831
+ json.valueArea = !json.valueArea ? "[]" : json.valueArea;
67795
67832
  json.isElementLink = !json.isElementLink ? false : json.isElementLink;
67796
67833
  var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntField, json);
67797
67834
  // this.insertChild
@@ -77837,12 +77874,14 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
77837
77874
  var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
77838
77875
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DrawRadioAndCheckBox, _DrawCombineNode);
77839
77876
  var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(DrawRadioAndCheckBox);
77840
- function DrawRadioAndCheckBox(hoeditfactoryID, rootPath, node, index, controlStyle, name, isSelected, boxAlign, numericValue, height, textStyle) {
77877
+ function DrawRadioAndCheckBox(hoeditfactoryID, rootPath, node, index, controlStyle,
77878
+ //name: string,
77879
+ isSelected, boxAlign, numericValue, height, textStyle) {
77841
77880
  var _this;
77842
77881
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawRadioAndCheckBox);
77843
77882
  _this = _super.call(this, hoeditfactoryID, rootPath, node, index);
77844
77883
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_controlStyle", void 0);
77845
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_name", void 0);
77884
+ //private _name!: string;
77846
77885
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_isSelected", void 0);
77847
77886
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_boxAlign", void 0);
77848
77887
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_numericValue", void 0);
@@ -77853,7 +77892,7 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
77853
77892
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_dAppendText", void 0);
77854
77893
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_dUnderLine", void 0);
77855
77894
  _this._controlStyle = controlStyle;
77856
- _this._name = name;
77895
+ //this._name = name;
77857
77896
  _this._isSelected = isSelected;
77858
77897
  _this._boxAlign = boxAlign;
77859
77898
  _this._numericValue = numericValue;
@@ -77906,11 +77945,9 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
77906
77945
  get: function get() {
77907
77946
  return this._controlStyle;
77908
77947
  }
77909
- }, {
77910
- key: "nameStr",
77911
- get: function get() {
77912
- return this._name;
77913
- }
77948
+ // get nameStr(): string {
77949
+ // return this._name;
77950
+ // }
77914
77951
  }, {
77915
77952
  key: "dBox",
77916
77953
  get: function get() {
@@ -78094,12 +78131,14 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
78094
78131
  var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
78095
78132
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DrawRadioAndCheckBoxPrint, _DrawCombineNode);
78096
78133
  var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(DrawRadioAndCheckBoxPrint);
78097
- function DrawRadioAndCheckBoxPrint(hoeditfactoryID, rootPath, node, index, controlStyle, name, isSelected, boxAlign, numericValue, height, textStyle) {
78134
+ function DrawRadioAndCheckBoxPrint(hoeditfactoryID, rootPath, node, index, controlStyle,
78135
+ //name: string,
78136
+ isSelected, boxAlign, numericValue, height, textStyle) {
78098
78137
  var _this;
78099
78138
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawRadioAndCheckBoxPrint);
78100
78139
  _this = _super.call(this, hoeditfactoryID, rootPath, node, index);
78101
78140
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_controlStyle", void 0);
78102
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_name", void 0);
78141
+ //private _name!: string;
78103
78142
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_isSelected", void 0);
78104
78143
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_boxAlign", void 0);
78105
78144
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_numericValue", void 0);
@@ -78110,7 +78149,7 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
78110
78149
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_dAppendText", void 0);
78111
78150
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["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), "_dUnderLine", void 0);
78112
78151
  _this._controlStyle = controlStyle;
78113
- _this._name = name;
78152
+ //this._name = name;
78114
78153
  _this._isSelected = isSelected;
78115
78154
  _this._boxAlign = boxAlign;
78116
78155
  _this._numericValue = numericValue;
@@ -78150,11 +78189,9 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
78150
78189
  get: function get() {
78151
78190
  return this._controlStyle;
78152
78191
  }
78153
- }, {
78154
- key: "nameStr",
78155
- get: function get() {
78156
- return this._name;
78157
- }
78192
+ // get nameStr(): string {
78193
+ // return this._name;
78194
+ // }
78158
78195
  }, {
78159
78196
  key: "dBox",
78160
78197
  get: function get() {
@@ -91316,6 +91353,11 @@ var TableDeleteRowUndoUnit = /*#__PURE__*/function () {
91316
91353
  }
91317
91354
  }
91318
91355
  this._table.deleteRows(this._row, this._count);
91356
+ if (this._table.rows[this._row]) {
91357
+ for (var _c = 0; _c < this._table.colCount; _c++) {
91358
+ this._table.rows[this._row][_c].drawCell.needUpdate = true;
91359
+ }
91360
+ }
91319
91361
  this._table.countChildNodes();
91320
91362
  this._table.update();
91321
91363
  }
@@ -177023,7 +177065,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
177023
177065
 
177024
177066
  var map = {
177025
177067
  "./ControlModal.vue": 77004,
177026
- "./barCode/BarCodes.vue": 62814,
177068
+ "./barCode/BarCodes.vue": 72727,
177027
177069
  "./colorPicker/HoColorPicker.vue": 10306,
177028
177070
  "./colorPicker/HoColorPickers.vue": 98181,
177029
177071
  "./commentDialog/CommentDialog.vue": 61720,
@@ -177046,7 +177088,7 @@ var map = {
177046
177088
  "./popers/Title.vue": 85516,
177047
177089
  "./printstyle/PrintLineStyle.vue": 51484,
177048
177090
  "./qrCode/QrCode.vue": 93973,
177049
- "./radioCheckBox/RadioCheckbox.vue": 68763,
177091
+ "./radioCheckBox/RadioCheckbox.vue": 23875,
177050
177092
  "./selectDialog/SelectDialog.vue": 76913,
177051
177093
  "./sign/Sign.vue": 64207,
177052
177094
  "./table/TableCellPoper.vue": 2043,
@@ -214495,8 +214537,8 @@ var es_string_match = __webpack_require__(4723);
214495
214537
  var es_number_constructor = __webpack_require__(9653);
214496
214538
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
214497
214539
  var es_json_stringify = __webpack_require__(38862);
214498
- ;// 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=9bd6cea8&
214499
- var HoDocvue_type_template_id_9bd6cea8_render = function render() {
214540
+ ;// 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=4d76cdc3&
214541
+ var HoDocvue_type_template_id_4d76cdc3_render = function render() {
214500
214542
  var _vm = this,
214501
214543
  _c = _vm._self._c;
214502
214544
  return _c('div', {
@@ -214644,7 +214686,7 @@ var HoDocvue_type_template_id_9bd6cea8_render = function render() {
214644
214686
  }
214645
214687
  }, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
214646
214688
  };
214647
- var HoDocvue_type_template_id_9bd6cea8_staticRenderFns = [];
214689
+ var HoDocvue_type_template_id_4d76cdc3_staticRenderFns = [];
214648
214690
 
214649
214691
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
214650
214692
  var es_array_filter = __webpack_require__(57327);
@@ -215024,7 +215066,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
215024
215066
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
215025
215067
  dPage = hoEditorFactory.drawTree.drawPages[this._pageIndex];
215026
215068
  if (!(aevent.currentTarget === this.stage)) {
215027
- _context.next = 45;
215069
+ _context.next = 49;
215028
215070
  break;
215029
215071
  }
215030
215072
  oldDPage = hoEditorFactory.drawTree.activePage;
@@ -215066,7 +215108,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
215066
215108
  //this._drawPage.drawDomLevel.activeDrawRect,
215067
215109
  aevent.stageX, aevent.stageY);
215068
215110
  if (!startPos) {
215069
- _context.next = 45;
215111
+ _context.next = 49;
215070
215112
  break;
215071
215113
  }
215072
215114
  if (!(!isSameArea && startPos.page)) {
@@ -215086,7 +215128,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
215086
215128
  case 30:
215087
215129
  np = hoEditorFactory.docTree.findNodePositionByPath(startPos.path);
215088
215130
  if (!(np && np.node)) {
215089
- _context.next = 45;
215131
+ _context.next = 49;
215090
215132
  break;
215091
215133
  }
215092
215134
  prevNode = np.node.prevSibling();
@@ -215102,29 +215144,34 @@ var DrawSelectLevel = /*#__PURE__*/function () {
215102
215144
  hoEditorFactory.docTree.selectChange(selectChangeEvent);
215103
215145
  hoEditorFactory.docTree.curDomRange = newRange;
215104
215146
  }
215105
- if (np.node.nodeType === BaseNode/* NodeType */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType */.Jq.ntImage) {
215106
- nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
215107
- hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
215147
+ if (!(np.node.nodeType === BaseNode/* NodeType */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType */.Jq.ntImage)) {
215148
+ _context.next = 39;
215149
+ break;
215108
215150
  }
215151
+ nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
215152
+ hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
215153
+ _context.next = 49;
215154
+ break;
215155
+ case 39:
215109
215156
  if (!(np.node.parentNode instanceof CellNode/* CellNode */.D)) {
215110
- _context.next = 45;
215157
+ _context.next = 49;
215111
215158
  break;
215112
215159
  }
215113
215160
  cellNode = np.node.parentNode;
215114
215161
  colInfos = cellNode.table.colInfos[np.node.parentNode.row.indexOf(np.node.parentNode)];
215115
215162
  if (colInfos.isAllowEdit) {
215116
- _context.next = 40;
215163
+ _context.next = 44;
215117
215164
  break;
215118
215165
  }
215119
215166
  return _context.abrupt("return");
215120
- case 40:
215167
+ case 44:
215121
215168
  rowInfos = cellNode.table.rowInfos[np.node.parentNode.table.rows.indexOf(np.node.parentNode.row)];
215122
215169
  if (!(!rowInfos.isAllowEdit || rowInfos.rowProperty.repeatAsTitleAtPageTop)) {
215123
- _context.next = 43;
215170
+ _context.next = 47;
215124
215171
  break;
215125
215172
  }
215126
215173
  return _context.abrupt("return");
215127
- case 43:
215174
+ case 47:
215128
215175
  colProperty = colInfos.colProperty;
215129
215176
  if (cellNode.table.tableProperty.isUsePopEdit && colProperty.editorProperty !== TableProperty/* EditorProperty */.YS.Sign) {
215130
215177
  _nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(cellNode, 'dblclick', this._pageIndex);
@@ -215170,9 +215217,9 @@ var DrawSelectLevel = /*#__PURE__*/function () {
215170
215217
  }
215171
215218
  }
215172
215219
  }
215173
- case 45:
215220
+ case 49:
215174
215221
  return _context.abrupt("return", true);
215175
- case 46:
215222
+ case 50:
215176
215223
  case "end":
215177
215224
  return _context.stop();
215178
215225
  }
@@ -217644,7 +217691,7 @@ var TextNode = __webpack_require__(27198);
217644
217691
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
217645
217692
  var ParagraphNode = __webpack_require__(67945);
217646
217693
  ;// CONCATENATED MODULE: ./src/components/version.ts
217647
- /* harmony default export */ var version = ('3.1.10');
217694
+ /* harmony default export */ var version = ('3.1.12');
217648
217695
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
217649
217696
  var PoperTipText = __webpack_require__(50987);
217650
217697
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -218087,151 +218134,152 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
218087
218134
  });
218088
218135
  this.poperType = '';
218089
218136
  return;
218090
- }
218091
- if (paintStatus === 4) {
218092
- if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
218093
- var parentNode = node.parentNode;
218094
- if (Number(parentNode.inputFieldType) === 0) {
218095
- this.$emit('dblNodeClick', {
218096
- setActiveDoc: this.setActiveDocIndex,
218097
- node: this.getCurrentSelectNode,
218098
- type: 'modify_node',
218099
- paintStatus: paintStatus
218100
- });
218101
- this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218137
+ } else {
218138
+ if (paintStatus === 4) {
218139
+ if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
218140
+ var parentNode = node.parentNode;
218141
+ if (Number(parentNode.inputFieldType) === 0) {
218142
+ this.$emit('dblNodeClick', {
218143
+ setActiveDoc: this.setActiveDocIndex,
218144
+ node: this.getCurrentSelectNode,
218145
+ type: 'modify_node',
218146
+ paintStatus: paintStatus
218147
+ });
218148
+ this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218149
+ return false;
218150
+ }
218102
218151
  return false;
218103
218152
  }
218104
218153
  return false;
218105
218154
  }
218106
- return false;
218107
- }
218108
- if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
218109
- if (paintStatus === 0) {
218110
- this.hoEditorProvider.setControlProperty('date', 'update', '');
218111
- this.hoEditorProvider.setUpdateNodeValue(node);
218112
- return;
218113
- }
218114
- if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
218115
- return false;
218116
- }
218117
- this.computedPoperPosition(node, pageIndex);
218118
- this.poperType = 'datePoper';
218119
- } else if (node instanceof DownListNode/* DownListNode */.yF) {
218120
- if (paintStatus === 0) {
218121
- this.hoEditorProvider.setControlProperty('select', 'update', '');
218122
- return;
218123
- }
218124
- if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
218125
- return;
218126
- }
218127
- var callback = function callback(list) {
218128
- _this5.computedPoperPosition(node, pageIndex);
218129
- if (Array.isArray(list) && list.length > 0) {
218130
- _this5.poperSelectList = list;
218131
- } else {
218132
- _this5.poperSelectList = node.downListContent ? node.downListContent : [];
218133
- }
218134
- _this5.poperType = 'selectPoper';
218135
- };
218136
- if (node.customProperty && node.customProperty.hasThirdData == true) {
218137
- this.$emit('dblNodeClick', {
218138
- setActiveDoc: this.setActiveDocIndex,
218139
- node: this.getCurrentSelectNode,
218140
- type: 'downlist',
218141
- callback: callback,
218142
- paintStatus: paintStatus
218143
- });
218144
- } else {
218145
- callback(undefined);
218146
- }
218147
- } else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
218148
- // 文本域
218149
- var _parentNode = node.parentNode;
218150
- if (Number(_parentNode.inputFieldType) === 0) {
218151
- if (_parentNode.canModifyContent) {
218152
- this.$emit('dblNodeClick', {
218153
- setActiveDoc: this.setActiveDocIndex,
218154
- node: this.getCurrentSelectNode,
218155
- type: 'text',
218156
- paintStatus: paintStatus
218157
- });
218158
- } else {
218159
- this.$emit('dblNodeClick', {
218160
- setActiveDoc: this.setActiveDocIndex,
218161
- node: this.getCurrentSelectNode,
218162
- type: 'modify_node',
218163
- paintStatus: paintStatus
218164
- });
218165
- }
218166
- this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218167
- return false;
218168
- }
218169
- if (_parentNode.readOnlyStatus === 0 && _parentNode.text.replace(/\s*/g, '') !== '') {
218170
- return false;
218171
- }
218172
- if (Number(_parentNode.inputFieldType) === 2) {
218155
+ if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
218173
218156
  if (paintStatus === 0) {
218174
218157
  this.hoEditorProvider.setControlProperty('date', 'update', '');
218158
+ this.hoEditorProvider.setUpdateNodeValue(node);
218175
218159
  return;
218176
218160
  }
218161
+ if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
218162
+ return false;
218163
+ }
218164
+ this.computedPoperPosition(node, pageIndex);
218177
218165
  this.poperType = 'datePoper';
218178
- } else if (Number(_parentNode.inputFieldType) === 1) {
218179
- var _parentNode$downListP, _parentNode$downListP2, _parentNode$downListP3;
218166
+ } else if (node instanceof DownListNode/* DownListNode */.yF) {
218180
218167
  if (paintStatus === 0) {
218181
- this.hoEditorProvider.setControlProperty('text', 'update', '');
218182
- this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218168
+ this.hoEditorProvider.setControlProperty('select', 'update', '');
218183
218169
  return;
218184
218170
  }
218185
- var text = node.text.replace(/ /g, '');
218186
- var lists = (_parentNode$downListP = _parentNode.downListProperty) !== null && _parentNode$downListP !== void 0 && _parentNode$downListP.listItems ? JSON.parse((_parentNode$downListP2 = _parentNode.downListProperty) === null || _parentNode$downListP2 === void 0 ? void 0 : _parentNode$downListP2.listItems) : [];
218187
- var allowMultiSelected = ((_parentNode$downListP3 = _parentNode.downListProperty) === null || _parentNode$downListP3 === void 0 ? void 0 : _parentNode$downListP3.allowMultiSelected) || false;
218188
- var childs = _parentNode.childNodes.filter(function (v) {
218189
- return v.nodeType != 5 && v.nodeType != 2;
218190
- });
218191
- if (childs.length > 0 && text != _parentNode.name && text !== '' && !allowMultiSelected && lists.length > 0) {
218192
- if (lists.filter(function (v) {
218193
- return v.text.includes('<元素>');
218194
- }).length > 0) {
218195
- return;
218196
- }
218171
+ if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
218172
+ return;
218197
218173
  }
218198
- var _callback = function _callback(list) {
218174
+ var callback = function callback(list) {
218199
218175
  _this5.computedPoperPosition(node, pageIndex);
218200
218176
  if (Array.isArray(list) && list.length > 0) {
218201
218177
  _this5.poperSelectList = list;
218202
218178
  } else {
218203
- _this5.poperSelectList = lists.filter(function (v) {
218204
- return v.value || v.text;
218205
- });
218179
+ _this5.poperSelectList = node.downListContent ? node.downListContent : [];
218206
218180
  }
218207
218181
  _this5.poperType = 'selectPoper';
218208
218182
  };
218209
- if (_parentNode.customProperty && _parentNode.customProperty.hasThirdData == true) {
218183
+ if (node.customProperty && node.customProperty.hasThirdData == true) {
218210
218184
  this.$emit('dblNodeClick', {
218211
218185
  setActiveDoc: this.setActiveDocIndex,
218212
218186
  node: this.getCurrentSelectNode,
218213
- type: 'textlist',
218214
- callback: _callback,
218187
+ type: 'downlist',
218188
+ callback: callback,
218215
218189
  paintStatus: paintStatus
218216
218190
  });
218217
218191
  } else {
218218
- _callback(undefined);
218192
+ callback(undefined);
218193
+ }
218194
+ } else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
218195
+ // 文本域
218196
+ var _parentNode = node.parentNode;
218197
+ if (Number(_parentNode.inputFieldType) === 0) {
218198
+ if (_parentNode.canModifyContent) {
218199
+ this.$emit('dblNodeClick', {
218200
+ setActiveDoc: this.setActiveDocIndex,
218201
+ node: this.getCurrentSelectNode,
218202
+ type: 'text',
218203
+ paintStatus: paintStatus
218204
+ });
218205
+ } else {
218206
+ this.$emit('dblNodeClick', {
218207
+ setActiveDoc: this.setActiveDocIndex,
218208
+ node: this.getCurrentSelectNode,
218209
+ type: 'modify_node',
218210
+ paintStatus: paintStatus
218211
+ });
218212
+ }
218213
+ this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218214
+ return false;
218215
+ }
218216
+ if (_parentNode.readOnlyStatus === 0 && _parentNode.text.replace(/\s*/g, '') !== '') {
218217
+ return false;
218218
+ }
218219
+ if (Number(_parentNode.inputFieldType) === 2) {
218220
+ if (paintStatus === 0) {
218221
+ this.hoEditorProvider.setControlProperty('date', 'update', '');
218222
+ return;
218223
+ }
218224
+ this.poperType = 'datePoper';
218225
+ } else if (Number(_parentNode.inputFieldType) === 1) {
218226
+ var _parentNode$downListP, _parentNode$downListP2, _parentNode$downListP3;
218227
+ if (paintStatus === 0) {
218228
+ this.hoEditorProvider.setControlProperty('text', 'update', '');
218229
+ this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218230
+ return;
218231
+ }
218232
+ var text = node.text.replace(/ /g, '');
218233
+ var lists = (_parentNode$downListP = _parentNode.downListProperty) !== null && _parentNode$downListP !== void 0 && _parentNode$downListP.listItems ? JSON.parse((_parentNode$downListP2 = _parentNode.downListProperty) === null || _parentNode$downListP2 === void 0 ? void 0 : _parentNode$downListP2.listItems) : [];
218234
+ var allowMultiSelected = ((_parentNode$downListP3 = _parentNode.downListProperty) === null || _parentNode$downListP3 === void 0 ? void 0 : _parentNode$downListP3.allowMultiSelected) || false;
218235
+ var childs = _parentNode.childNodes.filter(function (v) {
218236
+ return v.nodeType != 5 && v.nodeType != 2;
218237
+ });
218238
+ if (childs.length > 0 && text != _parentNode.name && text !== '' && !allowMultiSelected && lists.length > 0) {
218239
+ if (lists.filter(function (v) {
218240
+ return v.text.includes('<元素>');
218241
+ }).length > 0) {
218242
+ return;
218243
+ }
218244
+ }
218245
+ var _callback = function _callback(list) {
218246
+ _this5.computedPoperPosition(node, pageIndex);
218247
+ if (Array.isArray(list) && list.length > 0) {
218248
+ _this5.poperSelectList = list;
218249
+ } else {
218250
+ _this5.poperSelectList = lists.filter(function (v) {
218251
+ return v.value || v.text;
218252
+ });
218253
+ }
218254
+ _this5.poperType = 'selectPoper';
218255
+ };
218256
+ if (_parentNode.customProperty && _parentNode.customProperty.hasThirdData == true) {
218257
+ this.$emit('dblNodeClick', {
218258
+ setActiveDoc: this.setActiveDocIndex,
218259
+ node: this.getCurrentSelectNode,
218260
+ type: 'textlist',
218261
+ callback: _callback,
218262
+ paintStatus: paintStatus
218263
+ });
218264
+ } else {
218265
+ _callback(undefined);
218266
+ }
218219
218267
  }
218268
+ } else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType */.Jq.ntMedicalExpression && node.nodeType !== BaseNode/* NodeType */.Jq.ntImage) {
218269
+ this.handleCellNode(node, node.parentNode, pageIndex, paintStatus);
218270
+ } else if (node instanceof CellNode/* CellNode */.D) {
218271
+ this.handleForm('update');
218272
+ } else if (node instanceof ImageNode/* ImageNode */.H) {
218273
+ this.poperType = '';
218274
+ this.$emit('dblNodeClick', {
218275
+ setActiveDoc: this.setActiveDocIndex,
218276
+ node: this.getCurrentSelectNode,
218277
+ type: 'edit-image',
218278
+ paintStatus: paintStatus
218279
+ });
218280
+ } else {
218281
+ this.hoEditorProvider.setDblclickNodeValue(node, 'dblclick');
218220
218282
  }
218221
- } else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType */.Jq.ntMedicalExpression && node.nodeType !== BaseNode/* NodeType */.Jq.ntImage) {
218222
- this.handleCellNode(node, node.parentNode, pageIndex, paintStatus);
218223
- } else if (node instanceof CellNode/* CellNode */.D) {
218224
- this.handleForm('update');
218225
- } else if (node instanceof ImageNode/* ImageNode */.H) {
218226
- this.poperType = '';
218227
- this.$emit('dblNodeClick', {
218228
- setActiveDoc: this.setActiveDocIndex,
218229
- node: this.getCurrentSelectNode,
218230
- type: 'edit-image',
218231
- paintStatus: paintStatus
218232
- });
218233
- } else {
218234
- this.hoEditorProvider.setDblclickNodeValue(node, 'dblclick');
218235
218283
  }
218236
218284
  },
218237
218285
  createAddCellButton: function createAddCellButton(node, pageIndex) {
@@ -218404,10 +218452,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
218404
218452
  });
218405
218453
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
218406
218454
  /* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
218407
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=9bd6cea8&prod&lang=less&
218455
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=4d76cdc3&prod&lang=less&
218408
218456
  // extracted by mini-css-extract-plugin
218409
218457
 
218410
- ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=9bd6cea8&prod&lang=less&
218458
+ ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=4d76cdc3&prod&lang=less&
218411
218459
 
218412
218460
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue
218413
218461
 
@@ -218420,8 +218468,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
218420
218468
 
218421
218469
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
218422
218470
  components_HoDocvue_type_script_lang_js_,
218423
- HoDocvue_type_template_id_9bd6cea8_render,
218424
- HoDocvue_type_template_id_9bd6cea8_staticRenderFns,
218471
+ HoDocvue_type_template_id_4d76cdc3_render,
218472
+ HoDocvue_type_template_id_4d76cdc3_staticRenderFns,
218425
218473
  false,
218426
218474
  null,
218427
218475
  null,
@@ -220753,8 +220801,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
220753
220801
  value: function generateTableProperty(jnode) {
220754
220802
  jquery_default()(jnode).attr;
220755
220803
  var tableProperty = new TableProperty/* TableProperty */.vE('');
220756
- tableProperty.tightLineSpace = tableProperty['tightLineSpace'] || false;
220757
- tableProperty.layoutFullLine = tableProperty['layoutFullLine'] || false;
220758
220804
  tableProperty.continuePrintBorders = tableProperty['continuePrintBorders'] || false;
220759
220805
  tableProperty.canDeleteTable = tableProperty['canDeleteTable'] || false;
220760
220806
  tableProperty.canDeleteRow = tableProperty['canDeleteRow'] || false;
@@ -226041,14 +226087,15 @@ var VueController = /*#__PURE__*/function () {
226041
226087
  key: "insertBarcode",
226042
226088
  value: function insertBarcode(operType, id, textContent, isDisplayText, imagePath, width, height,
226043
226089
  //bandDataSource: string,
226044
- name, innerIdentifier) {
226090
+ //name: string,
226091
+ innerIdentifier) {
226045
226092
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
226046
226093
  var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
226047
226094
  var startPath = _curDomRange.normalize().startPath;
226048
226095
  var endPath = _curDomRange.normalize().endPath;
226049
226096
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertBarcode);
226050
226097
  if (hoEditorFactory.docTree.changing(changingEvent)) {
226051
- hoEditorFactory.docController.insertBarcode('add', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier);
226098
+ hoEditorFactory.docController.insertBarcode('add', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, innerIdentifier);
226052
226099
  }
226053
226100
  }
226054
226101
  /**
@@ -226062,14 +226109,14 @@ var VueController = /*#__PURE__*/function () {
226062
226109
  */
226063
226110
  }, {
226064
226111
  key: "updateBarcode",
226065
- value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier) {
226112
+ value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, innerIdentifier) {
226066
226113
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
226067
226114
  var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
226068
226115
  var startPath = _curDomRange.normalize().startPath;
226069
226116
  var endPath = _curDomRange.normalize().endPath;
226070
226117
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.updateBarcode);
226071
226118
  if (hoEditorFactory.docTree.changing(changingEvent)) {
226072
- HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode('update', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier);
226119
+ HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode('update', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, innerIdentifier);
226073
226120
  }
226074
226121
  }
226075
226122
  /**
@@ -226091,30 +226138,14 @@ var VueController = /*#__PURE__*/function () {
226091
226138
  */
226092
226139
  }, {
226093
226140
  key: "insertQrcode",
226094
- value: function insertQrcode(operType, id, textContent, type, correctLevel,
226095
- // dataSourceEnabled: boolean,
226096
- // dataSource: string,
226097
- // format: string,
226098
- // visitPath: string,
226099
- // isReadOnly: boolean,
226100
- // autoUpdate: boolean,
226101
- // execState: string,
226102
- width, height, name, innerIdentifier, isFillBack) {
226141
+ value: function insertQrcode(operType, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack) {
226103
226142
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
226104
226143
  var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
226105
226144
  var startPath = _curDomRange.normalize().startPath;
226106
226145
  var endPath = _curDomRange.normalize().endPath;
226107
226146
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertQrcode);
226108
226147
  if (hoEditorFactory.docTree.changing(changingEvent)) {
226109
- HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel,
226110
- // dataSourceEnabled,
226111
- // dataSource,
226112
- // format,
226113
- // visitPath,
226114
- // isReadOnly,
226115
- // autoUpdate,
226116
- // execState,
226117
- width, height, name, innerIdentifier, isFillBack);
226148
+ HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack);
226118
226149
  }
226119
226150
  }
226120
226151
  /**
@@ -226135,30 +226166,14 @@ var VueController = /*#__PURE__*/function () {
226135
226166
  */
226136
226167
  }, {
226137
226168
  key: "updateQrcode",
226138
- value: function updateQrcode(id, textContent, type, correctLevel,
226139
- // dataSourceEnabled: boolean,
226140
- // dataSource: string,
226141
- // format: string,
226142
- // visitPath: string,
226143
- // isReadOnly: boolean,
226144
- // autoUpdate: boolean,
226145
- // execState: string,
226146
- width, height, name, innerIdentifier, isFillBack) {
226169
+ value: function updateQrcode(id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack) {
226147
226170
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
226148
226171
  var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
226149
226172
  var startPath = _curDomRange.normalize().startPath;
226150
226173
  var endPath = _curDomRange.normalize().endPath;
226151
226174
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.updateQrcode);
226152
226175
  if (hoEditorFactory.docTree.changing(changingEvent)) {
226153
- HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('update', _curDomRange, id, textContent, type, correctLevel,
226154
- // dataSourceEnabled,
226155
- // dataSource,
226156
- // format,
226157
- // visitPath,
226158
- // isReadOnly,
226159
- // autoUpdate,
226160
- // execState,
226161
- width, height, name, innerIdentifier, isFillBack);
226176
+ HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('update', _curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack);
226162
226177
  }
226163
226178
  }
226164
226179
  /**
@@ -226654,7 +226669,7 @@ var VueController = /*#__PURE__*/function () {
226654
226669
  key: "getDocXml",
226655
226670
  value: function getDocXml(beauty, isValidStyle, clearSign) {
226656
226671
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
226657
- if (beauty && isValidStyle) {
226672
+ if (isValidStyle) {
226658
226673
  // 保存病历参数: 不美化文档结构 | 清理不需要的样式
226659
226674
  hoEditorFactory.contentIsModify.isModify = false;
226660
226675
  var stack = hoEditorFactory.undoService.stack;
@@ -231327,8 +231342,6 @@ var VueController = /*#__PURE__*/function () {
231327
231342
  canDeleteTable: node.tableProperty.canDeleteTable,
231328
231343
  continuePrintBorders: node.tableProperty.continuePrintBorders,
231329
231344
  customProperties: customProperties,
231330
- layoutFullLine: node.tableProperty.layoutFullLine,
231331
- tightLineSpace: node.tableProperty.tightLineSpace,
231332
231345
  isAutoChangeLine: node.tableProperty.isAutoChangeLine,
231333
231346
  autoLineHeight: node.tableProperty.autoLineHeight,
231334
231347
  fixedOnePage: node.tableProperty.fixedOnePage,
@@ -233894,7 +233907,7 @@ var ElementController = /*#__PURE__*/function () {
233894
233907
  /*
233895
233908
  * @Author: your name
233896
233909
  * @Date: 2021-07-31 10:10:30
233897
- * @LastEditTime: 2023-08-08 18:09:19
233910
+ * @LastEditTime: 2023-09-14 17:03:18
233898
233911
  * @LastEditors: liyanan 2441631434@qq.com
233899
233912
  * @Description: In User Settings Edit
233900
233913
  * @FilePath: \hoeditor-web\src\editor\externalCall\NodeController.ts
@@ -234207,9 +234220,9 @@ var NodeController = /*#__PURE__*/function () {
234207
234220
  */
234208
234221
  }, {
234209
234222
  key: "insertBarcode",
234210
- value: function insertBarcode(id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier) {
234223
+ value: function insertBarcode(id, textContent, isDisplayText, imagePath, width, height, innerIdentifier) {
234211
234224
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
234212
- hoEditorFactory.vueController.insertBarcode('add', id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier);
234225
+ hoEditorFactory.vueController.insertBarcode('add', id, textContent, isDisplayText, imagePath, width, height, innerIdentifier);
234213
234226
  }
234214
234227
  /**
234215
234228
  * 修改条形码
@@ -234222,9 +234235,9 @@ var NodeController = /*#__PURE__*/function () {
234222
234235
  */
234223
234236
  }, {
234224
234237
  key: "updateBarcode",
234225
- value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier) {
234238
+ value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, innerIdentifier) {
234226
234239
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
234227
- hoEditorFactory.vueController.updateBarcode(id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier);
234240
+ hoEditorFactory.vueController.updateBarcode(id, textContent, isDisplayText, imagePath, width, height, innerIdentifier);
234228
234241
  }
234229
234242
  /**
234230
234243
  * 插入二维码
@@ -236731,7 +236744,7 @@ var PrintController = /*#__PURE__*/function () {
236731
236744
  value: function () {
236732
236745
  var _pintAllToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee8(xmlList, callback, params) {
236733
236746
  var _this6 = this;
236734
- var hoEditorFactory, beforePrintStatus, xml, xmlIndex, mergeList, position, continuousid, options, toPrint, createSvg;
236747
+ var hoEditorFactory, beforePrintStatus, xml, xmlIndex, mergeList, position, continuousid, options, pageNumber, toPrint, createSvg;
236735
236748
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee8$(_context8) {
236736
236749
  while (1) switch (_context8.prev = _context8.next) {
236737
236750
  case 0:
@@ -236751,15 +236764,18 @@ var PrintController = /*#__PURE__*/function () {
236751
236764
  };
236752
236765
  this.PDF = null;
236753
236766
  this.PDF = new jspdf/* default */.ZP(options);
236767
+ pageNumber = {
236768
+ value: 0
236769
+ };
236754
236770
  toPrint = /*#__PURE__*/function () {
236755
236771
  var _ref3 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee6() {
236756
236772
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee6$(_context6) {
236757
236773
  while (1) switch (_context6.prev = _context6.next) {
236758
236774
  case 0:
236759
236775
  if (params && continuousid && Array.isArray(params.notPrintDocId) && params.notPrintDocId.length > 0 && params.notPrintDocId.includes(continuousid)) {
236760
- PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position, true);
236776
+ PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position, true, pageNumber);
236761
236777
  } else {
236762
- PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position);
236778
+ PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position, false, pageNumber);
236763
236779
  }
236764
236780
  case 1:
236765
236781
  case "end":
@@ -236773,7 +236789,7 @@ var PrintController = /*#__PURE__*/function () {
236773
236789
  }();
236774
236790
  createSvg = /*#__PURE__*/function () {
236775
236791
  var _ref4 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee7() {
236776
- var _this6$PDF, name;
236792
+ var otherPageNumber, i, _this6$PDF, _this6$PDF2, name;
236777
236793
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee7$(_context7) {
236778
236794
  while (1) switch (_context7.prev = _context7.next) {
236779
236795
  case 0:
@@ -236825,7 +236841,16 @@ var PrintController = /*#__PURE__*/function () {
236825
236841
  }));
236826
236842
  hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
236827
236843
  hoEditorFactory.vueController.openXml(xml);
236828
- (_this6$PDF = _this6.PDF) === null || _this6$PDF === void 0 ? void 0 : _this6$PDF.deletePage(1);
236844
+ otherPageNumber = _this6.PDF.internal.getNumberOfPages() - pageNumber.value;
236845
+ if (otherPageNumber >= 2) {
236846
+ for (i = 0; i < otherPageNumber; i++) {
236847
+ (_this6$PDF = _this6.PDF) === null || _this6$PDF === void 0 ? void 0 : _this6$PDF.deletePage(1);
236848
+ }
236849
+ console.warn("\u5220\u6389".concat(otherPageNumber, "\u9875\u7A7A\u767D\u9875"));
236850
+ } else if (otherPageNumber <= 1) {
236851
+ (_this6$PDF2 = _this6.PDF) === null || _this6$PDF2 === void 0 ? void 0 : _this6$PDF2.deletePage(1);
236852
+ console.warn("\u5220\u63891\u9875\u7A7A\u767D\u9875");
236853
+ }
236829
236854
  name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
236830
236855
  PrintStatus/* Print */.Kh.openDataUriInWindow(_this6.PDF, name, hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.printSilently);
236831
236856
  _this6.clearJsPDF();
@@ -236841,7 +236866,7 @@ var PrintController = /*#__PURE__*/function () {
236841
236866
  };
236842
236867
  }();
236843
236868
  createSvg();
236844
- case 15:
236869
+ case 16:
236845
236870
  case "end":
236846
236871
  return _context8.stop();
236847
236872
  }