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