hoeditor-web 3.2.28 → 3.2.29

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-CkGezwsU.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-BSu6xkui.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -10626,32 +10626,43 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
10626
10626
  }
10627
10627
  return t;
10628
10628
  }
10629
+ getHeightNum(t) {
10630
+ if (t) {
10631
+ const r = this.getParentCell().table;
10632
+ let o = 0;
10633
+ const [n, s] = this.getRowColByCellAdress(t);
10634
+ if (n >= 0 && s >= 0 && r.rows[n] && r.rows[n][s]) {
10635
+ const [c, d] = this.getCellNumber(r, n, s);
10636
+ if (c && d)
10637
+ return o = Number(d), o;
10638
+ }
10639
+ }
10640
+ return !1;
10641
+ }
10629
10642
  clacBodySurfaceArea() {
10630
10643
  let t = " ";
10631
10644
  const r = this.getParentCell().table;
10632
10645
  this.formulaStr == "" && message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.442", null, "体重的单元格编号传入有误:") + this.formulaStr);
10633
10646
  const o = this.formulaStr.split("__");
10634
- let n, s, l, c, d = 0;
10647
+ let n, s, l = 0;
10635
10648
  if (o[0] && ([n, s] = this.getRowColByCellAdress(o[0]), n >= 0 && s >= 0)) {
10636
10649
  if (!r.rows[n]) return t;
10637
10650
  if (r.rows[n][s]) {
10638
- const [f, p] = this.getCellNumber(r, n, s);
10639
- f && p && (d = Number(p));
10640
- }
10641
- }
10642
- if (o[2] != "1" && d) {
10643
- let u = 0;
10644
- return d > 30 ? u = 1.05 + (d - 30) * 0.02 : u = 0.035 * d + 0.1, u.toFixed(2);
10645
- } else if (d) {
10646
- let u = 0;
10647
- if (o[1] && ([l, c] = this.getRowColByCellAdress(o[1]), l >= 0 && c >= 0)) {
10648
- if (!r.rows[l]) return t;
10649
- if (r.rows[l][c]) {
10650
- const [p, m] = this.getCellNumber(r, l, c);
10651
- if (p && m)
10652
- return u = Number(m), (61e-4 * u + 0.0128 * d - 0.1529).toFixed(4);
10653
- }
10654
- }
10651
+ const [d, u] = this.getCellNumber(r, n, s);
10652
+ d && u && (l = Number(u));
10653
+ }
10654
+ }
10655
+ if (o[2] == "2") {
10656
+ const c = this.getHeightNum(o[1]);
10657
+ if (typeof c == "number" && l)
10658
+ return (7184e-6 * Math.pow(l, 0.425) * Math.pow(c, 0.725)).toFixed(4);
10659
+ } else if (o[2] != "1" && l) {
10660
+ let c = 0;
10661
+ return l > 30 ? c = 1.05 + (l - 30) * 0.02 : c = 0.035 * l + 0.1, c.toFixed(2);
10662
+ } else if (l) {
10663
+ const c = this.getHeightNum(o[1]);
10664
+ if (typeof c == "number")
10665
+ return (61e-4 * c + 0.0128 * l - 0.1529).toFixed(4);
10655
10666
  }
10656
10667
  return t;
10657
10668
  }
@@ -14898,7 +14909,7 @@ class DrawSignNode extends DrawCombineNode {
14898
14909
  }
14899
14910
  }
14900
14911
  }
14901
- const version = "3.2.28";
14912
+ const version = "3.2.29";
14902
14913
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
14903
14914
  class SignNode extends BaseNode {
14904
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) {
@@ -39605,23 +39616,30 @@ class HTMLconverter2 {
39605
39616
  }
39606
39617
  for (let y = 0; y < g.length; y++) {
39607
39618
  const w = new Array(), v = Array.from(g[y].children);
39608
- for (let C = 0; C < d; C++)
39609
- if (v[C]) {
39610
- const _ = parseInt(v[C].getAttribute("rowspan") || "1"), S = parseInt(v[C].getAttribute("colspan") || "1");
39611
- if (_ > 1)
39612
- for (let E = y + 1; E < y + _; E++)
39619
+ let C = [];
39620
+ for (let _ = 0; _ < v.length; _++) {
39621
+ const S = parseInt(v[_].getAttribute("colspan") || "1");
39622
+ if (C.push(v[_]), S > 1) {
39623
+ const E = Array(S - 1).fill(void 0);
39624
+ C = C.concat(E);
39625
+ }
39626
+ }
39627
+ for (let _ = 0; _ < d; _++)
39628
+ if (C[_]) {
39629
+ const S = parseInt(C[_].getAttribute("rowspan") || "1"), E = parseInt(C[_].getAttribute("colspan") || "1");
39630
+ if (S > 1)
39631
+ for (let T = y + 1; T < y + S; T++)
39613
39632
  f.push({
39614
- rowCount: E,
39615
- colCount: C
39633
+ rowCount: T,
39634
+ colCount: _
39616
39635
  });
39617
- if (S > 1)
39618
- for (let E = C + 1; E < C + S; E++)
39636
+ if (E > 1)
39637
+ for (let T = _ + 1; T < _ + E; T++)
39619
39638
  u.push({
39620
39639
  rowCount: y,
39621
- colCount: E
39640
+ colCount: T
39622
39641
  });
39623
- } else
39624
- v[C] = void 0;
39642
+ }
39625
39643
  w.push(...v), l.push(w);
39626
39644
  }
39627
39645
  }
