@elaraai/e3-ui 1.0.102 → 1.0.104

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 (326) hide show
  1. package/dist/src/allocation/functions.d.ts +2 -1
  2. package/dist/src/allocation/functions.d.ts.map +1 -1
  3. package/dist/src/allocation/functions.js +3 -2
  4. package/dist/src/allocation/functions.js.map +1 -1
  5. package/dist/src/allocation/index.d.ts +120 -1
  6. package/dist/src/allocation/index.d.ts.map +1 -1
  7. package/dist/src/allocation/index.js +24 -4
  8. package/dist/src/allocation/index.js.map +1 -1
  9. package/dist/src/bind/data-indexed.d.ts +25 -4
  10. package/dist/src/bind/data-indexed.d.ts.map +1 -1
  11. package/dist/src/bind/data-indexed.js +58 -7
  12. package/dist/src/bind/data-indexed.js.map +1 -1
  13. package/dist/src/bind/data.d.ts +12 -14
  14. package/dist/src/bind/data.d.ts.map +1 -1
  15. package/dist/src/bind/data.js +11 -11
  16. package/dist/src/bind/data.js.map +1 -1
  17. package/dist/src/bind/func.d.ts +7 -2
  18. package/dist/src/bind/func.d.ts.map +1 -1
  19. package/dist/src/bind/func.js +10 -3
  20. package/dist/src/bind/func.js.map +1 -1
  21. package/dist/src/bind/record.d.ts +6 -6
  22. package/dist/src/bind/record.d.ts.map +1 -1
  23. package/dist/src/bind/record.js.map +1 -1
  24. package/dist/src/calendar/index.d.ts +148 -1
  25. package/dist/src/calendar/index.d.ts.map +1 -1
  26. package/dist/src/calendar/index.js +55 -5
  27. package/dist/src/calendar/index.js.map +1 -1
  28. package/dist/src/decision/bind.d.ts.map +1 -1
  29. package/dist/src/decision/index.d.ts +218 -218
  30. package/dist/src/decision/index.d.ts.map +1 -1
  31. package/dist/src/decision/types.d.ts.map +1 -1
  32. package/dist/src/flowchart/canvas.d.ts +32 -14
  33. package/dist/src/flowchart/canvas.d.ts.map +1 -1
  34. package/dist/src/flowchart/canvas.js +21 -6
  35. package/dist/src/flowchart/canvas.js.map +1 -1
  36. package/dist/src/flowchart/details.d.ts +469 -0
  37. package/dist/src/flowchart/details.d.ts.map +1 -0
  38. package/dist/src/flowchart/details.js +1035 -0
  39. package/dist/src/flowchart/details.js.map +1 -0
  40. package/dist/src/flowchart/flowchart.d.ts +16 -72
  41. package/dist/src/flowchart/flowchart.d.ts.map +1 -1
  42. package/dist/src/flowchart/flowchart.js +10 -1
  43. package/dist/src/flowchart/flowchart.js.map +1 -1
  44. package/dist/src/flowchart/index.d.ts +282 -251
  45. package/dist/src/flowchart/index.d.ts.map +1 -1
  46. package/dist/src/flowchart/index.js +234 -220
  47. package/dist/src/flowchart/index.js.map +1 -1
  48. package/dist/src/flowchart/kinds.d.ts +438 -0
  49. package/dist/src/flowchart/kinds.d.ts.map +1 -0
  50. package/dist/src/flowchart/kinds.js +799 -0
  51. package/dist/src/flowchart/kinds.js.map +1 -0
  52. package/dist/src/flowchart/library.d.ts +155 -740
  53. package/dist/src/flowchart/library.d.ts.map +1 -1
  54. package/dist/src/flowchart/library.js +191 -673
  55. package/dist/src/flowchart/library.js.map +1 -1
  56. package/dist/src/flowchart/payload.d.ts +3654 -7845
  57. package/dist/src/flowchart/payload.d.ts.map +1 -1
  58. package/dist/src/flowchart/payload.js +331 -469
  59. package/dist/src/flowchart/payload.js.map +1 -1
  60. package/dist/src/flowchart/templates.d.ts +657 -0
  61. package/dist/src/flowchart/templates.d.ts.map +1 -0
  62. package/dist/src/flowchart/templates.js +658 -0
  63. package/dist/src/flowchart/templates.js.map +1 -0
  64. package/dist/src/flowchart/types.d.ts +2258 -214
  65. package/dist/src/flowchart/types.d.ts.map +1 -1
  66. package/dist/src/flowchart/types.js +374 -124
  67. package/dist/src/flowchart/types.js.map +1 -1
  68. package/dist/src/index.d.ts +13 -15
  69. package/dist/src/index.d.ts.map +1 -1
  70. package/dist/src/index.js +24 -29
  71. package/dist/src/index.js.map +1 -1
  72. package/dist/src/internal.d.ts +5 -7
  73. package/dist/src/internal.d.ts.map +1 -1
  74. package/dist/src/internal.js +12 -19
  75. package/dist/src/internal.js.map +1 -1
  76. package/dist/src/ontology/index.d.ts +44 -15
  77. package/dist/src/ontology/index.d.ts.map +1 -1
  78. package/dist/src/ontology/index.js +19 -11
  79. package/dist/src/ontology/index.js.map +1 -1
  80. package/dist/src/plan/builders.d.ts +26 -26
  81. package/dist/src/plan/builders.d.ts.map +1 -1
  82. package/dist/src/plan/builders.js.map +1 -1
  83. package/dist/src/plan/event-rows.d.ts +59 -58
  84. package/dist/src/plan/event-rows.d.ts.map +1 -1
  85. package/dist/src/plan/event-rows.js +6 -4
  86. package/dist/src/plan/event-rows.js.map +1 -1
  87. package/dist/src/plan/factories.js.map +1 -1
  88. package/dist/src/plan/ir.d.ts +1 -0
  89. package/dist/src/plan/ir.d.ts.map +1 -1
  90. package/dist/src/plan/library.d.ts.map +1 -1
  91. package/dist/src/plan/nested-checks.js.map +1 -1
  92. package/dist/src/plan/plan.d.ts +567 -423
  93. package/dist/src/plan/plan.d.ts.map +1 -1
  94. package/dist/src/plan/plan.js +67 -3
  95. package/dist/src/plan/plan.js.map +1 -1
  96. package/dist/src/plan/series.d.ts.map +1 -1
  97. package/dist/src/plan/series.js.map +1 -1
  98. package/dist/src/plan/types.d.ts +173 -172
  99. package/dist/src/plan/types.d.ts.map +1 -1
  100. package/dist/src/query/builder.d.ts +368 -321
  101. package/dist/src/query/builder.d.ts.map +1 -1
  102. package/dist/src/query/builder.js +12 -1
  103. package/dist/src/query/builder.js.map +1 -1
  104. package/dist/src/query/index.d.ts +5 -1
  105. package/dist/src/query/index.d.ts.map +1 -1
  106. package/dist/src/query/index.js +3 -1
  107. package/dist/src/query/index.js.map +1 -1
  108. package/dist/src/query/library.d.ts +6 -6
  109. package/dist/src/query/queries.d.ts +3 -3
  110. package/dist/src/roster/fit.d.ts +5 -2
  111. package/dist/src/roster/fit.d.ts.map +1 -1
  112. package/dist/src/roster/fit.js +5 -3
  113. package/dist/src/roster/fit.js.map +1 -1
  114. package/dist/src/roster/index.d.ts +103 -2
  115. package/dist/src/roster/index.d.ts.map +1 -1
  116. package/dist/src/roster/index.js +45 -6
  117. package/dist/src/roster/index.js.map +1 -1
  118. package/dist/src/runtime/index.d.ts +1 -3
  119. package/dist/src/runtime/index.d.ts.map +1 -1
  120. package/dist/src/runtime/index.js +1 -3
  121. package/dist/src/runtime/index.js.map +1 -1
  122. package/dist/src/schedule/fields.js.map +1 -1
  123. package/dist/src/schedule/library.js.map +1 -1
  124. package/dist/src/schedule/record-window.d.ts +27 -26
  125. package/dist/src/schedule/record-window.d.ts.map +1 -1
  126. package/dist/src/schedule/types.d.ts +196 -196
  127. package/dist/src/schematic/index.d.ts +1 -1
  128. package/dist/src/schematic/index.d.ts.map +1 -1
  129. package/dist/src/schematic/index.js +1 -1
  130. package/dist/src/schematic/index.js.map +1 -1
  131. package/dist/src/schematic/kinds.d.ts +4 -24
  132. package/dist/src/schematic/kinds.d.ts.map +1 -1
  133. package/dist/src/schematic/kinds.js +8 -212
  134. package/dist/src/schematic/kinds.js.map +1 -1
  135. package/dist/src/schematic/library.d.ts.map +1 -1
  136. package/dist/src/schematic/payload.d.ts +1688 -1549
  137. package/dist/src/schematic/payload.d.ts.map +1 -1
  138. package/dist/src/schematic/payload.js +38 -1
  139. package/dist/src/schematic/payload.js.map +1 -1
  140. package/dist/src/schematic/shapes.d.ts.map +1 -1
  141. package/dist/src/schematic/types.d.ts +978 -978
  142. package/dist/src/schematic/types.d.ts.map +1 -1
  143. package/dist/src/schematic/types.js +4 -36
  144. package/dist/src/schematic/types.js.map +1 -1
  145. package/dist/src/schematic/window.d.ts +9 -42
  146. package/dist/src/schematic/window.d.ts.map +1 -1
  147. package/dist/src/schematic/window.js +10 -115
  148. package/dist/src/schematic/window.js.map +1 -1
  149. package/dist/src/sheet/actions.d.ts +388 -0
  150. package/dist/src/sheet/actions.d.ts.map +1 -0
  151. package/dist/src/sheet/actions.js +594 -0
  152. package/dist/src/sheet/actions.js.map +1 -0
  153. package/dist/src/sheet/bridge.d.ts +12 -1
  154. package/dist/src/sheet/bridge.d.ts.map +1 -1
  155. package/dist/src/sheet/bridge.js +30 -6
  156. package/dist/src/sheet/bridge.js.map +1 -1
  157. package/dist/src/sheet/columns.d.ts +5 -2
  158. package/dist/src/sheet/columns.d.ts.map +1 -1
  159. package/dist/src/sheet/columns.js.map +1 -1
  160. package/dist/src/sheet/draft-bridge.d.ts +9 -4
  161. package/dist/src/sheet/draft-bridge.d.ts.map +1 -1
  162. package/dist/src/sheet/draft-bridge.js +22 -7
  163. package/dist/src/sheet/draft-bridge.js.map +1 -1
  164. package/dist/src/sheet/editing-types.d.ts +71 -71
  165. package/dist/src/sheet/fields.d.ts +13 -0
  166. package/dist/src/sheet/fields.d.ts.map +1 -1
  167. package/dist/src/sheet/fields.js +3 -0
  168. package/dist/src/sheet/fields.js.map +1 -1
  169. package/dist/src/sheet/group.js.map +1 -1
  170. package/dist/src/sheet/index.d.ts +32 -2
  171. package/dist/src/sheet/index.d.ts.map +1 -1
  172. package/dist/src/sheet/index.js +18 -3
  173. package/dist/src/sheet/index.js.map +1 -1
  174. package/dist/src/sheet/library.d.ts +8 -0
  175. package/dist/src/sheet/library.d.ts.map +1 -1
  176. package/dist/src/sheet/library.js.map +1 -1
  177. package/dist/src/sheet/link.d.ts.map +1 -1
  178. package/dist/src/sheet/record.js.map +1 -1
  179. package/dist/src/sheet/root.d.ts +23 -1
  180. package/dist/src/sheet/root.d.ts.map +1 -1
  181. package/dist/src/sheet/root.js +40 -5
  182. package/dist/src/sheet/root.js.map +1 -1
  183. package/dist/src/sheet/sheet.d.ts +9332 -5621
  184. package/dist/src/sheet/sheet.d.ts.map +1 -1
  185. package/dist/src/sheet/sheet.js +41 -2
  186. package/dist/src/sheet/sheet.js.map +1 -1
  187. package/dist/src/sheet/templates.d.ts +4 -0
  188. package/dist/src/sheet/templates.d.ts.map +1 -1
  189. package/dist/src/sheet/types.d.ts +13020 -5839
  190. package/dist/src/sheet/types.d.ts.map +1 -1
  191. package/dist/src/sheet/types.js +114 -2
  192. package/dist/src/sheet/types.js.map +1 -1
  193. package/dist/src/studio/builder.d.ts +6 -6
  194. package/dist/src/studio/library.d.ts +9 -9
  195. package/dist/src/studio/pages.d.ts +6 -6
  196. package/dist/src/studio/publish.d.ts +3 -3
  197. package/dist/src/utils/derive.d.ts +1 -1
  198. package/dist/src/utils/derive.js +1 -1
  199. package/dist/src/utils/derive.js.map +1 -1
  200. package/dist/src/utils/key-visibility.d.ts +1 -1
  201. package/dist/src/utils/record-kind.d.ts +625 -0
  202. package/dist/src/utils/record-kind.d.ts.map +1 -0
  203. package/dist/src/utils/record-kind.js +450 -0
  204. package/dist/src/utils/record-kind.js.map +1 -0
  205. package/dist/src/utils/views.d.ts +55 -0
  206. package/dist/src/utils/views.d.ts.map +1 -0
  207. package/dist/src/utils/views.js +72 -0
  208. package/dist/src/utils/views.js.map +1 -0
  209. package/dist/src/utils/vocabulary.d.ts +48 -0
  210. package/dist/src/utils/vocabulary.d.ts.map +1 -0
  211. package/dist/src/utils/vocabulary.js +47 -0
  212. package/dist/src/utils/vocabulary.js.map +1 -0
  213. package/dist/test/allocation/allocation.examples.d.ts +3 -1
  214. package/dist/test/allocation/allocation.examples.d.ts.map +1 -1
  215. package/dist/test/allocation/allocation.examples.js +81 -2
  216. package/dist/test/allocation/allocation.examples.js.map +1 -1
  217. package/dist/test/bind/data/data.examples.d.ts +1 -1
  218. package/dist/test/bind/func/func.examples.d.ts +19 -1
  219. package/dist/test/bind/func/func.examples.d.ts.map +1 -1
  220. package/dist/test/bind/func/func.examples.js +36 -1
  221. package/dist/test/bind/func/func.examples.js.map +1 -1
  222. package/dist/test/calendar/calendar.examples.d.ts +2 -0
  223. package/dist/test/calendar/calendar.examples.d.ts.map +1 -1
  224. package/dist/test/calendar/calendar.examples.js +80 -2
  225. package/dist/test/calendar/calendar.examples.js.map +1 -1
  226. package/dist/test/decision/queue.examples.d.ts +1 -0
  227. package/dist/test/decision/queue.examples.d.ts.map +1 -1
  228. package/dist/test/decision/queue.examples.js +12 -0
  229. package/dist/test/decision/queue.examples.js.map +1 -1
  230. package/dist/test/examples-package.d.ts.map +1 -1
  231. package/dist/test/examples-package.js +5 -4
  232. package/dist/test/examples-package.js.map +1 -1
  233. package/dist/test/flowchart/flowchart.examples.d.ts +1250 -4605
  234. package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -1
  235. package/dist/test/flowchart/flowchart.examples.js +861 -512
  236. package/dist/test/flowchart/flowchart.examples.js.map +1 -1
  237. package/dist/test/ontology/ontology.examples.d.ts +2 -3
  238. package/dist/test/ontology/ontology.examples.d.ts.map +1 -1
  239. package/dist/test/ontology/ontology.examples.js +32 -21
  240. package/dist/test/ontology/ontology.examples.js.map +1 -1
  241. package/dist/test/plan/plan-events.examples.d.ts +1 -0
  242. package/dist/test/plan/plan-events.examples.d.ts.map +1 -1
  243. package/dist/test/plan/plan-events.examples.js +44 -0
  244. package/dist/test/plan/plan-events.examples.js.map +1 -1
  245. package/dist/test/plan/plan-nested.examples.d.ts +15 -15
  246. package/dist/test/plan/plan-nested.examples.d.ts.map +1 -1
  247. package/dist/test/plan/plan-nested.examples.js +5 -5
  248. package/dist/test/plan/plan-nested.examples.js.map +1 -1
  249. package/dist/test/plan/plan-records.examples.d.ts.map +1 -1
  250. package/dist/test/plan/plan-records.examples.js +1 -1
  251. package/dist/test/plan/plan-records.examples.js.map +1 -1
  252. package/dist/test/plan/plan.examples.js.map +1 -1
  253. package/dist/test/query/query.examples.d.ts +2 -0
  254. package/dist/test/query/query.examples.d.ts.map +1 -1
  255. package/dist/test/query/query.examples.js +37 -1
  256. package/dist/test/query/query.examples.js.map +1 -1
  257. package/dist/test/roster/domain.examples.d.ts.map +1 -1
  258. package/dist/test/roster/roster.examples.d.ts +2 -0
  259. package/dist/test/roster/roster.examples.d.ts.map +1 -1
  260. package/dist/test/roster/roster.examples.js +76 -15
  261. package/dist/test/roster/roster.examples.js.map +1 -1
  262. package/dist/test/schematic/schematic-records.examples.d.ts.map +1 -1
  263. package/dist/test/schematic/schematic-records.examples.js +6 -4
  264. package/dist/test/schematic/schematic-records.examples.js.map +1 -1
  265. package/dist/test/schematic/schematic.examples.d.ts +1 -0
  266. package/dist/test/schematic/schematic.examples.d.ts.map +1 -1
  267. package/dist/test/schematic/schematic.examples.js +144 -0
  268. package/dist/test/schematic/schematic.examples.js.map +1 -1
  269. package/dist/test/sheet/sheet-actions.examples.d.ts +1264 -0
  270. package/dist/test/sheet/sheet-actions.examples.d.ts.map +1 -0
  271. package/dist/test/sheet/sheet-actions.examples.js +394 -0
  272. package/dist/test/sheet/sheet-actions.examples.js.map +1 -0
  273. package/dist/test/sheet/sheet-records.examples.d.ts +1 -1
  274. package/dist/test/sheet/sheet.examples.d.ts +1 -0
  275. package/dist/test/sheet/sheet.examples.d.ts.map +1 -1
  276. package/dist/test/sheet/sheet.examples.js +77 -0
  277. package/dist/test/sheet/sheet.examples.js.map +1 -1
  278. package/dist/test/studio/studio.examples.d.ts +1 -0
  279. package/dist/test/studio/studio.examples.d.ts.map +1 -1
  280. package/dist/test/studio/studio.examples.js +18 -8
  281. package/dist/test/studio/studio.examples.js.map +1 -1
  282. package/package.json +14 -13
  283. package/dist/src/diff/index.d.ts +0 -407
  284. package/dist/src/diff/index.d.ts.map +0 -1
  285. package/dist/src/diff/index.js +0 -203
  286. package/dist/src/diff/index.js.map +0 -1
  287. package/dist/src/experiment/index.d.ts +0 -1033
  288. package/dist/src/experiment/index.d.ts.map +0 -1
  289. package/dist/src/experiment/index.js +0 -197
  290. package/dist/src/experiment/index.js.map +0 -1
  291. package/dist/src/experiment/types.d.ts +0 -1093
  292. package/dist/src/experiment/types.d.ts.map +0 -1
  293. package/dist/src/experiment/types.js +0 -423
  294. package/dist/src/experiment/types.js.map +0 -1
  295. package/dist/src/flowchart/over.d.ts +0 -227
  296. package/dist/src/flowchart/over.d.ts.map +0 -1
  297. package/dist/src/flowchart/over.js +0 -213
  298. package/dist/src/flowchart/over.js.map +0 -1
  299. package/dist/src/flowchart/patch.d.ts +0 -64
  300. package/dist/src/flowchart/patch.d.ts.map +0 -1
  301. package/dist/src/flowchart/patch.js +0 -67
  302. package/dist/src/flowchart/patch.js.map +0 -1
  303. package/dist/src/flowchart/values.d.ts +0 -271
  304. package/dist/src/flowchart/values.d.ts.map +0 -1
  305. package/dist/src/flowchart/values.js +0 -220
  306. package/dist/src/flowchart/values.js.map +0 -1
  307. package/dist/src/flowchart/window.d.ts +0 -306
  308. package/dist/src/flowchart/window.d.ts.map +0 -1
  309. package/dist/src/flowchart/window.js +0 -63
  310. package/dist/src/flowchart/window.js.map +0 -1
  311. package/dist/src/runtime/diff.d.ts +0 -36
  312. package/dist/src/runtime/diff.d.ts.map +0 -1
  313. package/dist/src/runtime/diff.js +0 -34
  314. package/dist/src/runtime/diff.js.map +0 -1
  315. package/dist/src/runtime/experiment.d.ts +0 -48
  316. package/dist/src/runtime/experiment.d.ts.map +0 -1
  317. package/dist/src/runtime/experiment.js +0 -10
  318. package/dist/src/runtime/experiment.js.map +0 -1
  319. package/dist/test/diff/diff.examples.d.ts +0 -313
  320. package/dist/test/diff/diff.examples.d.ts.map +0 -1
  321. package/dist/test/diff/diff.examples.js +0 -452
  322. package/dist/test/diff/diff.examples.js.map +0 -1
  323. package/dist/test/experiment/experiment.examples.d.ts +0 -1512
  324. package/dist/test/experiment/experiment.examples.d.ts.map +0 -1
  325. package/dist/test/experiment/experiment.examples.js +0 -609
  326. package/dist/test/experiment/experiment.examples.js.map +0 -1
