@septkit/ui 0.0.93 → 0.0.95
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/context-menu/context-menu.vue_vue_type_script_setup_true_lang.js +41 -25
- package/dist/dialecte/create-document-store.js +4 -4
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/dialecte-DHj8__Ch.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/dialecte-BEbOM6IE.js} +1808 -1564
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/helpers-Bfv2XDC-.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/helpers-v10NItuU.js} +82 -82
- package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/index.js +6 -0
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/open-connections-ClJo0-Af.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/open-connections-CWORY1A2.js} +2 -2
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/project-key-DD8DyQ8-.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/project-key-WGrHzudb.js} +199 -199
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/qname-definition-C6GUFWL8.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/qname-definition-Cnw9CbiG.js} +8 -8
- package/dist/external/.pnpm/{@dialecte_core@0.12.1 → @dialecte_core@0.14.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/same-json-value-DTtSsGUF.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/same-json-value-Co-vqEAg.js} +66 -66
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils-Q5zsKl3Y.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils-9L5_yIvs.js} +2 -2
- package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils.js +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/index.js +0 -6
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils.js +0 -2
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as m } from "./qname-definition-
|
|
1
|
+
import { H as e, P as t, c as n, ct as r, d as i, f as a, k as o, l as s, p as c, u as l, v as u, w as d, x as f, y as p } from "./utils-9L5_yIvs.js";
|
|
2
|
+
import { i as m } from "./qname-definition-Cnw9CbiG.js";
|
|
3
3
|
function h(e, t) {
|
|
4
4
|
return e.tagName === t;
|
|
5
5
|
}
|
|
6
6
|
function g(e) {
|
|
7
|
-
let { attribute: t, tagName: n } = e, { name:
|
|
8
|
-
(
|
|
9
|
-
detail: `Attribute '${
|
|
7
|
+
let { attribute: t, tagName: n } = e, { name: i, namespace: a } = t;
|
|
8
|
+
(i === "xmlns" || i.startsWith("xmlns:") || typeof a == "object" && (a?.uri === "http://www.w3.org/2000/xmlns/" || a?.prefix === "xmlns")) && r("NAMESPACE_DECLARATION_NOT_ALLOWED", {
|
|
9
|
+
detail: `Attribute '${i}' on '${n}' is a namespace declaration - remove it; give a name its namespace in full: { name, namespace: { prefix, uri } }.`,
|
|
10
10
|
ref: { tagName: n }
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
function _(e) {
|
|
14
|
-
let { dialecteConfig: t, attribute: n, tagName: r, authored:
|
|
14
|
+
let { dialecteConfig: t, attribute: n, tagName: r, authored: i } = e;
|
|
15
15
|
g({
|
|
16
16
|
attribute: n,
|
|
17
17
|
tagName: r
|
|
18
|
-
}),
|
|
18
|
+
}), i && v({
|
|
19
19
|
attribute: n,
|
|
20
20
|
tagName: r
|
|
21
21
|
});
|
|
22
|
-
let
|
|
22
|
+
let a = y({
|
|
23
23
|
dialecteConfig: t,
|
|
24
24
|
attribute: n,
|
|
25
25
|
tagName: r
|
|
26
26
|
});
|
|
27
|
-
return
|
|
28
|
-
name: `${
|
|
29
|
-
namespace:
|
|
27
|
+
return a && a.prefix ? {
|
|
28
|
+
name: `${a.prefix}:${u(n.name)}`,
|
|
29
|
+
namespace: a
|
|
30
30
|
} : {
|
|
31
31
|
name: n.name,
|
|
32
|
-
namespace:
|
|
32
|
+
namespace: a
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
function v(e) {
|
|
36
|
-
let { attribute: t, tagName: n } = e, { name:
|
|
37
|
-
|
|
38
|
-
detail: `Attribute '${
|
|
36
|
+
let { attribute: t, tagName: n } = e, { name: i, namespace: a } = t;
|
|
37
|
+
i.includes(":") && (typeof a != "object" || a?.prefix !== i.slice(0, i.indexOf(":"))) && r("PREFIXED_ATTRIBUTE_NAME", {
|
|
38
|
+
detail: `Attribute '${i}' on '${n}' is prefixed — pass a local name plus its namespace instead: { name: '${u(i)}', namespace }.`,
|
|
39
39
|
ref: { tagName: n }
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function y(
|
|
43
|
-
let { dialecteConfig:
|
|
44
|
-
typeof
|
|
45
|
-
detail: `Unknown namespace '${
|
|
46
|
-
ref: { tagName:
|
|
47
|
-
})) :
|
|
48
|
-
let
|
|
49
|
-
if (!
|
|
50
|
-
let
|
|
51
|
-
|
|
52
|
-
detail: `Unknown namespace prefix '${
|
|
53
|
-
ref: { tagName:
|
|
42
|
+
function y(t) {
|
|
43
|
+
let { dialecteConfig: n, attribute: a, tagName: o } = t, s;
|
|
44
|
+
typeof a.namespace == "string" ? (s = i(n, a.namespace), s || r("UNKNOWN_NAMESPACE_PREFIX", {
|
|
45
|
+
detail: `Unknown namespace '${a.namespace}' on attribute '${a.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
|
|
46
|
+
ref: { tagName: o }
|
|
47
|
+
})) : s = a.namespace;
|
|
48
|
+
let c = a.name.indexOf(":");
|
|
49
|
+
if (!s && c !== -1) {
|
|
50
|
+
let t = a.name.slice(0, c);
|
|
51
|
+
s = e(t) ?? l(n, t), s || r("UNKNOWN_NAMESPACE_PREFIX", {
|
|
52
|
+
detail: `Unknown namespace prefix '${t}' on attribute '${a.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
|
|
53
|
+
ref: { tagName: o }
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
return
|
|
57
|
-
dialecteConfig:
|
|
58
|
-
uri:
|
|
59
|
-
}) ??
|
|
56
|
+
return s && s.prefix ? b({
|
|
57
|
+
dialecteConfig: n,
|
|
58
|
+
uri: s.uri
|
|
59
|
+
}) ?? s : s;
|
|
60
60
|
}
|
|
61
61
|
function b(e) {
|
|
62
62
|
let { dialecteConfig: t, uri: n } = e;
|
|
@@ -138,8 +138,8 @@ function D(e) {
|
|
|
138
138
|
tagName: e.tagName
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
function O(
|
|
142
|
-
let { dialecteConfig: r, hooks: i, record: a } =
|
|
141
|
+
function O(e) {
|
|
142
|
+
let { dialecteConfig: r, hooks: i, record: a } = e, { id: o, tagName: c, attributes: l, namespace: u, value: f } = a, p = o ?? crypto.randomUUID(), h = k({
|
|
143
143
|
dialecteConfig: r,
|
|
144
144
|
attributes: l ? w({
|
|
145
145
|
tagName: c,
|
|
@@ -150,22 +150,22 @@ function O(n) {
|
|
|
150
150
|
id: p,
|
|
151
151
|
tagName: c,
|
|
152
152
|
attributes: h,
|
|
153
|
-
namespace:
|
|
153
|
+
namespace: u ?? {
|
|
154
154
|
prefix: "prefixNeededForNotSupportedNamespace",
|
|
155
155
|
uri: "uriNeededForNotSupportedNamespace"
|
|
156
156
|
},
|
|
157
157
|
value: f ?? "",
|
|
158
158
|
parent: a.parent ?? null,
|
|
159
159
|
children: a.children ?? []
|
|
160
|
-
}, v = Object.values(r.namespaces).map(({ uri: e }) => e), y =
|
|
160
|
+
}, v = Object.values(r.namespaces).map(({ uri: e }) => e), y = u?.uri != null && !v.includes(u.uri);
|
|
161
161
|
if (!r.elements.includes(c) || y) return _;
|
|
162
|
-
let b =
|
|
162
|
+
let b = d({
|
|
163
163
|
dialecteConfig: r,
|
|
164
164
|
record: {
|
|
165
165
|
..._,
|
|
166
|
-
namespace:
|
|
166
|
+
namespace: u
|
|
167
167
|
}
|
|
168
|
-
}), x = b?.attributes.sequence ?? [], S =
|
|
168
|
+
}), x = b?.attributes.sequence ?? [], S = n({
|
|
169
169
|
wildcard: b?.attributes.any,
|
|
170
170
|
namespaceUri: ""
|
|
171
171
|
}), C = h.filter((e) => {
|
|
@@ -182,18 +182,18 @@ function O(n) {
|
|
|
182
182
|
return n;
|
|
183
183
|
}
|
|
184
184
|
return e;
|
|
185
|
-
}), D = r.definition[c], O = [b?.namespace ?? D.namespace, ...Object.values(D.declarations ?? {}).map((e) => e.namespace)], A = O.find((e) => e.uri ===
|
|
185
|
+
}), D = r.definition[c], O = [b?.namespace ?? D.namespace, ...Object.values(D.declarations ?? {}).map((e) => e.namespace)], A = O.find((e) => e.uri === u?.uri), j = {
|
|
186
186
|
..._,
|
|
187
|
-
namespace: A ??
|
|
188
|
-
attributes:
|
|
187
|
+
namespace: A ?? u ?? O[0],
|
|
188
|
+
attributes: s(E, x)
|
|
189
189
|
};
|
|
190
190
|
if (j = m({
|
|
191
191
|
dialecteConfig: r,
|
|
192
192
|
record: j,
|
|
193
193
|
namespaceOf: function() {
|
|
194
|
-
return
|
|
194
|
+
return e.namespaceOf ?? t({ dialecteConfig: r });
|
|
195
195
|
},
|
|
196
|
-
lexicalOnly:
|
|
196
|
+
lexicalOnly: e.namespaceOf !== void 0
|
|
197
197
|
}), i?.afterStandardizedRecord) {
|
|
198
198
|
j = i.afterStandardizedRecord({ record: j });
|
|
199
199
|
for (let e of j.attributes) g({
|
|
@@ -204,7 +204,7 @@ function O(n) {
|
|
|
204
204
|
dialecteConfig: r,
|
|
205
205
|
record: {
|
|
206
206
|
...j,
|
|
207
|
-
attributes:
|
|
207
|
+
attributes: s(k({
|
|
208
208
|
dialecteConfig: r,
|
|
209
209
|
attributes: j.attributes
|
|
210
210
|
}), x)
|
|
@@ -218,59 +218,59 @@ function O(n) {
|
|
|
218
218
|
return j;
|
|
219
219
|
}
|
|
220
220
|
function k(e) {
|
|
221
|
-
let { dialecteConfig:
|
|
222
|
-
return
|
|
223
|
-
dialecteConfig:
|
|
224
|
-
attributes:
|
|
225
|
-
namespaceOf: t({ dialecteConfig:
|
|
221
|
+
let { dialecteConfig: n, attributes: r } = e;
|
|
222
|
+
return o({
|
|
223
|
+
dialecteConfig: n,
|
|
224
|
+
attributes: r,
|
|
225
|
+
namespaceOf: t({ dialecteConfig: n })
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
228
|
function A(e) {
|
|
229
|
-
let { record: t, dialecteConfig: n, name: r, namespace: i, fullObject:
|
|
229
|
+
let { record: t, dialecteConfig: n, name: r, namespace: i, fullObject: a, defaults: o = "optional" } = e, s = j({
|
|
230
230
|
dialecteConfig: n,
|
|
231
231
|
name: r,
|
|
232
232
|
namespace: i
|
|
233
|
-
}),
|
|
234
|
-
if (
|
|
235
|
-
let
|
|
233
|
+
}), c = t.attributes.find((e) => e.name === s);
|
|
234
|
+
if (c) return a ? c : c.value;
|
|
235
|
+
let l = f({
|
|
236
236
|
dialecteConfig: n,
|
|
237
237
|
record: t,
|
|
238
|
-
attributeName:
|
|
239
|
-
defaults:
|
|
238
|
+
attributeName: s,
|
|
239
|
+
defaults: o
|
|
240
240
|
});
|
|
241
|
-
if (!
|
|
242
|
-
if (
|
|
243
|
-
let { namespace:
|
|
241
|
+
if (!a) return l ?? "";
|
|
242
|
+
if (l === void 0) return;
|
|
243
|
+
let { namespace: u } = p({
|
|
244
244
|
dialecteConfig: n,
|
|
245
245
|
record: t,
|
|
246
|
-
attributeName:
|
|
246
|
+
attributeName: s
|
|
247
247
|
});
|
|
248
248
|
return {
|
|
249
|
-
name:
|
|
250
|
-
value:
|
|
251
|
-
namespace:
|
|
249
|
+
name: s,
|
|
250
|
+
value: l,
|
|
251
|
+
namespace: u
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
function j(e) {
|
|
255
255
|
let { dialecteConfig: t, name: n, namespace: r } = e;
|
|
256
256
|
if (r === void 0) return n;
|
|
257
|
-
let i =
|
|
257
|
+
let i = a(t, r);
|
|
258
258
|
return i ? `${i}:${n}` : n;
|
|
259
259
|
}
|
|
260
260
|
function M(e) {
|
|
261
261
|
return e.fullObject ? P(e) : N(e);
|
|
262
262
|
}
|
|
263
263
|
function N(e) {
|
|
264
|
-
let { record: t, dialecteConfig: n, namespace: r, defaults: i = "optional" } = e, o = r === void 0 ? void 0 :
|
|
264
|
+
let { record: t, dialecteConfig: n, namespace: r, defaults: i = "optional" } = e, o = r === void 0 ? void 0 : a(n, r), s = {};
|
|
265
265
|
for (let e of t.attributes) {
|
|
266
266
|
let t = I({
|
|
267
267
|
name: e.name,
|
|
268
268
|
namespace: e.namespace,
|
|
269
269
|
targetPrefix: o
|
|
270
270
|
});
|
|
271
|
-
t !== void 0 && (
|
|
271
|
+
t !== void 0 && (s[t] = e.value ?? "");
|
|
272
272
|
}
|
|
273
|
-
if (i === "none") return
|
|
273
|
+
if (i === "none") return s;
|
|
274
274
|
for (let e of F({
|
|
275
275
|
dialecteConfig: n,
|
|
276
276
|
record: t
|
|
@@ -279,51 +279,51 @@ function N(e) {
|
|
|
279
279
|
name: e,
|
|
280
280
|
targetPrefix: o
|
|
281
281
|
});
|
|
282
|
-
if (r === void 0 || r in
|
|
283
|
-
let
|
|
282
|
+
if (r === void 0 || r in s) continue;
|
|
283
|
+
let a = f({
|
|
284
284
|
dialecteConfig: n,
|
|
285
285
|
record: t,
|
|
286
286
|
attributeName: e,
|
|
287
287
|
defaults: i
|
|
288
288
|
});
|
|
289
|
-
|
|
289
|
+
a !== void 0 && (s[r] = a);
|
|
290
290
|
}
|
|
291
|
-
return
|
|
291
|
+
return s;
|
|
292
292
|
}
|
|
293
293
|
function P(e) {
|
|
294
294
|
let { record: t, dialecteConfig: n, defaults: r = "optional" } = e, i = [...t.attributes];
|
|
295
295
|
if (r === "none") return i;
|
|
296
|
-
let
|
|
296
|
+
let a = new Set(i.map((e) => e.name));
|
|
297
297
|
for (let e of F({
|
|
298
298
|
dialecteConfig: n,
|
|
299
299
|
record: t
|
|
300
300
|
})) {
|
|
301
|
-
if (
|
|
302
|
-
let
|
|
301
|
+
if (a.has(e)) continue;
|
|
302
|
+
let o = f({
|
|
303
303
|
dialecteConfig: n,
|
|
304
304
|
record: t,
|
|
305
305
|
attributeName: e,
|
|
306
306
|
defaults: r
|
|
307
307
|
});
|
|
308
|
-
if (
|
|
309
|
-
let { namespace:
|
|
308
|
+
if (o === void 0) continue;
|
|
309
|
+
let { namespace: s } = p({
|
|
310
310
|
dialecteConfig: n,
|
|
311
311
|
record: t,
|
|
312
312
|
attributeName: e
|
|
313
313
|
});
|
|
314
314
|
i.push({
|
|
315
315
|
name: e,
|
|
316
|
-
value:
|
|
317
|
-
namespace:
|
|
316
|
+
value: o,
|
|
317
|
+
namespace: s
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
320
|
return i;
|
|
321
321
|
}
|
|
322
|
-
function F(
|
|
323
|
-
let { dialecteConfig:
|
|
324
|
-
return
|
|
325
|
-
dialecteConfig:
|
|
326
|
-
record:
|
|
322
|
+
function F(e) {
|
|
323
|
+
let { dialecteConfig: t, record: n } = e;
|
|
324
|
+
return d({
|
|
325
|
+
dialecteConfig: t,
|
|
326
|
+
record: n
|
|
327
327
|
})?.attributes.sequence ?? [];
|
|
328
328
|
}
|
|
329
329
|
function I(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
//#region node_modules/.pnpm/@dialecte+core@0.
|
|
1
|
+
import "./utils-9L5_yIvs.js";
|
|
2
|
+
//#region node_modules/.pnpm/@dialecte+core@0.14.0/node_modules/@dialecte/core/dist/open-connections-CWORY1A2.js
|
|
3
3
|
function e() {}
|
|
4
4
|
function t() {
|
|
5
5
|
let e = 0, t = [];
|