hoeditor-web 3.0.44 → 3.0.45

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.
@@ -51116,10 +51116,11 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
51116
51116
  this.transType(json);
51117
51117
  if (isPaste) {
51118
51118
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
51119
- if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
51120
- //json.id = hoEditorFactory.gernerateCode.generateID("DT");
51121
- json.dataId = hoEditorFactory.gernerateCode.generateID("DateTime");
51122
- }
51119
+ // if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
51120
+ // //json.id = hoEditorFactory.gernerateCode.generateID("DT");
51121
+ // json.dataId = hoEditorFactory.gernerateCode.generateID("DateTime");
51122
+ // }
51123
+ json.dataId = hoEditorFactory.gernerateCode.generateID("DateTime");
51123
51124
  }
51124
51125
  json.readType = json.readType ? Number(json.readType) : -1;
51125
51126
  json.isSynchro = !json.isSynchro ? false : json.isSynchro;
@@ -51912,10 +51913,11 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
51912
51913
  this.transType(json);
51913
51914
  if (isPaste) {
51914
51915
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
51915
- if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
51916
- //json.id = hoEditorFactory.gernerateCode.generateID("DL");
51917
- json.dataId = hoEditorFactory.gernerateCode.generateID("DownList");
51918
- }
51916
+ // if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
51917
+ // //json.id = hoEditorFactory.gernerateCode.generateID("DL");
51918
+ // json.dataId = hoEditorFactory.gernerateCode.generateID("DownList");
51919
+ // }
51920
+ json.dataId = hoEditorFactory.gernerateCode.generateID("DownList");
51919
51921
  }
51920
51922
  json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
51921
51923
  json.isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
@@ -57706,15 +57708,16 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
57706
57708
  delete json.nodeType;
57707
57709
  if (isPaste) {
57708
57710
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
57709
- var name = "";
57710
- if (json.controlStyle === "RadioBox") name = "RB";
57711
- if (json.controlStyle === "CheckBox") name = "CB";
57712
- hoEditorFactory.docTree.radioAndCheckBoxsMap.forEach(function (value, key) {
57713
- if (value.dataId === json.dataId) {
57714
- //json.id = hoEditorFactory.gernerateCode.generateID(name);
57715
- json.dataId = hoEditorFactory.gernerateCode.generateID(json.controlStyle);
57716
- }
57717
- });
57711
+ //let name = "";
57712
+ //if (json.controlStyle === "RadioBox") name = "RB";
57713
+ //if (json.controlStyle === "CheckBox") name = "CB";
57714
+ // hoEditorFactory.docTree.radioAndCheckBoxsMap.forEach((value, key) => {
57715
+ // if (value.dataId === json.dataId) {
57716
+ // //json.id = hoEditorFactory.gernerateCode.generateID(name);
57717
+ // json.dataId = hoEditorFactory.gernerateCode.generateID(json.controlStyle);
57718
+ // }
57719
+ // });
57720
+ json.dataId = hoEditorFactory.gernerateCode.generateID(json.controlStyle);
57718
57721
  }
57719
57722
  json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
57720
57723
  json.isSelected = !json.isSelected ? false : json.isSelected.text != undefined ? json.isSelected.text : json.isSelected;
@@ -63036,7 +63039,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
63036
63039
  /*
63037
63040
  * @Author: your name
63038
63041
  * @Date: 2020-11-03 15:17:54
63039
- * @LastEditTime: 2023-03-22 15:28:47
63042
+ * @LastEditTime: 2023-03-30 16:16:55
63040
63043
  * @LastEditors: liyanan 2441631434@qq.com
63041
63044
  * @Description: In User Settings Edit
63042
63045
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -64951,10 +64954,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
64951
64954
  delete json.nodeType;
64952
64955
  this.transType(json);
64953
64956
  if (isPaste) {
64954
- if (hoEditorFactory.vueController.getNodeByDataID('all', json.dataId)) {
64955
- //json.id = hoEditorFactory.gernerateCode.generateID("TF");
64956
- json.dataId = hoEditorFactory.gernerateCode.generateID('Field');
64957
- }
64957
+ // if (hoEditorFactory.vueController.getNodeByDataID('all', json.dataId)) {
64958
+ // //json.id = hoEditorFactory.gernerateCode.generateID("TF");
64959
+ // json.dataId = hoEditorFactory.gernerateCode.generateID('Field');
64960
+ // }
64961
+ json.dataId = hoEditorFactory.gernerateCode.generateID('Field');
64958
64962
  }
64959
64963
  json.canModifyContent = !json.canModifyContent ? false : json.canModifyContent;
64960
64964
  json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
@@ -232013,8 +232017,8 @@ var es_string_match = __webpack_require__(4723);
232013
232017
  var es_number_constructor = __webpack_require__(9653);
232014
232018
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
232015
232019
  var es_json_stringify = __webpack_require__(38862);
232016
- ;// 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=2f0d52fa&
232017
- var HoDocvue_type_template_id_2f0d52fa_render = function render() {
232020
+ ;// 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=bc0f5c2a&
232021
+ var HoDocvue_type_template_id_bc0f5c2a_render = function render() {
232018
232022
  var _vm = this,
232019
232023
  _c = _vm._self._c;
232020
232024
  return _c('div', {
@@ -232159,7 +232163,7 @@ var HoDocvue_type_template_id_2f0d52fa_render = function render() {
232159
232163
  }
232160
232164
  }, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
232161
232165
  };
232162
- var HoDocvue_type_template_id_2f0d52fa_staticRenderFns = [];
232166
+ var HoDocvue_type_template_id_bc0f5c2a_staticRenderFns = [];
232163
232167
 
232164
232168
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
232165
232169
  var es_array_filter = __webpack_require__(57327);
@@ -235386,7 +235390,7 @@ var ParagraphNode = __webpack_require__(67945);
235386
235390
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
235387
235391
  var MarkNode = __webpack_require__(57727);
235388
235392
  ;// CONCATENATED MODULE: ./src/components/version.ts
235389
- /* harmony default export */ var version = ('3.0.44');
235393
+ /* harmony default export */ var version = ('3.0.45');
235390
235394
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
235391
235395
  var PoperTipText = __webpack_require__(15845);
