@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
@@ -0,0 +1,165 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ /**
6
+ * `Sheet.group` and `Sheet.group.cell.*` — grouped rows (#740): the group is
7
+ * the row, its lines live in one `Array<L>` field of its own type, and the
8
+ * band a group draws above its lines shows the group's own fields under the
9
+ * line columns.
10
+ *
11
+ * `Sheet.group(P, "lines", { title, sub?, cells?, folded?, noun? })` names
12
+ * the lines field and the band; each `cells` entry is a group field declared
13
+ * over the group's row with `Sheet.group.cell.<kind>(P, "field", cfg)` — the
14
+ * same builders as `Sheet.column.<kind>` minus the header, keyed in `cells`
15
+ * by the LINE column it sits under. A band cell edits like any cell: the
16
+ * edit joins the sheet's batch and reaches the host through `onUpdate` or
17
+ * `onApply`. `editable: false` and a `value:` projection are read-only.
18
+ *
19
+ * The builders only CAPTURE; the root describes each cell against the group's
20
+ * row type and reifies the accessors (`root.ts`, `bridge.ts`).
21
+ *
22
+ * @packageDocumentation
23
+ */
24
+ import type { EastType, ExprType, SubtypeExprOrValue, BooleanType, DateTimeType, FloatType, IntegerType, OptionType, StringType, StructType } from "@elaraai/east";
25
+ import type { TickFormatType } from "../../format/types.js";
26
+ import type { SheetColumnKindLiteral, SheetLinesField, SheetLineOf } from "./types.js";
27
+ import type { SheetAnyColumnConfig, SheetFieldKey } from "./columns.js";
28
+ /**
29
+ * A built band cell — what a `Sheet.group.cell.*` builder returns and the
30
+ * `cells` map holds.
31
+ *
32
+ * @typeParam P - The group's row type
33
+ */
34
+ export interface SheetGroupCell<P extends StructType> {
35
+ /** The cell's kind. */
36
+ readonly kind: SheetColumnKindLiteral;
37
+ /** The group field the cell reads and writes. */
38
+ readonly field: SheetFieldKey<P>;
39
+ /** The author's config, as given. @internal */
40
+ readonly config: SheetAnyColumnConfig;
41
+ /** The register the cell resolves against. @internal */
42
+ readonly register?: string;
43
+ /** Phantom — the row type. @internal */
44
+ readonly __row?: (r: P) => void;
45
+ }
46
+ /** The keys of a group row whose field is `A` or its `Option`. */
47
+ export type SheetFieldOf<P extends StructType, A extends EastType> = {
48
+ [K in SheetFieldKey<P>]: P["fields"][K] extends A | OptionType<A> ? K : never;
49
+ }[SheetFieldKey<P>];
50
+ /**
51
+ * What every band cell takes.
52
+ *
53
+ * @property editable - `false` makes the cell read-only
54
+ */
55
+ export interface SheetGroupCellBaseConfig {
56
+ /** `false` makes the cell read-only. */
57
+ editable?: boolean;
58
+ }
59
+ /**
60
+ * A derived read — the cell displays the projection over the group row and
61
+ * is read-only; it may reach into the group's lines.
62
+ *
63
+ * @typeParam P - The group's row type
64
+ * @typeParam T - The kind's payload type
65
+ */
66
+ export interface SheetGroupValueConfig<P extends StructType, T extends EastType> {
67
+ /** The projection over the group row. */
68
+ value: (row: ExprType<P>) => SubtypeExprOrValue<T | OptionType<T>>;
69
+ }
70
+ /** Config for `Sheet.group.cell.date`. */
71
+ export interface SheetGroupDateConfig extends SheetGroupCellBaseConfig {
72
+ /** A display pattern (East date tokens). */
73
+ format?: SubtypeExprOrValue<StringType>;
74
+ }
75
+ /**
76
+ * Config for `Sheet.group.cell.quantity`. A band has no driver member, so a
77
+ * band quantity carries no unit; the line column's unit is the driver's.
78
+ */
79
+ export interface SheetGroupQuantityConfig extends SheetGroupCellBaseConfig {
80
+ /** A display format. */
81
+ format?: SubtypeExprOrValue<TickFormatType>;
82
+ }
83
+ /** Config for `Sheet.group.cell.stamped`. */
84
+ export interface SheetGroupStampedConfig {
85
+ /** The owning system. */
86
+ owner?: SubtypeExprOrValue<StringType>;
87
+ }
88
+ /** A text band cell — `Sheet.group.cell.text(P, "field", cfg)` on a `String` / `Option<String>` field, or a `value:` projection on any field. */
89
+ export declare function text<P extends StructType>(groupType: P, field: SheetFieldKey<P>, config: SheetGroupCellBaseConfig & SheetGroupValueConfig<P, StringType>): SheetGroupCell<P>;
90
+ export declare function text<P extends StructType>(groupType: P, field: SheetFieldOf<P, StringType>, config?: SheetGroupCellBaseConfig): SheetGroupCell<P>;
91
+ /** A date band cell — `Sheet.group.cell.date(P, "field", cfg)` on a `DateTime` / `Option<DateTime>` field. */
92
+ export declare function date<P extends StructType>(groupType: P, field: SheetFieldKey<P>, config: SheetGroupDateConfig & SheetGroupValueConfig<P, DateTimeType>): SheetGroupCell<P>;
93
+ export declare function date<P extends StructType>(groupType: P, field: SheetFieldOf<P, DateTimeType>, config?: SheetGroupDateConfig): SheetGroupCell<P>;
94
+ /** A quantity band cell — `Sheet.group.cell.quantity(P, "field", cfg)` on a `Float` / `Option<Float>` field, or a `value:` projection (a total over the lines, say). */
95
+ export declare function quantity<P extends StructType>(groupType: P, field: SheetFieldKey<P>, config: SheetGroupQuantityConfig & SheetGroupValueConfig<P, FloatType>): SheetGroupCell<P>;
96
+ export declare function quantity<P extends StructType>(groupType: P, field: SheetFieldOf<P, FloatType>, config?: SheetGroupQuantityConfig): SheetGroupCell<P>;
97
+ /** An integer band cell — `Sheet.group.cell.integer(P, "field", cfg)` on an `Integer` / `Option<Integer>` field. */
98
+ export declare function integer<P extends StructType>(groupType: P, field: SheetFieldKey<P>, config: SheetGroupCellBaseConfig & SheetGroupValueConfig<P, IntegerType>): SheetGroupCell<P>;
99
+ export declare function integer<P extends StructType>(groupType: P, field: SheetFieldOf<P, IntegerType>, config?: SheetGroupCellBaseConfig): SheetGroupCell<P>;
100
+ /** A reference band cell — `Sheet.group.cell.reference(P, register, "field", cfg)`: a lookup over a flat member list, on a `String` / `Option<String>` field. */
101
+ export declare function reference<P extends StructType>(_groupType: P, register: string, field: SheetFieldOf<P, StringType>, config?: SheetGroupCellBaseConfig): SheetGroupCell<P>;
102
+ /** An enum band cell — `Sheet.group.cell.enum(P, register, "field", cfg)`: an upper-cased register word with its valence dot, on a `String` / `Option<String>` field. */
103
+ export declare function enumCell<P extends StructType>(_groupType: P, register: string, field: SheetFieldOf<P, StringType>, config?: SheetGroupCellBaseConfig): SheetGroupCell<P>;
104
+ /** A stamped band cell — `Sheet.group.cell.stamped(P, "field", cfg)`: a read-only code an upstream system owns, on a `String` / `Option<String>` field. */
105
+ export declare function stamped<P extends StructType>(_groupType: P, field: SheetFieldOf<P, StringType>, config?: SheetGroupStampedConfig): SheetGroupCell<P>;
106
+ /**
107
+ * What `Sheet.group(P, "lines", …)` takes.
108
+ *
109
+ * @typeParam P - The group's row type
110
+ * @typeParam L - The line type the lines field holds
111
+ * @property title - The band's title — a `String` field of the group row; ⏎ / F2 on the band renames it
112
+ * @property sub - The band's eyebrow — an accessor over the group row, display only
113
+ * @property cells - Band cells keyed by the LINE column they sit under
114
+ * @property folded - Whether a group opens folded — an accessor over the group row
115
+ * @property noun - The word the renderer prints for a group — fold-all, the footer count, hints, the new-group button (#844); omitted, the renderer's own word in the viewer's language (`"group"` / `"groups"` in English, #861)
116
+ */
117
+ export interface SheetGroupConfig<P extends StructType, L extends StructType = StructType> {
118
+ /** The band's title — a `String` field of the group row. */
119
+ title: SheetFieldOf<P, StringType>;
120
+ /** The band's eyebrow — display only. */
121
+ sub?: (row: ExprType<P>) => SubtypeExprOrValue<StringType>;
122
+ /** Band cells keyed by the line column they sit under. */
123
+ cells?: {
124
+ [K in SheetFieldKey<L>]?: SheetGroupCell<P>;
125
+ };
126
+ /** Whether a group opens folded. */
127
+ folded?: (row: ExprType<P>) => SubtypeExprOrValue<BooleanType>;
128
+ /** The word the renderer prints for a group. */
129
+ noun?: {
130
+ /** One group (`"order"`). */
131
+ singular: SubtypeExprOrValue<StringType>;
132
+ /** Several (`"orders"`). */
133
+ plural: SubtypeExprOrValue<StringType>;
134
+ };
135
+ }
136
+ /**
137
+ * A built group declaration — what `Sheet.group(…)` returns and the `group`
138
+ * prop takes.
139
+ *
140
+ * @typeParam P - The group's row type
141
+ * @typeParam F - The lines field
142
+ */
143
+ export interface SheetGroupValue<P extends StructType, F extends string> {
144
+ /** The group's row type. */
145
+ readonly rowType: P;
146
+ /** The field holding the lines. */
147
+ readonly lines: F;
148
+ /** The author's config, as given. @internal */
149
+ readonly config: SheetGroupConfig<P, StructType>;
150
+ }
151
+ /**
152
+ * Declares grouped rows — `Sheet.group(P, "lines", { title, sub?, cells?, folded?, noun? })`
153
+ * (#740): the group is the row, `lines` names the `Array<Line>` field
154
+ * holding its lines, and the band draws the title, the eyebrow and the
155
+ * `cells` under their line columns.
156
+ *
157
+ * @typeParam P - The group's row type
158
+ * @typeParam F - The lines field — an `Array<Line>` field of `P`
159
+ * @param rowType - The group's row type value
160
+ * @param lines - The lines field
161
+ * @param config - The band ({@link SheetGroupConfig})
162
+ * @returns The declaration the `group` prop takes
163
+ */
164
+ export declare function createGroup<P extends StructType, F extends SheetLinesField<P>>(rowType: P, lines: F, config: SheetGroupConfig<P, SheetLineOf<P, F>>): SheetGroupValue<P, F>;
165
+ //# sourceMappingURL=group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../src/collections/sheet/group.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EACR,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EACV,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAMxE;;;;;GAKG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,UAAU;IAChD,uBAAuB;IACvB,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAC;IACtC,iDAAiD;IACjD,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACjC,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,wDAAwD;IACxD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;CAC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,CAAC;IAC3D,0DAA0D;IAC1D,KAAK,CAAC,EAAE;SAAG,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC;KAAE,CAAC;IACxD,oCAAoC;IACpC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC/D,gDAAgD;IAChD,IAAI,CAAC,EAAE;QACH,6BAA6B;QAC7B,QAAQ,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACzC,4BAA4B;QAC5B,MAAM,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;KAC1C,CAAC;CACL;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,MAAM;IACnE,4BAA4B;IAC5B,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IACpB,mCAAmC;IACnC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;CACpD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAE3K"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ // ============================================================================
6
+ // Builders
7
+ // ============================================================================
8
+ /** Build one band cell value. */
9
+ function cell(kind, field, config, extra = {}) {
10
+ return { kind, field, config: config, ...extra };
11
+ }
12
+ export function text(_groupType, field, config = {}) {
13
+ return cell("text", field, config);
14
+ }
15
+ export function date(_groupType, field, config = {}) {
16
+ return cell("date", field, config);
17
+ }
18
+ export function quantity(_groupType, field, config = {}) {
19
+ return cell("quantity", field, config);
20
+ }
21
+ export function integer(_groupType, field, config = {}) {
22
+ return cell("integer", field, config);
23
+ }
24
+ /** A reference band cell — `Sheet.group.cell.reference(P, register, "field", cfg)`: a lookup over a flat member list, on a `String` / `Option<String>` field. */
25
+ export function reference(_groupType, register, field, config = {}) {
26
+ return cell("reference", field, config, { register });
27
+ }
28
+ /** An enum band cell — `Sheet.group.cell.enum(P, register, "field", cfg)`: an upper-cased register word with its valence dot, on a `String` / `Option<String>` field. */
29
+ export function enumCell(_groupType, register, field, config = {}) {
30
+ return cell("enum", field, config, { register });
31
+ }
32
+ /** A stamped band cell — `Sheet.group.cell.stamped(P, "field", cfg)`: a read-only code an upstream system owns, on a `String` / `Option<String>` field. */
33
+ export function stamped(_groupType, field, config = {}) {
34
+ return cell("stamped", field, config);
35
+ }
36
+ /**
37
+ * Declares grouped rows — `Sheet.group(P, "lines", { title, sub?, cells?, folded?, noun? })`
38
+ * (#740): the group is the row, `lines` names the `Array<Line>` field
39
+ * holding its lines, and the band draws the title, the eyebrow and the
40
+ * `cells` under their line columns.
41
+ *
42
+ * @typeParam P - The group's row type
43
+ * @typeParam F - The lines field — an `Array<Line>` field of `P`
44
+ * @param rowType - The group's row type value
45
+ * @param lines - The lines field
46
+ * @param config - The band ({@link SheetGroupConfig})
47
+ * @returns The declaration the `group` prop takes
48
+ */
49
+ export function createGroup(rowType, lines, config) {
50
+ return { rowType, lines, config: config };
51
+ }
52
+ //# sourceMappingURL=group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.js","sourceRoot":"","sources":["../../../../src/collections/sheet/group.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkHH,+EAA+E;A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,2JAA2J;AAC3J,MAAM,UAAU,OAAO,CAAuB,UAAa,EAAE,KAAkC,EAAE,SAAkC,EAAE;IACjI,OAAO,IAAI,CAAC,SAAS,EAAE,KAAyB,EAAE,MAAM,CAAC,CAAC;AAC9D,CAAC;AAmDD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,WAAW,CAAqD,OAAU,EAAE,KAAQ,EAAE,MAA8C;IAChJ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAyC,EAAE,CAAC;AACjF,CAAC"}
@@ -13,8 +13,17 @@
13
13
  * The module is the namespace assembler over the split sources:
