@agile-team/mach-report 2.12.0 → 2.14.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 +27 -3
- package/dist/ExcelBindingWizard-CLT2p7P3.cjs +1 -0
- package/dist/ExcelBindingWizard-CvsWR8Ga.js +1485 -0
- package/dist/{ParamEditor-BLaE5q5W.js → ParamEditor-CflQV3eQ.js} +191 -187
- package/dist/ParamEditor-vIDzvpPV.cjs +1 -0
- package/dist/ReportBatchPanel-DkxTzBkD.cjs +1 -0
- package/dist/{ReportBatchPanel-B5ClP9tm.js → ReportBatchPanel-LqVgiqp7.js} +3 -3
- package/dist/ReportPreview-CvbqLUzM.cjs +6 -0
- package/dist/ReportPreview-D_ywJ_-H.js +4533 -0
- package/dist/{ReportTemplateLibrary-BZB-XWjj.js → ReportTemplateLibrary-MjWEtc7X.js} +1 -1
- package/dist/ReportTemplateLibrary-cQ1sqNYo.cjs +1 -0
- package/dist/RuleEditor-BaR6xUiI.cjs +1 -0
- package/dist/RuleEditor-ChuXMlei.js +2037 -0
- package/dist/TemplateOutlinePanel-BHKP89Xz.cjs +1 -0
- package/dist/TemplateOutlinePanel-Dci6aRn1.js +96 -0
- package/dist/TemplateReusePanel-B7Gmyc1z.js +388 -0
- package/dist/TemplateReusePanel-CY5eO2Sh.cjs +1 -0
- package/dist/TemplateReviewPanel-DjlX3xpt.js +592 -0
- package/dist/TemplateReviewPanel-JvZe9_4G.cjs +1 -0
- package/dist/{batch-mRqhhhjt.js → batch-DzaTNLWI.js} +23 -16
- package/dist/batch-xMkqYiTr.cjs +1 -0
- package/dist/config-0UIohTS7.cjs +1 -0
- package/dist/{config-B612mw0x.js → config-Dt9NtCPl.js} +227 -186
- package/dist/data-explanation-BktvER5B.cjs +1 -0
- package/dist/data-explanation-C_J6jYNi.js +16 -0
- package/dist/designer-Ci1LizA9.js +5020 -0
- package/dist/designer-rtmVIIdN.cjs +2 -0
- package/dist/designer.cjs +1 -2
- package/dist/designer.d.cts +306 -3
- package/dist/designer.d.ts +306 -3
- package/dist/designer.js +21 -4266
- package/dist/font-loader-DHto6Lra.js +297 -0
- package/dist/font-loader-vhCT8znW.cjs +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +182 -1
- package/dist/index.d.ts +182 -1
- package/dist/index.js +728 -628
- package/dist/{template-review-BzpcI-tR.js → json-snapshot-BeFT3Tso.js} +867 -637
- package/dist/json-snapshot-D1NTP2oI.cjs +2 -0
- package/dist/pdf-8UPQebOE.js +36288 -0
- package/dist/pdf-AyJGb22z.cjs +101 -0
- package/dist/pdf.cjs +1 -101
- package/dist/pdf.js +9 -36579
- package/dist/plugin-BGKf-Tqg.js +22 -0
- package/dist/{plugin-BDTU4D94.cjs → plugin-CktLH_Iy.cjs} +1 -1
- package/dist/{region-binding-workflow-CcUq8W2Q.js → region-binding-workflow-DEJbhpCv.js} +1 -1
- package/dist/server/node.d.cts +46 -11
- package/dist/server/node.d.ts +46 -11
- package/dist/server-node.cjs +1 -1
- package/dist/server-node.js +294 -280
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +107 -12
- package/dist/server.d.ts +107 -12
- package/dist/server.js +713 -453
- package/dist/style.css +1 -1
- package/dist/template-bindings-BJR4k7qZ.cjs +1 -0
- package/dist/template-bindings-Daui7hLF.js +252 -0
- package/dist/template-fragments-CLkGo6To.js +187 -0
- package/dist/template-fragments-DFUpq5QM.cjs +1 -0
- package/dist/template-outline-B3xVkzSv.cjs +1 -0
- package/dist/template-outline-CFenM1PV.js +88 -0
- package/dist/{template-registry-BjE1VS6g.js → template-registry-COXDEJEM.js} +1 -1
- package/dist/{useLocalDraft-C07SYRnC.js → useLocalDraft-BnhcxXk_.js} +1 -1
- package/dist/{useLocalDraft-Yiw1wFgI.cjs → useLocalDraft-CioIfDb6.cjs} +1 -1
- package/dist/{validate-DbgEM1Hh.js → validate-CkQBWCeg.js} +3 -3
- package/dist/vue/async.d.cts +72 -2
- package/dist/vue/async.d.ts +72 -2
- package/dist/vue/index.d.cts +124 -5
- package/dist/vue/index.d.ts +124 -5
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +5 -5
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +78 -71
- package/dist/{workbook-session-BPb3TMnT.js → workbook-session-BfK1yHOO.js} +1 -1
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +46 -11
- package/dist/worker.d.ts +46 -11
- package/dist/worker.js +59 -55
- package/dist/xlsx.js +3 -3
- package/package.json +1 -1
- package/dist/ExcelBindingWizard-CeAf4QSE.js +0 -1465
- package/dist/ExcelBindingWizard-y0mT-AHR.cjs +0 -1
- package/dist/ParamEditor-MBBC7lUE.cjs +0 -1
- package/dist/ReportBatchPanel-Dc-SDkYA.cjs +0 -1
- package/dist/ReportPreview-DWXROHBP.cjs +0 -6
- package/dist/ReportPreview-DiNXhQI0.js +0 -4138
- package/dist/ReportTemplateLibrary-5fk5CQBO.cjs +0 -1
- package/dist/RuleEditor-ChRzNQuF.cjs +0 -1
- package/dist/RuleEditor-DzAmW5YH.js +0 -2024
- package/dist/TemplateReviewPanel-BKofGrV9.js +0 -222
- package/dist/TemplateReviewPanel-DwtOcLue.cjs +0 -1
- package/dist/batch-Bt3Fd27Z.cjs +0 -1
- package/dist/config-BRoLo2oj.cjs +0 -1
- package/dist/plugin-Cd5G2QQn.js +0 -22
- package/dist/record-bindings-By_UKZ2g.cjs +0 -1
- package/dist/record-bindings-D-5jQlTj.js +0 -196
- package/dist/template-review-BfCC8Ng9.cjs +0 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as T, computed as M, watch as Q, defineComponent as X, getCurrentInstance as Z, openBlock as u, createElementBlock as d, unref as e, createElementVNode as n, toDisplayString as r, Fragment as E, renderList as A, normalizeClass as W, createCommentVNode as _, createTextVNode as x, withDirectives as O, mergeProps as S, vModelDynamic as G, vModelText as H, vModelCheckbox as K, vModelSelect as ee, nextTick as ae } from "vue";
|
|
2
2
|
import { validateReportParamDefinitions as te } from "@agile-team/mach-report";
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
3
|
+
import { P as le, u as ne } from "./designer-Ci1LizA9.js";
|
|
4
|
+
import { _ as re } from "./_plugin-vue_export-helper-8SL1F89S.js";
|
|
5
|
+
const ie = ["text", "number", "date", "month", "year", "dateRange", "select"], oe = { text: "string", number: "string → number", date: "YYYY-MM-DD", month: "YYYY-MM", year: "YYYY", dateRange: "YYYY-MM-DD/YYYY-MM-DD", select: "option.value" };
|
|
6
|
+
function se(a) {
|
|
7
7
|
if (/^(默认值|必填参数的默认值)/.test(a)) return ["defaultValue"];
|
|
8
8
|
if (a.includes("参数名")) return ["field"];
|
|
9
9
|
if (a.includes("选项")) return ["options"];
|
|
10
10
|
if (a.startsWith("最小边界")) return ["min", "max"];
|
|
11
11
|
if (a.startsWith("最小长度")) return ["minLength", "maxLength"];
|
|
12
|
-
const
|
|
13
|
-
return
|
|
12
|
+
const b = /^(minLength|maxLength|min|max) /.exec(a)?.[1];
|
|
13
|
+
return b ? [b] : ["type"];
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ue(a) {
|
|
16
16
|
return JSON.parse(JSON.stringify(a));
|
|
17
17
|
}
|
|
18
18
|
function z(a) {
|
|
@@ -28,92 +28,96 @@ function z(a) {
|
|
|
28
28
|
max: a.max === void 0 ? "" : String(a.max),
|
|
29
29
|
minLength: a.minLength === void 0 ? "" : String(a.minLength),
|
|
30
30
|
maxLength: a.maxLength === void 0 ? "" : String(a.maxLength),
|
|
31
|
-
options: a.options ? a.options.map((
|
|
31
|
+
options: a.options ? a.options.map((b) => ({ ...b })) : []
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
const
|
|
36
|
-
a.label && (
|
|
34
|
+
function de(a) {
|
|
35
|
+
const b = { field: a.field, type: a.type };
|
|
36
|
+
a.label && (b.label = a.label), a.placeholder && (b.placeholder = a.placeholder), a.required && (b.required = !0), a.defaultEnabled && (b.defaultValue = a.defaultValue);
|
|
37
37
|
for (const h of ["min", "max"])
|
|
38
|
-
a[h] !== "" && (
|
|
39
|
-
for (const h of ["minLength", "maxLength"]) a[h] !== "" && (
|
|
40
|
-
return a.type === "select" && (
|
|
38
|
+
a[h] !== "" && (b[h] = a.type === "number" ? Number(a[h]) : a[h]);
|
|
39
|
+
for (const h of ["minLength", "maxLength"]) a[h] !== "" && (b[h] = Number(a[h]));
|
|
40
|
+
return a.type === "select" && (b.options = a.options.map((h) => ({ ...h }))), b;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const
|
|
42
|
+
function me(a) {
|
|
43
|
+
const b = () => JSON.stringify(a.document.template.params ?? []), h = T(b()), p = T((a.document.template.params ?? []).map(z)), k = T(0), s = T(""), l = M(() => ({ ...le, ...a.messages })), R = M(() => p.value.map(de)), g = T(JSON.stringify(p.value)), i = M(() => JSON.stringify(p.value) !== g.value), L = M(() => b() !== h.value), I = M(() => te(R.value)), C = M(() => {
|
|
44
44
|
const m = /* @__PURE__ */ new Map();
|
|
45
|
-
for (const y of
|
|
46
|
-
const
|
|
47
|
-
|
|
45
|
+
for (const y of I.value) {
|
|
46
|
+
const v = Number(y.path.split(".").at(-1)), w = m.get(v) ?? [];
|
|
47
|
+
w.push({ message: y.message, controls: se(y.message) }), m.set(v, w);
|
|
48
48
|
}
|
|
49
49
|
return m;
|
|
50
|
-
}),
|
|
51
|
-
function
|
|
50
|
+
}), P = M(() => C.value.keys().next().value), V = M(() => p.value[k.value]), Y = M(() => I.value.filter((m) => m.path === `$.paramDefs.${k.value}`));
|
|
51
|
+
function J(m) {
|
|
52
52
|
return (C.value.get(k.value) ?? []).filter((y) => y.controls.includes(m)).map((y) => y.message);
|
|
53
53
|
}
|
|
54
54
|
const D = M(() => {
|
|
55
|
-
const m = JSON.parse(h.value).map((
|
|
56
|
-
return { added: y.filter((
|
|
55
|
+
const m = JSON.parse(h.value).map((v) => v.field), y = R.value.map((v) => v.field);
|
|
56
|
+
return { added: y.filter((v) => v && !m.includes(v)), removed: m.filter((v) => !y.includes(v)) };
|
|
57
57
|
});
|
|
58
58
|
function N() {
|
|
59
|
-
h.value =
|
|
59
|
+
h.value = b(), p.value = (a.document.template.params ?? []).map(z), k.value = Math.min(k.value, Math.max(0, p.value.length - 1)), g.value = JSON.stringify(p.value), s.value = "";
|
|
60
60
|
}
|
|
61
|
-
Q(
|
|
61
|
+
Q(b, () => {
|
|
62
62
|
i.value || N();
|
|
63
63
|
});
|
|
64
64
|
function F() {
|
|
65
65
|
if (a.readonly) return;
|
|
66
|
-
let m =
|
|
67
|
-
for (;
|
|
68
|
-
|
|
66
|
+
let m = p.value.length + 1;
|
|
67
|
+
for (; p.value.some((y) => y.field === `param${m}`); ) m++;
|
|
68
|
+
p.value.push(z({ field: `param${m}`, type: "text" })), k.value = p.value.length - 1;
|
|
69
69
|
}
|
|
70
70
|
function B() {
|
|
71
|
-
a.readonly || !V.value || (
|
|
71
|
+
a.readonly || !V.value || (p.value.splice(k.value, 1), k.value = Math.min(k.value, Math.max(0, p.value.length - 1)));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function $(m) {
|
|
74
74
|
const y = k.value + m;
|
|
75
|
-
if (a.readonly || y < 0 || y >=
|
|
76
|
-
const
|
|
77
|
-
|
|
75
|
+
if (a.readonly || y < 0 || y >= p.value.length) return;
|
|
76
|
+
const v = p.value.splice(k.value, 1)[0];
|
|
77
|
+
p.value.splice(y, 0, v), k.value = y;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function j(m) {
|
|
80
80
|
a.readonly || !V.value || (V.value.type = m, V.value.min = "", V.value.max = "", V.value.minLength = "", V.value.maxLength = "");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
if (a.readonly || L.value ||
|
|
82
|
+
function q() {
|
|
83
|
+
if (a.readonly || L.value || I.value.length) return !1;
|
|
84
84
|
try {
|
|
85
|
-
return a.accept(
|
|
85
|
+
return a.accept(ue(R.value)) ? (h.value = JSON.stringify(R.value), g.value = JSON.stringify(p.value), s.value = "", !0) : (s.value = l.value.paramApplyFailed, !1);
|
|
86
86
|
} catch (m) {
|
|
87
87
|
return s.value = m instanceof Error ? m.message : String(m), !1;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
return {
|
|
90
|
+
return ne({ key: () => "params", baseline: () => h.value, pending: () => i.value, snapshot: () => JSON.stringify({ rows: p.value, selected: k.value, initial: g.value }), restore(m, y) {
|
|
91
|
+
const v = JSON.parse(m);
|
|
92
|
+
if (!Array.isArray(v.rows) || v.rows.length > 1e3 || typeof v.initial != "string") throw new Error("Invalid parameter draft");
|
|
93
|
+
p.value = v.rows, k.value = Math.max(0, Math.min(v.selected, v.rows.length - 1)), g.value = v.initial, h.value = y;
|
|
94
|
+
} }), { m: l, rows: p, selected: k, current: V, definitions: R, issues: I, issuesByRow: C, firstIssueIndex: P, controlIssues: J, currentIssues: Y, changes: D, pending: i, conflicted: L, error: s, reset: N, add: F, remove: B, move: $, setType: j, apply: q };
|
|
91
95
|
}
|
|
92
|
-
const
|
|
96
|
+
const pe = ["aria-label"], ce = { class: "mr-param-editor__directory" }, ye = ["aria-label"], ve = ["aria-pressed", "aria-label", "onClick"], be = { class: "mr-param-editor__directory-title" }, fe = {
|
|
93
97
|
key: 0,
|
|
94
98
|
class: "mr-param-editor__error-count",
|
|
95
99
|
"aria-hidden": "true"
|
|
96
|
-
},
|
|
100
|
+
}, he = { key: 0 }, ge = ["disabled"], _e = {
|
|
97
101
|
key: 0,
|
|
98
102
|
class: "mr-param-editor__validation",
|
|
99
103
|
role: "status"
|
|
100
|
-
},
|
|
104
|
+
}, ke = { class: "mr-param-editor__heading" }, xe = { class: "mr-param-editor__grid" }, Ve = ["aria-label", "disabled"], Ie = ["id"], $e = ["aria-label", "disabled"], Me = ["value", "aria-label", "disabled"], Re = ["value"], Le = ["id"], De = ["aria-label", "disabled"], Se = { class: "mr-param-editor__checks" }, Ce = ["disabled"], Ee = ["disabled"], Oe = { class: "mr-param-editor__default-label" }, Ye = { class: "mr-param-editor__range" }, Ne = ["value", "aria-label", "disabled"], Ae = ["value", "aria-label", "disabled"], Te = { key: 1 }, we = ["aria-label", "disabled"], Ue = ["value"], Pe = ["value", "aria-label", "type", "min", "max", "step", "disabled"], Je = ["id"], je = ["value", "aria-label", "type", "min", "max", "step", "disabled", "onInput"], qe = ["id"], Fe = ["value", "aria-label", "disabled", "onInput"], Be = ["id"], We = {
|
|
101
105
|
key: 0,
|
|
102
106
|
class: "mr-param-editor__hint"
|
|
103
|
-
},
|
|
107
|
+
}, He = {
|
|
104
108
|
key: 1,
|
|
105
109
|
class: "mr-param-editor__options"
|
|
106
|
-
},
|
|
110
|
+
}, ze = { class: "mr-param-editor__option-head" }, Ge = ["onUpdate:modelValue", "aria-label", "disabled"], Ke = ["onUpdate:modelValue", "aria-label", "disabled"], Qe = ["aria-label", "disabled", "onClick"], Xe = ["id"], Ze = ["disabled"], ea = { class: "mr-param-editor__row-actions" }, aa = ["disabled"], ta = ["disabled"], la = ["disabled"], na = { class: "mr-param-editor__technical" }, ra = {
|
|
107
111
|
key: 2,
|
|
108
112
|
class: "mr-param-editor__empty"
|
|
109
|
-
},
|
|
113
|
+
}, ia = ["disabled"], oa = {
|
|
110
114
|
key: 3,
|
|
111
115
|
class: "mr-param-editor__impact"
|
|
112
|
-
},
|
|
116
|
+
}, sa = { key: 0 }, ua = { key: 1 }, da = {
|
|
113
117
|
key: 4,
|
|
114
118
|
class: "mr-param-editor__errors",
|
|
115
119
|
role: "alert"
|
|
116
|
-
},
|
|
120
|
+
}, ma = ["disabled"], pa = ["disabled"], ca = /* @__PURE__ */ X({
|
|
117
121
|
__name: "ParamEditor",
|
|
118
122
|
props: {
|
|
119
123
|
document: {},
|
|
@@ -122,51 +126,51 @@ const me = ["aria-label"], pe = { class: "mr-param-editor__directory" }, ce = ["
|
|
|
122
126
|
accept: { type: Function }
|
|
123
127
|
},
|
|
124
128
|
emits: ["dirty"],
|
|
125
|
-
setup(a, { expose:
|
|
126
|
-
const
|
|
127
|
-
Q(
|
|
128
|
-
function N(
|
|
129
|
-
return { text: l.value.paramText, number: l.value.paramNumber, date: l.value.paramDate, month: l.value.paramMonth, year: l.value.paramYear, dateRange: l.value.paramDateRange, select: l.value.paramSelect }[
|
|
129
|
+
setup(a, { expose: b, emit: h }) {
|
|
130
|
+
const p = a, k = h, s = me(p), { m: l, rows: R, selected: g, current: i, changes: L, pending: I, conflicted: C, error: P, issues: V, issuesByRow: Y } = s, J = T(), D = `mr-param-${Z()?.uid ?? 0}`;
|
|
131
|
+
Q(I, (c) => k("dirty", c), { immediate: !0 });
|
|
132
|
+
function N(c) {
|
|
133
|
+
return { text: l.value.paramText, number: l.value.paramNumber, date: l.value.paramDate, month: l.value.paramMonth, year: l.value.paramYear, dateRange: l.value.paramDateRange, select: l.value.paramSelect }[c];
|
|
130
134
|
}
|
|
131
135
|
function F() {
|
|
132
|
-
i.value && !
|
|
136
|
+
i.value && !p.readonly && i.value.options.push({ value: "", label: "" });
|
|
133
137
|
}
|
|
134
|
-
function B(
|
|
135
|
-
|
|
138
|
+
function B(c) {
|
|
139
|
+
p.readonly || i.value?.options.splice(c, 1);
|
|
136
140
|
}
|
|
137
|
-
function
|
|
138
|
-
const o = s.controlIssues(
|
|
139
|
-
return { "aria-invalid": o ? "true" : void 0, "aria-describedby": o ? `${D}-${g.value}-${
|
|
141
|
+
function $(c) {
|
|
142
|
+
const o = s.controlIssues(c).length > 0;
|
|
143
|
+
return { "aria-invalid": o ? "true" : void 0, "aria-describedby": o ? `${D}-${g.value}-${c}` : void 0 };
|
|
140
144
|
}
|
|
141
|
-
function
|
|
142
|
-
return
|
|
145
|
+
function j(c) {
|
|
146
|
+
return c === "year" ? "number" : c === "dateRange" ? "date" : ["date", "month", "number"].includes(c) ? c : "text";
|
|
143
147
|
}
|
|
144
|
-
function
|
|
145
|
-
return
|
|
148
|
+
function q(c) {
|
|
149
|
+
return c.target.value;
|
|
146
150
|
}
|
|
147
|
-
function m(
|
|
148
|
-
i.value && !
|
|
151
|
+
function m(c, o) {
|
|
152
|
+
i.value && !p.readonly && (i.value[c] = q(o));
|
|
149
153
|
}
|
|
150
|
-
function y(
|
|
151
|
-
return i.value?.defaultValue.split("/")[
|
|
154
|
+
function y(c) {
|
|
155
|
+
return i.value?.defaultValue.split("/")[c] ?? "";
|
|
152
156
|
}
|
|
153
|
-
function
|
|
154
|
-
if (!i.value ||
|
|
157
|
+
function v(c, o) {
|
|
158
|
+
if (!i.value || p.readonly) return;
|
|
155
159
|
const t = [y(0), y(1)];
|
|
156
|
-
t[
|
|
160
|
+
t[c] = q(o), i.value.defaultValue = t.some(Boolean) ? t.join("/") : "";
|
|
157
161
|
}
|
|
158
|
-
async function
|
|
159
|
-
const
|
|
160
|
-
if (
|
|
161
|
-
g.value =
|
|
162
|
-
const o =
|
|
162
|
+
async function w() {
|
|
163
|
+
const c = s.firstIssueIndex.value;
|
|
164
|
+
if (c === void 0) return;
|
|
165
|
+
g.value = c, await ae();
|
|
166
|
+
const o = J.value?.querySelector('[aria-invalid="true"]');
|
|
163
167
|
o?.focus({ preventScroll: !0 }), o?.scrollIntoView?.({ block: "nearest" });
|
|
164
168
|
}
|
|
165
|
-
return
|
|
169
|
+
return b({ pending: I, reset: s.reset, apply: s.apply, locateIssue: w }), (c, o) => (u(), d("section", {
|
|
166
170
|
class: "mr-param-editor",
|
|
167
171
|
"aria-label": e(l).paramsTool
|
|
168
172
|
}, [
|
|
169
|
-
n("aside",
|
|
173
|
+
n("aside", ce, [
|
|
170
174
|
n("header", null, [
|
|
171
175
|
n("strong", null, r(e(l).paramsDirectory), 1),
|
|
172
176
|
n("span", null, r(e(R).length), 1)
|
|
@@ -174,78 +178,78 @@ const me = ["aria-label"], pe = { class: "mr-param-editor__directory" }, ce = ["
|
|
|
174
178
|
n("nav", {
|
|
175
179
|
"aria-label": e(l).paramsDirectory
|
|
176
180
|
}, [
|
|
177
|
-
(u(!0), d(
|
|
178
|
-
key:
|
|
181
|
+
(u(!0), d(E, null, A(e(R), (t, f) => (u(), d("button", {
|
|
182
|
+
key: f,
|
|
179
183
|
type: "button",
|
|
180
|
-
"aria-pressed": e(g) ===
|
|
181
|
-
"aria-label": `${t.label || t.field || e(l).paramUnnamed}${e(
|
|
182
|
-
class: W({ "has-errors": e(
|
|
183
|
-
onClick: (
|
|
184
|
+
"aria-pressed": e(g) === f,
|
|
185
|
+
"aria-label": `${t.label || t.field || e(l).paramUnnamed}${e(Y).get(f)?.length ? ` · ${e(l).paramIssueCount} ${e(Y).get(f)?.length}` : ""}`,
|
|
186
|
+
class: W({ "has-errors": e(Y).has(f) }),
|
|
187
|
+
onClick: (U) => g.value = f
|
|
184
188
|
}, [
|
|
185
|
-
n("span",
|
|
189
|
+
n("span", be, [
|
|
186
190
|
n("strong", null, r(t.label || t.field || e(l).paramUnnamed), 1),
|
|
187
|
-
e(
|
|
191
|
+
e(Y).has(f) ? (u(), d("span", fe, r(e(Y).get(f)?.length), 1)) : _("", !0)
|
|
188
192
|
]),
|
|
189
193
|
n("small", null, [
|
|
190
194
|
x(r(t.field) + " · " + r(N(t.type)), 1),
|
|
191
|
-
t.required ? (u(), d("span",
|
|
195
|
+
t.required ? (u(), d("span", he, " *")) : _("", !0)
|
|
192
196
|
])
|
|
193
|
-
], 10,
|
|
194
|
-
], 8,
|
|
197
|
+
], 10, ve))), 128))
|
|
198
|
+
], 8, ye),
|
|
195
199
|
n("button", {
|
|
196
200
|
type: "button",
|
|
197
201
|
class: "mr-param-editor__add",
|
|
198
202
|
disabled: a.readonly,
|
|
199
203
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
200
204
|
(...t) => e(s).add && e(s).add(...t))
|
|
201
|
-
}, "+ " + r(e(l).paramAdd), 9,
|
|
205
|
+
}, "+ " + r(e(l).paramAdd), 9, ge),
|
|
202
206
|
n("p", null, r(e(l).paramsDescription), 1)
|
|
203
207
|
]),
|
|
204
208
|
n("div", {
|
|
205
209
|
ref_key: "main",
|
|
206
|
-
ref:
|
|
210
|
+
ref: J,
|
|
207
211
|
class: "mr-param-editor__main"
|
|
208
212
|
}, [
|
|
209
|
-
e(V).length ? (u(), d("div",
|
|
213
|
+
e(V).length ? (u(), d("div", _e, [
|
|
210
214
|
n("span", null, [
|
|
211
215
|
x(r(e(l).paramIssueCount) + " ", 1),
|
|
212
216
|
n("strong", null, r(e(V).length), 1)
|
|
213
217
|
]),
|
|
214
218
|
n("button", {
|
|
215
219
|
type: "button",
|
|
216
|
-
onClick:
|
|
220
|
+
onClick: w
|
|
217
221
|
}, r(e(l).paramLocateFirst), 1)
|
|
218
|
-
])) :
|
|
219
|
-
e(i) ? (u(), d(
|
|
220
|
-
n("header",
|
|
222
|
+
])) : _("", !0),
|
|
223
|
+
e(i) ? (u(), d(E, { key: 1 }, [
|
|
224
|
+
n("header", ke, [
|
|
221
225
|
n("div", null, [
|
|
222
226
|
n("strong", null, r(e(i).label || e(i).field || e(l).paramUnnamed), 1),
|
|
223
227
|
n("small", null, r(N(e(i).type)), 1)
|
|
224
228
|
]),
|
|
225
229
|
n("span", {
|
|
226
|
-
class: W({ "is-pending": e(
|
|
227
|
-
}, r(e(V).length ? e(l).paramInvalid : e(
|
|
230
|
+
class: W({ "is-pending": e(I) || e(V).length > 0 })
|
|
231
|
+
}, r(e(V).length ? e(l).paramInvalid : e(I) ? e(l).paramPending : e(l).paramReady), 3)
|
|
228
232
|
]),
|
|
229
|
-
n("div",
|
|
233
|
+
n("div", xe, [
|
|
230
234
|
n("label", null, [
|
|
231
235
|
x(r(e(l).paramField), 1),
|
|
232
|
-
|
|
236
|
+
O(n("input", S({
|
|
233
237
|
"onUpdate:modelValue": o[1] || (o[1] = (t) => e(i).field = t),
|
|
234
238
|
"aria-label": e(l).paramField,
|
|
235
239
|
disabled: a.readonly,
|
|
236
240
|
autocomplete: "off"
|
|
237
|
-
},
|
|
241
|
+
}, $("field")), null, 16, Ve), [
|
|
238
242
|
[G, e(i).field]
|
|
239
243
|
]),
|
|
240
244
|
e(s).controlIssues("field").length ? (u(), d("small", {
|
|
241
245
|
key: 0,
|
|
242
246
|
id: `${D}-${e(g)}-field`,
|
|
243
247
|
class: "mr-param-editor__field-error"
|
|
244
|
-
}, r(e(s).controlIssues("field").join(";")), 9,
|
|
248
|
+
}, r(e(s).controlIssues("field").join(";")), 9, Ie)) : _("", !0)
|
|
245
249
|
]),
|
|
246
250
|
n("label", null, [
|
|
247
251
|
x(r(e(l).paramLabel), 1),
|
|
248
|
-
|
|
252
|
+
O(n("input", {
|
|
249
253
|
"onUpdate:modelValue": o[2] || (o[2] = (t) => e(i).label = t),
|
|
250
254
|
"aria-label": e(l).paramLabel,
|
|
251
255
|
disabled: a.readonly
|
|
@@ -259,47 +263,47 @@ const me = ["aria-label"], pe = { class: "mr-param-editor__directory" }, ce = ["
|
|
|
259
263
|
value: e(i).type,
|
|
260
264
|
"aria-label": e(l).paramType,
|
|
261
265
|
disabled: a.readonly
|
|
262
|
-
},
|
|
266
|
+
}, $("type"), {
|
|
263
267
|
onChange: o[3] || (o[3] = (t) => e(s).setType(t.target.value))
|
|
264
268
|
}), [
|
|
265
|
-
(u(!0), d(
|
|
269
|
+
(u(!0), d(E, null, A(e(ie), (t) => (u(), d("option", {
|
|
266
270
|
key: t,
|
|
267
271
|
value: t
|
|
268
|
-
}, r(N(t)), 9,
|
|
269
|
-
], 16,
|
|
272
|
+
}, r(N(t)), 9, Re))), 128))
|
|
273
|
+
], 16, Me),
|
|
270
274
|
e(s).controlIssues("type").length ? (u(), d("small", {
|
|
271
275
|
key: 0,
|
|
272
276
|
id: `${D}-${e(g)}-type`,
|
|
273
277
|
class: "mr-param-editor__field-error"
|
|
274
|
-
}, r(e(s).controlIssues("type").join(";")), 9,
|
|
278
|
+
}, r(e(s).controlIssues("type").join(";")), 9, Le)) : _("", !0)
|
|
275
279
|
]),
|
|
276
280
|
n("label", null, [
|
|
277
281
|
x(r(e(l).paramPlaceholder), 1),
|
|
278
|
-
|
|
282
|
+
O(n("input", {
|
|
279
283
|
"onUpdate:modelValue": o[4] || (o[4] = (t) => e(i).placeholder = t),
|
|
280
284
|
"aria-label": e(l).paramPlaceholder,
|
|
281
285
|
disabled: a.readonly
|
|
282
|
-
}, null, 8,
|
|
286
|
+
}, null, 8, De), [
|
|
283
287
|
[H, e(i).placeholder]
|
|
284
288
|
])
|
|
285
289
|
]),
|
|
286
|
-
n("div",
|
|
290
|
+
n("div", Se, [
|
|
287
291
|
n("label", null, [
|
|
288
|
-
|
|
292
|
+
O(n("input", {
|
|
289
293
|
"onUpdate:modelValue": o[5] || (o[5] = (t) => e(i).required = t),
|
|
290
294
|
type: "checkbox",
|
|
291
295
|
disabled: a.readonly
|
|
292
|
-
}, null, 8,
|
|
296
|
+
}, null, 8, Ce), [
|
|
293
297
|
[K, e(i).required]
|
|
294
298
|
]),
|
|
295
299
|
x(r(e(l).paramRequired), 1)
|
|
296
300
|
]),
|
|
297
301
|
n("label", null, [
|
|
298
|
-
|
|
302
|
+
O(n("input", {
|
|
299
303
|
"onUpdate:modelValue": o[6] || (o[6] = (t) => e(i).defaultEnabled = t),
|
|
300
304
|
type: "checkbox",
|
|
301
305
|
disabled: a.readonly
|
|
302
|
-
}, null, 8,
|
|
306
|
+
}, null, 8, Ee), [
|
|
303
307
|
[K, e(i).defaultEnabled]
|
|
304
308
|
]),
|
|
305
309
|
x(r(e(l).paramDefaultEnabled), 1)
|
|
@@ -309,9 +313,9 @@ const me = ["aria-label"], pe = { class: "mr-param-editor__directory" }, ce = ["
|
|
|
309
313
|
key: 0,
|
|
310
314
|
class: W(["mr-param-editor__default", { "is-range": e(i).type === "dateRange" }])
|
|
311
315
|
}, [
|
|
312
|
-
e(i).type === "dateRange" ? (u(), d(
|
|
313
|
-
n("span",
|
|
314
|
-
n("div",
|
|
316
|
+
e(i).type === "dateRange" ? (u(), d(E, { key: 0 }, [
|
|
317
|
+
n("span", Oe, r(e(l).paramDefault), 1),
|
|
318
|
+
n("div", Ye, [
|
|
315
319
|
n("label", null, [
|
|
316
320
|
x(r(e(l).paramRangeStart), 1),
|
|
317
321
|
n("input", S({
|
|
@@ -319,9 +323,9 @@ const me = ["aria-label"], pe = { class: "mr-param-editor__directory" }, ce = ["
|
|
|
319
323
|
type: "date",
|
|
320
324
|
"aria-label": e(l).paramRangeStart,
|
|
321
325
|
disabled: a.readonly
|
|
322
|
-
},
|
|
323
|
-
onInput: o[7] || (o[7] = (t) =>
|
|
324
|
-
}), null, 16,
|
|
326
|
+
}, $("defaultValue"), {
|
|
327
|
+
onInput: o[7] || (o[7] = (t) => v(0, t))
|
|
328
|
+
}), null, 16, Ne)
|
|
325
329
|
]),
|
|
326
330
|
o[17] || (o[17] = n("span", { "aria-hidden": "true" }, "—", -1)),
|
|
327
331
|
n("label", null, [
|
|
@@ -331,36 +335,36 @@ const me = ["aria-label"], pe = { class: "mr-param-editor__directory" }, ce = ["
|
|
|
331
335
|
type: "date",
|
|
332
336
|
"aria-label": e(l).paramRangeEnd,
|
|
333
337
|
disabled: a.readonly
|
|
334
|
-
},
|
|
335
|
-
onInput: o[8] || (o[8] = (t) =>
|
|
336
|
-
}), null, 16,
|
|
338
|
+
}, $("defaultValue"), {
|
|
339
|
+
onInput: o[8] || (o[8] = (t) => v(1, t))
|
|
340
|
+
}), null, 16, Ae)
|
|
337
341
|
])
|
|
338
342
|
])
|
|
339
|
-
], 64)) : (u(), d("label",
|
|
343
|
+
], 64)) : (u(), d("label", Te, [
|
|
340
344
|
x(r(e(l).paramDefault), 1),
|
|
341
|
-
e(i).type === "select" ?
|
|
345
|
+
e(i).type === "select" ? O((u(), d("select", S({
|
|
342
346
|
key: 0,
|
|
343
347
|
"onUpdate:modelValue": o[9] || (o[9] = (t) => e(i).defaultValue = t),
|
|
344
348
|
"aria-label": e(l).paramDefault,
|
|
345
349
|
disabled: a.readonly
|
|
346
|
-
},
|
|
350
|
+
}, $("defaultValue")), [
|
|
347
351
|
o[18] || (o[18] = n("option", { value: "" }, null, -1)),
|
|
348
|
-
(u(!0), d(
|
|
349
|
-
key:
|
|
352
|
+
(u(!0), d(E, null, A(e(i).options, (t, f) => (u(), d("option", {
|
|
353
|
+
key: f,
|
|
350
354
|
value: t.value
|
|
351
|
-
}, r(t.label || t.value), 9,
|
|
352
|
-
], 16,
|
|
355
|
+
}, r(t.label || t.value), 9, Ue))), 128))
|
|
356
|
+
], 16, we)), [
|
|
353
357
|
[ee, e(i).defaultValue]
|
|
354
358
|
]) : (u(), d("input", S({
|
|
355
359
|
key: 1,
|
|
356
360
|
value: e(i).defaultValue,
|
|
357
361
|
"aria-label": e(l).paramDefault,
|
|
358
|
-
type:
|
|
362
|
+
type: j(e(i).type),
|
|
359
363
|
min: e(i).type === "year" ? 1 : void 0,
|
|
360
364
|
max: e(i).type === "year" ? 9999 : void 0,
|
|
361
365
|
step: e(i).type === "year" ? 1 : "any",
|
|
362
366
|
disabled: a.readonly
|
|
363
|
-
},
|
|
367
|
+
}, $("defaultValue"), {
|
|
364
368
|
onInput: o[10] || (o[10] = (t) => m("defaultValue", t))
|
|
365
369
|
}), null, 16, Pe))
|
|
366
370
|
])),
|
|
@@ -369,28 +373,28 @@ const me = ["aria-label"], pe = { class: "mr-param-editor__directory" }, ce = ["
|
|
|
369
373
|
id: `${D}-${e(g)}-defaultValue`,
|
|
370
374
|
class: "mr-param-editor__field-error mr-param-editor__errors",
|
|
371
375
|
role: "alert"
|
|
372
|
-
}, r(e(s).controlIssues("defaultValue").join(";")), 9,
|
|
373
|
-
], 2)) :
|
|
374
|
-
["number", "date", "month", "year", "dateRange"].includes(e(i).type) ? (u(), d(
|
|
376
|
+
}, r(e(s).controlIssues("defaultValue").join(";")), 9, Je)) : _("", !0)
|
|
377
|
+
], 2)) : _("", !0),
|
|
378
|
+
["number", "date", "month", "year", "dateRange"].includes(e(i).type) ? (u(), d(E, { key: 1 }, A(["min", "max"], (t) => n("label", { key: t }, [
|
|
375
379
|
x(r(t === "min" ? e(l).paramMinimum : e(l).paramMaximum), 1),
|
|
376
380
|
n("input", S({
|
|
377
381
|
value: e(i)[t],
|
|
378
382
|
"aria-label": t === "min" ? e(l).paramMinimum : e(l).paramMaximum,
|
|
379
|
-
type:
|
|
383
|
+
type: j(e(i).type),
|
|
380
384
|
min: e(i).type === "year" ? 1 : void 0,
|
|
381
385
|
max: e(i).type === "year" ? 9999 : void 0,
|
|
382
386
|
step: e(i).type === "year" ? 1 : "any",
|
|
383
387
|
disabled: a.readonly
|
|
384
|
-
}, { ref_for: !0 },
|
|
385
|
-
onInput: (
|
|
386
|
-
}), null, 16,
|
|
388
|
+
}, { ref_for: !0 }, $(t), {
|
|
389
|
+
onInput: (f) => m(t, f)
|
|
390
|
+
}), null, 16, je),
|
|
387
391
|
e(s).controlIssues(t).length ? (u(), d("small", {
|
|
388
392
|
key: 0,
|
|
389
393
|
id: `${D}-${e(g)}-${t}`,
|
|
390
394
|
class: "mr-param-editor__field-error"
|
|
391
|
-
}, r(e(s).controlIssues(t).join(";")), 9,
|
|
392
|
-
])), 64)) :
|
|
393
|
-
e(i).type === "text" ? (u(), d(
|
|
395
|
+
}, r(e(s).controlIssues(t).join(";")), 9, qe)) : _("", !0)
|
|
396
|
+
])), 64)) : _("", !0),
|
|
397
|
+
e(i).type === "text" ? (u(), d(E, { key: 2 }, A(["minLength", "maxLength"], (t) => n("label", { key: t }, [
|
|
394
398
|
x(r(t === "minLength" ? e(l).paramMinLength : e(l).paramMaxLength), 1),
|
|
395
399
|
n("input", S({
|
|
396
400
|
value: e(i)[t],
|
|
@@ -399,83 +403,83 @@ const me = ["aria-label"], pe = { class: "mr-param-editor__directory" }, ce = ["
|
|
|
399
403
|
step: "1",
|
|
400
404
|
"aria-label": t === "minLength" ? e(l).paramMinLength : e(l).paramMaxLength,
|
|
401
405
|
disabled: a.readonly
|
|
402
|
-
}, { ref_for: !0 },
|
|
403
|
-
onInput: (
|
|
404
|
-
}), null, 16,
|
|
406
|
+
}, { ref_for: !0 }, $(t), {
|
|
407
|
+
onInput: (f) => m(t, f)
|
|
408
|
+
}), null, 16, Fe),
|
|
405
409
|
e(s).controlIssues(t).length ? (u(), d("small", {
|
|
406
410
|
key: 0,
|
|
407
411
|
id: `${D}-${e(g)}-${t}`,
|
|
408
412
|
class: "mr-param-editor__field-error"
|
|
409
|
-
}, r(e(s).controlIssues(t).join(";")), 9,
|
|
410
|
-
])), 64)) :
|
|
413
|
+
}, r(e(s).controlIssues(t).join(";")), 9, Be)) : _("", !0)
|
|
414
|
+
])), 64)) : _("", !0)
|
|
411
415
|
]),
|
|
412
|
-
e(i).type === "dateRange" ? (u(), d("p",
|
|
413
|
-
e(i).type === "select" ? (u(), d("fieldset",
|
|
416
|
+
e(i).type === "dateRange" ? (u(), d("p", We, r(e(l).paramRangeHint), 1)) : _("", !0),
|
|
417
|
+
e(i).type === "select" ? (u(), d("fieldset", He, [
|
|
414
418
|
n("legend", null, r(e(l).paramOptions), 1),
|
|
415
|
-
n("div",
|
|
419
|
+
n("div", ze, [
|
|
416
420
|
n("span", null, r(e(l).paramOptionValue), 1),
|
|
417
421
|
n("span", null, r(e(l).paramOptionLabel), 1)
|
|
418
422
|
]),
|
|
419
|
-
(u(!0), d(
|
|
420
|
-
key:
|
|
423
|
+
(u(!0), d(E, null, A(e(i).options, (t, f) => (u(), d("div", {
|
|
424
|
+
key: f,
|
|
421
425
|
class: "mr-param-editor__option"
|
|
422
426
|
}, [
|
|
423
|
-
|
|
424
|
-
"onUpdate:modelValue": (
|
|
425
|
-
"aria-label": `${e(l).paramOptionValue} ${
|
|
427
|
+
O(n("input", S({
|
|
428
|
+
"onUpdate:modelValue": (U) => t.value = U,
|
|
429
|
+
"aria-label": `${e(l).paramOptionValue} ${f + 1}`,
|
|
426
430
|
disabled: a.readonly
|
|
427
|
-
}, { ref_for: !0 },
|
|
431
|
+
}, { ref_for: !0 }, $("options")), null, 16, Ge), [
|
|
428
432
|
[G, t.value]
|
|
429
433
|
]),
|
|
430
|
-
|
|
431
|
-
"onUpdate:modelValue": (
|
|
432
|
-
"aria-label": `${e(l).paramOptionLabel} ${
|
|
434
|
+
O(n("input", {
|
|
435
|
+
"onUpdate:modelValue": (U) => t.label = U,
|
|
436
|
+
"aria-label": `${e(l).paramOptionLabel} ${f + 1}`,
|
|
433
437
|
disabled: a.readonly
|
|
434
|
-
}, null, 8,
|
|
438
|
+
}, null, 8, Ke), [
|
|
435
439
|
[H, t.label]
|
|
436
440
|
]),
|
|
437
441
|
n("button", {
|
|
438
442
|
type: "button",
|
|
439
|
-
"aria-label": `${e(l).paramOptionRemove} ${
|
|
443
|
+
"aria-label": `${e(l).paramOptionRemove} ${f + 1}`,
|
|
440
444
|
disabled: a.readonly,
|
|
441
|
-
onClick: (
|
|
442
|
-
}, "×", 8,
|
|
445
|
+
onClick: (U) => B(f)
|
|
446
|
+
}, "×", 8, Qe)
|
|
443
447
|
]))), 128)),
|
|
444
448
|
e(s).controlIssues("options").length ? (u(), d("small", {
|
|
445
449
|
key: 0,
|
|
446
450
|
id: `${D}-${e(g)}-options`,
|
|
447
451
|
class: "mr-param-editor__field-error"
|
|
448
|
-
}, r(e(s).controlIssues("options").join(";")), 9,
|
|
452
|
+
}, r(e(s).controlIssues("options").join(";")), 9, Xe)) : _("", !0),
|
|
449
453
|
n("button", {
|
|
450
454
|
type: "button",
|
|
451
455
|
disabled: a.readonly,
|
|
452
456
|
onClick: F
|
|
453
|
-
}, "+ " + r(e(l).paramOptionAdd), 9,
|
|
454
|
-
])) :
|
|
455
|
-
n("div",
|
|
457
|
+
}, "+ " + r(e(l).paramOptionAdd), 9, Ze)
|
|
458
|
+
])) : _("", !0),
|
|
459
|
+
n("div", ea, [
|
|
456
460
|
n("button", {
|
|
457
461
|
type: "button",
|
|
458
462
|
disabled: a.readonly || e(g) === 0,
|
|
459
463
|
onClick: o[11] || (o[11] = (t) => e(s).move(-1))
|
|
460
|
-
}, "↑ " + r(e(l).paramMoveUp), 9,
|
|
464
|
+
}, "↑ " + r(e(l).paramMoveUp), 9, aa),
|
|
461
465
|
n("button", {
|
|
462
466
|
type: "button",
|
|
463
467
|
disabled: a.readonly || e(g) === e(R).length - 1,
|
|
464
468
|
onClick: o[12] || (o[12] = (t) => e(s).move(1))
|
|
465
|
-
}, "↓ " + r(e(l).paramMoveDown), 9,
|
|
469
|
+
}, "↓ " + r(e(l).paramMoveDown), 9, ta),
|
|
466
470
|
n("button", {
|
|
467
471
|
type: "button",
|
|
468
472
|
class: "is-danger",
|
|
469
473
|
disabled: a.readonly,
|
|
470
474
|
onClick: o[13] || (o[13] = //@ts-ignore
|
|
471
475
|
(...t) => e(s).remove && e(s).remove(...t))
|
|
472
|
-
}, r(e(l).paramRemove), 9,
|
|
476
|
+
}, r(e(l).paramRemove), 9, la)
|
|
473
477
|
]),
|
|
474
|
-
n("details",
|
|
478
|
+
n("details", na, [
|
|
475
479
|
n("summary", null, r(e(l).paramWire), 1),
|
|
476
|
-
n("code", null, r(e(
|
|
480
|
+
n("code", null, r(e(oe)[e(i).type]), 1)
|
|
477
481
|
])
|
|
478
|
-
], 64)) : (u(), d("div",
|
|
482
|
+
], 64)) : (u(), d("div", ra, [
|
|
479
483
|
n("strong", null, r(e(l).paramEmpty), 1),
|
|
480
484
|
n("p", null, r(e(l).paramEmptyHint), 1),
|
|
481
485
|
n("button", {
|
|
@@ -483,40 +487,40 @@ const me = ["aria-label"], pe = { class: "mr-param-editor__directory" }, ce = ["
|
|
|
483
487
|
disabled: a.readonly,
|
|
484
488
|
onClick: o[14] || (o[14] = //@ts-ignore
|
|
485
489
|
(...t) => e(s).add && e(s).add(...t))
|
|
486
|
-
}, "+ " + r(e(l).paramAdd), 9,
|
|
490
|
+
}, "+ " + r(e(l).paramAdd), 9, ia)
|
|
487
491
|
])),
|
|
488
|
-
e(L).added.length || e(L).removed.length ? (u(), d("aside",
|
|
492
|
+
e(L).added.length || e(L).removed.length ? (u(), d("aside", oa, [
|
|
489
493
|
n("strong", null, r(e(l).paramChanges), 1),
|
|
490
|
-
e(L).added.length ? (u(), d("p",
|
|
494
|
+
e(L).added.length ? (u(), d("p", sa, [
|
|
491
495
|
x(r(e(l).paramAdded) + ":", 1),
|
|
492
496
|
n("code", null, r(e(L).added.join(", ")), 1)
|
|
493
|
-
])) :
|
|
494
|
-
e(L).removed.length ? (u(), d("p",
|
|
497
|
+
])) : _("", !0),
|
|
498
|
+
e(L).removed.length ? (u(), d("p", ua, [
|
|
495
499
|
x(r(e(l).paramRemoved) + ":", 1),
|
|
496
500
|
n("code", null, r(e(L).removed.join(", ")), 1)
|
|
497
|
-
])) :
|
|
501
|
+
])) : _("", !0),
|
|
498
502
|
n("small", null, r(e(l).paramRenameHint), 1)
|
|
499
|
-
])) :
|
|
500
|
-
e(C) || e(
|
|
503
|
+
])) : _("", !0),
|
|
504
|
+
e(C) || e(P) ? (u(), d("p", da, r(e(C) ? e(l).paramConflict : e(P)), 1)) : _("", !0),
|
|
501
505
|
n("footer", null, [
|
|
502
506
|
n("button", {
|
|
503
507
|
type: "button",
|
|
504
|
-
disabled: !e(
|
|
508
|
+
disabled: !e(I) && !e(C),
|
|
505
509
|
onClick: o[15] || (o[15] = //@ts-ignore
|
|
506
510
|
(...t) => e(s).reset && e(s).reset(...t))
|
|
507
|
-
}, r(e(l).paramRestore), 9,
|
|
511
|
+
}, r(e(l).paramRestore), 9, ma),
|
|
508
512
|
n("button", {
|
|
509
513
|
type: "button",
|
|
510
514
|
class: "is-primary",
|
|
511
|
-
disabled: a.readonly || !e(
|
|
515
|
+
disabled: a.readonly || !e(I) || e(C) || !!e(V).length,
|
|
512
516
|
onClick: o[16] || (o[16] = //@ts-ignore
|
|
513
517
|
(...t) => e(s).apply && e(s).apply(...t))
|
|
514
|
-
}, r(e(l).paramApply), 9,
|
|
518
|
+
}, r(e(l).paramApply), 9, pa)
|
|
515
519
|
])
|
|
516
520
|
], 512)
|
|
517
|
-
], 8,
|
|
521
|
+
], 8, pe));
|
|
518
522
|
}
|
|
519
|
-
}),
|
|
523
|
+
}), ha = /* @__PURE__ */ re(ca, [["__scopeId", "data-v-d8a0f18a"]]);
|
|
520
524
|
export {
|
|
521
|
-
|
|
525
|
+
ha as default
|
|
522
526
|
};
|