@elaraai/e3-ui 1.0.97 → 1.0.99

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 (491) hide show
  1. package/README.md +0 -2
  2. package/dist/src/allocation/adapters.d.ts +1 -1
  3. package/dist/src/allocation/adapters.js +1 -1
  4. package/dist/src/allocation/index.d.ts +232 -25
  5. package/dist/src/allocation/index.d.ts.map +1 -1
  6. package/dist/src/allocation/index.js +35 -6
  7. package/dist/src/allocation/index.js.map +1 -1
  8. package/dist/src/allocation/types.d.ts +41 -0
  9. package/dist/src/allocation/types.d.ts.map +1 -1
  10. package/dist/src/allocation/types.js +35 -0
  11. package/dist/src/allocation/types.js.map +1 -1
  12. package/dist/src/bind/data-indexed.d.ts +286 -37
  13. package/dist/src/bind/data-indexed.d.ts.map +1 -1
  14. package/dist/src/bind/data-indexed.js +259 -38
  15. package/dist/src/bind/data-indexed.js.map +1 -1
  16. package/dist/src/bind/data.d.ts +48 -9
  17. package/dist/src/bind/data.d.ts.map +1 -1
  18. package/dist/src/bind/data.js +48 -3
  19. package/dist/src/bind/data.js.map +1 -1
  20. package/dist/src/bind/record.d.ts +61 -24
  21. package/dist/src/bind/record.d.ts.map +1 -1
  22. package/dist/src/bind/record.js +17 -57
  23. package/dist/src/bind/record.js.map +1 -1
  24. package/dist/src/calendar/index.d.ts +522 -36
  25. package/dist/src/calendar/index.d.ts.map +1 -1
  26. package/dist/src/calendar/index.js +53 -13
  27. package/dist/src/calendar/index.js.map +1 -1
  28. package/dist/src/calendar/paged.d.ts +89 -0
  29. package/dist/src/calendar/paged.d.ts.map +1 -0
  30. package/dist/src/calendar/paged.js +148 -0
  31. package/dist/src/calendar/paged.js.map +1 -0
  32. package/dist/src/flowchart/index.d.ts +35 -31
  33. package/dist/src/flowchart/index.d.ts.map +1 -1
  34. package/dist/src/flowchart/index.js +35 -31
  35. package/dist/src/flowchart/index.js.map +1 -1
  36. package/dist/src/flowchart/library.d.ts +108 -84
  37. package/dist/src/flowchart/library.d.ts.map +1 -1
  38. package/dist/src/flowchart/library.js +108 -84
  39. package/dist/src/flowchart/library.js.map +1 -1
  40. package/dist/src/flowchart/payload.d.ts +105 -17
  41. package/dist/src/flowchart/payload.d.ts.map +1 -1
  42. package/dist/src/flowchart/payload.js +3 -3
  43. package/dist/src/flowchart/payload.js.map +1 -1
  44. package/dist/src/flowchart/values.d.ts +35 -31
  45. package/dist/src/flowchart/values.d.ts.map +1 -1
  46. package/dist/src/flowchart/values.js +35 -31
  47. package/dist/src/flowchart/values.js.map +1 -1
  48. package/dist/src/flowchart/window.d.ts.map +1 -1
  49. package/dist/src/flowchart/window.js +3 -2
  50. package/dist/src/flowchart/window.js.map +1 -1
  51. package/dist/src/index.d.ts +13 -4
  52. package/dist/src/index.d.ts.map +1 -1
  53. package/dist/src/index.js +20 -1
  54. package/dist/src/index.js.map +1 -1
  55. package/dist/src/internal.d.ts +18 -8
  56. package/dist/src/internal.d.ts.map +1 -1
  57. package/dist/src/internal.js +40 -10
  58. package/dist/src/internal.js.map +1 -1
  59. package/dist/src/plan/assemble.d.ts +8 -0
  60. package/dist/src/plan/assemble.d.ts.map +1 -1
  61. package/dist/src/plan/assemble.js +1 -1
  62. package/dist/src/plan/assemble.js.map +1 -1
  63. package/dist/src/plan/builders.d.ts +1530 -10
  64. package/dist/src/plan/builders.d.ts.map +1 -1
  65. package/dist/src/plan/builders.js +260 -122
  66. package/dist/src/plan/builders.js.map +1 -1
  67. package/dist/src/plan/event-rows.d.ts +224 -157
  68. package/dist/src/plan/event-rows.d.ts.map +1 -1
  69. package/dist/src/plan/event-rows.js +201 -56
  70. package/dist/src/plan/event-rows.js.map +1 -1
  71. package/dist/src/plan/factories.d.ts +72 -4
  72. package/dist/src/plan/factories.d.ts.map +1 -1
  73. package/dist/src/plan/factories.js +147 -1
  74. package/dist/src/plan/factories.js.map +1 -1
  75. package/dist/src/plan/index.d.ts +152 -125
  76. package/dist/src/plan/index.d.ts.map +1 -1
  77. package/dist/src/plan/index.js +138 -122
  78. package/dist/src/plan/index.js.map +1 -1
  79. package/dist/src/plan/ir.d.ts +1139 -8
  80. package/dist/src/plan/ir.d.ts.map +1 -1
  81. package/dist/src/plan/ir.js +5 -0
  82. package/dist/src/plan/ir.js.map +1 -1
  83. package/dist/src/plan/library.d.ts +65 -42
  84. package/dist/src/plan/library.d.ts.map +1 -1
  85. package/dist/src/plan/library.js +65 -42
  86. package/dist/src/plan/library.js.map +1 -1
  87. package/dist/src/plan/nested-checks.d.ts +146 -0
  88. package/dist/src/plan/nested-checks.d.ts.map +1 -0
  89. package/dist/src/plan/nested-checks.js +468 -0
  90. package/dist/src/plan/nested-checks.js.map +1 -0
  91. package/dist/src/plan/nested-patch.d.ts +35 -0
  92. package/dist/src/plan/nested-patch.d.ts.map +1 -0
  93. package/dist/src/plan/nested-patch.js +143 -0
  94. package/dist/src/plan/nested-patch.js.map +1 -0
  95. package/dist/src/plan/nested-read.d.ts +3250 -0
  96. package/dist/src/plan/nested-read.d.ts.map +1 -0
  97. package/dist/src/plan/nested-read.js +163 -0
  98. package/dist/src/plan/nested-read.js.map +1 -0
  99. package/dist/src/plan/nested.d.ts +280 -0
  100. package/dist/src/plan/nested.d.ts.map +1 -0
  101. package/dist/src/plan/nested.js +6 -0
  102. package/dist/src/plan/nested.js.map +1 -0
  103. package/dist/src/plan/ordered-source.d.ts +3067 -1
  104. package/dist/src/plan/ordered-source.d.ts.map +1 -1
  105. package/dist/src/plan/ordered-source.js +67 -17
  106. package/dist/src/plan/ordered-source.js.map +1 -1
  107. package/dist/src/plan/over.d.ts +111 -75
  108. package/dist/src/plan/over.d.ts.map +1 -1
  109. package/dist/src/plan/over.js +111 -75
  110. package/dist/src/plan/over.js.map +1 -1
  111. package/dist/src/plan/pick.d.ts +15 -3
  112. package/dist/src/plan/pick.d.ts.map +1 -1
  113. package/dist/src/plan/pick.js +75 -36
  114. package/dist/src/plan/pick.js.map +1 -1
  115. package/dist/src/plan/plan.d.ts +3143 -501
  116. package/dist/src/plan/plan.d.ts.map +1 -1
  117. package/dist/src/plan/plan.js +133 -34
  118. package/dist/src/plan/plan.js.map +1 -1
  119. package/dist/src/plan/reads.d.ts +421 -0
  120. package/dist/src/plan/reads.d.ts.map +1 -0
  121. package/dist/src/plan/reads.js +143 -0
  122. package/dist/src/plan/reads.js.map +1 -0
  123. package/dist/src/plan/refs.d.ts +111 -75
  124. package/dist/src/plan/refs.d.ts.map +1 -1
  125. package/dist/src/plan/refs.js +111 -75
  126. package/dist/src/plan/refs.js.map +1 -1
  127. package/dist/src/plan/root.d.ts +14 -7
  128. package/dist/src/plan/root.d.ts.map +1 -1
  129. package/dist/src/plan/root.js +82 -17
  130. package/dist/src/plan/root.js.map +1 -1
  131. package/dist/src/plan/series.d.ts +5153 -4331
  132. package/dist/src/plan/series.d.ts.map +1 -1
  133. package/dist/src/plan/series.js +1082 -266
  134. package/dist/src/plan/series.js.map +1 -1
  135. package/dist/src/plan/shade.d.ts +981 -0
  136. package/dist/src/plan/shade.d.ts.map +1 -0
  137. package/dist/src/plan/shade.js +60 -0
  138. package/dist/src/plan/shade.js.map +1 -0
  139. package/dist/src/plan/types.d.ts +192 -18
  140. package/dist/src/plan/types.d.ts.map +1 -1
  141. package/dist/src/plan/types.js +77 -19
  142. package/dist/src/plan/types.js.map +1 -1
  143. package/dist/src/query/builder.d.ts +3 -3
  144. package/dist/src/query/builder.d.ts.map +1 -1
  145. package/dist/src/query/builder.js +1 -1
  146. package/dist/src/query/library.d.ts +3 -3
  147. package/dist/src/query/library.d.ts.map +1 -1
  148. package/dist/src/query/library.js +1 -1
  149. package/dist/src/query/queries.d.ts +2 -2
  150. package/dist/src/query/queries.js +1 -1
  151. package/dist/src/query/saved.d.ts +8 -4
  152. package/dist/src/query/saved.d.ts.map +1 -1
  153. package/dist/src/query/saved.js +8 -4
  154. package/dist/src/query/saved.js.map +1 -1
  155. package/dist/src/query/types.d.ts +8 -3
  156. package/dist/src/query/types.d.ts.map +1 -1
  157. package/dist/src/query/types.js +8 -3
  158. package/dist/src/query/types.js.map +1 -1
  159. package/dist/src/roster/index.d.ts +583 -39
  160. package/dist/src/roster/index.d.ts.map +1 -1
  161. package/dist/src/roster/index.js +109 -35
  162. package/dist/src/roster/index.js.map +1 -1
  163. package/dist/src/roster/library.d.ts +12 -2
  164. package/dist/src/roster/library.d.ts.map +1 -1
  165. package/dist/src/roster/library.js +8 -0
  166. package/dist/src/roster/library.js.map +1 -1
  167. package/dist/src/roster/lists.d.ts +59 -12
  168. package/dist/src/roster/lists.d.ts.map +1 -1
  169. package/dist/src/roster/lists.js +51 -58
  170. package/dist/src/roster/lists.js.map +1 -1
  171. package/dist/src/roster/targets.d.ts +8 -4
  172. package/dist/src/roster/targets.d.ts.map +1 -1
  173. package/dist/src/roster/targets.js +9 -5
  174. package/dist/src/roster/targets.js.map +1 -1
  175. package/dist/src/roster/times.d.ts +402 -0
  176. package/dist/src/roster/times.d.ts.map +1 -1
  177. package/dist/src/roster/types.d.ts +913 -1
  178. package/dist/src/roster/types.d.ts.map +1 -1
  179. package/dist/src/roster/types.js +43 -3
  180. package/dist/src/roster/types.js.map +1 -1
  181. package/dist/src/schedule/cell-checks.d.ts +85 -0
  182. package/dist/src/schedule/cell-checks.d.ts.map +1 -0
  183. package/dist/src/schedule/cell-checks.js +211 -0
  184. package/dist/src/schedule/cell-checks.js.map +1 -0
  185. package/dist/src/schedule/days.d.ts +1 -1
  186. package/dist/src/schedule/days.js +1 -1
  187. package/dist/src/schedule/events.d.ts +52 -16
  188. package/dist/src/schedule/events.d.ts.map +1 -1
  189. package/dist/src/schedule/events.js +574 -356
  190. package/dist/src/schedule/events.js.map +1 -1
  191. package/dist/src/schedule/fields.d.ts +134 -0
  192. package/dist/src/schedule/fields.d.ts.map +1 -0
  193. package/dist/src/schedule/fields.js +207 -0
  194. package/dist/src/schedule/fields.js.map +1 -0
  195. package/dist/src/schedule/library.d.ts +11 -3
  196. package/dist/src/schedule/library.d.ts.map +1 -1
  197. package/dist/src/schedule/library.js +9 -6
  198. package/dist/src/schedule/library.js.map +1 -1
  199. package/dist/src/schedule/optimise.d.ts +124 -0
  200. package/dist/src/schedule/optimise.d.ts.map +1 -0
  201. package/dist/src/schedule/optimise.js +140 -0
  202. package/dist/src/schedule/optimise.js.map +1 -0
  203. package/dist/src/schedule/pages.d.ts +76 -0
  204. package/dist/src/schedule/pages.d.ts.map +1 -0
  205. package/dist/src/schedule/pages.js +86 -0
  206. package/dist/src/schedule/pages.js.map +1 -0
  207. package/dist/src/schedule/patch.d.ts +1 -1
  208. package/dist/src/schedule/patch.js +1 -1
  209. package/dist/src/schedule/periods.d.ts +8 -4
  210. package/dist/src/schedule/periods.d.ts.map +1 -1
  211. package/dist/src/schedule/periods.js +1 -1
  212. package/dist/src/schedule/periods.js.map +1 -1
  213. package/dist/src/schedule/record-window.d.ts +115 -22
  214. package/dist/src/schedule/record-window.d.ts.map +1 -1
  215. package/dist/src/schedule/record-window.js +140 -62
  216. package/dist/src/schedule/record-window.js.map +1 -1
  217. package/dist/src/schedule/resources.d.ts +9 -5
  218. package/dist/src/schedule/resources.d.ts.map +1 -1
  219. package/dist/src/schedule/resources.js +35 -15
  220. package/dist/src/schedule/resources.js.map +1 -1
  221. package/dist/src/schedule/session.d.ts +15 -1
  222. package/dist/src/schedule/session.d.ts.map +1 -1
  223. package/dist/src/schedule/session.js +30 -18
  224. package/dist/src/schedule/session.js.map +1 -1
  225. package/dist/src/schedule/types.d.ts +455 -37
  226. package/dist/src/schedule/types.d.ts.map +1 -1
  227. package/dist/src/schedule/types.js +79 -18
  228. package/dist/src/schedule/types.js.map +1 -1
  229. package/dist/src/schedule/window.d.ts +30 -9
  230. package/dist/src/schedule/window.d.ts.map +1 -1
  231. package/dist/src/schedule/window.js +101 -49
  232. package/dist/src/schedule/window.js.map +1 -1
  233. package/dist/src/schematic/index.d.ts +287 -0
  234. package/dist/src/schematic/index.d.ts.map +1 -0
  235. package/dist/src/schematic/index.js +216 -0
  236. package/dist/src/schematic/index.js.map +1 -0
  237. package/dist/src/schematic/kinds.d.ts +501 -0
  238. package/dist/src/schematic/kinds.d.ts.map +1 -0
  239. package/dist/src/schematic/kinds.js +1027 -0
  240. package/dist/src/schematic/kinds.js.map +1 -0
  241. package/dist/src/schematic/layers.d.ts +74 -0
  242. package/dist/src/schematic/layers.d.ts.map +1 -0
  243. package/dist/src/schematic/layers.js +99 -0
  244. package/dist/src/schematic/layers.js.map +1 -0
  245. package/dist/src/schematic/library.d.ts +202 -0
  246. package/dist/src/schematic/library.d.ts.map +1 -0
  247. package/dist/src/schematic/library.js +244 -0
  248. package/dist/src/schematic/library.js.map +1 -0
  249. package/dist/src/schematic/payload.d.ts +8310 -0
  250. package/dist/src/schematic/payload.d.ts.map +1 -0
  251. package/dist/src/schematic/payload.js +446 -0
  252. package/dist/src/schematic/payload.js.map +1 -0
  253. package/dist/src/schematic/schematic.d.ts +27 -0
  254. package/dist/src/schematic/schematic.d.ts.map +1 -0
  255. package/dist/src/schematic/schematic.js +17 -0
  256. package/dist/src/schematic/schematic.js.map +1 -0
  257. package/dist/src/schematic/shapes.d.ts +150 -0
  258. package/dist/src/schematic/shapes.d.ts.map +1 -0
  259. package/dist/src/schematic/shapes.js +171 -0
  260. package/dist/src/schematic/shapes.js.map +1 -0
  261. package/dist/src/schematic/templates.d.ts +96 -0
  262. package/dist/src/schematic/templates.d.ts.map +1 -0
  263. package/dist/src/schematic/templates.js +91 -0
  264. package/dist/src/schematic/templates.js.map +1 -0
  265. package/dist/src/schematic/types.d.ts +5766 -0
  266. package/dist/src/schematic/types.d.ts.map +1 -0
  267. package/dist/src/schematic/types.js +688 -0
  268. package/dist/src/schematic/types.js.map +1 -0
  269. package/dist/src/schematic/window.d.ts +213 -0
  270. package/dist/src/schematic/window.d.ts.map +1 -0
  271. package/dist/src/schematic/window.js +340 -0
  272. package/dist/src/schematic/window.js.map +1 -0
  273. package/dist/src/sheet/bridge.d.ts +19 -0
  274. package/dist/src/sheet/bridge.d.ts.map +1 -1
  275. package/dist/src/sheet/bridge.js +28 -21
  276. package/dist/src/sheet/bridge.js.map +1 -1
  277. package/dist/src/sheet/editing-bridge.d.ts +4 -2
  278. package/dist/src/sheet/editing-bridge.d.ts.map +1 -1
  279. package/dist/src/sheet/editing-bridge.js +8 -2
  280. package/dist/src/sheet/editing-bridge.js.map +1 -1
  281. package/dist/src/sheet/editing-types.d.ts +9 -5
  282. package/dist/src/sheet/editing-types.d.ts.map +1 -1
  283. package/dist/src/sheet/editing-types.js +9 -5
  284. package/dist/src/sheet/editing-types.js.map +1 -1
  285. package/dist/src/sheet/index.d.ts +84 -54
  286. package/dist/src/sheet/index.d.ts.map +1 -1
  287. package/dist/src/sheet/index.js +81 -53
  288. package/dist/src/sheet/index.js.map +1 -1
  289. package/dist/src/sheet/library.d.ts +13 -8
  290. package/dist/src/sheet/library.d.ts.map +1 -1
  291. package/dist/src/sheet/library.js +13 -8
  292. package/dist/src/sheet/library.js.map +1 -1
  293. package/dist/src/sheet/optimise.d.ts +69 -0
  294. package/dist/src/sheet/optimise.d.ts.map +1 -0
  295. package/dist/src/sheet/optimise.js +81 -0
  296. package/dist/src/sheet/optimise.js.map +1 -0
  297. package/dist/src/sheet/record.d.ts +1 -1
  298. package/dist/src/sheet/record.js +2 -2
  299. package/dist/src/sheet/record.js.map +1 -1
  300. package/dist/src/sheet/registers.d.ts +157 -133
  301. package/dist/src/sheet/registers.d.ts.map +1 -1
  302. package/dist/src/sheet/registers.js +157 -133
  303. package/dist/src/sheet/registers.js.map +1 -1
  304. package/dist/src/sheet/root.d.ts +6 -1
  305. package/dist/src/sheet/root.d.ts.map +1 -1
  306. package/dist/src/sheet/root.js +17 -5
  307. package/dist/src/sheet/root.js.map +1 -1
  308. package/dist/src/sheet/sheet.d.ts +696 -590
  309. package/dist/src/sheet/sheet.d.ts.map +1 -1
  310. package/dist/src/sheet/sheet.js +49 -15
  311. package/dist/src/sheet/sheet.js.map +1 -1
  312. package/dist/src/sheet/sub-rows.d.ts +106 -76
  313. package/dist/src/sheet/sub-rows.d.ts.map +1 -1
  314. package/dist/src/sheet/sub-rows.js +106 -76
  315. package/dist/src/sheet/sub-rows.js.map +1 -1
  316. package/dist/src/sheet/types.d.ts +57 -20
  317. package/dist/src/sheet/types.d.ts.map +1 -1
  318. package/dist/src/sheet/types.js +4 -8
  319. package/dist/src/sheet/types.js.map +1 -1
  320. package/dist/src/studio/builder.d.ts +3 -153
  321. package/dist/src/studio/builder.d.ts.map +1 -1
  322. package/dist/src/studio/builder.js +1 -1
  323. package/dist/src/studio/canvas.d.ts +5 -4
  324. package/dist/src/studio/canvas.d.ts.map +1 -1
  325. package/dist/src/studio/canvas.js +8 -7
  326. package/dist/src/studio/canvas.js.map +1 -1
  327. package/dist/src/studio/component.d.ts +30 -20
  328. package/dist/src/studio/component.d.ts.map +1 -1
  329. package/dist/src/studio/component.js +26 -61
  330. package/dist/src/studio/component.js.map +1 -1
  331. package/dist/src/studio/index.d.ts +2 -2
  332. package/dist/src/studio/index.d.ts.map +1 -1
  333. package/dist/src/studio/index.js +1 -1
  334. package/dist/src/studio/index.js.map +1 -1
  335. package/dist/src/studio/inspector.d.ts +10 -39
  336. package/dist/src/studio/inspector.d.ts.map +1 -1
  337. package/dist/src/studio/inspector.js +11 -31
  338. package/dist/src/studio/inspector.js.map +1 -1
  339. package/dist/src/studio/library.d.ts +3 -169
  340. package/dist/src/studio/library.d.ts.map +1 -1
  341. package/dist/src/studio/library.js +1 -1
  342. package/dist/src/studio/page.d.ts +0 -8
  343. package/dist/src/studio/page.d.ts.map +1 -1
  344. package/dist/src/studio/pages.d.ts +17 -591
  345. package/dist/src/studio/pages.d.ts.map +1 -1
  346. package/dist/src/studio/pages.js +17 -44
  347. package/dist/src/studio/pages.js.map +1 -1
  348. package/dist/src/studio/palette.d.ts +2 -7
  349. package/dist/src/studio/palette.d.ts.map +1 -1
  350. package/dist/src/studio/palette.js +4 -5
  351. package/dist/src/studio/palette.js.map +1 -1
  352. package/dist/src/studio/publish.d.ts +8 -18
  353. package/dist/src/studio/publish.d.ts.map +1 -1
  354. package/dist/src/studio/publish.js +10 -36
  355. package/dist/src/studio/publish.js.map +1 -1
  356. package/dist/src/utils/derive.d.ts +12 -12
  357. package/dist/src/utils/derive.d.ts.map +1 -1
  358. package/dist/src/utils/derive.js +5 -2
  359. package/dist/src/utils/derive.js.map +1 -1
  360. package/dist/src/utils/keyed-rows.d.ts +41 -0
  361. package/dist/src/utils/keyed-rows.d.ts.map +1 -0
  362. package/dist/src/utils/keyed-rows.js +64 -0
  363. package/dist/src/utils/keyed-rows.js.map +1 -0
  364. package/dist/src/utils/optimise.d.ts +79 -0
  365. package/dist/src/utils/optimise.d.ts.map +1 -0
  366. package/dist/src/utils/optimise.js +46 -0
  367. package/dist/src/utils/optimise.js.map +1 -0
  368. package/dist/src/utils/ordered-source.d.ts.map +1 -1
  369. package/dist/src/utils/ordered-source.js +14 -5
  370. package/dist/src/utils/ordered-source.js.map +1 -1
  371. package/dist/test/allocation/allocation.examples.d.ts +1900 -1610
  372. package/dist/test/allocation/allocation.examples.d.ts.map +1 -1
  373. package/dist/test/allocation/allocation.examples.js +179 -89
  374. package/dist/test/allocation/allocation.examples.js.map +1 -1
  375. package/dist/test/allocation/optimise.examples.d.ts +109 -0
  376. package/dist/test/allocation/optimise.examples.d.ts.map +1 -0
  377. package/dist/test/allocation/optimise.examples.js +223 -0
  378. package/dist/test/allocation/optimise.examples.js.map +1 -0
  379. package/dist/test/bind/data/data.examples.d.ts +1172 -514
  380. package/dist/test/bind/data/data.examples.d.ts.map +1 -1
  381. package/dist/test/bind/data/data.examples.js +284 -164
  382. package/dist/test/bind/data/data.examples.js.map +1 -1
  383. package/dist/test/bind/record/record.examples.d.ts +457 -428
  384. package/dist/test/bind/record/record.examples.d.ts.map +1 -1
  385. package/dist/test/bind/record/record.examples.js +41 -21
  386. package/dist/test/bind/record/record.examples.js.map +1 -1
  387. package/dist/test/calendar/calendar-records.examples.d.ts +162 -170
  388. package/dist/test/calendar/calendar-records.examples.d.ts.map +1 -1
  389. package/dist/test/calendar/calendar-records.examples.js +20 -12
  390. package/dist/test/calendar/calendar-records.examples.js.map +1 -1
  391. package/dist/test/calendar/calendar-windows.examples.d.ts +9 -0
  392. package/dist/test/calendar/calendar-windows.examples.d.ts.map +1 -0
  393. package/dist/test/calendar/calendar-windows.examples.js +111 -0
  394. package/dist/test/calendar/calendar-windows.examples.js.map +1 -0
  395. package/dist/test/calendar/calendar.examples.d.ts +1172 -915
  396. package/dist/test/calendar/calendar.examples.d.ts.map +1 -1
  397. package/dist/test/calendar/calendar.examples.js +211 -124
  398. package/dist/test/calendar/calendar.examples.js.map +1 -1
  399. package/dist/test/calendar/optimise.examples.d.ts +132 -0
  400. package/dist/test/calendar/optimise.examples.d.ts.map +1 -0
  401. package/dist/test/calendar/optimise.examples.js +75 -0
  402. package/dist/test/calendar/optimise.examples.js.map +1 -0
  403. package/dist/test/examples-package.d.ts +49 -16
  404. package/dist/test/examples-package.d.ts.map +1 -1
  405. package/dist/test/examples-package.js +138 -49
  406. package/dist/test/examples-package.js.map +1 -1
  407. package/dist/test/flowchart/flowchart.examples.d.ts +3841 -2840
  408. package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -1
  409. package/dist/test/flowchart/flowchart.examples.js +211 -121
  410. package/dist/test/flowchart/flowchart.examples.js.map +1 -1
  411. package/dist/test/plan/optimise.examples.d.ts +207 -0
  412. package/dist/test/plan/optimise.examples.d.ts.map +1 -0
  413. package/dist/test/plan/optimise.examples.js +98 -0
  414. package/dist/test/plan/optimise.examples.js.map +1 -0
  415. package/dist/test/plan/plan-events.examples.d.ts +4055 -3279
  416. package/dist/test/plan/plan-events.examples.d.ts.map +1 -1
  417. package/dist/test/plan/plan-events.examples.js +492 -319
  418. package/dist/test/plan/plan-events.examples.js.map +1 -1
  419. package/dist/test/plan/plan-nested.examples.d.ts +1829 -0
  420. package/dist/test/plan/plan-nested.examples.d.ts.map +1 -0
  421. package/dist/test/plan/plan-nested.examples.js +321 -0
  422. package/dist/test/plan/plan-nested.examples.js.map +1 -0
  423. package/dist/test/plan/plan-records.examples.d.ts +391 -244
  424. package/dist/test/plan/plan-records.examples.d.ts.map +1 -1
  425. package/dist/test/plan/plan-records.examples.js +186 -65
  426. package/dist/test/plan/plan-records.examples.js.map +1 -1
  427. package/dist/test/plan/plan-windows.examples.d.ts +1978 -803
  428. package/dist/test/plan/plan-windows.examples.d.ts.map +1 -1
  429. package/dist/test/plan/plan-windows.examples.js +269 -99
  430. package/dist/test/plan/plan-windows.examples.js.map +1 -1
  431. package/dist/test/plan/plan.examples.d.ts +2238 -5726
  432. package/dist/test/plan/plan.examples.d.ts.map +1 -1
  433. package/dist/test/plan/plan.examples.js +846 -973
  434. package/dist/test/plan/plan.examples.js.map +1 -1
  435. package/dist/test/query/query.examples.d.ts +5221 -3005
  436. package/dist/test/query/query.examples.d.ts.map +1 -1
  437. package/dist/test/query/query.examples.js +169 -118
  438. package/dist/test/query/query.examples.js.map +1 -1
  439. package/dist/test/roster/domain.examples.d.ts +804 -0
  440. package/dist/test/roster/domain.examples.d.ts.map +1 -1
  441. package/dist/test/roster/domain.examples.js +3 -3
  442. package/dist/test/roster/domain.examples.js.map +1 -1
  443. package/dist/test/roster/optimise.examples.d.ts +485 -0
  444. package/dist/test/roster/optimise.examples.d.ts.map +1 -0
  445. package/dist/test/roster/optimise.examples.js +155 -0
  446. package/dist/test/roster/optimise.examples.js.map +1 -0
  447. package/dist/test/roster/roster-records.examples.d.ts +364 -404
  448. package/dist/test/roster/roster-records.examples.d.ts.map +1 -1
  449. package/dist/test/roster/roster-records.examples.js +40 -26
  450. package/dist/test/roster/roster-records.examples.js.map +1 -1
  451. package/dist/test/roster/roster.examples.d.ts +5091 -1424
  452. package/dist/test/roster/roster.examples.d.ts.map +1 -1
  453. package/dist/test/roster/roster.examples.js +255 -109
  454. package/dist/test/roster/roster.examples.js.map +1 -1
  455. package/dist/test/roster/warehouse.d.ts +150 -7
  456. package/dist/test/roster/warehouse.d.ts.map +1 -1
  457. package/dist/test/roster/warehouse.js +36 -11
  458. package/dist/test/roster/warehouse.js.map +1 -1
  459. package/dist/test/schedule/schedule.examples.d.ts +2646 -2473
  460. package/dist/test/schedule/schedule.examples.d.ts.map +1 -1
  461. package/dist/test/schedule/schedule.examples.js +144 -88
  462. package/dist/test/schedule/schedule.examples.js.map +1 -1
  463. package/dist/test/schematic/schematic-records.examples.d.ts +454 -0
  464. package/dist/test/schematic/schematic-records.examples.d.ts.map +1 -0
  465. package/dist/test/schematic/schematic-records.examples.js +219 -0
  466. package/dist/test/schematic/schematic-records.examples.js.map +1 -0
  467. package/dist/test/schematic/schematic.examples.d.ts +2640 -0
  468. package/dist/test/schematic/schematic.examples.d.ts.map +1 -0
  469. package/dist/test/schematic/schematic.examples.js +559 -0
  470. package/dist/test/schematic/schematic.examples.js.map +1 -0
  471. package/dist/test/sheet/optimise.examples.d.ts +184 -0
  472. package/dist/test/sheet/optimise.examples.d.ts.map +1 -0
  473. package/dist/test/sheet/optimise.examples.js +79 -0
  474. package/dist/test/sheet/optimise.examples.js.map +1 -0
  475. package/dist/test/sheet/sheet-records.examples.d.ts +208 -356
  476. package/dist/test/sheet/sheet-records.examples.d.ts.map +1 -1
  477. package/dist/test/sheet/sheet-records.examples.js +66 -29
  478. package/dist/test/sheet/sheet-records.examples.js.map +1 -1
  479. package/dist/test/sheet/sheet.examples.d.ts +3650 -3377
  480. package/dist/test/sheet/sheet.examples.d.ts.map +1 -1
  481. package/dist/test/sheet/sheet.examples.js +406 -296
  482. package/dist/test/sheet/sheet.examples.js.map +1 -1
  483. package/dist/test/studio/component.examples.js +2 -2
  484. package/dist/test/studio/component.examples.js.map +1 -1
  485. package/dist/test/studio/page.examples.js +6 -6
  486. package/dist/test/studio/page.examples.js.map +1 -1
  487. package/dist/test/studio/studio.examples.d.ts +2329 -873
  488. package/dist/test/studio/studio.examples.d.ts.map +1 -1
  489. package/dist/test/studio/studio.examples.js +155 -107
  490. package/dist/test/studio/studio.examples.js.map +1 -1
  491. package/package.json +15 -11
