@milaboratories/uikit 2.4.0 → 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 +26 -25
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/components/DataTable/TableComponent.vue.js +1 -1
- package/dist/components/PlAccordion/ExpandTransition.vue3.js +1 -1
- package/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
- package/dist/components/PlFileDialog/Local.vue.js +4 -4
- package/dist/components/PlFileInput/PlFileInput.vue.js +17 -17
- 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/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 +262 -179
- package/dist/lib/model/common/dist/index.js.map +1 -1
- package/dist/sdk/model/dist/index.js +481 -465
- package/dist/sdk/model/dist/index.js.map +1 -1
- package/package.json +2 -2
- 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/.turbo/turbo-test.log +0 -133
- package/dist/components/PlAccordion/ExpandTransition.vue.js +0 -27
- package/dist/components/PlAccordion/ExpandTransition.vue.js.map +0 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
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
14
|
function I(e) {
|
|
15
|
-
return e.startsWith(P);
|
|
16
|
-
}
|
|
17
|
-
function S(e) {
|
|
18
15
|
return e.startsWith(k);
|
|
19
16
|
}
|
|
20
17
|
function j(e) {
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
return e.startsWith(A);
|
|
19
|
+
}
|
|
20
|
+
function E(e) {
|
|
21
|
+
if (j(e)) {
|
|
22
|
+
const t = e.slice(A.length);
|
|
23
23
|
return JSON.parse(decodeURIComponent(t)).path;
|
|
24
24
|
} else if (I(e)) {
|
|
25
|
-
const t = e.slice(
|
|
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 R(e) {
|
|
34
|
-
return E(j(e));
|
|
35
|
-
}
|
|
36
33
|
function _(e) {
|
|
34
|
+
return J(E(e));
|
|
35
|
+
}
|
|
36
|
+
function G(e) {
|
|
37
37
|
if (!e || typeof e != "object")
|
|
38
38
|
return !1;
|
|
39
39
|
const t = e;
|
|
@@ -43,14 +43,14 @@ function _(e) {
|
|
|
43
43
|
case "Json":
|
|
44
44
|
return typeof t.keyLength == "number" && t.data !== void 0 && typeof t.data == "object";
|
|
45
45
|
case "JsonPartitioned":
|
|
46
|
-
return typeof t.partitionKeyLength == "number" && t.parts !== void 0 && typeof t.parts == "object";
|
|
47
46
|
case "BinaryPartitioned":
|
|
47
|
+
case "ParquetPartitioned":
|
|
48
48
|
return typeof t.partitionKeyLength == "number" && t.parts !== void 0 && typeof t.parts == "object";
|
|
49
49
|
default:
|
|
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":
|
|
@@ -76,9 +76,18 @@ function U(e, t) {
|
|
|
76
76
|
parts: n
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
+
case "ParquetPartitioned": {
|
|
80
|
+
const n = {};
|
|
81
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
82
|
+
n[r] = t(o);
|
|
83
|
+
return {
|
|
84
|
+
...e,
|
|
85
|
+
parts: n
|
|
86
|
+
};
|
|
87
|
+
}
|
|
79
88
|
}
|
|
80
89
|
}
|
|
81
|
-
function
|
|
90
|
+
function L(e) {
|
|
82
91
|
if (!e || typeof e != "object")
|
|
83
92
|
return !1;
|
|
84
93
|
const t = e;
|
|
@@ -88,102 +97,168 @@ function J(e) {
|
|
|
88
97
|
case "Json":
|
|
89
98
|
return typeof t.keyLength == "number" && Array.isArray(t.data);
|
|
90
99
|
case "JsonPartitioned":
|
|
91
|
-
return typeof t.partitionKeyLength == "number" && Array.isArray(t.parts);
|
|
92
100
|
case "BinaryPartitioned":
|
|
101
|
+
case "ParquetPartitioned":
|
|
93
102
|
return typeof t.partitionKeyLength == "number" && Array.isArray(t.parts);
|
|
94
103
|
default:
|
|
95
104
|
return !1;
|
|
96
105
|
}
|
|
97
106
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
107
|
+
function z(e) {
|
|
108
|
+
if (!L(e)) return !1;
|
|
109
|
+
switch (e.type) {
|
|
110
|
+
case "JsonPartitioned":
|
|
111
|
+
case "BinaryPartitioned":
|
|
112
|
+
case "ParquetPartitioned":
|
|
113
|
+
return !0;
|
|
114
|
+
default:
|
|
115
|
+
return !1;
|
|
116
|
+
}
|
|
100
117
|
}
|
|
101
|
-
function
|
|
118
|
+
function X(e) {
|
|
102
119
|
switch (e.type) {
|
|
103
|
-
case "Json":
|
|
104
|
-
const t = Object.entries(e.data).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
|
|
120
|
+
case "Json":
|
|
105
121
|
return {
|
|
106
122
|
type: "Json",
|
|
107
123
|
keyLength: e.keyLength,
|
|
108
|
-
data: t
|
|
124
|
+
data: Object.entries(e.data).map(([t, n]) => ({ key: JSON.parse(t), value: n }))
|
|
109
125
|
};
|
|
110
|
-
|
|
111
|
-
case "JsonPartitioned": {
|
|
112
|
-
const t = Object.entries(e.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
|
|
126
|
+
case "JsonPartitioned":
|
|
113
127
|
return {
|
|
114
128
|
type: "JsonPartitioned",
|
|
115
129
|
partitionKeyLength: e.partitionKeyLength,
|
|
116
|
-
parts: t
|
|
130
|
+
parts: Object.entries(e.parts).map(([t, n]) => ({ key: JSON.parse(t), value: n }))
|
|
117
131
|
};
|
|
118
|
-
|
|
119
|
-
case "BinaryPartitioned": {
|
|
120
|
-
const t = Object.entries(e.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
|
|
132
|
+
case "BinaryPartitioned":
|
|
121
133
|
return {
|
|
122
134
|
type: "BinaryPartitioned",
|
|
123
135
|
partitionKeyLength: e.partitionKeyLength,
|
|
124
|
-
parts: t
|
|
136
|
+
parts: Object.entries(e.parts).map(([t, n]) => ({ key: JSON.parse(t), value: n }))
|
|
125
137
|
};
|
|
126
|
-
|
|
138
|
+
case "ParquetPartitioned":
|
|
139
|
+
return {
|
|
140
|
+
type: "ParquetPartitioned",
|
|
141
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
142
|
+
parts: Object.entries(e.parts).map(([t, n]) => ({ key: JSON.parse(t), value: n }))
|
|
143
|
+
};
|
|
144
|
+
default:
|
|
145
|
+
d(e);
|
|
127
146
|
}
|
|
128
147
|
}
|
|
129
|
-
function
|
|
148
|
+
function Q(e) {
|
|
130
149
|
switch (e.type) {
|
|
131
|
-
case "Json":
|
|
132
|
-
const t = {};
|
|
133
|
-
for (const n of e.data)
|
|
134
|
-
t[JSON.stringify(n.key)] = n.value;
|
|
150
|
+
case "Json":
|
|
135
151
|
return {
|
|
136
152
|
type: "Json",
|
|
137
153
|
keyLength: e.keyLength,
|
|
138
|
-
data:
|
|
154
|
+
data: Object.fromEntries(
|
|
155
|
+
e.data.map(({ key: t, value: n }) => [JSON.stringify(t), n])
|
|
156
|
+
)
|
|
139
157
|
};
|
|
140
|
-
|
|
141
|
-
case "JsonPartitioned": {
|
|
142
|
-
const t = {};
|
|
143
|
-
for (const n of e.parts)
|
|
144
|
-
t[JSON.stringify(n.key)] = n.value;
|
|
158
|
+
case "JsonPartitioned":
|
|
145
159
|
return {
|
|
146
160
|
type: "JsonPartitioned",
|
|
147
161
|
partitionKeyLength: e.partitionKeyLength,
|
|
148
|
-
parts:
|
|
162
|
+
parts: Object.fromEntries(
|
|
163
|
+
e.parts.map(({ key: t, value: n }) => [JSON.stringify(t), n])
|
|
164
|
+
)
|
|
149
165
|
};
|
|
150
|
-
|
|
151
|
-
case "BinaryPartitioned": {
|
|
152
|
-
const t = {};
|
|
153
|
-
for (const n of e.parts)
|
|
154
|
-
t[JSON.stringify(n.key)] = n.value;
|
|
166
|
+
case "BinaryPartitioned":
|
|
155
167
|
return {
|
|
156
168
|
type: "BinaryPartitioned",
|
|
157
169
|
partitionKeyLength: e.partitionKeyLength,
|
|
158
|
-
parts:
|
|
170
|
+
parts: Object.fromEntries(
|
|
171
|
+
e.parts.map(({ key: t, value: n }) => [JSON.stringify(t), n])
|
|
172
|
+
)
|
|
159
173
|
};
|
|
160
|
-
|
|
174
|
+
case "ParquetPartitioned":
|
|
175
|
+
return {
|
|
176
|
+
type: "ParquetPartitioned",
|
|
177
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
178
|
+
parts: Object.fromEntries(
|
|
179
|
+
e.parts.map(({ key: t, value: n }) => [JSON.stringify(t), n])
|
|
180
|
+
)
|
|
181
|
+
};
|
|
182
|
+
default:
|
|
183
|
+
d(e);
|
|
161
184
|
}
|
|
162
185
|
}
|
|
163
|
-
function
|
|
186
|
+
function C(e) {
|
|
187
|
+
return b(e);
|
|
188
|
+
}
|
|
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) {
|
|
164
239
|
const { type: t, name: n, domain: r } = e, o = { type: t, name: n };
|
|
165
240
|
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
166
241
|
}
|
|
167
|
-
function
|
|
168
|
-
return e.map(
|
|
242
|
+
function q(e) {
|
|
243
|
+
return e.map(p);
|
|
169
244
|
}
|
|
170
|
-
function
|
|
171
|
-
return
|
|
245
|
+
function te(e) {
|
|
246
|
+
return C(p(e));
|
|
172
247
|
}
|
|
173
|
-
function
|
|
248
|
+
function M(e, t) {
|
|
174
249
|
if (e === void 0) return t === void 0;
|
|
175
250
|
if (t === void 0) return !0;
|
|
176
251
|
for (const n in t)
|
|
177
252
|
if (e[n] !== t[n]) return !1;
|
|
178
253
|
return !0;
|
|
179
254
|
}
|
|
180
|
-
function
|
|
181
|
-
return e.name === t.name &&
|
|
255
|
+
function T(e, t) {
|
|
256
|
+
return e.name === t.name && M(e.domain, t.domain);
|
|
182
257
|
}
|
|
183
|
-
function
|
|
184
|
-
return { ...e, src:
|
|
258
|
+
function ne(e, t) {
|
|
259
|
+
return { ...e, src: y(e.src, t) };
|
|
185
260
|
}
|
|
186
|
-
function
|
|
261
|
+
function y(e, t) {
|
|
187
262
|
switch (e.type) {
|
|
188
263
|
case "column":
|
|
189
264
|
return {
|
|
@@ -203,47 +278,47 @@ function p(e, t) {
|
|
|
203
278
|
case "full":
|
|
204
279
|
return {
|
|
205
280
|
type: e.type,
|
|
206
|
-
entries: e.entries.map((n) =>
|
|
281
|
+
entries: e.entries.map((n) => y(n, t))
|
|
207
282
|
};
|
|
208
283
|
case "outer":
|
|
209
284
|
return {
|
|
210
285
|
type: "outer",
|
|
211
|
-
primary:
|
|
212
|
-
secondary: e.secondary.map((n) =>
|
|
286
|
+
primary: y(e.primary, t),
|
|
287
|
+
secondary: e.secondary.map((n) => y(n, t))
|
|
213
288
|
};
|
|
214
289
|
default:
|
|
215
|
-
|
|
290
|
+
d(e);
|
|
216
291
|
}
|
|
217
292
|
}
|
|
218
|
-
function
|
|
219
|
-
return
|
|
293
|
+
function F(e) {
|
|
294
|
+
return b(e);
|
|
220
295
|
}
|
|
221
296
|
function x(e) {
|
|
222
|
-
return
|
|
297
|
+
return b(p(e));
|
|
223
298
|
}
|
|
224
|
-
function
|
|
299
|
+
function P(e, t) {
|
|
225
300
|
return JSON.stringify([e, t]);
|
|
226
301
|
}
|
|
227
|
-
class
|
|
302
|
+
class re {
|
|
228
303
|
/**
|
|
229
304
|
* Creates a new anchor context from a set of anchor column specifications
|
|
230
305
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
231
306
|
*/
|
|
232
307
|
constructor(t) {
|
|
233
|
-
|
|
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;
|
|
234
309
|
const n = Object.entries(t);
|
|
235
310
|
n.sort((r, o) => r[0].localeCompare(o[0]));
|
|
236
311
|
for (const [r, o] of n) {
|
|
237
312
|
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
238
|
-
const
|
|
239
|
-
this.axes.set(
|
|
313
|
+
const s = o.axesSpec[i], c = x(s);
|
|
314
|
+
this.axes.set(c, { anchor: r, idx: i });
|
|
240
315
|
}
|
|
241
316
|
if (o.domain !== void 0) {
|
|
242
317
|
const i = Object.entries(o.domain);
|
|
243
|
-
i.sort((
|
|
244
|
-
for (const [
|
|
245
|
-
const
|
|
246
|
-
this.domains.set(
|
|
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);
|
|
247
322
|
}
|
|
248
323
|
}
|
|
249
324
|
}
|
|
@@ -259,47 +334,47 @@ class Q {
|
|
|
259
334
|
let o;
|
|
260
335
|
if (t.domain !== void 0)
|
|
261
336
|
e:
|
|
262
|
-
for (const
|
|
263
|
-
const
|
|
264
|
-
for (const
|
|
265
|
-
const
|
|
266
|
-
if (
|
|
267
|
-
|
|
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]);
|
|
268
343
|
else
|
|
269
344
|
break e;
|
|
270
345
|
}
|
|
271
|
-
const
|
|
272
|
-
if (
|
|
273
|
-
r.domainAnchor =
|
|
346
|
+
const u = this.domainPackToAnchor.get(JSON.stringify(c));
|
|
347
|
+
if (u !== void 0) {
|
|
348
|
+
r.domainAnchor = u, o = new Set(s);
|
|
274
349
|
break;
|
|
275
350
|
}
|
|
276
351
|
}
|
|
277
|
-
for (const [
|
|
278
|
-
if (o !== void 0 && o.has(
|
|
352
|
+
for (const [s, c] of Object.entries(t.domain ?? {})) {
|
|
353
|
+
if (o !== void 0 && o.has(s))
|
|
279
354
|
continue;
|
|
280
|
-
const
|
|
281
|
-
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;
|
|
282
357
|
}
|
|
283
|
-
if (r.axes = t.axesSpec.map((
|
|
284
|
-
const
|
|
285
|
-
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;
|
|
286
361
|
}), !n || n.length === 0)
|
|
287
362
|
return r;
|
|
288
363
|
const i = [];
|
|
289
|
-
for (const
|
|
290
|
-
const [
|
|
291
|
-
if (typeof
|
|
292
|
-
if (
|
|
293
|
-
throw new Error(`Axis index ${
|
|
294
|
-
i.push([
|
|
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]);
|
|
295
370
|
} else {
|
|
296
|
-
const
|
|
297
|
-
if (
|
|
298
|
-
throw new Error(`Axis with name "${
|
|
299
|
-
i.push([
|
|
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]);
|
|
300
375
|
}
|
|
301
376
|
}
|
|
302
|
-
return i.sort((
|
|
377
|
+
return i.sort((s, c) => s[0] - c[0]), {
|
|
303
378
|
source: r,
|
|
304
379
|
axisFilters: i
|
|
305
380
|
};
|
|
@@ -311,40 +386,40 @@ class Q {
|
|
|
311
386
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
312
387
|
*/
|
|
313
388
|
deriveS(t, n) {
|
|
314
|
-
return
|
|
389
|
+
return F(this.derive(t, n));
|
|
315
390
|
}
|
|
316
391
|
}
|
|
317
|
-
function
|
|
392
|
+
function oe(e, t, n) {
|
|
318
393
|
const r = { ...t }, o = (n == null ? void 0 : n.ignoreMissingDomains) ?? !1;
|
|
319
394
|
if (r.domainAnchor !== void 0) {
|
|
320
395
|
const i = e[r.domainAnchor];
|
|
321
396
|
if (!i)
|
|
322
397
|
throw new Error(`Anchor "${r.domainAnchor}" not found`);
|
|
323
|
-
const
|
|
324
|
-
r.domain = { ...
|
|
398
|
+
const s = i.domain || {};
|
|
399
|
+
r.domain = { ...s, ...r.domain }, delete r.domainAnchor;
|
|
325
400
|
}
|
|
326
401
|
if (r.domain) {
|
|
327
402
|
const i = {};
|
|
328
|
-
for (const [
|
|
329
|
-
if (typeof
|
|
330
|
-
i[
|
|
403
|
+
for (const [s, c] of Object.entries(r.domain))
|
|
404
|
+
if (typeof c == "string")
|
|
405
|
+
i[s] = c;
|
|
331
406
|
else {
|
|
332
|
-
const
|
|
333
|
-
if (!
|
|
334
|
-
throw new Error(`Anchor "${
|
|
335
|
-
if (!
|
|
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) {
|
|
336
411
|
if (!o)
|
|
337
|
-
throw new Error(`Domain key "${
|
|
412
|
+
throw new Error(`Domain key "${s}" not found in anchor "${c.anchor}"`);
|
|
338
413
|
continue;
|
|
339
414
|
}
|
|
340
|
-
i[
|
|
415
|
+
i[s] = u.domain[s];
|
|
341
416
|
}
|
|
342
417
|
r.domain = i;
|
|
343
418
|
}
|
|
344
419
|
return r.axes && (r.axes = r.axes.map((i) => K(e, i))), r;
|
|
345
420
|
}
|
|
346
421
|
function K(e, t) {
|
|
347
|
-
if (!
|
|
422
|
+
if (!B(t))
|
|
348
423
|
return t;
|
|
349
424
|
const n = t.anchor, r = e[n];
|
|
350
425
|
if (!r)
|
|
@@ -361,7 +436,7 @@ function K(e, t) {
|
|
|
361
436
|
throw new Error(`Axis with name "${t.name}" not found in anchor "${n}"`);
|
|
362
437
|
return o[0];
|
|
363
438
|
} else if ("id" in t) {
|
|
364
|
-
const o = r.axesSpec.filter((i) =>
|
|
439
|
+
const o = r.axesSpec.filter((i) => T(t.id, p(i)));
|
|
365
440
|
if (o.length > 1)
|
|
366
441
|
throw new Error(`Multiple matching axes found for matcher in anchor "${n}"`);
|
|
367
442
|
if (o.length === 0)
|
|
@@ -370,26 +445,26 @@ function K(e, t) {
|
|
|
370
445
|
}
|
|
371
446
|
throw new Error("Unsupported axis reference type");
|
|
372
447
|
}
|
|
373
|
-
function
|
|
448
|
+
function B(e) {
|
|
374
449
|
return typeof e == "object" && "anchor" in e;
|
|
375
450
|
}
|
|
376
|
-
function
|
|
451
|
+
function g(e) {
|
|
377
452
|
return e.kind === "PColumn";
|
|
378
453
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
454
|
+
function R(e) {
|
|
455
|
+
return g(e.spec);
|
|
381
456
|
}
|
|
382
|
-
function
|
|
383
|
-
if (!
|
|
457
|
+
function ae(e) {
|
|
458
|
+
if (!R(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
384
459
|
return e;
|
|
385
460
|
}
|
|
386
|
-
function
|
|
461
|
+
function ie(e, t) {
|
|
387
462
|
return e === void 0 ? void 0 : {
|
|
388
463
|
...e,
|
|
389
464
|
data: t(e.data)
|
|
390
465
|
};
|
|
391
466
|
}
|
|
392
|
-
function
|
|
467
|
+
function se(e) {
|
|
393
468
|
const t = /* @__PURE__ */ new Map(), n = (r) => {
|
|
394
469
|
switch (r.type) {
|
|
395
470
|
case "column":
|
|
@@ -409,7 +484,7 @@ function Z(e) {
|
|
|
409
484
|
for (const o of r.secondary) n(o);
|
|
410
485
|
return;
|
|
411
486
|
default:
|
|
412
|
-
|
|
487
|
+
d(r);
|
|
413
488
|
}
|
|
414
489
|
};
|
|
415
490
|
return n(e), [...t.values()];
|
|
@@ -449,7 +524,7 @@ function w(e, t) {
|
|
|
449
524
|
return !1;
|
|
450
525
|
}
|
|
451
526
|
if (t.axes !== void 0) {
|
|
452
|
-
const n = e.axesSpec.map(
|
|
527
|
+
const n = e.axesSpec.map(p);
|
|
453
528
|
if (t.partialAxesMatch) {
|
|
454
529
|
for (const r of t.axes)
|
|
455
530
|
if (!n.some((o) => v(r, o)))
|
|
@@ -478,28 +553,28 @@ function w(e, t) {
|
|
|
478
553
|
}
|
|
479
554
|
return !0;
|
|
480
555
|
}
|
|
481
|
-
function
|
|
482
|
-
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);
|
|
483
558
|
}
|
|
484
|
-
function
|
|
559
|
+
function ue(e) {
|
|
485
560
|
const t = {
|
|
486
561
|
kind: e.kind,
|
|
487
562
|
name: e.name
|
|
488
563
|
};
|
|
489
|
-
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);
|
|
490
565
|
}
|
|
491
|
-
|
|
492
|
-
__isRef:
|
|
493
|
-
blockId:
|
|
494
|
-
name:
|
|
495
|
-
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")
|
|
496
571
|
}).describe(
|
|
497
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."
|
|
498
573
|
).readonly();
|
|
499
|
-
function
|
|
574
|
+
function fe(e) {
|
|
500
575
|
return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === !0 && "blockId" in e && "name" in e;
|
|
501
576
|
}
|
|
502
|
-
function
|
|
577
|
+
function le(e, t = !0) {
|
|
503
578
|
if (t)
|
|
504
579
|
return {
|
|
505
580
|
...e,
|
|
@@ -510,43 +585,51 @@ function re(e, t = !0) {
|
|
|
510
585
|
return r;
|
|
511
586
|
}
|
|
512
587
|
}
|
|
513
|
-
function
|
|
588
|
+
function pe(e, t) {
|
|
514
589
|
return e.ok ? { ok: !0, value: t(e.value) } : e;
|
|
515
590
|
}
|
|
516
|
-
const
|
|
517
|
-
|
|
591
|
+
const U = 24;
|
|
592
|
+
a.string().length(U).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
518
593
|
export {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
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,
|
|
534
614
|
I as isImportFileHandleUpload,
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
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,
|
|
544
624
|
v as matchAxis,
|
|
545
|
-
|
|
625
|
+
T as matchAxisId,
|
|
546
626
|
w as matchPColumn,
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
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
|
|
551
634
|
};
|
|
552
635
|
//# sourceMappingURL=index.js.map
|