@elaraai/east-ui 1.0.80 → 1.0.82

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 (353) hide show
  1. package/dist/src/charts/chart/index.d.ts +4 -0
  2. package/dist/src/charts/chart/index.d.ts.map +1 -1
  3. package/dist/src/charts/spec/index.d.ts +8 -0
  4. package/dist/src/charts/spec/index.d.ts.map +1 -1
  5. package/dist/src/collections/deck/index.d.ts +8 -0
  6. package/dist/src/collections/deck/index.d.ts.map +1 -1
  7. package/dist/src/collections/index.d.ts +2 -2
  8. package/dist/src/collections/index.d.ts.map +1 -1
  9. package/dist/src/collections/index.js.map +1 -1
  10. package/dist/src/collections/library/index.d.ts +4 -0
  11. package/dist/src/collections/library/index.d.ts.map +1 -1
  12. package/dist/src/collections/library/types.d.ts +4 -0
  13. package/dist/src/collections/library/types.d.ts.map +1 -1
  14. package/dist/src/collections/matrix/index.d.ts +56 -19
  15. package/dist/src/collections/matrix/index.d.ts.map +1 -1
  16. package/dist/src/collections/matrix/index.js +38 -24
  17. package/dist/src/collections/matrix/index.js.map +1 -1
  18. package/dist/src/collections/plan/assemble.d.ts +655 -2113
  19. package/dist/src/collections/plan/assemble.d.ts.map +1 -1
  20. package/dist/src/collections/plan/assemble.js +159 -136
  21. package/dist/src/collections/plan/assemble.js.map +1 -1
  22. package/dist/src/collections/plan/builders.d.ts +193 -40
  23. package/dist/src/collections/plan/builders.d.ts.map +1 -1
  24. package/dist/src/collections/plan/builders.js +162 -32
  25. package/dist/src/collections/plan/builders.js.map +1 -1
  26. package/dist/src/collections/plan/factories.d.ts +290 -116
  27. package/dist/src/collections/plan/factories.d.ts.map +1 -1
  28. package/dist/src/collections/plan/factories.js +281 -156
  29. package/dist/src/collections/plan/factories.js.map +1 -1
  30. package/dist/src/collections/plan/index.d.ts +111 -58
  31. package/dist/src/collections/plan/index.d.ts.map +1 -1
  32. package/dist/src/collections/plan/index.js +62 -31
  33. package/dist/src/collections/plan/index.js.map +1 -1
  34. package/dist/src/collections/plan/ir.d.ts +759 -1769
  35. package/dist/src/collections/plan/ir.d.ts.map +1 -1
  36. package/dist/src/collections/plan/ir.js +51 -27
  37. package/dist/src/collections/plan/ir.js.map +1 -1
  38. package/dist/src/collections/plan/pick.d.ts +89 -71
  39. package/dist/src/collections/plan/pick.d.ts.map +1 -1
  40. package/dist/src/collections/plan/pick.js +101 -86
  41. package/dist/src/collections/plan/pick.js.map +1 -1
  42. package/dist/src/collections/plan/root.d.ts +164 -77
  43. package/dist/src/collections/plan/root.d.ts.map +1 -1
  44. package/dist/src/collections/plan/root.js +350 -42
  45. package/dist/src/collections/plan/root.js.map +1 -1
  46. package/dist/src/collections/plan/series.d.ts +12524 -10527
  47. package/dist/src/collections/plan/series.d.ts.map +1 -1
  48. package/dist/src/collections/plan/series.js +1596 -298
  49. package/dist/src/collections/plan/series.js.map +1 -1
  50. package/dist/src/collections/plan/types.d.ts +6115 -2802
  51. package/dist/src/collections/plan/types.d.ts.map +1 -1
  52. package/dist/src/collections/plan/types.js +575 -170
  53. package/dist/src/collections/plan/types.js.map +1 -1
  54. package/dist/src/collections/sheet/bridge.d.ts +154 -43
  55. package/dist/src/collections/sheet/bridge.d.ts.map +1 -1
  56. package/dist/src/collections/sheet/bridge.js +383 -240
  57. package/dist/src/collections/sheet/bridge.js.map +1 -1
  58. package/dist/src/collections/sheet/columns.d.ts +66 -16
  59. package/dist/src/collections/sheet/columns.d.ts.map +1 -1
  60. package/dist/src/collections/sheet/columns.js +25 -25
  61. package/dist/src/collections/sheet/columns.js.map +1 -1
  62. package/dist/src/collections/sheet/context-bridge.d.ts +48 -0
  63. package/dist/src/collections/sheet/context-bridge.d.ts.map +1 -0
  64. package/dist/src/collections/sheet/context-bridge.js +216 -0
  65. package/dist/src/collections/sheet/context-bridge.js.map +1 -0
  66. package/dist/src/collections/sheet/draft-bridge.d.ts +37 -0
  67. package/dist/src/collections/sheet/draft-bridge.d.ts.map +1 -0
  68. package/dist/src/collections/sheet/draft-bridge.js +153 -0
  69. package/dist/src/collections/sheet/draft-bridge.js.map +1 -0
  70. package/dist/src/collections/sheet/drafts.d.ts +14 -0
  71. package/dist/src/collections/sheet/drafts.d.ts.map +1 -0
  72. package/dist/src/collections/sheet/drafts.js +14 -0
  73. package/dist/src/collections/sheet/drafts.js.map +1 -0
  74. package/dist/src/collections/sheet/editing-bridge.d.ts +36 -0
  75. package/dist/src/collections/sheet/editing-bridge.d.ts.map +1 -0
  76. package/dist/src/collections/sheet/editing-bridge.js +196 -0
  77. package/dist/src/collections/sheet/editing-bridge.js.map +1 -0
  78. package/dist/src/collections/sheet/editing-types.d.ts +268 -0
  79. package/dist/src/collections/sheet/editing-types.d.ts.map +1 -0
  80. package/dist/src/collections/sheet/editing-types.js +34 -0
  81. package/dist/src/collections/sheet/editing-types.js.map +1 -0
  82. package/dist/src/collections/sheet/edits.d.ts +37 -0
  83. package/dist/src/collections/sheet/edits.d.ts.map +1 -0
  84. package/dist/src/collections/sheet/edits.js +31 -0
  85. package/dist/src/collections/sheet/edits.js.map +1 -0
  86. package/dist/src/collections/sheet/group.d.ts +165 -0
  87. package/dist/src/collections/sheet/group.d.ts.map +1 -0
  88. package/dist/src/collections/sheet/group.js +52 -0
  89. package/dist/src/collections/sheet/group.js.map +1 -0
  90. package/dist/src/collections/sheet/index.d.ts +171 -27
  91. package/dist/src/collections/sheet/index.d.ts.map +1 -1
  92. package/dist/src/collections/sheet/index.js +99 -17
  93. package/dist/src/collections/sheet/index.js.map +1 -1
  94. package/dist/src/collections/sheet/link.d.ts +22 -16
  95. package/dist/src/collections/sheet/link.d.ts.map +1 -1
  96. package/dist/src/collections/sheet/link.js +18 -12
  97. package/dist/src/collections/sheet/link.js.map +1 -1
  98. package/dist/src/collections/sheet/registers.d.ts +152 -5
  99. package/dist/src/collections/sheet/registers.d.ts.map +1 -1
  100. package/dist/src/collections/sheet/registers.js +154 -5
  101. package/dist/src/collections/sheet/registers.js.map +1 -1
  102. package/dist/src/collections/sheet/root.d.ts +175 -26
  103. package/dist/src/collections/sheet/root.d.ts.map +1 -1
  104. package/dist/src/collections/sheet/root.js +150 -26
  105. package/dist/src/collections/sheet/root.js.map +1 -1
  106. package/dist/src/collections/sheet/seed-bridge.d.ts +14 -0
  107. package/dist/src/collections/sheet/seed-bridge.d.ts.map +1 -0
  108. package/dist/src/collections/sheet/seed-bridge.js +51 -0
  109. package/dist/src/collections/sheet/seed-bridge.js.map +1 -0
  110. package/dist/src/collections/sheet/sub-rows.d.ts +249 -0
  111. package/dist/src/collections/sheet/sub-rows.d.ts.map +1 -0
  112. package/dist/src/collections/sheet/sub-rows.js +222 -0
  113. package/dist/src/collections/sheet/sub-rows.js.map +1 -0
  114. package/dist/src/collections/sheet/transactions.d.ts +76 -0
  115. package/dist/src/collections/sheet/transactions.d.ts.map +1 -0
  116. package/dist/src/collections/sheet/transactions.js +40 -0
  117. package/dist/src/collections/sheet/transactions.js.map +1 -0
  118. package/dist/src/collections/sheet/types.d.ts +12034 -3651
  119. package/dist/src/collections/sheet/types.d.ts.map +1 -1
  120. package/dist/src/collections/sheet/types.js +365 -48
  121. package/dist/src/collections/sheet/types.js.map +1 -1
  122. package/dist/src/collections/table/index.d.ts +98 -123
  123. package/dist/src/collections/table/index.d.ts.map +1 -1
  124. package/dist/src/collections/table/index.js +97 -111
  125. package/dist/src/collections/table/index.js.map +1 -1
  126. package/dist/src/collections/table/types.d.ts +87 -31
  127. package/dist/src/collections/table/types.d.ts.map +1 -1
  128. package/dist/src/collections/table/types.js +51 -26
  129. package/dist/src/collections/table/types.js.map +1 -1
  130. package/dist/src/collections/value-tree/flatten.d.ts.map +1 -1
  131. package/dist/src/collections/value-tree/flatten.js +4 -1
  132. package/dist/src/collections/value-tree/flatten.js.map +1 -1
  133. package/dist/src/component.d.ts +5075 -4079
  134. package/dist/src/component.d.ts.map +1 -1
  135. package/dist/src/component.js +46 -46
  136. package/dist/src/component.js.map +1 -1
  137. package/dist/src/contracts/approval.d.ts +10 -8
  138. package/dist/src/contracts/approval.d.ts.map +1 -1
  139. package/dist/src/contracts/approval.js +10 -8
  140. package/dist/src/contracts/approval.js.map +1 -1
  141. package/dist/src/contracts/drag.d.ts +11 -9
  142. package/dist/src/contracts/drag.d.ts.map +1 -1
  143. package/dist/src/contracts/drag.js +28 -21
  144. package/dist/src/contracts/drag.js.map +1 -1
  145. package/dist/src/contracts/editing.d.ts +1283 -0
  146. package/dist/src/contracts/editing.d.ts.map +1 -0
  147. package/dist/src/contracts/editing.js +711 -0
  148. package/dist/src/contracts/editing.js.map +1 -0
  149. package/dist/src/contracts/index.d.ts +2 -1
  150. package/dist/src/contracts/index.d.ts.map +1 -1
  151. package/dist/src/contracts/index.js +2 -1
  152. package/dist/src/contracts/index.js.map +1 -1
  153. package/dist/src/contracts/pick.d.ts +6 -7
  154. package/dist/src/contracts/pick.d.ts.map +1 -1
  155. package/dist/src/contracts/pick.js +6 -7
  156. package/dist/src/contracts/pick.js.map +1 -1
  157. package/dist/src/contracts/review.d.ts +3 -1
  158. package/dist/src/contracts/review.d.ts.map +1 -1
  159. package/dist/src/contracts/review.js +3 -1
  160. package/dist/src/contracts/review.js.map +1 -1
  161. package/dist/src/contracts/source.d.ts +270 -80
  162. package/dist/src/contracts/source.d.ts.map +1 -1
  163. package/dist/src/contracts/source.js +357 -58
  164. package/dist/src/contracts/source.js.map +1 -1
  165. package/dist/src/display/chip-rail/index.d.ts.map +1 -1
  166. package/dist/src/display/chip-rail/index.js +10 -10
  167. package/dist/src/display/chip-rail/index.js.map +1 -1
  168. package/dist/src/extension.d.ts +2 -1
  169. package/dist/src/extension.d.ts.map +1 -1
  170. package/dist/src/extension.js +2 -1
  171. package/dist/src/extension.js.map +1 -1
  172. package/dist/src/format/index.d.ts +1 -154
  173. package/dist/src/format/index.d.ts.map +1 -1
  174. package/dist/src/format/types.d.ts +35 -23
  175. package/dist/src/format/types.d.ts.map +1 -1
  176. package/dist/src/format/types.js +16 -14
  177. package/dist/src/format/types.js.map +1 -1
  178. package/dist/src/forms/field/index.js +4 -4
  179. package/dist/src/forms/field/index.js.map +1 -1
  180. package/dist/src/forms/file-upload/index.js +16 -16
  181. package/dist/src/forms/file-upload/index.js.map +1 -1
  182. package/dist/src/index.d.ts +4 -2
  183. package/dist/src/index.d.ts.map +1 -1
  184. package/dist/src/index.js +12 -5
  185. package/dist/src/index.js.map +1 -1
  186. package/dist/src/internal.d.ts +8 -3
  187. package/dist/src/internal.d.ts.map +1 -1
  188. package/dist/src/internal.js +11 -3
  189. package/dist/src/internal.js.map +1 -1
  190. package/dist/src/layout/box/index.d.ts.map +1 -1
  191. package/dist/src/layout/box/index.js +47 -47
  192. package/dist/src/layout/box/index.js.map +1 -1
  193. package/dist/src/layout/flex/index.d.ts.map +1 -1
  194. package/dist/src/layout/flex/index.js +47 -47
  195. package/dist/src/layout/flex/index.js.map +1 -1
  196. package/dist/src/layout/grid/index.js +11 -11
  197. package/dist/src/layout/grid/index.js.map +1 -1
  198. package/dist/src/layout/scroll-area/index.d.ts.map +1 -1
  199. package/dist/src/layout/scroll-area/index.js +8 -8
  200. package/dist/src/layout/scroll-area/index.js.map +1 -1
  201. package/dist/src/layout/separator/index.d.ts.map +1 -1
  202. package/dist/src/layout/separator/index.js +6 -6
  203. package/dist/src/layout/separator/index.js.map +1 -1
  204. package/dist/src/layout/stack/index.d.ts.map +1 -1
  205. package/dist/src/layout/stack/index.js +46 -46
  206. package/dist/src/layout/stack/index.js.map +1 -1
  207. package/dist/src/layout/sticky/index.d.ts.map +1 -1
  208. package/dist/src/layout/sticky/index.js +8 -8
  209. package/dist/src/layout/sticky/index.js.map +1 -1
  210. package/dist/src/overlays/action-bar/index.d.ts.map +1 -1
  211. package/dist/src/overlays/action-bar/index.js +8 -8
  212. package/dist/src/overlays/action-bar/index.js.map +1 -1
  213. package/dist/src/platform/index.d.ts +1 -1
  214. package/dist/src/platform/index.d.ts.map +1 -1
  215. package/dist/src/platform/index.js +1 -1
  216. package/dist/src/platform/index.js.map +1 -1
  217. package/dist/src/platform/slice/impl.d.ts +62 -51
  218. package/dist/src/platform/slice/impl.d.ts.map +1 -1
  219. package/dist/src/platform/slice/impl.js +155 -72
  220. package/dist/src/platform/slice/impl.js.map +1 -1
  221. package/dist/src/platform/slice/index.d.ts +3744 -2226
  222. package/dist/src/platform/slice/index.d.ts.map +1 -1
  223. package/dist/src/platform/slice/index.js +43 -1
  224. package/dist/src/platform/slice/index.js.map +1 -1
  225. package/dist/src/runtime/collections/deck.d.ts +4 -0
  226. package/dist/src/runtime/collections/deck.d.ts.map +1 -1
  227. package/dist/src/runtime/collections/matrix.d.ts +10 -9
  228. package/dist/src/runtime/collections/matrix.d.ts.map +1 -1
  229. package/dist/src/runtime/collections/matrix.js +11 -6
  230. package/dist/src/runtime/collections/matrix.js.map +1 -1
  231. package/dist/src/runtime/collections/plan.d.ts +148 -65
  232. package/dist/src/runtime/collections/plan.d.ts.map +1 -1
  233. package/dist/src/runtime/collections/plan.js +155 -67
  234. package/dist/src/runtime/collections/plan.js.map +1 -1
  235. package/dist/src/runtime/collections/sheet.d.ts +56 -23
  236. package/dist/src/runtime/collections/sheet.d.ts.map +1 -1
  237. package/dist/src/runtime/collections/sheet.js +30 -22
  238. package/dist/src/runtime/collections/sheet.js.map +1 -1
  239. package/dist/src/runtime/collections/table.d.ts +18 -11
  240. package/dist/src/runtime/collections/table.d.ts.map +1 -1
  241. package/dist/src/runtime/collections/table.js +7 -4
  242. package/dist/src/runtime/collections/table.js.map +1 -1
  243. package/dist/src/shared/reify.d.ts +4 -46
  244. package/dist/src/shared/reify.d.ts.map +1 -1
  245. package/dist/src/shared/reify.js +4 -61
  246. package/dist/src/shared/reify.js.map +1 -1
  247. package/dist/src/shared/tree.d.ts +88 -0
  248. package/dist/src/shared/tree.d.ts.map +1 -0
  249. package/dist/src/shared/tree.js +134 -0
  250. package/dist/src/shared/tree.js.map +1 -0
  251. package/dist/src/slice/breakdown/index.d.ts +4 -0
  252. package/dist/src/slice/breakdown/index.d.ts.map +1 -1
  253. package/dist/src/slice/breakdown/types.d.ts +4 -0
  254. package/dist/src/slice/breakdown/types.d.ts.map +1 -1
  255. package/dist/src/slice/cohort/index.d.ts +24 -4
  256. package/dist/src/slice/cohort/index.d.ts.map +1 -1
  257. package/dist/src/slice/cohort/index.js +8 -4
  258. package/dist/src/slice/cohort/index.js.map +1 -1
  259. package/dist/src/slice/cohort/types.d.ts +11 -0
  260. package/dist/src/slice/cohort/types.d.ts.map +1 -1
  261. package/dist/src/slice/cohort/types.js +7 -0
  262. package/dist/src/slice/cohort/types.js.map +1 -1
  263. package/dist/src/slice/filter/index.d.ts +4 -0
  264. package/dist/src/slice/filter/index.d.ts.map +1 -1
  265. package/dist/src/slice/filter/types.d.ts +4 -0
  266. package/dist/src/slice/filter/types.d.ts.map +1 -1
  267. package/dist/src/slice/index.d.ts +736 -0
  268. package/dist/src/slice/index.d.ts.map +1 -1
  269. package/dist/src/slice/legend/index.d.ts +4 -0
  270. package/dist/src/slice/legend/index.d.ts.map +1 -1
  271. package/dist/src/slice/legend/types.d.ts +4 -0
  272. package/dist/src/slice/legend/types.d.ts.map +1 -1
  273. package/dist/src/slice/rail/index.d.ts +8 -4
  274. package/dist/src/slice/rail/index.d.ts.map +1 -1
  275. package/dist/src/slice/rail/index.js.map +1 -1
  276. package/dist/src/slice/range/index.d.ts +4 -0
  277. package/dist/src/slice/range/index.d.ts.map +1 -1
  278. package/dist/src/slice/range/types.d.ts +4 -0
  279. package/dist/src/slice/range/types.d.ts.map +1 -1
  280. package/dist/src/slice/search/index.d.ts +4 -0
  281. package/dist/src/slice/search/index.d.ts.map +1 -1
  282. package/dist/src/slice/search/types.d.ts +4 -0
  283. package/dist/src/slice/search/types.d.ts.map +1 -1
  284. package/dist/src/slice/summary/index.d.ts +4 -0
  285. package/dist/src/slice/summary/index.d.ts.map +1 -1
  286. package/dist/src/slice/summary/types.d.ts +4 -0
  287. package/dist/src/slice/summary/types.d.ts.map +1 -1
  288. package/dist/src/typography/code/index.js +1 -1
  289. package/dist/src/typography/code/index.js.map +1 -1
  290. package/dist/src/typography/code-block/index.js +7 -7
  291. package/dist/src/typography/code-block/index.js.map +1 -1
  292. package/dist/src/typography/heading/index.js +2 -2
  293. package/dist/src/typography/heading/index.js.map +1 -1
  294. package/dist/src/typography/list/index.js +1 -1
  295. package/dist/src/typography/list/index.js.map +1 -1
  296. package/dist/src/typography/mark/index.js +1 -1
  297. package/dist/src/typography/mark/index.js.map +1 -1
  298. package/dist/src/typography/note/index.js +1 -1
  299. package/dist/src/typography/note/index.js.map +1 -1
  300. package/dist/src/typography/numeric/index.d.ts +3 -308
  301. package/dist/src/typography/numeric/index.d.ts.map +1 -1
  302. package/dist/src/typography/numeric/index.js +4 -4
  303. package/dist/src/typography/numeric/index.js.map +1 -1
  304. package/dist/src/typography/numeric/types.d.ts +1 -154
  305. package/dist/src/typography/numeric/types.d.ts.map +1 -1
  306. package/dist/src/typography/text/index.js +1 -1
  307. package/dist/src/typography/text/index.js.map +1 -1
  308. package/dist/test/collections/matrix.examples.d.ts +7 -3
  309. package/dist/test/collections/matrix.examples.d.ts.map +1 -1
  310. package/dist/test/collections/matrix.examples.js +55 -24
  311. package/dist/test/collections/matrix.examples.js.map +1 -1
  312. package/dist/test/collections/paged-source.examples.d.ts +4 -0
  313. package/dist/test/collections/paged-source.examples.d.ts.map +1 -1
  314. package/dist/test/collections/paged-source.examples.js +98 -13
  315. package/dist/test/collections/paged-source.examples.js.map +1 -1
  316. package/dist/test/collections/plan.examples.d.ts +101 -26
  317. package/dist/test/collections/plan.examples.d.ts.map +1 -1
  318. package/dist/test/collections/plan.examples.js +1481 -755
  319. package/dist/test/collections/plan.examples.js.map +1 -1
  320. package/dist/test/collections/sheet-link.examples.d.ts +7 -0
  321. package/dist/test/collections/sheet-link.examples.d.ts.map +1 -0
  322. package/dist/test/collections/sheet-link.examples.js +41 -0
  323. package/dist/test/collections/sheet-link.examples.js.map +1 -0
  324. package/dist/test/collections/sheet-transactions.examples.d.ts +7 -0
  325. package/dist/test/collections/sheet-transactions.examples.d.ts.map +1 -0
  326. package/dist/test/collections/sheet-transactions.examples.js +58 -0
  327. package/dist/test/collections/sheet-transactions.examples.js.map +1 -0
  328. package/dist/test/collections/sheet.examples.d.ts +52 -5
  329. package/dist/test/collections/sheet.examples.d.ts.map +1 -1
  330. package/dist/test/collections/sheet.examples.js +500 -158
  331. package/dist/test/collections/sheet.examples.js.map +1 -1
  332. package/dist/test/collections/table.examples.d.ts +31 -3
  333. package/dist/test/collections/table.examples.d.ts.map +1 -1
  334. package/dist/test/collections/table.examples.js +188 -28
  335. package/dist/test/collections/table.examples.js.map +1 -1
  336. package/dist/test/contracts/editing.examples.d.ts +7 -0
  337. package/dist/test/contracts/editing.examples.d.ts.map +1 -0
  338. package/dist/test/contracts/editing.examples.js +58 -0
  339. package/dist/test/contracts/editing.examples.js.map +1 -0
  340. package/dist/test/layout/splitter.examples.d.ts.map +1 -1
  341. package/dist/test/layout/splitter.examples.js +3 -1
  342. package/dist/test/layout/splitter.examples.js.map +1 -1
  343. package/dist/test/platform/slice.examples.d.ts.map +1 -1
  344. package/dist/test/platform/slice.examples.js +1 -0
  345. package/dist/test/platform/slice.examples.js.map +1 -1
  346. package/dist/test/slice/slice.examples.d.ts.map +1 -1
  347. package/dist/test/slice/slice.examples.js +5 -2
  348. package/dist/test/slice/slice.examples.js.map +1 -1
  349. package/package.json +4 -3
  350. package/dist/src/collections/plan/data-forms.d.ts +0 -332
  351. package/dist/src/collections/plan/data-forms.d.ts.map +0 -1
  352. package/dist/src/collections/plan/data-forms.js +0 -212
  353. package/dist/src/collections/plan/data-forms.js.map +0 -1
