@milaboratories/milaboratories.ui-examples.model 1.1.54 → 1.1.55

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.ui-examples.model@1.1.54 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.1.55 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/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
- ESM dist/index.js 6.35 KB
15
- ESM dist/index.js.map 14.56 KB
16
- ESM ⚡️ Build success in 322ms
17
14
  CJS dist/index.cjs 6.46 KB
18
15
  CJS dist/index.cjs.map 14.65 KB
19
- CJS ⚡️ Build success in 322ms
16
+ CJS ⚡️ Build success in 367ms
17
+ ESM dist/index.js 6.35 KB
18
+ ESM dist/index.js.map 14.56 KB
19
+ ESM ⚡️ Build success in 367ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 4685ms
21
+ DTS ⚡️ Build success in 4316ms
22
22
  DTS dist/index.d.cts 4.28 KB
23
23
  DTS dist/index.d.ts 4.28 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 188.18 kB │ gzip: 36.40 kB │ map: 401.09 kB
30
- dist/bundle.js 201.12 kB │ gzip: 37.04 kB │ map: 402.66 kB
31
- ✓ built in 1.78s
29
+ dist/bundle.js 188.27 kB │ gzip: 36.42 kB │ map: 401.09 kB
30
+ dist/bundle.js 201.22 kB │ gzip: 37.06 kB │ map: 402.66 kB
31
+ ✓ built in 1.81s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.1.55
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ec15bb1]
8
+ - @platforma-sdk/model@1.30.21
9
+
3
10
  ## 1.1.54
4
11
 
5
12
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4081,7 +4081,7 @@
4081
4081
  }
4082
4082
  }
4083
4083
  }
4084
- function Cn(n2) {
4084
+ function Cn$1(n2) {
4085
4085
  return {
4086
4086
  columnId: n2.id,
4087
4087
  spec: n2.spec
@@ -4121,6 +4121,8 @@
4121
4121
  newId: n2.newId,
4122
4122
  axisFilters: n2.axisFilters
4123
4123
  };
4124
+ case "inlineColumn":
4125
+ return n2;
4124
4126
  case "inner":
4125
4127
  case "full":
4126
4128
  return {
@@ -4324,6 +4326,8 @@
4324
4326
  case "slicedColumn":
4325
4327
  e.set(r.column.id, r.column);
4326
4328
  return;
4329
+ case "inlineColumn":
4330
+ return;
4327
4331
  case "full":
4328
4332
  case "inner":
4329
4333
  for (const o of r.entries) t(o);
@@ -4763,7 +4767,7 @@
4763
4767
  return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, p2]) => o(u2, p2));
4764
4768
  }
4765
4769
  }
4766
- const Fe = "staging", De = "main";
4770
+ const Fe = "staging", Oe = "main";
4767
4771
  const ct = "pl7.app/label", pt = "pl7.app/trace", dt = z$1.object({
4768
4772
  type: z$1.string(),
4769
4773
  importance: z$1.number().optional(),
@@ -4785,7 +4789,7 @@
4785
4789
  const L = { label: b, type: gt, importance: -2 };
4786
4790
  n2.addLabelAsSuffix ? A2.push(L) : A2.splice(0, 0, L);
4787
4791
  }
4788
- const D = [], J = /* @__PURE__ */ new Map();
4792
+ const O = [], J = /* @__PURE__ */ new Map();
4789
4793
  for (let L = A2.length - 1; L >= 0; --L) {
4790
4794
  const { type: k2 } = A2[L], se = A2[L].importance ?? 0, N2 = (J.get(k2) ?? 0) + 1;
4791
4795
  J.set(k2, N2);
@@ -4796,13 +4800,13 @@
4796
4800
  r.get(x2) ?? Number.NEGATIVE_INFINITY,
4797
4801
  se - (A2.length - L) * ht
4798
4802
  )
4799
- ), D.push({ ...A2[L], fullType: x2, occurenceIndex: N2 });
4803
+ ), O.push({ ...A2[L], fullType: x2, occurrenceIndex: N2 });
4800
4804
  }
4801
- return D.reverse(), {
4805
+ return O.reverse(), {
4802
4806
  value: f2,
4803
4807
  spec: h,
4804
4808
  label: b,
4805
- fullTrace: D
4809
+ fullTrace: O
4806
4810
  };
4807
4811
  }), o = [], a = [], l2 = [...r];
4808
4812
  l2.sort(([, f2], [, g]) => g - f2);
@@ -5198,7 +5202,7 @@
5198
5202
  }
5199
5203
  if (!yn(A2))
5200
5204
  throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${m2.id}`);
5201
- const D = vt(A2), J = c2[c2.length - 1];
5205
+ const O = vt(A2), J = c2[c2.length - 1];
5202
5206
  if (J >= A2.partitionKeyLength)
5203
5207
  throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${J}) in column ${w2.name}`);
5204
5208
  const z2 = c2.map((x2) => this.findLabels(m$1(w2.axesSpec[x2]))), F = [], L = (x2, U) => {
@@ -5207,10 +5211,10 @@
5207
5211
  throw new Error("Too many key combinations, aborting.");
5208
5212
  return;
5209
5213
  }
