@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.
Files changed (169) hide show
  1. package/README.md +20 -5
  2. package/dist/{ExcelBindingWizard-mnAO2qOX.js → ExcelBindingWizard-D4FLind-.js} +3 -3
  3. package/dist/{ExcelBindingWizard-Bu0LUlzl.cjs → ExcelBindingWizard-D4RS5Bpg.cjs} +1 -1
  4. package/dist/{ParamEditor-38ZfNrPU.cjs → ParamEditor-C-6C9rd2.cjs} +1 -1
  5. package/dist/{ParamEditor-C8l0EC8m.js → ParamEditor-CASZt-Ma.js} +2 -2
  6. package/dist/{ReportBatchPanel-CfUVhvkO.js → ReportBatchPanel-Bq7t8a5r.js} +2 -2
  7. package/dist/{ReportBatchPanel-nCC06Nfp.cjs → ReportBatchPanel-YVj5IO5y.cjs} +1 -1
  8. package/dist/ReportLabelStudio-Cqhita1b.cjs +1 -0
  9. package/dist/ReportLabelStudio-Dj7GXhuv.js +783 -0
  10. package/dist/ReportParamPanel-DZbFVmDL.cjs +1 -0
  11. package/dist/{ReportParamPanel-peB-KEmm.js → ReportParamPanel-Dgmqro1Y.js} +265 -244
  12. package/dist/ReportPreview-DeWzG8jQ.js +6257 -0
  13. package/dist/ReportPreview-FFIryrIr.cjs +6 -0
  14. package/dist/{ReportTemplateLibrary-DVlsf72p.cjs → ReportTemplateLibrary-BaWodmpm.cjs} +1 -1
  15. package/dist/{ReportTemplateLibrary-B5t_EcIs.js → ReportTemplateLibrary-DdAAAD2I.js} +1 -1
  16. package/dist/{RuleEditor-kT1JsZ9f.js → RuleEditor-D2UwQGF6.js} +59 -59
  17. package/dist/{RuleEditor-xFkCVlii.cjs → RuleEditor-DcT9xI1v.cjs} +1 -1
  18. package/dist/TemplateOutlinePanel-CUHFFiNM.cjs +1 -0
  19. package/dist/{TemplateOutlinePanel-BesgGR1P.js → TemplateOutlinePanel-DrT7XN0m.js} +2 -2
  20. package/dist/{TemplateReusePanel-BNFU6V-W.js → TemplateReusePanel-4eejkNqi.js} +2 -2
  21. package/dist/{TemplateReusePanel-BG9Or5-P.cjs → TemplateReusePanel-DZMyiX5I.cjs} +1 -1
  22. package/dist/{TemplateReviewPanel-CwvwyCSs.js → TemplateReviewPanel-BIhNLeNw.js} +2 -2
  23. package/dist/TemplateReviewPanel-DnYImiXu.cjs +1 -0
  24. package/dist/analytics.cjs +1 -1
  25. package/dist/analytics.js +26 -26
  26. package/dist/artifact-integrity.json +108 -106
  27. package/dist/assets-D2gHc4Mz.cjs +1 -0
  28. package/dist/assets-T_gDeFaz.js +132 -0
  29. package/dist/auto-4pK9HePf.cjs +1 -0
  30. package/dist/auto-CTIJ6PnR.js +257 -0
  31. package/dist/capabilities-DiBj4Qgl.cjs +1 -0
  32. package/dist/capabilities-pg7j7VLT.js +106 -0
  33. package/dist/charts-Cjw5AYkg.cjs +1 -0
  34. package/dist/{charts-Dlv8j2AG.js → charts-CxJZ0XaY.js} +1 -1
  35. package/dist/computed-DK6BruFz.cjs +1 -0
  36. package/dist/{computed-C8NRZQss.js → computed-f3pOqWLX.js} +381 -301
  37. package/dist/data-bar-CeZuFmYl.cjs +1 -0
  38. package/dist/{data-bar-8baGYEZ9.js → data-bar-IkI6VvMQ.js} +1 -1
  39. package/dist/designer-DhrE7jzw.js +7169 -0
  40. package/dist/designer-IAZu6kBX.cjs +2 -0
  41. package/dist/designer.cjs +1 -1
  42. package/dist/designer.d.cts +246 -46
  43. package/dist/designer.d.ts +246 -46
  44. package/dist/designer.js +15 -14
  45. package/dist/dom-ChE5D-L-.cjs +1 -0
  46. package/dist/dom-JWrchIre.js +452 -0
  47. package/dist/dom-cell-address-DLD1mkTB.cjs +1 -0
  48. package/dist/dom-cell-address-Fn-8nk7D.js +11 -0
  49. package/dist/{encoding-B79hW4zq.cjs → encoding-BefcaHdp.cjs} +1 -1
  50. package/dist/{encoding-BSeUwrN7.js → encoding-CL6rXEkR.js} +2 -2
  51. package/dist/{font-loader-Di0lQKFf.js → font-loader-BT5baV-o.js} +1 -1
  52. package/dist/{font-loader-BB372_XN.cjs → font-loader-Ga51c2VC.cjs} +1 -1
  53. package/dist/grid-strokes-Be24LGuV.cjs +1 -0
  54. package/dist/grid-strokes-EoY66L2f.js +53 -0
  55. package/dist/index.cjs +8 -8
  56. package/dist/index.d.cts +44 -1
  57. package/dist/index.d.ts +44 -1
  58. package/dist/index.js +961 -1256
  59. package/dist/json-snapshot-1tvQNzQE.cjs +2 -0
  60. package/dist/{json-snapshot-Kgn459Oj.js → json-snapshot-OqkPyUk5.js} +763 -776
  61. package/dist/matrix-B8QWbsGM.cjs +1 -0
  62. package/dist/matrix-C6e_r_vp.js +302 -0
  63. package/dist/{pdf-CARdBcuw.cjs → pdf-HiEeXe9H.cjs} +42 -42
  64. package/dist/{pdf-DmlnL5eB.js → pdf-aobetCsy.js} +20 -20
  65. package/dist/pdf.cjs +1 -1
  66. package/dist/pdf.js +2 -2
  67. package/dist/{plugin-BaRUGORD.cjs → plugin-BFANt-i8.cjs} +1 -1
  68. package/dist/{plugin-D4kAxfLG.js → plugin-DeYYAL6F.js} +1 -1
  69. package/dist/{prefill-CJSazcVY.js → prefill-Dk4C6S5R.js} +21 -21
  70. package/dist/prefill-DsUD5OoK.cjs +1 -0
  71. package/dist/prepared-DCIxhKFo.js +94 -0
  72. package/dist/prepared-Dv-XM3i1.cjs +1 -0
  73. package/dist/progress-ByiOxUD3.js +250 -0
  74. package/dist/progress-WomPRP3B.cjs +1 -0
  75. package/dist/{protocol-C8VWF9An.cjs → protocol-B9YgfQ_d.cjs} +1 -1
  76. package/dist/{protocol-Bs9-ohHN.js → protocol-DxeUKGYG.js} +3 -3
  77. package/dist/record-bindings-DatJZv_e.js +200 -0
  78. package/dist/record-bindings-MBxbeBsi.cjs +1 -0
  79. package/dist/{region-binding-workflow-Cy4GIOUo.js → region-binding-workflow-DjrXuR1q.js} +2 -2
  80. package/dist/{region-binding-workflow-JNowHd0A.cjs → region-binding-workflow-l7NGfagJ.cjs} +2 -2
  81. package/dist/report-encoding-worker.cjs +1 -1
  82. package/dist/report-encoding-worker.js +1 -1
  83. package/dist/rich-text-layout-Ciwa6D2o.js +52 -0
  84. package/dist/rich-text-layout-DK7A_a5r.cjs +3 -0
  85. package/dist/{runtime-BDf5x1i1.js → runtime-75Y5Oq5B.js} +52 -51
  86. package/dist/runtime-DKlGd_D4.cjs +1 -0
  87. package/dist/sbom.cdx.json +1 -1
  88. package/dist/server/node.d.cts +9 -0
  89. package/dist/server/node.d.ts +9 -0
  90. package/dist/server-node.cjs +5 -4
  91. package/dist/server-node.js +2178 -2044
  92. package/dist/server.cjs +1 -1
  93. package/dist/server.d.cts +81 -0
  94. package/dist/server.d.ts +81 -0
  95. package/dist/server.js +24 -24
  96. package/dist/style.css +1 -1
  97. package/dist/{template-catalog-DFwIS9aN.js → template-catalog--cjxzgH7.js} +17 -17
  98. package/dist/template-catalog-CoT7jm_6.cjs +1 -0
  99. package/dist/{template-fragments-Dng-AlHk.js → template-fragments-CPpGpQoz.js} +24 -24
  100. package/dist/{template-fragments-DZVUBhuB.cjs → template-fragments-GVjpew_q.cjs} +1 -1
  101. package/dist/template-registry-DI59PXVK.cjs +1 -0
  102. package/dist/{template-registry-DhBqoD7W.js → template-registry-O0hNIOfB.js} +333 -261
  103. package/dist/template-serialization-CWmHq7lX.js +307 -0
  104. package/dist/template-serialization-CqQY4zDg.cjs +1 -0
  105. package/dist/{textwrap-CkGjRFT3.js → textwrap-BIjtEWmq.js} +1 -1
  106. package/dist/textwrap-Cy7o1hIR.cjs +4 -0
  107. package/dist/vue/async.d.cts +121 -2
  108. package/dist/vue/async.d.ts +121 -2
  109. package/dist/vue/index.d.cts +222 -5
  110. package/dist/vue/index.d.ts +222 -5
  111. package/dist/vue-async.cjs +1 -1
  112. package/dist/vue-async.js +3 -3
  113. package/dist/vue.cjs +1 -1
  114. package/dist/vue.js +101 -91
  115. package/dist/{workbook-session-NYv01LHe.cjs → workbook-session-C6-SrnCT.cjs} +4 -4
  116. package/dist/{workbook-session-oinxX3qo.js → workbook-session-C9ZmCBwY.js} +15 -16
  117. package/dist/workbook-sheets-CaPAulQ6.cjs +2 -0
  118. package/dist/workbook-sheets-D4M7XXBh.js +44 -0
  119. package/dist/worker.cjs +1 -1
  120. package/dist/worker.d.cts +9 -0
  121. package/dist/worker.d.ts +9 -0
  122. package/dist/worker.js +4 -4
  123. package/dist/xlsx.cjs +4 -4
  124. package/dist/xlsx.d.cts +39 -2
  125. package/dist/xlsx.d.ts +39 -2
  126. package/dist/xlsx.js +300 -275
  127. package/package.json +1 -1
  128. package/dist/ReportLabelStudio-CaEvYuSK.cjs +0 -1
  129. package/dist/ReportLabelStudio-DQPBmh4v.js +0 -765
  130. package/dist/ReportParamPanel-CVpK8mFc.cjs +0 -1
  131. package/dist/ReportPreview-BBJNlu2U.js +0 -5740
  132. package/dist/ReportPreview-nf4Dk1Jc.cjs +0 -6
  133. package/dist/TemplateOutlinePanel-CDI6mfWx.cjs +0 -1
  134. package/dist/TemplateReviewPanel-BmBrjt6P.cjs +0 -1
  135. package/dist/assets-CxHunY_9.js +0 -232
  136. package/dist/assets-vbjAGgk8.cjs +0 -1
  137. package/dist/auto-BkdGiNtr.js +0 -240
  138. package/dist/auto-Tq7ReIC1.cjs +0 -1
  139. package/dist/charts-aCtoswXq.cjs +0 -1
  140. package/dist/component-tree-1_QCiQJX.js +0 -67
  141. package/dist/component-tree-BjZIp6w9.cjs +0 -1
  142. package/dist/computed-4TnxzgIh.cjs +0 -1
  143. package/dist/data-bar-YltqGTaC.cjs +0 -1
  144. package/dist/designer-DU3yDWgs.cjs +0 -2
  145. package/dist/designer-HQi-03R6.js +0 -6869
  146. package/dist/grid-geometry-D3SJgWFv.js +0 -136
  147. package/dist/grid-geometry-D8ReblRV.cjs +0 -1
  148. package/dist/json-snapshot-I5VI84Vp.cjs +0 -2
  149. package/dist/matrix-0hywp0-F.cjs +0 -1
  150. package/dist/matrix-Dy-tyY7E.js +0 -381
  151. package/dist/prefill-Bpyn58AZ.cjs +0 -1
  152. package/dist/prepared-BiSz_9vN.cjs +0 -1
  153. package/dist/prepared-BwjwEzFz.js +0 -87
  154. package/dist/progress-B0ctFpKf.cjs +0 -1
  155. package/dist/progress-Hc2vxoCs.js +0 -52
  156. package/dist/record-bindings-Ct1HkPrc.cjs +0 -1
  157. package/dist/record-bindings-VZGS-Qd8.js +0 -155
  158. package/dist/rich-text-layout-K48VHUoW.cjs +0 -3
  159. package/dist/rich-text-layout-wxBhnAS7.js +0 -102
  160. package/dist/runtime-DsJt1PIf.cjs +0 -1
  161. package/dist/template-bindings-Cg5oBLFT.cjs +0 -1
  162. package/dist/template-bindings-TKnXM7ll.js +0 -62
  163. package/dist/template-catalog-D_2jdnkL.cjs +0 -1
  164. package/dist/template-outline-DWkzZXVC.cjs +0 -1
  165. package/dist/template-outline-DiADphlq.js +0 -88
  166. package/dist/template-registry-DpLUSLwF.cjs +0 -1
  167. package/dist/template-serialization-Cc3h-miv.js +0 -247
  168. package/dist/template-serialization-D1R5oAqh.cjs +0 -1
  169. package/dist/textwrap-OTOUMr4f.cjs +0 -4
