hoeditor-web 3.0.92 → 3.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +511 -243
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -52383,7 +52383,14 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
52383
52383
|
if (Object.prototype.toString.call(source[value]) === "[object Object]") {
|
|
52384
52384
|
assignvalue(target[value], source[value]);
|
|
52385
52385
|
} else if (Object.prototype.toString.call(source[value]) === "[object String]") {
|
|
52386
|
-
|
|
52386
|
+
var array = source[value].split(',');
|
|
52387
|
+
if (value === "gridLineDisplay") {
|
|
52388
|
+
for (var i = 0; i < array.length; i++) {
|
|
52389
|
+
target[value][i] = array[i] === true || array[i] === "true" ? true : false;
|
|
52390
|
+
}
|
|
52391
|
+
} else {
|
|
52392
|
+
target[value] = array;
|
|
52393
|
+
}
|
|
52387
52394
|
} else {
|
|
52388
52395
|
if (source[value] !== "" && source[value] !== null) {
|
|
52389
52396
|
assignvalue(target[value], eval("(" + source[value] + ")"));
|
|
@@ -56846,10 +56853,6 @@ var PageCountNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
56846
56853
|
set: function set(val) {
|
|
56847
56854
|
if (this._styleIndex !== Number(val)) {
|
|
56848
56855
|
this._styleIndex = Number(val);
|
|
56849
|
-
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
56850
|
-
// if (!hoEditorFactory.docTree.isSaveValid) {
|
|
56851
|
-
// this.node2DrawNode();
|
|
56852
|
-
// }
|
|
56853
56856
|
}
|
|
56854
56857
|
}
|
|
56855
56858
|
}, {
|
|
@@ -57021,10 +57024,6 @@ var PageNumNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
57021
57024
|
set: function set(val) {
|
|
57022
57025
|
if (this._styleIndex !== Number(val)) {
|
|
57023
57026
|
this._styleIndex = Number(val);
|
|
57024
|
-
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
57025
|
-
// if (!hoEditorFactory.docTree.isSaveValid) {
|
|
57026
|
-
// this.node2DrawNode();
|
|
57027
|
-
// }
|
|
57028
57027
|
}
|
|
57029
57028
|
}
|
|
57030
57029
|
}, {
|
|
@@ -61918,7 +61917,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61918
61917
|
}, {
|
|
61919
61918
|
key: "clacLaborProcess",
|
|
61920
61919
|
value: function clacLaborProcess() {
|
|
61921
|
-
var strRet = "
|
|
61920
|
+
var strRet = " ";
|
|
61922
61921
|
var table = this.getParentCell().table;
|
|
61923
61922
|
var arrStr = this.formulaStr.split(",");
|
|
61924
61923
|
if (arrStr.length < 2) {
|
|
@@ -61949,6 +61948,18 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61949
61948
|
var sDateStr = sCell.getCellText();
|
|
61950
61949
|
var eDateStr = eCell.getCellText();
|
|
61951
61950
|
if (arrStr.length === 2) {
|
|
61951
|
+
if (sDateStr.indexOf("年") >= 0 && sDateStr.indexOf("时") >= 0) {
|
|
61952
|
+
sDateStr = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .dateFormat */ .vc)(sDateStr, "yyyy-MM-dd HH:mm:ss");
|
|
61953
|
+
}
|
|
61954
|
+
if (eDateStr.indexOf("年") >= 0 && eDateStr.indexOf("时") >= 0) {
|
|
61955
|
+
eDateStr = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .dateFormat */ .vc)(eDateStr, "yyyy-MM-dd HH:mm:ss");
|
|
61956
|
+
}
|
|
61957
|
+
if (sDateStr.indexOf("年") >= 0 && sDateStr.indexOf("时") == -1) {
|
|
61958
|
+
sDateStr = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .dateFormat */ .vc)(sDateStr, "yyyy/MM/dd");
|
|
61959
|
+
}
|
|
61960
|
+
if (eDateStr.indexOf("年") >= 0 && eDateStr.indexOf("时") == -1) {
|
|
61961
|
+
eDateStr = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .dateFormat */ .vc)(eDateStr, "yyyy/MM/dd");
|
|
61962
|
+
}
|
|
61952
61963
|
if ((0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .isDate */ .J_)(sDateStr) && (0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .isDate */ .J_)(eDateStr)) {
|
|
61953
61964
|
var sDate = new Date(sDateStr);
|
|
61954
61965
|
var eDate = new Date(eDateStr);
|
|
@@ -61961,13 +61972,13 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61961
61972
|
var minute = 0;
|
|
61962
61973
|
var second = 0;
|
|
61963
61974
|
if (dayData.length > 1) {
|
|
61964
|
-
var hourData = (Number("0." + dayData[1]) * 24).toString().split('.');
|
|
61975
|
+
var hourData = (Number("0." + dayData[1]) * 24).toFixed(10).toString().split('.');
|
|
61965
61976
|
hour = Number(hourData[0]);
|
|
61966
61977
|
if (hourData.length > 1) {
|
|
61967
|
-
var minuteData = (Number("0." + hourData[1]) * 60).toString().split('.');
|
|
61978
|
+
var minuteData = (Number("0." + hourData[1]) * 60).toFixed(10).toString().split('.');
|
|
61968
61979
|
minute = Number(minuteData[0]);
|
|
61969
61980
|
if (minuteData.length > 1) {
|
|
61970
|
-
second = parseInt((Number("0." + minuteData[1]) * 60).toFixed(
|
|
61981
|
+
second = parseInt((Number("0." + minuteData[1]) * 60).toFixed(10).toString());
|
|
61971
61982
|
}
|
|
61972
61983
|
}
|
|
61973
61984
|
}
|
|
@@ -68201,10 +68212,6 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
68201
68212
|
set: function set(val) {
|
|
68202
68213
|
if (this._styleIndex !== Number(val)) {
|
|
68203
68214
|
this._styleIndex = Number(val);
|
|
68204
|
-
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
68205
|
-
// if (!hoEditorFactory.docTree.isSaveValid) {
|
|
68206
|
-
// this.node2DrawNode();
|
|
68207
|
-
// }
|
|
68208
68215
|
}
|
|
68209
68216
|
}
|
|
68210
68217
|
}, {
|
|
@@ -75593,7 +75600,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
75593
75600
|
drawTreeHeight = _this$calcCellHeight2[0];
|
|
75594
75601
|
pageHeight = _this$calcCellHeight2[1];
|
|
75595
75602
|
toparr = _this$calcCellHeight2[2];
|
|
75596
|
-
if (pageHeight > this._cell.drawCell.docHeight) {
|
|
75603
|
+
if (pageHeight > this._cell.drawCell.docHeight && this.dHeight - this._cell.drawCell.docHeight > hoeditorFactory.defaultLineHeight) {
|
|
75597
75604
|
valignTop = (pageHeight - this._cell.drawCell.docHeight) / 2;
|
|
75598
75605
|
}
|
|
75599
75606
|
} else if (this._cell.cellProperty.align === TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
@@ -77566,7 +77573,7 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
77566
77573
|
if (rect) {
|
|
77567
77574
|
drawBox.y = this.y;
|
|
77568
77575
|
}
|
|
77569
|
-
drawBox.setBounds(0, 0, drawBox.getMeasuredWidth(),
|
|
77576
|
+
drawBox.setBounds(0, 0, drawBox.getMeasuredWidth(), drawBox.getMeasuredHeight() - 10);
|
|
77570
77577
|
this.addChild(drawBox);
|
|
77571
77578
|
}
|
|
77572
77579
|
}, {
|
|
@@ -81989,8 +81996,9 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
81989
81996
|
}, {
|
|
81990
81997
|
key: "editBlur",
|
|
81991
81998
|
value: function editBlur(e) {
|
|
81992
|
-
|
|
81993
|
-
|
|
81999
|
+
// const hoeditorfactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
82000
|
+
this.editor.input.focus();
|
|
82001
|
+
// hoeditorfactory.drawTree.setCaretVisible(false);
|
|
81994
82002
|
}
|
|
81995
82003
|
}, {
|
|
81996
82004
|
key: "editFocus",
|
|
@@ -88735,6 +88743,10 @@ var MarkNode = __webpack_require__(57727);
|
|
|
88735
88743
|
var ParagraphNode = __webpack_require__(67945);
|
|
88736
88744
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/SignNode.ts
|
|
88737
88745
|
var SignNode = __webpack_require__(24701);
|
|
88746
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
|
|
88747
|
+
var TextInputFieldNode = __webpack_require__(90161);
|
|
88748
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/CellNode.ts
|
|
88749
|
+
var CellNode = __webpack_require__(68598);
|
|
88738
88750
|
;// CONCATENATED MODULE: ./src/editor/undoRedo/NodeStyleUndoUnit.ts
|
|
88739
88751
|
|
|
88740
88752
|
|
|
@@ -88758,6 +88770,8 @@ var SignNode = __webpack_require__(24701);
|
|
|
88758
88770
|
|
|
88759
88771
|
|
|
88760
88772
|
|
|
88773
|
+
|
|
88774
|
+
|
|
88761
88775
|
|
|
88762
88776
|
|
|
88763
88777
|
|
|
@@ -88929,7 +88943,8 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
88929
88943
|
}, {
|
|
88930
88944
|
key: "redo",
|
|
88931
88945
|
value: function redo() {
|
|
88932
|
-
var _this = this
|
|
88946
|
+
var _this = this,
|
|
88947
|
+
_range$npEnd$node;
|
|
88933
88948
|
this.initParam();
|
|
88934
88949
|
var range = new DomRange/* DomRange */.a(this._hoEditorFactoryID, this._oldpairs.start, this._oldpairs.end).normalize();
|
|
88935
88950
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -88978,6 +88993,15 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
88978
88993
|
};
|
|
88979
88994
|
changeNodesStyle(nodes);
|
|
88980
88995
|
this.repaint(this._oldpairs.start, this._newpairs.end, this._newpairs.end);
|
|
88996
|
+
var pNode = (_range$npEnd$node = range.npEnd.node) === null || _range$npEnd$node === void 0 ? void 0 : _range$npEnd$node.parentNode;
|
|
88997
|
+
if (pNode && pNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
88998
|
+
pNode.update();
|
|
88999
|
+
}
|
|
89000
|
+
var ppNode = pNode === null || pNode === void 0 ? void 0 : pNode.parentNode;
|
|
89001
|
+
if (ppNode && ppNode instanceof CellNode/* CellNode */.D) {
|
|
89002
|
+
ppNode.drawCell.needUpdate = true;
|
|
89003
|
+
ppNode.table.update();
|
|
89004
|
+
}
|
|
88981
89005
|
return;
|
|
88982
89006
|
/**
|
|
88983
89007
|
*
|
|
@@ -89101,13 +89125,13 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
89101
89125
|
/* harmony export */ "F": function() { return /* binding */ NodesDeleteUndoUnit; }
|
|
89102
89126
|
/* harmony export */ });
|
|
89103
89127
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
89104
|
-
/* harmony import */ var
|
|
89128
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(40735);
|
|
89105
89129
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80543);
|
|
89106
89130
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81448);
|
|
89107
89131
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27222);
|
|
89108
89132
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70280);
|
|
89109
|
-
/* harmony import */ var
|
|
89110
|
-
/* harmony import */ var
|
|
89133
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(66298);
|
|
89134
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(78255);
|
|
89111
89135
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66992);
|
|
89112
89136
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
89113
89137
|
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51532);
|
|
@@ -89126,30 +89150,33 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
89126
89150
|
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
89127
89151
|
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(32023);
|
|
89128
89152
|
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
89129
|
-
/* harmony import */ var
|
|
89130
|
-
/* harmony import */ var
|
|
89131
|
-
/* harmony import */ var
|
|
89132
|
-
/* harmony import */ var
|
|
89133
|
-
/* harmony import */ var
|
|
89134
|
-
/* harmony import */ var
|
|
89135
|
-
/* harmony import */ var
|
|
89136
|
-
/* harmony import */ var
|
|
89137
|
-
/* harmony import */ var
|
|
89138
|
-
/* harmony import */ var
|
|
89139
|
-
/* harmony import */ var
|
|
89140
|
-
/* harmony import */ var
|
|
89141
|
-
/* harmony import */ var
|
|
89142
|
-
/* harmony import */ var
|
|
89143
|
-
/* harmony import */ var
|
|
89144
|
-
/* harmony import */ var
|
|
89145
|
-
/* harmony import */ var
|
|
89146
|
-
/* harmony import */ var
|
|
89147
|
-
/* harmony import */ var
|
|
89148
|
-
/* harmony import */ var
|
|
89149
|
-
/* harmony import */ var
|
|
89150
|
-
/* harmony import */ var
|
|
89151
|
-
/* harmony import */ var
|
|
89152
|
-
/* harmony import */ var
|
|
89153
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(40561);
|
|
89154
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
89155
|
+
/* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(32629);
|
|
89156
|
+
/* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(27198);
|
|
89157
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(2613);
|
|
89158
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(51760);
|
|
89159
|
+
/* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(94639);
|
|
89160
|
+
/* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(59057);
|
|
89161
|
+
/* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(931);
|
|
89162
|
+
/* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(19229);
|
|
89163
|
+
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(90161);
|
|
89164
|
+
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(57727);
|
|
89165
|
+
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(8277);
|
|
89166
|
+
/* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(67945);
|
|
89167
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(68598);
|
|
89168
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(53901);
|
|
89169
|
+
/* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(5010);
|
|
89170
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(74089);
|
|
89171
|
+
/* harmony import */ var _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(91105);
|
|
89172
|
+
/* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(99152);
|
|
89173
|
+
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(92501);
|
|
89174
|
+
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(45712);
|
|
89175
|
+
/* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(64465);
|
|
89176
|
+
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(24701);
|
|
89177
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(42921);
|
|
89178
|
+
/* harmony import */ var _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(90832);
|
|
89179
|
+
|
|
89153
89180
|
|
|
89154
89181
|
|
|
89155
89182
|
|
|
@@ -89206,37 +89233,37 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89206
89233
|
*/
|
|
89207
89234
|
function NodesDeleteUndoUnit(hoEditorFactoryID, startPath, endPath, isForceDelete) {
|
|
89208
89235
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, NodesDeleteUndoUnit);
|
|
89209
|
-
(0,
|
|
89210
|
-
(0,
|
|
89211
|
-
(0,
|
|
89236
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_startPath", void 0);
|
|
89237
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_endPath", void 0);
|
|
89238
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_tmp", {
|
|
89212
89239
|
start: "",
|
|
89213
89240
|
end: ""
|
|
89214
89241
|
});
|
|
89215
|
-
(0,
|
|
89216
|
-
(0,
|
|
89217
|
-
(0,
|
|
89218
|
-
(0,
|
|
89219
|
-
(0,
|
|
89220
|
-
(0,
|
|
89221
|
-
(0,
|
|
89222
|
-
(0,
|
|
89223
|
-
(0,
|
|
89242
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_undoNodes", void 0);
|
|
89243
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_undo", void 0);
|
|
89244
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_pnode", null);
|
|
89245
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
89246
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_bSameTable", void 0);
|
|
89247
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_opTime", void 0);
|
|
89248
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_affectText", void 0);
|
|
89249
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_isForceDelete", void 0);
|
|
89250
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_39__/* ["default"] */ .Z)(this, "_isError", false);
|
|
89224
89251
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
89225
89252
|
this._startPath = startPath;
|
|
89226
89253
|
this._endPath = endPath;
|
|
89227
89254
|
this._isForceDelete = isForceDelete;
|
|
89228
|
-
this._undo = new
|
|
89255
|
+
this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_22__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
|
|
89229
89256
|
this._undoNodes = new Map();
|
|
89230
|
-
var aDomRange = new
|
|
89257
|
+
var aDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(hoEditorFactoryID, startPath, endPath).normalize();
|
|
89231
89258
|
var _aDomRange$inSameTabl = aDomRange.inSameTable(),
|
|
89232
89259
|
_aDomRange$inSameTabl2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_aDomRange$inSameTabl, 2),
|
|
89233
89260
|
bSametable = _aDomRange$inSameTabl2[0],
|
|
89234
89261
|
aTable = _aDomRange$inSameTabl2[1];
|
|
89235
89262
|
this._bSameTable = bSametable;
|
|
89236
89263
|
this._opTime = new Date();
|
|
89237
|
-
this._affectText =
|
|
89264
|
+
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_30__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
|
|
89238
89265
|
}
|
|
89239
|
-
(0,
|
|
89266
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
|
|
89240
89267
|
key: "undo",
|
|
89241
89268
|
value: function undo() {
|
|
89242
89269
|
//2.插入删除的节点
|
|
@@ -89254,10 +89281,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89254
89281
|
arr = Array.from(this._undoNodes).reverse();
|
|
89255
89282
|
i = 0;
|
|
89256
89283
|
prevIsTable = false;
|
|
89257
|
-
hoEditorFactory =
|
|
89284
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_30__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
89258
89285
|
while (i < arr.length) {
|
|
89259
89286
|
value = arr[i];
|
|
89260
|
-
if (value[1] instanceof
|
|
89287
|
+
if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_27__/* .CellNode */ .D) {
|
|
89261
89288
|
// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
|
|
89262
89289
|
} else {
|
|
89263
89290
|
if (prevIsTable) {
|
|
@@ -89265,12 +89292,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89265
89292
|
} else {
|
|
89266
89293
|
hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
|
|
89267
89294
|
}
|
|
89268
|
-
if (value[1] instanceof
|
|
89295
|
+
if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_29__/* .TableNode */ .Fh) {
|
|
89269
89296
|
prevIsTable = true;
|
|
89270
89297
|
// value[1].clearDrawNodes();
|
|
89271
89298
|
// value[1].drawTable.drawPageTables.length = 0;
|
|
89272
89299
|
np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
|
|
89273
|
-
if (np && np.node && np.node instanceof
|
|
89300
|
+
if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_26__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
|
|
89274
89301
|
} else {
|
|
89275
89302
|
prevIsTable = false;
|
|
89276
89303
|
}
|
|
@@ -89278,7 +89305,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89278
89305
|
i += 1;
|
|
89279
89306
|
}
|
|
89280
89307
|
aendPaht = hoEditorFactory.docTree.getNodeLastPath(arr[arr.length - 1][1]);
|
|
89281
|
-
changeEvent = new
|
|
89308
|
+
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_17__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_15__/* .DocAction.daInsert */ .gk.daInsert, arr[0][0], aendPaht);
|
|
89282
89309
|
_context.next = 9;
|
|
89283
89310
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
89284
89311
|
case 9:
|
|
@@ -89307,9 +89334,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89307
89334
|
// hoEditorFactory.docTree.change(changeEvent);
|
|
89308
89335
|
// }
|
|
89309
89336
|
//选中范围变化事件
|
|
89310
|
-
newRange = new
|
|
89337
|
+
newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
89311
89338
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
89312
|
-
cgEvent = new
|
|
89339
|
+
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_21__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
|
|
89313
89340
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
89314
89341
|
//光标定位
|
|
89315
89342
|
hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
|
|
@@ -89337,7 +89364,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89337
89364
|
}, {
|
|
89338
89365
|
key: "MoveCaret",
|
|
89339
89366
|
value: function MoveCaret(path) {
|
|
89340
|
-
|
|
89367
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_30__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.moveCaretToPath(path);
|
|
89341
89368
|
}
|
|
89342
89369
|
/**
|
|
89343
89370
|
* @description 返回前面一个node的开始结束选中范围 文本节点时候返回文本中单个文字的选中范围
|
|
@@ -89347,24 +89374,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89347
89374
|
key: "getPrevNodeDomRange",
|
|
89348
89375
|
value: function getPrevNodeDomRange(Anode) {
|
|
89349
89376
|
var spath;
|
|
89350
|
-
var hoEditorFactory =
|
|
89377
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_30__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
89351
89378
|
var prev = Anode.prevSibling();
|
|
89352
89379
|
if (!prev) {
|
|
89353
|
-
throw
|
|
89380
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_25__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
89354
89381
|
}
|
|
89355
89382
|
var epath = hoEditorFactory.docTree.getNodeLastPath(prev);
|
|
89356
|
-
if (prev instanceof
|
|
89383
|
+
if (prev instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_16__/* .TextNode */ .R) {
|
|
89357
89384
|
spath = prev.prevPath(epath);
|
|
89358
|
-
} else if (prev instanceof
|
|
89385
|
+
} else if (prev instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_26__/* .ParagraphNode */ .C) {
|
|
89359
89386
|
spath = epath;
|
|
89360
89387
|
} else {
|
|
89361
89388
|
var prev1 = prev.previousLeaf();
|
|
89362
89389
|
if (!prev1) {
|
|
89363
|
-
throw
|
|
89390
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_25__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
89364
89391
|
}
|
|
89365
89392
|
spath = hoEditorFactory.docTree.getNodeLastPath(prev1);
|
|
89366
89393
|
}
|
|
89367
|
-
return new
|
|
89394
|
+
return new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
89368
89395
|
}
|
|
89369
89396
|
/**
|
|
89370
89397
|
*
|
|
@@ -89377,20 +89404,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89377
89404
|
}, {
|
|
89378
89405
|
key: "deleteRange",
|
|
89379
89406
|
value: function deleteRange(endpath, startpath) {
|
|
89380
|
-
var currRange = new
|
|
89407
|
+
var currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, startpath, endpath).normalize();
|
|
89381
89408
|
//拆分更新节点,更新删除范围 this._tmp
|
|
89382
89409
|
if (!this.spliteNode(currRange)) {
|
|
89383
89410
|
return 0;
|
|
89384
89411
|
}
|
|
89385
|
-
var newDomRange = new
|
|
89386
|
-
if (!newDomRange.npStart.node) throw
|
|
89387
|
-
if (!newDomRange.npEnd.node) throw
|
|
89412
|
+
var newDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
89413
|
+
if (!newDomRange.npStart.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_25__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
89414
|
+
if (!newDomRange.npEnd.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_25__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
89388
89415
|
var aStart = newDomRange.npStart.node;
|
|
89389
89416
|
if (currRange.startMainNode) {
|
|
89390
89417
|
aStart = currRange.startMainNode;
|
|
89391
89418
|
}
|
|
89392
|
-
var nodes =
|
|
89393
|
-
var hoEditorFactory =
|
|
89419
|
+
var nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
89420
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_30__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
89394
89421
|
// this.DeleteBaseCombineNodeContent(
|
|
89395
89422
|
// newDomRange,
|
|
89396
89423
|
// newDomRange.npEnd.node,
|
|
@@ -89518,24 +89545,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89518
89545
|
*
|
|
89519
89546
|
* @param Anode
|
|
89520
89547
|
*/
|
|
89521
|
-
var hoEditorFactory =
|
|
89548
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_30__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
89522
89549
|
var forMarkNode = function forMarkNode(Anode) {
|
|
89523
|
-
if (Anode.parentNode instanceof
|
|
89550
|
+
if (Anode.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re) {
|
|
89524
89551
|
var pTINode = Anode.parentNode;
|
|
89525
89552
|
if (pTINode.isEmpty() || !pTINode.canModifyContent) {
|
|
89526
89553
|
//为空 或者 不允许编辑
|
|
89527
89554
|
var tmp = pTINode.previousLeaf();
|
|
89528
89555
|
if (!tmp) {
|
|
89529
|
-
throw
|
|
89556
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_25__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
89530
89557
|
}
|
|
89531
89558
|
info[0] = 0;
|
|
89532
|
-
info[1] = new
|
|
89559
|
+
info[1] = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(_this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeLastPath(tmp), hoEditorFactory.docTree.getNodeLastPath(pTINode));
|
|
89533
89560
|
} else {
|
|
89534
89561
|
if (Anode == pTINode.last()) {
|
|
89535
89562
|
//递归调用删除
|
|
89536
89563
|
var _tmp = _this.getPrevNodeDomRange(Anode);
|
|
89537
89564
|
//1.移动光标
|
|
89538
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
89565
|
+
hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(_this._hoEditorFactoryID, _tmp.endPath, _tmp.endPath);
|
|
89539
89566
|
// this.MoveCaret(tmp.endPath);
|
|
89540
89567
|
//2.删除内容
|
|
89541
89568
|
info[0] = 1;
|
|
@@ -89543,7 +89570,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89543
89570
|
} else if (Anode == pTINode.first()) {
|
|
89544
89571
|
//移动光标到文本域外
|
|
89545
89572
|
var _tmp2 = _this.getPrevNodeDomRange(Anode);
|
|
89546
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
89573
|
+
hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(_this._hoEditorFactoryID, _tmp2.endPath, _tmp2.endPath);
|
|
89547
89574
|
// this.MoveCaret(tmp.endPath);
|
|
89548
89575
|
info[0] = 2;
|
|
89549
89576
|
info[1] = _tmp2;
|
|
@@ -89552,33 +89579,33 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89552
89579
|
}
|
|
89553
89580
|
};
|
|
89554
89581
|
if (!(s && e)) {
|
|
89555
|
-
throw
|
|
89582
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_25__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
89556
89583
|
}
|
|
89557
89584
|
this._tmp.start = Arange.startPath;
|
|
89558
89585
|
this._tmp.end = Arange.endPath;
|
|
89559
89586
|
var spnode = s.parentNode;
|
|
89560
89587
|
var epnode = e.parentNode;
|
|
89561
89588
|
var pnode = epnode;
|
|
89562
|
-
if (spnode instanceof
|
|
89563
|
-
var result =
|
|
89589
|
+
if (spnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re && epnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re && spnode != epnode) {
|
|
89590
|
+
var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_37__/* .NodePosition.nodePositionCompare */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
|
|
89564
89591
|
if (result < 0) {
|
|
89565
89592
|
pnode = spnode;
|
|
89566
89593
|
}
|
|
89567
89594
|
}
|
|
89568
|
-
if (this._isForceDelete && pnode instanceof
|
|
89595
|
+
if (this._isForceDelete && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re && pnode.inputFieldType === 1 && (_pnode$downListProper = pnode.downListProperty.listItems) !== null && _pnode$downListProper !== void 0 && _pnode$downListProper.includes("<元素>")) {
|
|
89569
89596
|
this._tmp.start = pnode.StartMarkNode.getNodePath();
|
|
89570
89597
|
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(pnode.EndMarkNode.previousLeaf());
|
|
89571
89598
|
return true;
|
|
89572
89599
|
}
|
|
89573
89600
|
if (s === e) {
|
|
89574
|
-
if (s instanceof
|
|
89601
|
+
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_16__/* .TextNode */ .R) {
|
|
89575
89602
|
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange = Arange;
|
|
89576
|
-
var tmp = new
|
|
89603
|
+
var tmp = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_20__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange);
|
|
89577
89604
|
this._undo.begin();
|
|
89578
89605
|
this._undo.add(tmp);
|
|
89579
89606
|
this._undo.commit();
|
|
89580
89607
|
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(tmp.theNode);
|
|
89581
|
-
} else if (s instanceof
|
|
89608
|
+
} else if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_24__/* .MarkNode */ .j) {
|
|
89582
89609
|
forMarkNode(s);
|
|
89583
89610
|
if (info[0] == 0 && info[1]) {
|
|
89584
89611
|
this._tmp.start = info[1].startPath;
|
|
@@ -89593,25 +89620,25 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89593
89620
|
}
|
|
89594
89621
|
} else {
|
|
89595
89622
|
var _tmp3 = null;
|
|
89596
|
-
if (e instanceof
|
|
89597
|
-
_tmp3 = new
|
|
89623
|
+
if (e instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_16__/* .TextNode */ .R && Arange.npEnd.childIndex >= 0 && Arange.npEnd.childIndex < e.getLength() - 1) {
|
|
89624
|
+
_tmp3 = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_20__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.endPath, e, Arange);
|
|
89598
89625
|
this._undo.begin();
|
|
89599
89626
|
this._undo.add(_tmp3);
|
|
89600
89627
|
this._undo.commit();
|
|
89601
89628
|
}
|
|
89602
|
-
if (s instanceof
|
|
89629
|
+
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_16__/* .TextNode */ .R && Arange.npStart.childIndex >= 0 && Arange.npStart.childIndex < s.getLength() - 1) {
|
|
89603
89630
|
this._undo.begin();
|
|
89604
|
-
this._undo.add(new
|
|
89631
|
+
this._undo.add(new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_20__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange));
|
|
89605
89632
|
this._undo.commit();
|
|
89606
89633
|
}
|
|
89607
|
-
if (e instanceof
|
|
89634
|
+
if (e instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_24__/* .MarkNode */ .j) {
|
|
89608
89635
|
forMarkNode(e);
|
|
89609
89636
|
if (info[0] == 0 && info[1]) {
|
|
89610
89637
|
this._tmp.end = info[1].endPath;
|
|
89611
89638
|
// return this.spliteNode(new DomRange(this._tmp.start, this._tmp.end));
|
|
89612
89639
|
} else if ((info[0] == 1 || info[0] == 2) && info[1]) {
|
|
89613
89640
|
this._tmp.end = info[1].endPath;
|
|
89614
|
-
return this.spliteNode(new
|
|
89641
|
+
return this.spliteNode(new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end));
|
|
89615
89642
|
}
|
|
89616
89643
|
}
|
|
89617
89644
|
if (_tmp3) {
|
|
@@ -89625,14 +89652,14 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89625
89652
|
}, {
|
|
89626
89653
|
key: "ParentRepaint",
|
|
89627
89654
|
value: function ParentRepaint(Anode) {
|
|
89628
|
-
if (Anode && Anode instanceof
|
|
89629
|
-
var hoEditorFactory =
|
|
89655
|
+
if (Anode && Anode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re) {
|
|
89656
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_30__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
89630
89657
|
if (Anode.childNodes.length === 2) {
|
|
89631
89658
|
var contentMarkNode = Anode.childNodes2[1];
|
|
89632
89659
|
contentMarkNode.styleIndex = Anode.childNodes[0].styleIndex;
|
|
89633
89660
|
var insertPath = hoEditorFactory.docTree.getNodeLastPath(Anode.childNodes[0]);
|
|
89634
89661
|
hoEditorFactory.undoService.begin();
|
|
89635
|
-
hoEditorFactory.undoService.add(new
|
|
89662
|
+
hoEditorFactory.undoService.add(new _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, insertPath, contentMarkNode));
|
|
89636
89663
|
hoEditorFactory.undoService.commit();
|
|
89637
89664
|
}
|
|
89638
89665
|
Anode.update();
|
|
@@ -89649,20 +89676,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89649
89676
|
value: function () {
|
|
89650
89677
|
var _doRedo = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee2() {
|
|
89651
89678
|
var _currRange$npEnd$node;
|
|
89652
|
-
var currRange, hoEditorFactory, textStyle, nodes, n, node, tip, pnode, pTiNode, _res, changeEvent, startPath, endPath, res, cgEvent, aNode;
|
|
89679
|
+
var currRange, hoEditorFactory, textStyle, nodes, lastNode, ePath, sPath, n, node, tip, pnode, pTiNode, _res, changeEvent, startPath, endPath, res, cgEvent, aNode;
|
|
89653
89680
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
89654
89681
|
while (1) {
|
|
89655
89682
|
switch (_context2.prev = _context2.next) {
|
|
89656
89683
|
case 0:
|
|
89657
89684
|
this.initParam();
|
|
89658
|
-
currRange = new
|
|
89659
|
-
hoEditorFactory =
|
|
89685
|
+
currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
89686
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_30__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
89660
89687
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
89661
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
89688
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_18__/* .PaintState.psReview */ .Dh.psReview)) {
|
|
89662
89689
|
_context2.next = 11;
|
|
89663
89690
|
break;
|
|
89664
89691
|
}
|
|
89665
|
-
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof
|
|
89692
|
+
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_16__/* .TextNode */ .R)) {
|
|
89666
89693
|
_context2.next = 11;
|
|
89667
89694
|
break;
|
|
89668
89695
|
}
|
|
@@ -89671,11 +89698,11 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89671
89698
|
_context2.next = 11;
|
|
89672
89699
|
break;
|
|
89673
89700
|
}
|
|
89674
|
-
|
|
89701
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].warn */ .Z.warn("该内容当前已处于删除状态!");
|
|
89675
89702
|
this._isError = true;
|
|
89676
89703
|
return _context2.abrupt("return");
|
|
89677
89704
|
case 11:
|
|
89678
|
-
nodes =
|
|
89705
|
+
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
|
|
89679
89706
|
// if (npFirst && npFirst.node) {
|
|
89680
89707
|
// //const parentNode = hoEditorFactory.docTree.getParentNode(this._startPath);
|
|
89681
89708
|
// //if (parentNode) {
|
|
@@ -89685,14 +89712,34 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89685
89712
|
// //}
|
|
89686
89713
|
// }
|
|
89687
89714
|
//if(nodes.length == 0) return;
|
|
89688
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
89689
|
-
_context2.next =
|
|
89715
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_18__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
89716
|
+
_context2.next = 56;
|
|
89690
89717
|
break;
|
|
89691
89718
|
}
|
|
89719
|
+
lastNode = nodes[nodes.length - 1];
|
|
89720
|
+
if (!(lastNode instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_24__/* .MarkNode */ .j && lastNode.MarkNodeType === 0)) {
|
|
89721
|
+
_context2.next = 22;
|
|
89722
|
+
break;
|
|
89723
|
+
}
|
|
89724
|
+
if (!(nodes.length === 1)) {
|
|
89725
|
+
_context2.next = 19;
|
|
89726
|
+
break;
|
|
89727
|
+
}
|
|
89728
|
+
return _context2.abrupt("return");
|
|
89729
|
+
case 19:
|
|
89730
|
+
ePath = hoEditorFactory.docTree.getNodeLastPath(lastNode.previousLeaf());
|
|
89731
|
+
hoEditorFactory.docTree.curDomRange.endPath = ePath;
|
|
89732
|
+
nodes.splice(nodes.length - 1, 1);
|
|
89733
|
+
case 22:
|
|
89734
|
+
if (nodes.length === 2 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_24__/* .MarkNode */ .j && nodes[0].MarkNodeType === 0) {
|
|
89735
|
+
sPath = nodes[0].getNodePath();
|
|
89736
|
+
hoEditorFactory.docTree.curDomRange.startPath = sPath;
|
|
89737
|
+
nodes.splice(0, 1);
|
|
89738
|
+
}
|
|
89692
89739
|
n = 0;
|
|
89693
|
-
case
|
|
89740
|
+
case 24:
|
|
89694
89741
|
if (!(n < nodes.length)) {
|
|
89695
|
-
_context2.next =
|
|
89742
|
+
_context2.next = 55;
|
|
89696
89743
|
break;
|
|
89697
89744
|
}
|
|
89698
89745
|
node = nodes[n]; // if (node instanceof MarkNode && node.parentNode instanceof TextInputFieldNode && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete) {
|
|
@@ -89700,61 +89747,70 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89700
89747
|
// this._isError = true;
|
|
89701
89748
|
// return;
|
|
89702
89749
|
// }
|
|
89703
|
-
if (!(node instanceof
|
|
89704
|
-
_context2.next =
|
|
89750
|
+
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_31__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re)) {
|
|
89751
|
+
_context2.next = 37;
|
|
89705
89752
|
break;
|
|
89706
89753
|
}
|
|
89707
89754
|
if (node.isAllowDelete) {
|
|
89708
|
-
_context2.next =
|
|
89755
|
+
_context2.next = 37;
|
|
89709
89756
|
break;
|
|
89710
89757
|
}
|
|
89711
89758
|
tip = "";
|
|
89712
|
-
if (node instanceof
|
|
89759
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_32__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "RadioBox") {
|
|
89713
89760
|
tip = "单选框";
|
|
89714
89761
|
}
|
|
89715
|
-
if (node instanceof
|
|
89762
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_32__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "CheckBox") {
|
|
89716
89763
|
tip = "复选框";
|
|
89717
89764
|
}
|
|
89718
|
-
if (node instanceof
|
|
89765
|
+
if (node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_33__/* .DateTimeNode */ .Z) {
|
|
89719
89766
|
tip = "日期时间";
|
|
89720
89767
|
}
|
|
89721
|
-
if (node instanceof
|
|
89768
|
+
if (node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_34__/* .DownListNode */ .yF) {
|
|
89722
89769
|
tip = "下拉列表";
|
|
89723
89770
|
}
|
|
89724
|
-
|
|
89725
|
-
|
|
89771
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].destroy */ .Z.destroy();
|
|
89772
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].warn */ .Z.warn(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。");
|
|
89726
89773
|
this._isError = true;
|
|
89727
89774
|
return _context2.abrupt("return");
|
|
89728
|
-
case
|
|
89729
|
-
if (!(node instanceof
|
|
89730
|
-
_context2.next =
|
|
89775
|
+
case 37:
|
|
89776
|
+
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_24__/* .MarkNode */ .j && node.MarkNodeType === 0)) {
|
|
89777
|
+
_context2.next = 42;
|
|
89731
89778
|
break;
|
|
89732
89779
|
}
|
|
89733
|
-
|
|
89734
|
-
|
|
89780
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].destroy */ .Z.destroy();
|
|
89781
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].warn */ .Z.warn("元素已设置为不允许删除,请正确操作。");
|
|
89735
89782
|
this._isError = true;
|
|
89736
89783
|
return _context2.abrupt("return");
|
|
89737
|
-
case
|
|
89738
|
-
if (!(node instanceof
|
|
89739
|
-
_context2.next =
|
|
89784
|
+
case 42:
|
|
89785
|
+
if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_38__/* .TableFormula */ .N)) {
|
|
89786
|
+
_context2.next = 47;
|
|
89740
89787
|
break;
|
|
89741
89788
|
}
|
|
89742
|
-
|
|
89743
|
-
|
|
89789
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].destroy */ .Z.destroy();
|
|
89790
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].warn */ .Z.warn("不允许删除表格计算公式");
|
|
89744
89791
|
this._isError = true;
|
|
89745
89792
|
return _context2.abrupt("return");
|
|
89746
|
-
case
|
|
89793
|
+
case 47:
|
|
89794
|
+
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_36__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
89795
|
+
_context2.next = 52;
|
|
89796
|
+
break;
|
|
89797
|
+
}
|
|
89798
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].destroy */ .Z.destroy();
|
|
89799
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].warn */ .Z.warn("该签名元素不允许删除!");
|
|
89800
|
+
this._isError = true;
|
|
89801
|
+
return _context2.abrupt("return");
|
|
89802
|
+
case 52:
|
|
89747
89803
|
n++;
|
|
89748
|
-
_context2.next =
|
|
89804
|
+
_context2.next = 24;
|
|
89749
89805
|
break;
|
|
89750
|
-
case
|
|
89751
|
-
if (nodes.length === 1 && nodes[0] instanceof
|
|
89806
|
+
case 55:
|
|
89807
|
+
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_24__/* .MarkNode */ .j) {
|
|
89752
89808
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
89753
89809
|
}
|
|
89754
|
-
case
|
|
89810
|
+
case 56:
|
|
89755
89811
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
89756
|
-
if (!(pnode && pnode instanceof
|
|
89757
|
-
_context2.next =
|
|
89812
|
+
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
89813
|
+
_context2.next = 62;
|
|
89758
89814
|
break;
|
|
89759
89815
|
}
|
|
89760
89816
|
//判断当前TextInputField是否可编辑
|
|
@@ -89766,19 +89822,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89766
89822
|
// this._undo.commit();
|
|
89767
89823
|
});
|
|
89768
89824
|
if (_res[0]) {
|
|
89769
|
-
_context2.next =
|
|
89825
|
+
_context2.next = 62;
|
|
89770
89826
|
break;
|
|
89771
89827
|
}
|
|
89772
89828
|
return _context2.abrupt("return");
|
|
89773
|
-
case
|
|
89774
|
-
changeEvent = new
|
|
89829
|
+
case 62:
|
|
89830
|
+
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_17__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_15__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
89775
89831
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
89776
89832
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
89777
|
-
_context2.next =
|
|
89833
|
+
_context2.next = 65;
|
|
89778
89834
|
break;
|
|
89779
89835
|
}
|
|
89780
|
-
throw
|
|
89781
|
-
case
|
|
89836
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_25__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
89837
|
+
case 65:
|
|
89782
89838
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
89783
89839
|
// this._hoEditorFactory,
|
|
89784
89840
|
// currRange.startPath,
|
|
@@ -89787,20 +89843,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89787
89843
|
startPath = currRange.startPath;
|
|
89788
89844
|
endPath = currRange.endPath;
|
|
89789
89845
|
changeEvent.oldEndPath = endPath;
|
|
89790
|
-
changeEvent.oldDrawTreeLines = new
|
|
89846
|
+
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_28__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
89791
89847
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
89792
89848
|
if (!(res == 1)) {
|
|
89793
|
-
_context2.next =
|
|
89849
|
+
_context2.next = 77;
|
|
89794
89850
|
break;
|
|
89795
89851
|
}
|
|
89796
89852
|
changeEvent.beforeChangePath = startPath;
|
|
89797
89853
|
changeEvent.afterChangePath = this._tmp.start;
|
|
89798
|
-
_context2.next =
|
|
89854
|
+
_context2.next = 75;
|
|
89799
89855
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
89800
|
-
case
|
|
89801
|
-
cgEvent = new
|
|
89856
|
+
case 75:
|
|
89857
|
+
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_21__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
89802
89858
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
89803
|
-
case
|
|
89859
|
+
case 77:
|
|
89804
89860
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
89805
89861
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
89806
89862
|
aNode = currRange.npStart.node;
|
|
@@ -89808,12 +89864,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89808
89864
|
pnode = aNode.parentNode;
|
|
89809
89865
|
}
|
|
89810
89866
|
if (!(aNode && pnode)) {
|
|
89811
|
-
_context2.next =
|
|
89867
|
+
_context2.next = 84;
|
|
89812
89868
|
break;
|
|
89813
89869
|
}
|
|
89814
|
-
_context2.next =
|
|
89870
|
+
_context2.next = 84;
|
|
89815
89871
|
return this.ParentRepaint(pnode);
|
|
89816
|
-
case
|
|
89872
|
+
case 84:
|
|
89817
89873
|
case "end":
|
|
89818
89874
|
return _context2.stop();
|
|
89819
89875
|
}
|
|
@@ -90030,8 +90086,12 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
90030
90086
|
if (!curRange.isEmpty) {
|
|
90031
90087
|
//删除选中节点
|
|
90032
90088
|
this._undo.begin();
|
|
90033
|
-
|
|
90089
|
+
var nodesDeleteUndoUnit = new _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_13__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, curRange.startPath, curRange.endPath);
|
|
90090
|
+
this._undo.add(nodesDeleteUndoUnit);
|
|
90034
90091
|
this._undo.commit();
|
|
90092
|
+
if (nodesDeleteUndoUnit.isError) {
|
|
90093
|
+
return;
|
|
90094
|
+
}
|
|
90035
90095
|
}
|
|
90036
90096
|
var startPosition = hoEditorFactory.docTree.findNodePositionByPath(curRange.startPath);
|
|
90037
90097
|
var endNode;
|
|
@@ -92525,7 +92585,7 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
92525
92585
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_docWidth", void 0);
|
|
92526
92586
|
var lineUsedWidth = 0;
|
|
92527
92587
|
_this.letterSpacing = spacing ? spacing : 0;
|
|
92528
|
-
_this._chinesWordWidth = _this._getMeasuredWidth(
|
|
92588
|
+
_this._chinesWordWidth = _this._getMeasuredWidth('中');
|
|
92529
92589
|
_this._docWidth = 0;
|
|
92530
92590
|
var isFullLine = false;
|
|
92531
92591
|
var lastTextWidth = 0;
|
|
@@ -92562,12 +92622,12 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
92562
92622
|
// if(ctx instanceof CanvasRenderingContext2D) {
|
|
92563
92623
|
// ctx.font = strLowFont.replace("bold", "") || "12pt 宋体";
|
|
92564
92624
|
// } else {
|
|
92565
|
-
ctx.font = this.font ||
|
|
92625
|
+
ctx.font = this.font || '12pt SimSun';
|
|
92566
92626
|
ctx.letterSpacing = this._letterSpacing;
|
|
92567
92627
|
// }
|
|
92568
|
-
ctx.textAlign = this.textAlign ||
|
|
92569
|
-
ctx.textBaseline = this.textBaseline ||
|
|
92570
|
-
ctx.lineJoin =
|
|
92628
|
+
ctx.textAlign = this.textAlign || 'left';
|
|
92629
|
+
ctx.textBaseline = this.textBaseline || 'top';
|
|
92630
|
+
ctx.lineJoin = 'miter';
|
|
92571
92631
|
ctx.miterLimit = 10;
|
|
92572
92632
|
return ctx;
|
|
92573
92633
|
}
|
|
@@ -92582,7 +92642,7 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
92582
92642
|
}
|
|
92583
92643
|
// const lineHeight = this.lineHeight || this.getMeasuredLineHeight();
|
|
92584
92644
|
ctx.imageSmoothingEnabled = true;
|
|
92585
|
-
var col = this.color ||
|
|
92645
|
+
var col = this.color || '#000';
|
|
92586
92646
|
// if(commonParamList.get('viewBlack')) { // 预览时设置全部
|
|
92587
92647
|
// col = "#000";
|
|
92588
92648
|
// }
|
|
@@ -92620,41 +92680,19 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
92620
92680
|
ctx.strokeText(str[j], left, 0, this.maxWidth || 0xffff);
|
|
92621
92681
|
} else {
|
|
92622
92682
|
ctx.fillText(str[j], left, 0, this.maxWidth || 0xffff);
|
|
92623
|
-
// if (isbold) {
|
|
92624
|
-
// ctx.fillText(str[j], left - 1, 0, this.maxWidth || 0xffff);
|
|
92625
|
-
// }
|
|
92626
92683
|
}
|
|
92627
92684
|
}
|
|
92628
|
-
|
|
92629
92685
|
left += wordW + this._letterSpacing;
|
|
92630
|
-
// if (brecordSpace) {
|
|
92631
|
-
// spaceCharAfter = left;
|
|
92632
|
-
// }
|
|
92633
92686
|
docWidth += wordW;
|
|
92634
92687
|
}
|
|
92635
92688
|
if (!(ctx instanceof CanvasRenderingContext2D)) {
|
|
92636
|
-
// if ((ctx as any).name !=undefined &&(ctx as any).name=='canvas2svg') {
|
|
92637
|
-
// let strText = str;
|
|
92638
|
-
// let strSpace = "";
|
|
92639
|
-
// if (charStart > 0) {
|
|
92640
|
-
// strSpace = str.substring(0, charStart);
|
|
92641
|
-
// strText = str.substring(charStart, str.length);
|
|
92642
|
-
// }
|
|
92643
|
-
// if (this.outline) {
|
|
92644
|
-
// if (charStart > 0) {
|
|
92645
|
-
// (ctx as any).strokeText(strSpace, 0, 0, this.maxWidth || 0xffff);
|
|
92646
|
-
// }
|
|
92647
|
-
// (ctx as any).strokeText(strText, spaceCharAfter, 0, this.maxWidth || 0xffff);
|
|
92648
|
-
// } else {
|
|
92649
|
-
// if (charStart > 0) {
|
|
92650
|
-
// (ctx as any).strokeText(strSpace, 0, 0, this.maxWidth || 0xffff);
|
|
92651
|
-
// }
|
|
92652
|
-
// (ctx as any).fillText(strText, spaceCharAfter, 0, this.maxWidth || 0xffff);
|
|
92653
|
-
// }
|
|
92654
|
-
// }
|
|
92655
92689
|
if (this.outline) {
|
|
92656
92690
|
ctx.strokeText(str, 0, 0, this.maxWidth || 0xffff);
|
|
92657
92691
|
} else {
|
|
92692
|
+
if (this.font.indexOf("bold") != -1) {
|
|
92693
|
+
ctx.strokeStyle = ctx.fillStyle;
|
|
92694
|
+
ctx.strokeText(str, 0, 0, this.maxWidth || 0xffff);
|
|
92695
|
+
}
|
|
92658
92696
|
ctx.fillText(str, 0, 0, this.maxWidth || 0xffff);
|
|
92659
92697
|
}
|
|
92660
92698
|
}
|
|
@@ -92790,13 +92828,13 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
92790
92828
|
key: "getWorkingContext",
|
|
92791
92829
|
value: function getWorkingContext() {
|
|
92792
92830
|
if (!DrawSimpleText._workingContext) {
|
|
92793
|
-
var canvas = document.createElement(
|
|
92831
|
+
var canvas = document.createElement('canvas');
|
|
92794
92832
|
canvas.width = canvas.height = 1;
|
|
92795
|
-
var context = canvas.getContext(
|
|
92833
|
+
var context = canvas.getContext('2d');
|
|
92796
92834
|
if (context) {
|
|
92797
92835
|
DrawSimpleText._workingContext = context;
|
|
92798
92836
|
} else {
|
|
92799
|
-
throw new Error(
|
|
92837
|
+
throw new Error('创建canvas失败');
|
|
92800
92838
|
}
|
|
92801
92839
|
}
|
|
92802
92840
|
return DrawSimpleText._workingContext;
|
|
@@ -100872,7 +100910,9 @@ if(frame.interlaced===true){scanstride+=width*4*7;// Pass 1.
|
|
|
100872
100910
|
for(var i=0,il=index_stream.length;i<il;++i){var index=index_stream[i];if(xleft===0){// Beginning of new scan line
|
|
100873
100911
|
op+=scanstride;xleft=framewidth;if(op>=opend){// Catch the wrap to switch passes when interlacing.
|
|
100874
100912
|
scanstride=framestride*4+width*4*(interlaceskip-1);// interlaceskip / 2 * 4 is interlaceskip << 1.
|
|
100875
|
-
op=opbeg+(framewidth+framestride)*(interlaceskip<<1);interlaceskip>>=1;}}if(index===trans){
|
|
100913
|
+
op=opbeg+(framewidth+framestride)*(interlaceskip<<1);interlaceskip>>=1;}}if(index===trans){// 透明背景强制转换为白色 可能影响签字和指纹重合的患者签名 -- 成都银海待测试
|
|
100914
|
+
// op += 4;
|
|
100915
|
+
pixels[op++]=255;pixels[op++]=255;pixels[op++]=255;pixels[op++]=255;}else{var r=buf[palette_offset+index*3];var g=buf[palette_offset+index*3+1];var b=buf[palette_offset+index*3+2];pixels[op++]=r;pixels[op++]=g;pixels[op++]=b;pixels[op++]=255;}--xleft;}};}function GifReaderLZWOutputIndexStream(code_stream,p,output,output_length){var min_code_size=code_stream[p++];var clear_code=1<<min_code_size;var eoi_code=clear_code+1;var next_code=eoi_code+1;var cur_code_size=min_code_size+1;// Number of bits per code.
|
|
100876
100916
|
// NOTE: This shares the same name as the encoder, but has a different
|
|
100877
100917
|
// meaning here. Here this masks each code coming from the code stream.
|
|
100878
100918
|
var code_mask=(1<<cur_code_size)-1;var cur_shift=0;var cur=0;var op=0;// Output pointer.
|
|
@@ -236312,6 +236352,8 @@ var web_dom_collections_iterator = __webpack_require__(33948);
|
|
|
236312
236352
|
var es_string_starts_with = __webpack_require__(23157);
|
|
236313
236353
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
236314
236354
|
var es_array_splice = __webpack_require__(40561);
|
|
236355
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
236356
|
+
var es_number_to_fixed = __webpack_require__(56977);
|
|
236315
236357
|
// EXTERNAL MODULE: ./src/editor/dom/DocTree.ts
|
|
236316
236358
|
var DocTree = __webpack_require__(32629);
|
|
236317
236359
|
// EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 4 modules
|
|
@@ -236352,6 +236394,8 @@ var DrawPageCell = __webpack_require__(59105);
|
|
|
236352
236394
|
var DrawTable = __webpack_require__(74298);
|
|
236353
236395
|
// EXTERNAL MODULE: ./src/components/common/comment/index.ts + 6 modules
|
|
236354
236396
|
var comment = __webpack_require__(85687);
|
|
236397
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
236398
|
+
var MarkNode = __webpack_require__(57727);
|
|
236355
236399
|
;// CONCATENATED MODULE: ./src/editor/draw/DrawSelectLevel.ts
|
|
236356
236400
|
|
|
236357
236401
|
|
|
@@ -236384,6 +236428,9 @@ var comment = __webpack_require__(85687);
|
|
|
236384
236428
|
|
|
236385
236429
|
|
|
236386
236430
|
|
|
236431
|
+
|
|
236432
|
+
|
|
236433
|
+
|
|
236387
236434
|
|
|
236388
236435
|
|
|
236389
236436
|
|
|
@@ -236810,6 +236857,22 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
236810
236857
|
//鼠标点到文本域内容结尾时触发
|
|
236811
236858
|
var curNP = hoeditorfactory.docTree.curDomRange.normalize().npEnd;
|
|
236812
236859
|
if (curNP && curNP.node) {
|
|
236860
|
+
var parentNode = curNP.node.parentNode;
|
|
236861
|
+
if (hoeditorfactory.isControlCaret && aevent.nativeEvent.button === 0 && parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.isEmpty()) {
|
|
236862
|
+
var ePath = hoeditorfactory.docTree.getNodeLastPath(parentNode.childNodes[1]);
|
|
236863
|
+
var len = parentNode.childNodes[1].text.length;
|
|
236864
|
+
var pathNum = '0';
|
|
236865
|
+
if (len > 1) {
|
|
236866
|
+
pathNum = (len / 2 - 1).toFixed(0);
|
|
236867
|
+
}
|
|
236868
|
+
var pathArr = ePath.split("/");
|
|
236869
|
+
pathArr[pathArr.length - 1] = pathNum;
|
|
236870
|
+
var toPath = pathArr.join("/");
|
|
236871
|
+
if (curNP.node instanceof MarkNode/* MarkNode */.j && curNP.node.MarkNodeType === 0 || startPos.path === ePath) {
|
|
236872
|
+
hoeditorfactory.drawTree.moveCaretToPath(toPath);
|
|
236873
|
+
hoeditorfactory.docTree.curDomRange.setSamePath(toPath);
|
|
236874
|
+
}
|
|
236875
|
+
}
|
|
236813
236876
|
var nextNode = curNP.node.nextLeaf();
|
|
236814
236877
|
if (nextNode && nextNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && nextNode.parentNode.inputFieldType == 0) {
|
|
236815
236878
|
if (nextNode == nextNode.parentNode.EndMarkNode) {
|
|
@@ -236917,7 +236980,31 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
236917
236980
|
if (endPos.index === -1) {
|
|
236918
236981
|
hoeditorfactory.drawTree.moveCaretToDitem(startPos.page, startPos.dline, startPos.index);
|
|
236919
236982
|
} else {
|
|
236920
|
-
hoeditorfactory.
|
|
236983
|
+
var curNP = hoeditorfactory.docTree.curDomRange.normalize().npEnd;
|
|
236984
|
+
if (curNP && curNP.node) {
|
|
236985
|
+
var parentNode = curNP.node.parentNode;
|
|
236986
|
+
if (hoeditorfactory.isControlCaret && aevent.nativeEvent.button === 0 && parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.isEmpty()) {
|
|
236987
|
+
var ePath = hoeditorfactory.docTree.getNodeLastPath(parentNode.childNodes[1]);
|
|
236988
|
+
var len = parentNode.childNodes[1].text.length;
|
|
236989
|
+
var pathNum = '0';
|
|
236990
|
+
if (len > 1) {
|
|
236991
|
+
pathNum = (len / 2 - 1).toFixed(0);
|
|
236992
|
+
}
|
|
236993
|
+
var pathArr = ePath.split("/");
|
|
236994
|
+
pathArr[pathArr.length - 1] = pathNum;
|
|
236995
|
+
var toPath = pathArr.join("/");
|
|
236996
|
+
if (curNP.node instanceof MarkNode/* MarkNode */.j && curNP.node.MarkNodeType === 0 || startPos.path === ePath) {
|
|
236997
|
+
hoeditorfactory.drawTree.moveCaretToPath(toPath);
|
|
236998
|
+
} else {
|
|
236999
|
+
hoeditorfactory.drawTree.moveCaretToPath(startPos.path);
|
|
237000
|
+
}
|
|
237001
|
+
} else {
|
|
237002
|
+
hoeditorfactory.drawTree.moveCaretToPath(startPos.path);
|
|
237003
|
+
}
|
|
237004
|
+
} else {
|
|
237005
|
+
return;
|
|
237006
|
+
}
|
|
237007
|
+
//hoeditorfactory.drawTree.moveCaretToPath(startPos.path);
|
|
236921
237008
|
}
|
|
236922
237009
|
} else {
|
|
236923
237010
|
if (hoeditorfactory.drawTree.activePage) hoeditorfactory.drawTree.moveEditTo(hoeditorfactory.drawTree.activePage.pageIndex, 0, 0);
|
|
@@ -239157,10 +239244,8 @@ var SignNode = __webpack_require__(24701);
|
|
|
239157
239244
|
var TextNode = __webpack_require__(27198);
|
|
239158
239245
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
239159
239246
|
var ParagraphNode = __webpack_require__(67945);
|
|
239160
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
239161
|
-
var MarkNode = __webpack_require__(57727);
|
|
239162
239247
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
239163
|
-
/* harmony default export */ var version = ('3.0.
|
|
239248
|
+
/* harmony default export */ var version = ('3.0.94');
|
|
239164
239249
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
239165
239250
|
var PoperTipText = __webpack_require__(36081);
|
|
239166
239251
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -242691,8 +242776,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
242691
242776
|
}();
|
|
242692
242777
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
242693
242778
|
var esm_typeof = __webpack_require__(8495);
|
|
242694
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
242695
|
-
var es_number_to_fixed = __webpack_require__(56977);
|
|
242696
242779
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
242697
242780
|
var es_array_find = __webpack_require__(69826);
|
|
242698
242781
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
@@ -243675,9 +243758,9 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
243675
243758
|
xmlRoot = hoEditorFactory.unitConvert.replaceAll(xmlRoot, "</TempNode>", "");
|
|
243676
243759
|
hoEditorFactory.isThrowError = true;
|
|
243677
243760
|
if (beauty) {
|
|
243678
|
-
return xmlRoot;
|
|
243761
|
+
return XmlBeauty_xmlBeauty(xmlRoot);
|
|
243679
243762
|
}
|
|
243680
|
-
return
|
|
243763
|
+
return xmlRoot;
|
|
243681
243764
|
}
|
|
243682
243765
|
}
|
|
243683
243766
|
}, {
|
|
@@ -248436,7 +248519,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248436
248519
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
248437
248520
|
var ret = '';
|
|
248438
248521
|
if (type === 'xml') {
|
|
248439
|
-
ret = hoEditorFactory.structureConvert.doc2Xml('xml',
|
|
248522
|
+
ret = hoEditorFactory.structureConvert.doc2Xml('xml', true, true);
|
|
248440
248523
|
}
|
|
248441
248524
|
if (type === 'plain') {
|
|
248442
248525
|
ret = hoEditorFactory.structureConvert.doc2Text();
|
|
@@ -248447,7 +248530,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248447
248530
|
}
|
|
248448
248531
|
|
|
248449
248532
|
if (type === 'json') {
|
|
248450
|
-
ret = hoEditorFactory.structureConvert.doc2Xml('json',
|
|
248533
|
+
ret = hoEditorFactory.structureConvert.doc2Xml('json', true, true);
|
|
248451
248534
|
ret = pretty_data.pd.json(ret);
|
|
248452
248535
|
}
|
|
248453
248536
|
return ret;
|
|
@@ -249114,7 +249197,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249114
249197
|
if (lines[i] != '') {
|
|
249115
249198
|
var textNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, BaseNode/* NodeType.ntText */.Jq.ntText, lines[i], hoEditorFactory.docTree.curStyleIndex);
|
|
249116
249199
|
nodes.push(textNode);
|
|
249117
|
-
if (i < lines.length - 1) {
|
|
249200
|
+
if (i < lines.length - 2 || i == lines.length - 2 && lines[lines.length - 1] != "") {
|
|
249118
249201
|
var paragraphNode = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
|
|
249119
249202
|
nodes.push(paragraphNode);
|
|
249120
249203
|
}
|
|
@@ -252582,7 +252665,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
252582
252665
|
}, {
|
|
252583
252666
|
key: "clearSignNodes",
|
|
252584
252667
|
value: function clearSignNodes() {
|
|
252585
|
-
var xml = this.getDocXml(
|
|
252668
|
+
var xml = this.getDocXml(false, true, true);
|
|
252586
252669
|
return xml;
|
|
252587
252670
|
}
|
|
252588
252671
|
/**
|
|
@@ -257847,7 +257930,7 @@ var jspdf = __webpack_require__(77937);
|
|
|
257847
257930
|
/*
|
|
257848
257931
|
* @Author: your name
|
|
257849
257932
|
* @Date: 2021-07-31 09:25:57
|
|
257850
|
-
* @LastEditTime:
|
|
257933
|
+
* @LastEditTime: 2023-07-25 17:06:48
|
|
257851
257934
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
257852
257935
|
* @Description: In User Settings Edit
|
|
257853
257936
|
* @FilePath: \hoeditor-web\src\editor\externalCall\PrintController.ts
|
|
@@ -257897,7 +257980,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
257897
257980
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID); // 保存打印前文档状态 和 内容
|
|
257898
257981
|
path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
257899
257982
|
beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
257900
|
-
xml = hoEditorFactory.vueController.getDocXml(
|
|
257983
|
+
xml = hoEditorFactory.vueController.getDocXml(false);
|
|
257901
257984
|
htmlText = {
|
|
257902
257985
|
text: ''
|
|
257903
257986
|
};
|
|
@@ -257960,7 +258043,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
257960
258043
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID); // 保存打印前文档状态 和 内容
|
|
257961
258044
|
path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
257962
258045
|
beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
257963
|
-
xml = hoEditorFactory.vueController.getDocXml(
|
|
258046
|
+
xml = hoEditorFactory.vueController.getDocXml(false);
|
|
257964
258047
|
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
257965
258048
|
format = [hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.pageProperty.heightPixes];
|
|
257966
258049
|
options = {
|
|
@@ -258061,10 +258144,10 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
258061
258144
|
}, {
|
|
258062
258145
|
key: "clearJsPDF",
|
|
258063
258146
|
value: function clearJsPDF() {
|
|
258064
|
-
if (this.PDF.internal.getFont(
|
|
258065
|
-
delete this.PDF.internal.getFont(
|
|
258066
|
-
delete this.PDF.internal.getFont(
|
|
258067
|
-
delete this.PDF.internal.vFS[
|
|
258147
|
+
if (this.PDF.internal.getFont('SimSun')) {
|
|
258148
|
+
delete this.PDF.internal.getFont('SimSun').metadata;
|
|
258149
|
+
delete this.PDF.internal.getFont('SimSun').data;
|
|
258150
|
+
delete this.PDF.internal.vFS['SimSun-normal.ttf'];
|
|
258068
258151
|
this.PDF = null;
|
|
258069
258152
|
}
|
|
258070
258153
|
}
|
|
@@ -258082,7 +258165,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
258082
258165
|
var fileName = pdfName ? pdfName : hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
|
|
258083
258166
|
// 保存打印前文档状态 和 内容
|
|
258084
258167
|
var beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
258085
|
-
var xml = hoEditorFactory.vueController.getDocXml(
|
|
258168
|
+
var xml = hoEditorFactory.vueController.getDocXml(false);
|
|
258086
258169
|
var hPromise = Promise.resolve();
|
|
258087
258170
|
hPromise = hPromise.then(function () {
|
|
258088
258171
|
return new Promise(function (resolve) {
|
|
@@ -258150,7 +258233,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
258150
258233
|
var beforeStatus = hoEditorFactory.drawTree.paintStatus;
|
|
258151
258234
|
var xml = '';
|
|
258152
258235
|
if (hoEditorFactory.printStatus.printRange !== 2) {
|
|
258153
|
-
xml = hoEditorFactory.vueController.getDocXml(
|
|
258236
|
+
xml = hoEditorFactory.vueController.getDocXml(false, true);
|
|
258154
258237
|
}
|
|
258155
258238
|
hoEditorFactory.startPageNum = 0;
|
|
258156
258239
|
hoEditorFactory.firstPageStartTop = 0;
|
|
@@ -258346,7 +258429,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
258346
258429
|
if (xmlInfoes.pageNum !== undefined) hoEditorFactory.startPageNum = xmlInfoes.pageNum;
|
|
258347
258430
|
// 保存打印前文档状态 和 内容
|
|
258348
258431
|
beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
258349
|
-
xml = hoEditorFactory.vueController.getDocXml(
|
|
258432
|
+
xml = hoEditorFactory.vueController.getDocXml(false); // 提前设置打印预览状态 合并后减少一次重绘时间
|
|
258350
258433
|
if (!hoEditorFactory.isHideComments) {
|
|
258351
258434
|
hoEditorFactory.vueController.hideComments(true);
|
|
258352
258435
|
}
|
|
@@ -258623,6 +258706,177 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
258623
258706
|
}
|
|
258624
258707
|
return pintAllToPDF;
|
|
258625
258708
|
}()
|
|
258709
|
+
/**
|
|
258710
|
+
* 批量获取xml 当前
|
|
258711
|
+
* @param xmlList [string, boolean, string, boolean][]
|
|
258712
|
+
* 四个参数分别是: xml内容 是否合并 病程记录id:用来判断是否是病程记录和返回对应病程记录的坐标(处理多个不同病程记录的情况) 是否是最后一份病程记录
|
|
258713
|
+
*/
|
|
258714
|
+
}, {
|
|
258715
|
+
key: "pintAllToPDFBase64",
|
|
258716
|
+
value: function () {
|
|
258717
|
+
var _pintAllToPDFBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee11(xmlList, callback, params) {
|
|
258718
|
+
var _this7 = this;
|
|
258719
|
+
var hoEditorFactory, beforePrintStatus, xml, xmlIndex, mergeList, position, continuousid, currentName, pdfList, options, toPrint, createSvg;
|
|
258720
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee11$(_context11) {
|
|
258721
|
+
while (1) {
|
|
258722
|
+
switch (_context11.prev = _context11.next) {
|
|
258723
|
+
case 0:
|
|
258724
|
+
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
258725
|
+
beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
258726
|
+
xml = hoEditorFactory.vueController.getDocXml();
|
|
258727
|
+
if (!hoEditorFactory.isHideComments) hoEditorFactory.vueController.hideComments(true);
|
|
258728
|
+
hoEditorFactory.printStatus.printMode = 0;
|
|
258729
|
+
hoEditorFactory.drawTree.paintStatus = DrawTree/* PaintState.psPreview */.Dh.psPreview;
|
|
258730
|
+
xmlIndex = -1;
|
|
258731
|
+
mergeList = [];
|
|
258732
|
+
continuousid = '';
|
|
258733
|
+
currentName = '';
|
|
258734
|
+
pdfList = [];
|
|
258735
|
+
options = {
|
|
258736
|
+
unit: 'px',
|
|
258737
|
+
hotfixes: ['px_scaling'],
|
|
258738
|
+
compress: true
|
|
258739
|
+
};
|
|
258740
|
+
this.PDF = null;
|
|
258741
|
+
this.PDF = new jspdf/* default */.ZP(options);
|
|
258742
|
+
toPrint = /*#__PURE__*/function () {
|
|
258743
|
+
var _ref5 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee9() {
|
|
258744
|
+
var emrOptions, _this7$PDF;
|
|
258745
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee9$(_context9) {
|
|
258746
|
+
while (1) {
|
|
258747
|
+
switch (_context9.prev = _context9.next) {
|
|
258748
|
+
case 0:
|
|
258749
|
+
emrOptions = {
|
|
258750
|
+
name: hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档',
|
|
258751
|
+
continuousid: continuousid
|
|
258752
|
+
};
|
|
258753
|
+
if (!(params && continuousid && Array.isArray(params.notPrintDocId) && params.notPrintDocId.length > 0 && params.notPrintDocId.includes(continuousid))) {
|
|
258754
|
+
_context9.next = 6;
|
|
258755
|
+
break;
|
|
258756
|
+
}
|
|
258757
|
+
_context9.next = 4;
|
|
258758
|
+
return PrintStatus/* Print.printAllNew */.Kh.printAllNew(_this7._hoEditorFactoryID, createSvg, _this7.PDF, position, true);
|
|
258759
|
+
case 4:
|
|
258760
|
+
_context9.next = 8;
|
|
258761
|
+
break;
|
|
258762
|
+
case 6:
|
|
258763
|
+
_context9.next = 8;
|
|
258764
|
+
return PrintStatus/* Print.printAllNew */.Kh.printAllNew(_this7._hoEditorFactoryID, createSvg, _this7.PDF, position);
|
|
258765
|
+
case 8:
|
|
258766
|
+
if (!params.mergePDF) {
|
|
258767
|
+
(_this7$PDF = _this7.PDF) === null || _this7$PDF === void 0 ? void 0 : _this7$PDF.deletePage(1);
|
|
258768
|
+
pdfList.push((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, emrOptions), {}, {
|
|
258769
|
+
exportName: currentName,
|
|
258770
|
+
pdf: _this7.PDF.output('datauristring')
|
|
258771
|
+
}));
|
|
258772
|
+
_this7.PDF = null;
|
|
258773
|
+
_this7.PDF = new jspdf/* default */.ZP(options);
|
|
258774
|
+
// const otherPageNumber = this.PDF.internal.getNumberOfPages();
|
|
258775
|
+
// this.PDF?.deletePage(otherPageNumber);
|
|
258776
|
+
// this.PDF.addPage();
|
|
258777
|
+
}
|
|
258778
|
+
case 9:
|
|
258779
|
+
case "end":
|
|
258780
|
+
return _context9.stop();
|
|
258781
|
+
}
|
|
258782
|
+
}
|
|
258783
|
+
}, _callee9);
|
|
258784
|
+
}));
|
|
258785
|
+
return function toPrint() {
|
|
258786
|
+
return _ref5.apply(this, arguments);
|
|
258787
|
+
};
|
|
258788
|
+
}();
|
|
258789
|
+
createSvg = /*#__PURE__*/function () {
|
|
258790
|
+
var _ref6 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee10() {
|
|
258791
|
+
var _this7$PDF2;
|
|
258792
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee10$(_context10) {
|
|
258793
|
+
while (1) {
|
|
258794
|
+
switch (_context10.prev = _context10.next) {
|
|
258795
|
+
case 0:
|
|
258796
|
+
xmlIndex++;
|
|
258797
|
+
currentName = xmlList[xmlIndex - 1] ? xmlList[xmlIndex - 1][5] : '';
|
|
258798
|
+
if (xmlIndex <= xmlList.length - 1) {
|
|
258799
|
+
if (xmlList[xmlIndex][2]) {
|
|
258800
|
+
// 循环到病程记录时
|
|
258801
|
+
if (position == undefined) {
|
|
258802
|
+
position = {};
|
|
258803
|
+
}
|
|
258804
|
+
if (position && Object.keys(position).length != 0) {
|
|
258805
|
+
callback && callback((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, position), {}, {
|
|
258806
|
+
continuousid: continuousid
|
|
258807
|
+
}));
|
|
258808
|
+
position = {};
|
|
258809
|
+
}
|
|
258810
|
+
if (continuousid && xmlList[xmlIndex][2] !== continuousid) {
|
|
258811
|
+
mergeList = [];
|
|
258812
|
+
}
|
|
258813
|
+
continuousid = xmlList[xmlIndex][2];
|
|
258814
|
+
mergeList.push([xmlList[xmlIndex][1], xmlList[xmlIndex][0], xmlList[xmlIndex][4] === undefined ? false : xmlList[xmlIndex][4]]);
|
|
258815
|
+
if (xmlList[xmlIndex][3]) {
|
|
258816
|
+
Promise.all([hoEditorFactory.vueController.openDocsForPrint(mergeList)]).then(function () {
|
|
258817
|
+
if (hoEditorFactory.loadImageCount === 0) {
|
|
258818
|
+
toPrint();
|
|
258819
|
+
hoEditorFactory.loadImageCallback = null;
|
|
258820
|
+
} else {
|
|
258821
|
+
hoEditorFactory.loadImageCallback = toPrint;
|
|
258822
|
+
}
|
|
258823
|
+
});
|
|
258824
|
+
} else {
|
|
258825
|
+
createSvg();
|
|
258826
|
+
}
|
|
258827
|
+
} else {
|
|
258828
|
+
mergeList = [];
|
|
258829
|
+
continuousid = '';
|
|
258830
|
+
Promise.all([hoEditorFactory.vueController.openXml(xmlList[xmlIndex][0])]).then(function () {
|
|
258831
|
+
if (hoEditorFactory.loadImageCount === 0) {
|
|
258832
|
+
toPrint();
|
|
258833
|
+
hoEditorFactory.loadImageCallback = null;
|
|
258834
|
+
} else {
|
|
258835
|
+
hoEditorFactory.loadImageCallback = toPrint;
|
|
258836
|
+
}
|
|
258837
|
+
});
|
|
258838
|
+
}
|
|
258839
|
+
} else if (xmlIndex > xmlList.length - 1) {
|
|
258840
|
+
hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
258841
|
+
hoEditorFactory.vueController.openXml(xml);
|
|
258842
|
+
if (params && params.mergePDF) {
|
|
258843
|
+
(_this7$PDF2 = _this7.PDF) === null || _this7$PDF2 === void 0 ? void 0 : _this7$PDF2.deletePage(1);
|
|
258844
|
+
callback && callback({
|
|
258845
|
+
pdf: _this7.PDF.output('datauristring')
|
|
258846
|
+
});
|
|
258847
|
+
} else {
|
|
258848
|
+
callback && callback({
|
|
258849
|
+
pdfList: pdfList
|
|
258850
|
+
});
|
|
258851
|
+
}
|
|
258852
|
+
setTimeout(function () {
|
|
258853
|
+
_this7.clearJsPDF();
|
|
258854
|
+
}, 1000);
|
|
258855
|
+
}
|
|
258856
|
+
case 3:
|
|
258857
|
+
case "end":
|
|
258858
|
+
return _context10.stop();
|
|
258859
|
+
}
|
|
258860
|
+
}
|
|
258861
|
+
}, _callee10);
|
|
258862
|
+
}));
|
|
258863
|
+
return function createSvg() {
|
|
258864
|
+
return _ref6.apply(this, arguments);
|
|
258865
|
+
};
|
|
258866
|
+
}();
|
|
258867
|
+
createSvg();
|
|
258868
|
+
case 17:
|
|
258869
|
+
case "end":
|
|
258870
|
+
return _context11.stop();
|
|
258871
|
+
}
|
|
258872
|
+
}
|
|
258873
|
+
}, _callee11, this);
|
|
258874
|
+
}));
|
|
258875
|
+
function pintAllToPDFBase64(_x10, _x11, _x12) {
|
|
258876
|
+
return _pintAllToPDFBase.apply(this, arguments);
|
|
258877
|
+
}
|
|
258878
|
+
return pintAllToPDFBase64;
|
|
258879
|
+
}()
|
|
258626
258880
|
/**
|
|
258627
258881
|
* 合并预览病历
|
|
258628
258882
|
* @param xmlList `xmlList: [{ xml: 'xml内容', isMerge: false }], // isMerge: false合并到上一页中 / isMerge: true新起一页`
|
|
@@ -259392,7 +259646,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
259392
259646
|
content: {
|
|
259393
259647
|
PatientID: hoEditfactory.docTree.docProperty.patientID,
|
|
259394
259648
|
EMRName: hoEditfactory.docTree.docProperty.title,
|
|
259395
|
-
EMR: hoEditfactory.structureConvert.doc2Xml('xml'
|
|
259649
|
+
EMR: hoEditfactory.structureConvert.doc2Xml('xml')
|
|
259396
259650
|
}
|
|
259397
259651
|
}
|
|
259398
259652
|
};
|
|
@@ -259417,7 +259671,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
259417
259671
|
if (historyLogs) {
|
|
259418
259672
|
if (Array.isArray(historyLogs)) {
|
|
259419
259673
|
historyLogs.unshift({
|
|
259420
|
-
xml: hoEditfactory.structureConvert.doc2Xml('xml',
|
|
259674
|
+
xml: hoEditfactory.structureConvert.doc2Xml('xml', false, false),
|
|
259421
259675
|
saveTime: saveTime,
|
|
259422
259676
|
logs: logs
|
|
259423
259677
|
});
|
|
@@ -259426,7 +259680,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
259426
259680
|
} else {
|
|
259427
259681
|
var arr = [];
|
|
259428
259682
|
arr.push({
|
|
259429
|
-
xml: hoEditfactory.structureConvert.doc2Xml('xml',
|
|
259683
|
+
xml: hoEditfactory.structureConvert.doc2Xml('xml', false, false),
|
|
259430
259684
|
saveTime: saveTime,
|
|
259431
259685
|
logs: logs
|
|
259432
259686
|
});
|
|
@@ -259436,7 +259690,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
259436
259690
|
} else {
|
|
259437
259691
|
var _arr = [];
|
|
259438
259692
|
_arr.push({
|
|
259439
|
-
xml: hoEditfactory.structureConvert.doc2Xml('xml',
|
|
259693
|
+
xml: hoEditfactory.structureConvert.doc2Xml('xml', false, false),
|
|
259440
259694
|
saveTime: saveTime,
|
|
259441
259695
|
logs: logs
|
|
259442
259696
|
});
|
|
@@ -259494,7 +259748,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
259494
259748
|
_this5._offline_cache_list.getItem(key).then(function (cacheLogs) {
|
|
259495
259749
|
var arr = [];
|
|
259496
259750
|
arr.push({
|
|
259497
|
-
xml: hoEditfactory.structureConvert.doc2Xml('xml',
|
|
259751
|
+
xml: hoEditfactory.structureConvert.doc2Xml('xml', false, false),
|
|
259498
259752
|
saveTime: (0,plugins_util/* dateFormat */.vc)(date),
|
|
259499
259753
|
title: hoEditfactory.docTree.docProperty.title
|
|
259500
259754
|
});
|
|
@@ -259673,6 +259927,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
259673
259927
|
});
|
|
259674
259928
|
(0,esm_defineProperty/* default */.Z)(this, "_commentParams", void 0);
|
|
259675
259929
|
(0,esm_defineProperty/* default */.Z)(this, "_isDrawMustMarker", true);
|
|
259930
|
+
(0,esm_defineProperty/* default */.Z)(this, "_isControlCaret", false);
|
|
259676
259931
|
this._hoEditorFactoryId = id;
|
|
259677
259932
|
}
|
|
259678
259933
|
(0,esm_createClass/* default */.Z)(HOEditorFactory, [{
|
|
@@ -259720,6 +259975,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
259720
259975
|
// 审阅参数设置
|
|
259721
259976
|
// 批注相关动态变更
|
|
259722
259977
|
//是否绘制必填标记
|
|
259978
|
+
//鼠标点击空元素控制光标在中间位置
|
|
259723
259979
|
/**
|
|
259724
259980
|
* Getter hoLocalStorage
|
|
259725
259981
|
* @return {HoLocalStorage}
|
|
@@ -260540,6 +260796,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
260540
260796
|
this._canvasListNode = value;
|
|
260541
260797
|
}
|
|
260542
260798
|
}
|
|
260799
|
+
}, {
|
|
260800
|
+
key: "isControlCaret",
|
|
260801
|
+
get: function get() {
|
|
260802
|
+
return this._isControlCaret;
|
|
260803
|
+
},
|
|
260804
|
+
set: function set(value) {
|
|
260805
|
+
if (this._isControlCaret !== value) {
|
|
260806
|
+
this._isControlCaret = value;
|
|
260807
|
+
}
|
|
260808
|
+
}
|
|
260543
260809
|
}, {
|
|
260544
260810
|
key: "clear",
|
|
260545
260811
|
value: function clear() {
|
|
@@ -267882,8 +268148,8 @@ var popper = __webpack_require__(95551);
|
|
|
267882
268148
|
},
|
|
267883
268149
|
poppernIstance: null,
|
|
267884
268150
|
isIncludes: '',
|
|
267885
|
-
|
|
267886
|
-
// 获取全局变量
|
|
268151
|
+
showTableOnRightMenu: false,
|
|
268152
|
+
// 获取全局变量 showTableOnRightMenu
|
|
267887
268153
|
formularType: {
|
|
267888
268154
|
sum: '表格行列求和公式',
|
|
267889
268155
|
formula: '四则运算公式',
|
|
@@ -267925,7 +268191,7 @@ var popper = __webpack_require__(95551);
|
|
|
267925
268191
|
});
|
|
267926
268192
|
},
|
|
267927
268193
|
mounted: function mounted() {
|
|
267928
|
-
var _this$hoEditorProvide, _this$hoEditorProvide2, _this$hoEditorProvide3, _this$hoEditorProvide4;
|
|
268194
|
+
var _this$hoEditorProvide, _this$hoEditorProvide2, _this$hoEditorProvide3, _this$hoEditorProvide4, _this$hoEditorProvide6;
|
|
267929
268195
|
this.isIncludes = (_this$hoEditorProvide = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide === void 0 ? void 0 : _this$hoEditorProvide.labelNode().isIncludes;
|
|
267930
268196
|
// this.patientID = this.vueController?.getDocProperty().patientID;
|
|
267931
268197
|
this.isDeisgn = this.hoEditorProvider.rightNode.paintStatus;
|
|
@@ -267955,7 +268221,10 @@ var popper = __webpack_require__(95551);
|
|
|
267955
268221
|
var _this$hoEditorProvide5;
|
|
267956
268222
|
this.radioBoxSelected = (_this$hoEditorProvide5 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide5 === void 0 ? void 0 : _this$hoEditorProvide5.node().isSelected;
|
|
267957
268223
|
}
|
|
267958
|
-
this.
|
|
268224
|
+
this.showTableOnRightMenu = (_this$hoEditorProvide6 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide6 === void 0 ? void 0 : _this$hoEditorProvide6.isCanUseTableProperty;
|
|
268225
|
+
if (window && window.showTableOnRightMenu) {
|
|
268226
|
+
this.showTableOnRightMenu = window && window.showTableOnRightMenu ? true : false;
|
|
268227
|
+
}
|
|
267959
268228
|
},
|
|
267960
268229
|
methods: {
|
|
267961
268230
|
postMessage: function postMessage() {
|
|
@@ -268203,15 +268472,14 @@ var popper = __webpack_require__(95551);
|
|
|
268203
268472
|
}
|
|
268204
268473
|
},
|
|
268205
268474
|
render: function render() {
|
|
268206
|
-
var _this$
|
|
268475
|
+
var _this$hoEditorProvide7,
|
|
268207
268476
|
_this$$slots$hoRightS,
|
|
268208
|
-
_this$hoEditorProvide7,
|
|
268209
268477
|
_this$hoEditorProvide8,
|
|
268210
268478
|
_this$hoEditorProvide9,
|
|
268211
268479
|
_this$hoEditorProvide10,
|
|
268212
268480
|
_this$hoEditorProvide11,
|
|
268213
|
-
_this5 = this,
|
|
268214
268481
|
_this$hoEditorProvide12,
|
|
268482
|
+
_this5 = this,
|
|
268215
268483
|
_this$hoEditorProvide13,
|
|
268216
268484
|
_this$hoEditorProvide14,
|
|
268217
268485
|
_this$hoEditorProvide15,
|
|
@@ -268242,7 +268510,7 @@ var popper = __webpack_require__(95551);
|
|
|
268242
268510
|
}],
|
|
268243
268511
|
"ref": "mouseRightMenuPopup",
|
|
268244
268512
|
"class": "mouse-right-menu-popup animation-in"
|
|
268245
|
-
}, [(this.isPasted || this.isWebview || this.htmlText || this.txtText) && ((_this$
|
|
268513
|
+
}, [(this.isPasted || this.isWebview || this.htmlText || this.txtText) && ((_this$hoEditorProvide7 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide7 === void 0 ? void 0 : _this$hoEditorProvide7.paintStatus) !== 4 && !this.forbidPaste && h("ul", {
|
|
268246
268514
|
"class": "mouse-right-menu"
|
|
268247
268515
|
}, [h("li", {
|
|
268248
268516
|
"class": "mouse-menu-item",
|
|
@@ -268266,7 +268534,7 @@ var popper = __webpack_require__(95551);
|
|
|
268266
268534
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
268267
268535
|
})]), (_this$$slots$hoRightS = this.$slots.hoRightSlot) === null || _this$$slots$hoRightS === void 0 ? void 0 : _this$$slots$hoRightS.map(function (v) {
|
|
268268
268536
|
return v;
|
|
268269
|
-
}), ((_this$
|
|
268537
|
+
}), ((_this$hoEditorProvide8 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide8 === void 0 ? void 0 : _this$hoEditorProvide8.paintStatus) !== 4 && h("p", [this.isIncludes === 'toLabel' && h("ul", {
|
|
268270
268538
|
"class": "mouse-right-menu"
|
|
268271
268539
|
}, [h("li", {
|
|
268272
268540
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -268284,12 +268552,12 @@ var popper = __webpack_require__(95551);
|
|
|
268284
268552
|
"on": {
|
|
268285
268553
|
"click": this.labelToText.bind(this)
|
|
268286
268554
|
}
|
|
268287
|
-
}, ["\u6807\u7B7E\u8F6C\u6587\u672C"]), ((_this$
|
|
268555
|
+
}, ["\u6807\u7B7E\u8F6C\u6587\u672C"]), ((_this$hoEditorProvide9 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide9 === void 0 ? void 0 : _this$hoEditorProvide9.paintStatus) == 0 && h("li", {
|
|
268288
268556
|
"class": "mouse-menu-item",
|
|
268289
268557
|
"on": {
|
|
268290
268558
|
"click": this.editLabel.bind(this)
|
|
268291
268559
|
}
|
|
268292
|
-
}, ["\u7F16\u8F91\u6807\u7B7E\u5173\u8054\u5143\u7D20"])]), ((_this$
|
|
268560
|
+
}, ["\u7F16\u8F91\u6807\u7B7E\u5173\u8054\u5143\u7D20"])]), ((_this$hoEditorProvide10 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide10 === void 0 ? void 0 : _this$hoEditorProvide10.type) === 'express' && ((_this$hoEditorProvide11 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide11 === void 0 ? void 0 : _this$hoEditorProvide11.paintStatus) === 0 && ((_this$hoEditorProvide12 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide12 === void 0 ? void 0 : _this$hoEditorProvide12.paintStatus) === 0 && h("ul", {
|
|
268293
268561
|
"class": "mouse-right-menu"
|
|
268294
268562
|
}, [h("li", {
|
|
268295
268563
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -268300,7 +268568,7 @@ var popper = __webpack_require__(95551);
|
|
|
268300
268568
|
return _this5.toUpdateNodes('express', event);
|
|
268301
268569
|
}
|
|
268302
268570
|
}
|
|
268303
|
-
}, ["\u533B\u5B66\u8868\u8FBE\u5F0F\u5C5E\u6027"])]), (((_this$
|
|
268571
|
+
}, ["\u533B\u5B66\u8868\u8FBE\u5F0F\u5C5E\u6027"])]), (((_this$hoEditorProvide13 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide13 === void 0 ? void 0 : _this$hoEditorProvide13.type) === 'RadioBox' || ((_this$hoEditorProvide14 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide14 === void 0 ? void 0 : _this$hoEditorProvide14.type) === 'CheckBox') && ((_this$hoEditorProvide15 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide15 === void 0 ? void 0 : _this$hoEditorProvide15.paintStatus) === 0 && h("ul", {
|
|
268304
268572
|
"class": "mouse-right-menu"
|
|
268305
268573
|
}, [h("li", {
|
|
268306
268574
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -268312,7 +268580,7 @@ var popper = __webpack_require__(95551);
|
|
|
268312
268580
|
return _this5.toUpdateNodes((_this5$hoEditorProvid = _this5.hoEditorProvider.rightNode) === null || _this5$hoEditorProvid === void 0 ? void 0 : _this5$hoEditorProvid.type, event);
|
|
268313
268581
|
}
|
|
268314
268582
|
}
|
|
268315
|
-
}, [((_this$
|
|
268583
|
+
}, [((_this$hoEditorProvide16 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide16 === void 0 ? void 0 : _this$hoEditorProvide16.type) === 'RadioBox' ? '单选框属性' : '复选框属性'])]), this.radioBoxSelected && h("ul", {
|
|
268316
268584
|
"class": "mouse-right-menu"
|
|
268317
268585
|
}, [h("li", {
|
|
268318
268586
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -268323,7 +268591,7 @@ var popper = __webpack_require__(95551);
|
|
|
268323
268591
|
return _this5.cancelRadioSelect();
|
|
268324
268592
|
}
|
|
268325
268593
|
}
|
|
268326
|
-
}, ["\u53D6\u6D88\u9009\u4E2D"])]), ((_this$
|
|
268594
|
+
}, ["\u53D6\u6D88\u9009\u4E2D"])]), ((_this$hoEditorProvide17 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide17 === void 0 ? void 0 : _this$hoEditorProvide17.type) === 'date' && ((_this$hoEditorProvide18 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide18 === void 0 ? void 0 : _this$hoEditorProvide18.paintStatus) === 0 && h("ul", {
|
|
268327
268595
|
"class": "mouse-right-menu"
|
|
268328
268596
|
}, [h("li", {
|
|
268329
268597
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -268334,7 +268602,7 @@ var popper = __webpack_require__(95551);
|
|
|
268334
268602
|
return _this5.toUpdateNodes('date', event);
|
|
268335
268603
|
}
|
|
268336
268604
|
}
|
|
268337
|
-
}, ["\u65E5\u671F\u5C5E\u6027"])]), ((_this$
|
|
268605
|
+
}, ["\u65E5\u671F\u5C5E\u6027"])]), ((_this$hoEditorProvide19 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide19 === void 0 ? void 0 : _this$hoEditorProvide19.type) === 'select' && ((_this$hoEditorProvide20 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide20 === void 0 ? void 0 : _this$hoEditorProvide20.paintStatus) === 0 && h("ul", {
|
|
268338
268606
|
"class": "mouse-right-menu"
|
|
268339
268607
|
}, [h("li", {
|
|
268340
268608
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -268345,7 +268613,7 @@ var popper = __webpack_require__(95551);
|
|
|
268345
268613
|
return _this5.toUpdateNodes('select', event);
|
|
268346
268614
|
}
|
|
268347
268615
|
}
|
|
268348
|
-
}, ["\u4E0B\u62C9\u6846\u5C5E\u6027"])]), ((_this$
|
|
268616
|
+
}, ["\u4E0B\u62C9\u6846\u5C5E\u6027"])]), ((_this$hoEditorProvide21 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide21 === void 0 ? void 0 : _this$hoEditorProvide21.type) === 'barcode' && ((_this$hoEditorProvide22 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide22 === void 0 ? void 0 : _this$hoEditorProvide22.paintStatus) === 0 && h("ul", {
|
|
268349
268617
|
"class": "mouse-right-menu"
|
|
268350
268618
|
}, [h("li", {
|
|
268351
268619
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -268356,7 +268624,7 @@ var popper = __webpack_require__(95551);
|
|
|
268356
268624
|
return _this5.toUpdateNodes('barcode', event);
|
|
268357
268625
|
}
|
|
268358
268626
|
}
|
|
268359
|
-
}, ["\u6761\u5F62\u7801\u5C5E\u6027"])]), ((_this$
|
|
268627
|
+
}, ["\u6761\u5F62\u7801\u5C5E\u6027"])]), ((_this$hoEditorProvide23 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide23 === void 0 ? void 0 : _this$hoEditorProvide23.type) === 'qrcode' && ((_this$hoEditorProvide24 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide24 === void 0 ? void 0 : _this$hoEditorProvide24.paintStatus) === 0 && h("ul", {
|
|
268360
268628
|
"class": "mouse-right-menu"
|
|
268361
268629
|
}, [h("li", {
|
|
268362
268630
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -268367,7 +268635,7 @@ var popper = __webpack_require__(95551);
|
|
|
268367
268635
|
return _this5.toUpdateNodes('qrcode', event);
|
|
268368
268636
|
}
|
|
268369
268637
|
}
|
|
268370
|
-
}, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((_this$
|
|
268638
|
+
}, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((_this$hoEditorProvide25 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide25 === void 0 ? void 0 : _this$hoEditorProvide25.type) === 'edit-image' && ((_this$hoEditorProvide26 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide26 === void 0 ? void 0 : _this$hoEditorProvide26.paintStatus) === 0 && h("ul", {
|
|
268371
268639
|
"class": "mouse-right-menu"
|
|
268372
268640
|
}, [h("li", {
|
|
268373
268641
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -268378,7 +268646,7 @@ var popper = __webpack_require__(95551);
|
|
|
268378
268646
|
return _this5.toUpdateNodes('edit-image', event);
|
|
268379
268647
|
}
|
|
268380
268648
|
}
|
|
268381
|
-
}, ["\u7F16\u8F91\u56FE\u7247"])]), ((_this$
|
|
268649
|
+
}, ["\u7F16\u8F91\u56FE\u7247"])]), ((_this$hoEditorProvide27 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide27 === void 0 ? void 0 : _this$hoEditorProvide27.type) === 'text' && ((_this$hoEditorProvide28 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide28 === void 0 ? void 0 : _this$hoEditorProvide28.paintStatus) === 0 && h("ul", {
|
|
268382
268650
|
"class": "mouse-right-menu"
|
|
268383
268651
|
}, [h("li", {
|
|
268384
268652
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -268389,7 +268657,7 @@ var popper = __webpack_require__(95551);
|
|
|
268389
268657
|
return _this5.toUpdateNodes('text', event);
|
|
268390
268658
|
}
|
|
268391
268659
|
}
|
|
268392
|
-
}, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), ((
|
|
268660
|
+
}, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), ((_this$hoEditorProvide29 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide29 === void 0 ? void 0 : _this$hoEditorProvide29.rightTypeIsTable) && this.defaultTable && (((_this$hoEditorProvide30 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide30 === void 0 ? void 0 : _this$hoEditorProvide30.paintStatus) === 0 || this.showTableOnRightMenu) && h("ul", {
|
|
268393
268661
|
"class": "mouse-right-menu"
|
|
268394
268662
|
}, [h("li", {
|
|
268395
268663
|
"class": "mouse-menu-item mouse-right-menu-line"
|