14
14
  * `types.ts` (the closed wire types + the typed constructors) ·
15
15
  * `columns.ts` (`Sheet.column.*`) · `registers.ts` (`Sheet.register.*`,
16
- * `Sheet.driver`) · `link.ts` (`Sheet.link.*`) · `bridge.ts` (the typed
17
- * bridge) · `root.ts` (`Sheet.Root`).
16
+ * `Sheet.driver`) · `link.ts` (`Sheet.link.*`) · `group.ts` (`Sheet.group`,
17
+ * `Sheet.group.cell.*`) · `sub-rows.ts` (`Sheet.subRows` / `Sheet.subRow`) ·
18
+ * `transactions.ts` and `drafts.ts` (the Sheet's names for the shared editing
19
+ * contract, `contracts/editing.ts` #879 — `Sheet.apply`, the checked batch
20
+ * types, the draft entry types and the `onPatch` event — plus the new-row
21
+ * contexts only a sheet has) · `edits.ts` (the `edits` capabilities) ·
22
+ * `bridge.ts` (the typed bridge) · `context-bridge.ts`, `draft-bridge.ts` and
23
+ * `seed-bridge.ts` (draft-aware contexts, draft decoding and the `newRow` /
24
+ * `newGroup` defaults) · `editing-bridge.ts` and `editing-types.ts` (the
25
+ * editing session's callbacks and their closed transport, the inline
26
+ * `onUpdate` adapter among them) · `root.ts` (`Sheet.Root`).
18
27
  *
