@platforma-sdk/model 1.83.0 → 1.83.17
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/annotations/converter.d.ts +1 -3
- package/dist/annotations/converter.d.ts.map +1 -1
- package/dist/annotations/types.d.ts +5 -6
- package/dist/annotations/types.d.ts.map +1 -1
- package/dist/bconfig/lambdas.d.ts +10 -10
- package/dist/bconfig/lambdas.d.ts.map +1 -1
- package/dist/bconfig/normalization.d.ts +3 -5
- package/dist/bconfig/normalization.d.ts.map +1 -1
- package/dist/bconfig/types.d.ts +4 -5
- package/dist/bconfig/types.d.ts.map +1 -1
- package/dist/bconfig/util.d.ts +1 -3
- package/dist/bconfig/util.d.ts.map +1 -1
- package/dist/bconfig/v3.d.ts +3 -5
- package/dist/bconfig/v3.d.ts.map +1 -1
- package/dist/block_api_v1.d.ts +2 -4
- package/dist/block_api_v1.d.ts.map +1 -1
- package/dist/block_api_v2.d.ts +1 -3
- package/dist/block_api_v2.d.ts.map +1 -1
- package/dist/block_api_v3.d.ts +1 -3
- package/dist/block_api_v3.d.ts.map +1 -1
- package/dist/block_migrations.d.ts +20 -36
- package/dist/block_migrations.d.ts.map +1 -1
- package/dist/block_model.d.ts +10 -10
- package/dist/block_model.d.ts.map +1 -1
- package/dist/block_state_patch.d.ts +6 -6
- package/dist/block_state_patch.d.ts.map +1 -1
- package/dist/block_state_util.d.ts +4 -6
- package/dist/block_state_util.d.ts.map +1 -1
- package/dist/block_storage.d.ts +24 -23
- package/dist/block_storage.d.ts.map +1 -1
- package/dist/block_storage_facade.d.ts +11 -12
- package/dist/block_storage_facade.d.ts.map +1 -1
- package/dist/columns/column.d.ts +5 -6
- package/dist/columns/column.d.ts.map +1 -1
- package/dist/columns/column_providers/index.d.ts +5 -6
- package/dist/columns/column_providers/index.d.ts.map +1 -1
- package/dist/columns/column_providers/providers.d.ts +10 -11
- package/dist/columns/column_providers/providers.d.ts.map +1 -1
- package/dist/columns/column_providers/types.d.ts +2 -3
- package/dist/columns/column_providers/types.d.ts.map +1 -1
- package/dist/columns/column_recipes/column_discovered_recipe.d.ts +1 -3
- package/dist/columns/column_recipes/column_discovered_recipe.d.ts.map +1 -1
- package/dist/columns/column_recipes/column_filtered_recipe.d.ts +1 -3
- package/dist/columns/column_recipes/column_filtered_recipe.d.ts.map +1 -1
- package/dist/columns/column_recipes/column_overrided_recipe.d.ts +2 -3
- package/dist/columns/column_recipes/column_overrided_recipe.d.ts.map +1 -1
- package/dist/columns/column_recipes/index.d.ts +3 -4
- package/dist/columns/column_recipes/index.d.ts.map +1 -1
- package/dist/columns/column_recipes/types.d.ts +5 -6
- package/dist/columns/column_recipes/types.d.ts.map +1 -1
- package/dist/columns/columns_collection.d.ts +7 -8
- package/dist/columns/columns_collection.d.ts.map +1 -1
- package/dist/columns/data_column.d.ts +12 -16
- package/dist/columns/data_column.d.ts.map +1 -1
- package/dist/columns/derive_axis_values_labels.d.ts +2 -3
- package/dist/columns/derive_axis_values_labels.d.ts.map +1 -1
- package/dist/columns/split_by_axes.d.ts +3 -5
- package/dist/columns/split_by_axes.d.ts.map +1 -1
- package/dist/columns/utils.d.ts +10 -12
- package/dist/columns/utils.d.ts.map +1 -1
- package/dist/components/PFrameForGraphs.d.ts +5 -5
- package/dist/components/PFrameForGraphs.d.ts.map +1 -1
- package/dist/components/PlAnnotations/filter.d.ts +59 -40
- package/dist/components/PlAnnotations/filter.d.ts.map +1 -1
- package/dist/components/PlAnnotations/filters_ui.d.ts +18 -18
- package/dist/components/PlAnnotations/filters_ui.d.ts.map +1 -1
- package/dist/components/PlDataTable/columnResolver.cjs +2 -4
- package/dist/components/PlDataTable/columnResolver.cjs.map +1 -1
- package/dist/components/PlDataTable/columnResolver.js +2 -4
- package/dist/components/PlDataTable/columnResolver.js.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.cjs +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.cjs.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.d.ts +3 -4
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.d.ts.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.js +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.js.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.cjs +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.cjs.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.d.ts +13 -10
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.d.ts.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.js +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.js.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/discoverColumns.d.ts +5 -5
- package/dist/components/PlDataTable/createPlDataTable/discoverColumns.d.ts.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/index.d.ts +4 -4
- package/dist/components/PlDataTable/createPlDataTable/index.d.ts.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/utils.d.ts +8 -7
- package/dist/components/PlDataTable/createPlDataTable/utils.d.ts.map +1 -1
- package/dist/components/PlDataTable/createPlDataTableSheet.d.ts +2 -3
- package/dist/components/PlDataTable/createPlDataTableSheet.d.ts.map +1 -1
- package/dist/components/PlDataTable/state-migration.d.ts +6 -7
- package/dist/components/PlDataTable/state-migration.d.ts.map +1 -1
- package/dist/components/PlDataTable/typesV4.d.ts +73 -42
- package/dist/components/PlDataTable/typesV4.d.ts.map +1 -1
- package/dist/components/PlDataTable/typesV5.d.ts +3 -5
- package/dist/components/PlDataTable/typesV5.d.ts.map +1 -1
- package/dist/components/PlDataTable/typesV6.d.ts +4 -6
- package/dist/components/PlDataTable/typesV6.d.ts.map +1 -1
- package/dist/components/PlDataTable/typesV7.d.ts +45 -27
- package/dist/components/PlDataTable/typesV7.d.ts.map +1 -1
- package/dist/components/PlDataTable/typesV8.d.ts +80 -45
- package/dist/components/PlDataTable/typesV8.d.ts.map +1 -1
- package/dist/components/PlDatasetSelector/build_dataset_options.d.ts +7 -6
- package/dist/components/PlDatasetSelector/build_dataset_options.d.ts.map +1 -1
- package/dist/components/PlDatasetSelector/dataset_selection.d.ts +4 -6
- package/dist/components/PlDatasetSelector/dataset_selection.d.ts.map +1 -1
- package/dist/components/PlDatasetSelector/filter_discovery.d.ts +9 -8
- package/dist/components/PlDatasetSelector/filter_discovery.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment.d.ts +6 -13
- package/dist/components/PlMultiSequenceAlignment.d.ts.map +1 -1
- package/dist/components/PlSelectionModel.d.ts +6 -6
- package/dist/components/PlSelectionModel.d.ts.map +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/config/model.d.ts +28 -30
- package/dist/config/model.d.ts.map +1 -1
- package/dist/config/type_engine.d.ts +3 -5
- package/dist/config/type_engine.d.ts.map +1 -1
- package/dist/env_value.d.ts +1 -2
- package/dist/env_value.d.ts.map +1 -1
- package/dist/filters/converters/filterToQuery.d.ts +6 -7
- package/dist/filters/converters/filterToQuery.d.ts.map +1 -1
- package/dist/filters/converters/filterUiToExpressionImpl.d.ts +2 -4
- package/dist/filters/converters/filterUiToExpressionImpl.d.ts.map +1 -1
- package/dist/filters/distill.d.ts +1 -3
- package/dist/filters/distill.d.ts.map +1 -1
- package/dist/filters/index.d.ts +1 -0
- package/dist/filters/types.d.ts +3 -4
- package/dist/filters/types.d.ts.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/labels/derive_distinct_labels.d.ts +28 -17
- package/dist/labels/derive_distinct_labels.d.ts.map +1 -1
- package/dist/labels/derive_distinct_tooltips.d.ts +11 -8
- package/dist/labels/derive_distinct_tooltips.d.ts.map +1 -1
- package/dist/labels/linked_column_postfix.d.ts +3 -5
- package/dist/labels/linked_column_postfix.d.ts.map +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.js +1 -1
- package/dist/pframe.d.ts +1 -3
- package/dist/pframe.d.ts.map +1 -1
- package/dist/pframe_utils/axes.d.ts +4 -5
- package/dist/pframe_utils/axes.d.ts.map +1 -1
- package/dist/pframe_utils/columns.d.ts +3 -7
- package/dist/pframe_utils/columns.d.ts.map +1 -1
- package/dist/pframe_utils/index.d.ts +9 -10
- package/dist/pframe_utils/index.d.ts.map +1 -1
- package/dist/platforma.d.ts +19 -21
- package/dist/platforma.d.ts.map +1 -1
- package/dist/plugin_handle.d.ts +11 -13
- package/dist/plugin_handle.d.ts.map +1 -1
- package/dist/plugin_model.d.ts +21 -22
- package/dist/plugin_model.d.ts.map +1 -1
- package/dist/raw_globals.d.ts +3 -4
- package/dist/raw_globals.d.ts.map +1 -1
- package/dist/render/accessor.d.ts +2 -4
- package/dist/render/accessor.d.ts.map +1 -1
- package/dist/render/api.d.ts +13 -13
- package/dist/render/api.d.ts.map +1 -1
- package/dist/render/future.d.ts +2 -4
- package/dist/render/future.d.ts.map +1 -1
- package/dist/render/index.d.ts +1 -0
- package/dist/render/internal.d.ts +11 -13
- package/dist/render/internal.d.ts.map +1 -1
- package/dist/render/traversal_ops.d.ts +14 -11
- package/dist/render/traversal_ops.d.ts.map +1 -1
- package/dist/render/util/axis_filtering.d.ts +5 -7
- package/dist/render/util/axis_filtering.d.ts.map +1 -1
- package/dist/render/util/column_collection.d.ts +14 -12
- package/dist/render/util/column_collection.d.ts.map +1 -1
- package/dist/render/util/label.d.ts +2 -3
- package/dist/render/util/label.d.ts.map +1 -1
- package/dist/render/util/pcolumn_data.d.ts +24 -25
- package/dist/render/util/pcolumn_data.d.ts.map +1 -1
- package/dist/render/util/split_selectors.d.ts +4 -6
- package/dist/render/util/split_selectors.d.ts.map +1 -1
- package/dist/services/block_services.d.ts +3 -4
- package/dist/services/block_services.d.ts.map +1 -1
- package/dist/services/get_services.d.ts +1 -3
- package/dist/services/get_services.d.ts.map +1 -1
- package/dist/services/service_bridge.d.ts +3 -5
- package/dist/services/service_bridge.d.ts.map +1 -1
- package/dist/services/service_resolve.d.ts +6 -7
- package/dist/services/service_resolve.d.ts.map +1 -1
- package/dist/version.d.ts +3 -4
- package/dist/version.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/components/PlDataTable/columnResolver.test.ts +3 -5
- package/src/components/PlDataTable/columnResolver.ts +2 -12
- package/src/components/PlDataTable/createPlDataTable/createPlDataTableV2.ts +1 -4
- package/src/components/PlDataTable/createPlDataTable/createPlDataTableV3.ts +5 -4
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ColumnUniversalId, PColumnSpec, PObjectId, SpecOverrides, SpecQuery as SpecQuery$1 } from "@milaboratories/pl-model-common";
|
|
2
|
-
|
|
3
2
|
//#region src/columns/column_recipes/types.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Stable identifier of a recipe: either the canonical {@link PObjectId} of a
|
|
@@ -9,7 +8,7 @@ import { ColumnUniversalId, PColumnSpec, PObjectId, SpecOverrides, SpecQuery as
|
|
|
9
8
|
* Recipes are equivalent as value-objects iff their `id`s match (structurally,
|
|
10
9
|
* after canonicalization).
|
|
11
10
|
*/
|
|
12
|
-
type ColumnRecipeId = ColumnUniversalId;
|
|
11
|
+
export type ColumnRecipeId = ColumnUniversalId;
|
|
13
12
|
/**
|
|
14
13
|
* Aggregate data status of a recipe: the "worst" status across every
|
|
15
14
|
* PObjectId the recipe references (the leaf itself plus any refs inside
|
|
@@ -18,7 +17,7 @@ type ColumnRecipeId = ColumnUniversalId;
|
|
|
18
17
|
* "All or nothing" semantics: spec/query built from a recipe are meaningful
|
|
19
18
|
* only when every referenced column is `present`.
|
|
20
19
|
*/
|
|
21
|
-
type ColumnFieldStatus = "resolving" | "absent" | "present";
|
|
20
|
+
export type ColumnFieldStatus = "resolving" | "absent" | "present";
|
|
22
21
|
/**
|
|
23
22
|
* Resolution status of a recipe — whether the recipe is meaningful in the
|
|
24
23
|
* active render ctx. Aggregates spec readiness (the recipe can be
|
|
@@ -34,7 +33,7 @@ type ColumnFieldStatus = "resolving" | "absent" | "present";
|
|
|
34
33
|
* status only. {@link ColumnResolutionStatus} also folds in spec/registry
|
|
35
34
|
* readiness, so the recipe interface exposes both.
|
|
36
35
|
*/
|
|
37
|
-
type ColumnResolutionStatus = "present" | "resolving" | "absent";
|
|
36
|
+
export type ColumnResolutionStatus = "present" | "resolving" | "absent";
|
|
38
37
|
/**
|
|
39
38
|
* Base contract of a column recipe — an immutable description of HOW to
|
|
40
39
|
* obtain a column, not the column itself.
|
|
@@ -55,7 +54,7 @@ type ColumnResolutionStatus = "present" | "resolving" | "absent";
|
|
|
55
54
|
* Consumers that need to decompose call utilities from `pl-model-common`
|
|
56
55
|
* over `recipe.id`.
|
|
57
56
|
*/
|
|
58
|
-
interface ColumnRecipe<ID extends ColumnRecipeId = ColumnRecipeId> {
|
|
57
|
+
export interface ColumnRecipe<ID extends ColumnRecipeId = ColumnRecipeId> {
|
|
59
58
|
/** Canonical recipe identifier. */
|
|
60
59
|
readonly id: ID;
|
|
61
60
|
/** PObjectIds referenced by this recipe (leaf + any nested refs). */
|
|
@@ -97,5 +96,5 @@ interface ColumnRecipe<ID extends ColumnRecipeId = ColumnRecipeId> {
|
|
|
97
96
|
withSpecs(overrides: SpecOverrides): ColumnRecipe;
|
|
98
97
|
}
|
|
99
98
|
//#endregion
|
|
100
|
-
export {
|
|
99
|
+
export type { SpecQuery$1 as SpecQuery };
|
|
101
100
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/columns/column_recipes/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/columns/column_recipes/types.ts"],"mappings":";;;;;;;;;;YAkBY,iBAAiB;;;;;;;;;YAUjB;;;;;;;;;;;;;;;;YAiBA;;;;;;;;;;;;;;;;;;;;;iBAsBK,aAAa,WAAW,iBAAiB;;WAE/C,IAAI;;EAGb,oBAAoB;;;;;;;;;;EAWpB,WAAW;;;;;;;;;;EAWX,YAAY;;;;;;;EAQZ,iBAAiB;;;;;;;;EASjB,UAAU,WAAW,gBAAgB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { GlobalCfgRenderCtx } from "../render/internal.js";
|
|
2
2
|
import { ColumnRecipe } from "./column_recipes/index.js";
|
|
3
3
|
import { ColumnsSource } from "./column_providers/types.js";
|
|
4
|
+
import "./column_providers/index.js";
|
|
4
5
|
import { CollectionHandle, ColumnUniversalId, ColumnsCollectionDriverModel, ColumnsDiscoverOptions, ColumnsFilterOptions } from "@milaboratories/pl-model-common";
|
|
5
|
-
|
|
6
6
|
//#region src/columns/columns_collection.d.ts
|
|
7
|
-
interface ColumnsCollectionDeps {
|
|
7
|
+
export interface ColumnsCollectionDeps {
|
|
8
8
|
/** Render ctx used both for service resolution and for default ctx sources. */
|
|
9
9
|
readonly ctx?: GlobalCfgRenderCtx;
|
|
10
10
|
/** Override the resolved `columnsCollection` service — primarily for tests. */
|
|
@@ -18,7 +18,7 @@ interface ColumnsCollectionDeps {
|
|
|
18
18
|
* - `"current_block"` – main outputs + prerun (staging) accessors of the
|
|
19
19
|
* current block, when present.
|
|
20
20
|
*/
|
|
21
|
-
type ColumnsSourceShorthand = "result_pool" | "current_block";
|
|
21
|
+
export type ColumnsSourceShorthand = "result_pool" | "current_block";
|
|
22
22
|
/**
|
|
23
23
|
* Build a {@link ColumnsCollection} from sandbox-side source descriptors.
|
|
24
24
|
* Resolves the `columnsCollection` driver (either from `deps.driver` or via
|
|
@@ -29,8 +29,8 @@ type ColumnsSourceShorthand = "result_pool" | "current_block";
|
|
|
29
29
|
* `sources` accepts {@link ColumnsSourceShorthand} string literals
|
|
30
30
|
* (`"result_pool"`, `"current_block"`) for the common ctx-derived sources.
|
|
31
31
|
*/
|
|
32
|
-
declare function ColumnsCollection(sources?: (ColumnsCollection | ColumnsSource | ColumnsSourceShorthand)[], deps?: ColumnsCollectionDeps): ColumnsCollection;
|
|
33
|
-
declare function isColumnsCollection(value: unknown): value is ColumnsCollection;
|
|
32
|
+
export declare function ColumnsCollection(sources?: (ColumnsCollection | ColumnsSource | ColumnsSourceShorthand)[], deps?: ColumnsCollectionDeps): ColumnsCollection;
|
|
33
|
+
export declare function isColumnsCollection(value: unknown): value is ColumnsCollection;
|
|
34
34
|
/**
|
|
35
35
|
* Sandbox proxy over the host-side `ColumnsCollection` driver. The driver
|
|
36
36
|
* owns all column-set state; this object only carries an opaque
|
|
@@ -45,7 +45,7 @@ declare function isColumnsCollection(value: unknown): value is ColumnsCollection
|
|
|
45
45
|
* host — the host VM bridge pins it to the active render ctx, so the sandbox
|
|
46
46
|
* never has to manage refcounts.
|
|
47
47
|
*/
|
|
48
|
-
declare class ColumnsCollectionImpl {
|
|
48
|
+
export declare class ColumnsCollectionImpl {
|
|
49
49
|
readonly handle: CollectionHandle;
|
|
50
50
|
private readonly driver;
|
|
51
51
|
constructor(handle: CollectionHandle, driver: ColumnsCollectionDriverModel);
|
|
@@ -58,7 +58,6 @@ declare class ColumnsCollectionImpl {
|
|
|
58
58
|
filter(options: ColumnsFilterOptions): ColumnsCollection;
|
|
59
59
|
}
|
|
60
60
|
/** Public type alias — value of the same name is the factory function above. */
|
|
61
|
-
type ColumnsCollection = ColumnsCollectionImpl;
|
|
61
|
+
export type ColumnsCollection = ColumnsCollectionImpl;
|
|
62
62
|
//#endregion
|
|
63
|
-
export { ColumnsCollection, ColumnsCollectionDeps, ColumnsCollectionImpl, ColumnsSourceShorthand, isColumnsCollection };
|
|
64
63
|
//# sourceMappingURL=columns_collection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columns_collection.d.ts","names":[],"sources":["../../src/columns/columns_collection.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"columns_collection.d.ts","names":[],"sources":["../../src/columns/columns_collection.ts"],"mappings":";;;;;;iBAkBiB;;WAEN,MAAM;;WAEN,SAAS;;;;;;;;;;YAWR;;;;;;;;;;;wBAYI,kBACd,WAAW,oBAAoB,gBAAgB,2BAC/C,OAAO,wBACN;wBAQa,oBAAoB,iBAAiB,SAAS;;;;;;;;;;;;;;;qBAkBjD;WAEO,QAAQ;mBACP;EAFnB,YACkB,QAAQ,kBACP,QAAQ;EAG3B;EAIA;EAIA,gBAAgB;EAIhB,cAAc;EAMd,UAAU,QAAQ,gBAAgB,oBAAoB;EAOtD,SAAS,SAAS,yBAAyB;EAI3C,OAAO,SAAS,uBAAuB;;;YAM7B,oBAAoB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { GlobalCfgRenderCtx, PColumnDataUniversal } from "../render/internal.js";
|
|
2
2
|
import { TreeNodeAccessor } from "../render/accessor.js";
|
|
3
|
+
import "../render/index.js";
|
|
3
4
|
import { ColumnFieldStatus, ColumnRecipe, ColumnRecipeId, ColumnResolutionStatus } from "./column_recipes/types.js";
|
|
4
5
|
import { ColumnUniversalId, LeafEntry, PColumn, PColumnSpec, PObjectId, PlRef, SpecOverrides, SpecQuery } from "@milaboratories/pl-model-common";
|
|
5
|
-
|
|
6
6
|
//#region src/columns/data_column.d.ts
|
|
7
|
-
type DataColumnId = PObjectId;
|
|
8
|
-
type ColumnData = undefined | PColumnDataUniversal;
|
|
7
|
+
export type DataColumnId = PObjectId;
|
|
8
|
+
export type ColumnData = undefined | PColumnDataUniversal;
|
|
9
9
|
/**
|
|
10
10
|
* A {@link ColumnRecipe} that can be read directly in the sandbox: its
|
|
11
11
|
* {@link getData} is guaranteed to be consistent with {@link getSpec}.
|
|
@@ -21,7 +21,7 @@ type ColumnData = undefined | PColumnDataUniversal;
|
|
|
21
21
|
* class — which recipe classes exist is an implementation detail behind
|
|
22
22
|
* `recipe.id`.
|
|
23
23
|
*/
|
|
24
|
-
interface DataColumnRecipe<ID extends ColumnRecipeId = ColumnRecipeId> extends ColumnRecipe<ID> {
|
|
24
|
+
export interface DataColumnRecipe<ID extends ColumnRecipeId = ColumnRecipeId> extends ColumnRecipe<ID> {
|
|
25
25
|
/** Column data, consistent with {@link ColumnRecipe.getSpec}. */
|
|
26
26
|
getData(): ColumnData;
|
|
27
27
|
}
|
|
@@ -36,7 +36,7 @@ interface DataColumnRecipe<ID extends ColumnRecipeId = ColumnRecipeId> extends C
|
|
|
36
36
|
* when partial absence should be surfaced to the user rather than silently
|
|
37
37
|
* producing an empty result.
|
|
38
38
|
*/
|
|
39
|
-
declare class ColumnAbsentError extends Error {
|
|
39
|
+
export declare class ColumnAbsentError extends Error {
|
|
40
40
|
readonly id: ColumnUniversalId;
|
|
41
41
|
constructor(id: ColumnUniversalId);
|
|
42
42
|
}
|
|
@@ -49,7 +49,7 @@ declare class ColumnAbsentError extends Error {
|
|
|
49
49
|
* Internal — consumers hold the {@link DataColumnRecipe} interface and construct
|
|
50
50
|
* through the {@link DataColumnRecipe} dispatcher.
|
|
51
51
|
*/
|
|
52
|
-
declare class DataColumnImpl implements DataColumnRecipe<PObjectId> {
|
|
52
|
+
export declare class DataColumnImpl implements DataColumnRecipe<PObjectId> {
|
|
53
53
|
readonly id: PObjectId;
|
|
54
54
|
private readonly options;
|
|
55
55
|
private specCache?;
|
|
@@ -76,9 +76,7 @@ declare class DataColumnImpl implements DataColumnRecipe<PObjectId> {
|
|
|
76
76
|
* and the column did not appear — the column will not exist in this ctx.
|
|
77
77
|
* Data and dataStatus stay lazy.
|
|
78
78
|
*/
|
|
79
|
-
static fromId(id: PObjectId, {
|
|
80
|
-
ctx
|
|
81
|
-
}?: {
|
|
79
|
+
static fromId(id: PObjectId, { ctx }?: {
|
|
82
80
|
ctx?: GlobalCfgRenderCtx;
|
|
83
81
|
}): undefined | DataColumnRecipe<PObjectId>;
|
|
84
82
|
/** {@link PlRef} wrapper over {@link fromId}. */
|
|
@@ -100,9 +98,7 @@ declare class DataColumnImpl implements DataColumnRecipe<PObjectId> {
|
|
|
100
98
|
* when the id has no entry — only then we can say `absent` instead of
|
|
101
99
|
* `resolving`.
|
|
102
100
|
*/
|
|
103
|
-
static getStatusById(id: PObjectId, {
|
|
104
|
-
ctx
|
|
105
|
-
}?: {
|
|
101
|
+
static getStatusById(id: PObjectId, { ctx }?: {
|
|
106
102
|
ctx?: GlobalCfgRenderCtx;
|
|
107
103
|
}): ColumnResolutionStatus;
|
|
108
104
|
/** {@link PlRef} wrapper over {@link getStatusById}. */
|
|
@@ -113,7 +109,7 @@ declare class DataColumnImpl implements DataColumnRecipe<PObjectId> {
|
|
|
113
109
|
static getStatusByAccessor(entry: LeafEntry<TreeNodeAccessor>): ColumnResolutionStatus;
|
|
114
110
|
}
|
|
115
111
|
/** Anything the {@link DataColumnRecipe} dispatcher can build a leaf from. */
|
|
116
|
-
type DataColumnSource = PObjectId | PlRef | LeafEntry<TreeNodeAccessor> | PColumn<ColumnData> | DataColumnRecipe<PObjectId>;
|
|
112
|
+
export type DataColumnSource = PObjectId | PlRef | LeafEntry<TreeNodeAccessor> | PColumn<ColumnData> | DataColumnRecipe<PObjectId>;
|
|
117
113
|
/**
|
|
118
114
|
* Unified dispatcher — picks the right `DataColumnImpl.fromX` by source
|
|
119
115
|
* shape. For ambiguous inputs callers can still use the explicit factories
|
|
@@ -132,7 +128,7 @@ declare function DataColumnDispatch(source: DataColumnSource, opts?: {
|
|
|
132
128
|
declare function DataColumnGetStatus(source: DataColumnSource, opts?: {
|
|
133
129
|
ctx?: GlobalCfgRenderCtx;
|
|
134
130
|
}): ColumnResolutionStatus;
|
|
135
|
-
declare const DataColumn: typeof DataColumnDispatch & {
|
|
131
|
+
export declare const DataColumn: typeof DataColumnDispatch & {
|
|
136
132
|
fromId: typeof DataColumnImpl.fromId;
|
|
137
133
|
fromPlRef: typeof DataColumnImpl.fromPlRef;
|
|
138
134
|
fromAccessor: typeof DataColumnImpl.fromAccessor;
|
|
@@ -146,7 +142,7 @@ declare const DataColumn: typeof DataColumnDispatch & {
|
|
|
146
142
|
* Type-guard narrowing to a bare leaf — a {@link DataColumnRecipe} whose `id` is a
|
|
147
143
|
* plain {@link PObjectId}.
|
|
148
144
|
*/
|
|
149
|
-
declare function isDataColumn(value: unknown): value is DataColumnRecipe<PObjectId>;
|
|
145
|
+
export declare function isDataColumn(value: unknown): value is DataColumnRecipe<PObjectId>;
|
|
150
146
|
//#endregion
|
|
151
|
-
export {
|
|
147
|
+
export type { ColumnFieldStatus, ColumnResolutionStatus };
|
|
152
148
|
//# sourceMappingURL=data_column.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data_column.d.ts","names":[],"sources":["../../src/columns/data_column.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"data_column.d.ts","names":[],"sources":["../../src/columns/data_column.ts"],"mappings":";;;;;;YA2BY,eAAe;YACf,yBAAyB;;;;;;;;;;;;;;;;iBAkBpB,iBACf,WAAW,iBAAiB,wBACpB,aAAa;;EAErB,WAAW;;;;;;;;;;;;;qBAcA,0BAA0B;WACT,IAAI;EAAhC,YAA4B,IAAI;;;;;;;;;;;qBAerB,0BAA0B,iBAAiB;WAMpC,IAAI;mBACH;UANX;UACA;UACA;UAED;;EAUP,oBAAoB;EAIpB,WAAW;;EAQX,YAAY;EAIZ,WAAW;EAKX,iBAAiB;;;;;;EAYjB,UAAU,WAAW,gBAAgB;;;;;;;;SAW9B,OACL,IAAI,aACF;IAAS,MAAM;kBACJ,iBAAiB;;SAqBzB,UAAU,KAAK,oBAAoB,iBAAiB;;;;;;SASpD,aAAa,OAAO,UAAU,gCAAgC,iBAAiB;;;;;SAkB/E,WACL,QAAQ,QAAQ,cAAc,iBAAiB,aAC9C,iBAAiB;;;;;;;SAoBb,cACL,IAAI,aACF;IAAS,MAAM;MAChB;;SAQI,iBACL,KAAK,OACL;IAAQ,MAAM;MACb;;SAKI,oBAAoB,OAAO,UAAU,oBAAoB;;;YAMtD,mBACR,YACA,QACA,UAAU,oBACV,QAAQ,cACR,iBAAiB;;;;;;;iBAQZ,mBACP,QAAQ,kBACR;EAAQ,MAAM;gBACD,iBAAiB;;;;;;;iBAkBvB,oBACP,QAAQ,kBACR;EAAQ,MAAM;IACb;qBAUU,mBAAU;;;;;;;;;;;;;;wBAeP,aAAa,iBAAiB,SAAS,iBAAiB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GlobalCfgRenderCtx } from "../render/internal.js";
|
|
2
2
|
import { ColumnsSource } from "./column_providers/types.js";
|
|
3
|
+
import "./column_providers/index.js";
|
|
3
4
|
import { ColumnsCollection } from "./columns_collection.js";
|
|
4
5
|
import { AxisId } from "@milaboratories/pl-model-common";
|
|
5
|
-
|
|
6
6
|
//#region src/columns/derive_axis_values_labels.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Build an `axisValuesLabels` callback by discovering `pl7.app/label` columns
|
|
@@ -22,9 +22,8 @@ import { AxisId } from "@milaboratories/pl-model-common";
|
|
|
22
22
|
* - label columns whose data resource type isn't `PColumnData/Json` /
|
|
23
23
|
* `PColumnData/JsonPartitioned`.
|
|
24
24
|
*/
|
|
25
|
-
declare function deriveAxisValuesLabels(source?: ColumnsCollection | (ColumnsCollection | ColumnsSource)[], opts?: {
|
|
25
|
+
export declare function deriveAxisValuesLabels(source?: ColumnsCollection | (ColumnsCollection | ColumnsSource)[], opts?: {
|
|
26
26
|
ctx?: GlobalCfgRenderCtx;
|
|
27
27
|
}): (axisId: AxisId) => Record<string | number, string> | undefined;
|
|
28
28
|
//#endregion
|
|
29
|
-
export { deriveAxisValuesLabels };
|
|
30
29
|
//# sourceMappingURL=derive_axis_values_labels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive_axis_values_labels.d.ts","names":[],"sources":["../../src/columns/derive_axis_values_labels.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"derive_axis_values_labels.d.ts","names":[],"sources":["../../src/columns/derive_axis_values_labels.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;wBA6BgB,uBACd,SAAS,qBAAqB,oBAAoB,kBAClD;EAAS,MAAM;KACb,QAAQ,WAAW"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Column } from "./column.js";
|
|
2
2
|
import { ColumnRecipe } from "./column_recipes/index.js";
|
|
3
3
|
import { AxisId } from "@milaboratories/pl-model-common";
|
|
4
|
-
|
|
5
4
|
//#region src/columns/split_by_axes.d.ts
|
|
6
|
-
interface SplitAxis {
|
|
5
|
+
export interface SplitAxis {
|
|
7
6
|
/** Index of the axis in the column's axesSpec to split by. */
|
|
8
7
|
readonly idx: number;
|
|
9
8
|
}
|
|
10
|
-
interface SplitByAxesOpts {
|
|
9
|
+
export interface SplitByAxesOpts {
|
|
11
10
|
/**
|
|
12
11
|
* Resolve axis values to human-readable labels.
|
|
13
12
|
*
|
|
@@ -41,7 +40,6 @@ interface SplitByAxesOpts {
|
|
|
41
40
|
* Returns `undefined` when any input's `getData()` is not a
|
|
42
41
|
* {@link TreeNodeAccessor} — partition inspection is not yet possible.
|
|
43
42
|
*/
|
|
44
|
-
declare function splitByAxes(inputs: Column[], splitAxes: SplitAxis[], opts?: SplitByAxesOpts): ColumnRecipe[] | undefined;
|
|
43
|
+
export declare function splitByAxes(inputs: Column[], splitAxes: SplitAxis[], opts?: SplitByAxesOpts): ColumnRecipe[] | undefined;
|
|
45
44
|
//#endregion
|
|
46
|
-
export { SplitAxis, SplitByAxesOpts, splitByAxes };
|
|
47
45
|
//# sourceMappingURL=split_by_axes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split_by_axes.d.ts","names":[],"sources":["../../src/columns/split_by_axes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"split_by_axes.d.ts","names":[],"sources":["../../src/columns/split_by_axes.ts"],"mappings":";;;;iBAwBiB;;WAEN;;iBAGM;;;;;;;;;EASf,oBAAoB,QAAQ,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;wBA8BrC,YACd,QAAQ,UACR,WAAW,aACX,OAAO,kBACN"}
|
package/dist/columns/utils.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { DataColumnRecipe } from "./data_column.js";
|
|
|
5
5
|
import { ColumnsSource } from "./column_providers/types.js";
|
|
6
6
|
import { ColumnsCollection } from "./columns_collection.js";
|
|
7
7
|
import { AxisQualification, ColumnUniversalId, PObjectId } from "@milaboratories/pl-model-common";
|
|
8
|
-
|
|
9
8
|
//#region src/columns/utils.d.ts
|
|
10
9
|
/**
|
|
11
10
|
* PObjectIds of every non-hit column referenced by `recipe.getQuery()`,
|
|
@@ -16,13 +15,13 @@ import { AxisQualification, ColumnUniversalId, PObjectId } from "@milaboratories
|
|
|
16
15
|
* Pure query walk — no registry access. Use {@link collectLinkerColumns} for
|
|
17
16
|
* the resolved {@link DataColumnRecipe} variant.
|
|
18
17
|
*/
|
|
19
|
-
declare function collectLinkerIds(recipe: ColumnRecipe): PObjectId[];
|
|
18
|
+
export declare function collectLinkerIds(recipe: ColumnRecipe): PObjectId[];
|
|
20
19
|
/**
|
|
21
20
|
* {@link collectLinkerIds} resolved against the ambient context as
|
|
22
21
|
* {@link DataColumnRecipe} leaves. Throws if any id fails to resolve —
|
|
23
22
|
* matches the contract of the legacy `resolveLinkers` it replaces.
|
|
24
23
|
*/
|
|
25
|
-
declare function collectLinkerColumns(recipe: ColumnRecipe, opts?: {
|
|
24
|
+
export declare function collectLinkerColumns(recipe: ColumnRecipe, opts?: {
|
|
26
25
|
ctx?: GlobalCfgRenderCtx;
|
|
27
26
|
}): DataColumnRecipe<PObjectId>[];
|
|
28
27
|
/**
|
|
@@ -33,7 +32,7 @@ declare function collectLinkerColumns(recipe: ColumnRecipe, opts?: {
|
|
|
33
32
|
* `getInner()` until it finds a {@link ColumnDiscoveredRecipe}; otherwise
|
|
34
33
|
* returns `[]`. Pure recipe walk — no query-tree introspection.
|
|
35
34
|
*/
|
|
36
|
-
declare function hitQualifications(recipe: ColumnRecipe): readonly AxisQualification[];
|
|
35
|
+
export declare function hitQualifications(recipe: ColumnRecipe): readonly AxisQualification[];
|
|
37
36
|
/**
|
|
38
37
|
* Per-primary-column axis qualifications for the recipe — applied to the
|
|
39
38
|
* outer primary anchors on this recipe's group side. Keyed by the external
|
|
@@ -41,7 +40,7 @@ declare function hitQualifications(recipe: ColumnRecipe): readonly AxisQualifica
|
|
|
41
40
|
*
|
|
42
41
|
* Same walk strategy as {@link hitQualifications}.
|
|
43
42
|
*/
|
|
44
|
-
declare function queriesQualifications(recipe: ColumnRecipe): Readonly<Record<PObjectId, AxisQualification[]>>;
|
|
43
|
+
export declare function queriesQualifications(recipe: ColumnRecipe): Readonly<Record<PObjectId, AxisQualification[]>>;
|
|
45
44
|
/**
|
|
46
45
|
* Whether the recipe's underlying data resources actually carry bytes —
|
|
47
46
|
* strictly stronger than `getDataStatus() === "present"`, which only tells
|
|
@@ -56,7 +55,7 @@ declare function queriesQualifications(recipe: ColumnRecipe): Readonly<Record<PO
|
|
|
56
55
|
* "not yet ready") rather than throwing — this is a UI-facing predicate, not
|
|
57
56
|
* a contract assertion.
|
|
58
57
|
*/
|
|
59
|
-
declare function hasColumnData(recipe: ColumnRecipe, opts?: {
|
|
58
|
+
export declare function hasColumnData(recipe: ColumnRecipe, opts?: {
|
|
60
59
|
ctx?: GlobalCfgRenderCtx;
|
|
61
60
|
}): boolean;
|
|
62
61
|
/**
|
|
@@ -78,13 +77,13 @@ declare function hasColumnData(recipe: ColumnRecipe, opts?: {
|
|
|
78
77
|
* through the whole wrapper chain, so no class walk is involved and foreign
|
|
79
78
|
* `ColumnRecipe` implementations are handled too.
|
|
80
79
|
*/
|
|
81
|
-
declare function hasSingleDataColumn(recipe: ColumnRecipe): boolean;
|
|
80
|
+
export declare function hasSingleDataColumn(recipe: ColumnRecipe): boolean;
|
|
82
81
|
/**
|
|
83
82
|
* @deprecated Renamed to {@link hasSingleDataColumn} — "leaf" read as "you can
|
|
84
83
|
* get data out of it", which is a different question (see
|
|
85
84
|
* {@link hasReachableData}). Same semantics.
|
|
86
85
|
*/
|
|
87
|
-
declare const isLeafColumn: typeof hasSingleDataColumn;
|
|
86
|
+
export declare const isLeafColumn: typeof hasSingleDataColumn;
|
|
88
87
|
/**
|
|
89
88
|
* Whether the column's data can be read here and now, consistent with its
|
|
90
89
|
* spec — narrows to {@link DataColumnRecipe}, which exposes `getData()`.
|
|
@@ -101,9 +100,9 @@ declare const isLeafColumn: typeof hasSingleDataColumn;
|
|
|
101
100
|
* result narrows to a value that really has the method, and there is no
|
|
102
101
|
* throwing path behind the guard.
|
|
103
102
|
*/
|
|
104
|
-
declare function hasReachableData(recipe: ColumnRecipe): recipe is DataColumnRecipe;
|
|
103
|
+
export declare function hasReachableData(recipe: ColumnRecipe): recipe is DataColumnRecipe;
|
|
105
104
|
/** Drop-down option built over a {@link ColumnsCollection} — universal-id valued. */
|
|
106
|
-
type ColumnOption = {
|
|
105
|
+
export type ColumnOption = {
|
|
107
106
|
readonly id: ColumnUniversalId;
|
|
108
107
|
readonly label: string;
|
|
109
108
|
};
|
|
@@ -115,7 +114,6 @@ type ColumnOption = {
|
|
|
115
114
|
* accessor, column array, or `"result_pool"` / `"current_block"` shorthand)
|
|
116
115
|
* to be wrapped on the fly.
|
|
117
116
|
*/
|
|
118
|
-
declare function deriveColumnOptions(source: ColumnsCollection | ColumnsSource[], labelOptions?: DeriveLabelsOptions): ColumnOption[];
|
|
117
|
+
export declare function deriveColumnOptions(source: ColumnsCollection | ColumnsSource[], labelOptions?: DeriveLabelsOptions): ColumnOption[];
|
|
119
118
|
//#endregion
|
|
120
|
-
export { ColumnOption, collectLinkerColumns, collectLinkerIds, deriveColumnOptions, hasColumnData, hasReachableData, hasSingleDataColumn, hitQualifications, isLeafColumn, queriesQualifications };
|
|
121
119
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/columns/utils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/columns/utils.ts"],"mappings":";;;;;;;;;;;;;;;;;wBAiCgB,iBAAiB,QAAQ,eAAe;;;;;;wBAsBxC,qBACd,QAAQ,cACR;EAAQ,MAAM;IACb,iBAAiB;;;;;;;;;wBAgBJ,kBAAkB,QAAQ,wBAAwB;;;;;;;;wBAYlD,sBACd,QAAQ,eACP,SAAS,OAAO,WAAW;;;;;;;;;;;;;;;wBAmBd,cACd,QAAQ,cACR;EAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;wBAiEA,oBAAoB,QAAQ;;;;;;qBAS/B,qBAAY;;;;;;;;;;;;;;;;;wBAkBT,iBAAiB,QAAQ,eAAe,UAAU;;YAKtD;WACD,IAAI;WACJ;;;;;;;;;;wBAWK,oBACd,QAAQ,oBAAoB,iBAC5B,eAAc,sBACb"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PColumnDataUniversal } from "../render/internal.js";
|
|
2
2
|
import { RenderCtxBase } from "../render/api.js";
|
|
3
|
+
import "../render/index.js";
|
|
3
4
|
import { AxesVault, enrichCompatible, getAvailableWithLinkersAxes } from "../pframe_utils/axes.js";
|
|
4
5
|
import { PColumn, PColumnSpec, PFrameHandle } from "@milaboratories/pl-model-common";
|
|
5
|
-
|
|
6
6
|
//#region src/components/PFrameForGraphs.d.ts
|
|
7
|
-
declare function isHiddenFromGraphColumn(column: PColumnSpec): boolean;
|
|
8
|
-
declare function isHiddenFromUIColumn(column: PColumnSpec): boolean;
|
|
7
|
+
export declare function isHiddenFromGraphColumn(column: PColumnSpec): boolean;
|
|
8
|
+
export declare function isHiddenFromUIColumn(column: PColumnSpec): boolean;
|
|
9
9
|
/**
|
|
10
10
|
The aim of createPFrameForGraphs: to create pframe with block’s columns and all compatible columns from result pool
|
|
11
11
|
(including linker columns and all label columns).
|
|
@@ -18,7 +18,7 @@ declare function isHiddenFromUIColumn(column: PColumnSpec): boolean;
|
|
|
18
18
|
of partially matched axis we add to pframe a copy of this column with modified axis (with filled missed domains)
|
|
19
19
|
and modified label (with added domain values in case if more than one copy with different domains exist).
|
|
20
20
|
*/
|
|
21
|
-
declare function createPFrameForGraphs<A, U>(ctx: RenderCtxBase<A, U>, blockColumns?: PColumn<undefined | PColumnDataUniversal>[]): PFrameHandle | undefined;
|
|
21
|
+
export declare function createPFrameForGraphs<A, U>(ctx: RenderCtxBase<A, U>, blockColumns?: PColumn<undefined | PColumnDataUniversal>[]): PFrameHandle | undefined;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { type AxesVault,
|
|
23
|
+
export { type AxesVault, enrichCompatible, getAvailableWithLinkersAxes };
|
|
24
24
|
//# sourceMappingURL=PFrameForGraphs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PFrameForGraphs.d.ts","names":[],"sources":["../../src/components/PFrameForGraphs.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"PFrameForGraphs.d.ts","names":[],"sources":["../../src/components/PFrameForGraphs.ts"],"mappings":";;;;;;wBAOgB,wBAAwB,QAAQ;wBAIhC,qBAAqB,QAAQ;;;;;;;;;;;;;wBAgB7B,sBAAsB,GAAG,GACvC,KAAK,cAAc,GAAG,IACtB,eAAe,oBAAoB,0BAClC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { SUniversalPColumnId } from "@milaboratories/pl-model-common";
|
|
2
|
-
|
|
3
2
|
//#region src/components/PlAnnotations/filter.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Represents an equals predicate for pattern filtering.
|
|
6
5
|
* Checks if the pattern exactly matches the provided value.
|
|
7
6
|
* Can handle both string literals and biological sequences with wildcards.
|
|
8
7
|
*/
|
|
9
|
-
type PatternPredicateEquals = {
|
|
10
|
-
type: "equals";
|
|
8
|
+
export type PatternPredicateEquals = {
|
|
9
|
+
type: "equals";
|
|
10
|
+
/** The exact pattern value to match */
|
|
11
11
|
value: string;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
@@ -15,21 +15,24 @@ type PatternPredicateEquals = {
|
|
|
15
15
|
* Checks if the pattern contains the provided subsequence.
|
|
16
16
|
* Can handle both string literals and biological sequences with wildcards.
|
|
17
17
|
*/
|
|
18
|
-
type PatternPredicateContainSubsequence = {
|
|
19
|
-
type: "containSubsequence";
|
|
18
|
+
export type PatternPredicateContainSubsequence = {
|
|
19
|
+
type: "containSubsequence";
|
|
20
|
+
/** The subpattern to search for within the target pattern */
|
|
20
21
|
value: string;
|
|
21
22
|
};
|
|
22
23
|
/**
|
|
23
24
|
* Union type for pattern predicates that can be applied to both sequence and string data.
|
|
24
25
|
*/
|
|
25
|
-
type PatternPredicate = PatternPredicateEquals | PatternPredicateContainSubsequence;
|
|
26
|
+
export type PatternPredicate = PatternPredicateEquals | PatternPredicateContainSubsequence;
|
|
26
27
|
/**
|
|
27
28
|
* Filter for pattern data, specifying the column to filter and the predicate to apply.
|
|
28
29
|
* Works with both biological sequences (with wildcards) and regular strings.
|
|
29
30
|
*/
|
|
30
|
-
type PatternFilter = {
|
|
31
|
-
type: "pattern";
|
|
32
|
-
|
|
31
|
+
export type PatternFilter = {
|
|
32
|
+
type: "pattern";
|
|
33
|
+
/** The column identifier to apply the filter to */
|
|
34
|
+
column: SUniversalPColumnId;
|
|
35
|
+
/** The predicate defining the filtering logic */
|
|
33
36
|
predicate: PatternPredicate;
|
|
34
37
|
};
|
|
35
38
|
/**
|
|
@@ -43,9 +46,11 @@ type PatternFilter = {
|
|
|
43
46
|
*
|
|
44
47
|
* The ranked values can be used in numerical comparison filters.
|
|
45
48
|
*/
|
|
46
|
-
type ValueRank = {
|
|
47
|
-
transformer: "rank";
|
|
48
|
-
|
|
49
|
+
export type ValueRank = {
|
|
50
|
+
transformer: "rank";
|
|
51
|
+
/** The column identifier to apply the ranking to */
|
|
52
|
+
column: SUniversalPColumnId;
|
|
53
|
+
/** If true, sorts highest values first (highest value gets rank 1) */
|
|
49
54
|
descending?: true;
|
|
50
55
|
};
|
|
51
56
|
/**
|
|
@@ -58,9 +63,11 @@ type ValueRank = {
|
|
|
58
63
|
*
|
|
59
64
|
* The cumulative values can be used in numerical comparison filters.
|
|
60
65
|
*/
|
|
61
|
-
type SortedCumulativeSum = {
|
|
62
|
-
transformer: "sortedCumulativeSum";
|
|
63
|
-
|
|
66
|
+
export type SortedCumulativeSum = {
|
|
67
|
+
transformer: "sortedCumulativeSum";
|
|
68
|
+
/** The column identifier to apply the cumulative sum to */
|
|
69
|
+
column: SUniversalPColumnId;
|
|
70
|
+
/** If true, sorts values in descending order before calculating the cumulative sum */
|
|
64
71
|
descending?: true;
|
|
65
72
|
};
|
|
66
73
|
/**
|
|
@@ -72,8 +79,9 @@ type SortedCumulativeSum = {
|
|
|
72
79
|
* The log10-transformed values can be used in numerical comparison filters.
|
|
73
80
|
* Note: The behavior for non-positive input values (<= 0) results in -Infinity.
|
|
74
81
|
*/
|
|
75
|
-
type Log10 = {
|
|
76
|
-
transformer: "log10";
|
|
82
|
+
export type Log10 = {
|
|
83
|
+
transformer: "log10";
|
|
84
|
+
/** The column identifier to apply the log10 transformation to */
|
|
77
85
|
column: SUniversalPColumnId;
|
|
78
86
|
};
|
|
79
87
|
/**
|
|
@@ -82,7 +90,7 @@ type Log10 = {
|
|
|
82
90
|
* operations such as "top N" or "first X%" queries.
|
|
83
91
|
* Any NA values are propagated to the transformed column, and ignored in ranks and cumulative sums.
|
|
84
92
|
*/
|
|
85
|
-
type TransformedColumn = ValueRank | SortedCumulativeSum | Log10;
|
|
93
|
+
export type TransformedColumn = ValueRank | SortedCumulativeSum | Log10;
|
|
86
94
|
/**
|
|
87
95
|
* Defines a numerical comparison between two values that can be column references or constants.
|
|
88
96
|
*
|
|
@@ -100,26 +108,31 @@ type TransformedColumn = ValueRank | SortedCumulativeSum | Log10;
|
|
|
100
108
|
* - The minDiff parameter can only be used when both sides are columns or transformed columns
|
|
101
109
|
* - Use allowEqual=true to include equality in the comparison (<=)
|
|
102
110
|
*/
|
|
103
|
-
type NumericalComparisonFilter = {
|
|
104
|
-
type: "numericalComparison";
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
111
|
+
export type NumericalComparisonFilter = {
|
|
112
|
+
type: "numericalComparison";
|
|
113
|
+
/** The first column to compare (left side of comparison) */
|
|
114
|
+
lhs: SUniversalPColumnId | TransformedColumn | number;
|
|
115
|
+
/** The second column to compare (right side of comparison) */
|
|
116
|
+
rhs: SUniversalPColumnId | TransformedColumn | number;
|
|
117
|
+
/** The minimum difference between lhs and rhs values */
|
|
118
|
+
minDiff?: number;
|
|
119
|
+
/** Whether equality is permitted in the comparison */
|
|
108
120
|
allowEqual?: true;
|
|
109
121
|
};
|
|
110
122
|
/**
|
|
111
123
|
* Represents a filter that checks if a column's values are NA (not available).
|
|
112
124
|
* This filter is useful for filtering out records where a specific column has no value / clonotype is not present.
|
|
113
125
|
*/
|
|
114
|
-
type IsNA = {
|
|
115
|
-
type: "isNA";
|
|
126
|
+
export type IsNA = {
|
|
127
|
+
type: "isNA";
|
|
128
|
+
/** The column identifier to check for NA values */
|
|
116
129
|
column: SUniversalPColumnId;
|
|
117
130
|
};
|
|
118
131
|
/**
|
|
119
132
|
* Represents a logical OR operation between multiple filters.
|
|
120
133
|
* A record matches if at least one of the contained filters matches.
|
|
121
134
|
*/
|
|
122
|
-
interface OrFilter {
|
|
135
|
+
export interface OrFilter {
|
|
123
136
|
type: "or";
|
|
124
137
|
/** Array of filters to combine with OR logic */
|
|
125
138
|
filters: AnnotationFilter[];
|
|
@@ -128,7 +141,7 @@ interface OrFilter {
|
|
|
128
141
|
* Represents a logical AND operation between multiple filters.
|
|
129
142
|
* A record matches only if all of the contained filters match.
|
|
130
143
|
*/
|
|
131
|
-
interface AndFilter {
|
|
144
|
+
export interface AndFilter {
|
|
132
145
|
type: "and";
|
|
133
146
|
/** Array of filters to combine with AND logic */
|
|
134
147
|
filters: AnnotationFilter[];
|
|
@@ -137,7 +150,7 @@ interface AndFilter {
|
|
|
137
150
|
* Represents a logical NOT operation on a filter.
|
|
138
151
|
* A record matches if it does not match the contained filter.
|
|
139
152
|
*/
|
|
140
|
-
interface NotFilter {
|
|
153
|
+
export interface NotFilter {
|
|
141
154
|
type: "not";
|
|
142
155
|
/** The filter to negate */
|
|
143
156
|
filter: AnnotationFilter;
|
|
@@ -145,27 +158,29 @@ interface NotFilter {
|
|
|
145
158
|
/**
|
|
146
159
|
* Union type for all supported annotation filters.
|
|
147
160
|
*/
|
|
148
|
-
type AnnotationFilter = IsNA | PatternFilter | NumericalComparisonFilter | OrFilter | AndFilter | NotFilter;
|
|
161
|
+
export type AnnotationFilter = IsNA | PatternFilter | NumericalComparisonFilter | OrFilter | AndFilter | NotFilter;
|
|
149
162
|
/**
|
|
150
163
|
* Represents a single step in the annotation process.
|
|
151
164
|
* Each step consists of a filter to select records and a label to assign to those records.
|
|
152
165
|
*/
|
|
153
|
-
type AnnotationStep = {
|
|
154
|
-
/** The filter to apply for selecting records */
|
|
166
|
+
export type AnnotationStep = {
|
|
167
|
+
/** The filter to apply for selecting records */
|
|
168
|
+
filter: AnnotationFilter;
|
|
169
|
+
/** The label to assign to records that match the filter */
|
|
155
170
|
label: string;
|
|
156
171
|
};
|
|
157
172
|
/**
|
|
158
173
|
* Specifies which entity to annotate: either entire clonotypes or clonotypes within specific samples.
|
|
159
174
|
* This choice affects how filtering and labeling will be applied across your dataset.
|
|
160
175
|
*/
|
|
161
|
-
type AnnotationMode =
|
|
176
|
+
export type AnnotationMode =
|
|
162
177
|
/**
|
|
163
178
|
* Annotates entire clonotypes globally, regardless of which samples they appear in.
|
|
164
179
|
* A clonotype will either be fully included or excluded across all samples.
|
|
165
180
|
* The resulting column will have the following shape:
|
|
166
181
|
* [clonotype_key] -> label
|
|
167
182
|
*/
|
|
168
|
-
"byClonotype"
|
|
183
|
+
"byClonotype" |
|
|
169
184
|
/**
|
|
170
185
|
* Annotates clonotypes independently within each sample.
|
|
171
186
|
* This allows sample-specific filtering, where a clonotype might be included in one sample
|
|
@@ -175,22 +190,26 @@ type AnnotationMode =
|
|
|
175
190
|
* The resulting column will have the following shape:
|
|
176
191
|
* [sample_id, clonotype_key] -> label
|
|
177
192
|
*/
|
|
178
|
-
|
|
193
|
+
"bySampleAndClonotype";
|
|
179
194
|
/**
|
|
180
195
|
* Represents a complete annotation configuration.
|
|
181
196
|
* Contains a series of annotation steps that are applied in sequence.
|
|
182
197
|
* Annotations are applied from lower indices to higher indices (earlier steps are processed first),
|
|
183
198
|
* with later steps taking precedence when multiple steps match the same record.
|
|
184
199
|
*/
|
|
185
|
-
type AnnotationScript = {
|
|
186
|
-
/** The title of the annotation */
|
|
187
|
-
|
|
200
|
+
export type AnnotationScript = {
|
|
201
|
+
/** The title of the annotation */
|
|
202
|
+
title: string;
|
|
203
|
+
/** The mode of annotation to apply */
|
|
204
|
+
mode: AnnotationMode;
|
|
205
|
+
/** Ordered list of annotation steps to apply */
|
|
188
206
|
steps: AnnotationStep[];
|
|
189
207
|
};
|
|
190
|
-
type AnnotationScript2<S extends AnnotationStep> = {
|
|
191
|
-
/** The mode of annotation to apply */
|
|
208
|
+
export type AnnotationScript2<S extends AnnotationStep> = {
|
|
209
|
+
/** The mode of annotation to apply */
|
|
210
|
+
mode: AnnotationMode;
|
|
211
|
+
/** Ordered list of annotation steps to apply */
|
|
192
212
|
steps: S[];
|
|
193
213
|
};
|
|
194
214
|
//#endregion
|
|
195
|
-
export { AndFilter, AnnotationFilter, AnnotationMode, AnnotationScript, AnnotationScript2, AnnotationStep, IsNA, Log10, NotFilter, NumericalComparisonFilter, OrFilter, PatternFilter, PatternPredicate, PatternPredicateContainSubsequence, PatternPredicateEquals, SortedCumulativeSum, TransformedColumn, ValueRank };
|
|
196
215
|
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","names":[],"sources":["../../../src/components/PlAnnotations/filter.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter.d.ts","names":[],"sources":["../../../src/components/PlAnnotations/filter.ts"],"mappings":";;;;;;;YAWY;EACV;;EAEA;;;;;;;YAQU;EACV;;EAEA;;;;;YAMU,mBAAmB,yBAAyB;;;;;YAM5C;EACV;;EAEA,QAAQ;;EAER,WAAW;;;;;;;;;;;;;YAkBD;EACV;;EAEA,QAAQ;;EAER;;;;;;;;;;;;YAaU;EACV;;EAEA,QAAQ;;EAER;;;;;;;;;;;YAYU;EACV;;EAEA,QAAQ;;;;;;;;YASE,oBAAoB,YAAY,sBAAsB;;;;;;;;;;;;;;;;;;YAmBtD;EACV;;EAEA,KAAK,sBAAsB;;EAE3B,KAAK,sBAAsB;;EAE3B;;EAEA;;;;;;YAOU;EACV;;EAEA,QAAQ;;;;;;iBAWO;EACf;;EAEA,SAAS;;;;;;iBAOM;EACf;;EAEA,SAAS;;;;;;iBAOM;EACf;;EAEA,QAAQ;;;;;YAME,mBACR,OACA,gBACA,4BACA,WACA,YACA;;;;;YAUQ;;EAEV,QAAQ;;EAER;;;;;;YAOU;;;;;;;;;;;;;;;;;;;;;;;;YAyBA;;EAEV;;EAEA,MAAM;;EAEN,OAAO;;YAGG,kBAAkB,UAAU;;EAEtC,MAAM;;EAEN,OAAO"}
|