hoeditor-web 3.3.2-beta.7 → 3.3.2-beta.9
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-rnf1LDKB.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -9598,6 +9598,7 @@ class RadioAndCheckBoxInstance {
|
|
|
9598
9598
|
// 选项互斥加类型区分组 参考下拉列表和下拉框的选项互斥
|
|
9599
9599
|
constructor() {
|
|
9600
9600
|
b(this, "id");
|
|
9601
|
+
b(this, "mId");
|
|
9601
9602
|
b(this, "dataId");
|
|
9602
9603
|
b(this, "type");
|
|
9603
9604
|
//private name!: string;
|
|
@@ -9648,6 +9649,12 @@ class RadioAndCheckBoxInstance {
|
|
|
9648
9649
|
set Id(t) {
|
|
9649
9650
|
this.id !== t && (this.id = t);
|
|
9650
9651
|
}
|
|
9652
|
+
get MId() {
|
|
9653
|
+
return this.mId;
|
|
9654
|
+
}
|
|
9655
|
+
set MId(t) {
|
|
9656
|
+
this.mId !== t && (this.mId = t);
|
|
9657
|
+
}
|
|
9651
9658
|
get DataId() {
|
|
9652
9659
|
return this.dataId;
|
|
9653
9660
|
}
|
|
@@ -9809,7 +9816,7 @@ class RadioAndCheckBoxInstance {
|
|
|
9809
9816
|
this.isTransToText !== t && (this.isTransToText = t);
|
|
9810
9817
|
}
|
|
9811
9818
|
static makeDefaultValue(t) {
|
|
9812
|
-
return t.id = "", t.dataId = "", t.type = ControlType.ctRadioAndCheckBox, t.text = "", t.controlStyle = "CheckBox", t.groupName = "", t.groupType = "0", t.isSelected = !1, t.isAllowDelete = !0, t.boxAlign = !0, t.numericValue = "", t.AdditionalData = "", t.tipText = "", t.readType = -1, t.isEditText = !1, t.appendText = "", t.isTransToText = !1, t.groupHasOptions = !1, t.associatedElement = "", t.associatedShowElement = "", t.associatedId = "", t.isMutualExclusion = !1, t.innerIdentifier = "", t.customProperty = new Object(), t;
|
|
9819
|
+
return t.id = "", t.dataId = "", t.type = ControlType.ctRadioAndCheckBox, t.text = "", t.controlStyle = "CheckBox", t.groupName = "", t.groupType = "0", t.isSelected = !1, t.isAllowDelete = !0, t.boxAlign = !0, t.numericValue = "", t.AdditionalData = "", t.tipText = "", t.readType = -1, t.isEditText = !1, t.appendText = "", t.isTransToText = !1, t.groupHasOptions = !1, t.associatedElement = "", t.associatedShowElement = "", t.associatedId = "", t.isMutualExclusion = !1, t.innerIdentifier = "", t.mId = "", t.customProperty = new Object(), t;
|
|
9813
9820
|
}
|
|
9814
9821
|
}
|
|
9815
9822
|
class RadioAndCheckBoxNode extends ControlNode {
|
|
@@ -9997,7 +10004,7 @@ class RadioAndCheckBoxNode extends ControlNode {
|
|
|
9997
10004
|
}
|
|
9998
10005
|
get radioAndCheckBoxInstance() {
|
|
9999
10006
|
const t = new RadioAndCheckBoxInstance();
|
|
10000
|
-
return RadioAndCheckBoxInstance.makeDefaultValue(t), t.DataId = this.dataId !== void 0 ? this.dataId : t.DataId, t.ControlStyle = this.controlStyle !== void 0 ? this.controlStyle : t.ControlStyle, t.GroupName = this.groupName !== void 0 ? this.groupName : t.GroupName, t.groupType = this.groupType !== void 0 ? this.groupType : t.groupType, t.AdditionalData = this.additionalData !== void 0 ? this.additionalData : t.AdditionalData, t.TipText = this.tipText !== void 0 ? this.tipText : t.TipText, t.BoxAlign = this.boxAlign !== void 0 ? this.boxAlign : t.BoxAlign, t.IsAllowDelete = this.isAllowDelete !== void 0 ? this.isAllowDelete : t.IsAllowDelete, t.IsSelected = this.isSelected !== void 0 ? this.isSelected : t.IsSelected, t.NumericValue = this.numericValue !== void 0 ? this.numericValue : t.NumericValue, t.Id = this.id !== void 0 ? this.id : t.Id, t.Type = this.type !== void 0 ? this.type : t.Type, t.Text = this.text !== void 0 ? this.text : t.Text, t.innerIdentifier = this.innerIdentifier, t.customProperty = this.customProperty, t.ReadType = this.readType !== void 0 ? this.readType : t.ReadType, t.IsEditText = this.isEditText !== void 0 ? this.isEditText : t.IsEditText, t.AppendText = this.appendText !== void 0 ? this.appendText : t.AppendText, t.IsTransToText = this.isTransToText != null ? this.isTransToText : t.IsTransToText, t.GroupHasOptions = this.groupHasOptions != null ? this.groupHasOptions : t.GroupHasOptions, t.AssociatedElement = this.associatedElement != null ? this.associatedElement : t.AssociatedElement, t.AssociatedId = this.associatedId != null ? this.associatedId : t.AssociatedId, t.IsMutualExclusion = this.isMutualExclusion != null ? this.isMutualExclusion : t.IsMutualExclusion, t.AssociatedShowElement = this.associatedShowElement != null ? this.associatedShowElement : t.AssociatedShowElement, t;
|
|
10007
|
+
return RadioAndCheckBoxInstance.makeDefaultValue(t), t.DataId = this.dataId !== void 0 ? this.dataId : t.DataId, t.ControlStyle = this.controlStyle !== void 0 ? this.controlStyle : t.ControlStyle, t.GroupName = this.groupName !== void 0 ? this.groupName : t.GroupName, t.groupType = this.groupType !== void 0 ? this.groupType : t.groupType, t.AdditionalData = this.additionalData !== void 0 ? this.additionalData : t.AdditionalData, t.TipText = this.tipText !== void 0 ? this.tipText : t.TipText, t.BoxAlign = this.boxAlign !== void 0 ? this.boxAlign : t.BoxAlign, t.IsAllowDelete = this.isAllowDelete !== void 0 ? this.isAllowDelete : t.IsAllowDelete, t.IsSelected = this.isSelected !== void 0 ? this.isSelected : t.IsSelected, t.NumericValue = this.numericValue !== void 0 ? this.numericValue : t.NumericValue, t.Id = this.id !== void 0 ? this.id : t.Id, t.MId = this.mId !== void 0 ? this.mId : t.MId, t.Type = this.type !== void 0 ? this.type : t.Type, t.Text = this.text !== void 0 ? this.text : t.Text, t.innerIdentifier = this.innerIdentifier, t.customProperty = this.customProperty, t.ReadType = this.readType !== void 0 ? this.readType : t.ReadType, t.IsEditText = this.isEditText !== void 0 ? this.isEditText : t.IsEditText, t.AppendText = this.appendText !== void 0 ? this.appendText : t.AppendText, t.IsTransToText = this.isTransToText != null ? this.isTransToText : t.IsTransToText, t.GroupHasOptions = this.groupHasOptions != null ? this.groupHasOptions : t.GroupHasOptions, t.AssociatedElement = this.associatedElement != null ? this.associatedElement : t.AssociatedElement, t.AssociatedId = this.associatedId != null ? this.associatedId : t.AssociatedId, t.IsMutualExclusion = this.isMutualExclusion != null ? this.isMutualExclusion : t.IsMutualExclusion, t.AssociatedShowElement = this.associatedShowElement != null ? this.associatedShowElement : t.AssociatedShowElement, t;
|
|
10001
10008
|
}
|
|
10002
10009
|
/**
|
|
10003
10010
|
*
|
|
@@ -15244,7 +15251,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15244
15251
|
}
|
|
15245
15252
|
}
|
|
15246
15253
|
}
|
|
15247
|
-
const version = "3.3.2-beta.
|
|
15254
|
+
const version = "3.3.2-beta.9";
|
|
15248
15255
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15249
15256
|
class SignNode extends BaseNode {
|
|
15250
15257
|
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) {
|
|
@@ -27570,7 +27577,17 @@ class Print {
|
|
|
27570
27577
|
static openDataUriInWindow(t, r, o, n, s, l) {
|
|
27571
27578
|
var d, u;
|
|
27572
27579
|
if (window.emrPrintHandler) {
|
|
27573
|
-
|
|
27580
|
+
n ? (t.autoPrint(), window.emrPrintHandler({
|
|
27581
|
+
code: 200,
|
|
27582
|
+
data: {
|
|
27583
|
+
printSilently: n,
|
|
27584
|
+
// showsetup: true, // 是否显示打印设置
|
|
27585
|
+
orientation: s == "l" ? "2" : "1",
|
|
27586
|
+
// 当前判断是字母l
|
|
27587
|
+
paperSize: l == null ? void 0 : l.toUpperCase(),
|
|
27588
|
+
base64: t.output("datauristring").replace(/^data:application\/pdf;filename=generated.pdf;base64,/, "")
|
|
27589
|
+
}
|
|
27590
|
+
})) : window.emrPrintHandler({ code: 200, data: t.output("bloburl") });
|
|
27574
27591
|
return;
|
|
27575
27592
|
}
|
|
27576
27593
|
if (navigator && navigator.userAgent.toLowerCase().indexOf("electron") !== -1) {
|
|
@@ -65222,7 +65239,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65222
65239
|
(function(a) {
|
|
65223
65240
|
function t() {
|
|
65224
65241
|
return function() {
|
|
65225
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65242
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-B9qXEGVX.mjs");
|
|
65226
65243
|
}().catch(function(r) {
|
|
65227
65244
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65228
65245
|
}).then(function(r) {
|