@platforma-sdk/ui-vue 1.42.14 → 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 +15 -15
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +8 -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/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/PlAutocomplete/PlAutocomplete.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlDropdown/PlDropdown.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +1 -1
- 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/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/sdk/model/dist/index.js +256 -244
- package/dist/sdk/model/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/.turbo/turbo-test.log +0 -565
- package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js +0 -27
- 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,6 +1,6 @@
|
|
|
1
|
-
import { isPTableAbsent as
|
|
2
|
-
import { PTableAbsent as
|
|
3
|
-
import
|
|
1
|
+
import { isPTableAbsent as Oe, uniquePlId as Ne, isDataInfo as ue, extractAllColumns as De, mapPTableDef as Re, selectorsToPredicate as W, withEnrichments as ce, AnchoredIdDeriver as fe, isPlRef as Ue, mapValueInVOE as Ke, mapPObjectData as pe, ensurePColumn as $e, isPColumnSpec as Y, isPColumn as Ce, resolveAnchors as he, deriveNativeId as Be, isPartitionedDataInfoEntries as je, getAxisId as ge, entriesToDataInfo as qe, isDataInfoEntries as Se, dataInfoToEntries as Je, canonicalizeAxisId as Me, mapDataInfo as We } from "../../../lib/model/common/dist/index.js";
|
|
2
|
+
import { PTableAbsent as Kt, PTableNA as $t, PlId as Bt, PlIdBytes as jt, PlIdLength as qt, canonicalizeJson as Jt, deserializeError as Mt, ensureError as Wt, getAxesId as Ht, getPTableColumnId as Xt, hasAbortError as zt, isPTableNA as Gt, isPTableValueAxis as Yt, mapJoinEntry as Qt, matchAxis as Zt, matchAxisId as en, matchPColumn as tn, pTableValue as nn, parseJson as rn, stringifyColumnId as sn, unwrapResult as an } from "../../../lib/model/common/dist/index.js";
|
|
3
|
+
import _e from "../../../_virtual/canonicalize.js";
|
|
4
4
|
import U from "../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
|
|
5
5
|
import { BasePlErrorLike as ln, ErrorLike as un, PlErrorLike as pn, StandardErrorLike as dn, ensureErrorLike as cn } from "../../../lib/model/pl-error-like/dist/index.js";
|
|
6
6
|
var He = Object.defineProperty, Xe = (n, e, t) => e in n ? He(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, w = (n, e, t) => Xe(n, typeof e != "symbol" ? e + "" : e, t);
|
|
@@ -23,7 +23,7 @@ function p() {
|
|
|
23
23
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
24
24
|
throw new Error("Not in config rendering context");
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function q(n, e) {
|
|
27
27
|
const t = Ge();
|
|
28
28
|
if (t === void 0) return !1;
|
|
29
29
|
if (n in t.callbackRegistry) throw new Error(`Callback with key ${n} already registered.`);
|
|
@@ -177,9 +177,9 @@ class I {
|
|
|
177
177
|
);
|
|
178
178
|
if (r === void 0) return;
|
|
179
179
|
const i = {};
|
|
180
|
-
for (const [
|
|
181
|
-
const o = [...this.resolvePath,
|
|
182
|
-
i[
|
|
180
|
+
for (const [a, s] of Object.entries(r)) {
|
|
181
|
+
const o = [...this.resolvePath, a];
|
|
182
|
+
i[a] = pe(s, (l) => new I(l, o));
|
|
183
183
|
}
|
|
184
184
|
return i;
|
|
185
185
|
}
|
|
@@ -264,18 +264,18 @@ class I {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
mapFields(e, t) {
|
|
267
|
-
const { fieldType: r, requireLocked: i, skipUnresolved:
|
|
267
|
+
const { fieldType: r, requireLocked: i, skipUnresolved: a } = {
|
|
268
268
|
fieldType: "Input",
|
|
269
269
|
requireLocked: !0,
|
|
270
270
|
skipUnresolved: !1,
|
|
271
271
|
...t
|
|
272
|
-
},
|
|
272
|
+
}, s = e;
|
|
273
273
|
if (i && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
|
|
274
274
|
return;
|
|
275
275
|
let o = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
276
276
|
(l) => [l, this.resolve({ field: l, assertFieldType: r })]
|
|
277
277
|
);
|
|
278
|
-
return
|
|
278
|
+
return a && (o = o.filter((l) => l[1] !== void 0)), o.map(([l, y]) => s(l, y));
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
const Qe = "staging", Ze = "main", et = "pl7.app/label", tt = "pl7.app/trace", nt = U.object({
|
|
@@ -285,32 +285,32 @@ const Qe = "staging", Ze = "main", et = "pl7.app/label", tt = "pl7.app/trace", n
|
|
|
285
285
|
label: U.string()
|
|
286
286
|
}), rt = U.array(nt), it = 1e-3, st = "__LABEL__", me = "__LABEL__@1";
|
|
287
287
|
function Ie(n, e, t = {}) {
|
|
288
|
-
const r = /* @__PURE__ */ new Map(), i = t.forceTraceElements !== void 0 && t.forceTraceElements.length > 0 ? new Set(t.forceTraceElements) : void 0,
|
|
288
|
+
const r = /* @__PURE__ */ new Map(), i = t.forceTraceElements !== void 0 && t.forceTraceElements.length > 0 ? new Set(t.forceTraceElements) : void 0, a = /* @__PURE__ */ new Map(), s = n.map((h) => {
|
|
289
289
|
var C, u;
|
|
290
290
|
const d = e(h);
|
|
291
291
|
let b, A, F;
|
|
292
292
|
"spec" in d && typeof d.spec == "object" ? (b = d.spec, A = d.prefixTrace, F = d.suffixTrace) : b = d;
|
|
293
|
-
const c = (C = b.annotations) == null ? void 0 : C[et],
|
|
293
|
+
const c = (C = b.annotations) == null ? void 0 : C[et], S = (u = b.annotations) == null ? void 0 : u[tt], f = (S ? rt.safeParse(JSON.parse(S)).data : void 0) ?? [], g = [
|
|
294
294
|
...A ?? [],
|
|
295
295
|
...f,
|
|
296
296
|
...F ?? []
|
|
297
297
|
];
|
|
298
298
|
if (c !== void 0) {
|
|
299
|
-
const
|
|
300
|
-
t.addLabelAsSuffix ? g.push(
|
|
299
|
+
const _ = { label: c, type: st, importance: -2 };
|
|
300
|
+
t.addLabelAsSuffix ? g.push(_) : g.splice(0, 0, _);
|
|
301
301
|
}
|
|
302
302
|
const m = [], L = /* @__PURE__ */ new Map();
|
|
303
|
-
for (let
|
|
304
|
-
const { type:
|
|
305
|
-
L.set(
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
|
|
303
|
+
for (let _ = g.length - 1; _ >= 0; --_) {
|
|
304
|
+
const { type: B } = g[_], O = g[_].importance ?? 0, D = (L.get(B) ?? 0) + 1;
|
|
305
|
+
L.set(B, D);
|
|
306
|
+
const k = `${B}@${D}`;
|
|
307
|
+
a.set(k, (a.get(k) ?? 0) + 1), r.set(
|
|
308
|
+
k,
|
|
309
309
|
Math.max(
|
|
310
|
-
r.get(
|
|
311
|
-
|
|
310
|
+
r.get(k) ?? Number.NEGATIVE_INFINITY,
|
|
311
|
+
O - (g.length - _) * it
|
|
312
312
|
)
|
|
313
|
-
), m.push({ ...g[
|
|
313
|
+
), m.push({ ...g[_], fullType: k, occurrenceIndex: D });
|
|
314
314
|
}
|
|
315
315
|
return m.reverse(), {
|
|
316
316
|
value: h,
|
|
@@ -321,11 +321,11 @@ function Ie(n, e, t = {}) {
|
|
|
321
321
|
}), o = [], l = [], y = [...r];
|
|
322
322
|
y.sort(([, h], [, C]) => C - h);
|
|
323
323
|
for (const [h] of y)
|
|
324
|
-
h.endsWith("@1") ||
|
|
325
|
-
const
|
|
324
|
+
h.endsWith("@1") || a.get(h) === n.length ? o.push(h) : l.push(h);
|
|
325
|
+
const $ = (h, C = !1) => {
|
|
326
326
|
const u = [];
|
|
327
|
-
for (let d = 0; d <
|
|
328
|
-
const b =
|
|
327
|
+
for (let d = 0; d < s.length; d++) {
|
|
328
|
+
const b = s[d], A = b.fullTrace.filter((S) => h.has(S.fullType) || i && i.has(S.type));
|
|
329
329
|
if (A.length === 0)
|
|
330
330
|
if (C)
|
|
331
331
|
u.push({
|
|
@@ -333,7 +333,7 @@ function Ie(n, e, t = {}) {
|
|
|
333
333
|
value: b.value
|
|
334
334
|
});
|
|
335
335
|
else return;
|
|
336
|
-
const F = A.map((
|
|
336
|
+
const F = A.map((S) => S.label), c = t.separator ?? " / ";
|
|
337
337
|
u.push({
|
|
338
338
|
label: F.join(c),
|
|
339
339
|
value: b.value
|
|
@@ -343,7 +343,7 @@ function Ie(n, e, t = {}) {
|
|
|
343
343
|
};
|
|
344
344
|
if (o.length === 0) {
|
|
345
345
|
if (l.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
346
|
-
return
|
|
346
|
+
return $(new Set(me), !0);
|
|
347
347
|
}
|
|
348
348
|
let E = 0, V = -1;
|
|
349
349
|
for (; E < o.length; ) {
|
|
@@ -351,13 +351,13 @@ function Ie(n, e, t = {}) {
|
|
|
351
351
|
t.includeNativeLabel && h.add(me);
|
|
352
352
|
for (let u = 0; u < E; ++u) h.add(o[u]);
|
|
353
353
|
V >= 0 && h.add(o[V]);
|
|
354
|
-
const C =
|
|
354
|
+
const C = $(h);
|
|
355
355
|
if (C !== void 0 && new Set(C.map((u) => u.label)).size === n.length) return C;
|
|
356
356
|
V++, V >= o.length && (E++, V = E);
|
|
357
357
|
}
|
|
358
|
-
return
|
|
358
|
+
return $(/* @__PURE__ */ new Set([...o, ...l]), !0);
|
|
359
359
|
}
|
|
360
|
-
const H = "PColumnData/", se = H + "ResourceMap", ae = H + "Partitioned/ResourceMap",
|
|
360
|
+
const H = "PColumnData/", se = H + "ResourceMap", ae = H + "Partitioned/ResourceMap", J = H + "JsonPartitioned", K = H + "BinaryPartitioned", Ae = H + "Partitioned/", Z = Ae + "JsonPartitioned", M = Ae + "BinaryPartitioned", oe = (n) => {
|
|
361
361
|
if (n.endsWith(".index"))
|
|
362
362
|
return { baseKey: n.substring(0, n.length - 6), type: "index" };
|
|
363
363
|
if (n.endsWith(".values"))
|
|
@@ -375,34 +375,34 @@ function at(n) {
|
|
|
375
375
|
case ae:
|
|
376
376
|
i = t.partitionKeyLength + t.keyLength;
|
|
377
377
|
break;
|
|
378
|
-
case
|
|
379
|
-
case
|
|
378
|
+
case J:
|
|
379
|
+
case K:
|
|
380
380
|
i = t.partitionKeyLength;
|
|
381
381
|
break;
|
|
382
|
-
case
|
|
382
|
+
case M:
|
|
383
383
|
case Z:
|
|
384
384
|
i = t.superPartitionKeyLength + t.partitionKeyLength;
|
|
385
385
|
break;
|
|
386
386
|
}
|
|
387
387
|
switch (e) {
|
|
388
388
|
case se:
|
|
389
|
-
case
|
|
390
|
-
case
|
|
391
|
-
for (let
|
|
392
|
-
e ===
|
|
393
|
-
const
|
|
394
|
-
r.push(
|
|
389
|
+
case J:
|
|
390
|
+
case K:
|
|
391
|
+
for (let a of n.listInputFields()) {
|
|
392
|
+
e === K && (a = oe(a).baseKey);
|
|
393
|
+
const s = [...JSON.parse(a)];
|
|
394
|
+
r.push(s);
|
|
395
395
|
}
|
|
396
396
|
break;
|
|
397
397
|
case ae:
|
|
398
|
-
case
|
|
398
|
+
case M:
|
|
399
399
|
case Z:
|
|
400
|
-
for (const
|
|
401
|
-
const
|
|
400
|
+
for (const a of n.listInputFields()) {
|
|
401
|
+
const s = [...JSON.parse(a)], o = n.resolve({ field: a, assertFieldType: "Input" });
|
|
402
402
|
if (o !== void 0)
|
|
403
403
|
for (let l of o.listInputFields()) {
|
|
404
|
-
e ===
|
|
405
|
-
const y = [...
|
|
404
|
+
e === M && (l = oe(l).baseKey);
|
|
405
|
+
const y = [...s, ...JSON.parse(l)];
|
|
406
406
|
r.push(y);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
@@ -417,53 +417,53 @@ function ot(n) {
|
|
|
417
417
|
for (let i = 0; i < t; ++i)
|
|
418
418
|
r.push(/* @__PURE__ */ new Set());
|
|
419
419
|
for (const i of e) {
|
|
420
|
-
const
|
|
421
|
-
if (
|
|
420
|
+
const a = i.key;
|
|
421
|
+
if (a.length !== t)
|
|
422
422
|
throw new Error(
|
|
423
|
-
`Key length (${
|
|
424
|
-
|
|
423
|
+
`Key length (${a.length}) does not match partition length (${t}) for key: ${JSON.stringify(
|
|
424
|
+
a
|
|
425
425
|
)}`
|
|
426
426
|
);
|
|
427
|
-
for (let
|
|
428
|
-
r[
|
|
427
|
+
for (let s = 0; s < t; ++s)
|
|
428
|
+
r[s].add(a[s]);
|
|
429
429
|
}
|
|
430
430
|
return r.map((i) => Array.from(i.values()));
|
|
431
431
|
}
|
|
432
432
|
function lt(n) {
|
|
433
433
|
if (n === void 0) return;
|
|
434
|
-
if (
|
|
434
|
+
if (Se(n))
|
|
435
435
|
return ot(n);
|
|
436
436
|
const e = at(n);
|
|
437
437
|
if (!e) return;
|
|
438
438
|
const { data: t, keyLength: r } = e, i = [];
|
|
439
|
-
for (let
|
|
439
|
+
for (let a = 0; a < r; ++a)
|
|
440
440
|
i.push(/* @__PURE__ */ new Set());
|
|
441
|
-
for (const
|
|
442
|
-
if (
|
|
441
|
+
for (const a of t) {
|
|
442
|
+
if (a.length !== r)
|
|
443
443
|
throw new Error("key length does not match partition length");
|
|
444
|
-
for (let
|
|
445
|
-
i[
|
|
444
|
+
for (let s = 0; s < r; ++s)
|
|
445
|
+
i[s].add(a[s]);
|
|
446
446
|
}
|
|
447
|
-
return i.map((
|
|
447
|
+
return i.map((a) => Array.from(a.values()));
|
|
448
448
|
}
|
|
449
449
|
function le(n, e = []) {
|
|
450
450
|
if (n === void 0 || !n.getIsReadyOrError()) return;
|
|
451
451
|
const t = n.resourceType.name, r = n.getDataAsJson();
|
|
452
|
-
if (e.length > 0 && (t === Z || t ===
|
|
452
|
+
if (e.length > 0 && (t === Z || t === M))
|
|
453
453
|
throw new Error(`Unexpected nested super-partitioned resource: ${t}`);
|
|
454
454
|
switch (t) {
|
|
455
455
|
case se:
|
|
456
456
|
case ae:
|
|
457
457
|
throw new Error(`Only data columns are supported, got: ${t}`);
|
|
458
|
-
case
|
|
458
|
+
case J: {
|
|
459
459
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
460
460
|
throw new Error(`Missing partitionKeyLength in metadata for ${t}`);
|
|
461
461
|
const i = [];
|
|
462
|
-
for (const
|
|
463
|
-
const
|
|
464
|
-
if (
|
|
465
|
-
const o = [...e, ...JSON.parse(
|
|
466
|
-
i.push({ key: o, value:
|
|
462
|
+
for (const a of n.listInputFields()) {
|
|
463
|
+
const s = n.resolve({ field: a, assertFieldType: "Input" });
|
|
464
|
+
if (s === void 0) return;
|
|
465
|
+
const o = [...e, ...JSON.parse(a)];
|
|
466
|
+
i.push({ key: o, value: s });
|
|
467
467
|
}
|
|
468
468
|
return {
|
|
469
469
|
type: "JsonPartitioned",
|
|
@@ -471,19 +471,19 @@ function le(n, e = []) {
|
|
|
471
471
|
parts: i
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
|
-
case
|
|
474
|
+
case K: {
|
|
475
475
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
476
476
|
throw new Error(`Missing partitionKeyLength in metadata for ${t}`);
|
|
477
|
-
const i = [],
|
|
478
|
-
for (const
|
|
479
|
-
const o = oe(
|
|
477
|
+
const i = [], a = /* @__PURE__ */ new Map();
|
|
478
|
+
for (const s of n.listInputFields()) {
|
|
479
|
+
const o = oe(s), l = n.resolve({ field: s, assertFieldType: "Input" });
|
|
480
480
|
if (l === void 0) return;
|
|
481
|
-
let y =
|
|
482
|
-
y || (y = {},
|
|
481
|
+
let y = a.get(o.baseKey);
|
|
482
|
+
y || (y = {}, a.set(o.baseKey, y)), o.type === "index" ? y.index = l : y.values = l;
|
|
483
483
|
}
|
|
484
|
-
for (const [
|
|
484
|
+
for (const [s, o] of a.entries()) {
|
|
485
485
|
if (!o.index || !o.values) return;
|
|
486
|
-
const l = [...e, ...JSON.parse(
|
|
486
|
+
const l = [...e, ...JSON.parse(s)];
|
|
487
487
|
i.push({
|
|
488
488
|
key: l,
|
|
489
489
|
value: {
|
|
@@ -501,43 +501,43 @@ function le(n, e = []) {
|
|
|
501
501
|
case Z: {
|
|
502
502
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
503
503
|
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${t}`);
|
|
504
|
-
const i = r.superPartitionKeyLength + r.partitionKeyLength,
|
|
505
|
-
for (const
|
|
506
|
-
const o = n.resolve({ field:
|
|
504
|
+
const i = r.superPartitionKeyLength + r.partitionKeyLength, a = [];
|
|
505
|
+
for (const s of n.listInputFields()) {
|
|
506
|
+
const o = n.resolve({ field: s, assertFieldType: "Input" });
|
|
507
507
|
if (o === void 0) return;
|
|
508
|
-
if (o.resourceType.name !==
|
|
509
|
-
throw new Error(`Expected ${
|
|
510
|
-
const l = le(o, JSON.parse(
|
|
508
|
+
if (o.resourceType.name !== J)
|
|
509
|
+
throw new Error(`Expected ${J} inside ${t}, but got ${o.resourceType.name}`);
|
|
510
|
+
const l = le(o, JSON.parse(s));
|
|
511
511
|
if (l === void 0) return;
|
|
512
512
|
if (l.type !== "JsonPartitioned")
|
|
513
513
|
throw new Error(`Unexpected inner result type for ${t}: ${l.type}`);
|
|
514
|
-
|
|
514
|
+
a.push(...l.parts);
|
|
515
515
|
}
|
|
516
516
|
return {
|
|
517
517
|
type: "JsonPartitioned",
|
|
518
518
|
partitionKeyLength: i,
|
|
519
|
-
parts:
|
|
519
|
+
parts: a
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
case
|
|
522
|
+
case M: {
|
|
523
523
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
524
524
|
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${t}`);
|
|
525
|
-
const i = r.superPartitionKeyLength + r.partitionKeyLength,
|
|
526
|
-
for (const
|
|
527
|
-
const o = n.resolve({ field:
|
|
525
|
+
const i = r.superPartitionKeyLength + r.partitionKeyLength, a = [];
|
|
526
|
+
for (const s of n.listInputFields()) {
|
|
527
|
+
const o = n.resolve({ field: s, assertFieldType: "Input" });
|
|
528
528
|
if (o === void 0) return;
|
|
529
|
-
if (o.resourceType.name !==
|
|
530
|
-
throw new Error(`Expected ${
|
|
531
|
-
const l = le(o, JSON.parse(
|
|
529
|
+
if (o.resourceType.name !== K)
|
|
530
|
+
throw new Error(`Expected ${K} inside ${t}, but got ${o.resourceType.name}`);
|
|
531
|
+
const l = le(o, JSON.parse(s));
|
|
532
532
|
if (l === void 0) return;
|
|
533
533
|
if (l.type !== "BinaryPartitioned")
|
|
534
534
|
throw new Error(`Unexpected inner result type for ${t}: ${l.type}`);
|
|
535
|
-
|
|
535
|
+
a.push(...l.parts);
|
|
536
536
|
}
|
|
537
537
|
return {
|
|
538
538
|
type: "BinaryPartitioned",
|
|
539
539
|
partitionKeyLength: i,
|
|
540
|
-
parts:
|
|
540
|
+
parts: a
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
543
|
default:
|
|
@@ -546,70 +546,82 @@ function le(n, e = []) {
|
|
|
546
546
|
}
|
|
547
547
|
function ut(n) {
|
|
548
548
|
if (n !== void 0) {
|
|
549
|
-
if (
|
|
550
|
-
if (ue(n)) return
|
|
549
|
+
if (Se(n)) return n;
|
|
550
|
+
if (ue(n)) return Je(n);
|
|
551
551
|
if (n instanceof I) return le(n);
|
|
552
552
|
throw new Error(`Unexpected input type: ${typeof n}`);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
function pt(n, e) {
|
|
556
|
-
const t = [...e].sort((s,
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
556
|
+
const t = [...e].sort((s, o) => o[0] - s[0]), { type: r } = n;
|
|
557
|
+
switch (r) {
|
|
558
|
+
case "Json": {
|
|
559
|
+
const { keyLength: s } = n;
|
|
560
|
+
for (const [o] of e)
|
|
561
|
+
if (o >= s)
|
|
562
|
+
throw new Error(`Can't filter on non-data axis ${o}. Must be >= ${s}`);
|
|
563
|
+
break;
|
|
564
|
+
}
|
|
565
|
+
case "JsonPartitioned":
|
|
566
|
+
case "BinaryPartitioned":
|
|
567
|
+
case "ParquetPartitioned": {
|
|
568
|
+
const { partitionKeyLength: s } = n;
|
|
569
|
+
for (const [o] of e)
|
|
570
|
+
if (o >= s)
|
|
571
|
+
throw new Error(`Can't filter on non-partitioned axis ${o}. Must be >= ${s}`);
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
default:
|
|
575
|
+
throw new Error(`Unsupported data info type: ${r}`);
|
|
576
|
+
}
|
|
577
|
+
const i = (s) => {
|
|
578
|
+
for (const [o, l] of t)
|
|
579
|
+
if (s[o] !== l)
|
|
571
580
|
return !1;
|
|
572
581
|
return !0;
|
|
573
|
-
},
|
|
574
|
-
const
|
|
575
|
-
for (const [
|
|
576
|
-
|
|
577
|
-
return
|
|
582
|
+
}, a = (s) => {
|
|
583
|
+
const o = [...s];
|
|
584
|
+
for (const [l] of t)
|
|
585
|
+
o.splice(l, 1);
|
|
586
|
+
return o;
|
|
578
587
|
};
|
|
579
588
|
switch (n.type) {
|
|
580
|
-
case "Json":
|
|
581
|
-
const s = n.data.filter((a) => r(a.key)).map((a) => ({
|
|
582
|
-
key: i(a.key),
|
|
583
|
-
value: a.value
|
|
584
|
-
}));
|
|
589
|
+
case "Json":
|
|
585
590
|
return {
|
|
586
591
|
type: "Json",
|
|
587
592
|
keyLength: n.keyLength - e.length,
|
|
588
|
-
data: s
|
|
593
|
+
data: n.data.filter((s) => i(s.key)).map((s) => ({
|
|
594
|
+
key: a(s.key),
|
|
595
|
+
value: s.value
|
|
596
|
+
}))
|
|
589
597
|
};
|
|
590
|
-
|
|
591
|
-
case "JsonPartitioned": {
|
|
592
|
-
const s = n.parts.filter((a) => r(a.key)).map((a) => ({
|
|
593
|
-
key: i(a.key),
|
|
594
|
-
value: a.value
|
|
595
|
-
}));
|
|
598
|
+
case "JsonPartitioned":
|
|
596
599
|
return {
|
|
597
600
|
type: "JsonPartitioned",
|
|
598
601
|
partitionKeyLength: n.partitionKeyLength - e.length,
|
|
599
|
-
parts: s
|
|
602
|
+
parts: n.parts.filter((s) => i(s.key)).map((s) => ({
|
|
603
|
+
key: a(s.key),
|
|
604
|
+
value: s.value
|
|
605
|
+
}))
|
|
600
606
|
};
|
|
601
|
-
|
|
602
|
-
case "BinaryPartitioned": {
|
|
603
|
-
const s = n.parts.filter((a) => r(a.key)).map((a) => ({
|
|
604
|
-
key: i(a.key),
|
|
605
|
-
value: a.value
|
|
606
|
-
}));
|
|
607
|
+
case "BinaryPartitioned":
|
|
607
608
|
return {
|
|
608
609
|
type: "BinaryPartitioned",
|
|
609
610
|
partitionKeyLength: n.partitionKeyLength - e.length,
|
|
610
|
-
parts: s
|
|
611
|
+
parts: n.parts.filter((s) => i(s.key)).map((s) => ({
|
|
612
|
+
key: a(s.key),
|
|
613
|
+
value: s.value
|
|
614
|
+
}))
|
|
615
|
+
};
|
|
616
|
+
case "ParquetPartitioned":
|
|
617
|
+
return {
|
|
618
|
+
type: "ParquetPartitioned",
|
|
619
|
+
partitionKeyLength: n.partitionKeyLength - e.length,
|
|
620
|
+
parts: n.parts.filter((s) => i(s.key)).map((s) => ({
|
|
621
|
+
key: a(s.key),
|
|
622
|
+
value: s.value
|
|
623
|
+
}))
|
|
611
624
|
};
|
|
612
|
-
}
|
|
613
625
|
}
|
|
614
626
|
}
|
|
615
627
|
function dt(n) {
|
|
@@ -630,7 +642,7 @@ class ct {
|
|
|
630
642
|
function ft(n) {
|
|
631
643
|
if (n)
|
|
632
644
|
return n.map((e) => ({
|
|
633
|
-
type: `split:${
|
|
645
|
+
type: `split:${Me(e.axisId)}`,
|
|
634
646
|
label: e.label,
|
|
635
647
|
importance: 1e6
|
|
636
648
|
// High importance for split filters in labels
|
|
@@ -643,7 +655,7 @@ function ht(n) {
|
|
|
643
655
|
function gt(n, e) {
|
|
644
656
|
if (!e || e.length === 0) return n;
|
|
645
657
|
const t = [...e].sort((r, i) => r[0] - i[0]);
|
|
646
|
-
return
|
|
658
|
+
return _e({ id: n, axisFilters: t });
|
|
647
659
|
}
|
|
648
660
|
function ye(n) {
|
|
649
661
|
if (!n || typeof n != "object") return !1;
|
|
@@ -682,8 +694,8 @@ class be {
|
|
|
682
694
|
}
|
|
683
695
|
}
|
|
684
696
|
getUniversalEntries(e, t) {
|
|
685
|
-
const { anchorCtx: r, labelOps: i, dontWaitAllData:
|
|
686
|
-
...
|
|
697
|
+
const { anchorCtx: r, labelOps: i, dontWaitAllData: a = !1, overrideLabelAnnotation: s = !1, exclude: o } = t ?? {}, l = {
|
|
698
|
+
...s && (i == null ? void 0 : i.includeNativeLabel) !== !1 ? { includeNativeLabel: !0 } : {},
|
|
687
699
|
...i ?? {}
|
|
688
700
|
};
|
|
689
701
|
let y = () => !1;
|
|
@@ -698,8 +710,8 @@ class be {
|
|
|
698
710
|
});
|
|
699
711
|
y = (d) => u.some((b) => b(d));
|
|
700
712
|
}
|
|
701
|
-
const
|
|
702
|
-
for (const u of
|
|
713
|
+
const $ = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], E = [], V = /* @__PURE__ */ new Set();
|
|
714
|
+
for (const u of $) {
|
|
703
715
|
const d = ye(u);
|
|
704
716
|
let b;
|
|
705
717
|
if (d) {
|
|
@@ -715,55 +727,55 @@ class be {
|
|
|
715
727
|
if (y(m.spec)) continue;
|
|
716
728
|
if (A.has(m.id))
|
|
717
729
|
throw new Error(`Duplicate column id ${m.id} in provider ${f.constructor.name}`);
|
|
718
|
-
const L =
|
|
730
|
+
const L = Be(m.spec);
|
|
719
731
|
V.has(L) || (A.add(m.id), V.add(L), F.push(m));
|
|
720
732
|
}
|
|
721
733
|
}
|
|
722
734
|
if (F.length === 0) continue;
|
|
723
|
-
const c = mt(u),
|
|
735
|
+
const c = mt(u), S = c.length > 0;
|
|
724
736
|
for (const f of F) {
|
|
725
737
|
if (!Y(f.spec)) continue;
|
|
726
738
|
const g = f.spec;
|
|
727
|
-
if (
|
|
739
|
+
if (S) {
|
|
728
740
|
if (dt(f.data))
|
|
729
741
|
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${f.id}`);
|
|
730
742
|
const m = ut(f.data);
|
|
731
743
|
if (!m) {
|
|
732
|
-
if (
|
|
744
|
+
if (a) continue;
|
|
733
745
|
return;
|
|
734
746
|
}
|
|
735
|
-
if (!
|
|
747
|
+
if (!je(m))
|
|
736
748
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${m.type} for column ${f.id}`);
|
|
737
|
-
const L = lt(m),
|
|
738
|
-
if (
|
|
739
|
-
throw new Error(`Not enough partition keys (${m.partitionKeyLength}) for requested split axes (max index ${
|
|
740
|
-
const
|
|
741
|
-
if (
|
|
742
|
-
if (
|
|
749
|
+
const L = lt(m), _ = c[c.length - 1];
|
|
750
|
+
if (_ >= m.partitionKeyLength)
|
|
751
|
+
throw new Error(`Not enough partition keys (${m.partitionKeyLength}) for requested split axes (max index ${_}) in column ${g.name}`);
|
|
752
|
+
const B = c.map((T) => this.findLabels(ge(g.axesSpec[T]))), O = [], D = (T, j) => {
|
|
753
|
+
if (j >= c.length) {
|
|
754
|
+
if (O.push([...T]), O.length > 1e4)
|
|
743
755
|
throw new Error("Too many key combinations, aborting.");
|
|
744
756
|
return;
|
|
745
757
|
}
|
|
746
|
-
const N = c[
|
|
758
|
+
const N = c[j];
|
|
747
759
|
if (N >= L.length)
|
|
748
760
|
throw new Error(`Axis index ${N} out of bounds for unique keys array (length ${L.length}) during split key generation for column ${f.id}`);
|
|
749
761
|
const R = L[N];
|
|
750
762
|
if (!R || R.length === 0) {
|
|
751
|
-
|
|
763
|
+
O.length = 0;
|
|
752
764
|
return;
|
|
753
765
|
}
|
|
754
766
|
for (const X of R)
|
|
755
|
-
T.push(X), D(T,
|
|
767
|
+
T.push(X), D(T, j + 1), T.pop();
|
|
756
768
|
};
|
|
757
|
-
if (D([], 0),
|
|
769
|
+
if (D([], 0), O.length === 0)
|
|
758
770
|
continue;
|
|
759
|
-
const
|
|
771
|
+
const k = [...g.axesSpec], Ee = c.map((T) => T);
|
|
760
772
|
for (let T = c.length - 1; T >= 0; T--)
|
|
761
|
-
|
|
762
|
-
const Le = { ...g, axesSpec:
|
|
763
|
-
for (const T of
|
|
764
|
-
const
|
|
765
|
-
const X = Ee[R], Ve = ge(g.axesSpec[X]), de =
|
|
766
|
-
return { axisIdx: X, axisId: Ve, value: N, label:
|
|
773
|
+
k.splice(c[T], 1);
|
|
774
|
+
const Le = { ...g, axesSpec: k };
|
|
775
|
+
for (const T of O) {
|
|
776
|
+
const j = T.map((N, R) => {
|
|
777
|
+
const X = Ee[R], Ve = ge(g.axesSpec[X]), de = B[R], ke = (de == null ? void 0 : de[N]) ?? String(N);
|
|
778
|
+
return { axisIdx: X, axisId: Ve, value: N, label: ke };
|
|
767
779
|
});
|
|
768
780
|
E.push({
|
|
769
781
|
type: "split",
|
|
@@ -771,7 +783,7 @@ class be {
|
|
|
771
783
|
spec: g,
|
|
772
784
|
adjustedSpec: Le,
|
|
773
785
|
dataEntries: m,
|
|
774
|
-
axisFilters:
|
|
786
|
+
axisFilters: j
|
|
775
787
|
});
|
|
776
788
|
}
|
|
777
789
|
} else
|
|
@@ -794,19 +806,19 @@ class be {
|
|
|
794
806
|
), C = [];
|
|
795
807
|
for (const { value: u, label: d } of h) {
|
|
796
808
|
const { originalColumn: b, spec: A } = u, F = u.type === "split" ? u.axisFilters : void 0, c = ht(F);
|
|
797
|
-
let
|
|
798
|
-
r ?
|
|
809
|
+
let S;
|
|
810
|
+
r ? S = r.deriveS(A, c) : S = gt(b.id, c);
|
|
799
811
|
let f = { ...u.adjustedSpec };
|
|
800
|
-
|
|
812
|
+
s && (f = {
|
|
801
813
|
...f,
|
|
802
814
|
annotations: {
|
|
803
815
|
...f.annotations ?? {},
|
|
804
816
|
"pl7.app/label": d
|
|
805
817
|
}
|
|
806
818
|
}), C.push({
|
|
807
|
-
id:
|
|
819
|
+
id: S,
|
|
808
820
|
spec: f,
|
|
809
|
-
data: () => u.type === "split" ?
|
|
821
|
+
data: () => u.type === "split" ? qe(pt(u.dataEntries, c)) : u.originalColumn.data,
|
|
810
822
|
label: d
|
|
811
823
|
});
|
|
812
824
|
}
|
|
@@ -820,16 +832,16 @@ class be {
|
|
|
820
832
|
});
|
|
821
833
|
if (!r) return;
|
|
822
834
|
const i = [];
|
|
823
|
-
for (const
|
|
824
|
-
const
|
|
825
|
-
if (!
|
|
835
|
+
for (const a of r) {
|
|
836
|
+
const s = a.data();
|
|
837
|
+
if (!s) {
|
|
826
838
|
if (t != null && t.dontWaitAllData) continue;
|
|
827
839
|
return;
|
|
828
840
|
}
|
|
829
841
|
i.push({
|
|
830
|
-
id:
|
|
831
|
-
spec:
|
|
832
|
-
data:
|
|
842
|
+
id: a.id,
|
|
843
|
+
spec: a.spec,
|
|
844
|
+
data: s
|
|
833
845
|
});
|
|
834
846
|
}
|
|
835
847
|
return i;
|
|
@@ -838,33 +850,33 @@ class be {
|
|
|
838
850
|
function ve(n) {
|
|
839
851
|
const e = (i) => i.operator !== "InSet" ? i : {
|
|
840
852
|
operator: "Or",
|
|
841
|
-
operands: i.references.map((
|
|
853
|
+
operands: i.references.map((a) => ({
|
|
842
854
|
operator: "Equal",
|
|
843
|
-
reference:
|
|
855
|
+
reference: a
|
|
844
856
|
}))
|
|
845
|
-
}, t = (i,
|
|
857
|
+
}, t = (i, a) => {
|
|
846
858
|
switch (i.operator) {
|
|
847
859
|
case "And":
|
|
848
860
|
return {
|
|
849
861
|
...i,
|
|
850
|
-
operands: i.operands.map((
|
|
862
|
+
operands: i.operands.map((s) => t(s, a))
|
|
851
863
|
};
|
|
852
864
|
case "Or":
|
|
853
865
|
return {
|
|
854
866
|
...i,
|
|
855
|
-
operands: i.operands.map((
|
|
867
|
+
operands: i.operands.map((s) => t(s, a))
|
|
856
868
|
};
|
|
857
869
|
case "Not":
|
|
858
870
|
return {
|
|
859
871
|
...i,
|
|
860
|
-
operand: t(i.operand,
|
|
872
|
+
operand: t(i.operand, a)
|
|
861
873
|
};
|
|
862
874
|
default:
|
|
863
|
-
return
|
|
875
|
+
return a(i);
|
|
864
876
|
}
|
|
865
|
-
}, r = (i,
|
|
877
|
+
}, r = (i, a) => ({
|
|
866
878
|
...i,
|
|
867
|
-
predicate: t(i.predicate,
|
|
879
|
+
predicate: t(i.predicate, a)
|
|
868
880
|
});
|
|
869
881
|
return n.map((i) => r(i, e));
|
|
870
882
|
}
|
|
@@ -890,13 +902,13 @@ class yt {
|
|
|
890
902
|
}
|
|
891
903
|
getOptions(e, t) {
|
|
892
904
|
const r = typeof e == "function" ? e : W(e), i = this.getSpecs().entries.filter((o) => r(o.obj));
|
|
893
|
-
let
|
|
894
|
-
return typeof t < "u" && (typeof t == "function" ?
|
|
895
|
-
ref: ce(o,
|
|
905
|
+
let a = {}, s = !1;
|
|
906
|
+
return typeof t < "u" && (typeof t == "function" ? a = t : typeof t == "object" && ("includeNativeLabel" in t || "separator" in t || "addLabelAsSuffix" in t ? a = t : (t = t, a = t.label ?? {}, s = t.refsWithEnrichments ?? !1))), typeof a == "object" ? Ie(i, (o) => o.obj, a ?? {}).map(({ value: { ref: o }, label: l }) => ({
|
|
907
|
+
ref: ce(o, s),
|
|
896
908
|
label: l
|
|
897
909
|
})) : i.map(({ ref: o, obj: l }) => ({
|
|
898
|
-
ref: ce(o,
|
|
899
|
-
label:
|
|
910
|
+
ref: ce(o, s),
|
|
911
|
+
label: a(l, o)
|
|
900
912
|
}));
|
|
901
913
|
}
|
|
902
914
|
resolveAnchorCtx(e) {
|
|
@@ -904,10 +916,10 @@ class yt {
|
|
|
904
916
|
const t = {};
|
|
905
917
|
for (const [r, i] of Object.entries(e))
|
|
906
918
|
if (Ue(i)) {
|
|
907
|
-
const
|
|
908
|
-
if (!
|
|
919
|
+
const a = this.getPColumnSpecByRef(i);
|
|
920
|
+
if (!a)
|
|
909
921
|
return;
|
|
910
|
-
t[r] =
|
|
922
|
+
t[r] = a;
|
|
911
923
|
} else
|
|
912
924
|
t[r] = i;
|
|
913
925
|
return new fe(t);
|
|
@@ -960,14 +972,14 @@ class yt {
|
|
|
960
972
|
getCanonicalOptions(e, t, r) {
|
|
961
973
|
const i = this.resolveAnchorCtx(e);
|
|
962
974
|
if (!i) return;
|
|
963
|
-
const
|
|
975
|
+
const a = new be().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(t, {
|
|
964
976
|
...r,
|
|
965
977
|
anchorCtx: i
|
|
966
978
|
});
|
|
967
|
-
if (
|
|
968
|
-
return
|
|
969
|
-
value:
|
|
970
|
-
label:
|
|
979
|
+
if (a)
|
|
980
|
+
return a.map((s) => ({
|
|
981
|
+
value: s.id,
|
|
982
|
+
label: s.label
|
|
971
983
|
}));
|
|
972
984
|
}
|
|
973
985
|
/**
|
|
@@ -1003,7 +1015,7 @@ class yt {
|
|
|
1003
1015
|
ref: t.ref,
|
|
1004
1016
|
obj: {
|
|
1005
1017
|
...t.obj,
|
|
1006
|
-
data:
|
|
1018
|
+
data: Ke(
|
|
1007
1019
|
t.obj.data,
|
|
1008
1020
|
(r) => new I(r, [t.ref.blockId, t.ref.name])
|
|
1009
1021
|
)
|
|
@@ -1045,7 +1057,7 @@ class yt {
|
|
|
1045
1057
|
getPColumnByRef(e) {
|
|
1046
1058
|
const t = this.getDataByRef(e);
|
|
1047
1059
|
if (t)
|
|
1048
|
-
return
|
|
1060
|
+
return $e(t);
|
|
1049
1061
|
}
|
|
1050
1062
|
/**
|
|
1051
1063
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -1078,9 +1090,9 @@ class yt {
|
|
|
1078
1090
|
continue;
|
|
1079
1091
|
const i = r.obj.spec;
|
|
1080
1092
|
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ne(e.domain, i.domain)) {
|
|
1081
|
-
for (let
|
|
1082
|
-
const
|
|
1083
|
-
if (
|
|
1093
|
+
for (let a = 0; a < e.axesSpec.length; ++a) {
|
|
1094
|
+
const s = e.axesSpec[a], o = i.axesSpec[a];
|
|
1095
|
+
if (s.name !== o.name || s.type !== o.type || !ne(s.domain, o.domain))
|
|
1084
1096
|
continue e;
|
|
1085
1097
|
}
|
|
1086
1098
|
t.push(r.obj);
|
|
@@ -1103,7 +1115,7 @@ class yt {
|
|
|
1103
1115
|
return Object.fromEntries(
|
|
1104
1116
|
Object.entries(
|
|
1105
1117
|
r.obj.data.getDataAsJson().data
|
|
1106
|
-
).map((
|
|
1118
|
+
).map((a) => [JSON.parse(a[0])[0], a[1]])
|
|
1107
1119
|
);
|
|
1108
1120
|
}
|
|
1109
1121
|
}
|
|
@@ -1118,15 +1130,15 @@ class yt {
|
|
|
1118
1130
|
selectColumns(e) {
|
|
1119
1131
|
const t = typeof e == "function" ? e : W(e);
|
|
1120
1132
|
return this.getSpecs().entries.filter(({ obj: r }) => Y(r) ? t(r) : !1).map(({ ref: r, obj: i }) => {
|
|
1121
|
-
const
|
|
1122
|
-
let
|
|
1133
|
+
const a = i;
|
|
1134
|
+
let s = null;
|
|
1123
1135
|
const o = this;
|
|
1124
1136
|
return {
|
|
1125
|
-
id:
|
|
1126
|
-
spec:
|
|
1137
|
+
id: _e(r),
|
|
1138
|
+
spec: a,
|
|
1127
1139
|
get data() {
|
|
1128
1140
|
var l;
|
|
1129
|
-
return
|
|
1141
|
+
return s !== null || (s = (l = o.getPColumnByRef(r)) == null ? void 0 : l.data), s;
|
|
1130
1142
|
}
|
|
1131
1143
|
};
|
|
1132
1144
|
});
|
|
@@ -1139,10 +1151,10 @@ class yt {
|
|
|
1139
1151
|
var r;
|
|
1140
1152
|
const i = this.findLabels(e.axesSpec[t]);
|
|
1141
1153
|
if (!i) return;
|
|
1142
|
-
const
|
|
1143
|
-
if (
|
|
1144
|
-
const
|
|
1145
|
-
return Object.fromEntries(
|
|
1154
|
+
const a = (r = e.annotations) == null ? void 0 : r["pl7.app/axisKeys/" + t];
|
|
1155
|
+
if (a !== void 0) {
|
|
1156
|
+
const s = JSON.parse(a);
|
|
1157
|
+
return Object.fromEntries(s.map((o) => [o, i[o] ?? "Unlabelled"]));
|
|
1146
1158
|
} else
|
|
1147
1159
|
return i;
|
|
1148
1160
|
}
|
|
@@ -1204,7 +1216,7 @@ class z {
|
|
|
1204
1216
|
}
|
|
1205
1217
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
1206
1218
|
var t;
|
|
1207
|
-
const r = e.some((
|
|
1219
|
+
const r = e.some((a) => !(a.data instanceof I) || ue(a.data)), i = ((t = this.ctx.featureFlags) == null ? void 0 : t.inlineColumnsSupport) === !0;
|
|
1208
1220
|
if (r && !i) throw Error("Inline or explicit columns not supported");
|
|
1209
1221
|
}
|
|
1210
1222
|
patchPTableDef(e) {
|
|
@@ -1256,7 +1268,7 @@ class z {
|
|
|
1256
1268
|
this.ctx.logError(e);
|
|
1257
1269
|
}
|
|
1258
1270
|
}
|
|
1259
|
-
const bt = "1.42.
|
|
1271
|
+
const bt = "1.42.15", Q = bt;
|
|
1260
1272
|
function vt(n) {
|
|
1261
1273
|
return n.__renderLambda === !0;
|
|
1262
1274
|
}
|
|
@@ -1265,8 +1277,8 @@ function re(n) {
|
|
|
1265
1277
|
return vt(n) ? n.handle : n;
|
|
1266
1278
|
}
|
|
1267
1279
|
const Tt = class v {
|
|
1268
|
-
constructor(e, t, r, i,
|
|
1269
|
-
this._renderingMode = e, this._initialArgs = t, this._initialUiState = r, this._outputs = i, this._inputsValid =
|
|
1280
|
+
constructor(e, t, r, i, a, s, o, l, y) {
|
|
1281
|
+
this._renderingMode = e, this._initialArgs = t, this._initialUiState = r, this._outputs = i, this._inputsValid = a, this._sections = s, this._title = o, this._enrichmentTargets = l, this._featureFlags = y;
|
|
1270
1282
|
}
|
|
1271
1283
|
static create(e = "Heavy") {
|
|
1272
1284
|
return new v(
|
|
@@ -1284,7 +1296,7 @@ const Tt = class v {
|
|
|
1284
1296
|
output(e, t, r = {}) {
|
|
1285
1297
|
if (typeof t == "function") {
|
|
1286
1298
|
const i = `output#${e}`;
|
|
1287
|
-
return
|
|
1299
|
+
return q(i, () => t(new z())), new v(
|
|
1288
1300
|
this._renderingMode,
|
|
1289
1301
|
this._initialArgs,
|
|
1290
1302
|
this._initialUiState,
|
|
@@ -1323,7 +1335,7 @@ const Tt = class v {
|
|
|
1323
1335
|
return this.output(e, t, { retentive: !0 });
|
|
1324
1336
|
}
|
|
1325
1337
|
argsValid(e) {
|
|
1326
|
-
return typeof e == "function" ? (
|
|
1338
|
+
return typeof e == "function" ? (q("inputsValid", () => e(new z())), new v(
|
|
1327
1339
|
this._renderingMode,
|
|
1328
1340
|
this._initialArgs,
|
|
1329
1341
|
this._initialUiState,
|
|
@@ -1349,7 +1361,7 @@ const Tt = class v {
|
|
|
1349
1361
|
);
|
|
1350
1362
|
}
|
|
1351
1363
|
sections(e) {
|
|
1352
|
-
return Array.isArray(e) ? this.sections(ee(e)) : typeof e == "function" ? (
|
|
1364
|
+
return Array.isArray(e) ? this.sections(ee(e)) : typeof e == "function" ? (q("sections", () => e(new z())), new v(
|
|
1353
1365
|
this._renderingMode,
|
|
1354
1366
|
this._initialArgs,
|
|
1355
1367
|
this._initialUiState,
|
|
@@ -1373,7 +1385,7 @@ const Tt = class v {
|
|
|
1373
1385
|
}
|
|
1374
1386
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
1375
1387
|
title(e) {
|
|
1376
|
-
return
|
|
1388
|
+
return q("title", () => e(new z())), new v(
|
|
1377
1389
|
this._renderingMode,
|
|
1378
1390
|
this._initialArgs,
|
|
1379
1391
|
this._initialUiState,
|
|
@@ -1449,7 +1461,7 @@ const Tt = class v {
|
|
|
1449
1461
|
* Influences dependency graph construction.
|
|
1450
1462
|
*/
|
|
1451
1463
|
enriches(e) {
|
|
1452
|
-
return
|
|
1464
|
+
return q("enrichmentTargets", e), new v(
|
|
1453
1465
|
this._renderingMode,
|
|
1454
1466
|
this._initialArgs,
|
|
1455
1467
|
this._initialUiState,
|
|
@@ -1554,7 +1566,7 @@ function Et({
|
|
|
1554
1566
|
}) {
|
|
1555
1567
|
if (!(n != null && n.axesSpec.length))
|
|
1556
1568
|
return;
|
|
1557
|
-
const i = n.selectedKeys.filter((
|
|
1569
|
+
const i = n.selectedKeys.filter((a) => a.every((s) => !Oe(s))).map((a) => ({ key: a, val: 1 }));
|
|
1558
1570
|
if (i.length)
|
|
1559
1571
|
return {
|
|
1560
1572
|
id: e,
|
|
@@ -1954,10 +1966,10 @@ function Vt(n) {
|
|
|
1954
1966
|
value: e
|
|
1955
1967
|
})) : [];
|
|
1956
1968
|
}
|
|
1957
|
-
function
|
|
1969
|
+
function kt(n) {
|
|
1958
1970
|
return xe[n];
|
|
1959
1971
|
}
|
|
1960
|
-
function
|
|
1972
|
+
function Ot() {
|
|
1961
1973
|
return platformaApiVersion ?? 1;
|
|
1962
1974
|
}
|
|
1963
1975
|
function Nt() {
|
|
@@ -1976,15 +1988,15 @@ export {
|
|
|
1976
1988
|
et as PAnnotationLabel,
|
|
1977
1989
|
tt as PAnnotationTrace,
|
|
1978
1990
|
be as PColumnCollection,
|
|
1979
|
-
|
|
1980
|
-
|
|
1991
|
+
Kt as PTableAbsent,
|
|
1992
|
+
$t as PTableNA,
|
|
1981
1993
|
pn as PlErrorLike,
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1994
|
+
Bt as PlId,
|
|
1995
|
+
jt as PlIdBytes,
|
|
1996
|
+
qt as PlIdLength,
|
|
1997
|
+
K as RT_BINARY_PARTITIONED,
|
|
1998
|
+
M as RT_BINARY_SUPER_PARTITIONED,
|
|
1999
|
+
J as RT_JSON_PARTITIONED,
|
|
1988
2000
|
Z as RT_JSON_SUPER_PARTITIONED,
|
|
1989
2001
|
se as RT_RESOURCE_MAP,
|
|
1990
2002
|
ae as RT_RESOURCE_MAP_PARTITIONED,
|
|
@@ -1994,33 +2006,33 @@ export {
|
|
|
1994
2006
|
rt as Trace,
|
|
1995
2007
|
nt as TraceEntry,
|
|
1996
2008
|
I as TreeNodeAccessor,
|
|
1997
|
-
|
|
1998
|
-
|
|
2009
|
+
Me as canonicalizeAxisId,
|
|
2010
|
+
Jt as canonicalizeJson,
|
|
1999
2011
|
ut as convertOrParsePColumnData,
|
|
2000
2012
|
Pe as createPlDataTableStateV2,
|
|
2001
2013
|
Lt as createPlSelectionModel,
|
|
2002
2014
|
Et as createRowSelectionColumn,
|
|
2003
|
-
|
|
2015
|
+
Je as dataInfoToEntries,
|
|
2004
2016
|
Ie as deriveLabels,
|
|
2005
|
-
|
|
2006
|
-
|
|
2017
|
+
Be as deriveNativeId,
|
|
2018
|
+
Mt as deserializeError,
|
|
2007
2019
|
re as downgradeCfgOrLambda,
|
|
2008
2020
|
Wt as ensureError,
|
|
2009
2021
|
cn as ensureErrorLike,
|
|
2010
|
-
|
|
2011
|
-
|
|
2022
|
+
$e as ensurePColumn,
|
|
2023
|
+
qe as entriesToDataInfo,
|
|
2012
2024
|
De as extractAllColumns,
|
|
2013
2025
|
pt as filterDataInfoEntries,
|
|
2014
2026
|
xe as filterUiMetadata,
|
|
2015
2027
|
Ht as getAxesId,
|
|
2016
2028
|
ge as getAxisId,
|
|
2017
2029
|
Dt as getEnvironmentValue,
|
|
2018
|
-
|
|
2030
|
+
kt as getFilterUiMetadata,
|
|
2019
2031
|
Vt as getFilterUiTypeOptions,
|
|
2020
2032
|
ee as getImmediate,
|
|
2021
2033
|
Xt as getPTableColumnId,
|
|
2022
2034
|
at as getPartitionKeysList,
|
|
2023
|
-
|
|
2035
|
+
Ot as getPlatformaApiVersion,
|
|
2024
2036
|
Nt as getRawPlatformaInstance,
|
|
2025
2037
|
lt as getUniquePartitionKeys,
|
|
2026
2038
|
zt as hasAbortError,
|
|
@@ -2029,22 +2041,22 @@ export {
|
|
|
2029
2041
|
Ft as isColumnOptional,
|
|
2030
2042
|
vt as isConfigLambda,
|
|
2031
2043
|
ue as isDataInfo,
|
|
2032
|
-
|
|
2044
|
+
Se as isDataInfoEntries,
|
|
2033
2045
|
It as isLabelColumn,
|
|
2034
2046
|
xt as isLinkerColumn,
|
|
2035
2047
|
Ce as isPColumn,
|
|
2036
2048
|
Y as isPColumnSpec,
|
|
2037
|
-
|
|
2049
|
+
Oe as isPTableAbsent,
|
|
2038
2050
|
Gt as isPTableNA,
|
|
2039
2051
|
Yt as isPTableValueAxis,
|
|
2040
|
-
|
|
2052
|
+
je as isPartitionedDataInfoEntries,
|
|
2041
2053
|
Ue as isPlRef,
|
|
2042
2054
|
Fe as makeDefaultPTableParams,
|
|
2043
2055
|
We as mapDataInfo,
|
|
2044
2056
|
Qt as mapJoinEntry,
|
|
2045
2057
|
pe as mapPObjectData,
|
|
2046
2058
|
Re as mapPTableDef,
|
|
2047
|
-
|
|
2059
|
+
Ke as mapValueInVOE,
|
|
2048
2060
|
Zt as matchAxis,
|
|
2049
2061
|
en as matchAxisId,
|
|
2050
2062
|
tn as matchPColumn,
|