@milaboratories/milaboratories.pool-explorer.model 1.0.30 → 1.0.32

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.30 build /opt/actions-runner/_work/platforma/platforma/etc/blocks/pool-explorer/model
3
+ > @milaboratories/milaboratories.pool-explorer.model@1.0.32 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
@@ -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 50ms
16
+ CJS ⚡️ Build success in 77ms
17
17
  ESM dist/index.js 410.00 B
18
18
  ESM dist/index.js.map 996.00 B
19
- ESM ⚡️ Build success in 50ms
19
+ ESM ⚡️ Build success in 77ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 692ms
21
+ DTS ⚡️ Build success in 1251ms
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.43 kB │ gzip: 33.50 kB │ map: 380.96 kB
30
- dist/bundle.js 187.50 kB │ gzip: 34.09 kB │ map: 382.40 kB
31
- ✓ built in 491ms
29
+ dist/bundle.js 175.44 kB │ gzip: 33.49 kB │ map: 380.98 kB
30
+ dist/bundle.js 187.50 kB │ gzip: 34.08 kB │ map: 382.42 kB
31
+ ✓ built in 768ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @milaboratories/milaboratories.pool-explorer.model
2
2
 
3
+ ## 1.0.32
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [37b84a5]
8
+ - @platforma-sdk/model@1.29.17
9
+
10
+ ## 1.0.31
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [e51c9bb]
15
+ - @platforma-sdk/model@1.29.16
16
+
3
17
  ## 1.0.30
4
18
 
5
19
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4742,7 +4742,7 @@
4742
4742
  let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4743
4743
  (u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
4744
4744
  );
4745
- return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, w2]) => o(u2, w2));
4745
+ return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, y]) => o(u2, y));
4746
4746
  }
4747
4747
  }
4748
4748
  const Ee = "staging", Fe = "main";
@@ -4753,18 +4753,18 @@
4753
4753
  label: z.string()
4754
4754
  }), dt = z.array(pt), ft = 1e-3, ht = "__LABEL__", Ae = "__LABEL__@1";