235392
235396
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -235969,8 +235973,9 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235969
235973
  if (colProperty.editorProperty === 4) {
235970
235974
  this.$emit('dblNodeClick', {
235971
235975
  node: function node() {
235976
+ var _colProperty$signProp;
235972
235977
  return {
235973
- name: colProperty.signProperty.name || '签名',
235978
+ name: ((_colProperty$signProp = colProperty.signProperty) === null || _colProperty$signProp === void 0 ? void 0 : _colProperty$signProp.name) || '签名',
235974
235979
  type: 'table-sign'
235975
235980
  };
235976
235981
  },
@@ -236098,10 +236103,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
236098
236103
  });
236099
236104
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
236100
236105
  /* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
236101
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=2f0d52fa&prod&lang=scss&
236106
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=bc0f5c2a&prod&lang=scss&
236102
236107
  // extracted by mini-css-extract-plugin
236103
236108
 
236104
- ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=2f0d52fa&prod&lang=scss&
236109
+ ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=bc0f5c2a&prod&lang=scss&
236105
236110
 
236106
236111
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue
236107
236112
 
@@ -236114,8 +236119,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
236114
236119
 
236115
236120
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
236116
236121
  components_HoDocvue_type_script_lang_js_,
236117
- HoDocvue_type_template_id_2f0d52fa_render,
236118
- HoDocvue_type_template_id_2f0d52fa_staticRenderFns,
236122
+ HoDocvue_type_template_id_bc0f5c2a_render,
236123
+ HoDocvue_type_template_id_bc0f5c2a_staticRenderFns,
236119
236124
  false,
236120
236125
  null,
236121
236126
  null,
@@ -242665,6 +242670,7 @@ var comment = __webpack_require__(32980);
242665
242670
 
242666
242671
 
242667
242672
 
242673
+
242668
242674
 
242669
242675
 
242670
242676
  var VueController = /*#__PURE__*/function () {
@@ -248413,41 +248419,84 @@ var VueController = /*#__PURE__*/function () {
248413
248419
  }, {
248414
248420
  key: "getAllSignNodeList",
248415
248421
  value: function getAllSignNodeList() {
248422
+ var _this5 = this;
248416
248423
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
248417
248424
  var signList = [];
248418
248425
  var patientSignList = [];
248426
+ var tableSignList = [];
248419
248427
  var getAllNodes = function getAllNodes(nodes) {
248420
248428
  for (var i = 0; i < nodes.length; i++) {
248421
248429
  var node = nodes[i];
248422
248430
  if (node instanceof SignNode/* SignNode */.N) {
248431
+ if (node.parentNode instanceof CellNode/* CellNode */.D) {
248432
+ var currentCols = node.parentNode.row.indexOf(node.parentNode);
248433
+ var colInfoes = node.parentNode.table.colInfos[currentCols];
248434
+ if (colInfoes.colProperty.editorProperty == 4) {
248435
+ continue;
248436
+ }
248437
+ }
248423
248438
  var sign = {
248424
248439
  type: 'sign',
248425
248440
  signed: false,
248426
- customProperty: node.customProperty
248441
+ customProperty: {}
248427
248442
  };
248428
248443
  // 有值的患者签名
248429
248444
  if (node.attribute === 1) {
248430
248445
  sign.type = 'patientSign';
248431
248446
  if (node.imgSrc == '' && node.fingerPrintSrc == '') {
248432
248447
  sign.signed = false;
248433
- patientSignList.push(sign);
248434
248448
  } else {
248435
248449
  sign.signed = true;
248436
- patientSignList.push(sign);
248437
248450
  }
248451
+ patientSignList.push(sign);
248438
248452
  }
248439
248453
  // 空的医生签名
248440
248454
  if (node.attribute != 1) {
248441
248455
  sign.type = 'sign';
248442
248456
  if (node.imgSrc == '') {
248443
248457
  sign.signed = false;
248444
- signList.push(sign);
248445
248458
  } else {
248446
248459
  sign.signed = true;
248447
- signList.push(sign);
248448
248460
  }
248461
+ signList.push(sign);
248449
248462
  }
248450
248463
  }
248464
+ if (node instanceof TableNode/* TableNode */.Fh) {
248465
+ (function () {
248466
+ var signColList = [];
248467
+ node.colInfos.forEach(function (col, colIndex) {
248468
+ if (col.colProperty.editorProperty == 4) {
248469
+ // 确定签名列
248470
+ signColList.push(colIndex);
248471
+ }
248472
+ });
248473
+ if (signColList.length > 0) {
248474
+ var firstDataRowIndex = _this5.getTableTitleMaxRowIndex(node) + 1;
248475
+ node.rows.forEach(function (rows, rowIndex) {
248476
+ if (rowIndex >= firstDataRowIndex) {
248477
+ rows.forEach(function (cellNode, colIndex) {
248478
+ if (cellNode && signColList.includes(colIndex)) {
248479
+ var _sign = {
248480
+ type: 'sign',
248481
+ signed: false,
248482
+ customProperty: {},
248483
+ position: [rowIndex + 1, colIndex + 1]
248484
+ };
248485
+ var child = cellNode.childNodes.filter(function (child) {
248486
+ return child instanceof SignNode/* SignNode */.N;
248487
+ });
248488
+ if (child.length > 0) {
248489
+ _sign.customProperty = child[0].customProperty;
248490
+ _sign.signed = child[0].imgSrc == '' ? false : true;
248491
+ }
248492
+ signList.push(_sign);
248493
+ }
248494
+ });
248495
+ }
248496
+ });
248497
+ }
248498
+ })();
248499
+ }
248451
248500
  if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
248452
248501
  // 医生签名不存在的情况不在深层调用深层遍历
248453
248502
  getAllNodes(node.childNodes);
@@ -248503,13 +248552,13 @@ var VueController = /*#__PURE__*/function () {
248503
248552
  }, {
248504
248553
  key: "html2Xml",
248505
248554
  value: function html2Xml(json) {
248506
- var _this5 = this;
248555
+ var _this6 = this;
248507
248556
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
248508
248557
  var headerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.header);
248509
248558
  var footerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.footer);
248510
248559
  var mainNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.main);
248511
248560
  var insertParaNode = function insertParaNode(area, index) {
248512
- var node = new ParagraphNode/* ParagraphNode */.C(_this5._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
248561
+ var node = new ParagraphNode/* ParagraphNode */.C(_this6._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
248513
248562
  if (area == 'header') {
248514
248563
  node.rootPath = 'header/0';
248515
248564
  headerNodes.splice(index, 0, node);
@@ -248986,7 +249035,7 @@ var VueController = /*#__PURE__*/function () {
248986
249035
  }, {
248987
249036
  key: "updateNurseRecord",
248988
249037
  value: function updateNurseRecord(table, operType, rowIndex, data) {
248989
- var _this6 = this;
249038
+ var _this7 = this;
248990
249039
  var keys = Object.keys(data);
248991
249040
  var backfill = function backfill(r) {
248992
249041
  for (var i = 0; i < keys.length; i++) {
@@ -248995,7 +249044,7 @@ var VueController = /*#__PURE__*/function () {
248995
249044
  if (cell) {
248996
249045
  var text = data[keys[i]];
248997
249046
  cell.childNodes.splice(1, cell.childNodes.length);
248998
- var textNode = new TextNode/* TextNode */.R(_this6._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType.ntText */.Jq.ntText, text, cell.childNodes[0].styleIndex);
249047
+ var textNode = new TextNode/* TextNode */.R(_this7._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType.ntText */.Jq.ntText, text, cell.childNodes[0].styleIndex);
248999
249048
  cell.drawCell.needUpdate = true;
249000
249049
  cell.childNodes.push(textNode);
249001
249050
  }
@@ -249192,7 +249241,7 @@ var VueController = /*#__PURE__*/function () {
249192
249241
  }, {
249193
249242
  key: "updateAllCodeElements",
249194
249243
  value: function updateAllCodeElements(element) {
249195
- var _this7 = this;
249244
+ var _this8 = this;
249196
249245
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
249197
249246
  var ret = [];
249198
249247
  var getAllNodes = function getAllNodes(nodes) {
@@ -249221,7 +249270,7 @@ var VueController = /*#__PURE__*/function () {
249221
249270
  if (ret.length > 0) {
249222
249271
  ret.forEach(function (v) {
249223
249272
  if (v.name === element.name) {
249224
- _this7.updateCodeContent(v, element.content);
249273
+ _this8.updateCodeContent(v, element.content);
249225
249274
  }
249226
249275
  });
249227
249276
  this.rebuildAll(false);