@septkit/ui 0.0.80 → 0.0.82
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.8.0/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/dialecte-oAXwOG-Q.js} +69 -69
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js} +1 -1
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js +3 -0
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js +6 -0
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js} +83 -83
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.9.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js} +2 -2
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/same-json-value-C6kUaoyt.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/same-json-value-_AChwM_n.js} +47 -47
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js} +64 -138
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.9.0}/node_modules/@dialecte/core/dist/utils.js +1 -1
- package/dist/external/.pnpm/{@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js → @dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js} +262 -234
- 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 +3 -0
- package/dist/index.d.ts +16 -11
- package/dist/index.js +12 -12
- package/dist/merge/check-files/identity-warning.js +2 -1
- package/dist/merge/confirm/outcome.js +4 -4
- package/dist/merge/done/applied-focus.js +1 -1
- package/dist/merge/match/match.js +4 -4
- package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/merge/session/merge.service.js +25 -19
- package/dist/merge/session/use-merge-session.js +11 -1
- package/dist/merge/wording.js +4 -4
- package/dist/selector-input/index.js +3 -3
- package/dist/selector-input/selector-input.js +4 -89
- package/dist/selector-input/selector-input.vue_vue_type_script_setup_true_lang.js +91 -89
- package/dist/selector-input/selector-xpath.js +92 -0
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js +0 -3
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js +0 -5
- package/dist/external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -22
- package/dist/selector-input/selector-input2.js +0 -5
|
@@ -1,58 +1,57 @@
|
|
|
1
|
-
import { buildXpath as e, parseXpath as t,
|
|
2
|
-
import { Fragment as
|
|
1
|
+
import { buildXpath as e, parseXpath as t, validateSearchText as n, validateXpath as r } from "./selector-xpath.js";
|
|
2
|
+
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, defineComponent as l, mergeModels as u, normalizeClass as d, onBeforeUnmount as f, openBlock as p, reactive as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, useModel as y, vModelText as b, watch as x, withDirectives as S } from "vue";
|
|
3
3
|
//#region lib/selector-input/selector-input.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
4
|
+
var C = {
|
|
5
5
|
class: "flex flex-col gap-2",
|
|
6
6
|
"data-testid": "selector-input"
|
|
7
|
-
},
|
|
7
|
+
}, w = { class: "tabs tabs-box w-fit tabs-sm" }, T = ["data-testid", "onClick"], E = {
|
|
8
8
|
key: 0,
|
|
9
9
|
role: "status",
|
|
10
10
|
class: "alert alert-soft alert-info py-2 text-sm",
|
|
11
11
|
"data-testid": "selector-input-custom-hint"
|
|
12
|
-
},
|
|
12
|
+
}, D = { class: "fieldset" }, O = { class: "flex flex-wrap gap-2" }, k = [
|
|
13
13
|
"aria-pressed",
|
|
14
14
|
"data-testid",
|
|
15
15
|
"onClick"
|
|
16
|
-
],
|
|
16
|
+
], A = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "fieldset"
|
|
19
|
-
},
|
|
19
|
+
}, j = { class: "fieldset-legend text-sm font-medium" }, M = {
|
|
20
20
|
class: "join",
|
|
21
21
|
role: "group",
|
|
22
22
|
"aria-label": "Name match"
|
|
23
|
-
},
|
|
23
|
+
}, N = [
|
|
24
24
|
"aria-pressed",
|
|
25
25
|
"data-testid",
|
|
26
26
|
"onClick"
|
|
27
|
-
],
|
|
27
|
+
], P = [
|
|
28
28
|
"value",
|
|
29
29
|
"aria-label",
|
|
30
30
|
"placeholder"
|
|
31
|
-
],
|
|
32
|
-
key: 0,
|
|
33
|
-
class: "label text-error",
|
|
34
|
-
role: "alert",
|
|
35
|
-
"data-testid": "selector-input-search-error"
|
|
36
|
-
}, M = {
|
|
31
|
+
], F = {
|
|
37
32
|
key: 1,
|
|
38
33
|
class: "fieldset"
|
|
39
|
-
},
|
|
34
|
+
}, I = ["disabled"], L = {
|
|
40
35
|
key: 0,
|
|
41
36
|
class: "label text-error",
|
|
42
37
|
role: "alert",
|
|
43
38
|
"data-testid": "selector-input-error"
|
|
44
|
-
},
|
|
45
|
-
key:
|
|
39
|
+
}, R = {
|
|
40
|
+
key: 2,
|
|
46
41
|
class: "label text-error",
|
|
47
42
|
role: "alert",
|
|
48
43
|
"data-testid": "selector-input-search-error"
|
|
49
|
-
},
|
|
44
|
+
}, z = /*@__PURE__*/ l({
|
|
50
45
|
__name: "selector-input",
|
|
51
|
-
props: /*@__PURE__*/
|
|
46
|
+
props: /*@__PURE__*/ u({
|
|
52
47
|
anchors: {},
|
|
53
48
|
anywhereLabel: { default: "Anywhere" },
|
|
54
49
|
targets: { default: () => [] },
|
|
55
|
-
|
|
50
|
+
nameParent: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !1
|
|
53
|
+
},
|
|
54
|
+
nameLabel: { default: "Name" },
|
|
56
55
|
searchable: {
|
|
57
56
|
type: Boolean,
|
|
58
57
|
default: !0
|
|
@@ -71,8 +70,14 @@ var x = {
|
|
|
71
70
|
invalidModifiers: {}
|
|
72
71
|
}),
|
|
73
72
|
emits: ["update:modelValue", "update:invalid"],
|
|
74
|
-
setup(
|
|
75
|
-
let l = [
|
|
73
|
+
setup(l) {
|
|
74
|
+
let u = l, z = y(l, "modelValue"), B = y(l, "invalid"), V = [{
|
|
75
|
+
value: "builder",
|
|
76
|
+
label: "Builder"
|
|
77
|
+
}, {
|
|
78
|
+
value: "xpath",
|
|
79
|
+
label: "XPath"
|
|
80
|
+
}], H = [
|
|
76
81
|
{
|
|
77
82
|
value: "equals",
|
|
78
83
|
label: "Full name"
|
|
@@ -89,92 +94,89 @@ var x = {
|
|
|
89
94
|
value: "contains",
|
|
90
95
|
label: "Contains"
|
|
91
96
|
}
|
|
92
|
-
],
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
y(Y, (e) => R.value = e, { immediate: !0 }), d(() => R.value = !1), y(L, (e) => {
|
|
97
|
-
let n = t(e);
|
|
98
|
-
B.value = n?.anchor ?? "", V.value = n?.targets ?? I.targets, U.value = n?.nameFilter?.value ?? "", n?.nameFilter && (H.value = n.nameFilter.match);
|
|
97
|
+
], U = h("builder"), W = m({
|
|
98
|
+
anchor: "",
|
|
99
|
+
match: "contains",
|
|
100
|
+
search: ""
|
|
99
101
|
});
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
Q(z.value), x(z, Q);
|
|
103
|
+
let G = a(() => t(z.value)), K = a(() => z.value !== "" && G.value === void 0), q = a(() => u.allowXpath ? r(z.value) : void 0), J = a(() => n(W.search)), Y = a(() => [{
|
|
104
|
+
value: "",
|
|
105
|
+
label: u.anywhereLabel
|
|
106
|
+
}, ...u.anchors]), X = a(() => `Search by ${u.nameLabel.toLowerCase()}`), Z = a(() => `A custom XPath is in use. Choosing a scope${u.searchable ? " or entering a search" : ""} replaces it.`);
|
|
107
|
+
x(() => !!(J.value || q.value), (e) => B.value = e, { immediate: !0 }), f(() => B.value = !1);
|
|
103
108
|
function Q(e) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
let n = t(e);
|
|
110
|
+
if (W.anchor = n?.anchor ?? "", n?.nameFilter) {
|
|
111
|
+
W.search = n.nameFilter.value, W.match = n.nameFilter.match;
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
W.search && (W.search = "", W.match = "contains");
|
|
108
115
|
}
|
|
109
|
-
function $() {
|
|
110
|
-
J.value
|
|
111
|
-
anchor:
|
|
112
|
-
targets:
|
|
116
|
+
function $(t) {
|
|
117
|
+
Object.assign(W, t), !J.value && (z.value = e({
|
|
118
|
+
anchor: W.anchor,
|
|
119
|
+
targets: G.value?.targets ?? u.targets,
|
|
113
120
|
nameFilter: {
|
|
114
|
-
match:
|
|
115
|
-
value:
|
|
121
|
+
match: W.match,
|
|
122
|
+
value: W.search
|
|
116
123
|
},
|
|
117
|
-
|
|
124
|
+
nameParent: G.value?.nameParent ?? u.nameParent
|
|
118
125
|
}));
|
|
119
126
|
}
|
|
120
|
-
return (e, t) => (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
class: u(["tab", { "tab-active": W.value === "builder" }]),
|
|
124
|
-
"data-testid": "selector-input-mode-builder",
|
|
125
|
-
onClick: t[0] ||= (e) => W.value = "builder"
|
|
126
|
-
}, " Builder ", 2), s("button", {
|
|
127
|
+
return (e, t) => (p(), s("div", C, [
|
|
128
|
+
c("div", w, [(p(), s(i, null, g(V, (e) => c("button", {
|
|
129
|
+
key: e.value,
|
|
127
130
|
type: "button",
|
|
128
|
-
class:
|
|
129
|
-
"data-testid":
|
|
130
|
-
onClick: t
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
class: d(["tab", { "tab-active": U.value === e.value }]),
|
|
132
|
+
"data-testid": `selector-input-mode-${e.value}`,
|
|
133
|
+
onClick: (t) => U.value = e.value
|
|
134
|
+
}, v(e.label), 11, T)), 64))]),
|
|
135
|
+
U.value === "builder" ? (p(), s(i, { key: 0 }, [
|
|
136
|
+
K.value ? (p(), s("div", E, v(Z.value), 1)) : o("", !0),
|
|
137
|
+
c("fieldset", D, [t[2] ||= c("legend", { class: "fieldset-legend text-sm font-medium" }, "Scope", -1), c("div", O, [(p(!0), s(i, null, g(Y.value, (e) => (p(), s("button", {
|
|
135
138
|
key: e.value,
|
|
136
139
|
type: "button",
|
|
137
|
-
class:
|
|
138
|
-
"aria-pressed": !
|
|
140
|
+
class: d(["badge badge-sm cursor-pointer", !K.value && W.anchor === e.value ? "badge-primary" : "badge-soft"]),
|
|
141
|
+
"aria-pressed": !K.value && W.anchor === e.value,
|
|
139
142
|
"data-testid": `selector-input-anchor-${e.value || "none"}`,
|
|
140
|
-
onClick: (t) =>
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
onClick: (t) => $({ anchor: e.value })
|
|
144
|
+
}, v(e.label), 11, k))), 128))])]),
|
|
145
|
+
l.searchable ? (p(), s("fieldset", A, [
|
|
146
|
+
c("legend", j, v(l.nameLabel), 1),
|
|
147
|
+
c("div", M, [(p(), s(i, null, g(H, (e) => c("button", {
|
|
145
148
|
key: e.value,
|
|
146
149
|
type: "button",
|
|
147
|
-
class:
|
|
148
|
-
"aria-pressed":
|
|
150
|
+
class: d(["btn btn-sm join-item", { "btn-primary": W.match === e.value }]),
|
|
151
|
+
"aria-pressed": W.match === e.value,
|
|
149
152
|
"data-testid": `selector-input-match-${e.value}`,
|
|
150
|
-
onClick: (t) =>
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
value:
|
|
153
|
+
onClick: (t) => $({ match: e.value })
|
|
154
|
+
}, v(e.label), 11, N)), 64))]),
|
|
155
|
+
c("input", {
|
|
156
|
+
value: W.search,
|
|
154
157
|
type: "search",
|
|
155
|
-
"aria-label":
|
|
156
|
-
class:
|
|
157
|
-
placeholder:
|
|
158
|
+
"aria-label": X.value,
|
|
159
|
+
class: d(["input input-sm w-full", { "input-error": J.value }]),
|
|
160
|
+
placeholder: X.value,
|
|
158
161
|
"data-testid": "selector-input-search",
|
|
159
|
-
onInput: t[
|
|
160
|
-
}, null, 42,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"onUpdate:modelValue": t[3] ||= (e) => L.value = e,
|
|
162
|
+
onInput: t[0] ||= (e) => $({ search: e.target.value })
|
|
163
|
+
}, null, 42, P)
|
|
164
|
+
])) : o("", !0)
|
|
165
|
+
], 64)) : (p(), s("fieldset", F, [
|
|
166
|
+
t[3] ||= c("legend", { class: "fieldset-legend" }, "XPath", -1),
|
|
167
|
+
S(c("input", {
|
|
168
|
+
"onUpdate:modelValue": t[1] ||= (e) => z.value = e,
|
|
167
169
|
type: "text",
|
|
168
|
-
disabled: !
|
|
169
|
-
class:
|
|
170
|
+
disabled: !l.allowXpath,
|
|
171
|
+
class: d(["input w-full font-mono", { "input-error": q.value }]),
|
|
170
172
|
"data-testid": "selector-input-raw"
|
|
171
|
-
}, null, 10,
|
|
172
|
-
|
|
173
|
-
J.value ? (f(), o("p", F, g(J.value), 1)) : a("", !0)
|
|
173
|
+
}, null, 10, I), [[b, z.value]]),
|
|
174
|
+
q.value ? (p(), s("p", L, v(q.value), 1)) : o("", !0)
|
|
174
175
|
])),
|
|
175
|
-
|
|
176
|
+
J.value ? (p(), s("p", R, v(J.value), 1)) : o("", !0),
|
|
177
|
+
_(e.$slots, "footer")
|
|
176
178
|
]));
|
|
177
179
|
}
|
|
178
180
|
});
|
|
179
181
|
//#endregion
|
|
180
|
-
export {
|
|
182
|
+
export { z as default };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
//#region lib/selector-input/selector-xpath.ts
|
|
2
|
+
var e = "Search text must not contain both single and double quotes", t = "[\\w.-]+", n = RegExp(`^${t}$`), r = "(?:'[^']*'|\"[^\"]*\")", i = `local-name\\(\\)='${t}'`, a = `${i}(?: or ${i})*`, o = `(?:@name=(${r})|(starts-with|contains)\\(@name,(${r})\\)|substring\\(@name,string-length\\(@name\\)-string-length\\((${r})\\)\\+1\\)=(${r}))`, s = RegExp(`^${o}$`), c = RegExp(`^(?:ancestor::\\*\\[local-name\\(\\)='(?<anchor>${t})'\\]\\[1\\])?//\\*(?:\\[(?<targets>${a})\\])?(?:\\[(?<ownName>${o})\\]|\\[ancestor::\\*\\[${a}\\]\\[1\\]\\[(?<ownerName>${o})\\]\\]|\\[parent::\\*\\[(?<parentName>${o})\\]\\])?$`);
|
|
3
|
+
function l({ anchor: e, targets: t, nameFilter: n, nameParent: r = !1 }) {
|
|
4
|
+
e && x(e), t.forEach(x);
|
|
5
|
+
let i = n?.value ? n : void 0;
|
|
6
|
+
return !e && t.length === 0 && !i ? "" : `${e ? `ancestor::*[local-name()='${e}'][1]` : ""}//*${t.length > 0 ? `[${m(t)}]` : ""}${i ? h(i, r) : ""}`;
|
|
7
|
+
}
|
|
8
|
+
function u(e) {
|
|
9
|
+
let t = c.exec(e)?.groups;
|
|
10
|
+
if (!t) return;
|
|
11
|
+
let { anchor: n = "", targets: r = "", ownName: i, ownerName: a, parentName: o } = t, s = i ?? a ?? o, l = s ? v(s) : void 0;
|
|
12
|
+
if (s && !l || !n && !r && !l) return;
|
|
13
|
+
let u = {
|
|
14
|
+
anchor: n,
|
|
15
|
+
targets: _(r)
|
|
16
|
+
};
|
|
17
|
+
return l ? i ? {
|
|
18
|
+
...u,
|
|
19
|
+
nameFilter: l
|
|
20
|
+
} : {
|
|
21
|
+
...u,
|
|
22
|
+
nameFilter: l,
|
|
23
|
+
nameParent: !0
|
|
24
|
+
} : u;
|
|
25
|
+
}
|
|
26
|
+
function d({ match: e, value: t }, n) {
|
|
27
|
+
if (n === void 0) return !1;
|
|
28
|
+
switch (e) {
|
|
29
|
+
case "equals": return n === t;
|
|
30
|
+
case "starts-with": return n.startsWith(t);
|
|
31
|
+
case "ends-with": return n.endsWith(t);
|
|
32
|
+
case "contains": return n.includes(t);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function f(e) {
|
|
36
|
+
if (e.trim() !== "") try {
|
|
37
|
+
let t = document.implementation.createDocument(null, "root");
|
|
38
|
+
t.evaluate(e, t, null, XPathResult.ANY_TYPE, null);
|
|
39
|
+
return;
|
|
40
|
+
} catch (e) {
|
|
41
|
+
return e instanceof Error && e.message || "Invalid XPath";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function p(t) {
|
|
45
|
+
return t.includes("'") && t.includes("\"") ? e : void 0;
|
|
46
|
+
}
|
|
47
|
+
function m(e) {
|
|
48
|
+
return e.map((e) => `local-name()='${e}'`).join(" or ");
|
|
49
|
+
}
|
|
50
|
+
function h(e, t) {
|
|
51
|
+
let n = g(e);
|
|
52
|
+
return t ? `[parent::*[${n}]]` : `[${n}]`;
|
|
53
|
+
}
|
|
54
|
+
function g({ match: e, value: t }) {
|
|
55
|
+
let n = y(t);
|
|
56
|
+
switch (e) {
|
|
57
|
+
case "equals": return `@name=${n}`;
|
|
58
|
+
case "starts-with":
|
|
59
|
+
case "contains": return `${e}(@name,${n})`;
|
|
60
|
+
case "ends-with": return `substring(@name,string-length(@name)-string-length(${n})+1)=${n}`;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function _(e) {
|
|
64
|
+
return [...e.matchAll(/local-name\(\)='([^']+)'/g)].map((e) => e[1]);
|
|
65
|
+
}
|
|
66
|
+
function v(e) {
|
|
67
|
+
let t = s.exec(e);
|
|
68
|
+
if (!t) return;
|
|
69
|
+
let [, n, r, i, a, o] = t;
|
|
70
|
+
return n ? {
|
|
71
|
+
match: "equals",
|
|
72
|
+
value: b(n)
|
|
73
|
+
} : r && i ? {
|
|
74
|
+
match: r,
|
|
75
|
+
value: b(i)
|
|
76
|
+
} : a === o ? {
|
|
77
|
+
match: "ends-with",
|
|
78
|
+
value: b(a)
|
|
79
|
+
} : void 0;
|
|
80
|
+
}
|
|
81
|
+
function y(t) {
|
|
82
|
+
if (p(t)) throw Error(e);
|
|
83
|
+
return t.includes("'") ? `"${t}"` : `'${t}'`;
|
|
84
|
+
}
|
|
85
|
+
function b(e) {
|
|
86
|
+
return e.slice(1, -1);
|
|
87
|
+
}
|
|
88
|
+
function x(e) {
|
|
89
|
+
if (!n.test(e)) throw Error(`Invalid element name "${e}"`);
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
export { l as buildXpath, d as matchName, u as parseXpath, p as validateSearchText, f as validateXpath };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@septkit/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.82",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"source": "lib/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"./uicss": "./dist/ui.css"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dialecte/core": "0.
|
|
20
|
-
"@dialecte/scl": "0.
|
|
19
|
+
"@dialecte/core": "0.9.0",
|
|
20
|
+
"@dialecte/scl": "0.14.0",
|
|
21
21
|
"@lucide/vue": "^1.16.0",
|
|
22
22
|
"@tailwindcss/vite": "4.2.2",
|
|
23
23
|
"@vueuse/components": "^13.9.0",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { G as e, H as t, U as n } from "./utils-USNkj4sT.js";
|
|
2
|
-
import "./project-key-Ch34EtFa.js";
|
|
3
|
-
import "./same-json-value-C6kUaoyt.js";
|
|
4
|
-
import { V as r } from "./dialecte-gIPrRzni.js";
|
|
5
|
-
export { r as bindExtensions, t as defineErrors, n as isKnownDialecteError, e as toDialecteError };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import "../../../../../../@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js";
|
|
2
|
-
import { _ as e, i as t, m as n, nt as r } from "../hooks-F61-rgXT.js";
|
|
3
|
-
//#region node_modules/.pnpm/@dialecte+scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js
|
|
4
|
-
var i = {
|
|
5
|
-
"cross-type-template-uuid": {
|
|
6
|
-
title: "Placeholder templateUuid reused across element types",
|
|
7
|
-
description: "One templateUuid is carried by elements of several different types, so it cannot identify a single template element — it is an authoring placeholder, not real lineage.",
|
|
8
|
-
fallback: "Template lineage is ignored for these elements: none is recognised as an instance of a template element. A report then lists the template element as new and the existing element as an addition of the project."
|
|
9
|
-
},
|
|
10
|
-
"duplicate-instance-uuid": {
|
|
11
|
-
title: "Duplicate instance uuid",
|
|
12
|
-
description: "The same uuid is used by more than one element. Every instance uuid in an SCL must be unique, so uuid-based identity is ambiguous for the affected elements.",
|
|
13
|
-
fallback: "Identity by uuid is ambiguous for the affected elements: which of them a reference or a template element resolves to is not defined."
|
|
14
|
-
},
|
|
15
|
-
"template-uuid-type-mismatch": {
|
|
16
|
-
title: "templateUuid resolves to a different element type",
|
|
17
|
-
description: "A templateUuid points in-file to an element of a different type than the one carrying it. An instance cannot derive from a template of another type, so the lineage is inconsistent.",
|
|
18
|
-
fallback: "The mismatched lineage is ignored: the element is not recognised as an instance of a template element. A report then lists the template element as new and the existing element as an addition of the project."
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { n as SCL_ERRORS, r as TEMPLATE_NAME, i as TEMPLATE_UUID_WARNING_INFO, e as getPathSegment, t as presentationScope };
|