@milaboratories/milaboratories.pool-explorer.model 1.0.45 → 1.0.47

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.45 build /home/runner/_work/platforma/platforma/etc/blocks/pool-explorer/model
3
+ > @milaboratories/milaboratories.pool-explorer.model@1.0.47 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 280ms
16
+ CJS ⚡️ Build success in 67ms
17
17
  ESM dist/index.js 410.00 B
18
18
  ESM dist/index.js.map 996.00 B
19
- ESM ⚡️ Build success in 280ms
19
+ ESM ⚡️ Build success in 68ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 3679ms
21
+ DTS ⚡️ Build success in 862ms
22
22
  DTS dist/index.d.cts 1.14 KB
23
23
  DTS dist/index.d.ts 1.14 KB
24
24
  vite v5.4.11 building for production...
@@ -26,6 +26,6 @@ transforming...
26
26
  ✓ 9 modules transformed.
27
27
  rendering chunks...
28
28
  computing gzip size...
29
- dist/bundle.js 178.13 kB │ gzip: 34.17 kB │ map: 388.88 kB
30
- dist/bundle.js 190.34 kB │ gzip: 34.77 kB │ map: 390.34 kB
31
- ✓ built in 1.92s
29
+ dist/bundle.js 178.26 kB │ gzip: 34.19 kB │ map: 389.16 kB
30
+ dist/bundle.js 190.49 kB │ gzip: 34.79 kB │ map: 390.62 kB
31
+ ✓ built in 737ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @milaboratories/milaboratories.pool-explorer.model
2
2
 
3
+ ## 1.0.47
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9b15f24]
8
+ - @platforma-sdk/model@1.33.2
9
+
10
+ ## 1.0.46
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [0f511ff]
15
+ - @platforma-sdk/model@1.32.1
16
+
3
17
  ## 1.0.45
4
18
 
5
19
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -3999,7 +3999,7 @@
3999
3999
  }
4000
4000
  }
4001
4001
  }
4002
- function F(n2) {
4002
+ function F$1(n2) {
4003
4003
  if (!n2 || typeof n2 != "object")
4004
4004
  return false;
4005
4005
  const e = n2;
@@ -4017,7 +4017,7 @@
4017
4017
  }
4018
4018
  }
4019
4019
  function gn(n2) {
4020
- return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4020
+ return F$1(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4021
4021
  }
4022
4022
  function bn(n2) {
4023
4023
  switch (n2.type) {
@@ -4494,14 +4494,14 @@
4494
4494
  });
4495
4495
  var Xe = Object.defineProperty;
4496
4496
  var Qe = (t, e, n2) => e in t ? Xe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4497
- var R = (t, e, n2) => Qe(t, typeof e != "symbol" ? e + "" : e, n2);
4497
+ var F = (t, e, n2) => Qe(t, typeof e != "symbol" ? e + "" : e, n2);
4498
4498
  function re(t) {
4499
4499
  return { type: "Immediate", value: t };
4500
4500
  }
4501
4501
  function ht() {
4502
4502
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4503
4503
  }
4504
- function De(t) {
4504
+ function Re(t) {
4505
4505
  if (t && typeof globalThis.getPlatforma == "function")
4506
4506
  return globalThis.getPlatforma(t);
4507
4507
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
@@ -4529,8 +4529,8 @@
4529
4529
  }
4530
4530
  class I {
4531
4531
  constructor(e, n2 = (r) => r) {
4532
- R(this, "isResolved", false);
4533
- R(this, "resolvedValue");
4532
+ F(this, "isResolved", false);
4533
+ F(this, "resolvedValue");
4534
4534
  this.handle = e, this.postProcess = n2, mt(e, (r) => {
4535
4535
  this.resolvedValue = n2(r), this.isResolved = true;
4536
4536
  });
@@ -4771,7 +4771,7 @@
4771
4771
  return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, d]) => o(u2, d));
4772
4772
  }
4773
4773
  }
4774
- const Fe = "staging", Ke = "main";
4774
+ const De = "staging", Ke = "main";
4775
4775
  const bt = "pl7.app/label", wt = "pl7.app/trace", At = z$2.object({
4776
4776
  type: z$2.string(),
4777
4777
  importance: z$2.number().optional(),
@@ -4780,11 +4780,11 @@
4780
4780
  }), xt = z$2.array(At), Ct = 1e-3, Pt = "__LABEL__", Se = "__LABEL__@1";