@@ -64172,7 +64190,7 @@ WebPDecoder.prototype.getData = function() {
64172
64190
  (function(a) {
64173
64191
  function t() {
64174
64192
  return function() {
64175
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DJ05PGDj.mjs");
64193
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-Ch-T0w8y.mjs");
64176
64194
  }().catch(function(r) {
64177
64195
  return Promise.reject(new Error("Could not load canvg: " + r));
64178
64196
  }).then(function(r) {
@@ -76246,11 +76264,11 @@ var _sfc_render$S = function a() {
76246
76264
  }, expression: "item.range[1]" } }), r("span", { staticStyle: { padding: "0 10px" } }, [t._v(" :")]), r("a-input", { staticClass: "ft-score-mapping-input ft-score-mapping-textarea", staticStyle: { width: "173px" }, attrs: { type: "textarea", autocomplete: "off" }, model: { value: o.text, callback: function(s) {
76247
76265
  t.$set(o, "text", s);
76248
76266
  }, expression: "item.text" } })], 1);
76249
- }), r("li", [r("a-button", { on: { click: t.addFtScoreMappingItem } }, [r("a-icon", { staticStyle: { "font-size": "20px" }, attrs: { type: "folder-add" } })], 1)], 1)], 2)])]) : t.formula === "bodySurfaceArea" ? r("section", [t._m(0), r("a-radio-group", { staticStyle: { "font-size": "14px" }, attrs: { size: "large" }, model: { value: t.bodySurfaceAreaType, callback: function(o) {
76267
+ }), r("li", [r("a-button", { on: { click: t.addFtScoreMappingItem } }, [r("a-icon", { staticStyle: { "font-size": "20px" }, attrs: { type: "folder-add" } })], 1)], 1)], 2)])]) : t.formula === "bodySurfaceArea" ? r("section", [r("div", { staticStyle: { "line-height": "20px", "font-size": "14px" } }, [r("div", { directives: [{ name: "show", rawName: "v-show", value: t.bodySurfaceAreaType == "0", expression: "bodySurfaceAreaType == '0'" }] }, [r("p", { staticStyle: { "font-weight": "bold" } }, [t._v(" 体表面积公式1: ")]), r("p", [t._v(" ")]), r("p", { staticStyle: { "margin-bottom": "6px" } }, [t._v("体重 > 30kg "), r("a-tag", { attrs: { color: "blue" } }, [t._v("BSA (m²) = 1.05 + (体重(kg) - 30) * 0.02")])], 1), r("p", [t._v("体重 <= 30kg "), r("a-tag", { attrs: { color: "blue" } }, [t._v("BSA (m²) = 0.035 * 体重(kg) + 0.1")])], 1), r("p", [t._v(" ")])]), r("div", { directives: [{ name: "show", rawName: "v-show", value: t.bodySurfaceAreaType == "1", expression: "bodySurfaceAreaType == '1'" }] }, [t._m(0), r("p", [t._v(" ")]), r("p", [t._v("许文生公式(Mosteller 简化版): "), r("a-tag", { attrs: { color: "blue" } }, [t._v("BSA (m²) = 0.0061*身高 (cm) +0.0128*体重(kg) -0.1529")])], 1), r("p", [t._v(" ")])]), r("div", { directives: [{ name: "show", rawName: "v-show", value: t.bodySurfaceAreaType == "2", expression: "bodySurfaceAreaType == '2'" }] }, [r("p", { staticStyle: { "font-weight": "bold" } }, [t._v(" 体表面积公式3: ")]), r("p", [t._v(" ")]), r("p", [t._v("杜波依斯公式(DuBois): "), r("a-tag", { attrs: { color: "blue" } }, [t._v("BSA (m²) = 0.007184 * ( 体重(kg)"), r("sup", [t._v("0.425")]), t._v(" * 身高(cm)"), r("sup", [t._v("0.725")]), t._v(" )")])], 1), r("p", [t._v(" ")])])]), r("a-radio-group", { staticStyle: { "font-size": "14px" }, attrs: { size: "large" }, model: { value: t.bodySurfaceAreaType, callback: function(o) {
76250
76268
  t.bodySurfaceAreaType = o;
76251
- }, expression: "bodySurfaceAreaType" } }, [r("a-radio", { attrs: { value: "0" } }, [t._v("体表面积公式1")]), r("a-radio", { attrs: { value: "1" } }, [t._v("体表面积公式2"), r("span", { staticStyle: { color: "red" } }, [t._v("(推荐)")])])], 1), r("div", { staticClass: "ho-table-features-list" }, [r("p", [t._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.292", null, "体重"))]), r("a-input", { attrs: { autocomplete: "off", "addon-after": "kg" }, model: { value: t.bodySurfaceAreaWeight, callback: function(o) {
76269
+ }, expression: "bodySurfaceAreaType" } }, [r("a-radio", { attrs: { value: "0" } }, [t._v("体表面积公式1")]), r("a-radio", { attrs: { value: "1" } }, [t._v("体表面积公式2"), r("span", { staticStyle: { color: "red" } }, [t._v("(推荐)")])]), r("a-radio", { attrs: { value: "2" } }, [t._v("体表面积公式3")])], 1), r("div", { staticClass: "ho-table-features-list" }, [r("p", [t._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.292", null, "体重"))]), r("a-input", { attrs: { autocomplete: "off", "addon-after": "kg" }, model: { value: t.bodySurfaceAreaWeight, callback: function(o) {
76252
76270
  t.bodySurfaceAreaWeight = o;
76253
- }, expression: "bodySurfaceAreaWeight" } })], 1), t.bodySurfaceAreaType == "1" ? r("div", { staticClass: "ho-table-features-list" }, [r("p", [t._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.293", null, "身高"))]), r("a-input", { attrs: { autocomplete: "off", "addon-after": "cm" }, model: { value: t.bodySurfaceAreaHeight, callback: function(o) {
76271
+ }, expression: "bodySurfaceAreaWeight" } })], 1), t.bodySurfaceAreaType == "1" || t.bodySurfaceAreaType == "2" ? r("div", { staticClass: "ho-table-features-list" }, [r("p", [t._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.293", null, "身高"))]), r("a-input", { attrs: { autocomplete: "off", "addon-after": "cm" }, model: { value: t.bodySurfaceAreaHeight, callback: function(o) {
76254
76272
  t.bodySurfaceAreaHeight = o;
76255
76273
  }, expression: "bodySurfaceAreaHeight" } })], 1) : t._e()], 1) : t.formula === "idealWeight" ? r("section", [r("div", { staticStyle: { height: "36px", "line-height": "36px" } }, [t._v("示例:理想体重 = (身高cm)-105")]), r("div", { staticStyle: { height: "36px", "line-height": "36px" } }, [t._v("范围 = (0.9 * (身高(cm) - 105)) ~ (1.1 * (身高(cm) - 105)), 计算结果小于0时, 显示“?”")]), r("div", { staticClass: "ho-table-features-list" }, [r("span", { staticStyle: { "margin-right": "34px" } }, [t._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.293", null, "身高"))]), r("a-input", { attrs: { autocomplete: "off", "addon-after": "cm" }, model: { value: t.idealWeightHeight, callback: function(o) {
76256
76274
  t.idealWeightHeight = o;
@@ -76287,7 +76305,7 @@ var _sfc_render$S = function a() {
76287
76305
  }, expression: "curve.lineColor" } })], 1)]) : t._e()]), r("footer", { staticClass: "ho-modal-footer" }, [r("a-button", { attrs: { type: "primary" }, on: { click: t.sure } }, [t._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.347", null, "确定"))]), r("a-button", { staticStyle: { "margin-left": "30px" }, on: { click: t.handleClose } }, [t._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.346", null, "取消"))])], 1)]);
