hoeditor-web 3.3.2-beta.9 → 3.3.3-beta.0
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-D7dNVUUV.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -13329,7 +13329,7 @@ class ParagraphNode extends BaseNode {
|
|
|
13329
13329
|
let r = 0;
|
|
13330
13330
|
const { firstIndent: o, leftMarginPixes: n, rightMarginPixes: s } = this.combineParagraph, [l, c] = this.getParagraphLeftWidth();
|
|
13331
13331
|
this._drawLines.forEach((d, u) => {
|
|
13332
|
-
u === 0 && (d.dWidth = c - n - s, d.dLeft = l, d.x = n + l), u === 0 && o && (d.dWidth -= 10, d.dLeft += 10, d.x += 10), d.dTop = this.dTop + r, r += d.dHeight;
|
|
13332
|
+
u === 0 && (d.dWidth = c - n - s, d.dLeft = l, d.x = n + l), u === 0 && o && (d.dWidth -= 10, d.dLeft += 10, d.x += 10), d.dTop = this.dTop + r, r += d.dHeight + this.combineParagraph.lineSpace;
|
|
13333
13333
|
}), this._dHeight = r;
|
|
13334
13334
|
}
|
|
13335
13335
|
range() {
|
|
@@ -13629,7 +13629,7 @@ class DrawDateTime extends DrawCombineNode {
|
|
|
13629
13629
|
}
|
|
13630
13630
|
}
|
|
13631
13631
|
class DateTimeNode extends ControlNode {
|
|
13632
|
-
//
|
|
13632
|
+
// 打印时是否隐藏
|
|
13633
13633
|
constructor(t, r, o, n, s, l, c) {
|
|
13634
13634
|
super(t, r, o, n);
|
|
13635
13635
|
b(this, "_isReadOnly", !1);
|
|
@@ -13640,6 +13640,8 @@ class DateTimeNode extends ControlNode {
|
|
|
13640
13640
|
//样式
|
|
13641
13641
|
b(this, "_canWrapLine", !1);
|
|
13642
13642
|
b(this, "_mId", "");
|
|
13643
|
+
// 元素内存id
|
|
13644
|
+
b(this, "_hideDuringPrint", !1);
|
|
13643
13645
|
this._styleIndex = l, this.remark = "", this._type = ControlType.ctDateTime, this.customProperty = new Object(), this.setValuesObject(s), this.dataId || (this.dataId = HOEditorFactorys.instance().getFactory(t).gernerateCode.generateID("DateTime")), this._labelText === "" && (this.labelText = this._name !== "" ? this.name : this._controlStyle), this._text === "" && (this._text = this._labelText !== "" && this._labelText !== void 0 && this._labelText != null ? this._labelText : " "), this.isTrace = c === void 0 ? !1 : c, this.node2DrawNodeRange(0, 0);
|
|
13644
13646
|
}
|
|
13645
13647
|
setValuesObject(valuesObject) {
|
|
@@ -13665,6 +13667,12 @@ class DateTimeNode extends ControlNode {
|
|
|
13665
13667
|
set isReadOnly(t) {
|
|
13666
13668
|
this._isReadOnly !== t && (this._isReadOnly = t);
|
|
13667
13669
|
}
|
|
13670
|
+
get hideDuringPrint() {
|
|
13671
|
+
return this._hideDuringPrint;
|
|
13672
|
+
}
|
|
13673
|
+
set hideDuringPrint(t) {
|
|
13674
|
+
this._hideDuringPrint !== t && (this._hideDuringPrint = t);
|
|
13675
|
+
}
|
|
13668
13676
|
get canWrapLine() {
|
|
13669
13677
|
return this._canWrapLine;
|
|
13670
13678
|
}
|
|
@@ -13748,7 +13756,7 @@ class DateTimeNode extends ControlNode {
|
|
|
13748
13756
|
else
|
|
13749
13757
|
for (let f = u.children.length - 1; f >= 0; f--)
|
|
13750
13758
|
u.children[f].name === "backColor" && u.children.splice(f, 1);
|
|
13751
|
-
return o.addChild(u), o.drawItems.push(u), o.fitLines(), o.updateLineStyle(), o.paragraphNode.getLastDrawline();
|
|
13759
|
+
return this.hideDuringPrint && (c.drawTree.paintStatus == PaintState.psPreview || c.drawTree.paintStatus == PaintState.psPrint) && (u.alpha = 0), o.addChild(u), o.drawItems.push(u), o.fitLines(), o.updateLineStyle(), o.paragraphNode.getLastDrawline();
|
|
13752
13760
|
}
|
|
13753
13761
|
hasChildPath() {
|
|
13754
13762
|
return !1;
|
|
@@ -13778,7 +13786,8 @@ class DateTimeNode extends ControlNode {
|
|
|
13778
13786
|
customProperty: this.customProperty,
|
|
13779
13787
|
notReplaceElement: this.notReplaceElement,
|
|
13780
13788
|
notSelectTime: this.notSelectTime,
|
|
13781
|
-
remark: this.remark
|
|
13789
|
+
remark: this.remark,
|
|
13790
|
+
hideDuringPrint: this.hideDuringPrint
|
|
13782
13791
|
};
|
|
13783
13792
|
let s = "";
|
|
13784
13793
|
this.parentNode && this.parentNode instanceof TextInputFieldNode && (s = this.parentNode.id);
|
|
@@ -13808,7 +13817,7 @@ class DateTimeNode extends ControlNode {
|
|
|
13808
13817
|
//notSelectTime: this.notSelectTime,
|
|
13809
13818
|
//remark: this.remark,
|
|
13810
13819
|
};
|
|
13811
|
-
return this.isSynchro && (l.isSynchro = this.isSynchro), this.tipText && (l.tipText = this.tipText), this.isAllowDelete && (l.isAllowDelete = this.isAllowDelete), this.isReadOnly && (l.isReadOnly = this.isReadOnly), this.notReplaceElement && (l.notReplaceElement = this.notReplaceElement), this.notSelectTime && (l.notSelectTime = this.notSelectTime), this.remark && (l.remark = this.remark), this.canWrapLine && (l.canWrapLine = this.canWrapLine), {
|
|
13820
|
+
return this.isSynchro && (l.isSynchro = this.isSynchro), this.tipText && (l.tipText = this.tipText), this.isAllowDelete && (l.isAllowDelete = this.isAllowDelete), this.isReadOnly && (l.isReadOnly = this.isReadOnly), this.notReplaceElement && (l.notReplaceElement = this.notReplaceElement), this.notSelectTime && (l.notSelectTime = this.notSelectTime), this.remark && (l.remark = this.remark), this.canWrapLine && (l.canWrapLine = this.canWrapLine), this.hideDuringPrint && (l.hideDuringPrint = this.hideDuringPrint), {
|
|
13812
13821
|
DateTimeNode: l
|
|
13813
13822
|
};
|
|
13814
13823
|
}
|
|
@@ -13817,7 +13826,7 @@ class DateTimeNode extends ControlNode {
|
|
|
13817
13826
|
const l = HOEditorFactorys.instance().getFactory(t);
|
|
13818
13827
|
l.vueController.getNodeByDataID("all", r.dataId) && (r.dataId = l.gernerateCode.generateID("DateTime"));
|
|
13819
13828
|
}
|
|
13820
|
-
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) {
|
|
13829
|
+
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.hideDuringPrint = r.hideDuringPrint ? r.hideDuringPrint : !1, r.text = r.text || "", r.controlStyle !== "yyyy-MM-dd HH:mm:ss" && r.controlStyle !== "" && r.text.replace(" ", "").length > 0 && r.text !== r.labelText) {
|
|
13821
13830
|
const l = dateFormat(r.text.toString(), r.controlStyle);
|
|
13822
13831
|
r.text = l;
|
|
13823
13832
|
}
|
|
@@ -15251,7 +15260,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15251
15260
|
}
|
|
15252
15261
|
}
|
|
15253
15262
|
}
|
|
15254
|
-
const version = "3.3.
|
|
15263
|
+
const version = "3.3.3-beta.0";
|
|
15255
15264
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15256
15265
|
class SignNode extends BaseNode {
|
|
15257
15266
|
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) {
|
|
@@ -38219,7 +38228,7 @@ class DrawImageNode extends DrawCombineNode {
|
|
|
38219
38228
|
const r = this;
|
|
38220
38229
|
this._imageManager.addImageQueue(this, () => new Promise((o) => {
|
|
38221
38230
|
const n = new Image();
|
|
38222
|
-
process.env.NODE_ENV !== "production" && !this.imagePath.startsWith("http") ? n.src = "http://192.168.1.211:8088" + this.imagePath : n.src = this.imagePath, this._bitMap = new createjs$1.Bitmap(n);
|
|
38231
|
+
process.env.NODE_ENV !== "production" && !this.imagePath.startsWith("http") && !this.imagePath.startsWith("data:image") ? n.src = "http://192.168.1.211:8088" + this.imagePath : n.src = this.imagePath, this._bitMap = new createjs$1.Bitmap(n);
|
|
38223
38232
|
const s = HOEditorFactorys.instance().getFactory(r.node.hoEditorFactoryID);
|
|
38224
38233
|
this._bitMap.y = this._imageY, this._bitMap.x = 0, this._bitMap.name = this.node.id;
|
|
38225
38234
|
const l = new createjs$1.Shape();
|
|
@@ -50251,7 +50260,9 @@ class VueController {
|
|
|
50251
50260
|
"",
|
|
50252
50261
|
0,
|
|
50253
50262
|
0,
|
|
50254
|
-
{
|
|
50263
|
+
{
|
|
50264
|
+
elementDataId: t.customProperty.elementDataId || ""
|
|
50265
|
+
},
|
|
50255
50266
|
!0,
|
|
50256
50267
|
t.styleIndex,
|
|
50257
50268
|
t.connectMode,
|
|
@@ -65239,7 +65250,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65239
65250
|
(function(a) {
|
|
65240
65251
|
function t() {
|
|
65241
65252
|
return function() {
|
|
65242
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65253
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-S9e5EiYE.mjs");
|
|
65243
65254
|
}().catch(function(r) {
|
|
65244
65255
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65245
65256
|
}).then(function(r) {
|
|
@@ -73669,7 +73680,6 @@ const HoFooter = __component__$17.exports, _sfc_main$16 = {
|
|
|
73669
73680
|
this.id = t.id, this.qrcode = t.qrcode, this.textContent = t.textContent, this.correctLevel = t.correctLevel, this.isFillBack = t.isFillBack, this.name = t.name, this.innerIdentifier = t.innerIdentifier, this.size = t.width, setTimeout(() => this.codeChange(), 100);
|
|
73670
73681
|
} else
|
|
73671
73682
|
this.id = this.vueController.generateID("QC");
|
|
73672
|
-
this.innerIdentifier.includes("qrcode") && (this.isFillBack = !0);
|
|
73673
73683
|
},
|
|
73674
73684
|
methods: {
|
|
73675
73685
|
getQrcodeNode(a) {
|
|
@@ -73716,7 +73726,8 @@ const HoFooter = __component__$17.exports, _sfc_main$16 = {
|
|
|
73716
73726
|
this.size,
|
|
73717
73727
|
this.size,
|
|
73718
73728
|
this.name,
|
|
73719
|
-
this.innerIdentifier
|
|
73729
|
+
this.innerIdentifier,
|
|
73730
|
+
this.isFillBack
|
|
73720
73731
|
) : this.vueController.updateQrcode(
|
|
73721
73732
|
this.id,
|
|
73722
73733
|
this.textContent,
|
|
@@ -73732,7 +73743,8 @@ const HoFooter = __component__$17.exports, _sfc_main$16 = {
|
|
|
73732
73743
|
this.size,
|
|
73733
73744
|
this.size,
|
|
73734
73745
|
this.name,
|
|
73735
|
-
this.innerIdentifier
|
|
73746
|
+
this.innerIdentifier,
|
|
73747
|
+
this.isFillBack
|
|
73736
73748
|
), this.handleClose();
|
|
73737
73749
|
},
|
|
73738
73750
|
// openDataSourceModal() {
|
|
@@ -75684,6 +75696,7 @@ const TextBorderDialog = __component__$10.exports, _sfc_main$$ = defineComponent
|
|
|
75684
75696
|
title: i18nHelper("04-001-009-EMR.3.3.117", null, "日期时间"),
|
|
75685
75697
|
tipText: "",
|
|
75686
75698
|
isAllowDelete: !1,
|
|
75699
|
+
hideDuringPrint: !1,
|
|
75687
75700
|
notReplaceElement: !1,
|
|
75688
75701
|
notSelectTime: !1,
|
|
75689
75702
|
canWrapLine: !1,
|
|
@@ -75706,6 +75719,7 @@ const TextBorderDialog = __component__$10.exports, _sfc_main$$ = defineComponent
|
|
|
75706
75719
|
"notSelectTime",
|
|
75707
75720
|
"canWrapLine",
|
|
75708
75721
|
"isAllowDelete",
|
|
75722
|
+
"hideDuringPrint",
|
|
75709
75723
|
"innerIdentifier",
|
|
75710
75724
|
"identifierFormat",
|
|
75711
75725
|
"notReplaceElement",
|
|
@@ -75731,7 +75745,7 @@ const TextBorderDialog = __component__$10.exports, _sfc_main$$ = defineComponent
|
|
|
75731
75745
|
created() {
|
|
75732
75746
|
if (this.controlStatus === "update") {
|
|
75733
75747
|
const a = this.getDateNode();
|
|
75734
|
-
this.id = a.id, this.name = a.name, this.text = a.text && a.text !== a.controlStyle && a.text !== a.name ? a.text : null, this.title = a.title, this.tipText = a.tipText, this.isAllowDelete = a.isAllowDelete, this.notReplaceElement = a.notReplaceElement == "undefined" || a.notReplaceElement == null ? !1 : a.notReplaceElement, this.notSelectTime = a.notSelectTime == "undefined" || a.notSelectTime == null ? !1 : a.notSelectTime, this.canWrapLine = a.canWrapLine == "undefined" || a.canWrapLine == null ? !1 : a.canWrapLine, this.isReadOnly = a.isReadOnly, this.controlStyle = a.controlStyle, this.innerIdentifier = a.innerIdentifier, this.dataMetaIdentifier = a.dataMetaIdentifier, this.identifierFormat = a.identifierFormat, this.dataId = a.dataId, this.readType = a.readType === 1, isObject(a.customProperty) ? this.customPropertys = a.customProperty : this.customPropertys = new Object();
|
|
75748
|
+
this.id = a.id, this.name = a.name, this.text = a.text && a.text !== a.controlStyle && a.text !== a.name ? a.text : null, this.title = a.title, this.tipText = a.tipText, this.isAllowDelete = a.isAllowDelete, this.hideDuringPrint = a.hideDuringPrint, this.notReplaceElement = a.notReplaceElement == "undefined" || a.notReplaceElement == null ? !1 : a.notReplaceElement, this.notSelectTime = a.notSelectTime == "undefined" || a.notSelectTime == null ? !1 : a.notSelectTime, this.canWrapLine = a.canWrapLine == "undefined" || a.canWrapLine == null ? !1 : a.canWrapLine, this.isReadOnly = a.isReadOnly, this.controlStyle = a.controlStyle, this.innerIdentifier = a.innerIdentifier, this.dataMetaIdentifier = a.dataMetaIdentifier, this.identifierFormat = a.identifierFormat, this.dataId = a.dataId, this.readType = a.readType === 1, isObject(a.customProperty) ? this.customPropertys = a.customProperty : this.customPropertys = new Object();
|
|
75735
75749
|
let t = new Object();
|
|
75736
75750
|
Object.keys(this.customPropertys).forEach((r) => {
|
|
75737
75751
|
t[r] = this.customPropertys[r];
|
|
@@ -75780,6 +75794,7 @@ const TextBorderDialog = __component__$10.exports, _sfc_main$$ = defineComponent
|
|
|
75780
75794
|
title: i18nHelper("04-001-009-EMR.3.3.117", null, "日期时间"),
|
|
75781
75795
|
tipText: this.tipText,
|
|
75782
75796
|
isAllowDelete: this.isAllowDelete,
|
|
75797
|
+
hideDuringPrint: this.hideDuringPrint,
|
|
75783
75798
|
isReadOnly: this.isReadOnly,
|
|
75784
75799
|
controlStyle: this.controlStyle,
|
|
75785
75800
|
innerIdentifier: this.innerIdentifier,
|
|
@@ -75827,7 +75842,9 @@ var _sfc_render$$ = function a() {
|
|
|
75827
75842
|
t.isAllowDelete = o;
|
|
75828
75843
|
}, expression: "isAllowDelete" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.185", null, "允许删除"))]), r("a-checkbox", { attrs: { size: "small" }, model: { value: t.readType, callback: function(o) {
|
|
75829
75844
|
t.readType = o;
|
|
75830
|
-
}, expression: "readType" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.222", null, "自动回填"))]), r("a-checkbox", { attrs: { size: "small" }, model: { value: t.
|
|
75845
|
+
}, expression: "readType" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.222", null, "自动回填"))]), r("a-checkbox", { attrs: { size: "small" }, model: { value: t.hideDuringPrint, callback: function(o) {
|
|
75846
|
+
t.hideDuringPrint = o;
|
|
75847
|
+
}, expression: "hideDuringPrint" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.164", null, "打印时隐藏"))]), r("a-checkbox", { attrs: { size: "small" }, model: { value: t.notReplaceElement, callback: function(o) {
|
|
75831
75848
|
t.notReplaceElement = o;
|
|
75832
75849
|
}, expression: "notReplaceElement" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.163", null, "不启用元素引用"))]), r("a-checkbox", { attrs: { size: "small" }, model: { value: t.notSelectTime, callback: function(o) {
|
|
75833
75850
|
t.notSelectTime = o;
|
|
@@ -83753,7 +83770,11 @@ const ControlModal = __component__$u.exports, _sfc_main$t = {
|
|
|
83753
83770
|
},
|
|
83754
83771
|
mounted() {
|
|
83755
83772
|
this.findModal = this.$refs.findModal, this.$nextTick(() => {
|
|
83756
|
-
|
|
83773
|
+
if (this.$refs.findInput) {
|
|
83774
|
+
this.$refs.findInput.focus();
|
|
83775
|
+
const a = HOEditorFactorys.instance().getFactory(this.hoEditorFactoryId);
|
|
83776
|
+
this.findContent = a.vueController.getSelectText() || "", this.toFind();
|
|
83777
|
+
}
|
|
83757
83778
|
});
|
|
83758
83779
|
},
|
|
83759
83780
|
methods: {
|