@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/designer.d.cts
CHANGED
|
@@ -43,7 +43,7 @@ declare interface AssetRenderBudget {
|
|
|
43
43
|
/** Wall-clock budget, including adapters that ignore AbortSignal. Default 30 seconds. */
|
|
44
44
|
maxDurationMs?: number;
|
|
45
45
|
}
|
|
46
|
-
declare interface AssetRenderOptions extends OutputDiagnosticOptions {
|
|
46
|
+
declare interface AssetRenderOptions extends OutputDiagnosticOptions, ImageMediaOptions {
|
|
47
47
|
assetRenderers?: Partial<Record<ImageComponentKind, ComponentImageRenderer>>;
|
|
48
48
|
assetBudget?: AssetRenderBudget;
|
|
49
49
|
/** Default throw prevents an incomplete export; placeholder retains the component and emits diagnostics. */
|
|
@@ -85,6 +85,14 @@ declare const BASE_TEMPLATE_EDITOR_MESSAGES: {
|
|
|
85
85
|
note: string;
|
|
86
86
|
invalid: string;
|
|
87
87
|
};
|
|
88
|
+
declare interface BrowserReportWorker {
|
|
89
|
+
postMessage(value: unknown, transfer?: Transferable[]): void;
|
|
90
|
+
terminate(): void;
|
|
91
|
+
addEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
92
|
+
addEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
93
|
+
removeEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
94
|
+
removeEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
95
|
+
}
|
|
88
96
|
declare interface CanvasSelection {
|
|
89
97
|
/** Ctrl/Command/Shift toggles the selection without changing the report schema. */
|
|
90
98
|
additive?: boolean;
|
|
@@ -500,11 +508,11 @@ export declare const ExcelBindingWizard: DefineComponent<ExcelBindingWizardOptio
|
|
|
500
508
|
apply: () => Promise<void>;
|
|
501
509
|
cancel: () => void;
|
|
502
510
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
503
|
-
dirty: (value: boolean) => any;
|
|
504
511
|
apply: (result: ExcelBindingWizardApply) => any;
|
|
512
|
+
dirty: (value: boolean) => any;
|
|
505
513
|
}, string, MachReportVuePublicProps, Readonly<ExcelBindingWizardOptions> & Readonly<{
|
|
506
|
-
onDirty?: ((value: boolean) => any) | undefined;
|
|
507
514
|
onApply?: ((result: ExcelBindingWizardApply) => any) | undefined;
|
|
515
|
+
onDirty?: ((value: boolean) => any) | undefined;
|
|
508
516
|
}>, {}>;
|
|
509
517
|
export declare type ExcelBindingWizardApply = AnyExcelBindingDocumentResult & {
|
|
510
518
|
session: AnyExcelBindingSession;
|
|
@@ -655,6 +663,8 @@ declare interface ExpressionOptions_3 {
|
|
|
655
663
|
divisionByZero?: "null" | "error";
|
|
656
664
|
}
|
|
657
665
|
declare interface GridCell {
|
|
666
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
667
|
+
richParagraphs?: RichParagraph[];
|
|
658
668
|
text?: string;
|
|
659
669
|
rawText?: string;
|
|
660
670
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -678,6 +688,8 @@ declare interface GridCell {
|
|
|
678
688
|
style?: ComponentStyle;
|
|
679
689
|
}
|
|
680
690
|
declare interface GridCell_2 {
|
|
691
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
692
|
+
richParagraphs?: RichParagraph_2[];
|
|
681
693
|
text?: string;
|
|
682
694
|
rawText?: string;
|
|
683
695
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -701,6 +713,8 @@ declare interface GridCell_2 {
|
|
|
701
713
|
style?: ComponentStyle_2;
|
|
702
714
|
}
|
|
703
715
|
declare interface GridCell_3 {
|
|
716
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
717
|
+
richParagraphs?: RichParagraph_3[];
|
|
704
718
|
text?: string;
|
|
705
719
|
rawText?: string;
|
|
706
720
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -724,6 +738,18 @@ declare interface GridCell_3 {
|
|
|
724
738
|
style?: ComponentStyle_3;
|
|
725
739
|
}
|
|
726
740
|
declare type ImageComponentKind = "image" | "chart" | "barcode" | "qrcode";
|
|
741
|
+
/** Bounded binary image inspection shared by PDF, Excel and template import. No decoder is loaded. */
|
|
742
|
+
declare interface ImageMediaOptions {
|
|
743
|
+
maxImageBytes?: number;
|
|
744
|
+
maxTotalImageBytes?: number;
|
|
745
|
+
maxImages?: number;
|
|
746
|
+
/** Decoded pixels per unique image, default 16 million. */
|
|
747
|
+
maxImagePixels?: number;
|
|
748
|
+
/** Total decoded pixels for unique media, default 64 million. */
|
|
749
|
+
maxTotalImagePixels?: number;
|
|
750
|
+
/** Maximum source dimension, default 16384 pixels. */
|
|
751
|
+
maxImageDimension?: number;
|
|
752
|
+
}
|
|
727
753
|
/** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
|
|
728
754
|
declare type ListAlignment = NonNullable<ComponentStyle["align"]> | "auto";
|
|
729
755
|
/** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
|
|
@@ -1080,6 +1106,10 @@ declare interface ListGroupBy_3 {
|
|
|
1080
1106
|
}
|
|
1081
1107
|
/** defaults 层可配置项(全部可选,均有内置缺省) */
|
|
1082
1108
|
declare interface MachReportDefaults {
|
|
1109
|
+
/** Small encodes stay local; optional Worker isolation uses the same prepared plan for large output. */
|
|
1110
|
+
exportExecution?: ReportExportExecutionOptions;
|
|
1111
|
+
drill?: ReportDrillOptions;
|
|
1112
|
+
loadParamOptions?: ReportParamOptionsLoader;
|
|
1083
1113
|
printOptions?: ReportPrintOptions;
|
|
1084
1114
|
showExport?: boolean;
|
|
1085
1115
|
showPrint?: boolean;
|
|
@@ -1122,7 +1152,11 @@ declare type MachReportLogger = Pick<Console, "warn" | "info">;
|
|
|
1122
1152
|
* - 优先级:组件 props > 路由级叠加 > preset > defaults(props 永远最高)
|
|
1123
1153
|
*/
|
|
1124
1154
|
/** 工具栏与状态文案(默认简体中文;出海场景覆写) */
|
|
1125
|
-
declare interface MachReportMessages extends Partial<ReportCalculationMessages>, ReportPrintMessages {
|
|
1155
|
+
declare interface MachReportMessages extends Partial<ReportCalculationMessages>, ReportPrintMessages, ReportParamOptionsMessages {
|
|
1156
|
+
drillActions?: string;
|
|
1157
|
+
drillOpening?: string;
|
|
1158
|
+
drillMissingValue?: string;
|
|
1159
|
+
drillFailed?: string;
|
|
1126
1160
|
exportMenu?: string;
|
|
1127
1161
|
exportMenuDescription?: string;
|
|
1128
1162
|
clearSearch?: string;
|
|
@@ -1297,7 +1331,11 @@ declare interface MachReportMessages extends Partial<ReportCalculationMessages>,
|
|
|
1297
1331
|
* - 优先级:组件 props > 路由级叠加 > preset > defaults(props 永远最高)
|
|
1298
1332
|
*/
|
|
1299
1333
|
/** 工具栏与状态文案(默认简体中文;出海场景覆写) */
|
|
1300
|
-
declare interface MachReportMessages_2 extends Partial<ReportCalculationMessages_2>, ReportPrintMessages_2 {
|
|
1334
|
+
declare interface MachReportMessages_2 extends Partial<ReportCalculationMessages_2>, ReportPrintMessages_2, ReportParamOptionsMessages_2 {
|
|
1335
|
+
drillActions?: string;
|
|
1336
|
+
drillOpening?: string;
|
|
1337
|
+
drillMissingValue?: string;
|
|
1338
|
+
drillFailed?: string;
|
|
1301
1339
|
exportMenu?: string;
|
|
1302
1340
|
exportMenuDescription?: string;
|
|
1303
1341
|
clearSearch?: string;
|
|
@@ -1544,7 +1582,7 @@ declare interface MatrixTableOptions_3 {
|
|
|
1544
1582
|
maxCells?: number;
|
|
1545
1583
|
}
|
|
1546
1584
|
declare interface OutputDiagnostic {
|
|
1547
|
-
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";
|
|
1585
|
+
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";
|
|
1548
1586
|
severity: "warning";
|
|
1549
1587
|
format: OutputFormat;
|
|
1550
1588
|
pageIndex: number;
|
|
@@ -1556,7 +1594,7 @@ declare interface OutputDiagnostic {
|
|
|
1556
1594
|
message: string;
|
|
1557
1595
|
}
|
|
1558
1596
|
declare interface OutputDiagnostic_2 {
|
|
1559
|
-
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";
|
|
1597
|
+
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";
|
|
1560
1598
|
severity: "warning";
|
|
1561
1599
|
format: OutputFormat_2;
|
|
1562
1600
|
pageIndex: number;
|
|
@@ -1604,6 +1642,13 @@ export declare const PARAM_EDITOR_MESSAGES: {
|
|
|
1604
1642
|
paramMinLength: string;
|
|
1605
1643
|
paramMaxLength: string;
|
|
1606
1644
|
paramOptions: string;
|
|
1645
|
+
paramOptionsMode: string;
|
|
1646
|
+
paramOptionsStatic: string;
|
|
1647
|
+
paramOptionsRemote: string;
|
|
1648
|
+
paramOptionsSource: string;
|
|
1649
|
+
paramDependencyUnavailable: string;
|
|
1650
|
+
paramDependencies: string;
|
|
1651
|
+
paramRemoteHint: string;
|
|
1607
1652
|
paramOptionValue: string;
|
|
1608
1653
|
paramOptionLabel: string;
|
|
1609
1654
|
paramOptionAdd: string;
|
|
@@ -1816,6 +1861,13 @@ declare interface PlanTableFragment_3 {
|
|
|
1816
1861
|
};
|
|
1817
1862
|
}
|
|
1818
1863
|
declare const PRODUCT_TEMPLATE_EDITOR_MESSAGES: {
|
|
1864
|
+
toolTarget: string;
|
|
1865
|
+
toolPreview: string;
|
|
1866
|
+
toolPreviewHide: string;
|
|
1867
|
+
toolChooseComponent: string;
|
|
1868
|
+
previousColumns: string;
|
|
1869
|
+
nextColumns: string;
|
|
1870
|
+
columnWindow: string;
|
|
1819
1871
|
paperAndPages: string;
|
|
1820
1872
|
pageDirectory: string;
|
|
1821
1873
|
pageName: string;
|
|
@@ -2194,6 +2246,8 @@ declare type ReportCellFieldOptions = ReportCellFieldBase & ({
|
|
|
2194
2246
|
declare type ReportCellReadOnlyReason = "cell" | "formula" | "complex" | "structure" | "derived";
|
|
2195
2247
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
2196
2248
|
declare interface ReportCellSource {
|
|
2249
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
2250
|
+
sourceScope?: string;
|
|
2197
2251
|
datasetId: string;
|
|
2198
2252
|
rowKey: string | number;
|
|
2199
2253
|
field: string;
|
|
@@ -2202,6 +2256,8 @@ declare interface ReportCellSource {
|
|
|
2202
2256
|
}
|
|
2203
2257
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
2204
2258
|
declare interface ReportCellSource_2 {
|
|
2259
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
2260
|
+
sourceScope?: string;
|
|
2205
2261
|
datasetId: string;
|
|
2206
2262
|
rowKey: string | number;
|
|
2207
2263
|
field: string;
|
|
@@ -2210,6 +2266,8 @@ declare interface ReportCellSource_2 {
|
|
|
2210
2266
|
}
|
|
2211
2267
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
2212
2268
|
declare interface ReportCellSource_3 {
|
|
2269
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
2270
|
+
sourceScope?: string;
|
|
2213
2271
|
datasetId: string;
|
|
2214
2272
|
rowKey: string | number;
|
|
2215
2273
|
field: string;
|
|
@@ -2232,6 +2290,49 @@ declare interface ReportDocumentStyle {
|
|
|
2232
2290
|
style: ComponentStyle_2;
|
|
2233
2291
|
target?: "content" | "header";
|
|
2234
2292
|
}
|
|
2293
|
+
/** Serializable action metadata. URLs, scripts and automatic navigation are deliberately absent. */
|
|
2294
|
+
declare interface ReportDrillAction {
|
|
2295
|
+
id: string;
|
|
2296
|
+
label: string;
|
|
2297
|
+
target: {
|
|
2298
|
+
field: string;
|
|
2299
|
+
datasetId?: string;
|
|
2300
|
+
reportScope?: string;
|
|
2301
|
+
roles?: readonly string[];
|
|
2302
|
+
};
|
|
2303
|
+
params?: Readonly<Record<string, ReportDrillBinding>>;
|
|
2304
|
+
}
|
|
2305
|
+
declare type ReportDrillBinding = {
|
|
2306
|
+
value: string | number | boolean;
|
|
2307
|
+
} | {
|
|
2308
|
+
from: "value" | "rowKey";
|
|
2309
|
+
} | {
|
|
2310
|
+
from: "query" | "field";
|
|
2311
|
+
field: string;
|
|
2312
|
+
};
|
|
2313
|
+
/** Trusted host-owned allowlist. Matching serialized metadata alone never executes an action. */
|
|
2314
|
+
declare interface ReportDrillOptions {
|
|
2315
|
+
actions: readonly ReportDrillAction[];
|
|
2316
|
+
open(request: ReportDrillRequest & {
|
|
2317
|
+
signal: AbortSignal;
|
|
2318
|
+
view: Readonly<{
|
|
2319
|
+
zoom: number;
|
|
2320
|
+
scrollTop: number;
|
|
2321
|
+
scrollLeft: number;
|
|
2322
|
+
}>;
|
|
2323
|
+
}): void | Promise<void>;
|
|
2324
|
+
}
|
|
2325
|
+
declare interface ReportDrillRequest {
|
|
2326
|
+
actionId: string;
|
|
2327
|
+
params: Readonly<Record<string, string>>;
|
|
2328
|
+
returnState: Readonly<ReportDrillReturnState>;
|
|
2329
|
+
}
|
|
2330
|
+
declare interface ReportDrillReturnState {
|
|
2331
|
+
params: Readonly<Record<string, string>>;
|
|
2332
|
+
address: Readonly<ReportCellAddress>;
|
|
2333
|
+
reportScope?: string;
|
|
2334
|
+
source?: Readonly<Pick<ReportCellSource, "sourceScope" | "datasetId" | "rowKey" | "field">>;
|
|
2335
|
+
}
|
|
2235
2336
|
declare interface ReportEditBatch {
|
|
2236
2337
|
/** Idempotency identity; the server should bind it to the exact payload. */
|
|
2237
2338
|
requestId: string;
|
|
@@ -2271,8 +2372,36 @@ declare interface ReportEditResult {
|
|
|
2271
2372
|
/** Any conflict rejects the entire client batch. A server must also transact atomically. */
|
|
2272
2373
|
conflicts?: readonly ReportEditConflict[];
|
|
2273
2374
|
}
|
|
2375
|
+
declare interface ReportExportDecision {
|
|
2376
|
+
mode: "local" | "worker";
|
|
2377
|
+
reason: ReportExportDecisionReason;
|
|
2378
|
+
/** Lower bounds: traversal stops as soon as isolation is warranted. No font or image hashing. */
|
|
2379
|
+
estimate: {
|
|
2380
|
+
pages: number;
|
|
2381
|
+
cells: number;
|
|
2382
|
+
bytes: number;
|
|
2383
|
+
};
|
|
2384
|
+
hardCancellation: boolean;
|
|
2385
|
+
}
|
|
2386
|
+
declare type ReportExportDecisionReason = "small-task" | "threshold" | "scan-limit" | "explicit-local" | "explicit-worker" | "worker-unavailable" | "worker-start-failed" | "nonserializable-options";
|
|
2387
|
+
declare interface ReportExportExecutionOptions {
|
|
2388
|
+
mode?: "auto" | "worker" | "local";
|
|
2389
|
+
/** A fresh bundler-managed module Worker for every call; never a shared worker. */
|
|
2390
|
+
workerFactory?: () => BrowserReportWorker;
|
|
2391
|
+
thresholds?: ReportExportThresholds;
|
|
2392
|
+
/** Auto only. Startup unavailability may use local; encoding failures never retry. */
|
|
2393
|
+
fallback?: "local" | "error";
|
|
2394
|
+
timeoutMs?: number;
|
|
2395
|
+
budget?: ReportRuntimeBudget;
|
|
2396
|
+
onDecision?: (decision: ReportExportDecision) => void;
|
|
2397
|
+
}
|
|
2274
2398
|
/** 输出能力仍由宿主授权;工具偏好只决定当前预览实例的可见与启用状态。 */
|
|
2275
2399
|
declare type ReportExportFormat = "html" | "pdf" | "xlsx" | "png" | "word";
|
|
2400
|
+
declare interface ReportExportThresholds {
|
|
2401
|
+
cells?: number;
|
|
2402
|
+
pages?: number;
|
|
2403
|
+
bytes?: number;
|
|
2404
|
+
}
|
|
2276
2405
|
declare type ReportExpression = {
|
|
2277
2406
|
field: string;
|
|
2278
2407
|
} | {
|
|
@@ -2393,6 +2522,10 @@ declare interface ReportParamDef {
|
|
|
2393
2522
|
label: string;
|
|
2394
2523
|
value: string;
|
|
2395
2524
|
}>;
|
|
2525
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
2526
|
+
optionsSource?: string;
|
|
2527
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
2528
|
+
dependsOn?: string[];
|
|
2396
2529
|
defaultValue?: string;
|
|
2397
2530
|
required?: boolean;
|
|
2398
2531
|
placeholder?: string;
|
|
@@ -2414,6 +2547,10 @@ declare interface ReportParamDef_2 {
|
|
|
2414
2547
|
label: string;
|
|
2415
2548
|
value: string;
|
|
2416
2549
|
}>;
|
|
2550
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
2551
|
+
optionsSource?: string;
|
|
2552
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
2553
|
+
dependsOn?: string[];
|
|
2417
2554
|
defaultValue?: string;
|
|
2418
2555
|
required?: boolean;
|
|
2419
2556
|
placeholder?: string;
|
|
@@ -2435,6 +2572,10 @@ declare interface ReportParamDef_3 {
|
|
|
2435
2572
|
label: string;
|
|
2436
2573
|
value: string;
|
|
2437
2574
|
}>;
|
|
2575
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
2576
|
+
optionsSource?: string;
|
|
2577
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
2578
|
+
dependsOn?: string[];
|
|
2438
2579
|
defaultValue?: string;
|
|
2439
2580
|
required?: boolean;
|
|
2440
2581
|
placeholder?: string;
|
|
@@ -2444,6 +2585,37 @@ declare interface ReportParamDef_3 {
|
|
|
2444
2585
|
minLength?: number;
|
|
2445
2586
|
maxLength?: number;
|
|
2446
2587
|
}
|
|
2588
|
+
declare interface ReportParamOption {
|
|
2589
|
+
readonly label: string;
|
|
2590
|
+
readonly value: string;
|
|
2591
|
+
}
|
|
2592
|
+
declare interface ReportParamOptionsInput {
|
|
2593
|
+
readonly source: string;
|
|
2594
|
+
readonly field: string;
|
|
2595
|
+
readonly query: string;
|
|
2596
|
+
/** Only declared dependencies, captured at request start. Never the mutable form. */
|
|
2597
|
+
readonly params: Readonly<Record<string, string>>;
|
|
2598
|
+
readonly signal: AbortSignal;
|
|
2599
|
+
readonly limit: number;
|
|
2600
|
+
}
|
|
2601
|
+
/** Resolve a trusted source key through the host's existing API/authentication. */
|
|
2602
|
+
declare type ReportParamOptionsLoader = (input: ReportParamOptionsInput) => Promise<readonly ReportParamOption[]>;
|
|
2603
|
+
declare interface ReportParamOptionsMessages {
|
|
2604
|
+
paramOptionsLoading?: string;
|
|
2605
|
+
paramOptionsEmpty?: string;
|
|
2606
|
+
paramOptionsFailed?: string;
|
|
2607
|
+
paramOptionsMissingLoader?: string;
|
|
2608
|
+
paramOptionsDependencies?: string;
|
|
2609
|
+
paramOptionsClear?: string;
|
|
2610
|
+
}
|
|
2611
|
+
declare interface ReportParamOptionsMessages_2 {
|
|
2612
|
+
paramOptionsLoading?: string;
|
|
2613
|
+
paramOptionsEmpty?: string;
|
|
2614
|
+
paramOptionsFailed?: string;
|
|
2615
|
+
paramOptionsMissingLoader?: string;
|
|
2616
|
+
paramOptionsDependencies?: string;
|
|
2617
|
+
paramOptionsClear?: string;
|
|
2618
|
+
}
|
|
2447
2619
|
declare interface ReportPreferencesAdapter {
|
|
2448
2620
|
load(key: string): Partial<ReportPreviewPreferences> | null | Promise<Partial<ReportPreviewPreferences> | null>;
|
|
2449
2621
|
save(key: string, value: Readonly<Partial<ReportPreviewPreferences>>): void | Promise<void>;
|
|
@@ -2496,6 +2668,15 @@ declare interface ReportPrintOptions {
|
|
|
2496
2668
|
/** Physical translation only; no scaling or mutation of the report data/plan. */
|
|
2497
2669
|
calibration?: ReportPrintCalibration;
|
|
2498
2670
|
}
|
|
2671
|
+
declare interface ReportRuntimeBudget {
|
|
2672
|
+
maxRows?: number;
|
|
2673
|
+
maxPages?: number;
|
|
2674
|
+
maxCells?: number;
|
|
2675
|
+
maxOutputBytes?: number;
|
|
2676
|
+
/** Bound the plain JSON snapshot accepted by exportPrepared (default 64 MB). */
|
|
2677
|
+
maxPreparedBytes?: number;
|
|
2678
|
+
maxDurationMs?: number;
|
|
2679
|
+
}
|
|
2499
2680
|
declare interface ReportTemplate {
|
|
2500
2681
|
schemaVersion?: string;
|
|
2501
2682
|
/** 参数定义(可选;宿主也可经 ReportPreview 的 paramDefs prop 提供,prop 优先) */
|
|
@@ -2909,6 +3090,13 @@ declare interface StyleRule_3 {
|
|
|
2909
3090
|
style: Record<string, unknown>;
|
|
2910
3091
|
}
|
|
2911
3092
|
export declare const TEMPLATE_EDITOR_MESSAGES: {
|
|
3093
|
+
toolTarget: string;
|
|
3094
|
+
toolPreview: string;
|
|
3095
|
+
toolPreviewHide: string;
|
|
3096
|
+
toolChooseComponent: string;
|
|
3097
|
+
previousColumns: string;
|
|
3098
|
+
nextColumns: string;
|
|
3099
|
+
columnWindow: string;
|
|
2912
3100
|
paperAndPages: string;
|
|
2913
3101
|
pageDirectory: string;
|
|
2914
3102
|
pageName: string;
|
|
@@ -3599,21 +3787,14 @@ declare type ValueFormat = ColumnFormat;
|
|
|
3599
3787
|
declare type ValueFormat_2 = ColumnFormat_2;
|
|
3600
3788
|
/** The same declarative formatting used by list columns, before any output backend. */
|
|
3601
3789
|
declare type ValueFormat_3 = ColumnFormat_3;
|
|
3602
|
-
declare
|
|
3603
|
-
/** Decoded bytes per unique embedded image; default 16 MiB. */
|
|
3604
|
-
maxImageBytes?: number;
|
|
3605
|
-
/** Total decoded bytes of unique images in this workbook; default 32 MiB. */
|
|
3606
|
-
maxTotalImageBytes?: number;
|
|
3607
|
-
/** Unique embedded media limit, default 1000; repeated placements reuse the same media. */
|
|
3608
|
-
maxImages?: number;
|
|
3609
|
-
}
|
|
3790
|
+
declare type XlsxImageOptions = ImageMediaOptions;
|
|
3610
3791
|
/**
|
|
3611
3792
|
* RenderPlan → xlsx 导出(B 端第二出口,对齐家族 @agile-team/mach-table-xlsx 路线):
|
|
3612
3793
|
* - 网格组件 → 真表格:列宽(mm→Excel 宽度)、行高(mm→pt)、colSpan/rowSpan 合并、
|
|
3613
3794
|
* 加粗/对齐/底色/字号直译(resolveGridLayout 复用单真相源几何)
|
|
3614
3795
|
* - 文本组件 → 合并标题行(顺序流式输出,保字号/加粗/对齐;非像素级定位,
|
|
3615
3796
|
* 目标是"财务能直接用的对账表"而非复刻版面)
|
|
3616
|
-
* -
|
|
3797
|
+
* - 原生 richText 保留基础字形;未支持组件、段落专有排版与单元格嵌套组件计入 diagnostics / warnings
|
|
3617
3798
|
*/
|
|
3618
3799
|
declare interface XlsxRenderOptions extends OutputDiagnosticOptions, XlsxImageOptions {
|
|
3619
3800
|
/** 工作表命名(连续表默认使用标题,其余默认 "Sheet1" 起序)。 */
|