hoeditor-web 2.0.96 → 2.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.common.js +586 -253
- package/lib/hoeditor.umd.js +586 -253
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -26541,14 +26541,14 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
26541
26541
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26542
26542
|
/* harmony export */ "P": function() { return /* binding */ DocController; }
|
|
26543
26543
|
/* harmony export */ });
|
|
26544
|
-
/* harmony import */ var
|
|
26545
|
-
/* harmony import */ var
|
|
26546
|
-
/* harmony import */ var
|
|
26547
|
-
/* harmony import */ var
|
|
26544
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19934);
|
|
26545
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37174);
|
|
26546
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86160);
|
|
26547
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39873);
|
|
26548
26548
|
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86769);
|
|
26549
26549
|
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4__);
|
|
26550
26550
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35671);
|
|
26551
|
-
/* harmony import */ var
|
|
26551
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(22342);
|
|
26552
26552
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41539);
|
|
26553
26553
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
26554
26554
|
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88674);
|
|
@@ -26640,12 +26640,14 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
26640
26640
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(41005);
|
|
26641
26641
|
/* harmony import */ var _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(94020);
|
|
26642
26642
|
/* harmony import */ var _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(24242);
|
|
26643
|
-
/* harmony import */ var
|
|
26644
|
-
/* harmony import */ var
|
|
26645
|
-
/* harmony import */ var
|
|
26646
|
-
/* harmony import */ var
|
|
26647
|
-
/* harmony import */ var
|
|
26648
|
-
/* harmony import */ var
|
|
26643
|
+
/* harmony import */ var _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(94407);
|
|
26644
|
+
/* harmony import */ var _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(9935);
|
|
26645
|
+
/* harmony import */ var _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(89790);
|
|
26646
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(2242);
|
|
26647
|
+
/* harmony import */ var _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(34450);
|
|
26648
|
+
/* harmony import */ var _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(49482);
|
|
26649
|
+
/* harmony import */ var _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(74873);
|
|
26650
|
+
|
|
26649
26651
|
|
|
26650
26652
|
|
|
26651
26653
|
|
|
@@ -26752,7 +26754,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26752
26754
|
// }
|
|
26753
26755
|
|
|
26754
26756
|
|
|
26755
|
-
(0,
|
|
26757
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_87__/* ["default"] */ .Z)(DocController, [{
|
|
26756
26758
|
key: "onInsertNodeByID",
|
|
26757
26759
|
get: function get() {
|
|
26758
26760
|
return this._onInsertNodeByID;
|
|
@@ -27263,7 +27265,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27263
27265
|
|
|
27264
27266
|
if (!domRange.isEmpty) {
|
|
27265
27267
|
domRange = domRange.normalize();
|
|
27266
|
-
} else if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !(domRange.npStart.node instanceof
|
|
27268
|
+
} else if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27267
27269
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("审阅模式下,只能选中文档内容进行删除");
|
|
27268
27270
|
|
|
27269
27271
|
return;
|
|
@@ -27290,183 +27292,336 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27290
27292
|
|
|
27291
27293
|
}, {
|
|
27292
27294
|
key: "deleteTextBeforePath",
|
|
27293
|
-
value: function
|
|
27294
|
-
var
|
|
27295
|
-
|
|
27295
|
+
value: function () {
|
|
27296
|
+
var _deleteTextBeforePath = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee(startPath) {
|
|
27297
|
+
var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, nextNode, path, signNode, spath, epath, newSignNode, pNode;
|
|
27296
27298
|
|
|
27297
|
-
|
|
27298
|
-
|
|
27299
|
-
|
|
27300
|
-
|
|
27301
|
-
|
|
27302
|
-
|
|
27303
|
-
// domRange.endPath,
|
|
27304
|
-
// true
|
|
27305
|
-
// )
|
|
27306
|
-
// );
|
|
27307
|
-
// hoEditorFactory.undoService.commit();
|
|
27308
|
-
} else {
|
|
27309
|
-
var nodePosition = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
27310
|
-
var childIndex = nodePosition.childIndex;
|
|
27311
|
-
var node = nodePosition.node;
|
|
27299
|
+
return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
27300
|
+
while (1) {
|
|
27301
|
+
switch (_context.prev = _context.next) {
|
|
27302
|
+
case 0:
|
|
27303
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27304
|
+
domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
27312
27305
|
|
|
27313
|
-
|
|
27314
|
-
|
|
27315
|
-
|
|
27316
|
-
|
|
27317
|
-
|
|
27318
|
-
|
|
27319
|
-
|
|
27320
|
-
|
|
27321
|
-
|
|
27306
|
+
if (domRange.isEmpty) {
|
|
27307
|
+
_context.next = 6;
|
|
27308
|
+
break;
|
|
27309
|
+
}
|
|
27310
|
+
|
|
27311
|
+
this.deleteRange(domRange, true); // hoEditorFactory.undoService.begin();
|
|
27312
|
+
// hoEditorFactory.undoService.add(
|
|
27313
|
+
// new NodesDeleteUndoUnit(
|
|
27314
|
+
// this._hoEditorFactoryID,
|
|
27315
|
+
// domRange.startPath,
|
|
27316
|
+
// domRange.endPath,
|
|
27317
|
+
// true
|
|
27318
|
+
// )
|
|
27319
|
+
// );
|
|
27320
|
+
// hoEditorFactory.undoService.commit();
|
|
27321
|
+
|
|
27322
|
+
_context.next = 124;
|
|
27323
|
+
break;
|
|
27324
|
+
|
|
27325
|
+
case 6:
|
|
27326
|
+
nodePosition = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
27327
|
+
childIndex = nodePosition.childIndex;
|
|
27328
|
+
node = nodePosition.node;
|
|
27329
|
+
|
|
27330
|
+
if (!node) {
|
|
27331
|
+
_context.next = 124;
|
|
27332
|
+
break;
|
|
27333
|
+
}
|
|
27322
27334
|
|
|
27335
|
+
if (!domRange.isEmpty) {
|
|
27336
|
+
_context.next = 124;
|
|
27337
|
+
break;
|
|
27338
|
+
}
|
|
27339
|
+
|
|
27340
|
+
if (!(node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R)) {
|
|
27341
|
+
_context.next = 36;
|
|
27342
|
+
break;
|
|
27343
|
+
}
|
|
27344
|
+
|
|
27345
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
27346
|
+
_context.next = 16;
|
|
27347
|
+
break;
|
|
27348
|
+
}
|
|
27349
|
+
|
|
27350
|
+
ret = node.parentNode.delCellNodeText();
|
|
27323
27351
|
|
|
27324
|
-
|
|
27352
|
+
if (ret) {
|
|
27353
|
+
_context.next = 16;
|
|
27354
|
+
break;
|
|
27355
|
+
}
|
|
27356
|
+
|
|
27357
|
+
return _context.abrupt("return");
|
|
27358
|
+
|
|
27359
|
+
case 16:
|
|
27360
|
+
//}
|
|
27361
|
+
topath = "";
|
|
27325
27362
|
|
|
27326
|
-
|
|
27327
|
-
|
|
27363
|
+
if (!(childIndex > 0)) {
|
|
27364
|
+
_context.next = 23;
|
|
27365
|
+
break;
|
|
27366
|
+
}
|
|
27367
|
+
|
|
27368
|
+
arr = startPath.split("/");
|
|
27328
27369
|
arr[arr.length - 1] = parseInt(arr[arr.length - 1]) - 1 + "";
|
|
27329
27370
|
topath = arr.join("/");
|
|
27330
|
-
|
|
27331
|
-
|
|
27371
|
+
_context.next = 30;
|
|
27372
|
+
break;
|
|
27332
27373
|
|
|
27333
|
-
|
|
27334
|
-
|
|
27335
|
-
|
|
27336
|
-
|
|
27337
|
-
|
|
27374
|
+
case 23:
|
|
27375
|
+
tmp = node.previousLeaf();
|
|
27376
|
+
|
|
27377
|
+
if (!tmp) {
|
|
27378
|
+
_context.next = 28;
|
|
27379
|
+
break;
|
|
27338
27380
|
}
|
|
27339
|
-
}
|
|
27340
27381
|
|
|
27341
|
-
|
|
27342
|
-
|
|
27343
|
-
|
|
27344
|
-
// this._hoEditorFactoryID,
|
|
27345
|
-
// topath,
|
|
27346
|
-
// startPath,
|
|
27347
|
-
// false
|
|
27348
|
-
// )
|
|
27349
|
-
// );
|
|
27350
|
-
// hoEditorFactory.undoService.commit();
|
|
27351
|
-
|
|
27352
|
-
var aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
27353
|
-
this.deleteRange(aRange, true);
|
|
27354
|
-
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
|
|
27355
|
-
} else if (node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
27356
|
-
var endPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
27357
|
-
|
|
27358
|
-
if (node.parentNode && node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
27359
|
-
if (node.parentNode.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
27360
|
-
startPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode.previousLeaf());
|
|
27361
|
-
endPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode);
|
|
27362
|
-
} else {
|
|
27363
|
-
if (node === node.parentNode.last()) {
|
|
27364
|
-
var _topath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
27382
|
+
topath = hoEditorFactory.docTree.getNodeLastPath(tmp);
|
|
27383
|
+
_context.next = 30;
|
|
27384
|
+
break;
|
|
27365
27385
|
|
|
27366
|
-
|
|
27367
|
-
|
|
27368
|
-
|
|
27369
|
-
}
|
|
27386
|
+
case 28:
|
|
27387
|
+
console.error("这里应该不会出现这种情况 2020.10.28");
|
|
27388
|
+
return _context.abrupt("return");
|
|
27370
27389
|
|
|
27371
|
-
|
|
27372
|
-
|
|
27373
|
-
|
|
27390
|
+
case 30:
|
|
27391
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, startPath); // hoEditorFactory.undoService.begin();
|
|
27392
|
+
// hoEditorFactory.undoService.add(
|
|
27393
|
+
// new NodesDeleteUndoUnit(
|
|
27394
|
+
// this._hoEditorFactoryID,
|
|
27395
|
+
// topath,
|
|
27396
|
+
// startPath,
|
|
27397
|
+
// false
|
|
27398
|
+
// )
|
|
27399
|
+
// );
|
|
27400
|
+
// hoEditorFactory.undoService.commit();
|
|
27401
|
+
|
|
27402
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
27403
|
+
this.deleteRange(aRange, true);
|
|
27404
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
|
|
27405
|
+
_context.next = 124;
|
|
27406
|
+
break;
|
|
27407
|
+
|
|
27408
|
+
case 36:
|
|
27409
|
+
if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j)) {
|
|
27410
|
+
_context.next = 55;
|
|
27411
|
+
break;
|
|
27374
27412
|
}
|
|
27375
|
-
}
|
|
27376
27413
|
|
|
27377
|
-
|
|
27378
|
-
).normalize();
|
|
27379
|
-
|
|
27380
|
-
this.deleteRange(_aRange, true); // hoEditorFactory.undoService.begin();
|
|
27381
|
-
// hoEditorFactory.undoService.add(
|
|
27382
|
-
// new NodesDeleteUndoUnit(
|
|
27383
|
-
// this._hoEditorFactoryID,
|
|
27384
|
-
// hoEditorFactory.docTree.getNodeLastPath(node),
|
|
27385
|
-
// startPath,
|
|
27386
|
-
// false
|
|
27387
|
-
// )
|
|
27388
|
-
// );
|
|
27389
|
-
// hoEditorFactory.undoService.commit();
|
|
27390
|
-
} else {
|
|
27391
|
-
if (node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C) {
|
|
27392
|
-
var prevNode = node.prevSibling();
|
|
27414
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
27393
27415
|
|
|
27394
|
-
if (
|
|
27395
|
-
|
|
27416
|
+
if (!(node.parentNode && node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re)) {
|
|
27417
|
+
_context.next = 51;
|
|
27418
|
+
break;
|
|
27396
27419
|
}
|
|
27397
27420
|
|
|
27398
|
-
if (
|
|
27399
|
-
|
|
27421
|
+
if (!(node.parentNode.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j)) {
|
|
27422
|
+
_context.next = 44;
|
|
27423
|
+
break;
|
|
27424
|
+
}
|
|
27425
|
+
|
|
27426
|
+
startPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode.previousLeaf());
|
|
27427
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode);
|
|
27428
|
+
_context.next = 51;
|
|
27429
|
+
break;
|
|
27430
|
+
|
|
27431
|
+
case 44:
|
|
27432
|
+
if (!(node === node.parentNode.last())) {
|
|
27433
|
+
_context.next = 49;
|
|
27434
|
+
break;
|
|
27435
|
+
}
|
|
27436
|
+
|
|
27437
|
+
_topath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
27438
|
+
hoEditorFactory.drawTree.moveCaretToPath(_topath);
|
|
27439
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(_topath);
|
|
27440
|
+
return _context.abrupt("return");
|
|
27441
|
+
|
|
27442
|
+
case 49:
|
|
27443
|
+
if (!(node === node.parentNode.first())) {
|
|
27444
|
+
_context.next = 51;
|
|
27445
|
+
break;
|
|
27446
|
+
}
|
|
27447
|
+
|
|
27448
|
+
return _context.abrupt("return");
|
|
27449
|
+
|
|
27450
|
+
case 51:
|
|
27451
|
+
_aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath //hoEditorFactory.docTree.getNodeLastPath(node)
|
|
27452
|
+
).normalize();
|
|
27453
|
+
this.deleteRange(_aRange, true); // hoEditorFactory.undoService.begin();
|
|
27454
|
+
// hoEditorFactory.undoService.add(
|
|
27455
|
+
// new NodesDeleteUndoUnit(
|
|
27456
|
+
// this._hoEditorFactoryID,
|
|
27457
|
+
// hoEditorFactory.docTree.getNodeLastPath(node),
|
|
27458
|
+
// startPath,
|
|
27459
|
+
// false
|
|
27460
|
+
// )
|
|
27461
|
+
// );
|
|
27462
|
+
// hoEditorFactory.undoService.commit();
|
|
27463
|
+
|
|
27464
|
+
_context.next = 124;
|
|
27465
|
+
break;
|
|
27466
|
+
|
|
27467
|
+
case 55:
|
|
27468
|
+
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C)) {
|
|
27469
|
+
_context.next = 82;
|
|
27470
|
+
break;
|
|
27471
|
+
}
|
|
27472
|
+
|
|
27473
|
+
prevNode = node.prevSibling();
|
|
27474
|
+
|
|
27475
|
+
if (!(prevNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh)) {
|
|
27476
|
+
_context.next = 59;
|
|
27477
|
+
break;
|
|
27478
|
+
}
|
|
27479
|
+
|
|
27480
|
+
return _context.abrupt("return");
|
|
27481
|
+
|
|
27482
|
+
case 59:
|
|
27483
|
+
if (!(prevNode == null)) {
|
|
27484
|
+
_context.next = 82;
|
|
27485
|
+
break;
|
|
27486
|
+
}
|
|
27487
|
+
|
|
27488
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
27489
|
+
_context.next = 81;
|
|
27490
|
+
break;
|
|
27491
|
+
}
|
|
27492
|
+
|
|
27493
|
+
cellNode = node.parentNode;
|
|
27494
|
+
tableNode = cellNode.parentNode;
|
|
27495
|
+
tIndex = tableNode.childNodes.indexOf(cellNode);
|
|
27496
|
+
cIndex = cellNode.childNodes.indexOf(node);
|
|
27497
|
+
preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
|
|
27498
|
+
|
|
27499
|
+
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__/* .DrawLine */ .a && preParaNode.drawlines[0].isEmpty())) {
|
|
27500
|
+
_context.next = 78;
|
|
27501
|
+
break;
|
|
27502
|
+
}
|
|
27503
|
+
|
|
27504
|
+
hoEditorFactory.undoService.begin();
|
|
27505
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, tableNode.paragraphNode, tableNode.paragraphNode.getNodePath()));
|
|
27506
|
+
tableNode.paragraphNode = preParaNode;
|
|
27507
|
+
_context.next = 72;
|
|
27508
|
+
return hoEditorFactory.undoService.commit();
|
|
27509
|
+
|
|
27510
|
+
case 72:
|
|
27511
|
+
newpath = cellNode.childNodes[0].getNodePath();
|
|
27512
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(newpath);
|
|
27513
|
+
hoEditorFactory.drawTree.moveCaretToPath(newpath);
|
|
27514
|
+
return _context.abrupt("return");
|
|
27515
|
+
|
|
27516
|
+
case 78:
|
|
27517
|
+
return _context.abrupt("return");
|
|
27518
|
+
|
|
27519
|
+
case 79:
|
|
27520
|
+
_context.next = 82;
|
|
27521
|
+
break;
|
|
27522
|
+
|
|
27523
|
+
case 81:
|
|
27524
|
+
return _context.abrupt("return");
|
|
27525
|
+
|
|
27526
|
+
case 82:
|
|
27527
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
|
|
27528
|
+
_context.next = 87;
|
|
27529
|
+
break;
|
|
27400
27530
|
}
|
|
27401
|
-
}
|
|
27402
27531
|
|
|
27403
|
-
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
27404
27532
|
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("审阅模式下,只能对文本内容进行删除");
|
|
27405
27533
|
|
|
27406
|
-
return;
|
|
27407
|
-
|
|
27408
|
-
|
|
27409
|
-
|
|
27534
|
+
return _context.abrupt("return");
|
|
27535
|
+
|
|
27536
|
+
case 87:
|
|
27537
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27538
|
+
_context.next = 92;
|
|
27539
|
+
break;
|
|
27540
|
+
}
|
|
27410
27541
|
|
|
27411
|
-
|
|
27412
|
-
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("不是本人签名,不允许删除!");
|
|
27542
|
+
signUserId = node.customProperty.bce01;
|
|
27413
27543
|
|
|
27414
|
-
|
|
27415
|
-
|
|
27544
|
+
if (!(hoEditorFactory.userInfo.id != signUserId)) {
|
|
27545
|
+
_context.next = 92;
|
|
27546
|
+
break;
|
|
27416
27547
|
}
|
|
27417
27548
|
|
|
27418
|
-
|
|
27419
|
-
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("不允许使用删除键删除签名,请右键删除元素", "系统提示");
|
|
27549
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("不是本人签名,不允许删除!");
|
|
27420
27550
|
|
|
27421
|
-
|
|
27551
|
+
return _context.abrupt("return");
|
|
27552
|
+
|
|
27553
|
+
case 92:
|
|
27554
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27555
|
+
_context.next = 95;
|
|
27556
|
+
break;
|
|
27422
27557
|
}
|
|
27423
27558
|
|
|
27424
|
-
|
|
27425
|
-
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("该签名元素不允许删除!", "系统提示");
|
|
27559
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("不允许使用删除键删除签名,请右键删除元素", "系统提示");
|
|
27426
27560
|
|
|
27427
|
-
|
|
27561
|
+
return _context.abrupt("return");
|
|
27562
|
+
|
|
27563
|
+
case 95:
|
|
27564
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
27565
|
+
_context.next = 98;
|
|
27566
|
+
break;
|
|
27428
27567
|
}
|
|
27429
27568
|
|
|
27430
|
-
|
|
27431
|
-
var preNode = node.previousLeaf();
|
|
27432
|
-
var nextNode = node.nextLeaf();
|
|
27433
|
-
|
|
27434
|
-
if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
27435
|
-
var path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
27436
|
-
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, node.name === "" ? "医师签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime);
|
|
27437
|
-
hoEditorFactory.undoService.begin();
|
|
27438
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
27439
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
27440
|
-
hoEditorFactory.undoService.commit();
|
|
27441
|
-
return;
|
|
27442
|
-
}
|
|
27569
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("该签名元素不允许删除!", "系统提示");
|
|
27443
27570
|
|
|
27444
|
-
|
|
27445
|
-
var spath = "";
|
|
27571
|
+
return _context.abrupt("return");
|
|
27446
27572
|
|
|
27447
|
-
|
|
27448
|
-
|
|
27449
|
-
|
|
27450
|
-
|
|
27451
|
-
|
|
27573
|
+
case 98:
|
|
27574
|
+
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27575
|
+
_context.next = 119;
|
|
27576
|
+
break;
|
|
27577
|
+
}
|
|
27452
27578
|
|
|
27579
|
+
preNode = node.previousLeaf();
|
|
27580
|
+
nextNode = node.nextLeaf();
|
|
27453
27581
|
|
|
27454
|
-
|
|
27455
|
-
|
|
27456
|
-
|
|
27457
|
-
|
|
27458
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, spath, epath));
|
|
27582
|
+
if (!((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
|
|
27583
|
+
_context.next = 109;
|
|
27584
|
+
break;
|
|
27585
|
+
}
|
|
27459
27586
|
|
|
27460
|
-
|
|
27461
|
-
|
|
27462
|
-
|
|
27587
|
+
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
27588
|
+
signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, node.name === "" ? "医师签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime);
|
|
27589
|
+
hoEditorFactory.undoService.begin();
|
|
27590
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
27591
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
27592
|
+
hoEditorFactory.undoService.commit();
|
|
27593
|
+
return _context.abrupt("return");
|
|
27463
27594
|
|
|
27464
|
-
|
|
27465
|
-
|
|
27466
|
-
|
|
27595
|
+
case 109:
|
|
27596
|
+
if (!(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27597
|
+
_context.next = 119;
|
|
27598
|
+
break;
|
|
27467
27599
|
}
|
|
27468
27600
|
|
|
27469
|
-
|
|
27601
|
+
spath = "";
|
|
27602
|
+
|
|
27603
|
+
if (node.number === 2 || node.number === 1 && node.isTemplate) {
|
|
27604
|
+
spath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
27605
|
+
} else {
|
|
27606
|
+
spath = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
27607
|
+
} //const spath = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
27608
|
+
|
|
27609
|
+
|
|
27610
|
+
epath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
27611
|
+
newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, preNode.rootNodes, preNode.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 1, preNode.type, preNode.name === "" ? "签名" : preNode.name, preNode.signType, preNode.signFormat, preNode.signor, preNode.signTime, preNode.signTimeFormat, preNode.imgSrc, preNode.imgWidth, preNode.imgHeight, preNode.customProperty, preNode.isTemplate ? preNode.isTemplate : node.isTemplate, //node.isTemplate,
|
|
27612
|
+
node.styleIndex, preNode.connectMode, preNode.isFront, preNode.allowEditSignTime);
|
|
27613
|
+
hoEditorFactory.undoService.begin();
|
|
27614
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, spath, epath));
|
|
27615
|
+
|
|
27616
|
+
if (node.number === 2 || node.number === 1 && node.isTemplate) {
|
|
27617
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, spath, newSignNode));
|
|
27618
|
+
}
|
|
27619
|
+
|
|
27620
|
+
hoEditorFactory.undoService.commit();
|
|
27621
|
+
return _context.abrupt("return");
|
|
27622
|
+
|
|
27623
|
+
case 119:
|
|
27624
|
+
pNode = node.parentNode;
|
|
27470
27625
|
hoEditorFactory.undoService.begin();
|
|
27471
27626
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
27472
27627
|
hoEditorFactory.undoService.commit();
|
|
@@ -27474,12 +27629,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27474
27629
|
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
|
|
27475
27630
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
27476
27631
|
}
|
|
27477
|
-
|
|
27632
|
+
|
|
27633
|
+
case 124:
|
|
27634
|
+
case "end":
|
|
27635
|
+
return _context.stop();
|
|
27478
27636
|
}
|
|
27479
27637
|
}
|
|
27480
|
-
}
|
|
27638
|
+
}, _callee, this);
|
|
27639
|
+
}));
|
|
27640
|
+
|
|
27641
|
+
function deleteTextBeforePath(_x) {
|
|
27642
|
+
return _deleteTextBeforePath.apply(this, arguments);
|
|
27481
27643
|
}
|
|
27482
|
-
|
|
27644
|
+
|
|
27645
|
+
return deleteTextBeforePath;
|
|
27646
|
+
}()
|
|
27483
27647
|
}, {
|
|
27484
27648
|
key: "resetEmptyInputFieldNode",
|
|
27485
27649
|
value: function resetEmptyInputFieldNode(hoEditorFactory, node) {
|
|
@@ -27591,7 +27755,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27591
27755
|
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
27592
27756
|
|
|
27593
27757
|
if (drawArea) {
|
|
27594
|
-
var nodeNeedModifyEvent = new
|
|
27758
|
+
var nodeNeedModifyEvent = new _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__/* .NodeNeedModifyEvent */ .x(arange.npEnd.node, "dblclick", drawArea.index);
|
|
27595
27759
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
27596
27760
|
return;
|
|
27597
27761
|
} else {
|
|
@@ -28416,7 +28580,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28416
28580
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
28417
28581
|
if (cell.table.tableProperty.canAddRow) {
|
|
28418
28582
|
var _cell$table$getCellIn = cell.table.getCellInfos(cell),
|
|
28419
|
-
_cell$table$getCellIn2 = (0,
|
|
28583
|
+
_cell$table$getCellIn2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn, 2),
|
|
28420
28584
|
r = _cell$table$getCellIn2[0],
|
|
28421
28585
|
c = _cell$table$getCellIn2[1];
|
|
28422
28586
|
|
|
@@ -28464,7 +28628,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28464
28628
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
28465
28629
|
if (cell.table.tableProperty.canAddRow) {
|
|
28466
28630
|
var _cell$table$getCellIn3 = cell.table.getCellInfos(cell),
|
|
28467
|
-
_cell$table$getCellIn4 = (0,
|
|
28631
|
+
_cell$table$getCellIn4 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn3, 2),
|
|
28468
28632
|
r = _cell$table$getCellIn4[0],
|
|
28469
28633
|
c = _cell$table$getCellIn4[1];
|
|
28470
28634
|
|
|
@@ -28511,7 +28675,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28511
28675
|
|
|
28512
28676
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
28513
28677
|
var _cell$table$getCellIn5 = cell.table.getCellInfos(cell),
|
|
28514
|
-
_cell$table$getCellIn6 = (0,
|
|
28678
|
+
_cell$table$getCellIn6 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn5, 2),
|
|
28515
28679
|
r = _cell$table$getCellIn6[0],
|
|
28516
28680
|
c = _cell$table$getCellIn6[1];
|
|
28517
28681
|
|
|
@@ -28559,7 +28723,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28559
28723
|
|
|
28560
28724
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
28561
28725
|
var _cell$table$getCellIn7 = cell.table.getCellInfos(cell),
|
|
28562
|
-
_cell$table$getCellIn8 = (0,
|
|
28726
|
+
_cell$table$getCellIn8 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn7, 2),
|
|
28563
28727
|
r = _cell$table$getCellIn8[0],
|
|
28564
28728
|
c = _cell$table$getCellIn8[1];
|
|
28565
28729
|
|
|
@@ -28598,7 +28762,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28598
28762
|
key: "tableDeleteRows",
|
|
28599
28763
|
value: function tableDeleteRows(aRange) {
|
|
28600
28764
|
var _TableNode$getSelectT = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode.getSelectTableRowColInfos */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
28601
|
-
_TableNode$getSelectT2 = (0,
|
|
28765
|
+
_TableNode$getSelectT2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_TableNode$getSelectT, 5),
|
|
28602
28766
|
table = _TableNode$getSelectT2[0],
|
|
28603
28767
|
r1 = _TableNode$getSelectT2[1],
|
|
28604
28768
|
c1 = _TableNode$getSelectT2[2],
|
|
@@ -28653,7 +28817,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28653
28817
|
key: "tableDeleteCols",
|
|
28654
28818
|
value: function tableDeleteCols(aRange) {
|
|
28655
28819
|
var _TableNode$getSelectT3 = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode.getSelectTableRowColInfos */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
28656
|
-
_TableNode$getSelectT4 = (0,
|
|
28820
|
+
_TableNode$getSelectT4 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_TableNode$getSelectT3, 5),
|
|
28657
28821
|
table = _TableNode$getSelectT4[0],
|
|
28658
28822
|
r1 = _TableNode$getSelectT4[1],
|
|
28659
28823
|
c1 = _TableNode$getSelectT4[2],
|
|
@@ -28722,22 +28886,22 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28722
28886
|
}
|
|
28723
28887
|
|
|
28724
28888
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
28725
|
-
_cell1$table$getCellI2 = (0,
|
|
28889
|
+
_cell1$table$getCellI2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$getCellI, 2),
|
|
28726
28890
|
r1 = _cell1$table$getCellI2[0],
|
|
28727
28891
|
c1 = _cell1$table$getCellI2[1];
|
|
28728
28892
|
|
|
28729
28893
|
var _cell1$table$getCellI3 = cell1.table.getCellInfos(cell2),
|
|
28730
|
-
_cell1$table$getCellI4 = (0,
|
|
28894
|
+
_cell1$table$getCellI4 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$getCellI3, 2),
|
|
28731
28895
|
r2 = _cell1$table$getCellI4[0],
|
|
28732
28896
|
c2 = _cell1$table$getCellI4[1];
|
|
28733
28897
|
|
|
28734
28898
|
var _cell1$table$calcRowS = cell1.table.calcRowSpanColsSpan(r1, c1, r2, c2),
|
|
28735
|
-
_cell1$table$calcRowS2 = (0,
|
|
28899
|
+
_cell1$table$calcRowS2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$calcRowS, 2),
|
|
28736
28900
|
rowSpan = _cell1$table$calcRowS2[0],
|
|
28737
28901
|
colSpan = _cell1$table$calcRowS2[1];
|
|
28738
28902
|
|
|
28739
28903
|
var _cell1$table$canMerge = cell1.table.canMergeCell(r1, c1, rowSpan, colSpan),
|
|
28740
|
-
_cell1$table$canMerge2 = (0,
|
|
28904
|
+
_cell1$table$canMerge2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$canMerge, 3),
|
|
28741
28905
|
ret = _cell1$table$canMerge2[0],
|
|
28742
28906
|
aRowSpan = _cell1$table$canMerge2[1],
|
|
28743
28907
|
aColSpan = _cell1$table$canMerge2[2];
|
|
@@ -28783,24 +28947,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28783
28947
|
var endPath = cell1.table.getNodePath();
|
|
28784
28948
|
|
|
28785
28949
|
var _hoEditorFactory$draw = hoEditorFactory.drawTree.getDrawRootsByPath(endPath),
|
|
28786
|
-
_hoEditorFactory$draw2 = (0,
|
|
28950
|
+
_hoEditorFactory$draw2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_hoEditorFactory$draw, 2),
|
|
28787
28951
|
dcell = _hoEditorFactory$draw2[0],
|
|
28788
28952
|
dRoots = _hoEditorFactory$draw2[1];
|
|
28789
28953
|
|
|
28790
28954
|
var startDline = dRoots.indexOf(cell1.table.drawTable);
|
|
28791
28955
|
|
|
28792
28956
|
var _cell1$table$getCellI5 = cell1.table.getCellInfos(cell1),
|
|
28793
|
-
_cell1$table$getCellI6 = (0,
|
|
28957
|
+
_cell1$table$getCellI6 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$getCellI5, 2),
|
|
28794
28958
|
r1 = _cell1$table$getCellI6[0],
|
|
28795
28959
|
c1 = _cell1$table$getCellI6[1];
|
|
28796
28960
|
|
|
28797
28961
|
var _cell1$table$getCellI7 = cell1.table.getCellInfos(cell2),
|
|
28798
|
-
_cell1$table$getCellI8 = (0,
|
|
28962
|
+
_cell1$table$getCellI8 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$getCellI7, 2),
|
|
28799
28963
|
r2 = _cell1$table$getCellI8[0],
|
|
28800
28964
|
c2 = _cell1$table$getCellI8[1];
|
|
28801
28965
|
|
|
28802
28966
|
var _cell1$table$calcRowS3 = cell1.table.calcRowSpanColsSpan(r1, c1, r2, c2),
|
|
28803
|
-
_cell1$table$calcRowS4 = (0,
|
|
28967
|
+
_cell1$table$calcRowS4 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell1$table$calcRowS3, 2),
|
|
28804
28968
|
rowSpan = _cell1$table$calcRowS4[0],
|
|
28805
28969
|
colSpan = _cell1$table$calcRowS4[1]; // cell1.table.mergeCells(r1, c1, rowSpan, colSpan);
|
|
28806
28970
|
|
|
@@ -28978,7 +29142,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28978
29142
|
var cellProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .CellProperty */ .$W(objectValues);
|
|
28979
29143
|
cellNode.cellProperty = cellProperty;
|
|
28980
29144
|
cellNode.drawCell.drawPageCells.forEach(function (pcell) {
|
|
28981
|
-
pcell.valignTop = pcell.calcValignTop();
|
|
29145
|
+
pcell.valignTop = pcell.calcValignTop()[0];
|
|
28982
29146
|
});
|
|
28983
29147
|
}
|
|
28984
29148
|
/**
|
|
@@ -29199,7 +29363,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29199
29363
|
var nodesMap = object.obj1;
|
|
29200
29364
|
var indexsMap = object.obj2;
|
|
29201
29365
|
|
|
29202
|
-
var _iterator = (0,
|
|
29366
|
+
var _iterator = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(indexsMap.values()),
|
|
29203
29367
|
_step;
|
|
29204
29368
|
|
|
29205
29369
|
try {
|
|
@@ -29589,14 +29753,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29589
29753
|
}, {
|
|
29590
29754
|
key: "initBlankDoc",
|
|
29591
29755
|
value: function () {
|
|
29592
|
-
var _initBlankDoc = (0,
|
|
29756
|
+
var _initBlankDoc = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee2() {
|
|
29593
29757
|
var hoEditorFactory, firstNode, strFirstPath, aPage;
|
|
29594
|
-
return (0,
|
|
29758
|
+
return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
29595
29759
|
while (1) {
|
|
29596
|
-
switch (
|
|
29760
|
+
switch (_context2.prev = _context2.next) {
|
|
29597
29761
|
case 0:
|
|
29598
29762
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
29599
|
-
|
|
29763
|
+
_context2.next = 3;
|
|
29600
29764
|
return hoEditorFactory.drawPageTree.stopPageEvent();
|
|
29601
29765
|
|
|
29602
29766
|
case 3:
|
|
@@ -29606,15 +29770,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29606
29770
|
hoEditorFactory.docTree.clearDocTree();
|
|
29607
29771
|
hoEditorFactory.drawPageTree.clear();
|
|
29608
29772
|
hoEditorFactory.drawPageTree.initDoc();
|
|
29609
|
-
|
|
29773
|
+
_context2.next = 11;
|
|
29610
29774
|
return hoEditorFactory.drawTree.buildDrawTree(hoEditorFactory.subDocManger.headerDocTree[0].subDocNodes, hoEditorFactory.drawTree.headerDNodes[0]);
|
|
29611
29775
|
|
|
29612
29776
|
case 11:
|
|
29613
|
-
|
|
29777
|
+
_context2.next = 13;
|
|
29614
29778
|
return hoEditorFactory.drawTree.buildDrawTree(hoEditorFactory.subDocManger.footerDocTree[0].subDocNodes, hoEditorFactory.drawTree.footerDNodes[0]);
|
|
29615
29779
|
|
|
29616
29780
|
case 13:
|
|
29617
|
-
|
|
29781
|
+
_context2.next = 15;
|
|
29618
29782
|
return hoEditorFactory.drawTree.buildDrawTree(hoEditorFactory.docTree.mainNodes, hoEditorFactory.drawTree.mainDNodes);
|
|
29619
29783
|
|
|
29620
29784
|
case 15:
|
|
@@ -29639,10 +29803,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29639
29803
|
|
|
29640
29804
|
case 25:
|
|
29641
29805
|
case "end":
|
|
29642
|
-
return
|
|
29806
|
+
return _context2.stop();
|
|
29643
29807
|
}
|
|
29644
29808
|
}
|
|
29645
|
-
},
|
|
29809
|
+
}, _callee2, this);
|
|
29646
29810
|
}));
|
|
29647
29811
|
|
|
29648
29812
|
function initBlankDoc() {
|
|
@@ -29975,7 +30139,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29975
30139
|
|
|
29976
30140
|
hoeditorfactory.undoService.begin();
|
|
29977
30141
|
var newParaPath = paraNode.getNodePath();
|
|
29978
|
-
var separateCharNode = new
|
|
30142
|
+
var separateCharNode = new _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_81__/* .SeparateCharNode */ .O(this._hoEditorFactoryID, np.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSeparateChar */ .Jq.ntSeparateChar, width, color);
|
|
29979
30143
|
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, newParaPath, separateCharNode));
|
|
29980
30144
|
hoeditorfactory.undoService.commit();
|
|
29981
30145
|
}
|
|
@@ -29999,7 +30163,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29999
30163
|
if (np) {
|
|
30000
30164
|
var node = np.node;
|
|
30001
30165
|
|
|
30002
|
-
if (node instanceof
|
|
30166
|
+
if (node instanceof _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__/* .GestationNode */ .G) {
|
|
30003
30167
|
hoEditorFactory.undoService.begin();
|
|
30004
30168
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, "update"));
|
|
30005
30169
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -30008,7 +30172,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30008
30172
|
}
|
|
30009
30173
|
|
|
30010
30174
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
30011
|
-
var gestationNode = new
|
|
30175
|
+
var gestationNode = new _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__/* .GestationNode */ .G(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntGestation */ .Jq.ntGestation, lastMenstruationDate, usedDate, hoEditorFactory.docTree.curStyleIndex); //插入节点
|
|
30012
30176
|
|
|
30013
30177
|
if (operType === "add") {
|
|
30014
30178
|
hoEditorFactory.undoService.begin();
|
|
@@ -30020,12 +30184,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30020
30184
|
}, {
|
|
30021
30185
|
key: "textToLabel",
|
|
30022
30186
|
value: function () {
|
|
30023
|
-
var _textToLabel = (0,
|
|
30187
|
+
var _textToLabel = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee3(range) {
|
|
30024
30188
|
var hoeditorfactory, astart, aend, sChildIndex, eChildIndex, anode, startPath, endPath, drawNode, i, text, pathArr, _pathArr, labelNode, delRange, anodeEndPath, result;
|
|
30025
30189
|
|
|
30026
|
-
return (0,
|
|
30190
|
+
return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee3$(_context3) {
|
|
30027
30191
|
while (1) {
|
|
30028
|
-
switch (
|
|
30192
|
+
switch (_context3.prev = _context3.next) {
|
|
30029
30193
|
case 0:
|
|
30030
30194
|
hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
30031
30195
|
astart = range.npStart.node;
|
|
@@ -30038,12 +30202,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30038
30202
|
|
|
30039
30203
|
case 8:
|
|
30040
30204
|
if (!anode) {
|
|
30041
|
-
|
|
30205
|
+
_context3.next = 34;
|
|
30042
30206
|
break;
|
|
30043
30207
|
}
|
|
30044
30208
|
|
|
30045
30209
|
if (!(anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R)) {
|
|
30046
|
-
|
|
30210
|
+
_context3.next = 32;
|
|
30047
30211
|
break;
|
|
30048
30212
|
}
|
|
30049
30213
|
|
|
@@ -30052,21 +30216,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30052
30216
|
|
|
30053
30217
|
case 12:
|
|
30054
30218
|
if (!(i < anode.drawNodes.length)) {
|
|
30055
|
-
|
|
30219
|
+
_context3.next = 19;
|
|
30056
30220
|
break;
|
|
30057
30221
|
}
|
|
30058
30222
|
|
|
30059
30223
|
if (!(sChildIndex < anode.drawNodes[i].endIndex)) {
|
|
30060
|
-
|
|
30224
|
+
_context3.next = 16;
|
|
30061
30225
|
break;
|
|
30062
30226
|
}
|
|
30063
30227
|
|
|
30064
30228
|
drawNode = anode.drawNodes[i];
|
|
30065
|
-
return
|
|
30229
|
+
return _context3.abrupt("break", 19);
|
|
30066
30230
|
|
|
30067
30231
|
case 16:
|
|
30068
30232
|
i++;
|
|
30069
|
-
|
|
30233
|
+
_context3.next = 12;
|
|
30070
30234
|
break;
|
|
30071
30235
|
|
|
30072
30236
|
case 19:
|
|
@@ -30107,9 +30271,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30107
30271
|
}
|
|
30108
30272
|
}
|
|
30109
30273
|
|
|
30110
|
-
labelNode = new
|
|
30274
|
+
labelNode = new _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_82__/* .LabelNode */ .P(this._hoEditorFactoryID, range.npStart.roots, anode.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntLabel */ .Jq.ntLabel, text, anode.styleIndex);
|
|
30111
30275
|
delRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
30112
|
-
|
|
30276
|
+
_context3.next = 28;
|
|
30113
30277
|
return this.deleteRange(delRange, true);
|
|
30114
30278
|
|
|
30115
30279
|
case 28:
|
|
@@ -30123,7 +30287,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30123
30287
|
|
|
30124
30288
|
if (anode) {
|
|
30125
30289
|
anodeEndPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
30126
|
-
result =
|
|
30290
|
+
result = _NodePosition__WEBPACK_IMPORTED_MODULE_83__/* .NodePosition.treePathCompare */ .F.treePathCompare(anodeEndPath, range.startPath);
|
|
30127
30291
|
|
|
30128
30292
|
if (result <= 0) {
|
|
30129
30293
|
anode = null;
|
|
@@ -30132,19 +30296,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30132
30296
|
|
|
30133
30297
|
case 34:
|
|
30134
30298
|
if (anode && astart.previousLeaf() && anode !== astart.previousLeaf()) {
|
|
30135
|
-
|
|
30299
|
+
_context3.next = 8;
|
|
30136
30300
|
break;
|
|
30137
30301
|
}
|
|
30138
30302
|
|
|
30139
30303
|
case 35:
|
|
30140
30304
|
case "end":
|
|
30141
|
-
return
|
|
30305
|
+
return _context3.stop();
|
|
30142
30306
|
}
|
|
30143
30307
|
}
|
|
30144
|
-
},
|
|
30308
|
+
}, _callee3, this);
|
|
30145
30309
|
}));
|
|
30146
30310
|
|
|
30147
|
-
function textToLabel(
|
|
30311
|
+
function textToLabel(_x2) {
|
|
30148
30312
|
return _textToLabel.apply(this, arguments);
|
|
30149
30313
|
}
|
|
30150
30314
|
|
|
@@ -30188,7 +30352,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30188
30352
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
30189
30353
|
var startPath = domRange.startPath;
|
|
30190
30354
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
30191
|
-
var signNode = new
|
|
30355
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, {}, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute, connectChar); //插入该表达式节点
|
|
30192
30356
|
|
|
30193
30357
|
hoEditorFactory.undoService.begin();
|
|
30194
30358
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -30218,7 +30382,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30218
30382
|
// }
|
|
30219
30383
|
// }
|
|
30220
30384
|
|
|
30221
|
-
var signNode = new
|
|
30385
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 1, type, name, 0, "医师签名", signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, hoEditorFactory.docTree.curStyleIndex, undefined, undefined, undefined, fingerPrintSrc, fingerPosition); //插入该表达式节点
|
|
30222
30386
|
|
|
30223
30387
|
hoEditorFactory.undoService.begin();
|
|
30224
30388
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -30282,7 +30446,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30282
30446
|
}
|
|
30283
30447
|
}
|
|
30284
30448
|
|
|
30285
|
-
var newSignNode = new
|
|
30449
|
+
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition); //插入该表达式节点
|
|
30286
30450
|
|
|
30287
30451
|
hoEditorFactory.undoService.begin();
|
|
30288
30452
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
|
|
@@ -30412,7 +30576,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30412
30576
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
30413
30577
|
|
|
30414
30578
|
var _cell$table$canMergeC = cell.table.canMergeCell(r, c, rowSpan, colSpan),
|
|
30415
|
-
_cell$table$canMergeC2 = (0,
|
|
30579
|
+
_cell$table$canMergeC2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$canMergeC, 3),
|
|
30416
30580
|
ret = _cell$table$canMergeC2[0],
|
|
30417
30581
|
aRowSpan = _cell$table$canMergeC2[1],
|
|
30418
30582
|
aColSpan = _cell$table$canMergeC2[2];
|
|
@@ -55592,6 +55756,8 @@ var UnitConvert = __webpack_require__(38100);
|
|
|
55592
55756
|
var BaseNode = __webpack_require__(50369);
|
|
55593
55757
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawDownListNode.ts
|
|
55594
55758
|
var DrawDownListNode = __webpack_require__(63756);
|
|
55759
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
|
|
55760
|
+
var TextInputFieldNode = __webpack_require__(34565);
|
|
55595
55761
|
;// CONCATENATED MODULE: ./src/editor/draw/DrawLine.ts
|
|
55596
55762
|
|
|
55597
55763
|
|
|
@@ -55613,6 +55779,7 @@ var DrawDownListNode = __webpack_require__(63756);
|
|
|
55613
55779
|
|
|
55614
55780
|
|
|
55615
55781
|
|
|
55782
|
+
|
|
55616
55783
|
|
|
55617
55784
|
|
|
55618
55785
|
var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
@@ -56227,6 +56394,10 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
56227
56394
|
break;
|
|
56228
56395
|
}
|
|
56229
56396
|
}
|
|
56397
|
+
|
|
56398
|
+
if (Paragraph/* Align.alright */.xM.alright && this.paragraphNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && this.paragraphNode.parentNode.alignWithBlocked) {
|
|
56399
|
+
usedWidth = 0;
|
|
56400
|
+
}
|
|
56230
56401
|
/**
|
|
56231
56402
|
* 返回字间距
|
|
56232
56403
|
* @param index 字序号
|
|
@@ -63056,9 +63227,12 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63056
63227
|
}
|
|
63057
63228
|
}, {
|
|
63058
63229
|
key: "afterHeightChanged",
|
|
63059
|
-
value: function afterHeightChanged(
|
|
63060
|
-
if (this._cell.cellProperty.align
|
|
63061
|
-
var
|
|
63230
|
+
value: function afterHeightChanged() {
|
|
63231
|
+
if (this._cell.cellProperty.align == TableProperty/* VAlign.vacenter */.TR.vacenter) {
|
|
63232
|
+
var _this$calcValignTop = this.calcValignTop(),
|
|
63233
|
+
_this$calcValignTop2 = (0,slicedToArray/* default */.Z)(_this$calcValignTop, 2),
|
|
63234
|
+
newValignTop = _this$calcValignTop2[0],
|
|
63235
|
+
topArr = _this$calcValignTop2[1];
|
|
63062
63236
|
|
|
63063
63237
|
if (newValignTop != this._valignTop) {
|
|
63064
63238
|
var adjustValignTop = newValignTop - this._valignTop;
|
|
@@ -63070,6 +63244,56 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63070
63244
|
}
|
|
63071
63245
|
}
|
|
63072
63246
|
}
|
|
63247
|
+
} else if (this._cell.cellProperty.align == TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
63248
|
+
var _this$calcValignTop3 = this.calcValignTop(),
|
|
63249
|
+
_this$calcValignTop4 = (0,slicedToArray/* default */.Z)(_this$calcValignTop3, 2),
|
|
63250
|
+
_newValignTop = _this$calcValignTop4[0],
|
|
63251
|
+
rowHeightArr = _this$calcValignTop4[1];
|
|
63252
|
+
|
|
63253
|
+
if (rowHeightArr) {
|
|
63254
|
+
// const getPlace=(dTop:number,dPageCellIndex: number,dHeight:number):[number,number]=>{
|
|
63255
|
+
// let index=0;
|
|
63256
|
+
// let newTop=dTop;
|
|
63257
|
+
// let rowHeight=0;
|
|
63258
|
+
// for (let i=0;i<topArr.length;i++ ){
|
|
63259
|
+
// if (dTop+dHeight<topArr[i]){
|
|
63260
|
+
// index=i;
|
|
63261
|
+
// break;
|
|
63262
|
+
// }
|
|
63263
|
+
// else {
|
|
63264
|
+
// newTop-=topArr[i]
|
|
63265
|
+
// }
|
|
63266
|
+
// }
|
|
63267
|
+
// return [index,newTop]
|
|
63268
|
+
// }
|
|
63269
|
+
if (_newValignTop != this._valignTop) {
|
|
63270
|
+
this._valignTop = _newValignTop;
|
|
63271
|
+
var childCount = this._cell.drawCell.drawLines.length;
|
|
63272
|
+
var pageCellIndex = this._cell.drawCell.drawPageCells.length - 1;
|
|
63273
|
+
var dPageCell = this._cell.drawCell.drawPageCells[pageCellIndex];
|
|
63274
|
+
var cellrestHeight = rowHeightArr[pageCellIndex];
|
|
63275
|
+
|
|
63276
|
+
for (var _i = childCount - 1; _i >= 0; _i--) {
|
|
63277
|
+
var dObj = this._cell.drawCell.drawLines[_i];
|
|
63278
|
+
|
|
63279
|
+
if (dObj instanceof DrawLine/* DrawLine */.a || dObj instanceof DrawPageTable/* DrawPageTable */.ox) {
|
|
63280
|
+
while (pageCellIndex > 0 && cellrestHeight < dObj.dHeight) {
|
|
63281
|
+
pageCellIndex -= 1;
|
|
63282
|
+
dPageCell = this._cell.drawCell.drawPageCells[pageCellIndex];
|
|
63283
|
+
cellrestHeight = rowHeightArr[pageCellIndex];
|
|
63284
|
+
}
|
|
63285
|
+
|
|
63286
|
+
if (!dPageCell.contains(dObj) && dObj.parent && dObj.parent.contains(dObj)) {
|
|
63287
|
+
dObj.parent.removeChild(dObj);
|
|
63288
|
+
}
|
|
63289
|
+
|
|
63290
|
+
dObj.y = cellrestHeight - dObj.dHeight - dObj.paragraphNode.combineParagraph.lineSpace;
|
|
63291
|
+
cellrestHeight = dObj.y;
|
|
63292
|
+
dPageCell.addChild(dObj); // const [pageCellIndex,newTop]=getPlace(dTop,index,dObj.dHeight);
|
|
63293
|
+
}
|
|
63294
|
+
}
|
|
63295
|
+
}
|
|
63296
|
+
}
|
|
63073
63297
|
}
|
|
63074
63298
|
}
|
|
63075
63299
|
}, {
|
|
@@ -63091,9 +63315,12 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63091
63315
|
value: function calcValignTop() {
|
|
63092
63316
|
var index = this.cell.drawCell.drawPageCells.indexOf(this);
|
|
63093
63317
|
var innerTop = 0;
|
|
63318
|
+
var toparr = new Array();
|
|
63319
|
+
var aHeight = 0;
|
|
63320
|
+
var hoeditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID);
|
|
63094
63321
|
|
|
63095
63322
|
if (index == 0) {
|
|
63096
|
-
innerTop =
|
|
63323
|
+
innerTop = hoeditorFactory.unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
|
|
63097
63324
|
}
|
|
63098
63325
|
|
|
63099
63326
|
var valignTop = innerTop;
|
|
@@ -63101,34 +63328,63 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63101
63328
|
if (this._cell.cellProperty.align === TableProperty/* VAlign.vatop */.TR.vatop) {
|
|
63102
63329
|
valignTop = innerTop;
|
|
63103
63330
|
} else if (this._cell.cellProperty.align === TableProperty/* VAlign.vacenter */.TR.vacenter) {
|
|
63104
|
-
var
|
|
63331
|
+
var _this$calcCellHeight = this.calcCellHeight();
|
|
63332
|
+
|
|
63333
|
+
var _this$calcCellHeight2 = (0,slicedToArray/* default */.Z)(_this$calcCellHeight, 2);
|
|
63334
|
+
|
|
63335
|
+
aHeight = _this$calcCellHeight2[0];
|
|
63336
|
+
toparr = _this$calcCellHeight2[1];
|
|
63105
63337
|
if (aHeight > this._cell.drawCell.docHeight) valignTop = (aHeight - this._cell.drawCell.docHeight) / 2;
|
|
63106
63338
|
} else if (this._cell.cellProperty.align === TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
63107
|
-
var
|
|
63339
|
+
var _this$calcCellHeight3 = this.calcCellHeight();
|
|
63340
|
+
|
|
63341
|
+
var _this$calcCellHeight4 = (0,slicedToArray/* default */.Z)(_this$calcCellHeight3, 2);
|
|
63342
|
+
|
|
63343
|
+
aHeight = _this$calcCellHeight4[0];
|
|
63344
|
+
toparr = _this$calcCellHeight4[1];
|
|
63345
|
+
var innerBottom = hoeditorFactory.unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
|
|
63346
|
+
var restRowHeight = 0;
|
|
63108
63347
|
|
|
63109
|
-
var
|
|
63110
|
-
|
|
63348
|
+
for (var r = index; r < toparr.length; r++) {
|
|
63349
|
+
restRowHeight += toparr[r];
|
|
63350
|
+
}
|
|
63351
|
+
|
|
63352
|
+
if (aHeight > this._cell.drawCell.docHeight && this._cell.drawCell.docHeight < restRowHeight) {
|
|
63353
|
+
valignTop = restRowHeight - this._cell.drawCell.docHeight - innerBottom;
|
|
63354
|
+
}
|
|
63111
63355
|
}
|
|
63112
63356
|
|
|
63113
|
-
return valignTop;
|
|
63357
|
+
return [valignTop, toparr];
|
|
63114
63358
|
}
|
|
63115
63359
|
}, {
|
|
63116
63360
|
key: "update",
|
|
63117
63361
|
value: function update(prevDrawArea, dlines, startIndex, dTop, restHeight) {
|
|
63118
|
-
var valignTop = dTop;
|
|
63362
|
+
var valignTop = dTop;
|
|
63363
|
+
|
|
63364
|
+
if (this._cell.cellProperty.align == TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
63365
|
+
valignTop = this.calcValignTop()[0];
|
|
63366
|
+
this._valignTop = valignTop;
|
|
63367
|
+
} // if (startIndex === 0) {
|
|
63119
63368
|
// valignTop=this.calcValignTop();
|
|
63120
63369
|
// this._valignTop=valignTop;
|
|
63121
63370
|
// }
|
|
63122
63371
|
|
|
63372
|
+
|
|
63123
63373
|
this._startDline = startIndex;
|
|
63124
63374
|
|
|
63125
63375
|
var ret = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "update", this).call(this, prevDrawArea, dlines, startIndex, valignTop, restHeight);
|
|
63126
63376
|
|
|
63127
|
-
this._docHeight
|
|
63377
|
+
this._docHeight = Math.max(0, this._docHeight - valignTop);
|
|
63128
63378
|
this.updateDHeight();
|
|
63129
63379
|
return ret; // this.updateTouchArea(this._dHeight);
|
|
63130
63380
|
// this.paintCellBackground(this._dHeight);
|
|
63131
63381
|
}
|
|
63382
|
+
/**
|
|
63383
|
+
*
|
|
63384
|
+
* @returns
|
|
63385
|
+
* 返回单元格在所有分页上的总高度,以及每页高度数组
|
|
63386
|
+
*/
|
|
63387
|
+
|
|
63132
63388
|
}, {
|
|
63133
63389
|
key: "calcCellHeight",
|
|
63134
63390
|
value: function calcCellHeight() {
|
|
@@ -63138,16 +63394,55 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63138
63394
|
c = _this$_cell$table$get6[1];
|
|
63139
63395
|
|
|
63140
63396
|
var ret = 0;
|
|
63397
|
+
var hoeditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID);
|
|
63398
|
+
var dTopArr = new Array();
|
|
63399
|
+
|
|
63400
|
+
if (this._cell.cellProperty.align == TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
63401
|
+
ret = 0;
|
|
63402
|
+
|
|
63403
|
+
for (var r = row, count = this._cell.rowSpan + row - 1; r <= count; r++) {
|
|
63404
|
+
var rowInfos = this._cell.table.rowInfos[r];
|
|
63405
|
+
|
|
63406
|
+
if (rowInfos) {
|
|
63407
|
+
ret += rowInfos.rowHeight;
|
|
63408
|
+
}
|
|
63409
|
+
}
|
|
63410
|
+
|
|
63411
|
+
var icount = this._cell.table.drawTable.drawPageTables.length;
|
|
63412
|
+
var index = 0;
|
|
63413
|
+
var pageHeight = 0;
|
|
63414
|
+
|
|
63415
|
+
for (var i = 0; i < icount; i++) {
|
|
63416
|
+
dTopArr[index] = 0;
|
|
63417
|
+
|
|
63418
|
+
for (var _r = row, _count = this._cell.rowSpan + row - 1; _r <= _count; _r++) {
|
|
63419
|
+
var dTable = this._cell.table.drawTable.drawPageTables[i];
|
|
63141
63420
|
|
|
63142
|
-
|
|
63143
|
-
|
|
63421
|
+
if (dTable.parent && dTable.parent.contains(dTable)) {
|
|
63422
|
+
var _rowInfos = dTable.partRowHeights.get(_r);
|
|
63144
63423
|
|
|
63145
|
-
|
|
63146
|
-
|
|
63424
|
+
if (_rowInfos) {
|
|
63425
|
+
if (pageHeight < ret) {
|
|
63426
|
+
pageHeight += _rowInfos.rowHeight;
|
|
63427
|
+
dTopArr[index] += _rowInfos.rowHeight;
|
|
63428
|
+
}
|
|
63429
|
+
}
|
|
63430
|
+
}
|
|
63431
|
+
|
|
63432
|
+
index += 1;
|
|
63433
|
+
}
|
|
63434
|
+
}
|
|
63435
|
+
} else if (this._cell.cellProperty.align == TableProperty/* VAlign.vacenter */.TR.vacenter) {
|
|
63436
|
+
for (var _r2 = row, _count2 = this._cell.rowSpan + row - 1; _r2 <= _count2; _r2++) {
|
|
63437
|
+
var _rowInfos2 = this._drawPageTable.partRowHeights.get(_r2);
|
|
63438
|
+
|
|
63439
|
+
if (_rowInfos2) {
|
|
63440
|
+
ret += _rowInfos2.rowHeight;
|
|
63441
|
+
}
|
|
63147
63442
|
}
|
|
63148
63443
|
}
|
|
63149
63444
|
|
|
63150
|
-
return ret;
|
|
63445
|
+
return [ret, dTopArr];
|
|
63151
63446
|
}
|
|
63152
63447
|
}]);
|
|
63153
63448
|
|
|
@@ -63798,7 +64093,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63798
64093
|
if (partCell) {
|
|
63799
64094
|
var oldHeight = partCell.dHeight;
|
|
63800
64095
|
partCell.dHeight = newHeight;
|
|
63801
|
-
partCell.afterHeightChanged(
|
|
64096
|
+
partCell.afterHeightChanged();
|
|
63802
64097
|
|
|
63803
64098
|
if (partCell.cell.rowSpan > 1) {
|
|
63804
64099
|
var index = partCell.cell.drawCell.drawPageCells.indexOf(partCell) - 1;
|
|
@@ -66668,6 +66963,7 @@ var DrawTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
66668
66963
|
key: "updateRowHeight",
|
|
66669
66964
|
value: function updateRowHeight(r) {
|
|
66670
66965
|
var dHeight = _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .gDefaultRowHeight */ .dT;
|
|
66966
|
+
var bottonAlignCell = new Array();
|
|
66671
66967
|
var rowPorpertyHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(this._table.rowInfos[r].rowProperty.rowHeight * 10, false);
|
|
66672
66968
|
|
|
66673
66969
|
if (this._table.rowInfos[r].rowProperty.isSpecifyHeight) {
|
|
@@ -66682,6 +66978,10 @@ var DrawTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
66682
66978
|
for (var c = 0; c < this._table.colCount; c++) {
|
|
66683
66979
|
var aCell = this._table.rows[r][c];
|
|
66684
66980
|
|
|
66981
|
+
if (aCell && aCell.cellProperty.align == _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_11__/* .VAlign.vabottom */ .TR.vabottom) {
|
|
66982
|
+
bottonAlignCell.push(aCell);
|
|
66983
|
+
}
|
|
66984
|
+
|
|
66685
66985
|
if (aCell && aCell.rowSpan === 1 && aCell.drawCell.dHeight > dHeight) {
|
|
66686
66986
|
dHeight = aCell.drawCell.dHeight; // let nextValue = aCell.drawCell.drawPageCells.values().next();
|
|
66687
66987
|
// while (!nextValue.done) {
|
|
@@ -66719,6 +67019,10 @@ var DrawTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
66719
67019
|
if (dHeight > rowPorpertyHeight) this._table.rowInfos[r].rowHeight = rowPorpertyHeight;else this._table.rowInfos[r].rowHeight = dHeight;
|
|
66720
67020
|
} else this._table.rowInfos[r].rowHeight = dHeight;
|
|
66721
67021
|
}
|
|
67022
|
+
|
|
67023
|
+
for (var _c = 0; _c < bottonAlignCell.length; _c++) {
|
|
67024
|
+
bottonAlignCell[_c].drawCell.needUpdate = true;
|
|
67025
|
+
}
|
|
66722
67026
|
} // for (let c = 0; c < this._table.colCount; c++) {
|
|
66723
67027
|
// const aCell = this._table.rows[r][c];
|
|
66724
67028
|
// if (aCell) {
|
|
@@ -66850,7 +67154,24 @@ var DrawTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
66850
67154
|
|
|
66851
67155
|
this.finishUpdate();
|
|
66852
67156
|
}
|
|
66853
|
-
}
|
|
67157
|
+
} // for (let i=0;i<this._drawPageTables.length-1;i++){
|
|
67158
|
+
// let c=0;
|
|
67159
|
+
// while (c<this._table.colCount){
|
|
67160
|
+
// const [cell,mr,mc]= this._table.getMainCell(dPageTable.endRow,c);
|
|
67161
|
+
// let inc=1;
|
|
67162
|
+
// if (cell){
|
|
67163
|
+
// if (cell.cellProperty.align==VAlign.vabottom){
|
|
67164
|
+
// const pageCell= cell.drawCell.getDrawPageCell(dPageTable);
|
|
67165
|
+
// if (pageCell){
|
|
67166
|
+
// pageCell.afterHeightChanged()
|
|
67167
|
+
// }
|
|
67168
|
+
// inc=cell.rowSpan;
|
|
67169
|
+
// }
|
|
67170
|
+
// c+=inc;
|
|
67171
|
+
// }
|
|
67172
|
+
// }
|
|
67173
|
+
// }
|
|
67174
|
+
|
|
66854
67175
|
|
|
66855
67176
|
rowTop = dTop + dPageTable.dHeight;
|
|
66856
67177
|
|
|
@@ -70144,6 +70465,8 @@ var TableFormula = __webpack_require__(39869);
|
|
|
70144
70465
|
var DrawConfig = __webpack_require__(39353);
|
|
70145
70466
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawSignNode.ts
|
|
70146
70467
|
var DrawSignNode = __webpack_require__(91390);
|
|
70468
|
+
// EXTERNAL MODULE: ./src/editor/dom/TableProperty.ts
|
|
70469
|
+
var TableProperty = __webpack_require__(68183);
|
|
70147
70470
|
;// CONCATENATED MODULE: ./src/editor/draw/drawTree/DrawTree.ts
|
|
70148
70471
|
|
|
70149
70472
|
|
|
@@ -70206,6 +70529,7 @@ var DrawSignNode = __webpack_require__(91390);
|
|
|
70206
70529
|
|
|
70207
70530
|
|
|
70208
70531
|
|
|
70532
|
+
|
|
70209
70533
|
|
|
70210
70534
|
|
|
70211
70535
|
//当前的显示状态,psDesign为设计状态,psEdit为正常编辑状态 psPreview为打印预览态态 psPrint 正在打印状态, psReview审阅状态
|
|
@@ -72599,20 +72923,38 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72599
72923
|
|
|
72600
72924
|
var _index2 = dPlace.cell.drawCell.drawPageCells.indexOf(dPlace);
|
|
72601
72925
|
|
|
72602
|
-
|
|
72603
|
-
|
|
72926
|
+
if (dPlace.cell.cellProperty.align != TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
72927
|
+
while (_index2 > 0) {
|
|
72928
|
+
aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index2 - 1];
|
|
72929
|
+
|
|
72930
|
+
if (!aPrevPlace.isEmpty()) {
|
|
72931
|
+
var rootArea = hoeditfactory.drawPageTree.getMainRootArea(aPrevPlace);
|
|
72604
72932
|
|
|
72605
|
-
|
|
72606
|
-
|
|
72933
|
+
if (rootArea) {
|
|
72934
|
+
aPage = this._drawPages[rootArea.index];
|
|
72935
|
+
}
|
|
72607
72936
|
|
|
72608
|
-
|
|
72609
|
-
aPage = this._drawPages[rootArea.index];
|
|
72937
|
+
return this.getStagePosition(aPage, aPrevPlace, x, 99999999);
|
|
72610
72938
|
}
|
|
72611
72939
|
|
|
72612
|
-
|
|
72940
|
+
_index2 -= 1;
|
|
72613
72941
|
}
|
|
72942
|
+
} else {
|
|
72943
|
+
while (_index2 < dPlace.cell.drawCell.drawPageCells.length - 1) {
|
|
72944
|
+
aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index2 + 1];
|
|
72945
|
+
|
|
72946
|
+
if (!aPrevPlace.isEmpty()) {
|
|
72947
|
+
var _rootArea = hoeditfactory.drawPageTree.getMainRootArea(aPrevPlace);
|
|
72948
|
+
|
|
72949
|
+
if (_rootArea) {
|
|
72950
|
+
aPage = this._drawPages[_rootArea.index];
|
|
72951
|
+
}
|
|
72614
72952
|
|
|
72615
|
-
|
|
72953
|
+
return this.getStagePosition(aPage, aPrevPlace, x, 99999999);
|
|
72954
|
+
}
|
|
72955
|
+
|
|
72956
|
+
_index2 += 1;
|
|
72957
|
+
}
|
|
72616
72958
|
}
|
|
72617
72959
|
} // if (dPlace instanceof DrawCell) {
|
|
72618
72960
|
// dItems = (dPlace as DrawCell).drawLxines;
|
|
@@ -214331,9 +214673,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214331
214673
|
var es_number_constructor = __webpack_require__(9653);
|
|
214332
214674
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214333
214675
|
var es_json_stringify = __webpack_require__(38862);
|
|
214334
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
214335
|
-
var
|
|
214336
|
-
var
|
|
214676
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=7e5f63ff&
|
|
214677
|
+
var HoDocvue_type_template_id_7e5f63ff_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.showDeleteSignMenu)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
214678
|
+
var HoDocvue_type_template_id_7e5f63ff_staticRenderFns = []
|
|
214337
214679
|
|
|
214338
214680
|
|
|
214339
214681
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -217974,7 +218316,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
217974
218316
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217975
218317
|
var ParagraphNode = __webpack_require__(14208);
|
|
217976
218318
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217977
|
-
/* harmony default export */ var version = ('2.0.
|
|
218319
|
+
/* harmony default export */ var version = ('2.0.97');
|
|
217978
218320
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217979
218321
|
var PoperTipText = __webpack_require__(91831);
|
|
217980
218322
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218753,8 +219095,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218753
219095
|
|
|
218754
219096
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218755
219097
|
components_HoDocvue_type_script_lang_js_,
|
|
218756
|
-
|
|
218757
|
-
|
|
219098
|
+
HoDocvue_type_template_id_7e5f63ff_render,
|
|
219099
|
+
HoDocvue_type_template_id_7e5f63ff_staticRenderFns,
|
|
218758
219100
|
false,
|
|
218759
219101
|
null,
|
|
218760
219102
|
null,
|
|
@@ -218807,6 +219149,7 @@ var TableNode = __webpack_require__(95883);
|
|
|
218807
219149
|
|
|
218808
219150
|
|
|
218809
219151
|
|
|
219152
|
+
|
|
218810
219153
|
|
|
218811
219154
|
|
|
218812
219155
|
var NeedDrawPageInfo = /*#__PURE__*/function () {
|
|
@@ -219011,17 +219354,6 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219011
219354
|
return [ret, isNew];
|
|
219012
219355
|
} //拆分成页
|
|
219013
219356
|
|
|
219014
|
-
}, {
|
|
219015
|
-
key: "clearAfterDTop",
|
|
219016
|
-
value: function clearAfterDTop(dDrawArea, dTop) {
|
|
219017
|
-
var numChildren = dDrawArea.children.length - 1;
|
|
219018
|
-
|
|
219019
|
-
for (var i = numChildren; i >= 0; i--) {
|
|
219020
|
-
if (dDrawArea.children[i].y > dTop) {
|
|
219021
|
-
dDrawArea.removeChildAt(i);
|
|
219022
|
-
}
|
|
219023
|
-
}
|
|
219024
|
-
}
|
|
219025
219357
|
}, {
|
|
219026
219358
|
key: "paint",
|
|
219027
219359
|
value: function paint(aDrawArea, dRoots, startLine, endLine) {
|
|
@@ -219094,7 +219426,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219094
219426
|
}
|
|
219095
219427
|
|
|
219096
219428
|
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
219097
|
-
this.
|
|
219429
|
+
this.clearAreas([mainArea]);
|
|
219098
219430
|
}
|
|
219099
219431
|
|
|
219100
219432
|
var nextLine = startLine;
|
|
@@ -219601,7 +219933,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219601
219933
|
}
|
|
219602
219934
|
|
|
219603
219935
|
var startPaintWithUpdate = this._startNeedUpdatePage === -1 && this._endNeedUpdatePage === -1;
|
|
219604
|
-
var imaxViewPage = Math.max.apply(Math, (0,toConsumableArray/* default */.Z)(hoEditorFactory.drawTree.inViewPages));
|
|
219936
|
+
var imaxViewPage = Math.max.apply(Math, (0,toConsumableArray/* default */.Z)(hoEditorFactory.drawTree.inViewPages).concat([this._drawMainDocs.length - 1]));
|
|
219605
219937
|
|
|
219606
219938
|
try {
|
|
219607
219939
|
if (this._oldPageCount === 0) {
|
|
@@ -236946,12 +237278,13 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
236946
237278
|
|
|
236947
237279
|
var drawPageTables = tableNodeInfo.tableNode.drawTable.drawPageTables;
|
|
236948
237280
|
var drawPageCells = tableNodeInfo.cellNode.drawCell.drawPageCells;
|
|
236949
|
-
|
|
236950
|
-
tableBounds.
|
|
236951
|
-
tableBounds.
|
|
236952
|
-
tableBounds.
|
|
237281
|
+
var currentPageIndex = dPage.drawMainDoc.pageIndex;
|
|
237282
|
+
tableBounds.cellX = drawPageCells[currentPageIndex].x + 20;
|
|
237283
|
+
tableBounds.cellY = drawPageCells[currentPageIndex].y + 20;
|
|
237284
|
+
tableBounds.cellWidth = drawPageCells[currentPageIndex].dWidth;
|
|
237285
|
+
tableBounds.cellHeight = drawPageCells[currentPageIndex].dHeight;
|
|
236953
237286
|
drawPageTables.forEach(function (v, key) {
|
|
236954
|
-
if (v.parent.pageIndex ===
|
|
237287
|
+
if (v.parent.pageIndex === currentPageIndex) {
|
|
236955
237288
|
tableBounds.height = v.dHeight;
|
|
236956
237289
|
tableBounds.y = dPage.drawMainDoc.y + v.y;
|
|
236957
237290
|
|