@agile-team/mach-report 2.14.0 → 2.15.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 +16 -11
- package/THIRD_PARTY_NOTICES.md +3 -1
- package/dist/{ExcelBindingWizard-CvsWR8Ga.js → ExcelBindingWizard-BKH1nGNS.js} +3 -3
- package/dist/{ExcelBindingWizard-CLT2p7P3.cjs → ExcelBindingWizard-Bs43BGNp.cjs} +1 -1
- package/dist/ParamEditor-Da4akw6V.cjs +1 -0
- package/dist/ParamEditor-DoAhzJsm.js +594 -0
- package/dist/{ReportBatchPanel-LqVgiqp7.js → ReportBatchPanel-BMf6boMA.js} +39 -39
- package/dist/{ReportBatchPanel-DkxTzBkD.cjs → ReportBatchPanel-wP9m9Pj1.cjs} +1 -1
- package/dist/ReportPreview-ChV19HBp.js +4619 -0
- package/dist/ReportPreview-DbLvvOUT.cjs +6 -0
- package/dist/{ReportTemplateLibrary-MjWEtc7X.js → ReportTemplateLibrary-C9wutIiT.js} +1 -1
- package/dist/{ReportTemplateLibrary-cQ1sqNYo.cjs → ReportTemplateLibrary-Sxr3eD0J.cjs} +1 -1
- package/dist/{RuleEditor-ChuXMlei.js → RuleEditor-C_Clasvd.js} +5 -5
- package/dist/{RuleEditor-BaR6xUiI.cjs → RuleEditor-XhGHK8DE.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-Dci6aRn1.js → TemplateOutlinePanel-D6Bkny59.js} +2 -2
- package/dist/{TemplateOutlinePanel-BHKP89Xz.cjs → TemplateOutlinePanel-JTSR53vJ.cjs} +1 -1
- package/dist/{TemplateReusePanel-CY5eO2Sh.cjs → TemplateReusePanel-Kx35S0Ql.cjs} +1 -1
- package/dist/{TemplateReusePanel-B7Gmyc1z.js → TemplateReusePanel-rVuK1kTz.js} +2 -2
- package/dist/{TemplateReviewPanel-DjlX3xpt.js → TemplateReviewPanel-B0ar9_zf.js} +2 -2
- package/dist/{TemplateReviewPanel-JvZe9_4G.cjs → TemplateReviewPanel-Dn6X9UmY.cjs} +1 -1
- package/dist/analytics.cjs +1 -1
- package/dist/analytics.d.cts +3 -1
- package/dist/analytics.d.ts +3 -1
- package/dist/analytics.js +154 -60
- package/dist/artifact-integrity.json +135 -0
- package/dist/assets-B9ImAi6_.cjs +1 -0
- package/dist/assets-DEaz4qsp.js +124 -0
- package/dist/batch-BaP6pWDE.cjs +1 -0
- package/dist/batch-BfZHN1do.js +220 -0
- package/dist/batch-CGyt-b2W.js +273 -0
- package/dist/batch-CLpELXBl.cjs +1 -0
- package/dist/capabilities-CAh2Nrue.cjs +1 -0
- package/dist/capabilities-DskCHs3V.js +69 -0
- package/dist/codes.d.cts +2 -0
- package/dist/codes.d.ts +2 -0
- package/dist/{computed-Bvk0W15F.js → computed-C-4C2S5h.js} +3 -3
- package/dist/config-BVsJXSqS.js +842 -0
- package/dist/config-D10us76d.cjs +1 -0
- package/dist/data-explanation-B8MZRYVS.js +16 -0
- package/dist/data-explanation-DE55G30w.cjs +1 -0
- package/dist/designer-2bDlcNXQ.js +5136 -0
- package/dist/designer-BT7XCdbW.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +144 -16
- package/dist/designer.d.ts +144 -16
- package/dist/designer.js +1 -1
- package/dist/drill-ByJviLXS.js +145 -0
- package/dist/drill-DYTxuL3A.cjs +1 -0
- package/dist/{font-loader-vhCT8znW.cjs → font-loader-B_UkxpzC.cjs} +1 -1
- package/dist/{font-loader-DHto6Lra.js → font-loader-Q3bQjmrI.js} +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +82 -4
- package/dist/index.d.ts +82 -4
- package/dist/index.js +785 -820
- package/dist/json-snapshot-DFb2eWkf.js +1416 -0
- package/dist/json-snapshot-WWSGlaHG.cjs +2 -0
- package/dist/licenses/_bwip-js_generic-4.11.4.txt +24 -0
- package/dist/licenses/_fast-csv_format-4.3.5.txt +22 -0
- package/dist/licenses/_fast-csv_parse-4.3.6.txt +22 -0
- package/dist/licenses/_pdf-lib_fontkit-1.1.1.txt +326 -0
- package/dist/licenses/_pdf-lib_standard-fonts-1.0.0.txt +22 -0
- package/dist/licenses/_pdf-lib_upng-1.0.1.txt +22 -0
- package/dist/licenses/_types_node-14.18.63.txt +22 -0
- package/dist/licenses/_types_pako-2.0.3.txt +22 -0
- package/dist/licenses/_types_pegjs-0.10.6.txt +22 -0
- package/dist/licenses/archiver-5.3.2.txt +23 -0
- package/dist/licenses/archiver-utils-2.1.0.txt +23 -0
- package/dist/licenses/archiver-utils-3.0.4.txt +23 -0
- package/dist/licenses/async-3.2.6.txt +20 -0
- package/dist/licenses/balanced-match-1.0.2.txt +22 -0
- package/dist/licenses/base64-js-1.5.1.txt +22 -0
- package/dist/licenses/big-integer-1.6.52.txt +25 -0
- package/dist/licenses/binary-0.3.0.txt +178 -0
- package/dist/licenses/bl-4.1.0.txt +14 -0
- package/dist/licenses/bluebird-3.4.7.txt +22 -0
- package/dist/licenses/brace-expansion-1.1.21.txt +22 -0
- package/dist/licenses/brace-expansion-2.1.7.txt +22 -0
- package/dist/licenses/buffer-5.7.1.txt +22 -0
- package/dist/licenses/buffer-crc32-0.2.13.txt +20 -0
- package/dist/licenses/buffer-indexof-polyfill-1.0.2.txt +23 -0
- package/dist/licenses/buffers-0.1.1.txt +140 -0
- package/dist/licenses/chainsaw-0.1.0.txt +184 -0
- package/dist/licenses/compress-commons-4.1.2.txt +23 -0
- package/dist/licenses/concat-map-0.0.1.txt +19 -0
- package/dist/licenses/core-util-is-1.0.3.txt +20 -0
- package/dist/licenses/crc-32-1.2.2.txt +202 -0
- package/dist/licenses/crc32-stream-4.0.3.txt +23 -0
- package/dist/licenses/dayjs-1.11.23.txt +22 -0
- package/dist/licenses/duplexer2-0.1.4.txt +27 -0
- package/dist/licenses/end-of-stream-1.4.5.txt +22 -0
- package/dist/licenses/exceljs-4.4.0.txt +23 -0
- package/dist/licenses/fast-csv-4.3.6.txt +22 -0
- package/dist/licenses/fast-png-6.4.0.txt +22 -0
- package/dist/licenses/fs-constants-1.0.0.txt +22 -0
- package/dist/licenses/fs.realpath-1.0.0.txt +44 -0
- package/dist/licenses/fstream-1.0.12.txt +16 -0
- package/dist/licenses/glob-7.2.3.txt +22 -0
- package/dist/licenses/graceful-fs-4.2.11.txt +16 -0
- package/dist/licenses/ieee754-1.2.1.txt +12 -0
- package/dist/licenses/immediate-3.0.6.txt +21 -0
- package/dist/licenses/inflight-1.0.6.txt +16 -0
- package/dist/licenses/inherits-2.0.4.txt +17 -0
- package/dist/licenses/iobuffer-5.4.0.txt +23 -0
- package/dist/licenses/isarray-1.0.0.txt +61 -0
- package/dist/licenses/jszip-3.10.2.txt +652 -0
- package/dist/licenses/lazystream-1.0.1.txt +24 -0
- package/dist/licenses/lie-3.3.0.txt +8 -0
- package/dist/licenses/listenercount-1.0.1.txt +6 -0
- package/dist/licenses/lodash.defaults-4.2.0.txt +48 -0
- package/dist/licenses/lodash.difference-4.5.0.txt +48 -0
- package/dist/licenses/lodash.escaperegexp-4.1.2.txt +48 -0
- package/dist/licenses/lodash.flatten-4.4.0.txt +48 -0
- package/dist/licenses/lodash.groupby-4.6.0.txt +48 -0
- package/dist/licenses/lodash.isboolean-3.0.3.txt +23 -0
- package/dist/licenses/lodash.isequal-4.5.0.txt +48 -0
- package/dist/licenses/lodash.isfunction-3.0.9.txt +48 -0
- package/dist/licenses/lodash.isnil-4.0.0.txt +23 -0
- package/dist/licenses/lodash.isplainobject-4.0.6.txt +48 -0
- package/dist/licenses/lodash.isundefined-3.0.1.txt +23 -0
- package/dist/licenses/lodash.union-4.6.0.txt +48 -0
- package/dist/licenses/lodash.uniq-4.5.0.txt +48 -0
- package/dist/licenses/minimatch-3.1.5.txt +16 -0
- package/dist/licenses/minimatch-5.1.9.txt +16 -0
- package/dist/licenses/minimist-1.2.8.txt +19 -0
- package/dist/licenses/mkdirp-0.5.6.txt +22 -0
- package/dist/licenses/node-sql-parser-5.4.0.txt +202 -0
- package/dist/licenses/normalize-path-3.0.0.txt +22 -0
- package/dist/licenses/once-1.4.0.txt +16 -0
- package/dist/licenses/pako-1.0.11.txt +22 -0
- package/dist/licenses/pako-2.2.0.txt +22 -0
- package/dist/licenses/path-is-absolute-1.0.1.txt +22 -0
- package/dist/licenses/pdf-lib-1.17.1.txt +22 -0
- package/dist/licenses/process-nextick-args-2.0.1.txt +20 -0
- package/dist/licenses/readable-stream-2.3.8.txt +48 -0
- package/dist/licenses/readable-stream-3.6.2.txt +48 -0
- package/dist/licenses/readdir-glob-1.1.3.txt +202 -0
- package/dist/licenses/rimraf-2.7.1.txt +16 -0
- package/dist/licenses/safe-buffer-5.1.2.txt +22 -0
- package/dist/licenses/safe-buffer-5.2.1.txt +22 -0
- package/dist/licenses/saxes-5.0.1.txt +397 -0
- package/dist/licenses/setimmediate-1.0.5.txt +21 -0
- package/dist/licenses/string_decoder-1.1.1.txt +49 -0
- package/dist/licenses/string_decoder-1.3.0.txt +49 -0
- package/dist/licenses/tar-stream-2.2.0.txt +22 -0
- package/dist/licenses/tmp-0.2.7.txt +22 -0
- package/dist/licenses/traverse-0.3.9.txt +25 -0
- package/dist/licenses/tslib-1.14.1.txt +13 -0
- package/dist/licenses/unzipper-0.10.14.txt +26 -0
- package/dist/licenses/util-deprecate-1.0.2.txt +25 -0
- package/dist/licenses/uuid-11.1.1.txt +10 -0
- package/dist/licenses/wrappy-1.0.2.txt +16 -0
- package/dist/licenses/xmlchars-2.2.0.txt +19 -0
- package/dist/licenses/zip-stream-4.1.1.txt +23 -0
- package/dist/matrix-CGRGkn5s.js +112 -0
- package/dist/matrix-gEO7ZM_u.cjs +1 -0
- package/dist/media-B7vnpD8k.cjs +1 -0
- package/dist/media-Y90dHK9z.js +70 -0
- package/dist/param-validation-C3HlcLLO.cjs +1 -0
- package/dist/param-validation-Do7Eg8Zv.js +181 -0
- package/dist/{pdf-8UPQebOE.js → pdf-BwNyeGpt.js} +4385 -4321
- package/dist/{pdf-AyJGb22z.cjs → pdf-CvvrjPQg.cjs} +51 -49
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.d.cts +18 -3
- package/dist/pdf.d.ts +18 -3
- package/dist/pdf.js +2 -2
- package/dist/{plugin-BGKf-Tqg.js → plugin-Ca_XZG3l.js} +2 -2
- package/dist/{plugin-CktLH_Iy.cjs → plugin-DHO7X8z2.cjs} +1 -1
- package/dist/prepared-CFy9B75C.cjs +1 -0
- package/dist/prepared-ajM-H-9B.js +69 -0
- package/dist/progress-B0ctFpKf.cjs +1 -0
- package/dist/progress-D-OTpEav.js +52 -0
- package/dist/record-bindings-By_UKZ2g.cjs +1 -0
- package/dist/record-bindings-Do_b3h4V.js +196 -0
- package/dist/{region-binding-workflow-DEJbhpCv.js → region-binding-workflow-BMhK_TjP.js} +1 -1
- package/dist/{region-binding-workflow-BzfbxRiR.cjs → region-binding-workflow-DIYJdCUr.cjs} +1 -1
- package/dist/{report-params-B44imUd4.js → report-params-B1RzkhJj.js} +1 -1
- package/dist/{report-params-SJfhKgaX.cjs → report-params-WDGrA4oP.cjs} +1 -1
- package/dist/sbom.cdx.json +3982 -0
- package/dist/server/node.d.cts +20 -1
- package/dist/server/node.d.ts +20 -1
- package/dist/server-node.cjs +1 -1
- package/dist/server-node.js +247 -237
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +772 -4
- package/dist/server.d.ts +772 -4
- package/dist/server.js +885 -645
- package/dist/sha256-ArEYjaTI.cjs +1 -0
- package/dist/sha256-DPEuJ3nh.js +155 -0
- package/dist/style.css +1 -1
- package/dist/template-bindings-C2SpvsMU.js +58 -0
- package/dist/template-bindings-CEtWyiLX.cjs +1 -0
- package/dist/template-catalog-FJE_c9Qe.cjs +1 -0
- package/dist/template-catalog-j2B1MJlL.js +414 -0
- package/dist/{template-fragments-CLkGo6To.js → template-fragments-BGbQLGlV.js} +21 -21
- package/dist/{template-fragments-DFUpq5QM.cjs → template-fragments-DcKeiylI.cjs} +1 -1
- package/dist/{template-outline-B3xVkzSv.cjs → template-outline-BwRV_eRo.cjs} +1 -1
- package/dist/{template-outline-CFenM1PV.js → template-outline-cnWfT_LK.js} +3 -3
- package/dist/{template-registry-COXDEJEM.js → template-registry-BtaKPELV.js} +364 -201
- package/dist/template-registry-Co1zPq5e.cjs +1 -0
- package/dist/textwrap-CWHyzkBH.cjs +4 -0
- package/dist/textwrap-DE1kgcJB.js +110 -0
- package/dist/{tree-CqcQ99NM.js → tree-CjVZLRw7.js} +1 -1
- package/dist/vue/async.d.cts +123 -14
- package/dist/vue/async.d.ts +123 -14
- package/dist/vue/index.d.cts +158 -22
- package/dist/vue/index.d.ts +158 -22
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +80 -78
- package/dist/{workbook-session-DNa2RHNG.cjs → workbook-session-Bjv1YCRK.cjs} +18 -18
- package/dist/{workbook-session-BfK1yHOO.js → workbook-session-BvToI-Fd.js} +5440 -5288
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +20 -1
- package/dist/worker.d.ts +20 -1
- package/dist/worker.js +33 -32
- package/dist/xlsx-node.cjs +34 -34
- package/dist/xlsx-node.js +878 -870
- package/dist/xlsx.cjs +3 -4
- package/dist/xlsx.d.cts +22 -10
- package/dist/xlsx.d.ts +22 -10
- package/dist/xlsx.js +261 -253
- package/package.json +2 -2
- package/dist/ParamEditor-CflQV3eQ.js +0 -526
- package/dist/ParamEditor-vIDzvpPV.cjs +0 -1
- package/dist/ReportPreview-CvbqLUzM.cjs +0 -6
- package/dist/ReportPreview-D_ywJ_-H.js +0 -4533
- package/dist/assets-C2U-e-Sz.cjs +0 -4
- package/dist/assets-Q0wUwNrV.js +0 -217
- package/dist/batch-DzaTNLWI.js +0 -371
- package/dist/batch-xMkqYiTr.cjs +0 -1
- package/dist/capabilities-CK_7hizc.js +0 -63
- package/dist/capabilities-CsZ-pNHR.cjs +0 -1
- package/dist/config-0UIohTS7.cjs +0 -1
- package/dist/config-Dt9NtCPl.js +0 -566
- package/dist/data-explanation-BktvER5B.cjs +0 -1
- package/dist/data-explanation-C_J6jYNi.js +0 -16
- package/dist/designer-Ci1LizA9.js +0 -5020
- package/dist/designer-rtmVIIdN.cjs +0 -2
- package/dist/json-snapshot-BeFT3Tso.js +0 -1952
- package/dist/json-snapshot-D1NTP2oI.cjs +0 -2
- package/dist/matrix-DVyWiYsd.cjs +0 -1
- package/dist/matrix-yZsGnldA.js +0 -227
- package/dist/page-window-index-CIuT4BAv.js +0 -43
- package/dist/page-window-index-DEjnM6IB.cjs +0 -1
- package/dist/param-validation-BlHHXs6u.js +0 -153
- package/dist/param-validation-DCK039V1.cjs +0 -1
- package/dist/progress-7OSZbFok.js +0 -39
- package/dist/progress-BnLiS5eH.cjs +0 -1
- package/dist/task-events-DQ276fn2.cjs +0 -1
- package/dist/task-events-Dpsvf_t2.js +0 -47
- package/dist/template-bindings-BJR4k7qZ.cjs +0 -1
- package/dist/template-bindings-Daui7hLF.js +0 -252
- package/dist/template-registry-D3SjENi6.cjs +0 -1
- package/dist/validate-BJ5HIWY8.cjs +0 -1
- package/dist/validate-CkQBWCeg.js +0 -163
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { a as l } from "./progress-7OSZbFok.js";
|
|
2
|
-
import { a as w, i as D } from "./render-plan-Ck6koX9L.js";
|
|
3
|
-
function E(e, t) {
|
|
4
|
-
l(t.signal);
|
|
5
|
-
try {
|
|
6
|
-
t.onDiagnostic?.(e);
|
|
7
|
-
} catch {
|
|
8
|
-
}
|
|
9
|
-
l(t.signal);
|
|
10
|
-
}
|
|
11
|
-
class O extends Error {
|
|
12
|
-
constructor(t) {
|
|
13
|
-
super(`Output contains ${t.length} known fidelity issue(s): ${t[0]?.code}`), this.diagnostics = t, this.code = "output-fidelity", this.name = "OutputFidelityError";
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
const $ = /* @__PURE__ */ new Set(["text", "rect", "line", "ellipse"]), b = /* @__PURE__ */ new Set(["image", "chart", "barcode", "qrcode"]);
|
|
17
|
-
function C(e, t) {
|
|
18
|
-
if (!e.grid) {
|
|
19
|
-
if (D(e))
|
|
20
|
-
return (t === "pdf" || t === "xlsx") && !/^data:image\/(png|jpe?g);base64,/i.test(e.imageData) ? { code: "unsupported-image-format", message: `${t.toUpperCase()} accepts PNG or JPEG data URLs; convert this image before exporting.` } : void 0;
|
|
21
|
-
if (b.has(e.kind)) return { code: "missing-image", message: `${e.kind} requires imageData or a renderer adapter before output.` };
|
|
22
|
-
if (!$.has(e.kind)) return { code: "unsupported-component", message: `Unsupported component kind: ${e.kind}.` };
|
|
23
|
-
if (t === "xlsx" && e.kind !== "text") return { code: "unsupported-component", message: `XLSX data export omits ${e.kind} geometry.` };
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function u(e, t, i, s, n) {
|
|
27
|
-
return { ...n, severity: "warning", format: t, pageIndex: i, componentIndex: s, kind: e.kind, nid: e.nid };
|
|
28
|
-
}
|
|
29
|
-
function f(e, t) {
|
|
30
|
-
if (!e || t === "dom") return;
|
|
31
|
-
const i = [];
|
|
32
|
-
return e.rotateDeg && i.push("rotateDeg"), e.opacity !== void 0 && e.opacity !== 1 && i.push("opacity"), t !== "xlsx" && e.align === "justify" && i.push("justify"), t === "canvas" && e.underline && i.push("underline"), t === "xlsx" && e.letterSpacing && i.push("letterSpacing"), i.length ? `${t} does not preserve these styles: ${i.join(", ")}.` : void 0;
|
|
33
|
-
}
|
|
34
|
-
function y(e, t, i, s, n, r, d) {
|
|
35
|
-
if (d.has(e)) return;
|
|
36
|
-
const v = new Set(d).add(e), p = C(e, t);
|
|
37
|
-
p && r.push({ ...u(e, t, i, s, p), componentPath: n });
|
|
38
|
-
const g = f(e.style, t);
|
|
39
|
-
g && r.push({ ...u(e, t, i, s, { code: "unsupported-style", message: g }), componentPath: n }), w(e) && t !== "dom" && r.push(u(e, t, i, s, { code: "rich-text-flattened", message: "Rich text is exported as plain text; inline styles are not preserved." }));
|
|
40
|
-
for (const [o, x] of (e.grid?.cells ?? []).entries()) for (const [a, c] of x.entries()) {
|
|
41
|
-
const h = f(c?.style, t);
|
|
42
|
-
if (h && r.push({ ...u(e, t, i, s, { code: "unsupported-style", message: h }), componentPath: [...n, o, a] }), c?.children?.length && t !== "dom")
|
|
43
|
-
r.push({ ...u(e, t, i, s, { code: "nested-components-omitted", message: "Nested grid components are omitted; cell text is preserved." }), componentPath: [...n, o, a] });
|
|
44
|
-
else if (t === "dom")
|
|
45
|
-
for (const [k, S] of (c?.children ?? []).entries()) y(S, t, i, s, [...n, o, a, k], r, v);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function j(e, t) {
|
|
49
|
-
const i = [];
|
|
50
|
-
return e.pages.forEach((s, n) => s.components.forEach((r, d) => y(r, t, n, d, [], i, /* @__PURE__ */ new Set()))), i;
|
|
51
|
-
}
|
|
52
|
-
function G(e, t, i) {
|
|
53
|
-
l(i.signal);
|
|
54
|
-
const s = j(e, t);
|
|
55
|
-
if (s.forEach((n) => E(n, i)), i.fidelity === "strict" && s.length) throw new O(s);
|
|
56
|
-
return s;
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
O,
|
|
60
|
-
j as i,
|
|
61
|
-
E as n,
|
|
62
|
-
G as r
|
|
63
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./progress-BnLiS5eH.cjs"),y=require("./render-plan-7xpGrCEl.cjs");function v(e,t){l.assertOutputActive(t.signal);try{t.onDiagnostic?.(e)}catch{}l.assertOutputActive(t.signal)}class O extends Error{constructor(t){super(`Output contains ${t.length} known fidelity issue(s): ${t[0]?.code}`),this.diagnostics=t,this.code="output-fidelity",this.name="OutputFidelityError"}}const $=new Set(["text","rect","line","ellipse"]),b=new Set(["image","chart","barcode","qrcode"]);function C(e,t){if(!e.grid){if(y.isImageBackedComponent(e))return(t==="pdf"||t==="xlsx")&&!/^data:image\/(png|jpe?g);base64,/i.test(e.imageData)?{code:"unsupported-image-format",message:`${t.toUpperCase()} accepts PNG or JPEG data URLs; convert this image before exporting.`}:void 0;if(b.has(e.kind))return{code:"missing-image",message:`${e.kind} requires imageData or a renderer adapter before output.`};if(!$.has(e.kind))return{code:"unsupported-component",message:`Unsupported component kind: ${e.kind}.`};if(t==="xlsx"&&e.kind!=="text")return{code:"unsupported-component",message:`XLSX data export omits ${e.kind} geometry.`}}}function u(e,t,i,s,n){return{...n,severity:"warning",format:t,pageIndex:i,componentIndex:s,kind:e.kind,nid:e.nid}}function f(e,t){if(!e||t==="dom")return;const i=[];return e.rotateDeg&&i.push("rotateDeg"),e.opacity!==void 0&&e.opacity!==1&&i.push("opacity"),t!=="xlsx"&&e.align==="justify"&&i.push("justify"),t==="canvas"&&e.underline&&i.push("underline"),t==="xlsx"&&e.letterSpacing&&i.push("letterSpacing"),i.length?`${t} does not preserve these styles: ${i.join(", ")}.`:void 0}function x(e,t,i,s,n,r,d){if(d.has(e))return;const k=new Set(d).add(e),p=C(e,t);p&&r.push({...u(e,t,i,s,p),componentPath:n});const g=f(e.style,t);g&&r.push({...u(e,t,i,s,{code:"unsupported-style",message:g}),componentPath:n}),y.isRichText(e)&&t!=="dom"&&r.push(u(e,t,i,s,{code:"rich-text-flattened",message:"Rich text is exported as plain text; inline styles are not preserved."}));for(const[o,S]of(e.grid?.cells??[]).entries())for(const[c,a]of S.entries()){const h=f(a?.style,t);if(h&&r.push({...u(e,t,i,s,{code:"unsupported-style",message:h}),componentPath:[...n,o,c]}),a?.children?.length&&t!=="dom")r.push({...u(e,t,i,s,{code:"nested-components-omitted",message:"Nested grid components are omitted; cell text is preserved."}),componentPath:[...n,o,c]});else if(t==="dom")for(const[w,E]of(a?.children??[]).entries())x(E,t,i,s,[...n,o,c,w],r,k)}}function D(e,t){const i=[];return e.pages.forEach((s,n)=>s.components.forEach((r,d)=>x(r,t,n,d,[],i,new Set))),i}function j(e,t,i){l.assertOutputActive(i.signal);const s=D(e,t);if(s.forEach(n=>v(n,i)),i.fidelity==="strict"&&s.length)throw new O(s);return s}exports.OutputFidelityError=O;exports.inspectOutputCapabilities=D;exports.notifyOutputDiagnostic=v;exports.reportOutputDiagnostics=j;
|
package/dist/config-0UIohTS7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),y=require("@agile-team/mach-report"),q=require("./_plugin-vue_export-helper-BLmdZLlg.cjs"),S=require("./injection-keys-Db_DyLkm.cjs"),R={printPrepareTimeout:"打印资源准备超时,请检查字体与图片后重试。",printImageFailed:"第 {index} 张图片未能加载,已停止打印,避免输出缺失内容。",printFontFailed:"打印字体 {family} 未能加载,请检查字体资源后重试。",printPrepareFailed:"打印准备失败,请检查打印配置或改用 PDF。",printCalibration:"打印校准",printOffsetX:"水平偏移(mm)",printOffsetY:"垂直偏移(mm)",printCalibrationTest:"打印校准页",printCalibrationHint:"正值向右/向下移动,负值向左/向上。使用同规格纸张及 100% 比例,先试打一张。系统对话框关闭不代表设备已完成。"};function L(e){const a=e?.calibration?.offsetXmm??0,l=e?.calibration?.offsetYmm??0;if(![a,l].every(n=>Number.isFinite(n)&&Math.abs(n)<=20))throw new RangeError("Print calibration must be within ±20 mm");return{x:a,y:l}}function O(e={}){if(e.fonts&&(!Array.isArray(e.fonts)||e.fonts.length>8))throw new RangeError("At most eight print font faces are allowed");return{...e,...e.fonts?{fonts:e.fonts.map(a=>({...a}))}:{},...e.calibration?{calibration:{...e.calibration}}:{}}}class b extends Error{constructor(a,l,n){super(l),this.name="MachReportError",this.code=a,this.cause=n}}function _(e){return e instanceof b?{code:e.code,cause:e.cause}:{code:"render",cause:e}}function V(e){if(e instanceof b)return e;if(e instanceof y.ReportParamValidationError)return new b("param",e.message,e);if(e instanceof y.ReportSourceError)return new b(e.code,e.message,e.cause);if(e instanceof Error){const a={params:"param",config:"config",validate:"validate",fetch:"fetch"},l=e.code;if(typeof l=="string"&&Object.prototype.hasOwnProperty.call(a,l))return new b(a[l],e.message,e)}return new b("fetch",e instanceof Error?e.message:"预览加载失败",e)}let H=0;function U(){return`mrp-params-${++H}`}function M(e,a,l){const n=(Array.isArray(a)?a.find(i=>i?.field===e.field)?.label:void 0)??e.field;return e.code==="required"?l.paramRequired.replace("{label}",n):(l.paramInvalid??"{label}:{message}").replace("{label}",n).replace("{message}",e.message)}function G(e){const a=t.ref({}),l=t.ref(!1);function n(){const p={};for(const f of Array.isArray(e.defs.value)?e.defs.value:[])typeof f?.field=="string"&&Object.defineProperty(p,f.field,{value:e.params()[f.field]??f.defaultValue??"",writable:!0,enumerable:!0,configurable:!0});a.value=p,l.value=!1}n(),t.watch(e.defs,n),t.watch(e.reportIds,n),t.watch(()=>JSON.stringify(e.params()),n);const i=t.computed(()=>y.validateReportParams(e.defs.value,{...e.params(),...a.value})),s=t.computed(()=>!l.value&&i.value.issues.length>0&&i.value.issues.every(p=>p.code==="required"));function m(){const p=i.value;if(!p.ok){const u=p.issues[0];return{quiet:s.value,error:new b(u.code==="definition"?"config":"param",M(u,e.defs.value,e.messages()),{issues:p.issues})}}const f={...p.values},P=new Set(e.defs.value.filter(u=>u.defaultValue!==void 0).map(u=>u.field));for(const[u,x]of Object.entries(f))x===""&&!P.has(u)&&delete f[u];return{params:f,quiet:!1}}return{values:a,attempted:l,validation:i,pendingRequired:s,reset:n,query:m}}const $={key:0,class:"mrp-params-title"},K={class:"mrp-params-grid"},j=["id"],W={key:0,class:"mrp-param-star"},z=["value","disabled","aria-labelledby","aria-invalid","aria-describedby","aria-required","onChange"],Y=["disabled","hidden"],J=["value"],X=["aria-labelledby"],Q=["value","disabled","min","max","aria-label","aria-invalid","aria-describedby","aria-required","onInput"],Z=["type","inputmode","maxlength","placeholder","value","disabled","min","max","step","aria-labelledby","aria-invalid","aria-describedby","aria-required","onInput"],ee=["id"],te={key:1,class:"mrp-params-actions"},ae=["disabled"],re=["disabled"],ne=t.defineComponent({__name:"ReportParamPanel",props:{defs:{},modelValue:{},messages:{},attempted:{type:Boolean},issues:{default:void 0},showActions:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","query","reset"],setup(e,{expose:a,emit:l}){const n=e,i=l,s=t.ref({...n.modelValue}),m=t.ref(null),p=U();t.watch(()=>n.modelValue,o=>{s.value={...o}});const f=t.computed(()=>n.issues??y.validateReportParams(n.defs,s.value).issues),P=t.computed(()=>(Array.isArray(n.defs)?n.defs:[]).filter(o=>o&&typeof o.field=="string").map((o,c)=>({def:o,id:`${p}-${c}`,label:o.label??o.field,value:s.value[o.field]??"",error:n.attempted?f.value.find(r=>r.field===o.field):void 0})));function u(o,c){s.value={...s.value,[o]:c},i("update:modelValue",{...s.value})}function x(o){return o.type==="number"?"number":o.type==="date"||o.type==="month"?o.type:"text"}function v(o,c){return o.split("/")[c]??""}function D(o,c,r){return r?!!v(o,0)!=!!v(o,1)?!v(o,c)||void 0:!0:void 0}function I(o,c,r){const d=[v(s.value[o]??"",0),v(s.value[o]??"",1)];d[c]=r,u(o,d.every(h=>!h)?"":d.join("/"))}function w(o){o.isComposing||i("query")}function T(){m.value?.querySelector('[aria-invalid="true"]')?.focus()}return a({focusInvalid:T}),(o,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"root",ref:m,class:"mrp-params"},[e.showTitle!==!1?(t.openBlock(),t.createElementBlock("span",$,t.toDisplayString(e.messages.paramsTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("div",K,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(P.value,r=>(t.openBlock(),t.createElementBlock("label",{key:r.id,class:t.normalizeClass(["mrp-param",{"mrp-param-missing":!!r.error}])},[t.createElementVNode("span",{id:`${r.id}-label`,class:"mrp-param-label"},[t.createTextVNode(t.toDisplayString(r.label),1),r.def.required?(t.openBlock(),t.createElementBlock("i",W,"*")):t.createCommentVNode("",!0)],8,j),(r.def.type??"text")==="select"?(t.openBlock(),t.createElementBlock("select",{key:0,class:"mrp-param-input",value:r.value,disabled:e.disabled,"aria-labelledby":`${r.id}-label`,"aria-invalid":r.error?!0:void 0,"aria-describedby":r.error?`${r.id}-error`:void 0,"aria-required":r.def.required||void 0,onChange:d=>u(r.def.field,d.target.value),onKeydown:t.withKeys(w,["enter"])},[t.createElementVNode("option",{value:"",disabled:r.def.required,hidden:r.def.required},t.toDisplayString(r.def.placeholder??(e.messages.paramSelectPlaceholder??"请选择{label}").replace("{label}",r.label)),9,Y),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.def.options??[],d=>(t.openBlock(),t.createElementBlock("option",{key:d.value,value:d.value},t.toDisplayString(d.label),9,J))),128))],40,z)):r.def.type==="dateRange"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"mrp-param-range",role:"group","aria-labelledby":`${r.id}-label`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList([e.messages.paramRangeStart??"开始日期",e.messages.paramRangeEnd??"结束日期"],(d,h)=>(t.openBlock(),t.createElementBlock("input",{key:h,class:"mrp-param-input",type:"date",value:v(r.value,h),disabled:e.disabled,min:r.def.min,max:r.def.max,"aria-label":`${r.label} · ${d}`,"aria-invalid":D(r.value,h,r.error),"aria-describedby":r.error?`${r.id}-error`:void 0,"aria-required":r.def.required||void 0,onInput:N=>I(r.def.field,h,N.target.value),onKeydown:t.withKeys(w,["enter"])},null,40,Q))),128))],8,X)):(t.openBlock(),t.createElementBlock("input",{key:2,class:"mrp-param-input",type:x(r.def),inputmode:r.def.type==="year"?"numeric":void 0,maxlength:r.def.type==="year"?4:void 0,placeholder:r.def.placeholder??(e.messages.paramTextPlaceholder??"请输入{label}").replace("{label}",r.label),value:r.value,disabled:e.disabled,min:r.def.min,max:r.def.max,step:r.def.type==="number"?"any":void 0,"aria-labelledby":`${r.id}-label`,"aria-invalid":r.error?!0:void 0,"aria-describedby":r.error?`${r.id}-error`:void 0,"aria-required":r.def.required||void 0,onInput:d=>u(r.def.field,d.target.value),onKeydown:t.withKeys(w,["enter"])},null,40,Z)),r.error?(t.openBlock(),t.createElementBlock("small",{key:3,id:`${r.id}-error`,class:"mrp-param-error",role:"status"},t.toDisplayString(t.unref(M)(r.error,e.defs,e.messages)),9,ee)):t.createCommentVNode("",!0)],2))),128))]),e.showActions!==!1?(t.openBlock(),t.createElementBlock("div",te,[t.createElementVNode("button",{class:"mrp-nav mrp-param-query",type:"button",disabled:e.disabled,onClick:c[0]||(c[0]=r=>o.$emit("query"))},t.toDisplayString(e.messages.query),9,ae),t.createElementVNode("button",{class:"mrp-nav",type:"button",disabled:e.disabled,onClick:c[1]||(c[1]=r=>o.$emit("reset"))},t.toDisplayString(e.messages.reset),9,re)])):t.createCommentVNode("",!0)],512))}}),oe=q._export_sfc(ne,[["__scopeId","data-v-f64e743f"]]),C={calculationTitle:"选区计算",calculationLocal:"仅本地分析,不写回实绩、不重算原公式。请选取同一单位与量纲的数值。",calculationHint:"点击起点,Shift + 点击终点或方向键扩选。",calculationFormula:"计算方式",calculationExpression:"组合公式",calculationExpressionHint:"支持 SUM、AVERAGE/AVG、MIN、MAX、COUNT、MEDIAN 及 + - * / 和括号,不执行 Excel 公式;采用浮点数,精度仅用于展示。",calculationPrecision:"展示小数位",calculationRun:"计算选区",calculationCancel:"取消计算",calculationResult:"计算结果",calculationIncluded:"参与数值",calculationExcluded:"排除单元格",calculationEmpty:"选区没有可计算数值,计数为 0,其余结果为空。",calculationNoSelection:"先关闭设置并选择数据,再从底部工具栏打开选区计算。",calculationSum:"求和 SUM",calculationAverage:"平均值 AVERAGE",calculationMin:"最小值 MIN",calculationMax:"最大值 MAX",calculationCount:"数值计数 COUNT",calculationMedian:"中位数 MEDIAN",calculationCustom:"组合公式",calculationErrorSelection:"请选择同一明细区域中的数据。",calculationErrorLimit:"选区超过计算预算,请缩小范围后重试。",calculationErrorExpression:"公式无效,请使用支持的摘要名称、运算符与括号。",calculationErrorDivision:"除数不能为 0。",calculationErrorOverflow:"结果超出有效数值范围。",calculationErrorPrecision:"数值超出安全精度,或展示小数位不是 0 至 12 的整数。"};function le(e){const a={...C};for(const l of Object.keys(a)){const n=e[l];typeof n=="string"&&(a[l]=n)}return a}const k={...R,...C,exportMenu:"导出",exportMenuDescription:"选择文件格式",clearSearch:"清除搜索",searchHint:"Enter 下一个 · Shift+Enter 上一个",searchNoMatches:"没有匹配内容",pageJump:"跳至页",pageJumpInvalid:"请输入有效页码",pageJumpHint:"Enter 跳转",pagination:"报表分页",recordNavigation:"标签记录",recordInfo:"记录 {cur} / {total}",prevRecord:"上一条记录",nextRecord:"下一条记录",dataExplanation:"来源数据说明",dataExplanationHint:"按字段查看来源与计算说明",dataExplanationSearch:"搜索说明、字段或记录",dataExplanationEmpty:"没有匹配的数据说明",dataMissingSource:"暂无来源",dataNotApplicable:"业务不适用",dataNotCalculable:"无法计算",columnSearchHint:"输入列名或字段标识",columnSearchShortcut:"↑ ↓ 选择 · Enter 定位",closeColumnDirectory:"关闭字段目录",columnResultsMore:"{count} 个匹配字段,显示前 {limit} 个;继续输入可缩小范围",columnCount:"{count} 个字段",settingsGeneral:"常规",settingsTools:"工具",settingsAdvanced:"高级",settingsAdvancedDescription:"按需开启分析能力,保持日常阅读简洁。",settingsCalculations:"启用选区计算",settingsCalculationsDescription:"选取数值后计算求和、平均值或组合公式,仅用于本地分析。",title:"报表预览",prevPage:"‹ 上一页",nextPage:"下一页 ›",pageInfo:"{cur} / {total}",fitWidth:"适宽",exportHtml:"导出 HTML",exportPdf:"导出 PDF",exportExcel:"导出 Excel",exportImage:"导出图片",exportWord:"导出 Word",exporting:"正在生成 {format}…",print:"打印",pdfWindow:"PDF 窗口",loading:"报表渲染中…",empty:"暂无预览数据",errorPrefix:"",retry:"重试",pdfFontUnavailable:"PDF 字体尚未就绪,请联系管理员检查字体配置;预览及其它导出仍可使用。",searchPlaceholder:"搜索报表内容",matchInfo:"{cur}/{total}",prevMatch:"‹",nextMatch:"›",thumbnails:"缩略图",paramsTitle:"查询条件",query:"查 询",reset:"重 置",paramRequired:"请填写{label}",paramInvalid:"{label}:{message}",paramPrompt:"请先完善查询条件",paramPromptDescription:"填写必填条件后点击查询,即可生成报表。",paramSelectPlaceholder:"请选择{label}",paramTextPlaceholder:"请输入{label}",paramRangeStart:"开始日期",paramRangeEnd:"结束日期",searching:"搜索中…",importExcel:"导入 Excel 模板",importing:"正在导入 Excel…",editCell:"编辑单元格",editingHint:"双击单元格编辑 · Enter 确认 · Esc 取消",saving:"正在保存修改…",editInvalidNumber:"请输入有效数字;清空表示无值",editInvalidBoolean:"请输入 true / false、是 / 否或 1 / 0",editConflict:"该单元格已变化,请重新打开编辑",settings:"设置",settingsDisplay:"阅读工具",settingsExport:"导出与打印",settingsData:"数据操作",settingsUnavailable:"需由接入方配置启用",settingsReset:"恢复默认",settingsClose:"关闭设置",search:"内容搜索",closeSearch:"关闭搜索",prevSearchMatch:"上一个匹配",nextSearchMatch:"下一个匹配",zoom:"缩放工具",settingsLocal:"按需启用工具,仅作用于当前预览。",editingLocal:"修改为本地草稿;不会自动写入业务数据库。",editingSaved:"修改将通过接入方配置的保存回调提交。",importLocal:"导入仅生成本地预览,不自动替换业务数据。",emptyDescription:"当前查询没有明细,请调整查询条件后重试。",undo:"撤销",redo:"重做",restoreChanges:"恢复来源值",changes:"修改明细",changesCount:"{count} 处修改",changesEmpty:"尚无修改",changesBefore:"来源值",changesAfter:"当前值",editAtomicRequired:"批量保存需要接入方提供原子 saveBatch 回调;本次未写入任何单元格。",clipboardLimit:"单次最多粘贴 10000 个单元格,请分批处理。",preferencesError:"偏好存储不可用,设置仍在当前预览中生效。",freezeHeaders:"冻结表头",frozenColumns:"冻结前列",sections:"工作表与章节",locateField:"定位字段",locateFieldPlaceholder:"输入字段标识,Enter 定位",locateFieldMissing:"未找到该字段,请核对字段标识。",importSummary:"Excel 导入摘要",importPreserved:"已导入 {sheets} 个工作表,保留内容、合并和样式。",importWarnings:"兼容性提示",importReadOnly:"公式、日期及受保护单元格保持只读;公式不重算。",conflicts:"保存冲突",editReadOnly:"选区包含只读或无权限单元格,本次修改未应用。",editMissing:"选区超出报表范围或缺少业务来源,请重新选择。",editRecalculationUnavailable:"此报表缺少重算会话或稳定数据来源,暂不支持编辑;请使用 reports/本地数据源重新加载。",editDuplicate:"选区包含同一业务字段的重复单元格,请缩小选区。",clipboardInvalid:"剪贴板内容无法识别,请使用矩形表格文本重新粘贴。",editSaved:"修改已通过保存回调确认",settingsPanes:"冻结窗格",columnDirectory:"字段目录",columnSearch:"搜索列名或字段",columnNoMatches:"未找到匹配字段",columnResults:"匹配字段",columnGroup:"明细区域",discardTitle:"保留当前修改?",discardDescription:"当前报表有尚未保存的输入或本地草稿,继续操作将替换这些内容。",discardKeep:"继续编辑",discardProceed:"放弃修改并继续",taskQuery:"正在获取数据…",taskValidate:"正在校验数据…",taskLayout:"正在生成版式…",taskAssets:"正在准备图片和字体…",taskEncode:"正在生成文件…",taskDownload:"正在准备下载…",taskPrint:"正在准备打印…",taskCancel:"取消任务",taskCancelled:"任务已取消,可重新操作。",diagnosticsSearch:"搜索提示、错误码或位置",diagnosticsMore:"共 {count} 条匹配,当前展示前 100 条;请搜索缩小范围。",diagnosticsTitle:"输出兼容性提示",diagnosticsLocate:"定位",diagnosticsLocation:"第 {page} 页 · 组件 {component}",diagnosticsStrict:"当前格式存在已知内容降级,请查看兼容性提示或选择其他输出格式。",diagnosticsDetails:"查看技术详情",diagnosticMissingImage:"图片或图表资源尚未准备完成,请重试或联系管理员。",diagnosticUnsupported:"当前输出格式会省略此内容,建议选择 PDF 或图片格式。",diagnosticUnsupportedStyle:"当前格式无法保留部分样式,请查看位置并选择适合的输出格式。",diagnosticImageFormat:"当前图片格式无法直接导出,请转换资源后重试。",diagnosticRichText:"文字内容会保留,部分字体与段落样式将简化。",diagnosticNested:"单元格中的嵌套内容会省略,单元格文字会保留。",diagnosticImageAsync:"图片需要完成加载后才能输出。",diagnosticImageDecode:"图片加载失败,请检查资源后重试。",diagnosticAssetFailed:"图表或图片生成失败,请重试或联系管理员。",diagnosticAssetBudget:"图片资源超出处理范围,请减少资源或缩小报表范围。"},B={emptyAccent:"#79a7e8",shellBg:"#f4f7fc",shellFg:"#334155",toolbarBg:"#ffffff",toolbarBorder:"#e4eaf3",toolbarFg:"#334155",btnFg:"#526078",btnBorder:"#dbe3ef",btnHoverBg:"#edf3ff",btnHoverFg:"#315fba",btnActiveBg:"#3569d4"};function F(e={}){return{...e,defaults:e.defaults??{},presets:e.presets??{}}}function ie(e){return e}const g={showExport:!0,showPrint:!0,showPdfWindow:!0,showSettings:!0,showParams:!0,gapPx:18,pdfFontUrl:"/simhei.ttf",logger:console},se={warn:()=>{},info:()=>{}};function ce(e,a){if(!(!e&&!a))return{...e,...a,calibration:{...e?.calibration,...a?.calibration}}}function E(e,a){return{...e,...a,theme:{...e?.theme,...a?.theme},messages:{...e?.messages,...a?.messages},preview:{...e?.preview,...a?.preview},xlsx:{...e?.xlsx,...a?.xlsx},toolbar:{...e?.toolbar,...a?.toolbar},interaction:{...e?.interaction,...a?.interaction},output:{...e?.output,...a?.output},printOptions:ce(e?.printOptions,a?.printOptions)}}function de(e){return{showExport:e.showExport??g.showExport,showPrint:e.showPrint??g.showPrint,showPdfWindow:e.showPdfWindow??g.showPdfWindow,showSettings:e.showSettings??g.showSettings,showParams:e.showParams??g.showParams,gapPx:e.gapPx??g.gapPx}}function ue(e,a){const l=a?e?.presets?.[a]:e?.defaultPreset?e?.presets?.[e.defaultPreset]:void 0,n=E(e?.defaults,l);return{...de(n),pdfFontUrl:n.pdfFontUrl??g.pdfFontUrl,theme:{...B,...n.theme},messages:{...k,...n.messages},logger:n.logger??g.logger,preview:{overscanPages:A(n.preview?.overscanPages,1,10,!0),searchDebounceMs:A(n.preview?.searchDebounceMs,200,2e3)},xlsx:{...n.xlsx},editable:n.editable??!1,excelImport:n.excelImport??!1,toolbar:{...n.toolbar},interaction:{...n.interaction},preferences:n.preferences,assets:n.assets,guardChanges:n.guardChanges??!0,beforeDiscard:n.beforeDiscard,output:{...n.output},printOptions:n.printOptions}}function A(e,a,l,n=!1){if(e==null||!Number.isFinite(e))return a;const i=Math.max(0,Math.min(l,e));return n?Math.floor(i):i}function pe(e){const a={};return e.emptyAccent!=null&&(a["--mrp-empty-accent"]=e.emptyAccent),e.shellBg!=null&&(a["--mrp-shell-bg"]=e.shellBg),e.shellFg!=null&&(a["--mrp-shell-fg"]=e.shellFg),e.toolbarBg!=null&&(a["--mrp-toolbar-bg"]=e.toolbarBg),e.toolbarBorder!=null&&(a["--mrp-toolbar-border"]=e.toolbarBorder),e.toolbarFg!=null&&(a["--mrp-toolbar-fg"]=e.toolbarFg),e.btnFg!=null&&(a["--mrp-btn-fg"]=e.btnFg),e.btnBorder!=null&&(a["--mrp-btn-border"]=e.btnBorder),e.btnHoverBg!=null&&(a["--mrp-btn-hover-bg"]=e.btnHoverBg),e.btnHoverFg!=null&&(a["--mrp-btn-hover-fg"]=e.btnHoverFg),e.btnActiveBg!=null&&(a["--mrp-btn-active-bg"]=e.btnActiveBg),a}function fe(e){const a=t.inject(S.MACH_REPORT_CONFIG_KEY,null),l=t.computed(()=>{const n=a?.value??null,i="defaults"in e||"presets"in e||"defaultPreset"in e?F(e):{defaults:e,presets:{}};if(!n)return i;const s={...n.presets,...i.presets};for(const m of Object.keys(s))s[m]=E(E(n.presets[m],i.defaults),i.presets[m]);return{defaults:E(n.defaults,i.defaults),presets:s,defaultPreset:i.defaultPreset??n.defaultPreset}});t.provide(S.MACH_REPORT_CONFIG_KEY,l)}function me(){return t.inject(S.MACH_REPORT_CONFIG_KEY,t.computed(()=>null))}exports.DEFAULT_CALCULATION_MESSAGES=C;exports.DEFAULT_MESSAGES=k;exports.DEFAULT_PRINT_MESSAGES=R;exports.DEFAULT_THEME=B;exports.MachReportError=b;exports.ReportParamPanel=oe;exports.SILENT_LOGGER=se;exports.defineMachReportConfig=F;exports.defineMachReportPreset=ie;exports.normalizeReportLoadError=V;exports.printCalibration=L;exports.provideMachReportConfig=fe;exports.resolveCalculationMessages=le;exports.resolveConfig=ue;exports.snapshotPrintOptions=O;exports.themeToCssVars=pe;exports.toErrorDetail=_;exports.useMachReportConfig=me;exports.useReportParams=G;
|