hoeditor-web 3.1.217 → 3.1.218

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.
@@ -73480,7 +73480,7 @@ module.exports = function shallowEqual(objA, objB, compare, compareContext) {
73480
73480
 
73481
73481
  /***/ }),
73482
73482
 
73483
- /***/ 84066:
73483
+ /***/ 54584:
73484
73484
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
73485
73485
 
73486
73486
  "use strict";
@@ -73492,7 +73492,7 @@ __webpack_require__.d(__webpack_exports__, {
73492
73492
  "default": function() { return /* binding */ ControlModal; }
73493
73493
  });
73494
73494
 
73495
- ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=94bf3904
73495
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=f2268b16
73496
73496
  var render = function render() {
73497
73497
  var _vm = this,
73498
73498
  _c = _vm._self._c;
@@ -73635,6 +73635,7 @@ var HOEditorFactorys = __webpack_require__(57703);
73635
73635
  gestation: 'gestation/Gestation',
73636
73636
  figure: 'figure/HoFigure',
73637
73637
  'edit-ho-figure': 'figure/EditHoFigure',
73638
+ // 'ho-formula': 'hoformula/HoFormula',
73638
73639
  'ho-print': 'hoprint/HoPrint',
73639
73640
  'special-chars': 'specialChars/HoSpecialChars'
73640
73641
  }
