@milaboratories/milaboratories.ui-examples.model 1.1.33 → 1.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +12 -0
- package/dist/bundle.js +117 -107
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/opt/actions-runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.ui-examples.model@1.1.
|
|
3
|
+
> @milaboratories/milaboratories.ui-examples.model@1.1.35 build /opt/actions-runner/_work/platforma/platforma/etc/blocks/ui-examples/model
|
|
4
4
|
> tsup && vite build && block-tools build-model
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
[34mCLI[39m Cleaning output folder
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[34mESM[39m Build start
|
|
14
|
-
[32mESM[39m [1mdist/index.js [22m[32m4.74 KB[39m
|
|
15
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m11.23 KB[39m
|
|
16
|
-
[32mESM[39m ⚡️ Build success in 78ms
|
|
17
14
|
[32mCJS[39m [1mdist/index.cjs [22m[32m4.88 KB[39m
|
|
18
15
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m11.28 KB[39m
|
|
19
|
-
[32mCJS[39m ⚡️ Build success in
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 185ms
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m4.74 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m11.23 KB[39m
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 185ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 1630ms
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m2.40 KB[39m
|
|
23
23
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.40 KB[39m
|
|
24
24
|
[36mvite v5.4.11 [32mbuilding for production...[36m[39m
|
|
@@ -26,6 +26,6 @@ transforming...
|
|
|
26
26
|
[32m✓[39m 6 modules transformed.
|
|
27
27
|
rendering chunks...
|
|
28
28
|
computing gzip size...
|
|
29
|
-
[2mdist/[22m[36mbundle.js [39m[1m[
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[
|
|
31
|
-
[32m✓ built in
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m173.11 kB[22m[1m[22m[2m │ gzip: 33.12 kB[22m[2m │ map: 370.71 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m185.15 kB[22m[1m[22m[2m │ gzip: 33.74 kB[22m[2m │ map: 372.10 kB[22m
|
|
31
|
+
[32m✓ built in 768ms[39m
|
package/CHANGELOG.md
CHANGED
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((m) => !!m).slice().reverse();
|
|
406
406
|
for (const map of maps) {
|
|
407
407
|
errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
|
|
408
408
|
}
|
|
@@ -3954,7 +3954,7 @@
|
|
|
3954
3954
|
function w(n) {
|
|
3955
3955
|
throw new Error("Unexpected object: " + n);
|
|
3956
3956
|
}
|
|
3957
|
-
function
|
|
3957
|
+
function dn(n) {
|
|
3958
3958
|
if (!n || typeof n != "object")
|
|
3959
3959
|
return false;
|
|
3960
3960
|
const t = n;
|
|
@@ -3971,7 +3971,7 @@
|
|
|
3971
3971
|
return false;
|
|
3972
3972
|
}
|
|
3973
3973
|
}
|
|
3974
|
-
function
|
|
3974
|
+
function pn(n, t) {
|
|
3975
3975
|
if (n !== void 0)
|
|
3976
3976
|
switch (n.type) {
|
|
3977
3977
|
case "Json":
|
|
@@ -3999,7 +3999,7 @@
|
|
|
3999
3999
|
}
|
|
4000
4000
|
}
|
|
4001
4001
|
}
|
|
4002
|
-
function
|
|
4002
|
+
function ln(n) {
|
|
4003
4003
|
switch (n.type) {
|
|
4004
4004
|
case "Json": {
|
|
4005
4005
|
const t = {};
|
|
@@ -4033,22 +4033,22 @@
|
|
|
4033
4033
|
}
|
|
4034
4034
|
}
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4036
|
+
function y(n) {
|
|
4037
4037
|
const { type: t, name: e, domain: r } = n;
|
|
4038
4038
|
return { type: t, name: e, ...r && { domain: r } };
|
|
4039
4039
|
}
|
|
4040
4040
|
function Sn(n) {
|
|
4041
|
-
return g(
|
|
4041
|
+
return g(y(n));
|
|
4042
4042
|
}
|
|
4043
|
-
function
|
|
4043
|
+
function W(n, t) {
|
|
4044
4044
|
if (n === void 0) return t === void 0;
|
|
4045
4045
|
if (t === void 0) return true;
|
|
4046
4046
|
for (const e in t)
|
|
4047
4047
|
if (n[e] !== t[e]) return false;
|
|
4048
4048
|
return true;
|
|
4049
4049
|
}
|
|
4050
|
-
function
|
|
4051
|
-
return n.name === t.name &&
|
|
4050
|
+
function X(n, t) {
|
|
4051
|
+
return n.name === t.name && W(n.domain, t.domain);
|
|
4052
4052
|
}
|
|
4053
4053
|
function En(n, t) {
|
|
4054
4054
|
return { ...n, src: l(n.src, t) };
|
|
@@ -4060,6 +4060,13 @@
|
|
|
4060
4060
|
type: "column",
|
|
4061
4061
|
column: t(n.column)
|
|
4062
4062
|
};
|
|
4063
|
+
case "slicedColumn":
|
|
4064
|
+
return {
|
|
4065
|
+
type: "slicedColumn",
|
|
4066
|
+
column: t(n.column),
|
|
4067
|
+
newId: n.newId,
|
|
4068
|
+
axisFilters: n.axisFilters
|
|
4069
|
+
};
|
|
4063
4070
|
case "inner":
|
|
4064
4071
|
case "full":
|
|
4065
4072
|
return {
|
|
@@ -4076,11 +4083,11 @@
|
|
|
4076
4083
|
w(n);
|
|
4077
4084
|
}
|
|
4078
4085
|
}
|
|
4079
|
-
function
|
|
4086
|
+
function z$1(n) {
|
|
4080
4087
|
return g(n);
|
|
4081
4088
|
}
|
|
4082
4089
|
function P(n) {
|
|
4083
|
-
return g(
|
|
4090
|
+
return g(y(n));
|
|
4084
4091
|
}
|
|
4085
4092
|
function x(n, t) {
|
|
4086
4093
|
return JSON.stringify([n, t]);
|
|
@@ -4100,15 +4107,15 @@
|
|
|
4100
4107
|
e.sort((r, o) => r[0].localeCompare(o[0]));
|
|
4101
4108
|
for (const [r, o] of e) {
|
|
4102
4109
|
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
4103
|
-
const
|
|
4104
|
-
this.axes.set(
|
|
4110
|
+
const a = o.axesSpec[i], s = P(a);
|
|
4111
|
+
this.axes.set(s, { anchor: r, idx: i });
|
|
4105
4112
|
}
|
|
4106
4113
|
if (o.domain !== void 0) {
|
|
4107
4114
|
const i = Object.entries(o.domain);
|
|
4108
|
-
i.sort((
|
|
4109
|
-
for (const [
|
|
4110
|
-
const
|
|
4111
|
-
this.domains.set(
|
|
4115
|
+
i.sort((a, s) => a[0].localeCompare(s[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
|
|
4116
|
+
for (const [a, s] of i) {
|
|
4117
|
+
const u = x(a, s);
|
|
4118
|
+
this.domains.set(u, r);
|
|
4112
4119
|
}
|
|
4113
4120
|
}
|
|
4114
4121
|
}
|
|
@@ -4124,47 +4131,47 @@
|
|
|
4124
4131
|
let o;
|
|
4125
4132
|
if (t.domain !== void 0)
|
|
4126
4133
|
n:
|
|
4127
|
-
for (const
|
|
4128
|
-
const
|
|
4129
|
-
for (const
|
|
4130
|
-
const d = t.domain[
|
|
4134
|
+
for (const a of this.domainPacks) {
|
|
4135
|
+
const s = [];
|
|
4136
|
+
for (const c of a) {
|
|
4137
|
+
const d = t.domain[c];
|
|
4131
4138
|
if (d !== void 0)
|
|
4132
|
-
|
|
4139
|
+
s.push([c, d]);
|
|
4133
4140
|
else
|
|
4134
4141
|
break n;
|
|
4135
4142
|
}
|
|
4136
|
-
const
|
|
4137
|
-
if (
|
|
4138
|
-
r.domainAnchor =
|
|
4143
|
+
const u = this.domainPackToAnchor.get(JSON.stringify(s));
|
|
4144
|
+
if (u !== void 0) {
|
|
4145
|
+
r.domainAnchor = u, o = new Set(a);
|
|
4139
4146
|
break;
|
|
4140
4147
|
}
|
|
4141
4148
|
}
|
|
4142
|
-
for (const [
|
|
4143
|
-
if (o !== void 0 && o.has(
|
|
4149
|
+
for (const [a, s] of Object.entries(t.domain ?? {})) {
|
|
4150
|
+
if (o !== void 0 && o.has(a))
|
|
4144
4151
|
continue;
|
|
4145
|
-
const
|
|
4146
|
-
r.domain ?? (r.domain = {}), r.domain[
|
|
4152
|
+
const u = x(a, s), c = this.domains.get(u);
|
|
4153
|
+
r.domain ?? (r.domain = {}), r.domain[a] = c ? { anchor: c } : s;
|
|
4147
4154
|
}
|
|
4148
|
-
if (r.axes = t.axesSpec.map((
|
|
4149
|
-
const
|
|
4150
|
-
return this.axes.get(
|
|
4155
|
+
if (r.axes = t.axesSpec.map((a) => {
|
|
4156
|
+
const s = P(a);
|
|
4157
|
+
return this.axes.get(s) ?? a;
|
|
4151
4158
|
}), !e || e.length === 0)
|
|
4152
4159
|
return r;
|
|
4153
4160
|
const i = [];
|
|
4154
|
-
for (const
|
|
4155
|
-
const [
|
|
4156
|
-
if (typeof
|
|
4157
|
-
if (
|
|
4158
|
-
throw new Error(`Axis index ${
|
|
4159
|
-
i.push([
|
|
4161
|
+
for (const a of e) {
|
|
4162
|
+
const [s, u] = a;
|
|
4163
|
+
if (typeof s == "number") {
|
|
4164
|
+
if (s < 0 || s >= t.axesSpec.length)
|
|
4165
|
+
throw new Error(`Axis index ${s} is out of bounds (0-${t.axesSpec.length - 1})`);
|
|
4166
|
+
i.push([s, u]);
|
|
4160
4167
|
} else {
|
|
4161
|
-
const
|
|
4162
|
-
if (
|
|
4163
|
-
throw new Error(`Axis with name "${
|
|
4164
|
-
i.push([
|
|
4168
|
+
const c = t.axesSpec.findIndex((d) => d.name === s);
|
|
4169
|
+
if (c === -1)
|
|
4170
|
+
throw new Error(`Axis with name "${s}" not found in the column specification`);
|
|
4171
|
+
i.push([c, u]);
|
|
4165
4172
|
}
|
|
4166
4173
|
}
|
|
4167
|
-
return i.sort((
|
|
4174
|
+
return i.sort((a, s) => a[0] - s[0]), {
|
|
4168
4175
|
source: r,
|
|
4169
4176
|
axisFilters: i
|
|
4170
4177
|
};
|
|
@@ -4176,7 +4183,7 @@
|
|
|
4176
4183
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
4177
4184
|
*/
|
|
4178
4185
|
deriveS(t, e) {
|
|
4179
|
-
return
|
|
4186
|
+
return z$1(this.derive(t, e));
|
|
4180
4187
|
}
|
|
4181
4188
|
}
|
|
4182
4189
|
function Jn(n, t) {
|
|
@@ -4194,19 +4201,19 @@
|
|
|
4194
4201
|
if (typeof i == "string")
|
|
4195
4202
|
r[o] = i;
|
|
4196
4203
|
else {
|
|
4197
|
-
const
|
|
4198
|
-
if (!
|
|
4204
|
+
const a = n[i.anchor];
|
|
4205
|
+
if (!a)
|
|
4199
4206
|
throw new Error(`Anchor "${i.anchor}" not found for domain key "${o}"`);
|
|
4200
|
-
if (!
|
|
4207
|
+
if (!a.domain || a.domain[o] === void 0)
|
|
4201
4208
|
throw new Error(`Domain key "${o}" not found in anchor "${i.anchor}"`);
|
|
4202
|
-
r[o] =
|
|
4209
|
+
r[o] = a.domain[o];
|
|
4203
4210
|
}
|
|
4204
4211
|
e.domain = r;
|
|
4205
4212
|
}
|
|
4206
|
-
return e.axes && (e.axes = e.axes.map((r) =>
|
|
4213
|
+
return e.axes && (e.axes = e.axes.map((r) => G(n, r))), e;
|
|
4207
4214
|
}
|
|
4208
|
-
function
|
|
4209
|
-
if (!
|
|
4215
|
+
function G(n, t) {
|
|
4216
|
+
if (!Q$1(t))
|
|
4210
4217
|
return t;
|
|
4211
4218
|
const e = t.anchor, r = n[e];
|
|
4212
4219
|
if (!r)
|
|
@@ -4223,7 +4230,7 @@
|
|
|
4223
4230
|
throw new Error(`Axis with name "${t.name}" not found in anchor "${e}"`);
|
|
4224
4231
|
return o[0];
|
|
4225
4232
|
} else if ("id" in t) {
|
|
4226
|
-
const o = r.axesSpec.filter((i) =>
|
|
4233
|
+
const o = r.axesSpec.filter((i) => X(t.id, y(i)));
|
|
4227
4234
|
if (o.length > 1)
|
|
4228
4235
|
throw new Error(`Multiple matching axes found for matcher in anchor "${e}"`);
|
|
4229
4236
|
if (o.length === 0)
|
|
@@ -4232,31 +4239,34 @@
|
|
|
4232
4239
|
}
|
|
4233
4240
|
throw new Error("Unsupported axis reference type");
|
|
4234
4241
|
}
|
|
4235
|
-
function
|
|
4242
|
+
function Q$1(n) {
|
|
4236
4243
|
return typeof n == "object" && "anchor" in n;
|
|
4237
4244
|
}
|
|
4238
4245
|
function f(n) {
|
|
4239
4246
|
return n.kind === "PColumn";
|
|
4240
4247
|
}
|
|
4241
|
-
function
|
|
4248
|
+
function Y$1(n) {
|
|
4242
4249
|
return f(n.spec);
|
|
4243
4250
|
}
|
|
4244
4251
|
function Dn(n) {
|
|
4245
|
-
if (!
|
|
4252
|
+
if (!Y$1(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
|
|
4246
4253
|
return n;
|
|
4247
4254
|
}
|
|
4248
|
-
function
|
|
4255
|
+
function In(n, t) {
|
|
4249
4256
|
return n === void 0 ? void 0 : {
|
|
4250
4257
|
...n,
|
|
4251
4258
|
data: t(n.data)
|
|
4252
4259
|
};
|
|
4253
4260
|
}
|
|
4254
|
-
function
|
|
4261
|
+
function jn(n) {
|
|
4255
4262
|
const t = /* @__PURE__ */ new Map(), e = (r) => {
|
|
4256
4263
|
switch (r.type) {
|
|
4257
4264
|
case "column":
|
|
4258
4265
|
t.set(r.column.id, r.column);
|
|
4259
4266
|
return;
|
|
4267
|
+
case "slicedColumn":
|
|
4268
|
+
t.set(r.column.id, r.column);
|
|
4269
|
+
return;
|
|
4260
4270
|
case "full":
|
|
4261
4271
|
case "inner":
|
|
4262
4272
|
for (const o of r.entries) e(o);
|
|
@@ -4306,7 +4316,7 @@
|
|
|
4306
4316
|
return false;
|
|
4307
4317
|
}
|
|
4308
4318
|
if (t.axes !== void 0) {
|
|
4309
|
-
const e = n.axesSpec.map(
|
|
4319
|
+
const e = n.axesSpec.map(y);
|
|
4310
4320
|
if (t.partialAxesMatch) {
|
|
4311
4321
|
for (const r of t.axes)
|
|
4312
4322
|
if (!e.some((o) => k(r, o)))
|
|
@@ -4335,7 +4345,7 @@
|
|
|
4335
4345
|
}
|
|
4336
4346
|
return true;
|
|
4337
4347
|
}
|
|
4338
|
-
function
|
|
4348
|
+
function Bn(n) {
|
|
4339
4349
|
return Array.isArray(n) ? (t) => n.some((e) => f(t) && N$1(t, e)) : (t) => f(t) && N$1(t, n);
|
|
4340
4350
|
}
|
|
4341
4351
|
z$2.object({
|
|
@@ -4351,8 +4361,8 @@
|
|
|
4351
4361
|
function Mn(n, t) {
|
|
4352
4362
|
return n.ok ? { ok: true, value: t(n.value) } : n;
|
|
4353
4363
|
}
|
|
4354
|
-
const
|
|
4355
|
-
z$2.string().length(
|
|
4364
|
+
const rn = 24;
|
|
4365
|
+
z$2.string().length(rn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4356
4366
|
var _e = Object.defineProperty;
|
|
4357
4367
|
var Ie = (t, e, n) => e in t ? _e(t, e, { enumerable: true, configurable: true, writable: true, value: n }) : t[e] = n;
|
|
4358
4368
|
var T = (t, e, n) => Ie(t, typeof e != "symbol" ? e + "" : e, n);
|
|
@@ -4515,7 +4525,7 @@
|
|
|
4515
4525
|
getPColumns(e = false, n = "") {
|
|
4516
4526
|
const r = this.parsePObjectCollection(e, n);
|
|
4517
4527
|
return r === void 0 ? void 0 : Object.entries(r).map(([, s]) => {
|
|
4518
|
-
if (!
|
|
4528
|
+
if (!Y$1(s)) throw new Error(`not a PColumn (kind = ${s.spec.kind})`);
|
|
4519
4529
|
return s;
|
|
4520
4530
|
});
|
|
4521
4531
|
}
|
|
@@ -4533,7 +4543,7 @@
|
|
|
4533
4543
|
const i = {};
|
|
4534
4544
|
for (const [s, o] of Object.entries(r)) {
|
|
4535
4545
|
const a = [...this.resolvePath, s];
|
|
4536
|
-
i[s] =
|
|
4546
|
+
i[s] = In(o, (c) => new I(c, a));
|
|
4537
4547
|
}
|
|
4538
4548
|
return i;
|
|
4539
4549
|
}
|
|
@@ -4629,7 +4639,7 @@
|
|
|
4629
4639
|
let c = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4630
4640
|
(l2) => [l2, this.resolve({ field: l2, assertFieldType: r })]
|
|
4631
4641
|
);
|
|
4632
|
-
return s && (c = c.filter((l2) => l2[1] !== void 0)), c.map(([l2,
|
|
4642
|
+
return s && (c = c.filter((l2) => l2[1] !== void 0)), c.map(([l2, m]) => o(l2, m));
|
|
4633
4643
|
}
|
|
4634
4644
|
}
|
|
4635
4645
|
const ve = "staging", we = "main";
|
|
@@ -4643,10 +4653,10 @@
|
|
|
4643
4653
|
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = t.map((f2) => {
|
|
4644
4654
|
var R, k2;
|
|
4645
4655
|
const p2 = e(f2);
|
|
4646
|
-
let d,
|
|
4647
|
-
"spec" in p2 && typeof p2.spec == "object" ? (d = p2.spec,
|
|
4656
|
+
let d, y2, g2;
|
|
4657
|
+
"spec" in p2 && typeof p2.spec == "object" ? (d = p2.spec, y2 = p2.prefixTrace, g2 = p2.suffixTrace) : d = p2;
|
|
4648
4658
|
const v = (R = d.annotations) == null ? void 0 : R[Ue], w2 = (k2 = d.annotations) == null ? void 0 : k2[Me], x2 = (w2 ? We.safeParse(JSON.parse(w2)).data : void 0) ?? [], C = [
|
|
4649
|
-
...
|
|
4659
|
+
...y2 ?? [],
|
|
4650
4660
|
...x2,
|
|
4651
4661
|
...g2 ?? []
|
|
4652
4662
|
];
|
|
@@ -4678,9 +4688,9 @@
|
|
|
4678
4688
|
for (const [f2] of c)
|
|
4679
4689
|
f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
|
|
4680
4690
|
const l2 = (f2) => s.map((p2) => {
|
|
4681
|
-
const d = p2.fullTrace.filter((g2) => f2.has(g2.fullType)).map((g2) => g2.label),
|
|
4691
|
+
const d = p2.fullTrace.filter((g2) => f2.has(g2.fullType)).map((g2) => g2.label), y2 = n.separator ?? " / ";
|
|
4682
4692
|
return {
|
|
4683
|
-
label: d.join(
|
|
4693
|
+
label: d.join(y2),
|
|
4684
4694
|
value: p2.value
|
|
4685
4695
|
};
|
|
4686
4696
|
});
|
|
@@ -4688,15 +4698,15 @@
|
|
|
4688
4698
|
if (a.length !== 0) throw new Error("Assertion error.");
|
|
4689
4699
|
return l2(new Set(pe));
|
|
4690
4700
|
}
|
|
4691
|
-
let
|
|
4692
|
-
for (;
|
|
4701
|
+
let m = 0, u = 0;
|
|
4702
|
+
for (; m < o.length; ) {
|
|
4693
4703
|
const f2 = /* @__PURE__ */ new Set();
|
|
4694
4704
|
n.includeNativeLabel && f2.add(pe);
|
|
4695
|
-
for (let d = 0; d <
|
|
4705
|
+
for (let d = 0; d < m; ++d) f2.add(o[d]);
|
|
4696
4706
|
f2.add(o[u]);
|
|
4697
4707
|
const p2 = l2(f2);
|
|
4698
4708
|
if (new Set(p2.map((d) => d.label)).size === t.length) return p2;
|
|
4699
|
-
u++, u == o.length && (
|
|
4709
|
+
u++, u == o.length && (m++, u = m);
|
|
4700
4710
|
}
|
|
4701
4711
|
return l2(/* @__PURE__ */ new Set([...o, ...a]));
|
|
4702
4712
|
}
|
|
@@ -4934,7 +4944,7 @@
|
|
|
4934
4944
|
return true;
|
|
4935
4945
|
}
|
|
4936
4946
|
function fe(t) {
|
|
4937
|
-
return
|
|
4947
|
+
return In(t, (e) => e instanceof I ? e.handle : dn(e) ? pn(e, (n) => n.handle) : e);
|
|
4938
4948
|
}
|
|
4939
4949
|
function Qe(t) {
|
|
4940
4950
|
if (t)
|
|
@@ -4960,7 +4970,7 @@
|
|
|
4960
4970
|
return this.ctx.calculateOptions(e);
|
|
4961
4971
|
}
|
|
4962
4972
|
getOptions(e, n) {
|
|
4963
|
-
const r = typeof e == "function" ? e :
|
|
4973
|
+
const r = typeof e == "function" ? e : Bn(e), i = this.getSpecs().entries.filter((s) => r(s.obj));
|
|
4964
4974
|
return typeof n == "object" || typeof n > "u" ? de(i, (s) => s.obj, n ?? {}).map(({ value: { ref: s }, label: o }) => ({
|
|
4965
4975
|
ref: s,
|
|
4966
4976
|
label: o
|
|
@@ -4976,38 +4986,38 @@
|
|
|
4976
4986
|
getUniversalPColumnEntries(e, n, r) {
|
|
4977
4987
|
const i = {};
|
|
4978
4988
|
if (!(e instanceof On))
|
|
4979
|
-
for (const [l2,
|
|
4980
|
-
if (Kn(
|
|
4981
|
-
const u = this.getPColumnSpecByRef(
|
|
4989
|
+
for (const [l2, m] of Object.entries(e))
|
|
4990
|
+
if (Kn(m)) {
|
|
4991
|
+
const u = this.getPColumnSpecByRef(m);
|
|
4982
4992
|
if (!u)
|
|
4983
4993
|
return;
|
|
4984
4994
|
i[l2] = u;
|
|
4985
4995
|
} else
|
|
4986
|
-
i[l2] =
|
|
4996
|
+
i[l2] = m;
|
|
4987
4997
|
const s = typeof n == "function" ? [n] : Array.isArray(n) ? n : [n], o = e instanceof On ? e : new On(i), a = [];
|
|
4988
4998
|
for (const l2 of s) {
|
|
4989
|
-
const m
|
|
4999
|
+
const m = typeof l2 == "function" ? l2 : Bn(Jn(i, l2)), u = this.getSpecs().entries.filter(({ obj: p2 }) => f(p2) ? m(p2) : false);
|
|
4990
5000
|
if (u.length === 0)
|
|
4991
5001
|
continue;
|
|
4992
5002
|
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) : [];
|
|
4993
5003
|
if (f$1.sort((p2, d) => p2 - d), f$1.length > 0) {
|
|
4994
5004
|
const p2 = f$1[f$1.length - 1];
|
|
4995
|
-
for (const { ref: d, obj: y } of u) {
|
|
4996
|
-
if (!f(y)) throw new Error(`Assertion failed: expected PColumnSpec, got ${y.kind}`);
|
|
5005
|
+
for (const { ref: d, obj: y$1 } of u) {
|
|
5006
|
+
if (!f(y$1)) throw new Error(`Assertion failed: expected PColumnSpec, got ${y$1.kind}`);
|
|
4997
5007
|
const g2 = this.getDataByRef(d);
|
|
4998
5008
|
if (!g2) {
|
|
4999
5009
|
if (r != null && r.dontWaitAllData) continue;
|
|
5000
5010
|
return;
|
|
5001
5011
|
}
|
|
5002
|
-
if (!
|
|
5012
|
+
if (!Y$1(g2)) throw new Error(`Assertion failed: expected PColumn, got ${g2.spec.kind}`);
|
|
5003
5013
|
const v = Ye(g2.data);
|
|
5004
5014
|
if (!v) {
|
|
5005
5015
|
if (r != null && r.dontWaitAllData) continue;
|
|
5006
5016
|
return;
|
|
5007
5017
|
}
|
|
5008
5018
|
if (p2 >= v.length)
|
|
5009
|
-
throw new Error(`Not enough partition keys for the requested split axes in column ${y.name}`);
|
|
5010
|
-
const w2 = f$1.map((P2) => this.findLabels(
|
|
5019
|
+
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, F) => {
|
|
5011
5021
|
if (F >= f$1.length) {
|
|
5012
5022
|
x2.push([...P2]);
|
|
5013
5023
|
return;
|
|
@@ -5019,11 +5029,11 @@
|
|
|
5019
5029
|
C([], 0);
|
|
5020
5030
|
for (const P2 of x2) {
|
|
5021
5031
|
const F = P2.map((R, k2) => {
|
|
5022
|
-
const A = f$1[k2], j =
|
|
5032
|
+
const A = f$1[k2], j = y(y$1.axesSpec[A]), V = w2[k2], K = (V == null ? void 0 : V[R]) ?? String(R);
|
|
5023
5033
|
return { axisIdx: A, axisId: j, value: R, label: K };
|
|
5024
5034
|
});
|
|
5025
5035
|
a.push({
|
|
5026
|
-
obj: y,
|
|
5036
|
+
obj: y$1,
|
|
5027
5037
|
ref: d,
|
|
5028
5038
|
axisFilters: F
|
|
5029
5039
|
});
|
|
@@ -5084,19 +5094,19 @@
|
|
|
5084
5094
|
if (!c) return;
|
|
5085
5095
|
const l2 = le(c.data);
|
|
5086
5096
|
if (!l2) return;
|
|
5087
|
-
let
|
|
5097
|
+
let m = l2, u = { ...c.spec };
|
|
5088
5098
|
if (a.axisFilters && a.axisFilters.length > 0) {
|
|
5089
5099
|
const p2 = a.axisFilters.map((g2) => [
|
|
5090
5100
|
g2.axisIdx,
|
|
5091
5101
|
g2.value
|
|
5092
5102
|
]);
|
|
5093
|
-
|
|
5094
|
-
const d = [...a.axisFilters].map((g2) => g2.axisIdx).sort((g2, v) => v - g2),
|
|
5103
|
+
m = Xe(l2, p2);
|
|
5104
|
+
const d = [...a.axisFilters].map((g2) => g2.axisIdx).sort((g2, v) => v - g2), y2 = [...u.axesSpec];
|
|
5095
5105
|
for (const g2 of d)
|
|
5096
|
-
|
|
5097
|
-
u = { ...u, axesSpec:
|
|
5106
|
+
y2.splice(g2, 1);
|
|
5107
|
+
u = { ...u, axesSpec: y2 };
|
|
5098
5108
|
}
|
|
5099
|
-
const f2 =
|
|
5109
|
+
const f2 = ln(m);
|
|
5100
5110
|
u.annotations ? u = {
|
|
5101
5111
|
...u,
|
|
5102
5112
|
annotations: {
|
|
@@ -5215,7 +5225,7 @@
|
|
|
5215
5225
|
)) == null ? void 0 : r.obj;
|
|
5216
5226
|
const n = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5217
5227
|
if (n)
|
|
5218
|
-
return
|
|
5228
|
+
return In(
|
|
5219
5229
|
n,
|
|
5220
5230
|
(i) => new I(i, [e.blockId, e.name])
|
|
5221
5231
|
);
|
|
@@ -5278,7 +5288,7 @@
|
|
|
5278
5288
|
findLabels(e) {
|
|
5279
5289
|
const n = this.getData();
|
|
5280
5290
|
for (const r of n.entries) {
|
|
5281
|
-
if (!
|
|
5291
|
+
if (!Y$1(r.obj)) continue;
|
|
5282
5292
|
const i = r.obj.spec;
|
|
5283
5293
|
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)) {
|
|
5284
5294
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
@@ -5336,7 +5346,7 @@
|
|
|
5336
5346
|
}
|
|
5337
5347
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5338
5348
|
var i;
|
|
5339
|
-
const n = e.some((s) => !(s.data instanceof I) ||
|
|
5349
|
+
const n = e.some((s) => !(s.data instanceof I) || dn(s.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5340
5350
|
if (n && !r) throw Error("Inline or explicit columns not supported");
|
|
5341
5351
|
}
|
|
5342
5352
|
createPFrame(e) {
|
|
@@ -5353,7 +5363,7 @@
|
|
|
5353
5363
|
},
|
|
5354
5364
|
filters: e.filters ?? [],
|
|
5355
5365
|
sorting: e.sorting ?? []
|
|
5356
|
-
} : n = e, this.verifyInlineAndExplicitColumnsSupport(
|
|
5366
|
+
} : n = e, this.verifyInlineAndExplicitColumnsSupport(jn(n.src)), this.ctx.createPTable(
|
|
5357
5367
|
En(n, (r) => fe(r))
|
|
5358
5368
|
);
|
|
5359
5369
|
}
|
|
@@ -5366,7 +5376,7 @@
|
|
|
5366
5376
|
return this.ctx.getCurrentUnstableMarker();
|
|
5367
5377
|
}
|
|
5368
5378
|
}
|
|
5369
|
-
const U = "1.
|
|
5379
|
+
const U = "1.27.8";
|
|
5370
5380
|
function tt(t) {
|
|
5371
5381
|
return t.__renderLambda === true;
|
|
5372
5382
|
}
|
|
@@ -5548,9 +5558,9 @@
|
|
|
5548
5558
|
}
|
|
5549
5559
|
}
|
|
5550
5560
|
function Gt(t, e, n, r) {
|
|
5551
|
-
var l2, m
|
|
5561
|
+
var l2, m;
|
|
5552
5562
|
Array.isArray(r) && (r = { filters: r });
|
|
5553
|
-
const i = t.resultPool.getData().entries.map((u) => u.obj).filter(
|
|
5563
|
+
const i = t.resultPool.getData().entries.map((u) => u.obj).filter(Y$1).filter((u) => u.spec.name === "pl7.app/label" && u.spec.axesSpec.length === 1), s = (u, f2) => {
|
|
5554
5564
|
let p2 = u.toString();
|
|
5555
5565
|
if (f2)
|
|
5556
5566
|
for (const d in f2)
|
|
@@ -5559,10 +5569,10 @@
|
|
|
5559
5569
|
}, o = /* @__PURE__ */ new Map();
|
|
5560
5570
|
for (const u of e)
|
|
5561
5571
|
for (const f2 of u.spec.axesSpec) {
|
|
5562
|
-
const p2 =
|
|
5572
|
+
const p2 = y(f2);
|
|
5563
5573
|
for (const d of i) {
|
|
5564
|
-
const y = d.spec.axesSpec[0], g2 =
|
|
5565
|
-
if (
|
|
5574
|
+
const y$1 = d.spec.axesSpec[0], g2 = y(d.spec.axesSpec[0]);
|
|
5575
|
+
if (X(p2, g2)) {
|
|
5566
5576
|
const v = Object.keys(p2.domain ?? {}).length, w2 = Object.keys(g2.domain ?? {}).length;
|
|
5567
5577
|
if (v > w2) {
|
|
5568
5578
|
const x2 = s(d.id, p2.domain);
|
|
@@ -5570,7 +5580,7 @@
|
|
|
5570
5580
|
id: x2,
|
|
5571
5581
|
spec: {
|
|
5572
5582
|
...d.spec,
|
|
5573
|
-
axesSpec: [{ ...p2, annotations: y.annotations }]
|
|
5583
|
+
axesSpec: [{ ...p2, annotations: y$1.annotations }]
|
|
5574
5584
|
},
|
|
5575
5585
|
data: d.data
|
|
5576
5586
|
});
|
|
@@ -5600,7 +5610,7 @@
|
|
|
5600
5610
|
secondary: c.map((u) => ({ type: "column", column: u }))
|
|
5601
5611
|
},
|
|
5602
5612
|
filters: [...(r == null ? void 0 : r.filters) ?? [], ...((l2 = n == null ? void 0 : n.pTableParams) == null ? void 0 : l2.filters) ?? []],
|
|
5603
|
-
sorting: ((m
|
|
5613
|
+
sorting: ((m = n == null ? void 0 : n.pTableParams) == null ? void 0 : m.sorting) ?? []
|
|
5604
5614
|
});
|
|
5605
5615
|
}
|
|
5606
5616
|
const ImportFileHandleSchema = z$2.string().optional().refine(
|
|
@@ -5636,8 +5646,8 @@
|
|
|
5636
5646
|
return (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("numbers")) == null ? void 0 : _b.getDataAsJson();
|
|
5637
5647
|
}).output("progresses", (ctx) => {
|
|
5638
5648
|
var _a;
|
|
5639
|
-
const
|
|
5640
|
-
const progresses =
|
|
5649
|
+
const m = (_a = ctx.outputs) == null ? void 0 : _a.resolve("progresses");
|
|
5650
|
+
const progresses = m == null ? void 0 : m.mapFields((name, val) => [name, val == null ? void 0 : val.getImportProgress()]);
|
|
5641
5651
|
return Object.fromEntries(progresses ?? []);
|
|
5642
5652
|
}).output("pt", (ctx) => {
|
|
5643
5653
|
var _a, _b, _c, _d, _e2;
|