hoeditor-web 3.1.4 → 3.1.5
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 +217 -191
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -42259,17 +42259,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42259
42259
|
flag = true;
|
|
42260
42260
|
for (var j = indexsMap.size; j > i; j--) {
|
|
42261
42261
|
//选出该趟排序的最大值往后移动
|
|
42262
|
-
var
|
|
42263
|
-
var
|
|
42264
|
-
var
|
|
42265
|
-
var
|
|
42266
|
-
var
|
|
42267
|
-
var
|
|
42268
|
-
var
|
|
42269
|
-
var
|
|
42270
|
-
if (
|
|
42271
|
-
temp =
|
|
42272
|
-
indexsMap.set(j,
|
|
42262
|
+
var val = indexsMap.get(j);
|
|
42263
|
+
var paraIndex = val.split("|")[0];
|
|
42264
|
+
var textCount = parseInt(val.split("|")[1]);
|
|
42265
|
+
var strIndex = parseInt(val.split("|")[2]);
|
|
42266
|
+
var val1 = indexsMap.get(j - 1);
|
|
42267
|
+
var paraIndex1 = val1.split("|")[0];
|
|
42268
|
+
var textCount1 = parseInt(val1.split("|")[1]);
|
|
42269
|
+
var strIndex1 = parseInt(val1.split("|")[2]);
|
|
42270
|
+
if (paraIndex === paraIndex1 && (textCount1 < textCount || textCount1 === textCount && strIndex1 < strIndex)) {
|
|
42271
|
+
temp = val;
|
|
42272
|
+
indexsMap.set(j, val1);
|
|
42273
42273
|
indexsMap.set(j - 1, temp);
|
|
42274
42274
|
flag = false; //只要有发生了交换,flag就置为true
|
|
42275
42275
|
continue;
|
|
@@ -42289,7 +42289,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42289
42289
|
var newTextNode1 = getArr1[2];
|
|
42290
42290
|
hoEditorFactory.undoService.begin();
|
|
42291
42291
|
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, startPath, endPath1));
|
|
42292
|
-
|
|
42292
|
+
if (replaceContent !== "") {
|
|
42293
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, newTextNode1));
|
|
42294
|
+
}
|
|
42293
42295
|
hoEditorFactory.undoService.commit();
|
|
42294
42296
|
}
|
|
42295
42297
|
} catch (err) {
|
|
@@ -42311,10 +42313,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42311
42313
|
var newTextNode2 = getArr2[1];
|
|
42312
42314
|
hoEditorFactory.undoService.begin();
|
|
42313
42315
|
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, path, endPath2));
|
|
42314
|
-
|
|
42316
|
+
if (replaceContent !== "") {
|
|
42317
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, newTextNode2));
|
|
42318
|
+
}
|
|
42315
42319
|
hoEditorFactory.undoService.commit();
|
|
42316
42320
|
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
42317
|
-
var endPath =
|
|
42321
|
+
var endPath = path;
|
|
42322
|
+
if (replaceContent !== "") {
|
|
42323
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(newTextNode2);
|
|
42324
|
+
}
|
|
42318
42325
|
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(this._hoEditorFactoryID, path, endPath);
|
|
42319
42326
|
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_36__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
42320
42327
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
@@ -42587,7 +42594,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42587
42594
|
*/
|
|
42588
42595
|
}, {
|
|
42589
42596
|
key: "deleteComment",
|
|
42590
|
-
value: function deleteComment(type) {
|
|
42597
|
+
value: function deleteComment(type, commentID) {
|
|
42591
42598
|
var _this6 = this;
|
|
42592
42599
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42593
42600
|
var delStyleComment = function delStyleComment(commentID) {
|
|
@@ -42618,15 +42625,22 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42618
42625
|
}
|
|
42619
42626
|
});
|
|
42620
42627
|
} else {
|
|
42621
|
-
if (
|
|
42622
|
-
|
|
42628
|
+
if (commentID) {
|
|
42629
|
+
var comment = hoEditorFactory.drawTree.commentsMap.get(commentID);
|
|
42630
|
+
if (comment) {
|
|
42631
|
+
del(comment);
|
|
42632
|
+
}
|
|
42623
42633
|
} else {
|
|
42624
|
-
|
|
42625
|
-
if (comment.userID != hoEditorFactory.userInfo.id) {
|
|
42626
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn("不允许删除其他用户创建的批注!");
|
|
42634
|
+
if (hoEditorFactory.drawTree.curOnSelectedComment === null) {
|
|
42627
42635
|
return;
|
|
42636
|
+
} else {
|
|
42637
|
+
var _comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
42638
|
+
if (_comment.userID != hoEditorFactory.userInfo.id) {
|
|
42639
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn("不允许删除其他用户创建的批注!");
|
|
42640
|
+
return;
|
|
42641
|
+
}
|
|
42642
|
+
del(_comment);
|
|
42628
42643
|
}
|
|
42629
|
-
del(comment);
|
|
42630
42644
|
}
|
|
42631
42645
|
}
|
|
42632
42646
|
hoEditorFactory.drawTree.curOnSelectedComment = null;
|
|
@@ -42786,11 +42800,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42786
42800
|
if (curComment.id === commentID) {
|
|
42787
42801
|
markNode = curComment.eNode;
|
|
42788
42802
|
} else {
|
|
42789
|
-
var
|
|
42790
|
-
if (
|
|
42791
|
-
markNode =
|
|
42792
|
-
|
|
42793
|
-
source && (
|
|
42803
|
+
var _comment2 = hoEditorFactory.drawTree.commentsMap.get(commentID);
|
|
42804
|
+
if (_comment2) {
|
|
42805
|
+
markNode = _comment2.eNode;
|
|
42806
|
+
_comment2.text = text;
|
|
42807
|
+
source && (_comment2.customProperty = source);
|
|
42794
42808
|
} else {
|
|
42795
42809
|
return;
|
|
42796
42810
|
}
|
|
@@ -45354,14 +45368,15 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
45354
45368
|
} else {
|
|
45355
45369
|
var npEnd = this.findNodePositionByPath(ePath);
|
|
45356
45370
|
if (npEnd && npEnd.node) {
|
|
45357
|
-
if (npEnd.node instanceof
|
|
45358
|
-
|
|
45359
|
-
|
|
45360
|
-
|
|
45361
|
-
}
|
|
45371
|
+
//if (npEnd.node instanceof TextNode) {
|
|
45372
|
+
var _preNode = npEnd.node.previousLeaf();
|
|
45373
|
+
if (_preNode) {
|
|
45374
|
+
endPath = this.getNodeLastPath(_preNode);
|
|
45362
45375
|
}
|
|
45376
|
+
//}
|
|
45363
45377
|
}
|
|
45364
45378
|
}
|
|
45379
|
+
|
|
45365
45380
|
var parentNode = this.getParentNode(sPath);
|
|
45366
45381
|
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R(this._hoEditorFactoryID, np.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_26__/* .NodeType */ .Jq.ntText, replaceContent, styleIndex);
|
|
45367
45382
|
retArray[0] = startPath;
|
|
@@ -65660,7 +65675,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65660
65675
|
/* harmony export */ });
|
|
65661
65676
|
/* unused harmony exports SpecialFormat, DataFormat, BandDataSource */
|
|
65662
65677
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
65663
|
-
/* harmony import */ var
|
|
65678
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(40735);
|
|
65664
65679
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61748);
|
|
65665
65680
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80543);
|
|
65666
65681
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81448);
|
|
@@ -65709,40 +65724,37 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65709
65724
|
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_29__);
|
|
65710
65725
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(21703);
|
|
65711
65726
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_30__);
|
|
65712
|
-
/* harmony import */ var
|
|
65713
|
-
/* harmony import */ var
|
|
65714
|
-
/* harmony import */ var
|
|
65715
|
-
/* harmony import */ var
|
|
65716
|
-
/* harmony import */ var
|
|
65717
|
-
/* harmony import */ var
|
|
65718
|
-
/* harmony import */ var
|
|
65719
|
-
/* harmony import */ var
|
|
65720
|
-
/* harmony import */ var
|
|
65721
|
-
/* harmony import */ var
|
|
65722
|
-
/* harmony import */ var
|
|
65723
|
-
/* harmony import */ var
|
|
65724
|
-
/* harmony import */ var
|
|
65725
|
-
/* harmony import */ var
|
|
65726
|
-
/* harmony import */ var
|
|
65727
|
-
/* harmony import */ var
|
|
65728
|
-
/* harmony import */ var
|
|
65729
|
-
/* harmony import */ var
|
|
65730
|
-
/* harmony import */ var
|
|
65731
|
-
/* harmony import */ var
|
|
65732
|
-
/* harmony import */ var
|
|
65733
|
-
/* harmony import */ var
|
|
65734
|
-
/* harmony import */ var
|
|
65735
|
-
/* harmony import */ var
|
|
65736
|
-
/* harmony import */ var
|
|
65737
|
-
/* harmony import */ var
|
|
65738
|
-
/* harmony import */ var
|
|
65739
|
-
/* harmony import */ var
|
|
65740
|
-
/* harmony import */ var
|
|
65741
|
-
/* harmony import */ var
|
|
65742
|
-
/* harmony import */ var
|
|
65743
|
-
/* harmony import */ var _QrcodeNode__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(12659);
|
|
65744
|
-
/* harmony import */ var _RareCharNode__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(34910);
|
|
65745
|
-
|
|
65727
|
+
/* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(96635);
|
|
65728
|
+
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(51760);
|
|
65729
|
+
/* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(53901);
|
|
65730
|
+
/* harmony import */ var _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(48541);
|
|
65731
|
+
/* harmony import */ var _editor_events_Exception__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(8277);
|
|
65732
|
+
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(2613);
|
|
65733
|
+
/* harmony import */ var _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(64465);
|
|
65734
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(74089);
|
|
65735
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(32629);
|
|
65736
|
+
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(29899);
|
|
65737
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(94639);
|
|
65738
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(42921);
|
|
65739
|
+
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(4938);
|
|
65740
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(62358);
|
|
65741
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(91105);
|
|
65742
|
+
/* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(92501);
|
|
65743
|
+
/* harmony import */ var _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(47088);
|
|
65744
|
+
/* harmony import */ var _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(59621);
|
|
65745
|
+
/* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(57727);
|
|
65746
|
+
/* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(80177);
|
|
65747
|
+
/* harmony import */ var _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(45836);
|
|
65748
|
+
/* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(67945);
|
|
65749
|
+
/* harmony import */ var _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(13307);
|
|
65750
|
+
/* harmony import */ var _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(11429);
|
|
65751
|
+
/* harmony import */ var _PupilMapNode__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(19995);
|
|
65752
|
+
/* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(24701);
|
|
65753
|
+
/* harmony import */ var _TableFormula__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(90832);
|
|
65754
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(5010);
|
|
65755
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(27198);
|
|
65756
|
+
/* harmony import */ var _QrcodeNode__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(12659);
|
|
65757
|
+
/* harmony import */ var _RareCharNode__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(34910);
|
|
65746
65758
|
|
|
65747
65759
|
|
|
65748
65760
|
|
|
@@ -65778,7 +65790,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65778
65790
|
/*
|
|
65779
65791
|
* @Author: your name
|
|
65780
65792
|
* @Date: 2020-11-03 15:17:54
|
|
65781
|
-
* @LastEditTime: 2023-08-
|
|
65793
|
+
* @LastEditTime: 2023-08-25 11:39:25
|
|
65782
65794
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65783
65795
|
* @Description: In User Settings Edit
|
|
65784
65796
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -66288,7 +66300,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66288
66300
|
}
|
|
66289
66301
|
}
|
|
66290
66302
|
if (!_this._dataId) {
|
|
66291
|
-
_this._dataId =
|
|
66303
|
+
_this._dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID('Field');
|
|
66292
66304
|
}
|
|
66293
66305
|
_this.node2DrawNodeRange(0, _this.text.length - 1);
|
|
66294
66306
|
//FIXME:正式使用时下面事件触发要注释掉,这里会在节点被删除后被卡死
|
|
@@ -66357,8 +66369,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66357
66369
|
}, {
|
|
66358
66370
|
key: "mouseEvent",
|
|
66359
66371
|
value: function mouseEvent(event) {
|
|
66360
|
-
if (event.type ==
|
|
66361
|
-
if (event.type ==
|
|
66372
|
+
if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_34__/* .DmouseEventType */ .p.detOver) this.activity(true);
|
|
66373
|
+
if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_34__/* .DmouseEventType */ .p.detOut) this.activity(false);
|
|
66362
66374
|
}
|
|
66363
66375
|
// public activity(active: boolean) {
|
|
66364
66376
|
// if (active) {
|
|
@@ -66715,7 +66727,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66715
66727
|
} else {
|
|
66716
66728
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
66717
66729
|
var child = this.childNodes[i];
|
|
66718
|
-
if (child instanceof
|
|
66730
|
+
if (child instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j && child.MarkNodeType == 1) {
|
|
66719
66731
|
return child;
|
|
66720
66732
|
}
|
|
66721
66733
|
}
|
|
@@ -66730,7 +66742,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66730
66742
|
key: "update",
|
|
66731
66743
|
value: function update(mode) {
|
|
66732
66744
|
var _this2 = this;
|
|
66733
|
-
var hoEditorFactory =
|
|
66745
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
66734
66746
|
/**
|
|
66735
66747
|
* 内容为空,显示一个点位符
|
|
66736
66748
|
*/
|
|
@@ -66752,9 +66764,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66752
66764
|
case 0:
|
|
66753
66765
|
//由于在表格在放置输入域后会在绘制时触发输入域重绘,此时表格还未放置于舞台,造成报错,故暂时禁用此函数
|
|
66754
66766
|
//熊跃龙 2021-03-19
|
|
66755
|
-
changeEvent = new
|
|
66767
|
+
changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_36__/* .NodeChangeEvent */ .G(_this2.hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_39__/* .DocAction */ .gk.daModifyStyle, path1 || startPath, path2 || endPath);
|
|
66756
66768
|
changeEvent.oldEndPath = path2 || endPath;
|
|
66757
|
-
changeEvent.oldDrawLines = new
|
|
66769
|
+
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_33__/* .SelectRange */ .E(_this2.hoEditorFactoryID).getRangeDrawLines(path1 || startPath, path2 || endPath, true);
|
|
66758
66770
|
_context.next = 5;
|
|
66759
66771
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
66760
66772
|
case 5:
|
|
@@ -66773,11 +66785,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66773
66785
|
}();
|
|
66774
66786
|
if (mode == 0) {
|
|
66775
66787
|
var prev = first.previousLeaf();
|
|
66776
|
-
if (!prev) throw
|
|
66788
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_35__/* .Exception */ .P.NodeNotFound();
|
|
66777
66789
|
refresh(hoEditorFactory.docTree.getNodeLastPath(prev), hoEditorFactory.docTree.getNodeLastPath(last));
|
|
66778
66790
|
setTimeout(function () {
|
|
66779
66791
|
prev = first.previousLeaf();
|
|
66780
|
-
if (!prev) throw
|
|
66792
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_35__/* .Exception */ .P.NodeNotFound();
|
|
66781
66793
|
refresh(hoEditorFactory.docTree.getNodeLastPath(prev), hoEditorFactory.docTree.getNodeLastPath(last));
|
|
66782
66794
|
}, 200);
|
|
66783
66795
|
return;
|
|
@@ -66823,7 +66835,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66823
66835
|
// } else
|
|
66824
66836
|
if (this.StartMarkNode.drawNodes.length > 0 && this.EndMarkNode.drawNodes.length > 0) {
|
|
66825
66837
|
//不空,还原
|
|
66826
|
-
var bInSameLine =
|
|
66838
|
+
var bInSameLine = _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_31__/* .DrawLine */ .a.inSameLine(this.StartMarkNode.drawNodes[0], this.EndMarkNode.drawNodes[0]);
|
|
66827
66839
|
if (fixWidthPix == 0 || !bInSameLine || usedWidth >= maxEmptWidth) {
|
|
66828
66840
|
firthWidth = 0;
|
|
66829
66841
|
lastWidth = 0;
|
|
@@ -66843,7 +66855,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66843
66855
|
last.width = lastWidth;
|
|
66844
66856
|
var _prev = last.previousLeaf();
|
|
66845
66857
|
if (!_prev) {
|
|
66846
|
-
throw
|
|
66858
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_35__/* .Exception */ .P.NodeNotFound();
|
|
66847
66859
|
}
|
|
66848
66860
|
startPath = hoEditorFactory.docTree.getNodeLastPath(_prev);
|
|
66849
66861
|
endPath = last.getNodePath();
|
|
@@ -66855,7 +66867,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66855
66867
|
last.width = lastWidth;
|
|
66856
66868
|
var _prev2 = first.previousLeaf();
|
|
66857
66869
|
if (!_prev2) {
|
|
66858
|
-
throw
|
|
66870
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_35__/* .Exception */ .P.NodeNotFound();
|
|
66859
66871
|
}
|
|
66860
66872
|
startPath = hoEditorFactory.docTree.getNodeLastPath(_prev2);
|
|
66861
66873
|
endPath = last.getNodePath();
|
|
@@ -66880,8 +66892,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66880
66892
|
var loopChildNodes = function loopChildNodes(node) {
|
|
66881
66893
|
var nodes = node.childNodes.slice(1);
|
|
66882
66894
|
nodes.forEach(function (childNode) {
|
|
66883
|
-
if (childNode instanceof
|
|
66884
|
-
var hoEditorFactory =
|
|
66895
|
+
if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_59__/* .TextNode */ .R) {
|
|
66896
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(_this3.hoEditorFactoryID);
|
|
66885
66897
|
var textStyle = hoEditorFactory.docTree.styles[childNode.styleIndex];
|
|
66886
66898
|
if (!textStyle) {
|
|
66887
66899
|
textStyle = hoEditorFactory.docTree.styles[0];
|
|
@@ -66896,36 +66908,36 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66896
66908
|
text += childNode.text;
|
|
66897
66909
|
}
|
|
66898
66910
|
}
|
|
66899
|
-
} else if (childNode instanceof
|
|
66900
|
-
if (childNode instanceof
|
|
66911
|
+
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_45__/* .ControlNode */ .w) {
|
|
66912
|
+
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_46__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
66901
66913
|
text += '';
|
|
66902
66914
|
} else {
|
|
66903
66915
|
text += childNode.text;
|
|
66904
66916
|
}
|
|
66905
|
-
} else if (childNode instanceof
|
|
66917
|
+
} else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_43__/* .BaseCombineNode */ .V) {
|
|
66906
66918
|
loopChildNodes(childNode);
|
|
66907
|
-
} else if (childNode instanceof
|
|
66919
|
+
} else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_52__/* .ParagraphNode */ .C) {
|
|
66908
66920
|
text += '\n';
|
|
66909
|
-
} else if (childNode instanceof
|
|
66921
|
+
} else if (childNode instanceof _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_50__/* .MedicalExpressionNode */ .H) {
|
|
66910
66922
|
var expressJson = JSON.parse('{}');
|
|
66911
66923
|
text += '<MedicalExpress>';
|
|
66912
|
-
if (childNode instanceof
|
|
66924
|
+
if (childNode instanceof _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_51__/* .MenstrualHistoryNode */ .n) {
|
|
66913
66925
|
expressJson.expressStyle = childNode.expressStyle;
|
|
66914
66926
|
expressJson.menseDays = childNode.menseDays;
|
|
66915
66927
|
expressJson.cycleDays = childNode.cycleDays;
|
|
66916
66928
|
expressJson.menarcheAge = childNode.menarcheAge;
|
|
66917
66929
|
expressJson.menoPauseAge = childNode.menoPauseAge;
|
|
66918
|
-
} else if (childNode instanceof
|
|
66930
|
+
} else if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_55__/* .PupilMapNode */ .v || childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_48__/* .LightLocationMapNode */ .D || childNode instanceof _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_47__/* .FetalHeartMapNode */ .t) {
|
|
66919
66931
|
expressJson.value1 = childNode.value1;
|
|
66920
66932
|
expressJson.value2 = childNode.value2;
|
|
66921
66933
|
expressJson.value3 = childNode.value3;
|
|
66922
66934
|
expressJson.value4 = childNode.value4;
|
|
66923
66935
|
expressJson.value5 = childNode.value5;
|
|
66924
66936
|
expressJson.value6 = childNode.value6;
|
|
66925
|
-
if (childNode instanceof
|
|
66937
|
+
if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_55__/* .PupilMapNode */ .v) {
|
|
66926
66938
|
expressJson.expressStyle = 'PupilMapNode';
|
|
66927
66939
|
expressJson.value7 = childNode.value7;
|
|
66928
|
-
} else if (childNode instanceof
|
|
66940
|
+
} else if (childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_48__/* .LightLocationMapNode */ .D) {
|
|
66929
66941
|
expressJson.expressStyle = 'LightLocationMapNode';
|
|
66930
66942
|
expressJson.value7 = childNode.value7;
|
|
66931
66943
|
expressJson.value8 = childNode.value8;
|
|
@@ -66933,12 +66945,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66933
66945
|
} else {
|
|
66934
66946
|
expressJson.expressStyle = 'FetalHeartMapNode';
|
|
66935
66947
|
}
|
|
66936
|
-
} else if (childNode instanceof
|
|
66937
|
-
if (childNode instanceof
|
|
66948
|
+
} else if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_53__/* .PermanentTeethMapNode */ .f || childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_54__/* .PrimaryTeethMapNode */ .x) {
|
|
66949
|
+
if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_53__/* .PermanentTeethMapNode */ .f) {
|
|
66938
66950
|
expressJson.expressStyle = 'PermanentTeethMapNode';
|
|
66939
66951
|
expressJson.remark = childNode.remark;
|
|
66940
66952
|
}
|
|
66941
|
-
if (childNode instanceof
|
|
66953
|
+
if (childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_54__/* .PrimaryTeethMapNode */ .x) {
|
|
66942
66954
|
expressJson.expressStyle = 'PrimaryTeethMapNode';
|
|
66943
66955
|
}
|
|
66944
66956
|
expressJson.topLeftSelected = childNode.topLeftSelected;
|
|
@@ -66997,7 +67009,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66997
67009
|
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 _callee2$(_context2) {
|
|
66998
67010
|
while (1) switch (_context2.prev = _context2.next) {
|
|
66999
67011
|
case 0:
|
|
67000
|
-
if (!(text === '' && this.childNodes[1] instanceof
|
|
67012
|
+
if (!(text === '' && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j)) {
|
|
67001
67013
|
_context2.next = 2;
|
|
67002
67014
|
break;
|
|
67003
67015
|
}
|
|
@@ -67014,12 +67026,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67014
67026
|
}
|
|
67015
67027
|
oldValue = this._canModifyContent.valueOf();
|
|
67016
67028
|
this._canModifyContent = true;
|
|
67017
|
-
hoEditorFactory =
|
|
67029
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67018
67030
|
startPath = this.StartMarkNode.getNodePath();
|
|
67019
67031
|
endPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 2]);
|
|
67020
|
-
aRange = new
|
|
67021
|
-
if (!(this.childNodes[1] instanceof
|
|
67022
|
-
anodes =
|
|
67032
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_41__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
67033
|
+
if (!(this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j) && this.inputFieldType === 0) {
|
|
67034
|
+
anodes = _DomRange__WEBPACK_IMPORTED_MODULE_41__/* .DomRange */ .a.getSelectDomNodesForDelete(this.hoEditorFactoryID, startPath, endPath);
|
|
67023
67035
|
for (i = 0; i < anodes.length; i++) {
|
|
67024
67036
|
anode = anodes[i];
|
|
67025
67037
|
if (anode instanceof TextInputFieldNode && anode.parentNode === this && anode.isAllowDelete === false) {
|
|
@@ -67035,9 +67047,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67035
67047
|
break;
|
|
67036
67048
|
}
|
|
67037
67049
|
this._childNodes.splice(1, this._childNodes.length - 2);
|
|
67038
|
-
markNode = new
|
|
67050
|
+
markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntText, this.labelText, hoEditorFactory.docTree.curStyleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtContent);
|
|
67039
67051
|
hoEditorFactory.undoService.begin();
|
|
67040
|
-
hoEditorFactory.undoService.add(new
|
|
67052
|
+
hoEditorFactory.undoService.add(new _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, markNode));
|
|
67041
67053
|
hoEditorFactory.undoService.commit();
|
|
67042
67054
|
if (this._childNodes2.length === 3) {
|
|
67043
67055
|
this._childNodes2.splice(1, 1);
|
|
@@ -67094,7 +67106,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67094
67106
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
67095
67107
|
this.childNodes.length = 0;
|
|
67096
67108
|
this._childNodes2.length = 0;
|
|
67097
|
-
var hoEditorFactory =
|
|
67109
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67098
67110
|
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
67099
67111
|
var cbStyle = hoEditorFactory.docTree.styles[curStyleIndex].combineStyle;
|
|
67100
67112
|
var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
@@ -67105,17 +67117,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67105
67117
|
// if (this.enableGlobalColor) {
|
|
67106
67118
|
// index = astyle.changeStyleString("fontBackColor", "transparent");
|
|
67107
67119
|
// }
|
|
67108
|
-
this.StartMarkNode = new
|
|
67120
|
+
this.StartMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntMark, '|', index, _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtStart);
|
|
67109
67121
|
this.StartMarkNode.isReadOnly = true;
|
|
67110
|
-
this.StartMarkNode.MarkNodeType =
|
|
67111
|
-
this.EndMarkNode = new
|
|
67122
|
+
this.StartMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtStart;
|
|
67123
|
+
this.EndMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntMark, ']', index, _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtEnd);
|
|
67112
67124
|
this.EndMarkNode.isReadOnly = true;
|
|
67113
|
-
this.EndMarkNode.MarkNodeType =
|
|
67125
|
+
this.EndMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtEnd;
|
|
67114
67126
|
this.StartMarkNode.pair = this.EndMarkNode;
|
|
67115
67127
|
this.EndMarkNode.pair = this.StartMarkNode;
|
|
67116
67128
|
this._childNodes2.push(this.StartMarkNode);
|
|
67117
67129
|
if (this.labelText.length != 0) {
|
|
67118
|
-
this._childNodes2.push(new
|
|
67130
|
+
this._childNodes2.push(new _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntText, this.labelText, index, _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtContent));
|
|
67119
67131
|
// this._labelNode = new MarkNode(this._rootNodes, this, NodeType.ntText, this.labelText, 0);
|
|
67120
67132
|
// this._childNodes2.push(this._labelNode);
|
|
67121
67133
|
}
|
|
@@ -67126,7 +67138,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67126
67138
|
if (this._childNodes2.length == 3) {
|
|
67127
67139
|
this.childNodes.splice(1, 1);
|
|
67128
67140
|
}
|
|
67129
|
-
this._childNodes.splice(1, 0, new
|
|
67141
|
+
this._childNodes.splice(1, 0, new _TextNode__WEBPACK_IMPORTED_MODULE_59__/* .TextNode */ .R(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntText, this.text, index));
|
|
67130
67142
|
}
|
|
67131
67143
|
}
|
|
67132
67144
|
}, {
|
|
@@ -67159,14 +67171,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67159
67171
|
if (startIndex >= this.getLength()) {
|
|
67160
67172
|
return dline;
|
|
67161
67173
|
}
|
|
67162
|
-
var hoEditorFactory =
|
|
67174
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67163
67175
|
var endnode = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
|
|
67164
67176
|
var isEnd = false;
|
|
67165
67177
|
for (var index = 0; index < this.childNodes.length; index++) {
|
|
67166
67178
|
var value = this.childNodes[index];
|
|
67167
|
-
if (value instanceof
|
|
67179
|
+
if (value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_52__/* .ParagraphNode */ .C) {
|
|
67168
67180
|
if (aline.paragraphNode !== value) {
|
|
67169
|
-
if (aline instanceof
|
|
67181
|
+
if (aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_31__/* .DrawLine */ .a) {
|
|
67170
67182
|
aline.fitLines();
|
|
67171
67183
|
aline.updateLineStyle();
|
|
67172
67184
|
}
|
|
@@ -67179,7 +67191,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67179
67191
|
}
|
|
67180
67192
|
paraNode = value;
|
|
67181
67193
|
aline = paraNode.drawlines[0];
|
|
67182
|
-
} else if (value instanceof
|
|
67194
|
+
} else if (value instanceof _TableNode__WEBPACK_IMPORTED_MODULE_58__/* .TableNode */ .Fh) {
|
|
67183
67195
|
value.placeDNodeAfterDrawLine(paraNode, aline, endPath);
|
|
67184
67196
|
aline = value.drawTable;
|
|
67185
67197
|
} else {
|
|
@@ -67190,14 +67202,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67190
67202
|
aline = value.placeDNode2DrawLine(droots, paraNode, aline, start, start + value.getLength() - 1, endPath);
|
|
67191
67203
|
}
|
|
67192
67204
|
var nodePath = hoEditorFactory.docTree.getNodeLastPath(value);
|
|
67193
|
-
var cresult =
|
|
67205
|
+
var cresult = _NodePosition__WEBPACK_IMPORTED_MODULE_42__/* .NodePosition */ .F.treePathCompare(endPath, nodePath);
|
|
67194
67206
|
if (cresult <= 0) {
|
|
67195
67207
|
break;
|
|
67196
67208
|
}
|
|
67197
67209
|
}
|
|
67198
67210
|
aline.fitLines();
|
|
67199
67211
|
aline.updateLineStyle();
|
|
67200
|
-
if (dline === aline && aline instanceof
|
|
67212
|
+
if (dline === aline && aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_31__/* .DrawLine */ .a) {
|
|
67201
67213
|
this._text = this.getFieldText();
|
|
67202
67214
|
var fixWidthPix = hoEditorFactory.unitConvert.mmConversionPx(this.fixedWidth * 10, true);
|
|
67203
67215
|
var restWidth = aline.dWidth - aline.paragraphNode.combineParagraph.leftMarginPixes - aline.paragraphNode.combineParagraph.rightMarginPixes - this.StartMarkNode.drawNodes[0].x;
|
|
@@ -67242,7 +67254,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67242
67254
|
//this.EndMarkNode.node2DrawNode();
|
|
67243
67255
|
aline = this.EndMarkNode.placeDNode2DrawLine(droots, paraNode, aline, start, start + this.EndMarkNode.getLength() - 1, endPath);
|
|
67244
67256
|
}
|
|
67245
|
-
if (this.hideDuringPrint && !this.isEmpty() && (hoEditorFactory.drawTree.paintStatus ==
|
|
67257
|
+
if (this.hideDuringPrint && !this.isEmpty() && (hoEditorFactory.drawTree.paintStatus == _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_32__/* .PaintState */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus == _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_32__/* .PaintState */ .Dh.psPrint)) {
|
|
67246
67258
|
var hidden = function hidden(childNodes) {
|
|
67247
67259
|
for (var h = 1; h < childNodes.length - 1; h++) {
|
|
67248
67260
|
var child = childNodes[h];
|
|
@@ -67275,15 +67287,15 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67275
67287
|
}, {
|
|
67276
67288
|
key: "getReadyToEdit",
|
|
67277
67289
|
value: function getReadyToEdit(callback) {
|
|
67278
|
-
var hoEditorFactory =
|
|
67279
|
-
if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !==
|
|
67290
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
67291
|
+
if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_32__/* .PaintState */ .Dh.psDesign) {
|
|
67280
67292
|
return [false, ''];
|
|
67281
67293
|
}
|
|
67282
67294
|
var label = this.getLabel();
|
|
67283
67295
|
if (label) {
|
|
67284
67296
|
var prev = label.previousLeaf();
|
|
67285
|
-
if (!prev) throw
|
|
67286
|
-
var path =
|
|
67297
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_35__/* .Exception */ .P.NodeNotFound();
|
|
67298
|
+
var path = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(prev);
|
|
67287
67299
|
if (callback) callback(label);
|
|
67288
67300
|
return [true, path];
|
|
67289
67301
|
}
|
|
@@ -67306,19 +67318,19 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67306
67318
|
value: function getActualWidth() {
|
|
67307
67319
|
var w = 0;
|
|
67308
67320
|
this.childNodes.forEach(function (value) {
|
|
67309
|
-
if (!(value instanceof
|
|
67321
|
+
if (!(value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_52__/* .ParagraphNode */ .C)) w += value.getActualWidth();
|
|
67310
67322
|
});
|
|
67311
67323
|
return w;
|
|
67312
67324
|
}
|
|
67313
67325
|
}, {
|
|
67314
67326
|
key: "delete",
|
|
67315
67327
|
value: function _delete(operType) {
|
|
67316
|
-
var hoEditorFactory =
|
|
67317
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
67328
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
67329
|
+
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_32__/* .PaintState */ .Dh.psDesign || this.isAllowDelete) {
|
|
67318
67330
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
|
|
67319
67331
|
} else {
|
|
67320
67332
|
if (operType !== 'update') {
|
|
67321
|
-
|
|
67333
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_62__/* ["default"] */ .Z.warn('文本域已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。');
|
|
67322
67334
|
} else {
|
|
67323
67335
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
|
|
67324
67336
|
}
|
|
@@ -67343,7 +67355,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67343
67355
|
return false;
|
|
67344
67356
|
} else {
|
|
67345
67357
|
for (var i = 0; i++; i < this.childNodes.length) {
|
|
67346
|
-
if (this.childNodes[i] instanceof
|
|
67358
|
+
if (this.childNodes[i] instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_43__/* .BaseCombineNode */ .V) {
|
|
67347
67359
|
if (this.childNodes[i].removeChild(node)) return true;
|
|
67348
67360
|
}
|
|
67349
67361
|
}
|
|
@@ -67361,9 +67373,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67361
67373
|
if (this.childNodes.length == 2) {
|
|
67362
67374
|
return true;
|
|
67363
67375
|
}
|
|
67364
|
-
if (this.childNodes.length == 3 && this.childNodes[1] instanceof
|
|
67376
|
+
if (this.childNodes.length == 3 && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j) {
|
|
67365
67377
|
var markNode = this.childNodes[1];
|
|
67366
|
-
if (markNode.MarkNodeType ===
|
|
67378
|
+
if (markNode.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtContent) {
|
|
67367
67379
|
return true;
|
|
67368
67380
|
} else return false;
|
|
67369
67381
|
}
|
|
@@ -67394,7 +67406,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67394
67406
|
var ilen = arr.length;
|
|
67395
67407
|
for (var i = 1; i < ilen; i++) {
|
|
67396
67408
|
textInputFieldNode.insertText(arr[i].text, textInputFieldNode.text.length);
|
|
67397
|
-
|
|
67409
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.deleteNode(arr[i]);
|
|
67398
67410
|
}
|
|
67399
67411
|
return textInputFieldNode;
|
|
67400
67412
|
}
|
|
@@ -67412,10 +67424,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67412
67424
|
if (!range) {
|
|
67413
67425
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
67414
67426
|
var node = this.childNodes[i];
|
|
67415
|
-
if (!(node instanceof
|
|
67416
|
-
if (node instanceof
|
|
67427
|
+
if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j && node.text.substr(0, 1) !== 'C')) {
|
|
67428
|
+
if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_58__/* .TableNode */ .Fh || node instanceof TextInputFieldNode) {
|
|
67417
67429
|
childArray.push(node.node2Json(undefined, isCopy, type, clearSign));
|
|
67418
|
-
} else if (node instanceof
|
|
67430
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_56__/* .SignNode */ .N) {
|
|
67419
67431
|
if (clearSign) {
|
|
67420
67432
|
if (node.isTemplate) {
|
|
67421
67433
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
@@ -67424,11 +67436,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67424
67436
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
67425
67437
|
}
|
|
67426
67438
|
} else {
|
|
67427
|
-
if (node instanceof
|
|
67439
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_59__/* .TextNode */ .R) {
|
|
67428
67440
|
if (node.text !== '') {
|
|
67429
67441
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
67430
67442
|
}
|
|
67431
|
-
} else if (node instanceof
|
|
67443
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_46__/* .DateTimeNode */ .Z || node instanceof _QrcodeNode__WEBPACK_IMPORTED_MODULE_60__/* .QrcodeNode */ .d) {
|
|
67432
67444
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
67433
67445
|
} else {
|
|
67434
67446
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
@@ -67481,7 +67493,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67481
67493
|
canCopy = _node.checkPath(rec.from);
|
|
67482
67494
|
}
|
|
67483
67495
|
if (canCopy) {
|
|
67484
|
-
if (!(_node instanceof
|
|
67496
|
+
if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j && _node.text.substr(0, 1) === 'C')) {
|
|
67485
67497
|
childArray.push(_node.node2Json(rec, isCopy));
|
|
67486
67498
|
}
|
|
67487
67499
|
}
|
|
@@ -67611,7 +67623,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67611
67623
|
}, {
|
|
67612
67624
|
key: "getLeftWidth",
|
|
67613
67625
|
value: function getLeftWidth() {
|
|
67614
|
-
var hoEditorFactory =
|
|
67626
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67615
67627
|
if (this.alignWithBlocked && this.StartMarkNode && this.StartMarkNode.drawNodes.length > 0) {
|
|
67616
67628
|
var dNode = this.StartMarkNode.drawNodes[0];
|
|
67617
67629
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
@@ -67667,7 +67679,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67667
67679
|
}], [{
|
|
67668
67680
|
key: "json2Node",
|
|
67669
67681
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
67670
|
-
var hoEditorFactory =
|
|
67682
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
67671
67683
|
var eachCount = 0;
|
|
67672
67684
|
var isErrorValid = false;
|
|
67673
67685
|
delete json.nodeType;
|
|
@@ -67696,7 +67708,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67696
67708
|
json.includesKeyword = !json.includesKeyword ? false : json.includesKeyword;
|
|
67697
67709
|
json.valueArea = !json.valueArea ? false : json.valueArea;
|
|
67698
67710
|
json.isElementLink = !json.isElementLink ? false : json.isElementLink;
|
|
67699
|
-
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
67711
|
+
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntField, json);
|
|
67700
67712
|
// this.insertChild
|
|
67701
67713
|
if (json.childNodes) {
|
|
67702
67714
|
var nodes = new Array();
|
|
@@ -67716,10 +67728,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67716
67728
|
// console.timeEnd(`----${i}----1-1----${item[i].name}`);
|
|
67717
67729
|
// };
|
|
67718
67730
|
if (node) {
|
|
67719
|
-
if (node instanceof
|
|
67731
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_59__/* .TextNode */ .R) {
|
|
67720
67732
|
if (temp.innerIdentifier == "name" && node.text.length > (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(node.text).length) {
|
|
67721
67733
|
//特殊处理生僻字
|
|
67722
|
-
var rareCharNode = new
|
|
67734
|
+
var rareCharNode = new _RareCharNode__WEBPACK_IMPORTED_MODULE_61__/* .RareCharNode */ .Q(temp.hoEditorFactoryID, node.rootNodes, node.parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntRareChar, node.text, node.styleIndex);
|
|
67723
67735
|
nodes.push(rareCharNode);
|
|
67724
67736
|
} else {
|
|
67725
67737
|
if (node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '') {
|
|
@@ -67732,7 +67744,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67732
67744
|
}
|
|
67733
67745
|
} else {
|
|
67734
67746
|
if (isClearSign) {
|
|
67735
|
-
if (node instanceof
|
|
67747
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_56__/* .SignNode */ .N) {
|
|
67736
67748
|
if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == '')) {
|
|
67737
67749
|
nodes.push(node);
|
|
67738
67750
|
}
|
|
@@ -67740,7 +67752,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67740
67752
|
nodes.push(node);
|
|
67741
67753
|
}
|
|
67742
67754
|
} else {
|
|
67743
|
-
if (node instanceof
|
|
67755
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_56__/* .SignNode */ .N) {
|
|
67744
67756
|
if (!(node.number == 0 && node.type == 0 && node.name == "")) {
|
|
67745
67757
|
nodes.push(node);
|
|
67746
67758
|
}
|
|
@@ -67750,10 +67762,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67750
67762
|
}
|
|
67751
67763
|
}
|
|
67752
67764
|
}
|
|
67753
|
-
if (node instanceof
|
|
67765
|
+
if (node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j && node.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtEnd && node.text.substring(0, 1) === 'C') {
|
|
67754
67766
|
hoEditorFactory.structureConvert._markNodes.push(node);
|
|
67755
67767
|
}
|
|
67756
|
-
if (node instanceof
|
|
67768
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_56__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(node.customProperty.bce01)) {
|
|
67757
67769
|
hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
67758
67770
|
}
|
|
67759
67771
|
}
|
|
@@ -67761,10 +67773,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67761
67773
|
//单个对象
|
|
67762
67774
|
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
67763
67775
|
if (_node2) {
|
|
67764
|
-
if (_node2 instanceof
|
|
67776
|
+
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_59__/* .TextNode */ .R) {
|
|
67765
67777
|
if (temp.innerIdentifier == "name" && _node2.text.length > (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_node2.text).length) {
|
|
67766
67778
|
//特殊处理生僻字
|
|
67767
|
-
var _rareCharNode = new
|
|
67779
|
+
var _rareCharNode = new _RareCharNode__WEBPACK_IMPORTED_MODULE_61__/* .RareCharNode */ .Q(temp.hoEditorFactoryID, _node2.rootNodes, _node2.parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntRareChar, _node2.text, _node2.styleIndex);
|
|
67768
67780
|
nodes.push(_rareCharNode);
|
|
67769
67781
|
} else {
|
|
67770
67782
|
if (_node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '') {
|
|
@@ -67778,7 +67790,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67778
67790
|
} else {
|
|
67779
67791
|
//nodes.push(node);
|
|
67780
67792
|
if (isClearSign) {
|
|
67781
|
-
if (_node2 instanceof
|
|
67793
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_56__/* .SignNode */ .N) {
|
|
67782
67794
|
if (_node2.isTemplate && !(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
|
|
67783
67795
|
nodes.push(_node2);
|
|
67784
67796
|
}
|
|
@@ -67786,7 +67798,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67786
67798
|
nodes.push(_node2);
|
|
67787
67799
|
}
|
|
67788
67800
|
} else {
|
|
67789
|
-
if (_node2 instanceof
|
|
67801
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_56__/* .SignNode */ .N) {
|
|
67790
67802
|
if (!(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
|
|
67791
67803
|
nodes.push(_node2);
|
|
67792
67804
|
}
|
|
@@ -67796,10 +67808,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67796
67808
|
}
|
|
67797
67809
|
}
|
|
67798
67810
|
}
|
|
67799
|
-
if (_node2 instanceof
|
|
67811
|
+
if (_node2 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j && _node2.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtEnd && _node2.text.substring(0, 1) === 'C') {
|
|
67800
67812
|
hoEditorFactory.structureConvert._markNodes.push(_node2);
|
|
67801
67813
|
}
|
|
67802
|
-
if (_node2 instanceof
|
|
67814
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_56__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(_node2.customProperty.bce01)) {
|
|
67803
67815
|
hoEditorFactory.structureConvert._superiorSign[0] = _node2;
|
|
67804
67816
|
}
|
|
67805
67817
|
}
|
|
@@ -67817,11 +67829,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67817
67829
|
}
|
|
67818
67830
|
// if(json.name === '1-1') console.timeEnd("1-1--0");
|
|
67819
67831
|
if (nodes.length > 0) {
|
|
67820
|
-
if (nodes[0] instanceof
|
|
67832
|
+
if (nodes[0] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j) {
|
|
67821
67833
|
var _temp$childNodes;
|
|
67822
67834
|
temp.childNodes.length = 0;
|
|
67823
67835
|
(_temp$childNodes = temp.childNodes).splice.apply(_temp$childNodes, [0, 0].concat(nodes));
|
|
67824
|
-
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof
|
|
67836
|
+
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j) {
|
|
67825
67837
|
temp._childNodes2.splice(1, 1);
|
|
67826
67838
|
temp._childNodes2.splice(1, 0, temp.childNodes[1]);
|
|
67827
67839
|
}
|
|
@@ -67836,33 +67848,33 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67836
67848
|
//if (hoEditorFactory.drawTree.paintStatus === PaintState.psDesign) {
|
|
67837
67849
|
var sChildNode = temp.childNodes[0];
|
|
67838
67850
|
var eChildNode = temp.childNodes[temp.childNodes.length - 1];
|
|
67839
|
-
if (!(sChildNode instanceof
|
|
67851
|
+
if (!(sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j) || sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j && sChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtStart) {
|
|
67840
67852
|
throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
|
|
67841
67853
|
}
|
|
67842
|
-
if (!(eChildNode instanceof
|
|
67854
|
+
if (!(eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j) || eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j && eChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtEnd) {
|
|
67843
67855
|
throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
|
|
67844
67856
|
}
|
|
67845
|
-
if (temp.childNodes.length > 3 && temp.childNodes[1] instanceof
|
|
67857
|
+
if (temp.childNodes.length > 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j && temp.childNodes[1].MarkNodeType == _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtContent) {
|
|
67846
67858
|
temp.childNodes.splice(1, 1);
|
|
67847
67859
|
}
|
|
67848
67860
|
//}
|
|
67849
|
-
if (temp.childNodes[1] instanceof
|
|
67861
|
+
if (temp.childNodes[1] instanceof _TableFormula__WEBPACK_IMPORTED_MODULE_57__/* .TableFormula */ .N) {
|
|
67850
67862
|
return temp;
|
|
67851
67863
|
}
|
|
67852
67864
|
if (!isPaste) {
|
|
67853
67865
|
var childFields = [];
|
|
67854
67866
|
for (var c = 0; c < temp.childNodes.length; c++) {
|
|
67855
67867
|
var childNode = temp.childNodes[c];
|
|
67856
|
-
if (childNode instanceof TextInputFieldNode || childNode instanceof
|
|
67868
|
+
if (childNode instanceof TextInputFieldNode || childNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_56__/* .SignNode */ .N) {
|
|
67857
67869
|
childFields.push(childNode);
|
|
67858
67870
|
}
|
|
67859
67871
|
}
|
|
67860
67872
|
if (childFields.length === 0 && !isErrorValid) {
|
|
67861
67873
|
//不嵌套 用text
|
|
67862
67874
|
var fieldText = temp.getFieldText();
|
|
67863
|
-
if (temp.text === fieldText && temp.text.indexOf("\n") > 0) {
|
|
67864
|
-
|
|
67865
|
-
}
|
|
67875
|
+
// if (temp.text === fieldText && temp.text.indexOf("\n") > 0) {
|
|
67876
|
+
// temp.text = temp.text.replaceAll("\n", "");
|
|
67877
|
+
// }
|
|
67866
67878
|
if (temp.text !== fieldText && (temp.inputFieldType == 0 || temp.inputFieldType == 1 && temp.readType == 1)) {
|
|
67867
67879
|
temp.childNodes.splice(1, temp.childNodes.length - 2);
|
|
67868
67880
|
var styleIndex = temp.childNodes[0].styleIndex;
|
|
@@ -67876,10 +67888,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67876
67888
|
}
|
|
67877
67889
|
for (var i = 0; i < lineArr.length; i++) {
|
|
67878
67890
|
var lineText = lineArr[i];
|
|
67879
|
-
var textNode = new
|
|
67891
|
+
var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_59__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntText, lineText, styleIndex);
|
|
67880
67892
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
|
|
67881
67893
|
if (i < lineArr.length - 1) {
|
|
67882
|
-
var paraNode = new
|
|
67894
|
+
var paraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_52__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
67883
67895
|
paraNode.styleIndex = styleIndex;
|
|
67884
67896
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paraNode);
|
|
67885
67897
|
}
|
|
@@ -67965,35 +67977,35 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67965
67977
|
if (resultArr[k].text != '') {
|
|
67966
67978
|
var newStyleIndex = styleIndex;
|
|
67967
67979
|
if (resultArr[k].mark == 1) {
|
|
67968
|
-
var textStyle = new
|
|
67980
|
+
var textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
67969
67981
|
textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], textStyle);
|
|
67970
67982
|
textStyle.script = 2;
|
|
67971
67983
|
newStyleIndex = hoEditorFactory.docTree.styleCompare(textStyle);
|
|
67972
67984
|
}
|
|
67973
67985
|
if (resultArr[k].mark == 2) {
|
|
67974
|
-
var _textStyle = new
|
|
67986
|
+
var _textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
67975
67987
|
_textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle);
|
|
67976
67988
|
_textStyle.script = 1;
|
|
67977
67989
|
newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle);
|
|
67978
67990
|
}
|
|
67979
|
-
var textNode0 = new
|
|
67991
|
+
var textNode0 = new _TextNode__WEBPACK_IMPORTED_MODULE_59__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntText, resultArr[k].text, newStyleIndex);
|
|
67980
67992
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode0);
|
|
67981
67993
|
}
|
|
67982
67994
|
}
|
|
67983
67995
|
} else {
|
|
67984
67996
|
if (textArr[0] != "") {
|
|
67985
67997
|
if (temp.innerIdentifier == "name" && temp.text.length > (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(temp.text).length) {
|
|
67986
|
-
var rareCharNode = new
|
|
67998
|
+
var rareCharNode = new _RareCharNode__WEBPACK_IMPORTED_MODULE_61__/* .RareCharNode */ .Q(temp.hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntRareChar, textArr[0], styleIndex);
|
|
67987
67999
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, rareCharNode);
|
|
67988
68000
|
} else {
|
|
67989
|
-
var textNode1 = new
|
|
68001
|
+
var textNode1 = new _TextNode__WEBPACK_IMPORTED_MODULE_59__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntText, textArr[0], styleIndex);
|
|
67990
68002
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
|
|
67991
68003
|
}
|
|
67992
68004
|
}
|
|
67993
68005
|
}
|
|
67994
68006
|
if (textArr.length > 1) {
|
|
67995
68007
|
for (var _i2 = 1; _i2 < textArr.length; _i2++) {
|
|
67996
|
-
var paragraNode = new
|
|
68008
|
+
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_52__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
67997
68009
|
paragraNode.styleIndex = styleIndex;
|
|
67998
68010
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paragraNode);
|
|
67999
68011
|
if (textArr[_i2] !== '') {
|
|
@@ -68004,17 +68016,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68004
68016
|
if (resultArr1[_k].text != '') {
|
|
68005
68017
|
var _newStyleIndex = styleIndex;
|
|
68006
68018
|
if (resultArr1[_k].mark == 1) {
|
|
68007
|
-
var _textStyle2 = new
|
|
68019
|
+
var _textStyle2 = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
68008
68020
|
_textStyle2.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle2);
|
|
68009
68021
|
_textStyle2.script = 2;
|
|
68010
68022
|
_newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle2);
|
|
68011
68023
|
}
|
|
68012
|
-
var _textNode = new
|
|
68024
|
+
var _textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_59__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntText, resultArr1[_k].text, _newStyleIndex);
|
|
68013
68025
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode);
|
|
68014
68026
|
}
|
|
68015
68027
|
}
|
|
68016
68028
|
} else {
|
|
68017
|
-
var _textNode2 = new
|
|
68029
|
+
var _textNode2 = new _TextNode__WEBPACK_IMPORTED_MODULE_59__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntText, textArr[_i2], styleIndex);
|
|
68018
68030
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode2);
|
|
68019
68031
|
}
|
|
68020
68032
|
}
|
|
@@ -68031,25 +68043,25 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68031
68043
|
var eIndex = expressArr[_i3].eIndex;
|
|
68032
68044
|
var expressJson = temp.text.substring(sIndex + 16, eIndex);
|
|
68033
68045
|
var expressObj = JSON.parse(expressJson);
|
|
68034
|
-
var expressStyle =
|
|
68046
|
+
var expressStyle = _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_51__/* .ExpressStyle */ .e[expressObj.expressStyle];
|
|
68035
68047
|
if (!expressStyle) {
|
|
68036
68048
|
expressStyle = expressObj.expressStyle;
|
|
68037
68049
|
}
|
|
68038
68050
|
var medicalExpressNode = void 0;
|
|
68039
68051
|
if (expressStyle.includes('style')) {
|
|
68040
68052
|
//经期史
|
|
68041
|
-
medicalExpressNode = new
|
|
68053
|
+
medicalExpressNode = new _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_51__/* .MenstrualHistoryNode */ .n(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntMedicalExpression, expressStyle, expressObj.menseDays, expressObj.cycleDays, expressObj.menarcheAge, expressObj.menoPauseAge);
|
|
68042
68054
|
} else {
|
|
68043
68055
|
if (expressStyle === 'PupilMapNode') {
|
|
68044
|
-
medicalExpressNode = new
|
|
68056
|
+
medicalExpressNode = new _PupilMapNode__WEBPACK_IMPORTED_MODULE_55__/* .PupilMapNode */ .v(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7);
|
|
68045
68057
|
} else if (expressStyle === 'LightLocationMapNode') {
|
|
68046
|
-
medicalExpressNode = new
|
|
68058
|
+
medicalExpressNode = new _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_48__/* .LightLocationMapNode */ .D(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7, expressObj.value8, expressObj.value9);
|
|
68047
68059
|
} else if (expressStyle === 'FetalHeartMapNode') {
|
|
68048
|
-
medicalExpressNode = new
|
|
68060
|
+
medicalExpressNode = new _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_47__/* .FetalHeartMapNode */ .t(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6);
|
|
68049
68061
|
} else if (expressStyle === 'PermanentTeethMapNode') {
|
|
68050
|
-
medicalExpressNode = new
|
|
68062
|
+
medicalExpressNode = new _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_53__/* .PermanentTeethMapNode */ .f(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected, expressObj.remark);
|
|
68051
68063
|
} else {
|
|
68052
|
-
medicalExpressNode = new
|
|
68064
|
+
medicalExpressNode = new _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_54__/* .PrimaryTeethMapNode */ .x(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
|
|
68053
68065
|
}
|
|
68054
68066
|
}
|
|
68055
68067
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, medicalExpressNode);
|
|
@@ -68074,9 +68086,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68074
68086
|
}
|
|
68075
68087
|
} else {
|
|
68076
68088
|
temp._childNodes2.splice(1, temp._childNodes2.length - 2);
|
|
68077
|
-
var markNode = new
|
|
68089
|
+
var markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntText, temp.labelText,
|
|
68078
68090
|
//hoEditorFactory.docTree.curStyleIndex,
|
|
68079
|
-
styleIndex,
|
|
68091
|
+
styleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNodeType */ .q.mtContent);
|
|
68080
68092
|
temp._childNodes.splice(1, 0, markNode);
|
|
68081
68093
|
temp._childNodes2.splice(1, 0, markNode);
|
|
68082
68094
|
}
|
|
@@ -68099,18 +68111,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68099
68111
|
}, {
|
|
68100
68112
|
key: "textInpubNodeRedraw",
|
|
68101
68113
|
value: function textInpubNodeRedraw(hoEditorFactoryID, node) {
|
|
68102
|
-
var hoEditorFactory =
|
|
68114
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
68103
68115
|
var startPath = node.StartMarkNode.getNodePath();
|
|
68104
68116
|
var paragraphNode = hoEditorFactory.docTree.getNodeParaNode(node.EndMarkNode);
|
|
68105
68117
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(paragraphNode);
|
|
68106
|
-
var changeEvent = new
|
|
68118
|
+
var changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_36__/* .NodeChangeEvent */ .G(hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_39__/* .DocAction */ .gk.daModifyStyle, startPath, endPath);
|
|
68107
68119
|
changeEvent.oldEndPath = endPath;
|
|
68108
|
-
changeEvent.oldDrawLines = new
|
|
68120
|
+
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_33__/* .SelectRange */ .E(hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true);
|
|
68109
68121
|
hoEditorFactory.docTree.change(changeEvent);
|
|
68110
68122
|
}
|
|
68111
68123
|
}]);
|
|
68112
68124
|
return TextInputFieldNode;
|
|
68113
|
-
}(
|
|
68125
|
+
}(_BaseCombineNode__WEBPACK_IMPORTED_MODULE_43__/* .BaseCombineNode */ .V);
|
|
68114
68126
|
|
|
68115
68127
|
/***/ }),
|
|
68116
68128
|
|
|
@@ -217469,7 +217481,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
217469
217481
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217470
217482
|
var ParagraphNode = __webpack_require__(67945);
|
|
217471
217483
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217472
|
-
/* harmony default export */ var version = ('3.1.
|
|
217484
|
+
/* harmony default export */ var version = ('3.1.5');
|
|
217473
217485
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217474
217486
|
var PoperTipText = __webpack_require__(50987);
|
|
217475
217487
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -226032,11 +226044,25 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226032
226044
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226033
226045
|
var startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
226034
226046
|
var endPath = node.getNodePath();
|
|
226035
|
-
var
|
|
226036
|
-
hoEditorFactory.
|
|
226037
|
-
|
|
226038
|
-
|
|
226039
|
-
|
|
226047
|
+
var domRange = new DomRange/* DomRange */.a(this.hoEditorFactoryID, startPath, endPath);
|
|
226048
|
+
hoEditorFactory.docController.insertRadioAndCheckBox("update", domRange, valuesObject, node.styleIndex);
|
|
226049
|
+
// const radioAndCheckBoxNode = new RadioAndCheckBoxNode(
|
|
226050
|
+
// this._hoEditorFactoryID,
|
|
226051
|
+
// node.rootNodes,
|
|
226052
|
+
// node.parentNode,
|
|
226053
|
+
// NodeType.ntControl,
|
|
226054
|
+
// valuesObject,
|
|
226055
|
+
// node.styleIndex
|
|
226056
|
+
// );
|
|
226057
|
+
// hoEditorFactory.docTree.deleteNode(node, "update");
|
|
226058
|
+
// hoEditorFactory.docTree.insertNodeAfterPath(startPath, radioAndCheckBoxNode);
|
|
226059
|
+
// const changeEvent = new NodeChangeEvent(
|
|
226060
|
+
// this._hoEditorFactoryID,
|
|
226061
|
+
// DocAction.daInsert,
|
|
226062
|
+
// startPath,
|
|
226063
|
+
// endPath
|
|
226064
|
+
// );
|
|
226065
|
+
// hoEditorFactory.docTree.change(changeEvent);
|
|
226040
226066
|
}
|
|
226041
226067
|
/**
|
|
226042
226068
|
* 查找
|
|
@@ -226546,14 +226572,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226546
226572
|
*/
|
|
226547
226573
|
}, {
|
|
226548
226574
|
key: "deleteComment",
|
|
226549
|
-
value: function deleteComment(type) {
|
|
226575
|
+
value: function deleteComment(type, commentID) {
|
|
226550
226576
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226551
226577
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
226552
226578
|
var startPath = _curDomRange.normalize().startPath;
|
|
226553
226579
|
var endPath = _curDomRange.normalize().endPath;
|
|
226554
226580
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daDelete, startPath, endPath, NodeChangingEvent/* OperType */.y.deleteComment);
|
|
226555
226581
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
226556
|
-
hoEditorFactory.docController.deleteComment(type);
|
|
226582
|
+
hoEditorFactory.docController.deleteComment(type, commentID);
|
|
226557
226583
|
}
|
|
226558
226584
|
comment/* hoCreateComment */.$.close();
|
|
226559
226585
|
}
|
|
@@ -236771,9 +236797,9 @@ var ReviewController = /*#__PURE__*/function () {
|
|
|
236771
236797
|
*/
|
|
236772
236798
|
}, {
|
|
236773
236799
|
key: "deleteComment",
|
|
236774
|
-
value: function deleteComment(type) {
|
|
236800
|
+
value: function deleteComment(type, commentID) {
|
|
236775
236801
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
236776
|
-
hoEditorFactory.vueController.deleteComment(type);
|
|
236802
|
+
hoEditorFactory.vueController.deleteComment(type, commentID);
|
|
236777
236803
|
}
|
|
236778
236804
|
/**
|
|
236779
236805
|
* 编辑批注
|