@@ -211,40 +211,44 @@ const MEMBERS = {
211
211
  * import { Flowchart, Record } from "@elaraai/e3-ui";
212
212
  * import e3 from "@elaraai/e3";
213
213
  *
214
- * export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, Flowchart.values({
215
- * "Inbound parcels": {
216
- * description: "From the trailer to the van",
217
- * lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
218
- * states: [
219
- * { key: "ARV", label: "Arrived", lane: "intake" },
220
- * { key: "SCN", label: "Scanned", lane: "intake" },
221
- * { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
222
- * { key: "LDD", label: "Loaded", lane: "load" },
223
- * ],
224
- * links: [
225
- * { from: "ARV", to: "SCN" },
226
- * { from: "SCN", to: "CH*", trigger: "route" },
227
- * { from: "CH*", to: "LDD" },
228
- * { from: "SCN", to: "SCN", kind: "observed" },
229
- * ],
230
- * triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
231
- * },
232
- * "Returns": {
233
- * description: "From the counter back to the sender",
234
- * lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
235
- * states: [
236
- * { key: "RCV", label: "Received", lane: "counter" },
237
- * { key: "INS", label: "Inspected", lane: "check" },
238
- * { key: "RSD", label: "Resent", lane: "out" },
239
- * ],
240
- * links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
241
- * },
242
- * }));
243
- * export const depotFlowsPatch = e3.mutation.patch(depotFlows);
214
+ * export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, {
215
+ * initial: Flowchart.values({
216
+ * "Inbound parcels": {
217
+ * description: "From the trailer to the van",
218
+ * lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
219
+ * states: [
220
+ * { key: "ARV", label: "Arrived", lane: "intake" },
221
+ * { key: "SCN", label: "Scanned", lane: "intake" },
222
+ * { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
223
+ * { key: "LDD", label: "Loaded", lane: "load" },
224
+ * ],
225
+ * links: [
226
+ * { from: "ARV", to: "SCN" },
227
+ * { from: "SCN", to: "CH*", trigger: "route" },
228
+ * { from: "CH*", to: "LDD" },
229
+ * { from: "SCN", to: "SCN", kind: "observed" },
230
+ * ],
231
+ * triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
232
+ * },
233
+ * "Returns": {
234
+ * description: "From the counter back to the sender",
235
+ * lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
236
+ * states: [
237
+ * { key: "RCV", label: "Received", lane: "counter" },
238
+ * { key: "INS", label: "Inspected", lane: "check" },
239
+ * { key: "RSD", label: "Resent", lane: "out" },
240
+ * ],
241
+ * links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
242
+ * },
243
+ * }),
244
+ * mutations: (mutation) => ({
245
+ * patch: mutation.patch(),
246
+ * }),
247
+ * });
244
248
  *
245
249
  * const flowchart = East.function([], UIComponentType, (_$) => (
246
250
  * <Reactive>{$ => {
247
- * const flows = $.let(Record.bind(depotFlows, [depotFlowsPatch]));
251
+ * const flows = $.let(Record.bind(depotFlows));
248
252
  * return (
249
253
  * <Box height="500px">
250
254
  * <Flowchart record={flows} flow="Inbound parcels" library={[Flowchart.library.flows()]} />
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/flowchart/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,YAAY,EAAyB,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACH,iBAAiB,EACjB,yBAAyB,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eExprOrValue<DictT
514
514
  * import { Flowchart, Record } from "@elaraai/e3-ui";
515
515
  * import e3 from "@elaraai/e3";
516
516
  *
517
- * export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, Flowchart.values({
518
- * "Inbound parcels": {
519
- * description: "From the trailer to the van",
520
- * lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
521
- * states: [
522
- * { key: "ARV", label: "Arrived", lane: "intake" },
523
- * { key: "SCN", label: "Scanned", lane: "intake" },
524
- * { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
525
- * { key: "LDD", label: "Loaded", lane: "load" },
526
- * ],
527
- * links: [
528
- * { from: "ARV", to: "SCN" },
529
- * { from: "SCN", to: "CH*", trigger: "route" },
530
- * { from: "CH*", to: "LDD" },
531
- * { from: "SCN", to: "SCN", kind: "observed" },
532
- * ],
533
- * triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
534
- * },
535
- * "Returns": {
536
- * description: "From the counter back to the sender",
537
- * lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
538
- * states: [
539
- * { key: "RCV", label: "Received", lane: "counter" },
540
- * { key: "INS", label: "Inspected", lane: "check" },
541
- * { key: "RSD", label: "Resent", lane: "out" },
542
- * ],
543
- * links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
544
- * },
545
- * }));
546
- * export const depotFlowsPatch = e3.mutation.patch(depotFlows);
517
+ * export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, {
518
+ * initial: Flowchart.values({
519
+ * "Inbound parcels": {
520
+ * description: "From the trailer to the van",
521
+ * lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
522
+ * states: [
523
+ * { key: "ARV", label: "Arrived", lane: "intake" },
524
+ * { key: "SCN", label: "Scanned", lane: "intake" },
525
+ * { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
526
+ * { key: "LDD", label: "Loaded", lane: "load" },
527
+ * ],
528
+ * links: [
529
+ * { from: "ARV", to: "SCN" },
530
+ * { from: "SCN", to: "CH*", trigger: "route" },
531
+ * { from: "CH*", to: "LDD" },
532
+ * { from: "SCN", to: "SCN", kind: "observed" },
533
+ * ],
534
+ * triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
535
+ * },
536
+ * "Returns": {
537
+ * description: "From the counter back to the sender",
538
+ * lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
539
+ * states: [
540
+ * { key: "RCV", label: "Received", lane: "counter" },
541
+ * { key: "INS", label: "Inspected", lane: "check" },
542
+ * { key: "RSD", label: "Resent", lane: "out" },
543
+ * ],
544
+ * links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
545
+ * },
546
+ * }),
547
+ * mutations: (mutation) => ({
548
+ * patch: mutation.patch(),
549
+ * }),
550
+ * });
547
551
  *
548
552
  * const flowchart = East.function([], UIComponentType, (_$) => (
549
553
  * <Reactive>{$ => {
550
- * const flows = $.let(Record.bind(depotFlows, [depotFlowsPatch]));
554
+ * const flows = $.let(Record.bind(depotFlows));
551
555
  * return (
552
556
  * <Box height="500px">
553
557
  * <Flowchart record={flows} flow="Inbound parcels" library={[Flowchart.library.flows()]} />
@@ -592,73 +596,93 @@ export declare function libraryFlows(): FlowchartFlowsTab;
592
596
  * import { Data, Flowchart, Record } from "@elaraai/e3-ui";
593
597
  * import e3 from "@elaraai/e3";
594
598
  *
595
- * export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, Flowchart.values({
596
- * "Inbound parcels": {
597
- * description: "From the trailer to the van",
598
- * lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
599
- * states: [
600
- * { key: "ARV", label: "Arrived", lane: "intake" },
601
- * { key: "SCN", label: "Scanned", lane: "intake" },
602
- * { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
603
- * { key: "LDD", label: "Loaded", lane: "load" },
604
- * ],
605
- * links: [
606
- * { from: "ARV", to: "SCN" },
607
- * { from: "SCN", to: "CH*", trigger: "route" },
608
- * { from: "CH*", to: "LDD" },
609
- * { from: "SCN", to: "SCN", kind: "observed" },
610
- * ],
611
- * triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
612
- * },
613
- * "Returns": {
614
- * description: "From the counter back to the sender",
615
- * lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
616
- * states: [
617
- * { key: "RCV", label: "Received", lane: "counter" },
618
- * { key: "INS", label: "Inspected", lane: "check" },
619
- * { key: "RSD", label: "Resent", lane: "out" },
620
- * ],
621
- * links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
622
- * },
623
- * }));
624
- * export const depotFlowsPatch = e3.mutation.patch(depotFlows);
599
+ * export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, {
600
+ * initial: Flowchart.values({
601
+ * "Inbound parcels": {
602
+ * description: "From the trailer to the van",
603
+ * lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
604
+ * states: [
605
+ * { key: "ARV", label: "Arrived", lane: "intake" },
606
+ * { key: "SCN", label: "Scanned", lane: "intake" },
607
+ * { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
608
+ * { key: "LDD", label: "Loaded", lane: "load" },
609
+ * ],
610
+ * links: [
611
+ * { from: "ARV", to: "SCN" },
612
+ * { from: "SCN", to: "CH*", trigger: "route" },
613
+ * { from: "CH*", to: "LDD" },
614
+ * { from: "SCN", to: "SCN", kind: "observed" },
615
+ * ],
616
+ * triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
617
+ * },
618
+ * "Returns": {
619
+ * description: "From the counter back to the sender",
620
+ * lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
621
+ * states: [
622
+ * { key: "RCV", label: "Received", lane: "counter" },
623
+ * { key: "INS", label: "Inspected", lane: "check" },
624
+ * { key: "RSD", label: "Resent", lane: "out" },
625
+ * ],
626
+ * links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
627
+ * },
628
+ * }),
629
+ * mutations: (mutation) => ({
630
+ * patch: mutation.patch(),
631
+ * }),
632
+ * });
625
633
  * export const StepTemplate = StructType({ name: StringType, kind: StringType, slots: OptionType(IntegerType) });
626
- * export const stepTemplates = e3.record("flowchart_step_templates", DictType(StringType, StepTemplate), new Map([
627
- * ["ARV", { name: "Arrived", kind: "Intake", slots: none }],
628
- * ["SCN", { name: "Scanned", kind: "Intake", slots: none }],
629
- * ["CH*", { name: "Sort chutes", kind: "Sort", slots: some(12n) }],
630
- * ["HLD", { name: "Held", kind: "Hold", slots: none }],
631
- * ["LDD", { name: "Loaded", kind: "Load", slots: none }],
632
- * ]));
633
- * export const stepsByKind = e3.recordIndex("flowchart_steps_by_kind", stepTemplates, { on: ["kind"] });
634
+ * export const stepTemplates = e3.record("flowchart_step_templates", DictType(StringType, StepTemplate), {
635
+ * initial: new Map([
636
+ * ["ARV", { name: "Arrived", kind: "Intake", slots: none }],
637
+ * ["SCN", { name: "Scanned", kind: "Intake", slots: none }],
638
+ * ["CH*", { name: "Sort chutes", kind: "Sort", slots: some(12n) }],
639
+ * ["HLD", { name: "Held", kind: "Hold", slots: none }],
640
+ * ["LDD", { name: "Loaded", kind: "Load", slots: none }],
641
+ * ]),
642
+ * indexes: (index) => ({
643
+ * flowchart_steps_by_kind: index.on(["kind"]),
644
+ * }),
645
+ * mutations: (mutation) => ({
646
+ * // The step types' patch door: what another writer adds a step type through, the Steps tab's cards following.
647
+ * patch: mutation.patch(),
648
+ * }),
649
+ * });
634
650
  * export const MoveTemplate = StructType({ kind: Flowchart.Types.Kind, decision: OptionType(StringType), note: StringType });
635
- * export const moveTemplates = e3.record("flowchart_move_templates", DictType(StringType, MoveTemplate), new Map([
636
- * ["Observed", { kind: variant("observed", null), decision: none, note: "Mined from the scans" }],
637
- * ["Planned", { kind: variant("planned", null), decision: none, note: "The designed path" }],
638
- * ["Routed", { kind: variant("planned", null), decision: some("route"), note: "Governed by the route decision" }],
639
- * ]));
640
- * export const movesByKind = e3.recordIndex("flowchart_moves_by_kind", moveTemplates, { on: ["kind"] });
651
+ * export const moveTemplates = e3.record("flowchart_move_templates", DictType(StringType, MoveTemplate), {
652
+ * initial: new Map([
653
+ * ["Observed", { kind: variant("observed", null), decision: none, note: "Mined from the scans" }],
654
+ * ["Planned", { kind: variant("planned", null), decision: none, note: "The designed path" }],
655
+ * ["Routed", { kind: variant("planned", null), decision: some("route"), note: "Governed by the route decision" }],
656
+ * ]),
657
+ * indexes: (index) => ({
658
+ * flowchart_moves_by_kind: index.on(["kind"]),
659
+ * }),
660
+ * });
641
661
  * export const DecisionOwner = StructType({ name: StringType, desk: StringType });
642
- * export const decisionOwners = e3.record("flowchart_decision_owners", DictType(StringType, DecisionOwner), new Map([
643
- * ["sort-planner", { name: "Sort planner", desk: "Sort hall" }],
644
- * ["customs-desk", { name: "Customs desk", desk: "Hold bay" }],
645
- * ]));
646
- * export const ownersByDesk = e3.recordIndex("flowchart_owners_by_desk", decisionOwners, { on: ["desk"] });
662
+ * export const decisionOwners = e3.record("flowchart_decision_owners", DictType(StringType, DecisionOwner), {
663
+ * initial: new Map([
664
+ * ["sort-planner", { name: "Sort planner", desk: "Sort hall" }],
665
+ * ["customs-desk", { name: "Customs desk", desk: "Hold bay" }],
666
+ * ]),
667
+ * indexes: (index) => ({
668
+ * flowchart_owners_by_desk: index.on(["desk"]),
669
+ * }),
670
+ * });
647
671
  *
648
672
  * const flowchart = East.function([], UIComponentType, (_$) => (
649
673
  * <Reactive>{$ => {
650
- * const flows = $.let(Record.bind(depotFlows, [depotFlowsPatch]));
674
+ * const flows = $.let(Record.bind(depotFlows));
651
675
  * // What a tab reads whole binds with Data.bind, which keeps it loaded beside its pages.
652
676
  * const steps = $.let(Data.bind(stepTemplates));
653
677
  * const moves = $.let(Data.bind(moveTemplates));
654
678
  * const owners = $.let(Data.bind(decisionOwners));
655
679
  * // One rail over the library's records, a source each (#1346): each tab follows the source it names.
656
680
  * const slice = $.let(Slice.bindRecords("flowchart.depot", {
657
- * steps: { source: Data.bindPaged(stepTemplates, { indexes: [stepsByKind] }), label: "Steps", icon: { prefix: "fas", name: "box" },
681
+ * steps: { source: Data.bindPaged(stepTemplates, { indexes: ["flowchart_steps_by_kind"] }), label: "Steps", icon: { prefix: "fas", name: "box" },
658
682
  * fields: { kind: { label: "Step kind", hints: ["Intake", "Sort", "Hold", "Load"] } } },
659
- * moves: { source: Data.bindPaged(moveTemplates, { indexes: [movesByKind] }), label: "Transitions", icon: { prefix: "fas", name: "arrow-right" },
683
+ * moves: { source: Data.bindPaged(moveTemplates, { indexes: ["flowchart_moves_by_kind"] }), label: "Transitions", icon: { prefix: "fas", name: "arrow-right" },
660
684
  * fields: { kind: { label: "Transition kind" } } },
661
- * owners: { source: Data.bindPaged(decisionOwners, { indexes: [ownersByDesk] }), label: "Owners", icon: { prefix: "fas", name: "user-tie" },
685
+ * owners: { source: Data.bindPaged(decisionOwners, { indexes: ["flowchart_owners_by_desk"] }), label: "Owners", icon: { prefix: "fas", name: "user-tie" },
662
686
  * fields: { desk: { label: "Desk", hints: ["Sort hall", "Hold bay"] } } },
663
687
  * }));
664
688
  * return (
@@ -1 +1 @@
1
- {"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../src/flowchart/library.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EACH,SAAS,EACT,QAAQ,EAGR,QAAQ,EACR,UAAU,EAEV,UAAU,EACV,UAAU,EACV,WAAW,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IAAqI;IACrI,WAAW,EAAE,OAAO,kBAAkB,CAAC;IACvC,2EAA2E;IAC3E,GAAG,EAAE,OAAO,UAAU,CAAC;CAC1B;AAED,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,EAAE,gBAKvC,CAAC;AA0RF;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAatF;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAGzD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAE,SAAS,MAAM,EAAO,GAAG,QAAQ,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC,CA4B3I"}
@@ -158,40 +158,44 @@ export const FlowchartLibraryTabType = VariantType({
158
158
  * import { Flowchart, Record } from "@elaraai/e3-ui";
159
159
  * import e3 from "@elaraai/e3";
160
160
  *
161
- * export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, Flowchart.values({
162
- * "Inbound parcels": {
163
- * description: "From the trailer to the van",
164
- * lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
165
- * states: [
166
- * { key: "ARV", label: "Arrived", lane: "intake" },
167
- * { key: "SCN", label: "Scanned", lane: "intake" },
168
- * { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
169
- * { key: "LDD", label: "Loaded", lane: "load" },
170
- * ],
171
- * links: [
172
- * { from: "ARV", to: "SCN" },
173
- * { from: "SCN", to: "CH*", trigger: "route" },
174
- * { from: "CH*", to: "LDD" },
175
- * { from: "SCN", to: "SCN", kind: "observed" },
176
- * ],
177
- * triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
178
- * },
179
- * "Returns": {
180
- * description: "From the counter back to the sender",
181
- * lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
182
- * states: [
183
- * { key: "RCV", label: "Received", lane: "counter" },
184
- * { key: "INS", label: "Inspected", lane: "check" },
185
- * { key: "RSD", label: "Resent", lane: "out" },
186
- * ],
187
- * links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
188
- * },
189
- * }));
190
- * export const depotFlowsPatch = e3.mutation.patch(depotFlows);
161
+ * export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, {
162
+ * initial: Flowchart.values({
163
+ * "Inbound parcels": {
164
+ * description: "From the trailer to the van",
165
+ * lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
166
+ * states: [
167
+ * { key: "ARV", label: "Arrived", lane: "intake" },
168
+ * { key: "SCN", label: "Scanned", lane: "intake" },
169
+ * { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
170
+ * { key: "LDD", label: "Loaded", lane: "load" },
171
+ * ],
172
+ * links: [
173
+ * { from: "ARV", to: "SCN" },
174
+ * { from: "SCN", to: "CH*", trigger: "route" },
175
+ * { from: "CH*", to: "LDD" },
176
+ * { from: "SCN", to: "SCN", kind: "observed" },
177
+ * ],
178
+ * triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
179
+ * },
180
+ * "Returns": {
181
+ * description: "From the counter back to the sender",
182
+ * lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
183
+ * states: [
184
+ * { key: "RCV", label: "Received", lane: "counter" },
185
+ * { key: "INS", label: "Inspected", lane: "check" },
186
+ * { key: "RSD", label: "Resent", lane: "out" },
187
+ * ],
188
+ * links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
189
+ * },
190
+ * }),
191
+ * mutations: (mutation) => ({
192
+ * patch: mutation.patch(),
193
+ * }),
194
+ * });
191
195
  *
192
196
  * const flowchart = East.function([], UIComponentType, (_$) => (
193
197
  * <Reactive>{$ => {
194
- * const flows = $.let(Record.bind(depotFlows, [depotFlowsPatch]));
198
+ * const flows = $.let(Record.bind(depotFlows));
195
199
  * return (
196
200
  * <Box height="500px">
197
201
  * <Flowchart record={flows} flow="Inbound parcels" library={[Flowchart.library.flows()]} />
@@ -238,73 +242,93 @@ export function libraryFlows() {
238
242
  * import { Data, Flowchart, Record } from "@elaraai/e3-ui";
239
243
  * import e3 from "@elaraai/e3";
240
244
  *
241
- * export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, Flowchart.values({
242
- * "Inbound parcels": {
243
- * description: "From the trailer to the van",
244
- * lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
245
- * states: [
246
- * { key: "ARV", label: "Arrived", lane: "intake" },
247
- * { key: "SCN", label: "Scanned", lane: "intake" },
248
- * { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
249
- * { key: "LDD", label: "Loaded", lane: "load" },
250
- * ],
251
- * links: [
252
- * { from: "ARV", to: "SCN" },
253
- * { from: "SCN", to: "CH*", trigger: "route" },
254
- * { from: "CH*", to: "LDD" },
255
- * { from: "SCN", to: "SCN", kind: "observed" },
256
- * ],
257
- * triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
258
- * },
259
- * "Returns": {
260
- * description: "From the counter back to the sender",
261
- * lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
262
- * states: [
263
- * { key: "RCV", label: "Received", lane: "counter" },
264
- * { key: "INS", label: "Inspected", lane: "check" },
265
- * { key: "RSD", label: "Resent", lane: "out" },
266
- * ],
267
- * links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
268
- * },
269
- * }));
270
- * export const depotFlowsPatch = e3.mutation.patch(depotFlows);
245
+ * export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, {
246
+ * initial: Flowchart.values({
247
+ * "Inbound parcels": {
248
+ * description: "From the trailer to the van",
249
+ * lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
250
+ * states: [
251
+ * { key: "ARV", label: "Arrived", lane: "intake" },
252
+ * { key: "SCN", label: "Scanned", lane: "intake" },
253
+ * { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
254
+ * { key: "LDD", label: "Loaded", lane: "load" },
255
+ * ],
256
+ * links: [
257
+ * { from: "ARV", to: "SCN" },
258
+ * { from: "SCN", to: "CH*", trigger: "route" },
259
+ * { from: "CH*", to: "LDD" },
260
+ * { from: "SCN", to: "SCN", kind: "observed" },
261
+ * ],
262
+ * triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
263
+ * },
264
+ * "Returns": {
265
+ * description: "From the counter back to the sender",
266
+ * lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
267
+ * states: [
268
+ * { key: "RCV", label: "Received", lane: "counter" },
269
+ * { key: "INS", label: "Inspected", lane: "check" },
270
+ * { key: "RSD", label: "Resent", lane: "out" },
271
+ * ],
272
+ * links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
273
+ * },
274
+ * }),
275
+ * mutations: (mutation) => ({
276
+ * patch: mutation.patch(),
277
+ * }),
278
+ * });
271
279
  * export const StepTemplate = StructType({ name: StringType, kind: StringType, slots: OptionType(IntegerType) });
272
- * export const stepTemplates = e3.record("flowchart_step_templates", DictType(StringType, StepTemplate), new Map([
273
- * ["ARV", { name: "Arrived", kind: "Intake", slots: none }],
274
- * ["SCN", { name: "Scanned", kind: "Intake", slots: none }],
275
- * ["CH*", { name: "Sort chutes", kind: "Sort", slots: some(12n) }],
276
- * ["HLD", { name: "Held", kind: "Hold", slots: none }],
277
- * ["LDD", { name: "Loaded", kind: "Load", slots: none }],
278
- * ]));
279
- * export const stepsByKind = e3.recordIndex("flowchart_steps_by_kind", stepTemplates, { on: ["kind"] });
280
+ * export const stepTemplates = e3.record("flowchart_step_templates", DictType(StringType, StepTemplate), {
281
+ * initial: new Map([
282
+ * ["ARV", { name: "Arrived", kind: "Intake", slots: none }],
283
+ * ["SCN", { name: "Scanned", kind: "Intake", slots: none }],
284
+ * ["CH*", { name: "Sort chutes", kind: "Sort", slots: some(12n) }],
285
+ * ["HLD", { name: "Held", kind: "Hold", slots: none }],
286
+ * ["LDD", { name: "Loaded", kind: "Load", slots: none }],
287
+ * ]),
288
+ * indexes: (index) => ({
289
+ * flowchart_steps_by_kind: index.on(["kind"]),
290
+ * }),
291
+ * mutations: (mutation) => ({
292
+ * // The step types' patch door: what another writer adds a step type through, the Steps tab's cards following.
293
+ * patch: mutation.patch(),
294
+ * }),
295
+ * });
280
296
  * export const MoveTemplate = StructType({ kind: Flowchart.Types.Kind, decision: OptionType(StringType), note: StringType });
281
- * export const moveTemplates = e3.record("flowchart_move_templates", DictType(StringType, MoveTemplate), new Map([
282
- * ["Observed", { kind: variant("observed", null), decision: none, note: "Mined from the scans" }],
283
- * ["Planned", { kind: variant("planned", null), decision: none, note: "The designed path" }],
284
- * ["Routed", { kind: variant("planned", null), decision: some("route"), note: "Governed by the route decision" }],
285
- * ]));
286
- * export const movesByKind = e3.recordIndex("flowchart_moves_by_kind", moveTemplates, { on: ["kind"] });
297
+ * export const moveTemplates = e3.record("flowchart_move_templates", DictType(StringType, MoveTemplate), {
298
+ * initial: new Map([
299
+ * ["Observed", { kind: variant("observed", null), decision: none, note: "Mined from the scans" }],
300
+ * ["Planned", { kind: variant("planned", null), decision: none, note: "The designed path" }],
301
+ * ["Routed", { kind: variant("planned", null), decision: some("route"), note: "Governed by the route decision" }],
302
+ * ]),
303
+ * indexes: (index) => ({
304
+ * flowchart_moves_by_kind: index.on(["kind"]),
305
+ * }),
306
+ * });
287
307
  * export const DecisionOwner = StructType({ name: StringType, desk: StringType });
288
- * export const decisionOwners = e3.record("flowchart_decision_owners", DictType(StringType, DecisionOwner), new Map([
289
- * ["sort-planner", { name: "Sort planner", desk: "Sort hall" }],
290
- * ["customs-desk", { name: "Customs desk", desk: "Hold bay" }],
291
- * ]));
292
- * export const ownersByDesk = e3.recordIndex("flowchart_owners_by_desk", decisionOwners, { on: ["desk"] });
308
+ * export const decisionOwners = e3.record("flowchart_decision_owners", DictType(StringType, DecisionOwner), {
309
+ * initial: new Map([
310
+ * ["sort-planner", { name: "Sort planner", desk: "Sort hall" }],
311
+ * ["customs-desk", { name: "Customs desk", desk: "Hold bay" }],
312
+ * ]),
313
+ * indexes: (index) => ({
314
+ * flowchart_owners_by_desk: index.on(["desk"]),
315
+ * }),
316
+ * });
293
317
  *
294
318
  * const flowchart = East.function([], UIComponentType, (_$) => (
295
319
  * <Reactive>{$ => {
296
- * const flows = $.let(Record.bind(depotFlows, [depotFlowsPatch]));
320
+ * const flows = $.let(Record.bind(depotFlows));
297
321
  * // What a tab reads whole binds with Data.bind, which keeps it loaded beside its pages.
298
322
  * const steps = $.let(Data.bind(stepTemplates));
299
323
  * const moves = $.let(Data.bind(moveTemplates));
300
324
  * const owners = $.let(Data.bind(decisionOwners));
301
325
  * // One rail over the library's records, a source each (#1346): each tab follows the source it names.
302
326
  * const slice = $.let(Slice.bindRecords("flowchart.depot", {
303
- * steps: { source: Data.bindPaged(stepTemplates, { indexes: [stepsByKind] }), label: "Steps", icon: { prefix: "fas", name: "box" },
327
+ * steps: { source: Data.bindPaged(stepTemplates, { indexes: ["flowchart_steps_by_kind"] }), label: "Steps", icon: { prefix: "fas", name: "box" },
304
328
  * fields: { kind: { label: "Step kind", hints: ["Intake", "Sort", "Hold", "Load"] } } },
305
- * moves: { source: Data.bindPaged(moveTemplates, { indexes: [movesByKind] }), label: "Transitions", icon: { prefix: "fas", name: "arrow-right" },
329
+ * moves: { source: Data.bindPaged(moveTemplates, { indexes: ["flowchart_moves_by_kind"] }), label: "Transitions", icon: { prefix: "fas", name: "arrow-right" },
306
330
  * fields: { kind: { label: "Transition kind" } } },
307
- * owners: { source: Data.bindPaged(decisionOwners, { indexes: [ownersByDesk] }), label: "Owners", icon: { prefix: "fas", name: "user-tie" },
331
+ * owners: { source: Data.bindPaged(decisionOwners, { indexes: ["flowchart_owners_by_desk"] }), label: "Owners", icon: { prefix: "fas", name: "user-tie" },
308
332
  * fields: { desk: { label: "Desk", hints: ["Sort hall", "Hold bay"] } } },
309
333
  * }));
310
334
  * return (