@@ -4,18 +4,25 @@
4
4
  */
5
5
  /**
6
6
  * The Plan kind factories — `span` / `buckets` / `chart` / `heat` / `table` /
7
- * `cards` / `events` / `group`. Each returns the row's flattened subtree
8
- * (`ExprType<ArrayType<PlanRowType>>`) with parent aggregates computed
9
- * eagerly by the `assemble` engines, so factories compose.
7
+ * `cards` / `events` / `group` — the vocabulary for rows no dataset holds,
8
+ * placed on a canvas by a `Plan.series.rows` entry. Each returns its row's
9
+ * STREAM (`PlanRowsValue` — the row, then its nested rows), so factories
10
+ * compose: a nested `rows:` input is other factories' results, placed under
11
+ * the parent in order (#822). A nesting parent DECLARES its rollup / aggregate
12
+ * / subtotal; the renderer derives the values from the subtree.
13
+ *
14
+ * The per-kind constructors ({@link spanKind} … {@link groupKind}) are shared
15
+ * with the data-driven series, so a hand-built row and a row made from a
16
+ * source entry carry the same kind for the same input.
10
17
  *
11
18
  * @packageDocumentation
12
19
  */
13
- import { type ExprType, type SubtypeExprOrValue, ArrayType, BooleanType, FloatType, StringType } from "@elaraai/east";
20
+ import { type ExprType, type SubtypeExprOrValue, ArrayType, BooleanType, FloatType, OptionType, StringType } from "@elaraai/east";
14
21
  import { type AxisOptions, type ChartLayer } from "../../charts/chart/index.js";
