@platforma-sdk/ui-vue 1.42.3 → 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 (32) hide show
  1. package/.turbo/turbo-build.log +11 -11
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +9 -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.js +9 -9
  17. package/dist/lib/model/common/dist/index.js +329 -317
  18. package/dist/lib/model/common/dist/index.js.map +1 -1
  19. package/dist/lib/ui/uikit/dist/components/PlAccordion/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
  20. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +1 -0
  21. package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
  22. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +16 -16
  23. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
  24. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +8 -8
  25. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js.map +1 -1
  26. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +18 -18
  27. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js.map +1 -1
  28. package/dist/sdk/model/dist/index.js +198 -206
  29. package/dist/sdk/model/dist/index.js.map +1 -1
  30. package/package.json +6 -6
  31. package/src/components/PlAgDataTable/sources/table-source-v2.ts +9 -6
  32. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js.map +0 -1
@@ -1,18 +1,18 @@
1
1
  import { isJsonEqual as J } from "../../lib/util/helpers/dist/index.js";
2
- import { getRawPlatformaInstance as z, isLabelColumn as N, isLinkerColumn as W, createRowSelectionColumn as X } from "../../sdk/model/dist/index.js";
2
+ import { getRawPlatformaInstance as V, isLabelColumn as N, isLinkerColumn as W, createRowSelectionColumn as X } from "../../sdk/model/dist/index.js";
3
3
  import { ref as M, watch as G } from "vue";
4
4
  import { highlightByChemicalProperties as H } from "./chemical-properties.js";
5
5
  import { parseMarkup as K, markupAlignedSequence as Q, highlightByMarkup as Y } from "./markup.js";
6
6
  import { multiSequenceAlignment as Z } from "./multi-sequence-alignment.js";
7
7
  import { getResidueCounts as nn } from "./residue-counts.js";
