@platforma-sdk/model 1.86.0 → 1.86.5

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 (398) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +2 -3
  2. package/dist/_virtual/_rolldown/runtime.js +1 -2
  3. package/dist/annotations/converter.cjs +1 -2
  4. package/dist/annotations/converter.cjs.map +1 -1
  5. package/dist/annotations/converter.d.ts +0 -2
  6. package/dist/annotations/converter.d.ts.map +1 -1
  7. package/dist/annotations/converter.js +1 -2
  8. package/dist/annotations/converter.js.map +1 -1
  9. package/dist/annotations/index.js +1 -2
  10. package/dist/annotations/types.d.ts +0 -2
  11. package/dist/annotations/types.d.ts.map +1 -1
  12. package/dist/bconfig/lambdas.d.ts +0 -2
  13. package/dist/bconfig/lambdas.d.ts.map +1 -1
  14. package/dist/bconfig/normalization.cjs +1 -2
  15. package/dist/bconfig/normalization.cjs.map +1 -1
  16. package/dist/bconfig/normalization.d.ts +0 -2
  17. package/dist/bconfig/normalization.d.ts.map +1 -1
  18. package/dist/bconfig/normalization.js +1 -2
  19. package/dist/bconfig/types.cjs +1 -2
  20. package/dist/bconfig/types.d.ts +0 -2
  21. package/dist/bconfig/types.d.ts.map +1 -1
  22. package/dist/bconfig/types.js +1 -2
  23. package/dist/bconfig/util.d.ts +1 -2
  24. package/dist/bconfig/util.d.ts.map +1 -1
  25. package/dist/bconfig/v3.d.ts +0 -2
  26. package/dist/bconfig/v3.d.ts.map +1 -1
  27. package/dist/block_api_v1.d.ts +0 -2
  28. package/dist/block_api_v1.d.ts.map +1 -1
  29. package/dist/block_api_v2.d.ts +0 -2
  30. package/dist/block_api_v2.d.ts.map +1 -1
  31. package/dist/block_api_v3.d.ts +0 -2
  32. package/dist/block_api_v3.d.ts.map +1 -1
  33. package/dist/block_migrations.cjs +3 -3
  34. package/dist/block_migrations.cjs.map +1 -1
  35. package/dist/block_migrations.d.ts +1 -2
  36. package/dist/block_migrations.d.ts.map +1 -1
  37. package/dist/block_migrations.js +3 -3
  38. package/dist/block_migrations.js.map +1 -1
  39. package/dist/block_model.cjs +1 -2
  40. package/dist/block_model.cjs.map +1 -1
  41. package/dist/block_model.d.ts +1 -2
  42. package/dist/block_model.d.ts.map +1 -1
  43. package/dist/block_model.js +1 -2
  44. package/dist/block_state_patch.d.ts +0 -2
  45. package/dist/block_state_patch.d.ts.map +1 -1
  46. package/dist/block_state_util.cjs +1 -2
  47. package/dist/block_state_util.d.ts +1 -2
  48. package/dist/block_state_util.d.ts.map +1 -1
  49. package/dist/block_state_util.js +1 -2
  50. package/dist/block_storage.cjs +1 -2
  51. package/dist/block_storage.d.ts +0 -2
  52. package/dist/block_storage.d.ts.map +1 -1
  53. package/dist/block_storage.js +1 -2
  54. package/dist/block_storage_callbacks.cjs +9 -7
  55. package/dist/block_storage_callbacks.cjs.map +1 -1
  56. package/dist/block_storage_callbacks.js +9 -7
  57. package/dist/block_storage_callbacks.js.map +1 -1
  58. package/dist/block_storage_facade.cjs +1 -2
  59. package/dist/block_storage_facade.cjs.map +1 -1
  60. package/dist/block_storage_facade.d.ts +0 -2
  61. package/dist/block_storage_facade.d.ts.map +1 -1
  62. package/dist/block_storage_facade.js +1 -2
  63. package/dist/block_storage_facade.js.map +1 -1
  64. package/dist/columns/column.cjs +1 -2
  65. package/dist/columns/column.d.ts +0 -2
  66. package/dist/columns/column.d.ts.map +1 -1
  67. package/dist/columns/column.js +1 -2
  68. package/dist/columns/column_providers/index.cjs +1 -2
  69. package/dist/columns/column_providers/index.d.ts +0 -2
  70. package/dist/columns/column_providers/index.d.ts.map +1 -1
  71. package/dist/columns/column_providers/index.js +1 -2
  72. package/dist/columns/column_providers/providers.cjs +11 -4
  73. package/dist/columns/column_providers/providers.cjs.map +1 -1
  74. package/dist/columns/column_providers/providers.d.ts +0 -2
  75. package/dist/columns/column_providers/providers.d.ts.map +1 -1
  76. package/dist/columns/column_providers/providers.js +12 -5
  77. package/dist/columns/column_providers/providers.js.map +1 -1
  78. package/dist/columns/column_providers/types.d.ts +0 -2
  79. package/dist/columns/column_providers/types.d.ts.map +1 -1
  80. package/dist/columns/column_recipes/column_discovered_recipe.cjs +1 -2
  81. package/dist/columns/column_recipes/column_discovered_recipe.cjs.map +1 -1
  82. package/dist/columns/column_recipes/column_discovered_recipe.d.ts +0 -2
  83. package/dist/columns/column_recipes/column_discovered_recipe.d.ts.map +1 -1
  84. package/dist/columns/column_recipes/column_discovered_recipe.js +1 -2
  85. package/dist/columns/column_recipes/column_filtered_recipe.cjs +1 -2
  86. package/dist/columns/column_recipes/column_filtered_recipe.cjs.map +1 -1
  87. package/dist/columns/column_recipes/column_filtered_recipe.d.ts +0 -2
  88. package/dist/columns/column_recipes/column_filtered_recipe.d.ts.map +1 -1
  89. package/dist/columns/column_recipes/column_filtered_recipe.js +1 -2
  90. package/dist/columns/column_recipes/column_overrided_recipe.cjs +1 -2
  91. package/dist/columns/column_recipes/column_overrided_recipe.cjs.map +1 -1
  92. package/dist/columns/column_recipes/column_overrided_recipe.d.ts +1 -2
  93. package/dist/columns/column_recipes/column_overrided_recipe.d.ts.map +1 -1
  94. package/dist/columns/column_recipes/column_overrided_recipe.js +1 -2
  95. package/dist/columns/column_recipes/index.cjs +1 -2
  96. package/dist/columns/column_recipes/index.cjs.map +1 -1
  97. package/dist/columns/column_recipes/index.d.ts +0 -2
  98. package/dist/columns/column_recipes/index.d.ts.map +1 -1
  99. package/dist/columns/column_recipes/index.js +1 -2
  100. package/dist/columns/column_recipes/leaf_rebrand.cjs +1 -2
  101. package/dist/columns/column_recipes/leaf_rebrand.cjs.map +1 -1
  102. package/dist/columns/column_recipes/leaf_rebrand.js +1 -2
  103. package/dist/columns/column_recipes/types.d.ts +0 -2
  104. package/dist/columns/column_recipes/types.d.ts.map +1 -1
  105. package/dist/columns/columns_collection.cjs +1 -2
  106. package/dist/columns/columns_collection.cjs.map +1 -1
  107. package/dist/columns/columns_collection.d.ts +0 -2
  108. package/dist/columns/columns_collection.d.ts.map +1 -1
  109. package/dist/columns/columns_collection.js +1 -2
  110. package/dist/columns/data_column.cjs +21 -21
  111. package/dist/columns/data_column.cjs.map +1 -1
  112. package/dist/columns/data_column.d.ts +8 -6
  113. package/dist/columns/data_column.d.ts.map +1 -1
  114. package/dist/columns/data_column.js +22 -22
  115. package/dist/columns/data_column.js.map +1 -1
  116. package/dist/columns/derive_axis_values_labels.cjs +1 -2
  117. package/dist/columns/derive_axis_values_labels.cjs.map +1 -1
  118. package/dist/columns/derive_axis_values_labels.d.ts +0 -2
  119. package/dist/columns/derive_axis_values_labels.d.ts.map +1 -1
  120. package/dist/columns/derive_axis_values_labels.js +1 -2
  121. package/dist/columns/peer_links.cjs +1 -2
  122. package/dist/columns/peer_links.cjs.map +1 -1
  123. package/dist/columns/peer_links.d.ts +0 -2
  124. package/dist/columns/peer_links.d.ts.map +1 -1
  125. package/dist/columns/peer_links.js +1 -2
  126. package/dist/columns/split_by_axes.cjs +1 -2
  127. package/dist/columns/split_by_axes.cjs.map +1 -1
  128. package/dist/columns/split_by_axes.d.ts +0 -2
  129. package/dist/columns/split_by_axes.d.ts.map +1 -1
  130. package/dist/columns/split_by_axes.js +1 -2
  131. package/dist/columns/split_by_axes.js.map +1 -1
  132. package/dist/columns/utils.cjs +4 -4
  133. package/dist/columns/utils.cjs.map +1 -1
  134. package/dist/columns/utils.d.ts +0 -2
  135. package/dist/columns/utils.d.ts.map +1 -1
  136. package/dist/columns/utils.js +4 -4
  137. package/dist/columns/utils.js.map +1 -1
  138. package/dist/components/PFrameForGraphs.cjs +1 -2
  139. package/dist/components/PFrameForGraphs.cjs.map +1 -1
  140. package/dist/components/PFrameForGraphs.d.ts +0 -2
  141. package/dist/components/PFrameForGraphs.d.ts.map +1 -1
  142. package/dist/components/PFrameForGraphs.js +1 -2
  143. package/dist/components/PlAnnotations/filter.d.ts +0 -2
  144. package/dist/components/PlAnnotations/filter.d.ts.map +1 -1
  145. package/dist/components/PlAnnotations/filters_ui.cjs +1 -2
  146. package/dist/components/PlAnnotations/filters_ui.d.ts +0 -2
  147. package/dist/components/PlAnnotations/filters_ui.d.ts.map +1 -1
  148. package/dist/components/PlAnnotations/filters_ui.js +1 -2
  149. package/dist/components/PlDataTable/columnResolver.cjs +1 -2
  150. package/dist/components/PlDataTable/columnResolver.cjs.map +1 -1
  151. package/dist/components/PlDataTable/columnResolver.js +1 -2
  152. package/dist/components/PlDataTable/createPlDataTable/createPTableDefV2.cjs +1 -2
  153. package/dist/components/PlDataTable/createPlDataTable/createPTableDefV2.cjs.map +1 -1
  154. package/dist/components/PlDataTable/createPlDataTable/createPTableDefV2.js +1 -2
  155. package/dist/components/PlDataTable/createPlDataTable/createPTableDefV3.cjs +1 -2
  156. package/dist/components/PlDataTable/createPlDataTable/createPTableDefV3.cjs.map +1 -1
  157. package/dist/components/PlDataTable/createPlDataTable/createPTableDefV3.js +1 -2
  158. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.cjs +1 -2
  159. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.cjs.map +1 -1
  160. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.d.ts +0 -2
  161. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.d.ts.map +1 -1
  162. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.js +1 -2
  163. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.cjs +1 -2
  164. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.cjs.map +1 -1
  165. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.d.ts +0 -2
  166. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.d.ts.map +1 -1
  167. package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.js +1 -2
  168. package/dist/components/PlDataTable/createPlDataTable/discoverColumns.cjs +1 -2
  169. package/dist/components/PlDataTable/createPlDataTable/discoverColumns.d.ts +0 -2
  170. package/dist/components/PlDataTable/createPlDataTable/discoverColumns.d.ts.map +1 -1
  171. package/dist/components/PlDataTable/createPlDataTable/discoverColumns.js +1 -2
  172. package/dist/components/PlDataTable/createPlDataTable/index.cjs +1 -2
  173. package/dist/components/PlDataTable/createPlDataTable/index.d.ts +0 -2
  174. package/dist/components/PlDataTable/createPlDataTable/index.d.ts.map +1 -1
  175. package/dist/components/PlDataTable/createPlDataTable/index.js +1 -2
  176. package/dist/components/PlDataTable/createPlDataTable/utils.cjs +6 -5
  177. package/dist/components/PlDataTable/createPlDataTable/utils.cjs.map +1 -1
  178. package/dist/components/PlDataTable/createPlDataTable/utils.d.ts +0 -2
  179. package/dist/components/PlDataTable/createPlDataTable/utils.d.ts.map +1 -1
  180. package/dist/components/PlDataTable/createPlDataTable/utils.js +6 -5
  181. package/dist/components/PlDataTable/createPlDataTable/utils.js.map +1 -1
  182. package/dist/components/PlDataTable/createPlDataTableSheet.cjs +1 -2
  183. package/dist/components/PlDataTable/createPlDataTableSheet.d.ts +0 -2
  184. package/dist/components/PlDataTable/createPlDataTableSheet.d.ts.map +1 -1
  185. package/dist/components/PlDataTable/createPlDataTableSheet.js +1 -2
  186. package/dist/components/PlDataTable/labels.cjs +1 -2
  187. package/dist/components/PlDataTable/labels.cjs.map +1 -1
  188. package/dist/components/PlDataTable/labels.js +1 -2
  189. package/dist/components/PlDataTable/state-migration.cjs +1 -2
  190. package/dist/components/PlDataTable/state-migration.cjs.map +1 -1
  191. package/dist/components/PlDataTable/state-migration.d.ts +0 -2
  192. package/dist/components/PlDataTable/state-migration.d.ts.map +1 -1
  193. package/dist/components/PlDataTable/state-migration.js +1 -2
  194. package/dist/components/PlDataTable/state-migration.js.map +1 -1
  195. package/dist/components/PlDataTable/typesV4.d.ts +0 -2
  196. package/dist/components/PlDataTable/typesV4.d.ts.map +1 -1
  197. package/dist/components/PlDataTable/typesV5.d.ts +0 -2
  198. package/dist/components/PlDataTable/typesV5.d.ts.map +1 -1
  199. package/dist/components/PlDataTable/typesV6.d.ts +0 -2
  200. package/dist/components/PlDataTable/typesV6.d.ts.map +1 -1
  201. package/dist/components/PlDataTable/typesV7.d.ts +0 -2
  202. package/dist/components/PlDataTable/typesV7.d.ts.map +1 -1
  203. package/dist/components/PlDataTable/typesV8.d.ts +0 -2
  204. package/dist/components/PlDataTable/typesV8.d.ts.map +1 -1
  205. package/dist/components/PlDatasetSelector/build_dataset_options.cjs +2 -3
  206. package/dist/components/PlDatasetSelector/build_dataset_options.cjs.map +1 -1
  207. package/dist/components/PlDatasetSelector/build_dataset_options.d.ts +1 -2
  208. package/dist/components/PlDatasetSelector/build_dataset_options.d.ts.map +1 -1
  209. package/dist/components/PlDatasetSelector/build_dataset_options.js +3 -4
  210. package/dist/components/PlDatasetSelector/build_dataset_options.js.map +1 -1
  211. package/dist/components/PlDatasetSelector/dataset_selection.cjs +1 -2
  212. package/dist/components/PlDatasetSelector/dataset_selection.d.ts +0 -2
  213. package/dist/components/PlDatasetSelector/dataset_selection.d.ts.map +1 -1
  214. package/dist/components/PlDatasetSelector/dataset_selection.js +1 -2
  215. package/dist/components/PlDatasetSelector/enrichment_discovery.cjs +4 -4
  216. package/dist/components/PlDatasetSelector/enrichment_discovery.cjs.map +1 -1
  217. package/dist/components/PlDatasetSelector/enrichment_discovery.js +4 -4
  218. package/dist/components/PlDatasetSelector/enrichment_discovery.js.map +1 -1
  219. package/dist/components/PlDatasetSelector/filter_discovery.cjs +1 -2
  220. package/dist/components/PlDatasetSelector/filter_discovery.cjs.map +1 -1
  221. package/dist/components/PlDatasetSelector/filter_discovery.d.ts +0 -2
  222. package/dist/components/PlDatasetSelector/filter_discovery.d.ts.map +1 -1
  223. package/dist/components/PlDatasetSelector/filter_discovery.js +1 -2
  224. package/dist/components/PlMultiSequenceAlignment.cjs +1 -2
  225. package/dist/components/PlMultiSequenceAlignment.cjs.map +1 -1
  226. package/dist/components/PlMultiSequenceAlignment.d.ts +0 -2
  227. package/dist/components/PlMultiSequenceAlignment.d.ts.map +1 -1
  228. package/dist/components/PlMultiSequenceAlignment.js +1 -2
  229. package/dist/components/PlSelectionModel.cjs +1 -2
  230. package/dist/components/PlSelectionModel.d.ts +0 -2
  231. package/dist/components/PlSelectionModel.d.ts.map +1 -1
  232. package/dist/components/PlSelectionModel.js +1 -2
  233. package/dist/config/model.d.ts +0 -2
  234. package/dist/config/model.d.ts.map +1 -1
  235. package/dist/config/type_engine.d.ts +1 -2
  236. package/dist/config/type_engine.d.ts.map +1 -1
  237. package/dist/env_value.cjs +1 -2
  238. package/dist/env_value.d.ts +0 -2
  239. package/dist/env_value.d.ts.map +1 -1
  240. package/dist/env_value.js +1 -2
  241. package/dist/filters/converters/filterToQuery.cjs +1 -2
  242. package/dist/filters/converters/filterToQuery.d.ts +0 -2
  243. package/dist/filters/converters/filterToQuery.d.ts.map +1 -1
  244. package/dist/filters/converters/filterToQuery.js +1 -2
  245. package/dist/filters/converters/filterUiToExpressionImpl.cjs +1 -2
  246. package/dist/filters/converters/filterUiToExpressionImpl.cjs.map +1 -1
  247. package/dist/filters/converters/filterUiToExpressionImpl.d.ts +0 -2
  248. package/dist/filters/converters/filterUiToExpressionImpl.d.ts.map +1 -1
  249. package/dist/filters/converters/filterUiToExpressionImpl.js +1 -2
  250. package/dist/filters/distill.cjs +1 -2
  251. package/dist/filters/distill.cjs.map +1 -1
  252. package/dist/filters/distill.d.ts +1 -3
  253. package/dist/filters/distill.d.ts.map +1 -1
  254. package/dist/filters/distill.js +1 -2
  255. package/dist/filters/distill.js.map +1 -1
  256. package/dist/filters/traverse.cjs +1 -2
  257. package/dist/filters/traverse.js +1 -2
  258. package/dist/filters/types.d.ts +0 -2
  259. package/dist/filters/types.d.ts.map +1 -1
  260. package/dist/internal.cjs +1 -2
  261. package/dist/internal.js +1 -2
  262. package/dist/labels/derive_distinct_labels.cjs +1 -2
  263. package/dist/labels/derive_distinct_labels.cjs.map +1 -1
  264. package/dist/labels/derive_distinct_labels.d.ts +0 -2
  265. package/dist/labels/derive_distinct_labels.d.ts.map +1 -1
  266. package/dist/labels/derive_distinct_labels.js +1 -2
  267. package/dist/labels/derive_distinct_labels.js.map +1 -1
  268. package/dist/labels/derive_distinct_tooltips.cjs +1 -2
  269. package/dist/labels/derive_distinct_tooltips.cjs.map +1 -1
  270. package/dist/labels/derive_distinct_tooltips.d.ts +0 -2
  271. package/dist/labels/derive_distinct_tooltips.d.ts.map +1 -1
  272. package/dist/labels/derive_distinct_tooltips.js +1 -2
  273. package/dist/labels/linked_column_postfix.cjs +1 -2
  274. package/dist/labels/linked_column_postfix.cjs.map +1 -1
  275. package/dist/labels/linked_column_postfix.d.ts +0 -2
  276. package/dist/labels/linked_column_postfix.d.ts.map +1 -1
  277. package/dist/labels/linked_column_postfix.js +1 -2
  278. package/dist/package.cjs +2 -3
  279. package/dist/package.js +2 -3
  280. package/dist/pframe.cjs +1 -2
  281. package/dist/pframe.d.ts +0 -2
  282. package/dist/pframe.d.ts.map +1 -1
  283. package/dist/pframe.js +1 -2
  284. package/dist/pframe_utils/axes.cjs +3 -3
  285. package/dist/pframe_utils/axes.cjs.map +1 -1
  286. package/dist/pframe_utils/axes.d.ts +0 -2
  287. package/dist/pframe_utils/axes.d.ts.map +1 -1
  288. package/dist/pframe_utils/axes.js +3 -3
  289. package/dist/pframe_utils/axes.js.map +1 -1
  290. package/dist/pframe_utils/columns.cjs +10 -7
  291. package/dist/pframe_utils/columns.cjs.map +1 -1
  292. package/dist/pframe_utils/columns.d.ts +0 -2
  293. package/dist/pframe_utils/columns.d.ts.map +1 -1
  294. package/dist/pframe_utils/columns.js +10 -7
  295. package/dist/pframe_utils/columns.js.map +1 -1
  296. package/dist/pframe_utils/index.cjs +1 -2
  297. package/dist/pframe_utils/index.cjs.map +1 -1
  298. package/dist/pframe_utils/index.d.ts +0 -2
  299. package/dist/pframe_utils/index.d.ts.map +1 -1
  300. package/dist/pframe_utils/index.js +1 -2
  301. package/dist/platforma.d.ts +0 -2
  302. package/dist/platforma.d.ts.map +1 -1
  303. package/dist/plugin_handle.cjs +1 -2
  304. package/dist/plugin_handle.d.ts +0 -2
  305. package/dist/plugin_handle.d.ts.map +1 -1
  306. package/dist/plugin_handle.js +1 -2
  307. package/dist/plugin_model.cjs +1 -2
  308. package/dist/plugin_model.d.ts +1 -2
  309. package/dist/plugin_model.d.ts.map +1 -1
  310. package/dist/plugin_model.js +1 -2
  311. package/dist/raw_globals.cjs +1 -2
  312. package/dist/raw_globals.d.ts +0 -2
  313. package/dist/raw_globals.d.ts.map +1 -1
  314. package/dist/raw_globals.js +1 -2
  315. package/dist/render/accessor.cjs +1 -2
  316. package/dist/render/accessor.cjs.map +1 -1
  317. package/dist/render/accessor.d.ts +1 -2
  318. package/dist/render/accessor.d.ts.map +1 -1
  319. package/dist/render/accessor.js +1 -2
  320. package/dist/render/api.cjs +10 -8
  321. package/dist/render/api.cjs.map +1 -1
  322. package/dist/render/api.d.ts +1 -2
  323. package/dist/render/api.d.ts.map +1 -1
  324. package/dist/render/api.js +10 -8
  325. package/dist/render/api.js.map +1 -1
  326. package/dist/render/future.cjs +1 -2
  327. package/dist/render/future.d.ts +0 -2
  328. package/dist/render/future.d.ts.map +1 -1
  329. package/dist/render/future.js +1 -2
  330. package/dist/render/internal.cjs +1 -2
  331. package/dist/render/internal.cjs.map +1 -1
  332. package/dist/render/internal.d.ts +0 -1
  333. package/dist/render/internal.js +1 -2
  334. package/dist/render/internal.js.map +1 -1
  335. package/dist/render/traversal_ops.d.ts +0 -2
  336. package/dist/render/traversal_ops.d.ts.map +1 -1
  337. package/dist/render/util/axis_filtering.cjs +1 -2
  338. package/dist/render/util/axis_filtering.d.ts +0 -2
  339. package/dist/render/util/axis_filtering.d.ts.map +1 -1
  340. package/dist/render/util/axis_filtering.js +1 -2
  341. package/dist/render/util/column_collection.cjs +3 -3
  342. package/dist/render/util/column_collection.cjs.map +1 -1
  343. package/dist/render/util/column_collection.d.ts +1 -2
  344. package/dist/render/util/column_collection.d.ts.map +1 -1
  345. package/dist/render/util/column_collection.js +3 -3
  346. package/dist/render/util/column_collection.js.map +1 -1
  347. package/dist/render/util/label.cjs +3 -3
  348. package/dist/render/util/label.cjs.map +1 -1
  349. package/dist/render/util/label.d.ts +0 -2
  350. package/dist/render/util/label.d.ts.map +1 -1
  351. package/dist/render/util/label.js +3 -3
  352. package/dist/render/util/label.js.map +1 -1
  353. package/dist/render/util/pcolumn_data.cjs +23 -26
  354. package/dist/render/util/pcolumn_data.cjs.map +1 -1
  355. package/dist/render/util/pcolumn_data.d.ts +1 -2
  356. package/dist/render/util/pcolumn_data.d.ts.map +1 -1
  357. package/dist/render/util/pcolumn_data.js +23 -26
  358. package/dist/render/util/pcolumn_data.js.map +1 -1
  359. package/dist/render/util/pframe_upgraders.cjs +1 -2
  360. package/dist/render/util/pframe_upgraders.js +1 -2
  361. package/dist/render/util/split_selectors.d.ts +0 -2
  362. package/dist/render/util/split_selectors.d.ts.map +1 -1
  363. package/dist/services/block_services.cjs +1 -2
  364. package/dist/services/block_services.cjs.map +1 -1
  365. package/dist/services/block_services.d.ts +0 -2
  366. package/dist/services/block_services.d.ts.map +1 -1
  367. package/dist/services/block_services.js +1 -2
  368. package/dist/services/get_services.cjs +1 -2
  369. package/dist/services/get_services.d.ts +0 -2
  370. package/dist/services/get_services.d.ts.map +1 -1
  371. package/dist/services/get_services.js +1 -2
  372. package/dist/services/service_bridge.cjs +1 -2
  373. package/dist/services/service_bridge.d.ts +0 -2
  374. package/dist/services/service_bridge.d.ts.map +1 -1
  375. package/dist/services/service_bridge.js +1 -2
  376. package/dist/services/service_resolve.d.ts +0 -2
  377. package/dist/services/service_resolve.d.ts.map +1 -1
  378. package/dist/version.cjs +1 -2
  379. package/dist/version.cjs.map +1 -1
  380. package/dist/version.d.ts +0 -2
  381. package/dist/version.d.ts.map +1 -1
  382. package/dist/version.js +1 -2
  383. package/package.json +17 -17
  384. package/src/annotations/converter.ts +5 -10
  385. package/src/block_storage_facade.ts +3 -1
  386. package/src/columns/__test_helpers__/collection_driver.ts +10 -8
  387. package/src/columns/__test_helpers__/stub_registry.ts +6 -8
  388. package/src/columns/column_providers/providers.test.ts +45 -0
  389. package/src/columns/column_providers/providers.ts +20 -7
  390. package/src/columns/columns_collection.test.ts +39 -0
  391. package/src/columns/data_column.test.ts +10 -0
  392. package/src/columns/data_column.ts +23 -19
  393. package/src/columns/split_by_axes.ts +4 -3
  394. package/src/components/PlDataTable/state-migration.ts +4 -6
  395. package/src/components/PlDatasetSelector/build_dataset_options.ts +7 -4
  396. package/src/filters/distill.ts +2 -2
  397. package/src/labels/derive_distinct_labels.test.ts +1 -1
  398. package/src/labels/derive_distinct_labels.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"column_overrided_recipe.cjs","names":["isDataColumn","ColumnRecipe","rebrandLeafId"],"sources":["../../../src/columns/column_recipes/column_overrided_recipe.ts"],"sourcesContent":["import {\n applySpecOverrides,\n createColumnOverriddenId,\n mergeSpecOverrides,\n type ColumnOverriddenId,\n type ColumnOverriddenKey,\n type ColumnUniversalId,\n type PColumnSpec,\n type PObjectId,\n type SpecOverrides,\n type SpecQuery,\n} from \"@milaboratories/pl-model-common\";\nimport type { GlobalCfgRenderCtx } from \"../../render/internal\";\nimport { type DataColumnRecipe, type ColumnData, isDataColumn } from \"../data_column\";\nimport type { ColumnFieldStatus, ColumnResolutionStatus } from \"./types\";\nimport { ColumnRecipe } from \"./index\";\nimport { Column } from \"../column\";\nimport { rebrandLeafId } from \"./leaf_rebrand\";\n\n/**\n * A recipe whose id is not an Overridden wrap — valid `source` for Overridden.\n * Mirrors the spec-level invariant on {@link ColumnOverriddenKey.source}.\n */\ntype NonOverriddenColumn = Column<Exclude<ColumnUniversalId, ColumnOverriddenId>>;\n\n/**\n * Recipe wrapper that overlays {@link SpecOverrides} on top of any other\n * recipe. The id is `ColumnOverriddenKey { source: inner.id, specOverrides }`.\n *\n * Flat-merge invariant: `inner` is never another {@link ColumnOverriddenRecipe}.\n * Repeated overrides go through {@link wrap} / {@link withSpecs}, which merge\n * `specOverrides` at the current level and keep wrapper depth constant.\n *\n * This invariant matches the one enforced inside `unwrapOverrides` from\n * pl-model-common: it explicitly throws on a nested override-wrap.\n */\nexport class ColumnOverriddenRecipe implements ColumnRecipe<ColumnOverriddenId> {\n /**\n * Wrap any recipe with overrides. If `inner` is already a\n * {@link ColumnOverriddenRecipe}, merges `overrides` into the existing ones\n * and returns a new Overridden sharing the original `inner`. No\n * `Overridden<Overridden<X>>` is produced.\n */\n static wrap(col: Column, overrides: SpecOverrides): ColumnOverriddenRecipe {\n if (col instanceof ColumnOverriddenRecipe) {\n return ColumnOverriddenRecipe.build(col.inner, mergeSpecOverrides(col.overrides, overrides));\n }\n // `inner` is not an Overridden wrap (the `instanceof` branch above handles\n // that). Narrow the id union here so the constructor parameter stays\n // honest with `ColumnOverriddenKey.source`.\n return ColumnOverriddenRecipe.build(col as NonOverriddenColumn, overrides);\n }\n\n /**\n * Pick the variant from the inner recipe: data-bearing inner →\n * {@link DataColumnOverriddenRecipe}, otherwise the plain wrapper.\n *\n * The choice is **structural**, not a readiness check — it follows from\n * which kind of recipe `inner` is, which in turn follows from the id alone\n * (a bare `PObjectId` source is a leaf, anything else is not). So the same\n * id always yields the same class, whether it was built via `withSpecs` or\n * parsed from a string, and recipes stay value-objects that are equal iff\n * their ids match.\n *\n * Re-deriving from `inner` on every build is also what keeps the merge path\n * honest: `overridden.withSpecs(a).withSpecs(b)` cannot silently drop the\n * data-bearing variant.\n *\n * Discriminated by method presence rather than `instanceof DataColumnImpl`\n * to keep this module free of a runtime import cycle with `../data_column`.\n * By the flat-merge invariant `inner` is never an Overridden, so the only\n * recipe kind reaching here that carries `getData` is the leaf.\n */\n private static build(\n inner: NonOverriddenColumn,\n overrides: SpecOverrides,\n ): ColumnOverriddenRecipe {\n return isDataColumn(inner)\n ? new DataColumnOverriddenRecipe(inner, overrides)\n : new ColumnOverriddenRecipe(inner, overrides);\n }\n\n /**\n * Static counterpart to {@link wrap}: returns the resolution status of a\n * {@link ColumnOverriddenKey} without constructing the recipe. Overrides\n * do not add references — status collapses to the source's status.\n */\n static getStatusByKey(\n key: ColumnOverriddenKey,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n ): ColumnResolutionStatus {\n return ColumnRecipe.getStatus(key.source, opts);\n }\n\n readonly id: ColumnOverriddenId;\n private specCache?: { readonly value: PColumnSpec };\n private queryCache?: { readonly value: SpecQuery };\n private dataStatusCache?: { readonly value: ColumnFieldStatus };\n\n protected constructor(\n private readonly inner: NonOverriddenColumn,\n private readonly overrides: SpecOverrides,\n ) {\n this.id = createColumnOverriddenId({\n source: inner.id,\n specOverrides: overrides,\n });\n }\n\n /** Wrapped recipe — exposed so external walkers can descend. */\n getInner(): Column {\n return this.inner;\n }\n\n /**\n * `inner` owns all references; overrides are a pure spec patch and do not\n * introduce new column refs.\n */\n getReferencedIds(): PObjectId[] {\n return this.inner.getReferencedIds();\n }\n\n getDataStatus(): ColumnFieldStatus {\n if (this.dataStatusCache === undefined) {\n this.dataStatusCache = { value: this.inner.getDataStatus() };\n }\n return this.dataStatusCache.value;\n }\n\n /**\n * Take the inner spec and overlay our overrides. `applySpecOverrides`\n * extracts the overrides from `this.id` itself.\n */\n getSpec(): PColumnSpec {\n if (this.specCache === undefined) {\n this.specCache = { value: applySpecOverrides(this.inner.getSpec(), this.id) };\n }\n return this.specCache.value;\n }\n\n /**\n * Emit a client-side `specOverride` node wrapping the inner query.\n *\n * This is a structural-but-collapsible node: it carries the override\n * patch through the query tree so consumers see the full recipe shape,\n * but it is collapsed at the host boundary (`resolvePColumn`) before\n * the query reaches pframe-engine. The engine never sees this node.\n *\n * Overrides do not change query topology — they are a pure spec patch.\n */\n getQuery(): SpecQuery {\n if (this.queryCache === undefined) {\n // Rebrand the inner column leaf to this.id (rich Overridden id) so\n // filter/sort references emitted with this recipe's id match the\n // leaf the engine sees. The specOverride node still wraps the leaf\n // and is collapsed at the host boundary into a spec patch on the\n // resolved PColumn.\n this.queryCache = {\n value: {\n type: \"specOverride\",\n input: rebrandLeafId(this.inner.getQuery(), this.inner.id, this.id),\n override: this.overrides,\n },\n };\n }\n return this.queryCache.value;\n }\n\n /**\n * Flat merge: new overrides merge with existing ones; `inner` is unchanged.\n * The result is an Overridden of the same depth.\n */\n withSpecs(overrides: SpecOverrides): Column {\n return ColumnOverriddenRecipe.wrap(this, overrides);\n }\n}\n\n/**\n * The variant produced when the wrapped recipe is itself data-bearing.\n *\n * Overrides are a pure spec patch — they never reshape the data — so the inner\n * column's data stays consistent with this recipe's spec and is passed\n * straight through. Which variant you get is decided once, at construction:\n * see {@link build}.\n *\n * Not something callers name. Narrow with `hasReachableData(recipe)`, which\n * yields the {@link DataColumnRecipe} interface.\n */\nexport class DataColumnOverriddenRecipe\n extends ColumnOverriddenRecipe\n implements DataColumnRecipe<ColumnOverriddenId>\n{\n /**\n * Safe by construction: {@link build} only picks this class when the inner\n * recipe exposes `getData`.\n */\n getData(): ColumnData {\n return (this.getInner() as DataColumnRecipe).getData();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAoCA,IAAa,yBAAb,MAAa,uBAAmE;CAgE3D;CACA;;;;;;;CA1DnB,OAAO,KAAK,KAAa,WAAkD;EACzE,IAAI,eAAe,wBACjB,OAAO,uBAAuB,MAAM,IAAI,QAAA,GAAA,gCAAA,mBAAA,CAA0B,IAAI,WAAW,SAAS,CAAC;EAK7F,OAAO,uBAAuB,MAAM,KAA4B,SAAS;CAC3E;;;;;;;;;;;;;;;;;;;;;CAsBA,OAAe,MACb,OACA,WACwB;EACxB,OAAOA,oBAAAA,aAAa,KAAK,IACrB,IAAI,2BAA2B,OAAO,SAAS,IAC/C,IAAI,uBAAuB,OAAO,SAAS;CACjD;;;;;;CAOA,OAAO,eACL,KACA,OAAqC,CAAC,GACd;EACxB,OAAOC,cAAAA,aAAa,UAAU,IAAI,QAAQ,IAAI;CAChD;CAEA;CACA;CACA;CACA;CAEA,YACE,OACA,WACA;EAFiB,KAAA,QAAA;EACA,KAAA,YAAA;EAEjB,KAAK,MAAA,GAAA,gCAAA,yBAAA,CAA8B;GACjC,QAAQ,MAAM;GACd,eAAe;EACjB,CAAC;CACH;;CAGA,WAAmB;EACjB,OAAO,KAAK;CACd;;;;;CAMA,mBAAgC;EAC9B,OAAO,KAAK,MAAM,iBAAiB;CACrC;CAEA,gBAAmC;EACjC,IAAI,KAAK,oBAAoB,KAAA,GAC3B,KAAK,kBAAkB,EAAE,OAAO,KAAK,MAAM,cAAc,EAAE;EAE7D,OAAO,KAAK,gBAAgB;CAC9B;;;;;CAMA,UAAuB;EACrB,IAAI,KAAK,cAAc,KAAA,GACrB,KAAK,YAAY,EAAE,QAAA,GAAA,gCAAA,mBAAA,CAA0B,KAAK,MAAM,QAAQ,GAAG,KAAK,EAAE,EAAE;EAE9E,OAAO,KAAK,UAAU;CACxB;;;;;;;;;;;CAYA,WAAsB;EACpB,IAAI,KAAK,eAAe,KAAA,GAMtB,KAAK,aAAa,EAChB,OAAO;GACL,MAAM;GACN,OAAOC,qBAAAA,cAAc,KAAK,MAAM,SAAS,GAAG,KAAK,MAAM,IAAI,KAAK,EAAE;GAClE,UAAU,KAAK;EACjB,EACF;EAEF,OAAO,KAAK,WAAW;CACzB;;;;;CAMA,UAAU,WAAkC;EAC1C,OAAO,uBAAuB,KAAK,MAAM,SAAS;CACpD;AACF;;;;;;;;;;;;AAaA,IAAa,6BAAb,cACU,uBAEV;;;;;CAKE,UAAsB;EACpB,OAAQ,KAAK,SAAS,CAAC,CAAsB,QAAQ;CACvD;AACF"}
