@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.
@@ -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.57 build /home/runner/_work/platforma/platforma/etc/blocks/pool-explorer/model
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
  CLI Building entry: src/index.ts
@@ -13,12 +13,12 @@
13
13
  ESM Build start
14
14
  CJS dist/index.cjs 436.00 B
15
15
  CJS dist/index.cjs.map 1013.00 B
16
- CJS ⚡️ Build success in 111ms
16
+ CJS ⚡️ Build success in 126ms
17
17
  ESM dist/index.js 410.00 B
18
18
  ESM dist/index.js.map 996.00 B
19
- ESM ⚡️ Build success in 112ms
19
+ ESM ⚡️ Build success in 126ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 1208ms
21
+ DTS ⚡️ Build success in 3578ms
22
22
  DTS dist/index.d.cts 1.14 KB
23
23
  DTS dist/index.d.ts 1.14 KB
24
24
  vite v6.3.5 building for production...
@@ -26,6 +26,6 @@ transforming...
26
26
  ✓ 11 modules transformed.
27
27
  rendering chunks...
28
28
  computing gzip size...
29
- dist/bundle.js 179.26 kB │ gzip: 34.39 kB │ map: 392.33 kB
30
- dist/bundle.js 191.55 kB │ gzip: 35.00 kB │ map: 393.80 kB
31
- ✓ built in 1.02s
29
+ dist/bundle.js 179.26 kB │ gzip: 34.38 kB │ map: 392.53 kB
30
+ dist/bundle.js 191.55 kB │ gzip: 34.99 kB │ map: 394.00 kB
31
+ ✓ built in 2.30s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @milaboratories/milaboratories.pool-explorer.model
2
2
 
3
+ ## 1.0.58
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [10e5841]
8
+ - @platforma-sdk/model@1.37.11
9
+
3
10
  ## 1.0.57
4
11
 
5
12
  ### Patch Changes
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$1(n2, e) {
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$1(a, i);
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$1(a, i), c2 = this.domains.get(u2);
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 k = (t, e, n2) => Xe(t, typeof e != "symbol" ? e + "" : e, n2);
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
- k(this, "isResolved", false);
4554
- k(this, "resolvedValue");
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 g = (S = f2.annotations) == null ? void 0 : S[bt], x = (F = f2.annotations) == null ? void 0 : F[wt], A = (x ? xt.safeParse(JSON.parse(x)).data : void 0) ?? [], C = [
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
- ...A,
4810
+ ...x,
4811
4811
  ...b ?? []
4812
4812
  ];
4813
- if (g !== void 0) {
4814
- const D = { label: g, type: Pt, importance: -2 };
4815
- n2.addLabelAsSuffix ? C.push(D) : C.splice(0, 0, D);
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 w2 = [], T = /* @__PURE__ */ new Map();
4818
- for (let D = C.length - 1; D >= 0; --D) {
4819
- const { type: W } = C[D], j2 = C[D].importance ?? 0, $ = (T.get(W) ?? 0) + 1;
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 - D) * Ct
4826
+ j2 - (C.length - k2) * Ct
4827
4827
  )
4828
- ), w2.push({ ...C[D], fullType: K2, occurrenceIndex: $ });
4828
+ ), A.push({ ...C[k2], fullType: K2, occurrenceIndex: $ });
4829
4829
  }
4830
- return w2.reverse(), {
4830
+ return A.reverse(), {
4831
4831
  value: p2,
4832
4832
  spec: f2,
4833
- label: g,
4834
- fullTrace: w2
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], g = b.fullTrace.filter((C) => p2.has(C.fullType) || i && i.has(C.type));
4844
- if (g.length === 0)
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 x = g.map((C) => C.label), A = n2.separator ?? " / ";
4851
+ const w2 = h2.map((C) => C.label), x = n2.separator ?? " / ";
4852
4852
  f2.push({
4853
- label: x.join(A),
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, h2 = -1;
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
- h2 >= 0 && p2.add(a[h2]);
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
- h2++, h2 >= a.length && (d++, h2 = d);
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 Dt {
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 kt(t) {
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
- k(this, "defaultProviderStore", []);
5180
- k(this, "providers", [new Dt(this.defaultProviderStore)]);
5181
- k(this, "axisLabelProviders", []);
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 = [], h2 = /* @__PURE__ */ new Set();
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 g = /* @__PURE__ */ new Set(), x = [];
5230
- for (const w2 of this.providers) {
5231
- const T = w2.selectColumns(b);
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 (g.has(S.id))
5235
- throw new Error(`Duplicate column id ${S.id} in provider ${w2.constructor.name}`);
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
- h2.has(F) || (g.add(S.id), h2.add(F), x.push(S));
5237
+ g.has(F) || (h2.add(S.id), g.add(F), w2.push(S));
5238
5238
  }
5239
5239
  }
5240
- if (x.length === 0) continue;
5241
- const A = Ft(f$1), C = A.length > 0;
5242
- for (const w2 of x) {
5243
- if (!f(w2.spec)) continue;
5244
- const T = w2.spec;
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(w2.data))
5247
- throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${w2.id}`);
5248
- const S = Tt(w2.data);
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 ${w2.id}`);
5255
- const F = It(S), D = A[A.length - 1];
5256
- if (D >= S.partitionKeyLength)
5257
- throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${D}) in column ${T.name}`);
5258
- const W = A.map((_) => this.findLabels(p$1(T.axesSpec[_]))), j2 = [], $ = (_, G) => {
5259
- if (G >= A.length) {
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 = A[G];
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 ${w2.id}`);
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 = A.map((_) => _);
5278
- for (let _ = A.length - 1; _ >= 0; _--)
5279
- K2.splice(A[_], 1);
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: w2,
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: w2,
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" ? kt(f2.axisFilters) : void 0
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: g } = f2, x = f2.type === "split" ? f2.axisFilters : void 0, A = Ot(x);
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(g, A) : C = Rt(b.id, A);
5317
- let w2 = { ...f2.adjustedSpec };
5318
- o && (w2 = {
5319
- ...w2,
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
- ...w2.annotations ?? {},
5321
+ ...A.annotations ?? {},
5322
5322
  "pl7.app/label": v
5323
5323
  }
5324
5324
  }), m2.push({
5325
5325
  id: C,
5326
- spec: w2,
5327
- data: () => f2.type === "split" ? Jn(Lt(f2.dataEntries, A)) : f2.originalColumn.data,
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
- k(this, "ctx", y());
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
- k(this, "ctx");
5638
- k(this, "args");
5639
- k(this, "uiState");
5640
- k(this, "_activeArgsCache");
5641
- k(this, "resultPool", new Kt());
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.2";
5718
+ const Y = "1.37.11";
5719
5719
  function Vt(t) {
5720
5720
  return t.__renderLambda === true;
5721
5721
  }