@platforma-sdk/ui-vue 1.42.14 → 1.42.18

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 (56) hide show
  1. package/.turbo/turbo-build.log +25 -24
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +16 -0
  4. package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue2.js +5 -5
  5. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +21 -21
  6. package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts.map +1 -1
  7. package/dist/components/PlAgDataTable/sources/table-source-v2.js +122 -123
  8. package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
  9. package/dist/components/PlAgDataTable/sources/table-state-v2.js +9 -9
  10. package/dist/components/PlAgDataTable/sources/value-rendering.d.ts.map +1 -1
  11. package/dist/components/PlAgDataTable/sources/value-rendering.js +24 -25
  12. package/dist/components/PlAgDataTable/sources/value-rendering.js.map +1 -1
  13. package/dist/components/PlAnnotations/components/DynamicForm.vue2.js +12 -12
  14. package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js +2 -2
  15. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.d.ts.map +1 -1
  16. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js +21 -20
  17. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js.map +1 -1
  18. package/dist/components/PlMultiSequenceAlignment/data.d.ts.map +1 -1
  19. package/dist/components/PlMultiSequenceAlignment/data.js +169 -184
  20. package/dist/components/PlMultiSequenceAlignment/data.js.map +1 -1
  21. package/dist/components/PlTableFilters/filters-state.js +8 -8
  22. package/dist/components/PlTableFilters/filters_logic.d.ts.map +1 -1
  23. package/dist/components/PlTableFilters/filters_logic.js +67 -77
  24. package/dist/components/PlTableFilters/filters_logic.js.map +1 -1
  25. package/dist/defineApp.js +20 -20
  26. package/dist/internal/UpdateSerializer.js +3 -3
  27. package/dist/lib/model/common/dist/index.js +576 -444
  28. package/dist/lib/model/common/dist/index.js.map +1 -1
  29. package/dist/lib/ui/uikit/dist/components/DataTable/TableComponent.vue.js +1 -1
  30. package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
  31. package/dist/lib/ui/uikit/dist/components/PlFileDialog/Local.vue.js +6 -6
  32. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +17 -17
  33. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
  34. package/dist/lib/ui/uikit/dist/components/PlLogView/PlLogView.vue.js +89 -63
  35. package/dist/lib/ui/uikit/dist/components/PlLogView/PlLogView.vue.js.map +1 -1
  36. package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlPureSlideModal.vue.js +1 -1
  37. package/dist/lib/ui/uikit/dist/helpers/dom.js.map +1 -1
  38. package/dist/lib/ui/uikit/dist/helpers/downloadContent.js +32 -0
  39. package/dist/lib/ui/uikit/dist/helpers/downloadContent.js.map +1 -0
  40. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +257 -192
  41. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js.map +1 -1
  42. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +473 -457
  43. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js.map +1 -1
  44. package/dist/lib.js +52 -50
  45. package/dist/lib.js.map +1 -1
  46. package/dist/sdk/model/dist/index.js +542 -526
  47. package/dist/sdk/model/dist/index.js.map +1 -1
  48. package/package.json +3 -3
  49. package/src/components/PlAgDataTable/sources/table-source-v2.ts +20 -16
  50. package/src/components/PlAgDataTable/sources/value-rendering.ts +15 -7
  51. package/src/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue +1 -0
  52. package/src/components/PlMultiSequenceAlignment/data.ts +12 -12
  53. package/src/components/PlTableFilters/filters_logic.ts +18 -15
  54. package/.turbo/turbo-test.log +0 -565
  55. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js +0 -27
  56. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +0 -1
