@milaboratories/milaboratories.pool-explorer.model 1.0.68 → 1.0.70
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 +448 -448
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
return obj;
|
|
21
21
|
};
|
|
22
22
|
util2.getValidEnumValues = (obj) => {
|
|
23
|
-
const validKeys = util2.objectKeys(obj).filter((
|
|
23
|
+
const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
|
|
24
24
|
const filtered = {};
|
|
25
|
-
for (const
|
|
26
|
-
filtered[
|
|
25
|
+
for (const k of validKeys) {
|
|
26
|
+
filtered[k] = obj[k];
|
|
27
27
|
}
|
|
28
28
|
return util2.objectValues(filtered);
|
|
29
29
|
};
|
|
@@ -2659,17 +2659,17 @@
|
|
|
2659
2659
|
});
|
|
2660
2660
|
}
|
|
2661
2661
|
}
|
|
2662
|
-
function mergeValues(a,
|
|
2662
|
+
function mergeValues(a, b2) {
|
|
2663
2663
|
const aType = getParsedType(a);
|
|
2664
|
-
const bType = getParsedType(
|
|
2665
|
-
if (a ===
|
|
2664
|
+
const bType = getParsedType(b2);
|
|
2665
|
+
if (a === b2) {
|
|
2666
2666
|
return { valid: true, data: a };
|
|
2667
2667
|
} else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
|
|
2668
|
-
const bKeys = util.objectKeys(
|
|
2668
|
+
const bKeys = util.objectKeys(b2);
|
|
2669
2669
|
const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
2670
|
-
const newObj = { ...a, ...
|
|
2670
|
+
const newObj = { ...a, ...b2 };
|
|
2671
2671
|
for (const key of sharedKeys) {
|
|
2672
|
-
const sharedValue = mergeValues(a[key],
|
|
2672
|
+
const sharedValue = mergeValues(a[key], b2[key]);
|
|
2673
2673
|
if (!sharedValue.valid) {
|
|
2674
2674
|
return { valid: false };
|
|
2675
2675
|
}
|
|
@@ -2677,13 +2677,13 @@
|
|
|
2677
2677
|
}
|
|
2678
2678
|
return { valid: true, data: newObj };
|
|
2679
2679
|
} else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
|
|
2680
|
-
if (a.length !==
|
|
2680
|
+
if (a.length !== b2.length) {
|
|
2681
2681
|
return { valid: false };
|
|
2682
2682
|
}
|
|
2683
2683
|
const newArray = [];
|
|
2684
2684
|
for (let index = 0; index < a.length; index++) {
|
|
2685
2685
|
const itemA = a[index];
|
|
2686
|
-
const itemB =
|
|
2686
|
+
const itemB = b2[index];
|
|
2687
2687
|
const sharedValue = mergeValues(itemA, itemB);
|
|
2688
2688
|
if (!sharedValue.valid) {
|
|
2689
2689
|
return { valid: false };
|
|
@@ -2691,7 +2691,7 @@
|
|
|
2691
2691
|
newArray.push(sharedValue.data);
|
|
2692
2692
|
}
|
|
2693
2693
|
return { valid: true, data: newArray };
|
|
2694
|
-
} else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +
|
|
2694
|
+
} else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b2) {
|
|
2695
2695
|
return { valid: true, data: a };
|
|
2696
2696
|
} else {
|
|
2697
2697
|
return { valid: false };
|
|
@@ -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
|
}
|
|
@@ -3662,10 +3662,10 @@
|
|
|
3662
3662
|
}
|
|
3663
3663
|
}
|
|
3664
3664
|
}
|
|
3665
|
-
static create(a,
|
|
3665
|
+
static create(a, b2) {
|
|
3666
3666
|
return new ZodPipeline({
|
|
3667
3667
|
in: a,
|
|
3668
|
-
out:
|
|
3668
|
+
out: b2,
|
|
3669
3669
|
typeName: ZodFirstPartyTypeKind.ZodPipeline
|
|
3670
3670
|
});
|
|
3671
3671
|
}
|
|
@@ -3955,10 +3955,10 @@
|
|
|
3955
3955
|
return canonicalize;
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
-
const
|
|
3959
|
-
var R
|
|
3960
|
-
var L = (e, n2, t) => n2 in e ? R
|
|
3961
|
-
var d = (e, n2, t) => L(e, typeof n2 != "symbol" ? n2 + "" : n2, t);
|
|
3958
|
+
const Be = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
|
+
var R = Object.defineProperty;
|
|
3960
|
+
var L$1 = (e, n2, t) => n2 in e ? R(e, n2, { enumerable: true, configurable: true, writable: true, value: t }) : e[n2] = t;
|
|
3961
|
+
var d = (e, n2, t) => L$1(e, typeof n2 != "symbol" ? n2 + "" : n2, t);
|
|
3962
3962
|
z$1.object({
|
|
3963
3963
|
/** Included left border. */
|
|
3964
3964
|
from: z$1.number(),
|
|
@@ -3968,7 +3968,7 @@
|
|
|
3968
3968
|
function A(e) {
|
|
3969
3969
|
throw new Error("Unexpected object: " + e);
|
|
3970
3970
|
}
|
|
3971
|
-
function Ce(e) {
|
|
3971
|
+
function Ce$1(e) {
|
|
3972
3972
|
if (!e || typeof e != "object")
|
|
3973
3973
|
return false;
|
|
3974
3974
|
const n2 = e;
|
|
@@ -3985,7 +3985,7 @@
|
|
|
3985
3985
|
return false;
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
function Fe
|
|
3988
|
+
function Fe(e, n2) {
|
|
3989
3989
|
if (e !== void 0)
|
|
3990
3990
|
switch (e.type) {
|
|
3991
3991
|
case "Json":
|
|
@@ -4030,10 +4030,10 @@
|
|
|
4030
4030
|
return false;
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
|
-
function Ve(e) {
|
|
4033
|
+
function Ve$1(e) {
|
|
4034
4034
|
return _(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : false;
|
|
4035
4035
|
}
|
|
4036
|
-
function je
|
|
4036
|
+
function je(e) {
|
|
4037
4037
|
switch (e.type) {
|
|
4038
4038
|
case "Json": {
|
|
4039
4039
|
const n2 = Object.entries(e.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
|
|
@@ -4061,7 +4061,7 @@
|
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
4063
|
}
|
|
4064
|
-
function Ie
|
|
4064
|
+
function Ie(e) {
|
|
4065
4065
|
switch (e.type) {
|
|
4066
4066
|
case "Json": {
|
|
4067
4067
|
const n2 = {};
|
|
@@ -4103,19 +4103,19 @@
|
|
|
4103
4103
|
return e.map(y);
|
|
4104
4104
|
}
|
|
4105
4105
|
function Te$1(e) {
|
|
4106
|
-
return
|
|
4106
|
+
return Be(y(e));
|
|
4107
4107
|
}
|
|
4108
|
-
function ee(e, n2) {
|
|
4108
|
+
function ee$1(e, n2) {
|
|
4109
4109
|
if (e === void 0) return n2 === void 0;
|
|
4110
4110
|
if (n2 === void 0) return true;
|
|
4111
4111
|
for (const t in n2)
|
|
4112
4112
|
if (e[t] !== n2[t]) return false;
|
|
4113
4113
|
return true;
|
|
4114
4114
|
}
|
|
4115
|
-
function ne(e, n2) {
|
|
4116
|
-
return e.name === n2.name && ee(e.domain, n2.domain);
|
|
4115
|
+
function ne$1(e, n2) {
|
|
4116
|
+
return e.name === n2.name && ee$1(e.domain, n2.domain);
|
|
4117
4117
|
}
|
|
4118
|
-
function ze(e, n2) {
|
|
4118
|
+
function ze$1(e, n2) {
|
|
4119
4119
|
return { ...e, src: g(e.src, n2) };
|
|
4120
4120
|
}
|
|
4121
4121
|
function g(e, n2) {
|
|
@@ -4150,16 +4150,16 @@
|
|
|
4150
4150
|
A(e);
|
|
4151
4151
|
}
|
|
4152
4152
|
}
|
|
4153
|
-
function te
|
|
4154
|
-
return
|
|
4153
|
+
function te(e) {
|
|
4154
|
+
return Be(e);
|
|
4155
4155
|
}
|
|
4156
4156
|
function E(e) {
|
|
4157
|
-
return
|
|
4157
|
+
return Be(y(e));
|
|
4158
4158
|
}
|
|
4159
|
-
function x
|
|
4159
|
+
function x(e, n2) {
|
|
4160
4160
|
return JSON.stringify([e, n2]);
|
|
4161
4161
|
}
|
|
4162
|
-
class Ge {
|
|
4162
|
+
let Ge$1 = class Ge {
|
|
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 i = Object.entries(o.domain);
|
|
4182
4182
|
i.sort((a, s2) => a[0].localeCompare(s2[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
|
|
4183
4183
|
for (const [a, s2] of i) {
|
|
4184
|
-
const u2 = x
|
|
4184
|
+
const u2 = x(a, s2);
|
|
4185
4185
|
this.domains.set(u2, r);
|
|
4186
4186
|
}
|
|
4187
4187
|
}
|
|
@@ -4216,7 +4216,7 @@
|
|
|
4216
4216
|
for (const [a, s2] of Object.entries(n2.domain ?? {})) {
|
|
4217
4217
|
if (o !== void 0 && o.has(a))
|
|
4218
4218
|
continue;
|
|
4219
|
-
const u2 = x
|
|
4219
|
+
const u2 = x(a, s2), c2 = this.domains.get(u2);
|
|
4220
4220
|
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : s2;
|
|
4221
4221
|
}
|
|
4222
4222
|
if (r.axes = n2.axesSpec.map((a) => {
|
|
@@ -4250,10 +4250,10 @@
|
|
|
4250
4250
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
4251
4251
|
*/
|
|
4252
4252
|
deriveS(n2, t) {
|
|
4253
|
-
return te
|
|
4253
|
+
return te(this.derive(n2, t));
|
|
4254
4254
|
}
|
|
4255
|
-
}
|
|
4256
|
-
function Xe(e, n2, t) {
|
|
4255
|
+
};
|
|
4256
|
+
function Xe$1(e, n2, t) {
|
|
4257
4257
|
const r = { ...n2 }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4258
4258
|
if (r.domainAnchor !== void 0) {
|
|
4259
4259
|
const i = e[r.domainAnchor];
|
|
@@ -4283,7 +4283,7 @@
|
|
|
4283
4283
|
return r.axes && (r.axes = r.axes.map((i) => re(e, i))), r;
|
|
4284
4284
|
}
|
|
4285
4285
|
function re(e, n2) {
|
|
4286
|
-
if (!oe
|
|
4286
|
+
if (!oe(n2))
|
|
4287
4287
|
return n2;
|
|
4288
4288
|
const t = n2.anchor, r = e[t];
|
|
4289
4289
|
if (!r)
|
|
@@ -4300,7 +4300,7 @@
|
|
|
4300
4300
|
throw new Error(`Axis with name "${n2.name}" not found in anchor "${t}"`);
|
|
4301
4301
|
return o[0];
|
|
4302
4302
|
} else if ("id" in n2) {
|
|
4303
|
-
const o = r.axesSpec.filter((i) => ne(n2.id, y(i)));
|
|
4303
|
+
const o = r.axesSpec.filter((i) => ne$1(n2.id, y(i)));
|
|
4304
4304
|
if (o.length > 1)
|
|
4305
4305
|
throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
|
|
4306
4306
|
if (o.length === 0)
|
|
@@ -4309,17 +4309,17 @@
|
|
|
4309
4309
|
}
|
|
4310
4310
|
throw new Error("Unsupported axis reference type");
|
|
4311
4311
|
}
|
|
4312
|
-
function oe
|
|
4312
|
+
function oe(e) {
|
|
4313
4313
|
return typeof e == "object" && "anchor" in e;
|
|
4314
4314
|
}
|
|
4315
4315
|
function l$1(e) {
|
|
4316
4316
|
return e.kind === "PColumn";
|
|
4317
4317
|
}
|
|
4318
|
-
function ie
|
|
4318
|
+
function ie(e) {
|
|
4319
4319
|
return l$1(e.spec);
|
|
4320
4320
|
}
|
|
4321
4321
|
function en(e) {
|
|
4322
|
-
if (!ie
|
|
4322
|
+
if (!ie(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
4323
4323
|
return e;
|
|
4324
4324
|
}
|
|
4325
4325
|
function nn(e, n2) {
|
|
@@ -4371,7 +4371,7 @@
|
|
|
4371
4371
|
}
|
|
4372
4372
|
return true;
|
|
4373
4373
|
}
|
|
4374
|
-
function v
|
|
4374
|
+
function v(e, n2) {
|
|
4375
4375
|
if (n2.name !== void 0 && e.name !== n2.name || n2.namePattern !== void 0 && !new RegExp(n2.namePattern).test(e.name))
|
|
4376
4376
|
return false;
|
|
4377
4377
|
if (n2.type !== void 0) {
|
|
@@ -4418,14 +4418,14 @@
|
|
|
4418
4418
|
return true;
|
|
4419
4419
|
}
|
|
4420
4420
|
function rn(e) {
|
|
4421
|
-
return Array.isArray(e) ? (n2) => e.some((t) => l$1(n2) && v
|
|
4421
|
+
return Array.isArray(e) ? (n2) => e.some((t) => l$1(n2) && v(n2, t)) : (n2) => l$1(n2) && v(n2, e);
|
|
4422
4422
|
}
|
|
4423
4423
|
function on(e) {
|
|
4424
4424
|
const n2 = {
|
|
4425
4425
|
kind: e.kind,
|
|
4426
4426
|
name: e.name
|
|
4427
4427
|
};
|
|
4428
|
-
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = C(e.axesSpec)),
|
|
4428
|
+
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = C(e.axesSpec)), Be(n2);
|
|
4429
4429
|
}
|
|
4430
4430
|
z$1.object({
|
|
4431
4431
|
__isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4452,8 +4452,8 @@
|
|
|
4452
4452
|
function ln(e, n2) {
|
|
4453
4453
|
return e.ok ? { ok: true, value: n2(e.value) } : e;
|
|
4454
4454
|
}
|
|
4455
|
-
const de
|
|
4456
|
-
z$1.string().length(de
|
|
4455
|
+
const de = 24;
|
|
4456
|
+
z$1.string().length(de).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4457
4457
|
var stringify = { exports: {} };
|
|
4458
4458
|
var hasRequiredStringify;
|
|
4459
4459
|
function requireStringify() {
|
|
@@ -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
|
|
4519
|
-
function
|
|
4516
|
+
var it = Object.defineProperty;
|
|
4517
|
+
var ot = (t, e, n2) => e in t ? it(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4518
|
+
var V = (t, e, n2) => ot(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4519
|
+
function se(t) {
|
|
4520
4520
|
return { type: "Immediate", value: t };
|
|
4521
4521
|
}
|
|
4522
|
-
function
|
|
4522
|
+
function At() {
|
|
4523
4523
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4524
4524
|
}
|
|
4525
|
-
function
|
|
4525
|
+
function $e(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 wt() {
|
|
4532
4532
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4534
|
+
function b() {
|
|
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 G(t, e) {
|
|
4539
|
-
const n2 =
|
|
4539
|
+
const n2 = wt();
|
|
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 fe = /* @__PURE__ */ new Map();
|
|
4545
|
+
function xt(t, e) {
|
|
4546
|
+
t in b().callbackRegistry || (b().callbackRegistry[t] = (n2) => {
|
|
4547
|
+
for (const r of fe.get(t))
|
|
4548
4548
|
r(n2);
|
|
4549
|
-
},
|
|
4549
|
+
}, fe.set(t, [])), fe.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
|
+
V(this, "isResolved", false);
|
|
4554
|
+
V(this, "resolvedValue");
|
|
4555
|
+
this.handle = e, this.postProcess = n2, xt(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
|
});
|
|
@@ -4572,7 +4572,7 @@
|
|
|
4572
4572
|
function ge(t, e) {
|
|
4573
4573
|
return t === void 0 ? void 0 : e(t);
|
|
4574
4574
|
}
|
|
4575
|
-
class
|
|
4575
|
+
class O {
|
|
4576
4576
|
constructor(e, n2) {
|
|
4577
4577
|
this.handle = e, this.resolvePath = n2;
|
|
4578
4578
|
}
|
|
@@ -4612,46 +4612,46 @@
|
|
|
4612
4612
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4613
4613
|
];
|
|
4614
4614
|
return ge(
|
|
4615
|
-
|
|
4616
|
-
(i) => new
|
|
4615
|
+
b().resolveWithCommon(this.handle, e, ...n2),
|
|
4616
|
+
(i) => new O(i, r)
|
|
4617
4617
|
);
|
|
4618
4618
|
}
|
|
4619
4619
|
get resourceType() {
|
|
4620
|
-
return
|
|
4620
|
+
return b().getResourceType(this.handle);
|
|
4621
4621
|
}
|
|
4622
4622
|
getInputsLocked() {
|
|
4623
|
-
return
|
|
4623
|
+
return b().getInputsLocked(this.handle);
|
|
4624
4624
|
}
|
|
4625
4625
|
getOutputsLocked() {
|
|
4626
|
-
return
|
|
4626
|
+
return b().getOutputsLocked(this.handle);
|
|
4627
4627
|
}
|
|
4628
4628
|
getIsReadyOrError() {
|
|
4629
|
-
return
|
|
4629
|
+
return b().getIsReadyOrError(this.handle);
|
|
4630
4630
|
}
|
|
4631
4631
|
getIsFinal() {
|
|
4632
|
-
return
|
|
4632
|
+
return b().getIsFinal(this.handle);
|
|
4633
4633
|
}
|
|
4634
4634
|
getError() {
|
|
4635
4635
|
const e = [...this.resolvePath, "error"];
|
|
4636
4636
|
return ge(
|
|
4637
|
-
|
|
4638
|
-
(n2) => new
|
|
4637
|
+
b().getError(this.handle),
|
|
4638
|
+
(n2) => new O(n2, e)
|
|
4639
4639
|
);
|
|
4640
4640
|
}
|
|
4641
4641
|
listInputFields() {
|
|
4642
|
-
return
|
|
4642
|
+
return b().listInputFields(this.handle);
|
|
4643
4643
|
}
|
|
4644
4644
|
listOutputFields() {
|
|
4645
|
-
return
|
|
4645
|
+
return b().listOutputFields(this.handle);
|
|
4646
4646
|
}
|
|
4647
4647
|
listDynamicFields() {
|
|
4648
|
-
return
|
|
4648
|
+
return b().listDynamicFields(this.handle);
|
|
4649
4649
|
}
|
|
4650
4650
|
getKeyValueBase64(e) {
|
|
4651
|
-
return
|
|
4651
|
+
return b().getKeyValueBase64(this.handle, e);
|
|
4652
4652
|
}
|
|
4653
4653
|
getKeyValueAsString(e) {
|
|
4654
|
-
return
|
|
4654
|
+
return b().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 b().getDataBase64(this.handle);
|
|
4663
4663
|
}
|
|
4664
4664
|
getDataAsString() {
|
|
4665
|
-
return
|
|
4665
|
+
return b().getDataAsString(this.handle);
|
|
4666
4666
|
}
|
|
4667
4667
|
getDataAsJson() {
|
|
4668
4668
|
const e = this.getDataAsString();
|
|
@@ -4674,16 +4674,16 @@
|
|
|
4674
4674
|
*/
|
|
4675
4675
|
getPColumns(e = false, n2 = "") {
|
|
4676
4676
|
const r = this.parsePObjectCollection(e, n2);
|
|
4677
|
-
return r === void 0 ? void 0 : Object.entries(r).map(([,
|
|
4678
|
-
if (!ie
|
|
4679
|
-
return
|
|
4677
|
+
return r === void 0 ? void 0 : Object.entries(r).map(([, o]) => {
|
|
4678
|
+
if (!ie(o)) throw new Error(`not a PColumn (kind = ${o.spec.kind})`);
|
|
4679
|
+
return o;
|
|
4680
4680
|
});
|
|
4681
4681
|
}
|
|
4682
4682
|
/**
|
|
4683
4683
|
*
|
|
4684
4684
|
*/
|
|
4685
4685
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4686
|
-
const r =
|
|
4686
|
+
const r = b().parsePObjectCollection(
|
|
4687
4687
|
this.handle,
|
|
4688
4688
|
e,
|
|
4689
4689
|
n2,
|
|
@@ -4691,21 +4691,21 @@
|
|
|
4691
4691
|
);
|
|
4692
4692
|
if (r === void 0) return;
|
|
4693
4693
|
const i = {};
|
|
4694
|
-
for (const [
|
|
4695
|
-
const a = [...this.resolvePath,
|
|
4696
|
-
i[
|
|
4694
|
+
for (const [o, s2] of Object.entries(r)) {
|
|
4695
|
+
const a = [...this.resolvePath, o];
|
|
4696
|
+
i[o] = nn(s2, (l2) => new O(l2, a));
|
|
4697
4697
|
}
|
|
4698
4698
|
return i;
|
|
4699
4699
|
}
|
|
4700
4700
|
getFileContentAsBase64(e) {
|
|
4701
|
-
return new
|
|
4701
|
+
return new L(b().getBlobContentAsBase64(this.handle, e));
|
|
4702
4702
|
}
|
|
4703
4703
|
getFileContentAsString(e) {
|
|
4704
|
-
return new
|
|
4704
|
+
return new L(b().getBlobContentAsString(this.handle, e));
|
|
4705
4705
|
}
|
|
4706
4706
|
getFileContentAsJson(e) {
|
|
4707
|
-
return new
|
|
4708
|
-
|
|
4707
|
+
return new L(
|
|
4708
|
+
b().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(b().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(b().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(b().extractArchiveAndGetURL(this.handle, e));
|
|
4752
4752
|
}
|
|
4753
4753
|
getImportProgress() {
|
|
4754
|
-
return new
|
|
4754
|
+
return new L(b().getImportProgress(this.handle));
|
|
4755
4755
|
}
|
|
4756
4756
|
getLastLogs(e) {
|
|
4757
|
-
return new
|
|
4757
|
+
return new L(b().getLastLogs(this.handle, e));
|
|
4758
4758
|
}
|
|
4759
4759
|
getProgressLog(e) {
|
|
4760
|
-
return new
|
|
4760
|
+
return new L(b().getProgressLog(this.handle, e));
|
|
4761
4761
|
}
|
|
4762
4762
|
getProgressLogWithInfo(e) {
|
|
4763
|
-
return new
|
|
4763
|
+
return new L(b().getProgressLogWithInfo(this.handle, e));
|
|
4764
4764
|
}
|
|
4765
4765
|
getLogHandle() {
|
|
4766
|
-
return new
|
|
4766
|
+
return new L(b().getLogHandle(this.handle));
|
|
4767
4767
|
}
|
|
4768
4768
|
allFieldsResolved(e = "Input") {
|
|
4769
4769
|
switch (e) {
|
|
@@ -4778,79 +4778,79 @@
|
|
|
4778
4778
|
}
|
|
4779
4779
|
}
|
|
4780
4780
|
mapFields(e, n2) {
|
|
4781
|
-
const { fieldType: r, requireLocked: i, skipUnresolved:
|
|
4781
|
+
const { fieldType: r, requireLocked: i, skipUnresolved: o } = {
|
|
4782
4782
|
fieldType: "Input",
|
|
4783
4783
|
requireLocked: true,
|
|
4784
4784
|
skipUnresolved: false,
|
|
4785
4785
|
...n2
|
|
4786
|
-
},
|
|
4786
|
+
}, s2 = e;
|
|
4787
4787
|
if (i && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
|
|
4788
4788
|
return;
|
|
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
|
|
4792
|
+
return o && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, h]) => s2(u2, h));
|
|
4793
4793
|
}
|
|
4794
4794
|
}
|
|
4795
|
-
const
|
|
4796
|
-
const
|
|
4795
|
+
const We = "staging", Ge = "main";
|
|
4796
|
+
const _t = "pl7.app/label", Lt = "pl7.app/trace", Et = 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
|
-
}),
|
|
4802
|
-
function
|
|
4803
|
-
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0,
|
|
4804
|
-
var c2,
|
|
4805
|
-
const
|
|
4806
|
-
let p2,
|
|
4807
|
-
"spec" in
|
|
4808
|
-
const E2 = (c2 = p2.annotations) == null ? void 0 : c2[
|
|
4809
|
-
...
|
|
4810
|
-
...
|
|
4801
|
+
}), Vt = z$1.array(Et), kt = 1e-3, Ot = "__LABEL__", Ee = "__LABEL__@1";
|
|
4802
|
+
function ze(t, e, n2 = {}) {
|
|
4803
|
+
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, o = /* @__PURE__ */ new Map(), s2 = t.map((d2) => {
|
|
4804
|
+
var c2, v2;
|
|
4805
|
+
const g2 = e(d2);
|
|
4806
|
+
let p2, y2, C2;
|
|
4807
|
+
"spec" in g2 && typeof g2.spec == "object" ? (p2 = g2.spec, y2 = g2.prefixTrace, C2 = g2.suffixTrace) : p2 = g2;
|
|
4808
|
+
const E2 = (c2 = p2.annotations) == null ? void 0 : c2[_t], x2 = (v2 = p2.annotations) == null ? void 0 : v2[Lt], S2 = (x2 ? Vt.safeParse(JSON.parse(x2)).data : void 0) ?? [], P = [
|
|
4809
|
+
...y2 ?? [],
|
|
4810
|
+
...S2,
|
|
4811
4811
|
...C2 ?? []
|
|
4812
4812
|
];
|
|
4813
4813
|
if (E2 !== void 0) {
|
|
4814
|
-
const
|
|
4815
|
-
n2.addLabelAsSuffix ?
|
|
4816
|
-
}
|
|
4817
|
-
const
|
|
4818
|
-
for (let
|
|
4819
|
-
const { type:
|
|
4820
|
-
|
|
4821
|
-
const
|
|
4822
|
-
|
|
4823
|
-
|
|
4814
|
+
const I = { label: E2, type: Ot, importance: -2 };
|
|
4815
|
+
n2.addLabelAsSuffix ? P.push(I) : P.splice(0, 0, I);
|
|
4816
|
+
}
|
|
4817
|
+
const T = [], F = /* @__PURE__ */ new Map();
|
|
4818
|
+
for (let I = P.length - 1; I >= 0; --I) {
|
|
4819
|
+
const { type: $ } = P[I], K = P[I].importance ?? 0, j = (F.get($) ?? 0) + 1;
|
|
4820
|
+
F.set($, j);
|
|
4821
|
+
const N = `${$}@${j}`;
|
|
4822
|
+
o.set(N, (o.get(N) ?? 0) + 1), r.set(
|
|
4823
|
+
N,
|
|
4824
4824
|
Math.max(
|
|
4825
|
-
r.get(
|
|
4826
|
-
|
|
4825
|
+
r.get(N) ?? Number.NEGATIVE_INFINITY,
|
|
4826
|
+
K - (P.length - I) * kt
|
|
4827
4827
|
)
|
|
4828
|
-
),
|
|
4828
|
+
), T.push({ ...P[I], fullType: N, occurrenceIndex: j });
|
|
4829
4829
|
}
|
|
4830
|
-
return
|
|
4830
|
+
return T.reverse(), {
|
|
4831
4831
|
value: d2,
|
|
4832
4832
|
spec: p2,
|
|
4833
4833
|
label: E2,
|
|
4834
|
-
fullTrace:
|
|
4834
|
+
fullTrace: T
|
|
4835
4835
|
};
|
|
4836
4836
|
}), a = [], l2 = [], u2 = [...r];
|
|
4837
|
-
u2.sort(([, d2], [,
|
|
4837
|
+
u2.sort(([, d2], [, g2]) => g2 - d2);
|
|
4838
4838
|
for (const [d2] of u2)
|
|
4839
|
-
d2.endsWith("@1") ||
|
|
4840
|
-
const h = (d2,
|
|
4839
|
+
d2.endsWith("@1") || o.get(d2) === t.length ? a.push(d2) : l2.push(d2);
|
|
4840
|
+
const h = (d2, g2 = false) => {
|
|
4841
4841
|
const p2 = [];
|
|
4842
|
-
for (let
|
|
4843
|
-
const C2 =
|
|
4842
|
+
for (let y2 = 0; y2 < s2.length; y2++) {
|
|
4843
|
+
const C2 = s2[y2], E2 = C2.fullTrace.filter((P) => d2.has(P.fullType) || i && i.has(P.type));
|
|
4844
4844
|
if (E2.length === 0)
|
|
4845
|
-
if (
|
|
4845
|
+
if (g2)
|
|
4846
4846
|
p2.push({
|
|
4847
4847
|
label: "Unlabeled",
|
|
4848
4848
|
value: C2.value
|
|
4849
4849
|
});
|
|
4850
4850
|
else return;
|
|
4851
|
-
const
|
|
4851
|
+
const x2 = E2.map((P) => P.label), S2 = n2.separator ?? " / ";
|
|
4852
4852
|
p2.push({
|
|
4853
|
-
label:
|
|
4853
|
+
label: x2.join(S2),
|
|
4854
4854
|
value: C2.value
|
|
4855
4855
|
});
|
|
4856
4856
|
}
|
|
@@ -4858,67 +4858,67 @@
|
|
|
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 h(new Set(
|
|
4861
|
+
return h(new Set(Ee), true);
|
|
4862
4862
|
}
|
|
4863
|
-
let f = 0,
|
|
4863
|
+
let f = 0, m2 = -1;
|
|
4864
4864
|
for (; f < a.length; ) {
|
|
4865
4865
|
const d2 = /* @__PURE__ */ new Set();
|
|
4866
|
-
n2.includeNativeLabel && d2.add(
|
|
4866
|
+
n2.includeNativeLabel && d2.add(Ee);
|
|
4867
4867
|
for (let p2 = 0; p2 < f; ++p2) d2.add(a[p2]);
|
|
4868
|
-
|
|
4869
|
-
const
|
|
4870
|
-
if (
|
|
4871
|
-
|
|
4868
|
+
m2 >= 0 && d2.add(a[m2]);
|
|
4869
|
+
const g2 = h(d2);
|
|
4870
|
+
if (g2 !== void 0 && new Set(g2.map((p2) => p2.label)).size === t.length) return g2;
|
|
4871
|
+
m2++, m2 >= a.length && (f++, m2 = f);
|
|
4872
4872
|
}
|
|
4873
4873
|
return h(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4874
4874
|
}
|
|
4875
|
-
const
|
|
4876
|
-
const
|
|
4875
|
+
const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned", J = ee + "BinaryPartitioned", Xe = ee + "Partitioned/", ce = Xe + "JsonPartitioned", z = Xe + "BinaryPartitioned";
|
|
4876
|
+
const ve = (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 Dt(t) {
|
|
4884
4884
|
if (!t) return;
|
|
4885
4885
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4886
4886
|
let i = 0;
|
|
4887
4887
|
switch (e) {
|
|
4888
|
-
case
|
|
4888
|
+
case le:
|
|
4889
4889
|
i = n2.keyLength;
|
|
4890
4890
|
break;
|
|
4891
|
-
case
|
|
4891
|
+
case ue:
|
|
4892
4892
|
i = n2.partitionKeyLength + n2.keyLength;
|
|
4893
4893
|
break;
|
|
4894
4894
|
case H:
|
|
4895
|
-
case
|
|
4895
|
+
case J:
|
|
4896
4896
|
i = n2.partitionKeyLength;
|
|
4897
4897
|
break;
|
|
4898
|
-
case
|
|
4899
|
-
case
|
|
4898
|
+
case z:
|
|
4899
|
+
case ce:
|
|
4900
4900
|
i = n2.superPartitionKeyLength + n2.partitionKeyLength;
|
|
4901
4901
|
break;
|
|
4902
4902
|
}
|
|
4903
4903
|
switch (e) {
|
|
4904
|
-
case
|
|
4904
|
+
case le:
|
|
4905
4905
|
case H:
|
|
4906
|
-
case
|
|
4907
|
-
for (let
|
|
4908
|
-
e ===
|
|
4909
|
-
const
|
|
4910
|
-
r.push(
|
|
4906
|
+
case J:
|
|
4907
|
+
for (let o of t.listInputFields()) {
|
|
4908
|
+
e === J && (o = ve(o).baseKey);
|
|
4909
|
+
const s2 = [...JSON.parse(o)];
|
|
4910
|
+
r.push(s2);
|
|
4911
4911
|
}
|
|
4912
4912
|
break;
|
|
4913
|
-
case
|
|
4914
|
-
case
|
|
4915
|
-
case
|
|
4916
|
-
for (const
|
|
4917
|
-
const
|
|
4913
|
+
case ue:
|
|
4914
|
+
case z:
|
|
4915
|
+
case ce:
|
|
4916
|
+
for (const o of t.listInputFields()) {
|
|
4917
|
+
const s2 = [...JSON.parse(o)], a = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4918
4918
|
if (a !== void 0)
|
|
4919
4919
|
for (let l2 of a.listInputFields()) {
|
|
4920
|
-
e ===
|
|
4921
|
-
const u2 = [...
|
|
4920
|
+
e === z && (l2 = ve(l2).baseKey);
|
|
4921
|
+
const u2 = [...s2, ...JSON.parse(l2)];
|
|
4922
4922
|
r.push(u2);
|
|
4923
4923
|
}
|
|
4924
4924
|
}
|
|
@@ -4926,60 +4926,60 @@
|
|
|
4926
4926
|
}
|
|
4927
4927
|
return { data: r, keyLength: i };
|
|
4928
4928
|
}
|
|
4929
|
-
function
|
|
4929
|
+
function Rt(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 = [];
|
|
4933
4933
|
for (let i = 0; i < n2; ++i)
|
|
4934
4934
|
r.push(/* @__PURE__ */ new Set());
|
|
4935
4935
|
for (const i of e) {
|
|
4936
|
-
const
|
|
4937
|
-
if (
|
|
4936
|
+
const o = i.key;
|
|
4937
|
+
if (o.length !== n2)
|
|
4938
4938
|
throw new Error(
|
|
4939
|
-
`Key length (${
|
|
4940
|
-
|
|
4939
|
+
`Key length (${o.length}) does not match partition length (${n2}) for key: ${JSON.stringify(
|
|
4940
|
+
o
|
|
4941
4941
|
)}`
|
|
4942
4942
|
);
|
|
4943
|
-
for (let
|
|
4944
|
-
r[
|
|
4943
|
+
for (let s2 = 0; s2 < n2; ++s2)
|
|
4944
|
+
r[s2].add(o[s2]);
|
|
4945
4945
|
}
|
|
4946
4946
|
return r.map((i) => Array.from(i.values()));
|
|
4947
4947
|
}
|
|
4948
|
-
function
|
|
4948
|
+
function Nt(t) {
|
|
4949
4949
|
if (t === void 0) return;
|
|
4950
4950
|
if (_(t))
|
|
4951
|
-
return
|
|
4952
|
-
const e =
|
|
4951
|
+
return Rt(t);
|
|
4952
|
+
const e = Dt(t);
|
|
4953
4953
|
if (!e) return;
|
|
4954
4954
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4955
|
-
for (let
|
|
4955
|
+
for (let o = 0; o < r; ++o)
|
|
4956
4956
|
i.push(/* @__PURE__ */ new Set());
|
|
4957
|
-
for (const
|
|
4958
|
-
if (
|
|
4957
|
+
for (const o of n2) {
|
|
4958
|
+
if (o.length !== r)
|
|
4959
4959
|
throw new Error("key length does not match partition length");
|
|
4960
|
-
for (let
|
|
4961
|
-
i[
|
|
4960
|
+
for (let s2 = 0; s2 < r; ++s2)
|
|
4961
|
+
i[s2].add(o[s2]);
|
|
4962
4962
|
}
|
|
4963
|
-
return i.map((
|
|
4963
|
+
return i.map((o) => Array.from(o.values()));
|
|
4964
4964
|
}
|
|
4965
|
-
function
|
|
4965
|
+
function Ce(t, e = []) {
|
|
4966
4966
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
4967
4967
|
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4968
|
-
if (e.length > 0 && (n2 ===
|
|
4968
|
+
if (e.length > 0 && (n2 === ce || n2 === z))
|
|
4969
4969
|
throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
|
|
4970
4970
|
switch (n2) {
|
|
4971
|
-
case
|
|
4972
|
-
case
|
|
4971
|
+
case le:
|
|
4972
|
+
case ue:
|
|
4973
4973
|
throw new Error(`Only data columns are supported, got: ${n2}`);
|
|
4974
4974
|
case H: {
|
|
4975
4975
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4976
4976
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4977
4977
|
const i = [];
|
|
4978
|
-
for (const
|
|
4979
|
-
const
|
|
4980
|
-
if (
|
|
4981
|
-
const a = [...e, ...JSON.parse(
|
|
4982
|
-
i.push({ key: a, value:
|
|
4978
|
+
for (const o of t.listInputFields()) {
|
|
4979
|
+
const s2 = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4980
|
+
if (s2 === void 0) return;
|
|
4981
|
+
const a = [...e, ...JSON.parse(o)];
|
|
4982
|
+
i.push({ key: a, value: s2 });
|
|
4983
4983
|
}
|
|
4984
4984
|
return {
|
|
4985
4985
|
type: "JsonPartitioned",
|
|
@@ -4987,19 +4987,19 @@
|
|
|
4987
4987
|
parts: i
|
|
4988
4988
|
};
|
|
4989
4989
|
}
|
|
4990
|
-
case
|
|
4990
|
+
case J: {
|
|
4991
4991
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4992
4992
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4993
|
-
const i = [],
|
|
4994
|
-
for (const
|
|
4995
|
-
const a =
|
|
4993
|
+
const i = [], o = /* @__PURE__ */ new Map();
|
|
4994
|
+
for (const s2 of t.listInputFields()) {
|
|
4995
|
+
const a = ve(s2), l2 = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
4996
4996
|
if (l2 === void 0) return;
|
|
4997
|
-
let u2 =
|
|
4998
|
-
u2 || (u2 = {},
|
|
4997
|
+
let u2 = o.get(a.baseKey);
|
|
4998
|
+
u2 || (u2 = {}, o.set(a.baseKey, u2)), a.type === "index" ? u2.index = l2 : u2.values = l2;
|
|
4999
4999
|
}
|
|
5000
|
-
for (const [
|
|
5000
|
+
for (const [s2, a] of o.entries()) {
|
|
5001
5001
|
if (!a.index || !a.values) return;
|
|
5002
|
-
const l2 = [...e, ...JSON.parse(
|
|
5002
|
+
const l2 = [...e, ...JSON.parse(s2)];
|
|
5003
5003
|
i.push({
|
|
5004
5004
|
key: l2,
|
|
5005
5005
|
value: {
|
|
@@ -5014,127 +5014,127 @@
|
|
|
5014
5014
|
parts: i
|
|
5015
5015
|
};
|
|
5016
5016
|
}
|
|
5017
|
-
case
|
|
5017
|
+
case ce: {
|
|
5018
5018
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
5019
5019
|
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
|
|
5020
|
-
const i = r.superPartitionKeyLength + r.partitionKeyLength,
|
|
5021
|
-
for (const
|
|
5022
|
-
const a = t.resolve({ field:
|
|
5020
|
+
const i = r.superPartitionKeyLength + r.partitionKeyLength, o = [];
|
|
5021
|
+
for (const s2 of t.listInputFields()) {
|
|
5022
|
+
const a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
5023
5023
|
if (a === void 0) return;
|
|
5024
5024
|
if (a.resourceType.name !== H)
|
|
5025
5025
|
throw new Error(`Expected ${H} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5026
|
-
const l2 =
|
|
5026
|
+
const l2 = Ce(a, JSON.parse(s2));
|
|
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}`);
|
|
5030
|
-
|
|
5030
|
+
o.push(...l2.parts);
|
|
5031
5031
|
}
|
|
5032
5032
|
return {
|
|
5033
5033
|
type: "JsonPartitioned",
|
|
5034
5034
|
partitionKeyLength: i,
|
|
5035
|
-
parts:
|
|
5035
|
+
parts: o
|
|
5036
5036
|
};
|
|
5037
5037
|
}
|
|
5038
|
-
case
|
|
5038
|
+
case z: {
|
|
5039
5039
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
5040
5040
|
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
|
|
5041
|
-
const i = r.superPartitionKeyLength + r.partitionKeyLength,
|
|
5042
|
-
for (const
|
|
5043
|
-
const a = t.resolve({ field:
|
|
5041
|
+
const i = r.superPartitionKeyLength + r.partitionKeyLength, o = [];
|
|
5042
|
+
for (const s2 of t.listInputFields()) {
|
|
5043
|
+
const a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
5044
5044
|
if (a === void 0) return;
|
|
5045
|
-
if (a.resourceType.name !==
|
|
5046
|
-
throw new Error(`Expected ${
|
|
5047
|
-
const l2 =
|
|
5045
|
+
if (a.resourceType.name !== J)
|
|
5046
|
+
throw new Error(`Expected ${J} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5047
|
+
const l2 = Ce(a, JSON.parse(s2));
|
|
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}`);
|
|
5051
|
-
|
|
5051
|
+
o.push(...l2.parts);
|
|
5052
5052
|
}
|
|
5053
5053
|
return {
|
|
5054
5054
|
type: "BinaryPartitioned",
|
|
5055
5055
|
partitionKeyLength: i,
|
|
5056
|
-
parts:
|
|
5056
|
+
parts: o
|
|
5057
5057
|
};
|
|
5058
5058
|
}
|
|
5059
5059
|
default:
|
|
5060
5060
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5061
5061
|
}
|
|
5062
5062
|
}
|
|
5063
|
-
function
|
|
5063
|
+
function Ut(t) {
|
|
5064
5064
|
if (t !== void 0) {
|
|
5065
5065
|
if (_(t)) return t;
|
|
5066
|
-
if (Ce(t)) return je
|
|
5067
|
-
if (t instanceof
|
|
5066
|
+
if (Ce$1(t)) return je(t);
|
|
5067
|
+
if (t instanceof O) return Ce(t);
|
|
5068
5068
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5069
5069
|
}
|
|
5070
5070
|
}
|
|
5071
|
-
function
|
|
5072
|
-
const n2 = [...e].sort((
|
|
5071
|
+
function Kt(t, e) {
|
|
5072
|
+
const n2 = [...e].sort((o, s2) => s2[0] - o[0]);
|
|
5073
5073
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5074
|
-
const { partitionKeyLength:
|
|
5075
|
-
for (const [
|
|
5076
|
-
if (
|
|
5077
|
-
throw new Error(`Can't filter on non-partitioned axis ${
|
|
5074
|
+
const { partitionKeyLength: o } = t;
|
|
5075
|
+
for (const [s2] of e)
|
|
5076
|
+
if (s2 >= o)
|
|
5077
|
+
throw new Error(`Can't filter on non-partitioned axis ${s2}. Must be >= ${o}`);
|
|
5078
5078
|
} else if (t.type === "Json") {
|
|
5079
|
-
const { keyLength:
|
|
5080
|
-
for (const [
|
|
5081
|
-
if (
|
|
5082
|
-
throw new Error(`Can't filter on non-data axis ${
|
|
5083
|
-
}
|
|
5084
|
-
const r = (
|
|
5085
|
-
for (const [
|
|
5086
|
-
if (s2
|
|
5079
|
+
const { keyLength: o } = t;
|
|
5080
|
+
for (const [s2] of e)
|
|
5081
|
+
if (s2 >= o)
|
|
5082
|
+
throw new Error(`Can't filter on non-data axis ${s2}. Must be >= ${o}`);
|
|
5083
|
+
}
|
|
5084
|
+
const r = (o) => {
|
|
5085
|
+
for (const [s2, a] of n2)
|
|
5086
|
+
if (o[s2] !== a)
|
|
5087
5087
|
return false;
|
|
5088
5088
|
return true;
|
|
5089
|
-
}, i = (
|
|
5090
|
-
const
|
|
5089
|
+
}, i = (o) => {
|
|
5090
|
+
const s2 = [...o];
|
|
5091
5091
|
for (const [a] of n2)
|
|
5092
|
-
|
|
5093
|
-
return
|
|
5092
|
+
s2.splice(a, 1);
|
|
5093
|
+
return s2;
|
|
5094
5094
|
};
|
|
5095
5095
|
switch (t.type) {
|
|
5096
5096
|
case "Json": {
|
|
5097
|
-
const
|
|
5098
|
-
key: i(
|
|
5099
|
-
value:
|
|
5097
|
+
const o = t.data.filter((s2) => r(s2.key)).map((s2) => ({
|
|
5098
|
+
key: i(s2.key),
|
|
5099
|
+
value: s2.value
|
|
5100
5100
|
}));
|
|
5101
5101
|
return {
|
|
5102
5102
|
type: "Json",
|
|
5103
5103
|
keyLength: t.keyLength - e.length,
|
|
5104
|
-
data:
|
|
5104
|
+
data: o
|
|
5105
5105
|
};
|
|
5106
5106
|
}
|
|
5107
5107
|
case "JsonPartitioned": {
|
|
5108
|
-
const
|
|
5109
|
-
key: i(
|
|
5110
|
-
value:
|
|
5108
|
+
const o = t.parts.filter((s2) => r(s2.key)).map((s2) => ({
|
|
5109
|
+
key: i(s2.key),
|
|
5110
|
+
value: s2.value
|
|
5111
5111
|
}));
|
|
5112
5112
|
return {
|
|
5113
5113
|
type: "JsonPartitioned",
|
|
5114
5114
|
partitionKeyLength: t.partitionKeyLength - e.length,
|
|
5115
|
-
parts:
|
|
5115
|
+
parts: o
|
|
5116
5116
|
};
|
|
5117
5117
|
}
|
|
5118
5118
|
case "BinaryPartitioned": {
|
|
5119
|
-
const
|
|
5120
|
-
key: i(
|
|
5121
|
-
value:
|
|
5119
|
+
const o = t.parts.filter((s2) => r(s2.key)).map((s2) => ({
|
|
5120
|
+
key: i(s2.key),
|
|
5121
|
+
value: s2.value
|
|
5122
5122
|
}));
|
|
5123
5123
|
return {
|
|
5124
5124
|
type: "BinaryPartitioned",
|
|
5125
5125
|
partitionKeyLength: t.partitionKeyLength - e.length,
|
|
5126
|
-
parts:
|
|
5126
|
+
parts: o
|
|
5127
5127
|
};
|
|
5128
5128
|
}
|
|
5129
5129
|
}
|
|
5130
5130
|
}
|
|
5131
|
-
function
|
|
5131
|
+
function Mt(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 jt {
|
|
5138
5138
|
constructor(e) {
|
|
5139
5139
|
this.columns = e;
|
|
5140
5140
|
}
|
|
@@ -5143,7 +5143,7 @@
|
|
|
5143
5143
|
return this.columns.filter((r) => n2(r.spec));
|
|
5144
5144
|
}
|
|
5145
5145
|
}
|
|
5146
|
-
function
|
|
5146
|
+
function qt(t) {
|
|
5147
5147
|
if (t)
|
|
5148
5148
|
return t.map((e) => ({
|
|
5149
5149
|
type: `split:${Te$1(e.axisId)}`,
|
|
@@ -5152,21 +5152,21 @@
|
|
|
5152
5152
|
// High importance for split filters in labels
|
|
5153
5153
|
}));
|
|
5154
5154
|
}
|
|
5155
|
-
function
|
|
5155
|
+
function Bt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5158
5158
|
}
|
|
5159
|
-
function
|
|
5159
|
+
function Jt(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 Be({ id: t, axisFilters: n2 });
|
|
5163
5163
|
}
|
|
5164
|
-
function
|
|
5164
|
+
function Ve(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;
|
|
5168
5168
|
}
|
|
5169
|
-
function
|
|
5169
|
+
function $t(t) {
|
|
5170
5170
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5171
5171
|
return [];
|
|
5172
5172
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5174,11 +5174,11 @@
|
|
|
5174
5174
|
throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
|
|
5175
5175
|
return e.sort((n2, r) => n2 - r), e;
|
|
5176
5176
|
}
|
|
5177
|
-
class
|
|
5177
|
+
class Q {
|
|
5178
5178
|
constructor() {
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5179
|
+
V(this, "defaultProviderStore", []);
|
|
5180
|
+
V(this, "providers", [new jt(this.defaultProviderStore)]);
|
|
5181
|
+
V(this, "axisLabelProviders", []);
|
|
5182
5182
|
}
|
|
5183
5183
|
addColumnProvider(e) {
|
|
5184
5184
|
return this.providers.push(e), this;
|
|
@@ -5200,94 +5200,94 @@
|
|
|
5200
5200
|
}
|
|
5201
5201
|
}
|
|
5202
5202
|
getUniversalEntries(e, n2) {
|
|
5203
|
-
const { anchorCtx: r, labelOps: i, dontWaitAllData:
|
|
5204
|
-
...
|
|
5203
|
+
const { anchorCtx: r, labelOps: i, dontWaitAllData: o = false, overrideLabelAnnotation: s2 = false, exclude: a } = n2 ?? {}, l2 = {
|
|
5204
|
+
...s2 && (i == null ? void 0 : i.includeNativeLabel) !== false ? { includeNativeLabel: true } : {},
|
|
5205
5205
|
...i ?? {}
|
|
5206
5206
|
};
|
|
5207
5207
|
let u2 = () => false;
|
|
5208
5208
|
if (a) {
|
|
5209
|
-
const p2 = (Array.isArray(a) ? a : [a]).map((
|
|
5210
|
-
if (
|
|
5209
|
+
const p2 = (Array.isArray(a) ? a : [a]).map((y2) => {
|
|
5210
|
+
if (Ve(y2)) {
|
|
5211
5211
|
if (!r)
|
|
5212
5212
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5213
|
-
return rn(Xe(r.anchors,
|
|
5213
|
+
return rn(Xe$1(r.anchors, y2, n2));
|
|
5214
5214
|
} else
|
|
5215
|
-
return rn(
|
|
5215
|
+
return rn(y2);
|
|
5216
5216
|
});
|
|
5217
|
-
u2 = (
|
|
5217
|
+
u2 = (y2) => p2.some((C2) => C2(y2));
|
|
5218
5218
|
}
|
|
5219
|
-
const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [],
|
|
5219
|
+
const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], m2 = /* @__PURE__ */ new Set();
|
|
5220
5220
|
for (const p2 of h) {
|
|
5221
|
-
const
|
|
5221
|
+
const y$1 = Ve(p2);
|
|
5222
5222
|
let C2;
|
|
5223
|
-
if (
|
|
5223
|
+
if (y$1) {
|
|
5224
5224
|
if (!r)
|
|
5225
5225
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5226
|
-
C2 = Xe(r.anchors, p2, n2);
|
|
5226
|
+
C2 = Xe$1(r.anchors, p2, n2);
|
|
5227
5227
|
} else
|
|
5228
5228
|
C2 = p2;
|
|
5229
|
-
const E2 = /* @__PURE__ */ new Set(),
|
|
5230
|
-
for (const
|
|
5231
|
-
const
|
|
5232
|
-
for (const c2 of
|
|
5229
|
+
const E2 = /* @__PURE__ */ new Set(), x2 = [];
|
|
5230
|
+
for (const T of this.providers) {
|
|
5231
|
+
const F = T.selectColumns(C2);
|
|
5232
|
+
for (const c2 of F) {
|
|
5233
5233
|
if (u2(c2.spec)) continue;
|
|
5234
5234
|
if (E2.has(c2.id))
|
|
5235
|
-
throw new Error(`Duplicate column id ${c2.id} in provider ${
|
|
5236
|
-
const
|
|
5237
|
-
|
|
5235
|
+
throw new Error(`Duplicate column id ${c2.id} in provider ${T.constructor.name}`);
|
|
5236
|
+
const v2 = on(c2.spec);
|
|
5237
|
+
m2.has(v2) || (E2.add(c2.id), m2.add(v2), x2.push(c2));
|
|
5238
5238
|
}
|
|
5239
5239
|
}
|
|
5240
|
-
if (
|
|
5241
|
-
const
|
|
5242
|
-
for (const
|
|
5243
|
-
if (!l$1(
|
|
5244
|
-
const
|
|
5245
|
-
if (
|
|
5246
|
-
if (
|
|
5247
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
5248
|
-
const c2 =
|
|
5240
|
+
if (x2.length === 0) continue;
|
|
5241
|
+
const S2 = $t(p2), P = S2.length > 0;
|
|
5242
|
+
for (const T of x2) {
|
|
5243
|
+
if (!l$1(T.spec)) continue;
|
|
5244
|
+
const F = T.spec;
|
|
5245
|
+
if (P) {
|
|
5246
|
+
if (Mt(T.data))
|
|
5247
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T.id}`);
|
|
5248
|
+
const c2 = Ut(T.data);
|
|
5249
5249
|
if (!c2) {
|
|
5250
|
-
if (
|
|
5250
|
+
if (o) continue;
|
|
5251
5251
|
return;
|
|
5252
5252
|
}
|
|
5253
|
-
if (!Ve(c2))
|
|
5254
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${
|
|
5255
|
-
const
|
|
5256
|
-
if (
|
|
5257
|
-
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${
|
|
5258
|
-
const
|
|
5259
|
-
if (W >=
|
|
5260
|
-
if (
|
|
5253
|
+
if (!Ve$1(c2))
|
|
5254
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${T.id}`);
|
|
5255
|
+
const v2 = Nt(c2), I = S2[S2.length - 1];
|
|
5256
|
+
if (I >= c2.partitionKeyLength)
|
|
5257
|
+
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I}) in column ${F.name}`);
|
|
5258
|
+
const $ = S2.map((_2) => this.findLabels(y(F.axesSpec[_2]))), K = [], j = (_2, W) => {
|
|
5259
|
+
if (W >= S2.length) {
|
|
5260
|
+
if (K.push([..._2]), K.length > 1e4)
|
|
5261
5261
|
throw new Error("Too many key combinations, aborting.");
|
|
5262
5262
|
return;
|
|
5263
5263
|
}
|
|
5264
|
-
const M =
|
|
5265
|
-
if (M >=
|
|
5266
|
-
throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${
|
|
5267
|
-
const
|
|
5268
|
-
if (!
|
|
5269
|
-
|
|
5264
|
+
const M = S2[W];
|
|
5265
|
+
if (M >= v2.length)
|
|
5266
|
+
throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${v2.length}) during split key generation for column ${T.id}`);
|
|
5267
|
+
const q = v2[M];
|
|
5268
|
+
if (!q || q.length === 0) {
|
|
5269
|
+
K.length = 0;
|
|
5270
5270
|
return;
|
|
5271
5271
|
}
|
|
5272
|
-
for (const
|
|
5273
|
-
|
|
5272
|
+
for (const te2 of q)
|
|
5273
|
+
_2.push(te2), j(_2, W + 1), _2.pop();
|
|
5274
5274
|
};
|
|
5275
|
-
if (j([], 0),
|
|
5275
|
+
if (j([], 0), K.length === 0)
|
|
5276
5276
|
continue;
|
|
5277
|
-
const
|
|
5278
|
-
for (let
|
|
5279
|
-
|
|
5280
|
-
const
|
|
5281
|
-
for (const
|
|
5282
|
-
const W =
|
|
5283
|
-
const
|
|
5284
|
-
return { axisIdx:
|
|
5277
|
+
const N = [...F.axesSpec], et = S2.map((_2) => _2);
|
|
5278
|
+
for (let _2 = S2.length - 1; _2 >= 0; _2--)
|
|
5279
|
+
N.splice(S2[_2], 1);
|
|
5280
|
+
const tt = { ...F, axesSpec: N };
|
|
5281
|
+
for (const _2 of K) {
|
|
5282
|
+
const W = _2.map((M, q) => {
|
|
5283
|
+
const te2 = et[q], nt = y(F.axesSpec[te2]), de2 = $[q], rt = (de2 == null ? void 0 : de2[M]) ?? String(M);
|
|
5284
|
+
return { axisIdx: te2, axisId: nt, value: M, label: rt };
|
|
5285
5285
|
});
|
|
5286
5286
|
f.push({
|
|
5287
5287
|
type: "split",
|
|
5288
|
-
originalColumn:
|
|
5289
|
-
spec:
|
|
5290
|
-
adjustedSpec:
|
|
5288
|
+
originalColumn: T,
|
|
5289
|
+
spec: F,
|
|
5290
|
+
adjustedSpec: tt,
|
|
5291
5291
|
dataEntries: c2,
|
|
5292
5292
|
axisFilters: W
|
|
5293
5293
|
});
|
|
@@ -5295,40 +5295,40 @@
|
|
|
5295
5295
|
} else
|
|
5296
5296
|
f.push({
|
|
5297
5297
|
type: "direct",
|
|
5298
|
-
originalColumn:
|
|
5299
|
-
spec:
|
|
5300
|
-
adjustedSpec:
|
|
5298
|
+
originalColumn: T,
|
|
5299
|
+
spec: F,
|
|
5300
|
+
adjustedSpec: F
|
|
5301
5301
|
});
|
|
5302
5302
|
}
|
|
5303
5303
|
}
|
|
5304
5304
|
if (f.length === 0) return [];
|
|
5305
|
-
const d2 =
|
|
5305
|
+
const d2 = ze(
|
|
5306
5306
|
f,
|
|
5307
5307
|
(p2) => ({
|
|
5308
5308
|
spec: p2.spec,
|
|
5309
|
-
suffixTrace: p2.type === "split" ?
|
|
5309
|
+
suffixTrace: p2.type === "split" ? qt(p2.axisFilters) : void 0
|
|
5310
5310
|
}),
|
|
5311
5311
|
l2
|
|
5312
|
-
),
|
|
5313
|
-
for (const { value: p2, label:
|
|
5314
|
-
const { originalColumn: C2, spec: E2 } = p2,
|
|
5315
|
-
let
|
|
5316
|
-
r ?
|
|
5317
|
-
let
|
|
5318
|
-
|
|
5319
|
-
...
|
|
5312
|
+
), g2 = [];
|
|
5313
|
+
for (const { value: p2, label: y2 } of d2) {
|
|
5314
|
+
const { originalColumn: C2, spec: E2 } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, S2 = Bt(x2);
|
|
5315
|
+
let P;
|
|
5316
|
+
r ? P = r.deriveS(E2, S2) : P = Jt(C2.id, S2);
|
|
5317
|
+
let T = { ...p2.adjustedSpec };
|
|
5318
|
+
s2 && (T = {
|
|
5319
|
+
...T,
|
|
5320
5320
|
annotations: {
|
|
5321
|
-
...
|
|
5322
|
-
"pl7.app/label":
|
|
5321
|
+
...T.annotations ?? {},
|
|
5322
|
+
"pl7.app/label": y2
|
|
5323
5323
|
}
|
|
5324
|
-
}),
|
|
5325
|
-
id:
|
|
5326
|
-
spec:
|
|
5327
|
-
data: () => p2.type === "split" ? Ie
|
|
5328
|
-
label:
|
|
5324
|
+
}), g2.push({
|
|
5325
|
+
id: P,
|
|
5326
|
+
spec: T,
|
|
5327
|
+
data: () => p2.type === "split" ? Ie(Kt(p2.dataEntries, S2)) : p2.originalColumn.data,
|
|
5328
|
+
label: y2
|
|
5329
5329
|
});
|
|
5330
5330
|
}
|
|
5331
|
-
return
|
|
5331
|
+
return g2;
|
|
5332
5332
|
}
|
|
5333
5333
|
getColumns(e, n2) {
|
|
5334
5334
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5338,67 +5338,67 @@
|
|
|
5338
5338
|
});
|
|
5339
5339
|
if (!r) return;
|
|
5340
5340
|
const i = [];
|
|
5341
|
-
for (const
|
|
5342
|
-
const
|
|
5343
|
-
if (!
|
|
5341
|
+
for (const o of r) {
|
|
5342
|
+
const s2 = o.data();
|
|
5343
|
+
if (!s2) {
|
|
5344
5344
|
if (n2 != null && n2.dontWaitAllData) continue;
|
|
5345
5345
|
return;
|
|
5346
5346
|
}
|
|
5347
5347
|
i.push({
|
|
5348
|
-
id:
|
|
5349
|
-
spec:
|
|
5350
|
-
data:
|
|
5348
|
+
id: o.id,
|
|
5349
|
+
spec: o.spec,
|
|
5350
|
+
data: s2
|
|
5351
5351
|
});
|
|
5352
5352
|
}
|
|
5353
5353
|
return i;
|
|
5354
5354
|
}
|
|
5355
5355
|
}
|
|
5356
|
-
function
|
|
5356
|
+
function Te(t) {
|
|
5357
5357
|
const e = (i) => i.operator !== "InSet" ? i : {
|
|
5358
5358
|
operator: "Or",
|
|
5359
|
-
operands: i.references.map((
|
|
5359
|
+
operands: i.references.map((o) => ({
|
|
5360
5360
|
operator: "Equal",
|
|
5361
|
-
reference:
|
|
5361
|
+
reference: o
|
|
5362
5362
|
}))
|
|
5363
|
-
}, n2 = (i,
|
|
5363
|
+
}, n2 = (i, o) => {
|
|
5364
5364
|
switch (i.operator) {
|
|
5365
5365
|
case "And":
|
|
5366
5366
|
return {
|
|
5367
5367
|
...i,
|
|
5368
|
-
operands: i.operands.map((a) => n2(a,
|
|
5368
|
+
operands: i.operands.map((a) => n2(a, o))
|
|
5369
5369
|
};
|
|
5370
5370
|
case "Or":
|
|
5371
5371
|
return {
|
|
5372
5372
|
...i,
|
|
5373
|
-
operands: i.operands.map((a) => n2(a,
|
|
5373
|
+
operands: i.operands.map((a) => n2(a, o))
|
|
5374
5374
|
};
|
|
5375
5375
|
case "Not":
|
|
5376
5376
|
return {
|
|
5377
5377
|
...i,
|
|
5378
|
-
operand: n2(i.operand,
|
|
5378
|
+
operand: n2(i.operand, o)
|
|
5379
5379
|
};
|
|
5380
5380
|
default:
|
|
5381
|
-
return
|
|
5381
|
+
return o(i);
|
|
5382
5382
|
}
|
|
5383
|
-
}, r = (i,
|
|
5383
|
+
}, r = (i, o) => ({
|
|
5384
5384
|
...i,
|
|
5385
|
-
predicate: n2(i.predicate,
|
|
5385
|
+
predicate: n2(i.predicate, o)
|
|
5386
5386
|
});
|
|
5387
5387
|
return t.map((i) => r(i, e));
|
|
5388
5388
|
}
|
|
5389
|
-
function
|
|
5389
|
+
function he(t, e) {
|
|
5390
5390
|
if (t === void 0) return e === void 0;
|
|
5391
5391
|
if (e === void 0) return true;
|
|
5392
5392
|
for (const n2 in e)
|
|
5393
5393
|
if (t[n2] !== e[n2]) return false;
|
|
5394
5394
|
return true;
|
|
5395
5395
|
}
|
|
5396
|
-
function
|
|
5397
|
-
return nn(t, (e) => e instanceof
|
|
5396
|
+
function ke(t) {
|
|
5397
|
+
return nn(t, (e) => e instanceof O ? e.handle : Ce$1(e) ? Fe(e, (n2) => n2.handle) : e);
|
|
5398
5398
|
}
|
|
5399
|
-
class
|
|
5399
|
+
class Wt {
|
|
5400
5400
|
constructor() {
|
|
5401
|
-
|
|
5401
|
+
V(this, "ctx", b());
|
|
5402
5402
|
}
|
|
5403
5403
|
/**
|
|
5404
5404
|
* @deprecated use getOptions()
|
|
@@ -5408,27 +5408,27 @@
|
|
|
5408
5408
|
}
|
|
5409
5409
|
getOptions(e, n2) {
|
|
5410
5410
|
const r = typeof e == "function" ? e : rn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5411
|
-
let
|
|
5412
|
-
return typeof n2 < "u" && (typeof n2 == "function" ?
|
|
5413
|
-
ref: fn(a,
|
|
5411
|
+
let o = {}, s2 = false;
|
|
5412
|
+
return typeof n2 < "u" && (typeof n2 == "function" ? o = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? o = n2 : (n2 = n2, o = n2.label ?? {}, s2 = n2.refsWithEnrichments ?? false))), typeof o == "object" ? ze(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5413
|
+
ref: fn(a, s2),
|
|
5414
5414
|
label: l2
|
|
5415
5415
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5416
|
-
ref: fn(a,
|
|
5417
|
-
label:
|
|
5416
|
+
ref: fn(a, s2),
|
|
5417
|
+
label: o(l2, a)
|
|
5418
5418
|
}));
|
|
5419
5419
|
}
|
|
5420
5420
|
resolveAnchorCtx(e) {
|
|
5421
|
-
if (e instanceof Ge) return e;
|
|
5421
|
+
if (e instanceof Ge$1) return e;
|
|
5422
5422
|
const n2 = {};
|
|
5423
5423
|
for (const [r, i] of Object.entries(e))
|
|
5424
5424
|
if (un(i)) {
|
|
5425
|
-
const
|
|
5426
|
-
if (!
|
|
5425
|
+
const o = this.getPColumnSpecByRef(i);
|
|
5426
|
+
if (!o)
|
|
5427
5427
|
return;
|
|
5428
|
-
n2[r] =
|
|
5428
|
+
n2[r] = o;
|
|
5429
5429
|
} else
|
|
5430
5430
|
n2[r] = i;
|
|
5431
|
-
return new Ge(n2);
|
|
5431
|
+
return new Ge$1(n2);
|
|
5432
5432
|
}
|
|
5433
5433
|
/**
|
|
5434
5434
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5441,7 +5441,7 @@
|
|
|
5441
5441
|
getAnchoredPColumns(e, n2, r) {
|
|
5442
5442
|
const i = this.resolveAnchorCtx(e);
|
|
5443
5443
|
if (i)
|
|
5444
|
-
return new
|
|
5444
|
+
return new Q().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
|
|
5445
5445
|
...r,
|
|
5446
5446
|
anchorCtx: i
|
|
5447
5447
|
});
|
|
@@ -5478,14 +5478,14 @@
|
|
|
5478
5478
|
getCanonicalOptions(e, n2, r) {
|
|
5479
5479
|
const i = this.resolveAnchorCtx(e);
|
|
5480
5480
|
if (!i) return;
|
|
5481
|
-
const
|
|
5481
|
+
const o = new Q().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
|
|
5482
5482
|
...r,
|
|
5483
5483
|
anchorCtx: i
|
|
5484
5484
|
});
|
|
5485
|
-
if (
|
|
5486
|
-
return
|
|
5487
|
-
value:
|
|
5488
|
-
label:
|
|
5485
|
+
if (o)
|
|
5486
|
+
return o.map((s2) => ({
|
|
5487
|
+
value: s2.id,
|
|
5488
|
+
label: s2.label
|
|
5489
5489
|
}));
|
|
5490
5490
|
}
|
|
5491
5491
|
/**
|
|
@@ -5502,7 +5502,7 @@
|
|
|
5502
5502
|
ref: n2.ref,
|
|
5503
5503
|
obj: {
|
|
5504
5504
|
...n2.obj,
|
|
5505
|
-
data: new
|
|
5505
|
+
data: new O(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5506
5506
|
}
|
|
5507
5507
|
}))
|
|
5508
5508
|
};
|
|
@@ -5523,7 +5523,7 @@
|
|
|
5523
5523
|
...n2.obj,
|
|
5524
5524
|
data: ln(
|
|
5525
5525
|
n2.obj.data,
|
|
5526
|
-
(r) => new
|
|
5526
|
+
(r) => new O(r, [n2.ref.blockId, n2.ref.name])
|
|
5527
5527
|
)
|
|
5528
5528
|
}
|
|
5529
5529
|
}))
|
|
@@ -5552,7 +5552,7 @@
|
|
|
5552
5552
|
if (n2)
|
|
5553
5553
|
return nn(
|
|
5554
5554
|
n2,
|
|
5555
|
-
(i) => new
|
|
5555
|
+
(i) => new O(i, [e.blockId, e.name])
|
|
5556
5556
|
);
|
|
5557
5557
|
}
|
|
5558
5558
|
/**
|
|
@@ -5595,10 +5595,10 @@
|
|
|
5595
5595
|
if (!l$1(r.obj.spec))
|
|
5596
5596
|
continue;
|
|
5597
5597
|
const i = r.obj.spec;
|
|
5598
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
5599
|
-
for (let
|
|
5600
|
-
const
|
|
5601
|
-
if (
|
|
5598
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && he(e.domain, i.domain)) {
|
|
5599
|
+
for (let o = 0; o < e.axesSpec.length; ++o) {
|
|
5600
|
+
const s2 = e.axesSpec[o], a = i.axesSpec[o];
|
|
5601
|
+
if (s2.name !== a.name || s2.type !== a.type || !he(s2.domain, a.domain))
|
|
5602
5602
|
continue e;
|
|
5603
5603
|
}
|
|
5604
5604
|
n2.push(r.obj);
|
|
@@ -5613,15 +5613,15 @@
|
|
|
5613
5613
|
findLabels(e) {
|
|
5614
5614
|
const n2 = this.getData();
|
|
5615
5615
|
for (const r of n2.entries) {
|
|
5616
|
-
if (!ie
|
|
5616
|
+
if (!ie(r.obj)) continue;
|
|
5617
5617
|
const i = r.obj.spec;
|
|
5618
|
-
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type &&
|
|
5618
|
+
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && he(e.domain, i.axesSpec[0].domain)) {
|
|
5619
5619
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
5620
5620
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
5621
5621
|
return Object.fromEntries(
|
|
5622
5622
|
Object.entries(
|
|
5623
5623
|
r.obj.data.getDataAsJson().data
|
|
5624
|
-
).map((
|
|
5624
|
+
).map((s2) => [JSON.parse(s2[0])[0], s2[1]])
|
|
5625
5625
|
);
|
|
5626
5626
|
}
|
|
5627
5627
|
}
|
|
@@ -5635,13 +5635,13 @@
|
|
|
5635
5635
|
*/
|
|
5636
5636
|
selectColumns(e) {
|
|
5637
5637
|
const n2 = typeof e == "function" ? e : rn(e);
|
|
5638
|
-
return this.getSpecs().entries.filter(({ obj: i }) => l$1(i) ? n2(i) : false).map(({ ref: i, obj:
|
|
5639
|
-
const
|
|
5638
|
+
return this.getSpecs().entries.filter(({ obj: i }) => l$1(i) ? n2(i) : false).map(({ ref: i, obj: o }) => {
|
|
5639
|
+
const s2 = o;
|
|
5640
5640
|
let a = null;
|
|
5641
5641
|
const l2 = this;
|
|
5642
5642
|
return {
|
|
5643
|
-
id:
|
|
5644
|
-
spec:
|
|
5643
|
+
id: Be(i),
|
|
5644
|
+
spec: s2,
|
|
5645
5645
|
get data() {
|
|
5646
5646
|
var u2;
|
|
5647
5647
|
return a !== null || (a = (u2 = l2.getPColumnByRef(i)) == null ? void 0 : u2.data), a;
|
|
@@ -5654,25 +5654,25 @@
|
|
|
5654
5654
|
* @returns a map of axis value => label
|
|
5655
5655
|
*/
|
|
5656
5656
|
findLabelsForColumnAxis(e, n2) {
|
|
5657
|
-
var
|
|
5657
|
+
var o;
|
|
5658
5658
|
const r = this.findLabels(e.axesSpec[n2]);
|
|
5659
5659
|
if (!r) return;
|
|
5660
|
-
const i = (
|
|
5660
|
+
const i = (o = e.annotations) == null ? void 0 : o["pl7.app/axisKeys/" + n2];
|
|
5661
5661
|
if (i !== void 0) {
|
|
5662
|
-
const
|
|
5663
|
-
return Object.fromEntries(
|
|
5662
|
+
const s2 = JSON.parse(i);
|
|
5663
|
+
return Object.fromEntries(s2.map((a) => [a, r[a] ?? "Unlabelled"]));
|
|
5664
5664
|
} else
|
|
5665
5665
|
return r;
|
|
5666
5666
|
}
|
|
5667
5667
|
}
|
|
5668
|
-
class
|
|
5668
|
+
class ne {
|
|
5669
5669
|
constructor() {
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
this.ctx =
|
|
5670
|
+
V(this, "ctx");
|
|
5671
|
+
V(this, "_argsCache");
|
|
5672
|
+
V(this, "_uiStateCache");
|
|
5673
|
+
V(this, "_activeArgsCache");
|
|
5674
|
+
V(this, "resultPool", new Wt());
|
|
5675
|
+
this.ctx = b();
|
|
5676
5676
|
}
|
|
5677
5677
|
get args() {
|
|
5678
5678
|
if (this._argsCache === void 0) {
|
|
@@ -5708,14 +5708,14 @@
|
|
|
5708
5708
|
getNamedAccessor(e) {
|
|
5709
5709
|
return ge(
|
|
5710
5710
|
this.ctx.getAccessorHandleByName(e),
|
|
5711
|
-
(n2) => new
|
|
5711
|
+
(n2) => new O(n2, [e])
|
|
5712
5712
|
);
|
|
5713
5713
|
}
|
|
5714
5714
|
get prerun() {
|
|
5715
|
-
return this.getNamedAccessor(
|
|
5715
|
+
return this.getNamedAccessor(We);
|
|
5716
5716
|
}
|
|
5717
5717
|
get outputs() {
|
|
5718
|
-
return this.getNamedAccessor(
|
|
5718
|
+
return this.getNamedAccessor(Ge);
|
|
5719
5719
|
}
|
|
5720
5720
|
/**
|
|
5721
5721
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5727,7 +5727,7 @@
|
|
|
5727
5727
|
}
|
|
5728
5728
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5729
5729
|
var i;
|
|
5730
|
-
const n2 = e.some((
|
|
5730
|
+
const n2 = e.some((o) => !(o.data instanceof O) || Ce$1(o.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5731
5731
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5732
5732
|
}
|
|
5733
5733
|
patchPTableDef(e) {
|
|
@@ -5738,14 +5738,14 @@
|
|
|
5738
5738
|
filters: [...e.partitionFilters, ...e.filters]
|
|
5739
5739
|
}), (r = this.ctx.featureFlags) != null && r.pFrameInSetFilterSupport || (e = {
|
|
5740
5740
|
...e,
|
|
5741
|
-
partitionFilters:
|
|
5742
|
-
filters:
|
|
5741
|
+
partitionFilters: Te(e.partitionFilters),
|
|
5742
|
+
filters: Te(e.filters)
|
|
5743
5743
|
}), e;
|
|
5744
5744
|
}
|
|
5745
5745
|
// TODO remove all non-PColumn fields
|
|
5746
5746
|
createPFrame(e) {
|
|
5747
5747
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5748
|
-
e.map((n2) =>
|
|
5748
|
+
e.map((n2) => ke(n2))
|
|
5749
5749
|
);
|
|
5750
5750
|
}
|
|
5751
5751
|
createPTable(e) {
|
|
@@ -5759,7 +5759,7 @@
|
|
|
5759
5759
|
filters: [],
|
|
5760
5760
|
sorting: e.sorting ?? []
|
|
5761
5761
|
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(tn(n2.src)), this.ctx.createPTable(
|
|
5762
|
-
ze(n2, (r) =>
|
|
5762
|
+
ze$1(n2, (r) => ke(r))
|
|
5763
5763
|
);
|
|
5764
5764
|
}
|
|
5765
5765
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5779,35 +5779,35 @@
|
|
|
5779
5779
|
this.ctx.logError(e);
|
|
5780
5780
|
}
|
|
5781
5781
|
}
|
|
5782
|
-
const
|
|
5783
|
-
function
|
|
5782
|
+
const X = "1.40.6";
|
|
5783
|
+
function Gt(t) {
|
|
5784
5784
|
return t.__renderLambda === true;
|
|
5785
5785
|
}
|
|
5786
|
-
function
|
|
5786
|
+
function me(t) {
|
|
5787
5787
|
if (t !== void 0)
|
|
5788
|
-
return
|
|
5788
|
+
return Gt(t) ? t.handle : t;
|
|
5789
5789
|
}
|
|
5790
|
-
const
|
|
5791
|
-
constructor(e, n2, r, i,
|
|
5792
|
-
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid =
|
|
5790
|
+
const w = class w2 {
|
|
5791
|
+
constructor(e, n2, r, i, o, s2, a, l2, u2) {
|
|
5792
|
+
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = o, this._sections = s2, this._title = a, this._enrichmentTargets = l2, this._featureFlags = u2;
|
|
5793
5793
|
}
|
|
5794
5794
|
static create(e = "Heavy") {
|
|
5795
|
-
return new
|
|
5795
|
+
return new w2(
|
|
5796
5796
|
e,
|
|
5797
5797
|
void 0,
|
|
5798
5798
|
{},
|
|
5799
5799
|
{},
|
|
5800
|
-
|
|
5801
|
-
|
|
5800
|
+
se(true),
|
|
5801
|
+
se([]),
|
|
5802
5802
|
void 0,
|
|
5803
5803
|
void 0,
|
|
5804
|
-
{ ...
|
|
5804
|
+
{ ...w2.INITIAL_BLOCK_FEATURE_FLAGS }
|
|
5805
5805
|
);
|
|
5806
5806
|
}
|
|
5807
5807
|
output(e, n2, r = {}) {
|
|
5808
5808
|
if (typeof n2 == "function") {
|
|
5809
5809
|
const i = `output#${e}`;
|
|
5810
|
-
return G(i, () => n2(new
|
|
5810
|
+
return G(i, () => n2(new ne())), new w2(
|
|
5811
5811
|
this._renderingMode,
|
|
5812
5812
|
this._initialArgs,
|
|
5813
5813
|
this._initialUiState,
|
|
@@ -5826,7 +5826,7 @@
|
|
|
5826
5826
|
this._featureFlags
|
|
5827
5827
|
);
|
|
5828
5828
|
} else
|
|
5829
|
-
return new
|
|
5829
|
+
return new w2(
|
|
5830
5830
|
this._renderingMode,
|
|
5831
5831
|
this._initialArgs,
|
|
5832
5832
|
this._initialUiState,
|
|
@@ -5846,7 +5846,7 @@
|
|
|
5846
5846
|
return this.output(e, n2, { retentive: true });
|
|
5847
5847
|
}
|
|
5848
5848
|
argsValid(e) {
|
|
5849
|
-
return typeof e == "function" ? (G("inputsValid", () => e(new
|
|
5849
|
+
return typeof e == "function" ? (G("inputsValid", () => e(new ne())), new w2(
|
|
5850
5850
|
this._renderingMode,
|
|
5851
5851
|
this._initialArgs,
|
|
5852
5852
|
this._initialUiState,
|
|
@@ -5859,7 +5859,7 @@
|
|
|
5859
5859
|
this._title,
|
|
5860
5860
|
this._enrichmentTargets,
|
|
5861
5861
|
this._featureFlags
|
|
5862
|
-
)) : new
|
|
5862
|
+
)) : new w2(
|
|
5863
5863
|
this._renderingMode,
|
|
5864
5864
|
this._initialArgs,
|
|
5865
5865
|
this._initialUiState,
|
|
@@ -5872,7 +5872,7 @@
|
|
|
5872
5872
|
);
|
|
5873
5873
|
}
|
|
5874
5874
|
sections(e) {
|
|
5875
|
-
return Array.isArray(e) ? this.sections(
|
|
5875
|
+
return Array.isArray(e) ? this.sections(se(e)) : typeof e == "function" ? (G("sections", () => e(new ne())), new w2(
|
|
5876
5876
|
this._renderingMode,
|
|
5877
5877
|
this._initialArgs,
|
|
5878
5878
|
this._initialUiState,
|
|
@@ -5882,7 +5882,7 @@
|
|
|
5882
5882
|
this._title,
|
|
5883
5883
|
this._enrichmentTargets,
|
|
5884
5884
|
this._featureFlags
|
|
5885
|
-
)) : new
|
|
5885
|
+
)) : new w2(
|
|
5886
5886
|
this._renderingMode,
|
|
5887
5887
|
this._initialArgs,
|
|
5888
5888
|
this._initialUiState,
|
|
@@ -5896,7 +5896,7 @@
|
|
|
5896
5896
|
}
|
|
5897
5897
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5898
5898
|
title(e) {
|
|
5899
|
-
return G("title", () => e(new
|
|
5899
|
+
return G("title", () => e(new ne())), new w2(
|
|
5900
5900
|
this._renderingMode,
|
|
5901
5901
|
this._initialArgs,
|
|
5902
5902
|
this._initialUiState,
|
|
@@ -5913,7 +5913,7 @@
|
|
|
5913
5913
|
* @deprecated use {@link withArgs}
|
|
5914
5914
|
* */
|
|
5915
5915
|
initialArgs(e) {
|
|
5916
|
-
return new
|
|
5916
|
+
return new w2(
|
|
5917
5917
|
this._renderingMode,
|
|
5918
5918
|
e,
|
|
5919
5919
|
this._initialUiState,
|
|
@@ -5927,7 +5927,7 @@
|
|
|
5927
5927
|
}
|
|
5928
5928
|
/** Sets initial args for the block, this value must be specified. */
|
|
5929
5929
|
withArgs(e) {
|
|
5930
|
-
return new
|
|
5930
|
+
return new w2(
|
|
5931
5931
|
this._renderingMode,
|
|
5932
5932
|
e,
|
|
5933
5933
|
this._initialUiState,
|
|
@@ -5941,7 +5941,7 @@
|
|
|
5941
5941
|
}
|
|
5942
5942
|
/** Defines type and sets initial value for block UiState. */
|
|
5943
5943
|
withUiState(e) {
|
|
5944
|
-
return new
|
|
5944
|
+
return new w2(
|
|
5945
5945
|
this._renderingMode,
|
|
5946
5946
|
this._initialArgs,
|
|
5947
5947
|
e,
|
|
@@ -5958,7 +5958,7 @@
|
|
|
5958
5958
|
* Influences dependency graph construction.
|
|
5959
5959
|
*/
|
|
5960
5960
|
enriches(e) {
|
|
5961
|
-
return G("enrichmentTargets", e), new
|
|
5961
|
+
return G("enrichmentTargets", e), new w2(
|
|
5962
5962
|
this._renderingMode,
|
|
5963
5963
|
this._initialArgs,
|
|
5964
5964
|
this._initialUiState,
|
|
@@ -5977,7 +5977,7 @@
|
|
|
5977
5977
|
if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
|
|
5978
5978
|
const e = {
|
|
5979
5979
|
v3: {
|
|
5980
|
-
sdkVersion:
|
|
5980
|
+
sdkVersion: X,
|
|
5981
5981
|
renderingMode: this._renderingMode,
|
|
5982
5982
|
initialArgs: this._initialArgs,
|
|
5983
5983
|
initialUiState: this._initialUiState,
|
|
@@ -5989,25 +5989,25 @@
|
|
|
5989
5989
|
featureFlags: this._featureFlags
|
|
5990
5990
|
},
|
|
5991
5991
|
// fields below are added to allow previous desktop versions read generated configs
|
|
5992
|
-
sdkVersion:
|
|
5992
|
+
sdkVersion: X,
|
|
5993
5993
|
renderingMode: this._renderingMode,
|
|
5994
5994
|
initialArgs: this._initialArgs,
|
|
5995
|
-
inputsValid:
|
|
5996
|
-
sections:
|
|
5995
|
+
inputsValid: me(this._inputsValid),
|
|
5996
|
+
sections: me(this._sections),
|
|
5997
5997
|
outputs: Object.fromEntries(
|
|
5998
|
-
Object.entries(this._outputs).map(([n2, r]) => [n2,
|
|
5998
|
+
Object.entries(this._outputs).map(([n2, r]) => [n2, me(r)])
|
|
5999
5999
|
)
|
|
6000
6000
|
};
|
|
6001
|
-
return
|
|
6001
|
+
return At() ? $e({ sdkVersion: X }) : { config: e };
|
|
6002
6002
|
}
|
|
6003
6003
|
};
|
|
6004
|
-
|
|
6004
|
+
V(w, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
6005
6005
|
supportsLazyState: true,
|
|
6006
6006
|
requiresUIAPIVersion: 1,
|
|
6007
6007
|
requiresModelAPIVersion: 1
|
|
6008
6008
|
});
|
|
6009
|
-
let
|
|
6010
|
-
const platforma =
|
|
6009
|
+
let Oe = w;
|
|
6010
|
+
const platforma = Oe.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
|
|
6011
6011
|
return [{ type: "link", href: "/", label: "Main" }];
|
|
6012
6012
|
}).title((ctx) => "Pool explorer").done();
|
|
6013
6013
|
exports2.platforma = platforma;
|