@septkit/ui 0.0.75 → 0.0.77
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-live-data.js +2 -1
- package/dist/dialecte/create-document-store.js +4 -4
- package/dist/dropdown/multi-select.vue_vue_type_script_setup_true_lang.js +64 -48
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js +4415 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js +179 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js +3 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js +5 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js +1370 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +13 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js +61 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/same-json-value-C6kUaoyt.js +1543 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js +962 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils.js +2 -0
- package/dist/external/.pnpm/{@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/hooks-C05NpRNi.js → @dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js} +974 -242
- package/dist/external/.pnpm/{@dialecte_scl@0.8.1 → @dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10}/node_modules/@dialecte/scl/dist/v2019C1/index.js +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -10
- package/dist/merge/check-files/identity-warning.js +1 -1
- package/dist/merge/confirm/outcome.js +4 -3
- package/dist/merge/match/match.js +6 -7
- package/dist/merge/session/merge.service.js +2 -2
- package/dist/merge/session/use-merge-session.js +2 -0
- package/dist/merge/wording.js +6 -7
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/helpers.js +0 -229
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/index.js +0 -3
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/project-sK-5Xc-5.js +0 -7371
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils-CTBHUFs9.js +0 -440
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils.js +0 -2
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { O as e, S as t, W as n, b as r, c as i, d as a, f as o, k as s, l as c, s as l, u, w as d, y as f } from "./utils-USNkj4sT.js";
|
|
2
|
+
function p(e) {
|
|
3
|
+
return {
|
|
4
|
+
id: e.id,
|
|
5
|
+
tagName: e.tagName,
|
|
6
|
+
namespace: e.namespace,
|
|
7
|
+
attributes: e.attributes,
|
|
8
|
+
value: e.value,
|
|
9
|
+
parent: e.parent,
|
|
10
|
+
children: e.children
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function m(e) {
|
|
14
|
+
let { dialecteConfig: t, tagName: n, attributes: r, stored: i = [] } = e;
|
|
15
|
+
return (Array.isArray(r) ? r : Object.entries(r).map(([e, r]) => ({
|
|
16
|
+
name: e,
|
|
17
|
+
value: r,
|
|
18
|
+
namespace: h({
|
|
19
|
+
dialecteConfig: t,
|
|
20
|
+
tagName: n,
|
|
21
|
+
name: e
|
|
22
|
+
}) ?? i.find((t) => t.name === e)?.namespace
|
|
23
|
+
}))).map((e) => g({
|
|
24
|
+
attribute: e,
|
|
25
|
+
dialecteConfig: t,
|
|
26
|
+
tagName: n
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
function h(e) {
|
|
30
|
+
let { dialecteConfig: t, tagName: n, name: r } = e, i = t.definition[n];
|
|
31
|
+
if (i === void 0) return;
|
|
32
|
+
let a = Object.values(i.declarations ?? {}), o = [i, ...a].flatMap((e) => e.variants ?? []), s = [
|
|
33
|
+
i,
|
|
34
|
+
...a,
|
|
35
|
+
...o.flatMap((e) => t.types[e] ?? [])
|
|
36
|
+
];
|
|
37
|
+
for (let e of s) {
|
|
38
|
+
let t = e.attributes.details[r]?.namespace;
|
|
39
|
+
if (t) return t;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function g(e) {
|
|
43
|
+
let { attribute: t, dialecteConfig: r, tagName: i } = e, a;
|
|
44
|
+
typeof t.namespace == "string" ? (a = u(r, t.namespace), a || n("UNKNOWN_NAMESPACE_PREFIX", {
|
|
45
|
+
detail: `Unknown namespace '${t.namespace}' on attribute '${t.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
|
|
46
|
+
ref: { tagName: i }
|
|
47
|
+
})) : a = t.namespace;
|
|
48
|
+
let o = t.name.indexOf(":");
|
|
49
|
+
if (!a && o !== -1) {
|
|
50
|
+
let e = t.name.slice(0, o);
|
|
51
|
+
e !== "xmlns" && (a = c(r, e), a || n("UNKNOWN_NAMESPACE_PREFIX", {
|
|
52
|
+
detail: `Unknown namespace prefix '${e}' on attribute '${t.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
|
|
53
|
+
ref: { tagName: i }
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
return a && a.prefix && a.uri !== "http://www.w3.org/2000/xmlns/" && (a = _({
|
|
57
|
+
dialecteConfig: r,
|
|
58
|
+
uri: a.uri
|
|
59
|
+
}) ?? a), a && a.prefix && a.prefix !== "xmlns" ? {
|
|
60
|
+
...t,
|
|
61
|
+
name: `${a.prefix}:${f(t.name)}`,
|
|
62
|
+
namespace: a
|
|
63
|
+
} : (t.namespace, {
|
|
64
|
+
...t,
|
|
65
|
+
namespace: a
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function _(e) {
|
|
69
|
+
let { dialecteConfig: t, uri: n } = e;
|
|
70
|
+
return Object.values(t.namespaces).find((e) => e.uri === n && e.prefix !== "");
|
|
71
|
+
}
|
|
72
|
+
function v(e) {
|
|
73
|
+
return o(e, { detail: "The record or ref is undefined" }), {
|
|
74
|
+
id: e.id,
|
|
75
|
+
tagName: e.tagName
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function y(e) {
|
|
79
|
+
let { dialecteConfig: t, hooks: n, record: r } = e, { id: a, tagName: o, attributes: s, namespace: c, value: u } = r, f = a ?? crypto.randomUUID(), p = b({
|
|
80
|
+
dialecteConfig: t,
|
|
81
|
+
attributes: s ? m({
|
|
82
|
+
tagName: o,
|
|
83
|
+
attributes: s,
|
|
84
|
+
dialecteConfig: t
|
|
85
|
+
}) : []
|
|
86
|
+
}), h = {
|
|
87
|
+
id: f,
|
|
88
|
+
tagName: o,
|
|
89
|
+
attributes: p,
|
|
90
|
+
namespace: c ?? {
|
|
91
|
+
prefix: "prefixNeededForNotSupportedNamespace",
|
|
92
|
+
uri: "uriNeededForNotSupportedNamespace"
|
|
93
|
+
},
|
|
94
|
+
value: u ?? "",
|
|
95
|
+
parent: r.parent ?? null,
|
|
96
|
+
children: r.children ?? []
|
|
97
|
+
}, g = Object.values(t.namespaces).map(({ uri: e }) => e), _ = c?.uri != null && !g.includes(c.uri);
|
|
98
|
+
if (!t.elements.includes(o) || _) return h;
|
|
99
|
+
let v = d({
|
|
100
|
+
dialecteConfig: t,
|
|
101
|
+
record: {
|
|
102
|
+
...h,
|
|
103
|
+
namespace: c
|
|
104
|
+
}
|
|
105
|
+
}), y = v?.attributes.sequence ?? [], x = l({
|
|
106
|
+
wildcard: v?.attributes.any,
|
|
107
|
+
namespaceUri: ""
|
|
108
|
+
}), S = p.filter((e) => {
|
|
109
|
+
let t = y.includes(e.name), n = "namespace" in e && e.namespace != null;
|
|
110
|
+
if (!t && !n && !x) return !1;
|
|
111
|
+
if (!t) return !0;
|
|
112
|
+
if (e.value === void 0 || e.value === null) return !1;
|
|
113
|
+
if (e.value !== "") return !0;
|
|
114
|
+
let r = v?.attributes.details[e.name];
|
|
115
|
+
return r?.default !== void 0 || r?.fixed !== void 0;
|
|
116
|
+
}), C = t.namespaces.default.uri, w = S.map((e) => {
|
|
117
|
+
if ("namespace" in e && e.namespace?.uri === C) {
|
|
118
|
+
let { namespace: t, ...n } = e;
|
|
119
|
+
return n;
|
|
120
|
+
}
|
|
121
|
+
return e;
|
|
122
|
+
}), T = t.definition[o], E = [v?.namespace ?? T.namespace, ...Object.values(T.declarations ?? {}).map((e) => e.namespace)], D = E.find((e) => e.uri === c?.uri), O = {
|
|
123
|
+
...h,
|
|
124
|
+
namespace: D ?? c ?? E[0],
|
|
125
|
+
attributes: i(w, y)
|
|
126
|
+
};
|
|
127
|
+
return n?.afterStandardizedRecord && (O = n.afterStandardizedRecord({ record: O }), O = {
|
|
128
|
+
...O,
|
|
129
|
+
attributes: i(b({
|
|
130
|
+
dialecteConfig: t,
|
|
131
|
+
attributes: O.attributes
|
|
132
|
+
}), y)
|
|
133
|
+
}), O;
|
|
134
|
+
}
|
|
135
|
+
function b(t) {
|
|
136
|
+
let { dialecteConfig: n, attributes: r } = t;
|
|
137
|
+
return s({
|
|
138
|
+
dialecteConfig: n,
|
|
139
|
+
attributes: r,
|
|
140
|
+
namespaceOf: e({
|
|
141
|
+
dialecteConfig: n,
|
|
142
|
+
attributes: r
|
|
143
|
+
})
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
function x(e) {
|
|
147
|
+
let { record: n, dialecteConfig: i, name: a, namespace: o, fullObject: s, defaults: c = "optional" } = e, l = S({
|
|
148
|
+
dialecteConfig: i,
|
|
149
|
+
name: a,
|
|
150
|
+
namespace: o
|
|
151
|
+
}), u = n.attributes.find((e) => e.name === l);
|
|
152
|
+
if (u) return s ? u : u.value;
|
|
153
|
+
let d = t({
|
|
154
|
+
dialecteConfig: i,
|
|
155
|
+
record: n,
|
|
156
|
+
attributeName: l,
|
|
157
|
+
defaults: c
|
|
158
|
+
});
|
|
159
|
+
if (!s) return d ?? "";
|
|
160
|
+
if (d === void 0) return;
|
|
161
|
+
let { namespace: f } = r({
|
|
162
|
+
dialecteConfig: i,
|
|
163
|
+
record: n,
|
|
164
|
+
attributeName: l
|
|
165
|
+
});
|
|
166
|
+
return {
|
|
167
|
+
name: l,
|
|
168
|
+
value: d,
|
|
169
|
+
namespace: f
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
function S(e) {
|
|
173
|
+
let { dialecteConfig: t, name: n, namespace: r } = e;
|
|
174
|
+
if (r === void 0) return n;
|
|
175
|
+
let i = a(t, r);
|
|
176
|
+
return i ? `${i}:${n}` : n;
|
|
177
|
+
}
|
|
178
|
+
//#endregion
|
|
179
|
+
export { p as d, v as f, y as l, x as n, m as u };
|
|
@@ -0,0 +1,5 @@
|
|
|
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 };
|