@milaboratories/uikit 2.4.1 → 2.4.2
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 +30 -29
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/components/DataTable/TableComponent.vue.js +1 -1
- package/dist/components/PlAccordion/{ExpandTransition.vue.js → ExpandTransition.vue2.js} +1 -1
- package/dist/components/PlAccordion/ExpandTransition.vue2.js.map +1 -0
- package/dist/components/PlAccordion/ExpandTransition.vue3.js +1 -1
- package/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
- package/dist/components/PlAutocomplete/PlAutocomplete.vue.js +1 -1
- package/dist/components/PlDropdown/PlDropdown.vue.js +1 -1
- package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +1 -1
- package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +1 -1
- package/dist/components/PlFileDialog/Local.vue.js +4 -4
- package/dist/components/PlFileInput/PlFileInput.vue.js +14 -14
- package/dist/components/PlLogView/PlLogView.vue.d.ts +8 -0
- package/dist/components/PlLogView/PlLogView.vue.d.ts.map +1 -1
- package/dist/components/PlLogView/PlLogView.vue.js +85 -59
- package/dist/components/PlLogView/PlLogView.vue.js.map +1 -1
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.js +1 -1
- package/dist/components/PlTextArea/PlTextArea.vue.js +1 -1
- package/dist/components/PlTextField/PlTextField.vue.js +1 -1
- package/dist/generated/components/svg/images/{SvgRequired.vue.js → SvgRequired.vue2.js} +1 -1
- package/dist/generated/components/svg/images/SvgRequired.vue2.js.map +1 -0
- package/dist/helpers/dom.d.ts +1 -0
- package/dist/helpers/dom.d.ts.map +1 -1
- package/dist/helpers/dom.js.map +1 -1
- package/dist/helpers/downloadContent.d.ts +5 -0
- package/dist/helpers/downloadContent.d.ts.map +1 -0
- package/dist/helpers/downloadContent.js +32 -0
- package/dist/helpers/downloadContent.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/model/common/dist/index.js +258 -198
- package/dist/lib/model/common/dist/index.js.map +1 -1
- package/dist/sdk/model/dist/index.js +486 -482
- package/dist/sdk/model/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/PlLogView/PlLogView.vue +29 -6
- package/src/components/PlLogView/pl-log-view.scss +3 -7
- package/src/helpers/dom.ts +2 -0
- package/src/helpers/downloadContent.ts +75 -0
- package/dist/components/PlAccordion/ExpandTransition.vue.js.map +0 -1
- package/dist/generated/components/svg/images/SvgRequired.vue.js.map +0 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var O = Object.defineProperty,
|
|
4
|
-
|
|
1
|
+
import a from "../../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
|
|
2
|
+
import b from "../../../../_virtual/canonicalize.js";
|
|
3
|
+
var O = Object.defineProperty, S = (e, t, n) => t in e ? O(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, h = (e, t, n) => S(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
a.object({
|
|
5
5
|
/** Included left border. */
|
|
6
|
-
from:
|
|
6
|
+
from: a.number(),
|
|
7
7
|
/** Excluded right border. */
|
|
8
|
-
to:
|
|
8
|
+
to: a.number()
|
|
9
9
|
});
|
|
10
|
-
function
|
|
10
|
+
function d(e) {
|
|
11
11
|
throw new Error("Unexpected object: " + e);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const k = "upload://upload/", A = "index://index/";
|
|
14
|
+
function I(e) {
|
|
15
|
+
return e.startsWith(k);
|
|
16
|
+
}
|
|
14
17
|
function j(e) {
|
|
15
|
-
return e.startsWith(
|
|
18
|
+
return e.startsWith(A);
|
|
16
19
|
}
|
|
17
20
|
function E(e) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
function J(e) {
|
|
21
|
-
if (E(e)) {
|
|
22
|
-
const t = e.slice(k.length);
|
|
21
|
+
if (j(e)) {
|
|
22
|
+
const t = e.slice(A.length);
|
|
23
23
|
return JSON.parse(decodeURIComponent(t)).path;
|
|
24
|
-
} else if (
|
|
25
|
-
const t = e.slice(
|
|
24
|
+
} else if (I(e)) {
|
|
25
|
+
const t = e.slice(k.length);
|
|
26
26
|
return JSON.parse(decodeURIComponent(t)).localPath;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
d(e);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function J(e) {
|
|
31
31
|
return e.replace(/^.*[\\/]/, "");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function _(e) {
|
|
34
|
+
return J(E(e));
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function G(e) {
|
|
37
37
|
if (!e || typeof e != "object")
|
|
38
38
|
return !1;
|
|
39
39
|
const t = e;
|
|
@@ -50,15 +50,15 @@ function R(e) {
|
|
|
50
50
|
return !1;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function W(e, t) {
|
|
54
54
|
if (e !== void 0)
|
|
55
55
|
switch (e.type) {
|
|
56
56
|
case "Json":
|
|
57
57
|
return e;
|
|
58
58
|
case "JsonPartitioned": {
|
|
59
59
|
const n = {};
|
|
60
|
-
for (const [r,
|
|
61
|
-
n[r] = t(
|
|
60
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
61
|
+
n[r] = t(o);
|
|
62
62
|
return {
|
|
63
63
|
...e,
|
|
64
64
|
parts: n
|
|
@@ -66,10 +66,10 @@ function U(e, t) {
|
|
|
66
66
|
}
|
|
67
67
|
case "BinaryPartitioned": {
|
|
68
68
|
const n = {};
|
|
69
|
-
for (const [r,
|
|
69
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
70
70
|
n[r] = {
|
|
71
|
-
index: t(
|
|
72
|
-
values: t(
|
|
71
|
+
index: t(o.index),
|
|
72
|
+
values: t(o.values)
|
|
73
73
|
};
|
|
74
74
|
return {
|
|
75
75
|
...e,
|
|
@@ -78,8 +78,8 @@ function U(e, t) {
|
|
|
78
78
|
}
|
|
79
79
|
case "ParquetPartitioned": {
|
|
80
80
|
const n = {};
|
|
81
|
-
for (const [r,
|
|
82
|
-
n[r] = t(
|
|
81
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
82
|
+
n[r] = t(o);
|
|
83
83
|
return {
|
|
84
84
|
...e,
|
|
85
85
|
parts: n
|
|
@@ -87,7 +87,7 @@ function U(e, t) {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function L(e) {
|
|
91
91
|
if (!e || typeof e != "object")
|
|
92
92
|
return !1;
|
|
93
93
|
const t = e;
|
|
@@ -104,8 +104,8 @@ function I(e) {
|
|
|
104
104
|
return !1;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
if (!
|
|
107
|
+
function z(e) {
|
|
108
|
+
if (!L(e)) return !1;
|
|
109
109
|
switch (e.type) {
|
|
110
110
|
case "JsonPartitioned":
|
|
111
111
|
case "BinaryPartitioned":
|
|
@@ -115,7 +115,7 @@ function _(e) {
|
|
|
115
115
|
return !1;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function X(e) {
|
|
119
119
|
switch (e.type) {
|
|
120
120
|
case "Json":
|
|
121
121
|
return {
|
|
@@ -142,10 +142,10 @@ function H(e) {
|
|
|
142
142
|
parts: Object.entries(e.parts).map(([t, n]) => ({ key: JSON.parse(t), value: n }))
|
|
143
143
|
};
|
|
144
144
|
default:
|
|
145
|
-
|
|
145
|
+
d(e);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Q(e) {
|
|
149
149
|
switch (e.type) {
|
|
150
150
|
case "Json":
|
|
151
151
|
return {
|
|
@@ -180,33 +180,85 @@ function W(e) {
|
|
|
180
180
|
)
|
|
181
181
|
};
|
|
182
182
|
default:
|
|
183
|
-
|
|
183
|
+
d(e);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
|
|
188
|
-
return r && Object.entries(r).length > 0 && Object.assign(i, { domain: r }), i;
|
|
186
|
+
function C(e) {
|
|
187
|
+
return b(e);
|
|
189
188
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
189
|
+
function Z(e) {
|
|
190
|
+
return JSON.parse(e);
|
|
191
|
+
}
|
|
192
|
+
const N = {
|
|
193
|
+
Int: "Int",
|
|
194
|
+
Long: "Long",
|
|
195
|
+
Float: "Float",
|
|
196
|
+
Double: "Double",
|
|
197
|
+
String: "String",
|
|
198
|
+
Bytes: "Bytes"
|
|
199
|
+
};
|
|
200
|
+
function D(e, t) {
|
|
201
|
+
return e == null ? void 0 : e[t];
|
|
202
|
+
}
|
|
203
|
+
const f = {
|
|
204
|
+
DiscreteValues: "pl7.app/discreteValues",
|
|
205
|
+
Graph: {
|
|
206
|
+
IsVirtual: "pl7.app/graph/isVirtual"
|
|
207
|
+
},
|
|
208
|
+
HideDataFromUi: "pl7.app/hideDataFromUi",
|
|
209
|
+
IsLinkerColumn: "pl7.app/isLinkerColumn",
|
|
210
|
+
Label: "pl7.app/label",
|
|
211
|
+
Max: "pl7.app/max",
|
|
212
|
+
Min: "pl7.app/min",
|
|
213
|
+
Parents: "pl7.app/parents",
|
|
214
|
+
Sequence: {
|
|
215
|
+
Annotation: {
|
|
216
|
+
Mapping: "pl7.app/sequence/annotation/mapping"
|
|
217
|
+
},
|
|
218
|
+
IsAnnotation: "pl7.app/sequence/isAnnotation"
|
|
219
|
+
},
|
|
220
|
+
Table: {
|
|
221
|
+
OrderPriority: "pl7.app/table/orderPriority"
|
|
222
|
+
},
|
|
223
|
+
Trace: "pl7.app/trace"
|
|
224
|
+
}, $ = a.object({
|
|
225
|
+
type: a.nativeEnum(N),
|
|
226
|
+
name: a.string(),
|
|
227
|
+
domain: a.record(a.string(), a.string()).optional(),
|
|
228
|
+
annotations: a.record(a.string(), a.string()).optional(),
|
|
229
|
+
parentAxes: a.array(a.number()).optional()
|
|
230
|
+
}).passthrough();
|
|
231
|
+
f.DiscreteValues + "", a.array(a.string()).or(a.array(a.number())), f.Graph.IsVirtual + "", a.boolean(), f.HideDataFromUi + "", a.boolean(), f.IsLinkerColumn + "", a.boolean(), f.Max + "", a.number(), f.Min + "", a.number(), f.Parents + "", a.array($), f.Sequence.Annotation.Mapping + "", a.record(a.string(), a.string()), f.Sequence.IsAnnotation + "", a.boolean(), f.Table.OrderPriority + "", a.number(), f.Trace + "", a.record(a.string(), a.unknown());
|
|
232
|
+
function Y(e, t) {
|
|
233
|
+
return D(e == null ? void 0 : e.annotations, t);
|
|
234
|
+
}
|
|
235
|
+
const ee = {
|
|
236
|
+
Label: "pl7.app/label"
|
|
237
|
+
};
|
|
238
|
+
function p(e) {
|
|
239
|
+
const { type: t, name: n, domain: r } = e, o = { type: t, name: n };
|
|
240
|
+
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
192
241
|
}
|
|
193
|
-
function
|
|
194
|
-
return
|
|
242
|
+
function q(e) {
|
|
243
|
+
return e.map(p);
|
|
244
|
+
}
|
|
245
|
+
function te(e) {
|
|
246
|
+
return C(p(e));
|
|
195
247
|
}
|
|
196
|
-
function
|
|
248
|
+
function M(e, t) {
|
|
197
249
|
if (e === void 0) return t === void 0;
|
|
198
250
|
if (t === void 0) return !0;
|
|
199
251
|
for (const n in t)
|
|
200
252
|
if (e[n] !== t[n]) return !1;
|
|
201
253
|
return !0;
|
|
202
254
|
}
|
|
203
|
-
function
|
|
204
|
-
return e.name === t.name &&
|
|
255
|
+
function T(e, t) {
|
|
256
|
+
return e.name === t.name && M(e.domain, t.domain);
|
|
205
257
|
}
|
|
206
|
-
function
|
|
207
|
-
return { ...e, src:
|
|
258
|
+
function ne(e, t) {
|
|
259
|
+
return { ...e, src: y(e.src, t) };
|
|
208
260
|
}
|
|
209
|
-
function
|
|
261
|
+
function y(e, t) {
|
|
210
262
|
switch (e.type) {
|
|
211
263
|
case "column":
|
|
212
264
|
return {
|
|
@@ -226,47 +278,47 @@ function h(e, t) {
|
|
|
226
278
|
case "full":
|
|
227
279
|
return {
|
|
228
280
|
type: e.type,
|
|
229
|
-
entries: e.entries.map((n) =>
|
|
281
|
+
entries: e.entries.map((n) => y(n, t))
|
|
230
282
|
};
|
|
231
283
|
case "outer":
|
|
232
284
|
return {
|
|
233
285
|
type: "outer",
|
|
234
|
-
primary:
|
|
235
|
-
secondary: e.secondary.map((n) =>
|
|
286
|
+
primary: y(e.primary, t),
|
|
287
|
+
secondary: e.secondary.map((n) => y(n, t))
|
|
236
288
|
};
|
|
237
289
|
default:
|
|
238
|
-
|
|
290
|
+
d(e);
|
|
239
291
|
}
|
|
240
292
|
}
|
|
241
|
-
function
|
|
242
|
-
return
|
|
293
|
+
function F(e) {
|
|
294
|
+
return b(e);
|
|
243
295
|
}
|
|
244
|
-
function
|
|
245
|
-
return
|
|
296
|
+
function x(e) {
|
|
297
|
+
return b(p(e));
|
|
246
298
|
}
|
|
247
|
-
function
|
|
299
|
+
function P(e, t) {
|
|
248
300
|
return JSON.stringify([e, t]);
|
|
249
301
|
}
|
|
250
|
-
class
|
|
302
|
+
class re {
|
|
251
303
|
/**
|
|
252
304
|
* Creates a new anchor context from a set of anchor column specifications
|
|
253
305
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
254
306
|
*/
|
|
255
307
|
constructor(t) {
|
|
256
|
-
|
|
308
|
+
h(this, "domains", /* @__PURE__ */ new Map()), h(this, "axes", /* @__PURE__ */ new Map()), h(this, "domainPacks", []), h(this, "domainPackToAnchor", /* @__PURE__ */ new Map()), this.anchors = t;
|
|
257
309
|
const n = Object.entries(t);
|
|
258
|
-
n.sort((r,
|
|
259
|
-
for (const [r,
|
|
260
|
-
for (let
|
|
261
|
-
const
|
|
262
|
-
this.axes.set(
|
|
310
|
+
n.sort((r, o) => r[0].localeCompare(o[0]));
|
|
311
|
+
for (const [r, o] of n) {
|
|
312
|
+
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
313
|
+
const s = o.axesSpec[i], c = x(s);
|
|
314
|
+
this.axes.set(c, { anchor: r, idx: i });
|
|
263
315
|
}
|
|
264
|
-
if (
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
for (const [
|
|
268
|
-
const
|
|
269
|
-
this.domains.set(
|
|
316
|
+
if (o.domain !== void 0) {
|
|
317
|
+
const i = Object.entries(o.domain);
|
|
318
|
+
i.sort((s, c) => s[0].localeCompare(c[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([s]) => s));
|
|
319
|
+
for (const [s, c] of i) {
|
|
320
|
+
const u = P(s, c);
|
|
321
|
+
this.domains.set(u, r);
|
|
270
322
|
}
|
|
271
323
|
}
|
|
272
324
|
}
|
|
@@ -279,52 +331,52 @@ class V {
|
|
|
279
331
|
name: t.name,
|
|
280
332
|
axes: []
|
|
281
333
|
};
|
|
282
|
-
let
|
|
334
|
+
let o;
|
|
283
335
|
if (t.domain !== void 0)
|
|
284
336
|
e:
|
|
285
|
-
for (const
|
|
286
|
-
const
|
|
287
|
-
for (const
|
|
288
|
-
const
|
|
289
|
-
if (
|
|
290
|
-
|
|
337
|
+
for (const s of this.domainPacks) {
|
|
338
|
+
const c = [];
|
|
339
|
+
for (const l of s) {
|
|
340
|
+
const m = t.domain[l];
|
|
341
|
+
if (m !== void 0)
|
|
342
|
+
c.push([l, m]);
|
|
291
343
|
else
|
|
292
344
|
break e;
|
|
293
345
|
}
|
|
294
|
-
const
|
|
295
|
-
if (
|
|
296
|
-
r.domainAnchor =
|
|
346
|
+
const u = this.domainPackToAnchor.get(JSON.stringify(c));
|
|
347
|
+
if (u !== void 0) {
|
|
348
|
+
r.domainAnchor = u, o = new Set(s);
|
|
297
349
|
break;
|
|
298
350
|
}
|
|
299
351
|
}
|
|
300
|
-
for (const [
|
|
301
|
-
if (
|
|
352
|
+
for (const [s, c] of Object.entries(t.domain ?? {})) {
|
|
353
|
+
if (o !== void 0 && o.has(s))
|
|
302
354
|
continue;
|
|
303
|
-
const
|
|
304
|
-
r.domain ?? (r.domain = {}), r.domain[
|
|
355
|
+
const u = P(s, c), l = this.domains.get(u);
|
|
356
|
+
r.domain ?? (r.domain = {}), r.domain[s] = l ? { anchor: l } : c;
|
|
305
357
|
}
|
|
306
|
-
if (r.axes = t.axesSpec.map((
|
|
307
|
-
const
|
|
308
|
-
return
|
|
358
|
+
if (r.axes = t.axesSpec.map((s) => {
|
|
359
|
+
const c = x(s), u = this.axes.get(c);
|
|
360
|
+
return u === void 0 ? p(s) : u;
|
|
309
361
|
}), !n || n.length === 0)
|
|
310
362
|
return r;
|
|
311
|
-
const
|
|
312
|
-
for (const
|
|
313
|
-
const [
|
|
314
|
-
if (typeof
|
|
315
|
-
if (
|
|
316
|
-
throw new Error(`Axis index ${
|
|
317
|
-
|
|
363
|
+
const i = [];
|
|
364
|
+
for (const s of n) {
|
|
365
|
+
const [c, u] = s;
|
|
366
|
+
if (typeof c == "number") {
|
|
367
|
+
if (c < 0 || c >= t.axesSpec.length)
|
|
368
|
+
throw new Error(`Axis index ${c} is out of bounds (0-${t.axesSpec.length - 1})`);
|
|
369
|
+
i.push([c, u]);
|
|
318
370
|
} else {
|
|
319
|
-
const
|
|
320
|
-
if (
|
|
321
|
-
throw new Error(`Axis with name "${
|
|
322
|
-
|
|
371
|
+
const l = t.axesSpec.findIndex((m) => m.name === c);
|
|
372
|
+
if (l === -1)
|
|
373
|
+
throw new Error(`Axis with name "${c}" not found in the column specification`);
|
|
374
|
+
i.push([l, u]);
|
|
323
375
|
}
|
|
324
376
|
}
|
|
325
|
-
return
|
|
377
|
+
return i.sort((s, c) => s[0] - c[0]), {
|
|
326
378
|
source: r,
|
|
327
|
-
axisFilters:
|
|
379
|
+
axisFilters: i
|
|
328
380
|
};
|
|
329
381
|
}
|
|
330
382
|
/**
|
|
@@ -334,40 +386,40 @@ class V {
|
|
|
334
386
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
335
387
|
*/
|
|
336
388
|
deriveS(t, n) {
|
|
337
|
-
return
|
|
389
|
+
return F(this.derive(t, n));
|
|
338
390
|
}
|
|
339
391
|
}
|
|
340
|
-
function
|
|
341
|
-
const r = { ...t },
|
|
392
|
+
function oe(e, t, n) {
|
|
393
|
+
const r = { ...t }, o = (n == null ? void 0 : n.ignoreMissingDomains) ?? !1;
|
|
342
394
|
if (r.domainAnchor !== void 0) {
|
|
343
|
-
const
|
|
344
|
-
if (!
|
|
395
|
+
const i = e[r.domainAnchor];
|
|
396
|
+
if (!i)
|
|
345
397
|
throw new Error(`Anchor "${r.domainAnchor}" not found`);
|
|
346
|
-
const
|
|
347
|
-
r.domain = { ...
|
|
398
|
+
const s = i.domain || {};
|
|
399
|
+
r.domain = { ...s, ...r.domain }, delete r.domainAnchor;
|
|
348
400
|
}
|
|
349
401
|
if (r.domain) {
|
|
350
|
-
const
|
|
351
|
-
for (const [
|
|
352
|
-
if (typeof
|
|
353
|
-
|
|
402
|
+
const i = {};
|
|
403
|
+
for (const [s, c] of Object.entries(r.domain))
|
|
404
|
+
if (typeof c == "string")
|
|
405
|
+
i[s] = c;
|
|
354
406
|
else {
|
|
355
|
-
const
|
|
356
|
-
if (!
|
|
357
|
-
throw new Error(`Anchor "${
|
|
358
|
-
if (!
|
|
359
|
-
if (!
|
|
360
|
-
throw new Error(`Domain key "${
|
|
407
|
+
const u = e[c.anchor];
|
|
408
|
+
if (!u)
|
|
409
|
+
throw new Error(`Anchor "${c.anchor}" not found for domain key "${s}"`);
|
|
410
|
+
if (!u.domain || u.domain[s] === void 0) {
|
|
411
|
+
if (!o)
|
|
412
|
+
throw new Error(`Domain key "${s}" not found in anchor "${c.anchor}"`);
|
|
361
413
|
continue;
|
|
362
414
|
}
|
|
363
|
-
|
|
415
|
+
i[s] = u.domain[s];
|
|
364
416
|
}
|
|
365
|
-
r.domain =
|
|
417
|
+
r.domain = i;
|
|
366
418
|
}
|
|
367
|
-
return r.axes && (r.axes = r.axes.map((
|
|
419
|
+
return r.axes && (r.axes = r.axes.map((i) => K(e, i))), r;
|
|
368
420
|
}
|
|
369
421
|
function K(e, t) {
|
|
370
|
-
if (!
|
|
422
|
+
if (!B(t))
|
|
371
423
|
return t;
|
|
372
424
|
const n = t.anchor, r = e[n];
|
|
373
425
|
if (!r)
|
|
@@ -377,42 +429,42 @@ function K(e, t) {
|
|
|
377
429
|
throw new Error(`Axis index ${t.idx} out of bounds for anchor "${n}"`);
|
|
378
430
|
return r.axesSpec[t.idx];
|
|
379
431
|
} else if ("name" in t) {
|
|
380
|
-
const
|
|
381
|
-
if (
|
|
432
|
+
const o = r.axesSpec.filter((i) => i.name === t.name);
|
|
433
|
+
if (o.length > 1)
|
|
382
434
|
throw new Error(`Multiple axes with name "${t.name}" found in anchor "${n}"`);
|
|
383
|
-
if (
|
|
435
|
+
if (o.length === 0)
|
|
384
436
|
throw new Error(`Axis with name "${t.name}" not found in anchor "${n}"`);
|
|
385
|
-
return
|
|
437
|
+
return o[0];
|
|
386
438
|
} else if ("id" in t) {
|
|
387
|
-
const
|
|
388
|
-
if (
|
|
439
|
+
const o = r.axesSpec.filter((i) => T(t.id, p(i)));
|
|
440
|
+
if (o.length > 1)
|
|
389
441
|
throw new Error(`Multiple matching axes found for matcher in anchor "${n}"`);
|
|
390
|
-
if (
|
|
442
|
+
if (o.length === 0)
|
|
391
443
|
throw new Error(`No matching axis found for matcher in anchor "${n}"`);
|
|
392
|
-
return
|
|
444
|
+
return o[0];
|
|
393
445
|
}
|
|
394
446
|
throw new Error("Unsupported axis reference type");
|
|
395
447
|
}
|
|
396
|
-
function
|
|
448
|
+
function B(e) {
|
|
397
449
|
return typeof e == "object" && "anchor" in e;
|
|
398
450
|
}
|
|
399
|
-
function
|
|
451
|
+
function g(e) {
|
|
400
452
|
return e.kind === "PColumn";
|
|
401
453
|
}
|
|
402
|
-
function
|
|
403
|
-
return
|
|
454
|
+
function R(e) {
|
|
455
|
+
return g(e.spec);
|
|
404
456
|
}
|
|
405
|
-
function
|
|
406
|
-
if (!
|
|
457
|
+
function ae(e) {
|
|
458
|
+
if (!R(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
407
459
|
return e;
|
|
408
460
|
}
|
|
409
|
-
function
|
|
461
|
+
function ie(e, t) {
|
|
410
462
|
return e === void 0 ? void 0 : {
|
|
411
463
|
...e,
|
|
412
464
|
data: t(e.data)
|
|
413
465
|
};
|
|
414
466
|
}
|
|
415
|
-
function
|
|
467
|
+
function se(e) {
|
|
416
468
|
const t = /* @__PURE__ */ new Map(), n = (r) => {
|
|
417
469
|
switch (r.type) {
|
|
418
470
|
case "column":
|
|
@@ -425,14 +477,14 @@ function Z(e) {
|
|
|
425
477
|
return;
|
|
426
478
|
case "full":
|
|
427
479
|
case "inner":
|
|
428
|
-
for (const
|
|
480
|
+
for (const o of r.entries) n(o);
|
|
429
481
|
return;
|
|
430
482
|
case "outer":
|
|
431
483
|
n(r.primary);
|
|
432
|
-
for (const
|
|
484
|
+
for (const o of r.secondary) n(o);
|
|
433
485
|
return;
|
|
434
486
|
default:
|
|
435
|
-
|
|
487
|
+
d(r);
|
|
436
488
|
}
|
|
437
489
|
};
|
|
438
490
|
return n(e), [...t.values()];
|
|
@@ -449,13 +501,13 @@ function v(e, t) {
|
|
|
449
501
|
}
|
|
450
502
|
if (e.domain !== void 0) {
|
|
451
503
|
const n = t.domain || {};
|
|
452
|
-
for (const [r,
|
|
453
|
-
if (n[r] !==
|
|
504
|
+
for (const [r, o] of Object.entries(e.domain))
|
|
505
|
+
if (n[r] !== o)
|
|
454
506
|
return !1;
|
|
455
507
|
}
|
|
456
508
|
return !0;
|
|
457
509
|
}
|
|
458
|
-
function
|
|
510
|
+
function w(e, t) {
|
|
459
511
|
if (t.name !== void 0 && e.name !== t.name || t.namePattern !== void 0 && !new RegExp(t.namePattern).test(e.name))
|
|
460
512
|
return !1;
|
|
461
513
|
if (t.type !== void 0) {
|
|
@@ -467,15 +519,15 @@ function P(e, t) {
|
|
|
467
519
|
}
|
|
468
520
|
if (t.domain !== void 0) {
|
|
469
521
|
const n = e.domain || {};
|
|
470
|
-
for (const [r,
|
|
471
|
-
if (n[r] !==
|
|
522
|
+
for (const [r, o] of Object.entries(t.domain))
|
|
523
|
+
if (n[r] !== o)
|
|
472
524
|
return !1;
|
|
473
525
|
}
|
|
474
526
|
if (t.axes !== void 0) {
|
|
475
|
-
const n = e.axesSpec.map(
|
|
527
|
+
const n = e.axesSpec.map(p);
|
|
476
528
|
if (t.partialAxesMatch) {
|
|
477
529
|
for (const r of t.axes)
|
|
478
|
-
if (!n.some((
|
|
530
|
+
if (!n.some((o) => v(r, o)))
|
|
479
531
|
return !1;
|
|
480
532
|
} else {
|
|
481
533
|
if (n.length !== t.axes.length)
|
|
@@ -487,42 +539,42 @@ function P(e, t) {
|
|
|
487
539
|
}
|
|
488
540
|
if (t.annotations !== void 0) {
|
|
489
541
|
const n = e.annotations || {};
|
|
490
|
-
for (const [r,
|
|
491
|
-
if (n[r] !==
|
|
542
|
+
for (const [r, o] of Object.entries(t.annotations))
|
|
543
|
+
if (n[r] !== o)
|
|
492
544
|
return !1;
|
|
493
545
|
}
|
|
494
546
|
if (t.annotationPatterns !== void 0) {
|
|
495
547
|
const n = e.annotations || {};
|
|
496
|
-
for (const [r,
|
|
497
|
-
const
|
|
498
|
-
if (
|
|
548
|
+
for (const [r, o] of Object.entries(t.annotationPatterns)) {
|
|
549
|
+
const i = n[r];
|
|
550
|
+
if (i === void 0 || !new RegExp(o).test(i))
|
|
499
551
|
return !1;
|
|
500
552
|
}
|
|
501
553
|
}
|
|
502
554
|
return !0;
|
|
503
555
|
}
|
|
504
|
-
function
|
|
505
|
-
return Array.isArray(e) ? (t) => e.some((n) =>
|
|
556
|
+
function ce(e) {
|
|
557
|
+
return Array.isArray(e) ? (t) => e.some((n) => g(t) && w(t, n)) : (t) => g(t) && w(t, e);
|
|
506
558
|
}
|
|
507
|
-
function
|
|
559
|
+
function ue(e) {
|
|
508
560
|
const t = {
|
|
509
561
|
kind: e.kind,
|
|
510
562
|
name: e.name
|
|
511
563
|
};
|
|
512
|
-
return e.domain !== void 0 && (t.domain = e.domain),
|
|
564
|
+
return e.domain !== void 0 && (t.domain = e.domain), g(e) && (t.axesSpec = q(e.axesSpec)), b(t);
|
|
513
565
|
}
|
|
514
|
-
|
|
515
|
-
__isRef:
|
|
516
|
-
blockId:
|
|
517
|
-
name:
|
|
518
|
-
requireEnrichments:
|
|
566
|
+
a.object({
|
|
567
|
+
__isRef: a.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
568
|
+
blockId: a.string().describe("Upstream block id"),
|
|
569
|
+
name: a.string().describe("Name of the output provided to the upstream block's output context"),
|
|
570
|
+
requireEnrichments: a.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
571
|
}).describe(
|
|
520
572
|
"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
573
|
).readonly();
|
|
522
|
-
function
|
|
574
|
+
function fe(e) {
|
|
523
575
|
return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === !0 && "blockId" in e && "name" in e;
|
|
524
576
|
}
|
|
525
|
-
function
|
|
577
|
+
function le(e, t = !0) {
|
|
526
578
|
if (t)
|
|
527
579
|
return {
|
|
528
580
|
...e,
|
|
@@ -533,43 +585,51 @@ function re(e, t = !0) {
|
|
|
533
585
|
return r;
|
|
534
586
|
}
|
|
535
587
|
}
|
|
536
|
-
function
|
|
588
|
+
function pe(e, t) {
|
|
537
589
|
return e.ok ? { ok: !0, value: t(e.value) } : e;
|
|
538
590
|
}
|
|
539
|
-
const
|
|
540
|
-
|
|
591
|
+
const U = 24;
|
|
592
|
+
a.string().length(U).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
541
593
|
export {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
594
|
+
re as AnchoredIdDeriver,
|
|
595
|
+
f as Annotation,
|
|
596
|
+
$ as AxisSpec,
|
|
597
|
+
ee as PColumnName,
|
|
598
|
+
U as PlIdLength,
|
|
599
|
+
N as ValueType,
|
|
600
|
+
te as canonicalizeAxisId,
|
|
601
|
+
C as canonicalizeJson,
|
|
602
|
+
X as dataInfoToEntries,
|
|
603
|
+
ue as deriveNativeId,
|
|
604
|
+
ae as ensurePColumn,
|
|
605
|
+
Q as entriesToDataInfo,
|
|
606
|
+
se as extractAllColumns,
|
|
607
|
+
q as getAxesId,
|
|
608
|
+
p as getAxisId,
|
|
609
|
+
_ as getFileNameFromHandle,
|
|
610
|
+
E as getFilePathFromHandle,
|
|
611
|
+
G as isDataInfo,
|
|
612
|
+
L as isDataInfoEntries,
|
|
613
|
+
j as isImportFileHandleIndex,
|
|
614
|
+
I as isImportFileHandleUpload,
|
|
615
|
+
R as isPColumn,
|
|
616
|
+
g as isPColumnSpec,
|
|
617
|
+
z as isPartitionedDataInfoEntries,
|
|
618
|
+
fe as isPlRef,
|
|
619
|
+
W as mapDataInfo,
|
|
620
|
+
y as mapJoinEntry,
|
|
621
|
+
ie as mapPObjectData,
|
|
622
|
+
ne as mapPTableDef,
|
|
623
|
+
pe as mapValueInVOE,
|
|
567
624
|
v as matchAxis,
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
625
|
+
T as matchAxisId,
|
|
626
|
+
w as matchPColumn,
|
|
627
|
+
Z as parseJson,
|
|
628
|
+
Y as readAnnotation,
|
|
629
|
+
D as readMetadata,
|
|
630
|
+
oe as resolveAnchors,
|
|
631
|
+
ce as selectorsToPredicate,
|
|
632
|
+
F as stringifyColumnId,
|
|
633
|
+
le as withEnrichments
|
|
574
634
|
};
|
|
575
635
|
//# sourceMappingURL=index.js.map
|