@septkit/ui 0.0.88 → 0.0.89

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 (34) hide show
  1. package/dist/dialecte/composables/change-id-window.js +14 -0
  2. package/dist/dialecte/composables/use-live-data.js +154 -31
  3. package/dist/dialecte/create-document-store.js +16 -7
  4. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/dialecte-DHj8__Ch.js +7293 -0
  5. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/helpers-Bfv2XDC-.js +351 -0
  6. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/index.js +6 -0
  7. package/dist/external/.pnpm/{@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/open-connections-D59wm6nb.js → @dialecte_core@0.12.1/node_modules/@dialecte/core/dist/open-connections-ClJo0-Af.js} +2 -2
  8. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/project-key-DD8DyQ8-.js +1751 -0
  9. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/qname-definition-C6GUFWL8.js +56 -0
  10. package/dist/external/.pnpm/{@dialecte_core@0.11.0 → @dialecte_core@0.12.1}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
  11. package/dist/external/.pnpm/{@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/same-json-value-boJ4pSRe.js → @dialecte_core@0.12.1/node_modules/@dialecte/core/dist/same-json-value-DTtSsGUF.js} +491 -370
  12. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils-Q5zsKl3Y.js +2449 -0
  13. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils.js +2 -0
  14. package/dist/external/.pnpm/@tanstack_virtual-core@3.17.3/node_modules/@tanstack/virtual-core/dist/esm/index.js +627 -0
  15. package/dist/external/.pnpm/@tanstack_virtual-core@3.17.3/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +31 -0
  16. package/dist/external/.pnpm/@tanstack_virtual-core@3.17.3/node_modules/@tanstack/virtual-core/dist/esm/utils.js +38 -0
  17. package/dist/external/.pnpm/@tanstack_vue-virtual@3.13.31_vue@3.5.39_typescript@5.8.3_/node_modules/@tanstack/vue-virtual/dist/esm/index.js +28 -0
  18. package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +24 -2
  19. package/dist/index.d.ts +266 -7
  20. package/dist/index.js +7 -1
  21. package/dist/ui.css +1 -1
  22. package/dist/virtual/grid-aria.js +16 -0
  23. package/dist/virtual/grid-navigation.js +84 -0
  24. package/dist/virtual/index.js +6 -0
  25. package/dist/virtual/kept-range.js +32 -0
  26. package/dist/virtual/use-virtual-scroller.js +180 -0
  27. package/dist/virtual/virtual.constants.js +7 -0
  28. package/package.json +6 -4
  29. package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/dialecte-Cs_XRP4I.js +0 -4426
  30. package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +0 -130
  31. package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/index.js +0 -6
  32. package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/project-key-sr4wkl2Q.js +0 -1371
  33. package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js +0 -865
  34. package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/utils.js +0 -2