4781
4781
  function Ve(t, e, n2 = {}) {
4782
4782
  const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
4783
- var S, D2;
4783
+ var S, R;
4784
4784
  const w2 = e(f2);
4785
4785
  let c2, g, x2;
4786
4786
  "spec" in w2 && typeof w2.spec == "object" ? (c2 = w2.spec, g = w2.prefixTrace, x2 = w2.suffixTrace) : c2 = w2;
4787
- const p2 = (S = c2.annotations) == null ? void 0 : S[bt], A2 = (D2 = c2.annotations) == null ? void 0 : D2[wt], m2 = (A2 ? xt.safeParse(JSON.parse(A2)).data : void 0) ?? [], v = [
4787
+ const p2 = (S = c2.annotations) == null ? void 0 : S[bt], A2 = (R = c2.annotations) == null ? void 0 : R[wt], m2 = (A2 ? xt.safeParse(JSON.parse(A2)).data : void 0) ?? [], v = [
4788
4788
  ...g ?? [],
4789
4789
  ...m2,
4790
4790
  ...x2 ?? []
@@ -4926,7 +4926,7 @@
4926
4926
  }
4927
4927
  function It(t) {
4928
4928
  if (t === void 0) return;
4929
- if (F(t))
4929
+ if (F$1(t))
4930
4930
  return _t(t);
4931
4931
  const e = St(t);
4932
4932
  if (!e) return;
@@ -5041,7 +5041,7 @@
5041
5041
  }
5042
5042
  function Tt(t) {
5043
5043
  if (t !== void 0) {
5044
- if (F(t)) return t;
5044
+ if (F$1(t)) return t;
5045
5045
  if (yn(t)) return bn(t);
5046
5046
  if (t instanceof O) return ye(t);
5047
5047
  throw new Error(`Unexpected input type: ${typeof t}`);
@@ -5129,7 +5129,7 @@
5129
5129
  if (t)
5130
5130
  return t.map((e) => [e.axisIdx, e.value]);
5131
5131
  }
5132
- function Rt(t, e) {
5132
+ function Ft(t, e) {
5133
5133
  if (!e || e.length === 0) return t;
5134
5134
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5135
5135
  return ke({ id: t, axisFilters: n2 });
@@ -5139,7 +5139,7 @@
5139
5139
  const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
5140
5140
  return !!e.domainAnchor || n2 || r;
5141
5141
  }
5142
- function Dt(t) {
5142
+ function Rt(t) {
5143
5143
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5144
5144
  return [];
5145
5145
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5149,9 +5149,9 @@
5149
5149
  }
5150
5150
  class ve {
5151
5151
  constructor() {
5152
- R(this, "defaultProviderStore", []);
5153
- R(this, "providers", [new Et(this.defaultProviderStore)]);
5154
- R(this, "axisLabelProviders", []);
5152
+ F(this, "defaultProviderStore", []);
5153
+ F(this, "providers", [new Et(this.defaultProviderStore)]);
5154
+ F(this, "axisLabelProviders", []);
5155
5155
  }
5156
5156
  addColumnProvider(e) {
5157
5157
  return this.providers.push(e), this;
@@ -5206,12 +5206,12 @@
5206
5206
  if (u2(S.spec)) continue;
5207
5207
  if (p2.has(S.id))
5208
5208
  throw new Error(`Duplicate column id ${S.id} in provider ${C2.constructor.name}`);
5209
- const D2 = _n(S.spec);
5210
- b.has(D2) || (p2.add(S.id), b.add(D2), A2.push(S));
5209
+ const R = _n(S.spec);
5210
+ b.has(R) || (p2.add(S.id), b.add(R), A2.push(S));
5211
5211
  }
5212
5212
  }
5213
5213
  if (A2.length === 0) continue;
5214
- const m2 = Dt(c2), v = m2.length > 0;
5214
+ const m2 = Rt(c2), v = m2.length > 0;
5215
5215
  for (const C2 of A2) {
5216
5216
  if (!f(C2.spec)) continue;
5217
5217
  const L = C2.spec;
@@ -5223,7 +5223,7 @@
5223
5223
  }
5224
5224
  if (!gn(S))
5225
5225
  throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${C2.id}`);
5226
- const D2 = It(S), k2 = m2[m2.length - 1];
5226
+ const R = It(S), k2 = m2[m2.length - 1];
5227
5227
  if (k2 >= S.partitionKeyLength)
5228
5228
  throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
5229
5229
  const W = m2.map((_) => this.findLabels(p$1(L.axesSpec[_]))), V = [], N2 = (_, G2) => {
@@ -5233,9 +5233,9 @@
5233
5233
  return;
5234
5234
  }
5235
5235
  const $ = m2[G2];
5236
- if ($ >= D2.length)
5237
- throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${D2.length}) during split key generation for column ${C2.id}`);
5238
- const J = D2[$];
5236
+ if ($ >= R.length)
5237
+ throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${C2.id}`);
5238
+ const J = R[$];
5239
5239
  if (!J || J.length === 0) {
5240
5240
  V.length = 0;
5241
5241
  return;
@@ -5284,7 +5284,7 @@
5284
5284
  for (const { value: c2, label: g } of f$1) {
5285
5285
  const { originalColumn: x2, spec: p2 } = c2, A2 = c2.type === "split" ? c2.axisFilters : void 0, m2 = kt(A2);
5286
5286
  let v;
5287
- r ? v = r.deriveS(p2, m2) : v = Rt(x2.id, m2);
5287
+ r ? v = r.deriveS(p2, m2) : v = Ft(x2.id, m2);
5288
5288
  let C2 = { ...c2.adjustedSpec };
5289
5289
  o && (C2 = {
5290
5290
  ...C2,
@@ -5334,9 +5334,9 @@
5334
5334
  function Ie(t) {
5335
5335
  return Kn(t, (e) => e instanceof O ? e.handle : yn(e) ? hn(e, (n2) => n2.handle) : e);
5336
5336
  }
5337
- class Ft {
5337
+ class Dt {
5338
5338
  constructor() {
5339
- R(this, "ctx", h());
5339
+ F(this, "ctx", h());
5340
5340
  }
5341
5341
  /**
5342
5342
  * @deprecated use getOptions()
@@ -5605,11 +5605,11 @@
5605
5605
  }
5606
5606
  class te {
5607
5607
  constructor() {
5608
- R(this, "ctx");
5609
- R(this, "args");
5610
- R(this, "uiState");
5611
- R(this, "_activeArgsCache");
5612
- R(this, "resultPool", new Ft());
5608
+ F(this, "ctx");
5609
+ F(this, "args");
5610
+ F(this, "uiState");
5611
+ F(this, "_activeArgsCache");
5612
+ F(this, "resultPool", new Dt());
5613
5613
  this.ctx = h(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5614
5614
  }
5615
5615
  /**
@@ -5632,7 +5632,7 @@
5632
5632
  );
5633
5633
  }
5634
5634
  get prerun() {
5635
- return this.getNamedAccessor(Fe);
5635
+ return this.getNamedAccessor(De);
5636
5636
  }
5637
5637
  get outputs() {
5638
5638
  return this.getNamedAccessor(Ke);
@@ -5676,8 +5676,17 @@
5676
5676
  getCurrentUnstableMarker() {
5677
5677
  return this.ctx.getCurrentUnstableMarker();
5678
5678
  }
5679
+ logInfo(e) {
5680
+ this.ctx.logInfo(e);
5681
+ }
5682
+ logWarn(e) {
5683
+ this.ctx.logWarn(e);
5684
+ }
5685
+ logError(e) {
5686
+ this.ctx.logError(e);
5687
+ }
5679
5688
  }
5680
- const Y = "1.31.17";
5689
+ const Y = "1.33.2";
5681
5690
  function Kt(t) {
5682
5691
  return t.__renderLambda === true;
5683
5692
  }
@@ -5883,7 +5892,7 @@
5883
5892
  Object.entries(this._outputs).map(([n2, r]) => [n2, de(r)])
5884
5893
  )
5885
5894
  };
5886
- return ht() ? De({ sdkVersion: Y }) : { config: e };
5895
+ return ht() ? Re({ sdkVersion: Y }) : { config: e };
5887
5896
  }
5888
5897
  }
5889
5898
  const platforma = E.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {