@septkit/ui 0.0.57 → 0.0.59
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/_virtual/_rolldown/runtime.js +17 -11
- package/dist/diagram-layout/elk-layout-engine.js +71 -0
- package/dist/diagram-layout/index.js +2 -0
- package/dist/dialecte/create-document-store.js +3 -3
- package/dist/external/.pnpm/{@dialecte_core@0.4.12 → @dialecte_core@0.4.16}/node_modules/@dialecte/core/dist/helpers.js +41 -41
- package/dist/external/.pnpm/@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/index.js +3 -0
- package/dist/external/.pnpm/{@dialecte_core@0.4.12/node_modules/@dialecte/core/dist/project-DkMkDgld.js → @dialecte_core@0.4.16/node_modules/@dialecte/core/dist/project-nvZv2ie8.js} +797 -745
- package/dist/external/.pnpm/{@dialecte_core@0.4.12/node_modules/@dialecte/core/dist/utils-C5_11hqg.js → @dialecte_core@0.4.16/node_modules/@dialecte/core/dist/utils-BiEx1x59.js} +2 -2
- package/dist/external/.pnpm/{@dialecte_scl@0.3.15/node_modules/@dialecte/scl/dist/hooks-CLIa7kxj.js → @dialecte_scl@0.3.17/node_modules/@dialecte/scl/dist/hooks-BBGXNK0x.js} +31 -19
- package/dist/external/.pnpm/{@dialecte_scl@0.3.15 → @dialecte_scl@0.3.17}/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -3
- package/dist/external/.pnpm/elkjs@0.10.2/node_modules/elkjs/lib/elk.bundled.js +46047 -0
- package/dist/index.d.ts +79 -2
- package/dist/index.js +3 -1
- package/dist/merge/build-view-model.js +17 -17
- package/dist/merge/merge-preflight.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/merge/merge.service.js +16 -20
- package/dist/merge/use-merge-session.js +101 -121
- package/package.json +4 -3
- package/dist/external/.pnpm/@dialecte_core@0.4.12/node_modules/@dialecte/core/dist/index.js +0 -3
- package/dist/merge/merge-correlate.js +0 -46
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
|
|
3
3
|
let r = {};
|
|
4
|
-
for (var i in
|
|
5
|
-
get:
|
|
4
|
+
for (var i in e) t(r, i, {
|
|
5
|
+
get: e[i],
|
|
6
6
|
enumerable: !0
|
|
7
7
|
});
|
|
8
|
-
return n ||
|
|
9
|
-
},
|
|
10
|
-
if (
|
|
11
|
-
get: ((e) =>
|
|
12
|
-
enumerable: !(s =
|
|
8
|
+
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
+
}, c = (e, i, o, s) => {
|
|
10
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
11
|
+
get: ((e) => i[e]).bind(null, d),
|
|
12
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
13
|
});
|
|
14
|
-
return
|
|
15
|
-
},
|
|
14
|
+
return e;
|
|
15
|
+
}, l = (e, t, n) => (c(e, t, "default"), n && c(n, t, "default")), u = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
|
|
16
|
+
value: n,
|
|
17
|
+
enumerable: !0
|
|
18
|
+
}) : a, n)), d = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
19
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
20
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
21
|
+
});
|
|
16
22
|
//#endregion
|
|
17
|
-
export {
|
|
23
|
+
export { o as __commonJSMin, s as __exportAll, l as __reExport, d as __require, u as __toESM };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { __toESM as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_elk_bundled as t } from "../external/.pnpm/elkjs@0.10.2/node_modules/elkjs/lib/elk.bundled.js";
|
|
3
|
+
//#region lib/diagram-layout/elk-layout-engine.ts
|
|
4
|
+
var n = /* @__PURE__ */ e(t(), 1), r = "elk.direction";
|
|
5
|
+
function i(e) {
|
|
6
|
+
let t = new n.default();
|
|
7
|
+
return { async layout(n, r) {
|
|
8
|
+
let i = o(n, a(e, r));
|
|
9
|
+
return l(await t.layout(i));
|
|
10
|
+
} };
|
|
11
|
+
}
|
|
12
|
+
function a(e, t) {
|
|
13
|
+
if (!(!e && !t)) return {
|
|
14
|
+
...e,
|
|
15
|
+
...t,
|
|
16
|
+
elkOptions: {
|
|
17
|
+
...e?.elkOptions,
|
|
18
|
+
...t?.elkOptions
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function o(e, t) {
|
|
23
|
+
return {
|
|
24
|
+
id: "root",
|
|
25
|
+
layoutOptions: c(t),
|
|
26
|
+
children: e.nodes.map(s),
|
|
27
|
+
edges: e.edges.map((e) => ({
|
|
28
|
+
id: e.id,
|
|
29
|
+
sources: e.sources,
|
|
30
|
+
targets: e.targets
|
|
31
|
+
}))
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function s(e) {
|
|
35
|
+
let t = {
|
|
36
|
+
id: e.id,
|
|
37
|
+
width: e.width,
|
|
38
|
+
height: e.height
|
|
39
|
+
};
|
|
40
|
+
return e.orderHint !== void 0 && (t.x = e.orderHint), e.children && (t.children = e.children.map(s)), t;
|
|
41
|
+
}
|
|
42
|
+
function c(e) {
|
|
43
|
+
let t = { ...e?.elkOptions };
|
|
44
|
+
return e?.direction && (t[r] = e.direction), e?.nodeSpacing !== void 0 && (t["elk.spacing.nodeNode"] = String(e.nodeSpacing)), e?.layerSpacing !== void 0 && (t["elk.layered.spacing.nodeNodeBetweenLayers"] = String(e.layerSpacing)), t;
|
|
45
|
+
}
|
|
46
|
+
function l(e) {
|
|
47
|
+
let t = {};
|
|
48
|
+
u(e.children, t);
|
|
49
|
+
let n = {};
|
|
50
|
+
for (let t of e.edges ?? []) n[t.id] = d(t);
|
|
51
|
+
return {
|
|
52
|
+
positions: t,
|
|
53
|
+
edgeRoutes: n
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function u(e, t) {
|
|
57
|
+
for (let n of e ?? []) t[n.id] = {
|
|
58
|
+
x: n.x ?? 0,
|
|
59
|
+
y: n.y ?? 0
|
|
60
|
+
}, u(n.children, t);
|
|
61
|
+
}
|
|
62
|
+
function d(e) {
|
|
63
|
+
let t = e.sections?.[0];
|
|
64
|
+
return t ? [
|
|
65
|
+
t.startPoint,
|
|
66
|
+
...t.bendPoints ?? [],
|
|
67
|
+
t.endPoint
|
|
68
|
+
] : [];
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
export { i as createElkLayoutEngine, l as fromElkGraph, a as mergeOptions, o as toElkGraph };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../external/.pnpm/@dialecte_core@0.4.
|
|
2
|
-
import {
|
|
3
|
-
import "../external/.pnpm/@dialecte_core@0.4.
|
|
1
|
+
import { r as e } from "../external/.pnpm/@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/utils-BiEx1x59.js";
|
|
2
|
+
import { mt as t } from "../external/.pnpm/@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/project-nvZv2ie8.js";
|
|
3
|
+
import "../external/.pnpm/@dialecte_core@0.4.16/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
|
-
import {
|
|
2
|
-
//#region node_modules/.pnpm/@dialecte+core@0.4.
|
|
1
|
+
import { c as e, d as t, f as n, h as r, r as i, s as a, u as o } from "./utils-BiEx1x59.js";
|
|
2
|
+
//#region node_modules/.pnpm/@dialecte+core@0.4.16/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"
|
|
@@ -53,85 +53,85 @@ function m(e) {
|
|
|
53
53
|
tagName: n
|
|
54
54
|
}));
|
|
55
55
|
}
|
|
56
|
-
function h(
|
|
57
|
-
let { attribute:
|
|
58
|
-
typeof
|
|
59
|
-
detail: `Unknown namespace '${
|
|
56
|
+
function h(e) {
|
|
57
|
+
let { attribute: i, dialecteConfig: o, tagName: s } = e, c;
|
|
58
|
+
typeof i.namespace == "string" ? (c = n(o, i.namespace), c || r("UNKNOWN_NAMESPACE_PREFIX", {
|
|
59
|
+
detail: `Unknown namespace '${i.namespace}' on attribute '${i.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
|
|
60
60
|
ref: { tagName: s }
|
|
61
|
-
})) : c =
|
|
62
|
-
let l =
|
|
61
|
+
})) : c = i.namespace;
|
|
62
|
+
let l = i.name.indexOf(":");
|
|
63
63
|
if (!c && l !== -1) {
|
|
64
|
-
let e =
|
|
65
|
-
e !== "xmlns" && (c =
|
|
66
|
-
detail: `Unknown namespace prefix '${e}' on attribute '${
|
|
64
|
+
let e = i.name.slice(0, l);
|
|
65
|
+
e !== "xmlns" && (c = t(o, e), c || r("UNKNOWN_NAMESPACE_PREFIX", {
|
|
66
|
+
detail: `Unknown namespace prefix '${e}' on attribute '${i.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
|
|
67
67
|
ref: { tagName: s }
|
|
68
68
|
}));
|
|
69
69
|
}
|
|
70
70
|
return c && c.prefix && c.prefix !== "xmlns" ? {
|
|
71
|
-
...
|
|
72
|
-
name: `${c.prefix}:${
|
|
71
|
+
...i,
|
|
72
|
+
name: `${c.prefix}:${a(i.name)}`,
|
|
73
73
|
namespace: c
|
|
74
|
-
} : (
|
|
75
|
-
...
|
|
74
|
+
} : (i.namespace, {
|
|
75
|
+
...i,
|
|
76
76
|
namespace: c
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
function g(e) {
|
|
80
|
-
return
|
|
80
|
+
return i(e, { detail: "The record or ref is undefined" }), {
|
|
81
81
|
id: e.id,
|
|
82
82
|
tagName: e.tagName
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
function _(e) {
|
|
86
|
-
let { dialecteConfig:
|
|
87
|
-
tagName:
|
|
86
|
+
let { dialecteConfig: t, hooks: n, record: r } = e, { id: i, tagName: a, attributes: s, namespace: c, value: l } = r, u = i ?? crypto.randomUUID(), d = s ? m({
|
|
87
|
+
tagName: a,
|
|
88
88
|
attributes: s,
|
|
89
|
-
dialecteConfig:
|
|
89
|
+
dialecteConfig: t
|
|
90
90
|
}) : [], f = {
|
|
91
91
|
id: u,
|
|
92
|
-
tagName:
|
|
92
|
+
tagName: a,
|
|
93
93
|
attributes: d,
|
|
94
94
|
namespace: c ?? {
|
|
95
95
|
prefix: "prefixNeededForNotSupportedNamespace",
|
|
96
96
|
uri: "uriNeededForNotSupportedNamespace"
|
|
97
97
|
},
|
|
98
98
|
value: l ?? "",
|
|
99
|
-
parent:
|
|
100
|
-
children:
|
|
101
|
-
}, p = Object.values(
|
|
102
|
-
if (!(
|
|
103
|
-
let g =
|
|
99
|
+
parent: r.parent ?? null,
|
|
100
|
+
children: r.children ?? []
|
|
101
|
+
}, p = Object.values(t.namespaces).map(({ uri: e }) => e), h = c?.uri != null && !p.includes(c.uri);
|
|
102
|
+
if (!(t.elements.includes(a) && !h)) return f;
|
|
103
|
+
let g = t.definition[a].attributes.sequence, _ = d.filter((e) => {
|
|
104
104
|
let t = g.includes(e.name), n = "namespace" in e && e.namespace != null;
|
|
105
105
|
if (!t && !n) return !1;
|
|
106
106
|
let r = e.value === void 0 || e.value === null || e.value === "";
|
|
107
107
|
return !(t && r);
|
|
108
|
-
}), v =
|
|
108
|
+
}), v = t.namespaces.default.uri, y = _.map((e) => {
|
|
109
109
|
if ("namespace" in e && e.namespace?.uri === v) {
|
|
110
110
|
let { namespace: t, ...n } = e;
|
|
111
111
|
return n;
|
|
112
112
|
}
|
|
113
113
|
return e;
|
|
114
|
-
}), b =
|
|
114
|
+
}), b = r.parent?.tagName, x = b ? t.definition[b]?.children?.details?.[a]?.namespace : void 0, S = {
|
|
115
115
|
...f,
|
|
116
|
-
namespace: x ??
|
|
117
|
-
attributes:
|
|
116
|
+
namespace: x ?? t.definition[a].namespace,
|
|
117
|
+
attributes: o(y, g)
|
|
118
118
|
};
|
|
119
|
-
return
|
|
119
|
+
return n?.afterStandardizedRecord && (S = n.afterStandardizedRecord({ record: S }), S = {
|
|
120
120
|
...S,
|
|
121
|
-
attributes:
|
|
121
|
+
attributes: o(S.attributes, g)
|
|
122
122
|
}), S;
|
|
123
123
|
}
|
|
124
|
-
function v(
|
|
125
|
-
let { dialecteConfig:
|
|
126
|
-
for (let
|
|
127
|
-
let a =
|
|
128
|
-
dialecteConfig:
|
|
129
|
-
tagName:
|
|
130
|
-
attributeName:
|
|
124
|
+
function v(t) {
|
|
125
|
+
let { dialecteConfig: n, tagName: i, attributes: a } = t;
|
|
126
|
+
for (let t of a) {
|
|
127
|
+
let a = e({
|
|
128
|
+
dialecteConfig: n,
|
|
129
|
+
tagName: i,
|
|
130
|
+
attributeName: t.name
|
|
131
131
|
});
|
|
132
|
-
a.fixed !== void 0 &&
|
|
133
|
-
detail: `Attribute '${
|
|
134
|
-
ref: { tagName:
|
|
132
|
+
a.fixed !== void 0 && t.value !== a.fixed && r("FIXED_VALUE_VIOLATION", {
|
|
133
|
+
detail: `Attribute '${t.name}' on '${i}' is fixed to '${a.fixed}' but was set to '${String(t.value)}'.`,
|
|
134
|
+
ref: { tagName: i }
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
}
|