@milaboratories/milaboratories.ui-examples.model 1.1.35 → 1.1.37
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 +8 -8
- package/CHANGELOG.md +13 -0
- package/dist/bundle.js +527 -463
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -402,7 +402,7 @@
|
|
|
402
402
|
};
|
|
403
403
|
}
|
|
404
404
|
let errorMessage = "";
|
|
405
|
-
const maps = errorMaps.filter((
|
|
405
|
+
const maps = errorMaps.filter((m2) => !!m2).slice().reverse();
|
|
406
406
|
for (const map of maps) {
|
|
407
407
|
errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
|
|
408
408
|
}
|
|
@@ -443,12 +443,12 @@
|
|
|
443
443
|
}
|
|
444
444
|
static mergeArray(status, results) {
|
|
445
445
|
const arrayValue = [];
|
|
446
|
-
for (const
|
|
447
|
-
if (
|
|
446
|
+
for (const s2 of results) {
|
|
447
|
+
if (s2.status === "aborted")
|
|
448
448
|
return INVALID;
|
|
449
|
-
if (
|
|
449
|
+
if (s2.status === "dirty")
|
|
450
450
|
status.dirty();
|
|
451
|
-
arrayValue.push(
|
|
451
|
+
arrayValue.push(s2.value);
|
|
452
452
|
}
|
|
453
453
|
return { status: status.value, value: arrayValue };
|
|
454
454
|
}
|
|
@@ -3948,16 +3948,16 @@
|
|
|
3948
3948
|
quotelessJson,
|
|
3949
3949
|
ZodError
|
|
3950
3950
|
});
|
|
3951
|
-
var
|
|
3952
|
-
var L = (
|
|
3953
|
-
var p = (
|
|
3954
|
-
function w(
|
|
3955
|
-
throw new Error("Unexpected object: " +
|
|
3951
|
+
var $$1 = Object.defineProperty;
|
|
3952
|
+
var L = (n2, t, e) => t in n2 ? $$1(n2, t, { enumerable: true, configurable: true, writable: true, value: e }) : n2[t] = e;
|
|
3953
|
+
var p$1 = (n2, t, e) => L(n2, typeof t != "symbol" ? t + "" : t, e);
|
|
3954
|
+
function w(n2) {
|
|
3955
|
+
throw new Error("Unexpected object: " + n2);
|
|
3956
3956
|
}
|
|
3957
|
-
function dn(
|
|
3958
|
-
if (!
|
|
3957
|
+
function dn(n2) {
|
|
3958
|
+
if (!n2 || typeof n2 != "object")
|
|
3959
3959
|
return false;
|
|
3960
|
-
const t =
|
|
3960
|
+
const t = n2;
|
|
3961
3961
|
if (!("type" in t))
|
|
3962
3962
|
return false;
|
|
3963
3963
|
switch (t.type) {
|
|
@@ -3971,126 +3971,126 @@
|
|
|
3971
3971
|
return false;
|
|
3972
3972
|
}
|
|
3973
3973
|
}
|
|
3974
|
-
function pn(
|
|
3975
|
-
if (
|
|
3976
|
-
switch (
|
|
3974
|
+
function pn(n2, t) {
|
|
3975
|
+
if (n2 !== void 0)
|
|
3976
|
+
switch (n2.type) {
|
|
3977
3977
|
case "Json":
|
|
3978
|
-
return
|
|
3978
|
+
return n2;
|
|
3979
3979
|
case "JsonPartitioned": {
|
|
3980
3980
|
const e = {};
|
|
3981
|
-
for (const [r, o] of Object.entries(
|
|
3981
|
+
for (const [r, o] of Object.entries(n2.parts))
|
|
3982
3982
|
e[r] = t(o);
|
|
3983
3983
|
return {
|
|
3984
|
-
...
|
|
3984
|
+
...n2,
|
|
3985
3985
|
parts: e
|
|
3986
3986
|
};
|
|
3987
3987
|
}
|
|
3988
3988
|
case "BinaryPartitioned": {
|
|
3989
3989
|
const e = {};
|
|
3990
|
-
for (const [r, o] of Object.entries(
|
|
3990
|
+
for (const [r, o] of Object.entries(n2.parts))
|
|
3991
3991
|
e[r] = {
|
|
3992
3992
|
index: t(o.index),
|
|
3993
3993
|
values: t(o.values)
|
|
3994
3994
|
};
|
|
3995
3995
|
return {
|
|
3996
|
-
...
|
|
3996
|
+
...n2,
|
|
3997
3997
|
parts: e
|
|
3998
3998
|
};
|
|
3999
3999
|
}
|
|
4000
4000
|
}
|
|
4001
4001
|
}
|
|
4002
|
-
function ln(
|
|
4003
|
-
switch (
|
|
4002
|
+
function ln(n2) {
|
|
4003
|
+
switch (n2.type) {
|
|
4004
4004
|
case "Json": {
|
|
4005
4005
|
const t = {};
|
|
4006
|
-
for (const e of
|
|
4006
|
+
for (const e of n2.data)
|
|
4007
4007
|
t[JSON.stringify(e.key)] = e.value;
|
|
4008
4008
|
return {
|
|
4009
4009
|
type: "Json",
|
|
4010
|
-
keyLength:
|
|
4010
|
+
keyLength: n2.keyLength,
|
|
4011
4011
|
data: t
|
|
4012
4012
|
};
|
|
4013
4013
|
}
|
|
4014
4014
|
case "JsonPartitioned": {
|
|
4015
4015
|
const t = {};
|
|
4016
|
-
for (const e of
|
|
4016
|
+
for (const e of n2.parts)
|
|
4017
4017
|
t[JSON.stringify(e.key)] = e.value;
|
|
4018
4018
|
return {
|
|
4019
4019
|
type: "JsonPartitioned",
|
|
4020
|
-
partitionKeyLength:
|
|
4020
|
+
partitionKeyLength: n2.partitionKeyLength,
|
|
4021
4021
|
parts: t
|
|
4022
4022
|
};
|
|
4023
4023
|
}
|
|
4024
4024
|
case "BinaryPartitioned": {
|
|
4025
4025
|
const t = {};
|
|
4026
|
-
for (const e of
|
|
4026
|
+
for (const e of n2.parts)
|
|
4027
4027
|
t[JSON.stringify(e.key)] = e.value;
|
|
4028
4028
|
return {
|
|
4029
4029
|
type: "BinaryPartitioned",
|
|
4030
|
-
partitionKeyLength:
|
|
4030
|
+
partitionKeyLength: n2.partitionKeyLength,
|
|
4031
4031
|
parts: t
|
|
4032
4032
|
};
|
|
4033
4033
|
}
|
|
4034
4034
|
}
|
|
4035
4035
|
}
|
|
4036
|
-
function y(
|
|
4037
|
-
const { type: t, name: e, domain: r } =
|
|
4036
|
+
function y(n2) {
|
|
4037
|
+
const { type: t, name: e, domain: r } = n2;
|
|
4038
4038
|
return { type: t, name: e, ...r && { domain: r } };
|
|
4039
4039
|
}
|
|
4040
|
-
function Sn(
|
|
4041
|
-
return g(y(
|
|
4040
|
+
function Sn(n2) {
|
|
4041
|
+
return g(y(n2));
|
|
4042
4042
|
}
|
|
4043
|
-
function W(
|
|
4044
|
-
if (
|
|
4043
|
+
function W(n2, t) {
|
|
4044
|
+
if (n2 === void 0) return t === void 0;
|
|
4045
4045
|
if (t === void 0) return true;
|
|
4046
4046
|
for (const e in t)
|
|
4047
|
-
if (
|
|
4047
|
+
if (n2[e] !== t[e]) return false;
|
|
4048
4048
|
return true;
|
|
4049
4049
|
}
|
|
4050
|
-
function X(
|
|
4051
|
-
return
|
|
4050
|
+
function X(n2, t) {
|
|
4051
|
+
return n2.name === t.name && W(n2.domain, t.domain);
|
|
4052
4052
|
}
|
|
4053
|
-
function En(
|
|
4054
|
-
return { ...
|
|
4053
|
+
function En(n2, t) {
|
|
4054
|
+
return { ...n2, src: l$1(n2.src, t) };
|
|
4055
4055
|
}
|
|
4056
|
-
function l(
|
|
4057
|
-
switch (
|
|
4056
|
+
function l$1(n2, t) {
|
|
4057
|
+
switch (n2.type) {
|
|
4058
4058
|
case "column":
|
|
4059
4059
|
return {
|
|
4060
4060
|
type: "column",
|
|
4061
|
-
column: t(
|
|
4061
|
+
column: t(n2.column)
|
|
4062
4062
|
};
|
|
4063
4063
|
case "slicedColumn":
|
|
4064
4064
|
return {
|
|
4065
4065
|
type: "slicedColumn",
|
|
4066
|
-
column: t(
|
|
4067
|
-
newId:
|
|
4068
|
-
axisFilters:
|
|
4066
|
+
column: t(n2.column),
|
|
4067
|
+
newId: n2.newId,
|
|
4068
|
+
axisFilters: n2.axisFilters
|
|
4069
4069
|
};
|
|
4070
4070
|
case "inner":
|
|
4071
4071
|
case "full":
|
|
4072
4072
|
return {
|
|
4073
|
-
type:
|
|
4074
|
-
entries:
|
|
4073
|
+
type: n2.type,
|
|
4074
|
+
entries: n2.entries.map((e) => l$1(e, t))
|
|
4075
4075
|
};
|
|
4076
4076
|
case "outer":
|
|
4077
4077
|
return {
|
|
4078
4078
|
type: "outer",
|
|
4079
|
-
primary: l(
|
|
4080
|
-
secondary:
|
|
4079
|
+
primary: l$1(n2.primary, t),
|
|
4080
|
+
secondary: n2.secondary.map((e) => l$1(e, t))
|
|
4081
4081
|
};
|
|
4082
4082
|
default:
|
|
4083
|
-
w(
|
|
4083
|
+
w(n2);
|
|
4084
4084
|
}
|
|
4085
4085
|
}
|
|
4086
|
-
function z$1(
|
|
4087
|
-
return g(
|
|
4086
|
+
function z$1(n2) {
|
|
4087
|
+
return g(n2);
|
|
4088
4088
|
}
|
|
4089
|
-
function P(
|
|
4090
|
-
return g(y(
|
|
4089
|
+
function P(n2) {
|
|
4090
|
+
return g(y(n2));
|
|
4091
4091
|
}
|
|
4092
|
-
function x(
|
|
4093
|
-
return JSON.stringify([
|
|
4092
|
+
function x(n2, t) {
|
|
4093
|
+
return JSON.stringify([n2, t]);
|
|
4094
4094
|
}
|
|
4095
4095
|
class On {
|
|
4096
4096
|
/**
|
|
@@ -4098,24 +4098,24 @@
|
|
|
4098
4098
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
4099
4099
|
*/
|
|
4100
4100
|
constructor(t) {
|
|
4101
|
-
p(this, "domains", /* @__PURE__ */ new Map());
|
|
4102
|
-
p(this, "axes", /* @__PURE__ */ new Map());
|
|
4103
|
-
p(this, "domainPacks", []);
|
|
4104
|
-
p(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
|
|
4101
|
+
p$1(this, "domains", /* @__PURE__ */ new Map());
|
|
4102
|
+
p$1(this, "axes", /* @__PURE__ */ new Map());
|
|
4103
|
+
p$1(this, "domainPacks", []);
|
|
4104
|
+
p$1(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
|
|
4105
4105
|
this.anchors = t;
|
|
4106
4106
|
const e = Object.entries(t);
|
|
4107
4107
|
e.sort((r, o) => r[0].localeCompare(o[0]));
|
|
4108
4108
|
for (const [r, o] of e) {
|
|
4109
4109
|
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
4110
|
-
const a = o.axesSpec[i],
|
|
4111
|
-
this.axes.set(
|
|
4110
|
+
const a = o.axesSpec[i], s2 = P(a);
|
|
4111
|
+
this.axes.set(s2, { anchor: r, idx: i });
|
|
4112
4112
|
}
|
|
4113
4113
|
if (o.domain !== void 0) {
|
|
4114
4114
|
const i = Object.entries(o.domain);
|
|
4115
|
-
i.sort((a,
|
|
4116
|
-
for (const [a,
|
|
4117
|
-
const
|
|
4118
|
-
this.domains.set(
|
|
4115
|
+
i.sort((a, s2) => a[0].localeCompare(s2[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
|
|
4116
|
+
for (const [a, s2] of i) {
|
|
4117
|
+
const u2 = x(a, s2);
|
|
4118
|
+
this.domains.set(u2, r);
|
|
4119
4119
|
}
|
|
4120
4120
|
}
|
|
4121
4121
|
}
|
|
@@ -4132,46 +4132,46 @@
|
|
|
4132
4132
|
if (t.domain !== void 0)
|
|
4133
4133
|
n:
|
|
4134
4134
|
for (const a of this.domainPacks) {
|
|
4135
|
-
const
|
|
4136
|
-
for (const
|
|
4137
|
-
const d = t.domain[
|
|
4135
|
+
const s2 = [];
|
|
4136
|
+
for (const c2 of a) {
|
|
4137
|
+
const d = t.domain[c2];
|
|
4138
4138
|
if (d !== void 0)
|
|
4139
|
-
|
|
4139
|
+
s2.push([c2, d]);
|
|
4140
4140
|
else
|
|
4141
4141
|
break n;
|
|
4142
4142
|
}
|
|
4143
|
-
const
|
|
4144
|
-
if (
|
|
4145
|
-
r.domainAnchor =
|
|
4143
|
+
const u2 = this.domainPackToAnchor.get(JSON.stringify(s2));
|
|
4144
|
+
if (u2 !== void 0) {
|
|
4145
|
+
r.domainAnchor = u2, o = new Set(a);
|
|
4146
4146
|
break;
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
4149
|
-
for (const [a,
|
|
4149
|
+
for (const [a, s2] of Object.entries(t.domain ?? {})) {
|
|
4150
4150
|
if (o !== void 0 && o.has(a))
|
|
4151
4151
|
continue;
|
|
4152
|
-
const
|
|
4153
|
-
r.domain ?? (r.domain = {}), r.domain[a] =
|
|
4152
|
+
const u2 = x(a, s2), c2 = this.domains.get(u2);
|
|
4153
|
+
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : s2;
|
|
4154
4154
|
}
|
|
4155
4155
|
if (r.axes = t.axesSpec.map((a) => {
|
|
4156
|
-
const
|
|
4157
|
-
return this.axes.get(
|
|
4156
|
+
const s2 = P(a);
|
|
4157
|
+
return this.axes.get(s2) ?? a;
|
|
4158
4158
|
}), !e || e.length === 0)
|
|
4159
4159
|
return r;
|
|
4160
4160
|
const i = [];
|
|
4161
4161
|
for (const a of e) {
|
|
4162
|
-
const [
|
|
4163
|
-
if (typeof
|
|
4164
|
-
if (
|
|
4165
|
-
throw new Error(`Axis index ${
|
|
4166
|
-
i.push([
|
|
4162
|
+
const [s2, u2] = a;
|
|
4163
|
+
if (typeof s2 == "number") {
|
|
4164
|
+
if (s2 < 0 || s2 >= t.axesSpec.length)
|
|
4165
|
+
throw new Error(`Axis index ${s2} is out of bounds (0-${t.axesSpec.length - 1})`);
|
|
4166
|
+
i.push([s2, u2]);
|
|
4167
4167
|
} else {
|
|
4168
|
-
const
|
|
4169
|
-
if (
|
|
4170
|
-
throw new Error(`Axis with name "${
|
|
4171
|
-
i.push([
|
|
4168
|
+
const c2 = t.axesSpec.findIndex((d) => d.name === s2);
|
|
4169
|
+
if (c2 === -1)
|
|
4170
|
+
throw new Error(`Axis with name "${s2}" not found in the column specification`);
|
|
4171
|
+
i.push([c2, u2]);
|
|
4172
4172
|
}
|
|
4173
4173
|
}
|
|
4174
|
-
return i.sort((a,
|
|
4174
|
+
return i.sort((a, s2) => a[0] - s2[0]), {
|
|
4175
4175
|
source: r,
|
|
4176
4176
|
axisFilters: i
|
|
4177
4177
|
};
|
|
@@ -4186,10 +4186,10 @@
|
|
|
4186
4186
|
return z$1(this.derive(t, e));
|
|
4187
4187
|
}
|
|
4188
4188
|
}
|
|
4189
|
-
function Jn(
|
|
4189
|
+
function Jn(n2, t) {
|
|
4190
4190
|
const e = { ...t };
|
|
4191
4191
|
if (e.domainAnchor !== void 0) {
|
|
4192
|
-
const r =
|
|
4192
|
+
const r = n2[e.domainAnchor];
|
|
4193
4193
|
if (!r)
|
|
4194
4194
|
throw new Error(`Anchor "${e.domainAnchor}" not found`);
|
|
4195
4195
|
const o = r.domain || {};
|
|
@@ -4201,7 +4201,7 @@
|
|
|
4201
4201
|
if (typeof i == "string")
|
|
4202
4202
|
r[o] = i;
|
|
4203
4203
|
else {
|
|
4204
|
-
const a =
|
|
4204
|
+
const a = n2[i.anchor];
|
|
4205
4205
|
if (!a)
|
|
4206
4206
|
throw new Error(`Anchor "${i.anchor}" not found for domain key "${o}"`);
|
|
4207
4207
|
if (!a.domain || a.domain[o] === void 0)
|
|
@@ -4210,12 +4210,12 @@
|
|
|
4210
4210
|
}
|
|
4211
4211
|
e.domain = r;
|
|
4212
4212
|
}
|
|
4213
|
-
return e.axes && (e.axes = e.axes.map((r) => G(
|
|
4213
|
+
return e.axes && (e.axes = e.axes.map((r) => G(n2, r))), e;
|
|
4214
4214
|
}
|
|
4215
|
-
function G(
|
|
4215
|
+
function G(n2, t) {
|
|
4216
4216
|
if (!Q$1(t))
|
|
4217
4217
|
return t;
|
|
4218
|
-
const e = t.anchor, r =
|
|
4218
|
+
const e = t.anchor, r = n2[e];
|
|
4219
4219
|
if (!r)
|
|
4220
4220
|
throw new Error(`Anchor "${e}" not found for axis reference`);
|
|
4221
4221
|
if ("idx" in t) {
|
|
@@ -4239,26 +4239,26 @@
|
|
|
4239
4239
|
}
|
|
4240
4240
|
throw new Error("Unsupported axis reference type");
|
|
4241
4241
|
}
|
|
4242
|
-
function Q$1(
|
|
4243
|
-
return typeof
|
|
4242
|
+
function Q$1(n2) {
|
|
4243
|
+
return typeof n2 == "object" && "anchor" in n2;
|
|
4244
4244
|
}
|
|
4245
|
-
function f(
|
|
4246
|
-
return
|
|
4245
|
+
function f(n2) {
|
|
4246
|
+
return n2.kind === "PColumn";
|
|
4247
4247
|
}
|
|
4248
|
-
function Y$1(
|
|
4249
|
-
return f(
|
|
4248
|
+
function Y$1(n2) {
|
|
4249
|
+
return f(n2.spec);
|
|
4250
4250
|
}
|
|
4251
|
-
function Dn(
|
|
4252
|
-
if (!Y$1(
|
|
4253
|
-
return
|
|
4251
|
+
function Dn(n2) {
|
|
4252
|
+
if (!Y$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
|
|
4253
|
+
return n2;
|
|
4254
4254
|
}
|
|
4255
|
-
function In(
|
|
4256
|
-
return
|
|
4257
|
-
...
|
|
4258
|
-
data: t(
|
|
4255
|
+
function In(n2, t) {
|
|
4256
|
+
return n2 === void 0 ? void 0 : {
|
|
4257
|
+
...n2,
|
|
4258
|
+
data: t(n2.data)
|
|
4259
4259
|
};
|
|
4260
4260
|
}
|
|
4261
|
-
function jn(
|
|
4261
|
+
function jn(n2) {
|
|
4262
4262
|
const t = /* @__PURE__ */ new Map(), e = (r) => {
|
|
4263
4263
|
switch (r.type) {
|
|
4264
4264
|
case "column":
|
|
@@ -4279,44 +4279,44 @@
|
|
|
4279
4279
|
w(r);
|
|
4280
4280
|
}
|
|
4281
4281
|
};
|
|
4282
|
-
return e(
|
|
4282
|
+
return e(n2), [...t.values()];
|
|
4283
4283
|
}
|
|
4284
|
-
function k(
|
|
4285
|
-
if (
|
|
4284
|
+
function k(n2, t) {
|
|
4285
|
+
if (n2.name !== void 0 && n2.name !== t.name)
|
|
4286
4286
|
return false;
|
|
4287
|
-
if (
|
|
4288
|
-
if (Array.isArray(
|
|
4289
|
-
if (!
|
|
4287
|
+
if (n2.type !== void 0) {
|
|
4288
|
+
if (Array.isArray(n2.type)) {
|
|
4289
|
+
if (!n2.type.includes(t.type))
|
|
4290
4290
|
return false;
|
|
4291
|
-
} else if (
|
|
4291
|
+
} else if (n2.type !== t.type)
|
|
4292
4292
|
return false;
|
|
4293
4293
|
}
|
|
4294
|
-
if (
|
|
4294
|
+
if (n2.domain !== void 0) {
|
|
4295
4295
|
const e = t.domain || {};
|
|
4296
|
-
for (const [r, o] of Object.entries(
|
|
4296
|
+
for (const [r, o] of Object.entries(n2.domain))
|
|
4297
4297
|
if (e[r] !== o)
|
|
4298
4298
|
return false;
|
|
4299
4299
|
}
|
|
4300
4300
|
return true;
|
|
4301
4301
|
}
|
|
4302
|
-
function N
|
|
4303
|
-
if (t.name !== void 0 &&
|
|
4302
|
+
function N(n2, t) {
|
|
4303
|
+
if (t.name !== void 0 && n2.name !== t.name || t.namePattern !== void 0 && !new RegExp(t.namePattern).test(n2.name))
|
|
4304
4304
|
return false;
|
|
4305
4305
|
if (t.type !== void 0) {
|
|
4306
4306
|
if (Array.isArray(t.type)) {
|
|
4307
|
-
if (!t.type.includes(
|
|
4307
|
+
if (!t.type.includes(n2.valueType))
|
|
4308
4308
|
return false;
|
|
4309
|
-
} else if (t.type !==
|
|
4309
|
+
} else if (t.type !== n2.valueType)
|
|
4310
4310
|
return false;
|
|
4311
4311
|
}
|
|
4312
4312
|
if (t.domain !== void 0) {
|
|
4313
|
-
const e =
|
|
4313
|
+
const e = n2.domain || {};
|
|
4314
4314
|
for (const [r, o] of Object.entries(t.domain))
|
|
4315
4315
|
if (e[r] !== o)
|
|
4316
4316
|
return false;
|
|
4317
4317
|
}
|
|
4318
4318
|
if (t.axes !== void 0) {
|
|
4319
|
-
const e =
|
|
4319
|
+
const e = n2.axesSpec.map(y);
|
|
4320
4320
|
if (t.partialAxesMatch) {
|
|
4321
4321
|
for (const r of t.axes)
|
|
4322
4322
|
if (!e.some((o) => k(r, o)))
|
|
@@ -4330,13 +4330,13 @@
|
|
|
4330
4330
|
}
|
|
4331
4331
|
}
|
|
4332
4332
|
if (t.annotations !== void 0) {
|
|
4333
|
-
const e =
|
|
4333
|
+
const e = n2.annotations || {};
|
|
4334
4334
|
for (const [r, o] of Object.entries(t.annotations))
|
|
4335
4335
|
if (e[r] !== o)
|
|
4336
4336
|
return false;
|
|
4337
4337
|
}
|
|
4338
4338
|
if (t.annotationPatterns !== void 0) {
|
|
4339
|
-
const e =
|
|
4339
|
+
const e = n2.annotations || {};
|
|
4340
4340
|
for (const [r, o] of Object.entries(t.annotationPatterns)) {
|
|
4341
4341
|
const i = e[r];
|
|
4342
4342
|
if (i === void 0 || !new RegExp(o).test(i))
|
|
@@ -4345,8 +4345,8 @@
|
|
|
4345
4345
|
}
|
|
4346
4346
|
return true;
|
|
4347
4347
|
}
|
|
4348
|
-
function Bn(
|
|
4349
|
-
return Array.isArray(
|
|
4348
|
+
function Bn(n2) {
|
|
4349
|
+
return Array.isArray(n2) ? (t) => n2.some((e) => f(t) && N(t, e)) : (t) => f(t) && N(t, n2);
|
|
4350
4350
|
}
|
|
4351
4351
|
z$2.object({
|
|
4352
4352
|
__isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4355,17 +4355,69 @@
|
|
|
4355
4355
|
}).describe(
|
|
4356
4356
|
"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."
|
|
4357
4357
|
).strict().readonly();
|
|
4358
|
-
function Kn(
|
|
4359
|
-
return typeof
|
|
4358
|
+
function Kn(n2) {
|
|
4359
|
+
return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
|
|
4360
4360
|
}
|
|
4361
|
-
function Mn(
|
|
4362
|
-
return
|
|
4361
|
+
function Mn(n2, t) {
|
|
4362
|
+
return n2.ok ? { ok: true, value: t(n2.value) } : n2;
|
|
4363
4363
|
}
|
|
4364
4364
|
const rn = 24;
|
|
4365
4365
|
z$2.string().length(rn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4366
|
+
var stringify = { exports: {} };
|
|
4367
|
+
(function(module2, exports3) {
|
|
4368
|
+
exports3 = module2.exports = stringify2;
|
|
4369
|
+
exports3.getSerialize = serializer;
|
|
4370
|
+
function stringify2(obj, replacer, spaces, cycleReplacer) {
|
|
4371
|
+
return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces);
|
|
4372
|
+
}
|
|
4373
|
+
function serializer(replacer, cycleReplacer) {
|
|
4374
|
+
var stack = [], keys = [];
|
|
4375
|
+
if (cycleReplacer == null) cycleReplacer = function(key, value) {
|
|
4376
|
+
if (stack[0] === value) return "[Circular ~]";
|
|
4377
|
+
return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
|
|
4378
|
+
};
|
|
4379
|
+
return function(key, value) {
|
|
4380
|
+
if (stack.length > 0) {
|
|
4381
|
+
var thisPos = stack.indexOf(this);
|
|
4382
|
+
~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
|
|
4383
|
+
~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
|
|
4384
|
+
if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value);
|
|
4385
|
+
} else stack.push(value);
|
|
4386
|
+
return replacer == null ? value : replacer.call(this, key, value);
|
|
4387
|
+
};
|
|
4388
|
+
}
|
|
4389
|
+
})(stringify, stringify.exports);
|
|
4390
|
+
const l = z$2.object({
|
|
4391
|
+
type: z$2.literal("PlError"),
|
|
4392
|
+
name: z$2.string(),
|
|
4393
|
+
message: z$2.string(),
|
|
4394
|
+
/** The message with all details needed for SDK developers. */
|
|
4395
|
+
fullMessage: z$2.string().optional(),
|
|
4396
|
+
stack: z$2.string().optional()
|
|
4397
|
+
}), c = l.extend({
|
|
4398
|
+
cause: z$2.lazy(() => s).optional(),
|
|
4399
|
+
errors: z$2.lazy(() => s.array()).optional()
|
|
4400
|
+
}), m = z$2.object({
|
|
4401
|
+
type: z$2.literal("StandardError"),
|
|
4402
|
+
name: z$2.string(),
|
|
4403
|
+
message: z$2.string(),
|
|
4404
|
+
stack: z$2.string().optional()
|
|
4405
|
+
}), p = m.extend({
|
|
4406
|
+
cause: z$2.lazy(() => s).optional(),
|
|
4407
|
+
errors: z$2.lazy(() => s.array()).optional()
|
|
4408
|
+
}), s = z$2.union([p, c]);
|
|
4409
|
+
const u = z$2.object({
|
|
4410
|
+
name: z$2.string(),
|
|
4411
|
+
message: z$2.string(),
|
|
4412
|
+
fullMessage: z$2.string().optional(),
|
|
4413
|
+
stack: z$2.string().optional()
|
|
4414
|
+
}), n = u.extend({
|
|
4415
|
+
cause: z$2.lazy(() => n).optional(),
|
|
4416
|
+
errors: z$2.lazy(() => n.array()).optional()
|
|
4417
|
+
});
|
|
4366
4418
|
var _e = Object.defineProperty;
|
|
4367
|
-
var Ie = (t, e,
|
|
4368
|
-
var
|
|
4419
|
+
var Ie = (t, e, n2) => e in t ? _e(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4420
|
+
var F = (t, e, n2) => Ie(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4369
4421
|
function Y(t) {
|
|
4370
4422
|
return { type: "Immediate", value: t };
|
|
4371
4423
|
}
|
|
@@ -4378,7 +4430,7 @@
|
|
|
4378
4430
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4379
4431
|
throw new Error("Can't get platforma instance.");
|
|
4380
4432
|
}
|
|
4381
|
-
function
|
|
4433
|
+
function Je() {
|
|
4382
4434
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4383
4435
|
}
|
|
4384
4436
|
function h() {
|
|
@@ -4386,32 +4438,32 @@
|
|
|
4386
4438
|
throw new Error("Not in config rendering context");
|
|
4387
4439
|
}
|
|
4388
4440
|
function q(t, e) {
|
|
4389
|
-
const
|
|
4390
|
-
if (
|
|
4391
|
-
if (t in
|
|
4392
|
-
return
|
|
4441
|
+
const n2 = Je();
|
|
4442
|
+
if (n2 === void 0) return false;
|
|
4443
|
+
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4444
|
+
return n2.callbackRegistry[t] = e, true;
|
|
4393
4445
|
}
|
|
4394
4446
|
const ne = /* @__PURE__ */ new Map();
|
|
4395
|
-
function
|
|
4396
|
-
t in h().callbackRegistry || (h().callbackRegistry[t] = (
|
|
4447
|
+
function Ne(t, e) {
|
|
4448
|
+
t in h().callbackRegistry || (h().callbackRegistry[t] = (n2) => {
|
|
4397
4449
|
for (const r of ne.get(t))
|
|
4398
|
-
r(
|
|
4450
|
+
r(n2);
|
|
4399
4451
|
}, ne.set(t, [])), ne.get(t).push(e);
|
|
4400
4452
|
}
|
|
4401
4453
|
class S {
|
|
4402
|
-
constructor(e,
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
this.handle = e, this.postProcess =
|
|
4406
|
-
this.resolvedValue =
|
|
4454
|
+
constructor(e, n2 = (r) => r) {
|
|
4455
|
+
F(this, "isResolved", false);
|
|
4456
|
+
F(this, "resolvedValue");
|
|
4457
|
+
this.handle = e, this.postProcess = n2, Ne(e, (r) => {
|
|
4458
|
+
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4407
4459
|
});
|
|
4408
4460
|
}
|
|
4409
4461
|
map(e) {
|
|
4410
|
-
return new S(this.handle, (
|
|
4462
|
+
return new S(this.handle, (n2) => e(this.postProcess(n2)));
|
|
4411
4463
|
}
|
|
4412
4464
|
mapDefined(e) {
|
|
4413
|
-
return new S(this.handle, (
|
|
4414
|
-
const r = this.postProcess(
|
|
4465
|
+
return new S(this.handle, (n2) => {
|
|
4466
|
+
const r = this.postProcess(n2);
|
|
4415
4467
|
return r ? e(r) : void 0;
|
|
4416
4468
|
});
|
|
4417
4469
|
}
|
|
@@ -4423,46 +4475,46 @@
|
|
|
4423
4475
|
return t === void 0 ? void 0 : e(t);
|
|
4424
4476
|
}
|
|
4425
4477
|
class I {
|
|
4426
|
-
constructor(e,
|
|
4427
|
-
this.handle = e, this.resolvePath =
|
|
4478
|
+
constructor(e, n2) {
|
|
4479
|
+
this.handle = e, this.resolvePath = n2;
|
|
4428
4480
|
}
|
|
4429
4481
|
resolve(...e) {
|
|
4430
|
-
const
|
|
4482
|
+
const n2 = e.map(
|
|
4431
4483
|
(r) => ({
|
|
4432
4484
|
assertFieldType: "Input",
|
|
4433
4485
|
...typeof r == "string" ? { field: r } : r
|
|
4434
4486
|
})
|
|
4435
4487
|
);
|
|
4436
|
-
return this.resolveWithCommon({}, ...
|
|
4488
|
+
return this.resolveWithCommon({}, ...n2);
|
|
4437
4489
|
}
|
|
4438
4490
|
resolveOutput(...e) {
|
|
4439
|
-
const
|
|
4491
|
+
const n2 = e.map(
|
|
4440
4492
|
(r) => ({
|
|
4441
4493
|
assertFieldType: "Output",
|
|
4442
4494
|
...typeof r == "string" ? { field: r } : r
|
|
4443
4495
|
})
|
|
4444
4496
|
);
|
|
4445
|
-
return this.resolveWithCommon({}, ...
|
|
4497
|
+
return this.resolveWithCommon({}, ...n2);
|
|
4446
4498
|
}
|
|
4447
4499
|
resolveInput(...e) {
|
|
4448
|
-
const
|
|
4500
|
+
const n2 = e.map(
|
|
4449
4501
|
(r) => ({
|
|
4450
4502
|
assertFieldType: "Input",
|
|
4451
4503
|
...typeof r == "string" ? { field: r } : r
|
|
4452
4504
|
})
|
|
4453
4505
|
);
|
|
4454
|
-
return this.resolveWithCommon({}, ...
|
|
4506
|
+
return this.resolveWithCommon({}, ...n2);
|
|
4455
4507
|
}
|
|
4456
4508
|
resolveAny(...e) {
|
|
4457
4509
|
return this.resolveWithCommon({}, ...e);
|
|
4458
4510
|
}
|
|
4459
|
-
resolveWithCommon(e, ...
|
|
4511
|
+
resolveWithCommon(e, ...n2) {
|
|
4460
4512
|
const r = [
|
|
4461
4513
|
...this.resolvePath,
|
|
4462
|
-
...
|
|
4514
|
+
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4463
4515
|
];
|
|
4464
4516
|
return ie(
|
|
4465
|
-
h().resolveWithCommon(this.handle, e, ...
|
|
4517
|
+
h().resolveWithCommon(this.handle, e, ...n2),
|
|
4466
4518
|
(i) => new I(i, r)
|
|
4467
4519
|
);
|
|
4468
4520
|
}
|
|
@@ -4485,7 +4537,7 @@
|
|
|
4485
4537
|
const e = [...this.resolvePath, "error"];
|
|
4486
4538
|
return ie(
|
|
4487
4539
|
h().getError(this.handle),
|
|
4488
|
-
(
|
|
4540
|
+
(n2) => new I(n2, e)
|
|
4489
4541
|
);
|
|
4490
4542
|
}
|
|
4491
4543
|
listInputFields() {
|
|
@@ -4504,9 +4556,9 @@
|
|
|
4504
4556
|
return h().getKeyValueAsString(this.handle, e);
|
|
4505
4557
|
}
|
|
4506
4558
|
getKeyValueAsJson(e) {
|
|
4507
|
-
const
|
|
4508
|
-
if (
|
|
4509
|
-
return JSON.parse(
|
|
4559
|
+
const n2 = this.getKeyValueAsString(e);
|
|
4560
|
+
if (n2 == null) throw new Error("Resource has no content.");
|
|
4561
|
+
return JSON.parse(n2);
|
|
4510
4562
|
}
|
|
4511
4563
|
getDataBase64() {
|
|
4512
4564
|
return h().getDataBase64(this.handle);
|
|
@@ -4522,28 +4574,28 @@
|
|
|
4522
4574
|
/**
|
|
4523
4575
|
*
|
|
4524
4576
|
*/
|
|
4525
|
-
getPColumns(e = false,
|
|
4526
|
-
const r = this.parsePObjectCollection(e,
|
|
4527
|
-
return r === void 0 ? void 0 : Object.entries(r).map(([,
|
|
4528
|
-
if (!Y$1(
|
|
4529
|
-
return
|
|
4577
|
+
getPColumns(e = false, n2 = "") {
|
|
4578
|
+
const r = this.parsePObjectCollection(e, n2);
|
|
4579
|
+
return r === void 0 ? void 0 : Object.entries(r).map(([, s2]) => {
|
|
4580
|
+
if (!Y$1(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
|
|
4581
|
+
return s2;
|
|
4530
4582
|
});
|
|
4531
4583
|
}
|
|
4532
4584
|
/**
|
|
4533
4585
|
*
|
|
4534
4586
|
*/
|
|
4535
|
-
parsePObjectCollection(e = false,
|
|
4587
|
+
parsePObjectCollection(e = false, n2 = "") {
|
|
4536
4588
|
const r = h().parsePObjectCollection(
|
|
4537
4589
|
this.handle,
|
|
4538
4590
|
e,
|
|
4539
|
-
|
|
4591
|
+
n2,
|
|
4540
4592
|
...this.resolvePath
|
|
4541
4593
|
);
|
|
4542
4594
|
if (r === void 0) return;
|
|
4543
4595
|
const i = {};
|
|
4544
|
-
for (const [
|
|
4545
|
-
const a = [...this.resolvePath,
|
|
4546
|
-
i[
|
|
4596
|
+
for (const [s2, o] of Object.entries(r)) {
|
|
4597
|
+
const a = [...this.resolvePath, s2];
|
|
4598
|
+
i[s2] = In(o, (c2) => new I(c2, a));
|
|
4547
4599
|
}
|
|
4548
4600
|
return i;
|
|
4549
4601
|
}
|
|
@@ -4619,63 +4671,123 @@
|
|
|
4619
4671
|
switch (e) {
|
|
4620
4672
|
case "Input":
|
|
4621
4673
|
return this.getInputsLocked() && this.listInputFields().every(
|
|
4622
|
-
(
|
|
4674
|
+
(n2) => this.resolve({ field: n2, assertFieldType: "Input" }) !== void 0
|
|
4623
4675
|
);
|
|
4624
4676
|
case "Output":
|
|
4625
4677
|
return this.getOutputsLocked() && this.listOutputFields().every(
|
|
4626
|
-
(
|
|
4678
|
+
(n2) => this.resolve({ field: n2, assertFieldType: "Output" }) !== void 0
|
|
4627
4679
|
);
|
|
4628
4680
|
}
|
|
4629
4681
|
}
|
|
4630
|
-
mapFields(e,
|
|
4631
|
-
const { fieldType: r, requireLocked: i, skipUnresolved:
|
|
4682
|
+
mapFields(e, n2) {
|
|
4683
|
+
const { fieldType: r, requireLocked: i, skipUnresolved: s2 } = {
|
|
4632
4684
|
fieldType: "Input",
|
|
4633
4685
|
requireLocked: true,
|
|
4634
4686
|
skipUnresolved: false,
|
|
4635
|
-
...
|
|
4687
|
+
...n2
|
|
4636
4688
|
}, o = e;
|
|
4637
4689
|
if (i && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
|
|
4638
4690
|
return;
|
|
4639
|
-
let
|
|
4691
|
+
let c2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4640
4692
|
(l2) => [l2, this.resolve({ field: l2, assertFieldType: r })]
|
|
4641
4693
|
);
|
|
4642
|
-
return
|
|
4694
|
+
return s2 && (c2 = c2.filter((l2) => l2[1] !== void 0)), c2.map(([l2, m2]) => o(l2, m2));
|
|
4643
4695
|
}
|
|
4644
4696
|
}
|
|
4645
4697
|
const ve = "staging", we = "main";
|
|
4646
|
-
|
|
4698
|
+
function Ue(t, e) {
|
|
4699
|
+
const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
|
|
4700
|
+
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
4701
|
+
const { partitionKeyLength: s2 } = t;
|
|
4702
|
+
for (const [o] of e)
|
|
4703
|
+
if (o >= s2)
|
|
4704
|
+
throw new Error(`Can't filter on non-partitioned axis ${o}. Must be >= ${s2}`);
|
|
4705
|
+
} else if (t.type === "Json") {
|
|
4706
|
+
const { keyLength: s2 } = t;
|
|
4707
|
+
for (const [o] of e)
|
|
4708
|
+
if (o >= s2)
|
|
4709
|
+
throw new Error(`Can't filter on non-data axis ${o}. Must be >= ${s2}`);
|
|
4710
|
+
}
|
|
4711
|
+
const r = (s2) => {
|
|
4712
|
+
for (const [o, a] of n2)
|
|
4713
|
+
if (s2[o] !== a)
|
|
4714
|
+
return false;
|
|
4715
|
+
return true;
|
|
4716
|
+
}, i = (s2) => {
|
|
4717
|
+
const o = [...s2];
|
|
4718
|
+
for (const [a] of n2)
|
|
4719
|
+
o.splice(a, 1);
|
|
4720
|
+
return o;
|
|
4721
|
+
};
|
|
4722
|
+
switch (t.type) {
|
|
4723
|
+
case "Json": {
|
|
4724
|
+
const s2 = t.data.filter((o) => r(o.key)).map((o) => ({
|
|
4725
|
+
key: i(o.key),
|
|
4726
|
+
value: o.value
|
|
4727
|
+
}));
|
|
4728
|
+
return {
|
|
4729
|
+
type: "Json",
|
|
4730
|
+
keyLength: t.keyLength - e.length,
|
|
4731
|
+
data: s2
|
|
4732
|
+
};
|
|
4733
|
+
}
|
|
4734
|
+
case "JsonPartitioned": {
|
|
4735
|
+
const s2 = t.parts.filter((o) => r(o.key)).map((o) => ({
|
|
4736
|
+
key: i(o.key),
|
|
4737
|
+
value: o.value
|
|
4738
|
+
}));
|
|
4739
|
+
return {
|
|
4740
|
+
type: "JsonPartitioned",
|
|
4741
|
+
partitionKeyLength: t.partitionKeyLength - e.length,
|
|
4742
|
+
parts: s2
|
|
4743
|
+
};
|
|
4744
|
+
}
|
|
4745
|
+
case "BinaryPartitioned": {
|
|
4746
|
+
const s2 = t.parts.filter((o) => r(o.key)).map((o) => ({
|
|
4747
|
+
key: i(o.key),
|
|
4748
|
+
value: o.value
|
|
4749
|
+
}));
|
|
4750
|
+
return {
|
|
4751
|
+
type: "BinaryPartitioned",
|
|
4752
|
+
partitionKeyLength: t.partitionKeyLength - e.length,
|
|
4753
|
+
parts: s2
|
|
4754
|
+
};
|
|
4755
|
+
}
|
|
4756
|
+
}
|
|
4757
|
+
}
|
|
4758
|
+
const Me = "pl7.app/label", Ge = "pl7.app/trace", We = z$2.object({
|
|
4647
4759
|
type: z$2.string(),
|
|
4648
4760
|
importance: z$2.number().optional(),
|
|
4649
4761
|
id: z$2.string().optional(),
|
|
4650
4762
|
label: z$2.string()
|
|
4651
|
-
}),
|
|
4652
|
-
function de(t, e,
|
|
4653
|
-
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(),
|
|
4763
|
+
}), He = z$2.array(We), qe = 1e-3, ze = "__LABEL__", pe = "__LABEL__@1";
|
|
4764
|
+
function de(t, e, n2 = {}) {
|
|
4765
|
+
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((f2) => {
|
|
4654
4766
|
var R, k2;
|
|
4655
4767
|
const p2 = e(f2);
|
|
4656
4768
|
let d, y2, g2;
|
|
4657
4769
|
"spec" in p2 && typeof p2.spec == "object" ? (d = p2.spec, y2 = p2.prefixTrace, g2 = p2.suffixTrace) : d = p2;
|
|
4658
|
-
const v = (R = d.annotations) == null ? void 0 : R[
|
|
4770
|
+
const v = (R = d.annotations) == null ? void 0 : R[Me], w2 = (k2 = d.annotations) == null ? void 0 : k2[Ge], x2 = (w2 ? He.safeParse(JSON.parse(w2)).data : void 0) ?? [], C = [
|
|
4659
4771
|
...y2 ?? [],
|
|
4660
4772
|
...x2,
|
|
4661
4773
|
...g2 ?? []
|
|
4662
4774
|
];
|
|
4663
4775
|
if (v) {
|
|
4664
|
-
const A = { label: v, type:
|
|
4665
|
-
|
|
4776
|
+
const A = { label: v, type: ze, importance: -2 };
|
|
4777
|
+
n2.addLabelAsSuffix ? C.push(A) : C.splice(0, 0, A);
|
|
4666
4778
|
}
|
|
4667
|
-
const P2 = [],
|
|
4779
|
+
const P2 = [], T = /* @__PURE__ */ new Map();
|
|
4668
4780
|
for (let A = C.length - 1; A >= 0; --A) {
|
|
4669
|
-
const { type: j } = C[A], V = C[A].importance ?? 0, K = (
|
|
4670
|
-
|
|
4671
|
-
const
|
|
4672
|
-
i.set(
|
|
4673
|
-
|
|
4781
|
+
const { type: j } = C[A], V = C[A].importance ?? 0, K = (T.get(j) ?? 0) + 1;
|
|
4782
|
+
T.set(j, K);
|
|
4783
|
+
const J = `${j}@${K}`;
|
|
4784
|
+
i.set(J, (i.get(J) ?? 0) + 1), r.set(
|
|
4785
|
+
J,
|
|
4674
4786
|
Math.max(
|
|
4675
|
-
r.get(
|
|
4676
|
-
V - (C.length - A) *
|
|
4787
|
+
r.get(J) ?? Number.NEGATIVE_INFINITY,
|
|
4788
|
+
V - (C.length - A) * qe
|
|
4677
4789
|
)
|
|
4678
|
-
), P2.push({ ...C[A], fullType:
|
|
4790
|
+
), P2.push({ ...C[A], fullType: J, occurenceIndex: K });
|
|
4679
4791
|
}
|
|
4680
4792
|
return P2.reverse(), {
|
|
4681
4793
|
value: f2,
|
|
@@ -4683,12 +4795,12 @@
|
|
|
4683
4795
|
label: v,
|
|
4684
4796
|
fullTrace: P2
|
|
4685
4797
|
};
|
|
4686
|
-
}), o = [], a = [],
|
|
4687
|
-
|
|
4688
|
-
for (const [f2] of
|
|
4798
|
+
}), o = [], a = [], c2 = [...r];
|
|
4799
|
+
c2.sort(([, f2], [, p2]) => p2 - f2);
|
|
4800
|
+
for (const [f2] of c2)
|
|
4689
4801
|
f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
|
|
4690
|
-
const l2 = (f2) =>
|
|
4691
|
-
const d = p2.fullTrace.filter((g2) => f2.has(g2.fullType)).map((g2) => g2.label), y2 =
|
|
4802
|
+
const l2 = (f2) => s2.map((p2) => {
|
|
4803
|
+
const d = p2.fullTrace.filter((g2) => f2.has(g2.fullType)).map((g2) => g2.label), y2 = n2.separator ?? " / ";
|
|
4692
4804
|
return {
|
|
4693
4805
|
label: d.join(y2),
|
|
4694
4806
|
value: p2.value
|
|
@@ -4698,19 +4810,19 @@
|
|
|
4698
4810
|
if (a.length !== 0) throw new Error("Assertion error.");
|
|
4699
4811
|
return l2(new Set(pe));
|
|
4700
4812
|
}
|
|
4701
|
-
let
|
|
4702
|
-
for (;
|
|
4813
|
+
let m2 = 0, u2 = 0;
|
|
4814
|
+
for (; m2 < o.length; ) {
|
|
4703
4815
|
const f2 = /* @__PURE__ */ new Set();
|
|
4704
|
-
|
|
4705
|
-
for (let d = 0; d <
|
|
4706
|
-
f2.add(o[
|
|
4816
|
+
n2.includeNativeLabel && f2.add(pe);
|
|
4817
|
+
for (let d = 0; d < m2; ++d) f2.add(o[d]);
|
|
4818
|
+
f2.add(o[u2]);
|
|
4707
4819
|
const p2 = l2(f2);
|
|
4708
4820
|
if (new Set(p2.map((d) => d.label)).size === t.length) return p2;
|
|
4709
|
-
|
|
4821
|
+
u2++, u2 == o.length && (m2++, u2 = m2);
|
|
4710
4822
|
}
|
|
4711
4823
|
return l2(/* @__PURE__ */ new Set([...o, ...a]));
|
|
4712
4824
|
}
|
|
4713
|
-
const H = "PColumnData/", Q = H + "ResourceMap", Z = H + "Partitioned/ResourceMap",
|
|
4825
|
+
const H = "PColumnData/", Q = H + "ResourceMap", Z = H + "Partitioned/ResourceMap", $ = H + "JsonPartitioned", E = H + "BinaryPartitioned", Ae = H + "Partitioned/", ee = Ae + "JsonPartitioned", B = Ae + "BinaryPartitioned";
|
|
4714
4826
|
const ae = (t) => {
|
|
4715
4827
|
if (t.endsWith(".index"))
|
|
4716
4828
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
@@ -4718,45 +4830,45 @@
|
|
|
4718
4830
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4719
4831
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4720
4832
|
};
|
|
4721
|
-
function
|
|
4833
|
+
function Ye(t) {
|
|
4722
4834
|
if (!t) return;
|
|
4723
|
-
const e = t.resourceType.name,
|
|
4835
|
+
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4724
4836
|
let i = 0;
|
|
4725
4837
|
switch (e) {
|
|
4726
4838
|
case Q:
|
|
4727
|
-
i =
|
|
4839
|
+
i = n2.keyLength;
|
|
4728
4840
|
break;
|
|
4729
4841
|
case Z:
|
|
4730
|
-
i =
|
|
4842
|
+
i = n2.partitionKeyLength + n2.keyLength;
|
|
4731
4843
|
break;
|
|
4732
|
-
case
|
|
4733
|
-
case
|
|
4734
|
-
i =
|
|
4844
|
+
case $:
|
|
4845
|
+
case E:
|
|
4846
|
+
i = n2.partitionKeyLength;
|
|
4735
4847
|
break;
|
|
4736
4848
|
case B:
|
|
4737
4849
|
case ee:
|
|
4738
|
-
i =
|
|
4850
|
+
i = n2.superPartitionKeyLength + n2.partitionKeyLength;
|
|
4739
4851
|
break;
|
|
4740
4852
|
}
|
|
4741
4853
|
switch (e) {
|
|
4742
4854
|
case Q:
|
|
4743
|
-
case
|
|
4744
|
-
case
|
|
4745
|
-
for (let
|
|
4746
|
-
e ===
|
|
4747
|
-
const o = [...JSON.parse(
|
|
4855
|
+
case $:
|
|
4856
|
+
case E:
|
|
4857
|
+
for (let s2 of t.listInputFields()) {
|
|
4858
|
+
e === E && (s2 = ae(s2).baseKey);
|
|
4859
|
+
const o = [...JSON.parse(s2)];
|
|
4748
4860
|
r.push(o);
|
|
4749
4861
|
}
|
|
4750
4862
|
break;
|
|
4751
4863
|
case Z:
|
|
4752
4864
|
case B:
|
|
4753
4865
|
case ee:
|
|
4754
|
-
for (const
|
|
4755
|
-
const o = [...JSON.parse(
|
|
4866
|
+
for (const s2 of t.listInputFields()) {
|
|
4867
|
+
const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
4756
4868
|
if (a !== void 0)
|
|
4757
|
-
for (let
|
|
4758
|
-
e === B && (
|
|
4759
|
-
const l2 = [...o, ...JSON.parse(
|
|
4869
|
+
for (let c2 of a.listInputFields()) {
|
|
4870
|
+
e === B && (c2 = ae(c2).baseKey);
|
|
4871
|
+
const l2 = [...o, ...JSON.parse(c2)];
|
|
4760
4872
|
r.push(l2);
|
|
4761
4873
|
}
|
|
4762
4874
|
}
|
|
@@ -4764,37 +4876,37 @@
|
|
|
4764
4876
|
}
|
|
4765
4877
|
return { data: r, keyLength: i };
|
|
4766
4878
|
}
|
|
4767
|
-
function
|
|
4768
|
-
const e =
|
|
4879
|
+
function Xe(t) {
|
|
4880
|
+
const e = Ye(t);
|
|
4769
4881
|
if (!e) return;
|
|
4770
|
-
const { data:
|
|
4771
|
-
for (let
|
|
4882
|
+
const { data: n2, keyLength: r } = e, i = [];
|
|
4883
|
+
for (let s2 = 0; s2 < r; ++s2)
|
|
4772
4884
|
i.push(/* @__PURE__ */ new Set());
|
|
4773
|
-
for (const
|
|
4774
|
-
if (
|
|
4885
|
+
for (const s2 of n2) {
|
|
4886
|
+
if (s2.length !== r)
|
|
4775
4887
|
throw new Error("key length does not match partition length");
|
|
4776
4888
|
for (let o = 0; o < r; ++o)
|
|
4777
|
-
i[o].add(
|
|
4889
|
+
i[o].add(s2[o]);
|
|
4778
4890
|
}
|
|
4779
|
-
return i.map((
|
|
4891
|
+
return i.map((s2) => Array.from(s2.values()));
|
|
4780
4892
|
}
|
|
4781
4893
|
function le(t, e = []) {
|
|
4782
4894
|
if (t === void 0) return;
|
|
4783
|
-
const
|
|
4784
|
-
if (e.length > 0 && (
|
|
4785
|
-
throw new Error(`Unexpected nested super-partitioned resource: ${
|
|
4786
|
-
switch (
|
|
4895
|
+
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4896
|
+
if (e.length > 0 && (n2 === ee || n2 === B))
|
|
4897
|
+
throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
|
|
4898
|
+
switch (n2) {
|
|
4787
4899
|
case Q:
|
|
4788
4900
|
case Z:
|
|
4789
|
-
throw new Error(`Only data columns are supported, got: ${
|
|
4790
|
-
case
|
|
4901
|
+
throw new Error(`Only data columns are supported, got: ${n2}`);
|
|
4902
|
+
case $: {
|
|
4791
4903
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4792
|
-
throw new Error(`Missing partitionKeyLength in metadata for ${
|
|
4904
|
+
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4793
4905
|
const i = [];
|
|
4794
|
-
for (const
|
|
4795
|
-
const o = t.resolve({ field:
|
|
4906
|
+
for (const s2 of t.listInputFields()) {
|
|
4907
|
+
const o = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
4796
4908
|
if (o === void 0) return;
|
|
4797
|
-
const a = [...e, ...JSON.parse(
|
|
4909
|
+
const a = [...e, ...JSON.parse(s2)];
|
|
4798
4910
|
i.push({ key: a, value: o });
|
|
4799
4911
|
}
|
|
4800
4912
|
return {
|
|
@@ -4803,21 +4915,21 @@
|
|
|
4803
4915
|
parts: i
|
|
4804
4916
|
};
|
|
4805
4917
|
}
|
|
4806
|
-
case
|
|
4918
|
+
case E: {
|
|
4807
4919
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4808
|
-
throw new Error(`Missing partitionKeyLength in metadata for ${
|
|
4809
|
-
const i = [],
|
|
4920
|
+
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4921
|
+
const i = [], s2 = /* @__PURE__ */ new Map();
|
|
4810
4922
|
for (const o of t.listInputFields()) {
|
|
4811
|
-
const a = ae(o),
|
|
4812
|
-
if (
|
|
4813
|
-
let l2 =
|
|
4814
|
-
l2 || (l2 = {},
|
|
4923
|
+
const a = ae(o), c2 = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4924
|
+
if (c2 === void 0) return;
|
|
4925
|
+
let l2 = s2.get(a.baseKey);
|
|
4926
|
+
l2 || (l2 = {}, s2.set(a.baseKey, l2)), a.type === "index" ? l2.index = c2 : l2.values = c2;
|
|
4815
4927
|
}
|
|
4816
|
-
for (const [o, a] of
|
|
4928
|
+
for (const [o, a] of s2.entries()) {
|
|
4817
4929
|
if (!a.index || !a.values) return;
|
|
4818
|
-
const
|
|
4930
|
+
const c2 = [...e, ...JSON.parse(o)];
|
|
4819
4931
|
i.push({
|
|
4820
|
-
key:
|
|
4932
|
+
key: c2,
|
|
4821
4933
|
value: {
|
|
4822
4934
|
index: a.index,
|
|
4823
4935
|
values: a.values
|
|
@@ -4832,119 +4944,59 @@
|
|
|
4832
4944
|
}
|
|
4833
4945
|
case ee: {
|
|
4834
4946
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4835
|
-
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${
|
|
4836
|
-
const i = r.superPartitionKeyLength + r.partitionKeyLength,
|
|
4947
|
+
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
|
|
4948
|
+
const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
|
|
4837
4949
|
for (const o of t.listInputFields()) {
|
|
4838
4950
|
const a = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4839
4951
|
if (a === void 0) return;
|
|
4840
|
-
if (a.resourceType.name !==
|
|
4841
|
-
throw new Error(`Expected ${
|
|
4842
|
-
const
|
|
4843
|
-
if (
|
|
4844
|
-
if (
|
|
4845
|
-
throw new Error(`Unexpected inner result type for ${
|
|
4846
|
-
|
|
4952
|
+
if (a.resourceType.name !== $)
|
|
4953
|
+
throw new Error(`Expected ${$} inside ${n2}, but got ${a.resourceType.name}`);
|
|
4954
|
+
const c2 = le(a, JSON.parse(o));
|
|
4955
|
+
if (c2 === void 0) return;
|
|
4956
|
+
if (c2.type !== "JsonPartitioned")
|
|
4957
|
+
throw new Error(`Unexpected inner result type for ${n2}: ${c2.type}`);
|
|
4958
|
+
s2.push(...c2.parts);
|
|
4847
4959
|
}
|
|
4848
4960
|
return {
|
|
4849
4961
|
type: "JsonPartitioned",
|
|
4850
4962
|
partitionKeyLength: i,
|
|
4851
|
-
parts:
|
|
4963
|
+
parts: s2
|
|
4852
4964
|
};
|
|
4853
4965
|
}
|
|
4854
4966
|
case B: {
|
|
4855
4967
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4856
|
-
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${
|
|
4857
|
-
const i = r.superPartitionKeyLength + r.partitionKeyLength,
|
|
4968
|
+
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
|
|
4969
|
+
const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
|
|
4858
4970
|
for (const o of t.listInputFields()) {
|
|
4859
4971
|
const a = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4860
4972
|
if (a === void 0) return;
|
|
4861
|
-
if (a.resourceType.name !==
|
|
4862
|
-
throw new Error(`Expected ${
|
|
4863
|
-
const
|
|
4864
|
-
if (
|
|
4865
|
-
if (
|
|
4866
|
-
throw new Error(`Unexpected inner result type for ${
|
|
4867
|
-
|
|
4973
|
+
if (a.resourceType.name !== E)
|
|
4974
|
+
throw new Error(`Expected ${E} inside ${n2}, but got ${a.resourceType.name}`);
|
|
4975
|
+
const c2 = le(a, JSON.parse(o));
|
|
4976
|
+
if (c2 === void 0) return;
|
|
4977
|
+
if (c2.type !== "BinaryPartitioned")
|
|
4978
|
+
throw new Error(`Unexpected inner result type for ${n2}: ${c2.type}`);
|
|
4979
|
+
s2.push(...c2.parts);
|
|
4868
4980
|
}
|
|
4869
4981
|
return {
|
|
4870
4982
|
type: "BinaryPartitioned",
|
|
4871
4983
|
partitionKeyLength: i,
|
|
4872
|
-
parts:
|
|
4984
|
+
parts: s2
|
|
4873
4985
|
};
|
|
4874
4986
|
}
|
|
4875
4987
|
default:
|
|
4876
|
-
throw new Error(`Unknown resource type: ${
|
|
4877
|
-
}
|
|
4878
|
-
}
|
|
4879
|
-
function Xe(t, e) {
|
|
4880
|
-
const n = [...e].sort((s, o) => o[0] - s[0]);
|
|
4881
|
-
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
4882
|
-
const { partitionKeyLength: s } = t;
|
|
4883
|
-
for (const [o] of e)
|
|
4884
|
-
if (o >= s)
|
|
4885
|
-
throw new Error(`Can't filter on non-partitioned axis ${o}. Must be >= ${s}`);
|
|
4886
|
-
} else if (t.type === "Json") {
|
|
4887
|
-
const { keyLength: s } = t;
|
|
4888
|
-
for (const [o] of e)
|
|
4889
|
-
if (o >= s)
|
|
4890
|
-
throw new Error(`Can't filter on non-data axis ${o}. Must be >= ${s}`);
|
|
4891
|
-
}
|
|
4892
|
-
const r = (s) => {
|
|
4893
|
-
for (const [o, a] of n)
|
|
4894
|
-
if (s[o] !== a)
|
|
4895
|
-
return false;
|
|
4896
|
-
return true;
|
|
4897
|
-
}, i = (s) => {
|
|
4898
|
-
const o = [...s];
|
|
4899
|
-
for (const [a] of n)
|
|
4900
|
-
o.splice(a, 1);
|
|
4901
|
-
return o;
|
|
4902
|
-
};
|
|
4903
|
-
switch (t.type) {
|
|
4904
|
-
case "Json": {
|
|
4905
|
-
const s = t.data.filter((o) => r(o.key)).map((o) => ({
|
|
4906
|
-
key: i(o.key),
|
|
4907
|
-
value: o.value
|
|
4908
|
-
}));
|
|
4909
|
-
return {
|
|
4910
|
-
type: "Json",
|
|
4911
|
-
keyLength: t.keyLength - e.length,
|
|
4912
|
-
data: s
|
|
4913
|
-
};
|
|
4914
|
-
}
|
|
4915
|
-
case "JsonPartitioned": {
|
|
4916
|
-
const s = t.parts.filter((o) => r(o.key)).map((o) => ({
|
|
4917
|
-
key: i(o.key),
|
|
4918
|
-
value: o.value
|
|
4919
|
-
}));
|
|
4920
|
-
return {
|
|
4921
|
-
type: "JsonPartitioned",
|
|
4922
|
-
partitionKeyLength: t.partitionKeyLength - e.length,
|
|
4923
|
-
parts: s
|
|
4924
|
-
};
|
|
4925
|
-
}
|
|
4926
|
-
case "BinaryPartitioned": {
|
|
4927
|
-
const s = t.parts.filter((o) => r(o.key)).map((o) => ({
|
|
4928
|
-
key: i(o.key),
|
|
4929
|
-
value: o.value
|
|
4930
|
-
}));
|
|
4931
|
-
return {
|
|
4932
|
-
type: "BinaryPartitioned",
|
|
4933
|
-
partitionKeyLength: t.partitionKeyLength - e.length,
|
|
4934
|
-
parts: s
|
|
4935
|
-
};
|
|
4936
|
-
}
|
|
4988
|
+
throw new Error(`Unknown resource type: ${n2}`);
|
|
4937
4989
|
}
|
|
4938
4990
|
}
|
|
4939
4991
|
function re(t, e) {
|
|
4940
4992
|
if (t === void 0) return e === void 0;
|
|
4941
4993
|
if (e === void 0) return true;
|
|
4942
|
-
for (const
|
|
4943
|
-
if (t[
|
|
4994
|
+
for (const n2 in e)
|
|
4995
|
+
if (t[n2] !== e[n2]) return false;
|
|
4944
4996
|
return true;
|
|
4945
4997
|
}
|
|
4946
4998
|
function fe(t) {
|
|
4947
|
-
return In(t, (e) => e instanceof I ? e.handle : dn(e) ? pn(e, (
|
|
4999
|
+
return In(t, (e) => e instanceof I ? e.handle : dn(e) ? pn(e, (n2) => n2.handle) : e);
|
|
4948
5000
|
}
|
|
4949
5001
|
function Qe(t) {
|
|
4950
5002
|
if (t)
|
|
@@ -4961,7 +5013,7 @@
|
|
|
4961
5013
|
}
|
|
4962
5014
|
class et {
|
|
4963
5015
|
constructor() {
|
|
4964
|
-
|
|
5016
|
+
F(this, "ctx", h());
|
|
4965
5017
|
}
|
|
4966
5018
|
/**
|
|
4967
5019
|
* @deprecated use getOptions()
|
|
@@ -4969,40 +5021,40 @@
|
|
|
4969
5021
|
calculateOptions(e) {
|
|
4970
5022
|
return this.ctx.calculateOptions(e);
|
|
4971
5023
|
}
|
|
4972
|
-
getOptions(e,
|
|
4973
|
-
const r = typeof e == "function" ? e : Bn(e), i = this.getSpecs().entries.filter((
|
|
4974
|
-
return typeof
|
|
4975
|
-
ref:
|
|
5024
|
+
getOptions(e, n2) {
|
|
5025
|
+
const r = typeof e == "function" ? e : Bn(e), i = this.getSpecs().entries.filter((s2) => r(s2.obj));
|
|
5026
|
+
return typeof n2 == "object" || typeof n2 > "u" ? de(i, (s2) => s2.obj, n2 ?? {}).map(({ value: { ref: s2 }, label: o }) => ({
|
|
5027
|
+
ref: s2,
|
|
4976
5028
|
label: o
|
|
4977
|
-
})) : i.map((
|
|
4978
|
-
ref:
|
|
4979
|
-
label:
|
|
5029
|
+
})) : i.map((s2) => ({
|
|
5030
|
+
ref: s2.ref,
|
|
5031
|
+
label: n2(s2.obj, s2.ref)
|
|
4980
5032
|
}));
|
|
4981
5033
|
}
|
|
4982
5034
|
/**
|
|
4983
5035
|
* Internal implementation that generates UniversalPColumnEntry objects from the provided
|
|
4984
5036
|
* anchors and selectors.
|
|
4985
5037
|
*/
|
|
4986
|
-
getUniversalPColumnEntries(e,
|
|
5038
|
+
getUniversalPColumnEntries(e, n2, r) {
|
|
4987
5039
|
const i = {};
|
|
4988
5040
|
if (!(e instanceof On))
|
|
4989
|
-
for (const [l2,
|
|
4990
|
-
if (Kn(
|
|
4991
|
-
const
|
|
4992
|
-
if (!
|
|
5041
|
+
for (const [l2, m2] of Object.entries(e))
|
|
5042
|
+
if (Kn(m2)) {
|
|
5043
|
+
const u2 = this.getPColumnSpecByRef(m2);
|
|
5044
|
+
if (!u2)
|
|
4993
5045
|
return;
|
|
4994
|
-
i[l2] =
|
|
5046
|
+
i[l2] = u2;
|
|
4995
5047
|
} else
|
|
4996
|
-
i[l2] =
|
|
4997
|
-
const
|
|
4998
|
-
for (const l2 of
|
|
4999
|
-
const
|
|
5000
|
-
if (
|
|
5048
|
+
i[l2] = m2;
|
|
5049
|
+
const s2 = typeof n2 == "function" ? [n2] : Array.isArray(n2) ? n2 : [n2], o = e instanceof On ? e : new On(i), a = [];
|
|
5050
|
+
for (const l2 of s2) {
|
|
5051
|
+
const m2 = typeof l2 == "function" ? l2 : Bn(Jn(i, l2)), u2 = this.getSpecs().entries.filter(({ obj: p2 }) => f(p2) ? m2(p2) : false);
|
|
5052
|
+
if (u2.length === 0)
|
|
5001
5053
|
continue;
|
|
5002
5054
|
const f$1 = typeof l2 == "object" && "axes" in l2 && l2.axes !== void 0 && l2.partialAxesMatch === void 0 ? l2.axes.map((p2, d) => "split" in p2 && p2.split === true ? d : -1).filter((p2) => p2 !== -1) : [];
|
|
5003
5055
|
if (f$1.sort((p2, d) => p2 - d), f$1.length > 0) {
|
|
5004
5056
|
const p2 = f$1[f$1.length - 1];
|
|
5005
|
-
for (const { ref: d, obj: y$1 } of
|
|
5057
|
+
for (const { ref: d, obj: y$1 } of u2) {
|
|
5006
5058
|
if (!f(y$1)) throw new Error(`Assertion failed: expected PColumnSpec, got ${y$1.kind}`);
|
|
5007
5059
|
const g2 = this.getDataByRef(d);
|
|
5008
5060
|
if (!g2) {
|
|
@@ -5010,37 +5062,37 @@
|
|
|
5010
5062
|
return;
|
|
5011
5063
|
}
|
|
5012
5064
|
if (!Y$1(g2)) throw new Error(`Assertion failed: expected PColumn, got ${g2.spec.kind}`);
|
|
5013
|
-
const v =
|
|
5065
|
+
const v = Xe(g2.data);
|
|
5014
5066
|
if (!v) {
|
|
5015
5067
|
if (r != null && r.dontWaitAllData) continue;
|
|
5016
5068
|
return;
|
|
5017
5069
|
}
|
|
5018
5070
|
if (p2 >= v.length)
|
|
5019
5071
|
throw new Error(`Not enough partition keys for the requested split axes in column ${y$1.name}`);
|
|
5020
|
-
const w2 = f$1.map((P2) => this.findLabels(y(y$1.axesSpec[P2]))), x2 = [], C = (P2,
|
|
5021
|
-
if (
|
|
5072
|
+
const w2 = f$1.map((P2) => this.findLabels(y(y$1.axesSpec[P2]))), x2 = [], C = (P2, T) => {
|
|
5073
|
+
if (T >= f$1.length) {
|
|
5022
5074
|
x2.push([...P2]);
|
|
5023
5075
|
return;
|
|
5024
5076
|
}
|
|
5025
|
-
const R = f$1[
|
|
5077
|
+
const R = f$1[T], k2 = v[R];
|
|
5026
5078
|
for (const A of k2)
|
|
5027
|
-
P2.push(A), C(P2,
|
|
5079
|
+
P2.push(A), C(P2, T + 1), P2.pop();
|
|
5028
5080
|
};
|
|
5029
5081
|
C([], 0);
|
|
5030
5082
|
for (const P2 of x2) {
|
|
5031
|
-
const
|
|
5083
|
+
const T = P2.map((R, k2) => {
|
|
5032
5084
|
const A = f$1[k2], j = y(y$1.axesSpec[A]), V = w2[k2], K = (V == null ? void 0 : V[R]) ?? String(R);
|
|
5033
5085
|
return { axisIdx: A, axisId: j, value: R, label: K };
|
|
5034
5086
|
});
|
|
5035
5087
|
a.push({
|
|
5036
5088
|
obj: y$1,
|
|
5037
5089
|
ref: d,
|
|
5038
|
-
axisFilters:
|
|
5090
|
+
axisFilters: T
|
|
5039
5091
|
});
|
|
5040
5092
|
}
|
|
5041
5093
|
}
|
|
5042
5094
|
} else
|
|
5043
|
-
for (const { ref: p2, obj: d } of
|
|
5095
|
+
for (const { ref: p2, obj: d } of u2)
|
|
5044
5096
|
f(d) && a.push({
|
|
5045
5097
|
obj: d,
|
|
5046
5098
|
ref: p2
|
|
@@ -5075,52 +5127,52 @@
|
|
|
5075
5127
|
* @param opts - Optional configuration for label generation and data waiting
|
|
5076
5128
|
* @returns A PFrameHandle for the created PFrame, or undefined if any required data is missing
|
|
5077
5129
|
*/
|
|
5078
|
-
getAnchoredPColumns(e,
|
|
5130
|
+
getAnchoredPColumns(e, n2, r) {
|
|
5079
5131
|
const i = {
|
|
5080
5132
|
...r,
|
|
5081
5133
|
labelOps: {
|
|
5082
5134
|
includeNativeLabel: true,
|
|
5083
5135
|
...(r == null ? void 0 : r.labelOps) || {}
|
|
5084
5136
|
}
|
|
5085
|
-
},
|
|
5137
|
+
}, s2 = this.getUniversalPColumnEntries(
|
|
5086
5138
|
e,
|
|
5087
|
-
|
|
5139
|
+
n2,
|
|
5088
5140
|
i
|
|
5089
5141
|
);
|
|
5090
|
-
if (!
|
|
5142
|
+
if (!s2 || s2.length === 0) return;
|
|
5091
5143
|
const o = [];
|
|
5092
|
-
for (const a of
|
|
5093
|
-
const
|
|
5094
|
-
if (!
|
|
5095
|
-
const l2 = le(
|
|
5144
|
+
for (const a of s2) {
|
|
5145
|
+
const c2 = this.getPColumnByRef(a.ref);
|
|
5146
|
+
if (!c2) return;
|
|
5147
|
+
const l2 = le(c2.data);
|
|
5096
5148
|
if (!l2) return;
|
|
5097
|
-
let
|
|
5149
|
+
let m2 = l2, u2 = { ...c2.spec };
|
|
5098
5150
|
if (a.axisFilters && a.axisFilters.length > 0) {
|
|
5099
5151
|
const p2 = a.axisFilters.map((g2) => [
|
|
5100
5152
|
g2.axisIdx,
|
|
5101
5153
|
g2.value
|
|
5102
5154
|
]);
|
|
5103
|
-
|
|
5104
|
-
const d = [...a.axisFilters].map((g2) => g2.axisIdx).sort((g2, v) => v - g2), y2 = [...
|
|
5155
|
+
m2 = Ue(l2, p2);
|
|
5156
|
+
const d = [...a.axisFilters].map((g2) => g2.axisIdx).sort((g2, v) => v - g2), y2 = [...u2.axesSpec];
|
|
5105
5157
|
for (const g2 of d)
|
|
5106
5158
|
y2.splice(g2, 1);
|
|
5107
|
-
|
|
5159
|
+
u2 = { ...u2, axesSpec: y2 };
|
|
5108
5160
|
}
|
|
5109
|
-
const f2 = ln(
|
|
5110
|
-
|
|
5111
|
-
...
|
|
5161
|
+
const f2 = ln(m2);
|
|
5162
|
+
u2.annotations ? u2 = {
|
|
5163
|
+
...u2,
|
|
5112
5164
|
annotations: {
|
|
5113
|
-
...
|
|
5165
|
+
...u2.annotations,
|
|
5114
5166
|
"pl7.app/label": a.label
|
|
5115
5167
|
}
|
|
5116
|
-
} :
|
|
5117
|
-
...
|
|
5168
|
+
} : u2 = {
|
|
5169
|
+
...u2,
|
|
5118
5170
|
annotations: {
|
|
5119
5171
|
"pl7.app/label": a.label
|
|
5120
5172
|
}
|
|
5121
5173
|
}, o.push({
|
|
5122
5174
|
id: a.id,
|
|
5123
|
-
spec:
|
|
5175
|
+
spec: u2,
|
|
5124
5176
|
data: f2
|
|
5125
5177
|
});
|
|
5126
5178
|
}
|
|
@@ -5155,12 +5207,12 @@
|
|
|
5155
5207
|
* @returns An array of objects with `label` (display text) and `value` (anchored ID string) properties,
|
|
5156
5208
|
* or undefined if any PlRef resolution fails.
|
|
5157
5209
|
*/
|
|
5158
|
-
getCanonicalOptions(e,
|
|
5159
|
-
const i = this.getUniversalPColumnEntries(e,
|
|
5210
|
+
getCanonicalOptions(e, n2, r) {
|
|
5211
|
+
const i = this.getUniversalPColumnEntries(e, n2, r);
|
|
5160
5212
|
if (i)
|
|
5161
|
-
return i.map((
|
|
5162
|
-
value:
|
|
5163
|
-
label:
|
|
5213
|
+
return i.map((s2) => ({
|
|
5214
|
+
value: s2.id,
|
|
5215
|
+
label: s2.label
|
|
5164
5216
|
}));
|
|
5165
5217
|
}
|
|
5166
5218
|
/**
|
|
@@ -5173,11 +5225,11 @@
|
|
|
5173
5225
|
const e = this.ctx.getDataFromResultPool();
|
|
5174
5226
|
return {
|
|
5175
5227
|
isComplete: e.isComplete,
|
|
5176
|
-
entries: e.entries.map((
|
|
5177
|
-
ref:
|
|
5228
|
+
entries: e.entries.map((n2) => ({
|
|
5229
|
+
ref: n2.ref,
|
|
5178
5230
|
obj: {
|
|
5179
|
-
...
|
|
5180
|
-
data: new I(
|
|
5231
|
+
...n2.obj,
|
|
5232
|
+
data: new I(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5181
5233
|
}
|
|
5182
5234
|
}))
|
|
5183
5235
|
};
|
|
@@ -5192,13 +5244,13 @@
|
|
|
5192
5244
|
const e = this.ctx.getDataWithErrorsFromResultPool();
|
|
5193
5245
|
return {
|
|
5194
5246
|
isComplete: e.isComplete,
|
|
5195
|
-
entries: e.entries.map((
|
|
5196
|
-
ref:
|
|
5247
|
+
entries: e.entries.map((n2) => ({
|
|
5248
|
+
ref: n2.ref,
|
|
5197
5249
|
obj: {
|
|
5198
|
-
...
|
|
5250
|
+
...n2.obj,
|
|
5199
5251
|
data: Mn(
|
|
5200
|
-
|
|
5201
|
-
(r) => new I(r, [
|
|
5252
|
+
n2.obj.data,
|
|
5253
|
+
(r) => new I(r, [n2.ref.blockId, n2.ref.name])
|
|
5202
5254
|
)
|
|
5203
5255
|
}
|
|
5204
5256
|
}))
|
|
@@ -5223,10 +5275,10 @@
|
|
|
5223
5275
|
return (r = this.getData().entries.find(
|
|
5224
5276
|
(i) => i.ref.blockId === e.blockId && i.ref.name === e.name
|
|
5225
5277
|
)) == null ? void 0 : r.obj;
|
|
5226
|
-
const
|
|
5227
|
-
if (
|
|
5278
|
+
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5279
|
+
if (n2)
|
|
5228
5280
|
return In(
|
|
5229
|
-
|
|
5281
|
+
n2,
|
|
5230
5282
|
(i) => new I(i, [e.blockId, e.name])
|
|
5231
5283
|
);
|
|
5232
5284
|
}
|
|
@@ -5236,9 +5288,9 @@
|
|
|
5236
5288
|
* @returns p-column associated with the ref
|
|
5237
5289
|
*/
|
|
5238
5290
|
getPColumnByRef(e) {
|
|
5239
|
-
const
|
|
5240
|
-
if (
|
|
5241
|
-
return Dn(
|
|
5291
|
+
const n2 = this.getDataByRef(e);
|
|
5292
|
+
if (n2)
|
|
5293
|
+
return Dn(n2);
|
|
5242
5294
|
}
|
|
5243
5295
|
/**
|
|
5244
5296
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -5246,10 +5298,10 @@
|
|
|
5246
5298
|
* @returns p-column spec associated with the ref
|
|
5247
5299
|
*/
|
|
5248
5300
|
getPColumnSpecByRef(e) {
|
|
5249
|
-
const
|
|
5250
|
-
if (
|
|
5251
|
-
if (!f(
|
|
5252
|
-
return
|
|
5301
|
+
const n2 = this.getSpecByRef(e);
|
|
5302
|
+
if (n2) {
|
|
5303
|
+
if (!f(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
|
|
5304
|
+
return n2;
|
|
5253
5305
|
}
|
|
5254
5306
|
}
|
|
5255
5307
|
/**
|
|
@@ -5265,29 +5317,29 @@
|
|
|
5265
5317
|
* @deprecated delete this method after Jan 1, 2025
|
|
5266
5318
|
*/
|
|
5267
5319
|
findDataWithCompatibleSpec(e) {
|
|
5268
|
-
const
|
|
5320
|
+
const n2 = [];
|
|
5269
5321
|
e: for (const r of this.getData().entries) {
|
|
5270
5322
|
if (!f(r.obj.spec))
|
|
5271
5323
|
continue;
|
|
5272
5324
|
const i = r.obj.spec;
|
|
5273
5325
|
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && re(e.domain, i.domain)) {
|
|
5274
|
-
for (let
|
|
5275
|
-
const o = e.axesSpec[
|
|
5326
|
+
for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
|
|
5327
|
+
const o = e.axesSpec[s2], a = i.axesSpec[s2];
|
|
5276
5328
|
if (o.name !== a.name || o.type !== a.type || !re(o.domain, a.domain))
|
|
5277
5329
|
continue e;
|
|
5278
5330
|
}
|
|
5279
|
-
|
|
5331
|
+
n2.push(r.obj);
|
|
5280
5332
|
}
|
|
5281
5333
|
}
|
|
5282
|
-
return
|
|
5334
|
+
return n2;
|
|
5283
5335
|
}
|
|
5284
5336
|
/**
|
|
5285
5337
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
5286
5338
|
* @returns a map of axis value => label
|
|
5287
5339
|
*/
|
|
5288
5340
|
findLabels(e) {
|
|
5289
|
-
const
|
|
5290
|
-
for (const r of
|
|
5341
|
+
const n2 = this.getData();
|
|
5342
|
+
for (const r of n2.entries) {
|
|
5291
5343
|
if (!Y$1(r.obj)) continue;
|
|
5292
5344
|
const i = r.obj.spec;
|
|
5293
5345
|
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && re(e.domain, i.axesSpec[0].domain)) {
|
|
@@ -5301,14 +5353,26 @@
|
|
|
5301
5353
|
}
|
|
5302
5354
|
}
|
|
5303
5355
|
}
|
|
5356
|
+
/**
|
|
5357
|
+
* Find labels data for a given axis id of a p-column.
|
|
5358
|
+
* @returns a map of axis value => label
|
|
5359
|
+
*/
|
|
5360
|
+
findLabelsForColumnAxis(e, n2) {
|
|
5361
|
+
const r = this.findLabels(e.spec.axesSpec[n2]);
|
|
5362
|
+
if (r)
|
|
5363
|
+
return Object.fromEntries(e.data.listInputFields().map((i) => {
|
|
5364
|
+
const s2 = JSON.parse(i);
|
|
5365
|
+
return [s2[n2], r[s2[n2]] ?? "Unlabelled"];
|
|
5366
|
+
}));
|
|
5367
|
+
}
|
|
5304
5368
|
}
|
|
5305
5369
|
class z {
|
|
5306
5370
|
constructor() {
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5371
|
+
F(this, "ctx");
|
|
5372
|
+
F(this, "args");
|
|
5373
|
+
F(this, "uiState");
|
|
5374
|
+
F(this, "_activeArgsCache");
|
|
5375
|
+
F(this, "resultPool", new et());
|
|
5312
5376
|
this.ctx = h(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5313
5377
|
}
|
|
5314
5378
|
/**
|
|
@@ -5327,7 +5391,7 @@
|
|
|
5327
5391
|
getNamedAccessor(e) {
|
|
5328
5392
|
return ie(
|
|
5329
5393
|
this.ctx.getAccessorHandleByName(e),
|
|
5330
|
-
(
|
|
5394
|
+
(n2) => new I(n2, [e])
|
|
5331
5395
|
);
|
|
5332
5396
|
}
|
|
5333
5397
|
get prerun() {
|
|
@@ -5346,25 +5410,25 @@
|
|
|
5346
5410
|
}
|
|
5347
5411
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5348
5412
|
var i;
|
|
5349
|
-
const
|
|
5350
|
-
if (
|
|
5413
|
+
const n2 = e.some((s2) => !(s2.data instanceof I) || dn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5414
|
+
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5351
5415
|
}
|
|
5352
5416
|
createPFrame(e) {
|
|
5353
5417
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5354
|
-
e.map((
|
|
5418
|
+
e.map((n2) => fe(n2))
|
|
5355
5419
|
);
|
|
5356
5420
|
}
|
|
5357
5421
|
createPTable(e) {
|
|
5358
|
-
let
|
|
5359
|
-
return "columns" in e ?
|
|
5422
|
+
let n2;
|
|
5423
|
+
return "columns" in e ? n2 = {
|
|
5360
5424
|
src: {
|
|
5361
5425
|
type: "full",
|
|
5362
5426
|
entries: e.columns.map((r) => ({ type: "column", column: r }))
|
|
5363
5427
|
},
|
|
5364
5428
|
filters: e.filters ?? [],
|
|
5365
5429
|
sorting: e.sorting ?? []
|
|
5366
|
-
} :
|
|
5367
|
-
En(
|
|
5430
|
+
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(jn(n2.src)), this.ctx.createPTable(
|
|
5431
|
+
En(n2, (r) => fe(r))
|
|
5368
5432
|
);
|
|
5369
5433
|
}
|
|
5370
5434
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5376,7 +5440,7 @@
|
|
|
5376
5440
|
return this.ctx.getCurrentUnstableMarker();
|
|
5377
5441
|
}
|
|
5378
5442
|
}
|
|
5379
|
-
const U = "1.27.
|
|
5443
|
+
const U = "1.27.17";
|
|
5380
5444
|
function tt(t) {
|
|
5381
5445
|
return t.__renderLambda === true;
|
|
5382
5446
|
}
|
|
@@ -5385,8 +5449,8 @@
|
|
|
5385
5449
|
return tt(t) ? t.handle : t;
|
|
5386
5450
|
}
|
|
5387
5451
|
class _ {
|
|
5388
|
-
constructor(e,
|
|
5389
|
-
this._renderingMode = e, this._initialArgs =
|
|
5452
|
+
constructor(e, n2, r, i, s2, o, a) {
|
|
5453
|
+
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a;
|
|
5390
5454
|
}
|
|
5391
5455
|
static create(e = "Heavy") {
|
|
5392
5456
|
return new _(
|
|
@@ -5399,10 +5463,10 @@
|
|
|
5399
5463
|
void 0
|
|
5400
5464
|
);
|
|
5401
5465
|
}
|
|
5402
|
-
output(e,
|
|
5403
|
-
if (typeof
|
|
5466
|
+
output(e, n2, r = {}) {
|
|
5467
|
+
if (typeof n2 == "function") {
|
|
5404
5468
|
const i = `output#${e}`;
|
|
5405
|
-
return q(i, () =>
|
|
5469
|
+
return q(i, () => n2(new z())), new _(
|
|
5406
5470
|
this._renderingMode,
|
|
5407
5471
|
this._initialArgs,
|
|
5408
5472
|
this._initialUiState,
|
|
@@ -5425,7 +5489,7 @@
|
|
|
5425
5489
|
this._initialUiState,
|
|
5426
5490
|
{
|
|
5427
5491
|
...this._outputs,
|
|
5428
|
-
[e]:
|
|
5492
|
+
[e]: n2
|
|
5429
5493
|
},
|
|
5430
5494
|
this._inputsValid,
|
|
5431
5495
|
this._sections,
|
|
@@ -5433,8 +5497,8 @@
|
|
|
5433
5497
|
);
|
|
5434
5498
|
}
|
|
5435
5499
|
/** Shortcut for {@link output} with retentive flag set to true. */
|
|
5436
|
-
retentiveOutput(e,
|
|
5437
|
-
return this.output(e,
|
|
5500
|
+
retentiveOutput(e, n2) {
|
|
5501
|
+
return this.output(e, n2, { retentive: true });
|
|
5438
5502
|
}
|
|
5439
5503
|
argsValid(e) {
|
|
5440
5504
|
return typeof e == "function" ? (q("inputsValid", () => e(new z())), new _(
|
|
@@ -5551,31 +5615,31 @@
|
|
|
5551
5615
|
inputsValid: se(this._inputsValid),
|
|
5552
5616
|
sections: se(this._sections),
|
|
5553
5617
|
outputs: Object.fromEntries(
|
|
5554
|
-
Object.entries(this._outputs).map(([
|
|
5618
|
+
Object.entries(this._outputs).map(([n2, r]) => [n2, se(r)])
|
|
5555
5619
|
)
|
|
5556
5620
|
};
|
|
5557
5621
|
return Ke() ? be({ sdkVersion: U }) : { config: e };
|
|
5558
5622
|
}
|
|
5559
5623
|
}
|
|
5560
|
-
function
|
|
5561
|
-
var l2,
|
|
5624
|
+
function Wt(t, e, n2, r) {
|
|
5625
|
+
var l2, m2;
|
|
5562
5626
|
Array.isArray(r) && (r = { filters: r });
|
|
5563
|
-
const i = t.resultPool.getData().entries.map((
|
|
5564
|
-
let p2 =
|
|
5627
|
+
const i = t.resultPool.getData().entries.map((u2) => u2.obj).filter(Y$1).filter((u2) => u2.spec.name === "pl7.app/label" && u2.spec.axesSpec.length === 1), s2 = (u2, f2) => {
|
|
5628
|
+
let p2 = u2.toString();
|
|
5565
5629
|
if (f2)
|
|
5566
5630
|
for (const d in f2)
|
|
5567
5631
|
p2 += d, p2 += f2[d];
|
|
5568
5632
|
return p2;
|
|
5569
5633
|
}, o = /* @__PURE__ */ new Map();
|
|
5570
|
-
for (const
|
|
5571
|
-
for (const f2 of
|
|
5634
|
+
for (const u2 of e)
|
|
5635
|
+
for (const f2 of u2.spec.axesSpec) {
|
|
5572
5636
|
const p2 = y(f2);
|
|
5573
5637
|
for (const d of i) {
|
|
5574
5638
|
const y$1 = d.spec.axesSpec[0], g2 = y(d.spec.axesSpec[0]);
|
|
5575
5639
|
if (X(p2, g2)) {
|
|
5576
5640
|
const v = Object.keys(p2.domain ?? {}).length, w2 = Object.keys(g2.domain ?? {}).length;
|
|
5577
5641
|
if (v > w2) {
|
|
5578
|
-
const x2 =
|
|
5642
|
+
const x2 = s2(d.id, p2.domain);
|
|
5579
5643
|
o.set(x2, {
|
|
5580
5644
|
id: x2,
|
|
5581
5645
|
spec: {
|
|
@@ -5585,32 +5649,32 @@
|
|
|
5585
5649
|
data: d.data
|
|
5586
5650
|
});
|
|
5587
5651
|
} else
|
|
5588
|
-
o.set(
|
|
5652
|
+
o.set(s2(d.id), d);
|
|
5589
5653
|
}
|
|
5590
5654
|
}
|
|
5591
5655
|
}
|
|
5592
5656
|
if ([...e, ...o.values()].some(
|
|
5593
|
-
(
|
|
5657
|
+
(u2) => u2.data instanceof I && !u2.data.getIsReadyOrError()
|
|
5594
5658
|
))
|
|
5595
5659
|
return;
|
|
5596
5660
|
let a = e;
|
|
5597
|
-
const
|
|
5661
|
+
const c2 = [];
|
|
5598
5662
|
if (r != null && r.coreColumnPredicate) {
|
|
5599
5663
|
a = [];
|
|
5600
|
-
for (const
|
|
5601
|
-
r.coreColumnPredicate(
|
|
5664
|
+
for (const u2 of e)
|
|
5665
|
+
r.coreColumnPredicate(u2.spec) ? a.push(u2) : c2.push(u2);
|
|
5602
5666
|
}
|
|
5603
|
-
return
|
|
5667
|
+
return c2.push(...o.values()), t.createPTable({
|
|
5604
5668
|
src: {
|
|
5605
5669
|
type: "outer",
|
|
5606
5670
|
primary: {
|
|
5607
5671
|
type: (r == null ? void 0 : r.coreJoinType) ?? "full",
|
|
5608
|
-
entries: a.map((
|
|
5672
|
+
entries: a.map((u2) => ({ type: "column", column: u2 }))
|
|
5609
5673
|
},
|
|
5610
|
-
secondary:
|
|
5674
|
+
secondary: c2.map((u2) => ({ type: "column", column: u2 }))
|
|
5611
5675
|
},
|
|
5612
|
-
filters: [...(r == null ? void 0 : r.filters) ?? [], ...((l2 =
|
|
5613
|
-
sorting: ((
|
|
5676
|
+
filters: [...(r == null ? void 0 : r.filters) ?? [], ...((l2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : l2.filters) ?? []],
|
|
5677
|
+
sorting: ((m2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : m2.sorting) ?? []
|
|
5614
5678
|
});
|
|
5615
5679
|
}
|
|
5616
5680
|
const ImportFileHandleSchema = z$2.string().optional().refine(
|
|
@@ -5628,8 +5692,8 @@
|
|
|
5628
5692
|
}
|
|
5629
5693
|
return lst;
|
|
5630
5694
|
}
|
|
5631
|
-
function times(
|
|
5632
|
-
return toList(range(0,
|
|
5695
|
+
function times(n2, cb) {
|
|
5696
|
+
return toList(range(0, n2)).map(cb);
|
|
5633
5697
|
}
|
|
5634
5698
|
const $BlockArgs = z$2.object({
|
|
5635
5699
|
tableNumRows: z$2.number().default(100),
|
|
@@ -5646,8 +5710,8 @@
|
|
|
5646
5710
|
return (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("numbers")) == null ? void 0 : _b.getDataAsJson();
|
|
5647
5711
|
}).output("progresses", (ctx) => {
|
|
5648
5712
|
var _a;
|
|
5649
|
-
const
|
|
5650
|
-
const progresses =
|
|
5713
|
+
const m2 = (_a = ctx.outputs) == null ? void 0 : _a.resolve("progresses");
|
|
5714
|
+
const progresses = m2 == null ? void 0 : m2.mapFields((name, val) => [name, val == null ? void 0 : val.getImportProgress()]);
|
|
5651
5715
|
return Object.fromEntries(progresses ?? []);
|
|
5652
5716
|
}).output("pt", (ctx) => {
|
|
5653
5717
|
var _a, _b, _c, _d, _e2;
|
|
@@ -5659,7 +5723,7 @@
|
|
|
5659
5723
|
val: v.toString()
|
|
5660
5724
|
};
|
|
5661
5725
|
});
|
|
5662
|
-
return
|
|
5726
|
+
return Wt(
|
|
5663
5727
|
ctx,
|
|
5664
5728
|
[
|
|
5665
5729
|
{
|