hoeditor-web 2.0.78 → 2.0.81
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 +405 -439
- package/lib/hoeditor.css +1 -1
- package/lib/hoeditor.umd.js +405 -439
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -13500,8 +13500,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13500
13500
|
hoEditorFactory.undoService.commit();
|
|
13501
13501
|
} else {
|
|
13502
13502
|
hoEditorFactory.undoService.begin();
|
|
13503
|
-
|
|
13503
|
+
var nodesDeleteUndoUnit = new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, oper === "update" ? true : false);
|
|
13504
|
+
hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
|
|
13504
13505
|
hoEditorFactory.undoService.commit();
|
|
13506
|
+
return nodesDeleteUndoUnit.isError;
|
|
13505
13507
|
}
|
|
13506
13508
|
} //插入节点到指定位置
|
|
13507
13509
|
|
|
@@ -13521,18 +13523,23 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13521
13523
|
}
|
|
13522
13524
|
}
|
|
13523
13525
|
|
|
13526
|
+
var isError;
|
|
13527
|
+
|
|
13524
13528
|
if (!curRange.isEmpty) {
|
|
13525
|
-
this.deleteRange(curRange, true, "update"); //删除选中节点
|
|
13529
|
+
isError = this.deleteRange(curRange, true, isResetFieldText ? "update" : undefined); //删除选中节点
|
|
13526
13530
|
}
|
|
13527
13531
|
|
|
13528
|
-
if (
|
|
13529
|
-
|
|
13530
|
-
|
|
13532
|
+
if (!isError) {
|
|
13533
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview) {
|
|
13534
|
+
path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
13535
|
+
}
|
|
13531
13536
|
|
|
13532
|
-
|
|
13537
|
+
hoEditorFactory.undoService.begin(); // this.insertNodeByPath(textNode,this._curNodePosition.path);
|
|
13538
|
+
|
|
13539
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, node));
|
|
13540
|
+
hoEditorFactory.undoService.commit();
|
|
13541
|
+
}
|
|
13533
13542
|
|
|
13534
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, node));
|
|
13535
|
-
hoEditorFactory.undoService.commit();
|
|
13536
13543
|
return hoEditorFactory.docTree.curDomRange.startPath;
|
|
13537
13544
|
}
|
|
13538
13545
|
/**
|
|
@@ -14782,13 +14789,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14782
14789
|
var values = valuesObject;
|
|
14783
14790
|
|
|
14784
14791
|
if (Number(values["inputFieldType"]) === 1) {
|
|
14785
|
-
if (node.
|
|
14792
|
+
if (node.keyValue !== "") {
|
|
14786
14793
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
14787
14794
|
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);
|
|
14788
14795
|
node.childNodes.splice(1, 0, textNode); //changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
14789
|
-
|
|
14790
|
-
|
|
14796
|
+
} else {
|
|
14797
|
+
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
14798
|
+
node.childNodes.splice(1, 0, node.childNodes2[1]);
|
|
14791
14799
|
}
|
|
14800
|
+
|
|
14801
|
+
changeEvent.afterChangePath = ePath;
|
|
14792
14802
|
} else {
|
|
14793
14803
|
//changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
14794
14804
|
changeEvent.afterChangePath = ePath;
|
|
@@ -14796,11 +14806,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14796
14806
|
|
|
14797
14807
|
hoEditorFactory.docTree.change(changeEvent);
|
|
14798
14808
|
node.update();
|
|
14799
|
-
var pnode = node.parentNode;
|
|
14800
|
-
|
|
14801
|
-
|
|
14802
|
-
pnode.update();
|
|
14803
|
-
}
|
|
14809
|
+
var pnode = node.parentNode; // if (pnode instanceof TextInputFieldNode) {
|
|
14810
|
+
// pnode.update();
|
|
14811
|
+
// }
|
|
14804
14812
|
|
|
14805
14813
|
do {
|
|
14806
14814
|
var _pnode;
|
|
@@ -14815,10 +14823,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14815
14823
|
} while ((_pnode = pnode) !== null && _pnode !== void 0 && _pnode.parentNode);
|
|
14816
14824
|
|
|
14817
14825
|
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
14818
|
-
|
|
14819
|
-
if (pnode.drawCell.drawPageCells.length > 1) {
|
|
14826
|
+
if (Number(values["inputFieldType"]) === 1) {
|
|
14820
14827
|
pnode.drawCell.needUpdate = true;
|
|
14821
14828
|
pnode.table.update();
|
|
14829
|
+
} else {
|
|
14830
|
+
//增加判断只有多页表格才更新table.update,以处理编辑元素 卡慢问题
|
|
14831
|
+
if (pnode.drawCell.drawPageCells.length > 1) {
|
|
14832
|
+
pnode.drawCell.needUpdate = true;
|
|
14833
|
+
pnode.table.update();
|
|
14834
|
+
}
|
|
14822
14835
|
}
|
|
14823
14836
|
}
|
|
14824
14837
|
|
|
@@ -16805,11 +16818,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16805
16818
|
|
|
16806
16819
|
}, {
|
|
16807
16820
|
key: "insertEmptySignNode",
|
|
16808
|
-
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
|
|
16821
|
+
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute, connectChar) {
|
|
16809
16822
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16810
16823
|
var startPath = domRange.startPath;
|
|
16811
16824
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
16812
|
-
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, {}, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute); //插入该表达式节点
|
|
16825
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, {}, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute, connectChar); //插入该表达式节点
|
|
16813
16826
|
|
|
16814
16827
|
hoEditorFactory.undoService.begin();
|
|
16815
16828
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -25568,7 +25581,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
25568
25581
|
/* 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__);
|
|
25569
25582
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91347);
|
|
25570
25583
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42015);
|
|
25571
|
-
/* harmony import */ var
|
|
25584
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(16296);
|
|
25572
25585
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(83964);
|
|
25573
25586
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46455);
|
|
25574
25587
|
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38862);
|
|
@@ -25589,32 +25602,37 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
25589
25602
|
/* 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__);
|
|
25590
25603
|
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(54747);
|
|
25591
25604
|
/* 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__);
|
|
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
|
|
25608
|
-
/* harmony import */ var
|
|
25609
|
-
/* harmony import */ var
|
|
25610
|
-
/* harmony import */ var
|
|
25611
|
-
/* harmony import */ var
|
|
25612
|
-
/* harmony import */ var
|
|
25613
|
-
/* harmony import */ var
|
|
25614
|
-
/* harmony import */ var
|
|
25615
|
-
/* harmony import */ var
|
|
25616
|
-
/* harmony import */ var
|
|
25617
|
-
/* harmony import */ var
|
|
25605
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(68309);
|
|
25606
|
+
/* 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__);
|
|
25607
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(74916);
|
|
25608
|
+
/* 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__);
|
|
25609
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(23123);
|
|
25610
|
+
/* 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__);
|
|
25611
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(26699);
|
|
25612
|
+
/* 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__);
|
|
25613
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(32023);
|
|
25614
|
+
/* 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__);
|
|
25615
|
+
/* harmony import */ var _editor_draw_drawNode_DrawCell__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(17297);
|
|
25616
|
+
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(35657);
|
|
25617
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(28831);
|
|
25618
|
+
/* harmony import */ var _plugins_type__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(96229);
|
|
25619
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(71080);
|
|
25620
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(75438);
|
|
25621
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(14245);
|
|
25622
|
+
/* harmony import */ var _TableProperty__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(74004);
|
|
25623
|
+
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(3267);
|
|
25624
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(92178);
|
|
25625
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(99964);
|
|
25626
|
+
/* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(40253);
|
|
25627
|
+
/* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(92730);
|
|
25628
|
+
/* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(13880);
|
|
25629
|
+
/* harmony import */ var _RectNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(4428);
|
|
25630
|
+
/* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(78975);
|
|
25631
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(59530);
|
|
25632
|
+
/* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(69802);
|
|
25633
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(27564);
|
|
25634
|
+
|
|
25635
|
+
|
|
25618
25636
|
|
|
25619
25637
|
|
|
25620
25638
|
|
|
@@ -25691,7 +25709,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25691
25709
|
|
|
25692
25710
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, CellNode);
|
|
25693
25711
|
|
|
25694
|
-
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode,
|
|
25712
|
+
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, _BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType.ntCell */ .Jq.ntCell);
|
|
25695
25713
|
_this._hoEditorFactoryID = hoEditorFactoryID;
|
|
25696
25714
|
_this._borderVisible = [true, true, true, true];
|
|
25697
25715
|
_this._crossLineType = CrossLineType.ctNone;
|
|
@@ -25707,7 +25725,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25707
25725
|
return _this;
|
|
25708
25726
|
}
|
|
25709
25727
|
|
|
25710
|
-
(0,
|
|
25728
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(CellNode, [{
|
|
25711
25729
|
key: "drawCell",
|
|
25712
25730
|
get: function get() {
|
|
25713
25731
|
return this._drawCell;
|
|
@@ -25850,7 +25868,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25850
25868
|
}, {
|
|
25851
25869
|
key: "initBlankDoc",
|
|
25852
25870
|
value: function initBlankDoc() {
|
|
25853
|
-
var aparagraph = new
|
|
25871
|
+
var aparagraph = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C(this._hoEditorFactoryID, this.rootNodes, this, 0);
|
|
25854
25872
|
aparagraph.node2DrawNode();
|
|
25855
25873
|
|
|
25856
25874
|
this._childNodes.push(aparagraph);
|
|
@@ -25870,7 +25888,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25870
25888
|
key: "placeDNodeAfterDTop",
|
|
25871
25889
|
value: function placeDNodeAfterDTop(droots, dTop) {
|
|
25872
25890
|
var paragraphNode = this.childNodes[0];
|
|
25873
|
-
var hoEditorFactory =
|
|
25891
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
25874
25892
|
var aline = paragraphNode.drawlines[0];
|
|
25875
25893
|
hoEditorFactory.drawTree.drawDocInsert(paragraphNode, 0, paragraphNode, -1, hoEditorFactory.docTree.getNodeLastPath(this));
|
|
25876
25894
|
|
|
@@ -25910,7 +25928,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25910
25928
|
value: function updateWidth(awidth) {
|
|
25911
25929
|
this.drawCell.dWidth = awidth; // (this.childNodes[0] as ParagraphNode).drawlines[0].dWidth = awidth;
|
|
25912
25930
|
|
|
25913
|
-
|
|
25931
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.clearDrawContainer(this.drawCell.drawLines);
|
|
25914
25932
|
this._drawCell.drawLines.length = 0;
|
|
25915
25933
|
this.childNodes[0].node2DrawNode();
|
|
25916
25934
|
this.drawCell.drawLines.push(this.childNodes[0].drawlines[0]);
|
|
@@ -25928,15 +25946,15 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25928
25946
|
}, {
|
|
25929
25947
|
key: "redrawCell",
|
|
25930
25948
|
value: function redrawCell(repaintInmediate, action) {
|
|
25931
|
-
var hoEditorFactory =
|
|
25949
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
25932
25950
|
|
|
25933
25951
|
if (repaintInmediate) {
|
|
25934
|
-
var dcChangeEvent = new
|
|
25952
|
+
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]));
|
|
25935
25953
|
|
|
25936
|
-
if (action ===
|
|
25954
|
+
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_24__/* .DocAction.daDelete */ .gk.daDelete || action === _DocTree__WEBPACK_IMPORTED_MODULE_24__/* .DocAction.daModifyStyle */ .gk.daModifyStyle) {
|
|
25937
25955
|
dcChangeEvent.oldEndPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
25938
25956
|
|
|
25939
|
-
if (action ===
|
|
25957
|
+
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_24__/* .DocAction.daDelete */ .gk.daDelete) {
|
|
25940
25958
|
dcChangeEvent.oldDrawTreeLines = this._table.drawTable.getCellsDrawTreeLines([this]);
|
|
25941
25959
|
} else {
|
|
25942
25960
|
dcChangeEvent.oldDrawLines = this._table.drawTable.getCellsDrawLines([this]);
|
|
@@ -25990,7 +26008,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25990
26008
|
}
|
|
25991
26009
|
|
|
25992
26010
|
aHeight += this._rowSpan;
|
|
25993
|
-
this._drawCell = new
|
|
26011
|
+
this._drawCell = new _editor_draw_drawNode_DrawCell__WEBPACK_IMPORTED_MODULE_20__/* .DrawCell */ .y(this._hoEditorFactoryID, this, 0, aWidth, aHeight);
|
|
25994
26012
|
|
|
25995
26013
|
this._drawNodes.push(this._drawCell); // this._drawCell.drawLines.push(
|
|
25996
26014
|
// (this._childNodes[0] as ParagraphNode).drawlines[0]
|
|
@@ -26010,7 +26028,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26010
26028
|
}, {
|
|
26011
26029
|
key: "range",
|
|
26012
26030
|
value: function range() {
|
|
26013
|
-
var hoEditorFactory =
|
|
26031
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26014
26032
|
var spath = hoEditorFactory.docTree.getNodeFirstPath(this);
|
|
26015
26033
|
var epath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
26016
26034
|
return {
|
|
@@ -26030,9 +26048,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26030
26048
|
var node = this.childNodes[i];
|
|
26031
26049
|
var nodeJson = void 0;
|
|
26032
26050
|
|
|
26033
|
-
if (node instanceof
|
|
26051
|
+
if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_36__/* .TableNode */ .Fh || node instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_37__/* .TextInputFieldNode */ .re) {
|
|
26034
26052
|
nodeJson = node.node2Json(undefined, isCopy, type, clearSign);
|
|
26035
|
-
} else if (node instanceof
|
|
26053
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N) {
|
|
26036
26054
|
if (clearSign) {
|
|
26037
26055
|
if (node.isTemplate) {
|
|
26038
26056
|
nodeJson = node.node2Json(undefined, isCopy, undefined, clearSign);
|
|
@@ -26041,10 +26059,12 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26041
26059
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
26042
26060
|
}
|
|
26043
26061
|
} else {
|
|
26044
|
-
if (node instanceof
|
|
26062
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R) {
|
|
26045
26063
|
if (node.text !== "") {
|
|
26046
26064
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
26047
26065
|
}
|
|
26066
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_31__/* .DateTimeNode */ .Z) {
|
|
26067
|
+
nodeJson = node.node2Json(undefined, isCopy, undefined, clearSign);
|
|
26048
26068
|
} else {
|
|
26049
26069
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
26050
26070
|
}
|
|
@@ -26141,9 +26161,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26141
26161
|
}
|
|
26142
26162
|
}
|
|
26143
26163
|
|
|
26144
|
-
var cellText = this.getCellText();
|
|
26164
|
+
var cellText = this.getCellText(clearSign);
|
|
26145
26165
|
return {
|
|
26146
|
-
nodeType:
|
|
26166
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq[this.nodeType],
|
|
26147
26167
|
borderVisible: this.borderVisible.toString(),
|
|
26148
26168
|
crossLineType: CrossLineType[this.crossLineType],
|
|
26149
26169
|
rowSpan: this.rowSpan,
|
|
@@ -26193,12 +26213,12 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26193
26213
|
newRange = arange.normalize();
|
|
26194
26214
|
}
|
|
26195
26215
|
|
|
26196
|
-
var hoEditorFactory =
|
|
26216
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26197
26217
|
var startPath = hoEditorFactory.docTree.getNodeFirstPath(this.childNodes[0]);
|
|
26198
26218
|
var lastPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 1]);
|
|
26199
26219
|
|
|
26200
|
-
if (
|
|
26201
|
-
ret =
|
|
26220
|
+
if (_NodePosition__WEBPACK_IMPORTED_MODULE_26__/* .NodePosition.pathCanCompare */ .F.pathCanCompare(newRange.startPath, startPath)) {
|
|
26221
|
+
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;
|
|
26202
26222
|
}
|
|
26203
26223
|
|
|
26204
26224
|
return ret;
|
|
@@ -26206,12 +26226,12 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26206
26226
|
}, {
|
|
26207
26227
|
key: "getNodesForUpdate",
|
|
26208
26228
|
value: function getNodesForUpdate() {
|
|
26209
|
-
var hoEditorFactory =
|
|
26229
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26210
26230
|
var ret = new Array();
|
|
26211
26231
|
|
|
26212
26232
|
for (var i = 0; i < this._childNodes.length; i++) {
|
|
26213
|
-
if (this._childNodes[i] instanceof
|
|
26214
|
-
var domRange = new
|
|
26233
|
+
if (this._childNodes[i] instanceof _TableNode__WEBPACK_IMPORTED_MODULE_36__/* .TableNode */ .Fh) {
|
|
26234
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_25__/* .DomRange */ .a(this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeFirstPath(this._childNodes[i]), hoEditorFactory.docTree.getNodeLastPath(this._childNodes[i]));
|
|
26215
26235
|
ret = ret.concat(this._childNodes[i].getSelectNodesForUpdate(domRange, true));
|
|
26216
26236
|
} else ret.push(this._childNodes[i]);
|
|
26217
26237
|
}
|
|
@@ -26221,16 +26241,16 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26221
26241
|
}, {
|
|
26222
26242
|
key: "getSelectNodes",
|
|
26223
26243
|
value: function getSelectNodes(bSplitTextInputNode) {
|
|
26224
|
-
var hoEditorFactory =
|
|
26244
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26225
26245
|
var ret = new Array();
|
|
26226
26246
|
|
|
26227
26247
|
for (var i = 0; i < this._childNodes.length; i++) {
|
|
26228
26248
|
var aNode = this._childNodes[i];
|
|
26229
26249
|
|
|
26230
|
-
if (aNode instanceof
|
|
26231
|
-
var domRange = new
|
|
26250
|
+
if (aNode instanceof _TableNode__WEBPACK_IMPORTED_MODULE_36__/* .TableNode */ .Fh) {
|
|
26251
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_25__/* .DomRange */ .a(this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeFirstPath(aNode), hoEditorFactory.docTree.getNodeLastPath(aNode));
|
|
26232
26252
|
ret = ret.concat(aNode.getSelectNodes(domRange, true, bSplitTextInputNode));
|
|
26233
|
-
} else if (bSplitTextInputNode && aNode instanceof
|
|
26253
|
+
} else if (bSplitTextInputNode && aNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_37__/* .TextInputFieldNode */ .re) {
|
|
26234
26254
|
ret = ret.concat(aNode.getAllChildNodes());
|
|
26235
26255
|
} else ret.push(this._childNodes[i]);
|
|
26236
26256
|
}
|
|
@@ -26251,19 +26271,23 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26251
26271
|
|
|
26252
26272
|
}, {
|
|
26253
26273
|
key: "getCellText",
|
|
26254
|
-
value: function getCellText() {
|
|
26274
|
+
value: function getCellText(isClearValue) {
|
|
26255
26275
|
var cellText = "";
|
|
26256
26276
|
|
|
26257
26277
|
var loopChildNodes = function loopChildNodes(node) {
|
|
26258
26278
|
var nodes = node.childNodes.slice(1);
|
|
26259
26279
|
nodes.forEach(function (childNode) {
|
|
26260
|
-
if (childNode instanceof
|
|
26261
|
-
cellText += childNode.text;
|
|
26262
|
-
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_29__/* .ControlNode */ .w) {
|
|
26280
|
+
if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R) {
|
|
26263
26281
|
cellText += childNode.text;
|
|
26264
|
-
} else if (childNode instanceof
|
|
26282
|
+
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w) {
|
|
26283
|
+
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_31__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
26284
|
+
cellText += "";
|
|
26285
|
+
} else {
|
|
26286
|
+
cellText += childNode.text;
|
|
26287
|
+
}
|
|
26288
|
+
} else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_28__/* .BaseCombineNode */ .V) {
|
|
26265
26289
|
loopChildNodes(childNode);
|
|
26266
|
-
} else if (childNode instanceof
|
|
26290
|
+
} else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C) {
|
|
26267
26291
|
cellText += '\n';
|
|
26268
26292
|
}
|
|
26269
26293
|
});
|
|
@@ -26274,13 +26298,13 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26274
26298
|
}
|
|
26275
26299
|
}, {
|
|
26276
26300
|
key: "setCellText",
|
|
26277
|
-
value: function setCellText(value) {
|
|
26301
|
+
value: function setCellText(value, isPaste) {
|
|
26278
26302
|
var colIndex = this.row.indexOf(this);
|
|
26279
|
-
var hoEditorFactory =
|
|
26303
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26280
26304
|
var colProperty = this.table.colInfos[colIndex].colProperty;
|
|
26281
26305
|
|
|
26282
|
-
if (colProperty.editorProperty ===
|
|
26283
|
-
if (!(0,
|
|
26306
|
+
if (colProperty.editorProperty === _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .EditorProperty.Number */ .YS.Number) {
|
|
26307
|
+
if (!(0,_plugins_type__WEBPACK_IMPORTED_MODULE_23__/* .isNumber */ .hj)(value)) {
|
|
26284
26308
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("输入值非数值类型,请重输!", "提示");
|
|
26285
26309
|
|
|
26286
26310
|
return;
|
|
@@ -26314,22 +26338,27 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26314
26338
|
var endPath = "";
|
|
26315
26339
|
var startPath = "";
|
|
26316
26340
|
|
|
26317
|
-
if (
|
|
26318
|
-
|
|
26341
|
+
if (isPaste) {
|
|
26342
|
+
startPath = "".concat(this.getNodePath(), "/0");
|
|
26343
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
26344
|
+
} else {
|
|
26345
|
+
if (this.table.tableProperty.isAutoChangeLine) {
|
|
26346
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
26319
26347
|
|
|
26320
|
-
|
|
26321
|
-
|
|
26322
|
-
|
|
26348
|
+
if (curDomRange.npEnd.node instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C) {
|
|
26349
|
+
startPath = curDomRange.startPath;
|
|
26350
|
+
endPath = startPath;
|
|
26351
|
+
} else {
|
|
26352
|
+
startPath = curDomRange.npEnd.node.prevSibling().getNodePath();
|
|
26353
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(curDomRange.npEnd.node);
|
|
26354
|
+
}
|
|
26323
26355
|
} else {
|
|
26324
|
-
startPath =
|
|
26325
|
-
endPath = hoEditorFactory.docTree.getNodeLastPath(
|
|
26356
|
+
startPath = "".concat(this.getNodePath(), "/0");
|
|
26357
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
26326
26358
|
}
|
|
26327
|
-
} else {
|
|
26328
|
-
startPath = "".concat(this.getNodePath(), "/0");
|
|
26329
|
-
endPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
26330
26359
|
}
|
|
26331
26360
|
|
|
26332
|
-
var aRange = new
|
|
26361
|
+
var aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_25__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
26333
26362
|
hoEditorFactory.docController.deleteRange(aRange, true);
|
|
26334
26363
|
hoEditorFactory.docController.insertPlainTextAfterPath(startPath, value);
|
|
26335
26364
|
}
|
|
@@ -26375,23 +26404,23 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26375
26404
|
}, {
|
|
26376
26405
|
key: "needPaintLineGrid",
|
|
26377
26406
|
value: function needPaintLineGrid() {
|
|
26378
|
-
var hoEditorFactory =
|
|
26407
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26379
26408
|
|
|
26380
26409
|
var _this$table$getCellIn = this.table.getCellInfos(this),
|
|
26381
26410
|
_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),
|
|
26382
26411
|
r = _this$table$getCellIn2[0],
|
|
26383
26412
|
c = _this$table$getCellIn2[1];
|
|
26384
26413
|
|
|
26385
|
-
return (hoEditorFactory.docTree.docProperty.type ===
|
|
26414
|
+
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;
|
|
26386
26415
|
}
|
|
26387
26416
|
}], [{
|
|
26388
26417
|
key: "json2Node",
|
|
26389
26418
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign) {
|
|
26390
|
-
var hoEditorFactory =
|
|
26419
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
26391
26420
|
var rowNo = parseInt(json.rowNo);
|
|
26392
26421
|
var colNo = parseInt(json.colNo);
|
|
26393
26422
|
aRow = rowsMap.get(rowNo);
|
|
26394
|
-
var cellNode = new CellNode(hoEditorFactoryID, rootNodes, tableNode, aRow, undefined, rowNo, colNo, 1, 1, new
|
|
26423
|
+
var cellNode = new CellNode(hoEditorFactoryID, rootNodes, tableNode, aRow, undefined, rowNo, colNo, 1, 1, new _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .CellProperty */ .$W(""));
|
|
26395
26424
|
var cellProperty = json.cellProperty;
|
|
26396
26425
|
|
|
26397
26426
|
if (cellProperty === "") {
|
|
@@ -26419,9 +26448,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26419
26448
|
target[value] = Number(source[value]);
|
|
26420
26449
|
} else {
|
|
26421
26450
|
if (value === "dateTimeProperty") {
|
|
26422
|
-
cellNode.cellProperty.dateTimeProperty = new
|
|
26451
|
+
cellNode.cellProperty.dateTimeProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .DateTimeProperty */ .Ks(source[value]);
|
|
26423
26452
|
} else if (value === "downListProperty") {
|
|
26424
|
-
cellNode.cellProperty.downListProperty = new
|
|
26453
|
+
cellNode.cellProperty.downListProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .ColDownListProperty */ .cW(source[value]);
|
|
26425
26454
|
} else {
|
|
26426
26455
|
target[value] = source[value];
|
|
26427
26456
|
}
|
|
@@ -26460,13 +26489,13 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26460
26489
|
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste, isClearSign);
|
|
26461
26490
|
|
|
26462
26491
|
if (convertNode) {
|
|
26463
|
-
if (convertNode instanceof
|
|
26492
|
+
if (convertNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R) {
|
|
26464
26493
|
if (convertNode.text !== "") {
|
|
26465
26494
|
cellNode.addChild(convertNode);
|
|
26466
26495
|
}
|
|
26467
26496
|
} else {
|
|
26468
26497
|
if (isClearSign) {
|
|
26469
|
-
if (convertNode instanceof
|
|
26498
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N) {
|
|
26470
26499
|
if (convertNode.isTemplate) {
|
|
26471
26500
|
cellNode.addChild(convertNode);
|
|
26472
26501
|
}
|
|
@@ -26479,11 +26508,11 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26479
26508
|
}
|
|
26480
26509
|
}
|
|
26481
26510
|
|
|
26482
|
-
if (convertNode instanceof
|
|
26511
|
+
if (convertNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_32__/* .MarkNode */ .j) {
|
|
26483
26512
|
hoEditorFactory.structureConvert._markNodes.push(convertNode);
|
|
26484
26513
|
}
|
|
26485
26514
|
|
|
26486
|
-
if (convertNode instanceof
|
|
26515
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(convertNode.customProperty.bce01)) {
|
|
26487
26516
|
hoEditorFactory.structureConvert._superiorSign[0] = convertNode;
|
|
26488
26517
|
}
|
|
26489
26518
|
}
|
|
@@ -26529,16 +26558,16 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26529
26558
|
|
|
26530
26559
|
if (text !== "") {
|
|
26531
26560
|
var textArr = text.split("\n");
|
|
26532
|
-
var firstTextNode = new
|
|
26561
|
+
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));
|
|
26533
26562
|
cellNode.addChild(firstTextNode);
|
|
26534
26563
|
|
|
26535
26564
|
if (textArr.length > 1) {
|
|
26536
26565
|
for (var i = 1; i < textArr.length; i++) {
|
|
26537
|
-
var paragraNode = new
|
|
26566
|
+
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, cellNode, Number(paraNode.styleIndex));
|
|
26538
26567
|
cellNode.addChild(paragraNode);
|
|
26539
26568
|
|
|
26540
26569
|
if (textArr[i] !== "") {
|
|
26541
|
-
var textNode = new
|
|
26570
|
+
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));
|
|
26542
26571
|
cellNode.addChild(textNode);
|
|
26543
26572
|
}
|
|
26544
26573
|
}
|
|
@@ -26556,7 +26585,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26556
26585
|
}]);
|
|
26557
26586
|
|
|
26558
26587
|
return CellNode;
|
|
26559
|
-
}(
|
|
26588
|
+
}(_RectNode__WEBPACK_IMPORTED_MODULE_34__/* .RectNode */ .z);
|
|
26560
26589
|
|
|
26561
26590
|
/***/ }),
|
|
26562
26591
|
|
|
@@ -27245,7 +27274,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27245
27274
|
}
|
|
27246
27275
|
}, {
|
|
27247
27276
|
key: "node2Json",
|
|
27248
|
-
value: function node2Json(range, isCopy, type) {
|
|
27277
|
+
value: function node2Json(range, isCopy, type, isClearValue) {
|
|
27249
27278
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27250
27279
|
var retObj = {
|
|
27251
27280
|
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType.ntControl */ .Jq.ntControl],
|
|
@@ -27260,7 +27289,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27260
27289
|
isSynchro: this.isSynchro,
|
|
27261
27290
|
controlStyle: this.controlStyle.replace("hh", "HH"),
|
|
27262
27291
|
name: this.name,
|
|
27263
|
-
text: this.text === this.name ? "" : this.text,
|
|
27292
|
+
text: isClearValue || this.text === this.name ? "" : this.text,
|
|
27264
27293
|
labelText: this.labelText,
|
|
27265
27294
|
title: this.title,
|
|
27266
27295
|
styleIndex: this.styleIndex,
|
|
@@ -33936,7 +33965,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33936
33965
|
|
|
33937
33966
|
var _super = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(SignNode);
|
|
33938
33967
|
|
|
33939
|
-
function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute) {
|
|
33968
|
+
function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar) {
|
|
33940
33969
|
var _this;
|
|
33941
33970
|
|
|
33942
33971
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
|
|
@@ -33982,12 +34011,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33982
34011
|
|
|
33983
34012
|
_this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
33984
34013
|
|
|
34014
|
+
_this._connectChar = ":"; //自定义CA签名连接符
|
|
34015
|
+
|
|
33985
34016
|
_this.number = number;
|
|
33986
34017
|
_this._type = type;
|
|
33987
34018
|
_this._signor = signor;
|
|
33988
34019
|
_this._signTime = signTime;
|
|
33989
34020
|
_this._imgSrc = imgSrc;
|
|
33990
34021
|
_this._attribute = attribute === undefined ? 0 : attribute;
|
|
34022
|
+
_this._connectChar = connectChar === undefined ? ":" : connectChar;
|
|
33991
34023
|
|
|
33992
34024
|
if (type == 3) {
|
|
33993
34025
|
// 兼容旧的患者签名
|
|
@@ -34263,6 +34295,16 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34263
34295
|
this._attribute = value;
|
|
34264
34296
|
}
|
|
34265
34297
|
}
|
|
34298
|
+
}, {
|
|
34299
|
+
key: "connectChar",
|
|
34300
|
+
get: function get() {
|
|
34301
|
+
return this._connectChar;
|
|
34302
|
+
},
|
|
34303
|
+
set: function set(value) {
|
|
34304
|
+
if (this._connectChar !== value) {
|
|
34305
|
+
this._connectChar = value;
|
|
34306
|
+
}
|
|
34307
|
+
}
|
|
34266
34308
|
/**
|
|
34267
34309
|
*
|
|
34268
34310
|
* @param drawTree 绘制树
|
|
@@ -34284,7 +34326,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34284
34326
|
this.styleIndex = 0;
|
|
34285
34327
|
}
|
|
34286
34328
|
|
|
34287
|
-
var dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_10__/* .DrawSignNode */ .V(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition, this.attribute, this.customProperty);
|
|
34329
|
+
var dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_10__/* .DrawSignNode */ .V(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition, this.attribute, this.customProperty, this.connectChar);
|
|
34288
34330
|
|
|
34289
34331
|
this._drawNodes.push(dNode);
|
|
34290
34332
|
}
|
|
@@ -34368,7 +34410,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34368
34410
|
allowEditSignTime: this.allowEditSignTime,
|
|
34369
34411
|
fingerPrintSrc: clearSign ? "" : this.fingerPrintSrc,
|
|
34370
34412
|
fingerPosition: clearSign ? 0 : this.fingerPosition,
|
|
34371
|
-
attribute: this.attribute
|
|
34413
|
+
attribute: this.attribute,
|
|
34414
|
+
connectChar: this.connectChar
|
|
34372
34415
|
};
|
|
34373
34416
|
|
|
34374
34417
|
if (isCopy) {
|
|
@@ -34397,7 +34440,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34397
34440
|
var imgHeight = isClearSign ? 0 : Number(json.imgHeight);
|
|
34398
34441
|
var isTemplate = json.isTemplate === true || json.isTemplate === "true" ? true : false;
|
|
34399
34442
|
var attribute = json.attribute ? Number(json.attribute) : 0;
|
|
34400
|
-
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType.ntSign */ .Jq.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, json.isFront, json.allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute);
|
|
34443
|
+
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType.ntSign */ .Jq.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, json.isFront, json.allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar);
|
|
34401
34444
|
signNode.PNGToJPG = json.PNGToJPG == 1 ? 1 : 0; //signNode.number = number;
|
|
34402
34445
|
//signNode.width = width;
|
|
34403
34446
|
|
|
@@ -37432,6 +37475,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
37432
37475
|
|
|
37433
37476
|
if (isCopy) {
|
|
37434
37477
|
rows = pto.row;
|
|
37478
|
+
cols = pto.col;
|
|
37435
37479
|
|
|
37436
37480
|
if (to.colSpan > 1) {
|
|
37437
37481
|
cols = pto.col + to.colSpan - 1;
|
|
@@ -38771,7 +38815,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38771
38815
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(83964);
|
|
38772
38816
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(46455);
|
|
38773
38817
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(42015);
|
|
38774
|
-
/* harmony import */ var
|
|
38818
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(16296);
|
|
38775
38819
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(68309);
|
|
38776
38820
|
/* 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__);
|
|
38777
38821
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41539);
|
|
@@ -38816,19 +38860,20 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38816
38860
|
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(3267);
|
|
38817
38861
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(92178);
|
|
38818
38862
|
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(99964);
|
|
38819
|
-
/* harmony import */ var
|
|
38820
|
-
/* harmony import */ var
|
|
38821
|
-
/* harmony import */ var
|
|
38822
|
-
/* harmony import */ var
|
|
38823
|
-
/* harmony import */ var
|
|
38824
|
-
/* harmony import */ var
|
|
38825
|
-
/* harmony import */ var
|
|
38826
|
-
/* harmony import */ var
|
|
38827
|
-
/* harmony import */ var
|
|
38828
|
-
/* harmony import */ var
|
|
38829
|
-
/* harmony import */ var
|
|
38830
|
-
/* harmony import */ var
|
|
38831
|
-
/* harmony import */ var
|
|
38863
|
+
/* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(40253);
|
|
38864
|
+
/* harmony import */ var _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(71916);
|
|
38865
|
+
/* harmony import */ var _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(61400);
|
|
38866
|
+
/* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(92730);
|
|
38867
|
+
/* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(43977);
|
|
38868
|
+
/* harmony import */ var _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(59419);
|
|
38869
|
+
/* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(13880);
|
|
38870
|
+
/* harmony import */ var _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(36330);
|
|
38871
|
+
/* harmony import */ var _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(16890);
|
|
38872
|
+
/* harmony import */ var _PupilMapNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(77876);
|
|
38873
|
+
/* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(78975);
|
|
38874
|
+
/* harmony import */ var _TableFormula__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(72330);
|
|
38875
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(59530);
|
|
38876
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(27564);
|
|
38832
38877
|
|
|
38833
38878
|
|
|
38834
38879
|
|
|
@@ -38861,7 +38906,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38861
38906
|
/*
|
|
38862
38907
|
* @Author: your name
|
|
38863
38908
|
* @Date: 2020-11-03 15:17:54
|
|
38864
|
-
* @LastEditTime: 2022-07-
|
|
38909
|
+
* @LastEditTime: 2022-07-29 14:35:30
|
|
38865
38910
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
38866
38911
|
* @Description: In User Settings Edit
|
|
38867
38912
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -38891,6 +38936,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38891
38936
|
|
|
38892
38937
|
|
|
38893
38938
|
|
|
38939
|
+
|
|
38894
38940
|
|
|
38895
38941
|
|
|
38896
38942
|
var ReadOnlyStatus;
|
|
@@ -38949,7 +38995,7 @@ var DownListProperty = /*#__PURE__*/function () {
|
|
|
38949
38995
|
DownListProperty.setDefaultImportStyle(this);
|
|
38950
38996
|
}
|
|
38951
38997
|
|
|
38952
|
-
(0,
|
|
38998
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_53__/* ["default"] */ .Z)(DownListProperty, [{
|
|
38953
38999
|
key: "allowMultiSelected",
|
|
38954
39000
|
get: function get() {
|
|
38955
39001
|
return this._allowMultiSelected;
|
|
@@ -39044,7 +39090,7 @@ var DataVerifyFormat = /*#__PURE__*/function () {
|
|
|
39044
39090
|
DataVerifyFormat.setDefaultDataVerifyFormat(this);
|
|
39045
39091
|
}
|
|
39046
39092
|
|
|
39047
|
-
(0,
|
|
39093
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_53__/* ["default"] */ .Z)(DataVerifyFormat, [{
|
|
39048
39094
|
key: "mustInputValue",
|
|
39049
39095
|
get: function get() {
|
|
39050
39096
|
return this._mustInputValue;
|
|
@@ -39152,7 +39198,7 @@ var BandDataSource = /*#__PURE__*/function () {
|
|
|
39152
39198
|
BandDataSource.setDefaultBandDataSource(this);
|
|
39153
39199
|
}
|
|
39154
39200
|
|
|
39155
|
-
(0,
|
|
39201
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_53__/* ["default"] */ .Z)(BandDataSource, [{
|
|
39156
39202
|
key: "dataSourceEnabled",
|
|
39157
39203
|
get: function get() {
|
|
39158
39204
|
return this._dataSourceEnabled;
|
|
@@ -39426,7 +39472,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39426
39472
|
*/
|
|
39427
39473
|
|
|
39428
39474
|
|
|
39429
|
-
(0,
|
|
39475
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_53__/* ["default"] */ .Z)(TextInputFieldNode, [{
|
|
39430
39476
|
key: "alignWithBlocked",
|
|
39431
39477
|
get: function get() {
|
|
39432
39478
|
return this._alignWithBlocked;
|
|
@@ -39910,7 +39956,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39910
39956
|
|
|
39911
39957
|
}, {
|
|
39912
39958
|
key: "getFieldText",
|
|
39913
|
-
value: function getFieldText() {
|
|
39959
|
+
value: function getFieldText(isClearValue) {
|
|
39914
39960
|
var _this3 = this;
|
|
39915
39961
|
|
|
39916
39962
|
var text = "";
|
|
@@ -39918,7 +39964,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39918
39964
|
var loopChildNodes = function loopChildNodes(node) {
|
|
39919
39965
|
var nodes = node.childNodes.slice(1);
|
|
39920
39966
|
nodes.forEach(function (childNode) {
|
|
39921
|
-
if (childNode instanceof
|
|
39967
|
+
if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R) {
|
|
39922
39968
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this3.hoEditorFactoryID);
|
|
39923
39969
|
var textStyle = hoEditorFactory.docTree.styles[childNode.styleIndex];
|
|
39924
39970
|
|
|
@@ -39931,22 +39977,26 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39931
39977
|
text += childNode.text;
|
|
39932
39978
|
}
|
|
39933
39979
|
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_38__/* .ControlNode */ .w) {
|
|
39934
|
-
text
|
|
39980
|
+
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_39__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
39981
|
+
text += "";
|
|
39982
|
+
} else {
|
|
39983
|
+
text += childNode.text;
|
|
39984
|
+
}
|
|
39935
39985
|
} else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_36__/* .BaseCombineNode */ .V) {
|
|
39936
39986
|
loopChildNodes(childNode);
|
|
39937
|
-
} else if (childNode instanceof
|
|
39987
|
+
} else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__/* .ParagraphNode */ .C) {
|
|
39938
39988
|
text += '\n';
|
|
39939
|
-
} else if (childNode instanceof
|
|
39989
|
+
} else if (childNode instanceof _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_43__/* .MedicalExpressionNode */ .H) {
|
|
39940
39990
|
var expressJson = JSON.parse("{}");
|
|
39941
39991
|
text += "<MedicalExpress>";
|
|
39942
39992
|
|
|
39943
|
-
if (childNode instanceof
|
|
39993
|
+
if (childNode instanceof _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_44__/* .MenstrualHistoryNode */ .n) {
|
|
39944
39994
|
expressJson.expressStyle = childNode.expressStyle;
|
|
39945
39995
|
expressJson.menseDays = childNode.menseDays;
|
|
39946
39996
|
expressJson.cycleDays = childNode.cycleDays;
|
|
39947
39997
|
expressJson.menarcheAge = childNode.menarcheAge;
|
|
39948
39998
|
expressJson.menoPauseAge = childNode.menoPauseAge;
|
|
39949
|
-
} else if (childNode instanceof
|
|
39999
|
+
} 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) {
|
|
39950
40000
|
expressJson.value1 = childNode.value1;
|
|
39951
40001
|
expressJson.value2 = childNode.value2;
|
|
39952
40002
|
expressJson.value3 = childNode.value3;
|
|
@@ -39954,10 +40004,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39954
40004
|
expressJson.value5 = childNode.value5;
|
|
39955
40005
|
expressJson.value6 = childNode.value6;
|
|
39956
40006
|
|
|
39957
|
-
if (childNode instanceof
|
|
40007
|
+
if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PupilMapNode */ .v) {
|
|
39958
40008
|
expressJson.expressStyle = "PupilMapNode";
|
|
39959
40009
|
expressJson.value7 = childNode.value7;
|
|
39960
|
-
} else if (childNode instanceof
|
|
40010
|
+
} else if (childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_41__/* .LightLocationMapNode */ .D) {
|
|
39961
40011
|
expressJson.expressStyle = "LightLocationMapNode";
|
|
39962
40012
|
expressJson.value7 = childNode.value7;
|
|
39963
40013
|
expressJson.value8 = childNode.value8;
|
|
@@ -39965,12 +40015,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
39965
40015
|
} else {
|
|
39966
40016
|
expressJson.expressStyle = "FetalHeartMapNode";
|
|
39967
40017
|
}
|
|
39968
|
-
} else if (childNode instanceof
|
|
39969
|
-
if (childNode instanceof
|
|
40018
|
+
} else if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_46__/* .PermanentTeethMapNode */ .f || childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_47__/* .PrimaryTeethMapNode */ .x) {
|
|
40019
|
+
if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_46__/* .PermanentTeethMapNode */ .f) {
|
|
39970
40020
|
expressJson.expressStyle = "PermanentTeethMapNode";
|
|
39971
40021
|
}
|
|
39972
40022
|
|
|
39973
|
-
if (childNode instanceof
|
|
40023
|
+
if (childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_47__/* .PrimaryTeethMapNode */ .x) {
|
|
39974
40024
|
expressJson.expressStyle = "PrimaryTeethMapNode";
|
|
39975
40025
|
}
|
|
39976
40026
|
|
|
@@ -40033,7 +40083,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40033
40083
|
this.keyValue = keyValue;
|
|
40034
40084
|
}
|
|
40035
40085
|
|
|
40036
|
-
if (!(value === "" && this.childNodes[1] instanceof
|
|
40086
|
+
if (!(value === "" && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j)) {
|
|
40037
40087
|
_context2.next = 4;
|
|
40038
40088
|
break;
|
|
40039
40089
|
}
|
|
@@ -40048,7 +40098,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40048
40098
|
endPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 2]);
|
|
40049
40099
|
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_34__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
40050
40100
|
|
|
40051
|
-
if (!(this.childNodes[1] instanceof
|
|
40101
|
+
if (!(this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j) && this.inputFieldType === 0) {
|
|
40052
40102
|
anodes = _DomRange__WEBPACK_IMPORTED_MODULE_34__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this.hoEditorFactoryID, startPath, endPath);
|
|
40053
40103
|
|
|
40054
40104
|
for (i = 0; i < anodes.length; i++) {
|
|
@@ -40067,7 +40117,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40067
40117
|
break;
|
|
40068
40118
|
}
|
|
40069
40119
|
|
|
40070
|
-
markNode = new
|
|
40120
|
+
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);
|
|
40071
40121
|
hoEditorFactory.undoService.begin();
|
|
40072
40122
|
hoEditorFactory.undoService.add(new _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_31__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, markNode));
|
|
40073
40123
|
hoEditorFactory.undoService.commit();
|
|
@@ -40146,19 +40196,19 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40146
40196
|
// index = astyle.changeStyleString("fontBackColor", "transparent");
|
|
40147
40197
|
// }
|
|
40148
40198
|
|
|
40149
|
-
this.StartMarkNode = new
|
|
40199
|
+
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);
|
|
40150
40200
|
this.StartMarkNode.isReadOnly = true;
|
|
40151
|
-
this.StartMarkNode.MarkNodeType =
|
|
40152
|
-
this.EndMarkNode = new
|
|
40201
|
+
this.StartMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtStart */ .q.mtStart;
|
|
40202
|
+
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);
|
|
40153
40203
|
this.EndMarkNode.isReadOnly = true;
|
|
40154
|
-
this.EndMarkNode.MarkNodeType =
|
|
40204
|
+
this.EndMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtEnd */ .q.mtEnd;
|
|
40155
40205
|
this.StartMarkNode.pair = this.EndMarkNode;
|
|
40156
40206
|
this.EndMarkNode.pair = this.StartMarkNode;
|
|
40157
40207
|
|
|
40158
40208
|
this._childNodes2.push(this.StartMarkNode);
|
|
40159
40209
|
|
|
40160
40210
|
if (this.labelText.length != 0) {
|
|
40161
|
-
this._childNodes2.push(new
|
|
40211
|
+
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);
|
|
40162
40212
|
// this._childNodes2.push(this._labelNode);
|
|
40163
40213
|
|
|
40164
40214
|
}
|
|
@@ -40172,7 +40222,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40172
40222
|
this.childNodes.splice(1, 1);
|
|
40173
40223
|
}
|
|
40174
40224
|
|
|
40175
|
-
this._childNodes.splice(1, 0, new
|
|
40225
|
+
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));
|
|
40176
40226
|
}
|
|
40177
40227
|
}
|
|
40178
40228
|
}, {
|
|
@@ -40215,7 +40265,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40215
40265
|
for (var index = 0; index < this.childNodes.length; index++) {
|
|
40216
40266
|
var value = this.childNodes[index];
|
|
40217
40267
|
|
|
40218
|
-
if (value instanceof
|
|
40268
|
+
if (value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__/* .ParagraphNode */ .C) {
|
|
40219
40269
|
if (aline.paragraphNode !== value) {
|
|
40220
40270
|
if (aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_25__/* .DrawLine */ .a) {
|
|
40221
40271
|
aline.fitLines();
|
|
@@ -40232,7 +40282,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40232
40282
|
|
|
40233
40283
|
paraNode = value;
|
|
40234
40284
|
aline = paraNode.drawlines[0];
|
|
40235
|
-
} else if (value instanceof
|
|
40285
|
+
} else if (value instanceof _TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh) {
|
|
40236
40286
|
value.placeDNodeAfterDrawLine(paraNode, aline, endPath);
|
|
40237
40287
|
aline = value.drawTable;
|
|
40238
40288
|
} else {
|
|
@@ -40342,7 +40392,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40342
40392
|
value: function getActualWidth() {
|
|
40343
40393
|
var w = 0;
|
|
40344
40394
|
this.childNodes.forEach(function (value) {
|
|
40345
|
-
if (!(value instanceof
|
|
40395
|
+
if (!(value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__/* .ParagraphNode */ .C)) w += value.getActualWidth();
|
|
40346
40396
|
});
|
|
40347
40397
|
return w;
|
|
40348
40398
|
}
|
|
@@ -40405,10 +40455,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40405
40455
|
return true;
|
|
40406
40456
|
}
|
|
40407
40457
|
|
|
40408
|
-
if (this.childNodes.length == 3 && this.childNodes[1] instanceof
|
|
40458
|
+
if (this.childNodes.length == 3 && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j) {
|
|
40409
40459
|
var markNode = this.childNodes[1];
|
|
40410
40460
|
|
|
40411
|
-
if (markNode.MarkNodeType ===
|
|
40461
|
+
if (markNode.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtContent */ .q.mtContent) {
|
|
40412
40462
|
return true;
|
|
40413
40463
|
} else return false;
|
|
40414
40464
|
}
|
|
@@ -40465,10 +40515,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40465
40515
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
40466
40516
|
var node = this.childNodes[i];
|
|
40467
40517
|
|
|
40468
|
-
if (!(node instanceof
|
|
40469
|
-
if (node instanceof
|
|
40518
|
+
if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j && node.text.substr(0, 1) !== "C")) {
|
|
40519
|
+
if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh || node instanceof TextInputFieldNode) {
|
|
40470
40520
|
childArray.push(node.node2Json(undefined, isCopy, type, clearSign));
|
|
40471
|
-
} else if (node instanceof
|
|
40521
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_49__/* .SignNode */ .N) {
|
|
40472
40522
|
if (clearSign) {
|
|
40473
40523
|
if (node.isTemplate) {
|
|
40474
40524
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
@@ -40477,10 +40527,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40477
40527
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
40478
40528
|
}
|
|
40479
40529
|
} else {
|
|
40480
|
-
if (node instanceof
|
|
40530
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R) {
|
|
40481
40531
|
if (node.text !== "") {
|
|
40482
40532
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
40483
40533
|
}
|
|
40534
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_39__/* .DateTimeNode */ .Z) {
|
|
40535
|
+
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
40484
40536
|
} else {
|
|
40485
40537
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
40486
40538
|
}
|
|
@@ -40536,7 +40588,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40536
40588
|
}
|
|
40537
40589
|
|
|
40538
40590
|
if (canCopy) {
|
|
40539
|
-
if (!(_node instanceof
|
|
40591
|
+
if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j && _node.text.substr(0, 1) === "C")) {
|
|
40540
40592
|
childArray.push(_node.node2Json(rec, isCopy));
|
|
40541
40593
|
}
|
|
40542
40594
|
}
|
|
@@ -40589,7 +40641,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40589
40641
|
//const customPropertyObj =
|
|
40590
40642
|
|
|
40591
40643
|
|
|
40592
|
-
this.text = this.getFieldText();
|
|
40644
|
+
this.text = this.getFieldText(clearSign);
|
|
40593
40645
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40594
40646
|
var retObj = {
|
|
40595
40647
|
nodeType: "ntField",
|
|
@@ -40734,13 +40786,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40734
40786
|
var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
|
|
40735
40787
|
|
|
40736
40788
|
if (node) {
|
|
40737
|
-
if (node instanceof
|
|
40789
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R) {
|
|
40738
40790
|
if (node.text !== "") {
|
|
40739
40791
|
nodes.push(node);
|
|
40740
40792
|
}
|
|
40741
40793
|
} else {
|
|
40742
40794
|
if (isClearSign) {
|
|
40743
|
-
if (node instanceof
|
|
40795
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_49__/* .SignNode */ .N) {
|
|
40744
40796
|
if (node.isTemplate) {
|
|
40745
40797
|
nodes.push(node);
|
|
40746
40798
|
}
|
|
@@ -40753,11 +40805,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40753
40805
|
}
|
|
40754
40806
|
}
|
|
40755
40807
|
|
|
40756
|
-
if (node instanceof
|
|
40808
|
+
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") {
|
|
40757
40809
|
hoEditorFactory.structureConvert._markNodes.push(node);
|
|
40758
40810
|
}
|
|
40759
40811
|
|
|
40760
|
-
if (node instanceof
|
|
40812
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_49__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(node.customProperty.bce01)) {
|
|
40761
40813
|
hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
40762
40814
|
}
|
|
40763
40815
|
}
|
|
@@ -40766,14 +40818,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40766
40818
|
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
40767
40819
|
|
|
40768
40820
|
if (_node2) {
|
|
40769
|
-
if (_node2 instanceof
|
|
40821
|
+
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R) {
|
|
40770
40822
|
if (_node2.text !== "") {
|
|
40771
40823
|
nodes.push(_node2);
|
|
40772
40824
|
}
|
|
40773
40825
|
} else {
|
|
40774
40826
|
//nodes.push(node);
|
|
40775
40827
|
if (isClearSign) {
|
|
40776
|
-
if (_node2 instanceof
|
|
40828
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_49__/* .SignNode */ .N) {
|
|
40777
40829
|
if (_node2.isTemplate) {
|
|
40778
40830
|
nodes.push(_node2);
|
|
40779
40831
|
}
|
|
@@ -40786,11 +40838,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40786
40838
|
}
|
|
40787
40839
|
}
|
|
40788
40840
|
|
|
40789
|
-
if (_node2 instanceof
|
|
40841
|
+
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") {
|
|
40790
40842
|
hoEditorFactory.structureConvert._markNodes.push(_node2);
|
|
40791
40843
|
}
|
|
40792
40844
|
|
|
40793
|
-
if (_node2 instanceof
|
|
40845
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_49__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(_node2.customProperty.bce01)) {
|
|
40794
40846
|
hoEditorFactory.structureConvert._superiorSign[0] = _node2;
|
|
40795
40847
|
}
|
|
40796
40848
|
}
|
|
@@ -40811,14 +40863,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40811
40863
|
}
|
|
40812
40864
|
|
|
40813
40865
|
if (nodes.length > 0) {
|
|
40814
|
-
if (nodes[0] instanceof
|
|
40866
|
+
if (nodes[0] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j) {
|
|
40815
40867
|
var _temp$childNodes;
|
|
40816
40868
|
|
|
40817
40869
|
temp.childNodes.length = 0;
|
|
40818
40870
|
|
|
40819
40871
|
(_temp$childNodes = temp.childNodes).splice.apply(_temp$childNodes, [0, 0].concat(nodes));
|
|
40820
40872
|
|
|
40821
|
-
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof
|
|
40873
|
+
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNode */ .j) {
|
|
40822
40874
|
temp._childNodes2.splice(1, 1);
|
|
40823
40875
|
|
|
40824
40876
|
temp._childNodes2.splice(1, 0, temp.childNodes[1]);
|
|
@@ -40838,16 +40890,16 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40838
40890
|
var sChildNode = temp.childNodes[0];
|
|
40839
40891
|
var eChildNode = temp.childNodes[temp.childNodes.length - 1];
|
|
40840
40892
|
|
|
40841
|
-
if (!(sChildNode instanceof
|
|
40893
|
+
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) {
|
|
40842
40894
|
throw new Error("经检测,病历元素“" + temp.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
|
|
40843
40895
|
}
|
|
40844
40896
|
|
|
40845
|
-
if (!(eChildNode instanceof
|
|
40897
|
+
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) {
|
|
40846
40898
|
throw new Error("经检测,病历元素“" + temp.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
|
|
40847
40899
|
}
|
|
40848
40900
|
}
|
|
40849
40901
|
|
|
40850
|
-
if (temp.childNodes[1] instanceof
|
|
40902
|
+
if (temp.childNodes[1] instanceof _TableFormula__WEBPACK_IMPORTED_MODULE_50__/* .TableFormula */ .N) {
|
|
40851
40903
|
return temp;
|
|
40852
40904
|
}
|
|
40853
40905
|
|
|
@@ -40882,11 +40934,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40882
40934
|
|
|
40883
40935
|
for (var i = 0; i < lineArr.length; i++) {
|
|
40884
40936
|
var lineText = lineArr[i];
|
|
40885
|
-
var textNode = new
|
|
40937
|
+
var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_52__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_37__/* .NodeType.ntText */ .Jq.ntText, lineText, styleIndex);
|
|
40886
40938
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
|
|
40887
40939
|
|
|
40888
40940
|
if (i < lineArr.length - 1) {
|
|
40889
|
-
var paraNode = new
|
|
40941
|
+
var paraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
40890
40942
|
paraNode.styleIndex = styleIndex;
|
|
40891
40943
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paraNode);
|
|
40892
40944
|
}
|
|
@@ -40938,17 +40990,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40938
40990
|
textArr = textStr.split("\n");
|
|
40939
40991
|
}
|
|
40940
40992
|
|
|
40941
|
-
var textNode1 = new
|
|
40993
|
+
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);
|
|
40942
40994
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
|
|
40943
40995
|
|
|
40944
40996
|
if (textArr.length > 1) {
|
|
40945
40997
|
for (var _i2 = 1; _i2 < textArr.length; _i2++) {
|
|
40946
|
-
var paragraNode = new
|
|
40998
|
+
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_45__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
40947
40999
|
paragraNode.styleIndex = styleIndex;
|
|
40948
41000
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paragraNode);
|
|
40949
41001
|
|
|
40950
41002
|
if (textArr[_i2] !== "") {
|
|
40951
|
-
var _textNode = new
|
|
41003
|
+
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);
|
|
40952
41004
|
|
|
40953
41005
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode);
|
|
40954
41006
|
}
|
|
@@ -40967,7 +41019,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40967
41019
|
var eIndex = expressArr[_i3].eIndex;
|
|
40968
41020
|
var expressJson = temp.text.substring(sIndex + 16, eIndex);
|
|
40969
41021
|
var expressObj = JSON.parse(expressJson);
|
|
40970
|
-
var expressStyle =
|
|
41022
|
+
var expressStyle = _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_44__/* .ExpressStyle */ .e[expressObj.expressStyle];
|
|
40971
41023
|
|
|
40972
41024
|
if (!expressStyle) {
|
|
40973
41025
|
expressStyle = expressObj.expressStyle;
|
|
@@ -40977,18 +41029,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40977
41029
|
|
|
40978
41030
|
if (expressStyle.includes("style")) {
|
|
40979
41031
|
//经期史
|
|
40980
|
-
medicalExpressNode = new
|
|
41032
|
+
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);
|
|
40981
41033
|
} else {
|
|
40982
41034
|
if (expressStyle === "PupilMapNode") {
|
|
40983
|
-
medicalExpressNode = new
|
|
41035
|
+
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);
|
|
40984
41036
|
} else if (expressStyle === "LightLocationMapNode") {
|
|
40985
|
-
medicalExpressNode = new
|
|
41037
|
+
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);
|
|
40986
41038
|
} else if (expressStyle === "FetalHeartMapNode") {
|
|
40987
|
-
medicalExpressNode = new
|
|
41039
|
+
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);
|
|
40988
41040
|
} else if (expressStyle === "PermanentTeethMapNode") {
|
|
40989
|
-
medicalExpressNode = new
|
|
41041
|
+
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);
|
|
40990
41042
|
} else {
|
|
40991
|
-
medicalExpressNode = new
|
|
41043
|
+
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);
|
|
40992
41044
|
}
|
|
40993
41045
|
}
|
|
40994
41046
|
|
|
@@ -41016,8 +41068,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
41016
41068
|
} else {
|
|
41017
41069
|
temp._childNodes2.splice(1, temp._childNodes2.length - 2);
|
|
41018
41070
|
|
|
41019
|
-
var markNode = new
|
|
41020
|
-
styleIndex,
|
|
41071
|
+
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,
|
|
41072
|
+
styleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_42__/* .MarkNodeType.mtContent */ .q.mtContent);
|
|
41021
41073
|
|
|
41022
41074
|
temp._childNodes.splice(1, 0, markNode);
|
|
41023
41075
|
|
|
@@ -51574,7 +51626,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
51574
51626
|
/*
|
|
51575
51627
|
* @Author: your name
|
|
51576
51628
|
* @Date: 2021-09-01 16:51:49
|
|
51577
|
-
* @LastEditTime: 2022-
|
|
51629
|
+
* @LastEditTime: 2022-08-01 10:19:27
|
|
51578
51630
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
51579
51631
|
* @Description: In User Settings Edit
|
|
51580
51632
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -51585,7 +51637,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51585
51637
|
|
|
51586
51638
|
var _super = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(DrawSignNode);
|
|
51587
51639
|
|
|
51588
|
-
function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition, attribute, customProperty) {
|
|
51640
|
+
function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition, attribute, customProperty, connectChar) {
|
|
51589
51641
|
var _this;
|
|
51590
51642
|
|
|
51591
51643
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawSignNode);
|
|
@@ -51599,6 +51651,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51599
51651
|
_this._fingerPosition = 0;
|
|
51600
51652
|
_this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
51601
51653
|
|
|
51654
|
+
_this._connectChar = ":";
|
|
51602
51655
|
_this._abi02 = "";
|
|
51603
51656
|
_this._number = number;
|
|
51604
51657
|
_this._imgSrc = imgSrc;
|
|
@@ -51607,6 +51660,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51607
51660
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
51608
51661
|
_this._fingerPosition = fingerPosition;
|
|
51609
51662
|
_this._attribute = attribute;
|
|
51663
|
+
_this._connectChar = connectChar;
|
|
51610
51664
|
_this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : ""; //this._textStyle = cbStyle.;
|
|
51611
51665
|
|
|
51612
51666
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight; //this.dHeight = 40;
|
|
@@ -51649,7 +51703,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51649
51703
|
}
|
|
51650
51704
|
|
|
51651
51705
|
if (_this.attribute === 2 && _this._abi02 !== "") {
|
|
51652
|
-
_this._drawAbi02 = new createjs.Text(_this._abi02 +
|
|
51706
|
+
_this._drawAbi02 = new createjs.Text(_this._abi02 + _this._connectChar, _this._textStyle, '#000000');
|
|
51653
51707
|
_this.dWidth += _this._drawAbi02.getMeasuredWidth();
|
|
51654
51708
|
}
|
|
51655
51709
|
}
|
|
@@ -51988,7 +52042,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51988
52042
|
}
|
|
51989
52043
|
|
|
51990
52044
|
if (_this3.attribute === 2 && _this3.abi02 !== "") {
|
|
51991
|
-
var abi02Text = new createjs.Text(_this3.abi02 +
|
|
52045
|
+
var abi02Text = new createjs.Text(_this3.abi02 + _this3._connectChar, _this3.textStyle, '#000000');
|
|
51992
52046
|
abi02Text.textBaseline = 'alphabetic';
|
|
51993
52047
|
abi02Text.textAlign = 'left';
|
|
51994
52048
|
|
|
@@ -55381,6 +55435,7 @@ var Caret = /*#__PURE__*/function () {
|
|
|
55381
55435
|
this.div_cursor.style.left = x + "px";
|
|
55382
55436
|
this.div_cursor.style.top = y + "px";
|
|
55383
55437
|
this.div_cursor.style.opacity = "1";
|
|
55438
|
+
this.div_cursor.style.width = "0.1px";
|
|
55384
55439
|
this.updateCaret();
|
|
55385
55440
|
this.setPage(pageIndex);
|
|
55386
55441
|
}
|
|
@@ -63065,6 +63120,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63065
63120
|
end: ""
|
|
63066
63121
|
};
|
|
63067
63122
|
this._pnode = null;
|
|
63123
|
+
this._isError = false;
|
|
63068
63124
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
63069
63125
|
this._startPath = startPath;
|
|
63070
63126
|
this._endPath = endPath;
|
|
@@ -63545,27 +63601,28 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63545
63601
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
63546
63602
|
|
|
63547
63603
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psReview */ .Dh.psReview)) {
|
|
63548
|
-
_context.next =
|
|
63604
|
+
_context.next = 11;
|
|
63549
63605
|
break;
|
|
63550
63606
|
}
|
|
63551
63607
|
|
|
63552
63608
|
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R)) {
|
|
63553
|
-
_context.next =
|
|
63609
|
+
_context.next = 11;
|
|
63554
63610
|
break;
|
|
63555
63611
|
}
|
|
63556
63612
|
|
|
63557
63613
|
textStyle = hoEditorFactory.docTree.styles[currRange.npEnd.node.styleIndex];
|
|
63558
63614
|
|
|
63559
63615
|
if (!(textStyle.strikeout && currRange.npEnd.node.text.length > 0)) {
|
|
63560
|
-
_context.next =
|
|
63616
|
+
_context.next = 11;
|
|
63561
63617
|
break;
|
|
63562
63618
|
}
|
|
63563
63619
|
|
|
63564
63620
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("该内容当前已处于删除状态!");
|
|
63565
63621
|
|
|
63622
|
+
this._isError = true;
|
|
63566
63623
|
return _context.abrupt("return");
|
|
63567
63624
|
|
|
63568
|
-
case
|
|
63625
|
+
case 11:
|
|
63569
63626
|
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
|
|
63570
63627
|
// if (npFirst && npFirst.node) {
|
|
63571
63628
|
// //const parentNode = hoEditorFactory.docTree.getParentNode(this._startPath);
|
|
@@ -63578,41 +63635,42 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63578
63635
|
//if(nodes.length == 0) return;
|
|
63579
63636
|
|
|
63580
63637
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
63581
|
-
_context.next =
|
|
63638
|
+
_context.next = 38;
|
|
63582
63639
|
break;
|
|
63583
63640
|
}
|
|
63584
63641
|
|
|
63585
63642
|
n = 0;
|
|
63586
63643
|
|
|
63587
|
-
case
|
|
63644
|
+
case 14:
|
|
63588
63645
|
if (!(n < nodes.length)) {
|
|
63589
|
-
_context.next =
|
|
63646
|
+
_context.next = 38;
|
|
63590
63647
|
break;
|
|
63591
63648
|
}
|
|
63592
63649
|
|
|
63593
63650
|
node = nodes[n];
|
|
63594
63651
|
|
|
63595
63652
|
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)) {
|
|
63596
|
-
_context.next =
|
|
63653
|
+
_context.next = 20;
|
|
63597
63654
|
break;
|
|
63598
63655
|
}
|
|
63599
63656
|
|
|
63600
63657
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
|
|
63601
63658
|
|
|
63602
|
-
|
|
63659
|
+
this._isError = true;
|
|
63660
|
+
return _context.abrupt("return");
|
|
63603
63661
|
|
|
63604
|
-
case
|
|
63662
|
+
case 20:
|
|
63605
63663
|
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) {
|
|
63606
63664
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
63607
63665
|
}
|
|
63608
63666
|
|
|
63609
63667
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
|
|
63610
|
-
_context.next =
|
|
63668
|
+
_context.next = 31;
|
|
63611
63669
|
break;
|
|
63612
63670
|
}
|
|
63613
63671
|
|
|
63614
63672
|
if (node.isAllowDelete) {
|
|
63615
|
-
_context.next =
|
|
63673
|
+
_context.next = 31;
|
|
63616
63674
|
break;
|
|
63617
63675
|
}
|
|
63618
63676
|
|
|
@@ -63636,28 +63694,30 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63636
63694
|
|
|
63637
63695
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
|
|
63638
63696
|
|
|
63639
|
-
|
|
63697
|
+
this._isError = true;
|
|
63698
|
+
return _context.abrupt("return");
|
|
63640
63699
|
|
|
63641
|
-
case
|
|
63700
|
+
case 31:
|
|
63642
63701
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
63643
|
-
_context.next =
|
|
63702
|
+
_context.next = 35;
|
|
63644
63703
|
break;
|
|
63645
63704
|
}
|
|
63646
63705
|
|
|
63647
63706
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("该签名元素不允许删除!", "系统提示");
|
|
63648
63707
|
|
|
63649
|
-
|
|
63708
|
+
this._isError = true;
|
|
63709
|
+
return _context.abrupt("return");
|
|
63650
63710
|
|
|
63651
|
-
case
|
|
63711
|
+
case 35:
|
|
63652
63712
|
n++;
|
|
63653
|
-
_context.next =
|
|
63713
|
+
_context.next = 14;
|
|
63654
63714
|
break;
|
|
63655
63715
|
|
|
63656
|
-
case
|
|
63716
|
+
case 38:
|
|
63657
63717
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
63658
63718
|
|
|
63659
63719
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
63660
|
-
_context.next =
|
|
63720
|
+
_context.next = 44;
|
|
63661
63721
|
break;
|
|
63662
63722
|
}
|
|
63663
63723
|
|
|
@@ -63670,24 +63730,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63670
63730
|
});
|
|
63671
63731
|
|
|
63672
63732
|
if (_res[0]) {
|
|
63673
|
-
_context.next =
|
|
63733
|
+
_context.next = 44;
|
|
63674
63734
|
break;
|
|
63675
63735
|
}
|
|
63676
63736
|
|
|
63677
63737
|
return _context.abrupt("return");
|
|
63678
63738
|
|
|
63679
|
-
case
|
|
63739
|
+
case 44:
|
|
63680
63740
|
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函数完成后调用这个
|
|
63681
63741
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
63682
63742
|
|
|
63683
63743
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
63684
|
-
_context.next =
|
|
63744
|
+
_context.next = 47;
|
|
63685
63745
|
break;
|
|
63686
63746
|
}
|
|
63687
63747
|
|
|
63688
63748
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
63689
63749
|
|
|
63690
|
-
case
|
|
63750
|
+
case 47:
|
|
63691
63751
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
63692
63752
|
// this._hoEditorFactory,
|
|
63693
63753
|
// currRange.startPath,
|
|
@@ -63700,33 +63760,33 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63700
63760
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
63701
63761
|
|
|
63702
63762
|
if (!(res == 1)) {
|
|
63703
|
-
_context.next =
|
|
63763
|
+
_context.next = 59;
|
|
63704
63764
|
break;
|
|
63705
63765
|
}
|
|
63706
63766
|
|
|
63707
63767
|
changeEvent.beforeChangePath = startPath;
|
|
63708
63768
|
changeEvent.afterChangePath = this._tmp.start;
|
|
63709
|
-
_context.next =
|
|
63769
|
+
_context.next = 57;
|
|
63710
63770
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
63711
63771
|
|
|
63712
|
-
case
|
|
63772
|
+
case 57:
|
|
63713
63773
|
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));
|
|
63714
63774
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
63715
63775
|
|
|
63716
|
-
case
|
|
63776
|
+
case 59:
|
|
63717
63777
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
63718
63778
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
63719
63779
|
aNode = currRange.npStart.node;
|
|
63720
63780
|
|
|
63721
63781
|
if (!(aNode && pnode)) {
|
|
63722
|
-
_context.next =
|
|
63782
|
+
_context.next = 65;
|
|
63723
63783
|
break;
|
|
63724
63784
|
}
|
|
63725
63785
|
|
|
63726
|
-
_context.next =
|
|
63786
|
+
_context.next = 65;
|
|
63727
63787
|
return this.ParentRepaint(pnode);
|
|
63728
63788
|
|
|
63729
|
-
case
|
|
63789
|
+
case 65:
|
|
63730
63790
|
case "end":
|
|
63731
63791
|
return _context.stop();
|
|
63732
63792
|
}
|
|
@@ -63771,6 +63831,11 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63771
63831
|
get: function get() {
|
|
63772
63832
|
return this._affectText;
|
|
63773
63833
|
}
|
|
63834
|
+
}, {
|
|
63835
|
+
key: "isError",
|
|
63836
|
+
get: function get() {
|
|
63837
|
+
return this._isError;
|
|
63838
|
+
}
|
|
63774
63839
|
}]);
|
|
63775
63840
|
|
|
63776
63841
|
return NodesDeleteUndoUnit;
|
|
@@ -200646,61 +200711,14 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200646
200711
|
function DrawSelectLevel(hoEditorFactoryID, pageIndex, selectCanvas, docIndex, drawPageIndex) {
|
|
200647
200712
|
(0,classCallCheck/* default */.Z)(this, DrawSelectLevel);
|
|
200648
200713
|
|
|
200714
|
+
this._scrollYList = [];
|
|
200649
200715
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
200650
|
-
this._selectCanvas = selectCanvas;
|
|
200651
|
-
|
|
200716
|
+
this._selectCanvas = selectCanvas;
|
|
200652
200717
|
this._pageIndex = pageIndex;
|
|
200653
200718
|
this._docIndex = docIndex;
|
|
200654
200719
|
this._drawPageIndex = drawPageIndex;
|
|
200655
|
-
this._selectStage = null;
|
|
200656
|
-
|
|
200657
|
-
// this._selectStage = new createjs.StageGL(selectCanvas, {
|
|
200658
|
-
// transparent: true,
|
|
200659
|
-
// });
|
|
200660
|
-
// } else {
|
|
200661
|
-
// this._selectStage = new createjs.Stage(selectCanvas);
|
|
200662
|
-
// }
|
|
200663
|
-
// (this._domStage as any).setClearColor("#ffffff");
|
|
200664
|
-
// this._selectStage.enableMouseOver(1);
|
|
200665
|
-
// this._mainContainer = new createjs.Container();
|
|
200666
|
-
|
|
200667
|
-
this._mouseDownCount = 0; // this.mainBackGround = new createjs.Shape();
|
|
200668
|
-
// this.mainBackGround.x = 0;
|
|
200669
|
-
// this.mainBackGround.y = 0;
|
|
200670
|
-
// this.mainBackGround.alpha = 0.01;
|
|
200671
|
-
// this.mainBackGround.setBounds(
|
|
200672
|
-
// 0,
|
|
200673
|
-
// 0,
|
|
200674
|
-
// hoeditorfactory.pageProperty.widthPixes,
|
|
200675
|
-
// hoeditorfactory.pageProperty.heightPixes
|
|
200676
|
-
// );
|
|
200677
|
-
// const rect = this.mainBackGround.getBounds();
|
|
200678
|
-
// this.mainBackGround.graphics
|
|
200679
|
-
// .beginFill("blue")
|
|
200680
|
-
// .rect(rect.x, rect.y, rect.width, rect.height);
|
|
200681
|
-
// this._selectStage.addChild(this.mainBackGround);
|
|
200682
|
-
// this.mainBackGround.addEventListener("mousedown", (aevent: any) => {
|
|
200683
|
-
// this.mouseDown(aevent)
|
|
200684
|
-
// );
|
|
200685
|
-
// this.mainBackGround.addEventListener("dblclick", (aevent: any) => {
|
|
200686
|
-
// this.mouseDblClick(aevent);
|
|
200687
|
-
// });
|
|
200688
|
-
|
|
200689
|
-
/* case PaintState.psPreview: {
|
|
200690
|
-
break;
|
|
200691
|
-
}
|
|
200692
|
-
case PaintState.psPrint: {
|
|
200693
|
-
break;
|
|
200694
|
-
} default: {
|
|
200695
|
-
//this.mouseClick(aevent);
|
|
200696
|
-
break;
|
|
200697
|
-
}
|
|
200698
|
-
}
|
|
200699
|
-
});*/
|
|
200700
|
-
// this.mainBackGround.addEventListener("click", (aevent: any) => {
|
|
200701
|
-
// this.mouseClick(aevent);
|
|
200702
|
-
// });
|
|
200703
|
-
|
|
200720
|
+
this._selectStage = null;
|
|
200721
|
+
this._mouseDownCount = 0;
|
|
200704
200722
|
this._oldRange = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange;
|
|
200705
200723
|
this._shapesColor = new Map();
|
|
200706
200724
|
}
|
|
@@ -200724,21 +200742,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200724
200742
|
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;
|
|
200725
200743
|
dPage.setEnableMouseOver(5);
|
|
200726
200744
|
|
|
200727
|
-
this._selectStage.addChild(dPage.selectContainer);
|
|
200728
|
-
// if (len > 1) {
|
|
200729
|
-
// if (this._docIndex === 0) {
|
|
200730
|
-
// if (this._drawPageIndex === 0) {
|
|
200731
|
-
// this._selectStage.addChild(dPage.headerLeftTag);
|
|
200732
|
-
// this._selectStage.addChild(dPage.headerRightTag);
|
|
200733
|
-
// }
|
|
200734
|
-
// } else if (this._docIndex === len - 1) {
|
|
200735
|
-
// if (this._drawPageIndex === hoEditorFactory.drawTree.drawPages.length - 1) {
|
|
200736
|
-
// this._selectStage.addChild(dPage.footerLeftTag);
|
|
200737
|
-
// this._selectStage.addChild(dPage.footerRightTag);
|
|
200738
|
-
// }
|
|
200739
|
-
// }
|
|
200740
|
-
// } else {
|
|
200741
|
-
|
|
200745
|
+
this._selectStage.addChild(dPage.selectContainer);
|
|
200742
200746
|
|
|
200743
200747
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview) {
|
|
200744
200748
|
this._selectStage.addChild(dPage.headerLeftTag);
|
|
@@ -200748,11 +200752,9 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200748
200752
|
this._selectStage.addChild(dPage.footerLeftTag);
|
|
200749
200753
|
|
|
200750
200754
|
this._selectStage.addChild(dPage.footerRightTag);
|
|
200751
|
-
}
|
|
200752
|
-
|
|
200755
|
+
}
|
|
200753
200756
|
|
|
200754
200757
|
this._selectStage.addEventListener('stagemousedown', function (aevent) {
|
|
200755
|
-
// this.mouseDown(aevent)
|
|
200756
200758
|
switch (hoEditorFactory.drawTree.paintStatus) {
|
|
200757
200759
|
case DrawTree/* PaintState.psPreview */.Dh.psPreview:
|
|
200758
200760
|
{
|
|
@@ -200776,7 +200778,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200776
200778
|
});
|
|
200777
200779
|
|
|
200778
200780
|
this._selectStage.addEventListener('stagemouseup', function (aevent) {
|
|
200779
|
-
// this.mouseup(aevent);
|
|
200780
200781
|
switch (hoEditorFactory.drawTree.paintStatus) {
|
|
200781
200782
|
case DrawTree/* PaintState.psPreview */.Dh.psPreview:
|
|
200782
200783
|
{
|
|
@@ -200822,10 +200823,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200822
200823
|
}
|
|
200823
200824
|
});
|
|
200824
200825
|
|
|
200825
|
-
this._selectStage.update();
|
|
200826
|
-
// context?.clearRect(0, 0, this._selectCanvas.width, this._selectCanvas.height);
|
|
200827
|
-
// this._selectCanvas.width = 0.01 + this._selectCanvas.width;
|
|
200828
|
-
|
|
200826
|
+
this._selectStage.update();
|
|
200829
200827
|
}
|
|
200830
200828
|
}
|
|
200831
200829
|
}, {
|
|
@@ -200840,13 +200838,10 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200840
200838
|
|
|
200841
200839
|
this._selectStage.removeAllChildren();
|
|
200842
200840
|
|
|
200843
|
-
this._selectStage.canvas = null;
|
|
200844
|
-
|
|
200841
|
+
this._selectStage.canvas = null;
|
|
200845
200842
|
this._selectStage = null;
|
|
200846
200843
|
this._selectCanvas.width = 0;
|
|
200847
|
-
this._selectCanvas.height = 0;
|
|
200848
|
-
// ctx?.clearRect(0, 0, this._selectCanvas.width, this._selectCanvas.height);
|
|
200849
|
-
// ctx?.restore();
|
|
200844
|
+
this._selectCanvas.height = 0;
|
|
200850
200845
|
}
|
|
200851
200846
|
}
|
|
200852
200847
|
}, {
|
|
@@ -200999,15 +200994,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200999
200994
|
return _context.abrupt("return", true);
|
|
201000
200995
|
|
|
201001
200996
|
case 28:
|
|
201002
|
-
// let dline = targetArea.topDline;
|
|
201003
|
-
// if (dline instanceof DrawPageTable) {
|
|
201004
|
-
// dline = (dline as DrawPageTable).table.drawTable.getFirstDrawLine();
|
|
201005
|
-
// }
|
|
201006
|
-
// hoeditorfactory.drawTree.moveCaretToDitem(
|
|
201007
|
-
// startPos.page,
|
|
201008
|
-
// dline as DrawLine,
|
|
201009
|
-
// targetArea.drawItems.length - 1
|
|
201010
|
-
// ); // startPos.path);
|
|
201011
200997
|
hoEditorFactory.drawTree.moveCaretToPath(startPos.path);
|
|
201012
200998
|
return _context.abrupt("return", true);
|
|
201013
200999
|
|
|
@@ -201131,58 +201117,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201131
201117
|
}
|
|
201132
201118
|
|
|
201133
201119
|
return mouseDblClick;
|
|
201134
|
-
}()
|
|
201135
|
-
// if (aevent.currentTarget === this.stage) {
|
|
201136
|
-
// hoeditorfactory.drawTree.selectRange.clearAllSelectShape();
|
|
201137
|
-
// hoeditorfactory.drawTree.selectRange.beginRangeSelect = false;
|
|
201138
|
-
// if (
|
|
201139
|
-
// hoeditorfactory.drawTree.activePage?.drawDomLevel?.activeDrawRect.rootPath.startsWith(
|
|
201140
|
-
// gMainPath
|
|
201141
|
-
// )
|
|
201142
|
-
// ) {
|
|
201143
|
-
// hoeditorfactory.drawTree.activePage = this._drawPage;
|
|
201144
|
-
// }
|
|
201145
|
-
// this._oldRange = hoeditorfactory.docTree.curDomRange.clone();
|
|
201146
|
-
// if (!this._drawPage.drawDomLevel) {
|
|
201147
|
-
// return false;
|
|
201148
|
-
// }
|
|
201149
|
-
// const startPos = hoeditorfactory.drawTree.getStagePosition(
|
|
201150
|
-
// this._drawPage,
|
|
201151
|
-
// this._drawPage.drawDomLevel.activeDrawRect,
|
|
201152
|
-
// aevent.stageX,
|
|
201153
|
-
// aevent.stageY
|
|
201154
|
-
// );
|
|
201155
|
-
// if (startPos) {
|
|
201156
|
-
// const np = hoeditorfactory.docTree.findNodePositionByPath(startPos.path);
|
|
201157
|
-
// if (np && np.node) {
|
|
201158
|
-
// //鼠标左键单击
|
|
201159
|
-
// if (
|
|
201160
|
-
// np.node instanceof ImageNode &&
|
|
201161
|
-
// aevent.nativeEvent.button === 0
|
|
201162
|
-
// ) {
|
|
201163
|
-
// const bclickItem = hoeditorfactory.drawTree.getChildByPos(
|
|
201164
|
-
// this._drawPage,
|
|
201165
|
-
// this._drawPage.drawDomLevel.activeDrawRect,
|
|
201166
|
-
// aevent.stageX,
|
|
201167
|
-
// aevent.stageY
|
|
201168
|
-
// )[1];
|
|
201169
|
-
// if (bclickItem) {
|
|
201170
|
-
// const nodeClickEvent = new NodeClickEvent(np.node, "click");
|
|
201171
|
-
// hoeditorfactory.docTree.nodeClick(nodeClickEvent);
|
|
201172
|
-
// }
|
|
201173
|
-
// }
|
|
201174
|
-
// return true;
|
|
201175
|
-
// }
|
|
201176
|
-
// const selchange = new SelectionChangeEvent(
|
|
201177
|
-
// this._oldRange,
|
|
201178
|
-
// hoeditorfactory.docTree.curDomRange
|
|
201179
|
-
// );
|
|
201180
|
-
// hoeditorfactory.docTree.selectChange(selchange);
|
|
201181
|
-
// }
|
|
201182
|
-
// }
|
|
201183
|
-
// return true;
|
|
201184
|
-
// }
|
|
201185
|
-
|
|
201120
|
+
}()
|
|
201186
201121
|
}, {
|
|
201187
201122
|
key: "mouseDownHandle",
|
|
201188
201123
|
value: function mouseDownHandle(aevent) {
|
|
@@ -201339,7 +201274,8 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201339
201274
|
|
|
201340
201275
|
if (hoeditorfactory.drawTree.inViewPages.indexOf(this._pageIndex) < 0) {
|
|
201341
201276
|
hoeditorfactory.drawTree.inViewPages.push(this._pageIndex);
|
|
201342
|
-
}
|
|
201277
|
+
} // this._scrollYList.push(aevent.stageY);
|
|
201278
|
+
|
|
201343
201279
|
|
|
201344
201280
|
if (hoeditorfactory.drawTree.selectRange.beginRangeSelect && (parseInt(aevent.nativeEvent.buttons) && 1) === 1) {
|
|
201345
201281
|
var _hoeditorfactory$draw2;
|
|
@@ -201366,36 +201302,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201366
201302
|
hoeditorfactory.drawTree.selectRange.spEnd = endPos;
|
|
201367
201303
|
hoeditorfactory.drawTree.drawSelectRange();
|
|
201368
201304
|
}
|
|
201369
|
-
}
|
|
201370
|
-
// hoeditorfactory.drawTree.selectRange.beginRangeSelect = false;
|
|
201371
|
-
// const np = hoeditorfactory.docTree.findNodePositionByPath(endPos.path);
|
|
201372
|
-
// if (np && np.node) {
|
|
201373
|
-
// const bclickItem = hoeditorfactory.drawTree.getChildByPos(
|
|
201374
|
-
// this._drawPage,
|
|
201375
|
-
// this._drawPage.drawDomLevel.activeDrawRect,
|
|
201376
|
-
// aevent.stageX,
|
|
201377
|
-
// aevent.stageY
|
|
201378
|
-
// )[1];
|
|
201379
|
-
// if (bclickItem) {
|
|
201380
|
-
// const nodeNeedModifyEvent = new NodeNeedModifyEvent(
|
|
201381
|
-
// np.node as BaseNode,
|
|
201382
|
-
// "move",
|
|
201383
|
-
// this._drawPage.pageIndex,
|
|
201384
|
-
// true
|
|
201385
|
-
// );
|
|
201386
|
-
// hoeditorfactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
201387
|
-
// } else {
|
|
201388
|
-
// const nodeNeedModifyEvent = new NodeNeedModifyEvent(
|
|
201389
|
-
// np.node,
|
|
201390
|
-
// "",
|
|
201391
|
-
// this._drawPage.pageIndex,
|
|
201392
|
-
// false
|
|
201393
|
-
// );
|
|
201394
|
-
// hoeditorfactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
201395
|
-
// }
|
|
201396
|
-
// }
|
|
201397
|
-
// }
|
|
201398
|
-
|
|
201305
|
+
}
|
|
201399
201306
|
} //return true;
|
|
201400
201307
|
|
|
201401
201308
|
}, {
|
|
@@ -201404,6 +201311,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201404
201311
|
var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
201405
201312
|
|
|
201406
201313
|
if (hoeditorfactory.drawTree.selectRange) {
|
|
201314
|
+
this._scrollYList = [];
|
|
201407
201315
|
var startPos = hoeditorfactory.drawTree.selectRange.spStart;
|
|
201408
201316
|
var endPos = hoeditorfactory.drawTree.selectRange.spEnd;
|
|
201409
201317
|
|
|
@@ -201413,12 +201321,9 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201413
201321
|
|
|
201414
201322
|
if (endPos.index === -1) {
|
|
201415
201323
|
hoeditorfactory.drawTree.moveCaretToDitem(startPos.page, startPos.dline, startPos.index);
|
|
201416
|
-
} else
|
|
201417
|
-
|
|
201418
|
-
|
|
201419
|
-
// startPos.index
|
|
201420
|
-
// );
|
|
201421
|
-
|
|
201324
|
+
} else {
|
|
201325
|
+
hoeditorfactory.drawTree.moveCaretToPath(startPos.path);
|
|
201326
|
+
}
|
|
201422
201327
|
} else {
|
|
201423
201328
|
if (hoeditorfactory.drawTree.activePage) hoeditorfactory.drawTree.moveEditTo(hoeditorfactory.drawTree.activePage.pageIndex, 0, 0);
|
|
201424
201329
|
|
|
@@ -207621,7 +207526,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
207621
207526
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207622
207527
|
var ParagraphNode = __webpack_require__(13880);
|
|
207623
207528
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207624
|
-
/* harmony default export */ var version = ('2.0.
|
|
207529
|
+
/* harmony default export */ var version = ('2.0.81');
|
|
207625
207530
|
;// 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&
|
|
207626
207531
|
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)}
|
|
207627
207532
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -211449,7 +211354,6 @@ var GestationNode = __webpack_require__(55817);
|
|
|
211449
211354
|
|
|
211450
211355
|
|
|
211451
211356
|
|
|
211452
|
-
|
|
211453
211357
|
|
|
211454
211358
|
|
|
211455
211359
|
var StructureConvert = /*#__PURE__*/function () {
|
|
@@ -212277,13 +212181,13 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212277
212181
|
xmlRoot += x2js.js2xml(_userHistories);
|
|
212278
212182
|
xmlRoot += "</userHistories>";
|
|
212279
212183
|
xmlRoot += "<headers>";
|
|
212280
|
-
xmlRoot = this.doc2Json("header", "xml", xmlRoot);
|
|
212184
|
+
xmlRoot = this.doc2Json("header", "xml", xmlRoot, clearSign);
|
|
212281
212185
|
xmlRoot += "</headers>";
|
|
212282
212186
|
xmlRoot += "<main>";
|
|
212283
212187
|
xmlRoot = this.doc2Json("main", "xml", xmlRoot, clearSign);
|
|
212284
212188
|
xmlRoot += "</main>";
|
|
212285
212189
|
xmlRoot += "<footers>";
|
|
212286
|
-
xmlRoot = this.doc2Json("footer", "xml", xmlRoot);
|
|
212190
|
+
xmlRoot = this.doc2Json("footer", "xml", xmlRoot, clearSign);
|
|
212287
212191
|
xmlRoot += "</footers>";
|
|
212288
212192
|
xmlRoot += "<docText>";
|
|
212289
212193
|
xmlRoot += hoEditorFactory.vueController.getMainDocText();
|
|
@@ -212850,7 +212754,11 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212850
212754
|
nodeJson = _this.delStyle(node.node2Json());
|
|
212851
212755
|
}
|
|
212852
212756
|
} else {
|
|
212853
|
-
|
|
212757
|
+
if (node instanceof DateTimeNode/* DateTimeNode */.Z && clearSign) {
|
|
212758
|
+
nodeJson = _this.delStyle(node.node2Json(undefined, undefined, undefined, clearSign));
|
|
212759
|
+
} else {
|
|
212760
|
+
nodeJson = _this.delStyle(node.node2Json());
|
|
212761
|
+
}
|
|
212854
212762
|
}
|
|
212855
212763
|
}
|
|
212856
212764
|
}
|
|
@@ -213502,13 +213410,11 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213502
213410
|
message_box_default().alert("不允许将表格粘贴到文本域");
|
|
213503
213411
|
|
|
213504
213412
|
return undefined;
|
|
213505
|
-
}
|
|
213413
|
+
} // if (isPaste && parentNode instanceof CellNode) {
|
|
213414
|
+
// MessageBox.alert("不允许将表格粘贴到表格");
|
|
213415
|
+
// return undefined;
|
|
213416
|
+
// }
|
|
213506
213417
|
|
|
213507
|
-
if (isPaste && parentNode instanceof CellNode/* CellNode */.D) {
|
|
213508
|
-
message_box_default().alert("不允许将表格粘贴到表格");
|
|
213509
|
-
|
|
213510
|
-
return undefined;
|
|
213511
|
-
}
|
|
213512
213418
|
|
|
213513
213419
|
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213514
213420
|
return node;
|
|
@@ -219809,7 +219715,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219809
219715
|
|
|
219810
219716
|
}, {
|
|
219811
219717
|
key: "insertEmptySignNode",
|
|
219812
|
-
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
|
|
219718
|
+
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute, connectChar) {
|
|
219813
219719
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219814
219720
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
219815
219721
|
var startPath = curDomRange.normalize().startPath;
|
|
@@ -219817,7 +219723,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219817
219723
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
219818
219724
|
|
|
219819
219725
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219820
|
-
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute);
|
|
219726
|
+
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute, connectChar);
|
|
219821
219727
|
}
|
|
219822
219728
|
}
|
|
219823
219729
|
/**
|
|
@@ -222281,6 +222187,8 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message);
|
|
|
222281
222187
|
|
|
222282
222188
|
|
|
222283
222189
|
|
|
222190
|
+
|
|
222191
|
+
|
|
222284
222192
|
var EditController = /*#__PURE__*/function () {
|
|
222285
222193
|
function EditController(hoEditorFactoryID) {
|
|
222286
222194
|
(0,classCallCheck/* default */.Z)(this, EditController);
|
|
@@ -222605,19 +222513,77 @@ var EditController = /*#__PURE__*/function () {
|
|
|
222605
222513
|
// });
|
|
222606
222514
|
// }
|
|
222607
222515
|
// const rtfData = clipboardData.getData("text/rtf");
|
|
222516
|
+
// console.log("json:", jsonData);
|
|
222517
|
+
// console.log("html:", htmlData);
|
|
222518
|
+
// console.log("text:", textData);
|
|
222608
222519
|
|
|
222609
222520
|
|
|
222610
222521
|
var nodes;
|
|
222611
222522
|
|
|
222612
|
-
if (jsonData
|
|
222613
|
-
|
|
222523
|
+
if (jsonData) {
|
|
222524
|
+
if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
222525
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
222526
|
+
} else {
|
|
222527
|
+
var jsonObject = JSON.parse(jsonData);
|
|
222528
|
+
|
|
222529
|
+
if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntTable" && parentNode instanceof CellNode/* CellNode */.D) {
|
|
222530
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
222531
|
+
} else {
|
|
222532
|
+
if (htmlData) {
|
|
222533
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctHTML, htmlData);
|
|
222534
|
+
} else {
|
|
222535
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctText, textData);
|
|
222536
|
+
}
|
|
222537
|
+
}
|
|
222538
|
+
}
|
|
222614
222539
|
} else if (htmlData) {
|
|
222615
|
-
//console.log(htmlData);
|
|
222616
222540
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctHTML, htmlData);
|
|
222617
222541
|
} else {
|
|
222618
222542
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctText, textData);
|
|
222619
222543
|
}
|
|
222620
222544
|
|
|
222545
|
+
if (nodes.length === 1 && nodes[0] instanceof TableNode/* TableNode */.Fh && parentNode instanceof CellNode/* CellNode */.D) {
|
|
222546
|
+
var tableNode = nodes[0];
|
|
222547
|
+
|
|
222548
|
+
var _parentNode$table$get = parentNode.table.getCellInfos(parentNode),
|
|
222549
|
+
_parentNode$table$get2 = (0,slicedToArray/* default */.Z)(_parentNode$table$get, 2),
|
|
222550
|
+
rs = _parentNode$table$get2[0],
|
|
222551
|
+
cs = _parentNode$table$get2[1];
|
|
222552
|
+
|
|
222553
|
+
var endRow = 0;
|
|
222554
|
+
var endCol = 0;
|
|
222555
|
+
|
|
222556
|
+
if (hoeditorfactory.docTree.curDomRange.isEmpty) {
|
|
222557
|
+
var re = parentNode.table.rowCount - 1;
|
|
222558
|
+
var ce = parentNode.table.colCount - 1;
|
|
222559
|
+
endRow = re - rs + 1 >= tableNode.rowCount ? tableNode.rowCount : re - rs + 1;
|
|
222560
|
+
endCol = ce - cs + 1 >= tableNode.colCount ? tableNode.colCount : ce - cs + 1;
|
|
222561
|
+
} else {
|
|
222562
|
+
var curDomRange = hoeditorfactory.docTree.curDomRange.normalize();
|
|
222563
|
+
var rowscols = TableNode/* TableNode.getSelectTableRowColInfos */.Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
222564
|
+
endRow = rowscols[3] - rowscols[1] + 1 >= tableNode.rowCount ? tableNode.rowCount : rowscols[3] - rowscols[1] + 1;
|
|
222565
|
+
endCol = rowscols[4] - rowscols[2] + 1 >= tableNode.colCount ? tableNode.colCount : rowscols[4] - rowscols[2] + 1;
|
|
222566
|
+
}
|
|
222567
|
+
|
|
222568
|
+
for (var i = 0; i < endRow; i++) {
|
|
222569
|
+
for (var j = 0; j < endCol; j++) {
|
|
222570
|
+
var fromCell = tableNode.rows[i][j];
|
|
222571
|
+
var toCell = parentNode.table.rows[rs + i][cs + j];
|
|
222572
|
+
|
|
222573
|
+
if (fromCell && toCell) {
|
|
222574
|
+
// const [fr, fc] = fromCell.table.getCellInfos(fromCell);
|
|
222575
|
+
// const [tr, tc] = toCell.table.getCellInfos(toCell);
|
|
222576
|
+
// console.log("fr,fc:", fr, fc);
|
|
222577
|
+
// console.log("tr,tc:", tr, tc);
|
|
222578
|
+
var sCellText = fromCell.getCellText();
|
|
222579
|
+
toCell.setCellText(sCellText, true);
|
|
222580
|
+
}
|
|
222581
|
+
}
|
|
222582
|
+
}
|
|
222583
|
+
|
|
222584
|
+
return;
|
|
222585
|
+
}
|
|
222586
|
+
|
|
222621
222587
|
if (!hoeditorfactory.pasteBase) {
|
|
222622
222588
|
for (var n = 0; n < nodes.length; n++) {
|
|
222623
222589
|
var node = nodes[n];
|
|
@@ -227620,9 +227586,9 @@ var QrCode_component = normalizeComponent(
|
|
|
227620
227586
|
;// CONCATENATED MODULE: ./src/components/controls/qrCode/index.ts
|
|
227621
227587
|
|
|
227622
227588
|
/* harmony default export */ var qrCode = (QrCode);
|
|
227623
|
-
;// 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=
|
|
227624
|
-
var
|
|
227625
|
-
var
|
|
227589
|
+
;// 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&
|
|
227590
|
+
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)])}
|
|
227591
|
+
var TextDialogvue_type_template_id_016d4c86_staticRenderFns = []
|
|
227626
227592
|
|
|
227627
227593
|
|
|
227628
227594
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[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&
|
|
@@ -227913,8 +227879,8 @@ TextDialog = __decorate([vue_class_component_esm({
|
|
|
227913
227879
|
|
|
227914
227880
|
var TextDialog_component = normalizeComponent(
|
|
227915
227881
|
textDialog_TextDialogvue_type_script_lang_ts_,
|
|
227916
|
-
|
|
227917
|
-
|
|
227882
|
+
TextDialogvue_type_template_id_016d4c86_render,
|
|
227883
|
+
TextDialogvue_type_template_id_016d4c86_staticRenderFns,
|
|
227918
227884
|
false,
|
|
227919
227885
|
null,
|
|
227920
227886
|
null,
|
|
@@ -229349,9 +229315,9 @@ var DataSource_component = normalizeComponent(
|
|
|
229349
229315
|
;// CONCATENATED MODULE: ./src/components/controls/dataSource/index.ts
|
|
229350
229316
|
|
|
229351
229317
|
/* harmony default export */ var controls_dataSource = (DataSource);
|
|
229352
|
-
;// 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=
|
|
229353
|
-
var
|
|
229354
|
-
var
|
|
229318
|
+
;// 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&
|
|
229319
|
+
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)])}
|
|
229320
|
+
var ListSourcevue_type_template_id_21da5e25_scoped_true_staticRenderFns = []
|
|
229355
229321
|
|
|
229356
229322
|
|
|
229357
229323
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[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&
|
|
@@ -229612,10 +229578,10 @@ ListSource = __decorate([vue_class_component_esm({
|
|
|
229612
229578
|
/* harmony default export */ var ListSourcevue_type_script_lang_ts_ = (ListSource);
|
|
229613
229579
|
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue?vue&type=script&lang=ts&
|
|
229614
229580
|
/* harmony default export */ var listsource_ListSourcevue_type_script_lang_ts_ = (ListSourcevue_type_script_lang_ts_);
|
|
229615
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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=
|
|
229581
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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&
|
|
229616
229582
|
// extracted by mini-css-extract-plugin
|
|
229617
229583
|
|
|
229618
|
-
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue?vue&type=style&index=0&id=
|
|
229584
|
+
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue?vue&type=style&index=0&id=21da5e25&lang=scss&scoped=true&
|
|
229619
229585
|
|
|
229620
229586
|
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue
|
|
229621
229587
|
|
|
@@ -229628,11 +229594,11 @@ ListSource = __decorate([vue_class_component_esm({
|
|
|
229628
229594
|
|
|
229629
229595
|
var ListSource_component = normalizeComponent(
|
|
229630
229596
|
listsource_ListSourcevue_type_script_lang_ts_,
|
|
229631
|
-
|
|
229632
|
-
|
|
229597
|
+
ListSourcevue_type_template_id_21da5e25_scoped_true_render,
|
|
229598
|
+
ListSourcevue_type_template_id_21da5e25_scoped_true_staticRenderFns,
|
|
229633
229599
|
false,
|
|
229634
229600
|
null,
|
|
229635
|
-
"
|
|
229601
|
+
"21da5e25",
|
|
229636
229602
|
null
|
|
229637
229603
|
|
|
229638
229604
|
)
|
|
@@ -232929,9 +232895,9 @@ var ControlModal_component = normalizeComponent(
|
|
|
232929
232895
|
)
|
|
232930
232896
|
|
|
232931
232897
|
/* harmony default export */ var ControlModal = (ControlModal_component.exports);
|
|
232932
|
-
;// 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/findReplace/FindReplace.vue?vue&type=template&id=
|
|
232933
|
-
var
|
|
232934
|
-
var
|
|
232898
|
+
;// 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/findReplace/FindReplace.vue?vue&type=template&id=7c30bf52&
|
|
232899
|
+
var FindReplacevue_type_template_id_7c30bf52_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"findModal",class:_vm.animationClassNames,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"},[_c('span',{staticClass:"label"},[_vm._v("查找内容")]),_c('el-input',{attrs:{"type":"text","size":"mini"},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.toFind.apply(null, arguments)}},model:{value:(_vm.findContent),callback:function ($$v) {_vm.findContent=$$v},expression:"findContent"}})],1),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"label"},[_c('el-checkbox',{on:{"change":_vm.switchTypes},model:{value:(_vm.switchType),callback:function ($$v) {_vm.switchType=$$v},expression:"switchType"}},[_vm._v("替换内容")])],1),_c('el-input',{attrs:{"disabled":!_vm.switchType,"type":"text","size":"mini"},model:{value:(_vm.replaceCentent),callback:function ($$v) {_vm.replaceCentent=$$v},expression:"replaceCentent"}})],1),_c('li',{staticClass:"control-item"},[_c('el-radio',{attrs:{"label":0},model:{value:(_vm.direction),callback:function ($$v) {_vm.direction=$$v},expression:"direction"}},[_vm._v("向下")]),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.direction),callback:function ($$v) {_vm.direction=$$v},expression:"direction"}},[_vm._v("向上")]),_c('div',{staticStyle:{"margin-left":"30px"}},[_c('el-checkbox',{model:{value:(_vm.matchCase),callback:function ($$v) {_vm.matchCase=$$v},expression:"matchCase"}},[_vm._v("区分大小写")])],1)],1)])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"disabled":_vm.findContent === '',"size":"mini"},on:{"click":_vm.toFind}},[_vm._v("查找")]),_c('el-button',{attrs:{"disabled":_vm.findContent === '' || !_vm.switchType,"size":"mini"},on:{"click":_vm.toReplace}},[_vm._v("替换")]),_c('el-button',{attrs:{"disabled":_vm.findContent === '' || !_vm.switchType,"size":"mini"},on:{"click":_vm.toReplaceAll}},[_vm._v("全部替换")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1)])}
|
|
232900
|
+
var FindReplacevue_type_template_id_7c30bf52_staticRenderFns = []
|
|
232935
232901
|
|
|
232936
232902
|
|
|
232937
232903
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/findReplace/FindReplace.vue?vue&type=script&lang=js&
|
|
@@ -232977,7 +232943,7 @@ var FindReplacevue_type_template_id_15d96f32_staticRenderFns = []
|
|
|
232977
232943
|
/* harmony default export */ var FindReplacevue_type_script_lang_js_ = ({
|
|
232978
232944
|
name: 'FindReplaceDialog',
|
|
232979
232945
|
mixins: [AppendToBodyMixins],
|
|
232980
|
-
|
|
232946
|
+
inject: ['setControlFindType'],
|
|
232981
232947
|
props: {
|
|
232982
232948
|
hoEditorFactoryId: {
|
|
232983
232949
|
type: String,
|
|
@@ -233072,8 +233038,8 @@ var FindReplacevue_type_template_id_15d96f32_staticRenderFns = []
|
|
|
233072
233038
|
|
|
233073
233039
|
var FindReplace_component = normalizeComponent(
|
|
233074
233040
|
findReplace_FindReplacevue_type_script_lang_js_,
|
|
233075
|
-
|
|
233076
|
-
|
|
233041
|
+
FindReplacevue_type_template_id_7c30bf52_render,
|
|
233042
|
+
FindReplacevue_type_template_id_7c30bf52_staticRenderFns,
|
|
233077
233043
|
false,
|
|
233078
233044
|
null,
|
|
233079
233045
|
null,
|