@septkit/ui 0.0.44 → 0.0.46
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/dist/dialog/dialog-host.vue_vue_type_script_setup_true_lang.js +45 -16
- package/dist/dialog/feedback-dialog.js +5 -0
- package/dist/dialog/feedback-dialog.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/dialog/index.js +4 -3
- package/dist/dialog/use-dialog-host.js +31 -8
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/circle-alert.js +26 -0
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/list-tree.js +26 -0
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/triangle-alert.js +18 -0
- package/dist/index.d.ts +83 -27
- package/dist/index.js +17 -16
- package/dist/merge/build-view-model.js +14 -0
- package/dist/merge/element-detail.vue_vue_type_script_setup_true_lang.js +15 -16
- package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +184 -145
- package/dist/ui.css +1 -1
- package/package.json +1 -1
|
@@ -2,24 +2,25 @@ import e from "../button/button.js";
|
|
|
2
2
|
import { SplitterGroup_default as t } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterGroup.js";
|
|
3
3
|
import { SplitterPanel_default as n } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterPanel.js";
|
|
4
4
|
import { SplitterResizeHandle_default as r } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterResizeHandle.js";
|
|
5
|
-
import { StepperRoot_default as
|
|
6
|
-
import { StepperItem_default as
|
|
7
|
-
import { StepperIndicator_default as
|
|
8
|
-
import { StepperTitle_default as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
5
|
+
import { StepperRoot_default as i } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js";
|
|
6
|
+
import { StepperItem_default as a } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js";
|
|
7
|
+
import { StepperIndicator_default as o } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.js";
|
|
8
|
+
import { StepperTitle_default as ee } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js";
|
|
9
|
+
import te from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/arrow-right.js";
|
|
10
|
+
import ne from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/check.js";
|
|
11
|
+
import re from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/list-tree.js";
|
|
12
|
+
import ie from "../code/xml-diff.js";
|
|
12
13
|
import "../code/index.js";
|
|
13
|
-
import
|
|
14
|
-
import { buildDetail as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { useDocumentProgress as
|
|
19
|
-
import { useMergeSession as
|
|
20
|
-
import { Fragment as
|
|
14
|
+
import ae from "./element-detail.js";
|
|
15
|
+
import { buildDetail as oe, buildSummary as s } from "./build-view-model.js";
|
|
16
|
+
import se from "./merge-progress.js";
|
|
17
|
+
import ce from "./merge-summary.js";
|
|
18
|
+
import le from "./merge-tree.js";
|
|
19
|
+
import { useDocumentProgress as ue } from "./use-document-progress.js";
|
|
20
|
+
import { useMergeSession as de } from "./use-merge-session.js";
|
|
21
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, normalizeClass as _, onMounted as fe, openBlock as v, ref as y, renderList as pe, toDisplayString as b, unref as x, vModelCheckbox as me, vShow as he, watch as ge, withCtx as S, withDirectives as C } from "vue";
|
|
21
22
|
//#region lib/merge/merge-review.vue?vue&type=script&setup=true&lang.ts
|
|
22
|
-
var
|
|
23
|
+
var _e = { class: "flex h-full flex-col" }, ve = { class: "flex flex-wrap items-center justify-between gap-x-8 gap-y-3 border-b border-base-300 px-4 py-2.5" }, w = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "flex flex-col items-start gap-x-4 gap-y-1 text-xs md:flex-row md:items-center"
|
|
25
26
|
}, T = {
|
|
@@ -37,13 +38,13 @@ var S = { class: "flex h-full flex-col" }, C = { class: "flex flex-wrap items-ce
|
|
|
37
38
|
}, P = { key: 1 }, F = {
|
|
38
39
|
key: 0,
|
|
39
40
|
class: "border-b border-error/40 bg-error/10 p-2 text-xs whitespace-pre-wrap text-error"
|
|
40
|
-
},
|
|
41
|
+
}, ye = { class: "min-h-0 flex-1" }, be = { class: "h-full" }, xe = { class: "flex shrink-0 items-center gap-4 border-b border-base-300 px-3 py-1.5 text-xs" }, Se = { class: "flex cursor-pointer items-center gap-1.5" }, Ce = { class: "min-h-0 flex-1 overflow-y-auto" }, we = {
|
|
41
42
|
key: 2,
|
|
42
43
|
class: "grid h-full place-items-center p-6 text-center"
|
|
43
|
-
},
|
|
44
|
+
}, Te = { class: "flex flex-col items-center gap-1" }, Ee = {
|
|
44
45
|
key: 0,
|
|
45
46
|
class: "text-xs opacity-70"
|
|
46
|
-
},
|
|
47
|
+
}, De = { class: "flex items-center justify-end gap-2 border-t border-base-300 p-2" }, I = /*@__PURE__*/ g({
|
|
47
48
|
__name: "merge-review",
|
|
48
49
|
props: {
|
|
49
50
|
targetDocument: {},
|
|
@@ -57,176 +58,214 @@ var S = { class: "flex h-full flex-col" }, C = { class: "flex flex-wrap items-ce
|
|
|
57
58
|
target: {}
|
|
58
59
|
},
|
|
59
60
|
emits: ["applied", "close"],
|
|
60
|
-
setup(
|
|
61
|
-
let
|
|
61
|
+
setup(g, { emit: I }) {
|
|
62
|
+
let L = g, R = I, z = de(L), { structuralTree: B, previewXml: Oe, previewBeforeXml: ke, previewLoading: Ae } = z, { progress: je, history: Me, track: V } = ue(() => L.targetDocument.state), H = y("review"), U = y(!1), W = y(), G = y(), K = y(), q = y(), J = y(), Y = y(!0), X = y(), Ne = [
|
|
62
63
|
"Review",
|
|
63
64
|
"Confirm",
|
|
64
65
|
"Done"
|
|
65
|
-
],
|
|
66
|
+
], Z = l(() => ({
|
|
66
67
|
review: 0,
|
|
67
68
|
confirm: 1,
|
|
68
69
|
done: 2
|
|
69
|
-
})[
|
|
70
|
+
})[H.value]), Pe = l(() => {
|
|
70
71
|
let e = {};
|
|
71
|
-
for (let t of
|
|
72
|
+
for (let t of z.report.value?.groups ?? []) e[t.id] = z.decisionOf(t.id);
|
|
72
73
|
return e;
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
}), Fe = l(() => {
|
|
75
|
+
let e = B.value;
|
|
76
|
+
if (Y.value) return e.items;
|
|
77
|
+
let t = new Set(e.expanded);
|
|
78
|
+
function n(e) {
|
|
79
|
+
let r = [];
|
|
80
|
+
for (let i of e) {
|
|
81
|
+
if (!t.has(i.id)) continue;
|
|
82
|
+
let e = i.children ? n(i.children) : void 0;
|
|
83
|
+
r.push({
|
|
84
|
+
...i,
|
|
85
|
+
children: e?.length ? e : void 0
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return r;
|
|
89
|
+
}
|
|
90
|
+
return n(e.items);
|
|
91
|
+
}), Q = l(() => X.value ?? B.value.expanded);
|
|
92
|
+
ge(B, () => {
|
|
93
|
+
X.value = void 0;
|
|
94
|
+
}), fe(async () => {
|
|
95
|
+
W.value = "Analyzing template…", U.value = !0;
|
|
76
96
|
try {
|
|
77
|
-
await
|
|
97
|
+
await V(z.load());
|
|
78
98
|
} catch (e) {
|
|
79
|
-
|
|
99
|
+
G.value = e instanceof Error ? e.stack ?? e.message : String(e);
|
|
80
100
|
} finally {
|
|
81
|
-
|
|
101
|
+
U.value = !1;
|
|
82
102
|
}
|
|
83
103
|
});
|
|
84
104
|
function $() {
|
|
85
105
|
return {
|
|
86
|
-
sourceQuery:
|
|
87
|
-
targetQuery:
|
|
106
|
+
sourceQuery: L.sourceQuery,
|
|
107
|
+
targetQuery: L.targetDocument.query
|
|
88
108
|
};
|
|
89
109
|
}
|
|
90
|
-
|
|
91
|
-
let
|
|
110
|
+
function Ie() {
|
|
111
|
+
let e = B.value, t = new Set(e.expanded);
|
|
112
|
+
function n(r, i) {
|
|
113
|
+
for (let a of r) {
|
|
114
|
+
let r = (e.meta[a.id]?.change ?? "unchanged") !== "unchanged", o = i || r;
|
|
115
|
+
o && a.children?.length && t.add(a.id), a.children && n(a.children, o);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
n(e.items, !1), X.value = [...t];
|
|
119
|
+
}
|
|
120
|
+
async function Le(e) {
|
|
121
|
+
let t = B.value.index[e.id];
|
|
92
122
|
if (!t) return;
|
|
93
|
-
|
|
94
|
-
let n =
|
|
123
|
+
z.select(t), q.value = t.role === "primary" ? t.groupId : void 0;
|
|
124
|
+
let n = q.value ? z.report.value?.groups.find((e) => e.id === q.value) : void 0, r = t.node ? await oe(t.node, n, $()) : void 0;
|
|
95
125
|
if (r) {
|
|
96
|
-
let e = await
|
|
126
|
+
let e = await z.stagedAttributes(t.previewRef);
|
|
97
127
|
for (let t of r.attributes) t.editable && e[t.name] != null && (t.after = e[t.name]);
|
|
98
128
|
}
|
|
99
|
-
|
|
129
|
+
K.value = r;
|
|
100
130
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
131
|
+
function Re(e, t) {
|
|
132
|
+
z.setDecision(e, t);
|
|
103
133
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!
|
|
106
|
-
|
|
107
|
-
let n =
|
|
134
|
+
function ze(e, t) {
|
|
135
|
+
if (!q.value || !K.value) return;
|
|
136
|
+
z.setValue(q.value, e, t);
|
|
137
|
+
let n = K.value.attributes.find((t) => t.name === e);
|
|
108
138
|
n && (n.after = t);
|
|
109
139
|
}
|
|
110
|
-
async function
|
|
111
|
-
let e =
|
|
112
|
-
e && (
|
|
140
|
+
async function Be() {
|
|
141
|
+
let e = z.report.value;
|
|
142
|
+
e && (J.value = await s(e, z.decisionOf, z.editedValue, $()), H.value = "confirm");
|
|
113
143
|
}
|
|
114
|
-
async function
|
|
115
|
-
|
|
144
|
+
async function Ve() {
|
|
145
|
+
W.value = "Applying changes…", U.value = !0;
|
|
116
146
|
try {
|
|
117
|
-
await
|
|
147
|
+
await V(z.commit()), H.value = "done";
|
|
118
148
|
} catch (e) {
|
|
119
|
-
|
|
149
|
+
G.value = e instanceof Error ? e.stack ?? e.message : String(e);
|
|
120
150
|
} finally {
|
|
121
|
-
|
|
151
|
+
U.value = !1;
|
|
122
152
|
}
|
|
123
153
|
}
|
|
124
|
-
return (
|
|
125
|
-
|
|
126
|
-
"model-value":
|
|
154
|
+
return (oe, s) => (v(), f("div", _e, [
|
|
155
|
+
p("header", ve, [h(x(i), {
|
|
156
|
+
"model-value": Z.value + 1,
|
|
127
157
|
class: "flex items-center",
|
|
128
158
|
"aria-label": "Merge steps"
|
|
129
159
|
}, {
|
|
130
|
-
default:
|
|
160
|
+
default: S(() => [(v(), f(c, null, pe(Ne, (e, t) => (v(), f(c, { key: e }, [t > 0 ? (v(), f("div", {
|
|
131
161
|
key: 0,
|
|
132
|
-
class:
|
|
133
|
-
}, null, 2)) :
|
|
162
|
+
class: _(["mx-3 h-px w-8 transition-colors", t <= Z.value ? "bg-primary" : "bg-base-300"])
|
|
163
|
+
}, null, 2)) : d("", !0), h(x(a), {
|
|
134
164
|
step: t + 1,
|
|
135
165
|
class: "flex items-center gap-2"
|
|
136
166
|
}, {
|
|
137
|
-
default:
|
|
138
|
-
default:
|
|
167
|
+
default: S(() => [h(x(o), { class: _(["grid size-6 place-items-center rounded-full border text-xs font-semibold transition-colors", t < Z.value ? "border-primary bg-primary text-primary-content" : t === Z.value ? "border-primary text-primary" : "border-base-300 text-base-content/40"]) }, {
|
|
168
|
+
default: S(() => [t < Z.value ? (v(), u(x(ne), {
|
|
139
169
|
key: 0,
|
|
140
170
|
class: "size-3.5"
|
|
141
|
-
})) : (
|
|
171
|
+
})) : (v(), f(c, { key: 1 }, [m(b(t + 1), 1)], 64))]),
|
|
142
172
|
_: 2
|
|
143
|
-
}, 1032, ["class"]),
|
|
144
|
-
default:
|
|
173
|
+
}, 1032, ["class"]), h(x(ee), { class: _(["text-xs font-medium transition-colors", t === Z.value ? "text-base-content" : t < Z.value ? "text-base-content/70" : "text-base-content/40"]) }, {
|
|
174
|
+
default: S(() => [m(b(e), 1)]),
|
|
145
175
|
_: 2
|
|
146
176
|
}, 1032, ["class"])]),
|
|
147
177
|
_: 2
|
|
148
178
|
}, 1032, ["step"])], 64))), 64))]),
|
|
149
179
|
_: 1
|
|
150
|
-
}, 8, ["model-value"]),
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
180
|
+
}, 8, ["model-value"]), g.source || g.target ? (v(), f("div", w, [
|
|
181
|
+
g.source ? (v(), f("span", T, [
|
|
182
|
+
s[4] ||= p("span", { class: "text-[10px] font-medium uppercase tracking-wide text-base-content/45" }, " Source ", -1),
|
|
183
|
+
p("span", E, b(g.source.label), 1),
|
|
184
|
+
p("span", D, [
|
|
185
|
+
g.source.type ? (v(), f("span", O, b(g.source.type), 1)) : d("", !0),
|
|
186
|
+
g.source.type ? (v(), f("span", k, " · ")) : d("", !0),
|
|
187
|
+
m("v" + b(g.source.version || "0") + "." + b(g.source.revision || "0"), 1)
|
|
158
188
|
])
|
|
159
|
-
])) :
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
189
|
+
])) : d("", !0),
|
|
190
|
+
h(x(te), { class: "hidden size-4 shrink-0 text-base-content/40 md:block" }),
|
|
191
|
+
g.target ? (v(), f("span", A, [
|
|
192
|
+
s[5] ||= p("span", { class: "text-[10px] font-medium uppercase tracking-wide text-base-content/45" }, " Target ", -1),
|
|
193
|
+
p("span", j, b(g.target.label), 1),
|
|
194
|
+
p("span", M, [
|
|
195
|
+
g.target.type ? (v(), f("span", N, b(g.target.type), 1)) : d("", !0),
|
|
196
|
+
g.target.type ? (v(), f("span", P, " · ")) : d("", !0),
|
|
197
|
+
m("v" + b(g.target.version || "0") + "." + b(g.target.revision || "0"), 1)
|
|
168
198
|
])
|
|
169
|
-
])) :
|
|
170
|
-
])) :
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
199
|
+
])) : d("", !0)
|
|
200
|
+
])) : d("", !0)]),
|
|
201
|
+
G.value ? (v(), f("div", F, b(G.value), 1)) : d("", !0),
|
|
202
|
+
p("div", ye, [
|
|
203
|
+
U.value ? (v(), u(se, {
|
|
174
204
|
key: 0,
|
|
175
|
-
label:
|
|
176
|
-
progress:
|
|
177
|
-
history:
|
|
205
|
+
label: W.value,
|
|
206
|
+
progress: x(je),
|
|
207
|
+
history: x(Me)
|
|
178
208
|
}, null, 8, [
|
|
179
209
|
"label",
|
|
180
210
|
"progress",
|
|
181
211
|
"history"
|
|
182
|
-
])) :
|
|
183
|
-
|
|
212
|
+
])) : d("", !0),
|
|
213
|
+
C(p("div", be, [h(x(t), {
|
|
184
214
|
direction: "horizontal",
|
|
185
215
|
class: "h-full min-h-0"
|
|
186
216
|
}, {
|
|
187
|
-
default:
|
|
188
|
-
|
|
217
|
+
default: S(() => [
|
|
218
|
+
h(x(n), {
|
|
189
219
|
"default-size": 42,
|
|
190
|
-
class: "h-full
|
|
220
|
+
class: "flex h-full min-h-0 flex-col"
|
|
191
221
|
}, {
|
|
192
|
-
default:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
"onUpdate:
|
|
222
|
+
default: S(() => [p("div", xe, [p("button", {
|
|
223
|
+
type: "button",
|
|
224
|
+
class: "btn btn-ghost btn-xs ml-auto gap-1",
|
|
225
|
+
title: "Expand all differences",
|
|
226
|
+
onClick: Ie
|
|
227
|
+
}, [h(x(re), { class: "h-3.5 w-3.5" }), s[6] ||= p("span", null, "Expand diffs", -1)]), p("label", Se, [C(p("input", {
|
|
228
|
+
"onUpdate:modelValue": s[0] ||= (e) => Y.value = e,
|
|
229
|
+
type: "checkbox",
|
|
230
|
+
class: "checkbox checkbox-xs"
|
|
231
|
+
}, null, 512), [[me, Y.value]]), s[7] ||= p("span", null, "Context", -1)])]), p("div", Ce, [h(le, {
|
|
232
|
+
items: Fe.value,
|
|
233
|
+
meta: x(B).meta,
|
|
234
|
+
decisions: Pe.value,
|
|
235
|
+
"expanded-items": Q.value,
|
|
236
|
+
onSelect: Le,
|
|
237
|
+
"onUpdate:decision": Re
|
|
199
238
|
}, null, 8, [
|
|
200
239
|
"items",
|
|
201
240
|
"meta",
|
|
202
241
|
"decisions",
|
|
203
242
|
"expanded-items"
|
|
204
|
-
])]),
|
|
243
|
+
])])]),
|
|
205
244
|
_: 1
|
|
206
245
|
}),
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
default:
|
|
246
|
+
h(x(r), { class: "w-px bg-base-300" }),
|
|
247
|
+
h(x(n), { class: "h-full border-s border-base-300" }, {
|
|
248
|
+
default: S(() => [h(x(t), {
|
|
210
249
|
direction: "vertical",
|
|
211
250
|
class: "h-full"
|
|
212
251
|
}, {
|
|
213
|
-
default:
|
|
214
|
-
|
|
252
|
+
default: S(() => [
|
|
253
|
+
h(x(n), {
|
|
215
254
|
"default-size": 55,
|
|
216
255
|
class: "min-h-0 overflow-auto"
|
|
217
256
|
}, {
|
|
218
|
-
default:
|
|
219
|
-
detail:
|
|
220
|
-
onEdit:
|
|
257
|
+
default: S(() => [h(ae, {
|
|
258
|
+
detail: K.value,
|
|
259
|
+
onEdit: ze
|
|
221
260
|
}, null, 8, ["detail"])]),
|
|
222
261
|
_: 1
|
|
223
262
|
}),
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
default:
|
|
227
|
-
before:
|
|
228
|
-
after:
|
|
229
|
-
loading:
|
|
263
|
+
h(x(r), { class: "h-px bg-base-300" }),
|
|
264
|
+
h(x(n), { class: "min-h-0" }, {
|
|
265
|
+
default: S(() => [h(x(ie), {
|
|
266
|
+
before: x(ke),
|
|
267
|
+
after: x(Oe),
|
|
268
|
+
loading: x(Ae)
|
|
230
269
|
}, null, 8, [
|
|
231
270
|
"before",
|
|
232
271
|
"after",
|
|
@@ -241,65 +280,65 @@ var S = { class: "flex h-full flex-col" }, C = { class: "flex flex-wrap items-ce
|
|
|
241
280
|
})
|
|
242
281
|
]),
|
|
243
282
|
_: 1
|
|
244
|
-
})], 512), [[he, !
|
|
245
|
-
!
|
|
283
|
+
})], 512), [[he, !U.value && H.value === "review"]]),
|
|
284
|
+
!U.value && H.value === "confirm" && J.value ? (v(), u(ce, {
|
|
246
285
|
key: 1,
|
|
247
|
-
summary:
|
|
248
|
-
scenario:
|
|
249
|
-
verb:
|
|
286
|
+
summary: J.value,
|
|
287
|
+
scenario: g.scenario,
|
|
288
|
+
verb: g.verb
|
|
250
289
|
}, null, 8, [
|
|
251
290
|
"summary",
|
|
252
291
|
"scenario",
|
|
253
292
|
"verb"
|
|
254
|
-
])) :
|
|
255
|
-
!
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
])])) :
|
|
293
|
+
])) : d("", !0),
|
|
294
|
+
!U.value && H.value === "done" ? (v(), f("div", we, [p("div", Te, [
|
|
295
|
+
s[8] ||= p("span", { class: "text-3xl text-success" }, "✓", -1),
|
|
296
|
+
s[9] ||= p("p", { class: "font-medium" }, "Applied", -1),
|
|
297
|
+
J.value ? (v(), f("p", Ee, b(J.value.added.length) + " added · " + b(J.value.updated.length) + " updated · " + b(J.value.skipped.length) + " skipped ", 1)) : d("", !0)
|
|
298
|
+
])])) : d("", !0)
|
|
260
299
|
]),
|
|
261
|
-
|
|
300
|
+
p("footer", De, [H.value === "review" ? (v(), f(c, { key: 0 }, [h(e, {
|
|
262
301
|
variant: "ghost",
|
|
263
302
|
size: "sm",
|
|
264
|
-
onClick:
|
|
303
|
+
onClick: s[1] ||= (e) => R("close")
|
|
265
304
|
}, {
|
|
266
|
-
default:
|
|
305
|
+
default: S(() => [...s[10] ||= [m("Close", -1)]]),
|
|
267
306
|
_: 1
|
|
268
|
-
}),
|
|
307
|
+
}), h(e, {
|
|
269
308
|
color: "primary",
|
|
270
309
|
size: "sm",
|
|
271
|
-
disabled:
|
|
272
|
-
onClick:
|
|
310
|
+
disabled: U.value || !!G.value,
|
|
311
|
+
onClick: Be
|
|
273
312
|
}, {
|
|
274
|
-
default:
|
|
313
|
+
default: S(() => [...s[11] ||= [m(" Next: Confirm ", -1)]]),
|
|
275
314
|
_: 1
|
|
276
|
-
}, 8, ["disabled"])], 64)) :
|
|
315
|
+
}, 8, ["disabled"])], 64)) : H.value === "confirm" ? (v(), f(c, { key: 1 }, [h(e, {
|
|
277
316
|
variant: "ghost",
|
|
278
317
|
size: "sm",
|
|
279
|
-
disabled:
|
|
280
|
-
onClick:
|
|
318
|
+
disabled: U.value,
|
|
319
|
+
onClick: s[2] ||= (e) => H.value = "review"
|
|
281
320
|
}, {
|
|
282
|
-
default:
|
|
321
|
+
default: S(() => [...s[12] ||= [m("Back", -1)]]),
|
|
283
322
|
_: 1
|
|
284
|
-
}, 8, ["disabled"]),
|
|
323
|
+
}, 8, ["disabled"]), h(e, {
|
|
285
324
|
color: "primary",
|
|
286
325
|
size: "sm",
|
|
287
|
-
disabled:
|
|
288
|
-
onClick:
|
|
326
|
+
disabled: U.value,
|
|
327
|
+
onClick: Ve
|
|
289
328
|
}, {
|
|
290
|
-
default:
|
|
329
|
+
default: S(() => [...s[13] ||= [m("Apply", -1)]]),
|
|
291
330
|
_: 1
|
|
292
|
-
}, 8, ["disabled"])], 64)) : (
|
|
331
|
+
}, 8, ["disabled"])], 64)) : (v(), u(e, {
|
|
293
332
|
key: 2,
|
|
294
333
|
color: "primary",
|
|
295
334
|
size: "sm",
|
|
296
|
-
onClick:
|
|
335
|
+
onClick: s[3] ||= (e) => R("applied")
|
|
297
336
|
}, {
|
|
298
|
-
default:
|
|
337
|
+
default: S(() => [...s[14] ||= [m("Close", -1)]]),
|
|
299
338
|
_: 1
|
|
300
339
|
}))])
|
|
301
340
|
]));
|
|
302
341
|
}
|
|
303
342
|
});
|
|
304
343
|
//#endregion
|
|
305
|
-
export {
|
|
344
|
+
export { I as default };
|