@agile-team/mach-report 2.14.0 → 2.16.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 +26 -16
- package/THIRD_PARTY_NOTICES.md +3 -1
- package/dist/{ExcelBindingWizard-CLT2p7P3.cjs → ExcelBindingWizard-CP6h2x1f.cjs} +1 -1
- package/dist/{ExcelBindingWizard-CvsWR8Ga.js → ExcelBindingWizard-HhB3hAJE.js} +3 -3
- package/dist/ParamEditor-CUQLgoxa.cjs +1 -0
- package/dist/ParamEditor-OKesP_nO.js +594 -0
- package/dist/{ReportBatchPanel-DkxTzBkD.cjs → ReportBatchPanel-cZCAMAwH.cjs} +1 -1
- package/dist/{ReportBatchPanel-LqVgiqp7.js → ReportBatchPanel-ruxcbfY6.js} +39 -39
- package/dist/ReportPreview-BcDKCLiK.js +4834 -0
- package/dist/ReportPreview-Bk9nLfO9.cjs +6 -0
- package/dist/{ReportTemplateLibrary-cQ1sqNYo.cjs → ReportTemplateLibrary-BDlNT8JN.cjs} +1 -1
- package/dist/{ReportTemplateLibrary-MjWEtc7X.js → ReportTemplateLibrary-DcwrH-63.js} +1 -1
- package/dist/{RuleEditor-BaR6xUiI.cjs → RuleEditor-BX5S8RSF.cjs} +1 -1
- package/dist/{RuleEditor-ChuXMlei.js → RuleEditor-CGl9XY2s.js} +5 -5
- package/dist/{TemplateOutlinePanel-BHKP89Xz.cjs → TemplateOutlinePanel-CGrT5DFN.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-Dci6aRn1.js → TemplateOutlinePanel-SXCjaPKR.js} +2 -2
- package/dist/{TemplateReusePanel-CY5eO2Sh.cjs → TemplateReusePanel-6Z3wRFz8.cjs} +1 -1
- package/dist/{TemplateReusePanel-B7Gmyc1z.js → TemplateReusePanel-lHLOS9Wn.js} +2 -2
- package/dist/{TemplateReviewPanel-DjlX3xpt.js → TemplateReviewPanel-CJ9PLc48.js} +2 -2
- package/dist/{TemplateReviewPanel-JvZe9_4G.cjs → TemplateReviewPanel-Dpk7sLcF.cjs} +1 -1
- package/dist/analytics.cjs +1 -1
- package/dist/analytics.d.cts +5 -1
- package/dist/analytics.d.ts +5 -1
- package/dist/analytics.js +154 -60
- package/dist/artifact-integrity.json +143 -0
- package/dist/assets-CqIbfbTr.js +126 -0
- package/dist/assets-e4YSke8n.cjs +1 -0
- package/dist/auto-YR7a4BtF.js +240 -0
- package/dist/auto-uVBjX1j5.cjs +1 -0
- package/dist/batch-WzDIXJAt.js +220 -0
- package/dist/batch-z6Aw5GEY.cjs +1 -0
- package/dist/capabilities-DDwXr_cA.js +103 -0
- package/dist/capabilities-DNLyZdNw.cjs +1 -0
- package/dist/codes.d.cts +4 -0
- package/dist/codes.d.ts +4 -0
- package/dist/component-tree-Ca6YYfHq.js +61 -0
- package/dist/component-tree-DkGLEfZC.cjs +1 -0
- package/dist/{computed-Bvk0W15F.js → computed-C-4C2S5h.js} +3 -3
- package/dist/config-Dg_o8e7m.cjs +1 -0
- package/dist/config-XQ4qrQ7Q.js +844 -0
- package/dist/designer-BfQSahxq.js +5163 -0
- package/dist/designer-CPPdeM5_.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +197 -16
- package/dist/designer.d.ts +197 -16
- package/dist/designer.js +1 -1
- package/dist/diagnostic-notification-B9K9We3h.cjs +1 -0
- package/dist/diagnostic-notification-qGAYZdkB.js +7 -0
- package/dist/drill-CsdjgkRM.cjs +1 -0
- package/dist/drill-DIGsZfyB.js +145 -0
- package/dist/encoding-BOGq4qYL.js +21 -0
- package/dist/encoding-BYF9ZTl9.cjs +1 -0
- package/dist/{font-loader-DHto6Lra.js → font-loader-CzI1GuBc.js} +1 -1
- package/dist/{font-loader-vhCT8znW.cjs → font-loader-EKLzOJxf.cjs} +1 -1
- package/dist/index.cjs +8 -9
- package/dist/index.d.cts +84 -4
- package/dist/index.d.ts +84 -4
- package/dist/index.js +829 -833
- package/dist/json-snapshot-D6ioHth9.js +1702 -0
- package/dist/json-snapshot-DknkjvxP.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-AyJGb22z.cjs → pdf-ByVCb1i6.cjs} +49 -49
- package/dist/{pdf-8UPQebOE.js → pdf-DJ5S6ukC.js} +4924 -4872
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.d.cts +20 -3
- package/dist/pdf.d.ts +20 -3
- package/dist/pdf.js +2 -2
- package/dist/{plugin-BGKf-Tqg.js → plugin-C2j5_mhx.js} +2 -2
- package/dist/{plugin-CktLH_Iy.cjs → plugin-Dr39GBRG.cjs} +1 -1
- package/dist/prepared-DdrjLC7L.cjs +1 -0
- package/dist/prepared-DqtpvRTn.js +87 -0
- package/dist/progress-B0ctFpKf.cjs +1 -0
- package/dist/progress-BXzlVbIp.js +29 -0
- package/dist/progress-DJBd9Rb9.cjs +1 -0
- package/dist/progress-Hc2vxoCs.js +52 -0
- package/dist/protocol-BzwMP4Vw.cjs +1 -0
- package/dist/protocol-kt4Iy6-3.js +90 -0
- package/dist/record-bindings-CZWBJ1fU.js +195 -0
- package/dist/record-bindings-DUX1VMlR.cjs +1 -0
- package/dist/{region-binding-workflow-DEJbhpCv.js → region-binding-workflow-CWNvIjkV.js} +1 -1
- package/dist/{region-binding-workflow-BzfbxRiR.cjs → region-binding-workflow-CqSMxQ4p.cjs} +1 -1
- package/dist/report-encoding-worker.cjs +1 -0
- package/dist/report-encoding-worker.d.ts +1 -0
- package/dist/report-encoding-worker.js +2 -0
- 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/rich-text-layout-ALlMoYOG.cjs +3 -0
- package/dist/rich-text-layout-Ct5WrY1g.js +102 -0
- package/dist/runtime-BjKBI530.js +168 -0
- package/dist/runtime-CBFEPKEs.cjs +1 -0
- package/dist/sbom.cdx.json +3982 -0
- package/dist/server/node.d.cts +106 -2
- package/dist/server/node.d.ts +106 -2
- package/dist/server-node.cjs +5 -1
- package/dist/server-node.js +4634 -539
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +780 -5
- package/dist/server.d.ts +780 -5
- package/dist/server.js +773 -691
- package/dist/sha256-BshdOkCC.cjs +1 -0
- package/dist/sha256-DTG-Gq8i.js +157 -0
- package/dist/style-67OqfNed.js +73 -0
- package/dist/style-C22Pbv3T.cjs +1 -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-BtR2JmCL.js +414 -0
- package/dist/template-catalog-C2NLdrwB.cjs +1 -0
- package/dist/{template-fragments-DFUpq5QM.cjs → template-fragments-BVsbxs4a.cjs} +1 -1
- package/dist/{template-fragments-CLkGo6To.js → template-fragments-By0aZC1D.js} +21 -21
- 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-C62vpv4a.cjs +1 -0
- package/dist/template-registry-Cw3vRTX2.js +801 -0
- package/dist/textwrap-BEIg2w8y.js +110 -0
- package/dist/textwrap-BI-yJ6Wt.cjs +4 -0
- package/dist/{tree-CqcQ99NM.js → tree-CjVZLRw7.js} +1 -1
- package/dist/vue/async.d.cts +189 -14
- package/dist/vue/async.d.ts +189 -14
- package/dist/vue/index.d.cts +246 -22
- package/dist/vue/index.d.ts +246 -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-BfK1yHOO.js → workbook-session-BeSO8PFB.js} +5460 -5295
- package/dist/{workbook-session-DNa2RHNG.cjs → workbook-session-Cbts-22R.cjs} +19 -19
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +104 -2
- package/dist/worker.d.ts +104 -2
- package/dist/worker.js +12 -156
- package/dist/xlsx-node.cjs +35 -35
- package/dist/xlsx-node.js +2138 -2137
- package/dist/xlsx.cjs +4 -4
- package/dist/xlsx.d.cts +24 -10
- package/dist/xlsx.d.ts +24 -10
- package/dist/xlsx.js +303 -277
- package/package.json +7 -4
- 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/defaults-DXhiM1ZD.js +0 -10
- package/dist/defaults-xhmcLLrf.cjs +0 -1
- package/dist/designer-Ci1LizA9.js +0 -5020
- package/dist/designer-rtmVIIdN.cjs +0 -2
- package/dist/grid-strokes-Cr7DwUux.cjs +0 -1
- package/dist/grid-strokes-DyyG1q_o.js +0 -53
- 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/render-plan-7xpGrCEl.cjs +0 -1
- package/dist/render-plan-Ck6koX9L.js +0 -13
- package/dist/style-CQ1PK8ZB.js +0 -67
- package/dist/style-UgIJSA1F.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-COXDEJEM.js +0 -570
- package/dist/template-registry-D3SjENi6.cjs +0 -1
- package/dist/validate-BJ5HIWY8.cjs +0 -1
- package/dist/validate-CkQBWCeg.js +0 -163
package/dist/server/node.d.cts
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import { WorkerOptions as WorkerOptions_2 } from 'node:worker_threads';
|
|
4
4
|
|
|
5
|
+
declare interface BrowserReportWorker {
|
|
6
|
+
postMessage(value: unknown, transfer?: Transferable[]): void;
|
|
7
|
+
terminate(): void;
|
|
8
|
+
addEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
9
|
+
addEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
10
|
+
removeEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
11
|
+
removeEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
12
|
+
}
|
|
13
|
+
|
|
5
14
|
/** Serializable symbol settings. Encoders remain in the optional /codes entry. */
|
|
6
15
|
declare interface CodeOptions {
|
|
7
16
|
/** Explicit content, including an empty value, takes precedence over legacy fallbackText. */
|
|
@@ -72,6 +81,9 @@ declare interface ComponentStyle {
|
|
|
72
81
|
rotateDeg?: number;
|
|
73
82
|
}
|
|
74
83
|
|
|
84
|
+
/** Node needs no URL factory: this module is the isolated encoding entry in both ESM and CommonJS builds. */
|
|
85
|
+
export declare function createNodeAutoReportExporter(options?: Omit<ReportExportExecutionOptions, "workerFactory">): ReportAutoExporter;
|
|
86
|
+
|
|
75
87
|
/** 独立 worker_threads 适配器;worker 入口注册自己的模板/Provider,不把函数跨线程序列化。 */
|
|
76
88
|
export declare function createNodeReportExecutor(options: NodeReportExecutorOptions): ReportRuntimeExecutor;
|
|
77
89
|
|
|
@@ -85,6 +97,8 @@ export declare interface FileReportJobStoreOptions extends ReportJobStoreBudgetO
|
|
|
85
97
|
}
|
|
86
98
|
|
|
87
99
|
declare interface GridCell {
|
|
100
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
101
|
+
richParagraphs?: RichParagraph[];
|
|
88
102
|
text?: string;
|
|
89
103
|
rawText?: string;
|
|
90
104
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -108,6 +122,19 @@ declare interface GridCell {
|
|
|
108
122
|
style?: ComponentStyle;
|
|
109
123
|
}
|
|
110
124
|
|
|
125
|
+
/** Bounded binary image inspection shared by PDF, Excel and template import. No decoder is loaded. */
|
|
126
|
+
declare interface ImageMediaOptions {
|
|
127
|
+
maxImageBytes?: number;
|
|
128
|
+
maxTotalImageBytes?: number;
|
|
129
|
+
maxImages?: number;
|
|
130
|
+
/** Decoded pixels per unique image, default 16 million. */
|
|
131
|
+
maxImagePixels?: number;
|
|
132
|
+
/** Total decoded pixels for unique media, default 64 million. */
|
|
133
|
+
maxTotalImagePixels?: number;
|
|
134
|
+
/** Maximum source dimension, default 16384 pixels. */
|
|
135
|
+
maxImageDimension?: number;
|
|
136
|
+
}
|
|
137
|
+
|
|
111
138
|
export declare interface NodeReportExecutorOptions extends ReportWorkerOptions {
|
|
112
139
|
filename?: string | URL;
|
|
113
140
|
workerUrl?: string | URL;
|
|
@@ -194,6 +221,8 @@ declare interface PreparedReport {
|
|
|
194
221
|
revision?: string;
|
|
195
222
|
sourceToken?: string;
|
|
196
223
|
}>;
|
|
224
|
+
/** Ordered occurrences; legacy revisions remains last-value-by-ID for compatibility. */
|
|
225
|
+
sources?: ReportRuntimeSource[];
|
|
197
226
|
/** Captured metrics identity; absence on old saved instances remains supported with diagnostics. */
|
|
198
227
|
layout?: {
|
|
199
228
|
textMetrics: "heuristic" | "provided" | "font-bytes";
|
|
@@ -211,8 +240,20 @@ declare interface RenderPlan {
|
|
|
211
240
|
/** Optional publication digest for Node hosts; use as reviewReportPublication({ digest }). */
|
|
212
241
|
export declare function reportArtifactSha256(bytes: Uint8Array): string;
|
|
213
242
|
|
|
243
|
+
export declare interface ReportAutoExporter {
|
|
244
|
+
exportPrepared(input: ReportRuntimePreparedExportInput, localOverride?: ReportLocalExport): Promise<ReportAutoExportResult>;
|
|
245
|
+
cancel(): void;
|
|
246
|
+
dispose(): void;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export declare interface ReportAutoExportResult extends ReportRuntimeExportResult {
|
|
250
|
+
execution: ReportExportDecision;
|
|
251
|
+
}
|
|
252
|
+
|
|
214
253
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
215
254
|
declare interface ReportCellSource {
|
|
255
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
256
|
+
sourceScope?: string;
|
|
216
257
|
datasetId: string;
|
|
217
258
|
rowKey: string | number;
|
|
218
259
|
field: string;
|
|
@@ -226,6 +267,8 @@ declare interface ReportDataTarget {
|
|
|
226
267
|
rowKey?: string | number;
|
|
227
268
|
/** Use table identity when the same dataset appears in several tables. */
|
|
228
269
|
tableId?: string;
|
|
270
|
+
/** Assigned by the source/runtime when several reports share dataset names. */
|
|
271
|
+
reportScope?: string;
|
|
229
272
|
}
|
|
230
273
|
|
|
231
274
|
declare interface ReportDescription {
|
|
@@ -251,6 +294,38 @@ declare interface ReportDiagnostic {
|
|
|
251
294
|
target?: ReportDataTarget;
|
|
252
295
|
}
|
|
253
296
|
|
|
297
|
+
export declare interface ReportExportDecision {
|
|
298
|
+
mode: "local" | "worker";
|
|
299
|
+
reason: ReportExportDecisionReason;
|
|
300
|
+
/** Lower bounds: traversal stops as soon as isolation is warranted. No font or image hashing. */
|
|
301
|
+
estimate: {
|
|
302
|
+
pages: number;
|
|
303
|
+
cells: number;
|
|
304
|
+
bytes: number;
|
|
305
|
+
};
|
|
306
|
+
hardCancellation: boolean;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare type ReportExportDecisionReason = "small-task" | "threshold" | "scan-limit" | "explicit-local" | "explicit-worker" | "worker-unavailable" | "worker-start-failed" | "nonserializable-options";
|
|
310
|
+
|
|
311
|
+
export declare interface ReportExportExecutionOptions {
|
|
312
|
+
mode?: "auto" | "worker" | "local";
|
|
313
|
+
/** A fresh bundler-managed module Worker for every call; never a shared worker. */
|
|
314
|
+
workerFactory?: () => BrowserReportWorker;
|
|
315
|
+
thresholds?: ReportExportThresholds;
|
|
316
|
+
/** Auto only. Startup unavailability may use local; encoding failures never retry. */
|
|
317
|
+
fallback?: "local" | "error";
|
|
318
|
+
timeoutMs?: number;
|
|
319
|
+
budget?: ReportRuntimeBudget;
|
|
320
|
+
onDecision?: (decision: ReportExportDecision) => void;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
declare interface ReportExportThresholds {
|
|
324
|
+
cells?: number;
|
|
325
|
+
pages?: number;
|
|
326
|
+
bytes?: number;
|
|
327
|
+
}
|
|
328
|
+
|
|
254
329
|
declare type ReportJobJson = null | boolean | number | string | ReportJobJson[] | {
|
|
255
330
|
[key: string]: ReportJobJson;
|
|
256
331
|
};
|
|
@@ -332,6 +407,8 @@ declare interface ReportJobTombstone {
|
|
|
332
407
|
expiresAt: number;
|
|
333
408
|
}
|
|
334
409
|
|
|
410
|
+
declare type ReportLocalExport = (input: ReportRuntimePreparedExportInput) => Promise<ReportRuntimeExportResult>;
|
|
411
|
+
|
|
335
412
|
/** 报表参数定义(声明式,模板自描述参数面:渲染组件据此生成查询面板) */
|
|
336
413
|
declare interface ReportParamDef {
|
|
337
414
|
/** 参数名(传入 params,与数据集 SQL #{field} 绑定对应) */
|
|
@@ -344,6 +421,10 @@ declare interface ReportParamDef {
|
|
|
344
421
|
label: string;
|
|
345
422
|
value: string;
|
|
346
423
|
}>;
|
|
424
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
425
|
+
optionsSource?: string;
|
|
426
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
427
|
+
dependsOn?: string[];
|
|
347
428
|
defaultValue?: string;
|
|
348
429
|
required?: boolean;
|
|
349
430
|
placeholder?: string;
|
|
@@ -361,7 +442,7 @@ declare interface ReportParamIssue {
|
|
|
361
442
|
message: string;
|
|
362
443
|
}
|
|
363
444
|
|
|
364
|
-
declare type ReportParamIssueCode = "definition" | "required" | "type" | "option" | "minimum" | "maximum" | "minLength" | "maxLength";
|
|
445
|
+
declare type ReportParamIssueCode = "definition" | "required" | "type" | "option" | "dependency" | "minimum" | "maximum" | "minLength" | "maxLength";
|
|
365
446
|
|
|
366
447
|
declare interface ReportParamValidation {
|
|
367
448
|
ok: boolean;
|
|
@@ -392,6 +473,16 @@ declare interface ReportRuntime {
|
|
|
392
473
|
exportPrepared(input: ReportRuntimePreparedExportInput): Promise<ReportRuntimeExportResult>;
|
|
393
474
|
}
|
|
394
475
|
|
|
476
|
+
declare interface ReportRuntimeBudget {
|
|
477
|
+
maxRows?: number;
|
|
478
|
+
maxPages?: number;
|
|
479
|
+
maxCells?: number;
|
|
480
|
+
maxOutputBytes?: number;
|
|
481
|
+
/** Bound the plain JSON snapshot accepted by exportPrepared (default 64 MB). */
|
|
482
|
+
maxPreparedBytes?: number;
|
|
483
|
+
maxDurationMs?: number;
|
|
484
|
+
}
|
|
485
|
+
|
|
395
486
|
/** 可用 worker_threads/进程/RPC 实现;接收可序列化请求,signal 由桥接层映射为取消消息。 */
|
|
396
487
|
declare interface ReportRuntimeExecutor {
|
|
397
488
|
/** Old custom executors may omit this; the runtime explicitly rejects unsupported prepared output. */
|
|
@@ -404,10 +495,11 @@ declare interface ReportRuntimeExportInput extends ReportRuntimeInput {
|
|
|
404
495
|
format: "pdf" | "xlsx";
|
|
405
496
|
/** strict 在编码前拒绝已识别的输出降级;默认保留诊断并继续。 */
|
|
406
497
|
fidelity?: "warn" | "strict";
|
|
407
|
-
xlsx?: {
|
|
498
|
+
xlsx?: ImageMediaOptions & {
|
|
408
499
|
sheetMode?: "auto" | "pages" | "continuous";
|
|
409
500
|
valueMode?: "text" | "raw";
|
|
410
501
|
paperSize?: "auto" | "a3" | "a4" | "a5";
|
|
502
|
+
sheetName?: (sheetIndex: number) => string;
|
|
411
503
|
};
|
|
412
504
|
}
|
|
413
505
|
|
|
@@ -428,6 +520,8 @@ declare interface ReportRuntimeInput extends ReportTaskMonitoring {
|
|
|
428
520
|
/** Encode an existing plan without querying providers or repaginating. */
|
|
429
521
|
declare interface ReportRuntimePreparedExportInput extends ReportTaskMonitoring {
|
|
430
522
|
prepared: PreparedReport;
|
|
523
|
+
/** verify checks font metric identity; preserve explicitly keeps existing geometry, with a diagnostic. Encoding fidelity is unchanged. */
|
|
524
|
+
layoutPolicy?: "verify" | "preserve";
|
|
431
525
|
format: ReportRuntimeExportInput["format"];
|
|
432
526
|
fidelity?: ReportRuntimeExportInput["fidelity"];
|
|
433
527
|
pdf?: ReportPdfFontOptions;
|
|
@@ -435,6 +529,15 @@ declare interface ReportRuntimePreparedExportInput extends ReportTaskMonitoring
|
|
|
435
529
|
signal?: AbortSignal;
|
|
436
530
|
}
|
|
437
531
|
|
|
532
|
+
/** One query occurrence; repeated report IDs retain independent provenance. */
|
|
533
|
+
declare interface ReportRuntimeSource {
|
|
534
|
+
reportId: string;
|
|
535
|
+
reportIndex: number;
|
|
536
|
+
reportScope: string;
|
|
537
|
+
revision?: string;
|
|
538
|
+
sourceToken?: string;
|
|
539
|
+
}
|
|
540
|
+
|
|
438
541
|
declare interface ReportRuntimeStats {
|
|
439
542
|
rows: number;
|
|
440
543
|
pages: number;
|
|
@@ -475,6 +578,7 @@ export declare class ReportWorkerError extends Error {
|
|
|
475
578
|
|
|
476
579
|
declare interface ReportWorkerOptions {
|
|
477
580
|
timeoutMs?: number;
|
|
581
|
+
budget?: ReportRuntimeBudget;
|
|
478
582
|
}
|
|
479
583
|
|
|
480
584
|
declare interface RichParagraph {
|
package/dist/server/node.d.ts
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import { WorkerOptions as WorkerOptions_2 } from 'node:worker_threads';
|
|
4
4
|
|
|
5
|
+
declare interface BrowserReportWorker {
|
|
6
|
+
postMessage(value: unknown, transfer?: Transferable[]): void;
|
|
7
|
+
terminate(): void;
|
|
8
|
+
addEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
9
|
+
addEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
10
|
+
removeEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
11
|
+
removeEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
12
|
+
}
|
|
13
|
+
|
|
5
14
|
/** Serializable symbol settings. Encoders remain in the optional /codes entry. */
|
|
6
15
|
declare interface CodeOptions {
|
|
7
16
|
/** Explicit content, including an empty value, takes precedence over legacy fallbackText. */
|
|
@@ -72,6 +81,9 @@ declare interface ComponentStyle {
|
|
|
72
81
|
rotateDeg?: number;
|
|
73
82
|
}
|
|
74
83
|
|
|
84
|
+
/** Node needs no URL factory: this module is the isolated encoding entry in both ESM and CommonJS builds. */
|
|
85
|
+
export declare function createNodeAutoReportExporter(options?: Omit<ReportExportExecutionOptions, "workerFactory">): ReportAutoExporter;
|
|
86
|
+
|
|
75
87
|
/** 独立 worker_threads 适配器;worker 入口注册自己的模板/Provider,不把函数跨线程序列化。 */
|
|
76
88
|
export declare function createNodeReportExecutor(options: NodeReportExecutorOptions): ReportRuntimeExecutor;
|
|
77
89
|
|
|
@@ -85,6 +97,8 @@ export declare interface FileReportJobStoreOptions extends ReportJobStoreBudgetO
|
|
|
85
97
|
}
|
|
86
98
|
|
|
87
99
|
declare interface GridCell {
|
|
100
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
101
|
+
richParagraphs?: RichParagraph[];
|
|
88
102
|
text?: string;
|
|
89
103
|
rawText?: string;
|
|
90
104
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -108,6 +122,19 @@ declare interface GridCell {
|
|
|
108
122
|
style?: ComponentStyle;
|
|
109
123
|
}
|
|
110
124
|
|
|
125
|
+
/** Bounded binary image inspection shared by PDF, Excel and template import. No decoder is loaded. */
|
|
126
|
+
declare interface ImageMediaOptions {
|
|
127
|
+
maxImageBytes?: number;
|
|
128
|
+
maxTotalImageBytes?: number;
|
|
129
|
+
maxImages?: number;
|
|
130
|
+
/** Decoded pixels per unique image, default 16 million. */
|
|
131
|
+
maxImagePixels?: number;
|
|
132
|
+
/** Total decoded pixels for unique media, default 64 million. */
|
|
133
|
+
maxTotalImagePixels?: number;
|
|
134
|
+
/** Maximum source dimension, default 16384 pixels. */
|
|
135
|
+
maxImageDimension?: number;
|
|
136
|
+
}
|
|
137
|
+
|
|
111
138
|
export declare interface NodeReportExecutorOptions extends ReportWorkerOptions {
|
|
112
139
|
filename?: string | URL;
|
|
113
140
|
workerUrl?: string | URL;
|
|
@@ -194,6 +221,8 @@ declare interface PreparedReport {
|
|
|
194
221
|
revision?: string;
|
|
195
222
|
sourceToken?: string;
|
|
196
223
|
}>;
|
|
224
|
+
/** Ordered occurrences; legacy revisions remains last-value-by-ID for compatibility. */
|
|
225
|
+
sources?: ReportRuntimeSource[];
|
|
197
226
|
/** Captured metrics identity; absence on old saved instances remains supported with diagnostics. */
|
|
198
227
|
layout?: {
|
|
199
228
|
textMetrics: "heuristic" | "provided" | "font-bytes";
|
|
@@ -211,8 +240,20 @@ declare interface RenderPlan {
|
|
|
211
240
|
/** Optional publication digest for Node hosts; use as reviewReportPublication({ digest }). */
|
|
212
241
|
export declare function reportArtifactSha256(bytes: Uint8Array): string;
|
|
213
242
|
|
|
243
|
+
export declare interface ReportAutoExporter {
|
|
244
|
+
exportPrepared(input: ReportRuntimePreparedExportInput, localOverride?: ReportLocalExport): Promise<ReportAutoExportResult>;
|
|
245
|
+
cancel(): void;
|
|
246
|
+
dispose(): void;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export declare interface ReportAutoExportResult extends ReportRuntimeExportResult {
|
|
250
|
+
execution: ReportExportDecision;
|
|
251
|
+
}
|
|
252
|
+
|
|
214
253
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
215
254
|
declare interface ReportCellSource {
|
|
255
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
256
|
+
sourceScope?: string;
|
|
216
257
|
datasetId: string;
|
|
217
258
|
rowKey: string | number;
|
|
218
259
|
field: string;
|
|
@@ -226,6 +267,8 @@ declare interface ReportDataTarget {
|
|
|
226
267
|
rowKey?: string | number;
|
|
227
268
|
/** Use table identity when the same dataset appears in several tables. */
|
|
228
269
|
tableId?: string;
|
|
270
|
+
/** Assigned by the source/runtime when several reports share dataset names. */
|
|
271
|
+
reportScope?: string;
|
|
229
272
|
}
|
|
230
273
|
|
|
231
274
|
declare interface ReportDescription {
|
|
@@ -251,6 +294,38 @@ declare interface ReportDiagnostic {
|
|
|
251
294
|
target?: ReportDataTarget;
|
|
252
295
|
}
|
|
253
296
|
|
|
297
|
+
export declare interface ReportExportDecision {
|
|
298
|
+
mode: "local" | "worker";
|
|
299
|
+
reason: ReportExportDecisionReason;
|
|
300
|
+
/** Lower bounds: traversal stops as soon as isolation is warranted. No font or image hashing. */
|
|
301
|
+
estimate: {
|
|
302
|
+
pages: number;
|
|
303
|
+
cells: number;
|
|
304
|
+
bytes: number;
|
|
305
|
+
};
|
|
306
|
+
hardCancellation: boolean;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare type ReportExportDecisionReason = "small-task" | "threshold" | "scan-limit" | "explicit-local" | "explicit-worker" | "worker-unavailable" | "worker-start-failed" | "nonserializable-options";
|
|
310
|
+
|
|
311
|
+
export declare interface ReportExportExecutionOptions {
|
|
312
|
+
mode?: "auto" | "worker" | "local";
|
|
313
|
+
/** A fresh bundler-managed module Worker for every call; never a shared worker. */
|
|
314
|
+
workerFactory?: () => BrowserReportWorker;
|
|
315
|
+
thresholds?: ReportExportThresholds;
|
|
316
|
+
/** Auto only. Startup unavailability may use local; encoding failures never retry. */
|
|
317
|
+
fallback?: "local" | "error";
|
|
318
|
+
timeoutMs?: number;
|
|
319
|
+
budget?: ReportRuntimeBudget;
|
|
320
|
+
onDecision?: (decision: ReportExportDecision) => void;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
declare interface ReportExportThresholds {
|
|
324
|
+
cells?: number;
|
|
325
|
+
pages?: number;
|
|
326
|
+
bytes?: number;
|
|
327
|
+
}
|
|
328
|
+
|
|
254
329
|
declare type ReportJobJson = null | boolean | number | string | ReportJobJson[] | {
|
|
255
330
|
[key: string]: ReportJobJson;
|
|
256
331
|
};
|
|
@@ -332,6 +407,8 @@ declare interface ReportJobTombstone {
|
|
|
332
407
|
expiresAt: number;
|
|
333
408
|
}
|
|
334
409
|
|
|
410
|
+
declare type ReportLocalExport = (input: ReportRuntimePreparedExportInput) => Promise<ReportRuntimeExportResult>;
|
|
411
|
+
|
|
335
412
|
/** 报表参数定义(声明式,模板自描述参数面:渲染组件据此生成查询面板) */
|
|
336
413
|
declare interface ReportParamDef {
|
|
337
414
|
/** 参数名(传入 params,与数据集 SQL #{field} 绑定对应) */
|
|
@@ -344,6 +421,10 @@ declare interface ReportParamDef {
|
|
|
344
421
|
label: string;
|
|
345
422
|
value: string;
|
|
346
423
|
}>;
|
|
424
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
425
|
+
optionsSource?: string;
|
|
426
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
427
|
+
dependsOn?: string[];
|
|
347
428
|
defaultValue?: string;
|
|
348
429
|
required?: boolean;
|
|
349
430
|
placeholder?: string;
|
|
@@ -361,7 +442,7 @@ declare interface ReportParamIssue {
|
|
|
361
442
|
message: string;
|
|
362
443
|
}
|
|
363
444
|
|
|
364
|
-
declare type ReportParamIssueCode = "definition" | "required" | "type" | "option" | "minimum" | "maximum" | "minLength" | "maxLength";
|
|
445
|
+
declare type ReportParamIssueCode = "definition" | "required" | "type" | "option" | "dependency" | "minimum" | "maximum" | "minLength" | "maxLength";
|
|
365
446
|
|
|
366
447
|
declare interface ReportParamValidation {
|
|
367
448
|
ok: boolean;
|
|
@@ -392,6 +473,16 @@ declare interface ReportRuntime {
|
|
|
392
473
|
exportPrepared(input: ReportRuntimePreparedExportInput): Promise<ReportRuntimeExportResult>;
|
|
393
474
|
}
|
|
394
475
|
|
|
476
|
+
declare interface ReportRuntimeBudget {
|
|
477
|
+
maxRows?: number;
|
|
478
|
+
maxPages?: number;
|
|
479
|
+
maxCells?: number;
|
|
480
|
+
maxOutputBytes?: number;
|
|
481
|
+
/** Bound the plain JSON snapshot accepted by exportPrepared (default 64 MB). */
|
|
482
|
+
maxPreparedBytes?: number;
|
|
483
|
+
maxDurationMs?: number;
|
|
484
|
+
}
|
|
485
|
+
|
|
395
486
|
/** 可用 worker_threads/进程/RPC 实现;接收可序列化请求,signal 由桥接层映射为取消消息。 */
|
|
396
487
|
declare interface ReportRuntimeExecutor {
|
|
397
488
|
/** Old custom executors may omit this; the runtime explicitly rejects unsupported prepared output. */
|
|
@@ -404,10 +495,11 @@ declare interface ReportRuntimeExportInput extends ReportRuntimeInput {
|
|
|
404
495
|
format: "pdf" | "xlsx";
|
|
405
496
|
/** strict 在编码前拒绝已识别的输出降级;默认保留诊断并继续。 */
|
|
406
497
|
fidelity?: "warn" | "strict";
|
|
407
|
-
xlsx?: {
|
|
498
|
+
xlsx?: ImageMediaOptions & {
|
|
408
499
|
sheetMode?: "auto" | "pages" | "continuous";
|
|
409
500
|
valueMode?: "text" | "raw";
|
|
410
501
|
paperSize?: "auto" | "a3" | "a4" | "a5";
|
|
502
|
+
sheetName?: (sheetIndex: number) => string;
|
|
411
503
|
};
|
|
412
504
|
}
|
|
413
505
|
|
|
@@ -428,6 +520,8 @@ declare interface ReportRuntimeInput extends ReportTaskMonitoring {
|
|
|
428
520
|
/** Encode an existing plan without querying providers or repaginating. */
|
|
429
521
|
declare interface ReportRuntimePreparedExportInput extends ReportTaskMonitoring {
|
|
430
522
|
prepared: PreparedReport;
|
|
523
|
+
/** verify checks font metric identity; preserve explicitly keeps existing geometry, with a diagnostic. Encoding fidelity is unchanged. */
|
|
524
|
+
layoutPolicy?: "verify" | "preserve";
|
|
431
525
|
format: ReportRuntimeExportInput["format"];
|
|
432
526
|
fidelity?: ReportRuntimeExportInput["fidelity"];
|
|
433
527
|
pdf?: ReportPdfFontOptions;
|
|
@@ -435,6 +529,15 @@ declare interface ReportRuntimePreparedExportInput extends ReportTaskMonitoring
|
|
|
435
529
|
signal?: AbortSignal;
|
|
436
530
|
}
|
|
437
531
|
|
|
532
|
+
/** One query occurrence; repeated report IDs retain independent provenance. */
|
|
533
|
+
declare interface ReportRuntimeSource {
|
|
534
|
+
reportId: string;
|
|
535
|
+
reportIndex: number;
|
|
536
|
+
reportScope: string;
|
|
537
|
+
revision?: string;
|
|
538
|
+
sourceToken?: string;
|
|
539
|
+
}
|
|
540
|
+
|
|
438
541
|
declare interface ReportRuntimeStats {
|
|
439
542
|
rows: number;
|
|
440
543
|
pages: number;
|
|
@@ -475,6 +578,7 @@ export declare class ReportWorkerError extends Error {
|
|
|
475
578
|
|
|
476
579
|
declare interface ReportWorkerOptions {
|
|
477
580
|
timeoutMs?: number;
|
|
581
|
+
budget?: ReportRuntimeBudget;
|
|
478
582
|
}
|
|
479
583
|
|
|
480
584
|
declare interface RichParagraph {
|