1
+ {"version":3,"file":"column_overrided_recipe.cjs","names":["mergeSpecOverrides","isDataColumn","ColumnRecipe","createColumnOverriddenId","applySpecOverrides","rebrandLeafId"],"sources":["../../../src/columns/column_recipes/column_overrided_recipe.ts"],"sourcesContent":["import {\n applySpecOverrides,\n createColumnOverriddenId,\n mergeSpecOverrides,\n type ColumnOverriddenId,\n type ColumnOverriddenKey,\n type ColumnUniversalId,\n type PColumnSpec,\n type PObjectId,\n type SpecOverrides,\n type SpecQuery,\n} from \"@milaboratories/pl-model-common\";\nimport type { GlobalCfgRenderCtx } from \"../../render/internal\";\nimport { type DataColumnRecipe, type ColumnData, isDataColumn } from \"../data_column\";\nimport type { ColumnFieldStatus, ColumnResolutionStatus } from \"./types\";\nimport { ColumnRecipe } from \"./index\";\nimport { Column } from \"../column\";\nimport { rebrandLeafId } from \"./leaf_rebrand\";\n\n/**\n * A recipe whose id is not an Overridden wrap — valid `source` for Overridden.\n * Mirrors the spec-level invariant on {@link ColumnOverriddenKey.source}.\n */\ntype NonOverriddenColumn = Column<Exclude<ColumnUniversalId, ColumnOverriddenId>>;\n\n/**\n * Recipe wrapper that overlays {@link SpecOverrides} on top of any other\n * recipe. The id is `ColumnOverriddenKey { source: inner.id, specOverrides }`.\n *\n * Flat-merge invariant: `inner` is never another {@link ColumnOverriddenRecipe}.\n * Repeated overrides go through {@link wrap} / {@link withSpecs}, which merge\n * `specOverrides` at the current level and keep wrapper depth constant.\n *\n * This invariant matches the one enforced inside `unwrapOverrides` from\n * pl-model-common: it explicitly throws on a nested override-wrap.\n */\nexport class ColumnOverriddenRecipe implements ColumnRecipe<ColumnOverriddenId> {\n /**\n * Wrap any recipe with overrides. If `inner` is already a\n * {@link ColumnOverriddenRecipe}, merges `overrides` into the existing ones\n * and returns a new Overridden sharing the original `inner`. No\n * `Overridden<Overridden<X>>` is produced.\n */\n static wrap(col: Column, overrides: SpecOverrides): ColumnOverriddenRecipe {\n if (col instanceof ColumnOverriddenRecipe) {\n return ColumnOverriddenRecipe.build(col.inner, mergeSpecOverrides(col.overrides, overrides));\n }\n // `inner` is not an Overridden wrap (the `instanceof` branch above handles\n // that). Narrow the id union here so the constructor parameter stays\n // honest with `ColumnOverriddenKey.source`.\n return ColumnOverriddenRecipe.build(col as NonOverriddenColumn, overrides);\n }\n\n /**\n * Pick the variant from the inner recipe: data-bearing inner →\n * {@link DataColumnOverriddenRecipe}, otherwise the plain wrapper.\n *\n * The choice is **structural**, not a readiness check — it follows from\n * which kind of recipe `inner` is, which in turn follows from the id alone\n * (a bare `PObjectId` source is a leaf, anything else is not). So the same\n * id always yields the same class, whether it was built via `withSpecs` or\n * parsed from a string, and recipes stay value-objects that are equal iff\n * their ids match.\n *\n * Re-deriving from `inner` on every build is also what keeps the merge path\n * honest: `overridden.withSpecs(a).withSpecs(b)` cannot silently drop the\n * data-bearing variant.\n *\n * Discriminated by method presence rather than `instanceof DataColumnImpl`\n * to keep this module free of a runtime import cycle with `../data_column`.\n * By the flat-merge invariant `inner` is never an Overridden, so the only\n * recipe kind reaching here that carries `getData` is the leaf.\n */\n private static build(\n inner: NonOverriddenColumn,\n overrides: SpecOverrides,\n ): ColumnOverriddenRecipe {\n return isDataColumn(inner)\n ? new DataColumnOverriddenRecipe(inner, overrides)\n : new ColumnOverriddenRecipe(inner, overrides);\n }\n\n /**\n * Static counterpart to {@link wrap}: returns the resolution status of a\n * {@link ColumnOverriddenKey} without constructing the recipe. Overrides\n * do not add references — status collapses to the source's status.\n */\n static getStatusByKey(\n key: ColumnOverriddenKey,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n ): ColumnResolutionStatus {\n return ColumnRecipe.getStatus(key.source, opts);\n }\n\n readonly id: ColumnOverriddenId;\n private specCache?: { readonly value: PColumnSpec };\n private queryCache?: { readonly value: SpecQuery };\n private dataStatusCache?: { readonly value: ColumnFieldStatus };\n\n protected constructor(\n private readonly inner: NonOverriddenColumn,\n private readonly overrides: SpecOverrides,\n ) {\n this.id = createColumnOverriddenId({\n source: inner.id,\n specOverrides: overrides,\n });\n }\n\n /** Wrapped recipe — exposed so external walkers can descend. */\n getInner(): Column {\n return this.inner;\n }\n\n /**\n * `inner` owns all references; overrides are a pure spec patch and do not\n * introduce new column refs.\n */\n getReferencedIds(): PObjectId[] {\n return this.inner.getReferencedIds();\n }\n\n getDataStatus(): ColumnFieldStatus {\n if (this.dataStatusCache === undefined) {\n this.dataStatusCache = { value: this.inner.getDataStatus() };\n }\n return this.dataStatusCache.value;\n }\n\n /**\n * Take the inner spec and overlay our overrides. `applySpecOverrides`\n * extracts the overrides from `this.id` itself.\n */\n getSpec(): PColumnSpec {\n if (this.specCache === undefined) {\n this.specCache = { value: applySpecOverrides(this.inner.getSpec(), this.id) };\n }\n return this.specCache.value;\n }\n\n /**\n * Emit a client-side `specOverride` node wrapping the inner query.\n *\n * This is a structural-but-collapsible node: it carries the override\n * patch through the query tree so consumers see the full recipe shape,\n * but it is collapsed at the host boundary (`resolvePColumn`) before\n * the query reaches pframe-engine. The engine never sees this node.\n *\n * Overrides do not change query topology — they are a pure spec patch.\n */\n getQuery(): SpecQuery {\n if (this.queryCache === undefined) {\n // Rebrand the inner column leaf to this.id (rich Overridden id) so\n // filter/sort references emitted with this recipe's id match the\n // leaf the engine sees. The specOverride node still wraps the leaf\n // and is collapsed at the host boundary into a spec patch on the\n // resolved PColumn.\n this.queryCache = {\n value: {\n type: \"specOverride\",\n input: rebrandLeafId(this.inner.getQuery(), this.inner.id, this.id),\n override: this.overrides,\n },\n };\n }\n return this.queryCache.value;\n }\n\n /**\n * Flat merge: new overrides merge with existing ones; `inner` is unchanged.\n * The result is an Overridden of the same depth.\n */\n withSpecs(overrides: SpecOverrides): Column {\n return ColumnOverriddenRecipe.wrap(this, overrides);\n }\n}\n\n/**\n * The variant produced when the wrapped recipe is itself data-bearing.\n *\n * Overrides are a pure spec patch — they never reshape the data — so the inner\n * column's data stays consistent with this recipe's spec and is passed\n * straight through. Which variant you get is decided once, at construction:\n * see {@link build}.\n *\n * Not something callers name. Narrow with `hasReachableData(recipe)`, which\n * yields the {@link DataColumnRecipe} interface.\n */\nexport class DataColumnOverriddenRecipe\n extends ColumnOverriddenRecipe\n implements DataColumnRecipe<ColumnOverriddenId>\n{\n /**\n * Safe by construction: {@link build} only picks this class when the inner\n * recipe exposes `getData`.\n */\n getData(): ColumnData {\n return (this.getInner() as DataColumnRecipe).getData();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAoCA,IAAa,yBAAb,MAAa,uBAAmE;CAgE3D;CACA;;;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E;GAClE,UAAU,KAAK;EACjB,EACF;EAEF,OAAO,KAAK,WAAW;CACzB;;;;;CAMA,UAAU,WAAkC;EAC1C,OAAO,uBAAuB,KAAK,MAAM,SAAS;CACpD;AACF;;;;;;;;;;;;AAaA,IAAa,6BAAb,cACU,uBAEV;;;;;CAKE,UAAsB;EACpB,OAAQ,KAAK,SAAS,CAAC,CAAsB,QAAQ;CACvD;AACF"}
@@ -4,7 +4,6 @@ import "../data_column.js";
4
4
  import { Column } from "../column.js";
5
5
  import { ColumnRecipe } from "./index.js";
6
6
  import { ColumnOverriddenId, ColumnOverriddenKey, ColumnUniversalId, PColumnSpec, PObjectId, SpecOverrides, SpecQuery } from "@milaboratories/pl-model-common";
7
- //#region src/columns/column_recipes/column_overrided_recipe.d.ts
8
7
  /**
9
8
  * A recipe whose id is not an Overridden wrap — valid `source` for Overridden.
10
9
  * Mirrors the spec-level invariant on {@link ColumnOverriddenKey.source}.
@@ -95,5 +94,5 @@ export declare class ColumnOverriddenRecipe implements ColumnRecipe<ColumnOverri
95
94
  */
96
95
  withSpecs(overrides: SpecOverrides): Column;
97
96
  }
