@platforma-sdk/ui-vue 1.42.15 → 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.
- package/.turbo/turbo-build.log +29 -28
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +8 -0
- package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue2.js +5 -5
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +21 -21
- package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-source-v2.js +124 -125
- package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-state-v2.js +3 -3
- package/dist/components/PlAgDataTable/sources/value-rendering.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/sources/value-rendering.js +24 -25
- package/dist/components/PlAgDataTable/sources/value-rendering.js.map +1 -1
- package/dist/components/PlAnnotations/components/DynamicForm.vue2.js +12 -12
- package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js +2 -2
- package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.d.ts.map +1 -1
- package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js +21 -20
- package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/data.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/data.js +170 -185
- package/dist/components/PlMultiSequenceAlignment/data.js.map +1 -1
- package/dist/components/PlTableFilters/filters-state.js +8 -8
- package/dist/components/PlTableFilters/filters_logic.d.ts.map +1 -1
- package/dist/components/PlTableFilters/filters_logic.js +67 -77
- package/dist/components/PlTableFilters/filters_logic.js.map +1 -1
- package/dist/defineApp.js +20 -20
- package/dist/internal/UpdateSerializer.js +3 -3
- package/dist/lib/model/common/dist/index.js +523 -414
- package/dist/lib/model/common/dist/index.js.map +1 -1
- package/dist/lib/ui/uikit/dist/components/DataTable/TableComponent.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlAccordion/{ExpandTransition.vue.js → ExpandTransition.vue2.js} +1 -1
- package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js.map +1 -0
- package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlAutocomplete/PlAutocomplete.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlDropdown/PlDropdown.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlFileDialog/Local.vue.js +6 -6
- package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +28 -28
- package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
- package/dist/lib/ui/uikit/dist/components/PlLogView/PlLogView.vue.js +89 -63
- package/dist/lib/ui/uikit/dist/components/PlLogView/PlLogView.vue.js.map +1 -1
- package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlPureSlideModal.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlTextArea/PlTextArea.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlTextField/PlTextField.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/generated/components/svg/images/{SvgRequired.vue.js → SvgRequired.vue2.js} +1 -1
- package/dist/lib/ui/uikit/dist/generated/components/svg/images/SvgRequired.vue2.js.map +1 -0
- package/dist/lib/ui/uikit/dist/helpers/dom.js.map +1 -1
- package/dist/lib/ui/uikit/dist/helpers/downloadContent.js +32 -0
- package/dist/lib/ui/uikit/dist/helpers/downloadContent.js.map +1 -0
- package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +201 -159
- package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js.map +1 -1
- package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +521 -517
- package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js.map +1 -1
- package/dist/lib.js +52 -50
- package/dist/lib.js.map +1 -1
- package/dist/sdk/model/dist/index.js +410 -406
- package/dist/sdk/model/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/PlAgDataTable/sources/table-source-v2.ts +20 -16
- package/src/components/PlAgDataTable/sources/value-rendering.ts +15 -7
- package/src/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue +1 -0
- package/src/components/PlMultiSequenceAlignment/data.ts +12 -12
- package/src/components/PlTableFilters/filters_logic.ts +18 -15
- package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +0 -1
- package/dist/lib/ui/uikit/dist/generated/components/svg/images/SvgRequired.vue.js.map +0 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "../../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
|
|
2
2
|
import g from "../../../../_virtual/canonicalize.js";
|
|
3
|
-
var
|
|
4
|
-
|
|
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
|
+
i.object({
|
|
5
5
|
/** Included left border. */
|
|
6
|
-
from:
|
|
6
|
+
from: i.number(),
|
|
7
7
|
/** Excluded right border. */
|
|
8
|
-
to:
|
|
8
|
+
to: i.number()
|
|
9
9
|
});
|
|
10
10
|
function l(n) {
|
|
11
11
|
throw new Error("Unexpected object: " + n);
|
|
12
12
|
}
|
|
13
13
|
const w = "upload://upload/", k = "index://index/";
|
|
14
|
-
function
|
|
14
|
+
function S(n) {
|
|
15
15
|
return n.startsWith(w);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function j(n) {
|
|
18
18
|
return n.startsWith(k);
|
|
19
19
|
}
|
|
20
20
|
function J(n) {
|
|
21
|
-
if (
|
|
21
|
+
if (j(n)) {
|
|
22
22
|
const e = n.slice(k.length);
|
|
23
23
|
return JSON.parse(decodeURIComponent(e)).path;
|
|
24
|
-
} else if (
|
|
24
|
+
} else if (S(n)) {
|
|
25
25
|
const e = n.slice(w.length);
|
|
26
26
|
return JSON.parse(decodeURIComponent(e)).localPath;
|
|
27
27
|
}
|
|
28
28
|
l(n);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function E(n) {
|
|
31
31
|
return n.replace(/^.*[\\/]/, "");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function H(n) {
|
|
34
|
+
return E(J(n));
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function V(n) {
|
|
37
37
|
if (!n || typeof n != "object")
|
|
38
38
|
return !1;
|
|
39
39
|
const e = n;
|
|
@@ -50,15 +50,15 @@ function M(n) {
|
|
|
50
50
|
return !1;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function W(n, e) {
|
|
54
54
|
if (n !== void 0)
|
|
55
55
|
switch (n.type) {
|
|
56
56
|
case "Json":
|
|
57
57
|
return n;
|
|
58
58
|
case "JsonPartitioned": {
|
|
59
59
|
const t = {};
|
|
60
|
-
for (const [r,
|
|
61
|
-
t[r] = e(
|
|
60
|
+
for (const [r, o] of Object.entries(n.parts))
|
|
61
|
+
t[r] = e(o);
|
|
62
62
|
return {
|
|
63
63
|
...n,
|
|
64
64
|
parts: t
|
|
@@ -66,10 +66,10 @@ function U(n, e) {
|
|
|
66
66
|
}
|
|
67
67
|
case "BinaryPartitioned": {
|
|
68
68
|
const t = {};
|
|
69
|
-
for (const [r,
|
|
69
|
+
for (const [r, o] of Object.entries(n.parts))
|
|
70
70
|
t[r] = {
|
|
71
|
-
index: e(
|
|
72
|
-
values: e(
|
|
71
|
+
index: e(o.index),
|
|
72
|
+
values: e(o.values)
|
|
73
73
|
};
|
|
74
74
|
return {
|
|
75
75
|
...n,
|
|
@@ -78,8 +78,8 @@ function U(n, e) {
|
|
|
78
78
|
}
|
|
79
79
|
case "ParquetPartitioned": {
|
|
80
80
|
const t = {};
|
|
81
|
-
for (const [r,
|
|
82
|
-
t[r] = e(
|
|
81
|
+
for (const [r, o] of Object.entries(n.parts))
|
|
82
|
+
t[r] = e(o);
|
|
83
83
|
return {
|
|
84
84
|
...n,
|
|
85
85
|
parts: t
|
|
@@ -104,7 +104,7 @@ function I(n) {
|
|
|
104
104
|
return !1;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function z(n) {
|
|
108
108
|
if (!I(n)) return !1;
|
|
109
109
|
switch (n.type) {
|
|
110
110
|
case "JsonPartitioned":
|
|
@@ -115,7 +115,7 @@ function _(n) {
|
|
|
115
115
|
return !1;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function G(n) {
|
|
119
119
|
switch (n.type) {
|
|
120
120
|
case "Json":
|
|
121
121
|
return {
|
|
@@ -145,7 +145,7 @@ function H(n) {
|
|
|
145
145
|
l(n);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Q(n) {
|
|
149
149
|
switch (n.type) {
|
|
150
150
|
case "Json":
|
|
151
151
|
return {
|
|
@@ -183,27 +183,61 @@ function V(n) {
|
|
|
183
183
|
l(n);
|
|
184
184
|
}
|
|
185
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
|
+
};
|
|
186
220
|
function d(n) {
|
|
187
|
-
const { type: e, name: t, domain: r } = n,
|
|
188
|
-
return r && Object.entries(r).length > 0 && Object.assign(
|
|
221
|
+
const { type: e, name: t, domain: r } = n, o = { type: e, name: t };
|
|
222
|
+
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
189
223
|
}
|
|
190
|
-
function
|
|
224
|
+
function K(n) {
|
|
191
225
|
return n.map(d);
|
|
192
226
|
}
|
|
193
|
-
function
|
|
194
|
-
return
|
|
227
|
+
function en(n) {
|
|
228
|
+
return L(d(n));
|
|
195
229
|
}
|
|
196
|
-
function
|
|
230
|
+
function D(n, e) {
|
|
197
231
|
if (n === void 0) return e === void 0;
|
|
198
232
|
if (e === void 0) return !0;
|
|
199
233
|
for (const t in e)
|
|
200
234
|
if (n[t] !== e[t]) return !1;
|
|
201
235
|
return !0;
|
|
202
236
|
}
|
|
203
|
-
function
|
|
204
|
-
return n.name === e.name &&
|
|
237
|
+
function T(n, e) {
|
|
238
|
+
return n.name === e.name && D(n.domain, e.domain);
|
|
205
239
|
}
|
|
206
|
-
function
|
|
240
|
+
function tn(n, e) {
|
|
207
241
|
return { ...n, src: h(n.src, e) };
|
|
208
242
|
}
|
|
209
243
|
function h(n, e) {
|
|
@@ -238,7 +272,7 @@ function h(n, e) {
|
|
|
238
272
|
l(n);
|
|
239
273
|
}
|
|
240
274
|
}
|
|
241
|
-
function
|
|
275
|
+
function q(n) {
|
|
242
276
|
return g(n);
|
|
243
277
|
}
|
|
244
278
|
function b(n) {
|
|
@@ -247,7 +281,7 @@ function b(n) {
|
|
|
247
281
|
function x(n, e) {
|
|
248
282
|
return JSON.stringify([n, e]);
|
|
249
283
|
}
|
|
250
|
-
class
|
|
284
|
+
class rn {
|
|
251
285
|
/**
|
|
252
286
|
* Creates a new anchor context from a set of anchor column specifications
|
|
253
287
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
@@ -255,18 +289,18 @@ class G {
|
|
|
255
289
|
constructor(e) {
|
|
256
290
|
m(this, "domains", /* @__PURE__ */ new Map()), m(this, "axes", /* @__PURE__ */ new Map()), m(this, "domainPacks", []), m(this, "domainPackToAnchor", /* @__PURE__ */ new Map()), this.anchors = e;
|
|
257
291
|
const t = Object.entries(e);
|
|
258
|
-
t.sort((r,
|
|
259
|
-
for (const [r,
|
|
260
|
-
for (let
|
|
261
|
-
const
|
|
262
|
-
this.axes.set(
|
|
292
|
+
t.sort((r, o) => r[0].localeCompare(o[0]));
|
|
293
|
+
for (const [r, o] of t) {
|
|
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 });
|
|
263
297
|
}
|
|
264
|
-
if (
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
for (const [
|
|
268
|
-
const
|
|
269
|
-
this.domains.set(
|
|
298
|
+
if (o.domain !== void 0) {
|
|
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);
|
|
270
304
|
}
|
|
271
305
|
}
|
|
272
306
|
}
|
|
@@ -279,52 +313,52 @@ class G {
|
|
|
279
313
|
name: e.name,
|
|
280
314
|
axes: []
|
|
281
315
|
};
|
|
282
|
-
let
|
|
316
|
+
let o;
|
|
283
317
|
if (e.domain !== void 0)
|
|
284
318
|
n:
|
|
285
|
-
for (const
|
|
286
|
-
const
|
|
287
|
-
for (const f of
|
|
319
|
+
for (const s of this.domainPacks) {
|
|
320
|
+
const c = [];
|
|
321
|
+
for (const f of s) {
|
|
288
322
|
const p = e.domain[f];
|
|
289
323
|
if (p !== void 0)
|
|
290
|
-
|
|
324
|
+
c.push([f, p]);
|
|
291
325
|
else
|
|
292
326
|
break n;
|
|
293
327
|
}
|
|
294
|
-
const
|
|
295
|
-
if (
|
|
296
|
-
r.domainAnchor =
|
|
328
|
+
const u = this.domainPackToAnchor.get(JSON.stringify(c));
|
|
329
|
+
if (u !== void 0) {
|
|
330
|
+
r.domainAnchor = u, o = new Set(s);
|
|
297
331
|
break;
|
|
298
332
|
}
|
|
299
333
|
}
|
|
300
|
-
for (const [
|
|
301
|
-
if (
|
|
334
|
+
for (const [s, c] of Object.entries(e.domain ?? {})) {
|
|
335
|
+
if (o !== void 0 && o.has(s))
|
|
302
336
|
continue;
|
|
303
|
-
const
|
|
304
|
-
r.domain ?? (r.domain = {}), r.domain[
|
|
337
|
+
const u = x(s, c), f = this.domains.get(u);
|
|
338
|
+
r.domain ?? (r.domain = {}), r.domain[s] = f ? { anchor: f } : c;
|
|
305
339
|
}
|
|
306
|
-
if (r.axes = e.axesSpec.map((
|
|
307
|
-
const
|
|
308
|
-
return
|
|
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;
|
|
309
343
|
}), !t || t.length === 0)
|
|
310
344
|
return r;
|
|
311
|
-
const
|
|
312
|
-
for (const
|
|
313
|
-
const [
|
|
314
|
-
if (typeof
|
|
315
|
-
if (
|
|
316
|
-
throw new Error(`Axis index ${
|
|
317
|
-
|
|
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]);
|
|
318
352
|
} else {
|
|
319
|
-
const f = e.axesSpec.findIndex((p) => p.name ===
|
|
353
|
+
const f = e.axesSpec.findIndex((p) => p.name === c);
|
|
320
354
|
if (f === -1)
|
|
321
|
-
throw new Error(`Axis with name "${
|
|
322
|
-
|
|
355
|
+
throw new Error(`Axis with name "${c}" not found in the column specification`);
|
|
356
|
+
a.push([f, u]);
|
|
323
357
|
}
|
|
324
358
|
}
|
|
325
|
-
return
|
|
359
|
+
return a.sort((s, c) => s[0] - c[0]), {
|
|
326
360
|
source: r,
|
|
327
|
-
axisFilters:
|
|
361
|
+
axisFilters: a
|
|
328
362
|
};
|
|
329
363
|
}
|
|
330
364
|
/**
|
|
@@ -334,40 +368,40 @@ class G {
|
|
|
334
368
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
335
369
|
*/
|
|
336
370
|
deriveS(e, t) {
|
|
337
|
-
return
|
|
371
|
+
return q(this.derive(e, t));
|
|
338
372
|
}
|
|
339
373
|
}
|
|
340
|
-
function
|
|
341
|
-
const r = { ...e },
|
|
374
|
+
function on(n, e, t) {
|
|
375
|
+
const r = { ...e }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? !1;
|
|
342
376
|
if (r.domainAnchor !== void 0) {
|
|
343
|
-
const
|
|
344
|
-
if (!
|
|
377
|
+
const a = n[r.domainAnchor];
|
|
378
|
+
if (!a)
|
|
345
379
|
throw new Error(`Anchor "${r.domainAnchor}" not found`);
|
|
346
|
-
const
|
|
347
|
-
r.domain = { ...
|
|
380
|
+
const s = a.domain || {};
|
|
381
|
+
r.domain = { ...s, ...r.domain }, delete r.domainAnchor;
|
|
348
382
|
}
|
|
349
383
|
if (r.domain) {
|
|
350
|
-
const
|
|
351
|
-
for (const [
|
|
352
|
-
if (typeof
|
|
353
|
-
|
|
384
|
+
const a = {};
|
|
385
|
+
for (const [s, c] of Object.entries(r.domain))
|
|
386
|
+
if (typeof c == "string")
|
|
387
|
+
a[s] = c;
|
|
354
388
|
else {
|
|
355
|
-
const
|
|
356
|
-
if (!
|
|
357
|
-
throw new Error(`Anchor "${
|
|
358
|
-
if (!
|
|
359
|
-
if (!
|
|
360
|
-
throw new Error(`Domain key "${
|
|
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) {
|
|
393
|
+
if (!o)
|
|
394
|
+
throw new Error(`Domain key "${s}" not found in anchor "${c.anchor}"`);
|
|
361
395
|
continue;
|
|
362
396
|
}
|
|
363
|
-
|
|
397
|
+
a[s] = u.domain[s];
|
|
364
398
|
}
|
|
365
|
-
r.domain =
|
|
399
|
+
r.domain = a;
|
|
366
400
|
}
|
|
367
|
-
return r.axes && (r.axes = r.axes.map((
|
|
401
|
+
return r.axes && (r.axes = r.axes.map((a) => F(n, a))), r;
|
|
368
402
|
}
|
|
369
|
-
function
|
|
370
|
-
if (!
|
|
403
|
+
function F(n, e) {
|
|
404
|
+
if (!B(e))
|
|
371
405
|
return e;
|
|
372
406
|
const t = e.anchor, r = n[t];
|
|
373
407
|
if (!r)
|
|
@@ -377,42 +411,42 @@ function K(n, e) {
|
|
|
377
411
|
throw new Error(`Axis index ${e.idx} out of bounds for anchor "${t}"`);
|
|
378
412
|
return r.axesSpec[e.idx];
|
|
379
413
|
} else if ("name" in e) {
|
|
380
|
-
const
|
|
381
|
-
if (
|
|
414
|
+
const o = r.axesSpec.filter((a) => a.name === e.name);
|
|
415
|
+
if (o.length > 1)
|
|
382
416
|
throw new Error(`Multiple axes with name "${e.name}" found in anchor "${t}"`);
|
|
383
|
-
if (
|
|
417
|
+
if (o.length === 0)
|
|
384
418
|
throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
|
|
385
|
-
return
|
|
419
|
+
return o[0];
|
|
386
420
|
} else if ("id" in e) {
|
|
387
|
-
const
|
|
388
|
-
if (
|
|
421
|
+
const o = r.axesSpec.filter((a) => T(e.id, d(a)));
|
|
422
|
+
if (o.length > 1)
|
|
389
423
|
throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
|
|
390
|
-
if (
|
|
424
|
+
if (o.length === 0)
|
|
391
425
|
throw new Error(`No matching axis found for matcher in anchor "${t}"`);
|
|
392
|
-
return
|
|
426
|
+
return o[0];
|
|
393
427
|
}
|
|
394
428
|
throw new Error("Unsupported axis reference type");
|
|
395
429
|
}
|
|
396
|
-
function
|
|
430
|
+
function B(n) {
|
|
397
431
|
return typeof n == "object" && "anchor" in n;
|
|
398
432
|
}
|
|
399
433
|
function y(n) {
|
|
400
434
|
return n.kind === "PColumn";
|
|
401
435
|
}
|
|
402
|
-
function
|
|
436
|
+
function M(n) {
|
|
403
437
|
return y(n.spec);
|
|
404
438
|
}
|
|
405
|
-
function
|
|
406
|
-
if (!
|
|
439
|
+
function an(n) {
|
|
440
|
+
if (!M(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
|
|
407
441
|
return n;
|
|
408
442
|
}
|
|
409
|
-
function
|
|
443
|
+
function sn(n, e) {
|
|
410
444
|
return n === void 0 ? void 0 : {
|
|
411
445
|
...n,
|
|
412
446
|
data: e(n.data)
|
|
413
447
|
};
|
|
414
448
|
}
|
|
415
|
-
function
|
|
449
|
+
function cn(n) {
|
|
416
450
|
const e = /* @__PURE__ */ new Map(), t = (r) => {
|
|
417
451
|
switch (r.type) {
|
|
418
452
|
case "column":
|
|
@@ -425,11 +459,11 @@ function Z(n) {
|
|
|
425
459
|
return;
|
|
426
460
|
case "full":
|
|
427
461
|
case "inner":
|
|
428
|
-
for (const
|
|
462
|
+
for (const o of r.entries) t(o);
|
|
429
463
|
return;
|
|
430
464
|
case "outer":
|
|
431
465
|
t(r.primary);
|
|
432
|
-
for (const
|
|
466
|
+
for (const o of r.secondary) t(o);
|
|
433
467
|
return;
|
|
434
468
|
default:
|
|
435
469
|
l(r);
|
|
@@ -449,8 +483,8 @@ function P(n, e) {
|
|
|
449
483
|
}
|
|
450
484
|
if (n.domain !== void 0) {
|
|
451
485
|
const t = e.domain || {};
|
|
452
|
-
for (const [r,
|
|
453
|
-
if (t[r] !==
|
|
486
|
+
for (const [r, o] of Object.entries(n.domain))
|
|
487
|
+
if (t[r] !== o)
|
|
454
488
|
return !1;
|
|
455
489
|
}
|
|
456
490
|
return !0;
|
|
@@ -467,15 +501,15 @@ function v(n, e) {
|
|
|
467
501
|
}
|
|
468
502
|
if (e.domain !== void 0) {
|
|
469
503
|
const t = n.domain || {};
|
|
470
|
-
for (const [r,
|
|
471
|
-
if (t[r] !==
|
|
504
|
+
for (const [r, o] of Object.entries(e.domain))
|
|
505
|
+
if (t[r] !== o)
|
|
472
506
|
return !1;
|
|
473
507
|
}
|
|
474
508
|
if (e.axes !== void 0) {
|
|
475
509
|
const t = n.axesSpec.map(d);
|
|
476
510
|
if (e.partialAxesMatch) {
|
|
477
511
|
for (const r of e.axes)
|
|
478
|
-
if (!t.some((
|
|
512
|
+
if (!t.some((o) => P(r, o)))
|
|
479
513
|
return !1;
|
|
480
514
|
} else {
|
|
481
515
|
if (t.length !== e.axes.length)
|
|
@@ -487,42 +521,42 @@ function v(n, e) {
|
|
|
487
521
|
}
|
|
488
522
|
if (e.annotations !== void 0) {
|
|
489
523
|
const t = n.annotations || {};
|
|
490
|
-
for (const [r,
|
|
491
|
-
if (t[r] !==
|
|
524
|
+
for (const [r, o] of Object.entries(e.annotations))
|
|
525
|
+
if (t[r] !== o)
|
|
492
526
|
return !1;
|
|
493
527
|
}
|
|
494
528
|
if (e.annotationPatterns !== void 0) {
|
|
495
529
|
const t = n.annotations || {};
|
|
496
|
-
for (const [r,
|
|
497
|
-
const
|
|
498
|
-
if (
|
|
530
|
+
for (const [r, o] of Object.entries(e.annotationPatterns)) {
|
|
531
|
+
const a = t[r];
|
|
532
|
+
if (a === void 0 || !new RegExp(o).test(a))
|
|
499
533
|
return !1;
|
|
500
534
|
}
|
|
501
535
|
}
|
|
502
536
|
return !0;
|
|
503
537
|
}
|
|
504
|
-
function
|
|
538
|
+
function un(n) {
|
|
505
539
|
return Array.isArray(n) ? (e) => n.some((t) => y(e) && v(e, t)) : (e) => y(e) && v(e, n);
|
|
506
540
|
}
|
|
507
|
-
function
|
|
541
|
+
function fn(n) {
|
|
508
542
|
const e = {
|
|
509
543
|
kind: n.kind,
|
|
510
544
|
name: n.name
|
|
511
545
|
};
|
|
512
|
-
return n.domain !== void 0 && (e.domain = n.domain), y(n) && (e.axesSpec =
|
|
546
|
+
return n.domain !== void 0 && (e.domain = n.domain), y(n) && (e.axesSpec = K(n.axesSpec)), g(e);
|
|
513
547
|
}
|
|
514
|
-
|
|
515
|
-
__isRef:
|
|
516
|
-
blockId:
|
|
517
|
-
name:
|
|
518
|
-
requireEnrichments:
|
|
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")
|
|
519
553
|
}).describe(
|
|
520
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."
|
|
521
555
|
).readonly();
|
|
522
|
-
function
|
|
556
|
+
function dn(n) {
|
|
523
557
|
return typeof n == "object" && n !== null && "__isRef" in n && n.__isRef === !0 && "blockId" in n && "name" in n;
|
|
524
558
|
}
|
|
525
|
-
function
|
|
559
|
+
function ln(n, e = !0) {
|
|
526
560
|
if (e)
|
|
527
561
|
return {
|
|
528
562
|
...n,
|
|
@@ -533,43 +567,51 @@ function rn(n, e = !0) {
|
|
|
533
567
|
return r;
|
|
534
568
|
}
|
|
535
569
|
}
|
|
536
|
-
function
|
|
570
|
+
function pn(n, e) {
|
|
537
571
|
return n.ok ? { ok: !0, value: e(n.value) } : n;
|
|
538
572
|
}
|
|
539
|
-
const
|
|
540
|
-
|
|
573
|
+
const R = 24;
|
|
574
|
+
i.string().length(R).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
541
575
|
export {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
576
|
+
rn as AnchoredIdDeriver,
|
|
577
|
+
Y as Annotation,
|
|
578
|
+
$ as AxisSpec,
|
|
579
|
+
nn as PColumnName,
|
|
580
|
+
R as PlIdLength,
|
|
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,
|
|
551
590
|
d as getAxisId,
|
|
552
|
-
|
|
591
|
+
H as getFileNameFromHandle,
|
|
553
592
|
J as getFilePathFromHandle,
|
|
554
|
-
|
|
593
|
+
V as isDataInfo,
|
|
555
594
|
I as isDataInfoEntries,
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
595
|
+
j as isImportFileHandleIndex,
|
|
596
|
+
S as isImportFileHandleUpload,
|
|
597
|
+
M as isPColumn,
|
|
559
598
|
y as isPColumnSpec,
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
599
|
+
z as isPartitionedDataInfoEntries,
|
|
600
|
+
dn as isPlRef,
|
|
601
|
+
W as mapDataInfo,
|
|
563
602
|
h as mapJoinEntry,
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
603
|
+
sn as mapPObjectData,
|
|
604
|
+
tn as mapPTableDef,
|
|
605
|
+
pn as mapValueInVOE,
|
|
567
606
|
P as matchAxis,
|
|
568
|
-
|
|
607
|
+
T as matchAxisId,
|
|
569
608
|
v as matchPColumn,
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
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
|
|
574
616
|
};
|
|
575
617
|
//# sourceMappingURL=index.js.map
|