@agile-team/mach-report 0.9.0 → 0.10.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/dist/ReportPreview--ElcAKoi.cjs +6 -0
- package/dist/ReportPreview-C6b5TOzz.js +1068 -0
- package/dist/builder/template-builder.d.ts +16 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +50 -33
- package/dist/layout/paginate.d.ts +18 -0
- package/dist/{plugin-vi2GjP43.js → plugin-QjAiSBP6.js} +1 -1
- package/dist/{plugin-9eBK7khj.cjs → plugin-gftml2ST.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/vue/ReportParamPanel.d.ts +19 -0
- package/dist/vue/ReportPreview.d.ts +23 -0
- package/dist/vue/async.d.cts +30 -0
- package/dist/vue/async.d.ts +30 -0
- package/dist/vue/config.d.ts +9 -1
- package/dist/vue/index.d.cts +1 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/plugin.d.ts +30 -0
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +32 -31
- package/package.json +10 -1
- package/dist/ReportPreview-BFTfls8h.js +0 -923
- package/dist/ReportPreview-D6VHDUvR.cjs +0 -6
package/dist/vue/async.d.cts
CHANGED
|
@@ -63,6 +63,14 @@ export declare const MachReportPreview: {
|
|
|
63
63
|
type: BooleanConstructor;
|
|
64
64
|
default: boolean;
|
|
65
65
|
};
|
|
66
|
+
paramDefs: {
|
|
67
|
+
type: import('vue').PropType<import('..').ReportParamDef[] | undefined>;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
showParams: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
66
74
|
fetcher: {
|
|
67
75
|
type: import('vue').PropType<import('./adapters').PlanFetcher | null>;
|
|
68
76
|
default: null;
|
|
@@ -95,9 +103,11 @@ export declare const MachReportPreview: {
|
|
|
95
103
|
showExport: boolean;
|
|
96
104
|
showPrint: boolean;
|
|
97
105
|
showPdfWindow: boolean;
|
|
106
|
+
showParams: boolean;
|
|
98
107
|
messages: Partial<import('./config').MachReportMessages>;
|
|
99
108
|
autoLoad: boolean;
|
|
100
109
|
preset: string;
|
|
110
|
+
paramDefs: import('..').ReportParamDef[] | undefined;
|
|
101
111
|
fetcher: import('./adapters').PlanFetcher | null;
|
|
102
112
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
103
113
|
viewportRef: HTMLDivElement;
|
|
@@ -159,6 +169,14 @@ export declare const MachReportPreview: {
|
|
|
159
169
|
type: BooleanConstructor;
|
|
160
170
|
default: boolean;
|
|
161
171
|
};
|
|
172
|
+
paramDefs: {
|
|
173
|
+
type: import('vue').PropType<import('..').ReportParamDef[] | undefined>;
|
|
174
|
+
default: undefined;
|
|
175
|
+
};
|
|
176
|
+
showParams: {
|
|
177
|
+
type: BooleanConstructor;
|
|
178
|
+
default: undefined;
|
|
179
|
+
};
|
|
162
180
|
fetcher: {
|
|
163
181
|
type: import('vue').PropType<import('./adapters').PlanFetcher | null>;
|
|
164
182
|
default: null;
|
|
@@ -185,9 +203,11 @@ export declare const MachReportPreview: {
|
|
|
185
203
|
showExport: boolean;
|
|
186
204
|
showPrint: boolean;
|
|
187
205
|
showPdfWindow: boolean;
|
|
206
|
+
showParams: boolean;
|
|
188
207
|
messages: Partial<import('./config').MachReportMessages>;
|
|
189
208
|
autoLoad: boolean;
|
|
190
209
|
preset: string;
|
|
210
|
+
paramDefs: import('..').ReportParamDef[] | undefined;
|
|
191
211
|
fetcher: import('./adapters').PlanFetcher | null;
|
|
192
212
|
}>;
|
|
193
213
|
__isFragment?: never;
|
|
@@ -242,6 +262,14 @@ export declare const MachReportPreview: {
|
|
|
242
262
|
type: BooleanConstructor;
|
|
243
263
|
default: boolean;
|
|
244
264
|
};
|
|
265
|
+
paramDefs: {
|
|
266
|
+
type: import('vue').PropType<import('..').ReportParamDef[] | undefined>;
|
|
267
|
+
default: undefined;
|
|
268
|
+
};
|
|
269
|
+
showParams: {
|
|
270
|
+
type: BooleanConstructor;
|
|
271
|
+
default: undefined;
|
|
272
|
+
};
|
|
245
273
|
fetcher: {
|
|
246
274
|
type: import('vue').PropType<import('./adapters').PlanFetcher | null>;
|
|
247
275
|
default: null;
|
|
@@ -274,9 +302,11 @@ export declare const MachReportPreview: {
|
|
|
274
302
|
showExport: boolean;
|
|
275
303
|
showPrint: boolean;
|
|
276
304
|
showPdfWindow: boolean;
|
|
305
|
+
showParams: boolean;
|
|
277
306
|
messages: Partial<import('./config').MachReportMessages>;
|
|
278
307
|
autoLoad: boolean;
|
|
279
308
|
preset: string;
|
|
309
|
+
paramDefs: import('..').ReportParamDef[] | undefined;
|
|
280
310
|
fetcher: import('./adapters').PlanFetcher | null;
|
|
281
311
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
282
312
|
$slots: {
|
package/dist/vue/async.d.ts
CHANGED
|
@@ -63,6 +63,14 @@ export declare const MachReportPreview: {
|
|
|
63
63
|
type: BooleanConstructor;
|
|
64
64
|
default: boolean;
|
|
65
65
|
};
|
|
66
|
+
paramDefs: {
|
|
67
|
+
type: import('vue').PropType<import('..').ReportParamDef[] | undefined>;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
showParams: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
66
74
|
fetcher: {
|
|
67
75
|
type: import('vue').PropType<import('./adapters').PlanFetcher | null>;
|
|
68
76
|
default: null;
|
|
@@ -95,9 +103,11 @@ export declare const MachReportPreview: {
|
|
|
95
103
|
showExport: boolean;
|
|
96
104
|
showPrint: boolean;
|
|
97
105
|
showPdfWindow: boolean;
|
|
106
|
+
showParams: boolean;
|
|
98
107
|
messages: Partial<import('./config').MachReportMessages>;
|
|
99
108
|
autoLoad: boolean;
|
|
100
109
|
preset: string;
|
|
110
|
+
paramDefs: import('..').ReportParamDef[] | undefined;
|
|
101
111
|
fetcher: import('./adapters').PlanFetcher | null;
|
|
102
112
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
103
113
|
viewportRef: HTMLDivElement;
|
|
@@ -159,6 +169,14 @@ export declare const MachReportPreview: {
|
|
|
159
169
|
type: BooleanConstructor;
|
|
160
170
|
default: boolean;
|
|
161
171
|
};
|
|
172
|
+
paramDefs: {
|
|
173
|
+
type: import('vue').PropType<import('..').ReportParamDef[] | undefined>;
|
|
174
|
+
default: undefined;
|
|
175
|
+
};
|
|
176
|
+
showParams: {
|
|
177
|
+
type: BooleanConstructor;
|
|
178
|
+
default: undefined;
|
|
179
|
+
};
|
|
162
180
|
fetcher: {
|
|
163
181
|
type: import('vue').PropType<import('./adapters').PlanFetcher | null>;
|
|
164
182
|
default: null;
|
|
@@ -185,9 +203,11 @@ export declare const MachReportPreview: {
|
|
|
185
203
|
showExport: boolean;
|
|
186
204
|
showPrint: boolean;
|
|
187
205
|
showPdfWindow: boolean;
|
|
206
|
+
showParams: boolean;
|
|
188
207
|
messages: Partial<import('./config').MachReportMessages>;
|
|
189
208
|
autoLoad: boolean;
|
|
190
209
|
preset: string;
|
|
210
|
+
paramDefs: import('..').ReportParamDef[] | undefined;
|
|
191
211
|
fetcher: import('./adapters').PlanFetcher | null;
|
|
192
212
|
}>;
|
|
193
213
|
__isFragment?: never;
|
|
@@ -242,6 +262,14 @@ export declare const MachReportPreview: {
|
|
|
242
262
|
type: BooleanConstructor;
|
|
243
263
|
default: boolean;
|
|
244
264
|
};
|
|
265
|
+
paramDefs: {
|
|
266
|
+
type: import('vue').PropType<import('..').ReportParamDef[] | undefined>;
|
|
267
|
+
default: undefined;
|
|
268
|
+
};
|
|
269
|
+
showParams: {
|
|
270
|
+
type: BooleanConstructor;
|
|
271
|
+
default: undefined;
|
|
272
|
+
};
|
|
245
273
|
fetcher: {
|
|
246
274
|
type: import('vue').PropType<import('./adapters').PlanFetcher | null>;
|
|
247
275
|
default: null;
|
|
@@ -274,9 +302,11 @@ export declare const MachReportPreview: {
|
|
|
274
302
|
showExport: boolean;
|
|
275
303
|
showPrint: boolean;
|
|
276
304
|
showPdfWindow: boolean;
|
|
305
|
+
showParams: boolean;
|
|
277
306
|
messages: Partial<import('./config').MachReportMessages>;
|
|
278
307
|
autoLoad: boolean;
|
|
279
308
|
preset: string;
|
|
309
|
+
paramDefs: import('..').ReportParamDef[] | undefined;
|
|
280
310
|
fetcher: import('./adapters').PlanFetcher | null;
|
|
281
311
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
282
312
|
$slots: {
|
package/dist/vue/config.d.ts
CHANGED
|
@@ -31,6 +31,12 @@ export interface MachReportMessages {
|
|
|
31
31
|
nextMatch: string;
|
|
32
32
|
/** 缩略图侧栏开关 */
|
|
33
33
|
thumbnails: string;
|
|
34
|
+
/** 参数面板 */
|
|
35
|
+
paramsTitle: string;
|
|
36
|
+
query: string;
|
|
37
|
+
reset: string;
|
|
38
|
+
/** 必填缺失提示({label} 占位) */
|
|
39
|
+
paramRequired: string;
|
|
34
40
|
}
|
|
35
41
|
export declare const DEFAULT_MESSAGES: MachReportMessages;
|
|
36
42
|
/** 主题变量(组件外壳注入的 --mrp-* CSS 自定义属性) */
|
|
@@ -54,6 +60,8 @@ export interface MachReportDefaults {
|
|
|
54
60
|
showExport?: boolean;
|
|
55
61
|
showPrint?: boolean;
|
|
56
62
|
showPdfWindow?: boolean;
|
|
63
|
+
/** 参数面板显隐(有参数定义且未显式关闭时显示;缺省 true) */
|
|
64
|
+
showParams?: boolean;
|
|
57
65
|
/** 页间距 px */
|
|
58
66
|
gapPx?: number;
|
|
59
67
|
/** PDF 导出中文字体 URL */
|
|
@@ -74,7 +82,7 @@ export interface MachReportConfig {
|
|
|
74
82
|
export declare function defineMachReportConfig(config: MachReportConfig): MachReportConfig;
|
|
75
83
|
/** 类型化 preset 声明 */
|
|
76
84
|
export declare function defineMachReportPreset(preset: MachReportPreset): MachReportPreset;
|
|
77
|
-
export type ResolvedConfig = Required<Pick<MachReportDefaults, "showExport" | "showPrint" | "showPdfWindow" | "gapPx">> & {
|
|
85
|
+
export type ResolvedConfig = Required<Pick<MachReportDefaults, "showExport" | "showPrint" | "showPdfWindow" | "showParams" | "gapPx">> & {
|
|
78
86
|
pdfFontUrl: string;
|
|
79
87
|
theme: MachReportTheme;
|
|
80
88
|
messages: MachReportMessages;
|
package/dist/vue/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as ReportPreview } from './ReportPreview';
|
|
2
2
|
export { default as ReportToolbar } from './ReportToolbar';
|
|
3
|
+
export { default as ReportParamPanel } from './ReportParamPanel';
|
|
3
4
|
export * from './adapters';
|
|
4
5
|
export * from './local-adapter';
|
|
5
6
|
export * from './injection-keys';
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as ReportPreview } from './ReportPreview';
|
|
2
2
|
export { default as ReportToolbar } from './ReportToolbar';
|
|
3
|
+
export { default as ReportParamPanel } from './ReportParamPanel';
|
|
3
4
|
export * from './adapters';
|
|
4
5
|
export * from './local-adapter';
|
|
5
6
|
export * from './injection-keys';
|
package/dist/vue/plugin.d.ts
CHANGED
|
@@ -56,6 +56,14 @@ export declare const MachReportPreview: {
|
|
|
56
56
|
type: BooleanConstructor;
|
|
57
57
|
default: boolean;
|
|
58
58
|
};
|
|
59
|
+
paramDefs: {
|
|
60
|
+
type: import('vue').PropType<import('..').ReportParamDef[] | undefined>;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
63
|
+
showParams: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
59
67
|
fetcher: {
|
|
60
68
|
type: import('vue').PropType<PlanFetcher | null>;
|
|
61
69
|
default: null;
|
|
@@ -88,9 +96,11 @@ export declare const MachReportPreview: {
|
|
|
88
96
|
showExport: boolean;
|
|
89
97
|
showPrint: boolean;
|
|
90
98
|
showPdfWindow: boolean;
|
|
99
|
+
showParams: boolean;
|
|
91
100
|
messages: Partial<import('./config').MachReportMessages>;
|
|
92
101
|
autoLoad: boolean;
|
|
93
102
|
preset: string;
|
|
103
|
+
paramDefs: import('..').ReportParamDef[] | undefined;
|
|
94
104
|
fetcher: PlanFetcher | null;
|
|
95
105
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
96
106
|
viewportRef: HTMLDivElement;
|
|
@@ -152,6 +162,14 @@ export declare const MachReportPreview: {
|
|
|
152
162
|
type: BooleanConstructor;
|
|
153
163
|
default: boolean;
|
|
154
164
|
};
|
|
165
|
+
paramDefs: {
|
|
166
|
+
type: import('vue').PropType<import('..').ReportParamDef[] | undefined>;
|
|
167
|
+
default: undefined;
|
|
168
|
+
};
|
|
169
|
+
showParams: {
|
|
170
|
+
type: BooleanConstructor;
|
|
171
|
+
default: undefined;
|
|
172
|
+
};
|
|
155
173
|
fetcher: {
|
|
156
174
|
type: import('vue').PropType<PlanFetcher | null>;
|
|
157
175
|
default: null;
|
|
@@ -178,9 +196,11 @@ export declare const MachReportPreview: {
|
|
|
178
196
|
showExport: boolean;
|
|
179
197
|
showPrint: boolean;
|
|
180
198
|
showPdfWindow: boolean;
|
|
199
|
+
showParams: boolean;
|
|
181
200
|
messages: Partial<import('./config').MachReportMessages>;
|
|
182
201
|
autoLoad: boolean;
|
|
183
202
|
preset: string;
|
|
203
|
+
paramDefs: import('..').ReportParamDef[] | undefined;
|
|
184
204
|
fetcher: PlanFetcher | null;
|
|
185
205
|
}>;
|
|
186
206
|
__isFragment?: never;
|
|
@@ -235,6 +255,14 @@ export declare const MachReportPreview: {
|
|
|
235
255
|
type: BooleanConstructor;
|
|
236
256
|
default: boolean;
|
|
237
257
|
};
|
|
258
|
+
paramDefs: {
|
|
259
|
+
type: import('vue').PropType<import('..').ReportParamDef[] | undefined>;
|
|
260
|
+
default: undefined;
|
|
261
|
+
};
|
|
262
|
+
showParams: {
|
|
263
|
+
type: BooleanConstructor;
|
|
264
|
+
default: undefined;
|
|
265
|
+
};
|
|
238
266
|
fetcher: {
|
|
239
267
|
type: import('vue').PropType<PlanFetcher | null>;
|
|
240
268
|
default: null;
|
|
@@ -267,9 +295,11 @@ export declare const MachReportPreview: {
|
|
|
267
295
|
showExport: boolean;
|
|
268
296
|
showPrint: boolean;
|
|
269
297
|
showPdfWindow: boolean;
|
|
298
|
+
showParams: boolean;
|
|
270
299
|
messages: Partial<import('./config').MachReportMessages>;
|
|
271
300
|
autoLoad: boolean;
|
|
272
301
|
preset: string;
|
|
302
|
+
paramDefs: import('..').ReportParamDef[] | undefined;
|
|
273
303
|
fetcher: PlanFetcher | null;
|
|
274
304
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
275
305
|
$slots: {
|
package/dist/vue-async.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),i=require("./plugin-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),i=require("./plugin-gftml2ST.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ReportPreview--ElcAKoi.cjs")).then(e=>e.ReportPreview$1));function c(){return Promise.resolve().then(()=>require("./ReportPreview--ElcAKoi.cjs")).then(e=>e.ReportPreview$1)}const t={install(e,o={}){i.machReportPlugin.install(e,o),e.component("MachReportPreview",r)}};exports.MachReportPreview=r;exports.default=t;exports.machReportAsyncPlugin=t;exports.preloadMachReport=c;
|
package/dist/vue-async.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineAsyncComponent as e } from "vue";
|
|
2
|
-
import { m as n } from "./plugin-
|
|
3
|
-
const r = e(() => import("./ReportPreview-
|
|
2
|
+
import { m as n } from "./plugin-QjAiSBP6.js";
|
|
3
|
+
const r = e(() => import("./ReportPreview-C6b5TOzz.js").then((t) => t.l));
|
|
4
4
|
function m() {
|
|
5
|
-
return import("./ReportPreview-
|
|
5
|
+
return import("./ReportPreview-C6b5TOzz.js").then((t) => t.l);
|
|
6
6
|
}
|
|
7
7
|
const p = {
|
|
8
8
|
install(t, o = {}) {
|
package/dist/vue.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ReportPreview
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ReportPreview--ElcAKoi.cjs"),r=require("./plugin-gftml2ST.cjs"),c=require("@agile-team/mach-report"),s=require("vue");function P(R){return async({tempIds:t})=>{if(t.length===0)throw new r.PlanLoadError("缺少报表模板 ID");const a=[];for(const n of t){const o=R[n];if(!o)throw new r.PlanLoadError(`本地模板 ${n} 不存在`);const{plan:E,warnings:i}=c.paginateTemplate(o.template,o.datasets??{});i.length>0&&console.warn("[mach-report] 分页告警:",i),a.push(...E.pages)}return{schemaVersion:"mach-local",pages:a}}}function p(){return s.inject(r.MACH_REPORT_CONTROLLER_KEY,null)}exports.DEFAULT_MESSAGES=e.DEFAULT_MESSAGES;exports.DEFAULT_THEME=e.DEFAULT_THEME;exports.MachReportError=e.MachReportError;exports.ReportParamPanel=e.ReportParamPanel;exports.ReportPreview=e.ReportPreview;exports.ReportToolbar=e.ReportToolbar;exports.SILENT_LOGGER=e.SILENT_LOGGER;exports.buildPrintDocument=e.buildPrintDocument;exports.defineMachReportConfig=e.defineMachReportConfig;exports.defineMachReportPreset=e.defineMachReportPreset;exports.printPlans=e.printPlans;exports.provideMachReportConfig=e.provideMachReportConfig;exports.resolveConfig=e.resolveConfig;exports.themeToCssVars=e.themeToCssVars;exports.toErrorDetail=e.toErrorDetail;exports.useMachReportConfig=e.useMachReportConfig;exports.usePageWindow=e.usePageWindow;exports.usePrintExport=e.usePrintExport;exports.useZoom=e.useZoom;exports.MACH_REPORT_CONFIG_KEY=r.MACH_REPORT_CONFIG_KEY;exports.MACH_REPORT_CONTROLLER_KEY=r.MACH_REPORT_CONTROLLER_KEY;exports.MACH_REPORT_FETCHER_KEY=r.MACH_REPORT_FETCHER_KEY;exports.MACH_REPORT_PDF_EXPORTER_KEY=r.MACH_REPORT_PDF_EXPORTER_KEY;exports.MachReportPreview=r.MachReportPreview;exports.PlanLoadError=r.PlanLoadError;exports.createDefaultPdfExporter=r.createDefaultPdfExporter;exports.createFetchRequest=r.createFetchRequest;exports.createJh4jGridPlanFetcher=r.createJh4jGridPlanFetcher;exports.joinTempIds=r.joinTempIds;exports.machReportPlugin=r.machReportPlugin;exports.normalizeTempIds=r.normalizeTempIds;exports.createLocalFetcher=P;exports.useReportPreview=p;
|
package/dist/vue.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as T, a as _, M as g, R as M, b as d,
|
|
2
|
-
import { P as t, M as c } from "./plugin-
|
|
3
|
-
import { a as
|
|
1
|
+
import { D as T, a as _, M as g, R as M, b as d, c as C, S as w, d as O, e as D, f as F, p as L, g as A, r as H, t as j, h as v, u as x, i as G, j as S, k as b } from "./ReportPreview-C6b5TOzz.js";
|
|
2
|
+
import { P as t, M as c } from "./plugin-QjAiSBP6.js";
|
|
3
|
+
import { a as K, b as Y, c as N, d as y, e as U, f as V, g as k, j as q, m as z, n as J } from "./plugin-QjAiSBP6.js";
|
|
4
4
|
import { paginateTemplate as p } from "@agile-team/mach-report";
|
|
5
|
-
import { inject as
|
|
6
|
-
function
|
|
5
|
+
import { inject as R } from "vue";
|
|
6
|
+
function P(n) {
|
|
7
7
|
return async ({ tempIds: a }) => {
|
|
8
8
|
if (a.length === 0) throw new t("缺少报表模板 ID");
|
|
9
9
|
const r = [];
|
|
@@ -16,40 +16,41 @@ function h(n) {
|
|
|
16
16
|
return { schemaVersion: "mach-local", pages: r };
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return
|
|
19
|
+
function h() {
|
|
20
|
+
return R(c, null);
|
|
21
21
|
}
|
|
22
22
|
export {
|
|
23
23
|
T as DEFAULT_MESSAGES,
|
|
24
24
|
_ as DEFAULT_THEME,
|
|
25
|
-
|
|
25
|
+
K as MACH_REPORT_CONFIG_KEY,
|
|
26
26
|
c as MACH_REPORT_CONTROLLER_KEY,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
Y as MACH_REPORT_FETCHER_KEY,
|
|
28
|
+
N as MACH_REPORT_PDF_EXPORTER_KEY,
|
|
29
29
|
g as MachReportError,
|
|
30
|
-
|
|
30
|
+
y as MachReportPreview,
|
|
31
31
|
t as PlanLoadError,
|
|
32
|
-
M as
|
|
33
|
-
d as
|
|
34
|
-
C as
|
|
35
|
-
w as
|
|
36
|
-
|
|
37
|
-
U as
|
|
38
|
-
V as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
D as
|
|
32
|
+
M as ReportParamPanel,
|
|
33
|
+
d as ReportPreview,
|
|
34
|
+
C as ReportToolbar,
|
|
35
|
+
w as SILENT_LOGGER,
|
|
36
|
+
O as buildPrintDocument,
|
|
37
|
+
U as createDefaultPdfExporter,
|
|
38
|
+
V as createFetchRequest,
|
|
39
|
+
k as createJh4jGridPlanFetcher,
|
|
40
|
+
P as createLocalFetcher,
|
|
41
|
+
D as defineMachReportConfig,
|
|
42
|
+
F as defineMachReportPreset,
|
|
42
43
|
q as joinTempIds,
|
|
43
44
|
z as machReportPlugin,
|
|
44
45
|
J as normalizeTempIds,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
L as printPlans,
|
|
47
|
+
A as provideMachReportConfig,
|
|
48
|
+
H as resolveConfig,
|
|
49
|
+
j as themeToCssVars,
|
|
50
|
+
v as toErrorDetail,
|
|
51
|
+
x as useMachReportConfig,
|
|
52
|
+
G as usePageWindow,
|
|
53
|
+
S as usePrintExport,
|
|
54
|
+
h as useReportPreview,
|
|
55
|
+
b as useZoom
|
|
55
56
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agile-team/mach-report",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "MachReport 报表引擎单包:RenderPlan 模型 + 分页 + DOM/Canvas/PDF 渲染 + 动态 SQL + 管理端 API + Vue 3 契约组件(零运行时依赖;./vue 为框架子路径,vue 为可选 peer)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -114,6 +114,15 @@
|
|
|
114
114
|
},
|
|
115
115
|
"license": "SEE LICENSE IN LICENSE",
|
|
116
116
|
"author": "ChenyCHENYU (Agile Team)",
|
|
117
|
+
"repository": {
|
|
118
|
+
"type": "git",
|
|
119
|
+
"url": "git+https://github.com/ChenyCHENYU/MachReport.git",
|
|
120
|
+
"directory": "packages/mach-report"
|
|
121
|
+
},
|
|
122
|
+
"homepage": "https://github.com/ChenyCHENYU/MachReport#readme",
|
|
123
|
+
"bugs": {
|
|
124
|
+
"url": "https://github.com/ChenyCHENYU/MachReport/issues"
|
|
125
|
+
},
|
|
117
126
|
"scripts": {
|
|
118
127
|
"build": "vite build && node scripts/copy-dcts.mjs",
|
|
119
128
|
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""
|