@platforma-sdk/ui-vue 1.42.3 → 1.42.5

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 (45) hide show
  1. package/.turbo/turbo-build.log +16 -16
  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/MultiSequenceAlignmentView.vue.d.ts.map +1 -1
  14. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue2.js +37 -29
  15. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue2.js.map +1 -1
  16. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue3.js +18 -14
  17. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue3.js.map +1 -1
  18. package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue.d.ts.map +1 -1
  19. package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue2.js +100 -98
  20. package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue2.js.map +1 -1
  21. package/dist/components/PlMultiSequenceAlignment/data.d.ts +1 -1
  22. package/dist/components/PlMultiSequenceAlignment/data.js +41 -41
  23. package/dist/components/PlMultiSequenceAlignment/data.js.map +1 -1
  24. package/dist/components/PlTableFilters/filters-state.js +2 -2
  25. package/dist/defineApp.js +16 -16
  26. package/dist/internal/createAppV2.js +9 -9
  27. package/dist/lib/model/common/dist/index.js +329 -317
  28. package/dist/lib/model/common/dist/index.js.map +1 -1
  29. package/dist/lib/ui/uikit/dist/components/PlAccordion/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
  30. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +1 -0
  31. package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
  32. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +16 -16
  33. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
  34. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +8 -8
  35. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js.map +1 -1
  36. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +18 -18
  37. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js.map +1 -1
  38. package/dist/sdk/model/dist/index.js +198 -206
  39. package/dist/sdk/model/dist/index.js.map +1 -1
  40. package/package.json +5 -5
  41. package/src/components/PlAgDataTable/sources/table-source-v2.ts +9 -6
  42. package/src/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue +65 -18
  43. package/src/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue +16 -11
  44. package/src/components/PlMultiSequenceAlignment/data.ts +10 -10
  45. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js.map +0 -1
@@ -1,288 +1,304 @@
1
1
  import f from "../../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
2
2
  import p from "../../../../_virtual/canonicalize.js";