5210
- const O = c2[U];
5211
- if (O >= D.length)
5212
- throw new Error(`Axis index ${O} out of bounds for unique keys array (length ${D.length}) during split key generation for column ${m2.id}`);
5213
- const j2 = D[O];
5214
+ const D = c2[U];
5215
+ if (D >= O.length)
5216
+ throw new Error(`Axis index ${D} out of bounds for unique keys array (length ${O.length}) during split key generation for column ${m2.id}`);
5217
+ const j2 = O[D];
5214
5218
  if (!j2 || j2.length === 0) {
5215
5219
  F.length = 0;
5216
5220
  return;
@@ -5225,9 +5229,9 @@
5225
5229
  k2.splice(c2[x2], 1);
5226
5230
  const N2 = { ...w2, axesSpec: k2 };
5227
5231
  for (const x2 of F) {
5228
- const U = x2.map((O, j2) => {
5229
- const Y2 = se[j2], Ue = m$1(w2.axesSpec[Y2]), oe = z2[j2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
5230
- return { axisIdx: Y2, axisId: Ue, value: O, label: Be };
5232
+ const U = x2.map((D, j2) => {
5233
+ const Y2 = se[j2], Ue = m$1(w2.axesSpec[Y2]), oe = z2[j2], Be = (oe == null ? void 0 : oe[D]) ?? String(D);
5234
+ return { axisIdx: Y2, axisId: Ue, value: D, label: Be };
5231
5235
  });
5232
5236
  u2.push({
5233
5237
  type: "split",
@@ -5610,7 +5614,7 @@
5610
5614
  return this.getNamedAccessor(Fe);
5611
5615
  }
5612
5616
  get outputs() {
5613
- return this.getNamedAccessor(De);
5617
+ return this.getNamedAccessor(Oe);
5614
5618
  }
5615
5619
  /**
5616
5620
  * Find labels data for a given axis id. It will search for a label column and return its data as a map.
@@ -5652,7 +5656,7 @@
5652
5656
  return this.ctx.getCurrentUnstableMarker();
5653
5657
  }
5654
5658
  }
5655
- const G = "1.30.11";
5659
+ const G = "1.30.21";
5656
5660
  function Lt(t) {
5657
5661
  return t.__renderLambda === true;
5658
5662
  }
@@ -5952,12 +5956,12 @@
5952
5956
  sorting: i
5953
5957
  };
5954
5958
  }
5955
- function Sn(t, e, n2, r) {
5959
+ function Cn(t, e, n2, r) {
5956
5960
  var u2, p2;
5957
5961
  Array.isArray(r) && (r = { filters: r });
5958
5962
  const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((p2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : p2.sorting) ?? [], a = Ve(t.resultPool);
5959
5963
  if (!a) return;
5960
- const l2 = Ke(e.map(Cn), a);
5964
+ const l2 = Ke(e.map(Cn$1), a);
5961
5965
  if ($e([...e, ...l2]))
5962
5966
  return t.createPTable(
5963
5967
  Je(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
@@ -5967,7 +5971,7 @@
5967
5971
  var e;
5968
5972
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
5969
5973
  }
5970
- function _n(t, e, n2, r, i) {
5974
+ function Sn(t, e, n2, r, i) {
5971
5975
  var h, P;
5972
5976
  const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((h = r == null ? void 0 : r.pTableParams) == null ? void 0 : h.filters) ?? []], a = ((P = r == null ? void 0 : r.pTableParams) == null ? void 0 : P.sorting) ?? [], l2 = e.find((c2) => n2(c2.spec));
5973
5977
  if (!l2) return;
@@ -5980,7 +5984,7 @@
5980
5984
  return c2 || e.filter((w2) => Ft(w2.spec)).map((w2) => w2.id);
5981
5985
  })());
5982
5986
  p2.delete(l2.id), [...o.map((c2) => c2.column), ...a.map((c2) => c2.column)].filter((c2) => c2.type === "column").map((c2) => p2.delete(c2.id));
5983
- const v = e.filter((c2) => !p2.has(c2.id)), d = Ke(v.map(Cn), u2), f2 = [
5987
+ const v = e.filter((c2) => !p2.has(c2.id)), d = Ke(v.map(Cn$1), u2), f2 = [
5984
5988
  ...l2.spec.axesSpec.map((c2) => ({
5985
5989
  type: "axis",
5986
5990
  id: m$1(c2),
@@ -6047,7 +6051,7 @@
6047
6051
  val: v.toString()
6048
6052
  };
6049
6053
  });
6050
- return Sn(
6054
+ return Cn(
6051
6055
  ctx,
6052
6056
  [
6053
6057
  {
@@ -6100,7 +6104,7 @@
6100
6104
  val: v.toString()
6101
6105
  };
6102
6106
  });
6103
- return _n(
6107
+ return Sn(
6104
6108
  ctx,
6105
6109
  [
6106
6110
  {