@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.
Files changed (16) hide show
  1. package/dist/context-menu/context-menu.vue_vue_type_script_setup_true_lang.js +41 -25
  2. package/dist/dialecte/create-document-store.js +4 -4
  3. 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
  4. 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
  5. package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/index.js +6 -0
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils.js +2 -0
  13. package/dist/index.d.ts +2 -0
  14. package/package.json +3 -3
  15. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/index.js +0 -6
  16. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils.js +0 -2
@@ -1,62 +1,62 @@
1
- import { C as e, N as t, O as n, V as r, _ as i, b as a, c as o, d as s, f as c, l, s as u, st as d, u as f, v as p } from "./utils-Q5zsKl3Y.js";
2
- import { i as m } from "./qname-definition-C6GUFWL8.js";
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: r, namespace: i } = t;
8
- (r === "xmlns" || r.startsWith("xmlns:") || typeof i == "object" && (i?.uri === "http://www.w3.org/2000/xmlns/" || i?.prefix === "xmlns")) && d("NAMESPACE_DECLARATION_NOT_ALLOWED", {
9
- detail: `Attribute '${r}' on '${n}' is a namespace declaration - remove it; give a name its namespace in full: { name, namespace: { prefix, uri } }.`,
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: a } = e;
14
+ let { dialecteConfig: t, attribute: n, tagName: r, authored: i } = e;
15
15
  g({
16
16
  attribute: n,
17
17
  tagName: r
18
- }), a && v({
18
+ }), i && v({
19
19
  attribute: n,
20
20
  tagName: r
21
21
  });
22
- let o = y({
22
+ let a = y({
23
23
  dialecteConfig: t,
24
24
  attribute: n,
25
25
  tagName: r
26
26
  });
27
- return o && o.prefix ? {
28
- name: `${o.prefix}:${i(n.name)}`,
29
- namespace: o
27
+ return a && a.prefix ? {
28
+ name: `${a.prefix}:${u(n.name)}`,
29
+ namespace: a
30
30
  } : {
31
31
  name: n.name,
32
- namespace: o
32
+ namespace: a
33
33
  };
34
34
  }
35
35
  function v(e) {
36
- let { attribute: t, tagName: n } = e, { name: r, namespace: a } = t;
37
- r.includes(":") && (typeof a != "object" || a?.prefix !== r.slice(0, r.indexOf(":"))) && d("PREFIXED_ATTRIBUTE_NAME", {
38
- detail: `Attribute '${r}' on '${n}' is prefixed — pass a local name plus its namespace instead: { name: '${i(r)}', namespace }.`,
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(e) {
43
- let { dialecteConfig: t, attribute: n, tagName: i } = e, a;
44
- typeof n.namespace == "string" ? (a = f(t, n.namespace), a || d("UNKNOWN_NAMESPACE_PREFIX", {
45
- detail: `Unknown namespace '${n.namespace}' on attribute '${n.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
46
- ref: { tagName: i }
47
- })) : a = n.namespace;
48
- let o = n.name.indexOf(":");
49
- if (!a && o !== -1) {
50
- let e = n.name.slice(0, o);
51
- a = r(e) ?? l(t, e), a || d("UNKNOWN_NAMESPACE_PREFIX", {
52
- detail: `Unknown namespace prefix '${e}' on attribute '${n.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
53
- ref: { tagName: i }
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 a && a.prefix ? b({
57
- dialecteConfig: t,
58
- uri: a.uri
59
- }) ?? a : a;
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(n) {
142
- let { dialecteConfig: r, hooks: i, record: a } = n, { id: s, tagName: c, attributes: l, namespace: d, value: f } = a, p = s ?? crypto.randomUUID(), h = k({
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: d ?? {
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 = d?.uri != null && !v.includes(d.uri);
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 = e({
162
+ let b = d({
163
163
  dialecteConfig: r,
164
164
  record: {
165
165
  ..._,
166
- namespace: d
166
+ namespace: u
167
167
  }
168
- }), x = b?.attributes.sequence ?? [], S = u({
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 === d?.uri), j = {
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 ?? d ?? O[0],
188
- attributes: o(E, x)
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 n.namespaceOf ?? t({ dialecteConfig: r });
194
+ return e.namespaceOf ?? t({ dialecteConfig: r });
195
195
  },
196
- lexicalOnly: n.namespaceOf !== void 0
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: o(k({
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: r, attributes: i } = e;
222
- return n({
223
- dialecteConfig: r,
224
- attributes: i,
225
- namespaceOf: t({ dialecteConfig: r })
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: o, defaults: s = "optional" } = e, c = j({
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
- }), l = t.attributes.find((e) => e.name === c);
234
- if (l) return o ? l : l.value;
235
- let u = a({
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: c,
239
- defaults: s
238
+ attributeName: s,
239
+ defaults: o
240
240
  });
241
- if (!o) return u ?? "";
242
- if (u === void 0) return;
243
- let { namespace: d } = p({
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: c
246
+ attributeName: s
247
247
  });
248
248
  return {
249
- name: c,
250
- value: u,
251
- namespace: d
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 = s(t, r);
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 : s(n, r), c = {};
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 && (c[t] = e.value ?? "");
271
+ t !== void 0 && (s[t] = e.value ?? "");
272
272
  }
273
- if (i === "none") return c;
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 c) continue;
283
- let s = a({
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
- s !== void 0 && (c[r] = s);
289
+ a !== void 0 && (s[r] = a);
290
290
  }
291
- return c;
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 o = new Set(i.map((e) => e.name));
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 (o.has(e)) continue;
302
- let s = a({
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 (s === void 0) continue;
309
- let { namespace: c } = p({
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: s,
317
- namespace: c
316
+ value: o,
317
+ namespace: s
318
318
  });
319
319
  }
320
320
  return i;
321
321
  }
322
- function F(t) {
323
- let { dialecteConfig: n, record: r } = t;
324
- return e({
325
- dialecteConfig: n,
326
- record: r
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) {
@@ -0,0 +1,6 @@
1
+ import "./utils-9L5_yIvs.js";
2
+ import "./open-connections-CWORY1A2.js";
3
+ import "./project-key-WGrHzudb.js";
4
+ import "./same-json-value-Co-vqEAg.js";
5
+ import { G as e } from "./dialecte-BEbOM6IE.js";
6
+ export { e as bindExtensions };
@@ -1,5 +1,5 @@
1
- import "./utils-Q5zsKl3Y.js";
2
- //#region node_modules/.pnpm/@dialecte+core@0.12.1/node_modules/@dialecte/core/dist/open-connections-ClJo0-Af.js
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 = [];