@agile-team/mach-report 2.15.0 → 2.17.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 +21 -12
- package/dist/{ExcelBindingWizard-Bs43BGNp.cjs → ExcelBindingWizard-Bq6FYME6.cjs} +1 -1
- package/dist/{ExcelBindingWizard-BKH1nGNS.js → ExcelBindingWizard-Co1svTsw.js} +3 -3
- package/dist/{ParamEditor-Da4akw6V.cjs → ParamEditor-B5UZRgxv.cjs} +1 -1
- package/dist/{ParamEditor-DoAhzJsm.js → ParamEditor-DNNARyeB.js} +1 -1
- package/dist/{ReportBatchPanel-wP9m9Pj1.cjs → ReportBatchPanel-Ctvs2t_9.cjs} +1 -1
- package/dist/{ReportBatchPanel-BMf6boMA.js → ReportBatchPanel-uQh06usx.js} +3 -3
- package/dist/ReportPreview-BdQawRh0.js +4879 -0
- package/dist/ReportPreview-CJC_-j2I.cjs +6 -0
- package/dist/{ReportTemplateLibrary-Sxr3eD0J.cjs → ReportTemplateLibrary-CnP7_1pH.cjs} +1 -1
- package/dist/{ReportTemplateLibrary-C9wutIiT.js → ReportTemplateLibrary-TIL_Oj2l.js} +1 -1
- package/dist/RuleEditor-DkRjOLlr.js +2141 -0
- package/dist/RuleEditor-h5anGsDB.cjs +1 -0
- package/dist/{TemplateOutlinePanel-JTSR53vJ.cjs → TemplateOutlinePanel-BlLxRrfu.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-D6Bkny59.js → TemplateOutlinePanel-BouxsuqQ.js} +1 -1
- package/dist/{TemplateReusePanel-rVuK1kTz.js → TemplateReusePanel-BEACLPaN.js} +2 -2
- package/dist/{TemplateReusePanel-Kx35S0Ql.cjs → TemplateReusePanel-yxsHSO40.cjs} +1 -1
- package/dist/{TemplateReviewPanel-B0ar9_zf.js → TemplateReviewPanel-B1OGRY2i.js} +1 -1
- package/dist/{TemplateReviewPanel-Dn6X9UmY.cjs → TemplateReviewPanel-D9Cx0m2N.cjs} +1 -1
- package/dist/analytics.cjs +1 -1
- package/dist/analytics.d.cts +65 -1
- package/dist/analytics.d.ts +65 -1
- package/dist/analytics.js +4 -4
- package/dist/artifact-integrity.json +105 -101
- package/dist/assets-BIMVwjQe.js +231 -0
- package/dist/assets-Dfs2ElxI.cjs +1 -0
- package/dist/auto-BIOmtVhk.js +240 -0
- package/dist/auto-DDHflI9v.cjs +1 -0
- package/dist/{batch-BfZHN1do.js → batch-WzDIXJAt.js} +1 -1
- package/dist/{batch-CLpELXBl.cjs → batch-z6Aw5GEY.cjs} +1 -1
- package/dist/codes.d.cts +2 -0
- package/dist/codes.d.ts +2 -0
- package/dist/component-tree-Ca6YYfHq.js +61 -0
- package/dist/component-tree-DkGLEfZC.cjs +1 -0
- package/dist/computed-BW5a8QFk.js +612 -0
- package/dist/computed-C2GD3XcE.cjs +1 -0
- package/dist/config-Dg_o8e7m.cjs +1 -0
- package/dist/{config-BVsJXSqS.js → config-XQ4qrQ7Q.js} +66 -64
- package/dist/dataset-DL83majE.js +161 -0
- package/dist/dataset-IrlXbUvh.cjs +1 -0
- package/dist/designer-D9XAxqSc.js +5178 -0
- package/dist/designer-uCDo5XSK.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +178 -3
- package/dist/designer.d.ts +178 -3
- package/dist/designer.js +1 -1
- package/dist/drill-ByN8COs_.cjs +1 -0
- package/dist/{drill-ByJviLXS.js → drill-CKW3Xtfa.js} +5 -5
- package/dist/encoding-BFMFIc4r.cjs +1 -0
- package/dist/encoding-DP_Eaf0A.js +21 -0
- package/dist/{font-loader-B_UkxpzC.cjs → font-loader-7FWVlykp.cjs} +1 -1
- package/dist/{font-loader-Q3bQjmrI.js → font-loader-CQZowp0I.js} +1 -1
- package/dist/index.cjs +8 -9
- package/dist/index.d.cts +175 -1
- package/dist/index.d.ts +175 -1
- package/dist/index.js +1343 -915
- package/dist/json-snapshot-D7PE1NsU.cjs +2 -0
- package/dist/json-snapshot-DYmEe3sO.js +1779 -0
- package/dist/matrix-JLAXlux-.js +302 -0
- package/dist/matrix-gTHpDTGm.cjs +1 -0
- package/dist/{pdf-CvvrjPQg.cjs → pdf-B8JouyYv.cjs} +48 -50
- package/dist/{pdf-BwNyeGpt.js → pdf-l3ea86di.js} +2734 -2748
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.d.cts +14 -0
- package/dist/pdf.d.ts +14 -0
- package/dist/pdf.js +2 -2
- package/dist/{plugin-Ca_XZG3l.js → plugin-BBp74CQZ.js} +1 -1
- package/dist/{plugin-DHO7X8z2.cjs → plugin-CtFX9PFG.cjs} +1 -1
- package/dist/prepared-CARicKYh.js +87 -0
- package/dist/prepared-Ch1x_Gog.cjs +1 -0
- package/dist/progress-BXzlVbIp.js +29 -0
- package/dist/progress-DJBd9Rb9.cjs +1 -0
- package/dist/{progress-D-OTpEav.js → progress-Hc2vxoCs.js} +2 -2
- package/dist/protocol-B5A2uom4.cjs +1 -0
- package/dist/protocol-BaiWjq5w.js +90 -0
- package/dist/record-bindings-B86Sur_y.cjs +1 -0
- package/dist/{record-bindings-Do_b3h4V.js → record-bindings-D4TuMzHs.js} +10 -11
- package/dist/{region-binding-workflow-BMhK_TjP.js → region-binding-workflow-BNasF5kz.js} +2 -2
- package/dist/{region-binding-workflow-DIYJdCUr.cjs → region-binding-workflow-O2Cni3mF.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/rich-text-layout-ALlMoYOG.cjs +3 -0
- package/dist/rich-text-layout-Ct5WrY1g.js +102 -0
- package/dist/runtime-DakRXui3.js +170 -0
- package/dist/runtime-dL5ygIfa.cjs +1 -0
- package/dist/sbom.cdx.json +2 -2
- package/dist/server/node.d.cts +132 -1
- package/dist/server/node.d.ts +132 -1
- package/dist/server-node.cjs +5 -1
- package/dist/server-node.js +5177 -463
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +182 -2
- package/dist/server.d.ts +182 -2
- package/dist/server.js +918 -833
- 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-catalog-Dua8h9ZA.cjs +1 -0
- package/dist/{template-catalog-j2B1MJlL.js → template-catalog-wT1fNeAP.js} +10 -10
- package/dist/{template-fragments-DcKeiylI.cjs → template-fragments-BajTajb4.cjs} +1 -1
- package/dist/{template-fragments-BGbQLGlV.js → template-fragments-DmX5XK4N.js} +2 -2
- package/dist/template-registry-CpysHAxy.cjs +1 -0
- package/dist/{template-registry-BtaKPELV.js → template-registry-u11fPd8D.js} +389 -321
- package/dist/{textwrap-DE1kgcJB.js → textwrap-BEIg2w8y.js} +1 -1
- package/dist/textwrap-BI-yJ6Wt.cjs +4 -0
- package/dist/{tree-BX380Rr7.cjs → tree-CLpxYbKa.cjs} +1 -1
- package/dist/{tree-CjVZLRw7.js → tree-DNJorJUf.js} +1 -1
- package/dist/vue/async.d.cts +174 -2
- package/dist/vue/async.d.ts +174 -2
- package/dist/vue/index.d.cts +218 -3
- package/dist/vue/index.d.ts +218 -3
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +7 -7
- package/dist/{workbook-session-BvToI-Fd.js → workbook-session-B8pNW24X.js} +153 -140
- package/dist/{workbook-session-Bjv1YCRK.cjs → workbook-session-DN5LSA5C.cjs} +12 -12
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +84 -1
- package/dist/worker.d.ts +84 -1
- package/dist/worker.js +12 -157
- package/dist/xlsx-node.cjs +33 -33
- package/dist/xlsx-node.js +1282 -1289
- package/dist/xlsx.cjs +4 -3
- package/dist/xlsx.d.cts +90 -2
- package/dist/xlsx.d.ts +90 -2
- package/dist/xlsx.js +279 -259
- package/package.json +6 -3
- package/dist/ReportPreview-ChV19HBp.js +0 -4619
- package/dist/ReportPreview-DbLvvOUT.cjs +0 -6
- package/dist/RuleEditor-C_Clasvd.js +0 -2037
- package/dist/RuleEditor-XhGHK8DE.cjs +0 -1
- package/dist/assets-B9ImAi6_.cjs +0 -1
- package/dist/assets-DEaz4qsp.js +0 -124
- package/dist/batch-BaP6pWDE.cjs +0 -1
- package/dist/batch-CGyt-b2W.js +0 -273
- package/dist/capabilities-CAh2Nrue.cjs +0 -1
- package/dist/capabilities-DskCHs3V.js +0 -69
- package/dist/computed-C-4C2S5h.js +0 -521
- package/dist/computed-CGV2a809.cjs +0 -1
- package/dist/config-D10us76d.cjs +0 -1
- package/dist/data-explanation-B8MZRYVS.js +0 -16
- package/dist/data-explanation-DE55G30w.cjs +0 -1
- package/dist/dataset-BkRmwgeJ.cjs +0 -1
- package/dist/dataset-H5pFuQGU.js +0 -121
- package/dist/defaults-DXhiM1ZD.js +0 -10
- package/dist/defaults-xhmcLLrf.cjs +0 -1
- package/dist/designer-2bDlcNXQ.js +0 -5136
- package/dist/designer-BT7XCdbW.cjs +0 -2
- package/dist/drill-DYTxuL3A.cjs +0 -1
- package/dist/grid-strokes-Cr7DwUux.cjs +0 -1
- package/dist/grid-strokes-DyyG1q_o.js +0 -53
- package/dist/json-snapshot-DFb2eWkf.js +0 -1416
- package/dist/json-snapshot-WWSGlaHG.cjs +0 -2
- package/dist/matrix-CGRGkn5s.js +0 -112
- package/dist/matrix-gEO7ZM_u.cjs +0 -1
- package/dist/prepared-CFy9B75C.cjs +0 -1
- package/dist/prepared-ajM-H-9B.js +0 -69
- package/dist/record-bindings-By_UKZ2g.cjs +0 -1
- package/dist/render-plan-7xpGrCEl.cjs +0 -1
- package/dist/render-plan-Ck6koX9L.js +0 -13
- package/dist/sha256-ArEYjaTI.cjs +0 -1
- package/dist/sha256-DPEuJ3nh.js +0 -155
- package/dist/style-CQ1PK8ZB.js +0 -67
- package/dist/style-UgIJSA1F.cjs +0 -1
- package/dist/template-catalog-FJE_c9Qe.cjs +0 -1
- package/dist/template-registry-Co1zPq5e.cjs +0 -1
- package/dist/textwrap-CWHyzkBH.cjs +0 -4
package/dist/vue/index.d.cts
CHANGED
|
@@ -74,6 +74,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
74
74
|
type: PropType<ReportOutputOptions>;
|
|
75
75
|
default: undefined;
|
|
76
76
|
};
|
|
77
|
+
exportExecution: {
|
|
78
|
+
type: PropType<ReportExportExecutionOptions>;
|
|
79
|
+
default: undefined;
|
|
80
|
+
};
|
|
77
81
|
assets: {
|
|
78
82
|
type: PropType<AssetRenderOptions>;
|
|
79
83
|
default: undefined;
|
|
@@ -244,6 +248,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
244
248
|
type: PropType<ReportOutputOptions>;
|
|
245
249
|
default: undefined;
|
|
246
250
|
};
|
|
251
|
+
exportExecution: {
|
|
252
|
+
type: PropType<ReportExportExecutionOptions>;
|
|
253
|
+
default: undefined;
|
|
254
|
+
};
|
|
247
255
|
assets: {
|
|
248
256
|
type: PropType<AssetRenderOptions>;
|
|
249
257
|
default: undefined;
|
|
@@ -325,6 +333,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
325
333
|
showPdfWindow: boolean;
|
|
326
334
|
showSettings: boolean;
|
|
327
335
|
showParams: boolean;
|
|
336
|
+
exportExecution: ReportExportExecutionOptions;
|
|
328
337
|
drill: ReportDrillOptions;
|
|
329
338
|
loadParamOptions: ReportParamOptionsLoader;
|
|
330
339
|
printOptions: ReportPrintOptions;
|
|
@@ -489,13 +498,42 @@ declare interface AssetRenderBudget {
|
|
|
489
498
|
/** Wall-clock budget, including adapters that ignore AbortSignal. Default 30 seconds. */
|
|
490
499
|
maxDurationMs?: number;
|
|
491
500
|
}
|
|
501
|
+
declare interface AssetRenderBudget_2 {
|
|
502
|
+
/** Maximum newly rendered assets, default 1000. Existing imageData is kept unchanged. */
|
|
503
|
+
maxAssets?: number;
|
|
504
|
+
/** Maximum image payload bytes per new asset, default 32 MiB. */
|
|
505
|
+
maxImageBytes?: number;
|
|
506
|
+
/** Maximum total image payload bytes for new assets, default 128 MiB. */
|
|
507
|
+
maxTotalImageBytes?: number;
|
|
508
|
+
/** Wall-clock budget, including adapters that ignore AbortSignal. Default 30 seconds. */
|
|
509
|
+
maxDurationMs?: number;
|
|
510
|
+
}
|
|
492
511
|
declare interface AssetRenderOptions extends OutputDiagnosticOptions, ImageMediaOptions {
|
|
493
512
|
assetRenderers?: Partial<Record<ImageComponentKind, ComponentImageRenderer>>;
|
|
513
|
+
/** Explicit id/version registry; unbound components continue using assetRenderers by kind. */
|
|
514
|
+
assetRegistry?: ComponentAssetRegistry;
|
|
494
515
|
assetBudget?: AssetRenderBudget;
|
|
495
516
|
/** Default throw prevents an incomplete export; placeholder retains the component and emits diagnostics. */
|
|
496
517
|
assetFailure?: "throw" | "placeholder";
|
|
497
518
|
signal?: AbortSignal;
|
|
498
519
|
}
|
|
520
|
+
declare interface AssetRenderOptions_2 extends OutputDiagnosticOptions_2, ImageMediaOptions_2 {
|
|
521
|
+
assetRenderers?: Partial<Record<ImageComponentKind_2, ComponentImageRenderer_2>>;
|
|
522
|
+
/** Explicit id/version registry; unbound components continue using assetRenderers by kind. */
|
|
523
|
+
assetRegistry?: ComponentAssetRegistry_2;
|
|
524
|
+
assetBudget?: AssetRenderBudget_2;
|
|
525
|
+
/** Default throw prevents an incomplete export; placeholder retains the component and emits diagnostics. */
|
|
526
|
+
assetFailure?: "throw" | "placeholder";
|
|
527
|
+
signal?: AbortSignal;
|
|
528
|
+
}
|
|
529
|
+
declare interface BrowserReportWorker {
|
|
530
|
+
postMessage(value: unknown, transfer?: Transferable[]): void;
|
|
531
|
+
terminate(): void;
|
|
532
|
+
addEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
533
|
+
addEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
534
|
+
removeEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
535
|
+
removeEventListener(type: "error" | "messageerror", listener: (event: Event) => void): void;
|
|
536
|
+
}
|
|
499
537
|
/** 供 HTML/Word 导出的完整文档;打印路径逐页渲染,避免预先生成所有页。 */
|
|
500
538
|
export declare function buildPrintDocument(p: RenderPlan, options?: ReportPrintOptions): PrintHtmlResult;
|
|
501
539
|
export declare function buildWordHtml(p: RenderPlan): {
|
|
@@ -601,6 +639,14 @@ declare type ColumnFormat_3 = {
|
|
|
601
639
|
kind: "date";
|
|
602
640
|
pattern?: string;
|
|
603
641
|
};
|
|
642
|
+
declare interface ComponentAssetRegistry {
|
|
643
|
+
rendererFor(component: Readonly<PlanComponent>): ComponentImageRenderer | undefined;
|
|
644
|
+
hasExtension(id: string, version: string, kind: string): boolean;
|
|
645
|
+
}
|
|
646
|
+
declare interface ComponentAssetRegistry_2 {
|
|
647
|
+
rendererFor(component: Readonly<PlanComponent_2>): ComponentImageRenderer_2 | undefined;
|
|
648
|
+
hasExtension(id: string, version: string, kind: string): boolean;
|
|
649
|
+
}
|
|
604
650
|
/** A literal own field of the current label record; expressions and paths are not evaluated. */
|
|
605
651
|
declare interface ComponentBinding {
|
|
606
652
|
field: string;
|
|
@@ -632,7 +678,15 @@ declare interface ComponentImageContext {
|
|
|
632
678
|
readonly componentPath: readonly number[];
|
|
633
679
|
readonly signal: AbortSignal;
|
|
634
680
|
}
|
|
681
|
+
declare interface ComponentImageContext_2 {
|
|
682
|
+
readonly component: Readonly<PlanComponent_2>;
|
|
683
|
+
readonly pageIndex: number;
|
|
684
|
+
readonly componentIndex: number;
|
|
685
|
+
readonly componentPath: readonly number[];
|
|
686
|
+
readonly signal: AbortSignal;
|
|
687
|
+
}
|
|
635
688
|
declare type ComponentImageRenderer = (context: ComponentImageContext) => string | Promise<string>;
|
|
689
|
+
declare type ComponentImageRenderer_2 = (context: ComponentImageContext_2) => string | Promise<string>;
|
|
636
690
|
declare type ComponentKind = "text" | "image" | "barcode" | "qrcode" | "chart" | "line" | "rect" | "ellipse";
|
|
637
691
|
declare type ComponentKind_2 = "text" | "image" | "barcode" | "qrcode" | "chart" | "line" | "rect" | "ellipse";
|
|
638
692
|
declare type ComponentKind_3 = "text" | "image" | "barcode" | "qrcode" | "chart" | "line" | "rect" | "ellipse";
|
|
@@ -907,6 +961,8 @@ declare interface FormulaAdapter {
|
|
|
907
961
|
}): unknown;
|
|
908
962
|
}
|
|
909
963
|
declare interface GridCell {
|
|
964
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
965
|
+
richParagraphs?: RichParagraph[];
|
|
910
966
|
text?: string;
|
|
911
967
|
rawText?: string;
|
|
912
968
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -930,6 +986,8 @@ declare interface GridCell {
|
|
|
930
986
|
style?: ComponentStyle;
|
|
931
987
|
}
|
|
932
988
|
declare interface GridCell_2 {
|
|
989
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
990
|
+
richParagraphs?: RichParagraph_2[];
|
|
933
991
|
text?: string;
|
|
934
992
|
rawText?: string;
|
|
935
993
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -953,6 +1011,8 @@ declare interface GridCell_2 {
|
|
|
953
1011
|
style?: ComponentStyle_2;
|
|
954
1012
|
}
|
|
955
1013
|
declare interface GridCell_3 {
|
|
1014
|
+
/** Styled cell content; text remains a plain-text fallback. Imported rich cells are read-only. */
|
|
1015
|
+
richParagraphs?: RichParagraph_3[];
|
|
956
1016
|
text?: string;
|
|
957
1017
|
rawText?: string;
|
|
958
1018
|
/** 原始值,仅供 Excel raw 模式消费;不参与预览、分页与 PDF 绘制。 */
|
|
@@ -984,6 +1044,7 @@ export declare type HostRequest = (config: {
|
|
|
984
1044
|
signal?: AbortSignal;
|
|
985
1045
|
}) => Promise<unknown>;
|
|
986
1046
|
declare type ImageComponentKind = "image" | "chart" | "barcode" | "qrcode";
|
|
1047
|
+
declare type ImageComponentKind_2 = "image" | "chart" | "barcode" | "qrcode";
|
|
987
1048
|
/** Bounded binary image inspection shared by PDF, Excel and template import. No decoder is loaded. */
|
|
988
1049
|
declare interface ImageMediaOptions {
|
|
989
1050
|
maxImageBytes?: number;
|
|
@@ -1422,6 +1483,8 @@ export declare interface MachReportController {
|
|
|
1422
1483
|
}
|
|
1423
1484
|
/** defaults 层可配置项(全部可选,均有内置缺省) */
|
|
1424
1485
|
export declare interface MachReportDefaults {
|
|
1486
|
+
/** Small encodes stay local; optional Worker isolation uses the same prepared plan for large output. */
|
|
1487
|
+
exportExecution?: ReportExportExecutionOptions;
|
|
1425
1488
|
drill?: ReportDrillOptions;
|
|
1426
1489
|
loadParamOptions?: ReportParamOptionsLoader;
|
|
1427
1490
|
printOptions?: ReportPrintOptions;
|
|
@@ -1778,6 +1841,57 @@ export declare interface MachReportToolbarOptions {
|
|
|
1778
1841
|
/** 未传时显示全部已有出口;空数组表示不提供导出工具。 */
|
|
1779
1842
|
exportFormats?: ReportExportFormat[];
|
|
1780
1843
|
}
|
|
1844
|
+
declare interface MatrixAxisOptions {
|
|
1845
|
+
/** Display names in the same outer-to-inner order as the dimension fields. */
|
|
1846
|
+
labels?: readonly string[];
|
|
1847
|
+
/** Per-level sibling order; omitted levels retain first-seen order. */
|
|
1848
|
+
sort?: readonly MatrixDimensionOrder[];
|
|
1849
|
+
/** One-based prefix depths. Leaf depths are not subtotals. */
|
|
1850
|
+
subtotals?: readonly number[];
|
|
1851
|
+
}
|
|
1852
|
+
declare interface MatrixAxisOptions_2 {
|
|
1853
|
+
/** Display names in the same outer-to-inner order as the dimension fields. */
|
|
1854
|
+
labels?: readonly string[];
|
|
1855
|
+
/** Per-level sibling order; omitted levels retain first-seen order. */
|
|
1856
|
+
sort?: readonly MatrixDimensionOrder_2[];
|
|
1857
|
+
/** One-based prefix depths. Leaf depths are not subtotals. */
|
|
1858
|
+
subtotals?: readonly number[];
|
|
1859
|
+
}
|
|
1860
|
+
declare interface MatrixAxisOptions_3 {
|
|
1861
|
+
/** Display names in the same outer-to-inner order as the dimension fields. */
|
|
1862
|
+
labels?: readonly string[];
|
|
1863
|
+
/** Per-level sibling order; omitted levels retain first-seen order. */
|
|
1864
|
+
sort?: readonly MatrixDimensionOrder_3[];
|
|
1865
|
+
/** One-based prefix depths. Leaf depths are not subtotals. */
|
|
1866
|
+
subtotals?: readonly number[];
|
|
1867
|
+
}
|
|
1868
|
+
declare type MatrixDimensionOrder = "source" | "asc" | "desc";
|
|
1869
|
+
declare type MatrixDimensionOrder_2 = "source" | "asc" | "desc";
|
|
1870
|
+
declare type MatrixDimensionOrder_3 = "source" | "asc" | "desc";
|
|
1871
|
+
declare interface MatrixHierarchyOptions {
|
|
1872
|
+
row?: MatrixAxisOptions;
|
|
1873
|
+
column?: MatrixAxisOptions;
|
|
1874
|
+
/** Only null/missing values use this label; empty strings and zero stay distinct. */
|
|
1875
|
+
emptyLabel?: string;
|
|
1876
|
+
subtotalLabel?: string;
|
|
1877
|
+
totalLabel?: string;
|
|
1878
|
+
}
|
|
1879
|
+
declare interface MatrixHierarchyOptions_2 {
|
|
1880
|
+
row?: MatrixAxisOptions_2;
|
|
1881
|
+
column?: MatrixAxisOptions_2;
|
|
1882
|
+
/** Only null/missing values use this label; empty strings and zero stay distinct. */
|
|
1883
|
+
emptyLabel?: string;
|
|
1884
|
+
subtotalLabel?: string;
|
|
1885
|
+
totalLabel?: string;
|
|
1886
|
+
}
|
|
1887
|
+
declare interface MatrixHierarchyOptions_3 {
|
|
1888
|
+
row?: MatrixAxisOptions_3;
|
|
1889
|
+
column?: MatrixAxisOptions_3;
|
|
1890
|
+
/** Only null/missing values use this label; empty strings and zero stay distinct. */
|
|
1891
|
+
emptyLabel?: string;
|
|
1892
|
+
subtotalLabel?: string;
|
|
1893
|
+
totalLabel?: string;
|
|
1894
|
+
}
|
|
1781
1895
|
declare interface MatrixTableOptions {
|
|
1782
1896
|
rowFields: readonly string[];
|
|
1783
1897
|
columnFields: readonly string[];
|
|
@@ -1792,6 +1906,10 @@ declare interface MatrixTableOptions {
|
|
|
1792
1906
|
maxColumns?: number;
|
|
1793
1907
|
maxInputRows?: number;
|
|
1794
1908
|
maxCells?: number;
|
|
1909
|
+
/** Opt-in hierarchical dimensions, physical merged headers and prefix subtotals. */
|
|
1910
|
+
hierarchy?: MatrixHierarchyOptions;
|
|
1911
|
+
/** Hierarchical aggregate work, checked before measure reads; default 10 million updates. */
|
|
1912
|
+
maxAggregateUpdates?: number;
|
|
1795
1913
|
}
|
|
1796
1914
|
declare interface MatrixTableOptions_2 {
|
|
1797
1915
|
rowFields: readonly string[];
|
|
@@ -1807,6 +1925,10 @@ declare interface MatrixTableOptions_2 {
|
|
|
1807
1925
|
maxColumns?: number;
|
|
1808
1926
|
maxInputRows?: number;
|
|
1809
1927
|
maxCells?: number;
|
|
1928
|
+
/** Opt-in hierarchical dimensions, physical merged headers and prefix subtotals. */
|
|
1929
|
+
hierarchy?: MatrixHierarchyOptions_2;
|
|
1930
|
+
/** Hierarchical aggregate work, checked before measure reads; default 10 million updates. */
|
|
1931
|
+
maxAggregateUpdates?: number;
|
|
1810
1932
|
}
|
|
1811
1933
|
declare interface MatrixTableOptions_3 {
|
|
1812
1934
|
rowFields: readonly string[];
|
|
@@ -1822,6 +1944,10 @@ declare interface MatrixTableOptions_3 {
|
|
|
1822
1944
|
maxColumns?: number;
|
|
1823
1945
|
maxInputRows?: number;
|
|
1824
1946
|
maxCells?: number;
|
|
1947
|
+
/** Opt-in hierarchical dimensions, physical merged headers and prefix subtotals. */
|
|
1948
|
+
hierarchy?: MatrixHierarchyOptions_3;
|
|
1949
|
+
/** Hierarchical aggregate work, checked before measure reads; default 10 million updates. */
|
|
1950
|
+
maxAggregateUpdates?: number;
|
|
1825
1951
|
}
|
|
1826
1952
|
export declare function normalizeReportIds(reportId: ReportIdInput): string[];
|
|
1827
1953
|
/** Workers preserve stable error codes, not JavaScript class identity. Only known codes cross the UI boundary. */
|
|
@@ -1836,6 +1962,11 @@ declare interface OutputDiagnostic {
|
|
|
1836
1962
|
componentPath?: readonly number[];
|
|
1837
1963
|
kind: string;
|
|
1838
1964
|
nid?: string;
|
|
1965
|
+
/** Declarative extension identity only; no property values or business binding data enter diagnostics. */
|
|
1966
|
+
extension?: {
|
|
1967
|
+
id: string;
|
|
1968
|
+
version: string;
|
|
1969
|
+
};
|
|
1839
1970
|
message: string;
|
|
1840
1971
|
}
|
|
1841
1972
|
declare interface OutputDiagnostic_2 {
|
|
@@ -1848,6 +1979,11 @@ declare interface OutputDiagnostic_2 {
|
|
|
1848
1979
|
componentPath?: readonly number[];
|
|
1849
1980
|
kind: string;
|
|
1850
1981
|
nid?: string;
|
|
1982
|
+
/** Declarative extension identity only; no property values or business binding data enter diagnostics. */
|
|
1983
|
+
extension?: {
|
|
1984
|
+
id: string;
|
|
1985
|
+
version: string;
|
|
1986
|
+
};
|
|
1851
1987
|
message: string;
|
|
1852
1988
|
}
|
|
1853
1989
|
declare interface OutputDiagnosticOptions extends OutputTaskOptions {
|
|
@@ -1909,6 +2045,8 @@ export declare interface PdfExporter {
|
|
|
1909
2045
|
}): Promise<Uint8Array>;
|
|
1910
2046
|
/** 可选轻量字体检查;旧版自定义导出函数无需实现。取消时拒绝 AbortError。 */
|
|
1911
2047
|
checkFont?: (signal?: AbortSignal) => Promise<PdfFontCheckResult>;
|
|
2048
|
+
/** Optional resource preparation for isolated encoding; custom exporters without it keep their own pipeline. */
|
|
2049
|
+
prepare?: (signal?: AbortSignal) => Promise<ReportPdfFontOptions>;
|
|
1912
2050
|
}
|
|
1913
2051
|
export declare interface PdfFontCheckResult {
|
|
1914
2052
|
status: PdfFontStatus;
|
|
@@ -2110,6 +2248,16 @@ declare interface PlanTableFragment_3 {
|
|
|
2110
2248
|
}
|
|
2111
2249
|
/** Bounded concurrency, one stage timeout, and cancellation even for a hanging decoder. */
|
|
2112
2250
|
export declare function preparePrintResources(doc: Document, options?: ReportPrintOptions, signal?: AbortSignal, base?: string): Promise<void>;
|
|
2251
|
+
declare interface PreviewEncoding {
|
|
2252
|
+
pdf(plan: RenderPlan, exporter: PdfExporter, warning: (message: string) => void, task?: PreviewEncodingTask): Promise<Uint8Array>;
|
|
2253
|
+
xlsx(plan: RenderPlan, options: XlsxRenderOptions, task: PreviewEncodingTask): Promise<{
|
|
2254
|
+
buffer: Uint8Array;
|
|
2255
|
+
warnings: string[];
|
|
2256
|
+
}>;
|
|
2257
|
+
}
|
|
2258
|
+
declare type PreviewEncodingTask = OutputTaskOptions_2 & {
|
|
2259
|
+
onDiagnostic?: (entry: OutputDiagnostic) => void;
|
|
2260
|
+
};
|
|
2113
2261
|
export declare function printCalibration(options?: ReportPrintOptions): {
|
|
2114
2262
|
x: number;
|
|
2115
2263
|
y: number;
|
|
@@ -2462,8 +2610,36 @@ export declare interface ReportEmptyState {
|
|
|
2462
2610
|
title?: string;
|
|
2463
2611
|
description?: string;
|
|
2464
2612
|
}
|
|
2613
|
+
export declare interface ReportExportDecision {
|
|
2614
|
+
mode: "local" | "worker";
|
|
2615
|
+
reason: ReportExportDecisionReason;
|
|
2616
|
+
/** Lower bounds: traversal stops as soon as isolation is warranted. No font or image hashing. */
|
|
2617
|
+
estimate: {
|
|
2618
|
+
pages: number;
|
|
2619
|
+
cells: number;
|
|
2620
|
+
bytes: number;
|
|
2621
|
+
};
|
|
2622
|
+
hardCancellation: boolean;
|
|
2623
|
+
}
|
|
2624
|
+
declare type ReportExportDecisionReason = "small-task" | "threshold" | "scan-limit" | "explicit-local" | "explicit-worker" | "worker-unavailable" | "worker-start-failed" | "nonserializable-options";
|
|
2625
|
+
export declare interface ReportExportExecutionOptions {
|
|
2626
|
+
mode?: "auto" | "worker" | "local";
|
|
2627
|
+
/** A fresh bundler-managed module Worker for every call; never a shared worker. */
|
|
2628
|
+
workerFactory?: () => BrowserReportWorker;
|
|
2629
|
+
thresholds?: ReportExportThresholds;
|
|
2630
|
+
/** Auto only. Startup unavailability may use local; encoding failures never retry. */
|
|
2631
|
+
fallback?: "local" | "error";
|
|
2632
|
+
timeoutMs?: number;
|
|
2633
|
+
budget?: ReportRuntimeBudget;
|
|
2634
|
+
onDecision?: (decision: ReportExportDecision) => void;
|
|
2635
|
+
}
|
|
2465
2636
|
/** 输出能力仍由宿主授权;工具偏好只决定当前预览实例的可见与启用状态。 */
|
|
2466
2637
|
export declare type ReportExportFormat = "html" | "pdf" | "xlsx" | "png" | "word";
|
|
2638
|
+
export declare interface ReportExportThresholds {
|
|
2639
|
+
cells?: number;
|
|
2640
|
+
pages?: number;
|
|
2641
|
+
bytes?: number;
|
|
2642
|
+
}
|
|
2467
2643
|
declare type ReportExpression = {
|
|
2468
2644
|
field: string;
|
|
2469
2645
|
} | {
|
|
@@ -2514,7 +2690,13 @@ declare interface ReportFetchInput extends ReportTaskMonitoring {
|
|
|
2514
2690
|
/** Index scopes diagnostics when reports share datasets or a report ID is repeated. */
|
|
2515
2691
|
onQueryResult?: (reportId: string, result: ReportQueryResult, reportIndex?: number) => void;
|
|
2516
2692
|
}
|
|
2517
|
-
declare
|
|
2693
|
+
declare type ReportFieldAggregation = "sum" | "avg" | "min" | "max" | "count" | "none";
|
|
2694
|
+
declare interface ReportFieldCalculation {
|
|
2695
|
+
/** Business-owned explanation, never executable JavaScript or an inferred business formula. */
|
|
2696
|
+
description: string;
|
|
2697
|
+
dependsOn: readonly string[];
|
|
2698
|
+
}
|
|
2699
|
+
declare interface ReportFieldContract extends ReportFieldSemantics {
|
|
2518
2700
|
field: string;
|
|
2519
2701
|
label?: string;
|
|
2520
2702
|
type: "text" | "number" | "boolean" | "date" | "decimal";
|
|
@@ -2528,6 +2710,16 @@ declare interface ReportFieldContract {
|
|
|
2528
2710
|
semanticRole?: "identifier" | "dimension" | "measure" | "date" | "text";
|
|
2529
2711
|
unit?: string;
|
|
2530
2712
|
}
|
|
2713
|
+
declare interface ReportFieldSemantics {
|
|
2714
|
+
description?: string;
|
|
2715
|
+
/** Explicit meaning of null/missing; does not convert blanks into zero. */
|
|
2716
|
+
missingMeaning?: string;
|
|
2717
|
+
/** Recommended aggregation; none marks non-additive measures such as ratios. No aggregation runs implicitly. */
|
|
2718
|
+
aggregation?: ReportFieldAggregation;
|
|
2719
|
+
/** Shared presentation only; raw values and calculation precision remain unchanged. */
|
|
2720
|
+
format?: ColumnFormat;
|
|
2721
|
+
calculation?: ReportFieldCalculation;
|
|
2722
|
+
}
|
|
2531
2723
|
export declare interface ReportFieldTarget {
|
|
2532
2724
|
field: string;
|
|
2533
2725
|
datasetId?: string;
|
|
@@ -2707,12 +2899,23 @@ export declare const ReportParamPanel: DefineComponent<__VLS_Props_3, {
|
|
|
2707
2899
|
onQuery?: (() => any) | undefined;
|
|
2708
2900
|
"onUpdate:modelValue"?: ((value: Record<string, string>) => any) | undefined;
|
|
2709
2901
|
}>, {
|
|
2902
|
+
issues: readonly ReportParamIssue[];
|
|
2710
2903
|
disabled: boolean;
|
|
2711
2904
|
loadOptions: ReportParamOptionsLoader;
|
|
2712
|
-
issues: readonly ReportParamIssue[];
|
|
2713
2905
|
showActions: boolean;
|
|
2714
2906
|
showTitle: boolean;
|
|
2715
2907
|
}>;
|
|
2908
|
+
/** Licensed local font bytes; never downloaded implicitly by the runtime. */
|
|
2909
|
+
declare interface ReportPdfFontOptions {
|
|
2910
|
+
customFontBytes?: Uint8Array | ArrayBuffer;
|
|
2911
|
+
customFontName?: string;
|
|
2912
|
+
customFontFaces?: {
|
|
2913
|
+
regular: Uint8Array | ArrayBuffer;
|
|
2914
|
+
bold?: Uint8Array | ArrayBuffer;
|
|
2915
|
+
italic?: Uint8Array | ArrayBuffer;
|
|
2916
|
+
boldItalic?: Uint8Array | ArrayBuffer;
|
|
2917
|
+
};
|
|
2918
|
+
}
|
|
2716
2919
|
export declare interface ReportPreferencesAdapter {
|
|
2717
2920
|
load(key: string): Partial<ReportPreviewPreferences> | null | Promise<Partial<ReportPreviewPreferences> | null>;
|
|
2718
2921
|
save(key: string, value: Readonly<Partial<ReportPreviewPreferences>>): void | Promise<void>;
|
|
@@ -2811,6 +3014,15 @@ declare interface ReportQueryResult {
|
|
|
2811
3014
|
diagnostics?: ReportDiagnostic[];
|
|
2812
3015
|
}
|
|
2813
3016
|
declare type ReportRegistry = Record<string, ReportDefinition>;
|
|
3017
|
+
declare interface ReportRuntimeBudget {
|
|
3018
|
+
maxRows?: number;
|
|
3019
|
+
maxPages?: number;
|
|
3020
|
+
maxCells?: number;
|
|
3021
|
+
maxOutputBytes?: number;
|
|
3022
|
+
/** Bound the plain JSON snapshot accepted by exportPrepared (default 64 MB). */
|
|
3023
|
+
maxPreparedBytes?: number;
|
|
3024
|
+
maxDurationMs?: number;
|
|
3025
|
+
}
|
|
2814
3026
|
declare interface ReportSaveInput extends ReportLoadContext {
|
|
2815
3027
|
requestId: string;
|
|
2816
3028
|
expectedRevision?: string;
|
|
@@ -2928,6 +3140,7 @@ declare type ReportValueState_2 = "missing-source" | "not-applicable" | "not-cal
|
|
|
2928
3140
|
export declare function resolveCalculationMessages(messages: Partial<ReportCalculationMessages>): ReportCalculationMessages;
|
|
2929
3141
|
export declare function resolveConfig(config: MachReportConfig | null | undefined, presetName?: string): ResolvedConfig;
|
|
2930
3142
|
export declare type ResolvedConfig = Required<Pick<MachReportDefaults, "showExport" | "showPrint" | "showPdfWindow" | "showSettings" | "showParams" | "gapPx">> & {
|
|
3143
|
+
exportExecution?: ReportExportExecutionOptions;
|
|
2931
3144
|
drill?: ReportDrillOptions;
|
|
2932
3145
|
loadParamOptions?: ReportParamOptionsLoader;
|
|
2933
3146
|
pdfFontUrl: string;
|
|
@@ -3187,6 +3400,8 @@ export declare function usePrintExport(plan: Ref<RenderPlan | null>, hooks: {
|
|
|
3187
3400
|
/** Flush the active editor and await source-backed calculation/persistence before capturing the output plan. */
|
|
3188
3401
|
beforeOutput?: () => boolean | Promise<boolean>;
|
|
3189
3402
|
getPdfExporter: () => PdfExporter;
|
|
3403
|
+
/** Optional prepared-plan encoders; legacy callers keep their injected exporter unchanged. */
|
|
3404
|
+
encoding?: PreviewEncoding;
|
|
3190
3405
|
onError: (message: string, code?: string) => void;
|
|
3191
3406
|
onWarning?: (message: string) => void;
|
|
3192
3407
|
onBusy?: (format: string | null) => void;
|
|
@@ -3247,7 +3462,7 @@ declare type XlsxImageOptions = ImageMediaOptions_2;
|
|
|
3247
3462
|
* 目标是"财务能直接用的对账表"而非复刻版面)
|
|
3248
3463
|
* - 原生 richText 保留基础字形;未支持组件、段落专有排版与单元格嵌套组件计入 diagnostics / warnings
|
|
3249
3464
|
*/
|
|
3250
|
-
declare interface XlsxRenderOptions extends
|
|
3465
|
+
declare interface XlsxRenderOptions extends AssetRenderOptions_2, XlsxImageOptions {
|
|
3251
3466
|
/** 工作表命名(连续表默认使用标题,其余默认 "Sheet1" 起序)。 */
|
|
3252
3467
|
sheetName?: (sheetIndex: number) => string;
|
|
3253
3468
|
/** auto 默认将 wide 逻辑表合并为连续 Sheet;pages 保留逐页;continuous 要求明确的表来源。 */
|