@elaraai/e3-ui 1.0.86 → 1.0.88

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 (385) hide show
  1. package/dist/src/bind/data-indexed.d.ts +159 -0
  2. package/dist/src/bind/data-indexed.d.ts.map +1 -0
  3. package/dist/src/bind/data-indexed.js +105 -0
  4. package/dist/src/bind/data-indexed.js.map +1 -0
  5. package/dist/src/bind/data.d.ts +5 -3
  6. package/dist/src/bind/data.d.ts.map +1 -1
  7. package/dist/src/bind/data.js +6 -0
  8. package/dist/src/bind/data.js.map +1 -1
  9. package/dist/src/bind/record.d.ts +34 -23
  10. package/dist/src/bind/record.d.ts.map +1 -1
  11. package/dist/src/bind/record.js +46 -19
  12. package/dist/src/bind/record.js.map +1 -1
  13. package/dist/src/calendar/index.d.ts +2923 -0
  14. package/dist/src/calendar/index.d.ts.map +1 -0
  15. package/dist/src/calendar/index.js +135 -0
  16. package/dist/src/calendar/index.js.map +1 -0
  17. package/dist/src/decision/queue.d.ts +3 -3
  18. package/dist/src/decision/queue.d.ts.map +1 -1
  19. package/dist/src/decision/queue.js +2 -2
  20. package/dist/src/decision/queue.js.map +1 -1
  21. package/dist/src/decision/types.d.ts +4 -0
  22. package/dist/src/decision/types.d.ts.map +1 -1
  23. package/dist/src/decision/types.js +4 -0
  24. package/dist/src/decision/types.js.map +1 -1
  25. package/dist/src/flowchart/canvas.d.ts +114 -0
  26. package/dist/src/flowchart/canvas.d.ts.map +1 -0
  27. package/dist/src/flowchart/canvas.js +84 -0
  28. package/dist/src/flowchart/canvas.js.map +1 -0
  29. package/dist/src/flowchart/flowchart.d.ts +79 -0
  30. package/dist/src/flowchart/flowchart.d.ts.map +1 -0
  31. package/dist/src/flowchart/flowchart.js +9 -0
  32. package/dist/src/flowchart/flowchart.js.map +1 -0
  33. package/dist/src/flowchart/index.d.ts +305 -0
  34. package/dist/src/flowchart/index.d.ts.map +1 -0
  35. package/dist/src/flowchart/index.js +267 -0
  36. package/dist/src/flowchart/index.js.map +1 -0
  37. package/dist/src/flowchart/library.d.ts +720 -0
  38. package/dist/src/flowchart/library.d.ts.map +1 -0
  39. package/dist/src/flowchart/library.js +611 -0
  40. package/dist/src/flowchart/library.js.map +1 -0
  41. package/dist/src/flowchart/over.d.ts +234 -0
  42. package/dist/src/flowchart/over.d.ts.map +1 -0
  43. package/dist/src/flowchart/over.js +220 -0
  44. package/dist/src/flowchart/over.js.map +1 -0
  45. package/dist/src/flowchart/patch.d.ts +64 -0
  46. package/dist/src/flowchart/patch.d.ts.map +1 -0
  47. package/dist/src/flowchart/patch.js +67 -0
  48. package/dist/src/flowchart/patch.js.map +1 -0
  49. package/dist/src/flowchart/payload.d.ts +8220 -0
  50. package/dist/src/flowchart/payload.d.ts.map +1 -0
  51. package/dist/src/flowchart/payload.js +521 -0
  52. package/dist/src/flowchart/payload.js.map +1 -0
  53. package/dist/src/flowchart/types.d.ts +393 -0
  54. package/dist/src/flowchart/types.d.ts.map +1 -0
  55. package/dist/src/flowchart/types.js +216 -0
  56. package/dist/src/flowchart/types.js.map +1 -0
  57. package/dist/src/flowchart/values.d.ts +267 -0
  58. package/dist/src/flowchart/values.d.ts.map +1 -0
  59. package/dist/src/flowchart/values.js +216 -0
  60. package/dist/src/flowchart/values.js.map +1 -0
  61. package/dist/src/flowchart/window.d.ts +521 -0
  62. package/dist/src/flowchart/window.d.ts.map +1 -0
  63. package/dist/src/flowchart/window.js +69 -0
  64. package/dist/src/flowchart/window.js.map +1 -0
  65. package/dist/src/index.d.ts +25 -1
  66. package/dist/src/index.d.ts.map +1 -1
  67. package/dist/src/index.js +48 -1
  68. package/dist/src/index.js.map +1 -1
  69. package/dist/src/internal.d.ts +35 -3
  70. package/dist/src/internal.d.ts.map +1 -1
  71. package/dist/src/internal.js +72 -3
  72. package/dist/src/internal.js.map +1 -1
  73. package/dist/src/plan/assemble.d.ts +2224 -0
  74. package/dist/src/plan/assemble.d.ts.map +1 -0
  75. package/dist/src/plan/assemble.js +210 -0
  76. package/dist/src/plan/assemble.js.map +1 -0
  77. package/dist/src/plan/builders.d.ts +790 -0
  78. package/dist/src/plan/builders.d.ts.map +1 -0
  79. package/dist/src/plan/builders.js +749 -0
  80. package/dist/src/plan/builders.js.map +1 -0
  81. package/dist/src/plan/event-rows.d.ts +2565 -0
  82. package/dist/src/plan/event-rows.d.ts.map +1 -0
  83. package/dist/src/plan/event-rows.js +689 -0
  84. package/dist/src/plan/event-rows.js.map +1 -0
  85. package/dist/src/plan/factories.d.ts +458 -0
  86. package/dist/src/plan/factories.d.ts.map +1 -0
  87. package/dist/src/plan/factories.js +484 -0
  88. package/dist/src/plan/factories.js.map +1 -0
  89. package/dist/src/plan/index.d.ts +672 -0
  90. package/dist/src/plan/index.d.ts.map +1 -0
  91. package/dist/src/plan/index.js +532 -0
  92. package/dist/src/plan/index.js.map +1 -0
  93. package/dist/src/plan/ir.d.ts +2594 -0
  94. package/dist/src/plan/ir.d.ts.map +1 -0
  95. package/dist/src/plan/ir.js +78 -0
  96. package/dist/src/plan/ir.js.map +1 -0
  97. package/dist/src/plan/library.d.ts +772 -0
  98. package/dist/src/plan/library.d.ts.map +1 -0
  99. package/dist/src/plan/library.js +424 -0
  100. package/dist/src/plan/library.js.map +1 -0
  101. package/dist/src/plan/ordered-source.d.ts +27 -0
  102. package/dist/src/plan/ordered-source.d.ts.map +1 -0
  103. package/dist/src/plan/ordered-source.js +48 -0
  104. package/dist/src/plan/ordered-source.js.map +1 -0
  105. package/dist/src/plan/over.d.ts +247 -0
  106. package/dist/src/plan/over.d.ts.map +1 -0
  107. package/dist/src/plan/over.js +266 -0
  108. package/dist/src/plan/over.js.map +1 -0
  109. package/dist/src/plan/pick.d.ts +78 -0
  110. package/dist/src/plan/pick.d.ts.map +1 -0
  111. package/dist/src/plan/pick.js +146 -0
  112. package/dist/src/plan/pick.js.map +1 -0
  113. package/dist/src/plan/plan.d.ts +11611 -0
  114. package/dist/src/plan/plan.d.ts.map +1 -0
  115. package/dist/src/plan/plan.js +428 -0
  116. package/dist/src/plan/plan.js.map +1 -0
  117. package/dist/src/plan/refs.d.ts +218 -0
  118. package/dist/src/plan/refs.d.ts.map +1 -0
  119. package/dist/src/plan/refs.js +226 -0
  120. package/dist/src/plan/refs.js.map +1 -0
  121. package/dist/src/plan/root.d.ts +290 -0
  122. package/dist/src/plan/root.d.ts.map +1 -0
  123. package/dist/src/plan/root.js +463 -0
  124. package/dist/src/plan/root.js.map +1 -0
  125. package/dist/src/plan/series.d.ts +13554 -0
  126. package/dist/src/plan/series.d.ts.map +1 -0
  127. package/dist/src/plan/series.js +1921 -0
  128. package/dist/src/plan/series.js.map +1 -0
  129. package/dist/src/plan/types.d.ts +12400 -0
  130. package/dist/src/plan/types.d.ts.map +1 -0
  131. package/dist/src/plan/types.js +1335 -0
  132. package/dist/src/plan/types.js.map +1 -0
  133. package/dist/src/roster/coverage.d.ts +240 -0
  134. package/dist/src/roster/coverage.d.ts.map +1 -0
  135. package/dist/src/roster/coverage.js +109 -0
  136. package/dist/src/roster/coverage.js.map +1 -0
  137. package/dist/src/roster/index.d.ts +4028 -0
  138. package/dist/src/roster/index.d.ts.map +1 -0
  139. package/dist/src/roster/index.js +115 -0
  140. package/dist/src/roster/index.js.map +1 -0
  141. package/dist/src/roster/library.d.ts +106 -0
  142. package/dist/src/roster/library.d.ts.map +1 -0
  143. package/dist/src/roster/library.js +78 -0
  144. package/dist/src/roster/library.js.map +1 -0
  145. package/dist/src/roster/people.d.ts +50 -0
  146. package/dist/src/roster/people.d.ts.map +1 -0
  147. package/dist/src/roster/people.js +32 -0
  148. package/dist/src/roster/people.js.map +1 -0
  149. package/dist/src/roster/rules.d.ts +275 -0
  150. package/dist/src/roster/rules.d.ts.map +1 -0
  151. package/dist/src/roster/rules.js +162 -0
  152. package/dist/src/roster/rules.js.map +1 -0
  153. package/dist/src/roster/types.d.ts +672 -0
  154. package/dist/src/roster/types.d.ts.map +1 -0
  155. package/dist/src/roster/types.js +248 -0
  156. package/dist/src/roster/types.js.map +1 -0
  157. package/dist/src/roster/visibility.d.ts +66 -0
  158. package/dist/src/roster/visibility.d.ts.map +1 -0
  159. package/dist/src/roster/visibility.js +25 -0
  160. package/dist/src/roster/visibility.js.map +1 -0
  161. package/dist/src/schedule/days.d.ts +54 -0
  162. package/dist/src/schedule/days.d.ts.map +1 -0
  163. package/dist/src/schedule/days.js +68 -0
  164. package/dist/src/schedule/days.js.map +1 -0
  165. package/dist/src/schedule/events.d.ts +433 -0
  166. package/dist/src/schedule/events.d.ts.map +1 -0
  167. package/dist/src/schedule/events.js +851 -0
  168. package/dist/src/schedule/events.js.map +1 -0
  169. package/dist/src/schedule/index.d.ts +150 -0
  170. package/dist/src/schedule/index.d.ts.map +1 -0
  171. package/dist/src/schedule/index.js +132 -0
  172. package/dist/src/schedule/index.js.map +1 -0
  173. package/dist/src/schedule/library.d.ts +70 -0
  174. package/dist/src/schedule/library.d.ts.map +1 -0
  175. package/dist/src/schedule/library.js +102 -0
  176. package/dist/src/schedule/library.js.map +1 -0
  177. package/dist/src/schedule/patch.d.ts +74 -0
  178. package/dist/src/schedule/patch.d.ts.map +1 -0
  179. package/dist/src/schedule/patch.js +68 -0
  180. package/dist/src/schedule/patch.js.map +1 -0
  181. package/dist/src/schedule/record-window.d.ts +189 -0
  182. package/dist/src/schedule/record-window.d.ts.map +1 -0
  183. package/dist/src/schedule/record-window.js +95 -0
  184. package/dist/src/schedule/record-window.js.map +1 -0
  185. package/dist/src/schedule/resources.d.ts +165 -0
  186. package/dist/src/schedule/resources.d.ts.map +1 -0
  187. package/dist/src/schedule/resources.js +234 -0
  188. package/dist/src/schedule/resources.js.map +1 -0
  189. package/dist/src/schedule/templates.d.ts +47 -0
  190. package/dist/src/schedule/templates.d.ts.map +1 -0
  191. package/dist/src/schedule/templates.js +61 -0
  192. package/dist/src/schedule/templates.js.map +1 -0
  193. package/dist/src/schedule/types.d.ts +1677 -0
  194. package/dist/src/schedule/types.d.ts.map +1 -0
  195. package/dist/src/schedule/types.js +374 -0
  196. package/dist/src/schedule/types.js.map +1 -0
  197. package/dist/src/schedule/window.d.ts +154 -0
  198. package/dist/src/schedule/window.d.ts.map +1 -0
  199. package/dist/src/schedule/window.js +363 -0
  200. package/dist/src/schedule/window.js.map +1 -0
  201. package/dist/src/sheet/bridge.d.ts +385 -0
  202. package/dist/src/sheet/bridge.d.ts.map +1 -0
  203. package/dist/src/sheet/bridge.js +809 -0
  204. package/dist/src/sheet/bridge.js.map +1 -0
  205. package/dist/src/sheet/columns.d.ts +410 -0
  206. package/dist/src/sheet/columns.d.ts.map +1 -0
  207. package/dist/src/sheet/columns.js +99 -0
  208. package/dist/src/sheet/columns.js.map +1 -0
  209. package/dist/src/sheet/context-bridge.d.ts +48 -0
  210. package/dist/src/sheet/context-bridge.d.ts.map +1 -0
  211. package/dist/src/sheet/context-bridge.js +216 -0
  212. package/dist/src/sheet/context-bridge.js.map +1 -0
  213. package/dist/src/sheet/draft-bridge.d.ts +37 -0
  214. package/dist/src/sheet/draft-bridge.d.ts.map +1 -0
  215. package/dist/src/sheet/draft-bridge.js +153 -0
  216. package/dist/src/sheet/draft-bridge.js.map +1 -0
  217. package/dist/src/sheet/drafts.d.ts +14 -0
  218. package/dist/src/sheet/drafts.d.ts.map +1 -0
  219. package/dist/src/sheet/drafts.js +14 -0
  220. package/dist/src/sheet/drafts.js.map +1 -0
  221. package/dist/src/sheet/editing-bridge.d.ts +40 -0
  222. package/dist/src/sheet/editing-bridge.d.ts.map +1 -0
  223. package/dist/src/sheet/editing-bridge.js +231 -0
  224. package/dist/src/sheet/editing-bridge.js.map +1 -0
  225. package/dist/src/sheet/editing-types.d.ts +268 -0
  226. package/dist/src/sheet/editing-types.d.ts.map +1 -0
  227. package/dist/src/sheet/editing-types.js +34 -0
  228. package/dist/src/sheet/editing-types.js.map +1 -0
  229. package/dist/src/sheet/edits.d.ts +37 -0
  230. package/dist/src/sheet/edits.d.ts.map +1 -0
  231. package/dist/src/sheet/edits.js +31 -0
  232. package/dist/src/sheet/edits.js.map +1 -0
  233. package/dist/src/sheet/fields.d.ts +693 -0
  234. package/dist/src/sheet/fields.d.ts.map +1 -0
  235. package/dist/src/sheet/fields.js +280 -0
  236. package/dist/src/sheet/fields.js.map +1 -0
  237. package/dist/src/sheet/group.d.ts +165 -0
  238. package/dist/src/sheet/group.d.ts.map +1 -0
  239. package/dist/src/sheet/group.js +52 -0
  240. package/dist/src/sheet/group.js.map +1 -0
  241. package/dist/src/sheet/index.d.ts +542 -0
  242. package/dist/src/sheet/index.d.ts.map +1 -0
  243. package/dist/src/sheet/index.js +387 -0
  244. package/dist/src/sheet/index.js.map +1 -0
  245. package/dist/src/sheet/library.d.ts +284 -0
  246. package/dist/src/sheet/library.d.ts.map +1 -0
  247. package/dist/src/sheet/library.js +259 -0
  248. package/dist/src/sheet/library.js.map +1 -0
  249. package/dist/src/sheet/link.d.ts +398 -0
  250. package/dist/src/sheet/link.d.ts.map +1 -0
  251. package/dist/src/sheet/link.js +228 -0
  252. package/dist/src/sheet/link.js.map +1 -0
  253. package/dist/src/sheet/record.d.ts +75 -0
  254. package/dist/src/sheet/record.d.ts.map +1 -0
  255. package/dist/src/sheet/record.js +128 -0
  256. package/dist/src/sheet/record.js.map +1 -0
  257. package/dist/src/sheet/registers.d.ts +681 -0
  258. package/dist/src/sheet/registers.d.ts.map +1 -0
  259. package/dist/src/sheet/registers.js +671 -0
  260. package/dist/src/sheet/registers.js.map +1 -0
  261. package/dist/src/sheet/root.d.ts +329 -0
  262. package/dist/src/sheet/root.d.ts.map +1 -0
  263. package/dist/src/sheet/root.js +511 -0
  264. package/dist/src/sheet/root.js.map +1 -0
  265. package/dist/src/sheet/seed-bridge.d.ts +14 -0
  266. package/dist/src/sheet/seed-bridge.d.ts.map +1 -0
  267. package/dist/src/sheet/seed-bridge.js +51 -0
  268. package/dist/src/sheet/seed-bridge.js.map +1 -0
  269. package/dist/src/sheet/sheet.d.ts +11819 -0
  270. package/dist/src/sheet/sheet.d.ts.map +1 -0
  271. package/dist/src/sheet/sheet.js +236 -0
  272. package/dist/src/sheet/sheet.js.map +1 -0
  273. package/dist/src/sheet/sub-rows.d.ts +299 -0
  274. package/dist/src/sheet/sub-rows.d.ts.map +1 -0
  275. package/dist/src/sheet/sub-rows.js +272 -0
  276. package/dist/src/sheet/sub-rows.js.map +1 -0
  277. package/dist/src/sheet/templates.d.ts +161 -0
  278. package/dist/src/sheet/templates.d.ts.map +1 -0
  279. package/dist/src/sheet/templates.js +122 -0
  280. package/dist/src/sheet/templates.js.map +1 -0
  281. package/dist/src/sheet/transactions.d.ts +76 -0
  282. package/dist/src/sheet/transactions.d.ts.map +1 -0
  283. package/dist/src/sheet/transactions.js +40 -0
  284. package/dist/src/sheet/transactions.js.map +1 -0
  285. package/dist/src/sheet/types.d.ts +15226 -0
  286. package/dist/src/sheet/types.d.ts.map +1 -0
  287. package/dist/src/sheet/types.js +1070 -0
  288. package/dist/src/sheet/types.js.map +1 -0
  289. package/dist/src/sheet/views.d.ts +29 -0
  290. package/dist/src/sheet/views.d.ts.map +1 -0
  291. package/dist/src/sheet/views.js +43 -0
  292. package/dist/src/sheet/views.js.map +1 -0
  293. package/dist/src/studio/component.d.ts.map +1 -1
  294. package/dist/src/studio/component.js +11 -8
  295. package/dist/src/studio/component.js.map +1 -1
  296. package/dist/src/utils/derive.d.ts +134 -8
  297. package/dist/src/utils/derive.d.ts.map +1 -1
  298. package/dist/src/utils/derive.js +409 -7
  299. package/dist/src/utils/derive.js.map +1 -1
  300. package/dist/src/utils/ordered-source.d.ts +38 -0
  301. package/dist/src/utils/ordered-source.d.ts.map +1 -0
  302. package/dist/src/utils/ordered-source.js +45 -0
  303. package/dist/src/utils/ordered-source.js.map +1 -0
  304. package/dist/src/utils/row-inspector.d.ts +36 -0
  305. package/dist/src/utils/row-inspector.d.ts.map +1 -0
  306. package/dist/src/utils/row-inspector.js +49 -0
  307. package/dist/src/utils/row-inspector.js.map +1 -0
  308. package/dist/test/bind/data/data.examples.d.ts +21 -19
  309. package/dist/test/bind/data/data.examples.d.ts.map +1 -1
  310. package/dist/test/bind/data/data.examples.js +122 -122
  311. package/dist/test/bind/data/data.examples.js.map +1 -1
  312. package/dist/test/bind/record/record.examples.d.ts.map +1 -1
  313. package/dist/test/bind/record/record.examples.js +9 -9
  314. package/dist/test/bind/record/record.examples.js.map +1 -1
  315. package/dist/test/calendar/calendar-records.examples.d.ts +228 -0
  316. package/dist/test/calendar/calendar-records.examples.d.ts.map +1 -0
  317. package/dist/test/calendar/calendar-records.examples.js +91 -0
  318. package/dist/test/calendar/calendar-records.examples.js.map +1 -0
  319. package/dist/test/calendar/calendar.examples.d.ts +776 -0
  320. package/dist/test/calendar/calendar.examples.d.ts.map +1 -0
  321. package/dist/test/calendar/calendar.examples.js +336 -0
  322. package/dist/test/calendar/calendar.examples.js.map +1 -0
  323. package/dist/test/decision/journal.examples.d.ts +28 -28
  324. package/dist/test/decision/journal.examples.d.ts.map +1 -1
  325. package/dist/test/decision/journal.examples.js +4 -4
  326. package/dist/test/decision/journal.examples.js.map +1 -1
  327. package/dist/test/decision/queue.examples.d.ts.map +1 -1
  328. package/dist/test/decision/queue.examples.js +5 -7
  329. package/dist/test/decision/queue.examples.js.map +1 -1
  330. package/dist/test/flowchart/flowchart.examples.d.ts +3713 -0
  331. package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -0
  332. package/dist/test/flowchart/flowchart.examples.js +465 -0
  333. package/dist/test/flowchart/flowchart.examples.js.map +1 -0
  334. package/dist/test/plan/plan-events.examples.d.ts +3666 -0
  335. package/dist/test/plan/plan-events.examples.d.ts.map +1 -0
  336. package/dist/test/plan/plan-events.examples.js +773 -0
  337. package/dist/test/plan/plan-events.examples.js.map +1 -0
  338. package/dist/test/plan/plan-records.examples.d.ts +3 -0
  339. package/dist/test/plan/plan-records.examples.d.ts.map +1 -0
  340. package/dist/test/plan/plan-records.examples.js +45 -0
  341. package/dist/test/plan/plan-records.examples.js.map +1 -0
  342. package/dist/test/plan/plan-windows.examples.d.ts +588 -0
  343. package/dist/test/plan/plan-windows.examples.d.ts.map +1 -0
  344. package/dist/test/plan/plan-windows.examples.js +170 -0
  345. package/dist/test/plan/plan-windows.examples.js.map +1 -0
  346. package/dist/test/plan/plan.examples.d.ts +8095 -0
  347. package/dist/test/plan/plan.examples.d.ts.map +1 -0
  348. package/dist/test/plan/plan.examples.js +2500 -0
  349. package/dist/test/plan/plan.examples.js.map +1 -0
  350. package/dist/test/roster/domain.examples.d.ts +367 -0
  351. package/dist/test/roster/domain.examples.d.ts.map +1 -0
  352. package/dist/test/roster/domain.examples.js +72 -0
  353. package/dist/test/roster/domain.examples.js.map +1 -0
  354. package/dist/test/roster/roster-records.examples.d.ts +729 -0
  355. package/dist/test/roster/roster-records.examples.d.ts.map +1 -0
  356. package/dist/test/roster/roster-records.examples.js +86 -0
  357. package/dist/test/roster/roster-records.examples.js.map +1 -0
  358. package/dist/test/roster/roster.examples.d.ts +750 -0
  359. package/dist/test/roster/roster.examples.d.ts.map +1 -0
  360. package/dist/test/roster/roster.examples.js +198 -0
  361. package/dist/test/roster/roster.examples.js.map +1 -0
  362. package/dist/test/roster/warehouse.d.ts +87 -0
  363. package/dist/test/roster/warehouse.d.ts.map +1 -0
  364. package/dist/test/roster/warehouse.js +883 -0
  365. package/dist/test/roster/warehouse.js.map +1 -0
  366. package/dist/test/sheet/sheet-link.examples.d.ts +7 -0
  367. package/dist/test/sheet/sheet-link.examples.d.ts.map +1 -0
  368. package/dist/test/sheet/sheet-link.examples.js +41 -0
  369. package/dist/test/sheet/sheet-link.examples.js.map +1 -0
  370. package/dist/test/sheet/sheet-records.examples.d.ts +421 -0
  371. package/dist/test/sheet/sheet-records.examples.d.ts.map +1 -0
  372. package/dist/test/sheet/sheet-records.examples.js +79 -0
  373. package/dist/test/sheet/sheet-records.examples.js.map +1 -0
  374. package/dist/test/sheet/sheet-transactions.examples.d.ts +7 -0
  375. package/dist/test/sheet/sheet-transactions.examples.d.ts.map +1 -0
  376. package/dist/test/sheet/sheet-transactions.examples.js +58 -0
  377. package/dist/test/sheet/sheet-transactions.examples.js.map +1 -0
  378. package/dist/test/sheet/sheet.examples.d.ts +5562 -0
  379. package/dist/test/sheet/sheet.examples.d.ts.map +1 -0
  380. package/dist/test/sheet/sheet.examples.js +1178 -0
  381. package/dist/test/sheet/sheet.examples.js.map +1 -0
  382. package/dist/test/studio/studio.examples.d.ts.map +1 -1
  383. package/dist/test/studio/studio.examples.js +11 -11
  384. package/dist/test/studio/studio.examples.js.map +1 -1
  385. package/package.json +12 -9
