@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/index.d.cts
CHANGED
|
@@ -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
|
-
|
|
464
|
-
|
|
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
|
|
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>>;
|
|
@@ -2024,6 +2068,8 @@ export declare interface MachReportStateError {
|
|
|
2024
2068
|
}
|
|
2025
2069
|
/** 主题变量(组件外壳注入的 --mrp-* CSS 自定义属性) */
|
|
2026
2070
|
export declare interface MachReportTheme {
|
|
2071
|
+
/** Native controls follow the host's declared light/dark palette. */
|
|
2072
|
+
colorScheme?: "light" | "dark";
|
|
2027
2073
|
/** 空态插图强调色,不随正文颜色变灰。 */
|
|
2028
2074
|
emptyAccent?: string;
|
|
2029
2075
|
shellBg: string;
|
|
@@ -2036,6 +2082,11 @@ export declare interface MachReportTheme {
|
|
|
2036
2082
|
btnHoverBg: string;
|
|
2037
2083
|
btnHoverFg: string;
|
|
2038
2084
|
btnActiveBg: string;
|
|
2085
|
+
/** Foreground on solid primary actions. Optional for existing complete themes. */
|
|
2086
|
+
btnActiveFg?: string;
|
|
2087
|
+
errorFg?: string;
|
|
2088
|
+
warningFg?: string;
|
|
2089
|
+
successFg?: string;
|
|
2039
2090
|
}
|
|
2040
2091
|
export declare interface MachReportToolbarOptions {
|
|
2041
2092
|
/** Reasons explain host restrictions without granting capabilities. */
|
|
@@ -2200,12 +2251,16 @@ declare interface OutputDiagnosticOptions extends OutputTaskOptions {
|
|
|
2200
2251
|
onDiagnostic?: (diagnostic: OutputDiagnostic) => void;
|
|
2201
2252
|
/** Reject known unsupported content before creating an incomplete file. Default warn. */
|
|
2202
2253
|
fidelity?: "warn" | "strict";
|
|
2254
|
+
/** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
|
|
2255
|
+
diagnosticLimit?: number;
|
|
2203
2256
|
}
|
|
2204
2257
|
declare interface OutputDiagnosticOptions_2 extends OutputTaskOptions_2 {
|
|
2205
2258
|
/** Structured fidelity diagnostics; rendering never silently invents missing content. */
|
|
2206
2259
|
onDiagnostic?: (diagnostic: OutputDiagnostic_2) => void;
|
|
2207
2260
|
/** Reject known unsupported content before creating an incomplete file. Default warn. */
|
|
2208
2261
|
fidelity?: "warn" | "strict";
|
|
2262
|
+
/** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
|
|
2263
|
+
diagnosticLimit?: number;
|
|
2209
2264
|
}
|
|
2210
2265
|
declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
|
|
2211
2266
|
declare type OutputFormat_2 = "dom" | "canvas" | "pdf" | "xlsx";
|
|
@@ -2501,7 +2556,7 @@ export declare function printPlans(plans: RenderPlan_2[], options?: {
|
|
|
2501
2556
|
*/
|
|
2502
2557
|
export declare function provideMachReportConfig(overlay: MachReportConfigInput | MachReportDefaults): void;
|
|
2503
2558
|
export declare interface ProviderEditingOptions extends Pick<ReportEditingOptions, "canEdit" | "readOnlyReason" | "history" | "fields" | "validate" | "validation" | "validateBatch" | "requireSource"> {
|
|
2504
|
-
reportId
|
|
2559
|
+
reportId?: Current<string>;
|
|
2505
2560
|
params?: Current<Record<string, string>>;
|
|
2506
2561
|
/** Getters are useful when query metadata is held by the host. Otherwise stable cell sources are used. */
|
|
2507
2562
|
expectedRevision?: Current<string | undefined>;
|
|
@@ -3001,7 +3056,7 @@ declare interface ReportDefinition {
|
|
|
3001
3056
|
params?: ReportParamDef[];
|
|
3002
3057
|
pagination?: PaginateOptions;
|
|
3003
3058
|
}
|
|
3004
|
-
declare interface ReportDiagnostic {
|
|
3059
|
+
declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
|
|
3005
3060
|
code: string;
|
|
3006
3061
|
message: string;
|
|
3007
3062
|
path?: string;
|
|
@@ -3010,6 +3065,15 @@ declare interface ReportDiagnostic {
|
|
|
3010
3065
|
valueState?: ReportValueState;
|
|
3011
3066
|
target?: ReportDataTarget;
|
|
3012
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
|
+
}
|
|
3013
3077
|
export declare type ReportDiscardReason = "reload" | "import" | "replace" | "leave";
|
|
3014
3078
|
/** Serializable action metadata. URLs, scripts and automatic navigation are deliberately absent. */
|
|
3015
3079
|
declare interface ReportDrillAction {
|
|
@@ -3066,6 +3130,13 @@ declare interface ReportEditConflict {
|
|
|
3066
3130
|
currentValue?: ReportCellValue;
|
|
3067
3131
|
revision?: string | number;
|
|
3068
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
|
+
}
|
|
3069
3140
|
export declare interface ReportEditHistoryOptions {
|
|
3070
3141
|
/** Retained undo/redo transactions. Default 100. Zero disables undo retention. */
|
|
3071
3142
|
maxSteps?: number;
|
|
@@ -3099,7 +3170,10 @@ export declare interface ReportEditOperation {
|
|
|
3099
3170
|
signal: AbortSignal;
|
|
3100
3171
|
requestId?: string;
|
|
3101
3172
|
action?: "edit" | "undo" | "redo" | "restore";
|
|
3173
|
+
/** Immutable context of the report being edited. */
|
|
3174
|
+
query?: Readonly<ReportEditQueryContext>;
|
|
3102
3175
|
}
|
|
3176
|
+
export declare type ReportEditQueryContext = ReportQueryContext;
|
|
3103
3177
|
declare interface ReportEditResult {
|
|
3104
3178
|
/** A successful result may advance concurrency tokens for the affected dataset. */
|
|
3105
3179
|
revision?: string | number;
|
|
@@ -3604,17 +3678,8 @@ export declare interface ReportPreviewDataTarget extends ReportDataTarget_2 {
|
|
|
3604
3678
|
/** Added by the query adapter; isolates identical dataset/row/field identities across reports. */
|
|
3605
3679
|
reportScope?: string;
|
|
3606
3680
|
}
|
|
3607
|
-
export declare interface ReportPreviewDiagnostic {
|
|
3608
|
-
valueState?: ReportValueState_2;
|
|
3681
|
+
export declare interface ReportPreviewDiagnostic extends ReportDiagnostic_2 {
|
|
3609
3682
|
target?: ReportPreviewDataTarget;
|
|
3610
|
-
code: string;
|
|
3611
|
-
severity: "warning" | "error" | "info";
|
|
3612
|
-
message: string;
|
|
3613
|
-
path?: string;
|
|
3614
|
-
format?: OutputFormat;
|
|
3615
|
-
pageIndex?: number;
|
|
3616
|
-
componentIndex?: number;
|
|
3617
|
-
componentPath?: readonly number[];
|
|
3618
3683
|
}
|
|
3619
3684
|
export declare type ReportPreviewPreferences = Record<ReportPreviewTool, boolean>;
|
|
3620
3685
|
export declare interface ReportPreviewTask {
|
|
@@ -3671,6 +3736,10 @@ declare interface ReportProvider {
|
|
|
3671
3736
|
export?(input: ReportProviderExportInput): ReportProviderExportResult | Promise<ReportProviderExportResult>;
|
|
3672
3737
|
templates?: ReportTemplateProvider;
|
|
3673
3738
|
}
|
|
3739
|
+
declare interface ReportProviderConflict extends Pick<ReportEditConflict_2, "message" | "currentValue" | "revision"> {
|
|
3740
|
+
editIndex: number;
|
|
3741
|
+
code: string;
|
|
3742
|
+
}
|
|
3674
3743
|
declare interface ReportProviderExportInput extends ReportLoadContext {
|
|
3675
3744
|
format: "pdf" | "xlsx";
|
|
3676
3745
|
}
|
|
@@ -3680,12 +3749,27 @@ declare interface ReportProviderExportResult {
|
|
|
3680
3749
|
fileName?: string;
|
|
3681
3750
|
diagnostics?: ReportDiagnostic[];
|
|
3682
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
|
+
}
|
|
3683
3759
|
declare interface ReportQueryResult {
|
|
3684
3760
|
datasets: DatasetRows;
|
|
3685
3761
|
revision?: string;
|
|
3686
3762
|
sourceToken?: string;
|
|
3687
3763
|
diagnostics?: ReportDiagnostic[];
|
|
3688
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
|
+
}
|
|
3689
3773
|
/** Explicit refresh policy. The key identifies template/layout revisions outside query parameters. */
|
|
3690
3774
|
export declare interface ReportRefreshOptions {
|
|
3691
3775
|
retainPrevious?: boolean;
|
|
@@ -3719,11 +3803,7 @@ declare interface ReportSaveInput extends ReportLoadContext {
|
|
|
3719
3803
|
declare interface ReportSaveResult {
|
|
3720
3804
|
revision: string;
|
|
3721
3805
|
sourceToken?: string;
|
|
3722
|
-
conflicts?:
|
|
3723
|
-
editIndex: number;
|
|
3724
|
-
code: string;
|
|
3725
|
-
message: string;
|
|
3726
|
-
}>;
|
|
3806
|
+
conflicts?: ReportProviderConflict[];
|
|
3727
3807
|
diagnostics?: ReportDiagnostic[];
|
|
3728
3808
|
}
|
|
3729
3809
|
export declare interface ReportSection {
|
|
@@ -3895,6 +3975,32 @@ export declare const ReportValidationPanel: DefineComponent<__VLS_Props_4, {}, {
|
|
|
3895
3975
|
}, string, MachReportVuePublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
3896
3976
|
onLocate?: ((issue: ReportValidationIssue) => any) | undefined;
|
|
3897
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
|
+
}
|
|
3898
4004
|
declare interface ReportValidationRule {
|
|
3899
4005
|
id: string;
|
|
3900
4006
|
/** Optional target; omitted applies to each candidate dataset. */
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
464
|
-
|
|
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
|
|
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>>;
|
|
@@ -2024,6 +2068,8 @@ export declare interface MachReportStateError {
|
|
|
2024
2068
|
}
|
|
2025
2069
|
/** 主题变量(组件外壳注入的 --mrp-* CSS 自定义属性) */
|
|
2026
2070
|
export declare interface MachReportTheme {
|
|
2071
|
+
/** Native controls follow the host's declared light/dark palette. */
|
|
2072
|
+
colorScheme?: "light" | "dark";
|
|
2027
2073
|
/** 空态插图强调色,不随正文颜色变灰。 */
|
|
2028
2074
|
emptyAccent?: string;
|
|
2029
2075
|
shellBg: string;
|
|
@@ -2036,6 +2082,11 @@ export declare interface MachReportTheme {
|
|
|
2036
2082
|
btnHoverBg: string;
|
|
2037
2083
|
btnHoverFg: string;
|
|
2038
2084
|
btnActiveBg: string;
|
|
2085
|
+
/** Foreground on solid primary actions. Optional for existing complete themes. */
|
|
2086
|
+
btnActiveFg?: string;
|
|
2087
|
+
errorFg?: string;
|
|
2088
|
+
warningFg?: string;
|
|
2089
|
+
successFg?: string;
|
|
2039
2090
|
}
|
|
2040
2091
|
export declare interface MachReportToolbarOptions {
|
|
2041
2092
|
/** Reasons explain host restrictions without granting capabilities. */
|
|
@@ -2200,12 +2251,16 @@ declare interface OutputDiagnosticOptions extends OutputTaskOptions {
|
|
|
2200
2251
|
onDiagnostic?: (diagnostic: OutputDiagnostic) => void;
|
|
2201
2252
|
/** Reject known unsupported content before creating an incomplete file. Default warn. */
|
|
2202
2253
|
fidelity?: "warn" | "strict";
|
|
2254
|
+
/** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
|
|
2255
|
+
diagnosticLimit?: number;
|
|
2203
2256
|
}
|
|
2204
2257
|
declare interface OutputDiagnosticOptions_2 extends OutputTaskOptions_2 {
|
|
2205
2258
|
/** Structured fidelity diagnostics; rendering never silently invents missing content. */
|
|
2206
2259
|
onDiagnostic?: (diagnostic: OutputDiagnostic_2) => void;
|
|
2207
2260
|
/** Reject known unsupported content before creating an incomplete file. Default warn. */
|
|
2208
2261
|
fidelity?: "warn" | "strict";
|
|
2262
|
+
/** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
|
|
2263
|
+
diagnosticLimit?: number;
|
|
2209
2264
|
}
|
|
2210
2265
|
declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
|
|
2211
2266
|
declare type OutputFormat_2 = "dom" | "canvas" | "pdf" | "xlsx";
|
|
@@ -2501,7 +2556,7 @@ export declare function printPlans(plans: RenderPlan_2[], options?: {
|
|
|
2501
2556
|
*/
|
|
2502
2557
|
export declare function provideMachReportConfig(overlay: MachReportConfigInput | MachReportDefaults): void;
|
|
2503
2558
|
export declare interface ProviderEditingOptions extends Pick<ReportEditingOptions, "canEdit" | "readOnlyReason" | "history" | "fields" | "validate" | "validation" | "validateBatch" | "requireSource"> {
|
|
2504
|
-
reportId
|
|
2559
|
+
reportId?: Current<string>;
|
|
2505
2560
|
params?: Current<Record<string, string>>;
|
|
2506
2561
|
/** Getters are useful when query metadata is held by the host. Otherwise stable cell sources are used. */
|
|
2507
2562
|
expectedRevision?: Current<string | undefined>;
|
|
@@ -3001,7 +3056,7 @@ declare interface ReportDefinition {
|
|
|
3001
3056
|
params?: ReportParamDef[];
|
|
3002
3057
|
pagination?: PaginateOptions;
|
|
3003
3058
|
}
|
|
3004
|
-
declare interface ReportDiagnostic {
|
|
3059
|
+
declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
|
|
3005
3060
|
code: string;
|
|
3006
3061
|
message: string;
|
|
3007
3062
|
path?: string;
|
|
@@ -3010,6 +3065,15 @@ declare interface ReportDiagnostic {
|
|
|
3010
3065
|
valueState?: ReportValueState;
|
|
3011
3066
|
target?: ReportDataTarget;
|
|
3012
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
|
+
}
|
|
3013
3077
|
export declare type ReportDiscardReason = "reload" | "import" | "replace" | "leave";
|
|
3014
3078
|
/** Serializable action metadata. URLs, scripts and automatic navigation are deliberately absent. */
|
|
3015
3079
|
declare interface ReportDrillAction {
|
|
@@ -3066,6 +3130,13 @@ declare interface ReportEditConflict {
|
|
|
3066
3130
|
currentValue?: ReportCellValue;
|
|
3067
3131
|
revision?: string | number;
|
|
3068
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
|
+
}
|
|
3069
3140
|
export declare interface ReportEditHistoryOptions {
|
|
3070
3141
|
/** Retained undo/redo transactions. Default 100. Zero disables undo retention. */
|
|
3071
3142
|
maxSteps?: number;
|
|
@@ -3099,7 +3170,10 @@ export declare interface ReportEditOperation {
|
|
|
3099
3170
|
signal: AbortSignal;
|
|
3100
3171
|
requestId?: string;
|
|
3101
3172
|
action?: "edit" | "undo" | "redo" | "restore";
|
|
3173
|
+
/** Immutable context of the report being edited. */
|
|
3174
|
+
query?: Readonly<ReportEditQueryContext>;
|
|
3102
3175
|
}
|
|
3176
|
+
export declare type ReportEditQueryContext = ReportQueryContext;
|
|
3103
3177
|
declare interface ReportEditResult {
|
|
3104
3178
|
/** A successful result may advance concurrency tokens for the affected dataset. */
|
|
3105
3179
|
revision?: string | number;
|
|
@@ -3604,17 +3678,8 @@ export declare interface ReportPreviewDataTarget extends ReportDataTarget_2 {
|
|
|
3604
3678
|
/** Added by the query adapter; isolates identical dataset/row/field identities across reports. */
|
|
3605
3679
|
reportScope?: string;
|
|
3606
3680
|
}
|
|
3607
|
-
export declare interface ReportPreviewDiagnostic {
|
|
3608
|
-
valueState?: ReportValueState_2;
|
|
3681
|
+
export declare interface ReportPreviewDiagnostic extends ReportDiagnostic_2 {
|
|
3609
3682
|
target?: ReportPreviewDataTarget;
|
|
3610
|
-
code: string;
|
|
3611
|
-
severity: "warning" | "error" | "info";
|
|
3612
|
-
message: string;
|
|
3613
|
-
path?: string;
|
|
3614
|
-
format?: OutputFormat;
|
|
3615
|
-
pageIndex?: number;
|
|
3616
|
-
componentIndex?: number;
|
|
3617
|
-
componentPath?: readonly number[];
|
|
3618
3683
|
}
|
|
3619
3684
|
export declare type ReportPreviewPreferences = Record<ReportPreviewTool, boolean>;
|
|
3620
3685
|
export declare interface ReportPreviewTask {
|
|
@@ -3671,6 +3736,10 @@ declare interface ReportProvider {
|
|
|
3671
3736
|
export?(input: ReportProviderExportInput): ReportProviderExportResult | Promise<ReportProviderExportResult>;
|
|
3672
3737
|
templates?: ReportTemplateProvider;
|
|
3673
3738
|
}
|
|
3739
|
+
declare interface ReportProviderConflict extends Pick<ReportEditConflict_2, "message" | "currentValue" | "revision"> {
|
|
3740
|
+
editIndex: number;
|
|
3741
|
+
code: string;
|
|
3742
|
+
}
|
|
3674
3743
|
declare interface ReportProviderExportInput extends ReportLoadContext {
|
|
3675
3744
|
format: "pdf" | "xlsx";
|
|
3676
3745
|
}
|
|
@@ -3680,12 +3749,27 @@ declare interface ReportProviderExportResult {
|
|
|
3680
3749
|
fileName?: string;
|
|
3681
3750
|
diagnostics?: ReportDiagnostic[];
|
|
3682
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
|
+
}
|
|
3683
3759
|
declare interface ReportQueryResult {
|
|
3684
3760
|
datasets: DatasetRows;
|
|
3685
3761
|
revision?: string;
|
|
3686
3762
|
sourceToken?: string;
|
|
3687
3763
|
diagnostics?: ReportDiagnostic[];
|
|
3688
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
|
+
}
|
|
3689
3773
|
/** Explicit refresh policy. The key identifies template/layout revisions outside query parameters. */
|
|
3690
3774
|
export declare interface ReportRefreshOptions {
|
|
3691
3775
|
retainPrevious?: boolean;
|
|
@@ -3719,11 +3803,7 @@ declare interface ReportSaveInput extends ReportLoadContext {
|
|
|
3719
3803
|
declare interface ReportSaveResult {
|
|
3720
3804
|
revision: string;
|
|
3721
3805
|
sourceToken?: string;
|
|
3722
|
-
conflicts?:
|
|
3723
|
-
editIndex: number;
|
|
3724
|
-
code: string;
|
|
3725
|
-
message: string;
|
|
3726
|
-
}>;
|
|
3806
|
+
conflicts?: ReportProviderConflict[];
|
|
3727
3807
|
diagnostics?: ReportDiagnostic[];
|
|
3728
3808
|
}
|
|
3729
3809
|
export declare interface ReportSection {
|
|
@@ -3895,6 +3975,32 @@ export declare const ReportValidationPanel: DefineComponent<__VLS_Props_4, {}, {
|
|
|
3895
3975
|
}, string, MachReportVuePublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
3896
3976
|
onLocate?: ((issue: ReportValidationIssue) => any) | undefined;
|
|
3897
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
|
+
}
|
|
3898
4004
|
declare interface ReportValidationRule {
|
|
3899
4005
|
id: string;
|
|
3900
4006
|
/** Optional target; omitted applies to each candidate dataset. */
|
package/dist/vue-async.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./plugin-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./plugin-BQBz2vLG.cjs");function i(){return Promise.resolve().then(()=>require("./ReportPreview-CyUXJSVX.cjs")).then(e=>e.ReportPreview$1)}const t={install(e,o={}){r.machReportPlugin.install(e,o)}};exports.MachReportPreview=r.MachReportPreview;exports.default=t;exports.machReportAsyncPlugin=t;exports.preloadMachReport=i;
|
package/dist/vue-async.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as o } from "./plugin-
|
|
2
|
-
import { M as l } from "./plugin-
|
|
1
|
+
import { m as o } from "./plugin-B1ydqEmS.js";
|
|
2
|
+
import { M as l } from "./plugin-B1ydqEmS.js";
|
|
3
3
|
function a() {
|
|
4
|
-
return import("./ReportPreview-
|
|
4
|
+
return import("./ReportPreview-_wTJnsG1.js").then((t) => t.x);
|
|
5
5
|
}
|
|
6
6
|
const n = {
|
|
7
7
|
install(t, r = {}) {
|