hoeditor-web 3.2.52 → 3.2.54
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-DroT4ePM.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -6180,7 +6180,7 @@ class MarkNode extends BaseNode {
|
|
|
6180
6180
|
const u = o.style;
|
|
6181
6181
|
this.transType(u);
|
|
6182
6182
|
const f = new TextStyle(r), p = f.combineStyle;
|
|
6183
|
-
u.size === p.size && delete u.size, u.font === p.font && delete u.font, u.color === p.color && delete u.color, u.backColor === p.backColor && delete u.backColor, u.bold === p.bold && delete u.bold, u.italic === p.italic && delete u.italic, u.underline === p.underline && delete u.underline,
|
|
6183
|
+
u.size === p.size && delete u.size, u.font === p.font && delete u.font, u.color === p.color && delete u.color, u.backColor === p.backColor && delete u.backColor, u.bold === p.bold && delete u.bold, u.italic === p.italic && delete u.italic, u.underline === p.underline && delete u.underline, delete u.strikeout, u.script === p.script && delete u.script, delete u.creatorIndex, delete u.deleterIndex, u.commentID === p.commentID && delete u.commentID, Object.assign(f, u), c = l.docTree.styleCompare(f);
|
|
6184
6184
|
}
|
|
6185
6185
|
const d = new MarkNode(
|
|
6186
6186
|
r,
|
|
@@ -14934,7 +14934,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14934
14934
|
}
|
|
14935
14935
|
}
|
|
14936
14936
|
}
|
|
14937
|
-
const version = "3.2.
|
|
14937
|
+
const version = "3.2.54";
|
|
14938
14938
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
14939
14939
|
class SignNode extends BaseNode {
|
|
14940
14940
|
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) {
|
|
@@ -23975,6 +23975,19 @@ class TextInputFieldNode extends BaseCombineNode {
|
|
|
23975
23975
|
throw new Error("经检测,病历元素“" + f.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
|
|
23976
23976
|
if (!(m instanceof MarkNode) || m instanceof MarkNode && m.MarkNodeType !== MarkNodeType.mtEnd)
|
|
23977
23977
|
throw new Error("经检测,病历元素“" + f.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
|
|
23978
|
+
if (f.childNodes.length == 2 && p instanceof MarkNode && m instanceof MarkNode) {
|
|
23979
|
+
const g = new MarkNode(
|
|
23980
|
+
r,
|
|
23981
|
+
n,
|
|
23982
|
+
f,
|
|
23983
|
+
NodeType$1.ntText,
|
|
23984
|
+
f.labelText,
|
|
23985
|
+
//hoEditorFactory.docTree.curStyleIndex,
|
|
23986
|
+
p.styleIndex,
|
|
23987
|
+
MarkNodeType.mtContent
|
|
23988
|
+
);
|
|
23989
|
+
f._childNodes.splice(1, 0, g);
|
|
23990
|
+
}
|
|
23978
23991
|
if (f.childNodes.length > 3 && f.childNodes[1] instanceof MarkNode && f.childNodes[1].MarkNodeType == MarkNodeType.mtContent && f.childNodes.splice(1, 1), f.childNodes[1] instanceof TableFormula$1)
|
|
23979
23992
|
return f;
|
|
23980
23993
|
if (!l) {
|
|
@@ -29647,8 +29660,8 @@ class TextNode extends BaseNode {
|
|
|
29647
29660
|
if (u ? d = u.combineStyle : (d = c.docTree.styles[0].combineStyle, this.styleIndex = 0), o) {
|
|
29648
29661
|
const f = JSON.parse(
|
|
29649
29662
|
JSON.stringify(d, CombineStyle.whiteList())
|
|
29650
|
-
);
|
|
29651
|
-
return {
|
|
29663
|
+
), p = c.docTree.styles[this._styleIndex];
|
|
29664
|
+
return p.deleterIndex && p.deleterIndex >= 0 || (s = ""), {
|
|
29652
29665
|
nodeType: NodeType$1[this.nodeType],
|
|
29653
29666
|
style: f,
|
|
29654
29667
|
text: s,
|
|
@@ -45025,6 +45038,25 @@ class StructureConvert {
|
|
|
45025
45038
|
xmlBeauty(t) {
|
|
45026
45039
|
return xmlBeauty(t);
|
|
45027
45040
|
}
|
|
45041
|
+
fixDoc(t) {
|
|
45042
|
+
const r = t.styles.fontStyle || [], o = t.main || [], n = /* @__PURE__ */ new Set();
|
|
45043
|
+
r.forEach((l, c) => {
|
|
45044
|
+
l.deleterIndex && l.deleterIndex != -1 && (n.add(c + ""), l.strikeout === "true" && (l.strikeout = "false"), delete l.deleterIndex);
|
|
45045
|
+
});
|
|
45046
|
+
function s(l) {
|
|
45047
|
+
var c;
|
|
45048
|
+
for (let d = l.length - 1; d >= 0; d--) {
|
|
45049
|
+
const u = l[d];
|
|
45050
|
+
if ((c = u.childNodes) != null && c.node && Array.isArray(u.childNodes.node))
|
|
45051
|
+
s(u.childNodes.node);
|
|
45052
|
+
else if (u.nodeType == 2 && n.has(u.styleIndex)) {
|
|
45053
|
+
l.splice(d, 1);
|
|
45054
|
+
continue;
|
|
45055
|
+
}
|
|
45056
|
+
}
|
|
45057
|
+
}
|
|
45058
|
+
s(o), t.main = o;
|
|
45059
|
+
}
|
|
45028
45060
|
xml2Doc(t, r) {
|
|
45029
45061
|
const o = this.xml2Object(t);
|
|
45030
45062
|
if (o)
|
|
@@ -64388,7 +64420,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64388
64420
|
(function(a) {
|
|
64389
64421
|
function t() {
|
|
64390
64422
|
return function() {
|
|
64391
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
64423
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-C2FBX1jv.mjs");
|
|
64392
64424
|
}().catch(function(r) {
|
|
64393
64425
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64394
64426
|
}).then(function(r) {
|
|
@@ -71995,7 +72027,7 @@ class HOEditorFactory {
|
|
|
71995
72027
|
// 错误图片地址
|
|
71996
72028
|
b(this, "historyPosition", HistoryComponentPosition.right);
|
|
71997
72029
|
// 历史痕迹展示位置 默认右侧 单行工具栏启用时候需要调整位置避免被业务弹窗挡住
|
|
71998
|
-
b(this, "enableChangeTracking", !
|
|
72030
|
+
b(this, "enableChangeTracking", !1);
|
|
71999
72031
|
b(this, "compressXml", !1);
|
|
72000
72032
|
// 压缩xml
|
|
72001
72033
|
b(this, "compressJSONData", {});
|