@platforma-sdk/ui-vue 1.42.3 → 1.42.4
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 +11 -11
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +9 -0
- package/dist/aggrid.js +4 -4
- package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue2.js +7 -7
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +13 -13
- package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-source-v2.js +88 -85
- package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-state-v2.js +6 -6
- package/dist/components/PlAnnotations/components/DynamicForm.vue2.js +10 -10
- package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js +2 -2
- package/dist/components/PlMultiSequenceAlignment/data.js +26 -26
- package/dist/components/PlTableFilters/filters-state.js +2 -2
- package/dist/defineApp.js +16 -16
- package/dist/internal/createAppV2.js +9 -9
- package/dist/lib/model/common/dist/index.js +329 -317
- package/dist/lib/model/common/dist/index.js.map +1 -1
- package/dist/lib/ui/uikit/dist/components/PlAccordion/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
- package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +1 -0
- package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +16 -16
- package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
- package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +8 -8
- 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 +18 -18
- package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js.map +1 -1
- package/dist/sdk/model/dist/index.js +198 -206
- package/dist/sdk/model/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/components/PlAgDataTable/sources/table-source-v2.ts +9 -6
- package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js.map +0 -1
|
@@ -1,288 +1,304 @@
|
|
|
1
1
|
import f from "../../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
|
|
2
2
|
import p from "../../../../_virtual/canonicalize.js";
|
|
3
|
-
var
|
|
3
|
+
var E = Object.defineProperty, S = (t, e, n) => e in t ? E(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, m = (t, e, n) => S(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
f.object({
|
|
5
5
|
/** Included left border. */
|
|
6
6
|
from: f.number(),
|
|
7
7
|
/** Excluded right border. */
|
|
8
8
|
to: f.number()
|
|
9
9
|
});
|
|
10
|
-
function
|
|
11
|
-
throw new Error("Unexpected object: " +
|
|
10
|
+
function x(t) {
|
|
11
|
+
throw new Error("Unexpected object: " + t);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
if (!
|
|
13
|
+
function Y(t) {
|
|
14
|
+
if (!t || typeof t != "object")
|
|
15
15
|
return !1;
|
|
16
|
-
const
|
|
17
|
-
if (!("type" in
|
|
16
|
+
const e = t;
|
|
17
|
+
if (!("type" in e))
|
|
18
18
|
return !1;
|
|
19
|
-
switch (
|
|
19
|
+
switch (e.type) {
|
|
20
20
|
case "Json":
|
|
21
|
-
return typeof
|
|
21
|
+
return typeof e.keyLength == "number" && e.data !== void 0 && typeof e.data == "object";
|
|
22
22
|
case "JsonPartitioned":
|
|
23
|
-
return typeof
|
|
23
|
+
return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
|
|
24
24
|
case "BinaryPartitioned":
|
|
25
|
-
return typeof
|
|
25
|
+
return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
|
|
26
26
|
default:
|
|
27
27
|
return !1;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
if (
|
|
32
|
-
switch (
|
|
30
|
+
function Z(t, e) {
|
|
31
|
+
if (t !== void 0)
|
|
32
|
+
switch (t.type) {
|
|
33
33
|
case "Json":
|
|
34
|
-
return
|
|
34
|
+
return t;
|
|
35
35
|
case "JsonPartitioned": {
|
|
36
36
|
const n = {};
|
|
37
|
-
for (const [r, o] of Object.entries(
|
|
38
|
-
n[r] =
|
|
37
|
+
for (const [r, o] of Object.entries(t.parts))
|
|
38
|
+
n[r] = e(o);
|
|
39
39
|
return {
|
|
40
|
-
...
|
|
40
|
+
...t,
|
|
41
41
|
parts: n
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
case "BinaryPartitioned": {
|
|
45
45
|
const n = {};
|
|
46
|
-
for (const [r, o] of Object.entries(
|
|
46
|
+
for (const [r, o] of Object.entries(t.parts))
|
|
47
47
|
n[r] = {
|
|
48
|
-
index:
|
|
49
|
-
values:
|
|
48
|
+
index: e(o.index),
|
|
49
|
+
values: e(o.values)
|
|
50
50
|
};
|
|
51
51
|
return {
|
|
52
|
-
...
|
|
52
|
+
...t,
|
|
53
53
|
parts: n
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
if (!
|
|
58
|
+
function I(t) {
|
|
59
|
+
if (!t || typeof t != "object")
|
|
60
60
|
return !1;
|
|
61
|
-
const
|
|
62
|
-
if (!("type" in
|
|
61
|
+
const e = t;
|
|
62
|
+
if (!("type" in e))
|
|
63
63
|
return !1;
|
|
64
|
-
switch (
|
|
64
|
+
switch (e.type) {
|
|
65
65
|
case "Json":
|
|
66
|
-
return typeof
|
|
66
|
+
return typeof e.keyLength == "number" && Array.isArray(e.data);
|
|
67
67
|
case "JsonPartitioned":
|
|
68
|
-
return typeof
|
|
68
|
+
return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
|
|
69
69
|
case "BinaryPartitioned":
|
|
70
|
-
return typeof
|
|
70
|
+
return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
|
|
71
71
|
default:
|
|
72
72
|
return !1;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function tt(t) {
|
|
76
|
+
return I(t) ? t.type === "JsonPartitioned" || t.type === "BinaryPartitioned" : !1;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
switch (
|
|
78
|
+
function et(t) {
|
|
79
|
+
switch (t.type) {
|
|
80
80
|
case "Json": {
|
|
81
|
-
const
|
|
81
|
+
const e = Object.entries(t.data).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
|
|
82
82
|
return {
|
|
83
83
|
type: "Json",
|
|
84
|
-
keyLength:
|
|
85
|
-
data:
|
|
84
|
+
keyLength: t.keyLength,
|
|
85
|
+
data: e
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
case "JsonPartitioned": {
|
|
89
|
-
const
|
|
89
|
+
const e = Object.entries(t.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
|
|
90
90
|
return {
|
|
91
91
|
type: "JsonPartitioned",
|
|
92
|
-
partitionKeyLength:
|
|
93
|
-
parts:
|
|
92
|
+
partitionKeyLength: t.partitionKeyLength,
|
|
93
|
+
parts: e
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
case "BinaryPartitioned": {
|
|
97
|
-
const
|
|
97
|
+
const e = Object.entries(t.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
|
|
98
98
|
return {
|
|
99
99
|
type: "BinaryPartitioned",
|
|
100
|
-
partitionKeyLength:
|
|
101
|
-
parts:
|
|
100
|
+
partitionKeyLength: t.partitionKeyLength,
|
|
101
|
+
parts: e
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
switch (
|
|
106
|
+
function nt(t) {
|
|
107
|
+
switch (t.type) {
|
|
108
108
|
case "Json": {
|
|
109
|
-
const
|
|
110
|
-
for (const n of
|
|
111
|
-
|
|
109
|
+
const e = {};
|
|
110
|
+
for (const n of t.data)
|
|
111
|
+
e[JSON.stringify(n.key)] = n.value;
|
|
112
112
|
return {
|
|
113
113
|
type: "Json",
|
|
114
|
-
keyLength:
|
|
115
|
-
data:
|
|
114
|
+
keyLength: t.keyLength,
|
|
115
|
+
data: e
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
case "JsonPartitioned": {
|
|
119
|
-
const
|
|
120
|
-
for (const n of
|
|
121
|
-
|
|
119
|
+
const e = {};
|
|
120
|
+
for (const n of t.parts)
|
|
121
|
+
e[JSON.stringify(n.key)] = n.value;
|
|
122
122
|
return {
|
|
123
123
|
type: "JsonPartitioned",
|
|
124
|
-
partitionKeyLength:
|
|
125
|
-
parts:
|
|
124
|
+
partitionKeyLength: t.partitionKeyLength,
|
|
125
|
+
parts: e
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
case "BinaryPartitioned": {
|
|
129
|
-
const
|
|
130
|
-
for (const n of
|
|
131
|
-
|
|
129
|
+
const e = {};
|
|
130
|
+
for (const n of t.parts)
|
|
131
|
+
e[JSON.stringify(n.key)] = n.value;
|
|
132
132
|
return {
|
|
133
133
|
type: "BinaryPartitioned",
|
|
134
|
-
partitionKeyLength:
|
|
135
|
-
parts:
|
|
134
|
+
partitionKeyLength: t.partitionKeyLength,
|
|
135
|
+
parts: e
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
function A(t, e) {
|
|
141
|
+
const n = Math.floor(e / 8), r = 1 << 7 - e % 8;
|
|
142
|
+
return (t[n] & r) > 0;
|
|
143
|
+
}
|
|
144
|
+
function J(t, e) {
|
|
145
|
+
return A(t.absent, e);
|
|
146
|
+
}
|
|
147
|
+
function O(t, e) {
|
|
148
|
+
if (t.isNA) return A(t.isNA, e);
|
|
149
|
+
const n = t.type, r = t.data[e];
|
|
150
|
+
switch (n) {
|
|
143
151
|
case "Int":
|
|
144
|
-
return
|
|
152
|
+
return r === -2147483648;
|
|
145
153
|
case "Long":
|
|
146
|
-
return
|
|
154
|
+
return r === -9007199254740991n;
|
|
147
155
|
case "Float":
|
|
148
|
-
return Number.isNaN(
|
|
156
|
+
return Number.isNaN(r);
|
|
149
157
|
case "Double":
|
|
150
|
-
return Number.isNaN(
|
|
158
|
+
return Number.isNaN(r);
|
|
151
159
|
case "String":
|
|
152
|
-
return
|
|
160
|
+
return r === null;
|
|
153
161
|
case "Bytes":
|
|
154
|
-
return
|
|
162
|
+
return r === null;
|
|
155
163
|
default:
|
|
156
|
-
throw Error(`unsupported data type: ${
|
|
164
|
+
throw Error(`unsupported data type: ${n}`);
|
|
157
165
|
}
|
|
158
166
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
return
|
|
162
|
-
}
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
-
return
|
|
166
|
-
}
|
|
167
|
-
function
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
167
|
+
const N = { type: "absent" };
|
|
168
|
+
function rt(t) {
|
|
169
|
+
return typeof t == "object" && t !== null && "type" in t && t.type === "absent";
|
|
170
|
+
}
|
|
171
|
+
const P = null;
|
|
172
|
+
function j(t) {
|
|
173
|
+
return t === P;
|
|
174
|
+
}
|
|
175
|
+
function ot(t, e) {
|
|
176
|
+
return !j(t);
|
|
177
|
+
}
|
|
178
|
+
function C(t, e, n) {
|
|
179
|
+
const r = t.type;
|
|
180
|
+
if (r === "Bytes")
|
|
181
|
+
throw Error("Bytes not yet supported");
|
|
182
|
+
if (n && "dataType" in n && n.dataType !== void 0 && n.dataType !== r)
|
|
183
|
+
throw Error(`expected column of type ${n.dataType}, got ${r}`);
|
|
184
|
+
if (J(t, e))
|
|
185
|
+
return (n == null ? void 0 : n.absent) !== void 0 ? n.absent : N;
|
|
186
|
+
if (O(t, e))
|
|
187
|
+
return (n == null ? void 0 : n.na) !== void 0 ? n.na : P;
|
|
188
|
+
const o = t.data[e];
|
|
189
|
+
switch (r) {
|
|
173
190
|
case "Int":
|
|
174
|
-
return
|
|
191
|
+
return o;
|
|
175
192
|
case "Long":
|
|
176
|
-
return Number(
|
|
193
|
+
return Number(o);
|
|
177
194
|
case "Float":
|
|
178
|
-
return
|
|
195
|
+
return o;
|
|
179
196
|
case "Double":
|
|
180
|
-
return
|
|
197
|
+
return o;
|
|
181
198
|
case "String":
|
|
182
|
-
return
|
|
183
|
-
case "Bytes":
|
|
184
|
-
throw Error("Bytes not yet supported");
|
|
185
|
-
default:
|
|
186
|
-
throw Error(`unsupported data type: ${o}`);
|
|
199
|
+
return o;
|
|
187
200
|
}
|
|
188
201
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
202
|
+
function at(t, e, n) {
|
|
203
|
+
return C(t, e, n);
|
|
204
|
+
}
|
|
205
|
+
function l(t) {
|
|
206
|
+
const { type: e, name: n, domain: r } = t, o = { type: e, name: n };
|
|
191
207
|
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
192
208
|
}
|
|
193
|
-
function
|
|
194
|
-
return
|
|
209
|
+
function $(t) {
|
|
210
|
+
return t.map(l);
|
|
195
211
|
}
|
|
196
|
-
function
|
|
197
|
-
return p(l(
|
|
212
|
+
function it(t) {
|
|
213
|
+
return p(l(t));
|
|
198
214
|
}
|
|
199
|
-
function T(
|
|
200
|
-
if (
|
|
201
|
-
if (
|
|
202
|
-
for (const n in
|
|
203
|
-
if (
|
|
215
|
+
function T(t, e) {
|
|
216
|
+
if (t === void 0) return e === void 0;
|
|
217
|
+
if (e === void 0) return !0;
|
|
218
|
+
for (const n in e)
|
|
219
|
+
if (t[n] !== e[n]) return !1;
|
|
204
220
|
return !0;
|
|
205
221
|
}
|
|
206
|
-
function
|
|
207
|
-
return
|
|
222
|
+
function L(t, e) {
|
|
223
|
+
return t.name === e.name && T(t.domain, e.domain);
|
|
208
224
|
}
|
|
209
|
-
function
|
|
210
|
-
return { ...
|
|
225
|
+
function st(t, e) {
|
|
226
|
+
return { ...t, src: y(t.src, e) };
|
|
211
227
|
}
|
|
212
|
-
function y(
|
|
213
|
-
switch (
|
|
228
|
+
function y(t, e) {
|
|
229
|
+
switch (t.type) {
|
|
214
230
|
case "column":
|
|
215
231
|
return {
|
|
216
232
|
type: "column",
|
|
217
|
-
column: t
|
|
233
|
+
column: e(t.column)
|
|
218
234
|
};
|
|
219
235
|
case "slicedColumn":
|
|
220
236
|
return {
|
|
221
237
|
type: "slicedColumn",
|
|
222
|
-
column: t
|
|
223
|
-
newId:
|
|
224
|
-
axisFilters:
|
|
238
|
+
column: e(t.column),
|
|
239
|
+
newId: t.newId,
|
|
240
|
+
axisFilters: t.axisFilters
|
|
225
241
|
};
|
|
226
242
|
case "inlineColumn":
|
|
227
|
-
return
|
|
243
|
+
return t;
|
|
228
244
|
case "inner":
|
|
229
245
|
case "full":
|
|
230
246
|
return {
|
|
231
|
-
type:
|
|
232
|
-
entries:
|
|
247
|
+
type: t.type,
|
|
248
|
+
entries: t.entries.map((n) => y(n, e))
|
|
233
249
|
};
|
|
234
250
|
case "outer":
|
|
235
251
|
return {
|
|
236
252
|
type: "outer",
|
|
237
|
-
primary: y(
|
|
238
|
-
secondary:
|
|
253
|
+
primary: y(t.primary, e),
|
|
254
|
+
secondary: t.secondary.map((n) => y(n, e))
|
|
239
255
|
};
|
|
240
256
|
default:
|
|
241
|
-
|
|
257
|
+
x(t);
|
|
242
258
|
}
|
|
243
259
|
}
|
|
244
|
-
function
|
|
245
|
-
switch (
|
|
260
|
+
function ct(t) {
|
|
261
|
+
switch (t.type) {
|
|
246
262
|
case "axis":
|
|
247
263
|
return {
|
|
248
264
|
type: "axis",
|
|
249
|
-
id:
|
|
265
|
+
id: t.id
|
|
250
266
|
};
|
|
251
267
|
case "column":
|
|
252
268
|
return {
|
|
253
269
|
type: "column",
|
|
254
|
-
id:
|
|
270
|
+
id: t.id
|
|
255
271
|
};
|
|
256
272
|
}
|
|
257
273
|
}
|
|
258
|
-
function
|
|
259
|
-
return p(
|
|
274
|
+
function B(t) {
|
|
275
|
+
return p(t);
|
|
260
276
|
}
|
|
261
|
-
function
|
|
262
|
-
return p(l(
|
|
277
|
+
function b(t) {
|
|
278
|
+
return p(l(t));
|
|
263
279
|
}
|
|
264
|
-
function
|
|
265
|
-
return JSON.stringify([
|
|
280
|
+
function g(t, e) {
|
|
281
|
+
return JSON.stringify([t, e]);
|
|
266
282
|
}
|
|
267
|
-
class
|
|
283
|
+
class ut {
|
|
268
284
|
/**
|
|
269
285
|
* Creates a new anchor context from a set of anchor column specifications
|
|
270
286
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
271
287
|
*/
|
|
272
|
-
constructor(
|
|
273
|
-
m(this, "domains", /* @__PURE__ */ new Map()), m(this, "axes", /* @__PURE__ */ new Map()), m(this, "domainPacks", []), m(this, "domainPackToAnchor", /* @__PURE__ */ new Map()), this.anchors =
|
|
274
|
-
const n = Object.entries(
|
|
288
|
+
constructor(e) {
|
|
289
|
+
m(this, "domains", /* @__PURE__ */ new Map()), m(this, "axes", /* @__PURE__ */ new Map()), m(this, "domainPacks", []), m(this, "domainPackToAnchor", /* @__PURE__ */ new Map()), this.anchors = e;
|
|
290
|
+
const n = Object.entries(e);
|
|
275
291
|
n.sort((r, o) => r[0].localeCompare(o[0]));
|
|
276
292
|
for (const [r, o] of n) {
|
|
277
293
|
for (let s = 0; s < o.axesSpec.length; s++) {
|
|
278
|
-
const i = o.axesSpec[s], a =
|
|
294
|
+
const i = o.axesSpec[s], a = b(i);
|
|
279
295
|
this.axes.set(a, { anchor: r, idx: s });
|
|
280
296
|
}
|
|
281
297
|
if (o.domain !== void 0) {
|
|
282
298
|
const s = Object.entries(o.domain);
|
|
283
299
|
s.sort((i, a) => i[0].localeCompare(a[0])), this.domainPackToAnchor.set(JSON.stringify(s), r), this.domainPacks.push(s.map(([i]) => i));
|
|
284
300
|
for (const [i, a] of s) {
|
|
285
|
-
const c =
|
|
301
|
+
const c = g(i, a);
|
|
286
302
|
this.domains.set(c, r);
|
|
287
303
|
}
|
|
288
304
|
}
|
|
@@ -291,22 +307,22 @@ class ue {
|
|
|
291
307
|
/**
|
|
292
308
|
* Implementation of derive method
|
|
293
309
|
*/
|
|
294
|
-
derive(
|
|
310
|
+
derive(e, n) {
|
|
295
311
|
const r = {
|
|
296
|
-
name:
|
|
312
|
+
name: e.name,
|
|
297
313
|
axes: []
|
|
298
314
|
};
|
|
299
315
|
let o;
|
|
300
|
-
if (
|
|
301
|
-
|
|
316
|
+
if (e.domain !== void 0)
|
|
317
|
+
t:
|
|
302
318
|
for (const i of this.domainPacks) {
|
|
303
319
|
const a = [];
|
|
304
320
|
for (const u of i) {
|
|
305
|
-
const d =
|
|
321
|
+
const d = e.domain[u];
|
|
306
322
|
if (d !== void 0)
|
|
307
323
|
a.push([u, d]);
|
|
308
324
|
else
|
|
309
|
-
break
|
|
325
|
+
break t;
|
|
310
326
|
}
|
|
311
327
|
const c = this.domainPackToAnchor.get(JSON.stringify(a));
|
|
312
328
|
if (c !== void 0) {
|
|
@@ -314,14 +330,14 @@ class ue {
|
|
|
314
330
|
break;
|
|
315
331
|
}
|
|
316
332
|
}
|
|
317
|
-
for (const [i, a] of Object.entries(
|
|
333
|
+
for (const [i, a] of Object.entries(e.domain ?? {})) {
|
|
318
334
|
if (o !== void 0 && o.has(i))
|
|
319
335
|
continue;
|
|
320
|
-
const c =
|
|
336
|
+
const c = g(i, a), u = this.domains.get(c);
|
|
321
337
|
r.domain ?? (r.domain = {}), r.domain[i] = u ? { anchor: u } : a;
|
|
322
338
|
}
|
|
323
|
-
if (r.axes =
|
|
324
|
-
const a =
|
|
339
|
+
if (r.axes = e.axesSpec.map((i) => {
|
|
340
|
+
const a = b(i), c = this.axes.get(a);
|
|
325
341
|
return c === void 0 ? l(i) : c;
|
|
326
342
|
}), !n || n.length === 0)
|
|
327
343
|
return r;
|
|
@@ -329,11 +345,11 @@ class ue {
|
|
|
329
345
|
for (const i of n) {
|
|
330
346
|
const [a, c] = i;
|
|
331
347
|
if (typeof a == "number") {
|
|
332
|
-
if (a < 0 || a >=
|
|
333
|
-
throw new Error(`Axis index ${a} is out of bounds (0-${
|
|
348
|
+
if (a < 0 || a >= e.axesSpec.length)
|
|
349
|
+
throw new Error(`Axis index ${a} is out of bounds (0-${e.axesSpec.length - 1})`);
|
|
334
350
|
s.push([a, c]);
|
|
335
351
|
} else {
|
|
336
|
-
const u =
|
|
352
|
+
const u = e.axesSpec.findIndex((d) => d.name === a);
|
|
337
353
|
if (u === -1)
|
|
338
354
|
throw new Error(`Axis with name "${a}" not found in the column specification`);
|
|
339
355
|
s.push([u, c]);
|
|
@@ -350,14 +366,14 @@ class ue {
|
|
|
350
366
|
* @param axisFilters Optional axis filters to apply to the column
|
|
351
367
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
352
368
|
*/
|
|
353
|
-
deriveS(
|
|
354
|
-
return
|
|
369
|
+
deriveS(e, n) {
|
|
370
|
+
return B(this.derive(e, n));
|
|
355
371
|
}
|
|
356
372
|
}
|
|
357
|
-
function
|
|
358
|
-
const r = { ...
|
|
373
|
+
function ft(t, e, n) {
|
|
374
|
+
const r = { ...e }, o = (n == null ? void 0 : n.ignoreMissingDomains) ?? !1;
|
|
359
375
|
if (r.domainAnchor !== void 0) {
|
|
360
|
-
const s =
|
|
376
|
+
const s = t[r.domainAnchor];
|
|
361
377
|
if (!s)
|
|
362
378
|
throw new Error(`Anchor "${r.domainAnchor}" not found`);
|
|
363
379
|
const i = s.domain || {};
|
|
@@ -369,7 +385,7 @@ function fe(e, t, n) {
|
|
|
369
385
|
if (typeof a == "string")
|
|
370
386
|
s[i] = a;
|
|
371
387
|
else {
|
|
372
|
-
const c =
|
|
388
|
+
const c = t[a.anchor];
|
|
373
389
|
if (!c)
|
|
374
390
|
throw new Error(`Anchor "${a.anchor}" not found for domain key "${i}"`);
|
|
375
391
|
if (!c.domain || c.domain[i] === void 0) {
|
|
@@ -381,27 +397,27 @@ function fe(e, t, n) {
|
|
|
381
397
|
}
|
|
382
398
|
r.domain = s;
|
|
383
399
|
}
|
|
384
|
-
return r.axes && (r.axes = r.axes.map((s) => R(
|
|
400
|
+
return r.axes && (r.axes = r.axes.map((s) => R(t, s))), r;
|
|
385
401
|
}
|
|
386
|
-
function R(
|
|
387
|
-
if (!
|
|
388
|
-
return
|
|
389
|
-
const n =
|
|
402
|
+
function R(t, e) {
|
|
403
|
+
if (!D(e))
|
|
404
|
+
return e;
|
|
405
|
+
const n = e.anchor, r = t[n];
|
|
390
406
|
if (!r)
|
|
391
407
|
throw new Error(`Anchor "${n}" not found for axis reference`);
|
|
392
|
-
if ("idx" in
|
|
393
|
-
if (
|
|
394
|
-
throw new Error(`Axis index ${
|
|
395
|
-
return r.axesSpec[
|
|
396
|
-
} else if ("name" in
|
|
397
|
-
const o = r.axesSpec.filter((s) => s.name ===
|
|
408
|
+
if ("idx" in e) {
|
|
409
|
+
if (e.idx < 0 || e.idx >= r.axesSpec.length)
|
|
410
|
+
throw new Error(`Axis index ${e.idx} out of bounds for anchor "${n}"`);
|
|
411
|
+
return r.axesSpec[e.idx];
|
|
412
|
+
} else if ("name" in e) {
|
|
413
|
+
const o = r.axesSpec.filter((s) => s.name === e.name);
|
|
398
414
|
if (o.length > 1)
|
|
399
|
-
throw new Error(`Multiple axes with name "${
|
|
415
|
+
throw new Error(`Multiple axes with name "${e.name}" found in anchor "${n}"`);
|
|
400
416
|
if (o.length === 0)
|
|
401
|
-
throw new Error(`Axis with name "${
|
|
417
|
+
throw new Error(`Axis with name "${e.name}" not found in anchor "${n}"`);
|
|
402
418
|
return o[0];
|
|
403
|
-
} else if ("id" in
|
|
404
|
-
const o = r.axesSpec.filter((s) =>
|
|
419
|
+
} else if ("id" in e) {
|
|
420
|
+
const o = r.axesSpec.filter((s) => L(e.id, l(s)));
|
|
405
421
|
if (o.length > 1)
|
|
406
422
|
throw new Error(`Multiple matching axes found for matcher in anchor "${n}"`);
|
|
407
423
|
if (o.length === 0)
|
|
@@ -410,33 +426,33 @@ function R(e, t) {
|
|
|
410
426
|
}
|
|
411
427
|
throw new Error("Unsupported axis reference type");
|
|
412
428
|
}
|
|
413
|
-
function
|
|
414
|
-
return typeof
|
|
429
|
+
function D(t) {
|
|
430
|
+
return typeof t == "object" && "anchor" in t;
|
|
415
431
|
}
|
|
416
|
-
function h(
|
|
417
|
-
return
|
|
432
|
+
function h(t) {
|
|
433
|
+
return t.kind === "PColumn";
|
|
418
434
|
}
|
|
419
|
-
function K(
|
|
420
|
-
return h(
|
|
435
|
+
function K(t) {
|
|
436
|
+
return h(t.spec);
|
|
421
437
|
}
|
|
422
|
-
function
|
|
423
|
-
if (!K(
|
|
424
|
-
return
|
|
438
|
+
function dt(t) {
|
|
439
|
+
if (!K(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
|
|
440
|
+
return t;
|
|
425
441
|
}
|
|
426
|
-
function
|
|
427
|
-
return
|
|
428
|
-
...
|
|
429
|
-
data: t
|
|
442
|
+
function lt(t, e) {
|
|
443
|
+
return t === void 0 ? void 0 : {
|
|
444
|
+
...t,
|
|
445
|
+
data: e(t.data)
|
|
430
446
|
};
|
|
431
447
|
}
|
|
432
|
-
function
|
|
433
|
-
const
|
|
448
|
+
function pt(t) {
|
|
449
|
+
const e = /* @__PURE__ */ new Map(), n = (r) => {
|
|
434
450
|
switch (r.type) {
|
|
435
451
|
case "column":
|
|
436
|
-
|
|
452
|
+
e.set(r.column.id, r.column);
|
|
437
453
|
return;
|
|
438
454
|
case "slicedColumn":
|
|
439
|
-
|
|
455
|
+
e.set(r.column.id, r.column);
|
|
440
456
|
return;
|
|
441
457
|
case "inlineColumn":
|
|
442
458
|
return;
|
|
@@ -449,68 +465,68 @@ function pe(e) {
|
|
|
449
465
|
for (const o of r.secondary) n(o);
|
|
450
466
|
return;
|
|
451
467
|
default:
|
|
452
|
-
|
|
468
|
+
x(r);
|
|
453
469
|
}
|
|
454
470
|
};
|
|
455
|
-
return n(
|
|
471
|
+
return n(t), [...e.values()];
|
|
456
472
|
}
|
|
457
|
-
function
|
|
458
|
-
if (
|
|
473
|
+
function w(t, e) {
|
|
474
|
+
if (t.name !== void 0 && t.name !== e.name)
|
|
459
475
|
return !1;
|
|
460
|
-
if (
|
|
461
|
-
if (Array.isArray(
|
|
462
|
-
if (!
|
|
476
|
+
if (t.type !== void 0) {
|
|
477
|
+
if (Array.isArray(t.type)) {
|
|
478
|
+
if (!t.type.includes(e.type))
|
|
463
479
|
return !1;
|
|
464
|
-
} else if (
|
|
480
|
+
} else if (t.type !== e.type)
|
|
465
481
|
return !1;
|
|
466
482
|
}
|
|
467
|
-
if (
|
|
468
|
-
const n =
|
|
469
|
-
for (const [r, o] of Object.entries(
|
|
483
|
+
if (t.domain !== void 0) {
|
|
484
|
+
const n = e.domain || {};
|
|
485
|
+
for (const [r, o] of Object.entries(t.domain))
|
|
470
486
|
if (n[r] !== o)
|
|
471
487
|
return !1;
|
|
472
488
|
}
|
|
473
489
|
return !0;
|
|
474
490
|
}
|
|
475
|
-
function
|
|
476
|
-
if (
|
|
491
|
+
function v(t, e) {
|
|
492
|
+
if (e.name !== void 0 && t.name !== e.name || e.namePattern !== void 0 && !new RegExp(e.namePattern).test(t.name))
|
|
477
493
|
return !1;
|
|
478
|
-
if (
|
|
479
|
-
if (Array.isArray(
|
|
480
|
-
if (!
|
|
494
|
+
if (e.type !== void 0) {
|
|
495
|
+
if (Array.isArray(e.type)) {
|
|
496
|
+
if (!e.type.includes(t.valueType))
|
|
481
497
|
return !1;
|
|
482
|
-
} else if (
|
|
498
|
+
} else if (e.type !== t.valueType)
|
|
483
499
|
return !1;
|
|
484
500
|
}
|
|
485
|
-
if (
|
|
486
|
-
const n =
|
|
487
|
-
for (const [r, o] of Object.entries(
|
|
501
|
+
if (e.domain !== void 0) {
|
|
502
|
+
const n = t.domain || {};
|
|
503
|
+
for (const [r, o] of Object.entries(e.domain))
|
|
488
504
|
if (n[r] !== o)
|
|
489
505
|
return !1;
|
|
490
506
|
}
|
|
491
|
-
if (
|
|
492
|
-
const n =
|
|
493
|
-
if (
|
|
494
|
-
for (const r of
|
|
495
|
-
if (!n.some((o) =>
|
|
507
|
+
if (e.axes !== void 0) {
|
|
508
|
+
const n = t.axesSpec.map(l);
|
|
509
|
+
if (e.partialAxesMatch) {
|
|
510
|
+
for (const r of e.axes)
|
|
511
|
+
if (!n.some((o) => w(r, o)))
|
|
496
512
|
return !1;
|
|
497
513
|
} else {
|
|
498
|
-
if (n.length !==
|
|
514
|
+
if (n.length !== e.axes.length)
|
|
499
515
|
return !1;
|
|
500
|
-
for (let r = 0; r <
|
|
501
|
-
if (!
|
|
516
|
+
for (let r = 0; r < e.axes.length; r++)
|
|
517
|
+
if (!w(e.axes[r], n[r]))
|
|
502
518
|
return !1;
|
|
503
519
|
}
|
|
504
520
|
}
|
|
505
|
-
if (
|
|
506
|
-
const n =
|
|
507
|
-
for (const [r, o] of Object.entries(
|
|
521
|
+
if (e.annotations !== void 0) {
|
|
522
|
+
const n = t.annotations || {};
|
|
523
|
+
for (const [r, o] of Object.entries(e.annotations))
|
|
508
524
|
if (n[r] !== o)
|
|
509
525
|
return !1;
|
|
510
526
|
}
|
|
511
|
-
if (
|
|
512
|
-
const n =
|
|
513
|
-
for (const [r, o] of Object.entries(
|
|
527
|
+
if (e.annotationPatterns !== void 0) {
|
|
528
|
+
const n = t.annotations || {};
|
|
529
|
+
for (const [r, o] of Object.entries(e.annotationPatterns)) {
|
|
514
530
|
const s = n[r];
|
|
515
531
|
if (s === void 0 || !new RegExp(o).test(s))
|
|
516
532
|
return !1;
|
|
@@ -518,15 +534,15 @@ function x(e, t) {
|
|
|
518
534
|
}
|
|
519
535
|
return !0;
|
|
520
536
|
}
|
|
521
|
-
function
|
|
522
|
-
return Array.isArray(
|
|
537
|
+
function mt(t) {
|
|
538
|
+
return Array.isArray(t) ? (e) => t.some((n) => h(e) && v(e, n)) : (e) => h(e) && v(e, t);
|
|
523
539
|
}
|
|
524
|
-
function
|
|
525
|
-
const
|
|
526
|
-
kind:
|
|
527
|
-
name:
|
|
540
|
+
function yt(t) {
|
|
541
|
+
const e = {
|
|
542
|
+
kind: t.kind,
|
|
543
|
+
name: t.name
|
|
528
544
|
};
|
|
529
|
-
return
|
|
545
|
+
return t.domain !== void 0 && (e.domain = t.domain), h(t) && (e.axesSpec = $(t.axesSpec)), p(e);
|
|
530
546
|
}
|
|
531
547
|
f.object({
|
|
532
548
|
__isRef: f.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -536,50 +552,50 @@ f.object({
|
|
|
536
552
|
}).describe(
|
|
537
553
|
"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."
|
|
538
554
|
).readonly();
|
|
539
|
-
function
|
|
540
|
-
return typeof
|
|
555
|
+
function ht(t) {
|
|
556
|
+
return typeof t == "object" && t !== null && "__isRef" in t && t.__isRef === !0 && "blockId" in t && "name" in t;
|
|
541
557
|
}
|
|
542
|
-
function
|
|
543
|
-
if (
|
|
558
|
+
function bt(t, e = !0) {
|
|
559
|
+
if (e)
|
|
544
560
|
return {
|
|
545
|
-
...
|
|
561
|
+
...t,
|
|
546
562
|
requireEnrichments: !0
|
|
547
563
|
};
|
|
548
564
|
{
|
|
549
|
-
const { requireEnrichments: n, ...r } =
|
|
565
|
+
const { requireEnrichments: n, ...r } = t;
|
|
550
566
|
return r;
|
|
551
567
|
}
|
|
552
568
|
}
|
|
553
|
-
function
|
|
554
|
-
return
|
|
569
|
+
function gt(t, e) {
|
|
570
|
+
return t.ok ? { ok: !0, value: e(t.value) } : t;
|
|
555
571
|
}
|
|
556
|
-
function
|
|
557
|
-
if (
|
|
558
|
-
return new DataView(
|
|
559
|
-
if (
|
|
572
|
+
function F(t) {
|
|
573
|
+
if (t instanceof Int8Array || t instanceof Uint8Array || t instanceof Uint8ClampedArray)
|
|
574
|
+
return new DataView(t.buffer, t.byteOffset, t.byteLength);
|
|
575
|
+
if (t instanceof ArrayBuffer) return new DataView(t);
|
|
560
576
|
throw new TypeError(
|
|
561
577
|
"Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray"
|
|
562
578
|
);
|
|
563
579
|
}
|
|
564
|
-
const
|
|
565
|
-
function
|
|
580
|
+
const U = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", M = "0123456789ABCDEFGHIJKLMNOPQRSTUV", V = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
581
|
+
function _(t, e, n) {
|
|
566
582
|
n = n || {};
|
|
567
583
|
let r, o;
|
|
568
|
-
switch (
|
|
584
|
+
switch (e) {
|
|
569
585
|
case "RFC3548":
|
|
570
586
|
case "RFC4648":
|
|
571
|
-
r =
|
|
587
|
+
r = U, o = !0;
|
|
572
588
|
break;
|
|
573
589
|
case "RFC4648-HEX":
|
|
574
590
|
r = M, o = !0;
|
|
575
591
|
break;
|
|
576
592
|
case "Crockford":
|
|
577
|
-
r =
|
|
593
|
+
r = V, o = !1;
|
|
578
594
|
break;
|
|
579
595
|
default:
|
|
580
|
-
throw new Error("Unknown base32 variant: " + String(
|
|
596
|
+
throw new Error("Unknown base32 variant: " + String(e));
|
|
581
597
|
}
|
|
582
|
-
const s = n.padding !== void 0 ? n.padding : o, i =
|
|
598
|
+
const s = n.padding !== void 0 ? n.padding : o, i = F(t);
|
|
583
599
|
let a = 0, c = 0, u = "";
|
|
584
600
|
for (let d = 0; d < i.byteLength; d++)
|
|
585
601
|
for (c = c << 8 | i.getUint8(d), a += 8; a >= 5; )
|
|
@@ -589,91 +605,87 @@ function q(e, t, n) {
|
|
|
589
605
|
u += "=";
|
|
590
606
|
return u;
|
|
591
607
|
}
|
|
592
|
-
const z = 15,
|
|
593
|
-
function
|
|
594
|
-
const
|
|
595
|
-
return crypto.getRandomValues(
|
|
608
|
+
const z = 15, q = 24, G = f.string().length(q).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
609
|
+
function wt() {
|
|
610
|
+
const t = new Uint8Array(z);
|
|
611
|
+
return crypto.getRandomValues(t), G.parse(_(t, "RFC4648"));
|
|
596
612
|
}
|
|
597
|
-
function
|
|
598
|
-
return p(
|
|
613
|
+
function vt(t) {
|
|
614
|
+
return p(t);
|
|
599
615
|
}
|
|
600
|
-
function
|
|
601
|
-
return JSON.parse(
|
|
616
|
+
function xt(t) {
|
|
617
|
+
return JSON.parse(t);
|
|
602
618
|
}
|
|
603
|
-
function
|
|
604
|
-
return
|
|
619
|
+
function H(t) {
|
|
620
|
+
return t instanceof Error ? t.name === "AbortError" || H(t.cause) : !1;
|
|
605
621
|
}
|
|
606
|
-
function
|
|
607
|
-
if (typeof
|
|
608
|
-
return `String value was thrown: ${
|
|
609
|
-
if (
|
|
622
|
+
function Q(t) {
|
|
623
|
+
if (typeof t == "string")
|
|
624
|
+
return `String value was thrown: ${t}`;
|
|
625
|
+
if (t && typeof t == "object")
|
|
610
626
|
try {
|
|
611
|
-
return `Plain object was thrown: ${JSON.stringify(
|
|
612
|
-
} catch (
|
|
613
|
-
return `Non-serializable object was thrown (JSON.stringify failed: ${
|
|
627
|
+
return `Plain object was thrown: ${JSON.stringify(t)}`;
|
|
628
|
+
} catch (e) {
|
|
629
|
+
return `Non-serializable object was thrown (JSON.stringify failed: ${e instanceof Error ? e.message : String(e)}): ${String(t)}`;
|
|
614
630
|
}
|
|
615
|
-
return `Non-Error value (${typeof
|
|
631
|
+
return `Non-Error value (${typeof t}) was thrown: ${t}`;
|
|
616
632
|
}
|
|
617
|
-
function
|
|
618
|
-
return
|
|
633
|
+
function At(t) {
|
|
634
|
+
return t instanceof Error ? t : new Error(Q(t));
|
|
619
635
|
}
|
|
620
|
-
function
|
|
621
|
-
const
|
|
622
|
-
return n.name =
|
|
636
|
+
function k(t) {
|
|
637
|
+
const e = t.cause ? k(t.cause) : void 0, n = new Error(t.message, e !== void 0 ? { cause: e } : void 0);
|
|
638
|
+
return n.name = t.name || "Error", n.stack = t.stack, n;
|
|
623
639
|
}
|
|
624
|
-
function
|
|
625
|
-
if (
|
|
626
|
-
throw
|
|
627
|
-
return
|
|
640
|
+
function Pt(t) {
|
|
641
|
+
if (t.error)
|
|
642
|
+
throw t.error instanceof Error ? t.error : k(t.error);
|
|
643
|
+
return t.value;
|
|
628
644
|
}
|
|
629
645
|
export {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
N as PValueIntNA,
|
|
635
|
-
b as PValueLongNA,
|
|
636
|
-
I as PValueStringNA,
|
|
637
|
-
Q as PlId,
|
|
646
|
+
ut as AnchoredIdDeriver,
|
|
647
|
+
N as PTableAbsent,
|
|
648
|
+
P as PTableNA,
|
|
649
|
+
G as PlId,
|
|
638
650
|
z as PlIdBytes,
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
651
|
+
q as PlIdLength,
|
|
652
|
+
it as canonicalizeAxisId,
|
|
653
|
+
vt as canonicalizeJson,
|
|
654
|
+
et as dataInfoToEntries,
|
|
655
|
+
yt as deriveNativeId,
|
|
656
|
+
k as deserializeError,
|
|
657
|
+
At as ensureError,
|
|
658
|
+
dt as ensurePColumn,
|
|
659
|
+
nt as entriesToDataInfo,
|
|
660
|
+
pt as extractAllColumns,
|
|
661
|
+
$ as getAxesId,
|
|
650
662
|
l as getAxisId,
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
663
|
+
ct as getPTableColumnId,
|
|
664
|
+
H as hasAbortError,
|
|
665
|
+
Y as isDataInfo,
|
|
666
|
+
I as isDataInfoEntries,
|
|
655
667
|
K as isPColumn,
|
|
656
668
|
h as isPColumnSpec,
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
669
|
+
rt as isPTableAbsent,
|
|
670
|
+
j as isPTableNA,
|
|
671
|
+
ot as isPTableValueAxis,
|
|
672
|
+
tt as isPartitionedDataInfoEntries,
|
|
673
|
+
ht as isPlRef,
|
|
674
|
+
Z as mapDataInfo,
|
|
663
675
|
y as mapJoinEntry,
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
676
|
+
lt as mapPObjectData,
|
|
677
|
+
st as mapPTableDef,
|
|
678
|
+
gt as mapValueInVOE,
|
|
679
|
+
w as matchAxis,
|
|
680
|
+
L as matchAxisId,
|
|
681
|
+
v as matchPColumn,
|
|
682
|
+
at as pTableValue,
|
|
683
|
+
xt as parseJson,
|
|
684
|
+
ft as resolveAnchors,
|
|
685
|
+
mt as selectorsToPredicate,
|
|
686
|
+
B as stringifyColumnId,
|
|
687
|
+
wt as uniquePlId,
|
|
688
|
+
Pt as unwrapResult,
|
|
689
|
+
bt as withEnrichments
|
|
678
690
|
};
|
|
679
691
|
//# sourceMappingURL=index.js.map
|