hoeditor-web 3.1.171 → 3.1.173
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.css +18072 -1
- package/lib/hoeditor.umd.js +237 -231
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -35872,9 +35872,8 @@ var Print = /*#__PURE__*/function () {
|
|
|
35872
35872
|
chromes = undefined;
|
|
35873
35873
|
}
|
|
35874
35874
|
try {
|
|
35875
|
-
var
|
|
35876
|
-
if ((
|
|
35877
|
-
var _chromes2;
|
|
35875
|
+
var _window$top;
|
|
35876
|
+
if ((_window$top = window.top) !== null && _window$top !== void 0 && (_window$top = _window$top.chrome) !== null && _window$top !== void 0 && _window$top.webview && printSilently) {
|
|
35878
35877
|
// console.log({
|
|
35879
35878
|
// exec: 'printpdf',
|
|
35880
35879
|
// data: {
|
|
@@ -35884,7 +35883,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35884
35883
|
// base64: PDF.output('datauristring').replace(/^data:application\/pdf;filename=generated.pdf;base64,/, ''),
|
|
35885
35884
|
// },
|
|
35886
35885
|
// })
|
|
35887
|
-
|
|
35886
|
+
window.top.chrome.webview.postMessage({
|
|
35888
35887
|
exec: 'printpdf',
|
|
35889
35888
|
data: {
|
|
35890
35889
|
// showsetup: true, // 是否显示打印设置
|
|
@@ -38333,80 +38332,70 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38333
38332
|
key: "deleteTextBeforePath",
|
|
38334
38333
|
value: function () {
|
|
38335
38334
|
var _deleteTextBeforePath = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().mark(function _callee(startPath) {
|
|
38336
|
-
var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, sPath, ePath, path, signNode, table, c, colProperty, pNode;
|
|
38335
|
+
var hoEditorFactory, paintStatus, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, sPath, ePath, path, signNode, table, c, colProperty, pNode;
|
|
38337
38336
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
38338
38337
|
while (1) switch (_context.prev = _context.next) {
|
|
38339
38338
|
case 0:
|
|
38340
38339
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38340
|
+
paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
38341
38341
|
domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
38342
38342
|
if (domRange.isEmpty) {
|
|
38343
|
-
_context.next =
|
|
38343
|
+
_context.next = 7;
|
|
38344
38344
|
break;
|
|
38345
38345
|
}
|
|
38346
38346
|
this.deleteRange(domRange, true);
|
|
38347
|
-
|
|
38348
|
-
// hoEditorFactory.undoService.add(
|
|
38349
|
-
// new NodesDeleteUndoUnit(
|
|
38350
|
-
// this._hoEditorFactoryID,
|
|
38351
|
-
// domRange.startPath,
|
|
38352
|
-
// domRange.endPath,
|
|
38353
|
-
// true
|
|
38354
|
-
// )
|
|
38355
|
-
// );
|
|
38356
|
-
// hoEditorFactory.undoService.commit();
|
|
38357
|
-
_context.next = 122;
|
|
38347
|
+
_context.next = 123;
|
|
38358
38348
|
break;
|
|
38359
|
-
case
|
|
38349
|
+
case 7:
|
|
38360
38350
|
nodePosition = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
38361
38351
|
childIndex = nodePosition.childIndex;
|
|
38362
38352
|
node = nodePosition.node;
|
|
38363
38353
|
if (!node) {
|
|
38364
|
-
_context.next =
|
|
38354
|
+
_context.next = 123;
|
|
38365
38355
|
break;
|
|
38366
38356
|
}
|
|
38367
38357
|
if (!domRange.isEmpty) {
|
|
38368
|
-
_context.next =
|
|
38358
|
+
_context.next = 123;
|
|
38369
38359
|
break;
|
|
38370
38360
|
}
|
|
38371
38361
|
if (!(node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R)) {
|
|
38372
|
-
_context.next =
|
|
38362
|
+
_context.next = 36;
|
|
38373
38363
|
break;
|
|
38374
38364
|
}
|
|
38375
38365
|
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D)) {
|
|
38376
|
-
_context.next =
|
|
38366
|
+
_context.next = 17;
|
|
38377
38367
|
break;
|
|
38378
38368
|
}
|
|
38379
38369
|
ret = node.parentNode.delCellNodeText();
|
|
38380
38370
|
if (ret) {
|
|
38381
|
-
_context.next =
|
|
38371
|
+
_context.next = 17;
|
|
38382
38372
|
break;
|
|
38383
38373
|
}
|
|
38384
38374
|
return _context.abrupt("return");
|
|
38385
|
-
case
|
|
38386
|
-
//}
|
|
38375
|
+
case 17:
|
|
38387
38376
|
topath = '';
|
|
38388
38377
|
if (!(childIndex > 0)) {
|
|
38389
|
-
_context.next =
|
|
38378
|
+
_context.next = 24;
|
|
38390
38379
|
break;
|
|
38391
38380
|
}
|
|
38392
38381
|
arr = startPath.split('/');
|
|
38393
38382
|
arr[arr.length - 1] = parseInt(arr[arr.length - 1]) - 1 + '';
|
|
38394
38383
|
topath = arr.join('/');
|
|
38395
|
-
_context.next =
|
|
38384
|
+
_context.next = 31;
|
|
38396
38385
|
break;
|
|
38397
|
-
case
|
|
38386
|
+
case 24:
|
|
38398
38387
|
tmp = node.previousLeaf();
|
|
38399
38388
|
if (!tmp) {
|
|
38400
|
-
_context.next =
|
|
38389
|
+
_context.next = 29;
|
|
38401
38390
|
break;
|
|
38402
38391
|
}
|
|
38403
38392
|
topath = hoEditorFactory.docTree.getNodeLastPath(tmp);
|
|
38404
|
-
_context.next =
|
|
38393
|
+
_context.next = 31;
|
|
38405
38394
|
break;
|
|
38406
|
-
case
|
|
38395
|
+
case 29:
|
|
38407
38396
|
console.error('这里应该不会出现这种情况 2020.10.28');
|
|
38408
38397
|
return _context.abrupt("return");
|
|
38409
|
-
case
|
|
38398
|
+
case 31:
|
|
38410
38399
|
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, topath, startPath);
|
|
38411
38400
|
// hoEditorFactory.undoService.begin();
|
|
38412
38401
|
// hoEditorFactory.undoService.add(
|
|
@@ -38425,42 +38414,42 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38425
38414
|
// if (node.parentNode instanceof TextInputFieldNode) {
|
|
38426
38415
|
// node.parentNode.update();
|
|
38427
38416
|
// }
|
|
38428
|
-
_context.next =
|
|
38417
|
+
_context.next = 123;
|
|
38429
38418
|
break;
|
|
38430
|
-
case
|
|
38419
|
+
case 36:
|
|
38431
38420
|
if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j)) {
|
|
38432
|
-
_context.next =
|
|
38421
|
+
_context.next = 56;
|
|
38433
38422
|
break;
|
|
38434
38423
|
}
|
|
38435
38424
|
endPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
38436
38425
|
if (!(node.parentNode && node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re)) {
|
|
38437
|
-
_context.next =
|
|
38426
|
+
_context.next = 51;
|
|
38438
38427
|
break;
|
|
38439
38428
|
}
|
|
38440
38429
|
if (!(node.parentNode.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j)) {
|
|
38441
|
-
_context.next =
|
|
38430
|
+
_context.next = 44;
|
|
38442
38431
|
break;
|
|
38443
38432
|
}
|
|
38444
38433
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode.previousLeaf());
|
|
38445
38434
|
endPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode);
|
|
38446
|
-
_context.next =
|
|
38435
|
+
_context.next = 51;
|
|
38447
38436
|
break;
|
|
38448
|
-
case
|
|
38437
|
+
case 44:
|
|
38449
38438
|
if (!(node === node.parentNode.last())) {
|
|
38450
|
-
_context.next =
|
|
38439
|
+
_context.next = 49;
|
|
38451
38440
|
break;
|
|
38452
38441
|
}
|
|
38453
38442
|
_topath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
38454
38443
|
hoEditorFactory.drawTree.moveCaretToPath(_topath);
|
|
38455
38444
|
hoEditorFactory.docTree.curDomRange.setSamePath(_topath);
|
|
38456
38445
|
return _context.abrupt("return");
|
|
38457
|
-
case
|
|
38446
|
+
case 49:
|
|
38458
38447
|
if (!(node === node.parentNode.first())) {
|
|
38459
|
-
_context.next =
|
|
38448
|
+
_context.next = 51;
|
|
38460
38449
|
break;
|
|
38461
38450
|
}
|
|
38462
38451
|
return _context.abrupt("return");
|
|
38463
|
-
case
|
|
38452
|
+
case 51:
|
|
38464
38453
|
_aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath //hoEditorFactory.docTree.getNodeLastPath(node)
|
|
38465
38454
|
).normalize();
|
|
38466
38455
|
isError = this.deleteRange(_aRange, true);
|
|
@@ -38477,26 +38466,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38477
38466
|
// )
|
|
38478
38467
|
// );
|
|
38479
38468
|
// hoEditorFactory.undoService.commit();
|
|
38480
|
-
_context.next =
|
|
38469
|
+
_context.next = 123;
|
|
38481
38470
|
break;
|
|
38482
|
-
case
|
|
38471
|
+
case 56:
|
|
38483
38472
|
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C)) {
|
|
38484
|
-
_context.next =
|
|
38473
|
+
_context.next = 82;
|
|
38485
38474
|
break;
|
|
38486
38475
|
}
|
|
38487
38476
|
prevNode = node.prevSibling();
|
|
38488
38477
|
if (!(prevNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_58__/* .TableNode */ .Fh)) {
|
|
38489
|
-
_context.next =
|
|
38478
|
+
_context.next = 60;
|
|
38490
38479
|
break;
|
|
38491
38480
|
}
|
|
38492
38481
|
return _context.abrupt("return");
|
|
38493
|
-
case
|
|
38482
|
+
case 60:
|
|
38494
38483
|
if (!(prevNode == null)) {
|
|
38495
|
-
_context.next =
|
|
38484
|
+
_context.next = 82;
|
|
38496
38485
|
break;
|
|
38497
38486
|
}
|
|
38498
38487
|
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D)) {
|
|
38499
|
-
_context.next =
|
|
38488
|
+
_context.next = 81;
|
|
38500
38489
|
break;
|
|
38501
38490
|
}
|
|
38502
38491
|
cellNode = node.parentNode;
|
|
@@ -38505,7 +38494,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38505
38494
|
cIndex = cellNode.childNodes.indexOf(node);
|
|
38506
38495
|
preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
|
|
38507
38496
|
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof _draw_DrawLine__WEBPACK_IMPORTED_MODULE_87__/* .DrawLine */ .a && preParaNode.drawlines[0].isEmpty())) {
|
|
38508
|
-
_context.next =
|
|
38497
|
+
_context.next = 78;
|
|
38509
38498
|
break;
|
|
38510
38499
|
}
|
|
38511
38500
|
// hoEditorFactory.undoService.begin();
|
|
@@ -38515,64 +38504,63 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38515
38504
|
// await hoEditorFactory.undoService.commit();
|
|
38516
38505
|
hoEditorFactory.undoService.begin();
|
|
38517
38506
|
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_94__/* .TableDeleteParagraphUndoUnit */ .T(this._hoEditorFactoryID, tableNode, tableNode.paragraphNode));
|
|
38518
|
-
_context.next =
|
|
38507
|
+
_context.next = 72;
|
|
38519
38508
|
return hoEditorFactory.undoService.commit();
|
|
38520
|
-
case
|
|
38509
|
+
case 72:
|
|
38521
38510
|
newpath = cellNode.childNodes[0].getNodePath();
|
|
38522
38511
|
hoEditorFactory.docTree.curDomRange.setSamePath(newpath);
|
|
38523
38512
|
hoEditorFactory.drawTree.moveCaretToPath(newpath);
|
|
38524
38513
|
return _context.abrupt("return");
|
|
38525
|
-
case 77:
|
|
38526
|
-
return _context.abrupt("return");
|
|
38527
38514
|
case 78:
|
|
38528
|
-
_context.next = 81;
|
|
38529
|
-
break;
|
|
38530
|
-
case 80:
|
|
38531
38515
|
return _context.abrupt("return");
|
|
38516
|
+
case 79:
|
|
38517
|
+
_context.next = 82;
|
|
38518
|
+
break;
|
|
38532
38519
|
case 81:
|
|
38533
|
-
|
|
38534
|
-
|
|
38520
|
+
return _context.abrupt("return");
|
|
38521
|
+
case 82:
|
|
38522
|
+
if (!(paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N))) {
|
|
38523
|
+
_context.next = 87;
|
|
38535
38524
|
break;
|
|
38536
38525
|
}
|
|
38537
38526
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
38538
38527
|
return _context.abrupt("return");
|
|
38539
|
-
case
|
|
38540
|
-
if (!((
|
|
38541
|
-
_context.next =
|
|
38528
|
+
case 87:
|
|
38529
|
+
if (!((paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38530
|
+
_context.next = 92;
|
|
38542
38531
|
break;
|
|
38543
38532
|
}
|
|
38544
38533
|
signUserId = node.customProperty.bce01;
|
|
38545
38534
|
if (!(hoEditorFactory.userInfo.id != signUserId)) {
|
|
38546
|
-
_context.next =
|
|
38535
|
+
_context.next = 92;
|
|
38547
38536
|
break;
|
|
38548
38537
|
}
|
|
38549
38538
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
38550
38539
|
return _context.abrupt("return");
|
|
38551
|
-
case
|
|
38552
|
-
if (!(
|
|
38553
|
-
_context.next =
|
|
38540
|
+
case 92:
|
|
38541
|
+
if (!(paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38542
|
+
_context.next = 95;
|
|
38554
38543
|
break;
|
|
38555
38544
|
}
|
|
38556
38545
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
38557
38546
|
return _context.abrupt("return");
|
|
38558
|
-
case
|
|
38559
|
-
if (!(
|
|
38560
|
-
_context.next =
|
|
38547
|
+
case 95:
|
|
38548
|
+
if (!(paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
38549
|
+
_context.next = 98;
|
|
38561
38550
|
break;
|
|
38562
38551
|
}
|
|
38563
38552
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
38564
38553
|
return _context.abrupt("return");
|
|
38565
|
-
case
|
|
38554
|
+
case 98:
|
|
38566
38555
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38567
|
-
_context.next =
|
|
38556
|
+
_context.next = 118;
|
|
38568
38557
|
break;
|
|
38569
38558
|
}
|
|
38570
38559
|
preNode = node.previousLeaf();
|
|
38571
38560
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
38572
|
-
ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
38573
|
-
//if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof SignNode) && !(nextNode instanceof SignNode)) {
|
|
38561
|
+
ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
38574
38562
|
if (!((node.imgSrc !== '' || node.fingerPrintSrc !== '') && node.isTemplate)) {
|
|
38575
|
-
_context.next =
|
|
38563
|
+
_context.next = 113;
|
|
38576
38564
|
break;
|
|
38577
38565
|
}
|
|
38578
38566
|
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
@@ -38594,7 +38582,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38594
38582
|
}
|
|
38595
38583
|
}
|
|
38596
38584
|
return _context.abrupt("return");
|
|
38597
|
-
case
|
|
38585
|
+
case 113:
|
|
38598
38586
|
if (node.connectMode == '换行' && preNode instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C) {
|
|
38599
38587
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
38600
38588
|
}
|
|
@@ -38602,7 +38590,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38602
38590
|
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_43__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, sPath, ePath, true));
|
|
38603
38591
|
hoEditorFactory.undoService.commit();
|
|
38604
38592
|
return _context.abrupt("return");
|
|
38605
|
-
case
|
|
38593
|
+
case 118:
|
|
38606
38594
|
pNode = node.parentNode;
|
|
38607
38595
|
hoEditorFactory.undoService.begin();
|
|
38608
38596
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
@@ -38610,7 +38598,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38610
38598
|
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
|
|
38611
38599
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
38612
38600
|
}
|
|
38613
|
-
case
|
|
38601
|
+
case 123:
|
|
38614
38602
|
case "end":
|
|
38615
38603
|
return _context.stop();
|
|
38616
38604
|
}
|
|
@@ -60579,7 +60567,7 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
60579
60567
|
/* harmony export */ a: function() { return /* binding */ FormularType; }
|
|
60580
60568
|
/* harmony export */ });
|
|
60581
60569
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
60582
|
-
/* harmony import */ var
|
|
60570
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(40735);
|
|
60583
60571
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27222);
|
|
60584
60572
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8495);
|
|
60585
60573
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70280);
|
|
@@ -60644,6 +60632,8 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
60644
60632
|
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(91105);
|
|
60645
60633
|
/* harmony import */ var _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(99152);
|
|
60646
60634
|
/* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(65043);
|
|
60635
|
+
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(51760);
|
|
60636
|
+
|
|
60647
60637
|
|
|
60648
60638
|
|
|
60649
60639
|
|
|
@@ -61229,7 +61219,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61229
61219
|
var table = this.getParentCell().table;
|
|
61230
61220
|
var arrStr = this.formulaStr.split(",");
|
|
61231
61221
|
if (arrStr.length < 2) {
|
|
61232
|
-
|
|
61222
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("体重和身高对应的单元格编号传入有误:" + this.formulaStr);
|
|
61233
61223
|
}
|
|
61234
61224
|
var _this$getRowColByCell7 = this.getRowColByCellAdress(arrStr[0]),
|
|
61235
61225
|
_this$getRowColByCell8 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell7, 2),
|
|
@@ -61275,7 +61265,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61275
61265
|
var table = this.getParentCell().table;
|
|
61276
61266
|
var arrStr = this.formulaStr.split(",");
|
|
61277
61267
|
if (arrStr.length < 2) {
|
|
61278
|
-
|
|
61268
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("单元格编号传入有误:" + this.formulaStr);
|
|
61279
61269
|
}
|
|
61280
61270
|
var _this$getRowColByCell11 = this.getRowColByCellAdress(arrStr[0]),
|
|
61281
61271
|
_this$getRowColByCell12 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell11, 2),
|
|
@@ -61611,7 +61601,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61611
61601
|
var strRet = " ";
|
|
61612
61602
|
var table = this.getParentCell().table;
|
|
61613
61603
|
if (this.formulaStr == "") {
|
|
61614
|
-
|
|
61604
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("体重的单元格编号传入有误:" + this.formulaStr);
|
|
61615
61605
|
}
|
|
61616
61606
|
var _this$getRowColByCell21 = this.getRowColByCellAdress(this.formulaStr),
|
|
61617
61607
|
_this$getRowColByCell22 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell21, 2),
|
|
@@ -61647,7 +61637,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61647
61637
|
var table = this.getParentCell().table;
|
|
61648
61638
|
var arrStr = this.formulaStr.split(",");
|
|
61649
61639
|
if (arrStr.length < 2) {
|
|
61650
|
-
|
|
61640
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("入院时间和出院时间对应的单元格编号传入有误:" + this.formulaStr);
|
|
61651
61641
|
return strRet;
|
|
61652
61642
|
}
|
|
61653
61643
|
var _this$getRowColByCell23 = this.getRowColByCellAdress(arrStr[0]),
|
|
@@ -61691,7 +61681,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61691
61681
|
var table = this.getParentCell().table;
|
|
61692
61682
|
var arrStr = this.formulaStr.split(",");
|
|
61693
61683
|
if (arrStr.length < 2) {
|
|
61694
|
-
|
|
61684
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("开始时间和结束时间对应的单元格编号传入有误:" + this.formulaStr);
|
|
61695
61685
|
return strRet;
|
|
61696
61686
|
}
|
|
61697
61687
|
var _this$getRowColByCell27 = this.getRowColByCellAdress(arrStr[0]),
|
|
@@ -61784,7 +61774,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61784
61774
|
var strRet = " ";
|
|
61785
61775
|
var table = this.getParentCell().table;
|
|
61786
61776
|
if (this.formulaStr == "") {
|
|
61787
|
-
|
|
61777
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("身高的单元格编号传入有误:" + this.formulaStr);
|
|
61788
61778
|
}
|
|
61789
61779
|
var cellNo = "";
|
|
61790
61780
|
var isRange = false;
|
|
@@ -61915,8 +61905,13 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61915
61905
|
}, {
|
|
61916
61906
|
key: "delete",
|
|
61917
61907
|
value: function _delete(operType) {
|
|
61918
|
-
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_35__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID)
|
|
61919
|
-
(
|
|
61908
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_35__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
61909
|
+
if (hoEditorFactory.drawTree.paintStatus == _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_43__/* .PaintState */ .Dh.psDesign) {
|
|
61910
|
+
hoEditorFactory.drawTree.formularNodes.delete(this._id);
|
|
61911
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TableFormula.prototype), "delete", this).call(this, operType);
|
|
61912
|
+
} else {
|
|
61913
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("不能删除表格计算公式");
|
|
61914
|
+
}
|
|
61920
61915
|
return true;
|
|
61921
61916
|
}
|
|
61922
61917
|
}, {
|
|
@@ -81085,36 +81080,32 @@ var DrawTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
81085
81080
|
}, {
|
|
81086
81081
|
key: "getRowStartLineMaxHeight",
|
|
81087
81082
|
value: function getRowStartLineMaxHeight(r) {
|
|
81088
|
-
|
|
81089
|
-
|
|
81090
|
-
|
|
81083
|
+
// let startRow = -1;
|
|
81084
|
+
// let endRow = -1;
|
|
81085
|
+
// let inSameRow = true;
|
|
81091
81086
|
//判断所有行的起始行是否一样 并且结束行也是否一样
|
|
81087
|
+
// for (let c = 0; c < this._table.colCount; c++) {
|
|
81088
|
+
// const [cell, mr, mc] = this._table.getMainCell(r, c);
|
|
81089
|
+
// if (startRow == -1) {
|
|
81090
|
+
// startRow = mr;
|
|
81091
|
+
// }
|
|
81092
|
+
// if (endRow == -1) {
|
|
81093
|
+
// endRow = mr + cell.rowSpan - 1;
|
|
81094
|
+
// }
|
|
81095
|
+
// if (mr != startRow || endRow != mr + cell.rowSpan - 1) {
|
|
81096
|
+
// inSameRow = false;
|
|
81097
|
+
// return gDefaultRowHeight;
|
|
81098
|
+
// }
|
|
81099
|
+
// }
|
|
81100
|
+
var maxRowHeight = _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_17__/* .gDefaultRowHeight */ .dT;
|
|
81092
81101
|
for (var c = 0; c < this._table.colCount; c++) {
|
|
81093
81102
|
var _this$_table$getMainC5 = this._table.getMainCell(r, c),
|
|
81094
81103
|
_this$_table$getMainC6 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$_table$getMainC5, 3),
|
|
81095
81104
|
cell = _this$_table$getMainC6[0],
|
|
81096
81105
|
mr = _this$_table$getMainC6[1],
|
|
81097
81106
|
mc = _this$_table$getMainC6[2];
|
|
81098
|
-
if (
|
|
81099
|
-
|
|
81100
|
-
}
|
|
81101
|
-
if (endRow == -1) {
|
|
81102
|
-
endRow = mr + cell.rowSpan - 1;
|
|
81103
|
-
}
|
|
81104
|
-
if (mr != startRow || endRow != mr + cell.rowSpan - 1) {
|
|
81105
|
-
inSameRow = false;
|
|
81106
|
-
return _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_17__/* .gDefaultRowHeight */ .dT;
|
|
81107
|
-
}
|
|
81108
|
-
}
|
|
81109
|
-
var maxRowHeight = 0;
|
|
81110
|
-
for (var _c2 = 0; _c2 < this._table.colCount; _c2++) {
|
|
81111
|
-
var _this$_table$getMainC7 = this._table.getMainCell(r, _c2),
|
|
81112
|
-
_this$_table$getMainC8 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$_table$getMainC7, 3),
|
|
81113
|
-
_cell = _this$_table$getMainC8[0],
|
|
81114
|
-
_mr = _this$_table$getMainC8[1],
|
|
81115
|
-
_mc = _this$_table$getMainC8[2];
|
|
81116
|
-
if (_cell && _mc === _c2) {
|
|
81117
|
-
var aHeight = _cell.drawCell.drawLines[0].dHeight;
|
|
81107
|
+
if (cell && mc === c) {
|
|
81108
|
+
var aHeight = cell.drawCell.drawLines[0].dHeight;
|
|
81118
81109
|
if (aHeight > maxRowHeight) {
|
|
81119
81110
|
maxRowHeight = aHeight;
|
|
81120
81111
|
}
|
|
@@ -81124,7 +81115,7 @@ var DrawTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
81124
81115
|
}
|
|
81125
81116
|
}, {
|
|
81126
81117
|
key: "isFirstRowCanFit",
|
|
81127
|
-
value: function isFirstRowCanFit(restHeight) {
|
|
81118
|
+
value: function isFirstRowCanFit(restHeight, dline) {
|
|
81128
81119
|
var _this$table$getHeadRo = this.table.getHeadRowCountHeight(),
|
|
81129
81120
|
_this$table$getHeadRo2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$table$getHeadRo, 2),
|
|
81130
81121
|
headCount = _this$table$getHeadRo2[0],
|
|
@@ -90307,17 +90298,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90307
90298
|
this._isError = true;
|
|
90308
90299
|
return _context3.abrupt("return");
|
|
90309
90300
|
case 12:
|
|
90310
|
-
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath);
|
|
90311
|
-
// if (npFirst && npFirst.node) {
|
|
90312
|
-
// //const parentNode = hoEditorFactory.docTree.getParentNode(this._startPath);
|
|
90313
|
-
// //if (parentNode) {
|
|
90314
|
-
// //if (!nodes.includes(parentNode)) nodes.splice(0, 0, parentNode);
|
|
90315
|
-
// //} else {
|
|
90316
|
-
// if (!nodes.includes(npFirst.node)) nodes.splice(0, 0, npFirst.node);
|
|
90317
|
-
// //}
|
|
90318
|
-
// }
|
|
90301
|
+
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath);
|
|
90319
90302
|
if (!(paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_41__/* .PaintState */ .Dh.psDesign && !this._isForceDelete)) {
|
|
90320
|
-
_context3.next =
|
|
90303
|
+
_context3.next = 83;
|
|
90321
90304
|
break;
|
|
90322
90305
|
}
|
|
90323
90306
|
lastNode = nodes[nodes.length - 1];
|
|
@@ -90358,12 +90341,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90358
90341
|
n = 0;
|
|
90359
90342
|
case 32:
|
|
90360
90343
|
if (!(n < nodes.length)) {
|
|
90361
|
-
_context3.next =
|
|
90344
|
+
_context3.next = 82;
|
|
90362
90345
|
break;
|
|
90363
90346
|
}
|
|
90364
90347
|
node = nodes[n];
|
|
90365
90348
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_32__/* .ControlNode */ .w && !(node instanceof _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_40__/* .RareCharNode */ .Q) || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re)) {
|
|
90366
|
-
_context3.next =
|
|
90349
|
+
_context3.next = 47;
|
|
90367
90350
|
break;
|
|
90368
90351
|
}
|
|
90369
90352
|
if (node.isAllowDelete) {
|
|
@@ -90388,90 +90371,91 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90388
90371
|
this._isError = true;
|
|
90389
90372
|
return _context3.abrupt("return");
|
|
90390
90373
|
case 45:
|
|
90374
|
+
_context3.next = 79;
|
|
90375
|
+
break;
|
|
90376
|
+
case 47:
|
|
90391
90377
|
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j)) {
|
|
90392
|
-
_context3.next =
|
|
90378
|
+
_context3.next = 60;
|
|
90393
90379
|
break;
|
|
90394
90380
|
}
|
|
90395
90381
|
if (!(node.MarkNodeType === 0)) {
|
|
90396
|
-
_context3.next =
|
|
90382
|
+
_context3.next = 53;
|
|
90397
90383
|
break;
|
|
90398
90384
|
}
|
|
90399
90385
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90400
90386
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("元素已设置为不允许删除,请正确操作。");
|
|
90401
90387
|
this._isError = true;
|
|
90402
90388
|
return _context3.abrupt("return");
|
|
90403
|
-
case
|
|
90389
|
+
case 53:
|
|
90404
90390
|
if (!(node.MarkNodeType === 2 && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && !node.parentNode.canModifyContent)) {
|
|
90405
|
-
_context3.next =
|
|
90391
|
+
_context3.next = 58;
|
|
90406
90392
|
break;
|
|
90407
90393
|
}
|
|
90408
90394
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90409
90395
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("该元素不允许编辑、删除,请正确操作。");
|
|
90410
90396
|
this._isError = true;
|
|
90411
90397
|
return _context3.abrupt("return");
|
|
90412
|
-
case
|
|
90398
|
+
case 58:
|
|
90399
|
+
_context3.next = 79;
|
|
90400
|
+
break;
|
|
90401
|
+
case 60:
|
|
90413
90402
|
if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_39__/* .TableFormula */ .N)) {
|
|
90414
|
-
_context3.next =
|
|
90403
|
+
_context3.next = 67;
|
|
90415
90404
|
break;
|
|
90416
90405
|
}
|
|
90417
90406
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90418
90407
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许删除表格计算公式");
|
|
90419
90408
|
this._isError = true;
|
|
90420
90409
|
return _context3.abrupt("return");
|
|
90421
|
-
case
|
|
90410
|
+
case 67:
|
|
90422
90411
|
if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_30__/* .TableNode */ .Fh && !node.tableProperty.canDelTable)) {
|
|
90423
|
-
_context3.next =
|
|
90412
|
+
_context3.next = 74;
|
|
90424
90413
|
break;
|
|
90425
90414
|
}
|
|
90426
90415
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90427
90416
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许删除表格");
|
|
90428
90417
|
this._isError = true;
|
|
90429
90418
|
return _context3.abrupt("return");
|
|
90430
|
-
case
|
|
90419
|
+
case 74:
|
|
90431
90420
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_37__/* .SignNode */ .N)) {
|
|
90432
|
-
_context3.next =
|
|
90421
|
+
_context3.next = 79;
|
|
90433
90422
|
break;
|
|
90434
90423
|
}
|
|
90435
90424
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90436
90425
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许直接删除签名!");
|
|
90437
90426
|
this._isError = true;
|
|
90438
90427
|
return _context3.abrupt("return");
|
|
90439
|
-
case
|
|
90428
|
+
case 79:
|
|
90440
90429
|
n++;
|
|
90441
90430
|
_context3.next = 32;
|
|
90442
90431
|
break;
|
|
90443
|
-
case
|
|
90432
|
+
case 82:
|
|
90444
90433
|
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j) {
|
|
90445
90434
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
90446
90435
|
}
|
|
90447
|
-
case
|
|
90436
|
+
case 83:
|
|
90448
90437
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
90449
90438
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
90450
|
-
_context3.next =
|
|
90439
|
+
_context3.next = 89;
|
|
90451
90440
|
break;
|
|
90452
90441
|
}
|
|
90453
90442
|
//判断当前TextInputField是否可编辑
|
|
90454
90443
|
pTiNode = pnode;
|
|
90455
|
-
_res = pTiNode.getReadyToEdit(function (value) {
|
|
90456
|
-
//NOTE:在redo当中不能使用同一实例UndoRedoService的commit
|
|
90457
|
-
// this._undo.begin();
|
|
90458
|
-
// this._undo.add(new NodeDeleteUndoUnit(value));
|
|
90459
|
-
// this._undo.commit();
|
|
90460
|
-
});
|
|
90444
|
+
_res = pTiNode.getReadyToEdit(function (value) {});
|
|
90461
90445
|
if (_res[0]) {
|
|
90462
|
-
_context3.next =
|
|
90446
|
+
_context3.next = 89;
|
|
90463
90447
|
break;
|
|
90464
90448
|
}
|
|
90465
90449
|
return _context3.abrupt("return");
|
|
90466
|
-
case
|
|
90450
|
+
case 89:
|
|
90467
90451
|
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_18__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_16__/* .DocAction */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
90468
90452
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
90469
90453
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
90470
|
-
_context3.next =
|
|
90454
|
+
_context3.next = 92;
|
|
90471
90455
|
break;
|
|
90472
90456
|
}
|
|
90473
90457
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
|
|
90474
|
-
case
|
|
90458
|
+
case 92:
|
|
90475
90459
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
90476
90460
|
// this._hoEditorFactory,
|
|
90477
90461
|
// currRange.startPath,
|
|
@@ -90483,17 +90467,17 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90483
90467
|
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
90484
90468
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
90485
90469
|
if (!(res == 1)) {
|
|
90486
|
-
_context3.next =
|
|
90470
|
+
_context3.next = 104;
|
|
90487
90471
|
break;
|
|
90488
90472
|
}
|
|
90489
90473
|
changeEvent.beforeChangePath = startPath;
|
|
90490
90474
|
changeEvent.afterChangePath = this._tmp.start;
|
|
90491
|
-
_context3.next =
|
|
90475
|
+
_context3.next = 102;
|
|
90492
90476
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
90493
|
-
case
|
|
90477
|
+
case 102:
|
|
90494
90478
|
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_22__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
90495
90479
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
90496
|
-
case
|
|
90480
|
+
case 104:
|
|
90497
90481
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
90498
90482
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
90499
90483
|
aNode = currRange.npStart.node;
|
|
@@ -90501,12 +90485,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90501
90485
|
pnode = aNode.parentNode;
|
|
90502
90486
|
}
|
|
90503
90487
|
if (!(aNode && pnode)) {
|
|
90504
|
-
_context3.next =
|
|
90488
|
+
_context3.next = 111;
|
|
90505
90489
|
break;
|
|
90506
90490
|
}
|
|
90507
|
-
_context3.next =
|
|
90491
|
+
_context3.next = 111;
|
|
90508
90492
|
return this.ParentRepaint(pnode);
|
|
90509
|
-
case
|
|
90493
|
+
case 111:
|
|
90510
90494
|
case "end":
|
|
90511
90495
|
return _context3.stop();
|
|
90512
90496
|
}
|
|
@@ -94000,11 +93984,9 @@ var NodeConvert = /*#__PURE__*/function () {
|
|
|
94000
93984
|
if (value.node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_26__/* .TextInputFieldNode */ .re) {
|
|
94001
93985
|
value.node.text = "";
|
|
94002
93986
|
value.node.childNodes.splice(1, value.node.childNodes.length - 2);
|
|
94003
|
-
}
|
|
94004
|
-
if (value.node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_27__/* .DateTimeNode */ .Z) {
|
|
93987
|
+
} else if (value.node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_27__/* .DateTimeNode */ .Z) {
|
|
94005
93988
|
value.node.text = "";
|
|
94006
|
-
}
|
|
94007
|
-
if (value.node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_28__/* .DownListNode */ .yF) {
|
|
93989
|
+
} else if (value.node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_28__/* .DownListNode */ .yF) {
|
|
94008
93990
|
value.node.text = "";
|
|
94009
93991
|
}
|
|
94010
93992
|
}
|
|
@@ -205833,7 +205815,7 @@ Input.install = function (Vue) {
|
|
|
205833
205815
|
|
|
205834
205816
|
|
|
205835
205817
|
/* harmony default export */ var antd = ([es_button, input, input_number, es_checkbox, date_picker, time_picker, es_radio, es_select, es_tabs, es_dropdown, es_menu, es_upload, tooltip, table, popover, es_icon/* default */.Z, config_provider]);
|
|
205836
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=
|
|
205818
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=241e7c23&
|
|
205837
205819
|
var render = function render() {
|
|
205838
205820
|
var _vm = this,
|
|
205839
205821
|
_c = _vm._self._c;
|
|
@@ -209146,7 +209128,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
209146
209128
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
209147
209129
|
var ParagraphNode = __webpack_require__(67945);
|
|
209148
209130
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
209149
|
-
/* harmony default export */ var version = ('3.1.
|
|
209131
|
+
/* harmony default export */ var version = ('3.1.173');
|
|
209150
209132
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
209151
209133
|
var PoperTipText = __webpack_require__(84531);
|
|
209152
209134
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -224668,6 +224650,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224668
224650
|
key: "setBackgroundByName",
|
|
224669
224651
|
value: function setBackgroundByName(items) {
|
|
224670
224652
|
var _this6 = this;
|
|
224653
|
+
var clearSelectRange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
224671
224654
|
var selectRangeArr = [];
|
|
224672
224655
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
224673
224656
|
var iteratesNodes = function iteratesNodes(nodes) {
|
|
@@ -224683,7 +224666,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224683
224666
|
if (range.length > 0) {
|
|
224684
224667
|
selectRangeArr = selectRangeArr.concat(range);
|
|
224685
224668
|
}
|
|
224686
|
-
} else if (item.text === '' && isCurrent) {
|
|
224669
|
+
} else if ((item.text === '' || item.text == undefined) && isCurrent) {
|
|
224687
224670
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(anode.previousLeaf());
|
|
224688
224671
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(anode);
|
|
224689
224672
|
var pStartPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this6._hoEditorFactoryID, sPath);
|
|
@@ -224711,7 +224694,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224711
224694
|
iteratesNodes(footerDocTree[f].subDocNodes);
|
|
224712
224695
|
}
|
|
224713
224696
|
if (selectRangeArr.length > 0) {
|
|
224714
|
-
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr,
|
|
224697
|
+
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, clearSelectRange, true);
|
|
224715
224698
|
} else {
|
|
224716
224699
|
console.warn('未搜索到符合条件的元素');
|
|
224717
224700
|
}
|
|
@@ -224910,6 +224893,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224910
224893
|
}
|
|
224911
224894
|
return selectRangeArr;
|
|
224912
224895
|
}
|
|
224896
|
+
}, {
|
|
224897
|
+
key: "clearSelectedRange",
|
|
224898
|
+
value: function clearSelectedRange() {
|
|
224899
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
224900
|
+
hoEditorFactory.drawTree.selectRange.clearAllCustomSelectShape();
|
|
224901
|
+
}
|
|
224913
224902
|
}, {
|
|
224914
224903
|
key: "findAndLightElementsByNames",
|
|
224915
224904
|
value: function findAndLightElementsByNames(names) {
|
|
@@ -225188,6 +225177,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
225188
225177
|
hoEditorFactory._docTree.clearDocTree();
|
|
225189
225178
|
delete hoEditorFactory._docTree;
|
|
225190
225179
|
}
|
|
225180
|
+
if (hoEditorFactory.hoLocalStorage) {
|
|
225181
|
+
hoEditorFactory.hoLocalStorage.removeEvent();
|
|
225182
|
+
}
|
|
225191
225183
|
delete hoEditorFactory._subDocManger;
|
|
225192
225184
|
delete hoEditorFactory._drawPageTree;
|
|
225193
225185
|
delete hoEditorFactory._vueController;
|
|
@@ -226775,6 +226767,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226775
226767
|
}, {
|
|
226776
226768
|
key: "structuredLookup",
|
|
226777
226769
|
value: function structuredLookup(findTextArr) {
|
|
226770
|
+
var clearSelectRange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
226778
226771
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226779
226772
|
var selectRangeArr = [];
|
|
226780
226773
|
var paths = [];
|
|
@@ -226829,7 +226822,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226829
226822
|
selectRangeArr.push(selectRange);
|
|
226830
226823
|
}
|
|
226831
226824
|
if (selectRangeArr.length > 0) {
|
|
226832
|
-
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr,
|
|
226825
|
+
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, clearSelectRange, true);
|
|
226833
226826
|
}
|
|
226834
226827
|
}
|
|
226835
226828
|
}, {
|
|
@@ -226970,7 +226963,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226970
226963
|
//校验单复选必选
|
|
226971
226964
|
}, {
|
|
226972
226965
|
key: "verifyRadioAndCheckBoxs",
|
|
226973
|
-
value: function verifyRadioAndCheckBoxs() {
|
|
226966
|
+
value: function verifyRadioAndCheckBoxs(clearSelect) {
|
|
226974
226967
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226975
226968
|
var radioAndCheckBoxs = hoEditorFactory.docTree.radioAndCheckBoxsMap;
|
|
226976
226969
|
var names = [];
|
|
@@ -227022,7 +227015,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227022
227015
|
// message.warn(tip);
|
|
227023
227016
|
result = groupNames;
|
|
227024
227017
|
}
|
|
227025
|
-
hoEditorFactory.drawTree.selectRange.clearAllCustomSelectShape();
|
|
227018
|
+
// hoEditorFactory.drawTree.selectRange.clearAllCustomSelectShape();
|
|
227026
227019
|
if (elements.length > 0) {
|
|
227027
227020
|
var elementArr = elements.filter(function (item, index, array) {
|
|
227028
227021
|
return array.indexOf(item) === index;
|
|
@@ -227039,7 +227032,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227039
227032
|
selectRangeArr.push(selectRange);
|
|
227040
227033
|
}
|
|
227041
227034
|
if (selectRangeArr.length > 0) {
|
|
227042
|
-
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr,
|
|
227035
|
+
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, clearSelect, true);
|
|
227043
227036
|
}
|
|
227044
227037
|
}
|
|
227045
227038
|
return result;
|
|
@@ -228158,6 +228151,8 @@ var DomController = /*#__PURE__*/function () {
|
|
|
228158
228151
|
|
|
228159
228152
|
|
|
228160
228153
|
|
|
228154
|
+
|
|
228155
|
+
|
|
228161
228156
|
|
|
228162
228157
|
|
|
228163
228158
|
|
|
@@ -228588,16 +228583,27 @@ var EditController = /*#__PURE__*/function () {
|
|
|
228588
228583
|
var fromCell = tableNode.rows[i][j];
|
|
228589
228584
|
var toCell = parentNode.table.rows[rs + i][cs + j];
|
|
228590
228585
|
if (fromCell && toCell) {
|
|
228591
|
-
|
|
228592
|
-
|
|
228586
|
+
var hasFormula = toCell.childNodes.filter(function (child) {
|
|
228587
|
+
return child.nodeType == BaseNode/* NodeType */.Jq.ntTableFormula;
|
|
228588
|
+
}).length;
|
|
228589
|
+
var fromCell2 = [];
|
|
228590
|
+
if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psEdit || hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview) {
|
|
228591
|
+
fromCell2 = fromCell.childNodes.filter(function (child) {
|
|
228592
|
+
return child.nodeType != BaseNode/* NodeType */.Jq.ntSign;
|
|
228593
|
+
});
|
|
228593
228594
|
}
|
|
228594
|
-
|
|
228595
|
-
|
|
228596
|
-
|
|
228597
|
-
|
|
228598
|
-
|
|
228595
|
+
if (!hasFormula) {
|
|
228596
|
+
if (fromCell.rowSpan > 1 || fromCell.colSpan > 1) {
|
|
228597
|
+
hoeditorfactory.docController.mergeCells(toCell, rs + i, cs + j, fromCell.rowSpan, fromCell.colSpan);
|
|
228598
|
+
}
|
|
228599
|
+
toCell.childNodes.splice(1, toCell.childNodes.length);
|
|
228600
|
+
var childNodes = fromCell2;
|
|
228601
|
+
for (var s = 1; s < childNodes.length; s++) {
|
|
228602
|
+
var path = hoeditorfactory.docTree.getNodeLastPath(toCell.childNodes[toCell.childNodes.length - 1]);
|
|
228603
|
+
hoeditorfactory.docTree.insertNodeAfterPath(path, childNodes[s]);
|
|
228604
|
+
}
|
|
228605
|
+
toCell.drawCell.needUpdate = true;
|
|
228599
228606
|
}
|
|
228600
|
-
toCell.drawCell.needUpdate = true;
|
|
228601
228607
|
}
|
|
228602
228608
|
}
|
|
228603
228609
|
}
|
|
@@ -238131,7 +238137,6 @@ var localforage_default = /*#__PURE__*/__webpack_require__.n(localforage);
|
|
|
238131
238137
|
var HoLocalStorage = /*#__PURE__*/function () {
|
|
238132
238138
|
// 增加页面刷新时缓存未保存的病历数据
|
|
238133
238139
|
function HoLocalStorage(hoEditorFactoryID) {
|
|
238134
|
-
var _this$getChromeWebvie;
|
|
238135
238140
|
(0,esm_classCallCheck/* default */.Z)(this, HoLocalStorage);
|
|
238136
238141
|
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
238137
238142
|
(0,esm_defineProperty/* default */.Z)(this, "_key", void 0);
|
|
@@ -238157,6 +238162,8 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238157
238162
|
//当前缓存的xml文件列表
|
|
238158
238163
|
(0,esm_defineProperty/* default */.Z)(this, "_xmlToLoad", void 0);
|
|
238159
238164
|
//当前缓存的xml文件列表
|
|
238165
|
+
(0,esm_defineProperty/* default */.Z)(this, "isWebview", void 0);
|
|
238166
|
+
// 是否是webview
|
|
238160
238167
|
(0,esm_defineProperty/* default */.Z)(this, "callBack", void 0);
|
|
238161
238168
|
(0,esm_defineProperty/* default */.Z)(this, "callBackForLoad", void 0);
|
|
238162
238169
|
(0,esm_defineProperty/* default */.Z)(this, "_offline_cache_list", void 0);
|
|
@@ -238166,19 +238173,14 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238166
238173
|
(0,esm_defineProperty/* default */.Z)(this, "_offLineIntervalCacheTimer", void 0);
|
|
238167
238174
|
// 网络连接中断后定时30s缓存一次
|
|
238168
238175
|
(0,esm_defineProperty/* default */.Z)(this, "pageLoadCacheList", void 0);
|
|
238169
|
-
var _this = this;
|
|
238170
238176
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
238171
|
-
|
|
238172
|
-
|
|
238173
|
-
|
|
238174
|
-
|
|
238175
|
-
|
|
238176
|
-
|
|
238177
|
-
|
|
238178
|
-
(_this$getChromeWebvie = this.getChromeWebview()) === null || _this$getChromeWebvie === void 0 ? void 0 : _this$getChromeWebvie.addEventListener('message', function (e) {
|
|
238179
|
-
if (e && e.data) {
|
|
238180
|
-
var res = JSON.parse(e.data);
|
|
238181
|
-
// console.log('res-----', res);
|
|
238177
|
+
}
|
|
238178
|
+
(0,esm_createClass/* default */.Z)(HoLocalStorage, [{
|
|
238179
|
+
key: "initEvent",
|
|
238180
|
+
value: function initEvent(message) {
|
|
238181
|
+
var _this = this;
|
|
238182
|
+
if (message && message.data) {
|
|
238183
|
+
var res = JSON.parse(message.data);
|
|
238182
238184
|
if (res.result == true && res.res.cmd == 'GetList') {
|
|
238183
238185
|
var _this$callBack;
|
|
238184
238186
|
_this._localXmlList = res.res.EMR;
|
|
@@ -238197,29 +238199,19 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238197
238199
|
return false;
|
|
238198
238200
|
}
|
|
238199
238201
|
}
|
|
238200
|
-
}
|
|
238201
|
-
}
|
|
238202
|
-
|
|
238203
|
-
|
|
238204
|
-
|
|
238205
|
-
|
|
238206
|
-
|
|
238207
|
-
try {
|
|
238208
|
-
if (window.top) {
|
|
238209
|
-
chromes = window.top.chrome;
|
|
238210
|
-
}
|
|
238211
|
-
} catch (error) {
|
|
238212
|
-
console.error(error);
|
|
238213
|
-
chromes = undefined;
|
|
238202
|
+
}
|
|
238203
|
+
}, {
|
|
238204
|
+
key: "removeEvent",
|
|
238205
|
+
value: function removeEvent() {
|
|
238206
|
+
var _window$top;
|
|
238207
|
+
if ((_window$top = window.top) !== null && _window$top !== void 0 && (_window$top = _window$top.chrome) !== null && _window$top !== void 0 && (_window$top = _window$top.webview) !== null && _window$top !== void 0 && _window$top.addEventListener) {
|
|
238208
|
+
window.top.chrome.webview.removeEventListener('message', this.initEvent);
|
|
238214
238209
|
}
|
|
238215
|
-
return (_chromes = chromes) === null || _chromes === void 0 ? void 0 : _chromes.webview;
|
|
238216
238210
|
}
|
|
238217
|
-
// set ho_web(value: any) {
|
|
238218
|
-
// this._ho_web = value;
|
|
238219
|
-
// }
|
|
238220
238211
|
}, {
|
|
238221
238212
|
key: "initHoWebSql",
|
|
238222
238213
|
value: function initHoWebSql() {
|
|
238214
|
+
var _window$top2;
|
|
238223
238215
|
localforage_default().config({
|
|
238224
238216
|
driver: (localforage_default()).INDEXEDDB
|
|
238225
238217
|
});
|
|
@@ -238243,13 +238235,16 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238243
238235
|
name: '_ho_web',
|
|
238244
238236
|
storeName: 'PageLoadCacheList'
|
|
238245
238237
|
});
|
|
238238
|
+
if ((_window$top2 = window.top) !== null && _window$top2 !== void 0 && (_window$top2 = _window$top2.chrome) !== null && _window$top2 !== void 0 && (_window$top2 = _window$top2.webview) !== null && _window$top2 !== void 0 && _window$top2.addEventListener) {
|
|
238239
|
+
window.top.chrome.webview.addEventListener('message', this.initEvent);
|
|
238240
|
+
}
|
|
238246
238241
|
// this.networkEventListener();
|
|
238247
238242
|
}
|
|
238248
238243
|
//获取localXmlList
|
|
238249
238244
|
}, {
|
|
238250
238245
|
key: "getLocalXmlList",
|
|
238251
238246
|
value: function getLocalXmlList(callBack) {
|
|
238252
|
-
var
|
|
238247
|
+
var _window$top3;
|
|
238253
238248
|
this.callBack = callBack;
|
|
238254
238249
|
var hoEditfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
238255
238250
|
var data = {
|
|
@@ -238262,7 +238257,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238262
238257
|
}
|
|
238263
238258
|
}
|
|
238264
238259
|
};
|
|
238265
|
-
(
|
|
238260
|
+
if ((_window$top3 = window.top) !== null && _window$top3 !== void 0 && (_window$top3 = _window$top3.chrome) !== null && _window$top3 !== void 0 && _window$top3.webview) {
|
|
238261
|
+
var _window$top4;
|
|
238262
|
+
(_window$top4 = window.top) === null || _window$top4 === void 0 || (_window$top4 = _window$top4.chrome) === null || _window$top4 === void 0 || (_window$top4 = _window$top4.webview) === null || _window$top4 === void 0 ? void 0 : _window$top4.postMessage(data);
|
|
238263
|
+
}
|
|
238266
238264
|
}
|
|
238267
238265
|
// 获取key的数据 => { data, keyInfo }
|
|
238268
238266
|
}, {
|
|
@@ -238276,7 +238274,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238276
238274
|
}, {
|
|
238277
238275
|
key: "loadLocalXml",
|
|
238278
238276
|
value: function loadLocalXml(item, callBack) {
|
|
238279
|
-
var
|
|
238277
|
+
var _window$top5;
|
|
238280
238278
|
this.callBackForLoad = callBack;
|
|
238281
238279
|
var data = {
|
|
238282
238280
|
exec: 'emr',
|
|
@@ -238288,7 +238286,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238288
238286
|
}
|
|
238289
238287
|
}
|
|
238290
238288
|
};
|
|
238291
|
-
(
|
|
238289
|
+
if ((_window$top5 = window.top) !== null && _window$top5 !== void 0 && (_window$top5 = _window$top5.chrome) !== null && _window$top5 !== void 0 && _window$top5.webview) {
|
|
238290
|
+
var _window$top6;
|
|
238291
|
+
(_window$top6 = window.top) === null || _window$top6 === void 0 || (_window$top6 = _window$top6.chrome) === null || _window$top6 === void 0 || (_window$top6 = _window$top6.webview) === null || _window$top6 === void 0 ? void 0 : _window$top6.postMessage(data);
|
|
238292
|
+
}
|
|
238292
238293
|
}
|
|
238293
238294
|
}, {
|
|
238294
238295
|
key: "removeLocalStorage",
|
|
@@ -238319,18 +238320,17 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238319
238320
|
}, {
|
|
238320
238321
|
key: "autoSaveLocalStorage",
|
|
238321
238322
|
value: function autoSaveLocalStorage() {
|
|
238322
|
-
var
|
|
238323
|
+
var _window$top7,
|
|
238324
|
+
_this4 = this;
|
|
238323
238325
|
if (this._lastSaveTime && new Date().getTime() - this._lastSaveTime <= this._intervalsTime) {
|
|
238324
238326
|
return;
|
|
238325
238327
|
}
|
|
238326
|
-
var HoBrowser = this.getChromeWebview();
|
|
238327
238328
|
var saveTime = (0,plugins_util/* dateFormat */.vc)(new Date());
|
|
238328
238329
|
var hoEditfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
238329
238330
|
this._key = hoEditfactory.userInfo.id + hoEditfactory.docTree.docProperty.patientID + hoEditfactory.docTree.docProperty.title;
|
|
238330
|
-
if (
|
|
238331
|
+
if ((_window$top7 = window.top) !== null && _window$top7 !== void 0 && (_window$top7 = _window$top7.chrome) !== null && _window$top7 !== void 0 && _window$top7.webview) {
|
|
238331
238332
|
this._lastSaveTime = new Date(saveTime).getTime();
|
|
238332
238333
|
if (hoEditfactory && hoEditfactory.vueController.isModifyDoc()) {
|
|
238333
|
-
var _this$getChromeWebvie4;
|
|
238334
238334
|
var data = {
|
|
238335
238335
|
exec: 'emr',
|
|
238336
238336
|
data: {
|
|
@@ -238343,7 +238343,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238343
238343
|
}
|
|
238344
238344
|
};
|
|
238345
238345
|
// console.log('SaveEmrData', data);
|
|
238346
|
-
|
|
238346
|
+
window.top.chrome.webview.postMessage(data);
|
|
238347
238347
|
}
|
|
238348
238348
|
} else if (this._networkConnectionStatus) {
|
|
238349
238349
|
// 网络连接正常情况下正常缓存
|
|
@@ -238414,7 +238414,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238414
238414
|
value: function saveFontString(font) {
|
|
238415
238415
|
var _this5 = this;
|
|
238416
238416
|
this._print_font.keys().then(function (keys) {
|
|
238417
|
-
if (keys.includes(
|
|
238417
|
+
if (keys.includes('sunsim_font')) {
|
|
238418
238418
|
_this5._print_font.removeItem('sunsim_font');
|
|
238419
238419
|
}
|
|
238420
238420
|
});
|
|
@@ -240190,6 +240190,11 @@ var commondata = __webpack_require__(76285);
|
|
|
240190
240190
|
document.addEventListener('mousemove', this.mouseMove);
|
|
240191
240191
|
}
|
|
240192
240192
|
},
|
|
240193
|
+
destroyed: function destroyed() {
|
|
240194
|
+
document.removeEventListener('mouseup', this.mouseMove);
|
|
240195
|
+
document.removeEventListener('mousemove', this.mouseMove);
|
|
240196
|
+
document.removeEventListener('keydown', this.mouseMove);
|
|
240197
|
+
},
|
|
240193
240198
|
created: function created() {
|
|
240194
240199
|
var _this4 = this;
|
|
240195
240200
|
// 禁掉默认的左键菜单
|
|
@@ -240198,19 +240203,7 @@ var commondata = __webpack_require__(76285);
|
|
|
240198
240203
|
};
|
|
240199
240204
|
this.$nextTick(function () {
|
|
240200
240205
|
if (_this4.editJson && _this4.editJson.findModal) {
|
|
240201
|
-
document.
|
|
240202
|
-
var keyCode = event.keyCode || event.which || event.charCode;
|
|
240203
|
-
var ctrlKey = event.ctrlKey || event.metaKey;
|
|
240204
|
-
// ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
240205
|
-
if (ctrlKey && keyCode === 70) {
|
|
240206
|
-
event.preventDefault();
|
|
240207
|
-
_this4.hoEditorProvider.controlFindType = !_this4.hoEditorProvider.controlFindType;
|
|
240208
|
-
}
|
|
240209
|
-
// esc快捷键 自动关闭查询替换弹窗
|
|
240210
|
-
if (keyCode === 27) {
|
|
240211
|
-
_this4.hoEditorProvider.controlFindType = false;
|
|
240212
|
-
}
|
|
240213
|
-
};
|
|
240206
|
+
document.addEventListener('keydown', _this4.onKeydown);
|
|
240214
240207
|
}
|
|
240215
240208
|
});
|
|
240216
240209
|
// 初始化所有文档
|
|
@@ -240766,15 +240759,28 @@ var commondata = __webpack_require__(76285);
|
|
|
240766
240759
|
autoSelect: function autoSelect(id) {
|
|
240767
240760
|
if (!id) return;
|
|
240768
240761
|
this.hoEditorProvider.autoSelectElementId = id;
|
|
240762
|
+
},
|
|
240763
|
+
onKeydown: function onKeydown(event) {
|
|
240764
|
+
var keyCode = event.keyCode || event.which || event.charCode;
|
|
240765
|
+
var ctrlKey = event.ctrlKey || event.metaKey;
|
|
240766
|
+
// ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
240767
|
+
if (ctrlKey && keyCode === 70) {
|
|
240768
|
+
event.preventDefault();
|
|
240769
|
+
this.hoEditorProvider.controlFindType = !this.hoEditorProvider.controlFindType;
|
|
240770
|
+
}
|
|
240771
|
+
// esc快捷键 自动关闭查询替换弹窗
|
|
240772
|
+
if (keyCode === 27) {
|
|
240773
|
+
this.hoEditorProvider.controlFindType = false;
|
|
240774
|
+
}
|
|
240769
240775
|
}
|
|
240770
240776
|
}
|
|
240771
240777
|
});
|
|
240772
240778
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
240773
240779
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
240774
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
240780
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=241e7c23&prod&lang=less&media=print&
|
|
240775
240781
|
// extracted by mini-css-extract-plugin
|
|
240776
240782
|
|
|
240777
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
240783
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=241e7c23&prod&lang=less&media=print&
|
|
240778
240784
|
|
|
240779
240785
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
240780
240786
|
|
|
@@ -241851,7 +241857,7 @@ var ToolFamily_component = (0,componentNormalizer/* default */.Z)(
|
|
|
241851
241857
|
return {
|
|
241852
241858
|
aligned: 'both',
|
|
241853
241859
|
lineHeight: 1.25,
|
|
241854
|
-
lineHeightList: [1.25, 1.5, 2, 2.5, 3],
|
|
241860
|
+
lineHeightList: [1.25, 1.5, 1.75, 2, 2.5, 3, 4, 5],
|
|
241855
241861
|
lineHeightVisible: false,
|
|
241856
241862
|
isInMenu: false,
|
|
241857
241863
|
editorSubber: null,
|