@elaraai/e3-ui 1.0.93 → 1.0.95

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 (303) hide show
  1. package/dist/src/allocation/adapters.d.ts +159 -0
  2. package/dist/src/allocation/adapters.d.ts.map +1 -0
  3. package/dist/src/allocation/adapters.js +241 -0
  4. package/dist/src/allocation/adapters.js.map +1 -0
  5. package/dist/src/allocation/functions.d.ts +664 -0
  6. package/dist/src/allocation/functions.d.ts.map +1 -0
  7. package/dist/src/allocation/functions.js +782 -0
  8. package/dist/src/allocation/functions.js.map +1 -0
  9. package/dist/src/allocation/index.d.ts +2985 -0
  10. package/dist/src/allocation/index.d.ts.map +1 -0
  11. package/dist/src/allocation/index.js +499 -0
  12. package/dist/src/allocation/index.js.map +1 -0
  13. package/dist/src/allocation/types.d.ts +832 -0
  14. package/dist/src/allocation/types.d.ts.map +1 -0
  15. package/dist/src/allocation/types.js +360 -0
  16. package/dist/src/allocation/types.js.map +1 -0
  17. package/dist/src/bind/func.d.ts +14 -0
  18. package/dist/src/bind/func.d.ts.map +1 -1
  19. package/dist/src/bind/func.js +22 -1
  20. package/dist/src/bind/func.js.map +1 -1
  21. package/dist/src/calendar/index.d.ts +510 -1639
  22. package/dist/src/calendar/index.d.ts.map +1 -1
  23. package/dist/src/calendar/index.js +56 -29
  24. package/dist/src/calendar/index.js.map +1 -1
  25. package/dist/src/flowchart/canvas.d.ts +9 -21
  26. package/dist/src/flowchart/canvas.d.ts.map +1 -1
  27. package/dist/src/flowchart/canvas.js +10 -22
  28. package/dist/src/flowchart/canvas.js.map +1 -1
  29. package/dist/src/flowchart/flowchart.d.ts +19 -13
  30. package/dist/src/flowchart/flowchart.d.ts.map +1 -1
  31. package/dist/src/flowchart/flowchart.js.map +1 -1
  32. package/dist/src/flowchart/index.d.ts +44 -21
  33. package/dist/src/flowchart/index.d.ts.map +1 -1
  34. package/dist/src/flowchart/index.js +43 -20
  35. package/dist/src/flowchart/index.js.map +1 -1
  36. package/dist/src/flowchart/library.d.ts +166 -81
  37. package/dist/src/flowchart/library.d.ts.map +1 -1
  38. package/dist/src/flowchart/library.js +232 -105
  39. package/dist/src/flowchart/library.js.map +1 -1
  40. package/dist/src/flowchart/over.d.ts +9 -16
  41. package/dist/src/flowchart/over.d.ts.map +1 -1
  42. package/dist/src/flowchart/over.js +9 -16
  43. package/dist/src/flowchart/over.js.map +1 -1
  44. package/dist/src/flowchart/payload.d.ts +710 -508
  45. package/dist/src/flowchart/payload.d.ts.map +1 -1
  46. package/dist/src/flowchart/payload.js +128 -74
  47. package/dist/src/flowchart/payload.js.map +1 -1
  48. package/dist/src/flowchart/window.d.ts +132 -347
  49. package/dist/src/flowchart/window.d.ts.map +1 -1
  50. package/dist/src/flowchart/window.js +48 -55
  51. package/dist/src/flowchart/window.js.map +1 -1
  52. package/dist/src/index.d.ts +11 -7
  53. package/dist/src/index.d.ts.map +1 -1
  54. package/dist/src/index.js +14 -6
  55. package/dist/src/index.js.map +1 -1
  56. package/dist/src/internal.d.ts +18 -7
  57. package/dist/src/internal.d.ts.map +1 -1
  58. package/dist/src/internal.js +28 -9
  59. package/dist/src/internal.js.map +1 -1
  60. package/dist/src/plan/event-rows.d.ts +26 -10
  61. package/dist/src/plan/event-rows.d.ts.map +1 -1
  62. package/dist/src/plan/event-rows.js +39 -13
  63. package/dist/src/plan/event-rows.js.map +1 -1
  64. package/dist/src/plan/ir.d.ts +244 -815
  65. package/dist/src/plan/ir.d.ts.map +1 -1
  66. package/dist/src/plan/ir.js +8 -6
  67. package/dist/src/plan/ir.js.map +1 -1
  68. package/dist/src/plan/library.d.ts +3 -0
  69. package/dist/src/plan/library.d.ts.map +1 -1
  70. package/dist/src/plan/library.js +1 -1
  71. package/dist/src/plan/library.js.map +1 -1
  72. package/dist/src/plan/ordered-source.d.ts +1 -0
  73. package/dist/src/plan/ordered-source.d.ts.map +1 -1
  74. package/dist/src/plan/plan.d.ts +559 -1667
  75. package/dist/src/plan/plan.d.ts.map +1 -1
  76. package/dist/src/plan/plan.js +123 -45
  77. package/dist/src/plan/plan.js.map +1 -1
  78. package/dist/src/plan/root.d.ts +16 -20
  79. package/dist/src/plan/root.d.ts.map +1 -1
  80. package/dist/src/plan/root.js +23 -33
  81. package/dist/src/plan/root.js.map +1 -1
  82. package/dist/src/roster/coverage.d.ts +17 -231
  83. package/dist/src/roster/coverage.d.ts.map +1 -1
  84. package/dist/src/roster/coverage.js +94 -90
  85. package/dist/src/roster/coverage.js.map +1 -1
  86. package/dist/src/roster/fit.d.ts +59 -0
  87. package/dist/src/roster/fit.d.ts.map +1 -0
  88. package/dist/src/roster/fit.js +155 -0
  89. package/dist/src/roster/fit.js.map +1 -0
  90. package/dist/src/roster/index.d.ts +2862 -3662
  91. package/dist/src/roster/index.d.ts.map +1 -1
  92. package/dist/src/roster/index.js +383 -81
  93. package/dist/src/roster/index.js.map +1 -1
  94. package/dist/src/roster/library.d.ts +37 -92
  95. package/dist/src/roster/library.d.ts.map +1 -1
  96. package/dist/src/roster/library.js +25 -64
  97. package/dist/src/roster/library.js.map +1 -1
  98. package/dist/src/roster/lists.d.ts +195 -0
  99. package/dist/src/roster/lists.d.ts.map +1 -0
  100. package/dist/src/roster/lists.js +233 -0
  101. package/dist/src/roster/lists.js.map +1 -0
  102. package/dist/src/roster/rules.d.ts +17 -260
  103. package/dist/src/roster/rules.d.ts.map +1 -1
  104. package/dist/src/roster/rules.js +135 -132
  105. package/dist/src/roster/rules.js.map +1 -1
  106. package/dist/src/roster/targets.d.ts +115 -0
  107. package/dist/src/roster/targets.d.ts.map +1 -0
  108. package/dist/src/roster/targets.js +213 -0
  109. package/dist/src/roster/targets.js.map +1 -0
  110. package/dist/src/roster/times.d.ts +251 -0
  111. package/dist/src/roster/times.d.ts.map +1 -0
  112. package/dist/src/roster/times.js +174 -0
  113. package/dist/src/roster/times.js.map +1 -0
  114. package/dist/src/roster/types.d.ts +828 -183
  115. package/dist/src/roster/types.d.ts.map +1 -1
  116. package/dist/src/roster/types.js +224 -97
  117. package/dist/src/roster/types.js.map +1 -1
  118. package/dist/src/schedule/accessor.d.ts +28 -0
  119. package/dist/src/schedule/accessor.d.ts.map +1 -0
  120. package/dist/src/schedule/accessor.js +39 -0
  121. package/dist/src/schedule/accessor.js.map +1 -0
  122. package/dist/src/schedule/events.d.ts +170 -42
  123. package/dist/src/schedule/events.d.ts.map +1 -1
  124. package/dist/src/schedule/events.js +431 -171
  125. package/dist/src/schedule/events.js.map +1 -1
  126. package/dist/src/schedule/index.d.ts +41 -4
  127. package/dist/src/schedule/index.d.ts.map +1 -1
  128. package/dist/src/schedule/index.js +35 -3
  129. package/dist/src/schedule/index.js.map +1 -1
  130. package/dist/src/schedule/library.d.ts +13 -3
  131. package/dist/src/schedule/library.d.ts.map +1 -1
  132. package/dist/src/schedule/library.js +11 -4
  133. package/dist/src/schedule/library.js.map +1 -1
  134. package/dist/src/schedule/periods.d.ts +115 -0
  135. package/dist/src/schedule/periods.d.ts.map +1 -0
  136. package/dist/src/schedule/periods.js +215 -0
  137. package/dist/src/schedule/periods.js.map +1 -0
  138. package/dist/src/schedule/record-window.d.ts +25 -3
  139. package/dist/src/schedule/record-window.d.ts.map +1 -1
  140. package/dist/src/schedule/record-window.js +31 -18
  141. package/dist/src/schedule/record-window.js.map +1 -1
  142. package/dist/src/schedule/resources.d.ts +82 -4
  143. package/dist/src/schedule/resources.d.ts.map +1 -1
  144. package/dist/src/schedule/resources.js +44 -14
  145. package/dist/src/schedule/resources.js.map +1 -1
  146. package/dist/src/schedule/session.d.ts +69 -0
  147. package/dist/src/schedule/session.d.ts.map +1 -0
  148. package/dist/src/schedule/session.js +121 -0
  149. package/dist/src/schedule/session.js.map +1 -0
  150. package/dist/src/schedule/templates.d.ts +14 -2
  151. package/dist/src/schedule/templates.d.ts.map +1 -1
  152. package/dist/src/schedule/templates.js +5 -3
  153. package/dist/src/schedule/templates.js.map +1 -1
  154. package/dist/src/schedule/types.d.ts +1671 -37
  155. package/dist/src/schedule/types.d.ts.map +1 -1
  156. package/dist/src/schedule/types.js +196 -5
  157. package/dist/src/schedule/types.js.map +1 -1
  158. package/dist/src/schedule/window.d.ts +14 -0
  159. package/dist/src/schedule/window.d.ts.map +1 -1
  160. package/dist/src/schedule/window.js +14 -4
  161. package/dist/src/schedule/window.js.map +1 -1
  162. package/dist/src/schedule/words.d.ts +22 -0
  163. package/dist/src/schedule/words.d.ts.map +1 -0
  164. package/dist/src/schedule/words.js +25 -0
  165. package/dist/src/schedule/words.js.map +1 -0
  166. package/dist/src/sheet/index.d.ts +61 -27
  167. package/dist/src/sheet/index.d.ts.map +1 -1
  168. package/dist/src/sheet/index.js +59 -25
  169. package/dist/src/sheet/index.js.map +1 -1
  170. package/dist/src/sheet/library.d.ts +21 -3
  171. package/dist/src/sheet/library.d.ts.map +1 -1
  172. package/dist/src/sheet/library.js +23 -6
  173. package/dist/src/sheet/library.js.map +1 -1
  174. package/dist/src/sheet/registers.d.ts +100 -85
  175. package/dist/src/sheet/registers.d.ts.map +1 -1
  176. package/dist/src/sheet/registers.js +100 -85
  177. package/dist/src/sheet/registers.js.map +1 -1
  178. package/dist/src/sheet/root.d.ts +8 -12
  179. package/dist/src/sheet/root.d.ts.map +1 -1
  180. package/dist/src/sheet/root.js +6 -40
  181. package/dist/src/sheet/root.js.map +1 -1
  182. package/dist/src/sheet/sheet.d.ts +598 -2349
  183. package/dist/src/sheet/sheet.d.ts.map +1 -1
  184. package/dist/src/sheet/sheet.js +124 -37
  185. package/dist/src/sheet/sheet.js.map +1 -1
  186. package/dist/src/sheet/sub-rows.d.ts +74 -28
  187. package/dist/src/sheet/sub-rows.d.ts.map +1 -1
  188. package/dist/src/sheet/sub-rows.js +74 -28
  189. package/dist/src/sheet/sub-rows.js.map +1 -1
  190. package/dist/src/sheet/templates.d.ts +98 -34
  191. package/dist/src/sheet/templates.d.ts.map +1 -1
  192. package/dist/src/sheet/templates.js +102 -58
  193. package/dist/src/sheet/templates.js.map +1 -1
  194. package/dist/src/sheet/types.d.ts +289 -1359
  195. package/dist/src/sheet/types.d.ts.map +1 -1
  196. package/dist/src/sheet/types.js +20 -26
  197. package/dist/src/sheet/types.js.map +1 -1
  198. package/dist/src/sheet/views.d.ts +10 -11
  199. package/dist/src/sheet/views.d.ts.map +1 -1
  200. package/dist/src/sheet/views.js +15 -20
  201. package/dist/src/sheet/views.js.map +1 -1
  202. package/dist/src/{roster/visibility.d.ts → utils/key-visibility.d.ts} +42 -7
  203. package/dist/src/utils/key-visibility.d.ts.map +1 -0
  204. package/dist/src/utils/key-visibility.js +36 -0
  205. package/dist/src/utils/key-visibility.js.map +1 -0
  206. package/dist/src/utils/ordered-source.d.ts +1 -0
  207. package/dist/src/utils/ordered-source.d.ts.map +1 -1
  208. package/dist/src/utils/ordered-source.js +8 -3
  209. package/dist/src/utils/ordered-source.js.map +1 -1
  210. package/dist/src/utils/record-sources.d.ts +107 -0
  211. package/dist/src/utils/record-sources.d.ts.map +1 -0
  212. package/dist/src/utils/record-sources.js +132 -0
  213. package/dist/src/utils/record-sources.js.map +1 -0
  214. package/dist/test/allocation/allocation.examples.d.ts +2902 -0
  215. package/dist/test/allocation/allocation.examples.d.ts.map +1 -0
  216. package/dist/test/allocation/allocation.examples.js +643 -0
  217. package/dist/test/allocation/allocation.examples.js.map +1 -0
  218. package/dist/test/allocation/fit.examples.d.ts +546 -0
  219. package/dist/test/allocation/fit.examples.d.ts.map +1 -0
  220. package/dist/test/allocation/fit.examples.js +171 -0
  221. package/dist/test/allocation/fit.examples.js.map +1 -0
  222. package/dist/test/allocation/kiln-yard.d.ts +181 -0
  223. package/dist/test/allocation/kiln-yard.d.ts.map +1 -0
  224. package/dist/test/allocation/kiln-yard.js +228 -0
  225. package/dist/test/allocation/kiln-yard.js.map +1 -0
  226. package/dist/test/bind/data/data.examples.d.ts +651 -1
  227. package/dist/test/bind/data/data.examples.d.ts.map +1 -1
  228. package/dist/test/bind/data/data.examples.js +140 -2
  229. package/dist/test/bind/data/data.examples.js.map +1 -1
  230. package/dist/test/bind/func/func.examples.d.ts +10 -1
  231. package/dist/test/bind/func/func.examples.d.ts.map +1 -1
  232. package/dist/test/bind/func/func.examples.js +8 -1
  233. package/dist/test/bind/func/func.examples.js.map +1 -1
  234. package/dist/test/bind/record/record.examples.d.ts +633 -1
  235. package/dist/test/bind/record/record.examples.d.ts.map +1 -1
  236. package/dist/test/bind/record/record.examples.js +26 -2
  237. package/dist/test/bind/record/record.examples.js.map +1 -1
  238. package/dist/test/calendar/calendar-records.examples.d.ts.map +1 -1
  239. package/dist/test/calendar/calendar-records.examples.js +18 -14
  240. package/dist/test/calendar/calendar-records.examples.js.map +1 -1
  241. package/dist/test/calendar/calendar.examples.d.ts +521 -16
  242. package/dist/test/calendar/calendar.examples.d.ts.map +1 -1
  243. package/dist/test/calendar/calendar.examples.js +182 -135
  244. package/dist/test/calendar/calendar.examples.js.map +1 -1
  245. package/dist/test/examples-package.d.ts +75 -0
  246. package/dist/test/examples-package.d.ts.map +1 -0
  247. package/dist/test/examples-package.js +263 -0
  248. package/dist/test/examples-package.js.map +1 -0
  249. package/dist/test/flowchart/flowchart.examples.d.ts +211 -19
  250. package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -1
  251. package/dist/test/flowchart/flowchart.examples.js +102 -75
  252. package/dist/test/flowchart/flowchart.examples.js.map +1 -1
  253. package/dist/test/plan/plan-events.examples.d.ts +1439 -209
  254. package/dist/test/plan/plan-events.examples.d.ts.map +1 -1
  255. package/dist/test/plan/plan-events.examples.js +199 -59
  256. package/dist/test/plan/plan-events.examples.js.map +1 -1
  257. package/dist/test/plan/plan-records.examples.d.ts +420 -0
  258. package/dist/test/plan/plan-records.examples.d.ts.map +1 -1
  259. package/dist/test/plan/plan-records.examples.js +70 -19
  260. package/dist/test/plan/plan-records.examples.js.map +1 -1
  261. package/dist/test/plan/plan-windows.examples.d.ts +636 -55
  262. package/dist/test/plan/plan-windows.examples.d.ts.map +1 -1
  263. package/dist/test/plan/plan-windows.examples.js +69 -33
  264. package/dist/test/plan/plan-windows.examples.js.map +1 -1
  265. package/dist/test/plan/plan.examples.d.ts +153 -31
  266. package/dist/test/plan/plan.examples.d.ts.map +1 -1
  267. package/dist/test/plan/plan.examples.js +178 -101
  268. package/dist/test/plan/plan.examples.js.map +1 -1
  269. package/dist/test/roster/domain.examples.d.ts +467 -250
  270. package/dist/test/roster/domain.examples.d.ts.map +1 -1
  271. package/dist/test/roster/domain.examples.js +92 -29
  272. package/dist/test/roster/domain.examples.js.map +1 -1
  273. package/dist/test/roster/roster-records.examples.d.ts +430 -586
  274. package/dist/test/roster/roster-records.examples.d.ts.map +1 -1
  275. package/dist/test/roster/roster-records.examples.js +102 -43
  276. package/dist/test/roster/roster-records.examples.js.map +1 -1
  277. package/dist/test/roster/roster.examples.d.ts +2319 -606
  278. package/dist/test/roster/roster.examples.d.ts.map +1 -1
  279. package/dist/test/roster/roster.examples.js +456 -148
  280. package/dist/test/roster/roster.examples.js.map +1 -1
  281. package/dist/test/roster/warehouse.d.ts +172 -63
  282. package/dist/test/roster/warehouse.d.ts.map +1 -1
  283. package/dist/test/roster/warehouse.js +172 -39
  284. package/dist/test/roster/warehouse.js.map +1 -1
  285. package/dist/test/schedule/schedule.examples.d.ts +3499 -0
  286. package/dist/test/schedule/schedule.examples.d.ts.map +1 -0
  287. package/dist/test/schedule/schedule.examples.js +192 -0
  288. package/dist/test/schedule/schedule.examples.js.map +1 -0
  289. package/dist/test/sheet/sheet-records.examples.d.ts.map +1 -1
  290. package/dist/test/sheet/sheet-records.examples.js +22 -18
  291. package/dist/test/sheet/sheet-records.examples.js.map +1 -1
  292. package/dist/test/sheet/sheet.examples.d.ts +715 -26
  293. package/dist/test/sheet/sheet.examples.d.ts.map +1 -1
  294. package/dist/test/sheet/sheet.examples.js +204 -130
  295. package/dist/test/sheet/sheet.examples.js.map +1 -1
  296. package/package.json +17 -10
  297. package/dist/src/roster/people.d.ts +0 -50
  298. package/dist/src/roster/people.d.ts.map +0 -1
  299. package/dist/src/roster/people.js +0 -32
  300. package/dist/src/roster/people.js.map +0 -1
  301. package/dist/src/roster/visibility.d.ts.map +0 -1
  302. package/dist/src/roster/visibility.js +0 -25
  303. package/dist/src/roster/visibility.js.map +0 -1
