hoeditor-web 3.2.43 → 3.2.45

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-1lpyQ5mz.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-BckZ0E3t.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -11896,7 +11896,12 @@ class DrawArea extends DrawRect {
11896
11896
  }
11897
11897
  }
11898
11898
  }
11899
- return this.docHeight -= n, this.paintFrontGround(), this.paintBackground(), f && r.length > 0 && r[0].parent instanceof DrawPageCell && (r[0].parent.cell.drawCell.needUpdate = !0, s.docTree.redrawHiddenParas.push(r[0].parent.cell.table)), [l, d, u];
11899
+ if (this.docHeight -= n, this.paintFrontGround(), this.paintBackground(), f && r.length > 0 && r[0].parent instanceof DrawPageCell) {
11900
+ r[0].parent.cell.drawCell.needUpdate = !0;
11901
+ const p = r[0].parent.cell.table;
11902
+ s.docTree.redrawHiddenParas.indexOf(p) < 0 && s.docTree.redrawHiddenParas.push(p);
11903
+ }
11904
+ return [l, d, u];
11900
11905
  }
11901
11906
  // public updateDocHeight(start: number) {
11902
11907
  // if (this.children.length > 0) {
@@ -14904,7 +14909,7 @@ class DrawSignNode extends DrawCombineNode {
14904
14909
  }
14905
14910
  }
14906
14911
  }
14907
- const version = "3.2.43";
14912
+ const version = "3.2.45";
14908
14913
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
14909
14914
  class SignNode extends BaseNode {
14910
14915
  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) {
@@ -23014,9 +23019,7 @@ const appendPrevTextResult = (a, t, r) => {
23014
23019
  }, o = !1;
23015
23020
  }
23016
23021
  return r;
23017
- }, removeEmptyValues = (a) => typeof a != "object" || a === null ? a : Array.isArray(a) ? a.filter((r) => !isEmptyValue(r)).map((r) => removeEmptyValues(r)) : Object.fromEntries(
23018
- Object.entries(a).filter(([r, o]) => r === "tetx" || !isEmptyValue(o)).map(([r, o]) => [r, removeEmptyValues(o)])
23019
- ), isEmptyValue = (a) => a === "" || a === !1 || a === null || a === void 0;
23022
+ };
23020
23023
  var ReadOnlyStatus = /* @__PURE__ */ ((a) => (a[a.true = 0] = "true", a[a.false = 1] = "false", a[a.InheritParentElement = 2] = "InheritParentElement", a))(ReadOnlyStatus || {}), InputFieldType = /* @__PURE__ */ ((a) => (a[a.text = 0] = "text", a[a.dropDownList = 1] = "dropDownList", a))(InputFieldType || {});
23021
23024
  class DownListProperty {
23022
23025
  //列表项目
@@ -45197,7 +45200,7 @@ class StructureConvert {
45197
45200
  for (let g = 0; g < f.length; g++) {
45198
45201
  const y = f[g];
45199
45202
  let w;
45200
- p === "json" && (y instanceof TableNode || y instanceof TextInputFieldNode) ? w = this.delStyle(y.node2Json(void 0, void 0, "json")) : p === "json" ? w = this.delStyle(y.node2Json()) : (y instanceof TableNode || y instanceof TextInputFieldNode ? (w = y.node2Json(void 0, void 0, void 0, n), w = d(t, w, y instanceof TableNode ? "TableNode" : "TextInputFieldNode")) : y instanceof SignNode ? (n ? y.isTemplate && (w = y.node2Json(void 0, void 0, void 0, n)) : w = y.node2Json(), w = d(t, w, "SignNode")) : y instanceof DateTimeNode && n || y instanceof QrcodeNode && n ? w = y.node2Json(void 0, void 0, void 0, n) : y instanceof DateTimeNode ? w = d(t, y.node2Json(), "DateTimeNode") : w = y.node2Json(), w = removeEmptyValues(w)), p === "xml" ? o += l.js2xml(w) : m.push(w);
45203
+ p === "json" && (y instanceof TableNode || y instanceof TextInputFieldNode) ? w = this.delStyle(y.node2Json(void 0, void 0, "json")) : p === "json" ? w = this.delStyle(y.node2Json()) : y instanceof TableNode || y instanceof TextInputFieldNode ? (w = y.node2Json(void 0, void 0, void 0, n), w = d(t, w, y instanceof TableNode ? "TableNode" : "TextInputFieldNode")) : y instanceof SignNode ? (n ? y.isTemplate && (w = y.node2Json(void 0, void 0, void 0, n)) : w = y.node2Json(), w = d(t, w, "SignNode")) : y instanceof DateTimeNode && n || y instanceof QrcodeNode && n ? w = y.node2Json(void 0, void 0, void 0, n) : y instanceof DateTimeNode ? w = d(t, y.node2Json(), "DateTimeNode") : w = y.node2Json(), p === "xml" ? o += l.js2xml(w) : m.push(w);
45201
45204
  }
45202
45205
  if (r === "json")
45203
45206
  return m;
@@ -64330,7 +64333,7 @@ WebPDecoder.prototype.getData = function() {
64330
64333
  (function(a) {
64331
64334
  function t() {
64332
64335
  return function() {
64333
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-B0TiKs-r.mjs");
64336
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-C28cgdlu.mjs");
64334
64337
  }().catch(function(r) {
64335
64338
  return Promise.reject(new Error("Could not load canvg: " + r));
64336
64339
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Ma, _ as qa, g as Zu } from "./index-1lpyQ5mz.mjs";
1
+ import { c as Ma, _ as qa, g as Zu } from "./index-BckZ0E3t.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.43",
3
+ "version": "3.2.45",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",