@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.
Files changed (189) hide show
  1. package/dist/annotations/converter.d.ts +1 -3
  2. package/dist/annotations/converter.d.ts.map +1 -1
  3. package/dist/annotations/types.d.ts +5 -6
  4. package/dist/annotations/types.d.ts.map +1 -1
  5. package/dist/bconfig/lambdas.d.ts +10 -10
  6. package/dist/bconfig/lambdas.d.ts.map +1 -1
  7. package/dist/bconfig/normalization.d.ts +3 -5
  8. package/dist/bconfig/normalization.d.ts.map +1 -1
  9. package/dist/bconfig/types.d.ts +4 -5
  10. package/dist/bconfig/types.d.ts.map +1 -1
  11. package/dist/bconfig/util.d.ts +1 -3
  12. package/dist/bconfig/util.d.ts.map +1 -1
  13. package/dist/bconfig/v3.d.ts +3 -5
  14. package/dist/bconfig/v3.d.ts.map +1 -1
  15. package/dist/block_api_v1.d.ts +2 -4
  16. package/dist/block_api_v1.d.ts.map +1 -1
  17. package/dist/block_api_v2.d.ts +1 -3
  18. package/dist/block_api_v2.d.ts.map +1 -1
  19. package/dist/block_api_v3.d.ts +1 -3
  20. package/dist/block_api_v3.d.ts.map +1 -1
  21. package/dist/block_migrations.d.ts +20 -36
  22. package/dist/block_migrations.d.ts.map +1 -1
  23. package/dist/block_model.d.ts +10 -10
  24. package/dist/block_model.d.ts.map +1 -1
  25. package/dist/block_state_patch.d.ts +6 -6
  26. package/dist/block_state_patch.d.ts.map +1 -1
  27. package/dist/block_state_util.d.ts +4 -6
  28. package/dist/block_state_util.d.ts.map +1 -1
  29. package/dist/block_storage.d.ts +24 -23
  30. package/dist/block_storage.d.ts.map +1 -1
  31. package/dist/block_storage_facade.d.ts +11 -12
  32. package/dist/block_storage_facade.d.ts.map +1 -1
  33. package/dist/columns/column.d.ts +5 -6
  34. package/dist/columns/column.d.ts.map +1 -1
  35. package/dist/columns/column_providers/index.d.ts +5 -6
  36. package/dist/columns/column_providers/index.d.ts.map +1 -1
  37. package/dist/columns/column_providers/providers.d.ts +10 -11
  38. package/dist/columns/column_providers/providers.d.ts.map +1 -1
  39. package/dist/columns/column_providers/types.d.ts +2 -3
  40. package/dist/columns/column_providers/types.d.ts.map +1 -1
  41. package/dist/columns/column_recipes/column_discovered_recipe.d.ts +1 -3
  42. package/dist/columns/column_recipes/column_discovered_recipe.d.ts.map +1 -1
  43. package/dist/columns/column_recipes/column_filtered_recipe.d.ts +1 -3
  44. package/dist/columns/column_recipes/column_filtered_recipe.d.ts.map +1 -1
  45. package/dist/columns/column_recipes/column_overrided_recipe.d.ts +2 -3
  46. package/dist/columns/column_recipes/column_overrided_recipe.d.ts.map +1 -1
  47. package/dist/columns/column_recipes/index.d.ts +3 -4
  48. package/dist/columns/column_recipes/index.d.ts.map +1 -1
  49. package/dist/columns/column_recipes/types.d.ts +5 -6
  50. package/dist/columns/column_recipes/types.d.ts.map +1 -1
  51. package/dist/columns/columns_collection.d.ts +7 -8
  52. package/dist/columns/columns_collection.d.ts.map +1 -1
  53. package/dist/columns/data_column.d.ts +12 -16
  54. package/dist/columns/data_column.d.ts.map +1 -1
  55. package/dist/columns/derive_axis_values_labels.d.ts +2 -3
  56. package/dist/columns/derive_axis_values_labels.d.ts.map +1 -1
  57. package/dist/columns/split_by_axes.d.ts +3 -5
  58. package/dist/columns/split_by_axes.d.ts.map +1 -1
  59. package/dist/columns/utils.d.ts +10 -12
  60. package/dist/columns/utils.d.ts.map +1 -1
  61. package/dist/components/PFrameForGraphs.d.ts +5 -5
  62. package/dist/components/PFrameForGraphs.d.ts.map +1 -1
  63. package/dist/components/PlAnnotations/filter.d.ts +59 -40
  64. package/dist/components/PlAnnotations/filter.d.ts.map +1 -1
  65. package/dist/components/PlAnnotations/filters_ui.d.ts +18 -18
  66. package/dist/components/PlAnnotations/filters_ui.d.ts.map +1 -1
  67. package/dist/components/PlDataTable/columnResolver.cjs +2 -4
  68. package/dist/components/PlDataTable/columnResolver.cjs.map +1 -1
  69. package/dist/components/PlDataTable/columnResolver.js +2 -4
  70. package/dist/components/PlDataTable/columnResolver.js.map +1 -1
  71. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.cjs +1 -1
  72. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.cjs.map +1 -1
  73. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.d.ts +3 -4
  74. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.d.ts.map +1 -1
  75. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.js +1 -1
  76. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.js.map +1 -1
  77. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.cjs +1 -1
  78. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.cjs.map +1 -1
  79. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.d.ts +13 -10
  80. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.d.ts.map +1 -1
  81. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.js +1 -1
  82. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.js.map +1 -1
  83. package/dist/components/PlDataTable/createPlDataTable/discoverColumns.d.ts +5 -5
  84. package/dist/components/PlDataTable/createPlDataTable/discoverColumns.d.ts.map +1 -1
  85. package/dist/components/PlDataTable/createPlDataTable/index.d.ts +4 -4
  86. package/dist/components/PlDataTable/createPlDataTable/index.d.ts.map +1 -1
  87. package/dist/components/PlDataTable/createPlDataTable/utils.d.ts +8 -7
  88. package/dist/components/PlDataTable/createPlDataTable/utils.d.ts.map +1 -1
  89. package/dist/components/PlDataTable/createPlDataTableSheet.d.ts +2 -3
  90. package/dist/components/PlDataTable/createPlDataTableSheet.d.ts.map +1 -1
  91. package/dist/components/PlDataTable/state-migration.d.ts +6 -7
  92. package/dist/components/PlDataTable/state-migration.d.ts.map +1 -1
  93. package/dist/components/PlDataTable/typesV4.d.ts +73 -42
  94. package/dist/components/PlDataTable/typesV4.d.ts.map +1 -1
  95. package/dist/components/PlDataTable/typesV5.d.ts +3 -5
  96. package/dist/components/PlDataTable/typesV5.d.ts.map +1 -1
  97. package/dist/components/PlDataTable/typesV6.d.ts +4 -6
  98. package/dist/components/PlDataTable/typesV6.d.ts.map +1 -1
  99. package/dist/components/PlDataTable/typesV7.d.ts +45 -27
  100. package/dist/components/PlDataTable/typesV7.d.ts.map +1 -1
  101. package/dist/components/PlDataTable/typesV8.d.ts +80 -45
  102. package/dist/components/PlDataTable/typesV8.d.ts.map +1 -1
  103. package/dist/components/PlDatasetSelector/build_dataset_options.d.ts +7 -6
  104. package/dist/components/PlDatasetSelector/build_dataset_options.d.ts.map +1 -1
  105. package/dist/components/PlDatasetSelector/dataset_selection.d.ts +4 -6
  106. package/dist/components/PlDatasetSelector/dataset_selection.d.ts.map +1 -1
  107. package/dist/components/PlDatasetSelector/filter_discovery.d.ts +9 -8
  108. package/dist/components/PlDatasetSelector/filter_discovery.d.ts.map +1 -1
  109. package/dist/components/PlMultiSequenceAlignment.d.ts +6 -13
  110. package/dist/components/PlMultiSequenceAlignment.d.ts.map +1 -1
  111. package/dist/components/PlSelectionModel.d.ts +6 -6
  112. package/dist/components/PlSelectionModel.d.ts.map +1 -1
  113. package/dist/components/index.d.ts +3 -0
  114. package/dist/config/model.d.ts +28 -30
  115. package/dist/config/model.d.ts.map +1 -1
  116. package/dist/config/type_engine.d.ts +3 -5
  117. package/dist/config/type_engine.d.ts.map +1 -1
  118. package/dist/env_value.d.ts +1 -2
  119. package/dist/env_value.d.ts.map +1 -1
  120. package/dist/filters/converters/filterToQuery.d.ts +6 -7
  121. package/dist/filters/converters/filterToQuery.d.ts.map +1 -1
  122. package/dist/filters/converters/filterUiToExpressionImpl.d.ts +2 -4
  123. package/dist/filters/converters/filterUiToExpressionImpl.d.ts.map +1 -1
  124. package/dist/filters/distill.d.ts +1 -3
  125. package/dist/filters/distill.d.ts.map +1 -1
  126. package/dist/filters/index.d.ts +1 -0
  127. package/dist/filters/types.d.ts +3 -4
  128. package/dist/filters/types.d.ts.map +1 -1
  129. package/dist/index.d.ts +9 -0
  130. package/dist/labels/derive_distinct_labels.d.ts +28 -17
  131. package/dist/labels/derive_distinct_labels.d.ts.map +1 -1
  132. package/dist/labels/derive_distinct_tooltips.d.ts +11 -8
  133. package/dist/labels/derive_distinct_tooltips.d.ts.map +1 -1
  134. package/dist/labels/linked_column_postfix.d.ts +3 -5
  135. package/dist/labels/linked_column_postfix.d.ts.map +1 -1
  136. package/dist/package.cjs +1 -1
  137. package/dist/package.js +1 -1
  138. package/dist/pframe.d.ts +1 -3
  139. package/dist/pframe.d.ts.map +1 -1
  140. package/dist/pframe_utils/axes.d.ts +4 -5
  141. package/dist/pframe_utils/axes.d.ts.map +1 -1
  142. package/dist/pframe_utils/columns.d.ts +3 -7
  143. package/dist/pframe_utils/columns.d.ts.map +1 -1
  144. package/dist/pframe_utils/index.d.ts +9 -10
  145. package/dist/pframe_utils/index.d.ts.map +1 -1
  146. package/dist/platforma.d.ts +19 -21
  147. package/dist/platforma.d.ts.map +1 -1
  148. package/dist/plugin_handle.d.ts +11 -13
  149. package/dist/plugin_handle.d.ts.map +1 -1
  150. package/dist/plugin_model.d.ts +21 -22
  151. package/dist/plugin_model.d.ts.map +1 -1
  152. package/dist/raw_globals.d.ts +3 -4
  153. package/dist/raw_globals.d.ts.map +1 -1
  154. package/dist/render/accessor.d.ts +2 -4
  155. package/dist/render/accessor.d.ts.map +1 -1
  156. package/dist/render/api.d.ts +13 -13
  157. package/dist/render/api.d.ts.map +1 -1
  158. package/dist/render/future.d.ts +2 -4
  159. package/dist/render/future.d.ts.map +1 -1
  160. package/dist/render/index.d.ts +1 -0
  161. package/dist/render/internal.d.ts +11 -13
  162. package/dist/render/internal.d.ts.map +1 -1
  163. package/dist/render/traversal_ops.d.ts +14 -11
  164. package/dist/render/traversal_ops.d.ts.map +1 -1
  165. package/dist/render/util/axis_filtering.d.ts +5 -7
  166. package/dist/render/util/axis_filtering.d.ts.map +1 -1
  167. package/dist/render/util/column_collection.d.ts +14 -12
  168. package/dist/render/util/column_collection.d.ts.map +1 -1
  169. package/dist/render/util/label.d.ts +2 -3
  170. package/dist/render/util/label.d.ts.map +1 -1
  171. package/dist/render/util/pcolumn_data.d.ts +24 -25
  172. package/dist/render/util/pcolumn_data.d.ts.map +1 -1
  173. package/dist/render/util/split_selectors.d.ts +4 -6
  174. package/dist/render/util/split_selectors.d.ts.map +1 -1
  175. package/dist/services/block_services.d.ts +3 -4
  176. package/dist/services/block_services.d.ts.map +1 -1
  177. package/dist/services/get_services.d.ts +1 -3
  178. package/dist/services/get_services.d.ts.map +1 -1
  179. package/dist/services/service_bridge.d.ts +3 -5
  180. package/dist/services/service_bridge.d.ts.map +1 -1
  181. package/dist/services/service_resolve.d.ts +6 -7
  182. package/dist/services/service_resolve.d.ts.map +1 -1
  183. package/dist/version.d.ts +3 -4
  184. package/dist/version.d.ts.map +1 -1
  185. package/package.json +11 -11
  186. package/src/components/PlDataTable/columnResolver.test.ts +3 -5
  187. package/src/components/PlDataTable/columnResolver.ts +2 -12
  188. package/src/components/PlDataTable/createPlDataTable/createPlDataTableV2.ts +1 -4
  189. 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 { ColumnFieldStatus, ColumnRecipe, ColumnRecipeId, ColumnResolutionStatus, type SpecQuery$1 as SpecQuery };
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":";;;;AAkBA;;;;AAA8C;AAU9C;;KAVY,cAAA,GAAiB,iBAAiB;;AAUjB;AAiB7B;;;;AAAkC;AAsBlC;KAvCY,iBAAA;;;;;;;;;;;;;;;;KAiBA,sBAAA;;;;;;;;;;;;;;;AAkEuC;;;;;;UA5ClC,YAAA,YAAwB,cAAA,GAAiB,cAAA;;WAE/C,EAAA,EAAI,EAAA;;EAGb,gBAAA,IAAoB,SAAA;;;;;;;;;;EAWpB,OAAA,IAAW,WAAA;;;;;;;;;;EAWX,QAAA,IAAY,WAAA;;;;;;;EAQZ,aAAA,IAAiB,iBAAA;;;;;;;;EASjB,SAAA,CAAU,SAAA,EAAW,aAAA,GAAgB,YAAA;AAAA"}
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":";;;;;;UAkBiB,qBAAA;;WAEN,GAAA,GAAM,kBAAA;EAFA;EAAA,SAIN,MAAA,GAAS,4BAA4B;AAAA;;;;;;;AAAA;AAWhD;KAAY,sBAAA;;;AAAsB;AAYlC;;;;;;;iBAAgB,iBAAA,CACd,OAAA,IAAW,iBAAA,GAAoB,aAAA,GAAgB,sBAAA,KAC/C,IAAA,GAAO,qBAAA,GACN,iBAAA;AAAA,iBAQa,mBAAA,CAAoB,KAAA,YAAiB,KAAA,IAAS,iBAAiB;;;;;;;;;;AAR3D;AAQpB;;;;cAkBa,qBAAA;EAAA,SAEO,MAAA,EAAQ,gBAAA;EAAA,iBACP,MAAA;cADD,MAAA,EAAQ,gBAAA,EACP,MAAA,EAAQ,4BAAA;EAG3B,OAAA;EAIA,OAAA;EAIA,YAAA,IAAgB,iBAAA;EAIhB,UAAA,IAAc,YAAA;EAMd,SAAA,CAAU,MAAA,EAAQ,aAAA,GAAgB,iBAAA,GAAoB,iBAAA;EAOtD,QAAA,CAAS,OAAA,EAAS,sBAAA,GAAyB,iBAAA;EAI3C,MAAA,CAAO,OAAA,EAAS,oBAAA,GAAuB,iBAAA;AAAA;;KAM7B,iBAAA,GAAoB,qBAAqB"}
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 { ColumnAbsentError, ColumnData, type ColumnFieldStatus, type ColumnResolutionStatus, DataColumn, DataColumnId, DataColumnImpl, DataColumnRecipe, DataColumnSource, isDataColumn };
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":";;;;;;KA2BY,YAAA,GAAe,SAAS;AAAA,KACxB,UAAA,eAAyB,oBAAoB;AADzD;;;;AAAoC;AACpC;;;;AAAyD;AAkBzD;;;;;AAnBA,UAmBiB,gBAAA,YACJ,cAAA,GAAiB,cAAA,UACpB,YAAA,CAAa,EAAA;EAEV;EAAX,OAAA,IAAW,UAAA;AAAA;;;;;;;;;;AAAU;AAcvB;cAAa,iBAAA,SAA0B,KAAA;EAAA,SACT,EAAA,EAAI,iBAAA;cAAJ,EAAA,EAAI,iBAAA;AAAA;;;;;;;;;;cAerB,cAAA,YAA0B,gBAAA,CAAiB,SAAA;EAA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,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":";;;;;;;;;AA6BA;;;;;;;;;;;;;;;iBAAgB,sBAAA,CACd,MAAA,GAAS,iBAAA,IAAqB,iBAAA,GAAoB,aAAA,KAClD,IAAA;EAAS,GAAA,GAAM,kBAAA;AAAA,KACb,MAAA,EAAQ,MAAA,KAAW,MAAA"}
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":";;;;;UAwBiB,SAAA;;WAEN,GAAG;AAAA;AAAA,UAGG,eAAA;EAHH;AAAA;AAGd;;;;;;EASE,gBAAA,IAAoB,MAAA,EAAQ,MAAA,iBAAuB,MAAM;AAAA;;AAAA;AA8B3D;;;;;;;;;;;;;;;;;AAIe;;;;iBAJC,WAAA,CACd,MAAA,EAAQ,MAAA,IACR,SAAA,EAAW,SAAA,IACX,IAAA,GAAO,eAAA,GACN,YAAA"}
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"}
@@ -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":";;;;;;;;;;;AAiCA;;;;;;;iBAAgB,gBAAA,CAAiB,MAAA,EAAQ,YAAA,GAAe,SAAS;AAAA;AAsBjE;;;;AAtBiE,iBAsBjD,oBAAA,CACd,MAAA,EAAQ,YAAA,EACR,IAAA;EAAQ,GAAA,GAAM,kBAAA;AAAA,IACb,gBAAA,CAAiB,SAAA;;;;;;;;;iBAgBJ,iBAAA,CAAkB,MAAA,EAAQ,YAAA,YAAwB,iBAAiB;;AAhBtD;AAgB7B;;;;;iBAYgB,qBAAA,CACd,MAAA,EAAQ,YAAA,GACP,QAAA,CAAS,MAAA,CAAO,SAAA,EAAW,iBAAA;;;AAdqD;AAYnF;;;;;;;;;;;iBAqBgB,aAAA,CACd,MAAA,EAAQ,YAAA,EACR,IAAA;EAAQ,GAAA,GAAM,kBAAkB;AAAA;;;;AArBa;AAmB/C;;;;;;;;;;AAEyC;AAiEzC;;;;iBAAgB,mBAAA,CAAoB,MAAoB,EAAZ,YAAY;AASxD;;;;AAA+C;AAA/C,cAAa,YAAA,SAAY,mBAAsB;;;;;;;;;AAkBmC;AAKlF;;;;;;;iBALgB,gBAAA,CAAiB,MAAA,EAAQ,YAAA,GAAe,MAAA,IAAU,gBAAgB;AAOlE;AAAA,KAFJ,YAAA;EAAA,SACD,EAAA,EAAI,iBAAiB;EAAA,SACrB,KAAA;AAAA;;;;;;;;;iBAWK,mBAAA,CACd,MAAA,EAAQ,iBAAA,GAAoB,aAAA,IAC5B,YAAA,GAAc,mBAAA,GACb,YAAA"}
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, createPFrameForGraphs, enrichCompatible, getAvailableWithLinkersAxes, isHiddenFromGraphColumn, isHiddenFromUIColumn };
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":";;;;;;iBAOgB,uBAAA,CAAwB,MAAmB,EAAX,WAAW;AAAA,iBAI3C,oBAAA,CAAqB,MAAmB,EAAX,WAAW;;AAJxD;;;;AAA2D;AAI3D;;;;AAAwD;AAgBxD;iBAAgB,qBAAA,OACd,GAAA,EAAK,aAAA,CAAc,CAAA,EAAG,CAAA,GACtB,YAAA,GAAe,OAAA,aAAoB,oBAAA,MAClC,YAAA"}
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"; /** The exact pattern value to match */
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"; /** The subpattern to search for within the target pattern */
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"; /** The column identifier to apply the filter to */
32
- column: SUniversalPColumnId; /** The predicate defining the filtering logic */
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"; /** The column identifier to apply the ranking to */
48
- column: SUniversalPColumnId; /** If true, sorts highest values first (highest value gets rank 1) */
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"; /** The column identifier to apply the cumulative sum to */
63
- column: SUniversalPColumnId; /** If true, sorts values in descending order before calculating the cumulative sum */
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"; /** The column identifier to apply the log10 transformation to */
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"; /** The first column to compare (left side of comparison) */
105
- lhs: SUniversalPColumnId | TransformedColumn | number; /** The second column to compare (right side of comparison) */
106
- rhs: SUniversalPColumnId | TransformedColumn | number; /** The minimum difference between lhs and rhs values */
107
- minDiff?: number; /** Whether equality is permitted in the comparison */
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"; /** The column identifier to check for NA values */
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 */filter: AnnotationFilter; /** The label to assign to records that match the filter */
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
- | "bySampleAndClonotype";
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 */title: string; /** The mode of annotation to apply */
187
- mode: AnnotationMode; /** Ordered list of annotation steps to apply */
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 */mode: AnnotationMode; /** Ordered list of annotation steps 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":";;;;;AAWA;;;KAAY,sBAAA;EACV,IAAA,YAUU;EARV,KAAK;AAAA;;AAWA;AAMP;;;KATY,kCAAA;EACV,IAAA,wBAcU;EAZV,KAAK;AAAA;;;;KAMK,gBAAA,GAAmB,sBAAA,GAAyB,kCAAkC;;;;AAW7D;KALjB,aAAA;EACV,IAAA;EAEA,MAAA,EAAQ,mBAAA,EAqBR;EAnBA,SAAA,EAAW,gBAAgB;AAAA;;;AAuBjB;AAaZ;;;;;;;;KAlBY,SAAA;EACV,WAAA,UAkCU;EAhCV,MAAA,EAAQ,mBAAmB;EAE3B,UAAA;AAAA;;;;AAiC2B;AAS7B;;;;;;KA7BY,mBAAA;EACV,WAAA,yBA4B8B;EA1B9B,MAAA,EAAQ,mBAAmB,EA0BqC;EAxBhE,UAAA;AAAA;AA2CF;;;;;;;;;AAAA,KA/BY,KAAA;EACV,WAAA,WAiCK;EA/BL,MAAA,EAAQ,mBAAmB;AAAA;;;;;;AAqCjB;KA5BA,iBAAA,GAAoB,SAAA,GAAY,mBAAA,GAAsB,KAAA;;;;;;;;AAsCrC;AAW7B;;;;;;;;AAG2B;KAj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