@platforma-sdk/ui-vue 1.42.2 → 1.42.4

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 (38) hide show
  1. package/.turbo/turbo-build.log +15 -15
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +15 -0
  4. package/dist/aggrid.js +4 -4
  5. package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue2.js +7 -7
  6. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +13 -13
  7. package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts.map +1 -1
  8. package/dist/components/PlAgDataTable/sources/table-source-v2.js +88 -85
  9. package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
  10. package/dist/components/PlAgDataTable/sources/table-state-v2.js +6 -6
  11. package/dist/components/PlAnnotations/components/DynamicForm.vue2.js +10 -10
  12. package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js +2 -2
  13. package/dist/components/PlMultiSequenceAlignment/data.js +26 -26
  14. package/dist/components/PlTableFilters/filters-state.js +2 -2
  15. package/dist/defineApp.js +16 -16
  16. package/dist/internal/createAppV2.d.ts.map +1 -1
  17. package/dist/internal/createAppV2.js +61 -52
  18. package/dist/internal/createAppV2.js.map +1 -1
  19. package/dist/lib/model/common/dist/index.js +329 -317
  20. package/dist/lib/model/common/dist/index.js.map +1 -1
  21. package/dist/lib/ui/uikit/dist/components/PlAccordion/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
  22. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +1 -0
  23. package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
  24. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +16 -16
  25. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
  26. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +8 -8
  27. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js.map +1 -1
  28. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +18 -18
  29. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js.map +1 -1
  30. package/dist/node_modules/.pnpm/@vueuse_core@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/core/index.js +44 -41
  31. package/dist/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/shared/index.js +122 -67
  32. package/dist/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/shared/index.js.map +1 -1
  33. package/dist/sdk/model/dist/index.js +198 -206
  34. package/dist/sdk/model/dist/index.js.map +1 -1
  35. package/package.json +7 -7
  36. package/src/components/PlAgDataTable/sources/table-source-v2.ts +9 -6
  37. package/src/internal/createAppV2.ts +22 -13
  38. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js.map +0 -1
@@ -1,25 +1,25 @@
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;
1
+ import { tryOnMounted as S, tryOnScopeDispose as R, toArray as w, notNullish as x, watchImmediate as C, isClient as U, 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 { bypassFilter as J, createFilterWrapper as K, debounceFilter as Q, getLifeCycleTarget as X, ignorableWatch as Y, noop as Z, useDebounceFn as _, useIntervalFn as ee, ignorableWatch as te, whenever as ne } 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 M, toValue as b, readonly as I, computed as L, getCurrentInstance as j, onMounted as k, unref as B } from "vue";
4
+ const E = U ? window : void 0;
5
5
  function y(e) {
6
6
  var n;
7
7
  const s = b(e);
8
8
  return (n = s == null ? void 0 : s.$el) != null ? n : s;
9
9
  }
