@agile-team/mach-report 2.9.0 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ function he(e, J) {
14
14
  rowFields: [],
15
15
  columnFields: [],
16
16
  measures: []
17
- }), v = A(), y = Z(() => [
17
+ }), v = A(), f = Z(() => [
18
18
  .../* @__PURE__ */ new Set([
19
19
  ...Object.keys(e.datasets ?? {}),
20
20
  ...Object.keys(e.datasetSchemas ?? {})
@@ -22,9 +22,9 @@ function he(e, J) {
22
22
  ]), C = Z(
23
23
  () => N(e.list.dataset, e.datasetSchema)
24
24
  ), G = Z(() => N(c.value.dataset));
25
- function N(g, M) {
25
+ function N(g, U) {
26
26
  const F = /* @__PURE__ */ new Map();
27
- for (const T of (M ?? e.datasetSchemas?.[g])?.fields ?? [])
27
+ for (const T of (U ?? e.datasetSchemas?.[g])?.fields ?? [])
28
28
  F.set(T.field, T.label ?? T.field);
29
29
  const B = e.datasets?.[g]?.[0];
30
30
  for (const T of Object.keys(B ?? {}))
@@ -34,9 +34,9 @@ function he(e, J) {
34
34
  F.has(T.field) || F.set(T.field, T.header || T.field);
35
35
  return [...F].map(([T, m]) => ({ field: T, label: m }));
36
36
  }
37
- function S() {
37
+ function M() {
38
38
  x.value = e.mode === "detail" ? !!e.list.detail : !!e.list.matrix;
39
- const g = y.value.find((M) => M !== e.list.dataset) ?? "";
39
+ const g = f.value.find((U) => U !== e.list.dataset) ?? "";
40
40
  c.value = P(
41
41
  e.list.detail ?? {
42
42
  dataset: g,
@@ -53,14 +53,14 @@ function he(e, J) {
53
53
  measures: [],
54
54
  totals: !0
55
55
  }
56
- ), O.value = "", v.value = void 0;
56
+ ), i.value.measures = i.value.measures.map((U) => ({ ...U, numeric: U.numeric ?? "number" })), O.value = "", v.value = void 0;
57
57
  }
58
- Y(() => [e.list, e.mode], S, { immediate: !0 });
58
+ Y(() => [e.list, e.mode], M, { immediate: !0 });
59
59
  function K(g) {
60
60
  c.value.dataset = g, c.value.columns = [], c.value.foreignKey = G.value[0]?.field ?? "", c.value.rowKey = e.datasetSchemas?.[g]?.rowKey;
61
61
  }
62
- function j(g, M) {
63
- if (M && !c.value.columns.some((F) => F.field === g)) {
62
+ function j(g, U) {
63
+ if (U && !c.value.columns.some((F) => F.field === g)) {
64
64
  const F = e.datasetSchemas?.[c.value.dataset]?.fields.find((B) => B.field === g);
65
65
  c.value.columns.push({
66
66
  field: g,
@@ -70,23 +70,23 @@ function he(e, J) {
70
70
  semanticRole: F?.semanticRole,
71
71
  editable: !1
72
72
  });
73
- } else M || (c.value.columns = c.value.columns.filter(
73
+ } else U || (c.value.columns = c.value.columns.filter(
74
74
  (F) => F.field !== g
75
75
  ));
76
76
  }
77
- function L(g, M, F) {
77
+ function L(g, U, F) {
78
78
  const B = i.value[g];
79
- i.value[g] = F ? [.../* @__PURE__ */ new Set([...B, M])] : B.filter((T) => T !== M);
79
+ i.value[g] = F ? [.../* @__PURE__ */ new Set([...B, U])] : B.filter((T) => T !== U);
80
80
  }
81
81
  function r() {
82
82
  i.value.measures = [
83
83
  ...i.value.measures,
84
- { field: C.value[0]?.field ?? "", op: "sum" }
84
+ { field: C.value[0]?.field ?? "", op: "sum", numeric: "number" }
85
85
  ];
86
86
  }
87
- function s(g) {
87
+ function d(g) {
88
88
  i.value.measures = i.value.measures.filter(
89
- (M, F) => F !== g
89
+ (U, F) => F !== g
90
90
  );
91
91
  }
92
92
  function V() {
@@ -94,14 +94,14 @@ function he(e, J) {
94
94
  try {
95
95
  const g = e.datasets?.[e.list.dataset] ?? [];
96
96
  if (!g.length) throw new Error(e.messages.noData);
97
- const M = be(g.slice(0, 1e3), {
97
+ const U = be(g.slice(0, 1e3), {
98
98
  ...i.value,
99
99
  maxInputRows: 1e3
100
100
  });
101
101
  v.value = {
102
- columns: M.columns.slice(0, 5).map((F) => F.header),
103
- rows: M.rows.slice(0, 5).map(
104
- (F) => M.columns.slice(0, 5).map((B) => F[B.field])
102
+ columns: U.columns.slice(0, 5).map((F) => F.header),
103
+ rows: U.rows.slice(0, 5).map(
104
+ (F) => U.columns.slice(0, 5).map((B) => F[B.field])
105
105
  )
106
106
  };
107
107
  } catch (g) {
@@ -117,7 +117,7 @@ function he(e, J) {
117
117
  enabled: x,
118
118
  detail: c,
119
119
  matrix: i,
120
- datasets: y,
120
+ datasets: f,
121
121
  sourceFields: C,
122
122
  childFields: G,
123
123
  error: O,
@@ -126,7 +126,7 @@ function he(e, J) {
126
126
  toggleChildColumn: j,
127
127
  toggleDimension: L,
128
128
  addMeasure: r,
129
- removeMeasure: s,
129
+ removeMeasure: d,
130
130
  checkMatrix: V,
131
131
  apply: u
132
132
  };
@@ -137,7 +137,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
137
137
  }, Ue = ["value"], Se = { class: "mr-data-layout__pair" }, Me = ["aria-label", "disabled"], Fe = ["value"], Ee = ["aria-label", "disabled"], Re = {
138
138
  value: "",
139
139
  disabled: ""
140
- }, Ke = ["value"], Ge = ["aria-label", "disabled"], De = { value: void 0 }, Ne = ["value"], Te = { class: "mr-data-layout__choices" }, Be = ["checked", "disabled", "onChange"], Ae = ["aria-label", "disabled"], Le = { class: "mr-data-layout__pair" }, We = ["aria-label", "disabled"], Ie = { value: "error" }, Oe = { value: "ignore" }, je = { class: "mr-data-layout__check" }, He = ["disabled"], Je = { class: "mr-data-layout__hint" }, Ze = ["checked", "disabled", "onChange"], ze = { class: "mr-data-layout__pair" }, qe = ["aria-label", "onUpdate:modelValue", "disabled"], Pe = ["value"], Qe = ["aria-label", "onUpdate:modelValue", "disabled"], Xe = ["value"], Ye = ["aria-label", "onUpdate:modelValue", "disabled", "placeholder"], _e = { key: 0 }, pe = ["aria-label", "onUpdate:modelValue", "disabled"], el = ["value"], ll = { class: "mr-data-layout__pair" }, al = ["aria-label", "onUpdate:modelValue", "disabled"], tl = { value: "number" }, dl = { value: "decimal" }, sl = ["aria-label", "onUpdate:modelValue", "disabled"], il = ["disabled", "onClick"], ol = ["disabled"], nl = { class: "mr-data-layout__check" }, ul = ["disabled"], rl = { class: "mr-data-layout__pair" }, ml = ["disabled"], cl = ["disabled"], bl = { class: "mr-data-layout__actions" }, vl = ["disabled"], gl = ["disabled"], yl = {
140
+ }, Ke = ["value"], Ge = ["aria-label", "disabled"], De = { value: void 0 }, Ne = ["value"], Te = { class: "mr-data-layout__choices" }, Be = ["checked", "disabled", "onChange"], Ae = ["aria-label", "disabled"], Le = { class: "mr-data-layout__pair" }, We = ["aria-label", "disabled"], Ie = { value: "error" }, Oe = { value: "ignore" }, je = { class: "mr-data-layout__check" }, He = ["disabled"], Je = { class: "mr-data-layout__hint" }, Ze = ["checked", "disabled", "onChange"], ze = { class: "mr-data-layout__pair" }, qe = ["aria-label", "onUpdate:modelValue", "disabled"], Pe = ["value"], Qe = ["aria-label", "onUpdate:modelValue", "disabled"], Xe = ["value"], Ye = ["aria-label", "onUpdate:modelValue", "disabled", "placeholder"], _e = { key: 0 }, pe = ["aria-label", "onUpdate:modelValue", "disabled"], el = ["value"], ll = { class: "mr-data-layout__pair" }, al = ["aria-label", "onUpdate:modelValue", "disabled"], tl = { value: "number" }, sl = { value: "decimal" }, dl = ["aria-label", "onUpdate:modelValue", "disabled"], il = ["disabled", "onClick"], ol = ["disabled"], nl = { class: "mr-data-layout__check" }, ul = ["disabled"], rl = { class: "mr-data-layout__pair" }, ml = ["disabled"], cl = ["disabled"], bl = { class: "mr-data-layout__actions" }, vl = ["disabled"], gl = ["disabled"], yl = {
141
141
  key: 2,
142
142
  class: "mr-data-layout__preview"
143
143
  }, fl = {
@@ -160,17 +160,17 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
160
160
  const x = e, O = J, c = he(x, (L) => O("change", L)), {
161
161
  enabled: i,
162
162
  detail: v,
163
- matrix: y,
163
+ matrix: f,
164
164
  datasets: C,
165
165
  sourceFields: G,
166
166
  childFields: N,
167
- error: S,
167
+ error: M,
168
168
  preview: K
169
169
  } = c, j = p();
170
170
  return (L, r) => (o(), n("div", ke, [
171
171
  a("label", Ve, [
172
172
  $(a("input", {
173
- "onUpdate:modelValue": r[0] || (r[0] = (s) => Q(i) ? i.value = s : null),
173
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => Q(i) ? i.value = d : null),
174
174
  type: "checkbox",
175
175
  disabled: e.readonly
176
176
  }, null, 8, $e), [
@@ -186,13 +186,13 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
186
186
  "aria-label": e.messages.childDataset,
187
187
  value: l(v).dataset,
188
188
  disabled: e.readonly,
189
- onChange: r[1] || (r[1] = (s) => l(c).chooseDataset(s.target.value))
189
+ onChange: r[1] || (r[1] = (d) => l(c).chooseDataset(d.target.value))
190
190
  }, [
191
191
  a("option", xe, t(e.messages.select), 1),
192
- (o(!0), n(k, null, w(l(C), (s) => (o(), n("option", {
193
- key: s,
194
- value: s
195
- }, t(s), 9, Ue))), 128))
192
+ (o(!0), n(k, null, w(l(C), (d) => (o(), n("option", {
193
+ key: d,
194
+ value: d
195
+ }, t(d), 9, Ue))), 128))
196
196
  ], 40, we)
197
197
  ]),
198
198
  a("div", Se, [
@@ -200,13 +200,13 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
200
200
  h(t(e.messages.parentKey), 1),
201
201
  $(a("select", {
202
202
  "aria-label": e.messages.parentKey,
203
- "onUpdate:modelValue": r[2] || (r[2] = (s) => l(v).parentKey = s),
203
+ "onUpdate:modelValue": r[2] || (r[2] = (d) => l(v).parentKey = d),
204
204
  disabled: e.readonly
205
205
  }, [
206
- (o(!0), n(k, null, w(l(G), (s) => (o(), n("option", {
207
- key: s.field,
208
- value: s.field
209
- }, t(s.label), 9, Fe))), 128))
206
+ (o(!0), n(k, null, w(l(G), (d) => (o(), n("option", {
207
+ key: d.field,
208
+ value: d.field
209
+ }, t(d.label), 9, Fe))), 128))
210
210
  ], 8, Me), [
211
211
  [D, l(v).parentKey]
212
212
  ])
@@ -215,14 +215,14 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
215
215
  h(t(e.messages.foreignKey), 1),
216
216
  $(a("select", {
217
217
  "aria-label": e.messages.foreignKey,
218
- "onUpdate:modelValue": r[3] || (r[3] = (s) => l(v).foreignKey = s),
218
+ "onUpdate:modelValue": r[3] || (r[3] = (d) => l(v).foreignKey = d),
219
219
  disabled: e.readonly
220
220
  }, [
221
221
  a("option", Re, t(e.messages.select), 1),
222
- (o(!0), n(k, null, w(l(N), (s) => (o(), n("option", {
223
- key: s.field,
224
- value: s.field
225
- }, t(s.label), 9, Ke))), 128))
222
+ (o(!0), n(k, null, w(l(N), (d) => (o(), n("option", {
223
+ key: d.field,
224
+ value: d.field
225
+ }, t(d.label), 9, Ke))), 128))
226
226
  ], 8, Ee), [
227
227
  [D, l(v).foreignKey]
228
228
  ])
@@ -232,40 +232,40 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
232
232
  h(t(e.messages.rowKey), 1),
233
233
  $(a("select", {
234
234
  "aria-label": e.messages.rowKey,
235
- "onUpdate:modelValue": r[4] || (r[4] = (s) => l(v).rowKey = s),
235
+ "onUpdate:modelValue": r[4] || (r[4] = (d) => l(v).rowKey = d),
236
236
  disabled: e.readonly
237
237
  }, [
238
238
  a("option", De, t(e.messages.noRowKey), 1),
239
- (o(!0), n(k, null, w(l(N), (s) => (o(), n("option", {
240
- key: s.field,
241
- value: s.field
242
- }, t(s.label), 9, Ne))), 128))
239
+ (o(!0), n(k, null, w(l(N), (d) => (o(), n("option", {
240
+ key: d.field,
241
+ value: d.field
242
+ }, t(d.label), 9, Ne))), 128))
243
243
  ], 8, Ge), [
244
244
  [D, l(v).rowKey]
245
245
  ])
246
246
  ]),
247
247
  a("fieldset", Te, [
248
248
  a("legend", null, t(e.messages.childColumns), 1),
249
- (o(!0), n(k, null, w(l(N), (s) => (o(), n("label", {
250
- key: s.field
249
+ (o(!0), n(k, null, w(l(N), (d) => (o(), n("label", {
250
+ key: d.field
251
251
  }, [
252
252
  a("input", {
253
253
  type: "checkbox",
254
- checked: l(v).columns.some((V) => V.field === s.field),
254
+ checked: l(v).columns.some((V) => V.field === d.field),
255
255
  disabled: e.readonly,
256
256
  onChange: (V) => l(c).toggleChildColumn(
257
- s.field,
257
+ d.field,
258
258
  V.target.checked
259
259
  )
260
260
  }, null, 40, Be),
261
- h(t(s.label), 1)
261
+ h(t(d.label), 1)
262
262
  ]))), 128))
263
263
  ]),
264
264
  a("label", null, [
265
265
  h(t(e.messages.title), 1),
266
266
  $(a("input", {
267
267
  "aria-label": e.messages.title,
268
- "onUpdate:modelValue": r[5] || (r[5] = (s) => l(v).label = s),
268
+ "onUpdate:modelValue": r[5] || (r[5] = (d) => l(v).label = d),
269
269
  disabled: e.readonly
270
270
  }, null, 8, Ae), [
271
271
  [H, l(v).label]
@@ -276,7 +276,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
276
276
  h(t(e.messages.unmatched), 1),
277
277
  $(a("select", {
278
278
  "aria-label": e.messages.unmatched,
279
- "onUpdate:modelValue": r[6] || (r[6] = (s) => l(v).unmatched = s),
279
+ "onUpdate:modelValue": r[6] || (r[6] = (d) => l(v).unmatched = d),
280
280
  disabled: e.readonly
281
281
  }, [
282
282
  a("option", Ie, t(e.messages.error), 1),
@@ -287,7 +287,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
287
287
  ]),
288
288
  a("label", je, [
289
289
  $(a("input", {
290
- "onUpdate:modelValue": r[7] || (r[7] = (s) => l(v).header = s),
290
+ "onUpdate:modelValue": r[7] || (r[7] = (d) => l(v).header = d),
291
291
  type: "checkbox",
292
292
  disabled: e.readonly
293
293
  }, null, 8, He), [
@@ -298,20 +298,20 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
298
298
  ])
299
299
  ], 64)) : l(i) ? (o(), n(k, { key: 1 }, [
300
300
  a("p", Je, t(e.messages.matrixHint), 1),
301
- (o(), n(k, null, w(["rowFields", "columnFields"], (s) => a("fieldset", {
302
- key: s,
301
+ (o(), n(k, null, w(["rowFields", "columnFields"], (d) => a("fieldset", {
302
+ key: d,
303
303
  class: "mr-data-layout__choices"
304
304
  }, [
305
- a("legend", null, t(e.messages[s]), 1),
305
+ a("legend", null, t(e.messages[d]), 1),
306
306
  (o(!0), n(k, null, w(l(G), (V) => (o(), n("label", {
307
307
  key: V.field
308
308
  }, [
309
309
  a("input", {
310
310
  type: "checkbox",
311
- checked: l(y)[s].includes(V.field),
311
+ checked: l(f)[d].includes(V.field),
312
312
  disabled: e.readonly,
313
313
  onChange: (u) => l(c).toggleDimension(
314
- s,
314
+ d,
315
315
  V.field,
316
316
  u.target.checked
317
317
  )
@@ -319,7 +319,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
319
319
  h(t(V.label), 1)
320
320
  ]))), 128))
321
321
  ])), 64)),
322
- (o(!0), n(k, null, w(l(y).measures, (s, V) => (o(), n("div", {
322
+ (o(!0), n(k, null, w(l(f).measures, (d, V) => (o(), n("div", {
323
323
  key: V,
324
324
  class: "mr-data-layout__measure"
325
325
  }, [
@@ -328,7 +328,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
328
328
  h(t(e.messages.measure), 1),
329
329
  $(a("select", {
330
330
  "aria-label": e.messages.measure,
331
- "onUpdate:modelValue": (u) => s.field = u,
331
+ "onUpdate:modelValue": (u) => d.field = u,
332
332
  disabled: e.readonly
333
333
  }, [
334
334
  (o(!0), n(k, null, w(l(G), (u) => (o(), n("option", {
@@ -336,14 +336,14 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
336
336
  value: u.field
337
337
  }, t(u.label), 9, Pe))), 128))
338
338
  ], 8, qe), [
339
- [D, s.field]
339
+ [D, d.field]
340
340
  ])
341
341
  ]),
342
342
  a("label", null, [
343
343
  h(t(e.messages.aggregate), 1),
344
344
  $(a("select", {
345
345
  "aria-label": e.messages.aggregate,
346
- "onUpdate:modelValue": (u) => s.op = u,
346
+ "onUpdate:modelValue": (u) => d.op = u,
347
347
  disabled: e.readonly
348
348
  }, [
349
349
  (o(!0), n(k, null, w(l(j).aggregates, (u) => (o(), n("option", {
@@ -351,7 +351,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
351
351
  value: u
352
352
  }, t(e.messages[u]), 9, Xe))), 128))
353
353
  ], 8, Qe), [
354
- [D, s.op]
354
+ [D, d.op]
355
355
  ])
356
356
  ])
357
357
  ]),
@@ -359,18 +359,18 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
359
359
  h(t(e.messages.measureLabel), 1),
360
360
  $(a("input", {
361
361
  "aria-label": e.messages.measureLabel,
362
- "onUpdate:modelValue": (u) => s.label = u,
362
+ "onUpdate:modelValue": (u) => d.label = u,
363
363
  disabled: e.readonly,
364
- placeholder: s.field
364
+ placeholder: d.field
365
365
  }, null, 8, Ye), [
366
- [H, s.label]
366
+ [H, d.label]
367
367
  ])
368
368
  ]),
369
- s.op === "weightedAvg" ? (o(), n("label", _e, [
369
+ d.op === "weightedAvg" ? (o(), n("label", _e, [
370
370
  h(t(e.messages.weight), 1),
371
371
  $(a("select", {
372
372
  "aria-label": e.messages.weight,
373
- "onUpdate:modelValue": (u) => s.weightField = u,
373
+ "onUpdate:modelValue": (u) => d.weightField = u,
374
374
  disabled: e.readonly
375
375
  }, [
376
376
  (o(!0), n(k, null, w(l(G), (u) => (o(), n("option", {
@@ -378,7 +378,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
378
378
  value: u.field
379
379
  }, t(u.label), 9, el))), 128))
380
380
  ], 8, pe), [
381
- [D, s.weightField]
381
+ [D, d.weightField]
382
382
  ])
383
383
  ])) : R("", !0),
384
384
  a("div", ll, [
@@ -386,28 +386,28 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
386
386
  h(t(e.messages.numeric), 1),
387
387
  $(a("select", {
388
388
  "aria-label": e.messages.numeric,
389
- "onUpdate:modelValue": (u) => s.numeric = u,
389
+ "onUpdate:modelValue": (u) => d.numeric = u,
390
390
  disabled: e.readonly
391
391
  }, [
392
392
  a("option", tl, t(e.messages.number), 1),
393
- a("option", dl, t(e.messages.decimal), 1)
393
+ a("option", sl, t(e.messages.decimal), 1)
394
394
  ], 8, al), [
395
- [D, s.numeric]
395
+ [D, d.numeric]
396
396
  ])
397
397
  ]),
398
398
  a("label", null, [
399
399
  h(t(e.messages.digits), 1),
400
400
  $(a("input", {
401
401
  "aria-label": e.messages.digits,
402
- "onUpdate:modelValue": (u) => s.digits = u,
402
+ "onUpdate:modelValue": (u) => d.digits = u,
403
403
  type: "number",
404
404
  min: "0",
405
405
  max: "100",
406
406
  disabled: e.readonly
407
- }, null, 8, sl), [
407
+ }, null, 8, dl), [
408
408
  [
409
409
  H,
410
- s.digits,
410
+ d.digits,
411
411
  void 0,
412
412
  { number: !0 }
413
413
  ]
@@ -422,17 +422,17 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
422
422
  ]))), 128)),
423
423
  a("button", {
424
424
  type: "button",
425
- disabled: e.readonly || l(y).measures.length >= 32,
425
+ disabled: e.readonly || l(f).measures.length >= 32,
426
426
  onClick: r[8] || (r[8] = //@ts-ignore
427
- (...s) => l(c).addMeasure && l(c).addMeasure(...s))
427
+ (...d) => l(c).addMeasure && l(c).addMeasure(...d))
428
428
  }, " + " + t(e.messages.addAggregate), 9, ol),
429
429
  a("label", nl, [
430
430
  $(a("input", {
431
- "onUpdate:modelValue": r[9] || (r[9] = (s) => l(y).totals = s),
431
+ "onUpdate:modelValue": r[9] || (r[9] = (d) => l(f).totals = d),
432
432
  type: "checkbox",
433
433
  disabled: e.readonly
434
434
  }, null, 8, ul), [
435
- [q, l(y).totals]
435
+ [q, l(f).totals]
436
436
  ]),
437
437
  h(t(e.messages.totals), 1)
438
438
  ]),
@@ -442,7 +442,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
442
442
  a("label", null, [
443
443
  h(t(e.messages.dimensionWidth), 1),
444
444
  $(a("input", {
445
- "onUpdate:modelValue": r[10] || (r[10] = (s) => l(y).rowWidthMm = s),
445
+ "onUpdate:modelValue": r[10] || (r[10] = (d) => l(f).rowWidthMm = d),
446
446
  type: "number",
447
447
  min: "1",
448
448
  disabled: e.readonly,
@@ -450,7 +450,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
450
450
  }, null, 8, ml), [
451
451
  [
452
452
  H,
453
- l(y).rowWidthMm,
453
+ l(f).rowWidthMm,
454
454
  void 0,
455
455
  { number: !0 }
456
456
  ]
@@ -459,7 +459,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
459
459
  a("label", null, [
460
460
  h(t(e.messages.measureWidth), 1),
461
461
  $(a("input", {
462
- "onUpdate:modelValue": r[11] || (r[11] = (s) => l(y).columnWidthMm = s),
462
+ "onUpdate:modelValue": r[11] || (r[11] = (d) => l(f).columnWidthMm = d),
463
463
  type: "number",
464
464
  min: "1",
465
465
  disabled: e.readonly,
@@ -467,7 +467,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
467
467
  }, null, 8, cl), [
468
468
  [
469
469
  H,
470
- l(y).columnWidthMm,
470
+ l(f).columnWidthMm,
471
471
  void 0,
472
472
  { number: !0 }
473
473
  ]
@@ -482,14 +482,14 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
482
482
  type: "button",
483
483
  disabled: e.readonly,
484
484
  onClick: r[12] || (r[12] = //@ts-ignore
485
- (...s) => l(c).checkMatrix && l(c).checkMatrix(...s))
485
+ (...d) => l(c).checkMatrix && l(c).checkMatrix(...d))
486
486
  }, t(e.messages.check), 9, vl)) : R("", !0),
487
487
  a("button", {
488
488
  type: "button",
489
489
  class: "mr-data-layout__primary",
490
490
  disabled: e.readonly,
491
491
  onClick: r[13] || (r[13] = //@ts-ignore
492
- (...s) => l(c).apply && l(c).apply(...s))
492
+ (...d) => l(c).apply && l(c).apply(...d))
493
493
  }, t(e.messages.apply), 9, gl)
494
494
  ]),
495
495
  l(K) ? (o(), n("div", yl, [
@@ -497,17 +497,17 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
497
497
  a("table", null, [
498
498
  a("thead", null, [
499
499
  a("tr", null, [
500
- (o(!0), n(k, null, w(l(K).columns, (s, V) => (o(), n("th", { key: V }, t(s), 1))), 128))
500
+ (o(!0), n(k, null, w(l(K).columns, (d, V) => (o(), n("th", { key: V }, t(d), 1))), 128))
501
501
  ])
502
502
  ]),
503
503
  a("tbody", null, [
504
- (o(!0), n(k, null, w(l(K).rows, (s, V) => (o(), n("tr", { key: V }, [
505
- (o(!0), n(k, null, w(s, (u, g) => (o(), n("td", { key: g }, t(u ?? "—"), 1))), 128))
504
+ (o(!0), n(k, null, w(l(K).rows, (d, V) => (o(), n("tr", { key: V }, [
505
+ (o(!0), n(k, null, w(d, (u, g) => (o(), n("td", { key: g }, t(u ?? "—"), 1))), 128))
506
506
  ]))), 128))
507
507
  ])
508
508
  ])
509
509
  ])) : R("", !0),
510
- l(S) ? (o(), n("p", fl, t(l(S)), 1)) : R("", !0)
510
+ l(M) ? (o(), n("p", fl, t(l(M)), 1)) : R("", !0)
511
511
  ]));
512
512
  }
513
513
  }), kl = /* @__PURE__ */ ee(hl, [["__scopeId", "data-v-57e89011"]]), Vl = { class: "mr-expression__row" }, $l = ["value", "disabled", "aria-label"], Cl = { value: "field" }, wl = { value: "constant" }, xl = {
@@ -540,49 +540,49 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
540
540
  },
541
541
  { immediate: !0 }
542
542
  );
543
- function y(r) {
543
+ function f(r) {
544
544
  x.readonly || O("update:modelValue", r);
545
545
  }
546
546
  function C(r) {
547
- y(r === "aggregate" ? { aggregate: "sum", field: x.fields[0]?.field ?? "" } : r === "field" ? { field: x.fields[0]?.field ?? "" } : r === "constant" ? { value: "" } : {
547
+ f(r === "aggregate" ? { aggregate: "sum", field: x.fields[0]?.field ?? "" } : r === "field" ? { field: x.fields[0]?.field ?? "" } : r === "constant" ? { value: "" } : {
548
548
  op: "add",
549
549
  args: [{ field: x.fields[0]?.field ?? "" }, { value: 0 }]
550
550
  });
551
551
  }
552
552
  function G(r) {
553
- const s = r, V = "args" in x.modelValue ? x.modelValue.args : [{ value: 0 }, { value: 0 }];
554
- y({
555
- op: s,
556
- args: s === "divide" || s === "subtract" ? V.slice(0, 2) : V
553
+ const d = r, V = "args" in x.modelValue ? x.modelValue.args : [{ value: 0 }, { value: 0 }];
554
+ f({
555
+ op: d,
556
+ args: d === "divide" || d === "subtract" ? V.slice(0, 2) : V
557
557
  });
558
558
  }
559
- function N(r, s) {
560
- "args" in x.modelValue && y({
559
+ function N(r, d) {
560
+ "args" in x.modelValue && f({
561
561
  ...x.modelValue,
562
562
  args: x.modelValue.args.map(
563
- (V, u) => u === r ? s : V
563
+ (V, u) => u === r ? d : V
564
564
  )
565
565
  });
566
566
  }
567
- function S(r) {
567
+ function M(r) {
568
568
  if (!("args" in x.modelValue)) return;
569
- const s = r === void 0 ? [...x.modelValue.args, { value: 0 }] : x.modelValue.args.filter((V, u) => u !== r);
570
- y({ ...x.modelValue, args: s });
569
+ const d = r === void 0 ? [...x.modelValue.args, { value: 0 }] : x.modelValue.args.filter((V, u) => u !== r);
570
+ f({ ...x.modelValue, args: d });
571
571
  }
572
572
  function K(r) {
573
- v.value = r, y({
573
+ v.value = r, f({
574
574
  value: r === "null" ? null : r === "boolean" ? !1 : r === "number" ? 0 : ""
575
575
  });
576
576
  }
577
577
  function j(r) {
578
- v.value === "number" ? r.trim() && Number.isFinite(Number(r)) && y({ value: Number(r) }) : y({ value: r });
578
+ v.value === "number" ? r.trim() && Number.isFinite(Number(r)) && f({ value: Number(r) }) : f({ value: r });
579
579
  }
580
- function L(r, s) {
580
+ function L(r, d) {
581
581
  if (!("aggregate" in x.modelValue)) return;
582
- const V = { ...x.modelValue, [r]: s };
583
- r === "aggregate" && (V.aggregate = s), r === "field" && !s && delete V.field, y(V);
582
+ const V = { ...x.modelValue, [r]: d };
583
+ r === "aggregate" && (V.aggregate = d), r === "field" && !d && delete V.field, f(V);
584
584
  }
585
- return (r, s) => {
585
+ return (r, d) => {
586
586
  const V = me("ReportExpressionEditor", !0);
587
587
  return o(), n("div", {
588
588
  class: te(["mr-expression", { "mr-expression--nested": (e.depth ?? 0) > 0 }])
@@ -592,7 +592,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
592
592
  value: i.value,
593
593
  disabled: e.readonly,
594
594
  "aria-label": e.messages.argument,
595
- onChange: s[0] || (s[0] = (u) => C(u.target.value))
595
+ onChange: d[0] || (d[0] = (u) => C(u.target.value))
596
596
  }, [
597
597
  a("option", Cl, t(e.messages.field), 1),
598
598
  a("option", wl, t(e.messages.constant), 1),
@@ -604,7 +604,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
604
604
  value: e.modelValue.field,
605
605
  disabled: e.readonly,
606
606
  "aria-label": e.messages.field,
607
- onChange: s[1] || (s[1] = (u) => y({ field: u.target.value }))
607
+ onChange: d[1] || (d[1] = (u) => f({ field: u.target.value }))
608
608
  }, [
609
609
  (o(!0), n(k, null, w(e.fields, (u) => (o(), n("option", {
610
610
  key: u.field,
@@ -615,7 +615,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
615
615
  value: e.modelValue.op,
616
616
  disabled: e.readonly,
617
617
  "aria-label": e.messages.operation,
618
- onChange: s[2] || (s[2] = (u) => G(u.target.value))
618
+ onChange: d[2] || (d[2] = (u) => G(u.target.value))
619
619
  }, [
620
620
  (o(!0), n(k, null, w(l(c).operations, (u) => (o(), n("option", {
621
621
  key: u,
@@ -626,7 +626,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
626
626
  value: e.modelValue.aggregate,
627
627
  disabled: e.readonly,
628
628
  "aria-label": e.messages.aggregate,
629
- onChange: s[3] || (s[3] = (u) => L("aggregate", u.target.value))
629
+ onChange: d[3] || (d[3] = (u) => L("aggregate", u.target.value))
630
630
  }, [
631
631
  (o(!0), n(k, null, w(l(c).aggregates, (u) => (o(), n("option", {
632
632
  key: u,
@@ -637,7 +637,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
637
637
  value: v.value,
638
638
  disabled: e.readonly,
639
639
  "aria-label": e.messages.resultType,
640
- onChange: s[4] || (s[4] = (u) => K(u.target.value))
640
+ onChange: d[4] || (d[4] = (u) => K(u.target.value))
641
641
  }, [
642
642
  a("option", Dl, t(e.messages.text), 1),
643
643
  a("option", Nl, t(e.messages.number), 1),
@@ -650,7 +650,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
650
650
  value: e.modelValue.field ?? "",
651
651
  disabled: e.readonly,
652
652
  "aria-label": e.messages.measure,
653
- onChange: s[5] || (s[5] = (u) => L("field", u.target.value))
653
+ onChange: d[5] || (d[5] = (u) => L("field", u.target.value))
654
654
  }, [
655
655
  e.modelValue.aggregate === "count" ? (o(), n("option", Ll, t(e.messages.allRows), 1)) : R("", !0),
656
656
  (o(!0), n(k, null, w(e.fields, (u) => (o(), n("option", {
@@ -663,7 +663,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
663
663
  value: e.modelValue.weightField ?? "",
664
664
  disabled: e.readonly,
665
665
  "aria-label": e.messages.weight,
666
- onChange: s[6] || (s[6] = (u) => L(
666
+ onChange: d[6] || (d[6] = (u) => L(
667
667
  "weightField",
668
668
  u.target.value
669
669
  ))
@@ -680,7 +680,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
680
680
  value: String(e.modelValue.value),
681
681
  disabled: e.readonly,
682
682
  "aria-label": e.messages.constant,
683
- onChange: s[7] || (s[7] = (u) => y({
683
+ onChange: d[7] || (d[7] = (u) => f({
684
684
  value: u.target.value === "true"
685
685
  }))
686
686
  }, [
@@ -692,7 +692,7 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
692
692
  value: e.modelValue.value ?? "",
693
693
  disabled: e.readonly,
694
694
  "aria-label": e.messages.constant,
695
- onInput: s[8] || (s[8] = (u) => j(u.target.value))
695
+ onInput: d[8] || (d[8] = (u) => j(u.target.value))
696
696
  }, null, 40, zl)) : R("", !0)
697
697
  ], 64)) : "args" in e.modelValue ? (o(), n(k, { key: 2 }, [
698
698
  (o(!0), n(k, null, w(e.modelValue.args, (u, g) => (o(), n("div", {
@@ -705,21 +705,21 @@ const ke = { class: "mr-data-layout" }, Ve = { class: "mr-data-layout__check" },
705
705
  messages: e.messages,
706
706
  readonly: e.readonly,
707
707
  depth: (e.depth ?? 0) + 1,
708
- "onUpdate:modelValue": (M) => N(g, M)
708
+ "onUpdate:modelValue": (U) => N(g, U)
709
709
  }, null, 8, ["model-value", "fields", "messages", "readonly", "depth", "onUpdate:modelValue"]),
710
710
  e.modelValue.args.length > 2 ? (o(), n("button", {
711
711
  key: 0,
712
712
  type: "button",
713
713
  disabled: e.readonly,
714
714
  "aria-label": `${e.messages.remove} ${e.messages.argument} ${g + 1}`,
715
- onClick: (M) => S(g)
715
+ onClick: (U) => M(g)
716
716
  }, " × ", 8, ql)) : R("", !0)
717
717
  ]))), 128)),
718
718
  !["subtract", "divide"].includes(e.modelValue.op) && e.modelValue.args.length < 16 ? (o(), n("button", {
719
719
  key: 0,
720
720
  type: "button",
721
721
  disabled: e.readonly,
722
- onClick: s[9] || (s[9] = (u) => S())
722
+ onClick: d[9] || (d[9] = (u) => M())
723
723
  }, " + " + t(e.messages.addArgument), 9, Pl)) : R("", !0)
724
724
  ], 64)) : R("", !0)
725
725
  ], 2);
@@ -734,48 +734,50 @@ function Yl(e, J) {
734
734
  field: "",
735
735
  expression: { field: "" },
736
736
  scope: "row"
737
- }), y = A([]), C = A(0), G = A(""), N = A(-1), S = A("style"), K = A({ field: "", op: ">", value: 0 }), j = A({
737
+ }), f = A([]), C = A(0), G = A(""), N = A(-1), M = A("style"), K = A({ field: "", op: ">", value: 0 }), j = A({
738
738
  color: "#b91c1c",
739
739
  backgroundColor: "#fff1f2",
740
740
  bold: !1
741
741
  }), L = A([]), r = Z(() => {
742
742
  const b = /* @__PURE__ */ new Map();
743
- for (const f of e.datasetSchema?.fields ?? [])
744
- b.set(f.field, f.label ?? f.field);
745
- for (const f of e.list.columns)
746
- b.has(f.field) || b.set(f.field, f.header || f.field);
747
- for (const f of Object.keys(
743
+ for (const y of e.datasetSchema?.fields ?? [])
744
+ b.set(y.field, y.label ?? y.field);
745
+ for (const y of e.list.columns)
746
+ b.has(y.field) || b.set(y.field, y.header || y.field);
747
+ for (const y of Object.keys(
748
748
  e.datasets?.[e.list.dataset]?.[0] ?? {}
749
749
  ))
750
- b.has(f) || b.set(f, f);
751
- return [...b].map(([f, E]) => ({ field: f, label: E }));
752
- }), s = Z(() => y.value[C.value]), V = Z(
750
+ b.has(y) || b.set(y, y);
751
+ return [...b].map(([y, E]) => ({ field: y, label: E }));
752
+ }), d = Z(() => f.value[C.value]), V = Z(
753
753
  () => e.list.columns.find((b) => b.field === G.value)
754
754
  ), u = Z(() => ve(F()));
755
755
  function g() {
756
- y.value = I(
756
+ f.value = I(
757
757
  e.list.groups ?? (e.list.groupBy ? [e.list.groupBy] : [])
758
- ), e.list.columns.some((b) => b.field === G.value) || (G.value = e.list.columns[0]?.field ?? ""), c.value = "", L.value = [], M(i.value), le(-1);
758
+ );
759
+ for (const b of f.value) for (const y of b.aggregates ?? []) y.numeric ??= "number";
760
+ e.list.columns.some((b) => b.field === G.value) || (G.value = e.list.columns[0]?.field ?? ""), c.value = "", L.value = [], U(i.value), le(-1);
759
761
  }
760
762
  Y(() => e.list, g, { immediate: !0 });
761
- function M(b) {
763
+ function U(b) {
762
764
  i.value = b, v.value = I(
763
- e.list.computed?.find((f) => f.field === b) ?? {
765
+ e.list.computed?.find((y) => y.field === b) ?? {
764
766
  field: "",
765
767
  expression: { field: r.value[0]?.field ?? "" },
766
768
  scope: "row"
767
769
  }
768
- ), L.value = [], c.value = "";
770
+ ), v.value.numeric ??= "number", L.value = [], c.value = "";
769
771
  }
770
772
  function F() {
771
773
  return [
772
- ...(e.list.computed ?? []).filter((f) => f.field !== i.value),
774
+ ...(e.list.computed ?? []).filter((y) => y.field !== i.value),
773
775
  I(v.value)
774
776
  ];
775
777
  }
776
778
  function B(b) {
777
779
  if (e.readonly) return !1;
778
- const f = ye({
780
+ const y = ye({
779
781
  pages: [
780
782
  {
781
783
  widthMm: Math.max(1, b.leftMm + b.widthMm),
@@ -784,7 +786,7 @@ function Yl(e, J) {
784
786
  }
785
787
  ]
786
788
  });
787
- return f.ok ? (c.value = "", J(b), !0) : (c.value = f.errors.map((E) => E.message).slice(0, 3).join(";"), !1);
789
+ return y.ok ? (c.value = "", J(b), !0) : (c.value = y.errors.map((E) => E.message).slice(0, 3).join(";"), !1);
788
790
  }
789
791
  function T() {
790
792
  if (!v.value.field.trim()) {
@@ -792,7 +794,7 @@ function Yl(e, J) {
792
794
  return;
793
795
  }
794
796
  const b = I(e.list);
795
- b.computed = F(), b.columns.some((f) => f.field === v.value.field) || b.columns.push({
797
+ b.computed = F(), b.columns.some((y) => y.field === v.value.field) || b.columns.push({
796
798
  field: v.value.field,
797
799
  header: v.value.field,
798
800
  widthMm: 30,
@@ -809,10 +811,10 @@ function Yl(e, J) {
809
811
  if (!i.value) return;
810
812
  const b = I(e.list);
811
813
  b.computed = (b.computed ?? []).filter(
812
- (f) => f.field !== i.value
813
- ), B(b) && M("");
814
+ (y) => y.field !== i.value
815
+ ), B(b) && U("");
814
816
  }
815
- function d() {
817
+ function s() {
816
818
  L.value = [], c.value = "";
817
819
  const b = e.datasets?.[e.list.dataset];
818
820
  if (!b?.length) {
@@ -820,61 +822,62 @@ function Yl(e, J) {
820
822
  return;
821
823
  }
822
824
  try {
823
- const f = ge(b.slice(0, 1e3), {
825
+ const y = ge(b.slice(0, 1e3), {
824
826
  fields: F(),
825
827
  maxRows: 1e3,
826
828
  maxCells: 2e6
827
829
  });
828
- L.value = f.rows.slice(0, 5).map((E, z) => ({
830
+ L.value = y.rows.slice(0, 5).map((E, z) => ({
829
831
  row: z + 1,
830
832
  value: E[v.value.field]
831
833
  }));
832
- } catch (f) {
833
- c.value = f instanceof Error ? f.message : String(f);
834
+ } catch (y) {
835
+ c.value = y instanceof Error ? y.message : String(y);
834
836
  }
835
837
  }
836
838
  function W(b) {
837
839
  v.value.expression = b;
838
840
  }
839
- function U(b, f) {
840
- v.value.groupBy = f ? [...v.value.groupBy ?? [], b] : (v.value.groupBy ?? []).filter((E) => E !== b);
841
+ function S(b, y) {
842
+ v.value.groupBy = y ? [...v.value.groupBy ?? [], b] : (v.value.groupBy ?? []).filter((E) => E !== b);
841
843
  }
842
- function de() {
843
- y.value.push({
844
+ function se() {
845
+ f.value.push({
844
846
  field: r.value[0]?.field ?? "",
845
847
  headerTemplate: "{value}",
846
848
  subtotalLabel: x.value.subtotalLabel,
847
849
  aggregates: [],
848
850
  keepWithNext: !0
849
- }), C.value = y.value.length - 1;
851
+ }), C.value = f.value.length - 1;
850
852
  }
851
- function se(b) {
852
- const f = C.value, E = f + b;
853
- E < 0 || E >= y.value.length || ([y.value[f], y.value[E]] = [
854
- y.value[E],
855
- y.value[f]
853
+ function de(b) {
854
+ const y = C.value, E = y + b;
855
+ E < 0 || E >= f.value.length || ([f.value[y], f.value[E]] = [
856
+ f.value[E],
857
+ f.value[y]
856
858
  ], C.value = E);
857
859
  }
858
860
  function ie() {
859
- y.value.splice(C.value, 1), C.value = Math.max(
861
+ f.value.splice(C.value, 1), C.value = Math.max(
860
862
  0,
861
- Math.min(C.value, y.value.length - 1)
863
+ Math.min(C.value, f.value.length - 1)
862
864
  );
863
865
  }
864
866
  function oe() {
865
- s.value && (s.value.aggregates ??= []).push({
867
+ d.value && (d.value.aggregates ??= []).push({
866
868
  field: r.value[0]?.field ?? "",
867
- op: "sum"
869
+ op: "sum",
870
+ numeric: "number"
868
871
  });
869
872
  }
870
873
  function ne() {
871
874
  const b = I(e.list);
872
- b.groups = I(y.value), delete b.groupBy, B(b);
875
+ b.groups = I(f.value), delete b.groupBy, B(b);
873
876
  }
874
877
  function le(b) {
875
878
  N.value = b;
876
- const f = S.value === "cell" ? V.value?.visibleWhen : S.value === "rowVisibility" ? e.list.rowVisibleWhen : V.value?.rules?.[b]?.when;
877
- K.value = I(f ?? { field: G.value, op: ">", value: 0 });
879
+ const y = M.value === "cell" ? V.value?.visibleWhen : M.value === "rowVisibility" ? e.list.rowVisibleWhen : V.value?.rules?.[b]?.when;
880
+ K.value = I(y ?? { field: G.value, op: ">", value: 0 });
878
881
  const E = V.value?.rules?.[b]?.style;
879
882
  j.value = {
880
883
  color: String(E?.color ?? "#b91c1c"),
@@ -883,22 +886,22 @@ function Yl(e, J) {
883
886
  };
884
887
  }
885
888
  function ue(b) {
886
- const f = e.datasetSchema?.fields.find(
889
+ const y = e.datasetSchema?.fields.find(
887
890
  (X) => X.field === K.value.field
888
891
  ), E = e.datasets?.[e.list.dataset]?.find(
889
892
  (X) => X[K.value.field] != null
890
- )?.[K.value.field], z = f?.type === "number" || !f && typeof E == "number";
891
- f?.type === "decimal" ? K.value.numeric = "decimal" : z ? K.value.numeric = "number" : delete K.value.numeric, K.value.value = z && b.trim() && Number.isFinite(Number(b)) ? Number(b) : b;
893
+ )?.[K.value.field], z = y?.type === "number" || !y && typeof E == "number";
894
+ y?.type === "decimal" ? K.value.numeric = "decimal" : z ? K.value.numeric = "number" : delete K.value.numeric, K.value.value = z && b.trim() && Number.isFinite(Number(b)) ? Number(b) : b;
892
895
  }
893
896
  function re(b = !1) {
894
- const f = I(e.list), E = f.columns.find((z) => z.field === G.value);
897
+ const y = I(e.list), E = y.columns.find((z) => z.field === G.value);
895
898
  if (!E) {
896
899
  c.value = x.value.noSelection;
897
900
  return;
898
901
  }
899
- if (S.value === "rowVisibility")
900
- b ? delete f.rowVisibleWhen : f.rowVisibleWhen = I(K.value);
901
- else if (S.value === "cell")
902
+ if (M.value === "rowVisibility")
903
+ b ? delete y.rowVisibleWhen : y.rowVisibleWhen = I(K.value);
904
+ else if (M.value === "cell")
902
905
  b ? delete E.visibleWhen : E.visibleWhen = I(K.value);
903
906
  else if (E.rules ??= [], b && N.value >= 0)
904
907
  E.rules.splice(N.value, 1);
@@ -912,34 +915,34 @@ function Yl(e, J) {
912
915
  style: { ...j.value }
913
916
  };
914
917
  }
915
- B(f);
918
+ B(y);
916
919
  }
917
920
  return {
918
921
  m: x,
919
922
  tab: O,
920
923
  fields: r,
921
924
  formula: v,
922
- groups: y,
925
+ groups: f,
923
926
  groupIndex: C,
924
- currentGroup: s,
927
+ currentGroup: d,
925
928
  column: G,
926
929
  currentColumn: V,
927
930
  conditionIndex: N,
928
- effect: S,
931
+ effect: M,
929
932
  when: K,
930
933
  style: j,
931
934
  error: c,
932
935
  preview: L,
933
936
  diagnostics: u,
934
937
  selectedComputed: i,
935
- loadComputed: M,
938
+ loadComputed: U,
936
939
  applyComputed: T,
937
940
  removeComputed: m,
938
- check: d,
941
+ check: s,
939
942
  setExpression: W,
940
- toggleGroupField: U,
941
- addGroup: de,
942
- moveGroup: se,
943
+ toggleGroupField: S,
944
+ addGroup: se,
945
+ moveGroup: de,
943
946
  removeGroup: ie,
944
947
  addAggregate: oe,
945
948
  applyGroups: ne,
@@ -952,7 +955,7 @@ function Yl(e, J) {
952
955
  const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"], la = { key: 0 }, aa = { key: 1 }, ta = {
953
956
  key: 0,
954
957
  class: "mr-rule-editor__panel"
955
- }, da = ["aria-label", "value", "disabled"], sa = { value: "" }, ia = ["value"], oa = ["aria-label", "disabled"], na = { class: "mr-rule-editor__pair" }, ua = ["aria-label", "disabled"], ra = ["value"], ma = ["aria-label", "disabled"], ca = { value: "number" }, ba = { value: "decimal" }, va = {
958
+ }, sa = ["aria-label", "value", "disabled"], da = { value: "" }, ia = ["value"], oa = ["aria-label", "disabled"], na = { class: "mr-rule-editor__pair" }, ua = ["aria-label", "disabled"], ra = ["value"], ma = ["aria-label", "disabled"], ca = { value: "number" }, ba = { value: "decimal" }, va = {
956
959
  key: 0,
957
960
  class: "mr-rule-editor__checks"
958
961
  }, ga = ["checked", "disabled", "onChange"], ya = {
@@ -976,7 +979,7 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
976
979
  }, Na = { class: "mr-rule-editor__pair" }, Ta = ["aria-label"], Ba = ["value"], Aa = {
977
980
  key: 0,
978
981
  value: 0
979
- }, La = ["disabled"], Wa = ["aria-label", "disabled"], Ia = ["value"], Oa = { class: "mr-rule-editor__pair" }, ja = ["aria-label", "disabled"], Ha = ["aria-label", "disabled"], Ja = { class: "mr-rule-editor__checks" }, Za = ["disabled"], za = ["disabled"], qa = { class: "mr-rule-editor__pair" }, Pa = ["aria-label", "onUpdate:modelValue", "disabled"], Qa = ["value"], Xa = ["aria-label", "onUpdate:modelValue", "disabled"], Ya = ["value"], _a = ["aria-label", "onUpdate:modelValue", "disabled"], pa = { value: void 0 }, et = ["value"], lt = { key: 0 }, at = ["aria-label", "onUpdate:modelValue", "disabled"], tt = ["value"], dt = { class: "mr-rule-editor__pair" }, st = ["onUpdate:modelValue", "disabled", "aria-label"], it = { value: "number" }, ot = { value: "decimal" }, nt = ["disabled", "onClick"], ut = ["disabled"], rt = { class: "mr-rule-editor__actions" }, mt = ["disabled", "aria-label"], ct = ["disabled", "aria-label"], bt = ["disabled"], vt = ["disabled"], gt = {
982
+ }, La = ["disabled"], Wa = ["aria-label", "disabled"], Ia = ["value"], Oa = { class: "mr-rule-editor__pair" }, ja = ["aria-label", "disabled"], Ha = ["aria-label", "disabled"], Ja = { class: "mr-rule-editor__checks" }, Za = ["disabled"], za = ["disabled"], qa = { class: "mr-rule-editor__pair" }, Pa = ["aria-label", "onUpdate:modelValue", "disabled"], Qa = ["value"], Xa = ["aria-label", "onUpdate:modelValue", "disabled"], Ya = ["value"], _a = ["aria-label", "onUpdate:modelValue", "disabled"], pa = { value: void 0 }, et = ["value"], lt = { key: 0 }, at = ["aria-label", "onUpdate:modelValue", "disabled"], tt = ["value"], st = { class: "mr-rule-editor__pair" }, dt = ["onUpdate:modelValue", "disabled", "aria-label"], it = { value: "number" }, ot = { value: "decimal" }, nt = ["disabled", "onClick"], ut = ["disabled"], rt = { class: "mr-rule-editor__actions" }, mt = ["disabled", "aria-label"], ct = ["disabled", "aria-label"], bt = ["disabled"], vt = ["disabled"], gt = {
980
983
  key: 2,
981
984
  class: "mr-rule-editor__panel"
982
985
  }, yt = ["aria-label", "disabled"], ft = ["value"], ht = ["aria-label", "disabled"], kt = { value: "style" }, Vt = { value: "cell" }, $t = { value: "rowVisibility" }, Ct = { key: 0 }, wt = ["aria-label", "value", "disabled"], xt = { value: -1 }, Ut = ["value"], St = ["aria-label", "disabled"], Mt = ["value"], Ft = { class: "mr-rule-editor__pair" }, Et = ["aria-label", "disabled"], Rt = ["value"], Kt = ["value", "disabled"], Gt = { class: "mr-rule-editor__pair" }, Dt = ["disabled"], Nt = ["disabled"], Tt = { class: "mr-rule-editor__check" }, Bt = ["disabled"], At = { class: "mr-rule-editor__actions" }, Lt = ["disabled"], Wt = ["disabled"], It = {
@@ -998,20 +1001,20 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
998
1001
  const x = e, O = J, c = Yl(x, (T) => O("change", T)), {
999
1002
  m: i,
1000
1003
  tab: v,
1001
- fields: y,
1004
+ fields: f,
1002
1005
  formula: C,
1003
1006
  groups: G,
1004
1007
  groupIndex: N,
1005
- currentGroup: S,
1008
+ currentGroup: M,
1006
1009
  column: K,
1007
1010
  currentColumn: j,
1008
1011
  conditionIndex: L,
1009
1012
  effect: r,
1010
- when: s,
1013
+ when: d,
1011
1014
  style: V,
1012
1015
  error: u,
1013
1016
  preview: g,
1014
- diagnostics: M,
1017
+ diagnostics: U,
1015
1018
  selectedComputed: F
1016
1019
  } = c, B = p();
1017
1020
  return (T, m) => (o(), n("section", {
@@ -1029,17 +1032,17 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1029
1032
  "conditions",
1030
1033
  "detail",
1031
1034
  "matrix"
1032
- ], (d) => a("button", {
1033
- key: d,
1035
+ ], (s) => a("button", {
1036
+ key: s,
1034
1037
  type: "button",
1035
1038
  role: "tab",
1036
- "aria-selected": l(v) === d,
1037
- class: te({ "is-active": l(v) === d }),
1038
- onClick: (W) => v.value = d
1039
+ "aria-selected": l(v) === s,
1040
+ class: te({ "is-active": l(v) === s }),
1041
+ onClick: (W) => v.value = s
1039
1042
  }, [
1040
- h(t(l(i)[d]), 1),
1041
- d === "computations" && e.list.computed?.length ? (o(), n("span", la, t(e.list.computed.length), 1)) : R("", !0),
1042
- d === "groups" && l(G).length ? (o(), n("span", aa, t(l(G).length), 1)) : R("", !0)
1043
+ h(t(l(i)[s]), 1),
1044
+ s === "computations" && e.list.computed?.length ? (o(), n("span", la, t(e.list.computed.length), 1)) : R("", !0),
1045
+ s === "groups" && l(G).length ? (o(), n("span", aa, t(l(G).length), 1)) : R("", !0)
1043
1046
  ], 10, ea)), 64))
1044
1047
  ], 8, pl),
1045
1048
  l(v) === "computations" ? (o(), n("div", ta, [
@@ -1049,20 +1052,20 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1049
1052
  "aria-label": l(i).existing,
1050
1053
  value: l(F),
1051
1054
  disabled: e.readonly,
1052
- onChange: m[0] || (m[0] = (d) => l(c).loadComputed(d.target.value))
1055
+ onChange: m[0] || (m[0] = (s) => l(c).loadComputed(s.target.value))
1053
1056
  }, [
1054
- a("option", sa, "+ " + t(l(i).newField), 1),
1055
- (o(!0), n(k, null, w(e.list.computed, (d) => (o(), n("option", {
1056
- key: d.field,
1057
- value: d.field
1058
- }, t(d.field), 9, ia))), 128))
1059
- ], 40, da)
1057
+ a("option", da, "+ " + t(l(i).newField), 1),
1058
+ (o(!0), n(k, null, w(e.list.computed, (s) => (o(), n("option", {
1059
+ key: s.field,
1060
+ value: s.field
1061
+ }, t(s.field), 9, ia))), 128))
1062
+ ], 40, sa)
1060
1063
  ]),
1061
1064
  a("label", null, [
1062
1065
  h(t(l(i).target), 1),
1063
1066
  $(a("input", {
1064
1067
  "aria-label": l(i).target,
1065
- "onUpdate:modelValue": m[1] || (m[1] = (d) => l(C).field = d),
1068
+ "onUpdate:modelValue": m[1] || (m[1] = (s) => l(C).field = s),
1066
1069
  disabled: e.readonly,
1067
1070
  autocomplete: "off"
1068
1071
  }, null, 8, oa), [
@@ -1074,13 +1077,13 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1074
1077
  h(t(l(i).scope), 1),
1075
1078
  $(a("select", {
1076
1079
  "aria-label": l(i).scope,
1077
- "onUpdate:modelValue": m[2] || (m[2] = (d) => l(C).scope = d),
1080
+ "onUpdate:modelValue": m[2] || (m[2] = (s) => l(C).scope = s),
1078
1081
  disabled: e.readonly
1079
1082
  }, [
1080
- (o(!0), n(k, null, w(l(B).scopes, (d) => (o(), n("option", {
1081
- key: d,
1082
- value: d
1083
- }, t(l(i)[d]), 9, ra))), 128))
1083
+ (o(!0), n(k, null, w(l(B).scopes, (s) => (o(), n("option", {
1084
+ key: s,
1085
+ value: s
1086
+ }, t(l(i)[s]), 9, ra))), 128))
1084
1087
  ], 8, ua), [
1085
1088
  [D, l(C).scope]
1086
1089
  ])
@@ -1089,7 +1092,7 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1089
1092
  h(t(l(i).numeric), 1),
1090
1093
  $(a("select", {
1091
1094
  "aria-label": l(i).numeric,
1092
- "onUpdate:modelValue": m[3] || (m[3] = (d) => l(C).numeric = d),
1095
+ "onUpdate:modelValue": m[3] || (m[3] = (s) => l(C).numeric = s),
1093
1096
  disabled: e.readonly
1094
1097
  }, [
1095
1098
  a("option", ca, t(l(i).number), 1),
@@ -1101,25 +1104,25 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1101
1104
  ]),
1102
1105
  l(C).scope === "group" ? (o(), n("fieldset", va, [
1103
1106
  a("legend", null, t(l(i).groupFields), 1),
1104
- (o(!0), n(k, null, w(l(y), (d) => (o(), n("label", {
1105
- key: d.field
1107
+ (o(!0), n(k, null, w(l(f), (s) => (o(), n("label", {
1108
+ key: s.field
1106
1109
  }, [
1107
1110
  a("input", {
1108
1111
  type: "checkbox",
1109
- checked: l(C).groupBy?.includes(d.field),
1112
+ checked: l(C).groupBy?.includes(s.field),
1110
1113
  disabled: e.readonly,
1111
1114
  onChange: (W) => l(c).toggleGroupField(
1112
- d.field,
1115
+ s.field,
1113
1116
  W.target.checked
1114
1117
  )
1115
1118
  }, null, 40, ga),
1116
- h(t(d.label), 1)
1119
+ h(t(s.label), 1)
1117
1120
  ]))), 128))
1118
1121
  ])) : R("", !0),
1119
1122
  typeof l(C).expression != "string" ? (o(), ae(Xl, {
1120
1123
  key: 1,
1121
1124
  "model-value": l(C).expression,
1122
- fields: l(y),
1125
+ fields: l(f),
1123
1126
  messages: l(i),
1124
1127
  readonly: e.readonly,
1125
1128
  "onUpdate:modelValue": l(c).setExpression
@@ -1131,7 +1134,7 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1131
1134
  h(t(l(i).digits), 1),
1132
1135
  $(a("input", {
1133
1136
  "aria-label": l(i).digits,
1134
- "onUpdate:modelValue": m[4] || (m[4] = (d) => l(C).digits = d),
1137
+ "onUpdate:modelValue": m[4] || (m[4] = (s) => l(C).digits = s),
1135
1138
  type: "number",
1136
1139
  min: "0",
1137
1140
  max: "100",
@@ -1149,7 +1152,7 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1149
1152
  h(t(l(i).nulls), 1),
1150
1153
  $(a("select", {
1151
1154
  "aria-label": l(i).nulls,
1152
- "onUpdate:modelValue": m[5] || (m[5] = (d) => l(C).nulls = d),
1155
+ "onUpdate:modelValue": m[5] || (m[5] = (s) => l(C).nulls = s),
1153
1156
  disabled: e.readonly
1154
1157
  }, [
1155
1158
  a("option", Va, t(l(i).propagate), 1),
@@ -1162,7 +1165,7 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1162
1165
  h(t(l(i).division), 1),
1163
1166
  $(a("select", {
1164
1167
  "aria-label": l(i).division,
1165
- "onUpdate:modelValue": m[6] || (m[6] = (d) => l(C).divisionByZero = d),
1168
+ "onUpdate:modelValue": m[6] || (m[6] = (s) => l(C).divisionByZero = s),
1166
1169
  disabled: e.readonly
1167
1170
  }, [
1168
1171
  a("option", wa, t(l(i).error), 1),
@@ -1174,54 +1177,54 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1174
1177
  ])
1175
1178
  ]),
1176
1179
  l(C).numeric === "decimal" ? (o(), n("p", Ua, t(l(i).decimalHint), 1)) : R("", !0),
1177
- l(M).valid && l(C).field ? (o(), n("div", Sa, [
1180
+ l(U).valid && l(C).field ? (o(), n("div", Sa, [
1178
1181
  h(t(l(i).dependencies), 1),
1179
- a("strong", null, t(l(M).order.join(" → ")), 1)
1182
+ a("strong", null, t(l(U).order.join(" → ")), 1)
1180
1183
  ])) : R("", !0),
1181
1184
  a("div", Ma, [
1182
1185
  a("button", {
1183
1186
  type: "button",
1184
1187
  disabled: e.readonly,
1185
1188
  onClick: m[7] || (m[7] = //@ts-ignore
1186
- (...d) => l(c).check && l(c).check(...d))
1189
+ (...s) => l(c).check && l(c).check(...s))
1187
1190
  }, t(l(i).check), 9, Fa),
1188
1191
  a("button", {
1189
1192
  type: "button",
1190
1193
  class: "mr-rule-editor__primary",
1191
- disabled: e.readonly || !l(M).valid,
1194
+ disabled: e.readonly || !l(U).valid,
1192
1195
  onClick: m[8] || (m[8] = //@ts-ignore
1193
- (...d) => l(c).applyComputed && l(c).applyComputed(...d))
1196
+ (...s) => l(c).applyComputed && l(c).applyComputed(...s))
1194
1197
  }, t(l(i).apply), 9, Ea),
1195
1198
  l(F) ? (o(), n("button", {
1196
1199
  key: 0,
1197
1200
  type: "button",
1198
1201
  disabled: e.readonly,
1199
1202
  onClick: m[9] || (m[9] = //@ts-ignore
1200
- (...d) => l(c).removeComputed && l(c).removeComputed(...d))
1203
+ (...s) => l(c).removeComputed && l(c).removeComputed(...s))
1201
1204
  }, t(l(i).remove), 9, Ra)) : R("", !0)
1202
1205
  ]),
1203
1206
  l(g).length ? (o(), n("div", Ka, [
1204
1207
  a("p", null, t(l(i).sample), 1),
1205
1208
  a("dl", null, [
1206
- (o(!0), n(k, null, w(l(g), (d) => (o(), n(k, {
1207
- key: d.row
1209
+ (o(!0), n(k, null, w(l(g), (s) => (o(), n(k, {
1210
+ key: s.row
1208
1211
  }, [
1209
- a("dt", null, t(d.row), 1),
1210
- a("dd", null, t(d.value ?? "—"), 1)
1212
+ a("dt", null, t(s.row), 1),
1213
+ a("dd", null, t(s.value ?? "—"), 1)
1211
1214
  ], 64))), 128))
1212
1215
  ])
1213
1216
  ])) : R("", !0),
1214
- !l(M).valid && l(C).field ? (o(), n("p", Ga, t(l(M).errors.join(";")), 1)) : R("", !0)
1217
+ !l(U).valid && l(C).field ? (o(), n("p", Ga, t(l(U).errors.join(";")), 1)) : R("", !0)
1215
1218
  ])) : l(v) === "groups" ? (o(), n("div", Da, [
1216
1219
  a("div", Na, [
1217
1220
  $(a("select", {
1218
- "onUpdate:modelValue": m[10] || (m[10] = (d) => Q(N) ? N.value = d : null),
1221
+ "onUpdate:modelValue": m[10] || (m[10] = (s) => Q(N) ? N.value = s : null),
1219
1222
  "aria-label": l(i).groups
1220
1223
  }, [
1221
- (o(!0), n(k, null, w(l(G), (d, W) => (o(), n("option", {
1224
+ (o(!0), n(k, null, w(l(G), (s, W) => (o(), n("option", {
1222
1225
  key: W,
1223
1226
  value: W
1224
- }, t(W + 1) + " · " + t(d.field), 9, Ba))), 128)),
1227
+ }, t(W + 1) + " · " + t(s.field), 9, Ba))), 128)),
1225
1228
  l(G).length ? R("", !0) : (o(), n("option", Aa, t(l(i).noGroups), 1))
1226
1229
  ], 8, Ta), [
1227
1230
  [
@@ -1235,23 +1238,23 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1235
1238
  type: "button",
1236
1239
  disabled: e.readonly || l(G).length >= 16,
1237
1240
  onClick: m[11] || (m[11] = //@ts-ignore
1238
- (...d) => l(c).addGroup && l(c).addGroup(...d))
1241
+ (...s) => l(c).addGroup && l(c).addGroup(...s))
1239
1242
  }, " + " + t(l(i).addGroup), 9, La)
1240
1243
  ]),
1241
- l(S) ? (o(), n(k, { key: 0 }, [
1244
+ l(M) ? (o(), n(k, { key: 0 }, [
1242
1245
  a("label", null, [
1243
1246
  h(t(l(i).field), 1),
1244
1247
  $(a("select", {
1245
1248
  "aria-label": l(i).field,
1246
- "onUpdate:modelValue": m[12] || (m[12] = (d) => l(S).field = d),
1249
+ "onUpdate:modelValue": m[12] || (m[12] = (s) => l(M).field = s),
1247
1250
  disabled: e.readonly
1248
1251
  }, [
1249
- (o(!0), n(k, null, w(l(y), (d) => (o(), n("option", {
1250
- key: d.field,
1251
- value: d.field
1252
- }, t(d.label), 9, Ia))), 128))
1252
+ (o(!0), n(k, null, w(l(f), (s) => (o(), n("option", {
1253
+ key: s.field,
1254
+ value: s.field
1255
+ }, t(s.label), 9, Ia))), 128))
1253
1256
  ], 8, Wa), [
1254
- [D, l(S).field]
1257
+ [D, l(M).field]
1255
1258
  ])
1256
1259
  ]),
1257
1260
  a("div", Oa, [
@@ -1259,47 +1262,47 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1259
1262
  h(t(l(i).header), 1),
1260
1263
  $(a("input", {
1261
1264
  "aria-label": l(i).header,
1262
- "onUpdate:modelValue": m[13] || (m[13] = (d) => l(S).headerTemplate = d),
1265
+ "onUpdate:modelValue": m[13] || (m[13] = (s) => l(M).headerTemplate = s),
1263
1266
  disabled: e.readonly,
1264
1267
  placeholder: "{value}"
1265
1268
  }, null, 8, ja), [
1266
- [H, l(S).headerTemplate]
1269
+ [H, l(M).headerTemplate]
1267
1270
  ])
1268
1271
  ]),
1269
1272
  a("label", null, [
1270
1273
  h(t(l(i).footer), 1),
1271
1274
  $(a("input", {
1272
1275
  "aria-label": l(i).footer,
1273
- "onUpdate:modelValue": m[14] || (m[14] = (d) => l(S).subtotalLabel = d),
1276
+ "onUpdate:modelValue": m[14] || (m[14] = (s) => l(M).subtotalLabel = s),
1274
1277
  disabled: e.readonly
1275
1278
  }, null, 8, Ha), [
1276
- [H, l(S).subtotalLabel]
1279
+ [H, l(M).subtotalLabel]
1277
1280
  ])
1278
1281
  ])
1279
1282
  ]),
1280
1283
  a("div", Ja, [
1281
1284
  a("label", null, [
1282
1285
  $(a("input", {
1283
- "onUpdate:modelValue": m[15] || (m[15] = (d) => l(S).keepWithNext = d),
1286
+ "onUpdate:modelValue": m[15] || (m[15] = (s) => l(M).keepWithNext = s),
1284
1287
  type: "checkbox",
1285
1288
  disabled: e.readonly
1286
1289
  }, null, 8, Za), [
1287
- [q, l(S).keepWithNext]
1290
+ [q, l(M).keepWithNext]
1288
1291
  ]),
1289
1292
  h(t(l(i).orphan), 1)
1290
1293
  ]),
1291
1294
  a("label", null, [
1292
1295
  $(a("input", {
1293
- "onUpdate:modelValue": m[16] || (m[16] = (d) => l(S).repeatHeader = d),
1296
+ "onUpdate:modelValue": m[16] || (m[16] = (s) => l(M).repeatHeader = s),
1294
1297
  type: "checkbox",
1295
1298
  disabled: e.readonly
1296
1299
  }, null, 8, za), [
1297
- [q, l(S).repeatHeader]
1300
+ [q, l(M).repeatHeader]
1298
1301
  ]),
1299
1302
  h(t(l(i).repeat), 1)
1300
1303
  ])
1301
1304
  ]),
1302
- (o(!0), n(k, null, w(l(S).aggregates, (d, W) => (o(), n("div", {
1305
+ (o(!0), n(k, null, w(l(M).aggregates, (s, W) => (o(), n("div", {
1303
1306
  key: W,
1304
1307
  class: "mr-rule-editor__aggregate"
1305
1308
  }, [
@@ -1308,30 +1311,30 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1308
1311
  h(t(l(i).output), 1),
1309
1312
  $(a("select", {
1310
1313
  "aria-label": l(i).output,
1311
- "onUpdate:modelValue": (U) => d.field = U,
1314
+ "onUpdate:modelValue": (S) => s.field = S,
1312
1315
  disabled: e.readonly
1313
1316
  }, [
1314
- (o(!0), n(k, null, w(l(y), (U) => (o(), n("option", {
1315
- key: U.field,
1316
- value: U.field
1317
- }, t(U.label), 9, Qa))), 128))
1317
+ (o(!0), n(k, null, w(l(f), (S) => (o(), n("option", {
1318
+ key: S.field,
1319
+ value: S.field
1320
+ }, t(S.label), 9, Qa))), 128))
1318
1321
  ], 8, Pa), [
1319
- [D, d.field]
1322
+ [D, s.field]
1320
1323
  ])
1321
1324
  ]),
1322
1325
  a("label", null, [
1323
1326
  h(t(l(i).aggregate), 1),
1324
1327
  $(a("select", {
1325
1328
  "aria-label": l(i).aggregate,
1326
- "onUpdate:modelValue": (U) => d.op = U,
1329
+ "onUpdate:modelValue": (S) => s.op = S,
1327
1330
  disabled: e.readonly
1328
1331
  }, [
1329
- (o(!0), n(k, null, w(l(B).aggregates, (U) => (o(), n("option", {
1330
- key: U,
1331
- value: U
1332
- }, t(l(i)[U]), 9, Ya))), 128))
1332
+ (o(!0), n(k, null, w(l(B).aggregates, (S) => (o(), n("option", {
1333
+ key: S,
1334
+ value: S
1335
+ }, t(l(i)[S]), 9, Ya))), 128))
1333
1336
  ], 8, Xa), [
1334
- [D, d.op]
1337
+ [D, s.op]
1335
1338
  ])
1336
1339
  ])
1337
1340
  ]),
@@ -1339,48 +1342,48 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1339
1342
  h(t(l(i).measure), 1),
1340
1343
  $(a("select", {
1341
1344
  "aria-label": l(i).measure,
1342
- "onUpdate:modelValue": (U) => d.valueField = U,
1345
+ "onUpdate:modelValue": (S) => s.valueField = S,
1343
1346
  disabled: e.readonly
1344
1347
  }, [
1345
- a("option", pa, t(d.field), 1),
1346
- (o(!0), n(k, null, w(l(y), (U) => (o(), n("option", {
1347
- key: U.field,
1348
- value: U.field
1349
- }, t(U.label), 9, et))), 128))
1348
+ a("option", pa, t(s.field), 1),
1349
+ (o(!0), n(k, null, w(l(f), (S) => (o(), n("option", {
1350
+ key: S.field,
1351
+ value: S.field
1352
+ }, t(S.label), 9, et))), 128))
1350
1353
  ], 8, _a), [
1351
- [D, d.valueField]
1354
+ [D, s.valueField]
1352
1355
  ])
1353
1356
  ]),
1354
- d.op === "weightedAvg" ? (o(), n("label", lt, [
1357
+ s.op === "weightedAvg" ? (o(), n("label", lt, [
1355
1358
  h(t(l(i).weight), 1),
1356
1359
  $(a("select", {
1357
1360
  "aria-label": l(i).weight,
1358
- "onUpdate:modelValue": (U) => d.weightField = U,
1361
+ "onUpdate:modelValue": (S) => s.weightField = S,
1359
1362
  disabled: e.readonly
1360
1363
  }, [
1361
- (o(!0), n(k, null, w(l(y), (U) => (o(), n("option", {
1362
- key: U.field,
1363
- value: U.field
1364
- }, t(U.label), 9, tt))), 128))
1364
+ (o(!0), n(k, null, w(l(f), (S) => (o(), n("option", {
1365
+ key: S.field,
1366
+ value: S.field
1367
+ }, t(S.label), 9, tt))), 128))
1365
1368
  ], 8, at), [
1366
- [D, d.weightField]
1369
+ [D, s.weightField]
1367
1370
  ])
1368
1371
  ])) : R("", !0),
1369
- a("div", dt, [
1372
+ a("div", st, [
1370
1373
  $(a("select", {
1371
- "onUpdate:modelValue": (U) => d.numeric = U,
1374
+ "onUpdate:modelValue": (S) => s.numeric = S,
1372
1375
  disabled: e.readonly,
1373
1376
  "aria-label": l(i).numeric
1374
1377
  }, [
1375
1378
  a("option", it, t(l(i).number), 1),
1376
1379
  a("option", ot, t(l(i).decimal), 1)
1377
- ], 8, st), [
1378
- [D, d.numeric]
1380
+ ], 8, dt), [
1381
+ [D, s.numeric]
1379
1382
  ]),
1380
1383
  a("button", {
1381
1384
  type: "button",
1382
1385
  disabled: e.readonly,
1383
- onClick: (U) => l(S).aggregates?.splice(W, 1)
1386
+ onClick: (S) => l(M).aggregates?.splice(W, 1)
1384
1387
  }, t(l(i).remove), 9, nt)
1385
1388
  ])
1386
1389
  ]))), 128)),
@@ -1388,26 +1391,26 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1388
1391
  type: "button",
1389
1392
  disabled: e.readonly,
1390
1393
  onClick: m[17] || (m[17] = //@ts-ignore
1391
- (...d) => l(c).addAggregate && l(c).addAggregate(...d))
1394
+ (...s) => l(c).addAggregate && l(c).addAggregate(...s))
1392
1395
  }, " + " + t(l(i).addAggregate), 9, ut),
1393
1396
  a("div", rt, [
1394
1397
  a("button", {
1395
1398
  type: "button",
1396
1399
  disabled: e.readonly || l(N) === 0,
1397
1400
  "aria-label": l(i).moveUp,
1398
- onClick: m[18] || (m[18] = (d) => l(c).moveGroup(-1))
1401
+ onClick: m[18] || (m[18] = (s) => l(c).moveGroup(-1))
1399
1402
  }, " ↑ " + t(l(i).outer), 9, mt),
1400
1403
  a("button", {
1401
1404
  type: "button",
1402
1405
  disabled: e.readonly || l(N) >= l(G).length - 1,
1403
1406
  "aria-label": l(i).moveDown,
1404
- onClick: m[19] || (m[19] = (d) => l(c).moveGroup(1))
1407
+ onClick: m[19] || (m[19] = (s) => l(c).moveGroup(1))
1405
1408
  }, " ↓ " + t(l(i).inner), 9, ct),
1406
1409
  a("button", {
1407
1410
  type: "button",
1408
1411
  disabled: e.readonly,
1409
1412
  onClick: m[20] || (m[20] = //@ts-ignore
1410
- (...d) => l(c).removeGroup && l(c).removeGroup(...d))
1413
+ (...s) => l(c).removeGroup && l(c).removeGroup(...s))
1411
1414
  }, t(l(i).remove), 9, bt)
1412
1415
  ])
1413
1416
  ], 64)) : R("", !0),
@@ -1416,21 +1419,21 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1416
1419
  class: "mr-rule-editor__primary",
1417
1420
  disabled: e.readonly,
1418
1421
  onClick: m[21] || (m[21] = //@ts-ignore
1419
- (...d) => l(c).applyGroups && l(c).applyGroups(...d))
1422
+ (...s) => l(c).applyGroups && l(c).applyGroups(...s))
1420
1423
  }, t(l(i).apply), 9, vt)
1421
1424
  ])) : l(v) === "conditions" ? (o(), n("div", gt, [
1422
1425
  a("label", null, [
1423
1426
  h(t(l(i).column), 1),
1424
1427
  $(a("select", {
1425
1428
  "aria-label": l(i).column,
1426
- "onUpdate:modelValue": m[22] || (m[22] = (d) => Q(K) ? K.value = d : null),
1429
+ "onUpdate:modelValue": m[22] || (m[22] = (s) => Q(K) ? K.value = s : null),
1427
1430
  disabled: e.readonly,
1428
- onChange: m[23] || (m[23] = (d) => l(c).loadCondition(-1))
1431
+ onChange: m[23] || (m[23] = (s) => l(c).loadCondition(-1))
1429
1432
  }, [
1430
- (o(!0), n(k, null, w(e.list.columns, (d) => (o(), n("option", {
1431
- key: d.field,
1432
- value: d.field
1433
- }, t(d.header || d.field), 9, ft))), 128))
1433
+ (o(!0), n(k, null, w(e.list.columns, (s) => (o(), n("option", {
1434
+ key: s.field,
1435
+ value: s.field
1436
+ }, t(s.header || s.field), 9, ft))), 128))
1434
1437
  ], 40, yt), [
1435
1438
  [D, l(K)]
1436
1439
  ])
@@ -1439,9 +1442,9 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1439
1442
  h(t(l(i).effect), 1),
1440
1443
  $(a("select", {
1441
1444
  "aria-label": l(i).effect,
1442
- "onUpdate:modelValue": m[24] || (m[24] = (d) => Q(r) ? r.value = d : null),
1445
+ "onUpdate:modelValue": m[24] || (m[24] = (s) => Q(r) ? r.value = s : null),
1443
1446
  disabled: e.readonly,
1444
- onChange: m[25] || (m[25] = (d) => l(c).loadCondition(-1))
1447
+ onChange: m[25] || (m[25] = (s) => l(c).loadCondition(-1))
1445
1448
  }, [
1446
1449
  a("option", kt, t(l(i).style), 1),
1447
1450
  a("option", Vt, t(l(i).cell), 1),
@@ -1456,30 +1459,30 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1456
1459
  "aria-label": l(i).existing,
1457
1460
  value: l(L),
1458
1461
  disabled: e.readonly,
1459
- onChange: m[26] || (m[26] = (d) => l(c).loadCondition(
1460
- Number(d.target.value)
1462
+ onChange: m[26] || (m[26] = (s) => l(c).loadCondition(
1463
+ Number(s.target.value)
1461
1464
  ))
1462
1465
  }, [
1463
1466
  a("option", xt, "+ " + t(l(i).newCondition), 1),
1464
- (o(!0), n(k, null, w(l(j)?.rules, (d, W) => (o(), n("option", {
1467
+ (o(!0), n(k, null, w(l(j)?.rules, (s, W) => (o(), n("option", {
1465
1468
  key: W,
1466
1469
  value: W
1467
- }, t(W + 1) + " · " + t(d.when.field) + " " + t(d.when.op) + " " + t(d.when.value), 9, Ut))), 128))
1470
+ }, t(W + 1) + " · " + t(s.when.field) + " " + t(s.when.op) + " " + t(s.when.value), 9, Ut))), 128))
1468
1471
  ], 40, wt)
1469
1472
  ])) : R("", !0),
1470
1473
  a("label", null, [
1471
1474
  h(t(l(i).condition), 1),
1472
1475
  $(a("select", {
1473
1476
  "aria-label": l(i).condition,
1474
- "onUpdate:modelValue": m[27] || (m[27] = (d) => l(s).field = d),
1477
+ "onUpdate:modelValue": m[27] || (m[27] = (s) => l(d).field = s),
1475
1478
  disabled: e.readonly
1476
1479
  }, [
1477
- (o(!0), n(k, null, w(l(y), (d) => (o(), n("option", {
1478
- key: d.field,
1479
- value: d.field
1480
- }, t(d.label), 9, Mt))), 128))
1480
+ (o(!0), n(k, null, w(l(f), (s) => (o(), n("option", {
1481
+ key: s.field,
1482
+ value: s.field
1483
+ }, t(s.label), 9, Mt))), 128))
1481
1484
  ], 8, St), [
1482
- [D, l(s).field]
1485
+ [D, l(d).field]
1483
1486
  ])
1484
1487
  ]),
1485
1488
  a("div", Ft, [
@@ -1487,23 +1490,23 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1487
1490
  h(t(l(i).comparison), 1),
1488
1491
  $(a("select", {
1489
1492
  "aria-label": l(i).comparison,
1490
- "onUpdate:modelValue": m[28] || (m[28] = (d) => l(s).op = d),
1493
+ "onUpdate:modelValue": m[28] || (m[28] = (s) => l(d).op = s),
1491
1494
  disabled: e.readonly
1492
1495
  }, [
1493
- (o(), n(k, null, w([">", ">=", "<", "<=", "==", "!="], (d) => a("option", {
1494
- key: d,
1495
- value: d
1496
- }, t(d), 9, Rt)), 64))
1496
+ (o(), n(k, null, w([">", ">=", "<", "<=", "==", "!="], (s) => a("option", {
1497
+ key: s,
1498
+ value: s
1499
+ }, t(s), 9, Rt)), 64))
1497
1500
  ], 8, Et), [
1498
- [D, l(s).op]
1501
+ [D, l(d).op]
1499
1502
  ])
1500
1503
  ]),
1501
1504
  a("label", null, [
1502
1505
  h(t(l(i).threshold), 1),
1503
1506
  a("input", {
1504
- value: l(s).value,
1507
+ value: l(d).value,
1505
1508
  disabled: e.readonly,
1506
- onInput: m[29] || (m[29] = (d) => l(c).setThreshold(d.target.value))
1509
+ onInput: m[29] || (m[29] = (s) => l(c).setThreshold(s.target.value))
1507
1510
  }, null, 40, Kt)
1508
1511
  ])
1509
1512
  ]),
@@ -1512,7 +1515,7 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1512
1515
  a("label", null, [
1513
1516
  h(t(l(i).color), 1),
1514
1517
  $(a("input", {
1515
- "onUpdate:modelValue": m[30] || (m[30] = (d) => l(V).color = d),
1518
+ "onUpdate:modelValue": m[30] || (m[30] = (s) => l(V).color = s),
1516
1519
  type: "color",
1517
1520
  disabled: e.readonly
1518
1521
  }, null, 8, Dt), [
@@ -1522,7 +1525,7 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1522
1525
  a("label", null, [
1523
1526
  h(t(l(i).background), 1),
1524
1527
  $(a("input", {
1525
- "onUpdate:modelValue": m[31] || (m[31] = (d) => l(V).backgroundColor = d),
1528
+ "onUpdate:modelValue": m[31] || (m[31] = (s) => l(V).backgroundColor = s),
1526
1529
  type: "color",
1527
1530
  disabled: e.readonly
1528
1531
  }, null, 8, Nt), [
@@ -1532,7 +1535,7 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1532
1535
  ]),
1533
1536
  a("label", Tt, [
1534
1537
  $(a("input", {
1535
- "onUpdate:modelValue": m[32] || (m[32] = (d) => l(V).bold = d),
1538
+ "onUpdate:modelValue": m[32] || (m[32] = (s) => l(V).bold = s),
1536
1539
  type: "checkbox",
1537
1540
  disabled: e.readonly
1538
1541
  }, null, 8, Bt), [
@@ -1546,13 +1549,13 @@ const _l = ["aria-label"], pl = ["aria-label"], ea = ["aria-selected", "onClick"
1546
1549
  type: "button",
1547
1550
  class: "mr-rule-editor__primary",
1548
1551
  disabled: e.readonly,
1549
- onClick: m[33] || (m[33] = (d) => l(c).applyCondition())
1552
+ onClick: m[33] || (m[33] = (s) => l(c).applyCondition())
1550
1553
  }, t(l(i).apply), 9, Lt),
1551
1554
  l(L) >= 0 || l(r) !== "style" ? (o(), n("button", {
1552
1555
  key: 0,
1553
1556
  type: "button",
1554
1557
  disabled: e.readonly,
1555
- onClick: m[34] || (m[34] = (d) => l(c).applyCondition(!0))
1558
+ onClick: m[34] || (m[34] = (s) => l(c).applyCondition(!0))
1556
1559
  }, t(l(i).removeCondition), 9, Wt)) : R("", !0)
1557
1560
  ])
1558
1561
  ])) : (o(), ae(kl, {