hoeditor-web 3.2.41 → 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,
|
|
@@ -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) {
|
|
@@ -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 {
|
|
@@ -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) {
|