@platforma-sdk/model 1.29.16 → 1.29.22
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 +100 -100
- package/dist/index.mjs.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/PlDataTable.ts +13 -13
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PlatformaSDKVersion = "1.29.
|
|
1
|
+
export declare const PlatformaSDKVersion = "1.29.22";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/model",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.22",
|
|
4
4
|
"description": "Platforma.bio SDK / Block Model",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"utility-types": "^3.11.0",
|
|
22
22
|
"canonicalize": "~2.1.0",
|
|
23
23
|
"zod": "~3.23.8",
|
|
24
|
-
"@milaboratories/pl-model-common": "^1.13.
|
|
25
|
-
"@milaboratories/pl-error-like": "^1.12.
|
|
24
|
+
"@milaboratories/pl-model-common": "^1.13.8",
|
|
25
|
+
"@milaboratories/pl-error-like": "^1.12.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "~5.5.4",
|
|
@@ -570,19 +570,6 @@ export function createPlDataTableV2<A, U>(
|
|
|
570
570
|
const allLabelColumns = getAllLabelColumns(ctx.resultPool);
|
|
571
571
|
if (!allLabelColumns) return undefined;
|
|
572
572
|
|
|
573
|
-
const spec: PTableColumnSpec[] = [
|
|
574
|
-
...mainColumn.spec.axesSpec.map((axis) => ({
|
|
575
|
-
type: 'axis',
|
|
576
|
-
id: getAxisId(axis),
|
|
577
|
-
spec: axis,
|
|
578
|
-
} satisfies PTableColumnSpec)),
|
|
579
|
-
...[...columns, ...allLabelColumns].map((c) => ({
|
|
580
|
-
type: 'column',
|
|
581
|
-
id: c.id,
|
|
582
|
-
spec: c.spec,
|
|
583
|
-
} satisfies PTableColumnSpec)),
|
|
584
|
-
];
|
|
585
|
-
|
|
586
573
|
const hiddenColumns = new Set<PObjectId>(((): PObjectId[] => {
|
|
587
574
|
// Inner join works as a filter - all columns must be present
|
|
588
575
|
if (coreJoinType === 'inner') return [];
|
|
@@ -608,6 +595,19 @@ export function createPlDataTableV2<A, U>(
|
|
|
608
595
|
const visibleColumns = columns.filter((c) => !hiddenColumns.has(c.id));
|
|
609
596
|
const labelColumns = getMatchingLabelColumns(visibleColumns.map(getColumnIdAndSpec), allLabelColumns);
|
|
610
597
|
|
|
598
|
+
const spec: PTableColumnSpec[] = [
|
|
599
|
+
...mainColumn.spec.axesSpec.map((axis) => ({
|
|
600
|
+
type: 'axis',
|
|
601
|
+
id: getAxisId(axis),
|
|
602
|
+
spec: axis,
|
|
603
|
+
} satisfies PTableColumnSpec)),
|
|
604
|
+
...[...columns, ...labelColumns].map((c) => ({
|
|
605
|
+
type: 'column',
|
|
606
|
+
id: c.id,
|
|
607
|
+
spec: c.spec,
|
|
608
|
+
} satisfies PTableColumnSpec)),
|
|
609
|
+
];
|
|
610
|
+
|
|
611
611
|
// if at least one column is not yet computed, we can't show the table
|
|
612
612
|
if (!allColumnsComputed([...visibleColumns, ...labelColumns])) return undefined;
|
|
613
613
|
|