@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.
Files changed (58) hide show
  1. package/.turbo/turbo-build.log +18 -18
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +18 -0
  4. package/dist/components/PlAgDataTable/sources/table-source-v2.js +11 -11
  5. package/dist/components/PlMultiSequenceAlignment/Legend.vue.d.ts +2 -2
  6. package/dist/components/PlMultiSequenceAlignment/Legend.vue.d.ts.map +1 -1
  7. package/dist/components/PlMultiSequenceAlignment/Legend.vue2.js +11 -11
  8. package/dist/components/PlMultiSequenceAlignment/Legend.vue3.js +8 -8
  9. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue.d.ts +12 -6
  10. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue.d.ts.map +1 -1
  11. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue2.js +80 -65
  12. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue2.js.map +1 -1
  13. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue3.js +14 -12
  14. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue3.js.map +1 -1
  15. package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue.d.ts +36 -1
  16. package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue.d.ts.map +1 -1
  17. package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue2.js +146 -111
  18. package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue2.js.map +1 -1
  19. package/dist/components/PlMultiSequenceAlignment/Toolbar.vue.d.ts +2 -0
  20. package/dist/components/PlMultiSequenceAlignment/Toolbar.vue.d.ts.map +1 -1
  21. package/dist/components/PlMultiSequenceAlignment/Toolbar.vue2.js +71 -68
  22. package/dist/components/PlMultiSequenceAlignment/Toolbar.vue2.js.map +1 -1
  23. package/dist/components/PlMultiSequenceAlignment/chemical-properties.d.ts +42 -6
  24. package/dist/components/PlMultiSequenceAlignment/chemical-properties.d.ts.map +1 -1
  25. package/dist/components/PlMultiSequenceAlignment/chemical-properties.js +96 -130
  26. package/dist/components/PlMultiSequenceAlignment/chemical-properties.js.map +1 -1
  27. package/dist/components/PlMultiSequenceAlignment/data.d.ts +3 -9
  28. package/dist/components/PlMultiSequenceAlignment/data.d.ts.map +1 -1
  29. package/dist/components/PlMultiSequenceAlignment/data.js +197 -211
  30. package/dist/components/PlMultiSequenceAlignment/data.js.map +1 -1
  31. package/dist/components/PlMultiSequenceAlignment/markup.d.ts +7 -5
  32. package/dist/components/PlMultiSequenceAlignment/markup.d.ts.map +1 -1
  33. package/dist/components/PlMultiSequenceAlignment/markup.js +47 -26
  34. package/dist/components/PlMultiSequenceAlignment/markup.js.map +1 -1
  35. package/dist/components/PlMultiSequenceAlignment/types.d.ts +1 -1
  36. package/dist/components/PlMultiSequenceAlignment/types.d.ts.map +1 -1
  37. package/dist/components/PlTableFilters/PlTableFiltersV2.vue2.js +18 -18
  38. package/dist/defineApp.js +6 -6
  39. package/dist/internal/createAppV2.js +12 -12
  40. package/dist/lib/model/common/dist/index.js +24 -24
  41. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +7 -7
  42. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +8 -8
  43. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js.map +1 -1
  44. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +1 -1
  45. 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
  46. 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
  47. 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
  48. package/dist/sdk/model/dist/index.js +1 -1
  49. package/package.json +4 -4
  50. package/src/components/PlMultiSequenceAlignment/Legend.vue +4 -3
  51. package/src/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue +66 -46
  52. package/src/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue +85 -34
  53. package/src/components/PlMultiSequenceAlignment/README.md +10 -8
  54. package/src/components/PlMultiSequenceAlignment/Toolbar.vue +4 -1
  55. package/src/components/PlMultiSequenceAlignment/chemical-properties.ts +154 -161
  56. package/src/components/PlMultiSequenceAlignment/data.ts +65 -85
  57. package/src/components/PlMultiSequenceAlignment/markup.ts +47 -15
  58. package/src/components/PlMultiSequenceAlignment/types.ts +1 -1
@@ -1,231 +1,177 @@
1
- import { tryOnMounted as F, tryOnScopeDispose as z, toArray as M, notNullish as D, watchImmediate as N, isClient as B, isObject as T } from "../../../../@vueuse_shared@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/shared/index.js";
2
- import { createFilterWrapper as Y, debounceFilter as Z, getLifeCycleTarget as _, noop as ee, useDebounceFn as te, useIntervalFn as ne, whenever as oe } from "../../../../@vueuse_shared@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/shared/index.js";
3
- import { shallowRef as v, watch as R, isRef as I, computed as S, toValue as y, getCurrentInstance as W, onMounted as j, unref as J } from "vue";
4
- const A = B ? window : void 0;
5
- function b(e) {
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 u = y(e);
8
- return (n = u == null ? void 0 : u.$el) != null ? n : u;
7
+ const s = b(e);
8
+ return (n = s == null ? void 0 : s.$el) != null ? n : s;
9
9
  }