3
- var k = Object.defineProperty, E = (e, t, n) => t in e ? k(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, m = (e, t, n) => E(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var E = Object.defineProperty, S = (t, e, n) => e in t ? E(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, m = (t, e, n) => S(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  f.object({
5
5
  /** Included left border. */
6
6
  from: f.number(),
7
7
  /** Excluded right border. */
8
8
  to: f.number()
9
9
  });
10
- function A(e) {
11
- throw new Error("Unexpected object: " + e);
10
+ function x(t) {
11
+ throw new Error("Unexpected object: " + t);
12
12
  }
13
- function Z(e) {
14
- if (!e || typeof e != "object")
13
+ function Y(t) {
14
+ if (!t || typeof t != "object")
15
15
  return !1;
16
- const t = e;
17
- if (!("type" in t))
16
+ const e = t;
17
+ if (!("type" in e))
18
18
  return !1;
19
- switch (t.type) {
19
+ switch (e.type) {
20
20
  case "Json":
21
- return typeof t.keyLength == "number" && t.data !== void 0 && typeof t.data == "object";
21
+ return typeof e.keyLength == "number" && e.data !== void 0 && typeof e.data == "object";
22
22
  case "JsonPartitioned":
23
- return typeof t.partitionKeyLength == "number" && t.parts !== void 0 && typeof t.parts == "object";
23
+ return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
24
24
  case "BinaryPartitioned":
25
- return typeof t.partitionKeyLength == "number" && t.parts !== void 0 && typeof t.parts == "object";
25
+ return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
26
26
  default:
27
27
  return !1;
28
28
  }
29
29
  }
30
- function ee(e, t) {
31
- if (e !== void 0)
32
- switch (e.type) {
30
+ function Z(t, e) {
31
+ if (t !== void 0)
32
+ switch (t.type) {
33
33
  case "Json":
34
- return e;
34
+ return t;
35
35
  case "JsonPartitioned": {
36
36
  const n = {};
37
- for (const [r, o] of Object.entries(e.parts))
38
- n[r] = t(o);
37
+ for (const [r, o] of Object.entries(t.parts))
38
+ n[r] = e(o);
39
39
  return {
40
- ...e,
40
+ ...t,
41
41
  parts: n
42
42
  };
43
43
  }
44
44
  case "BinaryPartitioned": {
45
45
  const n = {};
46
- for (const [r, o] of Object.entries(e.parts))
46
+ for (const [r, o] of Object.entries(t.parts))
47
47
  n[r] = {
48
- index: t(o.index),
49
- values: t(o.values)
48
+ index: e(o.index),
49
+ values: e(o.values)
50
50
  };
51
51
  return {
52
- ...e,
52
+ ...t,
53
53
  parts: n
54
54
  };
55
55
  }
56
56
  }
57
57
  }
58
- function S(e) {
59
- if (!e || typeof e != "object")
58
+ function I(t) {
59
+ if (!t || typeof t != "object")
60
60
  return !1;
61
- const t = e;
62
- if (!("type" in t))
61
+ const e = t;
62
+ if (!("type" in e))
63
63
  return !1;
64
- switch (t.type) {
64
+ switch (e.type) {
65
65
  case "Json":
66
- return typeof t.keyLength == "number" && Array.isArray(t.data);
66
+ return typeof e.keyLength == "number" && Array.isArray(e.data);
67
67
  case "JsonPartitioned":
68
- return typeof t.partitionKeyLength == "number" && Array.isArray(t.parts);
68
+ return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
69
69
  case "BinaryPartitioned":
70
- return typeof t.partitionKeyLength == "number" && Array.isArray(t.parts);
70
+ return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
71
71
  default:
72
72
  return !1;
73
73
  }
74
74
  }
75
- function te(e) {
76
- return S(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : !1;
75
+ function tt(t) {
76
+ return I(t) ? t.type === "JsonPartitioned" || t.type === "BinaryPartitioned" : !1;
77
77
  }
78
- function ne(e) {
79
- switch (e.type) {
78
+ function et(t) {
79
+ switch (t.type) {
80
80
  case "Json": {
81
- const t = Object.entries(e.data).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
81
+ const e = Object.entries(t.data).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
82
82
  return {
83
83
  type: "Json",
84
- keyLength: e.keyLength,
85
- data: t
84
+ keyLength: t.keyLength,
85
+ data: e
86
86
  };
87
87
  }
88
88
  case "JsonPartitioned": {
89
- const t = Object.entries(e.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
89
+ const e = Object.entries(t.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
90
90
  return {
91
91
  type: "JsonPartitioned",
92
- partitionKeyLength: e.partitionKeyLength,
93
- parts: t
92
+ partitionKeyLength: t.partitionKeyLength,
93
+ parts: e
94
94
  };
95
95
  }
96
96
  case "BinaryPartitioned": {
97
- const t = Object.entries(e.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
97
+ const e = Object.entries(t.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
98
98
  return {
99
99
  type: "BinaryPartitioned",
100
- partitionKeyLength: e.partitionKeyLength,
101
- parts: t
100
+ partitionKeyLength: t.partitionKeyLength,
101
+ parts: e
102
102
  };
103
103
  }
104
104
  }
105
105
  }
106
- function re(e) {
107
- switch (e.type) {
106
+ function nt(t) {
107
+ switch (t.type) {
108
108
  case "Json": {
109
- const t = {};
110
- for (const n of e.data)
111
- t[JSON.stringify(n.key)] = n.value;
109
+ const e = {};
110
+ for (const n of t.data)
111
+ e[JSON.stringify(n.key)] = n.value;
112
112
  return {
113
113
  type: "Json",
114
- keyLength: e.keyLength,
115
- data: t
114
+ keyLength: t.keyLength,
115
+ data: e
116
116
  };
117
117
  }
118
118
  case "JsonPartitioned": {
119
- const t = {};
120
- for (const n of e.parts)
121
- t[JSON.stringify(n.key)] = n.value;
119
+ const e = {};
120
+ for (const n of t.parts)
121
+ e[JSON.stringify(n.key)] = n.value;
122
122
  return {
123
123
  type: "JsonPartitioned",
124
- partitionKeyLength: e.partitionKeyLength,
125
- parts: t
124
+ partitionKeyLength: t.partitionKeyLength,
125
+ parts: e
126
126
  };
127
127
  }
128
128
  case "BinaryPartitioned": {
129
- const t = {};
130
- for (const n of e.parts)
131
- t[JSON.stringify(n.key)] = n.value;
129
+ const e = {};
130
+ for (const n of t.parts)
131
+ e[JSON.stringify(n.key)] = n.value;
132
132
  return {
133
133
  type: "BinaryPartitioned",
134
- partitionKeyLength: e.partitionKeyLength,
135
- parts: t
134
+ partitionKeyLength: t.partitionKeyLength,
135
+ parts: e
136
136
  };
137
137
  }
138
138
  }
139
139
  }
140
- const N = -2147483648, b = -9007199254740991n, I = null, J = null;
141
- function O(e, t) {
142
- switch (t) {
140
+ function A(t, e) {
141
+ const n = Math.floor(e / 8), r = 1 << 7 - e % 8;
142
+ return (t[n] & r) > 0;
143
+ }
144
+ function J(t, e) {
145
+ return A(t.absent, e);
146
+ }
147
+ function O(t, e) {
148
+ if (t.isNA) return A(t.isNA, e);
149
+ const n = t.type, r = t.data[e];
150
+ switch (n) {
143
151
  case "Int":
144
- return e === N;
152
+ return r === -2147483648;
145
153
  case "Long":
146
- return e === Number(b) || e === b;
154
+ return r === -9007199254740991n;
147
155
  case "Float":
148
- return Number.isNaN(e);
156
+ return Number.isNaN(r);
149
157
  case "Double":
150
- return Number.isNaN(e);
158
+ return Number.isNaN(r);
151
159
  case "String":
152
- return e === I;
160
+ return r === null;
153
161
  case "Bytes":
154
- return e === J;
162
+ return r === null;
155
163
  default:
156
- throw Error(`unsupported data type: ${t}`);
164
+ throw Error(`unsupported data type: ${n}`);
157
165
  }
158
166
  }
159
- function j(e, t) {
160
- const n = Math.floor(t / 8), r = 1 << 7 - t % 8;
161
- return (e[n] & r) > 0;
162
- }
163
- const C = { type: "absent" }, $ = null;
164
- function oe(e) {
165
- return typeof e == "object" && e !== null && e.type === "absent";
166
- }
167
- function ae(e, t, n = {}) {
168
- if (j(e.absent, t))
169
- return n.absent === void 0 ? C : n.absent;
170
- const r = e.data[t], o = e.type;
171
- if (O(r, o)) return n.na === void 0 ? $ : n.na;
172
- switch (o) {
167
+ const N = { type: "absent" };
168
+ function rt(t) {
169
+ return typeof t == "object" && t !== null && "type" in t && t.type === "absent";
170
+ }
171
+ const P = null;
172
+ function j(t) {
173
+ return t === P;
174
+ }
175
+ function ot(t, e) {
176
+ return !j(t);
177
+ }
178
+ function C(t, e, n) {
179
+ const r = t.type;
180
+ if (r === "Bytes")
181
+ throw Error("Bytes not yet supported");
182
+ if (n && "dataType" in n && n.dataType !== void 0 && n.dataType !== r)
183
+ throw Error(`expected column of type ${n.dataType}, got ${r}`);
184
+ if (J(t, e))
185
+ return (n == null ? void 0 : n.absent) !== void 0 ? n.absent : N;
186
+ if (O(t, e))
187
+ return (n == null ? void 0 : n.na) !== void 0 ? n.na : P;
188
+ const o = t.data[e];
189
+ switch (r) {
173
190
  case "Int":
174
- return r;
191
+ return o;
175
192
  case "Long":
176
- return Number(r);
193
+ return Number(o);
177
194
  case "Float":
178
- return r;
195
+ return o;
179
196
  case "Double":
180
- return r;
197
+ return o;
181
198
  case "String":
182
- return r;
183
- case "Bytes":
184
- throw Error("Bytes not yet supported");
185
- default:
186
- throw Error(`unsupported data type: ${o}`);
199
+ return o;
187
200
  }
188
201
  }
189
- function l(e) {
190
- const { type: t, name: n, domain: r } = e, o = { type: t, name: n };
202
+ function at(t, e, n) {
203
+ return C(t, e, n);
204
+ }
205
+ function l(t) {
206
+ const { type: e, name: n, domain: r } = t, o = { type: e, name: n };
191
207
  return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
192
208
  }
193
- function L(e) {
194
- return e.map(l);
209
+ function $(t) {
210
+ return t.map(l);
195
211
  }
196
- function ie(e) {
197
- return p(l(e));
212
+ function it(t) {
213
+ return p(l(t));
198
214
  }
199
- function T(e, t) {
200
- if (e === void 0) return t === void 0;
201
- if (t === void 0) return !0;
202
- for (const n in t)
203
- if (e[n] !== t[n]) return !1;
215
+ function T(t, e) {
216
+ if (t === void 0) return e === void 0;
217
+ if (e === void 0) return !0;
218
+ for (const n in e)
219
+ if (t[n] !== e[n]) return !1;
204
220
  return !0;
205
221
  }
206
- function B(e, t) {
207
- return e.name === t.name && T(e.domain, t.domain);
222
+ function L(t, e) {
223
+ return t.name === e.name && T(t.domain, e.domain);
208
224
  }
209
- function se(e, t) {
210
- return { ...e, src: y(e.src, t) };
225
+ function st(t, e) {
226
+ return { ...t, src: y(t.src, e) };
211
227
  }
212
- function y(e, t) {
213
- switch (e.type) {
228
+ function y(t, e) {
229
+ switch (t.type) {
214
230
  case "column":
215
231
  return {
216
232
  type: "column",
217
- column: t(e.column)
233
+ column: e(t.column)
218
234
  };
219
235
  case "slicedColumn":
220
236
  return {
221
237
  type: "slicedColumn",
222
- column: t(e.column),
223
- newId: e.newId,
224
- axisFilters: e.axisFilters
238
+ column: e(t.column),
239
+ newId: t.newId,
240
+ axisFilters: t.axisFilters
225
241
  };
226
242
  case "inlineColumn":
227
- return e;
243
+ return t;
228
244
  case "inner":
229
245
  case "full":
230
246
  return {
231
- type: e.type,
232
- entries: e.entries.map((n) => y(n, t))
247
+ type: t.type,
248
+ entries: t.entries.map((n) => y(n, e))
233
249
  };
234
250
  case "outer":
235
251
  return {
236
252
  type: "outer",
237
- primary: y(e.primary, t),
238
- secondary: e.secondary.map((n) => y(n, t))
253
+ primary: y(t.primary, e),
254
+ secondary: t.secondary.map((n) => y(n, e))
239
255
  };
240
256
  default:
241
- A(e);
257
+ x(t);
242
258
  }
243
259
  }
244
- function ce(e) {
245
- switch (e.type) {
260
+ function ct(t) {
261
+ switch (t.type) {
246
262
  case "axis":
247
263
  return {
248
264
  type: "axis",
249
- id: e.id
265
+ id: t.id
250
266
  };
251
267
  case "column":
252
268
  return {
253
269
  type: "column",
254
- id: e.id
270
+ id: t.id
255
271
  };
256
272
  }
257
273
  }
258
- function D(e) {
259
- return p(e);
274
+ function B(t) {
275
+ return p(t);
260
276
  }
261
- function g(e) {
262
- return p(l(e));
277
+ function b(t) {
278
+ return p(l(t));
263
279
  }
264
- function w(e, t) {
265
- return JSON.stringify([e, t]);
280
+ function g(t, e) {
281
+ return JSON.stringify([t, e]);
266
282
  }
267
- class ue {
283
+ class ut {
268
284
  /**
269
285
  * Creates a new anchor context from a set of anchor column specifications
270
286
  * @param anchors Record of anchor column specifications indexed by anchor ID
271
287
  */
272
- constructor(t) {
273
- m(this, "domains", /* @__PURE__ */ new Map()), m(this, "axes", /* @__PURE__ */ new Map()), m(this, "domainPacks", []), m(this, "domainPackToAnchor", /* @__PURE__ */ new Map()), this.anchors = t;
274
- const n = Object.entries(t);
288
+ constructor(e) {
289
+ m(this, "domains", /* @__PURE__ */ new Map()), m(this, "axes", /* @__PURE__ */ new Map()), m(this, "domainPacks", []), m(this, "domainPackToAnchor", /* @__PURE__ */ new Map()), this.anchors = e;
290
+ const n = Object.entries(e);
275
291
  n.sort((r, o) => r[0].localeCompare(o[0]));
276
292
  for (const [r, o] of n) {
277
293
  for (let s = 0; s < o.axesSpec.length; s++) {
278
- const i = o.axesSpec[s], a = g(i);
294
+ const i = o.axesSpec[s], a = b(i);
279
295
  this.axes.set(a, { anchor: r, idx: s });
280
296
  }
281
297
  if (o.domain !== void 0) {
282
298
  const s = Object.entries(o.domain);
283
299
  s.sort((i, a) => i[0].localeCompare(a[0])), this.domainPackToAnchor.set(JSON.stringify(s), r), this.domainPacks.push(s.map(([i]) => i));
284
300
  for (const [i, a] of s) {
285
- const c = w(i, a);
301
+ const c = g(i, a);
286
302
  this.domains.set(c, r);
287
303
  }
288
304
  }
@@ -291,22 +307,22 @@ class ue {
291
307
  /**
292
308
  * Implementation of derive method
293
309
  */
294
- derive(t, n) {
310
+ derive(e, n) {
295
311
  const r = {
296
- name: t.name,
312
+ name: e.name,
297
313
  axes: []
298
314
  };
299
315
  let o;
300
- if (t.domain !== void 0)
301
- e:
316
+ if (e.domain !== void 0)
317
+ t:
302
318
  for (const i of this.domainPacks) {
303
319
  const a = [];
304
320
  for (const u of i) {
305
- const d = t.domain[u];
321
+ const d = e.domain[u];
306
322
  if (d !== void 0)
307
323
  a.push([u, d]);
308
324
  else
309
- break e;
325
+ break t;
310
326
  }
311
327
  const c = this.domainPackToAnchor.get(JSON.stringify(a));
312
328
  if (c !== void 0) {
@@ -314,14 +330,14 @@ class ue {
314
330
  break;
315
331
  }
316
332
  }
317
- for (const [i, a] of Object.entries(t.domain ?? {})) {
333
+ for (const [i, a] of Object.entries(e.domain ?? {})) {
318
334
  if (o !== void 0 && o.has(i))
319
335
  continue;
320
- const c = w(i, a), u = this.domains.get(c);
336
+ const c = g(i, a), u = this.domains.get(c);
321
337
  r.domain ?? (r.domain = {}), r.domain[i] = u ? { anchor: u } : a;
322
338
  }
323
- if (r.axes = t.axesSpec.map((i) => {
324
- const a = g(i), c = this.axes.get(a);
339
+ if (r.axes = e.axesSpec.map((i) => {
340
+ const a = b(i), c = this.axes.get(a);
325
341
  return c === void 0 ? l(i) : c;
326
342
  }), !n || n.length === 0)
327
343
  return r;
@@ -329,11 +345,11 @@ class ue {
329
345
  for (const i of n) {
330
346
  const [a, c] = i;
331
347
  if (typeof a == "number") {
332
- if (a < 0 || a >= t.axesSpec.length)
333
- throw new Error(`Axis index ${a} is out of bounds (0-${t.axesSpec.length - 1})`);
348
+ if (a < 0 || a >= e.axesSpec.length)
349
+ throw new Error(`Axis index ${a} is out of bounds (0-${e.axesSpec.length - 1})`);
334
350
  s.push([a, c]);
335
351
  } else {
336
- const u = t.axesSpec.findIndex((d) => d.name === a);
352
+ const u = e.axesSpec.findIndex((d) => d.name === a);
337
353
  if (u === -1)
338
354
  throw new Error(`Axis with name "${a}" not found in the column specification`);
339
355
  s.push([u, c]);
@@ -350,14 +366,14 @@ class ue {
350
366
  * @param axisFilters Optional axis filters to apply to the column
351
367
  * @returns A canonicalized string representation of the anchored column identifier
352
368
  */
353
- deriveS(t, n) {
354
- return D(this.derive(t, n));
369
+ deriveS(e, n) {
370
+ return B(this.derive(e, n));
355
371
  }
356
372
  }
357
- function fe(e, t, n) {
358
- const r = { ...t }, o = (n == null ? void 0 : n.ignoreMissingDomains) ?? !1;
373
+ function ft(t, e, n) {
374
+ const r = { ...e }, o = (n == null ? void 0 : n.ignoreMissingDomains) ?? !1;
359
375
  if (r.domainAnchor !== void 0) {
360
- const s = e[r.domainAnchor];
376
+ const s = t[r.domainAnchor];
361
377
  if (!s)
362
378
  throw new Error(`Anchor "${r.domainAnchor}" not found`);
363
379
  const i = s.domain || {};
@@ -369,7 +385,7 @@ function fe(e, t, n) {
369
385
  if (typeof a == "string")
370
386
  s[i] = a;
371
387
  else {
372
- const c = e[a.anchor];
388
+ const c = t[a.anchor];
373
389
  if (!c)
374
390
  throw new Error(`Anchor "${a.anchor}" not found for domain key "${i}"`);
375
391
  if (!c.domain || c.domain[i] === void 0) {
@@ -381,27 +397,27 @@ function fe(e, t, n) {
381
397
  }
382
398
  r.domain = s;
383
399
  }
384
- return r.axes && (r.axes = r.axes.map((s) => R(e, s))), r;
400
+ return r.axes && (r.axes = r.axes.map((s) => R(t, s))), r;
385
401
  }
386
- function R(e, t) {
387
- if (!V(t))
388
- return t;
389
- const n = t.anchor, r = e[n];
402
+ function R(t, e) {
403
+ if (!D(e))
404
+ return e;
405
+ const n = e.anchor, r = t[n];
390
406
  if (!r)
391
407
  throw new Error(`Anchor "${n}" not found for axis reference`);
392
- if ("idx" in t) {
393
- if (t.idx < 0 || t.idx >= r.axesSpec.length)
394
- throw new Error(`Axis index ${t.idx} out of bounds for anchor "${n}"`);
395
- return r.axesSpec[t.idx];
396
- } else if ("name" in t) {
397
- const o = r.axesSpec.filter((s) => s.name === t.name);
408
+ if ("idx" in e) {
409
+ if (e.idx < 0 || e.idx >= r.axesSpec.length)
410
+ throw new Error(`Axis index ${e.idx} out of bounds for anchor "${n}"`);
411
+ return r.axesSpec[e.idx];
412
+ } else if ("name" in e) {
413
+ const o = r.axesSpec.filter((s) => s.name === e.name);
398
414
  if (o.length > 1)
399
- throw new Error(`Multiple axes with name "${t.name}" found in anchor "${n}"`);
415
+ throw new Error(`Multiple axes with name "${e.name}" found in anchor "${n}"`);
400
416
  if (o.length === 0)
401
- throw new Error(`Axis with name "${t.name}" not found in anchor "${n}"`);
417
+ throw new Error(`Axis with name "${e.name}" not found in anchor "${n}"`);
402
418
  return o[0];
403
- } else if ("id" in t) {
404
- const o = r.axesSpec.filter((s) => B(t.id, l(s)));
419
+ } else if ("id" in e) {
420
+ const o = r.axesSpec.filter((s) => L(e.id, l(s)));
405
421
  if (o.length > 1)
406
422
  throw new Error(`Multiple matching axes found for matcher in anchor "${n}"`);
407
423
  if (o.length === 0)
@@ -410,33 +426,33 @@ function R(e, t) {
410
426
  }
411
427
  throw new Error("Unsupported axis reference type");
412
428
  }
413
- function V(e) {
414
- return typeof e == "object" && "anchor" in e;
429
+ function D(t) {
430
+ return typeof t == "object" && "anchor" in t;
415
431
  }
416
- function h(e) {
417
- return e.kind === "PColumn";
432
+ function h(t) {
433
+ return t.kind === "PColumn";
418
434
  }
419
- function K(e) {
420
- return h(e.spec);
435
+ function K(t) {
436
+ return h(t.spec);
421
437
  }
422
- function de(e) {
423
- if (!K(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
424
- return e;
438
+ function dt(t) {
439
+ if (!K(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
440
+ return t;
425
441
  }
426
- function le(e, t) {
427
- return e === void 0 ? void 0 : {
428
- ...e,
429
- data: t(e.data)
442
+ function lt(t, e) {
443
+ return t === void 0 ? void 0 : {
444
+ ...t,
445
+ data: e(t.data)
430
446
  };
431
447
  }
432
- function pe(e) {
433
- const t = /* @__PURE__ */ new Map(), n = (r) => {
448
+ function pt(t) {
449
+ const e = /* @__PURE__ */ new Map(), n = (r) => {
434
450
  switch (r.type) {
435
451
  case "column":
436
- t.set(r.column.id, r.column);
452
+ e.set(r.column.id, r.column);
437
453
  return;
438
454
  case "slicedColumn":
439
- t.set(r.column.id, r.column);
455
+ e.set(r.column.id, r.column);
440
456
  return;
441
457
  case "inlineColumn":
442
458
  return;
@@ -449,68 +465,68 @@ function pe(e) {
449
465
  for (const o of r.secondary) n(o);
450
466
  return;
451
467
  default:
452
- A(r);
468
+ x(r);
453
469
  }
454
470
  };
455
- return n(e), [...t.values()];
471
+ return n(t), [...e.values()];
456
472
  }
457
- function v(e, t) {
458
- if (e.name !== void 0 && e.name !== t.name)
473
+ function w(t, e) {
474
+ if (t.name !== void 0 && t.name !== e.name)
459
475
  return !1;
460
- if (e.type !== void 0) {
461
- if (Array.isArray(e.type)) {
462
- if (!e.type.includes(t.type))
476
+ if (t.type !== void 0) {
477
+ if (Array.isArray(t.type)) {
478
+ if (!t.type.includes(e.type))
463
479
  return !1;
464
- } else if (e.type !== t.type)
480
+ } else if (t.type !== e.type)
465
481
  return !1;
466
482
  }
467
- if (e.domain !== void 0) {
468
- const n = t.domain || {};
469
- for (const [r, o] of Object.entries(e.domain))
483
+ if (t.domain !== void 0) {
484
+ const n = e.domain || {};
485
+ for (const [r, o] of Object.entries(t.domain))
470
486
  if (n[r] !== o)
471
487
  return !1;
472
488
  }
473
489
  return !0;
474
490
  }
475
- function x(e, t) {
476
- if (t.name !== void 0 && e.name !== t.name || t.namePattern !== void 0 && !new RegExp(t.namePattern).test(e.name))
491
+ function v(t, e) {
492
+ if (e.name !== void 0 && t.name !== e.name || e.namePattern !== void 0 && !new RegExp(e.namePattern).test(t.name))
477
493
  return !1;
478
- if (t.type !== void 0) {
479
- if (Array.isArray(t.type)) {
480
- if (!t.type.includes(e.valueType))
494
+ if (e.type !== void 0) {
495
+ if (Array.isArray(e.type)) {
496
+ if (!e.type.includes(t.valueType))
481
497
  return !1;
482
- } else if (t.type !== e.valueType)
498
+ } else if (e.type !== t.valueType)
483
499
  return !1;
484
500
  }
485
- if (t.domain !== void 0) {
486
- const n = e.domain || {};
487
- for (const [r, o] of Object.entries(t.domain))
501
+ if (e.domain !== void 0) {
502
+ const n = t.domain || {};
503
+ for (const [r, o] of Object.entries(e.domain))
488
504
  if (n[r] !== o)
489
505
  return !1;
490
506
  }
491
- if (t.axes !== void 0) {
492
- const n = e.axesSpec.map(l);
493
- if (t.partialAxesMatch) {
494
- for (const r of t.axes)
495
- if (!n.some((o) => v(r, o)))
507
+ if (e.axes !== void 0) {
508
+ const n = t.axesSpec.map(l);
509
+ if (e.partialAxesMatch) {
510
+ for (const r of e.axes)
511
+ if (!n.some((o) => w(r, o)))
496
512
  return !1;
497
513
  } else {
498
- if (n.length !== t.axes.length)
514
+ if (n.length !== e.axes.length)
499
515
  return !1;
500
- for (let r = 0; r < t.axes.length; r++)
501
- if (!v(t.axes[r], n[r]))
516
+ for (let r = 0; r < e.axes.length; r++)
517
+ if (!w(e.axes[r], n[r]))
502
518
  return !1;
503
519
  }
504
520
  }
505
- if (t.annotations !== void 0) {
506
- const n = e.annotations || {};
507
- for (const [r, o] of Object.entries(t.annotations))
521
+ if (e.annotations !== void 0) {
522
+ const n = t.annotations || {};
523
+ for (const [r, o] of Object.entries(e.annotations))
508
524
  if (n[r] !== o)
509
525
  return !1;
510
526
  }
511
- if (t.annotationPatterns !== void 0) {
512
- const n = e.annotations || {};
513
- for (const [r, o] of Object.entries(t.annotationPatterns)) {
527
+ if (e.annotationPatterns !== void 0) {
528
+ const n = t.annotations || {};
529
+ for (const [r, o] of Object.entries(e.annotationPatterns)) {
514
530
  const s = n[r];
515
531
  if (s === void 0 || !new RegExp(o).test(s))
516
532
  return !1;
@@ -518,15 +534,15 @@ function x(e, t) {
518
534
  }
519
535
  return !0;
520
536
  }
521
- function me(e) {
522
- return Array.isArray(e) ? (t) => e.some((n) => h(t) && x(t, n)) : (t) => h(t) && x(t, e);
537
+ function mt(t) {
538
+ return Array.isArray(t) ? (e) => t.some((n) => h(e) && v(e, n)) : (e) => h(e) && v(e, t);
523
539
  }
524
- function ye(e) {
525
- const t = {
526
- kind: e.kind,
527
- name: e.name
540
+ function yt(t) {
541
+ const e = {
542
+ kind: t.kind,
543
+ name: t.name
528
544
  };
529
- return e.domain !== void 0 && (t.domain = e.domain), h(e) && (t.axesSpec = L(e.axesSpec)), p(t);
545
+ return t.domain !== void 0 && (e.domain = t.domain), h(t) && (e.axesSpec = $(t.axesSpec)), p(e);
530
546
  }
531
547
  f.object({
532
548
  __isRef: f.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
@@ -536,50 +552,50 @@ f.object({
536
552
  }).describe(
537
553
  "Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees."
538
554
  ).readonly();
539
- function he(e) {
540
- return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === !0 && "blockId" in e && "name" in e;
555
+ function ht(t) {
556
+ return typeof t == "object" && t !== null && "__isRef" in t && t.__isRef === !0 && "blockId" in t && "name" in t;
541
557
  }
542
- function be(e, t = !0) {
543
- if (t)
558
+ function bt(t, e = !0) {
559
+ if (e)
544
560
  return {
545
- ...e,
561
+ ...t,
546
562
  requireEnrichments: !0
547
563
  };
548
564
  {
549
- const { requireEnrichments: n, ...r } = e;
565
+ const { requireEnrichments: n, ...r } = t;
550
566
  return r;
551
567
  }
552
568
  }
553
- function ge(e, t) {
554
- return e.ok ? { ok: !0, value: t(e.value) } : e;
569
+ function gt(t, e) {
570
+ return t.ok ? { ok: !0, value: e(t.value) } : t;
555
571
  }
556
- function U(e) {
557
- if (e instanceof Int8Array || e instanceof Uint8Array || e instanceof Uint8ClampedArray)
558
- return new DataView(e.buffer, e.byteOffset, e.byteLength);
559
- if (e instanceof ArrayBuffer) return new DataView(e);
572
+ function F(t) {
573
+ if (t instanceof Int8Array || t instanceof Uint8Array || t instanceof Uint8ClampedArray)
574
+ return new DataView(t.buffer, t.byteOffset, t.byteLength);
575
+ if (t instanceof ArrayBuffer) return new DataView(t);
560
576
  throw new TypeError(
561
577
  "Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray"
562
578
  );
563
579
  }
564
- const F = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", M = "0123456789ABCDEFGHIJKLMNOPQRSTUV", _ = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
565
- function q(e, t, n) {
580
+ const U = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", M = "0123456789ABCDEFGHIJKLMNOPQRSTUV", V = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
581
+ function _(t, e, n) {
566
582
  n = n || {};
567
583
  let r, o;
568
- switch (t) {
584
+ switch (e) {
569
585
  case "RFC3548":
570
586
  case "RFC4648":
571
- r = F, o = !0;
587
+ r = U, o = !0;
572
588
  break;
573
589
  case "RFC4648-HEX":
574
590
  r = M, o = !0;
575
591
  break;
576
592
  case "Crockford":
577
- r = _, o = !1;
593
+ r = V, o = !1;
578
594
  break;
579
595
  default:
580
- throw new Error("Unknown base32 variant: " + String(t));
596
+ throw new Error("Unknown base32 variant: " + String(e));
581
597
  }
582
- const s = n.padding !== void 0 ? n.padding : o, i = U(e);
598
+ const s = n.padding !== void 0 ? n.padding : o, i = F(t);
583
599
  let a = 0, c = 0, u = "";
584
600
  for (let d = 0; d < i.byteLength; d++)
585
601
  for (c = c << 8 | i.getUint8(d), a += 8; a >= 5; )
@@ -589,91 +605,87 @@ function q(e, t, n) {
589
605
  u += "=";
590
606
  return u;
591
607
  }
592
- const z = 15, H = 24, Q = f.string().length(H).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
593
- function we() {
594
- const e = new Uint8Array(z);
595
- return crypto.getRandomValues(e), Q.parse(q(e, "RFC4648"));
608
+ const z = 15, q = 24, G = f.string().length(q).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
609
+ function wt() {
610
+ const t = new Uint8Array(z);
611
+ return crypto.getRandomValues(t), G.parse(_(t, "RFC4648"));
596
612
  }
597
- function ve(e) {
598
- return p(e);
613
+ function vt(t) {
614
+ return p(t);
599
615
  }
600
- function xe(e) {
601
- return JSON.parse(e);
616
+ function xt(t) {
617
+ return JSON.parse(t);
602
618
  }
603
- function G(e) {
604
- return e instanceof Error ? e.name === "AbortError" || G(e.cause) : !1;
619
+ function H(t) {
620
+ return t instanceof Error ? t.name === "AbortError" || H(t.cause) : !1;
605
621
  }
606
- function Y(e) {
607
- if (typeof e == "string")
608
- return `String value was thrown: ${e}`;
609
- if (e && typeof e == "object")
622
+ function Q(t) {
623
+ if (typeof t == "string")
624
+ return `String value was thrown: ${t}`;
625
+ if (t && typeof t == "object")
610
626
  try {
611
- return `Plain object was thrown: ${JSON.stringify(e)}`;
612
- } catch (t) {
613
- return `Non-serializable object was thrown (JSON.stringify failed: ${t instanceof Error ? t.message : String(t)}): ${String(e)}`;
627
+ return `Plain object was thrown: ${JSON.stringify(t)}`;
628
+ } catch (e) {
629
+ return `Non-serializable object was thrown (JSON.stringify failed: ${e instanceof Error ? e.message : String(e)}): ${String(t)}`;
614
630
  }
615
- return `Non-Error value (${typeof e}) was thrown: ${e}`;
631
+ return `Non-Error value (${typeof t}) was thrown: ${t}`;
616
632
  }
617
- function Ae(e) {
618
- return e instanceof Error ? e : new Error(Y(e));
633
+ function At(t) {
634
+ return t instanceof Error ? t : new Error(Q(t));
619
635
  }
620
- function P(e) {
621
- const t = e.cause ? P(e.cause) : void 0, n = new Error(e.message, t !== void 0 ? { cause: t } : void 0);
622
- return n.name = e.name || "Error", n.stack = e.stack, n;
636
+ function k(t) {
637
+ const e = t.cause ? k(t.cause) : void 0, n = new Error(t.message, e !== void 0 ? { cause: e } : void 0);
638
+ return n.name = t.name || "Error", n.stack = t.stack, n;
623
639
  }
624
- function Pe(e) {
625
- if (e.error)
626
- throw e.error instanceof Error ? e.error : P(e.error);
627
- return e.value;
640
+ function Pt(t) {
641
+ if (t.error)
642
+ throw t.error instanceof Error ? t.error : k(t.error);
643
+ return t.value;
628
644
  }
629
645
  export {
630
- ue as AnchoredIdDeriver,
631
- C as PTableAbsent,
632
- $ as PTableNA,
633
- J as PValueBytesNA,
634
- N as PValueIntNA,
635
- b as PValueLongNA,
636
- I as PValueStringNA,
637
- Q as PlId,
646
+ ut as AnchoredIdDeriver,
647
+ N as PTableAbsent,
648
+ P as PTableNA,
649
+ G as PlId,
638
650
  z as PlIdBytes,
639
- H as PlIdLength,
640
- ie as canonicalizeAxisId,
641
- ve as canonicalizeJson,
642
- ne as dataInfoToEntries,
643
- ye as deriveNativeId,
644
- P as deserializeError,
645
- Ae as ensureError,
646
- de as ensurePColumn,
647
- re as entriesToDataInfo,
648
- pe as extractAllColumns,
649
- L as getAxesId,
651
+ q as PlIdLength,
652
+ it as canonicalizeAxisId,
653
+ vt as canonicalizeJson,
654
+ et as dataInfoToEntries,
655
+ yt as deriveNativeId,
656
+ k as deserializeError,
657
+ At as ensureError,
658
+ dt as ensurePColumn,
659
+ nt as entriesToDataInfo,
660
+ pt as extractAllColumns,
661
+ $ as getAxesId,
650
662
  l as getAxisId,
651
- ce as getPTableColumnId,
652
- G as hasAbortError,
653
- Z as isDataInfo,
654
- S as isDataInfoEntries,
663
+ ct as getPTableColumnId,
664
+ H as hasAbortError,
665
+ Y as isDataInfo,
666
+ I as isDataInfoEntries,
655
667
  K as isPColumn,
656
668
  h as isPColumnSpec,
657
- oe as isPTableAbsent,
658
- te as isPartitionedDataInfoEntries,
659
- he as isPlRef,
660
- j as isValueAbsent,
661
- O as isValueNA,
662
- ee as mapDataInfo,
669
+ rt as isPTableAbsent,
670
+ j as isPTableNA,
671
+ ot as isPTableValueAxis,
672
+ tt as isPartitionedDataInfoEntries,
673
+ ht as isPlRef,
674
+ Z as mapDataInfo,
663
675
  y as mapJoinEntry,
664
- le as mapPObjectData,
665
- se as mapPTableDef,
666
- ge as mapValueInVOE,
667
- v as matchAxis,
668
- B as matchAxisId,
669
- x as matchPColumn,
670
- ae as pTableValue,
671
- xe as parseJson,
672
- fe as resolveAnchors,
673
- me as selectorsToPredicate,
674
- D as stringifyColumnId,
675
- we as uniquePlId,
676
- Pe as unwrapResult,
677
- be as withEnrichments
676
+ lt as mapPObjectData,
677
+ st as mapPTableDef,
678
+ gt as mapValueInVOE,
679
+ w as matchAxis,
680
+ L as matchAxisId,
681
+ v as matchPColumn,
682
+ at as pTableValue,
683
+ xt as parseJson,
684
+ ft as resolveAnchors,
685
+ mt as selectorsToPredicate,
686
+ B as stringifyColumnId,
687
+ wt as uniquePlId,
688
+ Pt as unwrapResult,
689
+ bt as withEnrichments
678
690
  };
679
691
  //# sourceMappingURL=index.js.map