@agile-team/mach-report 2.18.0 → 2.19.1
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 +4 -3
- package/dist/{ExcelBindingWizard-Czn3C2yE.cjs → ExcelBindingWizard-UHSApSG9.cjs} +1 -1
- package/dist/{ExcelBindingWizard-DMGZj6I6.js → ExcelBindingWizard-xJIYmnZ_.js} +1 -1
- package/dist/{ParamEditor-oDfD8LgE.cjs → ParamEditor-BZb-okUd.cjs} +1 -1
- package/dist/{ParamEditor-KzDQvbHY.js → ParamEditor-D1wWemaf.js} +1 -1
- package/dist/{ReportBatchPanel-BJK7PvZ4.js → ReportBatchPanel-B88R-fME.js} +1 -1
- package/dist/{ReportBatchPanel-DnmNRssu.cjs → ReportBatchPanel-BkJFqeEW.cjs} +1 -1
- package/dist/ReportLabelStudio-B4WZ2XNN.js +239 -0
- package/dist/ReportLabelStudio-BN-fYNCr.cjs +1 -0
- package/dist/ReportPreview-CuoHl15N.cjs +6 -0
- package/dist/{ReportPreview-BxWWTUL5.js → ReportPreview-DBbctg6C.js} +2261 -2219
- package/dist/{ReportTemplateLibrary-BFjB08Wu.js → ReportTemplateLibrary-BGELmgd3.js} +1 -1
- package/dist/{ReportTemplateLibrary-BO42QnWd.cjs → ReportTemplateLibrary-BOh2MgjQ.cjs} +1 -1
- package/dist/{RuleEditor-CqxT1a-W.js → RuleEditor-CoLqgehG.js} +1 -1
- package/dist/{RuleEditor-D7YWigD9.cjs → RuleEditor-XaLcCdTb.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-zG0DrsIB.js → TemplateOutlinePanel-DU95loB-.js} +1 -1
- package/dist/{TemplateOutlinePanel-B0XX350V.cjs → TemplateOutlinePanel-DiG8tRRe.cjs} +1 -1
- package/dist/{TemplateReusePanel-Czwe5GbC.js → TemplateReusePanel-DE1KSD6c.js} +1 -1
- package/dist/{TemplateReusePanel-BD0HSKp_.cjs → TemplateReusePanel-G-Y299wc.cjs} +1 -1
- package/dist/{TemplateReviewPanel-CA5sdffM.cjs → TemplateReviewPanel-KQx9ts0D.cjs} +1 -1
- package/dist/{TemplateReviewPanel-NhmQI65C.js → TemplateReviewPanel-vqFJ_Y9o.js} +1 -1
- package/dist/artifact-integrity.json +34 -32
- package/dist/designer-CyKXBhQg.cjs +2 -0
- package/dist/designer-fVvpYg8H.js +5824 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +93 -1
- package/dist/designer.d.ts +93 -1
- package/dist/designer.js +22 -19
- package/dist/{plugin-DM1M2wlI.cjs → plugin-CPyHs4UC.cjs} +1 -1
- package/dist/{plugin-ByjF2kiV.js → plugin-DsXJRR6Q.js} +1 -1
- package/dist/sbom.cdx.json +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.js +1 -1
- package/dist/style.css +1 -1
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +3 -3
- package/package.json +1 -1
- package/dist/ReportPreview-Yf99omi3.cjs +0 -6
- package/dist/designer--TKECSEc.cjs +0 -2
- package/dist/designer-d6hJS41w.js +0 -5683
package/dist/designer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const E=require("./designer
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const E=require("./designer-CyKXBhQg.cjs");exports.COLUMN_VISUAL_MESSAGES=E.COLUMN_VISUAL_MESSAGES;exports.ChartBindingInspector=E.ChartBindingInspector;exports.ColumnVisualEditor=E.ColumnVisualEditor;exports.DESIGNER_GUIDE_MESSAGES=E.DESIGNER_GUIDE_MESSAGES;exports.EXCEL_BINDING_MESSAGES=E.EXCEL_BINDING_MESSAGES;exports.ExcelBindingWizard=E.ExcelBindingWizard;exports.LABEL_STUDIO_MESSAGES=E.LABEL_STUDIO_MESSAGES;exports.PARAM_EDITOR_MESSAGES=E.PARAM_EDITOR_MESSAGES;exports.ParamEditor=E.ParamEditor;exports.REPORT_BATCH_MESSAGES=E.REPORT_BATCH_MESSAGES;exports.RULE_EDITOR_MESSAGES=E.DEFAULT_RULE_EDITOR_MESSAGES;exports.ReportBatchPanel=E.ReportBatchPanel;exports.ReportLabelStudio=E.ReportLabelStudio;exports.ReportTemplateEditor=E.ReportTemplateEditor;exports.ReportTemplateLibrary=E.ReportTemplateLibrary;exports.RuleEditor=E.RuleEditor;exports.TEMPLATE_EDITOR_MESSAGES=E.TEMPLATE_EDITOR_MESSAGES;exports.TEMPLATE_LIBRARY_MESSAGES=E.TEMPLATE_LIBRARY_MESSAGES;exports.TEMPLATE_PRODUCT_MESSAGES=E.TEMPLATE_PRODUCT_MESSAGES;exports.TEMPLATE_RECOVERY_MESSAGES=E.TEMPLATE_RECOVERY_MESSAGES;exports.TEMPLATE_REVIEW_MESSAGES=E.TEMPLATE_REVIEW_MESSAGES;exports.TemplateOutlinePanel=E.TemplateOutlinePanel;exports.TemplateReusePanel=E.TemplateReusePanel;exports.TemplateReviewPanel=E.TemplateReviewPanel;exports.createTemplateDraftStorage=E.createTemplateDraftStorage;
|
package/dist/designer.d.cts
CHANGED
|
@@ -465,6 +465,27 @@ declare interface DatasetContract_2 {
|
|
|
465
465
|
}
|
|
466
466
|
declare type DatasetRows = Record<string, Record<string, unknown>[]>;
|
|
467
467
|
declare type DatasetRows_2 = Record<string, Record<string, unknown>[]>;
|
|
468
|
+
export declare const DESIGNER_GUIDE_MESSAGES: {
|
|
469
|
+
readonly title: "操作指引";
|
|
470
|
+
readonly prompt: "这次想调整什么?";
|
|
471
|
+
readonly close: "关闭操作指引";
|
|
472
|
+
readonly fields: "改字段、对齐和颜色";
|
|
473
|
+
readonly fieldsHint: "选中一列,再修改属性;支持数据条与色阶";
|
|
474
|
+
readonly components: "加图表、二维码或条码";
|
|
475
|
+
readonly componentsHint: "进入画布,添加组件并绑定真实字段";
|
|
476
|
+
readonly layout: "改纸张、页数和份数";
|
|
477
|
+
readonly layoutHint: "设置毫米尺寸、标准纸型及逐记录输出";
|
|
478
|
+
readonly excel: "从 Excel 还原模板";
|
|
479
|
+
readonly excelHint: "导入工作簿,再明确字段和区域绑定";
|
|
480
|
+
readonly rules: "配计算和条件样式";
|
|
481
|
+
readonly rulesHint: "先配置,再应用到模板;不会修改接口实绩";
|
|
482
|
+
readonly review: "检查并定位问题";
|
|
483
|
+
readonly reviewHint: "校验字段依赖、样例结果与输出限制";
|
|
484
|
+
readonly result: "预览确认效果后保存模板;高级 JSON 保留给需要时使用。";
|
|
485
|
+
};
|
|
486
|
+
export declare type DesignerGuideMessages = {
|
|
487
|
+
[K in keyof typeof DESIGNER_GUIDE_MESSAGES]: string;
|
|
488
|
+
};
|
|
468
489
|
/** Optional wizard labels remain independent of the general designer configuration. */
|
|
469
490
|
export declare const EXCEL_BINDING_MESSAGES: {
|
|
470
491
|
recoveredMapping: string;
|
|
@@ -900,6 +921,53 @@ declare interface ImageMediaOptions {
|
|
|
900
921
|
/** Maximum source dimension, default 16384 pixels. */
|
|
901
922
|
maxImageDimension?: number;
|
|
902
923
|
}
|
|
924
|
+
export declare const LABEL_STUDIO_MESSAGES: {
|
|
925
|
+
readonly applyFirst: "请先应用当前配置或修正模板问题,再切换打印预览。";
|
|
926
|
+
readonly saveFailed: "模板尚未保存,请检查提示后重试。";
|
|
927
|
+
readonly title: "标识打印";
|
|
928
|
+
readonly preview: "打印预览";
|
|
929
|
+
readonly design: "设计标签";
|
|
930
|
+
readonly records: "预览记录";
|
|
931
|
+
readonly all: "全部记录";
|
|
932
|
+
readonly record: "记录序号";
|
|
933
|
+
readonly single: "单条预览";
|
|
934
|
+
readonly faces: "个版面";
|
|
935
|
+
readonly labels: "张标签";
|
|
936
|
+
readonly session: "当前会话模板";
|
|
937
|
+
readonly flow: "选择记录 → 设计标签 → 预览并打印";
|
|
938
|
+
readonly guide: "使用指引";
|
|
939
|
+
readonly help: "在画布点选文字或码图,再设置绑定字段;在“模板”中调整纸张与份数。";
|
|
940
|
+
readonly size: "纸张与份数";
|
|
941
|
+
readonly bindings: "字段与码图";
|
|
942
|
+
readonly count: "条记录";
|
|
943
|
+
readonly invalidCopies: "份数待校验";
|
|
944
|
+
readonly sheet: "A4 标签拼版";
|
|
945
|
+
readonly sheetHint: "2 列 × 4 行,保持原尺寸";
|
|
946
|
+
readonly printHint: "先试打一张,使用同规格纸张与 100% 比例核对尺寸和扫码。";
|
|
947
|
+
readonly empty: "暂无可打印记录";
|
|
948
|
+
readonly save: "保存标签模板";
|
|
949
|
+
};
|
|
950
|
+
/** Named business row interfaces and readonly arrays need no index signature or conversion. */
|
|
951
|
+
declare type LabelReportRows = readonly object[];
|
|
952
|
+
export declare interface LabelStudioController {
|
|
953
|
+
readonly busy?: boolean;
|
|
954
|
+
guardChanges(): Promise<boolean>;
|
|
955
|
+
prepare(): Promise<ReportTemplateDocument | undefined>;
|
|
956
|
+
}
|
|
957
|
+
export declare type LabelStudioMessages = {
|
|
958
|
+
[K in keyof typeof LABEL_STUDIO_MESSAGES]: string;
|
|
959
|
+
};
|
|
960
|
+
export declare interface LabelStudioOptions {
|
|
961
|
+
rows: LabelReportRows;
|
|
962
|
+
schema: DatasetContract;
|
|
963
|
+
title?: string;
|
|
964
|
+
identityField?: string;
|
|
965
|
+
modelValue?: ReportTemplateDocument;
|
|
966
|
+
preview?: TemplateEditorOptions["preview"];
|
|
967
|
+
save?: TemplateEditorOptions["save"];
|
|
968
|
+
beforeDiscard?: TemplateEditorOptions["beforeDiscard"];
|
|
969
|
+
messages?: Partial<LabelStudioMessages>;
|
|
970
|
+
}
|
|
903
971
|
/** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
|
|
904
972
|
declare type ListAlignment = NonNullable<ComponentStyle["align"]> | "auto";
|
|
905
973
|
/** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
|
|
@@ -1818,6 +1886,7 @@ declare interface MatrixTableOptions_3 {
|
|
|
1818
1886
|
/** Hierarchical aggregate work, checked before measure reads; default 10 million updates. */
|
|
1819
1887
|
maxAggregateUpdates?: number;
|
|
1820
1888
|
}
|
|
1889
|
+
declare function openPanel(target: TemplateEditorPanel): void;
|
|
1821
1890
|
declare interface OutputDiagnostic {
|
|
1822
1891
|
code: "invalid-image-data" | "image-budget-exceeded" | "component-render-failed" | "unsupported-text" | "output-degraded" | "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
|
|
1823
1892
|
severity: "warning";
|
|
@@ -3119,6 +3188,16 @@ declare interface ReportInteractionOptions {
|
|
|
3119
3188
|
/** Show workbook sheets / report sections when available. Default true. */
|
|
3120
3189
|
navigation?: boolean;
|
|
3121
3190
|
}
|
|
3191
|
+
/** Label workspace: a flat rows/schema contract with the existing designer and output pipeline. */
|
|
3192
|
+
export declare const ReportLabelStudio: DefineComponent<LabelStudioOptions, {
|
|
3193
|
+
guardChanges: () => Promise<boolean>;
|
|
3194
|
+
prepare: () => Promise<ReportTemplateDocument_3 | undefined>;
|
|
3195
|
+
busy: boolean;
|
|
3196
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3197
|
+
"update:modelValue": (document: ReportTemplateDocument_3) => any;
|
|
3198
|
+
}, string, MachReportVuePublicProps, Readonly<LabelStudioOptions> & Readonly<{
|
|
3199
|
+
"onUpdate:modelValue"?: ((document: ReportTemplateDocument_3) => any) | undefined;
|
|
3200
|
+
}>, {}>;
|
|
3122
3201
|
declare interface ReportOutputOptions {
|
|
3123
3202
|
/** warn preserves supported output and shows diagnostics; strict rejects known fidelity loss. */
|
|
3124
3203
|
fidelity?: "warn" | "strict";
|
|
@@ -3482,6 +3561,9 @@ declare interface ReportTemplateDocument_3 {
|
|
|
3482
3561
|
template: ReportTemplate_3;
|
|
3483
3562
|
}
|
|
3484
3563
|
export declare const ReportTemplateEditor: DefineComponent<TemplateEditorOptions, {
|
|
3564
|
+
openPanel: typeof openPanel;
|
|
3565
|
+
canApply: boolean;
|
|
3566
|
+
saveReason: string;
|
|
3485
3567
|
pendingLocalChanges: boolean;
|
|
3486
3568
|
saving: boolean;
|
|
3487
3569
|
blocked: boolean;
|
|
@@ -3497,7 +3579,9 @@ export declare const ReportTemplateEditor: DefineComponent<TemplateEditorOptions
|
|
|
3497
3579
|
"onUpdate:modelValue"?: ((document: ReportTemplateDocument) => any) | undefined;
|
|
3498
3580
|
onSaved?: ((document: ReportTemplateDocument) => any) | undefined;
|
|
3499
3581
|
"onExcel-bound"?: ((result: ExcelBindingWizardApply) => any) | undefined;
|
|
3500
|
-
}>, {
|
|
3582
|
+
}>, {
|
|
3583
|
+
showSave: boolean;
|
|
3584
|
+
}>;
|
|
3501
3585
|
declare interface ReportTemplateFixture {
|
|
3502
3586
|
name: string;
|
|
3503
3587
|
datasets: DatasetRows;
|
|
@@ -4357,8 +4441,12 @@ export declare interface TemplateEditorConflictOptions {
|
|
|
4357
4441
|
keepCopy?: (document: ReportTemplateDocument, context: TemplateCopyContext) => Promise<void>;
|
|
4358
4442
|
}
|
|
4359
4443
|
export declare interface TemplateEditorController {
|
|
4444
|
+
/** Open a task through the package navigation, without reaching into child DOM. */
|
|
4445
|
+
openPanel?(target: TemplateEditorPanel): void;
|
|
4360
4446
|
/** Insert a native/registered component through validation, geometry constraints and undo history. */
|
|
4361
4447
|
insertComponent(component: TemplateComponent): boolean;
|
|
4448
|
+
readonly canApply?: boolean;
|
|
4449
|
+
readonly saveReason?: string;
|
|
4362
4450
|
readonly pendingLocalChanges: boolean;
|
|
4363
4451
|
readonly saving?: boolean;
|
|
4364
4452
|
readonly blocked?: boolean;
|
|
@@ -4369,6 +4457,9 @@ export declare interface TemplateEditorController {
|
|
|
4369
4457
|
/** Newly introduced labels are optional for existing complete message dictionaries. */
|
|
4370
4458
|
export declare type TemplateEditorMessages = typeof BASE_TEMPLATE_EDITOR_MESSAGES & Partial<typeof PRODUCT_TEMPLATE_EDITOR_MESSAGES>;
|
|
4371
4459
|
export declare interface TemplateEditorOptions extends TemplateEditorConflictOptions {
|
|
4460
|
+
/** Hide the duplicate save action when the host already provides an apply/save footer. */
|
|
4461
|
+
showSave?: boolean;
|
|
4462
|
+
guideMessages?: Partial<DesignerGuideMessages>;
|
|
4372
4463
|
/** Opt-in declaration-only recovery. Scope should include project and account identity. */
|
|
4373
4464
|
draftStorage?: TemplateDraftStorage;
|
|
4374
4465
|
recoveryMessages?: Partial<TemplateRecoveryMessages>;
|
|
@@ -4390,6 +4481,7 @@ export declare interface TemplateEditorOptions extends TemplateEditorConflictOpt
|
|
|
4390
4481
|
beforeDiscard?: TemplateEditorBeforeDiscard;
|
|
4391
4482
|
save?: (document: ReportTemplateDocument, context: TemplateEditorSaveContext) => Promise<ReportTemplateDocument>;
|
|
4392
4483
|
}
|
|
4484
|
+
export declare type TemplateEditorPanel = "fields" | "components" | "layout" | "excel" | "rules" | "params" | "review";
|
|
4393
4485
|
export declare interface TemplateEditorSaveContext {
|
|
4394
4486
|
expectedRevision?: string;
|
|
4395
4487
|
signal: AbortSignal;
|
package/dist/designer.d.ts
CHANGED
|
@@ -465,6 +465,27 @@ declare interface DatasetContract_2 {
|
|
|
465
465
|
}
|
|
466
466
|
declare type DatasetRows = Record<string, Record<string, unknown>[]>;
|
|
467
467
|
declare type DatasetRows_2 = Record<string, Record<string, unknown>[]>;
|
|
468
|
+
export declare const DESIGNER_GUIDE_MESSAGES: {
|
|
469
|
+
readonly title: "操作指引";
|
|
470
|
+
readonly prompt: "这次想调整什么?";
|
|
471
|
+
readonly close: "关闭操作指引";
|
|
472
|
+
readonly fields: "改字段、对齐和颜色";
|
|
473
|
+
readonly fieldsHint: "选中一列,再修改属性;支持数据条与色阶";
|
|
474
|
+
readonly components: "加图表、二维码或条码";
|
|
475
|
+
readonly componentsHint: "进入画布,添加组件并绑定真实字段";
|
|
476
|
+
readonly layout: "改纸张、页数和份数";
|
|
477
|
+
readonly layoutHint: "设置毫米尺寸、标准纸型及逐记录输出";
|
|
478
|
+
readonly excel: "从 Excel 还原模板";
|
|
479
|
+
readonly excelHint: "导入工作簿,再明确字段和区域绑定";
|
|
480
|
+
readonly rules: "配计算和条件样式";
|
|
481
|
+
readonly rulesHint: "先配置,再应用到模板;不会修改接口实绩";
|
|
482
|
+
readonly review: "检查并定位问题";
|
|
483
|
+
readonly reviewHint: "校验字段依赖、样例结果与输出限制";
|
|
484
|
+
readonly result: "预览确认效果后保存模板;高级 JSON 保留给需要时使用。";
|
|
485
|
+
};
|
|
486
|
+
export declare type DesignerGuideMessages = {
|
|
487
|
+
[K in keyof typeof DESIGNER_GUIDE_MESSAGES]: string;
|
|
488
|
+
};
|
|
468
489
|
/** Optional wizard labels remain independent of the general designer configuration. */
|
|
469
490
|
export declare const EXCEL_BINDING_MESSAGES: {
|
|
470
491
|
recoveredMapping: string;
|
|
@@ -900,6 +921,53 @@ declare interface ImageMediaOptions {
|
|
|
900
921
|
/** Maximum source dimension, default 16384 pixels. */
|
|
901
922
|
maxImageDimension?: number;
|
|
902
923
|
}
|
|
924
|
+
export declare const LABEL_STUDIO_MESSAGES: {
|
|
925
|
+
readonly applyFirst: "请先应用当前配置或修正模板问题,再切换打印预览。";
|
|
926
|
+
readonly saveFailed: "模板尚未保存,请检查提示后重试。";
|
|
927
|
+
readonly title: "标识打印";
|
|
928
|
+
readonly preview: "打印预览";
|
|
929
|
+
readonly design: "设计标签";
|
|
930
|
+
readonly records: "预览记录";
|
|
931
|
+
readonly all: "全部记录";
|
|
932
|
+
readonly record: "记录序号";
|
|
933
|
+
readonly single: "单条预览";
|
|
934
|
+
readonly faces: "个版面";
|
|
935
|
+
readonly labels: "张标签";
|
|
936
|
+
readonly session: "当前会话模板";
|
|
937
|
+
readonly flow: "选择记录 → 设计标签 → 预览并打印";
|
|
938
|
+
readonly guide: "使用指引";
|
|
939
|
+
readonly help: "在画布点选文字或码图,再设置绑定字段;在“模板”中调整纸张与份数。";
|
|
940
|
+
readonly size: "纸张与份数";
|
|
941
|
+
readonly bindings: "字段与码图";
|
|
942
|
+
readonly count: "条记录";
|
|
943
|
+
readonly invalidCopies: "份数待校验";
|
|
944
|
+
readonly sheet: "A4 标签拼版";
|
|
945
|
+
readonly sheetHint: "2 列 × 4 行,保持原尺寸";
|
|
946
|
+
readonly printHint: "先试打一张,使用同规格纸张与 100% 比例核对尺寸和扫码。";
|
|
947
|
+
readonly empty: "暂无可打印记录";
|
|
948
|
+
readonly save: "保存标签模板";
|
|
949
|
+
};
|
|
950
|
+
/** Named business row interfaces and readonly arrays need no index signature or conversion. */
|
|
951
|
+
declare type LabelReportRows = readonly object[];
|
|
952
|
+
export declare interface LabelStudioController {
|
|
953
|
+
readonly busy?: boolean;
|
|
954
|
+
guardChanges(): Promise<boolean>;
|
|
955
|
+
prepare(): Promise<ReportTemplateDocument | undefined>;
|
|
956
|
+
}
|
|
957
|
+
export declare type LabelStudioMessages = {
|
|
958
|
+
[K in keyof typeof LABEL_STUDIO_MESSAGES]: string;
|
|
959
|
+
};
|
|
960
|
+
export declare interface LabelStudioOptions {
|
|
961
|
+
rows: LabelReportRows;
|
|
962
|
+
schema: DatasetContract;
|
|
963
|
+
title?: string;
|
|
964
|
+
identityField?: string;
|
|
965
|
+
modelValue?: ReportTemplateDocument;
|
|
966
|
+
preview?: TemplateEditorOptions["preview"];
|
|
967
|
+
save?: TemplateEditorOptions["save"];
|
|
968
|
+
beforeDiscard?: TemplateEditorOptions["beforeDiscard"];
|
|
969
|
+
messages?: Partial<LabelStudioMessages>;
|
|
970
|
+
}
|
|
903
971
|
/** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
|
|
904
972
|
declare type ListAlignment = NonNullable<ComponentStyle["align"]> | "auto";
|
|
905
973
|
/** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
|
|
@@ -1818,6 +1886,7 @@ declare interface MatrixTableOptions_3 {
|
|
|
1818
1886
|
/** Hierarchical aggregate work, checked before measure reads; default 10 million updates. */
|
|
1819
1887
|
maxAggregateUpdates?: number;
|
|
1820
1888
|
}
|
|
1889
|
+
declare function openPanel(target: TemplateEditorPanel): void;
|
|
1821
1890
|
declare interface OutputDiagnostic {
|
|
1822
1891
|
code: "invalid-image-data" | "image-budget-exceeded" | "component-render-failed" | "unsupported-text" | "output-degraded" | "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
|
|
1823
1892
|
severity: "warning";
|
|
@@ -3119,6 +3188,16 @@ declare interface ReportInteractionOptions {
|
|
|
3119
3188
|
/** Show workbook sheets / report sections when available. Default true. */
|
|
3120
3189
|
navigation?: boolean;
|
|
3121
3190
|
}
|
|
3191
|
+
/** Label workspace: a flat rows/schema contract with the existing designer and output pipeline. */
|
|
3192
|
+
export declare const ReportLabelStudio: DefineComponent<LabelStudioOptions, {
|
|
3193
|
+
guardChanges: () => Promise<boolean>;
|
|
3194
|
+
prepare: () => Promise<ReportTemplateDocument_3 | undefined>;
|
|
3195
|
+
busy: boolean;
|
|
3196
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3197
|
+
"update:modelValue": (document: ReportTemplateDocument_3) => any;
|
|
3198
|
+
}, string, MachReportVuePublicProps, Readonly<LabelStudioOptions> & Readonly<{
|
|
3199
|
+
"onUpdate:modelValue"?: ((document: ReportTemplateDocument_3) => any) | undefined;
|
|
3200
|
+
}>, {}>;
|
|
3122
3201
|
declare interface ReportOutputOptions {
|
|
3123
3202
|
/** warn preserves supported output and shows diagnostics; strict rejects known fidelity loss. */
|
|
3124
3203
|
fidelity?: "warn" | "strict";
|
|
@@ -3482,6 +3561,9 @@ declare interface ReportTemplateDocument_3 {
|
|
|
3482
3561
|
template: ReportTemplate_3;
|
|
3483
3562
|
}
|
|
3484
3563
|
export declare const ReportTemplateEditor: DefineComponent<TemplateEditorOptions, {
|
|
3564
|
+
openPanel: typeof openPanel;
|
|
3565
|
+
canApply: boolean;
|
|
3566
|
+
saveReason: string;
|
|
3485
3567
|
pendingLocalChanges: boolean;
|
|
3486
3568
|
saving: boolean;
|
|
3487
3569
|
blocked: boolean;
|
|
@@ -3497,7 +3579,9 @@ export declare const ReportTemplateEditor: DefineComponent<TemplateEditorOptions
|
|
|
3497
3579
|
"onUpdate:modelValue"?: ((document: ReportTemplateDocument) => any) | undefined;
|
|
3498
3580
|
onSaved?: ((document: ReportTemplateDocument) => any) | undefined;
|
|
3499
3581
|
"onExcel-bound"?: ((result: ExcelBindingWizardApply) => any) | undefined;
|
|
3500
|
-
}>, {
|
|
3582
|
+
}>, {
|
|
3583
|
+
showSave: boolean;
|
|
3584
|
+
}>;
|
|
3501
3585
|
declare interface ReportTemplateFixture {
|
|
3502
3586
|
name: string;
|
|
3503
3587
|
datasets: DatasetRows;
|
|
@@ -4357,8 +4441,12 @@ export declare interface TemplateEditorConflictOptions {
|
|
|
4357
4441
|
keepCopy?: (document: ReportTemplateDocument, context: TemplateCopyContext) => Promise<void>;
|
|
4358
4442
|
}
|
|
4359
4443
|
export declare interface TemplateEditorController {
|
|
4444
|
+
/** Open a task through the package navigation, without reaching into child DOM. */
|
|
4445
|
+
openPanel?(target: TemplateEditorPanel): void;
|
|
4360
4446
|
/** Insert a native/registered component through validation, geometry constraints and undo history. */
|
|
4361
4447
|
insertComponent(component: TemplateComponent): boolean;
|
|
4448
|
+
readonly canApply?: boolean;
|
|
4449
|
+
readonly saveReason?: string;
|
|
4362
4450
|
readonly pendingLocalChanges: boolean;
|
|
4363
4451
|
readonly saving?: boolean;
|
|
4364
4452
|
readonly blocked?: boolean;
|
|
@@ -4369,6 +4457,9 @@ export declare interface TemplateEditorController {
|
|
|
4369
4457
|
/** Newly introduced labels are optional for existing complete message dictionaries. */
|
|
4370
4458
|
export declare type TemplateEditorMessages = typeof BASE_TEMPLATE_EDITOR_MESSAGES & Partial<typeof PRODUCT_TEMPLATE_EDITOR_MESSAGES>;
|
|
4371
4459
|
export declare interface TemplateEditorOptions extends TemplateEditorConflictOptions {
|
|
4460
|
+
/** Hide the duplicate save action when the host already provides an apply/save footer. */
|
|
4461
|
+
showSave?: boolean;
|
|
4462
|
+
guideMessages?: Partial<DesignerGuideMessages>;
|
|
4372
4463
|
/** Opt-in declaration-only recovery. Scope should include project and account identity. */
|
|
4373
4464
|
draftStorage?: TemplateDraftStorage;
|
|
4374
4465
|
recoveryMessages?: Partial<TemplateRecoveryMessages>;
|
|
@@ -4390,6 +4481,7 @@ export declare interface TemplateEditorOptions extends TemplateEditorConflictOpt
|
|
|
4390
4481
|
beforeDiscard?: TemplateEditorBeforeDiscard;
|
|
4391
4482
|
save?: (document: ReportTemplateDocument, context: TemplateEditorSaveContext) => Promise<ReportTemplateDocument>;
|
|
4392
4483
|
}
|
|
4484
|
+
export declare type TemplateEditorPanel = "fields" | "components" | "layout" | "excel" | "rules" | "params" | "review";
|
|
4393
4485
|
export declare interface TemplateEditorSaveContext {
|
|
4394
4486
|
expectedRevision?: string;
|
|
4395
4487
|
signal: AbortSignal;
|
package/dist/designer.js
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as e, d as s, e as t, f as T, E as _, g as A, L as R, P as r, h as M, R as l, D as i, i as o, j as G, c as L, k as p, l as P, m as n, a as I, b as m, n as D, T as d, o as O, p as C, q as B, r as u } from "./designer-fVvpYg8H.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
e as COLUMN_VISUAL_MESSAGES,
|
|
5
5
|
s as ChartBindingInspector,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
t as ColumnVisualEditor,
|
|
7
|
+
T as DESIGNER_GUIDE_MESSAGES,
|
|
8
|
+
_ as EXCEL_BINDING_MESSAGES,
|
|
8
9
|
A as ExcelBindingWizard,
|
|
9
|
-
R as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
R as LABEL_STUDIO_MESSAGES,
|
|
11
|
+
r as PARAM_EDITOR_MESSAGES,
|
|
12
|
+
M as ParamEditor,
|
|
13
|
+
l as REPORT_BATCH_MESSAGES,
|
|
14
|
+
i as RULE_EDITOR_MESSAGES,
|
|
15
|
+
o as ReportBatchPanel,
|
|
16
|
+
G as ReportLabelStudio,
|
|
17
|
+
L as ReportTemplateEditor,
|
|
18
|
+
p as ReportTemplateLibrary,
|
|
16
19
|
P as RuleEditor,
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
n as TEMPLATE_EDITOR_MESSAGES,
|
|
21
|
+
I as TEMPLATE_LIBRARY_MESSAGES,
|
|
19
22
|
m as TEMPLATE_PRODUCT_MESSAGES,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
D as TEMPLATE_RECOVERY_MESSAGES,
|
|
24
|
+
d as TEMPLATE_REVIEW_MESSAGES,
|
|
25
|
+
O as TemplateOutlinePanel,
|
|
26
|
+
C as TemplateReusePanel,
|
|
27
|
+
B as TemplateReviewPanel,
|
|
28
|
+
u as createTemplateDraftStorage
|
|
26
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var R=Object.create;var f=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var m=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of P(e))!p.call(r,o)&&o!==t&&f(r,o,{get:()=>e[o],enumerable:!(n=u(e,o))||n.enumerable});return r};var E=(r,e,t)=>(t=r!=null?R(d(r)):{},m(e||!r||!r.__esModule?f(t,"default",{value:r,enumerable:!0}):t,r));const l=require("vue"),i=require("./injection-keys-Db_DyLkm.cjs"),h=require("./report-params-VTg8MoCp.cjs"),s=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ReportPreview-
|
|
1
|
+
"use strict";var R=Object.create;var f=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var m=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of P(e))!p.call(r,o)&&o!==t&&f(r,o,{get:()=>e[o],enumerable:!(n=u(e,o))||n.enumerable});return r};var E=(r,e,t)=>(t=r!=null?R(d(r)):{},m(e||!r||!r.__esModule?f(t,"default",{value:r,enumerable:!0}):t,r));const l=require("vue"),i=require("./injection-keys-Db_DyLkm.cjs"),h=require("./report-params-VTg8MoCp.cjs"),s=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ReportPreview-CuoHl15N.cjs")).then(r=>r.ReportPreview$1)),v={install(r,e={}){let t=e.fetcher;if(!t&&e.reports){const n=e.reports;let o;t=async c=>(o??=import("@agile-team/mach-report").then(({createReportSource:a})=>a(n)),(await o)(c)),t.getParamDefs=c=>h.getReportParamDefs(n,c)}t&&r.provide(i.MACH_REPORT_FETCHER_KEY,t),e.pdfExporter&&r.provide(i.MACH_REPORT_PDF_EXPORTER_KEY,e.pdfExporter),r.provide(i.MACH_REPORT_CONFIG_KEY,l.computed(()=>{if(e.pdfFontUrl===void 0)return e.config??null;const n=e.config??{defaults:{},presets:{}};return{...n,defaults:{...n.defaults,pdfFontUrl:e.pdfFontUrl}}})),e.globalComponent!==!1&&!r.component("MachReportPreview")&&r.component("MachReportPreview",s)}};exports.MachReportPreview=s;exports.machReportPlugin=v;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineAsyncComponent as c, computed as m } from "vue";
|
|
2
2
|
import { b as i, c as l, a as d } from "./injection-keys-e85udZCp.js";
|
|
3
3
|
import { g as s } from "./report-params-D9tBuM9B.js";
|
|
4
|
-
const p = c(() => import("./ReportPreview-
|
|
4
|
+
const p = c(() => import("./ReportPreview-DBbctg6C.js").then((r) => r.v)), _ = {
|
|
5
5
|
install(r, e = {}) {
|
|
6
6
|
let t = e.fetcher;
|
|
7
7
|
if (!t && e.reports) {
|