@milaboratories/milaboratories.pool-explorer.model 1.0.35 → 1.0.37
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 +9 -9
- package/CHANGELOG.md +14 -0
- package/dist/bundle.js +197 -193
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -3948,8 +3948,8 @@
|
|
|
3948
3948
|
quotelessJson,
|
|
3949
3949
|
ZodError
|
|
3950
3950
|
});
|
|
3951
|
-
var
|
|
3952
|
-
var I$1 = (n2, e, t) => e in n2 ?
|
|
3951
|
+
var $$1 = Object.defineProperty;
|
|
3952
|
+
var I$1 = (n2, e, t) => e in n2 ? $$1(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
|
|
3953
3953
|
var l$1 = (n2, e, t) => I$1(n2, typeof e != "symbol" ? e + "" : e, t);
|
|
3954
3954
|
function w(n2) {
|
|
3955
3955
|
throw new Error("Unexpected object: " + n2);
|
|
@@ -4081,12 +4081,12 @@
|
|
|
4081
4081
|
}
|
|
4082
4082
|
}
|
|
4083
4083
|
}
|
|
4084
|
-
function m$
|
|
4084
|
+
function m$1(n2) {
|
|
4085
4085
|
const { type: e, name: t, domain: r } = n2;
|
|
4086
4086
|
return { type: e, name: t, ...r && { domain: r } };
|
|
4087
4087
|
}
|
|
4088
4088
|
function Jn(n2) {
|
|
4089
|
-
return Le(m$
|
|
4089
|
+
return Le(m$1(n2));
|
|
4090
4090
|
}
|
|
4091
4091
|
function z(n2, e) {
|
|
4092
4092
|
if (n2 === void 0) return e === void 0;
|
|
@@ -4099,9 +4099,9 @@
|
|
|
4099
4099
|
return n2.name === e.name && z(n2.domain, e.domain);
|
|
4100
4100
|
}
|
|
4101
4101
|
function On(n2, e) {
|
|
4102
|
-
return { ...n2, src: y(n2.src, e) };
|
|
4102
|
+
return { ...n2, src: y$1(n2.src, e) };
|
|
4103
4103
|
}
|
|
4104
|
-
function y(n2, e) {
|
|
4104
|
+
function y$1(n2, e) {
|
|
4105
4105
|
switch (n2.type) {
|
|
4106
4106
|
case "column":
|
|
4107
4107
|
return {
|
|
@@ -4115,27 +4115,29 @@
|
|
|
4115
4115
|
newId: n2.newId,
|
|
4116
4116
|
axisFilters: n2.axisFilters
|
|
4117
4117
|
};
|
|
4118
|
+
case "inlineColumn":
|
|
4119
|
+
return n2;
|
|
4118
4120
|
case "inner":
|
|
4119
4121
|
case "full":
|
|
4120
4122
|
return {
|
|
4121
4123
|
type: n2.type,
|
|
4122
|
-
entries: n2.entries.map((t) => y(t, e))
|
|
4124
|
+
entries: n2.entries.map((t) => y$1(t, e))
|
|
4123
4125
|
};
|
|
4124
4126
|
case "outer":
|
|
4125
4127
|
return {
|
|
4126
4128
|
type: "outer",
|
|
4127
|
-
primary: y(n2.primary, e),
|
|
4128
|
-
secondary: n2.secondary.map((t) => y(t, e))
|
|
4129
|
+
primary: y$1(n2.primary, e),
|
|
4130
|
+
secondary: n2.secondary.map((t) => y$1(t, e))
|
|
4129
4131
|
};
|
|
4130
4132
|
default:
|
|
4131
4133
|
w(n2);
|
|
4132
4134
|
}
|
|
4133
4135
|
}
|
|
4134
|
-
function G(n2) {
|
|
4136
|
+
function G$1(n2) {
|
|
4135
4137
|
return Le(n2);
|
|
4136
4138
|
}
|
|
4137
4139
|
function x(n2) {
|
|
4138
|
-
return Le(m$
|
|
4140
|
+
return Le(m$1(n2));
|
|
4139
4141
|
}
|
|
4140
4142
|
function A(n2, e) {
|
|
4141
4143
|
return JSON.stringify([n2, e]);
|
|
@@ -4202,7 +4204,7 @@
|
|
|
4202
4204
|
}
|
|
4203
4205
|
if (r.axes = e.axesSpec.map((a) => {
|
|
4204
4206
|
const i = x(a), u2 = this.axes.get(i);
|
|
4205
|
-
return u2 === void 0 ? m$
|
|
4207
|
+
return u2 === void 0 ? m$1(a) : u2;
|
|
4206
4208
|
}), !t || t.length === 0)
|
|
4207
4209
|
return r;
|
|
4208
4210
|
const s2 = [];
|
|
@@ -4231,7 +4233,7 @@
|
|
|
4231
4233
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
4232
4234
|
*/
|
|
4233
4235
|
deriveS(e, t) {
|
|
4234
|
-
return G(this.derive(e, t));
|
|
4236
|
+
return G$1(this.derive(e, t));
|
|
4235
4237
|
}
|
|
4236
4238
|
}
|
|
4237
4239
|
function Dn(n2, e, t) {
|
|
@@ -4281,7 +4283,7 @@
|
|
|
4281
4283
|
throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
|
|
4282
4284
|
return o[0];
|
|
4283
4285
|
} else if ("id" in e) {
|
|
4284
|
-
const o = r.axesSpec.filter((s2) => X$1(e.id, m$
|
|
4286
|
+
const o = r.axesSpec.filter((s2) => X$1(e.id, m$1(s2)));
|
|
4285
4287
|
if (o.length > 1)
|
|
4286
4288
|
throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
|
|
4287
4289
|
if (o.length === 0)
|
|
@@ -4318,6 +4320,8 @@
|
|
|
4318
4320
|
case "slicedColumn":
|
|
4319
4321
|
e.set(r.column.id, r.column);
|
|
4320
4322
|
return;
|
|
4323
|
+
case "inlineColumn":
|
|
4324
|
+
return;
|
|
4321
4325
|
case "full":
|
|
4322
4326
|
case "inner":
|
|
4323
4327
|
for (const o of r.entries) t(o);
|
|
@@ -4367,7 +4371,7 @@
|
|
|
4367
4371
|
return false;
|
|
4368
4372
|
}
|
|
4369
4373
|
if (e.axes !== void 0) {
|
|
4370
|
-
const t = n2.axesSpec.map(m$
|
|
4374
|
+
const t = n2.axesSpec.map(m$1);
|
|
4371
4375
|
if (e.partialAxesMatch) {
|
|
4372
4376
|
for (const r of e.axes)
|
|
4373
4377
|
if (!t.some((o) => k(r, o)))
|
|
@@ -4460,12 +4464,12 @@
|
|
|
4460
4464
|
}), c = l.extend({
|
|
4461
4465
|
cause: z$1.lazy(() => s).optional(),
|
|
4462
4466
|
errors: z$1.lazy(() => s.array()).optional()
|
|
4463
|
-
}), m
|
|
4467
|
+
}), m = z$1.object({
|
|
4464
4468
|
type: z$1.literal("StandardError"),
|
|
4465
4469
|
name: z$1.string(),
|
|
4466
4470
|
message: z$1.string(),
|
|
4467
4471
|
stack: z$1.string().optional()
|
|
4468
|
-
}), p = m
|
|
4472
|
+
}), p = m.extend({
|
|
4469
4473
|
cause: z$1.lazy(() => s).optional(),
|
|
4470
4474
|
errors: z$1.lazy(() => s.array()).optional()
|
|
4471
4475
|
}), s = z$1.union([p, c]);
|
|
@@ -4496,11 +4500,11 @@
|
|
|
4496
4500
|
function ot() {
|
|
4497
4501
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4498
4502
|
}
|
|
4499
|
-
function
|
|
4503
|
+
function y() {
|
|
4500
4504
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4501
4505
|
throw new Error("Not in config rendering context");
|
|
4502
4506
|
}
|
|
4503
|
-
function
|
|
4507
|
+
function B(t, e) {
|
|
4504
4508
|
const n2 = ot();
|
|
4505
4509
|
if (n2 === void 0) return false;
|
|
4506
4510
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
@@ -4508,12 +4512,12 @@
|
|
|
4508
4512
|
}
|
|
4509
4513
|
const ae = /* @__PURE__ */ new Map();
|
|
4510
4514
|
function at(t, e) {
|
|
4511
|
-
t in
|
|
4515
|
+
t in y().callbackRegistry || (y().callbackRegistry[t] = (n2) => {
|
|
4512
4516
|
for (const r of ae.get(t))
|
|
4513
4517
|
r(n2);
|
|
4514
4518
|
}, ae.set(t, [])), ae.get(t).push(e);
|
|
4515
4519
|
}
|
|
4516
|
-
class
|
|
4520
|
+
class S {
|
|
4517
4521
|
constructor(e, n2 = (r) => r) {
|
|
4518
4522
|
T(this, "isResolved", false);
|
|
4519
4523
|
T(this, "resolvedValue");
|
|
@@ -4522,10 +4526,10 @@
|
|
|
4522
4526
|
});
|
|
4523
4527
|
}
|
|
4524
4528
|
map(e) {
|
|
4525
|
-
return new
|
|
4529
|
+
return new S(this.handle, (n2) => e(this.postProcess(n2)));
|
|
4526
4530
|
}
|
|
4527
4531
|
mapDefined(e) {
|
|
4528
|
-
return new
|
|
4532
|
+
return new S(this.handle, (n2) => {
|
|
4529
4533
|
const r = this.postProcess(n2);
|
|
4530
4534
|
return r ? e(r) : void 0;
|
|
4531
4535
|
});
|
|
@@ -4534,7 +4538,7 @@
|
|
|
4534
4538
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
4535
4539
|
}
|
|
4536
4540
|
}
|
|
4537
|
-
function
|
|
4541
|
+
function pe(t, e) {
|
|
4538
4542
|
return t === void 0 ? void 0 : e(t);
|
|
4539
4543
|
}
|
|
4540
4544
|
class I {
|
|
@@ -4576,47 +4580,47 @@
|
|
|
4576
4580
|
...this.resolvePath,
|
|
4577
4581
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4578
4582
|
];
|
|
4579
|
-
return
|
|
4580
|
-
|
|
4583
|
+
return pe(
|
|
4584
|
+
y().resolveWithCommon(this.handle, e, ...n2),
|
|
4581
4585
|
(i) => new I(i, r)
|
|
4582
4586
|
);
|
|
4583
4587
|
}
|
|
4584
4588
|
get resourceType() {
|
|
4585
|
-
return
|
|
4589
|
+
return y().getResourceType(this.handle);
|
|
4586
4590
|
}
|
|
4587
4591
|
getInputsLocked() {
|
|
4588
|
-
return
|
|
4592
|
+
return y().getInputsLocked(this.handle);
|
|
4589
4593
|
}
|
|
4590
4594
|
getOutputsLocked() {
|
|
4591
|
-
return
|
|
4595
|
+
return y().getOutputsLocked(this.handle);
|
|
4592
4596
|
}
|
|
4593
4597
|
getIsReadyOrError() {
|
|
4594
|
-
return
|
|
4598
|
+
return y().getIsReadyOrError(this.handle);
|
|
4595
4599
|
}
|
|
4596
4600
|
getIsFinal() {
|
|
4597
|
-
return
|
|
4601
|
+
return y().getIsFinal(this.handle);
|
|
4598
4602
|
}
|
|
4599
4603
|
getError() {
|
|
4600
4604
|
const e = [...this.resolvePath, "error"];
|
|
4601
|
-
return
|
|
4602
|
-
|
|
4605
|
+
return pe(
|
|
4606
|
+
y().getError(this.handle),
|
|
4603
4607
|
(n2) => new I(n2, e)
|
|
4604
4608
|
);
|
|
4605
4609
|
}
|
|
4606
4610
|
listInputFields() {
|
|
4607
|
-
return
|
|
4611
|
+
return y().listInputFields(this.handle);
|
|
4608
4612
|
}
|
|
4609
4613
|
listOutputFields() {
|
|
4610
|
-
return
|
|
4614
|
+
return y().listOutputFields(this.handle);
|
|
4611
4615
|
}
|
|
4612
4616
|
listDynamicFields() {
|
|
4613
|
-
return
|
|
4617
|
+
return y().listDynamicFields(this.handle);
|
|
4614
4618
|
}
|
|
4615
4619
|
getKeyValueBase64(e) {
|
|
4616
|
-
return
|
|
4620
|
+
return y().getKeyValueBase64(this.handle, e);
|
|
4617
4621
|
}
|
|
4618
4622
|
getKeyValueAsString(e) {
|
|
4619
|
-
return
|
|
4623
|
+
return y().getKeyValueAsString(this.handle, e);
|
|
4620
4624
|
}
|
|
4621
4625
|
getKeyValueAsJson(e) {
|
|
4622
4626
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4624,10 +4628,10 @@
|
|
|
4624
4628
|
return JSON.parse(n2);
|
|
4625
4629
|
}
|
|
4626
4630
|
getDataBase64() {
|
|
4627
|
-
return
|
|
4631
|
+
return y().getDataBase64(this.handle);
|
|
4628
4632
|
}
|
|
4629
4633
|
getDataAsString() {
|
|
4630
|
-
return
|
|
4634
|
+
return y().getDataAsString(this.handle);
|
|
4631
4635
|
}
|
|
4632
4636
|
getDataAsJson() {
|
|
4633
4637
|
const e = this.getDataAsString();
|
|
@@ -4648,7 +4652,7 @@
|
|
|
4648
4652
|
*
|
|
4649
4653
|
*/
|
|
4650
4654
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4651
|
-
const r =
|
|
4655
|
+
const r = y().parsePObjectCollection(
|
|
4652
4656
|
this.handle,
|
|
4653
4657
|
e,
|
|
4654
4658
|
n2,
|
|
@@ -4663,14 +4667,14 @@
|
|
|
4663
4667
|
return i;
|
|
4664
4668
|
}
|
|
4665
4669
|
getFileContentAsBase64() {
|
|
4666
|
-
return new
|
|
4670
|
+
return new S(y().getBlobContentAsBase64(this.handle));
|
|
4667
4671
|
}
|
|
4668
4672
|
getFileContentAsString() {
|
|
4669
|
-
return new
|
|
4673
|
+
return new S(y().getBlobContentAsString(this.handle));
|
|
4670
4674
|
}
|
|
4671
4675
|
getFileContentAsJson() {
|
|
4672
|
-
return new
|
|
4673
|
-
|
|
4676
|
+
return new S(
|
|
4677
|
+
y().getBlobContentAsString(this.handle)
|
|
4674
4678
|
).mapDefined((e) => JSON.parse(e));
|
|
4675
4679
|
}
|
|
4676
4680
|
/**
|
|
@@ -4689,7 +4693,7 @@
|
|
|
4689
4693
|
* @returns downloaded file handle
|
|
4690
4694
|
*/
|
|
4691
4695
|
getFileHandle() {
|
|
4692
|
-
return new
|
|
4696
|
+
return new S(y().getDownloadedBlobContentHandle(this.handle));
|
|
4693
4697
|
}
|
|
4694
4698
|
/**
|
|
4695
4699
|
* @deprecated use getFileHandle
|
|
@@ -4701,7 +4705,7 @@
|
|
|
4701
4705
|
* @returns downloaded file handle
|
|
4702
4706
|
*/
|
|
4703
4707
|
getRemoteFileHandle() {
|
|
4704
|
-
return new
|
|
4708
|
+
return new S(y().getOnDemandBlobContentHandle(this.handle));
|
|
4705
4709
|
}
|
|
4706
4710
|
/**
|
|
4707
4711
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4713,22 +4717,22 @@
|
|
|
4713
4717
|
* @returns the url to the extracted folder
|
|
4714
4718
|
*/
|
|
4715
4719
|
extractArchiveAndGetURL(e) {
|
|
4716
|
-
return new
|
|
4720
|
+
return new S(y().extractArchiveAndGetURL(this.handle, e));
|
|
4717
4721
|
}
|
|
4718
4722
|
getImportProgress() {
|
|
4719
|
-
return new
|
|
4723
|
+
return new S(y().getImportProgress(this.handle));
|
|
4720
4724
|
}
|
|
4721
4725
|
getLastLogs(e) {
|
|
4722
|
-
return new
|
|
4726
|
+
return new S(y().getLastLogs(this.handle, e));
|
|
4723
4727
|
}
|
|
4724
4728
|
getProgressLog(e) {
|
|
4725
|
-
return new
|
|
4729
|
+
return new S(y().getProgressLog(this.handle, e));
|
|
4726
4730
|
}
|
|
4727
4731
|
getProgressLogWithInfo(e) {
|
|
4728
|
-
return new
|
|
4732
|
+
return new S(y().getProgressLogWithInfo(this.handle, e));
|
|
4729
4733
|
}
|
|
4730
4734
|
getLogHandle() {
|
|
4731
|
-
return new
|
|
4735
|
+
return new S(y().getLogHandle(this.handle));
|
|
4732
4736
|
}
|
|
4733
4737
|
allFieldsResolved(e = "Input") {
|
|
4734
4738
|
switch (e) {
|
|
@@ -4754,89 +4758,89 @@
|
|
|
4754
4758
|
let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4755
4759
|
(u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
|
|
4756
4760
|
);
|
|
4757
|
-
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2,
|
|
4761
|
+
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, p2]) => o(u2, p2));
|
|
4758
4762
|
}
|
|
4759
4763
|
}
|
|
4760
|
-
const Fe = "staging",
|
|
4761
|
-
const ct = "pl7.app/label",
|
|
4764
|
+
const Fe = "staging", Oe = "main";
|
|
4765
|
+
const ct = "pl7.app/label", pt = "pl7.app/trace", dt = z$1.object({
|
|
4762
4766
|
type: z$1.string(),
|
|
4763
4767
|
importance: z$1.number().optional(),
|
|
4764
4768
|
id: z$1.string().optional(),
|
|
4765
4769
|
label: z$1.string()
|
|
4766
|
-
}), ft = z$1.array(
|
|
4770
|
+
}), ft = z$1.array(dt), ht = 1e-3, gt = "__LABEL__", xe = "__LABEL__@1";
|
|
4767
4771
|
function Re(t, e, n2 = {}) {
|
|
4768
4772
|
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((f2) => {
|
|
4769
4773
|
var z2, F;
|
|
4770
|
-
const
|
|
4771
|
-
let
|
|
4772
|
-
"spec" in
|
|
4773
|
-
const
|
|
4774
|
-
...
|
|
4775
|
-
...
|
|
4774
|
+
const g = e(f2);
|
|
4775
|
+
let h, P, c2;
|
|
4776
|
+
"spec" in g && typeof g.spec == "object" ? (h = g.spec, P = g.prefixTrace, c2 = g.suffixTrace) : h = g;
|
|
4777
|
+
const b = (z2 = h.annotations) == null ? void 0 : z2[ct], m2 = (F = h.annotations) == null ? void 0 : F[pt], w2 = (m2 ? ft.safeParse(JSON.parse(m2)).data : void 0) ?? [], A2 = [
|
|
4778
|
+
...P ?? [],
|
|
4779
|
+
...w2,
|
|
4776
4780
|
...c2 ?? []
|
|
4777
4781
|
];
|
|
4778
|
-
if (
|
|
4779
|
-
const L = { label:
|
|
4782
|
+
if (b) {
|
|
4783
|
+
const L = { label: b, type: gt, importance: -2 };
|
|
4780
4784
|
n2.addLabelAsSuffix ? A2.push(L) : A2.splice(0, 0, L);
|
|
4781
4785
|
}
|
|
4782
|
-
const
|
|
4786
|
+
const O = [], J = /* @__PURE__ */ new Map();
|
|
4783
4787
|
for (let L = A2.length - 1; L >= 0; --L) {
|
|
4784
|
-
const { type:
|
|
4785
|
-
|
|
4786
|
-
const
|
|
4787
|
-
i.set(
|
|
4788
|
-
|
|
4788
|
+
const { type: k2 } = A2[L], se = A2[L].importance ?? 0, N2 = (J.get(k2) ?? 0) + 1;
|
|
4789
|
+
J.set(k2, N2);
|
|
4790
|
+
const x2 = `${k2}@${N2}`;
|
|
4791
|
+
i.set(x2, (i.get(x2) ?? 0) + 1), r.set(
|
|
4792
|
+
x2,
|
|
4789
4793
|
Math.max(
|
|
4790
|
-
r.get(
|
|
4794
|
+
r.get(x2) ?? Number.NEGATIVE_INFINITY,
|
|
4791
4795
|
se - (A2.length - L) * ht
|
|
4792
4796
|
)
|
|
4793
|
-
),
|
|
4797
|
+
), O.push({ ...A2[L], fullType: x2, occurrenceIndex: N2 });
|
|
4794
4798
|
}
|
|
4795
|
-
return
|
|
4799
|
+
return O.reverse(), {
|
|
4796
4800
|
value: f2,
|
|
4797
|
-
spec:
|
|
4798
|
-
label:
|
|
4799
|
-
fullTrace:
|
|
4801
|
+
spec: h,
|
|
4802
|
+
label: b,
|
|
4803
|
+
fullTrace: O
|
|
4800
4804
|
};
|
|
4801
4805
|
}), o = [], a = [], l2 = [...r];
|
|
4802
|
-
l2.sort(([, f2], [,
|
|
4806
|
+
l2.sort(([, f2], [, g]) => g - f2);
|
|
4803
4807
|
for (const [f2] of l2)
|
|
4804
4808
|
f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
|
|
4805
4809
|
const u2 = (f2) => {
|
|
4806
|
-
const
|
|
4807
|
-
for (let
|
|
4808
|
-
const
|
|
4810
|
+
const g = [];
|
|
4811
|
+
for (let h = 0; h < s2.length; h++) {
|
|
4812
|
+
const P = s2[h], c2 = P.fullTrace.filter((w2) => f2.has(w2.fullType));
|
|
4809
4813
|
if (c2.length === 0)
|
|
4810
4814
|
return;
|
|
4811
|
-
const
|
|
4812
|
-
|
|
4813
|
-
label:
|
|
4814
|
-
value:
|
|
4815
|
+
const b = c2.map((w2) => w2.label), m2 = n2.separator ?? " / ";
|
|
4816
|
+
g.push({
|
|
4817
|
+
label: b.join(m2),
|
|
4818
|
+
value: P.value
|
|
4815
4819
|
});
|
|
4816
4820
|
}
|
|
4817
|
-
return
|
|
4821
|
+
return g;
|
|
4818
4822
|
};
|
|
4819
4823
|
if (o.length === 0) {
|
|
4820
4824
|
if (a.length !== 0) throw new Error("Assertion error.");
|
|
4821
|
-
const f2 = u2(new Set(
|
|
4825
|
+
const f2 = u2(new Set(xe));
|
|
4822
4826
|
if (f2 === void 0) throw new Error("Assertion error.");
|
|
4823
4827
|
return f2;
|
|
4824
4828
|
}
|
|
4825
|
-
let
|
|
4826
|
-
for (;
|
|
4829
|
+
let p2 = 0, v = 0;
|
|
4830
|
+
for (; p2 < o.length; ) {
|
|
4827
4831
|
const f2 = /* @__PURE__ */ new Set();
|
|
4828
|
-
n2.includeNativeLabel && f2.add(
|
|
4829
|
-
for (let
|
|
4830
|
-
f2.add(o[
|
|
4831
|
-
const
|
|
4832
|
-
if (
|
|
4833
|
-
|
|
4832
|
+
n2.includeNativeLabel && f2.add(xe);
|
|
4833
|
+
for (let h = 0; h < p2; ++h) f2.add(o[h]);
|
|
4834
|
+
f2.add(o[v]);
|
|
4835
|
+
const g = u2(f2);
|
|
4836
|
+
if (g !== void 0 && new Set(g.map((h) => h.label)).size === t.length) return g;
|
|
4837
|
+
v++, v >= o.length && (p2++, v = p2);
|
|
4834
4838
|
}
|
|
4835
4839
|
const d = u2(/* @__PURE__ */ new Set([...o, ...a]));
|
|
4836
4840
|
if (d === void 0) throw new Error("Assertion error.");
|
|
4837
4841
|
return d;
|
|
4838
4842
|
}
|
|
4839
|
-
const q = "PColumnData/", ne = q + "ResourceMap", re = q + "Partitioned/ResourceMap",
|
|
4843
|
+
const q = "PColumnData/", ne = q + "ResourceMap", re = q + "Partitioned/ResourceMap", M = q + "JsonPartitioned", $ = q + "BinaryPartitioned", ke = q + "Partitioned/", ie = ke + "JsonPartitioned", W = ke + "BinaryPartitioned";
|
|
4840
4844
|
const fe = (t) => {
|
|
4841
4845
|
if (t.endsWith(".index"))
|
|
4842
4846
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
@@ -4855,33 +4859,33 @@
|
|
|
4855
4859
|
case re:
|
|
4856
4860
|
i = n2.partitionKeyLength + n2.keyLength;
|
|
4857
4861
|
break;
|
|
4858
|
-
case
|
|
4859
|
-
case
|
|
4862
|
+
case M:
|
|
4863
|
+
case $:
|
|
4860
4864
|
i = n2.partitionKeyLength;
|
|
4861
4865
|
break;
|
|
4862
|
-
case
|
|
4866
|
+
case W:
|
|
4863
4867
|
case ie:
|
|
4864
4868
|
i = n2.superPartitionKeyLength + n2.partitionKeyLength;
|
|
4865
4869
|
break;
|
|
4866
4870
|
}
|
|
4867
4871
|
switch (e) {
|
|
4868
4872
|
case ne:
|
|
4869
|
-
case
|
|
4870
|
-
case
|
|
4873
|
+
case M:
|
|
4874
|
+
case $:
|
|
4871
4875
|
for (let s2 of t.listInputFields()) {
|
|
4872
|
-
e ===
|
|
4876
|
+
e === $ && (s2 = fe(s2).baseKey);
|
|
4873
4877
|
const o = [...JSON.parse(s2)];
|
|
4874
4878
|
r.push(o);
|
|
4875
4879
|
}
|
|
4876
4880
|
break;
|
|
4877
4881
|
case re:
|
|
4878
|
-
case
|
|
4882
|
+
case W:
|
|
4879
4883
|
case ie:
|
|
4880
4884
|
for (const s2 of t.listInputFields()) {
|
|
4881
4885
|
const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
4882
4886
|
if (a !== void 0)
|
|
4883
4887
|
for (let l2 of a.listInputFields()) {
|
|
4884
|
-
e ===
|
|
4888
|
+
e === W && (l2 = fe(l2).baseKey);
|
|
4885
4889
|
const u2 = [...o, ...JSON.parse(l2)];
|
|
4886
4890
|
r.push(u2);
|
|
4887
4891
|
}
|
|
@@ -4929,13 +4933,13 @@
|
|
|
4929
4933
|
function he(t, e = []) {
|
|
4930
4934
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
4931
4935
|
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4932
|
-
if (e.length > 0 && (n2 === ie || n2 ===
|
|
4936
|
+
if (e.length > 0 && (n2 === ie || n2 === W))
|
|
4933
4937
|
throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
|
|
4934
4938
|
switch (n2) {
|
|
4935
4939
|
case ne:
|
|
4936
4940
|
case re:
|
|
4937
4941
|
throw new Error(`Only data columns are supported, got: ${n2}`);
|
|
4938
|
-
case
|
|
4942
|
+
case M: {
|
|
4939
4943
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4940
4944
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4941
4945
|
const i = [];
|
|
@@ -4951,7 +4955,7 @@
|
|
|
4951
4955
|
parts: i
|
|
4952
4956
|
};
|
|
4953
4957
|
}
|
|
4954
|
-
case
|
|
4958
|
+
case $: {
|
|
4955
4959
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4956
4960
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4957
4961
|
const i = [], s2 = /* @__PURE__ */ new Map();
|
|
@@ -4985,8 +4989,8 @@
|
|
|
4985
4989
|
for (const o of t.listInputFields()) {
|
|
4986
4990
|
const a = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4987
4991
|
if (a === void 0) return;
|
|
4988
|
-
if (a.resourceType.name !==
|
|
4989
|
-
throw new Error(`Expected ${
|
|
4992
|
+
if (a.resourceType.name !== M)
|
|
4993
|
+
throw new Error(`Expected ${M} inside ${n2}, but got ${a.resourceType.name}`);
|
|
4990
4994
|
const l2 = he(a, JSON.parse(o));
|
|
4991
4995
|
if (l2 === void 0) return;
|
|
4992
4996
|
if (l2.type !== "JsonPartitioned")
|
|
@@ -4999,15 +5003,15 @@
|
|
|
4999
5003
|
parts: s2
|
|
5000
5004
|
};
|
|
5001
5005
|
}
|
|
5002
|
-
case
|
|
5006
|
+
case W: {
|
|
5003
5007
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
5004
5008
|
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
|
|
5005
5009
|
const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
|
|
5006
5010
|
for (const o of t.listInputFields()) {
|
|
5007
5011
|
const a = t.resolve({ field: o, assertFieldType: "Input" });
|
|
5008
5012
|
if (a === void 0) return;
|
|
5009
|
-
if (a.resourceType.name !==
|
|
5010
|
-
throw new Error(`Expected ${
|
|
5013
|
+
if (a.resourceType.name !== $)
|
|
5014
|
+
throw new Error(`Expected ${$} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5011
5015
|
const l2 = he(a, JSON.parse(o));
|
|
5012
5016
|
if (l2 === void 0) return;
|
|
5013
5017
|
if (l2.type !== "BinaryPartitioned")
|
|
@@ -5101,7 +5105,7 @@
|
|
|
5101
5105
|
return this.columns.filter((r) => n2(r.spec));
|
|
5102
5106
|
}
|
|
5103
5107
|
}
|
|
5104
|
-
function
|
|
5108
|
+
function xt(t) {
|
|
5105
5109
|
if (t)
|
|
5106
5110
|
return t.map((e) => ({
|
|
5107
5111
|
type: `split:${Jn(e.axisId)}`,
|
|
@@ -5110,16 +5114,16 @@
|
|
|
5110
5114
|
// High importance for split filters in labels
|
|
5111
5115
|
}));
|
|
5112
5116
|
}
|
|
5113
|
-
function
|
|
5117
|
+
function Pt(t) {
|
|
5114
5118
|
if (t)
|
|
5115
5119
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5116
5120
|
}
|
|
5117
|
-
function
|
|
5121
|
+
function Ct(t, e) {
|
|
5118
5122
|
if (!e || e.length === 0) return t;
|
|
5119
5123
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5120
5124
|
return Le({ id: t, axisFilters: n2 });
|
|
5121
5125
|
}
|
|
5122
|
-
function
|
|
5126
|
+
function St(t) {
|
|
5123
5127
|
if (!t || typeof t != "object") return false;
|
|
5124
5128
|
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);
|
|
5125
5129
|
return !!e.domainAnchor || n2 || r;
|
|
@@ -5163,112 +5167,112 @@
|
|
|
5163
5167
|
...i ?? {}
|
|
5164
5168
|
}, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [];
|
|
5165
5169
|
for (const d of l2) {
|
|
5166
|
-
const f$1 =
|
|
5167
|
-
let
|
|
5170
|
+
const f$1 = St(d);
|
|
5171
|
+
let g;
|
|
5168
5172
|
if (f$1) {
|
|
5169
5173
|
if (!r)
|
|
5170
5174
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5171
|
-
|
|
5175
|
+
g = Dn(r.anchors, d, n2);
|
|
5172
5176
|
} else
|
|
5173
|
-
|
|
5174
|
-
const
|
|
5175
|
-
for (const
|
|
5176
|
-
const
|
|
5177
|
-
for (const A2 of
|
|
5178
|
-
if (
|
|
5179
|
-
|
|
5177
|
+
g = d;
|
|
5178
|
+
const h = /* @__PURE__ */ new Set(), P = [];
|
|
5179
|
+
for (const m2 of this.providers) {
|
|
5180
|
+
const w2 = m2.selectColumns(g);
|
|
5181
|
+
for (const A2 of w2) {
|
|
5182
|
+
if (h.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${m2.constructor.name}`);
|
|
5183
|
+
h.add(A2.id), P.push(A2);
|
|
5180
5184
|
}
|
|
5181
5185
|
}
|
|
5182
|
-
if (
|
|
5183
|
-
const c2 = _t(d),
|
|
5184
|
-
for (const
|
|
5185
|
-
if (!f(
|
|
5186
|
-
const
|
|
5187
|
-
if (
|
|
5188
|
-
const A2 = bt(
|
|
5186
|
+
if (P.length === 0) continue;
|
|
5187
|
+
const c2 = _t(d), b = c2.length > 0;
|
|
5188
|
+
for (const m2 of P) {
|
|
5189
|
+
if (!f(m2.spec)) continue;
|
|
5190
|
+
const w2 = m2.spec;
|
|
5191
|
+
if (b) {
|
|
5192
|
+
const A2 = bt(m2.data);
|
|
5189
5193
|
if (!A2) {
|
|
5190
5194
|
if (s2) continue;
|
|
5191
5195
|
return;
|
|
5192
5196
|
}
|
|
5193
5197
|
if (!yn(A2))
|
|
5194
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${
|
|
5195
|
-
const
|
|
5196
|
-
if (
|
|
5197
|
-
throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${
|
|
5198
|
-
const z2 = c2.map((
|
|
5199
|
-
if (
|
|
5200
|
-
if (F.push([...
|
|
5198
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${m2.id}`);
|
|
5199
|
+
const O = vt(A2), J = c2[c2.length - 1];
|
|
5200
|
+
if (J >= A2.partitionKeyLength)
|
|
5201
|
+
throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${J}) in column ${w2.name}`);
|
|
5202
|
+
const z2 = c2.map((x2) => this.findLabels(m$1(w2.axesSpec[x2]))), F = [], L = (x2, U) => {
|
|
5203
|
+
if (U >= c2.length) {
|
|
5204
|
+
if (F.push([...x2]), F.length > 1e4)
|
|
5201
5205
|
throw new Error("Too many key combinations, aborting.");
|
|
5202
5206
|
return;
|
|
5203
5207
|
}
|
|
5204
|
-
const
|
|
5205
|
-
if (
|
|
5206
|
-
throw new Error(`Axis index ${
|
|
5207
|
-
const
|
|
5208
|
-
if (!
|
|
5208
|
+
const D = c2[U];
|
|
5209
|
+
if (D >= O.length)
|
|
5210
|
+
throw new Error(`Axis index ${D} out of bounds for unique keys array (length ${O.length}) during split key generation for column ${m2.id}`);
|
|
5211
|
+
const j2 = O[D];
|
|
5212
|
+
if (!j2 || j2.length === 0) {
|
|
5209
5213
|
F.length = 0;
|
|
5210
5214
|
return;
|
|
5211
5215
|
}
|
|
5212
|
-
for (const Y2 of
|
|
5213
|
-
|
|
5216
|
+
for (const Y2 of j2)
|
|
5217
|
+
x2.push(Y2), L(x2, U + 1), x2.pop();
|
|
5214
5218
|
};
|
|
5215
5219
|
if (L([], 0), F.length === 0)
|
|
5216
5220
|
continue;
|
|
5217
|
-
const
|
|
5218
|
-
for (let
|
|
5219
|
-
|
|
5220
|
-
const
|
|
5221
|
-
for (const
|
|
5222
|
-
const
|
|
5223
|
-
const Y2 = se[
|
|
5224
|
-
return { axisIdx: Y2, axisId: Ue, value:
|
|
5221
|
+
const k2 = [...w2.axesSpec], se = c2.map((x2) => x2);
|
|
5222
|
+
for (let x2 = c2.length - 1; x2 >= 0; x2--)
|
|
5223
|
+
k2.splice(c2[x2], 1);
|
|
5224
|
+
const N2 = { ...w2, axesSpec: k2 };
|
|
5225
|
+
for (const x2 of F) {
|
|
5226
|
+
const U = x2.map((D, j2) => {
|
|
5227
|
+
const Y2 = se[j2], Ue = m$1(w2.axesSpec[Y2]), oe = z2[j2], Be = (oe == null ? void 0 : oe[D]) ?? String(D);
|
|
5228
|
+
return { axisIdx: Y2, axisId: Ue, value: D, label: Be };
|
|
5225
5229
|
});
|
|
5226
5230
|
u2.push({
|
|
5227
5231
|
type: "split",
|
|
5228
|
-
originalColumn:
|
|
5229
|
-
spec:
|
|
5230
|
-
adjustedSpec:
|
|
5232
|
+
originalColumn: m2,
|
|
5233
|
+
spec: w2,
|
|
5234
|
+
adjustedSpec: N2,
|
|
5231
5235
|
dataEntries: A2,
|
|
5232
|
-
axisFilters:
|
|
5236
|
+
axisFilters: U
|
|
5233
5237
|
});
|
|
5234
5238
|
}
|
|
5235
5239
|
} else
|
|
5236
5240
|
u2.push({
|
|
5237
5241
|
type: "direct",
|
|
5238
|
-
originalColumn:
|
|
5239
|
-
spec:
|
|
5240
|
-
adjustedSpec:
|
|
5242
|
+
originalColumn: m2,
|
|
5243
|
+
spec: w2,
|
|
5244
|
+
adjustedSpec: w2
|
|
5241
5245
|
});
|
|
5242
5246
|
}
|
|
5243
5247
|
}
|
|
5244
5248
|
if (u2.length === 0) return [];
|
|
5245
|
-
const
|
|
5249
|
+
const p2 = Re(
|
|
5246
5250
|
u2,
|
|
5247
5251
|
(d) => ({
|
|
5248
5252
|
spec: d.spec,
|
|
5249
|
-
suffixTrace: d.type === "split" ?
|
|
5253
|
+
suffixTrace: d.type === "split" ? xt(d.axisFilters) : void 0
|
|
5250
5254
|
}),
|
|
5251
5255
|
a
|
|
5252
|
-
),
|
|
5253
|
-
for (const { value: d, label: f2 } of
|
|
5254
|
-
const { originalColumn:
|
|
5255
|
-
let
|
|
5256
|
-
r ?
|
|
5257
|
-
let
|
|
5258
|
-
o && (
|
|
5259
|
-
...
|
|
5256
|
+
), v = [];
|
|
5257
|
+
for (const { value: d, label: f2 } of p2) {
|
|
5258
|
+
const { originalColumn: g, spec: h } = d, P = d.type === "split" ? d.axisFilters : void 0, c2 = Pt(P);
|
|
5259
|
+
let b;
|
|
5260
|
+
r ? b = r.deriveS(h, c2) : b = Ct(g.id, c2);
|
|
5261
|
+
let m2 = { ...d.adjustedSpec };
|
|
5262
|
+
o && (m2 = {
|
|
5263
|
+
...m2,
|
|
5260
5264
|
annotations: {
|
|
5261
|
-
...
|
|
5265
|
+
...m2.annotations ?? {},
|
|
5262
5266
|
"pl7.app/label": f2
|
|
5263
5267
|
}
|
|
5264
|
-
}),
|
|
5265
|
-
id:
|
|
5266
|
-
spec:
|
|
5268
|
+
}), v.push({
|
|
5269
|
+
id: b,
|
|
5270
|
+
spec: m2,
|
|
5267
5271
|
data: () => d.type === "split" ? gn(wt(d.dataEntries, c2)) : d.originalColumn.data,
|
|
5268
5272
|
label: f2
|
|
5269
5273
|
});
|
|
5270
5274
|
}
|
|
5271
|
-
return
|
|
5275
|
+
return v;
|
|
5272
5276
|
}
|
|
5273
5277
|
getColumns(e, n2) {
|
|
5274
5278
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5300,12 +5304,12 @@
|
|
|
5300
5304
|
if (t[n2] !== e[n2]) return false;
|
|
5301
5305
|
return true;
|
|
5302
5306
|
}
|
|
5303
|
-
function
|
|
5307
|
+
function Pe(t) {
|
|
5304
5308
|
return Fn(t, (e) => e instanceof I ? e.handle : mn(e) ? ln(e, (n2) => n2.handle) : e);
|
|
5305
5309
|
}
|
|
5306
5310
|
class It {
|
|
5307
5311
|
constructor() {
|
|
5308
|
-
T(this, "ctx",
|
|
5312
|
+
T(this, "ctx", y());
|
|
5309
5313
|
}
|
|
5310
5314
|
/**
|
|
5311
5315
|
* @deprecated use getOptions()
|
|
@@ -5579,7 +5583,7 @@
|
|
|
5579
5583
|
T(this, "uiState");
|
|
5580
5584
|
T(this, "_activeArgsCache");
|
|
5581
5585
|
T(this, "resultPool", new It());
|
|
5582
|
-
this.ctx =
|
|
5586
|
+
this.ctx = y(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5583
5587
|
}
|
|
5584
5588
|
/**
|
|
5585
5589
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
@@ -5595,7 +5599,7 @@
|
|
|
5595
5599
|
// return this.ctx.featureFlags;
|
|
5596
5600
|
// }
|
|
5597
5601
|
getNamedAccessor(e) {
|
|
5598
|
-
return
|
|
5602
|
+
return pe(
|
|
5599
5603
|
this.ctx.getAccessorHandleByName(e),
|
|
5600
5604
|
(n2) => new I(n2, [e])
|
|
5601
5605
|
);
|
|
@@ -5604,7 +5608,7 @@
|
|
|
5604
5608
|
return this.getNamedAccessor(Fe);
|
|
5605
5609
|
}
|
|
5606
5610
|
get outputs() {
|
|
5607
|
-
return this.getNamedAccessor(
|
|
5611
|
+
return this.getNamedAccessor(Oe);
|
|
5608
5612
|
}
|
|
5609
5613
|
/**
|
|
5610
5614
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5622,7 +5626,7 @@
|
|
|
5622
5626
|
// TODO remove all non-PColumn fields
|
|
5623
5627
|
createPFrame(e) {
|
|
5624
5628
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5625
|
-
e.map((n2) =>
|
|
5629
|
+
e.map((n2) => Pe(n2))
|
|
5626
5630
|
);
|
|
5627
5631
|
}
|
|
5628
5632
|
createPTable(e) {
|
|
@@ -5635,7 +5639,7 @@
|
|
|
5635
5639
|
filters: e.filters ?? [],
|
|
5636
5640
|
sorting: e.sorting ?? []
|
|
5637
5641
|
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Un(n2.src)), this.ctx.createPTable(
|
|
5638
|
-
On(n2, (r) =>
|
|
5642
|
+
On(n2, (r) => Pe(r))
|
|
5639
5643
|
);
|
|
5640
5644
|
}
|
|
5641
5645
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5646,7 +5650,7 @@
|
|
|
5646
5650
|
return this.ctx.getCurrentUnstableMarker();
|
|
5647
5651
|
}
|
|
5648
5652
|
}
|
|
5649
|
-
const
|
|
5653
|
+
const G = "1.30.21";
|
|
5650
5654
|
function Lt(t) {
|
|
5651
5655
|
return t.__renderLambda === true;
|
|
5652
5656
|
}
|
|
@@ -5673,7 +5677,7 @@
|
|
|
5673
5677
|
output(e, n2, r = {}) {
|
|
5674
5678
|
if (typeof n2 == "function") {
|
|
5675
5679
|
const i = `output#${e}`;
|
|
5676
|
-
return
|
|
5680
|
+
return B(i, () => n2(new X())), new _(
|
|
5677
5681
|
this._renderingMode,
|
|
5678
5682
|
this._initialArgs,
|
|
5679
5683
|
this._initialUiState,
|
|
@@ -5710,7 +5714,7 @@
|
|
|
5710
5714
|
return this.output(e, n2, { retentive: true });
|
|
5711
5715
|
}
|
|
5712
5716
|
argsValid(e) {
|
|
5713
|
-
return typeof e == "function" ? (
|
|
5717
|
+
return typeof e == "function" ? (B("inputsValid", () => e(new X())), new _(
|
|
5714
5718
|
this._renderingMode,
|
|
5715
5719
|
this._initialArgs,
|
|
5716
5720
|
this._initialUiState,
|
|
@@ -5734,7 +5738,7 @@
|
|
|
5734
5738
|
);
|
|
5735
5739
|
}
|
|
5736
5740
|
sections(e) {
|
|
5737
|
-
return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (
|
|
5741
|
+
return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (B("sections", () => e(new X())), new _(
|
|
5738
5742
|
this._renderingMode,
|
|
5739
5743
|
this._initialArgs,
|
|
5740
5744
|
this._initialUiState,
|
|
@@ -5756,7 +5760,7 @@
|
|
|
5756
5760
|
}
|
|
5757
5761
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5758
5762
|
title(e) {
|
|
5759
|
-
return
|
|
5763
|
+
return B("title", () => e(new X())), new _(
|
|
5760
5764
|
this._renderingMode,
|
|
5761
5765
|
this._initialArgs,
|
|
5762
5766
|
this._initialUiState,
|
|
@@ -5814,7 +5818,7 @@
|
|
|
5814
5818
|
* Influences dependency graph construction.
|
|
5815
5819
|
*/
|
|
5816
5820
|
enriches(e) {
|
|
5817
|
-
return
|
|
5821
|
+
return B("enrichmentTargets", e), new _(
|
|
5818
5822
|
this._renderingMode,
|
|
5819
5823
|
this._initialArgs,
|
|
5820
5824
|
this._initialUiState,
|
|
@@ -5832,7 +5836,7 @@
|
|
|
5832
5836
|
if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
|
|
5833
5837
|
const e = {
|
|
5834
5838
|
v3: {
|
|
5835
|
-
sdkVersion:
|
|
5839
|
+
sdkVersion: G,
|
|
5836
5840
|
renderingMode: this._renderingMode,
|
|
5837
5841
|
initialArgs: this._initialArgs,
|
|
5838
5842
|
initialUiState: this._initialUiState,
|
|
@@ -5843,7 +5847,7 @@
|
|
|
5843
5847
|
enrichmentTargets: this._enrichmentTargets
|
|
5844
5848
|
},
|
|
5845
5849
|
// fields below are added to allow previous desktop versions read generated configs
|
|
5846
|
-
sdkVersion:
|
|
5850
|
+
sdkVersion: G,
|
|
5847
5851
|
renderingMode: this._renderingMode,
|
|
5848
5852
|
initialArgs: this._initialArgs,
|
|
5849
5853
|
inputsValid: ue(this._inputsValid),
|
|
@@ -5852,7 +5856,7 @@
|
|
|
5852
5856
|
Object.entries(this._outputs).map(([n2, r]) => [n2, ue(r)])
|
|
5853
5857
|
)
|
|
5854
5858
|
};
|
|
5855
|
-
return st() ? Ee({ sdkVersion:
|
|
5859
|
+
return st() ? Ee({ sdkVersion: G }) : { config: e };
|
|
5856
5860
|
}
|
|
5857
5861
|
}
|
|
5858
5862
|
const platforma = _.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
|