15
22
  import { TableAggregateType, type TableAggregateLiteral } from "../table/types.js";
16
23
  import { TickFormatType } from "../../format/types.js";
17
- import { type PlanRollupLiteral, type PlanAggregateLiteral, PlanAggregateType, type PlanTableEmphasisLiteral, PlanTableEmphasisType, PlanTableSeriesType, PlanTableSplitType, type PlanTableSplitLiteral, PlanChartHeightType, type PlanChartHeightLiteral, PlanPortType, PlanCellMarkerType, PlanChartLayerType, type PlanAxisSideLiteral, PlanRollupType, PlanRunType, PlanDecisionMarkType, PlanBucketEventType, PlanChipType, PlanEventMarkType, PlanLaneType, type PlanRowsValue, type PlanAxisKindLiteral, type PlanElementsInput, type PlanHeatCellsInput, type PlanTableCellsInput } from "./types.js";
18
- import { type PlanHeatCellsOptions } from "./builders.js";
24
+ import { type PlanRollupLiteral, type PlanAggregateLiteral, PlanAggregateType, type PlanTableEmphasisLiteral, PlanTableEmphasisType, PlanTableSeriesType, PlanTableSplitType, type PlanTableSplitLiteral, PlanChartHeightType, type PlanChartHeightLiteral, PlanHeatCellsType, PlanPortType, PlanCellMarkerType, PlanChartLayerType, type PlanAxisSideLiteral, PlanRollupType, PlanRunType, PlanDecisionMarkType, PlanBucketEventType, PlanChipType, PlanEventMarkType, PlanLaneType, PlanRowKindType, PlanGroupSummaryType, type PlanRowsValue, type PlanAxisKindLiteral, type PlanElementsInput, type PlanHeatCellsInput, type PlanTableCellsInput } from "./types.js";
25
+ import { type PlanFoldInput, type PlanHeatScaleInput } from "./builders.js";
19
26
  import { type PlanRowBaseInput, type PlanRowsInput } from "./assemble.js";
