@platforma-sdk/ui-vue 1.41.19 → 1.42.1
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/.turbo/turbo-build.log +18 -18
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/components/PlAgDataTable/sources/table-source-v2.js +11 -11
- package/dist/components/PlMultiSequenceAlignment/Legend.vue.d.ts +2 -2
- package/dist/components/PlMultiSequenceAlignment/Legend.vue.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/Legend.vue2.js +11 -11
- package/dist/components/PlMultiSequenceAlignment/Legend.vue3.js +8 -8
- package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue.d.ts +12 -6
- package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue2.js +80 -65
- package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue2.js.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue3.js +14 -12
- package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue3.js.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue.d.ts +36 -1
- package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue2.js +146 -111
- package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue2.js.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/Toolbar.vue.d.ts +2 -0
- package/dist/components/PlMultiSequenceAlignment/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/Toolbar.vue2.js +71 -68
- package/dist/components/PlMultiSequenceAlignment/Toolbar.vue2.js.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/chemical-properties.d.ts +42 -6
- package/dist/components/PlMultiSequenceAlignment/chemical-properties.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/chemical-properties.js +96 -130
- package/dist/components/PlMultiSequenceAlignment/chemical-properties.js.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/data.d.ts +3 -9
- package/dist/components/PlMultiSequenceAlignment/data.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/data.js +197 -211
- package/dist/components/PlMultiSequenceAlignment/data.js.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/markup.d.ts +7 -5
- package/dist/components/PlMultiSequenceAlignment/markup.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/markup.js +47 -26
- package/dist/components/PlMultiSequenceAlignment/markup.js.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/types.d.ts +1 -1
- package/dist/components/PlMultiSequenceAlignment/types.d.ts.map +1 -1
- package/dist/components/PlTableFilters/PlTableFiltersV2.vue2.js +18 -18
- package/dist/defineApp.js +6 -6
- package/dist/internal/createAppV2.js +12 -12
- package/dist/lib/model/common/dist/index.js +24 -24
- package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +7 -7
- package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +8 -8
- package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js.map +1 -1
- package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@vueuse_core@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/core/index.js +111 -165
- package/dist/node_modules/.pnpm/@vueuse_core@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/core/index.js.map +1 -1
- package/dist/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/shared/index.js +1 -1
- package/dist/sdk/model/dist/index.js +1 -1
- package/package.json +4 -4
- package/src/components/PlMultiSequenceAlignment/Legend.vue +4 -3
- package/src/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue +66 -46
- package/src/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue +85 -34
- package/src/components/PlMultiSequenceAlignment/README.md +10 -8
- package/src/components/PlMultiSequenceAlignment/Toolbar.vue +4 -1
- package/src/components/PlMultiSequenceAlignment/chemical-properties.ts +154 -161
- package/src/components/PlMultiSequenceAlignment/data.ts +65 -85
- package/src/components/PlMultiSequenceAlignment/markup.ts +47 -15
- package/src/components/PlMultiSequenceAlignment/types.ts +1 -1
|
@@ -1,231 +1,177 @@
|
|
|
1
|
-
import { tryOnMounted as
|
|
2
|
-
import { createFilterWrapper as
|
|
3
|
-
import { shallowRef as
|
|
4
|
-
const
|
|
5
|
-
function
|
|
1
|
+
import { tryOnMounted as x, tryOnScopeDispose as M, toArray as w, notNullish as C, watchImmediate as U, isClient as W, isObject as A } from "../../../../@vueuse_shared@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/shared/index.js";
|
|
2
|
+
import { createFilterWrapper as J, debounceFilter as K, getLifeCycleTarget as Q, noop as X, useDebounceFn as Y, useIntervalFn as Z, whenever as _ } from "../../../../@vueuse_shared@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/shared/index.js";
|
|
3
|
+
import { shallowRef as d, watch as g, toValue as b, readonly as j, computed as L, getCurrentInstance as k, onMounted as B, unref as I } from "vue";
|
|
4
|
+
const E = W ? window : void 0;
|
|
5
|
+
function y(e) {
|
|
6
6
|
var n;
|
|
7
|
-
const
|
|
8
|
-
return (n =
|
|
7
|
+
const s = b(e);
|
|
8
|
+
return (n = s == null ? void 0 : s.$el) != null ? n : s;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
const n = [],
|
|
10
|
+
function F(...e) {
|
|
11
|
+
const n = [], s = () => {
|
|
12
12
|
n.forEach((t) => t()), n.length = 0;
|
|
13
|
-
},
|
|
14
|
-
const t =
|
|
13
|
+
}, a = (t, o, u, i) => (t.addEventListener(o, u, i), () => t.removeEventListener(o, u, i)), v = L(() => {
|
|
14
|
+
const t = w(b(e[0])).filter((o) => o != null);
|
|
15
15
|
return t.every((o) => typeof o != "string") ? t : void 0;
|
|
16
|
-
}), r =
|
|
16
|
+
}), r = U(
|
|
17
17
|
() => {
|
|
18
18
|
var t, o;
|
|
19
19
|
return [
|
|
20
|
-
(o = (t =
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
(o = (t = v.value) == null ? void 0 : t.map((u) => y(u))) != null ? o : [E].filter((u) => u != null),
|
|
21
|
+
w(b(v.value ? e[1] : e[0])),
|
|
22
|
+
w(I(v.value ? e[2] : e[1])),
|
|
23
23
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
24
|
-
|
|
24
|
+
b(v.value ? e[3] : e[2])
|
|
25
25
|
];
|
|
26
26
|
},
|
|
27
|
-
([t, o,
|
|
28
|
-
if (
|
|
27
|
+
([t, o, u, i]) => {
|
|
28
|
+
if (s(), !(t != null && t.length) || !(o != null && o.length) || !(u != null && u.length))
|
|
29
29
|
return;
|
|
30
|
-
const
|
|
30
|
+
const c = A(i) ? { ...i } : i;
|
|
31
31
|
n.push(
|
|
32
32
|
...t.flatMap(
|
|
33
|
-
(
|
|
34
|
-
(p) =>
|
|
33
|
+
(l) => o.flatMap(
|
|
34
|
+
(p) => u.map((O) => a(l, p, O, c))
|
|
35
35
|
)
|
|
36
36
|
)
|
|
37
37
|
);
|
|
38
38
|
},
|
|
39
39
|
{ flush: "post" }
|
|
40
40
|
), f = () => {
|
|
41
|
-
r(),
|
|
41
|
+
r(), s();
|
|
42
42
|
};
|
|
43
|
-
return
|
|
43
|
+
return M(s), f;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
const e =
|
|
47
|
-
return n &&
|
|
45
|
+
function T() {
|
|
46
|
+
const e = d(!1), n = k();
|
|
47
|
+
return n && B(() => {
|
|
48
48
|
e.value = !0;
|
|
49
49
|
}, n), e;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
const n =
|
|
53
|
-
return
|
|
51
|
+
function S(e) {
|
|
52
|
+
const n = T();
|
|
53
|
+
return L(() => (n.value, !!e()));
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
const { window:
|
|
55
|
+
function D(e, n, s = {}) {
|
|
56
|
+
const { window: a = E, ...v } = s;
|
|
57
57
|
let r;
|
|
58
|
-
const f =
|
|
58
|
+
const f = S(() => a && "MutationObserver" in a), t = () => {
|
|
59
59
|
r && (r.disconnect(), r = void 0);
|
|
60
|
-
}, o =
|
|
61
|
-
const
|
|
60
|
+
}, o = L(() => {
|
|
61
|
+
const l = b(e), p = w(l).map(y).filter(C);
|
|
62
62
|
return new Set(p);
|
|
63
|
-
}),
|
|
63
|
+
}), u = g(
|
|
64
64
|
() => o.value,
|
|
65
|
-
(
|
|
66
|
-
t(), f.value &&
|
|
65
|
+
(l) => {
|
|
66
|
+
t(), f.value && l.size && (r = new MutationObserver(n), l.forEach((p) => r.observe(p, v)));
|
|
67
67
|
},
|
|
68
68
|
{ immediate: !0, flush: "post" }
|
|
69
|
-
),
|
|
70
|
-
|
|
69
|
+
), i = () => r == null ? void 0 : r.takeRecords(), c = () => {
|
|
70
|
+
u(), t();
|
|
71
71
|
};
|
|
72
|
-
return
|
|
72
|
+
return M(c), {
|
|
73
73
|
isSupported: f,
|
|
74
|
-
stop:
|
|
75
|
-
takeRecords:
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
const g = {
|
|
79
|
-
array: (e) => JSON.stringify(e),
|
|
80
|
-
object: (e) => JSON.stringify(e),
|
|
81
|
-
set: (e) => JSON.stringify(Array.from(e)),
|
|
82
|
-
map: (e) => JSON.stringify(Object.fromEntries(e)),
|
|
83
|
-
null: () => ""
|
|
84
|
-
};
|
|
85
|
-
function q(e) {
|
|
86
|
-
return e ? e instanceof Map ? g.map : e instanceof Set ? g.set : Array.isArray(e) ? g.array : g.object : g.null;
|
|
87
|
-
}
|
|
88
|
-
function G(e, n) {
|
|
89
|
-
const u = v(""), s = v();
|
|
90
|
-
function a() {
|
|
91
|
-
if (B)
|
|
92
|
-
return s.value = new Promise((r, f) => {
|
|
93
|
-
try {
|
|
94
|
-
const t = y(e);
|
|
95
|
-
if (t == null)
|
|
96
|
-
r("");
|
|
97
|
-
else if (typeof t == "string")
|
|
98
|
-
r(E(new Blob([t], { type: "text/plain" })));
|
|
99
|
-
else if (t instanceof Blob)
|
|
100
|
-
r(E(t));
|
|
101
|
-
else if (t instanceof ArrayBuffer)
|
|
102
|
-
r(window.btoa(String.fromCharCode(...new Uint8Array(t))));
|
|
103
|
-
else if (t instanceof HTMLCanvasElement)
|
|
104
|
-
r(t.toDataURL(n == null ? void 0 : n.type, n == null ? void 0 : n.quality));
|
|
105
|
-
else if (t instanceof HTMLImageElement) {
|
|
106
|
-
const o = t.cloneNode(!1);
|
|
107
|
-
o.crossOrigin = "Anonymous", k(o).then(() => {
|
|
108
|
-
const i = document.createElement("canvas"), l = i.getContext("2d");
|
|
109
|
-
i.width = o.width, i.height = o.height, l.drawImage(o, 0, 0, i.width, i.height), r(i.toDataURL(n == null ? void 0 : n.type, n == null ? void 0 : n.quality));
|
|
110
|
-
}).catch(f);
|
|
111
|
-
} else if (typeof t == "object") {
|
|
112
|
-
const i = ((n == null ? void 0 : n.serializer) || q(t))(t);
|
|
113
|
-
return r(E(new Blob([i], { type: "application/json" })));
|
|
114
|
-
} else
|
|
115
|
-
f(new Error("target is unsupported types"));
|
|
116
|
-
} catch (t) {
|
|
117
|
-
f(t);
|
|
118
|
-
}
|
|
119
|
-
}), s.value.then((r) => {
|
|
120
|
-
u.value = r;
|
|
121
|
-
}), s.value;
|
|
122
|
-
}
|
|
123
|
-
return I(e) || typeof e == "function" ? R(e, a, { immediate: !0 }) : a(), {
|
|
124
|
-
base64: u,
|
|
125
|
-
promise: s,
|
|
126
|
-
execute: a
|
|
74
|
+
stop: c,
|
|
75
|
+
takeRecords: i
|
|
127
76
|
};
|
|
128
77
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
131
|
-
e.complete ? n() : (e.onload = () => {
|
|
132
|
-
n();
|
|
133
|
-
}, e.onerror = u);
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
function E(e) {
|
|
137
|
-
return new Promise((n, u) => {
|
|
138
|
-
const s = new FileReader();
|
|
139
|
-
s.onload = (a) => {
|
|
140
|
-
n(a.target.result);
|
|
141
|
-
}, s.onerror = u, s.readAsDataURL(e);
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
function H(e, n, u = {}) {
|
|
145
|
-
const { window: s = A, ...a } = u;
|
|
78
|
+
function q(e, n, s = {}) {
|
|
79
|
+
const { window: a = E, ...v } = s;
|
|
146
80
|
let r;
|
|
147
|
-
const f =
|
|
81
|
+
const f = S(() => a && "ResizeObserver" in a), t = () => {
|
|
148
82
|
r && (r.disconnect(), r = void 0);
|
|
149
|
-
}, o =
|
|
150
|
-
const
|
|
151
|
-
return Array.isArray(
|
|
152
|
-
}),
|
|
83
|
+
}, o = L(() => {
|
|
84
|
+
const c = b(e);
|
|
85
|
+
return Array.isArray(c) ? c.map((l) => y(l)) : [y(c)];
|
|
86
|
+
}), u = g(
|
|
153
87
|
o,
|
|
154
|
-
(
|
|
155
|
-
if (t(), f.value &&
|
|
88
|
+
(c) => {
|
|
89
|
+
if (t(), f.value && a) {
|
|
156
90
|
r = new ResizeObserver(n);
|
|
157
|
-
for (const
|
|
158
|
-
|
|
91
|
+
for (const l of c)
|
|
92
|
+
l && r.observe(l, v);
|
|
159
93
|
}
|
|
160
94
|
},
|
|
161
95
|
{ immediate: !0, flush: "post" }
|
|
162
|
-
),
|
|
163
|
-
t(),
|
|
96
|
+
), i = () => {
|
|
97
|
+
t(), u();
|
|
164
98
|
};
|
|
165
|
-
return
|
|
99
|
+
return M(i), {
|
|
166
100
|
isSupported: f,
|
|
167
|
-
stop:
|
|
101
|
+
stop: i
|
|
168
102
|
};
|
|
169
103
|
}
|
|
170
|
-
function
|
|
104
|
+
function V(e, n = {}) {
|
|
171
105
|
const {
|
|
172
|
-
reset:
|
|
173
|
-
windowResize:
|
|
174
|
-
windowScroll:
|
|
106
|
+
reset: s = !0,
|
|
107
|
+
windowResize: a = !0,
|
|
108
|
+
windowScroll: v = !0,
|
|
175
109
|
immediate: r = !0,
|
|
176
110
|
updateTiming: f = "sync"
|
|
177
|
-
} = n, t =
|
|
178
|
-
function
|
|
179
|
-
const
|
|
180
|
-
if (!
|
|
181
|
-
|
|
111
|
+
} = n, t = d(0), o = d(0), u = d(0), i = d(0), c = d(0), l = d(0), p = d(0), O = d(0);
|
|
112
|
+
function z() {
|
|
113
|
+
const R = y(e);
|
|
114
|
+
if (!R) {
|
|
115
|
+
s && (t.value = 0, o.value = 0, u.value = 0, i.value = 0, c.value = 0, l.value = 0, p.value = 0, O.value = 0);
|
|
182
116
|
return;
|
|
183
117
|
}
|
|
184
|
-
const m =
|
|
185
|
-
t.value = m.height, o.value = m.bottom,
|
|
118
|
+
const m = R.getBoundingClientRect();
|
|
119
|
+
t.value = m.height, o.value = m.bottom, u.value = m.left, i.value = m.right, c.value = m.top, l.value = m.width, p.value = m.x, O.value = m.y;
|
|
186
120
|
}
|
|
187
121
|
function h() {
|
|
188
|
-
f === "sync" ?
|
|
122
|
+
f === "sync" ? z() : f === "next-frame" && requestAnimationFrame(() => z());
|
|
189
123
|
}
|
|
190
|
-
return
|
|
124
|
+
return q(e, h), g(() => y(e), (R) => !R && h()), D(e, h, {
|
|
191
125
|
attributeFilter: ["style", "class"]
|
|
192
|
-
}),
|
|
126
|
+
}), v && F("scroll", h, { capture: !0, passive: !0 }), a && F("resize", h, { passive: !0 }), x(() => {
|
|
193
127
|
r && h();
|
|
194
128
|
}), {
|
|
195
129
|
height: t,
|
|
196
130
|
bottom: o,
|
|
197
|
-
left:
|
|
198
|
-
right:
|
|
199
|
-
top:
|
|
200
|
-
width:
|
|
131
|
+
left: u,
|
|
132
|
+
right: i,
|
|
133
|
+
top: c,
|
|
134
|
+
width: l,
|
|
201
135
|
x: p,
|
|
202
|
-
y:
|
|
136
|
+
y: O,
|
|
203
137
|
update: h
|
|
204
138
|
};
|
|
205
139
|
}
|
|
140
|
+
function $(e) {
|
|
141
|
+
const n = d(), s = () => {
|
|
142
|
+
n.value && URL.revokeObjectURL(n.value), n.value = void 0;
|
|
143
|
+
};
|
|
144
|
+
return g(
|
|
145
|
+
() => b(e),
|
|
146
|
+
(a) => {
|
|
147
|
+
s(), a && (n.value = URL.createObjectURL(a));
|
|
148
|
+
},
|
|
149
|
+
{ immediate: !0 }
|
|
150
|
+
), M(s), j(n);
|
|
151
|
+
}
|
|
206
152
|
export {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
153
|
+
J as createFilterWrapper,
|
|
154
|
+
K as debounceFilter,
|
|
155
|
+
E as defaultWindow,
|
|
156
|
+
Q as getLifeCycleTarget,
|
|
157
|
+
W as isClient,
|
|
158
|
+
A as isObject,
|
|
159
|
+
X as noop,
|
|
160
|
+
C as notNullish,
|
|
161
|
+
w as toArray,
|
|
162
|
+
x as tryOnMounted,
|
|
163
|
+
M as tryOnScopeDispose,
|
|
164
|
+
y as unrefElement,
|
|
165
|
+
Y as useDebounceFn,
|
|
166
|
+
V as useElementBounding,
|
|
167
|
+
F as useEventListener,
|
|
168
|
+
Z as useIntervalFn,
|
|
169
|
+
T as useMounted,
|
|
170
|
+
D as useMutationObserver,
|
|
171
|
+
$ as useObjectUrl,
|
|
172
|
+
q as useResizeObserver,
|
|
173
|
+
S as useSupported,
|
|
174
|
+
U as watchImmediate,
|
|
175
|
+
_ as whenever
|
|
230
176
|
};
|
|
231
177
|
//# sourceMappingURL=index.js.map
|