hoeditor-web 3.2.61 → 3.2.64
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.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-
|
|
2
|
+
import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-CA1lltAu.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -14940,7 +14940,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14940
14940
|
}
|
|
14941
14941
|
}
|
|
14942
14942
|
}
|
|
14943
|
-
const version = "3.2.
|
|
14943
|
+
const version = "3.2.64";
|
|
14944
14944
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
14945
14945
|
class SignNode extends BaseNode {
|
|
14946
14946
|
constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp, innerIdentifier) {
|
|
@@ -28824,6 +28824,7 @@ class DrawTree {
|
|
|
28824
28824
|
getDrawLineByDNode(t) {
|
|
28825
28825
|
if (t instanceof DrawLine)
|
|
28826
28826
|
return t;
|
|
28827
|
+
if (!t) return null;
|
|
28827
28828
|
let r = t.parent;
|
|
28828
28829
|
for (; r; ) {
|
|
28829
28830
|
if (r instanceof DrawLine)
|
|
@@ -29107,7 +29108,10 @@ class DrawTree {
|
|
|
29107
29108
|
*/
|
|
29108
29109
|
async rebuildAllDrawLine(t, r, o = !0) {
|
|
29109
29110
|
const n = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
29110
|
-
|
|
29111
|
+
if (this.drawPages[0])
|
|
29112
|
+
n.firstPageStartTop > 0 ? (this.drawPages[0].storeDrawHeader.visible = !1, this.drawPages[0].storeDrawFooter.visible = !1) : (this.drawPages[0].storeDrawHeader.visible = !0, this.drawPages[0].storeDrawFooter.visible = !0);
|
|
29113
|
+
else
|
|
29114
|
+
return !1;
|
|
29111
29115
|
const s = n.subDocManger.headerDocTree;
|
|
29112
29116
|
for (let m = 0; m < s.length; m++) {
|
|
29113
29117
|
const g = s[m].subDocNodes;
|
|
@@ -31754,6 +31758,13 @@ class DrawSelectLevel {
|
|
|
31754
31758
|
t.nativeEvent.button === 0 && (r.drawTree.selectRange.clearAllSelectShape(), r.drawTree.selectRange.beginRangeSelect = !0), (n = r.drawTree.activePage) != null && n.activeDrawRect.rootPath.startsWith(gMainPath) && (r.drawTree.activePage = o), r.drawTree.inViewPages.indexOf(this._pageIndex) < 0 && r.drawTree.inViewPages.push(this._pageIndex), this._oldRange = r.docTree.curDomRange.clone();
|
|
31755
31759
|
const s = r.drawTree.getStagePosition(o, o.activeDrawRect, t.stageX, t.stageY);
|
|
31756
31760
|
if (s) {
|
|
31761
|
+
if (r.shiftKeyPress && r.drawTree.selectRange.spStart) {
|
|
31762
|
+
r.drawTree.moveCaretToPath(s.path);
|
|
31763
|
+
const l = r.drawTree.selectRange.spStart.path, c = setTimeout(() => {
|
|
31764
|
+
r.vueController.setDomRange(l, s.path), clearTimeout(c);
|
|
31765
|
+
}, 0);
|
|
31766
|
+
return r.drawTree.selectRange.spStart = s, r.drawTree.selectRange.spEnd = s, !0;
|
|
31767
|
+
}
|
|
31757
31768
|
if (t.nativeEvent.button === 0) {
|
|
31758
31769
|
const l = r.docTree.curOnDragNode;
|
|
31759
31770
|
if (l && l.getNodePath() !== s.path) {
|
|
@@ -64454,7 +64465,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64454
64465
|
(function(a) {
|
|
64455
64466
|
function t() {
|
|
64456
64467
|
return function() {
|
|
64457
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
64468
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-BTk4RJeO.mjs");
|
|
64458
64469
|
}().catch(function(r) {
|
|
64459
64470
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64460
64471
|
}).then(function(r) {
|
|
@@ -72068,8 +72079,10 @@ class HOEditorFactory {
|
|
|
72068
72079
|
b(this, "compressXml", !1);
|
|
72069
72080
|
// 压缩xml
|
|
72070
72081
|
b(this, "compressJSONData", {});
|
|
72082
|
+
b(this, "shiftKeyPress", !1);
|
|
72071
72083
|
this._hoEditorFactoryId = t;
|
|
72072
72084
|
}
|
|
72085
|
+
// 是否按下shift
|
|
72073
72086
|
/**
|
|
72074
72087
|
* Getter hoLocalStorage
|
|
72075
72088
|
* @return {HoLocalStorage}
|
|
@@ -73355,7 +73368,7 @@ const QrCode = __component__$16.exports, lBZ11 = "data:image/png;base64,iVBORw0K
|
|
|
73355
73368
|
} else if (this.expressStyle == "style13") {
|
|
73356
73369
|
const a = this.vueController.getDocProperty();
|
|
73357
73370
|
if (this.style13.sex = a.patientSex || "1", this.style13.weight = a.patientWeight || "", a.patientAge) {
|
|
73358
|
-
const t =
|
|
73371
|
+
const t = a.patientAge.match(/(\d+)岁/);
|
|
73359
73372
|
this.style13.age = t ? t[1] : "";
|
|
73360
73373
|
}
|
|
73361
73374
|
}
|
|
@@ -73515,13 +73528,13 @@ const QrCode = __component__$16.exports, lBZ11 = "data:image/png;base64,iVBORw0K
|
|
|
73515
73528
|
this.insertPopQScore(this.controlStatus);
|
|
73516
73529
|
} else this.expressStyle === "style12" ? this.handleCompute(this.expressStyle, () => {
|
|
73517
73530
|
const a = `<span>
|
|
73518
|
-
<span>血浆渗透压:${this.style12.plasmaOsmolarity}mmol/L</span
|
|
73531
|
+
<span>血浆渗透压:${this.style12.plasmaOsmolarity}mmol/L</span>,
|
|
73519
73532
|
<span>有效渗透压:${this.style12.effectiveOsmolarity}mmol/L</span>
|
|
73520
73533
|
</span>`;
|
|
73521
73534
|
this.vueController.insertHtmlText(a), this.cancel();
|
|
73522
73535
|
}) : this.expressStyle === "style13" && this.handleCompute(this.expressStyle, () => {
|
|
73523
73536
|
let a = `<span><span>肌酐清除率:${this.style13.ccr}mL/min</span>`;
|
|
73524
|
-
this.style13.dose ? a +=
|
|
73537
|
+
this.style13.dose ? a += `,<span>卡铂剂量:${this.style13.dose}mg</span></span>` : a += "</span>", this.vueController.insertHtmlText(a), this.cancel();
|
|
73525
73538
|
});
|
|
73526
73539
|
["style12", "style13"].includes(this.expressStyle) || this.cancel();
|
|
73527
73540
|
},
|
|
@@ -83342,13 +83355,13 @@ const FindReplaceDialog = __component__$t.exports, fontFamilys = [{ ch: "宋体"
|
|
|
83342
83355
|
}), document.addEventListener("mousemove", this.mouseMove));
|
|
83343
83356
|
},
|
|
83344
83357
|
destroyed() {
|
|
83345
|
-
document.removeEventListener("mouseup", this.mouseMove), document.removeEventListener("mousemove", this.mouseMove), document.removeEventListener("keydown", this.
|
|
83358
|
+
document.removeEventListener("mouseup", this.mouseMove), document.removeEventListener("mousemove", this.mouseMove), document.removeEventListener("keydown", this.onKeydown), document.removeEventListener("keyup", this.onKeyup);
|
|
83346
83359
|
},
|
|
83347
83360
|
created() {
|
|
83348
83361
|
window.oncontextmenu = (r) => {
|
|
83349
83362
|
r.preventDefault();
|
|
83350
83363
|
}, this.$nextTick(() => {
|
|
83351
|
-
this.editJson && this.editJson.findModal && document.addEventListener("keydown", this.onKeydown);
|
|
83364
|
+
this.editJson && this.editJson.findModal && (document.addEventListener("keydown", this.onKeydown), document.addEventListener("keyup", this.onKeyup));
|
|
83352
83365
|
});
|
|
83353
83366
|
const a = generateID("HO"), t = new HOEditorFactory(a);
|
|
83354
83367
|
this.hoEditorFactoryIdList.push(a), Array.isArray(this.superiorSigns) && this.superiorSigns.length > 0 && (t.superiorSigns = [...this.superiorSigns]), this.isFixedPrintToA4 === !0 ? t.isFixedPrintToA4 = "1" : this.isFixedPrintToA4 === !1 ? t.isFixedPrintToA4 = "" : t.isFixedPrintToA4 = this.isFixedPrintToA4, t.isUseImagePrint = this.isUseImagePrint, t.isUseForm = this.isUseForm, t.printBlack = this.printBlack, t.isEnabledGlobalColor = this.isEnabledGlobalColor, t.isSameColorWithEmptyVlaue = this.isSameColorWithEmptyVlaue, t.contentIsModify = this.contentIsModify, t.commentParams = this.commentParams, t.isCanEditHeadFoot = this.isCanEditHeadFoot, t.docTree.docProperty = this.defaultDocProperty, HOEditorFactorys.instance().hoEditorFactoryMap.set(a, t), this.editJson && this.editJson !== null && (this.defaultEditJson = { ...this.defaultEditJson, ...this.editJson }), this.setActiveDocIndex(this.hoEditorFactoryIdList[0]), this.$nextTick(() => {
|
|
@@ -83597,8 +83610,14 @@ const FindReplaceDialog = __component__$t.exports, fontFamilys = [{ ch: "宋体"
|
|
|
83597
83610
|
a && (this.hoEditorProvider.autoSelectElementId = a);
|
|
83598
83611
|
},
|
|
83599
83612
|
onKeydown(a) {
|
|
83600
|
-
const t =
|
|
83601
|
-
|
|
83613
|
+
const t = HOEditorFactorys.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
83614
|
+
t.shiftKeyPress = a.shiftKey;
|
|
83615
|
+
const r = a.keyCode || a.which || a.charCode, o = a.ctrlKey || a.metaKey;
|
|
83616
|
+
o && r === 70 && (a.preventDefault(), this.hoEditorProvider.controlFindType = !this.hoEditorProvider.controlFindType), o && r === 66 && t.vueController.fontBold(!0), r === 27 && (this.hoEditorProvider.controlFindType = !1);
|
|
83617
|
+
},
|
|
83618
|
+
onKeyup(a) {
|
|
83619
|
+
const t = HOEditorFactorys.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
83620
|
+
t.shiftKeyPress = a.shiftKey;
|
|
83602
83621
|
}
|
|
83603
83622
|
}
|
|
83604
83623
|
});
|