@milaboratories/milaboratories.pool-explorer.model 1.0.57 → 1.0.58
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 +7 -0
- package/dist/bundle.js +75 -75
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +2 -2
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.58 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
|
[32mCJS[39m [1mdist/index.cjs [22m[32m436.00 B[39m
|
|
15
15
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1013.00 B[39m
|
|
16
|
-
[32mCJS[39m ⚡️ Build success in
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 126ms
|
|
17
17
|
[32mESM[39m [1mdist/index.js [22m[32m410.00 B[39m
|
|
18
18
|
[32mESM[39m [1mdist/index.js.map [22m[32m996.00 B[39m
|
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 126ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 3578ms
|
|
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[2m179.26 kB[22m[1m[22m[2m │ gzip: 34.
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m191.55 kB[22m[1m[22m[2m │ gzip:
|
|
31
|
-
[32m✓ built in
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m179.26 kB[22m[1m[22m[2m │ gzip: 34.38 kB[22m[2m │ map: 392.53 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m191.55 kB[22m[1m[22m[2m │ gzip: 34.99 kB[22m[2m │ map: 394.00 kB[22m
|
|
31
|
+
[32m✓ built in 2.30s[39m
|
package/CHANGELOG.md
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -4156,7 +4156,7 @@
|
|
|
4156
4156
|
function P(n2) {
|
|
4157
4157
|
return Re(p$1(n2));
|
|
4158
4158
|
}
|
|
4159
|
-
function k
|
|
4159
|
+
function k(n2, e) {
|
|
4160
4160
|
return JSON.stringify([n2, e]);
|
|
4161
4161
|
}
|
|
4162
4162
|
class _n {
|
|
@@ -4181,7 +4181,7 @@
|
|
|
4181
4181
|
const s2 = Object.entries(o.domain);
|
|
4182
4182
|
s2.sort((a, i) => a[0].localeCompare(i[0])), this.domainPackToAnchor.set(JSON.stringify(s2), r), this.domainPacks.push(s2.map(([a]) => a));
|
|
4183
4183
|
for (const [a, i] of s2) {
|
|
4184
|
-
const u2 = k
|
|
4184
|
+
const u2 = k(a, i);
|
|
4185
4185
|
this.domains.set(u2, r);
|
|
4186
4186
|
}
|
|
4187
4187
|
}
|
|
@@ -4216,7 +4216,7 @@
|
|
|
4216
4216
|
for (const [a, i] of Object.entries(e.domain ?? {})) {
|
|
4217
4217
|
if (o !== void 0 && o.has(a))
|
|
4218
4218
|
continue;
|
|
4219
|
-
const u2 = k
|
|
4219
|
+
const u2 = k(a, i), c2 = this.domains.get(u2);
|
|
4220
4220
|
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : i;
|
|
4221
4221
|
}
|
|
4222
4222
|
if (r.axes = e.axesSpec.map((a) => {
|
|
@@ -4515,7 +4515,7 @@
|
|
|
4515
4515
|
});
|
|
4516
4516
|
var Ye = Object.defineProperty;
|
|
4517
4517
|
var Xe = (t, e, n2) => e in t ? Ye(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4518
|
-
var
|
|
4518
|
+
var D = (t, e, n2) => Xe(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4519
4519
|
function re(t) {
|
|
4520
4520
|
return { type: "Immediate", value: t };
|
|
4521
4521
|
}
|
|
@@ -4550,8 +4550,8 @@
|
|
|
4550
4550
|
}
|
|
4551
4551
|
class I {
|
|
4552
4552
|
constructor(e, n2 = (r) => r) {
|
|
4553
|
-
|
|
4554
|
-
|
|
4553
|
+
D(this, "isResolved", false);
|
|
4554
|
+
D(this, "resolvedValue");
|
|
4555
4555
|
this.handle = e, this.postProcess = n2, mt(e, (r) => {
|
|
4556
4556
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4557
4557
|
});
|
|
@@ -4805,33 +4805,33 @@
|
|
|
4805
4805
|
const m2 = e(p2);
|
|
4806
4806
|
let f2, v, b;
|
|
4807
4807
|
"spec" in m2 && typeof m2.spec == "object" ? (f2 = m2.spec, v = m2.prefixTrace, b = m2.suffixTrace) : f2 = m2;
|
|
4808
|
-
const
|
|
4808
|
+
const h2 = (S = f2.annotations) == null ? void 0 : S[bt], w2 = (F = f2.annotations) == null ? void 0 : F[wt], x = (w2 ? xt.safeParse(JSON.parse(w2)).data : void 0) ?? [], C = [
|
|
4809
4809
|
...v ?? [],
|
|
4810
|
-
...
|
|
4810
|
+
...x,
|
|
4811
4811
|
...b ?? []
|
|
4812
4812
|
];
|
|
4813
|
-
if (
|
|
4814
|
-
const
|
|
4815
|
-
n2.addLabelAsSuffix ? C.push(
|
|
4813
|
+
if (h2 !== void 0) {
|
|
4814
|
+
const k2 = { label: h2, type: Pt, importance: -2 };
|
|
4815
|
+
n2.addLabelAsSuffix ? C.push(k2) : C.splice(0, 0, k2);
|
|
4816
4816
|
}
|
|
4817
|
-
const
|
|
4818
|
-
for (let
|
|
4819
|
-
const { type: W } = C[
|
|
4817
|
+
const A = [], T = /* @__PURE__ */ new Map();
|
|
4818
|
+
for (let k2 = C.length - 1; k2 >= 0; --k2) {
|
|
4819
|
+
const { type: W } = C[k2], j2 = C[k2].importance ?? 0, $ = (T.get(W) ?? 0) + 1;
|
|
4820
4820
|
T.set(W, $);
|
|
4821
4821
|
const K2 = `${W}@${$}`;
|
|
4822
4822
|
s2.set(K2, (s2.get(K2) ?? 0) + 1), r.set(
|
|
4823
4823
|
K2,
|
|
4824
4824
|
Math.max(
|
|
4825
4825
|
r.get(K2) ?? Number.NEGATIVE_INFINITY,
|
|
4826
|
-
j2 - (C.length -
|
|
4826
|
+
j2 - (C.length - k2) * Ct
|
|
4827
4827
|
)
|
|
4828
|
-
),
|
|
4828
|
+
), A.push({ ...C[k2], fullType: K2, occurrenceIndex: $ });
|
|
4829
4829
|
}
|
|
4830
|
-
return
|
|
4830
|
+
return A.reverse(), {
|
|
4831
4831
|
value: p2,
|
|
4832
4832
|
spec: f2,
|
|
4833
|
-
label:
|
|
4834
|
-
fullTrace:
|
|
4833
|
+
label: h2,
|
|
4834
|
+
fullTrace: A
|
|
4835
4835
|
};
|
|
4836
4836
|
}), a = [], l2 = [], u2 = [...r];
|
|
4837
4837
|
u2.sort(([, p2], [, m2]) => m2 - p2);
|
|
@@ -4840,17 +4840,17 @@
|
|
|
4840
4840
|
const c2 = (p2, m2 = false) => {
|
|
4841
4841
|
const f2 = [];
|
|
4842
4842
|
for (let v = 0; v < o.length; v++) {
|
|
4843
|
-
const b = o[v],
|
|
4844
|
-
if (
|
|
4843
|
+
const b = o[v], h2 = b.fullTrace.filter((C) => p2.has(C.fullType) || i && i.has(C.type));
|
|
4844
|
+
if (h2.length === 0)
|
|
4845
4845
|
if (m2)
|
|
4846
4846
|
f2.push({
|
|
4847
4847
|
label: "Unlabeled",
|
|
4848
4848
|
value: b.value
|
|
4849
4849
|
});
|
|
4850
4850
|
else return;
|
|
4851
|
-
const
|
|
4851
|
+
const w2 = h2.map((C) => C.label), x = n2.separator ?? " / ";
|
|
4852
4852
|
f2.push({
|
|
4853
|
-
label:
|
|
4853
|
+
label: w2.join(x),
|
|
4854
4854
|
value: b.value
|
|
4855
4855
|
});
|
|
4856
4856
|
}
|
|
@@ -4860,15 +4860,15 @@
|
|
|
4860
4860
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4861
4861
|
return c2(new Set(Te), true);
|
|
4862
4862
|
}
|
|
4863
|
-
let d = 0,
|
|
4863
|
+
let d = 0, g = -1;
|
|
4864
4864
|
for (; d < a.length; ) {
|
|
4865
4865
|
const p2 = /* @__PURE__ */ new Set();
|
|
4866
4866
|
n2.includeNativeLabel && p2.add(Te);
|
|
4867
4867
|
for (let f2 = 0; f2 < d; ++f2) p2.add(a[f2]);
|
|
4868
|
-
|
|
4868
|
+
g >= 0 && p2.add(a[g]);
|
|
4869
4869
|
const m2 = c2(p2);
|
|
4870
4870
|
if (m2 !== void 0 && new Set(m2.map((f2) => f2.label)).size === t.length) return m2;
|
|
4871
|
-
|
|
4871
|
+
g++, g >= a.length && (d++, g = d);
|
|
4872
4872
|
}
|
|
4873
4873
|
return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4874
4874
|
}
|
|
@@ -5134,7 +5134,7 @@
|
|
|
5134
5134
|
const e = t[0];
|
|
5135
5135
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5136
5136
|
}
|
|
5137
|
-
class
|
|
5137
|
+
class kt {
|
|
5138
5138
|
constructor(e) {
|
|
5139
5139
|
this.columns = e;
|
|
5140
5140
|
}
|
|
@@ -5143,7 +5143,7 @@
|
|
|
5143
5143
|
return this.columns.filter((r) => n2(r.spec));
|
|
5144
5144
|
}
|
|
5145
5145
|
}
|
|
5146
|
-
function
|
|
5146
|
+
function Dt(t) {
|
|
5147
5147
|
if (t)
|
|
5148
5148
|
return t.map((e) => ({
|
|
5149
5149
|
type: `split:${Rn(e.axisId)}`,
|
|
@@ -5176,9 +5176,9 @@
|
|
|
5176
5176
|
}
|
|
5177
5177
|
class le {
|
|
5178
5178
|
constructor() {
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5179
|
+
D(this, "defaultProviderStore", []);
|
|
5180
|
+
D(this, "providers", [new kt(this.defaultProviderStore)]);
|
|
5181
|
+
D(this, "axisLabelProviders", []);
|
|
5182
5182
|
}
|
|
5183
5183
|
addColumnProvider(e) {
|
|
5184
5184
|
return this.providers.push(e), this;
|
|
@@ -5216,7 +5216,7 @@
|
|
|
5216
5216
|
});
|
|
5217
5217
|
u2 = (v) => f2.some((b) => b(v));
|
|
5218
5218
|
}
|
|
5219
|
-
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [],
|
|
5219
|
+
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], g = /* @__PURE__ */ new Set();
|
|
5220
5220
|
for (const f$1 of c2) {
|
|
5221
5221
|
const v = Le(f$1);
|
|
5222
5222
|
let b;
|
|
@@ -5226,44 +5226,44 @@
|
|
|
5226
5226
|
b = Mn(r.anchors, f$1, n2);
|
|
5227
5227
|
} else
|
|
5228
5228
|
b = f$1;
|
|
5229
|
-
const
|
|
5230
|
-
for (const
|
|
5231
|
-
const T =
|
|
5229
|
+
const h2 = /* @__PURE__ */ new Set(), w2 = [];
|
|
5230
|
+
for (const A of this.providers) {
|
|
5231
|
+
const T = A.selectColumns(b);
|
|
5232
5232
|
for (const S of T) {
|
|
5233
5233
|
if (u2(S.spec)) continue;
|
|
5234
|
-
if (
|
|
5235
|
-
throw new Error(`Duplicate column id ${S.id} in provider ${
|
|
5234
|
+
if (h2.has(S.id))
|
|
5235
|
+
throw new Error(`Duplicate column id ${S.id} in provider ${A.constructor.name}`);
|
|
5236
5236
|
const F = Qn(S.spec);
|
|
5237
|
-
|
|
5237
|
+
g.has(F) || (h2.add(S.id), g.add(F), w2.push(S));
|
|
5238
5238
|
}
|
|
5239
5239
|
}
|
|
5240
|
-
if (
|
|
5241
|
-
const
|
|
5242
|
-
for (const
|
|
5243
|
-
if (!f(
|
|
5244
|
-
const T =
|
|
5240
|
+
if (w2.length === 0) continue;
|
|
5241
|
+
const x = Ft(f$1), C = x.length > 0;
|
|
5242
|
+
for (const A of w2) {
|
|
5243
|
+
if (!f(A.spec)) continue;
|
|
5244
|
+
const T = A.spec;
|
|
5245
5245
|
if (C) {
|
|
5246
|
-
if (Et(
|
|
5247
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
5248
|
-
const S = Tt(
|
|
5246
|
+
if (Et(A.data))
|
|
5247
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
|
|
5248
|
+
const S = Tt(A.data);
|
|
5249
5249
|
if (!S) {
|
|
5250
5250
|
if (s2) continue;
|
|
5251
5251
|
return;
|
|
5252
5252
|
}
|
|
5253
5253
|
if (!Sn(S))
|
|
5254
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${
|
|
5255
|
-
const F = It(S),
|
|
5256
|
-
if (
|
|
5257
|
-
throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${
|
|
5258
|
-
const W =
|
|
5259
|
-
if (G >=
|
|
5254
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${A.id}`);
|
|
5255
|
+
const F = It(S), k2 = x[x.length - 1];
|
|
5256
|
+
if (k2 >= S.partitionKeyLength)
|
|
5257
|
+
throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${T.name}`);
|
|
5258
|
+
const W = x.map((_) => this.findLabels(p$1(T.axesSpec[_]))), j2 = [], $ = (_, G) => {
|
|
5259
|
+
if (G >= x.length) {
|
|
5260
5260
|
if (j2.push([..._]), j2.length > 1e4)
|
|
5261
5261
|
throw new Error("Too many key combinations, aborting.");
|
|
5262
5262
|
return;
|
|
5263
5263
|
}
|
|
5264
|
-
const N2 =
|
|
5264
|
+
const N2 = x[G];
|
|
5265
5265
|
if (N2 >= F.length)
|
|
5266
|
-
throw new Error(`Axis index ${N2} out of bounds for unique keys array (length ${F.length}) during split key generation for column ${
|
|
5266
|
+
throw new Error(`Axis index ${N2} out of bounds for unique keys array (length ${F.length}) during split key generation for column ${A.id}`);
|
|
5267
5267
|
const J2 = F[N2];
|
|
5268
5268
|
if (!J2 || J2.length === 0) {
|
|
5269
5269
|
j2.length = 0;
|
|
@@ -5274,9 +5274,9 @@
|
|
|
5274
5274
|
};
|
|
5275
5275
|
if ($([], 0), j2.length === 0)
|
|
5276
5276
|
continue;
|
|
5277
|
-
const K2 = [...T.axesSpec], Ge =
|
|
5278
|
-
for (let _ =
|
|
5279
|
-
K2.splice(
|
|
5277
|
+
const K2 = [...T.axesSpec], Ge = x.map((_) => _);
|
|
5278
|
+
for (let _ = x.length - 1; _ >= 0; _--)
|
|
5279
|
+
K2.splice(x[_], 1);
|
|
5280
5280
|
const He = { ...T, axesSpec: K2 };
|
|
5281
5281
|
for (const _ of j2) {
|
|
5282
5282
|
const G = _.map((N2, J2) => {
|
|
@@ -5285,7 +5285,7 @@
|
|
|
5285
5285
|
});
|
|
5286
5286
|
d.push({
|
|
5287
5287
|
type: "split",
|
|
5288
|
-
originalColumn:
|
|
5288
|
+
originalColumn: A,
|
|
5289
5289
|
spec: T,
|
|
5290
5290
|
adjustedSpec: He,
|
|
5291
5291
|
dataEntries: S,
|
|
@@ -5295,7 +5295,7 @@
|
|
|
5295
5295
|
} else
|
|
5296
5296
|
d.push({
|
|
5297
5297
|
type: "direct",
|
|
5298
|
-
originalColumn:
|
|
5298
|
+
originalColumn: A,
|
|
5299
5299
|
spec: T,
|
|
5300
5300
|
adjustedSpec: T
|
|
5301
5301
|
});
|
|
@@ -5306,25 +5306,25 @@
|
|
|
5306
5306
|
d,
|
|
5307
5307
|
(f2) => ({
|
|
5308
5308
|
spec: f2.spec,
|
|
5309
|
-
suffixTrace: f2.type === "split" ?
|
|
5309
|
+
suffixTrace: f2.type === "split" ? Dt(f2.axisFilters) : void 0
|
|
5310
5310
|
}),
|
|
5311
5311
|
l2
|
|
5312
5312
|
), m2 = [];
|
|
5313
5313
|
for (const { value: f2, label: v } of p2) {
|
|
5314
|
-
const { originalColumn: b, spec:
|
|
5314
|
+
const { originalColumn: b, spec: h2 } = f2, w2 = f2.type === "split" ? f2.axisFilters : void 0, x = Ot(w2);
|
|
5315
5315
|
let C;
|
|
5316
|
-
r ? C = r.deriveS(
|
|
5317
|
-
let
|
|
5318
|
-
o && (
|
|
5319
|
-
...
|
|
5316
|
+
r ? C = r.deriveS(h2, x) : C = Rt(b.id, x);
|
|
5317
|
+
let A = { ...f2.adjustedSpec };
|
|
5318
|
+
o && (A = {
|
|
5319
|
+
...A,
|
|
5320
5320
|
annotations: {
|
|
5321
|
-
...
|
|
5321
|
+
...A.annotations ?? {},
|
|
5322
5322
|
"pl7.app/label": v
|
|
5323
5323
|
}
|
|
5324
5324
|
}), m2.push({
|
|
5325
5325
|
id: C,
|
|
5326
|
-
spec:
|
|
5327
|
-
data: () => f2.type === "split" ? Jn(Lt(f2.dataEntries,
|
|
5326
|
+
spec: A,
|
|
5327
|
+
data: () => f2.type === "split" ? Jn(Lt(f2.dataEntries, x)) : f2.originalColumn.data,
|
|
5328
5328
|
label: v
|
|
5329
5329
|
});
|
|
5330
5330
|
}
|
|
@@ -5365,7 +5365,7 @@
|
|
|
5365
5365
|
}
|
|
5366
5366
|
class Kt {
|
|
5367
5367
|
constructor() {
|
|
5368
|
-
|
|
5368
|
+
D(this, "ctx", y());
|
|
5369
5369
|
}
|
|
5370
5370
|
/**
|
|
5371
5371
|
* @deprecated use getOptions()
|
|
@@ -5634,11 +5634,11 @@
|
|
|
5634
5634
|
}
|
|
5635
5635
|
class te {
|
|
5636
5636
|
constructor() {
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5637
|
+
D(this, "ctx");
|
|
5638
|
+
D(this, "args");
|
|
5639
|
+
D(this, "uiState");
|
|
5640
|
+
D(this, "_activeArgsCache");
|
|
5641
|
+
D(this, "resultPool", new Kt());
|
|
5642
5642
|
this.ctx = y(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5643
5643
|
}
|
|
5644
5644
|
/**
|
|
@@ -5715,7 +5715,7 @@
|
|
|
5715
5715
|
this.ctx.logError(e);
|
|
5716
5716
|
}
|
|
5717
5717
|
}
|
|
5718
|
-
const Y = "1.37.
|
|
5718
|
+
const Y = "1.37.11";
|
|
5719
5719
|
function Vt(t) {
|
|
5720
5720
|
return t.__renderLambda === true;
|
|
5721
5721
|
}
|