@agile-team/mach-report 2.19.1 → 2.21.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 (122) hide show
  1. package/README.md +22 -3
  2. package/dist/ExcelBindingWizard-B2xXBOJu.cjs +1 -0
  3. package/dist/{ExcelBindingWizard-xJIYmnZ_.js → ExcelBindingWizard-CixTPQAL.js} +351 -351
  4. package/dist/ParamEditor-DhHlNxai.cjs +1 -0
  5. package/dist/{ParamEditor-D1wWemaf.js → ParamEditor-gKhvEsnr.js} +10 -10
  6. package/dist/{ReportBatchPanel-BkJFqeEW.cjs → ReportBatchPanel-BUdUfTdm.cjs} +1 -1
  7. package/dist/{ReportBatchPanel-B88R-fME.js → ReportBatchPanel-D-lyWKyf.js} +2 -2
  8. package/dist/ReportLabelStudio-BcjQt73a.cjs +1 -0
  9. package/dist/ReportLabelStudio-N2w6DdaZ.js +764 -0
  10. package/dist/ReportParamPanel-CVpK8mFc.cjs +1 -0
  11. package/dist/{ReportParamPanel-mQkeN70Q.js → ReportParamPanel-peB-KEmm.js} +10 -2
  12. package/dist/{ReportPreview-DBbctg6C.js → ReportPreview-BBJNlu2U.js} +2093 -1978
  13. package/dist/ReportPreview-nf4Dk1Jc.cjs +6 -0
  14. package/dist/{ReportTemplateLibrary-BOh2MgjQ.cjs → ReportTemplateLibrary-Cs9WKneQ.cjs} +1 -1
  15. package/dist/{ReportTemplateLibrary-BGELmgd3.js → ReportTemplateLibrary-WZl-AK-2.js} +1 -1
  16. package/dist/{RuleEditor-CoLqgehG.js → RuleEditor-DGpmjCko.js} +178 -174
  17. package/dist/RuleEditor-Dtcq-7LO.cjs +1 -0
  18. package/dist/{TemplateOutlinePanel-DiG8tRRe.cjs → TemplateOutlinePanel-CkCh506f.cjs} +1 -1
  19. package/dist/{TemplateOutlinePanel-DU95loB-.js → TemplateOutlinePanel-cxp95OT9.js} +1 -1
  20. package/dist/{TemplateReusePanel-DE1KSD6c.js → TemplateReusePanel-BZ8VTtrO.js} +2 -2
  21. package/dist/{TemplateReusePanel-G-Y299wc.cjs → TemplateReusePanel-CwttuSta.cjs} +1 -1
  22. package/dist/{TemplateReviewPanel-KQx9ts0D.cjs → TemplateReviewPanel-C2YjiaEC.cjs} +1 -1
  23. package/dist/{TemplateReviewPanel-vqFJ_Y9o.js → TemplateReviewPanel-C9cTvsRs.js} +1 -1
  24. package/dist/artifact-integrity.json +92 -94
  25. package/dist/{assets-2eC3mOcV.js → assets-CxHunY_9.js} +2 -2
  26. package/dist/{assets-B0Hxn4l6.cjs → assets-vbjAGgk8.cjs} +1 -1
  27. package/dist/{auto-BlchZ1b8.js → auto-BkdGiNtr.js} +4 -4
  28. package/dist/{auto-B0EZFIK1.cjs → auto-Tq7ReIC1.cjs} +1 -1
  29. package/dist/{component-tree-CvW4lzpv.js → component-tree-1_QCiQJX.js} +1 -1
  30. package/dist/component-tree-BjZIp6w9.cjs +1 -0
  31. package/dist/{data-bar-PtjXhMgN.js → data-bar-8baGYEZ9.js} +1 -1
  32. package/dist/{data-bar-Ce38juRZ.cjs → data-bar-YltqGTaC.cjs} +1 -1
  33. package/dist/designer-CDqok4S5.cjs +2 -0
  34. package/dist/designer-CIDHt5xz.js +6869 -0
  35. package/dist/designer.cjs +1 -1
  36. package/dist/designer.d.cts +166 -7
  37. package/dist/designer.d.ts +166 -7
  38. package/dist/designer.js +1 -1
  39. package/dist/{encoding-B--eZpp1.cjs → encoding-B79hW4zq.cjs} +1 -1
  40. package/dist/{encoding-mctOLocI.js → encoding-BSeUwrN7.js} +2 -2
  41. package/dist/{font-loader-DBBJ5KE9.cjs → font-loader-BB372_XN.cjs} +1 -1
  42. package/dist/{font-loader-DW8tIaNp.js → font-loader-Di0lQKFf.js} +1 -1
  43. package/dist/grid-geometry-D3SJgWFv.js +136 -0
  44. package/dist/grid-geometry-D8ReblRV.cjs +1 -0
  45. package/dist/index.cjs +6 -6
  46. package/dist/index.js +194 -195
  47. package/dist/json-snapshot-I5VI84Vp.cjs +2 -0
  48. package/dist/{json-snapshot-By4ZVVUt.js → json-snapshot-Kgn459Oj.js} +895 -879
  49. package/dist/{pdf-DqyxJ96U.cjs → pdf-CARdBcuw.cjs} +45 -45
  50. package/dist/{pdf-CKROKygt.js → pdf-DmlnL5eB.js} +13 -14
  51. package/dist/pdf.cjs +1 -1
  52. package/dist/pdf.js +2 -2
  53. package/dist/{plugin-CPyHs4UC.cjs → plugin-BaRUGORD.cjs} +1 -1
  54. package/dist/{plugin-DsXJRR6Q.js → plugin-D4kAxfLG.js} +1 -1
  55. package/dist/{prefill-D7EswyTI.cjs → prefill-Bpyn58AZ.cjs} +1 -1
  56. package/dist/{prefill-B8H9qwE4.js → prefill-CJSazcVY.js} +2 -2
  57. package/dist/{prepared-CGVphji3.cjs → prepared-BiSz_9vN.cjs} +1 -1
  58. package/dist/{prepared-BE-4jfX5.js → prepared-BwjwEzFz.js} +1 -1
  59. package/dist/{protocol-Cr81vFSQ.js → protocol-Bs9-ohHN.js} +3 -3
  60. package/dist/{protocol-ByRVzzQG.cjs → protocol-C8VWF9An.cjs} +1 -1
  61. package/dist/record-bindings-Ct1HkPrc.cjs +1 -0
  62. package/dist/{record-bindings-DEJtmo3p.js → record-bindings-VZGS-Qd8.js} +1 -1
  63. package/dist/{region-binding-workflow-CBg0l_tj.js → region-binding-workflow-Cy4GIOUo.js} +2 -2
  64. package/dist/{region-binding-workflow-D05tOYn3.cjs → region-binding-workflow-JNowHd0A.cjs} +1 -1
  65. package/dist/report-encoding-worker.cjs +1 -1
  66. package/dist/report-encoding-worker.js +1 -1
  67. package/dist/rich-text-layout-K48VHUoW.cjs +3 -0
  68. package/dist/{rich-text-layout-Ct5WrY1g.js → rich-text-layout-wxBhnAS7.js} +1 -1
  69. package/dist/{runtime-CEMvybO7.js → runtime-BDf5x1i1.js} +5 -5
  70. package/dist/runtime-DsJt1PIf.cjs +1 -0
  71. package/dist/sbom.cdx.json +1 -1
  72. package/dist/server-node.cjs +4 -4
  73. package/dist/server-node.js +1272 -1274
  74. package/dist/server.cjs +1 -1
  75. package/dist/server.js +8 -8
  76. package/dist/style.css +1 -1
  77. package/dist/{template-catalog-CmbWOJqy.js → template-catalog-DFwIS9aN.js} +3 -3
  78. package/dist/{template-catalog-Utu4GP09.cjs → template-catalog-D_2jdnkL.cjs} +1 -1
  79. package/dist/template-fragments-DZVUBhuB.cjs +1 -0
  80. package/dist/{template-fragments-DWgo9tlZ.js → template-fragments-Dng-AlHk.js} +11 -11
  81. package/dist/{template-registry-BIhIHOab.js → template-registry-DhBqoD7W.js} +120 -118
  82. package/dist/template-registry-DpLUSLwF.cjs +1 -0
  83. package/dist/{column-visual-BpgQVWwT.js → template-serialization-Cc3h-miv.js} +74 -65
  84. package/dist/{column-visual-CtYxnBCP.cjs → template-serialization-D1R5oAqh.cjs} +1 -1
  85. package/dist/{textwrap-BEIg2w8y.js → textwrap-CkGjRFT3.js} +1 -1
  86. package/dist/textwrap-OTOUMr4f.cjs +4 -0
  87. package/dist/vue/async.d.cts +8 -0
  88. package/dist/vue/async.d.ts +8 -0
  89. package/dist/vue/index.d.cts +10 -2
  90. package/dist/vue/index.d.ts +10 -2
  91. package/dist/vue-async.cjs +1 -1
  92. package/dist/vue-async.js +3 -3
  93. package/dist/vue.cjs +1 -1
  94. package/dist/vue.js +6 -6
  95. package/dist/{workbook-session-B94EwVa_.cjs → workbook-session-NYv01LHe.cjs} +1 -1
  96. package/dist/{workbook-session-BoScoOg-.js → workbook-session-oinxX3qo.js} +2 -2
  97. package/dist/worker.cjs +1 -1
  98. package/dist/worker.js +4 -4
  99. package/dist/xlsx.cjs +4 -4
  100. package/dist/xlsx.js +204 -205
  101. package/package.json +1 -1
  102. package/dist/ExcelBindingWizard-UHSApSG9.cjs +0 -1
  103. package/dist/ParamEditor-BZb-okUd.cjs +0 -1
  104. package/dist/ReportLabelStudio-B4WZ2XNN.js +0 -239
  105. package/dist/ReportLabelStudio-BN-fYNCr.cjs +0 -1
  106. package/dist/ReportParamPanel-sOANVRz-.cjs +0 -1
  107. package/dist/ReportPreview-CuoHl15N.cjs +0 -6
  108. package/dist/RuleEditor-XaLcCdTb.cjs +0 -1
  109. package/dist/component-tree-6TV7W6Yj.cjs +0 -1
  110. package/dist/designer-CyKXBhQg.cjs +0 -2
  111. package/dist/designer-fVvpYg8H.js +0 -5824
  112. package/dist/grid-geometry-BNptEcMm.js +0 -65
  113. package/dist/grid-geometry-CZ_cYB6O.cjs +0 -1
  114. package/dist/json-snapshot-jiXff4lc.cjs +0 -2
  115. package/dist/record-bindings-ehjnCDHt.cjs +0 -1
  116. package/dist/rich-text-layout-ALlMoYOG.cjs +0 -3
  117. package/dist/runtime-CDA6d263.cjs +0 -1
  118. package/dist/style-67OqfNed.js +0 -73
  119. package/dist/style-C22Pbv3T.cjs +0 -1
  120. package/dist/template-fragments-C_zSHJAa.cjs +0 -1
  121. package/dist/template-registry-DzWswQI5.cjs +0 -1
  122. package/dist/textwrap-BI-yJ6Wt.cjs +0 -4