@@ -18,8 +18,11 @@
18
18
  * - `patch.ts` — `Flowchart.patch`, a patch over one of a flow's rows.
19
19
  * - `library.ts` — `Flowchart.library`, the library pane's tabs — the Flows
20
20
  * tab, the state and transition templates and the author's tabs, each
21
- * reading its own rows — and their wire.
21
+ * reading its own rows and following the source of the slice it names —
22
+ * and their wire.
22
23
  * - `canvas.ts` — the canvas: what the flowchart draws its flow with.
24
+ * - `window.ts` — the `flows` source of its slice: the Flows tab's pages, a
25
+ * flow read by its name, and the tab's own search (#1346).
23
26
  * - `payload.ts` — the payload, its carrier, the shared keys, the props and
24
27
  * their refusals.
25
28
  * - `flowchart.ts` — the tag.
@@ -38,7 +41,7 @@ export { FlowchartTag } from "./flowchart.js";
38
41
  export { FlowchartCanvasType, buildCanvas, } from "./canvas.js";
39
42
  export { flowchartOver, } from "./over.js";
40
43
  export { FlowchartPatchTypeFor, flowchartPatch } from "./patch.js";
41
- export { FlowchartCardType, FlowchartDecisionCardType, FlowchartLandsType, FlowchartLaneCardType, FlowchartLibraryFactories, FlowchartLibraryTabType, FlowchartStateCardType, FlowchartTransitionCardType, libraryFlows, libraryStates, libraryTab, libraryTransitions, } from "./library.js";
44
+ export { FlowchartCardType, FlowchartDecisionCardType, FlowchartLandsType, FlowchartLaneCardType, FlowchartLibraryFactories, FlowchartLibraryTabType, FlowchartStateCardType, FlowchartTransitionCardType, buildLibrary as buildFlowchartLibrary, libraryFlows, libraryStates, libraryTab, libraryTransitions, } from "./library.js";
42
45
  export { FlowchartComponent, FlowchartDataType, FlowchartFlowApplyType, FlowchartFlowsApplyType, FlowchartFlowsHandleType, FlowchartHistoryType, FlowchartInspectorType, FlowchartPayloadType, FlowchartSessionApplyType, FlowchartSourceType, createFlowchartPayload, flowchartKeys, } from "./payload.js";
