hoeditor-web 2.0.79 → 2.0.80
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.common.js +308 -410
- package/lib/hoeditor.css +855 -2
- package/lib/hoeditor.umd.js +308 -410
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -13490,8 +13490,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13490
13490
|
hoEditorFactory.undoService.commit();
|
|
13491
13491
|
} else {
|
|
13492
13492
|
hoEditorFactory.undoService.begin();
|
|
13493
|
-
|
|
13493
|
+
var nodesDeleteUndoUnit = new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, oper === "update" ? true : false);
|
|
13494
|
+
hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
|
|
13494
13495
|
hoEditorFactory.undoService.commit();
|
|
13496
|
+
return nodesDeleteUndoUnit.isError;
|
|
13495
13497
|
}
|
|
13496
13498
|
} //插入节点到指定位置
|
|
13497
13499
|
|
|
@@ -13511,18 +13513,23 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13511
13513
|
}
|
|
13512
13514
|
}
|
|
13513
13515
|
|
|
13516
|
+
var isError;
|
|
13517
|
+
|
|
13514
13518
|
if (!curRange.isEmpty) {
|
|
13515
|
-
this.deleteRange(curRange, true, "update"); //删除选中节点
|
|
13519
|
+
isError = this.deleteRange(curRange, true, isResetFieldText ? "update" : undefined); //删除选中节点
|
|
13516
13520
|
}
|
|
13517
13521
|
|
|
13518
|
-
if (
|
|
13519
|
-
|
|
13520
|
-
|
|
13522
|
+
if (!isError) {
|
|
13523
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview) {
|
|
13524
|
+
path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
13525
|
+
}
|
|
13521
13526
|
|
|
13522
|
-
|
|
13527
|
+
hoEditorFactory.undoService.begin(); // this.insertNodeByPath(textNode,this._curNodePosition.path);
|
|
13528
|
+
|
|
13529
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, node));
|
|
13530
|
+
hoEditorFactory.undoService.commit();
|
|
13531
|
+
}
|
|
13523
13532
|
|
|
13524
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, node));
|
|
13525
|
-
hoEditorFactory.undoService.commit();
|
|
13526
13533
|
return hoEditorFactory.docTree.curDomRange.startPath;
|
|
13527
13534
|
}
|
|
13528
13535
|
/**
|
|
@@ -14772,13 +14779,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14772
14779
|
var values = valuesObject;
|
|
14773
14780
|
|
|
14774
14781
|
if (Number(values["inputFieldType"]) === 1) {
|
|
14775
|
-
if (node.
|
|
14782
|
+
if (node.keyValue !== "") {
|
|
14776
14783
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
14777
14784
|
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, values["text"], hoEditorFactory.docTree.curStyleIndex);
|
|
14778
14785
|
node.childNodes.splice(1, 0, textNode); //changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
14779
|
-
|
|
14780
|
-
|
|
14786
|
+
} else {
|
|
14787
|
+
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
14788
|
+
node.childNodes.splice(1, 0, node.childNodes2[1]);
|
|
14781
14789
|
}
|
|
14790
|
+
|
|
14791
|
+
changeEvent.afterChangePath = ePath;
|
|
14782
14792
|
} else {
|
|
14783
14793
|
//changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
14784
14794
|
changeEvent.afterChangePath = ePath;
|
|
@@ -14786,11 +14796,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14786
14796
|
|
|
14787
14797
|
hoEditorFactory.docTree.change(changeEvent);
|
|
14788
14798
|
node.update();
|
|
14789
|
-
var pnode = node.parentNode;
|
|
14790
|
-
|
|
14791
|
-
|
|
14792
|
-
pnode.update();
|
|
14793
|
-
}
|
|
14799
|
+
var pnode = node.parentNode; // if (pnode instanceof TextInputFieldNode) {
|
|
14800
|
+
// pnode.update();
|
|
14801
|
+
// }
|
|
14794
14802
|
|
|
14795
14803
|
do {
|
|
14796
14804
|
var _pnode;
|
|
@@ -14805,10 +14813,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14805
14813
|
} while ((_pnode = pnode) !== null && _pnode !== void 0 && _pnode.parentNode);
|
|
14806
14814
|
|
|
14807
14815
|
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
14808
|
-
|
|
14809
|
-
if (pnode.drawCell.drawPageCells.length > 1) {
|
|
14816
|
+
if (Number(values["inputFieldType"]) === 1) {
|
|
14810
14817
|
pnode.drawCell.needUpdate = true;
|
|
14811
14818
|
pnode.table.update();
|
|
14819
|
+
} else {
|
|
14820
|
+
//增加判断只有多页表格才更新table.update,以处理编辑元素 卡慢问题
|
|
14821
|
+
if (pnode.drawCell.drawPageCells.length > 1) {
|
|
14822
|
+
pnode.drawCell.needUpdate = true;
|
|
14823
|
+
pnode.table.update();
|
|
14824
|
+
}
|
|
14812
14825
|
}
|
|
14813
14826
|
}
|
|
14814
14827
|
|
|
@@ -25558,7 +25571,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
25558
25571
|
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1__);
|
|
25559
25572
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37174);
|
|
25560
25573
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35671);
|
|
25561
|
-
/* harmony import */ var
|
|
25574
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(22342);
|
|
25562
25575
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(99640);
|
|
25563
25576
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28214);
|
|
25564
25577
|
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38862);
|
|
@@ -25579,32 +25592,37 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
25579
25592
|
/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
25580
25593
|
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(54747);
|
|
25581
25594
|
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
25582
|
-
/* harmony import */ var
|
|
25583
|
-
/* harmony import */ var
|
|
25584
|
-
/* harmony import */ var
|
|
25585
|
-
/* harmony import */ var
|
|
25586
|
-
/* harmony import */ var
|
|
25587
|
-
/* harmony import */ var
|
|
25588
|
-
/* harmony import */ var
|
|
25589
|
-
/* harmony import */ var
|
|
25590
|
-
/* harmony import */ var
|
|
25591
|
-
/* harmony import */ var
|
|
25592
|
-
/* harmony import */ var
|
|
25593
|
-
/* harmony import */ var
|
|
25594
|
-
/* harmony import */ var
|
|
25595
|
-
/* harmony import */ var
|
|
25596
|
-
/* harmony import */ var
|
|
25597
|
-
/* harmony import */ var
|
|
25598
|
-
/* harmony import */ var
|
|
25599
|
-
/* harmony import */ var
|
|
25600
|
-
/* harmony import */ var
|
|
25601
|
-
/* harmony import */ var
|
|
25602
|
-
/* harmony import */ var
|
|
25603
|
-
/* harmony import */ var
|
|
25604
|
-
/* harmony import */ var
|
|
25605
|
-
/* harmony import */ var
|
|
25606
|
-
/* harmony import */ var
|
|
25607
|
-
/* harmony import */ var
|
|
25595
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(68309);
|
|
25596
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
25597
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(74916);
|
|
25598
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
25599
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(23123);
|
|
25600
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
25601
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(26699);
|
|
25602
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
25603
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(32023);
|
|
25604
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
25605
|
+
/* harmony import */ var _editor_draw_drawNode_DrawCell__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(10863);
|
|
25606
|
+
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(34534);
|
|
25607
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(41005);
|
|
25608
|
+
/* harmony import */ var _plugins_type__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(28349);
|
|
25609
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(23375);
|
|
25610
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(66828);
|
|
25611
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(2242);
|
|
25612
|
+
/* harmony import */ var _TableProperty__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(68183);
|
|
25613
|
+
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(8);
|
|
25614
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(50369);
|
|
25615
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(8395);
|
|
25616
|
+
/* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(36395);
|
|
25617
|
+
/* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(15868);
|
|
25618
|
+
/* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(14208);
|
|
25619
|
+
/* harmony import */ var _RectNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(27807);
|
|
25620
|
+
/* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(34450);
|
|
25621
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(95883);
|
|
25622
|
+
/* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(34565);
|
|
25623
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(91538);
|
|
25624
|
+
|
|
25625
|
+
|
|
25608
25626
|
|
|
25609
25627
|
|
|
25610
25628
|
|
|
@@ -25681,7 +25699,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25681
25699
|
|
|
25682
25700
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, CellNode);
|
|
25683
25701
|
|
|
25684
|
-
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode,
|
|
25702
|
+
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, _BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType.ntCell */ .Jq.ntCell);
|
|
25685
25703
|
_this._hoEditorFactoryID = hoEditorFactoryID;
|
|
25686
25704
|
_this._borderVisible = [true, true, true, true];
|
|
25687
25705
|
_this._crossLineType = CrossLineType.ctNone;
|
|
@@ -25697,7 +25715,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25697
25715
|
return _this;
|
|
25698
25716
|
}
|
|
25699
25717
|
|
|
25700
|
-
(0,
|
|
25718
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(CellNode, [{
|
|
25701
25719
|
key: "drawCell",
|
|
25702
25720
|
get: function get() {
|
|
25703
25721
|
return this._drawCell;
|
|
@@ -25840,7 +25858,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25840
25858
|
}, {
|
|
25841
25859
|
key: "initBlankDoc",
|
|
25842
25860
|
value: function initBlankDoc() {
|
|
25843
|
-
var aparagraph = new
|
|
25861
|
+
var aparagraph = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C(this._hoEditorFactoryID, this.rootNodes, this, 0);
|
|
25844
25862
|
aparagraph.node2DrawNode();
|
|
25845
25863
|
|
|
25846
25864
|
this._childNodes.push(aparagraph);
|
|
@@ -25860,7 +25878,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25860
25878
|
key: "placeDNodeAfterDTop",
|
|
25861
25879
|
value: function placeDNodeAfterDTop(droots, dTop) {
|
|
25862
25880
|
var paragraphNode = this.childNodes[0];
|
|
25863
|
-
var hoEditorFactory =
|
|
25881
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
25864
25882
|
var aline = paragraphNode.drawlines[0];
|
|
25865
25883
|
hoEditorFactory.drawTree.drawDocInsert(paragraphNode, 0, paragraphNode, -1, hoEditorFactory.docTree.getNodeLastPath(this));
|
|
25866
25884
|
|
|
@@ -25900,7 +25918,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25900
25918
|
value: function updateWidth(awidth) {
|
|
25901
25919
|
this.drawCell.dWidth = awidth; // (this.childNodes[0] as ParagraphNode).drawlines[0].dWidth = awidth;
|
|
25902
25920
|
|
|
25903
|
-
|
|
25921
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.clearDrawContainer(this.drawCell.drawLines);
|
|
25904
25922
|
this._drawCell.drawLines.length = 0;
|
|
25905
25923
|
this.childNodes[0].node2DrawNode();
|
|
25906
25924
|
this.drawCell.drawLines.push(this.childNodes[0].drawlines[0]);
|
|
@@ -25918,15 +25936,15 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25918
25936
|
}, {
|
|
25919
25937
|
key: "redrawCell",
|
|
25920
25938
|
value: function redrawCell(repaintInmediate, action) {
|
|
25921
|
-
var hoEditorFactory =
|
|
25939
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
25922
25940
|
|
|
25923
25941
|
if (repaintInmediate) {
|
|
25924
|
-
var dcChangeEvent = new
|
|
25942
|
+
var dcChangeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_21__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, action, hoEditorFactory.docTree.getNodeFirstPath(this.childNodes[0]), hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 1]));
|
|
25925
25943
|
|
|
25926
|
-
if (action ===
|
|
25944
|
+
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_24__/* .DocAction.daDelete */ .gk.daDelete || action === _DocTree__WEBPACK_IMPORTED_MODULE_24__/* .DocAction.daModifyStyle */ .gk.daModifyStyle) {
|
|
25927
25945
|
dcChangeEvent.oldEndPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
25928
25946
|
|
|
25929
|
-
if (action ===
|
|
25947
|
+
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_24__/* .DocAction.daDelete */ .gk.daDelete) {
|
|
25930
25948
|
dcChangeEvent.oldDrawTreeLines = this._table.drawTable.getCellsDrawTreeLines([this]);
|
|
25931
25949
|
} else {
|
|
25932
25950
|
dcChangeEvent.oldDrawLines = this._table.drawTable.getCellsDrawLines([this]);
|
|
@@ -25980,7 +25998,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25980
25998
|
}
|
|
25981
25999
|
|
|
25982
26000
|
aHeight += this._rowSpan;
|
|
25983
|
-
this._drawCell = new
|
|
26001
|
+
this._drawCell = new _editor_draw_drawNode_DrawCell__WEBPACK_IMPORTED_MODULE_20__/* .DrawCell */ .y(this._hoEditorFactoryID, this, 0, aWidth, aHeight);
|
|
25984
26002
|
|
|
25985
26003
|
this._drawNodes.push(this._drawCell); // this._drawCell.drawLines.push(
|
|
25986
26004
|
// (this._childNodes[0] as ParagraphNode).drawlines[0]
|
|
@@ -26000,7 +26018,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26000
26018
|
}, {
|
|
26001
26019
|
key: "range",
|
|
26002
26020
|
value: function range() {
|
|
26003
|
-
var hoEditorFactory =
|
|
26021
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26004
26022
|
var spath = hoEditorFactory.docTree.getNodeFirstPath(this);
|
|
26005
26023
|
var epath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
26006
26024
|
return {
|
|
@@ -26020,9 +26038,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26020
26038
|
var node = this.childNodes[i];
|
|
26021
26039
|
var nodeJson = void 0;
|
|
26022
26040
|
|
|
26023
|
-
if (node instanceof
|
|
26041
|
+
if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_36__/* .TableNode */ .Fh || node instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_37__/* .TextInputFieldNode */ .re) {
|
|
26024
26042
|
nodeJson = node.node2Json(undefined, isCopy, type, clearSign);
|
|
26025
|
-
} else if (node instanceof
|
|
26043
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N) {
|
|
26026
26044
|
if (clearSign) {
|
|
26027
26045
|
if (node.isTemplate) {
|
|
26028
26046
|
nodeJson = node.node2Json(undefined, isCopy, undefined, clearSign);
|
|
@@ -26031,10 +26049,12 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26031
26049
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
26032
26050
|
}
|
|
26033
26051
|
} else {
|
|
26034
|
-
if (node instanceof
|
|
26052
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R) {
|
|
26035
26053
|
if (node.text !== "") {
|
|
26036
26054
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
26037
26055
|
}
|
|
26056
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_31__/* .DateTimeNode */ .Z) {
|
|
26057
|
+
nodeJson = node.node2Json(undefined, isCopy, undefined, clearSign);
|
|
26038
26058
|
} else {
|
|
26039
26059
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
26040
26060
|
}
|
|
@@ -26131,9 +26151,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26131
26151
|
}
|
|
26132
26152
|
}
|
|
26133
26153
|
|
|
26134
|
-
var cellText = this.getCellText();
|
|
26154
|
+
var cellText = this.getCellText(clearSign);
|
|
26135
26155
|
return {
|
|
26136
|
-
nodeType:
|
|
26156
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq[this.nodeType],
|
|
26137
26157
|
borderVisible: this.borderVisible.toString(),
|
|
26138
26158
|
crossLineType: CrossLineType[this.crossLineType],
|
|
26139
26159
|
rowSpan: this.rowSpan,
|
|
@@ -26183,12 +26203,12 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26183
26203
|
newRange = arange.normalize();
|
|
26184
26204
|
}
|
|
26185
26205
|
|
|
26186
|
-
var hoEditorFactory =
|
|
26206
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26187
26207
|
var startPath = hoEditorFactory.docTree.getNodeFirstPath(this.childNodes[0]);
|
|
26188
26208
|
var lastPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 1]);
|
|
26189
26209
|
|
|
26190
|
-
if (
|
|
26191
|
-
ret =
|
|
26210
|
+
if (_NodePosition__WEBPACK_IMPORTED_MODULE_26__/* .NodePosition.pathCanCompare */ .F.pathCanCompare(newRange.startPath, startPath)) {
|
|
26211
|
+
ret = _NodePosition__WEBPACK_IMPORTED_MODULE_26__/* .NodePosition.treePathCompare */ .F.treePathCompare(startPath, newRange.startPath) >= 0 && _NodePosition__WEBPACK_IMPORTED_MODULE_26__/* .NodePosition.treePathCompare */ .F.treePathCompare(lastPath, arange.endPath) <= 0;
|
|
26192
26212
|
}
|
|
26193
26213
|
|
|
26194
26214
|
return ret;
|
|
@@ -26196,12 +26216,12 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26196
26216
|
}, {
|
|
26197
26217
|
key: "getNodesForUpdate",
|
|
26198
26218
|
value: function getNodesForUpdate() {
|
|
26199
|
-
var hoEditorFactory =
|
|
26219
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26200
26220
|
var ret = new Array();
|
|
26201
26221
|
|
|
26202
26222
|
for (var i = 0; i < this._childNodes.length; i++) {
|
|
26203
|
-
if (this._childNodes[i] instanceof
|
|
26204
|
-
var domRange = new
|
|
26223
|
+
if (this._childNodes[i] instanceof _TableNode__WEBPACK_IMPORTED_MODULE_36__/* .TableNode */ .Fh) {
|
|
26224
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_25__/* .DomRange */ .a(this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeFirstPath(this._childNodes[i]), hoEditorFactory.docTree.getNodeLastPath(this._childNodes[i]));
|
|
26205
26225
|
ret = ret.concat(this._childNodes[i].getSelectNodesForUpdate(domRange, true));
|
|
26206
26226
|
} else ret.push(this._childNodes[i]);
|
|
26207
26227
|
}
|
|
@@ -26211,16 +26231,16 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26211
26231
|
}, {
|
|
26212
26232
|
key: "getSelectNodes",
|
|
26213
26233
|
value: function getSelectNodes(bSplitTextInputNode) {
|
|
26214
|
-
var hoEditorFactory =
|
|
26234
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26215
26235
|
var ret = new Array();
|
|
26216
26236
|
|
|
26217
26237
|
for (var i = 0; i < this._childNodes.length; i++) {
|
|
26218
26238
|
var aNode = this._childNodes[i];
|
|
26219
26239
|
|
|
26220
|
-
if (aNode instanceof
|
|
26221
|
-
var domRange = new
|
|
26240
|
+
if (aNode instanceof _TableNode__WEBPACK_IMPORTED_MODULE_36__/* .TableNode */ .Fh) {
|
|
26241
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_25__/* .DomRange */ .a(this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeFirstPath(aNode), hoEditorFactory.docTree.getNodeLastPath(aNode));
|
|
26222
26242
|
ret = ret.concat(aNode.getSelectNodes(domRange, true, bSplitTextInputNode));
|
|
26223
|
-
} else if (bSplitTextInputNode && aNode instanceof
|
|
26243
|
+
} else if (bSplitTextInputNode && aNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_37__/* .TextInputFieldNode */ .re) {
|
|
26224
26244
|
ret = ret.concat(aNode.getAllChildNodes());
|
|
26225
26245
|
} else ret.push(this._childNodes[i]);
|
|
26226
26246
|
}
|
|
@@ -26241,19 +26261,23 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26241
26261
|
|
|
26242
26262
|
}, {
|
|
26243
26263
|
key: "getCellText",
|
|
26244
|
-
value: function getCellText() {
|
|
26264
|
+
value: function getCellText(isClearValue) {
|
|
26245
26265
|
var cellText = "";
|
|
26246
26266
|
|
|
26247
26267
|
var loopChildNodes = function loopChildNodes(node) {
|
|
26248
26268
|
var nodes = node.childNodes.slice(1);
|
|
26249
26269
|
nodes.forEach(function (childNode) {
|
|
26250
|
-
if (childNode instanceof
|
|
26251
|
-
cellText += childNode.text;
|
|
26252
|
-
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_29__/* .ControlNode */ .w) {
|
|
26270
|
+
if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R) {
|
|
26253
26271
|
cellText += childNode.text;
|
|
26254
|
-
} else if (childNode instanceof
|
|
26272
|
+
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w) {
|
|
26273
|
+
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_31__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
26274
|
+
cellText += "";
|
|
26275
|
+
} else {
|
|
26276
|
+
cellText += childNode.text;
|
|
26277
|
+
}
|
|
26278
|
+
} else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_28__/* .BaseCombineNode */ .V) {
|
|
26255
26279
|
loopChildNodes(childNode);
|
|
26256
|
-
} else if (childNode instanceof
|
|
26280
|
+
} else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C) {
|
|
26257
26281
|
cellText += '\n';
|
|
26258
26282
|
}
|
|
26259
26283
|
});
|
|
@@ -26264,13 +26288,13 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26264
26288
|
}
|
|
26265
26289
|
}, {
|
|
26266
26290
|
key: "setCellText",
|
|
26267
|
-
value: function setCellText(value) {
|
|
26291
|
+
value: function setCellText(value, isPaste) {
|
|
26268
26292
|
var colIndex = this.row.indexOf(this);
|
|
26269
|
-
var hoEditorFactory =
|
|
26293
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26270
26294
|
var colProperty = this.table.colInfos[colIndex].colProperty;
|
|
26271
26295
|
|
|
26272
|
-
if (colProperty.editorProperty ===
|
|
26273
|
-
if (!(0,
|
|
26296
|
+
if (colProperty.editorProperty === _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .EditorProperty.Number */ .YS.Number) {
|
|
26297
|
+
if (!(0,_plugins_type__WEBPACK_IMPORTED_MODULE_23__/* .isNumber */ .hj)(value)) {
|
|
26274
26298
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("输入值非数值类型,请重输!", "提示");
|
|
26275
26299
|
|
|
26276
26300
|
return;
|
|
@@ -26304,22 +26328,27 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26304
26328
|
var endPath = "";
|
|
26305
26329
|
var startPath = "";
|
|
26306
26330
|
|
|
26307
|
-
if (
|
|
26308
|
-
|
|
26331
|
+
if (isPaste) {
|
|
26332
|
+
startPath = "".concat(this.getNodePath(), "/0");
|
|
26333
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
26334
|
+
} else {
|
|
26335
|
+
if (this.table.tableProperty.isAutoChangeLine) {
|
|
26336
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
26309
26337
|
|
|
26310
|
-
|
|
26311
|
-
|
|
26312
|
-
|
|
26338
|
+
if (curDomRange.npEnd.node instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C) {
|
|
26339
|
+
startPath = curDomRange.startPath;
|
|
26340
|
+
endPath = startPath;
|
|
26341
|
+
} else {
|
|
26342
|
+
startPath = curDomRange.npEnd.node.prevSibling().getNodePath();
|
|
26343
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(curDomRange.npEnd.node);
|
|
26344
|
+
}
|
|
26313
26345
|
} else {
|
|
26314
|
-
startPath =
|
|
26315
|
-
endPath = hoEditorFactory.docTree.getNodeLastPath(
|
|
26346
|
+
startPath = "".concat(this.getNodePath(), "/0");
|
|
26347
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
26316
26348
|
}
|
|
26317
|
-
} else {
|
|
26318
|
-
startPath = "".concat(this.getNodePath(), "/0");
|
|
26319
|
-
endPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
26320
26349
|
}
|
|
26321
26350
|
|
|
26322
|
-
var aRange = new
|
|
26351
|
+
var aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_25__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
26323
26352
|
hoEditorFactory.docController.deleteRange(aRange, true);
|
|
26324
26353
|
hoEditorFactory.docController.insertPlainTextAfterPath(startPath, value);
|
|
26325
26354
|
}
|
|
@@ -26365,23 +26394,23 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26365
26394
|
}, {
|
|
26366
26395
|
key: "needPaintLineGrid",
|
|
26367
26396
|
value: function needPaintLineGrid() {
|
|
26368
|
-
var hoEditorFactory =
|
|
26397
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26369
26398
|
|
|
26370
26399
|
var _this$table$getCellIn = this.table.getCellInfos(this),
|
|
26371
26400
|
_this$table$getCellIn2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this$table$getCellIn, 2),
|
|
26372
26401
|
r = _this$table$getCellIn2[0],
|
|
26373
26402
|
c = _this$table$getCellIn2[1];
|
|
26374
26403
|
|
|
26375
|
-
return (hoEditorFactory.docTree.docProperty.type ===
|
|
26404
|
+
return (hoEditorFactory.docTree.docProperty.type === _DocTree__WEBPACK_IMPORTED_MODULE_24__/* .EmrType.etForm */ .Fr.etForm || this.table.tableProperty.isAutoChangeLine) && !this.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && this.cellProperty.align !== _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .VAlign.vacenter */ .TR.vacenter;
|
|
26376
26405
|
}
|
|
26377
26406
|
}], [{
|
|
26378
26407
|
key: "json2Node",
|
|
26379
26408
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign) {
|
|
26380
|
-
var hoEditorFactory =
|
|
26409
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
26381
26410
|
var rowNo = parseInt(json.rowNo);
|
|
26382
26411
|
var colNo = parseInt(json.colNo);
|
|
26383
26412
|
aRow = rowsMap.get(rowNo);
|
|
26384
|
-
var cellNode = new CellNode(hoEditorFactoryID, rootNodes, tableNode, aRow, undefined, rowNo, colNo, 1, 1, new
|
|
26413
|
+
var cellNode = new CellNode(hoEditorFactoryID, rootNodes, tableNode, aRow, undefined, rowNo, colNo, 1, 1, new _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .CellProperty */ .$W(""));
|
|
26385
26414
|
var cellProperty = json.cellProperty;
|
|
26386
26415
|
|
|
26387
26416
|
if (cellProperty === "") {
|
|
@@ -26409,9 +26438,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26409
26438
|
target[value] = Number(source[value]);
|
|
26410
26439
|
} else {
|
|
26411
26440
|
if (value === "dateTimeProperty") {
|
|
26412
|
-
cellNode.cellProperty.dateTimeProperty = new
|
|
26441
|
+
cellNode.cellProperty.dateTimeProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .DateTimeProperty */ .Ks(source[value]);
|
|
26413
26442
|
} else if (value === "downListProperty") {
|
|
26414
|
-
cellNode.cellProperty.downListProperty = new
|
|
26443
|
+
cellNode.cellProperty.downListProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .ColDownListProperty */ .cW(source[value]);
|
|
26415
26444
|
} else {
|
|
26416
26445
|
target[value] = source[value];
|
|
26417
26446
|
}
|
|
@@ -26450,13 +26479,13 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26450
26479
|
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste, isClearSign);
|
|
26451
26480
|
|
|
26452
26481
|
if (convertNode) {
|
|
26453
|
-
if (convertNode instanceof
|
|
26482
|
+
if (convertNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R) {
|
|
26454
26483
|
if (convertNode.text !== "") {
|
|
26455
26484
|
cellNode.addChild(convertNode);
|
|
26456
26485
|
}
|
|
26457
26486
|
} else {
|
|
26458
26487
|
if (isClearSign) {
|
|
26459
|
-
if (convertNode instanceof
|
|
26488
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N) {
|
|
26460
26489
|
if (convertNode.isTemplate) {
|
|
26461
26490
|
cellNode.addChild(convertNode);
|
|
26462
26491
|
}
|
|
@@ -26469,11 +26498,11 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26469
26498
|
}
|
|
26470
26499
|
}
|
|
26471
26500
|
|
|
26472
|
-
if (convertNode instanceof
|
|
26501
|
+
if (convertNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_32__/* .MarkNode */ .j) {
|
|
26473
26502
|
hoEditorFactory.structureConvert._markNodes.push(convertNode);
|
|
26474
26503
|
}
|
|
26475
26504
|
|
|
26476
|
-
if (convertNode instanceof
|
|
26505
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(convertNode.customProperty.bce01)) {
|
|
26477
26506
|
hoEditorFactory.structureConvert._superiorSign[0] = convertNode;
|
|
26478
26507
|
}
|
|
26479
26508
|
}
|
|
@@ -26519,16 +26548,16 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26519
26548
|
|
|
26520
26549
|
if (text !== "") {
|
|
26521
26550
|
var textArr = text.split("\n");
|
|
26522
|
-
var firstTextNode = new
|
|
26551
|
+
var firstTextNode = new _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, cellNode, _BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType.ntText */ .Jq.ntText, textArr[0], Number(paraNode.textStyleNo ? paraNode.textStyleNo : 0));
|
|
26523
26552
|
cellNode.addChild(firstTextNode);
|
|
26524
26553
|
|
|
26525
26554
|
if (textArr.length > 1) {
|
|
26526
26555
|
for (var i = 1; i < textArr.length; i++) {
|
|
26527
|
-
var paragraNode = new
|
|
26556
|
+
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, cellNode, Number(paraNode.styleIndex));
|
|
26528
26557
|
cellNode.addChild(paragraNode);
|
|
26529
26558
|
|
|
26530
26559
|
if (textArr[i] !== "") {
|
|
26531
|
-
var textNode = new
|
|
26560
|
+
var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, cellNode, _BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType.ntText */ .Jq.ntText, textArr[i], Number(paraNode.textStyleNo ? paraNode.textStyleNo : 0));
|
|
26532
26561
|
cellNode.addChild(textNode);
|
|
26533
26562
|
}
|
|
26534
26563
|
}
|
|
@@ -26546,7 +26575,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26546
26575
|
}]);
|
|
26547
26576
|
|
|
26548
26577
|
return CellNode;
|
|
26549
|
-
}(
|
|
26578
|
+
}(_RectNode__WEBPACK_IMPORTED_MODULE_34__/* .RectNode */ .z);
|
|
26550
26579
|
|
|
26551
26580
|
/***/ }),
|
|
26552
26581
|
|
|
@@ -27235,7 +27264,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27235
27264
|
}
|
|
27236
27265
|
}, {
|
|
27237
27266
|
key: "node2Json",
|
|
27238
|
-
value: function node2Json(range, isCopy, type) {
|
|
27267
|
+
value: function node2Json(range, isCopy, type, isClearValue) {
|
|
27239
27268
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27240
27269
|
var retObj = {
|
|
27241
27270
|
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType.ntControl */ .Jq.ntControl],
|
|
@@ -27250,7 +27279,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27250
27279
|
isSynchro: this.isSynchro,
|
|
27251
27280
|
controlStyle: this.controlStyle.replace("hh", "HH"),
|
|
27252
27281
|
name: this.name,
|
|
27253
|
-
text: this.text === this.name ? "" : this.text,
|
|
27282
|
+
text: isClearValue || this.text === this.name ? "" : this.text,
|
|
27254
27283
|
labelText: this.labelText,
|
|
27255
27284
|
title: this.title,
|
|
27256
27285
|
styleIndex: this.styleIndex,
|
|
@@ -38762,7 +38791,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38762
38791
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(99640);
|
|
38763
38792
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(28214);
|
|
38764
38793
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(35671);
|
|
38765
|
-
/* harmony import */ var
|
|
38794
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(22342);
|
|
38766
38795
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(68309);
|
|
38767
38796
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
38768
38797
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41539);
|
|
@@ -38807,19 +38836,20 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38807
38836
|
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(8);
|
|
38808
38837
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(50369);
|
|
38809
38838
|
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(8395);
|
|
38810
|
-
/* harmony import */ var
|
|
38811
|
-
/* harmony import */ var
|
|
38812
|
-
/* harmony import */ var
|
|
38813
|
-
/* harmony import */ var
|
|
38814
|
-
/* harmony import */ var
|
|
38815
|
-
/* harmony import */ var
|
|
38816
|
-
/* harmony import */ var
|
|
38817
|
-
/* harmony import */ var
|
|
38818
|
-
/* harmony import */ var
|
|
38819
|
-
/* harmony import */ var
|
|
38820
|
-
/* harmony import */ var
|
|
38821
|
-
/* harmony import */ var
|
|
38822
|
-
/* harmony import */ var
|
|
38839
|
+
/* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(36395);
|
|
38840
|
+
/* harmony import */ var _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(50161);
|
|
38841
|
+
/* harmony import */ var _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(84844);
|
|
38842
|
+
/* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(15868);
|
|
38843
|
+
/* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(8623);
|
|
38844
|
+
/* harmony import */ var _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(97724);
|
|
38845
|
+
/* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(14208);
|
|
38846
|
+
/* harmony import */ var _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(85028);
|
|
38847
|
+
/* harmony import */ var _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(91715);
|
|
38848
|
+
/* harmony import */ var _PupilMapNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(43010);
|
|
38849
|
+
/* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(34450);
|
|
38850
|
+
/* harmony import */ var _TableFormula__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(39869);
|
|
38851
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(95883);
|
|
38852
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(91538);
|
|
38823
38853
|
|
|
38824
38854
|
|
|
38825
38855
|
|
|
@@ -38852,7 +38882,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38852
38882
|
/*
|
|
38853
38883
|
* @Author: your name
|
|
38854
38884
|
* @Date: 2020-11-03 15:17:54
|
|
38855
|
-
* @LastEditTime: 2022-07-
|
|
38885
|
+
* @LastEditTime: 2022-07-29 14:35:30
|
|
38856
38886
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
38857
38887
|
* @Description: In User Settings Edit
|
|
38858
38888
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -38882,6 +38912,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38882
38912
|
|
|
38883
38913
|
|
|
38884
38914
|
|
|
38915
|
+
|
|
38885
38916
|
|
|
38886
38917
|
|
|
38887
38918
|
var ReadOnlyStatus;
|
|
@@ -38940,7 +38971,7 @@ var DownListProperty = /*#__PURE__*/function () {
|
|
|
38940
38971
|
DownListProperty.setDefaultImportStyle(this);
|
|
38941
38972
|
}
|
|
38942
38973
|
|
|
38943
|
-
(0,
|
|
38974
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_53__/* ["default"] */ .Z)(DownListProperty, [{
|
|
38944
38975
|
key: "allowMultiSelected",
|
|
38945
38976
|
get: function get() {
|
|
38946
38977
|
return this._allowMultiSelected;
|
|
@@ -39035,7 +39066,7 @@ var DataVerifyFormat = /*#__PURE__*/function () {
|
|
|
39035
39066
|
DataVerifyFormat.setDefaultDataVerifyFormat(this);
|
|
39036
39067
|
}
|
|
39037
39068
|
|
|
39038
|
-
(0,
|
|
39069
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_53__/* ["default"] */ .Z)(DataVerifyFormat, [{
|
|
39039
39070
|
key: "mustInputValue",
|
|
39040
39071
|
get: function get() {
|
|
39041
39072
|
return this._mustInputValue;
|
|
@@ -39143,7 +39174,7 @@ var BandDataSource = /*#__PURE__*/function () {
|
|
|
39143
39174
|
BandDataSource.setDefaultBandDataSource(this);
|
|
39144
39175
|
}
|
|
39145
39176
|
|
|
39146
|
-
(0,
|
|
39177
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_53__/* ["default"] */ .Z)(BandDataSource, [{
|
|
39147
39178
|
key: "dataSourceEnabled",
|
|
39148
39179
|
get: function get() {
|
|
39149
39180
|
return this._dataSourceEnabled;
|
|
@@ -39417,7 +39448,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39417
39448
|
*/
|
|
39418
39449
|
|
|
39419
39450
|
|
|
39420
|
-
(0,
|
|
39451
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_53__/* ["default"] */ .Z)(TextInputFieldNode, [{
|
|
39421
39452
|
key: "alignWithBlocked",
|
|
39422
39453
|
get: function get() {
|
|
39423
39454
|
return this._alignWithBlocked;
|
|
@@ -39901,7 +39932,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39901
39932
|
|
|
39902
39933
|
}, {
|
|
39903
39934
|
key: "getFieldText",
|
|
39904
|
-
value: function getFieldText() {
|
|
39935
|
+
value: function getFieldText(isClearValue) {
|
|
39905
39936
|
var _this3 = this;
|
|
39906
39937
|
|
|
39907
39938
|
var text = "";
|
|
@@ -39909,7 +39940,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39909
39940
|
var loopChildNodes = function loopChildNodes(node) {
|
|
39910
39941
|
var nodes = node.childNodes.slice(1);
|
|
39911
39942
|
nodes.forEach(function (childNode) {
|
|
39912
|
-
if (childNode instanceof
|
|
39943
|
+
if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R) {
|
|
39913
39944
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this3.hoEditorFactoryID);
|
|
39914
39945
|
var textStyle = hoEditorFactory.docTree.styles[childNode.styleIndex];
|
|
39915
39946
|
|
|
@@ -39922,22 +39953,26 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39922
39953
|
text += childNode.text;
|
|
39923
39954
|
}
|
|
39924
39955
|
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_38__/* .ControlNode */ .w) {
|
|
39925
|
-
text
|
|
39956
|
+
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_39__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
39957
|
+
text += "";
|
|
39958
|
+
} else {
|
|
39959
|
+
text += childNode.text;
|
|
39960
|
+
}
|
|
39926
39961
|
} else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_36__/* .BaseCombineNode */ .V) {
|
|
39927
39962
|
loopChildNodes(childNode);
|
|
39928
|
-
} else if (childNode instanceof
|
|
39963
|
+
} else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__/* .ParagraphNode */ .C) {
|
|
39929
39964
|
text += '\n';
|
|
39930
|
-
} else if (childNode instanceof
|
|
39965
|
+
} else if (childNode instanceof _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_43__/* .MedicalExpressionNode */ .H) {
|
|
39931
39966
|
var expressJson = JSON.parse("{}");
|
|
39932
39967
|
text += "<MedicalExpress>";
|
|
39933
39968
|
|
|
39934
|
-
if (childNode instanceof
|
|
39969
|
+
if (childNode instanceof _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_44__/* .MenstrualHistoryNode */ .n) {
|
|
39935
39970
|
expressJson.expressStyle = childNode.expressStyle;
|
|
39936
39971
|
expressJson.menseDays = childNode.menseDays;
|
|
39937
39972
|
expressJson.cycleDays = childNode.cycleDays;
|
|
39938
39973
|
expressJson.menarcheAge = childNode.menarcheAge;
|
|
39939
39974
|
expressJson.menoPauseAge = childNode.menoPauseAge;
|
|
39940
|
-
} else if (childNode instanceof
|
|
39975
|
+
} else if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PupilMapNode */ .v || childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_41__/* .LightLocationMapNode */ .D || childNode instanceof _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_40__/* .FetalHeartMapNode */ .t) {
|
|
39941
39976
|
expressJson.value1 = childNode.value1;
|
|
39942
39977
|
expressJson.value2 = childNode.value2;
|
|
39943
39978
|
expressJson.value3 = childNode.value3;
|
|
@@ -39945,10 +39980,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39945
39980
|
expressJson.value5 = childNode.value5;
|
|
39946
39981
|
expressJson.value6 = childNode.value6;
|
|
39947
39982
|
|
|
39948
|
-
if (childNode instanceof
|
|
39983
|
+
if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PupilMapNode */ .v) {
|
|
39949
39984
|
expressJson.expressStyle = "PupilMapNode";
|
|
39950
39985
|
expressJson.value7 = childNode.value7;
|
|
39951
|
-
} else if (childNode instanceof
|
|
39986
|
+
} else if (childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_41__/* .LightLocationMapNode */ .D) {
|
|
39952
39987
|
expressJson.expressStyle = "LightLocationMapNode";
|
|
39953
39988
|
expressJson.value7 = childNode.value7;
|
|
39954
39989
|
expressJson.value8 = childNode.value8;
|
|
@@ -39956,12 +39991,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39956
39991
|
} else {
|
|
39957
39992
|
expressJson.expressStyle = "FetalHeartMapNode";
|
|
39958
39993
|
}
|
|
39959
|
-
} else if (childNode instanceof
|
|
39960
|
-
if (childNode instanceof
|
|
39994
|
+
} else if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_46__/* .PermanentTeethMapNode */ .f || childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_47__/* .PrimaryTeethMapNode */ .x) {
|
|
39995
|
+
if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_46__/* .PermanentTeethMapNode */ .f) {
|
|
39961
39996
|
expressJson.expressStyle = "PermanentTeethMapNode";
|
|
39962
39997
|
}
|
|
39963
39998
|
|
|
39964
|
-
if (childNode instanceof
|
|
39999
|
+
if (childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_47__/* .PrimaryTeethMapNode */ .x) {
|
|
39965
40000
|
expressJson.expressStyle = "PrimaryTeethMapNode";
|
|
39966
40001
|
}
|
|
39967
40002
|
|
|
@@ -40024,7 +40059,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40024
40059
|
this.keyValue = keyValue;
|
|
40025
40060
|
}
|
|
40026
40061
|
|
|
40027
|
-
if (!(value === "" && this.childNodes[1] instanceof
|
|
40062
|
+
if (!(value === "" && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j)) {
|
|
40028
40063
|
_context2.next = 4;
|
|
40029
40064
|
break;
|
|
40030
40065
|
}
|
|
@@ -40039,7 +40074,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40039
40074
|
endPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 2]);
|
|
40040
40075
|
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_34__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
40041
40076
|
|
|
40042
|
-
if (!(this.childNodes[1] instanceof
|
|
40077
|
+
if (!(this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j) && this.inputFieldType === 0) {
|
|
40043
40078
|
anodes = _DomRange__WEBPACK_IMPORTED_MODULE_34__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this.hoEditorFactoryID, startPath, endPath);
|
|
40044
40079
|
|
|
40045
40080
|
for (i = 0; i < anodes.length; i++) {
|
|
@@ -40058,7 +40093,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40058
40093
|
break;
|
|
40059
40094
|
}
|
|
40060
40095
|
|
|
40061
|
-
markNode = new
|
|
40096
|
+
markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntText */ .Jq.ntText, this.labelText, hoEditorFactory.docTree.curStyleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtContent */ .q.mtContent);
|
|
40062
40097
|
hoEditorFactory.undoService.begin();
|
|
40063
40098
|
hoEditorFactory.undoService.add(new _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_31__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, markNode));
|
|
40064
40099
|
hoEditorFactory.undoService.commit();
|
|
@@ -40137,19 +40172,19 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40137
40172
|
// index = astyle.changeStyleString("fontBackColor", "transparent");
|
|
40138
40173
|
// }
|
|
40139
40174
|
|
|
40140
|
-
this.StartMarkNode = new
|
|
40175
|
+
this.StartMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntMark */ .Jq.ntMark, "|", index, _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtStart */ .q.mtStart);
|
|
40141
40176
|
this.StartMarkNode.isReadOnly = true;
|
|
40142
|
-
this.StartMarkNode.MarkNodeType =
|
|
40143
|
-
this.EndMarkNode = new
|
|
40177
|
+
this.StartMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtStart */ .q.mtStart;
|
|
40178
|
+
this.EndMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntMark */ .Jq.ntMark, "]", index, _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtEnd */ .q.mtEnd);
|
|
40144
40179
|
this.EndMarkNode.isReadOnly = true;
|
|
40145
|
-
this.EndMarkNode.MarkNodeType =
|
|
40180
|
+
this.EndMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtEnd */ .q.mtEnd;
|
|
40146
40181
|
this.StartMarkNode.pair = this.EndMarkNode;
|
|
40147
40182
|
this.EndMarkNode.pair = this.StartMarkNode;
|
|
40148
40183
|
|
|
40149
40184
|
this._childNodes2.push(this.StartMarkNode);
|
|
40150
40185
|
|
|
40151
40186
|
if (this.labelText.length != 0) {
|
|
40152
|
-
this._childNodes2.push(new
|
|
40187
|
+
this._childNodes2.push(new _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntText */ .Jq.ntText, this.labelText, index, _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtContent */ .q.mtContent)); // this._labelNode = new MarkNode(this._rootNodes, this, NodeType.ntText, this.labelText, 0);
|
|
40153
40188
|
// this._childNodes2.push(this._labelNode);
|
|
40154
40189
|
|
|
40155
40190
|
}
|
|
@@ -40163,7 +40198,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40163
40198
|
this.childNodes.splice(1, 1);
|
|
40164
40199
|
}
|
|
40165
40200
|
|
|
40166
|
-
this._childNodes.splice(1, 0, new
|
|
40201
|
+
this._childNodes.splice(1, 0, new _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntText */ .Jq.ntText, this.text, index));
|
|
40167
40202
|
}
|
|
40168
40203
|
}
|
|
40169
40204
|
}, {
|
|
@@ -40206,7 +40241,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40206
40241
|
for (var index = 0; index < this.childNodes.length; index++) {
|
|
40207
40242
|
var value = this.childNodes[index];
|
|
40208
40243
|
|
|
40209
|
-
if (value instanceof
|
|
40244
|
+
if (value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__/* .ParagraphNode */ .C) {
|
|
40210
40245
|
if (aline.paragraphNode !== value) {
|
|
40211
40246
|
if (aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_25__/* .DrawLine */ .a) {
|
|
40212
40247
|
aline.fitLines();
|
|
@@ -40223,7 +40258,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40223
40258
|
|
|
40224
40259
|
paraNode = value;
|
|
40225
40260
|
aline = paraNode.drawlines[0];
|
|
40226
|
-
} else if (value instanceof
|
|
40261
|
+
} else if (value instanceof _TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh) {
|
|
40227
40262
|
value.placeDNodeAfterDrawLine(paraNode, aline, endPath);
|
|
40228
40263
|
aline = value.drawTable;
|
|
40229
40264
|
} else {
|
|
@@ -40333,7 +40368,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40333
40368
|
value: function getActualWidth() {
|
|
40334
40369
|
var w = 0;
|
|
40335
40370
|
this.childNodes.forEach(function (value) {
|
|
40336
|
-
if (!(value instanceof
|
|
40371
|
+
if (!(value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__/* .ParagraphNode */ .C)) w += value.getActualWidth();
|
|
40337
40372
|
});
|
|
40338
40373
|
return w;
|
|
40339
40374
|
}
|
|
@@ -40396,10 +40431,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40396
40431
|
return true;
|
|
40397
40432
|
}
|
|
40398
40433
|
|
|
40399
|
-
if (this.childNodes.length == 3 && this.childNodes[1] instanceof
|
|
40434
|
+
if (this.childNodes.length == 3 && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j) {
|
|
40400
40435
|
var markNode = this.childNodes[1];
|
|
40401
40436
|
|
|
40402
|
-
if (markNode.MarkNodeType ===
|
|
40437
|
+
if (markNode.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtContent */ .q.mtContent) {
|
|
40403
40438
|
return true;
|
|
40404
40439
|
} else return false;
|
|
40405
40440
|
}
|
|
@@ -40456,10 +40491,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40456
40491
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
40457
40492
|
var node = this.childNodes[i];
|
|
40458
40493
|
|
|
40459
|
-
if (!(node instanceof
|
|
40460
|
-
if (node instanceof
|
|
40494
|
+
if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j && node.text.substr(0, 1) !== "C")) {
|
|
40495
|
+
if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh || node instanceof TextInputFieldNode) {
|
|
40461
40496
|
childArray.push(node.node2Json(undefined, isCopy, type, clearSign));
|
|
40462
|
-
} else if (node instanceof
|
|
40497
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_49__/* .SignNode */ .N) {
|
|
40463
40498
|
if (clearSign) {
|
|
40464
40499
|
if (node.isTemplate) {
|
|
40465
40500
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
@@ -40468,10 +40503,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40468
40503
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
40469
40504
|
}
|
|
40470
40505
|
} else {
|
|
40471
|
-
if (node instanceof
|
|
40506
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R) {
|
|
40472
40507
|
if (node.text !== "") {
|
|
40473
40508
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
40474
40509
|
}
|
|
40510
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_39__/* .DateTimeNode */ .Z) {
|
|
40511
|
+
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
40475
40512
|
} else {
|
|
40476
40513
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
40477
40514
|
}
|
|
@@ -40527,7 +40564,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40527
40564
|
}
|
|
40528
40565
|
|
|
40529
40566
|
if (canCopy) {
|
|
40530
|
-
if (!(_node instanceof
|
|
40567
|
+
if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j && _node.text.substr(0, 1) === "C")) {
|
|
40531
40568
|
childArray.push(_node.node2Json(rec, isCopy));
|
|
40532
40569
|
}
|
|
40533
40570
|
}
|
|
@@ -40580,7 +40617,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40580
40617
|
//const customPropertyObj =
|
|
40581
40618
|
|
|
40582
40619
|
|
|
40583
|
-
this.text = this.getFieldText();
|
|
40620
|
+
this.text = this.getFieldText(clearSign);
|
|
40584
40621
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40585
40622
|
var retObj = {
|
|
40586
40623
|
nodeType: "ntField",
|
|
@@ -40725,13 +40762,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40725
40762
|
var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
|
|
40726
40763
|
|
|
40727
40764
|
if (node) {
|
|
40728
|
-
if (node instanceof
|
|
40765
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R) {
|
|
40729
40766
|
if (node.text !== "") {
|
|
40730
40767
|
nodes.push(node);
|
|
40731
40768
|
}
|
|
40732
40769
|
} else {
|
|
40733
40770
|
if (isClearSign) {
|
|
40734
|
-
if (node instanceof
|
|
40771
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_49__/* .SignNode */ .N) {
|
|
40735
40772
|
if (node.isTemplate) {
|
|
40736
40773
|
nodes.push(node);
|
|
40737
40774
|
}
|
|
@@ -40744,11 +40781,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40744
40781
|
}
|
|
40745
40782
|
}
|
|
40746
40783
|
|
|
40747
|
-
if (node instanceof
|
|
40784
|
+
if (node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j && node.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtEnd */ .q.mtEnd && node.text.substring(0, 1) === "C") {
|
|
40748
40785
|
hoEditorFactory.structureConvert._markNodes.push(node);
|
|
40749
40786
|
}
|
|
40750
40787
|
|
|
40751
|
-
if (node instanceof
|
|
40788
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_49__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(node.customProperty.bce01)) {
|
|
40752
40789
|
hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
40753
40790
|
}
|
|
40754
40791
|
}
|
|
@@ -40757,14 +40794,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40757
40794
|
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
40758
40795
|
|
|
40759
40796
|
if (_node2) {
|
|
40760
|
-
if (_node2 instanceof
|
|
40797
|
+
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R) {
|
|
40761
40798
|
if (_node2.text !== "") {
|
|
40762
40799
|
nodes.push(_node2);
|
|
40763
40800
|
}
|
|
40764
40801
|
} else {
|
|
40765
40802
|
//nodes.push(node);
|
|
40766
40803
|
if (isClearSign) {
|
|
40767
|
-
if (_node2 instanceof
|
|
40804
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_49__/* .SignNode */ .N) {
|
|
40768
40805
|
if (_node2.isTemplate) {
|
|
40769
40806
|
nodes.push(_node2);
|
|
40770
40807
|
}
|
|
@@ -40777,11 +40814,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40777
40814
|
}
|
|
40778
40815
|
}
|
|
40779
40816
|
|
|
40780
|
-
if (_node2 instanceof
|
|
40817
|
+
if (_node2 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j && _node2.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtEnd */ .q.mtEnd && _node2.text.substring(0, 1) === "C") {
|
|
40781
40818
|
hoEditorFactory.structureConvert._markNodes.push(_node2);
|
|
40782
40819
|
}
|
|
40783
40820
|
|
|
40784
|
-
if (_node2 instanceof
|
|
40821
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_49__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(_node2.customProperty.bce01)) {
|
|
40785
40822
|
hoEditorFactory.structureConvert._superiorSign[0] = _node2;
|
|
40786
40823
|
}
|
|
40787
40824
|
}
|
|
@@ -40802,14 +40839,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40802
40839
|
}
|
|
40803
40840
|
|
|
40804
40841
|
if (nodes.length > 0) {
|
|
40805
|
-
if (nodes[0] instanceof
|
|
40842
|
+
if (nodes[0] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j) {
|
|
40806
40843
|
var _temp$childNodes;
|
|
40807
40844
|
|
|
40808
40845
|
temp.childNodes.length = 0;
|
|
40809
40846
|
|
|
40810
40847
|
(_temp$childNodes = temp.childNodes).splice.apply(_temp$childNodes, [0, 0].concat(nodes));
|
|
40811
40848
|
|
|
40812
|
-
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof
|
|
40849
|
+
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j) {
|
|
40813
40850
|
temp._childNodes2.splice(1, 1);
|
|
40814
40851
|
|
|
40815
40852
|
temp._childNodes2.splice(1, 0, temp.childNodes[1]);
|
|
@@ -40829,16 +40866,16 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40829
40866
|
var sChildNode = temp.childNodes[0];
|
|
40830
40867
|
var eChildNode = temp.childNodes[temp.childNodes.length - 1];
|
|
40831
40868
|
|
|
40832
|
-
if (!(sChildNode instanceof
|
|
40869
|
+
if (!(sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j) || sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j && sChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtStart */ .q.mtStart) {
|
|
40833
40870
|
throw new Error("经检测,病历元素“" + temp.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
|
|
40834
40871
|
}
|
|
40835
40872
|
|
|
40836
|
-
if (!(eChildNode instanceof
|
|
40873
|
+
if (!(eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j) || eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j && eChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtEnd */ .q.mtEnd) {
|
|
40837
40874
|
throw new Error("经检测,病历元素“" + temp.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
|
|
40838
40875
|
}
|
|
40839
40876
|
}
|
|
40840
40877
|
|
|
40841
|
-
if (temp.childNodes[1] instanceof
|
|
40878
|
+
if (temp.childNodes[1] instanceof _TableFormula__WEBPACK_IMPORTED_MODULE_50__/* .TableFormula */ .N) {
|
|
40842
40879
|
return temp;
|
|
40843
40880
|
}
|
|
40844
40881
|
|
|
@@ -40873,11 +40910,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40873
40910
|
|
|
40874
40911
|
for (var i = 0; i < lineArr.length; i++) {
|
|
40875
40912
|
var lineText = lineArr[i];
|
|
40876
|
-
var textNode = new
|
|
40913
|
+
var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntText */ .Jq.ntText, lineText, styleIndex);
|
|
40877
40914
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
|
|
40878
40915
|
|
|
40879
40916
|
if (i < lineArr.length - 1) {
|
|
40880
|
-
var paraNode = new
|
|
40917
|
+
var paraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
40881
40918
|
paraNode.styleIndex = styleIndex;
|
|
40882
40919
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paraNode);
|
|
40883
40920
|
}
|
|
@@ -40929,17 +40966,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40929
40966
|
textArr = textStr.split("\n");
|
|
40930
40967
|
}
|
|
40931
40968
|
|
|
40932
|
-
var textNode1 = new
|
|
40969
|
+
var textNode1 = new _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntText */ .Jq.ntText, textArr[0], styleIndex);
|
|
40933
40970
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
|
|
40934
40971
|
|
|
40935
40972
|
if (textArr.length > 1) {
|
|
40936
40973
|
for (var _i2 = 1; _i2 < textArr.length; _i2++) {
|
|
40937
|
-
var paragraNode = new
|
|
40974
|
+
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
40938
40975
|
paragraNode.styleIndex = styleIndex;
|
|
40939
40976
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paragraNode);
|
|
40940
40977
|
|
|
40941
40978
|
if (textArr[_i2] !== "") {
|
|
40942
|
-
var _textNode = new
|
|
40979
|
+
var _textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntText */ .Jq.ntText, textArr[_i2], styleIndex);
|
|
40943
40980
|
|
|
40944
40981
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode);
|
|
40945
40982
|
}
|
|
@@ -40958,7 +40995,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40958
40995
|
var eIndex = expressArr[_i3].eIndex;
|
|
40959
40996
|
var expressJson = temp.text.substring(sIndex + 16, eIndex);
|
|
40960
40997
|
var expressObj = JSON.parse(expressJson);
|
|
40961
|
-
var expressStyle =
|
|
40998
|
+
var expressStyle = _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_44__/* .ExpressStyle */ .e[expressObj.expressStyle];
|
|
40962
40999
|
|
|
40963
41000
|
if (!expressStyle) {
|
|
40964
41001
|
expressStyle = expressObj.expressStyle;
|
|
@@ -40968,18 +41005,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40968
41005
|
|
|
40969
41006
|
if (expressStyle.includes("style")) {
|
|
40970
41007
|
//经期史
|
|
40971
|
-
medicalExpressNode = new
|
|
41008
|
+
medicalExpressNode = new _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_44__/* .MenstrualHistoryNode */ .n(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressStyle, expressObj.menseDays, expressObj.cycleDays, expressObj.menarcheAge, expressObj.menoPauseAge);
|
|
40972
41009
|
} else {
|
|
40973
41010
|
if (expressStyle === "PupilMapNode") {
|
|
40974
|
-
medicalExpressNode = new
|
|
41011
|
+
medicalExpressNode = new _PupilMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PupilMapNode */ .v(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7);
|
|
40975
41012
|
} else if (expressStyle === "LightLocationMapNode") {
|
|
40976
|
-
medicalExpressNode = new
|
|
41013
|
+
medicalExpressNode = new _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_41__/* .LightLocationMapNode */ .D(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7, expressObj.value8, expressObj.value9);
|
|
40977
41014
|
} else if (expressStyle === "FetalHeartMapNode") {
|
|
40978
|
-
medicalExpressNode = new
|
|
41015
|
+
medicalExpressNode = new _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_40__/* .FetalHeartMapNode */ .t(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6);
|
|
40979
41016
|
} else if (expressStyle === "PermanentTeethMapNode") {
|
|
40980
|
-
medicalExpressNode = new
|
|
41017
|
+
medicalExpressNode = new _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_46__/* .PermanentTeethMapNode */ .f(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
|
|
40981
41018
|
} else {
|
|
40982
|
-
medicalExpressNode = new
|
|
41019
|
+
medicalExpressNode = new _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_47__/* .PrimaryTeethMapNode */ .x(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
|
|
40983
41020
|
}
|
|
40984
41021
|
}
|
|
40985
41022
|
|
|
@@ -41007,8 +41044,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
41007
41044
|
} else {
|
|
41008
41045
|
temp._childNodes2.splice(1, temp._childNodes2.length - 2);
|
|
41009
41046
|
|
|
41010
|
-
var markNode = new
|
|
41011
|
-
styleIndex,
|
|
41047
|
+
var markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntText */ .Jq.ntText, temp.labelText, //hoEditorFactory.docTree.curStyleIndex,
|
|
41048
|
+
styleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtContent */ .q.mtContent);
|
|
41012
41049
|
|
|
41013
41050
|
temp._childNodes.splice(1, 0, markNode);
|
|
41014
41051
|
|
|
@@ -63056,6 +63093,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63056
63093
|
end: ""
|
|
63057
63094
|
};
|
|
63058
63095
|
this._pnode = null;
|
|
63096
|
+
this._isError = false;
|
|
63059
63097
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
63060
63098
|
this._startPath = startPath;
|
|
63061
63099
|
this._endPath = endPath;
|
|
@@ -63536,27 +63574,28 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63536
63574
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
63537
63575
|
|
|
63538
63576
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psReview */ .Dh.psReview)) {
|
|
63539
|
-
_context.next =
|
|
63577
|
+
_context.next = 11;
|
|
63540
63578
|
break;
|
|
63541
63579
|
}
|
|
63542
63580
|
|
|
63543
63581
|
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R)) {
|
|
63544
|
-
_context.next =
|
|
63582
|
+
_context.next = 11;
|
|
63545
63583
|
break;
|
|
63546
63584
|
}
|
|
63547
63585
|
|
|
63548
63586
|
textStyle = hoEditorFactory.docTree.styles[currRange.npEnd.node.styleIndex];
|
|
63549
63587
|
|
|
63550
63588
|
if (!(textStyle.strikeout && currRange.npEnd.node.text.length > 0)) {
|
|
63551
|
-
_context.next =
|
|
63589
|
+
_context.next = 11;
|
|
63552
63590
|
break;
|
|
63553
63591
|
}
|
|
63554
63592
|
|
|
63555
63593
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("该内容当前已处于删除状态!");
|
|
63556
63594
|
|
|
63595
|
+
this._isError = true;
|
|
63557
63596
|
return _context.abrupt("return");
|
|
63558
63597
|
|
|
63559
|
-
case
|
|
63598
|
+
case 11:
|
|
63560
63599
|
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
|
|
63561
63600
|
// if (npFirst && npFirst.node) {
|
|
63562
63601
|
// //const parentNode = hoEditorFactory.docTree.getParentNode(this._startPath);
|
|
@@ -63569,41 +63608,42 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63569
63608
|
//if(nodes.length == 0) return;
|
|
63570
63609
|
|
|
63571
63610
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
63572
|
-
_context.next =
|
|
63611
|
+
_context.next = 38;
|
|
63573
63612
|
break;
|
|
63574
63613
|
}
|
|
63575
63614
|
|
|
63576
63615
|
n = 0;
|
|
63577
63616
|
|
|
63578
|
-
case
|
|
63617
|
+
case 14:
|
|
63579
63618
|
if (!(n < nodes.length)) {
|
|
63580
|
-
_context.next =
|
|
63619
|
+
_context.next = 38;
|
|
63581
63620
|
break;
|
|
63582
63621
|
}
|
|
63583
63622
|
|
|
63584
63623
|
node = nodes[n];
|
|
63585
63624
|
|
|
63586
63625
|
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete)) {
|
|
63587
|
-
_context.next =
|
|
63626
|
+
_context.next = 20;
|
|
63588
63627
|
break;
|
|
63589
63628
|
}
|
|
63590
63629
|
|
|
63591
63630
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
|
|
63592
63631
|
|
|
63593
|
-
|
|
63632
|
+
this._isError = true;
|
|
63633
|
+
return _context.abrupt("return");
|
|
63594
63634
|
|
|
63595
|
-
case
|
|
63635
|
+
case 20:
|
|
63596
63636
|
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
63597
63637
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
63598
63638
|
}
|
|
63599
63639
|
|
|
63600
63640
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
|
|
63601
|
-
_context.next =
|
|
63641
|
+
_context.next = 31;
|
|
63602
63642
|
break;
|
|
63603
63643
|
}
|
|
63604
63644
|
|
|
63605
63645
|
if (node.isAllowDelete) {
|
|
63606
|
-
_context.next =
|
|
63646
|
+
_context.next = 31;
|
|
63607
63647
|
break;
|
|
63608
63648
|
}
|
|
63609
63649
|
|
|
@@ -63627,28 +63667,30 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63627
63667
|
|
|
63628
63668
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
|
|
63629
63669
|
|
|
63630
|
-
|
|
63670
|
+
this._isError = true;
|
|
63671
|
+
return _context.abrupt("return");
|
|
63631
63672
|
|
|
63632
|
-
case
|
|
63673
|
+
case 31:
|
|
63633
63674
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
63634
|
-
_context.next =
|
|
63675
|
+
_context.next = 35;
|
|
63635
63676
|
break;
|
|
63636
63677
|
}
|
|
63637
63678
|
|
|
63638
63679
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("该签名元素不允许删除!", "系统提示");
|
|
63639
63680
|
|
|
63640
|
-
|
|
63681
|
+
this._isError = true;
|
|
63682
|
+
return _context.abrupt("return");
|
|
63641
63683
|
|
|
63642
|
-
case
|
|
63684
|
+
case 35:
|
|
63643
63685
|
n++;
|
|
63644
|
-
_context.next =
|
|
63686
|
+
_context.next = 14;
|
|
63645
63687
|
break;
|
|
63646
63688
|
|
|
63647
|
-
case
|
|
63689
|
+
case 38:
|
|
63648
63690
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
63649
63691
|
|
|
63650
63692
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
63651
|
-
_context.next =
|
|
63693
|
+
_context.next = 44;
|
|
63652
63694
|
break;
|
|
63653
63695
|
}
|
|
63654
63696
|
|
|
@@ -63661,24 +63703,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63661
63703
|
});
|
|
63662
63704
|
|
|
63663
63705
|
if (_res[0]) {
|
|
63664
|
-
_context.next =
|
|
63706
|
+
_context.next = 44;
|
|
63665
63707
|
break;
|
|
63666
63708
|
}
|
|
63667
63709
|
|
|
63668
63710
|
return _context.abrupt("return");
|
|
63669
63711
|
|
|
63670
|
-
case
|
|
63712
|
+
case 44:
|
|
63671
63713
|
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
63672
63714
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
63673
63715
|
|
|
63674
63716
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
63675
|
-
_context.next =
|
|
63717
|
+
_context.next = 47;
|
|
63676
63718
|
break;
|
|
63677
63719
|
}
|
|
63678
63720
|
|
|
63679
63721
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
63680
63722
|
|
|
63681
|
-
case
|
|
63723
|
+
case 47:
|
|
63682
63724
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
63683
63725
|
// this._hoEditorFactory,
|
|
63684
63726
|
// currRange.startPath,
|
|
@@ -63691,33 +63733,33 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63691
63733
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
63692
63734
|
|
|
63693
63735
|
if (!(res == 1)) {
|
|
63694
|
-
_context.next =
|
|
63736
|
+
_context.next = 59;
|
|
63695
63737
|
break;
|
|
63696
63738
|
}
|
|
63697
63739
|
|
|
63698
63740
|
changeEvent.beforeChangePath = startPath;
|
|
63699
63741
|
changeEvent.afterChangePath = this._tmp.start;
|
|
63700
|
-
_context.next =
|
|
63742
|
+
_context.next = 57;
|
|
63701
63743
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
63702
63744
|
|
|
63703
|
-
case
|
|
63745
|
+
case 57:
|
|
63704
63746
|
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
63705
63747
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
63706
63748
|
|
|
63707
|
-
case
|
|
63749
|
+
case 59:
|
|
63708
63750
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
63709
63751
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
63710
63752
|
aNode = currRange.npStart.node;
|
|
63711
63753
|
|
|
63712
63754
|
if (!(aNode && pnode)) {
|
|
63713
|
-
_context.next =
|
|
63755
|
+
_context.next = 65;
|
|
63714
63756
|
break;
|
|
63715
63757
|
}
|
|
63716
63758
|
|
|
63717
|
-
_context.next =
|
|
63759
|
+
_context.next = 65;
|
|
63718
63760
|
return this.ParentRepaint(pnode);
|
|
63719
63761
|
|
|
63720
|
-
case
|
|
63762
|
+
case 65:
|
|
63721
63763
|
case "end":
|
|
63722
63764
|
return _context.stop();
|
|
63723
63765
|
}
|
|
@@ -63762,6 +63804,11 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63762
63804
|
get: function get() {
|
|
63763
63805
|
return this._affectText;
|
|
63764
63806
|
}
|
|
63807
|
+
}, {
|
|
63808
|
+
key: "isError",
|
|
63809
|
+
get: function get() {
|
|
63810
|
+
return this._isError;
|
|
63811
|
+
}
|
|
63765
63812
|
}]);
|
|
63766
63813
|
|
|
63767
63814
|
return NodesDeleteUndoUnit;
|
|
@@ -200637,61 +200684,14 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200637
200684
|
function DrawSelectLevel(hoEditorFactoryID, pageIndex, selectCanvas, docIndex, drawPageIndex) {
|
|
200638
200685
|
(0,classCallCheck/* default */.Z)(this, DrawSelectLevel);
|
|
200639
200686
|
|
|
200687
|
+
this._scrollYList = [];
|
|
200640
200688
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
200641
|
-
this._selectCanvas = selectCanvas;
|
|
200642
|
-
|
|
200689
|
+
this._selectCanvas = selectCanvas;
|
|
200643
200690
|
this._pageIndex = pageIndex;
|
|
200644
200691
|
this._docIndex = docIndex;
|
|
200645
200692
|
this._drawPageIndex = drawPageIndex;
|
|
200646
|
-
this._selectStage = null;
|
|
200647
|
-
|
|
200648
|
-
// this._selectStage = new createjs.StageGL(selectCanvas, {
|
|
200649
|
-
// transparent: true,
|
|
200650
|
-
// });
|
|
200651
|
-
// } else {
|
|
200652
|
-
// this._selectStage = new createjs.Stage(selectCanvas);
|
|
200653
|
-
// }
|
|
200654
|
-
// (this._domStage as any).setClearColor("#ffffff");
|
|
200655
|
-
// this._selectStage.enableMouseOver(1);
|
|
200656
|
-
// this._mainContainer = new createjs.Container();
|
|
200657
|
-
|
|
200658
|
-
this._mouseDownCount = 0; // this.mainBackGround = new createjs.Shape();
|
|
200659
|
-
// this.mainBackGround.x = 0;
|
|
200660
|
-
// this.mainBackGround.y = 0;
|
|
200661
|
-
// this.mainBackGround.alpha = 0.01;
|
|
200662
|
-
// this.mainBackGround.setBounds(
|
|
200663
|
-
// 0,
|
|
200664
|
-
// 0,
|
|
200665
|
-
// hoeditorfactory.pageProperty.widthPixes,
|
|
200666
|
-
// hoeditorfactory.pageProperty.heightPixes
|
|
200667
|
-
// );
|
|
200668
|
-
// const rect = this.mainBackGround.getBounds();
|
|
200669
|
-
// this.mainBackGround.graphics
|
|
200670
|
-
// .beginFill("blue")
|
|
200671
|
-
// .rect(rect.x, rect.y, rect.width, rect.height);
|
|
200672
|
-
// this._selectStage.addChild(this.mainBackGround);
|
|
200673
|
-
// this.mainBackGround.addEventListener("mousedown", (aevent: any) => {
|
|
200674
|
-
// this.mouseDown(aevent)
|
|
200675
|
-
// );
|
|
200676
|
-
// this.mainBackGround.addEventListener("dblclick", (aevent: any) => {
|
|
200677
|
-
// this.mouseDblClick(aevent);
|
|
200678
|
-
// });
|
|
200679
|
-
|
|
200680
|
-
/* case PaintState.psPreview: {
|
|
200681
|
-
break;
|
|
200682
|
-
}
|
|
200683
|
-
case PaintState.psPrint: {
|
|
200684
|
-
break;
|
|
200685
|
-
} default: {
|
|
200686
|
-
//this.mouseClick(aevent);
|
|
200687
|
-
break;
|
|
200688
|
-
}
|
|
200689
|
-
}
|
|
200690
|
-
});*/
|
|
200691
|
-
// this.mainBackGround.addEventListener("click", (aevent: any) => {
|
|
200692
|
-
// this.mouseClick(aevent);
|
|
200693
|
-
// });
|
|
200694
|
-
|
|
200693
|
+
this._selectStage = null;
|
|
200694
|
+
this._mouseDownCount = 0;
|
|
200695
200695
|
this._oldRange = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange;
|
|
200696
200696
|
this._shapesColor = new Map();
|
|
200697
200697
|
}
|
|
@@ -200715,21 +200715,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200715
200715
|
if ((_dPage$drawDomLevel = dPage.drawDomLevel) !== null && _dPage$drawDomLevel !== void 0 && _dPage$drawDomLevel.stage) this._selectStage.nextStage = (_dPage$drawDomLevel2 = dPage.drawDomLevel) === null || _dPage$drawDomLevel2 === void 0 ? void 0 : _dPage$drawDomLevel2.stage;
|
|
200716
200716
|
dPage.setEnableMouseOver(5);
|
|
200717
200717
|
|
|
200718
|
-
this._selectStage.addChild(dPage.selectContainer);
|
|
200719
|
-
// if (len > 1) {
|
|
200720
|
-
// if (this._docIndex === 0) {
|
|
200721
|
-
// if (this._drawPageIndex === 0) {
|
|
200722
|
-
// this._selectStage.addChild(dPage.headerLeftTag);
|
|
200723
|
-
// this._selectStage.addChild(dPage.headerRightTag);
|
|
200724
|
-
// }
|
|
200725
|
-
// } else if (this._docIndex === len - 1) {
|
|
200726
|
-
// if (this._drawPageIndex === hoEditorFactory.drawTree.drawPages.length - 1) {
|
|
200727
|
-
// this._selectStage.addChild(dPage.footerLeftTag);
|
|
200728
|
-
// this._selectStage.addChild(dPage.footerRightTag);
|
|
200729
|
-
// }
|
|
200730
|
-
// }
|
|
200731
|
-
// } else {
|
|
200732
|
-
|
|
200718
|
+
this._selectStage.addChild(dPage.selectContainer);
|
|
200733
200719
|
|
|
200734
200720
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview) {
|
|
200735
200721
|
this._selectStage.addChild(dPage.headerLeftTag);
|
|
@@ -200739,11 +200725,9 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200739
200725
|
this._selectStage.addChild(dPage.footerLeftTag);
|
|
200740
200726
|
|
|
200741
200727
|
this._selectStage.addChild(dPage.footerRightTag);
|
|
200742
|
-
}
|
|
200743
|
-
|
|
200728
|
+
}
|
|
200744
200729
|
|
|
200745
200730
|
this._selectStage.addEventListener('stagemousedown', function (aevent) {
|
|
200746
|
-
// this.mouseDown(aevent)
|
|
200747
200731
|
switch (hoEditorFactory.drawTree.paintStatus) {
|
|
200748
200732
|
case DrawTree/* PaintState.psPreview */.Dh.psPreview:
|
|
200749
200733
|
{
|
|
@@ -200767,7 +200751,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200767
200751
|
});
|
|
200768
200752
|
|
|
200769
200753
|
this._selectStage.addEventListener('stagemouseup', function (aevent) {
|
|
200770
|
-
// this.mouseup(aevent);
|
|
200771
200754
|
switch (hoEditorFactory.drawTree.paintStatus) {
|
|
200772
200755
|
case DrawTree/* PaintState.psPreview */.Dh.psPreview:
|
|
200773
200756
|
{
|
|
@@ -200813,10 +200796,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200813
200796
|
}
|
|
200814
200797
|
});
|
|
200815
200798
|
|
|
200816
|
-
this._selectStage.update();
|
|
200817
|
-
// context?.clearRect(0, 0, this._selectCanvas.width, this._selectCanvas.height);
|
|
200818
|
-
// this._selectCanvas.width = 0.01 + this._selectCanvas.width;
|
|
200819
|
-
|
|
200799
|
+
this._selectStage.update();
|
|
200820
200800
|
}
|
|
200821
200801
|
}
|
|
200822
200802
|
}, {
|
|
@@ -200831,13 +200811,10 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200831
200811
|
|
|
200832
200812
|
this._selectStage.removeAllChildren();
|
|
200833
200813
|
|
|
200834
|
-
this._selectStage.canvas = null;
|
|
200835
|
-
|
|
200814
|
+
this._selectStage.canvas = null;
|
|
200836
200815
|
this._selectStage = null;
|
|
200837
200816
|
this._selectCanvas.width = 0;
|
|
200838
|
-
this._selectCanvas.height = 0;
|
|
200839
|
-
// ctx?.clearRect(0, 0, this._selectCanvas.width, this._selectCanvas.height);
|
|
200840
|
-
// ctx?.restore();
|
|
200817
|
+
this._selectCanvas.height = 0;
|
|
200841
200818
|
}
|
|
200842
200819
|
}
|
|
200843
200820
|
}, {
|
|
@@ -200990,15 +200967,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200990
200967
|
return _context.abrupt("return", true);
|
|
200991
200968
|
|
|
200992
200969
|
case 28:
|
|
200993
|
-
// let dline = targetArea.topDline;
|
|
200994
|
-
// if (dline instanceof DrawPageTable) {
|
|
200995
|
-
// dline = (dline as DrawPageTable).table.drawTable.getFirstDrawLine();
|
|
200996
|
-
// }
|
|
200997
|
-
// hoeditorfactory.drawTree.moveCaretToDitem(
|
|
200998
|
-
// startPos.page,
|
|
200999
|
-
// dline as DrawLine,
|
|
201000
|
-
// targetArea.drawItems.length - 1
|
|
201001
|
-
// ); // startPos.path);
|
|
201002
200970
|
hoEditorFactory.drawTree.moveCaretToPath(startPos.path);
|
|
201003
200971
|
return _context.abrupt("return", true);
|
|
201004
200972
|
|
|
@@ -201122,58 +201090,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201122
201090
|
}
|
|
201123
201091
|
|
|
201124
201092
|
return mouseDblClick;
|
|
201125
|
-
}()
|
|
201126
|
-
// if (aevent.currentTarget === this.stage) {
|
|
201127
|
-
// hoeditorfactory.drawTree.selectRange.clearAllSelectShape();
|
|
201128
|
-
// hoeditorfactory.drawTree.selectRange.beginRangeSelect = false;
|
|
201129
|
-
// if (
|
|
201130
|
-
// hoeditorfactory.drawTree.activePage?.drawDomLevel?.activeDrawRect.rootPath.startsWith(
|
|
201131
|
-
// gMainPath
|
|
201132
|
-
// )
|
|
201133
|
-
// ) {
|
|
201134
|
-
// hoeditorfactory.drawTree.activePage = this._drawPage;
|
|
201135
|
-
// }
|
|
201136
|
-
// this._oldRange = hoeditorfactory.docTree.curDomRange.clone();
|
|
201137
|
-
// if (!this._drawPage.drawDomLevel) {
|
|
201138
|
-
// return false;
|
|
201139
|
-
// }
|
|
201140
|
-
// const startPos = hoeditorfactory.drawTree.getStagePosition(
|
|
201141
|
-
// this._drawPage,
|
|
201142
|
-
// this._drawPage.drawDomLevel.activeDrawRect,
|
|
201143
|
-
// aevent.stageX,
|
|
201144
|
-
// aevent.stageY
|
|
201145
|
-
// );
|
|
201146
|
-
// if (startPos) {
|
|
201147
|
-
// const np = hoeditorfactory.docTree.findNodePositionByPath(startPos.path);
|
|
201148
|
-
// if (np && np.node) {
|
|
201149
|
-
// //鼠标左键单击
|
|
201150
|
-
// if (
|
|
201151
|
-
// np.node instanceof ImageNode &&
|
|
201152
|
-
// aevent.nativeEvent.button === 0
|
|
201153
|
-
// ) {
|
|
201154
|
-
// const bclickItem = hoeditorfactory.drawTree.getChildByPos(
|
|
201155
|
-
// this._drawPage,
|
|
201156
|
-
// this._drawPage.drawDomLevel.activeDrawRect,
|
|
201157
|
-
// aevent.stageX,
|
|
201158
|
-
// aevent.stageY
|
|
201159
|
-
// )[1];
|
|
201160
|
-
// if (bclickItem) {
|
|
201161
|
-
// const nodeClickEvent = new NodeClickEvent(np.node, "click");
|
|
201162
|
-
// hoeditorfactory.docTree.nodeClick(nodeClickEvent);
|
|
201163
|
-
// }
|
|
201164
|
-
// }
|
|
201165
|
-
// return true;
|
|
201166
|
-
// }
|
|
201167
|
-
// const selchange = new SelectionChangeEvent(
|
|
201168
|
-
// this._oldRange,
|
|
201169
|
-
// hoeditorfactory.docTree.curDomRange
|
|
201170
|
-
// );
|
|
201171
|
-
// hoeditorfactory.docTree.selectChange(selchange);
|
|
201172
|
-
// }
|
|
201173
|
-
// }
|
|
201174
|
-
// return true;
|
|
201175
|
-
// }
|
|
201176
|
-
|
|
201093
|
+
}()
|
|
201177
201094
|
}, {
|
|
201178
201095
|
key: "mouseDownHandle",
|
|
201179
201096
|
value: function mouseDownHandle(aevent) {
|
|
@@ -201330,7 +201247,8 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201330
201247
|
|
|
201331
201248
|
if (hoeditorfactory.drawTree.inViewPages.indexOf(this._pageIndex) < 0) {
|
|
201332
201249
|
hoeditorfactory.drawTree.inViewPages.push(this._pageIndex);
|
|
201333
|
-
}
|
|
201250
|
+
} // this._scrollYList.push(aevent.stageY);
|
|
201251
|
+
|
|
201334
201252
|
|
|
201335
201253
|
if (hoeditorfactory.drawTree.selectRange.beginRangeSelect && (parseInt(aevent.nativeEvent.buttons) && 1) === 1) {
|
|
201336
201254
|
var _hoeditorfactory$draw2;
|
|
@@ -201357,36 +201275,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201357
201275
|
hoeditorfactory.drawTree.selectRange.spEnd = endPos;
|
|
201358
201276
|
hoeditorfactory.drawTree.drawSelectRange();
|
|
201359
201277
|
}
|
|
201360
|
-
}
|
|
201361
|
-
// hoeditorfactory.drawTree.selectRange.beginRangeSelect = false;
|
|
201362
|
-
// const np = hoeditorfactory.docTree.findNodePositionByPath(endPos.path);
|
|
201363
|
-
// if (np && np.node) {
|
|
201364
|
-
// const bclickItem = hoeditorfactory.drawTree.getChildByPos(
|
|
201365
|
-
// this._drawPage,
|
|
201366
|
-
// this._drawPage.drawDomLevel.activeDrawRect,
|
|
201367
|
-
// aevent.stageX,
|
|
201368
|
-
// aevent.stageY
|
|
201369
|
-
// )[1];
|
|
201370
|
-
// if (bclickItem) {
|
|
201371
|
-
// const nodeNeedModifyEvent = new NodeNeedModifyEvent(
|
|
201372
|
-
// np.node as BaseNode,
|
|
201373
|
-
// "move",
|
|
201374
|
-
// this._drawPage.pageIndex,
|
|
201375
|
-
// true
|
|
201376
|
-
// );
|
|
201377
|
-
// hoeditorfactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
201378
|
-
// } else {
|
|
201379
|
-
// const nodeNeedModifyEvent = new NodeNeedModifyEvent(
|
|
201380
|
-
// np.node,
|
|
201381
|
-
// "",
|
|
201382
|
-
// this._drawPage.pageIndex,
|
|
201383
|
-
// false
|
|
201384
|
-
// );
|
|
201385
|
-
// hoeditorfactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
201386
|
-
// }
|
|
201387
|
-
// }
|
|
201388
|
-
// }
|
|
201389
|
-
|
|
201278
|
+
}
|
|
201390
201279
|
} //return true;
|
|
201391
201280
|
|
|
201392
201281
|
}, {
|
|
@@ -201395,6 +201284,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201395
201284
|
var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
201396
201285
|
|
|
201397
201286
|
if (hoeditorfactory.drawTree.selectRange) {
|
|
201287
|
+
this._scrollYList = [];
|
|
201398
201288
|
var startPos = hoeditorfactory.drawTree.selectRange.spStart;
|
|
201399
201289
|
var endPos = hoeditorfactory.drawTree.selectRange.spEnd;
|
|
201400
201290
|
|
|
@@ -201404,12 +201294,9 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201404
201294
|
|
|
201405
201295
|
if (endPos.index === -1) {
|
|
201406
201296
|
hoeditorfactory.drawTree.moveCaretToDitem(startPos.page, startPos.dline, startPos.index);
|
|
201407
|
-
} else
|
|
201408
|
-
|
|
201409
|
-
|
|
201410
|
-
// startPos.index
|
|
201411
|
-
// );
|
|
201412
|
-
|
|
201297
|
+
} else {
|
|
201298
|
+
hoeditorfactory.drawTree.moveCaretToPath(startPos.path);
|
|
201299
|
+
}
|
|
201413
201300
|
} else {
|
|
201414
201301
|
if (hoeditorfactory.drawTree.activePage) hoeditorfactory.drawTree.moveEditTo(hoeditorfactory.drawTree.activePage.pageIndex, 0, 0);
|
|
201415
201302
|
|
|
@@ -207612,7 +207499,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207612
207499
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207613
207500
|
var ParagraphNode = __webpack_require__(14208);
|
|
207614
207501
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207615
|
-
/* harmony default export */ var version = ('2.0.
|
|
207502
|
+
/* harmony default export */ var version = ('2.0.80');
|
|
207616
207503
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
|
|
207617
207504
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
|
|
207618
207505
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -212840,7 +212727,11 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212840
212727
|
nodeJson = _this.delStyle(node.node2Json());
|
|
212841
212728
|
}
|
|
212842
212729
|
} else {
|
|
212843
|
-
|
|
212730
|
+
if (node instanceof DateTimeNode/* DateTimeNode */.Z && clearSign) {
|
|
212731
|
+
nodeJson = _this.delStyle(node.node2Json(undefined, undefined, undefined, clearSign));
|
|
212732
|
+
} else {
|
|
212733
|
+
nodeJson = _this.delStyle(node.node2Json());
|
|
212734
|
+
}
|
|
212844
212735
|
}
|
|
212845
212736
|
}
|
|
212846
212737
|
}
|
|
@@ -222595,6 +222486,9 @@ var EditController = /*#__PURE__*/function () {
|
|
|
222595
222486
|
// });
|
|
222596
222487
|
// }
|
|
222597
222488
|
// const rtfData = clipboardData.getData("text/rtf");
|
|
222489
|
+
// console.log("json:", jsonData);
|
|
222490
|
+
// console.log("html:", htmlData);
|
|
222491
|
+
// console.log("text:", textData);
|
|
222598
222492
|
|
|
222599
222493
|
|
|
222600
222494
|
var nodes;
|
|
@@ -222650,8 +222544,12 @@ var EditController = /*#__PURE__*/function () {
|
|
|
222650
222544
|
var toCell = parentNode.table.rows[rs + i][cs + j];
|
|
222651
222545
|
|
|
222652
222546
|
if (fromCell && toCell) {
|
|
222547
|
+
// const [fr, fc] = fromCell.table.getCellInfos(fromCell);
|
|
222548
|
+
// const [tr, tc] = toCell.table.getCellInfos(toCell);
|
|
222549
|
+
// console.log("fr,fc:", fr, fc);
|
|
222550
|
+
// console.log("tr,tc:", tr, tc);
|
|
222653
222551
|
var sCellText = fromCell.getCellText();
|
|
222654
|
-
toCell.setCellText(sCellText);
|
|
222552
|
+
toCell.setCellText(sCellText, true);
|
|
222655
222553
|
}
|
|
222656
222554
|
}
|
|
222657
222555
|
}
|
|
@@ -227661,9 +227559,9 @@ var QrCode_component = normalizeComponent(
|
|
|
227661
227559
|
;// CONCATENATED MODULE: ./src/components/controls/qrCode/index.ts
|
|
227662
227560
|
|
|
227663
227561
|
/* harmony default export */ var qrCode = (QrCode);
|
|
227664
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
227665
|
-
var
|
|
227666
|
-
var
|
|
227562
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=016d4c86&
|
|
227563
|
+
var TextDialogvue_type_template_id_016d4c86_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("文本域")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('tabs',{attrs:{"tabKey":_vm.textActiveName}},[_c('tab-pane',{attrs:{"label":"基本属性","notHover":false,"name":"first"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("类型")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":0},model:{value:(_vm.textParam.inputFieldType),callback:function ($$v) {_vm.$set(_vm.textParam, "inputFieldType", $$v)},expression:"textParam.inputFieldType"}},[_vm._v("直接输入文本数据")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":1},model:{value:(_vm.textParam.inputFieldType),callback:function ($$v) {_vm.$set(_vm.textParam, "inputFieldType", $$v)},expression:"textParam.inputFieldType"}},[_vm._v("下拉列表方式")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.textParam.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.textParam.innerIdentifier),callback:function ($$v) {_vm.$set(_vm.textParam, "innerIdentifier", $$v)},expression:"textParam.innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.textParam.dataMetaIdentifier),callback:function ($$v) {_vm.$set(_vm.textParam, "dataMetaIdentifier", $$v)},expression:"textParam.dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.textParam.identifierFormat),callback:function ($$v) {_vm.$set(_vm.textParam, "identifierFormat", $$v)},expression:"textParam.identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"size":"mini","placeholder":"名称"},model:{value:(_vm.textParam.name),callback:function ($$v) {_vm.$set(_vm.textParam, "name", $$v)},expression:"textParam.name"}})],1),_c('li',{staticClass:"line"}),(_vm.textParam.inputFieldType === 0)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("文本内容")]),_c('el-input',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"mini","placeholder":"文本内容"},model:{value:(_vm.textParam.text),callback:function ($$v) {_vm.$set(_vm.textParam, "text", $$v)},expression:"textParam.text"}})],1):_vm._e(),(_vm.textParam.inputFieldType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("下拉列表")]),_c('el-input',{attrs:{"size":"mini","disabled":true,"placeholder":"下拉列表项"},model:{value:(_vm.textParam.downListProperty.source),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "source", $$v)},expression:"textParam.downListProperty.source"}}),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.openListArrModel.apply(null, arguments)}}},[_vm._v("浏览")])],1):_vm._e(),(_vm.textParam.inputFieldType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("是否多选")]),_c('div',{staticStyle:{"width":"40%"}},[_c('el-checkbox',{on:{"change":_vm.allowMultiSelectChange},model:{value:(_vm.textParam.downListProperty.allowMultiSelected),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "allowMultiSelected", $$v)},expression:"textParam.downListProperty.allowMultiSelected"}},[_vm._v("允许多选")]),_c('el-checkbox',{model:{value:(_vm.textParam.downListProperty.mutexSelect),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "mutexSelect", $$v)},expression:"textParam.downListProperty.mutexSelect"}},[_vm._v("选项互斥")])],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"60px"}},[_vm._v("分隔符")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"分隔符","size":"mini"},model:{value:(_vm.textParam.downListProperty.splitCharacter),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "splitCharacter", $$v)},expression:"textParam.downListProperty.splitCharacter"}},[_c('el-option',{attrs:{"label":",","value":","}}),_c('el-option',{attrs:{"label":";","value":";"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"-","value":"-"}}),_c('el-option',{attrs:{"label":"\\","value":"\\"}})],1)],1)]):_vm._e(),_c('li',{staticClass:"line"}),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"type":"textarea","size":"mini","placeholder":"提示文本"},model:{value:(_vm.textParam.tipText),callback:function ($$v) {_vm.$set(_vm.textParam, "tipText", $$v)},expression:"textParam.tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内容只读状态")]),_c('el-select',{staticStyle:{"text-align":"left"},attrs:{"placeholder":"请选择","size":"mini"},model:{value:(_vm.textParam.readOnlyStatus),callback:function ($$v) {_vm.$set(_vm.textParam, "readOnlyStatus", $$v)},expression:"textParam.readOnlyStatus"}},[_c('el-option',{attrs:{"label":"继承父元素","value":2}}),_c('el-option',{attrs:{"label":"是","value":0}}),_c('el-option',{attrs:{"label":"否","value":1}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("固定宽度")]),_c('el-input-number',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini","precision":2,"min":0,"controls":false},model:{value:(_vm.textParam.fixedWidth),callback:function ($$v) {_vm.$set(_vm.textParam, "fixedWidth", $$v)},expression:"textParam.fixedWidth"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("厘米")])],1),_c('li',{staticClass:"line"}),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.canModifyContent),callback:function ($$v) {_vm.$set(_vm.textParam, "canModifyContent", $$v)},expression:"textParam.canModifyContent"}},[_vm._v("用户可以直接编辑修改内容")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.isAllowDelete),callback:function ($$v) {_vm.$set(_vm.textParam, "isAllowDelete", $$v)},expression:"textParam.isAllowDelete"}},[_vm._v("允许被删除")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.enableGlobalColor),callback:function ($$v) {_vm.$set(_vm.textParam, "enableGlobalColor", $$v)},expression:"textParam.enableGlobalColor"}},[_vm._v("启用全局文本颜色")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.alignWithBlocked),callback:function ($$v) {_vm.$set(_vm.textParam, "alignWithBlocked", $$v)},expression:"textParam.alignWithBlocked"}},[_vm._v("文本域中的段落使用块对齐(诊断专用)")])],1),_c('div',{staticClass:"control-item",staticStyle:{"margin-left":"38px"}},[_c('el-checkbox',{model:{value:(_vm.textParam.readType),callback:function ($$v) {_vm.$set(_vm.textParam, "readType", $$v)},expression:"textParam.readType"}},[_vm._v("自动回填")])],1)])])]),_c('tab-pane',{attrs:{"label":"其他属性","notHover":false,"name":"third"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1)])]),_vm._t("hoTextFieldModal")],2)],1),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
227564
|
+
var TextDialogvue_type_template_id_016d4c86_staticRenderFns = []
|
|
227667
227565
|
|
|
227668
227566
|
|
|
227669
227567
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=script&lang=ts&
|
|
@@ -227954,8 +227852,8 @@ TextDialog = __decorate([vue_class_component_esm({
|
|
|
227954
227852
|
|
|
227955
227853
|
var TextDialog_component = normalizeComponent(
|
|
227956
227854
|
textDialog_TextDialogvue_type_script_lang_ts_,
|
|
227957
|
-
|
|
227958
|
-
|
|
227855
|
+
TextDialogvue_type_template_id_016d4c86_render,
|
|
227856
|
+
TextDialogvue_type_template_id_016d4c86_staticRenderFns,
|
|
227959
227857
|
false,
|
|
227960
227858
|
null,
|
|
227961
227859
|
null,
|
|
@@ -229390,9 +229288,9 @@ var DataSource_component = normalizeComponent(
|
|
|
229390
229288
|
;// CONCATENATED MODULE: ./src/components/controls/dataSource/index.ts
|
|
229391
229289
|
|
|
229392
229290
|
/* harmony default export */ var controls_dataSource = (DataSource);
|
|
229393
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/listsource/ListSource.vue?vue&type=template&id=
|
|
229394
|
-
var
|
|
229395
|
-
var
|
|
229291
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/listsource/ListSource.vue?vue&type=template&id=21da5e25&scoped=true&
|
|
229292
|
+
var ListSourcevue_type_template_id_21da5e25_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"listSourceModal",staticClass:"control-modal-contents list-source-modal",on:{"mousedown":_vm.toolModalDown}},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("下拉列表")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item",staticStyle:{"width":"100%"}},[_c('span',{staticClass:"label",staticStyle:{"width":"42px"}},[_vm._v("来源")]),_c('el-input',{attrs:{"size":"mini","placeholder":"来源"},model:{value:(_vm.source),callback:function ($$v) {_vm.source=$$v},expression:"source"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"42px"}},[_vm._v("列表")]),_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.listValue,"height":"210px"}},[_c('el-table-column',{staticStyle:{"text-align":"center"},attrs:{"label":"","width":"32"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('i',{directives:[{name:"show",rawName:"v-show",value:(scope.$index === _vm.focusIndexs),expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{"transform":"translateX(6px)"}})]}}])}),_c('el-table-column',{attrs:{"label":"文本","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{class:_vm.errorIndex.includes(scope.row.id) ? 'error' : '',attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}])}),_c('el-table-column',{attrs:{"label":"值","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.value),callback:function ($$v) {_vm.$set(scope.row, "value", $$v)},expression:"scope.row.value"}})]}}])}),_c('el-table-column',{attrs:{"label":"类型","width":"70"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"mini"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.type),callback:function ($$v) {_vm.$set(scope.row, "type", $$v)},expression:"scope.row.type"}})]}}])}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.default)?_c('span',{staticClass:"tags"},[_vm._v("默认")]):_vm._e(),(scope.row.default)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.cancelDefault(scope.row.id)}}},[_vm._v("取消")]):_vm._e(),(!scope.row.default && scope.row.text)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.setDefault(scope.row.id)}}},[_vm._v("设为默认")]):_vm._e(),(scope.$index !== _vm.listValue.length - 1 && _vm.focusIndexs === scope.$index)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")]):_vm._e()]}}])})],1)],1)])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
229293
|
+
var ListSourcevue_type_template_id_21da5e25_scoped_true_staticRenderFns = []
|
|
229396
229294
|
|
|
229397
229295
|
|
|
229398
229296
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/listsource/ListSource.vue?vue&type=script&lang=ts&
|
|
@@ -229653,10 +229551,10 @@ ListSource = __decorate([vue_class_component_esm({
|
|
|
229653
229551
|
/* harmony default export */ var ListSourcevue_type_script_lang_ts_ = (ListSource);
|
|
229654
229552
|
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue?vue&type=script&lang=ts&
|
|
229655
229553
|
/* harmony default export */ var listsource_ListSourcevue_type_script_lang_ts_ = (ListSourcevue_type_script_lang_ts_);
|
|
229656
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/listsource/ListSource.vue?vue&type=style&index=0&id=
|
|
229554
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/listsource/ListSource.vue?vue&type=style&index=0&id=21da5e25&lang=scss&scoped=true&
|
|
229657
229555
|
// extracted by mini-css-extract-plugin
|
|
229658
229556
|
|
|
229659
|
-
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue?vue&type=style&index=0&id=
|
|
229557
|
+
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue?vue&type=style&index=0&id=21da5e25&lang=scss&scoped=true&
|
|
229660
229558
|
|
|
229661
229559
|
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue
|
|
229662
229560
|
|
|
@@ -229669,11 +229567,11 @@ ListSource = __decorate([vue_class_component_esm({
|
|
|
229669
229567
|
|
|
229670
229568
|
var ListSource_component = normalizeComponent(
|
|
229671
229569
|
listsource_ListSourcevue_type_script_lang_ts_,
|
|
229672
|
-
|
|
229673
|
-
|
|
229570
|
+
ListSourcevue_type_template_id_21da5e25_scoped_true_render,
|
|
229571
|
+
ListSourcevue_type_template_id_21da5e25_scoped_true_staticRenderFns,
|
|
229674
229572
|
false,
|
|
229675
229573
|
null,
|
|
229676
|
-
"
|
|
229574
|
+
"21da5e25",
|
|
229677
229575
|
null
|
|
229678
229576
|
|
|
229679
229577
|
)
|