20
27
  /**
21
28
  * The Plan-only channels a chart layer can carry via {@link Plan.layer}.
@@ -23,6 +30,7 @@ import { type PlanRowBaseInput, type PlanRowsInput } from "./assemble.js";
23
30
  * @property axis - Which y-axis the layer scales against (default `"left"`)
24
31
  * @property breach - Breach threshold (`{ above }` / `{ below }`) — beyond it, marks render warn
25
32
  * @property series - Stack series id for column layers (stacked columns pair by it)
33
+ * @property fold - How a line, area or column layer folds the points in one bucket (#824)
26
34
  */
27
35
  export interface PlanLayerChannels {
28
36
  /** Which y-axis the layer scales against (default `"left"`; left ticks print in the gutter edge). */
@@ -35,6 +43,10 @@ export interface PlanLayerChannels {
35
43
  };
36
44
  /** Stack series id for column layers. */
37
45
  series?: SubtypeExprOrValue<StringType>;
46
+ /** How a line, area or column layer folds the points in one bucket at a coarser resolution than
47
+ * theirs — `"sum"` / `"mean"` / `"min"` / `"max"` / `"last"` / `"count"` (default: a column's
48
+ * `"sum"`, a line's or an area's `"mean"`, #824). Scatter and band layers draw every point. */
49
+ fold?: PlanFoldInput;
38
50
  }
39
51
  /** A Chart layer wrapped with Plan-only channels — see {@link Plan.layer}. */