43
46
  export { flowchartValue, flowchartValues, } from "./values.js";
44
47
  /** The East types a flowchart is written with. */
@@ -74,12 +77,12 @@ const MEMBERS = {
74
77
  *
75
78
  * @remarks
76
79
  * - **Its frame**: it renders in its builder frame wherever it is used — one
77
- * toolbar (find state, LR · TD, the freshness chip and, over `data`, the
78
- * slice's rail; over a record, the history item), the canvas filling main
79
- * and scrolling both ways inside it, and the footer's counts; a library pane
80
- * when `library` lists tabs, and the inspector pane unless
81
- * `inspector={false}`. It fills the box it is given and draws no border:
82
- * give it a box of its own height.
80
+ * toolbar (find state, LR · TD, the freshness chip, the slice's rail and,
81
+ * where it edits, the history item), the canvas filling main and scrolling
82
+ * both ways inside it, and the footer's counts; a library pane when
83
+ * `library` lists tabs, and the inspector pane unless `inspector={false}`.
84
+ * It fills the box it is given and draws no border: give it a box of its
85
+ * own height.
83
86
  * - **Its inspector** (#1250, on by default, ruled by the user on
84
87
  * 2026-10-08): the end pane, Details and Issues — Issues with its count, and
85
88
  * collapsed a rail with its icon and the issue count. Details shows what is
@@ -117,10 +120,14 @@ const MEMBERS = {
117
120
  * (`Flowchart.library.states(rows, …)`) and transition templates
118
121
  * (`Flowchart.library.transitions(rows, …)`), each card a drag source; and
119
122
  * the author's own cards (`Flowchart.library.tab(rows, …)`), a drag source
120
- * when the tab declares a `drop`. Each data tab reads its own rows — an
121
- * input's or a record's, an Array or a `Dict<String, T>` — apart from the
122
- * flows and from the other tabs. A click selects a card, and a click on the
123
- * selected card lets it go; an empty tab says so in the shared empty state.
123
+ * when the tab declares a `drop`. Each data tab reads its own rows apart
124
+ * from the flows and from the other tabs. Templates are records (#1340,
125
+ * ruling 9): each list's rows are its record's (`Data.bind(record).read()`,
126
+ * a `Dict<String, T>`), and it names its `source` of the slice. An author's
127
+ * tab reads an Array or a `Dict<String, T>`, and naming a `source` follows
128
+ * it. A click selects a card, and a click on the selected card lets it go;
129
+ * an empty tab says so in the shared empty state, and one the rail leaves
130
+ * none says so, with a Clear.
124
131
  * - **Its drops** (#1249): a card carried onto the canvas lands where its tab
125
132
  * says — a state template on a lane, adding a state at the row under the
126
133
  * pointer, its key the drop's, made unique or minted; a transition template
@@ -150,8 +157,17 @@ const MEMBERS = {
150
157
  * is a record of one entry. Or they are the host's (`data`): flows by name
151
158
  * or one flow — a value, an expression or a bind handle — the value's type
152
159
  * picking the arm, one prop taking either; `Flowchart.over` builds one flow
153
- * from the host's own tables through their row mappers, and `slice`
154
- * narrows what it builds.
160
+ * from the host's own tables through their row mappers. The host's flows
161
+ * are never narrowed: a task narrows the rows it builds them from.
162
+ * - **Its narrowing** (#1346) is one `Slice.bindRecords`, `slice={{ slice:
163
+ * Slice.bindRecords(key, { flows, … }) }}`, its rail on the toolbar. Over a
164
+ * record, its `flows` source — `Data.bindPaged(record, { indexes })` over
165
+ * the same record, its `fields` the indexes' — narrows the Flows tab, which
166
+ * pages it a window at a time with its count, the tab's own search finding
167
+ * within the narrowing by the source's `search` fields; the open flow is
168
+ * read by its name whatever the narrowing, and keeps its drafts. Each other
169
+ * source narrows the templates list or the author's tab that names it, by
170
+ * its cards' keys.
155
171
  * - **A dataset's value** is written as literals with `Flowchart.values`
156
172
  * (flows by name) or `Flowchart.value` (one flow), checked when the package
157
173
  * builds.
@@ -159,11 +175,16 @@ const MEMBERS = {
159
175
  * `onSelectTrigger`) and a traced path (`onTracePath`), and vetoes a
160
176
  * connection with `canConnect`.
161
177
  * - **Refused when the surface is built**, each naming the prop and the
162
- * remedy: flows from both `record` and `data`, or neither; `onApply`,
163
- * `slice` or `affordances` over a record; `flow` over one flow; a record of
164
- * one flow, or of another type, or not bound with its patch mutation;
165
- * `"brush"` among the affordances; `height` or `maxHeight`, which the box
166
- * it fills sets; `density`, which nothing drew by — the canvas draws at one
178
+ * remedy: flows from both `record` and `data`, or neither; `onApply` over a
179
+ * record; `window`, which the slice's `flows` source replaced; a `slice`
180
+ * that is not `{ slice }` — the bare handle a flow from the host's tables
181
+ * was narrowed by — or not `Slice.bindRecords` (`Slice.bind`,
182
+ * `Slice.bindRecord`), or holding a source nothing names; a `flows` source
183
+ * over `data`; `affordances` outside `slice`; a templates list written in
184
+ * the code, naming no source, or naming `flows`, and the two lists naming
185
+ * one source; `flow` over one flow; a record of one flow, or of another
186
+ * type, or not bound with its patch mutation; `"brush"` among the
187
+ * affordances; `height` or `maxHeight`, which the box it fills sets; `density`, which nothing drew by — the canvas draws at one
167
188
  * rhythm, the spec's 116×40 cards in their lanes (#1251); a callback for an
168
189
  * edit (`onAddState`, `onCreateLink`, …)
169
190
  * or `linkMode`, which the session's gestures replace; a hover card's
@@ -173,7 +194,9 @@ const MEMBERS = {
173
194
  * another type than `(Row, (Row) => Null) => UIComponentType`; a library
174
195
  * that lists a tab twice — the Flows tab or a template tab, or two of the
175
196
  * author's tabs of one name — or the Flows tab over one flow; a data tab
176
- * whose rows are neither an Array nor a `Dict<String, T>`; a `states` drop
197
+ * whose rows are neither an Array nor a `Dict<String, T>`, or a templates
198
+ * list's or a sourced tab's that are no `Dict<String, T>`; a tab's source
199
+ * the slice lacks; a `states` drop
177
200
  * over another type than a state's patch, a `transitions` drop over another
178
201
  * than a transition's, and a `tab` drop over none of a flow's row types.
179
202
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/flowchart/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,YAAY,EAAyB,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACH,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,EAClB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,GAE9B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,cAAc,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AAE,uBAAuB;QACnC,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,iBAAiB;QACvB,SAAS,EAAE,sBAAsB;QACjC,cAAc,EAAE,2BAA2B;QAC3C,QAAQ,EAAE,qBAAqB;QAC/B,YAAY,EAAE,yBAAyB;KAC1C;CACJ,CAAC,CAAC"}
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,EACzB,kBAAkB,EAClB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,GAE9B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EACH,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,GACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EACH,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,GACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAyB,MAAM,gBAAgB,CAAC;AACrE,OAAO,EACH,mBAAmB,EACnB,WAAW,GAId,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,aAAa,GAShB,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0LG;AACH,MAAM,CAAC,MAAM,SAAS,GAAuB,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AA6ClF,mJAAmJ;AACnJ,SAAS,oBAAoB,CAAC,KAAa;IACvC,OAAQ,YAA4D,CAAC,KAAK,CAAC,CAAC;AAChF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA+B,MAAM,CAAC,MAAM,CAAC,oBAAwC,EAAE,OAAO,EAAE;IAC1H,OAAO,EAAE,sBAAsB;IAC/B,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE;QACH,GAAG,KAAK;QACR,OAAO,EAAE,oBAAoB;QAC7B,MAAM,EAAE,mBAAmB;QAC3B,MAAM,EAAE,mBAAmB;QAC3B,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,wBAAwB;QACrC,YAAY,EAAE,yBAAyB;QACvC,SAAS,EAAE,sBAAsB;QACjC,UAAU,EAAE,uBAAuB;QACnC,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,iBAAiB;QACvB,SAAS,EAAE,sBAAsB;QACjC,cAAc,EAAE,2BAA2B;QAC3C,QAAQ,EAAE,qBAAqB;QAC/B,YAAY,EAAE,yBAAyB;KAC1C;CACJ,CAAC,CAAC"}
@@ -22,18 +22,26 @@
22
22
  * transition, a lane's header or a decision's diamond.
23
23
  *
24
24
  * Each data tab takes its own bound data (the user, 2026-10-08), apart from
25
- * the flows and from the other tabs: its rows are an `Array<T>` or a
26
- * `Dict<String, T>` the app binds — a value, or an expression such as a
27
- * binding's `read()` — read as `Sheet.library.tab` reads its rows: its
28
- * accessors `(row, key) => …` reified once into a describe function the rows'
29
- * map then calls, a Dict's key the second argument and an Array's index,
30
- * printed, in its place; a key that repeats keeps its first card. A card
31
- * crosses the closed payload as the fields its drop sets, typed by the row it
32
- * lands on — a flow's rows are the flowchart's own types. Dropped on the
33
- * canvas (#1249), a state template adds a state where it lands on a lane, a
34
- * transition template retypes the transition it lands on, and an author's card
35
- * sets its fields on what its drop's type names; ⏎ on a card drops it on the
36
- * canvas's selection.
25
+ * the flows and from the other tabs, read as `Sheet.library.tab` reads its
26
+ * rows: its accessors `(row, key) => …` reified once into a describe function
27
+ * the rows' map then calls, a Dict's key the second argument and an Array's
28
+ * index, printed, in its place. A card crosses the closed payload as the
29
+ * fields its drop sets, typed by the row it lands on — a flow's rows are the
30
+ * flowchart's own types. Dropped on the canvas (#1249), a state template adds
31
+ * a state where it lands on a lane, a transition template retypes the
32
+ * transition it lands on, and an author's card sets its fields on what its
33
+ * drop's type names; ⏎ on a card drops it on the canvas's selection.
34
+ *
35
+ * Templates are records (#1340, ruling 9): the state and the transition
36
+ * templates are each a record of their own, read whole
37
+ * (`Data.bind(record).read()`, a `Dict<String, T>`), each card keyed by its
38
+ * record's key, and each list names its `source` of the flowchart's one
39
+ * `Slice.bindRecords`, which narrows its cards by those keys as it narrows
40
+ * anything of that record's — a list written in the code names none, and is
41
+ * refused, naming the change (#1346). An author's tab reads an `Array<T>` or
42
+ * a `Dict<String, T>`, each card keyed by its `key`, a key that repeats
43
+ * keeping its first card; naming a `source` it follows that source by its
44
+ * cards' keys, and naming none it lists its rows whole.
37
45
  *
38
46
  * @packageDocumentation
39
47
  */
@@ -225,10 +233,10 @@ export type FlowchartLandsType = typeof FlowchartLandsType;
225
233
  * tab's name is the author's when given; left out, the renderer names it in
226
234
  * its words (`States`, `Transitions`), so a host translates it.
227
235
  *
228
- * @property flows - Every flow in the record; a click opens one
229
- * @property states - State templates from the tab's own rows: its name, its icon and its cards
230
- * @property transitions - Transition templates from the tab's own rows: its name, its icon and its cards
231
- * @property tab - The author's own cards: its name, its icon, and its cards by what they land on
236
+ * @property flows - Every flow in the record — over a slice, those its `flows` source narrows them to; a click opens one
237
+ * @property states - State templates from the tab's own record: its name, its icon, its cards, and the source of the slice they follow, by their keys (#1346)
238
+ * @property transitions - Transition templates from the tab's own record: its name, its icon, its cards, and the source of the slice they follow, by their keys (#1346)
239
+ * @property tab - The author's own cards: its name, its icon, its cards by what they land on, and the source of the slice they follow, by their keys — none, its cards whole (#1346)
232
240
  */
233
241
  export declare const FlowchartLibraryTabType: VariantType<{
234
242
  readonly flows: NullType;
@@ -248,6 +256,7 @@ export declare const FlowchartLibraryTabType: VariantType<{
248
256
  readonly meta: OptionType<StringType>;
249
257
  readonly group: OptionType<StringType>;
250
258
  }>>;
259
+ readonly source: StringType;
251
260
  }>;
252
261
  readonly transitions: StructType<{
253
262
  readonly name: OptionType<StringType>;
@@ -274,6 +283,7 @@ export declare const FlowchartLibraryTabType: VariantType<{
274
283
  readonly meta: OptionType<StringType>;
275
284
  readonly group: OptionType<StringType>;
276
285
  }>>;
286
+ readonly source: StringType;
277
287
  }>;
278
288
  readonly tab: StructType<{
279
289
  readonly name: StringType;
@@ -345,6 +355,7 @@ export declare const FlowchartLibraryTabType: VariantType<{
345
355
  readonly group: OptionType<StringType>;
346
356
  }>>;
347
357
  }>;
358
+ readonly source: OptionType<StringType>;
348
359
  }>;
349
360
  }>;
350
361
  /** Type representing {@link FlowchartLibraryTabType}. */
@@ -357,8 +368,6 @@ export type FlowchartLibraryTabType = typeof FlowchartLibraryTabType;
357
368
  * @typeParam T - The rows' element type
358
369
  */
359
370
  export interface FlowchartCardAccessors<T extends EastType> {
360
- /** The card's key — unique within the tab; a key that repeats keeps its first card. */
361
- key: (row: ExprType<T>, key: ExprType<StringType>) => SubtypeExprOrValue<StringType>;
362
371
  /** The card's name. */
363
372
  label: (row: ExprType<T>, key: ExprType<StringType>) => SubtypeExprOrValue<StringType>;
364
373
  /** The line under it — return the field's `Option`. */
@@ -368,7 +377,8 @@ export interface FlowchartCardAccessors<T extends EastType> {
368
377
  }
369
378
  /**
370
379
  * A state template tab — `Flowchart.library.states(rows, { … })`: its name
371
- * and icon, what each card shows, and the fields of the state it adds.
380
+ * and icon, what each card shows, and the fields of the state it adds. Each
381
+ * card is keyed by its templates record's key (#1346): it takes no `key`.
372
382
  *
373
383
  * @typeParam T - The rows' element type
374
384
  */
@@ -379,11 +389,18 @@ export interface FlowchartStatesConfig<T extends EastType> extends FlowchartCard
379
389
  icon?: string;
380
390
  /** The fields of the state a card dropped on a lane adds, over a state's defaults: `Flowchart.patch(Flowchart.Types.State, { … })`. */
381
391
  drop: (row: ExprType<T>, key: ExprType<StringType>) => ExprType<FlowchartPatchOf<FlowchartStateType>>;
392
+ /**
393
+ * The source of the flowchart's `Slice.bindRecords` over this templates
394
+ * record (#1340, ruling 9): its shown keys narrow the tab's cards, each
395
+ * card's key its record's key. A templates list must name one.
396
+ */
397
+ source?: string;
382
398
  }
383
399
  /**
384
400
  * A transition template tab — `Flowchart.library.transitions(rows, { … })`:
385
401
  * its name and icon, what each card shows, and the fields it sets on the
386
- * transition it lands on.
402
+ * transition it lands on. Each card is keyed by its templates record's key
403
+ * (#1346): it takes no `key`.
387
404
  *
388
405
  * @typeParam T - The rows' element type
389
406
  */
@@ -398,6 +415,12 @@ export interface FlowchartTransitionsConfig<T extends EastType> extends Flowchar
398
415
  * and its other fields, never its `key`, `from` or `to`.
399
416
  */
400
417
  drop: (row: ExprType<T>, key: ExprType<StringType>) => ExprType<FlowchartPatchOf<FlowchartLinkType>>;
418
+ /**
419
+ * The source of the flowchart's `Slice.bindRecords` over this templates
420
+ * record (#1340, ruling 9): its shown keys narrow the tab's cards, each
421
+ * card's key its record's key. A templates list must name one.
422
+ */
423
+ source?: string;
401
424
  }
402
425
  /**
403
426
  * An author's tab — `Flowchart.library.tab(rows, { … })`: its name and icon,
@@ -410,6 +433,12 @@ export interface FlowchartTransitionsConfig<T extends EastType> extends Flowchar
410
433
  export interface FlowchartTabConfig<T extends EastType, P extends EastType = EastType> extends FlowchartCardAccessors<T> {
411
434
  /** The tab's name: its label in the tab row, and its identity in `library`. */
412
435
  name: string;
436
+ /**
437
+ * The card's key — unique within the tab; a key that repeats keeps its
438
+ * first card. Following a `source`, it is the key of that record's row:
439
+ * the tab follows the source by it.
440
+ */
441
+ key: (row: ExprType<T>, key: ExprType<StringType>) => SubtypeExprOrValue<StringType>;
413
442
  /** A Font Awesome solid icon name for the tab's cards. */
414
443
  icon?: string;
415
444
  /**
@@ -419,6 +448,13 @@ export interface FlowchartTabConfig<T extends EastType, P extends EastType = Eas
419
448
  * Without one, the cards are read, never dragged.
420
449
  */
421
450
  drop?: (row: ExprType<T>, key: ExprType<StringType>) => ExprType<P>;
451
+ /**
452
+ * The source of the flowchart's `Slice.bindRecords` whose shown keys
453
+ * filter this tab's cards (#1346), each card's key its row's key in that
454
+ * record; omitted, the tab lists its rows whole. It counts what it shows,
455
+ * and says so when the rail leaves it none.
456
+ */
457
+ source?: string;
422
458
  }
423
459
  /** The Flows tab, as `Flowchart.library.flows()` returns it. */
424
460
  export interface FlowchartFlowsTab {
@@ -449,8 +485,10 @@ export type FlowchartLibraryTab = FlowchartFlowsTab | FlowchartStatesTab | Flowc
449
485
  * which lists flows by name — one flow has none to list (FB16).
450
486
  */
451
487
  export type FlowchartOneFlowLibraryTab = FlowchartStatesTab | FlowchartTransitionsTab | FlowchartAuthorTab;
452
- /** The rows a data tab reads: an Array, or a Dict by String keys. */
488
+ /** The rows an author's tab reads: an Array, or a Dict by String keys — a record's, when it follows a source. */
453
489
  export type FlowchartLibraryRows<T extends EastType> = SubtypeExprOrValue<ArrayType<T>> | SubtypeExprOrValue<DictType<StringType, T>>;
490
+ /** The rows a templates list reads (#1340, ruling 9): its templates record's, by String keys — its binding's `read()`. */
491
+ export type FlowchartTemplateRows<T extends EastType> = SubtypeExprOrValue<DictType<StringType, T>>;
454
492
  /**
455
493
  * The Flows tab — `Flowchart.library.flows()` (FB13, FB14): every flow the
456
494
  * flowchart holds, by name, each card its name and its description — or, with
@@ -522,33 +560,35 @@ export type FlowchartLibraryRows<T extends EastType> = SubtypeExprOrValue<ArrayT
522
560
  export declare function libraryFlows(): FlowchartFlowsTab;
523
561
  /**
524
562
  * The state templates — `Flowchart.library.states(rows, { … })` (FB26,
525
- * decisions 6 and 7): one card per row of the tab's own rows — its label, the
526
- * line under it, the tab's icon — grouped by its `group` and searched by its
527
- * key, label and line. Each card is a drag source, and a click selects it, a
528
- * click on the selected card letting it go. A card dropped on a lane adds a
529
- * state there, seeded with the fields its `drop` sets over a state's defaults
530
- * (#1249).
563
+ * decisions 6 and 7): one card per row of the tab's own templates record —
564
+ * its label, the line under it, the tab's icon — grouped by its `group` and
565
+ * searched by its key, label and line. Each card is a drag source, and a click
566
+ * selects it, a click on the selected card letting it go. A card dropped on a
567
+ * lane adds a state there, seeded with the fields its `drop` sets over a
568
+ * state's defaults (#1249).
531
569
  *
532
570
  * @remarks
533
- * The rows are the app's own — an input or a record the app binds, apart from
534
- * the flows and from the other tabs — read as `Sheet.library.tab` reads its
535
- * rows: an `Array<T>` or a `Dict<String, T>`, each accessor taking a row and
536
- * its key, a Dict's key or an Array's index, printed. A key that repeats keeps
537
- * its first card. Left out, the tab's name is `States`, in the flowchart's
538
- * words. Refused when the surface is built: rows that are neither an Array
539
- * nor a `Dict<String, T>`, a `drop` over another type than
540
- * `Flowchart.Types.State`, and the tab listed twice.
571
+ * Templates are records (#1340, ruling 9): the rows are a templates record's,
572
+ * read whole — `Data.bind(record).read()`, a `Dict<String, T>` — apart from
573
+ * the flows and from the other tabs, each accessor taking a row and its key.
574
+ * A card's key is its record's key, and the tab follows `source`, the
575
+ * flowchart's slice's source over that record, by it (#1346). Left out, the
576
+ * tab's name is `States`, in the flowchart's words. Refused when the surface
577
+ * is built: a list naming no source — one written in the code — or one the
578
+ * slice lacks, or `flows`; rows that are no `Dict<String, T>`; a `key`, which
579
+ * the record's keys are; a `drop` over another type than
580
+ * `Flowchart.Types.State`; and the tab listed twice.
541
581
  *
542
582
  * @typeParam T - The rows' element type
543
- * @param rows - The rows — an `Array<T>` or a `Dict<String, T>` value or expression, such as a binding's `read()`
544
- * @param config - The tab's name and icon, what each card shows, and its `drop` ({@link FlowchartStatesConfig})
583
+ * @param rows - The templates record's rows — a `Dict<String, T>` expression, its binding's `read()`
584
+ * @param config - The tab's name and icon, what each card shows, its `drop` and its `source` ({@link FlowchartStatesConfig})
545
585
  * @returns The tab
546
586
  *
547
587
  * @example
548
588
  * ```tsx
549
589
  * // .tsx file with the `@jsxImportSource @elaraai/e3-ui` pragma
550
- * import { ArrayType, DictType, East, IntegerType, OptionType, StringType, StructType, none, some, variant } from "@elaraai/east";
551
- * import { Box, Reactive, UIComponentType } from "@elaraai/east-ui";
590
+ * import { DictType, East, IntegerType, OptionType, StringType, StructType, none, some, variant } from "@elaraai/east";
591
+ * import { Box, Reactive, Slice, UIComponentType } from "@elaraai/east-ui";
552
592
  * import { Data, Flowchart, Record } from "@elaraai/e3-ui";
553
593
  * import e3 from "@elaraai/e3";
554
594
  *
@@ -582,57 +622,71 @@ export declare function libraryFlows(): FlowchartFlowsTab;
582
622
  * },
583
623
  * }));