19
28
  * One namespace object per category, the `Plan.series` / `Plan.at` /
20
29
  * `Plan.Types` split, so categories never mix as they grow.
@@ -22,21 +31,33 @@
22
31
  * @packageDocumentation
23
32
  */
24
33
  import { type ExprType, type StructType } from "@elaraai/east";
25
- import { SheetMemberType, SheetLinkType, SheetCellType, SheetRowType, SheetRowsCollectionType, SheetRowsType, SheetRegisterMemberType, SheetRegisterType, SheetDriverType, SheetHalfType, SheetSidesValueType, SheetStoreType, SheetMemberKindType, SheetMultipleType, SheetSideLockType, SheetSidesType, SheetCountedType, SheetContextType, SheetFillType, SheetProposalType, SheetProviderType, SheetProposerType, SheetSuggestType, SheetCheckContextType, SheetCheckType, SheetArityType, SheetColumnKindType, SheetColumnType, SheetViewType, SheetSourceType, SheetEditType, SheetSelectionType, SheetFooterItemType, SheetStyleType, SheetRootType, SheetContextTypeFor, SheetFillTypeFor, SheetPatchTypeFor, SheetProposalTypeFor, SheetEditTypeFor, SheetCheckContextTypeFor, type SheetPatchInput, type SheetPatchOf } from "./types.js";
34
+ import { SheetMemberType, SheetLinkType, SheetCellType, SheetRowType, SheetLineType, SheetBandType, SheetGroupCellType, SheetGroupType, SheetRowsCollectionType, SheetRowsType, SheetRegisterMemberType, SheetRegisterType, SheetDriverType, SheetHalfType, SheetSidesValueType, SheetStoreType, SheetMemberKindType, SheetMultipleType, SheetSideLockType, SheetSidesType, SheetCountedType, SheetContextType, SheetFillType, SheetProposalType, SheetProviderType, SheetProposerType, SheetSuggestType, SheetCheckContextType, SheetCheckType, SheetArityType, SheetColumnKindType, SheetColumnType, SheetViewType, SheetEditType, SheetSelectionType, SheetFooterItemType, SheetStyleType, SheetRootType, SheetFillTypeFor, SheetPatchTypeFor, SheetProposalTypeFor, SheetFacetType, SheetSubRowType, SheetDateLevelType, SheetOptionsRuleType, SheetNounType, sheetContextType, sheetCheckContextType, type SheetPatchInput, type SheetPatchOf } from "./types.js";
26
35
  import { text, date, quantity, integer, lookup, reference, enumColumn, set, link, stamped, custom } from "./columns.js";
