hoeditor-web 3.1.164 → 3.1.166

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.
@@ -65189,20 +65189,12 @@ var es_regexp_to_string = __webpack_require__(39714);
65189
65189
  var es_array_slice = __webpack_require__(47042);
65190
65190
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
65191
65191
  var es_json_stringify = __webpack_require__(38862);
65192
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
65193
- var es_regexp_exec = __webpack_require__(74916);
65194
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
65195
- var es_string_replace = __webpack_require__(15306);
65196
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
65197
- var es_array_includes = __webpack_require__(26699);
65198
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
65199
- var es_string_includes = __webpack_require__(32023);
65200
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
65201
- var es_array_push = __webpack_require__(57658);
65202
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
65203
- var es_array_join = __webpack_require__(69600);
65204
65192
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
65205
65193
  var es_array_splice = __webpack_require__(40561);
65194
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
65195
+ var es_array_join = __webpack_require__(69600);
65196
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
65197
+ var es_array_push = __webpack_require__(57658);
65206
65198
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
65207
65199
  var es_object_assign = __webpack_require__(19601);
65208
65200
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
@@ -65211,6 +65203,10 @@ var es_array_concat = __webpack_require__(92222);
65211
65203
  var es_number_constructor = __webpack_require__(9653);
65212
65204
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
65213
65205
  var es_error_cause = __webpack_require__(21703);
65206
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
65207
+ var es_array_includes = __webpack_require__(26699);
65208
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
65209
+ var es_string_includes = __webpack_require__(32023);
65214
65210
  // EXTERNAL MODULE: ./src/editor/draw/DrawLine.ts + 1 modules
65215
65211
  var DrawLine = __webpack_require__(96635);
65216
65212
  // EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
@@ -67002,8 +66998,6 @@ var PopQScoreNode = __webpack_require__(12790);
67002
66998
 
67003
66999
 
67004
67000
 
67005
-
67006
-
67007
67001
 
67008
67002
 
67009
67003
 
@@ -68226,40 +68220,39 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
68226
68220
  }
68227
68221
  });
68228
68222
  };
68229
- if (this.inputFieldType === InputFieldType.dropDownList) {
68230
- var _this$downListPropert;
68231
- text = "";
68232
- loopChildNodes(this);
68233
- if (text.replace(/\n/g, '') != this.text.replace(/\n/g, '') && isNeed && !this.text.includes("<span>") && !((_this$downListPropert = this.downListProperty.listItems) !== null && _this$downListPropert !== void 0 && _this$downListPropert.includes("<元素>")) && this.readType != 1) {
68234
- this.value = "";
68235
- if (this.text == '' && !this.keyValue) {
68236
- this.keyValue = "";
68237
- }
68238
- return text;
68239
- } else {
68240
- text = "";
68241
- }
68242
- var downListProperty = this.downListProperty;
68243
- if (downListProperty.listItems) {
68244
- var listItems = JSON.parse(downListProperty.listItems);
68245
- if (listItems.length === undefined) {
68246
- listItems = Array(JSON.parse(downListProperty.listItems));
68247
- }
68248
- var value = [];
68249
- var keyValue = this.keyValue.split(',');
68250
- for (var i = 0; i < listItems.length; i++) {
68251
- var listItem = listItems[i];
68252
- if (keyValue.includes(listItem.id.toString())) {
68253
- var index = listItem.text.indexOf('<元素>');
68254
- text += index === -1 ? listItem.text : listItem.text.substring(0, index);
68255
- text += this.downListProperty.splitCharacter;
68256
- String(listItem.value) && value.push(listItem.value);
68257
- }
68258
- }
68259
- text = text.substring(0, text.length - 1).replace('\r', '');
68260
- this.value = value.join(',');
68261
- }
68262
- }
68223
+ // if (this.inputFieldType === InputFieldType.dropDownList) {
68224
+ // text = "";
68225
+ // loopChildNodes(this);
68226
+ // if (text.replace(/\n/g, '') != this.text.replace(/\n/g, '') && isNeed && !this.text.includes("<span>") && !this.downListProperty.listItems?.includes("<元素>") && this.readType != 1) {
68227
+ // this.value = "";
68228
+ // if (this.text == '' && !this.keyValue) {
68229
+ // this.keyValue = "";
68230
+ // }
68231
+ // return text;
68232
+ // } else {
68233
+ // text = "";
68234
+ // }
68235
+ // const downListProperty = this.downListProperty;
68236
+ // if (downListProperty.listItems) {
68237
+ // let listItems = JSON.parse(downListProperty.listItems);
68238
+ // if (listItems.length === undefined) {
68239
+ // listItems = Array(JSON.parse(downListProperty.listItems));
68240
+ // }
68241
+ // let value: string[] = [];
68242
+ // const keyValue: string[] = this.keyValue.split(',');
68243
+ // for (let i = 0; i < listItems.length; i++) {
68244
+ // const listItem = listItems[i];
68245
+ // if (keyValue.includes(listItem.id.toString())) {
68246
+ // const index = listItem.text.indexOf('<元素>');
68247
+ // text += index === -1 ? listItem.text : listItem.text.substring(0, index);
68248
+ // text += this.downListProperty.splitCharacter;
68249
+ // String(listItem.value) && value.push(listItem.value);
68250
+ // }
68251
+ // }
68252
+ // text = text.substring(0, text.length - 1).replace('\r', '');
68253
+ // this.value = value.join(',');
68254
+ // }
68255
+ // }
68263
68256
  if (text === '') {
68264
68257
  loopChildNodes(this);
68265
68258
  }
@@ -74164,7 +74157,7 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
74164
74157
  var aHeight = this._cell.drawCell.calcCellHeight();
