@agile-team/mach-report 2.23.1 → 2.25.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 +10 -4
- package/dist/{ExcelBindingWizard-BrTmdo7f.cjs → ExcelBindingWizard-BgJG-T6k.cjs} +1 -1
- package/dist/{ExcelBindingWizard-CcDMLO8Q.js → ExcelBindingWizard-NQ_v396s.js} +3 -3
- package/dist/ParamEditor-DEP38mBp.cjs +1 -0
- package/dist/ParamEditor-Z-3yodp5.js +750 -0
- package/dist/{ReportBatchPanel-CHxBtG9R.cjs → ReportBatchPanel-D33LjMrA.cjs} +1 -1
- package/dist/{ReportBatchPanel-CJB67WNd.js → ReportBatchPanel-DG8FV-5X.js} +2 -2
- package/dist/{ReportLabelStudio-Tplc1TLJ.js → ReportLabelStudio-BZp23_hA.js} +68 -68
- package/dist/ReportLabelStudio-Bz-xAayk.cjs +1 -0
- package/dist/ReportParamPanel-B27IGJjk.cjs +1 -0
- package/dist/{ReportParamPanel-GI43aGa0.js → ReportParamPanel-DGXzBzl2.js} +328 -298
- package/dist/ReportPreview-CilFAS9U.js +7170 -0
- package/dist/ReportPreview-dOOzPts2.cjs +6 -0
- package/dist/{ReportTemplateLibrary-KqX4E2sN.js → ReportTemplateLibrary-DpSGgvFa.js} +28 -28
- package/dist/{ReportTemplateLibrary-BFQIX0sg.cjs → ReportTemplateLibrary-uG1gENaW.cjs} +1 -1
- package/dist/{RuleEditor-OPX1awrH.js → RuleEditor-BONALh1Q.js} +846 -835
- package/dist/RuleEditor-bLXiRcxL.cjs +1 -0
- package/dist/{TemplateOutlinePanel-CVYKVLv_.cjs → TemplateOutlinePanel-C3nfHuaR.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-DQS-eOs6.js → TemplateOutlinePanel-JGBKeF3e.js} +10 -10
- package/dist/{TemplateReusePanel-CY6O93Zk.cjs → TemplateReusePanel-BKhgp6kg.cjs} +1 -1
- package/dist/{TemplateReusePanel-DKXiFTyB.js → TemplateReusePanel-DXQUO6nQ.js} +2 -2
- package/dist/TemplateReviewPanel-5RWFUUEf.cjs +1 -0
- package/dist/TemplateReviewPanel-DhL7Hapy.js +602 -0
- package/dist/analytics.d.cts +1 -1
- package/dist/analytics.d.ts +1 -1
- package/dist/artifact-integrity.json +98 -98
- package/dist/assets-BYdpkTIt.cjs +1 -0
- package/dist/assets-C4MIvzQ4.js +137 -0
- package/dist/auto-D-eDZa_V.cjs +1 -0
- package/dist/{auto-BB99S802.js → auto-umW_ozwr.js} +10 -10
- package/dist/capabilities-CN_kSVjO.js +121 -0
- package/dist/capabilities-D4nfhcvB.cjs +1 -0
- package/dist/cell-style-B6Qffrx8.js +37 -0
- package/dist/cell-style-y_uh1pZp.cjs +1 -0
- package/dist/{data-bar-IkI6VvMQ.js → data-bar-Bfh54sT4.js} +1 -1
- package/dist/data-bar-DzceAVeR.cjs +1 -0
- package/dist/designer-CCyj5WYS.js +7595 -0
- package/dist/designer-Cj7fn4Hh.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +143 -10
- package/dist/designer.d.ts +143 -10
- package/dist/designer.js +5 -5
- package/dist/diagnostic-collector-gB07PHy2.js +392 -0
- package/dist/diagnostic-collector-wASg6Fzs.cjs +1 -0
- package/dist/dom-CXWMmwh-.cjs +1 -0
- package/dist/{dom-JWrchIre.js → dom-DxdCMLzs.js} +185 -185
- package/dist/{encoding-CEd-dq9A.js → encoding-CEkBtlUP.js} +2 -2
- package/dist/{encoding-7lquyj0w.cjs → encoding-Cipno7dq.cjs} +1 -1
- package/dist/{font-loader-CNWXomuV.js → font-loader-D4NLIKJL.js} +1 -1
- package/dist/{font-loader-D8pI87fL.cjs → font-loader-p_SyTvqt.cjs} +1 -1
- package/dist/{grid-strokes-EoY66L2f.js → grid-strokes-DkZEZvcI.js} +1 -1
- package/dist/grid-strokes-RFMR91jn.cjs +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +48 -9
- package/dist/index.d.ts +48 -9
- package/dist/index.js +137 -136
- package/dist/json-snapshot-DQdkA_At.cjs +2 -0
- package/dist/{json-snapshot-BRnzKudk.js → json-snapshot-x0JpllWL.js} +919 -791
- package/dist/{pdf-DpMkW72B.cjs → pdf-C060D5UY.cjs} +31 -31
- package/dist/{pdf-CJToa81Z.js → pdf-DU8HelKd.js} +2499 -2492
- 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-BWTp-X7b.cjs → plugin-B_k23hut.cjs} +1 -1
- package/dist/{plugin-_BkUVc2z.js → plugin-CttO46hc.js} +1 -1
- package/dist/{prefill-CWGdnqQd.js → prefill-BkF9Fw_p.js} +13 -13
- package/dist/prefill-BvkuwooY.cjs +1 -0
- package/dist/prepared-CSywIEAZ.cjs +1 -0
- package/dist/prepared-Cyuh61fJ.js +128 -0
- package/dist/protocol-BwbJNVZl.cjs +1 -0
- package/dist/protocol-DwtxjXzO.js +96 -0
- package/dist/record-bindings-B7djSjNs.cjs +1 -0
- package/dist/{record-bindings-DatJZv_e.js → record-bindings-Cv7lFiof.js} +47 -47
- package/dist/{region-binding-workflow-l7NGfagJ.cjs → region-binding-workflow-COD8nISZ.cjs} +1 -1
- package/dist/{region-binding-workflow-DjrXuR1q.js → region-binding-workflow-D8I4QWRh.js} +2 -2
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/{rich-text-layout-Ciwa6D2o.js → rich-text-layout-Ch_N0Ubu.js} +1 -1
- package/dist/rich-text-layout-yJGuThtC.cjs +3 -0
- package/dist/runtime-BE30icyB.js +227 -0
- package/dist/runtime-DRSuy_SQ.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 +2742 -2417
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +51 -16
- package/dist/server.d.ts +51 -16
- package/dist/server.js +8 -8
- package/dist/style.css +1 -1
- package/dist/{template-catalog-DtrtT1FY.cjs → template-catalog-C0riwrx7.cjs} +1 -1
- package/dist/{template-catalog-CRuZL3pi.js → template-catalog-D_gl93va.js} +3 -3
- package/dist/template-fragments-CgzPdFKB.cjs +1 -0
- package/dist/{template-fragments-CPpGpQoz.js → template-fragments-D94ZZmPc.js} +2 -2
- package/dist/template-registry-BMScUmM4.cjs +1 -0
- package/dist/{template-registry-O0hNIOfB.js → template-registry-DZOtRY7t.js} +19 -19
- package/dist/{textwrap-D4ZksyMK.js → textwrap-BywMBMXM.js} +1 -1
- package/dist/textwrap-LhJkHWb1.cjs +4 -0
- package/dist/vue/async.d.cts +101 -22
- package/dist/vue/async.d.ts +101 -22
- package/dist/vue/index.d.cts +133 -34
- package/dist/vue/index.d.ts +133 -34
- 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-C6-SrnCT.cjs → workbook-session-DR2j6Hxm.cjs} +3 -3
- package/dist/{workbook-session-C9ZmCBwY.js → workbook-session-SzfILBJJ.js} +106 -107
- 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/node.d.cts +30 -1
- package/dist/xlsx/node.d.ts +30 -1
- package/dist/xlsx-node.cjs +42 -42
- package/dist/xlsx-node.js +3908 -3889
- package/dist/xlsx.cjs +4 -4
- package/dist/xlsx.d.cts +20 -3
- package/dist/xlsx.d.ts +20 -3
- package/dist/xlsx.js +302 -295
- package/package.json +1 -1
- package/dist/ParamEditor-BGjovFUe.js +0 -737
- package/dist/ParamEditor-CeNp4_zQ.cjs +0 -1
- package/dist/ReportLabelStudio-g8PkqJWn.cjs +0 -1
- package/dist/ReportParamPanel-C7fZTllk.cjs +0 -1
- package/dist/ReportPreview-BoGBGyRr.cjs +0 -6
- package/dist/ReportPreview-QLONCyci.js +0 -6257
- package/dist/RuleEditor-BZUP9yvL.cjs +0 -1
- package/dist/TemplateReviewPanel-DbeNC8Ms.cjs +0 -1
- package/dist/TemplateReviewPanel-Dijwm9YE.js +0 -593
- package/dist/assets-D2gHc4Mz.cjs +0 -1
- package/dist/assets-T_gDeFaz.js +0 -132
- package/dist/auto-BrPWo7Xm.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-BZoVWTgl.js +0 -7172
- package/dist/designer-zS2uKJmY.cjs +0 -2
- package/dist/dom-ChE5D-L-.cjs +0 -1
- package/dist/grid-strokes-Be24LGuV.cjs +0 -1
- package/dist/json-snapshot-DNiIbpOr.cjs +0 -2
- package/dist/prefill-PaAy6wLk.cjs +0 -1
- package/dist/prepared-CJy_qk7d.js +0 -94
- package/dist/prepared-D0yCSxSO.cjs +0 -1
- package/dist/progress-BXzlVbIp.js +0 -29
- package/dist/progress-ByiOxUD3.js +0 -250
- package/dist/progress-DJBd9Rb9.cjs +0 -1
- package/dist/progress-WomPRP3B.cjs +0 -1
- package/dist/protocol-BG16rz6D.js +0 -90
- package/dist/protocol-wzhl1Fim.cjs +0 -1
- package/dist/record-bindings-MBxbeBsi.cjs +0 -1
- package/dist/rich-text-layout-DK7A_a5r.cjs +0 -3
- package/dist/runtime-DYMOS_gz.cjs +0 -1
- package/dist/runtime-PiCax9zQ.js +0 -171
- package/dist/template-fragments-GVjpew_q.cjs +0 -1
- package/dist/template-registry-DI59PXVK.cjs +0 -1
- package/dist/textwrap-DEHqAjKZ.cjs +0 -4
package/dist/worker.d.cts
CHANGED
|
@@ -93,6 +93,19 @@ export declare function createAutoReportExporter(options?: ReportExportExecution
|
|
|
93
93
|
/** factory 每次返回全新 Worker,例如 () => new Worker(new URL('./worker.ts', import.meta.url), {type:'module'})。 */
|
|
94
94
|
export declare function createBrowserReportExecutor(factory: () => BrowserReportWorker, options?: ReportWorkerOptions): ReportRuntimeExecutor;
|
|
95
95
|
|
|
96
|
+
/** Bounded detail window with exact occurrence totals. Unknown business codes beyond 128 buckets share `other`. */
|
|
97
|
+
declare interface DiagnosticSummary<T> {
|
|
98
|
+
readonly total: number;
|
|
99
|
+
readonly counts: Readonly<Record<string, number>>;
|
|
100
|
+
readonly entries: readonly T[];
|
|
101
|
+
readonly omitted: number;
|
|
102
|
+
/** Business value explanations form a separate presentation channel, including omitted locations. */
|
|
103
|
+
readonly explanations?: {
|
|
104
|
+
readonly total: number;
|
|
105
|
+
readonly counts: Readonly<Record<string, number>>;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
96
109
|
declare interface GridCell {
|
|
97
110
|
/** Resolved visual only. Original value, text, editability and source are unchanged. */
|
|
98
111
|
dataBar?: {
|
|
@@ -138,6 +151,26 @@ declare interface ImageMediaOptions {
|
|
|
138
151
|
maxImageDimension?: number;
|
|
139
152
|
}
|
|
140
153
|
|
|
154
|
+
declare interface OutputDiagnostic {
|
|
155
|
+
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";
|
|
156
|
+
severity: "warning";
|
|
157
|
+
format: OutputFormat;
|
|
158
|
+
pageIndex: number;
|
|
159
|
+
componentIndex: number;
|
|
160
|
+
/** Nested grid child location as repeating [rowIndex, columnIndex, childIndex] triples. */
|
|
161
|
+
componentPath?: readonly number[];
|
|
162
|
+
kind: string;
|
|
163
|
+
nid?: string;
|
|
164
|
+
/** Declarative extension identity only; no property values or business binding data enter diagnostics. */
|
|
165
|
+
extension?: {
|
|
166
|
+
id: string;
|
|
167
|
+
version: string;
|
|
168
|
+
};
|
|
169
|
+
message: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
|
|
173
|
+
|
|
141
174
|
declare interface PlanComponent {
|
|
142
175
|
/** Template-only aggregate binding, expanded into shared primitives during layout. */
|
|
143
176
|
chartBinding?: ReportChartBinding;
|
|
@@ -212,6 +245,8 @@ declare interface PlanTableFragment {
|
|
|
212
245
|
declare interface PreparedReport {
|
|
213
246
|
plan: RenderPlan;
|
|
214
247
|
diagnostics: ReportDiagnostic[];
|
|
248
|
+
/** Present when an explicit diagnosticLimit bounds the detail array. Totals include omitted locations. */
|
|
249
|
+
diagnosticSummary?: DiagnosticSummary<ReportDiagnostic>;
|
|
215
250
|
stats: ReportRuntimeStats;
|
|
216
251
|
revisions: Record<string, {
|
|
217
252
|
revision?: string;
|
|
@@ -313,7 +348,7 @@ declare interface ReportDescription {
|
|
|
313
348
|
};
|
|
314
349
|
}
|
|
315
350
|
|
|
316
|
-
declare interface ReportDiagnostic {
|
|
351
|
+
declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
|
|
317
352
|
code: string;
|
|
318
353
|
message: string;
|
|
319
354
|
path?: string;
|
|
@@ -424,6 +459,15 @@ declare interface ReportPdfFontOptions {
|
|
|
424
459
|
};
|
|
425
460
|
}
|
|
426
461
|
|
|
462
|
+
/** One ordered query occurrence, shared by browser editing and Node preparation. */
|
|
463
|
+
declare interface ReportQuerySource {
|
|
464
|
+
reportId: string;
|
|
465
|
+
reportIndex: number;
|
|
466
|
+
reportScope: string;
|
|
467
|
+
revision?: string;
|
|
468
|
+
sourceToken?: string;
|
|
469
|
+
}
|
|
470
|
+
|
|
427
471
|
declare interface ReportRuntime {
|
|
428
472
|
describe(reportIds?: string[]): ReportDescription[];
|
|
429
473
|
validate(input: Omit<ReportRuntimeInput, "signal">): ReportParamValidation;
|
|
@@ -477,6 +521,8 @@ declare interface ReportRuntimeInput extends ReportTaskMonitoring {
|
|
|
477
521
|
reportIds: string[];
|
|
478
522
|
params?: Record<string, string>;
|
|
479
523
|
signal?: AbortSignal;
|
|
524
|
+
/** Explicit bounded diagnostic detail window (0–1000); default retains all details. */
|
|
525
|
+
diagnosticLimit?: number;
|
|
480
526
|
/** Prepare using the same licensed font bytes later supplied to PDF output. */
|
|
481
527
|
pdf?: ReportPdfFontOptions;
|
|
482
528
|
}
|
|
@@ -488,18 +534,16 @@ declare interface ReportRuntimePreparedExportInput extends ReportTaskMonitoring
|
|
|
488
534
|
layoutPolicy?: "verify" | "preserve";
|
|
489
535
|
format: ReportRuntimeExportInput["format"];
|
|
490
536
|
fidelity?: ReportRuntimeExportInput["fidelity"];
|
|
537
|
+
diagnosticLimit?: number;
|
|
491
538
|
pdf?: ReportPdfFontOptions;
|
|
492
539
|
xlsx?: ReportRuntimeExportInput["xlsx"];
|
|
493
540
|
signal?: AbortSignal;
|
|
494
541
|
}
|
|
495
542
|
|
|
496
543
|
/** One query occurrence; repeated report IDs retain independent provenance. */
|
|
497
|
-
declare interface ReportRuntimeSource {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
reportScope: string;
|
|
501
|
-
revision?: string;
|
|
502
|
-
sourceToken?: string;
|
|
544
|
+
declare interface ReportRuntimeSource extends ReportQuerySource {
|
|
545
|
+
/** Runtime provenance uses the same ordered occurrence scope as the query session. */
|
|
546
|
+
reportScope: ReportQuerySource["reportScope"];
|
|
503
547
|
}
|
|
504
548
|
|
|
505
549
|
declare interface ReportRuntimeStats {
|
|
@@ -537,6 +581,8 @@ export declare class ReportWorkerError extends Error {
|
|
|
537
581
|
readonly path?: string;
|
|
538
582
|
readonly issues?: unknown;
|
|
539
583
|
readonly diagnostics?: unknown;
|
|
584
|
+
readonly diagnosticSummary?: DiagnosticSummary<Record<string, unknown>>;
|
|
585
|
+
readonly issueSummary?: DiagnosticSummary<Record<string, string>>;
|
|
540
586
|
constructor(error: SerializedReportError);
|
|
541
587
|
}
|
|
542
588
|
|
|
@@ -579,6 +625,8 @@ declare interface SerializedReportError {
|
|
|
579
625
|
path?: string;
|
|
580
626
|
issues?: unknown;
|
|
581
627
|
diagnostics?: unknown;
|
|
628
|
+
diagnosticSummary?: DiagnosticSummary<Record<string, unknown>>;
|
|
629
|
+
issueSummary?: DiagnosticSummary<Record<string, string>>;
|
|
582
630
|
}
|
|
583
631
|
|
|
584
632
|
export declare function serveReportEncodingWorker(scope?: ReportWorkerScope): () => void;
|
package/dist/worker.d.ts
CHANGED
|
@@ -93,6 +93,19 @@ export declare function createAutoReportExporter(options?: ReportExportExecution
|
|
|
93
93
|
/** factory 每次返回全新 Worker,例如 () => new Worker(new URL('./worker.ts', import.meta.url), {type:'module'})。 */
|
|
94
94
|
export declare function createBrowserReportExecutor(factory: () => BrowserReportWorker, options?: ReportWorkerOptions): ReportRuntimeExecutor;
|
|
95
95
|
|
|
96
|
+
/** Bounded detail window with exact occurrence totals. Unknown business codes beyond 128 buckets share `other`. */
|
|
97
|
+
declare interface DiagnosticSummary<T> {
|
|
98
|
+
readonly total: number;
|
|
99
|
+
readonly counts: Readonly<Record<string, number>>;
|
|
100
|
+
readonly entries: readonly T[];
|
|
101
|
+
readonly omitted: number;
|
|
102
|
+
/** Business value explanations form a separate presentation channel, including omitted locations. */
|
|
103
|
+
readonly explanations?: {
|
|
104
|
+
readonly total: number;
|
|
105
|
+
readonly counts: Readonly<Record<string, number>>;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
96
109
|
declare interface GridCell {
|
|
97
110
|
/** Resolved visual only. Original value, text, editability and source are unchanged. */
|
|
98
111
|
dataBar?: {
|
|
@@ -138,6 +151,26 @@ declare interface ImageMediaOptions {
|
|
|
138
151
|
maxImageDimension?: number;
|
|
139
152
|
}
|
|
140
153
|
|
|
154
|
+
declare interface OutputDiagnostic {
|
|
155
|
+
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";
|
|
156
|
+
severity: "warning";
|
|
157
|
+
format: OutputFormat;
|
|
158
|
+
pageIndex: number;
|
|
159
|
+
componentIndex: number;
|
|
160
|
+
/** Nested grid child location as repeating [rowIndex, columnIndex, childIndex] triples. */
|
|
161
|
+
componentPath?: readonly number[];
|
|
162
|
+
kind: string;
|
|
163
|
+
nid?: string;
|
|
164
|
+
/** Declarative extension identity only; no property values or business binding data enter diagnostics. */
|
|
165
|
+
extension?: {
|
|
166
|
+
id: string;
|
|
167
|
+
version: string;
|
|
168
|
+
};
|
|
169
|
+
message: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
|
|
173
|
+
|
|
141
174
|
declare interface PlanComponent {
|
|
142
175
|
/** Template-only aggregate binding, expanded into shared primitives during layout. */
|
|
143
176
|
chartBinding?: ReportChartBinding;
|
|
@@ -212,6 +245,8 @@ declare interface PlanTableFragment {
|
|
|
212
245
|
declare interface PreparedReport {
|
|
213
246
|
plan: RenderPlan;
|
|
214
247
|
diagnostics: ReportDiagnostic[];
|
|
248
|
+
/** Present when an explicit diagnosticLimit bounds the detail array. Totals include omitted locations. */
|
|
249
|
+
diagnosticSummary?: DiagnosticSummary<ReportDiagnostic>;
|
|
215
250
|
stats: ReportRuntimeStats;
|
|
216
251
|
revisions: Record<string, {
|
|
217
252
|
revision?: string;
|
|
@@ -313,7 +348,7 @@ declare interface ReportDescription {
|
|
|
313
348
|
};
|
|
314
349
|
}
|
|
315
350
|
|
|
316
|
-
declare interface ReportDiagnostic {
|
|
351
|
+
declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
|
|
317
352
|
code: string;
|
|
318
353
|
message: string;
|
|
319
354
|
path?: string;
|
|
@@ -424,6 +459,15 @@ declare interface ReportPdfFontOptions {
|
|
|
424
459
|
};
|
|
425
460
|
}
|
|
426
461
|
|
|
462
|
+
/** One ordered query occurrence, shared by browser editing and Node preparation. */
|
|
463
|
+
declare interface ReportQuerySource {
|
|
464
|
+
reportId: string;
|
|
465
|
+
reportIndex: number;
|
|
466
|
+
reportScope: string;
|
|
467
|
+
revision?: string;
|
|
468
|
+
sourceToken?: string;
|
|
469
|
+
}
|
|
470
|
+
|
|
427
471
|
declare interface ReportRuntime {
|
|
428
472
|
describe(reportIds?: string[]): ReportDescription[];
|
|
429
473
|
validate(input: Omit<ReportRuntimeInput, "signal">): ReportParamValidation;
|
|
@@ -477,6 +521,8 @@ declare interface ReportRuntimeInput extends ReportTaskMonitoring {
|
|
|
477
521
|
reportIds: string[];
|
|
478
522
|
params?: Record<string, string>;
|
|
479
523
|
signal?: AbortSignal;
|
|
524
|
+
/** Explicit bounded diagnostic detail window (0–1000); default retains all details. */
|
|
525
|
+
diagnosticLimit?: number;
|
|
480
526
|
/** Prepare using the same licensed font bytes later supplied to PDF output. */
|
|
481
527
|
pdf?: ReportPdfFontOptions;
|
|
482
528
|
}
|
|
@@ -488,18 +534,16 @@ declare interface ReportRuntimePreparedExportInput extends ReportTaskMonitoring
|
|
|
488
534
|
layoutPolicy?: "verify" | "preserve";
|
|
489
535
|
format: ReportRuntimeExportInput["format"];
|
|
490
536
|
fidelity?: ReportRuntimeExportInput["fidelity"];
|
|
537
|
+
diagnosticLimit?: number;
|
|
491
538
|
pdf?: ReportPdfFontOptions;
|
|
492
539
|
xlsx?: ReportRuntimeExportInput["xlsx"];
|
|
493
540
|
signal?: AbortSignal;
|
|
494
541
|
}
|
|
495
542
|
|
|
496
543
|
/** One query occurrence; repeated report IDs retain independent provenance. */
|
|
497
|
-
declare interface ReportRuntimeSource {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
reportScope: string;
|
|
501
|
-
revision?: string;
|
|
502
|
-
sourceToken?: string;
|
|
544
|
+
declare interface ReportRuntimeSource extends ReportQuerySource {
|
|
545
|
+
/** Runtime provenance uses the same ordered occurrence scope as the query session. */
|
|
546
|
+
reportScope: ReportQuerySource["reportScope"];
|
|
503
547
|
}
|
|
504
548
|
|
|
505
549
|
declare interface ReportRuntimeStats {
|
|
@@ -537,6 +581,8 @@ export declare class ReportWorkerError extends Error {
|
|
|
537
581
|
readonly path?: string;
|
|
538
582
|
readonly issues?: unknown;
|
|
539
583
|
readonly diagnostics?: unknown;
|
|
584
|
+
readonly diagnosticSummary?: DiagnosticSummary<Record<string, unknown>>;
|
|
585
|
+
readonly issueSummary?: DiagnosticSummary<Record<string, string>>;
|
|
540
586
|
constructor(error: SerializedReportError);
|
|
541
587
|
}
|
|
542
588
|
|
|
@@ -579,6 +625,8 @@ declare interface SerializedReportError {
|
|
|
579
625
|
path?: string;
|
|
580
626
|
issues?: unknown;
|
|
581
627
|
diagnostics?: unknown;
|
|
628
|
+
diagnosticSummary?: DiagnosticSummary<Record<string, unknown>>;
|
|
629
|
+
issueSummary?: DiagnosticSummary<Record<string, string>>;
|
|
582
630
|
}
|
|
583
631
|
|
|
584
632
|
export declare function serveReportEncodingWorker(scope?: ReportWorkerScope): () => void;
|
package/dist/worker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as a, r as R, R as p, a as n } from "./protocol-
|
|
2
|
-
import { b as W } from "./protocol-
|
|
3
|
-
import { R as g, c as k, a as u } from "./auto-
|
|
4
|
-
import { s as x } from "./encoding-
|
|
1
|
+
import { i as a, r as R, R as p, a as n } from "./protocol-DwtxjXzO.js";
|
|
2
|
+
import { b as W } from "./protocol-DwtxjXzO.js";
|
|
3
|
+
import { R as g, c as k, a as u } from "./auto-umW_ozwr.js";
|
|
4
|
+
import { s as x } from "./encoding-CEkBtlUP.js";
|
|
5
5
|
function d(s, r = globalThis) {
|
|
6
6
|
const t = (o) => {
|
|
7
7
|
a(o.data) && R(s, o.data, (e) => r.postMessage({ protocol: p, id: o.data.id, type: "event", event: e })).then((e) => r.postMessage(e, n(e)));
|
package/dist/xlsx/node.d.cts
CHANGED
|
@@ -2,9 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
import { Writable } from 'node:stream';
|
|
4
4
|
|
|
5
|
+
declare interface ComponentStyle {
|
|
6
|
+
fontSizePx?: number;
|
|
7
|
+
fontSize?: number;
|
|
8
|
+
fontFamily?: string;
|
|
9
|
+
bold?: boolean;
|
|
10
|
+
italic?: boolean;
|
|
11
|
+
underline?: boolean;
|
|
12
|
+
color?: string;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
align?: "left" | "center" | "right" | "justify";
|
|
15
|
+
verticalAlign?: "top" | "middle" | "bottom";
|
|
16
|
+
lineColor?: string;
|
|
17
|
+
borderColor?: string;
|
|
18
|
+
lineWidthPt?: number;
|
|
19
|
+
borderTop?: boolean;
|
|
20
|
+
borderRight?: boolean;
|
|
21
|
+
borderBottom?: boolean;
|
|
22
|
+
borderLeft?: boolean;
|
|
23
|
+
lineHeight?: number;
|
|
24
|
+
letterSpacing?: number;
|
|
25
|
+
opacity?: number;
|
|
26
|
+
rotateDeg?: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** auto:真实数字、显式数值格式、日期与布尔居中,其他内容居左。 */
|
|
30
|
+
declare type ListAlignment = NonNullable<ComponentStyle["align"]> | "auto";
|
|
31
|
+
|
|
5
32
|
/**
|
|
6
33
|
* Commits each source row directly to ExcelJS WorkbookWriter. No RenderPlan, full row array,
|
|
7
|
-
* Workbook or Buffer is retained.
|
|
34
|
+
* Workbook or Buffer is retained. Alignment variants are reused; shared strings are disabled.
|
|
8
35
|
* Destination is ended by the writer. An abort/error leaves a partial, unusable XLSX file.
|
|
9
36
|
*/
|
|
10
37
|
export declare function writeRowsToXlsx<Row extends object>(rows: AsyncIterable<Row> | Iterable<Row>, options: XlsxStreamOptions<Row>): Promise<XlsxStreamProgress>;
|
|
@@ -16,6 +43,8 @@ export declare interface XlsxStreamColumn<Row> {
|
|
|
16
43
|
header?: string;
|
|
17
44
|
width?: number;
|
|
18
45
|
numberFormat?: string;
|
|
46
|
+
/** Data alignment. Defaults to auto, centering numeric/date/boolean values. */
|
|
47
|
+
align?: ListAlignment;
|
|
19
48
|
value?: (row: Row, rowIndex: number) => XlsxRowValue;
|
|
20
49
|
}
|
|
21
50
|
|
package/dist/xlsx/node.d.ts
CHANGED
|
@@ -2,9 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
import { Writable } from 'node:stream';
|
|
4
4
|
|
|
5
|
+
declare interface ComponentStyle {
|
|
6
|
+
fontSizePx?: number;
|
|
7
|
+
fontSize?: number;
|
|
8
|
+
fontFamily?: string;
|
|
9
|
+
bold?: boolean;
|
|
10
|
+
italic?: boolean;
|
|
11
|
+
underline?: boolean;
|
|
12
|
+
color?: string;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
align?: "left" | "center" | "right" | "justify";
|
|
15
|
+
verticalAlign?: "top" | "middle" | "bottom";
|
|
16
|
+
lineColor?: string;
|
|
17
|
+
borderColor?: string;
|
|
18
|
+
lineWidthPt?: number;
|
|
19
|
+
borderTop?: boolean;
|
|
20
|
+
borderRight?: boolean;
|
|
21
|
+
borderBottom?: boolean;
|
|
22
|
+
borderLeft?: boolean;
|
|
23
|
+
lineHeight?: number;
|
|
24
|
+
letterSpacing?: number;
|
|
25
|
+
opacity?: number;
|
|
26
|
+
rotateDeg?: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** auto:真实数字、显式数值格式、日期与布尔居中,其他内容居左。 */
|
|
30
|
+
declare type ListAlignment = NonNullable<ComponentStyle["align"]> | "auto";
|
|
31
|
+
|
|
5
32
|
/**
|
|
6
33
|
* Commits each source row directly to ExcelJS WorkbookWriter. No RenderPlan, full row array,
|
|
7
|
-
* Workbook or Buffer is retained.
|
|
34
|
+
* Workbook or Buffer is retained. Alignment variants are reused; shared strings are disabled.
|
|
8
35
|
* Destination is ended by the writer. An abort/error leaves a partial, unusable XLSX file.
|
|
9
36
|
*/
|
|
10
37
|
export declare function writeRowsToXlsx<Row extends object>(rows: AsyncIterable<Row> | Iterable<Row>, options: XlsxStreamOptions<Row>): Promise<XlsxStreamProgress>;
|
|
@@ -16,6 +43,8 @@ export declare interface XlsxStreamColumn<Row> {
|
|
|
16
43
|
header?: string;
|
|
17
44
|
width?: number;
|
|
18
45
|
numberFormat?: string;
|
|
46
|
+
/** Data alignment. Defaults to auto, centering numeric/date/boolean values. */
|
|
47
|
+
align?: ListAlignment;
|
|
19
48
|
value?: (row: Row, rowIndex: number) => XlsxRowValue;
|
|
20
49
|
}
|
|
21
50
|
|