40
52
  export interface PlanWrappedLayer {
@@ -49,7 +61,7 @@ export interface PlanWrappedLayer {
49
61
  export type PlanChartLayerInput = ChartLayer | PlanWrappedLayer;
50
62
  /**
51
63
  * Wraps a Chart layer builder result with the Plan-only channels (axis side,
52
- * breach threshold, stack series).
64
+ * breach threshold, stack series, and how a coarser bucket folds its points).
53
65
  *
54
66
  * @param layer - The `Chart.Line` / `Column` / `Area` / `Scatter` / `Band` / `ref*` builder result
55
67
  * @param channels - The Plan-only channels ({@link PlanLayerChannels})
@@ -67,56 +79,268 @@ export declare function consumeLayers(inputs: PlanChartLayerInput | PlanChartLay
67
79
  */
68
80
  export declare function createFixedHeight(size: SubtypeExprOrValue<StringType>): ExprType<PlanChartHeightType>;
69
81
  /**
70
- * Input for {@link Plan.span} — a state-run row, optionally nesting child
71
- * rows whose runs roll up into factory-computed bands.
82
+ * A chart-row y-axis input — the `Chart.Root` axis vocabulary
83
+ * ({@link AxisOptions}), restricted to the members a Plan chart row's
84
+ * value axis supports: `domain` (`[min, max]`), `tickValues` and `format`.
85
+ * Same names, same types, same guards as a `Chart.Root` y-axis — temporal
86
+ * domains / tick positions are a build-time error (the time axis is the
87
+ * shared canvas scale, `Plan.axis`).
88
+ */
89
+ export type PlanChartAxisInput = Pick<AxisOptions, "domain" | "tickValues" | "format">;
90
+ /**
91
+ * The parts of a span row's kind. A band's sums come from the runs'
92
+ * quantities, unit by unit — each quantity carries its own unit (#824).
72
93
  *
73
- * @typeParam K - The axis kind inferred from the runs / decisions / ports / nested rows
74
- * @property runs - The row's own runs (`Plan.run` values)
94
+ * @typeParam K - The axis kind the parts' instants ride
95
+ * @property runs - The row's own runs
75
96
  * @property decisions - Decision diamonds on run transitions
76
97
  * @property ports - Quantity in/out glyphs
77
- * @property rollup - Rollup mode when `rows` nest (default `"union"`)
78
- * @property unit - Quantity unit for band sums (pairs with runs' `qty`)
79
- * @property rows - Nested child subtrees (factory results)
80
98
  */
81
- export interface PlanSpanInput<K extends PlanAxisKindLiteral = never> extends PlanRowBaseInput {
99
+ export interface PlanSpanParts<K extends PlanAxisKindLiteral = never> {
82
100
  /** The row's own runs (`Plan.run` values — their kind brands the row). */
83
101
  runs?: PlanElementsInput<PlanRunType, K>;
84
102
  /** Decision diamonds on run transitions (`Plan.decision` values). */
85
103
  decisions?: PlanElementsInput<PlanDecisionMarkType, K>;
86
104
  /** Quantity in/out glyphs (`Plan.port` values). */
87
105
  ports?: PlanElementsInput<typeof PlanPortType, K>;
106
+ }
107
+ /**
108
+ * A span row's kind.
109
+ *
110
+ * @param parts - The row's runs, decisions and ports
111
+ * @param rollup - The declared rollup — `some` on a row whose subtree rolls up into its bands
112
+ * @returns The kind
113
+ */
114
+ export declare function spanKind(parts: PlanSpanParts<PlanAxisKindLiteral>, rollup: SubtypeExprOrValue<OptionType<PlanRollupType>>): ExprType<PlanRowKindType>;
115
+ /**
116
+ * The parts of a bucket row's kind.
117
+ *
118
+ * @typeParam K - The axis kind the parts' instants ride
119
+ * @property lanes - Per-row sub-slot lanes
120
+ * @property events - The row's tiles
121
+ * @property markers - Cell status rings
122
+ */
123
+ export interface PlanBucketsParts<K extends PlanAxisKindLiteral = never> {
124
+ /** Per-row sub-slot lanes (`PlanLaneType` values — `{ key, label: some("AM") }`); omitted ⇒ unbucketed. */
125
+ lanes?: SubtypeExprOrValue<ArrayType<PlanLaneType>>;
126
+ /** The row's tiles (`Plan.event` values — their kind brands the row). */
127
+ events?: PlanElementsInput<PlanBucketEventType, K>;
128
+ /** Cell status rings (`Plan.marker` values). */
129
+ markers?: PlanElementsInput<typeof PlanCellMarkerType, K>;
130
+ }
131
+ /**
132
+ * A bucket row's kind.
133
+ *
134
+ * @param parts - The row's lanes, tiles and markers
135
+ * @returns The kind
136
+ */
137
+ export declare function bucketsKind(parts: PlanBucketsParts<PlanAxisKindLiteral>): ExprType<PlanRowKindType>;
138
+ /**
139
+ * The parts of a chart row's kind.
140
+ *
141
+ * @property layers - The Chart layer builders, consumed as data
142
+ * @property left - The left y-axis
143
+ * @property right - The right y-axis
144
+ * @property height - The height mode
145
+ * @property expandedHeight - The height the expanded state opens to
146
+ * @property expandable - Spark ↔ expanded toggle
147
+ */
148
+ export interface PlanChartParts {
149
+ /** The Chart layer builders, consumed as data. The x accessor's static type picks the
150
+ * instant arm (`DateTimeType` ⇒ `time`, numeric ⇒ `number`, `StringType` ⇒ `ordinal`) and
151
+ * must match the canvas axis at render; `Chart.Bar` is a build-time error. */
152
+ layers: PlanChartLayerInput | PlanChartLayerInput[];
153
+ /** The left y-axis (ticks print inside the gutter's right edge). */
154
+ left?: PlanChartAxisInput;
155
+ /** The right y-axis (ticks at the plot's right edge). */
156
+ right?: PlanChartAxisInput;
157
+ /** Height mode — `"spark"` (32px, default) / `"expanded"` (88px) / `Plan.fixed(px)`. */
158
+ height?: PlanChartHeightLiteral | SubtypeExprOrValue<PlanChartHeightType>;
159
+ /** Height the EXPANDED state opens to (default 88px) — a CSS px size (`"120px"`, the shared
160
+ * component-height type). Pairs with `expandable` so a spark can toggle open to a custom
161
+ * composition height; also applies when `height: "expanded"` is declared. */
162
+ expandedHeight?: SubtypeExprOrValue<StringType>;
163
+ /** Spark ↔ expanded toggle (caret; default `false`). */
164
+ expandable?: SubtypeExprOrValue<BooleanType> | boolean;
165
+ }
166
+ /**
167
+ * A chart row's kind — Chart layers consumed AS DATA.
168
+ *
169
+ * @param parts - The row's layers and axes ({@link PlanChartParts})
170
+ * @returns The kind
171
+ */
172
+ export declare function chartKind(parts: PlanChartParts): ExprType<PlanRowKindType>;
173
+ /**
174
+ * The parts of a heat row's kind.
175
+ *
176
+ * @typeParam K - The axis kind the cells' instants ride
177
+ * @property cells - The row's cells
178
+ * @property scale - The scale a parent's derived cells paint on
179
+ */
180
+ export interface PlanHeatParts<K extends PlanAxisKindLiteral = never> {
181
+ /** The row's cells (`Plan.heatCells` / `Plan.weightCells` / `Plan.segmentCells` — their kind brands the row). */
182
+ cells?: PlanHeatCellsInput<K>;
183
+ /** The scale a parent's DERIVED cells paint on (min / max / warn threshold) — the row's own, not an
184
+ * empty cells arm's (#824). A row's own cells paint on their arm's scale (`Plan.heatCells(cells, { min, max })`). */
185
+ scale?: PlanHeatScaleInput;
186
+ }
187
+ /**
188
+ * A heat row's kind.
189
+ *
190
+ * @param parts - The row's cells and the scale its derived cells paint on
191
+ * @param aggregate - The declared aggregate — how a parent with no cells of its own derives them from its children
192
+ * @returns The kind
193
+ */
194
+ export declare function heatKind(parts: PlanHeatParts<PlanAxisKindLiteral>, aggregate: SubtypeExprOrValue<OptionType<PlanAggregateType>>): ExprType<PlanRowKindType>;
195
+ /**
196
+ * The parts of a table row's kind.
197
+ *
198
+ * @typeParam K - The axis kind the cells' instants ride
199
+ * @property cells - The row's cells (sugar for one plain series)
200
+ * @property series - Multi-series cells
201
+ * @property split - Part layout when several series render
202
+ * @property format - Numeral format for the row's values and derived subtotals
203
+ * @property emphasis - Row emphasis
204
+ * @property fold - How a bucket folds the `cells` sugar's cells at a coarser resolution
205
+ */
206
+ export interface PlanTableParts<K extends PlanAxisKindLiteral = never> {
207
+ /** The row's cells (`Plan.tableCells` result — its kind brands the row) — sugar for ONE unstyled series. */
208
+ cells?: PlanTableCellsInput<K>;
209
+ /** How a bucket folds the `cells` at a coarser resolution than theirs (default `"sum"`, #824) — a
210
+ * `series` entry declares its own (`Plan.tableSeries({ fold })`). */
211
+ fold?: PlanFoldInput;
212
+ /** Multi-series cells — one `Plan.tableSeries` per value position (exclusive with `cells`). */
213
+ series?: PlanElementsInput<PlanTableSeriesType, K>;
214
+ /** Part layout when several series render — `"horizontal"` (default) / `"vertical"` (stacked lines; the row grows). */
215
+ split?: SubtypeExprOrValue<PlanTableSplitType> | PlanTableSplitLiteral;
216
+ /** Numeral format for the row's values + derived subtotals — a `Format.*` spec (the shared `TickFormatType`). */
217
+ format?: SubtypeExprOrValue<TickFormatType>;
218
+ /** Row emphasis — `"body"` (default) / `"header"` / `"footer"` (2px top rule). */
219
+ emphasis?: SubtypeExprOrValue<PlanTableEmphasisType> | PlanTableEmphasisLiteral;
220
+ }
221
+ /**
222
+ * A table row's kind — its value series (`cells` wraps into one unstyled
223
+ * series, so the renderer has a single representation).
224
+ *
225
+ * @param parts - The row's cells or series, split, format, emphasis and the cells' fold
226
+ * @param aggregate - The declared subtotal mode — how a parent with no values of its own derives them from its children
227
+ * @returns The kind
228
+ * @throws {Error} When both `cells` and `series` are given, or `fold` with `series` (each series declares its own)
229
+ */
230
+ export declare function tableKind(parts: PlanTableParts<PlanAxisKindLiteral>, aggregate: SubtypeExprOrValue<OptionType<TableAggregateType>>): ExprType<PlanRowKindType>;
231
+ /**
232
+ * A cards row's kind.
233
+ *
234
+ * @param chips - The row's shift chips
235
+ * @returns The kind
236
+ */
237
+ export declare function cardsKind(chips: PlanElementsInput<PlanChipType, PlanAxisKindLiteral> | undefined): ExprType<PlanRowKindType>;
238
+ /**
239
+ * An event row's kind.
240
+ *
241
+ * @param marks - The row's marks
242
+ * @returns The kind
243
+ */
244
+ export declare function eventsKind(marks: PlanElementsInput<PlanEventMarkType, PlanAxisKindLiteral> | undefined): ExprType<PlanRowKindType>;
245
+ /**
246
+ * A group strip's ONE summary declaration (#824) — explicit cells, a declared
247
+ * aggregate, or a plain band — from the two inputs an author writes it with.
248
+ *
249
+ * @param cells - Explicit collapsed-strip cells, if given
250
+ * @param aggregate - The declared strip aggregation over the members' heat cells, if given
251
+ * @param where - Who is asking, for the message
252
+ * @returns The summary
253
+ * @throws {Error} When both are given — a strip shows one or the other
254
+ */
255
+ export declare function groupSummary(cells: SubtypeExprOrValue<PlanHeatCellsType> | undefined, aggregate: SubtypeExprOrValue<PlanAggregateType> | PlanAggregateLiteral | undefined, where: string): ExprType<PlanGroupSummaryType>;
256
+ /**
257
+ * A group strip's kind.
258
+ *
259
+ * @param summary - What the collapsed strip shows ({@link groupSummary})
260
+ * @returns The kind
261
+ */
262
+ export declare function groupKind(summary: SubtypeExprOrValue<PlanGroupSummaryType>): ExprType<PlanRowKindType>;
263
+ /**
264
+ * Input for {@link Plan.span} — a state-run row, optionally nesting child
265
+ * rows whose runs the renderer rolls up into the parent's bands.
266
+ *
267
+ * @typeParam K - The axis kind inferred from the runs / decisions / ports / nested rows
268
+ * @property runs - The row's own runs (`Plan.run` values)
269
+ * @property decisions - Decision diamonds on run transitions
270
+ * @property ports - Quantity in/out glyphs
271
+ * @property rollup - Rollup mode when `rows` nest (default `"union"`; bands sum the runs' quantities per unit)
272
+ * @property rows - Nested child streams (other kind factories' results)
273
+ */
274
+ export interface PlanSpanInput<K extends PlanAxisKindLiteral = never> extends PlanRowBaseInput, PlanSpanParts<K> {
88
275
  /** Rollup mode when `rows` nest — `"union"` (default) / `"byStatus"` / `"sum"`, or a `PlanRollupType` expression. */
89
276
  rollup?: SubtypeExprOrValue<PlanRollupType> | PlanRollupLiteral;
90
- /** Quantity unit for band sums (`"t"` ⇒ `"208 t"` band captions; needs runs' `qty`). */
91
- unit?: SubtypeExprOrValue<StringType>;
92
- /** Nested child subtrees (factory results / `Plan.rows`). */
277
+ /** Nested child streams (other kind factories' results). */
93
278
  rows?: PlanRowsInput<K>;
94
279
  }
95
280
  /**
96
- * Creates a span row (the Gantt surface) — continuous state-run bars, with
97
- * optional nested rows rolled up into union/byStatus bands (`×k` peak
98
- * concurrency, summed quantities, pessimistic certainty).
281
+ * Creates a span row (the Gantt surface) — continuous state-run bars. With
282
+ * nested `rows` it DECLARES a rollup (default `"union"`), and the renderer
283
+ * derives the parent's union / byStatus bands from the subtree's runs (`×k`
284
+ * peak concurrency, quantities summed unit by unit, pessimistic certainty).
99
285
  *
100
286
  * @typeParam K - The axis kind the row's instants ride (inferred; `never` when erased)
101
287
  * @param input - The span configuration ({@link PlanSpanInput})
102
- * @returns The flattened subtree (parent first, children re-parented), branded with its kind
288
+ * @returns The row stream — the span row, then every nested row under it — branded with its kind
103
289
  *
104
290
  * @example
105
- * ```ts
106
- * import { East } from "@elaraai/east";
107
- * import { UIComponentType } from "@elaraai/east-ui";
108
- * import { Plan } from "@elaraai/east-ui/internal";
109
- *
110
- * const example = East.function([], UIComponentType, _$ =>
111
- * Plan.Root({
112
- * axis: Plan.axis({ resolution: "week" }),
113
- * rows: [Plan.span({
114
- * key: "m03", label: "L1-M03", id: true, sub: "120 t",
115
- * runs: [Plan.run({ key: "r1", start: new Date("2026-07-01"), end: new Date("2026-07-22"),
116
- * label: "RUN · B-214", quantity: "96 t", state: "actual" })],
117
- * })],
118
- * }),
119
- * );
291
+ * ```tsx
292
+ * // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
293
+ * import { ArrayType, DateTimeType, DictType, East, IntegerType, StringType, StructType, variant } from "@elaraai/east";
294
+ * import { EventStateType, Plan, UIComponentType } from "@elaraai/east-ui";
295
+ *
296
+ * const canvas = East.function([], UIComponentType, ($) => {
297
+ * // Monday of ISO week n, 2026 — window W27–W38 (half-open), now W31.
298
+ * const week = $.const(East.function([IntegerType], DateTimeType, ($, n) => {
299
+ * const w1 = $.const(new Date("2025-12-29T00:00:00Z"), DateTimeType);
300
+ * return w1.addWeeks(n.subtract(1n));
301
+ * }));
302
+ * const JobRow = StructType({
303
+ * batch: StringType, start: DateTimeType, end: DateTimeType, state: EventStateType,
304
+ * });
305
+ * const MachineRow = StructType({ jobs: ArrayType(JobRow) });
306
+ * const machines = $.const(new Map([
307
+ * ["L1-M03", { jobs: [{ batch: "B-214", start: week(28n), end: week(31n), state: variant("in-progress", null) }] }],
308
+ * ["L1-M04", { jobs: [{ batch: "B-208", start: week(27n), end: week(30n), state: variant("actual", null) }] }],
309
+ * ]), DictType(StringType, MachineRow));
310
+ * const axis = $.const(Plan.axis({ window: { min: week(27n), max: week(39n) }, resolution: "week", now: week(31n) }));
311
+ * return (
312
+ * <Plan
313
+ * axis={axis}
314
+ * data={machines}
315
+ * series={[
316
+ * Plan.series.span(MachineRow, {
317
+ * key: "machines", title: "Machines",
318
+ * label: (_r, k) => k, id: true,
319
+ * runs: r => r.jobs.map((_$, j) => Plan.run({
320
+ * key: j.batch, start: j.start, end: j.end,
321
+ * label: East.str`RUN · ${j.batch}`, state: j.state,
322
+ * })),
323
+ * }),
324
+ * // Rows no dataset holds — the planned shutdown, written out once.
325
+ * // `Plan.span` nests: the parent DECLARES its rollup and the canvas
326
+ * // derives the band from its two rows' runs. The series list is the
327
+ * // layout, so this block sits below the machines.
328
+ * Plan.series.rows(MachineRow, { key: "works", title: "Planned works", subtitle: "literal rows" }, [
329
+ * Plan.span({
330
+ * key: "shutdown", label: "SHUTDOWN", rollup: "union", rows: [
331
+ * Plan.span({ key: "elec", label: "Electrical", runs: [
332
+ * Plan.run({ key: "iso", start: week(33n), end: week(34n), label: "ISOLATE", state: "confirmed" }),
333
+ * ] }),
334
+ * Plan.span({ key: "mech", label: "Mechanical", runs: [
335
+ * Plan.run({ key: "reline", start: week(34n), end: week(36n), label: "RELINE", state: "recommended" }),
336
+ * ] }),
337
+ * ],
338
+ * }),
339
+ * ]),
340
+ * ]}
341
+ * />
342
+ * );
343
+ * });
120
344
  * ```
121
345
  */
122
346
  export declare function createSpan<K extends PlanAxisKindLiteral = never>(input: PlanSpanInput<K>): PlanRowsValue<K>;
@@ -129,13 +353,7 @@ export declare function createSpan<K extends PlanAxisKindLiteral = never>(input:
129
353
  * @property events - The row's tiles (`Plan.event` values)
130
354
  * @property markers - Cell status rings (`Plan.marker` values)
131
355
  */
132
- export interface PlanBucketsInput<K extends PlanAxisKindLiteral = never> extends PlanRowBaseInput {
133
- /** Per-row sub-slot lanes (`PlanLaneType` values — `{ key, label: some("AM") }`); omitted ⇒ unbucketed. */
134
- lanes?: SubtypeExprOrValue<ArrayType<PlanLaneType>>;
135
- /** The row's tiles (`Plan.event` values — their kind brands the row). */
136
- events?: PlanElementsInput<PlanBucketEventType, K>;
137
- /** Cell status rings (`Plan.marker` values). */
138
- markers?: PlanElementsInput<typeof PlanCellMarkerType, K>;
356
+ export interface PlanBucketsInput<K extends PlanAxisKindLiteral = never> extends PlanRowBaseInput, PlanBucketsParts<K> {
139
357
  }
140
358
  /**
141
359
  * Creates a bucket row (the Planner surface, verbatim) — allocation tiles in
@@ -144,18 +362,9 @@ export interface PlanBucketsInput<K extends PlanAxisKindLiteral = never> extends
144
362
  *
145
363
  * @typeParam K - The axis kind the row's instants ride (inferred; `never` when erased)
146
364
  * @param input - The buckets configuration ({@link PlanBucketsInput})
147
- * @returns The 1-row flattened subtree, branded with its kind
365
+ * @returns A one-row stream, branded with its kind
148
366
  */
149
367
  export declare function createBuckets<K extends PlanAxisKindLiteral = never>(input: PlanBucketsInput<K>): PlanRowsValue<K>;
150
- /**
151
- * A chart-row y-axis input — the `Chart.Root` axis vocabulary
152
- * ({@link AxisOptions}), restricted to the members a Plan chart row's
153
- * value axis supports: `domain` (`[min, max]`), `tickValues` and `format`.
154
- * Same names, same types, same guards as a `Chart.Root` y-axis — temporal
155
- * domains / tick positions are a build-time error (the time axis is the
156
- * shared canvas scale, `Plan.axis`).
157
- */
158
- export type PlanChartAxisInput = Pick<AxisOptions, "domain" | "tickValues" | "format">;
159
368
  /**
160
369
  * Input for {@link Plan.chart} — a measure row consuming Chart layer
161
370
  * builders as data.
@@ -166,25 +375,7 @@ export type PlanChartAxisInput = Pick<AxisOptions, "domain" | "tickValues" | "fo
166
375
  * @property height - `"spark"` (32px, default) / `"expanded"` (88px) / `Plan.fixed(px)`
167
376
  * @property expandable - Spark ↔ expanded toggle (caret)
168
377
  */
169
- export interface PlanChartInput extends Omit<PlanRowBaseInput, "height"> {
170
- /** The Chart layer builders, consumed as data. The x accessor's static type picks the
171
- * instant arm (`DateTimeType` ⇒ `time`, numeric ⇒ `number`, `StringType` ⇒ `ordinal`) and
172
- * must match the canvas axis at render; `Chart.Bar` is a build-time error. */
173
- layers: PlanChartLayerInput | PlanChartLayerInput[];
174
- /** The left y-axis (ticks print inside the gutter's right edge). */
175
- left?: PlanChartAxisInput;
176
- /** The right y-axis (ticks at the plot's right edge). */
177
- right?: PlanChartAxisInput;
178
- /** Height mode — `"spark"` (32px, default) / `"expanded"` (88px) /
179
- * `Plan.fixed(px)`. Replaces the base row-height override for chart rows. */
180
- height?: PlanChartHeightLiteral | SubtypeExprOrValue<PlanChartHeightType>;
181
- /** Height the EXPANDED state opens to (default 88px) — a CSS px size
182
- * (`"120px"`, the shared component-height type). Pairs with `expandable`
183
- * so a spark can toggle open to a custom composition height; also
184
- * applies when `height: "expanded"` is declared. */
185
- expandedHeight?: SubtypeExprOrValue<StringType>;
186
- /** Spark ↔ expanded toggle (caret). */
187
- expandable?: SubtypeExprOrValue<BooleanType> | boolean;
378
+ export interface PlanChartInput extends Omit<PlanRowBaseInput, "height">, PlanChartParts {
188
379
  }
189
380
  /**
190
381
  * Creates a chart row — Chart layers consumed AS DATA (reified `{t, y}`
@@ -193,7 +384,7 @@ export interface PlanChartInput extends Omit<PlanRowBaseInput, "height"> {
193
384
  * build-time error.
194
385
  *
195
386
  * @param input - The chart configuration ({@link PlanChartInput})
196
- * @returns The 1-row flattened subtree
387
+ * @returns A one-row stream
197
388
  */
198
389
  export declare function createChart(input: PlanChartInput): PlanRowsValue;
199
390
  /**
@@ -204,27 +395,24 @@ export declare function createChart(input: PlanChartInput): PlanRowsValue;
204
395
  * @property cells - The row's cells; omit with `rows` + `aggregate` to compute from children
205
396
  * @property aggregate - Parent derivation mode (`"mean"` / `"max"` / `"sum"`)
206
397
  * @property scale - Heat scale + warn threshold for computed parent cells
207
- * @property rows - Nested child subtrees
398
+ * @property rows - Nested child streams
208
399
  */
209
- export interface PlanHeatInput<K extends PlanAxisKindLiteral = never> extends PlanRowBaseInput {
210
- /** The row's cells (`Plan.heatCells` / `Plan.weightCells` / `Plan.segmentCells` — their kind brands the row); omit with `rows` + `aggregate` to compute from the children. */
211
- cells?: PlanHeatCellsInput<K>;
400
+ export interface PlanHeatInput<K extends PlanAxisKindLiteral = never> extends PlanRowBaseInput, PlanHeatParts<K> {
212
401
  /** Parent derivation mode over children (`"mean"` / `"max"` / `"sum"`, or a `PlanAggregateType` expression). */
213
402
  aggregate?: SubtypeExprOrValue<PlanAggregateType> | PlanAggregateLiteral;
214
- /** Heat scale + warn threshold applied to computed parent cells. */
215
- scale?: PlanHeatCellsOptions;
216
- /** Nested child subtrees. */
403
+ /** Nested child streams. */
217
404
  rows?: PlanRowsInput<K>;
218
405
  }
219
406
  /**
220
407
  * Creates a heat row (the Matrix cell recipes on the shared axis) — colour
221
408
  * depth, weight bars or segment compositions. With `rows` and no explicit
222
- * `cells`, the parent's cells are the per-bucket `aggregate` of its direct
223
- * children's heat cells; the warn ring stays on the breaching child.
409
+ * `cells`, the renderer derives the parent's cells — the per-bucket
410
+ * `aggregate` of its direct children's heat cells; the warn ring stays on
411
+ * the breaching child.
224
412
  *
225
413
  * @typeParam K - The axis kind the row's instants ride (inferred; `never` when erased)
226
414
  * @param input - The heat configuration ({@link PlanHeatInput})
227
- * @returns The flattened subtree (parent first, children re-parented), branded with its kind
415
+ * @returns The row stream — the heat row, then every nested row under it — branded with its kind
228
416
  */
229
417
  export declare function createHeat<K extends PlanAxisKindLiteral = never>(input: PlanHeatInput<K>): PlanRowsValue<K>;
230
418
  /**
@@ -234,37 +422,24 @@ export declare function createHeat<K extends PlanAxisKindLiteral = never>(input:
234
422
  * @typeParam K - The axis kind inferred from the cells / series / nested rows
235
423
  * @property cells - The row's cells (`Plan.tableCells`); omit with `rows` + `aggregate` to compute subtotals
236
424
  * @property aggregate - Subtotal mode (the Table #317 vocabulary)
237
- * @property format - Numeral format for computed subtotals (`"0"` / `"0.0"`)
425
+ * @property format - Numeral format for the row's values and derived subtotals (a `Format.*` spec)
238
426
  * @property emphasis - Row emphasis (`"body"` / `"header"` / `"footer"`)
239
- * @property rows - Nested child subtrees
427
+ * @property rows - Nested child streams
240
428
  */
241
- export interface PlanTableInput<K extends PlanAxisKindLiteral = never> extends PlanRowBaseInput {
242
- /** The row's cells (`Plan.tableCells` result — its kind brands the row) — sugar for ONE unstyled
243
- * series; omit with `rows` + `aggregate` to compute subtotals. */
244
- cells?: PlanTableCellsInput<K>;
245
- /** Multi-series cells — one `Plan.tableSeries` per value position, each
246
- * with its own cells + per-position style (exclusive with `cells`). */
247
- series?: PlanElementsInput<PlanTableSeriesType, K>;
248
- /** Part layout when several series render — `"horizontal"` (default,
249
- * side by side) / `"vertical"` (stacked lines; the row grows). */
250
- split?: SubtypeExprOrValue<PlanTableSplitType> | PlanTableSplitLiteral;
429
+ export interface PlanTableInput<K extends PlanAxisKindLiteral = never> extends PlanRowBaseInput, PlanTableParts<K> {
251
430
  /** Subtotal mode over children — `"sum"` / `"mean"` / `"min"` / `"max"` / `"count"`, or a `TableAggregateType` expression. */
252
431
  aggregate?: SubtypeExprOrValue<TableAggregateType> | TableAggregateLiteral;
253
- /** Numeral format for the row's values + derived subtotals — a `Format.*` spec (the shared `TickFormatType`). */
254
- format?: SubtypeExprOrValue<TickFormatType>;
255
- /** Row emphasis — `"body"` (default) / `"header"` / `"footer"` (2px top rule), or a `PlanTableEmphasisType` expression. */
256
- emphasis?: SubtypeExprOrValue<PlanTableEmphasisType> | PlanTableEmphasisLiteral;
257
- /** Nested child subtrees. */
432
+ /** Nested child streams. */
258
433
  rows?: PlanRowsInput<K>;
259
434
  }
260
435
  /**
261
- * Creates a table row (the Table groupBy surface with time-bucket columns).
436
+ * Creates a table row (bucketed numerals under the shared time-bucket columns).
262
437
  * With `rows` and no explicit `cells`, the parent prints per-bucket
263
438
  * subtotals via `aggregate` — a collapsed parent reads as its subtotal line.
264
439
  *
265
440
  * @typeParam K - The axis kind the row's instants ride (inferred; `never` when erased)
266
441
  * @param input - The table configuration ({@link PlanTableInput})
267
- * @returns The flattened subtree (parent first, children re-parented), branded with its kind
442
+ * @returns The row stream — the table row, then every nested row under it — branded with its kind
268
443
  */
269
444
  export declare function createTable<K extends PlanAxisKindLiteral = never>(input: PlanTableInput<K>): PlanRowsValue<K>;
270
445
  /**
@@ -283,7 +458,7 @@ export interface PlanCardsInput<K extends PlanAxisKindLiteral = never> extends P
283
458
  *
284
459
  * @typeParam K - The axis kind the row's instants ride (inferred; `never` when erased)
285
460
  * @param input - The cards configuration ({@link PlanCardsInput})
286
- * @returns The 1-row flattened subtree, branded with its kind
461
+ * @returns A one-row stream, branded with its kind
287
462
  */
288
463
  export declare function createCards<K extends PlanAxisKindLiteral = never>(input: PlanCardsInput<K>): PlanRowsValue<K>;
289
464
  /**
@@ -302,37 +477,36 @@ export interface PlanEventsInput<K extends PlanAxisKindLiteral = never> extends
302
477
  *
303
478
  * @typeParam K - The axis kind the row's instants ride (inferred; `never` when erased)
304
479
  * @param input - The events configuration ({@link PlanEventsInput})
305
- * @returns The 1-row flattened subtree, branded with its kind
480
+ * @returns A one-row stream, branded with its kind
306
481
  */
307
482
  export declare function createEvents<K extends PlanAxisKindLiteral = never>(input: PlanEventsInput<K>): PlanRowsValue<K>;
308
483
  /**
309
484
  * Input for {@link Plan.group} — the heterogeneous canvas container.
310
485
  *
311
486
  * @typeParam K - The axis kind inferred from the summary cells / member rows
312
- * @property summary - Explicit collapsed-strip heat cells
313
- * @property summaryAggregate - DECLARED strip aggregation over descendant heat rows (the renderer derives the cells)
314
- * @property collapsed - Initial collapse state
315
- * @property rows - The group's member subtrees (any kinds)
487
+ * @property summary - Explicit collapsed-strip heat cells (exclusive with `summaryAggregate`)
488
+ * @property summaryAggregate - DECLARED strip aggregation over the members' heat rows (the renderer derives the cells)
489
+ * @property rows - The group's member streams (any kinds)
316
490
  */
317
491
  export interface PlanGroupInput<K extends PlanAxisKindLiteral = never> extends PlanRowBaseInput {
318
- /** Explicit collapsed-strip cells (`PlanHeatCellsType` — a `Plan.heatCells` result's kind brands the strip). */
492
+ /** Explicit collapsed-strip cells (`PlanHeatCellsType` — a `Plan.heatCells` result's kind brands the strip);
493
+ * exclusive with `summaryAggregate`. */
319
494
  summary?: PlanHeatCellsInput<K>;
320
- /** DECLARED strip aggregation over descendant heat rows — `"mean"`/`"max"`/`"sum"` or a `PlanAggregateType` expression. */
495
+ /** DECLARED strip aggregation over the members' heat rows — `"mean"`/`"max"`/`"sum"` or a `PlanAggregateType` expression. */
321
496
  summaryAggregate?: SubtypeExprOrValue<PlanAggregateType> | PlanAggregateLiteral;
322
- /** Initial collapse state (renderer state thereafter). */
323
- collapsed?: SubtypeExprOrValue<BooleanType> | boolean;
324
- /** The group's member subtrees (any row kinds — their axis kinds union into the group's). */
497
+ /** The group's member streams (any row kinds — their axis kinds union into the group's). */
325
498
  rows?: PlanRowsInput<K>;
326
499
  }
327
500
  /**
328
501
  * Creates a group strip — the canvas-level heterogeneous container. Collapsed
329
502
  * it rests as its summary heat strip — explicit `summary` cells, or the
330
- * renderer-derived `summaryAggregate` declaration (`none` ⇒ a plain band);
503
+ * renderer-derived `summaryAggregate` declaration (neither ⇒ a plain band);
331
504
  * expanding swaps the strip for the member rows in place.
332
505
  *
333
506
  * @typeParam K - The axis kind the group's instants ride (inferred; `never` when erased)
334
507
  * @param input - The group configuration ({@link PlanGroupInput})
335
- * @returns The flattened subtree (group first, members re-parented), branded with its kind
508
+ * @returns The row stream — the group strip, then every member under it — branded with its kind
509
+ * @throws {Error} When both `summary` and `summaryAggregate` are given
336
510
  */
337
511
  export declare function createGroup<K extends PlanAxisKindLiteral = never>(input: PlanGroupInput<K>): PlanRowsValue<K>;
338
512
  //# sourceMappingURL=factories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../../src/collections/plan/factories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAGvB,SAAS,EACT,WAAW,EACX,SAAS,EAET,UAAU,EAIb,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,UAAU,EAIlB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,kBAAkB,EAAE,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,KAAK,qBAAqB,EAE1B,mBAAmB,EACnB,KAAK,sBAAsB,EAG3B,YAAY,EACZ,kBAAkB,EAGlB,kBAAkB,EAElB,KAAK,mBAAmB,EAExB,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