@@ -1,11 +1,11 @@
1
- import { ref as G, computed as j, defineComponent as ce, resolveComponent as ye, openBlock as s, createElementBlock as d, normalizeClass as ve, createElementVNode as a, createTextVNode as k, toDisplayString as t, createCommentVNode as E, Fragment as C, renderList as x, createVNode as re, watch as te, withDirectives as F, isRef as oe, vModelCheckbox as de, unref as l, vModelSelect as L, vModelText as z, createBlock as fe, vShow as Ee } from "vue";
1
+ import { ref as G, computed as j, defineComponent as ce, resolveComponent as ye, openBlock as s, createElementBlock as d, normalizeClass as ve, createElementVNode as a, createTextVNode as k, toDisplayString as t, createCommentVNode as E, Fragment as C, renderList as x, createVNode as re, watch as ne, withDirectives as F, isRef as oe, vModelCheckbox as de, unref as l, vModelSelect as L, vModelText as q, createBlock as fe, vShow as Ee } from "vue";
2
2
  import { r as Ke, i as be, v as Te, e as Le } from "./computed-C8NRZQss.js";
3
3
  import { _ as me } from "./_plugin-vue_export-helper-8SL1F89S.js";
4
- import { u as he, D as Be } from "./designer-fVvpYg8H.js";
4
+ import { u as he, D as Be } from "./designer-CIDHt5xz.js";
5
5
  import { u as ue } from "./useLocalDraft-BnhcxXk_.js";
6
6
  import { c as Oe } from "./matrix-Dy-tyY7E.js";
7
- import { v as ke } from "./template-registry-BIhIHOab.js";
8
- import { c as Ae } from "./column-visual-BpgQVWwT.js";
7
+ import { v as ke } from "./template-registry-DhBqoD7W.js";
8
+ import { c as Ae } from "./template-serialization-Cc3h-miv.js";
9
9
  function $e(e, A = /* @__PURE__ */ new Set()) {
10
10
  return typeof e == "string" || ("field" in e && e.field && A.add(e.field), "weightField" in e && e.weightField && A.add(e.weightField), "args" in e && e.condition && Ke(e.condition).forEach(($) => A.add($)), "args" in e && e.args.forEach(($) => $e($, A))), A;
11
11
  }
@@ -14,7 +14,7 @@ function Ve(e, A) {
14
14
  }
15
15
  function Ie(e, A, $) {
16
16
  const J = G("");
17
- function V(S) {
17
+ function w(S) {
18
18
  const U = e.list.columns.find((T) => T.field === S)?.format;
19
19
  return U && "digits" in U && U.digits !== void 0 ? `${U.digits} ${$.value.digits}` : void 0;
20
20
  }
@@ -23,21 +23,21 @@ function Ie(e, A, $) {
23
23
  for (const U of e.datasetSchema?.fields ?? []) S.set(U.field, {
24
24
  field: U.field,
25
25
  label: U.label ?? U.field,
26
- meta: [U.type, U.unit, V(U.field)].filter(Boolean).join(" · ")
26
+ meta: [U.type, U.unit, w(U.field)].filter(Boolean).join(" · ")
27
27
  });
28
28
  for (const U of e.list.columns) S.has(U.field) || S.set(U.field, { field: U.field, label: U.header || U.field, meta: U.semanticRole ?? "" });
29
29
  return [...S.values()];
30
30
  }), i = j(() => {
31
31
  const S = J.value.trim().toLocaleLowerCase();
32
32
  return m.value.filter((U) => `${U.field} ${U.label} ${U.meta}`.toLocaleLowerCase().includes(S));
33
- }), h = j(() => Ve(A.value.expression, $.value)), w = j(() => {
33
+ }), h = j(() => Ve(A.value.expression, $.value)), V = j(() => {
34
34
  const S = [...$e(A.value.expression)];
35
35
  return (e.datasets?.[e.list.dataset] ?? []).slice(0, 5).map((U, T) => ({
36
36
  row: T + 1,
37
37
  values: S.map((M) => `${M} = ${U[M] == null ? $.value.null : String(U[M])}`).join(" · ")
38
38
  }));
39
39
  });
40
- return { query: J, matches: i, fieldWindow: j(() => i.value.slice(0, 50)), expression: h, sources: w };
40
+ return { query: J, matches: i, fieldWindow: j(() => i.value.slice(0, 50)), expression: h, sources: V };
41
41
  }
42
42
  const We = { class: "mr-predicate__mode" }, Ge = ["aria-label", "value", "disabled"], Je = { value: "comparison" }, He = {
43
43
  key: 0,
@@ -62,24 +62,24 @@ const We = { class: "mr-predicate__mode" }, Ge = ["aria-label", "value", "disabl
62
62
  },
63
63
  emits: ["update:modelValue"],
64
64
  setup(e, { emit: A }) {
65
- const $ = e, J = A, V = j(() => "all" in $.modelValue ? "all" : "any" in $.modelValue ? "any" : "not" in $.modelValue ? "not" : "comparison"), m = j(() => "all" in $.modelValue ? $.modelValue.all : "any" in $.modelValue ? $.modelValue.any : "not" in $.modelValue ? [$.modelValue.not] : []), i = j(() => "field" in $.modelValue ? $.modelValue : void 0);
65
+ const $ = e, J = A, w = j(() => "all" in $.modelValue ? "all" : "any" in $.modelValue ? "any" : "not" in $.modelValue ? "not" : "comparison"), m = j(() => "all" in $.modelValue ? $.modelValue.all : "any" in $.modelValue ? $.modelValue.any : "not" in $.modelValue ? [$.modelValue.not] : []), i = j(() => "field" in $.modelValue ? $.modelValue : void 0);
66
66
  function h(n) {
67
67
  $.readonly || J("update:modelValue", n);
68
68
  }
69
- function w() {
69
+ function V() {
70
70
  return { field: $.fields[0]?.field ?? "", op: ">", value: 0, valueType: "number" };
71
71
  }
72
72
  function S(n) {
73
73
  const b = $.modelValue;
74
- h(n === "all" ? { all: [b] } : n === "any" ? { any: [b] } : n === "not" ? { not: b } : w());
74
+ h(n === "all" ? { all: [b] } : n === "any" ? { any: [b] } : n === "not" ? { not: b } : V());
75
75
  }
76
76
  function U(n, b) {
77
77
  const o = [...m.value];
78
- b ? o[n] = b : o.splice(n, 1), h(V.value === "all" ? { all: o } : V.value === "any" ? { any: o } : { not: o[0] });
78
+ b ? o[n] = b : o.splice(n, 1), h(w.value === "all" ? { all: o } : w.value === "any" ? { any: o } : { not: o[0] });
79
79
  }
80
80
  function T() {
81
- const n = [...m.value, w()];
82
- h(V.value === "all" ? { all: n } : { any: n });
81
+ const n = [...m.value, V()];
82
+ h(w.value === "all" ? { all: n } : { any: n });
83
83
  }
84
84
  function M(n) {
85
85
  i.value && h({ ...i.value, ...n });
@@ -89,7 +89,7 @@ const We = { class: "mr-predicate__mode" }, Ge = ["aria-label", "value", "disabl
89
89
  const b = { ...i.value, op: n };
90
90
  delete b.right, delete b.values, n === "between" ? (b.values = [0, 1], delete b.value) : n === "isNull" || n === "isNotNull" ? delete b.value : b.value = n === "contains" ? "" : 0, h(b);
91
91
  }
92
- function q(n) {
92
+ function z(n) {
93
93
  const b = i.value?.valueType ?? i.value?.numeric;
94
94
  return b === "number" && n.trim() && Number.isFinite(Number(n)) ? Number(n) : b === "boolean" ? n === "true" : n;
95
95
  }
@@ -97,8 +97,8 @@ const We = { class: "mr-predicate__mode" }, Ge = ["aria-label", "value", "disabl
97
97
  if (i.value)
98
98
  if (b !== void 0) {
99
99
  const o = [...i.value.values ?? [0, 1]];
100
- o[b] = q(n), M({ values: o });
101
- } else M({ value: q(n), right: void 0 });
100
+ o[b] = z(n), M({ values: o });
101
+ } else M({ value: z(n), right: void 0 });
102
102
  }
103
103
  function r(n) {
104
104
  M(n === "field" ? { value: void 0, right: { field: $.fields[0]?.field ?? "" } } : { value: 0, right: void 0 });
@@ -112,7 +112,7 @@ const We = { class: "mr-predicate__mode" }, Ge = ["aria-label", "value", "disabl
112
112
  k(t(e.messages.conditionGroup), 1),
113
113
  a("select", {
114
114
  "aria-label": e.messages.conditionGroup,
115
- value: V.value,
115
+ value: w.value,
116
116
  disabled: e.readonly,
117
117
  onChange: b[0] || (b[0] = (f) => S(f.target.value))
118
118
  }, [
@@ -244,7 +244,7 @@ const We = { class: "mr-predicate__mode" }, Ge = ["aria-label", "value", "disabl
244
244
  onClick: (Z) => U(O)
245
245
  }, "×", 8, vl)) : E("", !0)
246
246
  ]))), 128)),