package/dist/vue.js CHANGED
@@ -1,17 +1,17 @@
1
- import { createReportSource as v, ReportCellEditError as A } from "@agile-team/mach-report";
1
+ import { createReportSource as T, ReportCellEditError as A } from "@agile-team/mach-report";
2
2
  export * from "@agile-team/mach-report";
3
- import { P as R, c as h } from "./ReportPreview-BBJNlu2U.js";
4
- import { R as Z, a as Q, _ as ee, b as re, d as te, e as ne, f as oe, g as se, h as ae, i as ie, j as ce, k as fe, l as ue, m as de, n as le, o as ge, p as pe, q as Pe, r as me, u as Ee, s as Re, t as he } from "./ReportPreview-BBJNlu2U.js";
5
- import { M as u } from "./ReportParamPanel-peB-KEmm.js";
6
- import { D as ye, a as Se, b as Te, c as ve, d as Ae, P as xe, R as Ce, S as _e, e as Ie, f as Oe, n as Me, p as De, g as ke, r as Fe, h as Le, i as be, s as Ue, t as qe, j as je, u as Ge } from "./ReportParamPanel-peB-KEmm.js";
3
+ import { P as R, c as h } from "./ReportPreview-DeWzG8jQ.js";
4
+ import { R as Z, a as Q, _ as ee, b as re, d as te, e as ne, f as oe, g as ae, h as se, i as ie, j as ce, k as ue, l as fe, m as le, n as de, o as ge, p as pe, q as Pe, r as me, s as Ee, t as Re, u as he, v as ye, w as we } from "./ReportPreview-DeWzG8jQ.js";
5
+ import { M as f } from "./ReportParamPanel-Dgmqro1Y.js";
6
+ import { D as ve, a as Te, b as Ae, c as xe, d as Ce, P as Oe, R as _e, S as Ie, e as Me, f as De, n as ke, p as Fe, g as Le, r as be, h as Ue, i as qe, s as je, t as Ge, j as Ne, u as He } from "./ReportParamPanel-Dgmqro1Y.js";
7
7
  import { M as x } from "./injection-keys-e85udZCp.js";
