@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/vue/async.d.ts
CHANGED
|
@@ -29,13 +29,21 @@ declare interface AssetRenderBudget {
|
|
|
29
29
|
/** Wall-clock budget, including adapters that ignore AbortSignal. Default 30 seconds. */
|
|
30
30
|
maxDurationMs?: number;
|
|
31
31
|
}
|
|
32
|
-
declare interface AssetRenderOptions extends OutputDiagnosticOptions {
|
|
32
|
+
declare interface AssetRenderOptions extends OutputDiagnosticOptions, ImageMediaOptions {
|
|
33
33
|
assetRenderers?: Partial<Record<ImageComponentKind, ComponentImageRenderer>>;
|
|
34
34
|
assetBudget?: AssetRenderBudget;
|
|
35
35
|
/** Default throw prevents an incomplete export; placeholder retains the component and emits diagnostics. */
|
|
36
36
|
assetFailure?: "throw" | "placeholder";
|
|
37
37
|
signal?: AbortSignal;
|
|
38
38
|
}
|
|
39
|
+
declare interface BrowserReportWorker {
|
|
40
|
+
postMessage(value: unknown, transfer?: Transferable[]): void;
|
|
41
|
+
terminate(): void;
|
|
42
|
+
addEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
43
|
+
addEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
44
|
+
removeEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
45
|
+
removeEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
46
|
+
}
|
|
39
47
|
/** Serializable symbol settings. Encoders remain in the optional /codes entry. */
|
|
40
48
|
declare interface CodeOptions {
|
|
41
49
|
/** Explicit content, including an empty value, takes precedence over legacy fallbackText. */
|
|
@@ -363,6 +371,8 @@ declare interface FormulaAdapter {
|
|
|
363
371
|
}): unknown;
|
|
364
372
|
}
|
|
365
373
|
declare interface GridCell {
|
|
374
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
375
|
+
richParagraphs?: RichParagraph[];
|
|
366
376
|
text?: string;
|
|
367
377
|
rawText?: string;
|
|
368
378
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -386,6 +396,8 @@ declare interface GridCell {
|
|
|
386
396
|
style?: ComponentStyle;
|
|
387
397
|
}
|
|
388
398
|
declare interface GridCell_2 {
|
|
399
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
400
|
+
richParagraphs?: RichParagraph_2[];
|
|
389
401
|
text?: string;
|
|
390
402
|
rawText?: string;
|
|
391
403
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -409,6 +421,8 @@ declare interface GridCell_2 {
|
|
|
409
421
|
style?: ComponentStyle_2;
|
|
410
422
|
}
|
|
411
423
|
declare interface GridCell_3 {
|
|
424
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
425
|
+
richParagraphs?: RichParagraph_3[];
|
|
412
426
|
text?: string;
|
|
413
427
|
rawText?: string;
|
|
414
428
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -432,6 +446,30 @@ declare interface GridCell_3 {
|
|
|
432
446
|
style?: ComponentStyle_3;
|
|
433
447
|
}
|
|
434
448
|
declare type ImageComponentKind = "image" | "chart" | "barcode" | "qrcode";
|
|
449
|
+
/** Bounded binary image inspection shared by PDF, Excel and template import. No decoder is loaded. */
|
|
450
|
+
declare interface ImageMediaOptions {
|
|
451
|
+
maxImageBytes?: number;
|
|
452
|
+
maxTotalImageBytes?: number;
|
|
453
|
+
maxImages?: number;
|
|
454
|
+
/** Decoded pixels per unique image, default 16 million. */
|
|
455
|
+
maxImagePixels?: number;
|
|
456
|
+
/** Total decoded pixels for unique media, default 64 million. */
|
|
457
|
+
maxTotalImagePixels?: number;
|
|
458
|
+
/** Maximum source dimension, default 16384 pixels. */
|
|
459
|
+
maxImageDimension?: number;
|
|
460
|
+
}
|
|
461
|
+
/** Bounded binary image inspection shared by PDF, Excel and template import. No decoder is loaded. */
|
|
462
|
+
declare interface ImageMediaOptions_2 {
|
|
463
|
+
maxImageBytes?: number;
|
|
464
|
+
maxTotalImageBytes?: number;
|
|
465
|
+
maxImages?: number;
|
|
466
|
+
/** Decoded pixels per unique image, default 16 million. */
|
|
467
|
+
maxImagePixels?: number;
|
|
468
|
+
/** Total decoded pixels for unique media, default 64 million. */
|
|
469
|
+
maxTotalImagePixels?: number;
|
|
470
|
+
/** Maximum source dimension, default 16384 pixels. */
|
|
471
|
+
maxImageDimension?: number;
|
|
472
|
+
}
|
|
435
473
|
/** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
|
|
436
474
|
declare type ListAlignment = NonNullable<ComponentStyle["align"]> | "auto";
|
|
437
475
|
/** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
|
|
@@ -681,6 +719,10 @@ declare interface MachReportConfig {
|
|
|
681
719
|
}
|
|
682
720
|
/** defaults 层可配置项(全部可选,均有内置缺省) */
|
|
683
721
|
declare interface MachReportDefaults {
|
|
722
|
+
/** Small encodes stay local; optional Worker isolation uses the same prepared plan for large output. */
|
|
723
|
+
exportExecution?: ReportExportExecutionOptions;
|
|
724
|
+
drill?: ReportDrillOptions;
|
|
725
|
+
loadParamOptions?: ReportParamOptionsLoader;
|
|
684
726
|
printOptions?: ReportPrintOptions;
|
|
685
727
|
showExport?: boolean;
|
|
686
728
|
showPrint?: boolean;
|
|
@@ -728,7 +770,11 @@ declare type MachReportLogger = Pick<Console, "warn" | "info">;
|
|
|
728
770
|
* - 优先级:组件 props > 路由级叠加 > preset > defaults(props 永远最高)
|
|
729
771
|
*/
|
|
730
772
|
/** 工具栏与状态文案(默认简体中文;出海场景覆写) */
|
|
731
|
-
declare interface MachReportMessages extends Partial<ReportCalculationMessages>, ReportPrintMessages {
|
|
773
|
+
declare interface MachReportMessages extends Partial<ReportCalculationMessages>, ReportPrintMessages, ReportParamOptionsMessages {
|
|
774
|
+
drillActions?: string;
|
|
775
|
+
drillOpening?: string;
|
|
776
|
+
drillMissingValue?: string;
|
|
777
|
+
drillFailed?: string;
|
|
732
778
|
exportMenu?: string;
|
|
733
779
|
exportMenuDescription?: string;
|
|
734
780
|
clearSearch?: string;
|
|
@@ -1013,7 +1059,7 @@ declare interface MatrixTableOptions_2 {
|
|
|
1013
1059
|
maxCells?: number;
|
|
1014
1060
|
}
|
|
1015
1061
|
declare interface OutputDiagnostic {
|
|
1016
|
-
code: "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
|
|
1062
|
+
code: "invalid-image-data" | "image-budget-exceeded" | "component-render-failed" | "unsupported-text" | "output-degraded" | "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
|
|
1017
1063
|
severity: "warning";
|
|
1018
1064
|
format: OutputFormat;
|
|
1019
1065
|
pageIndex: number;
|
|
@@ -1025,7 +1071,7 @@ declare interface OutputDiagnostic {
|
|
|
1025
1071
|
message: string;
|
|
1026
1072
|
}
|
|
1027
1073
|
declare interface OutputDiagnostic_2 {
|
|
1028
|
-
code: "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
|
|
1074
|
+
code: "invalid-image-data" | "image-budget-exceeded" | "component-render-failed" | "unsupported-text" | "output-degraded" | "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
|
|
1029
1075
|
severity: "warning";
|
|
1030
1076
|
format: OutputFormat_2;
|
|
1031
1077
|
pageIndex: number;
|
|
@@ -1088,6 +1134,8 @@ declare interface PdfExporter {
|
|
|
1088
1134
|
}): Promise<Uint8Array>;
|
|
1089
1135
|
/** 可选轻量字体检查;旧版自定义导出函数无需实现。取消时拒绝 AbortError。 */
|
|
1090
1136
|
checkFont?: (signal?: AbortSignal) => Promise<PdfFontCheckResult>;
|
|
1137
|
+
/** Optional resource preparation for isolated encoding; custom exporters without it keep their own pipeline. */
|
|
1138
|
+
prepare?: (signal?: AbortSignal) => Promise<ReportPdfFontOptions>;
|
|
1091
1139
|
}
|
|
1092
1140
|
declare interface PdfFontCheckResult {
|
|
1093
1141
|
status: PdfFontStatus;
|
|
@@ -1399,6 +1447,8 @@ declare interface ReportCellSelection {
|
|
|
1399
1447
|
}
|
|
1400
1448
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
1401
1449
|
declare interface ReportCellSource {
|
|
1450
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
1451
|
+
sourceScope?: string;
|
|
1402
1452
|
datasetId: string;
|
|
1403
1453
|
rowKey: string | number;
|
|
1404
1454
|
field: string;
|
|
@@ -1407,6 +1457,8 @@ declare interface ReportCellSource {
|
|
|
1407
1457
|
}
|
|
1408
1458
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
1409
1459
|
declare interface ReportCellSource_2 {
|
|
1460
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
1461
|
+
sourceScope?: string;
|
|
1410
1462
|
datasetId: string;
|
|
1411
1463
|
rowKey: string | number;
|
|
1412
1464
|
field: string;
|
|
@@ -1415,6 +1467,8 @@ declare interface ReportCellSource_2 {
|
|
|
1415
1467
|
}
|
|
1416
1468
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
1417
1469
|
declare interface ReportCellSource_3 {
|
|
1470
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
1471
|
+
sourceScope?: string;
|
|
1418
1472
|
datasetId: string;
|
|
1419
1473
|
rowKey: string | number;
|
|
1420
1474
|
field: string;
|
|
@@ -1444,6 +1498,8 @@ declare interface ReportDataTarget {
|
|
|
1444
1498
|
rowKey?: string | number;
|
|
1445
1499
|
/** Use table identity when the same dataset appears in several tables. */
|
|
1446
1500
|
tableId?: string;
|
|
1501
|
+
/** Assigned by the source/runtime when several reports share dataset names. */
|
|
1502
|
+
reportScope?: string;
|
|
1447
1503
|
}
|
|
1448
1504
|
declare interface ReportDataTarget_2 {
|
|
1449
1505
|
datasetId: string;
|
|
@@ -1451,8 +1507,12 @@ declare interface ReportDataTarget_2 {
|
|
|
1451
1507
|
rowKey?: string | number;
|
|
1452
1508
|
/** Use table identity when the same dataset appears in several tables. */
|
|
1453
1509
|
tableId?: string;
|
|
1510
|
+
/** Assigned by the source/runtime when several reports share dataset names. */
|
|
1511
|
+
reportScope?: string;
|
|
1454
1512
|
}
|
|
1455
1513
|
declare interface ReportDefinition {
|
|
1514
|
+
/** Explicitly shared editable data identity. Omit to isolate each report occurrence. */
|
|
1515
|
+
sourceScope?: string;
|
|
1456
1516
|
/** 静态模板或宿主提供的异步模板加载器;动态模板默认每次重新读取,不缓存版本。 */
|
|
1457
1517
|
template: ReportTemplate | ReportTemplateLoader;
|
|
1458
1518
|
/** 静态数据;load 存在时优先使用 load 的结果。 */
|
|
@@ -1477,6 +1537,49 @@ declare interface ReportDiagnostic {
|
|
|
1477
1537
|
target?: ReportDataTarget;
|
|
1478
1538
|
}
|
|
1479
1539
|
declare type ReportDiscardReason = "reload" | "import" | "replace" | "leave";
|
|
1540
|
+
/** Serializable action metadata. URLs, scripts and automatic navigation are deliberately absent. */
|
|
1541
|
+
declare interface ReportDrillAction {
|
|
1542
|
+
id: string;
|
|
1543
|
+
label: string;
|
|
1544
|
+
target: {
|
|
1545
|
+
field: string;
|
|
1546
|
+
datasetId?: string;
|
|
1547
|
+
reportScope?: string;
|
|
1548
|
+
roles?: readonly string[];
|
|
1549
|
+
};
|
|
1550
|
+
params?: Readonly<Record<string, ReportDrillBinding>>;
|
|
1551
|
+
}
|
|
1552
|
+
declare type ReportDrillBinding = {
|
|
1553
|
+
value: string | number | boolean;
|
|
1554
|
+
} | {
|
|
1555
|
+
from: "value" | "rowKey";
|
|
1556
|
+
} | {
|
|
1557
|
+
from: "query" | "field";
|
|
1558
|
+
field: string;
|
|
1559
|
+
};
|
|
1560
|
+
/** Trusted host-owned allowlist. Matching serialized metadata alone never executes an action. */
|
|
1561
|
+
declare interface ReportDrillOptions {
|
|
1562
|
+
actions: readonly ReportDrillAction[];
|
|
1563
|
+
open(request: ReportDrillRequest & {
|
|
1564
|
+
signal: AbortSignal;
|
|
1565
|
+
view: Readonly<{
|
|
1566
|
+
zoom: number;
|
|
1567
|
+
scrollTop: number;
|
|
1568
|
+
scrollLeft: number;
|
|
1569
|
+
}>;
|
|
1570
|
+
}): void | Promise<void>;
|
|
1571
|
+
}
|
|
1572
|
+
declare interface ReportDrillRequest {
|
|
1573
|
+
actionId: string;
|
|
1574
|
+
params: Readonly<Record<string, string>>;
|
|
1575
|
+
returnState: Readonly<ReportDrillReturnState>;
|
|
1576
|
+
}
|
|
1577
|
+
declare interface ReportDrillReturnState {
|
|
1578
|
+
params: Readonly<Record<string, string>>;
|
|
1579
|
+
address: Readonly<ReportCellAddress_2>;
|
|
1580
|
+
reportScope?: string;
|
|
1581
|
+
source?: Readonly<Pick<ReportCellSource_2, "sourceScope" | "datasetId" | "rowKey" | "field">>;
|
|
1582
|
+
}
|
|
1480
1583
|
declare interface ReportEditBatch {
|
|
1481
1584
|
/** Idempotency identity; the server should bind it to the exact payload. */
|
|
1482
1585
|
requestId: string;
|
|
@@ -1521,8 +1624,36 @@ declare interface ReportEmptyState {
|
|
|
1521
1624
|
title?: string;
|
|
1522
1625
|
description?: string;
|
|
1523
1626
|
}
|
|
1627
|
+
declare interface ReportExportDecision {
|
|
1628
|
+
mode: "local" | "worker";
|
|
1629
|
+
reason: ReportExportDecisionReason;
|
|
1630
|
+
/** Lower bounds: traversal stops as soon as isolation is warranted. No font or image hashing. */
|
|
1631
|
+
estimate: {
|
|
1632
|
+
pages: number;
|
|
1633
|
+
cells: number;
|
|
1634
|
+
bytes: number;
|
|
1635
|
+
};
|
|
1636
|
+
hardCancellation: boolean;
|
|
1637
|
+
}
|
|
1638
|
+
declare type ReportExportDecisionReason = "small-task" | "threshold" | "scan-limit" | "explicit-local" | "explicit-worker" | "worker-unavailable" | "worker-start-failed" | "nonserializable-options";
|
|
1639
|
+
declare interface ReportExportExecutionOptions {
|
|
1640
|
+
mode?: "auto" | "worker" | "local";
|
|
1641
|
+
/** A fresh bundler-managed module Worker for every call; never a shared worker. */
|
|
1642
|
+
workerFactory?: () => BrowserReportWorker;
|
|
1643
|
+
thresholds?: ReportExportThresholds;
|
|
1644
|
+
/** Auto only. Startup unavailability may use local; encoding failures never retry. */
|
|
1645
|
+
fallback?: "local" | "error";
|
|
1646
|
+
timeoutMs?: number;
|
|
1647
|
+
budget?: ReportRuntimeBudget;
|
|
1648
|
+
onDecision?: (decision: ReportExportDecision) => void;
|
|
1649
|
+
}
|
|
1524
1650
|
/** 输出能力仍由宿主授权;工具偏好只决定当前预览实例的可见与启用状态。 */
|
|
1525
1651
|
declare type ReportExportFormat = "html" | "pdf" | "xlsx" | "png" | "word";
|
|
1652
|
+
declare interface ReportExportThresholds {
|
|
1653
|
+
cells?: number;
|
|
1654
|
+
pages?: number;
|
|
1655
|
+
bytes?: number;
|
|
1656
|
+
}
|
|
1526
1657
|
declare type ReportExpression = {
|
|
1527
1658
|
field: string;
|
|
1528
1659
|
} | {
|
|
@@ -1634,6 +1765,10 @@ declare interface ReportParamDef {
|
|
|
1634
1765
|
label: string;
|
|
1635
1766
|
value: string;
|
|
1636
1767
|
}>;
|
|
1768
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
1769
|
+
optionsSource?: string;
|
|
1770
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
1771
|
+
dependsOn?: string[];
|
|
1637
1772
|
defaultValue?: string;
|
|
1638
1773
|
required?: boolean;
|
|
1639
1774
|
placeholder?: string;
|
|
@@ -1655,6 +1790,10 @@ declare interface ReportParamDef_2 {
|
|
|
1655
1790
|
label: string;
|
|
1656
1791
|
value: string;
|
|
1657
1792
|
}>;
|
|
1793
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
1794
|
+
optionsSource?: string;
|
|
1795
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
1796
|
+
dependsOn?: string[];
|
|
1658
1797
|
defaultValue?: string;
|
|
1659
1798
|
required?: boolean;
|
|
1660
1799
|
placeholder?: string;
|
|
@@ -1670,7 +1809,41 @@ declare interface ReportParamIssue {
|
|
|
1670
1809
|
field: string;
|
|
1671
1810
|
message: string;
|
|
1672
1811
|
}
|
|
1673
|
-
declare type ReportParamIssueCode = "definition" | "required" | "type" | "option" | "minimum" | "maximum" | "minLength" | "maxLength";
|
|
1812
|
+
declare type ReportParamIssueCode = "definition" | "required" | "type" | "option" | "dependency" | "minimum" | "maximum" | "minLength" | "maxLength";
|
|
1813
|
+
declare interface ReportParamOption {
|
|
1814
|
+
readonly label: string;
|
|
1815
|
+
readonly value: string;
|
|
1816
|
+
}
|
|
1817
|
+
declare interface ReportParamOptionsInput {
|
|
1818
|
+
readonly source: string;
|
|
1819
|
+
readonly field: string;
|
|
1820
|
+
readonly query: string;
|
|
1821
|
+
/** Only declared dependencies, captured at request start. Never the mutable form. */
|
|
1822
|
+
readonly params: Readonly<Record<string, string>>;
|
|
1823
|
+
readonly signal: AbortSignal;
|
|
1824
|
+
readonly limit: number;
|
|
1825
|
+
}
|
|
1826
|
+
/** Resolve a trusted source key through the host's existing API/authentication. */
|
|
1827
|
+
declare type ReportParamOptionsLoader = (input: ReportParamOptionsInput) => Promise<readonly ReportParamOption[]>;
|
|
1828
|
+
declare interface ReportParamOptionsMessages {
|
|
1829
|
+
paramOptionsLoading?: string;
|
|
1830
|
+
paramOptionsEmpty?: string;
|
|
1831
|
+
paramOptionsFailed?: string;
|
|
1832
|
+
paramOptionsMissingLoader?: string;
|
|
1833
|
+
paramOptionsDependencies?: string;
|
|
1834
|
+
paramOptionsClear?: string;
|
|
1835
|
+
}
|
|
1836
|
+
/** Licensed local font bytes; never downloaded implicitly by the runtime. */
|
|
1837
|
+
declare interface ReportPdfFontOptions {
|
|
1838
|
+
customFontBytes?: Uint8Array | ArrayBuffer;
|
|
1839
|
+
customFontName?: string;
|
|
1840
|
+
customFontFaces?: {
|
|
1841
|
+
regular: Uint8Array | ArrayBuffer;
|
|
1842
|
+
bold?: Uint8Array | ArrayBuffer;
|
|
1843
|
+
italic?: Uint8Array | ArrayBuffer;
|
|
1844
|
+
boldItalic?: Uint8Array | ArrayBuffer;
|
|
1845
|
+
};
|
|
1846
|
+
}
|
|
1674
1847
|
declare interface ReportPreferencesAdapter {
|
|
1675
1848
|
load(key: string): Partial<ReportPreviewPreferences> | null | Promise<Partial<ReportPreviewPreferences> | null>;
|
|
1676
1849
|
save(key: string, value: Readonly<Partial<ReportPreviewPreferences>>): void | Promise<void>;
|
|
@@ -1762,6 +1935,15 @@ declare interface ReportQueryResult {
|
|
|
1762
1935
|
diagnostics?: ReportDiagnostic[];
|
|
1763
1936
|
}
|
|
1764
1937
|
declare type ReportRegistry = Record<string, ReportDefinition>;
|
|
1938
|
+
declare interface ReportRuntimeBudget {
|
|
1939
|
+
maxRows?: number;
|
|
1940
|
+
maxPages?: number;
|
|
1941
|
+
maxCells?: number;
|
|
1942
|
+
maxOutputBytes?: number;
|
|
1943
|
+
/** Bound the plain JSON snapshot accepted by exportPrepared (default 64 MB). */
|
|
1944
|
+
maxPreparedBytes?: number;
|
|
1945
|
+
maxDurationMs?: number;
|
|
1946
|
+
}
|
|
1765
1947
|
declare interface ReportSaveInput extends ReportLoadContext {
|
|
1766
1948
|
requestId: string;
|
|
1767
1949
|
expectedRevision?: string;
|
|
@@ -2011,21 +2193,14 @@ declare type ValueFormat = ColumnFormat;
|
|
|
2011
2193
|
declare type ValueFormat_2 = ColumnFormat_2;
|
|
2012
2194
|
/** The same declarative formatting used by list columns, before any output backend. */
|
|
2013
2195
|
declare type ValueFormat_3 = ColumnFormat_3;
|
|
2014
|
-
declare
|
|
2015
|
-
/** Decoded bytes per unique embedded image; default 16 MiB. */
|
|
2016
|
-
maxImageBytes?: number;
|
|
2017
|
-
/** Total decoded bytes of unique images in this workbook; default 32 MiB. */
|
|
2018
|
-
maxTotalImageBytes?: number;
|
|
2019
|
-
/** Unique embedded media limit, default 1000; repeated placements reuse the same media. */
|
|
2020
|
-
maxImages?: number;
|
|
2021
|
-
}
|
|
2196
|
+
declare type XlsxImageOptions = ImageMediaOptions_2;
|
|
2022
2197
|
/**
|
|
2023
2198
|
* RenderPlan → xlsx 导出(B 端第二出口,对齐家族 @agile-team/mach-table-xlsx 路线):
|
|
2024
2199
|
* - 网格组件 → 真表格:列宽(mm→Excel 宽度)、行高(mm→pt)、colSpan/rowSpan 合并、
|
|
2025
2200
|
* 加粗/对齐/底色/字号直译(resolveGridLayout 复用单真相源几何)
|
|
2026
2201
|
* - 文本组件 → 合并标题行(顺序流式输出,保字号/加粗/对齐;非像素级定位,
|
|
2027
2202
|
* 目标是"财务能直接用的对账表"而非复刻版面)
|
|
2028
|
-
* -
|
|
2203
|
+
* - 原生 richText 保留基础字形;未支持组件、段落专有排版与单元格嵌套组件计入 diagnostics / warnings
|
|
2029
2204
|
*/
|
|
2030
2205
|
declare interface XlsxRenderOptions extends OutputDiagnosticOptions_2, XlsxImageOptions {
|
|
2031
2206
|
/** 工作表命名(连续表默认使用标题,其余默认 "Sheet1" 起序)。 */
|