@agile-team/mach-report 2.25.1 → 2.25.2

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.
Files changed (46) hide show
  1. package/README.md +4 -2
  2. package/dist/ReportPreview-D1ZC5kzz.js +7317 -0
  3. package/dist/ReportPreview-DAU-V3Ov.cjs +6 -0
  4. package/dist/artifact-integrity.json +35 -35
  5. package/dist/{auto-mPK9W0y5.cjs → auto-DjmvmcX-.cjs} +1 -1
  6. package/dist/{auto-D7x7QsWD.js → auto-j7mr8Kvc.js} +82 -82
  7. package/dist/{encoding-Amq3XrtU.js → encoding-BWEMdzFG.js} +2 -2
  8. package/dist/{encoding-DRVXs5xm.cjs → encoding-DVea2qIR.cjs} +1 -1
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.d.cts +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.js +5 -5
  13. package/dist/{json-snapshot-CBVWZvyC.js → json-snapshot-DdzALe8q.js} +811 -774
  14. package/dist/json-snapshot-L_gJ7KRS.cjs +2 -0
  15. package/dist/{plugin-DHe8y5pD.cjs → plugin-D5BRHlne.cjs} +1 -1
  16. package/dist/{plugin-BdCplNe1.js → plugin-FWhTnjr0.js} +1 -1
  17. package/dist/{prefill-Cw4ZYGXZ.cjs → prefill-DZymomY6.cjs} +1 -1
  18. package/dist/{prefill-Buy4NJ15.js → prefill-m01IM1hl.js} +1 -1
  19. package/dist/{prepared-BlNeOjoO.cjs → prepared-BHu8bIdj.cjs} +1 -1
  20. package/dist/{prepared-CBJ7BkK0.js → prepared-DO5pe6Ed.js} +1 -1
  21. package/dist/{protocol-CB19KXGr.js → protocol-CZddmu2n.js} +2 -2
  22. package/dist/{protocol-BU_4sXP0.cjs → protocol-CymmHWmL.cjs} +1 -1
  23. package/dist/report-encoding-worker.cjs +1 -1
  24. package/dist/report-encoding-worker.js +1 -1
  25. package/dist/{runtime-B5d_lQNQ.js → runtime-D8AlfJ6S.js} +82 -75
  26. package/dist/runtime-ywf3oLBR.cjs +1 -0
  27. package/dist/sbom.cdx.json +1 -1
  28. package/dist/server-node.cjs +5 -5
  29. package/dist/server-node.js +1978 -1935
  30. package/dist/server.cjs +1 -1
  31. package/dist/server.js +5 -5
  32. package/dist/{template-catalog-CM6U_RlD.js → template-catalog-DLu814zA.js} +1 -1
  33. package/dist/{template-catalog-Cj66M84u.cjs → template-catalog-Lil5Ryt-.cjs} +1 -1
  34. package/dist/vue/index.d.cts +2 -1
  35. package/dist/vue/index.d.ts +2 -1
  36. package/dist/vue-async.cjs +1 -1
  37. package/dist/vue-async.js +3 -3
  38. package/dist/vue.cjs +1 -1
  39. package/dist/vue.js +127 -126
  40. package/dist/worker.cjs +1 -1
  41. package/dist/worker.js +4 -4
  42. package/package.json +1 -1
  43. package/dist/ReportPreview-CnxaDTCO.js +0 -7170
  44. package/dist/ReportPreview-DqFBcsJQ.cjs +0 -6
  45. package/dist/json-snapshot-DCFEtfFw.cjs +0 -2
  46. package/dist/runtime-BRx8Agqr.cjs +0 -1
package/dist/vue.js CHANGED
@@ -1,26 +1,26 @@
1
- import { createReportSource as O, ReportCellEditError as T } from "@agile-team/mach-report";
1
+ import { createReportSource as _, ReportCellEditError as I } from "@agile-team/mach-report";
2
2
  export * from "@agile-team/mach-report";