@@ -0,0 +1,351 @@
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";
3
+ function h(e, t) {
4
+ return e.tagName === t;
5
+ }
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 } }.`,
10
+ ref: { tagName: n }
11
+ });
12
+ }
13
+ function _(e) {
14
+ let { dialecteConfig: t, attribute: n, tagName: r, authored: a } = e;
15
+ g({
16
+ attribute: n,
17
+ tagName: r
18
+ }), a && v({
19
+ attribute: n,
20
+ tagName: r
21
+ });
22
+ let o = y({
23
+ dialecteConfig: t,
24
+ attribute: n,
25
+ tagName: r
26
+ });
27
+ return o && o.prefix ? {
28
+ name: `${o.prefix}:${i(n.name)}`,
29
+ namespace: o
30
+ } : {
31
+ name: n.name,
32
+ namespace: o
33
+ };
34
+ }
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 }.`,
39
+ ref: { tagName: n }
40
+ });
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 }
54
+ });
55
+ }
56
+ return a && a.prefix ? b({
57
+ dialecteConfig: t,
58
+ uri: a.uri
59
+ }) ?? a : a;
60
+ }
61
+ function b(e) {
62
+ let { dialecteConfig: t, uri: n } = e;
63
+ return Object.values(t.namespaces).find((e) => e.uri === n && e.prefix !== "");
64
+ }
65
+ function x(e) {
66
+ return {
67
+ id: e.id,
68
+ tagName: e.tagName,
69
+ namespace: e.namespace,
70
+ attributes: e.attributes,
71
+ value: e.value,
72
+ parent: e.parent,
73
+ children: e.children
74
+ };
75
+ }
76
+ function S(e) {
77
+ let { record: t, status: n } = e, r = n ?? ("status" in t ? t.status : "unchanged");
78
+ return {
79
+ ...x(t),
80
+ status: r
81
+ };
82
+ }
83
+ function C(e) {
84
+ let { record: t, status: n, tree: r } = e, i = r ?? ("tree" in t ? t.tree : []);
85
+ return {
86
+ ...S({
87
+ record: t,
88
+ status: n
89
+ }),
90
+ tree: i
91
+ };
92
+ }
93
+ function w(e) {
94
+ let { dialecteConfig: t, tagName: n, attributes: r, stored: i = [] } = e;
95
+ return (Array.isArray(r) ? r : Object.entries(r).map(([e, r]) => ({
96
+ name: e,
97
+ value: r,
98
+ namespace: T({
99
+ dialecteConfig: t,
100
+ tagName: n,
101
+ name: e
102
+ }) ?? i.find((t) => t.name === e)?.namespace
103
+ }))).map((e) => E({
104
+ attribute: e,
105
+ dialecteConfig: t,
106
+ tagName: n
107
+ }));
108
+ }
109
+ function T(e) {
110
+ let { dialecteConfig: t, tagName: n, name: r } = e, i = t.definition[n];
111
+ if (i === void 0) return;
112
+ let a = Object.values(i.declarations ?? {}), o = [i, ...a].flatMap((e) => e.variants ?? []), s = [
113
+ i,
114
+ ...a,
115
+ ...o.flatMap((e) => t.types[e] ?? [])
116
+ ];
117
+ for (let e of s) {
118
+ let t = e.attributes.details[r]?.namespace;
119
+ if (t) return t;
120
+ }
121
+ }
122
+ function E(e) {
123
+ let { attribute: t, dialecteConfig: n, tagName: r } = e, { name: i, namespace: a } = _({
124
+ dialecteConfig: n,
125
+ attribute: t,
126
+ tagName: r,
127
+ authored: !1
128
+ });
129
+ return {
130
+ ...t,
131
+ name: i,
132
+ namespace: a
133
+ };
134
+ }
135
+ function D(e) {
136
+ return c(e, { detail: "The record or ref is undefined" }), {
137
+ id: e.id,
138
+ tagName: e.tagName
139
+ };
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({
143
+ dialecteConfig: r,
144
+ attributes: l ? w({
145
+ tagName: c,
146
+ attributes: l,
147
+ dialecteConfig: r
148
+ }) : []
149
+ }), _ = {
150
+ id: p,
151
+ tagName: c,
152
+ attributes: h,
153
+ namespace: d ?? {
154
+ prefix: "prefixNeededForNotSupportedNamespace",
155
+ uri: "uriNeededForNotSupportedNamespace"
156
+ },
157
+ value: f ?? "",
158
+ parent: a.parent ?? null,
159
+ children: a.children ?? []
160
+ }, v = Object.values(r.namespaces).map(({ uri: e }) => e), y = d?.uri != null && !v.includes(d.uri);
161
+ if (!r.elements.includes(c) || y) return _;
162
+ let b = e({
163
+ dialecteConfig: r,
164
+ record: {
165
+ ..._,
166
+ namespace: d
167
+ }
168
+ }), x = b?.attributes.sequence ?? [], S = u({
169
+ wildcard: b?.attributes.any,
170
+ namespaceUri: ""
171
+ }), C = h.filter((e) => {
172
+ let t = x.includes(e.name), n = "namespace" in e && e.namespace != null;
173
+ if (!t && !n && !S) return !1;
174
+ if (!t) return !0;
175
+ if (e.value === void 0 || e.value === null) return !1;
176
+ if (e.value !== "") return !0;
177
+ let r = b?.attributes.details[e.name];
178
+ return r?.default !== void 0 || r?.fixed !== void 0;
179
+ }), T = r.namespaces.default.uri, E = C.map((e) => {
180
+ if ("namespace" in e && e.namespace?.uri === T && !e.namespace.prefix) {
181
+ let { namespace: t, ...n } = e;
182
+ return n;
183
+ }
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 = {
186
+ ..._,
187
+ namespace: A ?? d ?? O[0],
188
+ attributes: o(E, x)
189
+ };
190
+ if (j = m({
191
+ dialecteConfig: r,
192
+ record: j,
193
+ namespaceOf: function() {
194
+ return n.namespaceOf ?? t({ dialecteConfig: r });
195
+ },
196
+ lexicalOnly: n.namespaceOf !== void 0
197
+ }), i?.afterStandardizedRecord) {
198
+ j = i.afterStandardizedRecord({ record: j });
199
+ for (let e of j.attributes) g({
200
+ attribute: e,
201
+ tagName: c
202
+ });
203
+ j = m({
204
+ dialecteConfig: r,
205
+ record: {
206
+ ...j,
207
+ attributes: o(k({
208
+ dialecteConfig: r,
209
+ attributes: j.attributes
210
+ }), x)
211
+ },
212
+ namespaceOf: function() {
213
+ return t({ dialecteConfig: r });
214
+ },
215
+ lexicalOnly: !1
216
+ });
217
+ }
218
+ return j;
219
+ }
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 })
226
+ });
227
+ }
228
+ function A(e) {
229
+ let { record: t, dialecteConfig: n, name: r, namespace: i, fullObject: o, defaults: s = "optional" } = e, c = j({
230
+ dialecteConfig: n,
231
+ name: r,
232
+ namespace: i
233
+ }), l = t.attributes.find((e) => e.name === c);
234
+ if (l) return o ? l : l.value;
235
+ let u = a({
236
+ dialecteConfig: n,
237
+ record: t,
238
+ attributeName: c,
239
+ defaults: s
240
+ });
241
+ if (!o) return u ?? "";
242
+ if (u === void 0) return;
243
+ let { namespace: d } = p({
244
+ dialecteConfig: n,
245
+ record: t,
246
+ attributeName: c
247
+ });
248
+ return {
249
+ name: c,
250
+ value: u,
251
+ namespace: d
252
+ };
253
+ }
254
+ function j(e) {
255
+ let { dialecteConfig: t, name: n, namespace: r } = e;
256
+ if (r === void 0) return n;
257
+ let i = s(t, r);
258
+ return i ? `${i}:${n}` : n;
259
+ }
260
+ function M(e) {
261
+ return e.fullObject ? P(e) : N(e);
262
+ }
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 = {};
265
+ for (let e of t.attributes) {
266
+ let t = I({
267
+ name: e.name,
268
+ namespace: e.namespace,
269
+ targetPrefix: o
270
+ });
271
+ t !== void 0 && (c[t] = e.value ?? "");
272
+ }
273
+ if (i === "none") return c;
274
+ for (let e of F({
275
+ dialecteConfig: n,
276
+ record: t
277
+ })) {
278
+ let r = I({
279
+ name: e,
280
+ targetPrefix: o
281
+ });
282
+ if (r === void 0 || r in c) continue;
283
+ let s = a({
284
+ dialecteConfig: n,
285
+ record: t,
286
+ attributeName: e,
287
+ defaults: i
288
+ });
289
+ s !== void 0 && (c[r] = s);
290
+ }
291
+ return c;
292
+ }
293
+ function P(e) {
294
+ let { record: t, dialecteConfig: n, defaults: r = "optional" } = e, i = [...t.attributes];
295
+ if (r === "none") return i;
296
+ let o = new Set(i.map((e) => e.name));
297
+ for (let e of F({
298
+ dialecteConfig: n,
299
+ record: t
300
+ })) {
301
+ if (o.has(e)) continue;
302
+ let s = a({
303
+ dialecteConfig: n,
304
+ record: t,
305
+ attributeName: e,
306
+ defaults: r
307
+ });
308
+ if (s === void 0) continue;
309
+ let { namespace: c } = p({
310
+ dialecteConfig: n,
311
+ record: t,
312
+ attributeName: e
313
+ });
314
+ i.push({
315
+ name: e,
316
+ value: s,
317
+ namespace: c
318
+ });
319
+ }
320
+ return i;
321
+ }
322
+ function F(t) {
323
+ let { dialecteConfig: n, record: r } = t;
324
+ return e({
325
+ dialecteConfig: n,
326
+ record: r
327
+ })?.attributes.sequence ?? [];
328
+ }
329
+ function I(e) {
330
+ let { name: t, namespace: n, targetPrefix: r } = e, { prefix: i, local: a, isXmlns: o } = L(t);
331
+ if (!(o || n?.uri === "http://www.w3.org/2000/xmlns/")) return r === void 0 ? t : i === r ? a : void 0;
332
+ }
333
+ function L(e) {
334
+ if (e === "xmlns" || e.startsWith("xmlns:")) return {
335
+ prefix: "",
336
+ local: e,
337
+ isXmlns: !0
338
+ };
339
+ let t = e.indexOf(":");
340
+ return t === -1 ? {
341
+ prefix: "",
342
+ local: e,
343
+ isXmlns: !1
344
+ } : {
345
+ prefix: e.slice(0, t),
346
+ local: e.slice(t + 1),
347
+ isXmlns: !1
348
+ };
349
+ }
350
+ //#endregion
351
+ export { h as C, x as d, D as f, _ as g, O as l, C as m, A as n, S as p, M as r, w as u };
@@ -0,0 +1,6 @@
1
+ import "./utils-Q5zsKl3Y.js";
2
+ import "./open-connections-ClJo0-Af.js";
3
+ import "./project-key-DD8DyQ8-.js";
4
+ import "./same-json-value-DTtSsGUF.js";
5
+ import { G as e } from "./dialecte-DHj8__Ch.js";
6
+ export { e as bindExtensions };
@@ -1,5 +1,5 @@
1
- import "./utils-Cv4oHia0.js";
2
- //#region node_modules/.pnpm/@dialecte+core@0.11.0/node_modules/@dialecte/core/dist/open-connections-D59wm6nb.js
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
3
3
  function e() {}
4
4
  function t() {
5
5
  let e = 0, t = [];