@septkit/ui 0.0.82 → 0.0.84
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/create-document-store.js +4 -4
- package/dist/external/.pnpm/{@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/dialecte-oAXwOG-Q.js → @dialecte_core@0.10.0/node_modules/@dialecte/core/dist/dialecte-CVLWSkgW.js} +1 -1
- package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +130 -0
- package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/index.js +6 -0
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/same-json-value-_AChwM_n.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js +79 -102
- package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/utils.js +2 -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/loader-circle.js +8 -0
- package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +67 -125
- package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +167 -78
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardContent.js +126 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardContentImpl.js +170 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardPortal.js +33 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardRoot.js +73 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardTrigger.js +64 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/utils.js +11 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContent.js +133 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentImpl.js +165 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentModal.js +137 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentNonModal.js +130 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverPortal.js +33 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverRoot.js +54 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverTrigger.js +55 -0
- package/dist/index.d.ts +108 -1939
- package/dist/index.js +24 -27
- package/dist/status-bar/index.js +5 -0
- package/dist/status-bar/progress-bar.js +7 -0
- package/dist/status-bar/progress-bar.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/status-bar/spinner.js +7 -0
- package/dist/status-bar/spinner.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/status-bar/status-bar-item.js +8 -0
- package/dist/status-bar/status-bar-item.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/status-bar/status-bar.js +7 -0
- package/dist/status-bar/status-bar.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +0 -179
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js +0 -3
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js +0 -6
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils.js +0 -2
- package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js +0 -45065
- package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -3
- package/dist/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 +0 -11
- 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 +0 -26
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.js +0 -27
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js +0 -67
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js +0 -136
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js +0 -28
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTrigger.js +0 -97
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useArrowNavigation.js +0 -31
- package/dist/merge/check-files/components/merge-preflight.js +0 -5
- package/dist/merge/check-files/components/merge-preflight.vue_vue_type_script_setup_true_lang.js +0 -53
- package/dist/merge/check-files/flags.js +0 -17
- package/dist/merge/check-files/identity-warning.js +0 -19
- package/dist/merge/confirm/components/merge-summary.js +0 -5
- package/dist/merge/confirm/components/merge-summary.vue_vue_type_script_setup_true_lang.js +0 -207
- package/dist/merge/confirm/landings.js +0 -34
- package/dist/merge/confirm/outcome.js +0 -179
- package/dist/merge/confirm/summary.js +0 -57
- package/dist/merge/done/applied-counts.js +0 -16
- package/dist/merge/done/applied-focus.js +0 -15
- package/dist/merge/help.js +0 -76
- package/dist/merge/index.js +0 -8
- package/dist/merge/match/components/merge-map.js +0 -5
- package/dist/merge/match/components/merge-map.vue_vue_type_script_setup_true_lang.js +0 -230
- package/dist/merge/match/match.js +0 -210
- package/dist/merge/review/affix.js +0 -14
- package/dist/merge/review/change-badge.js +0 -10
- package/dist/merge/review/components/decision-toggle.js +0 -5
- package/dist/merge/review/components/decision-toggle.vue_vue_type_script_setup_true_lang.js +0 -80
- package/dist/merge/review/components/element-detail.js +0 -5
- package/dist/merge/review/components/element-detail.vue_vue_type_script_setup_true_lang.js +0 -210
- package/dist/merge/review/components/merge-tree.js +0 -5
- package/dist/merge/review/components/merge-tree.vue_vue_type_script_setup_true_lang.js +0 -192
- package/dist/merge/review/components/type-name-authority.js +0 -5
- package/dist/merge/review/components/type-name-authority.vue_vue_type_script_setup_true_lang.js +0 -47
- package/dist/merge/review/decision.js +0 -12
- package/dist/merge/review/detail.js +0 -63
- package/dist/merge/review/highlight.js +0 -44
- package/dist/merge/review/marks.js +0 -17
- package/dist/merge/review/navigation.js +0 -82
- package/dist/merge/review/title.js +0 -7
- package/dist/merge/review/tree.js +0 -138
- package/dist/merge/session/components/merge-help.js +0 -7
- package/dist/merge/session/components/merge-help.vue_vue_type_script_setup_true_lang.js +0 -109
- package/dist/merge/session/components/merge-progress.js +0 -5
- package/dist/merge/session/components/merge-progress.vue_vue_type_script_setup_true_lang.js +0 -23
- package/dist/merge/session/components/merge-review.js +0 -5
- package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +0 -895
- package/dist/merge/session/merge.service.js +0 -113
- package/dist/merge/session/shortcuts.js +0 -22
- package/dist/merge/session/staged-writes.js +0 -47
- package/dist/merge/session/steps.js +0 -21
- package/dist/merge/session/use-document-progress.js +0 -26
- package/dist/merge/session/use-merge-session.js +0 -372
- package/dist/merge/wording.js +0 -123
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import e from "../../../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/pencil.js";
|
|
2
|
-
import t from "../../../icons/element-badge.js";
|
|
3
|
-
import "../../../icons/index.js";
|
|
4
|
-
import { composeAffix as ee, splitAffix as n } from "../affix.js";
|
|
5
|
-
import { CHANGE_BADGE as r, LEFT_OUT_BADGE as i } from "../change-badge.js";
|
|
6
|
-
import { isLeftOut as a } from "../decision.js";
|
|
7
|
-
import { CHANGE_LABELS as o, LEFT_OUT_LABEL as s } from "../../wording.js";
|
|
8
|
-
import { Fragment as te, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as ne, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, openBlock as g, reactive as re, renderList as ie, toDisplayString as _, unref as v } from "vue";
|
|
9
|
-
//#region lib/merge/review/components/element-detail.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var y = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "flex h-full flex-col gap-3 overflow-auto p-3 text-sm"
|
|
13
|
-
}, b = { class: "flex items-center gap-2" }, x = { class: "font-medium" }, S = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "flex flex-col gap-2 text-xs"
|
|
16
|
-
}, C = { class: "flex items-center gap-2" }, ae = ["title"], oe = ["aria-label"], se = [
|
|
17
|
-
"disabled",
|
|
18
|
-
"aria-checked",
|
|
19
|
-
"onClick"
|
|
20
|
-
], ce = ["title"], le = [
|
|
21
|
-
"disabled",
|
|
22
|
-
"aria-checked",
|
|
23
|
-
"onClick"
|
|
24
|
-
], w = ["title"], T = [
|
|
25
|
-
"disabled",
|
|
26
|
-
"aria-checked",
|
|
27
|
-
"onClick"
|
|
28
|
-
], E = {
|
|
29
|
-
key: 0,
|
|
30
|
-
class: "shrink-0 select-none text-base-content/80"
|
|
31
|
-
}, D = [
|
|
32
|
-
"value",
|
|
33
|
-
"disabled",
|
|
34
|
-
"aria-label",
|
|
35
|
-
"onInput"
|
|
36
|
-
], O = {
|
|
37
|
-
key: 1,
|
|
38
|
-
class: "shrink-0 select-none text-base-content/80"
|
|
39
|
-
}, k = {
|
|
40
|
-
key: 2,
|
|
41
|
-
"data-testid": "detail-adjusted",
|
|
42
|
-
class: "badge badge-soft badge-info badge-xs shrink-0",
|
|
43
|
-
title: "The merge writes another value than the one asked: it was taken here, or set by the project's rules. Edit it to choose another."
|
|
44
|
-
}, A = {
|
|
45
|
-
key: 0,
|
|
46
|
-
class: "mt-1.5 flex items-center gap-2"
|
|
47
|
-
}, j = { class: "flex w-full items-center font-mono" }, M = {
|
|
48
|
-
key: 0,
|
|
49
|
-
class: "shrink-0 select-none text-base-content/80"
|
|
50
|
-
}, N = [
|
|
51
|
-
"value",
|
|
52
|
-
"disabled",
|
|
53
|
-
"aria-label",
|
|
54
|
-
"onInput"
|
|
55
|
-
], P = {
|
|
56
|
-
key: 1,
|
|
57
|
-
class: "shrink-0 select-none text-base-content/80"
|
|
58
|
-
}, F = {
|
|
59
|
-
key: 1,
|
|
60
|
-
class: "text-xs text-base-content/80"
|
|
61
|
-
}, I = {
|
|
62
|
-
key: 1,
|
|
63
|
-
class: "grid h-full place-items-center p-4 text-sm text-base-content/80"
|
|
64
|
-
}, L = /*@__PURE__*/ p({
|
|
65
|
-
__name: "element-detail",
|
|
66
|
-
props: {
|
|
67
|
-
detail: {},
|
|
68
|
-
affixMask: { type: Function },
|
|
69
|
-
disabled: { type: Boolean }
|
|
70
|
-
},
|
|
71
|
-
emits: ["edit"],
|
|
72
|
-
setup(p, { emit: L }) {
|
|
73
|
-
let R = {
|
|
74
|
-
border: "border-primary",
|
|
75
|
-
label: "bg-base-300 text-base-content",
|
|
76
|
-
value: "bg-base-200 text-base-content"
|
|
77
|
-
}, z = {
|
|
78
|
-
accept: R,
|
|
79
|
-
skip: R,
|
|
80
|
-
other: R
|
|
81
|
-
}, B = p, V = L, H = re(/* @__PURE__ */ new Set()), U = /* @__PURE__ */ new Map(), W = c(() => a(B.detail?.change ?? "unchanged", B.disabled ? "skip" : "accept")), ue = c(() => W.value ? i : r[B.detail?.change ?? "unchanged"]), G = c(() => [...B.detail?.attributes ?? []].filter((e) => e.editable).sort((e, t) => Number(J(t)) - Number(J(e))));
|
|
82
|
-
function de(e) {
|
|
83
|
-
if (!(!B.detail || !B.affixMask)) return B.affixMask({
|
|
84
|
-
tag: B.detail.tag,
|
|
85
|
-
attr: e.name
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function K(e) {
|
|
89
|
-
return B.disabled ? e.before ?? e.after ?? "" : e.written ?? e.after ?? "";
|
|
90
|
-
}
|
|
91
|
-
function q(e) {
|
|
92
|
-
return n(K(e), de(e));
|
|
93
|
-
}
|
|
94
|
-
function J(e) {
|
|
95
|
-
return e.status === "modified";
|
|
96
|
-
}
|
|
97
|
-
function Y(e) {
|
|
98
|
-
return e && e.length > 0 ? e : "∅";
|
|
99
|
-
}
|
|
100
|
-
function X(e) {
|
|
101
|
-
if (H.has(e.name)) return "other";
|
|
102
|
-
let t = K(e);
|
|
103
|
-
return t === (e.after ?? "") ? "accept" : t === (e.before ?? "") ? "skip" : "other";
|
|
104
|
-
}
|
|
105
|
-
function Z(e, t) {
|
|
106
|
-
if (t === "other") {
|
|
107
|
-
H.add(e.name), m(() => U.get(e.name)?.focus());
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
H.delete(e.name), V("edit", e.name, t === "accept" ? e.after ?? "" : e.before ?? "");
|
|
111
|
-
}
|
|
112
|
-
function Q(e, t) {
|
|
113
|
-
t instanceof HTMLInputElement ? U.set(e.name, t) : U.delete(e.name);
|
|
114
|
-
}
|
|
115
|
-
function $(e, t) {
|
|
116
|
-
let n = t.target.value, { prefix: r, suffix: i } = q(e);
|
|
117
|
-
V("edit", e.name, ee(n, {
|
|
118
|
-
prefix: r,
|
|
119
|
-
suffix: i
|
|
120
|
-
}));
|
|
121
|
-
}
|
|
122
|
-
return (ee, n) => p.detail ? (g(), u("div", y, [d("header", b, [
|
|
123
|
-
f(v(t), {
|
|
124
|
-
"tag-name": p.detail.tag,
|
|
125
|
-
size: "sm"
|
|
126
|
-
}, null, 8, ["tag-name"]),
|
|
127
|
-
d("span", x, _(p.detail.title), 1),
|
|
128
|
-
d("span", {
|
|
129
|
-
"data-testid": "detail-change",
|
|
130
|
-
class: h(["badge badge-sm", ue.value])
|
|
131
|
-
}, _(W.value ? v(s) : v(o)[p.detail.change]), 3)
|
|
132
|
-
]), G.value.length ? (g(), u("div", S, [(g(!0), u(te, null, ie(G.value, (t) => (g(), u("div", {
|
|
133
|
-
key: t.name,
|
|
134
|
-
class: h(["rounded-box border px-2 py-1.5", J(t) ? "border-warning/40 bg-warning/5" : "border-base-200"])
|
|
135
|
-
}, [d("div", C, [
|
|
136
|
-
d("span", {
|
|
137
|
-
class: "w-24 shrink-0 truncate text-base-content/80",
|
|
138
|
-
title: t.name
|
|
139
|
-
}, _(t.name), 9, ae),
|
|
140
|
-
J(t) ? (g(), u("div", {
|
|
141
|
-
key: 0,
|
|
142
|
-
class: h(["flex flex-1 flex-wrap items-center gap-1.5", p.disabled && "pointer-events-none opacity-60"]),
|
|
143
|
-
role: "radiogroup",
|
|
144
|
-
"aria-label": `Decision for ${t.name}`
|
|
145
|
-
}, [
|
|
146
|
-
d("button", {
|
|
147
|
-
type: "button",
|
|
148
|
-
class: h(["inline-flex items-stretch overflow-hidden rounded-box border-2 text-xs transition", X(t) === "accept" ? z.accept.border : "border-base-300 hover:border-base-content/40"]),
|
|
149
|
-
role: "radio",
|
|
150
|
-
disabled: p.disabled,
|
|
151
|
-
"aria-checked": X(t) === "accept",
|
|
152
|
-
onClick: (e) => Z(t, "accept")
|
|
153
|
-
}, [d("span", { class: h(["px-2 py-0.5 font-semibold", z.accept.label]) }, " New value ", 2), d("span", {
|
|
154
|
-
class: h(["max-w-24 truncate px-2 py-0.5 font-mono", z.accept.value]),
|
|
155
|
-
title: Y(t.after)
|
|
156
|
-
}, _(Y(t.after)), 11, ce)], 10, se),
|
|
157
|
-
d("button", {
|
|
158
|
-
type: "button",
|
|
159
|
-
class: h(["inline-flex items-stretch overflow-hidden rounded-box border-2 text-xs transition", X(t) === "skip" ? z.skip.border : "border-base-300 hover:border-base-content/40"]),
|
|
160
|
-
role: "radio",
|
|
161
|
-
disabled: p.disabled,
|
|
162
|
-
"aria-checked": X(t) === "skip",
|
|
163
|
-
onClick: (e) => Z(t, "skip")
|
|
164
|
-
}, [d("span", { class: h(["px-2 py-0.5 font-semibold", z.skip.label]) }, " Keep current ", 2), d("span", {
|
|
165
|
-
class: h(["max-w-24 truncate px-2 py-0.5 font-mono", z.skip.value]),
|
|
166
|
-
title: Y(t.before)
|
|
167
|
-
}, _(Y(t.before)), 11, w)], 10, le),
|
|
168
|
-
d("button", {
|
|
169
|
-
type: "button",
|
|
170
|
-
class: h(["inline-flex items-stretch overflow-hidden rounded-box border-2 text-xs transition", X(t) === "other" ? z.other.border : "border-base-300 hover:border-base-content/40"]),
|
|
171
|
-
role: "radio",
|
|
172
|
-
disabled: p.disabled,
|
|
173
|
-
"aria-checked": X(t) === "other",
|
|
174
|
-
onClick: (e) => Z(t, "other")
|
|
175
|
-
}, [d("span", { class: h(["flex items-center gap-1 px-2 py-0.5 font-semibold", z.other.label]) }, [f(v(e), { class: "size-3" }), n[0] ||= ne(" Custom ", -1)], 2)], 10, T)
|
|
176
|
-
], 10, oe)) : (g(), u("span", {
|
|
177
|
-
key: 1,
|
|
178
|
-
class: h(["flex w-full items-center font-mono", p.disabled && "pointer-events-none opacity-60"])
|
|
179
|
-
}, [
|
|
180
|
-
q(t).prefix ? (g(), u("span", E, _(q(t).prefix), 1)) : l("", !0),
|
|
181
|
-
d("input", {
|
|
182
|
-
ref_for: !0,
|
|
183
|
-
ref: (e) => Q(t, e),
|
|
184
|
-
class: "input input-xs input-bordered w-full font-mono",
|
|
185
|
-
value: q(t).core,
|
|
186
|
-
disabled: p.disabled,
|
|
187
|
-
"aria-label": t.name,
|
|
188
|
-
onInput: (e) => $(t, e)
|
|
189
|
-
}, null, 40, D),
|
|
190
|
-
q(t).suffix ? (g(), u("span", O, _(q(t).suffix), 1)) : l("", !0)
|
|
191
|
-
], 2)),
|
|
192
|
-
t.adjusted ? (g(), u("span", k, " renamed by the merge ")) : l("", !0)
|
|
193
|
-
]), J(t) && X(t) === "other" ? (g(), u("div", A, [n[1] ||= d("span", { class: "w-24 shrink-0" }, null, -1), d("span", j, [
|
|
194
|
-
q(t).prefix ? (g(), u("span", M, _(q(t).prefix), 1)) : l("", !0),
|
|
195
|
-
d("input", {
|
|
196
|
-
ref_for: !0,
|
|
197
|
-
ref: (e) => Q(t, e),
|
|
198
|
-
class: "input input-xs input-bordered w-full font-mono",
|
|
199
|
-
value: q(t).core,
|
|
200
|
-
placeholder: "custom value",
|
|
201
|
-
disabled: p.disabled,
|
|
202
|
-
"aria-label": t.name,
|
|
203
|
-
onInput: (e) => $(t, e)
|
|
204
|
-
}, null, 40, N),
|
|
205
|
-
q(t).suffix ? (g(), u("span", P, _(q(t).suffix), 1)) : l("", !0)
|
|
206
|
-
])])) : l("", !0)], 2))), 128))])) : (g(), u("div", F, "No editable fields. See the diff below."))])) : (g(), u("div", I, " Select an element to see its changes. "));
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
//#endregion
|
|
210
|
-
export { L as default };
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import e from "../../../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/link.js";
|
|
2
|
-
import t from "../../../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";
|
|
3
|
-
import n from "../../../explorer/explorer.js";
|
|
4
|
-
import "../../../explorer/index.js";
|
|
5
|
-
import r from "./decision-toggle.js";
|
|
6
|
-
import { CHANGE_BADGE as i, LEFT_OUT_BADGE as a } from "../change-badge.js";
|
|
7
|
-
import { isLeftOut as o, willBeGone as s } from "../decision.js";
|
|
8
|
-
import { CHANGE_LABELS as c, LEFT_OUT_LABEL as l } from "../../wording.js";
|
|
9
|
-
import { coupledNodeIds as u, focusForNode as d, primaryIdOf as f } from "../highlight.js";
|
|
10
|
-
import { ancestorIds as p, nodesHoldingChanges as m } from "../navigation.js";
|
|
11
|
-
import { computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, nextTick as C, normalizeClass as w, openBlock as T, ref as E, toDisplayString as D, unref as O, watch as k, withCtx as A } from "vue";
|
|
12
|
-
//#region lib/merge/review/components/merge-tree.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var j = { class: "flex items-center gap-2" }, M = ["aria-label", "title"], N = {
|
|
14
|
-
key: 1,
|
|
15
|
-
"data-testid": "holds-changes",
|
|
16
|
-
role: "img",
|
|
17
|
-
"aria-label": "Contains changes",
|
|
18
|
-
title: "Something inside changes: open it to see what",
|
|
19
|
-
class: "size-2 shrink-0 rounded-full bg-primary"
|
|
20
|
-
}, P = ["title"], F = ["title"], I = { class: "max-w-40 truncate" }, L = "badge-md text-xs", R = /*@__PURE__*/ S({
|
|
21
|
-
__name: "merge-tree",
|
|
22
|
-
props: {
|
|
23
|
-
items: {},
|
|
24
|
-
meta: {},
|
|
25
|
-
decisions: {},
|
|
26
|
-
expandedItems: {},
|
|
27
|
-
selected: {},
|
|
28
|
-
flagged: {}
|
|
29
|
-
},
|
|
30
|
-
emits: ["select", "update:decision"],
|
|
31
|
-
setup(S, { emit: R }) {
|
|
32
|
-
let z = S, B = R, V = E();
|
|
33
|
-
k(() => z.meta, () => {
|
|
34
|
-
let e = V.value;
|
|
35
|
-
if (!e) return;
|
|
36
|
-
let t = f(z.meta, e.groupId);
|
|
37
|
-
V.value = t ? {
|
|
38
|
-
groupId: e.groupId,
|
|
39
|
-
rootId: t
|
|
40
|
-
} : void 0;
|
|
41
|
-
});
|
|
42
|
-
let H = E({
|
|
43
|
-
scoped: [...z.expandedItems ?? []],
|
|
44
|
-
all: !1
|
|
45
|
-
});
|
|
46
|
-
k(() => z.expandedItems, (e) => {
|
|
47
|
-
let t = new Set(H.value.scoped);
|
|
48
|
-
for (let n of e ?? []) t.add(n);
|
|
49
|
-
H.value = {
|
|
50
|
-
scoped: [...t],
|
|
51
|
-
all: !1
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
let U = E(), W = E(!1);
|
|
55
|
-
k(() => z.selected, async (e) => {
|
|
56
|
-
if (!e) return;
|
|
57
|
-
let t = /* @__PURE__ */ new Set([...H.value.scoped, ...p(z.items, e)]);
|
|
58
|
-
H.value = {
|
|
59
|
-
scoped: [...t],
|
|
60
|
-
all: !1
|
|
61
|
-
}, V.value = d(z.items, z.meta, e), await C();
|
|
62
|
-
let n = U.value?.$el.querySelector?.("[data-selected]");
|
|
63
|
-
n?.scrollIntoView?.({ block: "center" }), W.value && n?.focus({ preventScroll: !0 });
|
|
64
|
-
}, { immediate: !0 }), k(() => z.items, async () => {
|
|
65
|
-
if (!W.value) return;
|
|
66
|
-
await C();
|
|
67
|
-
let e = U.value?.$el;
|
|
68
|
-
e?.contains?.(document.activeElement) || e?.querySelector?.("[data-selected]")?.focus({ preventScroll: !0 });
|
|
69
|
-
});
|
|
70
|
-
let G = h(() => V.value ? u(z.items, z.meta, V.value) : void 0), K = h(() => m(z.items, z.meta)), q = h(() => new Set(H.value.scoped));
|
|
71
|
-
function J(e) {
|
|
72
|
-
return z.meta[e.id];
|
|
73
|
-
}
|
|
74
|
-
function Y(e) {
|
|
75
|
-
let t = G.value;
|
|
76
|
-
return t ? t.has(e.id) : !1;
|
|
77
|
-
}
|
|
78
|
-
function X(e) {
|
|
79
|
-
let t = J(e);
|
|
80
|
-
return t?.groupId ? t.change === "removed" || t.change === "target-only" || V.value?.groupId === t.groupId ? !0 : z.decisions[t.groupId] === "skip" : !1;
|
|
81
|
-
}
|
|
82
|
-
function Z(e) {
|
|
83
|
-
let t = J(e), n = t?.change ?? "unchanged", r = t?.instance?.linked ? t.instance.upToDate ? "up to date" : "updates inside" : void 0, i = (t?.role === "primary" || t?.regionHead) && n !== "unchanged", a = z.flagged?.[e.id];
|
|
84
|
-
return [
|
|
85
|
-
e.name,
|
|
86
|
-
e.tag,
|
|
87
|
-
r,
|
|
88
|
-
t?.mapped && "reused",
|
|
89
|
-
i && ($(e) ? "left out" : c[n]),
|
|
90
|
-
Q(e) && "contains changes",
|
|
91
|
-
a && `file warning: ${a}`
|
|
92
|
-
].filter(Boolean).join(", ");
|
|
93
|
-
}
|
|
94
|
-
function Q(e) {
|
|
95
|
-
return (J(e)?.change ?? "unchanged") !== "unchanged" || H.value.all || q.value.has(e.id) ? !1 : K.value.has(e.id);
|
|
96
|
-
}
|
|
97
|
-
function $(e) {
|
|
98
|
-
let t = J(e);
|
|
99
|
-
return t?.groupId ? o(t.change, z.decisions[t.groupId]) : !1;
|
|
100
|
-
}
|
|
101
|
-
function ee(e) {
|
|
102
|
-
let t = J(e), n = t?.change ?? "unchanged", r = s(n, t?.groupId ? z.decisions[t.groupId] : void 0);
|
|
103
|
-
return [
|
|
104
|
-
n === "unchanged" || r ? "text-base-content/80" : "text-base-content",
|
|
105
|
-
r && "line-through decoration-base-content/60",
|
|
106
|
-
Y(e) && "bg-primary/10 font-semibold"
|
|
107
|
-
];
|
|
108
|
-
}
|
|
109
|
-
function te(e) {
|
|
110
|
-
e.relatedTarget instanceof Node && (W.value = !!U.value?.$el.contains?.(e.relatedTarget));
|
|
111
|
-
}
|
|
112
|
-
function ne(e) {
|
|
113
|
-
V.value = d(z.items, z.meta, e.id), B("select", e);
|
|
114
|
-
}
|
|
115
|
-
function re(e, t) {
|
|
116
|
-
B("update:decision", e, t);
|
|
117
|
-
}
|
|
118
|
-
return (o, s) => (T(), g(O(n), {
|
|
119
|
-
ref_key: "explorer",
|
|
120
|
-
ref: U,
|
|
121
|
-
items: S.items,
|
|
122
|
-
expanded: H.value,
|
|
123
|
-
selected: S.selected,
|
|
124
|
-
"aria-label": "Merge changes",
|
|
125
|
-
"row-label": Z,
|
|
126
|
-
onSelect: ne,
|
|
127
|
-
"onUpdate:expanded": s[0] ||= (e) => H.value = e,
|
|
128
|
-
onFocusin: s[1] ||= (e) => W.value = !0,
|
|
129
|
-
onFocusout: te
|
|
130
|
-
}, {
|
|
131
|
-
"node-label": A(({ node: e }) => [y("span", { class: w(["ml-1 truncate rounded px-2 py-0.5 transition-all", ee(e)]) }, D(e.name), 3)]),
|
|
132
|
-
"node-suffix": A(({ node: n }) => [y("div", j, [
|
|
133
|
-
S.flagged?.[n.id] ? (T(), v("span", {
|
|
134
|
-
key: 0,
|
|
135
|
-
"data-testid": "file-warning",
|
|
136
|
-
role: "img",
|
|
137
|
-
"aria-label": `File warning: ${S.flagged[n.id]}`,
|
|
138
|
-
title: `File warning: ${S.flagged[n.id]}`,
|
|
139
|
-
class: "inline-flex shrink-0"
|
|
140
|
-
}, [x(O(t), {
|
|
141
|
-
class: "size-3.5 text-warning",
|
|
142
|
-
"aria-hidden": "true"
|
|
143
|
-
})], 8, M)) : _("", !0),
|
|
144
|
-
Q(n) ? (T(), v("span", N)) : _("", !0),
|
|
145
|
-
J(n)?.instance?.linked ? (T(), v("span", {
|
|
146
|
-
key: 2,
|
|
147
|
-
"data-testid": "instance-chip",
|
|
148
|
-
class: w(["badge gap-1 font-medium", [L, J(n)?.instance?.upToDate ? "badge-soft badge-success" : "badge-soft badge-warning"]]),
|
|
149
|
-
title: J(n)?.instance?.upToDate ? "An instance of the loaded template: nothing in it changes" : "An instance of the loaded template: something inside it changes"
|
|
150
|
-
}, [x(O(e), {
|
|
151
|
-
class: "size-3",
|
|
152
|
-
"aria-hidden": "true"
|
|
153
|
-
}), b(" " + D(J(n)?.instance?.upToDate ? "up to date" : "updates inside"), 1)], 10, P)) : _("", !0),
|
|
154
|
-
J(n)?.mapped ? (T(), v("span", {
|
|
155
|
-
key: 3,
|
|
156
|
-
class: w(["badge badge-soft badge-info gap-1 font-medium", L]),
|
|
157
|
-
title: "Reused: an element of the template lands on this element of the project, which keeps its own attributes"
|
|
158
|
-
}, [x(O(e), { class: "size-3" }), s[2] ||= b(" reused ", -1)])) : _("", !0),
|
|
159
|
-
J(n)?.role === "companion" && J(n)?.path ? (T(), v("span", {
|
|
160
|
-
key: 4,
|
|
161
|
-
class: "flex items-center gap-1 text-xs text-base-content/80",
|
|
162
|
-
title: J(n)?.path
|
|
163
|
-
}, [x(O(e), { class: "size-3" }), y("span", I, D(J(n)?.path), 1)], 8, F)) : _("", !0),
|
|
164
|
-
(J(n)?.role === "primary" || J(n)?.regionHead) && J(n)?.change !== "unchanged" ? (T(), v("span", {
|
|
165
|
-
key: 5,
|
|
166
|
-
"data-testid": "change-badge",
|
|
167
|
-
class: w(["badge font-medium", [L, $(n) ? O(a) : O(i)[J(n)?.change ?? "unchanged"]]])
|
|
168
|
-
}, D($(n) ? O(l) : O(c)[J(n)?.change ?? "unchanged"]), 3)) : _("", !0),
|
|
169
|
-
J(n)?.role === "primary" && J(n)?.groupId && X(n) ? (T(), g(r, {
|
|
170
|
-
key: 6,
|
|
171
|
-
size: "xs",
|
|
172
|
-
label: n.name,
|
|
173
|
-
change: J(n)?.change,
|
|
174
|
-
"model-value": S.decisions[J(n).groupId] ?? "accept",
|
|
175
|
-
"onUpdate:modelValue": (e) => re(J(n).groupId, e)
|
|
176
|
-
}, null, 8, [
|
|
177
|
-
"label",
|
|
178
|
-
"change",
|
|
179
|
-
"model-value",
|
|
180
|
-
"onUpdate:modelValue"
|
|
181
|
-
])) : _("", !0)
|
|
182
|
-
])]),
|
|
183
|
-
_: 1
|
|
184
|
-
}, 8, [
|
|
185
|
-
"items",
|
|
186
|
-
"expanded",
|
|
187
|
-
"selected"
|
|
188
|
-
]));
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
//#endregion
|
|
192
|
-
export { R as default };
|
package/dist/merge/review/components/type-name-authority.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ELEMENT_TO_COLOR as e } from "../../../icons/element-color-map.generated.js";
|
|
2
|
-
import { ELEMENT_TO_ICON as t } from "../../../icons/element-icon-mapper.js";
|
|
3
|
-
import "../../../icons/index.js";
|
|
4
|
-
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeModels as l, normalizeClass as u, openBlock as d, resolveDynamicComponent as f, unref as p, useModel as m } from "vue";
|
|
5
|
-
//#region lib/merge/review/components/type-name-authority.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var h = {
|
|
7
|
-
class: "flex items-center gap-1.5",
|
|
8
|
-
title: "Type de-duplication in the DataTypeTemplates section: when an incoming type is identical to an existing one but named differently, keep the name from this document"
|
|
9
|
-
}, g = {
|
|
10
|
-
class: "join",
|
|
11
|
-
role: "group",
|
|
12
|
-
"aria-label": "Keep type names from the target or the source document"
|
|
13
|
-
}, _ = ["disabled", "aria-pressed"], v = ["disabled", "aria-pressed"], y = /*@__PURE__*/ c({
|
|
14
|
-
__name: "type-name-authority",
|
|
15
|
-
props: /*@__PURE__*/ l({
|
|
16
|
-
size: {},
|
|
17
|
-
disabled: { type: Boolean },
|
|
18
|
-
hideLabel: { type: Boolean }
|
|
19
|
-
}, {
|
|
20
|
-
modelValue: { required: !0 },
|
|
21
|
-
modelModifiers: {}
|
|
22
|
-
}),
|
|
23
|
-
emits: ["update:modelValue"],
|
|
24
|
-
setup(c) {
|
|
25
|
-
let l = m(c, "modelValue"), y = c, b = t.DataTypeTemplates, x = e.DataTypeTemplates, S = r(() => ({
|
|
26
|
-
xs: "btn-xs",
|
|
27
|
-
sm: "btn-sm",
|
|
28
|
-
md: "btn-md",
|
|
29
|
-
undefined: "btn-xs"
|
|
30
|
-
})[y.size ?? "undefined"]);
|
|
31
|
-
return (e, t) => (d(), o("div", h, [c.hideLabel ? a("", !0) : (d(), o(n, { key: 0 }, [s("span", { class: u(["inline-flex items-center justify-center rounded-full p-1", [p(x).text, p(x).background]]) }, [(d(), i(f(p(b)), { class: "h-3.5 w-3.5" }))], 2), t[2] ||= s("span", { class: "text-base-content/80" }, "DataTypeTemplates - keep type names from:", -1)], 64)), s("div", g, [s("button", {
|
|
32
|
-
type: "button",
|
|
33
|
-
class: u(["btn join-item", [S.value, l.value === "target" ? "btn-primary" : "btn-ghost"]]),
|
|
34
|
-
disabled: c.disabled,
|
|
35
|
-
"aria-pressed": l.value === "target",
|
|
36
|
-
onClick: t[0] ||= (e) => l.value = "target"
|
|
37
|
-
}, " Project ", 10, _), s("button", {
|
|
38
|
-
type: "button",
|
|
39
|
-
class: u(["btn join-item", [S.value, l.value === "source" ? "btn-primary" : "btn-ghost"]]),
|
|
40
|
-
disabled: c.disabled,
|
|
41
|
-
"aria-pressed": l.value === "source",
|
|
42
|
-
onClick: t[1] ||= (e) => l.value = "source"
|
|
43
|
-
}, " Template ", 10, v)])]));
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
//#endregion
|
|
47
|
-
export { y as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region lib/merge/review/decision.ts
|
|
2
|
-
function e(e) {
|
|
3
|
-
return `Left out with ${e}, which it refers to. Take ${e} back to take this back.`;
|
|
4
|
-
}
|
|
5
|
-
function t(e, t) {
|
|
6
|
-
return e === "removed" || e === "target-only" ? t === "accept" : e === "added" && t === "skip";
|
|
7
|
-
}
|
|
8
|
-
function n(e, t) {
|
|
9
|
-
return e === "target-only" || e === "unchanged" ? !1 : t === "skip";
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { e as describeLeftOutWith, n as isLeftOut, t as willBeGone };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { getAttributes as e } from "../session/merge.service.js";
|
|
2
|
-
import { titleOf as t } from "./title.js";
|
|
3
|
-
//#region lib/merge/review/detail.ts
|
|
4
|
-
async function n(n, r, i, a, o) {
|
|
5
|
-
let s = new Map((r?.editableAttributes ?? []).map((e) => [e.attr, e])), c = [];
|
|
6
|
-
if (n.change === "added" && n.sourceRef) {
|
|
7
|
-
let t = await e(i.sourceQuery, n.sourceRef), r = a?.attributes ?? t;
|
|
8
|
-
for (let [e, n] of Object.entries(r)) {
|
|
9
|
-
if (n == null) continue;
|
|
10
|
-
let r = s.get(e), i = o?.(e) ?? t[e], l = !!r && !!a && i != null && i !== n;
|
|
11
|
-
c.push({
|
|
12
|
-
name: e,
|
|
13
|
-
status: "added",
|
|
14
|
-
after: n,
|
|
15
|
-
editable: r?.mode,
|
|
16
|
-
...l ? { adjusted: l } : {}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
for (let [e, t] of s) c.some((t) => t.name === e) || c.push({
|
|
20
|
-
name: e,
|
|
21
|
-
status: "added",
|
|
22
|
-
after: "",
|
|
23
|
-
editable: t.mode
|
|
24
|
-
});
|
|
25
|
-
} else if (n.change === "removed" && n.instanceRef) {
|
|
26
|
-
let t = await e(i.targetQuery, n.instanceRef);
|
|
27
|
-
for (let [e, n] of Object.entries(t)) n != null && c.push({
|
|
28
|
-
name: e,
|
|
29
|
-
status: "removed",
|
|
30
|
-
before: n
|
|
31
|
-
});
|
|
32
|
-
} else {
|
|
33
|
-
let t = n.instanceRef ?? n.sourceRef, r = n.instanceRef ? i.targetQuery : i.sourceQuery, a = t ? await e(r, t) : {}, o = /* @__PURE__ */ new Map();
|
|
34
|
-
for (let [e, t] of Object.entries(a)) t != null && o.set(e, {
|
|
35
|
-
name: e,
|
|
36
|
-
status: "unchanged",
|
|
37
|
-
after: t,
|
|
38
|
-
editable: s.get(e)?.mode
|
|
39
|
-
});
|
|
40
|
-
for (let e of n.attributeChanges ?? []) o.set(e.name, {
|
|
41
|
-
name: e.name,
|
|
42
|
-
status: "modified",
|
|
43
|
-
before: e.before,
|
|
44
|
-
after: e.after,
|
|
45
|
-
editable: s.get(e.name)?.mode
|
|
46
|
-
});
|
|
47
|
-
for (let [e, t] of s) o.has(e) || o.set(e, {
|
|
48
|
-
name: e,
|
|
49
|
-
status: "unchanged",
|
|
50
|
-
after: "",
|
|
51
|
-
editable: t.mode
|
|
52
|
-
});
|
|
53
|
-
c.push(...o.values());
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
tag: n.tagName,
|
|
57
|
-
title: n.change === "added" && a ? a.title : await t(n, i),
|
|
58
|
-
change: n.change,
|
|
59
|
-
attributes: c
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
export { n as buildDetail };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
//#region lib/merge/review/highlight.ts
|
|
2
|
-
function e(e, t, n) {
|
|
3
|
-
let r = o(e, n) ?? [];
|
|
4
|
-
for (let e = r.length - 1; e >= 0; e--) {
|
|
5
|
-
let n = t[r[e].id]?.groupId;
|
|
6
|
-
if (n) return {
|
|
7
|
-
groupId: n,
|
|
8
|
-
rootId: r[e].id
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
function t(e, t, i) {
|
|
13
|
-
let a = r(e, n(t, i.groupId) ?? i.rootId);
|
|
14
|
-
for (let [e, n] of Object.entries(t)) n.groupId === i.groupId && a.add(e);
|
|
15
|
-
return a;
|
|
16
|
-
}
|
|
17
|
-
function n(e, t) {
|
|
18
|
-
for (let [n, r] of Object.entries(e)) if (r.groupId === t && r.role === "primary") return n;
|
|
19
|
-
}
|
|
20
|
-
function r(e, t) {
|
|
21
|
-
let n = /* @__PURE__ */ new Set(), r = i(e, t);
|
|
22
|
-
return r && a(r, n), n;
|
|
23
|
-
}
|
|
24
|
-
function i(e, t) {
|
|
25
|
-
for (let n of e) {
|
|
26
|
-
if (n.id === t) return n;
|
|
27
|
-
let e = n.children && i(n.children, t);
|
|
28
|
-
if (e) return e;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function a(e, t) {
|
|
32
|
-
t.add(e.id);
|
|
33
|
-
for (let n of e.children ?? []) a(n, t);
|
|
34
|
-
}
|
|
35
|
-
function o(e, t, n = []) {
|
|
36
|
-
for (let r of e) {
|
|
37
|
-
let e = [...n, r];
|
|
38
|
-
if (r.id === t) return e;
|
|
39
|
-
let i = r.children && o(r.children, t, e);
|
|
40
|
-
if (i) return i;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
export { r as collectSubtreeIds, t as coupledNodeIds, e as focusForNode, o as pathTo, n as primaryIdOf };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region lib/merge/review/marks.ts
|
|
2
|
-
var e = /* @__PURE__ */ new Set([
|
|
3
|
-
"added",
|
|
4
|
-
"modified",
|
|
5
|
-
"removed"
|
|
6
|
-
]);
|
|
7
|
-
function t(e) {
|
|
8
|
-
let t = e.changeable.some((e) => e.rows.some((e) => e.target.kind === "create"));
|
|
9
|
-
return new Set(t ? ["added"] : []);
|
|
10
|
-
}
|
|
11
|
-
function n(t) {
|
|
12
|
-
let { meta: n, holdsChanges: r, renamed: i, flagged: a } = t, o = /* @__PURE__ */ new Set();
|
|
13
|
-
for (let t of Object.values(n)) t.instance?.linked && !t.instance.upToDate && o.add("updates-inside"), (t.role === "primary" || t.regionHead) && t.change !== "unchanged" && o.add(t.change), t.groupId && e.has(t.change) && o.add("left-out"), t.mapped && o.add("reused");
|
|
14
|
-
return r && o.add("contains-changes"), i && o.add("renamed"), a && o.add("file-warning"), o;
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { n as marksDrawn, t as marksOnMatch };
|