@septkit/ui 0.0.49 → 0.0.51

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 (28) hide show
  1. package/dist/dialecte/composables/use-active-document.js +27 -17
  2. package/dist/dialecte/composables/use-live-data.js +13 -13
  3. package/dist/dialecte/create-document-store.js +3 -3
  4. package/dist/external/.pnpm/{@dialecte_core@0.4.7 → @dialecte_core@0.4.9}/node_modules/@dialecte/core/dist/helpers.js +16 -19
  5. package/dist/external/.pnpm/{@dialecte_core@0.4.7 → @dialecte_core@0.4.9}/node_modules/@dialecte/core/dist/index.js +1 -1
  6. package/dist/external/.pnpm/{@dialecte_core@0.4.7/node_modules/@dialecte/core/dist/project-DxIu-3AU.js → @dialecte_core@0.4.9/node_modules/@dialecte/core/dist/project-D-KS3OPN.js} +1 -1
  7. package/dist/external/.pnpm/{@dialecte_core@0.4.7 → @dialecte_core@0.4.9}/node_modules/@dialecte/core/dist/utils-C5_11hqg.js +1 -1
  8. package/dist/external/.pnpm/{@dialecte_scl@0.3.8/node_modules/@dialecte/scl/dist/hooks-DJJN-WU2.js → @dialecte_scl@0.3.12/node_modules/@dialecte/scl/dist/hooks-Cm_UYBBt.js} +48 -5277
  9. package/dist/external/.pnpm/@dialecte_scl@0.3.12/node_modules/@dialecte/scl/dist/v2019C1/index.js +22 -0
  10. package/dist/index.d.ts +48 -10
  11. package/dist/merge/build-view-model.js +101 -74
  12. package/dist/merge/decision-toggle.vue_vue_type_script_setup_true_lang.js +2 -2
  13. package/dist/merge/element-detail.vue_vue_type_script_setup_true_lang.js +154 -45
  14. package/dist/merge/merge-correlate.js +46 -0
  15. package/dist/merge/merge-decision.js +6 -0
  16. package/dist/merge/merge-highlight.js +44 -0
  17. package/dist/merge/merge-preflight.js +5 -0
  18. package/dist/merge/merge-preflight.vue_vue_type_script_setup_true_lang.js +41 -0
  19. package/dist/merge/merge-progress.vue_vue_type_script_setup_true_lang.js +12 -20
  20. package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +230 -181
  21. package/dist/merge/merge-summary.vue_vue_type_script_setup_true_lang.js +47 -25
  22. package/dist/merge/merge-tree.vue_vue_type_script_setup_true_lang.js +73 -62
  23. package/dist/merge/merge.service.js +36 -23
  24. package/dist/merge/use-document-progress.js +8 -9
  25. package/dist/merge/use-merge-session.js +122 -108
  26. package/dist/ui.css +1 -1
  27. package/package.json +3 -3
  28. package/dist/external/.pnpm/@dialecte_scl@0.3.8/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -3
@@ -1,24 +1,34 @@
1
- import { getCurrentScope as e, onScopeDispose as t, ref as n } from "vue";
1
+ import { computed as e, getCurrentScope as t, onScopeDispose as n, ref as r } from "vue";
2
2
  //#region lib/dialecte/composables/use-active-document.ts