@@ -0,0 +1,267 @@
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 Flowchart (#1243–#1250): the state-transition flowchart, e3-ui's as the
7
+ * Plan (#1177) and the Sheet (#1179) are. `<Flowchart>` takes its flows from
8
+ * an e3 record of flows by name, or from the host — flows by name, or one
9
+ * flow — and returns its payload through the `Flowchart` carrier, which
10
+ * e3-ui-components' renderer draws in its builder frame and edits through its
11
+ * editing session.
12
+ *
13
+ * - `types.ts` — the flow, the record of flows, and the row and closed-set
14
+ * types (`Flowchart.Types.*`).
15
+ * - `values.ts` — `Flowchart.value` and `Flowchart.values`, a record's value
16
+ * written as literals and checked when the package builds.
17
+ * - `over.ts` — `Flowchart.over`, one flow from an app's own tables.
18
+ * - `patch.ts` — `Flowchart.patch`, a patch over one of a flow's rows.
19
+ * - `library.ts` — `Flowchart.library`, the library pane's tabs — the Flows
20
+ * tab, the state and transition templates and the author's tabs, each
21
+ * reading its own rows — and their wire.
22
+ * - `canvas.ts` — the canvas: what the flowchart draws its flow with.
23
+ * - `payload.ts` — the payload, its carrier, the shared keys, the props and
24
+ * their refusals.
25
+ * - `flowchart.ts` — the tag.
26
+ *
27
+ * @packageDocumentation
28
+ */
29
+ import { FlowchartTag } from "./flowchart.js";
30
+ import { FlowchartCanvasType } from "./canvas.js";
31
+ import { FlowchartCardType, FlowchartDecisionCardType, FlowchartLandsType, FlowchartLaneCardType, FlowchartLibraryFactories, FlowchartLibraryTabType, FlowchartStateCardType, FlowchartTransitionCardType, } from "./library.js";
32
+ import { flowchartOver } from "./over.js";
33
+ import { FlowchartPatchTypeFor, flowchartPatch } from "./patch.js";
34
+ import { FlowchartComponent, FlowchartDataType, FlowchartFlowsHandleType, FlowchartInspectorType, FlowchartPayloadType, FlowchartSessionApplyType, FlowchartSourceType, createFlowchartPayload, } from "./payload.js";
35
+ import { FlowchartEvidenceType, FlowchartFlowType, FlowchartFlowsType, FlowchartFreshnessType, FlowchartLaneType, FlowchartLinkKindType, FlowchartLinkType, FlowchartOrientationType, FlowchartStateType, FlowchartTriggerType, } from "./types.js";
36
+ import { flowchartValue, flowchartValues } from "./values.js";
37
+ export { FlowchartTag } from "./flowchart.js";
38
+ export { FlowchartCanvasType, buildCanvas, } from "./canvas.js";
39
+ export { flowchartOver, } from "./over.js";
40
+ export { FlowchartPatchTypeFor, flowchartPatch } from "./patch.js";
41
+ export { FlowchartCardType, FlowchartDecisionCardType, FlowchartLandsType, FlowchartLaneCardType, FlowchartLibraryFactories, FlowchartLibraryTabType, FlowchartStateCardType, FlowchartTransitionCardType, libraryFlows, libraryStates, libraryTab, libraryTransitions, } from "./library.js";
42
+ export { FlowchartComponent, FlowchartDataType, FlowchartFlowApplyType, FlowchartFlowsApplyType, FlowchartFlowsHandleType, FlowchartHistoryType, FlowchartInspectorType, FlowchartPayloadType, FlowchartSessionApplyType, FlowchartSourceType, createFlowchartPayload, flowchartKeys, } from "./payload.js";
43
+ export { flowchartValue, flowchartValues, } from "./values.js";
44
+ /** The East types a flowchart is written with. */
45
+ const TYPES = {
46
+ Flow: FlowchartFlowType,
47
+ Flows: FlowchartFlowsType,
48
+ State: FlowchartStateType,
49
+ Link: FlowchartLinkType,
50
+ Lane: FlowchartLaneType,
51
+ Trigger: FlowchartTriggerType,
52
+ Evidence: FlowchartEvidenceType,
53
+ Kind: FlowchartLinkKindType,
54
+ Orientation: FlowchartOrientationType,
55
+ Freshness: FlowchartFreshnessType,
56
+ Patch: FlowchartPatchTypeFor,
57
+ };
58
+ /** The namespace's members — everything `Flowchart` carries beside the tag itself. */
59
+ const MEMBERS = {
60
+ value: flowchartValue,
61
+ values: flowchartValues,
62
+ over: flowchartOver,
63
+ patch: flowchartPatch,
64
+ library: FlowchartLibraryFactories,
65
+ Types: TYPES,
66
+ };
67
+ /**
68
+ * `<Flowchart>` — the state-transition flowchart: states as nodes in ordered
69
+ * phase lanes (the layout derived, no coordinates), H/V-routed transitions,
70
+ * decision triggers (lettered diamonds) and evidence-weighted strokes. The
71
+ * selection — a state, a transition, a decision, a lane by its header, or
72
+ * several states — and the pointer-highlight grammar are built in, and the
73
+ * inspector shows what is selected.
74
+ *
75
+ * @remarks
76
+ * - **Its frame**: it renders in its builder frame wherever it is used — one
77
+ * toolbar (find state, LR · TD, the freshness chip and, over `data`, the
78
+ * slice's rail; over a record, the history item), the canvas filling main
79
+ * and scrolling both ways inside it, and the footer's counts; a library pane
80
+ * when `library` lists tabs, and the inspector pane unless
81
+ * `inspector={false}`. It fills the box it is given and draws no border:
82
+ * give it a box of its own height.
83
+ * - **Its inspector** (#1250, on by default, ruled by the user on
84
+ * 2026-10-08): the end pane, Details and Issues — Issues with its count, and
85
+ * collapsed a rail with its icon and the issue count. Details shows what is
86
+ * selected through its form, every field by the shared input its type
87
+ * takes: a state (its key — a new one rekeying its transitions and the
88
+ * decisions' queues — label, lane, members and notes; its transitions in and
89
+ * out, each selecting it; Duplicate, Delete), a transition (its ends, its
90
+ * kind, its decision and its key; its evidence read only; Delete), a
91
+ * decision (its fields, its queue as tags over the flow's states; the
92
+ * transitions it governs; Delete), a lane — a click on its header selects
93
+ * it — (its key, which moves its states, and its label; its states' count;
94
+ * Delete while it holds none), several states (their count; moved to a
95
+ * lane, or deleted, together) or, with nothing selected, the open flow (its
96
+ * name and description — a new name renames it — Duplicate and Delete over
97
+ * many flows; its counts, its last save and who made it, and three hints).
98
+ * Each edit is one transaction, a field the drafts changed tinted against
99
+ * the record; read only, Details shows every field and edits none. Issues
100
+ * lists a transition naming a missing state, a state naming a missing lane,
101
+ * two of one key — which holds Save off — a decision's queue naming a
102
+ * missing state, and a Save's conflict or refusal, a click selecting what
103
+ * each names. `inspector={{ state, transition }}` gives a kind its own
104
+ * Details in place of its form: an East function over the row and its
105
+ * writer, `update` writing the edited row back as one transaction. The
106
+ * hover cards went: the inspector is where details live.
107
+ * - **Its open flow**, over many flows: `flow`, else the first by name, until
108
+ * the viewer opens another — from the Flows tab
109
+ * (`Flowchart.library.flows()`), which lists every flow by name — kept in
110
+ * the UI store under its `name`, so a remount opens it again; a `flow` it
111
+ * doesn't hold is named in a banner above main. LR · TD is the viewer's
112
+ * too, kept under its `name`. Where it edits, "+ New flow" names a new
113
+ * flow, opened empty with one lane; each flow keeps its own drafts until
114
+ * the history item saves or discards them.
115
+ * - **Its library** (#1248): the tabs `library` lists, in its order, each with
116
+ * its count and a search — the Flows tab; state templates
117
+ * (`Flowchart.library.states(rows, …)`) and transition templates
118
+ * (`Flowchart.library.transitions(rows, …)`), each card a drag source; and
119
+ * the author's own cards (`Flowchart.library.tab(rows, …)`), a drag source
120
+ * when the tab declares a `drop`. Each data tab reads its own rows — an
121
+ * input's or a record's, an Array or a `Dict<String, T>` — apart from the
122
+ * flows and from the other tabs. A click selects a card, and a click on the
123
+ * selected card lets it go; an empty tab says so in the shared empty state.
124
+ * - **Its drops** (#1249): a card carried onto the canvas lands where its tab
125
+ * says — a state template on a lane, adding a state at the row under the
126
+ * pointer, its key the drop's, made unique or minted; a transition template
127
+ * on a transition, retyping it; an author's card on what its drop's type
128
+ * names — the ghost saying where, or, red, why not. ⏎ on a card drops it on
129
+ * the canvas's selection, and on a touch screen so does a tap on the
130
+ * selected card. Each drop is one transaction of the open flow's session.
131
+ * - **Its edits** are its editing session's (#1247): over a record, and over
132
+ * `data` given `onApply`, every gesture — "+ LANE", a lane's header
133
+ * double-clicked into its rename (a click selects the lane, #1250) or its ×
134
+ * (off while the lane holds states), the "+ STATE" ghost, a state
135
+ * double-clicked into its editor (a new key rekeys its transitions and the
136
+ * decisions' queues) or dragged across lanes, a handle dragged to another
137
+ * state, Del on the selected state, states, transition, decision or empty
138
+ * lane, and every edit the inspector makes — is one transaction the history
139
+ * item undoes and redoes (⌘Z, ⇧⌘Z or ⌘Y anywhere in the frame but a field
140
+ * being typed into), and Save sends the open flow's drafts as one commit:
141
+ * through the record's patch mutation, or as one patch of `data`'s value to
142
+ * the host's `onApply`, handed the session's request id with it — the same
143
+ * id on a Retry, so a host that keys its write by it writes once (#1275).
144
+ * Two lanes, states, transitions or decisions of one
145
+ * key hold Save off. The footer counts the changes waiting on Save.
146
+ * - **Its flows** are an e3 record's (`record`): `Flowchart.Types.Flows`,
147
+ * flows by name, bound with its patch mutation, the canvas showing `flow`,
148
+ * else the first by name. A record always holds flows by name (ruled
149
+ * 2026-10-07: e3's patch mutation writes only keyed records), so a lone flow
150
+ * is a record of one entry. Or they are the host's (`data`): flows by name
151
+ * or one flow — a value, an expression or a bind handle — the value's type
152
+ * picking the arm, one prop taking either; `Flowchart.over` builds one flow
153
+ * from the host's own tables through their row mappers, and `slice`
154
+ * narrows what it builds.
155
+ * - **A dataset's value** is written as literals with `Flowchart.values`
156
+ * (flows by name) or `Flowchart.value` (one flow), checked when the package
157
+ * builds.
158
+ * - **The host hears** the selection (`onSelectState`, `onSelectLink`,
159
+ * `onSelectTrigger`) and a traced path (`onTracePath`), and vetoes a
160
+ * connection with `canConnect`.
161
+ * - **Refused when the surface is built**, each naming the prop and the
162
+ * remedy: flows from both `record` and `data`, or neither; `onApply`,
163
+ * `slice` or `affordances` over a record; `flow` over one flow; a record of
164
+ * one flow, or of another type, or not bound with its patch mutation;
165
+ * `"brush"` among the affordances; `height` or `maxHeight`, which the box
166
+ * it fills sets; `density`, which nothing drew by — the canvas draws at one
167
+ * rhythm, the spec's 116×40 cards in their lanes (#1251); a callback for an
168
+ * edit (`onAddState`, `onCreateLink`, …)
169
+ * or `linkMode`, which the session's gestures replace; a hover card's
170
+ * builder (`stateHover`, `linkHover`, `triggerHover`), which the inspector
171
+ * replaces; an `inspector` of another kind than a Boolean or `{ state,
172
+ * transition }`, a key other than those two, or a kind's own Details of
173
+ * another type than `(Row, (Row) => Null) => UIComponentType`; a library
174
+ * that lists a tab twice — the Flows tab or a template tab, or two of the
175
+ * author's tabs of one name — or the Flows tab over one flow; a data tab
176
+ * whose rows are neither an Array nor a `Dict<String, T>`; a `states` drop
177
+ * over another type than a state's patch, a `transitions` drop over another
178
+ * than a transition's, and a `tab` drop over none of a flow's row types.
179
+ *
180
+ * The closed-set fields in data (`kind`, `orientation`) are typed variant
181
+ * values, `Flowchart.Types.*`.
182
+ *
183
+ * @example
184
+ * ```tsx
185
+ * // .tsx file with the `@jsxImportSource @elaraai/e3-ui` pragma
186
+ * import { East } from "@elaraai/east";
187
+ * import { Box, Reactive, UIComponentType } from "@elaraai/east-ui";
188
+ * import { Flowchart, Record } from "@elaraai/e3-ui";
189
+ * import e3 from "@elaraai/e3";
190
+ *
191
+ * export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, Flowchart.values({
192
+ * "Inbound parcels": {
193
+ * description: "From the trailer to the van",
194
+ * lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
195
+ * states: [
196
+ * { key: "ARV", label: "Arrived", lane: "intake" },
197
+ * { key: "SCN", label: "Scanned", lane: "intake" },
198
+ * { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
199
+ * { key: "LDD", label: "Loaded", lane: "load" },
200
+ * ],
201
+ * links: [
202
+ * { from: "ARV", to: "SCN" },
203
+ * { from: "SCN", to: "CH*", trigger: "route" },
204
+ * { from: "CH*", to: "LDD" },
205
+ * { from: "SCN", to: "SCN", kind: "observed" },
206
+ * ],
207
+ * triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
208
+ * },
209
+ * "Returns": {
210
+ * description: "From the counter back to the sender",
211
+ * lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
212
+ * states: [
213
+ * { key: "RCV", label: "Received", lane: "counter" },
214
+ * { key: "INS", label: "Inspected", lane: "check" },
215
+ * { key: "RSD", label: "Resent", lane: "out" },
216
+ * ],
217
+ * links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
218
+ * },
219
+ * }));
220
+ * export const depotFlowsPatch = e3.mutation.patch(depotFlows);
221
+ *
222
+ * const flowchart = East.function([], UIComponentType, (_$) => (
223
+ * <Reactive>{$ => {
224
+ * const flows = $.let(Record.bind(depotFlows, [depotFlowsPatch]));
225
+ * return (
226
+ * <Box height="500px">
227
+ * <Flowchart record={flows} flow="Inbound parcels" library={[Flowchart.library.flows()]} />
228
+ * </Box>
229
+ * );
230
+ * }}</Reactive>
231
+ * ));
232
+ * ```
233
+ */
234
+ export const Flowchart = Object.assign(FlowchartTag, MEMBERS);
235
+ /** `<Flowchart>`, for the internal namespace: the tag, on an object of its own, so the public `Flowchart` carries none of the internal members. */
236
+ function FlowchartInternalTag(props) {
237
+ return FlowchartTag(props);
238
+ }
239
+ /**
240
+ * The internal Flowchart namespace — `@elaraai/e3-ui/internal`'s `Flowchart`:
241
+ * the public one, `Flowchart.Payload`, the `Flowchart` carrier and the
242
+ * payload's types, for the renderer and the tests.
243
+ *
244
+ * @internal
245
+ */
246
+ export const FlowchartInternal = Object.assign(FlowchartInternalTag, MEMBERS, {
247
+ Payload: createFlowchartPayload,
248
+ Component: FlowchartComponent,
249
+ Types: {
250
+ ...TYPES,
251
+ Payload: FlowchartPayloadType,
252
+ Canvas: FlowchartCanvasType,
253
+ Source: FlowchartSourceType,
254
+ Data: FlowchartDataType,
255
+ FlowsHandle: FlowchartFlowsHandleType,
256
+ SessionApply: FlowchartSessionApplyType,
257
+ Inspector: FlowchartInspectorType,
258
+ LibraryTab: FlowchartLibraryTabType,
259
+ Lands: FlowchartLandsType,
260
+ Card: FlowchartCardType,
261
+ StateCard: FlowchartStateCardType,
262
+ TransitionCard: FlowchartTransitionCardType,
263
+ LaneCard: FlowchartLaneCardType,
264
+ DecisionCard: FlowchartDecisionCardType,
265
+ },
266
+ });
267
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/flowchart/index.ts"],"names":[],"mappings":"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"}