8
- import { ensureError as tn, canonicalizeJson as A, getAxisId as E, parseJson as D, matchAxisId as en, pTableValue as q } from "../../lib/model/common/dist/index.js";
9
- const S = () => z().pFrameDriver, O = 1e3, gn = k(
8
+ import { ensureError as tn, canonicalizeJson as A, getAxisId as E, parseJson as D, matchAxisId as en, pTableValue as O } from "../../lib/model/common/dist/index.js";
9
+ const S = () => V().pFrameDriver, q = 1e3, gn = C(
10
10
  an
11
- ), hn = k(
11
+ ), hn = C(
12
12
  on
13
- ), wn = k(
13
+ ), wn = C(
14
14
  rn
15
- ), bn = k(
15
+ ), bn = C(
16
16
  sn
17
17
  );
18
18
  async function an({
@@ -163,11 +163,11 @@ async function sn({
163
163
  {
164
164
  offset: 0,
165
165
  // +1 is a hack to check whether the selection is over the limit
166
- length: O + 1
166
+ length: q + 1
167
167
  }
168
168
  );
169
169
  let g = (a == null ? void 0 : a[0].data.data.length) ?? 0, v = !1;
170
- g > O && (g = O, v = !0);
170
+ g > q && (g = q, v = !0);
171
171
  const L = e.map((n) => {
172
172
  const r = a.find(({ spec: s }) => s.id === n);
173
173
  if (!r)
@@ -190,39 +190,39 @@ async function sn({
190
190
  { length: g },
191
191
  (r, s) => {
192
192
  var w;
193
- return ((w = q(n.data, s, { na: "", absent: "" })) == null ? void 0 : w.toString()) ?? "";
193
+ return ((w = O(n.data, s, { na: "", absent: "" })) == null ? void 0 : w.toString()) ?? "";
194
194
  }
195
195
  ),
196
196
  l
197
197
  )
198
198
  )
199
- ), R = Array.from(
199
+ ), $ = Array.from(
200
200
  { length: g },
201
201
  (n, r) => j.map((s) => s[r])
202
- ), B = L.map(
202
+ ), z = L.map(
203
203
  (n) => {
204
204
  var r;
205
205
  return ((r = n.spec.spec.annotations) == null ? void 0 : r["pl7.app/label"]) ?? "Unlabelled column";
206
206
  }
207
- ), T = Array.from(
207
+ ), B = Array.from(
208
208
  { length: g },
209
209
  (n, r) => _.map(
210
210
  (s) => {
211
211
  var w;
212
- return ((w = q(s.data, r, { na: "", absent: "" })) == null ? void 0 : w.toString()) ?? "";
212
+ return ((w = O(s.data, r, { na: "", absent: "" })) == null ? void 0 : w.toString()) ?? "";
213
213
  }
214
214
  )
215
- ), x = R.map((n) => n.join(" ")), $ = nn(x), C = {
215
+ ), x = $.map((n) => n.join(" ")), R = nn(x), k = {
216
216
  sequences: x,
217
- sequenceNames: B,
218
- labelRows: T,
217
+ sequenceNames: z,
218
+ labelRows: B,
219
219
  exceedsLimit: v,
220
- residueCounts: $
220
+ residueCounts: R
221
221
  };
222
222
  if (t.type === "chemical-properties")
223
- C.highlightImage = H({
223
+ k.highlightImage = H({
224
224
  sequences: x,
225
- residueCounts: $
225
+ residueCounts: R
226
226
  });
227
227
  else if (t.type === "markup") {
228
228
  const n = a.find(
@@ -236,23 +236,23 @@ async function sn({
236
236
  { length: g },
237
237
  (w, P) => {
238
238
  var U;
239
- const V = K(
240
- ((U = q(n.data, P, { na: "", absent: "" })) == null ? void 0 : U.toString()) ?? ""
239
+ const T = K(
240
+ ((U = O(n.data, P, { na: "", absent: "" })) == null ? void 0 : U.toString()) ?? ""
241
241
  );
242
- return Q(R[P][0], V);
242
+ return Q($[P][0], T);
243
243
  }
244
244
  ), s = JSON.parse(
245
245
  ((F = n.spec.spec.annotations) == null ? void 0 : F["pl7.app/sequence/annotation/mapping"]) ?? "{}"
246
246
  );
247
- C.highlightImage = Y({
247
+ k.highlightImage = Y({
248
248
  markupRows: r,
249
249
  columnCount: ((I = x.at(0)) == null ? void 0 : I.length) ?? 0,
250
250
  labels: s
251
251
  });
252
252
  }
253
- return C;
253
+ return k;
254
254
  }
255
- function k(c) {
255
+ function C(c) {
256
256
  const e = M(), y = M(!0), p = M();
257
257
  let t;
258
258
  return (l) => (G(l, async (o, u) => {
@@ -270,7 +270,7 @@ function k(c) {
270
270
  }, { immediate: !0 }), { data: e, isLoading: y, error: p });
271
271
  }
272
272
  export {
273
- O as sequenceLimit,
273
+ q as sequenceLimit,
274
274
  hn as useLabelColumnsOptions,
275
275
  wn as useMarkupColumnsOptions,
276
276
  bn as useMultipleAlignmentData,
@@ -3,7 +3,7 @@ import "../../sdk/model/dist/index.js";
3
3
  import { isJsonEqual as b } from "../../lib/util/helpers/dist/index.js";
4
4
  import { getFilterOptions as g, makeDiscreteOptions as k, isFilterValid as F, isAlphabetic as q, getColumnName as x } from "./filters_logic.js";
5
5
  import { getPTableColumnId as z, canonicalizeJson as f } from "../../lib/model/common/dist/index.js";
6
- function K(M, m) {
6
+ function N(M, m) {
7
7
  const w = J(/* @__PURE__ */ new Map()), o = V({
8
8
  value: []
9
9
  });
@@ -73,6 +73,6 @@ function K(M, m) {
73
73
  ), o;
74
74
  }
75
75
  export {
76
- K as useFilters
76
+ N as useFilters
77
77
  };
78
78
  //# sourceMappingURL=filters-state.js.map
package/dist/defineApp.js CHANGED
@@ -1,5 +1,5 @@
1
- import { notEmpty as V } from "./lib/util/helpers/dist/index.js";
2
- import { getPlatformaApiVersion as g } from "./sdk/model/dist/index.js";
1
+ import { notEmpty as g } from "./lib/util/helpers/dist/index.js";
2
+ import { getPlatformaApiVersion as V } from "./sdk/model/dist/index.js";
3
3
  import { inject as k, reactive as h, markRaw as A } from "vue";
4
4
  import { createAppV1 as j } from "./internal/createAppV1.js";
5
5
  import { createAppV2 as w } from "./internal/createAppV2.js";
@@ -12,15 +12,15 @@ function $() {
12
12
  function C(e, p, l = {}) {
13
13
  let u;
14
14
  y();
15
- const d = e.apiVersion ?? 1, f = g(), b = async () => {
15
+ const d = e.apiVersion ?? 1, f = V(), b = async () => {
16
16
  if (f !== d)
17
17
  throw new Error(`Block requested API version ${f} but runtime API version is ${d}.
18
18
  Please update the desktop app to use the latest API version.`);
19
- e.apiVersion === void 0 || e.apiVersion === 1 ? await e.loadBlockState().then((r) => {
19
+ e.apiVersion === void 0 || e.apiVersion === 1 ? await e.loadBlockState().then((o) => {
20
20
  a.loaded = !0;
21
- const t = j(r, e, l), i = p(t), c = Object.fromEntries(
22
- Object.entries(i.routes).map(([s, o]) => {
23
- const n = typeof o == "function" ? o() : o;
21
+ const t = j(o, e, l), i = p(t), c = Object.fromEntries(
22
+ Object.entries(i.routes).map(([s, r]) => {
23
+ const n = typeof r == "function" ? r() : r;
24
24
  return [s, A(n)];
25
25
  })
26
26
  );
@@ -30,19 +30,19 @@ function C(e, p, l = {}) {
30
30
  return c[s];
31
31
  }
32
32
  });
33
- }) : e.apiVersion === 2 && await e.loadBlockState().then((r) => {
34
- const t = O(r);
33
+ }) : e.apiVersion === 2 && await e.loadBlockState().then((o) => {
34
+ const t = O(o);
35
35
  a.loaded = !0;
36
36
  const i = w(t, e, l), c = p(i), s = Object.fromEntries(
37
- Object.entries(c.routes).map(([o, n]) => {
37
+ Object.entries(c.routes).map(([r, n]) => {
38
38
  const v = typeof n == "function" ? n() : n;
39
- return [o, A(v)];
39
+ return [r, A(v)];
40
40
  })
41
41
  );
42
42
  u = Object.assign(i, {
43
43
  ...c,
44
- getRoute(o) {
45
- return s[o];
44
+ getRoute(r) {
45
+ return s[r];
46
46
  }
47
47
  });
48
48
  });
@@ -51,12 +51,12 @@ function C(e, p, l = {}) {
51
51
  error: void 0,
52
52
  // Href to get typed query parameters for a specific route
53
53
  useApp() {
54
- return V(u, "App is not loaded");
54
+ return g(u, "App is not loaded");
55
55
  },
56
56
  // @todo type portability issue with Vue
57
57
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
58
- install(r) {
59
- r.provide(m, this), b().catch((t) => {
58
+ install(o) {
59
+ o.provide(m, this), b().catch((t) => {
60
60
  console.error("load initial state error", t), a.error = t;
61
61
  });
62
62
  }
@@ -1,14 +1,14 @@
1
1
  import { deepClone as i, uniqueId as V, delay as L } from "../lib/util/helpers/dist/index.js";
2
2
  import "../sdk/model/dist/index.js";
3
- import { ref as w, computed as g, reactive as N } from "vue";
4
- import { createModel as P } from "../createModel.js";
3
+ import { ref as w, computed as g, reactive as P } from "vue";
4
+ import { createModel as B } from "../createModel.js";
5
5
  import { parseQuery as W } from "../urls.js";
6
6
  import { MultiError as G, unwrapValueOrErrors as H } from "../utils.js";
7
7
  import "../node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/index.js";
8
8
  import { UpdateSerializer as v } from "./UpdateSerializer.js";
9
9
  import { ignorableWatch as K } from "../node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/shared/index.js";
10
10
  import { unwrapResult as c, hasAbortError as X } from "../lib/model/common/dist/index.js";
11
- import { applyPatch as B } from "../node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/core.js";
11
+ import { applyPatch as N } from "../node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/core.js";
12
12
  const O = 100, Y = (n) => ({
13
13
  authorId: (n == null ? void 0 : n.authorId) ?? V(),
14
14
  localVersion: ((n == null ? void 0 : n.localVersion) ?? 0) + 1
@@ -36,7 +36,7 @@ function ie(n, u, A) {
36
36
  }), C = g(() => {
37
37
  const e = Object.entries(o.value.outputs).map(([t, a]) => [t, a && !a.ok ? new G(a.errors) : void 0]);
38
38
  return Object.fromEntries(e);
39
- }), l = N({
39
+ }), l = P({
40
40
  error: "",
41
41
  model: {
42
42
  args: i(o.value.args),
@@ -69,8 +69,8 @@ function ie(n, u, A) {
69
69
  }
70
70
  const d = ((e = s.author) == null ? void 0 : e.authorId) !== ((t = a.author) == null ? void 0 : t.authorId);
71
71
  d || s.isExternalSnapshot ? (r("got external changes, applying them to the snapshot", o.value), $(() => {
72
- o.value = B(o.value, a.value, !1, !1).newDocument, z({ args: o.value.args, ui: o.value.ui }), s.isExternalSnapshot = d;
73
- })) : o.value = B(o.value, a.value).newDocument, await new Promise((S) => setTimeout(S, O));
72
+ o.value = N(o.value, a.value, !1, !1).newDocument, z({ args: o.value.args, ui: o.value.ui }), s.isExternalSnapshot = d;
73
+ })) : o.value = N(o.value, a.value).newDocument, await new Promise((S) => setTimeout(S, O));
74
74
  } catch (a) {
75
75
  X(a) ? (r("patches loop aborted"), h.value = !0) : (b("error in patches loop", a), await new Promise((d) => setTimeout(d, 1e3)));
76
76
  }
@@ -80,7 +80,7 @@ function ie(n, u, A) {
80
80
  cloneUiState: j,
81
81
  cloneNavigationState: I,
82
82
  createArgsModel(e = {}) {
83
- return P({
83
+ return B({
84
84
  get() {
85
85
  return e.transform ? e.transform(o.value.args) : o.value.args;
86
86
  },
@@ -95,7 +95,7 @@ function ie(n, u, A) {
95
95
  * defaultUiState is temporarily here, remove it after implementing initialUiState
96
96
  */
97
97
  createUiModel(e = {}, t) {
98
- return P({
98
+ return B({
99
99
  get() {
100
100
  return e.transform ? e.transform(o.value.ui) : o.value.ui ?? t();
101
101
  },
@@ -159,7 +159,7 @@ function ie(n, u, A) {
159
159
  href: g(() => o.value.navigationState.href),
160
160
  hasErrors: g(() => Object.values(o.value.outputs).some((e) => !(e != null && e.ok)))
161
161
  };
162
- return N(Object.assign(l, F, J));
162
+ return P(Object.assign(l, F, J));
163
163
  }
164
164
  export {
165
165
  ie as createAppV2,