@platforma-sdk/model 1.28.4 → 1.29.0

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.
package/dist/index.mjs CHANGED
@@ -3,8 +3,8 @@ var Ke = (t, e, n) => e in t ? je(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var L = (t, e, n) => Ke(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { isPColumn as ie, mapPObjectData as ge, isDataInfoEntries as xe, isDataInfo as me, dataInfoToEntries as Ve, resolveAnchors as $e, isPColumnSpec as Q, isPartitionedDataInfoEntries as Je, getAxisId as E, entriesToDataInfo as Ne, selectorsToPredicate as ce, canonicalizeAxisId as Ue, AnchoredIdDeriver as ye, isPlRef as Be, mapValueInVOE as Me, ensurePColumn as Ge, extractAllColumns as We, mapPTableDef as He, mapDataInfo as qe, matchAxisId as G } from "@milaboratories/pl-model-common";
5
5
  export * from "@milaboratories/pl-model-common";
6
- import { z as K } from "zod";
7
6
  import Pe from "canonicalize";
7
+ import { z as K } from "zod";
8
8
  export * from "@milaboratories/pl-error-like";
9
9
  class ze extends Error {
10
10
  constructor(e, n) {
@@ -1345,12 +1345,15 @@ class bt {
1345
1345
  * @returns a map of axis value => label
1346
1346
  */
1347
1347
  findLabelsForColumnAxis(e, n) {
1348
- const r = this.findLabels(e.spec.axesSpec[n]);
1349
- if (r)
1350
- return Object.fromEntries(e.data.listInputFields().map((i) => {
1351
- const s = JSON.parse(i);
1352
- return [s[n], r[s[n]] ?? "Unlabelled"];
1353
- }));
1348
+ var s;
1349
+ const r = this.findLabels(e.axesSpec[n]);
1350
+ if (!r) return;
1351
+ const i = (s = e.annotations) == null ? void 0 : s["pl7.app/axisKeys/" + n];
1352
+ if (i !== void 0) {
1353
+ const o = JSON.parse(i);
1354
+ return Object.fromEntries(o.map((a) => [a, r[a] ?? "Unlabelled"]));
1355
+ } else
1356
+ return r;
1354
1357
  }
1355
1358
  }
1356
1359
  class X {
@@ -1429,7 +1432,7 @@ class X {
1429
1432
  return this.ctx.getCurrentUnstableMarker();
1430
1433
  }
1431
1434
  }
1432
- const M = "1.28.4";
1435
+ const M = "1.29.0";
1433
1436
  function wt(t) {
1434
1437
  return t.__renderLambda === !0;
1435
1438
  }