@milaboratories/milaboratories.ui-examples.model 1.1.48 → 1.1.49

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.ui-examples.model@1.1.48 build /opt/actions-runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.1.49 build /opt/actions-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
@@ -13,12 +13,12 @@
13
13
  ESM Build start
14
14
  ESM dist/index.js 4.87 KB
15
15
  ESM dist/index.js.map 11.51 KB
16
- ESM ⚡️ Build success in 126ms
16
+ ESM ⚡️ Build success in 124ms
17
17
  CJS dist/index.cjs 5.01 KB
18
18
  CJS dist/index.cjs.map 11.55 KB
19
- CJS ⚡️ Build success in 126ms
19
+ CJS ⚡️ Build success in 124ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 1667ms
21
+ DTS ⚡️ Build success in 1666ms
22
22
  DTS dist/index.d.cts 2.43 KB
23
23
  DTS dist/index.d.ts 2.43 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 183.16 kB │ gzip: 35.51 kB │ map: 393.08 kB
30
- dist/bundle.js 195.80 kB │ gzip: 36.14 kB │ map: 394.63 kB
31
- ✓ built in 781ms
29
+ dist/bundle.js 183.16 kB │ gzip: 35.50 kB │ map: 393.10 kB
30
+ dist/bundle.js 195.80 kB │ gzip: 36.13 kB │ map: 394.64 kB
31
+ ✓ built in 845ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.1.49
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [37b84a5]
8
+ - @platforma-sdk/model@1.29.17
9
+
3
10
  ## 1.1.48
4
11
 
5
12
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4748,7 +4748,7 @@
4748
4748
  let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4749
4749
  (u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
4750
4750
  );
4751
- return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, w2]) => o(u2, w2));
4751
+ return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, y]) => o(u2, y));
4752
4752
  }
4753
4753
  }
4754
4754
  const Ee = "staging", Fe = "main";
@@ -4759,18 +4759,18 @@
4759
4759
  label: z.string()
4760
4760
  }), dt = z.array(pt), ft = 1e-3, ht = "__LABEL__", Ae = "__LABEL__@1";
