@agile-team/mach-report 2.21.1 → 2.23.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 +20 -5
- package/dist/{ExcelBindingWizard-mnAO2qOX.js → ExcelBindingWizard-D4FLind-.js} +3 -3
- package/dist/{ExcelBindingWizard-Bu0LUlzl.cjs → ExcelBindingWizard-D4RS5Bpg.cjs} +1 -1
- package/dist/{ParamEditor-38ZfNrPU.cjs → ParamEditor-C-6C9rd2.cjs} +1 -1
- package/dist/{ParamEditor-C8l0EC8m.js → ParamEditor-CASZt-Ma.js} +2 -2
- package/dist/{ReportBatchPanel-CfUVhvkO.js → ReportBatchPanel-Bq7t8a5r.js} +2 -2
- package/dist/{ReportBatchPanel-nCC06Nfp.cjs → ReportBatchPanel-YVj5IO5y.cjs} +1 -1
- package/dist/ReportLabelStudio-Cqhita1b.cjs +1 -0
- package/dist/ReportLabelStudio-Dj7GXhuv.js +783 -0
- package/dist/ReportParamPanel-DZbFVmDL.cjs +1 -0
- package/dist/{ReportParamPanel-peB-KEmm.js → ReportParamPanel-Dgmqro1Y.js} +265 -244
- package/dist/ReportPreview-DeWzG8jQ.js +6257 -0
- package/dist/ReportPreview-FFIryrIr.cjs +6 -0
- package/dist/{ReportTemplateLibrary-DVlsf72p.cjs → ReportTemplateLibrary-BaWodmpm.cjs} +1 -1
- package/dist/{ReportTemplateLibrary-B5t_EcIs.js → ReportTemplateLibrary-DdAAAD2I.js} +1 -1
- package/dist/{RuleEditor-kT1JsZ9f.js → RuleEditor-D2UwQGF6.js} +59 -59
- package/dist/{RuleEditor-xFkCVlii.cjs → RuleEditor-DcT9xI1v.cjs} +1 -1
- package/dist/TemplateOutlinePanel-CUHFFiNM.cjs +1 -0
- package/dist/{TemplateOutlinePanel-BesgGR1P.js → TemplateOutlinePanel-DrT7XN0m.js} +2 -2
- package/dist/{TemplateReusePanel-BNFU6V-W.js → TemplateReusePanel-4eejkNqi.js} +2 -2
- package/dist/{TemplateReusePanel-BG9Or5-P.cjs → TemplateReusePanel-DZMyiX5I.cjs} +1 -1
- package/dist/{TemplateReviewPanel-CwvwyCSs.js → TemplateReviewPanel-BIhNLeNw.js} +2 -2
- package/dist/TemplateReviewPanel-DnYImiXu.cjs +1 -0
- package/dist/analytics.cjs +1 -1
- package/dist/analytics.js +26 -26
- package/dist/artifact-integrity.json +108 -106
- package/dist/assets-D2gHc4Mz.cjs +1 -0
- package/dist/assets-T_gDeFaz.js +132 -0
- package/dist/auto-4pK9HePf.cjs +1 -0
- package/dist/auto-CTIJ6PnR.js +257 -0
- package/dist/capabilities-DiBj4Qgl.cjs +1 -0
- package/dist/capabilities-pg7j7VLT.js +106 -0
- package/dist/charts-Cjw5AYkg.cjs +1 -0
- package/dist/{charts-Dlv8j2AG.js → charts-CxJZ0XaY.js} +1 -1
- package/dist/computed-DK6BruFz.cjs +1 -0
- package/dist/{computed-C8NRZQss.js → computed-f3pOqWLX.js} +381 -301
- package/dist/data-bar-CeZuFmYl.cjs +1 -0
- package/dist/{data-bar-8baGYEZ9.js → data-bar-IkI6VvMQ.js} +1 -1
- package/dist/designer-DhrE7jzw.js +7169 -0
- package/dist/designer-IAZu6kBX.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +246 -46
- package/dist/designer.d.ts +246 -46
- package/dist/designer.js +15 -14
- package/dist/dom-ChE5D-L-.cjs +1 -0
- package/dist/dom-JWrchIre.js +452 -0
- package/dist/dom-cell-address-DLD1mkTB.cjs +1 -0
- package/dist/dom-cell-address-Fn-8nk7D.js +11 -0
- package/dist/{encoding-B79hW4zq.cjs → encoding-BefcaHdp.cjs} +1 -1
- package/dist/{encoding-BSeUwrN7.js → encoding-CL6rXEkR.js} +2 -2
- package/dist/{font-loader-Di0lQKFf.js → font-loader-BT5baV-o.js} +1 -1
- package/dist/{font-loader-BB372_XN.cjs → font-loader-Ga51c2VC.cjs} +1 -1
- package/dist/grid-strokes-Be24LGuV.cjs +1 -0
- package/dist/grid-strokes-EoY66L2f.js +53 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +44 -1
- package/dist/index.d.ts +44 -1
- package/dist/index.js +961 -1256
- package/dist/json-snapshot-1tvQNzQE.cjs +2 -0
- package/dist/{json-snapshot-Kgn459Oj.js → json-snapshot-OqkPyUk5.js} +763 -776
- package/dist/matrix-B8QWbsGM.cjs +1 -0
- package/dist/matrix-C6e_r_vp.js +302 -0
- package/dist/{pdf-CARdBcuw.cjs → pdf-HiEeXe9H.cjs} +42 -42
- package/dist/{pdf-DmlnL5eB.js → pdf-aobetCsy.js} +20 -20
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.js +2 -2
- package/dist/{plugin-BaRUGORD.cjs → plugin-BFANt-i8.cjs} +1 -1
- package/dist/{plugin-D4kAxfLG.js → plugin-DeYYAL6F.js} +1 -1
- package/dist/{prefill-CJSazcVY.js → prefill-Dk4C6S5R.js} +21 -21
- package/dist/prefill-DsUD5OoK.cjs +1 -0
- package/dist/prepared-DCIxhKFo.js +94 -0
- package/dist/prepared-Dv-XM3i1.cjs +1 -0
- package/dist/progress-ByiOxUD3.js +250 -0
- package/dist/progress-WomPRP3B.cjs +1 -0
- package/dist/{protocol-C8VWF9An.cjs → protocol-B9YgfQ_d.cjs} +1 -1
- package/dist/{protocol-Bs9-ohHN.js → protocol-DxeUKGYG.js} +3 -3
- package/dist/record-bindings-DatJZv_e.js +200 -0
- package/dist/record-bindings-MBxbeBsi.cjs +1 -0
- package/dist/{region-binding-workflow-Cy4GIOUo.js → region-binding-workflow-DjrXuR1q.js} +2 -2
- package/dist/{region-binding-workflow-JNowHd0A.cjs → region-binding-workflow-l7NGfagJ.cjs} +2 -2
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/rich-text-layout-Ciwa6D2o.js +52 -0
- package/dist/rich-text-layout-DK7A_a5r.cjs +3 -0
- package/dist/{runtime-BDf5x1i1.js → runtime-75Y5Oq5B.js} +52 -51
- package/dist/runtime-DKlGd_D4.cjs +1 -0
- package/dist/sbom.cdx.json +1 -1
- package/dist/server/node.d.cts +9 -0
- package/dist/server/node.d.ts +9 -0
- package/dist/server-node.cjs +5 -4
- package/dist/server-node.js +2178 -2044
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +81 -0
- package/dist/server.d.ts +81 -0
- package/dist/server.js +24 -24
- package/dist/style.css +1 -1
- package/dist/{template-catalog-DFwIS9aN.js → template-catalog--cjxzgH7.js} +17 -17
- package/dist/template-catalog-CoT7jm_6.cjs +1 -0
- package/dist/{template-fragments-Dng-AlHk.js → template-fragments-CPpGpQoz.js} +24 -24
- package/dist/{template-fragments-DZVUBhuB.cjs → template-fragments-GVjpew_q.cjs} +1 -1
- package/dist/template-registry-DI59PXVK.cjs +1 -0
- package/dist/{template-registry-DhBqoD7W.js → template-registry-O0hNIOfB.js} +333 -261
- package/dist/template-serialization-CWmHq7lX.js +307 -0
- package/dist/template-serialization-CqQY4zDg.cjs +1 -0
- package/dist/{textwrap-CkGjRFT3.js → textwrap-BIjtEWmq.js} +1 -1
- package/dist/textwrap-Cy7o1hIR.cjs +4 -0
- package/dist/vue/async.d.cts +121 -2
- package/dist/vue/async.d.ts +121 -2
- package/dist/vue/index.d.cts +222 -5
- package/dist/vue/index.d.ts +222 -5
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +101 -91
- package/dist/{workbook-session-NYv01LHe.cjs → workbook-session-C6-SrnCT.cjs} +4 -4
- package/dist/{workbook-session-oinxX3qo.js → workbook-session-C9ZmCBwY.js} +15 -16
- package/dist/workbook-sheets-CaPAulQ6.cjs +2 -0
- package/dist/workbook-sheets-D4M7XXBh.js +44 -0
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +9 -0
- package/dist/worker.d.ts +9 -0
- package/dist/worker.js +4 -4
- package/dist/xlsx.cjs +4 -4
- package/dist/xlsx.d.cts +39 -2
- package/dist/xlsx.d.ts +39 -2
- package/dist/xlsx.js +300 -275
- package/package.json +1 -1
- package/dist/ReportLabelStudio-CaEvYuSK.cjs +0 -1
- package/dist/ReportLabelStudio-DQPBmh4v.js +0 -765
- package/dist/ReportParamPanel-CVpK8mFc.cjs +0 -1
- package/dist/ReportPreview-BBJNlu2U.js +0 -5740
- package/dist/ReportPreview-nf4Dk1Jc.cjs +0 -6
- package/dist/TemplateOutlinePanel-CDI6mfWx.cjs +0 -1
- package/dist/TemplateReviewPanel-BmBrjt6P.cjs +0 -1
- package/dist/assets-CxHunY_9.js +0 -232
- package/dist/assets-vbjAGgk8.cjs +0 -1
- package/dist/auto-BkdGiNtr.js +0 -240
- package/dist/auto-Tq7ReIC1.cjs +0 -1
- package/dist/charts-aCtoswXq.cjs +0 -1
- package/dist/component-tree-1_QCiQJX.js +0 -67
- package/dist/component-tree-BjZIp6w9.cjs +0 -1
- package/dist/computed-4TnxzgIh.cjs +0 -1
- package/dist/data-bar-YltqGTaC.cjs +0 -1
- package/dist/designer-DU3yDWgs.cjs +0 -2
- package/dist/designer-HQi-03R6.js +0 -6869
- package/dist/grid-geometry-D3SJgWFv.js +0 -136
- package/dist/grid-geometry-D8ReblRV.cjs +0 -1
- package/dist/json-snapshot-I5VI84Vp.cjs +0 -2
- package/dist/matrix-0hywp0-F.cjs +0 -1
- package/dist/matrix-Dy-tyY7E.js +0 -381
- package/dist/prefill-Bpyn58AZ.cjs +0 -1
- package/dist/prepared-BiSz_9vN.cjs +0 -1
- package/dist/prepared-BwjwEzFz.js +0 -87
- package/dist/progress-B0ctFpKf.cjs +0 -1
- package/dist/progress-Hc2vxoCs.js +0 -52
- package/dist/record-bindings-Ct1HkPrc.cjs +0 -1
- package/dist/record-bindings-VZGS-Qd8.js +0 -155
- package/dist/rich-text-layout-K48VHUoW.cjs +0 -3
- package/dist/rich-text-layout-wxBhnAS7.js +0 -102
- package/dist/runtime-DsJt1PIf.cjs +0 -1
- package/dist/template-bindings-Cg5oBLFT.cjs +0 -1
- package/dist/template-bindings-TKnXM7ll.js +0 -62
- package/dist/template-catalog-D_2jdnkL.cjs +0 -1
- package/dist/template-outline-DWkzZXVC.cjs +0 -1
- package/dist/template-outline-DiADphlq.js +0 -88
- package/dist/template-registry-DpLUSLwF.cjs +0 -1
- package/dist/template-serialization-Cc3h-miv.js +0 -247
- package/dist/template-serialization-D1R5oAqh.cjs +0 -1
- package/dist/textwrap-OTOUMr4f.cjs +0 -4
package/dist/vue/index.d.cts
CHANGED
|
@@ -71,6 +71,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
71
71
|
type: PropType<ReportPreferencesOptions>;
|
|
72
72
|
default: undefined;
|
|
73
73
|
};
|
|
74
|
+
refresh: {
|
|
75
|
+
type: PropType<ReportRefreshOptions>;
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
74
78
|
guardChanges: {
|
|
75
79
|
type: BooleanConstructor;
|
|
76
80
|
default: undefined;
|
|
@@ -253,6 +257,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
253
257
|
type: PropType<ReportPreferencesOptions>;
|
|
254
258
|
default: undefined;
|
|
255
259
|
};
|
|
260
|
+
refresh: {
|
|
261
|
+
type: PropType<ReportRefreshOptions>;
|
|
262
|
+
default: undefined;
|
|
263
|
+
};
|
|
256
264
|
guardChanges: {
|
|
257
265
|
type: BooleanConstructor;
|
|
258
266
|
default: undefined;
|
|
@@ -358,6 +366,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
358
366
|
toolbar: MachReportToolbarOptions;
|
|
359
367
|
interaction: ReportInteractionOptions;
|
|
360
368
|
preferences: ReportPreferencesOptions;
|
|
369
|
+
refresh: ReportRefreshOptions;
|
|
361
370
|
guardChanges: boolean;
|
|
362
371
|
beforeDiscard: ReportBeforeDiscard;
|
|
363
372
|
messages: Partial<MachReportMessages>;
|
|
@@ -468,8 +477,30 @@ declare type __VLS_Props_6 = {
|
|
|
468
477
|
state: ReportDataComparisonState;
|
|
469
478
|
messages: ReportDataReviewMessages;
|
|
470
479
|
};
|
|
480
|
+
declare type __VLS_Props_7 = {
|
|
481
|
+
messages: MachReportMessages;
|
|
482
|
+
formats?: readonly ReportExportFormat[];
|
|
483
|
+
busy?: boolean;
|
|
484
|
+
/** 宿主附加出口仍复用菜单的焦点、键盘与忙碌行为。 */
|
|
485
|
+
actions?: readonly {
|
|
486
|
+
id: string;
|
|
487
|
+
label: string;
|
|
488
|
+
description?: string;
|
|
489
|
+
disabled?: boolean;
|
|
490
|
+
}[];
|
|
491
|
+
};
|
|
492
|
+
declare type __VLS_Props_8 = {
|
|
493
|
+
task: Readonly<ReportPreviewTask> | null;
|
|
494
|
+
messages?: MachReportMessages;
|
|
495
|
+
};
|
|
471
496
|
declare function __VLS_template(): {
|
|
472
497
|
slots: {
|
|
498
|
+
export?(_: {
|
|
499
|
+
busy: boolean;
|
|
500
|
+
exportReport: (format: string) => Promise<void>;
|
|
501
|
+
formats: ReportExportFormat[];
|
|
502
|
+
messages: MachReportMessages;
|
|
503
|
+
}): any;
|
|
473
504
|
settings?(_: {}): any;
|
|
474
505
|
default?(_: {}): any;
|
|
475
506
|
};
|
|
@@ -479,6 +510,11 @@ declare function __VLS_template_2(): {
|
|
|
479
510
|
slots: {
|
|
480
511
|
navigation?(_: {}): any;
|
|
481
512
|
'data-tools'?(_: {}): any;
|
|
513
|
+
export?(_: {
|
|
514
|
+
messages: MachReportMessages;
|
|
515
|
+
formats: readonly ReportExportFormat[];
|
|
516
|
+
busy: boolean | undefined;
|
|
517
|
+
}): any;
|
|
482
518
|
};
|
|
483
519
|
refs: {
|
|
484
520
|
searchToggleRef: HTMLButtonElement;
|
|
@@ -921,7 +957,7 @@ export declare function createProviderEditing(provider: ReportProvider, options:
|
|
|
921
957
|
export declare function createReportStoragePreferences(storage: Pick<Storage, "getItem" | "setItem" | "removeItem">): ReportPreferencesAdapter;
|
|
922
958
|
declare type Current<T> = T | (() => T);
|
|
923
959
|
declare interface DatasetContract {
|
|
924
|
-
fields: readonly
|
|
960
|
+
fields: readonly ReportFieldContract_2[];
|
|
925
961
|
rowKey?: string;
|
|
926
962
|
}
|
|
927
963
|
declare type DatasetRows = Record<string, Record<string, unknown>[]>;
|
|
@@ -1638,6 +1674,7 @@ export declare interface MachReportDefaults {
|
|
|
1638
1674
|
toolbar?: MachReportToolbarOptions;
|
|
1639
1675
|
interaction?: ReportInteractionOptions;
|
|
1640
1676
|
preferences?: ReportPreferencesOptions;
|
|
1677
|
+
refresh?: ReportRefreshOptions;
|
|
1641
1678
|
/** Protect local input and drafts before replacing a report. Default true. */
|
|
1642
1679
|
guardChanges?: boolean;
|
|
1643
1680
|
beforeDiscard?: ReportBeforeDiscard;
|
|
@@ -1717,6 +1754,7 @@ export declare type MachReportLogger = Pick<Console, "warn" | "info">;
|
|
|
1717
1754
|
*/
|
|
1718
1755
|
/** 工具栏与状态文案(默认简体中文;出海场景覆写) */
|
|
1719
1756
|
export declare interface MachReportMessages extends Partial<ReportCalculationMessages>, Partial<ReportDataReviewMessages>, ReportPrintMessages, ReportParamOptionsMessages {
|
|
1757
|
+
previousSnapshot?: string;
|
|
1720
1758
|
reviewTools?: string;
|
|
1721
1759
|
validationTitle?: string;
|
|
1722
1760
|
validationError?: string;
|
|
@@ -1809,6 +1847,20 @@ export declare interface MachReportMessages extends Partial<ReportCalculationMes
|
|
|
1809
1847
|
importing?: string;
|
|
1810
1848
|
editCell?: string;
|
|
1811
1849
|
editingHint?: string;
|
|
1850
|
+
editCellEditable?: string;
|
|
1851
|
+
editCellReadOnly?: string;
|
|
1852
|
+
editCellFormula?: string;
|
|
1853
|
+
editCellProtected?: string;
|
|
1854
|
+
editCellComplex?: string;
|
|
1855
|
+
editCellStructure?: string;
|
|
1856
|
+
editCellDerived?: string;
|
|
1857
|
+
editCellPermission?: string;
|
|
1858
|
+
editCellBusy?: string;
|
|
1859
|
+
editHistoryLimited?: string;
|
|
1860
|
+
changesSearch?: string;
|
|
1861
|
+
changesAllDatasets?: string;
|
|
1862
|
+
changesNoMatches?: string;
|
|
1863
|
+
changesRange?: string;
|
|
1812
1864
|
saving?: string;
|
|
1813
1865
|
editInvalidNumber?: string;
|
|
1814
1866
|
editInvalidBoolean?: string;
|
|
@@ -1938,6 +1990,8 @@ export declare interface MachReportPreviewOptions {
|
|
|
1938
1990
|
/** 只读快照,由组件的同一套状态驱动;无需通过事件另建状态。 */
|
|
1939
1991
|
export declare interface MachReportState {
|
|
1940
1992
|
readonly loading: boolean;
|
|
1993
|
+
/** A retained previous snapshot is readable while writes/output remain blocked. */
|
|
1994
|
+
readonly stale?: boolean;
|
|
1941
1995
|
readonly hasPlan: boolean;
|
|
1942
1996
|
readonly pageCount: number;
|
|
1943
1997
|
readonly currentPage: number;
|
|
@@ -1984,6 +2038,8 @@ export declare interface MachReportTheme {
|
|
|
1984
2038
|
btnActiveBg: string;
|
|
1985
2039
|
}
|
|
1986
2040
|
export declare interface MachReportToolbarOptions {
|
|
2041
|
+
/** Reasons explain host restrictions without granting capabilities. */
|
|
2042
|
+
unavailableReasons?: Partial<Record<ReportPreviewTool, string>>;
|
|
1987
2043
|
search?: boolean;
|
|
1988
2044
|
thumbnails?: boolean;
|
|
1989
2045
|
zoom?: boolean;
|
|
@@ -2444,7 +2500,7 @@ export declare function printPlans(plans: RenderPlan_2[], options?: {
|
|
|
2444
2500
|
* 同名 preset 与 messages/theme 均按字段继承;组件 props 仍拥有最高优先级。
|
|
2445
2501
|
*/
|
|
2446
2502
|
export declare function provideMachReportConfig(overlay: MachReportConfigInput | MachReportDefaults): void;
|
|
2447
|
-
export declare interface ProviderEditingOptions extends Pick<ReportEditingOptions, "canEdit" | "validate" | "requireSource"> {
|
|
2503
|
+
export declare interface ProviderEditingOptions extends Pick<ReportEditingOptions, "canEdit" | "readOnlyReason" | "history" | "fields" | "validate" | "validation" | "validateBatch" | "requireSource"> {
|
|
2448
2504
|
reportId: Current<string>;
|
|
2449
2505
|
params?: Current<Record<string, string>>;
|
|
2450
2506
|
/** Getters are useful when query metadata is held by the host. Otherwise stable cell sources are used. */
|
|
@@ -3010,11 +3066,21 @@ declare interface ReportEditConflict {
|
|
|
3010
3066
|
currentValue?: ReportCellValue;
|
|
3011
3067
|
revision?: string | number;
|
|
3012
3068
|
}
|
|
3069
|
+
export declare interface ReportEditHistoryOptions {
|
|
3070
|
+
/** Retained undo/redo transactions. Default 100. Zero disables undo retention. */
|
|
3071
|
+
maxSteps?: number;
|
|
3072
|
+
/** Conservative retained transaction size in bytes. Default 8 MiB. */
|
|
3073
|
+
maxBytes?: number;
|
|
3074
|
+
}
|
|
3013
3075
|
/** Opt in with true for local drafts, or provide host validation and persistence. */
|
|
3014
3076
|
export declare interface ReportEditingOptions {
|
|
3015
3077
|
/** Optional field controls, keyed by source.field / table.columnKey; a resolver supports dataset-specific rules. */
|
|
3016
3078
|
fields?: Readonly<Record<string, ReportCellFieldOptions>> | ((context: ReportCellContext) => ReportCellFieldOptions | undefined);
|
|
3017
3079
|
canEdit?(context: ReportCellContext): boolean;
|
|
3080
|
+
/** Optional explanation when canEdit rejects a cell. Does not grant editing access. */
|
|
3081
|
+
readOnlyReason?(context: ReportCellContext): string | undefined;
|
|
3082
|
+
/** Bounds undo/redo retention. Net differences and getChanges remain complete. */
|
|
3083
|
+
history?: ReportEditHistoryOptions;
|
|
3018
3084
|
/** Return an error message or throw to reject the edit. */
|
|
3019
3085
|
validate?(edit: Readonly<ReportCellEdit>, operation: ReportEditOperation): void | string | Promise<void | string>;
|
|
3020
3086
|
/** Same declarative rules can be run in Node via validateReportDataset. Requires a source-backed session. */
|
|
@@ -3071,6 +3137,13 @@ export declare interface ReportExportExecutionOptions {
|
|
|
3071
3137
|
}
|
|
3072
3138
|
/** 输出能力仍由宿主授权;工具偏好只决定当前预览实例的可见与启用状态。 */
|
|
3073
3139
|
export declare type ReportExportFormat = "html" | "pdf" | "xlsx" | "png" | "word";
|
|
3140
|
+
export declare const ReportExportMenu: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3141
|
+
export: (format: ReportExportFormat) => any;
|
|
3142
|
+
action: (id: string) => any;
|
|
3143
|
+
}, string, MachReportVuePublicProps, Readonly<__VLS_Props_7> & Readonly<{
|
|
3144
|
+
onExport?: ((format: ReportExportFormat) => any) | undefined;
|
|
3145
|
+
onAction?: ((id: string) => any) | undefined;
|
|
3146
|
+
}>, {}>;
|
|
3074
3147
|
export declare interface ReportExportThresholds {
|
|
3075
3148
|
cells?: number;
|
|
3076
3149
|
pages?: number;
|
|
@@ -3136,11 +3209,23 @@ declare interface ReportFetchInput extends ReportTaskMonitoring {
|
|
|
3136
3209
|
onQueryResult?: (reportId: string, result: ReportQueryResult, reportIndex?: number) => void;
|
|
3137
3210
|
}
|
|
3138
3211
|
declare type ReportFieldAggregation = "sum" | "avg" | "min" | "max" | "count" | "none";
|
|
3212
|
+
declare type ReportFieldAggregation_2 = "sum" | "avg" | "min" | "max" | "count" | "none";
|
|
3213
|
+
declare type ReportFieldAggregation_3 = "sum" | "avg" | "min" | "max" | "count" | "none";
|
|
3139
3214
|
declare interface ReportFieldCalculation {
|
|
3140
3215
|
/** Business-owned explanation, never executable JavaScript or an inferred business formula. */
|
|
3141
3216
|
description: string;
|
|
3142
3217
|
dependsOn: readonly string[];
|
|
3143
3218
|
}
|
|
3219
|
+
declare interface ReportFieldCalculation_2 {
|
|
3220
|
+
/** Business-owned explanation, never executable JavaScript or an inferred business formula. */
|
|
3221
|
+
description: string;
|
|
3222
|
+
dependsOn: readonly string[];
|
|
3223
|
+
}
|
|
3224
|
+
declare interface ReportFieldCalculation_3 {
|
|
3225
|
+
/** Business-owned explanation, never executable JavaScript or an inferred business formula. */
|
|
3226
|
+
description: string;
|
|
3227
|
+
dependsOn: readonly string[];
|
|
3228
|
+
}
|
|
3144
3229
|
declare interface ReportFieldContract extends ReportFieldSemantics {
|
|
3145
3230
|
field: string;
|
|
3146
3231
|
label?: string;
|
|
@@ -3155,6 +3240,34 @@ declare interface ReportFieldContract extends ReportFieldSemantics {
|
|
|
3155
3240
|
semanticRole?: "identifier" | "dimension" | "measure" | "date" | "text";
|
|
3156
3241
|
unit?: string;
|
|
3157
3242
|
}
|
|
3243
|
+
declare interface ReportFieldContract_2 extends ReportFieldSemantics_2 {
|
|
3244
|
+
field: string;
|
|
3245
|
+
label?: string;
|
|
3246
|
+
type: "text" | "number" | "boolean" | "date" | "decimal";
|
|
3247
|
+
required?: boolean;
|
|
3248
|
+
nullable?: boolean;
|
|
3249
|
+
enum?: readonly (string | number | boolean)[];
|
|
3250
|
+
min?: number;
|
|
3251
|
+
max?: number;
|
|
3252
|
+
minLength?: number;
|
|
3253
|
+
maxLength?: number;
|
|
3254
|
+
semanticRole?: "identifier" | "dimension" | "measure" | "date" | "text";
|
|
3255
|
+
unit?: string;
|
|
3256
|
+
}
|
|
3257
|
+
declare interface ReportFieldContract_3 extends ReportFieldSemantics_3 {
|
|
3258
|
+
field: string;
|
|
3259
|
+
label?: string;
|
|
3260
|
+
type: "text" | "number" | "boolean" | "date" | "decimal";
|
|
3261
|
+
required?: boolean;
|
|
3262
|
+
nullable?: boolean;
|
|
3263
|
+
enum?: readonly (string | number | boolean)[];
|
|
3264
|
+
min?: number;
|
|
3265
|
+
max?: number;
|
|
3266
|
+
minLength?: number;
|
|
3267
|
+
maxLength?: number;
|
|
3268
|
+
semanticRole?: "identifier" | "dimension" | "measure" | "date" | "text";
|
|
3269
|
+
unit?: string;
|
|
3270
|
+
}
|
|
3158
3271
|
declare interface ReportFieldSemantics {
|
|
3159
3272
|
description?: string;
|
|
3160
3273
|
/** Explicit meaning of null/missing; does not convert blanks into zero. */
|
|
@@ -3162,9 +3275,29 @@ declare interface ReportFieldSemantics {
|
|
|
3162
3275
|
/** Recommended aggregation; none marks non-additive measures such as ratios. No aggregation runs implicitly. */
|
|
3163
3276
|
aggregation?: ReportFieldAggregation;
|
|
3164
3277
|
/** Shared presentation only; raw values and calculation precision remain unchanged. */
|
|
3165
|
-
format?:
|
|
3278
|
+
format?: ColumnFormat_2;
|
|
3166
3279
|
calculation?: ReportFieldCalculation;
|
|
3167
3280
|
}
|
|
3281
|
+
declare interface ReportFieldSemantics_2 {
|
|
3282
|
+
description?: string;
|
|
3283
|
+
/** Explicit meaning of null/missing; does not convert blanks into zero. */
|
|
3284
|
+
missingMeaning?: string;
|
|
3285
|
+
/** Recommended aggregation; none marks non-additive measures such as ratios. No aggregation runs implicitly. */
|
|
3286
|
+
aggregation?: ReportFieldAggregation_2;
|
|
3287
|
+
/** Shared presentation only; raw values and calculation precision remain unchanged. */
|
|
3288
|
+
format?: ColumnFormat;
|
|
3289
|
+
calculation?: ReportFieldCalculation_2;
|
|
3290
|
+
}
|
|
3291
|
+
declare interface ReportFieldSemantics_3 {
|
|
3292
|
+
description?: string;
|
|
3293
|
+
/** Explicit meaning of null/missing; does not convert blanks into zero. */
|
|
3294
|
+
missingMeaning?: string;
|
|
3295
|
+
/** Recommended aggregation; none marks non-additive measures such as ratios. No aggregation runs implicitly. */
|
|
3296
|
+
aggregation?: ReportFieldAggregation_3;
|
|
3297
|
+
/** Shared presentation only; raw values and calculation precision remain unchanged. */
|
|
3298
|
+
format?: ColumnFormat_3;
|
|
3299
|
+
calculation?: ReportFieldCalculation_3;
|
|
3300
|
+
}
|
|
3168
3301
|
export declare interface ReportFieldTarget {
|
|
3169
3302
|
field: string;
|
|
3170
3303
|
datasetId?: string;
|
|
@@ -3422,8 +3555,8 @@ declare type ReportPredicateScalar = string | number | boolean | null;
|
|
|
3422
3555
|
declare type ReportPredicateScalar_2 = string | number | boolean | null;
|
|
3423
3556
|
declare type ReportPredicateScalar_3 = string | number | boolean | null;
|
|
3424
3557
|
export declare interface ReportPreferencesAdapter {
|
|
3425
|
-
load(key: string):
|
|
3426
|
-
save(key: string, value: Readonly<
|
|
3558
|
+
load(key: string): ReportStoredPreferences | null | Promise<ReportStoredPreferences | null>;
|
|
3559
|
+
save(key: string, value: Readonly<ReportStoredPreferences>): void | Promise<void>;
|
|
3427
3560
|
remove?(key: string): void | Promise<void>;
|
|
3428
3561
|
}
|
|
3429
3562
|
export declare interface ReportPreferencesOptions {
|
|
@@ -3553,6 +3686,17 @@ declare interface ReportQueryResult {
|
|
|
3553
3686
|
sourceToken?: string;
|
|
3554
3687
|
diagnostics?: ReportDiagnostic[];
|
|
3555
3688
|
}
|
|
3689
|
+
/** Explicit refresh policy. The key identifies template/layout revisions outside query parameters. */
|
|
3690
|
+
export declare interface ReportRefreshOptions {
|
|
3691
|
+
retainPrevious?: boolean;
|
|
3692
|
+
key?: string;
|
|
3693
|
+
/** Host API request preceding the preview reload. Blocks edits and output without discarding drafts. */
|
|
3694
|
+
pending?: boolean;
|
|
3695
|
+
/** The host retained an earlier snapshot after its own query failed or was cancelled. */
|
|
3696
|
+
stale?: boolean;
|
|
3697
|
+
/** Retry the host HTTP query when it owns the stale snapshot. The host updates its own state. */
|
|
3698
|
+
retry?(): void | Promise<void>;
|
|
3699
|
+
}
|
|
3556
3700
|
declare type ReportRegistry = Record<string, ReportDefinition>;
|
|
3557
3701
|
declare interface ReportRuntimeBudget {
|
|
3558
3702
|
maxRows?: number;
|
|
@@ -3586,6 +3730,10 @@ export declare interface ReportSection {
|
|
|
3586
3730
|
label: string;
|
|
3587
3731
|
pageIndex: number;
|
|
3588
3732
|
}
|
|
3733
|
+
export declare interface ReportStoredPreferences extends Partial<ReportPreviewPreferences> {
|
|
3734
|
+
zoomMode?: "fit" | number;
|
|
3735
|
+
wideZoomMode?: "fit" | number;
|
|
3736
|
+
}
|
|
3589
3737
|
/** 阶段事件只包含可序列化值;不表示估算百分比,也不包含业务数据。 */
|
|
3590
3738
|
declare interface ReportTaskEvent {
|
|
3591
3739
|
taskId: string;
|
|
@@ -3602,8 +3750,17 @@ declare interface ReportTaskMonitoring {
|
|
|
3602
3750
|
onEvent?: ReportTaskObserver;
|
|
3603
3751
|
}
|
|
3604
3752
|
declare type ReportTaskObserver = (event: ReportTaskEvent) => void;
|
|
3753
|
+
export declare const ReportTaskStatus: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3754
|
+
cancel: () => any;
|
|
3755
|
+
}, string, MachReportVuePublicProps, Readonly<__VLS_Props_8> & Readonly<{
|
|
3756
|
+
onCancel?: (() => any) | undefined;
|
|
3757
|
+
}>, {
|
|
3758
|
+
messages: MachReportMessages;
|
|
3759
|
+
}>;
|
|
3605
3760
|
declare interface ReportTemplate {
|
|
3606
3761
|
schemaVersion?: string;
|
|
3762
|
+
/** Optional source identity and stable field meanings for safe stored-template reuse. */
|
|
3763
|
+
dataContract?: ReportTemplateDataContract;
|
|
3607
3764
|
/** 参数定义(可选;宿主也可经 ReportPreview 的 paramDefs prop 提供,prop 优先) */
|
|
3608
3765
|
params?: ReportParamDef_2[];
|
|
3609
3766
|
/** Fixed label pages repeat in record → copy → template-page order. */
|
|
@@ -3612,6 +3769,8 @@ declare interface ReportTemplate {
|
|
|
3612
3769
|
}
|
|
3613
3770
|
declare interface ReportTemplate_2 {
|
|
3614
3771
|
schemaVersion?: string;
|
|
3772
|
+
/** Optional source identity and stable field meanings for safe stored-template reuse. */
|
|
3773
|
+
dataContract?: ReportTemplateDataContract_2;
|
|
3615
3774
|
/** 参数定义(可选;宿主也可经 ReportPreview 的 paramDefs prop 提供,prop 优先) */
|
|
3616
3775
|
params?: ReportParamDef[];
|
|
3617
3776
|
/** Fixed label pages repeat in record → copy → template-page order. */
|
|
@@ -3620,12 +3779,35 @@ declare interface ReportTemplate_2 {
|
|
|
3620
3779
|
}
|
|
3621
3780
|
declare interface ReportTemplate_3 {
|
|
3622
3781
|
schemaVersion?: string;
|
|
3782
|
+
/** Optional source identity and stable field meanings for safe stored-template reuse. */
|
|
3783
|
+
dataContract?: ReportTemplateDataContract_3;
|
|
3623
3784
|
/** 参数定义(可选;宿主也可经 ReportPreview 的 paramDefs prop 提供,prop 优先) */
|
|
3624
3785
|
params?: ReportParamDef_3[];
|
|
3625
3786
|
/** Fixed label pages repeat in record → copy → template-page order. */
|
|
3626
3787
|
repeat?: ReportTemplateRepeat_3;
|
|
3627
3788
|
pages: TemplatePage_3[];
|
|
3628
3789
|
}
|
|
3790
|
+
declare interface ReportTemplateDataContract {
|
|
3791
|
+
/** Host-owned report/domain identity, without a query date or tenant credentials. */
|
|
3792
|
+
source?: string;
|
|
3793
|
+
datasets: Readonly<Record<string, {
|
|
3794
|
+
fields: readonly ReportTemplateFieldBinding[];
|
|
3795
|
+
}>>;
|
|
3796
|
+
}
|
|
3797
|
+
declare interface ReportTemplateDataContract_2 {
|
|
3798
|
+
/** Host-owned report/domain identity, without a query date or tenant credentials. */
|
|
3799
|
+
source?: string;
|
|
3800
|
+
datasets: Readonly<Record<string, {
|
|
3801
|
+
fields: readonly ReportTemplateFieldBinding_2[];
|
|
3802
|
+
}>>;
|
|
3803
|
+
}
|
|
3804
|
+
declare interface ReportTemplateDataContract_3 {
|
|
3805
|
+
/** Host-owned report/domain identity, without a query date or tenant credentials. */
|
|
3806
|
+
source?: string;
|
|
3807
|
+
datasets: Readonly<Record<string, {
|
|
3808
|
+
fields: readonly ReportTemplateFieldBinding_3[];
|
|
3809
|
+
}>>;
|
|
3810
|
+
}
|
|
3629
3811
|
/** 可存入数据库/文件的纯 JSON 模板;数据、接口与鉴权仍由宿主提供。 */
|
|
3630
3812
|
declare interface ReportTemplateDocument {
|
|
3631
3813
|
schemaVersion: "1.0";
|
|
@@ -3636,6 +3818,30 @@ declare interface ReportTemplateDocument {
|
|
|
3636
3818
|
description?: string;
|
|
3637
3819
|
template: ReportTemplate_2;
|
|
3638
3820
|
}
|
|
3821
|
+
/** Stable business meaning is independent of a column's position and editable caption. */
|
|
3822
|
+
declare interface ReportTemplateFieldBinding {
|
|
3823
|
+
field: string;
|
|
3824
|
+
label?: string;
|
|
3825
|
+
semanticKey?: string;
|
|
3826
|
+
type?: ReportFieldContract["type"];
|
|
3827
|
+
unit?: string;
|
|
3828
|
+
}
|
|
3829
|
+
/** Stable business meaning is independent of a column's position and editable caption. */
|
|
3830
|
+
declare interface ReportTemplateFieldBinding_2 {
|
|
3831
|
+
field: string;
|
|
3832
|
+
label?: string;
|
|
3833
|
+
semanticKey?: string;
|
|
3834
|
+
type?: ReportFieldContract_2["type"];
|
|
3835
|
+
unit?: string;
|
|
3836
|
+
}
|
|
3837
|
+
/** Stable business meaning is independent of a column's position and editable caption. */
|
|
3838
|
+
declare interface ReportTemplateFieldBinding_3 {
|
|
3839
|
+
field: string;
|
|
3840
|
+
label?: string;
|
|
3841
|
+
semanticKey?: string;
|
|
3842
|
+
type?: ReportFieldContract_3["type"];
|
|
3843
|
+
unit?: string;
|
|
3844
|
+
}
|
|
3639
3845
|
declare type ReportTemplateLoader = (context: ReportLoadContext) => ReportTemplate_2 | Promise<ReportTemplate_2>;
|
|
3640
3846
|
declare interface ReportTemplateProvider {
|
|
3641
3847
|
list(context: {
|
|
@@ -3728,6 +3934,7 @@ export declare type ResolvedConfig = Required<Pick<MachReportDefaults, "showExpo
|
|
|
3728
3934
|
toolbar: MachReportToolbarOptions;
|
|
3729
3935
|
interaction: ReportInteractionOptions;
|
|
3730
3936
|
preferences?: ReportPreferencesOptions;
|
|
3937
|
+
refresh?: ReportRefreshOptions;
|
|
3731
3938
|
assets?: AssetRenderOptions;
|
|
3732
3939
|
guardChanges: boolean;
|
|
3733
3940
|
beforeDiscard?: ReportBeforeDiscard;
|
|
@@ -4011,6 +4218,12 @@ declare type ValueFormat = ColumnFormat;
|
|
|
4011
4218
|
declare type ValueFormat_2 = ColumnFormat_2;
|
|
4012
4219
|
/** The same declarative formatting used by list columns, before any output backend. */
|
|
4013
4220
|
declare type ValueFormat_3 = ColumnFormat_3;
|
|
4221
|
+
/** 可序列化的附加工作表在编码前写入,浏览器与 Worker 共用同一声明。 */
|
|
4222
|
+
declare interface XlsxAdditionalSheet {
|
|
4223
|
+
name: string;
|
|
4224
|
+
rows: readonly (readonly (string | number | boolean | null)[])[];
|
|
4225
|
+
columnWidths?: readonly number[];
|
|
4226
|
+
}
|
|
4014
4227
|
declare type XlsxImageOptions = ImageMediaOptions_2;
|
|
4015
4228
|
/**
|
|
4016
4229
|
* RenderPlan → xlsx 导出(B 端第二出口,对齐家族 @agile-team/mach-table-xlsx 路线):
|
|
@@ -4023,6 +4236,8 @@ declare type XlsxImageOptions = ImageMediaOptions_2;
|
|
|
4023
4236
|
declare interface XlsxRenderOptions extends AssetRenderOptions_2, XlsxImageOptions {
|
|
4024
4237
|
/** 工作表命名(连续表默认使用标题,其余默认 "Sheet1" 起序)。 */
|
|
4025
4238
|
sheetName?: (sheetIndex: number) => string;
|
|
4239
|
+
/** 可序列化命名,用于 Worker;未提供的项沿用默认名称。 */
|
|
4240
|
+
sheetNames?: readonly string[];
|
|
4026
4241
|
/** auto 默认将 wide 逻辑表合并为连续 Sheet;pages 保留逐页;continuous 要求明确的表来源。 */
|
|
4027
4242
|
sheetMode?: "auto" | "pages" | "continuous";
|
|
4028
4243
|
/** 宽表或连续表默认 raw,其余默认 text;显式配置可覆盖默认值。 */
|
|
@@ -4031,6 +4246,8 @@ declare interface XlsxRenderOptions extends AssetRenderOptions_2, XlsxImageOptio
|
|
|
4031
4246
|
maxDataBars?: number;
|
|
4032
4247
|
/** 连续表默认不限制打印纸型;显式 A3/A4/A5 仅设置打印适配,不改变 Excel 列宽。 */
|
|
4033
4248
|
paperSize?: "auto" | "a3" | "a4" | "a5";
|
|
4249
|
+
/** 在最终编码前追加说明、审计等标量工作表,可直接交给 Worker。 */
|
|
4250
|
+
additionalSheets?: readonly XlsxAdditionalSheet[];
|
|
4034
4251
|
}
|
|
4035
4252
|
export {};
|
|
4036
4253
|
|