hoeditor-web 3.3.5-beta.5 → 3.3.5-beta.6

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-BUL0Ny-T.mjs";
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-BDiUSpJa.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -15304,7 +15304,7 @@ class DrawSignNode extends DrawCombineNode {
15304
15304
  }
15305
15305
  }
15306
15306
  }
15307
- const version = "3.3.5-beta.5";
15307
+ const version = "3.3.5-beta.6";
15308
15308
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
15309
15309
  class SignNode extends BaseNode {
15310
15310
  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) {
@@ -65272,7 +65272,7 @@ WebPDecoder.prototype.getData = function() {
65272
65272
  (function(a) {
65273
65273
  function t() {
65274
65274
  return function() {
65275
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CqYFJNL9.mjs");
65275
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DKTycBch.mjs");
65276
65276
  }().catch(function(r) {
65277
65277
  return Promise.reject(new Error("Could not load canvg: " + r));
65278
65278
  }).then(function(r) {
@@ -75914,6 +75914,7 @@ const DateDialog = __component__$$.exports, _sfc_main$_ = {
75914
75914
  ]
75915
75915
  };
75916
75916
  },
75917
+ inject: ["getCustomProperty"],
75917
75918
  props: {
75918
75919
  hoEditorFactoryId: {
75919
75920
  default: ""
@@ -76058,26 +76059,27 @@ const DateDialog = __component__$$.exports, _sfc_main$_ = {
76058
76059
  }), a;
76059
76060
  },
76060
76061
  sure() {
76062
+ const a = this.getCustomProperty();
76061
76063
  if (this.name === "") {
76062
76064
  this.$message.error(i18nHelper("04-001-009-EMR.3.3.499", null, "元素名称不能为空"));
76063
76065
  return;
76064
76066
  }
76065
76067
  if (this.errorArr.length !== 0)
76066
76068
  return !1;
76067
- const a = this.downListContent.filter((s) => {
76068
- if (s.text || s.value)
76069
- return s;
76070
- }), t = [];
76071
- let r = [], o = [];
76072
- this.downListContent.forEach((s, l) => {
76073
- s.default && (t.push(s.text), r.push(s.id), String(s.value) && o.push(s.value));
76074
- }), this.text = t.join(","), this.text === "" && (this.name ? this.text = this.name : this.text = "请选择");
76075
- const n = {
76069
+ const t = this.downListContent.filter((l) => {
76070
+ if (l.text || l.value)
76071
+ return l;
76072
+ }), r = [];
76073
+ let o = [], n = [];
76074
+ this.downListContent.forEach((l, c) => {
76075
+ l.default && (r.push(l.text), o.push(l.id), String(l.value) && n.push(l.value));
76076
+ }), this.text = r.join(","), this.text === "" && (this.name ? this.text = this.name : this.text = "请选择");
76077
+ const s = {
76076
76078
  id: this.id,
76077
76079
  name: this.name,
76078
76080
  text: this.text,
76079
- keyValue: r.join(","),
76080
- value: o.join(","),
76081
+ keyValue: o.join(","),
76082
+ value: n.join(","),
76081
76083
  title: "下拉选择框",
76082
76084
  tipText: this.tipText,
76083
76085
  isAllowDelete: this.isAllowDelete,
@@ -76091,15 +76093,15 @@ const DateDialog = __component__$$.exports, _sfc_main$_ = {
76091
76093
  usePrefix: this.usePrefix,
76092
76094
  selectPrefix: this.selectPrefix,
76093
76095
  unSelectPrefix: this.unSelectPrefix,
76094
- customProperty: this.customProperty
76096
+ customProperty: { ...a }
76095
76097
  };
76096
76098
  if (this.controlStatus === "add")
76097
- this.vueController.insertDownList("add", n, a);
76099
+ this.vueController.insertDownList("add", s, t);
76098
76100
  else if (this.controlStatus === "update") {
76099
76101
  if (this.clearWatchProps(), this.toText) {
76100
- const s = new DownListProperty();
76101
- s.allowMultiSelected = this.allowMultiSelect, s.splitCharacter = ",", s.isMultiLinesDisplay = this.false, s.mutexSelect = this.mutexSelect, s.usePrefix = this.usePrefix, s.selectPrefix = this.selectPrefix, s.unSelectPrefix = this.unSelectPrefix, s.listItems = JSON.stringify(a);
76102
- const l = {
76102
+ const l = new DownListProperty();
76103
+ l.allowMultiSelected = this.allowMultiSelect, l.splitCharacter = ",", l.isMultiLinesDisplay = this.false, l.mutexSelect = this.mutexSelect, l.usePrefix = this.usePrefix, l.selectPrefix = this.selectPrefix, l.unSelectPrefix = this.unSelectPrefix, l.listItems = JSON.stringify(t);
76104
+ const c = {
76103
76105
  inputFieldType: 1,
76104
76106
  id: this.id,
76105
76107
  labelText: this.name,
@@ -76113,8 +76115,8 @@ const DateDialog = __component__$$.exports, _sfc_main$_ = {
76113
76115
  canModifyContent: !0,
76114
76116
  isAllowDelete: this.isAllowDelete,
76115
76117
  enableGlobalColor: !1,
76116
- downListProperty: s,
76117
- customProperty: this.customProperty,
76118
+ downListProperty: l,
76119
+ customProperty: { ...a },
76118
76120
  alignWithBlocked: !1,
76119
76121
  innerIdentifier: this.innerIdentifier,
76120
76122
  //内部标识符
@@ -76124,8 +76126,8 @@ const DateDialog = __component__$$.exports, _sfc_main$_ = {
76124
76126
  //标识格式
76125
76127
  readType: this.readType,
76126
76128
  readTypeBool: this.readType ? 1 : 0,
76127
- keyValue: r.join(","),
76128
- value: o.join(","),
76129
+ keyValue: o.join(","),
76130
+ value: n.join(","),
76129
76131
  insCheckSyncUpdateList: !1,
76130
76132
  hideDuringPrint: !1,
76131
76133
  notReplaceElement: !1,
@@ -76133,15 +76135,15 @@ const DateDialog = __component__$$.exports, _sfc_main$_ = {
76133
76135
  // 元素包含关键字
76134
76136
  valueArea: JSON.stringify([])
76135
76137
  // 元素值域范围
76136
- }, c = this.getSelectNode();
76137
- if (c) {
76138
- this.vueController.deleteNode(c), this.$nextTick(() => {
76139
- this.vueController.insertTextInputField("add", l), this.$nextTick(() => this.handleClose());
76138
+ }, d = this.getSelectNode();
76139
+ if (d) {
76140
+ this.vueController.deleteNode(d), this.$nextTick(() => {
76141
+ this.vueController.insertTextInputField("add", c), this.$nextTick(() => this.handleClose());
76140
76142
  });
76141
76143
  return;
76142
76144
  }
76143
76145
  }
76144
- this.modifyProps.value = n.value, this.modifyProps.keyValue = n.keyValue, this.modifyProps.customProperty = this.customProperty, this.modifyProps.downLists = { item: a }, this.vueController.updateDownList(n, a, { ...this.modifyProps });
76146
+ this.modifyProps.value = s.value, this.modifyProps.keyValue = s.keyValue, this.modifyProps.customProperty = { ...a }, this.modifyProps.downLists = { item: t }, this.vueController.updateDownList(s, t, { ...this.modifyProps });
76145
76147
  }
76146
76148
  this.$nextTick(() => this.handleClose());
76147
76149
  },
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-BUL0Ny-T.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-BDiUSpJa.mjs";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hoeditor-web",
3
- "version": "3.3.5-beta.5",
3
+ "version": "3.3.5-beta.6",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",