hoeditor-web 3.3.2-beta.0 → 3.3.2-beta.1

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-Cvc9ioWs.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-ChMSD6GV.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -15240,7 +15240,7 @@ class DrawSignNode extends DrawCombineNode {
15240
15240
  }
15241
15241
  }
15242
15242
  }
15243
- const version = "3.3.2-beta.0";
15243
+ const version = "3.3.2-beta.1";
15244
15244
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
15245
15245
  class SignNode extends BaseNode {
15246
15246
  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) {
@@ -50503,19 +50503,32 @@ class VueController {
50503
50503
  const t = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), r = t.subDocManger.headerDocTree[0].subDocNodes, o = t.docTree.mainNodes, n = t.subDocManger.footerDocTree[0].subDocNodes;
50504
50504
  let s = "";
50505
50505
  const l = (c) => {
50506
- var d;
50507
- for (let u = 0; u < c.length; u++) {
50508
- const f = c[u];
50509
- if (!(f.hidden || (d = f == null ? void 0 : f.customProperty) != null && d.hidden)) if (f instanceof TextNode)
50510
- if (f.combination) {
50511
- let p = f.text;
50512
- f.combination.forEach((m) => {
50513
- p = p + m;
50514
- }), s += p;
50515
- } else
50516
- s += f.text;
50517
- else f instanceof ControlNode && !(f instanceof PageNumNode) && !(f instanceof PageCountNode) ? f instanceof DateTimeNode && f.name == f.text || (s += f.text) : f instanceof BaseCombineNode ? l(f.childNodes) : f instanceof ParagraphNode ? s += `
50518
- ` : f instanceof SignNode && f.customProperty && f.customProperty.bce03 && (s += f.customProperty.bce03);
50506
+ var d, u;
50507
+ for (let f = 0; f < c.length; f++) {
50508
+ const p = c[f];
50509
+ if (!(p.hidden || (d = p == null ? void 0 : p.customProperty) != null && d.hidden)) {
50510
+ if (p instanceof TextNode)
50511
+ if (p.combination) {
50512
+ let m = p.text;
50513
+ p.combination.forEach((g) => {
50514
+ m = m + g;
50515
+ }), s += m;
50516
+ } else
50517
+ s += p.text;
50518
+ else if (p instanceof ControlNode && !(p instanceof PageNumNode) && !(p instanceof PageCountNode))
50519
+ p instanceof DateTimeNode && p.name == p.text || (s += p.text);
50520
+ else if (p instanceof BaseCombineNode)
50521
+ l(p.childNodes);
50522
+ else if (p instanceof ParagraphNode)
50523
+ s += `
50524
+ `;
50525
+ else if (p instanceof SignNode && p.customProperty && p.customProperty.bce03) {
50526
+ let m = [];
50527
+ p.customProperty.abi02 && m.push(p.customProperty.abi02), m.push(p.customProperty.bce03);
50528
+ const g = ((u = p.otherProperties) == null ? void 0 : u.time) || p.signTime;
50529
+ g && m.push(g), s += m.join("_");
50530
+ }
50531
+ }
50519
50532
  }
50520
50533
  };
50521
50534
  return l(r), l(o), l(n), s = s.replace(/&/g, "&amp;"), s = s.replace(/</g, "&lt;"), s = s.replace(/>/g, "&gt;"), s = s.replace(/\'/g, "&#39;"), s = s.replace(/\"/g, "&quot;"), s;
@@ -65150,7 +65163,7 @@ WebPDecoder.prototype.getData = function() {
65150
65163
  (function(a) {
65151
65164
  function t() {
65152
65165
  return function() {
65153
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CRYhWMZo.mjs");
65166
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-B3cYwQ4K.mjs");
65154
65167
  }().catch(function(r) {
65155
65168
  return Promise.reject(new Error("Could not load canvg: " + r));
65156
65169
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-Cvc9ioWs.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-ChMSD6GV.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.2-beta.0",
3
+ "version": "3.3.2-beta.1",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",