@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/index.d.ts
CHANGED
|
@@ -9,6 +9,14 @@ import { InjectionKey } from 'vue';
|
|
|
9
9
|
import { PropType } from 'vue';
|
|
10
10
|
import { Ref } from 'vue';
|
|
11
11
|
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
12
|
+
drill: {
|
|
13
|
+
type: PropType<ReportDrillOptions>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
loadParamOptions: {
|
|
17
|
+
type: PropType<ReportParamOptionsLoader>;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
12
20
|
reportId: {
|
|
13
21
|
type: PropType<string | string[] | null>;
|
|
14
22
|
default: null;
|
|
@@ -66,6 +74,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
66
74
|
type: PropType<ReportOutputOptions>;
|
|
67
75
|
default: undefined;
|
|
68
76
|
};
|
|
77
|
+
exportExecution: {
|
|
78
|
+
type: PropType<ReportExportExecutionOptions>;
|
|
79
|
+
default: undefined;
|
|
80
|
+
};
|
|
69
81
|
assets: {
|
|
70
82
|
type: PropType<AssetRenderOptions>;
|
|
71
83
|
default: undefined;
|
|
@@ -171,6 +183,14 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
171
183
|
"template-import": (result: ExcelImportResult) => any;
|
|
172
184
|
"preferences-change": (preferences: Readonly<ReportPreviewPreferences>) => any;
|
|
173
185
|
}, string, MachReportVuePublicProps, Readonly<ExtractPropTypes<{
|
|
186
|
+
drill: {
|
|
187
|
+
type: PropType<ReportDrillOptions>;
|
|
188
|
+
default: undefined;
|
|
189
|
+
};
|
|
190
|
+
loadParamOptions: {
|
|
191
|
+
type: PropType<ReportParamOptionsLoader>;
|
|
192
|
+
default: undefined;
|
|
193
|
+
};
|
|
174
194
|
reportId: {
|
|
175
195
|
type: PropType<string | string[] | null>;
|
|
176
196
|
default: null;
|
|
@@ -228,6 +248,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
228
248
|
type: PropType<ReportOutputOptions>;
|
|
229
249
|
default: undefined;
|
|
230
250
|
};
|
|
251
|
+
exportExecution: {
|
|
252
|
+
type: PropType<ReportExportExecutionOptions>;
|
|
253
|
+
default: undefined;
|
|
254
|
+
};
|
|
231
255
|
assets: {
|
|
232
256
|
type: PropType<AssetRenderOptions>;
|
|
233
257
|
default: undefined;
|
|
@@ -309,6 +333,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
309
333
|
showPdfWindow: boolean;
|
|
310
334
|
showSettings: boolean;
|
|
311
335
|
showParams: boolean;
|
|
336
|
+
exportExecution: ReportExportExecutionOptions;
|
|
337
|
+
drill: ReportDrillOptions;
|
|
338
|
+
loadParamOptions: ReportParamOptionsLoader;
|
|
312
339
|
printOptions: ReportPrintOptions;
|
|
313
340
|
toolbar: MachReportToolbarOptions;
|
|
314
341
|
interaction: ReportInteractionOptions;
|
|
@@ -400,6 +427,7 @@ declare type __VLS_Props_3 = {
|
|
|
400
427
|
showActions?: boolean;
|
|
401
428
|
showTitle?: boolean;
|
|
402
429
|
disabled?: boolean;
|
|
430
|
+
loadOptions?: ReportParamOptionsLoader;
|
|
403
431
|
};
|
|
404
432
|
declare function __VLS_template(): {
|
|
405
433
|
slots: {
|
|
@@ -470,13 +498,21 @@ declare interface AssetRenderBudget {
|
|
|
470
498
|
/** Wall-clock budget, including adapters that ignore AbortSignal. Default 30 seconds. */
|
|
471
499
|
maxDurationMs?: number;
|
|
472
500
|
}
|
|
473
|
-
declare interface AssetRenderOptions extends OutputDiagnosticOptions {
|
|
501
|
+
declare interface AssetRenderOptions extends OutputDiagnosticOptions, ImageMediaOptions {
|
|
474
502
|
assetRenderers?: Partial<Record<ImageComponentKind, ComponentImageRenderer>>;
|
|
475
503
|
assetBudget?: AssetRenderBudget;
|
|
476
504
|
/** Default throw prevents an incomplete export; placeholder retains the component and emits diagnostics. */
|
|
477
505
|
assetFailure?: "throw" | "placeholder";
|
|
478
506
|
signal?: AbortSignal;
|
|
479
507
|
}
|
|
508
|
+
declare interface BrowserReportWorker {
|
|
509
|
+
postMessage(value: unknown, transfer?: Transferable[]): void;
|
|
510
|
+
terminate(): void;
|
|
511
|
+
addEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
512
|
+
addEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
513
|
+
removeEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
514
|
+
removeEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
515
|
+
}
|
|
480
516
|
/** 供 HTML/Word 导出的完整文档;打印路径逐页渲染,避免预先生成所有页。 */
|
|
481
517
|
export declare function buildPrintDocument(p: RenderPlan, options?: ReportPrintOptions): PrintHtmlResult;
|
|
482
518
|
export declare function buildWordHtml(p: RenderPlan): {
|
|
@@ -888,6 +924,8 @@ declare interface FormulaAdapter {
|
|
|
888
924
|
}): unknown;
|
|
889
925
|
}
|
|
890
926
|
declare interface GridCell {
|
|
927
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
928
|
+
richParagraphs?: RichParagraph[];
|
|
891
929
|
text?: string;
|
|
892
930
|
rawText?: string;
|
|
893
931
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -900,7 +938,7 @@ declare interface GridCell {
|
|
|
900
938
|
valueType?: "text" | "number" | "boolean";
|
|
901
939
|
/** 单元格级编辑控制;预览仍需显式开启 editing。 */
|
|
902
940
|
editable?: boolean;
|
|
903
|
-
source?:
|
|
941
|
+
source?: ReportCellSource_2;
|
|
904
942
|
/** SDK 派生结果不映射业务来源,始终只读(包括覆盖同名源字段的计算)。 */
|
|
905
943
|
derived?: boolean;
|
|
906
944
|
/** Excel 公式保留元数据;当前引擎不计算公式,公式格始终只读。 */
|
|
@@ -911,6 +949,8 @@ declare interface GridCell {
|
|
|
911
949
|
style?: ComponentStyle;
|
|
912
950
|
}
|
|
913
951
|
declare interface GridCell_2 {
|
|
952
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
953
|
+
richParagraphs?: RichParagraph_2[];
|
|
914
954
|
text?: string;
|
|
915
955
|
rawText?: string;
|
|
916
956
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -923,7 +963,7 @@ declare interface GridCell_2 {
|
|
|
923
963
|
valueType?: "text" | "number" | "boolean";
|
|
924
964
|
/** 单元格级编辑控制;预览仍需显式开启 editing。 */
|
|
925
965
|
editable?: boolean;
|
|
926
|
-
source?:
|
|
966
|
+
source?: ReportCellSource;
|
|
927
967
|
/** SDK 派生结果不映射业务来源,始终只读(包括覆盖同名源字段的计算)。 */
|
|
928
968
|
derived?: boolean;
|
|
929
969
|
/** Excel 公式保留元数据;当前引擎不计算公式,公式格始终只读。 */
|
|
@@ -934,6 +974,8 @@ declare interface GridCell_2 {
|
|
|
934
974
|
style?: ComponentStyle_2;
|
|
935
975
|
}
|
|
936
976
|
declare interface GridCell_3 {
|
|
977
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
978
|
+
richParagraphs?: RichParagraph_3[];
|
|
937
979
|
text?: string;
|
|
938
980
|
rawText?: string;
|
|
939
981
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -965,6 +1007,30 @@ export declare type HostRequest = (config: {
|
|
|
965
1007
|
signal?: AbortSignal;
|
|
966
1008
|
}) => Promise<unknown>;
|
|
967
1009
|
declare type ImageComponentKind = "image" | "chart" | "barcode" | "qrcode";
|
|
1010
|
+
/** Bounded binary image inspection shared by PDF, Excel and template import. No decoder is loaded. */
|
|
1011
|
+
declare interface ImageMediaOptions {
|
|
1012
|
+
maxImageBytes?: number;
|
|
1013
|
+
maxTotalImageBytes?: number;
|
|
1014
|
+
maxImages?: number;
|
|
1015
|
+
/** Decoded pixels per unique image, default 16 million. */
|
|
1016
|
+
maxImagePixels?: number;
|
|
1017
|
+
/** Total decoded pixels for unique media, default 64 million. */
|
|
1018
|
+
maxTotalImagePixels?: number;
|
|
1019
|
+
/** Maximum source dimension, default 16384 pixels. */
|
|
1020
|
+
maxImageDimension?: number;
|
|
1021
|
+
}
|
|
1022
|
+
/** Bounded binary image inspection shared by PDF, Excel and template import. No decoder is loaded. */
|
|
1023
|
+
declare interface ImageMediaOptions_2 {
|
|
1024
|
+
maxImageBytes?: number;
|
|
1025
|
+
maxTotalImageBytes?: number;
|
|
1026
|
+
maxImages?: number;
|
|
1027
|
+
/** Decoded pixels per unique image, default 16 million. */
|
|
1028
|
+
maxImagePixels?: number;
|
|
1029
|
+
/** Total decoded pixels for unique media, default 64 million. */
|
|
1030
|
+
maxTotalImagePixels?: number;
|
|
1031
|
+
/** Maximum source dimension, default 16384 pixels. */
|
|
1032
|
+
maxImageDimension?: number;
|
|
1033
|
+
}
|
|
968
1034
|
export declare function joinReportIds(reportId: ReportIdInput): string;
|
|
969
1035
|
/** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
|
|
970
1036
|
declare type ListAlignment = NonNullable<ComponentStyle_2["align"]> | "auto";
|
|
@@ -1379,6 +1445,10 @@ export declare interface MachReportController {
|
|
|
1379
1445
|
}
|
|
1380
1446
|
/** defaults 层可配置项(全部可选,均有内置缺省) */
|
|
1381
1447
|
export declare interface MachReportDefaults {
|
|
1448
|
+
/** Small encodes stay local; optional Worker isolation uses the same prepared plan for large output. */
|
|
1449
|
+
exportExecution?: ReportExportExecutionOptions;
|
|
1450
|
+
drill?: ReportDrillOptions;
|
|
1451
|
+
loadParamOptions?: ReportParamOptionsLoader;
|
|
1382
1452
|
printOptions?: ReportPrintOptions;
|
|
1383
1453
|
showExport?: boolean;
|
|
1384
1454
|
showPrint?: boolean;
|
|
@@ -1462,7 +1532,11 @@ export declare type MachReportLogger = Pick<Console, "warn" | "info">;
|
|
|
1462
1532
|
* - 优先级:组件 props > 路由级叠加 > preset > defaults(props 永远最高)
|
|
1463
1533
|
*/
|
|
1464
1534
|
/** 工具栏与状态文案(默认简体中文;出海场景覆写) */
|
|
1465
|
-
export declare interface MachReportMessages extends Partial<ReportCalculationMessages>, ReportPrintMessages {
|
|
1535
|
+
export declare interface MachReportMessages extends Partial<ReportCalculationMessages>, ReportPrintMessages, ReportParamOptionsMessages {
|
|
1536
|
+
drillActions?: string;
|
|
1537
|
+
drillOpening?: string;
|
|
1538
|
+
drillMissingValue?: string;
|
|
1539
|
+
drillFailed?: string;
|
|
1466
1540
|
exportMenu?: string;
|
|
1467
1541
|
exportMenuDescription?: string;
|
|
1468
1542
|
clearSearch?: string;
|
|
@@ -1778,7 +1852,7 @@ export declare function normalizeReportIds(reportId: ReportIdInput): string[];
|
|
|
1778
1852
|
/** Workers preserve stable error codes, not JavaScript class identity. Only known codes cross the UI boundary. */
|
|
1779
1853
|
export declare function normalizeReportLoadError(error: unknown): MachReportError;
|
|
1780
1854
|
declare interface OutputDiagnostic {
|
|
1781
|
-
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";
|
|
1855
|
+
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";
|
|
1782
1856
|
severity: "warning";
|
|
1783
1857
|
format: OutputFormat;
|
|
1784
1858
|
pageIndex: number;
|
|
@@ -1790,7 +1864,7 @@ declare interface OutputDiagnostic {
|
|
|
1790
1864
|
message: string;
|
|
1791
1865
|
}
|
|
1792
1866
|
declare interface OutputDiagnostic_2 {
|
|
1793
|
-
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";
|
|
1867
|
+
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";
|
|
1794
1868
|
severity: "warning";
|
|
1795
1869
|
format: OutputFormat_2;
|
|
1796
1870
|
pageIndex: number;
|
|
@@ -1852,6 +1926,7 @@ declare interface PaginateOptions {
|
|
|
1852
1926
|
/** Trusted formula adapter is passed at execution time; it is never serialized in templates. */
|
|
1853
1927
|
formula?: FormulaAdapter;
|
|
1854
1928
|
}
|
|
1929
|
+
export declare const PARAM_OPTIONS_MESSAGES: Required<ReportParamOptionsMessages>;
|
|
1855
1930
|
/** PDF 导出器:RenderPlan → PDF 字节;第二参数可上报非致命保真告警。 */
|
|
1856
1931
|
export declare interface PdfExporter {
|
|
1857
1932
|
(plan: RenderPlan, onWarning?: (message: string) => void, task?: OutputTaskOptions_2 & {
|
|
@@ -1859,6 +1934,8 @@ export declare interface PdfExporter {
|
|
|
1859
1934
|
}): Promise<Uint8Array>;
|
|
1860
1935
|
/** 可选轻量字体检查;旧版自定义导出函数无需实现。取消时拒绝 AbortError。 */
|
|
1861
1936
|
checkFont?: (signal?: AbortSignal) => Promise<PdfFontCheckResult>;
|
|
1937
|
+
/** Optional resource preparation for isolated encoding; custom exporters without it keep their own pipeline. */
|
|
1938
|
+
prepare?: (signal?: AbortSignal) => Promise<ReportPdfFontOptions>;
|
|
1862
1939
|
}
|
|
1863
1940
|
export declare interface PdfFontCheckResult {
|
|
1864
1941
|
status: PdfFontStatus;
|
|
@@ -2022,7 +2099,7 @@ declare interface PlanTableFragment {
|
|
|
2022
2099
|
layout?: "page" | "wide";
|
|
2023
2100
|
title?: string;
|
|
2024
2101
|
/** 只有宿主声明稳定 rowKey 时生成,不能用显示顺序替代业务主键。 */
|
|
2025
|
-
source?: Omit<
|
|
2102
|
+
source?: Omit<ReportCellSource_2, "field" | "rowKey"> & {
|
|
2026
2103
|
rowKey?: string | number;
|
|
2027
2104
|
};
|
|
2028
2105
|
}
|
|
@@ -2038,7 +2115,7 @@ declare interface PlanTableFragment_2 {
|
|
|
2038
2115
|
layout?: "page" | "wide";
|
|
2039
2116
|
title?: string;
|
|
2040
2117
|
/** 只有宿主声明稳定 rowKey 时生成,不能用显示顺序替代业务主键。 */
|
|
2041
|
-
source?: Omit<
|
|
2118
|
+
source?: Omit<ReportCellSource, "field" | "rowKey"> & {
|
|
2042
2119
|
rowKey?: string | number;
|
|
2043
2120
|
};
|
|
2044
2121
|
}
|
|
@@ -2060,6 +2137,16 @@ declare interface PlanTableFragment_3 {
|
|
|
2060
2137
|
}
|
|
2061
2138
|
/** Bounded concurrency, one stage timeout, and cancellation even for a hanging decoder. */
|
|
2062
2139
|
export declare function preparePrintResources(doc: Document, options?: ReportPrintOptions, signal?: AbortSignal, base?: string): Promise<void>;
|
|
2140
|
+
declare interface PreviewEncoding {
|
|
2141
|
+
pdf(plan: RenderPlan, exporter: PdfExporter, warning: (message: string) => void, task?: PreviewEncodingTask): Promise<Uint8Array>;
|
|
2142
|
+
xlsx(plan: RenderPlan, options: XlsxRenderOptions, task: PreviewEncodingTask): Promise<{
|
|
2143
|
+
buffer: Uint8Array;
|
|
2144
|
+
warnings: string[];
|
|
2145
|
+
}>;
|
|
2146
|
+
}
|
|
2147
|
+
declare type PreviewEncodingTask = OutputTaskOptions_2 & {
|
|
2148
|
+
onDiagnostic?: (entry: OutputDiagnostic) => void;
|
|
2149
|
+
};
|
|
2063
2150
|
export declare function printCalibration(options?: ReportPrintOptions): {
|
|
2064
2151
|
x: number;
|
|
2065
2152
|
y: number;
|
|
@@ -2179,14 +2266,14 @@ declare interface ReportCellContext {
|
|
|
2179
2266
|
valueType: ReportCellValueType;
|
|
2180
2267
|
table?: ReportCellTableIdentity;
|
|
2181
2268
|
/** Stable business identity. Physical row indices must never be used as database keys. */
|
|
2182
|
-
source?: Readonly<
|
|
2269
|
+
source?: Readonly<ReportCellSource>;
|
|
2183
2270
|
editable: boolean;
|
|
2184
2271
|
readOnlyReason?: ReportCellReadOnlyReason;
|
|
2185
2272
|
}
|
|
2186
2273
|
declare interface ReportCellEdit {
|
|
2187
2274
|
address: ReportCellAddress;
|
|
2188
2275
|
table?: ReportCellTableIdentity;
|
|
2189
|
-
source?: Readonly<
|
|
2276
|
+
source?: Readonly<ReportCellSource>;
|
|
2190
2277
|
previousValue: ReportCellValue;
|
|
2191
2278
|
previousText: string;
|
|
2192
2279
|
value: ReportCellValue;
|
|
@@ -2195,7 +2282,7 @@ declare interface ReportCellEdit {
|
|
|
2195
2282
|
declare interface ReportCellEdit_2 {
|
|
2196
2283
|
address: ReportCellAddress_2;
|
|
2197
2284
|
table?: ReportCellTableIdentity_2;
|
|
2198
|
-
source?: Readonly<
|
|
2285
|
+
source?: Readonly<ReportCellSource_2>;
|
|
2199
2286
|
previousValue: ReportCellValue_2;
|
|
2200
2287
|
previousText: string;
|
|
2201
2288
|
value: ReportCellValue_2;
|
|
@@ -2235,6 +2322,8 @@ export declare interface ReportCellSelection {
|
|
|
2235
2322
|
}
|
|
2236
2323
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
2237
2324
|
declare interface ReportCellSource {
|
|
2325
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
2326
|
+
sourceScope?: string;
|
|
2238
2327
|
datasetId: string;
|
|
2239
2328
|
rowKey: string | number;
|
|
2240
2329
|
field: string;
|
|
@@ -2243,6 +2332,8 @@ declare interface ReportCellSource {
|
|
|
2243
2332
|
}
|
|
2244
2333
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
2245
2334
|
declare interface ReportCellSource_2 {
|
|
2335
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
2336
|
+
sourceScope?: string;
|
|
2246
2337
|
datasetId: string;
|
|
2247
2338
|
rowKey: string | number;
|
|
2248
2339
|
field: string;
|
|
@@ -2251,6 +2342,8 @@ declare interface ReportCellSource_2 {
|
|
|
2251
2342
|
}
|
|
2252
2343
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
2253
2344
|
declare interface ReportCellSource_3 {
|
|
2345
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
2346
|
+
sourceScope?: string;
|
|
2254
2347
|
datasetId: string;
|
|
2255
2348
|
rowKey: string | number;
|
|
2256
2349
|
field: string;
|
|
@@ -2280,6 +2373,8 @@ declare interface ReportDataTarget {
|
|
|
2280
2373
|
rowKey?: string | number;
|
|
2281
2374
|
/** Use table identity when the same dataset appears in several tables. */
|
|
2282
2375
|
tableId?: string;
|
|
2376
|
+
/** Assigned by the source/runtime when several reports share dataset names. */
|
|
2377
|
+
reportScope?: string;
|
|
2283
2378
|
}
|
|
2284
2379
|
declare interface ReportDataTarget_2 {
|
|
2285
2380
|
datasetId: string;
|
|
@@ -2287,8 +2382,12 @@ declare interface ReportDataTarget_2 {
|
|
|
2287
2382
|
rowKey?: string | number;
|
|
2288
2383
|
/** Use table identity when the same dataset appears in several tables. */
|
|
2289
2384
|
tableId?: string;
|
|
2385
|
+
/** Assigned by the source/runtime when several reports share dataset names. */
|
|
2386
|
+
reportScope?: string;
|
|
2290
2387
|
}
|
|
2291
2388
|
declare interface ReportDefinition {
|
|
2389
|
+
/** Explicitly shared editable data identity. Omit to isolate each report occurrence. */
|
|
2390
|
+
sourceScope?: string;
|
|
2292
2391
|
/** 静态模板或宿主提供的异步模板加载器;动态模板默认每次重新读取,不缓存版本。 */
|
|
2293
2392
|
template: ReportTemplate_2 | ReportTemplateLoader;
|
|
2294
2393
|
/** 静态数据;load 存在时优先使用 load 的结果。 */
|
|
@@ -2313,13 +2412,56 @@ declare interface ReportDiagnostic {
|
|
|
2313
2412
|
target?: ReportDataTarget;
|
|
2314
2413
|
}
|
|
2315
2414
|
export declare type ReportDiscardReason = "reload" | "import" | "replace" | "leave";
|
|
2415
|
+
/** Serializable action metadata. URLs, scripts and automatic navigation are deliberately absent. */
|
|
2416
|
+
declare interface ReportDrillAction {
|
|
2417
|
+
id: string;
|
|
2418
|
+
label: string;
|
|
2419
|
+
target: {
|
|
2420
|
+
field: string;
|
|
2421
|
+
datasetId?: string;
|
|
2422
|
+
reportScope?: string;
|
|
2423
|
+
roles?: readonly string[];
|
|
2424
|
+
};
|
|
2425
|
+
params?: Readonly<Record<string, ReportDrillBinding>>;
|
|
2426
|
+
}
|
|
2427
|
+
declare type ReportDrillBinding = {
|
|
2428
|
+
value: string | number | boolean;
|
|
2429
|
+
} | {
|
|
2430
|
+
from: "value" | "rowKey";
|
|
2431
|
+
} | {
|
|
2432
|
+
from: "query" | "field";
|
|
2433
|
+
field: string;
|
|
2434
|
+
};
|
|
2435
|
+
/** Trusted host-owned allowlist. Matching serialized metadata alone never executes an action. */
|
|
2436
|
+
export declare interface ReportDrillOptions {
|
|
2437
|
+
actions: readonly ReportDrillAction[];
|
|
2438
|
+
open(request: ReportDrillRequest & {
|
|
2439
|
+
signal: AbortSignal;
|
|
2440
|
+
view: Readonly<{
|
|
2441
|
+
zoom: number;
|
|
2442
|
+
scrollTop: number;
|
|
2443
|
+
scrollLeft: number;
|
|
2444
|
+
}>;
|
|
2445
|
+
}): void | Promise<void>;
|
|
2446
|
+
}
|
|
2447
|
+
declare interface ReportDrillRequest {
|
|
2448
|
+
actionId: string;
|
|
2449
|
+
params: Readonly<Record<string, string>>;
|
|
2450
|
+
returnState: Readonly<ReportDrillReturnState>;
|
|
2451
|
+
}
|
|
2452
|
+
declare interface ReportDrillReturnState {
|
|
2453
|
+
params: Readonly<Record<string, string>>;
|
|
2454
|
+
address: Readonly<ReportCellAddress>;
|
|
2455
|
+
reportScope?: string;
|
|
2456
|
+
source?: Readonly<Pick<ReportCellSource, "sourceScope" | "datasetId" | "rowKey" | "field">>;
|
|
2457
|
+
}
|
|
2316
2458
|
declare interface ReportEditBatch {
|
|
2317
2459
|
/** Idempotency identity; the server should bind it to the exact payload. */
|
|
2318
2460
|
requestId: string;
|
|
2319
2461
|
edits: ReportCellEdit[];
|
|
2320
2462
|
}
|
|
2321
2463
|
declare interface ReportEditConflict {
|
|
2322
|
-
source?: Readonly<
|
|
2464
|
+
source?: Readonly<ReportCellSource>;
|
|
2323
2465
|
address?: ReportCellAddress;
|
|
2324
2466
|
message: string;
|
|
2325
2467
|
currentValue?: ReportCellValue;
|
|
@@ -2357,8 +2499,36 @@ export declare interface ReportEmptyState {
|
|
|
2357
2499
|
title?: string;
|
|
2358
2500
|
description?: string;
|
|
2359
2501
|
}
|
|
2502
|
+
export declare interface ReportExportDecision {
|
|
2503
|
+
mode: "local" | "worker";
|
|
2504
|
+
reason: ReportExportDecisionReason;
|
|
2505
|
+
/** Lower bounds: traversal stops as soon as isolation is warranted. No font or image hashing. */
|
|
2506
|
+
estimate: {
|
|
2507
|
+
pages: number;
|
|
2508
|
+
cells: number;
|
|
2509
|
+
bytes: number;
|
|
2510
|
+
};
|
|
2511
|
+
hardCancellation: boolean;
|
|
2512
|
+
}
|
|
2513
|
+
declare type ReportExportDecisionReason = "small-task" | "threshold" | "scan-limit" | "explicit-local" | "explicit-worker" | "worker-unavailable" | "worker-start-failed" | "nonserializable-options";
|
|
2514
|
+
export declare interface ReportExportExecutionOptions {
|
|
2515
|
+
mode?: "auto" | "worker" | "local";
|
|
2516
|
+
/** A fresh bundler-managed module Worker for every call; never a shared worker. */
|
|
2517
|
+
workerFactory?: () => BrowserReportWorker;
|
|
2518
|
+
thresholds?: ReportExportThresholds;
|
|
2519
|
+
/** Auto only. Startup unavailability may use local; encoding failures never retry. */
|
|
2520
|
+
fallback?: "local" | "error";
|
|
2521
|
+
timeoutMs?: number;
|
|
2522
|
+
budget?: ReportRuntimeBudget;
|
|
2523
|
+
onDecision?: (decision: ReportExportDecision) => void;
|
|
2524
|
+
}
|
|
2360
2525
|
/** 输出能力仍由宿主授权;工具偏好只决定当前预览实例的可见与启用状态。 */
|
|
2361
2526
|
export declare type ReportExportFormat = "html" | "pdf" | "xlsx" | "png" | "word";
|
|
2527
|
+
export declare interface ReportExportThresholds {
|
|
2528
|
+
cells?: number;
|
|
2529
|
+
pages?: number;
|
|
2530
|
+
bytes?: number;
|
|
2531
|
+
}
|
|
2362
2532
|
declare type ReportExpression = {
|
|
2363
2533
|
field: string;
|
|
2364
2534
|
} | {
|
|
@@ -2498,6 +2668,10 @@ declare interface ReportParamDef {
|
|
|
2498
2668
|
label: string;
|
|
2499
2669
|
value: string;
|
|
2500
2670
|
}>;
|
|
2671
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
2672
|
+
optionsSource?: string;
|
|
2673
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
2674
|
+
dependsOn?: string[];
|
|
2501
2675
|
defaultValue?: string;
|
|
2502
2676
|
required?: boolean;
|
|
2503
2677
|
placeholder?: string;
|
|
@@ -2519,6 +2693,10 @@ declare interface ReportParamDef_2 {
|
|
|
2519
2693
|
label: string;
|
|
2520
2694
|
value: string;
|
|
2521
2695
|
}>;
|
|
2696
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
2697
|
+
optionsSource?: string;
|
|
2698
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
2699
|
+
dependsOn?: string[];
|
|
2522
2700
|
defaultValue?: string;
|
|
2523
2701
|
required?: boolean;
|
|
2524
2702
|
placeholder?: string;
|
|
@@ -2540,6 +2718,10 @@ declare interface ReportParamDef_3 {
|
|
|
2540
2718
|
label: string;
|
|
2541
2719
|
value: string;
|
|
2542
2720
|
}>;
|
|
2721
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
2722
|
+
optionsSource?: string;
|
|
2723
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
2724
|
+
dependsOn?: string[];
|
|
2543
2725
|
defaultValue?: string;
|
|
2544
2726
|
required?: boolean;
|
|
2545
2727
|
placeholder?: string;
|
|
@@ -2555,7 +2737,30 @@ declare interface ReportParamIssue {
|
|
|
2555
2737
|
field: string;
|
|
2556
2738
|
message: string;
|
|
2557
2739
|
}
|
|
2558
|
-
declare type ReportParamIssueCode = "definition" | "required" | "type" | "option" | "minimum" | "maximum" | "minLength" | "maxLength";
|
|
2740
|
+
declare type ReportParamIssueCode = "definition" | "required" | "type" | "option" | "dependency" | "minimum" | "maximum" | "minLength" | "maxLength";
|
|
2741
|
+
export declare interface ReportParamOption {
|
|
2742
|
+
readonly label: string;
|
|
2743
|
+
readonly value: string;
|
|
2744
|
+
}
|
|
2745
|
+
export declare interface ReportParamOptionsInput {
|
|
2746
|
+
readonly source: string;
|
|
2747
|
+
readonly field: string;
|
|
2748
|
+
readonly query: string;
|
|
2749
|
+
/** Only declared dependencies, captured at request start. Never the mutable form. */
|
|
2750
|
+
readonly params: Readonly<Record<string, string>>;
|
|
2751
|
+
readonly signal: AbortSignal;
|
|
2752
|
+
readonly limit: number;
|
|
2753
|
+
}
|
|
2754
|
+
/** Resolve a trusted source key through the host's existing API/authentication. */
|
|
2755
|
+
export declare type ReportParamOptionsLoader = (input: ReportParamOptionsInput) => Promise<readonly ReportParamOption[]>;
|
|
2756
|
+
export declare interface ReportParamOptionsMessages {
|
|
2757
|
+
paramOptionsLoading?: string;
|
|
2758
|
+
paramOptionsEmpty?: string;
|
|
2759
|
+
paramOptionsFailed?: string;
|
|
2760
|
+
paramOptionsMissingLoader?: string;
|
|
2761
|
+
paramOptionsDependencies?: string;
|
|
2762
|
+
paramOptionsClear?: string;
|
|
2763
|
+
}
|
|
2559
2764
|
export declare const ReportParamPanel: DefineComponent<__VLS_Props_3, {
|
|
2560
2765
|
focusInvalid: typeof focusInvalid;
|
|
2561
2766
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -2569,9 +2774,21 @@ export declare const ReportParamPanel: DefineComponent<__VLS_Props_3, {
|
|
|
2569
2774
|
}>, {
|
|
2570
2775
|
disabled: boolean;
|
|
2571
2776
|
issues: readonly ReportParamIssue[];
|
|
2777
|
+
loadOptions: ReportParamOptionsLoader;
|
|
2572
2778
|
showActions: boolean;
|
|
2573
2779
|
showTitle: boolean;
|
|
2574
2780
|
}>;
|
|
2781
|
+
/** Licensed local font bytes; never downloaded implicitly by the runtime. */
|
|
2782
|
+
declare interface ReportPdfFontOptions {
|
|
2783
|
+
customFontBytes?: Uint8Array | ArrayBuffer;
|
|
2784
|
+
customFontName?: string;
|
|
2785
|
+
customFontFaces?: {
|
|
2786
|
+
regular: Uint8Array | ArrayBuffer;
|
|
2787
|
+
bold?: Uint8Array | ArrayBuffer;
|
|
2788
|
+
italic?: Uint8Array | ArrayBuffer;
|
|
2789
|
+
boldItalic?: Uint8Array | ArrayBuffer;
|
|
2790
|
+
};
|
|
2791
|
+
}
|
|
2575
2792
|
export declare interface ReportPreferencesAdapter {
|
|
2576
2793
|
load(key: string): Partial<ReportPreviewPreferences> | null | Promise<Partial<ReportPreviewPreferences> | null>;
|
|
2577
2794
|
save(key: string, value: Readonly<Partial<ReportPreviewPreferences>>): void | Promise<void>;
|
|
@@ -2670,6 +2887,15 @@ declare interface ReportQueryResult {
|
|
|
2670
2887
|
diagnostics?: ReportDiagnostic[];
|
|
2671
2888
|
}
|
|
2672
2889
|
declare type ReportRegistry = Record<string, ReportDefinition>;
|
|
2890
|
+
declare interface ReportRuntimeBudget {
|
|
2891
|
+
maxRows?: number;
|
|
2892
|
+
maxPages?: number;
|
|
2893
|
+
maxCells?: number;
|
|
2894
|
+
maxOutputBytes?: number;
|
|
2895
|
+
/** Bound the plain JSON snapshot accepted by exportPrepared (default 64 MB). */
|
|
2896
|
+
maxPreparedBytes?: number;
|
|
2897
|
+
maxDurationMs?: number;
|
|
2898
|
+
}
|
|
2673
2899
|
declare interface ReportSaveInput extends ReportLoadContext {
|
|
2674
2900
|
requestId: string;
|
|
2675
2901
|
expectedRevision?: string;
|
|
@@ -2787,6 +3013,9 @@ declare type ReportValueState_2 = "missing-source" | "not-applicable" | "not-cal
|
|
|
2787
3013
|
export declare function resolveCalculationMessages(messages: Partial<ReportCalculationMessages>): ReportCalculationMessages;
|
|
2788
3014
|
export declare function resolveConfig(config: MachReportConfig | null | undefined, presetName?: string): ResolvedConfig;
|
|
2789
3015
|
export declare type ResolvedConfig = Required<Pick<MachReportDefaults, "showExport" | "showPrint" | "showPdfWindow" | "showSettings" | "showParams" | "gapPx">> & {
|
|
3016
|
+
exportExecution?: ReportExportExecutionOptions;
|
|
3017
|
+
drill?: ReportDrillOptions;
|
|
3018
|
+
loadParamOptions?: ReportParamOptionsLoader;
|
|
2790
3019
|
pdfFontUrl: string;
|
|
2791
3020
|
theme: MachReportTheme;
|
|
2792
3021
|
messages: MachReportMessages;
|
|
@@ -3044,6 +3273,8 @@ export declare function usePrintExport(plan: Ref<RenderPlan | null>, hooks: {
|
|
|
3044
3273
|
/** Flush the active editor and await source-backed calculation/persistence before capturing the output plan. */
|
|
3045
3274
|
beforeOutput?: () => boolean | Promise<boolean>;
|
|
3046
3275
|
getPdfExporter: () => PdfExporter;
|
|
3276
|
+
/** Optional prepared-plan encoders; legacy callers keep their injected exporter unchanged. */
|
|
3277
|
+
encoding?: PreviewEncoding;
|
|
3047
3278
|
onError: (message: string, code?: string) => void;
|
|
3048
3279
|
onWarning?: (message: string) => void;
|
|
3049
3280
|
onBusy?: (format: string | null) => void;
|
|
@@ -3095,21 +3326,14 @@ declare type ValueFormat = ColumnFormat;
|
|
|
3095
3326
|
declare type ValueFormat_2 = ColumnFormat_2;
|
|
3096
3327
|
/** The same declarative formatting used by list columns, before any output backend. */
|
|
3097
3328
|
declare type ValueFormat_3 = ColumnFormat_3;
|
|
3098
|
-
declare
|
|
3099
|
-
/** Decoded bytes per unique embedded image; default 16 MiB. */
|
|
3100
|
-
maxImageBytes?: number;
|
|
3101
|
-
/** Total decoded bytes of unique images in this workbook; default 32 MiB. */
|
|
3102
|
-
maxTotalImageBytes?: number;
|
|
3103
|
-
/** Unique embedded media limit, default 1000; repeated placements reuse the same media. */
|
|
3104
|
-
maxImages?: number;
|
|
3105
|
-
}
|
|
3329
|
+
declare type XlsxImageOptions = ImageMediaOptions_2;
|
|
3106
3330
|
/**
|
|
3107
3331
|
* RenderPlan → xlsx 导出(B 端第二出口,对齐家族 @agile-team/mach-table-xlsx 路线):
|
|
3108
3332
|
* - 网格组件 → 真表格:列宽(mm→Excel 宽度)、行高(mm→pt)、colSpan/rowSpan 合并、
|
|
3109
3333
|
* 加粗/对齐/底色/字号直译(resolveGridLayout 复用单真相源几何)
|
|
3110
3334
|
* - 文本组件 → 合并标题行(顺序流式输出,保字号/加粗/对齐;非像素级定位,
|
|
3111
3335
|
* 目标是"财务能直接用的对账表"而非复刻版面)
|
|
3112
|
-
* -
|
|
3336
|
+
* - 原生 richText 保留基础字形;未支持组件、段落专有排版与单元格嵌套组件计入 diagnostics / warnings
|
|
3113
3337
|
*/
|
|
3114
3338
|
declare interface XlsxRenderOptions extends OutputDiagnosticOptions_2, XlsxImageOptions {
|
|
3115
3339
|
/** 工作表命名(连续表默认使用标题,其余默认 "Sheet1" 起序)。 */
|
package/dist/vue-async.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./plugin-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./plugin-Dr39GBRG.cjs");function i(){return Promise.resolve().then(()=>require("./ReportPreview-Bk9nLfO9.cjs")).then(e=>e.ReportPreview$1)}const t={install(e,o={}){r.machReportPlugin.install(e,o)}};exports.MachReportPreview=r.MachReportPreview;exports.default=t;exports.machReportAsyncPlugin=t;exports.preloadMachReport=i;
|
package/dist/vue-async.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as o } from "./plugin-
|
|
2
|
-
import { M as l } from "./plugin-
|
|
1
|
+
import { m as o } from "./plugin-C2j5_mhx.js";
|
|
2
|
+
import { M as l } from "./plugin-C2j5_mhx.js";
|
|
3
3
|
function a() {
|
|
4
|
-
return import("./ReportPreview-
|
|
4
|
+
return import("./ReportPreview-BcDKCLiK.js").then((t) => t.s);
|
|
5
5
|
}
|
|
6
6
|
const n = {
|
|
7
7
|
install(t, r = {}) {
|
package/dist/vue.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@agile-team/mach-report"),i=require("./ReportPreview-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@agile-team/mach-report"),i=require("./ReportPreview-Bk9nLfO9.cjs"),a=require("./config-Dg_o8e7m.cjs"),g=require("./injection-keys-Db_DyLkm.cjs"),y=require("./plugin-Dr39GBRG.cjs"),h=require("vue"),M=require("./json-snapshot-DknkjvxP.cjs"),A=require("./progress-B0ctFpKf.cjs");function v(r){const e=E.createReportSource(r),o=async t=>{if(t.reportIds.length===0)throw new i.PlanLoadError("缺少报表 ID");for(const n of t.reportIds)if(!Object.prototype.hasOwnProperty.call(r,n)||!r[n])throw new i.PlanLoadError(`本地模板 ${n} 不存在`);return e(t)};return o.getParamDefs=e.getParamDefs,o}const I=Object.freeze({loading:!1,hasPlan:!1,pageCount:0,currentPage:1,exporting:null,printing:!1,canExport:!1,canPrint:!1,error:null,pdfFont:Object.freeze({status:"unchecked",fontUrl:""})});function L(){const r=h.shallowRef(null),e=()=>r.value?.state??I,o=Object.freeze({get loading(){return e().loading},get hasPlan(){return e().hasPlan},get pageCount(){return e().pageCount},get currentPage(){return e().currentPage},get exporting(){return e().exporting},get printing(){return e().printing},get canExport(){return e().canExport},get canPrint(){return e().canPrint},get error(){return e().error},get pdfFont(){return e().pdfFont},get editing(){return e().editing??!1},get saving(){return e().saving??!1},get importing(){return e().importing??!1},get dirty(){return e().dirty??!1},get pendingLocalChanges(){return e().pendingLocalChanges??!1},get task(){return e().task??null},get diagnostics(){return e().diagnostics??[]},get reportIds(){return e().reportIds??[]},get params(){return e().params??{}},get canUndo(){return e().canUndo??!1},get canRedo(){return e().canRedo??!1},get changeCount(){return e().changeCount??0},get selection(){return e().selection??null}});function t(){if(!r.value)throw new a.MachReportError("config","报表预览尚未挂载,请在 ready 后调用控制器");return r.value}return{ref(n){const s=n;r.value=s&&typeof s.reload=="function"&&typeof s.print=="function"&&typeof s.exportAs=="function"&&typeof s.openPdfWindow=="function"&&typeof s.gotoPage=="function"&&typeof s.setParams=="function"?s:null},ready:h.computed(()=>r.value!==null),state:o,async checkPdfFont(){const n=t();return n.checkPdfFont?n.checkPdfFont():{status:"unverified",fontUrl:"",message:"旧自定义控制器未提供字体检查,请由宿主确认字体配置"}},cancelTask(){t().cancelTask?.()},async confirmDiscard(n){return await t().confirmDiscard?.(n)??!0},getOutputDiagnostics(n){return t().getOutputDiagnostics?.(n)??[]},async reload(){await t().reload()},async print(){await t().print()},async exportAs(n){await t().exportAs(n)},openPdfWindow(){t().openPdfWindow()},gotoPage(n){t().gotoPage(n)},async setParams(n,s){await t().setParams(n,s)},async importExcel(n,s){const f=t();if(!f.importExcel)throw new a.MachReportError("config","旧自定义控制器未提供 Excel 导入");return f.importExcel(n,s)},getPlan(){return t().getPlan?.()??null},getChanges(){return t().getChanges?.()??[]},getDifferences:()=>t().getDifferences?.()??[],undo:async()=>await t().undo?.()??!1,redo:async()=>await t().redo?.()??!1,restoreChanges:async()=>await t().restoreChanges?.()??!1,getSelection:()=>t().getSelection?.()??null,focusCell:async(n,s)=>await t().focusCell?.(n,s)??!1,focusField:async n=>await t().focusField?.(n)??!1,copySelection:()=>t().copySelection?.()??"",pasteSelection:async n=>await t().pasteSelection?.(n)??!1}}function D(){return h.inject(g.MACH_REPORT_CONTROLLER_KEY,null)}function T(r){return!!r&&typeof r=="object"&&!Array.isArray(r)}function x(r){return Array.isArray(r)&&r.every(e=>T(e)&&typeof e.code=="string"&&typeof e.message=="string"&&["info","warning","error"].includes(e.severity)&&(e.path===void 0||typeof e.path=="string")&&M.hasValidDataExplanation(e))}function F(r,e){return Array.isArray(r)&&r.every(o=>T(o)&&Number.isSafeInteger(o.editIndex)&&o.editIndex>=0&&o.editIndex<e&&typeof o.code=="string"&&typeof o.message=="string")}function b(r,e){let o;if(!T(r)||typeof r.revision!="string"||!r.revision.trim()?o="非空 revision(请先在适配器解包业务响应)":r.sourceToken!==void 0&&typeof r.sourceToken!="string"?o="字符串 sourceToken":r.diagnostics!==void 0&&!x(r.diagnostics)?o="结构化 diagnostics":r.conflicts!==void 0&&!F(r.conflicts,e)&&(o="有效 editIndex/code/message conflicts"),o)throw new a.MachReportError("edit",`ReportProvider.save 必须返回${o};服务器可能已提交,请重新查询确认后再编辑`)}function O(r){return typeof r=="function"?r():r}function q(r,e){const o=new Set(r.flatMap(t=>t.source?.[e]===void 0?[]:[String(t.source[e])]));return o.size===1?[...o][0]:void 0}function _(r,e,o,t){return typeof r=="function"?r():q(e,o)??t??r}function k(r){return r.requestId??globalThis.crypto?.randomUUID?.()??`mr-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function U(r,e){if(!r.save)throw new a.MachReportError("config","ReportProvider.save 未配置,无法启用业务保存");let o="",t,n,s=0;function f(c,u,p){c.conflicts?.length||u!==o||p!==s||(t=c.revision,n=c.sourceToken)}async function S(c,u){if(u.signal.aborted)throw u.signal.reason??new DOMException("Aborted","AbortError");const p=O(e.reportId),m={...O(e.params??{})},R=JSON.stringify([p,m]),C=++s;if(R!==o&&(o=R,t=void 0,n=void 0),e.requireSource!==!1&&c.edits.some(l=>!l.source))throw new E.ReportCellEditError("missing");const d=await r.save({reportId:p,params:m,signal:u.signal,requestId:c.requestId,action:u.action,edits:i.cloneReportSnapshot(c.edits),expectedRevision:_(e.expectedRevision,c.edits,"revision",t),sourceToken:_(e.sourceToken,c.edits,"sourceToken",n)});if(u.signal.aborted)throw u.signal.reason??new DOMException("Aborted","AbortError");b(d,c.edits.length),d.diagnostics?.forEach(l=>A.observeOutput(()=>e.onDiagnostic?.(l)));const P=d.diagnostics?.filter(l=>l.severity==="error");if(P?.length)throw new a.MachReportError("edit",P.map(l=>l.message).join(";"),{diagnostics:P});const w=d.conflicts?.map(l=>({source:c.edits[l.editIndex]?.source,address:c.edits[l.editIndex]?.address,message:l.message}));return f(d,R,C),{revision:d.revision,sourceToken:d.sourceToken,conflicts:w}}return{requireSource:e.requireSource??!0,canEdit:e.canEdit,validate:e.validate,saveBatch:S,save:(c,u)=>S({requestId:k(u),edits:[i.cloneReportSnapshot(c)]},u)}}exports.PlanLoadError=i.PlanLoadError;exports.REPORT_EXPORT_FORMATS=i.REPORT_EXPORT_FORMATS;exports.REPORT_PREVIEW_TOOLS=i.REPORT_PREVIEW_TOOLS;exports.ReportPagination=i.ReportPagination;exports.ReportPreview=i.ReportPreview;exports.ReportPrintResourceError=i.ReportPrintResourceError;exports.ReportToolbar=i.ReportToolbar;exports.buildPrintDocument=i.buildPrintDocument;exports.buildWordHtml=i.buildWordHtml;exports.createDefaultPdfExporter=i.createDefaultPdfExporter;exports.createFetchRequest=i.createFetchRequest;exports.createPrintCalibrationPlan=i.createPrintCalibrationPlan;exports.createReportStoragePreferences=i.createReportStoragePreferences;exports.joinReportIds=i.joinReportIds;exports.normalizeReportIds=i.normalizeReportIds;exports.preparePrintResources=i.preparePrintResources;exports.printPlans=i.printPlans;exports.usePageWindow=i.usePageWindow;exports.usePrintExport=i.usePrintExport;exports.useZoom=i.useZoom;exports.DEFAULT_CALCULATION_MESSAGES=a.DEFAULT_CALCULATION_MESSAGES;exports.DEFAULT_MESSAGES=a.DEFAULT_MESSAGES;exports.DEFAULT_PRINT_MESSAGES=a.DEFAULT_PRINT_MESSAGES;exports.DEFAULT_THEME=a.DEFAULT_THEME;exports.MachReportError=a.MachReportError;exports.PARAM_OPTIONS_MESSAGES=a.PARAM_OPTIONS_MESSAGES;exports.ReportParamPanel=a.ReportParamPanel;exports.SILENT_LOGGER=a.SILENT_LOGGER;exports.defineMachReportConfig=a.defineMachReportConfig;exports.defineMachReportPreset=a.defineMachReportPreset;exports.normalizeReportLoadError=a.normalizeReportLoadError;exports.printCalibration=a.printCalibration;exports.provideMachReportConfig=a.provideMachReportConfig;exports.resolveCalculationMessages=a.resolveCalculationMessages;exports.resolveConfig=a.resolveConfig;exports.snapshotPrintOptions=a.snapshotPrintOptions;exports.themeToCssVars=a.themeToCssVars;exports.toErrorDetail=a.toErrorDetail;exports.useMachReportConfig=a.useMachReportConfig;exports.MACH_REPORT_CONFIG_KEY=g.MACH_REPORT_CONFIG_KEY;exports.MACH_REPORT_CONTROLLER_KEY=g.MACH_REPORT_CONTROLLER_KEY;exports.MACH_REPORT_FETCHER_KEY=g.MACH_REPORT_FETCHER_KEY;exports.MACH_REPORT_PDF_EXPORTER_KEY=g.MACH_REPORT_PDF_EXPORTER_KEY;exports.MachReportPreview=y.MachReportPreview;exports.machReportPlugin=y.machReportPlugin;exports.createLocalFetcher=v;exports.createProviderEditing=U;exports.useMachReport=L;exports.useReportPreview=D;Object.keys(E).forEach(r=>{r!=="default"&&!Object.prototype.hasOwnProperty.call(exports,r)&&Object.defineProperty(exports,r,{enumerable:!0,get:()=>E[r]})});
|