hoeditor-web 3.0.51 → 3.0.52
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 +2 -13054
- package/lib/hoeditor.umd.js +78 -41
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -35272,6 +35272,10 @@ jspdf/* jsPDF.API.svg */.kH.API.svg = function (element, options) {
|
|
|
35272
35272
|
|
|
35273
35273
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawPageTable.ts
|
|
35274
35274
|
var DrawPageTable = __webpack_require__(15694);
|
|
35275
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
35276
|
+
var ParagraphNode = __webpack_require__(67945);
|
|
35277
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawPageMainDoc.ts
|
|
35278
|
+
var DrawPageMainDoc = __webpack_require__(77441);
|
|
35275
35279
|
;// CONCATENATED MODULE: ./src/editor/PrintStatus.ts
|
|
35276
35280
|
|
|
35277
35281
|
|
|
@@ -35310,6 +35314,8 @@ var DrawPageTable = __webpack_require__(15694);
|
|
|
35310
35314
|
|
|
35311
35315
|
|
|
35312
35316
|
|
|
35317
|
+
|
|
35318
|
+
|
|
35313
35319
|
|
|
35314
35320
|
|
|
35315
35321
|
|
|
@@ -36398,8 +36404,8 @@ var Print = /*#__PURE__*/function () {
|
|
|
36398
36404
|
}, {
|
|
36399
36405
|
key: "printAllNew",
|
|
36400
36406
|
value: function () {
|
|
36401
|
-
var _printAllNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(hoEditorFactoryID, reslove, PDF, position) {
|
|
36402
|
-
var hoEditorFactory, a4Size, svgBox, last, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, _iterator4, _step4, _cpage$drawDomLevel10, index, cpage, _cpage$drawDomLevel8, _cpage$drawDomLevel8$, pageSize, ctx, _cpage$drawDomLevel9, _cpage$drawDomLevel9$, _ctx7, _ctx6, lastPos;
|
|
36407
|
+
var _printAllNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(hoEditorFactoryID, reslove, PDF, position, isPrintFirstDoc) {
|
|
36408
|
+
var hoEditorFactory, a4Size, svgBox, last, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, firstPageIndex, _iterator4, _step4, _cpage$drawDomLevel10, index, cpage, _cpage$drawDomLevel8, _cpage$drawDomLevel8$, pageSize, ctx, _cpage$drawDomLevel9, _cpage$drawDomLevel9$, _ctx7, _ctx6, lastPos;
|
|
36403
36409
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context6) {
|
|
36404
36410
|
while (1) {
|
|
36405
36411
|
switch (_context6.prev = _context6.next) {
|
|
@@ -36431,22 +36437,36 @@ var Print = /*#__PURE__*/function () {
|
|
|
36431
36437
|
svg2pdfOptions.x = (format[0] - widthPixes) / 2;
|
|
36432
36438
|
}
|
|
36433
36439
|
}
|
|
36440
|
+
firstPageIndex = -1; // 用来处理 批量打印----首次病程单独打印----未选择首次病程----只选择病程记录----合并时带上首次病程确保页数准确----打印时丢掉首次病程确保不重复打印首次病程
|
|
36441
|
+
if (isPrintFirstDoc) {
|
|
36442
|
+
hoEditorFactory.docTree.mainNodes.forEach(function (node) {
|
|
36443
|
+
if (node instanceof ParagraphNode/* ParagraphNode */.C && node.printAsSinglePage && node.drawlines[0].parent instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && firstPageIndex == -1) {
|
|
36444
|
+
firstPageIndex = node.drawlines[0].parent.pageIndex;
|
|
36445
|
+
}
|
|
36446
|
+
});
|
|
36447
|
+
}
|
|
36434
36448
|
_iterator4 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
36435
|
-
_context6.prev =
|
|
36449
|
+
_context6.prev = 17;
|
|
36436
36450
|
_iterator4.s();
|
|
36437
|
-
case
|
|
36451
|
+
case 19:
|
|
36438
36452
|
if ((_step4 = _iterator4.n()).done) {
|
|
36439
|
-
_context6.next =
|
|
36453
|
+
_context6.next = 54;
|
|
36440
36454
|
break;
|
|
36441
36455
|
}
|
|
36442
36456
|
index = _step4.value;
|
|
36443
36457
|
if (!(index == -1)) {
|
|
36444
|
-
_context6.next =
|
|
36458
|
+
_context6.next = 24;
|
|
36445
36459
|
break;
|
|
36446
36460
|
}
|
|
36447
36461
|
message/* default.info */.Z.info('请进行翻页');
|
|
36448
|
-
return _context6.abrupt("continue",
|
|
36449
|
-
case
|
|
36462
|
+
return _context6.abrupt("continue", 52);
|
|
36463
|
+
case 24:
|
|
36464
|
+
if (!(index < firstPageIndex)) {
|
|
36465
|
+
_context6.next = 26;
|
|
36466
|
+
break;
|
|
36467
|
+
}
|
|
36468
|
+
return _context6.abrupt("continue", 52);
|
|
36469
|
+
case 26:
|
|
36450
36470
|
last = index;
|
|
36451
36471
|
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
36452
36472
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
@@ -36458,13 +36478,13 @@ var Print = /*#__PURE__*/function () {
|
|
|
36458
36478
|
cpage.needUpdateStage = false;
|
|
36459
36479
|
}
|
|
36460
36480
|
if (!(index === hoEditorFactory.drawTree.drawPages.length - 1 && cpage.drawMainDoc.children.length === 2 && !(cpage.drawMainDoc.children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && cpage.drawMainDoc.children[1] && cpage.drawMainDoc.children[1].drawItems.length === 0)) {
|
|
36461
|
-
_context6.next =
|
|
36481
|
+
_context6.next = 32;
|
|
36462
36482
|
break;
|
|
36463
36483
|
}
|
|
36464
|
-
return _context6.abrupt("break",
|
|
36465
|
-
case
|
|
36484
|
+
return _context6.abrupt("break", 54);
|
|
36485
|
+
case 32:
|
|
36466
36486
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
36467
|
-
_context6.next =
|
|
36487
|
+
_context6.next = 45;
|
|
36468
36488
|
break;
|
|
36469
36489
|
}
|
|
36470
36490
|
pageSize = JSON.stringify([hoEditorFactory.pageProperty.widthMm, hoEditorFactory.pageProperty.heightMm]);
|
|
@@ -36496,9 +36516,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
36496
36516
|
ctx.posY = svg2pdfOptions.y;
|
|
36497
36517
|
ctx && ((_cpage$drawDomLevel8 = cpage.drawDomLevel) === null || _cpage$drawDomLevel8 === void 0 ? void 0 : (_cpage$drawDomLevel8$ = _cpage$drawDomLevel8.stage) === null || _cpage$drawDomLevel8$ === void 0 ? void 0 : _cpage$drawDomLevel8$.draw(ctx));
|
|
36498
36518
|
ctx = null;
|
|
36499
|
-
_context6.next =
|
|
36519
|
+
_context6.next = 51;
|
|
36500
36520
|
break;
|
|
36501
|
-
case
|
|
36521
|
+
case 45:
|
|
36502
36522
|
_ctx6 = new canvas2svg({
|
|
36503
36523
|
width: widthPixes,
|
|
36504
36524
|
height: orientation === 'l' ? heightPixes - 1 : heightPixes,
|
|
@@ -36510,27 +36530,27 @@ var Print = /*#__PURE__*/function () {
|
|
|
36510
36530
|
} else {
|
|
36511
36531
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
|
|
36512
36532
|
}
|
|
36513
|
-
_context6.next =
|
|
36533
|
+
_context6.next = 50;
|
|
36514
36534
|
return svg2pdf((_ctx7 = _ctx6) === null || _ctx7 === void 0 ? void 0 : _ctx7.getSvg(), PDF, svg2pdfOptions);
|
|
36515
|
-
case
|
|
36535
|
+
case 50:
|
|
36516
36536
|
_ctx6 = null;
|
|
36517
|
-
case
|
|
36537
|
+
case 51:
|
|
36518
36538
|
index > 0 && ((_cpage$drawDomLevel10 = cpage.drawDomLevel) === null || _cpage$drawDomLevel10 === void 0 ? void 0 : _cpage$drawDomLevel10.clearStage());
|
|
36519
|
-
case
|
|
36520
|
-
_context6.next =
|
|
36539
|
+
case 52:
|
|
36540
|
+
_context6.next = 19;
|
|
36521
36541
|
break;
|
|
36522
|
-
case
|
|
36523
|
-
_context6.next =
|
|
36542
|
+
case 54:
|
|
36543
|
+
_context6.next = 59;
|
|
36524
36544
|
break;
|
|
36525
|
-
case
|
|
36526
|
-
_context6.prev =
|
|
36527
|
-
_context6.t0 = _context6["catch"](
|
|
36545
|
+
case 56:
|
|
36546
|
+
_context6.prev = 56;
|
|
36547
|
+
_context6.t0 = _context6["catch"](17);
|
|
36528
36548
|
_iterator4.e(_context6.t0);
|
|
36529
|
-
case
|
|
36530
|
-
_context6.prev =
|
|
36549
|
+
case 59:
|
|
36550
|
+
_context6.prev = 59;
|
|
36531
36551
|
_iterator4.f();
|
|
36532
|
-
return _context6.finish(
|
|
36533
|
-
case
|
|
36552
|
+
return _context6.finish(59);
|
|
36553
|
+
case 62:
|
|
36534
36554
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
36535
36555
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
36536
36556
|
}
|
|
@@ -36544,14 +36564,14 @@ var Print = /*#__PURE__*/function () {
|
|
|
36544
36564
|
}
|
|
36545
36565
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
36546
36566
|
reslove();
|
|
36547
|
-
case
|
|
36567
|
+
case 66:
|
|
36548
36568
|
case "end":
|
|
36549
36569
|
return _context6.stop();
|
|
36550
36570
|
}
|
|
36551
36571
|
}
|
|
36552
|
-
}, _callee5, null, [[
|
|
36572
|
+
}, _callee5, null, [[17, 56, 59, 62]]);
|
|
36553
36573
|
}));
|
|
36554
|
-
function printAllNew(_x15, _x16, _x17, _x18) {
|
|
36574
|
+
function printAllNew(_x15, _x16, _x17, _x18, _x19) {
|
|
36555
36575
|
return _printAllNew.apply(this, arguments);
|
|
36556
36576
|
}
|
|
36557
36577
|
return printAllNew;
|
|
@@ -37936,7 +37956,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37936
37956
|
}
|
|
37937
37957
|
} else {
|
|
37938
37958
|
var styleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
37939
|
-
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re && node === pNode.first()) {
|
|
37959
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re && node === pNode.first() && hoEditorFactory.drawTree.paintStatus != _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psReview */ .Dh.psReview) {
|
|
37940
37960
|
styleIndex = node.styleIndex;
|
|
37941
37961
|
}
|
|
37942
37962
|
if (aTextArray[0] > 1) {
|
|
@@ -38019,7 +38039,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38019
38039
|
curStyleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
|
|
38020
38040
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
38021
38041
|
var pNode = node.parentNode;
|
|
38022
|
-
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re && pNode.childNodes.indexOf(node) === 0) {
|
|
38042
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re && pNode.childNodes.indexOf(node) === 0 && hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psReview */ .Dh.psReview) {
|
|
38023
38043
|
//const aNode = pNode.childNodes[0];
|
|
38024
38044
|
//if (aNode instanceof MarkNode) {
|
|
38025
38045
|
//curStyleIndex = aNode.styleIndex;
|
|
@@ -38054,6 +38074,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38054
38074
|
_this2.insertNodeByPath(aPath, paragraphNode);
|
|
38055
38075
|
return hoEditorFactory.docTree.curDomRange.startPath;
|
|
38056
38076
|
};
|
|
38077
|
+
curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
|
|
38057
38078
|
var aPromise = new Promise(function (resolve, reject) {
|
|
38058
38079
|
resolve(strPath);
|
|
38059
38080
|
});
|
|
@@ -63073,7 +63094,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63073
63094
|
/*
|
|
63074
63095
|
* @Author: your name
|
|
63075
63096
|
* @Date: 2020-11-03 15:17:54
|
|
63076
|
-
* @LastEditTime: 2023-04-
|
|
63097
|
+
* @LastEditTime: 2023-04-18 14:15:13
|
|
63077
63098
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
63078
63099
|
* @Description: In User Settings Edit
|
|
63079
63100
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -64056,11 +64077,22 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
64056
64077
|
}, {
|
|
64057
64078
|
key: "getLabel",
|
|
64058
64079
|
value: function getLabel() {
|
|
64059
|
-
if (this._childNodes2.length == 3) {
|
|
64060
|
-
|
|
64080
|
+
//if (this._childNodes2.length == 3) {
|
|
64081
|
+
// if (this.childNodes.indexOf(this._childNodes2[1]) != -1) {
|
|
64082
|
+
// return this._childNodes2[1];
|
|
64083
|
+
// }
|
|
64084
|
+
// return null;
|
|
64085
|
+
if (this.childNodes.indexOf(this._childNodes2[1]) != -1) {
|
|
64086
|
+
return this._childNodes2[1];
|
|
64087
|
+
} else {
|
|
64088
|
+
for (var i = 0; i < this.childNodes.length; i++) {
|
|
64089
|
+
var child = this.childNodes[i];
|
|
64090
|
+
if (child instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j && child.MarkNodeType == 1) {
|
|
64091
|
+
return child;
|
|
64092
|
+
}
|
|
64093
|
+
}
|
|
64061
64094
|
return null;
|
|
64062
64095
|
}
|
|
64063
|
-
return null;
|
|
64064
64096
|
}
|
|
64065
64097
|
/**
|
|
64066
64098
|
* 文本域重绘
|
|
@@ -235462,7 +235494,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
235462
235494
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
235463
235495
|
var MarkNode = __webpack_require__(57727);
|
|
235464
235496
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
235465
|
-
/* harmony default export */ var version = ('3.0.
|
|
235497
|
+
/* harmony default export */ var version = ('3.0.52');
|
|
235466
235498
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
235467
235499
|
var PoperTipText = __webpack_require__(15845);
|
|
235468
235500
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -252861,6 +252893,7 @@ var jspdf = __webpack_require__(77937);
|
|
|
252861
252893
|
|
|
252862
252894
|
|
|
252863
252895
|
|
|
252896
|
+
|
|
252864
252897
|
|
|
252865
252898
|
|
|
252866
252899
|
/*
|
|
@@ -253488,7 +253521,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
253488
253521
|
}, {
|
|
253489
253522
|
key: "pintAllToPDF",
|
|
253490
253523
|
value: function () {
|
|
253491
|
-
var _pintAllToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee8(xmlList, callback) {
|
|
253524
|
+
var _pintAllToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee8(xmlList, callback, params) {
|
|
253492
253525
|
var _this6 = this;
|
|
253493
253526
|
var hoEditorFactory, beforePrintStatus, xml, xmlIndex, mergeList, position, continuousid, options, toPrint, createSvg;
|
|
253494
253527
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee8$(_context8) {
|
|
@@ -253517,7 +253550,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
253517
253550
|
while (1) {
|
|
253518
253551
|
switch (_context6.prev = _context6.next) {
|
|
253519
253552
|
case 0:
|
|
253520
|
-
|
|
253553
|
+
if (params && continuousid && Array.isArray(params.notPrintDocId) && params.notPrintDocId.length > 0 && params.notPrintDocId.includes(continuousid)) {
|
|
253554
|
+
PrintStatus/* Print.printAllNew */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position, true);
|
|
253555
|
+
} else {
|
|
253556
|
+
PrintStatus/* Print.printAllNew */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position);
|
|
253557
|
+
}
|
|
253521
253558
|
case 1:
|
|
253522
253559
|
case "end":
|
|
253523
253560
|
return _context6.stop();
|
|
@@ -253607,7 +253644,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
253607
253644
|
}
|
|
253608
253645
|
}, _callee8, this);
|
|
253609
253646
|
}));
|
|
253610
|
-
function pintAllToPDF(_x7, _x8) {
|
|
253647
|
+
function pintAllToPDF(_x7, _x8, _x9) {
|
|
253611
253648
|
return _pintAllToPDF.apply(this, arguments);
|
|
253612
253649
|
}
|
|
253613
253650
|
return pintAllToPDF;
|