@elaraai/east-ui 1.0.86 → 1.0.87

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 (561) hide show
  1. package/dist/src/buttons/button/index.d.ts +4 -0
  2. package/dist/src/buttons/button/index.d.ts.map +1 -1
  3. package/dist/src/buttons/button/index.js +8 -1
  4. package/dist/src/buttons/button/index.js.map +1 -1
  5. package/dist/src/buttons/button/types.d.ts +6 -5
  6. package/dist/src/buttons/button/types.d.ts.map +1 -1
  7. package/dist/src/buttons/button/types.js.map +1 -1
  8. package/dist/src/buttons/icon-button/index.d.ts +5 -5
  9. package/dist/src/buttons/icon-button/index.d.ts.map +1 -1
  10. package/dist/src/buttons/icon-button/index.js +8 -2
  11. package/dist/src/buttons/icon-button/index.js.map +1 -1
  12. package/dist/src/buttons/icon-button/types.d.ts +8 -12
  13. package/dist/src/buttons/icon-button/types.d.ts.map +1 -1
  14. package/dist/src/buttons/icon-button/types.js +2 -2
  15. package/dist/src/buttons/icon-button/types.js.map +1 -1
  16. package/dist/src/buttons/toggle/index.d.ts +4 -0
  17. package/dist/src/buttons/toggle/index.d.ts.map +1 -1
  18. package/dist/src/buttons/toggle/index.js +6 -1
  19. package/dist/src/buttons/toggle/index.js.map +1 -1
  20. package/dist/src/buttons/toggle/types.d.ts +3 -2
  21. package/dist/src/buttons/toggle/types.d.ts.map +1 -1
  22. package/dist/src/buttons/toggle/types.js.map +1 -1
  23. package/dist/src/charts/chart/index.d.ts.map +1 -1
  24. package/dist/src/charts/chart/index.js +3 -3
  25. package/dist/src/charts/chart/index.js.map +1 -1
  26. package/dist/src/charts/spec/index.d.ts.map +1 -1
  27. package/dist/src/charts/spec/index.js +5 -2
  28. package/dist/src/charts/spec/index.js.map +1 -1
  29. package/dist/src/collections/deck/index.d.ts.map +1 -1
  30. package/dist/src/collections/deck/index.js +2 -2
  31. package/dist/src/collections/deck/index.js.map +1 -1
  32. package/dist/src/collections/index.d.ts +0 -6
  33. package/dist/src/collections/index.d.ts.map +1 -1
  34. package/dist/src/collections/index.js +0 -6
  35. package/dist/src/collections/index.js.map +1 -1
  36. package/dist/src/collections/library/index.d.ts +1 -1
  37. package/dist/src/collections/library/index.d.ts.map +1 -1
  38. package/dist/src/collections/library/index.js +2 -2
  39. package/dist/src/collections/library/index.js.map +1 -1
  40. package/dist/src/collections/schematic/index.d.ts.map +1 -1
  41. package/dist/src/collections/schematic/index.js +2 -2
  42. package/dist/src/collections/schematic/index.js.map +1 -1
  43. package/dist/src/collections/table/index.d.ts +1 -1
  44. package/dist/src/collections/table/index.d.ts.map +1 -1
  45. package/dist/src/collections/table/index.js +2 -2
  46. package/dist/src/collections/table/index.js.map +1 -1
  47. package/dist/src/collections/tree-view/index.d.ts +11 -32
  48. package/dist/src/collections/tree-view/index.d.ts.map +1 -1
  49. package/dist/src/collections/tree-view/index.js +15 -10
  50. package/dist/src/collections/tree-view/index.js.map +1 -1
  51. package/dist/src/component.d.ts +673 -9344
  52. package/dist/src/component.d.ts.map +1 -1
  53. package/dist/src/component.js +5 -259
  54. package/dist/src/component.js.map +1 -1
  55. package/dist/src/contracts/approval.d.ts +6 -8
  56. package/dist/src/contracts/approval.d.ts.map +1 -1
  57. package/dist/src/contracts/approval.js +6 -8
  58. package/dist/src/contracts/approval.js.map +1 -1
  59. package/dist/src/contracts/drag.d.ts +1 -1
  60. package/dist/src/contracts/drag.d.ts.map +1 -1
  61. package/dist/src/contracts/drag.js +4 -5
  62. package/dist/src/contracts/drag.js.map +1 -1
  63. package/dist/src/contracts/editing.d.ts +19 -19
  64. package/dist/src/contracts/editing.js +14 -14
  65. package/dist/src/contracts/fields.d.ts +471 -0
  66. package/dist/src/contracts/fields.d.ts.map +1 -0
  67. package/dist/src/contracts/fields.js +492 -0
  68. package/dist/src/contracts/fields.js.map +1 -0
  69. package/dist/src/contracts/index.d.ts +1 -0
  70. package/dist/src/contracts/index.d.ts.map +1 -1
  71. package/dist/src/contracts/index.js +1 -0
  72. package/dist/src/contracts/index.js.map +1 -1
  73. package/dist/src/contracts/indexed-source.d.ts +118 -0
  74. package/dist/src/contracts/indexed-source.d.ts.map +1 -0
  75. package/dist/src/contracts/indexed-source.js +89 -0
  76. package/dist/src/contracts/indexed-source.js.map +1 -0
  77. package/dist/src/contracts/pick.d.ts +0 -16
  78. package/dist/src/contracts/pick.d.ts.map +1 -1
  79. package/dist/src/contracts/review.d.ts +4 -6
  80. package/dist/src/contracts/review.d.ts.map +1 -1
  81. package/dist/src/contracts/review.js +4 -6
  82. package/dist/src/contracts/review.js.map +1 -1
  83. package/dist/src/contracts/source.d.ts +2 -2
  84. package/dist/src/contracts/source.d.ts.map +1 -1
  85. package/dist/src/contracts/source.js.map +1 -1
  86. package/dist/src/contracts/states.d.ts +1 -3
  87. package/dist/src/contracts/states.d.ts.map +1 -1
  88. package/dist/src/contracts/states.js +1 -3
  89. package/dist/src/contracts/states.js.map +1 -1
  90. package/dist/src/display/editable-chip/index.d.ts +2 -0
  91. package/dist/src/display/editable-chip/index.d.ts.map +1 -1
  92. package/dist/src/display/editable-chip/index.js +4 -1
  93. package/dist/src/display/editable-chip/index.js.map +1 -1
  94. package/dist/src/display/icon/index.d.ts +14 -31
  95. package/dist/src/display/icon/index.d.ts.map +1 -1
  96. package/dist/src/display/icon/index.js +15 -19
  97. package/dist/src/display/icon/index.js.map +1 -1
  98. package/dist/src/display/icon/solid.d.ts +24 -0
  99. package/dist/src/display/icon/solid.d.ts.map +1 -0
  100. package/dist/src/display/icon/solid.js +39 -0
  101. package/dist/src/display/icon/solid.js.map +1 -0
  102. package/dist/src/display/icon/types.d.ts +14 -38
  103. package/dist/src/display/icon/types.d.ts.map +1 -1
  104. package/dist/src/display/icon/types.js +6 -15
  105. package/dist/src/display/icon/types.js.map +1 -1
  106. package/dist/src/display/metric-chip/index.d.ts +2 -0
  107. package/dist/src/display/metric-chip/index.d.ts.map +1 -1
  108. package/dist/src/display/metric-chip/index.js +4 -1
  109. package/dist/src/display/metric-chip/index.js.map +1 -1
  110. package/dist/src/display/stat/index.d.ts +2 -0
  111. package/dist/src/display/stat/index.d.ts.map +1 -1
  112. package/dist/src/display/stat/index.js +4 -1
  113. package/dist/src/display/stat/index.js.map +1 -1
  114. package/dist/src/display/stat/types.d.ts +3 -5
  115. package/dist/src/display/stat/types.d.ts.map +1 -1
  116. package/dist/src/display/stat/types.js +5 -2
  117. package/dist/src/display/stat/types.js.map +1 -1
  118. package/dist/src/feedback/banner/index.d.ts +5 -3
  119. package/dist/src/feedback/banner/index.d.ts.map +1 -1
  120. package/dist/src/feedback/banner/index.js +4 -1
  121. package/dist/src/feedback/banner/index.js.map +1 -1
  122. package/dist/src/feedback/empty-state/index.d.ts +16 -19
  123. package/dist/src/feedback/empty-state/index.d.ts.map +1 -1
  124. package/dist/src/feedback/empty-state/index.js +17 -10
  125. package/dist/src/feedback/empty-state/index.js.map +1 -1
  126. package/dist/src/feedback/status/index.d.ts +5 -3
  127. package/dist/src/feedback/status/index.d.ts.map +1 -1
  128. package/dist/src/feedback/status/index.js +4 -1
  129. package/dist/src/feedback/status/index.js.map +1 -1
  130. package/dist/src/index.d.ts +5 -6
  131. package/dist/src/index.d.ts.map +1 -1
  132. package/dist/src/index.js +12 -11
  133. package/dist/src/index.js.map +1 -1
  134. package/dist/src/internal.d.ts +23 -16
  135. package/dist/src/internal.d.ts.map +1 -1
  136. package/dist/src/internal.js +29 -13
  137. package/dist/src/internal.js.map +1 -1
  138. package/dist/src/navigation/index.d.ts +0 -2
  139. package/dist/src/navigation/index.d.ts.map +1 -1
  140. package/dist/src/navigation/index.js +0 -2
  141. package/dist/src/navigation/index.js.map +1 -1
  142. package/dist/src/navigation/nav-list/index.d.ts +2 -0
  143. package/dist/src/navigation/nav-list/index.d.ts.map +1 -1
  144. package/dist/src/navigation/nav-list/index.js +4 -1
  145. package/dist/src/navigation/nav-list/index.js.map +1 -1
  146. package/dist/src/navigation/nav-list/types.d.ts +3 -14
  147. package/dist/src/navigation/nav-list/types.d.ts.map +1 -1
  148. package/dist/src/navigation/nav-list/types.js.map +1 -1
  149. package/dist/src/overlays/command-palette/index.d.ts +2 -0
  150. package/dist/src/overlays/command-palette/index.d.ts.map +1 -1
  151. package/dist/src/overlays/command-palette/index.js +5 -0
  152. package/dist/src/overlays/command-palette/index.js.map +1 -1
  153. package/dist/src/overlays/command-palette/types.d.ts +0 -8
  154. package/dist/src/overlays/command-palette/types.d.ts.map +1 -1
  155. package/dist/src/pick/index.d.ts +1 -17
  156. package/dist/src/pick/index.d.ts.map +1 -1
  157. package/dist/src/pick/index.js +1 -1
  158. package/dist/src/platform/slice/index.d.ts +1324 -2039
  159. package/dist/src/platform/slice/index.d.ts.map +1 -1
  160. package/dist/src/platform/slice/index.js +55 -74
  161. package/dist/src/platform/slice/index.js.map +1 -1
  162. package/dist/src/platform/slice/local.d.ts +743 -0
  163. package/dist/src/platform/slice/local.d.ts.map +1 -0
  164. package/dist/src/platform/slice/local.js +133 -0
  165. package/dist/src/platform/slice/local.js.map +1 -0
  166. package/dist/src/platform/slice/record-chrome.d.ts +211 -0
  167. package/dist/src/platform/slice/record-chrome.d.ts.map +1 -0
  168. package/dist/src/platform/slice/record-chrome.js +52 -0
  169. package/dist/src/platform/slice/record-chrome.js.map +1 -0
  170. package/dist/src/platform/slice/record-interval.d.ts +24 -0
  171. package/dist/src/platform/slice/record-interval.d.ts.map +1 -0
  172. package/dist/src/platform/slice/record-interval.js +61 -0
  173. package/dist/src/platform/slice/record-interval.js.map +1 -0
  174. package/dist/src/platform/slice/record-plan.d.ts +54 -0
  175. package/dist/src/platform/slice/record-plan.d.ts.map +1 -0
  176. package/dist/src/platform/slice/record-plan.js +139 -0
  177. package/dist/src/platform/slice/record-plan.js.map +1 -0
  178. package/dist/src/platform/slice/record-types.d.ts +2739 -0
  179. package/dist/src/platform/slice/record-types.d.ts.map +1 -0
  180. package/dist/src/platform/slice/record-types.js +209 -0
  181. package/dist/src/platform/slice/record-types.js.map +1 -0
  182. package/dist/src/platform/slice/record.d.ts +109 -0
  183. package/dist/src/platform/slice/record.d.ts.map +1 -0
  184. package/dist/src/platform/slice/record.js +210 -0
  185. package/dist/src/platform/slice/record.js.map +1 -0
  186. package/dist/src/reactive/match.d.ts +4 -6
  187. package/dist/src/reactive/match.d.ts.map +1 -1
  188. package/dist/src/reactive/match.js +4 -6
  189. package/dist/src/reactive/match.js.map +1 -1
  190. package/dist/src/runtime/collections/deck.d.ts.map +1 -1
  191. package/dist/src/runtime/collections/index.d.ts +0 -6
  192. package/dist/src/runtime/collections/index.d.ts.map +1 -1
  193. package/dist/src/runtime/collections/index.js +0 -6
  194. package/dist/src/runtime/collections/index.js.map +1 -1
  195. package/dist/src/runtime/display/icon.d.ts +6 -5
  196. package/dist/src/runtime/display/icon.d.ts.map +1 -1
  197. package/dist/src/runtime/display/icon.js +6 -5
  198. package/dist/src/runtime/display/icon.js.map +1 -1
  199. package/dist/src/runtime/feedback/empty-state.d.ts +5 -5
  200. package/dist/src/runtime/feedback/empty-state.js +5 -5
  201. package/dist/src/runtime/layout/dock.d.ts +2 -1
  202. package/dist/src/runtime/layout/dock.d.ts.map +1 -1
  203. package/dist/src/runtime/layout/dock.js +2 -1
  204. package/dist/src/runtime/layout/dock.js.map +1 -1
  205. package/dist/src/runtime/navigation/index.d.ts +0 -3
  206. package/dist/src/runtime/navigation/index.d.ts.map +1 -1
  207. package/dist/src/runtime/navigation/index.js +0 -3
  208. package/dist/src/runtime/navigation/index.js.map +1 -1
  209. package/dist/src/runtime/reactive/match.d.ts +2 -3
  210. package/dist/src/runtime/reactive/match.d.ts.map +1 -1
  211. package/dist/src/runtime/reactive/match.js +2 -3
  212. package/dist/src/runtime/reactive/match.js.map +1 -1
  213. package/dist/src/runtime/record-slice-source.d.ts +78 -0
  214. package/dist/src/runtime/record-slice-source.d.ts.map +1 -0
  215. package/dist/src/runtime/record-slice-source.js +201 -0
  216. package/dist/src/runtime/record-slice-source.js.map +1 -0
  217. package/dist/src/runtime/record-slice.d.ts +110 -0
  218. package/dist/src/runtime/record-slice.d.ts.map +1 -0
  219. package/dist/src/runtime/record-slice.js +374 -0
  220. package/dist/src/runtime/record-slice.js.map +1 -0
  221. package/dist/src/runtime/slice.d.ts +11 -13
  222. package/dist/src/runtime/slice.d.ts.map +1 -1
  223. package/dist/src/runtime/slice.js +41 -93
  224. package/dist/src/runtime/slice.js.map +1 -1
  225. package/dist/src/shared/plot-gutter.d.ts +1 -1
  226. package/dist/src/shared/plot-gutter.js +1 -1
  227. package/dist/src/shared/resolve-tag.d.ts +23 -0
  228. package/dist/src/shared/resolve-tag.d.ts.map +1 -0
  229. package/dist/src/shared/resolve-tag.js +26 -0
  230. package/dist/src/shared/resolve-tag.js.map +1 -0
  231. package/dist/src/shared/tree.d.ts +1 -1
  232. package/dist/src/shared/tree.js +1 -1
  233. package/dist/src/slice/breakdown/index.d.ts +1 -1
  234. package/dist/src/slice/breakdown/index.d.ts.map +1 -1
  235. package/dist/src/slice/breakdown/index.js +3 -3
  236. package/dist/src/slice/breakdown/index.js.map +1 -1
  237. package/dist/src/slice/cohort/index.d.ts +4 -5
  238. package/dist/src/slice/cohort/index.d.ts.map +1 -1
  239. package/dist/src/slice/cohort/index.js +6 -7
  240. package/dist/src/slice/cohort/index.js.map +1 -1
  241. package/dist/src/slice/filter/index.d.ts +1 -1
  242. package/dist/src/slice/filter/index.d.ts.map +1 -1
  243. package/dist/src/slice/filter/index.js +3 -3
  244. package/dist/src/slice/filter/index.js.map +1 -1
  245. package/dist/src/slice/index.d.ts +20 -2230
  246. package/dist/src/slice/index.d.ts.map +1 -1
  247. package/dist/src/slice/legend/index.d.ts +2 -2
  248. package/dist/src/slice/legend/index.d.ts.map +1 -1
  249. package/dist/src/slice/legend/index.js +4 -4
  250. package/dist/src/slice/legend/index.js.map +1 -1
  251. package/dist/src/slice/rail/index.d.ts +7 -4
  252. package/dist/src/slice/rail/index.d.ts.map +1 -1
  253. package/dist/src/slice/rail/index.js +10 -5
  254. package/dist/src/slice/rail/index.js.map +1 -1
  255. package/dist/src/slice/range/index.d.ts +1 -1
  256. package/dist/src/slice/range/index.d.ts.map +1 -1
  257. package/dist/src/slice/range/index.js +3 -3
  258. package/dist/src/slice/range/index.js.map +1 -1
  259. package/dist/src/slice/record/index.d.ts +171 -0
  260. package/dist/src/slice/record/index.d.ts.map +1 -0
  261. package/dist/src/slice/record/index.js +10 -0
  262. package/dist/src/slice/record/index.js.map +1 -0
  263. package/dist/src/slice/search/index.d.ts +6 -6
  264. package/dist/src/slice/search/index.d.ts.map +1 -1
  265. package/dist/src/slice/search/index.js +7 -7
  266. package/dist/src/slice/search/index.js.map +1 -1
  267. package/dist/src/slice/summary/index.d.ts +1 -1
  268. package/dist/src/slice/summary/index.d.ts.map +1 -1
  269. package/dist/src/slice/summary/index.js +3 -3
  270. package/dist/src/slice/summary/index.js.map +1 -1
  271. package/dist/src/typography/list/index.d.ts +2 -8
  272. package/dist/src/typography/list/index.d.ts.map +1 -1
  273. package/dist/src/typography/list/index.js +4 -1
  274. package/dist/src/typography/list/index.js.map +1 -1
  275. package/dist/src/typography/list/types.d.ts +0 -8
  276. package/dist/src/typography/list/types.d.ts.map +1 -1
  277. package/dist/test/collections/deck.examples.d.ts.map +1 -1
  278. package/dist/test/collections/deck.examples.js +6 -7
  279. package/dist/test/collections/deck.examples.js.map +1 -1
  280. package/dist/test/collections/index.d.ts +0 -1
  281. package/dist/test/collections/index.d.ts.map +1 -1
  282. package/dist/test/collections/index.js +0 -1
  283. package/dist/test/collections/index.js.map +1 -1
  284. package/dist/test/collections/library.examples.d.ts.map +1 -1
  285. package/dist/test/collections/library.examples.js +6 -7
  286. package/dist/test/collections/library.examples.js.map +1 -1
  287. package/dist/test/collections/schematic.examples.d.ts.map +1 -1
  288. package/dist/test/collections/schematic.examples.js +11 -19
  289. package/dist/test/collections/schematic.examples.js.map +1 -1
  290. package/dist/test/collections/tree-view.examples.js +2 -2
  291. package/dist/test/contracts/editing.examples.d.ts +1 -0
  292. package/dist/test/contracts/editing.examples.d.ts.map +1 -1
  293. package/dist/test/contracts/editing.examples.js +37 -6
  294. package/dist/test/contracts/editing.examples.js.map +1 -1
  295. package/dist/test/contracts/fields.examples.d.ts +7 -0
  296. package/dist/test/contracts/fields.examples.d.ts.map +1 -0
  297. package/dist/test/contracts/fields.examples.js +42 -0
  298. package/dist/test/contracts/fields.examples.js.map +1 -0
  299. package/dist/test/display/avatar.examples.d.ts.map +1 -1
  300. package/dist/test/display/avatar.examples.js +3 -3
  301. package/dist/test/display/avatar.examples.js.map +1 -1
  302. package/dist/test/display/icon.examples.d.ts.map +1 -1
  303. package/dist/test/display/icon.examples.js +12 -11
  304. package/dist/test/display/icon.examples.js.map +1 -1
  305. package/dist/test/feedback/empty-state.examples.js +9 -9
  306. package/dist/test/feedback/empty-state.examples.js.map +1 -1
  307. package/dist/test/layout/dock.examples.d.ts +0 -8
  308. package/dist/test/layout/dock.examples.d.ts.map +1 -1
  309. package/dist/test/layout/dock.examples.js +2 -42
  310. package/dist/test/layout/dock.examples.js.map +1 -1
  311. package/dist/test/layout/snap-grid.examples.d.ts.map +1 -1
  312. package/dist/test/layout/snap-grid.examples.js +18 -28
  313. package/dist/test/layout/snap-grid.examples.js.map +1 -1
  314. package/dist/test/navigation/index.d.ts +0 -2
  315. package/dist/test/navigation/index.d.ts.map +1 -1
  316. package/dist/test/navigation/index.js +0 -2
  317. package/dist/test/navigation/index.js.map +1 -1
  318. package/dist/test/navigation/nav-list.examples.js.map +1 -1
  319. package/dist/test/platform/index.d.ts +1 -0
  320. package/dist/test/platform/index.d.ts.map +1 -1
  321. package/dist/test/platform/index.js +1 -0
  322. package/dist/test/platform/index.js.map +1 -1
  323. package/dist/test/platform/slice-local.examples.d.ts +2 -0
  324. package/dist/test/platform/slice-local.examples.d.ts.map +1 -0
  325. package/dist/test/platform/slice-local.examples.js +31 -0
  326. package/dist/test/platform/slice-local.examples.js.map +1 -0
  327. package/dist/test/platform/slice.examples.js +61 -61
  328. package/dist/test/platform/slice.examples.js.map +1 -1
  329. package/dist/test/slice/slice.examples.d.ts +0 -1
  330. package/dist/test/slice/slice.examples.d.ts.map +1 -1
  331. package/dist/test/slice/slice.examples.js +67 -181
  332. package/dist/test/slice/slice.examples.js.map +1 -1
  333. package/package.json +4 -4
  334. package/dist/src/collections/board/index.d.ts +0 -855
  335. package/dist/src/collections/board/index.d.ts.map +0 -1
  336. package/dist/src/collections/board/index.js +0 -416
  337. package/dist/src/collections/board/index.js.map +0 -1
  338. package/dist/src/collections/board/types.d.ts +0 -111
  339. package/dist/src/collections/board/types.d.ts.map +0 -1
  340. package/dist/src/collections/board/types.js +0 -89
  341. package/dist/src/collections/board/types.js.map +0 -1
  342. package/dist/src/collections/calendar/index.d.ts +0 -446
  343. package/dist/src/collections/calendar/index.d.ts.map +0 -1
  344. package/dist/src/collections/calendar/index.js +0 -287
  345. package/dist/src/collections/calendar/index.js.map +0 -1
  346. package/dist/src/collections/calendar/types.d.ts +0 -338
  347. package/dist/src/collections/calendar/types.d.ts.map +0 -1
  348. package/dist/src/collections/calendar/types.js +0 -206
  349. package/dist/src/collections/calendar/types.js.map +0 -1
  350. package/dist/src/collections/flowchart/index.d.ts +0 -430
  351. package/dist/src/collections/flowchart/index.d.ts.map +0 -1
  352. package/dist/src/collections/flowchart/index.js +0 -292
  353. package/dist/src/collections/flowchart/index.js.map +0 -1
  354. package/dist/src/collections/flowchart/types.d.ts +0 -333
  355. package/dist/src/collections/flowchart/types.d.ts.map +0 -1
  356. package/dist/src/collections/flowchart/types.js +0 -263
  357. package/dist/src/collections/flowchart/types.js.map +0 -1
  358. package/dist/src/collections/plan/assemble.d.ts +0 -2274
  359. package/dist/src/collections/plan/assemble.d.ts.map +0 -1
  360. package/dist/src/collections/plan/assemble.js +0 -210
  361. package/dist/src/collections/plan/assemble.js.map +0 -1
  362. package/dist/src/collections/plan/builders.d.ts +0 -765
  363. package/dist/src/collections/plan/builders.d.ts.map +0 -1
  364. package/dist/src/collections/plan/builders.js +0 -673
  365. package/dist/src/collections/plan/builders.js.map +0 -1
  366. package/dist/src/collections/plan/factories.d.ts +0 -512
  367. package/dist/src/collections/plan/factories.d.ts.map +0 -1
  368. package/dist/src/collections/plan/factories.js +0 -539
  369. package/dist/src/collections/plan/factories.js.map +0 -1
  370. package/dist/src/collections/plan/index.d.ts +0 -324
  371. package/dist/src/collections/plan/index.d.ts.map +0 -1
  372. package/dist/src/collections/plan/index.js +0 -193
  373. package/dist/src/collections/plan/index.js.map +0 -1
  374. package/dist/src/collections/plan/ir.d.ts +0 -2490
  375. package/dist/src/collections/plan/ir.d.ts.map +0 -1
  376. package/dist/src/collections/plan/ir.js +0 -107
  377. package/dist/src/collections/plan/ir.js.map +0 -1
  378. package/dist/src/collections/plan/pick.d.ts +0 -133
  379. package/dist/src/collections/plan/pick.d.ts.map +0 -1
  380. package/dist/src/collections/plan/pick.js +0 -208
  381. package/dist/src/collections/plan/pick.js.map +0 -1
  382. package/dist/src/collections/plan/root.d.ts +0 -297
  383. package/dist/src/collections/plan/root.d.ts.map +0 -1
  384. package/dist/src/collections/plan/root.js +0 -427
  385. package/dist/src/collections/plan/root.js.map +0 -1
  386. package/dist/src/collections/plan/series.d.ts +0 -13887
  387. package/dist/src/collections/plan/series.d.ts.map +0 -1
  388. package/dist/src/collections/plan/series.js +0 -1710
  389. package/dist/src/collections/plan/series.js.map +0 -1
  390. package/dist/src/collections/plan/types.d.ts +0 -12612
  391. package/dist/src/collections/plan/types.d.ts.map +0 -1
  392. package/dist/src/collections/plan/types.js +0 -1345
  393. package/dist/src/collections/plan/types.js.map +0 -1
  394. package/dist/src/collections/roster/index.d.ts +0 -787
  395. package/dist/src/collections/roster/index.d.ts.map +0 -1
  396. package/dist/src/collections/roster/index.js +0 -325
  397. package/dist/src/collections/roster/index.js.map +0 -1
  398. package/dist/src/collections/roster/types.d.ts +0 -97
  399. package/dist/src/collections/roster/types.d.ts.map +0 -1
  400. package/dist/src/collections/roster/types.js +0 -72
  401. package/dist/src/collections/roster/types.js.map +0 -1
  402. package/dist/src/collections/sheet/bridge.d.ts +0 -376
  403. package/dist/src/collections/sheet/bridge.d.ts.map +0 -1
  404. package/dist/src/collections/sheet/bridge.js +0 -773
  405. package/dist/src/collections/sheet/bridge.js.map +0 -1
  406. package/dist/src/collections/sheet/columns.d.ts +0 -410
  407. package/dist/src/collections/sheet/columns.d.ts.map +0 -1
  408. package/dist/src/collections/sheet/columns.js +0 -99
  409. package/dist/src/collections/sheet/columns.js.map +0 -1
  410. package/dist/src/collections/sheet/context-bridge.d.ts +0 -48
  411. package/dist/src/collections/sheet/context-bridge.d.ts.map +0 -1
  412. package/dist/src/collections/sheet/context-bridge.js +0 -216
  413. package/dist/src/collections/sheet/context-bridge.js.map +0 -1
  414. package/dist/src/collections/sheet/draft-bridge.d.ts +0 -37
  415. package/dist/src/collections/sheet/draft-bridge.d.ts.map +0 -1
  416. package/dist/src/collections/sheet/draft-bridge.js +0 -153
  417. package/dist/src/collections/sheet/draft-bridge.js.map +0 -1
  418. package/dist/src/collections/sheet/drafts.d.ts +0 -14
  419. package/dist/src/collections/sheet/drafts.d.ts.map +0 -1
  420. package/dist/src/collections/sheet/drafts.js +0 -14
  421. package/dist/src/collections/sheet/drafts.js.map +0 -1
  422. package/dist/src/collections/sheet/editing-bridge.d.ts +0 -36
  423. package/dist/src/collections/sheet/editing-bridge.d.ts.map +0 -1
  424. package/dist/src/collections/sheet/editing-bridge.js +0 -196
  425. package/dist/src/collections/sheet/editing-bridge.js.map +0 -1
  426. package/dist/src/collections/sheet/editing-types.d.ts +0 -268
  427. package/dist/src/collections/sheet/editing-types.d.ts.map +0 -1
  428. package/dist/src/collections/sheet/editing-types.js +0 -34
  429. package/dist/src/collections/sheet/editing-types.js.map +0 -1
  430. package/dist/src/collections/sheet/edits.d.ts +0 -37
  431. package/dist/src/collections/sheet/edits.d.ts.map +0 -1
  432. package/dist/src/collections/sheet/edits.js +0 -31
  433. package/dist/src/collections/sheet/edits.js.map +0 -1
  434. package/dist/src/collections/sheet/group.d.ts +0 -165
  435. package/dist/src/collections/sheet/group.d.ts.map +0 -1
  436. package/dist/src/collections/sheet/group.js +0 -52
  437. package/dist/src/collections/sheet/group.js.map +0 -1
  438. package/dist/src/collections/sheet/index.d.ts +0 -351
  439. package/dist/src/collections/sheet/index.d.ts.map +0 -1
  440. package/dist/src/collections/sheet/index.js +0 -208
  441. package/dist/src/collections/sheet/index.js.map +0 -1
  442. package/dist/src/collections/sheet/link.d.ts +0 -398
  443. package/dist/src/collections/sheet/link.d.ts.map +0 -1
  444. package/dist/src/collections/sheet/link.js +0 -228
  445. package/dist/src/collections/sheet/link.js.map +0 -1
  446. package/dist/src/collections/sheet/registers.d.ts +0 -278
  447. package/dist/src/collections/sheet/registers.d.ts.map +0 -1
  448. package/dist/src/collections/sheet/registers.js +0 -268
  449. package/dist/src/collections/sheet/registers.js.map +0 -1
  450. package/dist/src/collections/sheet/root.d.ts +0 -328
  451. package/dist/src/collections/sheet/root.d.ts.map +0 -1
  452. package/dist/src/collections/sheet/root.js +0 -432
  453. package/dist/src/collections/sheet/root.js.map +0 -1
  454. package/dist/src/collections/sheet/seed-bridge.d.ts +0 -14
  455. package/dist/src/collections/sheet/seed-bridge.d.ts.map +0 -1
  456. package/dist/src/collections/sheet/seed-bridge.js +0 -51
  457. package/dist/src/collections/sheet/seed-bridge.js.map +0 -1
  458. package/dist/src/collections/sheet/sub-rows.d.ts +0 -249
  459. package/dist/src/collections/sheet/sub-rows.d.ts.map +0 -1
  460. package/dist/src/collections/sheet/sub-rows.js +0 -222
  461. package/dist/src/collections/sheet/sub-rows.js.map +0 -1
  462. package/dist/src/collections/sheet/transactions.d.ts +0 -76
  463. package/dist/src/collections/sheet/transactions.d.ts.map +0 -1
  464. package/dist/src/collections/sheet/transactions.js +0 -40
  465. package/dist/src/collections/sheet/transactions.js.map +0 -1
  466. package/dist/src/collections/sheet/types.d.ts +0 -14992
  467. package/dist/src/collections/sheet/types.d.ts.map +0 -1
  468. package/dist/src/collections/sheet/types.js +0 -1061
  469. package/dist/src/collections/sheet/types.js.map +0 -1
  470. package/dist/src/navigation/app/index.d.ts +0 -150
  471. package/dist/src/navigation/app/index.d.ts.map +0 -1
  472. package/dist/src/navigation/app/index.js +0 -191
  473. package/dist/src/navigation/app/index.js.map +0 -1
  474. package/dist/src/navigation/pages/index.d.ts +0 -165
  475. package/dist/src/navigation/pages/index.d.ts.map +0 -1
  476. package/dist/src/navigation/pages/index.js +0 -152
  477. package/dist/src/navigation/pages/index.js.map +0 -1
  478. package/dist/src/navigation/pages/types.d.ts +0 -111
  479. package/dist/src/navigation/pages/types.d.ts.map +0 -1
  480. package/dist/src/navigation/pages/types.js +0 -101
  481. package/dist/src/navigation/pages/types.js.map +0 -1
  482. package/dist/src/runtime/collections/board.d.ts +0 -73
  483. package/dist/src/runtime/collections/board.d.ts.map +0 -1
  484. package/dist/src/runtime/collections/board.js +0 -68
  485. package/dist/src/runtime/collections/board.js.map +0 -1
  486. package/dist/src/runtime/collections/calendar.d.ts +0 -54
  487. package/dist/src/runtime/collections/calendar.d.ts.map +0 -1
  488. package/dist/src/runtime/collections/calendar.js +0 -54
  489. package/dist/src/runtime/collections/calendar.js.map +0 -1
  490. package/dist/src/runtime/collections/flowchart.d.ts +0 -58
  491. package/dist/src/runtime/collections/flowchart.d.ts.map +0 -1
  492. package/dist/src/runtime/collections/flowchart.js +0 -54
  493. package/dist/src/runtime/collections/flowchart.js.map +0 -1
  494. package/dist/src/runtime/collections/plan.d.ts +0 -181
  495. package/dist/src/runtime/collections/plan.d.ts.map +0 -1
  496. package/dist/src/runtime/collections/plan.js +0 -186
  497. package/dist/src/runtime/collections/plan.js.map +0 -1
  498. package/dist/src/runtime/collections/roster.d.ts +0 -60
  499. package/dist/src/runtime/collections/roster.d.ts.map +0 -1
  500. package/dist/src/runtime/collections/roster.js +0 -59
  501. package/dist/src/runtime/collections/roster.js.map +0 -1
  502. package/dist/src/runtime/collections/sheet.d.ts +0 -122
  503. package/dist/src/runtime/collections/sheet.d.ts.map +0 -1
  504. package/dist/src/runtime/collections/sheet.js +0 -73
  505. package/dist/src/runtime/collections/sheet.js.map +0 -1
  506. package/dist/src/runtime/navigation/app.d.ts +0 -52
  507. package/dist/src/runtime/navigation/app.d.ts.map +0 -1
  508. package/dist/src/runtime/navigation/app.js +0 -53
  509. package/dist/src/runtime/navigation/app.js.map +0 -1
  510. package/dist/src/runtime/navigation/pages.d.ts +0 -50
  511. package/dist/src/runtime/navigation/pages.d.ts.map +0 -1
  512. package/dist/src/runtime/navigation/pages.js +0 -52
  513. package/dist/src/runtime/navigation/pages.js.map +0 -1
  514. package/dist/src/runtime/navigation/route.d.ts +0 -46
  515. package/dist/src/runtime/navigation/route.d.ts.map +0 -1
  516. package/dist/src/runtime/navigation/route.js +0 -47
  517. package/dist/src/runtime/navigation/route.js.map +0 -1
  518. package/dist/test/collections/board.examples.d.ts +0 -18
  519. package/dist/test/collections/board.examples.d.ts.map +0 -1
  520. package/dist/test/collections/board.examples.js +0 -297
  521. package/dist/test/collections/board.examples.js.map +0 -1
  522. package/dist/test/collections/calendar.examples.d.ts +0 -5
  523. package/dist/test/collections/calendar.examples.d.ts.map +0 -1
  524. package/dist/test/collections/calendar.examples.js +0 -147
  525. package/dist/test/collections/calendar.examples.js.map +0 -1
  526. package/dist/test/collections/flowchart.examples.d.ts +0 -17
  527. package/dist/test/collections/flowchart.examples.d.ts.map +0 -1
  528. package/dist/test/collections/flowchart.examples.js +0 -243
  529. package/dist/test/collections/flowchart.examples.js.map +0 -1
  530. package/dist/test/collections/plan.examples.d.ts +0 -200
  531. package/dist/test/collections/plan.examples.d.ts.map +0 -1
  532. package/dist/test/collections/plan.examples.js +0 -3665
  533. package/dist/test/collections/plan.examples.js.map +0 -1
  534. package/dist/test/collections/roster.examples.d.ts +0 -26
  535. package/dist/test/collections/roster.examples.d.ts.map +0 -1
  536. package/dist/test/collections/roster.examples.js +0 -237
  537. package/dist/test/collections/roster.examples.js.map +0 -1
  538. package/dist/test/collections/sheet-link.examples.d.ts +0 -7
  539. package/dist/test/collections/sheet-link.examples.d.ts.map +0 -1
  540. package/dist/test/collections/sheet-link.examples.js +0 -41
  541. package/dist/test/collections/sheet-link.examples.js.map +0 -1
  542. package/dist/test/collections/sheet-transactions.examples.d.ts +0 -7
  543. package/dist/test/collections/sheet-transactions.examples.d.ts.map +0 -1
  544. package/dist/test/collections/sheet-transactions.examples.js +0 -58
  545. package/dist/test/collections/sheet-transactions.examples.js.map +0 -1
  546. package/dist/test/collections/sheet.examples.d.ts +0 -96
  547. package/dist/test/collections/sheet.examples.d.ts.map +0 -1
  548. package/dist/test/collections/sheet.examples.js +0 -1040
  549. package/dist/test/collections/sheet.examples.js.map +0 -1
  550. package/dist/test/navigation/app.examples.d.ts +0 -22
  551. package/dist/test/navigation/app.examples.d.ts.map +0 -1
  552. package/dist/test/navigation/app.examples.js +0 -136
  553. package/dist/test/navigation/app.examples.js.map +0 -1
  554. package/dist/test/navigation/pages.examples.d.ts +0 -13
  555. package/dist/test/navigation/pages.examples.d.ts.map +0 -1
  556. package/dist/test/navigation/pages.examples.js +0 -113
  557. package/dist/test/navigation/pages.examples.js.map +0 -1
  558. package/dist/test/navigation/route.examples.d.ts +0 -13
  559. package/dist/test/navigation/route.examples.d.ts.map +0 -1
  560. package/dist/test/navigation/route.examples.js +0 -69
  561. package/dist/test/navigation/route.examples.js.map +0 -1