@@ -1,306 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Elara AI Pty Ltd
3
- * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
- */
5
- /**
6
- * The `flows` source of a flowchart's slice (#1340, #1346): the Flows tab
7
- * pages the flows its rail narrows the record to, in its index's order, each
8
- * row keeping the record's primary key — its name — as the flow's identity;
9
- * the open flow is read by that key, whatever the narrowing; and the tab's own
10
- * search reads a narrowing of its own through the source's part.
11
- *
12
- * @packageDocumentation
13
- */
14
- import { ArrayType, BlobType, IntegerType, OptionType, StringType, StructType, FunctionType, type ExprType } from "@elaraai/east";
15
- /** A list entry retains the record's primary key even when sorted by an index. */
16
- export declare const FlowchartEntryType: StructType<{
17
- readonly name: StringType;
18
- readonly flow: StructType<{
19
- readonly description: OptionType<StringType>;
20
- readonly lanes: ArrayType<StructType<{
21
- readonly key: StringType;
22
- readonly label: OptionType<StringType>;
23
- }>>;
24
- readonly states: ArrayType<StructType<{
25
- readonly key: StringType;
26
- readonly label: OptionType<StringType>;
27
- readonly lane: StringType;
28
- readonly members: OptionType<IntegerType>;
29
- readonly notes: OptionType<StringType>;
30
- }>>;
31
- readonly links: ArrayType<StructType<{
32
- readonly key: OptionType<StringType>;
33
- readonly from: StringType;
34
- readonly to: StringType;
35
- readonly kind: OptionType<import("@elaraai/east").VariantType<{
36
- readonly planned: import("@elaraai/east").NullType;
37
- readonly observed: import("@elaraai/east").NullType;
38
- }>>;
39
- readonly trigger: OptionType<StringType>;
40
- readonly evidence: OptionType<StructType<{
41
- readonly volume: OptionType<import("@elaraai/east").FloatType>;
42
- readonly count: OptionType<IntegerType>;
43
- readonly measuredAt: OptionType<import("@elaraai/east").DateTimeType>;
44
- readonly unit: OptionType<StringType>;
45
- }>>;
46
- }>>;
47
- readonly triggers: ArrayType<StructType<{
48
- readonly key: StringType;
49
- readonly label: StringType;
50
- readonly letter: OptionType<StringType>;
51
- readonly owner: OptionType<StringType>;
52
- readonly queue: OptionType<ArrayType<StringType>>;
53
- readonly outcomes: OptionType<StringType>;
54
- }>>;
55
- }>;
56
- }>;
57
- /**
58
- * The normalized list of flows, pinned to the record's snapshot and to the rail's narrowing (#1354): a live source,
59
- * read under the narrowing as it stands, its `query` naming it.
60
- */
61
- export declare const FlowchartWindowType: StructType<{
62
- readonly id: StringType;
63
- readonly page: FunctionType<[IntegerType, IntegerType], OptionType<ArrayType<StructType<{
64
- readonly name: StringType;
65
- readonly flow: StructType<{
66
- readonly description: OptionType<StringType>;
67
- readonly lanes: ArrayType<StructType<{
68
- readonly key: StringType;
69
- readonly label: OptionType<StringType>;
70
- }>>;
71
- readonly states: ArrayType<StructType<{
72
- readonly key: StringType;
73
- readonly label: OptionType<StringType>;
74
- readonly lane: StringType;
75
- readonly members: OptionType<IntegerType>;
76
- readonly notes: OptionType<StringType>;
77
- }>>;
78
- readonly links: ArrayType<StructType<{
79
- readonly key: OptionType<StringType>;
80
- readonly from: StringType;
81
- readonly to: StringType;
82
- readonly kind: OptionType<import("@elaraai/east").VariantType<{
83
- readonly planned: import("@elaraai/east").NullType;
84
- readonly observed: import("@elaraai/east").NullType;
85
- }>>;
86
- readonly trigger: OptionType<StringType>;
87
- readonly evidence: OptionType<StructType<{
88
- readonly volume: OptionType<import("@elaraai/east").FloatType>;
89
- readonly count: OptionType<IntegerType>;
90
- readonly measuredAt: OptionType<import("@elaraai/east").DateTimeType>;
91
- readonly unit: OptionType<StringType>;
92
- }>>;
93
- }>>;
94
- readonly triggers: ArrayType<StructType<{
95
- readonly key: StringType;
96
- readonly label: StringType;
97
- readonly letter: OptionType<StringType>;
98
- readonly owner: OptionType<StringType>;
99
- readonly queue: OptionType<ArrayType<StringType>>;
100
- readonly outcomes: OptionType<StringType>;
101
- }>>;
102
- }>;
103
- }>>>>;
104
- readonly total: FunctionType<[], OptionType<IntegerType>>;
105
- readonly seek: OptionType<FunctionType<[import("@elaraai/east").VariantType<{
106
- readonly key: StringType;
107
- readonly prefix: StringType;
108
- readonly fields: StructType<{
109
- readonly values: ArrayType<StringType>;
110
- readonly prefix: OptionType<StringType>;
111
- }>;
112
- readonly range: StructType<{
113
- readonly from: ArrayType<StringType>;
114
- readonly to: ArrayType<StringType>;
115
- }>;
116
- }>], OptionType<StructType<{
117
- readonly found: import("@elaraai/east").BooleanType;
118
- readonly row: IntegerType;
119
- readonly count: IntegerType;
120
- }>>>>;
121
- readonly revision: FunctionType<[], OptionType<StringType>>;
122
- readonly refresh: FunctionType<[OptionType<StringType>], import("@elaraai/east").NullType>;
123
- readonly query: FunctionType<[], StringType>;
124
- }>;
125
- /** Read by primary identity: outer none is pending; inner none is confirmed absence. */
126
- export declare const FlowchartReadEntryType: FunctionType<[StringType], OptionType<OptionType<BlobType>>>;
127
- /**
128
- * A page of the flows a narrowing holds (#1340, ruling 11): the Flows tab's
129
- * own search — the rail's choices and the search's text — read through the
130
- * `flows` source's `pageWhere`, never the rail's state; `none` while it is read.
131
- */
132
- export declare const FlowchartSearchType: FunctionType<[import("@elaraai/east").DictType<StringType, import("@elaraai/east").VariantType<{
133
- readonly values: ArrayType<StringType>;
134
- readonly range: StructType<{
135
- readonly from: StringType;
136
- readonly to: StringType;
137
- }>;
138
- readonly prefix: StringType;
139
- }>>, IntegerType, IntegerType], OptionType<ArrayType<StructType<{
140
- readonly name: StringType;
141
- readonly flow: StructType<{
142
- readonly description: OptionType<StringType>;
143
- readonly lanes: ArrayType<StructType<{
144
- readonly key: StringType;
145
- readonly label: OptionType<StringType>;
146
- }>>;
147
- readonly states: ArrayType<StructType<{
148
- readonly key: StringType;
149
- readonly label: OptionType<StringType>;
150
- readonly lane: StringType;
151
- readonly members: OptionType<IntegerType>;
152
- readonly notes: OptionType<StringType>;
153
- }>>;
154
- readonly links: ArrayType<StructType<{
155
- readonly key: OptionType<StringType>;
156
- readonly from: StringType;
157
- readonly to: StringType;
158
- readonly kind: OptionType<import("@elaraai/east").VariantType<{
159
- readonly planned: import("@elaraai/east").NullType;
160
- readonly observed: import("@elaraai/east").NullType;
161
- }>>;
162
- readonly trigger: OptionType<StringType>;
163
- readonly evidence: OptionType<StructType<{
164
- readonly volume: OptionType<import("@elaraai/east").FloatType>;
165
- readonly count: OptionType<IntegerType>;
166
- readonly measuredAt: OptionType<import("@elaraai/east").DateTimeType>;
167
- readonly unit: OptionType<StringType>;
168
- }>>;
169
- }>>;
170
- readonly triggers: ArrayType<StructType<{
171
- readonly key: StringType;
172
- readonly label: StringType;
173
- readonly letter: OptionType<StringType>;
174
- readonly owner: OptionType<StringType>;
175
- readonly queue: OptionType<ArrayType<StringType>>;
176
- readonly outcomes: OptionType<StringType>;
177
- }>>;
178
- }>;
179
- }>>>>;
180
- /**
181
- * The `flows` source's reads, over the source as the payload's block bound
182
- * it (#1356): a function captures what it reads, so each holds the `flows`
183
- * source alone, never the whole slice.
184
- *
185
- * @param part - The `flows` source's part of the slice, bound: its `pageWhere`, a narrowing's page, the rail's state unchanged, and its `readEntry`, a flow by its name, whatever the narrowing
186
- * @param rows - Its narrowed data — `Slice.rows(slice, "flows")` — bound
187
- * @returns The Flows tab's window, the read of a flow by its name, and the tab's search's page
188
- * @throws {Error} When the source pages anything but a record of flows by name, its rows joined
189
- * @internal
190
- */
191
- export declare function flowchartWindow(part: ExprType<StructType>, rows: ExprType<StructType>): {
192
- window: import("@elaraai/east").StructExpr<{
193
- readonly id: StringType;
194
- readonly page: FunctionType<[IntegerType, IntegerType], OptionType<ArrayType<StructType<{
195
- readonly name: StringType;
196
- readonly flow: StructType<{
197
- readonly description: OptionType<StringType>;
198
- readonly lanes: ArrayType<StructType<{
199
- readonly key: StringType;
200
- readonly label: OptionType<StringType>;
201
- }>>;
202
- readonly states: ArrayType<StructType<{
203
- readonly key: StringType;
204
- readonly label: OptionType<StringType>;
205
- readonly lane: StringType;
206
- readonly members: OptionType<IntegerType>;
207
- readonly notes: OptionType<StringType>;
208
- }>>;
209
- readonly links: ArrayType<StructType<{
210
- readonly key: OptionType<StringType>;
211
- readonly from: StringType;
212
- readonly to: StringType;
213
- readonly kind: OptionType<import("@elaraai/east").VariantType<{
214
- readonly planned: import("@elaraai/east").NullType;
215
- readonly observed: import("@elaraai/east").NullType;
216
- }>>;
217
- readonly trigger: OptionType<StringType>;
218
- readonly evidence: OptionType<StructType<{
219
- readonly volume: OptionType<import("@elaraai/east").FloatType>;
220
- readonly count: OptionType<IntegerType>;
221
- readonly measuredAt: OptionType<import("@elaraai/east").DateTimeType>;
222
- readonly unit: OptionType<StringType>;
223
- }>>;
224
- }>>;
225
- readonly triggers: ArrayType<StructType<{
226
- readonly key: StringType;
227
- readonly label: StringType;
228
- readonly letter: OptionType<StringType>;
229
- readonly owner: OptionType<StringType>;
230
- readonly queue: OptionType<ArrayType<StringType>>;
231
- readonly outcomes: OptionType<StringType>;
232
- }>>;
233
- }>;
234
- }>>>>;
235
- readonly total: FunctionType<[], OptionType<IntegerType>>;
236
- readonly seek: OptionType<FunctionType<[import("@elaraai/east").VariantType<{
237
- readonly key: StringType;
238
- readonly prefix: StringType;
239
- readonly fields: StructType<{
240
- readonly values: ArrayType<StringType>;
241
- readonly prefix: OptionType<StringType>;
242
- }>;
243
- readonly range: StructType<{
244
- readonly from: ArrayType<StringType>;
245
- readonly to: ArrayType<StringType>;
246
- }>;
247
- }>], OptionType<StructType<{
248
- readonly found: import("@elaraai/east").BooleanType;
249
- readonly row: IntegerType;
250
- readonly count: IntegerType;
251
- }>>>>;
252
- readonly revision: FunctionType<[], OptionType<StringType>>;
253
- readonly refresh: FunctionType<[OptionType<StringType>], import("@elaraai/east").NullType>;
254
- readonly query: FunctionType<[], StringType>;
255
- }>;
256
- entry: import("@elaraai/east").CallableFunctionExpr<[StringType], OptionType<OptionType<BlobType>>>;
257
- search: import("@elaraai/east").CallableFunctionExpr<[import("@elaraai/east").DictType<StringType, import("@elaraai/east").VariantType<{
258
- readonly values: ArrayType<StringType>;
259
- readonly range: StructType<{
260
- readonly from: StringType;
261
- readonly to: StringType;
262
- }>;
263
- readonly prefix: StringType;
264
- }>>, IntegerType, IntegerType], OptionType<ArrayType<StructType<{
265
- readonly name: StringType;
266
- readonly flow: StructType<{
267
- readonly description: OptionType<StringType>;
268
- readonly lanes: ArrayType<StructType<{
269
- readonly key: StringType;
270
- readonly label: OptionType<StringType>;
271
- }>>;
272
- readonly states: ArrayType<StructType<{
273
- readonly key: StringType;
274
- readonly label: OptionType<StringType>;
275
- readonly lane: StringType;
276
- readonly members: OptionType<IntegerType>;
277
- readonly notes: OptionType<StringType>;
278
- }>>;
279
- readonly links: ArrayType<StructType<{
280
- readonly key: OptionType<StringType>;
281
- readonly from: StringType;
282
- readonly to: StringType;
283
- readonly kind: OptionType<import("@elaraai/east").VariantType<{
284
- readonly planned: import("@elaraai/east").NullType;
285
- readonly observed: import("@elaraai/east").NullType;
286
- }>>;
287
- readonly trigger: OptionType<StringType>;
288
- readonly evidence: OptionType<StructType<{
289
- readonly volume: OptionType<import("@elaraai/east").FloatType>;
290
- readonly count: OptionType<IntegerType>;
291
- readonly measuredAt: OptionType<import("@elaraai/east").DateTimeType>;
292
- readonly unit: OptionType<StringType>;
293
- }>>;
294
- }>>;
295
- readonly triggers: ArrayType<StructType<{
296
- readonly key: StringType;
297
- readonly label: StringType;
298
- readonly letter: OptionType<StringType>;
299
- readonly owner: OptionType<StringType>;
300
- readonly queue: OptionType<ArrayType<StringType>>;
301
- readonly outcomes: OptionType<StringType>;
302
- }>>;
303
- }>;
304
- }>>>>;
305
- };
306
- //# sourceMappingURL=window.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../src/flowchart/window.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AACH,OAAO,EACH,SAAS,EAAE,QAAQ,EAAQ,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EACpD,KAAK,QAAQ,EACpD,MAAM,eAAe,CAAC;AAIvB,kFAAkF;AAClF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4D,CAAC;AAC5F;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgD,CAAC;AACjF,wFAAwF;AACxF,eAAO,MAAM,sBAAsB,8DAA+D,CAAC;AACnG;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA4G,CAAC;AAW7I;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBrF"}
@@ -1,63 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Elara AI Pty Ltd
3
- * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
- */
5
- /**
6
- * The `flows` source of a flowchart's slice (#1340, #1346): the Flows tab
7
- * pages the flows its rail narrows the record to, in its index's order, each
8
- * row keeping the record's primary key — its name — as the flow's identity;
9
- * the open flow is read by that key, whatever the narrowing; and the tab's own
10
- * search reads a narrowing of its own through the source's part.
11
- *
12
- * @packageDocumentation
13
- */
14
- import { ArrayType, BlobType, East, IntegerType, OptionType, StringType, StructType, FunctionType, isTypeEqual, none, printType, some, } from "@elaraai/east";
15
- import { buildRowSource, resolveRowSource, LiveSourceType, RecordSliceReadType, RecordSliceWhereType } from "@elaraai/east-ui/internal";
16
- import { FlowchartFlowType } from "./types.js";
17
- /** A list entry retains the record's primary key even when sorted by an index. */
18
- export const FlowchartEntryType = StructType({ name: StringType, flow: FlowchartFlowType });
19
- /**
20
- * The normalized list of flows, pinned to the record's snapshot and to the rail's narrowing (#1354): a live source,
21
- * read under the narrowing as it stands, its `query` naming it.
22
- */
23
- export const FlowchartWindowType = LiveSourceType(ArrayType(FlowchartEntryType));
24
- /** Read by primary identity: outer none is pending; inner none is confirmed absence. */
25
- export const FlowchartReadEntryType = FunctionType([StringType], OptionType(OptionType(BlobType)));
26
- /**
27
- * A page of the flows a narrowing holds (#1340, ruling 11): the Flows tab's
28
- * own search — the rail's choices and the search's text — read through the
29
- * `flows` source's `pageWhere`, never the rail's state; `none` while it is read.
30
- */
31
- export const FlowchartSearchType = FunctionType([RecordSliceWhereType, IntegerType, IntegerType], OptionType(ArrayType(FlowchartEntryType)));
32
- /**
33
- * The `flows` source's reads, over the source as the payload's block bound
34
- * it (#1356): a function captures what it reads, so each holds the `flows`
35
- * source alone, never the whole slice.
36
- *
37
- * @param part - The `flows` source's part of the slice, bound: its `pageWhere`, a narrowing's page, the rail's state unchanged, and its `readEntry`, a flow by its name, whatever the narrowing
38
- * @param rows - Its narrowed data — `Slice.rows(slice, "flows")` — bound
39
- * @returns The Flows tab's window, the read of a flow by its name, and the tab's search's page
40
- * @throws {Error} When the source pages anything but a record of flows by name, its rows joined
41
- * @internal
42
- */
43
- export function flowchartWindow(part, rows) {
44
- const resolved = resolveRowSource(rows, "Flowchart.slice's flows");
45
- const joined = resolved.kind === "ordered" && resolved.elementType.type === "Struct" ? resolved.elementType.fields.row : undefined;
46
- const flows = resolved.kind === "ordered" && resolved.query && isTypeEqual(resolved.keyType, StringType)
47
- && joined?.type === "Variant" && joined.cases.some !== undefined && isTypeEqual(joined.cases.some, FlowchartFlowType);
48
- if (!flows) {
49
- throw new Error(`Flowchart: \`slice\`'s \`flows\` source pages a record of flows by name, Flowchart.Types.Flows, its rows joined — Data.bindPaged(record, { indexes }) over the record \`record\` binds — and this one pages ${printType(resolved.collectionType)}`);
50
- }
51
- const entries = (collection) => collection.map((_$, entry) => ({ name: entry.key, flow: entry.row.unwrap("some") }));
52
- const window = buildRowSource(resolved, ArrayType(FlowchartEntryType), (collection) => entries(collection)).unwrap("live");
53
- const search = East.function([RecordSliceWhereType, IntegerType, IntegerType], OptionType(ArrayType(FlowchartEntryType)), ($, where, offset, limit) => {
54
- const page = $.const(part.pageWhere);
55
- const result = $.let(none, OptionType(ArrayType(FlowchartEntryType)));
56
- // A read of the narrowing alone: the flows are never read by area (#1432).
57
- const found = $.let(page(East.value({ where, area: none }, RecordSliceReadType), offset, limit));
58
- $.match(found, { some: ($2, held) => { $2.assign(result, some(entries(held))); } });
59
- return result;
60
- });
61
- return { window, entry: part.readEntry, search };
62
- }
63
- //# sourceMappingURL=window.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"window.js","sourceRoot":"","sources":["../../../src/flowchart/window.ts"],"names":[],"mappings":"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"}
@@ -1,36 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Elara AI Pty Ltd
3
- * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
- */
5
- /** `<Diff>` tag — see the export's JSDoc. */
6
- import { type OptionsProps, type JsxTag } from "@elaraai/east-ui";
7
- import { Diff as DiffFactory } from "../diff/index.js";
8
- /**
9
- * Change-review panel — surfaces every bound dataset's in-flight change in a
10
- * single card with per-leaf accept / reject and a footer Apply. Pass the
11
- * bindings to review; `hideUnchanged` collapses leaves with no pending change.
12
- *
13
- * @example
14
- * ```tsx
15
- * // .tsx file with the `@jsxImportSource @elaraai/e3-ui` pragma
16
- * import { East, FloatType, some } from "@elaraai/east";
17
- * import { Reactive, UIComponentType } from "@elaraai/east-ui";
18
- * import { Data, Diff } from "@elaraai/e3-ui";
19
- *
20
- * const review = East.function([], UIComponentType, _$ => (
21
- * <Reactive>{$ => {
22
- * const view = $.let(Data.bind(maxHoursInput, { mode: "staged" }));
23
- * return <Diff bindings={[view.binding]} hideUnchanged={some(true)} />;
24
- * }}</Reactive>
25
- * ));
26
- * ```
27
- *
28
- * @remarks
29
- * Carries `Diff.Types` (the payload + style East types). Desugars to
30
- * `Diff.Root(options)`. The renderer registers against `Diff.Component`
31
- * (available from `@elaraai/e3-ui/internal`).
32
- */
33
- export declare const Diff: JsxTag<OptionsProps<typeof DiffFactory.Root>> & {
34
- Types: typeof DiffFactory.Types;
35
- };
36
- //# sourceMappingURL=diff.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../src/runtime/diff.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,6CAA6C;AAE7C,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG;IAAE,KAAK,EAAE,OAAO,WAAW,CAAC,KAAK,CAAA;CACvB,CAAC"}
@@ -1,34 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Elara AI Pty Ltd
3
- * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
- */
5
- /** `<Diff>` tag — see the export's JSDoc. */
6
- import { optionsTag } from "@elaraai/east-ui";
7
- import { Diff as DiffFactory } from "../diff/index.js";
8
- /**
9
- * Change-review panel — surfaces every bound dataset's in-flight change in a
10
- * single card with per-leaf accept / reject and a footer Apply. Pass the
11
- * bindings to review; `hideUnchanged` collapses leaves with no pending change.
12
- *
13
- * @example
14
- * ```tsx
15
- * // .tsx file with the `@jsxImportSource @elaraai/e3-ui` pragma
16
- * import { East, FloatType, some } from "@elaraai/east";
17
- * import { Reactive, UIComponentType } from "@elaraai/east-ui";
18
- * import { Data, Diff } from "@elaraai/e3-ui";
19
- *
20
- * const review = East.function([], UIComponentType, _$ => (
21
- * <Reactive>{$ => {
22
- * const view = $.let(Data.bind(maxHoursInput, { mode: "staged" }));
23
- * return <Diff bindings={[view.binding]} hideUnchanged={some(true)} />;
24
- * }}</Reactive>
25
- * ));
26
- * ```
27
- *
28
- * @remarks
29
- * Carries `Diff.Types` (the payload + style East types). Desugars to
30
- * `Diff.Root(options)`. The renderer registers against `Diff.Component`
31
- * (available from `@elaraai/e3-ui/internal`).
32
- */
33
- export const Diff = Object.assign(optionsTag(DiffFactory.Root), { Types: DiffFactory.Types });
34
- //# sourceMappingURL=diff.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diff.js","sourceRoot":"","sources":["../../../src/runtime/diff.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,6CAA6C;AAE7C,OAAO,EAAE,UAAU,EAAkC,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,MAAM,IAAI,GACb,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC"}
@@ -1,48 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Elara AI Pty Ltd
3
- * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
- */
5
- /** `<Experiment>` tag — see the export's JSDoc. */
6
- import { type StructType } from "@elaraai/east";
7
- import { type UIElement } from "@elaraai/east-ui";
8
- import { Experiment as ExperimentFactory, type ExperimentOptions } from "../experiment/index.js";
9
- /**
10
- * Interactive causal-experiment surface — binds an input dataset + a staged spec
11
- * + estimator functions and renders a picture-and-colour answer to *"did
12
- * {treatment} change {outcome}?"*.
13
- *
14
- * Generic over the bound dataset's row struct (like `<Table>`): `Row` is
15
- * inferred from `data`, which types the `estimate` / `refute` / `dose` function
16
- * signatures. The result side is derived, not authored — status words, the
17
- * sign-flip banner and the bars are computed from the bound numbers; only the
18
- * column names the user picked appear as text.
19
- *
20
- * @example
21
- * ```tsx
22
- * // .tsx file with the `@jsxImportSource @elaraai/e3-ui` pragma
23
- * import { East } from "@elaraai/east";
24
- * import { Reactive, UIComponentType } from "@elaraai/east-ui";
25
- * import { Data, Experiment, Func } from "@elaraai/e3-ui";
26
- *
27
- * const surface = East.function([], UIComponentType, _$ => (
28
- * <Reactive>{$ => {
29
- * const data = $.let(Data.bind(batchesInput));
30
- * const spec = $.let(Data.bind(specInput, { mode: "staged" }));
31
- * const estimate = $.let(Func.bind(estimateFn));
32
- * return <Experiment data={data} spec={spec} estimate={estimate} />;
33
- * }}</Reactive>
34
- * ));
35
- * ```
36
- *
37
- * @remarks
38
- * Carries `Experiment.Types` (the spec / result / refute / dose / journal value
39
- * types). Desugars to `Experiment.Root(options)`. The renderer registers against
40
- * `Experiment.Component` (from `@elaraai/e3-ui/internal`).
41
- */
42
- /** The generic `<Experiment>` tag: `Row` is inferred from the `data` prop. */
43
- export type ExperimentTag = {
44
- <Row extends StructType>(props: ExperimentOptions<Row>): UIElement;
45
- Types: typeof ExperimentFactory.Types;
46
- };
47
- export declare const Experiment: ExperimentTag;
48
- //# sourceMappingURL=experiment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"experiment.d.ts","sourceRoot":"","sources":["../../../src/runtime/experiment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,mDAAmD;AAEnD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,8EAA8E;AAC9E,MAAM,MAAM,aAAa,GAAG;IACxB,CAAC,GAAG,SAAS,UAAU,EAAE,KAAK,EAAE,iBAAiB,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IACnE,KAAK,EAAE,OAAO,iBAAiB,CAAC,KAAK,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,aAGI,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Elara AI Pty Ltd
3
- * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
- */
5
- /** `<Experiment>` tag — see the export's JSDoc. */
6
- import {} from "@elaraai/east";
7
- import { optionsTag } from "@elaraai/east-ui";
8
- import { Experiment as ExperimentFactory } from "../experiment/index.js";
9
- export const Experiment = Object.assign(optionsTag(ExperimentFactory.Root), { Types: ExperimentFactory.Types });
10
- //# sourceMappingURL=experiment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"experiment.js","sourceRoot":"","sources":["../../../src/runtime/experiment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,mDAAmD;AAEnD,OAAO,EAAmB,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAA0B,MAAM,wBAAwB,CAAC;AAyCjG,MAAM,CAAC,MAAM,UAAU,GAAkB,MAAM,CAAC,MAAM,CAClD,UAAU,CAAC,iBAAiB,CAAC,IAA6D,CAAC,EAC3F,EAAE,KAAK,EAAE,iBAAiB,CAAC,KAAK,EAAE,CACT,CAAC"}