hoeditor-web 3.2.39 → 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-SnoJPBOZ.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.39";
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
  }
@@ -52389,6 +52389,13 @@ class VueController {
52389
52389
  }
52390
52390
  });
52391
52391
  }
52392
+ testFlow() {
52393
+ const t = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), r = this.getAllElementNodes()[13], o = `1、活化部分凝血活酶时间测定(APTT)(GCP),
52394
+ 2、普通门诊诊查费33,`;
52395
+ t.elementController.updateTextInputFieldValue(r, ""), setTimeout(() => {
52396
+ t.elementController.updateTextInputFieldValue(r, o);
52397
+ }, 1e3);
52398
+ }
52392
52399
  }
52393
52400
  class BaseController {
52394
52401
  constructor(t) {
@@ -64323,7 +64330,7 @@ WebPDecoder.prototype.getData = function() {
64323
64330
  (function(a) {
64324
64331
  function t() {
64325
64332
  return function() {
64326
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-C9blLkcG.mjs");
64333
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-Ck56iI09.mjs");
64327
64334
  }().catch(function(r) {
64328
64335
  return Promise.reject(new Error("Could not load canvg: " + r));
64329
64336
  }).then(function(r) {
@@ -65630,7 +65637,7 @@ class PrintController {
65630
65637
  });
65631
65638
  })));
65632
65639
  return p ? (setTimeout(() => {
65633
- o.vueController.moveCaretToPath(n), this.clearJsPDF();
65640
+ (o.drawTree.drawPages || []).length && o.vueController.moveCaretToPath(n), this.clearJsPDF();
65634
65641
  }, 0), r == "url" ? p : p.replace(/^data:application\/pdf;filename=generated.pdf;base64,/, "")) : null;
65635
65642
  }
65636
65643
  /**
@@ -1,4 +1,4 @@
1
- import { c as Ma, _ as qa, g as Zu } from "./index-SnoJPBOZ.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.39",
3
+ "version": "3.2.41",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",