@@ -1,249 +0,0 @@
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.subRows` and `Sheet.subRow` — sub rows (#844,
7
- * `libs/east-ui/docs/proposals/Sheet Sub Rows - DX Proposal.md`): read-only
8
- * rows under a line (or a flat row) that share none of the sheet's columns.
9
- *
10
- * `Sheet.subRows(R, { field: (item, row) => Sheet.subRow({ … }) })` is keyed
11
- * like `columns`: each key names an `Array<T>` field of the type the columns
12
- * are built over, and its mapper turns one element into a sub row. Key order
13
- * is display order. The builder only CAPTURES; the root compiles each mapper
14
- * once and the bridge calls it inside the row projection (`bridge.ts`).
15
- *
16
- * @packageDocumentation
17
- */
18
- import { type EastType, type ExprType, type SubtypeExprOrValue, ArrayType, OptionType, StringType, type StructType } from "@elaraai/east";
19
- import { SheetSubRowType } from "./types.js";
20
- import type { SheetFieldKey } from "./columns.js";
21
- /**
22
- * The keys of a row struct whose field is an `Array` — what a sub-row source
23
- * may name.
24
- *
25
- * @typeParam R - The type the columns are built over
26
- */
27
- export type SheetArrayField<R extends StructType> = {
28
- [K in SheetFieldKey<R>]: R["fields"][K] extends ArrayType<EastType> ? K : never;
29
- }[SheetFieldKey<R>];
30
- /**
31
- * The element type one of those fields holds — a struct, a variant, a string…
32
- *
33
- * @typeParam R - The type the columns are built over
34
- * @typeParam K - The array field
35
- */
36
- export type SheetElementOf<R extends StructType, K extends SheetArrayField<R>> = R["fields"][K] extends ArrayType<infer T extends EastType> ? T : never;
37
- /**
38
- * The sub-row sources — keyed by `R`'s array fields; each value maps one
39
- * element (and, when it needs it, the row) to a sub row.
40
- *
41
- * @typeParam R - The type the columns are built over
42
- */
43
- export type SheetSubRowSources<R extends StructType> = {
44
- [K in SheetArrayField<R>]?: (item: ExprType<SheetElementOf<R, K>>, row: ExprType<R>) => SubtypeExprOrValue<SheetSubRowType>;
45
- };
46
- /**
47
- * What `Sheet.subRows` returns and the `subRows` prop takes — it captures
48
- * only, like a group declaration.
49
- *
50
- * @typeParam R - The type the columns are built over
51
- */
52
- export interface SheetSubRowsValue<R extends StructType> {
53
- /** The type the sources were declared over — checked against the columns' at build time. */
54
- readonly rowType: R;
55
- /** The sources, in display order. */
56
- readonly sources: SheetSubRowSources<R>;
57
- }
58
- /**
59
- * Declares where a sheet's sub rows come from — `Sheet.subRows(R, { … })`.
60
- *
61
- * @typeParam R - The type the columns are built over (a grouped sheet: the line type)
62
- * @param rowType - The row type value
63
- * @param sources - Array field → mapper to a sub row, in display order
64
- * @returns The declaration the `subRows` prop takes
65
- *
66
- * @example
67
- * ```tsx
68
- * // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
69
- * import { ArrayType, East, FloatType, IntegerType, OptionType, StringType, StructType, VariantType, none, some, variant } from "@elaraai/east";
70
- * import { Reactive, Sheet, State, UIComponentType } from "@elaraai/east-ui";
71
- *
72
- * const sheet = East.function([], UIComponentType, (_$) => (
73
- * <Reactive>{$ => {
74
- * const OperationType = StructType({
75
- * id: StringType, code: StringType, name: StringType, materials: ArrayType(StringType),
76
- * station: OptionType(StringType), by: OptionType(StringType),
77
- * });
78
- * const BookingType = VariantType({
79
- * space: StructType({ area: StringType, units: IntegerType }),
80
- * labour: StructType({ team: StringType, people: IntegerType, hours: FloatType }),
81
- * equipment: StructType({ resource: StringType }),
82
- * });
83
- * const JobType = StructType({
84
- * task: StringType, qty: OptionType(FloatType), notes: StringType,
85
- * operations: ArrayType(OperationType), // no column — shown as sub rows
86
- * bookings: ArrayType(BookingType), // no column — shown as sub rows
87
- * });
88
- * const OrderType = StructType({ id: StringType, name: StringType, jobs: ArrayType(JobType) });
89
- * const orders = $.let(State.bind([ArrayType(OrderType)], "sheet_subrows_orders", [
90
- * { id: "wo-1042", name: "WO-1042 · Frames", jobs: [
91
- * { task: "Assemble frames", qty: some(40.0), notes: "Two benches", operations: [
92
- * { id: "WO-1042-1", code: "CUT", name: "Cut rails to length", materials: ["Rail stock × 80"], station: some("Saw 2"), by: none },
93
- * { id: "WO-1042-2", code: "ASM", name: "Assemble frame", materials: ["M6 bolts × 12", "Frame kit"], station: some("Bench 7"), by: some("Assembly") },
94
- * ], bookings: [
95
- * variant("labour", { team: "Assembly", people: 2n, hours: 12.0 }),
96
- * variant("equipment", { resource: "Torque driver" }),
97
- * ] },
98
- * { task: "Inspect frames", qty: some(40.0), notes: "", operations: [], bookings: [
99
- * variant("space", { area: "Test bay", units: 2n }),
100
- * ] },
101
- * ] },
102
- * { id: "wo-1043", name: "WO-1043 · Housings", jobs: [
103
- * { task: "Paint housings", qty: some(250.0), notes: "Primer first", operations: [
104
- * { id: "WO-1043-1", code: "PNT", name: "Prime and paint", materials: ["Primer", "Topcoat"], station: none, by: none },
105
- * ], bookings: [] },
106
- * ] },
107
- * ]));
108
- * return (
109
- * <Sheet
110
- * data={orders}
111
- * id="id"
112
- * group={Sheet.group(OrderType, "jobs", { title: "name", noun: { singular: "order", plural: "orders" } })}
113
- * columns={{
114
- * task: Sheet.column.text(JobType, { header: "Task", width: "220px" }),
115
- * qty: Sheet.column.quantity(JobType, { header: "Qty", width: "96px" }),
116
- * notes: Sheet.column.text(JobType, { header: "Notes", width: "240px" }),
117
- * }}
118
- * subRows={Sheet.subRows(JobType, {
119
- * operations: (op) => Sheet.subRow({
120
- * code: op.code,
121
- * name: op.name,
122
- * chips: op.materials,
123
- * facets: { station: op.station, by: op.by }, // a none drops out
124
- * id: op.id,
125
- * }),
126
- * bookings: (b) => b.match({
127
- * space: (_$2, s) => Sheet.subRow({ code: "CLAIM", name: East.str`${s.area} · ${s.units} units` }),
128
- * labour: (_$2, l) => Sheet.subRow({ code: "LABOUR", name: East.str`${l.team} · ${l.people} people · ${l.hours} person-hours` }),
129
- * equipment: (_$2, e) => Sheet.subRow({ code: "EQUIPMENT", name: e.resource }),
130
- * }),
131
- * })}
132
- * newRow={East.function([Sheet.Types.NewRow], Sheet.Types.Patch(JobType), () => Sheet.patch(JobType, { notes: "", operations: [], bookings: [] }))}
133
- * newGroup={East.function([Sheet.Types.NewGroup], Sheet.Types.Patch(OrderType), () => Sheet.patch(OrderType, { jobs: [] }))}
134
- * onUpdate={orders.write}
135
- * style={{ height: "420px" }}
136
- * />
137
- * );
138
- * }}</Reactive>
139
- * ));
140
- * ```
141
- */
142
- export declare function createSubRows<R extends StructType>(rowType: R, sources: SheetSubRowSources<R>): SheetSubRowsValue<R>;
143
- /**
144
- * The literal-record input of `Sheet.subRow({ … })`.
145
- *
146
- * @property code - The lead's code; an `Option` becomes its value or `""`
147
- * @property name - The lead's words
148
- * @property chips - The detail's parameter chips
149
- * @property facets - Label → value, in display order; a `none` value drops the facet
150
- * @property id - The record the sub row traces to; an `Option` becomes its value or `""`
151
- */
152
- export interface SheetSubRowInput {
153
- /** The lead's code. */
154
- code?: SubtypeExprOrValue<StringType | OptionType<StringType>>;
155
- /** The lead's words. */
156
- name: SubtypeExprOrValue<StringType>;
157
- /** The detail's parameter chips. */
158
- chips?: SubtypeExprOrValue<ArrayType<StringType>>;
159
- /** Label → value; a `none` value drops the facet. */
160
- facets?: Record<string, SubtypeExprOrValue<StringType | OptionType<StringType>>>;
161
- /** The record the sub row traces to. */
162
- id?: SubtypeExprOrValue<StringType | OptionType<StringType>>;
163
- }
164
- /**
165
- * Builds one sub row — `Sheet.subRow({ code?, name, chips?, facets?, id? })`.
166
- * What is left out is filled in: `code` and `id` become `""`, `chips` and
167
- * `facets` `[]`; a facet whose value is `none` drops out.
168
- *
169
- * @param input - The sub row's fields ({@link SheetSubRowInput})
170
- * @returns An expression of `Sheet.Types.SubRow`
171
- *
172
- * @example
173
- * ```tsx
174
- * // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
175
- * import { ArrayType, East, FloatType, IntegerType, OptionType, StringType, StructType, VariantType, none, some, variant } from "@elaraai/east";
176
- * import { Reactive, Sheet, State, UIComponentType } from "@elaraai/east-ui";
177
- *
178
- * const sheet = East.function([], UIComponentType, (_$) => (
179
- * <Reactive>{$ => {
180
- * const OperationType = StructType({
181
- * id: StringType, code: StringType, name: StringType, materials: ArrayType(StringType),
182
- * station: OptionType(StringType), by: OptionType(StringType),
183
- * });
184
- * const BookingType = VariantType({
185
- * space: StructType({ area: StringType, units: IntegerType }),
186
- * labour: StructType({ team: StringType, people: IntegerType, hours: FloatType }),
187
- * equipment: StructType({ resource: StringType }),
188
- * });
189
- * const JobType = StructType({
190
- * task: StringType, qty: OptionType(FloatType), notes: StringType,
191
- * operations: ArrayType(OperationType), // no column — shown as sub rows
192
- * bookings: ArrayType(BookingType), // no column — shown as sub rows
193
- * });
194
- * const OrderType = StructType({ id: StringType, name: StringType, jobs: ArrayType(JobType) });
195
- * const orders = $.let(State.bind([ArrayType(OrderType)], "sheet_subrows_orders", [
196
- * { id: "wo-1042", name: "WO-1042 · Frames", jobs: [
197
- * { task: "Assemble frames", qty: some(40.0), notes: "Two benches", operations: [
198
- * { id: "WO-1042-1", code: "CUT", name: "Cut rails to length", materials: ["Rail stock × 80"], station: some("Saw 2"), by: none },
199
- * { id: "WO-1042-2", code: "ASM", name: "Assemble frame", materials: ["M6 bolts × 12", "Frame kit"], station: some("Bench 7"), by: some("Assembly") },
200
- * ], bookings: [
201
- * variant("labour", { team: "Assembly", people: 2n, hours: 12.0 }),
202
- * variant("equipment", { resource: "Torque driver" }),
203
- * ] },
204
- * { task: "Inspect frames", qty: some(40.0), notes: "", operations: [], bookings: [
205
- * variant("space", { area: "Test bay", units: 2n }),
206
- * ] },
207
- * ] },
208
- * { id: "wo-1043", name: "WO-1043 · Housings", jobs: [
209
- * { task: "Paint housings", qty: some(250.0), notes: "Primer first", operations: [
210
- * { id: "WO-1043-1", code: "PNT", name: "Prime and paint", materials: ["Primer", "Topcoat"], station: none, by: none },
211
- * ], bookings: [] },
212
- * ] },
213
- * ]));
214
- * return (
215
- * <Sheet
216
- * data={orders}
217
- * id="id"
218
- * group={Sheet.group(OrderType, "jobs", { title: "name", noun: { singular: "order", plural: "orders" } })}
219
- * columns={{
220
- * task: Sheet.column.text(JobType, { header: "Task", width: "220px" }),
221
- * qty: Sheet.column.quantity(JobType, { header: "Qty", width: "96px" }),
222
- * notes: Sheet.column.text(JobType, { header: "Notes", width: "240px" }),
223
- * }}
224
- * subRows={Sheet.subRows(JobType, {
225
- * operations: (op) => Sheet.subRow({
226
- * code: op.code,
227
- * name: op.name,
228
- * chips: op.materials,
229
- * facets: { station: op.station, by: op.by }, // a none drops out
230
- * id: op.id,
231
- * }),
232
- * bookings: (b) => b.match({
233
- * space: (_$2, s) => Sheet.subRow({ code: "CLAIM", name: East.str`${s.area} · ${s.units} units` }),
234
- * labour: (_$2, l) => Sheet.subRow({ code: "LABOUR", name: East.str`${l.team} · ${l.people} people · ${l.hours} person-hours` }),
235
- * equipment: (_$2, e) => Sheet.subRow({ code: "EQUIPMENT", name: e.resource }),
236
- * }),
237
- * })}
238
- * newRow={East.function([Sheet.Types.NewRow], Sheet.Types.Patch(JobType), () => Sheet.patch(JobType, { notes: "", operations: [], bookings: [] }))}
239
- * newGroup={East.function([Sheet.Types.NewGroup], Sheet.Types.Patch(OrderType), () => Sheet.patch(OrderType, { jobs: [] }))}
240
- * onUpdate={orders.write}
241
- * style={{ height: "420px" }}
242
- * />
243
- * );
244
- * }}</Reactive>
245
- * ));
246
- * ```
247
- */
248
- export declare function createSubRow(input: SheetSubRowInput): ExprType<SheetSubRowType>;
249
- //# sourceMappingURL=sub-rows.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sub-rows.d.ts","sourceRoot":"","sources":["../../../../src/collections/sheet/sub-rows.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;GAYG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAGvB,SAAS,EACT,UAAU,EACV,UAAU,EACV,KAAK,UAAU,EAGlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAkB,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;;GAKG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,UAAU,IAAI;KAC/C,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK;CAClF,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAEpB;;;;;GAKG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,IACzE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,SAAS,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,UAAU,IAAI;KAClD,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,kBAAkB,CAAC,eAAe,CAAC;CAC9H,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,UAAU;IACnD,4FAA4F;IAC5F,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IACpB,qCAAqC;IACrC,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,UAAU,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAEpH;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC7B,uBAAuB;IACvB,IAAI,CAAC,EAAE,kBAAkB,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IAC/D,wBAAwB;IACxB,IAAI,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACrC,oCAAoC;IACpC,KAAK,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;IAClD,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACjF,wCAAwC;IACxC,EAAE,CAAC,EAAE,kBAAkB,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;CAChE;AAoBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,gBAAgB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAa/E"}
@@ -1,222 +0,0 @@
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.subRows` and `Sheet.subRow` — sub rows (#844,
7
- * `libs/east-ui/docs/proposals/Sheet Sub Rows - DX Proposal.md`): read-only
8
- * rows under a line (or a flat row) that share none of the sheet's columns.
9
- *
10
- * `Sheet.subRows(R, { field: (item, row) => Sheet.subRow({ … }) })` is keyed
11
- * like `columns`: each key names an `Array<T>` field of the type the columns
12
- * are built over, and its mapper turns one element into a sub row. Key order
13
- * is display order. The builder only CAPTURES; the root compiles each mapper
14
- * once and the bridge calls it inside the row projection (`bridge.ts`).
15
- *
16
- * @packageDocumentation
17
- */
18
- import { East, Expr, ArrayType, OptionType, StringType, some, none, } from "@elaraai/east";
19
- import { SheetFacetType, SheetSubRowType } from "./types.js";
20
- /**
21
- * Declares where a sheet's sub rows come from — `Sheet.subRows(R, { … })`.
22
- *
23
- * @typeParam R - The type the columns are built over (a grouped sheet: the line type)
24
- * @param rowType - The row type value
25
- * @param sources - Array field → mapper to a sub row, in display order
26
- * @returns The declaration the `subRows` prop takes
27
- *
28
- * @example
29
- * ```tsx
30
- * // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
31
- * import { ArrayType, East, FloatType, IntegerType, OptionType, StringType, StructType, VariantType, none, some, variant } from "@elaraai/east";
32
- * import { Reactive, Sheet, State, UIComponentType } from "@elaraai/east-ui";
33
- *
34
- * const sheet = East.function([], UIComponentType, (_$) => (
35
- * <Reactive>{$ => {
36
- * const OperationType = StructType({
37
- * id: StringType, code: StringType, name: StringType, materials: ArrayType(StringType),
38
- * station: OptionType(StringType), by: OptionType(StringType),
39
- * });
40
- * const BookingType = VariantType({
41
- * space: StructType({ area: StringType, units: IntegerType }),
42
- * labour: StructType({ team: StringType, people: IntegerType, hours: FloatType }),
43
- * equipment: StructType({ resource: StringType }),
44
- * });
45
- * const JobType = StructType({
46
- * task: StringType, qty: OptionType(FloatType), notes: StringType,
47
- * operations: ArrayType(OperationType), // no column — shown as sub rows
48
- * bookings: ArrayType(BookingType), // no column — shown as sub rows
49
- * });
50
- * const OrderType = StructType({ id: StringType, name: StringType, jobs: ArrayType(JobType) });
51
- * const orders = $.let(State.bind([ArrayType(OrderType)], "sheet_subrows_orders", [
52
- * { id: "wo-1042", name: "WO-1042 · Frames", jobs: [
53
- * { task: "Assemble frames", qty: some(40.0), notes: "Two benches", operations: [
54
- * { id: "WO-1042-1", code: "CUT", name: "Cut rails to length", materials: ["Rail stock × 80"], station: some("Saw 2"), by: none },
55
- * { id: "WO-1042-2", code: "ASM", name: "Assemble frame", materials: ["M6 bolts × 12", "Frame kit"], station: some("Bench 7"), by: some("Assembly") },
56
- * ], bookings: [
57
- * variant("labour", { team: "Assembly", people: 2n, hours: 12.0 }),
58
- * variant("equipment", { resource: "Torque driver" }),
59
- * ] },
60
- * { task: "Inspect frames", qty: some(40.0), notes: "", operations: [], bookings: [
61
- * variant("space", { area: "Test bay", units: 2n }),
62
- * ] },
63
- * ] },
64
- * { id: "wo-1043", name: "WO-1043 · Housings", jobs: [
65
- * { task: "Paint housings", qty: some(250.0), notes: "Primer first", operations: [
66
- * { id: "WO-1043-1", code: "PNT", name: "Prime and paint", materials: ["Primer", "Topcoat"], station: none, by: none },
67
- * ], bookings: [] },
68
- * ] },
69
- * ]));
70
- * return (
71
- * <Sheet
72
- * data={orders}
73
- * id="id"
74
- * group={Sheet.group(OrderType, "jobs", { title: "name", noun: { singular: "order", plural: "orders" } })}
75
- * columns={{
76
- * task: Sheet.column.text(JobType, { header: "Task", width: "220px" }),
77
- * qty: Sheet.column.quantity(JobType, { header: "Qty", width: "96px" }),
78
- * notes: Sheet.column.text(JobType, { header: "Notes", width: "240px" }),
79
- * }}
80
- * subRows={Sheet.subRows(JobType, {
81
- * operations: (op) => Sheet.subRow({
82
- * code: op.code,
83
- * name: op.name,
84
- * chips: op.materials,
85
- * facets: { station: op.station, by: op.by }, // a none drops out
86
- * id: op.id,
87
- * }),
88
- * bookings: (b) => b.match({
89
- * space: (_$2, s) => Sheet.subRow({ code: "CLAIM", name: East.str`${s.area} · ${s.units} units` }),
90
- * labour: (_$2, l) => Sheet.subRow({ code: "LABOUR", name: East.str`${l.team} · ${l.people} people · ${l.hours} person-hours` }),
91
- * equipment: (_$2, e) => Sheet.subRow({ code: "EQUIPMENT", name: e.resource }),
92
- * }),
93
- * })}
94
- * newRow={East.function([Sheet.Types.NewRow], Sheet.Types.Patch(JobType), () => Sheet.patch(JobType, { notes: "", operations: [], bookings: [] }))}
95
- * newGroup={East.function([Sheet.Types.NewGroup], Sheet.Types.Patch(OrderType), () => Sheet.patch(OrderType, { jobs: [] }))}
96
- * onUpdate={orders.write}
97
- * style={{ height: "420px" }}
98
- * />
99
- * );
100
- * }}</Reactive>
101
- * ));
102
- * ```
103
- */
104
- export function createSubRows(rowType, sources) {
105
- return { rowType, sources };
106
- }
107
- /** A `String` or `Option<String>` input as an `Option<String>` expression, its shape read once at build time. */
108
- function optionalText(v) {
109
- if (typeof v === "string")
110
- return East.value(some(v), OptionType(StringType));
111
- if (v instanceof Expr) {
112
- if (Expr.type(v) === StringType) {
113
- return East.value(some(v), OptionType(StringType));
114
- }
115
- return v;
116
- }
117
- return East.value(v, OptionType(StringType));
118
- }
119
- /** A `String` or `Option<String>` input as display text, `""` for none. */
120
- function textOrBlank(v) {
121
- if (v === undefined)
122
- return East.value("", StringType);
123
- return optionalText(v).match({ some: (_$, s) => s, none: (_$) => "" });
124
- }
125
- /**
126
- * Builds one sub row — `Sheet.subRow({ code?, name, chips?, facets?, id? })`.
127
- * What is left out is filled in: `code` and `id` become `""`, `chips` and
128
- * `facets` `[]`; a facet whose value is `none` drops out.
129
- *
130
- * @param input - The sub row's fields ({@link SheetSubRowInput})
131
- * @returns An expression of `Sheet.Types.SubRow`
132
- *
133
- * @example
134
- * ```tsx
135
- * // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
136
- * import { ArrayType, East, FloatType, IntegerType, OptionType, StringType, StructType, VariantType, none, some, variant } from "@elaraai/east";
137
- * import { Reactive, Sheet, State, UIComponentType } from "@elaraai/east-ui";
138
- *
139
- * const sheet = East.function([], UIComponentType, (_$) => (
140
- * <Reactive>{$ => {
141
- * const OperationType = StructType({
142
- * id: StringType, code: StringType, name: StringType, materials: ArrayType(StringType),
143
- * station: OptionType(StringType), by: OptionType(StringType),
144
- * });
145
- * const BookingType = VariantType({
146
- * space: StructType({ area: StringType, units: IntegerType }),
147
- * labour: StructType({ team: StringType, people: IntegerType, hours: FloatType }),
148
- * equipment: StructType({ resource: StringType }),
149
- * });
150
- * const JobType = StructType({
151
- * task: StringType, qty: OptionType(FloatType), notes: StringType,
152
- * operations: ArrayType(OperationType), // no column — shown as sub rows
153
- * bookings: ArrayType(BookingType), // no column — shown as sub rows
154
- * });
155
- * const OrderType = StructType({ id: StringType, name: StringType, jobs: ArrayType(JobType) });
156
- * const orders = $.let(State.bind([ArrayType(OrderType)], "sheet_subrows_orders", [
157
- * { id: "wo-1042", name: "WO-1042 · Frames", jobs: [
158
- * { task: "Assemble frames", qty: some(40.0), notes: "Two benches", operations: [
159
- * { id: "WO-1042-1", code: "CUT", name: "Cut rails to length", materials: ["Rail stock × 80"], station: some("Saw 2"), by: none },
160
- * { id: "WO-1042-2", code: "ASM", name: "Assemble frame", materials: ["M6 bolts × 12", "Frame kit"], station: some("Bench 7"), by: some("Assembly") },
161
- * ], bookings: [
162
- * variant("labour", { team: "Assembly", people: 2n, hours: 12.0 }),
163
- * variant("equipment", { resource: "Torque driver" }),
164
- * ] },
165
- * { task: "Inspect frames", qty: some(40.0), notes: "", operations: [], bookings: [
166
- * variant("space", { area: "Test bay", units: 2n }),
167
- * ] },
168
- * ] },
169
- * { id: "wo-1043", name: "WO-1043 · Housings", jobs: [
170
- * { task: "Paint housings", qty: some(250.0), notes: "Primer first", operations: [
171
- * { id: "WO-1043-1", code: "PNT", name: "Prime and paint", materials: ["Primer", "Topcoat"], station: none, by: none },
172
- * ], bookings: [] },
173
- * ] },
174
- * ]));
175
- * return (
176
- * <Sheet
177
- * data={orders}
178
- * id="id"
179
- * group={Sheet.group(OrderType, "jobs", { title: "name", noun: { singular: "order", plural: "orders" } })}
180
- * columns={{
181
- * task: Sheet.column.text(JobType, { header: "Task", width: "220px" }),
182
- * qty: Sheet.column.quantity(JobType, { header: "Qty", width: "96px" }),
183
- * notes: Sheet.column.text(JobType, { header: "Notes", width: "240px" }),
184
- * }}
185
- * subRows={Sheet.subRows(JobType, {
186
- * operations: (op) => Sheet.subRow({
187
- * code: op.code,
188
- * name: op.name,
189
- * chips: op.materials,
190
- * facets: { station: op.station, by: op.by }, // a none drops out
191
- * id: op.id,
192
- * }),
193
- * bookings: (b) => b.match({
194
- * space: (_$2, s) => Sheet.subRow({ code: "CLAIM", name: East.str`${s.area} · ${s.units} units` }),
195
- * labour: (_$2, l) => Sheet.subRow({ code: "LABOUR", name: East.str`${l.team} · ${l.people} people · ${l.hours} person-hours` }),
196
- * equipment: (_$2, e) => Sheet.subRow({ code: "EQUIPMENT", name: e.resource }),
197
- * }),
198
- * })}
199
- * newRow={East.function([Sheet.Types.NewRow], Sheet.Types.Patch(JobType), () => Sheet.patch(JobType, { notes: "", operations: [], bookings: [] }))}
200
- * newGroup={East.function([Sheet.Types.NewGroup], Sheet.Types.Patch(OrderType), () => Sheet.patch(OrderType, { jobs: [] }))}
201
- * onUpdate={orders.write}
202
- * style={{ height: "420px" }}
203
- * />
204
- * );
205
- * }}</Reactive>
206
- * ));
207
- * ```
208
- */
209
- export function createSubRow(input) {
210
- const facets = Object.entries(input.facets ?? {}).map(([label, value]) => optionalText(value).match({
211
- some: (_$, v) => East.value(some({ label, value: v }), OptionType(SheetFacetType)),
212
- none: (_$) => East.value(none, OptionType(SheetFacetType)),
213
- }));
214
- return East.value({
215
- code: textOrBlank(input.code),
216
- name: input.name,
217
- chips: input.chips ?? East.value([], ArrayType(StringType)),
218
- facets: East.value(facets, ArrayType(OptionType(SheetFacetType))).filterMap((_$, f) => f),
219
- id: textOrBlank(input.id),
220
- }, SheetSubRowType);
221
- }
222
- //# sourceMappingURL=sub-rows.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sub-rows.js","sourceRoot":"","sources":["../../../../src/collections/sheet/sub-rows.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;GAYG;AAEH,OAAO,EAIH,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,UAAU,EACV,UAAU,EAEV,IAAI,EACJ,IAAI,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA6C7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,MAAM,UAAU,aAAa,CAAuB,OAAU,EAAE,OAA8B;IAC1F,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AAChC,CAAC;AAwBD,iHAAiH;AACjH,SAAS,YAAY,CAAC,CAA0D;IAC5E,IAAI,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IAC9E,IAAI,CAAC,YAAY,IAAI,EAAE,CAAC;QACpB,IAAI,IAAI,CAAC,IAAI,CAAC,CAAmB,CAAC,KAAK,UAAU,EAAE,CAAC;YAChD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAyB,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;QAC/E,CAAC;QACD,OAAO,CAAqC,CAAC;IACjD,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAA+C,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAC/F,CAAC;AAED,2EAA2E;AAC3E,SAAS,WAAW,CAAC,CAAsE;IACvF,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;IACvD,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3E,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,MAAM,UAAU,YAAY,CAAC,KAAuB;IAChD,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,CACrE,YAAY,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC;QACtB,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;QAClF,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;KAC7D,CAAC,CAAC,CAAC;IACR,OAAO,IAAI,CAAC,KAAK,CAAC;QACd,IAAI,EAAI,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC;QAC/B,IAAI,EAAI,KAAK,CAAC,IAAI;QAClB,KAAK,EAAG,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC5D,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACzF,EAAE,EAAM,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC;KAChC,EAAE,eAAe,CAAC,CAAC;AACxB,CAAC"}
@@ -1,76 +0,0 @@
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
- * The Sheet's names for the shared editing contract (`contracts/editing.ts`,
7
- * #879) — each one the `Editing` namespace's own value (`Sheet.apply` is
8
- * `Editing.apply`, `Sheet.Types.ChangeSet` is `Editing.Types.ChangeSet`) — and
9
- * the transaction types only a sheet has: a new row's destination among a
10
- * group's children, and the `newRow` / `newGroup` contexts.
11
- *
12
- * @packageDocumentation
13
- */
14
- import { IntegerType, StringType, StructType, VariantType } from "@elaraai/east";
15
- export { EditingPositionType as SheetPositionType, EditingPlacementType as SheetEntryPlacementType, EditingFieldIssueType as SheetFieldIssueType, EditingReadinessType as SheetReadinessType, EditingIssueType as SheetIssueType, EditingBatchReadinessType as SheetBatchReadinessType, EditingOriginType as SheetOriginType, EditingApplyResultType as SheetApplyResultType, EditingDraftFieldType as SheetDraftFieldType, EditingDraftTypeFor as SheetDraftTypeFor, EditingBaseTypeFor as SheetBaseTypeFor, EditingChangeTypeFor as SheetChangeTypeFor, EditingChangeSetTypeFor as SheetChangeSetTypeFor, EditingAppliedTypeFor as SheetAppliedTypeFor, applyEditing as applySheet, type EditingDraftOf as SheetDraftOf, } from "../../contracts/editing.js";
16
- /**
17
- * A new row's destination: a top-level entry's placement, or a position among
18
- * a group's children.
19
- *
20
- * @property entry - A top-level entry, at its placement
21
- * @property child - A child row of the group with this id, at this index
22
- */
23
- export declare const SheetRowDestinationType: VariantType<{
24
- readonly entry: VariantType<{
25
- readonly ordered: VariantType<{
26
- readonly start: import("@elaraai/east").NullType;
27
- readonly end: import("@elaraai/east").NullType;
28
- readonly before: StringType;
29
- readonly after: StringType;
30
- }>;
31
- readonly keyOrder: import("@elaraai/east").NullType;
32
- }>;
33
- readonly child: StructType<{
34
- readonly group: StringType;
35
- readonly index: IntegerType;
36
- }>;
37
- }>;
38
- /**
39
- * What a `newRow` constructor is told.
40
- *
41
- * @property destination - Where the new row goes
42
- */
43
- export declare const SheetNewRowType: StructType<{
44
- readonly destination: VariantType<{
45
- readonly entry: VariantType<{
46
- readonly ordered: VariantType<{
47
- readonly start: import("@elaraai/east").NullType;
48
- readonly end: import("@elaraai/east").NullType;
49
- readonly before: StringType;
50
- readonly after: StringType;
51
- }>;
52
- readonly keyOrder: import("@elaraai/east").NullType;
53
- }>;
54
- readonly child: StructType<{
55
- readonly group: StringType;
56
- readonly index: IntegerType;
57
- }>;
58
- }>;
59
- }>;
60
- /**
61
- * What a `newGroup` constructor is told.
62
- *
63
- * @property place - Where the new group goes
64
- */
65
- export declare const SheetNewGroupType: StructType<{
66
- readonly place: VariantType<{
67
- readonly ordered: VariantType<{
68
- readonly start: import("@elaraai/east").NullType;
69
- readonly end: import("@elaraai/east").NullType;
70
- readonly before: StringType;
71
- readonly after: StringType;
72
- }>;
73
- readonly keyOrder: import("@elaraai/east").NullType;
74
- }>;
75
- }>;
76
- //# sourceMappingURL=transactions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../../../src/collections/sheet/transactions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AACH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjF,OAAO,EACH,mBAAmB,IAAI,iBAAiB,EACxC,oBAAoB,IAAI,uBAAuB,EAC/C,qBAAqB,IAAI,mBAAmB,EAC5C,oBAAoB,IAAI,kBAAkB,EAC1C,gBAAgB,IAAI,cAAc,EAClC,yBAAyB,IAAI,uBAAuB,EACpD,iBAAiB,IAAI,eAAe,EACpC,sBAAsB,IAAI,oBAAoB,EAC9C,qBAAqB,IAAI,mBAAmB,EAC5C,mBAAmB,IAAI,iBAAiB,EACxC,kBAAkB,IAAI,gBAAgB,EACtC,oBAAoB,IAAI,kBAAkB,EAC1C,uBAAuB,IAAI,qBAAqB,EAChD,qBAAqB,IAAI,mBAAmB,EAC5C,YAAY,IAAI,UAAU,EAC1B,KAAK,cAAc,IAAI,YAAY,GACtC,MAAM,4BAA4B,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;EAGlC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;EAAuD,CAAC;AAEpF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;EAA8C,CAAC"}
@@ -1,40 +0,0 @@
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
- * The Sheet's names for the shared editing contract (`contracts/editing.ts`,
7
- * #879) — each one the `Editing` namespace's own value (`Sheet.apply` is
8
- * `Editing.apply`, `Sheet.Types.ChangeSet` is `Editing.Types.ChangeSet`) — and
9
- * the transaction types only a sheet has: a new row's destination among a
10
- * group's children, and the `newRow` / `newGroup` contexts.
11
- *
12
- * @packageDocumentation
13
- */
14
- import { IntegerType, StringType, StructType, VariantType } from "@elaraai/east";
15
- import { EditingPlacementType } from "../../contracts/editing.js";
16
- export { EditingPositionType as SheetPositionType, EditingPlacementType as SheetEntryPlacementType, EditingFieldIssueType as SheetFieldIssueType, EditingReadinessType as SheetReadinessType, EditingIssueType as SheetIssueType, EditingBatchReadinessType as SheetBatchReadinessType, EditingOriginType as SheetOriginType, EditingApplyResultType as SheetApplyResultType, EditingDraftFieldType as SheetDraftFieldType, EditingDraftTypeFor as SheetDraftTypeFor, EditingBaseTypeFor as SheetBaseTypeFor, EditingChangeTypeFor as SheetChangeTypeFor, EditingChangeSetTypeFor as SheetChangeSetTypeFor, EditingAppliedTypeFor as SheetAppliedTypeFor, applyEditing as applySheet, } from "../../contracts/editing.js";
17
- /**
18
- * A new row's destination: a top-level entry's placement, or a position among
19
- * a group's children.
20
- *
21
- * @property entry - A top-level entry, at its placement
22
- * @property child - A child row of the group with this id, at this index
23
- */
24
- export const SheetRowDestinationType = VariantType({
25
- entry: EditingPlacementType,
26
- child: StructType({ group: StringType, index: IntegerType }),
27
- });
28
- /**
29
- * What a `newRow` constructor is told.
30
- *
31
- * @property destination - Where the new row goes
32
- */
33
- export const SheetNewRowType = StructType({ destination: SheetRowDestinationType });
34
- /**
35
- * What a `newGroup` constructor is told.
36
- *
37
- * @property place - Where the new group goes
38
- */
39
- export const SheetNewGroupType = StructType({ place: EditingPlacementType });
40
- //# sourceMappingURL=transactions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../../../src/collections/sheet/transactions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AACH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EACH,mBAAmB,IAAI,iBAAiB,EACxC,oBAAoB,IAAI,uBAAuB,EAC/C,qBAAqB,IAAI,mBAAmB,EAC5C,oBAAoB,IAAI,kBAAkB,EAC1C,gBAAgB,IAAI,cAAc,EAClC,yBAAyB,IAAI,uBAAuB,EACpD,iBAAiB,IAAI,eAAe,EACpC,sBAAsB,IAAI,oBAAoB,EAC9C,qBAAqB,IAAI,mBAAmB,EAC5C,mBAAmB,IAAI,iBAAiB,EACxC,kBAAkB,IAAI,gBAAgB,EACtC,oBAAoB,IAAI,kBAAkB,EAC1C,uBAAuB,IAAI,qBAAqB,EAChD,qBAAqB,IAAI,mBAAmB,EAC5C,YAAY,IAAI,UAAU,GAE7B,MAAM,4BAA4B,CAAC;AAEpC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAW,CAAC;IAC/C,KAAK,EAAE,oBAAoB;IAC3B,KAAK,EAAE,UAAU,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;CAC/D,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAEpF;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC,CAAC"}