hoeditor-web 3.0.100 → 3.0.101

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.
@@ -40129,7 +40129,7 @@ var DocController = /*#__PURE__*/function () {
40129
40129
  key: "deleteTextBeforePath",
40130
40130
  value: function () {
40131
40131
  var _deleteTextBeforePath = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee(startPath) {
40132
- var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, nextNode, path, signNode, spath, epath, newSignNode, pNode;
40132
+ var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, nextNode, path, signNode, spath, epath, newSignNode, nodesDeleteUndoUnit, pNode;
40133
40133
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
40134
40134
  while (1) {
40135
40135
  switch (_context.prev = _context.next) {
@@ -40151,18 +40151,18 @@ var DocController = /*#__PURE__*/function () {
40151
40151
  // )
40152
40152
  // );
40153
40153
  // hoEditorFactory.undoService.commit();
40154
- _context.next = 124;
40154
+ _context.next = 125;
40155
40155
  break;
40156
40156
  case 6:
40157
40157
  nodePosition = hoEditorFactory.docTree.findNodePositionByPath(startPath);
40158
40158
  childIndex = nodePosition.childIndex;
40159
40159
  node = nodePosition.node;
40160
40160
  if (!node) {
40161
- _context.next = 124;
40161
+ _context.next = 125;
40162
40162
  break;
40163
40163
  }
40164
40164
  if (!domRange.isEmpty) {
40165
- _context.next = 124;
40165
+ _context.next = 125;
40166
40166
  break;
40167
40167
  }
40168
40168
  if (!(node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_26__/* .TextNode */ .R)) {
@@ -40218,7 +40218,7 @@ var DocController = /*#__PURE__*/function () {
40218
40218
  aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_30__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
40219
40219
  this.deleteRange(aRange, true);
40220
40220
  hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_30__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
40221
- _context.next = 124;
40221
+ _context.next = 125;
40222
40222
  break;
40223
40223
  case 36:
40224
40224
  if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_46__/* .MarkNode */ .j)) {
@@ -40270,7 +40270,7 @@ var DocController = /*#__PURE__*/function () {
40270
40270
  // )
40271
40271
  // );
40272
40272
  // hoEditorFactory.undoService.commit();
40273
- _context.next = 124;
40273
+ _context.next = 125;
40274
40274
  break;
40275
40275
  case 56:
40276
40276
  if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_29__/* .ParagraphNode */ .C)) {
@@ -40357,7 +40357,7 @@ var DocController = /*#__PURE__*/function () {
40357
40357
  return _context.abrupt("return");
40358
40358
  case 98:
40359
40359
  if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
40360
- _context.next = 119;
40360
+ _context.next = 120;
40361
40361
  break;
40362
40362
  }
40363
40363
  preNode = node.previousLeaf();
@@ -40375,7 +40375,7 @@ var DocController = /*#__PURE__*/function () {
40375
40375
  return _context.abrupt("return");
40376
40376
  case 109:
40377
40377
  if (!(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
40378
- _context.next = 119;
40378
+ _context.next = 120;
40379
40379
  break;
40380
40380
  }
40381
40381
  spath = "";
@@ -40390,13 +40390,14 @@ var DocController = /*#__PURE__*/function () {
40390
40390
  //node.isTemplate,
40391
40391
  node.styleIndex, preNode.connectMode, preNode.isFront, preNode.allowEditSignTime, preNode.fingerPrintSrc, preNode.fingerPosition, preNode.attribute, preNode.connectChar, preNode.otherProperties);
40392
40392
  hoEditorFactory.undoService.begin();
40393
- hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, spath, epath));
40394
- if (node.number === 2 || node.number === 1 && node.isTemplate) {
40393
+ nodesDeleteUndoUnit = new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, spath, epath, true);
40394
+ hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
40395
+ if (!nodesDeleteUndoUnit.isError && (node.number === 2 || node.number === 1 && node.isTemplate)) {
40395
40396
  hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, spath, newSignNode));
40396
40397
  }
40397
40398
  hoEditorFactory.undoService.commit();
40398
40399
  return _context.abrupt("return");
40399
- case 119:
40400
+ case 120:
40400
40401
  pNode = node.parentNode;
40401
40402
  hoEditorFactory.undoService.begin();
40402
40403
  hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
@@ -40404,7 +40405,7 @@ var DocController = /*#__PURE__*/function () {
40404
40405
  if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
40405
40406
  this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
40406
40407
  }
40407
- case 124:
40408
+ case 125:
40408
40409
  case "end":
40409
40410
  return _context.stop();
40410
40411
  }
@@ -239960,7 +239961,7 @@ var TextNode = __webpack_require__(27198);
239960
239961
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
239961
239962
  var ParagraphNode = __webpack_require__(67945);
239962
239963
  ;// CONCATENATED MODULE: ./src/components/version.ts
239963
- /* harmony default export */ var version = ('3.0.100');
239964
+ /* harmony default export */ var version = ('3.0.101');
239964
239965
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
239965
239966
  var PoperTipText = __webpack_require__(36081);
239966
239967
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -251137,13 +251138,14 @@ var VueController = /*#__PURE__*/function () {
251137
251138
  spath = hoEditorFactory.docTree.getNodeLastPath(preNode);
251138
251139
  }
251139
251140
  //const spath = hoEditorFactory.docTree.getNodeLastPath(preNode as BaseNode);
251140
- var epath = hoEditorFactory.docTree.getNodeLastPath(node);
251141
+ //const epath = hoEditorFactory.docTree.getNodeLastPath(node);
251141
251142
  var newSignNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, preNode.rootNodes, preNode.parentNode, BaseNode/* NodeType.ntSign */.Jq.ntSign, 1, preNode.type, preNode.name === '' ? '签名' : preNode.name, preNode.signType, preNode.signFormat, preNode.signor, preNode.signTime, preNode.signTimeFormat, preNode.imgSrc, preNode.imgWidth, preNode.imgHeight, preNode.customProperty, preNode.isTemplate ? preNode.isTemplate : node.isTemplate,
251142
251143
  //node.isTemplate,
251143
251144
  node.styleIndex, preNode.connectMode, preNode.isFront, preNode.allowEditSignTime, preNode.fingerPrintSrc, preNode.fingerPosition, preNode.attribute, preNode.connectChar, preNode.otherProperties);
251144
251145
  hoEditorFactory.undoService.begin();
251145
- hoEditorFactory.undoService.add(new NodesDeleteUndoUnit/* NodesDeleteUndoUnit */.F(this._hoEditorFactoryID, spath, ePath));
251146
- if (node.number === 2 || node.number === 1 && node.isTemplate) {
251146
+ var nodesDeleteUndoUnit = new NodesDeleteUndoUnit/* NodesDeleteUndoUnit */.F(this._hoEditorFactoryID, spath, ePath, true);
251147
+ hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
251148
+ if (!nodesDeleteUndoUnit.isError && (node.number === 2 || node.number === 1 && node.isTemplate)) {
251147
251149
  hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, spath, newSignNode));
251148
251150
  }
251149
251151
  hoEditorFactory.undoService.commit();