@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.
- package/.turbo/turbo-build.log +25 -24
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +16 -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 +122 -123
- package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-state-v2.js +9 -9
- 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 +169 -184
- 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 +576 -444
- 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/PlAccordionSection.vue2.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 +17 -17
- 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/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 +257 -192
- 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 +473 -457
- 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 +542 -526
- package/dist/sdk/model/dist/index.js.map +1 -1
- package/package.json +3 -3
- 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/.turbo/turbo-test.log +0 -565
- package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js +0 -27
- package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +0 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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
|
-
|
|
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
|
-
function
|
|
10
|
+
function l(n) {
|
|
11
11
|
throw new Error("Unexpected object: " + n);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function
|
|
15
|
-
return n.startsWith(
|
|
13
|
+
const w = "upload://upload/", k = "index://index/";
|
|
14
|
+
function S(n) {
|
|
15
|
+
return n.startsWith(w);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function j(n) {
|
|
18
18
|
return n.startsWith(k);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
if (
|
|
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 (
|
|
25
|
-
const e = n.slice(
|
|
24
|
+
} else if (S(n)) {
|
|
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;
|
|
@@ -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
|
|
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
|
|
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
|
|
99
|
-
|
|
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
|
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
224
|
+
function K(n) {
|
|
168
225
|
return n.map(d);
|
|
169
226
|
}
|
|
170
|
-
function
|
|
171
|
-
return
|
|
227
|
+
function en(n) {
|
|
228
|
+
return L(d(n));
|
|
172
229
|
}
|
|
173
|
-
function
|
|
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
|
|
181
|
-
return n.name === e.name &&
|
|
237
|
+
function T(n, e) {
|
|
238
|
+
return n.name === e.name && D(n.domain, e.domain);
|
|
182
239
|
}
|
|
183
|
-
function
|
|
184
|
-
return { ...n, src:
|
|
240
|
+
function tn(n, e) {
|
|
241
|
+
return { ...n, src: h(n.src, e) };
|
|
185
242
|
}
|
|
186
|
-
function
|
|
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) =>
|
|
263
|
+
entries: n.entries.map((t) => h(t, e))
|
|
207
264
|
};
|
|
208
265
|
case "outer":
|
|
209
266
|
return {
|
|
210
267
|
type: "outer",
|
|
211
|
-
primary:
|
|
212
|
-
secondary: n.secondary.map((t) =>
|
|
268
|
+
primary: h(n.primary, e),
|
|
269
|
+
secondary: n.secondary.map((t) => h(t, e))
|
|
213
270
|
};
|
|
214
271
|
default:
|
|
215
|
-
|
|
272
|
+
l(n);
|
|
216
273
|
}
|
|
217
274
|
}
|
|
218
|
-
function
|
|
219
|
-
return
|
|
275
|
+
function q(n) {
|
|
276
|
+
return g(n);
|
|
220
277
|
}
|
|
221
|
-
function
|
|
222
|
-
return
|
|
278
|
+
function b(n) {
|
|
279
|
+
return g(d(n));
|
|
223
280
|
}
|
|
224
|
-
function
|
|
281
|
+
function x(n, e) {
|
|
225
282
|
return JSON.stringify([n, e]);
|
|
226
283
|
}
|
|
227
|
-
class
|
|
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
|
|
238
|
-
const
|
|
239
|
-
this.axes.set(
|
|
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
|
|
243
|
-
|
|
244
|
-
for (const [
|
|
245
|
-
const
|
|
246
|
-
this.domains.set(
|
|
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
|
|
263
|
-
const
|
|
264
|
-
for (const f of
|
|
265
|
-
const
|
|
266
|
-
if (
|
|
267
|
-
|
|
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
|
|
272
|
-
if (
|
|
273
|
-
r.domainAnchor =
|
|
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 [
|
|
278
|
-
if (o !== void 0 && o.has(
|
|
334
|
+
for (const [s, c] of Object.entries(e.domain ?? {})) {
|
|
335
|
+
if (o !== void 0 && o.has(s))
|
|
279
336
|
continue;
|
|
280
|
-
const
|
|
281
|
-
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;
|
|
282
339
|
}
|
|
283
|
-
if (r.axes = e.axesSpec.map((
|
|
284
|
-
const
|
|
285
|
-
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;
|
|
286
343
|
}), !t || t.length === 0)
|
|
287
344
|
return r;
|
|
288
|
-
const
|
|
289
|
-
for (const
|
|
290
|
-
const [
|
|
291
|
-
if (typeof
|
|
292
|
-
if (
|
|
293
|
-
throw new Error(`Axis index ${
|
|
294
|
-
|
|
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((
|
|
353
|
+
const f = e.axesSpec.findIndex((p) => p.name === c);
|
|
297
354
|
if (f === -1)
|
|
298
|
-
throw new Error(`Axis with name "${
|
|
299
|
-
|
|
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
|
|
359
|
+
return a.sort((s, c) => s[0] - c[0]), {
|
|
303
360
|
source: r,
|
|
304
|
-
axisFilters:
|
|
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
|
|
371
|
+
return q(this.derive(e, t));
|
|
315
372
|
}
|
|
316
373
|
}
|
|
317
|
-
function
|
|
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
|
|
321
|
-
if (!
|
|
377
|
+
const a = n[r.domainAnchor];
|
|
378
|
+
if (!a)
|
|
322
379
|
throw new Error(`Anchor "${r.domainAnchor}" not found`);
|
|
323
|
-
const
|
|
324
|
-
r.domain = { ...
|
|
380
|
+
const s = a.domain || {};
|
|
381
|
+
r.domain = { ...s, ...r.domain }, delete r.domainAnchor;
|
|
325
382
|
}
|
|
326
383
|
if (r.domain) {
|
|
327
|
-
const
|
|
328
|
-
for (const [
|
|
329
|
-
if (typeof
|
|
330
|
-
|
|
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
|
|
333
|
-
if (!
|
|
334
|
-
throw new Error(`Anchor "${
|
|
335
|
-
if (!
|
|
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 "${
|
|
394
|
+
throw new Error(`Domain key "${s}" not found in anchor "${c.anchor}"`);
|
|
338
395
|
continue;
|
|
339
396
|
}
|
|
340
|
-
|
|
397
|
+
a[s] = u.domain[s];
|
|
341
398
|
}
|
|
342
|
-
r.domain =
|
|
399
|
+
r.domain = a;
|
|
343
400
|
}
|
|
344
|
-
return r.axes && (r.axes = r.axes.map((
|
|
401
|
+
return r.axes && (r.axes = r.axes.map((a) => F(n, a))), r;
|
|
345
402
|
}
|
|
346
|
-
function
|
|
347
|
-
if (!
|
|
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((
|
|
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((
|
|
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
|
|
430
|
+
function B(n) {
|
|
374
431
|
return typeof n == "object" && "anchor" in n;
|
|
375
432
|
}
|
|
376
|
-
function
|
|
433
|
+
function y(n) {
|
|
377
434
|
return n.kind === "PColumn";
|
|
378
435
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
436
|
+
function M(n) {
|
|
437
|
+
return y(n.spec);
|
|
381
438
|
}
|
|
382
|
-
function
|
|
383
|
-
if (!
|
|
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
|
|
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
|
|
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
|
-
|
|
469
|
+
l(r);
|
|
413
470
|
}
|
|
414
471
|
};
|
|
415
472
|
return t(n), [...e.values()];
|
|
416
473
|
}
|
|
417
|
-
function
|
|
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
|
|
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) =>
|
|
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 (!
|
|
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
|
|
475
|
-
if (
|
|
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
|
|
482
|
-
return Array.isArray(n) ? (e) => n.some((t) =>
|
|
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
|
|
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),
|
|
546
|
+
return n.domain !== void 0 && (e.domain = n.domain), y(n) && (e.axesSpec = K(n.axesSpec)), g(e);
|
|
490
547
|
}
|
|
491
|
-
|
|
492
|
-
__isRef:
|
|
493
|
-
blockId:
|
|
494
|
-
name:
|
|
495
|
-
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")
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
574
|
+
i.string().length(R).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
518
575
|
export {
|
|
519
|
-
|
|
576
|
+
rn as AnchoredIdDeriver,
|
|
577
|
+
Y as Annotation,
|
|
578
|
+
$ as AxisSpec,
|
|
579
|
+
nn as PColumnName,
|
|
520
580
|
R as PlIdLength,
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
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
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
N as
|
|
550
|
-
|
|
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
|