@milaboratories/milaboratories.pool-explorer.model 1.0.26 → 1.0.27

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 "/opt/actions-runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @milaboratories/milaboratories.pool-explorer.model@1.0.26 build /opt/actions-runner/_work/platforma/platforma/etc/blocks/pool-explorer/model
3
+ > @milaboratories/milaboratories.pool-explorer.model@1.0.27 build /opt/actions-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
@@ -11,14 +11,14 @@
11
11
  CLI Cleaning output folder
12
12
  CJS Build start
13
13
  ESM Build start
14
- CJS dist/index.cjs 436.00 B
15
- CJS dist/index.cjs.map 1013.00 B
16
- CJS ⚡️ Build success in 73ms
17
14
  ESM dist/index.js 410.00 B
18
15
  ESM dist/index.js.map 996.00 B
19
- ESM ⚡️ Build success in 72ms
16
+ ESM ⚡️ Build success in 102ms
17
+ CJS dist/index.cjs 436.00 B
18
+ CJS dist/index.cjs.map 1013.00 B
19
+ CJS ⚡️ Build success in 102ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 1275ms
21
+ DTS ⚡️ Build success in 1396ms
22
22
  DTS dist/index.d.cts 953.00 B
23
23
  DTS dist/index.d.ts 953.00 B
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 175.36 kB │ gzip: 33.45 kB │ map: 376.85 kB
30
- dist/bundle.js 187.42 kB │ gzip: 34.03 kB │ map: 378.30 kB
31
- ✓ built in 748ms
29
+ dist/bundle.js 175.51 kB │ gzip: 33.49 kB │ map: 377.12 kB
30
+ dist/bundle.js 187.57 kB │ gzip: 34.08 kB │ map: 378.57 kB
31
+ ✓ built in 840ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @milaboratories/milaboratories.pool-explorer.model
2
2
 
3
+ ## 1.0.27
4
+
5
+ ### Patch Changes
6
+
7
+ - @platforma-sdk/model@1.29.2
8
+
3
9
  ## 1.0.26
4
10
 
5
11
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -3949,8 +3949,8 @@
3949
3949
  ZodError
3950
3950
  });
3951
3951
  var $ = Object.defineProperty;
3952
- var L$1 = (n2, t, e) => t in n2 ? $(n2, t, { enumerable: true, configurable: true, writable: true, value: e }) : n2[t] = e;
3953
- var p$1 = (n2, t, e) => L$1(n2, typeof t != "symbol" ? t + "" : t, e);
3952
+ var D = (n2, t, e) => t in n2 ? $(n2, t, { enumerable: true, configurable: true, writable: true, value: e }) : n2[t] = e;
3953
+ var m$2 = (n2, t, e) => D(n2, typeof t != "symbol" ? t + "" : t, e);
3954
3954
  function w(n2) {
3955
3955
  throw new Error("Unexpected object: " + n2);
3956
3956
  }
@@ -4081,12 +4081,12 @@
4081
4081
  }
4082
4082
  }
4083
4083
  }