74165
74158
  var cellMaxHeigth = Math.min(maxHeight, aHeight);
74166
74159
  if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_15__/* .VAlign */ .TR.vatop) {
74167
- valignTop = 0;
74160
+ valignTop = 1;
74168
74161
  } else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_15__/* .VAlign */ .TR.vacenter && cellMaxHeigth > this._cell.drawCell.docHeight) {
74169
74162
  valignTop = (cellMaxHeigth - this._cell.drawCell.docHeight) / 2;
74170
74163
  } else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_15__/* .VAlign */ .TR.vabottom && aHeight > this._cell.drawCell.docHeight) {
@@ -78864,7 +78857,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
78864
78857
  if (_mc3 > 0) {
78865
78858
  dPartCell.x = aleft;
78866
78859
  }
78867
- //this.drawItems.push(dPartCell);
78868
78860
  this.addChild(dPartCell);
78869
78861
  var ret = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
78870
78862
  dPartCell.y = cellRowTop;
@@ -78897,19 +78889,8 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
78897
78889
  }
78898
78890
  }
78899
78891
  }
78900
- // cell.drawCell.update(
78901
- // aPageIndex,
78902
- // dPageTable,
78903
- // 0,
78904
- // cell.drawCell.drawLines.length - 1,
78905
- // adTop,
78906
- // aRestHeight
78907
- // );
78908
- // }
78909
78892
  }
78910
- //const oldHeight = this._partRowHeights.get(r)?.rowHeight;
78911
78893
  rowHeight = Math.min(this.getAndUpdatePartRowHeight(r), pageRestHeight);
78912
- // if (oldHeight !== rowHeight)
78913
78894
  this._endRow = r;
78914
78895
  if (bRowHeightChanged) this.updateRowPartCellHeight(r, rowHeight);
78915
78896
  rowTop = rowTop + rowHeight + emptyRowHeight;
@@ -78922,9 +78903,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
78922
78903
  break;
78923
78904
  }
78924
78905
  }
78925
- // if (!bRowHeightChanged) {
78926
- // this.updateRowPartCellHeight(this._endRow, rowHeight)
78927
- // }
78928
78906
  //绘制最后一行的单元格存在结束行非当前页时,需要特殊处理
78929
78907
  this.updateLastLineMergeCrossCell(prevdPageTable, this._endRow, rowHeight, tableRestHeight);
78930
78908
  var aHeight = 0;
@@ -79614,20 +79592,6 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
79614
79592
  }
79615
79593
  this._borderShape.graphics.drawRect(0, this._dHeight, this._dWidth, 1);
79616
79594
  }
79617
- // /**
79618
- // * @author xyl
79619
- // * @param startPath 起始绘制点
79620
- // * @param endPath 结束绘制点
79621
- // * @returns 迭代绘制范围
79622
- // */
79623
- // public *listDrawLineByPathRange(startLine: number, endLine: number) {
79624
- // if (startLine === -1) {
79625
- // return;
79626
- // }
79627
- // for (let i = startLine; i <= endLine; i++) {
79628
- // yield i;
79629
- // }
79630
- // }
79631
79595
  }, {
79632
79596
  key: "clearDrawAfterDline",
79633
79597
  value: function clearDrawAfterDline(aline) {
@@ -80134,7 +80098,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
80134
80098
  if (node.parentNode instanceof _editor_dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_9__/* .CellNode */ .D) {
80135
80099
  var cellWidth = node.parentNode.drawCell.dWidth;
80136
80100
  if (width > cellWidth - 5) {
80137
- drawNode.dHeight = (cellWidth - 5) * drawNode.dHeight / width;
80101
+ drawNode.dHeight = (cellWidth - 5) * drawNode.dHeight / width - 2;
80138
80102
  scale = (cellWidth - 5) / width * scale;
80139
80103
  width = cellWidth - 5;
80140
80104
  }
@@ -210512,7 +210476,7 @@ var TextNode = __webpack_require__(27198);
210512
210476
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
210513
210477
  var ParagraphNode = __webpack_require__(67945);
210514
210478
  ;// CONCATENATED MODULE: ./src/components/version.ts
210515
- /* harmony default export */ var version = ('3.1.164');
210479
+ /* harmony default export */ var version = ('3.1.166');
210516
210480
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
210517
210481
  var PoperTipText = __webpack_require__(84531);
210518
210482
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -224714,12 +224678,14 @@ var VueController = /*#__PURE__*/function () {
224714
224678
  if (anode instanceof ControlNode/* ControlNode */.w && anode.nodeType !== 10 && anode.nodeType !== 11 || anode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
224715
224679
  for (var m = 0, len = items.length - 1; m <= len; m++) {
224716
224680
  var item = items[m];
224717
- if (item.text !== '' && (item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId) && anode.text.includes(item.text)) {
224681
+ var isCurrent = item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId || item.innerIdentifier === anode.innerIdentifier;
224682
+ // console.log(isCurrent, anode.name, anode.innerIdentifier)
224683
+ if (item.text !== '' && isCurrent && anode.text.includes(item.text)) {
224718
224684
  var range = _this6.search(anode, item.text);
224719
224685
  if (range.length > 0) {
224720
224686
  selectRangeArr = selectRangeArr.concat(range);
224721
224687
  }
224722
- } else if (item.text === '' && (item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId)) {
224688
+ } else if (item.text === '' && isCurrent) {
224723
224689
  var _range = _this6.search(anode, anode.text);
224724
224690
  if (_range.length > 0) {
224725
224691
  selectRangeArr = selectRangeArr.concat(_range);