@septkit/ui 0.0.75 → 0.0.76

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 (26) hide show
  1. package/dist/dialecte/composables/use-live-data.js +2 -1
  2. package/dist/dialecte/create-document-store.js +4 -4
  3. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js +4415 -0
  4. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js +179 -0
  5. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js +3 -0
  6. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js +5 -0
  7. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js +1370 -0
  8. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +13 -0
  9. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js +61 -0
  10. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/same-json-value-C6kUaoyt.js +1543 -0
  11. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js +962 -0
  12. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils.js +2 -0
  13. 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
  14. 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
  15. package/dist/merge/check-files/identity-warning.js +1 -1
  16. package/dist/merge/confirm/outcome.js +4 -3
  17. package/dist/merge/match/match.js +6 -7
  18. package/dist/merge/session/merge.service.js +2 -2
  19. package/dist/merge/session/use-merge-session.js +2 -0
  20. package/dist/merge/wording.js +6 -7
  21. package/package.json +3 -3
  22. package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/helpers.js +0 -229
  23. package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/index.js +0 -3
  24. package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/project-sK-5Xc-5.js +0 -7371
  25. package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils-CTBHUFs9.js +0 -440
  26. package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils.js +0 -2
@@ -1,6 +1,6 @@
1
- import "../../../../../../@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/index.js";
2
- import { T as e, V as t, i as n, s as r } from "../hooks-C05NpRNi.js";
3
- //#region node_modules/.pnpm/@dialecte+scl@0.8.1/node_modules/@dialecte/scl/dist/v2019C1/index.js
1
+ import "../../../../../../@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js";
2
+ import { _ as e, i as t, m as n, nt as r } from "../hooks-F61-rgXT.js";
3
+ //#region node_modules/.pnpm/@dialecte+scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js
4
4
  var i = {
5
5
  "cross-type-template-uuid": {
6
6
  title: "Placeholder templateUuid reused across element types",
@@ -19,4 +19,4 @@ var i = {
19
19
  }
20
20
  };
21
21
  //#endregion
22
- export { r as SCL_ERRORS, t as TEMPLATE_NAME, i as TEMPLATE_UUID_WARNING_INFO, e as getPathSegment, n as presentationScope };
22
+ export { n as SCL_ERRORS, r as TEMPLATE_NAME, i as TEMPLATE_UUID_WARNING_INFO, e as getPathSegment, t as presentationScope };
@@ -1,4 +1,4 @@
1
- import { TEMPLATE_UUID_WARNING_INFO as e } from "../../external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/v2019C1/index.js";
1
+ import { TEMPLATE_UUID_WARNING_INFO as e } from "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
2
2
  //#region lib/merge/check-files/identity-warning.ts
3
3
  function t(t) {
4
4
  let r = e[t];
@@ -1,6 +1,7 @@
1
- import { toRawRecord as e, toRef as t } from "../../external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/helpers.js";
2
- import { T as n } from "../../external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/hooks-C05NpRNi.js";
3
- import "../../external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/v2019C1/index.js";
1
+ import { d as e, f as t } from "../../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js";
2
+ import "../../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js";
3
+ import { _ as n } from "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js";
4
+ import "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
4
5
  import { extractTitle as r, getAttributes as i } from "../session/merge.service.js";
5
6
  import { allGroups as a } from "../review/tree.js";
6
7
  import { countAttributeChanges as o, foldOperations as s } from "../session/staged-writes.js";
@@ -1,11 +1,12 @@
1
- import { toRef as e } from "../../external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/helpers.js";
2
- import "../../external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/hooks-C05NpRNi.js";
3
- import "../../external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/v2019C1/index.js";
1
+ import { f as e } from "../../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js";
2
+ import "../../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js";
3
+ import "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js";
4
+ import "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
4
5
  import { extractTitle as t } from "../session/merge.service.js";
5
6
  //#region lib/merge/match/match.ts
6
7
  async function n(e) {
7
8
  let { mappings: t, sourceQuery: n, targetQuery: r } = e, i = [], a = [];
8
- for (let e of t) e.selectable && !e.locked ? i.push(e) : a.push(e);
9
+ for (let e of t) e.locked ? a.push(e) : i.push(e);
9
10
  return {
10
11
  changeable: await v({
11
12
  mappings: i,
@@ -78,9 +79,7 @@ var m = {
78
79
  }, h = "Placement", g = {
79
80
  Function: "Functions",
80
81
  AllocationRole: "Allocation roles",
81
- FunctionCategory: "Function categories",
82
- Variable: "Variables",
83
- BehaviorDescription: "Behaviour descriptions"
82
+ FunctionCategory: "Function categories"
84
83
  }, _ = Object.keys(g);
85
84
  async function v(e) {
86
85
  let { mappings: t, sourceQuery: n, targetQuery: r } = e, i = [], a = /* @__PURE__ */ new Map();
@@ -1,5 +1,5 @@
1
- import { i as e } from "../../external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/hooks-C05NpRNi.js";
2
- import "../../external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/v2019C1/index.js";
1
+ import { i as e } from "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js";
2
+ import "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
3
3
  //#region lib/merge/session/merge.service.ts
4
4
  async function t(e, t, n) {
5
5
  return n ? e.query.lifecycle.report({
@@ -48,6 +48,8 @@ function p(p) {
48
48
  targetQuery: p.targetDocument.query
49
49
  });
50
50
  _.value = xe(t);
51
+ let n = new Set(u(e).map((e) => e.id));
52
+ for (let e of h.keys()) n.has(e) || h.delete(e);
51
53
  for (let t of u(e)) h.has(t.id) || t.suggestedAction && t.suggestedAction !== "accept" && h.set(t.id, t.suggestedAction);
52
54
  }
53
55
  function ye(e, t) {
@@ -1,7 +1,7 @@
1
- import { I as e, R as t } from "../external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils-CTBHUFs9.js";
2
- import "../external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/index.js";
3
- import { s as n } from "../external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/hooks-C05NpRNi.js";
4
- import "../external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/v2019C1/index.js";
1
+ import { G as e, U as t } from "../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js";
2
+ import "../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js";
3
+ import { m as n } from "../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js";
4
+ import "../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
5
5
  //#region lib/merge/wording.ts
6
6
  var r = {
7
7
  added: "new",
@@ -11,14 +11,13 @@ var r = {
11
11
  "target-only": "yours"
12
12
  }, i = "left out";
13
13
  function a(r, i = {}) {
14
- let a = t(r);
14
+ let a = e(r);
15
15
  if (!a) return r instanceof Error ? r.message : String(r);
16
- let s = a.meta?.sourceId, c = typeof s == "string" && i.titleOf?.(s) || void 0, l = e(a, { catalogues: [n] }) ? o[a.key] : void 0;
16
+ let s = a.meta?.sourceId, c = typeof s == "string" && i.titleOf?.(s) || void 0, l = t(a, { catalogues: [n] }) ? o[a.key] : void 0;
17
17
  return l ? l(c) : a.message;
18
18
  }
19
19
  var o = {
20
20
  MAPPING_CHOICE_UNKNOWN: () => "This choice is about an element the template does not bring.",
21
- MAPPING_CHOICE_NOT_SELECTABLE: (e) => `Where ${e ?? "this element"} lands is decided by the merge: it cannot be chosen.`,
22
21
  MAPPING_CHOICE_LOCKED: (e) => `${s(e ?? "this element")} is already used by this instance: where it lands cannot be changed.`,
23
22
  MAPPING_CHOICE_NOT_A_CANDIDATE: (e) => `${s(e ?? "this element")} cannot land on the element you picked.`,
24
23
  MAPPING_UNDECIDED: (e) => `Choose where ${e ?? "this element"} lands before going on.`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@septkit/ui",
3
- "version": "0.0.75",
3
+ "version": "0.0.76",
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.6.1",
20
- "@dialecte/scl": "0.8.1",
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",
@@ -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 };
@@ -1,3 +0,0 @@
1
- import { F as e, I as t, R as n } from "./utils-CTBHUFs9.js";
2
- import { ht as r } from "./project-sK-5Xc-5.js";
3
- export { r as bindExtensions, e as defineErrors, t as isKnownDialecteError, n as toDialecteError };