@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/vue/async.d.cts
CHANGED
|
@@ -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>>;
|
|
@@ -1179,6 +1229,8 @@ declare interface MachReportStateError {
|
|
|
1179
1229
|
}
|
|
1180
1230
|
/** 主题变量(组件外壳注入的 --mrp-* CSS 自定义属性) */
|
|
1181
1231
|
declare interface MachReportTheme {
|
|
1232
|
+
/** Native controls follow the host's declared light/dark palette. */
|
|
1233
|
+
colorScheme?: "light" | "dark";
|
|
1182
1234
|
/** 空态插图强调色,不随正文颜色变灰。 */
|
|
1183
1235
|
emptyAccent?: string;
|
|
1184
1236
|
shellBg: string;
|
|
@@ -1191,6 +1243,11 @@ declare interface MachReportTheme {
|
|
|
1191
1243
|
btnHoverBg: string;
|
|
1192
1244
|
btnHoverFg: string;
|
|
1193
1245
|
btnActiveBg: string;
|
|
1246
|
+
/** Foreground on solid primary actions. Optional for existing complete themes. */
|
|
1247
|
+
btnActiveFg?: string;
|
|
1248
|
+
errorFg?: string;
|
|
1249
|
+
warningFg?: string;
|
|
1250
|
+
successFg?: string;
|
|
1194
1251
|
}
|
|
1195
1252
|
declare interface MachReportToolbarOptions {
|
|
1196
1253
|
/** Reasons explain host restrictions without granting capabilities. */
|
|
@@ -1316,12 +1373,16 @@ declare interface OutputDiagnosticOptions extends OutputTaskOptions {
|
|
|
1316
1373
|
onDiagnostic?: (diagnostic: OutputDiagnostic) => void;
|
|
1317
1374
|
/** Reject known unsupported content before creating an incomplete file. Default warn. */
|
|
1318
1375
|
fidelity?: "warn" | "strict";
|
|
1376
|
+
/** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
|
|
1377
|
+
diagnosticLimit?: number;
|
|
1319
1378
|
}
|
|
1320
1379
|
declare interface OutputDiagnosticOptions_2 extends OutputTaskOptions_2 {
|
|
1321
1380
|
/** Structured fidelity diagnostics; rendering never silently invents missing content. */
|
|
1322
1381
|
onDiagnostic?: (diagnostic: OutputDiagnostic_2) => void;
|
|
1323
1382
|
/** Reject known unsupported content before creating an incomplete file. Default warn. */
|
|
1324
1383
|
fidelity?: "warn" | "strict";
|
|
1384
|
+
/** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
|
|
1385
|
+
diagnosticLimit?: number;
|
|
1325
1386
|
}
|
|
1326
1387
|
declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
|
|
1327
1388
|
declare type OutputFormat_2 = "dom" | "canvas" | "pdf" | "xlsx";
|
|
@@ -2017,7 +2078,7 @@ declare interface ReportDefinition {
|
|
|
2017
2078
|
params?: ReportParamDef[];
|
|
2018
2079
|
pagination?: PaginateOptions;
|
|
2019
2080
|
}
|
|
2020
|
-
declare interface ReportDiagnostic {
|
|
2081
|
+
declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
|
|
2021
2082
|
code: string;
|
|
2022
2083
|
message: string;
|
|
2023
2084
|
path?: string;
|
|
@@ -2026,6 +2087,15 @@ declare interface ReportDiagnostic {
|
|
|
2026
2087
|
valueState?: ReportValueState;
|
|
2027
2088
|
target?: ReportDataTarget;
|
|
2028
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
|
+
}
|
|
2029
2099
|
declare type ReportDiscardReason = "reload" | "import" | "replace" | "leave";
|
|
2030
2100
|
/** Serializable action metadata. URLs, scripts and automatic navigation are deliberately absent. */
|
|
2031
2101
|
declare interface ReportDrillAction {
|
|
@@ -2076,6 +2146,13 @@ declare interface ReportEditBatch {
|
|
|
2076
2146
|
edits: ReportCellEdit_2[];
|
|
2077
2147
|
}
|
|
2078
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 {
|
|
2079
2156
|
source?: Readonly<ReportCellSource_2>;
|
|
2080
2157
|
address?: ReportCellAddress_2;
|
|
2081
2158
|
message: string;
|
|
@@ -2115,13 +2192,16 @@ declare interface ReportEditOperation {
|
|
|
2115
2192
|
signal: AbortSignal;
|
|
2116
2193
|
requestId?: string;
|
|
2117
2194
|
action?: "edit" | "undo" | "redo" | "restore";
|
|
2195
|
+
/** Immutable context of the report being edited. */
|
|
2196
|
+
query?: Readonly<ReportEditQueryContext>;
|
|
2118
2197
|
}
|
|
2198
|
+
declare type ReportEditQueryContext = ReportQueryContext;
|
|
2119
2199
|
declare interface ReportEditResult {
|
|
2120
2200
|
/** A successful result may advance concurrency tokens for the affected dataset. */
|
|
2121
2201
|
revision?: string | number;
|
|
2122
2202
|
sourceToken?: string;
|
|
2123
2203
|
/** Any conflict rejects the entire client batch. A server must also transact atomically. */
|
|
2124
|
-
conflicts?: readonly
|
|
2204
|
+
conflicts?: readonly ReportEditConflict_2[];
|
|
2125
2205
|
}
|
|
2126
2206
|
/** 报表含表头但业务行为空时,由接入方明确声明;组件不推测业务数据。 */
|
|
2127
2207
|
declare interface ReportEmptyState {
|
|
@@ -2493,17 +2573,8 @@ declare interface ReportPreviewDataTarget extends ReportDataTarget_2 {
|
|
|
2493
2573
|
/** Added by the query adapter; isolates identical dataset/row/field identities across reports. */
|
|
2494
2574
|
reportScope?: string;
|
|
2495
2575
|
}
|
|
2496
|
-
declare interface ReportPreviewDiagnostic {
|
|
2497
|
-
valueState?: ReportValueState_2;
|
|
2576
|
+
declare interface ReportPreviewDiagnostic extends ReportDiagnostic_2 {
|
|
2498
2577
|
target?: ReportPreviewDataTarget;
|
|
2499
|
-
code: string;
|
|
2500
|
-
severity: "warning" | "error" | "info";
|
|
2501
|
-
message: string;
|
|
2502
|
-
path?: string;
|
|
2503
|
-
format?: OutputFormat;
|
|
2504
|
-
pageIndex?: number;
|
|
2505
|
-
componentIndex?: number;
|
|
2506
|
-
componentPath?: readonly number[];
|
|
2507
2578
|
}
|
|
2508
2579
|
declare type ReportPreviewPreferences = Record<ReportPreviewTool, boolean>;
|
|
2509
2580
|
declare interface ReportPreviewTask {
|
|
@@ -2554,6 +2625,10 @@ declare interface ReportProvider {
|
|
|
2554
2625
|
export?(input: ReportProviderExportInput): ReportProviderExportResult | Promise<ReportProviderExportResult>;
|
|
2555
2626
|
templates?: ReportTemplateProvider;
|
|
2556
2627
|
}
|
|
2628
|
+
declare interface ReportProviderConflict extends Pick<ReportEditConflict, "message" | "currentValue" | "revision"> {
|
|
2629
|
+
editIndex: number;
|
|
2630
|
+
code: string;
|
|
2631
|
+
}
|
|
2557
2632
|
declare interface ReportProviderExportInput extends ReportLoadContext {
|
|
2558
2633
|
format: "pdf" | "xlsx";
|
|
2559
2634
|
}
|
|
@@ -2563,12 +2638,27 @@ declare interface ReportProviderExportResult {
|
|
|
2563
2638
|
fileName?: string;
|
|
2564
2639
|
diagnostics?: ReportDiagnostic[];
|
|
2565
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
|
+
}
|
|
2566
2648
|
declare interface ReportQueryResult {
|
|
2567
2649
|
datasets: DatasetRows;
|
|
2568
2650
|
revision?: string;
|
|
2569
2651
|
sourceToken?: string;
|
|
2570
2652
|
diagnostics?: ReportDiagnostic[];
|
|
2571
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
|
+
}
|
|
2572
2662
|
/** Explicit refresh policy. The key identifies template/layout revisions outside query parameters. */
|
|
2573
2663
|
declare interface ReportRefreshOptions {
|
|
2574
2664
|
retainPrevious?: boolean;
|
|
@@ -2602,11 +2692,7 @@ declare interface ReportSaveInput extends ReportLoadContext {
|
|
|
2602
2692
|
declare interface ReportSaveResult {
|
|
2603
2693
|
revision: string;
|
|
2604
2694
|
sourceToken?: string;
|
|
2605
|
-
conflicts?:
|
|
2606
|
-
editIndex: number;
|
|
2607
|
-
code: string;
|
|
2608
|
-
message: string;
|
|
2609
|
-
}>;
|
|
2695
|
+
conflicts?: ReportProviderConflict[];
|
|
2610
2696
|
diagnostics?: ReportDiagnostic[];
|
|
2611
2697
|
}
|
|
2612
2698
|
declare interface ReportStoredPreferences extends Partial<ReportPreviewPreferences> {
|
package/dist/vue/async.d.ts
CHANGED
|
@@ -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>>;
|
|
@@ -1179,6 +1229,8 @@ declare interface MachReportStateError {
|
|
|
1179
1229
|
}
|
|
1180
1230
|
/** 主题变量(组件外壳注入的 --mrp-* CSS 自定义属性) */
|
|
1181
1231
|
declare interface MachReportTheme {
|
|
1232
|
+
/** Native controls follow the host's declared light/dark palette. */
|
|
1233
|
+
colorScheme?: "light" | "dark";
|
|
1182
1234
|
/** 空态插图强调色,不随正文颜色变灰。 */
|
|
1183
1235
|
emptyAccent?: string;
|
|
1184
1236
|
shellBg: string;
|
|
@@ -1191,6 +1243,11 @@ declare interface MachReportTheme {
|
|
|
1191
1243
|
btnHoverBg: string;
|
|
1192
1244
|
btnHoverFg: string;
|
|
1193
1245
|
btnActiveBg: string;
|
|
1246
|
+
/** Foreground on solid primary actions. Optional for existing complete themes. */
|
|
1247
|
+
btnActiveFg?: string;
|
|
1248
|
+
errorFg?: string;
|
|
1249
|
+
warningFg?: string;
|
|
1250
|
+
successFg?: string;
|
|
1194
1251
|
}
|
|
1195
1252
|
declare interface MachReportToolbarOptions {
|
|
1196
1253
|
/** Reasons explain host restrictions without granting capabilities. */
|
|
@@ -1316,12 +1373,16 @@ declare interface OutputDiagnosticOptions extends OutputTaskOptions {
|
|
|
1316
1373
|
onDiagnostic?: (diagnostic: OutputDiagnostic) => void;
|
|
1317
1374
|
/** Reject known unsupported content before creating an incomplete file. Default warn. */
|
|
1318
1375
|
fidelity?: "warn" | "strict";
|
|
1376
|
+
/** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
|
|
1377
|
+
diagnosticLimit?: number;
|
|
1319
1378
|
}
|
|
1320
1379
|
declare interface OutputDiagnosticOptions_2 extends OutputTaskOptions_2 {
|
|
1321
1380
|
/** Structured fidelity diagnostics; rendering never silently invents missing content. */
|
|
1322
1381
|
onDiagnostic?: (diagnostic: OutputDiagnostic_2) => void;
|
|
1323
1382
|
/** Reject known unsupported content before creating an incomplete file. Default warn. */
|
|
1324
1383
|
fidelity?: "warn" | "strict";
|
|
1384
|
+
/** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
|
|
1385
|
+
diagnosticLimit?: number;
|
|
1325
1386
|
}
|
|
1326
1387
|
declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
|
|
1327
1388
|
declare type OutputFormat_2 = "dom" | "canvas" | "pdf" | "xlsx";
|
|
@@ -2017,7 +2078,7 @@ declare interface ReportDefinition {
|
|
|
2017
2078
|
params?: ReportParamDef[];
|
|
2018
2079
|
pagination?: PaginateOptions;
|
|
2019
2080
|
}
|
|
2020
|
-
declare interface ReportDiagnostic {
|
|
2081
|
+
declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
|
|
2021
2082
|
code: string;
|
|
2022
2083
|
message: string;
|
|
2023
2084
|
path?: string;
|
|
@@ -2026,6 +2087,15 @@ declare interface ReportDiagnostic {
|
|
|
2026
2087
|
valueState?: ReportValueState;
|
|
2027
2088
|
target?: ReportDataTarget;
|
|
2028
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
|
+
}
|
|
2029
2099
|
declare type ReportDiscardReason = "reload" | "import" | "replace" | "leave";
|
|
2030
2100
|
/** Serializable action metadata. URLs, scripts and automatic navigation are deliberately absent. */
|
|
2031
2101
|
declare interface ReportDrillAction {
|
|
@@ -2076,6 +2146,13 @@ declare interface ReportEditBatch {
|
|
|
2076
2146
|
edits: ReportCellEdit_2[];
|
|
2077
2147
|
}
|
|
2078
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 {
|
|
2079
2156
|
source?: Readonly<ReportCellSource_2>;
|
|
2080
2157
|
address?: ReportCellAddress_2;
|
|
2081
2158
|
message: string;
|
|
@@ -2115,13 +2192,16 @@ declare interface ReportEditOperation {
|
|
|
2115
2192
|
signal: AbortSignal;
|
|
2116
2193
|
requestId?: string;
|
|
2117
2194
|
action?: "edit" | "undo" | "redo" | "restore";
|
|
2195
|
+
/** Immutable context of the report being edited. */
|
|
2196
|
+
query?: Readonly<ReportEditQueryContext>;
|
|
2118
2197
|
}
|
|
2198
|
+
declare type ReportEditQueryContext = ReportQueryContext;
|
|
2119
2199
|
declare interface ReportEditResult {
|
|
2120
2200
|
/** A successful result may advance concurrency tokens for the affected dataset. */
|
|
2121
2201
|
revision?: string | number;
|
|
2122
2202
|
sourceToken?: string;
|
|
2123
2203
|
/** Any conflict rejects the entire client batch. A server must also transact atomically. */
|
|
2124
|
-
conflicts?: readonly
|
|
2204
|
+
conflicts?: readonly ReportEditConflict_2[];
|
|
2125
2205
|
}
|
|
2126
2206
|
/** 报表含表头但业务行为空时,由接入方明确声明;组件不推测业务数据。 */
|
|
2127
2207
|
declare interface ReportEmptyState {
|
|
@@ -2493,17 +2573,8 @@ declare interface ReportPreviewDataTarget extends ReportDataTarget_2 {
|
|
|
2493
2573
|
/** Added by the query adapter; isolates identical dataset/row/field identities across reports. */
|
|
2494
2574
|
reportScope?: string;
|
|
2495
2575
|
}
|
|
2496
|
-
declare interface ReportPreviewDiagnostic {
|
|
2497
|
-
valueState?: ReportValueState_2;
|
|
2576
|
+
declare interface ReportPreviewDiagnostic extends ReportDiagnostic_2 {
|
|
2498
2577
|
target?: ReportPreviewDataTarget;
|
|
2499
|
-
code: string;
|
|
2500
|
-
severity: "warning" | "error" | "info";
|
|
2501
|
-
message: string;
|
|
2502
|
-
path?: string;
|
|
2503
|
-
format?: OutputFormat;
|
|
2504
|
-
pageIndex?: number;
|
|
2505
|
-
componentIndex?: number;
|
|
2506
|
-
componentPath?: readonly number[];
|
|
2507
2578
|
}
|
|
2508
2579
|
declare type ReportPreviewPreferences = Record<ReportPreviewTool, boolean>;
|
|
2509
2580
|
declare interface ReportPreviewTask {
|
|
@@ -2554,6 +2625,10 @@ declare interface ReportProvider {
|
|
|
2554
2625
|
export?(input: ReportProviderExportInput): ReportProviderExportResult | Promise<ReportProviderExportResult>;
|
|
2555
2626
|
templates?: ReportTemplateProvider;
|
|
2556
2627
|
}
|
|
2628
|
+
declare interface ReportProviderConflict extends Pick<ReportEditConflict, "message" | "currentValue" | "revision"> {
|
|
2629
|
+
editIndex: number;
|
|
2630
|
+
code: string;
|
|
2631
|
+
}
|
|
2557
2632
|
declare interface ReportProviderExportInput extends ReportLoadContext {
|
|
2558
2633
|
format: "pdf" | "xlsx";
|
|
2559
2634
|
}
|
|
@@ -2563,12 +2638,27 @@ declare interface ReportProviderExportResult {
|
|
|
2563
2638
|
fileName?: string;
|
|
2564
2639
|
diagnostics?: ReportDiagnostic[];
|
|
2565
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
|
+
}
|
|
2566
2648
|
declare interface ReportQueryResult {
|
|
2567
2649
|
datasets: DatasetRows;
|
|
2568
2650
|
revision?: string;
|
|
2569
2651
|
sourceToken?: string;
|
|
2570
2652
|
diagnostics?: ReportDiagnostic[];
|
|
2571
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
|
+
}
|
|
2572
2662
|
/** Explicit refresh policy. The key identifies template/layout revisions outside query parameters. */
|
|
2573
2663
|
declare interface ReportRefreshOptions {
|
|
2574
2664
|
retainPrevious?: boolean;
|
|
@@ -2602,11 +2692,7 @@ declare interface ReportSaveInput extends ReportLoadContext {
|
|
|
2602
2692
|
declare interface ReportSaveResult {
|
|
2603
2693
|
revision: string;
|
|
2604
2694
|
sourceToken?: string;
|
|
2605
|
-
conflicts?:
|
|
2606
|
-
editIndex: number;
|
|
2607
|
-
code: string;
|
|
2608
|
-
message: string;
|
|
2609
|
-
}>;
|
|
2695
|
+
conflicts?: ReportProviderConflict[];
|
|
2610
2696
|
diagnostics?: ReportDiagnostic[];
|
|
2611
2697
|
}
|
|
2612
2698
|
declare interface ReportStoredPreferences extends Partial<ReportPreviewPreferences> {
|