4761
4761
  function Oe(t, e, n2 = {}) {
4762
- const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((d) => {
4762
+ const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((f2) => {
4763
4763
  var q2, F;
4764
- const h = e(d);
4765
- let f2, x2, c2;
4766
- "spec" in h && typeof h.spec == "object" ? (f2 = h.spec, x2 = h.prefixTrace, c2 = h.suffixTrace) : f2 = h;
4767
- 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 = [
4764
+ const h = e(f2);
4765
+ let d, x2, c2;
4766
+ "spec" in h && typeof h.spec == "object" ? (d = h.spec, x2 = h.prefixTrace, c2 = h.suffixTrace) : d = h;
4767
+ 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 = [
4768
4768
  ...x2 ?? [],
4769
- ...v,
4769
+ ...b,
4770
4770
  ...c2 ?? []
4771
4771
  ];
4772
- if (y) {
4773
- const _ = { label: y, type: ht, importance: -2 };
4772
+ if (v) {
4773
+ const _ = { label: v, type: ht, importance: -2 };
4774
4774
  n2.addLabelAsSuffix ? A2.push(_) : A2.splice(0, 0, _);
4775
4775
  }
4776
4776
  const D = [], $2 = /* @__PURE__ */ new Map();
@@ -4787,24 +4787,24 @@
4787
4787
  ), D.push({ ...A2[_], fullType: P, occurenceIndex: J });
4788
4788
  }
4789
4789
  return D.reverse(), {
4790
- value: d,
4791
- spec: f2,
4792
- label: y,
4790
+ value: f2,
4791
+ spec: d,
4792
+ label: v,
4793
4793
  fullTrace: D
4794
4794
  };
4795
4795
  }), o = [], a = [], l2 = [...r];
4796
- l2.sort(([, d], [, h]) => h - d);
4797
- for (const [d] of l2)
4798
- d.endsWith("@1") || i.get(d) === t.length ? o.push(d) : a.push(d);
4799
- const u2 = (d) => {
4796
+ l2.sort(([, f2], [, h]) => h - f2);
4797
+ for (const [f2] of l2)
4798
+ f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
4799
+ const u2 = (f2) => {
4800
4800
  const h = [];
4801
- for (let f2 = 0; f2 < s2.length; f2++) {
4802
- const x2 = s2[f2], c2 = x2.fullTrace.filter((v) => d.has(v.fullType));
4801
+ for (let d = 0; d < s2.length; d++) {
4802
+ const x2 = s2[d], c2 = x2.fullTrace.filter((b) => f2.has(b.fullType));
4803
4803
  if (c2.length === 0)
4804
4804
  return;
4805
- const y = c2.map((v) => v.label), g = n2.separator ?? " / ";
4805
+ const v = c2.map((b) => b.label), g = n2.separator ?? " / ";
4806
4806
  h.push({
4807
- label: y.join(g),
4807
+ label: v.join(g),
4808
4808
  value: x2.value
4809
4809
  });
4810
4810
  }
@@ -4812,19 +4812,19 @@
4812
4812
  };
4813
4813
  if (o.length === 0) {
4814
4814
  if (a.length !== 0) throw new Error("Assertion error.");
4815
- const d = u2(new Set(Ae));
4816
- if (d === void 0) throw new Error("Assertion error.");
4817
- return d;
4818
- }
4819
- let w2 = 0, b = 0;
4820
- for (; w2 < o.length; ) {
4821
- const d = /* @__PURE__ */ new Set();
4822
- n2.includeNativeLabel && d.add(Ae);
4823
- for (let f2 = 0; f2 < w2; ++f2) d.add(o[f2]);
4824
- d.add(o[b]);
4825
- const h = u2(d);
4826
- if (h !== void 0 && new Set(h.map((f2) => f2.label)).size === t.length) return h;
4827
- b++, b >= o.length && (w2++, b = w2);
4815
+ const f2 = u2(new Set(Ae));
4816
+ if (f2 === void 0) throw new Error("Assertion error.");
4817
+ return f2;
4818
+ }
4819
+ let y = 0, w2 = 0;
4820
+ for (; y < o.length; ) {
4821
+ const f2 = /* @__PURE__ */ new Set();
4822
+ n2.includeNativeLabel && f2.add(Ae);
4823
+ for (let d = 0; d < y; ++d) f2.add(o[d]);
4824
+ f2.add(o[w2]);
4825
+ const h = u2(f2);
4826
+ if (h !== void 0 && new Set(h.map((d) => d.label)).size === t.length) return h;
4827
+ w2++, w2 >= o.length && (y++, w2 = y);
4828
4828
  }
4829
4829
  const p2 = u2(/* @__PURE__ */ new Set([...o, ...a]));
4830
4830
  if (p2 === void 0) throw new Error("Assertion error.");
@@ -5157,28 +5157,28 @@
5157
5157
  ...i ?? {}
5158
5158
  }, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [];
5159
5159
  for (const p2 of l2) {
5160
- const d = Ct(p2);
5160
+ const f$1 = Ct(p2);
5161
5161
  let h;
5162
- if (d) {
5162
+ if (f$1) {
5163
5163
  if (!r)
5164
5164
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5165
5165
  h = Dn(r.anchors, p2, n2);
5166
5166
  } else
5167
5167
  h = p2;
5168
- const f$1 = /* @__PURE__ */ new Set(), x2 = [];
5168
+ const d = /* @__PURE__ */ new Set(), x2 = [];
5169
5169
  for (const g of this.providers) {
5170
- const v = g.selectColumns(h);
5171
- for (const A2 of v) {
5172
- if (f$1.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${g.constructor.name}`);
5173
- f$1.add(A2.id), x2.push(A2);
5170
+ const b = g.selectColumns(h);
5171
+ for (const A2 of b) {
5172
+ if (d.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${g.constructor.name}`);
5173
+ d.add(A2.id), x2.push(A2);
5174
5174
  }
5175
5175
  }
5176
5176
  if (x2.length === 0) continue;
5177
- const c2 = St(p2), y = c2.length > 0;
5177
+ const c2 = St(p2), v = c2.length > 0;
5178
5178
  for (const g of x2) {
5179
5179
  if (!f(g.spec)) continue;
5180
- const v = g.spec;
5181
- if (y) {
5180
+ const b = g.spec;
5181
+ if (v) {
5182
5182
  const A2 = vt(g.data);
5183
5183
  if (!A2) {
5184
5184
  if (s2) continue;
@@ -5188,8 +5188,8 @@
5188
5188
  throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${g.id}`);
5189
5189
  const D = yt(A2), $2 = c2[c2.length - 1];
5190
5190
  if ($2 >= A2.partitionKeyLength)
5191
- throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${v.name}`);
5192
- const q2 = c2.map((P) => this.findLabels(p$1(v.axesSpec[P]))), F = [], _ = (P, N2) => {
5191
+ throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${b.name}`);
5192
+ const q2 = c2.map((P) => this.findLabels(p$1(b.axesSpec[P]))), F = [], _ = (P, N2) => {
5193
5193
  if (N2 >= c2.length) {
5194
5194
  if (F.push([...P]), F.length > 1e4)
5195
5195
  throw new Error("Too many key combinations, aborting.");
@@ -5208,19 +5208,19 @@
5208
5208
  };
5209
5209
  if (_([], 0), F.length === 0)
5210
5210
  continue;
5211
- const R = [...v.axesSpec], se = c2.map((P) => P);
5211
+ const R = [...b.axesSpec], se = c2.map((P) => P);
5212
5212
  for (let P = c2.length - 1; P >= 0; P--)
5213
5213
  R.splice(c2[P], 1);
5214
- const J = { ...v, axesSpec: R };
5214
+ const J = { ...b, axesSpec: R };
5215
5215
  for (const P of F) {
5216
5216
  const N2 = P.map((O, k2) => {
5217
- const z2 = se[k2], Ne = p$1(v.axesSpec[z2]), oe = q2[k2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
5217
+ const z2 = se[k2], Ne = p$1(b.axesSpec[z2]), oe = q2[k2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
5218
5218
  return { axisIdx: z2, axisId: Ne, value: O, label: Be };
5219
5219
  });
5220
5220
  u2.push({
5221
5221
  type: "split",
5222
5222
  originalColumn: g,
5223
- spec: v,
5223
+ spec: b,
5224
5224
  adjustedSpec: J,
5225
5225
  dataEntries: A2,
5226
5226
  axisFilters: N2
@@ -5230,39 +5230,39 @@
5230
5230
  u2.push({
5231
5231
  type: "direct",
5232
5232
  originalColumn: g,
5233
- spec: v,
5234
- adjustedSpec: v
5233
+ spec: b,
5234
+ adjustedSpec: b
5235
5235
  });
5236
5236
  }
5237
5237
  }
5238
5238
  if (u2.length === 0) return [];
5239
- const w2 = Oe(
5239
+ const y = Oe(
5240
5240
  u2,
5241
5241
  (p2) => ({
5242
5242
  spec: p2.spec,
5243
5243
  suffixTrace: p2.type === "split" ? At(p2.axisFilters) : void 0
5244
5244
  }),
5245
5245
  a
5246
- ), b = [];
5247
- for (const { value: p2, label: d } of w2) {
5248
- const { originalColumn: h, spec: f2 } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, c2 = Pt(x2);
5249
- let y;
5250
- r ? y = r.deriveS(f2, c2) : y = xt(h.id, c2);
5246
+ ), w2 = [];
5247
+ for (const { value: p2, label: f2 } of y) {
5248
+ const { originalColumn: h, spec: d } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, c2 = Pt(x2);
5249
+ let v;
5250
+ r ? v = r.deriveS(d, c2) : v = xt(h.id, c2);
5251
5251
  let g = { ...p2.adjustedSpec };
5252
5252
  o && (g = {
5253
5253
  ...g,
5254
5254
  annotations: {
5255
5255
  ...g.annotations ?? {},
5256
- "pl7.app/label": d
5256
+ "pl7.app/label": f2
5257
5257
  }
5258
- }), b.push({
5259
- id: y,
5258
+ }), w2.push({
5259
+ id: v,
5260
5260
  spec: g,
5261
5261
  data: () => p2.type === "split" ? gn(bt(p2.dataEntries, c2)) : p2.originalColumn.data,
5262
- label: d
5262
+ label: f2
5263
5263
  });
5264
5264
  }
5265
- return b;
5265
+ return w2;
5266
5266
  }
5267
5267
  getColumns(e, n2) {
5268
5268
  const r = this.getUniversalEntries(e, {
@@ -5640,7 +5640,7 @@
5640
5640
  return this.ctx.getCurrentUnstableMarker();
5641
5641
  }
5642
5642
  }
5643
- const M = "1.29.16";
5643
+ const M = "1.29.17";
5644
5644
  function _t(t) {
5645
5645
  return t.__renderLambda === true;
5646
5646
  }
@@ -5842,8 +5842,8 @@
5842
5842
  for (const a of e) {
5843
5843
  const l2 = a.spec.axesSpec[0], u2 = p$1(a.spec.axesSpec[0]);
5844
5844
  if (G(o, u2)) {
5845
- const w2 = Object.keys(o.domain ?? {}).length, b = Object.keys(u2.domain ?? {}).length;
5846
- if (w2 > b) {
5845
+ const y = Object.keys(o.domain ?? {}).length, w2 = Object.keys(u2.domain ?? {}).length;
5846
+ if (y > w2) {
5847
5847
  const p2 = n2(a.id, o.domain);
5848
5848
  r.set(p2, {
5849
5849
  id: p2,
@@ -5902,9 +5902,9 @@
5902
5902
  };
5903
5903
  }
5904
5904
  function Cn(t, e, n2, r) {
5905
- var u2, w2;
5905
+ var u2, y;
5906
5906
  Array.isArray(r) && (r = { filters: r });
5907
- 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 = ((w2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : w2.sorting) ?? [], a = je(t.resultPool);
5907
+ 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 = ((y = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : y.sorting) ?? [], a = je(t.resultPool);
5908
5908
  if (!a) return;
5909
5909
  const l2 = Ve(e.map(Cn$1), a);
5910
5910
  if (Ke([...e, ...l2]))