hoeditor-web 3.2.96 → 3.2.97
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-BZwniuO8.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -15183,7 +15183,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15183
15183
|
}
|
|
15184
15184
|
}
|
|
15185
15185
|
}
|
|
15186
|
-
const version = "3.2.
|
|
15186
|
+
const version = "3.2.97";
|
|
15187
15187
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15188
15188
|
class SignNode extends BaseNode {
|
|
15189
15189
|
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) {
|
|
@@ -28794,19 +28794,26 @@ class DrawTree {
|
|
|
28794
28794
|
const g = r.option.getColorByLevel(20), v = new UserHistory(this._hoEditorFactoryID, HistoryEditType.hetModify).userCompare();
|
|
28795
28795
|
m.modifierIndex = v, m.color = g, u = r.docTree.styleCompare(m);
|
|
28796
28796
|
}
|
|
28797
|
-
if (r.docController.insertRadioAndCheckBox("update", d, c, u), t.node.
|
|
28798
|
-
|
|
28799
|
-
for (let
|
|
28800
|
-
|
|
28801
|
-
|
|
28802
|
-
|
|
28797
|
+
if (r.docController.insertRadioAndCheckBox("update", d, c, u), t.node.isMutualExclusion && t.node.groupHasOptions) {
|
|
28798
|
+
let m = !1;
|
|
28799
|
+
for (let g of r.docTree.radioAndCheckBoxsMap.values())
|
|
28800
|
+
g.associatedShowElement && g.groupName === l && l !== "" && (m = !0);
|
|
28801
|
+
if (m) {
|
|
28802
|
+
for (let g of r.docTree.radioAndCheckBoxsMap.values())
|
|
28803
|
+
if (g.associatedShowElement && g.groupName === l && l !== "") {
|
|
28804
|
+
const y = r.vueController.getNodeByDataID("main", g.associatedShowElement);
|
|
28805
|
+
y && y instanceof TextInputFieldNode && (y.customProperty.hidden = !0);
|
|
28806
|
+
}
|
|
28807
|
+
if (t.node.associatedShowElement) {
|
|
28808
|
+
const g = r.vueController.getNodeByDataID("main", t.node.associatedShowElement);
|
|
28809
|
+
if (g && g instanceof TextInputFieldNode) {
|
|
28810
|
+
const y = g.customProperty || {};
|
|
28811
|
+
y.hidden = !t.node.isSelected;
|
|
28812
|
+
}
|
|
28803
28813
|
}
|
|
28804
|
-
|
|
28805
|
-
|
|
28806
|
-
|
|
28807
|
-
y.hidden = !1, r.firstLoad || (r.drawTree.rebuildArea("main", !1), setTimeout(() => {
|
|
28808
|
-
const v = r.docTree.getNodeLastPath(g);
|
|
28809
|
-
r.drawTree.moveCaretToPath(v);
|
|
28814
|
+
r.firstLoad || (r.drawTree.rebuildArea("main", !1), setTimeout(() => {
|
|
28815
|
+
const g = r.docTree.getNodeLastPath(t.node);
|
|
28816
|
+
r.drawTree.moveCaretToPath(g);
|
|
28810
28817
|
}));
|
|
28811
28818
|
}
|
|
28812
28819
|
}
|
|
@@ -36722,7 +36729,7 @@ const columns$1 = [
|
|
|
36722
36729
|
let s = !1;
|
|
36723
36730
|
(o = this.poperSelectList) == null || o.forEach((l, c) => {
|
|
36724
36731
|
l.id = String(l.id), l.selected = !1, l.text = l.text.replace("\r", ""), l.text.includes("<元素>") ? l.showText = l.text.split("<元素>")[0] : l.text.includes("<搜索>") ? l.showText = l.text.split("<搜索>")[0] : l.text.includes("__") && l.text.length - l.text.replace(/_/g, "").length == 2 ? (l.showText = l.text.split("__")[0], l.text = l.text.split("__")[0]) : l.showText = l.text, l.input && (s = !0), l.title && (this.isShowTitle = !0), n.length > 0 && n.filter((d) => l.id == d).length === 1 && (l.selected = !0, this.isAllowMultiSelect && !this.insCheckSyncUpdateList && this.poperSelectList.length >= 10 ? this.selectedList[n.indexOf(l.id)] = l : this.isAllowMultiSelect && this.insCheckSyncUpdateList && (this.selectedList[n.indexOf(l.id)] = l), this.mutexType = String(l.type), this.selectedIds.push(l.id), this.mutexSelectedIds.push(l.id), this.selectedId = l.id);
|
|
36725
|
-
}), s && this.isAllowMultiSelect && (this.isShowTitle = !1), this.selectedList = this.selectedList.filter((l) => l), this.currentListNameText = t.name, this.poperSelectList && this.poperSelectList.length >=
|
|
36732
|
+
}), s && this.isAllowMultiSelect && (this.isShowTitle = !1), this.selectedList = this.selectedList.filter((l) => l), this.currentListNameText = t.name, this.poperSelectList && this.poperSelectList.length >= 10 && (this.isCanSearch = !0), this.currentList = Object.freeze([...this.poperSelectList]);
|
|
36726
36733
|
}
|
|
36727
36734
|
},
|
|
36728
36735
|
mounted() {
|
|
@@ -46229,6 +46236,69 @@ class StructureConvert {
|
|
|
46229
46236
|
l = l + JSON.stringify(o[c]);
|
|
46230
46237
|
return l;
|
|
46231
46238
|
}
|
|
46239
|
+
defalutConfig() {
|
|
46240
|
+
return deepCloneWithWhiteList({
|
|
46241
|
+
pageSettings: {
|
|
46242
|
+
drawLineUnderline: "false",
|
|
46243
|
+
lineUnderlineColor: "#000000",
|
|
46244
|
+
lineUnderlineStyle: "0",
|
|
46245
|
+
printDirection: "0",
|
|
46246
|
+
borderColor: "#000000",
|
|
46247
|
+
isPaintBorder: "false",
|
|
46248
|
+
paintRowLine: "0",
|
|
46249
|
+
pageSize: "A4",
|
|
46250
|
+
widthMm: "210",
|
|
46251
|
+
heightMm: "297",
|
|
46252
|
+
source: "",
|
|
46253
|
+
topMarginMm: "25",
|
|
46254
|
+
bottomMarginMm: "10",
|
|
46255
|
+
leftMarginMm: "15",
|
|
46256
|
+
rightMarginMm: "15",
|
|
46257
|
+
headerYMm: "3",
|
|
46258
|
+
footerYMm: "3",
|
|
46259
|
+
showFirstPageHead: "true",
|
|
46260
|
+
showFirstPageFoot: "true",
|
|
46261
|
+
pageNumber: "0",
|
|
46262
|
+
startPageNumber: "NaN",
|
|
46263
|
+
isHaveBgImage: "false",
|
|
46264
|
+
commentWidthMm: "0",
|
|
46265
|
+
fontFormat: i18nHelper("04-001-009-EMR.3.3.548", null, "宋体"),
|
|
46266
|
+
fontSize: "12",
|
|
46267
|
+
fontColor: "#000000",
|
|
46268
|
+
backColor: "transparent",
|
|
46269
|
+
paraAlign: "3",
|
|
46270
|
+
charSpace: "0",
|
|
46271
|
+
lineHeight: "1.75"
|
|
46272
|
+
},
|
|
46273
|
+
styles: {
|
|
46274
|
+
defaultFont: {
|
|
46275
|
+
size: "12",
|
|
46276
|
+
font: i18nHelper("04-001-009-EMR.3.3.548", null, "宋体"),
|
|
46277
|
+
color: "#000000",
|
|
46278
|
+
backColor: "transparent",
|
|
46279
|
+
bold: "false",
|
|
46280
|
+
italic: "false",
|
|
46281
|
+
underline: "false",
|
|
46282
|
+
strikeout: "false",
|
|
46283
|
+
script: "0",
|
|
46284
|
+
creatorIndex: "-1",
|
|
46285
|
+
deleterIndex: "-1",
|
|
46286
|
+
modifierIndex: "-1",
|
|
46287
|
+
commentID: "0"
|
|
46288
|
+
},
|
|
46289
|
+
defaultPara: {
|
|
46290
|
+
charSpace: "0",
|
|
46291
|
+
lineSpace: "1.75",
|
|
46292
|
+
leftMarginMm: "0",
|
|
46293
|
+
topMarginMm: "0",
|
|
46294
|
+
bottomMarginMm: "0",
|
|
46295
|
+
rightMarginMm: "0",
|
|
46296
|
+
align: "3",
|
|
46297
|
+
firstIndent: "false"
|
|
46298
|
+
}
|
|
46299
|
+
}
|
|
46300
|
+
});
|
|
46301
|
+
}
|
|
46232
46302
|
}
|
|
46233
46303
|
var ClipboardType = /* @__PURE__ */ ((a) => (a.ctText = "text/plain", a.ctHTML = "text/html", a.ctJSON = "application/json", a))(ClipboardType || {});
|
|
46234
46304
|
class NodeConvert {
|
|
@@ -49808,7 +49878,7 @@ class VueController {
|
|
|
49808
49878
|
const p = JSON.parse(c[0]);
|
|
49809
49879
|
p.size = p.size.toString(), p.creatorIndex = p.creatorIndex.toString(), p.deleterIndex = p.deleterIndex.toString(), p.bold = p.bold.toString(), p.italic = p.italic.toString(), p.script = p.script.toString(), p.strikeout = p.strikeout.toString(), p.underline = p.underline.toString(), c[0] = JSON.stringify(p);
|
|
49810
49880
|
const m = JSON.parse(d[0]);
|
|
49811
|
-
m.charSpace = m.charSpace.toString(), m.lineSpace = m.lineSpace.toString(), m.leftMarginMm = m.leftMarginMm.toString(), m.topMarginMm = m.topMarginMm.toString(), m.bottomMarginMm = m.bottomMarginMm.toString(), m.rightMarginMm = m.rightMarginMm.toString(), m.align = m.align.toString(), d[0] = JSON.stringify(m), f.styles.fontStyle == "" ? f.styles.fontStyle = [] : Array.isArray(f.styles.fontStyle) || (f.styles.fontStyle = [f.styles.fontStyle]), f.styles.paraStyle == "" ? f.styles.paraStyle = [] : Array.isArray(f.styles.paraStyle) || (f.styles.paraStyle = [f.styles.paraStyle]);
|
|
49881
|
+
m.charSpace = m.charSpace.toString(), m.lineSpace = m.lineSpace.toString(), m.leftMarginMm = m.leftMarginMm.toString(), m.topMarginMm = m.topMarginMm.toString(), m.bottomMarginMm = m.bottomMarginMm.toString(), m.rightMarginMm = m.rightMarginMm.toString(), m.align = m.align.toString(), d[0] = JSON.stringify(m), f.styles.fontStyle == "" || !f.styles.fontStyle ? f.styles.fontStyle = [] : Array.isArray(f.styles.fontStyle) || (f.styles.fontStyle = [f.styles.fontStyle]), f.styles.paraStyle == "" || !f.styles.paraStyle ? f.styles.paraStyle = [] : Array.isArray(f.styles.paraStyle) || (f.styles.paraStyle = [f.styles.paraStyle]);
|
|
49812
49882
|
for (let v = 0; v < f.styles.fontStyle.length; v++)
|
|
49813
49883
|
if (JSON.stringify(f.styles.fontStyle[v]) == '""')
|
|
49814
49884
|
c.push(JSON.stringify(p)), f.styles.fontStyle[v] = p;
|
|
@@ -64974,7 +65044,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64974
65044
|
(function(a) {
|
|
64975
65045
|
function t() {
|
|
64976
65046
|
return function() {
|
|
64977
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65047
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-B7LY8iQB.mjs");
|
|
64978
65048
|
}().catch(function(r) {
|
|
64979
65049
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64980
65050
|
}).then(function(r) {
|
|
@@ -75966,8 +76036,8 @@ const SelectDialog = __component__$_.exports, defaultBox = {
|
|
|
75966
76036
|
isEditText: !1,
|
|
75967
76037
|
groupHasOptions: !1,
|
|
75968
76038
|
isMutualExclusion: !1,
|
|
75969
|
-
associatedElement:
|
|
75970
|
-
associatedShowElement:
|
|
76039
|
+
associatedElement: "",
|
|
76040
|
+
associatedShowElement: ""
|
|
75971
76041
|
}, _sfc_main$Z = {
|
|
75972
76042
|
name: "RadioCheckBox",
|
|
75973
76043
|
data() {
|
|
@@ -76187,7 +76257,7 @@ var _sfc_render$Z = function a() {
|
|
|
76187
76257
|
}, expression: "record.associatedElement" } }, t._l(t.nodeList, function(s, l) {
|
|
76188
76258
|
return r("a-select-option", { key: s.name + "___" + s.dataId + "___" + l, attrs: { value: s.dataId } }, [r("div", { staticStyle: { display: "flex", "justify-content": "space-between", "font-size": "12px" } }, [r("span", [t._v(t._s(s.name))]), r("span", [t._v(t._s(s.dataId))])])]);
|
|
76189
76259
|
}), 1)];
|
|
76190
|
-
} }], null, !1, 2145354177) }), r("a-table-column", { key: "associatedShowElement", attrs: { title: "
|
|
76260
|
+
} }], null, !1, 2145354177) }), r("a-table-column", { key: "associatedShowElement", attrs: { title: "选中后显示元素", width: 260 }, scopedSlots: t._u([{ key: "default", fn: function(o, n) {
|
|
76191
76261
|
return [r("a-select", { staticStyle: { "text-align": "left", width: "100%" }, attrs: { showSearch: "", allowClear: "", placeholder: "请选择需要显示元素" }, model: { value: n.associatedShowElement, callback: function(s) {
|
|
76192
76262
|
t.$set(n, "associatedShowElement", s);
|
|
76193
76263
|
}, expression: "record.associatedShowElement" } }, t._l(t.nodeList, function(s, l) {
|