@septkit/ui 0.0.48 → 0.0.50

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 (21) hide show
  1. package/dist/dialecte/composables/use-active-document.js +18 -11
  2. package/dist/dialecte/create-document-store.js +3 -3
  3. package/dist/external/.pnpm/{@dialecte_core@0.4.7 → @dialecte_core@0.4.9}/node_modules/@dialecte/core/dist/helpers.js +16 -19
  4. package/dist/external/.pnpm/{@dialecte_core@0.4.7 → @dialecte_core@0.4.9}/node_modules/@dialecte/core/dist/index.js +1 -1
  5. 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
  6. 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
  7. package/dist/external/.pnpm/{@dialecte_scl@0.3.8/node_modules/@dialecte/scl/dist/hooks-DJJN-WU2.js → @dialecte_scl@0.3.9/node_modules/@dialecte/scl/dist/hooks-DO4gUiix.js} +48 -5277
  8. package/dist/external/.pnpm/@dialecte_scl@0.3.9/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -0
  9. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/rotate-ccw.js +11 -0
  10. package/dist/index.d.ts +27 -1
  11. package/dist/merge/affix.js +14 -0
  12. package/dist/merge/build-view-model.js +37 -21
  13. package/dist/merge/element-detail.vue_vue_type_script_setup_true_lang.js +93 -32
  14. package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +159 -152
  15. package/dist/merge/merge-summary.vue_vue_type_script_setup_true_lang.js +47 -25
  16. package/dist/merge/merge-tree.vue_vue_type_script_setup_true_lang.js +11 -9
  17. package/dist/merge/merge.service.js +2 -2
  18. package/dist/merge/use-merge-session.js +4 -1
  19. package/dist/ui.css +1 -1
  20. package/package.json +3 -3
  21. package/dist/external/.pnpm/@dialecte_scl@0.3.8/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -3
@@ -1,23 +1,30 @@
1
1
  import { getCurrentScope as e, onScopeDispose as t, ref as n } from "vue";
2
2
  //#region lib/dialecte/composables/use-active-document.ts
3
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();
4
+ let { project: i, activeDocumentId: a, hydrate: o, clear: s } = r, c = n(!1), l = n(a.value), u = 0, d = !1;
5
+ async function f(e) {
6
+ let t = ++u;
7
+ if (l.value = e, c.value = !1, !e) {
8
+ s();
8
9
  return;
9
10
  }
10
- let { ready: t } = await i.getDocumentStatus(e);
11
- a.value === e && (t ? (o(i.openDocument(e)), c.value = !0) : (c.value = !1, s()));
11
+ try {
12
+ let { ready: n } = await i.getDocumentStatus(e);
13
+ if (d || t !== u) return;
14
+ n ? (o(i.openDocument(e)), c.value = !0) : s();
15
+ } catch (e) {
16
+ if (d || t !== u) return;
17
+ console.debug("[useActiveDocument] getDocumentStatus failed", e), c.value = !1, s();
18
+ }
12
19
  }
13
- u(a.value);
14
- let d = a.subscribe((e) => void u(e)), f = () => {
15
- d(), s();
20
+ f(a.value);
21
+ let p = a.subscribe((e) => void f(e)), m = () => {
22
+ d || (d = !0, u += 1, p(), c.value = !1, s());
16
23
  };
17
- return e() && t(f), {
24
+ return e() && t(m), {
18
25
  isReady: c,
19
26
  activeDocumentId: l,
20
- stop: f
27
+ stop: m
21
28
  };
22
29
  }
23
30
  //#endregion
@@ -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",