hoeditor-web 3.2.24 → 3.2.27
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-
|
|
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-BSSaXGu2.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -10694,11 +10694,11 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
|
|
|
10694
10694
|
let S = Math.floor(_ / (1e3 * 60 * 60 * 24));
|
|
10695
10695
|
return S == 0 && (S = 1), S.toString() + /* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.35", null, "天");
|
|
10696
10696
|
} else {
|
|
10697
|
-
const v =
|
|
10698
|
-
|
|
10699
|
-
|
|
10697
|
+
const v = g.getTime() - m.getTime();
|
|
10698
|
+
if (v < 0) return "";
|
|
10699
|
+
const C = Math.floor(v / (1e3 * 60)), _ = Math.floor(C / 60), S = C % 60, E = _ % 24, T = Math.floor(_ / 24);
|
|
10700
10700
|
let I = "";
|
|
10701
|
-
return
|
|
10701
|
+
return T > 0 && (I += `${T}天`), E > 0 && (I += `${E}小时`), (S > 0 || I === "") && (I += `${S}分钟`), I || "0";
|
|
10702
10702
|
}
|
|
10703
10703
|
}
|
|
10704
10704
|
}
|
|
@@ -13041,7 +13041,7 @@ class ParagraphNode extends BaseNode {
|
|
|
13041
13041
|
const n = this.getNextDline(r);
|
|
13042
13042
|
for (let s = o; s < r.drawItems.length; s++)
|
|
13043
13043
|
n.addChildAt(s - o, r.drawItems[s]);
|
|
13044
|
-
n.fitLines();
|
|
13044
|
+
n.updateLineStyle(), n.fitLines();
|
|
13045
13045
|
}
|
|
13046
13046
|
getParagraphLastNodePath() {
|
|
13047
13047
|
return HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.getParaNodeLastPath(this);
|
|
@@ -14897,7 +14897,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14897
14897
|
}
|
|
14898
14898
|
}
|
|
14899
14899
|
}
|
|
14900
|
-
const version = "3.2.
|
|
14900
|
+
const version = "3.2.27";
|
|
14901
14901
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
14902
14902
|
class SignNode extends BaseNode {
|
|
14903
14903
|
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) {
|
|
@@ -29386,7 +29386,7 @@ class TextNode extends BaseNode {
|
|
|
29386
29386
|
for (; u <= this.text.length - 1; ) {
|
|
29387
29387
|
y = n.calcRestWidth();
|
|
29388
29388
|
const v = new DrawSimpleText(this._text[0], this._dStyleKey, this._dColor);
|
|
29389
|
-
y < v.getMeasuredWidth() && (u == 0 && w || (n.fitLines(), n = n.paragraphNode.getNextDline(n), this.adjustRectAlignLine(n), y = n.calcRestWidth()));
|
|
29389
|
+
y < v.getMeasuredWidth() && (u == 0 && w || (n.updateLineStyle(), n.fitLines(), n = n.paragraphNode.getNextDline(n), this.adjustRectAlignLine(n), y = n.calcRestWidth()));
|
|
29390
29390
|
const C = new DrawTextNode(
|
|
29391
29391
|
this._hoEditorFactoryID,
|
|
29392
29392
|
this._rootPath,
|
|
@@ -29398,11 +29398,11 @@ class TextNode extends BaseNode {
|
|
|
29398
29398
|
n
|
|
29399
29399
|
);
|
|
29400
29400
|
if (C.endIndex < 0) {
|
|
29401
|
-
g < this.text.length - 1 && (n.fitLines(), n = n.paragraphNode.getNextDline(n), this.adjustRectAlignLine(n));
|
|
29401
|
+
g < this.text.length - 1 && (n.updateLineStyle(), n.fitLines(), n = n.paragraphNode.getNextDline(n), this.adjustRectAlignLine(n));
|
|
29402
29402
|
continue;
|
|
29403
29403
|
}
|
|
29404
29404
|
if (C.dWidth = C.dText.dWidth, n.addChild(C), n.drawItems.push(C), this._drawNodes.push(C), g = C.endIndex, g < this.text.length - 1) {
|
|
29405
|
-
n.fitLines();
|
|
29405
|
+
n.updateLineStyle(), n.fitLines();
|
|
29406
29406
|
const _ = n;
|
|
29407
29407
|
if (n = n.paragraphNode.getNextDline(n), _.updateLineStyle(), n.paragraphNode.parentNode instanceof TextInputFieldNode) {
|
|
29408
29408
|
const S = n.paragraphNode.drawlines.indexOf(n), E = n.paragraphNode.drawlines[S - 1];
|
|
@@ -53069,13 +53069,19 @@ class ElementController {
|
|
|
53069
53069
|
return s.map((u) => {
|
|
53070
53070
|
var f;
|
|
53071
53071
|
if (u instanceof TextInputFieldNode) {
|
|
53072
|
-
if (
|
|
53072
|
+
if (((u == null ? void 0 : u.customProperty) || {}).diagType) {
|
|
53073
|
+
d.push(u);
|
|
53073
53074
|
return;
|
|
53074
|
-
|
|
53075
|
-
|
|
53076
|
-
|
|
53077
|
-
|
|
53078
|
-
|
|
53075
|
+
} else {
|
|
53076
|
+
if (u.childNodes.filter((m) => m.nodeType != 5 && m.nodeType != 2 && m.nodeType != 0).length)
|
|
53077
|
+
return;
|
|
53078
|
+
if (u.hidden || (f = u == null ? void 0 : u.customProperty) != null && f.hidden)
|
|
53079
|
+
return;
|
|
53080
|
+
u.parentNode instanceof TextInputFieldNode && (u.groupName = u.parentNode.name);
|
|
53081
|
+
}
|
|
53082
|
+
if (u.inputFieldType == InputFieldType.dropDownList) {
|
|
53083
|
+
let m = u.downListProperty;
|
|
53084
|
+
m.listItems && m.listItems.includes("<元素>") && (u.linkage = !0);
|
|
53079
53085
|
}
|
|
53080
53086
|
d.push(u);
|
|
53081
53087
|
} else
|
|
@@ -64155,7 +64161,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64155
64161
|
(function(a) {
|
|
64156
64162
|
function t() {
|
|
64157
64163
|
return function() {
|
|
64158
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
64164
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CWpmopb1.mjs");
|
|
64159
64165
|
}().catch(function(r) {
|
|
64160
64166
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64161
64167
|
}).then(function(r) {
|