hoeditor-web 3.2.40 → 3.2.42
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-UViDQi3j.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -13543,7 +13543,7 @@ class DateTimeNode extends ControlNode {
|
|
|
13543
13543
|
const l = HOEditorFactorys.instance().getFactory(t);
|
|
13544
13544
|
l.vueController.getNodeByDataID("all", r.dataId) && (r.dataId = l.gernerateCode.generateID("DateTime"));
|
|
13545
13545
|
}
|
|
13546
|
-
if (r.readType = r.readType ? Number(r.readType) : -1, r.isSynchro = r.isSynchro ? r.isSynchro : !1, r.isAllowDelete = r.isAllowDelete ? r.isAllowDelete : !1, r.isReadOnly = r.isReadOnly ? r.isReadOnly : !1, r.notReplaceElement = r.notReplaceElement ? r.notReplaceElement : !1, r.notSelectTime = r.notSelectTime ? r.notSelectTime : !1, r.canWrapLine = r.canWrapLine ? r.canWrapLine : !1, r.type = parseInt(ControlType[r.type]), r.controlStyle = r.controlStyle.replace("hh", "HH"), r.controlStyle !== "yyyy-MM-dd HH:mm:ss" && r.controlStyle !== "" && r.text.replace(" ", "").length > 0 && r.text !== r.labelText) {
|
|
13546
|
+
if (r.readType = r.readType ? Number(r.readType) : -1, r.isSynchro = r.isSynchro ? r.isSynchro : !1, r.isAllowDelete = r.isAllowDelete ? r.isAllowDelete : !1, r.isReadOnly = r.isReadOnly ? r.isReadOnly : !1, r.notReplaceElement = r.notReplaceElement ? r.notReplaceElement : !1, r.notSelectTime = r.notSelectTime ? r.notSelectTime : !1, r.canWrapLine = r.canWrapLine ? r.canWrapLine : !1, r.type = parseInt(ControlType[r.type]), r.controlStyle = r.controlStyle.replace("hh", "HH"), r.text = r.text || "", r.controlStyle !== "yyyy-MM-dd HH:mm:ss" && r.controlStyle !== "" && r.text.replace(" ", "").length > 0 && r.text !== r.labelText) {
|
|
13547
13547
|
const l = dateFormat(r.text.toString(), r.controlStyle);
|
|
13548
13548
|
r.text = l;
|
|
13549
13549
|
}
|
|
@@ -14904,7 +14904,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14904
14904
|
}
|
|
14905
14905
|
}
|
|
14906
14906
|
}
|
|
14907
|
-
const version = "3.2.
|
|
14907
|
+
const version = "3.2.42";
|
|
14908
14908
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
14909
14909
|
class SignNode extends BaseNode {
|
|
14910
14910
|
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) {
|
|
@@ -14962,7 +14962,7 @@ class SignNode extends BaseNode {
|
|
|
14962
14962
|
b(this, "isTemp", !1);
|
|
14963
14963
|
b(this, "innerIdentifier", "");
|
|
14964
14964
|
const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
14965
|
-
this.number = number, this._type = type, this._signor = signor, this._signTime = signTime, this.imgSrc = imgSrc, this._attribute = attribute === void 0 ? 0 : attribute, this._connectChar = connectChar === void 0 ? ":" : connectChar, dataId ? this.dataId = dataId : this.dataId = HOEditorFactorys.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign"), fingerPrintSrc && (this._fingerPrintSrc = fingerPrintSrc), this._fingerPosition = fingerPosition || 0, this._name = name, this._imgWidth = imgWidth, this._imgHeight = imgHeight, this._isTemplate = isTemplate, this.isTemp = isTemp || isTemplate, this._signType = signType, this._signFormat = signFormat, this._signTimeFormat = signTimeFormat, styleIndex ? this._styleIndex = styleIndex : this._styleIndex = hoEditorFactory.docTree.curStyleIndex, this._connectMode = connectMode, signType === 1 && type !== 1 && (this._isFront = isFront, this._allowEditSignTime = allowEditSignTime), this._otherProperties = new Object(), this._associatedElement = associatedElement || "", this._customProperty = new Object();
|
|
14965
|
+
this.number = number, this._type = type, this._signor = signor, this._signTime = signTime, this.imgSrc = imgSrc || "", this._attribute = attribute === void 0 ? 0 : attribute, this._connectChar = connectChar === void 0 ? ":" : connectChar, dataId ? this.dataId = dataId : this.dataId = HOEditorFactorys.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign"), fingerPrintSrc && (this._fingerPrintSrc = fingerPrintSrc), this._fingerPosition = fingerPosition || 0, this._name = name, this._imgWidth = imgWidth, this._imgHeight = imgHeight, this._isTemplate = isTemplate, this.isTemp = isTemp || isTemplate, this._signType = signType, this._signFormat = signFormat, this._signTimeFormat = signTimeFormat, styleIndex ? this._styleIndex = styleIndex : this._styleIndex = hoEditorFactory.docTree.curStyleIndex, this._connectMode = connectMode, signType === 1 && type !== 1 && (this._isFront = isFront, this._allowEditSignTime = allowEditSignTime), this._otherProperties = new Object(), this._associatedElement = associatedElement || "", this._customProperty = new Object();
|
|
14966
14966
|
const assignvalue = (target, source) => {
|
|
14967
14967
|
Object.keys(source).forEach((value) => {
|
|
14968
14968
|
typeof target[value] == "object" ? Object.prototype.toString.call(source[value]) === "[object Object]" ? assignvalue(target[value], source[value]) : source[value] !== "" && source[value] !== null && assignvalue(target[value], eval("(" + source[value] + ")")) : target[value] = source[value];
|
|
@@ -15240,7 +15240,7 @@ class SignNode extends BaseNode {
|
|
|
15240
15240
|
s ? void 0 : r.customProperty,
|
|
15241
15241
|
m,
|
|
15242
15242
|
r.styleIndex ? Number(r.styleIndex) : void 0,
|
|
15243
|
-
r.connectMode,
|
|
15243
|
+
r.connectMode || "",
|
|
15244
15244
|
w,
|
|
15245
15245
|
v,
|
|
15246
15246
|
s ? "" : r.fingerPrintSrc,
|
|
@@ -20360,7 +20360,7 @@ class TextBorderNode extends ControlNode {
|
|
|
20360
20360
|
o,
|
|
20361
20361
|
n || null,
|
|
20362
20362
|
NodeType$1.ntTextBorder,
|
|
20363
|
-
r.text,
|
|
20363
|
+
r.text || "",
|
|
20364
20364
|
s
|
|
20365
20365
|
);
|
|
20366
20366
|
}
|
|
@@ -23014,7 +23014,9 @@ const appendPrevTextResult = (a, t, r) => {
|
|
|
23014
23014
|
}, o = !1;
|
|
23015
23015
|
}
|
|
23016
23016
|
return r;
|
|
23017
|
-
}
|
|
23017
|
+
}, removeEmptyValues = (a) => typeof a != "object" || a === null ? a : Array.isArray(a) ? a.filter((r) => !isEmptyValue(r)).map((r) => removeEmptyValues(r)) : Object.fromEntries(
|
|
23018
|
+
Object.entries(a).filter(([r, o]) => r === "tetx" || !isEmptyValue(o)).map(([r, o]) => [r, removeEmptyValues(o)])
|
|
23019
|
+
), isEmptyValue = (a) => a === "" || a === !1 || a === null || a === void 0;
|
|
23018
23020
|
var ReadOnlyStatus = /* @__PURE__ */ ((a) => (a[a.true = 0] = "true", a[a.false = 1] = "false", a[a.InheritParentElement = 2] = "InheritParentElement", a))(ReadOnlyStatus || {}), InputFieldType = /* @__PURE__ */ ((a) => (a[a.text = 0] = "text", a[a.dropDownList = 1] = "dropDownList", a))(InputFieldType || {});
|
|
23019
23021
|
class DownListProperty {
|
|
23020
23022
|
//列表项目
|
|
@@ -28710,9 +28712,7 @@ class DrawTree {
|
|
|
28710
28712
|
if (o.childIndex >= 0) {
|
|
28711
28713
|
if (o.node instanceof TextNode) {
|
|
28712
28714
|
const n = o.node.getDrawNodeByIndex(o.childIndex);
|
|
28713
|
-
|
|
28714
|
-
return n;
|
|
28715
|
-
throw new Error();
|
|
28715
|
+
return n || null;
|
|
28716
28716
|
}
|
|
28717
28717
|
return o.node.drawNodes[o.childIndex];
|
|
28718
28718
|
} else {
|
|
@@ -39756,7 +39756,7 @@ class HTMLconverter2 {
|
|
|
39756
39756
|
} else if (n == "sub") {
|
|
39757
39757
|
const s = o.vertical_align || "";
|
|
39758
39758
|
s.indexOf("sub") == -1 && (o.vertical_align = (s == "" || s == null ? "" : s + " ") + "sub");
|
|
39759
|
-
} else if (n == "u"
|
|
39759
|
+
} else if (n == "u") {
|
|
39760
39760
|
const s = o.text_decoration || "";
|
|
39761
39761
|
s.indexOf("underline") == -1 && (o.text_decoration = (s == "" ? "" : s + " ") + "underline");
|
|
39762
39762
|
} else if (n == "s") {
|
|
@@ -45197,7 +45197,7 @@ class StructureConvert {
|
|
|
45197
45197
|
for (let g = 0; g < f.length; g++) {
|
|
45198
45198
|
const y = f[g];
|
|
45199
45199
|
let w;
|
|
45200
|
-
p === "json" && (y instanceof TableNode || y instanceof TextInputFieldNode) ? w = this.delStyle(y.node2Json(void 0, void 0, "json")) : p === "json" ? w = this.delStyle(y.node2Json()) : y instanceof TableNode || y instanceof TextInputFieldNode ? (w = y.node2Json(void 0, void 0, void 0, n), w = d(t, w, y instanceof TableNode ? "TableNode" : "TextInputFieldNode")) : y instanceof SignNode ? (n ? y.isTemplate && (w = y.node2Json(void 0, void 0, void 0, n)) : w = y.node2Json(), w = d(t, w, "SignNode")) : y instanceof DateTimeNode && n || y instanceof QrcodeNode && n ? w = y.node2Json(void 0, void 0, void 0, n) : y instanceof DateTimeNode ? w = d(t, y.node2Json(), "DateTimeNode") : w = y.node2Json(), p === "xml" ? o += l.js2xml(w) : m.push(w);
|
|
45200
|
+
p === "json" && (y instanceof TableNode || y instanceof TextInputFieldNode) ? w = this.delStyle(y.node2Json(void 0, void 0, "json")) : p === "json" ? w = this.delStyle(y.node2Json()) : (y instanceof TableNode || y instanceof TextInputFieldNode ? (w = y.node2Json(void 0, void 0, void 0, n), w = d(t, w, y instanceof TableNode ? "TableNode" : "TextInputFieldNode")) : y instanceof SignNode ? (n ? y.isTemplate && (w = y.node2Json(void 0, void 0, void 0, n)) : w = y.node2Json(), w = d(t, w, "SignNode")) : y instanceof DateTimeNode && n || y instanceof QrcodeNode && n ? w = y.node2Json(void 0, void 0, void 0, n) : y instanceof DateTimeNode ? w = d(t, y.node2Json(), "DateTimeNode") : w = y.node2Json(), w = removeEmptyValues(w)), p === "xml" ? o += l.js2xml(w) : m.push(w);
|
|
45201
45201
|
}
|
|
45202
45202
|
if (r === "json")
|
|
45203
45203
|
return m;
|
|
@@ -47977,7 +47977,7 @@ class VueController {
|
|
|
47977
47977
|
let n = 0;
|
|
47978
47978
|
t === 4 ? (n = 80, o.isHideComments = !1, o.commentParams.review = !0, o.commentParams.hideComment = !1) : (o.isHideComments = !0, o.commentParams.review = !1, o.commentParams.hideComment = !0, hoCreateComment.close()), n !== o.pageProperty.commentWidthMm && o.vueController.setPageProperty(JSON.stringify({ commentWidthMm: n }));
|
|
47979
47979
|
const s = o.structureConvert._superiorSign;
|
|
47980
|
-
s.length > 0 && s[0].imgSrc != "" && (t === 1 || t === 4 ? this.hiddenMask(!1) : this.hiddenMask(!0));
|
|
47980
|
+
s.length > 0 && s[0].imgSrc != "" && (t === 1 || t === 4 ? this.hiddenMask(!1) : this.hiddenMask(!0)), o.drawTree.rebuildAllDrawLine(!0);
|
|
47981
47981
|
}
|
|
47982
47982
|
async hiddenMask(t) {
|
|
47983
47983
|
const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -50910,7 +50910,7 @@ class VueController {
|
|
|
50910
50910
|
let t = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
50911
50911
|
t.docTree.docProperty.type = EmrType.etCaseHistory;
|
|
50912
50912
|
const r = t.docTree.curDomRange, o = r.normalize().startPath, n = r.normalize().endPath, s = new NodeChangingEvent(DocAction.daUnkown, o, n, OperType.newFile);
|
|
50913
|
-
t.docTree.changing(s) && await t.docController.initBlankDoc(), t._docTree && (t._docTree.clearDocTree(), delete t._docTree),
|
|
50913
|
+
t.hoLocalStorage && t.hoLocalStorage.removeEvent(), t.docTree.changing(s) && await t.docController.initBlankDoc(), t._docTree && (t._docTree.clearDocTree(), delete t._docTree), delete t._subDocManger, delete t._drawPageTree, delete t._vueController, delete t._docController, delete t._pageProperty, delete t._undoService, delete t._printStatus, delete t._timeStamp, delete t._gernerateCode, delete t._htmlConverter, delete t._structureConvert, delete t._structureNode, delete t._toHtmlConverter, delete t._unitConvert, delete t._nodeMouseMove, delete t._testDataSet, delete t._userInfo, delete t._option, delete t._baseController, delete t._domController, delete t._editController, delete t._elementController, delete t._nodeController, delete t._printController, delete t._reviewController, delete t._selectController, delete t._tableController, delete t._formatPainter, delete t._hoLocalStorage, t._drawTree && t._drawTree.drawPages[0] && (t._drawTree.drawPages[0].destory(), t._drawTree.drawPageCount.count = 0, t._drawTree.drawPages.splice(0, t._drawTree.drawPages.length)), delete t._drawTree, t = null;
|
|
50914
50914
|
}
|
|
50915
50915
|
/**
|
|
50916
50916
|
* 获取签名元素清理后的病历xml内容
|
|
@@ -64330,7 +64330,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64330
64330
|
(function(a) {
|
|
64331
64331
|
function t() {
|
|
64332
64332
|
return function() {
|
|
64333
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
64333
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CB1adP1a.mjs");
|
|
64334
64334
|
}().catch(function(r) {
|
|
64335
64335
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64336
64336
|
}).then(function(r) {
|