98
- //#endregion
97
+ export {};
99
98
  //# sourceMappingURL=column_overrided_recipe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"column_overrided_recipe.d.ts","names":[],"sources":["../../../src/columns/column_recipes/column_overrided_recipe.ts"],"mappings":";;;;;;;;;;;KAuBK,sBAAsB,OAAO,QAAQ,mBAAmB;;;;;;;;;;;;qBAahD,kCAAkC,aAAa;mBAgEvC;mBACA;;;;;;;SA1DZ,KAAK,KAAK,QAAQ,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;iBA8BrC;;;;;;SAcR,eACL,KAAK,qBACL;IAAQ,MAAM;MACb;WAIM,IAAI;UACL;UACA;UACA;YAEC,YACU,OAAO,qBACP,WAAW;;EAS9B,YAAY;;;;;EAQZ,oBAAoB;EAIpB,iBAAiB;;;;;EAWjB,WAAW;;;;;;;;;;;EAiBX,YAAY;;;;;EAsBZ,UAAU,WAAW,gBAAgB"}
1
+ {"version":3,"file":"column_overrided_recipe.d.ts","names":[],"sources":["../../../src/columns/column_recipes/column_overrided_recipe.ts"],"mappings":";;;;;;;;;;KAuBK,sBAAsB,OAAO,QAAQ,mBAAmB;;;;;;;;;;;;qBAahD,kCAAkC,aAAa;mBAgEvC;mBACA;;;;;;;SA1DZ,KAAK,KAAK,QAAQ,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;iBA8BrC;;;;;;SAcR,eACL,KAAK,qBACL;IAAQ,MAAM;MACb;WAIM,IAAI;UACL;UACA;UACA;YAEC,YACU,OAAO,qBACP,WAAW;;EAS9B,YAAY;;;;;EAQZ,oBAAoB;EAIpB,iBAAiB;;;;;EAWjB,WAAW;;;;;;;;;;;EAiBX,YAAY;;;;;EAsBZ,UAAU,WAAW,gBAAgB"}
@@ -2,7 +2,7 @@ import { rebrandLeafId } from "./leaf_rebrand.js";
2
2
  import { ColumnRecipe } from "./index.js";
3
3
  import { isDataColumn } from "../data_column.js";
4
4
  import { applySpecOverrides, createColumnOverriddenId, mergeSpecOverrides } from "@milaboratories/pl-model-common";
