@agile-team/mach-report 2.23.0 → 2.24.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 +9 -2
- package/dist/ExcelBindingWizard-BV12hGiK.cjs +1 -0
- package/dist/ExcelBindingWizard-Cy_lPjWV.js +1486 -0
- package/dist/ParamEditor-DenKjvKu.cjs +1 -0
- package/dist/ParamEditor-PyOqHzzw.js +750 -0
- package/dist/ReportBatchPanel-8EFtMrKk.js +351 -0
- package/dist/ReportBatchPanel-pQ6d0yqJ.cjs +1 -0
- package/dist/ReportLabelStudio-B_KF3Zc_.cjs +1 -0
- package/dist/ReportLabelStudio-HUeo2TsU.js +784 -0
- package/dist/ReportParamPanel-8xR85nz-.cjs +1 -0
- package/dist/{ReportParamPanel-Dgmqro1Y.js → ReportParamPanel-DA-YpkvC.js} +342 -307
- package/dist/ReportPreview-CyUXJSVX.cjs +6 -0
- package/dist/ReportPreview-_wTJnsG1.js +7120 -0
- package/dist/ReportTemplateLibrary-CjArKxRG.cjs +1 -0
- package/dist/ReportTemplateLibrary-DH8jl9IF.js +312 -0
- package/dist/RuleEditor-Bmj98oC4.cjs +1 -0
- package/dist/RuleEditor-GDydlEHz.js +2354 -0
- package/dist/TemplateOutlinePanel-B554_qk1.cjs +1 -0
- package/dist/TemplateOutlinePanel-DjPqzU9h.js +97 -0
- package/dist/TemplateReusePanel-D0628OYc.cjs +1 -0
- package/dist/TemplateReusePanel-DtYbCN7U.js +389 -0
- package/dist/TemplateReviewPanel-CSwvCz3f.cjs +1 -0
- package/dist/TemplateReviewPanel-D_FR4ISq.js +602 -0
- package/dist/artifact-integrity.json +94 -94
- package/dist/assets-B4AJIOTB.cjs +1 -0
- package/dist/assets-D0FbszhB.js +137 -0
- package/dist/{auto-CTIJ6PnR.js → auto-BksreoKc.js} +5 -5
- package/dist/auto-C3mGqzJ8.cjs +1 -0
- package/dist/capabilities-CTwlcl8q.cjs +1 -0
- package/dist/capabilities-lqDEZSq5.js +121 -0
- package/dist/data-bar-2NLRzOCQ.cjs +1 -0
- package/dist/{data-bar-IkI6VvMQ.js → data-bar-BnGtnJ82.js} +1 -1
- package/dist/designer-BNf7NWd6.js +7589 -0
- package/dist/designer-DWnZZ_ej.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +144 -4
- package/dist/designer.d.ts +144 -4
- package/dist/designer.js +6 -6
- package/dist/diagnostic-collector-1sqd7DQP.js +355 -0
- package/dist/diagnostic-collector-D3rlvxm3.cjs +1 -0
- package/dist/{dom-JWrchIre.js → dom-C90cTM6Y.js} +4 -4
- package/dist/dom-CxOkm_Sy.cjs +1 -0
- package/dist/{encoding-BefcaHdp.cjs → encoding-CkziAnZI.cjs} +1 -1
- package/dist/{encoding-CL6rXEkR.js → encoding-DSc9zv2F.js} +2 -2
- package/dist/{font-loader-Ga51c2VC.cjs → font-loader-D-znWNWS.cjs} +1 -1
- package/dist/{font-loader-BT5baV-o.js → font-loader-i7lZbqH_.js} +1 -1
- package/dist/{grid-strokes-EoY66L2f.js → grid-strokes-BPiV1WHe.js} +1 -1
- package/dist/grid-strokes-DYf-6DMl.cjs +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +46 -7
- package/dist/index.d.ts +46 -7
- package/dist/index.js +69 -68
- package/dist/{json-snapshot-OqkPyUk5.js → json-snapshot-BJWZNryO.js} +919 -791
- package/dist/json-snapshot-C7QZrRBf.cjs +2 -0
- package/dist/{pdf-aobetCsy.js → pdf-0_5XiTCx.js} +2499 -2492
- package/dist/{pdf-HiEeXe9H.cjs → pdf-DWuq6uxx.cjs} +31 -31
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.d.cts +18 -0
- package/dist/pdf.d.ts +18 -0
- package/dist/pdf.js +2 -2
- package/dist/{plugin-DeYYAL6F.js → plugin-B1ydqEmS.js} +1 -1
- package/dist/{plugin-BFANt-i8.cjs → plugin-BQBz2vLG.cjs} +1 -1
- package/dist/prefill-2p9wrpn9.cjs +1 -0
- package/dist/{prefill-Dk4C6S5R.js → prefill-Cuzh1wxf.js} +13 -13
- package/dist/prepared-CVbgO9KR.js +128 -0
- package/dist/prepared-DAwe8Il2.cjs +1 -0
- package/dist/protocol-BOri9qJL.js +105 -0
- package/dist/protocol-DD5dHSz-.cjs +1 -0
- package/dist/record-bindings-CAyM5tGg.cjs +1 -0
- package/dist/{record-bindings-DatJZv_e.js → record-bindings-fhav-NLG.js} +1 -1
- package/dist/{region-binding-workflow-DjrXuR1q.js → region-binding-workflow-Cm4mqhih.js} +2 -2
- package/dist/{region-binding-workflow-l7NGfagJ.cjs → region-binding-workflow-DWCUgjZl.cjs} +1 -1
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/rich-text-layout-X9YOz1JD.cjs +3 -0
- package/dist/{rich-text-layout-Ciwa6D2o.js → rich-text-layout-YJHtCWQI.js} +1 -1
- package/dist/runtime-BpSAgOw1.js +201 -0
- package/dist/runtime-Cd2UTnwe.cjs +1 -0
- package/dist/sbom.cdx.json +1 -1
- package/dist/server/node.d.cts +55 -7
- package/dist/server/node.d.ts +55 -7
- package/dist/server-node.cjs +5 -5
- package/dist/server-node.js +2710 -2418
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +47 -12
- package/dist/server.d.ts +47 -12
- package/dist/server.js +8 -8
- package/dist/style.css +1 -1
- package/dist/{template-catalog-CoT7jm_6.cjs → template-catalog--yBX169M.cjs} +1 -1
- package/dist/{template-catalog--cjxzgH7.js → template-catalog-Bu7s7ReF.js} +3 -3
- package/dist/template-fragments-5EzVn7bm.cjs +1 -0
- package/dist/{template-fragments-CPpGpQoz.js → template-fragments-Di2vDFnx.js} +2 -2
- package/dist/{template-registry-O0hNIOfB.js → template-registry-BCBF2b8j.js} +10 -10
- package/dist/template-registry-Bnh5aEYf.cjs +1 -0
- package/dist/textwrap-BPFxhpOw.cjs +4 -0
- package/dist/textwrap-CmVkhMhx.js +111 -0
- package/dist/vue/async.d.cts +104 -18
- package/dist/vue/async.d.ts +104 -18
- package/dist/vue/index.d.cts +134 -28
- package/dist/vue/index.d.ts +134 -28
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +192 -162
- package/dist/{workbook-session-C9ZmCBwY.js → workbook-session-B6P_-5a4.js} +2 -2
- package/dist/{workbook-session-C6-SrnCT.cjs → workbook-session-BnPK3T58.cjs} +1 -1
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +55 -7
- package/dist/worker.d.ts +55 -7
- package/dist/worker.js +4 -4
- package/dist/xlsx.cjs +4 -4
- package/dist/xlsx.d.cts +18 -1
- package/dist/xlsx.d.ts +18 -1
- package/dist/xlsx.js +279 -272
- package/package.json +1 -1
- package/dist/ExcelBindingWizard-D4FLind-.js +0 -1485
- package/dist/ExcelBindingWizard-D4RS5Bpg.cjs +0 -1
- package/dist/ParamEditor-C-6C9rd2.cjs +0 -1
- package/dist/ParamEditor-CASZt-Ma.js +0 -732
- package/dist/ReportBatchPanel-Bq7t8a5r.js +0 -350
- package/dist/ReportBatchPanel-YVj5IO5y.cjs +0 -1
- package/dist/ReportLabelStudio-Cqhita1b.cjs +0 -1
- package/dist/ReportLabelStudio-Dj7GXhuv.js +0 -783
- package/dist/ReportParamPanel-DZbFVmDL.cjs +0 -1
- package/dist/ReportPreview-DeWzG8jQ.js +0 -6257
- package/dist/ReportPreview-FFIryrIr.cjs +0 -6
- package/dist/ReportTemplateLibrary-BaWodmpm.cjs +0 -1
- package/dist/ReportTemplateLibrary-DdAAAD2I.js +0 -311
- package/dist/RuleEditor-D2UwQGF6.js +0 -2341
- package/dist/RuleEditor-DcT9xI1v.cjs +0 -1
- package/dist/TemplateOutlinePanel-CUHFFiNM.cjs +0 -1
- package/dist/TemplateOutlinePanel-DrT7XN0m.js +0 -96
- package/dist/TemplateReusePanel-4eejkNqi.js +0 -388
- package/dist/TemplateReusePanel-DZMyiX5I.cjs +0 -1
- package/dist/TemplateReviewPanel-BIhNLeNw.js +0 -592
- package/dist/TemplateReviewPanel-DnYImiXu.cjs +0 -1
- package/dist/assets-D2gHc4Mz.cjs +0 -1
- package/dist/assets-T_gDeFaz.js +0 -132
- package/dist/auto-4pK9HePf.cjs +0 -1
- package/dist/capabilities-DiBj4Qgl.cjs +0 -1
- package/dist/capabilities-pg7j7VLT.js +0 -106
- package/dist/data-bar-CeZuFmYl.cjs +0 -1
- package/dist/designer-DhrE7jzw.js +0 -7169
- package/dist/designer-IAZu6kBX.cjs +0 -2
- package/dist/dom-ChE5D-L-.cjs +0 -1
- package/dist/grid-strokes-Be24LGuV.cjs +0 -1
- package/dist/json-snapshot-1tvQNzQE.cjs +0 -2
- package/dist/prefill-DsUD5OoK.cjs +0 -1
- package/dist/prepared-DCIxhKFo.js +0 -94
- package/dist/prepared-Dv-XM3i1.cjs +0 -1
- package/dist/progress-ByiOxUD3.js +0 -250
- package/dist/progress-WomPRP3B.cjs +0 -1
- package/dist/protocol-B9YgfQ_d.cjs +0 -1
- package/dist/protocol-DxeUKGYG.js +0 -90
- package/dist/record-bindings-MBxbeBsi.cjs +0 -1
- package/dist/rich-text-layout-DK7A_a5r.cjs +0 -3
- package/dist/runtime-75Y5Oq5B.js +0 -171
- package/dist/runtime-DKlGd_D4.cjs +0 -1
- package/dist/template-fragments-GVjpew_q.cjs +0 -1
- package/dist/template-registry-DI59PXVK.cjs +0 -1
- package/dist/textwrap-BIjtEWmq.js +0 -110
- package/dist/textwrap-Cy7o1hIR.cjs +0 -4
package/dist/server/node.d.ts
CHANGED
|
@@ -97,6 +97,19 @@ export declare function createNodeAutoReportExporter(options?: Omit<ReportExport
|
|
|
97
97
|
/** 独立 worker_threads 适配器;worker 入口注册自己的模板/Provider,不把函数跨线程序列化。 */
|
|
98
98
|
export declare function createNodeReportExecutor(options: NodeReportExecutorOptions): ReportRuntimeExecutor;
|
|
99
99
|
|
|
100
|
+
/** Bounded detail window with exact occurrence totals. Unknown business codes beyond 128 buckets share `other`. */
|
|
101
|
+
declare interface DiagnosticSummary<T> {
|
|
102
|
+
readonly total: number;
|
|
103
|
+
readonly counts: Readonly<Record<string, number>>;
|
|
104
|
+
readonly entries: readonly T[];
|
|
105
|
+
readonly omitted: number;
|
|
106
|
+
/** Business value explanations form a separate presentation channel, including omitted locations. */
|
|
107
|
+
readonly explanations?: {
|
|
108
|
+
readonly total: number;
|
|
109
|
+
readonly counts: Readonly<Record<string, number>>;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
100
113
|
export declare interface FileReportDocumentStore extends ReportDocumentStore {
|
|
101
114
|
close(): Promise<void>;
|
|
102
115
|
}
|
|
@@ -171,6 +184,26 @@ export declare function openFileReportDocumentStore(options: FileReportDocumentS
|
|
|
171
184
|
/** Durable local store with one process owner; database adapters provide multi-instance atomic CAS. */
|
|
172
185
|
export declare function openFileReportJobStore(options: FileReportJobStoreOptions): Promise<FileReportJobStore>;
|
|
173
186
|
|
|
187
|
+
declare interface OutputDiagnostic {
|
|
188
|
+
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";
|
|
189
|
+
severity: "warning";
|
|
190
|
+
format: OutputFormat;
|
|
191
|
+
pageIndex: number;
|
|
192
|
+
componentIndex: number;
|
|
193
|
+
/** Nested grid child location as repeating [rowIndex, columnIndex, childIndex] triples. */
|
|
194
|
+
componentPath?: readonly number[];
|
|
195
|
+
kind: string;
|
|
196
|
+
nid?: string;
|
|
197
|
+
/** Declarative extension identity only; no property values or business binding data enter diagnostics. */
|
|
198
|
+
extension?: {
|
|
199
|
+
id: string;
|
|
200
|
+
version: string;
|
|
201
|
+
};
|
|
202
|
+
message: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
|
|
206
|
+
|
|
174
207
|
declare interface PlanComponent {
|
|
175
208
|
/** Template-only aggregate binding, expanded into shared primitives during layout. */
|
|
176
209
|
chartBinding?: ReportChartBinding;
|
|
@@ -245,6 +278,8 @@ declare interface PlanTableFragment {
|
|
|
245
278
|
declare interface PreparedReport {
|
|
246
279
|
plan: RenderPlan;
|
|
247
280
|
diagnostics: ReportDiagnostic[];
|
|
281
|
+
/** Present when an explicit diagnosticLimit bounds the detail array. Totals include omitted locations. */
|
|
282
|
+
diagnosticSummary?: DiagnosticSummary<ReportDiagnostic>;
|
|
248
283
|
stats: ReportRuntimeStats;
|
|
249
284
|
revisions: Record<string, {
|
|
250
285
|
revision?: string;
|
|
@@ -349,7 +384,7 @@ declare interface ReportDescription {
|
|
|
349
384
|
};
|
|
350
385
|
}
|
|
351
386
|
|
|
352
|
-
declare interface ReportDiagnostic {
|
|
387
|
+
declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
|
|
353
388
|
code: string;
|
|
354
389
|
message: string;
|
|
355
390
|
path?: string;
|
|
@@ -576,6 +611,15 @@ declare interface ReportPdfFontOptions {
|
|
|
576
611
|
};
|
|
577
612
|
}
|
|
578
613
|
|
|
614
|
+
/** One ordered query occurrence, shared by browser editing and Node preparation. */
|
|
615
|
+
declare interface ReportQuerySource {
|
|
616
|
+
reportId: string;
|
|
617
|
+
reportIndex: number;
|
|
618
|
+
reportScope: string;
|
|
619
|
+
revision?: string;
|
|
620
|
+
sourceToken?: string;
|
|
621
|
+
}
|
|
622
|
+
|
|
579
623
|
declare interface ReportRuntime {
|
|
580
624
|
describe(reportIds?: string[]): ReportDescription[];
|
|
581
625
|
validate(input: Omit<ReportRuntimeInput, "signal">): ReportParamValidation;
|
|
@@ -629,6 +673,8 @@ declare interface ReportRuntimeInput extends ReportTaskMonitoring {
|
|
|
629
673
|
reportIds: string[];
|
|
630
674
|
params?: Record<string, string>;
|
|
631
675
|
signal?: AbortSignal;
|
|
676
|
+
/** Explicit bounded diagnostic detail window (0–1000); default retains all details. */
|
|
677
|
+
diagnosticLimit?: number;
|
|
632
678
|
/** Prepare using the same licensed font bytes later supplied to PDF output. */
|
|
633
679
|
pdf?: ReportPdfFontOptions;
|
|
634
680
|
}
|
|
@@ -640,18 +686,16 @@ declare interface ReportRuntimePreparedExportInput extends ReportTaskMonitoring
|
|
|
640
686
|
layoutPolicy?: "verify" | "preserve";
|
|
641
687
|
format: ReportRuntimeExportInput["format"];
|
|
642
688
|
fidelity?: ReportRuntimeExportInput["fidelity"];
|
|
689
|
+
diagnosticLimit?: number;
|
|
643
690
|
pdf?: ReportPdfFontOptions;
|
|
644
691
|
xlsx?: ReportRuntimeExportInput["xlsx"];
|
|
645
692
|
signal?: AbortSignal;
|
|
646
693
|
}
|
|
647
694
|
|
|
648
695
|
/** One query occurrence; repeated report IDs retain independent provenance. */
|
|
649
|
-
declare interface ReportRuntimeSource {
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
reportScope: string;
|
|
653
|
-
revision?: string;
|
|
654
|
-
sourceToken?: string;
|
|
696
|
+
declare interface ReportRuntimeSource extends ReportQuerySource {
|
|
697
|
+
/** Runtime provenance uses the same ordered occurrence scope as the query session. */
|
|
698
|
+
reportScope: ReportQuerySource["reportScope"];
|
|
655
699
|
}
|
|
656
700
|
|
|
657
701
|
declare interface ReportRuntimeStats {
|
|
@@ -689,6 +733,8 @@ export declare class ReportWorkerError extends Error {
|
|
|
689
733
|
readonly path?: string;
|
|
690
734
|
readonly issues?: unknown;
|
|
691
735
|
readonly diagnostics?: unknown;
|
|
736
|
+
readonly diagnosticSummary?: DiagnosticSummary<Record<string, unknown>>;
|
|
737
|
+
readonly issueSummary?: DiagnosticSummary<Record<string, string>>;
|
|
692
738
|
constructor(error: SerializedReportError);
|
|
693
739
|
}
|
|
694
740
|
|
|
@@ -720,6 +766,8 @@ declare interface SerializedReportError {
|
|
|
720
766
|
path?: string;
|
|
721
767
|
issues?: unknown;
|
|
722
768
|
diagnostics?: unknown;
|
|
769
|
+
diagnosticSummary?: DiagnosticSummary<Record<string, unknown>>;
|
|
770
|
+
issueSummary?: DiagnosticSummary<Record<string, string>>;
|
|
723
771
|
}
|
|
724
772
|
|
|
725
773
|
/** Node Worker 入口调用;主线程调用会明确报错。 */
|