@milaboratories/milaboratories.pool-explorer.model 1.0.27 → 1.0.28
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 +6 -6
- package/CHANGELOG.md +7 -0
- package/dist/bundle.js +240 -240
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}, "");
|
|
36
36
|
return `{${values}}`;
|
|
37
37
|
};
|
|
38
|
-
const
|
|
38
|
+
const ve = /* @__PURE__ */ getDefaultExportFromCjs(canonicalize);
|
|
39
39
|
var util;
|
|
40
40
|
(function(util2) {
|
|
41
41
|
util2.assertEqual = (val) => val;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
88
88
|
}
|
|
89
89
|
util2.joinValues = joinValues;
|
|
90
|
-
util2.jsonStringifyReplacer = (
|
|
90
|
+
util2.jsonStringifyReplacer = (_, value) => {
|
|
91
91
|
if (typeof value === "bigint") {
|
|
92
92
|
return value.toString();
|
|
93
93
|
}
|
|
@@ -4085,8 +4085,8 @@
|
|
|
4085
4085
|
const { type: t, name: e, domain: r } = n2;
|
|
4086
4086
|
return { type: t, name: e, ...r && { domain: r } };
|
|
4087
4087
|
}
|
|
4088
|
-
function
|
|
4089
|
-
return
|
|
4088
|
+
function Cn(n2) {
|
|
4089
|
+
return ve(p$1(n2));
|
|
4090
4090
|
}
|
|
4091
4091
|
function X$1(n2, t) {
|
|
4092
4092
|
if (n2 === void 0) return t === void 0;
|
|
@@ -4098,7 +4098,7 @@
|
|
|
4098
4098
|
function z(n2, t) {
|
|
4099
4099
|
return n2.name === t.name && X$1(n2.domain, t.domain);
|
|
4100
4100
|
}
|
|
4101
|
-
function
|
|
4101
|
+
function Jn(n2, t) {
|
|
4102
4102
|
return { ...n2, src: l$1(n2.src, t) };
|
|
4103
4103
|
}
|
|
4104
4104
|
function l$1(n2, t) {
|
|
@@ -4132,15 +4132,15 @@
|
|
|
4132
4132
|
}
|
|
4133
4133
|
}
|
|
4134
4134
|
function G(n2) {
|
|
4135
|
-
return
|
|
4135
|
+
return ve(n2);
|
|
4136
4136
|
}
|
|
4137
4137
|
function A(n2) {
|
|
4138
|
-
return
|
|
4138
|
+
return ve(p$1(n2));
|
|
4139
4139
|
}
|
|
4140
4140
|
function x(n2, t) {
|
|
4141
4141
|
return JSON.stringify([n2, t]);
|
|
4142
4142
|
}
|
|
4143
|
-
class
|
|
4143
|
+
class $n {
|
|
4144
4144
|
/**
|
|
4145
4145
|
* Creates a new anchor context from a set of anchor column specifications
|
|
4146
4146
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
@@ -4234,7 +4234,7 @@
|
|
|
4234
4234
|
return G(this.derive(t, e));
|
|
4235
4235
|
}
|
|
4236
4236
|
}
|
|
4237
|
-
function
|
|
4237
|
+
function Dn(n2, t, e) {
|
|
4238
4238
|
const r = { ...t }, o = (e == null ? void 0 : e.ignoreMissingDomains) ?? false;
|
|
4239
4239
|
if (r.domainAnchor !== void 0) {
|
|
4240
4240
|
const s2 = n2[r.domainAnchor];
|
|
@@ -4299,17 +4299,17 @@
|
|
|
4299
4299
|
function Z$1(n2) {
|
|
4300
4300
|
return f(n2.spec);
|
|
4301
4301
|
}
|
|
4302
|
-
function
|
|
4302
|
+
function Bn(n2) {
|
|
4303
4303
|
if (!Z$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
|
|
4304
4304
|
return n2;
|
|
4305
4305
|
}
|
|
4306
|
-
function
|
|
4306
|
+
function jn(n2, t) {
|
|
4307
4307
|
return n2 === void 0 ? void 0 : {
|
|
4308
4308
|
...n2,
|
|
4309
4309
|
data: t(n2.data)
|
|
4310
4310
|
};
|
|
4311
4311
|
}
|
|
4312
|
-
function
|
|
4312
|
+
function Fn(n2) {
|
|
4313
4313
|
const t = /* @__PURE__ */ new Map(), e = (r) => {
|
|
4314
4314
|
switch (r.type) {
|
|
4315
4315
|
case "column":
|
|
@@ -4396,7 +4396,7 @@
|
|
|
4396
4396
|
}
|
|
4397
4397
|
return true;
|
|
4398
4398
|
}
|
|
4399
|
-
function
|
|
4399
|
+
function Un(n2) {
|
|
4400
4400
|
return Array.isArray(n2) ? (t) => n2.some((e) => f(t) && N(t, e)) : (t) => f(t) && N(t, n2);
|
|
4401
4401
|
}
|
|
4402
4402
|
z$1.object({
|
|
@@ -4406,10 +4406,10 @@
|
|
|
4406
4406
|
}).describe(
|
|
4407
4407
|
"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."
|
|
4408
4408
|
).strict().readonly();
|
|
4409
|
-
function
|
|
4409
|
+
function Mn(n2) {
|
|
4410
4410
|
return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
|
|
4411
4411
|
}
|
|
4412
|
-
function
|
|
4412
|
+
function Hn(n2, t) {
|
|
4413
4413
|
return n2.ok ? { ok: true, value: t(n2.value) } : n2;
|
|
4414
4414
|
}
|
|
4415
4415
|
const on = 24;
|
|
@@ -4466,13 +4466,13 @@
|
|
|
4466
4466
|
cause: z$1.lazy(() => n).optional(),
|
|
4467
4467
|
errors: z$1.lazy(() => n.array()).optional()
|
|
4468
4468
|
});
|
|
4469
|
-
var
|
|
4470
|
-
var
|
|
4471
|
-
var L = (t, e, n2) =>
|
|
4469
|
+
var Ne = Object.defineProperty;
|
|
4470
|
+
var Ue = (t, e, n2) => e in t ? Ne(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4471
|
+
var L = (t, e, n2) => Ue(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4472
4472
|
function Z(t) {
|
|
4473
4473
|
return { type: "Immediate", value: t };
|
|
4474
4474
|
}
|
|
4475
|
-
function
|
|
4475
|
+
function nt() {
|
|
4476
4476
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4477
4477
|
}
|
|
4478
4478
|
function _e(t) {
|
|
@@ -4481,7 +4481,7 @@
|
|
|
4481
4481
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4482
4482
|
throw new Error("Can't get platforma instance.");
|
|
4483
4483
|
}
|
|
4484
|
-
function
|
|
4484
|
+
function rt() {
|
|
4485
4485
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4486
4486
|
}
|
|
4487
4487
|
function m() {
|
|
@@ -4489,31 +4489,31 @@
|
|
|
4489
4489
|
throw new Error("Not in config rendering context");
|
|
4490
4490
|
}
|
|
4491
4491
|
function Y(t, e) {
|
|
4492
|
-
const n2 =
|
|
4492
|
+
const n2 = rt();
|
|
4493
4493
|
if (n2 === void 0) return false;
|
|
4494
4494
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4495
4495
|
return n2.callbackRegistry[t] = e, true;
|
|
4496
4496
|
}
|
|
4497
|
-
const
|
|
4498
|
-
function
|
|
4497
|
+
const oe = /* @__PURE__ */ new Map();
|
|
4498
|
+
function it(t, e) {
|
|
4499
4499
|
t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
|
|
4500
|
-
for (const r of
|
|
4500
|
+
for (const r of oe.get(t))
|
|
4501
4501
|
r(n2);
|
|
4502
|
-
},
|
|
4502
|
+
}, oe.set(t, [])), oe.get(t).push(e);
|
|
4503
4503
|
}
|
|
4504
|
-
class
|
|
4504
|
+
class S {
|
|
4505
4505
|
constructor(e, n2 = (r) => r) {
|
|
4506
4506
|
L(this, "isResolved", false);
|
|
4507
4507
|
L(this, "resolvedValue");
|
|
4508
|
-
this.handle = e, this.postProcess = n2,
|
|
4508
|
+
this.handle = e, this.postProcess = n2, it(e, (r) => {
|
|
4509
4509
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4510
4510
|
});
|
|
4511
4511
|
}
|
|
4512
4512
|
map(e) {
|
|
4513
|
-
return new
|
|
4513
|
+
return new S(this.handle, (n2) => e(this.postProcess(n2)));
|
|
4514
4514
|
}
|
|
4515
4515
|
mapDefined(e) {
|
|
4516
|
-
return new
|
|
4516
|
+
return new S(this.handle, (n2) => {
|
|
4517
4517
|
const r = this.postProcess(n2);
|
|
4518
4518
|
return r ? e(r) : void 0;
|
|
4519
4519
|
});
|
|
@@ -4522,10 +4522,10 @@
|
|
|
4522
4522
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
4523
4523
|
}
|
|
4524
4524
|
}
|
|
4525
|
-
function
|
|
4525
|
+
function ce(t, e) {
|
|
4526
4526
|
return t === void 0 ? void 0 : e(t);
|
|
4527
4527
|
}
|
|
4528
|
-
class
|
|
4528
|
+
class I {
|
|
4529
4529
|
constructor(e, n2) {
|
|
4530
4530
|
this.handle = e, this.resolvePath = n2;
|
|
4531
4531
|
}
|
|
@@ -4564,9 +4564,9 @@
|
|
|
4564
4564
|
...this.resolvePath,
|
|
4565
4565
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4566
4566
|
];
|
|
4567
|
-
return
|
|
4567
|
+
return ce(
|
|
4568
4568
|
m().resolveWithCommon(this.handle, e, ...n2),
|
|
4569
|
-
(i) => new
|
|
4569
|
+
(i) => new I(i, r)
|
|
4570
4570
|
);
|
|
4571
4571
|
}
|
|
4572
4572
|
get resourceType() {
|
|
@@ -4586,9 +4586,9 @@
|
|
|
4586
4586
|
}
|
|
4587
4587
|
getError() {
|
|
4588
4588
|
const e = [...this.resolvePath, "error"];
|
|
4589
|
-
return
|
|
4589
|
+
return ce(
|
|
4590
4590
|
m().getError(this.handle),
|
|
4591
|
-
(n2) => new
|
|
4591
|
+
(n2) => new I(n2, e)
|
|
4592
4592
|
);
|
|
4593
4593
|
}
|
|
4594
4594
|
listInputFields() {
|
|
@@ -4646,18 +4646,18 @@
|
|
|
4646
4646
|
const i = {};
|
|
4647
4647
|
for (const [s2, o] of Object.entries(r)) {
|
|
4648
4648
|
const a = [...this.resolvePath, s2];
|
|
4649
|
-
i[s2] =
|
|
4649
|
+
i[s2] = jn(o, (l2) => new I(l2, a));
|
|
4650
4650
|
}
|
|
4651
4651
|
return i;
|
|
4652
4652
|
}
|
|
4653
4653
|
getFileContentAsBase64() {
|
|
4654
|
-
return new
|
|
4654
|
+
return new S(m().getBlobContentAsBase64(this.handle));
|
|
4655
4655
|
}
|
|
4656
4656
|
getFileContentAsString() {
|
|
4657
|
-
return new
|
|
4657
|
+
return new S(m().getBlobContentAsString(this.handle));
|
|
4658
4658
|
}
|
|
4659
4659
|
getFileContentAsJson() {
|
|
4660
|
-
return new
|
|
4660
|
+
return new S(
|
|
4661
4661
|
m().getBlobContentAsString(this.handle)
|
|
4662
4662
|
).mapDefined((e) => JSON.parse(e));
|
|
4663
4663
|
}
|
|
@@ -4677,7 +4677,7 @@
|
|
|
4677
4677
|
* @returns downloaded file handle
|
|
4678
4678
|
*/
|
|
4679
4679
|
getFileHandle() {
|
|
4680
|
-
return new
|
|
4680
|
+
return new S(m().getDownloadedBlobContentHandle(this.handle));
|
|
4681
4681
|
}
|
|
4682
4682
|
/**
|
|
4683
4683
|
* @deprecated use getFileHandle
|
|
@@ -4689,7 +4689,7 @@
|
|
|
4689
4689
|
* @returns downloaded file handle
|
|
4690
4690
|
*/
|
|
4691
4691
|
getRemoteFileHandle() {
|
|
4692
|
-
return new
|
|
4692
|
+
return new S(m().getOnDemandBlobContentHandle(this.handle));
|
|
4693
4693
|
}
|
|
4694
4694
|
/**
|
|
4695
4695
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4701,22 +4701,22 @@
|
|
|
4701
4701
|
* @returns the url to the extracted folder
|
|
4702
4702
|
*/
|
|
4703
4703
|
extractArchiveAndGetURL(e) {
|
|
4704
|
-
return new
|
|
4704
|
+
return new S(m().extractArchiveAndGetURL(this.handle, e));
|
|
4705
4705
|
}
|
|
4706
4706
|
getImportProgress() {
|
|
4707
|
-
return new
|
|
4707
|
+
return new S(m().getImportProgress(this.handle));
|
|
4708
4708
|
}
|
|
4709
4709
|
getLastLogs(e) {
|
|
4710
|
-
return new
|
|
4710
|
+
return new S(m().getLastLogs(this.handle, e));
|
|
4711
4711
|
}
|
|
4712
4712
|
getProgressLog(e) {
|
|
4713
|
-
return new
|
|
4713
|
+
return new S(m().getProgressLog(this.handle, e));
|
|
4714
4714
|
}
|
|
4715
4715
|
getProgressLogWithInfo(e) {
|
|
4716
|
-
return new
|
|
4716
|
+
return new S(m().getProgressLogWithInfo(this.handle, e));
|
|
4717
4717
|
}
|
|
4718
4718
|
getLogHandle() {
|
|
4719
|
-
return new
|
|
4719
|
+
return new S(m().getLogHandle(this.handle));
|
|
4720
4720
|
}
|
|
4721
4721
|
allFieldsResolved(e = "Input") {
|
|
4722
4722
|
switch (e) {
|
|
@@ -4742,97 +4742,97 @@
|
|
|
4742
4742
|
let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4743
4743
|
(u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
|
|
4744
4744
|
);
|
|
4745
|
-
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2,
|
|
4745
|
+
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, w2]) => o(u2, w2));
|
|
4746
4746
|
}
|
|
4747
4747
|
}
|
|
4748
|
-
const
|
|
4749
|
-
const
|
|
4748
|
+
const Le = "staging", Te = "main";
|
|
4749
|
+
const at = "pl7.app/label", lt = "pl7.app/trace", ut = z$1.object({
|
|
4750
4750
|
type: z$1.string(),
|
|
4751
4751
|
importance: z$1.number().optional(),
|
|
4752
4752
|
id: z$1.string().optional(),
|
|
4753
4753
|
label: z$1.string()
|
|
4754
|
-
}),
|
|
4755
|
-
function
|
|
4756
|
-
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((
|
|
4754
|
+
}), ct = z$1.array(ut), pt = 1e-3, dt = "__LABEL__", we = "__LABEL__@1";
|
|
4755
|
+
function Fe(t, e, n2 = {}) {
|
|
4756
|
+
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((d) => {
|
|
4757
4757
|
var q, F;
|
|
4758
|
-
const
|
|
4759
|
-
let
|
|
4760
|
-
"spec" in
|
|
4761
|
-
const
|
|
4762
|
-
...
|
|
4763
|
-
...
|
|
4764
|
-
...
|
|
4758
|
+
const h = e(d);
|
|
4759
|
+
let f2, x2, c2;
|
|
4760
|
+
"spec" in h && typeof h.spec == "object" ? (f2 = h.spec, x2 = h.prefixTrace, c2 = h.suffixTrace) : f2 = h;
|
|
4761
|
+
const y = (q = f2.annotations) == null ? void 0 : q[at], g = (F = f2.annotations) == null ? void 0 : F[lt], v = (g ? ct.safeParse(JSON.parse(g)).data : void 0) ?? [], A2 = [
|
|
4762
|
+
...x2 ?? [],
|
|
4763
|
+
...v,
|
|
4764
|
+
...c2 ?? []
|
|
4765
4765
|
];
|
|
4766
|
-
if (
|
|
4767
|
-
const
|
|
4768
|
-
n2.addLabelAsSuffix ?
|
|
4766
|
+
if (y) {
|
|
4767
|
+
const _ = { label: y, type: dt, importance: -2 };
|
|
4768
|
+
n2.addLabelAsSuffix ? A2.push(_) : A2.splice(0, 0, _);
|
|
4769
4769
|
}
|
|
4770
|
-
const
|
|
4771
|
-
for (let
|
|
4772
|
-
const { type: R } =
|
|
4770
|
+
const D2 = [], $2 = /* @__PURE__ */ new Map();
|
|
4771
|
+
for (let _ = A2.length - 1; _ >= 0; --_) {
|
|
4772
|
+
const { type: R } = A2[_], ie = A2[_].importance ?? 0, J = ($2.get(R) ?? 0) + 1;
|
|
4773
4773
|
$2.set(R, J);
|
|
4774
|
-
const
|
|
4775
|
-
i.set(
|
|
4776
|
-
|
|
4774
|
+
const P = `${R}@${J}`;
|
|
4775
|
+
i.set(P, (i.get(P) ?? 0) + 1), r.set(
|
|
4776
|
+
P,
|
|
4777
4777
|
Math.max(
|
|
4778
|
-
r.get(
|
|
4779
|
-
|
|
4778
|
+
r.get(P) ?? Number.NEGATIVE_INFINITY,
|
|
4779
|
+
ie - (A2.length - _) * pt
|
|
4780
4780
|
)
|
|
4781
|
-
),
|
|
4781
|
+
), D2.push({ ...A2[_], fullType: P, occurenceIndex: J });
|
|
4782
4782
|
}
|
|
4783
|
-
return
|
|
4784
|
-
value:
|
|
4785
|
-
spec:
|
|
4786
|
-
label:
|
|
4787
|
-
fullTrace:
|
|
4783
|
+
return D2.reverse(), {
|
|
4784
|
+
value: d,
|
|
4785
|
+
spec: f2,
|
|
4786
|
+
label: y,
|
|
4787
|
+
fullTrace: D2
|
|
4788
4788
|
};
|
|
4789
4789
|
}), o = [], a = [], l2 = [...r];
|
|
4790
|
-
l2.sort(([,
|
|
4791
|
-
for (const [
|
|
4792
|
-
|
|
4793
|
-
const u2 = (
|
|
4794
|
-
const
|
|
4795
|
-
for (let
|
|
4796
|
-
const
|
|
4797
|
-
if (
|
|
4790
|
+
l2.sort(([, d], [, h]) => h - d);
|
|
4791
|
+
for (const [d] of l2)
|
|
4792
|
+
d.endsWith("@1") || i.get(d) === t.length ? o.push(d) : a.push(d);
|
|
4793
|
+
const u2 = (d) => {
|
|
4794
|
+
const h = [];
|
|
4795
|
+
for (let f2 = 0; f2 < s2.length; f2++) {
|
|
4796
|
+
const x2 = s2[f2], c2 = x2.fullTrace.filter((v) => d.has(v.fullType));
|
|
4797
|
+
if (c2.length === 0)
|
|
4798
4798
|
return;
|
|
4799
|
-
const
|
|
4800
|
-
|
|
4801
|
-
label:
|
|
4802
|
-
value:
|
|
4799
|
+
const y = c2.map((v) => v.label), g = n2.separator ?? " / ";
|
|
4800
|
+
h.push({
|
|
4801
|
+
label: y.join(g),
|
|
4802
|
+
value: x2.value
|
|
4803
4803
|
});
|
|
4804
4804
|
}
|
|
4805
|
-
return
|
|
4805
|
+
return h;
|
|
4806
4806
|
};
|
|
4807
4807
|
if (o.length === 0) {
|
|
4808
4808
|
if (a.length !== 0) throw new Error("Assertion error.");
|
|
4809
|
-
const
|
|
4810
|
-
if (
|
|
4811
|
-
return
|
|
4812
|
-
}
|
|
4813
|
-
let
|
|
4814
|
-
for (;
|
|
4815
|
-
const
|
|
4816
|
-
n2.includeNativeLabel &&
|
|
4817
|
-
for (let
|
|
4818
|
-
|
|
4819
|
-
const
|
|
4820
|
-
if (
|
|
4821
|
-
|
|
4822
|
-
}
|
|
4823
|
-
const
|
|
4824
|
-
if (
|
|
4825
|
-
return
|
|
4809
|
+
const d = u2(new Set(we));
|
|
4810
|
+
if (d === void 0) throw new Error("Assertion error.");
|
|
4811
|
+
return d;
|
|
4812
|
+
}
|
|
4813
|
+
let w2 = 0, b = 0;
|
|
4814
|
+
for (; w2 < o.length; ) {
|
|
4815
|
+
const d = /* @__PURE__ */ new Set();
|
|
4816
|
+
n2.includeNativeLabel && d.add(we);
|
|
4817
|
+
for (let f2 = 0; f2 < w2; ++f2) d.add(o[f2]);
|
|
4818
|
+
d.add(o[b]);
|
|
4819
|
+
const h = u2(d);
|
|
4820
|
+
if (h !== void 0 && new Set(h.map((f2) => f2.label)).size === t.length) return h;
|
|
4821
|
+
b++, b >= o.length && (w2++, b = w2);
|
|
4822
|
+
}
|
|
4823
|
+
const p2 = u2(/* @__PURE__ */ new Set([...o, ...a]));
|
|
4824
|
+
if (p2 === void 0) throw new Error("Assertion error.");
|
|
4825
|
+
return p2;
|
|
4826
4826
|
}
|
|
4827
|
-
const H = "PColumnData/", te = H + "ResourceMap", ne = H + "Partitioned/ResourceMap", U = H + "JsonPartitioned",
|
|
4828
|
-
const
|
|
4827
|
+
const H = "PColumnData/", te = H + "ResourceMap", ne = H + "Partitioned/ResourceMap", U = H + "JsonPartitioned", K = H + "BinaryPartitioned", De = H + "Partitioned/", re = De + "JsonPartitioned", B = De + "BinaryPartitioned";
|
|
4828
|
+
const de = (t) => {
|
|
4829
4829
|
if (t.endsWith(".index"))
|
|
4830
4830
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
4831
4831
|
if (t.endsWith(".values"))
|
|
4832
4832
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4833
4833
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4834
4834
|
};
|
|
4835
|
-
function
|
|
4835
|
+
function ft(t) {
|
|
4836
4836
|
if (!t) return;
|
|
4837
4837
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4838
4838
|
let i = 0;
|
|
@@ -4844,7 +4844,7 @@
|
|
|
4844
4844
|
i = n2.partitionKeyLength + n2.keyLength;
|
|
4845
4845
|
break;
|
|
4846
4846
|
case U:
|
|
4847
|
-
case
|
|
4847
|
+
case K:
|
|
4848
4848
|
i = n2.partitionKeyLength;
|
|
4849
4849
|
break;
|
|
4850
4850
|
case B:
|
|
@@ -4855,9 +4855,9 @@
|
|
|
4855
4855
|
switch (e) {
|
|
4856
4856
|
case te:
|
|
4857
4857
|
case U:
|
|
4858
|
-
case
|
|
4858
|
+
case K:
|
|
4859
4859
|
for (let s2 of t.listInputFields()) {
|
|
4860
|
-
e ===
|
|
4860
|
+
e === K && (s2 = de(s2).baseKey);
|
|
4861
4861
|
const o = [...JSON.parse(s2)];
|
|
4862
4862
|
r.push(o);
|
|
4863
4863
|
}
|
|
@@ -4869,7 +4869,7 @@
|
|
|
4869
4869
|
const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
4870
4870
|
if (a !== void 0)
|
|
4871
4871
|
for (let l2 of a.listInputFields()) {
|
|
4872
|
-
e === B && (l2 =
|
|
4872
|
+
e === B && (l2 = de(l2).baseKey);
|
|
4873
4873
|
const u2 = [...o, ...JSON.parse(l2)];
|
|
4874
4874
|
r.push(u2);
|
|
4875
4875
|
}
|
|
@@ -4878,7 +4878,7 @@
|
|
|
4878
4878
|
}
|
|
4879
4879
|
return { data: r, keyLength: i };
|
|
4880
4880
|
}
|
|
4881
|
-
function
|
|
4881
|
+
function ht(t) {
|
|
4882
4882
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4883
4883
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4884
4884
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
@@ -4897,11 +4897,11 @@
|
|
|
4897
4897
|
}
|
|
4898
4898
|
return r.map((i) => Array.from(i.values()));
|
|
4899
4899
|
}
|
|
4900
|
-
function
|
|
4900
|
+
function gt(t) {
|
|
4901
4901
|
if (t === void 0) return;
|
|
4902
4902
|
if (j(t))
|
|
4903
|
-
return
|
|
4904
|
-
const e =
|
|
4903
|
+
return ht(t);
|
|
4904
|
+
const e = ft(t);
|
|
4905
4905
|
if (!e) return;
|
|
4906
4906
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4907
4907
|
for (let s2 = 0; s2 < r; ++s2)
|
|
@@ -4914,7 +4914,7 @@
|
|
|
4914
4914
|
}
|
|
4915
4915
|
return i.map((s2) => Array.from(s2.values()));
|
|
4916
4916
|
}
|
|
4917
|
-
function
|
|
4917
|
+
function fe(t, e = []) {
|
|
4918
4918
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
4919
4919
|
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4920
4920
|
if (e.length > 0 && (n2 === re || n2 === B))
|
|
@@ -4939,12 +4939,12 @@
|
|
|
4939
4939
|
parts: i
|
|
4940
4940
|
};
|
|
4941
4941
|
}
|
|
4942
|
-
case
|
|
4942
|
+
case K: {
|
|
4943
4943
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4944
4944
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4945
4945
|
const i = [], s2 = /* @__PURE__ */ new Map();
|
|
4946
4946
|
for (const o of t.listInputFields()) {
|
|
4947
|
-
const a =
|
|
4947
|
+
const a = de(o), l2 = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4948
4948
|
if (l2 === void 0) return;
|
|
4949
4949
|
let u2 = s2.get(a.baseKey);
|
|
4950
4950
|
u2 || (u2 = {}, s2.set(a.baseKey, u2)), a.type === "index" ? u2.index = l2 : u2.values = l2;
|
|
@@ -4975,7 +4975,7 @@
|
|
|
4975
4975
|
if (a === void 0) return;
|
|
4976
4976
|
if (a.resourceType.name !== U)
|
|
4977
4977
|
throw new Error(`Expected ${U} inside ${n2}, but got ${a.resourceType.name}`);
|
|
4978
|
-
const l2 =
|
|
4978
|
+
const l2 = fe(a, JSON.parse(o));
|
|
4979
4979
|
if (l2 === void 0) return;
|
|
4980
4980
|
if (l2.type !== "JsonPartitioned")
|
|
4981
4981
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -4994,9 +4994,9 @@
|
|
|
4994
4994
|
for (const o of t.listInputFields()) {
|
|
4995
4995
|
const a = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4996
4996
|
if (a === void 0) return;
|
|
4997
|
-
if (a.resourceType.name !==
|
|
4998
|
-
throw new Error(`Expected ${
|
|
4999
|
-
const l2 =
|
|
4997
|
+
if (a.resourceType.name !== K)
|
|
4998
|
+
throw new Error(`Expected ${K} inside ${n2}, but got ${a.resourceType.name}`);
|
|
4999
|
+
const l2 = fe(a, JSON.parse(o));
|
|
5000
5000
|
if (l2 === void 0) return;
|
|
5001
5001
|
if (l2.type !== "BinaryPartitioned")
|
|
5002
5002
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5012,15 +5012,15 @@
|
|
|
5012
5012
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5013
5013
|
}
|
|
5014
5014
|
}
|
|
5015
|
-
function
|
|
5015
|
+
function mt(t) {
|
|
5016
5016
|
if (t !== void 0) {
|
|
5017
5017
|
if (j(t)) return t;
|
|
5018
5018
|
if (pn(t)) return ln(t);
|
|
5019
|
-
if (t instanceof
|
|
5019
|
+
if (t instanceof I) return fe(t);
|
|
5020
5020
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5021
5021
|
}
|
|
5022
5022
|
}
|
|
5023
|
-
function
|
|
5023
|
+
function yt(t, e) {
|
|
5024
5024
|
const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
|
|
5025
5025
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5026
5026
|
const { partitionKeyLength: s2 } = t;
|
|
@@ -5080,39 +5080,39 @@
|
|
|
5080
5080
|
}
|
|
5081
5081
|
}
|
|
5082
5082
|
}
|
|
5083
|
-
class
|
|
5083
|
+
class vt {
|
|
5084
5084
|
constructor(e) {
|
|
5085
5085
|
this.columns = e;
|
|
5086
5086
|
}
|
|
5087
5087
|
selectColumns(e) {
|
|
5088
|
-
const n2 = typeof e == "function" ? e :
|
|
5088
|
+
const n2 = typeof e == "function" ? e : Un(e);
|
|
5089
5089
|
return this.columns.filter((r) => n2(r.spec));
|
|
5090
5090
|
}
|
|
5091
5091
|
}
|
|
5092
|
-
function
|
|
5092
|
+
function bt(t) {
|
|
5093
5093
|
if (t)
|
|
5094
5094
|
return t.map((e) => ({
|
|
5095
|
-
type: `split:${
|
|
5095
|
+
type: `split:${Cn(e.axisId)}`,
|
|
5096
5096
|
label: e.label,
|
|
5097
5097
|
importance: 1e6
|
|
5098
5098
|
// High importance for split filters in labels
|
|
5099
5099
|
}));
|
|
5100
5100
|
}
|
|
5101
|
-
function
|
|
5101
|
+
function wt(t) {
|
|
5102
5102
|
if (t)
|
|
5103
5103
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5104
5104
|
}
|
|
5105
|
-
function
|
|
5105
|
+
function At(t, e) {
|
|
5106
5106
|
if (!e || e.length === 0) return t;
|
|
5107
5107
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5108
|
-
return
|
|
5108
|
+
return ve({ id: t, axisFilters: n2 });
|
|
5109
5109
|
}
|
|
5110
|
-
function
|
|
5110
|
+
function Pt(t) {
|
|
5111
5111
|
if (!t || typeof t != "object") return false;
|
|
5112
5112
|
const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
|
|
5113
5113
|
return !!e.domainAnchor || n2 || r;
|
|
5114
5114
|
}
|
|
5115
|
-
function
|
|
5115
|
+
function xt(t) {
|
|
5116
5116
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5117
5117
|
return [];
|
|
5118
5118
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5120,10 +5120,10 @@
|
|
|
5120
5120
|
throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
|
|
5121
5121
|
return e.sort((n2, r) => n2 - r), e;
|
|
5122
5122
|
}
|
|
5123
|
-
class
|
|
5123
|
+
class he {
|
|
5124
5124
|
constructor() {
|
|
5125
5125
|
L(this, "defaultProviderStore", []);
|
|
5126
|
-
L(this, "providers", [new
|
|
5126
|
+
L(this, "providers", [new vt(this.defaultProviderStore)]);
|
|
5127
5127
|
L(this, "axisLabelProviders", []);
|
|
5128
5128
|
}
|
|
5129
5129
|
addColumnProvider(e) {
|
|
@@ -5150,73 +5150,73 @@
|
|
|
5150
5150
|
...o && (i == null ? void 0 : i.includeNativeLabel) !== false ? { includeNativeLabel: true } : {},
|
|
5151
5151
|
...i ?? {}
|
|
5152
5152
|
}, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [];
|
|
5153
|
-
for (const
|
|
5154
|
-
const
|
|
5155
|
-
let
|
|
5156
|
-
if (
|
|
5153
|
+
for (const p2 of l2) {
|
|
5154
|
+
const d = Pt(p2);
|
|
5155
|
+
let h;
|
|
5156
|
+
if (d) {
|
|
5157
5157
|
if (!r)
|
|
5158
5158
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5159
|
-
|
|
5159
|
+
h = Dn(r.anchors, p2, n2);
|
|
5160
5160
|
} else
|
|
5161
|
-
|
|
5162
|
-
const
|
|
5161
|
+
h = p2;
|
|
5162
|
+
const f$1 = /* @__PURE__ */ new Set(), x2 = [];
|
|
5163
5163
|
for (const g of this.providers) {
|
|
5164
|
-
const
|
|
5165
|
-
for (const
|
|
5166
|
-
if (
|
|
5167
|
-
|
|
5164
|
+
const v = g.selectColumns(h);
|
|
5165
|
+
for (const A2 of v) {
|
|
5166
|
+
if (f$1.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${g.constructor.name}`);
|
|
5167
|
+
f$1.add(A2.id), x2.push(A2);
|
|
5168
5168
|
}
|
|
5169
5169
|
}
|
|
5170
|
-
if (
|
|
5171
|
-
const
|
|
5172
|
-
for (const g of
|
|
5170
|
+
if (x2.length === 0) continue;
|
|
5171
|
+
const c2 = xt(p2), y = c2.length > 0;
|
|
5172
|
+
for (const g of x2) {
|
|
5173
5173
|
if (!f(g.spec)) continue;
|
|
5174
|
-
const
|
|
5175
|
-
if (
|
|
5176
|
-
const
|
|
5177
|
-
if (!
|
|
5174
|
+
const v = g.spec;
|
|
5175
|
+
if (y) {
|
|
5176
|
+
const A2 = mt(g.data);
|
|
5177
|
+
if (!A2) {
|
|
5178
5178
|
if (s2) continue;
|
|
5179
5179
|
return;
|
|
5180
5180
|
}
|
|
5181
|
-
if (!yn(
|
|
5182
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${
|
|
5183
|
-
const
|
|
5184
|
-
if ($2 >=
|
|
5185
|
-
throw new Error(`Not enough partition keys (${
|
|
5186
|
-
const q =
|
|
5187
|
-
if (N2 >=
|
|
5188
|
-
if (F.push([...
|
|
5181
|
+
if (!yn(A2))
|
|
5182
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${g.id}`);
|
|
5183
|
+
const D2 = gt(A2), $2 = c2[c2.length - 1];
|
|
5184
|
+
if ($2 >= A2.partitionKeyLength)
|
|
5185
|
+
throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${v.name}`);
|
|
5186
|
+
const q = c2.map((P) => this.findLabels(p$1(v.axesSpec[P]))), F = [], _ = (P, N2) => {
|
|
5187
|
+
if (N2 >= c2.length) {
|
|
5188
|
+
if (F.push([...P]), F.length > 1e4)
|
|
5189
5189
|
throw new Error("Too many key combinations, aborting.");
|
|
5190
5190
|
return;
|
|
5191
5191
|
}
|
|
5192
|
-
const
|
|
5193
|
-
if (
|
|
5194
|
-
throw new Error(`Axis index ${
|
|
5195
|
-
const
|
|
5196
|
-
if (!
|
|
5192
|
+
const O = c2[N2];
|
|
5193
|
+
if (O >= D2.length)
|
|
5194
|
+
throw new Error(`Axis index ${O} out of bounds for unique keys array (length ${D2.length}) during split key generation for column ${g.id}`);
|
|
5195
|
+
const k2 = D2[O];
|
|
5196
|
+
if (!k2 || k2.length === 0) {
|
|
5197
5197
|
F.length = 0;
|
|
5198
5198
|
return;
|
|
5199
5199
|
}
|
|
5200
|
-
for (const z2 of
|
|
5201
|
-
|
|
5200
|
+
for (const z2 of k2)
|
|
5201
|
+
P.push(z2), _(P, N2 + 1), P.pop();
|
|
5202
5202
|
};
|
|
5203
|
-
if (
|
|
5203
|
+
if (_([], 0), F.length === 0)
|
|
5204
5204
|
continue;
|
|
5205
|
-
const R = [...
|
|
5206
|
-
for (let
|
|
5207
|
-
R.splice(
|
|
5208
|
-
const J = { ...
|
|
5209
|
-
for (const
|
|
5210
|
-
const N2 =
|
|
5211
|
-
const z2 =
|
|
5212
|
-
return { axisIdx: z2, axisId:
|
|
5205
|
+
const R = [...v.axesSpec], ie = c2.map((P) => P);
|
|
5206
|
+
for (let P = c2.length - 1; P >= 0; P--)
|
|
5207
|
+
R.splice(c2[P], 1);
|
|
5208
|
+
const J = { ...v, axesSpec: R };
|
|
5209
|
+
for (const P of F) {
|
|
5210
|
+
const N2 = P.map((O, k2) => {
|
|
5211
|
+
const z2 = ie[k2], $e = p$1(v.axesSpec[z2]), se = q[k2], Je = (se == null ? void 0 : se[O]) ?? String(O);
|
|
5212
|
+
return { axisIdx: z2, axisId: $e, value: O, label: Je };
|
|
5213
5213
|
});
|
|
5214
5214
|
u2.push({
|
|
5215
5215
|
type: "split",
|
|
5216
5216
|
originalColumn: g,
|
|
5217
|
-
spec:
|
|
5217
|
+
spec: v,
|
|
5218
5218
|
adjustedSpec: J,
|
|
5219
|
-
dataEntries:
|
|
5219
|
+
dataEntries: A2,
|
|
5220
5220
|
axisFilters: N2
|
|
5221
5221
|
});
|
|
5222
5222
|
}
|
|
@@ -5224,39 +5224,39 @@
|
|
|
5224
5224
|
u2.push({
|
|
5225
5225
|
type: "direct",
|
|
5226
5226
|
originalColumn: g,
|
|
5227
|
-
spec:
|
|
5228
|
-
adjustedSpec:
|
|
5227
|
+
spec: v,
|
|
5228
|
+
adjustedSpec: v
|
|
5229
5229
|
});
|
|
5230
5230
|
}
|
|
5231
5231
|
}
|
|
5232
5232
|
if (u2.length === 0) return [];
|
|
5233
|
-
const
|
|
5233
|
+
const w2 = Fe(
|
|
5234
5234
|
u2,
|
|
5235
|
-
(
|
|
5236
|
-
spec:
|
|
5237
|
-
suffixTrace:
|
|
5235
|
+
(p2) => ({
|
|
5236
|
+
spec: p2.spec,
|
|
5237
|
+
suffixTrace: p2.type === "split" ? bt(p2.axisFilters) : void 0
|
|
5238
5238
|
}),
|
|
5239
5239
|
a
|
|
5240
|
-
),
|
|
5241
|
-
for (const { value:
|
|
5242
|
-
const { originalColumn:
|
|
5243
|
-
let
|
|
5244
|
-
r ?
|
|
5245
|
-
let g = { ...
|
|
5240
|
+
), b = [];
|
|
5241
|
+
for (const { value: p2, label: d } of w2) {
|
|
5242
|
+
const { originalColumn: h, spec: f2 } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, c2 = wt(x2);
|
|
5243
|
+
let y;
|
|
5244
|
+
r ? y = r.deriveS(f2, c2) : y = At(h.id, c2);
|
|
5245
|
+
let g = { ...p2.adjustedSpec };
|
|
5246
5246
|
o && (g = {
|
|
5247
5247
|
...g,
|
|
5248
5248
|
annotations: {
|
|
5249
5249
|
...g.annotations ?? {},
|
|
5250
|
-
"pl7.app/label":
|
|
5250
|
+
"pl7.app/label": d
|
|
5251
5251
|
}
|
|
5252
|
-
}),
|
|
5253
|
-
id:
|
|
5252
|
+
}), b.push({
|
|
5253
|
+
id: y,
|
|
5254
5254
|
spec: g,
|
|
5255
|
-
data: () =>
|
|
5256
|
-
label:
|
|
5255
|
+
data: () => p2.type === "split" ? hn(yt(p2.dataEntries, c2)) : p2.originalColumn.data,
|
|
5256
|
+
label: d
|
|
5257
5257
|
});
|
|
5258
5258
|
}
|
|
5259
|
-
return
|
|
5259
|
+
return b;
|
|
5260
5260
|
}
|
|
5261
5261
|
getColumns(e, n2) {
|
|
5262
5262
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5281,17 +5281,17 @@
|
|
|
5281
5281
|
return i;
|
|
5282
5282
|
}
|
|
5283
5283
|
}
|
|
5284
|
-
function
|
|
5284
|
+
function ae(t, e) {
|
|
5285
5285
|
if (t === void 0) return e === void 0;
|
|
5286
5286
|
if (e === void 0) return true;
|
|
5287
5287
|
for (const n2 in e)
|
|
5288
5288
|
if (t[n2] !== e[n2]) return false;
|
|
5289
5289
|
return true;
|
|
5290
5290
|
}
|
|
5291
|
-
function
|
|
5292
|
-
return
|
|
5291
|
+
function Ae(t) {
|
|
5292
|
+
return jn(t, (e) => e instanceof I ? e.handle : pn(e) ? mn(e, (n2) => n2.handle) : e);
|
|
5293
5293
|
}
|
|
5294
|
-
class
|
|
5294
|
+
class Ct {
|
|
5295
5295
|
constructor() {
|
|
5296
5296
|
L(this, "ctx", m());
|
|
5297
5297
|
}
|
|
@@ -5302,8 +5302,8 @@
|
|
|
5302
5302
|
return this.ctx.calculateOptions(e);
|
|
5303
5303
|
}
|
|
5304
5304
|
getOptions(e, n2) {
|
|
5305
|
-
const r = typeof e == "function" ? e :
|
|
5306
|
-
return typeof n2 == "object" || typeof n2 > "u" ?
|
|
5305
|
+
const r = typeof e == "function" ? e : Un(e), i = this.getSpecs().entries.filter((s2) => r(s2.obj));
|
|
5306
|
+
return typeof n2 == "object" || typeof n2 > "u" ? Fe(i, (s2) => s2.obj, n2 ?? {}).map(({ value: { ref: s2 }, label: o }) => ({
|
|
5307
5307
|
ref: s2,
|
|
5308
5308
|
label: o
|
|
5309
5309
|
})) : i.map((s2) => ({
|
|
@@ -5312,17 +5312,17 @@
|
|
|
5312
5312
|
}));
|
|
5313
5313
|
}
|
|
5314
5314
|
resolveAnchorCtx(e) {
|
|
5315
|
-
if (e instanceof
|
|
5315
|
+
if (e instanceof $n) return e;
|
|
5316
5316
|
const n2 = {};
|
|
5317
5317
|
for (const [r, i] of Object.entries(e))
|
|
5318
|
-
if (
|
|
5318
|
+
if (Mn(i)) {
|
|
5319
5319
|
const s2 = this.getPColumnSpecByRef(i);
|
|
5320
5320
|
if (!s2)
|
|
5321
5321
|
return;
|
|
5322
5322
|
n2[r] = s2;
|
|
5323
5323
|
} else
|
|
5324
5324
|
n2[r] = i;
|
|
5325
|
-
return new
|
|
5325
|
+
return new $n(n2);
|
|
5326
5326
|
}
|
|
5327
5327
|
/**
|
|
5328
5328
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5335,7 +5335,7 @@
|
|
|
5335
5335
|
getAnchoredPColumns(e, n2, r) {
|
|
5336
5336
|
const i = this.resolveAnchorCtx(e);
|
|
5337
5337
|
if (i)
|
|
5338
|
-
return new
|
|
5338
|
+
return new he().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
|
|
5339
5339
|
...r,
|
|
5340
5340
|
anchorCtx: i
|
|
5341
5341
|
});
|
|
@@ -5372,7 +5372,7 @@
|
|
|
5372
5372
|
getCanonicalOptions(e, n2, r) {
|
|
5373
5373
|
const i = this.resolveAnchorCtx(e);
|
|
5374
5374
|
if (!i) return;
|
|
5375
|
-
const s2 = new
|
|
5375
|
+
const s2 = new he().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
|
|
5376
5376
|
...r,
|
|
5377
5377
|
anchorCtx: i
|
|
5378
5378
|
});
|
|
@@ -5396,7 +5396,7 @@
|
|
|
5396
5396
|
ref: n2.ref,
|
|
5397
5397
|
obj: {
|
|
5398
5398
|
...n2.obj,
|
|
5399
|
-
data: new
|
|
5399
|
+
data: new I(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5400
5400
|
}
|
|
5401
5401
|
}))
|
|
5402
5402
|
};
|
|
@@ -5415,9 +5415,9 @@
|
|
|
5415
5415
|
ref: n2.ref,
|
|
5416
5416
|
obj: {
|
|
5417
5417
|
...n2.obj,
|
|
5418
|
-
data:
|
|
5418
|
+
data: Hn(
|
|
5419
5419
|
n2.obj.data,
|
|
5420
|
-
(r) => new
|
|
5420
|
+
(r) => new I(r, [n2.ref.blockId, n2.ref.name])
|
|
5421
5421
|
)
|
|
5422
5422
|
}
|
|
5423
5423
|
}))
|
|
@@ -5444,9 +5444,9 @@
|
|
|
5444
5444
|
)) == null ? void 0 : r.obj;
|
|
5445
5445
|
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5446
5446
|
if (n2)
|
|
5447
|
-
return
|
|
5447
|
+
return jn(
|
|
5448
5448
|
n2,
|
|
5449
|
-
(i) => new
|
|
5449
|
+
(i) => new I(i, [e.blockId, e.name])
|
|
5450
5450
|
);
|
|
5451
5451
|
}
|
|
5452
5452
|
/**
|
|
@@ -5457,7 +5457,7 @@
|
|
|
5457
5457
|
getPColumnByRef(e) {
|
|
5458
5458
|
const n2 = this.getDataByRef(e);
|
|
5459
5459
|
if (n2)
|
|
5460
|
-
return
|
|
5460
|
+
return Bn(n2);
|
|
5461
5461
|
}
|
|
5462
5462
|
/**
|
|
5463
5463
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -5489,10 +5489,10 @@
|
|
|
5489
5489
|
if (!f(r.obj.spec))
|
|
5490
5490
|
continue;
|
|
5491
5491
|
const i = r.obj.spec;
|
|
5492
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
5492
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ae(e.domain, i.domain)) {
|
|
5493
5493
|
for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
|
|
5494
5494
|
const o = e.axesSpec[s2], a = i.axesSpec[s2];
|
|
5495
|
-
if (o.name !== a.name || o.type !== a.type || !
|
|
5495
|
+
if (o.name !== a.name || o.type !== a.type || !ae(o.domain, a.domain))
|
|
5496
5496
|
continue e;
|
|
5497
5497
|
}
|
|
5498
5498
|
n2.push(r.obj);
|
|
@@ -5509,7 +5509,7 @@
|
|
|
5509
5509
|
for (const r of n2.entries) {
|
|
5510
5510
|
if (!Z$1(r.obj)) continue;
|
|
5511
5511
|
const i = r.obj.spec;
|
|
5512
|
-
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type &&
|
|
5512
|
+
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && ae(e.domain, i.axesSpec[0].domain)) {
|
|
5513
5513
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
5514
5514
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
5515
5515
|
return Object.fromEntries(
|
|
@@ -5528,13 +5528,13 @@
|
|
|
5528
5528
|
* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
|
|
5529
5529
|
*/
|
|
5530
5530
|
selectColumns(e) {
|
|
5531
|
-
const n2 = typeof e == "function" ? e :
|
|
5531
|
+
const n2 = typeof e == "function" ? e : Un(e);
|
|
5532
5532
|
return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
|
|
5533
5533
|
const o = s2;
|
|
5534
5534
|
let a = null;
|
|
5535
5535
|
const l2 = this;
|
|
5536
5536
|
return {
|
|
5537
|
-
id:
|
|
5537
|
+
id: ve(i),
|
|
5538
5538
|
spec: o,
|
|
5539
5539
|
get data() {
|
|
5540
5540
|
var u2;
|
|
@@ -5565,7 +5565,7 @@
|
|
|
5565
5565
|
L(this, "args");
|
|
5566
5566
|
L(this, "uiState");
|
|
5567
5567
|
L(this, "_activeArgsCache");
|
|
5568
|
-
L(this, "resultPool", new
|
|
5568
|
+
L(this, "resultPool", new Ct());
|
|
5569
5569
|
this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5570
5570
|
}
|
|
5571
5571
|
/**
|
|
@@ -5582,16 +5582,16 @@
|
|
|
5582
5582
|
// return this.ctx.featureFlags;
|
|
5583
5583
|
// }
|
|
5584
5584
|
getNamedAccessor(e) {
|
|
5585
|
-
return
|
|
5585
|
+
return ce(
|
|
5586
5586
|
this.ctx.getAccessorHandleByName(e),
|
|
5587
|
-
(n2) => new
|
|
5587
|
+
(n2) => new I(n2, [e])
|
|
5588
5588
|
);
|
|
5589
5589
|
}
|
|
5590
5590
|
get prerun() {
|
|
5591
|
-
return this.getNamedAccessor(
|
|
5591
|
+
return this.getNamedAccessor(Le);
|
|
5592
5592
|
}
|
|
5593
5593
|
get outputs() {
|
|
5594
|
-
return this.getNamedAccessor(
|
|
5594
|
+
return this.getNamedAccessor(Te);
|
|
5595
5595
|
}
|
|
5596
5596
|
/**
|
|
5597
5597
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5603,13 +5603,13 @@
|
|
|
5603
5603
|
}
|
|
5604
5604
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5605
5605
|
var i;
|
|
5606
|
-
const n2 = e.some((s2) => !(s2.data instanceof
|
|
5606
|
+
const n2 = e.some((s2) => !(s2.data instanceof I) || pn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5607
5607
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5608
5608
|
}
|
|
5609
5609
|
// TODO remove all non-PColumn fields
|
|
5610
5610
|
createPFrame(e) {
|
|
5611
5611
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5612
|
-
e.map((n2) =>
|
|
5612
|
+
e.map((n2) => Ae(n2))
|
|
5613
5613
|
);
|
|
5614
5614
|
}
|
|
5615
5615
|
createPTable(e) {
|
|
@@ -5621,8 +5621,8 @@
|
|
|
5621
5621
|
},
|
|
5622
5622
|
filters: e.filters ?? [],
|
|
5623
5623
|
sorting: e.sorting ?? []
|
|
5624
|
-
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(
|
|
5625
|
-
|
|
5624
|
+
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Fn(n2.src)), this.ctx.createPTable(
|
|
5625
|
+
Jn(n2, (r) => Ae(r))
|
|
5626
5626
|
);
|
|
5627
5627
|
}
|
|
5628
5628
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5634,13 +5634,13 @@
|
|
|
5634
5634
|
return this.ctx.getCurrentUnstableMarker();
|
|
5635
5635
|
}
|
|
5636
5636
|
}
|
|
5637
|
-
const M = "1.29.
|
|
5638
|
-
function
|
|
5637
|
+
const M = "1.29.12";
|
|
5638
|
+
function St(t) {
|
|
5639
5639
|
return t.__renderLambda === true;
|
|
5640
5640
|
}
|
|
5641
|
-
function
|
|
5641
|
+
function le(t) {
|
|
5642
5642
|
if (t !== void 0)
|
|
5643
|
-
return
|
|
5643
|
+
return St(t) ? t.handle : t;
|
|
5644
5644
|
}
|
|
5645
5645
|
class T {
|
|
5646
5646
|
constructor(e, n2, r, i, s2, o, a) {
|
|
@@ -5806,13 +5806,13 @@
|
|
|
5806
5806
|
sdkVersion: M,
|
|
5807
5807
|
renderingMode: this._renderingMode,
|
|
5808
5808
|
initialArgs: this._initialArgs,
|
|
5809
|
-
inputsValid:
|
|
5810
|
-
sections:
|
|
5809
|
+
inputsValid: le(this._inputsValid),
|
|
5810
|
+
sections: le(this._sections),
|
|
5811
5811
|
outputs: Object.fromEntries(
|
|
5812
|
-
Object.entries(this._outputs).map(([n2, r]) => [n2,
|
|
5812
|
+
Object.entries(this._outputs).map(([n2, r]) => [n2, le(r)])
|
|
5813
5813
|
)
|
|
5814
5814
|
};
|
|
5815
|
-
return
|
|
5815
|
+
return nt() ? _e({ sdkVersion: M }) : { config: e };
|
|
5816
5816
|
}
|
|
5817
5817
|
}
|
|
5818
5818
|
const platforma = T.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
|