3
- function r(r) {
4
- let { project: i, activeDocumentId: a, hydrate: o, clear: s } = r, c = n(!1), l = n(a.value);
5
- async function u(e) {
6
- if (l.value = e, !e) {
7
- c.value = !1, s();
8
- return;
3
+ function i(i) {
4
+ let { project: a, activeDocumentId: o, hydrate: s, clear: c } = i, l = r(), u = e(() => l.value !== void 0), d = r(o.value), f = 0, p = !1;
5
+ function m() {
6
+ l.value = void 0, c?.();
7
+ }
8
+ async function h(e) {
9
+ let t = ++f;
10
+ if (d.value = e, m(), e) try {
11
+ let { ready: n } = await a.getDocumentStatus(e);
12
+ if (p || t !== f) return;
13
+ if (n) {
14
+ let t = a.openDocument(e);
15
+ l.value = t, s?.(t);
16
+ }
17
+ } catch (e) {
18
+ if (p || t !== f) return;
19
+ console.debug("[useActiveDocument] getDocumentStatus failed", e);
9
20
  }
10
- let { ready: t } = await i.getDocumentStatus(e);
11
- a.value === e && (t ? (o(i.openDocument(e)), c.value = !0) : (c.value = !1, s()));
12
21
  }
13
- u(a.value);
14
- let d = a.subscribe((e) => void u(e)), f = () => {
15
- d(), s();
22
+ h(o.value);
23
+ let g = o.subscribe((e) => void h(e)), _ = () => {
24
+ p || (p = !0, f += 1, g(), m());
16
25
  };
17
- return e() && t(f), {
18
- isReady: c,
19
- activeDocumentId: l,
20
- stop: f
26
+ return t() && n(_), {
27
+ document: l,
28
+ isReady: u,
29
+ activeDocumentId: d,
30
+ stop: _
21
31
  };
22
32
  }
23
33
  //#endregion
24
- export { r as useActiveDocument };
34
+ export { i as useActiveDocument };
@@ -1,31 +1,31 @@
1
1
  import { useDebounceFn as e } from "../../external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
2
2
  import { useAsyncState as t } from "../../external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js";
3
3
  import { useDialecteChannel as n } from "./use-dialecte-channel.js";
4
- import { computed as r, toValue as i, unref as a, watch as o } from "vue";
4
+ import { computed as r, toValue as i, watch as a } from "vue";
5
5
  //#region lib/dialecte/composables/use-live-data.ts
6
- function s(i) {
7
- let { document: s, fetcher: c, initial: l } = i, { state: u, isLoading: d, error: f, execute: p } = t(c, l), m = e(p, 50), h = r(() => a(s)), { data: g } = n(h.value.channelName);
8
- return o(g, (e) => {
9
- e?.type === "commit" && e.documentId === h.value.documentId && m();
10
- }), o(() => h.value.documentId, () => {
11
- u.value = l, m();
12
- }), {
6
+ function o(o) {
7
+ let { document: s, fetcher: c, initial: l } = o, { state: u, isLoading: d, error: f, execute: p } = t(c, l, { immediate: !1 }), m = e(p, 50), h = r(() => i(s)), { data: g } = n(r(() => h.value?.channelName));
8
+ return a(g, (e) => {
9
+ e?.type === "commit" && e.documentId === h.value?.documentId && m();
10
+ }), a(() => h.value?.documentId, (e) => {
11
+ u.value = l, e && m();
12
+ }, { immediate: !0 }), {
13
13
  state: u,
14
14
  isLoading: d,
15
15
  error: f,
16
16
  refresh: p
17
17
  };
18
18
  }
19
- function c(a) {
20
- let { project: s, fetcher: c, initial: l } = a, { state: u, isLoading: d, error: f, execute: p } = t(c, l, { immediate: !1 }), m = e(p, 50), h = r(() => i(s)?.channelName), { data: g } = n(h);
21
- return o(g, (e) => {
19
+ function s(o) {
20
+ let { project: s, fetcher: c, initial: l } = o, { state: u, isLoading: d, error: f, execute: p } = t(c, l, { immediate: !1 }), m = e(p, 50), h = r(() => i(s)?.channelName), { data: g } = n(h);
21
+ return a(g, (e) => {
22
22
  switch (e?.type) {
23
23
  case "commit":
24
24
  case "init-empty-document":
25
25
  case "document-removed":
26
26
  case "document-imported": m();
27
27
  }
28
- }), o(h, (e) => {
28
+ }), a(h, (e) => {
29
29
  u.value = l, e && m();
30
30
  }, { immediate: !0 }), {
31
31
  state: u,
@@ -35,4 +35,4 @@ function c(a) {
35
35
  };
36
36
  }
37
37
  //#endregion
38
- export { s as useLiveData, c as useProjectLiveData };
38
+ export { o as useLiveData, s as useProjectLiveData };
@@ -1,6 +1,6 @@
1
- import { r as e } from "../external/.pnpm/@dialecte_core@0.4.7/node_modules/@dialecte/core/dist/utils-C5_11hqg.js";
2
- import { ut as t } from "../external/.pnpm/@dialecte_core@0.4.7/node_modules/@dialecte/core/dist/project-DxIu-3AU.js";
3
- import "../external/.pnpm/@dialecte_core@0.4.7/node_modules/@dialecte/core/dist/index.js";
1
+ import { r as e } from "../external/.pnpm/@dialecte_core@0.4.9/node_modules/@dialecte/core/dist/utils-C5_11hqg.js";
2
+ import { ut as t } from "../external/.pnpm/@dialecte_core@0.4.9/node_modules/@dialecte/core/dist/project-D-KS3OPN.js";
3
+ import "../external/.pnpm/@dialecte_core@0.4.9/node_modules/@dialecte/core/dist/index.js";
4
4
  import { computed as n, shallowRef as r } from "vue";
5
5
  //#region lib/dialecte/create-document-store.ts
6
6
  function i(i) {
@@ -1,5 +1,5 @@
1
1
  import { a as e, c as t, l as n, o as r, p as i, r as a, u as o } from "./utils-C5_11hqg.js";
2
- //#region node_modules/.pnpm/@dialecte+core@0.4.7/node_modules/@dialecte/core/dist/helpers.js
2
+ //#region node_modules/.pnpm/@dialecte+core@0.4.9/node_modules/@dialecte/core/dist/helpers.js
3
3
  var s = "db-id", c = {
4
4
  uri: "http://dialecte.dev/XML/DEV",
5
5
  prefix: "dev"
@@ -13,10 +13,7 @@ var l = {
13
13
  function u(e, t) {
14
14
  return e.tagName === t;
15
15
  }
16
- function d(e, t) {
17
- return t.elements.includes(e);
18
- }
19
- function f(e) {
16
+ function d(e) {
20
17
  return {
21
18
  id: e.id,
22
19
  tagName: e.tagName,
@@ -27,36 +24,36 @@ function f(e) {
27
24
  children: e.children
28
25
  };
29
26
  }
30
- function p(e) {
27
+ function f(e) {
31
28
  let { record: t, status: n } = e, r = n ?? ("status" in t ? t.status : "unchanged");
32
29
  return {
33
- ...f(t),
30
+ ...d(t),
34
31
  status: r
35
32
  };
36
33
  }
37
- function m(e) {
34
+ function p(e) {
38
35
  let { record: t, status: n, tree: r } = e, i = r ?? ("tree" in t ? t.tree : []);
39
36
  return {
40
- ...p({
37
+ ...f({
41
38
  record: t,
42
39
  status: n
43
40
  }),
44
41
  tree: i
45
42
  };
46
43
  }
47
- function h(e) {
44
+ function m(e) {
48
45
  let { dialecteConfig: t, tagName: n, attributes: r } = e;
49
46
  return (Array.isArray(r) ? r : Object.entries(r).map(([e, r]) => ({
50
47
  name: e,
51
48
  value: r,
52
49
  namespace: t.definition[n]?.attributes.details[e]?.namespace || void 0
53
- }))).map((e) => g({
50
+ }))).map((e) => h({
54
51
  attribute: e,
55
52
  dialecteConfig: t,
56
53
  tagName: n
57
54
  }));
58
55
  }
59
- function g(t) {
56
+ function h(t) {
60
57
  let { attribute: r, dialecteConfig: a, tagName: s } = t, c;
61
58
  typeof r.namespace == "string" ? (c = o(a, r.namespace), c || i("UNKNOWN_NAMESPACE_PREFIX", {
62
59
  detail: `Unknown namespace '${r.namespace}' on attribute '${r.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
@@ -79,14 +76,14 @@ function g(t) {
79
76
  namespace: c
80
77
  });
81
78
  }
82
- function _(e) {
79
+ function g(e) {
83
80
  return a(e, { detail: "The record or ref is undefined" }), {
84
81
  id: e.id,
85
82
  tagName: e.tagName
86
83
  };
87
84
  }
88
- function v(e) {
89
- let { dialecteConfig: n, hooks: r, record: i } = e, { id: a, tagName: o, attributes: s, namespace: c, value: l } = i, u = a ?? crypto.randomUUID(), d = s ? h({
85
+ function _(e) {
86
+ let { dialecteConfig: n, hooks: r, record: i } = e, { id: a, tagName: o, attributes: s, namespace: c, value: l } = i, u = a ?? crypto.randomUUID(), d = s ? m({
90
87
  tagName: o,
91
88
  attributes: s,
92
89
  dialecteConfig: n
@@ -101,8 +98,8 @@ function v(e) {
101
98
  value: l ?? "",
102
99
  parent: i.parent ?? null,
103
100
  children: i.children ?? []
104
- }, p = Object.values(n.namespaces).map(({ uri: e }) => e), m = c?.uri != null && !p.includes(c.uri);
105
- if (!(n.elements.includes(o) && !m)) return f;
101
+ }, p = Object.values(n.namespaces).map(({ uri: e }) => e), h = c?.uri != null && !p.includes(c.uri);
102
+ if (!(n.elements.includes(o) && !h)) return f;
106
103
  let g = n.definition[o].attributes.sequence, _ = d.filter((e) => {
107
104
  let t = g.includes(e.name), n = "namespace" in e && e.namespace != null;
108
105
  if (!t && !n) return !1;
@@ -124,7 +121,7 @@ function v(e) {
124
121
  attributes: t(S.attributes, g)
125
122
  }), S;
126
123
  }
127
- function y(e) {
124
+ function v(e) {
128
125
  let { dialecteConfig: t, tagName: n, attributes: a } = e;
129
126
  for (let e of a) {
130
127
  let a = r({
@@ -139,4 +136,4 @@ function y(e) {
139
136
  }
140
137
  }
141
138
  //#endregion
142
- export { s as CUSTOM_RECORD_ID_ATTRIBUTE_NAME, c as DIALECTE_DEV_NAMESPACE, l as XSI_NAMESPACE, y as assertNoFixedViolation, d as isElementOf, u as isRecordOf, v as standardizeRecord, h as toFullAttributeArray, f as toRawRecord, _ as toRef, p as toTrackedRecord, m as toTreeRecord };
139
+ export { s as CUSTOM_RECORD_ID_ATTRIBUTE_NAME, c as DIALECTE_DEV_NAMESPACE, l as XSI_NAMESPACE, v as assertNoFixedViolation, u as isRecordOf, _ as standardizeRecord, m as toFullAttributeArray, d as toRawRecord, g as toRef, f as toTrackedRecord, p as toTreeRecord };
@@ -1,3 +1,3 @@
1
1
  import "./utils-C5_11hqg.js";
2
- import { ut as e } from "./project-DxIu-3AU.js";
2
+ import { ut as e } from "./project-D-KS3OPN.js";
3
3
  export { e as bindExtensions };
@@ -1,6 +1,6 @@
1
1
  import { a as e, d as t, f as n, n as r, o as i, p as a, r as o } from "./utils-C5_11hqg.js";
2
2
  import { assertNoFixedViolation as s, isRecordOf as c, standardizeRecord as l, toFullAttributeArray as u, toRawRecord as d, toRef as f, toTreeRecord as p } from "./helpers.js";
3
- //#region node_modules/.pnpm/@dialecte+core@0.4.7/node_modules/@dialecte/core/dist/project-DxIu-3AU.js
3
+ //#region node_modules/.pnpm/@dialecte+core@0.4.9/node_modules/@dialecte/core/dist/project-D-KS3OPN.js
4
4
  var m = Object.create, h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.getOwnPropertyNames, v = Object.getPrototypeOf, y = Object.prototype.hasOwnProperty, b = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), x = (e, t, n, r) => {
5
5
  if (t && typeof t == "object" || typeof t == "function") for (var i = _(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !y.call(e, s) && s !== n && h(e, s, {
6
6
  get: ((e) => t[e]).bind(null, s),
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/@dialecte+core@0.4.7/node_modules/@dialecte/core/dist/utils-C5_11hqg.js
1
+ //#region node_modules/.pnpm/@dialecte+core@0.4.9/node_modules/@dialecte/core/dist/utils-C5_11hqg.js
2
2
  var e = {
3
3
  UNKNOWN: {
4
4
  code: "D0001",