hoeditor-web 3.3.1 → 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-D1DObY2H.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.1";
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) {
@@ -27566,7 +27566,7 @@ class Print {
27566
27566
  static openDataUriInWindow(t, r, o, n, s, l) {
27567
27567
  var d, u;
27568
27568
  if (window.emrPrintHandler) {
27569
- window.emrPrintHandler(t.output("bloburl"));
27569
+ window.emrPrintHandler({ code: 200, data: t.output("bloburl") });
27570
27570
  return;
27571
27571
  }
27572
27572
  if (navigator && navigator.userAgent.toLowerCase().indexOf("electron") !== -1) {
@@ -27733,8 +27733,9 @@ class Print {
27733
27733
  }
27734
27734
  if (u.printStatus.printRange !== 1 && u.printStatus.recordLastPosByPageIndex(w), u.printStatus.DrawPrintRange().PrintOver(), l || u.startPageNum !== 0 && l !== void 0) {
27735
27735
  const G = u.printStatus.printRecord.last();
27736
- if (G && u.startPageNum == G[0] && l === G[1]) {
27737
- message.info(i18nHelper("04-001-009-EMR.3.3.483", null, "无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录")), s && s("printend");
27736
+ if (G && u.startPageNum == G[0] && (l === G[1] || l && G[1] && l > G[1])) {
27737
+ const J = /* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.483", null, "无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录");
27738
+ message.info(J), window.emrPrintHandler && window.emrPrintHandler({ code: 500, msg: J }), s && s("printend");
27738
27739
  return;
27739
27740
  }
27740
27741
  }
@@ -50502,19 +50503,32 @@ class VueController {
50502
50503
  const t = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), r = t.subDocManger.headerDocTree[0].subDocNodes, o = t.docTree.mainNodes, n = t.subDocManger.footerDocTree[0].subDocNodes;
50503
50504
  let s = "";
50504
50505
  const l = (c) => {
50505
- var d;
50506
- for (let u = 0; u < c.length; u++) {
50507
- const f = c[u];
50508
- if (!(f.hidden || (d = f == null ? void 0 : f.customProperty) != null && d.hidden)) if (f instanceof TextNode)
50509
- if (f.combination) {
50510
- let p = f.text;
50511
- f.combination.forEach((m) => {
50512
- p = p + m;
50513
- }), s += p;
50514
- } else
50515
- s += f.text;
50516
- 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 += `
50517
- ` : 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
+ }
50518
50532
  }
50519
50533
  };
50520
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;
@@ -65149,7 +65163,7 @@ WebPDecoder.prototype.getData = function() {
65149
65163
  (function(a) {
65150
65164
  function t() {
65151
65165
  return function() {
65152
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-Bv7pzhOR.mjs");
65166
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-B3cYwQ4K.mjs");
65153
65167
  }().catch(function(r) {
65154
65168
  return Promise.reject(new Error("Could not load canvg: " + r));
65155
65169
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-D1DObY2H.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.1",
3
+ "version": "3.3.2-beta.1",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",