3
- import { P as h, c as y } from "./ReportPreview-CnxaDTCO.js";
4
- import { R as oe, a as se, _ as ae, b as ie, d as ce, e as ue, f as fe, g as de, h as le, i as ge, j as pe, k as me, l as Pe, m as Ee, n as Re, o as he, p as ye, q as we, r as Se, s as ve, t as Te, u as Ie, v as Ae, w as xe } from "./ReportPreview-CnxaDTCO.js";
3
+ import { P as y, r as M, c as w } from "./ReportPreview-D1ZC5kzz.js";
4
+ import { R as ae, a as ie, _ as ce, b as ue, d as fe, e as de, f as ge, g as le, h as pe, i as me, j as Pe, k as Ee, l as Re, m as he, n as ye, o as we, p as Se, q as ve, s as Te, t as Ie, u as Ae, v as xe, w as Ce, x as Oe } from "./ReportPreview-D1ZC5kzz.js";
5
5
  import { M as d } from "./ReportParamPanel-DGXzBzl2.js";
6
- import { D as Oe, a as _e, b as Me, c as De, d as be, P as ke, R as Fe, S as Le, e as qe, f as Ne, n as Ue, p as Ve, g as je, r as Ge, h as ze, i as He, s as We, t as Ye, j as Be, u as Ke } from "./ReportParamPanel-DGXzBzl2.js";
7
- import { M as _ } from "./injection-keys-e85udZCp.js";
8
- import { a as Xe, b as Je, c as Ze } from "./injection-keys-e85udZCp.js";
9
- import { M as er, m as rr } from "./plugin-BdCplNe1.js";
10
- import { shallowRef as M, computed as D, inject as b } from "vue";
11
- import { v as k } from "./json-snapshot-CBVWZvyC.js";
12
- import { z as F } from "./diagnostic-collector-gB07PHy2.js";
13
- function J(e) {
14
- const r = O(e), o = async (t) => {
15
- if (t.reportIds.length === 0) throw new h("缺少报表 ID");
6
+ import { D as Me, a as De, b as be, c as ke, d as Fe, P as Le, R as qe, S as Ne, e as Ue, f as Ve, n as je, p as Ge, g as ze, r as He, h as We, i as Ye, s as Be, t as Ke, j as $e, u as Xe } from "./ReportParamPanel-DGXzBzl2.js";
7
+ import { M as D } from "./injection-keys-e85udZCp.js";
8
+ import { a as Ze, b as Qe, c as er } from "./injection-keys-e85udZCp.js";
9
+ import { M as tr, m as nr } from "./plugin-FWhTnjr0.js";
10
+ import { shallowRef as b, computed as k, inject as F } from "vue";
11
+ import { v as L } from "./json-snapshot-DdzALe8q.js";
12
+ import { z as q } from "./diagnostic-collector-gB07PHy2.js";
13
+ function ee(e) {
14
+ const r = _(e), o = async (t) => {
15
+ if (t.reportIds.length === 0) throw new y("缺少报表 ID");
16
16
  for (const n of t.reportIds)
17
17
  if (!Object.prototype.hasOwnProperty.call(e, n) || !e[n])
18
- throw new h(`本地模板 ${n} 不存在`);
18
+ throw new y(`本地模板 ${n} 不存在`);
19
19
  return r(t);
20
20
  };
21
21
  return o.getParamDefs = r.getParamDefs, o;
22
22
  }
23
- const L = Object.freeze({
23
+ const N = Object.freeze({
24
24
  loading: !1,
25
25
  hasPlan: !1,
26
26
  pageCount: 0,
@@ -32,8 +32,8 @@ const L = Object.freeze({
32
32
  error: null,
33
33
  pdfFont: Object.freeze({ status: "unchecked", fontUrl: "" })
34
34
  });
35
- function Z() {
36
- const e = M(null), r = () => e.value?.state ?? L, o = Object.freeze({
35
+ function re() {
36
+ const e = b(null), r = () => e.value?.state ?? N, o = Object.freeze({
37
37
  get loading() {
38
38
  return r().loading;
39
39
  },
@@ -117,7 +117,7 @@ function Z() {
117
117
  const s = n;
118
118
  e.value = s && typeof s.reload == "function" && typeof s.print == "function" && typeof s.exportAs == "function" && typeof s.openPdfWindow == "function" && typeof s.gotoPage == "function" && typeof s.setParams == "function" ? s : null;
119
119
  },
120
- ready: D(() => e.value !== null),
120
+ ready: k(() => e.value !== null),
121
121
  state: o,
122
122
  async checkPdfFont() {
123
123
  const n = t();
@@ -172,93 +172,93 @@ function Z() {
172
172
  pasteSelection: async (n) => await t().pasteSelection?.(n) ?? !1
173
173
  };
174
174
  }
175
- function Q() {
176
- return b(_, null);
175
+ function te() {
176
+ return F(D, null);
177
177
  }
178
- function P(e) {
178
+ function E(e) {
179
179
  return !!e && typeof e == "object" && !Array.isArray(e);
180
180
  }
181
- function q(e) {
182
- return Array.isArray(e) && e.every((r) => P(r) && typeof r.code == "string" && typeof r.message == "string" && ["info", "warning", "error"].includes(r.severity) && (r.path === void 0 || typeof r.path == "string") && k(r));
181
+ function U(e) {
182
+ return Array.isArray(e) && e.every((r) => E(r) && typeof r.code == "string" && typeof r.message == "string" && ["info", "warning", "error"].includes(r.severity) && (r.path === void 0 || typeof r.path == "string") && L(r));
183
183
  }
184
- function I(e) {
184
+ function A(e) {
185
185
  return typeof e == "number" && Number.isFinite(e) && (!Number.isInteger(e) || Number.isSafeInteger(e));
186
186
  }
187
- function N(e) {
188
- return e == null || typeof e == "string" || typeof e == "boolean" || I(e);
187
+ function V(e) {
188
+ return e == null || typeof e == "string" || typeof e == "boolean" || A(e);
189
189
  }
190
- function U(e) {
191
- return e === void 0 || typeof e == "string" && !!e.trim() || I(e);
190
+ function j(e) {
191
+ return e === void 0 || typeof e == "string" && !!e.trim() || A(e);
192
192
  }
193
- function V(e, r) {
194
- return Array.isArray(e) && e.every((o) => P(o) && Number.isSafeInteger(o.editIndex) && o.editIndex >= 0 && o.editIndex < r && typeof o.code == "string" && typeof o.message == "string" && N(o.currentValue) && U(o.revision));
193
+ function G(e, r) {
194
+ return Array.isArray(e) && e.every((o) => E(o) && Number.isSafeInteger(o.editIndex) && o.editIndex >= 0 && o.editIndex < r && typeof o.code == "string" && typeof o.message == "string" && V(o.currentValue) && j(o.revision));
195
195
  }
196
- function j(e, r) {
196
+ function z(e, r) {
197
197
  let o;
198
- if (!P(e) || typeof e.revision != "string" || !e.revision.trim() ? o = "非空 revision(请先在适配器解包业务响应)" : e.sourceToken !== void 0 && typeof e.sourceToken != "string" ? o = "字符串 sourceToken" : e.diagnostics !== void 0 && !q(e.diagnostics) ? o = "结构化 diagnostics" : e.conflicts !== void 0 && !V(e.conflicts, r) && (o = "有效 editIndex/code/message/currentValue/revision conflicts"), o) throw new d("edit", `ReportProvider.save 必须返回${o};服务器可能已提交,请重新查询确认后再编辑`);
198
+ if (!E(e) || typeof e.revision != "string" || !e.revision.trim() ? o = "非空 revision(请先在适配器解包业务响应)" : e.sourceToken !== void 0 && typeof e.sourceToken != "string" ? o = "字符串 sourceToken" : e.diagnostics !== void 0 && !U(e.diagnostics) ? o = "结构化 diagnostics" : e.conflicts !== void 0 && !G(e.conflicts, r) && (o = "有效 editIndex/code/message/currentValue/revision conflicts"), o) throw new d("edit", `ReportProvider.save 必须返回${o};服务器可能已提交,请重新查询确认后再编辑`);
199
199
  }
200
- function w(e) {
200
+ function S(e) {
201
201
  return typeof e == "function" ? e() : e;
202
202
  }
203
- function S(e, r) {
203
+ function v(e, r) {
204
204
  const o = new Set(e.flatMap((t) => t.source?.[r] === void 0 ? [] : [String(t.source[r])]));
205
205
  return o.size === 1 ? [...o][0] : void 0;
206
206
  }
207
- function v(e, r, o, t, n, s = !1) {
208
- return typeof e == "function" ? e() : s ? t ?? n?.[o] ?? S(r, o) ?? e : S(r, o) ?? t ?? e ?? n?.[o];
207
+ function T(e, r, o, t, n, s = !1) {
208
+ return typeof e == "function" ? e() : s ? t ?? n?.[o] ?? v(r, o) ?? e : v(r, o) ?? t ?? e ?? n?.[o];
209
209
  }
210
- function G(e, r, o) {
210
+ function H(e, r, o) {
211
211
  const t = r.query, n = e.reportId === void 0;
212
212
  if (n && (!t || t.reportIds.length !== 1)) throw new d("config", "自动业务保存需要当前成功查询的单个报表上下文");
213
- const s = e.reportId === void 0 ? t.reportIds[0] : w(e.reportId);
213
+ const s = e.reportId === void 0 ? t.reportIds[0] : S(e.reportId);
214
214
  if (!s.trim()) throw new d("config", "业务保存缺少报表 ID");
215
- if (n && new Set(o.map((i) => i.source?.sourceScope)).size > 1) throw new T("atomic");
216
- const f = { ...w(e.params ?? t?.params ?? {}) }, l = t?.sources.filter((i) => i.reportId === s) ?? [], a = l.length === 1 ? l[0] : void 0;
215
+ if (n && new Set(o.map((a) => a.source?.sourceScope)).size > 1) throw new I("atomic");
216
+ const f = { ...S(e.params ?? t?.params ?? {}) }, g = t?.sources.filter((a) => a.reportId === s) ?? [], l = g.length === 1 ? g[0] : void 0;
217
217
  return {
218
218
  reportId: s,
219
219
  params: f,
220
- source: a,
220
+ source: l,
221
221
  automatic: n,
222
- identity: JSON.stringify([s, f, t?.queryId ?? t?.sources])
222
+ identity: JSON.stringify([s, f, t?.queryId, t?.sources])
223
223
  };
224
224
  }
225
- function z(e) {
225
+ function W(e) {
226
226
  return e.requestId ?? globalThis.crypto?.randomUUID?.() ?? `mr-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
227
227
  }
228
- function ee(e, r = {}) {
228
+ function Y(e, r = {}) {
229
229
  if (!e.save) throw new d("config", "ReportProvider.save 未配置,无法启用业务保存");
230
230
  let o = "", t, n, s = 0;
231
- function f(a, i, g) {
232
- a.conflicts?.length || i !== o || g !== s || (t = a.revision, n = a.sourceToken);
231
+ function f(a, c, p) {
232
+ a.conflicts?.length || c !== o || p !== s || (t = a.revision, a.sourceToken !== void 0 && (n = a.sourceToken));
233
233
  }
234
- async function l(a, i) {
235
- if (i.signal.aborted) throw i.signal.reason ?? new DOMException("Aborted", "AbortError");
236
- const { reportId: g, params: A, identity: p, source: E, automatic: R } = G(r, i, a.edits), x = ++s;
237
- if (p !== o && (o = p, t = void 0, n = void 0), r.requireSource !== !1 && a.edits.some((c) => !c.source)) throw new T("missing");
234
+ async function g(a, c) {
235
+ if (c.signal.aborted) throw c.signal.reason ?? new DOMException("Aborted", "AbortError");
236
+ const { reportId: p, params: x, identity: m, source: R, automatic: h } = H(r, c, a.edits), C = ++s;
237
+ if (m !== o && (o = m, t = void 0, n = void 0), r.requireSource !== !1 && a.edits.some((i) => !i.source)) throw new I("missing");
238
238
  const u = await e.save({
239
- reportId: g,
240
- params: A,
241
- signal: i.signal,
239
+ reportId: p,
240
+ params: x,
241
+ signal: c.signal,
242
242
  requestId: a.requestId,
243
- action: i.action,
244
- edits: y(a.edits),
245
- expectedRevision: v(r.expectedRevision, a.edits, "revision", t, E, R),
246
- sourceToken: v(r.sourceToken, a.edits, "sourceToken", n, E, R)
243
+ action: c.action,
244
+ edits: w(a.edits),
245
+ expectedRevision: T(r.expectedRevision, a.edits, "revision", t, R, h),
246
+ sourceToken: T(r.sourceToken, a.edits, "sourceToken", n, R, h)
247
247
  });
248
- if (i.signal.aborted) throw i.signal.reason ?? new DOMException("Aborted", "AbortError");
249
- j(u, a.edits.length), u.diagnostics?.forEach((c) => F(() => r.onDiagnostic?.(c)));
250
- const m = u.diagnostics?.filter((c) => c.severity === "error");
251
- if (m?.length) throw new d("edit", m.map((c) => c.message).join(";"), { diagnostics: m });
252
- const C = u.conflicts?.map((c) => ({
253
- source: a.edits[c.editIndex]?.source,
254
- address: a.edits[c.editIndex]?.address,
255
- message: c.message,
256
- ...c.currentValue === void 0 ? {} : { currentValue: c.currentValue },
257
- revision: c.revision ?? u.revision
248
+ if (c.signal.aborted) throw c.signal.reason ?? new DOMException("Aborted", "AbortError");
249
+ z(u, a.edits.length), u.diagnostics?.forEach((i) => q(() => r.onDiagnostic?.(i)));
250
+ const P = u.diagnostics?.filter((i) => i.severity === "error");
251
+ if (P?.length) throw new d("edit", P.map((i) => i.message).join(";"), { diagnostics: P });
252
+ const O = u.conflicts?.map((i) => ({
253
+ source: a.edits[i.editIndex]?.source,
254
+ address: a.edits[i.editIndex]?.address,
255
+ message: i.message,
256
+ ...i.currentValue === void 0 ? {} : { currentValue: i.currentValue },
257
+ revision: i.revision ?? u.revision
258
258
  }));
259
- return f(u, p, x), { revision: u.revision, sourceToken: u.sourceToken, conflicts: C };
259
+ return f(u, m, C), { revision: u.revision, sourceToken: u.sourceToken, conflicts: O };
260
260
  }
261
- return {
261
+ const l = {
262
262
  requireSource: r.requireSource ?? !0,
263
263
  canEdit: r.canEdit,
264
264
  readOnlyReason: r.readOnlyReason,
@@ -267,65 +267,66 @@ function ee(e, r = {}) {
267
267
  validate: r.validate,
268
268
  validation: r.validation,
269
269
  validateBatch: r.validateBatch,
270
- saveBatch: l,
271
- save: (a, i) => l({ requestId: z(i), edits: [y(a)] }, i)
270
+ saveBatch: g,
271
+ save: (a, c) => g({ requestId: W(c), edits: [w(a)] }, c)
272
272
  };
273
+ return M(l, () => Y(e, r)), l;
273
274
  }
274
275
  export {
275
- Oe as DEFAULT_CALCULATION_MESSAGES,
276
- _e as DEFAULT_DATA_REVIEW_MESSAGES,
277
- Me as DEFAULT_MESSAGES,
278
- De as DEFAULT_PRINT_MESSAGES,
279
- be as DEFAULT_THEME,
280
- Xe as MACH_REPORT_CONFIG_KEY,
281
- _ as MACH_REPORT_CONTROLLER_KEY,
282
- Je as MACH_REPORT_FETCHER_KEY,
283
- Ze as MACH_REPORT_PDF_EXPORTER_KEY,
276
+ Me as DEFAULT_CALCULATION_MESSAGES,
277
+ De as DEFAULT_DATA_REVIEW_MESSAGES,
278
+ be as DEFAULT_MESSAGES,
279
+ ke as DEFAULT_PRINT_MESSAGES,
280
+ Fe as DEFAULT_THEME,
281
+ Ze as MACH_REPORT_CONFIG_KEY,
282
+ D as MACH_REPORT_CONTROLLER_KEY,
283
+ Qe as MACH_REPORT_FETCHER_KEY,
284
+ er as MACH_REPORT_PDF_EXPORTER_KEY,
284
285
  d as MachReportError,
285
- er as MachReportPreview,
286
- ke as PARAM_OPTIONS_MESSAGES,
287
- h as PlanLoadError,
288
- oe as REPORT_EXPORT_FORMATS,
289
- se as REPORT_PREVIEW_TOOLS,
290
- ae as ReportDataComparisonPanel,
291
- ie as ReportExportMenu,
292
- ce as ReportPagination,
293
- Fe as ReportParamPanel,
294
- ue as ReportPrefillPanel,
295
- fe as ReportPreview,
296
- de as ReportPrintResourceError,
297
- le as ReportTaskStatus,
298
- ge as ReportToolbar,
299
- pe as ReportValidationPanel,
300
- Le as SILENT_LOGGER,
301
- me as buildPrintDocument,
302
- Pe as buildWordHtml,
303
- Ee as createDefaultPdfExporter,
304
- Re as createFetchRequest,
305
- J as createLocalFetcher,
306
- he as createPrintCalibrationPlan,
307
- ee as createProviderEditing,
308
- ye as createReportStoragePreferences,
309
- qe as defineMachReportConfig,
310
- Ne as defineMachReportPreset,
311
- we as joinReportIds,
312
- rr as machReportPlugin,
313
- Se as normalizeReportIds,
314
- Ue as normalizeReportLoadError,
315
- ve as preparePrintResources,
316
- Ve as printCalibration,
317
- Te as printPlans,
318
- je as provideMachReportConfig,
319
- Ge as resolveCalculationMessages,
320
- ze as resolveConfig,
321
- He as resolveDataReviewMessages,
322
- We as snapshotPrintOptions,
323
- Ye as themeToCssVars,
324
- Be as toErrorDetail,
325
- Z as useMachReport,
326
- Ke as useMachReportConfig,
327
- Ie as usePageWindow,
328
- Ae as usePrintExport,
329
- Q as useReportPreview,
330
- xe as useZoom
286
+ tr as MachReportPreview,
287
+ Le as PARAM_OPTIONS_MESSAGES,
288
+ y as PlanLoadError,
289
+ ae as REPORT_EXPORT_FORMATS,
290
+ ie as REPORT_PREVIEW_TOOLS,
291
+ ce as ReportDataComparisonPanel,
292
+ ue as ReportExportMenu,
293
+ fe as ReportPagination,
294
+ qe as ReportParamPanel,
295
+ de as ReportPrefillPanel,
296
+ ge as ReportPreview,
297
+ le as ReportPrintResourceError,
298
+ pe as ReportTaskStatus,
299
+ me as ReportToolbar,
300
+ Pe as ReportValidationPanel,
301
+ Ne as SILENT_LOGGER,
302
+ Ee as buildPrintDocument,
303
+ Re as buildWordHtml,
304
+ he as createDefaultPdfExporter,
305
+ ye as createFetchRequest,
306
+ ee as createLocalFetcher,
307
+ we as createPrintCalibrationPlan,
308
+ Y as createProviderEditing,
309
+ Se as createReportStoragePreferences,
310
+ Ue as defineMachReportConfig,
311
+ Ve as defineMachReportPreset,
312
+ ve as joinReportIds,
313
+ nr as machReportPlugin,
314
+ Te as normalizeReportIds,
315
+ je as normalizeReportLoadError,
316
+ Ie as preparePrintResources,
317
+ Ge as printCalibration,
318
+ Ae as printPlans,
319
+ ze as provideMachReportConfig,
320
+ He as resolveCalculationMessages,
321
+ We as resolveConfig,
322
+ Ye as resolveDataReviewMessages,
323
+ Be as snapshotPrintOptions,
324
+ Ke as themeToCssVars,
325
+ $e as toErrorDetail,
326
+ re as useMachReport,
327
+ Xe as useMachReportConfig,
328
+ xe as usePageWindow,
329
+ Ce as usePrintExport,
330
+ te as useReportPreview,
331
+ Oe as useZoom
331
332
  };
package/dist/worker.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./protocol-BU_4sXP0.cjs"),s=require("./auto-mPK9W0y5.cjs"),R=require("./encoding-DRVXs5xm.cjs");function p(n,e=globalThis){const a=t=>{r.isReportWorkerRequest(t.data)&&r.runReportWorkerRequest(n,t.data,o=>e.postMessage({protocol:r.REPORT_WORKER_PROTOCOL,id:t.data.id,type:"event",event:o})).then(o=>e.postMessage(o,r.reportWorkerTransferList(o)))};return e.addEventListener("message",a),()=>e.removeEventListener("message",a)}exports.ReportWorkerError=r.ReportWorkerError;exports.ReportWorkerStartError=s.ReportWorkerStartError;exports.createAutoReportExporter=s.createAutoReportExporter;exports.createBrowserReportExecutor=s.createBrowserReportExecutor;exports.serveReportEncodingWorker=R.serveReportEncodingWorker;exports.serveReportWorker=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./protocol-CymmHWmL.cjs"),s=require("./auto-DjmvmcX-.cjs"),R=require("./encoding-DVea2qIR.cjs");function p(n,e=globalThis){const a=t=>{r.isReportWorkerRequest(t.data)&&r.runReportWorkerRequest(n,t.data,o=>e.postMessage({protocol:r.REPORT_WORKER_PROTOCOL,id:t.data.id,type:"event",event:o})).then(o=>e.postMessage(o,r.reportWorkerTransferList(o)))};return e.addEventListener("message",a),()=>e.removeEventListener("message",a)}exports.ReportWorkerError=r.ReportWorkerError;exports.ReportWorkerStartError=s.ReportWorkerStartError;exports.createAutoReportExporter=s.createAutoReportExporter;exports.createBrowserReportExecutor=s.createBrowserReportExecutor;exports.serveReportEncodingWorker=R.serveReportEncodingWorker;exports.serveReportWorker=p;
package/dist/worker.js CHANGED
@@ -1,7 +1,7 @@
1
- import { i as a, r as R, R as p, a as n } from "./protocol-CB19KXGr.js";
2
- import { b as W } from "./protocol-CB19KXGr.js";
3
- import { R as g, c as k, a as u } from "./auto-D7x7QsWD.js";
4
- import { s as x } from "./encoding-Amq3XrtU.js";
1
+ import { i as a, r as R, R as p, a as n } from "./protocol-CZddmu2n.js";
2
+ import { b as W } from "./protocol-CZddmu2n.js";
3
+ import { R as g, c as k, a as u } from "./auto-j7mr8Kvc.js";
4
+ import { s as x } from "./encoding-BWEMdzFG.js";
5
5
  function d(s, r = globalThis) {
6
6
  const t = (o) => {
7
7
  a(o.data) && R(s, o.data, (e) => r.postMessage({ protocol: p, id: o.data.id, type: "event", event: e })).then((e) => r.postMessage(e, n(e)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agile-team/mach-report",
3
- "version": "2.25.1",
3
+ "version": "2.25.2",
4
4
  "description": "独立的 TypeScript 报表引擎:模板分页、DOM/Canvas/PDF/Excel 输出与 Vue 3 预览组件",
5
5
  "type": "module",
6
6
  "sideEffects": [