247
- V.value !== "not" && m.value.length < 8 ? (s(), d("button", {
247
+ w.value !== "not" && m.value.length < 8 ? (s(), d("button", {
248
248
  key: 0,
249
249
  type: "button",
250
250
  disabled: e.readonly,
@@ -254,9 +254,9 @@ const We = { class: "mr-predicate__mode" }, Ge = ["aria-label", "value", "disabl
254
254
  ], 2);
255
255
  };
256
256
  }
257
- }), we = /* @__PURE__ */ me(gl, [["__scopeId", "data-v-33dda0dd"]]), ae = (e) => JSON.parse(JSON.stringify(e));
257
+ }), we = /* @__PURE__ */ me(gl, [["__scopeId", "data-v-33dda0dd"]]), te = (e) => JSON.parse(JSON.stringify(e));
258
258
  function yl(e, A) {
259
- const $ = G(!1), J = G(""), V = G({
259
+ const $ = G(!1), J = G(""), w = G({
260
260
  dataset: "",
261
261
  parentKey: "",
262
262
  foreignKey: "",
@@ -265,8 +265,8 @@ function yl(e, A) {
265
265
  rowFields: [],
266
266
  columnFields: [],
267
267
  measures: []
268
- }), i = G({ input: "flat", idField: "id", parentField: "parentId", labelField: "", parentValues: "source" }), h = ue(() => ({ enabled: $.value, detail: V.value, matrix: m.value, tree: i.value }));
269
- let w;
268
+ }), i = G({ input: "flat", idField: "id", parentField: "parentId", labelField: "", parentValues: "source" }), h = ue(() => ({ enabled: $.value, detail: w.value, matrix: m.value, tree: i.value }));
269
+ let V;
270
270
  const S = G(), U = j(() => [
271
271
  .../* @__PURE__ */ new Set([
272
272
  ...Object.keys(e.datasets ?? {}),
@@ -274,7 +274,7 @@ function yl(e, A) {
274
274
  ])
275
275
  ]), T = j(
276
276
  () => W(e.list.dataset, e.datasetSchema)
277
- ), M = j(() => W(V.value.dataset));
277
+ ), M = j(() => W(w.value.dataset));
278
278
  function W(v, D) {
279
279
  const R = /* @__PURE__ */ new Map();
280
280
  for (const c of (D ?? e.datasetSchemas?.[v])?.fields ?? [])
@@ -287,14 +287,14 @@ function yl(e, A) {
287
287
  R.has(c.field) || R.set(c.field, c.header || c.field);
288
288
  return [...R].map(([c, u]) => ({ field: c, label: u }));
289
289
  }
290
- function q() {
291
- if (w === JSON.stringify(e.list)) {
292
- w = void 0;
290
+ function z() {
291
+ if (V === JSON.stringify(e.list)) {
292
+ V = void 0;
293
293
  return;
294
294
  }
295
295
  $.value = !!e.list[e.mode];
296
296
  const v = U.value.find((D) => D !== e.list.dataset) ?? "";
297
- V.value = ae(
297
+ w.value = te(
298
298
  e.list.detail ?? {
299
299
  dataset: v,
300
300
  parentKey: e.list.rowKey ?? e.datasetSchema?.rowKey ?? T.value[0]?.field ?? "",
@@ -303,23 +303,23 @@ function yl(e, A) {
303
303
  header: !0,
304
304
  unmatched: "error"
305
305
  }
306
- ), m.value = ae(
306
+ ), m.value = te(
307
307
  e.list.matrix ?? {
308
308
  rowFields: [],
309
309
  columnFields: [],
310
310
  measures: [],
311
311
  totals: !0
312
312
  }
313
- ), m.value.measures = m.value.measures.map((D) => ({ ...D, numeric: D.numeric ?? "number" })), i.value = ae(e.list.tree ?? { input: "flat", idField: e.list.rowKey ?? "id", parentField: "parentId", childrenField: "children", labelField: e.list.columns[0]?.field ?? "", parentValues: "source", orphan: "error", indentMm: 3, maxRows: 1e5, maxDepth: 64 }), J.value = "", S.value = void 0, h.accept();
313
+ ), m.value.measures = m.value.measures.map((D) => ({ ...D, numeric: D.numeric ?? "number" })), i.value = te(e.list.tree ?? { input: "flat", idField: e.list.rowKey ?? "id", parentField: "parentId", childrenField: "children", labelField: e.list.columns[0]?.field ?? "", parentValues: "source", orphan: "error", indentMm: 3, maxRows: 1e5, maxDepth: 64 }), J.value = "", S.value = void 0, h.accept();
314
314
  }
315
- te(() => [e.mode, e.list.dataset, e.list[e.mode]], q, { immediate: !0 });
315
+ ne(() => [e.mode, e.list.dataset, e.list[e.mode]], z, { immediate: !0 });
316
316
  function I(v) {
317
- V.value.dataset = v, V.value.columns = [], V.value.foreignKey = M.value[0]?.field ?? "", V.value.rowKey = e.datasetSchemas?.[v]?.rowKey;
317
+ w.value.dataset = v, w.value.columns = [], w.value.foreignKey = M.value[0]?.field ?? "", w.value.rowKey = e.datasetSchemas?.[v]?.rowKey;
318
318
  }
319
319
  function r(v, D) {
320
- if (D && !V.value.columns.some((R) => R.field === v)) {
321
- const R = e.datasetSchemas?.[V.value.dataset]?.fields.find((N) => N.field === v);
322
- V.value.columns.push({
320
+ if (D && !w.value.columns.some((R) => R.field === v)) {
321
+ const R = e.datasetSchemas?.[w.value.dataset]?.fields.find((N) => N.field === v);
322
+ w.value.columns.push({
323
323
  field: v,
324
324
  header: M.value.find((N) => N.field === v)?.label ?? v,
325
325
  widthMm: 30,
@@ -327,7 +327,7 @@ function yl(e, A) {
327
327
  semanticRole: R?.semanticRole,
328
328
  editable: !1
329
329
  });
330
- } else D || (V.value.columns = V.value.columns.filter(
330
+ } else D || (w.value.columns = w.value.columns.filter(
331
331
  (R) => R.field !== v
332
332
  ));
333
333
  }
@@ -393,9 +393,9 @@ function yl(e, A) {
393
393
  delete v.tree;
394
394
  return;
395
395
  }
396
- v.tree = ae(i.value), v.tree.parentValues !== "leaf-aggregate" && delete v.tree.aggregates, v.rowKey = v.tree.idField, delete v.detail, delete v.matrix, delete v.groupBy, delete v.groups, delete v.rowVisibleWhen;
396
+ v.tree = te(i.value), v.tree.parentValues !== "leaf-aggregate" && delete v.tree.aggregates, v.rowKey = v.tree.idField, delete v.detail, delete v.matrix, delete v.groupBy, delete v.groups, delete v.rowVisibleWhen;
397
397
  }
398
- function ne() {
398
+ function ie() {
399
399
  J.value = "", S.value = void 0;
400
400
  try {
401
401
  const v = e.datasets?.[e.list.dataset] ?? [];
@@ -414,24 +414,26 @@ function yl(e, A) {
414
414
  J.value = v instanceof Error ? v.message : String(v);
415
415
  }
416
416
  }
417
- function ie() {
417
+ function ae() {
418
418
  if (e.readonly) return;
419
- const v = ae(e.list);
420
- e.mode === "tree" ? p(v) : e.mode === "detail" ? $.value ? (v.detail = ae(V.value), delete v.matrix, delete v.tree) : delete v.detail : $.value ? (v.matrix = ae(m.value), delete v.detail, delete v.tree, delete v.groups, delete v.groupBy, delete v.grandTotal) : delete v.matrix;
419
+ const v = te(e.list);
420
+ e.mode === "tree" ? p(v) : e.mode === "detail" ? $.value ? (v.detail = te(w.value), delete v.matrix, delete v.tree) : delete v.detail : $.value ? (v.matrix = te(m.value), delete v.detail, delete v.tree, delete v.groups, delete v.groupBy, delete v.grandTotal) : delete v.matrix;
421
421
  const D = ke({ pages: [{ widthMm: Math.max(1, v.leftMm + v.widthMm), heightMm: 297, components: [v] }] });
422
422
  if (!D.ok) {
423
423
  J.value = D.errors.slice(0, 3).map((R) => R.message).join(";");
424
424
  return;
425
425
  }
426
- e.accept && !e.accept(v) || (w = JSON.stringify(v), e.accept || A(v), h.accept());
426
+ e.accept && !e.accept(v) || (V = JSON.stringify(v), e.accept || A(v), h.accept());
427
427
  }
428
- return he({ key: () => `${e.recoveryKey ?? "rules:0:0"}:${e.mode}`, baseline: () => JSON.stringify(e.list[e.mode]), pending: () => h.pending.value, snapshot: () => JSON.stringify({ enabled: $.value, detail: V.value, matrix: m.value, tree: i.value, baseline: h.baseline.value }), restore(v) {
428
+ return he({ key: () => `${e.recoveryKey ?? "rules:0:0"}:${e.mode}`, baseline: () => JSON.stringify(e.list[e.mode]), pending: () => h.pending.value, reset: () => {
429
+ V = void 0, z();
430
+ }, snapshot: () => JSON.stringify({ enabled: $.value, detail: w.value, matrix: m.value, tree: i.value, baseline: h.baseline.value }), restore(v) {
429
431
  const D = JSON.parse(v);
430
- $.value = D.enabled, V.value = D.detail, m.value = D.matrix, i.value = D.tree, h.baseline.value = D.baseline;
432
+ $.value = D.enabled, w.value = D.detail, m.value = D.matrix, i.value = D.tree, h.baseline.value = D.baseline;
431
433
  } }), {
432
434
  enabled: $,
433
435
  pendingLocalChanges: h.pending,
434
- detail: V,
436
+ detail: w,
435
437
  matrix: m,
436
438
  tree: i,
437
439
  datasets: U,
@@ -445,14 +447,14 @@ function yl(e, A) {
445
447
  moveDimension: o,
446
448
  addMeasure: f,
447
449
  removeMeasure: O,
448
- checkMatrix: ne,
450
+ checkMatrix: ie,
449
451
  toggleHierarchy: Z,
450
452
  setDimensionSort: X,
451
453
  toggleMatrixSubtotal: ee,
452
454
  addTreeAggregate: _,
453
455
  removeTreeAggregate: Y,
454
456
  checkTree: le,
455
- apply: ie
457
+ apply: ae
456
458
  };
457
459
  }
458
460
  const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" }, kl = ["disabled"], $l = { class: "mr-data-layout__hint" }, Vl = ["aria-label", "value", "disabled"], wl = {
@@ -486,19 +488,19 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
486
488
  },
487
489
  emits: ["change", "dirty"],
488
490
  setup(e, { emit: A }) {
489
- const $ = e, J = A, V = yl($, (I) => J("change", I)), {
491
+ const $ = e, J = A, w = yl($, (I) => J("change", I)), {
490
492
  enabled: m,
491
493
  detail: i,
492
494
  matrix: h,
493
- tree: w,
495
+ tree: V,
494
496
  datasets: S,
495
497
  sourceFields: U,
496
498
  childFields: T,
497
499
  error: M,
498
500
  preview: W
499
- } = V;
500
- te([V.pendingLocalChanges, m, i, h, w], () => J("dirty", V.pendingLocalChanges.value), { immediate: !0, deep: !0, flush: "sync" });
501
- const q = be();
501
+ } = w;
502
+ ne([w.pendingLocalChanges, m, i, h, V], () => J("dirty", w.pendingLocalChanges.value), { immediate: !0, deep: !0, flush: "sync" });
503
+ const z = be();
502
504
  return (I, r) => (s(), d("div", fl, [
503
505
  a("label", hl, [
504
506
  F(a("input", {
@@ -518,7 +520,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
518
520
  "aria-label": e.messages.childDataset,
519
521
  value: l(i).dataset,
520
522
  disabled: e.readonly,
521
- onChange: r[1] || (r[1] = (n) => l(V).chooseDataset(n.target.value))
523
+ onChange: r[1] || (r[1] = (n) => l(w).chooseDataset(n.target.value))
522
524
  }, [
523
525
  a("option", wl, t(e.messages.select), 1),
524
526
  (s(!0), d(C, null, x(l(S), (n) => (s(), d("option", {
@@ -585,7 +587,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
585
587
  type: "checkbox",
586
588
  checked: l(i).columns.some((b) => b.field === n.field),
587
589
  disabled: e.readonly,
588
- onChange: (b) => l(V).toggleChildColumn(
590
+ onChange: (b) => l(w).toggleChildColumn(
589
591
  n.field,
590
592
  b.target.checked
591
593
  )
@@ -600,7 +602,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
600
602
  "onUpdate:modelValue": r[5] || (r[5] = (n) => l(i).label = n),
601
603
  disabled: e.readonly
602
604
  }, null, 8, Ll), [
603
- [z, l(i).label]
605
+ [q, l(i).label]
604
606
  ])
605
607
  ]),
606
608
  a("div", Bl, [
@@ -634,20 +636,20 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
634
636
  a("label", null, [
635
637
  k(t(e.messages.treeInput), 1),
636
638
  F(a("select", {
637
- "onUpdate:modelValue": r[8] || (r[8] = (n) => l(w).input = n),
639
+ "onUpdate:modelValue": r[8] || (r[8] = (n) => l(V).input = n),
638
640
  "aria-label": e.messages.treeInput,
639
641
  disabled: e.readonly
640
642
  }, [
641
643
  a("option", Pl, t(e.messages.treeFlat), 1),
642
644
  a("option", zl, t(e.messages.treeNested), 1)
643
645
  ], 8, jl), [
644
- [L, l(w).input]
646
+ [L, l(V).input]
645
647
  ])
646
648
  ]),
647
649
  a("label", null, [
648
650
  k(t(e.messages.treeId), 1),
649
651
  F(a("select", {
650
- "onUpdate:modelValue": r[9] || (r[9] = (n) => l(w).idField = n),
652
+ "onUpdate:modelValue": r[9] || (r[9] = (n) => l(V).idField = n),
651
653
  "aria-label": e.messages.treeId,
652
654
  disabled: e.readonly
653
655
  }, [
@@ -656,15 +658,15 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
656
658
  value: n.field
657
659
  }, t(n.label), 9, Zl))), 128))
658
660
  ], 8, ql), [
659
- [L, l(w).idField]
661
+ [L, l(V).idField]
660
662
  ])
661
663
  ])
662
664
  ]),
663
665
  a("div", Ql, [
664
- l(w).input === "flat" ? (s(), d("label", Xl, [
666
+ l(V).input === "flat" ? (s(), d("label", Xl, [
665
667
  k(t(e.messages.treeParent), 1),
666
668
  F(a("select", {
667
- "onUpdate:modelValue": r[10] || (r[10] = (n) => l(w).parentField = n),
669
+ "onUpdate:modelValue": r[10] || (r[10] = (n) => l(V).parentField = n),
668
670
  "aria-label": e.messages.treeParent,
669
671
  disabled: e.readonly
670
672
  }, [
@@ -673,23 +675,23 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
673
675
  value: n.field
674
676
  }, t(n.label), 9, pl))), 128))
675
677
  ], 8, Yl), [
676
- [L, l(w).parentField]
678
+ [L, l(V).parentField]
677
679
  ])
678
680
  ])) : (s(), d("label", _l, [
679
681
  k(t(e.messages.treeChildren), 1),
680
682
  F(a("input", {
681
- "onUpdate:modelValue": r[11] || (r[11] = (n) => l(w).childrenField = n),
683
+ "onUpdate:modelValue": r[11] || (r[11] = (n) => l(V).childrenField = n),
682
684
  "aria-label": e.messages.treeChildren,
683
685
  disabled: e.readonly,
684
686
  placeholder: "children"
685
687
  }, null, 8, ea), [
686
- [z, l(w).childrenField]
688
+ [q, l(V).childrenField]
687
689
  ])
688
690
  ])),
689
691
  a("label", null, [
690
692
  k(t(e.messages.treeLabel), 1),
691
693
  F(a("select", {
692
- "onUpdate:modelValue": r[12] || (r[12] = (n) => l(w).labelField = n),
694
+ "onUpdate:modelValue": r[12] || (r[12] = (n) => l(V).labelField = n),
693
695
  "aria-label": e.messages.treeLabel,
694
696
  disabled: e.readonly
695
697
  }, [
@@ -698,7 +700,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
698
700
  value: n.field
699
701
  }, t(n.header), 9, aa))), 128))
700
702
  ], 8, la), [
701
- [L, l(w).labelField]
703
+ [L, l(V).labelField]
702
704
  ])
703
705
  ])
704
706
  ]),
@@ -706,7 +708,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
706
708
  a("label", null, [
707
709
  k(t(e.messages.treeIndent), 1),
708
710
  F(a("input", {
709
- "onUpdate:modelValue": r[13] || (r[13] = (n) => l(w).indentMm = n),
711
+ "onUpdate:modelValue": r[13] || (r[13] = (n) => l(V).indentMm = n),
710
712
  "aria-label": e.messages.treeIndent,
711
713
  type: "number",
712
714
  min: "0",
@@ -715,42 +717,42 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
715
717
  disabled: e.readonly
716
718
  }, null, 8, na), [
717
719
  [
718
- z,
719
- l(w).indentMm,
720
+ q,
721
+ l(V).indentMm,
720
722
  void 0,
721
723
  { number: !0 }
722
724
  ]
723
725
  ])
724
726
  ]),
725
- l(w).input === "flat" ? (s(), d("label", ia, [
727
+ l(V).input === "flat" ? (s(), d("label", ia, [
726
728
  k(t(e.messages.treeOrphan), 1),
727
729
  F(a("select", {
728
- "onUpdate:modelValue": r[14] || (r[14] = (n) => l(w).orphan = n),
730
+ "onUpdate:modelValue": r[14] || (r[14] = (n) => l(V).orphan = n),
729
731
  "aria-label": e.messages.treeOrphan,
730
732
  disabled: e.readonly
731
733
  }, [
732
734
  a("option", da, t(e.messages.error), 1),
733
735
  a("option", oa, t(e.messages.treeAsRoot), 1)
734
736
  ], 8, sa), [
735
- [L, l(w).orphan]
737
+ [L, l(V).orphan]
736
738
  ])
737
739
  ])) : E("", !0)
738
740
  ]),
739
741
  a("label", null, [
740
742
  k(t(e.messages.treeValues), 1),
741
743
  F(a("select", {
742
- "onUpdate:modelValue": r[15] || (r[15] = (n) => l(w).parentValues = n),
744
+ "onUpdate:modelValue": r[15] || (r[15] = (n) => l(V).parentValues = n),
743
745
  "aria-label": e.messages.treeValues,
744
746
  disabled: e.readonly
745
747
  }, [
746
748
  a("option", ra, t(e.messages.treeSource), 1),
747
749
  a("option", ca, t(e.messages.treeLeaves), 1)
748
750
  ], 8, ua), [
749
- [L, l(w).parentValues]
751
+ [L, l(V).parentValues]
750
752
  ])
751
753
  ]),
752
- l(w).parentValues === "leaf-aggregate" ? (s(), d(C, { key: 0 }, [
753
- (s(!0), d(C, null, x(l(w).aggregates, (n, b) => (s(), d("div", {
754
+ l(V).parentValues === "leaf-aggregate" ? (s(), d(C, { key: 0 }, [
755
+ (s(!0), d(C, null, x(l(V).aggregates, (n, b) => (s(), d("div", {
754
756
  key: b,
755
757
  class: "mr-data-layout__measure"
756
758
  }, [
@@ -777,7 +779,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
777
779
  "aria-label": e.messages.aggregate,
778
780
  disabled: e.readonly
779
781
  }, [
780
- (s(!0), d(C, null, x(l(q).aggregates, (o) => (s(), d("option", {
782
+ (s(!0), d(C, null, x(l(z).aggregates, (o) => (s(), d("option", {
781
783
  key: o,
782
784
  value: o
783
785
  }, t(e.messages[o]), 9, ya))), 128))
@@ -826,7 +828,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
826
828
  disabled: e.readonly
827
829
  }, null, 8, Ua), [
828
830
  [
829
- z,
831
+ q,
830
832
  n.digits,
831
833
  void 0,
832
834
  { number: !0 }
@@ -837,14 +839,14 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
837
839
  a("button", {
838
840
  type: "button",
839
841
  disabled: e.readonly,
840
- onClick: (o) => l(V).removeTreeAggregate(b)
842
+ onClick: (o) => l(w).removeTreeAggregate(b)
841
843
  }, t(e.messages.remove), 9, Fa)
842
844
  ]))), 128)),
843
845
  a("button", {
844
846
  type: "button",
845
- disabled: e.readonly || (l(w).aggregates?.length ?? 0) >= 32,
847
+ disabled: e.readonly || (l(V).aggregates?.length ?? 0) >= 32,
846
848
  onClick: r[16] || (r[16] = //@ts-ignore
847
- (...n) => l(V).addTreeAggregate && l(V).addTreeAggregate(...n))
849
+ (...n) => l(w).addTreeAggregate && l(w).addTreeAggregate(...n))
848
850
  }, "+ " + t(e.messages.addAggregate), 9, Sa)
849
851
  ], 64)) : E("", !0),
850
852
  a("details", null, [
@@ -853,7 +855,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
853
855
  a("label", null, [
854
856
  k(t(e.messages.treeRows), 1),
855
857
  F(a("input", {
856
- "onUpdate:modelValue": r[17] || (r[17] = (n) => l(w).maxRows = n),
858
+ "onUpdate:modelValue": r[17] || (r[17] = (n) => l(V).maxRows = n),
857
859
  "aria-label": e.messages.treeRows,
858
860
  type: "number",
859
861
  min: "1",
@@ -861,8 +863,8 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
861
863
  disabled: e.readonly
862
864
  }, null, 8, Da), [
863
865
  [
864
- z,
865
- l(w).maxRows,
866
+ q,
867
+ l(V).maxRows,
866
868
  void 0,
867
869
  { number: !0 }
868
870
  ]
@@ -871,7 +873,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
871
873
  a("label", null, [
872
874
  k(t(e.messages.treeDepth), 1),
873
875
  F(a("input", {
874
- "onUpdate:modelValue": r[18] || (r[18] = (n) => l(w).maxDepth = n),
876
+ "onUpdate:modelValue": r[18] || (r[18] = (n) => l(V).maxDepth = n),
875
877
  "aria-label": e.messages.treeDepth,
876
878
  type: "number",
877
879
  min: "1",
@@ -879,8 +881,8 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
879
881
  disabled: e.readonly
880
882
  }, null, 8, xa), [
881
883
  [
882
- z,
883
- l(w).maxDepth,
884
+ q,
885
+ l(V).maxDepth,
884
886
  void 0,
885
887
  { number: !0 }
886
888
  ]
@@ -903,7 +905,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
903
905
  type: "checkbox",
904
906
  checked: l(h)[n].includes(b.field),
905
907
  disabled: e.readonly,
906
- onChange: (o) => l(V).toggleDimension(
908
+ onChange: (o) => l(w).toggleDimension(
907
909
  n,
908
910
  b.field,
909
911
  o.target.checked
@@ -939,7 +941,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
939
941
  "onUpdate:modelValue": (o) => n.op = o,
940
942
  disabled: e.readonly
941
943
  }, [
942
- (s(!0), d(C, null, x(l(q).aggregates, (o) => (s(), d("option", {
944
+ (s(!0), d(C, null, x(l(z).aggregates, (o) => (s(), d("option", {
943
945
  key: o,
944
946
  value: o
945
947
  }, t(e.messages[o]), 9, Oa))), 128))
@@ -956,7 +958,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
956
958
  disabled: e.readonly,
957
959
  placeholder: n.field
958
960
  }, null, 8, Aa), [
959
- [z, n.label]
961
+ [q, n.label]
960
962
  ])
961
963
  ]),
962
964
  n.op === "weightedAvg" ? (s(), d("label", Ia, [
@@ -999,7 +1001,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
999
1001
  disabled: e.readonly
1000
1002
  }, null, 8, za), [
1001
1003
  [
1002
- z,
1004
+ q,
1003
1005
  n.digits,
1004
1006
  void 0,
1005
1007
  { number: !0 }
@@ -1010,14 +1012,14 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1010
1012
  a("button", {
1011
1013
  type: "button",
1012
1014
  disabled: e.readonly,
1013
- onClick: (o) => l(V).removeMeasure(b)
1015
+ onClick: (o) => l(w).removeMeasure(b)
1014
1016
  }, t(e.messages.remove), 9, qa)
1015
1017
  ]))), 128)),
1016
1018
  a("button", {
1017
1019
  type: "button",
1018
1020
  disabled: e.readonly || l(h).measures.length >= 32,
1019
1021
  onClick: r[19] || (r[19] = //@ts-ignore
1020
- (...n) => l(V).addMeasure && l(V).addMeasure(...n))
1022
+ (...n) => l(w).addMeasure && l(w).addMeasure(...n))
1021
1023
  }, " + " + t(e.messages.addAggregate), 9, Za),
1022
1024
  a("label", Qa, [
1023
1025
  F(a("input", {
@@ -1036,7 +1038,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1036
1038
  type: "checkbox",
1037
1039
  checked: !!l(h).hierarchy,
1038
1040
  disabled: e.readonly,
1039
- onChange: r[21] || (r[21] = (n) => l(V).toggleHierarchy(n.target.checked))
1041
+ onChange: r[21] || (r[21] = (n) => l(w).toggleHierarchy(n.target.checked))
1040
1042
  }, null, 40, pa),
1041
1043
  k(t(e.messages.enabled), 1)
1042
1044
  ]),
@@ -1050,7 +1052,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1050
1052
  disabled: e.readonly,
1051
1053
  placeholder: "(空)"
1052
1054
  }, null, 8, et), [
1053
- [z, l(h).hierarchy.emptyLabel]
1055
+ [q, l(h).hierarchy.emptyLabel]
1054
1056
  ])
1055
1057
  ]),
1056
1058
  (s(), d(C, null, x(["row", "column"], (n) => a("fieldset", {
@@ -1068,7 +1070,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1068
1070
  "aria-label": `${b} · ${e.messages.matrixSort}`,
1069
1071
  value: l(h).hierarchy[n]?.sort?.[o] ?? "source",
1070
1072
  disabled: e.readonly,
1071
- onChange: (f) => l(V).setDimensionSort(n, o, f.target.value)
1073
+ onChange: (f) => l(w).setDimensionSort(n, o, f.target.value)
1072
1074
  }, [
1073
1075
  a("option", at, t(e.messages.matrixSourceOrder), 1),
1074
1076
  a("option", tt, t(e.messages.matrixAscending), 1),
@@ -1080,13 +1082,13 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1080
1082
  type: "button",
1081
1083
  "aria-label": `${b} · ${e.messages.moveUp}`,
1082
1084
  disabled: e.readonly || o === 0,
1083
- onClick: (f) => l(V).moveDimension(n === "row" ? "rowFields" : "columnFields", o, -1)
1085
+ onClick: (f) => l(w).moveDimension(n === "row" ? "rowFields" : "columnFields", o, -1)
1084
1086
  }, "↑", 8, it),
1085
1087
  a("button", {
1086
1088
  type: "button",
1087
1089
  "aria-label": `${b} · ${e.messages.moveDown}`,
1088
1090
  disabled: e.readonly || o === l(h)[n === "row" ? "rowFields" : "columnFields"].length - 1,
1089
- onClick: (f) => l(V).moveDimension(n === "row" ? "rowFields" : "columnFields", o, 1)
1091
+ onClick: (f) => l(w).moveDimension(n === "row" ? "rowFields" : "columnFields", o, 1)
1090
1092
  }, "↓", 8, st)
1091
1093
  ]),
1092
1094
  o < l(h)[n === "row" ? "rowFields" : "columnFields"].length - 1 ? (s(), d("label", dt, [
@@ -1094,7 +1096,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1094
1096
  type: "checkbox",
1095
1097
  checked: l(h).hierarchy[n]?.subtotals?.includes(o + 1) ?? !1,
1096
1098
  disabled: e.readonly,
1097
- onChange: (f) => l(V).toggleMatrixSubtotal(n, o + 1, f.target.checked)
1099
+ onChange: (f) => l(w).toggleMatrixSubtotal(n, o + 1, f.target.checked)
1098
1100
  }, null, 40, ot),
1099
1101
  k(t(e.messages.matrixPrefixSubtotal), 1)
1100
1102
  ])) : E("", !0)
@@ -1115,7 +1117,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1115
1117
  placeholder: "40"
1116
1118
  }, null, 8, rt), [
1117
1119
  [
1118
- z,
1120
+ q,
1119
1121
  l(h).rowWidthMm,
1120
1122
  void 0,
1121
1123
  { number: !0 }
@@ -1132,7 +1134,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1132
1134
  placeholder: "28"
1133
1135
  }, null, 8, ct), [
1134
1136
  [
1135
- z,
1137
+ q,
1136
1138
  l(h).columnWidthMm,
1137
1139
  void 0,
1138
1140
  { number: !0 }
@@ -1148,21 +1150,21 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1148
1150
  type: "button",
1149
1151
  disabled: e.readonly,
1150
1152
  onClick: r[25] || (r[25] = //@ts-ignore
1151
- (...n) => l(V).checkMatrix && l(V).checkMatrix(...n))
1153
+ (...n) => l(w).checkMatrix && l(w).checkMatrix(...n))
1152
1154
  }, t(e.messages.check), 9, vt)) : E("", !0),
1153
1155
  l(m) && e.mode === "tree" ? (s(), d("button", {
1154
1156
  key: 1,
1155
1157
  type: "button",
1156
1158
  disabled: e.readonly,
1157
1159
  onClick: r[26] || (r[26] = //@ts-ignore
1158
- (...n) => l(V).checkTree && l(V).checkTree(...n))
1160
+ (...n) => l(w).checkTree && l(w).checkTree(...n))
1159
1161
  }, t(e.messages.check), 9, bt)) : E("", !0),
1160
1162
  a("button", {
1161
1163
  type: "button",
1162
1164
  class: "mr-data-layout__primary",
1163
1165
  disabled: e.readonly,
1164
1166
  onClick: r[27] || (r[27] = //@ts-ignore
1165
- (...n) => l(V).apply && l(V).apply(...n))
1167
+ (...n) => l(w).apply && l(w).apply(...n))
1166
1168
  }, t(e.messages.apply), 9, gt)
1167
1169
  ]),
1168
1170
  l(W) ? (s(), d("div", yt, [
@@ -1203,32 +1205,32 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1203
1205
  },
1204
1206
  emits: ["update:modelValue"],
1205
1207
  setup(e, { emit: A }) {
1206
- const $ = e, J = A, V = be(), m = j(() => "op" in $.modelValue ? V.functions.find((r) => r.name === $.modelValue.op) : void 0), i = j(
1208
+ const $ = e, J = A, w = be(), m = j(() => "op" in $.modelValue ? w.functions.find((r) => r.name === $.modelValue.op) : void 0), i = j(
1207
1209
  () => "aggregate" in $.modelValue ? "aggregate" : "field" in $.modelValue ? "field" : "value" in $.modelValue ? "constant" : "operation"
1208
1210
  ), h = G("text");
1209
- te(
1211
+ ne(
1210
1212
  () => $.modelValue,
1211
1213
  (r) => {
1212
1214
  "value" in r && (h.value = r.value === null ? "null" : typeof r.value == "string" ? "text" : typeof r.value);
1213
1215
  },
1214
1216
  { immediate: !0 }
1215
1217
  );
1216
- function w(r) {
1218
+ function V(r) {
1217
1219
  $.readonly || J("update:modelValue", r);
1218
1220
  }
1219
1221
  function S(r) {
1220
- w(r === "aggregate" ? { aggregate: "sum", field: $.fields[0]?.field ?? "" } : r === "field" ? { field: $.fields[0]?.field ?? "" } : r === "constant" ? { value: "" } : {
1222
+ V(r === "aggregate" ? { aggregate: "sum", field: $.fields[0]?.field ?? "" } : r === "field" ? { field: $.fields[0]?.field ?? "" } : r === "constant" ? { value: "" } : {
1221
1223
  op: "add",
1222
1224
  args: [{ field: $.fields[0]?.field ?? "" }, { value: 0 }]
1223
1225
  });
1224
1226
  }
1225
1227
  function U(r) {
1226
- const n = r, b = "args" in $.modelValue ? $.modelValue.args : [{ value: 0 }, { value: 0 }], o = V.functions.find((O) => O.name === n), f = [...b.slice(0, o.maxArgs)];
1228
+ const n = r, b = "args" in $.modelValue ? $.modelValue.args : [{ value: 0 }, { value: 0 }], o = w.functions.find((O) => O.name === n), f = [...b.slice(0, o.maxArgs)];
1227
1229
  for (; f.length < o.minArgs; ) f.push({ value: 0 });
1228
- w({ op: n, args: f, ...n === "if" ? { condition: "args" in $.modelValue && $.modelValue.condition ? $.modelValue.condition : { field: $.fields[0]?.field ?? "", op: ">", value: 0 } } : {} });
1230
+ V({ op: n, args: f, ...n === "if" ? { condition: "args" in $.modelValue && $.modelValue.condition ? $.modelValue.condition : { field: $.fields[0]?.field ?? "", op: ">", value: 0 } } : {} });
1229
1231
  }
1230
1232
  function T(r, n) {
1231
- "args" in $.modelValue && w({
1233
+ "args" in $.modelValue && V({
1232
1234
  ...$.modelValue,
1233
1235
  args: $.modelValue.args.map(
1234
1236
  (b, o) => o === r ? n : b
@@ -1238,20 +1240,20 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1238
1240
  function M(r) {
1239
1241
  if (!("args" in $.modelValue)) return;
1240
1242
  const n = r === void 0 ? [...$.modelValue.args, { value: 0 }] : $.modelValue.args.filter((b, o) => o !== r);
1241
- w({ ...$.modelValue, args: n });
1243
+ V({ ...$.modelValue, args: n });
1242
1244
  }
1243
1245
  function W(r) {
1244
- h.value = r, w({
1246
+ h.value = r, V({
1245
1247
  value: r === "null" ? null : r === "boolean" ? !1 : r === "number" ? 0 : ""
1246
1248
  });
1247
1249
  }
1248
- function q(r) {
1249
- h.value === "number" ? r.trim() && Number.isFinite(Number(r)) && w({ value: Number(r) }) : w({ value: r });
1250
+ function z(r) {
1251
+ h.value === "number" ? r.trim() && Number.isFinite(Number(r)) && V({ value: Number(r) }) : V({ value: r });
1250
1252
  }
1251
1253
  function I(r, n) {
1252
1254
  if (!("aggregate" in $.modelValue)) return;
1253
1255
  const b = { ...$.modelValue, [r]: n };
1254
- r === "aggregate" && (b.aggregate = n), r === "field" && !n && delete b.field, w(b);
1256
+ r === "aggregate" && (b.aggregate = n), r === "field" && !n && delete b.field, V(b);
1255
1257
  }
1256
1258
  return (r, n) => {
1257
1259
  const b = ye("ReportExpressionEditor", !0);
@@ -1275,7 +1277,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1275
1277
  value: e.modelValue.field,
1276
1278
  disabled: e.readonly,
1277
1279
  "aria-label": e.messages.field,
1278
- onChange: n[1] || (n[1] = (o) => w({ field: o.target.value }))
1280
+ onChange: n[1] || (n[1] = (o) => V({ field: o.target.value }))
1279
1281
  }, [
1280
1282
  (s(!0), d(C, null, x(e.fields, (o) => (s(), d("option", {
1281
1283
  key: o.field,
@@ -1288,7 +1290,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1288
1290
  "aria-label": e.messages.operation,
1289
1291
  onChange: n[2] || (n[2] = (o) => U(o.target.value))
1290
1292
  }, [
1291
- (s(!0), d(C, null, x(l(V).operations, (o) => (s(), d("option", {
1293
+ (s(!0), d(C, null, x(l(w).operations, (o) => (s(), d("option", {
1292
1294
  key: o,
1293
1295
  value: o
1294
1296
  }, t(e.messages[o]), 9, xt))), 128))
@@ -1299,7 +1301,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1299
1301
  "aria-label": e.messages.aggregate,
1300
1302
  onChange: n[3] || (n[3] = (o) => I("aggregate", o.target.value))
1301
1303
  }, [
1302
- (s(!0), d(C, null, x(l(V).aggregates, (o) => (s(), d("option", {
1304
+ (s(!0), d(C, null, x(l(w).aggregates, (o) => (s(), d("option", {
1303
1305
  key: o,
1304
1306
  value: o
1305
1307
  }, t(e.messages[o]), 9, Rt))), 128))
@@ -1351,7 +1353,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1351
1353
  value: String(e.modelValue.value),
1352
1354
  disabled: e.readonly,
1353
1355
  "aria-label": e.messages.constant,
1354
- onChange: n[7] || (n[7] = (o) => w({
1356
+ onChange: n[7] || (n[7] = (o) => V({
1355
1357
  value: o.target.value === "true"
1356
1358
  }))
1357
1359
  }, [
@@ -1363,7 +1365,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1363
1365
  value: e.modelValue.value ?? "",
1364
1366
  disabled: e.readonly,
1365
1367
  "aria-label": e.messages.constant,
1366
- onInput: n[8] || (n[8] = (o) => q(o.target.value))
1368
+ onInput: n[8] || (n[8] = (o) => z(o.target.value))
1367
1369
  }, null, 40, zt)) : E("", !0)
1368
1370
  ], 64)) : "args" in e.modelValue ? (s(), d(C, { key: 2 }, [
1369
1371
  e.modelValue.op === "if" && e.modelValue.condition ? (s(), fe(we, {
@@ -1372,7 +1374,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1372
1374
  fields: e.fields,
1373
1375
  messages: e.messages,
1374
1376
  readonly: e.readonly,
1375
- "onUpdate:modelValue": n[9] || (n[9] = (o) => w({ ...e.modelValue, condition: o }))
1377
+ "onUpdate:modelValue": n[9] || (n[9] = (o) => V({ ...e.modelValue, condition: o }))
1376
1378
  }, null, 8, ["model-value", "fields", "messages", "readonly"])) : E("", !0),
1377
1379
  a("small", qt, t(m.value?.example), 1),
1378
1380
  (s(!0), d(C, null, x(e.modelValue.args, (o, f) => (s(), d("div", {
@@ -1410,11 +1412,11 @@ function pt(e, A) {
1410
1412
  const $ = j(() => ({
1411
1413
  ...Be,
1412
1414
  ...e.messages
1413
- })), J = G("computations"), V = G(""), m = G(""), i = G({
1415
+ })), J = G("computations"), w = G(""), m = G(""), i = G({
1414
1416
  field: "",
1415
1417
  expression: { field: "" },
1416
1418
  scope: "row"
1417
- }), h = G([]), w = G(0), S = G(""), U = G(-1), T = G("style"), M = G({ field: "", op: ">", value: 0 }), W = G(null), q = j(() => W.value ?? M.value), I = G({
1419
+ }), h = G([]), V = G(0), S = G(""), U = G(-1), T = G("style"), M = G({ field: "", op: ">", value: 0 }), W = G(null), z = j(() => W.value ?? M.value), I = G({
1418
1420
  color: "#b91c1c",
1419
1421
  backgroundColor: "#fff1f2",
1420
1422
  bold: !1
@@ -1433,10 +1435,10 @@ function pt(e, A) {
1433
1435
  ))
1434
1436
  g.has(y) || g.set(y, y);
1435
1437
  return [...g].map(([y, K]) => ({ field: y, label: K }));
1436
- }), le = j(() => h.value[w.value]), p = j(
1438
+ }), le = j(() => h.value[V.value]), p = j(
1437
1439
  () => e.list.columns.find((g) => g.field === S.value)
1438
- ), ne = j(() => Te(D()));
1439
- function ie() {
1440
+ ), ie = j(() => Te(D()));
1441
+ function ae() {
1440
1442
  if (_ === JSON.stringify(e.list)) {
1441
1443
  _ = void 0;
1442
1444
  return;
@@ -1445,11 +1447,11 @@ function pt(e, A) {
1445
1447
  e.list.groups ?? (e.list.groupBy ? [e.list.groupBy] : [])
1446
1448
  );
1447
1449
  for (const g of h.value) for (const y of g.aggregates ?? []) y.numeric ??= "number";
1448
- e.list.columns.some((g) => g.field === S.value) || (S.value = e.list.columns[0]?.field ?? ""), V.value = "", r.value = [], v(m.value), ge(-1), b.accept(), X = !1;
1450
+ e.list.columns.some((g) => g.field === S.value) || (S.value = e.list.columns[0]?.field ?? ""), w.value = "", r.value = [], v(m.value), ge(-1), b.accept(), X = !1;
1449
1451
  }
1450
- te(() => e.list, ie, { immediate: !0 }), te(i, () => {
1452
+ ne(() => e.list, ae, { immediate: !0 }), ne(i, () => {
1451
1453
  r.value = [];
1452
- }, { deep: !0 }), te(() => e.datasets, () => {
1454
+ }, { deep: !0 }), ne(() => e.datasets, () => {
1453
1455
  r.value = [];
1454
1456
  }, { deep: !0 });
1455
1457
  function v(g) {
@@ -1459,7 +1461,7 @@ function pt(e, A) {
1459
1461
  expression: { field: Y.value[0]?.field ?? "" },
1460
1462
  scope: "row"
1461
1463
  }
1462
- ), i.value.numeric ??= "number", r.value = [], V.value = "", n.accept();
1464
+ ), i.value.numeric ??= "number", r.value = [], w.value = "", n.accept();
1463
1465
  const y = f.value.get(g);
1464
1466
  if (y) {
1465
1467
  i.value = P(y);
@@ -1484,11 +1486,11 @@ function pt(e, A) {
1484
1486
  }
1485
1487
  ]
1486
1488
  });
1487
- return y.ok ? (V.value = "", _ = JSON.stringify(g), A(g), !0) : (V.value = y.errors.map((K) => K.message).slice(0, 3).join(";"), !1);
1489
+ return y.ok ? (w.value = "", _ = JSON.stringify(g), A(g), !0) : (w.value = y.errors.map((K) => K.message).slice(0, 3).join(";"), !1);
1488
1490
  }
1489
1491
  function N() {
1490
1492
  if (!i.value.field.trim()) {
1491
- V.value = $.value.missingTarget;
1493
+ w.value = $.value.missingTarget;
1492
1494
  return;
1493
1495
  }
1494
1496
  const g = P(e.list);
@@ -1519,10 +1521,10 @@ function pt(e, A) {
1519
1521
  }
1520
1522
  }
1521
1523
  function u() {
1522
- r.value = [], V.value = "";
1524
+ r.value = [], w.value = "";
1523
1525
  const g = e.datasets?.[e.list.dataset];
1524
1526
  if (!g?.length) {
1525
- V.value = $.value.noData;
1527
+ w.value = $.value.noData;
1526
1528
  return;
1527
1529
  }
1528
1530
  try {
@@ -1536,7 +1538,7 @@ function pt(e, A) {
1536
1538
  value: K[i.value.field]
1537
1539
  }));
1538
1540
  } catch (y) {
1539
- V.value = y instanceof Error ? y.message : String(y);
1541
+ w.value = y instanceof Error ? y.message : String(y);
1540
1542
  }
1541
1543
  }
1542
1544
  function H(g) {
@@ -1552,19 +1554,19 @@ function pt(e, A) {
1552
1554
  subtotalLabel: $.value.subtotalLabel,
1553
1555
  aggregates: [],
1554
1556
  keepWithNext: !0
1555
- }), w.value = h.value.length - 1;
1557
+ }), V.value = h.value.length - 1;
1556
1558
  }
1557
1559
  function Ue(g) {
1558
- const y = w.value, K = y + g;
1560
+ const y = V.value, K = y + g;
1559
1561
  K < 0 || K >= h.value.length || ([h.value[y], h.value[K]] = [
1560
1562
  h.value[K],
1561
1563
  h.value[y]
1562
- ], w.value = K);
1564
+ ], V.value = K);
1563
1565
  }
1564
1566
  function Fe() {
1565
- h.value.splice(w.value, 1), w.value = Math.max(
1567
+ h.value.splice(V.value, 1), V.value = Math.max(
1566
1568
  0,
1567
- Math.min(w.value, h.value.length - 1)
1569
+ Math.min(V.value, h.value.length - 1)
1568
1570
  );
1569
1571
  }
1570
1572
  function Se() {
@@ -1609,22 +1611,22 @@ function pt(e, A) {
1609
1611
  function Ne(g = !1) {
1610
1612
  const y = P(e.list), K = y.columns.find((Q) => Q.field === S.value);
1611
1613
  if (!K) {
1612
- V.value = $.value.noSelection;
1614
+ w.value = $.value.noSelection;
1613
1615
  return;
1614
1616
  }
1615
1617
  if (T.value === "rowVisibility")
1616
- g ? delete y.rowVisibleWhen : y.rowVisibleWhen = P(q.value);
1618
+ g ? delete y.rowVisibleWhen : y.rowVisibleWhen = P(z.value);
1617
1619
  else if (T.value === "cell")
1618
- g ? delete K.visibleWhen : K.visibleWhen = P(q.value);
1620
+ g ? delete K.visibleWhen : K.visibleWhen = P(z.value);
1619
1621
  else if (K.rules ??= [], g && U.value >= 0)
1620
1622
  K.rules.splice(U.value, 1);
1621
1623
  else {
1622
1624
  if (g) return;
1623
1625
  U.value < 0 ? K.rules.push({
1624
- when: P(q.value),
1626
+ when: P(z.value),
1625
1627
  style: { ...I.value }
1626
1628
  }) : K.rules[U.value] = {
1627
- when: P(q.value),
1629
+ when: P(z.value),
1628
1630
  style: { ...I.value }
1629
1631
  };
1630
1632
  }
@@ -1633,7 +1635,9 @@ function pt(e, A) {
1633
1635
  Q.delete(Z), O.value = Q, o.accept();
1634
1636
  }
1635
1637
  }
1636
- he({ key: () => e.recoveryKey ?? "rules:0:0", baseline: () => JSON.stringify(e.list), pending: () => ee.value, snapshot: () => JSON.stringify(Re()), restore(g) {
1638
+ he({ key: () => e.recoveryKey ?? "rules:0:0", baseline: () => JSON.stringify(e.list), pending: () => ee.value, reset: () => {
1639
+ _ = void 0, ae();
1640
+ }, snapshot: () => JSON.stringify(Re()), restore(g) {
1637
1641
  const y = JSON.parse(g);
1638
1642
  i.value = y.formula, h.value = y.groups, M.value = y.when, W.value = y.composedWhen, I.value = y.style, m.value = y.selectedComputed, S.value = y.column, U.value = y.conditionIndex, Z = y.conditionKey, T.value = y.effect, J.value = y.tab, f.value = new Map(y.computedDrafts), O.value = new Map(y.conditionDrafts), n.baseline.value = y.formulaBaseline, b.baseline.value = y.groupBaseline, o.baseline.value = y.conditionBaseline;
1639
1643
  } });
@@ -1648,21 +1652,21 @@ function pt(e, A) {
1648
1652
  fields: Y,
1649
1653
  formula: i,
1650
1654
  groups: h,
1651
- groupIndex: w,
1655
+ groupIndex: V,
1652
1656
  currentGroup: le,
1653
1657
  column: S,
1654
1658
  currentColumn: p,
1655
1659
  conditionIndex: U,
1656
1660
  effect: T,
1657
1661
  when: M,
1658
- condition: q,
1662
+ condition: z,
1659
1663
  setCondition(g) {
1660
1664
  "field" in g ? (M.value = g, W.value = null) : W.value = g;
1661
1665
  },
1662
1666
  style: I,
1663
- error: V,
1667
+ error: w,
1664
1668
  preview: r,
1665
- diagnostics: ne,
1669
+ diagnostics: ie,
1666
1670
  selectedComputed: m,
1667
1671
  loadComputed: v,
1668
1672
  applyComputed: N,
@@ -1680,7 +1684,7 @@ function pt(e, A) {
1680
1684
  applyCondition: Ne,
1681
1685
  applyLayout: R,
1682
1686
  resetDraft: () => {
1683
- _ = void 0, ie();
1687
+ _ = void 0, ae();
1684
1688
  }
1685
1689
  };
1686
1690
  }
@@ -1728,16 +1732,16 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1728
1732
  },
1729
1733
  emits: ["change", "dirty"],
1730
1734
  setup(e, { expose: A, emit: $ }) {
1731
- const J = e, V = $, m = pt(J, (N) => V("change", N)), {
1735
+ const J = e, w = $, m = pt(J, (N) => w("change", N)), {
1732
1736
  m: i,
1733
1737
  tab: h,
1734
- fields: w,
1738
+ fields: V,
1735
1739
  formula: S,
1736
1740
  groups: U,
1737
1741
  groupIndex: T,
1738
1742
  currentGroup: M,
1739
1743
  column: W,
1740
- currentColumn: q,
1744
+ currentColumn: z,
1741
1745
  conditionIndex: I,
1742
1746
  effect: r,
1743
1747
  condition: n,
@@ -1751,10 +1755,10 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1751
1755
  m.resetDraft(), X.value = {}, ee.value++;
1752
1756
  }
1753
1757
  const Y = j(() => m.pendingLocalChanges.value || Object.values(X.value).some(Boolean));
1754
- te([Y, m.draftSnapshot, X], () => V("dirty", Y.value), { immediate: !0, deep: !0, flush: "sync" }), A({ get pendingLocalChanges() {
1758
+ ne([Y, m.draftSnapshot, X], () => w("dirty", Y.value), { immediate: !0, deep: !0, flush: "sync" }), A({ get pendingLocalChanges() {
1755
1759
  return Y.value;
1756
1760
  } });
1757
- const le = Ie(J, m.formula, i), { query: p, matches: ne, fieldWindow: ie, expression: v, sources: D } = le, R = be();
1761
+ const le = Ie(J, m.formula, i), { query: p, matches: ie, fieldWindow: ae, expression: v, sources: D } = le, R = be();
1758
1762
  return (N, c) => (s(), d("section", {
1759
1763
  class: "mr-rule-editor",
1760
1764
  "aria-label": l(i).settings
@@ -1800,11 +1804,11 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1800
1804
  type: "search",
1801
1805
  "aria-label": l(i).searchFields
1802
1806
  }, null, 8, on), [
1803
- [z, l(p)]
1807
+ [q, l(p)]
1804
1808
  ])
1805
1809
  ]),
1806
1810
  a("div", un, [
1807
- (s(!0), d(C, null, x(l(ie), (u) => (s(), d("button", {
1811
+ (s(!0), d(C, null, x(l(ae), (u) => (s(), d("button", {
1808
1812
  key: u.field,
1809
1813
  type: "button",
1810
1814
  disabled: e.readonly || l(h) !== "computations",
@@ -1816,7 +1820,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1816
1820
  a("small", null, t(u.meta), 1)
1817
1821
  ], 8, rn))), 128))
1818
1822
  ]),
1819
- l(ne).length > 50 ? (s(), d("small", cn, t(l(i).shown) + " 50 / " + t(l(ne).length), 1)) : E("", !0)
1823
+ l(ie).length > 50 ? (s(), d("small", cn, t(l(i).shown) + " 50 / " + t(l(ie).length), 1)) : E("", !0)
1820
1824
  ])
1821
1825
  ]),
1822
1826
  l(h) === "computations" ? (s(), d("div", mn, [
@@ -1843,7 +1847,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1843
1847
  disabled: e.readonly,
1844
1848
  autocomplete: "off"
1845
1849
  }, null, 8, yn), [
1846
- [z, l(S).field]
1850
+ [q, l(S).field]
1847
1851
  ])
1848
1852
  ]),
1849
1853
  a("div", fn, [
@@ -1878,7 +1882,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1878
1882
  ]),
1879
1883
  l(S).scope === "group" ? (s(), d("fieldset", Cn, [
1880
1884
  a("legend", null, t(l(i).groupFields), 1),
1881
- (s(!0), d(C, null, x(l(w), (u) => (s(), d("label", {
1885
+ (s(!0), d(C, null, x(l(V), (u) => (s(), d("label", {
1882
1886
  key: u.field
1883
1887
  }, [
1884
1888
  a("input", {
@@ -1896,7 +1900,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1896
1900
  typeof l(S).expression != "string" ? (s(), fe(Yt, {
1897
1901
  key: 1,
1898
1902
  "model-value": l(S).expression,
1899
- fields: l(w),
1903
+ fields: l(V),
1900
1904
  messages: l(i),
1901
1905
  readonly: e.readonly,
1902
1906
  "onUpdate:modelValue": l(m).setExpression
@@ -1915,7 +1919,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1915
1919
  disabled: e.readonly
1916
1920
  }, null, 8, Mn), [
1917
1921
  [
1918
- z,
1922
+ q,
1919
1923
  l(S).digits,
1920
1924
  void 0,
1921
1925
  { number: !0 }
@@ -2012,7 +2016,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2012
2016
  "onUpdate:modelValue": c[13] || (c[13] = (u) => l(M).field = u),
2013
2017
  disabled: e.readonly
2014
2018
  }, [
2015
- (s(!0), d(C, null, x(l(w), (u) => (s(), d("option", {
2019
+ (s(!0), d(C, null, x(l(V), (u) => (s(), d("option", {
2016
2020
  key: u.field,
2017
2021
  value: u.field
2018
2022
  }, t(u.label), 9, Zn))), 128))
@@ -2029,7 +2033,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2029
2033
  disabled: e.readonly,
2030
2034
  placeholder: "{value}"
2031
2035
  }, null, 8, Xn), [
2032
- [z, l(M).headerTemplate]
2036
+ [q, l(M).headerTemplate]
2033
2037
  ])
2034
2038
  ]),
2035
2039
  a("label", null, [
@@ -2039,7 +2043,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2039
2043
  "onUpdate:modelValue": c[15] || (c[15] = (u) => l(M).subtotalLabel = u),
2040
2044
  disabled: e.readonly
2041
2045
  }, null, 8, Yn), [
2042
- [z, l(M).subtotalLabel]
2046
+ [q, l(M).subtotalLabel]
2043
2047
  ])
2044
2048
  ])
2045
2049
  ]),
@@ -2077,7 +2081,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2077
2081
  "onUpdate:modelValue": (B) => u.field = B,
2078
2082
  disabled: e.readonly
2079
2083
  }, [
2080
- (s(!0), d(C, null, x(l(w), (B) => (s(), d("option", {
2084
+ (s(!0), d(C, null, x(l(V), (B) => (s(), d("option", {
2081
2085
  key: B.field,
2082
2086
  value: B.field
2083
2087
  }, t(B.label), 9, ti))), 128))
@@ -2109,7 +2113,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2109
2113
  disabled: e.readonly
2110
2114
  }, [
2111
2115
  a("option", di, t(u.field), 1),
2112
- (s(!0), d(C, null, x(l(w), (B) => (s(), d("option", {
2116
+ (s(!0), d(C, null, x(l(V), (B) => (s(), d("option", {
2113
2117
  key: B.field,
2114
2118
  value: B.field
2115
2119
  }, t(B.label), 9, oi))), 128))
@@ -2124,7 +2128,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2124
2128
  "onUpdate:modelValue": (B) => u.weightField = B,
2125
2129
  disabled: e.readonly
2126
2130
  }, [
2127
- (s(!0), d(C, null, x(l(w), (B) => (s(), d("option", {
2131
+ (s(!0), d(C, null, x(l(V), (B) => (s(), d("option", {
2128
2132
  key: B.field,
2129
2133
  value: B.field
2130
2134
  }, t(B.label), 9, ci))), 128))
@@ -2227,7 +2231,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2227
2231
  ))
2228
2232
  }, [
2229
2233
  a("option", Ei, "+ " + t(l(i).newCondition), 1),
2230
- (s(!0), d(C, null, x(l(q)?.rules, (u, H) => (s(), d("option", {
2234
+ (s(!0), d(C, null, x(l(z)?.rules, (u, H) => (s(), d("option", {
2231
2235
  key: H,
2232
2236
  value: H
2233
2237
  }, t(H + 1) + " · " + t("field" in u.when ? u.when.field : l(i).conditionGroup), 9, Ki))), 128))
@@ -2235,7 +2239,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2235
2239
  ])) : E("", !0),
2236
2240
  re(we, {
2237
2241
  "model-value": l(n),
2238
- fields: l(w),
2242
+ fields: l(V),
2239
2243
  messages: l(i),
2240
2244
  readonly: e.readonly,
2241
2245
  "onUpdate:modelValue": l(m).setCondition
@@ -2249,7 +2253,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2249
2253
  type: "color",
2250
2254
  disabled: e.readonly
2251
2255
  }, null, 8, Li), [
2252
- [z, l(b).color]
2256
+ [q, l(b).color]
2253
2257
  ])
2254
2258
  ]),
2255
2259
  a("label", null, [
@@ -2259,7 +2263,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2259
2263
  type: "color",
2260
2264
  disabled: e.readonly
2261
2265
  }, null, 8, Bi), [
2262
- [z, l(b).backgroundColor]
2266
+ [q, l(b).backgroundColor]
2263
2267
  ])
2264
2268
  ])
2265
2269
  ]),