5
- //#region src/columns/column_recipes/column_overrided_recipe.ts
5
+ // src/columns/column_recipes/column_overrided_recipe.ts
6
6
  /**
7
7
  * Recipe wrapper that overlays {@link SpecOverrides} on top of any other
8
8
  * recipe. The id is `ColumnOverriddenKey { source: inner.id, specOverrides }`.
@@ -139,7 +139,6 @@ var DataColumnOverriddenRecipe = class extends ColumnOverriddenRecipe {
139
139
  return this.getInner().getData();
140
140
  }
141
141
  };
142
- //#endregion
143
142
  export { ColumnOverriddenRecipe, DataColumnOverriddenRecipe };
144
143
 
145
144
  //# sourceMappingURL=column_overrided_recipe.js.map
@@ -3,7 +3,7 @@ const require_column_filtered_recipe = require("./column_filtered_recipe.cjs");
3
3
  const require_column_overrided_recipe = require("./column_overrided_recipe.cjs");
4
4
  const require_data_column = require("../data_column.cjs");
5
5
  let _milaboratories_pl_model_common = require("@milaboratories/pl-model-common");
6
- //#region src/columns/column_recipes/index.ts
6
+ // src/columns/column_recipes/index.ts
7
7
  /**
8
8
  * Build a `ColumnRecipe` from a stringified id. Dispatches to the matching
9
9
  * concrete recipe variant based on the id's encoding and recurses on
@@ -53,7 +53,6 @@ function ColumnRecipeGetStatus(id, opts = {}) {
53
53
  throw new Error(`Unsupported ColumnRecipe id variant: ${id}`);
54
54
  }
55
55
  const ColumnRecipe = Object.assign(ColumnRecipeBuild, { getStatus: ColumnRecipeGetStatus });
56
- //#endregion
57
56
  exports.ColumnDiscoveredRecipe = require_column_discovered_recipe.ColumnDiscoveredRecipe;
58
57
  exports.ColumnFilteredRecipe = require_column_filtered_recipe.ColumnFilteredRecipe;
59
58
  exports.ColumnOverriddenRecipe = require_column_overrided_recipe.ColumnOverriddenRecipe;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["DataColumn","ColumnDiscoveredRecipe","ColumnOverriddenRecipe","ColumnFilteredRecipe"],"sources":["../../../src/columns/column_recipes/index.ts"],"sourcesContent":["import {\n isColumnDiscoveredKey,\n isColumnOverriddenKey,\n parseColumnIdSafely,\n type ColumnUniversalId,\n type PObjectId,\n isPObjectKey,\n isColumnFilteredKey,\n} from \"@milaboratories/pl-model-common\";\nimport type { GlobalCfgRenderCtx } from \"../../render/internal\";\nimport { DataColumn } from \"../data_column\";\nimport { ColumnDiscoveredRecipe } from \"./column_discovered_recipe\";\nimport { ColumnFilteredRecipe } from \"./column_filtered_recipe\";\nimport { ColumnOverriddenRecipe } from \"./column_overrided_recipe\";\nimport type {\n ColumnRecipe as ColumnRecipeBase,\n ColumnRecipeId,\n ColumnResolutionStatus,\n} from \"./types\";\n\nexport type { ColumnFieldStatus, ColumnRecipeId, ColumnResolutionStatus, SpecQuery } from \"./types\";\nexport { ColumnAbsentError } from \"../data_column\";\nexport { ColumnDiscoveredRecipe } from \"./column_discovered_recipe\";\nexport { ColumnFilteredRecipe } from \"./column_filtered_recipe\";\nexport { ColumnOverriddenRecipe } from \"./column_overrided_recipe\";\n\n// Re-declare the interface locally so the name can merge with the dispatcher\n// value declared below: a single name `ColumnRecipe` resolves to the\n// interface in type position and to the factory function (`Object.assign`d\n// with `.getStatus`) in value position.\n// (Type-only re-exports do not participate in TS declaration merging.)\nexport interface ColumnRecipe<\n ID extends ColumnRecipeId = ColumnRecipeId,\n> extends ColumnRecipeBase<ID> {}\n\n/**\n * Build a `ColumnRecipe` from a stringified id. Dispatches to the matching\n * concrete recipe variant based on the id's encoding and recurses on\n * wrappers' inner `source`:\n *\n * - bare {@link PObjectId} (non-JSON) → `DataColumnRecipe.fromId`\n * - `ColumnDiscoveredKey` → {@link ColumnDiscoveredRecipe}\n * - `ColumnOverriddenKey { source, specOverrides }` → recurse on `source`,\n * then {@link ColumnOverriddenRecipe.wrap}\n * - `ColumnFilteredKey { source, axisFilters }` → recurse on `source`,\n * then {@link ColumnFilteredRecipe.wrap}\n *\n * Returns `undefined` for unsupported variants (e.g. AnchoredPColumnId,\n * which needs an anchor map to resolve) or when a nested source itself\n * cannot be built.\n */\nfunction ColumnRecipeBuild(\n id: ColumnUniversalId,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n): undefined | ColumnRecipe {\n const parsed = parseColumnIdSafely(id);\n\n if (isPObjectKey(parsed)) {\n return DataColumn.fromId(id as PObjectId, opts);\n }\n\n if (isColumnDiscoveredKey(parsed)) {\n return ColumnDiscoveredRecipe.fromKey(parsed, opts);\n }\n\n if (isColumnOverriddenKey(parsed)) {\n const inner = ColumnRecipe(parsed.source, opts);\n if (inner === undefined) return undefined;\n return ColumnOverriddenRecipe.wrap(inner, parsed.specOverrides);\n }\n\n if (isColumnFilteredKey(parsed)) {\n // ColumnFilteredKey.source is a stringified ColumnUniversalId (leaf or\n // any nested wrapper). Legacy `FilteredPColumnId` with an AnchoredPColumnId\n // (object) source is not supported here — guard against it explicitly.\n if (typeof parsed.source !== \"string\") {\n throw new Error(\n `Unsupported ColumnRecipe id variant: filtered column with non-string source (${JSON.stringify(parsed.source)})`,\n );\n }\n const inner = ColumnRecipe(parsed.source, opts);\n if (inner === undefined) return undefined;\n return ColumnFilteredRecipe.wrap(inner, parsed.axisFilters);\n }\n\n throw new Error(`Unsupported ColumnRecipe id variant: ${id}`);\n}\n\n/**\n * Resolution status counterpart to {@link ColumnRecipeBuild}. Dispatches on\n * the parsed id shape to the matching `getStatusBy*` static — never\n * constructs the recipe. Use this at boundaries (resolver, filter/sort\n * targets) to throw early on `absent` instead of silently producing an empty\n * recipe via {@link ColumnRecipeBuild}.\n */\nfunction ColumnRecipeGetStatus(\n id: ColumnUniversalId,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n): ColumnResolutionStatus {\n const parsed = parseColumnIdSafely(id);\n if (isPObjectKey(parsed)) return DataColumn.getStatusById(id as PObjectId, opts);\n if (isColumnDiscoveredKey(parsed)) return ColumnDiscoveredRecipe.getStatusByKey(parsed, opts);\n if (isColumnOverriddenKey(parsed)) return ColumnOverriddenRecipe.getStatusByKey(parsed, opts);\n if (isColumnFilteredKey(parsed)) return ColumnFilteredRecipe.getStatusByKey(parsed, opts);\n throw new Error(`Unsupported ColumnRecipe id variant: ${id}`);\n}\n\nexport const ColumnRecipe: typeof ColumnRecipeBuild & {\n readonly getStatus: typeof ColumnRecipeGetStatus;\n} = Object.assign(ColumnRecipeBuild, {\n getStatus: ColumnRecipeGetStatus,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAmDA,SAAS,kBACP,IACA,OAAqC,CAAC,GACZ;CAC1B,MAAM,UAAA,GAAA,gCAAA,oBAAA,CAA6B,EAAE;CAErC,KAAA,GAAA,gCAAA,aAAA,CAAiB,MAAM,GACrB,OAAOA,oBAAAA,WAAW,OAAO,IAAiB,IAAI;CAGhD,KAAA,GAAA,gCAAA,sBAAA,CAA0B,MAAM,GAC9B,OAAOC,iCAAAA,uBAAuB,QAAQ,QAAQ,IAAI;CAGpD,KAAA,GAAA,gCAAA,sBAAA,CAA0B,MAAM,GAAG;EACjC,MAAM,QAAQ,aAAa,OAAO,QAAQ,IAAI;EAC9C,IAAI,UAAU,KAAA,GAAW,OAAO,KAAA;EAChC,OAAOC,gCAAAA,uBAAuB,KAAK,OAAO,OAAO,aAAa;CAChE;CAEA,KAAA,GAAA,gCAAA,oBAAA,CAAwB,MAAM,GAAG;EAI/B,IAAI,OAAO,OAAO,WAAW,UAC3B,MAAM,IAAI,MACR,gFAAgF,KAAK,UAAU,OAAO,MAAM,EAAE,EAChH;EAEF,MAAM,QAAQ,aAAa,OAAO,QAAQ,IAAI;EAC9C,IAAI,UAAU,KAAA,GAAW,OAAO,KAAA;EAChC,OAAOC,+BAAAA,qBAAqB,KAAK,OAAO,OAAO,WAAW;CAC5D;CAEA,MAAM,IAAI,MAAM,wCAAwC,IAAI;AAC9D;;;;;;;;AASA,SAAS,sBACP,IACA,OAAqC,CAAC,GACd;CACxB,MAAM,UAAA,GAAA,gCAAA,oBAAA,CAA6B,EAAE;CACrC,KAAA,GAAA,gCAAA,aAAA,CAAiB,MAAM,GAAG,OAAOH,oBAAAA,WAAW,cAAc,IAAiB,IAAI;CAC/E,KAAA,GAAA,gCAAA,sBAAA,CAA0B,MAAM,GAAG,OAAOC,iCAAAA,uBAAuB,eAAe,QAAQ,IAAI;CAC5F,KAAA,GAAA,gCAAA,sBAAA,CAA0B,MAAM,GAAG,OAAOC,gCAAAA,uBAAuB,eAAe,QAAQ,IAAI;CAC5F,KAAA,GAAA,gCAAA,oBAAA,CAAwB,MAAM,GAAG,OAAOC,+BAAAA,qBAAqB,eAAe,QAAQ,IAAI;CACxF,MAAM,IAAI,MAAM,wCAAwC,IAAI;AAC9D;AAEA,MAAa,eAET,OAAO,OAAO,mBAAmB,EACnC,WAAW,sBACb,CAAC"}
1
+ {"version":3,"file":"index.cjs","names":["parseColumnIdSafely","isPObjectKey","DataColumn","isColumnDiscoveredKey","ColumnDiscoveredRecipe","isColumnOverriddenKey","ColumnOverriddenRecipe","isColumnFilteredKey","ColumnFilteredRecipe"],"sources":["../../../src/columns/column_recipes/index.ts"],"sourcesContent":["import {\n isColumnDiscoveredKey,\n isColumnOverriddenKey,\n parseColumnIdSafely,\n type ColumnUniversalId,\n type PObjectId,\n isPObjectKey,\n isColumnFilteredKey,\n} from \"@milaboratories/pl-model-common\";\nimport type { GlobalCfgRenderCtx } from \"../../render/internal\";\nimport { DataColumn } from \"../data_column\";\nimport { ColumnDiscoveredRecipe } from \"./column_discovered_recipe\";\nimport { ColumnFilteredRecipe } from \"./column_filtered_recipe\";\nimport { ColumnOverriddenRecipe } from \"./column_overrided_recipe\";\nimport type {\n ColumnRecipe as ColumnRecipeBase,\n ColumnRecipeId,\n ColumnResolutionStatus,\n} from \"./types\";\n\nexport type { ColumnFieldStatus, ColumnRecipeId, ColumnResolutionStatus, SpecQuery } from \"./types\";\nexport { ColumnAbsentError } from \"../data_column\";\nexport { ColumnDiscoveredRecipe } from \"./column_discovered_recipe\";\nexport { ColumnFilteredRecipe } from \"./column_filtered_recipe\";\nexport { ColumnOverriddenRecipe } from \"./column_overrided_recipe\";\n\n// Re-declare the interface locally so the name can merge with the dispatcher\n// value declared below: a single name `ColumnRecipe` resolves to the\n// interface in type position and to the factory function (`Object.assign`d\n// with `.getStatus`) in value position.\n// (Type-only re-exports do not participate in TS declaration merging.)\nexport interface ColumnRecipe<\n ID extends ColumnRecipeId = ColumnRecipeId,\n> extends ColumnRecipeBase<ID> {}\n\n/**\n * Build a `ColumnRecipe` from a stringified id. Dispatches to the matching\n * concrete recipe variant based on the id's encoding and recurses on\n * wrappers' inner `source`:\n *\n * - bare {@link PObjectId} (non-JSON) → `DataColumnRecipe.fromId`\n * - `ColumnDiscoveredKey` → {@link ColumnDiscoveredRecipe}\n * - `ColumnOverriddenKey { source, specOverrides }` → recurse on `source`,\n * then {@link ColumnOverriddenRecipe.wrap}\n * - `ColumnFilteredKey { source, axisFilters }` → recurse on `source`,\n * then {@link ColumnFilteredRecipe.wrap}\n *\n * Returns `undefined` for unsupported variants (e.g. AnchoredPColumnId,\n * which needs an anchor map to resolve) or when a nested source itself\n * cannot be built.\n */\nfunction ColumnRecipeBuild(\n id: ColumnUniversalId,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n): undefined | ColumnRecipe {\n const parsed = parseColumnIdSafely(id);\n\n if (isPObjectKey(parsed)) {\n return DataColumn.fromId(id as PObjectId, opts);\n }\n\n if (isColumnDiscoveredKey(parsed)) {\n return ColumnDiscoveredRecipe.fromKey(parsed, opts);\n }\n\n if (isColumnOverriddenKey(parsed)) {\n const inner = ColumnRecipe(parsed.source, opts);\n if (inner === undefined) return undefined;\n return ColumnOverriddenRecipe.wrap(inner, parsed.specOverrides);\n }\n\n if (isColumnFilteredKey(parsed)) {\n // ColumnFilteredKey.source is a stringified ColumnUniversalId (leaf or\n // any nested wrapper). Legacy `FilteredPColumnId` with an AnchoredPColumnId\n // (object) source is not supported here — guard against it explicitly.\n if (typeof parsed.source !== \"string\") {\n throw new Error(\n `Unsupported ColumnRecipe id variant: filtered column with non-string source (${JSON.stringify(parsed.source)})`,\n );\n }\n const inner = ColumnRecipe(parsed.source, opts);\n if (inner === undefined) return undefined;\n return ColumnFilteredRecipe.wrap(inner, parsed.axisFilters);\n }\n\n throw new Error(`Unsupported ColumnRecipe id variant: ${id}`);\n}\n\n/**\n * Resolution status counterpart to {@link ColumnRecipeBuild}. Dispatches on\n * the parsed id shape to the matching `getStatusBy*` static — never\n * constructs the recipe. Use this at boundaries (resolver, filter/sort\n * targets) to throw early on `absent` instead of silently producing an empty\n * recipe via {@link ColumnRecipeBuild}.\n */\nfunction ColumnRecipeGetStatus(\n id: ColumnUniversalId,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n): ColumnResolutionStatus {\n const parsed = parseColumnIdSafely(id);\n if (isPObjectKey(parsed)) return DataColumn.getStatusById(id as PObjectId, opts);\n if (isColumnDiscoveredKey(parsed)) return ColumnDiscoveredRecipe.getStatusByKey(parsed, opts);\n if (isColumnOverriddenKey(parsed)) return ColumnOverriddenRecipe.getStatusByKey(parsed, opts);\n if (isColumnFilteredKey(parsed)) return ColumnFilteredRecipe.getStatusByKey(parsed, opts);\n throw new Error(`Unsupported ColumnRecipe id variant: ${id}`);\n}\n\nexport const ColumnRecipe: typeof ColumnRecipeBuild & {\n readonly getStatus: typeof ColumnRecipeGetStatus;\n} = Object.assign(ColumnRecipeBuild, {\n getStatus: ColumnRecipeGetStatus,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAmDA,SAAS,kBACP,IACA,OAAqC,CAAC,GACZ;CAC1B,MAAM,UAAA,GAASA,gCAAAA,oBAAAA,CAAoB,EAAE;CAErC,KAAA,GAAIC,gCAAAA,aAAAA,CAAa,MAAM,GACrB,OAAOC,oBAAAA,WAAW,OAAO,IAAiB,IAAI;CAGhD,KAAA,GAAIC,gCAAAA,sBAAAA,CAAsB,MAAM,GAC9B,OAAOC,iCAAAA,uBAAuB,QAAQ,QAAQ,IAAI;CAGpD,KAAA,GAAIC,gCAAAA,sBAAAA,CAAsB,MAAM,GAAG;EACjC,MAAM,QAAQ,aAAa,OAAO,QAAQ,IAAI;EAC9C,IAAI,UAAU,KAAA,GAAW,OAAO,KAAA;EAChC,OAAOC,gCAAAA,uBAAuB,KAAK,OAAO,OAAO,aAAa;CAChE;CAEA,KAAA,GAAIC,gCAAAA,oBAAAA,CAAoB,MAAM,GAAG;EAI/B,IAAI,OAAO,OAAO,WAAW,UAC3B,MAAM,IAAI,MACR,gFAAgF,KAAK,UAAU,OAAO,MAAM,EAAE,EAChH;EAEF,MAAM,QAAQ,aAAa,OAAO,QAAQ,IAAI;EAC9C,IAAI,UAAU,KAAA,GAAW,OAAO,KAAA;EAChC,OAAOC,+BAAAA,qBAAqB,KAAK,OAAO,OAAO,WAAW;CAC5D;CAEA,MAAM,IAAI,MAAM,wCAAwC,IAAI;AAC9D;;;;;;;;AASA,SAAS,sBACP,IACA,OAAqC,CAAC,GACd;CACxB,MAAM,UAAA,GAASR,gCAAAA,oBAAAA,CAAoB,EAAE;CACrC,KAAA,GAAIC,gCAAAA,aAAAA,CAAa,MAAM,GAAG,OAAOC,oBAAAA,WAAW,cAAc,IAAiB,IAAI;CAC/E,KAAA,GAAIC,gCAAAA,sBAAAA,CAAsB,MAAM,GAAG,OAAOC,iCAAAA,uBAAuB,eAAe,QAAQ,IAAI;CAC5F,KAAA,GAAIC,gCAAAA,sBAAAA,CAAsB,MAAM,GAAG,OAAOC,gCAAAA,uBAAuB,eAAe,QAAQ,IAAI;CAC5F,KAAA,GAAIC,gCAAAA,oBAAAA,CAAoB,MAAM,GAAG,OAAOC,+BAAAA,qBAAqB,eAAe,QAAQ,IAAI;CACxF,MAAM,IAAI,MAAM,wCAAwC,IAAI;AAC9D;AAEA,MAAa,eAET,OAAO,OAAO,mBAAmB,EACnC,WAAW,sBACb,CAAC"}
@@ -5,7 +5,6 @@ import { ColumnDiscoveredRecipe } from "./column_discovered_recipe.js";
5
5
  import { ColumnFilteredRecipe } from "./column_filtered_recipe.js";
6
6
  import { ColumnOverriddenRecipe } from "./column_overrided_recipe.js";
7
7
  import { ColumnUniversalId } from "@milaboratories/pl-model-common";
8
- //#region src/columns/column_recipes/index.d.ts
9
8
  export interface ColumnRecipe<ID extends ColumnRecipeId = ColumnRecipeId> extends ColumnRecipe$1<ID> {}
10
9
  /**
11
10
  * Build a `ColumnRecipe` from a stringified id. Dispatches to the matching
@@ -39,6 +38,5 @@ declare function ColumnRecipeGetStatus(id: ColumnUniversalId, opts?: {
39
38
  export declare const ColumnRecipe: typeof ColumnRecipeBuild & {
40
39
  readonly getStatus: typeof ColumnRecipeGetStatus;
41
40
  };
42
- //#endregion
43
41
  export { ColumnDiscoveredRecipe, ColumnFilteredRecipe, ColumnOverriddenRecipe, type ColumnRecipeId, type SpecQuery$1 as SpecQuery };
44
42
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/columns/column_recipes/index.ts"],"mappings":";;;;;;;;iBA+BiB,aACf,WAAW,iBAAiB,wBACpB,eAAiB;;;;;;;;;;;;;;;;;iBAkBlB,kBACP,IAAI,mBACJ;EAAQ,MAAM;gBACD;;;;;;;;iBAyCN,sBACP,IAAI,mBACJ;EAAQ,MAAM;IACb;qBASU,qBAAqB;WACvB,kBAAkB"}
1
+ {"version":3,"file":"index.d.ts","names":["ColumnRecipeBase"],"sources":["../../../src/columns/column_recipes/index.ts"],"mappings":";;;;;;;iBA+BiB,aACf,WAAW,iBAAiB,wBACpBA,eAAiB;;;;;;;;;;;;;;;;;iBAkBlB,kBACP,IAAI,mBACJ;EAAQ,MAAM;gBACD;;;;;;;;iBAyCN,sBACP,IAAI,mBACJ;EAAQ,MAAM;IACb;qBASU,qBAAqB;WACvB,kBAAkB"}
@@ -3,7 +3,7 @@ import { ColumnFilteredRecipe } from "./column_filtered_recipe.js";
3
3
  import { ColumnOverriddenRecipe } from "./column_overrided_recipe.js";
4
4
  import { DataColumn } from "../data_column.js";
5
5
  import { isColumnDiscoveredKey, isColumnFilteredKey, isColumnOverriddenKey, isPObjectKey, parseColumnIdSafely } from "@milaboratories/pl-model-common";
6
- //#region src/columns/column_recipes/index.ts
6
+ // src/columns/column_recipes/index.ts
7
7
  /**
8
8
  * Build a `ColumnRecipe` from a stringified id. Dispatches to the matching
9
9
  * concrete recipe variant based on the id's encoding and recurses on
@@ -53,7 +53,6 @@ function ColumnRecipeGetStatus(id, opts = {}) {
53
53
  throw new Error(`Unsupported ColumnRecipe id variant: ${id}`);
54
54
  }
55
55
  const ColumnRecipe = Object.assign(ColumnRecipeBuild, { getStatus: ColumnRecipeGetStatus });
56
- //#endregion
57
56
  export { ColumnDiscoveredRecipe, ColumnFilteredRecipe, ColumnOverriddenRecipe, ColumnRecipe };
58
57
 
59
58
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  let _milaboratories_pl_model_common = require("@milaboratories/pl-model-common");
2
- //#region src/columns/column_recipes/leaf_rebrand.ts
2
+ // src/columns/column_recipes/leaf_rebrand.ts
3
3
  /**
4
4
  * Replace every column leaf whose id equals `fromId` with `toId`, leaving
5
5
  * other column refs (linkers, sub-anchors) intact. Wrapper recipes
@@ -16,7 +16,6 @@ function rebrandLeafId(node, fromId, toId) {
16
16
  if (fromId === toId) return node;
17
17
  return (0, _milaboratories_pl_model_common.mapSpecQueryColumns)(node, { column: (id) => id === fromId ? toId : id });
18
18
  }
19
- //#endregion
20
19
  exports.rebrandLeafId = rebrandLeafId;
21
20
 
22
21
  //# sourceMappingURL=leaf_rebrand.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"leaf_rebrand.cjs","names":[],"sources":["../../../src/columns/column_recipes/leaf_rebrand.ts"],"sourcesContent":["import {\n mapSpecQueryColumns,\n type ColumnUniversalId,\n type SpecQuery,\n} from \"@milaboratories/pl-model-common\";\n\n/**\n * Replace every column leaf whose id equals `fromId` with `toId`, leaving\n * other column refs (linkers, sub-anchors) intact. Wrapper recipes\n * (Overridden / Filtered) and Discovered use this to lift their own id onto\n * the hit leaf, so per-variant uniqueness propagates to the engine and\n * resolver-emitted ids match leaves in the emitted SpecQuery.\n *\n * Generic over all SpecQuery node shapes — including `linkerJoin`, which\n * occurs when a wrapper sits over a {@link ColumnDiscoveredRecipe}: only\n * the deepest hit leaf carries `fromId`, every linker leaf has a different\n * id and is left untouched.\n */\nexport function rebrandLeafId(\n node: SpecQuery,\n fromId: ColumnUniversalId,\n toId: ColumnUniversalId,\n): SpecQuery {\n if (fromId === toId) return node;\n return mapSpecQueryColumns(node, {\n column: (id) => (id === fromId ? toId : id),\n });\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,SAAgB,cACd,MACA,QACA,MACW;CACX,IAAI,WAAW,MAAM,OAAO;CAC5B,QAAA,GAAA,gCAAA,oBAAA,CAA2B,MAAM,EAC/B,SAAS,OAAQ,OAAO,SAAS,OAAO,GAC1C,CAAC;AACH"}
1
+ {"version":3,"file":"leaf_rebrand.cjs","names":["mapSpecQueryColumns"],"sources":["../../../src/columns/column_recipes/leaf_rebrand.ts"],"sourcesContent":["import {\n mapSpecQueryColumns,\n type ColumnUniversalId,\n type SpecQuery,\n} from \"@milaboratories/pl-model-common\";\n\n/**\n * Replace every column leaf whose id equals `fromId` with `toId`, leaving\n * other column refs (linkers, sub-anchors) intact. Wrapper recipes\n * (Overridden / Filtered) and Discovered use this to lift their own id onto\n * the hit leaf, so per-variant uniqueness propagates to the engine and\n * resolver-emitted ids match leaves in the emitted SpecQuery.\n *\n * Generic over all SpecQuery node shapes — including `linkerJoin`, which\n * occurs when a wrapper sits over a {@link ColumnDiscoveredRecipe}: only\n * the deepest hit leaf carries `fromId`, every linker leaf has a different\n * id and is left untouched.\n */\nexport function rebrandLeafId(\n node: SpecQuery,\n fromId: ColumnUniversalId,\n toId: ColumnUniversalId,\n): SpecQuery {\n if (fromId === toId) return node;\n return mapSpecQueryColumns(node, {\n column: (id) => (id === fromId ? toId : id),\n });\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,SAAgB,cACd,MACA,QACA,MACW;CACX,IAAI,WAAW,MAAM,OAAO;CAC5B,QAAA,GAAOA,gCAAAA,oBAAAA,CAAoB,MAAM,EAC/B,SAAS,OAAQ,OAAO,SAAS,OAAO,GAC1C,CAAC;AACH"}
@@ -1,5 +1,5 @@
1
1
  import { mapSpecQueryColumns } from "@milaboratories/pl-model-common";
2
- //#region src/columns/column_recipes/leaf_rebrand.ts
2
+ // src/columns/column_recipes/leaf_rebrand.ts
3
3
  /**
4
4
  * Replace every column leaf whose id equals `fromId` with `toId`, leaving
5
5
  * other column refs (linkers, sub-anchors) intact. Wrapper recipes
@@ -16,7 +16,6 @@ function rebrandLeafId(node, fromId, toId) {
16
16
  if (fromId === toId) return node;
17
17
  return mapSpecQueryColumns(node, { column: (id) => id === fromId ? toId : id });
18
18
  }
19
- //#endregion
20
19
  export { rebrandLeafId };
21
20
 
22
21
  //# sourceMappingURL=leaf_rebrand.js.map
@@ -1,5 +1,4 @@
1
1
  import { ColumnUniversalId, PColumnSpec, PObjectId, SpecOverrides, SpecQuery as SpecQuery$1 } from "@milaboratories/pl-model-common";
2
- //#region src/columns/column_recipes/types.d.ts
3
2
  /**
4
3
  * Stable identifier of a recipe: either the canonical {@link PObjectId} of a
5
4
  * leaf or a {@link ColumnUniversalId} encoding `Overridden / Discovered /
@@ -95,6 +94,5 @@ export interface ColumnRecipe<ID extends ColumnRecipeId = ColumnRecipeId> {
95
94
  */
96
95
  withSpecs(overrides: SpecOverrides): ColumnRecipe;
97
96
  }
98
- //#endregion
99
97
  export type { SpecQuery$1 as SpecQuery };
100
98
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"types.d.ts","names":["SpecQuery"],"sources":["../../../src/columns/column_recipes/types.ts"],"mappings":";;;;;;;;;YAkBY,iBAAiB;;;;;;;;;YAUjB;;;;;;;;;;;;;;;;YAiBA;;;;;;;;;;;;;;;;;;;;;iBAsBK,aAAa,WAAW,iBAAiB;;WAE/C,IAAI;;EAGb,oBAAoB;;;;;;;;;;EAWpB,WAAW;;;;;;;;;;EAWX,YAAYA;;;;;;;EAQZ,iBAAiB;;;;;;;;EASjB,UAAU,WAAW,gBAAgB"}
@@ -5,7 +5,7 @@ const require_get_services = require("../services/get_services.cjs");
5
5
  const require_index = require("./column_recipes/index.cjs");
6
6
  const require_index$1 = require("./column_providers/index.cjs");
7
7
  let es_toolkit = require("es-toolkit");
8
- //#region src/columns/columns_collection.ts
8
+ // src/columns/columns_collection.ts
9
9
  /**
10
10
  * Build a {@link ColumnsCollection} from sandbox-side source descriptors.
11
11
  * Resolves the `columnsCollection` driver (either from `deps.driver` or via
@@ -116,7 +116,6 @@ function currentBlockSources(ctx) {
116
116
  function defaultCtxSources(ctx) {
117
117
  return [...currentBlockSources(ctx), { kind: "result_pool" }];
118
118
  }
119
- //#endregion
120
119
  exports.ColumnsCollection = ColumnsCollection;
121
120
  exports.ColumnsCollectionImpl = ColumnsCollectionImpl;
122
121
  exports.isColumnsCollection = isColumnsCollection;
@@ -1 +1 @@
1
- {"version":3,"file":"columns_collection.cjs","names":["getService","ColumnRecipe","TreeNodeAccessor","isColumnProvider","getCfgRenderCtx","MainAccessorName","StagingAccessorName"],"sources":["../../src/columns/columns_collection.ts"],"sourcesContent":["import type {\n CollectionHandle,\n ColumnUniversalId,\n ColumnsCollectionDriverModel,\n ColumnsDiscoverOptions,\n ColumnsFilterOptions,\n SerializedColumnsSource,\n} from \"@milaboratories/pl-model-common\";\nimport type { GlobalCfgRenderCtx } from \"../render/internal\";\nimport { MainAccessorName, StagingAccessorName } from \"../render/internal\";\nimport type { ColumnsSource } from \"./column_providers\";\nimport { isColumnProvider } from \"./column_providers\";\nimport { TreeNodeAccessor } from \"../render/accessor\";\nimport { getService } from \"../services/get_services\";\nimport { getCfgRenderCtx } from \"../internal\";\nimport { ColumnRecipe } from \"./column_recipes\";\nimport { isNil } from \"es-toolkit\";\n\nexport interface ColumnsCollectionDeps {\n /** Render ctx used both for service resolution and for default ctx sources. */\n readonly ctx?: GlobalCfgRenderCtx;\n /** Override the resolved `columnsCollection` service — primarily for tests. */\n readonly driver?: ColumnsCollectionDriverModel;\n}\n\n/**\n * Shorthand literals accepted inside `ColumnsCollection`'s `sources`\n * array, expanded against the active render ctx:\n *\n * - `\"result_pool\"` – fan-out into the host's upstream-block result pool.\n * - `\"current_block\"` – main outputs + prerun (staging) accessors of the\n * current block, when present.\n */\nexport type ColumnsSourceShorthand = \"result_pool\" | \"current_block\";\n\n/**\n * Build a {@link ColumnsCollection} from sandbox-side source descriptors.\n * Resolves the `columnsCollection` driver (either from `deps.driver` or via\n * `getService(\"columnsCollection\")`) and asks the host to mint a fresh\n * handle covering the supplied sources. Pass `sources === undefined` to\n * fall back to the active render ctx (main outputs + prerun + result pool).\n *\n * `sources` accepts {@link ColumnsSourceShorthand} string literals\n * (`\"result_pool\"`, `\"current_block\"`) for the common ctx-derived sources.\n */\nexport function ColumnsCollection(\n sources?: (ColumnsCollection | ColumnsSource | ColumnsSourceShorthand)[],\n deps?: ColumnsCollectionDeps,\n): ColumnsCollection {\n const driver = deps?.driver ?? getService(\"columnsCollection\", { ctx: deps?.ctx });\n const serialized: SerializedColumnsSource[] = sources\n ? sources.flatMap((s) => toSerializedSources(s, deps?.ctx))\n : defaultCtxSources(deps?.ctx);\n return new ColumnsCollectionImpl(driver.create(serialized), driver);\n}\n\nexport function isColumnsCollection(value: unknown): value is ColumnsCollection {\n return value instanceof ColumnsCollectionImpl;\n}\n\n/**\n * Sandbox proxy over the host-side `ColumnsCollection` driver. The driver\n * owns all column-set state; this object only carries an opaque\n * {@link CollectionHandle} plus a reference to the driver service.\n *\n * Construct via {@link ColumnsCollection} — the bare constructor is a\n * trivial `(handle, driver)` pair so that `addSource` / `discover` / `filter`\n * can rebind a freshly-minted handle without going through source\n * serialisation again.\n *\n * Every method returning a `ColumnsCollection` mints a fresh handle on the\n * host — the host VM bridge pins it to the active render ctx, so the sandbox\n * never has to manage refcounts.\n */\nexport class ColumnsCollectionImpl {\n constructor(\n public readonly handle: CollectionHandle,\n private readonly driver: ColumnsCollectionDriverModel,\n ) {}\n\n isEmpty(): boolean {\n return this.driver.isEmpty(this.handle);\n }\n\n isFinal(): boolean {\n return this.driver.isFinal(this.handle);\n }\n\n getColumnIds(): ColumnUniversalId[] {\n return this.driver.getColumns(this.handle);\n }\n\n getColumns(): ColumnRecipe[] {\n return this.getColumnIds()\n .map((id) => ColumnRecipe(id))\n .filter((c): c is ColumnRecipe => !isNil(c));\n }\n\n addSource(source: ColumnsSource | ColumnsCollection): ColumnsCollection {\n return new ColumnsCollectionImpl(\n this.driver.addSource(this.handle, toSerializedSources(source)),\n this.driver,\n );\n }\n\n discover(options: ColumnsDiscoverOptions): ColumnsCollection {\n return new ColumnsCollectionImpl(this.driver.discover(this.handle, options), this.driver);\n }\n\n filter(options: ColumnsFilterOptions): ColumnsCollection {\n return new ColumnsCollectionImpl(this.driver.filter(this.handle, options), this.driver);\n }\n}\n\n/** Public type alias — value of the same name is the factory function above. */\nexport type ColumnsCollection = ColumnsCollectionImpl;\n\nfunction toSerializedSources(\n source: ColumnsCollection | ColumnsSource | ColumnsSourceShorthand,\n ctx?: GlobalCfgRenderCtx,\n): SerializedColumnsSource[] {\n if (source === \"result_pool\") {\n return [{ kind: \"result_pool\" }];\n }\n if (source === \"current_block\") {\n return currentBlockSources(ctx);\n }\n if (source instanceof ColumnsCollectionImpl) {\n return [{ kind: \"collection\", handle: source.handle }];\n }\n if (source instanceof TreeNodeAccessor) {\n return [{ kind: \"accessor\", accessor: source.handle, path: source.resolvePath }];\n }\n if (isColumnArray(source)) {\n return [{ kind: \"ids\", ids: source.columns.map((c) => c.id), isFinal: source.isFinal }];\n }\n if (isColumnProvider(source)) {\n return [{ kind: \"ids\", ids: source.getColumns().map((c) => c.id), isFinal: source.isFinal() }];\n }\n throw new Error(\"ColumnsCollection: unrecognised ColumnsSource shape\");\n}\n\nfunction isColumnArray(source: unknown): source is {\n columns: ReadonlyArray<{ id: ColumnUniversalId; spec?: unknown; data?: unknown }>;\n isFinal: boolean;\n} {\n if (typeof source !== \"object\" || source === null) return false;\n const s = source as { columns?: unknown; isFinal?: unknown };\n return Array.isArray(s.columns) && typeof s.isFinal === \"boolean\";\n}\n\nfunction currentBlockSources(ctx?: GlobalCfgRenderCtx): SerializedColumnsSource[] {\n const renderCtx = ctx ?? getCfgRenderCtx();\n const sources: SerializedColumnsSource[] = [];\n\n const outputs = renderCtx.getAccessorHandleByName(MainAccessorName);\n if (outputs !== undefined) {\n sources.push({ kind: \"accessor\", accessor: outputs, path: [MainAccessorName] });\n }\n const prerun = renderCtx.getAccessorHandleByName(StagingAccessorName);\n if (prerun !== undefined) {\n sources.push({ kind: \"accessor\", accessor: prerun, path: [StagingAccessorName] });\n }\n\n return sources;\n}\n\nfunction defaultCtxSources(ctx?: GlobalCfgRenderCtx): SerializedColumnsSource[] {\n return [...currentBlockSources(ctx), { kind: \"result_pool\" }];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA6CA,SAAgB,kBACd,SACA,MACmB;CACnB,MAAM,SAAS,MAAM,UAAUA,qBAAAA,WAAW,qBAAqB,EAAE,KAAK,MAAM,IAAI,CAAC;CACjF,MAAM,aAAwC,UAC1C,QAAQ,SAAS,MAAM,oBAAoB,GAAG,MAAM,GAAG,CAAC,IACxD,kBAAkB,MAAM,GAAG;CAC/B,OAAO,IAAI,sBAAsB,OAAO,OAAO,UAAU,GAAG,MAAM;AACpE;AAEA,SAAgB,oBAAoB,OAA4C;CAC9E,OAAO,iBAAiB;AAC1B;;;;;;;;;;;;;;;AAgBA,IAAa,wBAAb,MAAa,sBAAsB;CAEf;CACC;CAFnB,YACE,QACA,QACA;EAFgB,KAAA,SAAA;EACC,KAAA,SAAA;CAChB;CAEH,UAAmB;EACjB,OAAO,KAAK,OAAO,QAAQ,KAAK,MAAM;CACxC;CAEA,UAAmB;EACjB,OAAO,KAAK,OAAO,QAAQ,KAAK,MAAM;CACxC;CAEA,eAAoC;EAClC,OAAO,KAAK,OAAO,WAAW,KAAK,MAAM;CAC3C;CAEA,aAA6B;EAC3B,OAAO,KAAK,aAAa,CAAC,CACvB,KAAK,OAAOC,cAAAA,aAAa,EAAE,CAAC,CAAC,CAC7B,QAAQ,MAAyB,EAAA,GAAA,WAAA,MAAA,CAAO,CAAC,CAAC;CAC/C;CAEA,UAAU,QAA8D;EACtE,OAAO,IAAI,sBACT,KAAK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AU,UAAU,wBAAwBC,mBAAAA,gBAAgB;CAClE,IAAI,YAAY,KAAA,GACd,QAAQ,KAAK;EAAE,MAAM;EAAY,UAAU;EAAS,MAAM,CAACA,mBAAAA,gBAAgB;CAAE,CAAC;CAEhF,MAAM,SAAS,UAAU,wBAAwBC,mBAAAA,mBAAmB;CACpE,IAAI,WAAW,KAAA,GACb,QAAQ,KAAK;EAAE,MAAM;EAAY,UAAU;EAAQ,MAAM,CAACA,mBAAAA,mBAAmB;CAAE,CAAC;CAGlF,OAAO;AACT;AAEA,SAAS,kBAAkB,KAAqD;CAC9E,OAAO,CAAC,GAAG,oBAAoB,GAAG,GAAG,EAAE,MAAM,cAAc,CAAC;AAC9D"}
1
+ {"version":3,"file":"columns_collection.cjs","names":["getService","ColumnRecipe","isNil","TreeNodeAccessor","isColumnProvider","getCfgRenderCtx","MainAccessorName","StagingAccessorName"],"sources":["../../src/columns/columns_collection.ts"],"sourcesContent":["import type {\n CollectionHandle,\n ColumnUniversalId,\n ColumnsCollectionDriverModel,\n ColumnsDiscoverOptions,\n ColumnsFilterOptions,\n SerializedColumnsSource,\n} from \"@milaboratories/pl-model-common\";\nimport type { GlobalCfgRenderCtx } from \"../render/internal\";\nimport { MainAccessorName, StagingAccessorName } from \"../render/internal\";\nimport type { ColumnsSource } from \"./column_providers\";\nimport { isColumnProvider } from \"./column_providers\";\nimport { TreeNodeAccessor } from \"../render/accessor\";\nimport { getService } from \"../services/get_services\";\nimport { getCfgRenderCtx } from \"../internal\";\nimport { ColumnRecipe } from \"./column_recipes\";\nimport { isNil } from \"es-toolkit\";\n\nexport interface ColumnsCollectionDeps {\n /** Render ctx used both for service resolution and for default ctx sources. */\n readonly ctx?: GlobalCfgRenderCtx;\n /** Override the resolved `columnsCollection` service — primarily for tests. */\n readonly driver?: ColumnsCollectionDriverModel;\n}\n\n/**\n * Shorthand literals accepted inside `ColumnsCollection`'s `sources`\n * array, expanded against the active render ctx:\n *\n * - `\"result_pool\"` – fan-out into the host's upstream-block result pool.\n * - `\"current_block\"` – main outputs + prerun (staging) accessors of the\n * current block, when present.\n */\nexport type ColumnsSourceShorthand = \"result_pool\" | \"current_block\";\n\n/**\n * Build a {@link ColumnsCollection} from sandbox-side source descriptors.\n * Resolves the `columnsCollection` driver (either from `deps.driver` or via\n * `getService(\"columnsCollection\")`) and asks the host to mint a fresh\n * handle covering the supplied sources. Pass `sources === undefined` to\n * fall back to the active render ctx (main outputs + prerun + result pool).\n *\n * `sources` accepts {@link ColumnsSourceShorthand} string literals\n * (`\"result_pool\"`, `\"current_block\"`) for the common ctx-derived sources.\n */\nexport function ColumnsCollection(\n sources?: (ColumnsCollection | ColumnsSource | ColumnsSourceShorthand)[],\n deps?: ColumnsCollectionDeps,\n): ColumnsCollection {\n const driver = deps?.driver ?? getService(\"columnsCollection\", { ctx: deps?.ctx });\n const serialized: SerializedColumnsSource[] = sources\n ? sources.flatMap((s) => toSerializedSources(s, deps?.ctx))\n : defaultCtxSources(deps?.ctx);\n return new ColumnsCollectionImpl(driver.create(serialized), driver);\n}\n\nexport function isColumnsCollection(value: unknown): value is ColumnsCollection {\n return value instanceof ColumnsCollectionImpl;\n}\n\n/**\n * Sandbox proxy over the host-side `ColumnsCollection` driver. The driver\n * owns all column-set state; this object only carries an opaque\n * {@link CollectionHandle} plus a reference to the driver service.\n *\n * Construct via {@link ColumnsCollection} — the bare constructor is a\n * trivial `(handle, driver)` pair so that `addSource` / `discover` / `filter`\n * can rebind a freshly-minted handle without going through source\n * serialisation again.\n *\n * Every method returning a `ColumnsCollection` mints a fresh handle on the\n * host — the host VM bridge pins it to the active render ctx, so the sandbox\n * never has to manage refcounts.\n */\nexport class ColumnsCollectionImpl {\n constructor(\n public readonly handle: CollectionHandle,\n private readonly driver: ColumnsCollectionDriverModel,\n ) {}\n\n isEmpty(): boolean {\n return this.driver.isEmpty(this.handle);\n }\n\n isFinal(): boolean {\n return this.driver.isFinal(this.handle);\n }\n\n getColumnIds(): ColumnUniversalId[] {\n return this.driver.getColumns(this.handle);\n }\n\n getColumns(): ColumnRecipe[] {\n return this.getColumnIds()\n .map((id) => ColumnRecipe(id))\n .filter((c): c is ColumnRecipe => !isNil(c));\n }\n\n addSource(source: ColumnsSource | ColumnsCollection): ColumnsCollection {\n return new ColumnsCollectionImpl(\n this.driver.addSource(this.handle, toSerializedSources(source)),\n this.driver,\n );\n }\n\n discover(options: ColumnsDiscoverOptions): ColumnsCollection {\n return new ColumnsCollectionImpl(this.driver.discover(this.handle, options), this.driver);\n }\n\n filter(options: ColumnsFilterOptions): ColumnsCollection {\n return new ColumnsCollectionImpl(this.driver.filter(this.handle, options), this.driver);\n }\n}\n\n/** Public type alias — value of the same name is the factory function above. */\nexport type ColumnsCollection = ColumnsCollectionImpl;\n\nfunction toSerializedSources(\n source: ColumnsCollection | ColumnsSource | ColumnsSourceShorthand,\n ctx?: GlobalCfgRenderCtx,\n): SerializedColumnsSource[] {\n if (source === \"result_pool\") {\n return [{ kind: \"result_pool\" }];\n }\n if (source === \"current_block\") {\n return currentBlockSources(ctx);\n }\n if (source instanceof ColumnsCollectionImpl) {\n return [{ kind: \"collection\", handle: source.handle }];\n }\n if (source instanceof TreeNodeAccessor) {\n return [{ kind: \"accessor\", accessor: source.handle, path: source.resolvePath }];\n }\n if (isColumnArray(source)) {\n return [{ kind: \"ids\", ids: source.columns.map((c) => c.id), isFinal: source.isFinal }];\n }\n if (isColumnProvider(source)) {\n return [{ kind: \"ids\", ids: source.getColumns().map((c) => c.id), isFinal: source.isFinal() }];\n }\n throw new Error(\"ColumnsCollection: unrecognised ColumnsSource shape\");\n}\n\nfunction isColumnArray(source: unknown): source is {\n columns: ReadonlyArray<{ id: ColumnUniversalId; spec?: unknown; data?: unknown }>;\n isFinal: boolean;\n} {\n if (typeof source !== \"object\" || source === null) return false;\n const s = source as { columns?: unknown; isFinal?: unknown };\n return Array.isArray(s.columns) && typeof s.isFinal === \"boolean\";\n}\n\nfunction currentBlockSources(ctx?: GlobalCfgRenderCtx): SerializedColumnsSource[] {\n const renderCtx = ctx ?? getCfgRenderCtx();\n const sources: SerializedColumnsSource[] = [];\n\n const outputs = renderCtx.getAccessorHandleByName(MainAccessorName);\n if (outputs !== undefined) {\n sources.push({ kind: \"accessor\", accessor: outputs, path: [MainAccessorName] });\n }\n const prerun = renderCtx.getAccessorHandleByName(StagingAccessorName);\n if (prerun !== undefined) {\n sources.push({ kind: \"accessor\", accessor: prerun, path: [StagingAccessorName] });\n }\n\n return sources;\n}\n\nfunction defaultCtxSources(ctx?: GlobalCfgRenderCtx): SerializedColumnsSource[] {\n return [...currentBlockSources(ctx), { kind: \"result_pool\" }];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA6CA,SAAgB,kBACd,SACA,MACmB;CACnB,MAAM,SAAS,MAAM,UAAUA,qBAAAA,WAAW,qBAAqB,EAAE,KAAK,MAAM,IAAI,CAAC;CACjF,MAAM,aAAwC,UAC1C,QAAQ,SAAS,MAAM,oBAAoB,GAAG,MAAM,GAAG,CAAC,IACxD,kBAAkB,MAAM,GAAG;CAC/B,OAAO,IAAI,sBAAsB,OAAO,OAAO,UAAU,GAAG,MAAM;AACpE;AAEA,SAAgB,oBAAoB,OAA4C;CAC9E,OAAO,iBAAiB;AAC1B;;;;;;;;;;;;;;;AAgBA,IAAa,wBAAb,MAAa,sBAAsB;CAEf;CACC;CAFnB,YACE,QACA,QACA;EAFgB,KAAA,SAAA;EACC,KAAA,SAAA;CAChB;CAEH,UAAmB;EACjB,OAAO,KAAK,OAAO,QAAQ,KAAK,MAAM;CACxC;CAEA,UAAmB;EACjB,OAAO,KAAK,OAAO,QAAQ,KAAK,MAAM;CACxC;CAEA,eAAoC;EAClC,OAAO,KAAK,OAAO,WAAW,KAAK,MAAM;CAC3C;CAEA,aAA6B;EAC3B,OAAO,KAAK,aAAa,CAAC,CACvB,KAAK,OAAOC,cAAAA,aAAa,EAAE,CAAC,CAAC,CAC7B,QAAQ,MAAyB,EAAA,GAACC,WAAAA,MAAAA,CAAM,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Y,OAAOC,iBAAAA,gBAAgB;CACzC,MAAM,UAAqC,CAAC;CAE5C,MAAM,UAAU,UAAU,wBAAwBC,mBAAAA,gBAAgB;CAClE,IAAI,YAAY,KAAA,GACd,QAAQ,KAAK;EAAE,MAAM;EAAY,UAAU;EAAS,MAAM,CAACA,mBAAAA,gBAAgB;CAAE,CAAC;CAEhF,MAAM,SAAS,UAAU,wBAAwBC,mBAAAA,mBAAmB;CACpE,IAAI,WAAW,KAAA,GACb,QAAQ,KAAK;EAAE,MAAM;EAAY,UAAU;EAAQ,MAAM,CAACA,mBAAAA,mBAAmB;CAAE,CAAC;CAGlF,OAAO;AACT;AAEA,SAAS,kBAAkB,KAAqD;CAC9E,OAAO,CAAC,GAAG,oBAAoB,GAAG,GAAG,EAAE,MAAM,cAAc,CAAC;AAC9D"}
@@ -3,7 +3,6 @@ import { ColumnRecipe } from "./column_recipes/index.js";
3
3
  import { ColumnsSource } from "./column_providers/types.js";
4
4
  import "./column_providers/index.js";
5
5
  import { CollectionHandle, ColumnUniversalId, ColumnsCollectionDriverModel, ColumnsDiscoverOptions, ColumnsFilterOptions } from "@milaboratories/pl-model-common";
6
- //#region src/columns/columns_collection.d.ts
7
6
  export interface ColumnsCollectionDeps {
8
7
  /** Render ctx used both for service resolution and for default ctx sources. */
9
8
  readonly ctx?: GlobalCfgRenderCtx;
@@ -59,5 +58,4 @@ export declare class ColumnsCollectionImpl {
59
58
  }
60
59
  /** Public type alias — value of the same name is the factory function above. */
61
60
  export type ColumnsCollection = ColumnsCollectionImpl;
62
- //#endregion
63
61
  //# sourceMappingURL=columns_collection.d.ts.map
@@ -1 +1 @@
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
+ {"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"}
@@ -5,7 +5,7 @@ import { getService } from "../services/get_services.js";
5
5
  import { ColumnRecipe } from "./column_recipes/index.js";
6
6
  import { isColumnProvider } from "./column_providers/index.js";
7
7
  import { isNil } from "es-toolkit";
8
- //#region src/columns/columns_collection.ts
8
+ // src/columns/columns_collection.ts
9
9
  /**
10
10
  * Build a {@link ColumnsCollection} from sandbox-side source descriptors.
11
11
  * Resolves the `columnsCollection` driver (either from `deps.driver` or via
@@ -116,7 +116,6 @@ function currentBlockSources(ctx) {
116
116
  function defaultCtxSources(ctx) {
117
117
  return [...currentBlockSources(ctx), { kind: "result_pool" }];
118
118
  }
119
- //#endregion
120
119
  export { ColumnsCollection, ColumnsCollectionImpl, isColumnsCollection };
121
120
 
122
121
  //# sourceMappingURL=columns_collection.js.map
@@ -3,7 +3,7 @@ const require_index = require("./column_providers/index.cjs");
3
3
  let _milaboratories_pl_model_common = require("@milaboratories/pl-model-common");
4
4
  let es_toolkit = require("es-toolkit");
5
5
  let lru_cache = require("lru-cache");
6
- //#region src/columns/data_column.ts
6
+ // src/columns/data_column.ts
7
7
  /**
8
8
  * Thrown by leaf-recipe factories when the requested column is provably
9
9
  * absent in the active render ctx — i.e. every relevant accessor reports
@@ -77,8 +77,9 @@ var DataColumnImpl = class DataColumnImpl {
77
77
  * Resolve via the ambient {@link ColumnRegistry}. Spec is resolved eagerly:
78
78
  * returns `undefined` if the leaf isn't reachable yet (resolving). Throws
79
79
  * {@link ColumnAbsentError} when every relevant accessor is `inputsLocked`
80
- * and the column did not appear — the column will not exist in this ctx.
81
- * Data and dataStatus stay lazy.
80
+ * and the column did not appear, or when the id names an export that is not
81
+ * a column (a `kind: "File"` object, for example) — the column will not
82
+ * exist in this ctx. Data and dataStatus stay lazy.
82
83
  */
83
84
  static fromId(id, { ctx } = {}) {
84
85
  const registry = new _milaboratories_pl_model_common.ColumnRegistry(require_index.getCtxProviders({ ctx }));
@@ -87,17 +88,7 @@ var DataColumnImpl = class DataColumnImpl {
87
88
  if (registry.isFinal()) throw new ColumnAbsentError(id);
88
89
  return;
89
90
  }
90
- const spec = readSpecAccessor(leaf);
91
- if ((0, es_toolkit.isNil)(spec)) {
92
- if (leaf.accessor.getInputsLocked()) throw new ColumnAbsentError(id);
93
- return;
94
- }
95
- if (!spec.hasData()) return void 0;
96
- return new DataColumnImpl(id, {
97
- getSpec: () => spec.getDataAsJson(),
98
- getData: () => readDataAccessor(leaf),
99
- getDataStatus: () => readDataStatus(leaf)
100
- });
91
+ return DataColumnImpl.fromAccessor(leaf);
101
92
  }
102
93
  /** {@link PlRef} wrapper over {@link fromId}. */
103
94
  static fromPlRef(ref) {
@@ -106,17 +97,19 @@ var DataColumnImpl = class DataColumnImpl {
106
97
  /**
107
98
  * Bind directly to an accessor-backed {@link LeafEntry} — no registry.
108
99
  * Throws {@link ColumnAbsentError} if the leaf has no spec field and its
109
- * accessor is `inputsLocked`. Returns `undefined` while still resolving.
100
+ * accessor is `inputsLocked`, or if it names an export that is not a column.
101
+ * Returns `undefined` while still resolving.
110
102
  */
111
103
  static fromAccessor(entry) {
112
- const spec = readSpecAccessor(entry);
113
- if ((0, es_toolkit.isNil)(spec)) {
104
+ if ((0, es_toolkit.isNil)(readSpecAccessor(entry))) {
114
105
  if (entry.accessor.getInputsLocked()) throw new ColumnAbsentError(entry.id);
115
106
  return;
116
107
  }
117
- if (!spec.hasData()) return void 0;
108
+ const spec = readSpec(entry);
109
+ if (spec === void 0) return void 0;
110
+ if (!(0, _milaboratories_pl_model_common.isPColumnSpec)(spec)) throw new ColumnAbsentError(entry.id);
118
111
  return new DataColumnImpl(entry.id, {
119
- getSpec: () => spec.getDataAsJson(),
112
+ getSpec: () => spec,
120
113
  getData: () => readDataAccessor(entry),
121
114
  getDataStatus: () => readDataStatus(entry)
122
115
  });
@@ -138,7 +131,9 @@ var DataColumnImpl = class DataColumnImpl {
138
131
  * Distinguishes `present` / `resolving` / `absent` for a {@link PObjectId}
139
132
  * in the active render ctx. Falls back to the registry's `isFinal()`
140
133
  * when the id has no entry — only then we can say `absent` instead of
141
- * `resolving`.
134
+ * `resolving`. The status tells only whether the spec is readable: for an
135
+ * export that is not a column it is `present`, and the factories throw
136
+ * {@link ColumnAbsentError}.
142
137
  */
143
138
  static getStatusById(id, { ctx } = {}) {
144
139
  const registry = new _milaboratories_pl_model_common.ColumnRegistry(require_index.getCtxProviders({ ctx }));
@@ -207,6 +202,12 @@ const readSpecAccessor = memoizeByEntry(({ accessor, name }) => accessor.travers
207
202
  assertFieldType: "Input",
208
203
  ignoreError: true
209
204
  }));
205
+ /** The leaf's spec, or `undefined` until the spec resource has data. */
206
+ const readSpec = memoizeByEntry((entry) => {
207
+ const spec = readSpecAccessor(entry);
208
+ if ((0, es_toolkit.isNil)(spec) || !spec.hasData()) return void 0;
209
+ return spec.getDataAsJson();
210
+ });
210
211
  /**
211
212
  * Per-entry counterpart to {@link readDataStatus}: tells whether the leaf's
212
213
  * **spec** can be read in this ctx, and — for the negative cases —
@@ -242,7 +243,6 @@ function memoizeByEntry(fn) {
242
243
  return hit.value;
243
244
  };
244
245
  }
245
- //#endregion
246
246
  exports.ColumnAbsentError = ColumnAbsentError;
247
247
  exports.DataColumn = DataColumn;
248
248
  exports.DataColumnImpl = DataColumnImpl;
@@ -1 +1 @@
1
- {"version":3,"file":"data_column.cjs","names":["ColumnOverriddenRecipe","ColumnRegistry","getCtxProviders","LRUCache"],"sources":["../../src/columns/data_column.ts"],"sourcesContent":["import {\n ColumnRegistry,\n createGlobalPObjectId,\n isPColumn,\n isPlRef,\n PlRef,\n PObjectId,\n type ColumnUniversalId,\n type LeafEntry,\n type PColumn,\n type PColumnSpec,\n type SpecOverrides,\n type SpecQuery,\n} from \"@milaboratories/pl-model-common\";\nimport type { GlobalCfgRenderCtx, PColumnDataUniversal } from \"../render/internal\";\nimport { getCtxProviders } from \"./column_providers\";\nimport { isNil } from \"es-toolkit\";\nimport { LRUCache } from \"lru-cache\";\nimport { TreeNodeAccessor } from \"../render\";\nimport type {\n ColumnFieldStatus,\n ColumnRecipe,\n ColumnRecipeId,\n ColumnResolutionStatus,\n} from \"./column_recipes/types\";\nimport { ColumnOverriddenRecipe } from \"./column_recipes/column_overrided_recipe\";\n\nexport type DataColumnId = PObjectId;\nexport type ColumnData = undefined | PColumnDataUniversal;\nexport type { ColumnFieldStatus, ColumnResolutionStatus } from \"./column_recipes/types\";\n\n/**\n * A {@link ColumnRecipe} that can be read directly in the sandbox: its\n * {@link getData} is guaranteed to be consistent with {@link getSpec}.\n *\n * This is a *capability*, not a class. Only two recipe shapes carry it — a\n * bare leaf and a spec-override over a bare leaf — because those are the only\n * ones whose data still matches their spec. An axis-filtered recipe drops axes\n * from its spec while the underlying data keeps them, and a discovered recipe\n * only materialises after a join; neither can be read here, so neither\n * implements this interface.\n *\n * Narrow to it with `hasReachableData(recipe)` rather than testing for a concrete\n * class — which recipe classes exist is an implementation detail behind\n * `recipe.id`.\n */\nexport interface DataColumnRecipe<\n ID extends ColumnRecipeId = ColumnRecipeId,\n> extends ColumnRecipe<ID> {\n /** Column data, consistent with {@link ColumnRecipe.getSpec}. */\n getData(): ColumnData;\n}\n\n/**\n * Thrown by leaf-recipe factories when the requested column is provably\n * absent in the active render ctx — i.e. every relevant accessor reports\n * `inputsLocked` and the column did not appear. Distinct from the\n * `undefined` return that the factories still use for the \"resolving\" case\n * (the column may still appear later).\n *\n * Catch at the boundary (resolver / filter+sort wiring / data-table assembly)\n * when partial absence should be surfaced to the user rather than silently\n * producing an empty result.\n */\nexport class ColumnAbsentError extends Error {\n constructor(public readonly id: ColumnUniversalId) {\n super(`Column is absent in the active render ctx and will not appear: ${id}`);\n this.name = \"ColumnAbsentError\";\n }\n}\n\n/**\n * The leaf-recipe building block: a {@link DataColumnRecipe} whose `id` is a bare\n * {@link PObjectId} and whose readers are bound to a single tree-accessor\n * leaf. Layered encodings (Overridden / Discovered / Filtered) are reified\n * through their dedicated recipe classes and reference leaf columns by id.\n *\n * Internal — consumers hold the {@link DataColumnRecipe} interface and construct\n * through the {@link DataColumnRecipe} dispatcher.\n */\nexport class DataColumnImpl implements DataColumnRecipe<PObjectId> {\n private specCache?: { readonly value: PColumnSpec };\n private dataCache?: { readonly value: ColumnData };\n private dataStatusCache?: { readonly value: ColumnFieldStatus };\n\n private constructor(\n public readonly id: PObjectId,\n private readonly options: {\n getSpec: () => PColumnSpec;\n getData: () => ColumnData;\n getDataStatus: () => ColumnFieldStatus;\n },\n ) {}\n\n /** A leaf-recipe references exactly one column — its own id. */\n getReferencedIds(): PObjectId[] {\n return [this.id];\n }\n\n getSpec(): PColumnSpec {\n if (this.specCache === undefined) {\n this.specCache = { value: this.options.getSpec() };\n }\n return this.specCache.value;\n }\n\n /** Leaf-shaped — points straight at `this.id`. */\n getQuery(): SpecQuery {\n return { type: \"column\", column: this.id } as SpecQuery;\n }\n\n getData(): ColumnData {\n if (this.dataCache === undefined) this.dataCache = { value: this.options.getData() };\n return this.dataCache.value;\n }\n\n getDataStatus(): ColumnFieldStatus {\n if (this.dataStatusCache === undefined) {\n this.dataStatusCache = { value: this.options.getDataStatus() };\n }\n return this.dataStatusCache.value;\n }\n\n /**\n * Overlay overrides → produces a {@link ColumnOverriddenRecipe} wrapping\n * this leaf. The leaf itself stays bare (id remains a plain PObjectId);\n * layering lives entirely in the recipe wrappers.\n */\n withSpecs(overrides: SpecOverrides): ColumnRecipe {\n return ColumnOverriddenRecipe.wrap(this, overrides);\n }\n\n /**\n * Resolve via the ambient {@link ColumnRegistry}. Spec is resolved eagerly:\n * returns `undefined` if the leaf isn't reachable yet (resolving). Throws\n * {@link ColumnAbsentError} when every relevant accessor is `inputsLocked`\n * and the column did not appear — the column will not exist in this ctx.\n * Data and dataStatus stay lazy.\n */\n static fromId(\n id: PObjectId,\n { ctx }: { ctx?: GlobalCfgRenderCtx } = {},\n ): undefined | DataColumnRecipe<PObjectId> {\n const registry = new ColumnRegistry(getCtxProviders({ ctx }));\n const leaf = registry.resolve(id);\n if (isNil(leaf)) {\n if (registry.isFinal()) throw new ColumnAbsentError(id);\n return undefined;\n }\n const spec = readSpecAccessor(leaf);\n if (isNil(spec)) {\n if (leaf.accessor.getInputsLocked()) throw new ColumnAbsentError(id);\n return undefined;\n }\n if (!spec.hasData()) return undefined;\n return new DataColumnImpl(id, {\n getSpec: () => spec.getDataAsJson<PColumnSpec>(),\n getData: () => readDataAccessor(leaf),\n getDataStatus: () => readDataStatus(leaf),\n });\n }\n\n /** {@link PlRef} wrapper over {@link fromId}. */\n static fromPlRef(ref: PlRef): undefined | DataColumnRecipe<PObjectId> {\n return DataColumnImpl.fromId(createGlobalPObjectId(ref.blockId, ref.name));\n }\n\n /**\n * Bind directly to an accessor-backed {@link LeafEntry} — no registry.\n * Throws {@link ColumnAbsentError} if the leaf has no spec field and its\n * accessor is `inputsLocked`. Returns `undefined` while still resolving.\n */\n static fromAccessor(entry: LeafEntry<TreeNodeAccessor>): undefined | DataColumnRecipe<PObjectId> {\n const spec = readSpecAccessor(entry);\n if (isNil(spec)) {\n if (entry.accessor.getInputsLocked()) throw new ColumnAbsentError(entry.id);\n return undefined;\n }\n if (!spec.hasData()) return undefined;\n return new DataColumnImpl(entry.id, {\n getSpec: () => spec.getDataAsJson<PColumnSpec>(),\n getData: () => readDataAccessor(entry),\n getDataStatus: () => readDataStatus(entry),\n });\n }\n\n /**\n * Wrap a materialised {@link PColumn}. If the input is already a\n * {@link DataColumnRecipe} leaf it is returned as-is.\n */\n static fromColumn(\n column: PColumn<ColumnData> | DataColumnRecipe<PObjectId>,\n ): DataColumnRecipe<PObjectId> {\n if (column instanceof DataColumnImpl) return column;\n // `DataColumnRecipe` is an interface, so `instanceof` above does not remove it\n // from the union. The only implementation carrying a bare `PObjectId` is\n // `DataColumnImpl` (wrappers expose `ColumnUniversalId`), so anything\n // reaching here is a materialised `PColumn`.\n const pColumn = column as PColumn<ColumnData>;\n return new DataColumnImpl(pColumn.id, {\n getSpec: () => pColumn.spec,\n getData: () => pColumn.data,\n getDataStatus: () => \"present\",\n });\n }\n\n /**\n * Distinguishes `present` / `resolving` / `absent` for a {@link PObjectId}\n * in the active render ctx. Falls back to the registry's `isFinal()`\n * when the id has no entry — only then we can say `absent` instead of\n * `resolving`.\n */\n static getStatusById(\n id: PObjectId,\n { ctx }: { ctx?: GlobalCfgRenderCtx } = {},\n ): ColumnResolutionStatus {\n const registry = new ColumnRegistry(getCtxProviders({ ctx }));\n const leaf = registry.resolve(id);\n if (isNil(leaf)) return registry.isFinal() ? \"absent\" : \"resolving\";\n return getLeafEntryStatus(leaf);\n }\n\n /** {@link PlRef} wrapper over {@link getStatusById}. */\n static getStatusByPlRef(\n ref: PlRef,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n ): ColumnResolutionStatus {\n return DataColumnImpl.getStatusById(createGlobalPObjectId(ref.blockId, ref.name), opts);\n }\n\n /** No registry — reads straight off the entry's accessor. */\n static getStatusByAccessor(entry: LeafEntry<TreeNodeAccessor>): ColumnResolutionStatus {\n return getLeafEntryStatus(entry);\n }\n}\n\n/** Anything the {@link DataColumnRecipe} dispatcher can build a leaf from. */\nexport type DataColumnSource =\n | PObjectId\n | PlRef\n | LeafEntry<TreeNodeAccessor>\n | PColumn<ColumnData>\n | DataColumnRecipe<PObjectId>;\n\n/**\n * Unified dispatcher — picks the right `DataColumnImpl.fromX` by source\n * shape. For ambiguous inputs callers can still use the explicit factories\n * (also attached as properties: `DataColumn.fromId`, `.fromPlRef`,\n * `.fromAccessor`, `.fromColumn`).\n */\nfunction DataColumnDispatch(\n source: DataColumnSource,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n): undefined | DataColumnRecipe<PObjectId> {\n if (typeof source === \"string\") return DataColumnImpl.fromId(source, opts);\n if (source instanceof DataColumnImpl) return source;\n // `DataColumnRecipe` is an interface — `instanceof` above cannot remove it from\n // the union, and only `DataColumnImpl` implements it with a bare id.\n const rest = source as LeafEntry<TreeNodeAccessor> | PlRef | PColumn<ColumnData>;\n if (\"accessor\" in rest) return DataColumnImpl.fromAccessor(rest);\n if (isPlRef(rest)) return DataColumnImpl.fromPlRef(rest);\n if (isPColumn(rest)) return DataColumnImpl.fromColumn(rest);\n throw new Error(\"DataColumn: unknown source shape\");\n}\n\n/**\n * Polymorphic counterpart to {@link DataColumnDispatch}: returns the\n * {@link ColumnResolutionStatus} for any factory input without constructing\n * the recipe. For already-materialised sources ({@link PColumn} value,\n * existing {@link DataColumnRecipe}) status is `present` by construction.\n */\nfunction DataColumnGetStatus(\n source: DataColumnSource,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n): ColumnResolutionStatus {\n if (typeof source === \"string\") return DataColumnImpl.getStatusById(source, opts);\n if (source instanceof DataColumnImpl) return \"present\";\n const rest = source as LeafEntry<TreeNodeAccessor> | PlRef | PColumn<ColumnData>;\n if (\"accessor\" in rest) return DataColumnImpl.getStatusByAccessor(rest);\n if (isPlRef(rest)) return DataColumnImpl.getStatusByPlRef(rest, opts);\n if (isPColumn(rest)) return \"present\";\n throw new Error(\"DataColumn.getStatus: unknown source shape\");\n}\n\nexport const DataColumn = Object.assign(DataColumnDispatch, {\n fromId: DataColumnImpl.fromId,\n fromPlRef: DataColumnImpl.fromPlRef,\n fromAccessor: DataColumnImpl.fromAccessor,\n fromColumn: DataColumnImpl.fromColumn,\n getStatus: DataColumnGetStatus,\n getStatusById: DataColumnImpl.getStatusById,\n getStatusByPlRef: DataColumnImpl.getStatusByPlRef,\n getStatusByAccessor: DataColumnImpl.getStatusByAccessor,\n});\n\n/**\n * Type-guard narrowing to a bare leaf — a {@link DataColumnRecipe} whose `id` is a\n * plain {@link PObjectId}.\n */\nexport function isDataColumn(value: unknown): value is DataColumnRecipe<PObjectId> {\n return value instanceof DataColumnImpl;\n}\n\nconst readSpecAccessor = memoizeByEntry(\n ({ accessor, name }: LeafEntry<TreeNodeAccessor>): undefined | TreeNodeAccessor =>\n accessor.traverse({ field: `${name}.spec`, assertFieldType: \"Input\", ignoreError: true }),\n);\n\n/**\n * Per-entry counterpart to {@link readDataStatus}: tells whether the leaf's\n * **spec** can be read in this ctx, and — for the negative cases —\n * distinguishes `resolving` from `absent` via `getInputsLocked()`.\n *\n * - spec field not yet on the entry's accessor + inputs locked → `absent`\n * - spec field not yet on the entry's accessor + still resolving → `resolving`\n * - spec resource present but bytes not yet written → `resolving`\n * (transient — the spec resource is connected, just unfilled)\n * - spec resource present and `hasData()` → `present`\n */\nfunction getLeafEntryStatus(entry: LeafEntry<TreeNodeAccessor>): ColumnResolutionStatus {\n const spec = readSpecAccessor(entry);\n if (isNil(spec)) return entry.accessor.getInputsLocked() ? \"absent\" : \"resolving\";\n if (!spec.hasData()) return \"resolving\";\n return \"present\";\n}\n\nconst readDataAccessor = memoizeByEntry(\n ({ accessor, name }: LeafEntry<TreeNodeAccessor>): undefined | TreeNodeAccessor =>\n accessor.traverse({ field: `${name}.data`, assertFieldType: \"Input\", ignoreError: true }),\n);\n\nconst readDataStatus = memoizeByEntry(\n ({ accessor, name }: LeafEntry<TreeNodeAccessor>): ColumnFieldStatus => {\n if (accessor.listInputFields().includes(`${name}.data`)) return \"present\";\n return accessor.getInputsLocked() ? \"absent\" : \"resolving\";\n },\n);\n\nfunction memoizeByEntry<R>(\n fn: (entry: LeafEntry<TreeNodeAccessor>) => R,\n): (entry: LeafEntry<TreeNodeAccessor>) => R {\n const cache = new LRUCache<string, { value: R }>({ max: 1000 });\n return (entry) => {\n const key = `${entry.accessor.handle}:${entry.name}`;\n let hit = cache.get(key);\n if (!hit) cache.set(key, (hit = { value: fn(entry) }));\n return hit.value;\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAgEA,IAAa,oBAAb,cAAuC,MAAM;CACf;CAA5B,YAAY,IAAuC;EACjD,MAAM,kEAAkE,IAAI;EADlD,KAAA,KAAA;EAE1B,KAAK,OAAO;CACd;AACF;;;;;;;;;;AAWA,IAAa,iBAAb,MAAa,eAAsD;CAM/C;CACC;CANnB;CACA;CACA;CAEA,YACE,IACA,SAKA;EANgB,KAAA,KAAA;EACC,KAAA,UAAA;CAKhB;;CAGH,mBAAgC;EAC9B,OAAO,CAAC,KAAK,EAAE;CACjB;CAEA,UAAuB;EACrB,IAAI,KAAK,cAAc,KAAA,GACrB,KAAK,YAAY,EAAE,OAAO,KAAK,QAAQ,QAAQ,EAAE;EAEnD,OAAO,KAAK,UAAU;CACxB;;CAGA,WAAsB;EACpB,OAAO;GAAE,MAAM;GAAU,QAAQ,KAAK;EAAG;CAC3C;CAEA,UAAsB;EACpB,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,EAAE,OAAO,KAAK,QAAQ,QAAQ,EAAE;EACnF,OAAO,KAAK,UAAU;CACxB;CAEA,gBAAmC;EACjC,IAAI,KAAK,oBAAoB,KAAA,GAC3B,KAAK,kBAAkB,EAAE,OAAO,KAAK,QAAQ,cAAc,EAAE;EAE/D,OAAO,KAAK,gBAAgB;CAC9B;;;;;;CAOA,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AAS,OAAO,GAAG,MAAM;EAC9C,IAAI,MAAM,MAAM,IAAI,GAAG;EACvB,IAAI,CAAC,KAAK,MAAM,IAAI,KAAM,MAAM,EAAE,OAAO,GAAG,KAAK,EAAE,CAAE;EACrD,OAAO,IAAI;CACb;AACF"}
1
+ {"version":3,"file":"data_column.cjs","names":["ColumnOverriddenRecipe","ColumnRegistry","getCtxProviders","isNil","createGlobalPObjectId","isPColumnSpec","isPlRef","isPColumn","LRUCache"],"sources":["../../src/columns/data_column.ts"],"sourcesContent":["import {\n ColumnRegistry,\n createGlobalPObjectId,\n isPColumn,\n isPColumnSpec,\n isPlRef,\n PlRef,\n PObjectId,\n type ColumnUniversalId,\n type LeafEntry,\n type PColumn,\n type PColumnSpec,\n type PObjectSpec,\n type SpecOverrides,\n type SpecQuery,\n} from \"@milaboratories/pl-model-common\";\nimport type { GlobalCfgRenderCtx, PColumnDataUniversal } from \"../render/internal\";\nimport { getCtxProviders } from \"./column_providers\";\nimport { isNil } from \"es-toolkit\";\nimport { LRUCache } from \"lru-cache\";\nimport { TreeNodeAccessor } from \"../render\";\nimport type {\n ColumnFieldStatus,\n ColumnRecipe,\n ColumnRecipeId,\n ColumnResolutionStatus,\n} from \"./column_recipes/types\";\nimport { ColumnOverriddenRecipe } from \"./column_recipes/column_overrided_recipe\";\n\nexport type DataColumnId = PObjectId;\nexport type ColumnData = undefined | PColumnDataUniversal;\nexport type { ColumnFieldStatus, ColumnResolutionStatus } from \"./column_recipes/types\";\n\n/**\n * A {@link ColumnRecipe} that can be read directly in the sandbox: its\n * {@link getData} is guaranteed to be consistent with {@link getSpec}.\n *\n * This is a *capability*, not a class. Only two recipe shapes carry it — a\n * bare leaf and a spec-override over a bare leaf — because those are the only\n * ones whose data still matches their spec. An axis-filtered recipe drops axes\n * from its spec while the underlying data keeps them, and a discovered recipe\n * only materialises after a join; neither can be read here, so neither\n * implements this interface.\n *\n * Narrow to it with `hasReachableData(recipe)` rather than testing for a concrete\n * class — which recipe classes exist is an implementation detail behind\n * `recipe.id`.\n */\nexport interface DataColumnRecipe<\n ID extends ColumnRecipeId = ColumnRecipeId,\n> extends ColumnRecipe<ID> {\n /** Column data, consistent with {@link ColumnRecipe.getSpec}. */\n getData(): ColumnData;\n}\n\n/**\n * Thrown by leaf-recipe factories when the requested column is provably\n * absent in the active render ctx — i.e. every relevant accessor reports\n * `inputsLocked` and the column did not appear. Distinct from the\n * `undefined` return that the factories still use for the \"resolving\" case\n * (the column may still appear later).\n *\n * Catch at the boundary (resolver / filter+sort wiring / data-table assembly)\n * when partial absence should be surfaced to the user rather than silently\n * producing an empty result.\n */\nexport class ColumnAbsentError extends Error {\n constructor(public readonly id: ColumnUniversalId) {\n super(`Column is absent in the active render ctx and will not appear: ${id}`);\n this.name = \"ColumnAbsentError\";\n }\n}\n\n/**\n * The leaf-recipe building block: a {@link DataColumnRecipe} whose `id` is a bare\n * {@link PObjectId} and whose readers are bound to a single tree-accessor\n * leaf. Layered encodings (Overridden / Discovered / Filtered) are reified\n * through their dedicated recipe classes and reference leaf columns by id.\n *\n * Internal — consumers hold the {@link DataColumnRecipe} interface and construct\n * through the {@link DataColumnRecipe} dispatcher.\n */\nexport class DataColumnImpl implements DataColumnRecipe<PObjectId> {\n private specCache?: { readonly value: PColumnSpec };\n private dataCache?: { readonly value: ColumnData };\n private dataStatusCache?: { readonly value: ColumnFieldStatus };\n\n private constructor(\n public readonly id: PObjectId,\n private readonly options: {\n getSpec: () => PColumnSpec;\n getData: () => ColumnData;\n getDataStatus: () => ColumnFieldStatus;\n },\n ) {}\n\n /** A leaf-recipe references exactly one column — its own id. */\n getReferencedIds(): PObjectId[] {\n return [this.id];\n }\n\n getSpec(): PColumnSpec {\n if (this.specCache === undefined) {\n this.specCache = { value: this.options.getSpec() };\n }\n return this.specCache.value;\n }\n\n /** Leaf-shaped — points straight at `this.id`. */\n getQuery(): SpecQuery {\n return { type: \"column\", column: this.id } as SpecQuery;\n }\n\n getData(): ColumnData {\n if (this.dataCache === undefined) this.dataCache = { value: this.options.getData() };\n return this.dataCache.value;\n }\n\n getDataStatus(): ColumnFieldStatus {\n if (this.dataStatusCache === undefined) {\n this.dataStatusCache = { value: this.options.getDataStatus() };\n }\n return this.dataStatusCache.value;\n }\n\n /**\n * Overlay overrides → produces a {@link ColumnOverriddenRecipe} wrapping\n * this leaf. The leaf itself stays bare (id remains a plain PObjectId);\n * layering lives entirely in the recipe wrappers.\n */\n withSpecs(overrides: SpecOverrides): ColumnRecipe {\n return ColumnOverriddenRecipe.wrap(this, overrides);\n }\n\n /**\n * Resolve via the ambient {@link ColumnRegistry}. Spec is resolved eagerly:\n * returns `undefined` if the leaf isn't reachable yet (resolving). Throws\n * {@link ColumnAbsentError} when every relevant accessor is `inputsLocked`\n * and the column did not appear, or when the id names an export that is not\n * a column (a `kind: \"File\"` object, for example) — the column will not\n * exist in this ctx. Data and dataStatus stay lazy.\n */\n static fromId(\n id: PObjectId,\n { ctx }: { ctx?: GlobalCfgRenderCtx } = {},\n ): undefined | DataColumnRecipe<PObjectId> {\n const registry = new ColumnRegistry(getCtxProviders({ ctx }));\n const leaf = registry.resolve(id);\n if (isNil(leaf)) {\n if (registry.isFinal()) throw new ColumnAbsentError(id);\n return undefined;\n }\n return DataColumnImpl.fromAccessor(leaf);\n }\n\n /** {@link PlRef} wrapper over {@link fromId}. */\n static fromPlRef(ref: PlRef): undefined | DataColumnRecipe<PObjectId> {\n return DataColumnImpl.fromId(createGlobalPObjectId(ref.blockId, ref.name));\n }\n\n /**\n * Bind directly to an accessor-backed {@link LeafEntry} — no registry.\n * Throws {@link ColumnAbsentError} if the leaf has no spec field and its\n * accessor is `inputsLocked`, or if it names an export that is not a column.\n * Returns `undefined` while still resolving.\n */\n static fromAccessor(entry: LeafEntry<TreeNodeAccessor>): undefined | DataColumnRecipe<PObjectId> {\n if (isNil(readSpecAccessor(entry))) {\n if (entry.accessor.getInputsLocked()) throw new ColumnAbsentError(entry.id);\n return undefined;\n }\n const spec = readSpec(entry);\n if (spec === undefined) return undefined;\n if (!isPColumnSpec(spec)) throw new ColumnAbsentError(entry.id);\n return new DataColumnImpl(entry.id, {\n getSpec: () => spec,\n getData: () => readDataAccessor(entry),\n getDataStatus: () => readDataStatus(entry),\n });\n }\n\n /**\n * Wrap a materialised {@link PColumn}. If the input is already a\n * {@link DataColumnRecipe} leaf it is returned as-is.\n */\n static fromColumn(\n column: PColumn<ColumnData> | DataColumnRecipe<PObjectId>,\n ): DataColumnRecipe<PObjectId> {\n if (column instanceof DataColumnImpl) return column;\n // `DataColumnRecipe` is an interface, so `instanceof` above does not remove it\n // from the union. The only implementation carrying a bare `PObjectId` is\n // `DataColumnImpl` (wrappers expose `ColumnUniversalId`), so anything\n // reaching here is a materialised `PColumn`.\n const pColumn = column as PColumn<ColumnData>;\n return new DataColumnImpl(pColumn.id, {\n getSpec: () => pColumn.spec,\n getData: () => pColumn.data,\n getDataStatus: () => \"present\",\n });\n }\n\n /**\n * Distinguishes `present` / `resolving` / `absent` for a {@link PObjectId}\n * in the active render ctx. Falls back to the registry's `isFinal()`\n * when the id has no entry — only then we can say `absent` instead of\n * `resolving`. The status tells only whether the spec is readable: for an\n * export that is not a column it is `present`, and the factories throw\n * {@link ColumnAbsentError}.\n */\n static getStatusById(\n id: PObjectId,\n { ctx }: { ctx?: GlobalCfgRenderCtx } = {},\n ): ColumnResolutionStatus {\n const registry = new ColumnRegistry(getCtxProviders({ ctx }));\n const leaf = registry.resolve(id);\n if (isNil(leaf)) return registry.isFinal() ? \"absent\" : \"resolving\";\n return getLeafEntryStatus(leaf);\n }\n\n /** {@link PlRef} wrapper over {@link getStatusById}. */\n static getStatusByPlRef(\n ref: PlRef,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n ): ColumnResolutionStatus {\n return DataColumnImpl.getStatusById(createGlobalPObjectId(ref.blockId, ref.name), opts);\n }\n\n /** No registry — reads straight off the entry's accessor. */\n static getStatusByAccessor(entry: LeafEntry<TreeNodeAccessor>): ColumnResolutionStatus {\n return getLeafEntryStatus(entry);\n }\n}\n\n/** Anything the {@link DataColumnRecipe} dispatcher can build a leaf from. */\nexport type DataColumnSource =\n | PObjectId\n | PlRef\n | LeafEntry<TreeNodeAccessor>\n | PColumn<ColumnData>\n | DataColumnRecipe<PObjectId>;\n\n/**\n * Unified dispatcher — picks the right `DataColumnImpl.fromX` by source\n * shape. For ambiguous inputs callers can still use the explicit factories\n * (also attached as properties: `DataColumn.fromId`, `.fromPlRef`,\n * `.fromAccessor`, `.fromColumn`).\n */\nfunction DataColumnDispatch(\n source: DataColumnSource,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n): undefined | DataColumnRecipe<PObjectId> {\n if (typeof source === \"string\") return DataColumnImpl.fromId(source, opts);\n if (source instanceof DataColumnImpl) return source;\n // `DataColumnRecipe` is an interface — `instanceof` above cannot remove it from\n // the union, and only `DataColumnImpl` implements it with a bare id.\n const rest = source as LeafEntry<TreeNodeAccessor> | PlRef | PColumn<ColumnData>;\n if (\"accessor\" in rest) return DataColumnImpl.fromAccessor(rest);\n if (isPlRef(rest)) return DataColumnImpl.fromPlRef(rest);\n if (isPColumn(rest)) return DataColumnImpl.fromColumn(rest);\n throw new Error(\"DataColumn: unknown source shape\");\n}\n\n/**\n * Polymorphic counterpart to {@link DataColumnDispatch}: returns the\n * {@link ColumnResolutionStatus} for any factory input without constructing\n * the recipe. For already-materialised sources ({@link PColumn} value,\n * existing {@link DataColumnRecipe}) status is `present` by construction.\n */\nfunction DataColumnGetStatus(\n source: DataColumnSource,\n opts: { ctx?: GlobalCfgRenderCtx } = {},\n): ColumnResolutionStatus {\n if (typeof source === \"string\") return DataColumnImpl.getStatusById(source, opts);\n if (source instanceof DataColumnImpl) return \"present\";\n const rest = source as LeafEntry<TreeNodeAccessor> | PlRef | PColumn<ColumnData>;\n if (\"accessor\" in rest) return DataColumnImpl.getStatusByAccessor(rest);\n if (isPlRef(rest)) return DataColumnImpl.getStatusByPlRef(rest, opts);\n if (isPColumn(rest)) return \"present\";\n throw new Error(\"DataColumn.getStatus: unknown source shape\");\n}\n\nexport const DataColumn = Object.assign(DataColumnDispatch, {\n fromId: DataColumnImpl.fromId,\n fromPlRef: DataColumnImpl.fromPlRef,\n fromAccessor: DataColumnImpl.fromAccessor,\n fromColumn: DataColumnImpl.fromColumn,\n getStatus: DataColumnGetStatus,\n getStatusById: DataColumnImpl.getStatusById,\n getStatusByPlRef: DataColumnImpl.getStatusByPlRef,\n getStatusByAccessor: DataColumnImpl.getStatusByAccessor,\n});\n\n/**\n * Type-guard narrowing to a bare leaf — a {@link DataColumnRecipe} whose `id` is a\n * plain {@link PObjectId}.\n */\nexport function isDataColumn(value: unknown): value is DataColumnRecipe<PObjectId> {\n return value instanceof DataColumnImpl;\n}\n\nconst readSpecAccessor = memoizeByEntry(\n ({ accessor, name }: LeafEntry<TreeNodeAccessor>): undefined | TreeNodeAccessor =>\n accessor.traverse({ field: `${name}.spec`, assertFieldType: \"Input\", ignoreError: true }),\n);\n\n/** The leaf's spec, or `undefined` until the spec resource has data. */\nconst readSpec = memoizeByEntry((entry: LeafEntry<TreeNodeAccessor>): undefined | PObjectSpec => {\n const spec = readSpecAccessor(entry);\n if (isNil(spec) || !spec.hasData()) return undefined;\n return spec.getDataAsJson<PObjectSpec>();\n});\n\n/**\n * Per-entry counterpart to {@link readDataStatus}: tells whether the leaf's\n * **spec** can be read in this ctx, and — for the negative cases —\n * distinguishes `resolving` from `absent` via `getInputsLocked()`.\n *\n * - spec field not yet on the entry's accessor + inputs locked → `absent`\n * - spec field not yet on the entry's accessor + still resolving → `resolving`\n * - spec resource present but bytes not yet written → `resolving`\n * (transient — the spec resource is connected, just unfilled)\n * - spec resource present and `hasData()` → `present`\n */\nfunction getLeafEntryStatus(entry: LeafEntry<TreeNodeAccessor>): ColumnResolutionStatus {\n const spec = readSpecAccessor(entry);\n if (isNil(spec)) return entry.accessor.getInputsLocked() ? \"absent\" : \"resolving\";\n if (!spec.hasData()) return \"resolving\";\n return \"present\";\n}\n\nconst readDataAccessor = memoizeByEntry(\n ({ accessor, name }: LeafEntry<TreeNodeAccessor>): undefined | TreeNodeAccessor =>\n accessor.traverse({ field: `${name}.data`, assertFieldType: \"Input\", ignoreError: true }),\n);\n\nconst readDataStatus = memoizeByEntry(\n ({ accessor, name }: LeafEntry<TreeNodeAccessor>): ColumnFieldStatus => {\n if (accessor.listInputFields().includes(`${name}.data`)) return \"present\";\n return accessor.getInputsLocked() ? \"absent\" : \"resolving\";\n },\n);\n\nfunction memoizeByEntry<R>(\n fn: (entry: LeafEntry<TreeNodeAccessor>) => R,\n): (entry: LeafEntry<TreeNodeAccessor>) => R {\n const cache = new LRUCache<string, { value: R }>({ max: 1000 });\n return (entry) => {\n const key = `${entry.accessor.handle}:${entry.name}`;\n let hit = cache.get(key);\n if (!hit) cache.set(key, (hit = { value: fn(entry) }));\n return hit.value;\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAkEA,IAAa,oBAAb,cAAuC,MAAM;CACf;CAA5B,YAAY,IAAuC;EACjD,MAAM,kEAAkE,IAAI;EADlD,KAAA,KAAA;EAE1B,KAAK,OAAO;CACd;AACF;;;;;;;;;;AAWA,IAAa,iBAAb,MAAa,eAAsD;CAM/C;CACC;CANnB;CACA;CACA;CAEA,YACE,IACA,SAKA;EANgB,KAAA,KAAA;EACC,KAAA,UAAA;CAKhB;;CAGH,mBAAgC;EAC9B,OAAO,CAAC,KAAK,EAAE;CACjB;CAEA,UAAuB;EACrB,IAAI,KAAK,cAAc,KAAA,GACrB,KAAK,YAAY,EAAE,OAAO,KAAK,QAAQ,QAAQ,EAAE;EAEnD,OAAO,KAAK,UAAU;CACxB;;CAGA,WAAsB;EACpB,OAAO;GAAE,MAAM;GAAU,QAAQ,KAAK;EAAG;CAC3C;CAEA,UAAsB;EACpB,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,EAAE,OAAO,KAAK,QAAQ,QAAQ,EAAE;EACnF,OAAO,KAAK,UAAU;CACxB;CAEA,gBAAmC;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,IAAI,WAAW;AACjD,CACF;AAEA,SAAS,eACP,IAC2C;CAC3C,MAAM,QAAQ,IAAIK,UAAAA,SAA+B,EAAE,KAAK,IAAK,CAAC;CAC9D,QAAQ,UAAU;EAChB,MAAM,MAAM,GAAG,MAAM,SAAS,OAAO,GAAG,MAAM;EAC9C,IAAI,MAAM,MAAM,IAAI,GAAG;EACvB,IAAI,CAAC,KAAK,MAAM,IAAI,KAAM,MAAM,EAAE,OAAO,GAAG,KAAK,EAAE,CAAE;EACrD,OAAO,IAAI;CACb;AACF"}
@@ -3,7 +3,6 @@ import { TreeNodeAccessor } from "../render/accessor.js";
3
3
  import "../render/index.js";
4
4
  import { ColumnFieldStatus, ColumnRecipe, ColumnRecipeId, ColumnResolutionStatus } from "./column_recipes/types.js";
5
5
  import { ColumnUniversalId, LeafEntry, PColumn, PColumnSpec, PObjectId, PlRef, SpecOverrides, SpecQuery } from "@milaboratories/pl-model-common";
6
- //#region src/columns/data_column.d.ts
7
6
  export type DataColumnId = PObjectId;
8
7
  export type ColumnData = undefined | PColumnDataUniversal;
9
8
  /**
@@ -73,8 +72,9 @@ export declare class DataColumnImpl implements DataColumnRecipe<PObjectId> {
73
72
  * Resolve via the ambient {@link ColumnRegistry}. Spec is resolved eagerly:
74
73
  * returns `undefined` if the leaf isn't reachable yet (resolving). Throws
75
74
  * {@link ColumnAbsentError} when every relevant accessor is `inputsLocked`
76
- * and the column did not appear — the column will not exist in this ctx.
77
- * Data and dataStatus stay lazy.
75
+ * and the column did not appear, or when the id names an export that is not
76
+ * a column (a `kind: "File"` object, for example) — the column will not
77
+ * exist in this ctx. Data and dataStatus stay lazy.
78
78
  */
79
79
  static fromId(id: PObjectId, { ctx }?: {
80
80
  ctx?: GlobalCfgRenderCtx;
@@ -84,7 +84,8 @@ export declare class DataColumnImpl implements DataColumnRecipe<PObjectId> {
84
84
  /**
85
85
  * Bind directly to an accessor-backed {@link LeafEntry} — no registry.
86
86
  * Throws {@link ColumnAbsentError} if the leaf has no spec field and its
87
- * accessor is `inputsLocked`. Returns `undefined` while still resolving.
87
+ * accessor is `inputsLocked`, or if it names an export that is not a column.
88
+ * Returns `undefined` while still resolving.
88
89
  */
89
90
  static fromAccessor(entry: LeafEntry<TreeNodeAccessor>): undefined | DataColumnRecipe<PObjectId>;
90
91
  /**
@@ -96,7 +97,9 @@ export declare class DataColumnImpl implements DataColumnRecipe<PObjectId> {
96
97
  * Distinguishes `present` / `resolving` / `absent` for a {@link PObjectId}
97
98
  * in the active render ctx. Falls back to the registry's `isFinal()`
98
99
  * when the id has no entry — only then we can say `absent` instead of
99
- * `resolving`.
100
+ * `resolving`. The status tells only whether the spec is readable: for an
101
+ * export that is not a column it is `present`, and the factories throw
102
+ * {@link ColumnAbsentError}.
100
103
  */
101
104
  static getStatusById(id: PObjectId, { ctx }?: {
102
105
  ctx?: GlobalCfgRenderCtx;
@@ -143,6 +146,5 @@ export declare const DataColumn: typeof DataColumnDispatch & {
143
146
  * plain {@link PObjectId}.
144
147
  */
145
148
  export declare function isDataColumn(value: unknown): value is DataColumnRecipe<PObjectId>;
146
- //#endregion
147
149
  export type { ColumnFieldStatus, ColumnResolutionStatus };
148
150
  //# sourceMappingURL=data_column.d.ts.map
@@ -1 +1 @@
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,iBAA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