hoeditor-web 3.2.42 → 3.2.44
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-C5Q_rShP.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -10045,7 +10045,7 @@ class RadioAndCheckBoxNode extends ControlNode {
|
|
|
10045
10045
|
}
|
|
10046
10046
|
r.isAllowDelete = r.isAllowDelete ? r.isAllowDelete : !1, r.isSelected = r.isSelected ? r.isSelected.text != null ? r.isSelected.text : r.isSelected : !1, r.boxAlign = r.boxAlign === void 0 ? !0 : r.boxAlign, r.isEditText = r.isEditText ? r.isEditText : !1, r.isTransToText = r.isTransToText ? r.isTransToText : !1, r.groupHasOptions = r.groupHasOptions ? r.groupHasOptions : !1, r.numericValue = r.numericValue === void 0 ? "0" : Number(r.numericValue);
|
|
10047
10047
|
const l = Number(r.styleIndex);
|
|
10048
|
-
return r.type = parseInt(ControlType[r.type]), r.readType = r.readType ? Number(r.readType) : -1, r.isMutualExclusion = r.isMutualExclusion ? r.isMutualExclusion : !1, new RadioAndCheckBoxNode(
|
|
10048
|
+
return r.type = parseInt(ControlType[r.type]), r.readType = r.readType ? Number(r.readType) : -1, r.isMutualExclusion = r.isMutualExclusion ? r.isMutualExclusion : !1, r.text = r.text || "", new RadioAndCheckBoxNode(
|
|
10049
10049
|
t,
|
|
10050
10050
|
o,
|
|
10051
10051
|
n || null,
|
|
@@ -14904,7 +14904,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14904
14904
|
}
|
|
14905
14905
|
}
|
|
14906
14906
|
}
|
|
14907
|
-
const version = "3.2.
|
|
14907
|
+
const version = "3.2.44";
|
|
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,9 +23014,7 @@ const appendPrevTextResult = (a, t, r) => {
|
|
|
23014
23014
|
}, o = !1;
|
|
23015
23015
|
}
|
|
23016
23016
|
return r;
|
|
23017
|
-
}
|
|
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;
|
|
23017
|
+
};
|
|
23020
23018
|
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 || {});
|
|
23021
23019
|
class DownListProperty {
|
|
23022
23020
|
//列表项目
|
|
@@ -28745,7 +28743,7 @@ class DrawTree {
|
|
|
28745
28743
|
const o = this.getDNodeByPath(t);
|
|
28746
28744
|
if (o instanceof DrawCombineNode)
|
|
28747
28745
|
r = o.node.getNodePath();
|
|
28748
|
-
else if (o.parent instanceof DrawCombineNode) {
|
|
28746
|
+
else if ((o == null ? void 0 : o.parent) instanceof DrawCombineNode) {
|
|
28749
28747
|
r = o.parent.node.getNodePath();
|
|
28750
28748
|
const n = o.parent.node.drawNodes.indexOf(o);
|
|
28751
28749
|
n >= 0 && n < o.parent.node.drawNodes.length && (r += "/" + n);
|
|
@@ -45197,7 +45195,7 @@ class StructureConvert {
|
|
|
45197
45195
|
for (let g = 0; g < f.length; g++) {
|
|
45198
45196
|
const y = f[g];
|
|
45199
45197
|
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()) :
|
|
45198
|
+
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);
|
|
45201
45199
|
}
|
|
45202
45200
|
if (r === "json")
|
|
45203
45201
|
return m;
|
|
@@ -64330,7 +64328,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64330
64328
|
(function(a) {
|
|
64331
64329
|
function t() {
|
|
64332
64330
|
return function() {
|
|
64333
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
64331
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-BG95wBgt.mjs");
|
|
64334
64332
|
}().catch(function(r) {
|
|
64335
64333
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64336
64334
|
}).then(function(r) {
|