@milaboratories/milaboratories.ui-examples.model 1.2.8 → 1.2.10
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 +11 -11
- package/CHANGELOG.md +15 -0
- package/dist/bundle.js +574 -533
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +47 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +47 -8
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
- package/src/index.ts +44 -5
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(),
|
|
@@ -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 = {};
|
|
@@ -4109,19 +4109,19 @@
|
|
|
4109
4109
|
return e.map(y);
|
|
4110
4110
|
}
|
|
4111
4111
|
function Te$1(e) {
|
|
4112
|
-
return
|
|
4112
|
+
return Be(y(e));
|
|
4113
4113
|
}
|
|
4114
|
-
function ee(e, n2) {
|
|
4114
|
+
function ee$1(e, n2) {
|
|
4115
4115
|
if (e === void 0) return n2 === void 0;
|
|
4116
4116
|
if (n2 === void 0) return true;
|
|
4117
4117
|
for (const t in n2)
|
|
4118
4118
|
if (e[t] !== n2[t]) return false;
|
|
4119
4119
|
return true;
|
|
4120
4120
|
}
|
|
4121
|
-
function ne(e, n2) {
|
|
4122
|
-
return e.name === n2.name && ee(e.domain, n2.domain);
|
|
4121
|
+
function ne$1(e, n2) {
|
|
4122
|
+
return e.name === n2.name && ee$1(e.domain, n2.domain);
|
|
4123
4123
|
}
|
|
4124
|
-
function ze(e, n2) {
|
|
4124
|
+
function ze$1(e, n2) {
|
|
4125
4125
|
return { ...e, src: g(e.src, n2) };
|
|
4126
4126
|
}
|
|
4127
4127
|
function g(e, n2) {
|
|
@@ -4156,16 +4156,16 @@
|
|
|
4156
4156
|
A(e);
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
|
-
function te
|
|
4160
|
-
return
|
|
4159
|
+
function te(e) {
|
|
4160
|
+
return Be(e);
|
|
4161
4161
|
}
|
|
4162
4162
|
function E(e) {
|
|
4163
|
-
return
|
|
4163
|
+
return Be(y(e));
|
|
4164
4164
|
}
|
|
4165
|
-
function x
|
|
4165
|
+
function x(e, n2) {
|
|
4166
4166
|
return JSON.stringify([e, n2]);
|
|
4167
4167
|
}
|
|
4168
|
-
class Ge {
|
|
4168
|
+
let Ge$1 = class Ge {
|
|
4169
4169
|
/**
|
|
4170
4170
|
* Creates a new anchor context from a set of anchor column specifications
|
|
4171
4171
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
@@ -4187,7 +4187,7 @@
|
|
|
4187
4187
|
const i = Object.entries(o.domain);
|
|
4188
4188
|
i.sort((a, s2) => a[0].localeCompare(s2[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
|
|
4189
4189
|
for (const [a, s2] of i) {
|
|
4190
|
-
const u2 = x
|
|
4190
|
+
const u2 = x(a, s2);
|
|
4191
4191
|
this.domains.set(u2, r);
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
@@ -4222,7 +4222,7 @@
|
|
|
4222
4222
|
for (const [a, s2] of Object.entries(n2.domain ?? {})) {
|
|
4223
4223
|
if (o !== void 0 && o.has(a))
|
|
4224
4224
|
continue;
|
|
4225
|
-
const u2 = x
|
|
4225
|
+
const u2 = x(a, s2), c2 = this.domains.get(u2);
|
|
4226
4226
|
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : s2;
|
|
4227
4227
|
}
|
|
4228
4228
|
if (r.axes = n2.axesSpec.map((a) => {
|
|
@@ -4256,10 +4256,10 @@
|
|
|
4256
4256
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
4257
4257
|
*/
|
|
4258
4258
|
deriveS(n2, t) {
|
|
4259
|
-
return te
|
|
4259
|
+
return te(this.derive(n2, t));
|
|
4260
4260
|
}
|
|
4261
|
-
}
|
|
4262
|
-
function Xe(e, n2, t) {
|
|
4261
|
+
};
|
|
4262
|
+
function Xe$1(e, n2, t) {
|
|
4263
4263
|
const r = { ...n2 }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4264
4264
|
if (r.domainAnchor !== void 0) {
|
|
4265
4265
|
const i = e[r.domainAnchor];
|
|
@@ -4289,7 +4289,7 @@
|
|
|
4289
4289
|
return r.axes && (r.axes = r.axes.map((i) => re(e, i))), r;
|
|
4290
4290
|
}
|
|
4291
4291
|
function re(e, n2) {
|
|
4292
|
-
if (!oe
|
|
4292
|
+
if (!oe(n2))
|
|
4293
4293
|
return n2;
|
|
4294
4294
|
const t = n2.anchor, r = e[t];
|
|
4295
4295
|
if (!r)
|
|
@@ -4306,7 +4306,7 @@
|
|
|
4306
4306
|
throw new Error(`Axis with name "${n2.name}" not found in anchor "${t}"`);
|
|
4307
4307
|
return o[0];
|
|
4308
4308
|
} else if ("id" in n2) {
|
|
4309
|
-
const o = r.axesSpec.filter((i) => ne(n2.id, y(i)));
|
|
4309
|
+
const o = r.axesSpec.filter((i) => ne$1(n2.id, y(i)));
|
|
4310
4310
|
if (o.length > 1)
|
|
4311
4311
|
throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
|
|
4312
4312
|
if (o.length === 0)
|
|
@@ -4315,20 +4315,20 @@
|
|
|
4315
4315
|
}
|
|
4316
4316
|
throw new Error("Unsupported axis reference type");
|
|
4317
4317
|
}
|
|
4318
|
-
function oe
|
|
4318
|
+
function oe(e) {
|
|
4319
4319
|
return typeof e == "object" && "anchor" in e;
|
|
4320
4320
|
}
|
|
4321
4321
|
function l$1(e) {
|
|
4322
4322
|
return e.kind === "PColumn";
|
|
4323
4323
|
}
|
|
4324
|
-
function ie
|
|
4324
|
+
function ie(e) {
|
|
4325
4325
|
return l$1(e.spec);
|
|
4326
4326
|
}
|
|
4327
4327
|
function en(e) {
|
|
4328
|
-
if (!ie
|
|
4328
|
+
if (!ie(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
4329
4329
|
return e;
|
|
4330
4330
|
}
|
|
4331
|
-
function nn(e, n2) {
|
|
4331
|
+
function nn$1(e, n2) {
|
|
4332
4332
|
return e === void 0 ? void 0 : {
|
|
4333
4333
|
...e,
|
|
4334
4334
|
data: n2(e.data)
|
|
@@ -4377,7 +4377,7 @@
|
|
|
4377
4377
|
}
|
|
4378
4378
|
return true;
|
|
4379
4379
|
}
|
|
4380
|
-
function v
|
|
4380
|
+
function v(e, n2) {
|
|
4381
4381
|
if (n2.name !== void 0 && e.name !== n2.name || n2.namePattern !== void 0 && !new RegExp(n2.namePattern).test(e.name))
|
|
4382
4382
|
return false;
|
|
4383
4383
|
if (n2.type !== void 0) {
|
|
@@ -4424,14 +4424,14 @@
|
|
|
4424
4424
|
return true;
|
|
4425
4425
|
}
|
|
4426
4426
|
function rn(e) {
|
|
4427
|
-
return Array.isArray(e) ? (n2) => e.some((t) => l$1(n2) && v
|
|
4427
|
+
return Array.isArray(e) ? (n2) => e.some((t) => l$1(n2) && v(n2, t)) : (n2) => l$1(n2) && v(n2, e);
|
|
4428
4428
|
}
|
|
4429
4429
|
function on(e) {
|
|
4430
4430
|
const n2 = {
|
|
4431
4431
|
kind: e.kind,
|
|
4432
4432
|
name: e.name
|
|
4433
4433
|
};
|
|
4434
|
-
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = C(e.axesSpec)),
|
|
4434
|
+
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = C(e.axesSpec)), Be(n2);
|
|
4435
4435
|
}
|
|
4436
4436
|
z$1.object({
|
|
4437
4437
|
__isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4458,10 +4458,10 @@
|
|
|
4458
4458
|
function ln(e, n2) {
|
|
4459
4459
|
return e.ok ? { ok: true, value: n2(e.value) } : e;
|
|
4460
4460
|
}
|
|
4461
|
-
const de
|
|
4462
|
-
z$1.string().length(de
|
|
4461
|
+
const de = 24;
|
|
4462
|
+
z$1.string().length(de).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4463
4463
|
function hn(e) {
|
|
4464
|
-
return
|
|
4464
|
+
return Be(e);
|
|
4465
4465
|
}
|
|
4466
4466
|
var stringify = { exports: {} };
|
|
4467
4467
|
var hasRequiredStringify;
|
|
@@ -4522,54 +4522,54 @@
|
|
|
4522
4522
|
cause: z$1.lazy(() => n).optional(),
|
|
4523
4523
|
errors: z$1.lazy(() => n.array()).optional()
|
|
4524
4524
|
});
|
|
4525
|
-
var
|
|
4526
|
-
var
|
|
4527
|
-
var
|
|
4528
|
-
function
|
|
4525
|
+
var it = Object.defineProperty;
|
|
4526
|
+
var ot = (t, e, n2) => e in t ? it(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4527
|
+
var V = (t, e, n2) => ot(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4528
|
+
function se(t) {
|
|
4529
4529
|
return { type: "Immediate", value: t };
|
|
4530
4530
|
}
|
|
4531
|
-
function
|
|
4531
|
+
function At() {
|
|
4532
4532
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4534
|
+
function $e(t) {
|
|
4535
4535
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4536
4536
|
return globalThis.getPlatforma(t);
|
|
4537
4537
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4538
4538
|
throw new Error("Can't get platforma instance.");
|
|
4539
4539
|
}
|
|
4540
|
-
function
|
|
4540
|
+
function wt() {
|
|
4541
4541
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4542
4542
|
}
|
|
4543
|
-
function
|
|
4543
|
+
function b() {
|
|
4544
4544
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4545
4545
|
throw new Error("Not in config rendering context");
|
|
4546
4546
|
}
|
|
4547
4547
|
function G(t, e) {
|
|
4548
|
-
const n2 =
|
|
4548
|
+
const n2 = wt();
|
|
4549
4549
|
if (n2 === void 0) return false;
|
|
4550
4550
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4551
4551
|
return n2.callbackRegistry[t] = e, true;
|
|
4552
4552
|
}
|
|
4553
|
-
const
|
|
4554
|
-
function
|
|
4555
|
-
t in
|
|
4556
|
-
for (const r of
|
|
4553
|
+
const fe = /* @__PURE__ */ new Map();
|
|
4554
|
+
function xt(t, e) {
|
|
4555
|
+
t in b().callbackRegistry || (b().callbackRegistry[t] = (n2) => {
|
|
4556
|
+
for (const r of fe.get(t))
|
|
4557
4557
|
r(n2);
|
|
4558
|
-
},
|
|
4558
|
+
}, fe.set(t, [])), fe.get(t).push(e);
|
|
4559
4559
|
}
|
|
4560
|
-
class
|
|
4560
|
+
class L {
|
|
4561
4561
|
constructor(e, n2 = (r) => r) {
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
this.handle = e, this.postProcess = n2,
|
|
4562
|
+
V(this, "isResolved", false);
|
|
4563
|
+
V(this, "resolvedValue");
|
|
4564
|
+
this.handle = e, this.postProcess = n2, xt(e, (r) => {
|
|
4565
4565
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4566
4566
|
});
|
|
4567
4567
|
}
|
|
4568
4568
|
map(e) {
|
|
4569
|
-
return new
|
|
4569
|
+
return new L(this.handle, (n2) => e(this.postProcess(n2)));
|
|
4570
4570
|
}
|
|
4571
4571
|
mapDefined(e) {
|
|
4572
|
-
return new
|
|
4572
|
+
return new L(this.handle, (n2) => {
|
|
4573
4573
|
const r = this.postProcess(n2);
|
|
4574
4574
|
return r ? e(r) : void 0;
|
|
4575
4575
|
});
|
|
@@ -4581,7 +4581,7 @@
|
|
|
4581
4581
|
function ge(t, e) {
|
|
4582
4582
|
return t === void 0 ? void 0 : e(t);
|
|
4583
4583
|
}
|
|
4584
|
-
class
|
|
4584
|
+
class O {
|
|
4585
4585
|
constructor(e, n2) {
|
|
4586
4586
|
this.handle = e, this.resolvePath = n2;
|
|
4587
4587
|
}
|
|
@@ -4621,46 +4621,46 @@
|
|
|
4621
4621
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4622
4622
|
];
|
|
4623
4623
|
return ge(
|
|
4624
|
-
|
|
4625
|
-
(i) => new
|
|
4624
|
+
b().resolveWithCommon(this.handle, e, ...n2),
|
|
4625
|
+
(i) => new O(i, r)
|
|
4626
4626
|
);
|
|
4627
4627
|
}
|
|
4628
4628
|
get resourceType() {
|
|
4629
|
-
return
|
|
4629
|
+
return b().getResourceType(this.handle);
|
|
4630
4630
|
}
|
|
4631
4631
|
getInputsLocked() {
|
|
4632
|
-
return
|
|
4632
|
+
return b().getInputsLocked(this.handle);
|
|
4633
4633
|
}
|
|
4634
4634
|
getOutputsLocked() {
|
|
4635
|
-
return
|
|
4635
|
+
return b().getOutputsLocked(this.handle);
|
|
4636
4636
|
}
|
|
4637
4637
|
getIsReadyOrError() {
|
|
4638
|
-
return
|
|
4638
|
+
return b().getIsReadyOrError(this.handle);
|
|
4639
4639
|
}
|
|
4640
4640
|
getIsFinal() {
|
|
4641
|
-
return
|
|
4641
|
+
return b().getIsFinal(this.handle);
|
|
4642
4642
|
}
|
|
4643
4643
|
getError() {
|
|
4644
4644
|
const e = [...this.resolvePath, "error"];
|
|
4645
4645
|
return ge(
|
|
4646
|
-
|
|
4647
|
-
(n2) => new
|
|
4646
|
+
b().getError(this.handle),
|
|
4647
|
+
(n2) => new O(n2, e)
|
|
4648
4648
|
);
|
|
4649
4649
|
}
|
|
4650
4650
|
listInputFields() {
|
|
4651
|
-
return
|
|
4651
|
+
return b().listInputFields(this.handle);
|
|
4652
4652
|
}
|
|
4653
4653
|
listOutputFields() {
|
|
4654
|
-
return
|
|
4654
|
+
return b().listOutputFields(this.handle);
|
|
4655
4655
|
}
|
|
4656
4656
|
listDynamicFields() {
|
|
4657
|
-
return
|
|
4657
|
+
return b().listDynamicFields(this.handle);
|
|
4658
4658
|
}
|
|
4659
4659
|
getKeyValueBase64(e) {
|
|
4660
|
-
return
|
|
4660
|
+
return b().getKeyValueBase64(this.handle, e);
|
|
4661
4661
|
}
|
|
4662
4662
|
getKeyValueAsString(e) {
|
|
4663
|
-
return
|
|
4663
|
+
return b().getKeyValueAsString(this.handle, e);
|
|
4664
4664
|
}
|
|
4665
4665
|
getKeyValueAsJson(e) {
|
|
4666
4666
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4668,10 +4668,10 @@
|
|
|
4668
4668
|
return JSON.parse(n2);
|
|
4669
4669
|
}
|
|
4670
4670
|
getDataBase64() {
|
|
4671
|
-
return
|
|
4671
|
+
return b().getDataBase64(this.handle);
|
|
4672
4672
|
}
|
|
4673
4673
|
getDataAsString() {
|
|
4674
|
-
return
|
|
4674
|
+
return b().getDataAsString(this.handle);
|
|
4675
4675
|
}
|
|
4676
4676
|
getDataAsJson() {
|
|
4677
4677
|
const e = this.getDataAsString();
|
|
@@ -4683,16 +4683,16 @@
|
|
|
4683
4683
|
*/
|
|
4684
4684
|
getPColumns(e = false, n2 = "") {
|
|
4685
4685
|
const r = this.parsePObjectCollection(e, n2);
|
|
4686
|
-
return r === void 0 ? void 0 : Object.entries(r).map(([,
|
|
4687
|
-
if (!ie
|
|
4688
|
-
return
|
|
4686
|
+
return r === void 0 ? void 0 : Object.entries(r).map(([, o]) => {
|
|
4687
|
+
if (!ie(o)) throw new Error(`not a PColumn (kind = ${o.spec.kind})`);
|
|
4688
|
+
return o;
|
|
4689
4689
|
});
|
|
4690
4690
|
}
|
|
4691
4691
|
/**
|
|
4692
4692
|
*
|
|
4693
4693
|
*/
|
|
4694
4694
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4695
|
-
const r =
|
|
4695
|
+
const r = b().parsePObjectCollection(
|
|
4696
4696
|
this.handle,
|
|
4697
4697
|
e,
|
|
4698
4698
|
n2,
|
|
@@ -4700,21 +4700,21 @@
|
|
|
4700
4700
|
);
|
|
4701
4701
|
if (r === void 0) return;
|
|
4702
4702
|
const i = {};
|
|
4703
|
-
for (const [
|
|
4704
|
-
const a = [...this.resolvePath,
|
|
4705
|
-
i[
|
|
4703
|
+
for (const [o, s2] of Object.entries(r)) {
|
|
4704
|
+
const a = [...this.resolvePath, o];
|
|
4705
|
+
i[o] = nn$1(s2, (l2) => new O(l2, a));
|
|
4706
4706
|
}
|
|
4707
4707
|
return i;
|
|
4708
4708
|
}
|
|
4709
4709
|
getFileContentAsBase64(e) {
|
|
4710
|
-
return new
|
|
4710
|
+
return new L(b().getBlobContentAsBase64(this.handle, e));
|
|
4711
4711
|
}
|
|
4712
4712
|
getFileContentAsString(e) {
|
|
4713
|
-
return new
|
|
4713
|
+
return new L(b().getBlobContentAsString(this.handle, e));
|
|
4714
4714
|
}
|
|
4715
4715
|
getFileContentAsJson(e) {
|
|
4716
|
-
return new
|
|
4717
|
-
|
|
4716
|
+
return new L(
|
|
4717
|
+
b().getBlobContentAsString(this.handle, e)
|
|
4718
4718
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4719
4719
|
}
|
|
4720
4720
|
/**
|
|
@@ -4733,7 +4733,7 @@
|
|
|
4733
4733
|
* @returns downloaded file handle
|
|
4734
4734
|
*/
|
|
4735
4735
|
getFileHandle() {
|
|
4736
|
-
return new
|
|
4736
|
+
return new L(b().getDownloadedBlobContentHandle(this.handle));
|
|
4737
4737
|
}
|
|
4738
4738
|
/**
|
|
4739
4739
|
* @deprecated use getFileHandle
|
|
@@ -4745,7 +4745,7 @@
|
|
|
4745
4745
|
* @returns downloaded file handle
|
|
4746
4746
|
*/
|
|
4747
4747
|
getRemoteFileHandle() {
|
|
4748
|
-
return new
|
|
4748
|
+
return new L(b().getOnDemandBlobContentHandle(this.handle));
|
|
4749
4749
|
}
|
|
4750
4750
|
/**
|
|
4751
4751
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4757,22 +4757,22 @@
|
|
|
4757
4757
|
* @returns the url to the extracted folder
|
|
4758
4758
|
*/
|
|
4759
4759
|
extractArchiveAndGetURL(e) {
|
|
4760
|
-
return new
|
|
4760
|
+
return new L(b().extractArchiveAndGetURL(this.handle, e));
|
|
4761
4761
|
}
|
|
4762
4762
|
getImportProgress() {
|
|
4763
|
-
return new
|
|
4763
|
+
return new L(b().getImportProgress(this.handle));
|
|
4764
4764
|
}
|
|
4765
4765
|
getLastLogs(e) {
|
|
4766
|
-
return new
|
|
4766
|
+
return new L(b().getLastLogs(this.handle, e));
|
|
4767
4767
|
}
|
|
4768
4768
|
getProgressLog(e) {
|
|
4769
|
-
return new
|
|
4769
|
+
return new L(b().getProgressLog(this.handle, e));
|
|
4770
4770
|
}
|
|
4771
4771
|
getProgressLogWithInfo(e) {
|
|
4772
|
-
return new
|
|
4772
|
+
return new L(b().getProgressLogWithInfo(this.handle, e));
|
|
4773
4773
|
}
|
|
4774
4774
|
getLogHandle() {
|
|
4775
|
-
return new
|
|
4775
|
+
return new L(b().getLogHandle(this.handle));
|
|
4776
4776
|
}
|
|
4777
4777
|
allFieldsResolved(e = "Input") {
|
|
4778
4778
|
switch (e) {
|
|
@@ -4787,79 +4787,79 @@
|
|
|
4787
4787
|
}
|
|
4788
4788
|
}
|
|
4789
4789
|
mapFields(e, n2) {
|
|
4790
|
-
const { fieldType: r, requireLocked: i, skipUnresolved:
|
|
4790
|
+
const { fieldType: r, requireLocked: i, skipUnresolved: o } = {
|
|
4791
4791
|
fieldType: "Input",
|
|
4792
4792
|
requireLocked: true,
|
|
4793
4793
|
skipUnresolved: false,
|
|
4794
4794
|
...n2
|
|
4795
|
-
},
|
|
4795
|
+
}, s2 = e;
|
|
4796
4796
|
if (i && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
|
|
4797
4797
|
return;
|
|
4798
4798
|
let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4799
4799
|
(u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
|
|
4800
4800
|
);
|
|
4801
|
-
return
|
|
4801
|
+
return o && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, h]) => s2(u2, h));
|
|
4802
4802
|
}
|
|
4803
4803
|
}
|
|
4804
|
-
const
|
|
4805
|
-
const
|
|
4804
|
+
const We = "staging", Ge = "main";
|
|
4805
|
+
const _t = "pl7.app/label", Lt = "pl7.app/trace", Et = z$1.object({
|
|
4806
4806
|
type: z$1.string(),
|
|
4807
4807
|
importance: z$1.number().optional(),
|
|
4808
4808
|
id: z$1.string().optional(),
|
|
4809
4809
|
label: z$1.string()
|
|
4810
|
-
}),
|
|
4811
|
-
function
|
|
4812
|
-
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0,
|
|
4813
|
-
var c2,
|
|
4814
|
-
const
|
|
4815
|
-
let p2,
|
|
4816
|
-
"spec" in
|
|
4817
|
-
const E2 = (c2 = p2.annotations) == null ? void 0 : c2[
|
|
4818
|
-
...
|
|
4819
|
-
...
|
|
4810
|
+
}), Vt = z$1.array(Et), kt = 1e-3, Ot = "__LABEL__", Ee = "__LABEL__@1";
|
|
4811
|
+
function ze(t, e, n2 = {}) {
|
|
4812
|
+
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) => {
|
|
4813
|
+
var c2, v2;
|
|
4814
|
+
const g2 = e(d2);
|
|
4815
|
+
let p2, y2, C2;
|
|
4816
|
+
"spec" in g2 && typeof g2.spec == "object" ? (p2 = g2.spec, y2 = g2.prefixTrace, C2 = g2.suffixTrace) : p2 = g2;
|
|
4817
|
+
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 = [
|
|
4818
|
+
...y2 ?? [],
|
|
4819
|
+
...S2,
|
|
4820
4820
|
...C2 ?? []
|
|
4821
4821
|
];
|
|
4822
4822
|
if (E2 !== void 0) {
|
|
4823
|
-
const
|
|
4824
|
-
n2.addLabelAsSuffix ?
|
|
4825
|
-
}
|
|
4826
|
-
const
|
|
4827
|
-
for (let
|
|
4828
|
-
const { type:
|
|
4829
|
-
|
|
4830
|
-
const
|
|
4831
|
-
|
|
4832
|
-
|
|
4823
|
+
const I = { label: E2, type: Ot, importance: -2 };
|
|
4824
|
+
n2.addLabelAsSuffix ? P.push(I) : P.splice(0, 0, I);
|
|
4825
|
+
}
|
|
4826
|
+
const T = [], F = /* @__PURE__ */ new Map();
|
|
4827
|
+
for (let I = P.length - 1; I >= 0; --I) {
|
|
4828
|
+
const { type: $ } = P[I], K = P[I].importance ?? 0, j = (F.get($) ?? 0) + 1;
|
|
4829
|
+
F.set($, j);
|
|
4830
|
+
const N = `${$}@${j}`;
|
|
4831
|
+
o.set(N, (o.get(N) ?? 0) + 1), r.set(
|
|
4832
|
+
N,
|
|
4833
4833
|
Math.max(
|
|
4834
|
-
r.get(
|
|
4835
|
-
|
|
4834
|
+
r.get(N) ?? Number.NEGATIVE_INFINITY,
|
|
4835
|
+
K - (P.length - I) * kt
|
|
4836
4836
|
)
|
|
4837
|
-
),
|
|
4837
|
+
), T.push({ ...P[I], fullType: N, occurrenceIndex: j });
|
|
4838
4838
|
}
|
|
4839
|
-
return
|
|
4839
|
+
return T.reverse(), {
|
|
4840
4840
|
value: d2,
|
|
4841
4841
|
spec: p2,
|
|
4842
4842
|
label: E2,
|
|
4843
|
-
fullTrace:
|
|
4843
|
+
fullTrace: T
|
|
4844
4844
|
};
|
|
4845
4845
|
}), a = [], l2 = [], u2 = [...r];
|
|
4846
|
-
u2.sort(([, d2], [,
|
|
4846
|
+
u2.sort(([, d2], [, g2]) => g2 - d2);
|
|
4847
4847
|
for (const [d2] of u2)
|
|
4848
|
-
d2.endsWith("@1") ||
|
|
4849
|
-
const h = (d2,
|
|
4848
|
+
d2.endsWith("@1") || o.get(d2) === t.length ? a.push(d2) : l2.push(d2);
|
|
4849
|
+
const h = (d2, g2 = false) => {
|
|
4850
4850
|
const p2 = [];
|
|
4851
|
-
for (let
|
|
4852
|
-
const C2 =
|
|
4851
|
+
for (let y2 = 0; y2 < s2.length; y2++) {
|
|
4852
|
+
const C2 = s2[y2], E2 = C2.fullTrace.filter((P) => d2.has(P.fullType) || i && i.has(P.type));
|
|
4853
4853
|
if (E2.length === 0)
|
|
4854
|
-
if (
|
|
4854
|
+
if (g2)
|
|
4855
4855
|
p2.push({
|
|
4856
4856
|
label: "Unlabeled",
|
|
4857
4857
|
value: C2.value
|
|
4858
4858
|
});
|
|
4859
4859
|
else return;
|
|
4860
|
-
const
|
|
4860
|
+
const x2 = E2.map((P) => P.label), S2 = n2.separator ?? " / ";
|
|
4861
4861
|
p2.push({
|
|
4862
|
-
label:
|
|
4862
|
+
label: x2.join(S2),
|
|
4863
4863
|
value: C2.value
|
|
4864
4864
|
});
|
|
4865
4865
|
}
|
|
@@ -4867,67 +4867,67 @@
|
|
|
4867
4867
|
};
|
|
4868
4868
|
if (a.length === 0) {
|
|
4869
4869
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4870
|
-
return h(new Set(
|
|
4870
|
+
return h(new Set(Ee), true);
|
|
4871
4871
|
}
|
|
4872
|
-
let f = 0,
|
|
4872
|
+
let f = 0, m2 = -1;
|
|
4873
4873
|
for (; f < a.length; ) {
|
|
4874
4874
|
const d2 = /* @__PURE__ */ new Set();
|
|
4875
|
-
n2.includeNativeLabel && d2.add(
|
|
4875
|
+
n2.includeNativeLabel && d2.add(Ee);
|
|
4876
4876
|
for (let p2 = 0; p2 < f; ++p2) d2.add(a[p2]);
|
|
4877
|
-
|
|
4878
|
-
const
|
|
4879
|
-
if (
|
|
4880
|
-
|
|
4877
|
+
m2 >= 0 && d2.add(a[m2]);
|
|
4878
|
+
const g2 = h(d2);
|
|
4879
|
+
if (g2 !== void 0 && new Set(g2.map((p2) => p2.label)).size === t.length) return g2;
|
|
4880
|
+
m2++, m2 >= a.length && (f++, m2 = f);
|
|
4881
4881
|
}
|
|
4882
4882
|
return h(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4883
4883
|
}
|
|
4884
|
-
const
|
|
4885
|
-
const
|
|
4884
|
+
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";
|
|
4885
|
+
const ve = (t) => {
|
|
4886
4886
|
if (t.endsWith(".index"))
|
|
4887
4887
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
4888
4888
|
if (t.endsWith(".values"))
|
|
4889
4889
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4890
4890
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4891
4891
|
};
|
|
4892
|
-
function
|
|
4892
|
+
function Dt(t) {
|
|
4893
4893
|
if (!t) return;
|
|
4894
4894
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4895
4895
|
let i = 0;
|
|
4896
4896
|
switch (e) {
|
|
4897
|
-
case
|
|
4897
|
+
case le:
|
|
4898
4898
|
i = n2.keyLength;
|
|
4899
4899
|
break;
|
|
4900
|
-
case
|
|
4900
|
+
case ue:
|
|
4901
4901
|
i = n2.partitionKeyLength + n2.keyLength;
|
|
4902
4902
|
break;
|
|
4903
4903
|
case H:
|
|
4904
|
-
case
|
|
4904
|
+
case J:
|
|
4905
4905
|
i = n2.partitionKeyLength;
|
|
4906
4906
|
break;
|
|
4907
|
-
case
|
|
4908
|
-
case
|
|
4907
|
+
case z:
|
|
4908
|
+
case ce:
|
|
4909
4909
|
i = n2.superPartitionKeyLength + n2.partitionKeyLength;
|
|
4910
4910
|
break;
|
|
4911
4911
|
}
|
|
4912
4912
|
switch (e) {
|
|
4913
|
-
case
|
|
4913
|
+
case le:
|
|
4914
4914
|
case H:
|
|
4915
|
-
case
|
|
4916
|
-
for (let
|
|
4917
|
-
e ===
|
|
4918
|
-
const
|
|
4919
|
-
r.push(
|
|
4915
|
+
case J:
|
|
4916
|
+
for (let o of t.listInputFields()) {
|
|
4917
|
+
e === J && (o = ve(o).baseKey);
|
|
4918
|
+
const s2 = [...JSON.parse(o)];
|
|
4919
|
+
r.push(s2);
|
|
4920
4920
|
}
|
|
4921
4921
|
break;
|
|
4922
|
-
case
|
|
4923
|
-
case
|
|
4924
|
-
case
|
|
4925
|
-
for (const
|
|
4926
|
-
const
|
|
4922
|
+
case ue:
|
|
4923
|
+
case z:
|
|
4924
|
+
case ce:
|
|
4925
|
+
for (const o of t.listInputFields()) {
|
|
4926
|
+
const s2 = [...JSON.parse(o)], a = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4927
4927
|
if (a !== void 0)
|
|
4928
4928
|
for (let l2 of a.listInputFields()) {
|
|
4929
|
-
e ===
|
|
4930
|
-
const u2 = [...
|
|
4929
|
+
e === z && (l2 = ve(l2).baseKey);
|
|
4930
|
+
const u2 = [...s2, ...JSON.parse(l2)];
|
|
4931
4931
|
r.push(u2);
|
|
4932
4932
|
}
|
|
4933
4933
|
}
|
|
@@ -4935,60 +4935,60 @@
|
|
|
4935
4935
|
}
|
|
4936
4936
|
return { data: r, keyLength: i };
|
|
4937
4937
|
}
|
|
4938
|
-
function
|
|
4938
|
+
function Rt(t) {
|
|
4939
4939
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4940
4940
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4941
4941
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
4942
4942
|
for (let i = 0; i < n2; ++i)
|
|
4943
4943
|
r.push(/* @__PURE__ */ new Set());
|
|
4944
4944
|
for (const i of e) {
|
|
4945
|
-
const
|
|
4946
|
-
if (
|
|
4945
|
+
const o = i.key;
|
|
4946
|
+
if (o.length !== n2)
|
|
4947
4947
|
throw new Error(
|
|
4948
|
-
`Key length (${
|
|
4949
|
-
|
|
4948
|
+
`Key length (${o.length}) does not match partition length (${n2}) for key: ${JSON.stringify(
|
|
4949
|
+
o
|
|
4950
4950
|
)}`
|
|
4951
4951
|
);
|
|
4952
|
-
for (let
|
|
4953
|
-
r[
|
|
4952
|
+
for (let s2 = 0; s2 < n2; ++s2)
|
|
4953
|
+
r[s2].add(o[s2]);
|
|
4954
4954
|
}
|
|
4955
4955
|
return r.map((i) => Array.from(i.values()));
|
|
4956
4956
|
}
|
|
4957
|
-
function
|
|
4957
|
+
function Nt(t) {
|
|
4958
4958
|
if (t === void 0) return;
|
|
4959
4959
|
if (_(t))
|
|
4960
|
-
return
|
|
4961
|
-
const e =
|
|
4960
|
+
return Rt(t);
|
|
4961
|
+
const e = Dt(t);
|
|
4962
4962
|
if (!e) return;
|
|
4963
4963
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4964
|
-
for (let
|
|
4964
|
+
for (let o = 0; o < r; ++o)
|
|
4965
4965
|
i.push(/* @__PURE__ */ new Set());
|
|
4966
|
-
for (const
|
|
4967
|
-
if (
|
|
4966
|
+
for (const o of n2) {
|
|
4967
|
+
if (o.length !== r)
|
|
4968
4968
|
throw new Error("key length does not match partition length");
|
|
4969
|
-
for (let
|
|
4970
|
-
i[
|
|
4969
|
+
for (let s2 = 0; s2 < r; ++s2)
|
|
4970
|
+
i[s2].add(o[s2]);
|
|
4971
4971
|
}
|
|
4972
|
-
return i.map((
|
|
4972
|
+
return i.map((o) => Array.from(o.values()));
|
|
4973
4973
|
}
|
|
4974
|
-
function
|
|
4974
|
+
function Ce(t, e = []) {
|
|
4975
4975
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
4976
4976
|
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4977
|
-
if (e.length > 0 && (n2 ===
|
|
4977
|
+
if (e.length > 0 && (n2 === ce || n2 === z))
|
|
4978
4978
|
throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
|
|
4979
4979
|
switch (n2) {
|
|
4980
|
-
case
|
|
4981
|
-
case
|
|
4980
|
+
case le:
|
|
4981
|
+
case ue:
|
|
4982
4982
|
throw new Error(`Only data columns are supported, got: ${n2}`);
|
|
4983
4983
|
case H: {
|
|
4984
4984
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4985
4985
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4986
4986
|
const i = [];
|
|
4987
|
-
for (const
|
|
4988
|
-
const
|
|
4989
|
-
if (
|
|
4990
|
-
const a = [...e, ...JSON.parse(
|
|
4991
|
-
i.push({ key: a, value:
|
|
4987
|
+
for (const o of t.listInputFields()) {
|
|
4988
|
+
const s2 = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4989
|
+
if (s2 === void 0) return;
|
|
4990
|
+
const a = [...e, ...JSON.parse(o)];
|
|
4991
|
+
i.push({ key: a, value: s2 });
|
|
4992
4992
|
}
|
|
4993
4993
|
return {
|
|
4994
4994
|
type: "JsonPartitioned",
|
|
@@ -4996,19 +4996,19 @@
|
|
|
4996
4996
|
parts: i
|
|
4997
4997
|
};
|
|
4998
4998
|
}
|
|
4999
|
-
case
|
|
4999
|
+
case J: {
|
|
5000
5000
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
5001
5001
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
5002
|
-
const i = [],
|
|
5003
|
-
for (const
|
|
5004
|
-
const a =
|
|
5002
|
+
const i = [], o = /* @__PURE__ */ new Map();
|
|
5003
|
+
for (const s2 of t.listInputFields()) {
|
|
5004
|
+
const a = ve(s2), l2 = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
5005
5005
|
if (l2 === void 0) return;
|
|
5006
|
-
let u2 =
|
|
5007
|
-
u2 || (u2 = {},
|
|
5006
|
+
let u2 = o.get(a.baseKey);
|
|
5007
|
+
u2 || (u2 = {}, o.set(a.baseKey, u2)), a.type === "index" ? u2.index = l2 : u2.values = l2;
|
|
5008
5008
|
}
|
|
5009
|
-
for (const [
|
|
5009
|
+
for (const [s2, a] of o.entries()) {
|
|
5010
5010
|
if (!a.index || !a.values) return;
|
|
5011
|
-
const l2 = [...e, ...JSON.parse(
|
|
5011
|
+
const l2 = [...e, ...JSON.parse(s2)];
|
|
5012
5012
|
i.push({
|
|
5013
5013
|
key: l2,
|
|
5014
5014
|
value: {
|
|
@@ -5023,127 +5023,127 @@
|
|
|
5023
5023
|
parts: i
|
|
5024
5024
|
};
|
|
5025
5025
|
}
|
|
5026
|
-
case
|
|
5026
|
+
case ce: {
|
|
5027
5027
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
5028
5028
|
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
|
|
5029
|
-
const i = r.superPartitionKeyLength + r.partitionKeyLength,
|
|
5030
|
-
for (const
|
|
5031
|
-
const a = t.resolve({ field:
|
|
5029
|
+
const i = r.superPartitionKeyLength + r.partitionKeyLength, o = [];
|
|
5030
|
+
for (const s2 of t.listInputFields()) {
|
|
5031
|
+
const a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
5032
5032
|
if (a === void 0) return;
|
|
5033
5033
|
if (a.resourceType.name !== H)
|
|
5034
5034
|
throw new Error(`Expected ${H} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5035
|
-
const l2 =
|
|
5035
|
+
const l2 = Ce(a, JSON.parse(s2));
|
|
5036
5036
|
if (l2 === void 0) return;
|
|
5037
5037
|
if (l2.type !== "JsonPartitioned")
|
|
5038
5038
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
5039
|
-
|
|
5039
|
+
o.push(...l2.parts);
|
|
5040
5040
|
}
|
|
5041
5041
|
return {
|
|
5042
5042
|
type: "JsonPartitioned",
|
|
5043
5043
|
partitionKeyLength: i,
|
|
5044
|
-
parts:
|
|
5044
|
+
parts: o
|
|
5045
5045
|
};
|
|
5046
5046
|
}
|
|
5047
|
-
case
|
|
5047
|
+
case z: {
|
|
5048
5048
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
5049
5049
|
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
|
|
5050
|
-
const i = r.superPartitionKeyLength + r.partitionKeyLength,
|
|
5051
|
-
for (const
|
|
5052
|
-
const a = t.resolve({ field:
|
|
5050
|
+
const i = r.superPartitionKeyLength + r.partitionKeyLength, o = [];
|
|
5051
|
+
for (const s2 of t.listInputFields()) {
|
|
5052
|
+
const a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
5053
5053
|
if (a === void 0) return;
|
|
5054
|
-
if (a.resourceType.name !==
|
|
5055
|
-
throw new Error(`Expected ${
|
|
5056
|
-
const l2 =
|
|
5054
|
+
if (a.resourceType.name !== J)
|
|
5055
|
+
throw new Error(`Expected ${J} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5056
|
+
const l2 = Ce(a, JSON.parse(s2));
|
|
5057
5057
|
if (l2 === void 0) return;
|
|
5058
5058
|
if (l2.type !== "BinaryPartitioned")
|
|
5059
5059
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
5060
|
-
|
|
5060
|
+
o.push(...l2.parts);
|
|
5061
5061
|
}
|
|
5062
5062
|
return {
|
|
5063
5063
|
type: "BinaryPartitioned",
|
|
5064
5064
|
partitionKeyLength: i,
|
|
5065
|
-
parts:
|
|
5065
|
+
parts: o
|
|
5066
5066
|
};
|
|
5067
5067
|
}
|
|
5068
5068
|
default:
|
|
5069
5069
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
5072
|
-
function
|
|
5072
|
+
function Ut(t) {
|
|
5073
5073
|
if (t !== void 0) {
|
|
5074
5074
|
if (_(t)) return t;
|
|
5075
|
-
if (Ce$1(t)) return je
|
|
5076
|
-
if (t instanceof
|
|
5075
|
+
if (Ce$1(t)) return je(t);
|
|
5076
|
+
if (t instanceof O) return Ce(t);
|
|
5077
5077
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5078
5078
|
}
|
|
5079
5079
|
}
|
|
5080
|
-
function
|
|
5081
|
-
const n2 = [...e].sort((
|
|
5080
|
+
function Kt(t, e) {
|
|
5081
|
+
const n2 = [...e].sort((o, s2) => s2[0] - o[0]);
|
|
5082
5082
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5083
|
-
const { partitionKeyLength:
|
|
5084
|
-
for (const [
|
|
5085
|
-
if (
|
|
5086
|
-
throw new Error(`Can't filter on non-partitioned axis ${
|
|
5083
|
+
const { partitionKeyLength: o } = t;
|
|
5084
|
+
for (const [s2] of e)
|
|
5085
|
+
if (s2 >= o)
|
|
5086
|
+
throw new Error(`Can't filter on non-partitioned axis ${s2}. Must be >= ${o}`);
|
|
5087
5087
|
} else if (t.type === "Json") {
|
|
5088
|
-
const { keyLength:
|
|
5089
|
-
for (const [
|
|
5090
|
-
if (
|
|
5091
|
-
throw new Error(`Can't filter on non-data axis ${
|
|
5092
|
-
}
|
|
5093
|
-
const r = (
|
|
5094
|
-
for (const [
|
|
5095
|
-
if (s2
|
|
5088
|
+
const { keyLength: o } = t;
|
|
5089
|
+
for (const [s2] of e)
|
|
5090
|
+
if (s2 >= o)
|
|
5091
|
+
throw new Error(`Can't filter on non-data axis ${s2}. Must be >= ${o}`);
|
|
5092
|
+
}
|
|
5093
|
+
const r = (o) => {
|
|
5094
|
+
for (const [s2, a] of n2)
|
|
5095
|
+
if (o[s2] !== a)
|
|
5096
5096
|
return false;
|
|
5097
5097
|
return true;
|
|
5098
|
-
}, i = (
|
|
5099
|
-
const
|
|
5098
|
+
}, i = (o) => {
|
|
5099
|
+
const s2 = [...o];
|
|
5100
5100
|
for (const [a] of n2)
|
|
5101
|
-
|
|
5102
|
-
return
|
|
5101
|
+
s2.splice(a, 1);
|
|
5102
|
+
return s2;
|
|
5103
5103
|
};
|
|
5104
5104
|
switch (t.type) {
|
|
5105
5105
|
case "Json": {
|
|
5106
|
-
const
|
|
5107
|
-
key: i(
|
|
5108
|
-
value:
|
|
5106
|
+
const o = t.data.filter((s2) => r(s2.key)).map((s2) => ({
|
|
5107
|
+
key: i(s2.key),
|
|
5108
|
+
value: s2.value
|
|
5109
5109
|
}));
|
|
5110
5110
|
return {
|
|
5111
5111
|
type: "Json",
|
|
5112
5112
|
keyLength: t.keyLength - e.length,
|
|
5113
|
-
data:
|
|
5113
|
+
data: o
|
|
5114
5114
|
};
|
|
5115
5115
|
}
|
|
5116
5116
|
case "JsonPartitioned": {
|
|
5117
|
-
const
|
|
5118
|
-
key: i(
|
|
5119
|
-
value:
|
|
5117
|
+
const o = t.parts.filter((s2) => r(s2.key)).map((s2) => ({
|
|
5118
|
+
key: i(s2.key),
|
|
5119
|
+
value: s2.value
|
|
5120
5120
|
}));
|
|
5121
5121
|
return {
|
|
5122
5122
|
type: "JsonPartitioned",
|
|
5123
5123
|
partitionKeyLength: t.partitionKeyLength - e.length,
|
|
5124
|
-
parts:
|
|
5124
|
+
parts: o
|
|
5125
5125
|
};
|
|
5126
5126
|
}
|
|
5127
5127
|
case "BinaryPartitioned": {
|
|
5128
|
-
const
|
|
5129
|
-
key: i(
|
|
5130
|
-
value:
|
|
5128
|
+
const o = t.parts.filter((s2) => r(s2.key)).map((s2) => ({
|
|
5129
|
+
key: i(s2.key),
|
|
5130
|
+
value: s2.value
|
|
5131
5131
|
}));
|
|
5132
5132
|
return {
|
|
5133
5133
|
type: "BinaryPartitioned",
|
|
5134
5134
|
partitionKeyLength: t.partitionKeyLength - e.length,
|
|
5135
|
-
parts:
|
|
5135
|
+
parts: o
|
|
5136
5136
|
};
|
|
5137
5137
|
}
|
|
5138
5138
|
}
|
|
5139
5139
|
}
|
|
5140
|
-
function
|
|
5140
|
+
function Mt(t) {
|
|
5141
5141
|
if (!Array.isArray(t)) return false;
|
|
5142
5142
|
if (t.length === 0) return true;
|
|
5143
5143
|
const e = t[0];
|
|
5144
5144
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5145
5145
|
}
|
|
5146
|
-
class
|
|
5146
|
+
class jt {
|
|
5147
5147
|
constructor(e) {
|
|
5148
5148
|
this.columns = e;
|
|
5149
5149
|
}
|
|
@@ -5152,7 +5152,7 @@
|
|
|
5152
5152
|
return this.columns.filter((r) => n2(r.spec));
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
|
-
function
|
|
5155
|
+
function qt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => ({
|
|
5158
5158
|
type: `split:${Te$1(e.axisId)}`,
|
|
@@ -5161,21 +5161,21 @@
|
|
|
5161
5161
|
// High importance for split filters in labels
|
|
5162
5162
|
}));
|
|
5163
5163
|
}
|
|
5164
|
-
function
|
|
5164
|
+
function Bt(t) {
|
|
5165
5165
|
if (t)
|
|
5166
5166
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5167
5167
|
}
|
|
5168
|
-
function
|
|
5168
|
+
function Jt(t, e) {
|
|
5169
5169
|
if (!e || e.length === 0) return t;
|
|
5170
5170
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5171
|
-
return
|
|
5171
|
+
return Be({ id: t, axisFilters: n2 });
|
|
5172
5172
|
}
|
|
5173
|
-
function
|
|
5173
|
+
function Ve(t) {
|
|
5174
5174
|
if (!t || typeof t != "object") return false;
|
|
5175
5175
|
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);
|
|
5176
5176
|
return !!e.domainAnchor || n2 || r;
|
|
5177
5177
|
}
|
|
5178
|
-
function
|
|
5178
|
+
function $t(t) {
|
|
5179
5179
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5180
5180
|
return [];
|
|
5181
5181
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5183,11 +5183,11 @@
|
|
|
5183
5183
|
throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
|
|
5184
5184
|
return e.sort((n2, r) => n2 - r), e;
|
|
5185
5185
|
}
|
|
5186
|
-
class
|
|
5186
|
+
class Q {
|
|
5187
5187
|
constructor() {
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5188
|
+
V(this, "defaultProviderStore", []);
|
|
5189
|
+
V(this, "providers", [new jt(this.defaultProviderStore)]);
|
|
5190
|
+
V(this, "axisLabelProviders", []);
|
|
5191
5191
|
}
|
|
5192
5192
|
addColumnProvider(e) {
|
|
5193
5193
|
return this.providers.push(e), this;
|
|
@@ -5209,94 +5209,94 @@
|
|
|
5209
5209
|
}
|
|
5210
5210
|
}
|
|
5211
5211
|
getUniversalEntries(e, n2) {
|
|
5212
|
-
const { anchorCtx: r, labelOps: i, dontWaitAllData:
|
|
5213
|
-
...
|
|
5212
|
+
const { anchorCtx: r, labelOps: i, dontWaitAllData: o = false, overrideLabelAnnotation: s2 = false, exclude: a } = n2 ?? {}, l2 = {
|
|
5213
|
+
...s2 && (i == null ? void 0 : i.includeNativeLabel) !== false ? { includeNativeLabel: true } : {},
|
|
5214
5214
|
...i ?? {}
|
|
5215
5215
|
};
|
|
5216
5216
|
let u2 = () => false;
|
|
5217
5217
|
if (a) {
|
|
5218
|
-
const p2 = (Array.isArray(a) ? a : [a]).map((
|
|
5219
|
-
if (
|
|
5218
|
+
const p2 = (Array.isArray(a) ? a : [a]).map((y2) => {
|
|
5219
|
+
if (Ve(y2)) {
|
|
5220
5220
|
if (!r)
|
|
5221
5221
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5222
|
-
return rn(Xe(r.anchors,
|
|
5222
|
+
return rn(Xe$1(r.anchors, y2, n2));
|
|
5223
5223
|
} else
|
|
5224
|
-
return rn(
|
|
5224
|
+
return rn(y2);
|
|
5225
5225
|
});
|
|
5226
|
-
u2 = (
|
|
5226
|
+
u2 = (y2) => p2.some((C2) => C2(y2));
|
|
5227
5227
|
}
|
|
5228
|
-
const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [],
|
|
5228
|
+
const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], m2 = /* @__PURE__ */ new Set();
|
|
5229
5229
|
for (const p2 of h) {
|
|
5230
|
-
const
|
|
5230
|
+
const y$1 = Ve(p2);
|
|
5231
5231
|
let C2;
|
|
5232
|
-
if (
|
|
5232
|
+
if (y$1) {
|
|
5233
5233
|
if (!r)
|
|
5234
5234
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5235
|
-
C2 = Xe(r.anchors, p2, n2);
|
|
5235
|
+
C2 = Xe$1(r.anchors, p2, n2);
|
|
5236
5236
|
} else
|
|
5237
5237
|
C2 = p2;
|
|
5238
|
-
const E2 = /* @__PURE__ */ new Set(),
|
|
5239
|
-
for (const
|
|
5240
|
-
const
|
|
5241
|
-
for (const c2 of
|
|
5238
|
+
const E2 = /* @__PURE__ */ new Set(), x2 = [];
|
|
5239
|
+
for (const T of this.providers) {
|
|
5240
|
+
const F = T.selectColumns(C2);
|
|
5241
|
+
for (const c2 of F) {
|
|
5242
5242
|
if (u2(c2.spec)) continue;
|
|
5243
5243
|
if (E2.has(c2.id))
|
|
5244
|
-
throw new Error(`Duplicate column id ${c2.id} in provider ${
|
|
5245
|
-
const
|
|
5246
|
-
|
|
5244
|
+
throw new Error(`Duplicate column id ${c2.id} in provider ${T.constructor.name}`);
|
|
5245
|
+
const v2 = on(c2.spec);
|
|
5246
|
+
m2.has(v2) || (E2.add(c2.id), m2.add(v2), x2.push(c2));
|
|
5247
5247
|
}
|
|
5248
5248
|
}
|
|
5249
|
-
if (
|
|
5250
|
-
const
|
|
5251
|
-
for (const
|
|
5252
|
-
if (!l$1(
|
|
5253
|
-
const
|
|
5254
|
-
if (
|
|
5255
|
-
if (
|
|
5256
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
5257
|
-
const c2 =
|
|
5249
|
+
if (x2.length === 0) continue;
|
|
5250
|
+
const S2 = $t(p2), P = S2.length > 0;
|
|
5251
|
+
for (const T of x2) {
|
|
5252
|
+
if (!l$1(T.spec)) continue;
|
|
5253
|
+
const F = T.spec;
|
|
5254
|
+
if (P) {
|
|
5255
|
+
if (Mt(T.data))
|
|
5256
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T.id}`);
|
|
5257
|
+
const c2 = Ut(T.data);
|
|
5258
5258
|
if (!c2) {
|
|
5259
|
-
if (
|
|
5259
|
+
if (o) continue;
|
|
5260
5260
|
return;
|
|
5261
5261
|
}
|
|
5262
|
-
if (!Ve(c2))
|
|
5263
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${
|
|
5264
|
-
const
|
|
5265
|
-
if (
|
|
5266
|
-
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${
|
|
5267
|
-
const
|
|
5268
|
-
if (W >=
|
|
5269
|
-
if (
|
|
5262
|
+
if (!Ve$1(c2))
|
|
5263
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${T.id}`);
|
|
5264
|
+
const v2 = Nt(c2), I = S2[S2.length - 1];
|
|
5265
|
+
if (I >= c2.partitionKeyLength)
|
|
5266
|
+
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I}) in column ${F.name}`);
|
|
5267
|
+
const $ = S2.map((_2) => this.findLabels(y(F.axesSpec[_2]))), K = [], j = (_2, W) => {
|
|
5268
|
+
if (W >= S2.length) {
|
|
5269
|
+
if (K.push([..._2]), K.length > 1e4)
|
|
5270
5270
|
throw new Error("Too many key combinations, aborting.");
|
|
5271
5271
|
return;
|
|
5272
5272
|
}
|
|
5273
|
-
const M =
|
|
5274
|
-
if (M >=
|
|
5275
|
-
throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${
|
|
5276
|
-
const
|
|
5277
|
-
if (!
|
|
5278
|
-
|
|
5273
|
+
const M = S2[W];
|
|
5274
|
+
if (M >= v2.length)
|
|
5275
|
+
throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${v2.length}) during split key generation for column ${T.id}`);
|
|
5276
|
+
const q = v2[M];
|
|
5277
|
+
if (!q || q.length === 0) {
|
|
5278
|
+
K.length = 0;
|
|
5279
5279
|
return;
|
|
5280
5280
|
}
|
|
5281
|
-
for (const
|
|
5282
|
-
|
|
5281
|
+
for (const te2 of q)
|
|
5282
|
+
_2.push(te2), j(_2, W + 1), _2.pop();
|
|
5283
5283
|
};
|
|
5284
|
-
if (j([], 0),
|
|
5284
|
+
if (j([], 0), K.length === 0)
|
|
5285
5285
|
continue;
|
|
5286
|
-
const
|
|
5287
|
-
for (let
|
|
5288
|
-
|
|
5289
|
-
const
|
|
5290
|
-
for (const
|
|
5291
|
-
const W =
|
|
5292
|
-
const
|
|
5293
|
-
return { axisIdx:
|
|
5286
|
+
const N = [...F.axesSpec], et = S2.map((_2) => _2);
|
|
5287
|
+
for (let _2 = S2.length - 1; _2 >= 0; _2--)
|
|
5288
|
+
N.splice(S2[_2], 1);
|
|
5289
|
+
const tt = { ...F, axesSpec: N };
|
|
5290
|
+
for (const _2 of K) {
|
|
5291
|
+
const W = _2.map((M, q) => {
|
|
5292
|
+
const te2 = et[q], nt = y(F.axesSpec[te2]), de2 = $[q], rt = (de2 == null ? void 0 : de2[M]) ?? String(M);
|
|
5293
|
+
return { axisIdx: te2, axisId: nt, value: M, label: rt };
|
|
5294
5294
|
});
|
|
5295
5295
|
f.push({
|
|
5296
5296
|
type: "split",
|
|
5297
|
-
originalColumn:
|
|
5298
|
-
spec:
|
|
5299
|
-
adjustedSpec:
|
|
5297
|
+
originalColumn: T,
|
|
5298
|
+
spec: F,
|
|
5299
|
+
adjustedSpec: tt,
|
|
5300
5300
|
dataEntries: c2,
|
|
5301
5301
|
axisFilters: W
|
|
5302
5302
|
});
|
|
@@ -5304,40 +5304,40 @@
|
|
|
5304
5304
|
} else
|
|
5305
5305
|
f.push({
|
|
5306
5306
|
type: "direct",
|
|
5307
|
-
originalColumn:
|
|
5308
|
-
spec:
|
|
5309
|
-
adjustedSpec:
|
|
5307
|
+
originalColumn: T,
|
|
5308
|
+
spec: F,
|
|
5309
|
+
adjustedSpec: F
|
|
5310
5310
|
});
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
5313
5313
|
if (f.length === 0) return [];
|
|
5314
|
-
const d2 =
|
|
5314
|
+
const d2 = ze(
|
|
5315
5315
|
f,
|
|
5316
5316
|
(p2) => ({
|
|
5317
5317
|
spec: p2.spec,
|
|
5318
|
-
suffixTrace: p2.type === "split" ?
|
|
5318
|
+
suffixTrace: p2.type === "split" ? qt(p2.axisFilters) : void 0
|
|
5319
5319
|
}),
|
|
5320
5320
|
l2
|
|
5321
|
-
),
|
|
5322
|
-
for (const { value: p2, label:
|
|
5323
|
-
const { originalColumn: C2, spec: E2 } = p2,
|
|
5324
|
-
let
|
|
5325
|
-
r ?
|
|
5326
|
-
let
|
|
5327
|
-
|
|
5328
|
-
...
|
|
5321
|
+
), g2 = [];
|
|
5322
|
+
for (const { value: p2, label: y2 } of d2) {
|
|
5323
|
+
const { originalColumn: C2, spec: E2 } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, S2 = Bt(x2);
|
|
5324
|
+
let P;
|
|
5325
|
+
r ? P = r.deriveS(E2, S2) : P = Jt(C2.id, S2);
|
|
5326
|
+
let T = { ...p2.adjustedSpec };
|
|
5327
|
+
s2 && (T = {
|
|
5328
|
+
...T,
|
|
5329
5329
|
annotations: {
|
|
5330
|
-
...
|
|
5331
|
-
"pl7.app/label":
|
|
5330
|
+
...T.annotations ?? {},
|
|
5331
|
+
"pl7.app/label": y2
|
|
5332
5332
|
}
|
|
5333
|
-
}),
|
|
5334
|
-
id:
|
|
5335
|
-
spec:
|
|
5336
|
-
data: () => p2.type === "split" ? Ie
|
|
5337
|
-
label:
|
|
5333
|
+
}), g2.push({
|
|
5334
|
+
id: P,
|
|
5335
|
+
spec: T,
|
|
5336
|
+
data: () => p2.type === "split" ? Ie(Kt(p2.dataEntries, S2)) : p2.originalColumn.data,
|
|
5337
|
+
label: y2
|
|
5338
5338
|
});
|
|
5339
5339
|
}
|
|
5340
|
-
return
|
|
5340
|
+
return g2;
|
|
5341
5341
|
}
|
|
5342
5342
|
getColumns(e, n2) {
|
|
5343
5343
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5347,67 +5347,67 @@
|
|
|
5347
5347
|
});
|
|
5348
5348
|
if (!r) return;
|
|
5349
5349
|
const i = [];
|
|
5350
|
-
for (const
|
|
5351
|
-
const
|
|
5352
|
-
if (!
|
|
5350
|
+
for (const o of r) {
|
|
5351
|
+
const s2 = o.data();
|
|
5352
|
+
if (!s2) {
|
|
5353
5353
|
if (n2 != null && n2.dontWaitAllData) continue;
|
|
5354
5354
|
return;
|
|
5355
5355
|
}
|
|
5356
5356
|
i.push({
|
|
5357
|
-
id:
|
|
5358
|
-
spec:
|
|
5359
|
-
data:
|
|
5357
|
+
id: o.id,
|
|
5358
|
+
spec: o.spec,
|
|
5359
|
+
data: s2
|
|
5360
5360
|
});
|
|
5361
5361
|
}
|
|
5362
5362
|
return i;
|
|
5363
5363
|
}
|
|
5364
5364
|
}
|
|
5365
|
-
function
|
|
5365
|
+
function Te(t) {
|
|
5366
5366
|
const e = (i) => i.operator !== "InSet" ? i : {
|
|
5367
5367
|
operator: "Or",
|
|
5368
|
-
operands: i.references.map((
|
|
5368
|
+
operands: i.references.map((o) => ({
|
|
5369
5369
|
operator: "Equal",
|
|
5370
|
-
reference:
|
|
5370
|
+
reference: o
|
|
5371
5371
|
}))
|
|
5372
|
-
}, n2 = (i,
|
|
5372
|
+
}, n2 = (i, o) => {
|
|
5373
5373
|
switch (i.operator) {
|
|
5374
5374
|
case "And":
|
|
5375
5375
|
return {
|
|
5376
5376
|
...i,
|
|
5377
|
-
operands: i.operands.map((a) => n2(a,
|
|
5377
|
+
operands: i.operands.map((a) => n2(a, o))
|
|
5378
5378
|
};
|
|
5379
5379
|
case "Or":
|
|
5380
5380
|
return {
|
|
5381
5381
|
...i,
|
|
5382
|
-
operands: i.operands.map((a) => n2(a,
|
|
5382
|
+
operands: i.operands.map((a) => n2(a, o))
|
|
5383
5383
|
};
|
|
5384
5384
|
case "Not":
|
|
5385
5385
|
return {
|
|
5386
5386
|
...i,
|
|
5387
|
-
operand: n2(i.operand,
|
|
5387
|
+
operand: n2(i.operand, o)
|
|
5388
5388
|
};
|
|
5389
5389
|
default:
|
|
5390
|
-
return
|
|
5390
|
+
return o(i);
|
|
5391
5391
|
}
|
|
5392
|
-
}, r = (i,
|
|
5392
|
+
}, r = (i, o) => ({
|
|
5393
5393
|
...i,
|
|
5394
|
-
predicate: n2(i.predicate,
|
|
5394
|
+
predicate: n2(i.predicate, o)
|
|
5395
5395
|
});
|
|
5396
5396
|
return t.map((i) => r(i, e));
|
|
5397
5397
|
}
|
|
5398
|
-
function
|
|
5398
|
+
function he(t, e) {
|
|
5399
5399
|
if (t === void 0) return e === void 0;
|
|
5400
5400
|
if (e === void 0) return true;
|
|
5401
5401
|
for (const n2 in e)
|
|
5402
5402
|
if (t[n2] !== e[n2]) return false;
|
|
5403
5403
|
return true;
|
|
5404
5404
|
}
|
|
5405
|
-
function
|
|
5406
|
-
return nn(t, (e) => e instanceof
|
|
5405
|
+
function ke(t) {
|
|
5406
|
+
return nn$1(t, (e) => e instanceof O ? e.handle : Ce$1(e) ? Fe(e, (n2) => n2.handle) : e);
|
|
5407
5407
|
}
|
|
5408
|
-
class
|
|
5408
|
+
class Wt {
|
|
5409
5409
|
constructor() {
|
|
5410
|
-
|
|
5410
|
+
V(this, "ctx", b());
|
|
5411
5411
|
}
|
|
5412
5412
|
/**
|
|
5413
5413
|
* @deprecated use getOptions()
|
|
@@ -5417,27 +5417,27 @@
|
|
|
5417
5417
|
}
|
|
5418
5418
|
getOptions(e, n2) {
|
|
5419
5419
|
const r = typeof e == "function" ? e : rn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5420
|
-
let
|
|
5421
|
-
return typeof n2 < "u" && (typeof n2 == "function" ?
|
|
5422
|
-
ref: fn(a,
|
|
5420
|
+
let o = {}, s2 = false;
|
|
5421
|
+
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 }) => ({
|
|
5422
|
+
ref: fn(a, s2),
|
|
5423
5423
|
label: l2
|
|
5424
5424
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5425
|
-
ref: fn(a,
|
|
5426
|
-
label:
|
|
5425
|
+
ref: fn(a, s2),
|
|
5426
|
+
label: o(l2, a)
|
|
5427
5427
|
}));
|
|
5428
5428
|
}
|
|
5429
5429
|
resolveAnchorCtx(e) {
|
|
5430
|
-
if (e instanceof Ge) return e;
|
|
5430
|
+
if (e instanceof Ge$1) return e;
|
|
5431
5431
|
const n2 = {};
|
|
5432
5432
|
for (const [r, i] of Object.entries(e))
|
|
5433
5433
|
if (un(i)) {
|
|
5434
|
-
const
|
|
5435
|
-
if (!
|
|
5434
|
+
const o = this.getPColumnSpecByRef(i);
|
|
5435
|
+
if (!o)
|
|
5436
5436
|
return;
|
|
5437
|
-
n2[r] =
|
|
5437
|
+
n2[r] = o;
|
|
5438
5438
|
} else
|
|
5439
5439
|
n2[r] = i;
|
|
5440
|
-
return new Ge(n2);
|
|
5440
|
+
return new Ge$1(n2);
|
|
5441
5441
|
}
|
|
5442
5442
|
/**
|
|
5443
5443
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5450,7 +5450,7 @@
|
|
|
5450
5450
|
getAnchoredPColumns(e, n2, r) {
|
|
5451
5451
|
const i = this.resolveAnchorCtx(e);
|
|
5452
5452
|
if (i)
|
|
5453
|
-
return new
|
|
5453
|
+
return new Q().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
|
|
5454
5454
|
...r,
|
|
5455
5455
|
anchorCtx: i
|
|
5456
5456
|
});
|
|
@@ -5487,14 +5487,14 @@
|
|
|
5487
5487
|
getCanonicalOptions(e, n2, r) {
|
|
5488
5488
|
const i = this.resolveAnchorCtx(e);
|
|
5489
5489
|
if (!i) return;
|
|
5490
|
-
const
|
|
5490
|
+
const o = new Q().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
|
|
5491
5491
|
...r,
|
|
5492
5492
|
anchorCtx: i
|
|
5493
5493
|
});
|
|
5494
|
-
if (
|
|
5495
|
-
return
|
|
5496
|
-
value:
|
|
5497
|
-
label:
|
|
5494
|
+
if (o)
|
|
5495
|
+
return o.map((s2) => ({
|
|
5496
|
+
value: s2.id,
|
|
5497
|
+
label: s2.label
|
|
5498
5498
|
}));
|
|
5499
5499
|
}
|
|
5500
5500
|
/**
|
|
@@ -5511,7 +5511,7 @@
|
|
|
5511
5511
|
ref: n2.ref,
|
|
5512
5512
|
obj: {
|
|
5513
5513
|
...n2.obj,
|
|
5514
|
-
data: new
|
|
5514
|
+
data: new O(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5515
5515
|
}
|
|
5516
5516
|
}))
|
|
5517
5517
|
};
|
|
@@ -5532,7 +5532,7 @@
|
|
|
5532
5532
|
...n2.obj,
|
|
5533
5533
|
data: ln(
|
|
5534
5534
|
n2.obj.data,
|
|
5535
|
-
(r) => new
|
|
5535
|
+
(r) => new O(r, [n2.ref.blockId, n2.ref.name])
|
|
5536
5536
|
)
|
|
5537
5537
|
}
|
|
5538
5538
|
}))
|
|
@@ -5559,9 +5559,9 @@
|
|
|
5559
5559
|
)) == null ? void 0 : r.obj;
|
|
5560
5560
|
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5561
5561
|
if (n2)
|
|
5562
|
-
return nn(
|
|
5562
|
+
return nn$1(
|
|
5563
5563
|
n2,
|
|
5564
|
-
(i) => new
|
|
5564
|
+
(i) => new O(i, [e.blockId, e.name])
|
|
5565
5565
|
);
|
|
5566
5566
|
}
|
|
5567
5567
|
/**
|
|
@@ -5604,10 +5604,10 @@
|
|
|
5604
5604
|
if (!l$1(r.obj.spec))
|
|
5605
5605
|
continue;
|
|
5606
5606
|
const i = r.obj.spec;
|
|
5607
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
5608
|
-
for (let
|
|
5609
|
-
const
|
|
5610
|
-
if (
|
|
5607
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && he(e.domain, i.domain)) {
|
|
5608
|
+
for (let o = 0; o < e.axesSpec.length; ++o) {
|
|
5609
|
+
const s2 = e.axesSpec[o], a = i.axesSpec[o];
|
|
5610
|
+
if (s2.name !== a.name || s2.type !== a.type || !he(s2.domain, a.domain))
|
|
5611
5611
|
continue e;
|
|
5612
5612
|
}
|
|
5613
5613
|
n2.push(r.obj);
|
|
@@ -5622,15 +5622,15 @@
|
|
|
5622
5622
|
findLabels(e) {
|
|
5623
5623
|
const n2 = this.getData();
|
|
5624
5624
|
for (const r of n2.entries) {
|
|
5625
|
-
if (!ie
|
|
5625
|
+
if (!ie(r.obj)) continue;
|
|
5626
5626
|
const i = r.obj.spec;
|
|
5627
|
-
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type &&
|
|
5627
|
+
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)) {
|
|
5628
5628
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
5629
5629
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
5630
5630
|
return Object.fromEntries(
|
|
5631
5631
|
Object.entries(
|
|
5632
5632
|
r.obj.data.getDataAsJson().data
|
|
5633
|
-
).map((
|
|
5633
|
+
).map((s2) => [JSON.parse(s2[0])[0], s2[1]])
|
|
5634
5634
|
);
|
|
5635
5635
|
}
|
|
5636
5636
|
}
|
|
@@ -5644,13 +5644,13 @@
|
|
|
5644
5644
|
*/
|
|
5645
5645
|
selectColumns(e) {
|
|
5646
5646
|
const n2 = typeof e == "function" ? e : rn(e);
|
|
5647
|
-
return this.getSpecs().entries.filter(({ obj: i }) => l$1(i) ? n2(i) : false).map(({ ref: i, obj:
|
|
5648
|
-
const
|
|
5647
|
+
return this.getSpecs().entries.filter(({ obj: i }) => l$1(i) ? n2(i) : false).map(({ ref: i, obj: o }) => {
|
|
5648
|
+
const s2 = o;
|
|
5649
5649
|
let a = null;
|
|
5650
5650
|
const l2 = this;
|
|
5651
5651
|
return {
|
|
5652
|
-
id:
|
|
5653
|
-
spec:
|
|
5652
|
+
id: Be(i),
|
|
5653
|
+
spec: s2,
|
|
5654
5654
|
get data() {
|
|
5655
5655
|
var u2;
|
|
5656
5656
|
return a !== null || (a = (u2 = l2.getPColumnByRef(i)) == null ? void 0 : u2.data), a;
|
|
@@ -5663,25 +5663,25 @@
|
|
|
5663
5663
|
* @returns a map of axis value => label
|
|
5664
5664
|
*/
|
|
5665
5665
|
findLabelsForColumnAxis(e, n2) {
|
|
5666
|
-
var
|
|
5666
|
+
var o;
|
|
5667
5667
|
const r = this.findLabels(e.axesSpec[n2]);
|
|
5668
5668
|
if (!r) return;
|
|
5669
|
-
const i = (
|
|
5669
|
+
const i = (o = e.annotations) == null ? void 0 : o["pl7.app/axisKeys/" + n2];
|
|
5670
5670
|
if (i !== void 0) {
|
|
5671
|
-
const
|
|
5672
|
-
return Object.fromEntries(
|
|
5671
|
+
const s2 = JSON.parse(i);
|
|
5672
|
+
return Object.fromEntries(s2.map((a) => [a, r[a] ?? "Unlabelled"]));
|
|
5673
5673
|
} else
|
|
5674
5674
|
return r;
|
|
5675
5675
|
}
|
|
5676
5676
|
}
|
|
5677
|
-
class
|
|
5677
|
+
class ne {
|
|
5678
5678
|
constructor() {
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
this.ctx =
|
|
5679
|
+
V(this, "ctx");
|
|
5680
|
+
V(this, "_argsCache");
|
|
5681
|
+
V(this, "_uiStateCache");
|
|
5682
|
+
V(this, "_activeArgsCache");
|
|
5683
|
+
V(this, "resultPool", new Wt());
|
|
5684
|
+
this.ctx = b();
|
|
5685
5685
|
}
|
|
5686
5686
|
get args() {
|
|
5687
5687
|
if (this._argsCache === void 0) {
|
|
@@ -5717,14 +5717,14 @@
|
|
|
5717
5717
|
getNamedAccessor(e) {
|
|
5718
5718
|
return ge(
|
|
5719
5719
|
this.ctx.getAccessorHandleByName(e),
|
|
5720
|
-
(n2) => new
|
|
5720
|
+
(n2) => new O(n2, [e])
|
|
5721
5721
|
);
|
|
5722
5722
|
}
|
|
5723
5723
|
get prerun() {
|
|
5724
|
-
return this.getNamedAccessor(
|
|
5724
|
+
return this.getNamedAccessor(We);
|
|
5725
5725
|
}
|
|
5726
5726
|
get outputs() {
|
|
5727
|
-
return this.getNamedAccessor(
|
|
5727
|
+
return this.getNamedAccessor(Ge);
|
|
5728
5728
|
}
|
|
5729
5729
|
/**
|
|
5730
5730
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5736,7 +5736,7 @@
|
|
|
5736
5736
|
}
|
|
5737
5737
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5738
5738
|
var i;
|
|
5739
|
-
const n2 = e.some((
|
|
5739
|
+
const n2 = e.some((o) => !(o.data instanceof O) || Ce$1(o.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5740
5740
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5741
5741
|
}
|
|
5742
5742
|
patchPTableDef(e) {
|
|
@@ -5747,14 +5747,14 @@
|
|
|
5747
5747
|
filters: [...e.partitionFilters, ...e.filters]
|
|
5748
5748
|
}), (r = this.ctx.featureFlags) != null && r.pFrameInSetFilterSupport || (e = {
|
|
5749
5749
|
...e,
|
|
5750
|
-
partitionFilters:
|
|
5751
|
-
filters:
|
|
5750
|
+
partitionFilters: Te(e.partitionFilters),
|
|
5751
|
+
filters: Te(e.filters)
|
|
5752
5752
|
}), e;
|
|
5753
5753
|
}
|
|
5754
5754
|
// TODO remove all non-PColumn fields
|
|
5755
5755
|
createPFrame(e) {
|
|
5756
5756
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5757
|
-
e.map((n2) =>
|
|
5757
|
+
e.map((n2) => ke(n2))
|
|
5758
5758
|
);
|
|
5759
5759
|
}
|
|
5760
5760
|
createPTable(e) {
|
|
@@ -5768,7 +5768,7 @@
|
|
|
5768
5768
|
filters: [],
|
|
5769
5769
|
sorting: e.sorting ?? []
|
|
5770
5770
|
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(tn(n2.src)), this.ctx.createPTable(
|
|
5771
|
-
ze(n2, (r) =>
|
|
5771
|
+
ze$1(n2, (r) => ke(r))
|
|
5772
5772
|
);
|
|
5773
5773
|
}
|
|
5774
5774
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5788,35 +5788,35 @@
|
|
|
5788
5788
|
this.ctx.logError(e);
|
|
5789
5789
|
}
|
|
5790
5790
|
}
|
|
5791
|
-
const
|
|
5792
|
-
function
|
|
5791
|
+
const X = "1.40.6";
|
|
5792
|
+
function Gt(t) {
|
|
5793
5793
|
return t.__renderLambda === true;
|
|
5794
5794
|
}
|
|
5795
|
-
function
|
|
5795
|
+
function me(t) {
|
|
5796
5796
|
if (t !== void 0)
|
|
5797
|
-
return
|
|
5797
|
+
return Gt(t) ? t.handle : t;
|
|
5798
5798
|
}
|
|
5799
|
-
const
|
|
5800
|
-
constructor(e, n2, r, i,
|
|
5801
|
-
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid =
|
|
5799
|
+
const w = class w2 {
|
|
5800
|
+
constructor(e, n2, r, i, o, s2, a, l2, u2) {
|
|
5801
|
+
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;
|
|
5802
5802
|
}
|
|
5803
5803
|
static create(e = "Heavy") {
|
|
5804
|
-
return new
|
|
5804
|
+
return new w2(
|
|
5805
5805
|
e,
|
|
5806
5806
|
void 0,
|
|
5807
5807
|
{},
|
|
5808
5808
|
{},
|
|
5809
|
-
|
|
5810
|
-
|
|
5809
|
+
se(true),
|
|
5810
|
+
se([]),
|
|
5811
5811
|
void 0,
|
|
5812
5812
|
void 0,
|
|
5813
|
-
{ ...
|
|
5813
|
+
{ ...w2.INITIAL_BLOCK_FEATURE_FLAGS }
|
|
5814
5814
|
);
|
|
5815
5815
|
}
|
|
5816
5816
|
output(e, n2, r = {}) {
|
|
5817
5817
|
if (typeof n2 == "function") {
|
|
5818
5818
|
const i = `output#${e}`;
|
|
5819
|
-
return G(i, () => n2(new
|
|
5819
|
+
return G(i, () => n2(new ne())), new w2(
|
|
5820
5820
|
this._renderingMode,
|
|
5821
5821
|
this._initialArgs,
|
|
5822
5822
|
this._initialUiState,
|
|
@@ -5835,7 +5835,7 @@
|
|
|
5835
5835
|
this._featureFlags
|
|
5836
5836
|
);
|
|
5837
5837
|
} else
|
|
5838
|
-
return new
|
|
5838
|
+
return new w2(
|
|
5839
5839
|
this._renderingMode,
|
|
5840
5840
|
this._initialArgs,
|
|
5841
5841
|
this._initialUiState,
|
|
@@ -5855,7 +5855,7 @@
|
|
|
5855
5855
|
return this.output(e, n2, { retentive: true });
|
|
5856
5856
|
}
|
|
5857
5857
|
argsValid(e) {
|
|
5858
|
-
return typeof e == "function" ? (G("inputsValid", () => e(new
|
|
5858
|
+
return typeof e == "function" ? (G("inputsValid", () => e(new ne())), new w2(
|
|
5859
5859
|
this._renderingMode,
|
|
5860
5860
|
this._initialArgs,
|
|
5861
5861
|
this._initialUiState,
|
|
@@ -5868,7 +5868,7 @@
|
|
|
5868
5868
|
this._title,
|
|
5869
5869
|
this._enrichmentTargets,
|
|
5870
5870
|
this._featureFlags
|
|
5871
|
-
)) : new
|
|
5871
|
+
)) : new w2(
|
|
5872
5872
|
this._renderingMode,
|
|
5873
5873
|
this._initialArgs,
|
|
5874
5874
|
this._initialUiState,
|
|
@@ -5881,7 +5881,7 @@
|
|
|
5881
5881
|
);
|
|
5882
5882
|
}
|
|
5883
5883
|
sections(e) {
|
|
5884
|
-
return Array.isArray(e) ? this.sections(
|
|
5884
|
+
return Array.isArray(e) ? this.sections(se(e)) : typeof e == "function" ? (G("sections", () => e(new ne())), new w2(
|
|
5885
5885
|
this._renderingMode,
|
|
5886
5886
|
this._initialArgs,
|
|
5887
5887
|
this._initialUiState,
|
|
@@ -5891,7 +5891,7 @@
|
|
|
5891
5891
|
this._title,
|
|
5892
5892
|
this._enrichmentTargets,
|
|
5893
5893
|
this._featureFlags
|
|
5894
|
-
)) : new
|
|
5894
|
+
)) : new w2(
|
|
5895
5895
|
this._renderingMode,
|
|
5896
5896
|
this._initialArgs,
|
|
5897
5897
|
this._initialUiState,
|
|
@@ -5905,7 +5905,7 @@
|
|
|
5905
5905
|
}
|
|
5906
5906
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5907
5907
|
title(e) {
|
|
5908
|
-
return G("title", () => e(new
|
|
5908
|
+
return G("title", () => e(new ne())), new w2(
|
|
5909
5909
|
this._renderingMode,
|
|
5910
5910
|
this._initialArgs,
|
|
5911
5911
|
this._initialUiState,
|
|
@@ -5922,7 +5922,7 @@
|
|
|
5922
5922
|
* @deprecated use {@link withArgs}
|
|
5923
5923
|
* */
|
|
5924
5924
|
initialArgs(e) {
|
|
5925
|
-
return new
|
|
5925
|
+
return new w2(
|
|
5926
5926
|
this._renderingMode,
|
|
5927
5927
|
e,
|
|
5928
5928
|
this._initialUiState,
|
|
@@ -5936,7 +5936,7 @@
|
|
|
5936
5936
|
}
|
|
5937
5937
|
/** Sets initial args for the block, this value must be specified. */
|
|
5938
5938
|
withArgs(e) {
|
|
5939
|
-
return new
|
|
5939
|
+
return new w2(
|
|
5940
5940
|
this._renderingMode,
|
|
5941
5941
|
e,
|
|
5942
5942
|
this._initialUiState,
|
|
@@ -5950,7 +5950,7 @@
|
|
|
5950
5950
|
}
|
|
5951
5951
|
/** Defines type and sets initial value for block UiState. */
|
|
5952
5952
|
withUiState(e) {
|
|
5953
|
-
return new
|
|
5953
|
+
return new w2(
|
|
5954
5954
|
this._renderingMode,
|
|
5955
5955
|
this._initialArgs,
|
|
5956
5956
|
e,
|
|
@@ -5967,7 +5967,7 @@
|
|
|
5967
5967
|
* Influences dependency graph construction.
|
|
5968
5968
|
*/
|
|
5969
5969
|
enriches(e) {
|
|
5970
|
-
return G("enrichmentTargets", e), new
|
|
5970
|
+
return G("enrichmentTargets", e), new w2(
|
|
5971
5971
|
this._renderingMode,
|
|
5972
5972
|
this._initialArgs,
|
|
5973
5973
|
this._initialUiState,
|
|
@@ -5986,7 +5986,7 @@
|
|
|
5986
5986
|
if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
|
|
5987
5987
|
const e = {
|
|
5988
5988
|
v3: {
|
|
5989
|
-
sdkVersion:
|
|
5989
|
+
sdkVersion: X,
|
|
5990
5990
|
renderingMode: this._renderingMode,
|
|
5991
5991
|
initialArgs: this._initialArgs,
|
|
5992
5992
|
initialUiState: this._initialUiState,
|
|
@@ -5998,25 +5998,25 @@
|
|
|
5998
5998
|
featureFlags: this._featureFlags
|
|
5999
5999
|
},
|
|
6000
6000
|
// fields below are added to allow previous desktop versions read generated configs
|
|
6001
|
-
sdkVersion:
|
|
6001
|
+
sdkVersion: X,
|
|
6002
6002
|
renderingMode: this._renderingMode,
|
|
6003
6003
|
initialArgs: this._initialArgs,
|
|
6004
|
-
inputsValid:
|
|
6005
|
-
sections:
|
|
6004
|
+
inputsValid: me(this._inputsValid),
|
|
6005
|
+
sections: me(this._sections),
|
|
6006
6006
|
outputs: Object.fromEntries(
|
|
6007
|
-
Object.entries(this._outputs).map(([n2, r]) => [n2,
|
|
6007
|
+
Object.entries(this._outputs).map(([n2, r]) => [n2, me(r)])
|
|
6008
6008
|
)
|
|
6009
6009
|
};
|
|
6010
|
-
return
|
|
6010
|
+
return At() ? $e({ sdkVersion: X }) : { config: e };
|
|
6011
6011
|
}
|
|
6012
6012
|
};
|
|
6013
|
-
|
|
6013
|
+
V(w, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
6014
6014
|
supportsLazyState: true,
|
|
6015
6015
|
requiresUIAPIVersion: 1,
|
|
6016
6016
|
requiresModelAPIVersion: 1
|
|
6017
6017
|
});
|
|
6018
|
-
let
|
|
6019
|
-
function
|
|
6018
|
+
let Oe = w;
|
|
6019
|
+
function Qe() {
|
|
6020
6020
|
return {
|
|
6021
6021
|
sourceId: null,
|
|
6022
6022
|
hiddenColIds: null,
|
|
@@ -6025,72 +6025,72 @@
|
|
|
6025
6025
|
sorting: []
|
|
6026
6026
|
};
|
|
6027
6027
|
}
|
|
6028
|
-
function
|
|
6028
|
+
function De() {
|
|
6029
6029
|
return {
|
|
6030
6030
|
version: 4,
|
|
6031
6031
|
stateCache: [],
|
|
6032
|
-
pTableParams:
|
|
6032
|
+
pTableParams: Qe()
|
|
6033
6033
|
};
|
|
6034
6034
|
}
|
|
6035
|
-
function
|
|
6036
|
-
return "version" in t || (t =
|
|
6035
|
+
function Ht(t) {
|
|
6036
|
+
return "version" in t || (t = De()), t.version === 2 && (t = {
|
|
6037
6037
|
version: 3,
|
|
6038
6038
|
stateCache: t.stateCache.map((e) => ({
|
|
6039
6039
|
...e,
|
|
6040
6040
|
filtersState: []
|
|
6041
6041
|
})),
|
|
6042
|
-
pTableParams:
|
|
6043
|
-
}), t.version === 3 && (t =
|
|
6042
|
+
pTableParams: Qe()
|
|
6043
|
+
}), t.version === 3 && (t = De()), t;
|
|
6044
6044
|
}
|
|
6045
|
-
function
|
|
6045
|
+
function Se(t) {
|
|
6046
6046
|
return t.axesSpec.length === 1 && t.name === "pl7.app/label";
|
|
6047
6047
|
}
|
|
6048
|
-
function
|
|
6049
|
-
return new
|
|
6048
|
+
function zt(t) {
|
|
6049
|
+
return new Q().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
|
|
6050
6050
|
name: "pl7.app/label",
|
|
6051
6051
|
axes: [{}]
|
|
6052
6052
|
// exactly one axis
|
|
6053
6053
|
}, { dontWaitAllData: true });
|
|
6054
6054
|
}
|
|
6055
|
-
function
|
|
6055
|
+
function Re(t, e) {
|
|
6056
6056
|
const n2 = [], r = [];
|
|
6057
6057
|
for (const a of t)
|
|
6058
|
-
|
|
6058
|
+
Se(a.spec) ? n2.push(a) : r.push(a);
|
|
6059
6059
|
const i = [];
|
|
6060
6060
|
for (const a of r)
|
|
6061
6061
|
for (const l2 of a.spec.axesSpec) {
|
|
6062
6062
|
const u2 = y(l2);
|
|
6063
|
-
i.some((h) => ne(h, u2)) || i.push(u2);
|
|
6063
|
+
i.some((h) => ne$1(h, u2)) || i.push(u2);
|
|
6064
6064
|
}
|
|
6065
6065
|
for (const a of n2) {
|
|
6066
|
-
const l2 = y(a.spec.axesSpec[0]), u2 = i.findIndex((h) => ne(h, l2));
|
|
6066
|
+
const l2 = y(a.spec.axesSpec[0]), u2 = i.findIndex((h) => ne$1(h, l2));
|
|
6067
6067
|
u2 !== -1 && i.splice(u2, 1);
|
|
6068
6068
|
}
|
|
6069
|
-
const
|
|
6069
|
+
const o = (a, l2) => {
|
|
6070
6070
|
let u2 = a.toString();
|
|
6071
6071
|
if (l2)
|
|
6072
6072
|
for (const h in l2)
|
|
6073
6073
|
u2 += h, u2 += l2[h];
|
|
6074
6074
|
return u2;
|
|
6075
|
-
},
|
|
6075
|
+
}, s2 = [];
|
|
6076
6076
|
for (const a of e) {
|
|
6077
|
-
const l2 = a.spec.axesSpec[0], u2 = y(l2), h = i.findIndex((f) => ne(f, u2));
|
|
6077
|
+
const l2 = a.spec.axesSpec[0], u2 = y(l2), h = i.findIndex((f) => ne$1(f, u2));
|
|
6078
6078
|
if (h !== -1) {
|
|
6079
|
-
const f = i[h],
|
|
6080
|
-
|
|
6081
|
-
id:
|
|
6079
|
+
const f = i[h], m2 = Object.keys(f.domain ?? {}).length, d2 = Object.keys(l2.domain ?? {}).length;
|
|
6080
|
+
m2 > d2 ? s2.push({
|
|
6081
|
+
id: o(a.id, f.domain),
|
|
6082
6082
|
spec: {
|
|
6083
6083
|
...a.spec,
|
|
6084
6084
|
axesSpec: [{ ...f, annotations: l2.annotations }]
|
|
6085
6085
|
},
|
|
6086
6086
|
data: a.data
|
|
6087
|
-
}) :
|
|
6087
|
+
}) : s2.push(a), i.splice(h, 1);
|
|
6088
6088
|
}
|
|
6089
6089
|
}
|
|
6090
|
-
return
|
|
6090
|
+
return s2;
|
|
6091
6091
|
}
|
|
6092
|
-
function
|
|
6093
|
-
const e = (i) => Array.isArray(i), n2 = (i) => i instanceof
|
|
6092
|
+
function Xt(t) {
|
|
6093
|
+
const e = (i) => Array.isArray(i), n2 = (i) => i instanceof O, r = (i) => typeof i == "object" && "type" in i;
|
|
6094
6094
|
return t.map((i) => i.data).every((i) => {
|
|
6095
6095
|
if (e(i))
|
|
6096
6096
|
return true;
|
|
@@ -6101,15 +6101,15 @@
|
|
|
6101
6101
|
case "Json":
|
|
6102
6102
|
return true;
|
|
6103
6103
|
case "JsonPartitioned":
|
|
6104
|
-
return Object.values(i.parts).every((
|
|
6104
|
+
return Object.values(i.parts).every((s2) => s2.getIsReadyOrError());
|
|
6105
6105
|
case "BinaryPartitioned":
|
|
6106
|
-
return Object.values(i.parts).every((
|
|
6106
|
+
return Object.values(i.parts).every((s2) => s2.index.getIsReadyOrError() && s2.values.getIsReadyOrError());
|
|
6107
6107
|
}
|
|
6108
6108
|
else
|
|
6109
6109
|
throw Error(`unsupported column data type: ${i}`);
|
|
6110
6110
|
});
|
|
6111
6111
|
}
|
|
6112
|
-
function
|
|
6112
|
+
function Ne(t) {
|
|
6113
6113
|
let e = t.columns;
|
|
6114
6114
|
const n2 = [];
|
|
6115
6115
|
if (t.coreColumnPredicate) {
|
|
@@ -6131,75 +6131,77 @@
|
|
|
6131
6131
|
sorting: t.sorting
|
|
6132
6132
|
};
|
|
6133
6133
|
}
|
|
6134
|
-
function
|
|
6134
|
+
function Yt(t) {
|
|
6135
6135
|
var e;
|
|
6136
6136
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
|
|
6137
6137
|
}
|
|
6138
|
-
function
|
|
6138
|
+
function Qt(t) {
|
|
6139
6139
|
var e;
|
|
6140
6140
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
6141
6141
|
}
|
|
6142
|
-
function
|
|
6142
|
+
function ye(t, e) {
|
|
6143
6143
|
return [...new Map(t.map((n2) => [e(n2), n2])).values()];
|
|
6144
6144
|
}
|
|
6145
|
-
function
|
|
6145
|
+
function Gn(t, e, n2, r) {
|
|
6146
6146
|
if (e.length === 0) return;
|
|
6147
|
-
const i = e.filter((c2) => !
|
|
6148
|
-
if (!
|
|
6149
|
-
const a =
|
|
6150
|
-
...
|
|
6151
|
-
[...l2.flatMap((c2) => c2.spec.axesSpec.map((
|
|
6147
|
+
const i = e.filter((c2) => Pe(c2.spec) || !Yt(c2.spec)), o = Ht(n2), s2 = zt(t.resultPool);
|
|
6148
|
+
if (!s2) return;
|
|
6149
|
+
const a = Re(i.map(qe), s2), l2 = [...i, ...a], h = [
|
|
6150
|
+
...ye(
|
|
6151
|
+
[...l2.flatMap((c2) => c2.spec.axesSpec.map((v2) => y(v2)))],
|
|
6152
6152
|
(c2) => hn(c2)
|
|
6153
6153
|
).map((c2) => ({ type: "axis", id: c2 })),
|
|
6154
6154
|
...l2.map((c2) => ({ type: "column", id: c2.id }))
|
|
6155
|
-
], f = new Set(h.map((c2) => hn(c2))),
|
|
6156
|
-
const
|
|
6157
|
-
return
|
|
6158
|
-
}), p2 =
|
|
6159
|
-
[...[], ...
|
|
6155
|
+
], f = new Set(h.map((c2) => hn(c2))), m2 = (c2) => f.has(hn(c2)), d2 = "full", g2 = o.pTableParams.partitionFilters.filter((c2) => {
|
|
6156
|
+
const v2 = m2(c2.column);
|
|
6157
|
+
return v2 || t.logWarn(`Partition filter ${JSON.stringify(c2)} does not match provided columns, skipping`), v2;
|
|
6158
|
+
}), p2 = ye(
|
|
6159
|
+
[...[], ...o.pTableParams.filters],
|
|
6160
6160
|
(c2) => hn(c2.column)
|
|
6161
6161
|
).filter((c2) => {
|
|
6162
|
-
const
|
|
6163
|
-
return
|
|
6164
|
-
}),
|
|
6165
|
-
[...[], ...
|
|
6162
|
+
const v2 = m2(c2.column);
|
|
6163
|
+
return v2 || t.logWarn(`Filter ${JSON.stringify(c2)} does not match provided columns, skipping`), v2;
|
|
6164
|
+
}), y$1 = ye(
|
|
6165
|
+
[...[], ...o.pTableParams.sorting],
|
|
6166
6166
|
(c2) => hn(c2.column)
|
|
6167
6167
|
).filter((c2) => {
|
|
6168
|
-
const
|
|
6169
|
-
return
|
|
6170
|
-
}), C2 =
|
|
6168
|
+
const v2 = m2(c2.column);
|
|
6169
|
+
return v2 || t.logWarn(`Sorting ${JSON.stringify(c2)} does not match provided columns, skipping`), v2;
|
|
6170
|
+
}), C2 = Ne({
|
|
6171
6171
|
columns: i,
|
|
6172
6172
|
labelColumns: a,
|
|
6173
6173
|
coreJoinType: d2,
|
|
6174
|
-
partitionFilters:
|
|
6174
|
+
partitionFilters: g2,
|
|
6175
6175
|
filters: p2,
|
|
6176
|
-
sorting:
|
|
6176
|
+
sorting: y$1,
|
|
6177
6177
|
coreColumnPredicate: void 0
|
|
6178
|
-
}), E2 = t.createPTable(C2),
|
|
6179
|
-
const c2 =
|
|
6180
|
-
return c2 || i.filter((
|
|
6178
|
+
}), E2 = t.createPTable(C2), x2 = new Set((() => {
|
|
6179
|
+
const c2 = o.pTableParams.hiddenColIds;
|
|
6180
|
+
return c2 || i.filter((v2) => Qt(v2.spec)).map((v2) => v2.id);
|
|
6181
6181
|
})());
|
|
6182
|
-
i.filter((c2) =>
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
const S2 = De({
|
|
6189
|
-
columns: w,
|
|
6190
|
-
labelColumns: A2,
|
|
6182
|
+
i.filter((c2) => Pe(c2.spec)).forEach((c2) => x2.delete(c2.id)), [...g2.map((c2) => c2.column), ...p2.map((c2) => c2.column), ...y$1.map((c2) => c2.column)].filter((c2) => c2.type === "column").forEach((c2) => x2.delete(c2.id));
|
|
6183
|
+
const S2 = i.filter((c2) => !x2.has(c2.id)), P = Re(S2.map(qe), s2);
|
|
6184
|
+
if (!Xt([...S2, ...P])) return;
|
|
6185
|
+
const T = Ne({
|
|
6186
|
+
columns: S2,
|
|
6187
|
+
labelColumns: P,
|
|
6191
6188
|
coreJoinType: d2,
|
|
6192
|
-
partitionFilters:
|
|
6189
|
+
partitionFilters: g2,
|
|
6193
6190
|
filters: p2,
|
|
6194
|
-
sorting:
|
|
6191
|
+
sorting: y$1,
|
|
6195
6192
|
coreColumnPredicate: void 0
|
|
6196
|
-
}),
|
|
6193
|
+
}), F = t.createPTable(T);
|
|
6197
6194
|
return {
|
|
6198
|
-
sourceId:
|
|
6195
|
+
sourceId: o.pTableParams.sourceId,
|
|
6199
6196
|
fullTableHandle: E2,
|
|
6200
|
-
visibleTableHandle:
|
|
6197
|
+
visibleTableHandle: F
|
|
6201
6198
|
};
|
|
6202
6199
|
}
|
|
6200
|
+
function Pe(t) {
|
|
6201
|
+
var e;
|
|
6202
|
+
return t.axesSpec.length === 2 && ((e = t.annotations) == null ? void 0 : e[nn]) === "true";
|
|
6203
|
+
}
|
|
6204
|
+
const nn = "pl7.app/isLinkerColumn";
|
|
6203
6205
|
const ImportFileHandleSchema = z$1.string().optional().refine(
|
|
6204
6206
|
(_a) => true
|
|
6205
6207
|
);
|
|
@@ -6210,8 +6212,8 @@
|
|
|
6210
6212
|
}
|
|
6211
6213
|
function toList(iterable) {
|
|
6212
6214
|
const lst = [];
|
|
6213
|
-
for (const
|
|
6214
|
-
lst.push(
|
|
6215
|
+
for (const it2 of iterable) {
|
|
6216
|
+
lst.push(it2);
|
|
6215
6217
|
}
|
|
6216
6218
|
return lst;
|
|
6217
6219
|
}
|
|
@@ -6223,10 +6225,10 @@
|
|
|
6223
6225
|
numbers: z$1.array(z$1.coerce.number()),
|
|
6224
6226
|
handles: z$1.array(ImportFileHandleSchema)
|
|
6225
6227
|
});
|
|
6226
|
-
const platforma =
|
|
6228
|
+
const platforma = Oe.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({
|
|
6227
6229
|
dataTableV2: {
|
|
6228
6230
|
sourceId: "source_1",
|
|
6229
|
-
state:
|
|
6231
|
+
state: De()
|
|
6230
6232
|
},
|
|
6231
6233
|
dynamicSections: []
|
|
6232
6234
|
}).argsValid((ctx) => {
|
|
@@ -6273,7 +6275,8 @@
|
|
|
6273
6275
|
name: "example",
|
|
6274
6276
|
annotations: {
|
|
6275
6277
|
"pl7.app/label": "String column",
|
|
6276
|
-
"pl7.app/discreteValues": '["up","down"]'
|
|
6278
|
+
"pl7.app/discreteValues": '["up","down"]',
|
|
6279
|
+
"pl7.app/table/orderPriority": "101"
|
|
6277
6280
|
},
|
|
6278
6281
|
axesSpec: [
|
|
6279
6282
|
{
|
|
@@ -6309,7 +6312,8 @@
|
|
|
6309
6312
|
name: "value",
|
|
6310
6313
|
annotations: {
|
|
6311
6314
|
"pl7.app/label": "Float column",
|
|
6312
|
-
"pl7.app/table/visibility": "optional"
|
|
6315
|
+
"pl7.app/table/visibility": "optional",
|
|
6316
|
+
"pl7.app/table/orderPriority": "100"
|
|
6313
6317
|
},
|
|
6314
6318
|
axesSpec: [
|
|
6315
6319
|
{
|
|
@@ -6363,25 +6367,62 @@
|
|
|
6363
6367
|
val: 1e5 - v2
|
|
6364
6368
|
};
|
|
6365
6369
|
})
|
|
6370
|
+
},
|
|
6371
|
+
{
|
|
6372
|
+
id: "linkerColumn",
|
|
6373
|
+
spec: {
|
|
6374
|
+
kind: "PColumn",
|
|
6375
|
+
valueType: "Int",
|
|
6376
|
+
name: "linker",
|
|
6377
|
+
annotations: {
|
|
6378
|
+
"pl7.app/label": "Index axis linker",
|
|
6379
|
+
"pl7.app/isLinkerColumn": "true",
|
|
6380
|
+
"pl7.app/table/visibility": "hidden"
|
|
6381
|
+
},
|
|
6382
|
+
axesSpec: [
|
|
6383
|
+
{
|
|
6384
|
+
type: "Int",
|
|
6385
|
+
name: "index",
|
|
6386
|
+
annotations: {
|
|
6387
|
+
"pl7.app/label": "Int axis"
|
|
6388
|
+
}
|
|
6389
|
+
},
|
|
6390
|
+
{
|
|
6391
|
+
type: "Int",
|
|
6392
|
+
name: "linkedIndex",
|
|
6393
|
+
annotations: {
|
|
6394
|
+
"pl7.app/label": "Linked int axis"
|
|
6395
|
+
}
|
|
6396
|
+
}
|
|
6397
|
+
]
|
|
6398
|
+
},
|
|
6399
|
+
data: times(rowCount, (i) => {
|
|
6400
|
+
const v2 = i + 1;
|
|
6401
|
+
return {
|
|
6402
|
+
key: [v2, v2],
|
|
6403
|
+
val: 1
|
|
6404
|
+
};
|
|
6405
|
+
})
|
|
6366
6406
|
}
|
|
6367
6407
|
];
|
|
6368
|
-
for (let j =
|
|
6408
|
+
for (let j = 1; j < 10; ++j) {
|
|
6369
6409
|
columns.push({
|
|
6370
|
-
id: `
|
|
6410
|
+
id: `alphabeticalColumn${j}`,
|
|
6371
6411
|
spec: {
|
|
6372
6412
|
kind: "PColumn",
|
|
6373
6413
|
valueType: "String",
|
|
6374
6414
|
name: "value",
|
|
6375
6415
|
annotations: {
|
|
6376
|
-
"pl7.app/label": `Alphabetical column ${j
|
|
6377
|
-
"pl7.app/table/visibility": "optional"
|
|
6416
|
+
"pl7.app/label": `Alphabetical column ${j}`,
|
|
6417
|
+
"pl7.app/table/visibility": "optional",
|
|
6418
|
+
"pl7.app/table/orderPriority": (10 - j).toString()
|
|
6378
6419
|
},
|
|
6379
6420
|
axesSpec: [
|
|
6380
6421
|
{
|
|
6381
6422
|
type: "Int",
|
|
6382
|
-
name: "
|
|
6423
|
+
name: "linkedIndex",
|
|
6383
6424
|
annotations: {
|
|
6384
|
-
"pl7.app/label": "
|
|
6425
|
+
"pl7.app/label": "Linked int axis"
|
|
6385
6426
|
}
|
|
6386
6427
|
}
|
|
6387
6428
|
]
|
|
@@ -6395,7 +6436,7 @@
|
|
|
6395
6436
|
})
|
|
6396
6437
|
});
|
|
6397
6438
|
}
|
|
6398
|
-
return
|
|
6439
|
+
return Gn(
|
|
6399
6440
|
ctx,
|
|
6400
6441
|
columns,
|
|
6401
6442
|
ctx.uiState.dataTableV2.state
|
|
@@ -6406,12 +6447,12 @@
|
|
|
6406
6447
|
}
|
|
6407
6448
|
return "Ui Examples";
|
|
6408
6449
|
}).sections((ctx) => {
|
|
6409
|
-
const dynamicSections = (ctx.uiState.dynamicSections ?? []).map((
|
|
6450
|
+
const dynamicSections = (ctx.uiState.dynamicSections ?? []).map((it2) => ({
|
|
6410
6451
|
type: "link",
|
|
6411
|
-
href: `/section?id=${
|
|
6412
|
-
label:
|
|
6452
|
+
href: `/section?id=${it2.id}`,
|
|
6453
|
+
label: it2.label
|
|
6413
6454
|
}));
|
|
6414
|
-
if (dynamicSections.some((
|
|
6455
|
+
if (dynamicSections.some((it2) => it2.label === "Error")) {
|
|
6415
6456
|
throw new Error("sections: test error");
|
|
6416
6457
|
}
|
|
6417
6458
|
return [
|