@@ -104402,7 +104403,7 @@ const textParams = {
104402
104403
  /***/ (function(__unused_webpack_module, __webpack_exports__) {
104403
104404
 
104404
104405
  "use strict";
104405
- /* harmony default export */ __webpack_exports__.A = ('3.1.217');
104406
+ /* harmony default export */ __webpack_exports__.A = ('3.1.218');
104406
104407
 
104407
104408
  /***/ }),
104408
104409
 
@@ -130301,15 +130302,21 @@ class TableNode extends _RectNode__WEBPACK_IMPORTED_MODULE_17__/* .RectNode */ .
130301
130302
  const cellNodes = transArr(json); //table.childNodes.childNodes
130302
130303
  const existMap = new Map();
130303
130304
  const rowsMap = new Map();
130304
- const colSpanArr = new Array();
130305
- const rowSpanArr = new Array();
130305
+ let colSpanArr = new Array();
130306
+ let rowSpanArr = new Array();
130307
+ // console.clear();
130306
130308
  for (let i = 0; i < cellNodes.length; i++) {
130307
130309
  const node = cellNodes[i];
130308
130310
  let rowNo = parseInt(node.rowNo);
130309
- // if(isNaN(rowNo)) {
130310
- // rowNo = Math.floor(i / Number(json.colCount));
130311
- // }
130312
130311
  const aRow = new Array();
130312
+ if (node && hoEditorFactory.useFixTableMerge) {
130313
+ if (node.rowSpan && Number(node.rowSpan) + Number(node.rowNo) - 1 > tableNode._rowCount) {
130314
+ node.rowSpan = tableNode._rowCount - Number(node.rowNo) - 1;
130315
+ }
130316
+ if (node.colSpan && Number(node.colSpan) + Number(node.colNo) - 1 > tableNode._colCount) {
130317
+ node.colSpan = tableNode._colCount - Number(node.colNo) - 1;
130318
+ }
130319
+ }
130313
130320
  const nodeRowSpan = node.rowSpan ? parseInt(node.rowSpan) : 1;
130314
130321
  const nodeColSpan = node.colSpan ? parseInt(node.colSpan) : 1;
130315
130322
  if (nodeRowSpan > 1 && nodeColSpan > 1) {
@@ -130342,7 +130349,6 @@ class TableNode extends _RectNode__WEBPACK_IMPORTED_MODULE_17__/* .RectNode */ .
130342
130349
  rowsMap.set(rowNo, aRow);
130343
130350
  }
130344
130351
  rowsMap.delete(NaN);
130345
- //const defaultCellProperty = json.childNodes.defaultCellProperty;
130346
130352
  let aRow;
130347
130353
  let emptyCellNode = {
130348
130354
  nodeType: "ntCell",
@@ -130363,13 +130369,13 @@ class TableNode extends _RectNode__WEBPACK_IMPORTED_MODULE_17__/* .RectNode */ .
130363
130369
  const rowCount = Math.floor(s / Number(json.colCount));
130364
130370
  const colCount = s % Number(json.colCount);
130365
130371
  let isMerge = false;
130366
- rowSpanArr.forEach(rowSpanItem => {
130367
- if (rowCount == rowSpanItem.rowCount && colCount == rowSpanItem.colCount) {
130372
+ rowSpanArr.forEach(item => {
130373
+ if (rowCount == item.rowCount && colCount == item.colCount) {
130368
130374
  isMerge = true;
130369
130375
  }
130370
130376
  });
130371
- colSpanArr.forEach(colSpanItem => {
130372
- if (rowCount == colSpanItem.rowCount && colCount == colSpanItem.colCount) {
130377
+ colSpanArr.forEach(item => {
130378
+ if (rowCount == item.rowCount && colCount == item.colCount) {
130373
130379
  isMerge = true;
130374
130380
  }
130375
130381
  });
@@ -134163,26 +134169,7 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
134163
134169
  // await hoEditorFactory.docController.insertPlainTextAfterPath(startPath, text, oldValue);
134164
134170
  }
134165
134171
  if (/[\u0F00-\u0FFF]/.test(textStr)) {
134166
- const nodes = [];
134167
- const analysisText = (0,common/* analyzeTibetanText */.P)(textStr);
134168
- let curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
134169
- let curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
134170
- analysisText.forEach(item => {
134171
- if (item.iszw) {
134172
- let styleIndex = curStyleIndex;
134173
- let style = curTextStyle;
134174
- if (curTextStyle.combineStyle.font != "himalaya") {
134175
- styleIndex = curTextStyle.changeStyleString('fontFormat', "himalaya");
134176
- style = hoEditorFactory.docTree.styles[styleIndex];
134177
- }
134178
- const styleindex = hoEditorFactory.docTree.styleCompare(style);
134179
- const textNode = new TextNode/* TextNode */.E(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, BaseNode/* NodeType */.Z6.ntText, item.text, styleindex, undefined, item.combination);
134180
- nodes.push(textNode);
134181
- } else {
134182
- const textNode = new TextNode/* TextNode */.E(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, BaseNode/* NodeType */.Z6.ntText, item.text, curStyleIndex, undefined, item.combination);
134183
- nodes.push(textNode);
134184
- }
134185
- });
134172
+ const nodes = this.formatZwNode(textStr);
134186
134173
  hoEditorFactory.docController.parseNodeData(nodes);
134187
134174
  } else {
134188
134175
  await hoEditorFactory.docController.insertPlainTextAfterPath(startPath, textStr, oldValue, isTrace);
@@ -134194,29 +134181,30 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
134194
134181
  //this._canModifyContent = await oldValue;
134195
134182
  //this.update(0);
134196
134183
  }
134197
- // public dataVerify(): string {
134198
- // let errMsg = "";
134199
- // const customProperty = this.customProperty as any;
134200
- // if (customProperty.dataVerify) {
134201
- // if (customProperty.dataVerify.format) {
134202
- // }
134203
- // if (customProperty.dataVerify.maxValue || customProperty.dataVerify.minValue) {
134204
- // if (!isNumber(this.text)) {
134205
- // errMsg = "元素(" + this.name + ")值不符合规则,请检查并纠正!";
134206
- // } else {
134207
- // if (customProperty.dataVerify.maxValue) {
134208
- // if (Number(this.text) > Number(customProperty.dataVerify.maxValue)) {
134209
- // errMsg = "元素(" + this.name + ")值超出最大允许值" + customProperty.dataVerify.maxValue + ",请检查并纠正!";
134210
- // }
134211
- // }
134212
- // if (Number(this.text) < Number(customProperty.dataVerify.maxValue)) {
134213
- // errMsg = "元素(" + this.name + ")值低于最小允许值" + customProperty.dataVerify.maxValue + ",请检查并纠正!";
134214
- // }
134215
- // }
134216
- // }
134217
- // }
134218
- // return errMsg;
134219
- // }
134184
+ formatZwNode(textStr, rootNodes, pNode) {
134185
+ const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
134186
+ const nodes = [];
134187
+ const formatZwText = (0,common/* formatZwTextNode */.u)(textStr);
134188
+ let curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
134189
+ let curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
134190
+ formatZwText.forEach(item => {
134191
+ if (item.iszw) {
134192
+ let styleIndex = curStyleIndex;
134193
+ let style = curTextStyle;
134194
+ if (curTextStyle.combineStyle.font != "himalaya") {
134195
+ styleIndex = curTextStyle.changeStyleString('fontFormat', "himalaya");
134196
+ style = hoEditorFactory.docTree.styles[styleIndex];
134197
+ }
134198
+ const styleindex = hoEditorFactory.docTree.styleCompare(style);
134199
+ const textNode = new TextNode/* TextNode */.E(this._hoEditorFactoryID, rootNodes ? rootNodes : hoEditorFactory.docTree.mainNodes, pNode ? pNode : null, BaseNode/* NodeType */.Z6.ntText, item.text, styleindex, undefined, item.combination);
134200
+ nodes.push(textNode);
134201
+ } else {
134202
+ const textNode = new TextNode/* TextNode */.E(this._hoEditorFactoryID, rootNodes ? rootNodes : hoEditorFactory.docTree.mainNodes, pNode ? pNode : null, BaseNode/* NodeType */.Z6.ntText, item.text, curStyleIndex, undefined, item.combination);
134203
+ nodes.push(textNode);
134204
+ }
134205
+ });
134206
+ return nodes;
134207
+ }
134220
134208
  /**
134221
134209
  *
134222
134210
  * @param drawTree 绘制树
@@ -134962,8 +134950,13 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
134962
134950
  }
134963
134951
  for (let i = 0; i < lineArr.length; i++) {
134964
134952
  const lineText = lineArr[i];
134965
- const textNode = new TextNode/* TextNode */.E(hoEditorFactoryID, rootNodes, temp, BaseNode/* NodeType */.Z6.ntText, lineText, styleIndex);
134966
- temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
134953
+ if (/[\u0F00-\u0FFF]/.test(lineText)) {
134954
+ const textNodes = temp.formatZwNode(lineText, rootNodes, temp);
134955
+ temp.childNodes.splice(temp.childNodes.length - 1, 0, ...textNodes);
134956
+ } else {
134957
+ const textNode = new TextNode/* TextNode */.E(hoEditorFactoryID, rootNodes, temp, BaseNode/* NodeType */.Z6.ntText, lineText, styleIndex);
134958
+ temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
134959
+ }
134967
134960
  if (i < lineArr.length - 1) {
134968
134961
  const paraNode = new ParagraphNode/* ParagraphNode */.f(hoEditorFactoryID, rootNodes, temp, 0);
134969
134962
  paraNode.styleIndex = styleIndex;
@@ -135076,8 +135069,15 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
135076
135069
  const rareCharNode = new RareCharNode/* RareCharNode */.P(temp.hoEditorFactoryID, rootNodes, temp, BaseNode/* NodeType */.Z6.ntRareChar, textArr[0], styleIndex);
135077
135070
  temp.childNodes.splice(temp.childNodes.length - 1, 0, rareCharNode);
135078
135071
  } else {
135079
- const textNode1 = new TextNode/* TextNode */.E(hoEditorFactoryID, rootNodes, temp, BaseNode/* NodeType */.Z6.ntText, textArr[0], styleIndex);
135080
- temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
135072
+ if (/[\u0F00-\u0FFF]/.test(textArr[0])) {
135073
+ const textNodes = temp.formatZwNode(textArr[0], rootNodes, temp);
135074
+ temp.childNodes.splice(temp.childNodes.length - 1, 0, ...textNodes);
135075
+ } else {
135076
+ const textNode1 = new TextNode/* TextNode */.E(hoEditorFactoryID, rootNodes, temp, BaseNode/* NodeType */.Z6.ntText, textArr[0], styleIndex);
135077
+ temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
135078
+ }
135079
+ // const textNode1 = new TextNode(hoEditorFactoryID, rootNodes, temp, NodeType.ntText, textArr[0], styleIndex);
135080
+ // temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
135081
135081
  }
135082
135082
  }
135083
135083
  }
@@ -135104,8 +135104,15 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
135104
135104
  }
135105
135105
  }
135106
135106
  } else {
135107
- const textNode = new TextNode/* TextNode */.E(hoEditorFactoryID, rootNodes, temp, BaseNode/* NodeType */.Z6.ntText, textArr[i], styleIndex);
135108
- temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
135107
+ if (/[\u0F00-\u0FFF]/.test(textArr[i])) {
135108
+ const textNodes = temp.formatZwNode(textArr[i], rootNodes, temp);
135109
+ temp.childNodes.splice(temp.childNodes.length - 1, 0, ...textNodes);
135110
+ } else {
135111
+ const textNode = new TextNode/* TextNode */.E(hoEditorFactoryID, rootNodes, temp, BaseNode/* NodeType */.Z6.ntText, textArr[i], styleIndex);
135112
+ temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
135113
+ }
135114
+ // const textNode = new TextNode(hoEditorFactoryID, rootNodes, temp, NodeType.ntText, textArr[i], styleIndex);
135115
+ // temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
135109
135116
  }
135110
135117
  }
135111
135118
  }
@@ -144513,8 +144520,13 @@ class DrawTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_10__/* .DrawRect */ .
144513
144520
  updateRowHeight(r) {
144514
144521
  let dHeight = _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_6__/* .gDefaultRowHeight */ .ip;
144515
144522
  let bottonAlignCell = new Array();
144516
- const rowPorpertyHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(this._table.rowInfos[r].rowProperty.rowHeight * 10, false);
144517
- if (this._table.rowInfos[r].rowProperty.isSpecifyHeight) {
144523
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
144524
+ const row = this._table.rowInfos[r];
144525
+ if (!row) {
144526
+ return dHeight;
144527
+ }
144528
+ const rowPorpertyHeight = hoEditorFactory.unitConvert.mmConversionPx(row.rowProperty.rowHeight * 10, false);
144529
+ if (row && row.rowProperty.isSpecifyHeight) {
144518
144530
  dHeight = rowPorpertyHeight;
144519
144531
  }
144520
144532
  for (let c = 0; c < this._table.colCount; c++) {
@@ -144537,7 +144549,7 @@ class DrawTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_10__/* .DrawRect */ .
144537
144549
  }
144538
144550
  }
144539
144551
  }
144540
- if (dHeight !== this._table.rowInfos[r].rowHeight) {
144552
+ if (dHeight !== row.rowHeight) {
144541
144553
  if (this._table.rowInfos[r].rowProperty.isSpecifyHeight) {
144542
144554
  if (dHeight > rowPorpertyHeight) {
144543
144555
  this._table.rowInfos[r].rowHeight = rowPorpertyHeight;
@@ -148963,8 +148975,8 @@ class DrawTree {
148963
148975
  aCell.drawCell.updateHeight();
148964
148976
  const [r, c] = aCell.table.getCellInfos(aCell);
148965
148977
  if (r >= 0) {
148966
- const rowPorperty = aCell.table.rowInfos[r + aCell.rowSpan - 1].rowProperty;
148967
- if (rowPorperty.rowHeight > 0 && rowPorperty.isLockRowHeight) {
148978
+ const row = aCell.table.rowInfos[r + aCell.rowSpan - 1];
148979
+ if (row && row.rowProperty.rowHeight > 0 && row.rowProperty.isLockRowHeight) {
148968
148980
  canChangeHeight = false;
148969
148981
  }
148970
148982
  }
@@ -156042,23 +156054,28 @@ class NodeConvert {
156042
156054
  const paraNode = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_13__/* .ParagraphNode */ .f(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, hoEditorFactory.docTree.curParaNo);
156043
156055
  nodes.push(paraNode);
156044
156056
  }
156045
- const analysisText = (0,_common__WEBPACK_IMPORTED_MODULE_25__/* .analyzeTibetanText */ .P)(uidArr[i]);
156046
- analysisText.forEach(item => {
156047
- if (item.iszw) {
156048
- let styleIndex = 0;
156049
- let style = hoEditorFactory.docTree.styles[styleIndex];
156050
- if (style.combineStyle.font != "himalaya") {
156051
- styleIndex = style.changeStyleString('fontFormat', "himalaya");
156052
- style = hoEditorFactory.docTree.styles[styleIndex];
156053
- }
156054
- const styleindex = hoEditorFactory.docTree.styleCompare(style);
156055
- const textNode = new _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_14__/* .TextNode */ .E(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType */ .Z6.ntText, item.text, styleindex, undefined, item.combination);
156056
- nodes.push(textNode);
156057
- } else {
156058
- const textNode = new _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_14__/* .TextNode */ .E(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType */ .Z6.ntText, item.text, 0);
156059
- nodes.push(textNode);
156060
- }
156061
- });
156057
+ if (/[\u0F00-\u0FFF]/.test(uidArr[i])) {
156058
+ const formatZwText = (0,_common__WEBPACK_IMPORTED_MODULE_25__/* .formatZwTextNode */ .u)(uidArr[i]);
156059
+ formatZwText.forEach(item => {
156060
+ if (item.iszw) {
156061
+ let styleIndex = 0;
156062
+ let style = hoEditorFactory.docTree.styles[styleIndex];
156063
+ if (style.combineStyle.font != "himalaya") {
156064
+ styleIndex = style.changeStyleString('fontFormat', "himalaya");
156065
+ style = hoEditorFactory.docTree.styles[styleIndex];
156066
+ }
156067
+ const styleindex = hoEditorFactory.docTree.styleCompare(style);
156068
+ const textNode = new _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_14__/* .TextNode */ .E(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType */ .Z6.ntText, item.text, styleindex, undefined, item.combination);
156069
+ nodes.push(textNode);
156070
+ } else {
156071
+ const textNode = new _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_14__/* .TextNode */ .E(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType */ .Z6.ntText, item.text, 0);
156072
+ nodes.push(textNode);
156073
+ }
156074
+ });
156075
+ } else {
156076
+ const textNode = new _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_14__/* .TextNode */ .E(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType */ .Z6.ntText, uidArr[i], 0);
156077
+ nodes.push(textNode);
156078
+ }
156062
156079
  }
156063
156080
  }
156064
156081
  return nodes;
@@ -156637,8 +156654,8 @@ class UnitConvert {
156637
156654
 
156638
156655
  "use strict";
156639
156656
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
156640
- /* harmony export */ P: function() { return /* binding */ analyzeTibetanText; },
156641
- /* harmony export */ q: function() { return /* binding */ appendPrevTextResult; }
156657
+ /* harmony export */ q: function() { return /* binding */ appendPrevTextResult; },
156658
+ /* harmony export */ u: function() { return /* binding */ formatZwTextNode; }
156642
156659
  /* harmony export */ });
156643
156660
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44114);
156644
156661
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
@@ -156680,7 +156697,7 @@ const appendPrevTextResult = (prevText, prevCombination, nextText) => {
156680
156697
  * @param text 要分析的字符串
156681
156698
  * @returns 包含分类结果的对象
156682
156699
  */
156683
- const analyzeTibetanText = text => {
156700
+ const formatZwTextNode = text => {
156684
156701
  const chars = Array.from(text);
156685
156702
  const result = [];
156686
156703
  let prev = true;
@@ -158362,7 +158379,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
158362
158379
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
158363
158380
 
158364
158381
  var map = {
158365
- "./ControlModal.vue": 84066,
158382
+ "./ControlModal.vue": 54584,
158366
158383
  "./barCode/BarCodes.vue": 41685,
158367
158384
  "./colorPicker/HoColorPicker.vue": 53071,
158368
158385
  "./colorPicker/HoColorPickers.vue": 2637,
@@ -217329,8 +217346,8 @@ class entry_lib_HTMLconverter2 {
217329
217346
  const node = this.generateTextNode(text, styleobj);
217330
217347
  if (!combination && /[\u0F00-\u0FFF]/.test(text)) {
217331
217348
  // 阿萨德发生ཅྕཻཅ༢༣ཻཆཻའཻasdfasdf12312
217332
- const analysisText = (0,entry_lib_common/* analyzeTibetanText */.P)(text);
217333
- const nodes = this.generateTextNodeList(analysisText, styleobj);
217349
+ const formatZwText = (0,entry_lib_common/* formatZwTextNode */.u)(text);
217350
+ const nodes = this.generateTextNodeList(formatZwText, styleobj);
217334
217351
  return nodes;
217335
217352
  } else if (combination && ctext && node) {
217336
217353
  node.combination = combination.split(",");
@@ -224816,8 +224833,8 @@ class entry_lib_VueController {
224816
224833
  const lines = text.split('\n');
224817
224834
  for (let i = 0; i < lines.length; i++) {
224818
224835
  if (lines[i] != '') {
224819
- const analysisText = (0,entry_lib_common/* analyzeTibetanText */.P)(lines[i]);
224820
- analysisText.forEach(item => {
224836
+ const formatZwText = (0,entry_lib_common/* formatZwTextNode */.u)(lines[i]);
224837
+ formatZwText.forEach(item => {
224821
224838
  if (item.iszw) {
224822
224839
  let styleIndex = curStyleIndex;
224823
224840
  let style = curTextStyle;
@@ -227601,6 +227618,114 @@ class entry_lib_VueController {
227601
227618
  console.warn('未找到对应的元素');
227602
227619
  }
227603
227620
  }
227621
+ async updateEelementTextByInnercode(innerIdentifier, text) {
227622
+ const nodes = this.getNodesByInnercode('all', true, innerIdentifier);
227623
+ await this.updateElementTextXml(nodes, text);
227624
+ }
227625
+ //元素替换
227626
+ async updateElementTextXml(nodes, text) {
227627
+ const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
227628
+ const xml = hoEditorFactory.structureConvert.replaceNodesName(text);
227629
+ const x2js = new (entry_lib_x2js_default())({
227630
+ stripWhitespaces: false
227631
+ });
227632
+ if (nodes.length > 0) {
227633
+ for (let i = nodes.length - 1; i >= 0; i--) {
227634
+ const node = nodes[i];
227635
+ if (node) {
227636
+ if (node instanceof entry_lib_DateTimeNode/* DateTimeNode */.Y || node instanceof entry_lib_DownListNode/* DownListNode */.dS || node instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM) {
227637
+ if (node.notReplaceElement) {
227638
+ continue;
227639
+ }
227640
+ if (node instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM) {
227641
+ if (text.includes("<TextInputFieldNode>")) {
227642
+ const json = x2js.xml2js(xml);
227643
+ const childNodes = new Array();
227644
+ const getChildNodes = item => {
227645
+ if (Array.isArray(item)) {
227646
+ //数组
227647
+ for (let i = 1; i < item.length - 1; i++) {
227648
+ const anode = hoEditorFactory.structureConvert.convertNode(item[i], node.rootNodes, node);
227649
+ if (anode) {
227650
+ if (anode instanceof entry_lib_TextNode/* TextNode */.E) {
227651
+ if (anode.text.length > [...anode.text].length) {
227652
+ //特殊处理生僻字
227653
+ const rareCharNode = new entry_lib_RareCharNode/* RareCharNode */.P(node.hoEditorFactoryID, anode.rootNodes, node, entry_lib_BaseNode/* NodeType */.Z6.ntRareChar, anode.text, anode.styleIndex);
227654
+ childNodes.push(rareCharNode);
227655
+ } else {
227656
+ if (anode.text !== '' && anode.text !== '‌‌' && anode.text !== '‌‌‌‌' && anode.text !== '‌‌‌‌‌' && anode.text !== '‌‌‌' && anode.text !== '‌') {
227657
+ childNodes.push(anode);
227658
+ }
227659
+ }
227660
+ } else {
227661
+ childNodes.push(anode);
227662
+ }
227663
+ }
227664
+ }
227665
+ } else {
227666
+ //单个对象
227667
+ const bnode = hoEditorFactory.structureConvert.convertNode(item, node.rootNodes, node);
227668
+ if (bnode) {
227669
+ if (bnode instanceof entry_lib_TextNode/* TextNode */.E) {
227670
+ if (bnode.text.length > [...bnode.text].length) {
227671
+ //特殊处理生僻字
227672
+ const rareCharNode = new entry_lib_RareCharNode/* RareCharNode */.P(node.hoEditorFactoryID, bnode.rootNodes, node, entry_lib_BaseNode/* NodeType */.Z6.ntRareChar, bnode.text, bnode.styleIndex);
227673
+ childNodes.push(rareCharNode);
227674
+ } else {
227675
+ if (bnode.text !== '' && bnode.text !== '‌‌' && bnode.text !== '‌‌‌‌' && bnode.text !== '‌‌‌‌‌' && bnode.text !== '‌‌‌' && bnode.text !== '‌') {
227676
+ childNodes.push(bnode);
227677
+ }
227678
+ }
227679
+ } else {
227680
+ childNodes.push(bnode);
227681
+ }
227682
+ }
227683
+ }
227684
+ };
227685
+ getChildNodes(json.node.childNodes.node);
227686
+ const spath = node.StartMarkNode.getNodePath();
227687
+ const epath = node.EndMarkNode.getNodePath();
227688
+ const range = new entry_lib_DomRange/* DomRange */.g(this._hoEditorFactoryID, spath, epath);
227689
+ hoEditorFactory.docController.deleteRange(range, true, "update");
227690
+ node.childNodes.splice(1, 0, ...childNodes);
227691
+ node.update(0);
227692
+ } else {
227693
+ if (text.includes("<MedicalExpress>")) {
227694
+ node.childNodes.splice(1, node.childNodes.length - 2);
227695
+ const nodes = this.text2MedicalExpress(text, node.StartMarkNode, node.StartMarkNode.styleIndex);
227696
+ for (let k = 0; k < nodes.length; k++) {
227697
+ node.childNodes.splice(1 + k, 0, nodes[k]);
227698
+ }
227699
+ node.update(0);
227700
+ return;
227701
+ } else {
227702
+ await node.setFieldText(text);
227703
+ }
227704
+ }
227705
+ } else if (node instanceof entry_lib_DateTimeNode/* DateTimeNode */.Y) {
227706
+ if (text.includes("<DateTimeNode>")) {
227707
+ const json = x2js.xml2js(xml);
227708
+ text = json.node.text;
227709
+ }
227710
+ await node.setDateTimeText(text);
227711
+ } else if (node instanceof entry_lib_DownListNode/* DownListNode */.dS) {
227712
+ if (text.includes("<DownListNode>")) {
227713
+ const json = x2js.xml2js(xml);
227714
+ text = json.node.text;
227715
+ }
227716
+ await node.setDownListText(text);
227717
+ }
227718
+ } else {
227719
+ console.warn(`非文本域和日期元素`);
227720
+ }
227721
+ } else {
227722
+ console.warn('未找到对应的元素');
227723
+ }
227724
+ }
227725
+ } else {
227726
+ console.warn('未找到对应的元素');
227727
+ }
227728
+ }
227604
227729
  updateFirstPageHeader() {
227605
227730
  const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
227606
227731
  const area = hoEditorFactory.drawPageTree.drawHeaders[0];
@@ -242179,7 +242304,7 @@ var entry_lib_HoFooter_component = (0,entry_lib_componentNormalizer/* default */
242179
242304
 
242180
242305
  /* harmony default export */ var entry_lib_HoFooter = (entry_lib_HoFooter_component.exports);
242181
242306
  // EXTERNAL MODULE: ./src/components/controls/ControlModal.vue + 3 modules
242182
- var entry_lib_ControlModal = __webpack_require__(84066);
242307
+ var entry_lib_ControlModal = __webpack_require__(54584);
242183
242308
  // EXTERNAL MODULE: ./src/components/controls/findReplace/FindReplace.vue + 6 modules
242184
242309
  var entry_lib_FindReplace = __webpack_require__(12004);
242185
242310
  ;// ./src/components/controls/findReplace/index.ts
@@ -245977,9 +246102,9 @@ var entry_lib_ToolBarChild_component = (0,entry_lib_componentNormalizer/* defaul
245977
246102
  )
245978
246103
 
245979
246104
  /* harmony default export */ var entry_lib_ToolBarChild = (entry_lib_ToolBarChild_component.exports);
245980
- ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=0739e56c
246105
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=20b75142
245981
246106
 
245982
- var entry_lib_ToolControlvue_type_template_id_0739e56c_render = function render() {
246107
+ var entry_lib_ToolControlvue_type_template_id_20b75142_render = function render() {
245983
246108
  var _vm = this,
245984
246109
  _c = _vm._self._c;
245985
246110
  return _c('div', {
@@ -246320,9 +246445,9 @@ var entry_lib_ToolControlvue_type_template_id_0739e56c_render = function render(
246320
246445
  }
246321
246446
  }, [_c('span', [_vm._v(/*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.324", null, "特殊字符"))])]) : _vm._e()], 2);
246322
246447
  };
246323
- var entry_lib_ToolControlvue_type_template_id_0739e56c_staticRenderFns = [];
246448
+ var entry_lib_ToolControlvue_type_template_id_20b75142_staticRenderFns = [];
246324
246449
 
246325
- ;// ./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=0739e56c
246450
+ ;// ./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=20b75142
246326
246451
 
246327
246452
  ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoDateTime.vue?vue&type=template&id=6b089050
246328
246453
 
@@ -246624,6 +246749,8 @@ var entry_lib_ajax = __webpack_require__(46887);
246624
246749
 
246625
246750
 
246626
246751
 
246752
+ // import { $HoFormula } from '@/components/common/hoformula';
246753
+
246627
246754
  /* harmony default export */ var entry_lib_ToolControlvue_type_script_lang_js = ({
246628
246755
  name: 'ToolControl',
246629
246756
  components: {
@@ -246776,8 +246903,8 @@ var entry_lib_ajax = __webpack_require__(46887);
246776
246903
  ;
246777
246904
  var entry_lib_ToolControl_component = (0,entry_lib_componentNormalizer/* default */.A)(
246778
246905
  entry_lib_insert_ToolControlvue_type_script_lang_js,
246779
- entry_lib_ToolControlvue_type_template_id_0739e56c_render,
246780
- entry_lib_ToolControlvue_type_template_id_0739e56c_staticRenderFns,
246906
+ entry_lib_ToolControlvue_type_template_id_20b75142_render,
246907
+ entry_lib_ToolControlvue_type_template_id_20b75142_staticRenderFns,
246781
246908
  false,
246782
246909
  null,
246783
246910
  null,