@agile-team/mach-report 2.23.1 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -4
- package/dist/{ExcelBindingWizard-BrTmdo7f.cjs → ExcelBindingWizard-BgJG-T6k.cjs} +1 -1
- package/dist/{ExcelBindingWizard-CcDMLO8Q.js → ExcelBindingWizard-NQ_v396s.js} +3 -3
- package/dist/ParamEditor-DEP38mBp.cjs +1 -0
- package/dist/ParamEditor-Z-3yodp5.js +750 -0
- package/dist/{ReportBatchPanel-CHxBtG9R.cjs → ReportBatchPanel-D33LjMrA.cjs} +1 -1
- package/dist/{ReportBatchPanel-CJB67WNd.js → ReportBatchPanel-DG8FV-5X.js} +2 -2
- package/dist/{ReportLabelStudio-Tplc1TLJ.js → ReportLabelStudio-BZp23_hA.js} +68 -68
- package/dist/ReportLabelStudio-Bz-xAayk.cjs +1 -0
- package/dist/ReportParamPanel-B27IGJjk.cjs +1 -0
- package/dist/{ReportParamPanel-GI43aGa0.js → ReportParamPanel-DGXzBzl2.js} +328 -298
- package/dist/ReportPreview-CilFAS9U.js +7170 -0
- package/dist/ReportPreview-dOOzPts2.cjs +6 -0
- package/dist/{ReportTemplateLibrary-KqX4E2sN.js → ReportTemplateLibrary-DpSGgvFa.js} +28 -28
- package/dist/{ReportTemplateLibrary-BFQIX0sg.cjs → ReportTemplateLibrary-uG1gENaW.cjs} +1 -1
- package/dist/{RuleEditor-OPX1awrH.js → RuleEditor-BONALh1Q.js} +846 -835
- package/dist/RuleEditor-bLXiRcxL.cjs +1 -0
- package/dist/{TemplateOutlinePanel-CVYKVLv_.cjs → TemplateOutlinePanel-C3nfHuaR.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-DQS-eOs6.js → TemplateOutlinePanel-JGBKeF3e.js} +10 -10
- package/dist/{TemplateReusePanel-CY6O93Zk.cjs → TemplateReusePanel-BKhgp6kg.cjs} +1 -1
- package/dist/{TemplateReusePanel-DKXiFTyB.js → TemplateReusePanel-DXQUO6nQ.js} +2 -2
- package/dist/TemplateReviewPanel-5RWFUUEf.cjs +1 -0
- package/dist/TemplateReviewPanel-DhL7Hapy.js +602 -0
- package/dist/analytics.d.cts +1 -1
- package/dist/analytics.d.ts +1 -1
- package/dist/artifact-integrity.json +98 -98
- package/dist/assets-BYdpkTIt.cjs +1 -0
- package/dist/assets-C4MIvzQ4.js +137 -0
- package/dist/auto-D-eDZa_V.cjs +1 -0
- package/dist/{auto-BB99S802.js → auto-umW_ozwr.js} +10 -10
- package/dist/capabilities-CN_kSVjO.js +121 -0
- package/dist/capabilities-D4nfhcvB.cjs +1 -0
- package/dist/cell-style-B6Qffrx8.js +37 -0
- package/dist/cell-style-y_uh1pZp.cjs +1 -0
- package/dist/{data-bar-IkI6VvMQ.js → data-bar-Bfh54sT4.js} +1 -1
- package/dist/data-bar-DzceAVeR.cjs +1 -0
- package/dist/designer-CCyj5WYS.js +7595 -0
- package/dist/designer-Cj7fn4Hh.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +143 -10
- package/dist/designer.d.ts +143 -10
- package/dist/designer.js +5 -5
- package/dist/diagnostic-collector-gB07PHy2.js +392 -0
- package/dist/diagnostic-collector-wASg6Fzs.cjs +1 -0
- package/dist/dom-CXWMmwh-.cjs +1 -0
- package/dist/{dom-JWrchIre.js → dom-DxdCMLzs.js} +185 -185
- package/dist/{encoding-CEd-dq9A.js → encoding-CEkBtlUP.js} +2 -2
- package/dist/{encoding-7lquyj0w.cjs → encoding-Cipno7dq.cjs} +1 -1
- package/dist/{font-loader-CNWXomuV.js → font-loader-D4NLIKJL.js} +1 -1
- package/dist/{font-loader-D8pI87fL.cjs → font-loader-p_SyTvqt.cjs} +1 -1
- package/dist/{grid-strokes-EoY66L2f.js → grid-strokes-DkZEZvcI.js} +1 -1
- package/dist/grid-strokes-RFMR91jn.cjs +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +48 -9
- package/dist/index.d.ts +48 -9
- package/dist/index.js +137 -136
- package/dist/json-snapshot-DQdkA_At.cjs +2 -0
- package/dist/{json-snapshot-BRnzKudk.js → json-snapshot-x0JpllWL.js} +919 -791
- package/dist/{pdf-DpMkW72B.cjs → pdf-C060D5UY.cjs} +31 -31
- package/dist/{pdf-CJToa81Z.js → pdf-DU8HelKd.js} +2499 -2492
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.d.cts +18 -0
- package/dist/pdf.d.ts +18 -0
- package/dist/pdf.js +2 -2
- package/dist/{plugin-BWTp-X7b.cjs → plugin-B_k23hut.cjs} +1 -1
- package/dist/{plugin-_BkUVc2z.js → plugin-CttO46hc.js} +1 -1
- package/dist/{prefill-CWGdnqQd.js → prefill-BkF9Fw_p.js} +13 -13
- package/dist/prefill-BvkuwooY.cjs +1 -0
- package/dist/prepared-CSywIEAZ.cjs +1 -0
- package/dist/prepared-Cyuh61fJ.js +128 -0
- package/dist/protocol-BwbJNVZl.cjs +1 -0
- package/dist/protocol-DwtxjXzO.js +96 -0
- package/dist/record-bindings-B7djSjNs.cjs +1 -0
- package/dist/{record-bindings-DatJZv_e.js → record-bindings-Cv7lFiof.js} +47 -47
- package/dist/{region-binding-workflow-l7NGfagJ.cjs → region-binding-workflow-COD8nISZ.cjs} +1 -1
- package/dist/{region-binding-workflow-DjrXuR1q.js → region-binding-workflow-D8I4QWRh.js} +2 -2
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/{rich-text-layout-Ciwa6D2o.js → rich-text-layout-Ch_N0Ubu.js} +1 -1
- package/dist/rich-text-layout-yJGuThtC.cjs +3 -0
- package/dist/runtime-BE30icyB.js +227 -0
- package/dist/runtime-DRSuy_SQ.cjs +1 -0
- package/dist/sbom.cdx.json +1 -1
- package/dist/server/node.d.cts +55 -7
- package/dist/server/node.d.ts +55 -7
- package/dist/server-node.cjs +5 -5
- package/dist/server-node.js +2742 -2417
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +51 -16
- package/dist/server.d.ts +51 -16
- package/dist/server.js +8 -8
- package/dist/style.css +1 -1
- package/dist/{template-catalog-DtrtT1FY.cjs → template-catalog-C0riwrx7.cjs} +1 -1
- package/dist/{template-catalog-CRuZL3pi.js → template-catalog-D_gl93va.js} +3 -3
- package/dist/template-fragments-CgzPdFKB.cjs +1 -0
- package/dist/{template-fragments-CPpGpQoz.js → template-fragments-D94ZZmPc.js} +2 -2
- package/dist/template-registry-BMScUmM4.cjs +1 -0
- package/dist/{template-registry-O0hNIOfB.js → template-registry-DZOtRY7t.js} +19 -19
- package/dist/{textwrap-D4ZksyMK.js → textwrap-BywMBMXM.js} +1 -1
- package/dist/textwrap-LhJkHWb1.cjs +4 -0
- package/dist/vue/async.d.cts +101 -22
- package/dist/vue/async.d.ts +101 -22
- package/dist/vue/index.d.cts +133 -34
- package/dist/vue/index.d.ts +133 -34
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +192 -162
- package/dist/{workbook-session-C6-SrnCT.cjs → workbook-session-DR2j6Hxm.cjs} +3 -3
- package/dist/{workbook-session-C9ZmCBwY.js → workbook-session-SzfILBJJ.js} +106 -107
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +55 -7
- package/dist/worker.d.ts +55 -7
- package/dist/worker.js +4 -4
- package/dist/xlsx/node.d.cts +30 -1
- package/dist/xlsx/node.d.ts +30 -1
- package/dist/xlsx-node.cjs +42 -42
- package/dist/xlsx-node.js +3908 -3889
- package/dist/xlsx.cjs +4 -4
- package/dist/xlsx.d.cts +20 -3
- package/dist/xlsx.d.ts +20 -3
- package/dist/xlsx.js +302 -295
- package/package.json +1 -1
- package/dist/ParamEditor-BGjovFUe.js +0 -737
- package/dist/ParamEditor-CeNp4_zQ.cjs +0 -1
- package/dist/ReportLabelStudio-g8PkqJWn.cjs +0 -1
- package/dist/ReportParamPanel-C7fZTllk.cjs +0 -1
- package/dist/ReportPreview-BoGBGyRr.cjs +0 -6
- package/dist/ReportPreview-QLONCyci.js +0 -6257
- package/dist/RuleEditor-BZUP9yvL.cjs +0 -1
- package/dist/TemplateReviewPanel-DbeNC8Ms.cjs +0 -1
- package/dist/TemplateReviewPanel-Dijwm9YE.js +0 -593
- package/dist/assets-D2gHc4Mz.cjs +0 -1
- package/dist/assets-T_gDeFaz.js +0 -132
- package/dist/auto-BrPWo7Xm.cjs +0 -1
- package/dist/capabilities-DiBj4Qgl.cjs +0 -1
- package/dist/capabilities-pg7j7VLT.js +0 -106
- package/dist/data-bar-CeZuFmYl.cjs +0 -1
- package/dist/designer-BZoVWTgl.js +0 -7172
- package/dist/designer-zS2uKJmY.cjs +0 -2
- package/dist/dom-ChE5D-L-.cjs +0 -1
- package/dist/grid-strokes-Be24LGuV.cjs +0 -1
- package/dist/json-snapshot-DNiIbpOr.cjs +0 -2
- package/dist/prefill-PaAy6wLk.cjs +0 -1
- package/dist/prepared-CJy_qk7d.js +0 -94
- package/dist/prepared-D0yCSxSO.cjs +0 -1
- package/dist/progress-BXzlVbIp.js +0 -29
- package/dist/progress-ByiOxUD3.js +0 -250
- package/dist/progress-DJBd9Rb9.cjs +0 -1
- package/dist/progress-WomPRP3B.cjs +0 -1
- package/dist/protocol-BG16rz6D.js +0 -90
- package/dist/protocol-wzhl1Fim.cjs +0 -1
- package/dist/record-bindings-MBxbeBsi.cjs +0 -1
- package/dist/rich-text-layout-DK7A_a5r.cjs +0 -3
- package/dist/runtime-DYMOS_gz.cjs +0 -1
- package/dist/runtime-PiCax9zQ.js +0 -171
- package/dist/template-fragments-GVjpew_q.cjs +0 -1
- package/dist/template-registry-DI59PXVK.cjs +0 -1
- package/dist/textwrap-DEHqAjKZ.cjs +0 -4
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { a as
|
|
3
|
-
import { r as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { c as
|
|
7
|
-
import { v as
|
|
8
|
-
import { c as
|
|
9
|
-
function
|
|
10
|
-
return typeof e == "string" || ("field" in e && e.field && W.add(e.field), "weightField" in e && e.weightField && W.add(e.weightField), "args" in e && e.condition &&
|
|
1
|
+
import { ref as G, computed as z, defineComponent as be, resolveComponent as ke, openBlock as i, createElementBlock as s, normalizeClass as fe, createElementVNode as a, createTextVNode as $, toDisplayString as t, createCommentVNode as N, Fragment as C, renderList as M, createVNode as ve, watch as te, withDirectives as F, isRef as ce, vModelCheckbox as re, unref as l, vModelSelect as O, vModelText as X, createBlock as $e, nextTick as Ee, normalizeStyle as Te, vShow as Ke } from "vue";
|
|
2
|
+
import { a as Ve, D as Le, u as Be, b as Oe, f as Ae } from "./designer-CCyj5WYS.js";
|
|
3
|
+
import { r as Ie, j as ye, v as We, e as Ge } from "./computed-f3pOqWLX.js";
|
|
4
|
+
import { _ as ge } from "./_plugin-vue_export-helper-8SL1F89S.js";
|
|
5
|
+
import { u as me } from "./useLocalDraft-BnhcxXk_.js";
|
|
6
|
+
import { c as Je } from "./matrix-C6e_r_vp.js";
|
|
7
|
+
import { v as we } from "./template-registry-DZOtRY7t.js";
|
|
8
|
+
import { c as je } from "./template-serialization-CWmHq7lX.js";
|
|
9
|
+
function Ce(e, W = /* @__PURE__ */ new Set()) {
|
|
10
|
+
return typeof e == "string" || ("field" in e && e.field && W.add(e.field), "weightField" in e && e.weightField && W.add(e.weightField), "args" in e && e.condition && Ie(e.condition).forEach((V) => W.add(V)), "args" in e && e.args.forEach((V) => Ce(V, W))), W;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return typeof e == "string" ? e : "value" in e ? e.value === null ? W.null : String(e.value) : "aggregate" in e ? `${W[e.aggregate]}(${e.field ?? W.allRows})` : "field" in e ? e.field : `${W[e.op]}(${e.args.map((
|
|
12
|
+
function Ue(e, W) {
|
|
13
|
+
return typeof e == "string" ? e : "value" in e ? e.value === null ? W.null : String(e.value) : "aggregate" in e ? `${W[e.aggregate]}(${e.field ?? W.allRows})` : "field" in e ? e.field : `${W[e.op]}(${e.args.map((V) => Ue(V, W)).join(", ")})`;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const j =
|
|
15
|
+
function He(e, W, V) {
|
|
16
|
+
const j = G("");
|
|
17
17
|
function w(T) {
|
|
18
18
|
const y = e.list.columns.find((L) => L.field === T)?.format;
|
|
19
|
-
return y && "digits" in y && y.digits !== void 0 ? `${y.digits} ${
|
|
19
|
+
return y && "digits" in y && y.digits !== void 0 ? `${y.digits} ${V.value.digits}` : void 0;
|
|
20
20
|
}
|
|
21
|
-
const U =
|
|
21
|
+
const U = z(() => {
|
|
22
22
|
const T = /* @__PURE__ */ new Map();
|
|
23
23
|
for (const y of e.datasetSchema?.fields ?? []) T.set(y.field, {
|
|
24
24
|
field: y.field,
|
|
@@ -27,31 +27,31 @@ function Ge(e, W, $) {
|
|
|
27
27
|
});
|
|
28
28
|
for (const y of e.list.columns) T.has(y.field) || T.set(y.field, { field: y.field, label: y.header || y.field, meta: y.semanticRole ?? "" });
|
|
29
29
|
return [...T.values()];
|
|
30
|
-
}), r =
|
|
30
|
+
}), r = z(() => {
|
|
31
31
|
const T = j.value.trim().toLocaleLowerCase();
|
|
32
32
|
return U.value.filter((y) => `${y.field} ${y.label} ${y.meta}`.toLocaleLowerCase().includes(T));
|
|
33
|
-
}), d =
|
|
34
|
-
const T = [...
|
|
33
|
+
}), d = z(() => Ue(W.value.expression, V.value)), b = z(() => {
|
|
34
|
+
const T = [...Ce(W.value.expression)];
|
|
35
35
|
return (e.datasets?.[e.list.dataset] ?? []).slice(0, 5).map((y, L) => ({
|
|
36
36
|
row: L + 1,
|
|
37
|
-
values: T.map((
|
|
37
|
+
values: T.map((x) => `${x} = ${y[x] == null ? V.value.null : String(y[x])}`).join(" · ")
|
|
38
38
|
}));
|
|
39
39
|
});
|
|
40
|
-
return { query: j, matches: r, fieldWindow:
|
|
40
|
+
return { query: j, matches: r, fieldWindow: z(() => r.value.slice(0, 50)), expression: d, sources: b };
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const Pe = { class: "mr-predicate__mode" }, ze = ["aria-label", "value", "disabled"], qe = { value: "comparison" }, Ze = {
|
|
43
43
|
key: 0,
|
|
44
44
|
value: "all"
|
|
45
|
-
},
|
|
45
|
+
}, Qe = {
|
|
46
46
|
key: 1,
|
|
47
47
|
value: "any"
|
|
48
|
-
},
|
|
48
|
+
}, Xe = {
|
|
49
49
|
key: 2,
|
|
50
50
|
value: "not"
|
|
51
|
-
},
|
|
51
|
+
}, Ye = { class: "mr-predicate__pair" }, pe = ["aria-label", "value", "disabled"], _e = ["value"], el = ["aria-label", "value", "disabled"], ll = ["value"], al = ["value"], tl = ["aria-label", "value", "disabled"], nl = { value: "text" }, il = { value: "number" }, sl = { value: "decimal" }, dl = { value: "date" }, ol = { value: "boolean" }, ul = {
|
|
52
52
|
key: 0,
|
|
53
53
|
class: "mr-predicate__pair"
|
|
54
|
-
},
|
|
54
|
+
}, rl = ["value", "disabled"], cl = ["value", "disabled"], ml = ["aria-label", "value", "disabled"], vl = { value: "value" }, bl = { value: "field" }, gl = ["value", "aria-label", "disabled"], fl = ["value"], yl = ["value", "aria-label", "disabled"], hl = ["aria-label", "disabled", "onClick"], kl = ["disabled"], $l = /* @__PURE__ */ be({
|
|
55
55
|
__name: "ReportPredicateEditor",
|
|
56
56
|
props: {
|
|
57
57
|
modelValue: {},
|
|
@@ -62,26 +62,26 @@ const Je = { class: "mr-predicate__mode" }, je = ["aria-label", "value", "disabl
|
|
|
62
62
|
},
|
|
63
63
|
emits: ["update:modelValue"],
|
|
64
64
|
setup(e, { emit: W }) {
|
|
65
|
-
const
|
|
65
|
+
const V = e, j = W, w = z(() => "all" in V.modelValue ? "all" : "any" in V.modelValue ? "any" : "not" in V.modelValue ? "not" : "comparison"), U = z(() => "all" in V.modelValue ? V.modelValue.all : "any" in V.modelValue ? V.modelValue.any : "not" in V.modelValue ? [V.modelValue.not] : []), r = z(() => "field" in V.modelValue ? V.modelValue : void 0);
|
|
66
66
|
function d(n) {
|
|
67
|
-
|
|
67
|
+
V.readonly || j("update:modelValue", n);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return { field:
|
|
69
|
+
function b() {
|
|
70
|
+
return { field: V.fields[0]?.field ?? "", op: ">", value: 0, valueType: "number" };
|
|
71
71
|
}
|
|
72
72
|
function T(n) {
|
|
73
|
-
const v =
|
|
74
|
-
d(n === "all" ? { all: [v] } : n === "any" ? { any: [v] } : n === "not" ? { not: v } :
|
|
73
|
+
const v = V.modelValue;
|
|
74
|
+
d(n === "all" ? { all: [v] } : n === "any" ? { any: [v] } : n === "not" ? { not: v } : b());
|
|
75
75
|
}
|
|
76
76
|
function y(n, v) {
|
|
77
77
|
const o = [...U.value];
|
|
78
78
|
v ? o[n] = v : o.splice(n, 1), d(w.value === "all" ? { all: o } : w.value === "any" ? { any: o } : { not: o[0] });
|
|
79
79
|
}
|
|
80
80
|
function L() {
|
|
81
|
-
const n = [...U.value,
|
|
81
|
+
const n = [...U.value, b()];
|
|
82
82
|
d(w.value === "all" ? { all: n } : { any: n });
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function x(n) {
|
|
85
85
|
r.value && d({ ...r.value, ...n });
|
|
86
86
|
}
|
|
87
87
|
function K(n) {
|
|
@@ -89,57 +89,57 @@ const Je = { class: "mr-predicate__mode" }, je = ["aria-label", "value", "disabl
|
|
|
89
89
|
const v = { ...r.value, op: n };
|
|
90
90
|
delete v.right, delete v.values, n === "between" ? (v.values = [0, 1], delete v.value) : n === "isNull" || n === "isNotNull" ? delete v.value : v.value = n === "contains" ? "" : 0, d(v);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function H(n) {
|
|
93
93
|
const v = r.value?.valueType ?? r.value?.numeric;
|
|
94
94
|
return v === "number" && n.trim() && Number.isFinite(Number(n)) ? Number(n) : v === "boolean" ? n === "true" : n;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function J(n, v) {
|
|
97
97
|
if (r.value)
|
|
98
98
|
if (v !== void 0) {
|
|
99
99
|
const o = [...r.value.values ?? [0, 1]];
|
|
100
|
-
o[v] =
|
|
101
|
-
} else
|
|
100
|
+
o[v] = H(n), x({ values: o });
|
|
101
|
+
} else x({ value: H(n), right: void 0 });
|
|
102
102
|
}
|
|
103
103
|
function c(n) {
|
|
104
|
-
|
|
104
|
+
x(n === "field" ? { value: void 0, right: { field: V.fields[0]?.field ?? "" } } : { value: 0, right: void 0 });
|
|
105
105
|
}
|
|
106
106
|
return (n, v) => {
|
|
107
|
-
const o =
|
|
107
|
+
const o = ke("ReportPredicateEditor", !0);
|
|
108
108
|
return i(), s("div", {
|
|
109
|
-
class:
|
|
109
|
+
class: fe(["mr-predicate", { "is-nested": (e.depth ?? 0) > 0 }])
|
|
110
110
|
}, [
|
|
111
|
-
a("label",
|
|
112
|
-
|
|
111
|
+
a("label", Pe, [
|
|
112
|
+
$(t(e.messages.conditionGroup), 1),
|
|
113
113
|
a("select", {
|
|
114
114
|
"aria-label": e.messages.conditionGroup,
|
|
115
115
|
value: w.value,
|
|
116
116
|
disabled: e.readonly,
|
|
117
117
|
onChange: v[0] || (v[0] = (h) => T(h.target.value))
|
|
118
118
|
}, [
|
|
119
|
-
a("option",
|
|
120
|
-
(e.depth ?? 0) < 8 ? (i(), s("option",
|
|
121
|
-
(e.depth ?? 0) < 8 ? (i(), s("option",
|
|
122
|
-
(e.depth ?? 0) < 8 ? (i(), s("option",
|
|
123
|
-
], 40,
|
|
119
|
+
a("option", qe, t(e.messages.comparison), 1),
|
|
120
|
+
(e.depth ?? 0) < 8 ? (i(), s("option", Ze, t(e.messages.all), 1)) : N("", !0),
|
|
121
|
+
(e.depth ?? 0) < 8 ? (i(), s("option", Qe, t(e.messages.any), 1)) : N("", !0),
|
|
122
|
+
(e.depth ?? 0) < 8 ? (i(), s("option", Xe, t(e.messages.not), 1)) : N("", !0)
|
|
123
|
+
], 40, ze)
|
|
124
124
|
]),
|
|
125
125
|
r.value ? (i(), s(C, { key: 0 }, [
|
|
126
|
-
a("div",
|
|
126
|
+
a("div", Ye, [
|
|
127
127
|
a("label", null, [
|
|
128
|
-
|
|
128
|
+
$(t(e.messages.field), 1),
|
|
129
129
|
a("select", {
|
|
130
130
|
"aria-label": e.messages.condition,
|
|
131
131
|
value: r.value.field,
|
|
132
132
|
disabled: e.readonly,
|
|
133
|
-
onChange: v[1] || (v[1] = (h) =>
|
|
133
|
+
onChange: v[1] || (v[1] = (h) => x({ field: h.target.value }))
|
|
134
134
|
}, [
|
|
135
135
|
(i(!0), s(C, null, M(e.fields, (h) => (i(), s("option", {
|
|
136
136
|
key: h.field,
|
|
137
137
|
value: h.field
|
|
138
|
-
}, t(h.label), 9,
|
|
139
|
-
], 40,
|
|
138
|
+
}, t(h.label), 9, _e))), 128))
|
|
139
|
+
], 40, pe)
|
|
140
140
|
]),
|
|
141
141
|
a("label", null, [
|
|
142
|
-
|
|
142
|
+
$(t(e.messages.comparison), 1),
|
|
143
143
|
a("select", {
|
|
144
144
|
"aria-label": e.messages.comparison,
|
|
145
145
|
value: r.value.op,
|
|
@@ -149,78 +149,78 @@ const Je = { class: "mr-predicate__mode" }, je = ["aria-label", "value", "disabl
|
|
|
149
149
|
(i(), s(C, null, M([">", ">=", "<", "<=", "==", "!="], (h) => a("option", {
|
|
150
150
|
key: h,
|
|
151
151
|
value: h
|
|
152
|
-
}, t(h), 9,
|
|
152
|
+
}, t(h), 9, ll)), 64)),
|
|
153
153
|
(i(), s(C, null, M(["between", "contains", "isNull", "isNotNull"], (h) => a("option", {
|
|
154
154
|
key: h,
|
|
155
155
|
value: h
|
|
156
|
-
}, t(e.messages[h]), 9,
|
|
157
|
-
], 40,
|
|
156
|
+
}, t(e.messages[h]), 9, al)), 64))
|
|
157
|
+
], 40, el)
|
|
158
158
|
])
|
|
159
159
|
]),
|
|
160
|
-
["isNull", "isNotNull"].includes(r.value.op) ?
|
|
160
|
+
["isNull", "isNotNull"].includes(r.value.op) ? N("", !0) : (i(), s(C, { key: 0 }, [
|
|
161
161
|
a("label", null, [
|
|
162
|
-
|
|
162
|
+
$(t(e.messages.valueKind), 1),
|
|
163
163
|
a("select", {
|
|
164
164
|
"aria-label": e.messages.valueKind,
|
|
165
165
|
value: r.value.valueType ?? r.value.numeric ?? (typeof r.value.value == "number" ? "number" : "text"),
|
|
166
166
|
disabled: e.readonly,
|
|
167
|
-
onChange: v[3] || (v[3] = (h) =>
|
|
167
|
+
onChange: v[3] || (v[3] = (h) => x({ valueType: h.target.value }))
|
|
168
168
|
}, [
|
|
169
|
-
a("option",
|
|
170
|
-
a("option",
|
|
171
|
-
a("option",
|
|
172
|
-
a("option",
|
|
173
|
-
a("option",
|
|
174
|
-
], 40,
|
|
169
|
+
a("option", nl, t(e.messages.text), 1),
|
|
170
|
+
a("option", il, t(e.messages.number), 1),
|
|
171
|
+
a("option", sl, t(e.messages.decimal), 1),
|
|
172
|
+
a("option", dl, t(e.messages.calendarDate), 1),
|
|
173
|
+
a("option", ol, t(e.messages.boolean), 1)
|
|
174
|
+
], 40, tl)
|
|
175
175
|
]),
|
|
176
|
-
r.value.op === "between" ? (i(), s("div",
|
|
176
|
+
r.value.op === "between" ? (i(), s("div", ul, [
|
|
177
177
|
a("label", null, [
|
|
178
|
-
|
|
178
|
+
$(t(e.messages.lowerBound), 1),
|
|
179
179
|
a("input", {
|
|
180
180
|
value: r.value.values?.[0],
|
|
181
181
|
disabled: e.readonly,
|
|
182
|
-
onInput: v[4] || (v[4] = (h) =>
|
|
183
|
-
}, null, 40,
|
|
182
|
+
onInput: v[4] || (v[4] = (h) => J(h.target.value, 0))
|
|
183
|
+
}, null, 40, rl)
|
|
184
184
|
]),
|
|
185
185
|
a("label", null, [
|
|
186
|
-
|
|
186
|
+
$(t(e.messages.upperBound), 1),
|
|
187
187
|
a("input", {
|
|
188
188
|
value: r.value.values?.[1],
|
|
189
189
|
disabled: e.readonly,
|
|
190
|
-
onInput: v[5] || (v[5] = (h) =>
|
|
191
|
-
}, null, 40,
|
|
190
|
+
onInput: v[5] || (v[5] = (h) => J(h.target.value, 1))
|
|
191
|
+
}, null, 40, cl)
|
|
192
192
|
])
|
|
193
193
|
])) : (i(), s(C, { key: 1 }, [
|
|
194
194
|
a("label", null, [
|
|
195
|
-
|
|
195
|
+
$(t(e.messages.threshold), 1),
|
|
196
196
|
a("select", {
|
|
197
197
|
"aria-label": e.messages.threshold,
|
|
198
198
|
value: r.value.right && "field" in r.value.right ? "field" : "value",
|
|
199
199
|
disabled: e.readonly,
|
|
200
200
|
onChange: v[6] || (v[6] = (h) => c(h.target.value))
|
|
201
201
|
}, [
|
|
202
|
-
a("option",
|
|
203
|
-
a("option",
|
|
204
|
-
], 40,
|
|
202
|
+
a("option", vl, t(e.messages.compareValue), 1),
|
|
203
|
+
a("option", bl, t(e.messages.compareField), 1)
|
|
204
|
+
], 40, ml)
|
|
205
205
|
]),
|
|
206
206
|
r.value.right && "field" in r.value.right ? (i(), s("select", {
|
|
207
207
|
key: 0,
|
|
208
208
|
value: r.value.right.field,
|
|
209
209
|
"aria-label": e.messages.compareField,
|
|
210
210
|
disabled: e.readonly,
|
|
211
|
-
onChange: v[7] || (v[7] = (h) =>
|
|
211
|
+
onChange: v[7] || (v[7] = (h) => x({ right: { field: h.target.value } }))
|
|
212
212
|
}, [
|
|
213
213
|
(i(!0), s(C, null, M(e.fields, (h) => (i(), s("option", {
|
|
214
214
|
key: h.field,
|
|
215
215
|
value: h.field
|
|
216
|
-
}, t(h.label), 9,
|
|
217
|
-
], 40,
|
|
216
|
+
}, t(h.label), 9, fl))), 128))
|
|
217
|
+
], 40, gl)) : (i(), s("input", {
|
|
218
218
|
key: 1,
|
|
219
219
|
value: r.value.right && "value" in r.value.right ? r.value.right.value : r.value.value,
|
|
220
220
|
"aria-label": e.messages.compareValue,
|
|
221
221
|
disabled: e.readonly,
|
|
222
|
-
onInput: v[8] || (v[8] = (h) =>
|
|
223
|
-
}, null, 40,
|
|
222
|
+
onInput: v[8] || (v[8] = (h) => J(h.target.value))
|
|
223
|
+
}, null, 40, yl))
|
|
224
224
|
], 64))
|
|
225
225
|
], 64))
|
|
226
226
|
], 64)) : (i(), s(C, { key: 1 }, [
|
|
@@ -228,73 +228,73 @@ const Je = { class: "mr-predicate__mode" }, je = ["aria-label", "value", "disabl
|
|
|
228
228
|
key: A,
|
|
229
229
|
class: "mr-predicate__child"
|
|
230
230
|
}, [
|
|
231
|
-
|
|
231
|
+
ve(o, {
|
|
232
232
|
"model-value": h,
|
|
233
233
|
fields: e.fields,
|
|
234
234
|
messages: e.messages,
|
|
235
235
|
readonly: e.readonly,
|
|
236
236
|
depth: (e.depth ?? 0) + 1,
|
|
237
|
-
"onUpdate:modelValue": (
|
|
237
|
+
"onUpdate:modelValue": (Q) => y(A, Q)
|
|
238
238
|
}, null, 8, ["model-value", "fields", "messages", "readonly", "depth", "onUpdate:modelValue"]),
|
|
239
239
|
U.value.length > 1 ? (i(), s("button", {
|
|
240
240
|
key: 0,
|
|
241
241
|
type: "button",
|
|
242
242
|
"aria-label": e.messages.removeCondition,
|
|
243
243
|
disabled: e.readonly,
|
|
244
|
-
onClick: (
|
|
245
|
-
}, "×", 8,
|
|
244
|
+
onClick: (Q) => y(A)
|
|
245
|
+
}, "×", 8, hl)) : N("", !0)
|
|
246
246
|
]))), 128)),
|
|
247
247
|
w.value !== "not" && U.value.length < 8 ? (i(), s("button", {
|
|
248
248
|
key: 0,
|
|
249
249
|
type: "button",
|
|
250
250
|
disabled: e.readonly,
|
|
251
251
|
onClick: L
|
|
252
|
-
}, "+ " + t(e.messages.addCondition), 9,
|
|
252
|
+
}, "+ " + t(e.messages.addCondition), 9, kl)) : N("", !0)
|
|
253
253
|
], 64))
|
|
254
254
|
], 2);
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
}),
|
|
258
|
-
function
|
|
259
|
-
const
|
|
257
|
+
}), Fe = /* @__PURE__ */ ge($l, [["__scopeId", "data-v-22a42478"]]), oe = (e) => JSON.parse(JSON.stringify(e));
|
|
258
|
+
function Vl(e, W) {
|
|
259
|
+
const V = G(!1), j = G(""), w = G({
|
|
260
260
|
dataset: "",
|
|
261
261
|
parentKey: "",
|
|
262
262
|
foreignKey: "",
|
|
263
263
|
columns: []
|
|
264
|
-
}), U =
|
|
264
|
+
}), U = G({
|
|
265
265
|
rowFields: [],
|
|
266
266
|
columnFields: [],
|
|
267
267
|
measures: []
|
|
268
|
-
}), r =
|
|
269
|
-
let
|
|
270
|
-
const T =
|
|
268
|
+
}), r = G({ input: "flat", idField: "id", parentField: "parentId", labelField: "", parentValues: "source" }), d = me(() => ({ enabled: V.value, detail: w.value, matrix: U.value, tree: r.value }));
|
|
269
|
+
let b;
|
|
270
|
+
const T = G(), y = z(() => [
|
|
271
271
|
.../* @__PURE__ */ new Set([
|
|
272
272
|
...Object.keys(e.datasets ?? {}),
|
|
273
273
|
...Object.keys(e.datasetSchemas ?? {})
|
|
274
274
|
])
|
|
275
|
-
]), L =
|
|
275
|
+
]), L = z(
|
|
276
276
|
() => K(e.list.dataset, e.datasetSchema)
|
|
277
|
-
),
|
|
277
|
+
), x = z(() => K(w.value.dataset));
|
|
278
278
|
function K(m, S) {
|
|
279
|
-
const
|
|
279
|
+
const R = /* @__PURE__ */ new Map();
|
|
280
280
|
for (const E of (S ?? e.datasetSchemas?.[m])?.fields ?? [])
|
|
281
|
-
|
|
281
|
+
R.set(E.field, E.label ?? E.field);
|
|
282
282
|
const D = e.datasets?.[m]?.[0];
|
|
283
283
|
for (const E of Object.keys(D ?? {}))
|
|
284
|
-
|
|
284
|
+
R.has(E) || R.set(E, E);
|
|
285
285
|
if (m === e.list.dataset)
|
|
286
286
|
for (const E of e.list.columns)
|
|
287
|
-
|
|
288
|
-
return [...
|
|
287
|
+
R.has(E.field) || R.set(E.field, E.header || E.field);
|
|
288
|
+
return [...R].map(([E, ae]) => ({ field: E, label: ae }));
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
if (
|
|
292
|
-
|
|
290
|
+
function H() {
|
|
291
|
+
if (b === JSON.stringify(e.list)) {
|
|
292
|
+
b = void 0;
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
|
|
295
|
+
V.value = !!e.list[e.mode];
|
|
296
296
|
const m = y.value.find((S) => S !== e.list.dataset) ?? "";
|
|
297
|
-
w.value =
|
|
297
|
+
w.value = oe(
|
|
298
298
|
e.list.detail ?? {
|
|
299
299
|
dataset: m,
|
|
300
300
|
parentKey: e.list.rowKey ?? e.datasetSchema?.rowKey ?? L.value[0]?.field ?? "",
|
|
@@ -303,47 +303,47 @@ function hl(e, W) {
|
|
|
303
303
|
header: !0,
|
|
304
304
|
unmatched: "error"
|
|
305
305
|
}
|
|
306
|
-
), U.value =
|
|
306
|
+
), U.value = oe(
|
|
307
307
|
e.list.matrix ?? {
|
|
308
308
|
rowFields: [],
|
|
309
309
|
columnFields: [],
|
|
310
310
|
measures: [],
|
|
311
311
|
totals: !0
|
|
312
312
|
}
|
|
313
|
-
), U.value.measures = U.value.measures.map((S) => ({ ...S, numeric: S.numeric ?? "number" })), r.value =
|
|
313
|
+
), U.value.measures = U.value.measures.map((S) => ({ ...S, numeric: S.numeric ?? "number" })), r.value = oe(e.list.tree ?? { input: "flat", idField: e.list.rowKey ?? "id", parentField: "parentId", childrenField: "children", labelField: e.list.columns[0]?.field ?? "", parentValues: "source", orphan: "error", indentMm: 3, maxRows: 1e5, maxDepth: 64 }), j.value = "", T.value = void 0, d.accept();
|
|
314
314
|
}
|
|
315
|
-
|
|
316
|
-
function
|
|
317
|
-
w.value.dataset = m, w.value.columns = [], w.value.foreignKey =
|
|
315
|
+
te(() => [e.mode, e.list.dataset, e.list[e.mode]], H, { immediate: !0 });
|
|
316
|
+
function J(m) {
|
|
317
|
+
w.value.dataset = m, w.value.columns = [], w.value.foreignKey = x.value[0]?.field ?? "", w.value.rowKey = e.datasetSchemas?.[m]?.rowKey;
|
|
318
318
|
}
|
|
319
319
|
function c(m, S) {
|
|
320
|
-
if (S && !w.value.columns.some((
|
|
321
|
-
const
|
|
320
|
+
if (S && !w.value.columns.some((R) => R.field === m)) {
|
|
321
|
+
const R = e.datasetSchemas?.[w.value.dataset]?.fields.find((D) => D.field === m);
|
|
322
322
|
w.value.columns.push({
|
|
323
323
|
field: m,
|
|
324
|
-
header:
|
|
324
|
+
header: x.value.find((D) => D.field === m)?.label ?? m,
|
|
325
325
|
widthMm: 30,
|
|
326
326
|
align: "auto",
|
|
327
|
-
semanticRole:
|
|
327
|
+
semanticRole: R?.semanticRole,
|
|
328
328
|
editable: !1
|
|
329
329
|
});
|
|
330
330
|
} else S || (w.value.columns = w.value.columns.filter(
|
|
331
|
-
(
|
|
331
|
+
(R) => R.field !== m
|
|
332
332
|
));
|
|
333
333
|
}
|
|
334
|
-
function n(m, S,
|
|
334
|
+
function n(m, S, R) {
|
|
335
335
|
if (e.readonly) return;
|
|
336
336
|
const D = U.value[m];
|
|
337
|
-
v(m,
|
|
337
|
+
v(m, R ? [.../* @__PURE__ */ new Set([...D, S])] : D.filter((E) => E !== S));
|
|
338
338
|
}
|
|
339
339
|
function v(m, S) {
|
|
340
|
-
const
|
|
340
|
+
const R = U.value[m];
|
|
341
341
|
U.value[m] = S;
|
|
342
342
|
const D = U.value.hierarchy?.[m === "rowFields" ? "row" : "column"];
|
|
343
|
-
D && (D.sort && (D.sort = S.map((E) => D.sort?.[
|
|
343
|
+
D && (D.sort && (D.sort = S.map((E) => D.sort?.[R.indexOf(E)] ?? "source")), D.labels && (D.labels = S.map((E) => D.labels?.[R.indexOf(E)] ?? E)), D.subtotals && (D.subtotals = D.subtotals.map((E) => S.indexOf(R[E - 1]) + 1).filter((E) => E > 0 && E < S.length)));
|
|
344
344
|
}
|
|
345
|
-
function o(m, S,
|
|
346
|
-
const D = [...U.value[m]], E = S +
|
|
345
|
+
function o(m, S, R) {
|
|
346
|
+
const D = [...U.value[m]], E = S + R;
|
|
347
347
|
e.readonly || S < 0 || S >= D.length || E < 0 || E >= D.length || ([D[S], D[E]] = [D[E], D[S]], v(m, D));
|
|
348
348
|
}
|
|
349
349
|
function h() {
|
|
@@ -354,126 +354,126 @@ function hl(e, W) {
|
|
|
354
354
|
}
|
|
355
355
|
function A(m) {
|
|
356
356
|
U.value.measures = U.value.measures.filter(
|
|
357
|
-
(S,
|
|
357
|
+
(S, R) => R !== m
|
|
358
358
|
);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Q(m) {
|
|
361
361
|
e.readonly || (m ? U.value.hierarchy ??= {} : delete U.value.hierarchy);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function p(m, S, R) {
|
|
364
364
|
if (e.readonly || !U.value.hierarchy) return;
|
|
365
|
-
const D = U.value.hierarchy[m] ??= {},
|
|
366
|
-
|
|
365
|
+
const D = U.value.hierarchy[m] ??= {}, ae = (m === "row" ? U.value.rowFields : U.value.columnFields).map((P, k) => D.sort?.[k] ?? "source");
|
|
366
|
+
ae[S] = R, D.sort = ae;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function ee(m, S, R) {
|
|
369
369
|
if (e.readonly || !U.value.hierarchy) return;
|
|
370
370
|
const D = U.value.hierarchy[m] ??= {};
|
|
371
|
-
D.subtotals = [...new Set(
|
|
371
|
+
D.subtotals = [...new Set(R ? [...D.subtotals ?? [], S] : (D.subtotals ?? []).filter((E) => E !== S))];
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function le() {
|
|
374
374
|
r.value.aggregates = [...r.value.aggregates ?? [], { field: L.value.find((m) => m.field !== r.value.labelField && m.field !== r.value.idField)?.field ?? "", op: "sum", numeric: "number" }];
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
r.value.aggregates = r.value.aggregates?.filter((S,
|
|
376
|
+
function ne(m) {
|
|
377
|
+
r.value.aggregates = r.value.aggregates?.filter((S, R) => R !== m);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function _() {
|
|
380
380
|
j.value = "", T.value = void 0;
|
|
381
381
|
try {
|
|
382
382
|
const m = e.datasets?.[e.list.dataset] ?? [];
|
|
383
383
|
if (!m.length) throw new Error(e.messages.noData);
|
|
384
384
|
if (m.length > 1e3) throw new Error(e.messages.treeBudget);
|
|
385
|
-
const S =
|
|
386
|
-
T.value = { columns:
|
|
385
|
+
const S = je(m, { ...r.value, aggregates: r.value.parentValues === "leaf-aggregate" ? r.value.aggregates : void 0, maxRows: 1e3 }), R = e.list.columns.slice(0, 5);
|
|
386
|
+
T.value = { columns: R.map((D) => D.header), rows: S.entries.slice(0, 8).map((D) => R.map((E) => E.field === r.value.labelField ? `${" ".repeat(Math.min(6, D.depth))}${D.row[E.field] ?? ""}` : D.row[E.field])) };
|
|
387
387
|
} catch (m) {
|
|
388
388
|
j.value = m instanceof Error ? m.message : String(m);
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
if (
|
|
391
|
+
function ie(m) {
|
|
392
|
+
if (!V.value) {
|
|
393
393
|
delete m.tree;
|
|
394
394
|
return;
|
|
395
395
|
}
|
|
396
|
-
m.tree =
|
|
396
|
+
m.tree = oe(r.value), m.tree.parentValues !== "leaf-aggregate" && delete m.tree.aggregates, m.rowKey = m.tree.idField, delete m.detail, delete m.matrix, delete m.groupBy, delete m.groups, delete m.rowVisibleWhen;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function de() {
|
|
399
399
|
j.value = "", T.value = void 0;
|
|
400
400
|
try {
|
|
401
401
|
const m = e.datasets?.[e.list.dataset] ?? [];
|
|
402
402
|
if (!m.length) throw new Error(e.messages.noData);
|
|
403
|
-
const S =
|
|
403
|
+
const S = Je(m.slice(0, 1e3), {
|
|
404
404
|
...U.value,
|
|
405
405
|
maxInputRows: 1e3
|
|
406
406
|
});
|
|
407
407
|
T.value = {
|
|
408
|
-
columns: S.columns.slice(0, 5).map((
|
|
408
|
+
columns: S.columns.slice(0, 5).map((R) => R.header),
|
|
409
409
|
rows: S.rows.slice(0, 5).map(
|
|
410
|
-
(
|
|
410
|
+
(R) => S.columns.slice(0, 5).map((D) => R[D.field])
|
|
411
411
|
)
|
|
412
412
|
};
|
|
413
413
|
} catch (m) {
|
|
414
414
|
j.value = m instanceof Error ? m.message : String(m);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function se() {
|
|
418
418
|
if (e.readonly) return;
|
|
419
|
-
const m =
|
|
420
|
-
e.mode === "tree" ?
|
|
421
|
-
const S =
|
|
419
|
+
const m = oe(e.list);
|
|
420
|
+
e.mode === "tree" ? ie(m) : e.mode === "detail" ? V.value ? (m.detail = oe(w.value), delete m.matrix, delete m.tree) : delete m.detail : V.value ? (m.matrix = oe(U.value), delete m.detail, delete m.tree, delete m.groups, delete m.groupBy, delete m.grandTotal) : delete m.matrix;
|
|
421
|
+
const S = we({ pages: [{ widthMm: Math.max(1, m.leftMm + m.widthMm), heightMm: 297, components: [m] }] });
|
|
422
422
|
if (!S.ok) {
|
|
423
|
-
j.value = S.errors.slice(0, 3).map((
|
|
423
|
+
j.value = S.errors.slice(0, 3).map((R) => R.message).join(";");
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
|
-
e.accept && !e.accept(m) || (
|
|
426
|
+
e.accept && !e.accept(m) || (b = JSON.stringify(m), e.accept || W(m), d.accept());
|
|
427
427
|
}
|
|
428
|
-
return
|
|
429
|
-
|
|
430
|
-
}, snapshot: () => JSON.stringify({ enabled:
|
|
428
|
+
return Ve({ key: () => `${e.recoveryKey ?? "rules:0:0"}:${e.mode}`, baseline: () => JSON.stringify(e.list[e.mode]), pending: () => d.pending.value, reset: () => {
|
|
429
|
+
b = void 0, H();
|
|
430
|
+
}, snapshot: () => JSON.stringify({ enabled: V.value, detail: w.value, matrix: U.value, tree: r.value, baseline: d.baseline.value }), restore(m) {
|
|
431
431
|
const S = JSON.parse(m);
|
|
432
|
-
|
|
432
|
+
V.value = S.enabled, w.value = S.detail, U.value = S.matrix, r.value = S.tree, d.baseline.value = S.baseline;
|
|
433
433
|
} }), {
|
|
434
|
-
enabled:
|
|
434
|
+
enabled: V,
|
|
435
435
|
pendingLocalChanges: d.pending,
|
|
436
436
|
detail: w,
|
|
437
437
|
matrix: U,
|
|
438
438
|
tree: r,
|
|
439
439
|
datasets: y,
|
|
440
440
|
sourceFields: L,
|
|
441
|
-
childFields:
|
|
441
|
+
childFields: x,
|
|
442
442
|
error: j,
|
|
443
443
|
preview: T,
|
|
444
|
-
chooseDataset:
|
|
444
|
+
chooseDataset: J,
|
|
445
445
|
toggleChildColumn: c,
|
|
446
446
|
toggleDimension: n,
|
|
447
447
|
moveDimension: o,
|
|
448
448
|
addMeasure: h,
|
|
449
449
|
removeMeasure: A,
|
|
450
|
-
checkMatrix:
|
|
451
|
-
toggleHierarchy:
|
|
452
|
-
setDimensionSort:
|
|
453
|
-
toggleMatrixSubtotal:
|
|
454
|
-
addTreeAggregate:
|
|
455
|
-
removeTreeAggregate:
|
|
456
|
-
checkTree:
|
|
457
|
-
apply:
|
|
450
|
+
checkMatrix: de,
|
|
451
|
+
toggleHierarchy: Q,
|
|
452
|
+
setDimensionSort: p,
|
|
453
|
+
toggleMatrixSubtotal: ee,
|
|
454
|
+
addTreeAggregate: le,
|
|
455
|
+
removeTreeAggregate: ne,
|
|
456
|
+
checkTree: _,
|
|
457
|
+
apply: se
|
|
458
458
|
};
|
|
459
459
|
}
|
|
460
|
-
const
|
|
460
|
+
const wl = { class: "mr-data-layout" }, Cl = { class: "mr-data-layout__check" }, Ul = ["disabled"], Fl = { class: "mr-data-layout__hint" }, Sl = ["aria-label", "value", "disabled"], Ml = {
|
|
461
461
|
value: "",
|
|
462
462
|
disabled: ""
|
|
463
|
-
},
|
|
463
|
+
}, xl = ["value"], Dl = { class: "mr-data-layout__pair" }, Nl = ["aria-label", "disabled"], Rl = ["value"], El = ["aria-label", "disabled"], Tl = {
|
|
464
464
|
value: "",
|
|
465
465
|
disabled: ""
|
|
466
|
-
},
|
|
466
|
+
}, Kl = ["value"], Ll = ["aria-label", "disabled"], Bl = { value: void 0 }, Ol = ["value"], Al = { class: "mr-data-layout__choices" }, Il = ["checked", "disabled", "onChange"], Wl = ["aria-label", "disabled"], Gl = { class: "mr-data-layout__pair" }, Jl = ["aria-label", "disabled"], jl = { value: "error" }, Hl = { value: "ignore" }, Pl = { class: "mr-data-layout__check" }, zl = ["disabled"], ql = { class: "mr-data-layout__hint" }, Zl = { class: "mr-data-layout__pair" }, Ql = ["aria-label", "disabled"], Xl = { value: "flat" }, Yl = { value: "nested" }, pl = ["aria-label", "disabled"], _l = ["value"], ea = { class: "mr-data-layout__pair" }, la = { key: 0 }, aa = ["aria-label", "disabled"], ta = ["value"], na = { key: 1 }, ia = ["aria-label", "disabled"], sa = ["aria-label", "disabled"], da = ["value"], oa = { class: "mr-data-layout__pair" }, ua = ["aria-label", "disabled"], ra = { key: 0 }, ca = ["aria-label", "disabled"], ma = { value: "error" }, va = { value: "root" }, ba = ["aria-label", "disabled"], ga = { value: "source" }, fa = { value: "leaf-aggregate" }, ya = { class: "mr-data-layout__pair" }, ha = ["onUpdate:modelValue", "aria-label", "disabled"], ka = ["value"], $a = ["onUpdate:modelValue", "aria-label", "disabled"], Va = ["value"], wa = { key: 0 }, Ca = ["onUpdate:modelValue", "aria-label", "disabled"], Ua = ["value"], Fa = { class: "mr-data-layout__pair" }, Sa = ["onUpdate:modelValue", "aria-label", "disabled"], Ma = { value: "number" }, xa = { value: "decimal" }, Da = ["onUpdate:modelValue", "aria-label", "disabled"], Na = ["disabled", "onClick"], Ra = ["disabled"], Ea = { class: "mr-data-layout__pair" }, Ta = ["aria-label", "disabled"], Ka = ["aria-label", "disabled"], La = { class: "mr-data-layout__hint" }, Ba = { class: "mr-data-layout__hint" }, Oa = ["checked", "disabled", "onChange"], Aa = { class: "mr-data-layout__pair" }, Ia = ["aria-label", "onUpdate:modelValue", "disabled"], Wa = ["value"], Ga = ["aria-label", "onUpdate:modelValue", "disabled"], Ja = ["value"], ja = ["aria-label", "onUpdate:modelValue", "disabled", "placeholder"], Ha = { key: 0 }, Pa = ["aria-label", "onUpdate:modelValue", "disabled"], za = ["value"], qa = { class: "mr-data-layout__pair" }, Za = ["aria-label", "onUpdate:modelValue", "disabled"], Qa = { value: "number" }, Xa = { value: "decimal" }, Ya = ["aria-label", "onUpdate:modelValue", "disabled"], pa = ["disabled", "onClick"], _a = ["disabled"], et = { class: "mr-data-layout__check" }, lt = ["disabled"], at = { class: "mr-data-layout__check" }, tt = ["checked", "disabled"], nt = { class: "mr-data-layout__hint" }, it = ["aria-label", "disabled"], st = ["aria-label", "value", "disabled", "onChange"], dt = { value: "source" }, ot = { value: "asc" }, ut = { value: "desc" }, rt = ["aria-label", "disabled", "onClick"], ct = ["aria-label", "disabled", "onClick"], mt = {
|
|
467
467
|
key: 0,
|
|
468
468
|
class: "mr-data-layout__check"
|
|
469
|
-
},
|
|
469
|
+
}, vt = ["checked", "disabled", "onChange"], bt = { class: "mr-data-layout__pair" }, gt = ["disabled"], ft = ["disabled"], yt = { class: "mr-data-layout__actions" }, ht = ["disabled"], kt = ["disabled"], $t = ["disabled"], Vt = {
|
|
470
470
|
key: 3,
|
|
471
471
|
class: "mr-data-layout__preview"
|
|
472
|
-
},
|
|
472
|
+
}, wt = {
|
|
473
473
|
key: 4,
|
|
474
474
|
class: "mr-data-layout__error",
|
|
475
475
|
role: "alert"
|
|
476
|
-
},
|
|
476
|
+
}, Ct = /* @__PURE__ */ be({
|
|
477
477
|
__name: "RuleDataLayout",
|
|
478
478
|
props: {
|
|
479
479
|
recoveryKey: {},
|
|
@@ -488,50 +488,50 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
488
488
|
},
|
|
489
489
|
emits: ["change", "dirty"],
|
|
490
490
|
setup(e, { emit: W }) {
|
|
491
|
-
const
|
|
491
|
+
const V = e, j = W, w = Vl(V, (J) => j("change", J)), {
|
|
492
492
|
enabled: U,
|
|
493
493
|
detail: r,
|
|
494
494
|
matrix: d,
|
|
495
|
-
tree:
|
|
495
|
+
tree: b,
|
|
496
496
|
datasets: T,
|
|
497
497
|
sourceFields: y,
|
|
498
498
|
childFields: L,
|
|
499
|
-
error:
|
|
499
|
+
error: x,
|
|
500
500
|
preview: K
|
|
501
501
|
} = w;
|
|
502
|
-
|
|
503
|
-
const
|
|
504
|
-
return (
|
|
505
|
-
a("label",
|
|
502
|
+
te([w.pendingLocalChanges, U, r, d, b], () => j("dirty", w.pendingLocalChanges.value), { immediate: !0, deep: !0, flush: "sync" });
|
|
503
|
+
const H = ye();
|
|
504
|
+
return (J, c) => (i(), s("div", wl, [
|
|
505
|
+
a("label", Cl, [
|
|
506
506
|
F(a("input", {
|
|
507
|
-
"onUpdate:modelValue": c[0] || (c[0] = (n) =>
|
|
507
|
+
"onUpdate:modelValue": c[0] || (c[0] = (n) => ce(U) ? U.value = n : null),
|
|
508
508
|
type: "checkbox",
|
|
509
509
|
disabled: e.readonly
|
|
510
|
-
}, null, 8,
|
|
511
|
-
[
|
|
510
|
+
}, null, 8, Ul), [
|
|
511
|
+
[re, l(U)]
|
|
512
512
|
]),
|
|
513
|
-
|
|
513
|
+
$(t(e.messages.enabled) + t(e.messages[e.mode]), 1)
|
|
514
514
|
]),
|
|
515
515
|
l(U) && e.mode === "detail" ? (i(), s(C, { key: 0 }, [
|
|
516
|
-
a("p",
|
|
516
|
+
a("p", Fl, t(e.messages.detailHint), 1),
|
|
517
517
|
a("label", null, [
|
|
518
|
-
|
|
518
|
+
$(t(e.messages.childDataset), 1),
|
|
519
519
|
a("select", {
|
|
520
520
|
"aria-label": e.messages.childDataset,
|
|
521
521
|
value: l(r).dataset,
|
|
522
522
|
disabled: e.readonly,
|
|
523
523
|
onChange: c[1] || (c[1] = (n) => l(w).chooseDataset(n.target.value))
|
|
524
524
|
}, [
|
|
525
|
-
a("option",
|
|
525
|
+
a("option", Ml, t(e.messages.select), 1),
|
|
526
526
|
(i(!0), s(C, null, M(l(T), (n) => (i(), s("option", {
|
|
527
527
|
key: n,
|
|
528
528
|
value: n
|
|
529
|
-
}, t(n), 9,
|
|
530
|
-
], 40,
|
|
529
|
+
}, t(n), 9, xl))), 128))
|
|
530
|
+
], 40, Sl)
|
|
531
531
|
]),
|
|
532
|
-
a("div",
|
|
532
|
+
a("div", Dl, [
|
|
533
533
|
a("label", null, [
|
|
534
|
-
|
|
534
|
+
$(t(e.messages.parentKey), 1),
|
|
535
535
|
F(a("select", {
|
|
536
536
|
"aria-label": e.messages.parentKey,
|
|
537
537
|
"onUpdate:modelValue": c[2] || (c[2] = (n) => l(r).parentKey = n),
|
|
@@ -540,45 +540,45 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
540
540
|
(i(!0), s(C, null, M(l(y), (n) => (i(), s("option", {
|
|
541
541
|
key: n.field,
|
|
542
542
|
value: n.field
|
|
543
|
-
}, t(n.label), 9,
|
|
544
|
-
], 8,
|
|
543
|
+
}, t(n.label), 9, Rl))), 128))
|
|
544
|
+
], 8, Nl), [
|
|
545
545
|
[O, l(r).parentKey]
|
|
546
546
|
])
|
|
547
547
|
]),
|
|
548
548
|
a("label", null, [
|
|
549
|
-
|
|
549
|
+
$(t(e.messages.foreignKey), 1),
|
|
550
550
|
F(a("select", {
|
|
551
551
|
"aria-label": e.messages.foreignKey,
|
|
552
552
|
"onUpdate:modelValue": c[3] || (c[3] = (n) => l(r).foreignKey = n),
|
|
553
553
|
disabled: e.readonly
|
|
554
554
|
}, [
|
|
555
|
-
a("option",
|
|
555
|
+
a("option", Tl, t(e.messages.select), 1),
|
|
556
556
|
(i(!0), s(C, null, M(l(L), (n) => (i(), s("option", {
|
|
557
557
|
key: n.field,
|
|
558
558
|
value: n.field
|
|
559
|
-
}, t(n.label), 9,
|
|
560
|
-
], 8,
|
|
559
|
+
}, t(n.label), 9, Kl))), 128))
|
|
560
|
+
], 8, El), [
|
|
561
561
|
[O, l(r).foreignKey]
|
|
562
562
|
])
|
|
563
563
|
])
|
|
564
564
|
]),
|
|
565
565
|
a("label", null, [
|
|
566
|
-
|
|
566
|
+
$(t(e.messages.rowKey), 1),
|
|
567
567
|
F(a("select", {
|
|
568
568
|
"aria-label": e.messages.rowKey,
|
|
569
569
|
"onUpdate:modelValue": c[4] || (c[4] = (n) => l(r).rowKey = n),
|
|
570
570
|
disabled: e.readonly
|
|
571
571
|
}, [
|
|
572
|
-
a("option",
|
|
572
|
+
a("option", Bl, t(e.messages.noRowKey), 1),
|
|
573
573
|
(i(!0), s(C, null, M(l(L), (n) => (i(), s("option", {
|
|
574
574
|
key: n.field,
|
|
575
575
|
value: n.field
|
|
576
|
-
}, t(n.label), 9,
|
|
577
|
-
], 8,
|
|
576
|
+
}, t(n.label), 9, Ol))), 128))
|
|
577
|
+
], 8, Ll), [
|
|
578
578
|
[O, l(r).rowKey]
|
|
579
579
|
])
|
|
580
580
|
]),
|
|
581
|
-
a("fieldset",
|
|
581
|
+
a("fieldset", Al, [
|
|
582
582
|
a("legend", null, t(e.messages.childColumns), 1),
|
|
583
583
|
(i(!0), s(C, null, M(l(L), (n) => (i(), s("label", {
|
|
584
584
|
key: n.field
|
|
@@ -591,174 +591,174 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
591
591
|
n.field,
|
|
592
592
|
v.target.checked
|
|
593
593
|
)
|
|
594
|
-
}, null, 40,
|
|
595
|
-
|
|
594
|
+
}, null, 40, Il),
|
|
595
|
+
$(t(n.label), 1)
|
|
596
596
|
]))), 128))
|
|
597
597
|
]),
|
|
598
598
|
a("label", null, [
|
|
599
|
-
|
|
599
|
+
$(t(e.messages.title), 1),
|
|
600
600
|
F(a("input", {
|
|
601
601
|
"aria-label": e.messages.title,
|
|
602
602
|
"onUpdate:modelValue": c[5] || (c[5] = (n) => l(r).label = n),
|
|
603
603
|
disabled: e.readonly
|
|
604
|
-
}, null, 8,
|
|
605
|
-
[
|
|
604
|
+
}, null, 8, Wl), [
|
|
605
|
+
[X, l(r).label]
|
|
606
606
|
])
|
|
607
607
|
]),
|
|
608
|
-
a("div",
|
|
608
|
+
a("div", Gl, [
|
|
609
609
|
a("label", null, [
|
|
610
|
-
|
|
610
|
+
$(t(e.messages.unmatched), 1),
|
|
611
611
|
F(a("select", {
|
|
612
612
|
"aria-label": e.messages.unmatched,
|
|
613
613
|
"onUpdate:modelValue": c[6] || (c[6] = (n) => l(r).unmatched = n),
|
|
614
614
|
disabled: e.readonly
|
|
615
615
|
}, [
|
|
616
|
-
a("option",
|
|
617
|
-
a("option",
|
|
618
|
-
], 8,
|
|
616
|
+
a("option", jl, t(e.messages.error), 1),
|
|
617
|
+
a("option", Hl, t(e.messages.ignore), 1)
|
|
618
|
+
], 8, Jl), [
|
|
619
619
|
[O, l(r).unmatched]
|
|
620
620
|
])
|
|
621
621
|
]),
|
|
622
|
-
a("label",
|
|
622
|
+
a("label", Pl, [
|
|
623
623
|
F(a("input", {
|
|
624
624
|
"onUpdate:modelValue": c[7] || (c[7] = (n) => l(r).header = n),
|
|
625
625
|
type: "checkbox",
|
|
626
626
|
disabled: e.readonly
|
|
627
|
-
}, null, 8,
|
|
628
|
-
[
|
|
627
|
+
}, null, 8, zl), [
|
|
628
|
+
[re, l(r).header]
|
|
629
629
|
]),
|
|
630
|
-
|
|
630
|
+
$(t(e.messages.childHeader), 1)
|
|
631
631
|
])
|
|
632
632
|
])
|
|
633
633
|
], 64)) : l(U) && e.mode === "tree" ? (i(), s(C, { key: 1 }, [
|
|
634
|
-
a("p",
|
|
635
|
-
a("div",
|
|
634
|
+
a("p", ql, t(e.messages.treeHint), 1),
|
|
635
|
+
a("div", Zl, [
|
|
636
636
|
a("label", null, [
|
|
637
|
-
|
|
637
|
+
$(t(e.messages.treeInput), 1),
|
|
638
638
|
F(a("select", {
|
|
639
|
-
"onUpdate:modelValue": c[8] || (c[8] = (n) => l(
|
|
639
|
+
"onUpdate:modelValue": c[8] || (c[8] = (n) => l(b).input = n),
|
|
640
640
|
"aria-label": e.messages.treeInput,
|
|
641
641
|
disabled: e.readonly
|
|
642
642
|
}, [
|
|
643
|
-
a("option",
|
|
644
|
-
a("option",
|
|
645
|
-
], 8,
|
|
646
|
-
[O, l(
|
|
643
|
+
a("option", Xl, t(e.messages.treeFlat), 1),
|
|
644
|
+
a("option", Yl, t(e.messages.treeNested), 1)
|
|
645
|
+
], 8, Ql), [
|
|
646
|
+
[O, l(b).input]
|
|
647
647
|
])
|
|
648
648
|
]),
|
|
649
649
|
a("label", null, [
|
|
650
|
-
|
|
650
|
+
$(t(e.messages.treeId), 1),
|
|
651
651
|
F(a("select", {
|
|
652
|
-
"onUpdate:modelValue": c[9] || (c[9] = (n) => l(
|
|
652
|
+
"onUpdate:modelValue": c[9] || (c[9] = (n) => l(b).idField = n),
|
|
653
653
|
"aria-label": e.messages.treeId,
|
|
654
654
|
disabled: e.readonly
|
|
655
655
|
}, [
|
|
656
656
|
(i(!0), s(C, null, M(l(y), (n) => (i(), s("option", {
|
|
657
657
|
key: n.field,
|
|
658
658
|
value: n.field
|
|
659
|
-
}, t(n.label), 9,
|
|
660
|
-
], 8,
|
|
661
|
-
[O, l(
|
|
659
|
+
}, t(n.label), 9, _l))), 128))
|
|
660
|
+
], 8, pl), [
|
|
661
|
+
[O, l(b).idField]
|
|
662
662
|
])
|
|
663
663
|
])
|
|
664
664
|
]),
|
|
665
|
-
a("div",
|
|
666
|
-
l(
|
|
667
|
-
|
|
665
|
+
a("div", ea, [
|
|
666
|
+
l(b).input === "flat" ? (i(), s("label", la, [
|
|
667
|
+
$(t(e.messages.treeParent), 1),
|
|
668
668
|
F(a("select", {
|
|
669
|
-
"onUpdate:modelValue": c[10] || (c[10] = (n) => l(
|
|
669
|
+
"onUpdate:modelValue": c[10] || (c[10] = (n) => l(b).parentField = n),
|
|
670
670
|
"aria-label": e.messages.treeParent,
|
|
671
671
|
disabled: e.readonly
|
|
672
672
|
}, [
|
|
673
673
|
(i(!0), s(C, null, M(l(y), (n) => (i(), s("option", {
|
|
674
674
|
key: n.field,
|
|
675
675
|
value: n.field
|
|
676
|
-
}, t(n.label), 9,
|
|
677
|
-
], 8,
|
|
678
|
-
[O, l(
|
|
676
|
+
}, t(n.label), 9, ta))), 128))
|
|
677
|
+
], 8, aa), [
|
|
678
|
+
[O, l(b).parentField]
|
|
679
679
|
])
|
|
680
|
-
])) : (i(), s("label",
|
|
681
|
-
|
|
680
|
+
])) : (i(), s("label", na, [
|
|
681
|
+
$(t(e.messages.treeChildren), 1),
|
|
682
682
|
F(a("input", {
|
|
683
|
-
"onUpdate:modelValue": c[11] || (c[11] = (n) => l(
|
|
683
|
+
"onUpdate:modelValue": c[11] || (c[11] = (n) => l(b).childrenField = n),
|
|
684
684
|
"aria-label": e.messages.treeChildren,
|
|
685
685
|
disabled: e.readonly,
|
|
686
686
|
placeholder: "children"
|
|
687
|
-
}, null, 8,
|
|
688
|
-
[
|
|
687
|
+
}, null, 8, ia), [
|
|
688
|
+
[X, l(b).childrenField]
|
|
689
689
|
])
|
|
690
690
|
])),
|
|
691
691
|
a("label", null, [
|
|
692
|
-
|
|
692
|
+
$(t(e.messages.treeLabel), 1),
|
|
693
693
|
F(a("select", {
|
|
694
|
-
"onUpdate:modelValue": c[12] || (c[12] = (n) => l(
|
|
694
|
+
"onUpdate:modelValue": c[12] || (c[12] = (n) => l(b).labelField = n),
|
|
695
695
|
"aria-label": e.messages.treeLabel,
|
|
696
696
|
disabled: e.readonly
|
|
697
697
|
}, [
|
|
698
698
|
(i(!0), s(C, null, M(e.list.columns.filter((n) => !n.hidden), (n) => (i(), s("option", {
|
|
699
699
|
key: n.field,
|
|
700
700
|
value: n.field
|
|
701
|
-
}, t(n.header), 9,
|
|
702
|
-
], 8,
|
|
703
|
-
[O, l(
|
|
701
|
+
}, t(n.header), 9, da))), 128))
|
|
702
|
+
], 8, sa), [
|
|
703
|
+
[O, l(b).labelField]
|
|
704
704
|
])
|
|
705
705
|
])
|
|
706
706
|
]),
|
|
707
|
-
a("div",
|
|
707
|
+
a("div", oa, [
|
|
708
708
|
a("label", null, [
|
|
709
|
-
|
|
709
|
+
$(t(e.messages.treeIndent), 1),
|
|
710
710
|
F(a("input", {
|
|
711
|
-
"onUpdate:modelValue": c[13] || (c[13] = (n) => l(
|
|
711
|
+
"onUpdate:modelValue": c[13] || (c[13] = (n) => l(b).indentMm = n),
|
|
712
712
|
"aria-label": e.messages.treeIndent,
|
|
713
713
|
type: "number",
|
|
714
714
|
min: "0",
|
|
715
715
|
max: "20",
|
|
716
716
|
step: "0.5",
|
|
717
717
|
disabled: e.readonly
|
|
718
|
-
}, null, 8,
|
|
718
|
+
}, null, 8, ua), [
|
|
719
719
|
[
|
|
720
|
-
|
|
721
|
-
l(
|
|
720
|
+
X,
|
|
721
|
+
l(b).indentMm,
|
|
722
722
|
void 0,
|
|
723
723
|
{ number: !0 }
|
|
724
724
|
]
|
|
725
725
|
])
|
|
726
726
|
]),
|
|
727
|
-
l(
|
|
728
|
-
|
|
727
|
+
l(b).input === "flat" ? (i(), s("label", ra, [
|
|
728
|
+
$(t(e.messages.treeOrphan), 1),
|
|
729
729
|
F(a("select", {
|
|
730
|
-
"onUpdate:modelValue": c[14] || (c[14] = (n) => l(
|
|
730
|
+
"onUpdate:modelValue": c[14] || (c[14] = (n) => l(b).orphan = n),
|
|
731
731
|
"aria-label": e.messages.treeOrphan,
|
|
732
732
|
disabled: e.readonly
|
|
733
733
|
}, [
|
|
734
|
-
a("option",
|
|
735
|
-
a("option",
|
|
736
|
-
], 8,
|
|
737
|
-
[O, l(
|
|
734
|
+
a("option", ma, t(e.messages.error), 1),
|
|
735
|
+
a("option", va, t(e.messages.treeAsRoot), 1)
|
|
736
|
+
], 8, ca), [
|
|
737
|
+
[O, l(b).orphan]
|
|
738
738
|
])
|
|
739
|
-
])) :
|
|
739
|
+
])) : N("", !0)
|
|
740
740
|
]),
|
|
741
741
|
a("label", null, [
|
|
742
|
-
|
|
742
|
+
$(t(e.messages.treeValues), 1),
|
|
743
743
|
F(a("select", {
|
|
744
|
-
"onUpdate:modelValue": c[15] || (c[15] = (n) => l(
|
|
744
|
+
"onUpdate:modelValue": c[15] || (c[15] = (n) => l(b).parentValues = n),
|
|
745
745
|
"aria-label": e.messages.treeValues,
|
|
746
746
|
disabled: e.readonly
|
|
747
747
|
}, [
|
|
748
|
-
a("option",
|
|
749
|
-
a("option",
|
|
750
|
-
], 8,
|
|
751
|
-
[O, l(
|
|
748
|
+
a("option", ga, t(e.messages.treeSource), 1),
|
|
749
|
+
a("option", fa, t(e.messages.treeLeaves), 1)
|
|
750
|
+
], 8, ba), [
|
|
751
|
+
[O, l(b).parentValues]
|
|
752
752
|
])
|
|
753
753
|
]),
|
|
754
|
-
l(
|
|
755
|
-
(i(!0), s(C, null, M(l(
|
|
754
|
+
l(b).parentValues === "leaf-aggregate" ? (i(), s(C, { key: 0 }, [
|
|
755
|
+
(i(!0), s(C, null, M(l(b).aggregates, (n, v) => (i(), s("div", {
|
|
756
756
|
key: v,
|
|
757
757
|
class: "mr-data-layout__measure"
|
|
758
758
|
}, [
|
|
759
|
-
a("div",
|
|
759
|
+
a("div", ya, [
|
|
760
760
|
a("label", null, [
|
|
761
|
-
|
|
761
|
+
$(t(e.messages.measure), 1),
|
|
762
762
|
F(a("select", {
|
|
763
763
|
"onUpdate:modelValue": (o) => n.field = o,
|
|
764
764
|
"aria-label": e.messages.measure,
|
|
@@ -767,29 +767,29 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
767
767
|
(i(!0), s(C, null, M(l(y), (o) => (i(), s("option", {
|
|
768
768
|
key: o.field,
|
|
769
769
|
value: o.field
|
|
770
|
-
}, t(o.label), 9,
|
|
771
|
-
], 8,
|
|
770
|
+
}, t(o.label), 9, ka))), 128))
|
|
771
|
+
], 8, ha), [
|
|
772
772
|
[O, n.field]
|
|
773
773
|
])
|
|
774
774
|
]),
|
|
775
775
|
a("label", null, [
|
|
776
|
-
|
|
776
|
+
$(t(e.messages.aggregate), 1),
|
|
777
777
|
F(a("select", {
|
|
778
778
|
"onUpdate:modelValue": (o) => n.op = o,
|
|
779
779
|
"aria-label": e.messages.aggregate,
|
|
780
780
|
disabled: e.readonly
|
|
781
781
|
}, [
|
|
782
|
-
(i(!0), s(C, null, M(l(
|
|
782
|
+
(i(!0), s(C, null, M(l(H).aggregates, (o) => (i(), s("option", {
|
|
783
783
|
key: o,
|
|
784
784
|
value: o
|
|
785
|
-
}, t(e.messages[o]), 9,
|
|
786
|
-
], 8,
|
|
785
|
+
}, t(e.messages[o]), 9, Va))), 128))
|
|
786
|
+
], 8, $a), [
|
|
787
787
|
[O, n.op]
|
|
788
788
|
])
|
|
789
789
|
])
|
|
790
790
|
]),
|
|
791
|
-
n.op === "weightedAvg" ? (i(), s("label",
|
|
792
|
-
|
|
791
|
+
n.op === "weightedAvg" ? (i(), s("label", wa, [
|
|
792
|
+
$(t(e.messages.weight), 1),
|
|
793
793
|
F(a("select", {
|
|
794
794
|
"onUpdate:modelValue": (o) => n.weightField = o,
|
|
795
795
|
"aria-label": e.messages.weight,
|
|
@@ -798,27 +798,27 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
798
798
|
(i(!0), s(C, null, M(l(y), (o) => (i(), s("option", {
|
|
799
799
|
key: o.field,
|
|
800
800
|
value: o.field
|
|
801
|
-
}, t(o.label), 9,
|
|
802
|
-
], 8,
|
|
801
|
+
}, t(o.label), 9, Ua))), 128))
|
|
802
|
+
], 8, Ca), [
|
|
803
803
|
[O, n.weightField]
|
|
804
804
|
])
|
|
805
|
-
])) :
|
|
806
|
-
a("div",
|
|
805
|
+
])) : N("", !0),
|
|
806
|
+
a("div", Fa, [
|
|
807
807
|
a("label", null, [
|
|
808
|
-
|
|
808
|
+
$(t(e.messages.numeric), 1),
|
|
809
809
|
F(a("select", {
|
|
810
810
|
"onUpdate:modelValue": (o) => n.numeric = o,
|
|
811
811
|
"aria-label": e.messages.numeric,
|
|
812
812
|
disabled: e.readonly
|
|
813
813
|
}, [
|
|
814
|
-
a("option",
|
|
815
|
-
a("option",
|
|
816
|
-
], 8,
|
|
814
|
+
a("option", Ma, t(e.messages.number), 1),
|
|
815
|
+
a("option", xa, t(e.messages.decimal), 1)
|
|
816
|
+
], 8, Sa), [
|
|
817
817
|
[O, n.numeric]
|
|
818
818
|
])
|
|
819
819
|
]),
|
|
820
820
|
a("label", null, [
|
|
821
|
-
|
|
821
|
+
$(t(e.messages.digits), 1),
|
|
822
822
|
F(a("input", {
|
|
823
823
|
"onUpdate:modelValue": (o) => n.digits = o,
|
|
824
824
|
"aria-label": e.messages.digits,
|
|
@@ -826,9 +826,9 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
826
826
|
min: "0",
|
|
827
827
|
max: "100",
|
|
828
828
|
disabled: e.readonly
|
|
829
|
-
}, null, 8,
|
|
829
|
+
}, null, 8, Da), [
|
|
830
830
|
[
|
|
831
|
-
|
|
831
|
+
X,
|
|
832
832
|
n.digits,
|
|
833
833
|
void 0,
|
|
834
834
|
{ number: !0 }
|
|
@@ -840,49 +840,49 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
840
840
|
type: "button",
|
|
841
841
|
disabled: e.readonly,
|
|
842
842
|
onClick: (o) => l(w).removeTreeAggregate(v)
|
|
843
|
-
}, t(e.messages.remove), 9,
|
|
843
|
+
}, t(e.messages.remove), 9, Na)
|
|
844
844
|
]))), 128)),
|
|
845
845
|
a("button", {
|
|
846
846
|
type: "button",
|
|
847
|
-
disabled: e.readonly || (l(
|
|
847
|
+
disabled: e.readonly || (l(b).aggregates?.length ?? 0) >= 32,
|
|
848
848
|
onClick: c[16] || (c[16] = //@ts-ignore
|
|
849
849
|
(...n) => l(w).addTreeAggregate && l(w).addTreeAggregate(...n))
|
|
850
|
-
}, "+ " + t(e.messages.addAggregate), 9,
|
|
851
|
-
], 64)) :
|
|
850
|
+
}, "+ " + t(e.messages.addAggregate), 9, Ra)
|
|
851
|
+
], 64)) : N("", !0),
|
|
852
852
|
a("details", null, [
|
|
853
853
|
a("summary", null, t(e.messages.advanced), 1),
|
|
854
|
-
a("div",
|
|
854
|
+
a("div", Ea, [
|
|
855
855
|
a("label", null, [
|
|
856
|
-
|
|
856
|
+
$(t(e.messages.treeRows), 1),
|
|
857
857
|
F(a("input", {
|
|
858
|
-
"onUpdate:modelValue": c[17] || (c[17] = (n) => l(
|
|
858
|
+
"onUpdate:modelValue": c[17] || (c[17] = (n) => l(b).maxRows = n),
|
|
859
859
|
"aria-label": e.messages.treeRows,
|
|
860
860
|
type: "number",
|
|
861
861
|
min: "1",
|
|
862
862
|
max: "1000000",
|
|
863
863
|
disabled: e.readonly
|
|
864
|
-
}, null, 8,
|
|
864
|
+
}, null, 8, Ta), [
|
|
865
865
|
[
|
|
866
|
-
|
|
867
|
-
l(
|
|
866
|
+
X,
|
|
867
|
+
l(b).maxRows,
|
|
868
868
|
void 0,
|
|
869
869
|
{ number: !0 }
|
|
870
870
|
]
|
|
871
871
|
])
|
|
872
872
|
]),
|
|
873
873
|
a("label", null, [
|
|
874
|
-
|
|
874
|
+
$(t(e.messages.treeDepth), 1),
|
|
875
875
|
F(a("input", {
|
|
876
|
-
"onUpdate:modelValue": c[18] || (c[18] = (n) => l(
|
|
876
|
+
"onUpdate:modelValue": c[18] || (c[18] = (n) => l(b).maxDepth = n),
|
|
877
877
|
"aria-label": e.messages.treeDepth,
|
|
878
878
|
type: "number",
|
|
879
879
|
min: "1",
|
|
880
880
|
max: "256",
|
|
881
881
|
disabled: e.readonly
|
|
882
|
-
}, null, 8,
|
|
882
|
+
}, null, 8, Ka), [
|
|
883
883
|
[
|
|
884
|
-
|
|
885
|
-
l(
|
|
884
|
+
X,
|
|
885
|
+
l(b).maxDepth,
|
|
886
886
|
void 0,
|
|
887
887
|
{ number: !0 }
|
|
888
888
|
]
|
|
@@ -890,9 +890,9 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
890
890
|
])
|
|
891
891
|
])
|
|
892
892
|
]),
|
|
893
|
-
a("p",
|
|
893
|
+
a("p", La, t(e.messages.treeReadonly), 1)
|
|
894
894
|
], 64)) : l(U) ? (i(), s(C, { key: 2 }, [
|
|
895
|
-
a("p",
|
|
895
|
+
a("p", Ba, t(e.messages.matrixHint), 1),
|
|
896
896
|
(i(), s(C, null, M(["rowFields", "columnFields"], (n) => a("fieldset", {
|
|
897
897
|
key: n,
|
|
898
898
|
class: "mr-data-layout__choices"
|
|
@@ -910,17 +910,17 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
910
910
|
v.field,
|
|
911
911
|
o.target.checked
|
|
912
912
|
)
|
|
913
|
-
}, null, 40,
|
|
914
|
-
|
|
913
|
+
}, null, 40, Oa),
|
|
914
|
+
$(t(v.label), 1)
|
|
915
915
|
]))), 128))
|
|
916
916
|
])), 64)),
|
|
917
917
|
(i(!0), s(C, null, M(l(d).measures, (n, v) => (i(), s("div", {
|
|
918
918
|
key: v,
|
|
919
919
|
class: "mr-data-layout__measure"
|
|
920
920
|
}, [
|
|
921
|
-
a("div",
|
|
921
|
+
a("div", Aa, [
|
|
922
922
|
a("label", null, [
|
|
923
|
-
|
|
923
|
+
$(t(e.messages.measure), 1),
|
|
924
924
|
F(a("select", {
|
|
925
925
|
"aria-label": e.messages.measure,
|
|
926
926
|
"onUpdate:modelValue": (o) => n.field = o,
|
|
@@ -929,40 +929,40 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
929
929
|
(i(!0), s(C, null, M(l(y), (o) => (i(), s("option", {
|
|
930
930
|
key: o.field,
|
|
931
931
|
value: o.field
|
|
932
|
-
}, t(o.label), 9,
|
|
933
|
-
], 8,
|
|
932
|
+
}, t(o.label), 9, Wa))), 128))
|
|
933
|
+
], 8, Ia), [
|
|
934
934
|
[O, n.field]
|
|
935
935
|
])
|
|
936
936
|
]),
|
|
937
937
|
a("label", null, [
|
|
938
|
-
|
|
938
|
+
$(t(e.messages.aggregate), 1),
|
|
939
939
|
F(a("select", {
|
|
940
940
|
"aria-label": e.messages.aggregate,
|
|
941
941
|
"onUpdate:modelValue": (o) => n.op = o,
|
|
942
942
|
disabled: e.readonly
|
|
943
943
|
}, [
|
|
944
|
-
(i(!0), s(C, null, M(l(
|
|
944
|
+
(i(!0), s(C, null, M(l(H).aggregates, (o) => (i(), s("option", {
|
|
945
945
|
key: o,
|
|
946
946
|
value: o
|
|
947
|
-
}, t(e.messages[o]), 9,
|
|
948
|
-
], 8,
|
|
947
|
+
}, t(e.messages[o]), 9, Ja))), 128))
|
|
948
|
+
], 8, Ga), [
|
|
949
949
|
[O, n.op]
|
|
950
950
|
])
|
|
951
951
|
])
|
|
952
952
|
]),
|
|
953
953
|
a("label", null, [
|
|
954
|
-
|
|
954
|
+
$(t(e.messages.measureLabel), 1),
|
|
955
955
|
F(a("input", {
|
|
956
956
|
"aria-label": e.messages.measureLabel,
|
|
957
957
|
"onUpdate:modelValue": (o) => n.label = o,
|
|
958
958
|
disabled: e.readonly,
|
|
959
959
|
placeholder: n.field
|
|
960
|
-
}, null, 8,
|
|
961
|
-
[
|
|
960
|
+
}, null, 8, ja), [
|
|
961
|
+
[X, n.label]
|
|
962
962
|
])
|
|
963
963
|
]),
|
|
964
|
-
n.op === "weightedAvg" ? (i(), s("label",
|
|
965
|
-
|
|
964
|
+
n.op === "weightedAvg" ? (i(), s("label", Ha, [
|
|
965
|
+
$(t(e.messages.weight), 1),
|
|
966
966
|
F(a("select", {
|
|
967
967
|
"aria-label": e.messages.weight,
|
|
968
968
|
"onUpdate:modelValue": (o) => n.weightField = o,
|
|
@@ -971,27 +971,27 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
971
971
|
(i(!0), s(C, null, M(l(y), (o) => (i(), s("option", {
|
|
972
972
|
key: o.field,
|
|
973
973
|
value: o.field
|
|
974
|
-
}, t(o.label), 9,
|
|
975
|
-
], 8,
|
|
974
|
+
}, t(o.label), 9, za))), 128))
|
|
975
|
+
], 8, Pa), [
|
|
976
976
|
[O, n.weightField]
|
|
977
977
|
])
|
|
978
|
-
])) :
|
|
979
|
-
a("div",
|
|
978
|
+
])) : N("", !0),
|
|
979
|
+
a("div", qa, [
|
|
980
980
|
a("label", null, [
|
|
981
|
-
|
|
981
|
+
$(t(e.messages.numeric), 1),
|
|
982
982
|
F(a("select", {
|
|
983
983
|
"aria-label": e.messages.numeric,
|
|
984
984
|
"onUpdate:modelValue": (o) => n.numeric = o,
|
|
985
985
|
disabled: e.readonly
|
|
986
986
|
}, [
|
|
987
|
-
a("option",
|
|
988
|
-
a("option",
|
|
989
|
-
], 8,
|
|
987
|
+
a("option", Qa, t(e.messages.number), 1),
|
|
988
|
+
a("option", Xa, t(e.messages.decimal), 1)
|
|
989
|
+
], 8, Za), [
|
|
990
990
|
[O, n.numeric]
|
|
991
991
|
])
|
|
992
992
|
]),
|
|
993
993
|
a("label", null, [
|
|
994
|
-
|
|
994
|
+
$(t(e.messages.digits), 1),
|
|
995
995
|
F(a("input", {
|
|
996
996
|
"aria-label": e.messages.digits,
|
|
997
997
|
"onUpdate:modelValue": (o) => n.digits = o,
|
|
@@ -999,9 +999,9 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
999
999
|
min: "0",
|
|
1000
1000
|
max: "100",
|
|
1001
1001
|
disabled: e.readonly
|
|
1002
|
-
}, null, 8,
|
|
1002
|
+
}, null, 8, Ya), [
|
|
1003
1003
|
[
|
|
1004
|
-
|
|
1004
|
+
X,
|
|
1005
1005
|
n.digits,
|
|
1006
1006
|
void 0,
|
|
1007
1007
|
{ number: !0 }
|
|
@@ -1013,46 +1013,46 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
1013
1013
|
type: "button",
|
|
1014
1014
|
disabled: e.readonly,
|
|
1015
1015
|
onClick: (o) => l(w).removeMeasure(v)
|
|
1016
|
-
}, t(e.messages.remove), 9,
|
|
1016
|
+
}, t(e.messages.remove), 9, pa)
|
|
1017
1017
|
]))), 128)),
|
|
1018
1018
|
a("button", {
|
|
1019
1019
|
type: "button",
|
|
1020
1020
|
disabled: e.readonly || l(d).measures.length >= 32,
|
|
1021
1021
|
onClick: c[19] || (c[19] = //@ts-ignore
|
|
1022
1022
|
(...n) => l(w).addMeasure && l(w).addMeasure(...n))
|
|
1023
|
-
}, " + " + t(e.messages.addAggregate), 9,
|
|
1024
|
-
a("label",
|
|
1023
|
+
}, " + " + t(e.messages.addAggregate), 9, _a),
|
|
1024
|
+
a("label", et, [
|
|
1025
1025
|
F(a("input", {
|
|
1026
1026
|
"onUpdate:modelValue": c[20] || (c[20] = (n) => l(d).totals = n),
|
|
1027
1027
|
type: "checkbox",
|
|
1028
1028
|
disabled: e.readonly
|
|
1029
|
-
}, null, 8,
|
|
1030
|
-
[
|
|
1029
|
+
}, null, 8, lt), [
|
|
1030
|
+
[re, l(d).totals]
|
|
1031
1031
|
]),
|
|
1032
|
-
|
|
1032
|
+
$(t(e.messages.totals), 1)
|
|
1033
1033
|
]),
|
|
1034
1034
|
a("details", null, [
|
|
1035
1035
|
a("summary", null, t(e.messages.matrixHierarchy), 1),
|
|
1036
|
-
a("label",
|
|
1036
|
+
a("label", at, [
|
|
1037
1037
|
a("input", {
|
|
1038
1038
|
type: "checkbox",
|
|
1039
1039
|
checked: !!l(d).hierarchy,
|
|
1040
1040
|
disabled: e.readonly,
|
|
1041
1041
|
onChange: c[21] || (c[21] = (n) => l(w).toggleHierarchy(n.target.checked))
|
|
1042
|
-
}, null, 40,
|
|
1043
|
-
|
|
1042
|
+
}, null, 40, tt),
|
|
1043
|
+
$(t(e.messages.enabled), 1)
|
|
1044
1044
|
]),
|
|
1045
1045
|
l(d).hierarchy ? (i(), s(C, { key: 0 }, [
|
|
1046
|
-
a("p",
|
|
1046
|
+
a("p", nt, t(e.messages.matrixHierarchyHint), 1),
|
|
1047
1047
|
a("label", null, [
|
|
1048
|
-
|
|
1048
|
+
$(t(e.messages.matrixEmptyLabel), 1),
|
|
1049
1049
|
F(a("input", {
|
|
1050
1050
|
"onUpdate:modelValue": c[22] || (c[22] = (n) => l(d).hierarchy.emptyLabel = n),
|
|
1051
1051
|
"aria-label": e.messages.matrixEmptyLabel,
|
|
1052
1052
|
disabled: e.readonly,
|
|
1053
1053
|
placeholder: "(空)"
|
|
1054
|
-
}, null, 8,
|
|
1055
|
-
[
|
|
1054
|
+
}, null, 8, it), [
|
|
1055
|
+
[X, l(d).hierarchy.emptyLabel]
|
|
1056
1056
|
])
|
|
1057
1057
|
]),
|
|
1058
1058
|
(i(), s(C, null, M(["row", "column"], (n) => a("fieldset", {
|
|
@@ -1065,17 +1065,17 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
1065
1065
|
class: "mr-data-layout__pair"
|
|
1066
1066
|
}, [
|
|
1067
1067
|
a("label", null, [
|
|
1068
|
-
|
|
1068
|
+
$(t(v), 1),
|
|
1069
1069
|
a("select", {
|
|
1070
1070
|
"aria-label": `${v} · ${e.messages.matrixSort}`,
|
|
1071
1071
|
value: l(d).hierarchy[n]?.sort?.[o] ?? "source",
|
|
1072
1072
|
disabled: e.readonly,
|
|
1073
1073
|
onChange: (h) => l(w).setDimensionSort(n, o, h.target.value)
|
|
1074
1074
|
}, [
|
|
1075
|
-
a("option",
|
|
1076
|
-
a("option",
|
|
1077
|
-
a("option",
|
|
1078
|
-
], 40,
|
|
1075
|
+
a("option", dt, t(e.messages.matrixSourceOrder), 1),
|
|
1076
|
+
a("option", ot, t(e.messages.matrixAscending), 1),
|
|
1077
|
+
a("option", ut, t(e.messages.matrixDescending), 1)
|
|
1078
|
+
], 40, st)
|
|
1079
1079
|
]),
|
|
1080
1080
|
a("div", null, [
|
|
1081
1081
|
a("button", {
|
|
@@ -1083,41 +1083,41 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
1083
1083
|
"aria-label": `${v} · ${e.messages.moveUp}`,
|
|
1084
1084
|
disabled: e.readonly || o === 0,
|
|
1085
1085
|
onClick: (h) => l(w).moveDimension(n === "row" ? "rowFields" : "columnFields", o, -1)
|
|
1086
|
-
}, "↑", 8,
|
|
1086
|
+
}, "↑", 8, rt),
|
|
1087
1087
|
a("button", {
|
|
1088
1088
|
type: "button",
|
|
1089
1089
|
"aria-label": `${v} · ${e.messages.moveDown}`,
|
|
1090
1090
|
disabled: e.readonly || o === l(d)[n === "row" ? "rowFields" : "columnFields"].length - 1,
|
|
1091
1091
|
onClick: (h) => l(w).moveDimension(n === "row" ? "rowFields" : "columnFields", o, 1)
|
|
1092
|
-
}, "↓", 8,
|
|
1092
|
+
}, "↓", 8, ct)
|
|
1093
1093
|
]),
|
|
1094
|
-
o < l(d)[n === "row" ? "rowFields" : "columnFields"].length - 1 ? (i(), s("label",
|
|
1094
|
+
o < l(d)[n === "row" ? "rowFields" : "columnFields"].length - 1 ? (i(), s("label", mt, [
|
|
1095
1095
|
a("input", {
|
|
1096
1096
|
type: "checkbox",
|
|
1097
1097
|
checked: l(d).hierarchy[n]?.subtotals?.includes(o + 1) ?? !1,
|
|
1098
1098
|
disabled: e.readonly,
|
|
1099
1099
|
onChange: (h) => l(w).toggleMatrixSubtotal(n, o + 1, h.target.checked)
|
|
1100
|
-
}, null, 40,
|
|
1101
|
-
|
|
1102
|
-
])) :
|
|
1100
|
+
}, null, 40, vt),
|
|
1101
|
+
$(t(e.messages.matrixPrefixSubtotal), 1)
|
|
1102
|
+
])) : N("", !0)
|
|
1103
1103
|
]))), 128))
|
|
1104
1104
|
])), 64))
|
|
1105
|
-
], 64)) :
|
|
1105
|
+
], 64)) : N("", !0)
|
|
1106
1106
|
]),
|
|
1107
1107
|
a("details", null, [
|
|
1108
1108
|
a("summary", null, t(e.messages.widthSettings), 1),
|
|
1109
|
-
a("div",
|
|
1109
|
+
a("div", bt, [
|
|
1110
1110
|
a("label", null, [
|
|
1111
|
-
|
|
1111
|
+
$(t(e.messages.dimensionWidth), 1),
|
|
1112
1112
|
F(a("input", {
|
|
1113
1113
|
"onUpdate:modelValue": c[23] || (c[23] = (n) => l(d).rowWidthMm = n),
|
|
1114
1114
|
type: "number",
|
|
1115
1115
|
min: "1",
|
|
1116
1116
|
disabled: e.readonly,
|
|
1117
1117
|
placeholder: "40"
|
|
1118
|
-
}, null, 8,
|
|
1118
|
+
}, null, 8, gt), [
|
|
1119
1119
|
[
|
|
1120
|
-
|
|
1120
|
+
X,
|
|
1121
1121
|
l(d).rowWidthMm,
|
|
1122
1122
|
void 0,
|
|
1123
1123
|
{ number: !0 }
|
|
@@ -1125,16 +1125,16 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
1125
1125
|
])
|
|
1126
1126
|
]),
|
|
1127
1127
|
a("label", null, [
|
|
1128
|
-
|
|
1128
|
+
$(t(e.messages.measureWidth), 1),
|
|
1129
1129
|
F(a("input", {
|
|
1130
1130
|
"onUpdate:modelValue": c[24] || (c[24] = (n) => l(d).columnWidthMm = n),
|
|
1131
1131
|
type: "number",
|
|
1132
1132
|
min: "1",
|
|
1133
1133
|
disabled: e.readonly,
|
|
1134
1134
|
placeholder: "28"
|
|
1135
|
-
}, null, 8,
|
|
1135
|
+
}, null, 8, ft), [
|
|
1136
1136
|
[
|
|
1137
|
-
|
|
1137
|
+
X,
|
|
1138
1138
|
l(d).columnWidthMm,
|
|
1139
1139
|
void 0,
|
|
1140
1140
|
{ number: !0 }
|
|
@@ -1143,31 +1143,31 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
1143
1143
|
])
|
|
1144
1144
|
])
|
|
1145
1145
|
])
|
|
1146
|
-
], 64)) :
|
|
1147
|
-
a("div",
|
|
1146
|
+
], 64)) : N("", !0),
|
|
1147
|
+
a("div", yt, [
|
|
1148
1148
|
l(U) && e.mode === "matrix" ? (i(), s("button", {
|
|
1149
1149
|
key: 0,
|
|
1150
1150
|
type: "button",
|
|
1151
1151
|
disabled: e.readonly,
|
|
1152
1152
|
onClick: c[25] || (c[25] = //@ts-ignore
|
|
1153
1153
|
(...n) => l(w).checkMatrix && l(w).checkMatrix(...n))
|
|
1154
|
-
}, t(e.messages.check), 9,
|
|
1154
|
+
}, t(e.messages.check), 9, ht)) : N("", !0),
|
|
1155
1155
|
l(U) && e.mode === "tree" ? (i(), s("button", {
|
|
1156
1156
|
key: 1,
|
|
1157
1157
|
type: "button",
|
|
1158
1158
|
disabled: e.readonly,
|
|
1159
1159
|
onClick: c[26] || (c[26] = //@ts-ignore
|
|
1160
1160
|
(...n) => l(w).checkTree && l(w).checkTree(...n))
|
|
1161
|
-
}, t(e.messages.check), 9,
|
|
1161
|
+
}, t(e.messages.check), 9, kt)) : N("", !0),
|
|
1162
1162
|
a("button", {
|
|
1163
1163
|
type: "button",
|
|
1164
1164
|
class: "mr-data-layout__primary",
|
|
1165
1165
|
disabled: e.readonly,
|
|
1166
1166
|
onClick: c[27] || (c[27] = //@ts-ignore
|
|
1167
1167
|
(...n) => l(w).apply && l(w).apply(...n))
|
|
1168
|
-
}, t(e.messages.apply), 9,
|
|
1168
|
+
}, t(e.messages.apply), 9, $t)
|
|
1169
1169
|
]),
|
|
1170
|
-
l(K) ? (i(), s("div",
|
|
1170
|
+
l(K) ? (i(), s("div", Vt, [
|
|
1171
1171
|
a("p", null, t(e.messages.sample), 1),
|
|
1172
1172
|
a("table", null, [
|
|
1173
1173
|
a("thead", null, [
|
|
@@ -1181,20 +1181,20 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
1181
1181
|
]))), 128))
|
|
1182
1182
|
])
|
|
1183
1183
|
])
|
|
1184
|
-
])) :
|
|
1185
|
-
l(
|
|
1184
|
+
])) : N("", !0),
|
|
1185
|
+
l(x) ? (i(), s("p", wt, t(l(x)), 1)) : N("", !0)
|
|
1186
1186
|
]));
|
|
1187
1187
|
}
|
|
1188
|
-
}),
|
|
1188
|
+
}), Ut = /* @__PURE__ */ ge(Ct, [["__scopeId", "data-v-61513558"]]), Ft = { class: "mr-expression__row" }, St = ["value", "disabled", "aria-label"], Mt = { value: "field" }, xt = { value: "constant" }, Dt = {
|
|
1189
1189
|
key: 0,
|
|
1190
1190
|
value: "operation"
|
|
1191
|
-
},
|
|
1191
|
+
}, Nt = { value: "aggregate" }, Rt = ["value", "disabled", "aria-label"], Et = ["value"], Tt = ["value", "disabled", "aria-label"], Kt = ["value"], Lt = ["value", "disabled", "aria-label"], Bt = ["value"], Ot = ["value", "disabled", "aria-label"], At = { value: "text" }, It = { value: "number" }, Wt = { value: "boolean" }, Gt = { value: "null" }, Jt = ["value", "disabled", "aria-label"], jt = {
|
|
1192
1192
|
key: 0,
|
|
1193
1193
|
value: ""
|
|
1194
|
-
},
|
|
1194
|
+
}, Ht = ["value"], Pt = ["value", "disabled", "aria-label"], zt = {
|
|
1195
1195
|
value: "",
|
|
1196
1196
|
disabled: ""
|
|
1197
|
-
},
|
|
1197
|
+
}, qt = ["value"], Zt = ["value", "disabled", "aria-label"], Qt = { value: "true" }, Xt = { value: "false" }, Yt = ["type", "value", "disabled", "aria-label"], pt = { class: "mr-expression__help" }, _t = ["disabled", "aria-label", "onClick"], en = ["disabled"], ln = /* @__PURE__ */ be({
|
|
1198
1198
|
__name: "ReportExpressionEditor",
|
|
1199
1199
|
props: {
|
|
1200
1200
|
modelValue: {},
|
|
@@ -1205,85 +1205,85 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
1205
1205
|
},
|
|
1206
1206
|
emits: ["update:modelValue"],
|
|
1207
1207
|
setup(e, { emit: W }) {
|
|
1208
|
-
const
|
|
1209
|
-
() => "aggregate" in
|
|
1210
|
-
), d =
|
|
1211
|
-
|
|
1212
|
-
() =>
|
|
1208
|
+
const V = e, j = W, w = ye(), U = z(() => "op" in V.modelValue ? w.functions.find((c) => c.name === V.modelValue.op) : void 0), r = z(
|
|
1209
|
+
() => "aggregate" in V.modelValue ? "aggregate" : "field" in V.modelValue ? "field" : "value" in V.modelValue ? "constant" : "operation"
|
|
1210
|
+
), d = G("text");
|
|
1211
|
+
te(
|
|
1212
|
+
() => V.modelValue,
|
|
1213
1213
|
(c) => {
|
|
1214
1214
|
"value" in c && (d.value = c.value === null ? "null" : typeof c.value == "string" ? "text" : typeof c.value);
|
|
1215
1215
|
},
|
|
1216
1216
|
{ immediate: !0 }
|
|
1217
1217
|
);
|
|
1218
|
-
function
|
|
1219
|
-
|
|
1218
|
+
function b(c) {
|
|
1219
|
+
V.readonly || j("update:modelValue", c);
|
|
1220
1220
|
}
|
|
1221
1221
|
function T(c) {
|
|
1222
|
-
|
|
1222
|
+
b(c === "aggregate" ? { aggregate: "sum", field: V.fields[0]?.field ?? "" } : c === "field" ? { field: V.fields[0]?.field ?? "" } : c === "constant" ? { value: "" } : {
|
|
1223
1223
|
op: "add",
|
|
1224
|
-
args: [{ field:
|
|
1224
|
+
args: [{ field: V.fields[0]?.field ?? "" }, { value: 0 }]
|
|
1225
1225
|
});
|
|
1226
1226
|
}
|
|
1227
1227
|
function y(c) {
|
|
1228
|
-
const n = c, v = "args" in
|
|
1228
|
+
const n = c, v = "args" in V.modelValue ? V.modelValue.args : [{ value: 0 }, { value: 0 }], o = w.functions.find((A) => A.name === n), h = [...v.slice(0, o.maxArgs)];
|
|
1229
1229
|
for (; h.length < o.minArgs; ) h.push({ value: 0 });
|
|
1230
|
-
|
|
1230
|
+
b({ op: n, args: h, ...n === "if" ? { condition: "args" in V.modelValue && V.modelValue.condition ? V.modelValue.condition : { field: V.fields[0]?.field ?? "", op: ">", value: 0 } } : {} });
|
|
1231
1231
|
}
|
|
1232
1232
|
function L(c, n) {
|
|
1233
|
-
"args" in
|
|
1234
|
-
|
|
1235
|
-
args:
|
|
1233
|
+
"args" in V.modelValue && b({
|
|
1234
|
+
...V.modelValue,
|
|
1235
|
+
args: V.modelValue.args.map(
|
|
1236
1236
|
(v, o) => o === c ? n : v
|
|
1237
1237
|
)
|
|
1238
1238
|
});
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1241
|
-
if (!("args" in
|
|
1242
|
-
const n = c === void 0 ? [
|
|
1243
|
-
|
|
1240
|
+
function x(c) {
|
|
1241
|
+
if (!("args" in V.modelValue)) return;
|
|
1242
|
+
const n = c === void 0 ? [...V.modelValue.args, { value: 0 }] : V.modelValue.args.filter((v, o) => o !== c);
|
|
1243
|
+
b({ ...V.modelValue, args: n });
|
|
1244
1244
|
}
|
|
1245
1245
|
function K(c) {
|
|
1246
|
-
d.value = c,
|
|
1246
|
+
d.value = c, b({
|
|
1247
1247
|
value: c === "null" ? null : c === "boolean" ? !1 : c === "number" ? 0 : ""
|
|
1248
1248
|
});
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1251
|
-
d.value === "number" ? c.trim() && Number.isFinite(Number(c)) &&
|
|
1250
|
+
function H(c) {
|
|
1251
|
+
d.value === "number" ? c.trim() && Number.isFinite(Number(c)) && b({ value: Number(c) }) : b({ value: c });
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1254
|
-
if (!("aggregate" in
|
|
1255
|
-
const v = {
|
|
1256
|
-
c === "aggregate" && (v.aggregate = n), c === "field" && !n && delete v.field,
|
|
1253
|
+
function J(c, n) {
|
|
1254
|
+
if (!("aggregate" in V.modelValue)) return;
|
|
1255
|
+
const v = { ...V.modelValue, [c]: n };
|
|
1256
|
+
c === "aggregate" && (v.aggregate = n), c === "field" && !n && delete v.field, b(v);
|
|
1257
1257
|
}
|
|
1258
1258
|
return (c, n) => {
|
|
1259
|
-
const v =
|
|
1259
|
+
const v = ke("ReportExpressionEditor", !0);
|
|
1260
1260
|
return i(), s("div", {
|
|
1261
|
-
class:
|
|
1261
|
+
class: fe(["mr-expression", { "mr-expression--nested": (e.depth ?? 0) > 0 }])
|
|
1262
1262
|
}, [
|
|
1263
|
-
a("div",
|
|
1263
|
+
a("div", Ft, [
|
|
1264
1264
|
a("select", {
|
|
1265
1265
|
value: r.value,
|
|
1266
1266
|
disabled: e.readonly,
|
|
1267
1267
|
"aria-label": e.messages.argument,
|
|
1268
1268
|
onChange: n[0] || (n[0] = (o) => T(o.target.value))
|
|
1269
1269
|
}, [
|
|
1270
|
-
a("option",
|
|
1271
|
-
a("option",
|
|
1272
|
-
(e.depth ?? 0) < 12 ? (i(), s("option",
|
|
1273
|
-
a("option",
|
|
1274
|
-
], 40,
|
|
1270
|
+
a("option", Mt, t(e.messages.field), 1),
|
|
1271
|
+
a("option", xt, t(e.messages.constant), 1),
|
|
1272
|
+
(e.depth ?? 0) < 12 ? (i(), s("option", Dt, t(e.messages.operation), 1)) : N("", !0),
|
|
1273
|
+
a("option", Nt, t(e.messages.aggregate), 1)
|
|
1274
|
+
], 40, St),
|
|
1275
1275
|
"field" in e.modelValue && !("aggregate" in e.modelValue) ? (i(), s("select", {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
value: e.modelValue.field,
|
|
1278
1278
|
disabled: e.readonly,
|
|
1279
1279
|
"aria-label": e.messages.field,
|
|
1280
|
-
onChange: n[1] || (n[1] = (o) =>
|
|
1280
|
+
onChange: n[1] || (n[1] = (o) => b({ field: o.target.value }))
|
|
1281
1281
|
}, [
|
|
1282
1282
|
(i(!0), s(C, null, M(e.fields, (o) => (i(), s("option", {
|
|
1283
1283
|
key: o.field,
|
|
1284
1284
|
value: o.field
|
|
1285
|
-
}, t(o.label), 9,
|
|
1286
|
-
], 40,
|
|
1285
|
+
}, t(o.label), 9, Et))), 128))
|
|
1286
|
+
], 40, Rt)) : "op" in e.modelValue ? (i(), s("select", {
|
|
1287
1287
|
key: 1,
|
|
1288
1288
|
value: e.modelValue.op,
|
|
1289
1289
|
disabled: e.readonly,
|
|
@@ -1293,95 +1293,95 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
1293
1293
|
(i(!0), s(C, null, M(l(w).operations, (o) => (i(), s("option", {
|
|
1294
1294
|
key: o,
|
|
1295
1295
|
value: o
|
|
1296
|
-
}, t(e.messages[o]), 9,
|
|
1297
|
-
], 40,
|
|
1296
|
+
}, t(e.messages[o]), 9, Kt))), 128))
|
|
1297
|
+
], 40, Tt)) : "aggregate" in e.modelValue ? (i(), s("select", {
|
|
1298
1298
|
key: 2,
|
|
1299
1299
|
value: e.modelValue.aggregate,
|
|
1300
1300
|
disabled: e.readonly,
|
|
1301
1301
|
"aria-label": e.messages.aggregate,
|
|
1302
|
-
onChange: n[3] || (n[3] = (o) =>
|
|
1302
|
+
onChange: n[3] || (n[3] = (o) => J("aggregate", o.target.value))
|
|
1303
1303
|
}, [
|
|
1304
1304
|
(i(!0), s(C, null, M(l(w).aggregates, (o) => (i(), s("option", {
|
|
1305
1305
|
key: o,
|
|
1306
1306
|
value: o
|
|
1307
|
-
}, t(e.messages[o]), 9,
|
|
1308
|
-
], 40,
|
|
1307
|
+
}, t(e.messages[o]), 9, Bt))), 128))
|
|
1308
|
+
], 40, Lt)) : (i(), s("select", {
|
|
1309
1309
|
key: 3,
|
|
1310
1310
|
value: d.value,
|
|
1311
1311
|
disabled: e.readonly,
|
|
1312
1312
|
"aria-label": e.messages.resultType,
|
|
1313
1313
|
onChange: n[4] || (n[4] = (o) => K(o.target.value))
|
|
1314
1314
|
}, [
|
|
1315
|
-
a("option",
|
|
1316
|
-
a("option",
|
|
1317
|
-
a("option",
|
|
1318
|
-
a("option",
|
|
1319
|
-
], 40,
|
|
1315
|
+
a("option", At, t(e.messages.text), 1),
|
|
1316
|
+
a("option", It, t(e.messages.number), 1),
|
|
1317
|
+
a("option", Wt, t(e.messages.boolean), 1),
|
|
1318
|
+
a("option", Gt, t(e.messages.null), 1)
|
|
1319
|
+
], 40, Ot))
|
|
1320
1320
|
]),
|
|
1321
1321
|
"aggregate" in e.modelValue ? (i(), s(C, { key: 0 }, [
|
|
1322
1322
|
a("select", {
|
|
1323
1323
|
value: e.modelValue.field ?? "",
|
|
1324
1324
|
disabled: e.readonly,
|
|
1325
1325
|
"aria-label": e.messages.measure,
|
|
1326
|
-
onChange: n[5] || (n[5] = (o) =>
|
|
1326
|
+
onChange: n[5] || (n[5] = (o) => J("field", o.target.value))
|
|
1327
1327
|
}, [
|
|
1328
|
-
e.modelValue.aggregate === "count" ? (i(), s("option",
|
|
1328
|
+
e.modelValue.aggregate === "count" ? (i(), s("option", jt, t(e.messages.allRows), 1)) : N("", !0),
|
|
1329
1329
|
(i(!0), s(C, null, M(e.fields, (o) => (i(), s("option", {
|
|
1330
1330
|
key: o.field,
|
|
1331
1331
|
value: o.field
|
|
1332
|
-
}, t(o.label), 9,
|
|
1333
|
-
], 40,
|
|
1332
|
+
}, t(o.label), 9, Ht))), 128))
|
|
1333
|
+
], 40, Jt),
|
|
1334
1334
|
e.modelValue.aggregate === "weightedAvg" ? (i(), s("select", {
|
|
1335
1335
|
key: 0,
|
|
1336
1336
|
value: e.modelValue.weightField ?? "",
|
|
1337
1337
|
disabled: e.readonly,
|
|
1338
1338
|
"aria-label": e.messages.weight,
|
|
1339
|
-
onChange: n[6] || (n[6] = (o) =>
|
|
1339
|
+
onChange: n[6] || (n[6] = (o) => J(
|
|
1340
1340
|
"weightField",
|
|
1341
1341
|
o.target.value
|
|
1342
1342
|
))
|
|
1343
1343
|
}, [
|
|
1344
|
-
a("option",
|
|
1344
|
+
a("option", zt, t(e.messages.weight), 1),
|
|
1345
1345
|
(i(!0), s(C, null, M(e.fields, (o) => (i(), s("option", {
|
|
1346
1346
|
key: o.field,
|
|
1347
1347
|
value: o.field
|
|
1348
|
-
}, t(o.label), 9,
|
|
1349
|
-
], 40,
|
|
1348
|
+
}, t(o.label), 9, qt))), 128))
|
|
1349
|
+
], 40, Pt)) : N("", !0)
|
|
1350
1350
|
], 64)) : "value" in e.modelValue ? (i(), s(C, { key: 1 }, [
|
|
1351
1351
|
d.value === "boolean" ? (i(), s("select", {
|
|
1352
1352
|
key: 0,
|
|
1353
1353
|
value: String(e.modelValue.value),
|
|
1354
1354
|
disabled: e.readonly,
|
|
1355
1355
|
"aria-label": e.messages.constant,
|
|
1356
|
-
onChange: n[7] || (n[7] = (o) =>
|
|
1356
|
+
onChange: n[7] || (n[7] = (o) => b({
|
|
1357
1357
|
value: o.target.value === "true"
|
|
1358
1358
|
}))
|
|
1359
1359
|
}, [
|
|
1360
|
-
a("option",
|
|
1361
|
-
a("option",
|
|
1362
|
-
], 40,
|
|
1360
|
+
a("option", Qt, t(e.messages.true), 1),
|
|
1361
|
+
a("option", Xt, t(e.messages.false), 1)
|
|
1362
|
+
], 40, Zt)) : d.value !== "null" ? (i(), s("input", {
|
|
1363
1363
|
key: 1,
|
|
1364
1364
|
type: d.value === "number" ? "number" : "text",
|
|
1365
1365
|
value: e.modelValue.value ?? "",
|
|
1366
1366
|
disabled: e.readonly,
|
|
1367
1367
|
"aria-label": e.messages.constant,
|
|
1368
|
-
onInput: n[8] || (n[8] = (o) =>
|
|
1369
|
-
}, null, 40,
|
|
1368
|
+
onInput: n[8] || (n[8] = (o) => H(o.target.value))
|
|
1369
|
+
}, null, 40, Yt)) : N("", !0)
|
|
1370
1370
|
], 64)) : "args" in e.modelValue ? (i(), s(C, { key: 2 }, [
|
|
1371
|
-
e.modelValue.op === "if" && e.modelValue.condition ? (i(),
|
|
1371
|
+
e.modelValue.op === "if" && e.modelValue.condition ? (i(), $e(Fe, {
|
|
1372
1372
|
key: 0,
|
|
1373
1373
|
"model-value": e.modelValue.condition,
|
|
1374
1374
|
fields: e.fields,
|
|
1375
1375
|
messages: e.messages,
|
|
1376
1376
|
readonly: e.readonly,
|
|
1377
|
-
"onUpdate:modelValue": n[9] || (n[9] = (o) =>
|
|
1378
|
-
}, null, 8, ["model-value", "fields", "messages", "readonly"])) :
|
|
1379
|
-
a("small",
|
|
1377
|
+
"onUpdate:modelValue": n[9] || (n[9] = (o) => b({ ...e.modelValue, condition: o }))
|
|
1378
|
+
}, null, 8, ["model-value", "fields", "messages", "readonly"])) : N("", !0),
|
|
1379
|
+
a("small", pt, t(U.value?.example), 1),
|
|
1380
1380
|
(i(!0), s(C, null, M(e.modelValue.args, (o, h) => (i(), s("div", {
|
|
1381
1381
|
key: h,
|
|
1382
1382
|
class: "mr-expression__argument"
|
|
1383
1383
|
}, [
|
|
1384
|
-
|
|
1384
|
+
ve(v, {
|
|
1385
1385
|
"model-value": o,
|
|
1386
1386
|
fields: e.fields,
|
|
1387
1387
|
messages: e.messages,
|
|
@@ -1394,334 +1394,334 @@ const kl = { class: "mr-data-layout" }, $l = { class: "mr-data-layout__check" },
|
|
|
1394
1394
|
type: "button",
|
|
1395
1395
|
disabled: e.readonly,
|
|
1396
1396
|
"aria-label": `${e.messages.remove} ${e.messages.argument} ${h + 1}`,
|
|
1397
|
-
onClick: (A) =>
|
|
1398
|
-
}, " × ", 8,
|
|
1397
|
+
onClick: (A) => x(h)
|
|
1398
|
+
}, " × ", 8, _t)) : N("", !0)
|
|
1399
1399
|
]))), 128)),
|
|
1400
1400
|
e.modelValue.args.length < Math.min(16, U.value?.maxArgs ?? 16) ? (i(), s("button", {
|
|
1401
1401
|
key: 1,
|
|
1402
1402
|
type: "button",
|
|
1403
1403
|
disabled: e.readonly,
|
|
1404
|
-
onClick: n[10] || (n[10] = (o) =>
|
|
1405
|
-
}, " + " + t(e.messages.addArgument), 9,
|
|
1406
|
-
], 64)) :
|
|
1404
|
+
onClick: n[10] || (n[10] = (o) => x())
|
|
1405
|
+
}, " + " + t(e.messages.addArgument), 9, en)) : N("", !0)
|
|
1406
|
+
], 64)) : N("", !0)
|
|
1407
1407
|
], 2);
|
|
1408
1408
|
};
|
|
1409
1409
|
}
|
|
1410
|
-
}),
|
|
1411
|
-
function
|
|
1412
|
-
const
|
|
1413
|
-
...
|
|
1410
|
+
}), an = /* @__PURE__ */ ge(ln, [["__scopeId", "data-v-e610e9c4"]]), Z = (e) => JSON.parse(JSON.stringify(e));
|
|
1411
|
+
function tn(e, W) {
|
|
1412
|
+
const V = z(() => ({
|
|
1413
|
+
...Le,
|
|
1414
1414
|
...e.messages
|
|
1415
|
-
})), j =
|
|
1415
|
+
})), j = G("computations"), w = G(""), U = G(""), r = G({
|
|
1416
1416
|
field: "",
|
|
1417
1417
|
expression: { field: "" },
|
|
1418
1418
|
scope: "row"
|
|
1419
|
-
}), d =
|
|
1419
|
+
}), d = G([]), b = G(0), T = G(""), y = G(-1), L = G("style"), x = G({ field: "", op: ">", value: 0 }), K = G(null), H = z(() => K.value ?? x.value), J = G({
|
|
1420
1420
|
color: "#b91c1c",
|
|
1421
1421
|
backgroundColor: "#fff1f2",
|
|
1422
1422
|
bold: !1
|
|
1423
|
-
}), c =
|
|
1424
|
-
let
|
|
1425
|
-
const
|
|
1426
|
-
let
|
|
1427
|
-
const
|
|
1428
|
-
const
|
|
1429
|
-
for (const
|
|
1430
|
-
|
|
1431
|
-
for (const
|
|
1432
|
-
|
|
1433
|
-
for (const
|
|
1423
|
+
}), c = G([]), n = me(() => r.value), v = me(() => d.value), o = me(() => ({ when: x.value, composedWhen: K.value, style: J.value })), h = G(/* @__PURE__ */ new Map()), A = G(/* @__PURE__ */ new Map());
|
|
1424
|
+
let Q = "", p = !1;
|
|
1425
|
+
const ee = z(() => n.pending.value || v.pending.value || o.pending.value || h.value.size > 0 || A.value.size > 0);
|
|
1426
|
+
let le;
|
|
1427
|
+
const ne = z(() => {
|
|
1428
|
+
const g = /* @__PURE__ */ new Map();
|
|
1429
|
+
for (const f of e.datasetSchema?.fields ?? [])
|
|
1430
|
+
g.set(f.field, f.label ?? f.field);
|
|
1431
|
+
for (const f of e.list.columns)
|
|
1432
|
+
g.has(f.field) || g.set(f.field, f.header || f.field);
|
|
1433
|
+
for (const f of Object.keys(
|
|
1434
1434
|
e.datasets?.[e.list.dataset]?.[0] ?? {}
|
|
1435
1435
|
))
|
|
1436
|
-
|
|
1437
|
-
return [...
|
|
1438
|
-
}),
|
|
1439
|
-
() => e.list.columns.find((
|
|
1440
|
-
),
|
|
1441
|
-
function
|
|
1442
|
-
if (
|
|
1443
|
-
|
|
1436
|
+
g.has(f) || g.set(f, f);
|
|
1437
|
+
return [...g].map(([f, B]) => ({ field: f, label: B }));
|
|
1438
|
+
}), _ = z(() => d.value[b.value]), ie = z(
|
|
1439
|
+
() => e.list.columns.find((g) => g.field === T.value)
|
|
1440
|
+
), de = z(() => We(S()));
|
|
1441
|
+
function se() {
|
|
1442
|
+
if (le === JSON.stringify(e.list)) {
|
|
1443
|
+
le = void 0;
|
|
1444
1444
|
return;
|
|
1445
1445
|
}
|
|
1446
|
-
|
|
1446
|
+
p = !0, h.value = /* @__PURE__ */ new Map(), A.value = /* @__PURE__ */ new Map(), d.value = Z(
|
|
1447
1447
|
e.list.groups ?? (e.list.groupBy ? [e.list.groupBy] : [])
|
|
1448
1448
|
);
|
|
1449
|
-
for (const
|
|
1450
|
-
e.list.columns.some((
|
|
1449
|
+
for (const g of d.value) for (const f of g.aggregates ?? []) f.numeric ??= "number";
|
|
1450
|
+
e.list.columns.some((g) => g.field === T.value) || (T.value = e.list.columns[0]?.field ?? ""), w.value = "", c.value = [], m(U.value), he(-1), v.accept(), p = !1;
|
|
1451
1451
|
}
|
|
1452
|
-
|
|
1452
|
+
te(() => e.list, se, { immediate: !0 }), te(r, () => {
|
|
1453
1453
|
c.value = [];
|
|
1454
|
-
}, { deep: !0 }),
|
|
1454
|
+
}, { deep: !0 }), te(() => e.datasets, () => {
|
|
1455
1455
|
c.value = [];
|
|
1456
1456
|
}, { deep: !0 });
|
|
1457
|
-
function m(
|
|
1458
|
-
!
|
|
1459
|
-
e.list.computed?.find((B) => B.field ===
|
|
1457
|
+
function m(g) {
|
|
1458
|
+
!p && n.pending.value && (h.value = new Map(h.value).set(U.value, Z(r.value))), U.value = g, r.value = Z(
|
|
1459
|
+
e.list.computed?.find((B) => B.field === g) ?? {
|
|
1460
1460
|
field: "",
|
|
1461
|
-
expression: { field:
|
|
1461
|
+
expression: { field: ne.value[0]?.field ?? "" },
|
|
1462
1462
|
scope: "row"
|
|
1463
1463
|
}
|
|
1464
1464
|
), r.value.numeric ??= "number", c.value = [], w.value = "", n.accept();
|
|
1465
|
-
const
|
|
1466
|
-
if (
|
|
1467
|
-
r.value =
|
|
1465
|
+
const f = h.value.get(g);
|
|
1466
|
+
if (f) {
|
|
1467
|
+
r.value = Z(f);
|
|
1468
1468
|
const B = new Map(h.value);
|
|
1469
|
-
B.delete(
|
|
1469
|
+
B.delete(g), h.value = B;
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
1472
|
function S() {
|
|
1473
1473
|
return [
|
|
1474
|
-
...(e.list.computed ?? []).filter((
|
|
1475
|
-
|
|
1474
|
+
...(e.list.computed ?? []).filter((f) => f.field !== U.value),
|
|
1475
|
+
Z(r.value)
|
|
1476
1476
|
];
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function R(g) {
|
|
1479
1479
|
if (e.readonly) return !1;
|
|
1480
|
-
const
|
|
1480
|
+
const f = we({
|
|
1481
1481
|
pages: [
|
|
1482
1482
|
{
|
|
1483
|
-
widthMm: Math.max(1,
|
|
1483
|
+
widthMm: Math.max(1, g.leftMm + g.widthMm),
|
|
1484
1484
|
heightMm: 297,
|
|
1485
|
-
components: [
|
|
1485
|
+
components: [g]
|
|
1486
1486
|
}
|
|
1487
1487
|
]
|
|
1488
1488
|
});
|
|
1489
|
-
return
|
|
1489
|
+
return f.ok ? (w.value = "", le = JSON.stringify(g), W(g), !0) : (w.value = f.errors.map((B) => B.message).slice(0, 3).join(";"), !1);
|
|
1490
1490
|
}
|
|
1491
1491
|
function D() {
|
|
1492
1492
|
if (!r.value.field.trim()) {
|
|
1493
|
-
w.value =
|
|
1493
|
+
w.value = V.value.missingTarget;
|
|
1494
1494
|
return;
|
|
1495
1495
|
}
|
|
1496
|
-
const
|
|
1497
|
-
if (
|
|
1496
|
+
const g = Z(e.list);
|
|
1497
|
+
if (g.computed = S(), g.columns.some((f) => f.field === r.value.field) || g.columns.push({
|
|
1498
1498
|
field: r.value.field,
|
|
1499
1499
|
header: r.value.field,
|
|
1500
1500
|
widthMm: 30,
|
|
1501
1501
|
semanticRole: "measure",
|
|
1502
|
-
align: "right",
|
|
1503
1502
|
editable: !1,
|
|
1504
1503
|
format: {
|
|
1505
1504
|
kind: "number",
|
|
1506
1505
|
...r.value.digits === void 0 ? {} : { digits: r.value.digits }
|
|
1507
1506
|
}
|
|
1508
|
-
}),
|
|
1509
|
-
const
|
|
1510
|
-
|
|
1507
|
+
}), R(g)) {
|
|
1508
|
+
const f = new Map(h.value);
|
|
1509
|
+
f.delete(U.value), f.delete(r.value.field), h.value = f, U.value = r.value.field, n.accept();
|
|
1511
1510
|
}
|
|
1512
1511
|
}
|
|
1513
1512
|
function E() {
|
|
1514
1513
|
if (!U.value) return;
|
|
1515
|
-
const
|
|
1516
|
-
if (
|
|
1517
|
-
(
|
|
1518
|
-
),
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1514
|
+
const g = Z(e.list);
|
|
1515
|
+
if (g.computed = (g.computed ?? []).filter(
|
|
1516
|
+
(f) => f.field !== U.value
|
|
1517
|
+
), R(g)) {
|
|
1518
|
+
const f = new Map(h.value);
|
|
1519
|
+
f.delete(U.value), h.value = f, n.accept(), m("");
|
|
1521
1520
|
}
|
|
1522
1521
|
}
|
|
1523
|
-
function
|
|
1522
|
+
function ae() {
|
|
1524
1523
|
c.value = [], w.value = "";
|
|
1525
|
-
const
|
|
1526
|
-
if (!
|
|
1527
|
-
w.value =
|
|
1524
|
+
const g = e.datasets?.[e.list.dataset];
|
|
1525
|
+
if (!g?.length) {
|
|
1526
|
+
w.value = V.value.noData;
|
|
1528
1527
|
return;
|
|
1529
1528
|
}
|
|
1530
1529
|
try {
|
|
1531
|
-
const
|
|
1530
|
+
const f = Ge(g.slice(0, 1e3), {
|
|
1532
1531
|
fields: S(),
|
|
1533
1532
|
maxRows: 1e3,
|
|
1534
1533
|
maxCells: 2e6
|
|
1535
1534
|
});
|
|
1536
|
-
c.value =
|
|
1537
|
-
row:
|
|
1535
|
+
c.value = f.rows.slice(0, 5).map((B, Y) => ({
|
|
1536
|
+
row: Y + 1,
|
|
1538
1537
|
value: B[r.value.field]
|
|
1539
1538
|
}));
|
|
1540
|
-
} catch (
|
|
1541
|
-
w.value =
|
|
1539
|
+
} catch (f) {
|
|
1540
|
+
w.value = f instanceof Error ? f.message : String(f);
|
|
1542
1541
|
}
|
|
1543
1542
|
}
|
|
1544
|
-
function
|
|
1545
|
-
r.value.expression =
|
|
1543
|
+
function P(g) {
|
|
1544
|
+
r.value.expression = g;
|
|
1546
1545
|
}
|
|
1547
|
-
function
|
|
1548
|
-
r.value.groupBy =
|
|
1546
|
+
function k(g, f) {
|
|
1547
|
+
r.value.groupBy = f ? [...r.value.groupBy ?? [], g] : (r.value.groupBy ?? []).filter((B) => B !== g);
|
|
1549
1548
|
}
|
|
1550
|
-
function
|
|
1549
|
+
function u() {
|
|
1551
1550
|
d.value.push({
|
|
1552
|
-
field:
|
|
1551
|
+
field: ne.value[0]?.field ?? "",
|
|
1553
1552
|
headerTemplate: "{value}",
|
|
1554
|
-
subtotalLabel:
|
|
1553
|
+
subtotalLabel: V.value.subtotalLabel,
|
|
1555
1554
|
aggregates: [],
|
|
1556
1555
|
keepWithNext: !0
|
|
1557
|
-
}),
|
|
1556
|
+
}), b.value = d.value.length - 1;
|
|
1558
1557
|
}
|
|
1559
|
-
function
|
|
1560
|
-
const
|
|
1561
|
-
B < 0 || B >= d.value.length || ([d.value[
|
|
1558
|
+
function q(g) {
|
|
1559
|
+
const f = b.value, B = f + g;
|
|
1560
|
+
B < 0 || B >= d.value.length || ([d.value[f], d.value[B]] = [
|
|
1562
1561
|
d.value[B],
|
|
1563
|
-
d.value[
|
|
1564
|
-
],
|
|
1562
|
+
d.value[f]
|
|
1563
|
+
], b.value = B);
|
|
1565
1564
|
}
|
|
1566
|
-
function
|
|
1567
|
-
d.value.splice(
|
|
1565
|
+
function I() {
|
|
1566
|
+
d.value.splice(b.value, 1), b.value = Math.max(
|
|
1568
1567
|
0,
|
|
1569
|
-
Math.min(
|
|
1568
|
+
Math.min(b.value, d.value.length - 1)
|
|
1570
1569
|
);
|
|
1571
1570
|
}
|
|
1572
1571
|
function Se() {
|
|
1573
|
-
|
|
1574
|
-
field:
|
|
1572
|
+
_.value && (_.value.aggregates ??= []).push({
|
|
1573
|
+
field: ne.value[0]?.field ?? "",
|
|
1575
1574
|
op: "sum",
|
|
1576
1575
|
numeric: "number"
|
|
1577
1576
|
});
|
|
1578
1577
|
}
|
|
1579
1578
|
function Me() {
|
|
1580
|
-
const
|
|
1581
|
-
|
|
1579
|
+
const g = Z(e.list);
|
|
1580
|
+
g.groups = Z(d.value), delete g.groupBy, R(g) && v.accept();
|
|
1582
1581
|
}
|
|
1583
|
-
function
|
|
1584
|
-
K.value =
|
|
1582
|
+
function xe(g) {
|
|
1583
|
+
K.value = g && !("field" in g) ? Z(g) : null, x.value = Z(g && "field" in g ? g : { field: T.value, op: ">", value: 0 });
|
|
1585
1584
|
}
|
|
1586
|
-
function
|
|
1587
|
-
!
|
|
1588
|
-
const
|
|
1589
|
-
|
|
1590
|
-
const B =
|
|
1591
|
-
|
|
1585
|
+
function he(g) {
|
|
1586
|
+
!p && o.pending.value && (A.value = new Map(A.value).set(Q, { when: Z(x.value), composedWhen: Z(K.value), style: { ...J.value } })), Q = `${T.value}|${L.value}|${g}`, y.value = g;
|
|
1587
|
+
const f = L.value === "cell" ? ie.value?.visibleWhen : L.value === "rowVisibility" ? e.list.rowVisibleWhen : ie.value?.rules?.[g]?.when;
|
|
1588
|
+
xe(f);
|
|
1589
|
+
const B = ie.value?.rules?.[g]?.style;
|
|
1590
|
+
J.value = {
|
|
1592
1591
|
color: String(B?.color ?? "#b91c1c"),
|
|
1593
1592
|
backgroundColor: String(B?.backgroundColor ?? "#fff1f2"),
|
|
1594
1593
|
bold: B?.bold === !0
|
|
1595
1594
|
}, o.accept();
|
|
1596
|
-
const
|
|
1597
|
-
if (
|
|
1598
|
-
|
|
1599
|
-
const
|
|
1600
|
-
|
|
1595
|
+
const Y = A.value.get(Q);
|
|
1596
|
+
if (Y) {
|
|
1597
|
+
x.value = Z(Y.when), K.value = Z(Y.composedWhen), J.value = { ...Y.style };
|
|
1598
|
+
const ue = new Map(A.value);
|
|
1599
|
+
ue.delete(Q), A.value = ue;
|
|
1601
1600
|
}
|
|
1602
1601
|
}
|
|
1603
|
-
function
|
|
1604
|
-
const
|
|
1605
|
-
(
|
|
1602
|
+
function De(g) {
|
|
1603
|
+
const f = e.datasetSchema?.fields.find(
|
|
1604
|
+
(ue) => ue.field === x.value.field
|
|
1606
1605
|
), B = e.datasets?.[e.list.dataset]?.find(
|
|
1607
|
-
(
|
|
1608
|
-
)?.[
|
|
1609
|
-
|
|
1606
|
+
(ue) => ue[x.value.field] != null
|
|
1607
|
+
)?.[x.value.field], Y = f?.type === "number" || !f && typeof B == "number";
|
|
1608
|
+
f?.type === "decimal" ? x.value.numeric = "decimal" : Y ? x.value.numeric = "number" : delete x.value.numeric, x.value.value = Y && g.trim() && Number.isFinite(Number(g)) ? Number(g) : g;
|
|
1610
1609
|
}
|
|
1611
|
-
function Ne(
|
|
1612
|
-
const
|
|
1610
|
+
function Ne(g = !1) {
|
|
1611
|
+
const f = Z(e.list), B = f.columns.find((Y) => Y.field === T.value);
|
|
1613
1612
|
if (!B) {
|
|
1614
|
-
w.value =
|
|
1613
|
+
w.value = V.value.noSelection;
|
|
1615
1614
|
return;
|
|
1616
1615
|
}
|
|
1617
1616
|
if (L.value === "rowVisibility")
|
|
1618
|
-
|
|
1617
|
+
g ? delete f.rowVisibleWhen : f.rowVisibleWhen = Z(H.value);
|
|
1619
1618
|
else if (L.value === "cell")
|
|
1620
|
-
|
|
1621
|
-
else if (B.rules ??= [],
|
|
1619
|
+
g ? delete B.visibleWhen : B.visibleWhen = Z(H.value);
|
|
1620
|
+
else if (B.rules ??= [], g && y.value >= 0)
|
|
1622
1621
|
B.rules.splice(y.value, 1);
|
|
1623
1622
|
else {
|
|
1624
|
-
if (
|
|
1623
|
+
if (g) return;
|
|
1625
1624
|
y.value < 0 ? B.rules.push({
|
|
1626
|
-
when:
|
|
1627
|
-
style: { ...
|
|
1625
|
+
when: Z(H.value),
|
|
1626
|
+
style: { ...J.value }
|
|
1628
1627
|
}) : B.rules[y.value] = {
|
|
1629
|
-
when:
|
|
1630
|
-
style: { ...
|
|
1628
|
+
when: Z(H.value),
|
|
1629
|
+
style: { ...J.value }
|
|
1631
1630
|
};
|
|
1632
1631
|
}
|
|
1633
|
-
if (
|
|
1634
|
-
const
|
|
1635
|
-
|
|
1632
|
+
if (R(f)) {
|
|
1633
|
+
const Y = new Map(A.value);
|
|
1634
|
+
Y.delete(Q), A.value = Y, o.accept();
|
|
1636
1635
|
}
|
|
1637
1636
|
}
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
}, snapshot: () => JSON.stringify(Re()), restore(
|
|
1641
|
-
const
|
|
1642
|
-
r.value =
|
|
1637
|
+
Ve({ key: () => e.recoveryKey ?? "rules:0:0", baseline: () => JSON.stringify(e.list), pending: () => ee.value, reset: () => {
|
|
1638
|
+
le = void 0, se();
|
|
1639
|
+
}, snapshot: () => JSON.stringify(Re()), restore(g) {
|
|
1640
|
+
const f = JSON.parse(g);
|
|
1641
|
+
r.value = f.formula, d.value = f.groups, x.value = f.when, K.value = f.composedWhen, J.value = f.style, U.value = f.selectedComputed, T.value = f.column, y.value = f.conditionIndex, Q = f.conditionKey, L.value = f.effect, j.value = f.tab, h.value = new Map(f.computedDrafts), A.value = new Map(f.conditionDrafts), n.baseline.value = f.formulaBaseline, v.baseline.value = f.groupBaseline, o.baseline.value = f.conditionBaseline;
|
|
1643
1642
|
} });
|
|
1644
1643
|
function Re() {
|
|
1645
|
-
return { formula: r.value, groups: d.value, when:
|
|
1644
|
+
return { formula: r.value, groups: d.value, when: x.value, composedWhen: K.value, style: J.value, selectedComputed: U.value, column: T.value, conditionIndex: y.value, conditionKey: Q, effect: L.value, tab: j.value, computedDrafts: [...h.value], conditionDrafts: [...A.value], formulaBaseline: n.baseline.value, groupBaseline: v.baseline.value, conditionBaseline: o.baseline.value };
|
|
1646
1645
|
}
|
|
1647
1646
|
return {
|
|
1648
|
-
m:
|
|
1649
|
-
pendingLocalChanges:
|
|
1650
|
-
draftSnapshot: () => JSON.stringify({ formula: r.value, groups: d.value, when:
|
|
1647
|
+
m: V,
|
|
1648
|
+
pendingLocalChanges: ee,
|
|
1649
|
+
draftSnapshot: () => JSON.stringify({ formula: r.value, groups: d.value, when: x.value, composedWhen: K.value, style: J.value, computedDrafts: [...h.value], conditionDrafts: [...A.value] }),
|
|
1651
1650
|
tab: j,
|
|
1652
|
-
fields:
|
|
1651
|
+
fields: ne,
|
|
1653
1652
|
formula: r,
|
|
1654
1653
|
groups: d,
|
|
1655
|
-
groupIndex:
|
|
1656
|
-
currentGroup:
|
|
1654
|
+
groupIndex: b,
|
|
1655
|
+
currentGroup: _,
|
|
1657
1656
|
column: T,
|
|
1658
|
-
currentColumn:
|
|
1657
|
+
currentColumn: ie,
|
|
1659
1658
|
conditionIndex: y,
|
|
1660
1659
|
effect: L,
|
|
1661
|
-
when:
|
|
1662
|
-
condition:
|
|
1663
|
-
setCondition(
|
|
1664
|
-
"field" in
|
|
1660
|
+
when: x,
|
|
1661
|
+
condition: H,
|
|
1662
|
+
setCondition(g) {
|
|
1663
|
+
"field" in g ? (x.value = g, K.value = null) : K.value = g;
|
|
1665
1664
|
},
|
|
1666
|
-
style:
|
|
1665
|
+
style: J,
|
|
1667
1666
|
error: w,
|
|
1668
1667
|
preview: c,
|
|
1669
|
-
diagnostics:
|
|
1668
|
+
diagnostics: de,
|
|
1670
1669
|
selectedComputed: U,
|
|
1671
1670
|
loadComputed: m,
|
|
1672
1671
|
applyComputed: D,
|
|
1673
1672
|
removeComputed: E,
|
|
1674
|
-
check:
|
|
1675
|
-
setExpression:
|
|
1676
|
-
toggleGroupField:
|
|
1677
|
-
addGroup:
|
|
1678
|
-
moveGroup:
|
|
1679
|
-
removeGroup:
|
|
1673
|
+
check: ae,
|
|
1674
|
+
setExpression: P,
|
|
1675
|
+
toggleGroupField: k,
|
|
1676
|
+
addGroup: u,
|
|
1677
|
+
moveGroup: q,
|
|
1678
|
+
removeGroup: I,
|
|
1680
1679
|
addAggregate: Se,
|
|
1681
1680
|
applyGroups: Me,
|
|
1682
|
-
loadCondition:
|
|
1683
|
-
setThreshold:
|
|
1681
|
+
loadCondition: he,
|
|
1682
|
+
setThreshold: De,
|
|
1684
1683
|
applyCondition: Ne,
|
|
1685
|
-
applyLayout:
|
|
1684
|
+
applyLayout: R,
|
|
1686
1685
|
resetDraft: () => {
|
|
1687
|
-
|
|
1686
|
+
le = void 0, se();
|
|
1688
1687
|
}
|
|
1689
1688
|
};
|
|
1690
1689
|
}
|
|
1691
|
-
const
|
|
1690
|
+
const nn = ["aria-label"], sn = { class: "mr-rule-editor__directory" }, dn = ["aria-label"], on = ["aria-selected", "onClick"], un = { key: 0 }, rn = { key: 1 }, cn = { class: "mr-rule-editor__catalog" }, mn = ["disabled"], vn = ["aria-label"], bn = { class: "mr-rule-editor__field-list" }, gn = ["disabled", "title", "onClick"], fn = { key: 1 }, yn = {
|
|
1692
1691
|
key: 0,
|
|
1693
1692
|
class: "mr-rule-editor__panel"
|
|
1694
|
-
},
|
|
1693
|
+
}, hn = ["aria-label", "value", "disabled"], kn = { value: "" }, $n = ["value"], Vn = ["aria-label", "disabled"], wn = { class: "mr-rule-editor__pair" }, Cn = ["aria-label", "disabled"], Un = ["value"], Fn = ["aria-label", "disabled"], Sn = { value: "number" }, Mn = { value: "decimal" }, xn = {
|
|
1695
1694
|
key: 0,
|
|
1696
1695
|
class: "mr-rule-editor__checks"
|
|
1697
|
-
},
|
|
1696
|
+
}, Dn = ["checked", "disabled", "onChange"], Nn = {
|
|
1698
1697
|
key: 2,
|
|
1699
1698
|
class: "mr-rule-editor__hint"
|
|
1700
|
-
},
|
|
1699
|
+
}, Rn = { class: "mr-rule-editor__advanced" }, En = ["aria-label", "disabled"], Tn = ["aria-label", "disabled"], Kn = { value: "propagate" }, Ln = { value: "error" }, Bn = ["aria-label", "disabled"], On = { value: "error" }, An = { value: "null" }, In = {
|
|
1701
1700
|
key: 3,
|
|
1702
1701
|
class: "mr-rule-editor__hint"
|
|
1703
|
-
},
|
|
1702
|
+
}, Wn = {
|
|
1704
1703
|
key: 4,
|
|
1705
1704
|
class: "mr-rule-editor__diagnostic"
|
|
1706
|
-
},
|
|
1705
|
+
}, Gn = { class: "mr-rule-editor__actions" }, Jn = ["disabled"], jn = ["disabled"], Hn = ["disabled"], Pn = {
|
|
1707
1706
|
key: 5,
|
|
1708
1707
|
class: "mr-rule-editor__error"
|
|
1709
|
-
},
|
|
1708
|
+
}, zn = {
|
|
1710
1709
|
key: 1,
|
|
1711
1710
|
class: "mr-rule-editor__panel"
|
|
1712
|
-
},
|
|
1711
|
+
}, qn = { class: "mr-rule-editor__pair" }, Zn = ["aria-label"], Qn = ["value"], Xn = {
|
|
1713
1712
|
key: 0,
|
|
1714
1713
|
value: 0
|
|
1715
|
-
},
|
|
1714
|
+
}, Yn = ["disabled"], pn = ["aria-label", "disabled"], _n = ["value"], ei = { class: "mr-rule-editor__pair" }, li = ["aria-label", "disabled"], ai = ["aria-label", "disabled"], ti = { class: "mr-rule-editor__checks" }, ni = ["disabled"], ii = ["disabled"], si = { class: "mr-rule-editor__pair" }, di = ["aria-label", "onUpdate:modelValue", "disabled"], oi = ["value"], ui = ["aria-label", "onUpdate:modelValue", "disabled"], ri = ["value"], ci = ["aria-label", "onUpdate:modelValue", "disabled"], mi = { value: void 0 }, vi = ["value"], bi = { key: 0 }, gi = ["aria-label", "onUpdate:modelValue", "disabled"], fi = ["value"], yi = { class: "mr-rule-editor__pair" }, hi = ["onUpdate:modelValue", "disabled", "aria-label"], ki = { value: "number" }, $i = { value: "decimal" }, Vi = ["disabled", "onClick"], wi = ["disabled"], Ci = { class: "mr-rule-editor__actions" }, Ui = ["disabled", "aria-label"], Fi = ["disabled", "aria-label"], Si = ["disabled"], Mi = ["disabled"], xi = {
|
|
1716
1715
|
key: 2,
|
|
1717
1716
|
class: "mr-rule-editor__panel"
|
|
1718
|
-
},
|
|
1717
|
+
}, Di = ["aria-label", "disabled"], Ni = ["value"], Ri = ["aria-label", "disabled"], Ei = { value: "style" }, Ti = { value: "cell" }, Ki = { value: "rowVisibility" }, Li = { key: 0 }, Bi = ["aria-label", "value", "disabled"], Oi = { value: -1 }, Ai = ["value"], Ii = { class: "mr-rule-editor__pair" }, Wi = ["disabled"], Gi = ["disabled"], Ji = { class: "mr-rule-editor__check" }, ji = ["disabled"], Hi = { class: "mr-rule-editor__actions" }, Pi = ["disabled"], zi = ["disabled"], qi = { class: "mr-rule-editor__explanation" }, Zi = { key: 0 }, Qi = { class: "mr-rule-editor__results" }, Xi = { key: 0 }, Yi = { key: 1 }, pi = {
|
|
1719
1718
|
key: 1,
|
|
1720
1719
|
class: "mr-rule-editor__error",
|
|
1721
1720
|
role: "alert"
|
|
1722
|
-
},
|
|
1721
|
+
}, _i = /* @__PURE__ */ be({
|
|
1723
1722
|
__name: "RuleEditor",
|
|
1724
1723
|
props: {
|
|
1724
|
+
location: {},
|
|
1725
1725
|
recoveryKey: {},
|
|
1726
1726
|
list: {},
|
|
1727
1727
|
datasets: {},
|
|
@@ -1731,40 +1731,51 @@ const ln = ["aria-label"], an = { class: "mr-rule-editor__directory" }, tn = ["a
|
|
|
1731
1731
|
messages: {}
|
|
1732
1732
|
},
|
|
1733
1733
|
emits: ["change", "dirty"],
|
|
1734
|
-
setup(e, { expose: W, emit:
|
|
1735
|
-
const j =
|
|
1734
|
+
setup(e, { expose: W, emit: V }) {
|
|
1735
|
+
const j = Be(), w = e, U = V, r = tn(w, (P) => U("change", P)), {
|
|
1736
1736
|
m: d,
|
|
1737
|
-
tab:
|
|
1737
|
+
tab: b,
|
|
1738
1738
|
fields: T,
|
|
1739
1739
|
formula: y,
|
|
1740
1740
|
groups: L,
|
|
1741
|
-
groupIndex:
|
|
1741
|
+
groupIndex: x,
|
|
1742
1742
|
currentGroup: K,
|
|
1743
|
-
column:
|
|
1744
|
-
currentColumn:
|
|
1743
|
+
column: H,
|
|
1744
|
+
currentColumn: J,
|
|
1745
1745
|
conditionIndex: c,
|
|
1746
1746
|
effect: n,
|
|
1747
1747
|
condition: v,
|
|
1748
1748
|
style: o,
|
|
1749
1749
|
error: h,
|
|
1750
1750
|
preview: A,
|
|
1751
|
-
diagnostics:
|
|
1752
|
-
selectedComputed:
|
|
1753
|
-
} = r,
|
|
1754
|
-
function
|
|
1755
|
-
r.resetDraft(),
|
|
1751
|
+
diagnostics: Q,
|
|
1752
|
+
selectedComputed: p
|
|
1753
|
+
} = r, ee = G({}), le = G(0);
|
|
1754
|
+
function ne() {
|
|
1755
|
+
r.resetDraft(), ee.value = {}, le.value++;
|
|
1756
1756
|
}
|
|
1757
|
-
const
|
|
1758
|
-
|
|
1759
|
-
return
|
|
1757
|
+
const _ = z(() => r.pendingLocalChanges.value || Object.values(ee.value).some(Boolean));
|
|
1758
|
+
te([_, r.draftSnapshot, ee], () => U("dirty", _.value), { immediate: !0, deep: !0, flush: "sync" }), W({ get pendingLocalChanges() {
|
|
1759
|
+
return _.value;
|
|
1760
1760
|
} });
|
|
1761
|
-
const
|
|
1762
|
-
|
|
1761
|
+
const ie = He(w, r.formula, d), { query: de, matches: se, fieldWindow: m, expression: S, sources: R } = ie, D = ye(), E = Oe();
|
|
1762
|
+
E && te([b, p, x, H, c, n], () => {
|
|
1763
|
+
const P = { tab: b.value, field: b.value === "computations" ? p.value : H.value, index: b.value === "groups" ? x.value : c.value, effect: n.value };
|
|
1764
|
+
E.value = { ...E.value, rule: { key: w.recoveryKey ?? "rules:0:0", target: P } };
|
|
1765
|
+
}, { immediate: !0 });
|
|
1766
|
+
const ae = G();
|
|
1767
|
+
return te(() => w.location, async (P) => {
|
|
1768
|
+
if (!P || (b.value = P.tab, P.tab === "computations" && P.field && r.loadComputed(P.field), P.tab === "groups" && (x.value = Math.max(0, Math.min(P.index ?? 0, L.value.length - 1))), P.tab === "conditions" && (P.field && (H.value = P.field), n.value = P.effect ?? "style", r.loadCondition(P.index ?? -1)), await Ee(), w.location !== P)) return;
|
|
1769
|
+
const k = ae.value?.querySelector(".mr-rule-editor__panel");
|
|
1770
|
+
Ae(k);
|
|
1771
|
+
}, { immediate: !0 }), (P, k) => (i(), s("section", {
|
|
1772
|
+
ref_key: "root",
|
|
1773
|
+
ref: ae,
|
|
1763
1774
|
class: "mr-rule-editor",
|
|
1764
|
-
style:
|
|
1775
|
+
style: Te(l(j)),
|
|
1765
1776
|
"aria-label": l(d).settings
|
|
1766
1777
|
}, [
|
|
1767
|
-
a("aside",
|
|
1778
|
+
a("aside", sn, [
|
|
1768
1779
|
a("div", {
|
|
1769
1780
|
class: "mr-rule-editor__tabs",
|
|
1770
1781
|
role: "tablist",
|
|
@@ -1781,107 +1792,107 @@ const ln = ["aria-label"], an = { class: "mr-rule-editor__directory" }, tn = ["a
|
|
|
1781
1792
|
key: u,
|
|
1782
1793
|
type: "button",
|
|
1783
1794
|
role: "tab",
|
|
1784
|
-
"aria-selected": l(
|
|
1785
|
-
class:
|
|
1786
|
-
onClick: (
|
|
1795
|
+
"aria-selected": l(b) === u,
|
|
1796
|
+
class: fe({ "is-active": l(b) === u }),
|
|
1797
|
+
onClick: (q) => b.value = u
|
|
1787
1798
|
}, [
|
|
1788
|
-
|
|
1789
|
-
u === "computations" && e.list.computed?.length ? (i(), s("span",
|
|
1790
|
-
u === "groups" && l(L).length ? (i(), s("span",
|
|
1791
|
-
], 10,
|
|
1792
|
-
], 8,
|
|
1793
|
-
a("div",
|
|
1799
|
+
$(t(l(d)[u]), 1),
|
|
1800
|
+
u === "computations" && e.list.computed?.length ? (i(), s("span", un, t(e.list.computed.length), 1)) : N("", !0),
|
|
1801
|
+
u === "groups" && l(L).length ? (i(), s("span", rn, t(l(L).length), 1)) : N("", !0)
|
|
1802
|
+
], 10, on)), 64))
|
|
1803
|
+
], 8, dn),
|
|
1804
|
+
a("div", cn, [
|
|
1794
1805
|
a("strong", null, t(l(d).catalog), 1),
|
|
1795
|
-
|
|
1806
|
+
_.value ? (i(), s("button", {
|
|
1796
1807
|
key: 0,
|
|
1797
1808
|
type: "button",
|
|
1798
1809
|
disabled: e.readonly,
|
|
1799
|
-
onClick:
|
|
1800
|
-
}, t(l(d).restoreDraft), 9,
|
|
1810
|
+
onClick: ne
|
|
1811
|
+
}, t(l(d).restoreDraft), 9, mn)) : N("", !0),
|
|
1801
1812
|
a("label", null, [
|
|
1802
|
-
|
|
1813
|
+
$(t(l(d).searchFields), 1),
|
|
1803
1814
|
F(a("input", {
|
|
1804
|
-
"onUpdate:modelValue":
|
|
1815
|
+
"onUpdate:modelValue": k[0] || (k[0] = (u) => ce(de) ? de.value = u : null),
|
|
1805
1816
|
type: "search",
|
|
1806
1817
|
"aria-label": l(d).searchFields
|
|
1807
|
-
}, null, 8,
|
|
1808
|
-
[
|
|
1818
|
+
}, null, 8, vn), [
|
|
1819
|
+
[X, l(de)]
|
|
1809
1820
|
])
|
|
1810
1821
|
]),
|
|
1811
|
-
a("div",
|
|
1822
|
+
a("div", bn, [
|
|
1812
1823
|
(i(!0), s(C, null, M(l(m), (u) => (i(), s("button", {
|
|
1813
1824
|
key: u.field,
|
|
1814
1825
|
type: "button",
|
|
1815
|
-
disabled: e.readonly || l(
|
|
1826
|
+
disabled: e.readonly || l(b) !== "computations",
|
|
1816
1827
|
title: l(d).useField,
|
|
1817
|
-
onClick: (
|
|
1828
|
+
onClick: (q) => l(r).setExpression({ field: u.field })
|
|
1818
1829
|
}, [
|
|
1819
1830
|
a("strong", null, t(u.label), 1),
|
|
1820
1831
|
a("code", null, t(u.field), 1),
|
|
1821
1832
|
a("small", null, t(u.meta), 1)
|
|
1822
|
-
], 8,
|
|
1833
|
+
], 8, gn))), 128))
|
|
1823
1834
|
]),
|
|
1824
|
-
l(
|
|
1835
|
+
l(se).length > 50 ? (i(), s("small", fn, t(l(d).shown) + " 50 / " + t(l(se).length), 1)) : N("", !0)
|
|
1825
1836
|
])
|
|
1826
1837
|
]),
|
|
1827
|
-
l(
|
|
1838
|
+
l(b) === "computations" ? (i(), s("div", yn, [
|
|
1828
1839
|
a("label", null, [
|
|
1829
|
-
|
|
1840
|
+
$(t(l(d).existing), 1),
|
|
1830
1841
|
a("select", {
|
|
1831
1842
|
"aria-label": l(d).existing,
|
|
1832
|
-
value: l(
|
|
1843
|
+
value: l(p),
|
|
1833
1844
|
disabled: e.readonly,
|
|
1834
|
-
onChange:
|
|
1845
|
+
onChange: k[1] || (k[1] = (u) => l(r).loadComputed(u.target.value))
|
|
1835
1846
|
}, [
|
|
1836
|
-
a("option",
|
|
1847
|
+
a("option", kn, "+ " + t(l(d).newField), 1),
|
|
1837
1848
|
(i(!0), s(C, null, M(e.list.computed, (u) => (i(), s("option", {
|
|
1838
1849
|
key: u.field,
|
|
1839
1850
|
value: u.field
|
|
1840
|
-
}, t(u.field), 9,
|
|
1841
|
-
], 40,
|
|
1851
|
+
}, t(u.field), 9, $n))), 128))
|
|
1852
|
+
], 40, hn)
|
|
1842
1853
|
]),
|
|
1843
1854
|
a("label", null, [
|
|
1844
|
-
|
|
1855
|
+
$(t(l(d).target), 1),
|
|
1845
1856
|
F(a("input", {
|
|
1846
1857
|
"aria-label": l(d).target,
|
|
1847
|
-
"onUpdate:modelValue":
|
|
1858
|
+
"onUpdate:modelValue": k[2] || (k[2] = (u) => l(y).field = u),
|
|
1848
1859
|
disabled: e.readonly,
|
|
1849
1860
|
autocomplete: "off"
|
|
1850
|
-
}, null, 8,
|
|
1851
|
-
[
|
|
1861
|
+
}, null, 8, Vn), [
|
|
1862
|
+
[X, l(y).field]
|
|
1852
1863
|
])
|
|
1853
1864
|
]),
|
|
1854
|
-
a("div",
|
|
1865
|
+
a("div", wn, [
|
|
1855
1866
|
a("label", null, [
|
|
1856
|
-
|
|
1867
|
+
$(t(l(d).scope), 1),
|
|
1857
1868
|
F(a("select", {
|
|
1858
1869
|
"aria-label": l(d).scope,
|
|
1859
|
-
"onUpdate:modelValue":
|
|
1870
|
+
"onUpdate:modelValue": k[3] || (k[3] = (u) => l(y).scope = u),
|
|
1860
1871
|
disabled: e.readonly
|
|
1861
1872
|
}, [
|
|
1862
1873
|
(i(!0), s(C, null, M(l(D).scopes, (u) => (i(), s("option", {
|
|
1863
1874
|
key: u,
|
|
1864
1875
|
value: u
|
|
1865
|
-
}, t(l(d)[u]), 9,
|
|
1866
|
-
], 8,
|
|
1876
|
+
}, t(l(d)[u]), 9, Un))), 128))
|
|
1877
|
+
], 8, Cn), [
|
|
1867
1878
|
[O, l(y).scope]
|
|
1868
1879
|
])
|
|
1869
1880
|
]),
|
|
1870
1881
|
a("label", null, [
|
|
1871
|
-
|
|
1882
|
+
$(t(l(d).numeric), 1),
|
|
1872
1883
|
F(a("select", {
|
|
1873
1884
|
"aria-label": l(d).numeric,
|
|
1874
|
-
"onUpdate:modelValue":
|
|
1885
|
+
"onUpdate:modelValue": k[4] || (k[4] = (u) => l(y).numeric = u),
|
|
1875
1886
|
disabled: e.readonly
|
|
1876
1887
|
}, [
|
|
1877
|
-
a("option",
|
|
1878
|
-
a("option",
|
|
1879
|
-
], 8,
|
|
1888
|
+
a("option", Sn, t(l(d).number), 1),
|
|
1889
|
+
a("option", Mn, t(l(d).decimal), 1)
|
|
1890
|
+
], 8, Fn), [
|
|
1880
1891
|
[O, l(y).numeric]
|
|
1881
1892
|
])
|
|
1882
1893
|
])
|
|
1883
1894
|
]),
|
|
1884
|
-
l(y).scope === "group" ? (i(), s("fieldset",
|
|
1895
|
+
l(y).scope === "group" ? (i(), s("fieldset", xn, [
|
|
1885
1896
|
a("legend", null, t(l(d).groupFields), 1),
|
|
1886
1897
|
(i(!0), s(C, null, M(l(T), (u) => (i(), s("label", {
|
|
1887
1898
|
key: u.field
|
|
@@ -1890,37 +1901,37 @@ const ln = ["aria-label"], an = { class: "mr-rule-editor__directory" }, tn = ["a
|
|
|
1890
1901
|
type: "checkbox",
|
|
1891
1902
|
checked: l(y).groupBy?.includes(u.field),
|
|
1892
1903
|
disabled: e.readonly,
|
|
1893
|
-
onChange: (
|
|
1904
|
+
onChange: (q) => l(r).toggleGroupField(
|
|
1894
1905
|
u.field,
|
|
1895
|
-
|
|
1906
|
+
q.target.checked
|
|
1896
1907
|
)
|
|
1897
|
-
}, null, 40,
|
|
1898
|
-
|
|
1908
|
+
}, null, 40, Dn),
|
|
1909
|
+
$(t(u.label), 1)
|
|
1899
1910
|
]))), 128))
|
|
1900
|
-
])) :
|
|
1901
|
-
typeof l(y).expression != "string" ? (i(),
|
|
1911
|
+
])) : N("", !0),
|
|
1912
|
+
typeof l(y).expression != "string" ? (i(), $e(an, {
|
|
1902
1913
|
key: 1,
|
|
1903
1914
|
"model-value": l(y).expression,
|
|
1904
1915
|
fields: l(T),
|
|
1905
1916
|
messages: l(d),
|
|
1906
1917
|
readonly: e.readonly,
|
|
1907
1918
|
"onUpdate:modelValue": l(r).setExpression
|
|
1908
|
-
}, null, 8, ["model-value", "fields", "messages", "readonly", "onUpdate:modelValue"])) : (i(), s("p",
|
|
1919
|
+
}, null, 8, ["model-value", "fields", "messages", "readonly", "onUpdate:modelValue"])) : (i(), s("p", Nn, t(l(y).expression), 1)),
|
|
1909
1920
|
a("details", null, [
|
|
1910
1921
|
a("summary", null, t(l(d).advanced), 1),
|
|
1911
|
-
a("div",
|
|
1922
|
+
a("div", Rn, [
|
|
1912
1923
|
a("label", null, [
|
|
1913
|
-
|
|
1924
|
+
$(t(l(d).digits), 1),
|
|
1914
1925
|
F(a("input", {
|
|
1915
1926
|
"aria-label": l(d).digits,
|
|
1916
|
-
"onUpdate:modelValue":
|
|
1927
|
+
"onUpdate:modelValue": k[5] || (k[5] = (u) => l(y).digits = u),
|
|
1917
1928
|
type: "number",
|
|
1918
1929
|
min: "0",
|
|
1919
1930
|
max: "100",
|
|
1920
1931
|
disabled: e.readonly
|
|
1921
|
-
}, null, 8,
|
|
1932
|
+
}, null, 8, En), [
|
|
1922
1933
|
[
|
|
1923
|
-
|
|
1934
|
+
X,
|
|
1924
1935
|
l(y).digits,
|
|
1925
1936
|
void 0,
|
|
1926
1937
|
{ number: !0 }
|
|
@@ -1928,76 +1939,76 @@ const ln = ["aria-label"], an = { class: "mr-rule-editor__directory" }, tn = ["a
|
|
|
1928
1939
|
])
|
|
1929
1940
|
]),
|
|
1930
1941
|
a("label", null, [
|
|
1931
|
-
|
|
1942
|
+
$(t(l(d).nulls), 1),
|
|
1932
1943
|
F(a("select", {
|
|
1933
1944
|
"aria-label": l(d).nulls,
|
|
1934
|
-
"onUpdate:modelValue":
|
|
1945
|
+
"onUpdate:modelValue": k[6] || (k[6] = (u) => l(y).nulls = u),
|
|
1935
1946
|
disabled: e.readonly
|
|
1936
1947
|
}, [
|
|
1937
|
-
a("option",
|
|
1938
|
-
a("option",
|
|
1939
|
-
], 8,
|
|
1948
|
+
a("option", Kn, t(l(d).propagate), 1),
|
|
1949
|
+
a("option", Ln, t(l(d).error), 1)
|
|
1950
|
+
], 8, Tn), [
|
|
1940
1951
|
[O, l(y).nulls]
|
|
1941
1952
|
])
|
|
1942
1953
|
]),
|
|
1943
1954
|
a("label", null, [
|
|
1944
|
-
|
|
1955
|
+
$(t(l(d).division), 1),
|
|
1945
1956
|
F(a("select", {
|
|
1946
1957
|
"aria-label": l(d).division,
|
|
1947
|
-
"onUpdate:modelValue":
|
|
1958
|
+
"onUpdate:modelValue": k[7] || (k[7] = (u) => l(y).divisionByZero = u),
|
|
1948
1959
|
disabled: e.readonly
|
|
1949
1960
|
}, [
|
|
1950
|
-
a("option",
|
|
1951
|
-
a("option",
|
|
1952
|
-
], 8,
|
|
1961
|
+
a("option", On, t(l(d).error), 1),
|
|
1962
|
+
a("option", An, t(l(d).propagate), 1)
|
|
1963
|
+
], 8, Bn), [
|
|
1953
1964
|
[O, l(y).divisionByZero]
|
|
1954
1965
|
])
|
|
1955
1966
|
])
|
|
1956
1967
|
])
|
|
1957
1968
|
]),
|
|
1958
|
-
l(y).numeric === "decimal" ? (i(), s("p",
|
|
1959
|
-
l(
|
|
1960
|
-
|
|
1961
|
-
a("strong", null, t(l(
|
|
1962
|
-
])) :
|
|
1963
|
-
a("div",
|
|
1969
|
+
l(y).numeric === "decimal" ? (i(), s("p", In, t(l(d).decimalHint), 1)) : N("", !0),
|
|
1970
|
+
l(Q).valid && l(y).field ? (i(), s("div", Wn, [
|
|
1971
|
+
$(t(l(d).dependencies), 1),
|
|
1972
|
+
a("strong", null, t(l(Q).order.join(" → ")), 1)
|
|
1973
|
+
])) : N("", !0),
|
|
1974
|
+
a("div", Gn, [
|
|
1964
1975
|
a("button", {
|
|
1965
1976
|
type: "button",
|
|
1966
1977
|
disabled: e.readonly,
|
|
1967
|
-
onClick:
|
|
1978
|
+
onClick: k[8] || (k[8] = //@ts-ignore
|
|
1968
1979
|
(...u) => l(r).check && l(r).check(...u))
|
|
1969
|
-
}, t(l(d).check), 9,
|
|
1980
|
+
}, t(l(d).check), 9, Jn),
|
|
1970
1981
|
a("button", {
|
|
1971
1982
|
type: "button",
|
|
1972
1983
|
class: "mr-rule-editor__primary",
|
|
1973
|
-
disabled: e.readonly || !l(
|
|
1974
|
-
onClick:
|
|
1984
|
+
disabled: e.readonly || !l(Q).valid,
|
|
1985
|
+
onClick: k[9] || (k[9] = //@ts-ignore
|
|
1975
1986
|
(...u) => l(r).applyComputed && l(r).applyComputed(...u))
|
|
1976
|
-
}, t(l(d).apply), 9,
|
|
1977
|
-
l(
|
|
1987
|
+
}, t(l(d).apply), 9, jn),
|
|
1988
|
+
l(p) ? (i(), s("button", {
|
|
1978
1989
|
key: 0,
|
|
1979
1990
|
type: "button",
|
|
1980
1991
|
disabled: e.readonly,
|
|
1981
|
-
onClick:
|
|
1992
|
+
onClick: k[10] || (k[10] = //@ts-ignore
|
|
1982
1993
|
(...u) => l(r).removeComputed && l(r).removeComputed(...u))
|
|
1983
|
-
}, t(l(d).remove), 9,
|
|
1994
|
+
}, t(l(d).remove), 9, Hn)) : N("", !0)
|
|
1984
1995
|
]),
|
|
1985
|
-
!l(
|
|
1986
|
-
])) : l(
|
|
1987
|
-
a("div",
|
|
1996
|
+
!l(Q).valid && l(y).field ? (i(), s("p", Pn, t(l(Q).errors.join(";")), 1)) : N("", !0)
|
|
1997
|
+
])) : l(b) === "groups" ? (i(), s("div", zn, [
|
|
1998
|
+
a("div", qn, [
|
|
1988
1999
|
F(a("select", {
|
|
1989
|
-
"onUpdate:modelValue":
|
|
2000
|
+
"onUpdate:modelValue": k[11] || (k[11] = (u) => ce(x) ? x.value = u : null),
|
|
1990
2001
|
"aria-label": l(d).groups
|
|
1991
2002
|
}, [
|
|
1992
|
-
(i(!0), s(C, null, M(l(L), (u,
|
|
1993
|
-
key:
|
|
1994
|
-
value:
|
|
1995
|
-
}, t(
|
|
1996
|
-
l(L).length ?
|
|
1997
|
-
], 8,
|
|
2003
|
+
(i(!0), s(C, null, M(l(L), (u, q) => (i(), s("option", {
|
|
2004
|
+
key: q,
|
|
2005
|
+
value: q
|
|
2006
|
+
}, t(q + 1) + " · " + t(u.field), 9, Qn))), 128)),
|
|
2007
|
+
l(L).length ? N("", !0) : (i(), s("option", Xn, t(l(d).noGroups), 1))
|
|
2008
|
+
], 8, Zn), [
|
|
1998
2009
|
[
|
|
1999
2010
|
O,
|
|
2000
|
-
l(
|
|
2011
|
+
l(x),
|
|
2001
2012
|
void 0,
|
|
2002
2013
|
{ number: !0 }
|
|
2003
2014
|
]
|
|
@@ -2005,78 +2016,78 @@ const ln = ["aria-label"], an = { class: "mr-rule-editor__directory" }, tn = ["a
|
|
|
2005
2016
|
a("button", {
|
|
2006
2017
|
type: "button",
|
|
2007
2018
|
disabled: e.readonly || l(L).length >= 16,
|
|
2008
|
-
onClick:
|
|
2019
|
+
onClick: k[12] || (k[12] = //@ts-ignore
|
|
2009
2020
|
(...u) => l(r).addGroup && l(r).addGroup(...u))
|
|
2010
|
-
}, " + " + t(l(d).addGroup), 9,
|
|
2021
|
+
}, " + " + t(l(d).addGroup), 9, Yn)
|
|
2011
2022
|
]),
|
|
2012
2023
|
l(K) ? (i(), s(C, { key: 0 }, [
|
|
2013
2024
|
a("label", null, [
|
|
2014
|
-
|
|
2025
|
+
$(t(l(d).field), 1),
|
|
2015
2026
|
F(a("select", {
|
|
2016
2027
|
"aria-label": l(d).field,
|
|
2017
|
-
"onUpdate:modelValue":
|
|
2028
|
+
"onUpdate:modelValue": k[13] || (k[13] = (u) => l(K).field = u),
|
|
2018
2029
|
disabled: e.readonly
|
|
2019
2030
|
}, [
|
|
2020
2031
|
(i(!0), s(C, null, M(l(T), (u) => (i(), s("option", {
|
|
2021
2032
|
key: u.field,
|
|
2022
2033
|
value: u.field
|
|
2023
|
-
}, t(u.label), 9,
|
|
2024
|
-
], 8,
|
|
2034
|
+
}, t(u.label), 9, _n))), 128))
|
|
2035
|
+
], 8, pn), [
|
|
2025
2036
|
[O, l(K).field]
|
|
2026
2037
|
])
|
|
2027
2038
|
]),
|
|
2028
|
-
a("div",
|
|
2039
|
+
a("div", ei, [
|
|
2029
2040
|
a("label", null, [
|
|
2030
|
-
|
|
2041
|
+
$(t(l(d).header), 1),
|
|
2031
2042
|
F(a("input", {
|
|
2032
2043
|
"aria-label": l(d).header,
|
|
2033
|
-
"onUpdate:modelValue":
|
|
2044
|
+
"onUpdate:modelValue": k[14] || (k[14] = (u) => l(K).headerTemplate = u),
|
|
2034
2045
|
disabled: e.readonly,
|
|
2035
2046
|
placeholder: "{value}"
|
|
2036
|
-
}, null, 8,
|
|
2037
|
-
[
|
|
2047
|
+
}, null, 8, li), [
|
|
2048
|
+
[X, l(K).headerTemplate]
|
|
2038
2049
|
])
|
|
2039
2050
|
]),
|
|
2040
2051
|
a("label", null, [
|
|
2041
|
-
|
|
2052
|
+
$(t(l(d).footer), 1),
|
|
2042
2053
|
F(a("input", {
|
|
2043
2054
|
"aria-label": l(d).footer,
|
|
2044
|
-
"onUpdate:modelValue":
|
|
2055
|
+
"onUpdate:modelValue": k[15] || (k[15] = (u) => l(K).subtotalLabel = u),
|
|
2045
2056
|
disabled: e.readonly
|
|
2046
|
-
}, null, 8,
|
|
2047
|
-
[
|
|
2057
|
+
}, null, 8, ai), [
|
|
2058
|
+
[X, l(K).subtotalLabel]
|
|
2048
2059
|
])
|
|
2049
2060
|
])
|
|
2050
2061
|
]),
|
|
2051
|
-
a("div",
|
|
2062
|
+
a("div", ti, [
|
|
2052
2063
|
a("label", null, [
|
|
2053
2064
|
F(a("input", {
|
|
2054
|
-
"onUpdate:modelValue":
|
|
2065
|
+
"onUpdate:modelValue": k[16] || (k[16] = (u) => l(K).keepWithNext = u),
|
|
2055
2066
|
type: "checkbox",
|
|
2056
2067
|
disabled: e.readonly
|
|
2057
|
-
}, null, 8,
|
|
2058
|
-
[
|
|
2068
|
+
}, null, 8, ni), [
|
|
2069
|
+
[re, l(K).keepWithNext]
|
|
2059
2070
|
]),
|
|
2060
|
-
|
|
2071
|
+
$(t(l(d).orphan), 1)
|
|
2061
2072
|
]),
|
|
2062
2073
|
a("label", null, [
|
|
2063
2074
|
F(a("input", {
|
|
2064
|
-
"onUpdate:modelValue":
|
|
2075
|
+
"onUpdate:modelValue": k[17] || (k[17] = (u) => l(K).repeatHeader = u),
|
|
2065
2076
|
type: "checkbox",
|
|
2066
2077
|
disabled: e.readonly
|
|
2067
|
-
}, null, 8,
|
|
2068
|
-
[
|
|
2078
|
+
}, null, 8, ii), [
|
|
2079
|
+
[re, l(K).repeatHeader]
|
|
2069
2080
|
]),
|
|
2070
|
-
|
|
2081
|
+
$(t(l(d).repeat), 1)
|
|
2071
2082
|
])
|
|
2072
2083
|
]),
|
|
2073
|
-
(i(!0), s(C, null, M(l(K).aggregates, (u,
|
|
2074
|
-
key:
|
|
2084
|
+
(i(!0), s(C, null, M(l(K).aggregates, (u, q) => (i(), s("div", {
|
|
2085
|
+
key: q,
|
|
2075
2086
|
class: "mr-rule-editor__aggregate"
|
|
2076
2087
|
}, [
|
|
2077
|
-
a("div",
|
|
2088
|
+
a("div", si, [
|
|
2078
2089
|
a("label", null, [
|
|
2079
|
-
|
|
2090
|
+
$(t(l(d).output), 1),
|
|
2080
2091
|
F(a("select", {
|
|
2081
2092
|
"aria-label": l(d).output,
|
|
2082
2093
|
"onUpdate:modelValue": (I) => u.field = I,
|
|
@@ -2085,13 +2096,13 @@ const ln = ["aria-label"], an = { class: "mr-rule-editor__directory" }, tn = ["a
|
|
|
2085
2096
|
(i(!0), s(C, null, M(l(T), (I) => (i(), s("option", {
|
|
2086
2097
|
key: I.field,
|
|
2087
2098
|
value: I.field
|
|
2088
|
-
}, t(I.label), 9,
|
|
2089
|
-
], 8,
|
|
2099
|
+
}, t(I.label), 9, oi))), 128))
|
|
2100
|
+
], 8, di), [
|
|
2090
2101
|
[O, u.field]
|
|
2091
2102
|
])
|
|
2092
2103
|
]),
|
|
2093
2104
|
a("label", null, [
|
|
2094
|
-
|
|
2105
|
+
$(t(l(d).aggregate), 1),
|
|
2095
2106
|
F(a("select", {
|
|
2096
2107
|
"aria-label": l(d).aggregate,
|
|
2097
2108
|
"onUpdate:modelValue": (I) => u.op = I,
|
|
@@ -2100,30 +2111,30 @@ const ln = ["aria-label"], an = { class: "mr-rule-editor__directory" }, tn = ["a
|
|
|
2100
2111
|
(i(!0), s(C, null, M(l(D).aggregates, (I) => (i(), s("option", {
|
|
2101
2112
|
key: I,
|
|
2102
2113
|
value: I
|
|
2103
|
-
}, t(l(d)[I]), 9,
|
|
2104
|
-
], 8,
|
|
2114
|
+
}, t(l(d)[I]), 9, ri))), 128))
|
|
2115
|
+
], 8, ui), [
|
|
2105
2116
|
[O, u.op]
|
|
2106
2117
|
])
|
|
2107
2118
|
])
|
|
2108
2119
|
]),
|
|
2109
2120
|
a("label", null, [
|
|
2110
|
-
|
|
2121
|
+
$(t(l(d).measure), 1),
|
|
2111
2122
|
F(a("select", {
|
|
2112
2123
|
"aria-label": l(d).measure,
|
|
2113
2124
|
"onUpdate:modelValue": (I) => u.valueField = I,
|
|
2114
2125
|
disabled: e.readonly
|
|
2115
2126
|
}, [
|
|
2116
|
-
a("option",
|
|
2127
|
+
a("option", mi, t(u.field), 1),
|
|
2117
2128
|
(i(!0), s(C, null, M(l(T), (I) => (i(), s("option", {
|
|
2118
2129
|
key: I.field,
|
|
2119
2130
|
value: I.field
|
|
2120
|
-
}, t(I.label), 9,
|
|
2121
|
-
], 8,
|
|
2131
|
+
}, t(I.label), 9, vi))), 128))
|
|
2132
|
+
], 8, ci), [
|
|
2122
2133
|
[O, u.valueField]
|
|
2123
2134
|
])
|
|
2124
2135
|
]),
|
|
2125
|
-
u.op === "weightedAvg" ? (i(), s("label",
|
|
2126
|
-
|
|
2136
|
+
u.op === "weightedAvg" ? (i(), s("label", bi, [
|
|
2137
|
+
$(t(l(d).weight), 1),
|
|
2127
2138
|
F(a("select", {
|
|
2128
2139
|
"aria-label": l(d).weight,
|
|
2129
2140
|
"onUpdate:modelValue": (I) => u.weightField = I,
|
|
@@ -2132,113 +2143,113 @@ const ln = ["aria-label"], an = { class: "mr-rule-editor__directory" }, tn = ["a
|
|
|
2132
2143
|
(i(!0), s(C, null, M(l(T), (I) => (i(), s("option", {
|
|
2133
2144
|
key: I.field,
|
|
2134
2145
|
value: I.field
|
|
2135
|
-
}, t(I.label), 9,
|
|
2136
|
-
], 8,
|
|
2146
|
+
}, t(I.label), 9, fi))), 128))
|
|
2147
|
+
], 8, gi), [
|
|
2137
2148
|
[O, u.weightField]
|
|
2138
2149
|
])
|
|
2139
|
-
])) :
|
|
2140
|
-
a("div",
|
|
2150
|
+
])) : N("", !0),
|
|
2151
|
+
a("div", yi, [
|
|
2141
2152
|
F(a("select", {
|
|
2142
2153
|
"onUpdate:modelValue": (I) => u.numeric = I,
|
|
2143
2154
|
disabled: e.readonly,
|
|
2144
2155
|
"aria-label": l(d).numeric
|
|
2145
2156
|
}, [
|
|
2146
|
-
a("option",
|
|
2147
|
-
a("option",
|
|
2148
|
-
], 8,
|
|
2157
|
+
a("option", ki, t(l(d).number), 1),
|
|
2158
|
+
a("option", $i, t(l(d).decimal), 1)
|
|
2159
|
+
], 8, hi), [
|
|
2149
2160
|
[O, u.numeric]
|
|
2150
2161
|
]),
|
|
2151
2162
|
a("button", {
|
|
2152
2163
|
type: "button",
|
|
2153
2164
|
disabled: e.readonly,
|
|
2154
|
-
onClick: (I) => l(K).aggregates?.splice(
|
|
2155
|
-
}, t(l(d).remove), 9,
|
|
2165
|
+
onClick: (I) => l(K).aggregates?.splice(q, 1)
|
|
2166
|
+
}, t(l(d).remove), 9, Vi)
|
|
2156
2167
|
])
|
|
2157
2168
|
]))), 128)),
|
|
2158
2169
|
a("button", {
|
|
2159
2170
|
type: "button",
|
|
2160
2171
|
disabled: e.readonly,
|
|
2161
|
-
onClick:
|
|
2172
|
+
onClick: k[18] || (k[18] = //@ts-ignore
|
|
2162
2173
|
(...u) => l(r).addAggregate && l(r).addAggregate(...u))
|
|
2163
|
-
}, " + " + t(l(d).addAggregate), 9,
|
|
2164
|
-
a("div",
|
|
2174
|
+
}, " + " + t(l(d).addAggregate), 9, wi),
|
|
2175
|
+
a("div", Ci, [
|
|
2165
2176
|
a("button", {
|
|
2166
2177
|
type: "button",
|
|
2167
|
-
disabled: e.readonly || l(
|
|
2178
|
+
disabled: e.readonly || l(x) === 0,
|
|
2168
2179
|
"aria-label": l(d).moveUp,
|
|
2169
|
-
onClick:
|
|
2170
|
-
}, " ↑ " + t(l(d).outer), 9,
|
|
2180
|
+
onClick: k[19] || (k[19] = (u) => l(r).moveGroup(-1))
|
|
2181
|
+
}, " ↑ " + t(l(d).outer), 9, Ui),
|
|
2171
2182
|
a("button", {
|
|
2172
2183
|
type: "button",
|
|
2173
|
-
disabled: e.readonly || l(
|
|
2184
|
+
disabled: e.readonly || l(x) >= l(L).length - 1,
|
|
2174
2185
|
"aria-label": l(d).moveDown,
|
|
2175
|
-
onClick:
|
|
2176
|
-
}, " ↓ " + t(l(d).inner), 9,
|
|
2186
|
+
onClick: k[20] || (k[20] = (u) => l(r).moveGroup(1))
|
|
2187
|
+
}, " ↓ " + t(l(d).inner), 9, Fi),
|
|
2177
2188
|
a("button", {
|
|
2178
2189
|
type: "button",
|
|
2179
2190
|
disabled: e.readonly,
|
|
2180
|
-
onClick:
|
|
2191
|
+
onClick: k[21] || (k[21] = //@ts-ignore
|
|
2181
2192
|
(...u) => l(r).removeGroup && l(r).removeGroup(...u))
|
|
2182
|
-
}, t(l(d).remove), 9,
|
|
2193
|
+
}, t(l(d).remove), 9, Si)
|
|
2183
2194
|
])
|
|
2184
|
-
], 64)) :
|
|
2195
|
+
], 64)) : N("", !0),
|
|
2185
2196
|
a("button", {
|
|
2186
2197
|
type: "button",
|
|
2187
2198
|
class: "mr-rule-editor__primary",
|
|
2188
2199
|
disabled: e.readonly,
|
|
2189
|
-
onClick:
|
|
2200
|
+
onClick: k[22] || (k[22] = //@ts-ignore
|
|
2190
2201
|
(...u) => l(r).applyGroups && l(r).applyGroups(...u))
|
|
2191
|
-
}, t(l(d).apply), 9,
|
|
2192
|
-
])) : l(
|
|
2202
|
+
}, t(l(d).apply), 9, Mi)
|
|
2203
|
+
])) : l(b) === "conditions" ? (i(), s("div", xi, [
|
|
2193
2204
|
a("label", null, [
|
|
2194
|
-
|
|
2205
|
+
$(t(l(d).column), 1),
|
|
2195
2206
|
F(a("select", {
|
|
2196
2207
|
"aria-label": l(d).column,
|
|
2197
|
-
"onUpdate:modelValue":
|
|
2208
|
+
"onUpdate:modelValue": k[23] || (k[23] = (u) => ce(H) ? H.value = u : null),
|
|
2198
2209
|
disabled: e.readonly,
|
|
2199
|
-
onChange:
|
|
2210
|
+
onChange: k[24] || (k[24] = (u) => l(r).loadCondition(-1))
|
|
2200
2211
|
}, [
|
|
2201
2212
|
(i(!0), s(C, null, M(e.list.columns, (u) => (i(), s("option", {
|
|
2202
2213
|
key: u.field,
|
|
2203
2214
|
value: u.field
|
|
2204
|
-
}, t(u.header || u.field), 9,
|
|
2205
|
-
], 40,
|
|
2206
|
-
[O, l(
|
|
2215
|
+
}, t(u.header || u.field), 9, Ni))), 128))
|
|
2216
|
+
], 40, Di), [
|
|
2217
|
+
[O, l(H)]
|
|
2207
2218
|
])
|
|
2208
2219
|
]),
|
|
2209
2220
|
a("label", null, [
|
|
2210
|
-
|
|
2221
|
+
$(t(l(d).effect), 1),
|
|
2211
2222
|
F(a("select", {
|
|
2212
2223
|
"aria-label": l(d).effect,
|
|
2213
|
-
"onUpdate:modelValue":
|
|
2224
|
+
"onUpdate:modelValue": k[25] || (k[25] = (u) => ce(n) ? n.value = u : null),
|
|
2214
2225
|
disabled: e.readonly,
|
|
2215
|
-
onChange:
|
|
2226
|
+
onChange: k[26] || (k[26] = (u) => l(r).loadCondition(-1))
|
|
2216
2227
|
}, [
|
|
2217
|
-
a("option",
|
|
2218
|
-
a("option",
|
|
2219
|
-
a("option",
|
|
2220
|
-
], 40,
|
|
2228
|
+
a("option", Ei, t(l(d).style), 1),
|
|
2229
|
+
a("option", Ti, t(l(d).cell), 1),
|
|
2230
|
+
a("option", Ki, t(l(d).rowVisibility), 1)
|
|
2231
|
+
], 40, Ri), [
|
|
2221
2232
|
[O, l(n)]
|
|
2222
2233
|
])
|
|
2223
2234
|
]),
|
|
2224
|
-
l(n) === "style" ? (i(), s("label",
|
|
2225
|
-
|
|
2235
|
+
l(n) === "style" ? (i(), s("label", Li, [
|
|
2236
|
+
$(t(l(d).existing), 1),
|
|
2226
2237
|
a("select", {
|
|
2227
2238
|
"aria-label": l(d).existing,
|
|
2228
2239
|
value: l(c),
|
|
2229
2240
|
disabled: e.readonly,
|
|
2230
|
-
onChange:
|
|
2241
|
+
onChange: k[27] || (k[27] = (u) => l(r).loadCondition(
|
|
2231
2242
|
Number(u.target.value)
|
|
2232
2243
|
))
|
|
2233
2244
|
}, [
|
|
2234
|
-
a("option",
|
|
2235
|
-
(i(!0), s(C, null, M(l(
|
|
2236
|
-
key:
|
|
2237
|
-
value:
|
|
2238
|
-
}, t(
|
|
2239
|
-
], 40,
|
|
2240
|
-
])) :
|
|
2241
|
-
|
|
2245
|
+
a("option", Oi, "+ " + t(l(d).newCondition), 1),
|
|
2246
|
+
(i(!0), s(C, null, M(l(J)?.rules, (u, q) => (i(), s("option", {
|
|
2247
|
+
key: q,
|
|
2248
|
+
value: q
|
|
2249
|
+
}, t(q + 1) + " · " + t("field" in u.when ? u.when.field : l(d).conditionGroup), 9, Ai))), 128))
|
|
2250
|
+
], 40, Bi)
|
|
2251
|
+
])) : N("", !0),
|
|
2252
|
+
ve(Fe, {
|
|
2242
2253
|
"model-value": l(v),
|
|
2243
2254
|
fields: l(T),
|
|
2244
2255
|
messages: l(d),
|
|
@@ -2246,56 +2257,56 @@ const ln = ["aria-label"], an = { class: "mr-rule-editor__directory" }, tn = ["a
|
|
|
2246
2257
|
"onUpdate:modelValue": l(r).setCondition
|
|
2247
2258
|
}, null, 8, ["model-value", "fields", "messages", "readonly", "onUpdate:modelValue"]),
|
|
2248
2259
|
l(n) === "style" ? (i(), s(C, { key: 1 }, [
|
|
2249
|
-
a("div",
|
|
2260
|
+
a("div", Ii, [
|
|
2250
2261
|
a("label", null, [
|
|
2251
|
-
|
|
2262
|
+
$(t(l(d).color), 1),
|
|
2252
2263
|
F(a("input", {
|
|
2253
|
-
"onUpdate:modelValue":
|
|
2264
|
+
"onUpdate:modelValue": k[28] || (k[28] = (u) => l(o).color = u),
|
|
2254
2265
|
type: "color",
|
|
2255
2266
|
disabled: e.readonly
|
|
2256
|
-
}, null, 8,
|
|
2257
|
-
[
|
|
2267
|
+
}, null, 8, Wi), [
|
|
2268
|
+
[X, l(o).color]
|
|
2258
2269
|
])
|
|
2259
2270
|
]),
|
|
2260
2271
|
a("label", null, [
|
|
2261
|
-
|
|
2272
|
+
$(t(l(d).background), 1),
|
|
2262
2273
|
F(a("input", {
|
|
2263
|
-
"onUpdate:modelValue":
|
|
2274
|
+
"onUpdate:modelValue": k[29] || (k[29] = (u) => l(o).backgroundColor = u),
|
|
2264
2275
|
type: "color",
|
|
2265
2276
|
disabled: e.readonly
|
|
2266
|
-
}, null, 8,
|
|
2267
|
-
[
|
|
2277
|
+
}, null, 8, Gi), [
|
|
2278
|
+
[X, l(o).backgroundColor]
|
|
2268
2279
|
])
|
|
2269
2280
|
])
|
|
2270
2281
|
]),
|
|
2271
|
-
a("label",
|
|
2282
|
+
a("label", Ji, [
|
|
2272
2283
|
F(a("input", {
|
|
2273
|
-
"onUpdate:modelValue":
|
|
2284
|
+
"onUpdate:modelValue": k[30] || (k[30] = (u) => l(o).bold = u),
|
|
2274
2285
|
type: "checkbox",
|
|
2275
2286
|
disabled: e.readonly
|
|
2276
|
-
}, null, 8,
|
|
2277
|
-
[
|
|
2287
|
+
}, null, 8, ji), [
|
|
2288
|
+
[re, l(o).bold]
|
|
2278
2289
|
]),
|
|
2279
|
-
|
|
2290
|
+
$(t(l(d).bold), 1)
|
|
2280
2291
|
])
|
|
2281
|
-
], 64)) :
|
|
2282
|
-
a("div",
|
|
2292
|
+
], 64)) : N("", !0),
|
|
2293
|
+
a("div", Hi, [
|
|
2283
2294
|
a("button", {
|
|
2284
2295
|
type: "button",
|
|
2285
2296
|
class: "mr-rule-editor__primary",
|
|
2286
2297
|
disabled: e.readonly,
|
|
2287
|
-
onClick:
|
|
2288
|
-
}, t(l(d).apply), 9,
|
|
2298
|
+
onClick: k[31] || (k[31] = (u) => l(r).applyCondition())
|
|
2299
|
+
}, t(l(d).apply), 9, Pi),
|
|
2289
2300
|
l(c) >= 0 || l(n) !== "style" ? (i(), s("button", {
|
|
2290
2301
|
key: 0,
|
|
2291
2302
|
type: "button",
|
|
2292
2303
|
disabled: e.readonly,
|
|
2293
|
-
onClick:
|
|
2294
|
-
}, t(l(d).removeCondition), 9,
|
|
2304
|
+
onClick: k[32] || (k[32] = (u) => l(r).applyCondition(!0))
|
|
2305
|
+
}, t(l(d).removeCondition), 9, zi)) : N("", !0)
|
|
2295
2306
|
])
|
|
2296
|
-
])) :
|
|
2297
|
-
(i(), s(C, null, M(["detail", "matrix", "tree"], (u) => F(
|
|
2298
|
-
key: `${u}-${
|
|
2307
|
+
])) : N("", !0),
|
|
2308
|
+
(i(), s(C, null, M(["detail", "matrix", "tree"], (u) => F(ve(Ut, {
|
|
2309
|
+
key: `${u}-${le.value}`,
|
|
2299
2310
|
list: e.list,
|
|
2300
2311
|
"recovery-key": e.recoveryKey,
|
|
2301
2312
|
mode: u,
|
|
@@ -2305,38 +2316,38 @@ const ln = ["aria-label"], an = { class: "mr-rule-editor__directory" }, tn = ["a
|
|
|
2305
2316
|
readonly: e.readonly,
|
|
2306
2317
|
messages: l(d),
|
|
2307
2318
|
accept: l(r).applyLayout,
|
|
2308
|
-
onDirty: (
|
|
2319
|
+
onDirty: (q) => ee.value = { ...ee.value, [u]: q }
|
|
2309
2320
|
}, null, 8, ["list", "recovery-key", "mode", "datasets", "dataset-schema", "dataset-schemas", "readonly", "messages", "accept", "onDirty"]), [
|
|
2310
|
-
[
|
|
2321
|
+
[Ke, l(b) === u]
|
|
2311
2322
|
])), 64)),
|
|
2312
|
-
a("aside",
|
|
2323
|
+
a("aside", qi, [
|
|
2313
2324
|
a("header", null, [
|
|
2314
2325
|
a("strong", null, t(l(d).explanation), 1),
|
|
2315
|
-
|
|
2326
|
+
_.value ? (i(), s("span", Zi, t(l(d).pending), 1)) : N("", !0)
|
|
2316
2327
|
]),
|
|
2317
2328
|
a("p", null, t(l(d).sourceHint), 1),
|
|
2318
|
-
l(
|
|
2329
|
+
l(b) === "computations" ? (i(), s(C, { key: 0 }, [
|
|
2319
2330
|
a("h4", null, t(l(d).expression), 1),
|
|
2320
2331
|
a("code", null, t(l(S)), 1),
|
|
2321
|
-
a("div",
|
|
2332
|
+
a("div", Qi, [
|
|
2322
2333
|
a("h4", null, t(l(d).sourceValues) + " → " + t(l(d).result), 1),
|
|
2323
|
-
(i(!0), s(C, null, M(l(
|
|
2334
|
+
(i(!0), s(C, null, M(l(R), (u) => (i(), s("div", {
|
|
2324
2335
|
key: u.row,
|
|
2325
2336
|
class: "mr-rule-editor__trace"
|
|
2326
2337
|
}, [
|
|
2327
2338
|
a("small", null, "#" + t(u.row), 1),
|
|
2328
2339
|
a("code", null, t(u.values), 1),
|
|
2329
|
-
a("strong", null, t(l(A).find((
|
|
2340
|
+
a("strong", null, t(l(A).find((q) => q.row === u.row)?.value ?? (l(A).length ? "—" : l(d).notChecked)), 1)
|
|
2330
2341
|
]))), 128)),
|
|
2331
|
-
l(A).some((u) => u.value == null) ? (i(), s("p",
|
|
2332
|
-
l(A).length ? (i(), s("p",
|
|
2342
|
+
l(A).some((u) => u.value == null) ? (i(), s("p", Xi, t(l(d).nullReason), 1)) : N("", !0),
|
|
2343
|
+
l(A).length ? (i(), s("p", Yi, t(l(d).sample), 1)) : N("", !0)
|
|
2333
2344
|
])
|
|
2334
|
-
], 64)) :
|
|
2335
|
-
l(h) ? (i(), s("p",
|
|
2345
|
+
], 64)) : N("", !0),
|
|
2346
|
+
l(h) ? (i(), s("p", pi, t(l(h)), 1)) : N("", !0)
|
|
2336
2347
|
])
|
|
2337
|
-
], 12,
|
|
2348
|
+
], 12, nn));
|
|
2338
2349
|
}
|
|
2339
|
-
}),
|
|
2350
|
+
}), us = /* @__PURE__ */ ge(_i, [["__scopeId", "data-v-eba44d9b"]]);
|
|
2340
2351
|
export {
|
|
2341
|
-
|
|
2352
|
+
us as default
|
|
2342
2353
|
};
|