hoeditor-web 3.1.51 → 3.1.52
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.
- package/lib/hoeditor.umd.js +29 -25
- package/lib/hoeditor.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -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.
|
|
218799
|
+
/* harmony default export */ var version = ('3.1.52');
|
|
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
|
|
@@ -231199,35 +231199,36 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231199
231199
|
break;
|
|
231200
231200
|
}
|
|
231201
231201
|
_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;
|
|
231202
|
+
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
231203
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop4$(_context9) {
|
|
231204
231204
|
while (1) switch (_context9.prev = _context9.next) {
|
|
231205
231205
|
case 0:
|
|
231206
231206
|
node = nodes[i];
|
|
231207
231207
|
if (!node) {
|
|
231208
|
-
_context9.next =
|
|
231208
|
+
_context9.next = 47;
|
|
231209
231209
|
break;
|
|
231210
231210
|
}
|
|
231211
231211
|
if (!(node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF || node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
231212
|
-
_context9.next =
|
|
231212
|
+
_context9.next = 44;
|
|
231213
231213
|
break;
|
|
231214
231214
|
}
|
|
231215
231215
|
if (!(node.notReplaceElement === true)) {
|
|
231216
231216
|
_context9.next = 6;
|
|
231217
231217
|
break;
|
|
231218
231218
|
}
|
|
231219
|
-
console.warn(
|
|
231219
|
+
//console.warn(`${id} ==> ${node.notReplaceElement}`);
|
|
231220
|
+
console.warn("[" + node.name + "]" + "未启用元素引用");
|
|
231220
231221
|
return _context9.abrupt("return", {
|
|
231221
231222
|
v: void 0
|
|
231222
231223
|
});
|
|
231223
231224
|
case 6:
|
|
231224
231225
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this2._hoEditorFactoryID);
|
|
231225
231226
|
if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
231226
|
-
_context9.next =
|
|
231227
|
+
_context9.next = 34;
|
|
231227
231228
|
break;
|
|
231228
231229
|
}
|
|
231229
231230
|
if (!text.includes("<TextInputFieldNode>")) {
|
|
231230
|
-
_context9.next =
|
|
231231
|
+
_context9.next = 24;
|
|
231231
231232
|
break;
|
|
231232
231233
|
}
|
|
231233
231234
|
xml = hoEditorFactory.structureConvert.replaceNodesName(text);
|
|
@@ -231279,14 +231280,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231279
231280
|
}
|
|
231280
231281
|
};
|
|
231281
231282
|
getChildNodes(json.node.childNodes.node);
|
|
231282
|
-
node.
|
|
231283
|
+
spath = node.StartMarkNode.getNodePath();
|
|
231284
|
+
epath = node.EndMarkNode.getNodePath();
|
|
231285
|
+
range = new DomRange/* DomRange */.a(_this2._hoEditorFactoryID, spath, epath);
|
|
231286
|
+
hoEditorFactory.docController.deleteRange(range, true, "update");
|
|
231283
231287
|
(_node$childNodes = node.childNodes).splice.apply(_node$childNodes, [1, 0].concat(childNodes));
|
|
231284
231288
|
node.update(0);
|
|
231285
|
-
_context9.next =
|
|
231289
|
+
_context9.next = 34;
|
|
231286
231290
|
break;
|
|
231287
|
-
case
|
|
231291
|
+
case 24:
|
|
231288
231292
|
if (!text.includes("<MedicalExpress>")) {
|
|
231289
|
-
_context9.next =
|
|
231293
|
+
_context9.next = 32;
|
|
231290
231294
|
break;
|
|
231291
231295
|
}
|
|
231292
231296
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
@@ -231298,12 +231302,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231298
231302
|
return _context9.abrupt("return", {
|
|
231299
231303
|
v: void 0
|
|
231300
231304
|
});
|
|
231301
|
-
case
|
|
231302
|
-
_context9.next =
|
|
231305
|
+
case 32:
|
|
231306
|
+
_context9.next = 34;
|
|
231303
231307
|
return node.setFieldText(text);
|
|
231304
|
-
case
|
|
231308
|
+
case 34:
|
|
231305
231309
|
if (!(node instanceof DateTimeNode/* DateTimeNode */.Z)) {
|
|
231306
|
-
_context9.next =
|
|
231310
|
+
_context9.next = 38;
|
|
231307
231311
|
break;
|
|
231308
231312
|
}
|
|
231309
231313
|
if (text.includes("<DateTimeNode>")) {
|
|
@@ -231315,11 +231319,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231315
231319
|
_json = _object;
|
|
231316
231320
|
text = _json.node.text;
|
|
231317
231321
|
}
|
|
231318
|
-
_context9.next =
|
|
231322
|
+
_context9.next = 38;
|
|
231319
231323
|
return node.setDateTimeText(text);
|
|
231320
|
-
case
|
|
231324
|
+
case 38:
|
|
231321
231325
|
if (!(node instanceof DownListNode/* DownListNode */.yF)) {
|
|
231322
|
-
_context9.next =
|
|
231326
|
+
_context9.next = 42;
|
|
231323
231327
|
break;
|
|
231324
231328
|
}
|
|
231325
231329
|
if (text.includes("<DownListNode>")) {
|
|
@@ -231331,19 +231335,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231331
231335
|
_json2 = _object2;
|
|
231332
231336
|
text = _json2.node.text;
|
|
231333
231337
|
}
|
|
231334
|
-
_context9.next = 39;
|
|
231335
|
-
return node.setDownListText(text);
|
|
231336
|
-
case 39:
|
|
231337
231338
|
_context9.next = 42;
|
|
231338
|
-
|
|
231339
|
-
case 41:
|
|
231340
|
-
console.warn("\u975E\u6587\u672C\u57DF\u548C\u65E5\u671F\u5143\u7D20");
|
|
231339
|
+
return node.setDownListText(text);
|
|
231341
231340
|
case 42:
|
|
231342
231341
|
_context9.next = 45;
|
|
231343
231342
|
break;
|
|
231344
231343
|
case 44:
|
|
231345
|
-
console.warn(
|
|
231344
|
+
console.warn("\u975E\u6587\u672C\u57DF\u548C\u65E5\u671F\u5143\u7D20");
|
|
231346
231345
|
case 45:
|
|
231346
|
+
_context9.next = 48;
|
|
231347
|
+
break;
|
|
231348
|
+
case 47:
|
|
231349
|
+
console.warn('未找到对应的元素');
|
|
231350
|
+
case 48:
|
|
231347
231351
|
case "end":
|
|
231348
231352
|
return _context9.stop();
|
|
231349
231353
|
}
|