76288
76306
  }, _sfc_staticRenderFns$S = [function() {
76289
76307
  var a = this, t = a._self._c;
76290
- return t("div", { staticStyle: { "line-height": "20px", "font-size": "14px" } }, [t("p", [a._v(" 体表面积公式1 ")]), t("p", [a._v("体重>30kg 体表面积= 1.05 + (体重kg - 30) * 0.02")]), t("p", [a._v("体重<= 30kg 体表面积= 0.035 * 体重kg + 0.1")]), t("p", [a._v(" ")]), t("p", [a._v(" 体表面积公式2"), t("span", { staticStyle: { color: "red" } }, [a._v("(推荐)")])]), t("p", [a._v("BSA (m²) =0.0061*身高 (cm) +0.0128*体重(kg) -0.1529")]), t("p", [a._v(" ")])]);
76308
+ return t("p", { staticStyle: { "font-weight": "bold" } }, [a._v(" 体表面积公式2: "), t("span", { staticStyle: { color: "red" } }, [a._v("(推荐)")])]);
76291
76309
  }, function() {
76292
76310
  var a = this, t = a._self._c;
76293
76311
  return t("p", { staticStyle: { "margin-top": "10px" } }, [t("span", [a._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.254", null, "单元格编号"))]), a._v(":")]);
@@ -1,4 +1,4 @@
1
- import { c as Ma, _ as qa, g as Zu } from "./index-CkGezwsU.mjs";
1
+ import { c as Ma, _ as qa, g as Zu } from "./index-BSu6xkui.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.28",
3
+ "version": "3.2.29",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",