hoeditor-web 3.1.170 → 3.1.172
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 +1 -1
- package/lib/hoeditor.umd.js +263 -349
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -18605,7 +18605,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
18605
18605
|
|
|
18606
18606
|
/***/ }),
|
|
18607
18607
|
|
|
18608
|
-
/***/
|
|
18608
|
+
/***/ 88684:
|
|
18609
18609
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18610
18610
|
|
|
18611
18611
|
"use strict";
|
|
@@ -18621,7 +18621,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
18621
18621
|
var es_array_includes = __webpack_require__(26699);
|
|
18622
18622
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
18623
18623
|
var es_string_includes = __webpack_require__(32023);
|
|
18624
|
-
;// 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/controls/table/TableCellProperty.vue?vue&type=template&id=
|
|
18624
|
+
;// 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/controls/table/TableCellProperty.vue?vue&type=template&id=108877c7&
|
|
18625
18625
|
|
|
18626
18626
|
|
|
18627
18627
|
var render = function render() {
|
|
@@ -19439,7 +19439,7 @@ var render = function render() {
|
|
|
19439
19439
|
};
|
|
19440
19440
|
var staticRenderFns = [];
|
|
19441
19441
|
|
|
19442
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=
|
|
19442
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=108877c7&
|
|
19443
19443
|
|
|
19444
19444
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
|
|
19445
19445
|
var slicedToArray = __webpack_require__(27222);
|
|
@@ -19848,10 +19848,10 @@ var columns = [{
|
|
|
19848
19848
|
});
|
|
19849
19849
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=script&lang=js&
|
|
19850
19850
|
/* harmony default export */ var table_TableCellPropertyvue_type_script_lang_js_ = (TableCellPropertyvue_type_script_lang_js_);
|
|
19851
|
-
;// 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/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=
|
|
19851
|
+
;// 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/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=108877c7&prod&lang=less&
|
|
19852
19852
|
// extracted by mini-css-extract-plugin
|
|
19853
19853
|
|
|
19854
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=
|
|
19854
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=108877c7&prod&lang=less&
|
|
19855
19855
|
|
|
19856
19856
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
19857
19857
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -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
|
}
|
|
@@ -55060,6 +55048,11 @@ var MarkNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55060
55048
|
}
|
|
55061
55049
|
this._dStyleKey = cbStyle.getStyleKey();
|
|
55062
55050
|
this._dColor = "#838586";
|
|
55051
|
+
if (hoEditorFactorys.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPreview || hoEditorFactorys.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psPrint) {
|
|
55052
|
+
if (this.MarkNodeType === MarkNodeType.mtContent) {
|
|
55053
|
+
this._dColor = "#fff";
|
|
55054
|
+
}
|
|
55055
|
+
}
|
|
55063
55056
|
this._dHeight = hoEditorFactorys.getFontHeightByFontSize(cbStyle.size);
|
|
55064
55057
|
this._dCombineStyle = cbStyle;
|
|
55065
55058
|
}
|
|
@@ -55131,7 +55124,7 @@ var MarkNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55131
55124
|
if (this.text.length > 0 && (0,jquery__WEBPACK_IMPORTED_MODULE_21__.trim)(this.text) === "") {
|
|
55132
55125
|
disPlay = true;
|
|
55133
55126
|
} else {
|
|
55134
|
-
disPlay =
|
|
55127
|
+
disPlay = true;
|
|
55135
55128
|
}
|
|
55136
55129
|
}
|
|
55137
55130
|
}
|
|
@@ -60574,7 +60567,7 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
60574
60567
|
/* harmony export */ a: function() { return /* binding */ FormularType; }
|
|
60575
60568
|
/* harmony export */ });
|
|
60576
60569
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
60577
|
-
/* harmony import */ var
|
|
60570
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(40735);
|
|
60578
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);
|
|
60579
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);
|
|
60580
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);
|
|
@@ -60639,6 +60632,8 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
60639
60632
|
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(91105);
|
|
60640
60633
|
/* harmony import */ var _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(99152);
|
|
60641
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
|
+
|
|
60642
60637
|
|
|
60643
60638
|
|
|
60644
60639
|
|
|
@@ -61224,7 +61219,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61224
61219
|
var table = this.getParentCell().table;
|
|
61225
61220
|
var arrStr = this.formulaStr.split(",");
|
|
61226
61221
|
if (arrStr.length < 2) {
|
|
61227
|
-
|
|
61222
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("体重和身高对应的单元格编号传入有误:" + this.formulaStr);
|
|
61228
61223
|
}
|
|
61229
61224
|
var _this$getRowColByCell7 = this.getRowColByCellAdress(arrStr[0]),
|
|
61230
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),
|
|
@@ -61270,7 +61265,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61270
61265
|
var table = this.getParentCell().table;
|
|
61271
61266
|
var arrStr = this.formulaStr.split(",");
|
|
61272
61267
|
if (arrStr.length < 2) {
|
|
61273
|
-
|
|
61268
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("单元格编号传入有误:" + this.formulaStr);
|
|
61274
61269
|
}
|
|
61275
61270
|
var _this$getRowColByCell11 = this.getRowColByCellAdress(arrStr[0]),
|
|
61276
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),
|
|
@@ -61606,7 +61601,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61606
61601
|
var strRet = " ";
|
|
61607
61602
|
var table = this.getParentCell().table;
|
|
61608
61603
|
if (this.formulaStr == "") {
|
|
61609
|
-
|
|
61604
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("体重的单元格编号传入有误:" + this.formulaStr);
|
|
61610
61605
|
}
|
|
61611
61606
|
var _this$getRowColByCell21 = this.getRowColByCellAdress(this.formulaStr),
|
|
61612
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),
|
|
@@ -61642,7 +61637,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61642
61637
|
var table = this.getParentCell().table;
|
|
61643
61638
|
var arrStr = this.formulaStr.split(",");
|
|
61644
61639
|
if (arrStr.length < 2) {
|
|
61645
|
-
|
|
61640
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("入院时间和出院时间对应的单元格编号传入有误:" + this.formulaStr);
|
|
61646
61641
|
return strRet;
|
|
61647
61642
|
}
|
|
61648
61643
|
var _this$getRowColByCell23 = this.getRowColByCellAdress(arrStr[0]),
|
|
@@ -61686,7 +61681,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61686
61681
|
var table = this.getParentCell().table;
|
|
61687
61682
|
var arrStr = this.formulaStr.split(",");
|
|
61688
61683
|
if (arrStr.length < 2) {
|
|
61689
|
-
|
|
61684
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("开始时间和结束时间对应的单元格编号传入有误:" + this.formulaStr);
|
|
61690
61685
|
return strRet;
|
|
61691
61686
|
}
|
|
61692
61687
|
var _this$getRowColByCell27 = this.getRowColByCellAdress(arrStr[0]),
|
|
@@ -61779,7 +61774,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61779
61774
|
var strRet = " ";
|
|
61780
61775
|
var table = this.getParentCell().table;
|
|
61781
61776
|
if (this.formulaStr == "") {
|
|
61782
|
-
|
|
61777
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("身高的单元格编号传入有误:" + this.formulaStr);
|
|
61783
61778
|
}
|
|
61784
61779
|
var cellNo = "";
|
|
61785
61780
|
var isRange = false;
|
|
@@ -61910,8 +61905,13 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61910
61905
|
}, {
|
|
61911
61906
|
key: "delete",
|
|
61912
61907
|
value: function _delete(operType) {
|
|
61913
|
-
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_35__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID)
|
|
61914
|
-
(
|
|
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
|
+
}
|
|
61915
61915
|
return true;
|
|
61916
61916
|
}
|
|
61917
61917
|
}, {
|
|
@@ -81314,6 +81314,10 @@ var SpecialCharsNode = __webpack_require__(61024);
|
|
|
81314
81314
|
var es_regexp_exec = __webpack_require__(74916);
|
|
81315
81315
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
81316
81316
|
var es_string_replace = __webpack_require__(15306);
|
|
81317
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
81318
|
+
var es_array_includes = __webpack_require__(26699);
|
|
81319
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
81320
|
+
var es_string_includes = __webpack_require__(32023);
|
|
81317
81321
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
81318
81322
|
var es_error_cause = __webpack_require__(21703);
|
|
81319
81323
|
// EXTERNAL MODULE: ./src/editor/utils/UnitConvert.ts
|
|
@@ -81332,6 +81336,8 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
81332
81336
|
|
|
81333
81337
|
|
|
81334
81338
|
|
|
81339
|
+
|
|
81340
|
+
|
|
81335
81341
|
var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
81336
81342
|
(0,inherits/* default */.Z)(DrawText, _createjs$Text);
|
|
81337
81343
|
var _super = (0,createSuper/* default */.Z)(DrawText);
|
|
@@ -81519,26 +81525,35 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
81519
81525
|
this._firstCharWidth = this.getCharWidth(ctx, str[0]);
|
|
81520
81526
|
for (var j = 0, jl = str.length; j < jl; j++) {
|
|
81521
81527
|
// Line needs to wrap:
|
|
81522
|
-
var
|
|
81528
|
+
var strj = str[j];
|
|
81529
|
+
// if(strj == '\r' || strj == '\n') {
|
|
81530
|
+
// strj = ' ';
|
|
81531
|
+
// console.log(JSON.stringify(str), strj)
|
|
81532
|
+
// }
|
|
81533
|
+
var wordW = this.getCharWidth(ctx, strj);
|
|
81523
81534
|
if (ctx instanceof CanvasRenderingContext2D) {
|
|
81524
81535
|
if (this.outline) {
|
|
81525
|
-
ctx.strokeText(
|
|
81536
|
+
ctx.strokeText(strj, left, 0, this.maxWidth || 0xffff);
|
|
81526
81537
|
} else {
|
|
81527
|
-
ctx.fillText(
|
|
81538
|
+
ctx.fillText(strj, left, 0, this.maxWidth || 0xffff);
|
|
81528
81539
|
}
|
|
81529
81540
|
}
|
|
81530
81541
|
left += wordW + this._letterSpacing;
|
|
81531
81542
|
docWidth += wordW;
|
|
81532
81543
|
}
|
|
81533
81544
|
if (!(ctx instanceof CanvasRenderingContext2D)) {
|
|
81545
|
+
var printStr = str;
|
|
81546
|
+
if (printStr.includes("\n") || printStr.includes("\r")) {
|
|
81547
|
+
printStr = printStr.replace(/\n|\r/g, ' ');
|
|
81548
|
+
}
|
|
81534
81549
|
if (this.outline) {
|
|
81535
|
-
ctx.strokeText(
|
|
81550
|
+
ctx.strokeText(printStr, 0, 0, docWidth || this._maxWidth);
|
|
81536
81551
|
} else {
|
|
81537
81552
|
if (this.font.indexOf("bold") != -1) {
|
|
81538
81553
|
ctx.strokeStyle = ctx.fillStyle;
|
|
81539
|
-
ctx.strokeText(
|
|
81554
|
+
ctx.strokeText(printStr, 0, 0, docWidth || this._maxWidth);
|
|
81540
81555
|
}
|
|
81541
|
-
ctx.fillText(
|
|
81556
|
+
ctx.fillText(printStr, 0, 0, docWidth || this._maxWidth);
|
|
81542
81557
|
}
|
|
81543
81558
|
}
|
|
81544
81559
|
this._docWidth = docWidth;
|
|
@@ -90287,17 +90302,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90287
90302
|
this._isError = true;
|
|
90288
90303
|
return _context3.abrupt("return");
|
|
90289
90304
|
case 12:
|
|
90290
|
-
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath);
|
|
90291
|
-
// if (npFirst && npFirst.node) {
|
|
90292
|
-
// //const parentNode = hoEditorFactory.docTree.getParentNode(this._startPath);
|
|
90293
|
-
// //if (parentNode) {
|
|
90294
|
-
// //if (!nodes.includes(parentNode)) nodes.splice(0, 0, parentNode);
|
|
90295
|
-
// //} else {
|
|
90296
|
-
// if (!nodes.includes(npFirst.node)) nodes.splice(0, 0, npFirst.node);
|
|
90297
|
-
// //}
|
|
90298
|
-
// }
|
|
90305
|
+
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath);
|
|
90299
90306
|
if (!(paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_41__/* .PaintState */ .Dh.psDesign && !this._isForceDelete)) {
|
|
90300
|
-
_context3.next =
|
|
90307
|
+
_context3.next = 83;
|
|
90301
90308
|
break;
|
|
90302
90309
|
}
|
|
90303
90310
|
lastNode = nodes[nodes.length - 1];
|
|
@@ -90338,12 +90345,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90338
90345
|
n = 0;
|
|
90339
90346
|
case 32:
|
|
90340
90347
|
if (!(n < nodes.length)) {
|
|
90341
|
-
_context3.next =
|
|
90348
|
+
_context3.next = 82;
|
|
90342
90349
|
break;
|
|
90343
90350
|
}
|
|
90344
90351
|
node = nodes[n];
|
|
90345
90352
|
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)) {
|
|
90346
|
-
_context3.next =
|
|
90353
|
+
_context3.next = 47;
|
|
90347
90354
|
break;
|
|
90348
90355
|
}
|
|
90349
90356
|
if (node.isAllowDelete) {
|
|
@@ -90368,90 +90375,91 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90368
90375
|
this._isError = true;
|
|
90369
90376
|
return _context3.abrupt("return");
|
|
90370
90377
|
case 45:
|
|
90378
|
+
_context3.next = 79;
|
|
90379
|
+
break;
|
|
90380
|
+
case 47:
|
|
90371
90381
|
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j)) {
|
|
90372
|
-
_context3.next =
|
|
90382
|
+
_context3.next = 60;
|
|
90373
90383
|
break;
|
|
90374
90384
|
}
|
|
90375
90385
|
if (!(node.MarkNodeType === 0)) {
|
|
90376
|
-
_context3.next =
|
|
90386
|
+
_context3.next = 53;
|
|
90377
90387
|
break;
|
|
90378
90388
|
}
|
|
90379
90389
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90380
90390
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("元素已设置为不允许删除,请正确操作。");
|
|
90381
90391
|
this._isError = true;
|
|
90382
90392
|
return _context3.abrupt("return");
|
|
90383
|
-
case
|
|
90393
|
+
case 53:
|
|
90384
90394
|
if (!(node.MarkNodeType === 2 && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && !node.parentNode.canModifyContent)) {
|
|
90385
|
-
_context3.next =
|
|
90395
|
+
_context3.next = 58;
|
|
90386
90396
|
break;
|
|
90387
90397
|
}
|
|
90388
90398
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90389
90399
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("该元素不允许编辑、删除,请正确操作。");
|
|
90390
90400
|
this._isError = true;
|
|
90391
90401
|
return _context3.abrupt("return");
|
|
90392
|
-
case
|
|
90402
|
+
case 58:
|
|
90403
|
+
_context3.next = 79;
|
|
90404
|
+
break;
|
|
90405
|
+
case 60:
|
|
90393
90406
|
if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_39__/* .TableFormula */ .N)) {
|
|
90394
|
-
_context3.next =
|
|
90407
|
+
_context3.next = 67;
|
|
90395
90408
|
break;
|
|
90396
90409
|
}
|
|
90397
90410
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90398
90411
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许删除表格计算公式");
|
|
90399
90412
|
this._isError = true;
|
|
90400
90413
|
return _context3.abrupt("return");
|
|
90401
|
-
case
|
|
90414
|
+
case 67:
|
|
90402
90415
|
if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_30__/* .TableNode */ .Fh && !node.tableProperty.canDelTable)) {
|
|
90403
|
-
_context3.next =
|
|
90416
|
+
_context3.next = 74;
|
|
90404
90417
|
break;
|
|
90405
90418
|
}
|
|
90406
90419
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90407
90420
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许删除表格");
|
|
90408
90421
|
this._isError = true;
|
|
90409
90422
|
return _context3.abrupt("return");
|
|
90410
|
-
case
|
|
90423
|
+
case 74:
|
|
90411
90424
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_37__/* .SignNode */ .N)) {
|
|
90412
|
-
_context3.next =
|
|
90425
|
+
_context3.next = 79;
|
|
90413
90426
|
break;
|
|
90414
90427
|
}
|
|
90415
90428
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90416
90429
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许直接删除签名!");
|
|
90417
90430
|
this._isError = true;
|
|
90418
90431
|
return _context3.abrupt("return");
|
|
90419
|
-
case
|
|
90432
|
+
case 79:
|
|
90420
90433
|
n++;
|
|
90421
90434
|
_context3.next = 32;
|
|
90422
90435
|
break;
|
|
90423
|
-
case
|
|
90436
|
+
case 82:
|
|
90424
90437
|
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) {
|
|
90425
90438
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
90426
90439
|
}
|
|
90427
|
-
case
|
|
90440
|
+
case 83:
|
|
90428
90441
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
90429
90442
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
90430
|
-
_context3.next =
|
|
90443
|
+
_context3.next = 89;
|
|
90431
90444
|
break;
|
|
90432
90445
|
}
|
|
90433
90446
|
//判断当前TextInputField是否可编辑
|
|
90434
90447
|
pTiNode = pnode;
|
|
90435
|
-
_res = pTiNode.getReadyToEdit(function (value) {
|
|
90436
|
-
//NOTE:在redo当中不能使用同一实例UndoRedoService的commit
|
|
90437
|
-
// this._undo.begin();
|
|
90438
|
-
// this._undo.add(new NodeDeleteUndoUnit(value));
|
|
90439
|
-
// this._undo.commit();
|
|
90440
|
-
});
|
|
90448
|
+
_res = pTiNode.getReadyToEdit(function (value) {});
|
|
90441
90449
|
if (_res[0]) {
|
|
90442
|
-
_context3.next =
|
|
90450
|
+
_context3.next = 89;
|
|
90443
90451
|
break;
|
|
90444
90452
|
}
|
|
90445
90453
|
return _context3.abrupt("return");
|
|
90446
|
-
case
|
|
90454
|
+
case 89:
|
|
90447
90455
|
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函数完成后调用这个
|
|
90448
90456
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
90449
90457
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
90450
|
-
_context3.next =
|
|
90458
|
+
_context3.next = 92;
|
|
90451
90459
|
break;
|
|
90452
90460
|
}
|
|
90453
90461
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
|
|
90454
|
-
case
|
|
90462
|
+
case 92:
|
|
90455
90463
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
90456
90464
|
// this._hoEditorFactory,
|
|
90457
90465
|
// currRange.startPath,
|
|
@@ -90463,17 +90471,17 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90463
90471
|
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
90464
90472
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
90465
90473
|
if (!(res == 1)) {
|
|
90466
|
-
_context3.next =
|
|
90474
|
+
_context3.next = 104;
|
|
90467
90475
|
break;
|
|
90468
90476
|
}
|
|
90469
90477
|
changeEvent.beforeChangePath = startPath;
|
|
90470
90478
|
changeEvent.afterChangePath = this._tmp.start;
|
|
90471
|
-
_context3.next =
|
|
90479
|
+
_context3.next = 102;
|
|
90472
90480
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
90473
|
-
case
|
|
90481
|
+
case 102:
|
|
90474
90482
|
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));
|
|
90475
90483
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
90476
|
-
case
|
|
90484
|
+
case 104:
|
|
90477
90485
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
90478
90486
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
90479
90487
|
aNode = currRange.npStart.node;
|
|
@@ -90481,12 +90489,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90481
90489
|
pnode = aNode.parentNode;
|
|
90482
90490
|
}
|
|
90483
90491
|
if (!(aNode && pnode)) {
|
|
90484
|
-
_context3.next =
|
|
90492
|
+
_context3.next = 111;
|
|
90485
90493
|
break;
|
|
90486
90494
|
}
|
|
90487
|
-
_context3.next =
|
|
90495
|
+
_context3.next = 111;
|
|
90488
90496
|
return this.ParentRepaint(pnode);
|
|
90489
|
-
case
|
|
90497
|
+
case 111:
|
|
90490
90498
|
case "end":
|
|
90491
90499
|
return _context3.stop();
|
|
90492
90500
|
}
|
|
@@ -93980,11 +93988,9 @@ var NodeConvert = /*#__PURE__*/function () {
|
|
|
93980
93988
|
if (value.node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_26__/* .TextInputFieldNode */ .re) {
|
|
93981
93989
|
value.node.text = "";
|
|
93982
93990
|
value.node.childNodes.splice(1, value.node.childNodes.length - 2);
|
|
93983
|
-
}
|
|
93984
|
-
if (value.node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_27__/* .DateTimeNode */ .Z) {
|
|
93991
|
+
} else if (value.node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_27__/* .DateTimeNode */ .Z) {
|
|
93985
93992
|
value.node.text = "";
|
|
93986
|
-
}
|
|
93987
|
-
if (value.node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_28__/* .DownListNode */ .yF) {
|
|
93993
|
+
} else if (value.node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_28__/* .DownListNode */ .yF) {
|
|
93988
93994
|
value.node.text = "";
|
|
93989
93995
|
}
|
|
93990
93996
|
}
|
|
@@ -168494,7 +168500,7 @@ var map = {
|
|
|
168494
168500
|
"./specialChars/HoSpecialChars.vue": 75058,
|
|
168495
168501
|
"./table/TableCellPoper.vue": 21166,
|
|
168496
168502
|
"./table/TableCellPoper1.vue": 44645,
|
|
168497
|
-
"./table/TableCellProperty.vue":
|
|
168503
|
+
"./table/TableCellProperty.vue": 88684,
|
|
168498
168504
|
"./table/TableColProperty.vue": 3828,
|
|
168499
168505
|
"./table/TableForm.vue": 79036,
|
|
168500
168506
|
"./table/TableFormTree.vue": 84804,
|
|
@@ -205813,7 +205819,7 @@ Input.install = function (Vue) {
|
|
|
205813
205819
|
|
|
205814
205820
|
|
|
205815
205821
|
/* 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]);
|
|
205816
|
-
;// 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=
|
|
205822
|
+
;// 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&
|
|
205817
205823
|
var render = function render() {
|
|
205818
205824
|
var _vm = this,
|
|
205819
205825
|
_c = _vm._self._c;
|
|
@@ -209126,7 +209132,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
209126
209132
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
209127
209133
|
var ParagraphNode = __webpack_require__(67945);
|
|
209128
209134
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
209129
|
-
/* harmony default export */ var version = ('3.1.
|
|
209135
|
+
/* harmony default export */ var version = ('3.1.172');
|
|
209130
209136
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
209131
209137
|
var PoperTipText = __webpack_require__(84531);
|
|
209132
209138
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -215311,114 +215317,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
215311
215317
|
hoEditorFactory.vueController.hiddenMask(true);
|
|
215312
215318
|
}
|
|
215313
215319
|
}
|
|
215314
|
-
|
|
215315
|
-
//错别字检测
|
|
215316
|
-
let errors = [];
|
|
215317
|
-
if (this._errors.length === undefined) {
|
|
215318
|
-
errors = Array(this._errors);
|
|
215319
|
-
} else {
|
|
215320
|
-
errors = this._errors;
|
|
215321
|
-
}
|
|
215322
|
-
if (errors.length > 0) {
|
|
215323
|
-
for (let m = 0; m < errors.length; m++) {
|
|
215324
|
-
const tips = [];
|
|
215325
|
-
const error = errors[m];
|
|
215326
|
-
let datas = error.data;
|
|
215327
|
-
if (datas.length == undefined) {
|
|
215328
|
-
datas = Array(datas);
|
|
215329
|
-
}
|
|
215330
|
-
for (let d = 0; d < datas.length; d++) {
|
|
215331
|
-
const data = datas[d];
|
|
215332
|
-
tips.push("错误:" + data.wrong + ",正确:" + data.correct);
|
|
215333
|
-
}
|
|
215334
|
-
hoEditorFactory.drawTree.errorsMap.set(m, tips);
|
|
215335
|
-
}
|
|
215336
|
-
//const selectRangeArr: SelectRange[] = [];
|
|
215337
|
-
for (let n = 0; n < this._errTextNodes.length; n++) {
|
|
215338
|
-
const node = this._errTextNodes[n];
|
|
215339
|
-
const drawNodes = node.drawNodes;
|
|
215340
|
-
const errIndex = this._errTextNodes[n].errorIndex as number;
|
|
215341
|
-
const error = errors[errIndex];
|
|
215342
|
-
let datass = error.data;
|
|
215343
|
-
if (datass.length == undefined) {
|
|
215344
|
-
datass = Array(datass);
|
|
215345
|
-
}
|
|
215346
|
-
for (let t = 0; t < datass.length; t++) {
|
|
215347
|
-
const adata = datass[t];
|
|
215348
|
-
const start = adata.start as number;
|
|
215349
|
-
const end = adata.end as number;
|
|
215350
|
-
for (let k = 0; k < drawNodes.length; k++) {
|
|
215351
|
-
const drawNode = drawNodes[k] as DrawTextNode;
|
|
215352
|
-
const drawMark = ((width: number) => {
|
|
215353
|
-
const h = 0.5;
|
|
215354
|
-
const line1 = new createjs.Shape();
|
|
215355
|
-
line1.graphics.clear();
|
|
215356
|
-
line1.graphics
|
|
215357
|
-
.beginStroke("#F31A1A")
|
|
215358
|
-
.moveTo(0, 1 + 2 * h)
|
|
215359
|
-
.lineTo(width + drawNode._wspace + 1, 1 + 2 * h);
|
|
215360
|
-
drawNode.addChild(line1);
|
|
215361
|
-
const line2 = new createjs.Shape();
|
|
215362
|
-
line2.graphics.clear();
|
|
215363
|
-
line2.graphics
|
|
215364
|
-
.beginStroke("#F31A1A")
|
|
215365
|
-
.moveTo(0, 8 * h)
|
|
215366
|
-
.lineTo(width + drawNode._wspace + 1, 8 * h);
|
|
215367
|
-
drawNode.addChild(line2);
|
|
215368
|
-
});
|
|
215369
|
-
const dtext = drawNode.dText as DrawText;
|
|
215370
|
-
if (start >= dtext.startIndex) {
|
|
215371
|
-
if (end <= dtext.endIndex) {
|
|
215372
|
-
drawMark(16);
|
|
215373
|
-
break;
|
|
215374
|
-
} else {
|
|
215375
|
-
//drawMark()
|
|
215376
|
-
}
|
|
215377
|
-
} else {
|
|
215378
|
-
if (end <= dtext.endIndex) {
|
|
215379
|
-
//drawMark()
|
|
215380
|
-
break;
|
|
215381
|
-
} else {
|
|
215382
|
-
//drawMark()
|
|
215383
|
-
}
|
|
215384
|
-
}
|
|
215385
|
-
}
|
|
215386
|
-
// const ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
215387
|
-
// const eindexArr = ePath.split("/");
|
|
215388
|
-
// const eindex = eindexArr[eindexArr.length - 1];
|
|
215389
|
-
// if (Number(adata.start) < 0 || Number(adata.start) > Number(eindex)) {
|
|
215390
|
-
// message.warn("文本节点(" + node.text + ')的起始位置有误:' + adata.start + "。(索引" + errIndex.toString() + ")");
|
|
215391
|
-
// return;
|
|
215392
|
-
// }
|
|
215393
|
-
// if (Number(adata.end) < 0 || Number(adata.end) > Number(eindex)) {
|
|
215394
|
-
// message.warn("文本节点(" + node.text + ')的结束位置有误:' + adata.end + "。(索引" + errIndex.toString() + ")");
|
|
215395
|
-
// return;
|
|
215396
|
-
// }
|
|
215397
|
-
// const sPath = hoEditorFactory.docTree.getNodeFirstPath(node);
|
|
215398
|
-
// const pathArr = sPath.split("/");
|
|
215399
|
-
// pathArr[pathArr.length - 1] = adata.start;
|
|
215400
|
-
// const rsPath = pathArr.join("/");
|
|
215401
|
-
// pathArr[pathArr.length - 1] = adata.end;
|
|
215402
|
-
// const rePath = pathArr.join("/");
|
|
215403
|
-
// const pStartPoint = StagePosition.getStagePosByPath(this._hoEditorFactoryID, rsPath);
|
|
215404
|
-
// const pEndPoint = StagePosition.getStagePosByPath(this._hoEditorFactoryID, rePath);
|
|
215405
|
-
// const selectRange = new SelectRange(this._hoEditorFactoryID);
|
|
215406
|
-
// selectRange.spStart = pStartPoint;
|
|
215407
|
-
// selectRange.spEnd = pEndPoint;
|
|
215408
|
-
// selectRangeArr.push(selectRange);
|
|
215409
|
-
}
|
|
215410
|
-
}
|
|
215411
|
-
*/
|
|
215412
|
-
// if (selectRangeArr.length > 0) {
|
|
215413
|
-
// hoEditorFactory.drawTree.drawMultiMarks(selectRangeArr, true, true);
|
|
215414
|
-
// }
|
|
215415
|
-
//}
|
|
215416
|
-
//模板加载完成后 开始加载数据集
|
|
215417
|
-
// if (test) {
|
|
215418
|
-
// const data =hoEditorFactory.testDataSet.getTestJsonData();
|
|
215419
|
-
// const jsonData = JSON.parse(JSON.stringify(data));
|
|
215420
|
-
// this.loadDataSet(jsonData);
|
|
215421
|
-
// }
|
|
215320
|
+
hoEditorFactory.vueController.getCurTextStyle();
|
|
215422
215321
|
callback && callback({
|
|
215423
215322
|
text: hoEditorFactory.vueController.getDocTitle(),
|
|
215424
215323
|
count: 0
|
|
@@ -224755,6 +224654,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224755
224654
|
key: "setBackgroundByName",
|
|
224756
224655
|
value: function setBackgroundByName(items) {
|
|
224757
224656
|
var _this6 = this;
|
|
224657
|
+
var clearSelectRange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
224758
224658
|
var selectRangeArr = [];
|
|
224759
224659
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
224760
224660
|
var iteratesNodes = function iteratesNodes(nodes) {
|
|
@@ -224770,11 +224670,15 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224770
224670
|
if (range.length > 0) {
|
|
224771
224671
|
selectRangeArr = selectRangeArr.concat(range);
|
|
224772
224672
|
}
|
|
224773
|
-
} else if (item.text === '' && isCurrent) {
|
|
224774
|
-
var
|
|
224775
|
-
|
|
224776
|
-
|
|
224777
|
-
|
|
224673
|
+
} else if ((item.text === '' || item.text == undefined) && isCurrent) {
|
|
224674
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(anode.previousLeaf());
|
|
224675
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(anode);
|
|
224676
|
+
var pStartPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this6._hoEditorFactoryID, sPath);
|
|
224677
|
+
var pEndPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this6._hoEditorFactoryID, ePath);
|
|
224678
|
+
var selectRange = new SelectRange/* SelectRange */.E(_this6.hoEditorFactoryID);
|
|
224679
|
+
selectRange.spStart = pStartPoint;
|
|
224680
|
+
selectRange.spEnd = pEndPoint;
|
|
224681
|
+
selectRangeArr.push(selectRange);
|
|
224778
224682
|
}
|
|
224779
224683
|
}
|
|
224780
224684
|
}
|
|
@@ -224794,7 +224698,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224794
224698
|
iteratesNodes(footerDocTree[f].subDocNodes);
|
|
224795
224699
|
}
|
|
224796
224700
|
if (selectRangeArr.length > 0) {
|
|
224797
|
-
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr,
|
|
224701
|
+
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, clearSelectRange, true);
|
|
224798
224702
|
} else {
|
|
224799
224703
|
console.warn('未搜索到符合条件的元素');
|
|
224800
224704
|
}
|
|
@@ -224993,6 +224897,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224993
224897
|
}
|
|
224994
224898
|
return selectRangeArr;
|
|
224995
224899
|
}
|
|
224900
|
+
}, {
|
|
224901
|
+
key: "clearSelectedRange",
|
|
224902
|
+
value: function clearSelectedRange() {
|
|
224903
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
224904
|
+
hoEditorFactory.drawTree.selectRange.clearAllCustomSelectShape();
|
|
224905
|
+
}
|
|
224996
224906
|
}, {
|
|
224997
224907
|
key: "findAndLightElementsByNames",
|
|
224998
224908
|
value: function findAndLightElementsByNames(names) {
|
|
@@ -226858,6 +226768,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226858
226768
|
}, {
|
|
226859
226769
|
key: "structuredLookup",
|
|
226860
226770
|
value: function structuredLookup(findTextArr) {
|
|
226771
|
+
var clearSelectRange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
226861
226772
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226862
226773
|
var selectRangeArr = [];
|
|
226863
226774
|
var paths = [];
|
|
@@ -226912,7 +226823,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226912
226823
|
selectRangeArr.push(selectRange);
|
|
226913
226824
|
}
|
|
226914
226825
|
if (selectRangeArr.length > 0) {
|
|
226915
|
-
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr,
|
|
226826
|
+
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, clearSelectRange, true);
|
|
226916
226827
|
}
|
|
226917
226828
|
}
|
|
226918
226829
|
}, {
|
|
@@ -227053,7 +226964,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227053
226964
|
//校验单复选必选
|
|
227054
226965
|
}, {
|
|
227055
226966
|
key: "verifyRadioAndCheckBoxs",
|
|
227056
|
-
value: function verifyRadioAndCheckBoxs() {
|
|
226967
|
+
value: function verifyRadioAndCheckBoxs(clearSelect) {
|
|
227057
226968
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
227058
226969
|
var radioAndCheckBoxs = hoEditorFactory.docTree.radioAndCheckBoxsMap;
|
|
227059
226970
|
var names = [];
|
|
@@ -227105,7 +227016,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227105
227016
|
// message.warn(tip);
|
|
227106
227017
|
result = groupNames;
|
|
227107
227018
|
}
|
|
227108
|
-
hoEditorFactory.drawTree.selectRange.clearAllCustomSelectShape();
|
|
227019
|
+
// hoEditorFactory.drawTree.selectRange.clearAllCustomSelectShape();
|
|
227109
227020
|
if (elements.length > 0) {
|
|
227110
227021
|
var elementArr = elements.filter(function (item, index, array) {
|
|
227111
227022
|
return array.indexOf(item) === index;
|
|
@@ -227122,7 +227033,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227122
227033
|
selectRangeArr.push(selectRange);
|
|
227123
227034
|
}
|
|
227124
227035
|
if (selectRangeArr.length > 0) {
|
|
227125
|
-
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr,
|
|
227036
|
+
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, clearSelect, true);
|
|
227126
227037
|
}
|
|
227127
227038
|
}
|
|
227128
227039
|
return result;
|
|
@@ -228241,6 +228152,8 @@ var DomController = /*#__PURE__*/function () {
|
|
|
228241
228152
|
|
|
228242
228153
|
|
|
228243
228154
|
|
|
228155
|
+
|
|
228156
|
+
|
|
228244
228157
|
|
|
228245
228158
|
|
|
228246
228159
|
|
|
@@ -228671,16 +228584,27 @@ var EditController = /*#__PURE__*/function () {
|
|
|
228671
228584
|
var fromCell = tableNode.rows[i][j];
|
|
228672
228585
|
var toCell = parentNode.table.rows[rs + i][cs + j];
|
|
228673
228586
|
if (fromCell && toCell) {
|
|
228674
|
-
|
|
228675
|
-
|
|
228587
|
+
var hasFormula = toCell.childNodes.filter(function (child) {
|
|
228588
|
+
return child.nodeType == BaseNode/* NodeType */.Jq.ntTableFormula;
|
|
228589
|
+
}).length;
|
|
228590
|
+
var fromCell2 = [];
|
|
228591
|
+
if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psEdit || hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview) {
|
|
228592
|
+
fromCell2 = fromCell.childNodes.filter(function (child) {
|
|
228593
|
+
return child.nodeType != BaseNode/* NodeType */.Jq.ntSign;
|
|
228594
|
+
});
|
|
228676
228595
|
}
|
|
228677
|
-
|
|
228678
|
-
|
|
228679
|
-
|
|
228680
|
-
|
|
228681
|
-
|
|
228596
|
+
if (!hasFormula) {
|
|
228597
|
+
if (fromCell.rowSpan > 1 || fromCell.colSpan > 1) {
|
|
228598
|
+
hoeditorfactory.docController.mergeCells(toCell, rs + i, cs + j, fromCell.rowSpan, fromCell.colSpan);
|
|
228599
|
+
}
|
|
228600
|
+
toCell.childNodes.splice(1, toCell.childNodes.length);
|
|
228601
|
+
var childNodes = fromCell2;
|
|
228602
|
+
for (var s = 1; s < childNodes.length; s++) {
|
|
228603
|
+
var path = hoeditorfactory.docTree.getNodeLastPath(toCell.childNodes[toCell.childNodes.length - 1]);
|
|
228604
|
+
hoeditorfactory.docTree.insertNodeAfterPath(path, childNodes[s]);
|
|
228605
|
+
}
|
|
228606
|
+
toCell.drawCell.needUpdate = true;
|
|
228682
228607
|
}
|
|
228683
|
-
toCell.drawCell.needUpdate = true;
|
|
228684
228608
|
}
|
|
228685
228609
|
}
|
|
228686
228610
|
}
|
|
@@ -238214,7 +238138,7 @@ var localforage_default = /*#__PURE__*/__webpack_require__.n(localforage);
|
|
|
238214
238138
|
var HoLocalStorage = /*#__PURE__*/function () {
|
|
238215
238139
|
// 增加页面刷新时缓存未保存的病历数据
|
|
238216
238140
|
function HoLocalStorage(hoEditorFactoryID) {
|
|
238217
|
-
var
|
|
238141
|
+
var _window$top;
|
|
238218
238142
|
(0,esm_classCallCheck/* default */.Z)(this, HoLocalStorage);
|
|
238219
238143
|
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
238220
238144
|
(0,esm_defineProperty/* default */.Z)(this, "_key", void 0);
|
|
@@ -238240,6 +238164,8 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238240
238164
|
//当前缓存的xml文件列表
|
|
238241
238165
|
(0,esm_defineProperty/* default */.Z)(this, "_xmlToLoad", void 0);
|
|
238242
238166
|
//当前缓存的xml文件列表
|
|
238167
|
+
(0,esm_defineProperty/* default */.Z)(this, "isWebview", void 0);
|
|
238168
|
+
// 是否是webview
|
|
238243
238169
|
(0,esm_defineProperty/* default */.Z)(this, "callBack", void 0);
|
|
238244
238170
|
(0,esm_defineProperty/* default */.Z)(this, "callBackForLoad", void 0);
|
|
238245
238171
|
(0,esm_defineProperty/* default */.Z)(this, "_offline_cache_list", void 0);
|
|
@@ -238251,56 +238177,33 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238251
238177
|
(0,esm_defineProperty/* default */.Z)(this, "pageLoadCacheList", void 0);
|
|
238252
238178
|
var _this = this;
|
|
238253
238179
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
238254
|
-
|
|
238255
|
-
|
|
238256
|
-
|
|
238257
|
-
|
|
238258
|
-
|
|
238259
|
-
|
|
238260
|
-
|
|
238261
|
-
|
|
238262
|
-
|
|
238263
|
-
|
|
238264
|
-
|
|
238265
|
-
|
|
238266
|
-
|
|
238267
|
-
|
|
238268
|
-
|
|
238269
|
-
|
|
238270
|
-
|
|
238271
|
-
|
|
238272
|
-
|
|
238273
|
-
|
|
238274
|
-
|
|
238275
|
-
|
|
238276
|
-
console.warn('HO浏览器自动保存病历=>' + (res.result == true ? '成功' : '失败'));
|
|
238277
|
-
} else if (!res.res) {
|
|
238278
|
-
console.warn('HO浏览器自动保存病历=>失败');
|
|
238279
|
-
} else {
|
|
238280
|
-
return false;
|
|
238180
|
+
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) {
|
|
238181
|
+
window.top.chrome.webview.addEventListener('message', function (e) {
|
|
238182
|
+
if (e && e.data) {
|
|
238183
|
+
var res = JSON.parse(e.data);
|
|
238184
|
+
// console.log('res-----', res);
|
|
238185
|
+
if (res.result == true && res.res.cmd == 'GetList') {
|
|
238186
|
+
var _this$callBack;
|
|
238187
|
+
_this._localXmlList = res.res.EMR;
|
|
238188
|
+
(_this$callBack = _this.callBack) === null || _this$callBack === void 0 ? void 0 : _this$callBack.call(_this, _this._localXmlList);
|
|
238189
|
+
}
|
|
238190
|
+
if (res.result == true && res.res.cmd == 'Load') {
|
|
238191
|
+
var _this$callBackForLoad;
|
|
238192
|
+
_this._localXmlContent = res.res.EMR;
|
|
238193
|
+
(_this$callBackForLoad = _this.callBackForLoad) === null || _this$callBackForLoad === void 0 ? void 0 : _this$callBackForLoad.call(_this, _this._localXmlContent);
|
|
238194
|
+
}
|
|
238195
|
+
if (res.res && res.res.cmd == 'save') {
|
|
238196
|
+
console.warn('HO浏览器自动保存病历=>' + (res.result == true ? '成功' : '失败'));
|
|
238197
|
+
} else if (!res.res) {
|
|
238198
|
+
console.warn('HO浏览器自动保存病历=>失败');
|
|
238199
|
+
} else {
|
|
238200
|
+
return false;
|
|
238201
|
+
}
|
|
238281
238202
|
}
|
|
238282
|
-
}
|
|
238283
|
-
}
|
|
238203
|
+
});
|
|
238204
|
+
}
|
|
238284
238205
|
}
|
|
238285
238206
|
(0,esm_createClass/* default */.Z)(HoLocalStorage, [{
|
|
238286
|
-
key: "getChromeWebview",
|
|
238287
|
-
value: function getChromeWebview() {
|
|
238288
|
-
var _chromes;
|
|
238289
|
-
var chromes;
|
|
238290
|
-
try {
|
|
238291
|
-
if (window.top) {
|
|
238292
|
-
chromes = window.top.chrome;
|
|
238293
|
-
}
|
|
238294
|
-
} catch (error) {
|
|
238295
|
-
console.error(error);
|
|
238296
|
-
chromes = undefined;
|
|
238297
|
-
}
|
|
238298
|
-
return (_chromes = chromes) === null || _chromes === void 0 ? void 0 : _chromes.webview;
|
|
238299
|
-
}
|
|
238300
|
-
// set ho_web(value: any) {
|
|
238301
|
-
// this._ho_web = value;
|
|
238302
|
-
// }
|
|
238303
|
-
}, {
|
|
238304
238207
|
key: "initHoWebSql",
|
|
238305
238208
|
value: function initHoWebSql() {
|
|
238306
238209
|
localforage_default().config({
|
|
@@ -238332,7 +238235,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238332
238235
|
}, {
|
|
238333
238236
|
key: "getLocalXmlList",
|
|
238334
238237
|
value: function getLocalXmlList(callBack) {
|
|
238335
|
-
var
|
|
238238
|
+
var _window$top2;
|
|
238336
238239
|
this.callBack = callBack;
|
|
238337
238240
|
var hoEditfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
238338
238241
|
var data = {
|
|
@@ -238345,7 +238248,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238345
238248
|
}
|
|
238346
238249
|
}
|
|
238347
238250
|
};
|
|
238348
|
-
(
|
|
238251
|
+
if ((_window$top2 = window.top) !== null && _window$top2 !== void 0 && (_window$top2 = _window$top2.chrome) !== null && _window$top2 !== void 0 && _window$top2.webview) {
|
|
238252
|
+
var _window$top3;
|
|
238253
|
+
(_window$top3 = window.top) === null || _window$top3 === void 0 || (_window$top3 = _window$top3.chrome) === null || _window$top3 === void 0 || (_window$top3 = _window$top3.webview) === null || _window$top3 === void 0 ? void 0 : _window$top3.postMessage(data);
|
|
238254
|
+
}
|
|
238349
238255
|
}
|
|
238350
238256
|
// 获取key的数据 => { data, keyInfo }
|
|
238351
238257
|
}, {
|
|
@@ -238359,7 +238265,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238359
238265
|
}, {
|
|
238360
238266
|
key: "loadLocalXml",
|
|
238361
238267
|
value: function loadLocalXml(item, callBack) {
|
|
238362
|
-
var
|
|
238268
|
+
var _window$top4;
|
|
238363
238269
|
this.callBackForLoad = callBack;
|
|
238364
238270
|
var data = {
|
|
238365
238271
|
exec: 'emr',
|
|
@@ -238371,7 +238277,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238371
238277
|
}
|
|
238372
238278
|
}
|
|
238373
238279
|
};
|
|
238374
|
-
(
|
|
238280
|
+
if ((_window$top4 = window.top) !== null && _window$top4 !== void 0 && (_window$top4 = _window$top4.chrome) !== null && _window$top4 !== void 0 && _window$top4.webview) {
|
|
238281
|
+
var _window$top5;
|
|
238282
|
+
(_window$top5 = window.top) === null || _window$top5 === void 0 || (_window$top5 = _window$top5.chrome) === null || _window$top5 === void 0 || (_window$top5 = _window$top5.webview) === null || _window$top5 === void 0 ? void 0 : _window$top5.postMessage(data);
|
|
238283
|
+
}
|
|
238375
238284
|
}
|
|
238376
238285
|
}, {
|
|
238377
238286
|
key: "removeLocalStorage",
|
|
@@ -238402,18 +238311,17 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238402
238311
|
}, {
|
|
238403
238312
|
key: "autoSaveLocalStorage",
|
|
238404
238313
|
value: function autoSaveLocalStorage() {
|
|
238405
|
-
var
|
|
238314
|
+
var _window$top6,
|
|
238315
|
+
_this4 = this;
|
|
238406
238316
|
if (this._lastSaveTime && new Date().getTime() - this._lastSaveTime <= this._intervalsTime) {
|
|
238407
238317
|
return;
|
|
238408
238318
|
}
|
|
238409
|
-
var HoBrowser = this.getChromeWebview();
|
|
238410
238319
|
var saveTime = (0,plugins_util/* dateFormat */.vc)(new Date());
|
|
238411
238320
|
var hoEditfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
238412
238321
|
this._key = hoEditfactory.userInfo.id + hoEditfactory.docTree.docProperty.patientID + hoEditfactory.docTree.docProperty.title;
|
|
238413
|
-
if (
|
|
238322
|
+
if ((_window$top6 = window.top) !== null && _window$top6 !== void 0 && (_window$top6 = _window$top6.chrome) !== null && _window$top6 !== void 0 && _window$top6.webview) {
|
|
238414
238323
|
this._lastSaveTime = new Date(saveTime).getTime();
|
|
238415
238324
|
if (hoEditfactory && hoEditfactory.vueController.isModifyDoc()) {
|
|
238416
|
-
var _this$getChromeWebvie4;
|
|
238417
238325
|
var data = {
|
|
238418
238326
|
exec: 'emr',
|
|
238419
238327
|
data: {
|
|
@@ -238426,7 +238334,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238426
238334
|
}
|
|
238427
238335
|
};
|
|
238428
238336
|
// console.log('SaveEmrData', data);
|
|
238429
|
-
|
|
238337
|
+
window.top.chrome.webview.postMessage(data);
|
|
238430
238338
|
}
|
|
238431
238339
|
} else if (this._networkConnectionStatus) {
|
|
238432
238340
|
// 网络连接正常情况下正常缓存
|
|
@@ -238497,7 +238405,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238497
238405
|
value: function saveFontString(font) {
|
|
238498
238406
|
var _this5 = this;
|
|
238499
238407
|
this._print_font.keys().then(function (keys) {
|
|
238500
|
-
if (keys.includes(
|
|
238408
|
+
if (keys.includes('sunsim_font')) {
|
|
238501
238409
|
_this5._print_font.removeItem('sunsim_font');
|
|
238502
238410
|
}
|
|
238503
238411
|
});
|
|
@@ -240273,6 +240181,11 @@ var commondata = __webpack_require__(76285);
|
|
|
240273
240181
|
document.addEventListener('mousemove', this.mouseMove);
|
|
240274
240182
|
}
|
|
240275
240183
|
},
|
|
240184
|
+
destroyed: function destroyed() {
|
|
240185
|
+
document.removeEventListener('mouseup', this.mouseMove);
|
|
240186
|
+
document.removeEventListener('mousemove', this.mouseMove);
|
|
240187
|
+
document.removeEventListener('keydown', this.mouseMove);
|
|
240188
|
+
},
|
|
240276
240189
|
created: function created() {
|
|
240277
240190
|
var _this4 = this;
|
|
240278
240191
|
// 禁掉默认的左键菜单
|
|
@@ -240281,19 +240194,7 @@ var commondata = __webpack_require__(76285);
|
|
|
240281
240194
|
};
|
|
240282
240195
|
this.$nextTick(function () {
|
|
240283
240196
|
if (_this4.editJson && _this4.editJson.findModal) {
|
|
240284
|
-
document.
|
|
240285
|
-
var keyCode = event.keyCode || event.which || event.charCode;
|
|
240286
|
-
var ctrlKey = event.ctrlKey || event.metaKey;
|
|
240287
|
-
// ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
240288
|
-
if (ctrlKey && keyCode === 70) {
|
|
240289
|
-
event.preventDefault();
|
|
240290
|
-
_this4.hoEditorProvider.controlFindType = !_this4.hoEditorProvider.controlFindType;
|
|
240291
|
-
}
|
|
240292
|
-
// esc快捷键 自动关闭查询替换弹窗
|
|
240293
|
-
if (keyCode === 27) {
|
|
240294
|
-
_this4.hoEditorProvider.controlFindType = false;
|
|
240295
|
-
}
|
|
240296
|
-
};
|
|
240197
|
+
document.addEventListener('keydown', _this4.onKeydown);
|
|
240297
240198
|
}
|
|
240298
240199
|
});
|
|
240299
240200
|
// 初始化所有文档
|
|
@@ -240849,15 +240750,28 @@ var commondata = __webpack_require__(76285);
|
|
|
240849
240750
|
autoSelect: function autoSelect(id) {
|
|
240850
240751
|
if (!id) return;
|
|
240851
240752
|
this.hoEditorProvider.autoSelectElementId = id;
|
|
240753
|
+
},
|
|
240754
|
+
onKeydown: function onKeydown(event) {
|
|
240755
|
+
var keyCode = event.keyCode || event.which || event.charCode;
|
|
240756
|
+
var ctrlKey = event.ctrlKey || event.metaKey;
|
|
240757
|
+
// ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
240758
|
+
if (ctrlKey && keyCode === 70) {
|
|
240759
|
+
event.preventDefault();
|
|
240760
|
+
this.hoEditorProvider.controlFindType = !this.hoEditorProvider.controlFindType;
|
|
240761
|
+
}
|
|
240762
|
+
// esc快捷键 自动关闭查询替换弹窗
|
|
240763
|
+
if (keyCode === 27) {
|
|
240764
|
+
this.hoEditorProvider.controlFindType = false;
|
|
240765
|
+
}
|
|
240852
240766
|
}
|
|
240853
240767
|
}
|
|
240854
240768
|
});
|
|
240855
240769
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
240856
240770
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
240857
|
-
;// 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=
|
|
240771
|
+
;// 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&
|
|
240858
240772
|
// extracted by mini-css-extract-plugin
|
|
240859
240773
|
|
|
240860
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
240774
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=241e7c23&prod&lang=less&media=print&
|
|
240861
240775
|
|
|
240862
240776
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
240863
240777
|
|
|
@@ -241934,7 +241848,7 @@ var ToolFamily_component = (0,componentNormalizer/* default */.Z)(
|
|
|
241934
241848
|
return {
|
|
241935
241849
|
aligned: 'both',
|
|
241936
241850
|
lineHeight: 1.25,
|
|
241937
|
-
lineHeightList: [1.25, 1.5, 2, 2.5, 3],
|
|
241851
|
+
lineHeightList: [1.25, 1.5, 1.75, 2, 2.5, 3, 4, 5],
|
|
241938
241852
|
lineHeightVisible: false,
|
|
241939
241853
|
isInMenu: false,
|
|
241940
241854
|
editorSubber: null,
|