27
36
  import { createMembers, concatMembers, createDriver } from "./registers.js";
28
37
  import { createArity, check, parseLink, printLink, SheetMembersType, SheetRegisterMembersType } from "./link.js";
29
38
  import { createSheet } from "./root.js";
30
- export { SheetMemberType, SheetLinkType, SheetCellType, SheetRowType, SheetRowsCollectionType, SheetRowsType, SheetRegisterMemberType, SheetRegisterType, SheetDriverType, SheetHalfType, type SheetHalfLiteral, SheetSidesValueType, type SheetSidesLiteral, SheetStoreType, type SheetStoreLiteral, SheetMemberKindType, SheetMultipleType, SheetSideLockType, SheetSidesType, SheetCountedType, SheetContextType, SheetFillType, SheetProposalType, SheetProviderType, SheetProposerType, SheetSuggestType, SheetCheckContextType, SheetCheckType, SheetArityType, SheetColumnKindType, type SheetColumnKindLiteral, SheetColumnType, SheetViewType, SheetSourceType, type SheetSourceLiteral, SheetEditType, SheetSelectionType, SheetFooterItemType, SheetStyleType, SheetRootType, SheetContextTypeFor, SheetFillTypeFor, SheetPatchTypeFor, SheetProposalTypeFor, SheetEditTypeFor, SheetCheckContextTypeFor, type SheetContextOf, type SheetFillOf, type SheetPatchOf, type SheetProposalOf, type SheetEditOf, type SheetCheckContextOf, type SheetPatchInput, type SheetFieldsOf, } from "./types.js";
31
- export { type SheetColumn, type SheetColumnSpec, type SheetFieldKey, type SheetMemberArrayField, type SheetFillInput, type SheetColumnBaseConfig, type SheetValueConfig, type SheetTextConfig, type SheetDateConfig, type SheetQuantityConfig, type SheetIntegerConfig, type SheetLookupConfig, type SheetReferenceConfig, type SheetEnumConfig, type SheetMemberKindInput, type SheetMultipleInput, type SheetSetConfig, type SheetSidesInput, type SheetLinkConfig, type SheetStampedConfig, type SheetCustomConfig, } from "./columns.js";
39
+ import { createSubRows, createSubRow } from "./sub-rows.js";
40
+ import { createGroup, text as groupText, date as groupDate, quantity as groupQuantity, integer as groupInteger, reference as groupReference, enumCell as groupEnum, stamped as groupStamped } from "./group.js";
41
+ import { applySheet, SheetPositionType, SheetEntryPlacementType, SheetRowDestinationType, SheetFieldIssueType, SheetReadinessType, SheetIssueType, SheetBatchReadinessType, SheetOriginType, SheetApplyResultType, SheetNewRowType, SheetNewGroupType, SheetDraftTypeFor, SheetBaseTypeFor, SheetChangeTypeFor, SheetChangeSetTypeFor, SheetAppliedTypeFor } from "./transactions.js";
42
+ export * from "./transactions.js";
43
+ import { SheetEntryTypeFor, SheetDraftGroupTypeFor, SheetDraftEntryTypeFor, SheetDraftChangeTypeFor, SheetPatchEventTypeFor } from "./drafts.js";
44
+ export * from "./drafts.js";
45
+ export * from "./editing-types.js";
46
+ export { SheetMemberType, SheetLinkType, SheetCellType, SheetRowType, SheetLineType, SheetBandType, SheetFacetType, SheetSubRowType, SheetDateLevelType, type SheetDateLevelLiteral, SheetOptionsRuleType, SheetNounType, SHEET_TITLE_CELL, sheetRuleCell, SheetGroupCellType, SheetGroupType, SheetRowsCollectionType, SheetRowsType, SheetRegisterMemberType, SheetRegisterType, SheetDriverType, SheetHalfType, type SheetHalfLiteral, SheetSidesValueType, type SheetSidesLiteral, SheetStoreType, type SheetStoreLiteral, SheetMemberKindType, SheetMultipleType, SheetSideLockType, SheetSidesType, SheetCountedType, SheetContextType, SheetFillType, SheetProposalType, SheetProviderType, SheetProposerType, SheetSuggestType, SheetCheckContextType, SheetCheckType, SheetArityType, SheetColumnKindType, type SheetColumnKindLiteral, SheetColumnType, SheetViewType, SheetEditType, SheetSelectionType, SheetFooterItemType, SheetStyleType, SheetRootType, SheetContextTypeFor, SheetFillTypeFor, SheetPatchTypeFor, SheetProposalTypeFor, SheetCheckContextTypeFor, SheetGroupContextTypeFor, SheetGroupCheckContextTypeFor, sheetContextType, sheetCheckContextType, sheetLinesOf, type SheetContextOf, type SheetFillOf, type SheetPatchOf, type SheetProposalOf, type SheetCheckContextOf, type SheetGroupContextOf, type SheetGroupCheckContextOf, type SheetAnyContextOf, type SheetAnyCheckContextOf, type SheetLinesField, type SheetLineOf, type SheetEntryOf, type SheetPatchInput, type SheetFieldsOf, } from "./types.js";
47
+ export { type SheetColumn, type SheetColumnSpec, type SheetFieldKey, type SheetMemberArrayField, type SheetFillInput, type SheetOptionsInput, type SheetColumnBaseConfig, type SheetValueConfig, type SheetTextConfig, type SheetDateConfig, type SheetQuantityConfig, type SheetIntegerConfig, type SheetLookupConfig, type SheetReferenceConfig, type SheetEnumConfig, type SheetMemberKindInput, type SheetMultipleInput, type SheetSetConfig, type SheetSidesInput, type SheetLinkConfig, type SheetStampedConfig, type SheetCustomConfig, } from "./columns.js";
32
48
  export { type SheetRegisterValue, type SheetMembersConfig, type SheetDriverConfig, type SheetDriverValue, } from "./registers.js";
