@agile-team/mach-report 2.23.1 → 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.
Files changed (149) hide show
  1. package/README.md +8 -2
  2. package/dist/{ExcelBindingWizard-BrTmdo7f.cjs → ExcelBindingWizard-BV12hGiK.cjs} +1 -1
  3. package/dist/{ExcelBindingWizard-CcDMLO8Q.js → ExcelBindingWizard-Cy_lPjWV.js} +3 -3
  4. package/dist/ParamEditor-DenKjvKu.cjs +1 -0
  5. package/dist/ParamEditor-PyOqHzzw.js +750 -0
  6. package/dist/{ReportBatchPanel-CJB67WNd.js → ReportBatchPanel-8EFtMrKk.js} +2 -2
  7. package/dist/{ReportBatchPanel-CHxBtG9R.cjs → ReportBatchPanel-pQ6d0yqJ.cjs} +1 -1
  8. package/dist/ReportLabelStudio-B_KF3Zc_.cjs +1 -0
  9. package/dist/{ReportLabelStudio-Tplc1TLJ.js → ReportLabelStudio-HUeo2TsU.js} +68 -68
  10. package/dist/ReportParamPanel-8xR85nz-.cjs +1 -0
  11. package/dist/{ReportParamPanel-GI43aGa0.js → ReportParamPanel-DA-YpkvC.js} +328 -298
  12. package/dist/ReportPreview-CyUXJSVX.cjs +6 -0
  13. package/dist/ReportPreview-_wTJnsG1.js +7120 -0
  14. package/dist/{ReportTemplateLibrary-BFQIX0sg.cjs → ReportTemplateLibrary-CjArKxRG.cjs} +1 -1
  15. package/dist/{ReportTemplateLibrary-KqX4E2sN.js → ReportTemplateLibrary-DH8jl9IF.js} +28 -28
  16. package/dist/RuleEditor-Bmj98oC4.cjs +1 -0
  17. package/dist/{RuleEditor-OPX1awrH.js → RuleEditor-GDydlEHz.js} +846 -834
  18. package/dist/{TemplateOutlinePanel-CVYKVLv_.cjs → TemplateOutlinePanel-B554_qk1.cjs} +1 -1
  19. package/dist/{TemplateOutlinePanel-DQS-eOs6.js → TemplateOutlinePanel-DjPqzU9h.js} +10 -10
  20. package/dist/{TemplateReusePanel-CY6O93Zk.cjs → TemplateReusePanel-D0628OYc.cjs} +1 -1
  21. package/dist/{TemplateReusePanel-DKXiFTyB.js → TemplateReusePanel-DtYbCN7U.js} +2 -2
  22. package/dist/TemplateReviewPanel-CSwvCz3f.cjs +1 -0
  23. package/dist/TemplateReviewPanel-D_FR4ISq.js +602 -0
  24. package/dist/artifact-integrity.json +94 -94
  25. package/dist/assets-B4AJIOTB.cjs +1 -0
  26. package/dist/assets-D0FbszhB.js +137 -0
  27. package/dist/{auto-BB99S802.js → auto-BksreoKc.js} +5 -5
  28. package/dist/auto-C3mGqzJ8.cjs +1 -0
  29. package/dist/capabilities-CTwlcl8q.cjs +1 -0
  30. package/dist/capabilities-lqDEZSq5.js +121 -0
  31. package/dist/data-bar-2NLRzOCQ.cjs +1 -0
  32. package/dist/{data-bar-IkI6VvMQ.js → data-bar-BnGtnJ82.js} +1 -1
  33. package/dist/designer-BNf7NWd6.js +7589 -0
  34. package/dist/designer-DWnZZ_ej.cjs +2 -0
  35. package/dist/designer.cjs +1 -1
  36. package/dist/designer.d.cts +137 -4
  37. package/dist/designer.d.ts +137 -4
  38. package/dist/designer.js +5 -5
  39. package/dist/diagnostic-collector-1sqd7DQP.js +355 -0
  40. package/dist/diagnostic-collector-D3rlvxm3.cjs +1 -0
  41. package/dist/{dom-JWrchIre.js → dom-C90cTM6Y.js} +4 -4
  42. package/dist/dom-CxOkm_Sy.cjs +1 -0
  43. package/dist/{encoding-7lquyj0w.cjs → encoding-CkziAnZI.cjs} +1 -1
  44. package/dist/{encoding-CEd-dq9A.js → encoding-DSc9zv2F.js} +2 -2
  45. package/dist/{font-loader-D8pI87fL.cjs → font-loader-D-znWNWS.cjs} +1 -1
  46. package/dist/{font-loader-CNWXomuV.js → font-loader-i7lZbqH_.js} +1 -1
  47. package/dist/{grid-strokes-EoY66L2f.js → grid-strokes-BPiV1WHe.js} +1 -1
  48. package/dist/grid-strokes-DYf-6DMl.cjs +1 -0
  49. package/dist/index.cjs +5 -5
  50. package/dist/index.d.cts +46 -7
  51. package/dist/index.d.ts +46 -7
  52. package/dist/index.js +69 -68
  53. package/dist/{json-snapshot-BRnzKudk.js → json-snapshot-BJWZNryO.js} +919 -791
  54. package/dist/json-snapshot-C7QZrRBf.cjs +2 -0
  55. package/dist/{pdf-CJToa81Z.js → pdf-0_5XiTCx.js} +2499 -2492
  56. package/dist/{pdf-DpMkW72B.cjs → pdf-DWuq6uxx.cjs} +31 -31
  57. package/dist/pdf.cjs +1 -1
  58. package/dist/pdf.d.cts +18 -0
  59. package/dist/pdf.d.ts +18 -0
  60. package/dist/pdf.js +2 -2
  61. package/dist/{plugin-_BkUVc2z.js → plugin-B1ydqEmS.js} +1 -1
  62. package/dist/{plugin-BWTp-X7b.cjs → plugin-BQBz2vLG.cjs} +1 -1
  63. package/dist/prefill-2p9wrpn9.cjs +1 -0
  64. package/dist/{prefill-CWGdnqQd.js → prefill-Cuzh1wxf.js} +13 -13
  65. package/dist/prepared-CVbgO9KR.js +128 -0
  66. package/dist/prepared-DAwe8Il2.cjs +1 -0
  67. package/dist/protocol-BOri9qJL.js +105 -0
  68. package/dist/protocol-DD5dHSz-.cjs +1 -0
  69. package/dist/record-bindings-CAyM5tGg.cjs +1 -0
  70. package/dist/{record-bindings-DatJZv_e.js → record-bindings-fhav-NLG.js} +1 -1
  71. package/dist/{region-binding-workflow-DjrXuR1q.js → region-binding-workflow-Cm4mqhih.js} +2 -2
  72. package/dist/{region-binding-workflow-l7NGfagJ.cjs → region-binding-workflow-DWCUgjZl.cjs} +1 -1
  73. package/dist/report-encoding-worker.cjs +1 -1
  74. package/dist/report-encoding-worker.js +1 -1
  75. package/dist/rich-text-layout-X9YOz1JD.cjs +3 -0
  76. package/dist/{rich-text-layout-Ciwa6D2o.js → rich-text-layout-YJHtCWQI.js} +1 -1
  77. package/dist/runtime-BpSAgOw1.js +201 -0
  78. package/dist/runtime-Cd2UTnwe.cjs +1 -0
  79. package/dist/sbom.cdx.json +1 -1
  80. package/dist/server/node.d.cts +55 -7
  81. package/dist/server/node.d.ts +55 -7
  82. package/dist/server-node.cjs +5 -5
  83. package/dist/server-node.js +2721 -2430
  84. package/dist/server.cjs +1 -1
  85. package/dist/server.d.cts +47 -12
  86. package/dist/server.d.ts +47 -12
  87. package/dist/server.js +8 -8
  88. package/dist/style.css +1 -1
  89. package/dist/{template-catalog-DtrtT1FY.cjs → template-catalog--yBX169M.cjs} +1 -1
  90. package/dist/{template-catalog-CRuZL3pi.js → template-catalog-Bu7s7ReF.js} +3 -3
  91. package/dist/template-fragments-5EzVn7bm.cjs +1 -0
  92. package/dist/{template-fragments-CPpGpQoz.js → template-fragments-Di2vDFnx.js} +2 -2
  93. package/dist/{template-registry-O0hNIOfB.js → template-registry-BCBF2b8j.js} +10 -10
  94. package/dist/template-registry-Bnh5aEYf.cjs +1 -0
  95. package/dist/textwrap-BPFxhpOw.cjs +4 -0
  96. package/dist/{textwrap-D4ZksyMK.js → textwrap-CmVkhMhx.js} +1 -1
  97. package/dist/vue/async.d.cts +97 -18
  98. package/dist/vue/async.d.ts +97 -18
  99. package/dist/vue/index.d.cts +127 -28
  100. package/dist/vue/index.d.ts +127 -28
  101. package/dist/vue-async.cjs +1 -1
  102. package/dist/vue-async.js +3 -3
  103. package/dist/vue.cjs +1 -1
  104. package/dist/vue.js +192 -162
  105. package/dist/{workbook-session-C9ZmCBwY.js → workbook-session-B6P_-5a4.js} +2 -2
  106. package/dist/{workbook-session-C6-SrnCT.cjs → workbook-session-BnPK3T58.cjs} +1 -1
  107. package/dist/worker.cjs +1 -1
  108. package/dist/worker.d.cts +55 -7
  109. package/dist/worker.d.ts +55 -7
  110. package/dist/worker.js +4 -4
  111. package/dist/xlsx.cjs +4 -4
  112. package/dist/xlsx.d.cts +18 -1
  113. package/dist/xlsx.d.ts +18 -1
  114. package/dist/xlsx.js +279 -272
  115. package/package.json +1 -1
  116. package/dist/ParamEditor-BGjovFUe.js +0 -737
  117. package/dist/ParamEditor-CeNp4_zQ.cjs +0 -1
  118. package/dist/ReportLabelStudio-g8PkqJWn.cjs +0 -1
  119. package/dist/ReportParamPanel-C7fZTllk.cjs +0 -1
  120. package/dist/ReportPreview-BoGBGyRr.cjs +0 -6
  121. package/dist/ReportPreview-QLONCyci.js +0 -6257
  122. package/dist/RuleEditor-BZUP9yvL.cjs +0 -1
  123. package/dist/TemplateReviewPanel-DbeNC8Ms.cjs +0 -1
  124. package/dist/TemplateReviewPanel-Dijwm9YE.js +0 -593
  125. package/dist/assets-D2gHc4Mz.cjs +0 -1
  126. package/dist/assets-T_gDeFaz.js +0 -132
  127. package/dist/auto-BrPWo7Xm.cjs +0 -1
  128. package/dist/capabilities-DiBj4Qgl.cjs +0 -1
  129. package/dist/capabilities-pg7j7VLT.js +0 -106
  130. package/dist/data-bar-CeZuFmYl.cjs +0 -1
  131. package/dist/designer-BZoVWTgl.js +0 -7172
  132. package/dist/designer-zS2uKJmY.cjs +0 -2
  133. package/dist/dom-ChE5D-L-.cjs +0 -1
  134. package/dist/grid-strokes-Be24LGuV.cjs +0 -1
  135. package/dist/json-snapshot-DNiIbpOr.cjs +0 -2
  136. package/dist/prefill-PaAy6wLk.cjs +0 -1
  137. package/dist/prepared-CJy_qk7d.js +0 -94
  138. package/dist/prepared-D0yCSxSO.cjs +0 -1
  139. package/dist/progress-ByiOxUD3.js +0 -250
  140. package/dist/progress-WomPRP3B.cjs +0 -1
  141. package/dist/protocol-BG16rz6D.js +0 -90
  142. package/dist/protocol-wzhl1Fim.cjs +0 -1
  143. package/dist/record-bindings-MBxbeBsi.cjs +0 -1
  144. package/dist/rich-text-layout-DK7A_a5r.cjs +0 -3
  145. package/dist/runtime-DYMOS_gz.cjs +0 -1
  146. package/dist/runtime-PiCax9zQ.js +0 -171
  147. package/dist/template-fragments-GVjpew_q.cjs +0 -1
  148. package/dist/template-registry-DI59PXVK.cjs +0 -1
  149. package/dist/textwrap-DEHqAjKZ.cjs +0 -4
