@septkit/ui 0.0.88 → 0.0.90
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/change-id-window.js +14 -0
- package/dist/dialecte/composables/use-live-data.js +154 -31
- package/dist/dialecte/create-document-store.js +16 -7
- package/dist/dropdown/combobox.vue_vue_type_script_setup_true_lang.js +35 -29
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/dialecte-DHj8__Ch.js +7293 -0
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/helpers-Bfv2XDC-.js +351 -0
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/index.js +6 -0
- 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
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/project-key-DD8DyQ8-.js +1751 -0
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/qname-definition-C6GUFWL8.js +56 -0
- 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
- 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
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils-Q5zsKl3Y.js +2449 -0
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils.js +2 -0
- package/dist/external/.pnpm/@tanstack_virtual-core@3.17.3/node_modules/@tanstack/virtual-core/dist/esm/index.js +627 -0
- package/dist/external/.pnpm/@tanstack_virtual-core@3.17.3/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +31 -0
- package/dist/external/.pnpm/@tanstack_virtual-core@3.17.3/node_modules/@tanstack/virtual-core/dist/esm/utils.js +38 -0
- 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
- 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
- package/dist/index.d.ts +268 -7
- package/dist/index.js +7 -1
- package/dist/ui.css +1 -1
- package/dist/virtual/grid-aria.js +16 -0
- package/dist/virtual/grid-navigation.js +84 -0
- package/dist/virtual/index.js +6 -0
- package/dist/virtual/kept-range.js +32 -0
- package/dist/virtual/use-virtual-scroller.js +180 -0
- package/dist/virtual/virtual.constants.js +7 -0
- package/package.json +6 -4
- package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/dialecte-Cs_XRP4I.js +0 -4426
- package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +0 -130
- package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/index.js +0 -6
- package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/project-key-sr4wkl2Q.js +0 -1371
- package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js +0 -865
- package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/utils.js +0 -2
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { O as e, W as t, c as n, k as r, l as i, s as a, u as o, w as s, y as c } from "./utils-Cv4oHia0.js";
|
|
2
|
-
function l(e) {
|
|
3
|
-
let { dialecteConfig: t, tagName: n, attributes: r, stored: i = [] } = e;
|
|
4
|
-
return (Array.isArray(r) ? r : Object.entries(r).map(([e, r]) => ({
|
|
5
|
-
name: e,
|
|
6
|
-
value: r,
|
|
7
|
-
namespace: u({
|
|
8
|
-
dialecteConfig: t,
|
|
9
|
-
tagName: n,
|
|
10
|
-
name: e
|
|
11
|
-
}) ?? i.find((t) => t.name === e)?.namespace
|
|
12
|
-
}))).map((e) => d({
|
|
13
|
-
attribute: e,
|
|
14
|
-
dialecteConfig: t,
|
|
15
|
-
tagName: n
|
|
16
|
-
}));
|
|
17
|
-
}
|
|
18
|
-
function u(e) {
|
|
19
|
-
let { dialecteConfig: t, tagName: n, name: r } = e, i = t.definition[n];
|
|
20
|
-
if (i === void 0) return;
|
|
21
|
-
let a = Object.values(i.declarations ?? {}), o = [i, ...a].flatMap((e) => e.variants ?? []), s = [
|
|
22
|
-
i,
|
|
23
|
-
...a,
|
|
24
|
-
...o.flatMap((e) => t.types[e] ?? [])
|
|
25
|
-
];
|
|
26
|
-
for (let e of s) {
|
|
27
|
-
let t = e.attributes.details[r]?.namespace;
|
|
28
|
-
if (t) return t;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function d(e) {
|
|
32
|
-
let { attribute: n, dialecteConfig: r, tagName: a } = e, s;
|
|
33
|
-
typeof n.namespace == "string" ? (s = o(r, n.namespace), s || t("UNKNOWN_NAMESPACE_PREFIX", {
|
|
34
|
-
detail: `Unknown namespace '${n.namespace}' on attribute '${n.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
|
|
35
|
-
ref: { tagName: a }
|
|
36
|
-
})) : s = n.namespace;
|
|
37
|
-
let l = n.name.indexOf(":");
|
|
38
|
-
if (!s && l !== -1) {
|
|
39
|
-
let e = n.name.slice(0, l);
|
|
40
|
-
e !== "xmlns" && (s = i(r, e), s || t("UNKNOWN_NAMESPACE_PREFIX", {
|
|
41
|
-
detail: `Unknown namespace prefix '${e}' on attribute '${n.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
|
|
42
|
-
ref: { tagName: a }
|
|
43
|
-
}));
|
|
44
|
-
}
|
|
45
|
-
return s && s.prefix && s.uri !== "http://www.w3.org/2000/xmlns/" && (s = f({
|
|
46
|
-
dialecteConfig: r,
|
|
47
|
-
uri: s.uri
|
|
48
|
-
}) ?? s), s && s.prefix && s.prefix !== "xmlns" ? {
|
|
49
|
-
...n,
|
|
50
|
-
name: `${s.prefix}:${c(n.name)}`,
|
|
51
|
-
namespace: s
|
|
52
|
-
} : (n.namespace, {
|
|
53
|
-
...n,
|
|
54
|
-
namespace: s
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
function f(e) {
|
|
58
|
-
let { dialecteConfig: t, uri: n } = e;
|
|
59
|
-
return Object.values(t.namespaces).find((e) => e.uri === n && e.prefix !== "");
|
|
60
|
-
}
|
|
61
|
-
function p(e) {
|
|
62
|
-
let { dialecteConfig: t, hooks: r, record: i } = e, { id: o, tagName: c, attributes: u, namespace: d, value: f } = i, p = o ?? crypto.randomUUID(), h = m({
|
|
63
|
-
dialecteConfig: t,
|
|
64
|
-
attributes: u ? l({
|
|
65
|
-
tagName: c,
|
|
66
|
-
attributes: u,
|
|
67
|
-
dialecteConfig: t
|
|
68
|
-
}) : []
|
|
69
|
-
}), g = {
|
|
70
|
-
id: p,
|
|
71
|
-
tagName: c,
|
|
72
|
-
attributes: h,
|
|
73
|
-
namespace: d ?? {
|
|
74
|
-
prefix: "prefixNeededForNotSupportedNamespace",
|
|
75
|
-
uri: "uriNeededForNotSupportedNamespace"
|
|
76
|
-
},
|
|
77
|
-
value: f ?? "",
|
|
78
|
-
parent: i.parent ?? null,
|
|
79
|
-
children: i.children ?? []
|
|
80
|
-
}, _ = Object.values(t.namespaces).map(({ uri: e }) => e), v = d?.uri != null && !_.includes(d.uri);
|
|
81
|
-
if (!t.elements.includes(c) || v) return g;
|
|
82
|
-
let y = s({
|
|
83
|
-
dialecteConfig: t,
|
|
84
|
-
record: {
|
|
85
|
-
...g,
|
|
86
|
-
namespace: d
|
|
87
|
-
}
|
|
88
|
-
}), b = y?.attributes.sequence ?? [], x = a({
|
|
89
|
-
wildcard: y?.attributes.any,
|
|
90
|
-
namespaceUri: ""
|
|
91
|
-
}), S = h.filter((e) => {
|
|
92
|
-
let t = b.includes(e.name), n = "namespace" in e && e.namespace != null;
|
|
93
|
-
if (!t && !n && !x) return !1;
|
|
94
|
-
if (!t) return !0;
|
|
95
|
-
if (e.value === void 0 || e.value === null) return !1;
|
|
96
|
-
if (e.value !== "") return !0;
|
|
97
|
-
let r = y?.attributes.details[e.name];
|
|
98
|
-
return r?.default !== void 0 || r?.fixed !== void 0;
|
|
99
|
-
}), C = t.namespaces.default.uri, w = S.map((e) => {
|
|
100
|
-
if ("namespace" in e && e.namespace?.uri === C) {
|
|
101
|
-
let { namespace: t, ...n } = e;
|
|
102
|
-
return n;
|
|
103
|
-
}
|
|
104
|
-
return e;
|
|
105
|
-
}), T = t.definition[c], E = [y?.namespace ?? T.namespace, ...Object.values(T.declarations ?? {}).map((e) => e.namespace)], D = E.find((e) => e.uri === d?.uri), O = {
|
|
106
|
-
...g,
|
|
107
|
-
namespace: D ?? d ?? E[0],
|
|
108
|
-
attributes: n(w, b)
|
|
109
|
-
};
|
|
110
|
-
return r?.afterStandardizedRecord && (O = r.afterStandardizedRecord({ record: O }), O = {
|
|
111
|
-
...O,
|
|
112
|
-
attributes: n(m({
|
|
113
|
-
dialecteConfig: t,
|
|
114
|
-
attributes: O.attributes
|
|
115
|
-
}), b)
|
|
116
|
-
}), O;
|
|
117
|
-
}
|
|
118
|
-
function m(t) {
|
|
119
|
-
let { dialecteConfig: n, attributes: i } = t;
|
|
120
|
-
return r({
|
|
121
|
-
dialecteConfig: n,
|
|
122
|
-
attributes: i,
|
|
123
|
-
namespaceOf: e({
|
|
124
|
-
dialecteConfig: n,
|
|
125
|
-
attributes: i
|
|
126
|
-
})
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
//#endregion
|
|
130
|
-
export { p as l, l as u };
|