hoeditor-web 3.2.40 → 3.2.41

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-DWjyZZ0B.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-DCQatQ9K.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -13543,7 +13543,7 @@ class DateTimeNode extends ControlNode {
13543
13543
  const l = HOEditorFactorys.instance().getFactory(t);
13544
13544
  l.vueController.getNodeByDataID("all", r.dataId) && (r.dataId = l.gernerateCode.generateID("DateTime"));
13545
13545
  }
13546
- 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.controlStyle !== "yyyy-MM-dd HH:mm:ss" && r.controlStyle !== "" && r.text.replace(" ", "").length > 0 && r.text !== r.labelText) {
13546
+ 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) {
13547
13547
  const l = dateFormat(r.text.toString(), r.controlStyle);
13548
13548
  r.text = l;
13549
13549
  }
@@ -14904,7 +14904,7 @@ class DrawSignNode extends DrawCombineNode {
14904
14904
  }
14905
14905
  }
14906
14906
  }
14907
- const version = "3.2.40";
14907
+ const version = "3.2.41";
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) {
@@ -14962,7 +14962,7 @@ class SignNode extends BaseNode {
14962
14962
  b(this, "isTemp", !1);
14963
14963
  b(this, "innerIdentifier", "");
14964
14964
  const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
14965
- this.number = number, this._type = type, this._signor = signor, this._signTime = signTime, this.imgSrc = imgSrc, this._attribute = attribute === void 0 ? 0 : attribute, this._connectChar = connectChar === void 0 ? ":" : connectChar, dataId ? this.dataId = dataId : this.dataId = HOEditorFactorys.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign"), fingerPrintSrc && (this._fingerPrintSrc = fingerPrintSrc), this._fingerPosition = fingerPosition || 0, this._name = name, this._imgWidth = imgWidth, this._imgHeight = imgHeight, this._isTemplate = isTemplate, this.isTemp = isTemp || isTemplate, this._signType = signType, this._signFormat = signFormat, this._signTimeFormat = signTimeFormat, styleIndex ? this._styleIndex = styleIndex : this._styleIndex = hoEditorFactory.docTree.curStyleIndex, this._connectMode = connectMode, signType === 1 && type !== 1 && (this._isFront = isFront, this._allowEditSignTime = allowEditSignTime), this._otherProperties = new Object(), this._associatedElement = associatedElement || "", this._customProperty = new Object();
14965
+ this.number = number, this._type = type, this._signor = signor, this._signTime = signTime, this.imgSrc = imgSrc || "", this._attribute = attribute === void 0 ? 0 : attribute, this._connectChar = connectChar === void 0 ? ":" : connectChar, dataId ? this.dataId = dataId : this.dataId = HOEditorFactorys.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign"), fingerPrintSrc && (this._fingerPrintSrc = fingerPrintSrc), this._fingerPosition = fingerPosition || 0, this._name = name, this._imgWidth = imgWidth, this._imgHeight = imgHeight, this._isTemplate = isTemplate, this.isTemp = isTemp || isTemplate, this._signType = signType, this._signFormat = signFormat, this._signTimeFormat = signTimeFormat, styleIndex ? this._styleIndex = styleIndex : this._styleIndex = hoEditorFactory.docTree.curStyleIndex, this._connectMode = connectMode, signType === 1 && type !== 1 && (this._isFront = isFront, this._allowEditSignTime = allowEditSignTime), this._otherProperties = new Object(), this._associatedElement = associatedElement || "", this._customProperty = new Object();
14966
14966
  const assignvalue = (target, source) => {
14967
14967
  Object.keys(source).forEach((value) => {
14968
14968
  typeof target[value] == "object" ? Object.prototype.toString.call(source[value]) === "[object Object]" ? assignvalue(target[value], source[value]) : source[value] !== "" && source[value] !== null && assignvalue(target[value], eval("(" + source[value] + ")")) : target[value] = source[value];
@@ -15240,7 +15240,7 @@ class SignNode extends BaseNode {
15240
15240
  s ? void 0 : r.customProperty,
15241
15241
  m,
15242
15242
  r.styleIndex ? Number(r.styleIndex) : void 0,
15243
- r.connectMode,
15243
+ r.connectMode || "",
15244
15244
  w,
15245
15245
  v,
15246
15246
  s ? "" : r.fingerPrintSrc,
@@ -20360,7 +20360,7 @@ class TextBorderNode extends ControlNode {
20360
20360
  o,
20361
20361
  n || null,
20362
20362
  NodeType$1.ntTextBorder,
20363
- r.text,
20363
+ r.text || "",
20364
20364
  s
20365
20365
  );
20366
20366
  }
@@ -39756,7 +39756,7 @@ class HTMLconverter2 {
39756
39756
  } else if (n == "sub") {
39757
39757
  const s = o.vertical_align || "";
39758
39758
  s.indexOf("sub") == -1 && (o.vertical_align = (s == "" || s == null ? "" : s + " ") + "sub");
39759
- } else if (n == "u" || n == "#text") {
39759
+ } else if (n == "u") {
39760
39760
  const s = o.text_decoration || "";
39761
39761
  s.indexOf("underline") == -1 && (o.text_decoration = (s == "" ? "" : s + " ") + "underline");
39762
39762
  } else if (n == "s") {
@@ -64330,7 +64330,7 @@ WebPDecoder.prototype.getData = function() {
64330
64330
  (function(a) {
64331
64331
  function t() {
64332
64332
  return function() {
64333
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-Bfk--3Bj.mjs");
64333
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-Ck56iI09.mjs");
64334
64334
  }().catch(function(r) {
64335
64335
  return Promise.reject(new Error("Could not load canvg: " + r));
64336
64336
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Ma, _ as qa, g as Zu } from "./index-DWjyZZ0B.mjs";
1
+ import { c as Ma, _ as qa, g as Zu } from "./index-DCQatQ9K.mjs";
2
2
  var un = {}, ln = {}, lr, hn;
3
3
  function Z() {
4
4
  if (hn) return lr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hoeditor-web",
3
- "version": "3.2.40",
3
+ "version": "3.2.41",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",