hoeditor-web 3.1.50 → 3.1.51
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.css +1 -17883
- package/lib/hoeditor.umd.js +42 -24
- 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.51');
|
|
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,17 +231199,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231199
231199
|
break;
|
|
231200
231200
|
}
|
|
231201
231201
|
_loop4 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop4() {
|
|
231202
|
-
var node, _node$childNodes,
|
|
231202
|
+
var node, hoEditorFactory, _node$childNodes, xml, x2js, object, json, childNodes, getChildNodes, _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 = 44;
|
|
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 = 41;
|
|
231213
231213
|
break;
|
|
231214
231214
|
}
|
|
231215
231215
|
if (!(node.notReplaceElement === true)) {
|
|
@@ -231221,6 +231221,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231221
231221
|
v: void 0
|
|
231222
231222
|
});
|
|
231223
231223
|
case 6:
|
|
231224
|
+
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this2._hoEditorFactoryID);
|
|
231224
231225
|
if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
231225
231226
|
_context9.next = 31;
|
|
231226
231227
|
break;
|
|
@@ -231229,7 +231230,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231229
231230
|
_context9.next = 21;
|
|
231230
231231
|
break;
|
|
231231
231232
|
}
|
|
231232
|
-
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this2._hoEditorFactoryID);
|
|
231233
231233
|
xml = hoEditorFactory.structureConvert.replaceNodesName(text);
|
|
231234
231234
|
x2js = new (x2js_default())({
|
|
231235
231235
|
stripWhitespaces: false
|
|
@@ -231303,29 +231303,47 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231303
231303
|
return node.setFieldText(text);
|
|
231304
231304
|
case 31:
|
|
231305
231305
|
if (!(node instanceof DateTimeNode/* DateTimeNode */.Z)) {
|
|
231306
|
-
_context9.next =
|
|
231306
|
+
_context9.next = 35;
|
|
231307
231307
|
break;
|
|
231308
231308
|
}
|
|
231309
|
-
|
|
231309
|
+
if (text.includes("<DateTimeNode>")) {
|
|
231310
|
+
_xml = hoEditorFactory.structureConvert.replaceNodesName(text);
|
|
231311
|
+
_x2js = new (x2js_default())({
|
|
231312
|
+
stripWhitespaces: false
|
|
231313
|
+
});
|
|
231314
|
+
_object = _x2js.xml2js(_xml);
|
|
231315
|
+
_json = _object;
|
|
231316
|
+
text = _json.node.text;
|
|
231317
|
+
}
|
|
231318
|
+
_context9.next = 35;
|
|
231310
231319
|
return node.setDateTimeText(text);
|
|
231311
|
-
case
|
|
231320
|
+
case 35:
|
|
231312
231321
|
if (!(node instanceof DownListNode/* DownListNode */.yF)) {
|
|
231313
|
-
_context9.next =
|
|
231322
|
+
_context9.next = 39;
|
|
231314
231323
|
break;
|
|
231315
231324
|
}
|
|
231316
|
-
|
|
231325
|
+
if (text.includes("<DownListNode>")) {
|
|
231326
|
+
_xml2 = hoEditorFactory.structureConvert.replaceNodesName(text);
|
|
231327
|
+
_x2js2 = new (x2js_default())({
|
|
231328
|
+
stripWhitespaces: false
|
|
231329
|
+
});
|
|
231330
|
+
_object2 = _x2js2.xml2js(_xml2);
|
|
231331
|
+
_json2 = _object2;
|
|
231332
|
+
text = _json2.node.text;
|
|
231333
|
+
}
|
|
231334
|
+
_context9.next = 39;
|
|
231317
231335
|
return node.setDownListText(text);
|
|
231318
|
-
case 37:
|
|
231319
|
-
_context9.next = 40;
|
|
231320
|
-
break;
|
|
231321
231336
|
case 39:
|
|
231322
|
-
|
|
231323
|
-
case 40:
|
|
231324
|
-
_context9.next = 43;
|
|
231337
|
+
_context9.next = 42;
|
|
231325
231338
|
break;
|
|
231339
|
+
case 41:
|
|
231340
|
+
console.warn("\u975E\u6587\u672C\u57DF\u548C\u65E5\u671F\u5143\u7D20");
|
|
231326
231341
|
case 42:
|
|
231342
|
+
_context9.next = 45;
|
|
231343
|
+
break;
|
|
231344
|
+
case 44:
|
|
231327
231345
|
console.warn('未找到对应的元素');
|
|
231328
|
-
case
|
|
231346
|
+
case 45:
|
|
231329
231347
|
case "end":
|
|
231330
231348
|
return _context9.stop();
|
|
231331
231349
|
}
|
|
@@ -233007,13 +233025,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233007
233025
|
};
|
|
233008
233026
|
}
|
|
233009
233027
|
if (node instanceof TextNode/* TextNode */.R) {
|
|
233010
|
-
var
|
|
233028
|
+
var _json3 = {
|
|
233011
233029
|
nodeType: BaseNode/* NodeType */.Jq[2],
|
|
233012
233030
|
text: node.text,
|
|
233013
233031
|
styleIndex: node.styleIndex
|
|
233014
233032
|
};
|
|
233015
233033
|
return {
|
|
233016
|
-
TextNode:
|
|
233034
|
+
TextNode: _json3
|
|
233017
233035
|
};
|
|
233018
233036
|
}
|
|
233019
233037
|
if (node instanceof TableNode/* TableNode */.Fh) {
|
|
@@ -233188,11 +233206,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233188
233206
|
for (var n = 0; n <= cols; n++) {
|
|
233189
233207
|
var col = row[n];
|
|
233190
233208
|
if (col) {
|
|
233191
|
-
var
|
|
233192
|
-
undefineArr.base = JSON.parse(JSON.stringify(
|
|
233193
|
-
|
|
233194
|
-
|
|
233195
|
-
rowArray.childNodes.CellNode.push(
|
|
233209
|
+
var _json4 = node2Json(col, _defaultCellPropJson);
|
|
233210
|
+
undefineArr.base = JSON.parse(JSON.stringify(_json4));
|
|
233211
|
+
_json4.rowNo = m;
|
|
233212
|
+
_json4.colNo = n;
|
|
233213
|
+
rowArray.childNodes.CellNode.push(_json4);
|
|
233196
233214
|
rowArray.rowNo = m;
|
|
233197
233215
|
} else {
|
|
233198
233216
|
rowArray.childNodes.CellNode.push({});
|