584
624
  * export const depotFlowsPatch = e3.mutation.patch(depotFlows);
585
- * export const StepTemplate = StructType({ code: StringType, name: StringType, kind: StringType, slots: OptionType(IntegerType) });
586
- * export const stepTemplates = e3.input("flowchart_step_templates", ArrayType(StepTemplate), variant("value", [
587
- * { code: "ARV", name: "Arrived", kind: "Intake", slots: none },
588
- * { code: "SCN", name: "Scanned", kind: "Intake", slots: none },
589
- * { code: "CH*", name: "Sort chutes", kind: "Sort", slots: some(12n) },
590
- * { code: "HLD", name: "Held", kind: "Hold", slots: none },
591
- * { code: "LDD", name: "Loaded", kind: "Load", slots: none },
625
+ * 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 }],
592
632
  * ]));
633
+ * export const stepsByKind = e3.recordIndex("flowchart_steps_by_kind", stepTemplates, { on: ["kind"] });
593
634
  * export const MoveTemplate = StructType({ kind: Flowchart.Types.Kind, decision: OptionType(StringType), note: StringType });
594
635
  * export const moveTemplates = e3.record("flowchart_move_templates", DictType(StringType, MoveTemplate), new Map([
595
636
  * ["Observed", { kind: variant("observed", null), decision: none, note: "Mined from the scans" }],
596
637
  * ["Planned", { kind: variant("planned", null), decision: none, note: "The designed path" }],
597
638
  * ["Routed", { kind: variant("planned", null), decision: some("route"), note: "Governed by the route decision" }],
598
639
  * ]));
