@milaboratories/milaboratories.pool-explorer.model 1.0.76 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +12 -0
- package/dist/bundle.js +84 -84
- 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 "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.pool-explorer.model@1.0.
|
|
3
|
+
> @milaboratories/milaboratories.pool-explorer.model@1.0.78 build /home/runner/_work/platforma/platforma/etc/blocks/pool-explorer/model
|
|
4
4
|
> tsup && vite build && block-tools build-model
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
[34mESM[39m Build start
|
|
14
14
|
[32mESM[39m [1mdist/index.js [22m[32m410.00 B[39m
|
|
15
15
|
[32mESM[39m [1mdist/index.js.map [22m[32m996.00 B[39m
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 195ms
|
|
17
17
|
[32mCJS[39m [1mdist/index.cjs [22m[32m436.00 B[39m
|
|
18
18
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1013.00 B[39m
|
|
19
|
-
[32mCJS[39m ⚡️ Build success in
|
|
19
|
+
[32mCJS[39m ⚡️ Build success in 196ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 4315ms
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m1.14 KB[39m
|
|
23
23
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.14 KB[39m
|
|
24
24
|
[36mvite v6.3.5 [32mbuilding for production...[36m[39m
|
|
@@ -26,6 +26,6 @@ transforming...
|
|
|
26
26
|
[32m✓[39m 11 modules transformed.
|
|
27
27
|
rendering chunks...
|
|
28
28
|
computing gzip size...
|
|
29
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m182.
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m194.
|
|
31
|
-
[32m✓ built in
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m182.05 kB[22m[1m[22m[2m │ gzip: 34.96 kB[22m[2m │ map: 416.35 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m194.55 kB[22m[1m[22m[2m │ gzip: 35.59 kB[22m[2m │ map: 417.83 kB[22m
|
|
31
|
+
[32m✓ built in 2.30s[39m
|
package/CHANGELOG.md
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -3968,7 +3968,7 @@
|
|
|
3968
3968
|
function A(e) {
|
|
3969
3969
|
throw new Error("Unexpected object: " + e);
|
|
3970
3970
|
}
|
|
3971
|
-
function
|
|
3971
|
+
function $e$1(e) {
|
|
3972
3972
|
if (!e || typeof e != "object")
|
|
3973
3973
|
return false;
|
|
3974
3974
|
const n2 = e;
|
|
@@ -3985,7 +3985,7 @@
|
|
|
3985
3985
|
return false;
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
function
|
|
3988
|
+
function Ve$1(e, n2) {
|
|
3989
3989
|
if (e !== void 0)
|
|
3990
3990
|
switch (e.type) {
|
|
3991
3991
|
case "Json":
|
|
@@ -4030,10 +4030,10 @@
|
|
|
4030
4030
|
return false;
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
|
-
function
|
|
4033
|
+
function Ie(e) {
|
|
4034
4034
|
return _(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : false;
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4036
|
+
function Je(e) {
|
|
4037
4037
|
switch (e.type) {
|
|
4038
4038
|
case "Json": {
|
|
4039
4039
|
const n2 = Object.entries(e.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
|
|
@@ -4061,7 +4061,7 @@
|
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
4063
|
}
|
|
4064
|
-
function
|
|
4064
|
+
function De(e) {
|
|
4065
4065
|
switch (e.type) {
|
|
4066
4066
|
case "Json": {
|
|
4067
4067
|
const n2 = {};
|
|
@@ -4099,10 +4099,10 @@
|
|
|
4099
4099
|
const { type: n2, name: t, domain: r } = e, o = { type: n2, name: t };
|
|
4100
4100
|
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
4101
4101
|
}
|
|
4102
|
-
function
|
|
4102
|
+
function C(e) {
|
|
4103
4103
|
return e.map(y);
|
|
4104
4104
|
}
|
|
4105
|
-
function
|
|
4105
|
+
function He(e) {
|
|
4106
4106
|
return Be(y(e));
|
|
4107
4107
|
}
|
|
4108
4108
|
function ee$1(e, n2) {
|
|
@@ -4115,10 +4115,10 @@
|
|
|
4115
4115
|
function ne$1(e, n2) {
|
|
4116
4116
|
return e.name === n2.name && ee$1(e.domain, n2.domain);
|
|
4117
4117
|
}
|
|
4118
|
-
function
|
|
4119
|
-
return { ...e, src:
|
|
4118
|
+
function We$1(e, n2) {
|
|
4119
|
+
return { ...e, src: b$1(e.src, n2) };
|
|
4120
4120
|
}
|
|
4121
|
-
function
|
|
4121
|
+
function b$1(e, n2) {
|
|
4122
4122
|
switch (e.type) {
|
|
4123
4123
|
case "column":
|
|
4124
4124
|
return {
|
|
@@ -4138,13 +4138,13 @@
|
|
|
4138
4138
|
case "full":
|
|
4139
4139
|
return {
|
|
4140
4140
|
type: e.type,
|
|
4141
|
-
entries: e.entries.map((t) =>
|
|
4141
|
+
entries: e.entries.map((t) => b$1(t, n2))
|
|
4142
4142
|
};
|
|
4143
4143
|
case "outer":
|
|
4144
4144
|
return {
|
|
4145
4145
|
type: "outer",
|
|
4146
|
-
primary:
|
|
4147
|
-
secondary: e.secondary.map((t) =>
|
|
4146
|
+
primary: b$1(e.primary, n2),
|
|
4147
|
+
secondary: e.secondary.map((t) => b$1(t, n2))
|
|
4148
4148
|
};
|
|
4149
4149
|
default:
|
|
4150
4150
|
A(e);
|
|
@@ -4159,7 +4159,7 @@
|
|
|
4159
4159
|
function S(e, n2) {
|
|
4160
4160
|
return JSON.stringify([e, n2]);
|
|
4161
4161
|
}
|
|
4162
|
-
|
|
4162
|
+
class Qe {
|
|
4163
4163
|
/**
|
|
4164
4164
|
* Creates a new anchor context from a set of anchor column specifications
|
|
4165
4165
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
@@ -4252,8 +4252,8 @@
|
|
|
4252
4252
|
deriveS(n2, t) {
|
|
4253
4253
|
return te(this.derive(n2, t));
|
|
4254
4254
|
}
|
|
4255
|
-
}
|
|
4256
|
-
function
|
|
4255
|
+
}
|
|
4256
|
+
function Ye(e, n2, t) {
|
|
4257
4257
|
const r = { ...n2 }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4258
4258
|
if (r.domainAnchor !== void 0) {
|
|
4259
4259
|
const i = e[r.domainAnchor];
|
|
@@ -4318,17 +4318,17 @@
|
|
|
4318
4318
|
function ie(e) {
|
|
4319
4319
|
return l$1(e.spec);
|
|
4320
4320
|
}
|
|
4321
|
-
function
|
|
4321
|
+
function tn(e) {
|
|
4322
4322
|
if (!ie(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
4323
4323
|
return e;
|
|
4324
4324
|
}
|
|
4325
|
-
function
|
|
4325
|
+
function rn(e, n2) {
|
|
4326
4326
|
return e === void 0 ? void 0 : {
|
|
4327
4327
|
...e,
|
|
4328
4328
|
data: n2(e.data)
|
|
4329
4329
|
};
|
|
4330
4330
|
}
|
|
4331
|
-
function
|
|
4331
|
+
function on(e) {
|
|
4332
4332
|
const n2 = /* @__PURE__ */ new Map(), t = (r) => {
|
|
4333
4333
|
switch (r.type) {
|
|
4334
4334
|
case "column":
|
|
@@ -4417,15 +4417,15 @@
|
|
|
4417
4417
|
}
|
|
4418
4418
|
return true;
|
|
4419
4419
|
}
|
|
4420
|
-
function
|
|
4420
|
+
function sn(e) {
|
|
4421
4421
|
return Array.isArray(e) ? (n2) => e.some((t) => l$1(n2) && N(n2, t)) : (n2) => l$1(n2) && N(n2, e);
|
|
4422
4422
|
}
|
|
4423
|
-
function
|
|
4423
|
+
function an(e) {
|
|
4424
4424
|
const n2 = {
|
|
4425
4425
|
kind: e.kind,
|
|
4426
4426
|
name: e.name
|
|
4427
4427
|
};
|
|
4428
|
-
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec =
|
|
4428
|
+
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = C(e.axesSpec)), Be(n2);
|
|
4429
4429
|
}
|
|
4430
4430
|
z$1.object({
|
|
4431
4431
|
__isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4435,10 +4435,10 @@
|
|
|
4435
4435
|
}).describe(
|
|
4436
4436
|
"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."
|
|
4437
4437
|
).readonly();
|
|
4438
|
-
function
|
|
4438
|
+
function fn(e) {
|
|
4439
4439
|
return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === true && "blockId" in e && "name" in e;
|
|
4440
4440
|
}
|
|
4441
|
-
function
|
|
4441
|
+
function ln(e, n2 = true) {
|
|
4442
4442
|
if (n2)
|
|
4443
4443
|
return {
|
|
4444
4444
|
...e,
|
|
@@ -4449,7 +4449,7 @@
|
|
|
4449
4449
|
return r;
|
|
4450
4450
|
}
|
|
4451
4451
|
}
|
|
4452
|
-
function
|
|
4452
|
+
function mn(e, n2) {
|
|
4453
4453
|
return e.ok ? { ok: true, value: n2(e.value) } : e;
|
|
4454
4454
|
}
|
|
4455
4455
|
const de = 24;
|
|
@@ -4693,7 +4693,7 @@
|
|
|
4693
4693
|
const i = {};
|
|
4694
4694
|
for (const [o, s2] of Object.entries(r)) {
|
|
4695
4695
|
const a = [...this.resolvePath, o];
|
|
4696
|
-
i[o] =
|
|
4696
|
+
i[o] = rn(s2, (l2) => new O(l2, a));
|
|
4697
4697
|
}
|
|
4698
4698
|
return i;
|
|
4699
4699
|
}
|
|
@@ -4803,21 +4803,21 @@
|
|
|
4803
4803
|
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, o = /* @__PURE__ */ new Map(), s2 = t.map((d2) => {
|
|
4804
4804
|
var c2, v2;
|
|
4805
4805
|
const y2 = e(d2);
|
|
4806
|
-
let p2,
|
|
4807
|
-
"spec" in y2 && typeof y2.spec == "object" ? (p2 = y2.spec,
|
|
4806
|
+
let p2, g, C2;
|
|
4807
|
+
"spec" in y2 && typeof y2.spec == "object" ? (p2 = y2.spec, g = y2.prefixTrace, C2 = y2.suffixTrace) : p2 = y2;
|
|
4808
4808
|
const E = (c2 = p2.annotations) == null ? void 0 : c2[_t], x2 = (v2 = p2.annotations) == null ? void 0 : v2[Lt], S2 = (x2 ? Vt.safeParse(JSON.parse(x2)).data : void 0) ?? [], P = [
|
|
4809
|
-
...
|
|
4809
|
+
...g ?? [],
|
|
4810
4810
|
...S2,
|
|
4811
|
-
...
|
|
4811
|
+
...C2 ?? []
|
|
4812
4812
|
];
|
|
4813
4813
|
if (E !== void 0) {
|
|
4814
4814
|
const I = { label: E, type: Ot, importance: -2 };
|
|
4815
4815
|
n2.addLabelAsSuffix ? P.push(I) : P.splice(0, 0, I);
|
|
4816
4816
|
}
|
|
4817
|
-
const T = [],
|
|
4817
|
+
const T = [], F = /* @__PURE__ */ new Map();
|
|
4818
4818
|
for (let I = P.length - 1; I >= 0; --I) {
|
|
4819
|
-
const { type: $ } = P[I], K = P[I].importance ?? 0, j = (
|
|
4820
|
-
|
|
4819
|
+
const { type: $ } = P[I], K = P[I].importance ?? 0, j = (F.get($) ?? 0) + 1;
|
|
4820
|
+
F.set($, j);
|
|
4821
4821
|
const N2 = `${$}@${j}`;
|
|
4822
4822
|
o.set(N2, (o.get(N2) ?? 0) + 1), r.set(
|
|
4823
4823
|
N2,
|
|
@@ -4839,19 +4839,19 @@
|
|
|
4839
4839
|
d2.endsWith("@1") || o.get(d2) === t.length ? a.push(d2) : l2.push(d2);
|
|
4840
4840
|
const h = (d2, y2 = false) => {
|
|
4841
4841
|
const p2 = [];
|
|
4842
|
-
for (let
|
|
4843
|
-
const
|
|
4842
|
+
for (let g = 0; g < s2.length; g++) {
|
|
4843
|
+
const C2 = s2[g], E = C2.fullTrace.filter((P) => d2.has(P.fullType) || i && i.has(P.type));
|
|
4844
4844
|
if (E.length === 0)
|
|
4845
4845
|
if (y2)
|
|
4846
4846
|
p2.push({
|
|
4847
4847
|
label: "Unlabeled",
|
|
4848
|
-
value:
|
|
4848
|
+
value: C2.value
|
|
4849
4849
|
});
|
|
4850
4850
|
else return;
|
|
4851
4851
|
const x2 = E.map((P) => P.label), S2 = n2.separator ?? " / ";
|
|
4852
4852
|
p2.push({
|
|
4853
4853
|
label: x2.join(S2),
|
|
4854
|
-
value:
|
|
4854
|
+
value: C2.value
|
|
4855
4855
|
});
|
|
4856
4856
|
}
|
|
4857
4857
|
return p2;
|
|
@@ -5063,7 +5063,7 @@
|
|
|
5063
5063
|
function Ut(t) {
|
|
5064
5064
|
if (t !== void 0) {
|
|
5065
5065
|
if (_(t)) return t;
|
|
5066
|
-
if (
|
|
5066
|
+
if ($e$1(t)) return Je(t);
|
|
5067
5067
|
if (t instanceof O) return Ce(t);
|
|
5068
5068
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5069
5069
|
}
|
|
@@ -5139,14 +5139,14 @@
|
|
|
5139
5139
|
this.columns = e;
|
|
5140
5140
|
}
|
|
5141
5141
|
selectColumns(e) {
|
|
5142
|
-
const n2 = typeof e == "function" ? e :
|
|
5142
|
+
const n2 = typeof e == "function" ? e : sn(e);
|
|
5143
5143
|
return this.columns.filter((r) => n2(r.spec));
|
|
5144
5144
|
}
|
|
5145
5145
|
}
|
|
5146
5146
|
function qt(t) {
|
|
5147
5147
|
if (t)
|
|
5148
5148
|
return t.map((e) => ({
|
|
5149
|
-
type: `split:${
|
|
5149
|
+
type: `split:${He(e.axisId)}`,
|
|
5150
5150
|
label: e.label,
|
|
5151
5151
|
importance: 1e6
|
|
5152
5152
|
// High importance for split filters in labels
|
|
@@ -5206,34 +5206,34 @@
|
|
|
5206
5206
|
};
|
|
5207
5207
|
let u2 = () => false;
|
|
5208
5208
|
if (a) {
|
|
5209
|
-
const p2 = (Array.isArray(a) ? a : [a]).map((
|
|
5210
|
-
if (Ve(
|
|
5209
|
+
const p2 = (Array.isArray(a) ? a : [a]).map((g) => {
|
|
5210
|
+
if (Ve(g)) {
|
|
5211
5211
|
if (!r)
|
|
5212
5212
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5213
|
-
return
|
|
5213
|
+
return sn(Ye(r.anchors, g, n2));
|
|
5214
5214
|
} else
|
|
5215
|
-
return
|
|
5215
|
+
return sn(g);
|
|
5216
5216
|
});
|
|
5217
|
-
u2 = (
|
|
5217
|
+
u2 = (g) => p2.some((C2) => C2(g));
|
|
5218
5218
|
}
|
|
5219
5219
|
const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], m2 = /* @__PURE__ */ new Set();
|
|
5220
5220
|
for (const p2 of h) {
|
|
5221
|
-
const
|
|
5222
|
-
let
|
|
5223
|
-
if (
|
|
5221
|
+
const g = Ve(p2);
|
|
5222
|
+
let C2;
|
|
5223
|
+
if (g) {
|
|
5224
5224
|
if (!r)
|
|
5225
5225
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5226
|
-
|
|
5226
|
+
C2 = Ye(r.anchors, p2, n2);
|
|
5227
5227
|
} else
|
|
5228
|
-
|
|
5228
|
+
C2 = p2;
|
|
5229
5229
|
const E = /* @__PURE__ */ new Set(), x2 = [];
|
|
5230
5230
|
for (const T of this.providers) {
|
|
5231
|
-
const
|
|
5232
|
-
for (const c2 of
|
|
5231
|
+
const F = T.selectColumns(C2);
|
|
5232
|
+
for (const c2 of F) {
|
|
5233
5233
|
if (u2(c2.spec)) continue;
|
|
5234
5234
|
if (E.has(c2.id))
|
|
5235
5235
|
throw new Error(`Duplicate column id ${c2.id} in provider ${T.constructor.name}`);
|
|
5236
|
-
const v2 =
|
|
5236
|
+
const v2 = an(c2.spec);
|
|
5237
5237
|
m2.has(v2) || (E.add(c2.id), m2.add(v2), x2.push(c2));
|
|
5238
5238
|
}
|
|
5239
5239
|
}
|
|
@@ -5241,7 +5241,7 @@
|
|
|
5241
5241
|
const S2 = $t(p2), P = S2.length > 0;
|
|
5242
5242
|
for (const T of x2) {
|
|
5243
5243
|
if (!l$1(T.spec)) continue;
|
|
5244
|
-
const
|
|
5244
|
+
const F = T.spec;
|
|
5245
5245
|
if (P) {
|
|
5246
5246
|
if (Mt(T.data))
|
|
5247
5247
|
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T.id}`);
|
|
@@ -5250,12 +5250,12 @@
|
|
|
5250
5250
|
if (o) continue;
|
|
5251
5251
|
return;
|
|
5252
5252
|
}
|
|
5253
|
-
if (!
|
|
5253
|
+
if (!Ie(c2))
|
|
5254
5254
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${T.id}`);
|
|
5255
5255
|
const v2 = Nt(c2), I = S2[S2.length - 1];
|
|
5256
5256
|
if (I >= c2.partitionKeyLength)
|
|
5257
|
-
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I}) in column ${
|
|
5258
|
-
const $ = S2.map((_2) => this.findLabels(y(
|
|
5257
|
+
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I}) in column ${F.name}`);
|
|
5258
|
+
const $ = S2.map((_2) => this.findLabels(y(F.axesSpec[_2]))), K = [], j = (_2, W) => {
|
|
5259
5259
|
if (W >= S2.length) {
|
|
5260
5260
|
if (K.push([..._2]), K.length > 1e4)
|
|
5261
5261
|
throw new Error("Too many key combinations, aborting.");
|
|
@@ -5274,19 +5274,19 @@
|
|
|
5274
5274
|
};
|
|
5275
5275
|
if (j([], 0), K.length === 0)
|
|
5276
5276
|
continue;
|
|
5277
|
-
const N2 = [...
|
|
5277
|
+
const N2 = [...F.axesSpec], et = S2.map((_2) => _2);
|
|
5278
5278
|
for (let _2 = S2.length - 1; _2 >= 0; _2--)
|
|
5279
5279
|
N2.splice(S2[_2], 1);
|
|
5280
|
-
const tt = { ...
|
|
5280
|
+
const tt = { ...F, axesSpec: N2 };
|
|
5281
5281
|
for (const _2 of K) {
|
|
5282
5282
|
const W = _2.map((M, q) => {
|
|
5283
|
-
const te2 = et[q], nt = y(
|
|
5283
|
+
const te2 = et[q], nt = y(F.axesSpec[te2]), de2 = $[q], rt = (de2 == null ? void 0 : de2[M]) ?? String(M);
|
|
5284
5284
|
return { axisIdx: te2, axisId: nt, value: M, label: rt };
|
|
5285
5285
|
});
|
|
5286
5286
|
f.push({
|
|
5287
5287
|
type: "split",
|
|
5288
5288
|
originalColumn: T,
|
|
5289
|
-
spec:
|
|
5289
|
+
spec: F,
|
|
5290
5290
|
adjustedSpec: tt,
|
|
5291
5291
|
dataEntries: c2,
|
|
5292
5292
|
axisFilters: W
|
|
@@ -5296,8 +5296,8 @@
|
|
|
5296
5296
|
f.push({
|
|
5297
5297
|
type: "direct",
|
|
5298
5298
|
originalColumn: T,
|
|
5299
|
-
spec:
|
|
5300
|
-
adjustedSpec:
|
|
5299
|
+
spec: F,
|
|
5300
|
+
adjustedSpec: F
|
|
5301
5301
|
});
|
|
5302
5302
|
}
|
|
5303
5303
|
}
|
|
@@ -5310,22 +5310,22 @@
|
|
|
5310
5310
|
}),
|
|
5311
5311
|
l2
|
|
5312
5312
|
), y$1 = [];
|
|
5313
|
-
for (const { value: p2, label:
|
|
5314
|
-
const { originalColumn:
|
|
5313
|
+
for (const { value: p2, label: g } of d2) {
|
|
5314
|
+
const { originalColumn: C2, spec: E } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, S2 = Bt(x2);
|
|
5315
5315
|
let P;
|
|
5316
|
-
r ? P = r.deriveS(E, S2) : P = Jt(
|
|
5316
|
+
r ? P = r.deriveS(E, S2) : P = Jt(C2.id, S2);
|
|
5317
5317
|
let T = { ...p2.adjustedSpec };
|
|
5318
5318
|
s2 && (T = {
|
|
5319
5319
|
...T,
|
|
5320
5320
|
annotations: {
|
|
5321
5321
|
...T.annotations ?? {},
|
|
5322
|
-
"pl7.app/label":
|
|
5322
|
+
"pl7.app/label": g
|
|
5323
5323
|
}
|
|
5324
5324
|
}), y$1.push({
|
|
5325
5325
|
id: P,
|
|
5326
5326
|
spec: T,
|
|
5327
|
-
data: () => p2.type === "split" ?
|
|
5328
|
-
label:
|
|
5327
|
+
data: () => p2.type === "split" ? De(Kt(p2.dataEntries, S2)) : p2.originalColumn.data,
|
|
5328
|
+
label: g
|
|
5329
5329
|
});
|
|
5330
5330
|
}
|
|
5331
5331
|
return y$1;
|
|
@@ -5394,7 +5394,7 @@
|
|
|
5394
5394
|
return true;
|
|
5395
5395
|
}
|
|
5396
5396
|
function ke(t) {
|
|
5397
|
-
return
|
|
5397
|
+
return rn(t, (e) => e instanceof O ? e.handle : $e$1(e) ? Ve$1(e, (n2) => n2.handle) : e);
|
|
5398
5398
|
}
|
|
5399
5399
|
class Wt {
|
|
5400
5400
|
constructor() {
|
|
@@ -5407,28 +5407,28 @@
|
|
|
5407
5407
|
return this.ctx.calculateOptions(e);
|
|
5408
5408
|
}
|
|
5409
5409
|
getOptions(e, n2) {
|
|
5410
|
-
const r = typeof e == "function" ? e :
|
|
5410
|
+
const r = typeof e == "function" ? e : sn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5411
5411
|
let o = {}, s2 = false;
|
|
5412
5412
|
return typeof n2 < "u" && (typeof n2 == "function" ? o = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? o = n2 : (n2 = n2, o = n2.label ?? {}, s2 = n2.refsWithEnrichments ?? false))), typeof o == "object" ? ze(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5413
|
-
ref:
|
|
5413
|
+
ref: ln(a, s2),
|
|
5414
5414
|
label: l2
|
|
5415
5415
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5416
|
-
ref:
|
|
5416
|
+
ref: ln(a, s2),
|
|
5417
5417
|
label: o(l2, a)
|
|
5418
5418
|
}));
|
|
5419
5419
|
}
|
|
5420
5420
|
resolveAnchorCtx(e) {
|
|
5421
|
-
if (e instanceof
|
|
5421
|
+
if (e instanceof Qe) return e;
|
|
5422
5422
|
const n2 = {};
|
|
5423
5423
|
for (const [r, i] of Object.entries(e))
|
|
5424
|
-
if (
|
|
5424
|
+
if (fn(i)) {
|
|
5425
5425
|
const o = this.getPColumnSpecByRef(i);
|
|
5426
5426
|
if (!o)
|
|
5427
5427
|
return;
|
|
5428
5428
|
n2[r] = o;
|
|
5429
5429
|
} else
|
|
5430
5430
|
n2[r] = i;
|
|
5431
|
-
return new
|
|
5431
|
+
return new Qe(n2);
|
|
5432
5432
|
}
|
|
5433
5433
|
/**
|
|
5434
5434
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5521,7 +5521,7 @@
|
|
|
5521
5521
|
ref: n2.ref,
|
|
5522
5522
|
obj: {
|
|
5523
5523
|
...n2.obj,
|
|
5524
|
-
data:
|
|
5524
|
+
data: mn(
|
|
5525
5525
|
n2.obj.data,
|
|
5526
5526
|
(r) => new O(r, [n2.ref.blockId, n2.ref.name])
|
|
5527
5527
|
)
|
|
@@ -5550,7 +5550,7 @@
|
|
|
5550
5550
|
)) == null ? void 0 : r.obj;
|
|
5551
5551
|
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5552
5552
|
if (n2)
|
|
5553
|
-
return
|
|
5553
|
+
return rn(
|
|
5554
5554
|
n2,
|
|
5555
5555
|
(i) => new O(i, [e.blockId, e.name])
|
|
5556
5556
|
);
|
|
@@ -5563,7 +5563,7 @@
|
|
|
5563
5563
|
getPColumnByRef(e) {
|
|
5564
5564
|
const n2 = this.getDataByRef(e);
|
|
5565
5565
|
if (n2)
|
|
5566
|
-
return
|
|
5566
|
+
return tn(n2);
|
|
5567
5567
|
}
|
|
5568
5568
|
/**
|
|
5569
5569
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -5634,7 +5634,7 @@
|
|
|
5634
5634
|
* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
|
|
5635
5635
|
*/
|
|
5636
5636
|
selectColumns(e) {
|
|
5637
|
-
const n2 = typeof e == "function" ? e :
|
|
5637
|
+
const n2 = typeof e == "function" ? e : sn(e);
|
|
5638
5638
|
return this.getSpecs().entries.filter(({ obj: i }) => l$1(i) ? n2(i) : false).map(({ ref: i, obj: o }) => {
|
|
5639
5639
|
const s2 = o;
|
|
5640
5640
|
let a = null;
|
|
@@ -5727,7 +5727,7 @@
|
|
|
5727
5727
|
}
|
|
5728
5728
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5729
5729
|
var i;
|
|
5730
|
-
const n2 = e.some((o) => !(o.data instanceof O) ||
|
|
5730
|
+
const n2 = e.some((o) => !(o.data instanceof O) || $e$1(o.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5731
5731
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5732
5732
|
}
|
|
5733
5733
|
patchPTableDef(e) {
|
|
@@ -5758,8 +5758,8 @@
|
|
|
5758
5758
|
partitionFilters: e.filters ?? [],
|
|
5759
5759
|
filters: [],
|
|
5760
5760
|
sorting: e.sorting ?? []
|
|
5761
|
-
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(
|
|
5762
|
-
|
|
5761
|
+
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(on(n2.src)), this.ctx.createPTable(
|
|
5762
|
+
We$1(n2, (r) => ke(r))
|
|
5763
5763
|
);
|
|
5764
5764
|
}
|
|
5765
5765
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5779,7 +5779,7 @@
|
|
|
5779
5779
|
this.ctx.logError(e);
|
|
5780
5780
|
}
|
|
5781
5781
|
}
|
|
5782
|
-
const Gt = "1.
|
|
5782
|
+
const Gt = "1.42.1", X = Gt;
|
|
5783
5783
|
function Ht(t) {
|
|
5784
5784
|
return t.__renderLambda === true;
|
|
5785
5785
|
}
|