10
- function x(...e) {
11
- const n = [], u = () => {
10
+ function F(...e) {
11
+ const n = [], s = () => {
12
12
  n.forEach((t) => t()), n.length = 0;
13
- }, s = (t, o, i, l) => (t.addEventListener(o, i, l), () => t.removeEventListener(o, i, l)), a = S(() => {
14
- const t = M(y(e[0])).filter((o) => o != null);
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 = N(
16
+ }), r = U(
17
17
  () => {
18
18
  var t, o;
19
19
  return [
20
- (o = (t = a.value) == null ? void 0 : t.map((i) => b(i))) != null ? o : [A].filter((i) => i != null),
21
- M(y(a.value ? e[1] : e[0])),
22
- M(J(a.value ? e[2] : e[1])),
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
- y(a.value ? e[3] : e[2])
24
+ b(v.value ? e[3] : e[2])
25
25
  ];
26
26
  },
27
- ([t, o, i, l]) => {
28
- if (u(), !(t != null && t.length) || !(o != null && o.length) || !(i != null && i.length))
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 d = T(l) ? { ...l } : l;
30
+ const c = A(i) ? { ...i } : i;
31
31
  n.push(
32
32
  ...t.flatMap(
33
- (c) => o.flatMap(
34
- (p) => i.map((w) => s(c, p, w, d))
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(), u();
41
+ r(), s();
42
42
  };
43
- return z(u), f;
43
+ return M(s), f;
44
44
  }
45
- function P() {
46
- const e = v(!1), n = W();
47
- return n && j(() => {
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 C(e) {
52
- const n = P();
53
- return S(() => (n.value, !!e()));
51
+ function S(e) {
52
+ const n = T();
53
+ return L(() => (n.value, !!e()));
54
54
  }
55
- function U(e, n, u = {}) {
56
- const { window: s = A, ...a } = u;
55
+ function D(e, n, s = {}) {
56
+ const { window: a = E, ...v } = s;
57
57
  let r;
58
- const f = C(() => s && "MutationObserver" in s), t = () => {
58
+ const f = S(() => a && "MutationObserver" in a), t = () => {
59
59
  r && (r.disconnect(), r = void 0);
60
- }, o = S(() => {
61
- const c = y(e), p = M(c).map(b).filter(D);
60
+ }, o = L(() => {
61
+ const l = b(e), p = w(l).map(y).filter(C);
62
62
  return new Set(p);
63
- }), i = R(
63
+ }), u = g(
64
64
  () => o.value,
65
- (c) => {
66
- t(), f.value && c.size && (r = new MutationObserver(n), c.forEach((p) => r.observe(p, a)));
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
- ), l = () => r == null ? void 0 : r.takeRecords(), d = () => {
70
- i(), t();
69
+ ), i = () => r == null ? void 0 : r.takeRecords(), c = () => {
70
+ u(), t();
71
71
  };
72
- return z(d), {
72
+ return M(c), {
73
73
  isSupported: f,
74
- stop: d,
75
- takeRecords: l
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 k(e) {
130
- return new Promise((n, u) => {
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 = C(() => s && "ResizeObserver" in s), t = () => {
81
+ const f = S(() => a && "ResizeObserver" in a), t = () => {
148
82
  r && (r.disconnect(), r = void 0);
149
- }, o = S(() => {
150
- const d = y(e);
151
- return Array.isArray(d) ? d.map((c) => b(c)) : [b(d)];
152
- }), i = R(
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
- (d) => {
155
- if (t(), f.value && s) {
88
+ (c) => {
89
+ if (t(), f.value && a) {
156
90
  r = new ResizeObserver(n);
157
- for (const c of d)
158
- c && r.observe(c, a);
91
+ for (const l of c)
92
+ l && r.observe(l, v);
159
93
  }
160
94
  },
161
95
  { immediate: !0, flush: "post" }
162
- ), l = () => {
163
- t(), i();
96
+ ), i = () => {
97
+ t(), u();
164
98
  };
165
- return z(l), {
99
+ return M(i), {
166
100
  isSupported: f,
167
- stop: l
101
+ stop: i
168
102
  };
169
103
  }
170
- function K(e, n = {}) {
104
+ function V(e, n = {}) {
171
105
  const {
172
- reset: u = !0,
173
- windowResize: s = !0,
174
- windowScroll: a = !0,
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 = v(0), o = v(0), i = v(0), l = v(0), d = v(0), c = v(0), p = v(0), w = v(0);
178
- function L() {
179
- const O = b(e);
180
- if (!O) {
181
- u && (t.value = 0, o.value = 0, i.value = 0, l.value = 0, d.value = 0, c.value = 0, p.value = 0, w.value = 0);
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 = O.getBoundingClientRect();
185
- t.value = m.height, o.value = m.bottom, i.value = m.left, l.value = m.right, d.value = m.top, c.value = m.width, p.value = m.x, w.value = m.y;
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" ? L() : f === "next-frame" && requestAnimationFrame(() => L());
122
+ f === "sync" ? z() : f === "next-frame" && requestAnimationFrame(() => z());
189
123
  }
190
- return H(e, h), R(() => b(e), (O) => !O && h()), U(e, h, {
124
+ return q(e, h), g(() => y(e), (R) => !R && h()), D(e, h, {
191
125
  attributeFilter: ["style", "class"]
192
- }), a && x("scroll", h, { capture: !0, passive: !0 }), s && x("resize", h, { passive: !0 }), F(() => {
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: i,
198
- right: l,
199
- top: d,
200
- width: c,
131
+ left: u,
132
+ right: i,
133
+ top: c,
134
+ width: l,
201
135
  x: p,
202
- y: w,
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
- Y as createFilterWrapper,
208
- Z as debounceFilter,
209
- A as defaultWindow,
210
- _ as getLifeCycleTarget,
211
- B as isClient,
212
- T as isObject,
213
- ee as noop,
214
- D as notNullish,
215
- M as toArray,
216
- F as tryOnMounted,
217
- z as tryOnScopeDispose,
218
- b as unrefElement,
219
- G as useBase64,
220
- te as useDebounceFn,
221
- K as useElementBounding,
222
- x as useEventListener,
223
- ne as useIntervalFn,
224
- P as useMounted,
225
- U as useMutationObserver,
226
- H as useResizeObserver,
227
- C as useSupported,
228
- N as watchImmediate,
229
- oe as whenever
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