hoeditor-web 3.3.6-beta.2 → 3.3.6-beta.3

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-sed60Dpu.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-DXCb_sp5.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -12818,7 +12818,7 @@ class DrawSignNode extends DrawCombineNode {
12818
12818
  }
12819
12819
  }
12820
12820
  }
12821
- const version = "3.3.6-beta.2";
12821
+ const version = "3.3.6-beta.3";
12822
12822
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
12823
12823
  class SignNode extends BaseNode {
12824
12824
  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) {
@@ -52005,9 +52005,15 @@ class VueController {
52005
52005
  customProperty: y.customProperty,
52006
52006
  associatedElement: y.associatedElement,
52007
52007
  dataId: y.dataId,
52008
- node: {}
52008
+ node: {},
52009
+ parentNode: null
52009
52010
  };
52010
- r && (w.node = y), y.attribute === 1 && (w.type = "patientSign", y.imgSrc == "" && y.fingerPrintSrc == "" ? w.signed = !1 : w.signed = !0, s.push(w)), y.attribute != 1 && (w.type = "sign", y.imgSrc == "" ? w.signed = !1 : (w.signed = !0, w.customProperty = y.customProperty, t && y.customProperty && y.customProperty.bce01 == t && l.push({
52011
+ y.parentNode instanceof TextInputFieldNode && (w.parentNode = {
52012
+ type: "textInputField",
52013
+ customProperty: { ...y.parentNode.customProperty || {} },
52014
+ innerIdentifier: y.parentNode.innerIdentifier,
52015
+ name: y.parentNode.name
52016
+ }), r && (w.node = y), y.attribute === 1 && (w.type = "patientSign", y.imgSrc == "" && y.fingerPrintSrc == "" ? w.signed = !1 : w.signed = !0, s.push(w)), y.attribute != 1 && (w.type = "sign", y.imgSrc == "" ? w.signed = !1 : (w.signed = !0, w.customProperty = y.customProperty, t && y.customProperty && y.customProperty.bce01 == t && l.push({
52011
52017
  ...w,
52012
52018
  node: y
52013
52019
  })), n.push(w));
@@ -52027,8 +52033,15 @@ class VueController {
52027
52033
  isVerify: !1,
52028
52034
  isTemplate: !1,
52029
52035
  customProperty: {},
52030
- position: [_ + 1, E + 1]
52036
+ position: [_ + 1, E + 1],
52037
+ parentNode: null
52031
52038
  };
52039
+ y.parentNode instanceof TextInputFieldNode && (T.parentNode = {
52040
+ type: "textInputField",
52041
+ customProperty: { ...y.parentNode.customProperty || {} },
52042
+ innerIdentifier: y.parentNode.innerIdentifier,
52043
+ name: y.parentNode.name
52044
+ });
52032
52045
  const I = D.childNodes.filter((A) => A instanceof SignNode);
52033
52046
  I.length > 0 && (T.customProperty = I[0].customProperty, T.signed = I[0].imgSrc != "", t && I[0].customProperty && I[0].customProperty.bce01 === t && l.push({
52034
52047
  ...T,
@@ -65321,7 +65334,7 @@ WebPDecoder.prototype.getData = function() {
65321
65334
  (function(a) {
65322
65335
  function t() {
65323
65336
  return function() {
65324
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-gUVbBMYY.mjs");
65337
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CfPtqCyT.mjs");
65325
65338
  }().catch(function(r) {
65326
65339
  return Promise.reject(new Error("Could not load canvg: " + r));
65327
65340
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-sed60Dpu.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-DXCb_sp5.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.6-beta.2",
3
+ "version": "3.3.6-beta.3",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",