@@ -1,39 +1,39 @@
1
- import u from "../../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
2
- import y from "../../../../_virtual/canonicalize.js";
1
+ import i from "../../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
2
+ import g from "../../../../_virtual/canonicalize.js";
3
3
  var A = Object.defineProperty, O = (n, e, t) => e in n ? A(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, m = (n, e, t) => O(n, typeof e != "symbol" ? e + "" : e, t);
4
- u.object({
4
+ i.object({
5
5
  /** Included left border. */
6
- from: u.number(),
6
+ from: i.number(),
7
7
  /** Excluded right border. */
8
- to: u.number()
8
+ to: i.number()
9
9
  });
10
- function g(n) {
10
+ function l(n) {
11
11
  throw new Error("Unexpected object: " + n);
12
12
  }
13
- const P = "upload://upload/", k = "index://index/";
14
- function I(n) {
15
- return n.startsWith(P);
13
+ const w = "upload://upload/", k = "index://index/";
14
+ function S(n) {
15
+ return n.startsWith(w);
16
16
  }
17
- function J(n) {
17
+ function j(n) {
18
18
  return n.startsWith(k);
19
19
  }
20
- function S(n) {
21
- if (J(n)) {
20
+ function J(n) {
21
+ if (j(n)) {
22
22
  const e = n.slice(k.length);
23
23
  return JSON.parse(decodeURIComponent(e)).path;
24
- } else if (I(n)) {
25
- const e = n.slice(P.length);
24
+ } else if (S(n)) {
25
+ const e = n.slice(w.length);
26
26
  return JSON.parse(decodeURIComponent(e)).localPath;
27
27
  }
28
- g(n);
28
+ l(n);
29
29
  }
30
- function j(n) {
30
+ function E(n) {
31
31
  return n.replace(/^.*[\\/]/, "");
32
32
  }
33
- function M(n) {
34
- return j(S(n));
33
+ function H(n) {
34
+ return E(J(n));
35
35
  }
36
- function U(n) {
36
+ function V(n) {
37
37
  if (!n || typeof n != "object")
38
38
  return !1;
39
39
  const e = n;
@@ -43,14 +43,14 @@ function U(n) {
43
43
  case "Json":
44
44
  return typeof e.keyLength == "number" && e.data !== void 0 && typeof e.data == "object";
45
45
  case "JsonPartitioned":
46
- return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
47
46
  case "BinaryPartitioned":
47
+ case "ParquetPartitioned":
48
48
  return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
49
49
  default:
50
50
  return !1;
51
51
  }
52
52
  }
53
- function _(n, e) {
53
+ function W(n, e) {
54
54
  if (n !== void 0)
55
55
  switch (n.type) {
56
56
  case "Json":
@@ -76,9 +76,18 @@ function _(n, e) {
76
76
  parts: t
77
77
  };
78
78
  }
79
+ case "ParquetPartitioned": {
80
+ const t = {};
81
+ for (const [r, o] of Object.entries(n.parts))
82
+ t[r] = e(o);
83
+ return {
84
+ ...n,
85
+ parts: t
86
+ };
87
+ }
79
88
  }
80
89
  }
81
- function E(n) {
90
+ function I(n) {
82
91
  if (!n || typeof n != "object")
83
92
  return !1;
84
93
  const e = n;
@@ -88,102 +97,150 @@ function E(n) {
88
97
  case "Json":
89
98
  return typeof e.keyLength == "number" && Array.isArray(e.data);
90
99
  case "JsonPartitioned":
91
- return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
92
100
  case "BinaryPartitioned":
101
+ case "ParquetPartitioned":
93
102
  return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
94
103
  default:
95
104
  return !1;
96
105
  }
97
106
  }
98
- function H(n) {
99
- return E(n) ? n.type === "JsonPartitioned" || n.type === "BinaryPartitioned" : !1;
107
+ function z(n) {
108
+ if (!I(n)) return !1;
109
+ switch (n.type) {
110
+ case "JsonPartitioned":
111
+ case "BinaryPartitioned":
112
+ case "ParquetPartitioned":
113
+ return !0;
114
+ default:
115
+ return !1;
116
+ }
100
117
  }
101
- function q(n) {
118
+ function G(n) {
102
119
  switch (n.type) {
103
- case "Json": {
104
- const e = Object.entries(n.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
120
+ case "Json":
105
121
  return {
106
122
  type: "Json",
107
123
  keyLength: n.keyLength,
108
- data: e
124
+ data: Object.entries(n.data).map(([e, t]) => ({ key: JSON.parse(e), value: t }))
109
125
  };
110
- }
111
- case "JsonPartitioned": {
112
- const e = Object.entries(n.parts).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
126
+ case "JsonPartitioned":
113
127
  return {
114
128
  type: "JsonPartitioned",
115
129
  partitionKeyLength: n.partitionKeyLength,
116
- parts: e
130
+ parts: Object.entries(n.parts).map(([e, t]) => ({ key: JSON.parse(e), value: t }))
117
131
  };
118
- }
119
- case "BinaryPartitioned": {
120
- const e = Object.entries(n.parts).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
132
+ case "BinaryPartitioned":
121
133
  return {
122
134
  type: "BinaryPartitioned",
123
135
  partitionKeyLength: n.partitionKeyLength,
124
- parts: e
136
+ parts: Object.entries(n.parts).map(([e, t]) => ({ key: JSON.parse(e), value: t }))
125
137
  };
126
- }
138
+ case "ParquetPartitioned":
139
+ return {
140
+ type: "ParquetPartitioned",
141
+ partitionKeyLength: n.partitionKeyLength,
142
+ parts: Object.entries(n.parts).map(([e, t]) => ({ key: JSON.parse(e), value: t }))
143
+ };
144
+ default:
145
+ l(n);
127
146
  }
128
147
  }
129
- function V(n) {
148
+ function Q(n) {
130
149
  switch (n.type) {
131
- case "Json": {
132
- const e = {};
133
- for (const t of n.data)
134
- e[JSON.stringify(t.key)] = t.value;
150
+ case "Json":
135
151
  return {
136
152
  type: "Json",
137
153
  keyLength: n.keyLength,
138
- data: e
154
+ data: Object.fromEntries(
155
+ n.data.map(({ key: e, value: t }) => [JSON.stringify(e), t])
156
+ )
139
157
  };
140
- }
141
- case "JsonPartitioned": {
142
- const e = {};
143
- for (const t of n.parts)
144
- e[JSON.stringify(t.key)] = t.value;
158
+ case "JsonPartitioned":
145
159
  return {
146
160
  type: "JsonPartitioned",
147
161
  partitionKeyLength: n.partitionKeyLength,
148
- parts: e
162
+ parts: Object.fromEntries(
163
+ n.parts.map(({ key: e, value: t }) => [JSON.stringify(e), t])
164
+ )
149
165
  };
150
- }
151
- case "BinaryPartitioned": {
152
- const e = {};
153
- for (const t of n.parts)
154
- e[JSON.stringify(t.key)] = t.value;
166
+ case "BinaryPartitioned":
155
167
  return {
156
168
  type: "BinaryPartitioned",
157
169
  partitionKeyLength: n.partitionKeyLength,
158
- parts: e
170
+ parts: Object.fromEntries(
171
+ n.parts.map(({ key: e, value: t }) => [JSON.stringify(e), t])
172
+ )
159
173
  };
160
- }
174
+ case "ParquetPartitioned":
175
+ return {
176
+ type: "ParquetPartitioned",
177
+ partitionKeyLength: n.partitionKeyLength,
178
+ parts: Object.fromEntries(
179
+ n.parts.map(({ key: e, value: t }) => [JSON.stringify(e), t])
180
+ )
181
+ };
182
+ default:
183
+ l(n);
161
184
  }
162
185
  }
186
+ function L(n) {
187
+ return g(n);
188
+ }
189
+ function X(n) {
190
+ return JSON.parse(n);
191
+ }
192
+ const C = {
193
+ Int: "Int",
194
+ Long: "Long",
195
+ Float: "Float",
196
+ Double: "Double",
197
+ String: "String",
198
+ Bytes: "Bytes"
199
+ };
200
+ function N(n, e) {
201
+ return n == null ? void 0 : n[e];
202
+ }
203
+ const Y = {
204
+ Label: "pl7.app/label",
205
+ Trace: "pl7.app/trace"
206
+ }, $ = i.object({
207
+ type: i.nativeEnum(C),
208
+ name: i.string(),
209
+ domain: i.record(i.string(), i.string()).optional(),
210
+ annotations: i.record(i.string(), i.string()).optional(),
211
+ parentAxes: i.array(i.number()).optional()
212
+ }).passthrough();
213
+ i.array(i.string()).or(i.array(i.number())), i.boolean(), i.boolean(), i.boolean(), i.number(), i.number(), i.array($), i.record(i.string(), i.string()), i.boolean(), i.number(), i.record(i.string(), i.unknown());
214
+ function Z(n, e) {
215
+ return N(n == null ? void 0 : n.annotations, e);
216
+ }
217
+ const nn = {
218
+ Label: "pl7.app/label"
219
+ };
163
220
  function d(n) {
164
221
  const { type: e, name: t, domain: r } = n, o = { type: e, name: t };
165
222
  return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
166
223
  }
167
- function L(n) {
224
+ function K(n) {
168
225
  return n.map(d);
169
226
  }
170
- function W(n) {
171
- return y(d(n));
227
+ function en(n) {
228
+ return L(d(n));
172
229
  }
173
- function C(n, e) {
230
+ function D(n, e) {
174
231
  if (n === void 0) return e === void 0;
175
232
  if (e === void 0) return !0;
176
233
  for (const t in e)
177
234
  if (n[t] !== e[t]) return !1;
178
235
  return !0;
179
236
  }
180
- function $(n, e) {
181
- return n.name === e.name && C(n.domain, e.domain);
237
+ function T(n, e) {
238
+ return n.name === e.name && D(n.domain, e.domain);
182
239
  }
183
- function z(n, e) {
184
- return { ...n, src: p(n.src, e) };
240
+ function tn(n, e) {
241
+ return { ...n, src: h(n.src, e) };
185
242
  }
186
- function p(n, e) {
243
+ function h(n, e) {
187
244
  switch (n.type) {
188
245
  case "column":
189
246
  return {
@@ -203,28 +260,28 @@ function p(n, e) {
203
260
  case "full":
204
261
  return {
205
262
  type: n.type,
206
- entries: n.entries.map((t) => p(t, e))
263
+ entries: n.entries.map((t) => h(t, e))
207
264
  };
208
265
  case "outer":
209
266
  return {
210
267
  type: "outer",
211
- primary: p(n.primary, e),
212
- secondary: n.secondary.map((t) => p(t, e))
268
+ primary: h(n.primary, e),
269
+ secondary: n.secondary.map((t) => h(t, e))
213
270
  };
214
271
  default:
215
- g(n);
272
+ l(n);
216
273
  }
217
274
  }
218
- function N(n) {
219
- return y(n);
275
+ function q(n) {
276
+ return g(n);
220
277
  }
221
- function x(n) {
222
- return y(d(n));
278
+ function b(n) {
279
+ return g(d(n));
223
280
  }
224
- function b(n, e) {
281
+ function x(n, e) {
225
282
  return JSON.stringify([n, e]);
226
283
  }
227
- class G {
284
+ class rn {
228
285
  /**
229
286
  * Creates a new anchor context from a set of anchor column specifications
230
287
  * @param anchors Record of anchor column specifications indexed by anchor ID
@@ -234,16 +291,16 @@ class G {
234
291
  const t = Object.entries(e);
235
292
  t.sort((r, o) => r[0].localeCompare(o[0]));
236
293
  for (const [r, o] of t) {
237
- for (let i = 0; i < o.axesSpec.length; i++) {
238
- const a = o.axesSpec[i], s = x(a);
239
- this.axes.set(s, { anchor: r, idx: i });
294
+ for (let a = 0; a < o.axesSpec.length; a++) {
295
+ const s = o.axesSpec[a], c = b(s);
296
+ this.axes.set(c, { anchor: r, idx: a });
240
297
  }
241
298
  if (o.domain !== void 0) {
242
- const i = Object.entries(o.domain);
243
- i.sort((a, s) => a[0].localeCompare(s[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
244
- for (const [a, s] of i) {
245
- const c = b(a, s);
246
- this.domains.set(c, r);
299
+ const a = Object.entries(o.domain);
300
+ a.sort((s, c) => s[0].localeCompare(c[0])), this.domainPackToAnchor.set(JSON.stringify(a), r), this.domainPacks.push(a.map(([s]) => s));
301
+ for (const [s, c] of a) {
302
+ const u = x(s, c);
303
+ this.domains.set(u, r);
247
304
  }
248
305
  }
249
306
  }
@@ -259,49 +316,49 @@ class G {
259
316
  let o;
260
317
  if (e.domain !== void 0)
261
318
  n:
262
- for (const a of this.domainPacks) {
263
- const s = [];
264
- for (const f of a) {
265
- const l = e.domain[f];
266
- if (l !== void 0)
267
- s.push([f, l]);
319
+ for (const s of this.domainPacks) {
320
+ const c = [];
321
+ for (const f of s) {
322
+ const p = e.domain[f];
323
+ if (p !== void 0)
324
+ c.push([f, p]);
268
325
  else
269
326
  break n;
270
327
  }
271
- const c = this.domainPackToAnchor.get(JSON.stringify(s));
272
- if (c !== void 0) {
273
- r.domainAnchor = c, o = new Set(a);
328
+ const u = this.domainPackToAnchor.get(JSON.stringify(c));
329
+ if (u !== void 0) {
330
+ r.domainAnchor = u, o = new Set(s);
274
331
  break;
275
332
  }
276
333
  }
277
- for (const [a, s] of Object.entries(e.domain ?? {})) {
278
- if (o !== void 0 && o.has(a))
334
+ for (const [s, c] of Object.entries(e.domain ?? {})) {
335
+ if (o !== void 0 && o.has(s))
279
336
  continue;
280
- const c = b(a, s), f = this.domains.get(c);
281
- r.domain ?? (r.domain = {}), r.domain[a] = f ? { anchor: f } : s;
337
+ const u = x(s, c), f = this.domains.get(u);
338
+ r.domain ?? (r.domain = {}), r.domain[s] = f ? { anchor: f } : c;
282
339
  }
283
- if (r.axes = e.axesSpec.map((a) => {
284
- const s = x(a), c = this.axes.get(s);
285
- return c === void 0 ? d(a) : c;
340
+ if (r.axes = e.axesSpec.map((s) => {
341
+ const c = b(s), u = this.axes.get(c);
342
+ return u === void 0 ? d(s) : u;
286
343
  }), !t || t.length === 0)
287
344
  return r;
288
- const i = [];
289
- for (const a of t) {
290
- const [s, c] = a;
291
- if (typeof s == "number") {
292
- if (s < 0 || s >= e.axesSpec.length)
293
- throw new Error(`Axis index ${s} is out of bounds (0-${e.axesSpec.length - 1})`);
294
- i.push([s, c]);
345
+ const a = [];
346
+ for (const s of t) {
347
+ const [c, u] = s;
348
+ if (typeof c == "number") {
349
+ if (c < 0 || c >= e.axesSpec.length)
350
+ throw new Error(`Axis index ${c} is out of bounds (0-${e.axesSpec.length - 1})`);
351
+ a.push([c, u]);
295
352
  } else {
296
- const f = e.axesSpec.findIndex((l) => l.name === s);
353
+ const f = e.axesSpec.findIndex((p) => p.name === c);
297
354
  if (f === -1)
298
- throw new Error(`Axis with name "${s}" not found in the column specification`);
299
- i.push([f, c]);
355
+ throw new Error(`Axis with name "${c}" not found in the column specification`);
356
+ a.push([f, u]);
300
357
  }
301
358
  }
302
- return i.sort((a, s) => a[0] - s[0]), {
359
+ return a.sort((s, c) => s[0] - c[0]), {
303
360
  source: r,
304
- axisFilters: i
361
+ axisFilters: a
305
362
  };
306
363
  }
307
364
  /**
@@ -311,40 +368,40 @@ class G {
311
368
  * @returns A canonicalized string representation of the anchored column identifier
312
369
  */
313
370
  deriveS(e, t) {
314
- return N(this.derive(e, t));
371
+ return q(this.derive(e, t));
315
372
  }
316
373
  }
317
- function Q(n, e, t) {
374
+ function on(n, e, t) {
318
375
  const r = { ...e }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? !1;
319
376
  if (r.domainAnchor !== void 0) {
320
- const i = n[r.domainAnchor];
321
- if (!i)
377
+ const a = n[r.domainAnchor];
378
+ if (!a)
322
379
  throw new Error(`Anchor "${r.domainAnchor}" not found`);
323
- const a = i.domain || {};
324
- r.domain = { ...a, ...r.domain }, delete r.domainAnchor;
380
+ const s = a.domain || {};
381
+ r.domain = { ...s, ...r.domain }, delete r.domainAnchor;
325
382
  }
326
383
  if (r.domain) {
327
- const i = {};
328
- for (const [a, s] of Object.entries(r.domain))
329
- if (typeof s == "string")
330
- i[a] = s;
384
+ const a = {};
385
+ for (const [s, c] of Object.entries(r.domain))
386
+ if (typeof c == "string")
387
+ a[s] = c;
331
388
  else {
332
- const c = n[s.anchor];
333
- if (!c)
334
- throw new Error(`Anchor "${s.anchor}" not found for domain key "${a}"`);
335
- if (!c.domain || c.domain[a] === void 0) {
389
+ const u = n[c.anchor];
390
+ if (!u)
391
+ throw new Error(`Anchor "${c.anchor}" not found for domain key "${s}"`);
392
+ if (!u.domain || u.domain[s] === void 0) {
336
393
  if (!o)
337
- throw new Error(`Domain key "${a}" not found in anchor "${s.anchor}"`);
394
+ throw new Error(`Domain key "${s}" not found in anchor "${c.anchor}"`);
338
395
  continue;
339
396
  }
340
- i[a] = c.domain[a];
397
+ a[s] = u.domain[s];
341
398
  }
342
- r.domain = i;
399
+ r.domain = a;
343
400
  }
344
- return r.axes && (r.axes = r.axes.map((i) => K(n, i))), r;
401
+ return r.axes && (r.axes = r.axes.map((a) => F(n, a))), r;
345
402
  }
346
- function K(n, e) {
347
- if (!D(e))
403
+ function F(n, e) {
404
+ if (!B(e))
348
405
  return e;
349
406
  const t = e.anchor, r = n[t];
350
407
  if (!r)
@@ -354,14 +411,14 @@ function K(n, e) {
354
411
  throw new Error(`Axis index ${e.idx} out of bounds for anchor "${t}"`);
355
412
  return r.axesSpec[e.idx];
356
413
  } else if ("name" in e) {
357
- const o = r.axesSpec.filter((i) => i.name === e.name);
414
+ const o = r.axesSpec.filter((a) => a.name === e.name);
358
415
  if (o.length > 1)
359
416
  throw new Error(`Multiple axes with name "${e.name}" found in anchor "${t}"`);
360
417
  if (o.length === 0)
361
418
  throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
362
419
  return o[0];
363
420
  } else if ("id" in e) {
364
- const o = r.axesSpec.filter((i) => $(e.id, d(i)));
421
+ const o = r.axesSpec.filter((a) => T(e.id, d(a)));
365
422
  if (o.length > 1)
366
423
  throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
367
424
  if (o.length === 0)
@@ -370,26 +427,26 @@ function K(n, e) {
370
427
  }
371
428
  throw new Error("Unsupported axis reference type");
372
429
  }
373
- function D(n) {
430
+ function B(n) {
374
431
  return typeof n == "object" && "anchor" in n;
375
432
  }
376
- function h(n) {
433
+ function y(n) {
377
434
  return n.kind === "PColumn";
378
435
  }
379
- function T(n) {
380
- return h(n.spec);
436
+ function M(n) {
437
+ return y(n.spec);
381
438
  }
382
- function X(n) {
383
- if (!T(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
439
+ function an(n) {
440
+ if (!M(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
384
441
  return n;
385
442
  }
386
- function Y(n, e) {
443
+ function sn(n, e) {
387
444
  return n === void 0 ? void 0 : {
388
445
  ...n,
389
446
  data: e(n.data)
390
447
  };
391
448
  }
392
- function Z(n) {
449
+ function cn(n) {
393
450
  const e = /* @__PURE__ */ new Map(), t = (r) => {
394
451
  switch (r.type) {
395
452
  case "column":
@@ -409,12 +466,12 @@ function Z(n) {
409
466
  for (const o of r.secondary) t(o);
410
467
  return;
411
468
  default:
412
- g(r);
469
+ l(r);
413
470
  }
414
471
  };
415
472
  return t(n), [...e.values()];
416
473
  }
417
- function v(n, e) {
474
+ function P(n, e) {
418
475
  if (n.name !== void 0 && n.name !== e.name)
419
476
  return !1;
420
477
  if (n.type !== void 0) {
@@ -432,7 +489,7 @@ function v(n, e) {
432
489
  }
433
490
  return !0;
434
491
  }
435
- function w(n, e) {
492
+ function v(n, e) {
436
493
  if (e.name !== void 0 && n.name !== e.name || e.namePattern !== void 0 && !new RegExp(e.namePattern).test(n.name))
437
494
  return !1;
438
495
  if (e.type !== void 0) {
@@ -452,13 +509,13 @@ function w(n, e) {
452
509
  const t = n.axesSpec.map(d);
453
510
  if (e.partialAxesMatch) {
454
511
  for (const r of e.axes)
455
- if (!t.some((o) => v(r, o)))
512
+ if (!t.some((o) => P(r, o)))
456
513
  return !1;
457
514
  } else {
458
515
  if (t.length !== e.axes.length)
459
516
  return !1;
460
517
  for (let r = 0; r < e.axes.length; r++)
461
- if (!v(e.axes[r], t[r]))
518
+ if (!P(e.axes[r], t[r]))
462
519
  return !1;
463
520
  }
464
521
  }
@@ -471,35 +528,35 @@ function w(n, e) {
471
528
  if (e.annotationPatterns !== void 0) {
472
529
  const t = n.annotations || {};
473
530
  for (const [r, o] of Object.entries(e.annotationPatterns)) {
474
- const i = t[r];
475
- if (i === void 0 || !new RegExp(o).test(i))
531
+ const a = t[r];
532
+ if (a === void 0 || !new RegExp(o).test(a))
476
533
  return !1;
477
534
  }
478
535
  }
479
536
  return !0;
480
537
  }
481
- function nn(n) {
482
- return Array.isArray(n) ? (e) => n.some((t) => h(e) && w(e, t)) : (e) => h(e) && w(e, n);
538
+ function un(n) {
539
+ return Array.isArray(n) ? (e) => n.some((t) => y(e) && v(e, t)) : (e) => y(e) && v(e, n);
483
540
  }
484
- function en(n) {
541
+ function fn(n) {
485
542
  const e = {
486
543
  kind: n.kind,
487
544
  name: n.name
488
545
  };
489
- return n.domain !== void 0 && (e.domain = n.domain), h(n) && (e.axesSpec = L(n.axesSpec)), y(e);
546
+ return n.domain !== void 0 && (e.domain = n.domain), y(n) && (e.axesSpec = K(n.axesSpec)), g(e);
490
547
  }
491
- u.object({
492
- __isRef: u.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
493
- blockId: u.string().describe("Upstream block id"),
494
- name: u.string().describe("Name of the output provided to the upstream block's output context"),
495
- requireEnrichments: u.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")
548
+ i.object({
549
+ __isRef: i.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
550
+ blockId: i.string().describe("Upstream block id"),
551
+ name: i.string().describe("Name of the output provided to the upstream block's output context"),
552
+ requireEnrichments: i.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")
496
553
  }).describe(
497
554
  "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."
498
555
  ).readonly();
499
- function tn(n) {
556
+ function dn(n) {
500
557
  return typeof n == "object" && n !== null && "__isRef" in n && n.__isRef === !0 && "blockId" in n && "name" in n;
501
558
  }
502
- function rn(n, e = !0) {
559
+ function ln(n, e = !0) {
503
560
  if (e)
504
561
  return {
505
562
  ...n,
@@ -510,43 +567,51 @@ function rn(n, e = !0) {
510
567
  return r;
511
568
  }
512
569
  }
513
- function on(n, e) {
570
+ function pn(n, e) {
514
571
  return n.ok ? { ok: !0, value: e(n.value) } : n;
515
572
  }
516
573
  const R = 24;
517
- u.string().length(R).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
574
+ i.string().length(R).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
518
575
  export {
519
- G as AnchoredIdDeriver,
576
+ rn as AnchoredIdDeriver,
577
+ Y as Annotation,
578
+ $ as AxisSpec,
579
+ nn as PColumnName,
520
580
  R as PlIdLength,
521
- W as canonicalizeAxisId,
522
- q as dataInfoToEntries,
523
- en as deriveNativeId,
524
- X as ensurePColumn,
525
- V as entriesToDataInfo,
526
- Z as extractAllColumns,
527
- L as getAxesId,
581
+ C as ValueType,
582
+ en as canonicalizeAxisId,
583
+ L as canonicalizeJson,
584
+ G as dataInfoToEntries,
585
+ fn as deriveNativeId,
586
+ an as ensurePColumn,
587
+ Q as entriesToDataInfo,
588
+ cn as extractAllColumns,
589
+ K as getAxesId,
528
590
  d as getAxisId,
529
- M as getFileNameFromHandle,
530
- S as getFilePathFromHandle,
531
- U as isDataInfo,
532
- E as isDataInfoEntries,
533
- J as isImportFileHandleIndex,
534
- I as isImportFileHandleUpload,
535
- T as isPColumn,
536
- h as isPColumnSpec,
537
- H as isPartitionedDataInfoEntries,
538
- tn as isPlRef,
539
- _ as mapDataInfo,
540
- p as mapJoinEntry,
541
- Y as mapPObjectData,
542
- z as mapPTableDef,
543
- on as mapValueInVOE,
544
- v as matchAxis,
545
- $ as matchAxisId,
546
- w as matchPColumn,
547
- Q as resolveAnchors,
548
- nn as selectorsToPredicate,
549
- N as stringifyColumnId,
550
- rn as withEnrichments
591
+ H as getFileNameFromHandle,
592
+ J as getFilePathFromHandle,
593
+ V as isDataInfo,
594
+ I as isDataInfoEntries,
595
+ j as isImportFileHandleIndex,
596
+ S as isImportFileHandleUpload,
597
+ M as isPColumn,
598
+ y as isPColumnSpec,
599
+ z as isPartitionedDataInfoEntries,
600
+ dn as isPlRef,
601
+ W as mapDataInfo,
602
+ h as mapJoinEntry,
603
+ sn as mapPObjectData,
604
+ tn as mapPTableDef,
605
+ pn as mapValueInVOE,
606
+ P as matchAxis,
607
+ T as matchAxisId,
608
+ v as matchPColumn,
609
+ X as parseJson,
610
+ Z as readAnnotation,
611
+ N as readMetadata,
612
+ on as resolveAnchors,
613
+ un as selectorsToPredicate,
614
+ q as stringifyColumnId,
615
+ ln as withEnrichments
551
616
  };
552
617
  //# sourceMappingURL=index.js.map