@agile-team/mach-report 2.25.1 → 2.26.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/README.md +14 -8
- package/dist/ExcelBindingWizard-B418l44t.js +1578 -0
- package/dist/ExcelBindingWizard-C4FGVsY_.cjs +1 -0
- package/dist/{ParamEditor-CGfaweYX.cjs → ParamEditor-BemJE8n8.cjs} +1 -1
- package/dist/{ParamEditor-B7YVD28E.js → ParamEditor-XvMtf_XQ.js} +2 -2
- package/dist/{ReportBatchPanel-BRJt0TXp.cjs → ReportBatchPanel-CbY4fvXD.cjs} +1 -1
- package/dist/{ReportBatchPanel-BTKHtLTW.js → ReportBatchPanel-Ds0R_uXn.js} +37 -37
- package/dist/{ReportLabelStudio-BvK_WBke.cjs → ReportLabelStudio-DuTwN5er.cjs} +1 -1
- package/dist/{ReportLabelStudio-CZwqyO3t.js → ReportLabelStudio-ZFy79eRv.js} +26 -26
- package/dist/ReportParamPanel-Chxu4MTx.cjs +1 -0
- package/dist/{ReportParamPanel-DGXzBzl2.js → ReportParamPanel-Czm3OPo_.js} +216 -205
- package/dist/ReportPreview-C9c0Rp7Y.js +7380 -0
- package/dist/ReportPreview-CIMR4ERo.cjs +6 -0
- package/dist/{ReportTemplateLibrary-ClwxhnC0.cjs → ReportTemplateLibrary-C6lByc69.cjs} +1 -1
- package/dist/{ReportTemplateLibrary-C7sB0Jay.js → ReportTemplateLibrary-XJVoTDIz.js} +1 -1
- package/dist/{RuleEditor-CsDGFaWz.js → RuleEditor-CeNFPeOc.js} +5 -5
- package/dist/{RuleEditor-D-OdaGdR.cjs → RuleEditor-gggUkEwB.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-DAqR9zQi.cjs → TemplateOutlinePanel-B0e-umq2.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-CXOT7d1r.js → TemplateOutlinePanel-BWN4Y9iz.js} +2 -2
- package/dist/{TemplateReusePanel-Dcfx3Hba.js → TemplateReusePanel-CR-4OHoU.js} +2 -2
- package/dist/{TemplateReusePanel-ygIi-Ajz.cjs → TemplateReusePanel-Cthig1S1.cjs} +1 -1
- package/dist/{TemplateReviewPanel-COU8FqPq.js → TemplateReviewPanel-BkWzyNL4.js} +2 -2
- package/dist/{TemplateReviewPanel-DyGULVxr.cjs → TemplateReviewPanel-D8o2gDaK.cjs} +1 -1
- package/dist/analytics.cjs +1 -1
- package/dist/analytics.js +5 -5
- package/dist/artifact-integrity.json +106 -102
- package/dist/{assets-C4MIvzQ4.js → assets-BFTP-0WR.js} +2 -2
- package/dist/{assets-BYdpkTIt.cjs → assets-CZiZhTf2.cjs} +1 -1
- package/dist/{auto-D7x7QsWD.js → auto-C7udkeAa.js} +89 -88
- package/dist/auto-CXd2E2aZ.cjs +1 -0
- package/dist/capabilities-D8UU2clQ.cjs +1 -0
- package/dist/{capabilities-CN_kSVjO.js → capabilities-g0a2j9Yy.js} +50 -46
- package/dist/{charts-Cjw5AYkg.cjs → charts-D-Vg-ak9.cjs} +1 -1
- package/dist/{charts-CxJZ0XaY.js → charts-D48XCefN.js} +1 -1
- package/dist/computed-BQgBrma-.cjs +1 -0
- package/dist/{computed-f3pOqWLX.js → computed-CH3NYPOW.js} +198 -188
- package/dist/{data-bar-Bfh54sT4.js → data-bar-DjOgTLqu.js} +1 -1
- package/dist/{dataset-DL83majE.js → dataset-B8oTsC6o.js} +69 -66
- package/dist/dataset-D3OsyzG1.cjs +1 -0
- package/dist/designer-COuSUxZ1.cjs +2 -0
- package/dist/designer-CT4mlrr0.js +7997 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +83 -4
- package/dist/designer.d.ts +83 -4
- package/dist/designer.js +4 -4
- package/dist/{diagnostic-collector-gB07PHy2.js → diagnostic-collector-C-JBA016.js} +2 -2
- package/dist/dom-DgWc-DY1.js +452 -0
- package/dist/dom-Fk4NF-gN.cjs +1 -0
- package/dist/{encoding-Amq3XrtU.js → encoding-D480EM2r.js} +2 -2
- package/dist/{encoding-DRVXs5xm.cjs → encoding-tWc2Wn89.cjs} +1 -1
- package/dist/execution-result-7sG_mdcD.cjs +1 -0
- package/dist/execution-result-Ba65gieT.js +39 -0
- package/dist/{font-loader-p_SyTvqt.cjs → font-loader-BIxme_9g.cjs} +1 -1
- package/dist/{font-loader-D4NLIKJL.js → font-loader-CHmEwkHl.js} +1 -1
- package/dist/{grid-strokes-DkZEZvcI.js → grid-strokes-DsoICRjZ.js} +1 -1
- package/dist/import-range-BwT86Z3j.cjs +1 -0
- package/dist/import-range-D9p_blcb.js +98 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +25 -25
- package/dist/{json-snapshot-CBVWZvyC.js → json-snapshot-BZ0CIQln.js} +1142 -951
- package/dist/json-snapshot-DGFeI30h.cjs +2 -0
- package/dist/{matrix-b6T291xo.js → matrix-CB9TqTEy.js} +1 -1
- package/dist/{matrix-DUYPRL7t.cjs → matrix-CcqYOuq_.cjs} +1 -1
- package/dist/{pdf-DU8HelKd.js → pdf-DTR7fAIr.js} +3596 -3517
- package/dist/{pdf-C060D5UY.cjs → pdf-d9oJ6V0P.cjs} +49 -49
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.js +2 -2
- package/dist/{plugin-DHe8y5pD.cjs → plugin-B7Bi-1te.cjs} +1 -1
- package/dist/{plugin-BdCplNe1.js → plugin-OKDFQFS4.js} +1 -1
- package/dist/{prefill-Buy4NJ15.js → prefill-C8fF91JB.js} +3 -3
- package/dist/{prefill-Cw4ZYGXZ.cjs → prefill-C_Bf_AMo.cjs} +1 -1
- package/dist/{prepared-BlNeOjoO.cjs → prepared-BLhV7vdE.cjs} +1 -1
- package/dist/{prepared-CBJ7BkK0.js → prepared-DhgQ0d-h.js} +7 -7
- package/dist/protocol-CZ-BILne.cjs +1 -0
- package/dist/{protocol-CB19KXGr.js → protocol-DHO91-Jt.js} +3 -3
- package/dist/{record-bindings-Cv7lFiof.js → record-bindings-DBrCu6zO.js} +3 -3
- package/dist/{record-bindings-B7djSjNs.cjs → record-bindings-KEs-DKCS.cjs} +1 -1
- package/dist/region-binding-workflow-FSyIZge8.js +882 -0
- package/dist/region-binding-workflow-ikpY1Kbw.cjs +3 -0
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/rich-text-layout-BYbIc3eJ.cjs +3 -0
- package/dist/rich-text-layout-BtygMWZC.js +96 -0
- package/dist/runtime-B5HG8poy.cjs +1 -0
- package/dist/runtime-BsvAqz4a.js +204 -0
- package/dist/sbom.cdx.json +1 -1
- package/dist/server-node.cjs +5 -5
- package/dist/server-node.js +2323 -2120
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +35 -0
- package/dist/server.d.ts +35 -0
- package/dist/server.js +340 -328
- package/dist/style.css +1 -1
- package/dist/{template-catalog-CM6U_RlD.js → template-catalog-BbrN9dgu.js} +5 -5
- package/dist/{template-catalog-Cj66M84u.cjs → template-catalog-DDH-5J57.cjs} +1 -1
- package/dist/{template-fragments-BDxdCuMD.js → template-fragments-CUTE8-_I.js} +3 -3
- package/dist/{template-fragments-DbKdxI1z.cjs → template-fragments-cyAQu7aw.cjs} +1 -1
- package/dist/{template-registry-B-AK1oam.cjs → template-registry-D24Z8aQf.cjs} +1 -1
- package/dist/{template-registry-DeVgwEZj.js → template-registry-PSuLsnyq.js} +4 -4
- package/dist/{template-serialization-CqQY4zDg.cjs → template-serialization-BOUidUlh.cjs} +1 -1
- package/dist/{template-serialization-CWmHq7lX.js → template-serialization-BgGWYV_1.js} +1 -1
- package/dist/{textwrap-BywMBMXM.js → textwrap-Bt_tnI6V.js} +1 -1
- package/dist/vue/async.d.cts +46 -3
- package/dist/vue/async.d.ts +46 -3
- package/dist/vue/index.d.cts +217 -25
- package/dist/vue/index.d.ts +217 -25
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +434 -202
- package/dist/workbook-session-BJfZVp4q.cjs +29 -0
- package/dist/{workbook-session-B6hRjTyX.js → workbook-session-DRnMjIFK.js} +2377 -2350
- package/dist/worker.cjs +1 -1
- package/dist/worker.js +4 -4
- package/dist/xlsx.cjs +1 -1
- package/dist/xlsx.d.cts +27 -2
- package/dist/xlsx.d.ts +27 -2
- package/dist/xlsx.js +15 -15
- package/package.json +1 -1
- package/dist/ExcelBindingWizard-bs3F4dD8.js +0 -1486
- package/dist/ExcelBindingWizard-jSdjBtWw.cjs +0 -1
- package/dist/ReportParamPanel-B27IGJjk.cjs +0 -1
- package/dist/ReportPreview-CnxaDTCO.js +0 -7170
- package/dist/ReportPreview-DqFBcsJQ.cjs +0 -6
- package/dist/auto-mPK9W0y5.cjs +0 -1
- package/dist/capabilities-D4nfhcvB.cjs +0 -1
- package/dist/computed-DK6BruFz.cjs +0 -1
- package/dist/dataset-IrlXbUvh.cjs +0 -1
- package/dist/designer-B597ZdC0.js +0 -7595
- package/dist/designer-DFIdv_n7.cjs +0 -2
- package/dist/dom-CXWMmwh-.cjs +0 -1
- package/dist/dom-DxdCMLzs.js +0 -452
- package/dist/json-snapshot-DCFEtfFw.cjs +0 -2
- package/dist/protocol-BU_4sXP0.cjs +0 -1
- package/dist/region-binding-workflow-EYxvUYJ-.js +0 -977
- package/dist/region-binding-workflow-NdkMSFCh.cjs +0 -3
- package/dist/rich-text-layout-Ch_N0Ubu.js +0 -52
- package/dist/rich-text-layout-yJGuThtC.cjs +0 -3
- package/dist/runtime-B5d_lQNQ.js +0 -227
- package/dist/runtime-BRx8Agqr.cjs +0 -1
- package/dist/workbook-session-BclW7KKH.cjs +0 -29
package/dist/vue.js
CHANGED
|
@@ -1,26 +1,256 @@
|
|
|
1
|
-
import { createReportSource as
|
|
1
|
+
import { createReportSource as le, ReportCellEditError as oe } from "@agile-team/mach-report";
|
|
2
2
|
export * from "@agile-team/mach-report";
|
|
3
|
-
import { P as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
import { c as A, R as fe, a as de, b as ge, P as Y, r as pe } from "./ReportPreview-C9c0Rp7Y.js";
|
|
4
|
+
import { d as mt, e as vt, _ as yt, f as ht, g as wt, h as Et, i as Pt, j as bt, k as Rt, l as Ct, m as St, n as _t, o as Tt, p as At, q as xt, s as It, t as Ot, u as Dt, v as Mt, w as kt, x as Nt } from "./ReportPreview-C9c0Rp7Y.js";
|
|
5
|
+
import { defineComponent as me, computed as D, shallowRef as j, ref as O, watch as ve, onMounted as ye, onUnmounted as he, openBlock as k, createElementBlock as N, normalizeStyle as we, unref as Ee, createElementVNode as J, toDisplayString as F, createCommentVNode as $, createBlock as Pe, withCtx as X, createVNode as Z, inject as be } from "vue";
|
|
6
|
+
import { a as Re } from "./execution-result-Ba65gieT.js";
|
|
7
|
+
import { z as T, w as B, A as Ce } from "./diagnostic-collector-C-JBA016.js";
|
|
8
|
+
import { M as S, u as Se, r as _e, D as Te, t as Ae } from "./ReportParamPanel-Czm3OPo_.js";
|
|
9
|
+
import { a as Lt, b as Ut, c as jt, d as Bt, e as qt, P as Vt, R as Wt, S as Gt, f as zt, g as Ht, n as Kt, p as Yt, h as Jt, i as $t, j as Xt, s as Zt, k as Qt } from "./ReportParamPanel-Czm3OPo_.js";
|
|
10
|
+
import { s as Q, v as xe } from "./json-snapshot-BZ0CIQln.js";
|
|
11
|
+
import { b as se } from "./template-registry-PSuLsnyq.js";
|
|
12
|
+
import { _ as Ie } from "./_plugin-vue_export-helper-8SL1F89S.js";
|
|
13
|
+
import { M as Oe } from "./injection-keys-e85udZCp.js";
|
|
14
|
+
import { a as tr, b as rr, c as nr } from "./injection-keys-e85udZCp.js";
|
|
15
|
+
import { M as sr, m as ar } from "./plugin-OKDFQFS4.js";
|
|
16
|
+
const De = 3, Me = 8e6, ke = 16e6, Ne = 7;
|
|
17
|
+
function P(e) {
|
|
18
|
+
return new S("validate", e);
|
|
19
|
+
}
|
|
20
|
+
function Fe(e) {
|
|
21
|
+
return !e || ![e.scope, e.id, e.version].every((t) => typeof t == "string" && !!t.trim() && t.length <= 256) || !["building", "complete", "failed"].includes(e.state) || !Number.isSafeInteger(e.pageCount) || e.pageCount < 0 || e.pageCount > 1e5 || e.revision !== e.pageCount + (e.state === "building" ? 0 : 1) || !Number.isSafeInteger(e.bytes) || e.bytes < 0 || !e.plan || "pages" in e.plan || !se({ ...e.plan, pages: [] }).ok ? !1 : e.state !== "failed" || !!e.failure && ["cancelled", "generation"].includes(e.failure.code) && typeof e.failure.message == "string" && e.failure.message.length <= 1024;
|
|
22
|
+
}
|
|
23
|
+
function q(e, t) {
|
|
24
|
+
if (Object.is(e, t)) return !0;
|
|
25
|
+
if (!e || !t || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
26
|
+
const o = e, r = t, n = Object.keys(o);
|
|
27
|
+
return n.length === Object.keys(r).length && n.every((a) => Object.prototype.hasOwnProperty.call(r, a) && q(o[a], r[a]));
|
|
28
|
+
}
|
|
29
|
+
function Le(e, t) {
|
|
30
|
+
if (t) {
|
|
31
|
+
if (e.scope !== t.scope || e.id !== t.id || e.version !== t.version) throw P("文档版本已变化,请刷新后重新打开");
|
|
32
|
+
if (e.revision < t.revision || t.state !== "building" && (e.revision !== t.revision || e.state !== t.state)) throw P("文档修订发生回退或终态被修改");
|
|
33
|
+
if (e.pageCount < t.pageCount || e.bytes < t.bytes || !q(e.plan, t.plan)) throw P("文档已提交边界回退或计划头被修改");
|
|
34
|
+
if (t.state !== "building" && !q(e, t)) throw P("终态文档清单被修改");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function Ue(e, t, o) {
|
|
38
|
+
const r = Q(e, { maxBytes: Me, check: () => T(t.signal), error: (l, c) => P(c) });
|
|
39
|
+
if (!Fe(r.manifest) || !Array.isArray(r.pages)) throw P("文档页窗口清单无效");
|
|
40
|
+
const { manifest: n, pages: a, nextPage: E } = r;
|
|
41
|
+
if (Q(n, { maxBytes: 1e6, error: (l, c) => P(c) }), Le(n, o), t.version !== void 0 && t.version !== n.version) throw P("文档返回了不同版本");
|
|
42
|
+
const d = Math.min(t.fromPage, n.pageCount);
|
|
43
|
+
if (a.length > t.limit || E !== d + a.length || E > n.pageCount || d < n.pageCount && a.length === 0) throw P("文档页窗口边界无效");
|
|
44
|
+
if (!se({ ...n.plan, pages: a }).ok) throw P("文档页内容无效");
|
|
45
|
+
return r;
|
|
46
|
+
}
|
|
47
|
+
function ee(e) {
|
|
48
|
+
const t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
49
|
+
let r, n = 0, a = 0, E = !1;
|
|
50
|
+
function d(s, g) {
|
|
51
|
+
const f = new TextEncoder().encode(JSON.stringify(g)).byteLength, w = t.get(s);
|
|
52
|
+
for (w && (n -= w.bytes), t.delete(s), t.set(s, { page: g, bytes: f }), n += f; t.size > Ne || n > ke; ) {
|
|
53
|
+
const m = t.keys().next().value;
|
|
54
|
+
n -= t.get(m).bytes, t.delete(m);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function l(s) {
|
|
58
|
+
const g = o.get(s);
|
|
59
|
+
if (g) return g;
|
|
60
|
+
const f = new AbortController(), w = a, m = { fromPage: s, limit: De, version: r?.version, signal: f.signal }, v = { controller: f, users: 0, promise: B(Promise.resolve().then(() => (T(f.signal), e.load({ ...m }))), f.signal).then((y) => {
|
|
61
|
+
if (T(f.signal), w !== a) throw P("文档加载已被替换");
|
|
62
|
+
const b = Ue(y, m, r);
|
|
63
|
+
return r = b.manifest, b.pages.forEach((_, h) => d(s + h, _)), b;
|
|
64
|
+
}).finally(() => {
|
|
65
|
+
o.get(s) === v && o.delete(s);
|
|
66
|
+
}) };
|
|
67
|
+
return o.set(s, v), v;
|
|
68
|
+
}
|
|
69
|
+
async function c(s, g) {
|
|
70
|
+
if (T(g), E || !Number.isSafeInteger(s) || s < 0 || s >= 1e5) throw P("文档页索引无效或预览已关闭");
|
|
71
|
+
const f = t.get(s);
|
|
72
|
+
if (f && r)
|
|
73
|
+
return t.delete(s), t.set(s, f), A({ manifest: r, page: f.page });
|
|
74
|
+
const w = s, m = l(w);
|
|
75
|
+
m.users++;
|
|
76
|
+
try {
|
|
77
|
+
const v = await B(m.promise, g);
|
|
78
|
+
if (T(g), s >= v.manifest.pageCount && (v.manifest.pageCount > 0 || s > 0)) throw P("页码超出文档范围");
|
|
79
|
+
const y = v.pages[s - w];
|
|
80
|
+
if (!y && s < v.manifest.pageCount) throw P("目标页未返回,请缩小页窗口");
|
|
81
|
+
return A({ manifest: v.manifest, ...y ? { page: y } : {} });
|
|
82
|
+
} finally {
|
|
83
|
+
--m.users === 0 && o.get(w) === m && (o.delete(w), m.controller.abort());
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function p() {
|
|
87
|
+
a++;
|
|
88
|
+
for (const s of o.values()) s.controller.abort();
|
|
89
|
+
o.clear(), t.clear(), n = 0, r = void 0;
|
|
90
|
+
}
|
|
91
|
+
return { load: c, reset: p, dispose: () => {
|
|
92
|
+
p(), E = !0;
|
|
93
|
+
}, get cachedPages() {
|
|
94
|
+
return t.size;
|
|
95
|
+
}, get cachedBytes() {
|
|
96
|
+
return n;
|
|
97
|
+
} };
|
|
98
|
+
}
|
|
99
|
+
const je = ["aria-busy"], Be = {
|
|
100
|
+
class: "mrp-document-status",
|
|
101
|
+
role: "status"
|
|
102
|
+
}, qe = {
|
|
103
|
+
key: 0,
|
|
104
|
+
class: "mrp-document-error",
|
|
105
|
+
role: "alert"
|
|
106
|
+
}, Ve = /* @__PURE__ */ me({
|
|
107
|
+
__name: "ReportDocumentPreview",
|
|
108
|
+
props: {
|
|
109
|
+
source: {},
|
|
110
|
+
height: { default: "100vh" },
|
|
111
|
+
messages: { default: void 0 },
|
|
112
|
+
preset: { default: void 0 }
|
|
113
|
+
},
|
|
114
|
+
emits: ["loaded", "error", "exported"],
|
|
115
|
+
setup(e, { expose: t, emit: o }) {
|
|
116
|
+
const r = e, n = o, a = Se(), E = D(() => _e(a.value, r.preset)), d = D(() => ({ ...Te, ...E.value.messages, ...r.messages })), l = j(), c = j(), p = O(1), s = O(!1), g = O(!1), f = O(""), w = O(!1);
|
|
117
|
+
let m = ee(r.source), v = 0, y = !1, b, _;
|
|
118
|
+
const h = async () => A(c.value), W = O(""), G = D(() => !!r.source.export && l.value?.state === "complete" && l.value.pageCount > 0 && !w.value), ie = D(() => {
|
|
119
|
+
if (s.value) return d.value.documentLoading;
|
|
120
|
+
const i = l.value;
|
|
121
|
+
return i ? (i.state === "building" ? d.value.documentBuilding : i.state === "failed" ? d.value.documentFailed : d.value.documentComplete).replace("{pages}", String(i.pageCount)) : "";
|
|
122
|
+
});
|
|
123
|
+
function L(i) {
|
|
124
|
+
f.value = i instanceof Error ? i.message : String(i), n("error", f.value);
|
|
125
|
+
}
|
|
126
|
+
function M() {
|
|
127
|
+
v++, b?.abort(), _?.abort(), b = void 0, _ = void 0, s.value = !1, g.value = !1;
|
|
128
|
+
}
|
|
129
|
+
function ce(i) {
|
|
130
|
+
if (i.target instanceof Element && i.target.closest("input,textarea,select,[contenteditable=true]") || i.ctrlKey || i.metaKey || i.altKey || s.value || g.value || !l.value?.pageCount) return;
|
|
131
|
+
const C = { PageDown: p.value + 1, PageUp: p.value - 1, Home: 1, End: l.value.pageCount }[i.key];
|
|
132
|
+
C !== void 0 && (i.preventDefault(), i.stopPropagation(), x(Math.max(1, Math.min(C, l.value.pageCount))));
|
|
133
|
+
}
|
|
134
|
+
async function x(i) {
|
|
135
|
+
if (!Number.isSafeInteger(i) || i < 1 || l.value && i > l.value.pageCount) throw new S("param", d.value.pageJumpInvalid ?? "请输入有效页码");
|
|
136
|
+
b?.abort();
|
|
137
|
+
const R = new AbortController(), C = ++v;
|
|
138
|
+
b = R, s.value = !0, f.value = "";
|
|
139
|
+
try {
|
|
140
|
+
const u = await m.load(i - 1, R.signal);
|
|
141
|
+
if (T(R.signal), C !== v) return;
|
|
142
|
+
l.value = u.manifest, p.value = i, w.value = !1, c.value = { ...u.manifest.plan, pages: u.page ? [u.page] : [] }, W.value = JSON.stringify([u.manifest.scope, u.manifest.id, u.manifest.version, i]), n("loaded", A(u.manifest));
|
|
143
|
+
} catch (u) {
|
|
144
|
+
!R.signal.aborted && C === v && (w.value = !0, L(u));
|
|
145
|
+
} finally {
|
|
146
|
+
C === v && (s.value = !1, b = void 0);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
async function z() {
|
|
150
|
+
M(), m.reset(), w.value = !!c.value, l.value = void 0, await x(1);
|
|
151
|
+
}
|
|
152
|
+
async function H(i) {
|
|
153
|
+
const R = r.source, C = l.value;
|
|
154
|
+
if (!R.export || !C || !G.value || s.value || g.value) throw new S("export", d.value.documentFullExport);
|
|
155
|
+
const u = new AbortController();
|
|
156
|
+
_ = u, g.value = !0;
|
|
157
|
+
try {
|
|
158
|
+
const I = await B(R.export({ version: C.version, format: i, signal: u.signal }), u.signal);
|
|
159
|
+
if (T(u.signal), Re(I, i), R !== r.source || l.value?.version !== C.version || I.stats.pages !== C.pageCount) throw new S("export", "完整文档导出的版本或页数不一致");
|
|
160
|
+
return n("exported", I), I;
|
|
161
|
+
} finally {
|
|
162
|
+
_ === u && (g.value = !1, _ = void 0);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
async function ue(i) {
|
|
166
|
+
if (i !== "pdf" && i !== "xlsx") return;
|
|
167
|
+
const R = v, C = r.source;
|
|
168
|
+
try {
|
|
169
|
+
const u = await H(i), I = new Blob([Uint8Array.from(u.bytes).buffer], { type: u.contentType }), K = URL.createObjectURL(I), U = document.createElement("a");
|
|
170
|
+
U.href = K, U.download = `report.${i}`, U.click(), setTimeout(() => URL.revokeObjectURL(K), 1e4);
|
|
171
|
+
} catch (u) {
|
|
172
|
+
if (R !== v || C !== r.source || u && typeof u == "object" && "name" in u && u.name === "AbortError") return;
|
|
173
|
+
L(u);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return ve(() => r.source, () => {
|
|
177
|
+
M(), m.dispose(), m = ee(r.source), c.value = void 0, l.value = void 0, y && x(1);
|
|
178
|
+
}), ye(() => {
|
|
179
|
+
y = !0, x(1);
|
|
180
|
+
}), he(() => {
|
|
181
|
+
y = !1, M(), m.dispose();
|
|
182
|
+
}), t({ reload: z, gotoPage: x, cancel: M, export: H, state: D(() => A({ manifest: l.value ?? null, currentPage: p.value, loading: s.value, exporting: g.value, error: f.value })) }), (i, R) => (k(), N("section", {
|
|
183
|
+
class: "mrp-document",
|
|
184
|
+
style: we({ ...Ee(Ae)(E.value.theme), height: e.height }),
|
|
185
|
+
"aria-busy": s.value || g.value,
|
|
186
|
+
onKeydownCapture: ce
|
|
187
|
+
}, [
|
|
188
|
+
J("div", Be, [
|
|
189
|
+
J("span", null, F(ie.value), 1),
|
|
190
|
+
s.value || g.value ? (k(), N("button", {
|
|
191
|
+
key: 0,
|
|
192
|
+
type: "button",
|
|
193
|
+
onClick: M
|
|
194
|
+
}, F(d.value.documentCancel), 1)) : (k(), N("button", {
|
|
195
|
+
key: 1,
|
|
196
|
+
type: "button",
|
|
197
|
+
onClick: z
|
|
198
|
+
}, F(d.value.documentRefresh), 1))
|
|
199
|
+
]),
|
|
200
|
+
f.value ? (k(), N("div", qe, F(f.value), 1)) : $("", !0),
|
|
201
|
+
c.value ? (k(), Pe(fe, {
|
|
202
|
+
key: 1,
|
|
203
|
+
"report-id": W.value,
|
|
204
|
+
fetcher: h,
|
|
205
|
+
height: "100%",
|
|
206
|
+
messages: d.value,
|
|
207
|
+
preset: e.preset,
|
|
208
|
+
editable: !1,
|
|
209
|
+
"excel-import": !1,
|
|
210
|
+
prefill: !1,
|
|
211
|
+
"data-comparison": !1,
|
|
212
|
+
"show-params": !1,
|
|
213
|
+
"show-export": G.value,
|
|
214
|
+
"show-print": !1,
|
|
215
|
+
"show-pdf-window": !1,
|
|
216
|
+
"show-settings": !1,
|
|
217
|
+
toolbar: { search: !1, thumbnails: !1, exportFormats: [] },
|
|
218
|
+
interaction: { navigation: !1, calculations: !1 },
|
|
219
|
+
onError: L
|
|
220
|
+
}, {
|
|
221
|
+
export: X(() => [
|
|
222
|
+
Z(ge, {
|
|
223
|
+
messages: d.value,
|
|
224
|
+
formats: ["pdf", "xlsx"],
|
|
225
|
+
busy: s.value || g.value,
|
|
226
|
+
onExport: ue
|
|
227
|
+
}, null, 8, ["messages", "busy"])
|
|
228
|
+
]),
|
|
229
|
+
pagination: X(() => [
|
|
230
|
+
Z(de, {
|
|
231
|
+
"page-count": l.value?.pageCount ?? 0,
|
|
232
|
+
"current-page": p.value,
|
|
233
|
+
messages: d.value,
|
|
234
|
+
busy: s.value || g.value,
|
|
235
|
+
onGoto: x
|
|
236
|
+
}, null, 8, ["page-count", "current-page", "messages", "busy"])
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
}, 8, ["report-id", "messages", "preset", "show-export"])) : $("", !0)
|
|
240
|
+
], 44, je));
|
|
241
|
+
}
|
|
242
|
+
}), ct = /* @__PURE__ */ Ie(Ve, [["__scopeId", "data-v-69238bdb"]]);
|
|
243
|
+
function ut(e) {
|
|
244
|
+
const t = le(e), o = async (r) => {
|
|
245
|
+
if (r.reportIds.length === 0) throw new Y("缺少报表 ID");
|
|
246
|
+
for (const n of r.reportIds)
|
|
17
247
|
if (!Object.prototype.hasOwnProperty.call(e, n) || !e[n])
|
|
18
|
-
throw new
|
|
19
|
-
return r
|
|
248
|
+
throw new Y(`本地模板 ${n} 不存在`);
|
|
249
|
+
return t(r);
|
|
20
250
|
};
|
|
21
|
-
return o.getParamDefs =
|
|
251
|
+
return o.getParamDefs = t.getParamDefs, o;
|
|
22
252
|
}
|
|
23
|
-
const
|
|
253
|
+
const We = Object.freeze({
|
|
24
254
|
loading: !1,
|
|
25
255
|
hasPlan: !1,
|
|
26
256
|
pageCount: 0,
|
|
@@ -32,300 +262,302 @@ const L = Object.freeze({
|
|
|
32
262
|
error: null,
|
|
33
263
|
pdfFont: Object.freeze({ status: "unchecked", fontUrl: "" })
|
|
34
264
|
});
|
|
35
|
-
function
|
|
36
|
-
const e =
|
|
265
|
+
function lt() {
|
|
266
|
+
const e = j(null), t = () => e.value?.state ?? We, o = Object.freeze({
|
|
37
267
|
get loading() {
|
|
38
|
-
return
|
|
268
|
+
return t().loading;
|
|
39
269
|
},
|
|
40
270
|
get stale() {
|
|
41
|
-
return
|
|
271
|
+
return t().stale ?? !1;
|
|
42
272
|
},
|
|
43
273
|
get hasPlan() {
|
|
44
|
-
return
|
|
274
|
+
return t().hasPlan;
|
|
45
275
|
},
|
|
46
276
|
get pageCount() {
|
|
47
|
-
return
|
|
277
|
+
return t().pageCount;
|
|
48
278
|
},
|
|
49
279
|
get currentPage() {
|
|
50
|
-
return
|
|
280
|
+
return t().currentPage;
|
|
51
281
|
},
|
|
52
282
|
get exporting() {
|
|
53
|
-
return
|
|
283
|
+
return t().exporting;
|
|
54
284
|
},
|
|
55
285
|
get printing() {
|
|
56
|
-
return
|
|
286
|
+
return t().printing;
|
|
57
287
|
},
|
|
58
288
|
get canExport() {
|
|
59
|
-
return
|
|
289
|
+
return t().canExport;
|
|
60
290
|
},
|
|
61
291
|
get canPrint() {
|
|
62
|
-
return
|
|
292
|
+
return t().canPrint;
|
|
63
293
|
},
|
|
64
294
|
get error() {
|
|
65
|
-
return
|
|
295
|
+
return t().error;
|
|
66
296
|
},
|
|
67
297
|
get pdfFont() {
|
|
68
|
-
return
|
|
298
|
+
return t().pdfFont;
|
|
69
299
|
},
|
|
70
300
|
get editing() {
|
|
71
|
-
return
|
|
301
|
+
return t().editing ?? !1;
|
|
72
302
|
},
|
|
73
303
|
get saving() {
|
|
74
|
-
return
|
|
304
|
+
return t().saving ?? !1;
|
|
75
305
|
},
|
|
76
306
|
get importing() {
|
|
77
|
-
return
|
|
307
|
+
return t().importing ?? !1;
|
|
78
308
|
},
|
|
79
309
|
get dirty() {
|
|
80
|
-
return
|
|
310
|
+
return t().dirty ?? !1;
|
|
81
311
|
},
|
|
82
312
|
get pendingLocalChanges() {
|
|
83
|
-
return
|
|
313
|
+
return t().pendingLocalChanges ?? !1;
|
|
84
314
|
},
|
|
85
315
|
get task() {
|
|
86
|
-
return
|
|
316
|
+
return t().task ?? null;
|
|
87
317
|
},
|
|
88
318
|
get diagnostics() {
|
|
89
|
-
return
|
|
319
|
+
return t().diagnostics ?? [];
|
|
90
320
|
},
|
|
91
321
|
get reportIds() {
|
|
92
|
-
return
|
|
322
|
+
return t().reportIds ?? [];
|
|
93
323
|
},
|
|
94
324
|
get params() {
|
|
95
|
-
return
|
|
325
|
+
return t().params ?? {};
|
|
96
326
|
},
|
|
97
327
|
get canUndo() {
|
|
98
|
-
return
|
|
328
|
+
return t().canUndo ?? !1;
|
|
99
329
|
},
|
|
100
330
|
get canRedo() {
|
|
101
|
-
return
|
|
331
|
+
return t().canRedo ?? !1;
|
|
102
332
|
},
|
|
103
333
|
get changeCount() {
|
|
104
|
-
return
|
|
334
|
+
return t().changeCount ?? 0;
|
|
105
335
|
},
|
|
106
336
|
get selection() {
|
|
107
|
-
return
|
|
337
|
+
return t().selection ?? null;
|
|
108
338
|
}
|
|
109
339
|
});
|
|
110
|
-
function
|
|
340
|
+
function r() {
|
|
111
341
|
if (!e.value)
|
|
112
|
-
throw new
|
|
342
|
+
throw new S("config", "报表预览尚未挂载,请在 ready 后调用控制器");
|
|
113
343
|
return e.value;
|
|
114
344
|
}
|
|
115
345
|
return {
|
|
116
346
|
ref(n) {
|
|
117
|
-
const
|
|
118
|
-
e.value =
|
|
347
|
+
const a = n;
|
|
348
|
+
e.value = a && typeof a.reload == "function" && typeof a.print == "function" && typeof a.exportAs == "function" && typeof a.openPdfWindow == "function" && typeof a.gotoPage == "function" && typeof a.setParams == "function" ? a : null;
|
|
119
349
|
},
|
|
120
350
|
ready: D(() => e.value !== null),
|
|
121
351
|
state: o,
|
|
122
352
|
async checkPdfFont() {
|
|
123
|
-
const n =
|
|
353
|
+
const n = r();
|
|
124
354
|
return n.checkPdfFont ? n.checkPdfFont() : { status: "unverified", fontUrl: "", message: "旧自定义控制器未提供字体检查,请由宿主确认字体配置" };
|
|
125
355
|
},
|
|
126
356
|
cancelTask() {
|
|
127
|
-
|
|
357
|
+
r().cancelTask?.();
|
|
128
358
|
},
|
|
129
359
|
async confirmDiscard(n) {
|
|
130
|
-
return await
|
|
360
|
+
return await r().confirmDiscard?.(n) ?? !0;
|
|
131
361
|
},
|
|
132
362
|
getOutputDiagnostics(n) {
|
|
133
|
-
return
|
|
363
|
+
return r().getOutputDiagnostics?.(n) ?? [];
|
|
134
364
|
},
|
|
135
365
|
async reload() {
|
|
136
|
-
await
|
|
366
|
+
await r().reload();
|
|
137
367
|
},
|
|
138
368
|
async print() {
|
|
139
|
-
await
|
|
369
|
+
await r().print();
|
|
140
370
|
},
|
|
141
371
|
async exportAs(n) {
|
|
142
|
-
await
|
|
372
|
+
await r().exportAs(n);
|
|
143
373
|
},
|
|
144
374
|
openPdfWindow() {
|
|
145
|
-
|
|
375
|
+
r().openPdfWindow();
|
|
146
376
|
},
|
|
147
377
|
gotoPage(n) {
|
|
148
|
-
|
|
378
|
+
r().gotoPage(n);
|
|
149
379
|
},
|
|
150
|
-
async setParams(n,
|
|
151
|
-
await
|
|
380
|
+
async setParams(n, a) {
|
|
381
|
+
await r().setParams(n, a);
|
|
152
382
|
},
|
|
153
|
-
async importExcel(n,
|
|
154
|
-
const
|
|
155
|
-
if (!
|
|
156
|
-
return
|
|
383
|
+
async importExcel(n, a) {
|
|
384
|
+
const E = r();
|
|
385
|
+
if (!E.importExcel) throw new S("config", "旧自定义控制器未提供 Excel 导入");
|
|
386
|
+
return E.importExcel(n, a);
|
|
157
387
|
},
|
|
158
388
|
getPlan() {
|
|
159
|
-
return
|
|
389
|
+
return r().getPlan?.() ?? null;
|
|
160
390
|
},
|
|
161
391
|
getChanges() {
|
|
162
|
-
return
|
|
163
|
-
},
|
|
164
|
-
getDifferences: () =>
|
|
165
|
-
undo: async () => await
|
|
166
|
-
redo: async () => await
|
|
167
|
-
restoreChanges: async () => await
|
|
168
|
-
getSelection: () =>
|
|
169
|
-
focusCell: async (n,
|
|
170
|
-
focusField: async (n) => await
|
|
171
|
-
copySelection: () =>
|
|
172
|
-
pasteSelection: async (n) => await
|
|
392
|
+
return r().getChanges?.() ?? [];
|
|
393
|
+
},
|
|
394
|
+
getDifferences: () => r().getDifferences?.() ?? [],
|
|
395
|
+
undo: async () => await r().undo?.() ?? !1,
|
|
396
|
+
redo: async () => await r().redo?.() ?? !1,
|
|
397
|
+
restoreChanges: async () => await r().restoreChanges?.() ?? !1,
|
|
398
|
+
getSelection: () => r().getSelection?.() ?? null,
|
|
399
|
+
focusCell: async (n, a) => await r().focusCell?.(n, a) ?? !1,
|
|
400
|
+
focusField: async (n) => await r().focusField?.(n) ?? !1,
|
|
401
|
+
copySelection: () => r().copySelection?.() ?? "",
|
|
402
|
+
pasteSelection: async (n) => await r().pasteSelection?.(n) ?? !1
|
|
173
403
|
};
|
|
174
404
|
}
|
|
175
|
-
function
|
|
176
|
-
return
|
|
405
|
+
function ft() {
|
|
406
|
+
return be(Oe, null);
|
|
177
407
|
}
|
|
178
|
-
function
|
|
408
|
+
function V(e) {
|
|
179
409
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
180
410
|
}
|
|
181
|
-
function
|
|
182
|
-
return Array.isArray(e) && e.every((
|
|
411
|
+
function Ge(e) {
|
|
412
|
+
return Array.isArray(e) && e.every((t) => V(t) && typeof t.code == "string" && typeof t.message == "string" && ["info", "warning", "error"].includes(t.severity) && (t.path === void 0 || typeof t.path == "string") && xe(t));
|
|
183
413
|
}
|
|
184
|
-
function
|
|
414
|
+
function ae(e) {
|
|
185
415
|
return typeof e == "number" && Number.isFinite(e) && (!Number.isInteger(e) || Number.isSafeInteger(e));
|
|
186
416
|
}
|
|
187
|
-
function
|
|
188
|
-
return e == null || typeof e == "string" || typeof e == "boolean" ||
|
|
417
|
+
function ze(e) {
|
|
418
|
+
return e == null || typeof e == "string" || typeof e == "boolean" || ae(e);
|
|
189
419
|
}
|
|
190
|
-
function
|
|
191
|
-
return e === void 0 || typeof e == "string" && !!e.trim() ||
|
|
420
|
+
function He(e) {
|
|
421
|
+
return e === void 0 || typeof e == "string" && !!e.trim() || ae(e);
|
|
192
422
|
}
|
|
193
|
-
function
|
|
194
|
-
return Array.isArray(e) && e.every((o) =>
|
|
423
|
+
function Ke(e, t) {
|
|
424
|
+
return Array.isArray(e) && e.every((o) => V(o) && Number.isSafeInteger(o.editIndex) && o.editIndex >= 0 && o.editIndex < t && typeof o.code == "string" && typeof o.message == "string" && ze(o.currentValue) && He(o.revision));
|
|
195
425
|
}
|
|
196
|
-
function
|
|
426
|
+
function Ye(e, t) {
|
|
197
427
|
let o;
|
|
198
|
-
if (!
|
|
428
|
+
if (!V(e) || typeof e.revision != "string" || !e.revision.trim() ? o = "非空 revision(请先在适配器解包业务响应)" : e.sourceToken !== void 0 && typeof e.sourceToken != "string" ? o = "字符串 sourceToken" : e.diagnostics !== void 0 && !Ge(e.diagnostics) ? o = "结构化 diagnostics" : e.conflicts !== void 0 && !Ke(e.conflicts, t) && (o = "有效 editIndex/code/message/currentValue/revision conflicts"), o) throw new S("edit", `ReportProvider.save 必须返回${o};服务器可能已提交,请重新查询确认后再编辑`);
|
|
199
429
|
}
|
|
200
|
-
function
|
|
430
|
+
function te(e) {
|
|
201
431
|
return typeof e == "function" ? e() : e;
|
|
202
432
|
}
|
|
203
|
-
function
|
|
204
|
-
const o = new Set(e.flatMap((
|
|
433
|
+
function re(e, t) {
|
|
434
|
+
const o = new Set(e.flatMap((r) => r.source?.[t] === void 0 ? [] : [String(r.source[t])]));
|
|
205
435
|
return o.size === 1 ? [...o][0] : void 0;
|
|
206
436
|
}
|
|
207
|
-
function
|
|
208
|
-
return typeof e == "function" ? e() :
|
|
437
|
+
function ne(e, t, o, r, n, a = !1) {
|
|
438
|
+
return typeof e == "function" ? e() : a ? r ?? n?.[o] ?? re(t, o) ?? e : re(t, o) ?? r ?? e ?? n?.[o];
|
|
209
439
|
}
|
|
210
|
-
function
|
|
211
|
-
const
|
|
212
|
-
if (n && (!
|
|
213
|
-
const
|
|
214
|
-
if (!
|
|
215
|
-
if (n && new Set(o.map((
|
|
216
|
-
const
|
|
440
|
+
function Je(e, t, o) {
|
|
441
|
+
const r = t.query, n = e.reportId === void 0;
|
|
442
|
+
if (n && (!r || r.reportIds.length !== 1)) throw new S("config", "自动业务保存需要当前成功查询的单个报表上下文");
|
|
443
|
+
const a = e.reportId === void 0 ? r.reportIds[0] : te(e.reportId);
|
|
444
|
+
if (!a.trim()) throw new S("config", "业务保存缺少报表 ID");
|
|
445
|
+
if (n && new Set(o.map((c) => c.source?.sourceScope)).size > 1) throw new oe("atomic");
|
|
446
|
+
const E = { ...te(e.params ?? r?.params ?? {}) }, d = r?.sources.filter((c) => c.reportId === a) ?? [], l = d.length === 1 ? d[0] : void 0;
|
|
217
447
|
return {
|
|
218
|
-
reportId:
|
|
219
|
-
params:
|
|
220
|
-
source:
|
|
448
|
+
reportId: a,
|
|
449
|
+
params: E,
|
|
450
|
+
source: l,
|
|
221
451
|
automatic: n,
|
|
222
|
-
identity: JSON.stringify([
|
|
452
|
+
identity: JSON.stringify([a, E, r?.queryId, r?.sources])
|
|
223
453
|
};
|
|
224
454
|
}
|
|
225
|
-
function
|
|
455
|
+
function $e(e) {
|
|
226
456
|
return e.requestId ?? globalThis.crypto?.randomUUID?.() ?? `mr-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
|
|
227
457
|
}
|
|
228
|
-
function
|
|
229
|
-
if (!e.save) throw new
|
|
230
|
-
let o = "",
|
|
231
|
-
function
|
|
232
|
-
|
|
458
|
+
function Xe(e, t = {}) {
|
|
459
|
+
if (!e.save) throw new S("config", "ReportProvider.save 未配置,无法启用业务保存");
|
|
460
|
+
let o = "", r, n, a = 0;
|
|
461
|
+
function E(c, p, s) {
|
|
462
|
+
c.conflicts?.length || p !== o || s !== a || (r = c.revision, c.sourceToken !== void 0 && (n = c.sourceToken));
|
|
233
463
|
}
|
|
234
|
-
async function
|
|
235
|
-
if (
|
|
236
|
-
const { reportId:
|
|
237
|
-
if (
|
|
238
|
-
const
|
|
239
|
-
reportId:
|
|
240
|
-
params:
|
|
241
|
-
signal:
|
|
242
|
-
requestId:
|
|
243
|
-
action:
|
|
244
|
-
edits:
|
|
245
|
-
expectedRevision:
|
|
246
|
-
sourceToken:
|
|
464
|
+
async function d(c, p) {
|
|
465
|
+
if (p.signal.aborted) throw p.signal.reason ?? new DOMException("Aborted", "AbortError");
|
|
466
|
+
const { reportId: s, params: g, identity: f, source: w, automatic: m } = Je(t, p, c.edits), v = ++a;
|
|
467
|
+
if (f !== o && (o = f, r = void 0, n = void 0), t.requireSource !== !1 && c.edits.some((h) => !h.source)) throw new oe("missing");
|
|
468
|
+
const y = await e.save({
|
|
469
|
+
reportId: s,
|
|
470
|
+
params: g,
|
|
471
|
+
signal: p.signal,
|
|
472
|
+
requestId: c.requestId,
|
|
473
|
+
action: p.action,
|
|
474
|
+
edits: A(c.edits),
|
|
475
|
+
expectedRevision: ne(t.expectedRevision, c.edits, "revision", r, w, m),
|
|
476
|
+
sourceToken: ne(t.sourceToken, c.edits, "sourceToken", n, w, m)
|
|
247
477
|
});
|
|
248
|
-
if (
|
|
249
|
-
|
|
250
|
-
const
|
|
251
|
-
if (
|
|
252
|
-
const
|
|
253
|
-
source:
|
|
254
|
-
address:
|
|
255
|
-
message:
|
|
256
|
-
...
|
|
257
|
-
revision:
|
|
478
|
+
if (p.signal.aborted) throw p.signal.reason ?? new DOMException("Aborted", "AbortError");
|
|
479
|
+
Ye(y, c.edits.length), y.diagnostics?.forEach((h) => Ce(() => t.onDiagnostic?.(h)));
|
|
480
|
+
const b = y.diagnostics?.filter((h) => h.severity === "error");
|
|
481
|
+
if (b?.length) throw new S("edit", b.map((h) => h.message).join(";"), { diagnostics: b });
|
|
482
|
+
const _ = y.conflicts?.map((h) => ({
|
|
483
|
+
source: c.edits[h.editIndex]?.source,
|
|
484
|
+
address: c.edits[h.editIndex]?.address,
|
|
485
|
+
message: h.message,
|
|
486
|
+
...h.currentValue === void 0 ? {} : { currentValue: h.currentValue },
|
|
487
|
+
revision: h.revision ?? y.revision
|
|
258
488
|
}));
|
|
259
|
-
return
|
|
489
|
+
return E(y, f, v), { revision: y.revision, sourceToken: y.sourceToken, conflicts: _ };
|
|
260
490
|
}
|
|
261
|
-
|
|
262
|
-
requireSource:
|
|
263
|
-
canEdit:
|
|
264
|
-
readOnlyReason:
|
|
265
|
-
history:
|
|
266
|
-
fields:
|
|
267
|
-
validate:
|
|
268
|
-
validation:
|
|
269
|
-
validateBatch:
|
|
270
|
-
saveBatch:
|
|
271
|
-
save: (
|
|
491
|
+
const l = {
|
|
492
|
+
requireSource: t.requireSource ?? !0,
|
|
493
|
+
canEdit: t.canEdit,
|
|
494
|
+
readOnlyReason: t.readOnlyReason,
|
|
495
|
+
history: t.history,
|
|
496
|
+
fields: t.fields,
|
|
497
|
+
validate: t.validate,
|
|
498
|
+
validation: t.validation,
|
|
499
|
+
validateBatch: t.validateBatch,
|
|
500
|
+
saveBatch: d,
|
|
501
|
+
save: (c, p) => d({ requestId: $e(p), edits: [A(c)] }, p)
|
|
272
502
|
};
|
|
503
|
+
return pe(l, () => Xe(e, t)), l;
|
|
273
504
|
}
|
|
274
505
|
export {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
506
|
+
Lt as DEFAULT_CALCULATION_MESSAGES,
|
|
507
|
+
Ut as DEFAULT_DATA_REVIEW_MESSAGES,
|
|
508
|
+
jt as DEFAULT_MESSAGES,
|
|
509
|
+
Bt as DEFAULT_PRINT_MESSAGES,
|
|
510
|
+
qt as DEFAULT_THEME,
|
|
511
|
+
tr as MACH_REPORT_CONFIG_KEY,
|
|
512
|
+
Oe as MACH_REPORT_CONTROLLER_KEY,
|
|
513
|
+
rr as MACH_REPORT_FETCHER_KEY,
|
|
514
|
+
nr as MACH_REPORT_PDF_EXPORTER_KEY,
|
|
515
|
+
S as MachReportError,
|
|
516
|
+
sr as MachReportPreview,
|
|
517
|
+
Vt as PARAM_OPTIONS_MESSAGES,
|
|
518
|
+
Y as PlanLoadError,
|
|
519
|
+
mt as REPORT_EXPORT_FORMATS,
|
|
520
|
+
vt as REPORT_PREVIEW_TOOLS,
|
|
521
|
+
yt as ReportDataComparisonPanel,
|
|
522
|
+
ct as ReportDocumentPreview,
|
|
523
|
+
ge as ReportExportMenu,
|
|
524
|
+
de as ReportPagination,
|
|
525
|
+
Wt as ReportParamPanel,
|
|
526
|
+
ht as ReportPrefillPanel,
|
|
295
527
|
fe as ReportPreview,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
528
|
+
wt as ReportPrintResourceError,
|
|
529
|
+
Et as ReportTaskStatus,
|
|
530
|
+
Pt as ReportToolbar,
|
|
531
|
+
bt as ReportValidationPanel,
|
|
532
|
+
Gt as SILENT_LOGGER,
|
|
533
|
+
Rt as buildPrintDocument,
|
|
534
|
+
Ct as buildWordHtml,
|
|
535
|
+
St as createDefaultPdfExporter,
|
|
536
|
+
_t as createFetchRequest,
|
|
537
|
+
ut as createLocalFetcher,
|
|
538
|
+
Tt as createPrintCalibrationPlan,
|
|
539
|
+
Xe as createProviderEditing,
|
|
540
|
+
At as createReportStoragePreferences,
|
|
541
|
+
zt as defineMachReportConfig,
|
|
542
|
+
Ht as defineMachReportPreset,
|
|
543
|
+
xt as joinReportIds,
|
|
544
|
+
ar as machReportPlugin,
|
|
545
|
+
It as normalizeReportIds,
|
|
546
|
+
Kt as normalizeReportLoadError,
|
|
547
|
+
Ot as preparePrintResources,
|
|
548
|
+
Yt as printCalibration,
|
|
549
|
+
Dt as printPlans,
|
|
550
|
+
Jt as provideMachReportConfig,
|
|
551
|
+
$t as resolveCalculationMessages,
|
|
552
|
+
_e as resolveConfig,
|
|
553
|
+
Xt as resolveDataReviewMessages,
|
|
554
|
+
Zt as snapshotPrintOptions,
|
|
555
|
+
Ae as themeToCssVars,
|
|
556
|
+
Qt as toErrorDetail,
|
|
557
|
+
lt as useMachReport,
|
|
558
|
+
Se as useMachReportConfig,
|
|
559
|
+
Mt as usePageWindow,
|
|
560
|
+
kt as usePrintExport,
|
|
561
|
+
ft as useReportPreview,
|
|
562
|
+
Nt as useZoom
|
|
331
563
|
};
|