@milaboratories/milaboratories.ui-examples.model 1.1.69 → 1.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +13 -0
- package/dist/bundle.js +246 -246
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
overrideMap,
|
|
392
392
|
overrideMap === errorMap ? void 0 : errorMap
|
|
393
393
|
// then global default map
|
|
394
|
-
].filter((
|
|
394
|
+
].filter((x) => !!x)
|
|
395
395
|
});
|
|
396
396
|
ctx.common.issues.push(issue);
|
|
397
397
|
}
|
|
@@ -454,10 +454,10 @@
|
|
|
454
454
|
});
|
|
455
455
|
const DIRTY = (value) => ({ status: "dirty", value });
|
|
456
456
|
const OK = (value) => ({ status: "valid", value });
|
|
457
|
-
const isAborted = (
|
|
458
|
-
const isDirty = (
|
|
459
|
-
const isValid = (
|
|
460
|
-
const isAsync = (
|
|
457
|
+
const isAborted = (x) => x.status === "aborted";
|
|
458
|
+
const isDirty = (x) => x.status === "dirty";
|
|
459
|
+
const isValid = (x) => x.status === "valid";
|
|
460
|
+
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
461
461
|
function __classPrivateFieldGet(receiver, state, kind, f2) {
|
|
462
462
|
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
463
463
|
return state.get(receiver);
|
|
@@ -2787,7 +2787,7 @@
|
|
|
2787
2787
|
if (!schema)
|
|
2788
2788
|
return null;
|
|
2789
2789
|
return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
|
|
2790
|
-
}).filter((
|
|
2790
|
+
}).filter((x) => !!x);
|
|
2791
2791
|
if (ctx.common.async) {
|
|
2792
2792
|
return Promise.all(items).then((results) => {
|
|
2793
2793
|
return ParseStatus.mergeArray(status, results);
|
|
@@ -3045,7 +3045,7 @@
|
|
|
3045
3045
|
ctx.schemaErrorMap,
|
|
3046
3046
|
getErrorMap(),
|
|
3047
3047
|
errorMap
|
|
3048
|
-
].filter((
|
|
3048
|
+
].filter((x) => !!x),
|
|
3049
3049
|
issueData: {
|
|
3050
3050
|
code: ZodIssueCode.invalid_arguments,
|
|
3051
3051
|
argumentsError: error
|
|
@@ -3061,7 +3061,7 @@
|
|
|
3061
3061
|
ctx.schemaErrorMap,
|
|
3062
3062
|
getErrorMap(),
|
|
3063
3063
|
errorMap
|
|
3064
|
-
].filter((
|
|
3064
|
+
].filter((x) => !!x),
|
|
3065
3065
|
issueData: {
|
|
3066
3066
|
code: ZodIssueCode.invalid_return_type,
|
|
3067
3067
|
returnTypeError: error
|
|
@@ -3069,7 +3069,7 @@
|
|
|
3069
3069
|
});
|
|
3070
3070
|
}
|
|
3071
3071
|
const params = { errorMap: ctx.common.contextualErrorMap };
|
|
3072
|
-
const
|
|
3072
|
+
const fn2 = ctx.data;
|
|
3073
3073
|
if (this._def.returns instanceof ZodPromise) {
|
|
3074
3074
|
const me2 = this;
|
|
3075
3075
|
return OK(async function(...args) {
|
|
@@ -3078,7 +3078,7 @@
|
|
|
3078
3078
|
error.addIssue(makeArgsIssue(args, e));
|
|
3079
3079
|
throw error;
|
|
3080
3080
|
});
|
|
3081
|
-
const result = await Reflect.apply(
|
|
3081
|
+
const result = await Reflect.apply(fn2, this, parsedArgs);
|
|
3082
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;
|
|
@@ -3092,7 +3092,7 @@
|
|
|
3092
3092
|
if (!parsedArgs.success) {
|
|
3093
3093
|
throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
|
|
3094
3094
|
}
|
|
3095
|
-
const result = Reflect.apply(
|
|
3095
|
+
const result = Reflect.apply(fn2, this, parsedArgs.data);
|
|
3096
3096
|
const parsedReturns = me2._def.returns.safeParse(result, params);
|
|
3097
3097
|
if (!parsedReturns.success) {
|
|
3098
3098
|
throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
|
|
@@ -3798,7 +3798,7 @@
|
|
|
3798
3798
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
3799
3799
|
};
|
|
3800
3800
|
const NEVER = INVALID;
|
|
3801
|
-
var z$
|
|
3801
|
+
var z$1 = /* @__PURE__ */ Object.freeze({
|
|
3802
3802
|
__proto__: null,
|
|
3803
3803
|
defaultErrorMap: errorMap,
|
|
3804
3804
|
setErrorMap,
|
|
@@ -3914,8 +3914,8 @@
|
|
|
3914
3914
|
quotelessJson,
|
|
3915
3915
|
ZodError
|
|
3916
3916
|
});
|
|
3917
|
-
function getDefaultExportFromCjs(
|
|
3918
|
-
return
|
|
3917
|
+
function getDefaultExportFromCjs(x) {
|
|
3918
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
3919
3919
|
}
|
|
3920
3920
|
var canonicalize;
|
|
3921
3921
|
var hasRequiredCanonicalize;
|
|
@@ -3956,19 +3956,19 @@
|
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
3958
|
const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
|
-
var
|
|
3960
|
-
var
|
|
3961
|
-
var l$1 = (n2, e, t) =>
|
|
3962
|
-
z$
|
|
3959
|
+
var B$1 = Object.defineProperty;
|
|
3960
|
+
var j = (n2, e, t) => e in n2 ? B$1(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
|
|
3961
|
+
var l$1 = (n2, e, t) => j(n2, typeof e != "symbol" ? e + "" : e, t);
|
|
3962
|
+
z$1.object({
|
|
3963
3963
|
/** Included left border. */
|
|
3964
|
-
from: z$
|
|
3964
|
+
from: z$1.number(),
|
|
3965
3965
|
/** Excluded right border. */
|
|
3966
|
-
to: z$
|
|
3966
|
+
to: z$1.number()
|
|
3967
3967
|
});
|
|
3968
3968
|
function w(n2) {
|
|
3969
3969
|
throw new Error("Unexpected object: " + n2);
|
|
3970
3970
|
}
|
|
3971
|
-
function
|
|
3971
|
+
function En(n2) {
|
|
3972
3972
|
if (!n2 || typeof n2 != "object")
|
|
3973
3973
|
return false;
|
|
3974
3974
|
const e = n2;
|
|
@@ -3985,7 +3985,7 @@
|
|
|
3985
3985
|
return false;
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
function
|
|
3988
|
+
function Nn(n2, e) {
|
|
3989
3989
|
if (n2 !== void 0)
|
|
3990
3990
|
switch (n2.type) {
|
|
3991
3991
|
case "Json":
|
|
@@ -4013,7 +4013,7 @@
|
|
|
4013
4013
|
}
|
|
4014
4014
|
}
|
|
4015
4015
|
}
|
|
4016
|
-
function
|
|
4016
|
+
function K(n2) {
|
|
4017
4017
|
if (!n2 || typeof n2 != "object")
|
|
4018
4018
|
return false;
|
|
4019
4019
|
const e = n2;
|
|
@@ -4030,10 +4030,10 @@
|
|
|
4030
4030
|
return false;
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
|
-
function
|
|
4034
|
-
return
|
|
4033
|
+
function Sn(n2) {
|
|
4034
|
+
return K(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4036
|
+
function Cn(n2) {
|
|
4037
4037
|
switch (n2.type) {
|
|
4038
4038
|
case "Json": {
|
|
4039
4039
|
const e = Object.entries(n2.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
|
|
@@ -4061,7 +4061,7 @@
|
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
4063
|
}
|
|
4064
|
-
function
|
|
4064
|
+
function Jn(n2) {
|
|
4065
4065
|
switch (n2.type) {
|
|
4066
4066
|
case "Json": {
|
|
4067
4067
|
const e = {};
|
|
@@ -4095,7 +4095,7 @@
|
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
4097
|
}
|
|
4098
|
-
function
|
|
4098
|
+
function Fn(n2) {
|
|
4099
4099
|
return {
|
|
4100
4100
|
columnId: n2.id,
|
|
4101
4101
|
spec: n2.spec
|
|
@@ -4105,23 +4105,23 @@
|
|
|
4105
4105
|
const { type: e, name: t, domain: r } = n2, o = { type: e, name: t };
|
|
4106
4106
|
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
4107
4107
|
}
|
|
4108
|
-
function
|
|
4108
|
+
function J(n2) {
|
|
4109
4109
|
return n2.map(p$1);
|
|
4110
4110
|
}
|
|
4111
|
-
function
|
|
4111
|
+
function Rn$1(n2) {
|
|
4112
4112
|
return ke(p$1(n2));
|
|
4113
4113
|
}
|
|
4114
|
-
function
|
|
4114
|
+
function Y$1(n2, e) {
|
|
4115
4115
|
if (n2 === void 0) return e === void 0;
|
|
4116
4116
|
if (e === void 0) return true;
|
|
4117
4117
|
for (const t in e)
|
|
4118
4118
|
if (n2[t] !== e[t]) return false;
|
|
4119
4119
|
return true;
|
|
4120
4120
|
}
|
|
4121
|
-
function
|
|
4122
|
-
return n2.name === e.name &&
|
|
4121
|
+
function Z$1(n2, e) {
|
|
4122
|
+
return n2.name === e.name && Y$1(n2.domain, e.domain);
|
|
4123
4123
|
}
|
|
4124
|
-
function
|
|
4124
|
+
function Un(n2, e) {
|
|
4125
4125
|
return { ...n2, src: h(n2.src, e) };
|
|
4126
4126
|
}
|
|
4127
4127
|
function h(n2, e) {
|
|
@@ -4156,16 +4156,16 @@
|
|
|
4156
4156
|
w(n2);
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4159
|
+
function nn(n2) {
|
|
4160
4160
|
return ke(n2);
|
|
4161
4161
|
}
|
|
4162
|
-
function
|
|
4162
|
+
function P(n2) {
|
|
4163
4163
|
return ke(p$1(n2));
|
|
4164
4164
|
}
|
|
4165
|
-
function
|
|
4165
|
+
function k(n2, e) {
|
|
4166
4166
|
return JSON.stringify([n2, e]);
|
|
4167
4167
|
}
|
|
4168
|
-
class
|
|
4168
|
+
class _n {
|
|
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
|
|
@@ -4180,14 +4180,14 @@
|
|
|
4180
4180
|
t.sort((r, o) => r[0].localeCompare(o[0]));
|
|
4181
4181
|
for (const [r, o] of t) {
|
|
4182
4182
|
for (let s2 = 0; s2 < o.axesSpec.length; s2++) {
|
|
4183
|
-
const a = o.axesSpec[s2], i =
|
|
4183
|
+
const a = o.axesSpec[s2], i = P(a);
|
|
4184
4184
|
this.axes.set(i, { anchor: r, idx: s2 });
|
|
4185
4185
|
}
|
|
4186
4186
|
if (o.domain !== void 0) {
|
|
4187
4187
|
const s2 = Object.entries(o.domain);
|
|
4188
4188
|
s2.sort((a, i) => a[0].localeCompare(i[0])), this.domainPackToAnchor.set(JSON.stringify(s2), r), this.domainPacks.push(s2.map(([a]) => a));
|
|
4189
4189
|
for (const [a, i] of s2) {
|
|
4190
|
-
const u2 =
|
|
4190
|
+
const u2 = k(a, i);
|
|
4191
4191
|
this.domains.set(u2, r);
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
@@ -4222,11 +4222,11 @@
|
|
|
4222
4222
|
for (const [a, i] of Object.entries(e.domain ?? {})) {
|
|
4223
4223
|
if (o !== void 0 && o.has(a))
|
|
4224
4224
|
continue;
|
|
4225
|
-
const u2 =
|
|
4225
|
+
const u2 = k(a, i), c2 = this.domains.get(u2);
|
|
4226
4226
|
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : i;
|
|
4227
4227
|
}
|
|
4228
4228
|
if (r.axes = e.axesSpec.map((a) => {
|
|
4229
|
-
const i =
|
|
4229
|
+
const i = P(a), u2 = this.axes.get(i);
|
|
4230
4230
|
return u2 === void 0 ? p$1(a) : u2;
|
|
4231
4231
|
}), !t || t.length === 0)
|
|
4232
4232
|
return r;
|
|
@@ -4256,10 +4256,10 @@
|
|
|
4256
4256
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
4257
4257
|
*/
|
|
4258
4258
|
deriveS(e, t) {
|
|
4259
|
-
return
|
|
4259
|
+
return nn(this.derive(e, t));
|
|
4260
4260
|
}
|
|
4261
4261
|
}
|
|
4262
|
-
function
|
|
4262
|
+
function Mn(n2, e, t) {
|
|
4263
4263
|
const r = { ...e }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4264
4264
|
if (r.domainAnchor !== void 0) {
|
|
4265
4265
|
const s2 = n2[r.domainAnchor];
|
|
@@ -4286,10 +4286,10 @@
|
|
|
4286
4286
|
}
|
|
4287
4287
|
r.domain = s2;
|
|
4288
4288
|
}
|
|
4289
|
-
return r.axes && (r.axes = r.axes.map((s2) =>
|
|
4289
|
+
return r.axes && (r.axes = r.axes.map((s2) => en(n2, s2))), r;
|
|
4290
4290
|
}
|
|
4291
|
-
function
|
|
4292
|
-
if (!
|
|
4291
|
+
function en(n2, e) {
|
|
4292
|
+
if (!tn(e))
|
|
4293
4293
|
return e;
|
|
4294
4294
|
const t = e.anchor, r = n2[t];
|
|
4295
4295
|
if (!r)
|
|
@@ -4306,7 +4306,7 @@
|
|
|
4306
4306
|
throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
|
|
4307
4307
|
return o[0];
|
|
4308
4308
|
} else if ("id" in e) {
|
|
4309
|
-
const o = r.axesSpec.filter((s2) =>
|
|
4309
|
+
const o = r.axesSpec.filter((s2) => Z$1(e.id, p$1(s2)));
|
|
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,26 +4315,26 @@
|
|
|
4315
4315
|
}
|
|
4316
4316
|
throw new Error("Unsupported axis reference type");
|
|
4317
4317
|
}
|
|
4318
|
-
function
|
|
4318
|
+
function tn(n2) {
|
|
4319
4319
|
return typeof n2 == "object" && "anchor" in n2;
|
|
4320
4320
|
}
|
|
4321
4321
|
function f(n2) {
|
|
4322
4322
|
return n2.kind === "PColumn";
|
|
4323
4323
|
}
|
|
4324
|
-
function
|
|
4324
|
+
function rn(n2) {
|
|
4325
4325
|
return f(n2.spec);
|
|
4326
4326
|
}
|
|
4327
|
-
function
|
|
4328
|
-
if (!
|
|
4327
|
+
function qn(n2) {
|
|
4328
|
+
if (!rn(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
|
|
4329
4329
|
return n2;
|
|
4330
4330
|
}
|
|
4331
|
-
function
|
|
4331
|
+
function Wn(n2, e) {
|
|
4332
4332
|
return n2 === void 0 ? void 0 : {
|
|
4333
4333
|
...n2,
|
|
4334
4334
|
data: e(n2.data)
|
|
4335
4335
|
};
|
|
4336
4336
|
}
|
|
4337
|
-
function
|
|
4337
|
+
function Xn(n2) {
|
|
4338
4338
|
const e = /* @__PURE__ */ new Map(), t = (r) => {
|
|
4339
4339
|
switch (r.type) {
|
|
4340
4340
|
case "column":
|
|
@@ -4359,7 +4359,7 @@
|
|
|
4359
4359
|
};
|
|
4360
4360
|
return t(n2), [...e.values()];
|
|
4361
4361
|
}
|
|
4362
|
-
function
|
|
4362
|
+
function E$1(n2, e) {
|
|
4363
4363
|
if (n2.name !== void 0 && n2.name !== e.name)
|
|
4364
4364
|
return false;
|
|
4365
4365
|
if (n2.type !== void 0) {
|
|
@@ -4397,13 +4397,13 @@
|
|
|
4397
4397
|
const t = n2.axesSpec.map(p$1);
|
|
4398
4398
|
if (e.partialAxesMatch) {
|
|
4399
4399
|
for (const r of e.axes)
|
|
4400
|
-
if (!t.some((o) =>
|
|
4400
|
+
if (!t.some((o) => E$1(r, o)))
|
|
4401
4401
|
return false;
|
|
4402
4402
|
} else {
|
|
4403
4403
|
if (t.length !== e.axes.length)
|
|
4404
4404
|
return false;
|
|
4405
4405
|
for (let r = 0; r < e.axes.length; r++)
|
|
4406
|
-
if (!
|
|
4406
|
+
if (!E$1(e.axes[r], t[r]))
|
|
4407
4407
|
return false;
|
|
4408
4408
|
}
|
|
4409
4409
|
}
|
|
@@ -4423,28 +4423,28 @@
|
|
|
4423
4423
|
}
|
|
4424
4424
|
return true;
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4426
|
+
function Gn(n2) {
|
|
4427
4427
|
return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4429
|
+
function Qn(n2) {
|
|
4430
4430
|
const e = {
|
|
4431
4431
|
kind: n2.kind,
|
|
4432
4432
|
name: n2.name
|
|
4433
4433
|
};
|
|
4434
|
-
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec =
|
|
4434
|
+
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = J(n2.axesSpec)), ke(e);
|
|
4435
4435
|
}
|
|
4436
|
-
z$
|
|
4437
|
-
__isRef: z$
|
|
4438
|
-
blockId: z$
|
|
4439
|
-
name: z$
|
|
4440
|
-
requireEnrichments: z$
|
|
4436
|
+
z$1.object({
|
|
4437
|
+
__isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
4438
|
+
blockId: z$1.string().describe("Upstream block id"),
|
|
4439
|
+
name: z$1.string().describe("Name of the output provided to the upstream block's output context"),
|
|
4440
|
+
requireEnrichments: z$1.literal(true).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")
|
|
4441
4441
|
}).describe(
|
|
4442
4442
|
"Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees."
|
|
4443
4443
|
).readonly();
|
|
4444
|
-
function
|
|
4444
|
+
function ne(n2) {
|
|
4445
4445
|
return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
|
|
4446
4446
|
}
|
|
4447
|
-
function
|
|
4447
|
+
function te$1(n2, e = true) {
|
|
4448
4448
|
if (e)
|
|
4449
4449
|
return {
|
|
4450
4450
|
...n2,
|
|
@@ -4455,12 +4455,12 @@
|
|
|
4455
4455
|
return r;
|
|
4456
4456
|
}
|
|
4457
4457
|
}
|
|
4458
|
-
function
|
|
4458
|
+
function oe$1(n2, e) {
|
|
4459
4459
|
return n2.ok ? { ok: true, value: e(n2.value) } : n2;
|
|
4460
4460
|
}
|
|
4461
|
-
const
|
|
4462
|
-
z$
|
|
4463
|
-
function
|
|
4461
|
+
const fn = 24;
|
|
4462
|
+
z$1.string().length(fn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4463
|
+
function ce$1(n2) {
|
|
4464
4464
|
return JSON.parse(n2);
|
|
4465
4465
|
}
|
|
4466
4466
|
var stringify = { exports: {} };
|
|
@@ -4494,33 +4494,33 @@
|
|
|
4494
4494
|
return stringify.exports;
|
|
4495
4495
|
}
|
|
4496
4496
|
requireStringify();
|
|
4497
|
-
const l = z$
|
|
4498
|
-
type: z$
|
|
4499
|
-
name: z$
|
|
4500
|
-
message: z$
|
|
4497
|
+
const l = z$1.object({
|
|
4498
|
+
type: z$1.literal("PlError"),
|
|
4499
|
+
name: z$1.string(),
|
|
4500
|
+
message: z$1.string(),
|
|
4501
4501
|
/** The message with all details needed for SDK developers. */
|
|
4502
|
-
fullMessage: z$
|
|
4503
|
-
stack: z$
|
|
4502
|
+
fullMessage: z$1.string().optional(),
|
|
4503
|
+
stack: z$1.string().optional()
|
|
4504
4504
|
}), c = l.extend({
|
|
4505
|
-
cause: z$
|
|
4506
|
-
errors: z$
|
|
4507
|
-
}), m$1 = z$
|
|
4508
|
-
type: z$
|
|
4509
|
-
name: z$
|
|
4510
|
-
message: z$
|
|
4511
|
-
stack: z$
|
|
4505
|
+
cause: z$1.lazy(() => s).optional(),
|
|
4506
|
+
errors: z$1.lazy(() => s.array()).optional()
|
|
4507
|
+
}), m$1 = z$1.object({
|
|
4508
|
+
type: z$1.literal("StandardError"),
|
|
4509
|
+
name: z$1.string(),
|
|
4510
|
+
message: z$1.string(),
|
|
4511
|
+
stack: z$1.string().optional()
|
|
4512
4512
|
}), p = m$1.extend({
|
|
4513
|
-
cause: z$
|
|
4514
|
-
errors: z$
|
|
4515
|
-
}), s = z$
|
|
4516
|
-
const u = z$
|
|
4517
|
-
name: z$
|
|
4518
|
-
message: z$
|
|
4519
|
-
fullMessage: z$
|
|
4520
|
-
stack: z$
|
|
4513
|
+
cause: z$1.lazy(() => s).optional(),
|
|
4514
|
+
errors: z$1.lazy(() => s.array()).optional()
|
|
4515
|
+
}), s = z$1.union([p, c]);
|
|
4516
|
+
const u = z$1.object({
|
|
4517
|
+
name: z$1.string(),
|
|
4518
|
+
message: z$1.string(),
|
|
4519
|
+
fullMessage: z$1.string().optional(),
|
|
4520
|
+
stack: z$1.string().optional()
|
|
4521
4521
|
}), n = u.extend({
|
|
4522
|
-
cause: z$
|
|
4523
|
-
errors: z$
|
|
4522
|
+
cause: z$1.lazy(() => n).optional(),
|
|
4523
|
+
errors: z$1.lazy(() => n.array()).optional()
|
|
4524
4524
|
});
|
|
4525
4525
|
var qe = Object.defineProperty;
|
|
4526
4526
|
var ze = (t, e, n2) => e in t ? qe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
@@ -4528,7 +4528,7 @@
|
|
|
4528
4528
|
function re(t) {
|
|
4529
4529
|
return { type: "Immediate", value: t };
|
|
4530
4530
|
}
|
|
4531
|
-
function
|
|
4531
|
+
function pt() {
|
|
4532
4532
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4533
4533
|
}
|
|
4534
4534
|
function De(t) {
|
|
@@ -4537,7 +4537,7 @@
|
|
|
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 ft() {
|
|
4541
4541
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4542
4542
|
}
|
|
4543
4543
|
function m() {
|
|
@@ -4545,13 +4545,13 @@
|
|
|
4545
4545
|
throw new Error("Not in config rendering context");
|
|
4546
4546
|
}
|
|
4547
4547
|
function H(t, e) {
|
|
4548
|
-
const n2 =
|
|
4548
|
+
const n2 = ft();
|
|
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
4553
|
const ce = /* @__PURE__ */ new Map();
|
|
4554
|
-
function
|
|
4554
|
+
function ht(t, e) {
|
|
4555
4555
|
t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
|
|
4556
4556
|
for (const r of ce.get(t))
|
|
4557
4557
|
r(n2);
|
|
@@ -4561,7 +4561,7 @@
|
|
|
4561
4561
|
constructor(e, n2 = (r) => r) {
|
|
4562
4562
|
O(this, "isResolved", false);
|
|
4563
4563
|
O(this, "resolvedValue");
|
|
4564
|
-
this.handle = e, this.postProcess = n2,
|
|
4564
|
+
this.handle = e, this.postProcess = n2, ht(e, (r) => {
|
|
4565
4565
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4566
4566
|
});
|
|
4567
4567
|
}
|
|
@@ -4684,7 +4684,7 @@
|
|
|
4684
4684
|
getPColumns(e = false, n2 = "") {
|
|
4685
4685
|
const r = this.parsePObjectCollection(e, n2);
|
|
4686
4686
|
return r === void 0 ? void 0 : Object.entries(r).map(([, s2]) => {
|
|
4687
|
-
if (!
|
|
4687
|
+
if (!rn(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
|
|
4688
4688
|
return s2;
|
|
4689
4689
|
});
|
|
4690
4690
|
}
|
|
@@ -4702,7 +4702,7 @@
|
|
|
4702
4702
|
const i = {};
|
|
4703
4703
|
for (const [s2, o] of Object.entries(r)) {
|
|
4704
4704
|
const a = [...this.resolvePath, s2];
|
|
4705
|
-
i[s2] =
|
|
4705
|
+
i[s2] = Wn(o, (l2) => new E(l2, a));
|
|
4706
4706
|
}
|
|
4707
4707
|
return i;
|
|
4708
4708
|
}
|
|
@@ -4802,45 +4802,45 @@
|
|
|
4802
4802
|
}
|
|
4803
4803
|
}
|
|
4804
4804
|
const Re = "staging", Fe = "main";
|
|
4805
|
-
const
|
|
4806
|
-
type: z$
|
|
4807
|
-
importance: z$
|
|
4808
|
-
id: z$
|
|
4809
|
-
label: z$
|
|
4810
|
-
}),
|
|
4811
|
-
function
|
|
4805
|
+
const yt = "pl7.app/label", vt = "pl7.app/trace", bt = z$1.object({
|
|
4806
|
+
type: z$1.string(),
|
|
4807
|
+
importance: z$1.number().optional(),
|
|
4808
|
+
id: z$1.string().optional(),
|
|
4809
|
+
label: z$1.string()
|
|
4810
|
+
}), wt = z$1.array(bt), At = 1e-3, xt = "__LABEL__", Pe = "__LABEL__@1";
|
|
4811
|
+
function je(t, e, n2 = {}) {
|
|
4812
4812
|
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
|
|
4813
|
-
var
|
|
4813
|
+
var P2, R;
|
|
4814
4814
|
const w2 = e(f2);
|
|
4815
4815
|
let p2, g, b;
|
|
4816
4816
|
"spec" in w2 && typeof w2.spec == "object" ? (p2 = w2.spec, g = w2.prefixTrace, b = w2.suffixTrace) : p2 = w2;
|
|
4817
|
-
const h2 = (
|
|
4817
|
+
const h2 = (P2 = p2.annotations) == null ? void 0 : P2[yt], I = (R = p2.annotations) == null ? void 0 : R[vt], x = (I ? wt.safeParse(JSON.parse(I)).data : void 0) ?? [], v = [
|
|
4818
4818
|
...g ?? [],
|
|
4819
|
-
...
|
|
4819
|
+
...x,
|
|
4820
4820
|
...b ?? []
|
|
4821
4821
|
];
|
|
4822
4822
|
if (h2 !== void 0) {
|
|
4823
|
-
const k2 = { label: h2, type:
|
|
4823
|
+
const k2 = { label: h2, type: xt, importance: -2 };
|
|
4824
4824
|
n2.addLabelAsSuffix ? v.push(k2) : v.splice(0, 0, k2);
|
|
4825
4825
|
}
|
|
4826
|
-
const
|
|
4826
|
+
const A = [], L = /* @__PURE__ */ new Map();
|
|
4827
4827
|
for (let k2 = v.length - 1; k2 >= 0; --k2) {
|
|
4828
|
-
const { type: W } = v[k2],
|
|
4828
|
+
const { type: W } = v[k2], j2 = v[k2].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
|
|
4829
4829
|
L.set(W, $);
|
|
4830
|
-
const
|
|
4831
|
-
s2.set(
|
|
4832
|
-
|
|
4830
|
+
const F = `${W}@${$}`;
|
|
4831
|
+
s2.set(F, (s2.get(F) ?? 0) + 1), r.set(
|
|
4832
|
+
F,
|
|
4833
4833
|
Math.max(
|
|
4834
|
-
r.get(
|
|
4835
|
-
|
|
4834
|
+
r.get(F) ?? Number.NEGATIVE_INFINITY,
|
|
4835
|
+
j2 - (v.length - k2) * At
|
|
4836
4836
|
)
|
|
4837
|
-
),
|
|
4837
|
+
), A.push({ ...v[k2], fullType: F, occurrenceIndex: $ });
|
|
4838
4838
|
}
|
|
4839
|
-
return
|
|
4839
|
+
return A.reverse(), {
|
|
4840
4840
|
value: f2,
|
|
4841
4841
|
spec: p2,
|
|
4842
4842
|
label: h2,
|
|
4843
|
-
fullTrace:
|
|
4843
|
+
fullTrace: A
|
|
4844
4844
|
};
|
|
4845
4845
|
}), a = [], l2 = [], u2 = [...r];
|
|
4846
4846
|
u2.sort(([, f2], [, w2]) => w2 - f2);
|
|
@@ -4857,9 +4857,9 @@
|
|
|
4857
4857
|
value: b.value
|
|
4858
4858
|
});
|
|
4859
4859
|
else return;
|
|
4860
|
-
const
|
|
4860
|
+
const I = h2.map((v) => v.label), x = n2.separator ?? " / ";
|
|
4861
4861
|
p2.push({
|
|
4862
|
-
label:
|
|
4862
|
+
label: I.join(x),
|
|
4863
4863
|
value: b.value
|
|
4864
4864
|
});
|
|
4865
4865
|
}
|
|
@@ -4881,7 +4881,7 @@
|
|
|
4881
4881
|
}
|
|
4882
4882
|
return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4883
4883
|
}
|
|
4884
|
-
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned",
|
|
4884
|
+
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", Ve = Z + "Partitioned/", ae = Ve + "JsonPartitioned", z = Ve + "BinaryPartitioned";
|
|
4885
4885
|
const me = (t) => {
|
|
4886
4886
|
if (t.endsWith(".index"))
|
|
4887
4887
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
@@ -4889,7 +4889,7 @@
|
|
|
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 Ct(t) {
|
|
4893
4893
|
if (!t) return;
|
|
4894
4894
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4895
4895
|
let i = 0;
|
|
@@ -4935,7 +4935,7 @@
|
|
|
4935
4935
|
}
|
|
4936
4936
|
return { data: r, keyLength: i };
|
|
4937
4937
|
}
|
|
4938
|
-
function
|
|
4938
|
+
function Pt(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 = [];
|
|
@@ -4954,11 +4954,11 @@
|
|
|
4954
4954
|
}
|
|
4955
4955
|
return r.map((i) => Array.from(i.values()));
|
|
4956
4956
|
}
|
|
4957
|
-
function
|
|
4957
|
+
function St(t) {
|
|
4958
4958
|
if (t === void 0) return;
|
|
4959
|
-
if (
|
|
4960
|
-
return
|
|
4961
|
-
const e =
|
|
4959
|
+
if (K(t))
|
|
4960
|
+
return Pt(t);
|
|
4961
|
+
const e = Ct(t);
|
|
4962
4962
|
if (!e) return;
|
|
4963
4963
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4964
4964
|
for (let s2 = 0; s2 < r; ++s2)
|
|
@@ -5069,15 +5069,15 @@
|
|
|
5069
5069
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
5072
|
-
function
|
|
5072
|
+
function _t(t) {
|
|
5073
5073
|
if (t !== void 0) {
|
|
5074
|
-
if (
|
|
5075
|
-
if (
|
|
5074
|
+
if (K(t)) return t;
|
|
5075
|
+
if (En(t)) return Cn(t);
|
|
5076
5076
|
if (t instanceof E) return ye(t);
|
|
5077
5077
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5078
5078
|
}
|
|
5079
5079
|
}
|
|
5080
|
-
function
|
|
5080
|
+
function It(t, e) {
|
|
5081
5081
|
const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
|
|
5082
5082
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5083
5083
|
const { partitionKeyLength: s2 } = t;
|
|
@@ -5137,35 +5137,35 @@
|
|
|
5137
5137
|
}
|
|
5138
5138
|
}
|
|
5139
5139
|
}
|
|
5140
|
-
function
|
|
5140
|
+
function Lt(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 Tt {
|
|
5147
5147
|
constructor(e) {
|
|
5148
5148
|
this.columns = e;
|
|
5149
5149
|
}
|
|
5150
5150
|
selectColumns(e) {
|
|
5151
|
-
const n2 = typeof e == "function" ? e :
|
|
5151
|
+
const n2 = typeof e == "function" ? e : Gn(e);
|
|
5152
5152
|
return this.columns.filter((r) => n2(r.spec));
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
|
-
function
|
|
5155
|
+
function Et(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => ({
|
|
5158
|
-
type: `split:${
|
|
5158
|
+
type: `split:${Rn$1(e.axisId)}`,
|
|
5159
5159
|
label: e.label,
|
|
5160
5160
|
importance: 1e6
|
|
5161
5161
|
// High importance for split filters in labels
|
|
5162
5162
|
}));
|
|
5163
5163
|
}
|
|
5164
|
-
function
|
|
5164
|
+
function kt(t) {
|
|
5165
5165
|
if (t)
|
|
5166
5166
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5167
5167
|
}
|
|
5168
|
-
function
|
|
5168
|
+
function Ot(t, e) {
|
|
5169
5169
|
if (!e || e.length === 0) return t;
|
|
5170
5170
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5171
5171
|
return ke({ id: t, axisFilters: n2 });
|
|
@@ -5175,7 +5175,7 @@
|
|
|
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 Dt(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);
|
|
@@ -5186,7 +5186,7 @@
|
|
|
5186
5186
|
class le {
|
|
5187
5187
|
constructor() {
|
|
5188
5188
|
O(this, "defaultProviderStore", []);
|
|
5189
|
-
O(this, "providers", [new
|
|
5189
|
+
O(this, "providers", [new Tt(this.defaultProviderStore)]);
|
|
5190
5190
|
O(this, "axisLabelProviders", []);
|
|
5191
5191
|
}
|
|
5192
5192
|
addColumnProvider(e) {
|
|
@@ -5219,9 +5219,9 @@
|
|
|
5219
5219
|
if (Se(g)) {
|
|
5220
5220
|
if (!r)
|
|
5221
5221
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5222
|
-
return
|
|
5222
|
+
return Gn(Mn(r.anchors, g, n2));
|
|
5223
5223
|
} else
|
|
5224
|
-
return
|
|
5224
|
+
return Gn(g);
|
|
5225
5225
|
});
|
|
5226
5226
|
u2 = (g) => p2.some((b) => b(g));
|
|
5227
5227
|
}
|
|
@@ -5232,108 +5232,108 @@
|
|
|
5232
5232
|
if (g) {
|
|
5233
5233
|
if (!r)
|
|
5234
5234
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5235
|
-
b =
|
|
5235
|
+
b = Mn(r.anchors, p2, n2);
|
|
5236
5236
|
} else
|
|
5237
5237
|
b = p2;
|
|
5238
|
-
const h2 = /* @__PURE__ */ new Set(),
|
|
5239
|
-
for (const
|
|
5240
|
-
const L =
|
|
5241
|
-
for (const
|
|
5242
|
-
if (u2(
|
|
5243
|
-
if (h2.has(
|
|
5244
|
-
throw new Error(`Duplicate column id ${
|
|
5245
|
-
const
|
|
5246
|
-
y.has(
|
|
5238
|
+
const h2 = /* @__PURE__ */ new Set(), I = [];
|
|
5239
|
+
for (const A of this.providers) {
|
|
5240
|
+
const L = A.selectColumns(b);
|
|
5241
|
+
for (const P2 of L) {
|
|
5242
|
+
if (u2(P2.spec)) continue;
|
|
5243
|
+
if (h2.has(P2.id))
|
|
5244
|
+
throw new Error(`Duplicate column id ${P2.id} in provider ${A.constructor.name}`);
|
|
5245
|
+
const R = Qn(P2.spec);
|
|
5246
|
+
y.has(R) || (h2.add(P2.id), y.add(R), I.push(P2));
|
|
5247
5247
|
}
|
|
5248
5248
|
}
|
|
5249
|
-
if (
|
|
5250
|
-
const
|
|
5251
|
-
for (const
|
|
5252
|
-
if (!f(
|
|
5253
|
-
const L =
|
|
5249
|
+
if (I.length === 0) continue;
|
|
5250
|
+
const x = Dt(p2), v = x.length > 0;
|
|
5251
|
+
for (const A of I) {
|
|
5252
|
+
if (!f(A.spec)) continue;
|
|
5253
|
+
const L = A.spec;
|
|
5254
5254
|
if (v) {
|
|
5255
|
-
if (
|
|
5256
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
5257
|
-
const
|
|
5258
|
-
if (!
|
|
5255
|
+
if (Lt(A.data))
|
|
5256
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
|
|
5257
|
+
const P2 = _t(A.data);
|
|
5258
|
+
if (!P2) {
|
|
5259
5259
|
if (s2) continue;
|
|
5260
5260
|
return;
|
|
5261
5261
|
}
|
|
5262
|
-
if (!
|
|
5263
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${
|
|
5264
|
-
const
|
|
5265
|
-
if (k2 >=
|
|
5266
|
-
throw new Error(`Not enough partition keys (${
|
|
5267
|
-
const W =
|
|
5268
|
-
if (
|
|
5269
|
-
if (
|
|
5262
|
+
if (!Sn(P2))
|
|
5263
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P2.type} for column ${A.id}`);
|
|
5264
|
+
const R = St(P2), k2 = x[x.length - 1];
|
|
5265
|
+
if (k2 >= P2.partitionKeyLength)
|
|
5266
|
+
throw new Error(`Not enough partition keys (${P2.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
|
|
5267
|
+
const W = x.map((S) => this.findLabels(p$1(L.axesSpec[S]))), j2 = [], $ = (S, G) => {
|
|
5268
|
+
if (G >= x.length) {
|
|
5269
|
+
if (j2.push([...S]), j2.length > 1e4)
|
|
5270
5270
|
throw new Error("Too many key combinations, aborting.");
|
|
5271
5271
|
return;
|
|
5272
5272
|
}
|
|
5273
|
-
const
|
|
5274
|
-
if (
|
|
5275
|
-
throw new Error(`Axis index ${
|
|
5276
|
-
const N2 =
|
|
5273
|
+
const V = x[G];
|
|
5274
|
+
if (V >= R.length)
|
|
5275
|
+
throw new Error(`Axis index ${V} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A.id}`);
|
|
5276
|
+
const N2 = R[V];
|
|
5277
5277
|
if (!N2 || N2.length === 0) {
|
|
5278
|
-
|
|
5278
|
+
j2.length = 0;
|
|
5279
5279
|
return;
|
|
5280
5280
|
}
|
|
5281
|
-
for (const
|
|
5282
|
-
S.push(
|
|
5281
|
+
for (const ee of N2)
|
|
5282
|
+
S.push(ee), $(S, G + 1), S.pop();
|
|
5283
5283
|
};
|
|
5284
|
-
if ($([], 0),
|
|
5284
|
+
if ($([], 0), j2.length === 0)
|
|
5285
5285
|
continue;
|
|
5286
|
-
const
|
|
5287
|
-
for (let S =
|
|
5288
|
-
|
|
5289
|
-
const We = { ...L, axesSpec:
|
|
5290
|
-
for (const S of
|
|
5291
|
-
const
|
|
5292
|
-
const
|
|
5293
|
-
return { axisIdx:
|
|
5286
|
+
const F = [...L.axesSpec], Be = x.map((S) => S);
|
|
5287
|
+
for (let S = x.length - 1; S >= 0; S--)
|
|
5288
|
+
F.splice(x[S], 1);
|
|
5289
|
+
const We = { ...L, axesSpec: F };
|
|
5290
|
+
for (const S of j2) {
|
|
5291
|
+
const G = S.map((V, N2) => {
|
|
5292
|
+
const ee = Be[N2], Ge = p$1(L.axesSpec[ee]), ue = W[N2], He = (ue == null ? void 0 : ue[V]) ?? String(V);
|
|
5293
|
+
return { axisIdx: ee, axisId: Ge, value: V, label: He };
|
|
5294
5294
|
});
|
|
5295
5295
|
d.push({
|
|
5296
5296
|
type: "split",
|
|
5297
|
-
originalColumn:
|
|
5297
|
+
originalColumn: A,
|
|
5298
5298
|
spec: L,
|
|
5299
5299
|
adjustedSpec: We,
|
|
5300
|
-
dataEntries:
|
|
5301
|
-
axisFilters:
|
|
5300
|
+
dataEntries: P2,
|
|
5301
|
+
axisFilters: G
|
|
5302
5302
|
});
|
|
5303
5303
|
}
|
|
5304
5304
|
} else
|
|
5305
5305
|
d.push({
|
|
5306
5306
|
type: "direct",
|
|
5307
|
-
originalColumn:
|
|
5307
|
+
originalColumn: A,
|
|
5308
5308
|
spec: L,
|
|
5309
5309
|
adjustedSpec: L
|
|
5310
5310
|
});
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
5313
5313
|
if (d.length === 0) return [];
|
|
5314
|
-
const f$1 =
|
|
5314
|
+
const f$1 = je(
|
|
5315
5315
|
d,
|
|
5316
5316
|
(p2) => ({
|
|
5317
5317
|
spec: p2.spec,
|
|
5318
|
-
suffixTrace: p2.type === "split" ?
|
|
5318
|
+
suffixTrace: p2.type === "split" ? Et(p2.axisFilters) : void 0
|
|
5319
5319
|
}),
|
|
5320
5320
|
l2
|
|
5321
5321
|
), w2 = [];
|
|
5322
5322
|
for (const { value: p2, label: g } of f$1) {
|
|
5323
|
-
const { originalColumn: b, spec: h2 } = p2,
|
|
5323
|
+
const { originalColumn: b, spec: h2 } = p2, I = p2.type === "split" ? p2.axisFilters : void 0, x = kt(I);
|
|
5324
5324
|
let v;
|
|
5325
|
-
r ? v = r.deriveS(h2,
|
|
5326
|
-
let
|
|
5327
|
-
o && (
|
|
5328
|
-
...
|
|
5325
|
+
r ? v = r.deriveS(h2, x) : v = Ot(b.id, x);
|
|
5326
|
+
let A = { ...p2.adjustedSpec };
|
|
5327
|
+
o && (A = {
|
|
5328
|
+
...A,
|
|
5329
5329
|
annotations: {
|
|
5330
|
-
...
|
|
5330
|
+
...A.annotations ?? {},
|
|
5331
5331
|
"pl7.app/label": g
|
|
5332
5332
|
}
|
|
5333
5333
|
}), w2.push({
|
|
5334
5334
|
id: v,
|
|
5335
|
-
spec:
|
|
5336
|
-
data: () => p2.type === "split" ?
|
|
5335
|
+
spec: A,
|
|
5336
|
+
data: () => p2.type === "split" ? Jn(It(p2.dataEntries, x)) : p2.originalColumn.data,
|
|
5337
5337
|
label: g
|
|
5338
5338
|
});
|
|
5339
5339
|
}
|
|
@@ -5370,9 +5370,9 @@
|
|
|
5370
5370
|
return true;
|
|
5371
5371
|
}
|
|
5372
5372
|
function _e(t) {
|
|
5373
|
-
return
|
|
5373
|
+
return Wn(t, (e) => e instanceof E ? e.handle : En(e) ? Nn(e, (n2) => n2.handle) : e);
|
|
5374
5374
|
}
|
|
5375
|
-
class
|
|
5375
|
+
class Rt {
|
|
5376
5376
|
constructor() {
|
|
5377
5377
|
O(this, "ctx", m());
|
|
5378
5378
|
}
|
|
@@ -5383,28 +5383,28 @@
|
|
|
5383
5383
|
return this.ctx.calculateOptions(e);
|
|
5384
5384
|
}
|
|
5385
5385
|
getOptions(e, n2) {
|
|
5386
|
-
const r = typeof e == "function" ? e :
|
|
5386
|
+
const r = typeof e == "function" ? e : Gn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5387
5387
|
let s2 = {}, o = false;
|
|
5388
|
-
return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ?
|
|
5389
|
-
ref:
|
|
5388
|
+
return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ? je(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5389
|
+
ref: te$1(a, o),
|
|
5390
5390
|
label: l2
|
|
5391
5391
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5392
|
-
ref:
|
|
5392
|
+
ref: te$1(a, o),
|
|
5393
5393
|
label: s2(l2, a)
|
|
5394
5394
|
}));
|
|
5395
5395
|
}
|
|
5396
5396
|
resolveAnchorCtx(e) {
|
|
5397
|
-
if (e instanceof
|
|
5397
|
+
if (e instanceof _n) return e;
|
|
5398
5398
|
const n2 = {};
|
|
5399
5399
|
for (const [r, i] of Object.entries(e))
|
|
5400
|
-
if (
|
|
5400
|
+
if (ne(i)) {
|
|
5401
5401
|
const s2 = this.getPColumnSpecByRef(i);
|
|
5402
5402
|
if (!s2)
|
|
5403
5403
|
return;
|
|
5404
5404
|
n2[r] = s2;
|
|
5405
5405
|
} else
|
|
5406
5406
|
n2[r] = i;
|
|
5407
|
-
return new
|
|
5407
|
+
return new _n(n2);
|
|
5408
5408
|
}
|
|
5409
5409
|
/**
|
|
5410
5410
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5497,7 +5497,7 @@
|
|
|
5497
5497
|
ref: n2.ref,
|
|
5498
5498
|
obj: {
|
|
5499
5499
|
...n2.obj,
|
|
5500
|
-
data:
|
|
5500
|
+
data: oe$1(
|
|
5501
5501
|
n2.obj.data,
|
|
5502
5502
|
(r) => new E(r, [n2.ref.blockId, n2.ref.name])
|
|
5503
5503
|
)
|
|
@@ -5526,7 +5526,7 @@
|
|
|
5526
5526
|
)) == null ? void 0 : r.obj;
|
|
5527
5527
|
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5528
5528
|
if (n2)
|
|
5529
|
-
return
|
|
5529
|
+
return Wn(
|
|
5530
5530
|
n2,
|
|
5531
5531
|
(i) => new E(i, [e.blockId, e.name])
|
|
5532
5532
|
);
|
|
@@ -5539,7 +5539,7 @@
|
|
|
5539
5539
|
getPColumnByRef(e) {
|
|
5540
5540
|
const n2 = this.getDataByRef(e);
|
|
5541
5541
|
if (n2)
|
|
5542
|
-
return
|
|
5542
|
+
return qn(n2);
|
|
5543
5543
|
}
|
|
5544
5544
|
/**
|
|
5545
5545
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -5589,7 +5589,7 @@
|
|
|
5589
5589
|
findLabels(e) {
|
|
5590
5590
|
const n2 = this.getData();
|
|
5591
5591
|
for (const r of n2.entries) {
|
|
5592
|
-
if (!
|
|
5592
|
+
if (!rn(r.obj)) continue;
|
|
5593
5593
|
const i = r.obj.spec;
|
|
5594
5594
|
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && de(e.domain, i.axesSpec[0].domain)) {
|
|
5595
5595
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
@@ -5610,7 +5610,7 @@
|
|
|
5610
5610
|
* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
|
|
5611
5611
|
*/
|
|
5612
5612
|
selectColumns(e) {
|
|
5613
|
-
const n2 = typeof e == "function" ? e :
|
|
5613
|
+
const n2 = typeof e == "function" ? e : Gn(e);
|
|
5614
5614
|
return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
|
|
5615
5615
|
const o = s2;
|
|
5616
5616
|
let a = null;
|
|
@@ -5647,7 +5647,7 @@
|
|
|
5647
5647
|
O(this, "args");
|
|
5648
5648
|
O(this, "uiState");
|
|
5649
5649
|
O(this, "_activeArgsCache");
|
|
5650
|
-
O(this, "resultPool", new
|
|
5650
|
+
O(this, "resultPool", new Rt());
|
|
5651
5651
|
this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5652
5652
|
}
|
|
5653
5653
|
/**
|
|
@@ -5685,7 +5685,7 @@
|
|
|
5685
5685
|
}
|
|
5686
5686
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5687
5687
|
var i;
|
|
5688
|
-
const n2 = e.some((s2) => !(s2.data instanceof E) ||
|
|
5688
|
+
const n2 = e.some((s2) => !(s2.data instanceof E) || En(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5689
5689
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5690
5690
|
}
|
|
5691
5691
|
// TODO remove all non-PColumn fields
|
|
@@ -5703,8 +5703,8 @@
|
|
|
5703
5703
|
},
|
|
5704
5704
|
filters: e.filters ?? [],
|
|
5705
5705
|
sorting: e.sorting ?? []
|
|
5706
|
-
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(
|
|
5707
|
-
|
|
5706
|
+
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Xn(n2.src)), this.ctx.createPTable(
|
|
5707
|
+
Un(n2, (r) => _e(r))
|
|
5708
5708
|
);
|
|
5709
5709
|
}
|
|
5710
5710
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5724,13 +5724,13 @@
|
|
|
5724
5724
|
this.ctx.logError(e);
|
|
5725
5725
|
}
|
|
5726
5726
|
}
|
|
5727
|
-
const Y = "1.
|
|
5728
|
-
function
|
|
5727
|
+
const Y = "1.34.0";
|
|
5728
|
+
function Ft(t) {
|
|
5729
5729
|
return t.__renderLambda === true;
|
|
5730
5730
|
}
|
|
5731
5731
|
function pe(t) {
|
|
5732
5732
|
if (t !== void 0)
|
|
5733
|
-
return
|
|
5733
|
+
return Ft(t) ? t.handle : t;
|
|
5734
5734
|
}
|
|
5735
5735
|
class T {
|
|
5736
5736
|
constructor(e, n2, r, i, s2, o, a, l2) {
|
|
@@ -5930,7 +5930,7 @@
|
|
|
5930
5930
|
Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
|
|
5931
5931
|
)
|
|
5932
5932
|
};
|
|
5933
|
-
return
|
|
5933
|
+
return pt() ? De({ sdkVersion: Y }) : { config: e };
|
|
5934
5934
|
}
|
|
5935
5935
|
}
|
|
5936
5936
|
function ve(t) {
|
|
@@ -5951,10 +5951,10 @@
|
|
|
5951
5951
|
for (const a of r)
|
|
5952
5952
|
for (const l2 of a.spec.axesSpec) {
|
|
5953
5953
|
const u2 = p$1(l2);
|
|
5954
|
-
i.some((c2) =>
|
|
5954
|
+
i.some((c2) => Z$1(c2, u2)) || i.push(u2);
|
|
5955
5955
|
}
|
|
5956
5956
|
for (const a of n2) {
|
|
5957
|
-
const l2 = p$1(a.spec.axesSpec[0]), u2 = i.findIndex((c2) =>
|
|
5957
|
+
const l2 = p$1(a.spec.axesSpec[0]), u2 = i.findIndex((c2) => Z$1(c2, l2));
|
|
5958
5958
|
u2 !== -1 && i.splice(u2, 1);
|
|
5959
5959
|
}
|
|
5960
5960
|
const s2 = (a, l2) => {
|
|
@@ -5965,7 +5965,7 @@
|
|
|
5965
5965
|
return u2;
|
|
5966
5966
|
}, o = [];
|
|
5967
5967
|
for (const a of e) {
|
|
5968
|
-
const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((d) =>
|
|
5968
|
+
const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((d) => Z$1(d, u2));
|
|
5969
5969
|
if (c2 !== -1) {
|
|
5970
5970
|
const d = i[c2], y = Object.keys(d.domain ?? {}).length, f2 = Object.keys(l2.domain ?? {}).length;
|
|
5971
5971
|
y > f2 ? o.push({
|
|
@@ -6021,39 +6021,39 @@
|
|
|
6021
6021
|
sorting: i
|
|
6022
6022
|
};
|
|
6023
6023
|
}
|
|
6024
|
-
function
|
|
6024
|
+
function Dn(t, e, n2, r) {
|
|
6025
6025
|
var u2, c2;
|
|
6026
6026
|
Array.isArray(r) && (r = { filters: r });
|
|
6027
6027
|
const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((c2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : c2.sorting) ?? [], a = Ne(t.resultPool);
|
|
6028
6028
|
if (!a) return;
|
|
6029
|
-
const l2 = Je(e.map(
|
|
6029
|
+
const l2 = Je(e.map(Fn), a);
|
|
6030
6030
|
if (Me([...e, ...l2]))
|
|
6031
6031
|
return t.createPTable(
|
|
6032
6032
|
Ue(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
|
|
6033
6033
|
);
|
|
6034
6034
|
}
|
|
6035
|
-
function
|
|
6035
|
+
function Kt(t) {
|
|
6036
6036
|
var e;
|
|
6037
6037
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
|
|
6038
6038
|
}
|
|
6039
|
-
function
|
|
6039
|
+
function jt(t) {
|
|
6040
6040
|
var e;
|
|
6041
6041
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
6042
6042
|
}
|
|
6043
|
-
function
|
|
6043
|
+
function Rn(t, e, n2, r, i) {
|
|
6044
6044
|
var g, b;
|
|
6045
|
-
const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l2 = e.filter((h2) => !
|
|
6045
|
+
const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l2 = e.filter((h2) => !Kt(h2.spec)), u2 = l2.find((h2) => n2(h2.spec));
|
|
6046
6046
|
if (!u2) return;
|
|
6047
6047
|
const c2 = Ne(t.resultPool);
|
|
6048
6048
|
if (!c2) return;
|
|
6049
6049
|
const d = new Set((() => {
|
|
6050
|
-
var
|
|
6050
|
+
var I, x;
|
|
6051
6051
|
if (s2 === "inner") return [];
|
|
6052
|
-
const h2 = (
|
|
6053
|
-
return h2 || l2.filter((v) =>
|
|
6052
|
+
const h2 = (x = (I = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I.hiddenColIds) == null ? void 0 : x.map(ce$1).filter((v) => v.type === "column").map((v) => v.id);
|
|
6053
|
+
return h2 || l2.filter((v) => jt(v.spec)).map((v) => v.id);
|
|
6054
6054
|
})());
|
|
6055
6055
|
d.delete(u2.id), [...o.map((h2) => h2.column), ...a.map((h2) => h2.column)].filter((h2) => h2.type === "column").map((h2) => d.delete(h2.id));
|
|
6056
|
-
const y = l2.filter((h2) => !d.has(h2.id)), f2 = Je(y.map(
|
|
6056
|
+
const y = l2.filter((h2) => !d.has(h2.id)), f2 = Je(y.map(Fn), c2), w2 = [
|
|
6057
6057
|
...u2.spec.axesSpec.map((h2) => ({
|
|
6058
6058
|
type: "axis",
|
|
6059
6059
|
id: p$1(h2),
|
|
@@ -6074,7 +6074,7 @@
|
|
|
6074
6074
|
tableHandle: p2
|
|
6075
6075
|
};
|
|
6076
6076
|
}
|
|
6077
|
-
const ImportFileHandleSchema = z$
|
|
6077
|
+
const ImportFileHandleSchema = z$1.string().optional().refine(
|
|
6078
6078
|
(_a) => true
|
|
6079
6079
|
);
|
|
6080
6080
|
function* range(from, to, step = 1) {
|
|
@@ -6092,10 +6092,10 @@
|
|
|
6092
6092
|
function times(n2, cb) {
|
|
6093
6093
|
return toList(range(0, n2)).map(cb);
|
|
6094
6094
|
}
|
|
6095
|
-
const $BlockArgs = z$
|
|
6096
|
-
tableNumRows: z$
|
|
6097
|
-
numbers: z$
|
|
6098
|
-
handles: z$
|
|
6095
|
+
const $BlockArgs = z$1.object({
|
|
6096
|
+
tableNumRows: z$1.number().default(100),
|
|
6097
|
+
numbers: z$1.array(z$1.coerce.number()),
|
|
6098
|
+
handles: z$1.array(ImportFileHandleSchema)
|
|
6099
6099
|
});
|
|
6100
6100
|
const platforma = T.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
|
|
6101
6101
|
if (ctx.args.numbers.length === 5) {
|
|
@@ -6120,7 +6120,7 @@
|
|
|
6120
6120
|
val: v.toString()
|
|
6121
6121
|
};
|
|
6122
6122
|
});
|
|
6123
|
-
return
|
|
6123
|
+
return Dn(
|
|
6124
6124
|
ctx,
|
|
6125
6125
|
[
|
|
6126
6126
|
{
|
|
@@ -6173,7 +6173,7 @@
|
|
|
6173
6173
|
val: v.toString()
|
|
6174
6174
|
};
|
|
6175
6175
|
});
|
|
6176
|
-
return
|
|
6176
|
+
return Rn(
|
|
6177
6177
|
ctx,
|
|
6178
6178
|
[
|
|
6179
6179
|
{
|
|
@@ -6208,7 +6208,7 @@
|
|
|
6208
6208
|
data
|
|
6209
6209
|
}
|
|
6210
6210
|
],
|
|
6211
|
-
|
|
6211
|
+
Gn({
|
|
6212
6212
|
name: "example"
|
|
6213
6213
|
}),
|
|
6214
6214
|
ctx.uiState.dataTableState.tableState,
|