@milaboratories/milaboratories.pool-explorer.model 1.0.59 → 1.0.61
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 +7 -7
- package/CHANGELOG.md +14 -0
- package/dist/bundle.js +303 -294
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +4 -4
package/dist/bundle.js
CHANGED
|
@@ -3071,29 +3071,29 @@
|
|
|
3071
3071
|
const params = { errorMap: ctx.common.contextualErrorMap };
|
|
3072
3072
|
const fn2 = ctx.data;
|
|
3073
3073
|
if (this._def.returns instanceof ZodPromise) {
|
|
3074
|
-
const
|
|
3074
|
+
const me2 = this;
|
|
3075
3075
|
return OK(async function(...args) {
|
|
3076
3076
|
const error = new ZodError([]);
|
|
3077
|
-
const parsedArgs = await
|
|
3077
|
+
const parsedArgs = await me2._def.args.parseAsync(args, params).catch((e) => {
|
|
3078
3078
|
error.addIssue(makeArgsIssue(args, e));
|
|
3079
3079
|
throw error;
|
|
3080
3080
|
});
|
|
3081
3081
|
const result = await Reflect.apply(fn2, this, parsedArgs);
|
|
3082
|
-
const parsedReturns = await
|
|
3082
|
+
const parsedReturns = await me2._def.returns._def.type.parseAsync(result, params).catch((e) => {
|
|
3083
3083
|
error.addIssue(makeReturnsIssue(result, e));
|
|
3084
3084
|
throw error;
|
|
3085
3085
|
});
|
|
3086
3086
|
return parsedReturns;
|
|
3087
3087
|
});
|
|
3088
3088
|
} else {
|
|
3089
|
-
const
|
|
3089
|
+
const me2 = this;
|
|
3090
3090
|
return OK(function(...args) {
|
|
3091
|
-
const parsedArgs =
|
|
3091
|
+
const parsedArgs = me2._def.args.safeParse(args, params);
|
|
3092
3092
|
if (!parsedArgs.success) {
|
|
3093
3093
|
throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
|
|
3094
3094
|
}
|
|
3095
3095
|
const result = Reflect.apply(fn2, this, parsedArgs.data);
|
|
3096
|
-
const parsedReturns =
|
|
3096
|
+
const parsedReturns = me2._def.returns.safeParse(result, params);
|
|
3097
3097
|
if (!parsedReturns.success) {
|
|
3098
3098
|
throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
|
|
3099
3099
|
}
|
|
@@ -3955,7 +3955,7 @@
|
|
|
3955
3955
|
return canonicalize;
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
-
const
|
|
3958
|
+
const Oe = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
3959
|
var B$1 = Object.defineProperty;
|
|
3960
3960
|
var j = (n2, e, t) => e in n2 ? B$1(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
|
|
3961
3961
|
var l$1 = (n2, e, t) => j(n2, typeof e != "symbol" ? e + "" : e, t);
|
|
@@ -4103,7 +4103,7 @@
|
|
|
4103
4103
|
return n2.map(p$1);
|
|
4104
4104
|
}
|
|
4105
4105
|
function Rn(n2) {
|
|
4106
|
-
return
|
|
4106
|
+
return Oe(p$1(n2));
|
|
4107
4107
|
}
|
|
4108
4108
|
function Y$1(n2, e) {
|
|
4109
4109
|
if (n2 === void 0) return e === void 0;
|
|
@@ -4151,15 +4151,15 @@
|
|
|
4151
4151
|
}
|
|
4152
4152
|
}
|
|
4153
4153
|
function nn(n2) {
|
|
4154
|
-
return
|
|
4154
|
+
return Oe(n2);
|
|
4155
4155
|
}
|
|
4156
4156
|
function P(n2) {
|
|
4157
|
-
return
|
|
4157
|
+
return Oe(p$1(n2));
|
|
4158
4158
|
}
|
|
4159
|
-
function k(n2, e) {
|
|
4159
|
+
function k$1(n2, e) {
|
|
4160
4160
|
return JSON.stringify([n2, e]);
|
|
4161
4161
|
}
|
|
4162
|
-
class
|
|
4162
|
+
class Mn {
|
|
4163
4163
|
/**
|
|
4164
4164
|
* Creates a new anchor context from a set of anchor column specifications
|
|
4165
4165
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
@@ -4181,7 +4181,7 @@
|
|
|
4181
4181
|
const s2 = Object.entries(o.domain);
|
|
4182
4182
|
s2.sort((a, i) => a[0].localeCompare(i[0])), this.domainPackToAnchor.set(JSON.stringify(s2), r), this.domainPacks.push(s2.map(([a]) => a));
|
|
4183
4183
|
for (const [a, i] of s2) {
|
|
4184
|
-
const u2 = k(a, i);
|
|
4184
|
+
const u2 = k$1(a, i);
|
|
4185
4185
|
this.domains.set(u2, r);
|
|
4186
4186
|
}
|
|
4187
4187
|
}
|
|
@@ -4216,7 +4216,7 @@
|
|
|
4216
4216
|
for (const [a, i] of Object.entries(e.domain ?? {})) {
|
|
4217
4217
|
if (o !== void 0 && o.has(a))
|
|
4218
4218
|
continue;
|
|
4219
|
-
const u2 = k(a, i), c2 = this.domains.get(u2);
|
|
4219
|
+
const u2 = k$1(a, i), c2 = this.domains.get(u2);
|
|
4220
4220
|
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : i;
|
|
4221
4221
|
}
|
|
4222
4222
|
if (r.axes = e.axesSpec.map((a) => {
|
|
@@ -4253,7 +4253,7 @@
|
|
|
4253
4253
|
return nn(this.derive(e, t));
|
|
4254
4254
|
}
|
|
4255
4255
|
}
|
|
4256
|
-
function
|
|
4256
|
+
function Tn(n2, e, t) {
|
|
4257
4257
|
const r = { ...e }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4258
4258
|
if (r.domainAnchor !== void 0) {
|
|
4259
4259
|
const s2 = n2[r.domainAnchor];
|
|
@@ -4318,17 +4318,17 @@
|
|
|
4318
4318
|
function rn(n2) {
|
|
4319
4319
|
return f(n2.spec);
|
|
4320
4320
|
}
|
|
4321
|
-
function
|
|
4321
|
+
function Wn(n2) {
|
|
4322
4322
|
if (!rn(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
|
|
4323
4323
|
return n2;
|
|
4324
4324
|
}
|
|
4325
|
-
function
|
|
4325
|
+
function Xn(n2, e) {
|
|
4326
4326
|
return n2 === void 0 ? void 0 : {
|
|
4327
4327
|
...n2,
|
|
4328
4328
|
data: e(n2.data)
|
|
4329
4329
|
};
|
|
4330
4330
|
}
|
|
4331
|
-
function
|
|
4331
|
+
function Gn(n2) {
|
|
4332
4332
|
const e = /* @__PURE__ */ new Map(), t = (r) => {
|
|
4333
4333
|
switch (r.type) {
|
|
4334
4334
|
case "column":
|
|
@@ -4353,7 +4353,7 @@
|
|
|
4353
4353
|
};
|
|
4354
4354
|
return t(n2), [...e.values()];
|
|
4355
4355
|
}
|
|
4356
|
-
function E
|
|
4356
|
+
function E(n2, e) {
|
|
4357
4357
|
if (n2.name !== void 0 && n2.name !== e.name)
|
|
4358
4358
|
return false;
|
|
4359
4359
|
if (n2.type !== void 0) {
|
|
@@ -4391,13 +4391,13 @@
|
|
|
4391
4391
|
const t = n2.axesSpec.map(p$1);
|
|
4392
4392
|
if (e.partialAxesMatch) {
|
|
4393
4393
|
for (const r of e.axes)
|
|
4394
|
-
if (!t.some((o) => E
|
|
4394
|
+
if (!t.some((o) => E(r, o)))
|
|
4395
4395
|
return false;
|
|
4396
4396
|
} else {
|
|
4397
4397
|
if (t.length !== e.axes.length)
|
|
4398
4398
|
return false;
|
|
4399
4399
|
for (let r = 0; r < e.axes.length; r++)
|
|
4400
|
-
if (!E
|
|
4400
|
+
if (!E(e.axes[r], t[r]))
|
|
4401
4401
|
return false;
|
|
4402
4402
|
}
|
|
4403
4403
|
}
|
|
@@ -4417,15 +4417,15 @@
|
|
|
4417
4417
|
}
|
|
4418
4418
|
return true;
|
|
4419
4419
|
}
|
|
4420
|
-
function
|
|
4420
|
+
function Qn(n2) {
|
|
4421
4421
|
return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
|
|
4422
4422
|
}
|
|
4423
|
-
function
|
|
4423
|
+
function Yn(n2) {
|
|
4424
4424
|
const e = {
|
|
4425
4425
|
kind: n2.kind,
|
|
4426
4426
|
name: n2.name
|
|
4427
4427
|
};
|
|
4428
|
-
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = J(n2.axesSpec)),
|
|
4428
|
+
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = J(n2.axesSpec)), Oe(e);
|
|
4429
4429
|
}
|
|
4430
4430
|
z$1.object({
|
|
4431
4431
|
__isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4435,10 +4435,10 @@
|
|
|
4435
4435
|
}).describe(
|
|
4436
4436
|
"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."
|
|
4437
4437
|
).readonly();
|
|
4438
|
-
function
|
|
4438
|
+
function ee(n2) {
|
|
4439
4439
|
return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
|
|
4440
4440
|
}
|
|
4441
|
-
function
|
|
4441
|
+
function re$1(n2, e = true) {
|
|
4442
4442
|
if (e)
|
|
4443
4443
|
return {
|
|
4444
4444
|
...n2,
|
|
@@ -4449,7 +4449,7 @@
|
|
|
4449
4449
|
return r;
|
|
4450
4450
|
}
|
|
4451
4451
|
}
|
|
4452
|
-
function
|
|
4452
|
+
function ie(n2, e) {
|
|
4453
4453
|
return n2.ok ? { ok: true, value: e(n2.value) } : n2;
|
|
4454
4454
|
}
|
|
4455
4455
|
const fn = 24;
|
|
@@ -4513,54 +4513,54 @@
|
|
|
4513
4513
|
cause: z$1.lazy(() => n).optional(),
|
|
4514
4514
|
errors: z$1.lazy(() => n.array()).optional()
|
|
4515
4515
|
});
|
|
4516
|
-
var
|
|
4517
|
-
var
|
|
4518
|
-
var
|
|
4516
|
+
var qe = Object.defineProperty;
|
|
4517
|
+
var ze = (t, e, n2) => e in t ? qe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4518
|
+
var F = (t, e, n2) => ze(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4519
4519
|
function re(t) {
|
|
4520
4520
|
return { type: "Immediate", value: t };
|
|
4521
4521
|
}
|
|
4522
|
-
function
|
|
4522
|
+
function pt() {
|
|
4523
4523
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4524
4524
|
}
|
|
4525
|
-
function
|
|
4525
|
+
function Ve(t) {
|
|
4526
4526
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4527
4527
|
return globalThis.getPlatforma(t);
|
|
4528
4528
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4529
4529
|
throw new Error("Can't get platforma instance.");
|
|
4530
4530
|
}
|
|
4531
|
-
function
|
|
4531
|
+
function ft() {
|
|
4532
4532
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4534
|
+
function v() {
|
|
4535
4535
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4536
4536
|
throw new Error("Not in config rendering context");
|
|
4537
4537
|
}
|
|
4538
4538
|
function H(t, e) {
|
|
4539
|
-
const n2 =
|
|
4539
|
+
const n2 = ft();
|
|
4540
4540
|
if (n2 === void 0) return false;
|
|
4541
4541
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4542
4542
|
return n2.callbackRegistry[t] = e, true;
|
|
4543
4543
|
}
|
|
4544
|
-
const
|
|
4545
|
-
function
|
|
4546
|
-
t in
|
|
4547
|
-
for (const r of
|
|
4544
|
+
const ce = /* @__PURE__ */ new Map();
|
|
4545
|
+
function ht(t, e) {
|
|
4546
|
+
t in v().callbackRegistry || (v().callbackRegistry[t] = (n2) => {
|
|
4547
|
+
for (const r of ce.get(t))
|
|
4548
4548
|
r(n2);
|
|
4549
|
-
},
|
|
4549
|
+
}, ce.set(t, [])), ce.get(t).push(e);
|
|
4550
4550
|
}
|
|
4551
|
-
class
|
|
4551
|
+
class L {
|
|
4552
4552
|
constructor(e, n2 = (r) => r) {
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
this.handle = e, this.postProcess = n2,
|
|
4553
|
+
F(this, "isResolved", false);
|
|
4554
|
+
F(this, "resolvedValue");
|
|
4555
|
+
this.handle = e, this.postProcess = n2, ht(e, (r) => {
|
|
4556
4556
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4557
4557
|
});
|
|
4558
4558
|
}
|
|
4559
4559
|
map(e) {
|
|
4560
|
-
return new
|
|
4560
|
+
return new L(this.handle, (n2) => e(this.postProcess(n2)));
|
|
4561
4561
|
}
|
|
4562
4562
|
mapDefined(e) {
|
|
4563
|
-
return new
|
|
4563
|
+
return new L(this.handle, (n2) => {
|
|
4564
4564
|
const r = this.postProcess(n2);
|
|
4565
4565
|
return r ? e(r) : void 0;
|
|
4566
4566
|
});
|
|
@@ -4569,10 +4569,10 @@
|
|
|
4569
4569
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
4570
4570
|
}
|
|
4571
4571
|
}
|
|
4572
|
-
function
|
|
4572
|
+
function he(t, e) {
|
|
4573
4573
|
return t === void 0 ? void 0 : e(t);
|
|
4574
4574
|
}
|
|
4575
|
-
class
|
|
4575
|
+
class D {
|
|
4576
4576
|
constructor(e, n2) {
|
|
4577
4577
|
this.handle = e, this.resolvePath = n2;
|
|
4578
4578
|
}
|
|
@@ -4611,47 +4611,47 @@
|
|
|
4611
4611
|
...this.resolvePath,
|
|
4612
4612
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4613
4613
|
];
|
|
4614
|
-
return
|
|
4615
|
-
|
|
4616
|
-
(i) => new
|
|
4614
|
+
return he(
|
|
4615
|
+
v().resolveWithCommon(this.handle, e, ...n2),
|
|
4616
|
+
(i) => new D(i, r)
|
|
4617
4617
|
);
|
|
4618
4618
|
}
|
|
4619
4619
|
get resourceType() {
|
|
4620
|
-
return
|
|
4620
|
+
return v().getResourceType(this.handle);
|
|
4621
4621
|
}
|
|
4622
4622
|
getInputsLocked() {
|
|
4623
|
-
return
|
|
4623
|
+
return v().getInputsLocked(this.handle);
|
|
4624
4624
|
}
|
|
4625
4625
|
getOutputsLocked() {
|
|
4626
|
-
return
|
|
4626
|
+
return v().getOutputsLocked(this.handle);
|
|
4627
4627
|
}
|
|
4628
4628
|
getIsReadyOrError() {
|
|
4629
|
-
return
|
|
4629
|
+
return v().getIsReadyOrError(this.handle);
|
|
4630
4630
|
}
|
|
4631
4631
|
getIsFinal() {
|
|
4632
|
-
return
|
|
4632
|
+
return v().getIsFinal(this.handle);
|
|
4633
4633
|
}
|
|
4634
4634
|
getError() {
|
|
4635
4635
|
const e = [...this.resolvePath, "error"];
|
|
4636
|
-
return
|
|
4637
|
-
|
|
4638
|
-
(n2) => new
|
|
4636
|
+
return he(
|
|
4637
|
+
v().getError(this.handle),
|
|
4638
|
+
(n2) => new D(n2, e)
|
|
4639
4639
|
);
|
|
4640
4640
|
}
|
|
4641
4641
|
listInputFields() {
|
|
4642
|
-
return
|
|
4642
|
+
return v().listInputFields(this.handle);
|
|
4643
4643
|
}
|
|
4644
4644
|
listOutputFields() {
|
|
4645
|
-
return
|
|
4645
|
+
return v().listOutputFields(this.handle);
|
|
4646
4646
|
}
|
|
4647
4647
|
listDynamicFields() {
|
|
4648
|
-
return
|
|
4648
|
+
return v().listDynamicFields(this.handle);
|
|
4649
4649
|
}
|
|
4650
4650
|
getKeyValueBase64(e) {
|
|
4651
|
-
return
|
|
4651
|
+
return v().getKeyValueBase64(this.handle, e);
|
|
4652
4652
|
}
|
|
4653
4653
|
getKeyValueAsString(e) {
|
|
4654
|
-
return
|
|
4654
|
+
return v().getKeyValueAsString(this.handle, e);
|
|
4655
4655
|
}
|
|
4656
4656
|
getKeyValueAsJson(e) {
|
|
4657
4657
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4659,10 +4659,10 @@
|
|
|
4659
4659
|
return JSON.parse(n2);
|
|
4660
4660
|
}
|
|
4661
4661
|
getDataBase64() {
|
|
4662
|
-
return
|
|
4662
|
+
return v().getDataBase64(this.handle);
|
|
4663
4663
|
}
|
|
4664
4664
|
getDataAsString() {
|
|
4665
|
-
return
|
|
4665
|
+
return v().getDataAsString(this.handle);
|
|
4666
4666
|
}
|
|
4667
4667
|
getDataAsJson() {
|
|
4668
4668
|
const e = this.getDataAsString();
|
|
@@ -4683,7 +4683,7 @@
|
|
|
4683
4683
|
*
|
|
4684
4684
|
*/
|
|
4685
4685
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4686
|
-
const r =
|
|
4686
|
+
const r = v().parsePObjectCollection(
|
|
4687
4687
|
this.handle,
|
|
4688
4688
|
e,
|
|
4689
4689
|
n2,
|
|
@@ -4693,19 +4693,19 @@
|
|
|
4693
4693
|
const i = {};
|
|
4694
4694
|
for (const [s2, o] of Object.entries(r)) {
|
|
4695
4695
|
const a = [...this.resolvePath, s2];
|
|
4696
|
-
i[s2] =
|
|
4696
|
+
i[s2] = Xn(o, (l2) => new D(l2, a));
|
|
4697
4697
|
}
|
|
4698
4698
|
return i;
|
|
4699
4699
|
}
|
|
4700
4700
|
getFileContentAsBase64(e) {
|
|
4701
|
-
return new
|
|
4701
|
+
return new L(v().getBlobContentAsBase64(this.handle, e));
|
|
4702
4702
|
}
|
|
4703
4703
|
getFileContentAsString(e) {
|
|
4704
|
-
return new
|
|
4704
|
+
return new L(v().getBlobContentAsString(this.handle, e));
|
|
4705
4705
|
}
|
|
4706
4706
|
getFileContentAsJson(e) {
|
|
4707
|
-
return new
|
|
4708
|
-
|
|
4707
|
+
return new L(
|
|
4708
|
+
v().getBlobContentAsString(this.handle, e)
|
|
4709
4709
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4710
4710
|
}
|
|
4711
4711
|
/**
|
|
@@ -4724,7 +4724,7 @@
|
|
|
4724
4724
|
* @returns downloaded file handle
|
|
4725
4725
|
*/
|
|
4726
4726
|
getFileHandle() {
|
|
4727
|
-
return new
|
|
4727
|
+
return new L(v().getDownloadedBlobContentHandle(this.handle));
|
|
4728
4728
|
}
|
|
4729
4729
|
/**
|
|
4730
4730
|
* @deprecated use getFileHandle
|
|
@@ -4736,7 +4736,7 @@
|
|
|
4736
4736
|
* @returns downloaded file handle
|
|
4737
4737
|
*/
|
|
4738
4738
|
getRemoteFileHandle() {
|
|
4739
|
-
return new
|
|
4739
|
+
return new L(v().getOnDemandBlobContentHandle(this.handle));
|
|
4740
4740
|
}
|
|
4741
4741
|
/**
|
|
4742
4742
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4748,22 +4748,22 @@
|
|
|
4748
4748
|
* @returns the url to the extracted folder
|
|
4749
4749
|
*/
|
|
4750
4750
|
extractArchiveAndGetURL(e) {
|
|
4751
|
-
return new
|
|
4751
|
+
return new L(v().extractArchiveAndGetURL(this.handle, e));
|
|
4752
4752
|
}
|
|
4753
4753
|
getImportProgress() {
|
|
4754
|
-
return new
|
|
4754
|
+
return new L(v().getImportProgress(this.handle));
|
|
4755
4755
|
}
|
|
4756
4756
|
getLastLogs(e) {
|
|
4757
|
-
return new
|
|
4757
|
+
return new L(v().getLastLogs(this.handle, e));
|
|
4758
4758
|
}
|
|
4759
4759
|
getProgressLog(e) {
|
|
4760
|
-
return new
|
|
4760
|
+
return new L(v().getProgressLog(this.handle, e));
|
|
4761
4761
|
}
|
|
4762
4762
|
getProgressLogWithInfo(e) {
|
|
4763
|
-
return new
|
|
4763
|
+
return new L(v().getProgressLogWithInfo(this.handle, e));
|
|
4764
4764
|
}
|
|
4765
4765
|
getLogHandle() {
|
|
4766
|
-
return new
|
|
4766
|
+
return new L(v().getLogHandle(this.handle));
|
|
4767
4767
|
}
|
|
4768
4768
|
allFieldsResolved(e = "Input") {
|
|
4769
4769
|
switch (e) {
|
|
@@ -4789,98 +4789,98 @@
|
|
|
4789
4789
|
let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4790
4790
|
(u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
|
|
4791
4791
|
);
|
|
4792
|
-
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2,
|
|
4792
|
+
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, d]) => o(u2, d));
|
|
4793
4793
|
}
|
|
4794
4794
|
}
|
|
4795
|
-
const
|
|
4796
|
-
const
|
|
4795
|
+
const Ke = "staging", je = "main";
|
|
4796
|
+
const yt = "pl7.app/label", bt = "pl7.app/trace", vt = z$1.object({
|
|
4797
4797
|
type: z$1.string(),
|
|
4798
4798
|
importance: z$1.number().optional(),
|
|
4799
4799
|
id: z$1.string().optional(),
|
|
4800
4800
|
label: z$1.string()
|
|
4801
|
-
}),
|
|
4801
|
+
}), wt = z$1.array(vt), St = 1e-3, Ct = "__LABEL__", Ie = "__LABEL__@1";
|
|
4802
4802
|
function $e(t, e, n2 = {}) {
|
|
4803
4803
|
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((p2) => {
|
|
4804
|
-
var
|
|
4805
|
-
const
|
|
4806
|
-
let f2,
|
|
4807
|
-
"spec" in
|
|
4808
|
-
const
|
|
4809
|
-
...
|
|
4810
|
-
...
|
|
4811
|
-
...
|
|
4804
|
+
var c2, m2;
|
|
4805
|
+
const b = e(p2);
|
|
4806
|
+
let f2, y, w2;
|
|
4807
|
+
"spec" in b && typeof b.spec == "object" ? (f2 = b.spec, y = b.prefixTrace, w2 = b.suffixTrace) : f2 = b;
|
|
4808
|
+
const E2 = (c2 = f2.annotations) == null ? void 0 : c2[yt], x = (m2 = f2.annotations) == null ? void 0 : m2[bt], C = (x ? wt.safeParse(JSON.parse(x)).data : void 0) ?? [], A = [
|
|
4809
|
+
...y ?? [],
|
|
4810
|
+
...C,
|
|
4811
|
+
...w2 ?? []
|
|
4812
4812
|
];
|
|
4813
|
-
if (
|
|
4814
|
-
const
|
|
4815
|
-
n2.addLabelAsSuffix ?
|
|
4816
|
-
}
|
|
4817
|
-
const
|
|
4818
|
-
for (let
|
|
4819
|
-
const { type: W } =
|
|
4820
|
-
|
|
4821
|
-
const
|
|
4822
|
-
s2.set(
|
|
4823
|
-
|
|
4813
|
+
if (E2 !== void 0) {
|
|
4814
|
+
const _ = { label: E2, type: Ct, importance: -2 };
|
|
4815
|
+
n2.addLabelAsSuffix ? A.push(_) : A.splice(0, 0, _);
|
|
4816
|
+
}
|
|
4817
|
+
const S = [], I = /* @__PURE__ */ new Map();
|
|
4818
|
+
for (let _ = A.length - 1; _ >= 0; --_) {
|
|
4819
|
+
const { type: W } = A[_], j2 = A[_].importance ?? 0, $ = (I.get(W) ?? 0) + 1;
|
|
4820
|
+
I.set(W, $);
|
|
4821
|
+
const V = `${W}@${$}`;
|
|
4822
|
+
s2.set(V, (s2.get(V) ?? 0) + 1), r.set(
|
|
4823
|
+
V,
|
|
4824
4824
|
Math.max(
|
|
4825
|
-
r.get(
|
|
4826
|
-
j2 - (
|
|
4825
|
+
r.get(V) ?? Number.NEGATIVE_INFINITY,
|
|
4826
|
+
j2 - (A.length - _) * St
|
|
4827
4827
|
)
|
|
4828
|
-
),
|
|
4828
|
+
), S.push({ ...A[_], fullType: V, occurrenceIndex: $ });
|
|
4829
4829
|
}
|
|
4830
|
-
return
|
|
4830
|
+
return S.reverse(), {
|
|
4831
4831
|
value: p2,
|
|
4832
4832
|
spec: f2,
|
|
4833
|
-
label:
|
|
4834
|
-
fullTrace:
|
|
4833
|
+
label: E2,
|
|
4834
|
+
fullTrace: S
|
|
4835
4835
|
};
|
|
4836
4836
|
}), a = [], l2 = [], u2 = [...r];
|
|
4837
|
-
u2.sort(([, p2], [,
|
|
4837
|
+
u2.sort(([, p2], [, b]) => b - p2);
|
|
4838
4838
|
for (const [p2] of u2)
|
|
4839
4839
|
p2.endsWith("@1") || s2.get(p2) === t.length ? a.push(p2) : l2.push(p2);
|
|
4840
|
-
const
|
|
4840
|
+
const d = (p2, b = false) => {
|
|
4841
4841
|
const f2 = [];
|
|
4842
|
-
for (let
|
|
4843
|
-
const
|
|
4844
|
-
if (
|
|
4845
|
-
if (
|
|
4842
|
+
for (let y = 0; y < o.length; y++) {
|
|
4843
|
+
const w2 = o[y], E2 = w2.fullTrace.filter((A) => p2.has(A.fullType) || i && i.has(A.type));
|
|
4844
|
+
if (E2.length === 0)
|
|
4845
|
+
if (b)
|
|
4846
4846
|
f2.push({
|
|
4847
4847
|
label: "Unlabeled",
|
|
4848
|
-
value:
|
|
4848
|
+
value: w2.value
|
|
4849
4849
|
});
|
|
4850
4850
|
else return;
|
|
4851
|
-
const
|
|
4851
|
+
const x = E2.map((A) => A.label), C = n2.separator ?? " / ";
|
|
4852
4852
|
f2.push({
|
|
4853
|
-
label:
|
|
4854
|
-
value:
|
|
4853
|
+
label: x.join(C),
|
|
4854
|
+
value: w2.value
|
|
4855
4855
|
});
|
|
4856
4856
|
}
|
|
4857
4857
|
return f2;
|
|
4858
4858
|
};
|
|
4859
4859
|
if (a.length === 0) {
|
|
4860
4860
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4861
|
-
return
|
|
4861
|
+
return d(new Set(Ie), true);
|
|
4862
4862
|
}
|
|
4863
|
-
let
|
|
4864
|
-
for (;
|
|
4863
|
+
let h2 = 0, g = -1;
|
|
4864
|
+
for (; h2 < a.length; ) {
|
|
4865
4865
|
const p2 = /* @__PURE__ */ new Set();
|
|
4866
|
-
n2.includeNativeLabel && p2.add(
|
|
4867
|
-
for (let f2 = 0; f2 <
|
|
4866
|
+
n2.includeNativeLabel && p2.add(Ie);
|
|
4867
|
+
for (let f2 = 0; f2 < h2; ++f2) p2.add(a[f2]);
|
|
4868
4868
|
g >= 0 && p2.add(a[g]);
|
|
4869
|
-
const
|
|
4870
|
-
if (
|
|
4871
|
-
g++, g >= a.length && (
|
|
4869
|
+
const b = d(p2);
|
|
4870
|
+
if (b !== void 0 && new Set(b.map((f2) => f2.label)).size === t.length) return b;
|
|
4871
|
+
g++, g >= a.length && (h2++, g = h2);
|
|
4872
4872
|
}
|
|
4873
|
-
return
|
|
4873
|
+
return d(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4874
4874
|
}
|
|
4875
4875
|
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", Je = Z + "Partitioned/", ae = Je + "JsonPartitioned", z = Je + "BinaryPartitioned";
|
|
4876
|
-
const
|
|
4876
|
+
const me = (t) => {
|
|
4877
4877
|
if (t.endsWith(".index"))
|
|
4878
4878
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
4879
4879
|
if (t.endsWith(".values"))
|
|
4880
4880
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4881
4881
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4882
4882
|
};
|
|
4883
|
-
function
|
|
4883
|
+
function At(t) {
|
|
4884
4884
|
if (!t) return;
|
|
4885
4885
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4886
4886
|
let i = 0;
|
|
@@ -4905,7 +4905,7 @@
|
|
|
4905
4905
|
case q:
|
|
4906
4906
|
case B:
|
|
4907
4907
|
for (let s2 of t.listInputFields()) {
|
|
4908
|
-
e === B && (s2 =
|
|
4908
|
+
e === B && (s2 = me(s2).baseKey);
|
|
4909
4909
|
const o = [...JSON.parse(s2)];
|
|
4910
4910
|
r.push(o);
|
|
4911
4911
|
}
|
|
@@ -4917,7 +4917,7 @@
|
|
|
4917
4917
|
const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
4918
4918
|
if (a !== void 0)
|
|
4919
4919
|
for (let l2 of a.listInputFields()) {
|
|
4920
|
-
e === z && (l2 =
|
|
4920
|
+
e === z && (l2 = me(l2).baseKey);
|
|
4921
4921
|
const u2 = [...o, ...JSON.parse(l2)];
|
|
4922
4922
|
r.push(u2);
|
|
4923
4923
|
}
|
|
@@ -4926,7 +4926,7 @@
|
|
|
4926
4926
|
}
|
|
4927
4927
|
return { data: r, keyLength: i };
|
|
4928
4928
|
}
|
|
4929
|
-
function
|
|
4929
|
+
function Pt(t) {
|
|
4930
4930
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4931
4931
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4932
4932
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
@@ -4945,11 +4945,11 @@
|
|
|
4945
4945
|
}
|
|
4946
4946
|
return r.map((i) => Array.from(i.values()));
|
|
4947
4947
|
}
|
|
4948
|
-
function
|
|
4948
|
+
function xt(t) {
|
|
4949
4949
|
if (t === void 0) return;
|
|
4950
4950
|
if (K(t))
|
|
4951
|
-
return
|
|
4952
|
-
const e =
|
|
4951
|
+
return Pt(t);
|
|
4952
|
+
const e = At(t);
|
|
4953
4953
|
if (!e) return;
|
|
4954
4954
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4955
4955
|
for (let s2 = 0; s2 < r; ++s2)
|
|
@@ -4962,7 +4962,7 @@
|
|
|
4962
4962
|
}
|
|
4963
4963
|
return i.map((s2) => Array.from(s2.values()));
|
|
4964
4964
|
}
|
|
4965
|
-
function
|
|
4965
|
+
function ye(t, e = []) {
|
|
4966
4966
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
4967
4967
|
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4968
4968
|
if (e.length > 0 && (n2 === ae || n2 === z))
|
|
@@ -4992,7 +4992,7 @@
|
|
|
4992
4992
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4993
4993
|
const i = [], s2 = /* @__PURE__ */ new Map();
|
|
4994
4994
|
for (const o of t.listInputFields()) {
|
|
4995
|
-
const a =
|
|
4995
|
+
const a = me(o), l2 = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4996
4996
|
if (l2 === void 0) return;
|
|
4997
4997
|
let u2 = s2.get(a.baseKey);
|
|
4998
4998
|
u2 || (u2 = {}, s2.set(a.baseKey, u2)), a.type === "index" ? u2.index = l2 : u2.values = l2;
|
|
@@ -5023,7 +5023,7 @@
|
|
|
5023
5023
|
if (a === void 0) return;
|
|
5024
5024
|
if (a.resourceType.name !== q)
|
|
5025
5025
|
throw new Error(`Expected ${q} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5026
|
-
const l2 =
|
|
5026
|
+
const l2 = ye(a, JSON.parse(o));
|
|
5027
5027
|
if (l2 === void 0) return;
|
|
5028
5028
|
if (l2.type !== "JsonPartitioned")
|
|
5029
5029
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5044,7 +5044,7 @@
|
|
|
5044
5044
|
if (a === void 0) return;
|
|
5045
5045
|
if (a.resourceType.name !== B)
|
|
5046
5046
|
throw new Error(`Expected ${B} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5047
|
-
const l2 =
|
|
5047
|
+
const l2 = ye(a, JSON.parse(o));
|
|
5048
5048
|
if (l2 === void 0) return;
|
|
5049
5049
|
if (l2.type !== "BinaryPartitioned")
|
|
5050
5050
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5060,15 +5060,15 @@
|
|
|
5060
5060
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5061
5061
|
}
|
|
5062
5062
|
}
|
|
5063
|
-
function
|
|
5063
|
+
function It(t) {
|
|
5064
5064
|
if (t !== void 0) {
|
|
5065
5065
|
if (K(t)) return t;
|
|
5066
5066
|
if (En(t)) return Cn(t);
|
|
5067
|
-
if (t instanceof
|
|
5067
|
+
if (t instanceof D) return ye(t);
|
|
5068
5068
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5069
5069
|
}
|
|
5070
5070
|
}
|
|
5071
|
-
function
|
|
5071
|
+
function _t(t, e) {
|
|
5072
5072
|
const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
|
|
5073
5073
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5074
5074
|
const { partitionKeyLength: s2 } = t;
|
|
@@ -5128,22 +5128,22 @@
|
|
|
5128
5128
|
}
|
|
5129
5129
|
}
|
|
5130
5130
|
}
|
|
5131
|
-
function
|
|
5131
|
+
function Tt(t) {
|
|
5132
5132
|
if (!Array.isArray(t)) return false;
|
|
5133
5133
|
if (t.length === 0) return true;
|
|
5134
5134
|
const e = t[0];
|
|
5135
5135
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5136
5136
|
}
|
|
5137
|
-
class
|
|
5137
|
+
class Lt {
|
|
5138
5138
|
constructor(e) {
|
|
5139
5139
|
this.columns = e;
|
|
5140
5140
|
}
|
|
5141
5141
|
selectColumns(e) {
|
|
5142
|
-
const n2 = typeof e == "function" ? e :
|
|
5142
|
+
const n2 = typeof e == "function" ? e : Qn(e);
|
|
5143
5143
|
return this.columns.filter((r) => n2(r.spec));
|
|
5144
5144
|
}
|
|
5145
5145
|
}
|
|
5146
|
-
function
|
|
5146
|
+
function Et(t) {
|
|
5147
5147
|
if (t)
|
|
5148
5148
|
return t.map((e) => ({
|
|
5149
5149
|
type: `split:${Rn(e.axisId)}`,
|
|
@@ -5152,16 +5152,16 @@
|
|
|
5152
5152
|
// High importance for split filters in labels
|
|
5153
5153
|
}));
|
|
5154
5154
|
}
|
|
5155
|
-
function
|
|
5155
|
+
function kt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5158
5158
|
}
|
|
5159
|
-
function
|
|
5159
|
+
function Dt(t, e) {
|
|
5160
5160
|
if (!e || e.length === 0) return t;
|
|
5161
5161
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5162
|
-
return
|
|
5162
|
+
return Oe({ id: t, axisFilters: n2 });
|
|
5163
5163
|
}
|
|
5164
|
-
function
|
|
5164
|
+
function _e(t) {
|
|
5165
5165
|
if (!t || typeof t != "object") return false;
|
|
5166
5166
|
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);
|
|
5167
5167
|
return !!e.domainAnchor || n2 || r;
|
|
@@ -5176,9 +5176,9 @@
|
|
|
5176
5176
|
}
|
|
5177
5177
|
class le {
|
|
5178
5178
|
constructor() {
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5179
|
+
F(this, "defaultProviderStore", []);
|
|
5180
|
+
F(this, "providers", [new Lt(this.defaultProviderStore)]);
|
|
5181
|
+
F(this, "axisLabelProviders", []);
|
|
5182
5182
|
}
|
|
5183
5183
|
addColumnProvider(e) {
|
|
5184
5184
|
return this.providers.push(e), this;
|
|
@@ -5206,129 +5206,129 @@
|
|
|
5206
5206
|
};
|
|
5207
5207
|
let u2 = () => false;
|
|
5208
5208
|
if (a) {
|
|
5209
|
-
const f2 = (Array.isArray(a) ? a : [a]).map((
|
|
5210
|
-
if (
|
|
5209
|
+
const f2 = (Array.isArray(a) ? a : [a]).map((y) => {
|
|
5210
|
+
if (_e(y)) {
|
|
5211
5211
|
if (!r)
|
|
5212
5212
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5213
|
-
return
|
|
5213
|
+
return Qn(Tn(r.anchors, y, n2));
|
|
5214
5214
|
} else
|
|
5215
|
-
return
|
|
5215
|
+
return Qn(y);
|
|
5216
5216
|
});
|
|
5217
|
-
u2 = (
|
|
5217
|
+
u2 = (y) => f2.some((w2) => w2(y));
|
|
5218
5218
|
}
|
|
5219
|
-
const
|
|
5220
|
-
for (const f$1 of
|
|
5221
|
-
const
|
|
5222
|
-
let
|
|
5223
|
-
if (
|
|
5219
|
+
const d = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], h2 = [], g = /* @__PURE__ */ new Set();
|
|
5220
|
+
for (const f$1 of d) {
|
|
5221
|
+
const y = _e(f$1);
|
|
5222
|
+
let w2;
|
|
5223
|
+
if (y) {
|
|
5224
5224
|
if (!r)
|
|
5225
5225
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5226
|
-
|
|
5226
|
+
w2 = Tn(r.anchors, f$1, n2);
|
|
5227
5227
|
} else
|
|
5228
|
-
|
|
5229
|
-
const
|
|
5230
|
-
for (const
|
|
5231
|
-
const
|
|
5232
|
-
for (const
|
|
5233
|
-
if (u2(
|
|
5234
|
-
if (
|
|
5235
|
-
throw new Error(`Duplicate column id ${
|
|
5236
|
-
const
|
|
5237
|
-
g.has(
|
|
5228
|
+
w2 = f$1;
|
|
5229
|
+
const E2 = /* @__PURE__ */ new Set(), x = [];
|
|
5230
|
+
for (const S of this.providers) {
|
|
5231
|
+
const I = S.selectColumns(w2);
|
|
5232
|
+
for (const c2 of I) {
|
|
5233
|
+
if (u2(c2.spec)) continue;
|
|
5234
|
+
if (E2.has(c2.id))
|
|
5235
|
+
throw new Error(`Duplicate column id ${c2.id} in provider ${S.constructor.name}`);
|
|
5236
|
+
const m2 = Yn(c2.spec);
|
|
5237
|
+
g.has(m2) || (E2.add(c2.id), g.add(m2), x.push(c2));
|
|
5238
5238
|
}
|
|
5239
5239
|
}
|
|
5240
|
-
if (
|
|
5241
|
-
const
|
|
5242
|
-
for (const
|
|
5243
|
-
if (!f(
|
|
5244
|
-
const
|
|
5245
|
-
if (
|
|
5246
|
-
if (
|
|
5247
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
5248
|
-
const
|
|
5249
|
-
if (!
|
|
5240
|
+
if (x.length === 0) continue;
|
|
5241
|
+
const C = Ft(f$1), A = C.length > 0;
|
|
5242
|
+
for (const S of x) {
|
|
5243
|
+
if (!f(S.spec)) continue;
|
|
5244
|
+
const I = S.spec;
|
|
5245
|
+
if (A) {
|
|
5246
|
+
if (Tt(S.data))
|
|
5247
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${S.id}`);
|
|
5248
|
+
const c2 = It(S.data);
|
|
5249
|
+
if (!c2) {
|
|
5250
5250
|
if (s2) continue;
|
|
5251
5251
|
return;
|
|
5252
5252
|
}
|
|
5253
|
-
if (!Sn(
|
|
5254
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${
|
|
5255
|
-
const
|
|
5256
|
-
if (
|
|
5257
|
-
throw new Error(`Not enough partition keys (${
|
|
5258
|
-
const W =
|
|
5259
|
-
if (G >=
|
|
5260
|
-
if (j2.push([...
|
|
5253
|
+
if (!Sn(c2))
|
|
5254
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${S.id}`);
|
|
5255
|
+
const m2 = xt(c2), _ = C[C.length - 1];
|
|
5256
|
+
if (_ >= c2.partitionKeyLength)
|
|
5257
|
+
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${_}) in column ${I.name}`);
|
|
5258
|
+
const W = C.map((T) => this.findLabels(p$1(I.axesSpec[T]))), j2 = [], $ = (T, G) => {
|
|
5259
|
+
if (G >= C.length) {
|
|
5260
|
+
if (j2.push([...T]), j2.length > 1e4)
|
|
5261
5261
|
throw new Error("Too many key combinations, aborting.");
|
|
5262
5262
|
return;
|
|
5263
5263
|
}
|
|
5264
|
-
const N2 =
|
|
5265
|
-
if (N2 >=
|
|
5266
|
-
throw new Error(`Axis index ${N2} out of bounds for unique keys array (length ${
|
|
5267
|
-
const J2 =
|
|
5264
|
+
const N2 = C[G];
|
|
5265
|
+
if (N2 >= m2.length)
|
|
5266
|
+
throw new Error(`Axis index ${N2} out of bounds for unique keys array (length ${m2.length}) during split key generation for column ${S.id}`);
|
|
5267
|
+
const J2 = m2[N2];
|
|
5268
5268
|
if (!J2 || J2.length === 0) {
|
|
5269
5269
|
j2.length = 0;
|
|
5270
5270
|
return;
|
|
5271
5271
|
}
|
|
5272
|
-
for (const
|
|
5273
|
-
|
|
5272
|
+
for (const ee2 of J2)
|
|
5273
|
+
T.push(ee2), $(T, G + 1), T.pop();
|
|
5274
5274
|
};
|
|
5275
5275
|
if ($([], 0), j2.length === 0)
|
|
5276
5276
|
continue;
|
|
5277
|
-
const
|
|
5278
|
-
for (let
|
|
5279
|
-
|
|
5280
|
-
const
|
|
5281
|
-
for (const
|
|
5282
|
-
const G =
|
|
5283
|
-
const
|
|
5284
|
-
return { axisIdx:
|
|
5277
|
+
const V = [...I.axesSpec], Be = C.map((T) => T);
|
|
5278
|
+
for (let T = C.length - 1; T >= 0; T--)
|
|
5279
|
+
V.splice(C[T], 1);
|
|
5280
|
+
const We = { ...I, axesSpec: V };
|
|
5281
|
+
for (const T of j2) {
|
|
5282
|
+
const G = T.map((N2, J2) => {
|
|
5283
|
+
const ee2 = Be[J2], Ge = p$1(I.axesSpec[ee2]), ue = W[J2], He = (ue == null ? void 0 : ue[N2]) ?? String(N2);
|
|
5284
|
+
return { axisIdx: ee2, axisId: Ge, value: N2, label: He };
|
|
5285
5285
|
});
|
|
5286
|
-
|
|
5286
|
+
h2.push({
|
|
5287
5287
|
type: "split",
|
|
5288
|
-
originalColumn:
|
|
5289
|
-
spec:
|
|
5290
|
-
adjustedSpec:
|
|
5291
|
-
dataEntries:
|
|
5288
|
+
originalColumn: S,
|
|
5289
|
+
spec: I,
|
|
5290
|
+
adjustedSpec: We,
|
|
5291
|
+
dataEntries: c2,
|
|
5292
5292
|
axisFilters: G
|
|
5293
5293
|
});
|
|
5294
5294
|
}
|
|
5295
5295
|
} else
|
|
5296
|
-
|
|
5296
|
+
h2.push({
|
|
5297
5297
|
type: "direct",
|
|
5298
|
-
originalColumn:
|
|
5299
|
-
spec:
|
|
5300
|
-
adjustedSpec:
|
|
5298
|
+
originalColumn: S,
|
|
5299
|
+
spec: I,
|
|
5300
|
+
adjustedSpec: I
|
|
5301
5301
|
});
|
|
5302
5302
|
}
|
|
5303
5303
|
}
|
|
5304
|
-
if (
|
|
5304
|
+
if (h2.length === 0) return [];
|
|
5305
5305
|
const p2 = $e(
|
|
5306
|
-
|
|
5306
|
+
h2,
|
|
5307
5307
|
(f2) => ({
|
|
5308
5308
|
spec: f2.spec,
|
|
5309
|
-
suffixTrace: f2.type === "split" ?
|
|
5309
|
+
suffixTrace: f2.type === "split" ? Et(f2.axisFilters) : void 0
|
|
5310
5310
|
}),
|
|
5311
5311
|
l2
|
|
5312
|
-
),
|
|
5313
|
-
for (const { value: f2, label:
|
|
5314
|
-
const { originalColumn:
|
|
5315
|
-
let
|
|
5316
|
-
r ?
|
|
5317
|
-
let
|
|
5318
|
-
o && (
|
|
5319
|
-
...
|
|
5312
|
+
), b = [];
|
|
5313
|
+
for (const { value: f2, label: y } of p2) {
|
|
5314
|
+
const { originalColumn: w2, spec: E2 } = f2, x = f2.type === "split" ? f2.axisFilters : void 0, C = kt(x);
|
|
5315
|
+
let A;
|
|
5316
|
+
r ? A = r.deriveS(E2, C) : A = Dt(w2.id, C);
|
|
5317
|
+
let S = { ...f2.adjustedSpec };
|
|
5318
|
+
o && (S = {
|
|
5319
|
+
...S,
|
|
5320
5320
|
annotations: {
|
|
5321
|
-
...
|
|
5322
|
-
"pl7.app/label":
|
|
5321
|
+
...S.annotations ?? {},
|
|
5322
|
+
"pl7.app/label": y
|
|
5323
5323
|
}
|
|
5324
|
-
}),
|
|
5325
|
-
id:
|
|
5326
|
-
spec:
|
|
5327
|
-
data: () => f2.type === "split" ? Jn(
|
|
5328
|
-
label:
|
|
5324
|
+
}), b.push({
|
|
5325
|
+
id: A,
|
|
5326
|
+
spec: S,
|
|
5327
|
+
data: () => f2.type === "split" ? Jn(_t(f2.dataEntries, C)) : f2.originalColumn.data,
|
|
5328
|
+
label: y
|
|
5329
5329
|
});
|
|
5330
5330
|
}
|
|
5331
|
-
return
|
|
5331
|
+
return b;
|
|
5332
5332
|
}
|
|
5333
5333
|
getColumns(e, n2) {
|
|
5334
5334
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5353,19 +5353,19 @@
|
|
|
5353
5353
|
return i;
|
|
5354
5354
|
}
|
|
5355
5355
|
}
|
|
5356
|
-
function
|
|
5356
|
+
function de(t, e) {
|
|
5357
5357
|
if (t === void 0) return e === void 0;
|
|
5358
5358
|
if (e === void 0) return true;
|
|
5359
5359
|
for (const n2 in e)
|
|
5360
5360
|
if (t[n2] !== e[n2]) return false;
|
|
5361
5361
|
return true;
|
|
5362
5362
|
}
|
|
5363
|
-
function
|
|
5364
|
-
return
|
|
5363
|
+
function Te(t) {
|
|
5364
|
+
return Xn(t, (e) => e instanceof D ? e.handle : En(e) ? Nn(e, (n2) => n2.handle) : e);
|
|
5365
5365
|
}
|
|
5366
|
-
class
|
|
5366
|
+
class Ot {
|
|
5367
5367
|
constructor() {
|
|
5368
|
-
|
|
5368
|
+
F(this, "ctx", v());
|
|
5369
5369
|
}
|
|
5370
5370
|
/**
|
|
5371
5371
|
* @deprecated use getOptions()
|
|
@@ -5374,28 +5374,28 @@
|
|
|
5374
5374
|
return this.ctx.calculateOptions(e);
|
|
5375
5375
|
}
|
|
5376
5376
|
getOptions(e, n2) {
|
|
5377
|
-
const r = typeof e == "function" ? e :
|
|
5377
|
+
const r = typeof e == "function" ? e : Qn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5378
5378
|
let s2 = {}, o = false;
|
|
5379
5379
|
return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ? $e(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5380
|
-
ref:
|
|
5380
|
+
ref: re$1(a, o),
|
|
5381
5381
|
label: l2
|
|
5382
5382
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5383
|
-
ref:
|
|
5383
|
+
ref: re$1(a, o),
|
|
5384
5384
|
label: s2(l2, a)
|
|
5385
5385
|
}));
|
|
5386
5386
|
}
|
|
5387
5387
|
resolveAnchorCtx(e) {
|
|
5388
|
-
if (e instanceof
|
|
5388
|
+
if (e instanceof Mn) return e;
|
|
5389
5389
|
const n2 = {};
|
|
5390
5390
|
for (const [r, i] of Object.entries(e))
|
|
5391
|
-
if (
|
|
5391
|
+
if (ee(i)) {
|
|
5392
5392
|
const s2 = this.getPColumnSpecByRef(i);
|
|
5393
5393
|
if (!s2)
|
|
5394
5394
|
return;
|
|
5395
5395
|
n2[r] = s2;
|
|
5396
5396
|
} else
|
|
5397
5397
|
n2[r] = i;
|
|
5398
|
-
return new
|
|
5398
|
+
return new Mn(n2);
|
|
5399
5399
|
}
|
|
5400
5400
|
/**
|
|
5401
5401
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5469,7 +5469,7 @@
|
|
|
5469
5469
|
ref: n2.ref,
|
|
5470
5470
|
obj: {
|
|
5471
5471
|
...n2.obj,
|
|
5472
|
-
data: new
|
|
5472
|
+
data: new D(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5473
5473
|
}
|
|
5474
5474
|
}))
|
|
5475
5475
|
};
|
|
@@ -5488,9 +5488,9 @@
|
|
|
5488
5488
|
ref: n2.ref,
|
|
5489
5489
|
obj: {
|
|
5490
5490
|
...n2.obj,
|
|
5491
|
-
data:
|
|
5491
|
+
data: ie(
|
|
5492
5492
|
n2.obj.data,
|
|
5493
|
-
(r) => new
|
|
5493
|
+
(r) => new D(r, [n2.ref.blockId, n2.ref.name])
|
|
5494
5494
|
)
|
|
5495
5495
|
}
|
|
5496
5496
|
}))
|
|
@@ -5517,9 +5517,9 @@
|
|
|
5517
5517
|
)) == null ? void 0 : r.obj;
|
|
5518
5518
|
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5519
5519
|
if (n2)
|
|
5520
|
-
return
|
|
5520
|
+
return Xn(
|
|
5521
5521
|
n2,
|
|
5522
|
-
(i) => new
|
|
5522
|
+
(i) => new D(i, [e.blockId, e.name])
|
|
5523
5523
|
);
|
|
5524
5524
|
}
|
|
5525
5525
|
/**
|
|
@@ -5530,7 +5530,7 @@
|
|
|
5530
5530
|
getPColumnByRef(e) {
|
|
5531
5531
|
const n2 = this.getDataByRef(e);
|
|
5532
5532
|
if (n2)
|
|
5533
|
-
return
|
|
5533
|
+
return Wn(n2);
|
|
5534
5534
|
}
|
|
5535
5535
|
/**
|
|
5536
5536
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -5562,10 +5562,10 @@
|
|
|
5562
5562
|
if (!f(r.obj.spec))
|
|
5563
5563
|
continue;
|
|
5564
5564
|
const i = r.obj.spec;
|
|
5565
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
5565
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && de(e.domain, i.domain)) {
|
|
5566
5566
|
for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
|
|
5567
5567
|
const o = e.axesSpec[s2], a = i.axesSpec[s2];
|
|
5568
|
-
if (o.name !== a.name || o.type !== a.type || !
|
|
5568
|
+
if (o.name !== a.name || o.type !== a.type || !de(o.domain, a.domain))
|
|
5569
5569
|
continue e;
|
|
5570
5570
|
}
|
|
5571
5571
|
n2.push(r.obj);
|
|
@@ -5582,7 +5582,7 @@
|
|
|
5582
5582
|
for (const r of n2.entries) {
|
|
5583
5583
|
if (!rn(r.obj)) continue;
|
|
5584
5584
|
const i = r.obj.spec;
|
|
5585
|
-
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type &&
|
|
5585
|
+
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && de(e.domain, i.axesSpec[0].domain)) {
|
|
5586
5586
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
5587
5587
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
5588
5588
|
return Object.fromEntries(
|
|
@@ -5601,13 +5601,13 @@
|
|
|
5601
5601
|
* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
|
|
5602
5602
|
*/
|
|
5603
5603
|
selectColumns(e) {
|
|
5604
|
-
const n2 = typeof e == "function" ? e :
|
|
5604
|
+
const n2 = typeof e == "function" ? e : Qn(e);
|
|
5605
5605
|
return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
|
|
5606
5606
|
const o = s2;
|
|
5607
5607
|
let a = null;
|
|
5608
5608
|
const l2 = this;
|
|
5609
5609
|
return {
|
|
5610
|
-
id:
|
|
5610
|
+
id: Oe(i),
|
|
5611
5611
|
spec: o,
|
|
5612
5612
|
get data() {
|
|
5613
5613
|
var u2;
|
|
@@ -5634,12 +5634,12 @@
|
|
|
5634
5634
|
}
|
|
5635
5635
|
class te {
|
|
5636
5636
|
constructor() {
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
this.ctx =
|
|
5637
|
+
F(this, "ctx");
|
|
5638
|
+
F(this, "args");
|
|
5639
|
+
F(this, "uiState");
|
|
5640
|
+
F(this, "_activeArgsCache");
|
|
5641
|
+
F(this, "resultPool", new Ot());
|
|
5642
|
+
this.ctx = v(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5643
5643
|
}
|
|
5644
5644
|
/**
|
|
5645
5645
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
@@ -5655,13 +5655,13 @@
|
|
|
5655
5655
|
// return this.ctx.featureFlags;
|
|
5656
5656
|
// }
|
|
5657
5657
|
getNamedAccessor(e) {
|
|
5658
|
-
return
|
|
5658
|
+
return he(
|
|
5659
5659
|
this.ctx.getAccessorHandleByName(e),
|
|
5660
|
-
(n2) => new
|
|
5660
|
+
(n2) => new D(n2, [e])
|
|
5661
5661
|
);
|
|
5662
5662
|
}
|
|
5663
5663
|
get prerun() {
|
|
5664
|
-
return this.getNamedAccessor(
|
|
5664
|
+
return this.getNamedAccessor(Ke);
|
|
5665
5665
|
}
|
|
5666
5666
|
get outputs() {
|
|
5667
5667
|
return this.getNamedAccessor(je);
|
|
@@ -5676,26 +5676,35 @@
|
|
|
5676
5676
|
}
|
|
5677
5677
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5678
5678
|
var i;
|
|
5679
|
-
const n2 = e.some((s2) => !(s2.data instanceof
|
|
5679
|
+
const n2 = e.some((s2) => !(s2.data instanceof D) || En(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5680
5680
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5681
5681
|
}
|
|
5682
|
+
patchPTableDef(e) {
|
|
5683
|
+
var n2;
|
|
5684
|
+
return (n2 = this.ctx.featureFlags) != null && n2.pTablePartitionFiltersSupport ? e : {
|
|
5685
|
+
...e,
|
|
5686
|
+
partitionFilters: [],
|
|
5687
|
+
filters: [...e.partitionFilters, ...e.filters]
|
|
5688
|
+
};
|
|
5689
|
+
}
|
|
5682
5690
|
// TODO remove all non-PColumn fields
|
|
5683
5691
|
createPFrame(e) {
|
|
5684
5692
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5685
|
-
e.map((n2) =>
|
|
5693
|
+
e.map((n2) => Te(n2))
|
|
5686
5694
|
);
|
|
5687
5695
|
}
|
|
5688
5696
|
createPTable(e) {
|
|
5689
5697
|
let n2;
|
|
5690
|
-
return "columns" in e ? n2 = {
|
|
5698
|
+
return "columns" in e ? n2 = this.patchPTableDef({
|
|
5691
5699
|
src: {
|
|
5692
5700
|
type: "full",
|
|
5693
5701
|
entries: e.columns.map((r) => ({ type: "column", column: r }))
|
|
5694
5702
|
},
|
|
5695
|
-
|
|
5703
|
+
partitionFilters: e.filters ?? [],
|
|
5704
|
+
filters: [],
|
|
5696
5705
|
sorting: e.sorting ?? []
|
|
5697
|
-
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(
|
|
5698
|
-
Un(n2, (r) =>
|
|
5706
|
+
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(Gn(n2.src)), this.ctx.createPTable(
|
|
5707
|
+
Un(n2, (r) => Te(r))
|
|
5699
5708
|
);
|
|
5700
5709
|
}
|
|
5701
5710
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5715,20 +5724,20 @@
|
|
|
5715
5724
|
this.ctx.logError(e);
|
|
5716
5725
|
}
|
|
5717
5726
|
}
|
|
5718
|
-
const Y = "1.
|
|
5719
|
-
function
|
|
5727
|
+
const Y = "1.38.0";
|
|
5728
|
+
function Rt(t) {
|
|
5720
5729
|
return t.__renderLambda === true;
|
|
5721
5730
|
}
|
|
5722
|
-
function
|
|
5731
|
+
function pe(t) {
|
|
5723
5732
|
if (t !== void 0)
|
|
5724
|
-
return
|
|
5733
|
+
return Rt(t) ? t.handle : t;
|
|
5725
5734
|
}
|
|
5726
|
-
class
|
|
5735
|
+
class k {
|
|
5727
5736
|
constructor(e, n2, r, i, s2, o, a, l2) {
|
|
5728
5737
|
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
|
|
5729
5738
|
}
|
|
5730
5739
|
static create(e = "Heavy") {
|
|
5731
|
-
return new
|
|
5740
|
+
return new k(
|
|
5732
5741
|
e,
|
|
5733
5742
|
void 0,
|
|
5734
5743
|
{},
|
|
@@ -5742,7 +5751,7 @@
|
|
|
5742
5751
|
output(e, n2, r = {}) {
|
|
5743
5752
|
if (typeof n2 == "function") {
|
|
5744
5753
|
const i = `output#${e}`;
|
|
5745
|
-
return H(i, () => n2(new te())), new
|
|
5754
|
+
return H(i, () => n2(new te())), new k(
|
|
5746
5755
|
this._renderingMode,
|
|
5747
5756
|
this._initialArgs,
|
|
5748
5757
|
this._initialUiState,
|
|
@@ -5760,7 +5769,7 @@
|
|
|
5760
5769
|
this._enrichmentTargets
|
|
5761
5770
|
);
|
|
5762
5771
|
} else
|
|
5763
|
-
return new
|
|
5772
|
+
return new k(
|
|
5764
5773
|
this._renderingMode,
|
|
5765
5774
|
this._initialArgs,
|
|
5766
5775
|
this._initialUiState,
|
|
@@ -5779,7 +5788,7 @@
|
|
|
5779
5788
|
return this.output(e, n2, { retentive: true });
|
|
5780
5789
|
}
|
|
5781
5790
|
argsValid(e) {
|
|
5782
|
-
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new
|
|
5791
|
+
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new k(
|
|
5783
5792
|
this._renderingMode,
|
|
5784
5793
|
this._initialArgs,
|
|
5785
5794
|
this._initialUiState,
|
|
@@ -5791,7 +5800,7 @@
|
|
|
5791
5800
|
this._sections,
|
|
5792
5801
|
this._title,
|
|
5793
5802
|
this._enrichmentTargets
|
|
5794
|
-
)) : new
|
|
5803
|
+
)) : new k(
|
|
5795
5804
|
this._renderingMode,
|
|
5796
5805
|
this._initialArgs,
|
|
5797
5806
|
this._initialUiState,
|
|
@@ -5803,7 +5812,7 @@
|
|
|
5803
5812
|
);
|
|
5804
5813
|
}
|
|
5805
5814
|
sections(e) {
|
|
5806
|
-
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new
|
|
5815
|
+
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new k(
|
|
5807
5816
|
this._renderingMode,
|
|
5808
5817
|
this._initialArgs,
|
|
5809
5818
|
this._initialUiState,
|
|
@@ -5812,7 +5821,7 @@
|
|
|
5812
5821
|
{ __renderLambda: true, handle: "sections" },
|
|
5813
5822
|
this._title,
|
|
5814
5823
|
this._enrichmentTargets
|
|
5815
|
-
)) : new
|
|
5824
|
+
)) : new k(
|
|
5816
5825
|
this._renderingMode,
|
|
5817
5826
|
this._initialArgs,
|
|
5818
5827
|
this._initialUiState,
|
|
@@ -5825,7 +5834,7 @@
|
|
|
5825
5834
|
}
|
|
5826
5835
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5827
5836
|
title(e) {
|
|
5828
|
-
return H("title", () => e(new te())), new
|
|
5837
|
+
return H("title", () => e(new te())), new k(
|
|
5829
5838
|
this._renderingMode,
|
|
5830
5839
|
this._initialArgs,
|
|
5831
5840
|
this._initialUiState,
|
|
@@ -5841,7 +5850,7 @@
|
|
|
5841
5850
|
* @deprecated use {@link withArgs}
|
|
5842
5851
|
* */
|
|
5843
5852
|
initialArgs(e) {
|
|
5844
|
-
return new
|
|
5853
|
+
return new k(
|
|
5845
5854
|
this._renderingMode,
|
|
5846
5855
|
e,
|
|
5847
5856
|
this._initialUiState,
|
|
@@ -5854,7 +5863,7 @@
|
|
|
5854
5863
|
}
|
|
5855
5864
|
/** Sets initial args for the block, this value must be specified. */
|
|
5856
5865
|
withArgs(e) {
|
|
5857
|
-
return new
|
|
5866
|
+
return new k(
|
|
5858
5867
|
this._renderingMode,
|
|
5859
5868
|
e,
|
|
5860
5869
|
this._initialUiState,
|
|
@@ -5867,7 +5876,7 @@
|
|
|
5867
5876
|
}
|
|
5868
5877
|
/** Defines type and sets initial value for block UiState. */
|
|
5869
5878
|
withUiState(e) {
|
|
5870
|
-
return new
|
|
5879
|
+
return new k(
|
|
5871
5880
|
this._renderingMode,
|
|
5872
5881
|
this._initialArgs,
|
|
5873
5882
|
e,
|
|
@@ -5883,7 +5892,7 @@
|
|
|
5883
5892
|
* Influences dependency graph construction.
|
|
5884
5893
|
*/
|
|
5885
5894
|
enriches(e) {
|
|
5886
|
-
return H("enrichmentTargets", e), new
|
|
5895
|
+
return H("enrichmentTargets", e), new k(
|
|
5887
5896
|
this._renderingMode,
|
|
5888
5897
|
this._initialArgs,
|
|
5889
5898
|
this._initialUiState,
|
|
@@ -5915,16 +5924,16 @@
|
|
|
5915
5924
|
sdkVersion: Y,
|
|
5916
5925
|
renderingMode: this._renderingMode,
|
|
5917
5926
|
initialArgs: this._initialArgs,
|
|
5918
|
-
inputsValid:
|
|
5919
|
-
sections:
|
|
5927
|
+
inputsValid: pe(this._inputsValid),
|
|
5928
|
+
sections: pe(this._sections),
|
|
5920
5929
|
outputs: Object.fromEntries(
|
|
5921
|
-
Object.entries(this._outputs).map(([n2, r]) => [n2,
|
|
5930
|
+
Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
|
|
5922
5931
|
)
|
|
5923
5932
|
};
|
|
5924
|
-
return
|
|
5933
|
+
return pt() ? Ve({ sdkVersion: Y }) : { config: e };
|
|
5925
5934
|
}
|
|
5926
5935
|
}
|
|
5927
|
-
const platforma =
|
|
5936
|
+
const platforma = k.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
|
|
5928
5937
|
return [{ type: "link", href: "/", label: "Main" }];
|
|
5929
5938
|
}).title((ctx) => "Pool explorer").done();
|
|
5930
5939
|
exports2.platforma = platforma;
|