@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.
- package/README.md +2 -2
- package/dist/RuleEditor-CskN5Fr3.cjs +1 -0
- package/dist/{RuleEditor-ynnUEK0s.js → RuleEditor-CtJFzKuY.js} +315 -312
- package/dist/designer.cjs +2 -2
- package/dist/designer.js +601 -601
- package/package.json +1 -1
- package/dist/RuleEditor-N4qnMZ-Z.cjs +0 -1
|
@@ -14,7 +14,7 @@ function he(e, J) {
|
|
|
14
14
|
rowFields: [],
|
|
15
15
|
columnFields: [],
|
|
16
16
|
measures: []
|
|
17
|
-
}), v = A(),
|
|
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,
|
|
25
|
+
function N(g, U) {
|
|
26
26
|
const F = /* @__PURE__ */ new Map();
|
|
27
|
-
for (const T of (
|
|
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
|
|
37
|
+
function M() {
|
|
38
38
|
x.value = e.mode === "detail" ? !!e.list.detail : !!e.list.matrix;
|
|
39
|
-
const g =
|
|
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],
|
|
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,
|
|
63
|
-
if (
|
|
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
|
|
73
|
+
} else U || (c.value.columns = c.value.columns.filter(
|
|
74
74
|
(F) => F.field !== g
|
|
75
75
|
));
|
|
76
76
|
}
|
|
77
|
-
function L(g,
|
|
77
|
+
function L(g, U, F) {
|
|
78
78
|
const B = i.value[g];
|
|
79
|
-
i.value[g] = F ? [.../* @__PURE__ */ new Set([...B,
|
|
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
|
|
87
|
+
function d(g) {
|
|
88
88
|
i.value.measures = i.value.measures.filter(
|
|
89
|
-
(
|
|
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
|
|
97
|
+
const U = be(g.slice(0, 1e3), {
|
|
98
98
|
...i.value,
|
|
99
99
|
maxInputRows: 1e3
|
|
100
100
|
});
|
|
101
101
|
v.value = {
|
|
102
|
-
columns:
|
|
103
|
-
rows:
|
|
104
|
-
(F) =>
|
|
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:
|
|
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:
|
|
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" },
|
|
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:
|
|
163
|
+
matrix: f,
|
|
164
164
|
datasets: C,
|
|
165
165
|
sourceFields: G,
|
|
166
166
|
childFields: N,
|
|
167
|
-
error:
|
|
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] = (
|
|
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] = (
|
|
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), (
|
|
193
|
-
key:
|
|
194
|
-
value:
|
|
195
|
-
}, t(
|
|
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] = (
|
|
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), (
|
|
207
|
-
key:
|
|
208
|
-
value:
|
|
209
|
-
}, t(
|
|
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] = (
|
|
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), (
|
|
223
|
-
key:
|
|
224
|
-
value:
|
|
225
|
-
}, t(
|
|
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] = (
|
|
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), (
|
|
240
|
-
key:
|
|
241
|
-
value:
|
|
242
|
-
}, t(
|
|
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), (
|
|
250
|
-
key:
|
|
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 ===
|
|
254
|
+
checked: l(v).columns.some((V) => V.field === d.field),
|
|
255
255
|
disabled: e.readonly,
|
|
256
256
|
onChange: (V) => l(c).toggleChildColumn(
|
|
257
|
-
|
|
257
|
+
d.field,
|
|
258
258
|
V.target.checked
|
|
259
259
|
)
|
|
260
260
|
}, null, 40, Be),
|
|
261
|
-
h(t(
|
|
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] = (
|
|
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] = (
|
|
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] = (
|
|
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"], (
|
|
302
|
-
key:
|
|
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[
|
|
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(
|
|
311
|
+
checked: l(f)[d].includes(V.field),
|
|
312
312
|
disabled: e.readonly,
|
|
313
313
|
onChange: (u) => l(c).toggleDimension(
|
|
314
|
-
|
|
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(
|
|
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) =>
|
|
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,
|
|
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) =>
|
|
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,
|
|
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) =>
|
|
362
|
+
"onUpdate:modelValue": (u) => d.label = u,
|
|
363
363
|
disabled: e.readonly,
|
|
364
|
-
placeholder:
|
|
364
|
+
placeholder: d.field
|
|
365
365
|
}, null, 8, Ye), [
|
|
366
|
-
[H,
|
|
366
|
+
[H, d.label]
|
|
367
367
|
])
|
|
368
368
|
]),
|
|
369
|
-
|
|
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) =>
|
|
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,
|
|
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) =>
|
|
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",
|
|
393
|
+
a("option", sl, t(e.messages.decimal), 1)
|
|
394
394
|
], 8, al), [
|
|
395
|
-
[D,
|
|
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) =>
|
|
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,
|
|
407
|
+
}, null, 8, dl), [
|
|
408
408
|
[
|
|
409
409
|
H,
|
|
410
|
-
|
|
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(
|
|
425
|
+
disabled: e.readonly || l(f).measures.length >= 32,
|
|
426
426
|
onClick: r[8] || (r[8] = //@ts-ignore
|
|
427
|
-
(...
|
|
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] = (
|
|
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(
|
|
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] = (
|
|
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(
|
|
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] = (
|
|
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(
|
|
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
|
-
(...
|
|
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
|
-
(...
|
|
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, (
|
|
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, (
|
|
505
|
-
(o(!0), n(k, null, w(
|
|
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(
|
|
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
|
|
543
|
+
function f(r) {
|
|
544
544
|
x.readonly || O("update:modelValue", r);
|
|
545
545
|
}
|
|
546
546
|
function C(r) {
|
|
547
|
-
|
|
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
|
|
554
|
-
|
|
555
|
-
op:
|
|
556
|
-
args:
|
|
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,
|
|
560
|
-
"args" in x.modelValue &&
|
|
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 ?
|
|
563
|
+
(V, u) => u === r ? d : V
|
|
564
564
|
)
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function M(r) {
|
|
568
568
|
if (!("args" in x.modelValue)) return;
|
|
569
|
-
const
|
|
570
|
-
|
|
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,
|
|
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)) &&
|
|
578
|
+
v.value === "number" ? r.trim() && Number.isFinite(Number(r)) && f({ value: Number(r) }) : f({ value: r });
|
|
579
579
|
}
|
|
580
|
-
function L(r,
|
|
580
|
+
function L(r, d) {
|
|
581
581
|
if (!("aggregate" in x.modelValue)) return;
|
|
582
|
-
const V = { ...x.modelValue, [r]:
|
|
583
|
-
r === "aggregate" && (V.aggregate =
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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": (
|
|
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: (
|
|
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:
|
|
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
|
-
}),
|
|
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
|
|
744
|
-
b.set(
|
|
745
|
-
for (const
|
|
746
|
-
b.has(
|
|
747
|
-
for (const
|
|
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(
|
|
751
|
-
return [...b].map(([
|
|
752
|
-
}),
|
|
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
|
-
|
|
756
|
+
f.value = I(
|
|
757
757
|
e.list.groups ?? (e.list.groupBy ? [e.list.groupBy] : [])
|
|
758
|
-
)
|
|
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
|
|
763
|
+
function U(b) {
|
|
762
764
|
i.value = b, v.value = I(
|
|
763
|
-
e.list.computed?.find((
|
|
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((
|
|
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
|
|
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
|
|
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((
|
|
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
|
-
(
|
|
813
|
-
), B(b) &&
|
|
814
|
+
(y) => y.field !== i.value
|
|
815
|
+
), B(b) && U("");
|
|
814
816
|
}
|
|
815
|
-
function
|
|
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
|
|
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 =
|
|
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 (
|
|
833
|
-
c.value =
|
|
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
|
|
840
|
-
v.value.groupBy =
|
|
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
|
|
843
|
-
|
|
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 =
|
|
851
|
+
}), C.value = f.value.length - 1;
|
|
850
852
|
}
|
|
851
|
-
function
|
|
852
|
-
const
|
|
853
|
-
E < 0 || E >=
|
|
854
|
-
|
|
855
|
-
|
|
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
|
-
|
|
861
|
+
f.value.splice(C.value, 1), C.value = Math.max(
|
|
860
862
|
0,
|
|
861
|
-
Math.min(C.value,
|
|
863
|
+
Math.min(C.value, f.value.length - 1)
|
|
862
864
|
);
|
|
863
865
|
}
|
|
864
866
|
function oe() {
|
|
865
|
-
|
|
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(
|
|
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
|
|
877
|
-
K.value = I(
|
|
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
|
|
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 =
|
|
891
|
-
|
|
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
|
|
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 (
|
|
900
|
-
b ? delete
|
|
901
|
-
else if (
|
|
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(
|
|
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:
|
|
925
|
+
groups: f,
|
|
923
926
|
groupIndex: C,
|
|
924
|
-
currentGroup:
|
|
927
|
+
currentGroup: d,
|
|
925
928
|
column: G,
|
|
926
929
|
currentColumn: V,
|
|
927
930
|
conditionIndex: N,
|
|
928
|
-
effect:
|
|
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:
|
|
938
|
+
loadComputed: U,
|
|
936
939
|
applyComputed: T,
|
|
937
940
|
removeComputed: m,
|
|
938
|
-
check:
|
|
941
|
+
check: s,
|
|
939
942
|
setExpression: W,
|
|
940
|
-
toggleGroupField:
|
|
941
|
-
addGroup:
|
|
942
|
-
moveGroup:
|
|
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
|
-
},
|
|
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"],
|
|
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:
|
|
1004
|
+
fields: f,
|
|
1002
1005
|
formula: C,
|
|
1003
1006
|
groups: G,
|
|
1004
1007
|
groupIndex: N,
|
|
1005
|
-
currentGroup:
|
|
1008
|
+
currentGroup: M,
|
|
1006
1009
|
column: K,
|
|
1007
1010
|
currentColumn: j,
|
|
1008
1011
|
conditionIndex: L,
|
|
1009
1012
|
effect: r,
|
|
1010
|
-
when:
|
|
1013
|
+
when: d,
|
|
1011
1014
|
style: V,
|
|
1012
1015
|
error: u,
|
|
1013
1016
|
preview: g,
|
|
1014
|
-
diagnostics:
|
|
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
|
-
], (
|
|
1033
|
-
key:
|
|
1035
|
+
], (s) => a("button", {
|
|
1036
|
+
key: s,
|
|
1034
1037
|
type: "button",
|
|
1035
1038
|
role: "tab",
|
|
1036
|
-
"aria-selected": l(v) ===
|
|
1037
|
-
class: te({ "is-active": l(v) ===
|
|
1038
|
-
onClick: (W) => v.value =
|
|
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)[
|
|
1041
|
-
|
|
1042
|
-
|
|
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] = (
|
|
1055
|
+
onChange: m[0] || (m[0] = (s) => l(c).loadComputed(s.target.value))
|
|
1053
1056
|
}, [
|
|
1054
|
-
a("option",
|
|
1055
|
-
(o(!0), n(k, null, w(e.list.computed, (
|
|
1056
|
-
key:
|
|
1057
|
-
value:
|
|
1058
|
-
}, t(
|
|
1059
|
-
], 40,
|
|
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] = (
|
|
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] = (
|
|
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, (
|
|
1081
|
-
key:
|
|
1082
|
-
value:
|
|
1083
|
-
}, t(l(i)[
|
|
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] = (
|
|
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(
|
|
1105
|
-
key:
|
|
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(
|
|
1112
|
+
checked: l(C).groupBy?.includes(s.field),
|
|
1110
1113
|
disabled: e.readonly,
|
|
1111
1114
|
onChange: (W) => l(c).toggleGroupField(
|
|
1112
|
-
|
|
1115
|
+
s.field,
|
|
1113
1116
|
W.target.checked
|
|
1114
1117
|
)
|
|
1115
1118
|
}, null, 40, ga),
|
|
1116
|
-
h(t(
|
|
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(
|
|
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] = (
|
|
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] = (
|
|
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] = (
|
|
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(
|
|
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(
|
|
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
|
-
(...
|
|
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(
|
|
1194
|
+
disabled: e.readonly || !l(U).valid,
|
|
1192
1195
|
onClick: m[8] || (m[8] = //@ts-ignore
|
|
1193
|
-
(...
|
|
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
|
-
(...
|
|
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), (
|
|
1207
|
-
key:
|
|
1209
|
+
(o(!0), n(k, null, w(l(g), (s) => (o(), n(k, {
|
|
1210
|
+
key: s.row
|
|
1208
1211
|
}, [
|
|
1209
|
-
a("dt", null, t(
|
|
1210
|
-
a("dd", null, t(
|
|
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(
|
|
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] = (
|
|
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), (
|
|
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(
|
|
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
|
-
(...
|
|
1241
|
+
(...s) => l(c).addGroup && l(c).addGroup(...s))
|
|
1239
1242
|
}, " + " + t(l(i).addGroup), 9, La)
|
|
1240
1243
|
]),
|
|
1241
|
-
l(
|
|
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] = (
|
|
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(
|
|
1250
|
-
key:
|
|
1251
|
-
value:
|
|
1252
|
-
}, t(
|
|
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(
|
|
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] = (
|
|
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(
|
|
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] = (
|
|
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(
|
|
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] = (
|
|
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(
|
|
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] = (
|
|
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(
|
|
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(
|
|
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": (
|
|
1314
|
+
"onUpdate:modelValue": (S) => s.field = S,
|
|
1312
1315
|
disabled: e.readonly
|
|
1313
1316
|
}, [
|
|
1314
|
-
(o(!0), n(k, null, w(l(
|
|
1315
|
-
key:
|
|
1316
|
-
value:
|
|
1317
|
-
}, t(
|
|
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,
|
|
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": (
|
|
1329
|
+
"onUpdate:modelValue": (S) => s.op = S,
|
|
1327
1330
|
disabled: e.readonly
|
|
1328
1331
|
}, [
|
|
1329
|
-
(o(!0), n(k, null, w(l(B).aggregates, (
|
|
1330
|
-
key:
|
|
1331
|
-
value:
|
|
1332
|
-
}, t(l(i)[
|
|
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,
|
|
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": (
|
|
1345
|
+
"onUpdate:modelValue": (S) => s.valueField = S,
|
|
1343
1346
|
disabled: e.readonly
|
|
1344
1347
|
}, [
|
|
1345
|
-
a("option", pa, t(
|
|
1346
|
-
(o(!0), n(k, null, w(l(
|
|
1347
|
-
key:
|
|
1348
|
-
value:
|
|
1349
|
-
}, t(
|
|
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,
|
|
1354
|
+
[D, s.valueField]
|
|
1352
1355
|
])
|
|
1353
1356
|
]),
|
|
1354
|
-
|
|
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": (
|
|
1361
|
+
"onUpdate:modelValue": (S) => s.weightField = S,
|
|
1359
1362
|
disabled: e.readonly
|
|
1360
1363
|
}, [
|
|
1361
|
-
(o(!0), n(k, null, w(l(
|
|
1362
|
-
key:
|
|
1363
|
-
value:
|
|
1364
|
-
}, t(
|
|
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,
|
|
1369
|
+
[D, s.weightField]
|
|
1367
1370
|
])
|
|
1368
1371
|
])) : R("", !0),
|
|
1369
|
-
a("div",
|
|
1372
|
+
a("div", st, [
|
|
1370
1373
|
$(a("select", {
|
|
1371
|
-
"onUpdate:modelValue": (
|
|
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,
|
|
1378
|
-
[D,
|
|
1380
|
+
], 8, dt), [
|
|
1381
|
+
[D, s.numeric]
|
|
1379
1382
|
]),
|
|
1380
1383
|
a("button", {
|
|
1381
1384
|
type: "button",
|
|
1382
1385
|
disabled: e.readonly,
|
|
1383
|
-
onClick: (
|
|
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
|
-
(...
|
|
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] = (
|
|
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] = (
|
|
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
|
-
(...
|
|
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
|
-
(...
|
|
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] = (
|
|
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] = (
|
|
1431
|
+
onChange: m[23] || (m[23] = (s) => l(c).loadCondition(-1))
|
|
1429
1432
|
}, [
|
|
1430
|
-
(o(!0), n(k, null, w(e.list.columns, (
|
|
1431
|
-
key:
|
|
1432
|
-
value:
|
|
1433
|
-
}, t(
|
|
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] = (
|
|
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] = (
|
|
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] = (
|
|
1460
|
-
Number(
|
|
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, (
|
|
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(
|
|
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] = (
|
|
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(
|
|
1478
|
-
key:
|
|
1479
|
-
value:
|
|
1480
|
-
}, t(
|
|
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(
|
|
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] = (
|
|
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([">", ">=", "<", "<=", "==", "!="], (
|
|
1494
|
-
key:
|
|
1495
|
-
value:
|
|
1496
|
-
}, t(
|
|
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(
|
|
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(
|
|
1507
|
+
value: l(d).value,
|
|
1505
1508
|
disabled: e.readonly,
|
|
1506
|
-
onInput: m[29] || (m[29] = (
|
|
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] = (
|
|
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] = (
|
|
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] = (
|
|
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] = (
|
|
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] = (
|
|
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, {
|