4755
4755
  function Oe(t, e, n2 = {}) {
4756
- const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((d) => {
4756
+ const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((f2) => {
4757
4757
  var q2, F;
4758
- const h = e(d);
4759
- let f2, x2, c2;
4760
- "spec" in h && typeof h.spec == "object" ? (f2 = h.spec, x2 = h.prefixTrace, c2 = h.suffixTrace) : f2 = h;
4761
- const y = (q2 = f2.annotations) == null ? void 0 : q2[ut], g = (F = f2.annotations) == null ? void 0 : F[ct], v = (g ? dt.safeParse(JSON.parse(g)).data : void 0) ?? [], A2 = [
4758
+ const h = e(f2);
4759
+ let d, x2, c2;
4760
+ "spec" in h && typeof h.spec == "object" ? (d = h.spec, x2 = h.prefixTrace, c2 = h.suffixTrace) : d = h;
4761
+ const v = (q2 = d.annotations) == null ? void 0 : q2[ut], g = (F = d.annotations) == null ? void 0 : F[ct], b = (g ? dt.safeParse(JSON.parse(g)).data : void 0) ?? [], A2 = [
4762
4762
  ...x2 ?? [],
4763
- ...v,
4763
+ ...b,
4764
4764
  ...c2 ?? []
4765
4765
  ];
4766
- if (y) {
4767
- const _ = { label: y, type: ht, importance: -2 };
4766
+ if (v) {
4767
+ const _ = { label: v, type: ht, importance: -2 };
4768
4768
  n2.addLabelAsSuffix ? A2.push(_) : A2.splice(0, 0, _);
4769
4769
  }
4770
4770
  const D = [], $2 = /* @__PURE__ */ new Map();
@@ -4781,24 +4781,24 @@
4781
4781
  ), D.push({ ...A2[_], fullType: P, occurenceIndex: J });
4782
4782
  }
4783
4783
  return D.reverse(), {
4784
- value: d,
4785
- spec: f2,
4786
- label: y,
4784
+ value: f2,
4785
+ spec: d,
4786
+ label: v,
4787
4787
  fullTrace: D
4788
4788
  };
4789
4789
  }), o = [], a = [], l2 = [...r];
4790
- l2.sort(([, d], [, h]) => h - d);
4791
- for (const [d] of l2)
4792
- d.endsWith("@1") || i.get(d) === t.length ? o.push(d) : a.push(d);
4793
- const u2 = (d) => {
4790
+ l2.sort(([, f2], [, h]) => h - f2);
4791
+ for (const [f2] of l2)
4792
+ f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
4793
+ const u2 = (f2) => {
4794
4794
  const h = [];
4795
- for (let f2 = 0; f2 < s2.length; f2++) {
4796
- const x2 = s2[f2], c2 = x2.fullTrace.filter((v) => d.has(v.fullType));
4795
+ for (let d = 0; d < s2.length; d++) {
4796
+ const x2 = s2[d], c2 = x2.fullTrace.filter((b) => f2.has(b.fullType));
4797
4797
  if (c2.length === 0)
4798
4798
  return;
4799
- const y = c2.map((v) => v.label), g = n2.separator ?? " / ";
4799
+ const v = c2.map((b) => b.label), g = n2.separator ?? " / ";
4800
4800
  h.push({
4801
- label: y.join(g),
4801
+ label: v.join(g),
4802
4802
  value: x2.value
4803
4803
  });
4804
4804
  }
@@ -4806,19 +4806,19 @@
4806
4806
  };
4807
4807
  if (o.length === 0) {
4808
4808
  if (a.length !== 0) throw new Error("Assertion error.");
4809
- const d = u2(new Set(Ae));
4810
- if (d === void 0) throw new Error("Assertion error.");
4811
- return d;
4812
- }
4813
- let w2 = 0, b = 0;
4814
- for (; w2 < o.length; ) {
4815
- const d = /* @__PURE__ */ new Set();
4816
- n2.includeNativeLabel && d.add(Ae);
4817
- for (let f2 = 0; f2 < w2; ++f2) d.add(o[f2]);
4818
- d.add(o[b]);
4819
- const h = u2(d);
4820
- if (h !== void 0 && new Set(h.map((f2) => f2.label)).size === t.length) return h;
4821
- b++, b >= o.length && (w2++, b = w2);
4809
+ const f2 = u2(new Set(Ae));
4810
+ if (f2 === void 0) throw new Error("Assertion error.");
4811
+ return f2;
4812
+ }
4813
+ let y = 0, w2 = 0;
4814
+ for (; y < o.length; ) {
4815
+ const f2 = /* @__PURE__ */ new Set();
4816
+ n2.includeNativeLabel && f2.add(Ae);
4817
+ for (let d = 0; d < y; ++d) f2.add(o[d]);
4818
+ f2.add(o[w2]);
4819
+ const h = u2(f2);
4820
+ if (h !== void 0 && new Set(h.map((d) => d.label)).size === t.length) return h;
4821
+ w2++, w2 >= o.length && (y++, w2 = y);
4822
4822
  }
4823
4823
  const p2 = u2(/* @__PURE__ */ new Set([...o, ...a]));
4824
4824
  if (p2 === void 0) throw new Error("Assertion error.");
@@ -5151,28 +5151,28 @@
5151
5151
  ...i ?? {}
5152
5152
  }, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [];
5153
5153
  for (const p2 of l2) {
5154
- const d = Ct(p2);
5154
+ const f$1 = Ct(p2);
5155
5155
  let h;
5156
- if (d) {
5156
+ if (f$1) {
5157
5157
  if (!r)
5158
5158
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5159
5159
  h = Dn(r.anchors, p2, n2);
5160
5160
  } else
5161
5161
  h = p2;
5162
- const f$1 = /* @__PURE__ */ new Set(), x2 = [];
5162
+ const d = /* @__PURE__ */ new Set(), x2 = [];
5163
5163
  for (const g of this.providers) {
5164
- const v = g.selectColumns(h);
5165
- for (const A2 of v) {
5166
- if (f$1.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${g.constructor.name}`);
5167
- f$1.add(A2.id), x2.push(A2);
5164
+ const b = g.selectColumns(h);
5165
+ for (const A2 of b) {
5166
+ if (d.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${g.constructor.name}`);
5167
+ d.add(A2.id), x2.push(A2);
5168
5168
  }
5169
5169
  }
5170
5170
  if (x2.length === 0) continue;
5171
- const c2 = St(p2), y = c2.length > 0;
5171
+ const c2 = St(p2), v = c2.length > 0;
5172
5172
  for (const g of x2) {
5173
5173
  if (!f(g.spec)) continue;
5174
- const v = g.spec;
5175
- if (y) {
5174
+ const b = g.spec;
5175
+ if (v) {
5176
5176
  const A2 = vt(g.data);
5177
5177
  if (!A2) {
5178
5178
  if (s2) continue;
@@ -5182,8 +5182,8 @@
5182
5182
  throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${g.id}`);
5183
5183
  const D = yt(A2), $2 = c2[c2.length - 1];
5184
5184
  if ($2 >= A2.partitionKeyLength)
5185
- throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${v.name}`);
5186
- const q2 = c2.map((P) => this.findLabels(p$1(v.axesSpec[P]))), F = [], _ = (P, N2) => {
5185
+ throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${b.name}`);
5186
+ const q2 = c2.map((P) => this.findLabels(p$1(b.axesSpec[P]))), F = [], _ = (P, N2) => {
5187
5187
  if (N2 >= c2.length) {
5188
5188
  if (F.push([...P]), F.length > 1e4)
5189
5189
  throw new Error("Too many key combinations, aborting.");
@@ -5202,19 +5202,19 @@
5202
5202
  };
5203
5203
  if (_([], 0), F.length === 0)
5204
5204
  continue;
5205
- const R = [...v.axesSpec], se = c2.map((P) => P);
5205
+ const R = [...b.axesSpec], se = c2.map((P) => P);
5206
5206
  for (let P = c2.length - 1; P >= 0; P--)
5207
5207
  R.splice(c2[P], 1);
5208
- const J = { ...v, axesSpec: R };
5208
+ const J = { ...b, axesSpec: R };
5209
5209
  for (const P of F) {
5210
5210
  const N2 = P.map((O, k2) => {
5211
- const z2 = se[k2], Ne = p$1(v.axesSpec[z2]), oe = q2[k2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
5211
+ const z2 = se[k2], Ne = p$1(b.axesSpec[z2]), oe = q2[k2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
5212
5212
  return { axisIdx: z2, axisId: Ne, value: O, label: Be };
5213
5213
  });
5214
5214
  u2.push({
5215
5215
  type: "split",
5216
5216
  originalColumn: g,
5217
- spec: v,
5217
+ spec: b,
5218
5218
  adjustedSpec: J,
5219
5219
  dataEntries: A2,
5220
5220
  axisFilters: N2
@@ -5224,39 +5224,39 @@
5224
5224
  u2.push({
5225
5225
  type: "direct",
5226
5226
  originalColumn: g,
5227
- spec: v,
5228
- adjustedSpec: v
5227
+ spec: b,
5228
+ adjustedSpec: b
5229
5229
  });
5230
5230
  }
5231
5231
  }
5232
5232
  if (u2.length === 0) return [];
5233
- const w2 = Oe(
5233
+ const y = Oe(
5234
5234
  u2,
5235
5235
  (p2) => ({
5236
5236
  spec: p2.spec,
5237
5237
  suffixTrace: p2.type === "split" ? At(p2.axisFilters) : void 0
5238
5238
  }),
5239
5239
  a
5240
- ), b = [];
5241
- for (const { value: p2, label: d } of w2) {
5242
- const { originalColumn: h, spec: f2 } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, c2 = Pt(x2);
5243
- let y;
5244
- r ? y = r.deriveS(f2, c2) : y = xt(h.id, c2);
5240
+ ), w2 = [];
5241
+ for (const { value: p2, label: f2 } of y) {
5242
+ const { originalColumn: h, spec: d } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, c2 = Pt(x2);
5243
+ let v;
5244
+ r ? v = r.deriveS(d, c2) : v = xt(h.id, c2);
5245
5245
  let g = { ...p2.adjustedSpec };
5246
5246
  o && (g = {
5247
5247
  ...g,
5248
5248
  annotations: {
5249
5249
  ...g.annotations ?? {},
5250
- "pl7.app/label": d
5250
+ "pl7.app/label": f2
5251
5251
  }
5252
- }), b.push({
5253
- id: y,
5252
+ }), w2.push({
5253
+ id: v,
5254
5254
  spec: g,
5255
5255
  data: () => p2.type === "split" ? gn(bt(p2.dataEntries, c2)) : p2.originalColumn.data,
5256
- label: d
5256
+ label: f2
5257
5257
  });
5258
5258
  }
5259
- return b;
5259
+ return w2;
5260
5260
  }
5261
5261
  getColumns(e, n2) {
5262
5262
  const r = this.getUniversalEntries(e, {
@@ -5634,7 +5634,7 @@
5634
5634
  return this.ctx.getCurrentUnstableMarker();
5635
5635
  }
5636
5636
  }
5637
- const M = "1.29.14";
5637
+ const M = "1.29.17";
5638
5638
  function _t(t) {
5639
5639
  return t.__renderLambda === true;
5640
5640
  }