4084
- function y(n2) {
4084
+ function p$1(n2) {
4085
4085
  const { type: t, name: e, domain: r } = n2;
4086
4086
  return { type: t, name: e, ...r && { domain: r } };
4087
4087
  }
4088
4088
  function En(n2) {
4089
- return Pe(y(n2));
4089
+ return Pe(p$1(n2));
4090
4090
  }
4091
4091
  function X$1(n2, t) {
4092
4092
  if (n2 === void 0) return t === void 0;
@@ -4135,7 +4135,7 @@
4135
4135
  return Pe(n2);
4136
4136
  }
4137
4137
  function A(n2) {
4138
- return Pe(y(n2));
4138
+ return Pe(p$1(n2));
4139
4139
  }
4140
4140
  function x(n2, t) {
4141
4141
  return JSON.stringify([n2, t]);
@@ -4146,23 +4146,23 @@
4146
4146
  * @param anchors Record of anchor column specifications indexed by anchor ID
4147
4147
  */
4148
4148
  constructor(t) {
4149
- p$1(this, "domains", /* @__PURE__ */ new Map());
4150
- p$1(this, "axes", /* @__PURE__ */ new Map());
4151
- p$1(this, "domainPacks", []);
4152
- p$1(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
4149
+ m$2(this, "domains", /* @__PURE__ */ new Map());
4150
+ m$2(this, "axes", /* @__PURE__ */ new Map());
4151
+ m$2(this, "domainPacks", []);
4152
+ m$2(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
4153
4153
  this.anchors = t;
4154
4154
  const e = Object.entries(t);
4155
4155
  e.sort((r, o) => r[0].localeCompare(o[0]));
4156
4156
  for (const [r, o] of e) {
4157
- for (let i = 0; i < o.axesSpec.length; i++) {
4158
- const a = o.axesSpec[i], s2 = A(a);
4159
- this.axes.set(s2, { anchor: r, idx: i });
4157
+ for (let s2 = 0; s2 < o.axesSpec.length; s2++) {
4158
+ const a = o.axesSpec[s2], i = A(a);
4159
+ this.axes.set(i, { anchor: r, idx: s2 });
4160
4160
  }
4161
4161
  if (o.domain !== void 0) {
4162
- const i = Object.entries(o.domain);
4163
- i.sort((a, s2) => a[0].localeCompare(s2[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
4164
- for (const [a, s2] of i) {
4165
- const u2 = x(a, s2);
4162
+ const s2 = Object.entries(o.domain);
4163
+ s2.sort((a, i) => a[0].localeCompare(i[0])), this.domainPackToAnchor.set(JSON.stringify(s2), r), this.domainPacks.push(s2.map(([a]) => a));
4164
+ for (const [a, i] of s2) {
4165
+ const u2 = x(a, i);
4166
4166
  this.domains.set(u2, r);
4167
4167
  }
4168
4168
  }
@@ -4180,48 +4180,48 @@
4180
4180
  if (t.domain !== void 0)
4181
4181
  n:
4182
4182
  for (const a of this.domainPacks) {
4183
- const s2 = [];
4183
+ const i = [];
4184
4184
  for (const c2 of a) {
4185
4185
  const d = t.domain[c2];
4186
4186
  if (d !== void 0)
4187
- s2.push([c2, d]);
4187
+ i.push([c2, d]);
4188
4188
  else
4189
4189
  break n;
4190
4190
  }
4191
- const u2 = this.domainPackToAnchor.get(JSON.stringify(s2));
4191
+ const u2 = this.domainPackToAnchor.get(JSON.stringify(i));
4192
4192
  if (u2 !== void 0) {
4193
4193
  r.domainAnchor = u2, o = new Set(a);
4194
4194
  break;
4195
4195
  }
4196
4196
  }
4197
- for (const [a, s2] of Object.entries(t.domain ?? {})) {
4197
+ for (const [a, i] of Object.entries(t.domain ?? {})) {
4198
4198
  if (o !== void 0 && o.has(a))
4199
4199
  continue;
4200
- const u2 = x(a, s2), c2 = this.domains.get(u2);
4201
- r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : s2;
4200
+ const u2 = x(a, i), c2 = this.domains.get(u2);
4201
+ r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : i;
4202
4202
  }
4203
4203
  if (r.axes = t.axesSpec.map((a) => {
4204
- const s2 = A(a);
4205
- return this.axes.get(s2) ?? a;
4204
+ const i = A(a), u2 = this.axes.get(i);
4205
+ return u2 === void 0 ? p$1(a) : u2;
4206
4206
  }), !e || e.length === 0)
4207
4207
  return r;
4208
- const i = [];
4208
+ const s2 = [];
4209
4209
  for (const a of e) {
4210
- const [s2, u2] = a;
4211
- if (typeof s2 == "number") {
4212
- if (s2 < 0 || s2 >= t.axesSpec.length)
4213
- throw new Error(`Axis index ${s2} is out of bounds (0-${t.axesSpec.length - 1})`);
4214
- i.push([s2, u2]);
4210
+ const [i, u2] = a;
4211
+ if (typeof i == "number") {
4212
+ if (i < 0 || i >= t.axesSpec.length)
4213
+ throw new Error(`Axis index ${i} is out of bounds (0-${t.axesSpec.length - 1})`);
4214
+ s2.push([i, u2]);
4215
4215
  } else {
4216
- const c2 = t.axesSpec.findIndex((d) => d.name === s2);
4216
+ const c2 = t.axesSpec.findIndex((d) => d.name === i);
4217
4217
  if (c2 === -1)
4218
- throw new Error(`Axis with name "${s2}" not found in the column specification`);
4219
- i.push([c2, u2]);
4218
+ throw new Error(`Axis with name "${i}" not found in the column specification`);
4219
+ s2.push([c2, u2]);
4220
4220
  }
4221
4221
  }
4222
- return i.sort((a, s2) => a[0] - s2[0]), {
4222
+ return s2.sort((a, i) => a[0] - i[0]), {
4223
4223
  source: r,
4224
- axisFilters: i
4224
+ axisFilters: s2
4225
4225
  };
4226
4226
  }
4227
4227
  /**
@@ -4234,31 +4234,34 @@
4234
4234
  return G(this.derive(t, e));
4235
4235
  }
4236
4236
  }
4237
- function $n(n2, t) {
4238
- const e = { ...t };
4239
- if (e.domainAnchor !== void 0) {
4240
- const r = n2[e.domainAnchor];
4241
- if (!r)
4242
- throw new Error(`Anchor "${e.domainAnchor}" not found`);
4243
- const o = r.domain || {};
4244
- e.domain = { ...o, ...e.domain }, delete e.domainAnchor;
4245
- }
4246
- if (e.domain) {
4247
- const r = {};
4248
- for (const [o, i] of Object.entries(e.domain))
4237
+ function $n(n2, t, e) {
4238
+ const r = { ...t }, o = (e == null ? void 0 : e.ignoreMissingDomains) ?? false;
4239
+ if (r.domainAnchor !== void 0) {
4240
+ const s2 = n2[r.domainAnchor];
4241
+ if (!s2)
4242
+ throw new Error(`Anchor "${r.domainAnchor}" not found`);
4243
+ const a = s2.domain || {};
4244
+ r.domain = { ...a, ...r.domain }, delete r.domainAnchor;
4245
+ }
4246
+ if (r.domain) {
4247
+ const s2 = {};
4248
+ for (const [a, i] of Object.entries(r.domain))
4249
4249
  if (typeof i == "string")
4250
- r[o] = i;
4250
+ s2[a] = i;
4251
4251
  else {
4252
- const a = n2[i.anchor];
4253
- if (!a)
4254
- throw new Error(`Anchor "${i.anchor}" not found for domain key "${o}"`);
4255
- if (!a.domain || a.domain[o] === void 0)
4256
- throw new Error(`Domain key "${o}" not found in anchor "${i.anchor}"`);
4257
- r[o] = a.domain[o];
4252
+ const u2 = n2[i.anchor];
4253
+ if (!u2)
4254
+ throw new Error(`Anchor "${i.anchor}" not found for domain key "${a}"`);
4255
+ if (!u2.domain || u2.domain[a] === void 0) {
4256
+ if (!o)
4257
+ throw new Error(`Domain key "${a}" not found in anchor "${i.anchor}"`);
4258
+ continue;
4259
+ }
4260
+ s2[a] = u2.domain[a];
4258
4261
  }
4259
- e.domain = r;
4262
+ r.domain = s2;
4260
4263
  }
4261
- return e.axes && (e.axes = e.axes.map((r) => Q(n2, r))), e;
4264
+ return r.axes && (r.axes = r.axes.map((s2) => Q(n2, s2))), r;
4262
4265
  }
4263
4266
  function Q(n2, t) {
4264
4267
  if (!Y$1(t))
@@ -4271,14 +4274,14 @@
4271
4274
  throw new Error(`Axis index ${t.idx} out of bounds for anchor "${e}"`);
4272
4275
  return r.axesSpec[t.idx];
4273
4276
  } else if ("name" in t) {
4274
- const o = r.axesSpec.filter((i) => i.name === t.name);
4277
+ const o = r.axesSpec.filter((s2) => s2.name === t.name);
4275
4278
  if (o.length > 1)
4276
4279
  throw new Error(`Multiple axes with name "${t.name}" found in anchor "${e}"`);
4277
4280
  if (o.length === 0)
4278
4281
  throw new Error(`Axis with name "${t.name}" not found in anchor "${e}"`);
4279
4282
  return o[0];
4280
4283
  } else if ("id" in t) {
4281
- const o = r.axesSpec.filter((i) => z(t.id, y(i)));
4284
+ const o = r.axesSpec.filter((s2) => z(t.id, p$1(s2)));
4282
4285
  if (o.length > 1)
4283
4286
  throw new Error(`Multiple matching axes found for matcher in anchor "${e}"`);
4284
4287
  if (o.length === 0)
@@ -4364,7 +4367,7 @@
4364
4367
  return false;
4365
4368
  }
4366
4369
  if (t.axes !== void 0) {
4367
- const e = n2.axesSpec.map(y);
4370
+ const e = n2.axesSpec.map(p$1);
4368
4371
  if (t.partialAxesMatch) {
4369
4372
  for (const r of t.axes)
4370
4373
  if (!e.some((o) => k(r, o)))
@@ -4386,8 +4389,8 @@
4386
4389
  if (t.annotationPatterns !== void 0) {
4387
4390
  const e = n2.annotations || {};
4388
4391
  for (const [r, o] of Object.entries(t.annotationPatterns)) {
4389
- const i = e[r];
4390
- if (i === void 0 || !new RegExp(o).test(i))
4392
+ const s2 = e[r];
4393
+ if (s2 === void 0 || !new RegExp(o).test(s2))
4391
4394
  return false;
4392
4395
  }
4393
4396
  }
@@ -4753,12 +4756,12 @@
4753
4756
  const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((p2) => {
4754
4757
  var q, F;
4755
4758
  const c2 = e(p2);
4756
- let h, A2, y2;
4757
- "spec" in c2 && typeof c2.spec == "object" ? (h = c2.spec, A2 = c2.prefixTrace, y2 = c2.suffixTrace) : h = c2;
4759
+ let h, A2, y;
4760
+ "spec" in c2 && typeof c2.spec == "object" ? (h = c2.spec, A2 = c2.prefixTrace, y = c2.suffixTrace) : h = c2;
4758
4761
  const v = (q = h.annotations) == null ? void 0 : q[nt], g = (F = h.annotations) == null ? void 0 : F[rt], P = (g ? st.safeParse(JSON.parse(g)).data : void 0) ?? [], b = [
4759
4762
  ...A2 ?? [],
4760
4763
  ...P,
4761
- ...y2 ?? []
4764
+ ...y ?? []
4762
4765
  ];
4763
4766
  if (v) {
4764
4767
  const I = { label: v, type: at, importance: -2 };
@@ -4790,10 +4793,10 @@
4790
4793
  const u2 = (p2) => {
4791
4794
  const c2 = [];
4792
4795
  for (let h = 0; h < s2.length; h++) {
4793
- const A2 = s2[h], y2 = A2.fullTrace.filter((P) => p2.has(P.fullType));
4794
- if (y2.length === 0)
4796
+ const A2 = s2[h], y = A2.fullTrace.filter((P) => p2.has(P.fullType));
4797
+ if (y.length === 0)
4795
4798
  return;
4796
- const v = y2.map((P) => P.label), g = n2.separator ?? " / ";
4799
+ const v = y.map((P) => P.label), g = n2.separator ?? " / ";
4797
4800
  c2.push({
4798
4801
  label: v.join(g),
4799
4802
  value: A2.value
@@ -5153,7 +5156,7 @@
5153
5156
  if (p2) {
5154
5157
  if (!r)
5155
5158
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5156
- c2 = $n(r.anchors, f$1);
5159
+ c2 = $n(r.anchors, f$1, n2);
5157
5160
  } else
5158
5161
  c2 = f$1;
5159
5162
  const h = /* @__PURE__ */ new Set(), A2 = [];
@@ -5165,7 +5168,7 @@
5165
5168
  }
5166
5169
  }
5167
5170
  if (A2.length === 0) continue;
5168
- const y$1 = vt(f$1), v = y$1.length > 0;
5171
+ const y = vt(f$1), v = y.length > 0;
5169
5172
  for (const g of A2) {
5170
5173
  if (!f(g.spec)) continue;
5171
5174
  const P = g.spec;
@@ -5177,19 +5180,19 @@
5177
5180
  }
5178
5181
  if (!yn(b))
5179
5182
  throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${b.type} for column ${g.id}`);
5180
- const k2 = ct(b), $2 = y$1[y$1.length - 1];
5183
+ const k2 = ct(b), $2 = y[y.length - 1];
5181
5184
  if ($2 >= b.partitionKeyLength)
5182
5185
  throw new Error(`Not enough partition keys (${b.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${P.name}`);
5183
- const q = y$1.map((w2) => this.findLabels(y(P.axesSpec[w2]))), F = [], I = (w2, N2) => {
5184
- if (N2 >= y$1.length) {
5186
+ const q = y.map((w2) => this.findLabels(p$1(P.axesSpec[w2]))), F = [], I = (w2, N2) => {
5187
+ if (N2 >= y.length) {
5185
5188
  if (F.push([...w2]), F.length > 1e4)
5186
5189
  throw new Error("Too many key combinations, aborting.");
5187
5190
  return;
5188
5191
  }
5189
- const D = y$1[N2];
5190
- if (D >= k2.length)
5191
- throw new Error(`Axis index ${D} out of bounds for unique keys array (length ${k2.length}) during split key generation for column ${g.id}`);
5192
- const O = k2[D];
5192
+ const D2 = y[N2];
5193
+ if (D2 >= k2.length)
5194
+ throw new Error(`Axis index ${D2} out of bounds for unique keys array (length ${k2.length}) during split key generation for column ${g.id}`);
5195
+ const O = k2[D2];
5193
5196
  if (!O || O.length === 0) {
5194
5197
  F.length = 0;
5195
5198
  return;
@@ -5199,14 +5202,14 @@
5199
5202
  };
5200
5203
  if (I([], 0), F.length === 0)
5201
5204
  continue;
5202
- const R = [...P.axesSpec], se = y$1.map((w2) => w2);
5203
- for (let w2 = y$1.length - 1; w2 >= 0; w2--)
5204
- R.splice(y$1[w2], 1);
5205
+ const R = [...P.axesSpec], se = y.map((w2) => w2);
5206
+ for (let w2 = y.length - 1; w2 >= 0; w2--)
5207
+ R.splice(y[w2], 1);
5205
5208
  const J = { ...P, axesSpec: R };
5206
5209
  for (const w2 of F) {
5207
- const N2 = w2.map((D, O) => {
5208
- const z2 = se[O], Re = y(P.axesSpec[z2]), oe = q[O], Oe = (oe == null ? void 0 : oe[D]) ?? String(D);
5209
- return { axisIdx: z2, axisId: Re, value: D, label: Oe };
5210
+ const N2 = w2.map((D2, O) => {
5211
+ const z2 = se[O], Re = p$1(P.axesSpec[z2]), oe = q[O], Oe = (oe == null ? void 0 : oe[D2]) ?? String(D2);
5212
+ return { axisIdx: z2, axisId: Re, value: D2, label: Oe };
5210
5213
  });
5211
5214
  u2.push({
5212
5215
  type: "split",
@@ -5236,9 +5239,9 @@
5236
5239
  a
5237
5240
  ), d = [];
5238
5241
  for (const { value: f2, label: p2 } of S) {
5239
- const { originalColumn: c2, spec: h } = f2, A2 = f2.type === "split" ? f2.axisFilters : void 0, y2 = gt(A2);
5242
+ const { originalColumn: c2, spec: h } = f2, A2 = f2.type === "split" ? f2.axisFilters : void 0, y = gt(A2);
5240
5243
  let v;
5241
- r ? v = r.deriveS(h, y2) : v = mt(c2.id, y2);
5244
+ r ? v = r.deriveS(h, y) : v = mt(c2.id, y);
5242
5245
  let g = { ...f2.adjustedSpec };
5243
5246
  o && (g = {
5244
5247
  ...g,
@@ -5249,7 +5252,7 @@
5249
5252
  }), d.push({
5250
5253
  id: v,
5251
5254
  spec: g,
5252
- data: () => f2.type === "split" ? hn(dt(f2.dataEntries, y2)) : f2.originalColumn.data,
5255
+ data: () => f2.type === "split" ? hn(dt(f2.dataEntries, y)) : f2.originalColumn.data,
5253
5256
  label: p2
5254
5257
  });
5255
5258
  }
@@ -5631,7 +5634,7 @@
5631
5634
  return this.ctx.getCurrentUnstableMarker();
5632
5635
  }
5633
5636
  }
5634
- const M = "1.29.0";
5637
+ const M = "1.29.2";
5635
5638
  function wt(t) {
5636
5639
  return t.__renderLambda === true;
5637
5640
  }