hoeditor-web 3.1.51 → 3.1.53

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.
@@ -218796,7 +218796,7 @@ var TextNode = __webpack_require__(27198);
218796
218796
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
218797
218797
  var ParagraphNode = __webpack_require__(67945);
218798
218798
  ;// CONCATENATED MODULE: ./src/components/version.ts
218799
- /* harmony default export */ var version = ('3.1.51');
218799
+ /* harmony default export */ var version = ('3.1.53');
218800
218800
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
218801
218801
  var PoperTipText = __webpack_require__(50987);
218802
218802
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -228654,7 +228654,9 @@ var VueController = /*#__PURE__*/function () {
228654
228654
  if (anode.id === id) {
228655
228655
  node = anode;
228656
228656
  nodeList.push(anode);
228657
- break;
228657
+ if (type !== "array") {
228658
+ break;
228659
+ }
228658
228660
  }
228659
228661
  }
228660
228662
  if (anode instanceof BaseCombineNode/* BaseCombineNode */.V) {
@@ -231195,39 +231197,36 @@ var VueController = /*#__PURE__*/function () {
231195
231197
  case 0:
231196
231198
  nodes = this.getNodeByID('all', id, 'array');
231197
231199
  if (!(nodes.length > 0)) {
231198
- _context10.next = 14;
231200
+ _context10.next = 16;
231199
231201
  break;
231200
231202
  }
231201
231203
  _loop4 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop4() {
231202
- var node, hoEditorFactory, _node$childNodes, xml, x2js, object, json, childNodes, getChildNodes, _nodes4, k, _xml, _x2js, _object, _json, _xml2, _x2js2, _object2, _json2;
231204
+ var node, hoEditorFactory, _node$childNodes, xml, x2js, object, json, childNodes, getChildNodes, spath, epath, range, _nodes4, k, _xml, _x2js, _object, _json, _xml2, _x2js2, _object2, _json2;
231203
231205
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop4$(_context9) {
231204
231206
  while (1) switch (_context9.prev = _context9.next) {
231205
231207
  case 0:
231206
231208
  node = nodes[i];
231207
231209
  if (!node) {
231208
- _context9.next = 44;
231210
+ _context9.next = 46;
231209
231211
  break;
231210
231212
  }
231211
231213
  if (!(node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF || node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
231212
- _context9.next = 41;
231214
+ _context9.next = 43;
231213
231215
  break;
231214
231216
  }
231215
- if (!(node.notReplaceElement === true)) {
231216
- _context9.next = 6;
231217
+ if (!node.notReplaceElement) {
231218
+ _context9.next = 5;
231217
231219
  break;
231218
231220
  }
231219
- console.warn("".concat(id, " ==> ").concat(node.notReplaceElement));
231220
- return _context9.abrupt("return", {
231221
- v: void 0
231222
- });
231223
- case 6:
231221
+ return _context9.abrupt("return", 0);
231222
+ case 5:
231224
231223
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this2._hoEditorFactoryID);
231225
231224
  if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
231226
- _context9.next = 31;
231225
+ _context9.next = 33;
231227
231226
  break;
231228
231227
  }
231229
231228
  if (!text.includes("<TextInputFieldNode>")) {
231230
- _context9.next = 21;
231229
+ _context9.next = 23;
231231
231230
  break;
231232
231231
  }
231233
231232
  xml = hoEditorFactory.structureConvert.replaceNodesName(text);
@@ -231279,14 +231278,17 @@ var VueController = /*#__PURE__*/function () {
231279
231278
  }
231280
231279
  };
231281
231280
  getChildNodes(json.node.childNodes.node);
231282
- node.childNodes.splice(1, node.childNodes.length - 2);
231281
+ spath = node.StartMarkNode.getNodePath();
231282
+ epath = node.EndMarkNode.getNodePath();
231283
+ range = new DomRange/* DomRange */.a(_this2._hoEditorFactoryID, spath, epath);
231284
+ hoEditorFactory.docController.deleteRange(range, true, "update");
231283
231285
  (_node$childNodes = node.childNodes).splice.apply(_node$childNodes, [1, 0].concat(childNodes));
231284
231286
  node.update(0);
231285
- _context9.next = 31;
231287
+ _context9.next = 33;
231286
231288
  break;
231287
- case 21:
231289
+ case 23:
231288
231290
  if (!text.includes("<MedicalExpress>")) {
231289
- _context9.next = 29;
231291
+ _context9.next = 31;
231290
231292
  break;
231291
231293
  }
231292
231294
  node.childNodes.splice(1, node.childNodes.length - 2);
@@ -231298,12 +231300,12 @@ var VueController = /*#__PURE__*/function () {
231298
231300
  return _context9.abrupt("return", {
231299
231301
  v: void 0
231300
231302
  });
231301
- case 29:
231302
- _context9.next = 31;
231303
- return node.setFieldText(text);
231304
231303
  case 31:
231304
+ _context9.next = 33;
231305
+ return node.setFieldText(text);
231306
+ case 33:
231305
231307
  if (!(node instanceof DateTimeNode/* DateTimeNode */.Z)) {
231306
- _context9.next = 35;
231308
+ _context9.next = 37;
231307
231309
  break;
231308
231310
  }
231309
231311
  if (text.includes("<DateTimeNode>")) {
@@ -231315,11 +231317,11 @@ var VueController = /*#__PURE__*/function () {
231315
231317
  _json = _object;
231316
231318
  text = _json.node.text;
231317
231319
  }
231318
- _context9.next = 35;
231320
+ _context9.next = 37;
231319
231321
  return node.setDateTimeText(text);
231320
- case 35:
231322
+ case 37:
231321
231323
  if (!(node instanceof DownListNode/* DownListNode */.yF)) {
231322
- _context9.next = 39;
231324
+ _context9.next = 41;
231323
231325
  break;
231324
231326
  }
231325
231327
  if (text.includes("<DownListNode>")) {
@@ -231331,19 +231333,19 @@ var VueController = /*#__PURE__*/function () {
231331
231333
  _json2 = _object2;
231332
231334
  text = _json2.node.text;
231333
231335
  }
231334
- _context9.next = 39;
231336
+ _context9.next = 41;
231335
231337
  return node.setDownListText(text);
231336
- case 39:
231337
- _context9.next = 42;
231338
- break;
231339
231338
  case 41:
231340
- console.warn("\u975E\u6587\u672C\u57DF\u548C\u65E5\u671F\u5143\u7D20");
231341
- case 42:
231342
- _context9.next = 45;
231339
+ _context9.next = 44;
231343
231340
  break;
231341
+ case 43:
231342
+ console.warn("\u975E\u6587\u672C\u57DF\u548C\u65E5\u671F\u5143\u7D20");
231344
231343
  case 44:
231344
+ _context9.next = 47;
231345
+ break;
231346
+ case 46:
231345
231347
  console.warn('未找到对应的元素');
231346
- case 45:
231348
+ case 47:
231347
231349
  case "end":
231348
231350
  return _context9.stop();
231349
231351
  }
@@ -231352,27 +231354,33 @@ var VueController = /*#__PURE__*/function () {
231352
231354
  i = nodes.length - 1;
231353
231355
  case 4:
231354
231356
  if (!(i >= 0)) {
231355
- _context10.next = 12;
231357
+ _context10.next = 14;
231356
231358
  break;
231357
231359
  }
231358
231360
  return _context10.delegateYield(_loop4(), "t0", 6);
231359
231361
  case 6:
231360
231362
  _ret2 = _context10.t0;
231361
- if (!_ret2) {
231363
+ if (!(_ret2 === 0)) {
231362
231364
  _context10.next = 9;
231363
231365
  break;
231364
231366
  }
231365
- return _context10.abrupt("return", _ret2.v);
231367
+ return _context10.abrupt("continue", 11);
231366
231368
  case 9:
231369
+ if (!_ret2) {
231370
+ _context10.next = 11;
231371
+ break;
231372
+ }
231373
+ return _context10.abrupt("return", _ret2.v);
231374
+ case 11:
231367
231375
  i--;
231368
231376
  _context10.next = 4;
231369
231377
  break;
231370
- case 12:
231371
- _context10.next = 15;
231372
- break;
231373
231378
  case 14:
231379
+ _context10.next = 17;
231380
+ break;
231381
+ case 16:
231374
231382
  console.warn('未找到对应的元素');
231375
- case 15:
231383
+ case 17:
231376
231384
  case "end":
231377
231385
  return _context10.stop();
231378
231386
  }