@milaboratories/milaboratories.ui-examples.model 1.2.13 → 1.2.14

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.2.13 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.2.14 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
- CJS dist/index.cjs 8.60 KB
15
- CJS dist/index.cjs.map 19.25 KB
16
- CJS ⚡️ Build success in 301ms
17
14
  ESM dist/index.js 8.48 KB
18
15
  ESM dist/index.js.map 19.17 KB
19
- ESM ⚡️ Build success in 302ms
16
+ ESM ⚡️ Build success in 147ms
17
+ CJS dist/index.cjs 8.60 KB
18
+ CJS dist/index.cjs.map 19.25 KB
19
+ CJS ⚡️ Build success in 147ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 4620ms
21
+ DTS ⚡️ Build success in 1541ms
22
22
  DTS dist/index.d.cts 2.98 KB
23
23
  DTS dist/index.d.ts 2.98 KB
24
24
  vite v6.3.5 building for production...
@@ -26,6 +26,6 @@ transforming...
26
26
  ✓ 11 modules transformed.
27
27
  rendering chunks...
28
28
  computing gzip size...
29
- dist/bundle.js 196.24 kB │ gzip: 38.11 kB │ map: 438.49 kB
30
- dist/bundle.js 209.81 kB │ gzip: 38.81 kB │ map: 440.10 kB
31
- ✓ built in 2.28s
29
+ dist/bundle.js 196.25 kB │ gzip: 38.12 kB │ map: 438.51 kB
30
+ dist/bundle.js 209.82 kB │ gzip: 38.81 kB │ map: 440.12 kB
31
+ ✓ built in 1.01s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.2.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d469422]
8
+ - @platforma-sdk/model@1.41.3
9
+
3
10
  ## 1.2.13
4
11
 
5
12
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4328,7 +4328,7 @@
4328
4328
  if (!ie(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
4329
4329
  return e;
4330
4330
  }
4331
- function nn$1(e, n2) {
4331
+ function nn(e, n2) {
4332
4332
  return e === void 0 ? void 0 : {
4333
4333
  ...e,
4334
4334
  data: n2(e.data)
@@ -4423,7 +4423,7 @@
4423
4423
  }
4424
4424
  return true;
4425
4425
  }
4426
- function rn(e) {
4426
+ function rn$1(e) {
4427
4427
  return Array.isArray(e) ? (n2) => e.some((t) => l$1(n2) && N(n2, t)) : (n2) => l$1(n2) && N(n2, e);
4428
4428
  }
4429
4429
  function on(e) {
@@ -4702,7 +4702,7 @@
4702
4702
  const i = {};
4703
4703
  for (const [o, s2] of Object.entries(r)) {
4704
4704
  const a = [...this.resolvePath, o];
4705
- i[o] = nn$1(s2, (l2) => new O(l2, a));
4705
+ i[o] = nn(s2, (l2) => new O(l2, a));
4706
4706
  }
4707
4707
  return i;
4708
4708
  }
@@ -5148,7 +5148,7 @@
5148
5148
  this.columns = e;
5149
5149
  }
5150
5150
  selectColumns(e) {
5151
- const n2 = typeof e == "function" ? e : rn(e);
5151
+ const n2 = typeof e == "function" ? e : rn$1(e);
5152
5152
  return this.columns.filter((r) => n2(r.spec));
5153
5153
  }
5154
5154
  }
@@ -5219,9 +5219,9 @@
5219
5219
  if (Ve(g2)) {
5220
5220
  if (!r)
5221
5221
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5222
- return rn(Xe$1(r.anchors, g2, n2));
5222
+ return rn$1(Xe$1(r.anchors, g2, n2));
5223
5223
  } else
5224
- return rn(g2);
5224
+ return rn$1(g2);
5225
5225
  });
5226
5226
  u2 = (g2) => p2.some((C) => C(g2));
5227
5227
  }
@@ -5403,7 +5403,7 @@
5403
5403
  return true;
5404
5404
  }
5405
5405
  function ke(t) {
5406
- return nn$1(t, (e) => e instanceof O ? e.handle : Ce$1(e) ? Fe(e, (n2) => n2.handle) : e);
5406
+ return nn(t, (e) => e instanceof O ? e.handle : Ce$1(e) ? Fe(e, (n2) => n2.handle) : e);
5407
5407
  }