33
49
  export { type SheetArityInput, type SheetCheckInput, type SheetExistsCheck, type SheetLocksInput, SheetMembersType, SheetRegisterMembersType, printMember, linkKeys, } from "./link.js";
34
- export { type SheetOptions, type SheetSuggestInput, type SheetProposerInput, type SheetStringField, type SheetBindHandle, createSheet, } from "./root.js";
35
- export { type SheetColumnMeta, describeColumn, optionPayload, cellTagOf } from "./bridge.js";
50
+ export { type SheetOptions, type SheetReadyInput, type SheetGroupedOptions, type SheetEntriesOptions, type SheetSuggestInput, type SheetProposerInput, type SheetStringField, type SheetBindHandle, createSheet, } from "./root.js";
51
+ export { type SheetGroupCell, type SheetGroupConfig, type SheetGroupValue, type SheetGroupCellBaseConfig, type SheetGroupValueConfig, type SheetGroupDateConfig, type SheetGroupQuantityConfig, type SheetGroupStampedConfig, type SheetFieldOf, createGroup, } from "./group.js";
52
+ export { type SheetArrayField, type SheetElementOf, type SheetSubRowSources, type SheetSubRowsValue, type SheetSubRowInput, createSubRows, createSubRow, } from "./sub-rows.js";
53
+ export { type SheetColumnMeta, type SheetRuleCellMeta, describeColumn, describeGroupCell, optionPayload, cellTagOf } from "./bridge.js";
36
54
  /**
37
- * Builds a row patch — `Sheet.patch(R, { … })`: the fields a proposal sets,
38
- * every other field `none` (§3.6). Takes the literal-record form of `R`'s
39
- * fields, each a literal or an expression of the FIELD's type.
55
+ * Builds a row patch — `Sheet.patch(R, { … })`: the fields it sets, every
56
+ * other field `none`. A proposer returns patches as its proposed rows
57
+ * (§3.6), and `newRow` / `newGroup` return one as a new row's explicit
58
+ * defaults, including required fields no column shows — a field it leaves
59
+ * `none` starts missing. Takes the literal-record form of `R`'s fields, each
60
+ * a literal or an expression of the FIELD's type.
40
61
  *
41
62
  * @typeParam R - The host's row type
42
63
  * @param rowType - The row type value
@@ -44,8 +65,30 @@ export { type SheetColumnMeta, describeColumn, optionPayload, cellTagOf } from "
44
65
  * @returns An expression of `Sheet.Types.Patch(R)`
45
66
  *
46
67
  * @example
47
- * ```ts
48
- * Sheet.patch(PlanRowType, { activity: "Machining", start: some(endAt.addDays(3n)), qty: ctx.row.qty })
68
+ * ```tsx
69
+ * // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
70
+ * import { ArrayType, East, IntegerType, StringType, StructType } from "@elaraai/east";
71
+ * import { Reactive, Sheet, State, Text, UIComponentType, VStack } from "@elaraai/east-ui";
72
+ *
73
+ * const sheet = East.function([], UIComponentType, (_$) => (
74
+ * <Reactive>{$ => {
75
+ * const RowType = StructType({ id: StringType, task: StringType, qty: IntegerType, createdBy: StringType });
76
+ * const jobs = $.const(State.bind([ArrayType(RowType)], "sheet_insertion_jobs", [
77
+ * { id: "rough", task: "Rough machining", qty: 120n, createdBy: "planner" },
78
+ * { id: "inspect", task: "Inspect lots", qty: 4n, createdBy: "planner" },
79
+ * { id: "finish", task: "Finish housings", qty: 120n, createdBy: "planner" },
80
+ * ]));
81
+ * const saved = $.const(jobs.read());
82
+ * return <VStack gap="3" align="stretch">
83
+ * <Text textStyle="caption" color="fg.muted">Hover or focus a gutter to insert before a row. Select a row marker for Insert above/below, or use Alt+Insert and Alt+Shift+Insert. Name the draft and Apply to save it.</Text>
84
+ * <Sheet data={jobs} id="id" columns={{ task: Sheet.column.text(RowType), qty: Sheet.column.integer(RowType) }}
85
+ * edits={{ insertRows: true, removeRows: false, moveRows: "none" }}
86
+ * newRow={East.function([Sheet.Types.NewRow], Sheet.Types.Patch(RowType), () => Sheet.patch(RowType, { qty: 1n, createdBy: "planner" }))}
87
+ * onUpdate={jobs.write} blanks={2n} />
88
+ * <Text.MonoLabel>{East.str`SAVED · ${saved.map((_$, row) => row.task).stringJoin(" → ")}`}</Text.MonoLabel>
89
+ * </VStack>;
90
+ * }}</Reactive>
91
+ * ));
49
92
  * ```
50
93
  */
