hoeditor-web 3.3.0 → 3.3.1-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-
|
|
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-r8TLsOVp.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.3.
|
|
15186
|
+
const version = "3.3.1-beta.1";
|
|
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) {
|
|
@@ -27551,6 +27551,10 @@ class PrintStatus {
|
|
|
27551
27551
|
class Print {
|
|
27552
27552
|
static openDataUriInWindow(t, r, o, n, s, l) {
|
|
27553
27553
|
var d, u;
|
|
27554
|
+
if (window.emrPrintHandler) {
|
|
27555
|
+
window.emrPrintHandler(t.output("bloburl"));
|
|
27556
|
+
return;
|
|
27557
|
+
}
|
|
27554
27558
|
if (navigator && navigator.userAgent.toLowerCase().indexOf("electron") !== -1) {
|
|
27555
27559
|
var c = "<html><title>" + r + '</title><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="' + t.output("bloburl") + '"></iframe></body></html>';
|
|
27556
27560
|
const f = window.open("", "modal", "width=" + (o + 400) + ",height=800");
|
|
@@ -27743,7 +27747,7 @@ class Print {
|
|
|
27743
27747
|
else G <= 1 && (r == null || r.deletePage(1));
|
|
27744
27748
|
C && (r == null || r.deletePage(1)), w == 0 && message.error(i18nHelper("04-001-009-EMR.3.3.482", null, "病历正文无内容"));
|
|
27745
27749
|
const J = u.vueController.getDocTitle() ? u.vueController.getDocTitle() : "电子病历文档";
|
|
27746
|
-
this.processGeneratedPDF(t, r), r && this.openDataUriInWindow(r, J, u.pageProperty.widthPixes, u.printSilently, p, u.pageProperty.pageSize);
|
|
27750
|
+
this.processGeneratedPDF(t, r), r && this.openDataUriInWindow(r, J, u.pageProperty.widthPixes, u.printSilently, p, u.pageProperty.pageSize, u);
|
|
27747
27751
|
} else if (f) {
|
|
27748
27752
|
if (f.childNodes.length === 0) {
|
|
27749
27753
|
message.info(i18nHelper("04-001-009-EMR.3.3.481", null, "无新增内容")), s && s("printend");
|
|
@@ -65044,7 +65048,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65044
65048
|
(function(a) {
|
|
65045
65049
|
function t() {
|
|
65046
65050
|
return function() {
|
|
65047
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65051
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-Au-yZruF.mjs");
|
|
65048
65052
|
}().catch(function(r) {
|
|
65049
65053
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65050
65054
|
}).then(function(r) {
|
|
@@ -66584,8 +66588,8 @@ class PrintController {
|
|
|
66584
66588
|
}
|
|
66585
66589
|
/**
|
|
66586
66590
|
* 批量打印病历 当前
|
|
66587
|
-
* @param xmlList [string, boolean, string, boolean][]
|
|
66588
|
-
* 四个参数分别是: xml内容 是否合并 病程记录id:用来判断是否是病程记录和返回对应病程记录的坐标(处理多个不同病程记录的情况)
|
|
66591
|
+
* @param xmlList [string, boolean, string, boolean,string][]
|
|
66592
|
+
* 四个参数分别是: xml内容 是否合并 病程记录id:用来判断是否是病程记录和返回对应病程记录的坐标(处理多个不同病程记录的情况) 是否是最后一份病程记录,单独病历id
|
|
66589
66593
|
*/
|
|
66590
66594
|
async pintAllToPDF(t, r, o, n) {
|
|
66591
66595
|
const s = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), l = s.drawTree.paintStatus, c = s.vueController.getDocXml();
|
|
@@ -69885,22 +69889,24 @@ class DocController {
|
|
|
69885
69889
|
moveCaret() {
|
|
69886
69890
|
}
|
|
69887
69891
|
deleteRange(a, t, r) {
|
|
69888
|
-
var c, d;
|
|
69892
|
+
var c, d, u, f, p, m;
|
|
69889
69893
|
let o = a;
|
|
69890
69894
|
t || (o = a.normalize());
|
|
69891
69895
|
const n = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), s = n.enableChangeTracking;
|
|
69892
69896
|
let l = -1;
|
|
69893
69897
|
if ((n.drawTree.paintStatus === PaintState.psReview || n.drawTree.paintStatus === PaintState.psTrace || s) && o.npEnd.node instanceof TextNode) {
|
|
69894
|
-
const
|
|
69895
|
-
l =
|
|
69898
|
+
const g = n.docTree.styles[o.npEnd.node.styleIndex];
|
|
69899
|
+
l = g.creatorIndex === void 0 ? -1 : g.creatorIndex;
|
|
69896
69900
|
}
|
|
69897
69901
|
if ((n.drawTree.paintStatus === PaintState.psReview || n.drawTree.paintStatus === PaintState.psTrace || s) && r !== "update" && l === -1)
|
|
69898
69902
|
n.undoService.begin(), n.undoService.add(new NodeStyleUndoUnit(this._hoEditorFactoryID, o.startPath, o.endPath, new Operate("reviewDelete", "string"))), n.undoService.commit();
|
|
69899
69903
|
else {
|
|
69900
|
-
|
|
69904
|
+
let g = o.npEnd.node instanceof TextNode && ((c = o.npStart.node) == null ? void 0 : c.parentNode) !== o.npEnd.node.parentNode;
|
|
69905
|
+
((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);
|
|
69906
|
+
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
69907
|
n.undoService.begin();
|
|
69902
|
-
const
|
|
69903
|
-
return n.undoService.add(
|
|
69908
|
+
const v = new NodesDeleteUndoUnit(this._hoEditorFactoryID, o.startPath, y, r === "update");
|
|
69909
|
+
return n.undoService.add(v), n.undoService.commit(), v.isError;
|
|
69904
69910
|
}
|
|
69905
69911
|
}
|
|
69906
69912
|
//插入节点到指定位置
|
package/package.json
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hoeditor-web",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/hoeditor.mjs",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "vite --force --host --port 8079",
|
|
9
9
|
"test": "node_modules/mocha/bin/mocha --reporter spec --require ts-node/register tests/unit/*.test.ts",
|
|
10
|
-
"major": "npm
|
|
11
|
-
"minor": "npm
|
|
12
|
-
"patch": "npm
|
|
10
|
+
"major": "npm version major && npm run createVersion && npm run lib && npm publish . && cnpm sync hoeditor-web",
|
|
11
|
+
"minor": "npm version minor && npm run createVersion && npm run lib && npm publish . && cnpm sync hoeditor-web",
|
|
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",
|