@platforma-sdk/model 1.28.4 → 1.29.2
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -9
- package/dist/index.mjs.map +1 -1
- package/dist/render/api.d.ts +4 -4
- package/dist/render/api.d.ts.map +1 -1
- package/dist/render/util/column_collection.d.ts +2 -2
- package/dist/render/util/column_collection.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +5 -5
- package/src/render/api.ts +15 -9
- package/src/render/util/column_collection.ts +3 -2
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) {
|
|
@@ -953,7 +953,7 @@ class be {
|
|
|
953
953
|
if (p) {
|
|
954
954
|
if (!r)
|
|
955
955
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
956
|
-
c = $e(r.anchors, f);
|
|
956
|
+
c = $e(r.anchors, f, n);
|
|
957
957
|
} else
|
|
958
958
|
c = f;
|
|
959
959
|
const h = /* @__PURE__ */ new Set(), A = [];
|
|
@@ -1345,12 +1345,15 @@ class bt {
|
|
|
1345
1345
|
* @returns a map of axis value => label
|
|
1346
1346
|
*/
|
|
1347
1347
|
findLabelsForColumnAxis(e, n) {
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
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.
|
|
1435
|
+
const M = "1.29.2";
|
|
1433
1436
|
function wt(t) {
|
|
1434
1437
|
return t.__renderLambda === !0;
|
|
1435
1438
|
}
|