599
- * export const DecisionOwner = StructType({ role: StringType, name: StringType, desk: StringType });
600
- * export const decisionOwners = e3.input("flowchart_decision_owners", ArrayType(DecisionOwner), variant("value", [
601
- * { role: "sort-planner", name: "Sort planner", desk: "Sort hall" },
602
- * { role: "customs-desk", name: "Customs desk", desk: "Hold bay" },
640
+ * export const movesByKind = e3.recordIndex("flowchart_moves_by_kind", moveTemplates, { on: ["kind"] });
641
+ * 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" }],
603
645
  * ]));
646
+ * export const ownersByDesk = e3.recordIndex("flowchart_owners_by_desk", decisionOwners, { on: ["desk"] });
604
647
  *
605
648
  * const flowchart = East.function([], UIComponentType, (_$) => (
606
649
  * <Reactive>{$ => {
607
650
  * const flows = $.let(Record.bind(depotFlows, [depotFlowsPatch]));
651
+ * // What a tab reads whole binds with Data.bind, which keeps it loaded beside its pages.
608
652
  * const steps = $.let(Data.bind(stepTemplates));
609
- * const moves = $.let(Record.bind(moveTemplates, []));
653
+ * const moves = $.let(Data.bind(moveTemplates));
610
654
  * const owners = $.let(Data.bind(decisionOwners));
655
+ * // One rail over the library's records, a source each (#1346): each tab follows the source it names.
656
+ * const slice = $.let(Slice.bindRecords("flowchart.depot", {
657
+ * steps: { source: Data.bindPaged(stepTemplates, { indexes: [stepsByKind] }), label: "Steps", icon: { prefix: "fas", name: "box" },
658
+ * 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" },
660
+ * fields: { kind: { label: "Transition kind" } } },
661
+ * owners: { source: Data.bindPaged(decisionOwners, { indexes: [ownersByDesk] }), label: "Owners", icon: { prefix: "fas", name: "user-tie" },
662
+ * fields: { desk: { label: "Desk", hints: ["Sort hall", "Hold bay"] } } },
663
+ * }));
611
664
  * return (
612
665
  * <Box height="560px">
613
666
  * <Flowchart
614
667
  * record={flows}
615
668
  * flow="Inbound parcels"
616
669
  * name="depot"
670
+ * slice={{ slice }}
617
671
  * library={[
618
672
  * Flowchart.library.flows(),
619
- * // Step types, an input's rows: a card dropped on a lane adds a state seeded with what its drop sets.
673
+ * // Step types, a templates record by code: a card dropped on a lane adds a state seeded with what its drop sets.
620
674
  * Flowchart.library.states(steps.read(), {
621
- * name: "Steps", icon: "box",
622
- * key: s => s.code, label: s => s.name, meta: s => some(s.code), group: s => s.kind,
623
- * drop: s => Flowchart.patch(Flowchart.Types.State, { key: s.code, label: some(s.name), members: s.slots }),
675
+ * name: "Steps", icon: "box", source: "steps",
676
+ * label: s => s.name, meta: (_s, code) => some(code), group: s => s.kind,
677
+ * drop: (s, code) => Flowchart.patch(Flowchart.Types.State, { key: code, label: some(s.name), members: s.slots }),
624
678
  * }),
625
- * // Transition types, a record's rows by name: a card dropped on a transition retypes it.
679
+ * // Transition types, a templates record by name: a card dropped on a transition retypes it.
626
680
  * Flowchart.library.transitions(moves.read(), {
627
- * icon: "arrow-right",
628
- * key: (_m, name) => name, label: (_m, name) => name, meta: m => some(m.note),
681
+ * icon: "arrow-right", source: "moves",
682
+ * label: (_m, name) => name, meta: m => some(m.note),
629
683
  * drop: m => Flowchart.patch(Flowchart.Types.Link, { kind: some(m.kind), trigger: m.decision }),
630
684
  * }),
631
- * // The author's own cards: a role dropped on a decision owns it.
685
+ * // The author's own cards, a record of roles: a role dropped on a decision owns it.
632
686
  * Flowchart.library.tab(owners.read(), {
633
- * name: "Owners", icon: "user-tie",
634
- * key: o => o.role, label: o => o.name, meta: o => some(o.desk),
635
- * drop: o => Flowchart.patch(Flowchart.Types.Trigger, { owner: some(o.role) }),
687
+ * name: "Owners", icon: "user-tie", source: "owners",
688
+ * key: (_o, role) => role, label: o => o.name, meta: o => some(o.desk),
689
+ * drop: (_o, role) => Flowchart.patch(Flowchart.Types.Trigger, { owner: some(role) }),
636
690
  * }),
637
691
  * ]}
638
692
  * />
@@ -642,7 +696,7 @@ export declare function libraryFlows(): FlowchartFlowsTab;
642
696
  * ));
643
697
  * ```
644
698
  */
645
- export declare function libraryStates<T extends EastType>(rows: FlowchartLibraryRows<T>, config: FlowchartStatesConfig<T>): FlowchartStatesTab;
699
+ export declare function libraryStates<T extends EastType>(rows: FlowchartTemplateRows<T>, config: FlowchartStatesConfig<T>): FlowchartStatesTab;
646
700
  /**
647
701
  * The transition templates — `Flowchart.library.transitions(rows, { … })`
648
702
  * (FB26, decision 8): one card per row of the tab's own rows, as
@@ -652,20 +706,22 @@ export declare function libraryStates<T extends EastType>(rows: FlowchartLibrary
652
706
  * connection makes a transition of the default type, and a card retypes it.
653
707
  *
654
708
  * @remarks
655
- * The rows are read as {@link libraryStates}' are. Left out, the tab's name is
656
- * `Transitions`, in the flowchart's words. Refused when the surface is built:
657
- * rows that are neither an Array nor a `Dict<String, T>`, a `drop` over
658
- * another type than `Flowchart.Types.Link`, and the tab listed twice; and,
659
- * when the tab's cards are read, a card whose `drop` sets the transition's
660
- * `key`, `from` or `to` — the fields a patch sets are values its rows give,
661
- * which the build cannot see.
709
+ * The rows are a templates record's, read as {@link libraryStates}' are, each
710
+ * card keyed by its record's key, and the tab follows its `source` as theirs
711
+ * does. Left out, the tab's name is `Transitions`, in the flowchart's words.
712
+ * Refused when the surface is built: a list naming no source, or one the slice
713
+ * lacks, or `flows`; rows that are no `Dict<String, T>`; a `key`; a `drop`
714
+ * over another type than `Flowchart.Types.Link`; and the tab listed twice;
715
+ * and, when the tab's cards are read, a card whose `drop` sets the
716
+ * transition's `key`, `from` or `to` — the fields a patch sets are values its
717
+ * rows give, which the build cannot see.
662
718
  *
663
719
  * @typeParam T - The rows' element type
664
- * @param rows - The rows — an `Array<T>` or a `Dict<String, T>` value or expression, such as a binding's `read()`
665
- * @param config - The tab's name and icon, what each card shows, and its `drop` ({@link FlowchartTransitionsConfig})
720
+ * @param rows - The templates record's rows — a `Dict<String, T>` expression, its binding's `read()`
721
+ * @param config - The tab's name and icon, what each card shows, its `drop` and its `source` ({@link FlowchartTransitionsConfig})
666
722
  * @returns The tab
667
723
  */
668
- export declare function libraryTransitions<T extends EastType>(rows: FlowchartLibraryRows<T>, config: FlowchartTransitionsConfig<T>): FlowchartTransitionsTab;
724
+ export declare function libraryTransitions<T extends EastType>(rows: FlowchartTemplateRows<T>, config: FlowchartTransitionsConfig<T>): FlowchartTransitionsTab;
669
725
  /**
670
726
  * A tab of the author's own cards — `Flowchart.library.tab(rows, { … })`
671
727
  * (FB27): one card per row of the tab's own rows, as {@link libraryStates}'
@@ -675,15 +731,19 @@ export declare function libraryTransitions<T extends EastType>(rows: FlowchartLi
675
731
  * its fields there (#1249); without one, the cards are read, never dragged.
676
732
  *
677
733
  * @remarks
678
- * The rows are read as {@link libraryStates}' are. A tab's name is its
679
- * identity in `library`. Refused when the surface is built: rows that are
680
- * neither an Array nor a `Dict<String, T>`, a `drop` over none of a flow's
681
- * row types, and two tabs of one name.
734
+ * The rows are an `Array<T>` or a `Dict<String, T>` the app binds, each
735
+ * accessor taking a row and its key, a Dict's key or an Array's index,
736
+ * printed; a key that repeats keeps its first card. Naming a `source` of the
737
+ * flowchart's slice (#1346), the tab follows it by its cards' keys, each a
738
+ * row's key in that record; naming none, it lists its rows whole. A tab's
739
+ * name is its identity in `library`. Refused when the surface is built: rows
740
+ * that are neither an Array nor a `Dict<String, T>`; a `source` the slice
741
+ * lacks; a `drop` over none of a flow's row types; and two tabs of one name.
682
742
  *
683
743
  * @typeParam T - The rows' element type
684
744
  * @typeParam P - The patch `drop` returns
685
745
  * @param rows - The rows — an `Array<T>` or a `Dict<String, T>` value or expression, such as a binding's `read()`
686
- * @param config - The tab's name and icon, what each card shows, and its `drop` ({@link FlowchartTabConfig})
746
+ * @param config - The tab's name and icon, what each card shows, its `drop` and its `source` ({@link FlowchartTabConfig})
687
747
  * @returns The tab
688
748
  */
689
749
  export declare function libraryTab<T extends EastType, P extends EastType = EastType>(rows: FlowchartLibraryRows<T>, config: FlowchartTabConfig<T, P>): FlowchartAuthorTab;
@@ -700,6 +760,29 @@ export interface FlowchartLibrary {
700
760
  }
701
761
  /** The library pane's tabs, each a factory (`Flowchart.library`). */
702
762
  export declare const FlowchartLibraryFactories: FlowchartLibrary;
763
+ /**
764
+ * Checks the library's templates lists against the flowchart's slice, before
765
+ * the slice itself is checked, so a list written in the code is refused with
766
+ * the change to make before a source no list names is (#1340, ruling 9): each
767
+ * templates list is a record of its own, naming its source of the flowchart's
768
+ * one `Slice.bindRecords`.
769
+ *
770
+ * @param library - The flowchart's `library`, as given
771
+ * @param names - The sources the slice names, read before it is checked (`sliceSourceNames`)
772
+ * @throws {Error} Naming the list and the change to make: a list naming no source — one written in the code — or one the slice lacks, a list naming `flows`, and the state and the transition templates naming one source
773
+ * @internal
774
+ */
775
+ export declare function checkTemplatesSources(library: unknown, names: readonly string[]): void;
776
+ /**
777
+ * The sources the library names (#1346), each once, in its order: each
778
+ * templates list's and each author's tab's — what the flowchart's slice may
779
+ * hold beside `flows`.
780
+ *
781
+ * @param library - The flowchart's `library`, as given
782
+ * @returns The sources' names
783
+ * @internal
784
+ */
785
+ export declare function librarySources(library: unknown): string[];
703
786
  /**
704
787
  * The library pane on the wire (`Flowchart Builder Spec.md` §4.2, §4.4, FB16,
705
788
  * FB25–FB29): its tabs in the order `library` lists them; none when it is
@@ -707,14 +790,16 @@ export declare const FlowchartLibraryFactories: FlowchartLibrary;
707
790
  *
708
791
  * @param library - The tabs, each a `Flowchart.library.*` call
709
792
  * @param many - Whether the flowchart holds flows by name, rather than one flow
793
+ * @param sources - The flowchart's slice's sources, which each templates list's and each author's tab's `source` must be one of
710
794
  * @returns The tabs on the wire
711
795
  * @throws {Error} Naming the tab and the remedy: a `library` that is no list
712
796
  * of `Flowchart.library.*` calls; a tab listed twice — the Flows tab, the
713
797
  * state templates or the transition templates, or two of the author's tabs
714
798
  * of one name; the Flows tab over one flow; and each of a data tab's
715
- * refusals — rows that are neither an Array nor a `Dict<String, T>`, and a
716
- * `drop` of another type than its tab's
799
+ * refusals — a source the slice lacks, rows that are neither an Array nor a
800
+ * `Dict<String, T>` (a templates record's, for a templates list), a
801
+ * templates list's `key`, and a `drop` of another type than its tab's
717
802
  * @internal
718
803
  */
719
- export declare function buildLibrary(library: unknown, many: boolean): ExprType<ArrayType<FlowchartLibraryTabType>>;
804
+ export declare function buildLibrary(library: unknown, many: boolean, sources?: readonly string[]): ExprType<ArrayType<FlowchartLibraryTabType>>;
720
805
  //# sourceMappingURL=library.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../src/flowchart/library.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EACH,SAAS,EACT,QAAQ,EAGR,QAAQ,EACR,UAAU,EAEV,UAAU,EACV,UAAU,EACV,WAAW,EAOX,KAAK,QAAQ,EACb,KAAK,QAAQ,EAEb,KAAK,kBAAkB,EAC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