@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@septkit/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.77",
|
|
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.8.0",
|
|
20
|
+
"@dialecte/scl": "0.11.0",
|
|
21
21
|
"@lucide/vue": "^1.16.0",
|
|
22
22
|
"@tailwindcss/vite": "4.2.2",
|
|
23
23
|
"@vueuse/components": "^13.9.0",
|
package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/helpers.js
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { C as e, L as t, N as n, S as r, a as i, h as a, i as o, l as s, m as c, o as l, s as u, v as d, w as f, x as p, y as m } from "./utils-CTBHUFs9.js";
|
|
2
|
-
function h(e, t) {
|
|
3
|
-
return e.tagName === t;
|
|
4
|
-
}
|
|
5
|
-
function g(e) {
|
|
6
|
-
return {
|
|
7
|
-
id: e.id,
|
|
8
|
-
tagName: e.tagName,
|
|
9
|
-
namespace: e.namespace,
|
|
10
|
-
attributes: e.attributes,
|
|
11
|
-
value: e.value,
|
|
12
|
-
parent: e.parent,
|
|
13
|
-
children: e.children
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
function _(e) {
|
|
17
|
-
let { record: t, status: n } = e, r = n ?? ("status" in t ? t.status : "unchanged");
|
|
18
|
-
return {
|
|
19
|
-
...g(t),
|
|
20
|
-
status: r
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function v(e) {
|
|
24
|
-
let { record: t, status: n, tree: r } = e, i = r ?? ("tree" in t ? t.tree : []);
|
|
25
|
-
return {
|
|
26
|
-
..._({
|
|
27
|
-
record: t,
|
|
28
|
-
status: n
|
|
29
|
-
}),
|
|
30
|
-
tree: i
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function y(e) {
|
|
34
|
-
let { dialecteConfig: t, tagName: n, attributes: r, stored: i = [] } = e;
|
|
35
|
-
return (Array.isArray(r) ? r : Object.entries(r).map(([e, r]) => ({
|
|
36
|
-
name: e,
|
|
37
|
-
value: r,
|
|
38
|
-
namespace: b({
|
|
39
|
-
dialecteConfig: t,
|
|
40
|
-
tagName: n,
|
|
41
|
-
name: e
|
|
42
|
-
}) ?? i.find((t) => t.name === e)?.namespace
|
|
43
|
-
}))).map((e) => x({
|
|
44
|
-
attribute: e,
|
|
45
|
-
dialecteConfig: t,
|
|
46
|
-
tagName: n
|
|
47
|
-
}));
|
|
48
|
-
}
|
|
49
|
-
function b(e) {
|
|
50
|
-
let { dialecteConfig: t, tagName: n, name: r } = e, i = t.definition[n];
|
|
51
|
-
if (i === void 0) return;
|
|
52
|
-
let a = Object.values(i.declarations ?? {}), o = [i, ...a].flatMap((e) => e.variants ?? []), s = [
|
|
53
|
-
i,
|
|
54
|
-
...a,
|
|
55
|
-
...o.flatMap((e) => t.types[e] ?? [])
|
|
56
|
-
];
|
|
57
|
-
for (let e of s) {
|
|
58
|
-
let t = e.attributes.details[r]?.namespace;
|
|
59
|
-
if (t) return t;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function x(e) {
|
|
63
|
-
let { attribute: n, dialecteConfig: r, tagName: i } = e, a;
|
|
64
|
-
typeof n.namespace == "string" ? (a = u(r, n.namespace), a || t("UNKNOWN_NAMESPACE_PREFIX", {
|
|
65
|
-
detail: `Unknown namespace '${n.namespace}' on attribute '${n.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
|
|
66
|
-
ref: { tagName: i }
|
|
67
|
-
})) : a = n.namespace;
|
|
68
|
-
let o = n.name.indexOf(":");
|
|
69
|
-
if (!a && o !== -1) {
|
|
70
|
-
let e = n.name.slice(0, o);
|
|
71
|
-
e !== "xmlns" && (a = l(r, e), a || t("UNKNOWN_NAMESPACE_PREFIX", {
|
|
72
|
-
detail: `Unknown namespace prefix '${e}' on attribute '${n.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
|
|
73
|
-
ref: { tagName: i }
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
76
|
-
return a && a.prefix && a.uri !== "http://www.w3.org/2000/xmlns/" && (a = S({
|
|
77
|
-
dialecteConfig: r,
|
|
78
|
-
uri: a.uri
|
|
79
|
-
}) ?? a), a && a.prefix && a.prefix !== "xmlns" ? {
|
|
80
|
-
...n,
|
|
81
|
-
name: `${a.prefix}:${c(n.name)}`,
|
|
82
|
-
namespace: a
|
|
83
|
-
} : (n.namespace, {
|
|
84
|
-
...n,
|
|
85
|
-
namespace: a
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function S(e) {
|
|
89
|
-
let { dialecteConfig: t, uri: n } = e;
|
|
90
|
-
return Object.values(t.namespaces).find((e) => e.uri === n && e.prefix !== "");
|
|
91
|
-
}
|
|
92
|
-
function C(e) {
|
|
93
|
-
return s(e, { detail: "The record or ref is undefined" }), {
|
|
94
|
-
id: e.id,
|
|
95
|
-
tagName: e.tagName
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
function w(e) {
|
|
99
|
-
let { dialecteConfig: t, hooks: n, record: r } = e, { id: a, tagName: s, attributes: c, namespace: l, value: u } = r, d = a ?? crypto.randomUUID(), f = T({
|
|
100
|
-
dialecteConfig: t,
|
|
101
|
-
attributes: c ? y({
|
|
102
|
-
tagName: s,
|
|
103
|
-
attributes: c,
|
|
104
|
-
dialecteConfig: t
|
|
105
|
-
}) : []
|
|
106
|
-
}), p = {
|
|
107
|
-
id: d,
|
|
108
|
-
tagName: s,
|
|
109
|
-
attributes: f,
|
|
110
|
-
namespace: l ?? {
|
|
111
|
-
prefix: "prefixNeededForNotSupportedNamespace",
|
|
112
|
-
uri: "uriNeededForNotSupportedNamespace"
|
|
113
|
-
},
|
|
114
|
-
value: u ?? "",
|
|
115
|
-
parent: r.parent ?? null,
|
|
116
|
-
children: r.children ?? []
|
|
117
|
-
}, h = Object.values(t.namespaces).map(({ uri: e }) => e), g = l?.uri != null && !h.includes(l.uri);
|
|
118
|
-
if (!(t.elements.includes(s) && !g)) return p;
|
|
119
|
-
let _ = m({
|
|
120
|
-
dialecteConfig: t,
|
|
121
|
-
record: {
|
|
122
|
-
...p,
|
|
123
|
-
namespace: l
|
|
124
|
-
}
|
|
125
|
-
}), v = _?.attributes.sequence ?? [], b = o({
|
|
126
|
-
wildcard: _?.attributes.any,
|
|
127
|
-
namespaceUri: ""
|
|
128
|
-
}), x = f.filter((e) => {
|
|
129
|
-
let t = v.includes(e.name), n = "namespace" in e && e.namespace != null;
|
|
130
|
-
if (!t && !n && !b) return !1;
|
|
131
|
-
let r = e.value === void 0 || e.value === null || e.value === "";
|
|
132
|
-
return !(t && r);
|
|
133
|
-
}), S = t.namespaces.default.uri, C = x.map((e) => {
|
|
134
|
-
if ("namespace" in e && e.namespace?.uri === S) {
|
|
135
|
-
let { namespace: t, ...n } = e;
|
|
136
|
-
return n;
|
|
137
|
-
}
|
|
138
|
-
return e;
|
|
139
|
-
}), w = t.definition[s], E = [_?.namespace ?? w.namespace, ...Object.values(w.declarations ?? {}).map((e) => e.namespace)], D = E.find((e) => e.uri === l?.uri), O = {
|
|
140
|
-
...p,
|
|
141
|
-
namespace: D ?? l ?? E[0],
|
|
142
|
-
attributes: i(C, v)
|
|
143
|
-
};
|
|
144
|
-
return n?.afterStandardizedRecord && (O = n.afterStandardizedRecord({ record: O }), O = {
|
|
145
|
-
...O,
|
|
146
|
-
attributes: i(T({
|
|
147
|
-
dialecteConfig: t,
|
|
148
|
-
attributes: O.attributes
|
|
149
|
-
}), v)
|
|
150
|
-
}), O;
|
|
151
|
-
}
|
|
152
|
-
function T(t) {
|
|
153
|
-
let { dialecteConfig: n, attributes: r } = t;
|
|
154
|
-
return f({
|
|
155
|
-
dialecteConfig: n,
|
|
156
|
-
attributes: r,
|
|
157
|
-
namespaceOf: e({
|
|
158
|
-
dialecteConfig: n,
|
|
159
|
-
attributes: r
|
|
160
|
-
})
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
function E(e) {
|
|
164
|
-
let { dialecteConfig: n, record: r, attributes: i } = e;
|
|
165
|
-
for (let e of i) {
|
|
166
|
-
let i = a({
|
|
167
|
-
dialecteConfig: n,
|
|
168
|
-
record: r,
|
|
169
|
-
attributeName: e.name
|
|
170
|
-
});
|
|
171
|
-
i.fixed !== void 0 && e.value !== i.fixed && t("FIXED_VALUE_VIOLATION", {
|
|
172
|
-
detail: `Attribute '${e.name}' on '${r.tagName}' is fixed to '${i.fixed}' but was set to '${String(e.value)}'.`,
|
|
173
|
-
ref: { tagName: r.tagName }
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
function D(e) {
|
|
178
|
-
let { dialecteConfig: n, record: i } = e, a = i.attributes.find(p);
|
|
179
|
-
if (a === void 0) {
|
|
180
|
-
m({
|
|
181
|
-
dialecteConfig: n,
|
|
182
|
-
record: i
|
|
183
|
-
})?.abstractType && t("XSI_TYPE_REQUIRED", {
|
|
184
|
-
detail: `'${i.tagName}' is declared with an abstract type: name one of its variants with xsi:type (${d({
|
|
185
|
-
dialecteConfig: n,
|
|
186
|
-
record: i
|
|
187
|
-
}).join(", ")}).`,
|
|
188
|
-
ref: { tagName: i.tagName }
|
|
189
|
-
});
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
if (m({
|
|
193
|
-
dialecteConfig: n,
|
|
194
|
-
record: i
|
|
195
|
-
}) === void 0) return;
|
|
196
|
-
let o = r({
|
|
197
|
-
dialecteConfig: n,
|
|
198
|
-
record: i
|
|
199
|
-
});
|
|
200
|
-
if (o?.namespace === "http://www.w3.org/2001/XMLSchema") return;
|
|
201
|
-
let s = d({
|
|
202
|
-
dialecteConfig: n,
|
|
203
|
-
record: i
|
|
204
|
-
});
|
|
205
|
-
o !== void 0 && s.includes(o.clark) || t("XSI_TYPE_NOT_ADMITTED", {
|
|
206
|
-
detail: `'${i.tagName}' may not name the type '${String(a.value)}' with xsi:type; it admits ${s.join(", ") || "none"}.`,
|
|
207
|
-
ref: { tagName: i.tagName },
|
|
208
|
-
meta: {
|
|
209
|
-
value: a.value,
|
|
210
|
-
admitted: s
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
function O(e) {
|
|
215
|
-
let { dialecteConfig: n, merged: r, record: i } = e, a = new Set(i.attributes.map((e) => e.name)), o = r.filter((e) => e.value !== "" && !a.has(e.name)).map((e) => e.name), s = m({
|
|
216
|
-
dialecteConfig: n,
|
|
217
|
-
record: i
|
|
218
|
-
}), c = new Set(s?.children.sequence ?? []), l = s?.children.any ? [] : [...new Set(i.children.map((e) => e.tagName))].filter((e) => !c.has(e));
|
|
219
|
-
o.length === 0 && l.length === 0 || t("XSI_TYPE_CHANGE_LEAVES_CONTENT", {
|
|
220
|
-
detail: `'${i.tagName}' now names a type that does not admit ` + [o.length > 0 ? `the attributes ${o.join(", ")} (clear them in the same update)` : "", l.length > 0 ? `the children ${l.join(", ")} (delete them first)` : ""].filter(Boolean).join(" nor ") + ".",
|
|
221
|
-
ref: { tagName: i.tagName },
|
|
222
|
-
meta: {
|
|
223
|
-
attributes: o,
|
|
224
|
-
children: l
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
//#endregion
|
|
229
|
-
export { n as XSI_NAMESPACE, E as assertNoFixedViolation, D as assertXsiTypeAdmitted, O as assertXsiTypeChangeLeavesNothing, h as isRecordOf, w as standardizeRecord, y as toFullAttributeArray, g as toRawRecord, C as toRef, _ as toTrackedRecord, v as toTreeRecord };
|