@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
@@ -1 +1 @@
1
- {"version":3,"file":"flowchart.examples.d.ts","sourceRoot":"","sources":["../../../test/flowchart/flowchart.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AACtC,OAAO,EACH,SAAS,EAAe,YAAY,EAAE,QAAQ,EAAQ,SAAS,EAAgB,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAsB,UAAU,EAAE,UAAU,EACvI,OAAO,EAC/B,MAAM,eAAe,CAAC;AAmDvB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EA4BpB,CAAC;AACJ,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EH;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,6CAsB7B,CAAC"}
@@ -53,51 +53,59 @@ import e3 from "@elaraai/e3";
53
53
  // ============================================================================
54
54
  // The depot's flows, by name: each a whole flowchart, written as literals and
55
55
  // checked when the package builds.
56
- export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, Flowchart.values({
57
- "Inbound parcels": {
58
- description: "From the trailer to the van",
59
- lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
60
- states: [
61
- { key: "ARV", label: "Arrived", lane: "intake" },
62
- { key: "SCN", label: "Scanned", lane: "intake" },
63
- { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
64
- { key: "LDD", label: "Loaded", lane: "load" },
65
- ],
66
- links: [
67
- { from: "ARV", to: "SCN" },
68
- { from: "SCN", to: "CH*", trigger: "route" },
69
- { from: "CH*", to: "LDD" },
70
- { from: "SCN", to: "SCN", kind: "observed" },
71
- ],
72
- triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
73
- },
74
- "Returns": {
75
- description: "From the counter back to the sender",
76
- lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
77
- states: [
78
- { key: "RCV", label: "Received", lane: "counter" },
79
- { key: "INS", label: "Inspected", lane: "check" },
80
- { key: "RSD", label: "Resent", lane: "out" },
81
- ],
82
- links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
83
- },
84
- }));
85
- export const depotFlowsPatch = e3.mutation.patch(depotFlows);
56
+ export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, {
57
+ initial: Flowchart.values({
58
+ "Inbound parcels": {
59
+ description: "From the trailer to the van",
60
+ lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
61
+ states: [
62
+ { key: "ARV", label: "Arrived", lane: "intake" },
63
+ { key: "SCN", label: "Scanned", lane: "intake" },
64
+ { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
65
+ { key: "LDD", label: "Loaded", lane: "load" },
66
+ ],
67
+ links: [
68
+ { from: "ARV", to: "SCN" },
69
+ { from: "SCN", to: "CH*", trigger: "route" },
70
+ { from: "CH*", to: "LDD" },
71
+ { from: "SCN", to: "SCN", kind: "observed" },
72
+ ],
73
+ triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
74
+ },
75
+ "Returns": {
76
+ description: "From the counter back to the sender",
77
+ lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
78
+ states: [
79
+ { key: "RCV", label: "Received", lane: "counter" },
80
+ { key: "INS", label: "Inspected", lane: "check" },
81
+ { key: "RSD", label: "Resent", lane: "out" },
82
+ ],
83
+ links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
84
+ },
85
+ }),
86
+ mutations: (mutation) => ({
87
+ patch: mutation.patch(),
88
+ }),
89
+ });
86
90
  // A lone flow, edited on the canvas: a record of flows with one entry, bound
87
91
  // with its patch mutation.
88
- export const collectionFlows = e3.record("flowchart_collection_flows", Flowchart.Types.Flows, Flowchart.values({
89
- "Collections": {
90
- description: "From the booking to the depot's door",
91
- lanes: [{ key: "book", label: "Book" }, { key: "van", label: "Van" }, { key: "depot", label: "Depot" }],
92
- states: [
93
- { key: "BKD", label: "Booked", lane: "book" },
94
- { key: "CLD", label: "Collected", lane: "van" },
95
- { key: "RCV", label: "Received", lane: "depot" },
96
- ],
97
- links: [{ key: "BKD→CLD", from: "BKD", to: "CLD" }, { key: "CLD→RCV", from: "CLD", to: "RCV" }],
98
- },
99
- }));
100
- export const collectionFlowsPatch = e3.mutation.patch(collectionFlows);
92
+ export const collectionFlows = e3.record("flowchart_collection_flows", Flowchart.Types.Flows, {
93
+ initial: Flowchart.values({
94
+ "Collections": {
95
+ description: "From the booking to the depot's door",
96
+ lanes: [{ key: "book", label: "Book" }, { key: "van", label: "Van" }, { key: "depot", label: "Depot" }],
97
+ states: [
98
+ { key: "BKD", label: "Booked", lane: "book" },
99
+ { key: "CLD", label: "Collected", lane: "van" },
100
+ { key: "RCV", label: "Received", lane: "depot" },
101
+ ],
102
+ links: [{ key: "BKD→CLD", from: "BKD", to: "CLD" }, { key: "CLD→RCV", from: "CLD", to: "RCV" }],
103
+ },
104
+ }),
105
+ mutations: (mutation) => ({
106
+ patch: mutation.patch(),
107
+ }),
108
+ });
101
109
  // One flow, for an app that has only one: the host's, read only.
102
110
  export const handoverFlow = e3.input("flowchart_handover", Flowchart.Types.Flow, variant("value", Flowchart.value({
103
111
  description: "From the last scan to the driver's signature",
@@ -121,29 +129,43 @@ export const handoverFlow = e3.input("flowchart_handover", Flowchart.Types.Flow,
121
129
  // of its own, its cards its rows by key, and each indexed on the field the
122
130
  // rail narrows it by.
123
131
  export const StepTemplate = StructType({ name: StringType, kind: StringType, slots: OptionType(IntegerType) });
124
- export const stepTemplates = e3.record("flowchart_step_templates", DictType(StringType, StepTemplate), new Map([
125
- ["ARV", { name: "Arrived", kind: "Intake", slots: none }],
126
- ["SCN", { name: "Scanned", kind: "Intake", slots: none }],
127
- ["CH*", { name: "Sort chutes", kind: "Sort", slots: some(12n) }],
128
- ["HLD", { name: "Held", kind: "Hold", slots: none }],
129
- ["LDD", { name: "Loaded", kind: "Load", slots: none }],
130
- ]));
131
- export const stepsByKind = e3.recordIndex("flowchart_steps_by_kind", stepTemplates, { on: ["kind"] });
132
- /** The step types' patch door: what another writer adds a step type through, the Steps tab's cards following. */
133
- export const stepTemplatesPatch = e3.mutation.patch(stepTemplates);
132
+ export const stepTemplates = e3.record("flowchart_step_templates", DictType(StringType, StepTemplate), {
133
+ initial: new Map([
134
+ ["ARV", { name: "Arrived", kind: "Intake", slots: none }],
135
+ ["SCN", { name: "Scanned", kind: "Intake", slots: none }],
136
+ ["CH*", { name: "Sort chutes", kind: "Sort", slots: some(12n) }],
137
+ ["HLD", { name: "Held", kind: "Hold", slots: none }],
138
+ ["LDD", { name: "Loaded", kind: "Load", slots: none }],
139
+ ]),
140
+ indexes: (index) => ({
141
+ flowchart_steps_by_kind: index.on(["kind"]),
142
+ }),
143
+ mutations: (mutation) => ({
144
+ // The step types' patch door: what another writer adds a step type through, the Steps tab's cards following.
145
+ patch: mutation.patch(),
146
+ }),
147
+ });
134
148
  export const MoveTemplate = StructType({ kind: Flowchart.Types.Kind, decision: OptionType(StringType), note: StringType });
135
- export const moveTemplates = e3.record("flowchart_move_templates", DictType(StringType, MoveTemplate), new Map([
136
- ["Observed", { kind: variant("observed", null), decision: none, note: "Mined from the scans" }],
137
- ["Planned", { kind: variant("planned", null), decision: none, note: "The designed path" }],
138
- ["Routed", { kind: variant("planned", null), decision: some("route"), note: "Governed by the route decision" }],
139
- ]));
140
- export const movesByKind = e3.recordIndex("flowchart_moves_by_kind", moveTemplates, { on: ["kind"] });
149
+ export const moveTemplates = e3.record("flowchart_move_templates", DictType(StringType, MoveTemplate), {
150
+ initial: new Map([
151
+ ["Observed", { kind: variant("observed", null), decision: none, note: "Mined from the scans" }],
152
+ ["Planned", { kind: variant("planned", null), decision: none, note: "The designed path" }],
153
+ ["Routed", { kind: variant("planned", null), decision: some("route"), note: "Governed by the route decision" }],
154
+ ]),
155
+ indexes: (index) => ({
156
+ flowchart_moves_by_kind: index.on(["kind"]),
157
+ }),
158
+ });
141
159
  export const DecisionOwner = StructType({ name: StringType, desk: StringType });
142
- export const decisionOwners = e3.record("flowchart_decision_owners", DictType(StringType, DecisionOwner), new Map([
143
- ["sort-planner", { name: "Sort planner", desk: "Sort hall" }],
144
- ["customs-desk", { name: "Customs desk", desk: "Hold bay" }],
145
- ]));
146
- export const ownersByDesk = e3.recordIndex("flowchart_owners_by_desk", decisionOwners, { on: ["desk"] });
160
+ export const decisionOwners = e3.record("flowchart_decision_owners", DictType(StringType, DecisionOwner), {
161
+ initial: new Map([
162
+ ["sort-planner", { name: "Sort planner", desk: "Sort hall" }],
163
+ ["customs-desk", { name: "Customs desk", desk: "Hold bay" }],
164
+ ]),
165
+ indexes: (index) => ({
166
+ flowchart_owners_by_desk: index.on(["desk"]),
167
+ }),
168
+ });
147
169
  // The depot's own tables (§3.4), each an input of the app's own rows: its
148
170
  // steps by phase, the transitions mined from its scans and its decisions.
149
171
  // `Flowchart.over` builds one flow from them; a task narrows the rows it
@@ -187,7 +209,7 @@ export const flowchartFlows = example({
187
209
  keywords: ["Flowchart", "record", "Flows", "Flowchart.values", "Record.bind", "flow", "many flows", "e3.record", "Flowchart.library.flows", "Flows tab", "New flow"],
188
210
  description: "A record of flows by name — the depot's inbound parcels and its returns — bound with its patch mutation, the inbound flow opened first and the Flows tab listing every flow",
189
211
  fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
190
- const flows = $.let(Record.bind(depotFlows, [depotFlowsPatch]));
212
+ const flows = $.let(Record.bind(depotFlows));
191
213
  return (_jsx(Box, { height: "500px", children: _jsx(Flowchart, { record: flows, flow: "Inbound parcels", library: [Flowchart.library.flows()] }) }));
192
214
  } }))),
193
215
  inputs: [],
@@ -211,7 +233,7 @@ export const flowchartVariants = example({
211
233
  keywords: ["Flowchart", "configurator", "Configurator", "legend", "minimap", "readOnly", "read only", "onSelectState", "onSelectLink", "onSelectTrigger", "onTracePath", "selection", "trace", "callbacks", "data", "onApply", "commit", "requestId", "request id", "Retry", "Record.bind", "commit.patch", "Editing.Types.ApplyResult", "Flows tab", "Flowchart.library.flows", "many flows", "inspector={false}", "library", "Switch", "State", "Reactive"],
212
234
  description: "Flowchart configurator — the legend, the minimap and read only, each expression-fed into one live flowchart in its frame over the host's flows by name (data, from the depot's e3 record), its Flows tab over them, Save committed by the host's onApply through the record's patch mutation under the session's request id, a Retry safe to repeat; onSelectState, onSelectLink, onSelectTrigger and onTracePath heard in the aside, with no inspector",
213
235
  fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
214
- const flows = $.let(Record.bind(depotFlows, [depotFlowsPatch]));
236
+ const flows = $.let(Record.bind(depotFlows));
215
237
  // The host's commit: the open flow's patch through the record's patch mutation under the session's request id, e3's outcome as Save's answer.
216
238
  const onApply = $.const(East.asyncFunction([StringType, PatchType(Flowchart.Types.Flows)], Editing.Types.ApplyResult, ($2, requestId, patch) => {
217
239
  const outcome = $2.let(flows.commit.patch(requestId, patch));
@@ -272,21 +294,21 @@ export const flowchartVariants = example({
272
294
  * click selects a card, and a click on the selected card lets it go.
273
295
  */
274
296
  export const flowchartLibrary = example({
275
- keywords: ["Flowchart", "library", "Flowchart.library.states", "Flowchart.library.transitions", "Flowchart.library.tab", "templates", "state templates", "transition templates", "templates records", "author's tab", "bound data", "Data.bind", "Data.bindPaged", "recordIndex", "Slice.bindRecords", "source", "narrowing", "Record.bind", "drag", "cards", "Flowchart.patch"],
297
+ keywords: ["Flowchart", "library", "Flowchart.library.states", "Flowchart.library.transitions", "Flowchart.library.tab", "templates", "state templates", "transition templates", "templates records", "author's tab", "bound data", "Data.bind", "Data.bindPaged", "indexes", "Slice.bindRecords", "source", "narrowing", "Record.bind", "drag", "cards", "Flowchart.patch"],
276
298
  description: "A record of flows with its library — the Flows tab, step types and transition types from templates records, and the author's own cards from a record of roles — each tab its own bound data, one Slice.bindRecords rail narrowing each through the source it names, each card a drag source a click selects",
277
299
  fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
278
- const flows = $.let(Record.bind(depotFlows, [depotFlowsPatch]));
300
+ const flows = $.let(Record.bind(depotFlows));
279
301
  // What a tab reads whole binds with Data.bind, which keeps it loaded beside its pages.
280
302
  const steps = $.let(Data.bind(stepTemplates));
281
303
  const moves = $.let(Data.bind(moveTemplates));
282
304
  const owners = $.let(Data.bind(decisionOwners));
283
305
  // One rail over the library's records, a source each (#1346): each tab follows the source it names.
284
306
  const slice = $.let(Slice.bindRecords("flowchart.depot", {
285
- steps: { source: Data.bindPaged(stepTemplates, { indexes: [stepsByKind] }), label: "Steps", icon: { prefix: "fas", name: "box" },
307
+ steps: { source: Data.bindPaged(stepTemplates, { indexes: ["flowchart_steps_by_kind"] }), label: "Steps", icon: { prefix: "fas", name: "box" },
286
308
  fields: { kind: { label: "Step kind", hints: ["Intake", "Sort", "Hold", "Load"] } } },
287
- moves: { source: Data.bindPaged(moveTemplates, { indexes: [movesByKind] }), label: "Transitions", icon: { prefix: "fas", name: "arrow-right" },
309
+ moves: { source: Data.bindPaged(moveTemplates, { indexes: ["flowchart_moves_by_kind"] }), label: "Transitions", icon: { prefix: "fas", name: "arrow-right" },
288
310
  fields: { kind: { label: "Transition kind" } } },
289
- owners: { source: Data.bindPaged(decisionOwners, { indexes: [ownersByDesk] }), label: "Owners", icon: { prefix: "fas", name: "user-tie" },
311
+ owners: { source: Data.bindPaged(decisionOwners, { indexes: ["flowchart_owners_by_desk"] }), label: "Owners", icon: { prefix: "fas", name: "user-tie" },
290
312
  fields: { desk: { label: "Desk", hints: ["Sort hall", "Hold bay"] } } },
291
313
  }));
292
314
  return (_jsx(Box, { height: "560px", children: _jsx(Flowchart, { record: flows, flow: "Inbound parcels", name: "depot", slice: { slice }, library: [
@@ -382,7 +404,7 @@ export const flowchartDetail = example({
382
404
  keywords: ["Flowchart", "record", "Record.bind", "one flow", "one entry", "lone flow", "editing", "builder", "Save", "undo", "redo", "history", "+ LANE", "+ STATE", "connect", "canConnect", "Del", "rename", "move", "authoring", "interactive", "edit", "inspector", "Details", "own Details", "update", "one transaction", "state", "transition", "Button", "Issues"],
383
405
  description: "A record's one flow — the collections, from the booking to the depot's door — edited on the canvas: + LANE, lane rename and ×, the + STATE ghost, double-click edit, cross-lane drag, handle-drag connecting and Del, each a draft the history item undoes and Save commits through the record's patch mutation, a canConnect veto keeping transitions out of the booking; and the inspector's own Details by kind — a state's, whose button gives it one more member, and a transition's, whose button marks it observed — each in place of its form, each button's update one transaction",
384
406
  fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
385
- const flows = $.let(Record.bind(collectionFlows, [collectionFlowsPatch]));
407
+ const flows = $.let(Record.bind(collectionFlows));
386
408
  // The connection veto: nothing comes back to the booking, though a
387
409
  // drop on BKD from BKD is its in-place transition.
388
410
  const canConnect = $.const(East.function([StringType, StringType], BooleanType, (_$2, from, to) => East.equal(to, "BKD").not().or(() => East.equal(from, to))));
@@ -412,62 +434,56 @@ export const flowchartDetail = example({
412
434
  });
413
435
  // A network's route flowcharts: enough independent record entries to exercise
414
436
  // multiple pages and eviction. Each entry remains one complete graph.
415
- export const indexedFlows = e3.record("flowchart_indexed_flows", Flowchart.Types.Flows, Flowchart.values(Object.fromEntries(Array.from({ length: 2048 }, (_, i) => {
416
- const checks = [
417
- { key: "CHK", label: "Checked", lane: "review" },
418
- { key: "HLD", label: "Held", lane: "review" },
419
- { key: "REL", label: "Released", lane: "review" },
420
- ].slice(0, i % 4);
421
- const states = [
422
- { key: "ARV", label: "Arrived", lane: "intake" },
423
- { key: "SCN", label: "Scanned", lane: "intake" },
424
- ...checks,
425
- { key: "LDD", label: "Loaded", lane: "dispatch" },
426
- ];
427
- return [`FLOW-${10000 + i}`, {
428
- description: ["Inbound parcels", "Returns", "Collections"][i % 3],
429
- lanes: [{ key: "intake", label: "Intake" },
430
- ...(checks.length ? [{ key: "review", label: "Review" }] : []),
431
- { key: "dispatch", label: "Dispatch" }],
432
- states,
433
- links: states.slice(1).map((state, j) => ({ from: states[j].key, to: state.key,
434
- ...(j === 0 && i % 5 !== 0 ? { trigger: "route" } : {}) })),
435
- triggers: i % 5 === 0 ? [] : [{ key: "route", label: "Route", owner: ["sort-planner", "customs-desk", "shift-lead"][Math.floor(i / 4) % 3] }],
436
- }];
437
- }))));
438
- export const indexedFlowsPatch = e3.mutation.patch(indexedFlows);
439
- // A flow's name is its record's key: an index of its own, so the Flows tab's
440
- // search finds a flow by its name (#1346), alone and after a description.
441
- export const flowsByName = e3.recordIndex("name", indexedFlows, {
442
- key: East.function([StringType, Flowchart.Types.Flow], StringType, (_$, name, _flow) => name),
443
- });
444
- export const flowsByDescription = e3.recordIndex("flowchart_by_description", indexedFlows, { on: ["description"] });
445
- export const flowsByDescriptionName = e3.recordIndex("flowchart_by_description_name", indexedFlows, {
446
- key: East.function([StringType, Flowchart.Types.Flow], StructType({ description: OptionType(StringType), name: StringType }), (_$, name, flow) => ({ description: flow.description, name })),
447
- });
448
- // Slice derives controls from each computed index’s declared key type. Scalar
449
- // keys use the index name; a composite key supplies its field names.
450
- export const flowsByStateCount = e3.recordIndex("stateCount", indexedFlows, {
451
- key: East.function([StringType, Flowchart.Types.Flow], IntegerType, (_$, _id, flow) => flow.states.size()),
452
- });
453
- export const flowsByDescriptionStateCount = e3.recordIndex("flowchart_by_description_state_count", indexedFlows, {
454
- key: East.function([StringType, Flowchart.Types.Flow], StructType({ description: OptionType(StringType), stateCount: IntegerType }), (_$, _id, flow) => ({ description: flow.description, stateCount: flow.states.size() })),
455
- });
456
- export const flowsByLane = e3.recordIndex("lane", indexedFlows, {
457
- keys: East.function([StringType, Flowchart.Types.Flow], SetType(StringType), (_$, _id, flow) => flow.lanes.toSet((_$2, lane) => lane.key)),
458
- });
459
- export const flowsByDecisionOwner = e3.recordIndex("decisionOwner", indexedFlows, {
460
- keys: East.function([StringType, Flowchart.Types.Flow], SetType(OptionType(StringType)), (_$, _id, flow) => flow.triggers.toSet((_$2, trigger) => trigger.owner)),
437
+ export const indexedFlows = e3.record("flowchart_indexed_flows", Flowchart.Types.Flows, {
438
+ initial: Flowchart.values(Object.fromEntries(Array.from({ length: 2048 }, (_, i) => {
439
+ const checks = [
440
+ { key: "CHK", label: "Checked", lane: "review" },
441
+ { key: "HLD", label: "Held", lane: "review" },
442
+ { key: "REL", label: "Released", lane: "review" },
443
+ ].slice(0, i % 4);
444
+ const states = [
445
+ { key: "ARV", label: "Arrived", lane: "intake" },
446
+ { key: "SCN", label: "Scanned", lane: "intake" },
447
+ ...checks,
448
+ { key: "LDD", label: "Loaded", lane: "dispatch" },
449
+ ];
450
+ return [`FLOW-${10000 + i}`, {
451
+ description: ["Inbound parcels", "Returns", "Collections"][i % 3],
452
+ lanes: [{ key: "intake", label: "Intake" },
453
+ ...(checks.length ? [{ key: "review", label: "Review" }] : []),
454
+ { key: "dispatch", label: "Dispatch" }],
455
+ states,
456
+ links: states.slice(1).map((state, j) => ({ from: states[j].key, to: state.key,
457
+ ...(j === 0 && i % 5 !== 0 ? { trigger: "route" } : {}) })),
458
+ triggers: i % 5 === 0 ? [] : [{ key: "route", label: "Route", owner: ["sort-planner", "customs-desk", "shift-lead"][Math.floor(i / 4) % 3] }],
459
+ }];
460
+ }))),
461
+ indexes: (index) => ({
462
+ // A flow's name is its record's key: an index of its own, so the Flows tab's
463
+ // search finds a flow by its name (#1346), alone and after a description.
464
+ name: index.key(East.function([StringType, Flowchart.Types.Flow], StringType, (_$, name, _flow) => name)),
465
+ flowchart_by_description: index.on(["description"]),
466
+ flowchart_by_description_name: index.key(East.function([StringType, Flowchart.Types.Flow], StructType({ description: OptionType(StringType), name: StringType }), (_$, name, flow) => ({ description: flow.description, name }))),
467
+ // Slice derives controls from each computed index’s declared key type. Scalar
468
+ // keys use the index name; a composite key supplies its field names.
469
+ stateCount: index.key(East.function([StringType, Flowchart.Types.Flow], IntegerType, (_$, _id, flow) => flow.states.size())),
470
+ flowchart_by_description_state_count: index.key(East.function([StringType, Flowchart.Types.Flow], StructType({ description: OptionType(StringType), stateCount: IntegerType }), (_$, _id, flow) => ({ description: flow.description, stateCount: flow.states.size() }))),
471
+ lane: index.keys(East.function([StringType, Flowchart.Types.Flow], SetType(StringType), (_$, _id, flow) => flow.lanes.toSet((_$2, lane) => lane.key))),
472
+ decisionOwner: index.keys(East.function([StringType, Flowchart.Types.Flow], SetType(OptionType(StringType)), (_$, _id, flow) => flow.triggers.toSet((_$2, trigger) => trigger.owner))),
473
+ }),
474
+ mutations: (mutation) => ({
475
+ patch: mutation.patch(),
476
+ }),
461
477
  });
462
478
  export const flowchartRecordIndexes = example({
463
- keywords: ["Flowchart", "record", "indexes", "computed indexes", "state count", "lane", "decision owner", "recordIndex", "Slice.bindRecords", "flows", "Data.bindPaged", "paging", "Flows tab", "count", "search", "mobile", "Save"],
479
+ keywords: ["Flowchart", "record", "indexes", "computed indexes", "state count", "lane", "decision owner", "Slice.bindRecords", "flows", "Data.bindPaged", "paging", "Flows tab", "count", "search", "mobile", "Save"],
464
480
  description: "2,048 route flowcharts in a paged record, narrowed through the rail's flows source by maintained indexes on name, description, computed state count, lane and decision owner. Choose an exact description plus a state-count range together; lane and owner use exact membership. The Flows tab pages and counts what the rail narrows to, its search box finds a flow by name within it, and drafts keep their original record ID through filtering and Save.",
465
481
  fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
466
- const flows = $.let(Record.bind(indexedFlows, [indexedFlowsPatch]));
482
+ const flows = $.let(Record.bind(indexedFlows));
467
483
  // One rail over the flows (#1346): its `flows` source narrows the Flows tab, which pages and counts what it narrows to.
468
484
  const slice = $.let(Slice.bindRecords("flowchart.recordIndexes", {
469
485
  flows: {
470
- source: Data.bindPaged(indexedFlows, { indexes: [flowsByName, flowsByDescription, flowsByDescriptionName, flowsByStateCount, flowsByDescriptionStateCount, flowsByLane, flowsByDecisionOwner] }),
486
+ source: Data.bindPaged(indexedFlows, { indexes: ["name", "flowchart_by_description", "flowchart_by_description_name", "stateCount", "flowchart_by_description_state_count", "lane", "decisionOwner"] }),
471
487
  fields: {
472
488
  description: { label: "Flows" },
473
489
  stateCount: { label: "State count" },
@@ -489,4 +505,78 @@ export const flowchartRecordIndexes = example({
489
505
  } }))),
490
506
  inputs: [],
491
507
  });
508
+ // ============================================================================
509
+ // flowchartConflicts — your edits meeting someone else's save
510
+ // ============================================================================
511
+ /** The flows the conflicts example edits, in a record of their own, so no other example's edits meet them. */
512
+ export const conflictFlows = e3.record("flowchart_conflict_flows", Flowchart.Types.Flows, {
513
+ initial: Flowchart.values({
514
+ "Inbound parcels": {
515
+ description: "From the trailer to the van",
516
+ lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
517
+ states: [
518
+ { key: "ARV", label: "Arrived", lane: "intake" },
519
+ { key: "SCN", label: "Scanned", lane: "intake" },
520
+ { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
521
+ { key: "LDD", label: "Loaded", lane: "load" },
522
+ ],
523
+ links: [
524
+ { from: "ARV", to: "SCN" },
525
+ { from: "SCN", to: "CH*", trigger: "route" },
526
+ { from: "CH*", to: "LDD" },
527
+ ],
528
+ triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
529
+ },
530
+ "Returns": {
531
+ description: "From the counter back to the sender",
532
+ lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
533
+ states: [
534
+ { key: "RCV", label: "Received", lane: "counter" },
535
+ { key: "INS", label: "Inspected", lane: "check" },
536
+ { key: "RSD", label: "Resent", lane: "out" },
537
+ ],
538
+ links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }],
539
+ },
540
+ }),
541
+ mutations: (mutation) => ({
542
+ // The flows' patch door — every Save commits through it.
543
+ patch: mutation.patch(),
544
+ // Someone else's save: every step of every flow renamed, " (theirs)" put on its name, or taken off again; its lane
545
+ // and its other fields as they were.
546
+ elsewhere: mutation.reduce(East.function([Flowchart.Types.Flows], Flowchart.Types.Flows, (_$, flows) => flows.map((_$2, flow) => ({
547
+ description: flow.description,
548
+ lanes: flow.lanes,
549
+ states: flow.states.map(($3, state) => {
550
+ const named = $3.let(state.label.match({ some: (_$4, label) => label, none: (_$4) => state.key }));
551
+ return {
552
+ key: state.key,
553
+ label: East.value(some(named.endsWith(" (theirs)").ifElse(() => named.replace(" (theirs)", ""), () => named.concat(" (theirs)"))), OptionType(StringType)),
554
+ lane: state.lane,
555
+ members: state.members,
556
+ notes: state.notes,
557
+ };
558
+ }),
559
+ links: flow.links,
560
+ triggers: flow.triggers,
561
+ })))),
562
+ }),
563
+ });
564
+ /**
565
+ * Your edits meeting someone else's save, in one window: edit, then press
566
+ * Someone else saves, which saves another person's change to the same flows —
567
+ * every step renamed. A step you renamed too is a conflict, waiting for you to
568
+ * choose; a step you moved to another lane combines with theirs. Each press
569
+ * saves their change again.
570
+ */
571
+ export const flowchartConflicts = example({
572
+ keywords: ["Flowchart", "conflict", "conflicts", "combine", "someone else", "Choose", "rename", "step", "Record.bind", "mutate", "Button", "Save"],
573
+ description: "Your edits meeting someone else's save, in one window — rename a step, then press Someone else saves, which saves another person's change to the same flows (every step renamed, \"(theirs)\" put on its name or taken off), so yours conflict and wait to be chosen; a step moved to another lane combines with theirs",
574
+ fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
575
+ const flows = $.let(Record.bind(conflictFlows, ["patch"]));
576
+ const others = $.let(Record.bind(conflictFlows, ["elsewhere"]));
577
+ const theirs = $.const(East.function([], NullType, ($) => { $(others.mutate.elsewhere()); }));
578
+ return (_jsxs(VStack, { gap: "3", align: "stretch", children: [_jsxs(HStack, { gap: "3", children: [_jsx(Button, { variant: "outline", onClick: theirs, loading: others.mutate.pending(), children: "Someone else saves" }), _jsx(Text, { color: "fg.muted", children: "Their change: every step renamed" })] }), _jsx(Box, { height: "500px", children: _jsx(Flowchart, { name: "conflicts", record: flows, flow: "Inbound parcels", library: [Flowchart.library.flows()] }) })] }));
579
+ } }))),
580
+ inputs: [],
581
+ });
492
582
  //# sourceMappingURL=flowchart.examples.js.map