@milaboratories/milaboratories.ui-examples.model 1.1.69 → 1.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/bundle.js +202 -202
- 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(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;
|
|
@@ -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 mt = "pl7.app/label", yt = "pl7.app/trace", vt = z$
|
|
4806
|
-
type: z$
|
|
4807
|
-
importance: z$
|
|
4808
|
-
id: z$
|
|
4809
|
-
label: z$
|
|
4810
|
-
}), bt = z$
|
|
4805
|
+
const mt = "pl7.app/label", yt = "pl7.app/trace", vt = 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
|
+
}), bt = z$1.array(vt), wt = 1e-3, At = "__LABEL__", Pe = "__LABEL__@1";
|
|
4811
4811
|
function Ve(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, F;
|
|
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[mt], I = (F = p2.annotations) == null ? void 0 : F[yt], x = (I ? bt.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
4823
|
const k2 = { label: h2, type: At, 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
4828
|
const { type: W } = v[k2], V = v[k2].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
|
|
4829
4829
|
L.set(W, $);
|
|
4830
|
-
const
|
|
4831
|
-
s2.set(
|
|
4832
|
-
|
|
4830
|
+
const K2 = `${W}@${$}`;
|
|
4831
|
+
s2.set(K2, (s2.get(K2) ?? 0) + 1), r.set(
|
|
4832
|
+
K2,
|
|
4833
4833
|
Math.max(
|
|
4834
|
-
r.get(
|
|
4834
|
+
r.get(K2) ?? Number.NEGATIVE_INFINITY,
|
|
4835
4835
|
V - (v.length - k2) * wt
|
|
4836
4836
|
)
|
|
4837
|
-
),
|
|
4837
|
+
), A.push({ ...v[k2], fullType: K2, 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
|
}
|
|
@@ -4956,7 +4956,7 @@
|
|
|
4956
4956
|
}
|
|
4957
4957
|
function Pt(t) {
|
|
4958
4958
|
if (t === void 0) return;
|
|
4959
|
-
if (
|
|
4959
|
+
if (K(t))
|
|
4960
4960
|
return Ct(t);
|
|
4961
4961
|
const e = xt(t);
|
|
4962
4962
|
if (!e) return;
|
|
@@ -5071,8 +5071,8 @@
|
|
|
5071
5071
|
}
|
|
5072
5072
|
function St(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
|
}
|
|
@@ -5148,14 +5148,14 @@
|
|
|
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
5155
|
function Tt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => ({
|
|
5158
|
-
type: `split:${
|
|
5158
|
+
type: `split:${Rn(e.axisId)}`,
|
|
5159
5159
|
label: e.label,
|
|
5160
5160
|
importance: 1e6
|
|
5161
5161
|
// High importance for split filters in labels
|
|
@@ -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,79 +5232,79 @@
|
|
|
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 F = Qn(P2.spec);
|
|
5246
|
+
y.has(F) || (h2.add(P2.id), y.add(F), 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 = Ot(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 (It(
|
|
5256
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
5257
|
-
const
|
|
5258
|
-
if (!
|
|
5255
|
+
if (It(A.data))
|
|
5256
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
|
|
5257
|
+
const P2 = St(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 (
|
|
5262
|
+
if (!Sn(P2))
|
|
5263
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P2.type} for column ${A.id}`);
|
|
5264
|
+
const F = Pt(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]))), V = [], $ = (S, G) => {
|
|
5268
|
+
if (G >= x.length) {
|
|
5269
5269
|
if (V.push([...S]), V.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 j2 = x[G];
|
|
5274
|
+
if (j2 >= F.length)
|
|
5275
|
+
throw new Error(`Axis index ${j2} out of bounds for unique keys array (length ${F.length}) during split key generation for column ${A.id}`);
|
|
5276
|
+
const N2 = F[j2];
|
|
5277
5277
|
if (!N2 || N2.length === 0) {
|
|
5278
5278
|
V.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
5284
|
if ($([], 0), V.length === 0)
|
|
5285
5285
|
continue;
|
|
5286
|
-
const
|
|
5287
|
-
for (let S =
|
|
5288
|
-
|
|
5289
|
-
const We = { ...L, axesSpec:
|
|
5286
|
+
const K2 = [...L.axesSpec], Be = x.map((S) => S);
|
|
5287
|
+
for (let S = x.length - 1; S >= 0; S--)
|
|
5288
|
+
K2.splice(x[S], 1);
|
|
5289
|
+
const We = { ...L, axesSpec: K2 };
|
|
5290
5290
|
for (const S of V) {
|
|
5291
|
-
const
|
|
5292
|
-
const
|
|
5293
|
-
return { axisIdx:
|
|
5291
|
+
const G = S.map((j2, N2) => {
|
|
5292
|
+
const ee = Be[N2], Ge = p$1(L.axesSpec[ee]), ue = W[N2], He = (ue == null ? void 0 : ue[j2]) ?? String(j2);
|
|
5293
|
+
return { axisIdx: ee, axisId: Ge, value: j2, 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
|
});
|
|
@@ -5320,20 +5320,20 @@
|
|
|
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 = Et(I);
|
|
5324
5324
|
let v;
|
|
5325
|
-
r ? v = r.deriveS(h2,
|
|
5326
|
-
let
|
|
5327
|
-
o && (
|
|
5328
|
-
...
|
|
5325
|
+
r ? v = r.deriveS(h2, x) : v = kt(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(_t(p2.dataEntries, x)) : p2.originalColumn.data,
|
|
5337
5337
|
label: g
|
|
5338
5338
|
});
|
|
5339
5339
|
}
|
|
@@ -5370,7 +5370,7 @@
|
|
|
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
5375
|
class Dt {
|
|
5376
5376
|
constructor() {
|
|
@@ -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
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" ? Ve(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5389
|
-
ref:
|
|
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;
|
|
@@ -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,7 +5724,7 @@
|
|
|
5724
5724
|
this.ctx.logError(e);
|
|
5725
5725
|
}
|
|
5726
5726
|
}
|
|
5727
|
-
const Y = "1.33.
|
|
5727
|
+
const Y = "1.33.17";
|
|
5728
5728
|
function Rt(t) {
|
|
5729
5729
|
return t.__renderLambda === true;
|
|
5730
5730
|
}
|
|
@@ -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({
|
|
@@ -6026,7 +6026,7 @@
|
|
|
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)
|
|
@@ -6047,13 +6047,13 @@
|
|
|
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 = (
|
|
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
6053
|
return h2 || l2.filter((v) => Kt(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) {
|
|
@@ -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,
|