5408
5408
  class Wt {
5409
5409
  constructor() {
@@ -5416,7 +5416,7 @@
5416
5416
  return this.ctx.calculateOptions(e);
5417
5417
  }
5418
5418
  getOptions(e, n2) {
5419
- const r = typeof e == "function" ? e : rn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5419
+ const r = typeof e == "function" ? e : rn$1(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5420
5420
  let o = {}, s2 = false;
5421
5421
  return typeof n2 < "u" && (typeof n2 == "function" ? o = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? o = n2 : (n2 = n2, o = n2.label ?? {}, s2 = n2.refsWithEnrichments ?? false))), typeof o == "object" ? ze(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5422
5422
  ref: fn(a, s2),
@@ -5559,7 +5559,7 @@
5559
5559
  )) == null ? void 0 : r.obj;
5560
5560
  const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
5561
5561
  if (n2)
5562
- return nn$1(
5562
+ return nn(
5563
5563
  n2,
5564
5564
  (i) => new O(i, [e.blockId, e.name])
5565
5565
  );
@@ -5643,7 +5643,7 @@
5643
5643
  * @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
5644
5644
  */
5645
5645
  selectColumns(e) {
5646
- const n2 = typeof e == "function" ? e : rn(e);
5646
+ const n2 = typeof e == "function" ? e : rn$1(e);
5647
5647
  return this.getSpecs().entries.filter(({ obj: i }) => l$1(i) ? n2(i) : false).map(({ ref: i, obj: o }) => {
5648
5648
  const s2 = o;
5649
5649
  let a = null;
@@ -5788,13 +5788,13 @@
5788
5788
  this.ctx.logError(e);
5789
5789
  }
5790
5790
  }
5791
- const X = "1.41.2";
5792
- function Gt(t) {
5791
+ const Gt = "1.41.3", X = Gt;
5792
+ function Ht(t) {
5793
5793
  return t.__renderLambda === true;
5794
5794
  }
5795
5795
  function me(t) {
5796
5796
  if (t !== void 0)
5797
- return Gt(t) ? t.handle : t;
5797
+ return Ht(t) ? t.handle : t;
5798
5798
  }
5799
5799
  const w = class w2 {
5800
5800
  constructor(e, n2, r, i, o, s2, a, l2, u2) {
@@ -6053,7 +6053,7 @@
6053
6053
  pTableParams: Qe()
6054
6054
  };
6055
6055
  }
6056
- function Ht(t) {
6056
+ function zt(t) {
6057
6057
  return "version" in t || (t = De()), t.version === 2 && (t = {
6058
6058
  version: 3,
6059
6059
  stateCache: t.stateCache.map((e) => ({
@@ -6066,7 +6066,7 @@
6066
6066
  function Se(t) {
6067
6067
  return t.axesSpec.length === 1 && t.name === "pl7.app/label";
6068
6068
  }
6069
- function zt(t) {
6069
+ function Xt(t) {
6070
6070
  return new Q().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
6071
6071
  name: "pl7.app/label",
6072
6072
  axes: [{}]
@@ -6110,7 +6110,7 @@
6110
6110
  }
6111
6111
  return s2;
6112
6112
  }
6113
- function Xt(t) {
6113
+ function Yt(t) {
6114
6114
  const e = (i) => Array.isArray(i), n2 = (i) => i instanceof O, r = (i) => typeof i == "object" && "type" in i;
6115
6115
  return t.map((i) => i.data).every((i) => {
6116
6116
  if (e(i))
@@ -6152,20 +6152,20 @@
6152
6152
  sorting: t.sorting
6153
6153
  };
6154
6154
  }
6155
- function Yt(t) {
6155
+ function Qt(t) {
6156
6156
  var e;
6157
6157
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
6158
6158
  }
6159
- function Qt(t) {
6159
+ function Zt(t) {
6160
6160
  var e;
6161
6161
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
6162
6162
  }
6163
6163
  function ge(t, e) {
6164
6164
  return [...new Map(t.map((n2) => [e(n2), n2])).values()];
6165
6165
  }
6166
- function Wn(t, e, n2, r) {
6166
+ function Gn(t, e, n2, r) {
6167
6167
  if (e.length === 0) return;
6168
- const i = e.filter((c2) => Pe(c2.spec) || !Yt(c2.spec)), o = Ht(n2), s2 = zt(t.resultPool);
6168
+ const i = e.filter((c2) => Pe(c2.spec) || !Qt(c2.spec)), o = zt(n2), s2 = Xt(t.resultPool);
6169
6169
  if (!s2) return;
6170
6170
  const a = Re(i.map(qe), s2), l2 = [...i, ...a], h = [
6171
6171
  ...ge(
@@ -6198,11 +6198,11 @@
6198
6198
  coreColumnPredicate: void 0
6199
6199
  }), E = t.createPTable(C), F2 = new Set((() => {
6200
6200
  const c2 = o.pTableParams.hiddenColIds;
6201
- return c2 || i.filter((v2) => Qt(v2.spec)).map((v2) => v2.id);
6201
+ return c2 || i.filter((v2) => Zt(v2.spec)).map((v2) => v2.id);
6202
6202
  })());
6203
6203
  i.filter((c2) => Pe(c2.spec)).forEach((c2) => F2.delete(c2.id)), [...y$1.map((c2) => c2.column), ...p2.map((c2) => c2.column), ...g2.map((c2) => c2.column)].filter((c2) => c2.type === "column").forEach((c2) => F2.delete(c2.id));
6204
6204
  const S2 = i.filter((c2) => !F2.has(c2.id)), P = Re(S2.map(qe), s2);
6205
- if (!Xt([...S2, ...P])) return;
6205
+ if (!Yt([...S2, ...P])) return;
6206
6206
  const T = Ne({
6207
6207
  columns: S2,
6208
6208
  labelColumns: P,
@@ -6220,9 +6220,9 @@
6220
6220
  }
6221
6221
  function Pe(t) {
6222
6222
  var e;
6223
- return ((e = t.annotations) == null ? void 0 : e[nn]) === "true";
6223
+ return ((e = t.annotations) == null ? void 0 : e[rn]) === "true";
6224
6224
  }
6225
- const nn = "pl7.app/isLinkerColumn";
6225
+ const rn = "pl7.app/isLinkerColumn";
6226
6226
  const ImportFileHandleSchema = z$1.string().optional().refine(
6227
6227
  (_a) => true
6228
6228
  );
@@ -6458,7 +6458,7 @@
6458
6458
  })
6459
6459
  });
6460
6460
  }
6461
- return Wn(
6461
+ return Gn(
6462
6462
  ctx,
6463
6463
  columns,
6464
6464
  ctx.uiState.dataTableV2.state