8
- import { a as He, b as We, c as ze } from "./injection-keys-e85udZCp.js";
9
- import { M as Ye, m as Ke } from "./plugin-D4kAxfLG.js";
10
- import { shallowRef as C, computed as _, inject as I } from "vue";
11
- import { x as O } from "./json-snapshot-Kgn459Oj.js";
12
- import { a as M } from "./progress-Hc2vxoCs.js";
8
+ import { a as ze, b as Ve, c as Ye } from "./injection-keys-e85udZCp.js";
9
+ import { M as $e, m as Be } from "./plugin-DeYYAL6F.js";
10
+ import { shallowRef as C, computed as O, inject as _ } from "vue";
11
+ import { v as I } from "./json-snapshot-OqkPyUk5.js";
12
+ import { u as M } from "./progress-ByiOxUD3.js";
13
13
  function V(r) {
14
- const e = v(r), o = async (t) => {
14
+ const e = T(r), o = async (t) => {
15
15
  if (t.reportIds.length === 0) throw new R("缺少报表 ID");
16
16
  for (const n of t.reportIds)
17
17
  if (!Object.prototype.hasOwnProperty.call(r, n) || !r[n])
@@ -37,6 +37,9 @@ function Y() {
37
37
  get loading() {
38
38
  return e().loading;
39
39
  },
40
+ get stale() {
41
+ return e().stale ?? !1;
42
+ },
40
43
  get hasPlan() {
41
44
  return e().hasPlan;
42
45
  },
@@ -106,15 +109,15 @@ function Y() {
106
109
  });
107
110
  function t() {
108
111
  if (!r.value)
109
- throw new u("config", "报表预览尚未挂载,请在 ready 后调用控制器");
112
+ throw new f("config", "报表预览尚未挂载,请在 ready 后调用控制器");
110
113
  return r.value;
111
114
  }
112
115
  return {
113
116
  ref(n) {
114
- const s = n;
115
- r.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;
117
+ const a = n;
118
+ r.value = a && typeof a.reload == "function" && typeof a.print == "function" && typeof a.exportAs == "function" && typeof a.openPdfWindow == "function" && typeof a.gotoPage == "function" && typeof a.setParams == "function" ? a : null;
116
119
  },
117
- ready: _(() => r.value !== null),
120
+ ready: O(() => r.value !== null),
118
121
  state: o,
119
122
  async checkPdfFont() {
120
123
  const n = t();
@@ -144,13 +147,13 @@ function Y() {
144
147
  gotoPage(n) {
145
148
  t().gotoPage(n);
146
149
  },
147
- async setParams(n, s) {
148
- await t().setParams(n, s);
150
+ async setParams(n, a) {
151
+ await t().setParams(n, a);
149
152
  },
150
- async importExcel(n, s) {
151
- const d = t();
152
- if (!d.importExcel) throw new u("config", "旧自定义控制器未提供 Excel 导入");
153
- return d.importExcel(n, s);
153
+ async importExcel(n, a) {
154
+ const l = t();
155
+ if (!l.importExcel) throw new f("config", "旧自定义控制器未提供 Excel 导入");
156
+ return l.importExcel(n, a);
154
157
  },
155
158
  getPlan() {
156
159
  return t().getPlan?.() ?? null;
@@ -163,129 +166,136 @@ function Y() {
163
166
  redo: async () => await t().redo?.() ?? !1,
164
167
  restoreChanges: async () => await t().restoreChanges?.() ?? !1,
165
168
  getSelection: () => t().getSelection?.() ?? null,
166
- focusCell: async (n, s) => await t().focusCell?.(n, s) ?? !1,
169
+ focusCell: async (n, a) => await t().focusCell?.(n, a) ?? !1,
167
170
  focusField: async (n) => await t().focusField?.(n) ?? !1,
168
171
  copySelection: () => t().copySelection?.() ?? "",
169
172
  pasteSelection: async (n) => await t().pasteSelection?.(n) ?? !1
170
173
  };
171
174
  }
172
175
  function K() {
173
- return I(x, null);
176
+ return _(x, null);
174
177
  }
175
178
  function P(r) {
176
179
  return !!r && typeof r == "object" && !Array.isArray(r);
177
180
  }
178
181
  function k(r) {
179
- return Array.isArray(r) && r.every((e) => P(e) && typeof e.code == "string" && typeof e.message == "string" && ["info", "warning", "error"].includes(e.severity) && (e.path === void 0 || typeof e.path == "string") && O(e));
182
+ return Array.isArray(r) && r.every((e) => P(e) && typeof e.code == "string" && typeof e.message == "string" && ["info", "warning", "error"].includes(e.severity) && (e.path === void 0 || typeof e.path == "string") && I(e));
180
183
  }
181
184
  function F(r, e) {
182
185
  return Array.isArray(r) && r.every((o) => P(o) && Number.isSafeInteger(o.editIndex) && o.editIndex >= 0 && o.editIndex < e && typeof o.code == "string" && typeof o.message == "string");
183
186
  }
184
187
  function L(r, e) {
185
188
  let o;
186
- if (!P(r) || typeof r.revision != "string" || !r.revision.trim() ? o = "非空 revision(请先在适配器解包业务响应)" : r.sourceToken !== void 0 && typeof r.sourceToken != "string" ? o = "字符串 sourceToken" : r.diagnostics !== void 0 && !k(r.diagnostics) ? o = "结构化 diagnostics" : r.conflicts !== void 0 && !F(r.conflicts, e) && (o = "有效 editIndex/code/message conflicts"), o) throw new u("edit", `ReportProvider.save 必须返回${o};服务器可能已提交,请重新查询确认后再编辑`);
189
+ if (!P(r) || typeof r.revision != "string" || !r.revision.trim() ? o = "非空 revision(请先在适配器解包业务响应)" : r.sourceToken !== void 0 && typeof r.sourceToken != "string" ? o = "字符串 sourceToken" : r.diagnostics !== void 0 && !k(r.diagnostics) ? o = "结构化 diagnostics" : r.conflicts !== void 0 && !F(r.conflicts, e) && (o = "有效 editIndex/code/message conflicts"), o) throw new f("edit", `ReportProvider.save 必须返回${o};服务器可能已提交,请重新查询确认后再编辑`);
187
190
  }
188
- function w(r) {
191
+ function y(r) {
189
192
  return typeof r == "function" ? r() : r;
190
193
  }
191
194
  function b(r, e) {
192
195
  const o = new Set(r.flatMap((t) => t.source?.[e] === void 0 ? [] : [String(t.source[e])]));
193
196
  return o.size === 1 ? [...o][0] : void 0;
194
197
  }
195
- function y(r, e, o, t) {
198
+ function w(r, e, o, t) {
196
199
  return typeof r == "function" ? r() : b(e, o) ?? t ?? r;
197
200
  }
198
201
  function U(r) {
199
202
  return r.requestId ?? globalThis.crypto?.randomUUID?.() ?? `mr-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
200
203
  }
201
204
  function $(r, e) {
202
- if (!r.save) throw new u("config", "ReportProvider.save 未配置,无法启用业务保存");
203
- let o = "", t, n, s = 0;
204
- function d(a, i, l) {
205
- a.conflicts?.length || i !== o || l !== s || (t = a.revision, n = a.sourceToken);
205
+ if (!r.save) throw new f("config", "ReportProvider.save 未配置,无法启用业务保存");
206
+ let o = "", t, n, a = 0;
207
+ function l(s, i, d) {
208
+ s.conflicts?.length || i !== o || d !== a || (t = s.revision, n = s.sourceToken);
206
209
  }
207
- async function m(a, i) {
210
+ async function m(s, i) {
208
211
  if (i.signal.aborted) throw i.signal.reason ?? new DOMException("Aborted", "AbortError");
209
- const l = w(e.reportId), E = { ...w(e.params ?? {}) }, g = JSON.stringify([l, E]), S = ++s;
210
- if (g !== o && (o = g, t = void 0, n = void 0), e.requireSource !== !1 && a.edits.some((c) => !c.source)) throw new A("missing");
211
- const f = await r.save({
212
- reportId: l,
212
+ const d = y(e.reportId), E = { ...y(e.params ?? {}) }, g = JSON.stringify([d, E]), S = ++a;
213
+ if (g !== o && (o = g, t = void 0, n = void 0), e.requireSource !== !1 && s.edits.some((c) => !c.source)) throw new A("missing");
214
+ const u = await r.save({
215
+ reportId: d,
213
216
  params: E,
214
217
  signal: i.signal,
215
- requestId: a.requestId,
218
+ requestId: s.requestId,
216
219
  action: i.action,
217
- edits: h(a.edits),
218
- expectedRevision: y(e.expectedRevision, a.edits, "revision", t),
219
- sourceToken: y(e.sourceToken, a.edits, "sourceToken", n)
220
+ edits: h(s.edits),
221
+ expectedRevision: w(e.expectedRevision, s.edits, "revision", t),
222
+ sourceToken: w(e.sourceToken, s.edits, "sourceToken", n)
220
223
  });
221
224
  if (i.signal.aborted) throw i.signal.reason ?? new DOMException("Aborted", "AbortError");
222
- L(f, a.edits.length), f.diagnostics?.forEach((c) => M(() => e.onDiagnostic?.(c)));
223
- const p = f.diagnostics?.filter((c) => c.severity === "error");
224
- if (p?.length) throw new u("edit", p.map((c) => c.message).join(";"), { diagnostics: p });
225
- const T = f.conflicts?.map((c) => ({ source: a.edits[c.editIndex]?.source, address: a.edits[c.editIndex]?.address, message: c.message }));
226
- return d(f, g, S), { revision: f.revision, sourceToken: f.sourceToken, conflicts: T };
225
+ L(u, s.edits.length), u.diagnostics?.forEach((c) => M(() => e.onDiagnostic?.(c)));
226
+ const p = u.diagnostics?.filter((c) => c.severity === "error");
227
+ if (p?.length) throw new f("edit", p.map((c) => c.message).join(";"), { diagnostics: p });
228
+ const v = u.conflicts?.map((c) => ({ source: s.edits[c.editIndex]?.source, address: s.edits[c.editIndex]?.address, message: c.message }));
229
+ return l(u, g, S), { revision: u.revision, sourceToken: u.sourceToken, conflicts: v };
227
230
  }
228
231
  return {
229
232
  requireSource: e.requireSource ?? !0,
230
233
  canEdit: e.canEdit,
234
+ readOnlyReason: e.readOnlyReason,
235
+ history: e.history,
236
+ fields: e.fields,
231
237
  validate: e.validate,
238
+ validation: e.validation,
239
+ validateBatch: e.validateBatch,
232
240
  saveBatch: m,
233
- save: (a, i) => m({ requestId: U(i), edits: [h(a)] }, i)
241
+ save: (s, i) => m({ requestId: U(i), edits: [h(s)] }, i)
234
242
  };
235
243
  }
236
244
  export {
237
- ye as DEFAULT_CALCULATION_MESSAGES,
238
- Se as DEFAULT_DATA_REVIEW_MESSAGES,
239
- Te as DEFAULT_MESSAGES,
240
- ve as DEFAULT_PRINT_MESSAGES,
241
- Ae as DEFAULT_THEME,
242
- He as MACH_REPORT_CONFIG_KEY,
245
+ ve as DEFAULT_CALCULATION_MESSAGES,
246
+ Te as DEFAULT_DATA_REVIEW_MESSAGES,
247
+ Ae as DEFAULT_MESSAGES,
248
+ xe as DEFAULT_PRINT_MESSAGES,
249
+ Ce as DEFAULT_THEME,
250
+ ze as MACH_REPORT_CONFIG_KEY,
243
251
  x as MACH_REPORT_CONTROLLER_KEY,
244
- We as MACH_REPORT_FETCHER_KEY,
245
- ze as MACH_REPORT_PDF_EXPORTER_KEY,
246
- u as MachReportError,
247
- Ye as MachReportPreview,
248
- xe as PARAM_OPTIONS_MESSAGES,
252
+ Ve as MACH_REPORT_FETCHER_KEY,
253
+ Ye as MACH_REPORT_PDF_EXPORTER_KEY,
254
+ f as MachReportError,
255
+ $e as MachReportPreview,
256
+ Oe as PARAM_OPTIONS_MESSAGES,
249
257
  R as PlanLoadError,
250
258
  Z as REPORT_EXPORT_FORMATS,
251
259
  Q as REPORT_PREVIEW_TOOLS,
252
260
  ee as ReportDataComparisonPanel,
253
- re as ReportPagination,
254
- Ce as ReportParamPanel,
255
- te as ReportPrefillPanel,
256
- ne as ReportPreview,
257
- oe as ReportPrintResourceError,
258
- se as ReportToolbar,
259
- ae as ReportValidationPanel,
260
- _e as SILENT_LOGGER,
261
- ie as buildPrintDocument,
262
- ce as buildWordHtml,
263
- fe as createDefaultPdfExporter,
264
- ue as createFetchRequest,
261
+ re as ReportExportMenu,
262
+ te as ReportPagination,
263
+ _e as ReportParamPanel,
264
+ ne as ReportPrefillPanel,
265
+ oe as ReportPreview,
266
+ ae as ReportPrintResourceError,
267
+ se as ReportTaskStatus,
268
+ ie as ReportToolbar,
269
+ ce as ReportValidationPanel,
270
+ Ie as SILENT_LOGGER,
271
+ ue as buildPrintDocument,
272
+ fe as buildWordHtml,
273
+ le as createDefaultPdfExporter,
274
+ de as createFetchRequest,
265
275
  V as createLocalFetcher,
266
- de as createPrintCalibrationPlan,
276
+ ge as createPrintCalibrationPlan,
267
277
  $ as createProviderEditing,
268
- le as createReportStoragePreferences,
269
- Ie as defineMachReportConfig,
270
- Oe as defineMachReportPreset,
271
- ge as joinReportIds,
272
- Ke as machReportPlugin,
273
- pe as normalizeReportIds,
274
- Me as normalizeReportLoadError,
275
- Pe as preparePrintResources,
276
- De as printCalibration,
277
- me as printPlans,
278
- ke as provideMachReportConfig,
279
- Fe as resolveCalculationMessages,
280
- Le as resolveConfig,
281
- be as resolveDataReviewMessages,
282
- Ue as snapshotPrintOptions,
283
- qe as themeToCssVars,
284
- je as toErrorDetail,
278
+ pe as createReportStoragePreferences,
279
+ Me as defineMachReportConfig,
280
+ De as defineMachReportPreset,
281
+ Pe as joinReportIds,
282
+ Be as machReportPlugin,
283
+ me as normalizeReportIds,
284
+ ke as normalizeReportLoadError,
285
+ Ee as preparePrintResources,
286
+ Fe as printCalibration,
287
+ Re as printPlans,
288
+ Le as provideMachReportConfig,
289
+ be as resolveCalculationMessages,
290
+ Ue as resolveConfig,
291
+ qe as resolveDataReviewMessages,
292
+ je as snapshotPrintOptions,
293
+ Ge as themeToCssVars,
294
+ Ne as toErrorDetail,
285
295
  Y as useMachReport,
286
- Ge as useMachReportConfig,
287
- Ee as usePageWindow,
288
- Re as usePrintExport,
296
+ He as useMachReportConfig,
297
+ he as usePageWindow,
298
+ ye as usePrintExport,
289
299
  K as useReportPreview,
290
- he as useZoom
300
+ we as useZoom
291
301
  };