51
94
  export declare function createPatch<R extends StructType>(rowType: R, record: SheetPatchInput<R>): ExprType<SheetPatchOf<R>>;
@@ -102,14 +145,113 @@ export interface SheetNamespace {
102
145
  /** The grammar's print — a link value to the planner's text. */
103
146
  print: typeof printLink;
104
147
  };
105
- /** A row patch — the fields a proposal sets (§3.6). */
148
+ /** A row patch — the fields a proposal or a new row's defaults set (§3.6). */
106
149
  patch: typeof createPatch;
107
- /** The Sheet East types — the closed wire types and the typed constructors. */
150
+ /** Sub rows (#844) — `Sheet.subRows(R, { field: (item, row) => Sheet.subRow({ … }) })`, keyed by `R`'s array fields. */
151
+ subRows: typeof createSubRows;
152
+ /** One sub row — `Sheet.subRow({ code?, name, chips?, facets?, id? })`. */
153
+ subRow: typeof createSubRow;
154
+ /** Applies a checked entry batch atomically to a collection — the shared `Editing.apply` (#879). */
155
+ apply: typeof applySheet;
156
+ /**
157
+ * Grouped rows (#740) — `Sheet.group(P, "lines", { title, sub?, cells?, folded?, noun? })`
158
+ * declares the group's lines field (an `Array` of line structs) and its
159
+ * band; `Sheet.group.cell.*` builds the band's cells over the group's
160
+ * fields. Over `Types.Entry(P, "lines")` entries, rows of the line type
161
+ * stand between the groups as loose rows (#846).
162
+ */
163
+ group: typeof createGroup & {
164
+ /** The band cell builders — each takes the group's row type first. */
165
+ cell: {
166
+ /** Free text. */
167
+ text: typeof groupText;
168
+ /** A UTC-midnight date. */
169
+ date: typeof groupDate;
170
+ /** A float — no unit on a band. */
171
+ quantity: typeof groupQuantity;
172
+ /** A whole number. */
173
+ integer: typeof groupInteger;
174
+ /** A lookup over a flat member list. */
175
+ reference: typeof groupReference;
176
+ /** An upper-cased register word with a valence dot. */
177
+ enum: typeof groupEnum;
178
+ /** A read-only code an upstream system owns. */
179
+ stamped: typeof groupStamped;
180
+ };
181
+ };
182
+ /**
183
+ * The Sheet East types — the closed wire types and the typed constructors.
184
+ * The transaction and draft types (`Entry`, `DraftGroup`, `DraftEntry`,
185
+ * `DraftChange`, `PatchEvent`, `Position`, `EntryPlacement`, `FieldIssue`,
186
+ * `Readiness`, `Issue`, `BatchReadiness`, `Origin`, `ApplyResult`, `Draft`,
187
+ * `Base`, `Change`, `ChangeSet`, `Applied`) are the shared editing
188
+ * contract's — each the same value as its `Editing.Types` name (#879).
189
+ */
108
190
  Types: {
191
+ /** `Entry(G, "rows")` — the group-or-row union of a source holding groups beside ungrouped rows: as a sheet's `data`, loose rows between the groups (#846) ({@link SheetEntryTypeFor}). */
192
+ Entry: typeof SheetEntryTypeFor;
193
+ /** DraftGroup type for source-bound editing. */
194
+ DraftGroup: typeof SheetDraftGroupTypeFor;
195
+ /** DraftEntry type for source-bound editing. */
196
+ DraftEntry: typeof SheetDraftEntryTypeFor;
197
+ /** DraftChange type for source-bound editing. */
198
+ DraftChange: typeof SheetDraftChangeTypeFor;
199
+ /** PatchEvent type for source-bound editing. */
200
+ PatchEvent: typeof SheetPatchEventTypeFor;
201
+ /** Position contract for checked Sheet transactions. */
202
+ Position: typeof SheetPositionType;
203
+ /** EntryPlacement contract for checked Sheet transactions. */
204
+ EntryPlacement: typeof SheetEntryPlacementType;
205
+ /** RowDestination contract for checked Sheet transactions. */
206
+ RowDestination: typeof SheetRowDestinationType;
207
+ /** FieldIssue contract for checked Sheet transactions. */
208
+ FieldIssue: typeof SheetFieldIssueType;
209
+ /** Readiness contract for checked Sheet transactions. */
210
+ Readiness: typeof SheetReadinessType;
211
+ /** Issue contract for checked Sheet transactions. */
212
+ Issue: typeof SheetIssueType;
213
+ /** BatchReadiness contract for checked Sheet transactions. */
214
+ BatchReadiness: typeof SheetBatchReadinessType;
215
+ /** Origin contract for checked Sheet transactions. */
216
+ Origin: typeof SheetOriginType;
217
+ /** ApplyResult contract for checked Sheet transactions. */
218
+ ApplyResult: typeof SheetApplyResultType;
219
+ /** NewRow contract for checked Sheet transactions. */
220
+ NewRow: typeof SheetNewRowType;
221
+ /** NewGroup contract for checked Sheet transactions. */
222
+ NewGroup: typeof SheetNewGroupType;
223
+ /** Draft contract for checked Sheet transactions. */
224
+ Draft: typeof SheetDraftTypeFor;
225
+ /** Base contract for checked Sheet transactions. */
226
+ Base: typeof SheetBaseTypeFor;
227
+ /** Change contract for checked Sheet transactions. */
228
+ Change: typeof SheetChangeTypeFor;
229
+ /** ChangeSet contract for checked Sheet transactions. */
230
+ ChangeSet: typeof SheetChangeSetTypeFor;
231
+ /** Applied contract for checked Sheet transactions. */
232
+ Applied: typeof SheetAppliedTypeFor;
109
233
  /** The Sheet root IR ({@link SheetRootType}). */
110
234
  Root: typeof SheetRootType;
111
- /** One wire row — id, `owned`, one cell per declared column ({@link SheetRowType}). */
235
+ /** One wire row — id, `owned`, one cell per declared column, and on a grouped sheet its lines and band ({@link SheetRowType}). */
112
236
  Row: typeof SheetRowType;
237
+ /** One line of a group row on the wire ({@link SheetLineType}). */
238
+ Line: typeof SheetLineType;
239
+ /** One sub row — a lead, a detail and an id ({@link SheetSubRowType}). */
240
+ SubRow: typeof SheetSubRowType;
241
+ /** One labelled fact of a sub row's detail ({@link SheetFacetType}). */
242
+ Facet: typeof SheetFacetType;
243
+ /** How deep a date column reads a row's date ({@link SheetDateLevelType}). */
244
+ DateLevel: typeof SheetDateLevelType;
245
+ /** A column's options rule on the wire ({@link SheetOptionsRuleType}). */
246
+ OptionsRule: typeof SheetOptionsRuleType;
247
+ /** The word the renderer prints for a group ({@link SheetNounType}). */
248
+ Noun: typeof SheetNounType;
249
+ /** The band a group row draws ({@link SheetBandType}). */
250
+ Band: typeof SheetBandType;
251
+ /** The group declaration on the wire ({@link SheetGroupType}). */
252
+ Group: typeof SheetGroupType;
253
+ /** One band cell on the wire ({@link SheetGroupCellType}). */
254
+ GroupCell: typeof SheetGroupCellType;
113
255
  /** The sheet's row collection ({@link SheetRowsCollectionType}). */
114
256
  Rows: typeof SheetRowsCollectionType;
115
257
  /** How the rows arrive — inline or paged ({@link SheetRowsType}). */
@@ -170,9 +312,7 @@ export interface SheetNamespace {
170
312
  Arity: typeof SheetArityType;
171
313
  /** One saved view ({@link SheetViewType}). */
172
314
  View: typeof SheetViewType;
173
- /** Where an edit came from ({@link SheetSourceType}). */
174
- Source: typeof SheetSourceType;
175
- /** The WIRE edit event ({@link SheetEditType}); authors use `Edit(R)`. */
315
+ /** The WIRE edit event ({@link SheetEditType}); internal gesture transport. */
176
316
  WireEdit: typeof SheetEditType;
177
317
  /** The selection ring's position ({@link SheetSelectionType}). */
178
318
  Selection: typeof SheetSelectionType;
@@ -180,18 +320,18 @@ export interface SheetNamespace {
180
320
  FooterItem: typeof SheetFooterItemType;
181
321
  /** The Sheet style ({@link SheetStyleType}). */
182
322
  Style: typeof SheetStyleType;
183
- /** `Context(R, D)` — the copilot context typed over the host's row and the driver's ({@link SheetContextTypeFor}). */
184
- Context: typeof SheetContextTypeFor;
323
+ /** `Context(R, D)` — the copilot context typed over the host's row and the driver's; `Context(P, "lines", D)` on a grouped sheet ({@link SheetContextTypeFor}, {@link SheetGroupContextTypeFor}). */
324
+ Context: typeof sheetContextType;
325
+ /** Constructs the draft-aware row, neighbours, group and driver context. */
326
+ DraftContext: typeof sheetContextType;
185
327
  /** `Fill(T)` — a proposed value of a column's payload ({@link SheetFillTypeFor}). */
186
328
  Fill: typeof SheetFillTypeFor;
187
329
  /** `Patch(R)` — a row patch, every field an `Option` ({@link SheetPatchTypeFor}). */
188
330
  Patch: typeof SheetPatchTypeFor;
189
331
  /** `Proposal(R)` — a patch plus its provenance ({@link SheetProposalTypeFor}). */
190
332
  Proposal: typeof SheetProposalTypeFor;
191
- /** `Edit(R)` — the raw edit event typed over the row ({@link SheetEditTypeFor}). */
192
- Edit: typeof SheetEditTypeFor;
193
- /** `CheckContext(R)` — what an author's member check sees ({@link SheetCheckContextTypeFor}). */
194
- CheckContext: typeof SheetCheckContextTypeFor;
333
+ /** `CheckContext(R)` — what an author's member check sees; `CheckContext(P, "lines")` on a grouped sheet ({@link SheetCheckContextTypeFor}, {@link SheetGroupCheckContextTypeFor}). */
334
+ CheckContext: typeof sheetCheckContextType;
195
335
  };
196
336
  }
197
337
  /**
@@ -199,9 +339,13 @@ export interface SheetNamespace {
199
339
  * `Sheet.Root` (the `<Sheet>` tag), declare columns with `Sheet.column.*`
200
340
  * (row type first), registers with `Sheet.register.members` / `.concat` and
201
341
  * the driver with `Sheet.driver`, link rules with `Sheet.link.*`, proposed
202
- * rows with `Sheet.patch`, and reach every East type — the closed wire types
203
- * and the typed constructors `Context(R, D)` / `Fill(T)` / `Patch(R)` /
204
- * `Proposal(R)` / `Edit(R)` / `CheckContext(R)` — via `Sheet.Types.*`.
342
+ * rows and new-row defaults with `Sheet.patch`, grouped rows with
343
+ * `Sheet.group` (#740), sub rows with `Sheet.subRows` / `Sheet.subRow`
344
+ * (#844), apply a checked batch to a collection with `Sheet.apply`, and
345
+ * reach every East type — the closed wire types and the typed constructors
346
+ * `DraftContext(R, D)` / `Fill(T)` / `Patch(R)` / `Proposal(R)` /
347
+ * `PatchEvent(E)` / `ChangeSet(E)` / `Entry(G, "rows")` / `CheckContext(R)`
348
+ * — via `Sheet.Types.*`. The `<Sheet>` tag carries every member but `Root`.
205
349
  */
206
350
  export declare const Sheet: SheetNamespace;
207
351
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collections/sheet/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAEH,KAAK,QAAQ,EAGb,KAAK,UAAU,EAGlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,eAAe,EACf,aAAa,EACb,aAAa,EACb,YAAY,EACZ,uBAAuB,EACvB,aAAa,EACb,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,mBAA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C;QAChC,kFAAkF;QAClF,QAAQ,EAAE,OAAO,oBAAoB,CAAC;QACtC,oFAAoF;QACpF,IAAI,EAAE,OAAO,gBAAgB,CAAC;QAC9B,iGAAiG;QACjG,YAAY,EAAE,OAAO,wBAAwB,CAAC;KACjD,CAAC;CACL;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK,EAAE,cAoDnB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collections/sheet/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAEH,KAAK,QAAQ,EAGb,KAAK,UAAU,EAGlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,eAAe,EACf,aAAa,EACb,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,aAAa,EACb,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,YAAY,EACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,U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