10
- function F(...e) {
10
+ function W(...e) {
11
11
  const n = [], s = () => {
12
12
  n.forEach((t) => t()), n.length = 0;
13
13
  }, a = (t, o, u, i) => (t.addEventListener(o, u, i), () => t.removeEventListener(o, u, i)), v = L(() => {
14
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 = U(
16
+ }), r = C(
17
17
  () => {
18
18
  var t, o;
19
19
  return [
20
20
  (o = (t = v.value) == null ? void 0 : t.map((u) => y(u))) != null ? o : [E].filter((u) => u != null),
21
21
  w(b(v.value ? e[1] : e[0])),
22
- w(I(v.value ? e[2] : e[1])),
22
+ w(B(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
  ];
@@ -40,27 +40,27 @@ function F(...e) {
40
40
  ), f = () => {
41
41
  r(), s();
42
42
  };
43
- return M(s), f;
43
+ return R(s), f;
44
44
  }
45
45
  function T() {
46
- const e = d(!1), n = k();
47
- return n && B(() => {
46
+ const e = d(!1), n = j();
47
+ return n && k(() => {
48
48
  e.value = !0;
49
49
  }, n), e;
50
50
  }
51
- function S(e) {
51
+ function z(e) {
52
52
  const n = T();
53
53
  return L(() => (n.value, !!e()));
54
54
  }
55
55
  function D(e, n, s = {}) {
56
56
  const { window: a = E, ...v } = s;
57
57
  let r;
58
- const f = S(() => a && "MutationObserver" in a), t = () => {
58
+ const f = z(() => a && "MutationObserver" in a), t = () => {
59
59
  r && (r.disconnect(), r = void 0);
60
60
  }, o = L(() => {
61
- const l = b(e), p = w(l).map(y).filter(C);
61
+ const l = b(e), p = w(l).map(y).filter(x);
62
62
  return new Set(p);
63
- }), u = g(
63
+ }), u = M(
64
64
  () => o.value,
65
65
  (l) => {
66
66
  t(), f.value && l.size && (r = new MutationObserver(n), l.forEach((p) => r.observe(p, v)));
@@ -69,7 +69,7 @@ function D(e, n, s = {}) {
69
69
  ), i = () => r == null ? void 0 : r.takeRecords(), c = () => {
70
70
  u(), t();
71
71
  };
72
- return M(c), {
72
+ return R(c), {
73
73
  isSupported: f,
74
74
  stop: c,
75
75
  takeRecords: i
@@ -78,12 +78,12 @@ function D(e, n, s = {}) {
78
78
  function q(e, n, s = {}) {
79
79
  const { window: a = E, ...v } = s;
80
80
  let r;
81
- const f = S(() => a && "ResizeObserver" in a), t = () => {
81
+ const f = z(() => a && "ResizeObserver" in a), t = () => {
82
82
  r && (r.disconnect(), r = void 0);
83
83
  }, o = L(() => {
84
84
  const c = b(e);
85
85
  return Array.isArray(c) ? c.map((l) => y(l)) : [y(c)];
86
- }), u = g(
86
+ }), u = M(
87
87
  o,
88
88
  (c) => {
89
89
  if (t(), f.value && a) {
@@ -96,7 +96,7 @@ function q(e, n, s = {}) {
96
96
  ), i = () => {
97
97
  t(), u();
98
98
  };
99
- return M(i), {
99
+ return R(i), {
100
100
  isSupported: f,
101
101
  stop: i
102
102
  };
@@ -109,21 +109,21 @@ function V(e, n = {}) {
109
109
  immediate: r = !0,
110
110
  updateTiming: f = "sync"
111
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) {
112
+ function F() {
113
+ const g = y(e);
114
+ if (!g) {
115
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);
116
116
  return;
117
117
  }
118
- const m = R.getBoundingClientRect();
118
+ const m = g.getBoundingClientRect();
119
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;
120
120
  }
121
121
  function h() {
122
- f === "sync" ? z() : f === "next-frame" && requestAnimationFrame(() => z());
122
+ f === "sync" ? F() : f === "next-frame" && requestAnimationFrame(() => F());
123
123
  }
124
- return q(e, h), g(() => y(e), (R) => !R && h()), D(e, h, {
124
+ return q(e, h), M(() => y(e), (g) => !g && h()), D(e, h, {
125
125
  attributeFilter: ["style", "class"]
126
- }), v && F("scroll", h, { capture: !0, passive: !0 }), a && F("resize", h, { passive: !0 }), x(() => {
126
+ }), v && W("scroll", h, { capture: !0, passive: !0 }), a && W("resize", h, { passive: !0 }), S(() => {
127
127
  r && h();
128
128
  }), {
129
129
  height: t,
@@ -141,37 +141,40 @@ function $(e) {
141
141
  const n = d(), s = () => {
142
142
  n.value && URL.revokeObjectURL(n.value), n.value = void 0;
143
143
  };
144
- return g(
144
+ return M(
145
145
  () => b(e),
146
146
  (a) => {
147
147
  s(), a && (n.value = URL.createObjectURL(a));
148
148
  },
149
149
  { immediate: !0 }
150
- ), M(s), j(n);
150
+ ), R(s), I(n);
151
151
  }
152
152
  export {
153
- J as createFilterWrapper,
154
- K as debounceFilter,
153
+ J as bypassFilter,
154
+ K as createFilterWrapper,
155
+ Q as debounceFilter,
155
156
  E as defaultWindow,
156
- Q as getLifeCycleTarget,
157
- W as isClient,
157
+ X as getLifeCycleTarget,
158
+ Y as ignorableWatch,
159
+ U as isClient,
158
160
  A as isObject,
159
- X as noop,
160
- C as notNullish,
161
+ Z as noop,
162
+ x as notNullish,
161
163
  w as toArray,
162
- x as tryOnMounted,
163
- M as tryOnScopeDispose,
164
+ S as tryOnMounted,
165
+ R as tryOnScopeDispose,
164
166
  y as unrefElement,
165
- Y as useDebounceFn,
167
+ _ as useDebounceFn,
166
168
  V as useElementBounding,
167
- F as useEventListener,
168
- Z as useIntervalFn,
169
+ W as useEventListener,
170
+ ee as useIntervalFn,
169
171
  T as useMounted,
170
172
  D as useMutationObserver,
171
173
  $ as useObjectUrl,
172
174
  q as useResizeObserver,
173
- S as useSupported,
174
- U as watchImmediate,
175
- _ as whenever
175
+ z as useSupported,
176
+ te as watchIgnorable,
177
+ C as watchImmediate,
178
+ ne as whenever
176
179
  };
177
180
  //# sourceMappingURL=index.js.map
@@ -1,82 +1,134 @@
1
- import { shallowRef as b, isRef as g, watch as p, shallowReadonly as T, onMounted as S, nextTick as j, getCurrentScope as A, onScopeDispose as C, toValue as m, getCurrentInstance as I } from "vue";
2
- function d(e) {
3
- return A() ? (C(e), !0) : !1;
1
+ import { shallowRef as d, isRef as C, watch as m, shallowReadonly as T, onMounted as A, nextTick as I, getCurrentScope as O, onScopeDispose as S, toValue as h, getCurrentInstance as j } from "vue";
2
+ function y(e) {
3
+ return O() ? (S(e), !0) : !1;
4
4
  }
5
- const h = typeof window < "u" && typeof document < "u";
5
+ const g = typeof window < "u" && typeof document < "u";
6
6
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7
- const F = (e) => e != null, O = Object.prototype.toString, P = (e) => O.call(e) === "[object Object]", y = () => {
7
+ const R = (e) => e != null, F = Object.prototype.toString, k = (e) => F.call(e) === "[object Object]", b = () => {
8
8
  };
9
- function v(e, t) {
10
- function n(...o) {
11
- return new Promise((i, r) => {
12
- Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(i).catch(r);
9
+ function w(e, t) {
10
+ function n(...r) {
11
+ return new Promise((u, i) => {
12
+ Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(u).catch(i);
13
13
  });
14
14
  }
15
15
  return n;
16
16
  }
17
- function x(e, t = {}) {
18
- let n, o, i = y;
19
- const r = (l) => {
20
- clearTimeout(l), i(), i = y;
17
+ const P = (e) => e();
18
+ function W(e, t = {}) {
19
+ let n, r, u = b;
20
+ const i = (c) => {
21
+ clearTimeout(c), u(), u = b;
21
22
  };
22
- let c;
23
- return (l) => {
24
- const s = m(e), u = m(t.maxWait);
25
- return n && r(n), s <= 0 || u !== void 0 && u <= 0 ? (o && (r(o), o = null), Promise.resolve(l())) : new Promise((f, w) => {
26
- i = t.rejectOnCancel ? w : f, c = l, u && !o && (o = setTimeout(() => {
27
- n && r(n), o = null, f(c());
28
- }, u)), n = setTimeout(() => {
29
- o && r(o), o = null, f(l());
23
+ let l;
24
+ return (c) => {
25
+ const s = h(e), o = h(t.maxWait);
26
+ return n && i(n), s <= 0 || o !== void 0 && o <= 0 ? (r && (i(r), r = null), Promise.resolve(c())) : new Promise((a, p) => {
27
+ u = t.rejectOnCancel ? p : a, l = c, o && !r && (r = setTimeout(() => {
28
+ n && i(n), r = null, a(l());
29
+ }, o)), n = setTimeout(() => {
30
+ r && i(r), r = null, a(c());
30
31
  }, s);
31
32
  });
32
33
  };
33
34
  }
34
- function R(e) {
35
+ function G(e) {
35
36
  return Array.isArray(e) ? e : [e];
36
37
  }
37
- function W(e) {
38
- return I();
38
+ function x(e) {
39
+ return j();
39
40
  }
40
- function k(e, t = 200, n = {}) {
41
- return v(
42
- x(t, n),
41
+ function M(e, t = 200, n = {}) {
42
+ return w(
43
+ W(t, n),
43
44
  e
44
45
  );
45
46
  }
46
- function G(e, t = !0, n) {
47
- W() ? S(e, n) : t ? e() : j(e);
47
+ function U(e, t = !0, n) {
48
+ x() ? A(e, n) : t ? e() : I(e);
48
49
  }
49
- function M(e, t = 1e3, n = {}) {
50
+ function V(e, t = 1e3, n = {}) {
50
51
  const {
51
- immediate: o = !0,
52
- immediateCallback: i = !1
52
+ immediate: r = !0,
53
+ immediateCallback: u = !1
53
54
  } = n;
54
- let r = null;
55
- const c = b(!1);
56
- function a() {
57
- r && (clearInterval(r), r = null);
55
+ let i = null;
56
+ const l = d(!1);
57
+ function f() {
58
+ i && (clearInterval(i), i = null);
58
59
  }
59
- function l() {
60
- c.value = !1, a();
60
+ function c() {
61
+ l.value = !1, f();
61
62
  }
62
63
  function s() {
63
- const u = m(t);
64
- u <= 0 || (c.value = !0, i && e(), a(), c.value && (r = setInterval(e, u)));
64
+ const o = h(t);
65
+ o <= 0 || (l.value = !0, u && e(), f(), l.value && (i = setInterval(e, o)));
65
66
  }
66
- if (o && h && s(), g(t) || typeof t == "function") {
67
- const u = p(t, () => {
68
- c.value && h && s();
67
+ if (r && g && s(), C(t) || typeof t == "function") {
68
+ const o = m(t, () => {
69
+ l.value && g && s();
69
70
  });
70
- d(u);
71
+ y(o);
71
72
  }
72
- return d(l), {
73
- isActive: T(c),
74
- pause: l,
73
+ return y(c), {
74
+ isActive: T(l),
75
+ pause: c,
75
76
  resume: s
76
77
  };
77
78
  }
78
- function V(e, t, n) {
79
- return p(
79
+ function E(e, t, n = {}) {
80
+ const {
81
+ eventFilter: r = P,
82
+ ...u
83
+ } = n, i = w(
84
+ r,
85
+ t
86
+ );
87
+ let l, f, c;
88
+ if (u.flush === "sync") {
89
+ const s = d(!1);
90
+ f = () => {
91
+ }, l = (o) => {
92
+ s.value = !0, o(), s.value = !1;
93
+ }, c = m(
94
+ e,
95
+ (...o) => {
96
+ s.value || i(...o);
97
+ },
98
+ u
99
+ );
100
+ } else {
101
+ const s = [], o = d(0), a = d(0);
102
+ f = () => {
103
+ o.value = a.value;
104
+ }, s.push(
105
+ m(
106
+ e,
107
+ () => {
108
+ a.value++;
109
+ },
110
+ { ...u, flush: "sync" }
111
+ )
112
+ ), l = (p) => {
113
+ const v = a.value;
114
+ p(), o.value += a.value - v;
115
+ }, s.push(
116
+ m(
117
+ e,
118
+ (...p) => {
119
+ const v = o.value > 0 && o.value === a.value;
120
+ o.value = 0, a.value = 0, !v && i(...p);
121
+ },
122
+ u
123
+ )
124
+ ), c = () => {
125
+ s.forEach((p) => p());
126
+ };
127
+ }
128
+ return { stop: c, ignoreUpdates: l, ignorePrevAsyncUpdates: f };
129
+ }
130
+ function L(e, t, n) {
131
+ return m(
80
132
  e,
81
133
  t,
82
134
  {
@@ -85,11 +137,11 @@ function V(e, t, n) {
85
137
  }
86
138
  );
87
139
  }
88
- function L(e, t, n) {
89
- return p(
140
+ function N(e, t, n) {
141
+ return m(
90
142
  e,
91
- (i, r, c) => {
92
- i && t(i, r, c);
143
+ (u, i, l) => {
144
+ u && t(u, i, l);
93
145
  },
94
146
  {
95
147
  ...n,
@@ -98,19 +150,22 @@ function L(e, t, n) {
98
150
  );
99
151
  }
100
152
  export {
101
- v as createFilterWrapper,
102
- x as debounceFilter,
103
- W as getLifeCycleTarget,
104
- h as isClient,
105
- P as isObject,
106
- y as noop,
107
- F as notNullish,
108
- R as toArray,
109
- G as tryOnMounted,
110
- d as tryOnScopeDispose,
111
- k as useDebounceFn,
112
- M as useIntervalFn,
113
- V as watchImmediate,
114
- L as whenever
153
+ P as bypassFilter,
154
+ w as createFilterWrapper,
155
+ W as debounceFilter,
156
+ x as getLifeCycleTarget,
157
+ E as ignorableWatch,
158
+ g as isClient,
159
+ k as isObject,
160
+ b as noop,
161
+ R as notNullish,
162
+ G as toArray,
163
+ U as tryOnMounted,
164
+ y as tryOnScopeDispose,
165
+ M as useDebounceFn,
166
+ V as useIntervalFn,
167
+ E as watchIgnorable,
168
+ L as watchImmediate,
169
+ N as whenever
115
170
  };
116
171
  //# sourceMappingURL=index.js.map