@@ -374,6 +374,26 @@ declare interface ComputedField_3 extends ExpressionOptions_3 {
374
374
  /** String adapter expressions cannot be inspected; declare dependencies explicitly. */
375
375
  dependsOn?: readonly string[];
376
376
  }
377
+ declare interface ConflictReviewMessages {
378
+ conflictReviewTitle: string;
379
+ conflictReviewDescription: string;
380
+ conflictReviewRefresh: string;
381
+ conflictReviewLoading: string;
382
+ conflictReviewApply: string;
383
+ conflictReviewOriginal: string;
384
+ conflictReviewLocal: string;
385
+ conflictReviewServer: string;
386
+ conflictReviewChoose: string;
387
+ conflictReviewMissing: string;
388
+ conflictReviewAmbiguous: string;
389
+ conflictReviewReadonly: string;
390
+ conflictReviewUnavailable: string;
391
+ conflictReviewCount: string;
392
+ conflictReviewSearch: string;
393
+ conflictReviewEmpty: string;
394
+ conflictReviewStale: string;
395
+ conflictReviewRetained: string;
396
+ }
377
397
  declare interface DatasetContract {
378
398
  fields: readonly ReportFieldContract[];
379
399
  rowKey?: string;
@@ -385,6 +405,18 @@ declare interface DatasetValidationOptions {
385
405
  maxCells?: number;
386
406
  maxIssues?: number;
387
407
  }
408
+ /** Bounded detail window with exact occurrence totals. Unknown business codes beyond 128 buckets share `other`. */
409
+ declare interface DiagnosticSummary<T> {
410
+ readonly total: number;
411
+ readonly counts: Readonly<Record<string, number>>;
412
+ readonly entries: readonly T[];
413
+ readonly omitted: number;
414
+ /** Business value explanations form a separate presentation channel, including omitted locations. */
415
+ readonly explanations?: {
416
+ readonly total: number;
417
+ readonly counts: Readonly<Record<string, number>>;
418
+ };
419
+ }
388
420
  declare interface ExcelImportedSheet {
389
421
  name: string;
390
422
  /** Original, one-based workbook position. */
@@ -921,7 +953,7 @@ declare type MachReportLogger = Pick<Console, "warn" | "info">;
921
953
  * - 优先级:组件 props > 路由级叠加 > preset > defaults(props 永远最高)
922
954
  */
923
955
  /** 工具栏与状态文案(默认简体中文;出海场景覆写) */
924
- declare interface MachReportMessages extends Partial<ReportCalculationMessages>, Partial<ReportDataReviewMessages>, ReportPrintMessages, ReportParamOptionsMessages {
956
+ declare interface MachReportMessages extends Partial<ReportCalculationMessages>, Partial<ReportDataReviewMessages>, Partial<ConflictReviewMessages>, ReportPrintMessages, ReportParamOptionsMessages {
925
957
  previousSnapshot?: string;
926
958
  reviewTools?: string;
927
959
  validationTitle?: string;
@@ -930,6 +962,21 @@ declare interface MachReportMessages extends Partial<ReportCalculationMessages>,
930
962
  validationDataset?: string;
931
963
  validationRow?: string;
932
964
  validationMore?: string;
965
+ validationSearch?: string;
966
+ validationSearchPlaceholder?: string;
967
+ validationSeverity?: string;
968
+ validationAllSeverities?: string;
969
+ validationDatasetFilter?: string;
970
+ validationAllDatasets?: string;
971
+ validationResults?: string;
972
+ validationRange?: string;
973
+ validationPage?: string;
974
+ validationEmpty?: string;
975
+ validationNoMatches?: string;
976
+ validationClear?: string;
977
+ validationLoading?: string;
978
+ validationUnavailable?: string;
979
+ validationFailureSummary?: string;
933
980
  drillActions?: string;
934
981
  drillOpening?: string;
935
982
  drillMissingValue?: string;
@@ -1100,6 +1147,8 @@ declare interface MachReportMessages extends Partial<ReportCalculationMessages>,
1100
1147
  diagnosticsTitle?: string;
1101
1148
  diagnosticsSearch?: string;
1102
1149
  diagnosticsMore?: string;
1150
+ diagnosticsOmitted?: string;
1151
+ diagnosticsShowMore?: string;
1103
1152
  diagnosticsLocate?: string;
1104
1153
  diagnosticsLocation?: string;
1105
1154
  diagnosticsStrict?: string;
@@ -1164,6 +1213,7 @@ declare interface MachReportState {
1164
1213
  readonly pendingLocalChanges?: boolean;
1165
1214
  readonly task?: Readonly<ReportPreviewTask> | null;
1166
1215
  readonly diagnostics?: readonly Readonly<ReportPreviewDiagnostic>[];
1216
+ readonly diagnosticSummary?: DiagnosticSummary<Readonly<ReportPreviewDiagnostic>>;
1167
1217
  /** Context of the displayed API snapshot, which can differ from an unexecuted query form. */
1168
1218
  readonly reportIds?: readonly string[];
1169
1219
  readonly params?: Readonly<Record<string, string>>;
@@ -1323,12 +1373,16 @@ declare interface OutputDiagnosticOptions extends OutputTaskOptions {
1323
1373
  onDiagnostic?: (diagnostic: OutputDiagnostic) => void;
1324
1374
  /** Reject known unsupported content before creating an incomplete file. Default warn. */
1325
1375
  fidelity?: "warn" | "strict";
1376
+ /** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
1377
+ diagnosticLimit?: number;
1326
1378
  }
1327
1379
  declare interface OutputDiagnosticOptions_2 extends OutputTaskOptions_2 {
1328
1380
  /** Structured fidelity diagnostics; rendering never silently invents missing content. */
1329
1381
  onDiagnostic?: (diagnostic: OutputDiagnostic_2) => void;
1330
1382
  /** Reject known unsupported content before creating an incomplete file. Default warn. */
1331
1383
  fidelity?: "warn" | "strict";
1384
+ /** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
1385
+ diagnosticLimit?: number;
1332
1386
  }
1333
1387
  declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
1334
1388
  declare type OutputFormat_2 = "dom" | "canvas" | "pdf" | "xlsx";
@@ -2024,7 +2078,7 @@ declare interface ReportDefinition {
2024
2078
  params?: ReportParamDef[];
2025
2079
  pagination?: PaginateOptions;
2026
2080
  }
2027
- declare interface ReportDiagnostic {
2081
+ declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
2028
2082
  code: string;
2029
2083
  message: string;
2030
2084
  path?: string;
@@ -2033,6 +2087,15 @@ declare interface ReportDiagnostic {
2033
2087
  valueState?: ReportValueState;
2034
2088
  target?: ReportDataTarget;
2035
2089
  }
2090
+ declare interface ReportDiagnostic_2 extends Partial<Pick<OutputDiagnostic_2, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
2091
+ code: string;
2092
+ message: string;
2093
+ path?: string;
2094
+ severity: "warning" | "error" | "info";
2095
+ /** Optional explanation supplied by the business source, not inferred from blank cells. */
2096
+ valueState?: ReportValueState_2;
2097
+ target?: ReportDataTarget_2;
2098
+ }
2036
2099
  declare type ReportDiscardReason = "reload" | "import" | "replace" | "leave";
2037
2100
  /** Serializable action metadata. URLs, scripts and automatic navigation are deliberately absent. */
2038
2101
  declare interface ReportDrillAction {
@@ -2083,6 +2146,13 @@ declare interface ReportEditBatch {
2083
2146
  edits: ReportCellEdit_2[];
2084
2147
  }
2085
2148
  declare interface ReportEditConflict {
2149
+ source?: Readonly<ReportCellSource>;
2150
+ address?: ReportCellAddress;
2151
+ message: string;
2152
+ currentValue?: ReportCellValue;
2153
+ revision?: string | number;
2154
+ }
2155
+ declare interface ReportEditConflict_2 {
2086
2156
  source?: Readonly<ReportCellSource_2>;
2087
2157
  address?: ReportCellAddress_2;
2088
2158
  message: string;
@@ -2122,13 +2192,16 @@ declare interface ReportEditOperation {
2122
2192
  signal: AbortSignal;
2123
2193
  requestId?: string;
2124
2194
  action?: "edit" | "undo" | "redo" | "restore";
2195
+ /** Immutable context of the report being edited. */
2196
+ query?: Readonly<ReportEditQueryContext>;
2125
2197
  }
2198
+ declare type ReportEditQueryContext = ReportQueryContext;
2126
2199
  declare interface ReportEditResult {
2127
2200
  /** A successful result may advance concurrency tokens for the affected dataset. */
2128
2201
  revision?: string | number;
2129
2202
  sourceToken?: string;
2130
2203
  /** Any conflict rejects the entire client batch. A server must also transact atomically. */
2131
- conflicts?: readonly ReportEditConflict[];
2204
+ conflicts?: readonly ReportEditConflict_2[];
2132
2205
  }
2133
2206
  /** 报表含表头但业务行为空时,由接入方明确声明;组件不推测业务数据。 */
2134
2207
  declare interface ReportEmptyState {
@@ -2500,17 +2573,8 @@ declare interface ReportPreviewDataTarget extends ReportDataTarget_2 {
2500
2573
  /** Added by the query adapter; isolates identical dataset/row/field identities across reports. */
2501
2574
  reportScope?: string;
2502
2575
  }
2503
- declare interface ReportPreviewDiagnostic {
2504
- valueState?: ReportValueState_2;
2576
+ declare interface ReportPreviewDiagnostic extends ReportDiagnostic_2 {
2505
2577
  target?: ReportPreviewDataTarget;
2506
- code: string;
2507
- severity: "warning" | "error" | "info";
2508
- message: string;
2509
- path?: string;
2510
- format?: OutputFormat;
2511
- pageIndex?: number;
2512
- componentIndex?: number;
2513
- componentPath?: readonly number[];
2514
2578
  }
2515
2579
  declare type ReportPreviewPreferences = Record<ReportPreviewTool, boolean>;
2516
2580
  declare interface ReportPreviewTask {
@@ -2561,6 +2625,10 @@ declare interface ReportProvider {
2561
2625
  export?(input: ReportProviderExportInput): ReportProviderExportResult | Promise<ReportProviderExportResult>;
2562
2626
  templates?: ReportTemplateProvider;
2563
2627
  }
2628
+ declare interface ReportProviderConflict extends Pick<ReportEditConflict, "message" | "currentValue" | "revision"> {
2629
+ editIndex: number;
2630
+ code: string;
2631
+ }
2564
2632
  declare interface ReportProviderExportInput extends ReportLoadContext {
2565
2633
  format: "pdf" | "xlsx";
2566
2634
  }
@@ -2570,12 +2638,27 @@ declare interface ReportProviderExportResult {
2570
2638
  fileName?: string;
2571
2639
  diagnostics?: ReportDiagnostic[];
2572
2640
  }
2641
+ /** Context of an accepted query, independent of an unsubmitted filter form. */
2642
+ declare interface ReportQueryContext {
2643
+ queryId?: string;
2644
+ reportIds: readonly string[];
2645
+ params: Readonly<Record<string, string>>;
2646
+ sources: readonly Readonly<ReportQuerySource>[];
2647
+ }
2573
2648
  declare interface ReportQueryResult {
2574
2649
  datasets: DatasetRows;
2575
2650
  revision?: string;
2576
2651
  sourceToken?: string;
2577
2652
  diagnostics?: ReportDiagnostic[];
2578
2653
  }
2654
+ /** One ordered query occurrence, shared by browser editing and Node preparation. */
2655
+ declare interface ReportQuerySource {
2656
+ reportId: string;
2657
+ reportIndex: number;
2658
+ reportScope: string;
2659
+ revision?: string;
2660
+ sourceToken?: string;
2661
+ }
2579
2662
  /** Explicit refresh policy. The key identifies template/layout revisions outside query parameters. */
2580
2663
  declare interface ReportRefreshOptions {
2581
2664
  retainPrevious?: boolean;
@@ -2609,11 +2692,7 @@ declare interface ReportSaveInput extends ReportLoadContext {
2609
2692
  declare interface ReportSaveResult {
2610
2693
  revision: string;
2611
2694
  sourceToken?: string;
2612
- conflicts?: Array<{
2613
- editIndex: number;
2614
- code: string;
2615
- message: string;
2616
- }>;
2695
+ conflicts?: ReportProviderConflict[];
2617
2696
  diagnostics?: ReportDiagnostic[];
2618
2697
  }
2619
2698
  declare interface ReportStoredPreferences extends Partial<ReportPreviewPreferences> {
@@ -459,15 +459,9 @@ declare type __VLS_Props_3 = {
459
459
  };
460
460
  declare type __VLS_Props_4 = {
461
461
  issues: readonly ReportValidationIssue[];
462
- messages?: Partial<{
463
- title: string;
464
- error: string;
465
- warning: string;
466
- locate: string;
467
- dataset: string;
468
- row: string;
469
- more: string;
470
- }>;
462
+ messages?: Partial<ReportValidationPanelMessages>;
463
+ plan?: RenderPlan | null;
464
+ busy?: boolean;
471
465
  };
472
466
  declare type __VLS_Props_5 = {
473
467
  state: ReportPrefillState;
@@ -932,6 +926,26 @@ declare interface ComputedField_3 extends ExpressionOptions_3 {
932
926
  dependsOn?: readonly string[];
933
927
  }
934
928
  declare type ConfigRef = ComputedRef<MachReportConfig | null>;
929
+ declare interface ConflictReviewMessages {
930
+ conflictReviewTitle: string;
931
+ conflictReviewDescription: string;
932
+ conflictReviewRefresh: string;
933
+ conflictReviewLoading: string;
934
+ conflictReviewApply: string;
935
+ conflictReviewOriginal: string;
936
+ conflictReviewLocal: string;
937
+ conflictReviewServer: string;
938
+ conflictReviewChoose: string;
939
+ conflictReviewMissing: string;
940
+ conflictReviewAmbiguous: string;
941
+ conflictReviewReadonly: string;
942
+ conflictReviewUnavailable: string;
943
+ conflictReviewCount: string;
944
+ conflictReviewSearch: string;
945
+ conflictReviewEmpty: string;
946
+ conflictReviewStale: string;
947
+ conflictReviewRetained: string;
948
+ }
935
949
  /**
936
950
  * 默认 PDF 导出器:
937
951
  * - 懒加载 @agile-team/mach-report/pdf(含 pdf-lib,只在首次导出时进 bundle)
@@ -952,7 +966,7 @@ export declare function createLocalFetcher(entries: Record<string, LocalTemplate
952
966
  /** Independent physical test page. Its ruler is measured in millimetres, never CSS pixels. */
953
967
  export declare function createPrintCalibrationPlan(widthMm: number, heightMm: number): RenderPlan;
954
968
  /** Explicit persistence bridge. Merely registering ReportProvider never enables editing or saving. */
955
- export declare function createProviderEditing(provider: ReportProvider, options: ProviderEditingOptions): ReportEditingOptions;
969
+ export declare function createProviderEditing(provider: ReportProvider, options?: ProviderEditingOptions): ReportEditingOptions;
956
970
  /** Optional browser convenience adapter. Access errors are handled by the preview. */
957
971
  export declare function createReportStoragePreferences(storage: Pick<Storage, "getItem" | "setItem" | "removeItem">): ReportPreferencesAdapter;
958
972
  declare type Current<T> = T | (() => T);
@@ -980,6 +994,18 @@ export declare interface DefaultPdfExporterOptions {
980
994
  export declare function defineMachReportConfig(config?: MachReportConfigInput): MachReportConfig;
981
995
  /** 类型化 preset 声明 */
982
996
  export declare function defineMachReportPreset(preset: MachReportPreset): MachReportPreset;
997
+ /** Bounded detail window with exact occurrence totals. Unknown business codes beyond 128 buckets share `other`. */
998
+ declare interface DiagnosticSummary<T> {
999
+ readonly total: number;
1000
+ readonly counts: Readonly<Record<string, number>>;
1001
+ readonly entries: readonly T[];
1002
+ readonly omitted: number;
1003
+ /** Business value explanations form a separate presentation channel, including omitted locations. */
1004
+ readonly explanations?: {
1005
+ readonly total: number;
1006
+ readonly counts: Readonly<Record<string, number>>;
1007
+ };
1008
+ }
983
1009
  declare interface ExcelImportedSheet {
984
1010
  name: string;
985
1011
  /** Original, one-based workbook position. */
@@ -1753,7 +1779,7 @@ export declare type MachReportLogger = Pick<Console, "warn" | "info">;
1753
1779
  * - 优先级:组件 props > 路由级叠加 > preset > defaults(props 永远最高)
1754
1780
  */
1755
1781
  /** 工具栏与状态文案(默认简体中文;出海场景覆写) */
1756
- export declare interface MachReportMessages extends Partial<ReportCalculationMessages>, Partial<ReportDataReviewMessages>, ReportPrintMessages, ReportParamOptionsMessages {
1782
+ export declare interface MachReportMessages extends Partial<ReportCalculationMessages>, Partial<ReportDataReviewMessages>, Partial<ConflictReviewMessages>, ReportPrintMessages, ReportParamOptionsMessages {
1757
1783
  previousSnapshot?: string;
1758
1784
  reviewTools?: string;
1759
1785
  validationTitle?: string;
@@ -1762,6 +1788,21 @@ export declare interface MachReportMessages extends Partial<ReportCalculationMes
1762
1788
  validationDataset?: string;
1763
1789
  validationRow?: string;
1764
1790
  validationMore?: string;
1791
+ validationSearch?: string;
1792
+ validationSearchPlaceholder?: string;
1793
+ validationSeverity?: string;
1794
+ validationAllSeverities?: string;
1795
+ validationDatasetFilter?: string;
1796
+ validationAllDatasets?: string;
1797
+ validationResults?: string;
1798
+ validationRange?: string;
1799
+ validationPage?: string;
1800
+ validationEmpty?: string;
1801
+ validationNoMatches?: string;
1802
+ validationClear?: string;
1803
+ validationLoading?: string;
1804
+ validationUnavailable?: string;
1805
+ validationFailureSummary?: string;
1765
1806
  drillActions?: string;
1766
1807
  drillOpening?: string;
1767
1808
  drillMissingValue?: string;
@@ -1932,6 +1973,8 @@ export declare interface MachReportMessages extends Partial<ReportCalculationMes
1932
1973
  diagnosticsTitle?: string;
1933
1974
  diagnosticsSearch?: string;
1934
1975
  diagnosticsMore?: string;
1976
+ diagnosticsOmitted?: string;
1977
+ diagnosticsShowMore?: string;
1935
1978
  diagnosticsLocate?: string;
1936
1979
  diagnosticsLocation?: string;
1937
1980
  diagnosticsStrict?: string;
@@ -2009,6 +2052,7 @@ export declare interface MachReportState {
2009
2052
  readonly pendingLocalChanges?: boolean;
2010
2053
  readonly task?: Readonly<ReportPreviewTask> | null;
2011
2054
  readonly diagnostics?: readonly Readonly<ReportPreviewDiagnostic>[];
2055
+ readonly diagnosticSummary?: DiagnosticSummary<Readonly<ReportPreviewDiagnostic>>;
2012
2056
  /** Context of the displayed API snapshot, which can differ from an unexecuted query form. */
2013
2057
  readonly reportIds?: readonly string[];
2014
2058
  readonly params?: Readonly<Record<string, string>>;
@@ -2207,12 +2251,16 @@ declare interface OutputDiagnosticOptions extends OutputTaskOptions {
2207
2251
  onDiagnostic?: (diagnostic: OutputDiagnostic) => void;
2208
2252
  /** Reject known unsupported content before creating an incomplete file. Default warn. */
2209
2253
  fidelity?: "warn" | "strict";
2254
+ /** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
2255
+ diagnosticLimit?: number;
2210
2256
  }
2211
2257
  declare interface OutputDiagnosticOptions_2 extends OutputTaskOptions_2 {
2212
2258
  /** Structured fidelity diagnostics; rendering never silently invents missing content. */
2213
2259
  onDiagnostic?: (diagnostic: OutputDiagnostic_2) => void;
2214
2260
  /** Reject known unsupported content before creating an incomplete file. Default warn. */
2215
2261
  fidelity?: "warn" | "strict";
2262
+ /** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
2263
+ diagnosticLimit?: number;
2216
2264
  }
2217
2265
  declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
2218
2266
  declare type OutputFormat_2 = "dom" | "canvas" | "pdf" | "xlsx";
@@ -2508,7 +2556,7 @@ export declare function printPlans(plans: RenderPlan_2[], options?: {
2508
2556
  */
2509
2557
  export declare function provideMachReportConfig(overlay: MachReportConfigInput | MachReportDefaults): void;
2510
2558
  export declare interface ProviderEditingOptions extends Pick<ReportEditingOptions, "canEdit" | "readOnlyReason" | "history" | "fields" | "validate" | "validation" | "validateBatch" | "requireSource"> {
2511
- reportId: Current<string>;
2559
+ reportId?: Current<string>;
2512
2560
  params?: Current<Record<string, string>>;
2513
2561
  /** Getters are useful when query metadata is held by the host. Otherwise stable cell sources are used. */
2514
2562
  expectedRevision?: Current<string | undefined>;
@@ -3008,7 +3056,7 @@ declare interface ReportDefinition {
3008
3056
  params?: ReportParamDef[];
3009
3057
  pagination?: PaginateOptions;
3010
3058
  }
3011
- declare interface ReportDiagnostic {
3059
+ declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
3012
3060
  code: string;
3013
3061
  message: string;
3014
3062
  path?: string;
@@ -3017,6 +3065,15 @@ declare interface ReportDiagnostic {
3017
3065
  valueState?: ReportValueState;
3018
3066
  target?: ReportDataTarget;
3019
3067
  }
3068
+ declare interface ReportDiagnostic_2 extends Partial<Pick<OutputDiagnostic_2, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
3069
+ code: string;
3070
+ message: string;
3071
+ path?: string;
3072
+ severity: "warning" | "error" | "info";
3073
+ /** Optional explanation supplied by the business source, not inferred from blank cells. */
3074
+ valueState?: ReportValueState_2;
3075
+ target?: ReportDataTarget_2;
3076
+ }
3020
3077
  export declare type ReportDiscardReason = "reload" | "import" | "replace" | "leave";
3021
3078
  /** Serializable action metadata. URLs, scripts and automatic navigation are deliberately absent. */
3022
3079
  declare interface ReportDrillAction {
@@ -3073,6 +3130,13 @@ declare interface ReportEditConflict {
3073
3130
  currentValue?: ReportCellValue;
3074
3131
  revision?: string | number;
3075
3132
  }
3133
+ declare interface ReportEditConflict_2 {
3134
+ source?: Readonly<ReportCellSource_2>;
3135
+ address?: ReportCellAddress_2;
3136
+ message: string;
3137
+ currentValue?: ReportCellValue_2;
3138
+ revision?: string | number;
3139
+ }
3076
3140
  export declare interface ReportEditHistoryOptions {
3077
3141
  /** Retained undo/redo transactions. Default 100. Zero disables undo retention. */
3078
3142
  maxSteps?: number;
@@ -3106,7 +3170,10 @@ export declare interface ReportEditOperation {
3106
3170
  signal: AbortSignal;
3107
3171
  requestId?: string;
3108
3172
  action?: "edit" | "undo" | "redo" | "restore";
3173
+ /** Immutable context of the report being edited. */
3174
+ query?: Readonly<ReportEditQueryContext>;
3109
3175
  }
3176
+ export declare type ReportEditQueryContext = ReportQueryContext;
3110
3177
  declare interface ReportEditResult {
3111
3178
  /** A successful result may advance concurrency tokens for the affected dataset. */
3112
3179
  revision?: string | number;
@@ -3611,17 +3678,8 @@ export declare interface ReportPreviewDataTarget extends ReportDataTarget_2 {
3611
3678
  /** Added by the query adapter; isolates identical dataset/row/field identities across reports. */
3612
3679
  reportScope?: string;
3613
3680
  }
3614
- export declare interface ReportPreviewDiagnostic {
3615
- valueState?: ReportValueState_2;
3681
+ export declare interface ReportPreviewDiagnostic extends ReportDiagnostic_2 {
3616
3682
  target?: ReportPreviewDataTarget;
3617
- code: string;
3618
- severity: "warning" | "error" | "info";
3619
- message: string;
3620
- path?: string;
3621
- format?: OutputFormat;
3622
- pageIndex?: number;
3623
- componentIndex?: number;
3624
- componentPath?: readonly number[];
3625
3683
  }
3626
3684
  export declare type ReportPreviewPreferences = Record<ReportPreviewTool, boolean>;
3627
3685
  export declare interface ReportPreviewTask {
@@ -3678,6 +3736,10 @@ declare interface ReportProvider {
3678
3736
  export?(input: ReportProviderExportInput): ReportProviderExportResult | Promise<ReportProviderExportResult>;
3679
3737
  templates?: ReportTemplateProvider;
3680
3738
  }
3739
+ declare interface ReportProviderConflict extends Pick<ReportEditConflict_2, "message" | "currentValue" | "revision"> {
3740
+ editIndex: number;
3741
+ code: string;
3742
+ }
3681
3743
  declare interface ReportProviderExportInput extends ReportLoadContext {
3682
3744
  format: "pdf" | "xlsx";
3683
3745
  }
@@ -3687,12 +3749,27 @@ declare interface ReportProviderExportResult {
3687
3749
  fileName?: string;
3688
3750
  diagnostics?: ReportDiagnostic[];
3689
3751
  }
3752
+ /** Context of an accepted query, independent of an unsubmitted filter form. */
3753
+ declare interface ReportQueryContext {
3754
+ queryId?: string;
3755
+ reportIds: readonly string[];
3756
+ params: Readonly<Record<string, string>>;
3757
+ sources: readonly Readonly<ReportQuerySource>[];
3758
+ }
3690
3759
  declare interface ReportQueryResult {
3691
3760
  datasets: DatasetRows;
3692
3761
  revision?: string;
3693
3762
  sourceToken?: string;
3694
3763
  diagnostics?: ReportDiagnostic[];
3695
3764
  }
3765
+ /** One ordered query occurrence, shared by browser editing and Node preparation. */
3766
+ declare interface ReportQuerySource {
3767
+ reportId: string;
3768
+ reportIndex: number;
3769
+ reportScope: string;
3770
+ revision?: string;
3771
+ sourceToken?: string;
3772
+ }
3696
3773
  /** Explicit refresh policy. The key identifies template/layout revisions outside query parameters. */
3697
3774
  export declare interface ReportRefreshOptions {
3698
3775
  retainPrevious?: boolean;
@@ -3726,11 +3803,7 @@ declare interface ReportSaveInput extends ReportLoadContext {
3726
3803
  declare interface ReportSaveResult {
3727
3804
  revision: string;
3728
3805
  sourceToken?: string;
3729
- conflicts?: Array<{
3730
- editIndex: number;
3731
- code: string;
3732
- message: string;
3733
- }>;
3806
+ conflicts?: ReportProviderConflict[];
3734
3807
  diagnostics?: ReportDiagnostic[];
3735
3808
  }
3736
3809
  export declare interface ReportSection {
@@ -3902,6 +3975,32 @@ export declare const ReportValidationPanel: DefineComponent<__VLS_Props_4, {}, {
3902
3975
  }, string, MachReportVuePublicProps, Readonly<__VLS_Props_4> & Readonly<{
3903
3976
  onLocate?: ((issue: ReportValidationIssue) => any) | undefined;
3904
3977
  }>, {}>;
3978
+ declare interface ReportValidationPanelMessages {
3979
+ title: string;
3980
+ error: string;
3981
+ warning: string;
3982
+ locate: string;
3983
+ dataset: string;
3984
+ row: string;
3985
+ /** Kept for existing message overrides; every issue is now reachable by pagination. */
3986
+ more: string;
3987
+ search: string;
3988
+ searchPlaceholder: string;
3989
+ severity: string;
3990
+ allSeverities: string;
3991
+ datasetFilter: string;
3992
+ allDatasets: string;
3993
+ results: string;
3994
+ range: string;
3995
+ previous: string;
3996
+ next: string;
3997
+ page: string;
3998
+ empty: string;
3999
+ noMatches: string;
4000
+ clear: string;
4001
+ loading: string;
4002
+ unavailable: string;
4003
+ }
3905
4004
  declare interface ReportValidationRule {
3906
4005
  id: string;
3907
4006
  /** Optional target; omitted applies to each candidate dataset. */