@agile-team/mach-report 2.19.1 → 2.20.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 +18 -3
- package/dist/ExcelBindingWizard-B7aeRg46.cjs +1 -0
- package/dist/{ExcelBindingWizard-xJIYmnZ_.js → ExcelBindingWizard-Chn6ZC2-.js} +350 -350
- package/dist/ParamEditor-BdFMa1CX.cjs +1 -0
- package/dist/{ParamEditor-D1wWemaf.js → ParamEditor-o-7E7WZZ.js} +10 -10
- package/dist/{ReportBatchPanel-B88R-fME.js → ReportBatchPanel-CNJ4Useq.js} +2 -2
- package/dist/{ReportBatchPanel-BkJFqeEW.cjs → ReportBatchPanel-DVpmB7tG.cjs} +1 -1
- package/dist/ReportLabelStudio-Drsm9sAS.cjs +1 -0
- package/dist/ReportLabelStudio-r8VFnhGQ.js +589 -0
- package/dist/ReportParamPanel-CVpK8mFc.cjs +1 -0
- package/dist/{ReportParamPanel-mQkeN70Q.js → ReportParamPanel-peB-KEmm.js} +10 -2
- package/dist/{ReportPreview-DBbctg6C.js → ReportPreview-CGcxwkAn.js} +2093 -1978
- package/dist/ReportPreview-hlwvZ1wf.cjs +6 -0
- package/dist/{ReportTemplateLibrary-BOh2MgjQ.cjs → ReportTemplateLibrary-DjjyZnZB.cjs} +1 -1
- package/dist/{ReportTemplateLibrary-BGELmgd3.js → ReportTemplateLibrary-DyIJhJjX.js} +1 -1
- package/dist/RuleEditor-BVuRn_OQ.cjs +1 -0
- package/dist/{RuleEditor-CoLqgehG.js → RuleEditor-BeknHHOD.js} +176 -172
- package/dist/{TemplateOutlinePanel-DU95loB-.js → TemplateOutlinePanel-Bv8CxbXS.js} +1 -1
- package/dist/{TemplateOutlinePanel-DiG8tRRe.cjs → TemplateOutlinePanel-D6TXg1aV.cjs} +1 -1
- package/dist/{TemplateReusePanel-DE1KSD6c.js → TemplateReusePanel-CfousvPY.js} +1 -1
- package/dist/{TemplateReusePanel-G-Y299wc.cjs → TemplateReusePanel-wrSbd_mr.cjs} +1 -1
- package/dist/{TemplateReviewPanel-KQx9ts0D.cjs → TemplateReviewPanel-BKFcSbTh.cjs} +1 -1
- package/dist/{TemplateReviewPanel-vqFJ_Y9o.js → TemplateReviewPanel-F2tqWNLO.js} +1 -1
- package/dist/artifact-integrity.json +36 -36
- package/dist/designer-B52ddmHO.js +6676 -0
- package/dist/designer-Dtsw_rh7.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +142 -5
- package/dist/designer.d.ts +142 -5
- package/dist/designer.js +1 -1
- package/dist/{plugin-CPyHs4UC.cjs → plugin-BMsIIJDh.cjs} +1 -1
- package/dist/{plugin-DsXJRR6Q.js → plugin-Co1oKD7T.js} +1 -1
- package/dist/sbom.cdx.json +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.js +1 -1
- package/dist/style.css +1 -1
- package/dist/vue/async.d.cts +8 -0
- package/dist/vue/async.d.ts +8 -0
- package/dist/vue/index.d.cts +10 -2
- package/dist/vue/index.d.ts +10 -2
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +5 -5
- package/package.json +1 -1
- package/dist/ExcelBindingWizard-UHSApSG9.cjs +0 -1
- package/dist/ParamEditor-BZb-okUd.cjs +0 -1
- package/dist/ReportLabelStudio-B4WZ2XNN.js +0 -239
- package/dist/ReportLabelStudio-BN-fYNCr.cjs +0 -1
- package/dist/ReportParamPanel-sOANVRz-.cjs +0 -1
- package/dist/ReportPreview-CuoHl15N.cjs +0 -6
- package/dist/RuleEditor-XaLcCdTb.cjs +0 -1
- package/dist/designer-CyKXBhQg.cjs +0 -2
- package/dist/designer-fVvpYg8H.js +0 -5824
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as ze, ref as K, computed as S, watch as re, nextTick as Be, openBlock as
|
|
1
|
+
import { defineComponent as ze, ref as K, computed as S, watch as re, nextTick as Be, openBlock as d, createElementBlock as c, createElementVNode as n, createTextVNode as L, toDisplayString as l, createVNode as W, Fragment as V, renderList as U, normalizeClass as Re, createCommentVNode as T, unref as e, withDirectives as Ne, vModelText as tt, shallowRef as nt, onBeforeUnmount as at, normalizeStyle as lt, createBlock as ot, vShow as it } from "vue";
|
|
2
2
|
import { o as pe, q as Ee, f as st, n as rt, m as ut, h as dt, k as ct, v as vt, i as gt, p as ft, d as bt, c as mt, e as ht, a as yt, g as pt } from "./region-binding-workflow-CBg0l_tj.js";
|
|
3
|
-
import { a as
|
|
4
|
-
import { E as wt, u as kt } from "./designer-
|
|
3
|
+
import { a as H } from "./_plugin-vue_export-helper-8SL1F89S.js";
|
|
4
|
+
import { E as wt, u as kt } from "./designer-B52ddmHO.js";
|
|
5
5
|
import { u as $t } from "./useLocalDraft-BnhcxXk_.js";
|
|
6
6
|
function Ae(t, x) {
|
|
7
|
-
const
|
|
8
|
-
return
|
|
7
|
+
const g = /^\$\.datasets\[(\d+)\]/.exec(t.path)?.[1];
|
|
8
|
+
return g !== void 0 ? x[Number(g)]?.id : x.find((m) => t.path.startsWith(`$.datasets.${m.id}.samples`))?.id;
|
|
9
9
|
}
|
|
10
10
|
function Le(t, x) {
|
|
11
|
-
const
|
|
12
|
-
return
|
|
11
|
+
const g = /\.fields\[(\d+)\]/.exec(t)?.[1];
|
|
12
|
+
return g !== void 0 ? { control: "field", fieldIndex: Number(g) } : { control: t.split(".").at(-1) || x };
|
|
13
13
|
}
|
|
14
|
-
function Pe(t, x,
|
|
15
|
-
const m = /^\$\.recipe\.regions\[(\d+)\]/.exec(t.path)?.[1], p = Ae(t,
|
|
14
|
+
function Pe(t, x, g) {
|
|
15
|
+
const m = /^\$\.recipe\.regions\[(\d+)\]/.exec(t.path)?.[1], p = Ae(t, g), o = m === void 0 ? x.regions.find((R) => R.dataset === p) : x.regions[Number(m)];
|
|
16
16
|
if (!o) return { control: t.path.endsWith("footerRange") ? "footer" : "regions", ...x.footerRange ? { range: x.footerRange } : {} };
|
|
17
17
|
if (t.path.startsWith("$.datasets")) return { regionId: o.id, range: o.range, control: t.code === "row-key" ? "rowKey" : "contract" };
|
|
18
18
|
const E = Le(t.path, "range"), C = t.code === "row-key" ? "rowKey" : E.control.startsWith("regions[") ? "range" : E.control;
|
|
19
19
|
return { ...E, control: C, regionId: o.id, range: o.range };
|
|
20
20
|
}
|
|
21
|
-
function xt(t, x,
|
|
21
|
+
function xt(t, x, g) {
|
|
22
22
|
if (t.path.startsWith("$.datasets")) {
|
|
23
|
-
const p = Ae(t,
|
|
23
|
+
const p = Ae(t, g);
|
|
24
24
|
return p === void 0 ? [] : x.regions.filter((o) => o.dataset === p).map((o) => o.id);
|
|
25
25
|
}
|
|
26
|
-
const m = Pe(t, x,
|
|
26
|
+
const m = Pe(t, x, g).regionId;
|
|
27
27
|
return m ? [m] : [];
|
|
28
28
|
}
|
|
29
29
|
function Ct(t, x) {
|
|
30
|
-
const
|
|
31
|
-
return
|
|
30
|
+
const g = /^\$\.recipe\.regions\.(title|header|detail|footer)$/.exec(t.path)?.[1];
|
|
31
|
+
return g ? { control: g, range: x.regions[g] } : t.path.startsWith("$.datasets") ? { control: t.code === "row-key" ? "rowKey" : "contract", range: x.regions.detail } : { ...Le(t.path, "detail"), range: x.regions.detail };
|
|
32
32
|
}
|
|
33
33
|
function ye(t) {
|
|
34
34
|
if (t.range)
|
|
@@ -39,8 +39,8 @@ function ye(t) {
|
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function Rt(t, x,
|
|
43
|
-
return x.control === "dataset" ? !
|
|
42
|
+
function Rt(t, x, g) {
|
|
43
|
+
return x.control === "dataset" ? !g.dataset : x.control === "rowKey" ? !g.rowKey : x.control === "field" && x.fieldIndex !== void 0 ? !g.fields[x.fieldIndex] : !1;
|
|
44
44
|
}
|
|
45
45
|
const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr-binding-note" }, Kt = ["title", "disabled"], Et = {
|
|
46
46
|
class: "mr-binding-region-list",
|
|
@@ -53,7 +53,7 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
53
53
|
}, Pt = {
|
|
54
54
|
class: "mr-binding-label",
|
|
55
55
|
tabindex: "-1"
|
|
56
|
-
},
|
|
56
|
+
}, _t = ["value", "aria-label"], Wt = { class: "mr-binding-label" }, Ht = ["value", "aria-label"], qt = { value: "record" }, Ot = { value: "repeat" }, Vt = { class: "mr-binding-note" }, Jt = {
|
|
57
57
|
class: "mr-binding-label",
|
|
58
58
|
tabindex: "-1"
|
|
59
59
|
}, Ut = ["value", "aria-label"], jt = { value: "" }, Gt = ["value"], Xt = {
|
|
@@ -85,43 +85,43 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
85
85
|
messages: {}
|
|
86
86
|
},
|
|
87
87
|
setup(t) {
|
|
88
|
-
const x = t,
|
|
88
|
+
const x = t, g = K(0), m = K(), p = K(""), o = x.controller.active, E = S(() => x.datasets.find((y) => y.id === o.value?.dataset)), C = S(() => {
|
|
89
89
|
if (!o.value) return [];
|
|
90
90
|
let y = 1;
|
|
91
91
|
try {
|
|
92
92
|
y = pe(o.value.range).left;
|
|
93
93
|
} catch {
|
|
94
94
|
}
|
|
95
|
-
return o.value.fields.slice(
|
|
96
|
-
}), R = S(() => Math.max(1, Math.ceil((o.value?.fields.length ?? 0) / 12))),
|
|
97
|
-
const y = p.value.trim().toLocaleLowerCase(), $ = E.value?.fields ?? [], r = $.filter((
|
|
98
|
-
return [...r, ...$.filter((
|
|
95
|
+
return o.value.fields.slice(g.value * 12, g.value * 12 + 12).map(($, r) => ({ field: $, index: g.value * 12 + r, physical: Ee(y + g.value * 12 + r) }));
|
|
96
|
+
}), R = S(() => Math.max(1, Math.ceil((o.value?.fields.length ?? 0) / 12))), N = S(() => {
|
|
97
|
+
const y = p.value.trim().toLocaleLowerCase(), $ = E.value?.fields ?? [], r = $.filter((z) => [z.field, z.label, z.unit].some((Z) => Z?.toLocaleLowerCase().includes(y))).slice(0, 64), M = new Set(C.value.map((z) => z.field));
|
|
98
|
+
return [...r, ...$.filter((z) => M.has(z.field) && !r.includes(z))];
|
|
99
99
|
});
|
|
100
100
|
function j(y) {
|
|
101
101
|
return y.target.value;
|
|
102
102
|
}
|
|
103
103
|
function le(y) {
|
|
104
|
-
x.controller.setActive(y),
|
|
104
|
+
x.controller.setActive(y), g.value = 0, p.value = "";
|
|
105
105
|
}
|
|
106
106
|
re(() => x.controller.focusTarget.value, async (y) => {
|
|
107
107
|
if (!y) return;
|
|
108
|
-
|
|
108
|
+
g.value = Math.floor((y.target.fieldIndex ?? 0) / 12), p.value = "", await Be();
|
|
109
109
|
const $ = y.target.control === "field" ? `field-${y.target.fieldIndex}` : y.target.control === "contract" ? "dataset" : y.target.control, r = m.value?.querySelector(`[data-binding-control="${$}"]`), M = r?.closest("details");
|
|
110
110
|
M && (M.open = !0);
|
|
111
|
-
const
|
|
112
|
-
|
|
111
|
+
const z = x.disabled && r?.matches("input,select,textarea,button") ? r.closest("label") : r;
|
|
112
|
+
z?.focus(), z?.scrollIntoView?.({ block: "nearest" });
|
|
113
113
|
});
|
|
114
114
|
function oe(y) {
|
|
115
115
|
if (!(!o.value || x.disabled)) {
|
|
116
116
|
o.value.range = j(y);
|
|
117
117
|
try {
|
|
118
118
|
const $ = pe(o.value.range), r = $.right - $.left + 1;
|
|
119
|
-
r <= 2048 && (o.value.fields = Array.from({ length: r }, (M,
|
|
119
|
+
r <= 2048 && (o.value.fields = Array.from({ length: r }, (M, z) => o.value.fields[z] ?? ""));
|
|
120
120
|
} catch {
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
return (y, $) => (
|
|
124
|
+
return (y, $) => (d(), c("section", {
|
|
125
125
|
ref_key: "panel",
|
|
126
126
|
ref: m,
|
|
127
127
|
class: "mr-binding-multi",
|
|
@@ -129,7 +129,7 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
129
129
|
}, [
|
|
130
130
|
n("div", Mt, [
|
|
131
131
|
n("h3", null, [
|
|
132
|
-
|
|
132
|
+
L(l(t.messages.multiRegions), 1),
|
|
133
133
|
n("span", null, l(t.controller.recipe.value.regions.length) + "/128", 1)
|
|
134
134
|
]),
|
|
135
135
|
n("p", St, l(t.messages.multiHint), 1),
|
|
@@ -141,15 +141,15 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
141
141
|
onClick: $[0] || ($[0] = //@ts-ignore
|
|
142
142
|
(...r) => t.controller.add && t.controller.add(...r))
|
|
143
143
|
}, [
|
|
144
|
-
W(
|
|
144
|
+
W(H, {
|
|
145
145
|
name: "grid",
|
|
146
146
|
size: 13
|
|
147
147
|
}),
|
|
148
|
-
|
|
148
|
+
L(l(t.messages.addRegion), 1),
|
|
149
149
|
n("code", null, l(t.controller.selection.value || "—"), 1)
|
|
150
150
|
], 8, Kt),
|
|
151
151
|
n("div", Et, [
|
|
152
|
-
(
|
|
152
|
+
(d(!0), c(V, null, U(t.controller.directory.value, (r) => (d(), c("div", {
|
|
153
153
|
key: r.region.id,
|
|
154
154
|
class: Re(["mr-binding-region-entry", { "is-active": r.region.id === t.controller.activeId.value }]),
|
|
155
155
|
"data-state": r.state
|
|
@@ -165,8 +165,8 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
165
165
|
n("code", null, l(r.region.range), 1),
|
|
166
166
|
n("small", null, l(r.region.mode === "record" ? t.messages.recordMode : t.messages.repeatMode) + " · " + l(r.region.dataset || t.messages.chooseDataset), 1),
|
|
167
167
|
n("span", zt, [
|
|
168
|
-
|
|
169
|
-
r.issues.length ? (
|
|
168
|
+
L(l(r.state === "ready" ? t.messages.regionReady : r.state === "pending" ? t.messages.regionPending : t.messages.regionError), 1),
|
|
169
|
+
r.issues.length ? (d(), c("span", Bt, " · " + l(r.issues.length), 1)) : T("", !0)
|
|
170
170
|
])
|
|
171
171
|
], 8, Dt),
|
|
172
172
|
n("button", {
|
|
@@ -175,7 +175,7 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
175
175
|
disabled: t.disabled,
|
|
176
176
|
onClick: (M) => t.controller.remove(r.region.id)
|
|
177
177
|
}, [
|
|
178
|
-
W(
|
|
178
|
+
W(H, {
|
|
179
179
|
name: "close",
|
|
180
180
|
size: 12
|
|
181
181
|
})
|
|
@@ -187,22 +187,22 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
187
187
|
disabled: t.disabled,
|
|
188
188
|
class: "mr-binding-region-editor"
|
|
189
189
|
}, [
|
|
190
|
-
e(o) ? (
|
|
190
|
+
e(o) ? (d(), c("section", Lt, [
|
|
191
191
|
n("h3", null, [
|
|
192
|
-
|
|
192
|
+
L(l(t.messages.regionProperties), 1),
|
|
193
193
|
n("code", null, l(e(o).id), 1)
|
|
194
194
|
]),
|
|
195
195
|
n("label", Pt, [
|
|
196
|
-
|
|
196
|
+
L(l(t.messages.regionCoordinates), 1),
|
|
197
197
|
n("input", {
|
|
198
198
|
"data-binding-control": "range",
|
|
199
199
|
value: e(o).range,
|
|
200
200
|
"aria-label": t.messages.regionCoordinates,
|
|
201
201
|
onChange: oe
|
|
202
|
-
}, null, 40,
|
|
202
|
+
}, null, 40, _t)
|
|
203
203
|
]),
|
|
204
|
-
n("label",
|
|
205
|
-
|
|
204
|
+
n("label", Wt, [
|
|
205
|
+
L(l(t.messages.regionMode), 1),
|
|
206
206
|
n("select", {
|
|
207
207
|
value: e(o).mode,
|
|
208
208
|
"aria-label": t.messages.regionMode,
|
|
@@ -214,7 +214,7 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
214
214
|
]),
|
|
215
215
|
n("p", Vt, l(e(o).mode === "record" ? t.messages.recordHint : t.messages.repeatHint), 1),
|
|
216
216
|
n("label", Jt, [
|
|
217
|
-
|
|
217
|
+
L(l(t.messages.dataset), 1),
|
|
218
218
|
n("select", {
|
|
219
219
|
"data-binding-control": "dataset",
|
|
220
220
|
value: e(o).dataset,
|
|
@@ -222,14 +222,14 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
222
222
|
onChange: $[2] || ($[2] = (r) => t.controller.dataset(j(r)))
|
|
223
223
|
}, [
|
|
224
224
|
n("option", jt, l(t.messages.chooseDataset), 1),
|
|
225
|
-
(
|
|
225
|
+
(d(!0), c(V, null, U(t.datasets, (r) => (d(), c("option", {
|
|
226
226
|
key: r.id,
|
|
227
227
|
value: r.id
|
|
228
228
|
}, l(r.label || r.id), 9, Gt))), 128))
|
|
229
229
|
], 40, Ut)
|
|
230
230
|
]),
|
|
231
|
-
E.value ? (
|
|
232
|
-
|
|
231
|
+
E.value ? (d(), c("label", Xt, [
|
|
232
|
+
L(l(t.messages.rowKey), 1),
|
|
233
233
|
n("select", {
|
|
234
234
|
"data-binding-control": "rowKey",
|
|
235
235
|
value: e(o).rowKey,
|
|
@@ -237,12 +237,12 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
237
237
|
onChange: $[3] || ($[3] = (r) => t.controller.property("rowKey", j(r)))
|
|
238
238
|
}, [
|
|
239
239
|
n("option", Yt, l(t.messages.chooseRowKey), 1),
|
|
240
|
-
(
|
|
240
|
+
(d(!0), c(V, null, U(E.value.fields.filter((r) => r.type !== "boolean"), (r) => (d(), c("option", {
|
|
241
241
|
key: r.field,
|
|
242
242
|
value: r.field
|
|
243
243
|
}, l(r.label || r.field), 9, Zt))), 128))
|
|
244
244
|
], 40, Qt)
|
|
245
|
-
])) :
|
|
245
|
+
])) : T("", !0),
|
|
246
246
|
n("div", en, [
|
|
247
247
|
n("button", {
|
|
248
248
|
type: "button",
|
|
@@ -251,22 +251,22 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
251
251
|
(...r) => t.controller.header && t.controller.header(...r))
|
|
252
252
|
}, l(t.messages.bindRegionHeader), 9, tn),
|
|
253
253
|
n("code", null, l(e(o).headerRange || t.messages.noRegionHeader), 1),
|
|
254
|
-
e(o).headerRange ? (
|
|
254
|
+
e(o).headerRange ? (d(), c("button", {
|
|
255
255
|
key: 0,
|
|
256
256
|
type: "button",
|
|
257
257
|
"aria-label": t.messages.clearHeader,
|
|
258
258
|
onClick: $[5] || ($[5] = //@ts-ignore
|
|
259
259
|
(...r) => t.controller.clearHeader && t.controller.clearHeader(...r))
|
|
260
260
|
}, [
|
|
261
|
-
W(
|
|
261
|
+
W(H, {
|
|
262
262
|
name: "close",
|
|
263
263
|
size: 11
|
|
264
264
|
})
|
|
265
|
-
], 8, nn)) :
|
|
265
|
+
], 8, nn)) : T("", !0)
|
|
266
266
|
]),
|
|
267
|
-
E.value ? (
|
|
267
|
+
E.value ? (d(), c("div", an, [
|
|
268
268
|
n("label", ln, [
|
|
269
|
-
W(
|
|
269
|
+
W(H, {
|
|
270
270
|
name: "search",
|
|
271
271
|
size: 13
|
|
272
272
|
}),
|
|
@@ -279,8 +279,8 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
279
279
|
[tt, p.value]
|
|
280
280
|
])
|
|
281
281
|
]),
|
|
282
|
-
E.value.fields.length > 64 ? (
|
|
283
|
-
(
|
|
282
|
+
E.value.fields.length > 64 ? (d(), c("small", sn, l(t.messages.fieldLimit), 1)) : T("", !0),
|
|
283
|
+
(d(!0), c(V, null, U(C.value, (r) => (d(), c("label", {
|
|
284
284
|
key: r.index,
|
|
285
285
|
class: "mr-binding-map",
|
|
286
286
|
tabindex: "-1"
|
|
@@ -294,62 +294,62 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
294
294
|
"aria-label": `${t.messages.physical} ${r.physical} · ${t.messages.business}`
|
|
295
295
|
}, [
|
|
296
296
|
n("option", un, l(t.messages.chooseField), 1),
|
|
297
|
-
(
|
|
297
|
+
(d(!0), c(V, null, U(N.value, (M) => (d(), c("option", {
|
|
298
298
|
key: M.field,
|
|
299
299
|
value: M.field
|
|
300
300
|
}, l(M.label || M.field) + " · " + l(M.field), 9, dn))), 128))
|
|
301
301
|
], 40, rn),
|
|
302
|
-
r.field ? (
|
|
302
|
+
r.field ? (d(), c("small", cn, l(E.value.fields.find((M) => M.field === r.field)?.type) + " · " + l(E.value.fields.find((M) => M.field === r.field)?.unit || "—"), 1)) : T("", !0)
|
|
303
303
|
])
|
|
304
304
|
]))), 128))
|
|
305
|
-
])) :
|
|
306
|
-
R.value > 1 ? (
|
|
305
|
+
])) : T("", !0),
|
|
306
|
+
R.value > 1 ? (d(), c("div", vn, [
|
|
307
307
|
n("button", {
|
|
308
308
|
type: "button",
|
|
309
|
-
disabled:
|
|
309
|
+
disabled: g.value <= 0,
|
|
310
310
|
"aria-label": t.messages.previousColumns,
|
|
311
|
-
onClick: $[7] || ($[7] = (r) =>
|
|
311
|
+
onClick: $[7] || ($[7] = (r) => g.value--)
|
|
312
312
|
}, [
|
|
313
|
-
W(
|
|
313
|
+
W(H, {
|
|
314
314
|
name: "chevron-left",
|
|
315
315
|
size: 13
|
|
316
316
|
})
|
|
317
317
|
], 8, gn),
|
|
318
|
-
n("span", null, l(
|
|
318
|
+
n("span", null, l(g.value + 1) + "/" + l(R.value), 1),
|
|
319
319
|
n("button", {
|
|
320
320
|
type: "button",
|
|
321
|
-
disabled:
|
|
321
|
+
disabled: g.value + 1 >= R.value,
|
|
322
322
|
"aria-label": t.messages.nextColumns,
|
|
323
|
-
onClick: $[8] || ($[8] = (r) =>
|
|
323
|
+
onClick: $[8] || ($[8] = (r) => g.value++)
|
|
324
324
|
}, [
|
|
325
|
-
W(
|
|
325
|
+
W(H, {
|
|
326
326
|
name: "chevron-right",
|
|
327
327
|
size: 13
|
|
328
328
|
})
|
|
329
329
|
], 8, fn)
|
|
330
|
-
])) :
|
|
331
|
-
E.value ? (
|
|
330
|
+
])) : T("", !0),
|
|
331
|
+
E.value ? (d(), c("details", bn, [
|
|
332
332
|
n("summary", null, l(t.messages.concurrency), 1),
|
|
333
|
-
(
|
|
333
|
+
(d(), c(V, null, U(["revisionField", "sourceTokenField"], (r) => n("label", {
|
|
334
334
|
key: r,
|
|
335
335
|
class: "mr-binding-label",
|
|
336
336
|
tabindex: "-1"
|
|
337
337
|
}, [
|
|
338
|
-
|
|
338
|
+
L(l(r === "revisionField" ? t.messages.revisionField : t.messages.sourceTokenField), 1),
|
|
339
339
|
n("select", {
|
|
340
340
|
"data-binding-control": r,
|
|
341
341
|
value: e(o)[r] || "",
|
|
342
342
|
onChange: (M) => t.controller.property(r, j(M))
|
|
343
343
|
}, [
|
|
344
344
|
n("option", hn, l(t.messages.optional), 1),
|
|
345
|
-
(
|
|
345
|
+
(d(!0), c(V, null, U(E.value.fields, (M) => (d(), c("option", {
|
|
346
346
|
key: M.field,
|
|
347
347
|
value: M.field
|
|
348
348
|
}, l(M.label || M.field), 9, yn))), 128))
|
|
349
349
|
], 40, mn)
|
|
350
350
|
])), 64))
|
|
351
|
-
])) :
|
|
352
|
-
])) :
|
|
351
|
+
])) : T("", !0)
|
|
352
|
+
])) : T("", !0),
|
|
353
353
|
n("section", pn, [
|
|
354
354
|
n("h3", null, l(t.messages.flowFooter), 1),
|
|
355
355
|
n("p", wn, l(t.messages.flowFooterHint), 1),
|
|
@@ -361,18 +361,18 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
361
361
|
(...r) => t.controller.footer && t.controller.footer(...r))
|
|
362
362
|
}, l(t.messages.bindFooter), 9, $n),
|
|
363
363
|
n("code", null, l(t.controller.recipe.value.footerRange || "—"), 1),
|
|
364
|
-
t.controller.recipe.value.footerRange ? (
|
|
364
|
+
t.controller.recipe.value.footerRange ? (d(), c("button", {
|
|
365
365
|
key: 0,
|
|
366
366
|
type: "button",
|
|
367
367
|
"aria-label": t.messages.clearFooter,
|
|
368
368
|
onClick: $[10] || ($[10] = //@ts-ignore
|
|
369
369
|
(...r) => t.controller.clearFooter && t.controller.clearFooter(...r))
|
|
370
370
|
}, [
|
|
371
|
-
W(
|
|
371
|
+
W(H, {
|
|
372
372
|
name: "close",
|
|
373
373
|
size: 11
|
|
374
374
|
})
|
|
375
|
-
], 8, xn)) :
|
|
375
|
+
], 8, xn)) : T("", !0)
|
|
376
376
|
])
|
|
377
377
|
])
|
|
378
378
|
], 8, At)
|
|
@@ -382,87 +382,87 @@ const It = ["aria-label"], Mt = { class: "mr-binding-group" }, St = { class: "mr
|
|
|
382
382
|
function Te(t = "") {
|
|
383
383
|
return { version: "2.0", sheet: t, regions: [] };
|
|
384
384
|
}
|
|
385
|
-
function Rn(t, x,
|
|
386
|
-
const p = K(Te()), o = K(""), E = K(), C = K(), R = K(),
|
|
387
|
-
const
|
|
388
|
-
return { ...
|
|
389
|
-
}), y = S(() => p.value.regions.find((
|
|
390
|
-
function $(
|
|
391
|
-
return Pe(
|
|
385
|
+
function Rn(t, x, g, m) {
|
|
386
|
+
const p = K(Te()), o = K(""), E = K(), C = K(), R = K(), N = S(() => !t.value || !C.value || !R.value ? "" : st(t.value, x.value, C.value, R.value)), j = S(() => ({ ...p.value, regions: p.value.regions.map((v) => ({ ...v, fields: [] })) })), le = S(() => t.value ? rt(t.value, j.value) : []), oe = S(() => {
|
|
387
|
+
const v = ut(p.value, m()), w = [...le.value, ...v.issues];
|
|
388
|
+
return { ...v, ok: !w.length, issues: w };
|
|
389
|
+
}), y = S(() => p.value.regions.find((v) => v.id === o.value));
|
|
390
|
+
function $(v) {
|
|
391
|
+
return Pe(v, p.value, m());
|
|
392
392
|
}
|
|
393
393
|
const r = S(() => {
|
|
394
|
-
const
|
|
394
|
+
const v = /* @__PURE__ */ new Map();
|
|
395
395
|
for (const w of oe.value.issues) {
|
|
396
|
-
const
|
|
396
|
+
const _ = $(w);
|
|
397
397
|
for (const b of xt(w, p.value, m())) {
|
|
398
|
-
const
|
|
399
|
-
|
|
398
|
+
const q = v.get(b) ?? [];
|
|
399
|
+
q.push({ issue: w, target: { ..._, regionId: b } }), v.set(b, q);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
return p.value.regions.map((w) => {
|
|
403
|
-
const
|
|
404
|
-
return { region: w, state: b, issues:
|
|
403
|
+
const _ = v.get(w.id) ?? [], b = _.length ? _.every((q) => Rt(q.issue, q.target, w)) ? "pending" : "error" : "ready";
|
|
404
|
+
return { region: w, state: b, issues: _ };
|
|
405
405
|
});
|
|
406
406
|
});
|
|
407
|
-
function M(
|
|
408
|
-
p.value = JSON.parse(JSON.stringify(
|
|
407
|
+
function M(v = Te(x.value)) {
|
|
408
|
+
p.value = JSON.parse(JSON.stringify(v)), o.value = p.value.regions[0]?.id ?? "", C.value = void 0, R.value = void 0, E.value = void 0;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
|
|
412
|
-
const w = ye(
|
|
413
|
-
w && (C.value = { row: w.top, column: w.left }, R.value = { row: w.bottom, column: w.right }), E.value = { target:
|
|
410
|
+
function z(v) {
|
|
411
|
+
v.regionId && (o.value = v.regionId);
|
|
412
|
+
const w = ye(v);
|
|
413
|
+
w && (C.value = { row: w.top, column: w.left }, R.value = { row: w.bottom, column: w.right }), E.value = { target: v, sequence: (E.value?.sequence ?? 0) + 1 };
|
|
414
414
|
}
|
|
415
|
-
function Z(
|
|
416
|
-
|
|
415
|
+
function Z(v) {
|
|
416
|
+
z($(v));
|
|
417
417
|
}
|
|
418
|
-
function u(
|
|
419
|
-
|
|
418
|
+
function u(v, w, _) {
|
|
419
|
+
g.value || ((!_ || !C.value) && (C.value = { row: v, column: w }), R.value = { row: v, column: w });
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
if (
|
|
423
|
-
let
|
|
424
|
-
for (; p.value.regions.some((b) => b.id === `region-${
|
|
425
|
-
const w = `region-${
|
|
426
|
-
p.value.regions.push({ id: w, range:
|
|
421
|
+
function A() {
|
|
422
|
+
if (g.value || !N.value || p.value.regions.length >= 128) return;
|
|
423
|
+
let v = 1;
|
|
424
|
+
for (; p.value.regions.some((b) => b.id === `region-${v}`); ) v++;
|
|
425
|
+
const w = `region-${v}`, _ = Math.abs(R.value.column - C.value.column) + 1;
|
|
426
|
+
p.value.regions.push({ id: w, range: N.value, mode: "repeat", dataset: "", fields: Array.from({ length: _ }, () => ""), rowKey: "" }), o.value = w;
|
|
427
427
|
}
|
|
428
|
-
function ne(
|
|
429
|
-
|
|
428
|
+
function ne(v) {
|
|
429
|
+
g.value || (p.value.regions = p.value.regions.filter((w) => w.id !== v), o.value === v && (o.value = p.value.regions[0]?.id ?? ""));
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
!
|
|
431
|
+
function P(v) {
|
|
432
|
+
!g.value && y.value && (y.value.dataset = v, y.value.rowKey = "", y.value.fields.fill(""), delete y.value.revisionField, delete y.value.sourceTokenField);
|
|
433
433
|
}
|
|
434
|
-
function Q(
|
|
435
|
-
if (!(
|
|
436
|
-
if (
|
|
434
|
+
function Q(v, w) {
|
|
435
|
+
if (!(g.value || !y.value)) {
|
|
436
|
+
if (v === "mode") {
|
|
437
437
|
(w === "record" || w === "repeat") && (y.value.mode = w);
|
|
438
438
|
return;
|
|
439
439
|
}
|
|
440
|
-
w ||
|
|
440
|
+
w || v === "rowKey" ? y.value[v] = w : delete y.value[v];
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
function I(
|
|
444
|
-
!
|
|
443
|
+
function I(v, w) {
|
|
444
|
+
!g.value && y.value && v >= 0 && v < y.value.fields.length && (y.value.fields[v] = w);
|
|
445
445
|
}
|
|
446
446
|
function J() {
|
|
447
|
-
!
|
|
447
|
+
!g.value && y.value && delete y.value.headerRange;
|
|
448
448
|
}
|
|
449
449
|
function G() {
|
|
450
|
-
!
|
|
450
|
+
!g.value && y.value && N.value && (y.value.headerRange = N.value);
|
|
451
451
|
}
|
|
452
452
|
function X() {
|
|
453
|
-
!
|
|
453
|
+
!g.value && N.value && (p.value.footerRange = N.value);
|
|
454
454
|
}
|
|
455
455
|
function O() {
|
|
456
|
-
|
|
456
|
+
g.value || delete p.value.footerRange;
|
|
457
457
|
}
|
|
458
|
-
function ee(
|
|
459
|
-
const w = p.value.regions.find((
|
|
460
|
-
w &&
|
|
458
|
+
function ee(v) {
|
|
459
|
+
const w = p.value.regions.find((_) => _.id === v);
|
|
460
|
+
w && z({ regionId: v, control: "range", range: w.range });
|
|
461
461
|
}
|
|
462
|
-
function te(
|
|
463
|
-
return !!C.value && !!R.value &&
|
|
462
|
+
function te(v, w) {
|
|
463
|
+
return !!C.value && !!R.value && v >= Math.min(C.value.row, R.value.row) && v <= Math.max(C.value.row, R.value.row) && w >= Math.min(C.value.column, R.value.column) && w <= Math.max(C.value.column, R.value.column);
|
|
464
464
|
}
|
|
465
|
-
return { recipe: p, activeId: o, active: y, selection:
|
|
465
|
+
return { recipe: p, activeId: o, active: y, selection: N, validation: oe, directory: r, focusTarget: E, target: $, locate: Z, reset: M, select: u, add: A, remove: ne, dataset: P, property: Q, mapping: I, header: G, clearHeader: J, footer: X, clearFooter: O, setActive: ee, selected: te };
|
|
466
466
|
}
|
|
467
467
|
function he(t = "", x = 0) {
|
|
468
468
|
return {
|
|
@@ -478,97 +478,97 @@ function Ce(t) {
|
|
|
478
478
|
return t instanceof Error ? t.message : String(t);
|
|
479
479
|
}
|
|
480
480
|
function In(t, x) {
|
|
481
|
-
const
|
|
482
|
-
function
|
|
481
|
+
const g = nt(), m = K(he()), p = K("table"), o = Rn(g, S(() => m.value.sheet), S(() => q.value), () => t.datasets), E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), R = K({ table: [], regions: [] });
|
|
482
|
+
function N() {
|
|
483
483
|
E.clear(), C.clear(), R.value = { table: [], regions: [] };
|
|
484
484
|
}
|
|
485
485
|
function j() {
|
|
486
486
|
m.value.sheet && (E.set(m.value.sheet, le(m.value)), C.set(m.value.sheet, JSON.parse(JSON.stringify(o.recipe.value))), R.value = { table: [...E.values()], regions: [...C.values()] });
|
|
487
487
|
}
|
|
488
488
|
const le = (i) => JSON.parse(JSON.stringify(i));
|
|
489
|
-
function oe(i,
|
|
490
|
-
return le(E.get(i) ?? he(i,
|
|
489
|
+
function oe(i, f) {
|
|
490
|
+
return le(E.get(i) ?? he(i, f));
|
|
491
491
|
}
|
|
492
492
|
const y = K({
|
|
493
493
|
id: t.identity?.id ?? "excel-template",
|
|
494
494
|
name: t.identity?.name ?? "Excel 业务模板"
|
|
495
495
|
}), $ = K(""), r = K(!1), M = () => ({ recipe: m.value, regions: o.recipe.value, mode: p.value, cached: R.value, identity: y.value });
|
|
496
|
-
let
|
|
496
|
+
let z;
|
|
497
497
|
function Z(i) {
|
|
498
|
-
m.value = le(i.recipe), o.reset(i.regions), p.value = i.mode, y.value = { ...i.identity, ...t.lockId && t.identity ? { id: t.identity.id } : {} },
|
|
499
|
-
for (const
|
|
500
|
-
for (const
|
|
498
|
+
m.value = le(i.recipe), o.reset(i.regions), p.value = i.mode, y.value = { ...i.identity, ...t.lockId && t.identity ? { id: t.identity.id } : {} }, N();
|
|
499
|
+
for (const f of i.cached.table) E.set(f.sheet, f);
|
|
500
|
+
for (const f of i.cached.regions) C.set(f.sheet, f);
|
|
501
501
|
R.value = i.cached;
|
|
502
502
|
}
|
|
503
|
-
const u = K(0),
|
|
504
|
-
let
|
|
503
|
+
const u = K(0), A = $t(() => ({ source: u.value, recipe: m.value, mode: p.value, regions: o.recipe.value, cached: R.value, identity: y.value })), ne = K([]);
|
|
504
|
+
let P;
|
|
505
505
|
function Q() {
|
|
506
|
-
|
|
506
|
+
P?.dispose(), P = void 0;
|
|
507
507
|
}
|
|
508
|
-
const I = K(""), J = K(!1), G = K(!1), X = K(!1), O = K(!1), ee = K(1), te = K(1),
|
|
509
|
-
() =>
|
|
510
|
-
),
|
|
508
|
+
const I = K(""), J = K(!1), G = K(!1), X = K(!1), O = K(!1), ee = K(1), te = K(1), v = K(), w = K(), _ = K(0), b = S(() => ({ ...wt, ...t.messages })), q = S(() => !!t.readonly || J.value || O.value), ve = S(() => !J.value && !O.value), ie = S(
|
|
509
|
+
() => g.value?.sheets.find((i) => i.name === m.value.sheet)
|
|
510
|
+
), B = S(
|
|
511
511
|
() => ie.value ? pe(ie.value.range) : void 0
|
|
512
512
|
), we = S(
|
|
513
513
|
() => t.datasets.find((i) => i.id === m.value.dataset)
|
|
514
514
|
), Ie = S(
|
|
515
|
-
() =>
|
|
515
|
+
() => g.value && ie.value ? dt(g.value, ie.value.name, {
|
|
516
516
|
row: ee.value,
|
|
517
517
|
column: te.value
|
|
518
518
|
}) : void 0
|
|
519
519
|
), Me = S(
|
|
520
|
-
() =>
|
|
520
|
+
() => g.value ? ct(g.value, m.value) : []
|
|
521
521
|
), Se = S(() => {
|
|
522
|
-
if (!
|
|
522
|
+
if (!g.value) return { ok: !1, issues: [], mapped: 0, total: 0 };
|
|
523
523
|
const i = vt(
|
|
524
|
-
|
|
524
|
+
g.value,
|
|
525
525
|
m.value,
|
|
526
526
|
t.datasets
|
|
527
|
-
),
|
|
528
|
-
return { ...i, ok:
|
|
527
|
+
), f = [...Me.value, ...i.issues];
|
|
528
|
+
return { ...i, ok: f.length === 0, issues: f };
|
|
529
529
|
}), ue = S(() => p.value === "regions" ? o.validation.value : Se.value), fe = K(), be = S(() => p.value === "regions" ? o.focusTarget.value : fe.value);
|
|
530
530
|
function h(i) {
|
|
531
531
|
return p.value === "regions" ? o.target(i) : Ct(i, m.value);
|
|
532
532
|
}
|
|
533
533
|
function s(i) {
|
|
534
|
-
const
|
|
535
|
-
return `${i.regionId ? `${i.regionId} · ` : ""}${
|
|
534
|
+
const f = { dataset: b.value.dataset, contract: b.value.dataContract, rowKey: b.value.rowKey, range: b.value.regionCoordinates, field: b.value.mapping, fields: b.value.mapping, footer: b.value.flowFooter, header: b.value.headerRegion, detail: b.value.detailRegion, title: b.value.titleRegion, sheet: b.value.sheet, regions: p.value === "regions" ? b.value.multiRegions : b.value.regionLegend, revisionField: b.value.revisionField, sourceTokenField: b.value.sourceTokenField }, F = ye(i), D = i.fieldIndex === void 0 ? "" : ` ${Ee(F?.left ?? i.fieldIndex + 1)}`;
|
|
535
|
+
return `${i.regionId ? `${i.regionId} · ` : ""}${f[i.control] ?? b.value.regionCoordinates}${D}`;
|
|
536
536
|
}
|
|
537
537
|
const a = S(() => ue.value.issues.map((i) => ({
|
|
538
538
|
issue: i,
|
|
539
539
|
label: s(h(i)),
|
|
540
|
-
message: i.message.replace(/\$\.recipe\.regions\[(\d+)\]/g, (
|
|
540
|
+
message: i.message.replace(/\$\.recipe\.regions\[(\d+)\]/g, (f, F) => o.recipe.value.regions[Number(F)]?.id ?? b.value.regionProperties)
|
|
541
541
|
})));
|
|
542
542
|
function k(i) {
|
|
543
543
|
return i ? { dataset: b.value.nextDataset, rowKey: b.value.nextRowKey, field: b.value.nextField, fields: b.value.nextField, range: b.value.nextRange, regions: b.value.nextRegion, footer: b.value.nextFooter, header: b.value.nextHeader, detail: b.value.nextHeader, title: b.value.nextHeader }[i.control] ?? b.value.nextContract : p.value === "regions" ? b.value.nextRegion : b.value.nextHeader;
|
|
544
544
|
}
|
|
545
545
|
const Y = S(() => t.readonly ? b.value.readonly : J.value ? b.value.loading : O.value ? b.value.applying : X.value ? b.value.applied : ue.value.ok ? b.value.ready : k(ue.value.issues[0] ? h(ue.value.issues[0]) : void 0));
|
|
546
546
|
re(be, (i) => {
|
|
547
|
-
const
|
|
548
|
-
!
|
|
547
|
+
const f = i && ye(i.target);
|
|
548
|
+
!f || !B.value || (ee.value = Math.max(B.value.top, Math.min(B.value.bottom, f.top)), te.value = Math.max(B.value.left, Math.min(B.value.right, f.left)));
|
|
549
549
|
});
|
|
550
550
|
function ke(i) {
|
|
551
551
|
if (p.value === "regions") {
|
|
552
552
|
o.locate(i);
|
|
553
553
|
return;
|
|
554
554
|
}
|
|
555
|
-
const
|
|
556
|
-
F && (
|
|
555
|
+
const f = h(i), F = ye(f);
|
|
556
|
+
F && (v.value = F.top, w.value = F.bottom), f.fieldIndex !== void 0 && (_.value = Math.floor(f.fieldIndex / 12)), fe.value = { target: f, sequence: (fe.value?.sequence ?? 0) + 1 };
|
|
557
557
|
}
|
|
558
558
|
const $e = S(
|
|
559
|
-
() => m.value.fields.slice(
|
|
560
|
-
index:
|
|
559
|
+
() => m.value.fields.slice(_.value * 12, (_.value + 1) * 12).map((i, f) => ({
|
|
560
|
+
index: _.value * 12 + f,
|
|
561
561
|
field: i,
|
|
562
562
|
physical: Ee(
|
|
563
|
-
(
|
|
563
|
+
(B.value?.left ?? 1) + _.value * 12 + f
|
|
564
564
|
)
|
|
565
565
|
}))
|
|
566
|
-
),
|
|
566
|
+
), _e = S(
|
|
567
567
|
() => we.value?.fields.filter((i) => i.type !== "boolean") ?? []
|
|
568
568
|
), xe = S(
|
|
569
|
-
() =>
|
|
570
|
-
top: Math.min(
|
|
571
|
-
bottom: Math.max(
|
|
569
|
+
() => v.value !== void 0 && w.value !== void 0 ? {
|
|
570
|
+
top: Math.min(v.value, w.value),
|
|
571
|
+
bottom: Math.max(v.value, w.value)
|
|
572
572
|
} : void 0
|
|
573
573
|
);
|
|
574
574
|
let se, ae = 0;
|
|
@@ -576,18 +576,18 @@ function In(t, x) {
|
|
|
576
576
|
ae++, se?.abort(), se = void 0, J.value = !1;
|
|
577
577
|
}
|
|
578
578
|
function me() {
|
|
579
|
-
ee.value =
|
|
579
|
+
ee.value = B.value?.top ?? 1, te.value = B.value?.left ?? 1, v.value = void 0, w.value = void 0, _.value = 0, G.value = !1, X.value = !1;
|
|
580
580
|
}
|
|
581
581
|
function Fe(i) {
|
|
582
582
|
de();
|
|
583
583
|
try {
|
|
584
|
-
const
|
|
585
|
-
de(), Q(), ne.value =
|
|
584
|
+
const f = i.version === "2.0" ? gt(i) : ft(i);
|
|
585
|
+
de(), Q(), ne.value = f.source.sheets.map((F) => ({
|
|
586
586
|
name: F.name,
|
|
587
587
|
index: F.index
|
|
588
|
-
})),
|
|
589
|
-
} catch (
|
|
590
|
-
I.value = Ce(
|
|
588
|
+
})), g.value = f.source, N(), f.version === "2.0" ? (m.value = he(f.recipe.sheet, f.source.sheets.find((F) => F.name === f.recipe.sheet).columnCount), o.reset(f.recipe), p.value = "regions") : (m.value = f.recipe, o.reset(), p.value = "table"), y.value = { ...f.identity, ...t.lockId && t.identity ? { id: t.identity.id } : {} }, $.value = f.recipe.sheet, I.value = "", me(), u.value++, A.accept();
|
|
589
|
+
} catch (f) {
|
|
590
|
+
I.value = Ce(f);
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
re(
|
|
@@ -615,105 +615,105 @@ function In(t, x) {
|
|
|
615
615
|
), at(() => {
|
|
616
616
|
de(), Q();
|
|
617
617
|
});
|
|
618
|
-
async function
|
|
618
|
+
async function We(i) {
|
|
619
619
|
if (t.readonly) return;
|
|
620
620
|
if (de(), !/\.xlsx$/i.test(i.name)) {
|
|
621
621
|
I.value = b.value.invalidFile;
|
|
622
622
|
return;
|
|
623
623
|
}
|
|
624
|
-
const
|
|
624
|
+
const f = ++ae;
|
|
625
625
|
se = new AbortController(), J.value = !0, I.value = "";
|
|
626
626
|
let F;
|
|
627
627
|
try {
|
|
628
|
-
const { openExcelWorkbook:
|
|
629
|
-
if (
|
|
628
|
+
const { openExcelWorkbook: D } = await import("./workbook-session-BoScoOg-.js").then((ce) => ce.w);
|
|
629
|
+
if (f !== ae || t.readonly || (F = await D(i, { ...t.importOptions, signal: se.signal }), f !== ae || t.readonly)) return;
|
|
630
630
|
const ge = F.inspect().sheets.filter((ce) => ce.visible);
|
|
631
631
|
if (!ge.length) throw new Error("Excel 中没有可导入的可见工作表");
|
|
632
|
-
const De =
|
|
632
|
+
const De = z?.recipe.sheet || ge[0].name;
|
|
633
633
|
if (!ge.some((ce) => ce.name === De)) throw new Error(b.value.recoveredSheetMissing);
|
|
634
634
|
const Ke = await F.importTemplate({ sheets: [De], signal: se.signal });
|
|
635
|
-
if (
|
|
636
|
-
Q(),
|
|
635
|
+
if (f !== ae || t.readonly) return;
|
|
636
|
+
Q(), P = F, F = void 0, g.value = Ke, u.value++, $.value = i.name, ne.value = ge.map((ce) => ({
|
|
637
637
|
name: ce.name,
|
|
638
638
|
index: ce.index
|
|
639
|
-
})),
|
|
639
|
+
})), N(), m.value = he(
|
|
640
640
|
Ke.sheets[0].name,
|
|
641
641
|
Ke.sheets[0].columnCount
|
|
642
|
-
), o.reset(),
|
|
643
|
-
} catch (
|
|
644
|
-
|
|
642
|
+
), o.reset(), z && (Z(z), z = void 0, r.value = !1), me();
|
|
643
|
+
} catch (D) {
|
|
644
|
+
f === ae && (I.value = Ce(D));
|
|
645
645
|
} finally {
|
|
646
|
-
F?.dispose(),
|
|
646
|
+
F?.dispose(), f === ae && (J.value = !1, se = void 0);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
async function He(i) {
|
|
650
|
-
if (
|
|
650
|
+
if (q.value || !ne.value.some((D) => D.name === i) || m.value.sheet === i)
|
|
651
651
|
return;
|
|
652
652
|
j();
|
|
653
|
-
const
|
|
654
|
-
if (
|
|
655
|
-
m.value = oe(i,
|
|
653
|
+
const f = g.value?.sheets.find((D) => D.name === i);
|
|
654
|
+
if (f) {
|
|
655
|
+
m.value = oe(i, f.columnCount), o.reset(C.get(i)), I.value = "", me();
|
|
656
656
|
return;
|
|
657
657
|
}
|
|
658
|
-
if (!
|
|
658
|
+
if (!P || P.disposed) return;
|
|
659
659
|
de();
|
|
660
660
|
const F = ++ae;
|
|
661
661
|
se = new AbortController(), J.value = !0, I.value = "";
|
|
662
662
|
try {
|
|
663
|
-
const
|
|
663
|
+
const D = await P.importTemplate({ sheets: [i], signal: se.signal });
|
|
664
664
|
if (F !== ae || t.readonly) return;
|
|
665
|
-
|
|
666
|
-
} catch (
|
|
667
|
-
F === ae && (I.value = Ce(
|
|
665
|
+
g.value = D, m.value = oe(i, D.sheets[0].columnCount), o.reset(C.get(i)), me();
|
|
666
|
+
} catch (D) {
|
|
667
|
+
F === ae && (I.value = Ce(D));
|
|
668
668
|
} finally {
|
|
669
669
|
F === ae && (J.value = !1, se = void 0);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
function qe(i) {
|
|
673
|
-
|
|
673
|
+
q.value || (m.value.dataset = i, m.value.rowKey = "", m.value.fields.fill(""), G.value = !1, X.value = !1);
|
|
674
674
|
}
|
|
675
|
-
function Oe(i,
|
|
676
|
-
|
|
675
|
+
function Oe(i, f) {
|
|
676
|
+
q.value || !B.value || i < B.value.top || i > B.value.bottom || ((!f || v.value === void 0) && (v.value = i), w.value = i);
|
|
677
677
|
}
|
|
678
678
|
function Ve(i) {
|
|
679
|
-
if (
|
|
680
|
-
|
|
679
|
+
if (q.value || !g.value || !xe.value) {
|
|
680
|
+
q.value || (I.value = b.value.emptySelection);
|
|
681
681
|
return;
|
|
682
682
|
}
|
|
683
683
|
m.value.regions[i] = pt(
|
|
684
|
-
|
|
684
|
+
g.value,
|
|
685
685
|
m.value.sheet,
|
|
686
686
|
xe.value.top,
|
|
687
687
|
xe.value.bottom
|
|
688
688
|
), G.value = !1, X.value = !1, I.value = "";
|
|
689
689
|
}
|
|
690
690
|
function Je(i) {
|
|
691
|
-
|
|
691
|
+
q.value || (delete m.value.regions[i], G.value = !1, X.value = !1);
|
|
692
692
|
}
|
|
693
|
-
function Ue(i,
|
|
694
|
-
!
|
|
693
|
+
function Ue(i, f) {
|
|
694
|
+
!q.value && i >= 0 && i < m.value.fields.length && (m.value.fields[i] = f, G.value = !1, X.value = !1);
|
|
695
695
|
}
|
|
696
696
|
function je(i) {
|
|
697
|
-
|
|
697
|
+
q.value || (m.value.rowKey = i);
|
|
698
698
|
}
|
|
699
|
-
function Ge(i,
|
|
700
|
-
!
|
|
699
|
+
function Ge(i, f) {
|
|
700
|
+
!q.value && !(i === "id" && t.lockId) && (y.value[i] = f);
|
|
701
701
|
}
|
|
702
702
|
function Xe(i) {
|
|
703
|
-
for (const
|
|
704
|
-
const F = m.value.regions[
|
|
703
|
+
for (const f of ["title", "header", "detail", "footer"]) {
|
|
704
|
+
const F = m.value.regions[f];
|
|
705
705
|
if (!F) continue;
|
|
706
|
-
const
|
|
707
|
-
if (i >=
|
|
706
|
+
const D = pe(F);
|
|
707
|
+
if (i >= D.top && i <= D.bottom) return f;
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
|
-
function Qe(i,
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
Math.min(
|
|
710
|
+
function Qe(i, f) {
|
|
711
|
+
B.value && (i === "row" ? ee.value = Math.max(
|
|
712
|
+
B.value.top,
|
|
713
|
+
Math.min(B.value.bottom, ee.value + f)
|
|
714
714
|
) : te.value = Math.max(
|
|
715
|
-
|
|
716
|
-
Math.min(
|
|
715
|
+
B.value.left,
|
|
716
|
+
Math.min(B.value.right, te.value + f)
|
|
717
717
|
));
|
|
718
718
|
}
|
|
719
719
|
function Ye() {
|
|
@@ -722,19 +722,19 @@ function In(t, x) {
|
|
|
722
722
|
Fe(t.session);
|
|
723
723
|
return;
|
|
724
724
|
}
|
|
725
|
-
|
|
725
|
+
z = void 0, r.value = !1, de(), Q(), g.value = void 0, ne.value = [], $.value = "", N(), m.value = he(), y.value = { id: t.identity?.id ?? "excel-template", name: t.identity?.name ?? "Excel 业务模板" }, o.reset(), p.value = "table", me(), u.value++, A.accept(), I.value = "";
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
728
|
function Ze() {
|
|
729
729
|
ve.value && (G.value = !0, I.value = "");
|
|
730
730
|
}
|
|
731
731
|
async function et() {
|
|
732
|
-
if (!(
|
|
732
|
+
if (!(q.value || !g.value || r.value) && (G.value = !0, I.value = "", !!ue.value.ok)) {
|
|
733
733
|
O.value = !0;
|
|
734
734
|
try {
|
|
735
|
-
const i = { ...y.value, ...t.lockId && t.identity ? { id: t.identity.id } : {} },
|
|
736
|
-
if (t.accept && !await t.accept(
|
|
737
|
-
t.accept || x(
|
|
735
|
+
const i = { ...y.value, ...t.lockId && t.identity ? { id: t.identity.id } : {} }, f = p.value === "regions" ? bt(g.value, o.recipe.value, t.datasets, i) : mt(g.value, m.value, t.datasets, i), F = p.value === "regions" ? ht(g.value, o.recipe.value, i) : yt(g.value, m.value, i), D = { ...f, session: F }, ge = A.snapshot();
|
|
736
|
+
if (t.accept && !await t.accept(D) || t.readonly || ge !== A.snapshot() && A.pending.value) return;
|
|
737
|
+
t.accept || x(D), N(), A.accept(), X.value = !0;
|
|
738
738
|
} catch (i) {
|
|
739
739
|
I.value = Ce(i);
|
|
740
740
|
} finally {
|
|
@@ -742,16 +742,16 @@ function In(t, x) {
|
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
return kt({ key: () => "excel", baseline: () => "declarations-only", pending: () =>
|
|
746
|
-
const
|
|
747
|
-
if (!
|
|
748
|
-
Z(
|
|
745
|
+
return kt({ key: () => "excel", baseline: () => "declarations-only", pending: () => A.pending.value || r.value, snapshot: () => JSON.stringify(M()), restore(i, f, F) {
|
|
746
|
+
const D = JSON.parse(i);
|
|
747
|
+
if (!D.recipe || !D.regions || !Array.isArray(D.cached?.table) || !Array.isArray(D.cached?.regions)) throw new Error("Invalid Excel mapping draft");
|
|
748
|
+
Z(D), r.value = F?.pending !== !1, z = r.value ? D : void 0, r.value || A.accept();
|
|
749
749
|
} }), {
|
|
750
750
|
recoveredMapping: r,
|
|
751
|
-
imported:
|
|
751
|
+
imported: g,
|
|
752
752
|
mode: p,
|
|
753
753
|
regionBindings: o,
|
|
754
|
-
pendingLocalChanges: S(() =>
|
|
754
|
+
pendingLocalChanges: S(() => A.pending.value || r.value),
|
|
755
755
|
recipe: m,
|
|
756
756
|
identity: y,
|
|
757
757
|
sourceName: $,
|
|
@@ -762,12 +762,12 @@ function In(t, x) {
|
|
|
762
762
|
applied: X,
|
|
763
763
|
row: ee,
|
|
764
764
|
column: te,
|
|
765
|
-
mappingPage:
|
|
765
|
+
mappingPage: _,
|
|
766
766
|
m: b,
|
|
767
|
-
disabled:
|
|
767
|
+
disabled: q,
|
|
768
768
|
canCheck: ve,
|
|
769
769
|
sheet: ie,
|
|
770
|
-
sourceRange:
|
|
770
|
+
sourceRange: B,
|
|
771
771
|
dataset: we,
|
|
772
772
|
window: Ie,
|
|
773
773
|
validation: ue,
|
|
@@ -776,10 +776,10 @@ function In(t, x) {
|
|
|
776
776
|
guidance: Y,
|
|
777
777
|
locateIssue: ke,
|
|
778
778
|
mappings: $e,
|
|
779
|
-
rowKeys:
|
|
779
|
+
rowKeys: _e,
|
|
780
780
|
selection: xe,
|
|
781
781
|
cancel: de,
|
|
782
|
-
importFile:
|
|
782
|
+
importFile: We,
|
|
783
783
|
chooseSheet: He,
|
|
784
784
|
chooseDataset: qe,
|
|
785
785
|
chooseRow: Oe,
|
|
@@ -810,7 +810,7 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
810
810
|
}, Bn = {
|
|
811
811
|
key: 3,
|
|
812
812
|
class: "mr-binding-placeholder"
|
|
813
|
-
}, Nn = ["disabled"], An = { class: "mr-binding-sourcebar" }, Ln = ["value", "aria-label", "disabled"], Pn = ["value"],
|
|
813
|
+
}, Nn = ["disabled"], An = { class: "mr-binding-sourcebar" }, Ln = ["value", "aria-label", "disabled"], Pn = ["value"], _n = ["aria-label"], Wn = ["aria-pressed", "disabled"], Hn = ["aria-pressed", "disabled"], qn = { class: "mr-binding-range" }, On = { class: "mr-binding-sample-note" }, Vn = { class: "mr-binding-layout" }, Jn = { class: "mr-binding-source" }, Un = { class: "mr-binding-grid-heading" }, jn = ["aria-label"], Gn = { class: "mr-binding-grid" }, Xn = ["data-region"], Qn = { scope: "row" }, Yn = ["data-source-row", "aria-label", "aria-pressed", "disabled", "onPointerdown", "onPointerenter", "onKeydown"], Zn = ["rowspan", "colspan", "title", "data-source-cell", "tabindex", "aria-label", "aria-selected", "onPointerdown", "onPointerenter", "onKeydown"], ea = {
|
|
814
814
|
key: 1,
|
|
815
815
|
class: "mr-binding-grid-footer"
|
|
816
816
|
}, ta = { class: "mr-binding-window" }, na = ["aria-label", "disabled"], aa = ["min", "max", "value", "aria-label"], la = ["aria-label", "disabled"], oa = { class: "mr-binding-window" }, ia = ["aria-label", "disabled"], sa = ["min", "max", "value", "aria-label"], ra = ["aria-label", "disabled"], ua = { class: "mr-binding-inspector" }, da = ["disabled"], ca = { class: "mr-binding-group" }, va = ["data-role"], ga = { key: 0 }, fa = ["aria-label", "data-binding-control", "title", "disabled", "onClick"], ba = ["aria-label", "onClick"], ma = {
|
|
@@ -832,7 +832,7 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
832
832
|
}, Sa = ["data-binding-control", "aria-label", "value", "onChange"], Ka = { value: "" }, Ea = ["value"], Fa = { key: 0 }, Da = {
|
|
833
833
|
key: 3,
|
|
834
834
|
class: "mr-binding-map-pages"
|
|
835
|
-
}, Ta = ["disabled", "aria-label"], za = ["disabled", "aria-label"], Ba = ["disabled"], Na = { class: "mr-binding-group" }, Aa = { class: "mr-binding-label" }, La = ["value", "readonly"], Pa = { class: "mr-binding-label" },
|
|
835
|
+
}, Ta = ["disabled", "aria-label"], za = ["disabled", "aria-label"], Ba = ["disabled"], Na = { class: "mr-binding-group" }, Aa = { class: "mr-binding-label" }, La = ["value", "readonly"], Pa = { class: "mr-binding-label" }, _a = ["value"], Wa = {
|
|
836
836
|
key: 0,
|
|
837
837
|
class: "mr-binding-issues",
|
|
838
838
|
open: ""
|
|
@@ -855,12 +855,12 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
855
855
|
messages: {}
|
|
856
856
|
},
|
|
857
857
|
emits: ["apply", "dirty"],
|
|
858
|
-
setup(t, { expose: x, emit:
|
|
859
|
-
const m = t, p =
|
|
858
|
+
setup(t, { expose: x, emit: g }) {
|
|
859
|
+
const m = t, p = g, o = In(m, (h) => p("apply", h)), {
|
|
860
860
|
imported: E,
|
|
861
861
|
mode: C,
|
|
862
862
|
regionBindings: R,
|
|
863
|
-
recipe:
|
|
863
|
+
recipe: N,
|
|
864
864
|
identity: j,
|
|
865
865
|
sourceName: le,
|
|
866
866
|
sheetChoices: oe,
|
|
@@ -868,12 +868,12 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
868
868
|
loading: $,
|
|
869
869
|
checked: r,
|
|
870
870
|
row: M,
|
|
871
|
-
column:
|
|
871
|
+
column: z,
|
|
872
872
|
mappingPage: Z,
|
|
873
873
|
m: u,
|
|
874
|
-
disabled:
|
|
874
|
+
disabled: A,
|
|
875
875
|
sheet: ne,
|
|
876
|
-
sourceRange:
|
|
876
|
+
sourceRange: P,
|
|
877
877
|
dataset: Q,
|
|
878
878
|
window: I,
|
|
879
879
|
validation: J,
|
|
@@ -881,27 +881,27 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
881
881
|
rowKeys: X,
|
|
882
882
|
selection: O
|
|
883
883
|
} = o;
|
|
884
|
-
re([o.pendingLocalChanges,
|
|
885
|
-
const ee = K(), te = K(),
|
|
884
|
+
re([o.pendingLocalChanges, N, j], () => p("dirty", o.pendingLocalChanges.value), { immediate: !0, deep: !0, flush: "sync" });
|
|
885
|
+
const ee = K(), te = K(), v = K(0), w = S(() => Math.max(1, Math.ceil(o.issueEntries.value.length / 12))), _ = S(() => o.issueEntries.value.slice(v.value * 12, (v.value + 1) * 12));
|
|
886
886
|
re(w, (h) => {
|
|
887
|
-
|
|
887
|
+
v.value = Math.min(v.value, h - 1);
|
|
888
888
|
}), re(o.focusTarget, async (h) => {
|
|
889
889
|
if (!h) return;
|
|
890
890
|
await Be();
|
|
891
891
|
const s = ye(h.target);
|
|
892
892
|
if (s && te.value?.querySelector(`td[data-source-cell="${s.top}:${s.left}"]`)?.scrollIntoView?.({ block: "nearest", inline: "nearest" }), C.value === "regions") return;
|
|
893
|
-
const a = h.target.control === "field" ? `field-${h.target.fieldIndex}` : h.target.control === "contract" ? "dataset" : h.target.control, k = te.value?.querySelector(`.mr-binding-table-editor [data-binding-control="${a}"]`), Y =
|
|
893
|
+
const a = h.target.control === "field" ? `field-${h.target.fieldIndex}` : h.target.control === "contract" ? "dataset" : h.target.control, k = te.value?.querySelector(`.mr-binding-table-editor [data-binding-control="${a}"]`), Y = A.value ? k?.closest("label") : k;
|
|
894
894
|
Y?.focus(), Y?.scrollIntoView?.({ block: "nearest" });
|
|
895
895
|
});
|
|
896
|
-
const b = K(!1),
|
|
896
|
+
const b = K(!1), q = ["title", "header", "detail", "footer"], ve = S(() => ({
|
|
897
897
|
title: u.value.titleRegion,
|
|
898
898
|
header: u.value.headerRegion,
|
|
899
899
|
detail: u.value.detailRegion,
|
|
900
900
|
footer: u.value.footerRegion
|
|
901
901
|
})), ie = S(
|
|
902
|
-
() => Math.max(1, Math.ceil(
|
|
902
|
+
() => Math.max(1, Math.ceil(N.value.fields.length / 12))
|
|
903
903
|
);
|
|
904
|
-
function
|
|
904
|
+
function B(h) {
|
|
905
905
|
return h.target.value;
|
|
906
906
|
}
|
|
907
907
|
function we(h) {
|
|
@@ -909,18 +909,18 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
909
909
|
a && o.importFile(a), s.value = "";
|
|
910
910
|
}
|
|
911
911
|
function Ie(h, s) {
|
|
912
|
-
h.button !== 0 ||
|
|
912
|
+
h.button !== 0 || A.value || (h.preventDefault(), b.value = !0, o.chooseRow(s, h.shiftKey), C.value === "regions" && P.value && (R.select(s, P.value.left, !1), R.select(s, P.value.right, !0)), h.currentTarget.focus());
|
|
913
913
|
}
|
|
914
914
|
function Me(h, s, a) {
|
|
915
|
-
C.value !== "regions" || h.button !== 0 ||
|
|
915
|
+
C.value !== "regions" || h.button !== 0 || A.value || (h.preventDefault(), b.value = !0, R.select(s, a, h.shiftKey), h.currentTarget.focus());
|
|
916
916
|
}
|
|
917
917
|
function Se(h, s, a) {
|
|
918
918
|
if (C.value !== "regions") return;
|
|
919
919
|
(h.key === " " || h.key === "Enter") && (h.preventDefault(), R.select(s, a, h.shiftKey));
|
|
920
920
|
const Y = { ArrowUp: [-1, 0], ArrowDown: [1, 0], ArrowLeft: [0, -1], ArrowRight: [0, 1] }[h.key];
|
|
921
|
-
if (!Y || !
|
|
921
|
+
if (!Y || !P.value) return;
|
|
922
922
|
h.preventDefault();
|
|
923
|
-
const ke = Math.max(
|
|
923
|
+
const ke = Math.max(P.value.top, Math.min(P.value.bottom, s + Y[0])), $e = Math.max(P.value.left, Math.min(P.value.right, a + Y[1]));
|
|
924
924
|
h.shiftKey && R.select(ke, $e, !0), h.currentTarget.closest("table")?.querySelector(`td[data-source-cell="${ke}:${$e}"]`)?.focus();
|
|
925
925
|
}
|
|
926
926
|
function ue(h, s) {
|
|
@@ -940,13 +940,13 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
940
940
|
].filter((a) => a !== void 0 && a !== "").join(" · ") : "";
|
|
941
941
|
}
|
|
942
942
|
function be(h, s) {
|
|
943
|
-
const a = Number(
|
|
944
|
-
!Number.isInteger(a) || !
|
|
945
|
-
|
|
946
|
-
Math.min(
|
|
947
|
-
) :
|
|
948
|
-
|
|
949
|
-
Math.min(
|
|
943
|
+
const a = Number(B(h));
|
|
944
|
+
!Number.isInteger(a) || !P.value || (s === "row" ? M.value = Math.max(
|
|
945
|
+
P.value.top,
|
|
946
|
+
Math.min(P.value.bottom, a)
|
|
947
|
+
) : z.value = Math.max(
|
|
948
|
+
P.value.left,
|
|
949
|
+
Math.min(P.value.right, a)
|
|
950
950
|
));
|
|
951
951
|
}
|
|
952
952
|
return x({
|
|
@@ -956,7 +956,7 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
956
956
|
importFile: o.importFile,
|
|
957
957
|
apply: o.apply,
|
|
958
958
|
cancel: o.cancel
|
|
959
|
-
}), (h, s) => (
|
|
959
|
+
}), (h, s) => (d(), c("section", {
|
|
960
960
|
ref_key: "element",
|
|
961
961
|
ref: te,
|
|
962
962
|
class: "mr-binding",
|
|
@@ -966,10 +966,10 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
966
966
|
onPointercancel: s[24] || (s[24] = (a) => b.value = !1),
|
|
967
967
|
onPointerleave: s[25] || (s[25] = (a) => b.value = !1)
|
|
968
968
|
}, [
|
|
969
|
-
e(o).recoveredMapping.value ? (
|
|
969
|
+
e(o).recoveredMapping.value ? (d(), c("p", Sn, l(e(u).recoveredMapping), 1)) : T("", !0),
|
|
970
970
|
n("header", Kn, [
|
|
971
971
|
n("div", En, [
|
|
972
|
-
W(
|
|
972
|
+
W(H, {
|
|
973
973
|
name: "file",
|
|
974
974
|
size: 17
|
|
975
975
|
}),
|
|
@@ -986,39 +986,39 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
986
986
|
disabled: t.readonly,
|
|
987
987
|
onChange: we
|
|
988
988
|
}, null, 40, Fn),
|
|
989
|
-
e($) ? (
|
|
989
|
+
e($) ? (d(), c("button", {
|
|
990
990
|
key: 0,
|
|
991
991
|
type: "button",
|
|
992
992
|
onClick: s[0] || (s[0] = //@ts-ignore
|
|
993
993
|
(...a) => e(o).cancel && e(o).cancel(...a))
|
|
994
|
-
}, l(e(u).cancel), 1)) : (
|
|
994
|
+
}, l(e(u).cancel), 1)) : (d(), c("button", {
|
|
995
995
|
key: 1,
|
|
996
996
|
type: "button",
|
|
997
997
|
disabled: t.readonly,
|
|
998
998
|
onClick: s[1] || (s[1] = (a) => ee.value?.click())
|
|
999
999
|
}, [
|
|
1000
|
-
W(
|
|
1000
|
+
W(H, {
|
|
1001
1001
|
name: "upload",
|
|
1002
1002
|
size: 14
|
|
1003
1003
|
}),
|
|
1004
|
-
|
|
1004
|
+
L(l(e(E) ? e(u).replace : e(u).upload), 1)
|
|
1005
1005
|
], 8, Dn))
|
|
1006
1006
|
]),
|
|
1007
|
-
e(y) ? (
|
|
1008
|
-
e($) ? (
|
|
1007
|
+
e(y) ? (d(), c("div", Tn, l(e(y)), 1)) : T("", !0),
|
|
1008
|
+
e($) ? (d(), c("div", zn, [
|
|
1009
1009
|
s[26] || (s[26] = n("span", { class: "mr-binding-loader" }, null, -1)),
|
|
1010
|
-
|
|
1011
|
-
])) : e(E) ? (
|
|
1010
|
+
L(l(e(u).loading), 1)
|
|
1011
|
+
])) : e(E) ? (d(), c(V, { key: 4 }, [
|
|
1012
1012
|
n("div", An, [
|
|
1013
1013
|
n("label", null, [
|
|
1014
|
-
|
|
1014
|
+
L(l(e(u).sheet), 1),
|
|
1015
1015
|
n("select", {
|
|
1016
|
-
value: e(
|
|
1016
|
+
value: e(N).sheet,
|
|
1017
1017
|
"aria-label": e(u).sheet,
|
|
1018
|
-
disabled: e(
|
|
1019
|
-
onChange: s[3] || (s[3] = (a) => e(o).chooseSheet(
|
|
1018
|
+
disabled: e(A),
|
|
1019
|
+
onChange: s[3] || (s[3] = (a) => e(o).chooseSheet(B(a)))
|
|
1020
1020
|
}, [
|
|
1021
|
-
(
|
|
1021
|
+
(d(!0), c(V, null, U(e(oe), (a) => (d(), c("option", {
|
|
1022
1022
|
key: a.name,
|
|
1023
1023
|
value: a.name
|
|
1024
1024
|
}, l(a.name), 9, Pn))), 128))
|
|
@@ -1032,22 +1032,22 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1032
1032
|
n("button", {
|
|
1033
1033
|
type: "button",
|
|
1034
1034
|
"aria-pressed": e(C) === "table",
|
|
1035
|
-
disabled: e(
|
|
1035
|
+
disabled: e(A),
|
|
1036
1036
|
onClick: s[4] || (s[4] = (a) => C.value = "table")
|
|
1037
|
-
}, l(e(u).tableMode), 9,
|
|
1037
|
+
}, l(e(u).tableMode), 9, Wn),
|
|
1038
1038
|
n("button", {
|
|
1039
1039
|
type: "button",
|
|
1040
1040
|
"aria-pressed": e(C) === "regions",
|
|
1041
|
-
disabled: e(
|
|
1041
|
+
disabled: e(A),
|
|
1042
1042
|
onClick: s[5] || (s[5] = (a) => C.value = "regions")
|
|
1043
1043
|
}, [
|
|
1044
|
-
W(
|
|
1044
|
+
W(H, {
|
|
1045
1045
|
name: "grid",
|
|
1046
1046
|
size: 12
|
|
1047
1047
|
}),
|
|
1048
|
-
|
|
1048
|
+
L(l(e(u).multiRegions), 1)
|
|
1049
1049
|
], 8, Hn)
|
|
1050
|
-
], 8,
|
|
1050
|
+
], 8, _n),
|
|
1051
1051
|
n("span", qn, l(e(ne)?.range) + " · " + l(e(ne)?.rowCount) + " × " + l(e(ne)?.columnCount), 1),
|
|
1052
1052
|
n("span", On, l(e(u).sourceOnly), 1)
|
|
1053
1053
|
]),
|
|
@@ -1057,7 +1057,7 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1057
1057
|
n("strong", null, l(e(u).source), 1),
|
|
1058
1058
|
n("span", null, l(e(C) === "regions" ? e(u).multiHint : e(u).sourceHint), 1)
|
|
1059
1059
|
]),
|
|
1060
|
-
e(I) ? (
|
|
1060
|
+
e(I) ? (d(), c("div", {
|
|
1061
1061
|
key: 0,
|
|
1062
1062
|
class: "mr-binding-grid-scroll",
|
|
1063
1063
|
"aria-label": e(u).source
|
|
@@ -1069,14 +1069,14 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1069
1069
|
class: "mr-binding-corner",
|
|
1070
1070
|
"aria-label": "#"
|
|
1071
1071
|
}, "#", -1)),
|
|
1072
|
-
(
|
|
1072
|
+
(d(!0), c(V, null, U(e(I).columns, (a) => (d(), c("th", {
|
|
1073
1073
|
key: a.column,
|
|
1074
1074
|
scope: "col"
|
|
1075
1075
|
}, l(a.name), 1))), 128))
|
|
1076
1076
|
])
|
|
1077
1077
|
]),
|
|
1078
1078
|
n("tbody", null, [
|
|
1079
|
-
(
|
|
1079
|
+
(d(!0), c(V, null, U(e(I).rows, (a) => (d(), c("tr", {
|
|
1080
1080
|
key: a.row,
|
|
1081
1081
|
"data-region": e(o).regionAt(a.row),
|
|
1082
1082
|
class: Re({
|
|
@@ -1089,13 +1089,13 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1089
1089
|
"data-source-row": a.row,
|
|
1090
1090
|
"aria-label": `${e(u).selectionLabel} ${a.row}`,
|
|
1091
1091
|
"aria-pressed": !!e(O) && a.row >= e(O).top && a.row <= e(O).bottom,
|
|
1092
|
-
disabled: e(
|
|
1092
|
+
disabled: e(A),
|
|
1093
1093
|
onPointerdown: (k) => Ie(k, a.row),
|
|
1094
1094
|
onPointerenter: (k) => b.value && e(o).chooseRow(a.row, !0),
|
|
1095
1095
|
onKeydown: (k) => ue(k, a.row)
|
|
1096
1096
|
}, l(a.row), 41, Yn)
|
|
1097
1097
|
]),
|
|
1098
|
-
(
|
|
1098
|
+
(d(!0), c(V, null, U(a.cells, (k) => (d(), c("td", {
|
|
1099
1099
|
key: k.column,
|
|
1100
1100
|
rowspan: k.rowSpan,
|
|
1101
1101
|
colspan: k.colSpan,
|
|
@@ -1118,10 +1118,10 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1118
1118
|
], 10, Xn))), 128))
|
|
1119
1119
|
])
|
|
1120
1120
|
])
|
|
1121
|
-
], 8, jn)) :
|
|
1122
|
-
e(I) ? (
|
|
1121
|
+
], 8, jn)) : T("", !0),
|
|
1122
|
+
e(I) ? (d(), c("footer", ea, [
|
|
1123
1123
|
n("span", null, [
|
|
1124
|
-
|
|
1124
|
+
L(l(e(u).selected) + " ", 1),
|
|
1125
1125
|
n("strong", null, l(e(C) === "regions" ? e(R).selection.value || "—" : e(O) ? `${e(O).top}–${e(O).bottom}` : "—"), 1)
|
|
1126
1126
|
]),
|
|
1127
1127
|
n("div", ta, [
|
|
@@ -1131,13 +1131,13 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1131
1131
|
disabled: e(I).top <= e(I).source.top,
|
|
1132
1132
|
onClick: s[6] || (s[6] = (a) => e(o).moveWindow("row", -24))
|
|
1133
1133
|
}, [
|
|
1134
|
-
W(
|
|
1134
|
+
W(H, {
|
|
1135
1135
|
name: "chevron-left",
|
|
1136
1136
|
size: 13
|
|
1137
1137
|
})
|
|
1138
1138
|
], 8, na),
|
|
1139
1139
|
n("label", null, [
|
|
1140
|
-
|
|
1140
|
+
L(l(e(u).rowStart), 1),
|
|
1141
1141
|
n("input", {
|
|
1142
1142
|
type: "number",
|
|
1143
1143
|
min: e(I).source.top,
|
|
@@ -1153,7 +1153,7 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1153
1153
|
disabled: e(I).bottom >= e(I).source.bottom,
|
|
1154
1154
|
onClick: s[8] || (s[8] = (a) => e(o).moveWindow("row", 24))
|
|
1155
1155
|
}, [
|
|
1156
|
-
W(
|
|
1156
|
+
W(H, {
|
|
1157
1157
|
name: "chevron-right",
|
|
1158
1158
|
size: 13
|
|
1159
1159
|
})
|
|
@@ -1166,18 +1166,18 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1166
1166
|
disabled: e(I).left <= e(I).source.left,
|
|
1167
1167
|
onClick: s[9] || (s[9] = (a) => e(o).moveWindow("column", -12))
|
|
1168
1168
|
}, [
|
|
1169
|
-
W(
|
|
1169
|
+
W(H, {
|
|
1170
1170
|
name: "chevron-left",
|
|
1171
1171
|
size: 13
|
|
1172
1172
|
})
|
|
1173
1173
|
], 8, ia),
|
|
1174
1174
|
n("label", null, [
|
|
1175
|
-
|
|
1175
|
+
L(l(e(u).columnStart), 1),
|
|
1176
1176
|
n("input", {
|
|
1177
1177
|
type: "number",
|
|
1178
1178
|
min: e(I).source.left,
|
|
1179
1179
|
max: e(I).source.right,
|
|
1180
|
-
value: e(
|
|
1180
|
+
value: e(z),
|
|
1181
1181
|
"aria-label": e(u).columnStart,
|
|
1182
1182
|
onChange: s[10] || (s[10] = (a) => be(a, "column"))
|
|
1183
1183
|
}, null, 40, sa)
|
|
@@ -1188,42 +1188,42 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1188
1188
|
disabled: e(I).right >= e(I).source.right,
|
|
1189
1189
|
onClick: s[11] || (s[11] = (a) => e(o).moveWindow("column", 12))
|
|
1190
1190
|
}, [
|
|
1191
|
-
W(
|
|
1191
|
+
W(H, {
|
|
1192
1192
|
name: "chevron-right",
|
|
1193
1193
|
size: 13
|
|
1194
1194
|
})
|
|
1195
1195
|
], 8, ra)
|
|
1196
1196
|
])
|
|
1197
|
-
])) :
|
|
1197
|
+
])) : T("", !0)
|
|
1198
1198
|
]),
|
|
1199
1199
|
n("div", ua, [
|
|
1200
|
-
e(C) === "regions" ? (
|
|
1200
|
+
e(C) === "regions" ? (d(), ot(Cn, {
|
|
1201
1201
|
key: 0,
|
|
1202
1202
|
controller: e(R),
|
|
1203
1203
|
datasets: t.datasets,
|
|
1204
|
-
disabled: e(
|
|
1204
|
+
disabled: e(A),
|
|
1205
1205
|
messages: e(u)
|
|
1206
|
-
}, null, 8, ["controller", "datasets", "disabled", "messages"])) :
|
|
1206
|
+
}, null, 8, ["controller", "datasets", "disabled", "messages"])) : T("", !0),
|
|
1207
1207
|
Ne(n("fieldset", {
|
|
1208
|
-
disabled: e(
|
|
1208
|
+
disabled: e(A),
|
|
1209
1209
|
class: "mr-binding-table-editor"
|
|
1210
1210
|
}, [
|
|
1211
1211
|
n("section", ca, [
|
|
1212
1212
|
n("h3", null, [
|
|
1213
1213
|
s[29] || (s[29] = n("b", null, "1", -1)),
|
|
1214
|
-
|
|
1214
|
+
L(l(e(u).regionLegend), 1)
|
|
1215
1215
|
]),
|
|
1216
|
-
(
|
|
1216
|
+
(d(), c(V, null, U(q, (a) => n("div", {
|
|
1217
1217
|
key: a,
|
|
1218
1218
|
class: "mr-binding-region",
|
|
1219
1219
|
"data-role": a
|
|
1220
1220
|
}, [
|
|
1221
1221
|
n("div", null, [
|
|
1222
1222
|
n("strong", null, [
|
|
1223
|
-
|
|
1224
|
-
a === "title" || a === "footer" ? (
|
|
1223
|
+
L(l(ve.value[a]), 1),
|
|
1224
|
+
a === "title" || a === "footer" ? (d(), c("small", ga, l(e(u).optional), 1)) : T("", !0)
|
|
1225
1225
|
]),
|
|
1226
|
-
n("code", null, l(e(
|
|
1226
|
+
n("code", null, l(e(N).regions[a] || e(u).unnamed), 1)
|
|
1227
1227
|
]),
|
|
1228
1228
|
n("button", {
|
|
1229
1229
|
type: "button",
|
|
@@ -1233,64 +1233,64 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1233
1233
|
disabled: !e(O),
|
|
1234
1234
|
onClick: (k) => e(o).markRegion(a)
|
|
1235
1235
|
}, [
|
|
1236
|
-
W(
|
|
1236
|
+
W(H, {
|
|
1237
1237
|
name: "arrow-right",
|
|
1238
1238
|
size: 13
|
|
1239
1239
|
})
|
|
1240
1240
|
], 8, fa),
|
|
1241
|
-
(a === "title" || a === "footer") && e(
|
|
1241
|
+
(a === "title" || a === "footer") && e(N).regions[a] ? (d(), c("button", {
|
|
1242
1242
|
key: 0,
|
|
1243
1243
|
type: "button",
|
|
1244
1244
|
"aria-label": `${e(u).clear} · ${ve.value[a]}`,
|
|
1245
1245
|
onClick: (k) => e(o).clearRegion(a)
|
|
1246
1246
|
}, [
|
|
1247
|
-
W(
|
|
1247
|
+
W(H, {
|
|
1248
1248
|
name: "close",
|
|
1249
1249
|
size: 13
|
|
1250
1250
|
})
|
|
1251
|
-
], 8, ba)) :
|
|
1251
|
+
], 8, ba)) : T("", !0)
|
|
1252
1252
|
], 8, va)), 64)),
|
|
1253
|
-
e(
|
|
1253
|
+
e(N).regions.footer ? (d(), c("p", ma, l(e(u).footerHint), 1)) : T("", !0)
|
|
1254
1254
|
]),
|
|
1255
1255
|
n("section", ha, [
|
|
1256
1256
|
n("h3", null, [
|
|
1257
1257
|
s[30] || (s[30] = n("b", null, "2", -1)),
|
|
1258
|
-
|
|
1258
|
+
L(l(e(u).mapping), 1),
|
|
1259
1259
|
n("span", null, l(e(J).mapped) + "/" + l(e(J).total), 1)
|
|
1260
1260
|
]),
|
|
1261
1261
|
n("label", ya, [
|
|
1262
|
-
|
|
1262
|
+
L(l(e(u).dataset), 1),
|
|
1263
1263
|
n("select", {
|
|
1264
1264
|
"data-binding-control": "dataset",
|
|
1265
|
-
value: e(
|
|
1265
|
+
value: e(N).dataset,
|
|
1266
1266
|
"aria-label": e(u).dataset,
|
|
1267
|
-
onChange: s[12] || (s[12] = (a) => e(o).chooseDataset(
|
|
1267
|
+
onChange: s[12] || (s[12] = (a) => e(o).chooseDataset(B(a)))
|
|
1268
1268
|
}, [
|
|
1269
1269
|
n("option", wa, l(e(u).chooseDataset), 1),
|
|
1270
|
-
(
|
|
1270
|
+
(d(!0), c(V, null, U(t.datasets, (a) => (d(), c("option", {
|
|
1271
1271
|
key: a.id,
|
|
1272
1272
|
value: a.id
|
|
1273
1273
|
}, l(a.label || a.id), 9, ka))), 128))
|
|
1274
1274
|
], 40, pa)
|
|
1275
1275
|
]),
|
|
1276
|
-
t.datasets.length ?
|
|
1277
|
-
e(Q) ? (
|
|
1278
|
-
|
|
1276
|
+
t.datasets.length ? T("", !0) : (d(), c("p", $a, l(e(u).noContract), 1)),
|
|
1277
|
+
e(Q) ? (d(), c("label", xa, [
|
|
1278
|
+
L(l(e(u).rowKey), 1),
|
|
1279
1279
|
n("select", {
|
|
1280
1280
|
"data-binding-control": "rowKey",
|
|
1281
|
-
value: e(
|
|
1281
|
+
value: e(N).rowKey,
|
|
1282
1282
|
"aria-label": e(u).rowKey,
|
|
1283
|
-
onChange: s[13] || (s[13] = (a) => e(o).setRowKey(
|
|
1283
|
+
onChange: s[13] || (s[13] = (a) => e(o).setRowKey(B(a)))
|
|
1284
1284
|
}, [
|
|
1285
1285
|
n("option", Ra, l(e(u).chooseRowKey), 1),
|
|
1286
|
-
(
|
|
1286
|
+
(d(!0), c(V, null, U(e(X), (a) => (d(), c("option", {
|
|
1287
1287
|
key: a.field,
|
|
1288
1288
|
value: a.field
|
|
1289
1289
|
}, l(a.label || a.field) + " · " + l(a.field), 9, Ia))), 128))
|
|
1290
1290
|
], 40, Ca)
|
|
1291
|
-
])) :
|
|
1292
|
-
e(Q) ? (
|
|
1293
|
-
(
|
|
1291
|
+
])) : T("", !0),
|
|
1292
|
+
e(Q) ? (d(), c("div", Ma, [
|
|
1293
|
+
(d(!0), c(V, null, U(e(G), (a) => (d(), c("label", {
|
|
1294
1294
|
key: a.index,
|
|
1295
1295
|
class: "mr-binding-map",
|
|
1296
1296
|
tabindex: "-1"
|
|
@@ -1301,26 +1301,26 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1301
1301
|
"data-binding-control": `field-${a.index}`,
|
|
1302
1302
|
"aria-label": `${e(u).physical} ${a.physical} · ${e(u).business}`,
|
|
1303
1303
|
value: a.field,
|
|
1304
|
-
onChange: (k) => e(o).setMapping(a.index,
|
|
1304
|
+
onChange: (k) => e(o).setMapping(a.index, B(k))
|
|
1305
1305
|
}, [
|
|
1306
1306
|
n("option", Ka, l(e(u).chooseField), 1),
|
|
1307
|
-
(
|
|
1307
|
+
(d(!0), c(V, null, U(e(Q).fields, (k) => (d(), c("option", {
|
|
1308
1308
|
key: k.field,
|
|
1309
1309
|
value: k.field
|
|
1310
1310
|
}, l(k.label || k.field) + " · " + l(k.field), 9, Ea))), 128))
|
|
1311
1311
|
], 40, Sa),
|
|
1312
|
-
a.field ? (
|
|
1312
|
+
a.field ? (d(), c("small", Fa, l(fe(a.field)), 1)) : T("", !0)
|
|
1313
1313
|
])
|
|
1314
1314
|
]))), 128))
|
|
1315
|
-
])) :
|
|
1316
|
-
e(Q) && ie.value > 1 ? (
|
|
1315
|
+
])) : T("", !0),
|
|
1316
|
+
e(Q) && ie.value > 1 ? (d(), c("div", Da, [
|
|
1317
1317
|
n("button", {
|
|
1318
1318
|
type: "button",
|
|
1319
1319
|
disabled: e(Z) <= 0,
|
|
1320
1320
|
"aria-label": e(u).previousColumns,
|
|
1321
1321
|
onClick: s[14] || (s[14] = (a) => Z.value--)
|
|
1322
1322
|
}, [
|
|
1323
|
-
W(
|
|
1323
|
+
W(H, {
|
|
1324
1324
|
name: "chevron-left",
|
|
1325
1325
|
size: 13
|
|
1326
1326
|
})
|
|
@@ -1332,44 +1332,44 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1332
1332
|
"aria-label": e(u).nextColumns,
|
|
1333
1333
|
onClick: s[15] || (s[15] = (a) => Z.value++)
|
|
1334
1334
|
}, [
|
|
1335
|
-
W(
|
|
1335
|
+
W(H, {
|
|
1336
1336
|
name: "chevron-right",
|
|
1337
1337
|
size: 13
|
|
1338
1338
|
})
|
|
1339
1339
|
], 8, za)
|
|
1340
|
-
])) :
|
|
1340
|
+
])) : T("", !0)
|
|
1341
1341
|
])
|
|
1342
1342
|
], 8, da), [
|
|
1343
1343
|
[it, e(C) === "table"]
|
|
1344
1344
|
]),
|
|
1345
|
-
n("fieldset", { disabled: e(
|
|
1345
|
+
n("fieldset", { disabled: e(A) }, [
|
|
1346
1346
|
n("section", Na, [
|
|
1347
1347
|
n("h3", null, l(e(u).identity), 1),
|
|
1348
1348
|
n("label", Aa, [
|
|
1349
|
-
|
|
1349
|
+
L(l(e(u).templateId), 1),
|
|
1350
1350
|
n("input", {
|
|
1351
1351
|
value: t.lockId ? m.identity?.id ?? e(j).id : e(j).id,
|
|
1352
1352
|
autocomplete: "off",
|
|
1353
1353
|
readonly: t.lockId,
|
|
1354
|
-
onInput: s[16] || (s[16] = (a) => e(o).setIdentity("id",
|
|
1354
|
+
onInput: s[16] || (s[16] = (a) => e(o).setIdentity("id", B(a)))
|
|
1355
1355
|
}, null, 40, La)
|
|
1356
1356
|
]),
|
|
1357
1357
|
n("label", Pa, [
|
|
1358
|
-
|
|
1358
|
+
L(l(e(u).templateName), 1),
|
|
1359
1359
|
n("input", {
|
|
1360
1360
|
value: e(j).name,
|
|
1361
1361
|
autocomplete: "off",
|
|
1362
|
-
onInput: s[17] || (s[17] = (a) => e(o).setIdentity("name",
|
|
1363
|
-
}, null, 40,
|
|
1362
|
+
onInput: s[17] || (s[17] = (a) => e(o).setIdentity("name", B(a)))
|
|
1363
|
+
}, null, 40, _a)
|
|
1364
1364
|
])
|
|
1365
1365
|
])
|
|
1366
1366
|
], 8, Ba)
|
|
1367
1367
|
])
|
|
1368
1368
|
]),
|
|
1369
|
-
e(r) && e(J).issues.length ? (
|
|
1369
|
+
e(r) && e(J).issues.length ? (d(), c("details", Wa, [
|
|
1370
1370
|
n("summary", null, l(e(u).issues) + " · " + l(e(J).issues.length) + " " + l(e(u).errors), 1),
|
|
1371
1371
|
n("ul", null, [
|
|
1372
|
-
(
|
|
1372
|
+
(d(!0), c(V, null, U(_.value, (a) => (d(), c("li", {
|
|
1373
1373
|
key: `${a.issue.path}:${a.issue.message}`
|
|
1374
1374
|
}, [
|
|
1375
1375
|
n("button", {
|
|
@@ -1380,58 +1380,58 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1380
1380
|
}, [
|
|
1381
1381
|
n("strong", null, l(a.label), 1),
|
|
1382
1382
|
n("span", null, l(a.message), 1),
|
|
1383
|
-
W(
|
|
1383
|
+
W(H, {
|
|
1384
1384
|
name: "arrow-right",
|
|
1385
1385
|
size: 12
|
|
1386
1386
|
})
|
|
1387
1387
|
], 8, Ha)
|
|
1388
1388
|
]))), 128))
|
|
1389
1389
|
]),
|
|
1390
|
-
w.value > 1 ? (
|
|
1390
|
+
w.value > 1 ? (d(), c("div", qa, [
|
|
1391
1391
|
n("button", {
|
|
1392
1392
|
type: "button",
|
|
1393
|
-
disabled:
|
|
1393
|
+
disabled: v.value === 0,
|
|
1394
1394
|
"aria-label": e(u).previousIssues,
|
|
1395
|
-
onClick: s[18] || (s[18] = (a) =>
|
|
1395
|
+
onClick: s[18] || (s[18] = (a) => v.value--)
|
|
1396
1396
|
}, [
|
|
1397
|
-
W(
|
|
1397
|
+
W(H, {
|
|
1398
1398
|
name: "chevron-left",
|
|
1399
1399
|
size: 12
|
|
1400
1400
|
})
|
|
1401
1401
|
], 8, Oa),
|
|
1402
|
-
n("span", null, l(
|
|
1402
|
+
n("span", null, l(v.value + 1) + "/" + l(w.value), 1),
|
|
1403
1403
|
n("button", {
|
|
1404
1404
|
type: "button",
|
|
1405
|
-
disabled:
|
|
1405
|
+
disabled: v.value + 1 >= w.value,
|
|
1406
1406
|
"aria-label": e(u).nextIssues,
|
|
1407
|
-
onClick: s[19] || (s[19] = (a) =>
|
|
1407
|
+
onClick: s[19] || (s[19] = (a) => v.value++)
|
|
1408
1408
|
}, [
|
|
1409
|
-
W(
|
|
1409
|
+
W(H, {
|
|
1410
1410
|
name: "chevron-right",
|
|
1411
1411
|
size: 12
|
|
1412
1412
|
})
|
|
1413
1413
|
], 8, Va)
|
|
1414
|
-
])) :
|
|
1415
|
-
])) :
|
|
1416
|
-
e(E).warnings.length ? (
|
|
1414
|
+
])) : T("", !0)
|
|
1415
|
+
])) : T("", !0),
|
|
1416
|
+
e(E).warnings.length ? (d(), c("details", Ja, [
|
|
1417
1417
|
n("summary", null, l(e(u).inspectWarning) + " · " + l(e(E).warnings.length), 1),
|
|
1418
1418
|
n("ul", null, [
|
|
1419
|
-
(
|
|
1419
|
+
(d(!0), c(V, null, U(e(E).warnings, (a, k) => (d(), c("li", { key: k }, l(a), 1))), 128))
|
|
1420
1420
|
])
|
|
1421
|
-
])) :
|
|
1421
|
+
])) : T("", !0),
|
|
1422
1422
|
n("footer", Ua, [
|
|
1423
1423
|
n("span", {
|
|
1424
1424
|
class: Re({ "is-ready": e(J).ok }),
|
|
1425
1425
|
role: "status",
|
|
1426
1426
|
title: e(o).guidance.value
|
|
1427
1427
|
}, l(e(o).guidance.value), 11, ja),
|
|
1428
|
-
e(o).pendingLocalChanges.value ? (
|
|
1428
|
+
e(o).pendingLocalChanges.value ? (d(), c("button", {
|
|
1429
1429
|
key: 0,
|
|
1430
1430
|
type: "button",
|
|
1431
|
-
disabled: e(
|
|
1431
|
+
disabled: e(A),
|
|
1432
1432
|
onClick: s[20] || (s[20] = //@ts-ignore
|
|
1433
1433
|
(...a) => e(o).restoreDraft && e(o).restoreDraft(...a))
|
|
1434
|
-
}, l(e(u).restoreDraft), 9, Ga)) :
|
|
1434
|
+
}, l(e(u).restoreDraft), 9, Ga)) : T("", !0),
|
|
1435
1435
|
n("button", {
|
|
1436
1436
|
type: "button",
|
|
1437
1437
|
disabled: !e(o).canCheck.value,
|
|
@@ -1441,13 +1441,13 @@ const Mn = ["aria-label", "aria-busy"], Sn = {
|
|
|
1441
1441
|
n("button", {
|
|
1442
1442
|
type: "button",
|
|
1443
1443
|
class: "mr-binding-primary",
|
|
1444
|
-
disabled: e(
|
|
1444
|
+
disabled: e(A) || !e(J).ok,
|
|
1445
1445
|
title: e(o).guidance.value,
|
|
1446
1446
|
onClick: s[22] || (s[22] = //@ts-ignore
|
|
1447
1447
|
(...a) => e(o).apply && e(o).apply(...a))
|
|
1448
1448
|
}, l(e(u).apply), 9, Qa)
|
|
1449
1449
|
])
|
|
1450
|
-
], 64)) : (
|
|
1450
|
+
], 64)) : (d(), c("div", Bn, [
|
|
1451
1451
|
s[27] || (s[27] = n("svg", {
|
|
1452
1452
|
viewBox: "0 0 80 80",
|
|
1453
1453
|
fill: "none",
|