@septkit/ui 0.0.49 → 0.0.51
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/dialecte/composables/use-active-document.js +27 -17
- package/dist/dialecte/composables/use-live-data.js +13 -13
- package/dist/dialecte/create-document-store.js +3 -3
- package/dist/external/.pnpm/{@dialecte_core@0.4.7 → @dialecte_core@0.4.9}/node_modules/@dialecte/core/dist/helpers.js +16 -19
- package/dist/external/.pnpm/{@dialecte_core@0.4.7 → @dialecte_core@0.4.9}/node_modules/@dialecte/core/dist/index.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.4.7/node_modules/@dialecte/core/dist/project-DxIu-3AU.js → @dialecte_core@0.4.9/node_modules/@dialecte/core/dist/project-D-KS3OPN.js} +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.4.7 → @dialecte_core@0.4.9}/node_modules/@dialecte/core/dist/utils-C5_11hqg.js +1 -1
- package/dist/external/.pnpm/{@dialecte_scl@0.3.8/node_modules/@dialecte/scl/dist/hooks-DJJN-WU2.js → @dialecte_scl@0.3.12/node_modules/@dialecte/scl/dist/hooks-Cm_UYBBt.js} +48 -5277
- package/dist/external/.pnpm/@dialecte_scl@0.3.12/node_modules/@dialecte/scl/dist/v2019C1/index.js +22 -0
- package/dist/index.d.ts +48 -10
- package/dist/merge/build-view-model.js +101 -74
- package/dist/merge/decision-toggle.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/merge/element-detail.vue_vue_type_script_setup_true_lang.js +154 -45
- package/dist/merge/merge-correlate.js +46 -0
- package/dist/merge/merge-decision.js +6 -0
- package/dist/merge/merge-highlight.js +44 -0
- package/dist/merge/merge-preflight.js +5 -0
- package/dist/merge/merge-preflight.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/merge/merge-progress.vue_vue_type_script_setup_true_lang.js +12 -20
- package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +230 -181
- package/dist/merge/merge-summary.vue_vue_type_script_setup_true_lang.js +47 -25
- package/dist/merge/merge-tree.vue_vue_type_script_setup_true_lang.js +73 -62
- package/dist/merge/merge.service.js +36 -23
- package/dist/merge/use-document-progress.js +8 -9
- package/dist/merge/use-merge-session.js +122 -108
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_scl@0.3.8/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -3
|
@@ -1,30 +1,42 @@
|
|
|
1
1
|
import { Fragment as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, defineComponent as a, openBlock as o, renderList as s, toDisplayString as c } from "vue";
|
|
2
2
|
//#region lib/merge/merge-summary.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var l = { class: "h-full overflow-auto p-4 text-sm" }, u = { class: "mb-3 opacity-70" }, d = { class: "capitalize" }, f = { class: "uppercase" }, p = { class: "mb-4 flex flex-wrap gap-2" }, m = { class: "badge badge-success badge-sm" }, h = { class: "badge badge-warning badge-sm" }, g = {
|
|
3
|
+
var l = { class: "h-full overflow-auto p-4 text-sm" }, u = { class: "mb-3 opacity-70" }, d = { class: "capitalize" }, f = { class: "uppercase" }, p = { class: "mb-4 flex flex-wrap gap-2" }, m = { class: "badge badge-success badge-sm" }, h = { class: "badge badge-warning badge-sm" }, g = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "badge badge-info badge-sm"
|
|
6
|
-
},
|
|
6
|
+
}, _ = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "badge badge-error badge-sm"
|
|
9
|
+
}, v = { class: "badge badge-ghost badge-sm" }, y = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "badge badge-info badge-sm"
|
|
12
|
+
}, b = {
|
|
7
13
|
key: 0,
|
|
8
14
|
class: "mb-4"
|
|
9
|
-
},
|
|
15
|
+
}, x = { class: "space-y-1" }, S = { class: "badge badge-ghost badge-xs" }, C = {
|
|
10
16
|
key: 0,
|
|
11
17
|
class: "text-xs opacity-60"
|
|
12
|
-
},
|
|
18
|
+
}, w = {
|
|
13
19
|
key: 1,
|
|
14
20
|
class: "mb-4"
|
|
15
|
-
},
|
|
21
|
+
}, T = { class: "space-y-1" }, E = { class: "badge badge-ghost badge-xs" }, D = {
|
|
16
22
|
key: 0,
|
|
17
23
|
class: "text-xs opacity-60"
|
|
18
|
-
},
|
|
24
|
+
}, O = {
|
|
19
25
|
key: 2,
|
|
20
26
|
class: "mb-4"
|
|
21
|
-
},
|
|
27
|
+
}, k = { class: "space-y-1" }, A = { class: "text-xs opacity-60" }, j = {
|
|
22
28
|
key: 3,
|
|
23
29
|
class: "mb-4"
|
|
24
|
-
},
|
|
30
|
+
}, M = { class: "space-y-1" }, N = { class: "badge badge-ghost badge-xs" }, P = {
|
|
25
31
|
key: 4,
|
|
32
|
+
class: "mb-4"
|
|
33
|
+
}, F = { class: "space-y-1" }, I = { class: "badge badge-ghost badge-xs" }, L = {
|
|
34
|
+
key: 5,
|
|
35
|
+
class: "mb-4"
|
|
36
|
+
}, R = { class: "space-y-1" }, z = { class: "badge badge-ghost badge-xs" }, B = {
|
|
37
|
+
key: 6,
|
|
26
38
|
class: "opacity-60"
|
|
27
|
-
},
|
|
39
|
+
}, V = /*@__PURE__*/ a({
|
|
28
40
|
__name: "merge-summary",
|
|
29
41
|
props: {
|
|
30
42
|
summary: {},
|
|
@@ -32,45 +44,55 @@ var l = { class: "h-full overflow-auto p-4 text-sm" }, u = { class: "mb-3 opacit
|
|
|
32
44
|
verb: {}
|
|
33
45
|
},
|
|
34
46
|
setup(a) {
|
|
35
|
-
return (
|
|
47
|
+
return (V, H) => (o(), n("div", l, [
|
|
36
48
|
r("p", u, [
|
|
37
49
|
r("span", d, c(a.scenario), 1),
|
|
38
50
|
r("span", f, " (" + c(a.verb) + ")", 1),
|
|
39
|
-
|
|
51
|
+
H[0] ||= i(" — review before applying. ", -1)
|
|
40
52
|
]),
|
|
41
53
|
r("div", p, [
|
|
42
54
|
r("span", m, c(a.summary.added.length) + " added", 1),
|
|
43
55
|
r("span", h, c(a.summary.updated.length) + " updated", 1),
|
|
44
|
-
|
|
45
|
-
a.summary.
|
|
56
|
+
a.summary.preserved.length ? (o(), n("span", g, c(a.summary.preserved.length) + " kept ", 1)) : t("", !0),
|
|
57
|
+
a.summary.removed.length ? (o(), n("span", _, c(a.summary.removed.length) + " removed ", 1)) : t("", !0),
|
|
58
|
+
r("span", v, c(a.summary.skipped.length) + " skipped", 1),
|
|
59
|
+
a.summary.renamed.length ? (o(), n("span", y, c(a.summary.renamed.length) + " auto-renamed ", 1)) : t("", !0)
|
|
46
60
|
]),
|
|
47
|
-
a.summary.added.length ? (o(), n("section",
|
|
61
|
+
a.summary.added.length ? (o(), n("section", b, [H[1] ||= r("h3", { class: "mb-1 font-medium text-success" }, "Will be added", -1), r("ul", x, [(o(!0), n(e, null, s(a.summary.added, (e, i) => (o(), n("li", {
|
|
48
62
|
key: `a${i}`,
|
|
49
63
|
class: "flex items-center gap-2"
|
|
50
64
|
}, [
|
|
51
|
-
r("span",
|
|
65
|
+
r("span", S, c(e.tag), 1),
|
|
52
66
|
r("span", null, c(e.title), 1),
|
|
53
|
-
e.detail ? (o(), n("span",
|
|
67
|
+
e.detail ? (o(), n("span", C, c(e.detail), 1)) : t("", !0)
|
|
54
68
|
]))), 128))])])) : t("", !0),
|
|
55
|
-
a.summary.updated.length ? (o(), n("section",
|
|
69
|
+
a.summary.updated.length ? (o(), n("section", w, [H[2] ||= r("h3", { class: "mb-1 font-medium text-warning" }, "Will be updated", -1), r("ul", T, [(o(!0), n(e, null, s(a.summary.updated, (e, i) => (o(), n("li", {
|
|
56
70
|
key: `u${i}`,
|
|
57
71
|
class: "flex items-center gap-2"
|
|
58
72
|
}, [
|
|
59
|
-
r("span",
|
|
73
|
+
r("span", E, c(e.tag), 1),
|
|
60
74
|
r("span", null, c(e.title), 1),
|
|
61
|
-
e.detail ? (o(), n("span",
|
|
75
|
+
e.detail ? (o(), n("span", D, c(e.detail), 1)) : t("", !0)
|
|
62
76
|
]))), 128))])])) : t("", !0),
|
|
63
|
-
a.summary.renamed.length ? (o(), n("section",
|
|
77
|
+
a.summary.renamed.length ? (o(), n("section", O, [H[3] ||= r("h3", { class: "mb-1 font-medium text-info" }, "Auto-renamed (naming collisions)", -1), r("ul", k, [(o(!0), n(e, null, s(a.summary.renamed, (e, t) => (o(), n("li", {
|
|
64
78
|
key: `r${t}`,
|
|
65
79
|
class: "flex items-center gap-2"
|
|
66
|
-
}, [r("span", null, c(e.title), 1), r("span",
|
|
67
|
-
a.summary.
|
|
80
|
+
}, [r("span", null, c(e.title), 1), r("span", A, c(e.field) + " → " + c(e.to), 1)]))), 128))])])) : t("", !0),
|
|
81
|
+
a.summary.removed.length ? (o(), n("section", j, [H[4] ||= r("h3", { class: "mb-1 font-medium text-error" }, "Will be removed (your additions)", -1), r("ul", M, [(o(!0), n(e, null, s(a.summary.removed, (e, t) => (o(), n("li", {
|
|
82
|
+
key: `rm${t}`,
|
|
83
|
+
class: "flex items-center gap-2"
|
|
84
|
+
}, [r("span", N, c(e.tag), 1), r("span", null, c(e.title), 1)]))), 128))])])) : t("", !0),
|
|
85
|
+
a.summary.preserved.length ? (o(), n("section", P, [H[5] ||= r("h3", { class: "mb-1 font-medium text-info" }, "Kept (your additions)", -1), r("ul", F, [(o(!0), n(e, null, s(a.summary.preserved, (e, t) => (o(), n("li", {
|
|
86
|
+
key: `k${t}`,
|
|
87
|
+
class: "flex items-center gap-2"
|
|
88
|
+
}, [r("span", I, c(e.tag), 1), r("span", null, c(e.title), 1)]))), 128))])])) : t("", !0),
|
|
89
|
+
a.summary.skipped.length ? (o(), n("section", L, [H[6] ||= r("h3", { class: "mb-1 font-medium opacity-70" }, "Skipped", -1), r("ul", R, [(o(!0), n(e, null, s(a.summary.skipped, (e, t) => (o(), n("li", {
|
|
68
90
|
key: `s${t}`,
|
|
69
91
|
class: "flex items-center gap-2 line-through opacity-50"
|
|
70
|
-
}, [r("span",
|
|
71
|
-
!a.summary.added.length && !a.summary.updated.length && !a.summary.skipped.length && !a.summary.renamed.length ? (o(), n("p",
|
|
92
|
+
}, [r("span", z, c(e.tag), 1), r("span", null, c(e.title), 1)]))), 128))])])) : t("", !0),
|
|
93
|
+
!a.summary.added.length && !a.summary.updated.length && !a.summary.skipped.length && !a.summary.preserved.length && !a.summary.removed.length && !a.summary.renamed.length ? (o(), n("p", B, " Nothing to apply. ")) : t("", !0)
|
|
72
94
|
]));
|
|
73
95
|
}
|
|
74
96
|
});
|
|
75
97
|
//#endregion
|
|
76
|
-
export {
|
|
98
|
+
export { V as default };
|
|
@@ -2,9 +2,11 @@ import e from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_
|
|
|
2
2
|
import t from "../explorer/explorer.js";
|
|
3
3
|
import "../explorer/index.js";
|
|
4
4
|
import n from "./decision-toggle.js";
|
|
5
|
-
import {
|
|
5
|
+
import { willBeGone as r } from "./merge-decision.js";
|
|
6
|
+
import { coupledNodeIds as i, focusForNode as a, primaryIdOf as o } from "./merge-highlight.js";
|
|
7
|
+
import { computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, openBlock as g, ref as _, toDisplayString as v, unref as y, watch as b, withCtx as x } from "vue";
|
|
6
8
|
//#region lib/merge/merge-tree.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
9
|
+
var S = ["title"], C = ["title"], w = { class: "max-w-40 truncate" }, T = "badge-sm h-[21px]", E = /*@__PURE__*/ m({
|
|
8
10
|
__name: "merge-tree",
|
|
9
11
|
props: {
|
|
10
12
|
items: {},
|
|
@@ -13,89 +15,98 @@ var _ = ["title"], v = { class: "max-w-40 truncate" }, y = /*@__PURE__*/ l({
|
|
|
13
15
|
expandedItems: {}
|
|
14
16
|
},
|
|
15
17
|
emits: ["select", "update:decision"],
|
|
16
|
-
setup(
|
|
17
|
-
let
|
|
18
|
-
|
|
18
|
+
setup(m, { emit: E }) {
|
|
19
|
+
let D = m, O = E, k = _();
|
|
20
|
+
b(() => D.meta, () => {
|
|
21
|
+
let e = k.value;
|
|
22
|
+
if (!e) return;
|
|
23
|
+
let t = o(D.meta, e.groupId);
|
|
24
|
+
k.value = t ? {
|
|
25
|
+
groupId: e.groupId,
|
|
26
|
+
rootId: t
|
|
27
|
+
} : void 0;
|
|
28
|
+
});
|
|
29
|
+
let A = _({
|
|
30
|
+
scoped: [...D.expandedItems ?? []],
|
|
19
31
|
all: !1
|
|
20
32
|
});
|
|
21
|
-
|
|
22
|
-
let t = new Set(
|
|
33
|
+
b(() => D.expandedItems, (e) => {
|
|
34
|
+
let t = new Set(A.value.scoped);
|
|
23
35
|
for (let n of e ?? []) t.add(n);
|
|
24
|
-
|
|
36
|
+
A.value = {
|
|
25
37
|
scoped: [...t],
|
|
26
38
|
all: !1
|
|
27
39
|
};
|
|
28
40
|
});
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
added: "text-success",
|
|
36
|
-
removed: "text-error",
|
|
37
|
-
modified: "text-warning",
|
|
38
|
-
unchanged: "text-base-content/60"
|
|
39
|
-
}, E = {
|
|
40
|
-
added: "badge-success badge-outline",
|
|
41
|
-
removed: "badge-error badge-outline",
|
|
42
|
-
modified: "badge-warning badge-outline",
|
|
43
|
-
unchanged: "badge-ghost"
|
|
41
|
+
let j = s(() => k.value ? i(D.items, D.meta, k.value) : void 0), M = {
|
|
42
|
+
added: "badge-soft badge-success",
|
|
43
|
+
removed: "badge-soft badge-error",
|
|
44
|
+
modified: "badge-soft badge-warning",
|
|
45
|
+
unchanged: "badge-soft badge-neutral",
|
|
46
|
+
"target-only": "badge-soft badge-info"
|
|
44
47
|
};
|
|
45
|
-
function
|
|
46
|
-
return
|
|
48
|
+
function N(e) {
|
|
49
|
+
return D.meta[e.id];
|
|
47
50
|
}
|
|
48
|
-
function
|
|
49
|
-
let t =
|
|
51
|
+
function P(e) {
|
|
52
|
+
let t = j.value;
|
|
50
53
|
return t ? !t.has(e.id) : !1;
|
|
51
54
|
}
|
|
52
|
-
function
|
|
53
|
-
let t =
|
|
55
|
+
function F(e) {
|
|
56
|
+
let t = j.value;
|
|
54
57
|
return t ? t.has(e.id) : !1;
|
|
55
58
|
}
|
|
56
|
-
function
|
|
57
|
-
let t =
|
|
58
|
-
return !!t?.groupId &&
|
|
59
|
+
function I(e) {
|
|
60
|
+
let t = N(e);
|
|
61
|
+
return !!t?.groupId && D.decisions[t.groupId] === "skip";
|
|
59
62
|
}
|
|
60
|
-
function
|
|
61
|
-
let t =
|
|
63
|
+
function L(e) {
|
|
64
|
+
let t = N(e), n = t?.change ?? "unchanged", i = P(e), a = F(e), o = r(n, t?.groupId ? D.decisions[t.groupId] : void 0);
|
|
62
65
|
return [
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
!
|
|
66
|
-
!
|
|
66
|
+
o ? "text-base-content/40" : n === "unchanged" ? "text-base-content/60" : "text-base-content",
|
|
67
|
+
i && "opacity-30",
|
|
68
|
+
!i && a && "font-semibold",
|
|
69
|
+
!i && a && !o && "bg-base-content/10"
|
|
67
70
|
];
|
|
68
71
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
72
|
+
function R(e) {
|
|
73
|
+
k.value = a(D.items, D.meta, e.id), O("select", e);
|
|
71
74
|
}
|
|
72
|
-
function
|
|
73
|
-
|
|
75
|
+
function z(e, t) {
|
|
76
|
+
O("update:decision", e, t);
|
|
74
77
|
}
|
|
75
|
-
return (r,
|
|
76
|
-
items:
|
|
77
|
-
expanded:
|
|
78
|
+
return (r, i) => (g(), c(y(t), {
|
|
79
|
+
items: m.items,
|
|
80
|
+
expanded: A.value,
|
|
78
81
|
"aria-label": "Merge changes",
|
|
79
|
-
onSelect:
|
|
80
|
-
"onUpdate:expanded":
|
|
82
|
+
onSelect: R,
|
|
83
|
+
"onUpdate:expanded": i[0] ||= (e) => A.value = e
|
|
81
84
|
}, {
|
|
82
|
-
"node-label":
|
|
83
|
-
"node-suffix":
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
"node-label": x(({ node: e }) => [d("span", { class: h(["ml-1 truncate rounded px-2 py-0.5 transition-all", L(e)]) }, v(e.name), 3)]),
|
|
86
|
+
"node-suffix": x(({ node: t }) => [d("div", { class: h(["flex items-center gap-2 transition-opacity", { "opacity-30": P(t) }]) }, [
|
|
87
|
+
N(t)?.instance?.linked ? (g(), u("span", {
|
|
88
|
+
key: 0,
|
|
89
|
+
class: h(["badge gap-1 font-medium", [T, N(t)?.instance?.upToDate ? "badge-soft badge-success" : "badge-soft badge-warning"]]),
|
|
90
|
+
title: N(t)?.instance?.upToDate ? "Linked to the loaded template — up to date" : "Linked to the loaded template — has pending updates"
|
|
91
|
+
}, [p(y(e), { class: "size-3" }), f(" " + v(N(t)?.instance?.upToDate ? "up to date" : "outdated"), 1)], 10, S)) : l("", !0),
|
|
92
|
+
N(t)?.role === "companion" && N(t)?.path ? (g(), u("span", {
|
|
93
|
+
key: 1,
|
|
94
|
+
class: "flex items-center gap-1 text-xs opacity-60",
|
|
95
|
+
title: N(t)?.path
|
|
96
|
+
}, [p(y(e), { class: "size-3" }), d("span", w, v(N(t)?.path), 1)], 8, C)) : l("", !0),
|
|
97
|
+
N(t)?.role === "primary" && N(t)?.groupId ? (g(), c(n, {
|
|
98
|
+
key: 2,
|
|
99
|
+
size: "xs",
|
|
100
|
+
"model-value": m.decisions[N(t).groupId] ?? "accept",
|
|
101
|
+
"onUpdate:modelValue": (e) => z(N(t).groupId, e)
|
|
102
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])) : N(t)?.role !== "primary" && N(t)?.regionHead ? (g(), u("span", {
|
|
103
|
+
key: 3,
|
|
104
|
+
class: h(["badge font-medium", [T, I(t) ? "badge-soft badge-neutral line-through opacity-70" : M[N(t)?.change ?? "unchanged"]]])
|
|
105
|
+
}, v(N(t)?.change), 3)) : l("", !0)
|
|
106
|
+
], 2)]),
|
|
96
107
|
_: 1
|
|
97
108
|
}, 8, ["items", "expanded"]));
|
|
98
109
|
}
|
|
99
110
|
});
|
|
100
111
|
//#endregion
|
|
101
|
-
export {
|
|
112
|
+
export { E as default };
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import { i as e } from "../external/.pnpm/@dialecte_scl@0.3.
|
|
2
|
-
import "../external/.pnpm/@dialecte_scl@0.3.
|
|
1
|
+
import { i as e } from "../external/.pnpm/@dialecte_scl@0.3.12/node_modules/@dialecte/scl/dist/hooks-Cm_UYBBt.js";
|
|
2
|
+
import "../external/.pnpm/@dialecte_scl@0.3.12/node_modules/@dialecte/scl/dist/v2019C1/index.js";
|
|
3
3
|
//#region lib/merge/merge.service.ts
|
|
4
4
|
async function t(e, t) {
|
|
5
5
|
return e.query.lifecycle.report(t);
|
|
6
6
|
}
|
|
7
7
|
async function n({ doc: e, target: t, report: n, decisions: r, keepNameTypesFrom: i, afterApply: a }) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
let o;
|
|
9
|
+
return {
|
|
10
|
+
prepared: await e.prepare(async (e) => {
|
|
11
|
+
let s = await e.lifecycle.apply({
|
|
12
|
+
...t,
|
|
13
|
+
report: n,
|
|
14
|
+
decisions: r,
|
|
15
|
+
keepNameTypesFrom: i
|
|
16
|
+
});
|
|
17
|
+
o = s.instances, await a?.(e, {
|
|
18
|
+
target: t,
|
|
19
|
+
report: n,
|
|
20
|
+
decisions: r,
|
|
21
|
+
result: s
|
|
22
|
+
});
|
|
23
|
+
}),
|
|
24
|
+
applied: o
|
|
25
|
+
};
|
|
22
26
|
}
|
|
23
27
|
async function r({ doc: e, target: t, report: n, decisions: r, keepNameTypesFrom: i, afterApply: a }) {
|
|
24
28
|
await e.transaction(async (e) => {
|
|
@@ -39,7 +43,15 @@ async function r({ doc: e, target: t, report: n, decisions: r, keepNameTypesFrom
|
|
|
39
43
|
function i(t) {
|
|
40
44
|
return e({ verb: t });
|
|
41
45
|
}
|
|
42
|
-
async function a(e
|
|
46
|
+
async function a(e) {
|
|
47
|
+
let t = (await Promise.all(e.map((e) => e.lifecycle.checkTemplateUuids()))).flat(), n = /* @__PURE__ */ new Set(), r = [];
|
|
48
|
+
for (let e of t) {
|
|
49
|
+
let t = `${e.code}:${e.value}`;
|
|
50
|
+
n.has(t) || (n.add(t), r.push(e));
|
|
51
|
+
}
|
|
52
|
+
return r;
|
|
53
|
+
}
|
|
54
|
+
async function o(e, t, n) {
|
|
43
55
|
if (t.tagName === n) return t;
|
|
44
56
|
let r = (await e.findAncestors(t)).find((e) => e.tagName === n);
|
|
45
57
|
return r ? {
|
|
@@ -47,25 +59,26 @@ async function a(e, t, n) {
|
|
|
47
59
|
id: r.id
|
|
48
60
|
} : t;
|
|
49
61
|
}
|
|
50
|
-
async function
|
|
62
|
+
async function s(e, t) {
|
|
51
63
|
return await e.getSnapshot({
|
|
52
64
|
ref: t,
|
|
53
65
|
as: "tree"
|
|
54
66
|
});
|
|
55
67
|
}
|
|
56
|
-
async function
|
|
68
|
+
async function c(e, t) {
|
|
57
69
|
return e.getSnapshot({
|
|
58
70
|
ref: t,
|
|
59
71
|
as: "xml",
|
|
60
72
|
unwrap: ["Private"],
|
|
61
|
-
declareNamespaces: !1
|
|
73
|
+
declareNamespaces: !1,
|
|
74
|
+
includeXmlDeclaration: !1
|
|
62
75
|
});
|
|
63
76
|
}
|
|
64
|
-
async function
|
|
77
|
+
async function l(e, t) {
|
|
65
78
|
return await e.getAttributes(t, { defaults: "none" });
|
|
66
79
|
}
|
|
67
|
-
async function
|
|
80
|
+
async function u(e, t) {
|
|
68
81
|
return e.presentation.extractElementTitle(t);
|
|
69
82
|
}
|
|
70
83
|
//#endregion
|
|
71
|
-
export { r as commitMerge,
|
|
84
|
+
export { a as collectTemplateUuidWarnings, r as commitMerge, u as extractTitle, o as findScopeRoot, l as getAttributes, i as getPresentationScope, n as previewApply, t as reportLifecycle, s as snapshotTree, c as snapshotXml };
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { onScopeDispose as e, ref as t } from "vue";
|
|
2
2
|
//#region lib/merge/use-document-progress.ts
|
|
3
3
|
function n(n) {
|
|
4
|
-
let r = t(!1), i = t(null), a
|
|
5
|
-
function
|
|
4
|
+
let r = t(!1), i = t(null), a;
|
|
5
|
+
function o() {
|
|
6
6
|
let e = n();
|
|
7
|
-
r.value = e.loading, i.value = e.progress ? { ...e.progress } : null
|
|
7
|
+
r.value = e.loading, i.value = e.progress ? { ...e.progress } : null;
|
|
8
8
|
}
|
|
9
|
-
async function
|
|
10
|
-
|
|
9
|
+
async function s(e) {
|
|
10
|
+
o(), a = setInterval(o, 80);
|
|
11
11
|
try {
|
|
12
12
|
return await e;
|
|
13
13
|
} finally {
|
|
14
|
-
|
|
14
|
+
a && clearInterval(a), a = void 0, o();
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
return e(() => {
|
|
18
|
-
|
|
18
|
+
a && clearInterval(a);
|
|
19
19
|
}), {
|
|
20
20
|
loading: r,
|
|
21
21
|
progress: i,
|
|
22
|
-
|
|
23
|
-
track: c
|
|
22
|
+
track: s
|
|
24
23
|
};
|
|
25
24
|
}
|
|
26
25
|
//#endregion
|