hoeditor-web 3.2.97 → 3.3.1-beta.0
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-Crt_JyiP.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -15183,7 +15183,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15183
15183
|
}
|
|
15184
15184
|
}
|
|
15185
15185
|
}
|
|
15186
|
-
const version = "3.
|
|
15186
|
+
const version = "3.3.1-beta.0";
|
|
15187
15187
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15188
15188
|
class SignNode extends BaseNode {
|
|
15189
15189
|
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) {
|
|
@@ -65044,7 +65044,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65044
65044
|
(function(a) {
|
|
65045
65045
|
function t() {
|
|
65046
65046
|
return function() {
|
|
65047
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65047
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CouSd650.mjs");
|
|
65048
65048
|
}().catch(function(r) {
|
|
65049
65049
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65050
65050
|
}).then(function(r) {
|
|
@@ -66584,8 +66584,8 @@ class PrintController {
|
|
|
66584
66584
|
}
|
|
66585
66585
|
/**
|
|
66586
66586
|
* 批量打印病历 当前
|
|
66587
|
-
* @param xmlList [string, boolean, string, boolean][]
|
|
66588
|
-
* 四个参数分别是: xml内容 是否合并 病程记录id:用来判断是否是病程记录和返回对应病程记录的坐标(处理多个不同病程记录的情况)
|
|
66587
|
+
* @param xmlList [string, boolean, string, boolean,string][]
|
|
66588
|
+
* 四个参数分别是: xml内容 是否合并 病程记录id:用来判断是否是病程记录和返回对应病程记录的坐标(处理多个不同病程记录的情况) 是否是最后一份病程记录,单独病历id
|
|
66589
66589
|
*/
|
|
66590
66590
|
async pintAllToPDF(t, r, o, n) {
|
|
66591
66591
|
const s = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), l = s.drawTree.paintStatus, c = s.vueController.getDocXml();
|
|
@@ -69885,22 +69885,24 @@ class DocController {
|
|
|
69885
69885
|
moveCaret() {
|
|
69886
69886
|
}
|
|
69887
69887
|
deleteRange(a, t, r) {
|
|
69888
|
-
var c, d;
|
|
69888
|
+
var c, d, u, f, p, m;
|
|
69889
69889
|
let o = a;
|
|
69890
69890
|
t || (o = a.normalize());
|
|
69891
69891
|
const n = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), s = n.enableChangeTracking;
|
|
69892
69892
|
let l = -1;
|
|
69893
69893
|
if ((n.drawTree.paintStatus === PaintState.psReview || n.drawTree.paintStatus === PaintState.psTrace || s) && o.npEnd.node instanceof TextNode) {
|
|
69894
|
-
const
|
|
69895
|
-
l =
|
|
69894
|
+
const g = n.docTree.styles[o.npEnd.node.styleIndex];
|
|
69895
|
+
l = g.creatorIndex === void 0 ? -1 : g.creatorIndex;
|
|
69896
69896
|
}
|
|
69897
69897
|
if ((n.drawTree.paintStatus === PaintState.psReview || n.drawTree.paintStatus === PaintState.psTrace || s) && r !== "update" && l === -1)
|
|
69898
69898
|
n.undoService.begin(), n.undoService.add(new NodeStyleUndoUnit(this._hoEditorFactoryID, o.startPath, o.endPath, new Operate("reviewDelete", "string"))), n.undoService.commit();
|
|
69899
69899
|
else {
|
|
69900
|
-
|
|
69900
|
+
let g = o.npEnd.node instanceof TextNode && ((c = o.npStart.node) == null ? void 0 : c.parentNode) !== o.npEnd.node.parentNode;
|
|
69901
|
+
((d = o.npEnd.node) == null ? void 0 : d.parentNode) instanceof TextInputFieldNode && ((u = o.npStart.node) == null ? void 0 : u.parentNode) instanceof TextInputFieldNode && (p = o.npEnd.node) != null && p.parentNode.childNodes.includes((f = o.npStart.node) == null ? void 0 : f.parentNode) && (g = !1);
|
|
69902
|
+
const y = (o.npEnd.node instanceof MarkNode || g) && ((m = o.npEnd.node) == null ? void 0 : m.parentNode) instanceof TextInputFieldNode ? n.docTree.getNodeLastPath(o.npEnd.node.parentNode) : o.endPath;
|
|
69901
69903
|
n.undoService.begin();
|
|
69902
|
-
const
|
|
69903
|
-
return n.undoService.add(
|
|
69904
|
+
const v = new NodesDeleteUndoUnit(this._hoEditorFactoryID, o.startPath, y, r === "update");
|
|
69905
|
+
return n.undoService.add(v), n.undoService.commit(), v.isError;
|
|
69904
69906
|
}
|
|
69905
69907
|
}
|
|
69906
69908
|
//插入节点到指定位置
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hoeditor-web",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/hoeditor.mjs",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
"major": "npm version major && npm run createVersion && npm run lib && npm publish . && cnpm sync hoeditor-web",
|
|
11
11
|
"minor": "npm version minor && npm run createVersion && npm run lib && npm publish . && cnpm sync hoeditor-web",
|
|
12
12
|
"patch": "npm version patch && npm run createVersion && npm run lib && npm publish . && cnpm sync hoeditor-web",
|
|
13
|
+
"beta": "npm version prerelease --preid=beta && npm run createVersion && npm run lib && npm publish --tag beta . && cnpm sync hoeditor-web",
|
|
14
|
+
"rc": "npm version prerelease --preid=rc && npm run createVersion && npm run lib && npm publish --tag next . && cnpm sync hoeditor-web",
|
|
13
15
|
"lib:publish": "npm run setconfig && npm version patch && npm run createVersion && npm run lib && npm publish . && cnpm sync hoeditor-web",
|
|
16
|
+
"lib:publish:beta": "npm run setconfig && npm version prerelease --preid=beta && npm run createVersion && npm run lib && npm publish --tag beta . && cnpm sync hoeditor-web",
|
|
17
|
+
"lib:publish:rc": "npm run setconfig && npm version prerelease --preid=rc && npm run createVersion && npm run lib && npm publish --tag next . && cnpm sync hoeditor-web",
|
|
14
18
|
"setconfig": "npm config set registry https://registry.npmjs.org",
|
|
15
19
|
"setcnconfig": "npm config set registry https://registry.npmmirror.com",
|
|
16
20
|
"createVersion": "node ./gen-version.js",
|