@elaraai/e3-ui 1.0.98 → 1.0.100

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 (381) hide show
  1. package/README.md +0 -2
  2. package/dist/src/allocation/adapters.d.ts +1 -1
  3. package/dist/src/allocation/adapters.js +1 -1
  4. package/dist/src/allocation/index.d.ts +46 -90
  5. package/dist/src/allocation/index.d.ts.map +1 -1
  6. package/dist/src/allocation/index.js +5 -5
  7. package/dist/src/allocation/index.js.map +1 -1
  8. package/dist/src/bind/data-indexed.d.ts +273 -51
  9. package/dist/src/bind/data-indexed.d.ts.map +1 -1
  10. package/dist/src/bind/data-indexed.js +233 -56
  11. package/dist/src/bind/data-indexed.js.map +1 -1
  12. package/dist/src/bind/data.d.ts +48 -9
  13. package/dist/src/bind/data.d.ts.map +1 -1
  14. package/dist/src/bind/data.js +48 -3
  15. package/dist/src/bind/data.js.map +1 -1
  16. package/dist/src/bind/record.d.ts +61 -24
  17. package/dist/src/bind/record.d.ts.map +1 -1
  18. package/dist/src/bind/record.js +17 -57
  19. package/dist/src/bind/record.js.map +1 -1
  20. package/dist/src/calendar/index.d.ts +55 -95
  21. package/dist/src/calendar/index.d.ts.map +1 -1
  22. package/dist/src/calendar/index.js +10 -6
  23. package/dist/src/calendar/index.js.map +1 -1
  24. package/dist/src/flowchart/index.d.ts +35 -31
  25. package/dist/src/flowchart/index.d.ts.map +1 -1
  26. package/dist/src/flowchart/index.js +35 -31
  27. package/dist/src/flowchart/index.js.map +1 -1
  28. package/dist/src/flowchart/library.d.ts +108 -84
  29. package/dist/src/flowchart/library.d.ts.map +1 -1
  30. package/dist/src/flowchart/library.js +108 -84
  31. package/dist/src/flowchart/library.js.map +1 -1
  32. package/dist/src/flowchart/payload.d.ts +39 -107
  33. package/dist/src/flowchart/payload.d.ts.map +1 -1
  34. package/dist/src/flowchart/payload.js +3 -3
  35. package/dist/src/flowchart/payload.js.map +1 -1
  36. package/dist/src/flowchart/values.d.ts +35 -31
  37. package/dist/src/flowchart/values.d.ts.map +1 -1
  38. package/dist/src/flowchart/values.js +35 -31
  39. package/dist/src/flowchart/values.js.map +1 -1
  40. package/dist/src/flowchart/window.d.ts +0 -12
  41. package/dist/src/flowchart/window.d.ts.map +1 -1
  42. package/dist/src/flowchart/window.js +3 -2
  43. package/dist/src/flowchart/window.js.map +1 -1
  44. package/dist/src/index.d.ts +2 -2
  45. package/dist/src/index.d.ts.map +1 -1
  46. package/dist/src/index.js +1 -1
  47. package/dist/src/index.js.map +1 -1
  48. package/dist/src/internal.d.ts +7 -3
  49. package/dist/src/internal.d.ts.map +1 -1
  50. package/dist/src/internal.js +12 -3
  51. package/dist/src/internal.js.map +1 -1
  52. package/dist/src/plan/assemble.d.ts +8 -0
  53. package/dist/src/plan/assemble.d.ts.map +1 -1
  54. package/dist/src/plan/assemble.js +1 -1
  55. package/dist/src/plan/assemble.js.map +1 -1
  56. package/dist/src/plan/builders.d.ts +1518 -2
  57. package/dist/src/plan/builders.d.ts.map +1 -1
  58. package/dist/src/plan/builders.js +248 -114
  59. package/dist/src/plan/builders.js.map +1 -1
  60. package/dist/src/plan/event-rows.d.ts +9 -14
  61. package/dist/src/plan/event-rows.d.ts.map +1 -1
  62. package/dist/src/plan/event-rows.js +6 -46
  63. package/dist/src/plan/event-rows.js.map +1 -1
  64. package/dist/src/plan/factories.d.ts +72 -4
  65. package/dist/src/plan/factories.d.ts.map +1 -1
  66. package/dist/src/plan/factories.js +147 -1
  67. package/dist/src/plan/factories.js.map +1 -1
  68. package/dist/src/plan/index.d.ts +147 -125
  69. package/dist/src/plan/index.d.ts.map +1 -1
  70. package/dist/src/plan/index.js +135 -122
  71. package/dist/src/plan/index.js.map +1 -1
  72. package/dist/src/plan/ir.d.ts +1105 -44
  73. package/dist/src/plan/ir.d.ts.map +1 -1
  74. package/dist/src/plan/ir.js +5 -0
  75. package/dist/src/plan/ir.js.map +1 -1
  76. package/dist/src/plan/library.d.ts +65 -42
  77. package/dist/src/plan/library.d.ts.map +1 -1
  78. package/dist/src/plan/library.js +65 -42
  79. package/dist/src/plan/library.js.map +1 -1
  80. package/dist/src/plan/nested-checks.d.ts +146 -0
  81. package/dist/src/plan/nested-checks.d.ts.map +1 -0
  82. package/dist/src/plan/nested-checks.js +468 -0
  83. package/dist/src/plan/nested-checks.js.map +1 -0
  84. package/dist/src/plan/nested-patch.d.ts +35 -0
  85. package/dist/src/plan/nested-patch.d.ts.map +1 -0
  86. package/dist/src/plan/nested-patch.js +143 -0
  87. package/dist/src/plan/nested-patch.js.map +1 -0
  88. package/dist/src/plan/nested-read.d.ts +3250 -0
  89. package/dist/src/plan/nested-read.d.ts.map +1 -0
  90. package/dist/src/plan/nested-read.js +163 -0
  91. package/dist/src/plan/nested-read.js.map +1 -0
  92. package/dist/src/plan/nested.d.ts +280 -0
  93. package/dist/src/plan/nested.d.ts.map +1 -0
  94. package/dist/src/plan/nested.js +6 -0
  95. package/dist/src/plan/nested.js.map +1 -0
  96. package/dist/src/plan/ordered-source.d.ts +1030 -1
  97. package/dist/src/plan/ordered-source.d.ts.map +1 -1
  98. package/dist/src/plan/ordered-source.js +48 -6
  99. package/dist/src/plan/ordered-source.js.map +1 -1
  100. package/dist/src/plan/over.d.ts +111 -75
  101. package/dist/src/plan/over.d.ts.map +1 -1
  102. package/dist/src/plan/over.js +111 -75
  103. package/dist/src/plan/over.js.map +1 -1
  104. package/dist/src/plan/pick.d.ts +15 -3
  105. package/dist/src/plan/pick.d.ts.map +1 -1
  106. package/dist/src/plan/pick.js +75 -36
  107. package/dist/src/plan/pick.js.map +1 -1
  108. package/dist/src/plan/plan.d.ts +2719 -558
  109. package/dist/src/plan/plan.d.ts.map +1 -1
  110. package/dist/src/plan/plan.js +14 -2
  111. package/dist/src/plan/plan.js.map +1 -1
  112. package/dist/src/plan/reads.d.ts +421 -0
  113. package/dist/src/plan/reads.d.ts.map +1 -0
  114. package/dist/src/plan/reads.js +143 -0
  115. package/dist/src/plan/reads.js.map +1 -0
  116. package/dist/src/plan/refs.d.ts +111 -75
  117. package/dist/src/plan/refs.d.ts.map +1 -1
  118. package/dist/src/plan/refs.js +111 -75
  119. package/dist/src/plan/refs.js.map +1 -1
  120. package/dist/src/plan/root.d.ts +10 -5
  121. package/dist/src/plan/root.d.ts.map +1 -1
  122. package/dist/src/plan/root.js +76 -13
  123. package/dist/src/plan/root.js.map +1 -1
  124. package/dist/src/plan/series.d.ts +5140 -4331
  125. package/dist/src/plan/series.d.ts.map +1 -1
  126. package/dist/src/plan/series.js +1026 -264
  127. package/dist/src/plan/series.js.map +1 -1
  128. package/dist/src/plan/shade.d.ts +981 -0
  129. package/dist/src/plan/shade.d.ts.map +1 -0
  130. package/dist/src/plan/shade.js +60 -0
  131. package/dist/src/plan/shade.js.map +1 -0
  132. package/dist/src/plan/types.d.ts +178 -18
  133. package/dist/src/plan/types.d.ts.map +1 -1
  134. package/dist/src/plan/types.js +69 -19
  135. package/dist/src/plan/types.js.map +1 -1
  136. package/dist/src/query/builder.d.ts +3 -3
  137. package/dist/src/query/builder.d.ts.map +1 -1
  138. package/dist/src/query/builder.js +1 -1
  139. package/dist/src/query/library.d.ts +3 -3
  140. package/dist/src/query/library.d.ts.map +1 -1
  141. package/dist/src/query/library.js +1 -1
  142. package/dist/src/query/queries.d.ts +2 -2
  143. package/dist/src/query/queries.js +1 -1
  144. package/dist/src/query/saved.d.ts +8 -4
  145. package/dist/src/query/saved.d.ts.map +1 -1
  146. package/dist/src/query/saved.js +8 -4
  147. package/dist/src/query/saved.js.map +1 -1
  148. package/dist/src/query/types.d.ts +8 -3
  149. package/dist/src/query/types.d.ts.map +1 -1
  150. package/dist/src/query/types.js +8 -3
  151. package/dist/src/query/types.js.map +1 -1
  152. package/dist/src/roster/index.d.ts +47 -91
  153. package/dist/src/roster/index.d.ts.map +1 -1
  154. package/dist/src/roster/index.js +6 -6
  155. package/dist/src/roster/index.js.map +1 -1
  156. package/dist/src/roster/targets.d.ts +8 -4
  157. package/dist/src/roster/targets.d.ts.map +1 -1
  158. package/dist/src/roster/targets.js +9 -5
  159. package/dist/src/roster/targets.js.map +1 -1
  160. package/dist/src/schedule/cell-checks.js +3 -3
  161. package/dist/src/schedule/cell-checks.js.map +1 -1
  162. package/dist/src/schedule/days.d.ts +1 -1
  163. package/dist/src/schedule/days.js +1 -1
  164. package/dist/src/schedule/events.d.ts +10 -6
  165. package/dist/src/schedule/events.d.ts.map +1 -1
  166. package/dist/src/schedule/events.js +252 -228
  167. package/dist/src/schedule/events.js.map +1 -1
  168. package/dist/src/schedule/patch.d.ts +1 -1
  169. package/dist/src/schedule/patch.js +1 -1
  170. package/dist/src/schedule/periods.d.ts +8 -4
  171. package/dist/src/schedule/periods.d.ts.map +1 -1
  172. package/dist/src/schedule/periods.js +1 -1
  173. package/dist/src/schedule/periods.js.map +1 -1
  174. package/dist/src/schedule/record-window.d.ts +38 -58
  175. package/dist/src/schedule/record-window.d.ts.map +1 -1
  176. package/dist/src/schedule/record-window.js +15 -16
  177. package/dist/src/schedule/record-window.js.map +1 -1
  178. package/dist/src/schedule/resources.d.ts +1 -1
  179. package/dist/src/schedule/session.d.ts +1 -1
  180. package/dist/src/schedule/session.js +1 -1
  181. package/dist/src/schedule/types.d.ts +29 -1
  182. package/dist/src/schedule/types.d.ts.map +1 -1
  183. package/dist/src/schedule/types.js +16 -1
  184. package/dist/src/schedule/types.js.map +1 -1
  185. package/dist/src/schematic/index.d.ts +19 -9
  186. package/dist/src/schematic/index.d.ts.map +1 -1
  187. package/dist/src/schematic/index.js +19 -9
  188. package/dist/src/schematic/index.js.map +1 -1
  189. package/dist/src/schematic/kinds.d.ts +4 -4
  190. package/dist/src/schematic/kinds.js +9 -9
  191. package/dist/src/schematic/kinds.js.map +1 -1
  192. package/dist/src/schematic/payload.d.ts +38 -88
  193. package/dist/src/schematic/payload.d.ts.map +1 -1
  194. package/dist/src/schematic/payload.js +4 -4
  195. package/dist/src/schematic/payload.js.map +1 -1
  196. package/dist/src/schematic/window.d.ts +8 -7
  197. package/dist/src/schematic/window.d.ts.map +1 -1
  198. package/dist/src/schematic/window.js +22 -19
  199. package/dist/src/schematic/window.js.map +1 -1
  200. package/dist/src/sheet/bridge.d.ts +19 -0
  201. package/dist/src/sheet/bridge.d.ts.map +1 -1
  202. package/dist/src/sheet/bridge.js +28 -21
  203. package/dist/src/sheet/bridge.js.map +1 -1
  204. package/dist/src/sheet/index.d.ts +66 -46
  205. package/dist/src/sheet/index.d.ts.map +1 -1
  206. package/dist/src/sheet/index.js +66 -46
  207. package/dist/src/sheet/index.js.map +1 -1
  208. package/dist/src/sheet/library.d.ts +13 -8
  209. package/dist/src/sheet/library.d.ts.map +1 -1
  210. package/dist/src/sheet/library.js +13 -8
  211. package/dist/src/sheet/library.js.map +1 -1
  212. package/dist/src/sheet/record.d.ts +1 -1
  213. package/dist/src/sheet/record.js +2 -2
  214. package/dist/src/sheet/record.js.map +1 -1
  215. package/dist/src/sheet/registers.d.ts +152 -128
  216. package/dist/src/sheet/registers.d.ts.map +1 -1
  217. package/dist/src/sheet/registers.js +152 -128
  218. package/dist/src/sheet/registers.js.map +1 -1
  219. package/dist/src/sheet/root.d.ts +4 -1
  220. package/dist/src/sheet/root.d.ts.map +1 -1
  221. package/dist/src/sheet/root.js +15 -3
  222. package/dist/src/sheet/root.js.map +1 -1
  223. package/dist/src/sheet/sheet.d.ts +39 -113
  224. package/dist/src/sheet/sheet.d.ts.map +1 -1
  225. package/dist/src/sheet/sheet.js +7 -5
  226. package/dist/src/sheet/sheet.js.map +1 -1
  227. package/dist/src/sheet/sub-rows.d.ts +106 -76
  228. package/dist/src/sheet/sub-rows.d.ts.map +1 -1
  229. package/dist/src/sheet/sub-rows.js +106 -76
  230. package/dist/src/sheet/sub-rows.js.map +1 -1
  231. package/dist/src/sheet/types.d.ts +19 -62
  232. package/dist/src/sheet/types.d.ts.map +1 -1
  233. package/dist/src/studio/builder.d.ts +3 -153
  234. package/dist/src/studio/builder.d.ts.map +1 -1
  235. package/dist/src/studio/builder.js +1 -1
  236. package/dist/src/studio/canvas.d.ts +5 -4
  237. package/dist/src/studio/canvas.d.ts.map +1 -1
  238. package/dist/src/studio/canvas.js +8 -7
  239. package/dist/src/studio/canvas.js.map +1 -1
  240. package/dist/src/studio/component.d.ts +30 -20
  241. package/dist/src/studio/component.d.ts.map +1 -1
  242. package/dist/src/studio/component.js +26 -61
  243. package/dist/src/studio/component.js.map +1 -1
  244. package/dist/src/studio/index.d.ts +2 -2
  245. package/dist/src/studio/index.d.ts.map +1 -1
  246. package/dist/src/studio/index.js +1 -1
  247. package/dist/src/studio/index.js.map +1 -1
  248. package/dist/src/studio/inspector.d.ts +10 -39
  249. package/dist/src/studio/inspector.d.ts.map +1 -1
  250. package/dist/src/studio/inspector.js +11 -31
  251. package/dist/src/studio/inspector.js.map +1 -1
  252. package/dist/src/studio/library.d.ts +3 -169
  253. package/dist/src/studio/library.d.ts.map +1 -1
  254. package/dist/src/studio/library.js +1 -1
  255. package/dist/src/studio/page.d.ts +0 -8
  256. package/dist/src/studio/page.d.ts.map +1 -1
  257. package/dist/src/studio/pages.d.ts +17 -591
  258. package/dist/src/studio/pages.d.ts.map +1 -1
  259. package/dist/src/studio/pages.js +17 -44
  260. package/dist/src/studio/pages.js.map +1 -1
  261. package/dist/src/studio/palette.d.ts +2 -7
  262. package/dist/src/studio/palette.d.ts.map +1 -1
  263. package/dist/src/studio/palette.js +4 -5
  264. package/dist/src/studio/palette.js.map +1 -1
  265. package/dist/src/studio/publish.d.ts +8 -18
  266. package/dist/src/studio/publish.d.ts.map +1 -1
  267. package/dist/src/studio/publish.js +10 -36
  268. package/dist/src/studio/publish.js.map +1 -1
  269. package/dist/src/utils/derive.d.ts +12 -12
  270. package/dist/src/utils/derive.d.ts.map +1 -1
  271. package/dist/src/utils/derive.js +5 -2
  272. package/dist/src/utils/derive.js.map +1 -1
  273. package/dist/src/utils/ordered-source.d.ts.map +1 -1
  274. package/dist/src/utils/ordered-source.js +14 -5
  275. package/dist/src/utils/ordered-source.js.map +1 -1
  276. package/dist/test/allocation/allocation.examples.d.ts +1900 -1598
  277. package/dist/test/allocation/allocation.examples.d.ts.map +1 -1
  278. package/dist/test/allocation/allocation.examples.js +179 -89
  279. package/dist/test/allocation/allocation.examples.js.map +1 -1
  280. package/dist/test/allocation/optimise.examples.d.ts.map +1 -1
  281. package/dist/test/allocation/optimise.examples.js +7 -7
  282. package/dist/test/allocation/optimise.examples.js.map +1 -1
  283. package/dist/test/bind/data/data.examples.d.ts +1057 -903
  284. package/dist/test/bind/data/data.examples.d.ts.map +1 -1
  285. package/dist/test/bind/data/data.examples.js +260 -204
  286. package/dist/test/bind/data/data.examples.js.map +1 -1
  287. package/dist/test/bind/record/record.examples.d.ts +457 -426
  288. package/dist/test/bind/record/record.examples.d.ts.map +1 -1
  289. package/dist/test/bind/record/record.examples.js +41 -21
  290. package/dist/test/bind/record/record.examples.js.map +1 -1
  291. package/dist/test/calendar/calendar-records.examples.d.ts +162 -170
  292. package/dist/test/calendar/calendar-records.examples.d.ts.map +1 -1
  293. package/dist/test/calendar/calendar-records.examples.js +20 -12
  294. package/dist/test/calendar/calendar-records.examples.js.map +1 -1
  295. package/dist/test/calendar/calendar-windows.examples.d.ts.map +1 -1
  296. package/dist/test/calendar/calendar-windows.examples.js +12 -12
  297. package/dist/test/calendar/calendar-windows.examples.js.map +1 -1
  298. package/dist/test/calendar/calendar.examples.d.ts +1172 -901
  299. package/dist/test/calendar/calendar.examples.d.ts.map +1 -1
  300. package/dist/test/calendar/calendar.examples.js +211 -124
  301. package/dist/test/calendar/calendar.examples.js.map +1 -1
  302. package/dist/test/calendar/optimise.examples.js +2 -2
  303. package/dist/test/calendar/optimise.examples.js.map +1 -1
  304. package/dist/test/examples-package.d.ts +6 -9
  305. package/dist/test/examples-package.d.ts.map +1 -1
  306. package/dist/test/examples-package.js +11 -32
  307. package/dist/test/examples-package.js.map +1 -1
  308. package/dist/test/flowchart/flowchart.examples.d.ts +3841 -2820
  309. package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -1
  310. package/dist/test/flowchart/flowchart.examples.js +211 -121
  311. package/dist/test/flowchart/flowchart.examples.js.map +1 -1
  312. package/dist/test/plan/optimise.examples.js +2 -2
  313. package/dist/test/plan/optimise.examples.js.map +1 -1
  314. package/dist/test/plan/plan-events.examples.d.ts +4055 -3263
  315. package/dist/test/plan/plan-events.examples.d.ts.map +1 -1
  316. package/dist/test/plan/plan-events.examples.js +492 -319
  317. package/dist/test/plan/plan-events.examples.js.map +1 -1
  318. package/dist/test/plan/plan-nested.examples.d.ts +1829 -0
  319. package/dist/test/plan/plan-nested.examples.d.ts.map +1 -0
  320. package/dist/test/plan/plan-nested.examples.js +321 -0
  321. package/dist/test/plan/plan-nested.examples.js.map +1 -0
  322. package/dist/test/plan/plan-records.examples.d.ts +328 -362
  323. package/dist/test/plan/plan-records.examples.d.ts.map +1 -1
  324. package/dist/test/plan/plan-records.examples.js +81 -57
  325. package/dist/test/plan/plan-records.examples.js.map +1 -1
  326. package/dist/test/plan/plan-windows.examples.d.ts +1756 -1398
  327. package/dist/test/plan/plan-windows.examples.d.ts.map +1 -1
  328. package/dist/test/plan/plan-windows.examples.js +161 -128
  329. package/dist/test/plan/plan-windows.examples.js.map +1 -1
  330. package/dist/test/plan/plan.examples.d.ts +2238 -5712
  331. package/dist/test/plan/plan.examples.d.ts.map +1 -1
  332. package/dist/test/plan/plan.examples.js +839 -968
  333. package/dist/test/plan/plan.examples.js.map +1 -1
  334. package/dist/test/query/query.examples.d.ts +5221 -3005
  335. package/dist/test/query/query.examples.d.ts.map +1 -1
  336. package/dist/test/query/query.examples.js +169 -118
  337. package/dist/test/query/query.examples.js.map +1 -1
  338. package/dist/test/roster/optimise.examples.d.ts.map +1 -1
  339. package/dist/test/roster/optimise.examples.js +7 -7
  340. package/dist/test/roster/optimise.examples.js.map +1 -1
  341. package/dist/test/roster/roster-records.examples.d.ts +364 -392
  342. package/dist/test/roster/roster-records.examples.d.ts.map +1 -1
  343. package/dist/test/roster/roster-records.examples.js +40 -26
  344. package/dist/test/roster/roster-records.examples.js.map +1 -1
  345. package/dist/test/roster/roster.examples.d.ts +4605 -4308
  346. package/dist/test/roster/roster.examples.d.ts.map +1 -1
  347. package/dist/test/roster/roster.examples.js +212 -113
  348. package/dist/test/roster/roster.examples.js.map +1 -1
  349. package/dist/test/schedule/schedule.examples.d.ts +2646 -2471
  350. package/dist/test/schedule/schedule.examples.d.ts.map +1 -1
  351. package/dist/test/schedule/schedule.examples.js +144 -88
  352. package/dist/test/schedule/schedule.examples.js.map +1 -1
  353. package/dist/test/schematic/schematic-records.examples.d.ts +286 -276
  354. package/dist/test/schematic/schematic-records.examples.d.ts.map +1 -1
  355. package/dist/test/schematic/schematic-records.examples.js +52 -38
  356. package/dist/test/schematic/schematic-records.examples.js.map +1 -1
  357. package/dist/test/schematic/schematic.examples.d.ts +1842 -1491
  358. package/dist/test/schematic/schematic.examples.d.ts.map +1 -1
  359. package/dist/test/schematic/schematic.examples.js +240 -134
  360. package/dist/test/schematic/schematic.examples.js.map +1 -1
  361. package/dist/test/sheet/optimise.examples.d.ts +102 -95
  362. package/dist/test/sheet/optimise.examples.d.ts.map +1 -1
  363. package/dist/test/sheet/optimise.examples.js +7 -3
  364. package/dist/test/sheet/optimise.examples.js.map +1 -1
  365. package/dist/test/sheet/sheet-records.examples.d.ts +175 -214
  366. package/dist/test/sheet/sheet-records.examples.d.ts.map +1 -1
  367. package/dist/test/sheet/sheet-records.examples.js +29 -17
  368. package/dist/test/sheet/sheet-records.examples.js.map +1 -1
  369. package/dist/test/sheet/sheet.examples.d.ts +3642 -3353
  370. package/dist/test/sheet/sheet.examples.d.ts.map +1 -1
  371. package/dist/test/sheet/sheet.examples.js +389 -282
  372. package/dist/test/sheet/sheet.examples.js.map +1 -1
  373. package/dist/test/studio/component.examples.js +2 -2
  374. package/dist/test/studio/component.examples.js.map +1 -1
  375. package/dist/test/studio/page.examples.js +6 -6
  376. package/dist/test/studio/page.examples.js.map +1 -1
  377. package/dist/test/studio/studio.examples.d.ts +2329 -873
  378. package/dist/test/studio/studio.examples.d.ts.map +1 -1
  379. package/dist/test/studio/studio.examples.js +155 -107
  380. package/dist/test/studio/studio.examples.js.map +1 -1
  381. package/package.json +15 -11
@@ -1 +1 @@
1
- {"version":3,"file":"record.examples.d.ts","sourceRoot":"","sources":["../../../../test/bind/record/record.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAQ,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAW,MAAM,eAAe,CAAC;AAQlH,eAAO,MAAM,OAAO,0JAAwC,CAAC;AAC7D,eAAO,MAAM,SAAS,4EACsE,CAAC;AAC7F,eAAO,MAAM,KAAK,6DACgD,CAAC;AAInE,eAAO,MAAM,IAAI,uEAEmG,CAAC;AAErH,eAAO,MAAM,gBAAgB,6CAwC3B,CAAC;AAEH,eAAO,MAAM,gBAAgB,6CAsB3B,CAAC;AAIH,eAAO,MAAM,OAAO;;;EAAqD,CAAC;AAC1E,eAAO,MAAM,IAAI;;;6GAA8D,CAAC;AAChF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA0B,CAAC;AAOjD,eAAO,MAAM,WAAW;;;qHAAsE,CAAC;AAC/F,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAiC,CAAC;AAC/D,eAAO,MAAM,gBAAgB;;;sCAG3B,CAAC;AACH,eAAO,MAAM,QAAQ;;;EAAqD,CAAC;AAC3E,eAAO,MAAM,QAAQ;;;;;;EAAgE,CAAC;AACtF,eAAO,MAAM,WAAW;;;;;;qHAAuE,CAAC;AAChG,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKvB,CAAC;AAEH,eAAO,MAAM,gBAAgB,6CAsB3B,CAAC;AAEH,eAAO,MAAM,iBAAiB,6CAmB5B,CAAC"}
@@ -11,18 +11,22 @@ import e3 from "@elaraai/e3";
11
11
  // The package-side record + mutation definitions. `Record.bind` takes the
12
12
  // record def + its mutations — the state type, mutation names and arg types
13
13
  // all come from them, so the binding can never drift from the deployed record.
14
- export const counter = e3.record("counter", IntegerType, 0n);
15
- export const increment = e3.mutation.reduce("increment", counter, East.function([IntegerType, IntegerType], IntegerType, ($, state, by) => state.add(by)));
16
- export const reset = e3.mutation.reduce("reset", counter, East.function([IntegerType], IntegerType, (_$, _state) => 0n));
17
- // What the record runtime's specs write beside them (#1378): a take off the
18
- // counter that refuses to leave it below zero, so a mutation fails as a
19
- // reducer's program does.
20
- export const take = e3.mutation.reduce("take", counter, East.function([IntegerType, IntegerType], IntegerType, (_$, state, n) => East.less(state, n).ifElse(() => East.error("the counter holds fewer than that"), () => state.subtract(n))));
14
+ export const counter = e3.record("counter", IntegerType, {
15
+ initial: 0n,
16
+ mutations: (mutation) => ({
17
+ increment: mutation.reduce(East.function([IntegerType, IntegerType], IntegerType, ($, state, by) => state.add(by))),
18
+ reset: mutation.reduce(East.function([IntegerType], IntegerType, (_$, _state) => 0n)),
19
+ // What the record runtime's specs write beside them (#1378): a take off the
20
+ // counter that refuses to leave it below zero, so a mutation fails as a
21
+ // reducer's program does.
22
+ take: mutation.reduce(East.function([IntegerType, IntegerType], IntegerType, (_$, state, n) => East.less(state, n).ifElse(() => East.error("the counter holds fewer than that"), () => state.subtract(n)))),
23
+ }),
24
+ });
21
25
  export const recordBindMutate = example({
22
26
  keywords: ["Record", "bind", "mutate", "Reactive", "Button", "read", "pending", "status", "system of record"],
23
27
  description: "Bind an e3.record + its mutations; buttons apply typed mutations, a stat shows the current state, and the mutate lifecycle status is rendered",
24
28
  fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
25
- const r = $.let(Record.bind(counter, [increment, reset]));
29
+ const r = $.let(Record.bind(counter, ["increment", "reset"]));
26
30
  const status = $.let(r.mutate.status().getTag().upperCase());
27
31
  // Surface the failure detail so a failed mutation shows WHY, not just
28
32
  // that it failed.
@@ -50,7 +54,7 @@ export const recordBindStatus = example({
50
54
  keywords: ["Record", "bind", "status", "error", "lifecycle", "mutate"],
51
55
  description: "Render the mutation lifecycle (idle / running / committed / failed / cancelled) and any failure",
52
56
  fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
53
- const r = $.let(Record.bind(counter, [increment]));
57
+ const r = $.let(Record.bind(counter, ["increment"]));
54
58
  const bump = $.const(East.function([], NullType, $ => { $(r.mutate.increment(1n)); }));
55
59
  const statusLine = $.let(r.mutate.status().getTag().upperCase());
56
60
  const detail = $.let(r.mutate.error().match({
@@ -64,34 +68,50 @@ export const recordBindStatus = example({
64
68
  // A keyed record a Sheet edits — each job's key is its id — and its patch
65
69
  // door, which every Save commits through.
66
70
  export const JobType = StructType({ task: StringType, qty: IntegerType });
67
- export const jobs = e3.record("jobs", DictType(StringType, JobType), new Map());
68
- export const jobsPatch = e3.mutation.patch(jobs);
71
+ export const jobs = e3.record("jobs", DictType(StringType, JobType), {
72
+ initial: new Map(),
73
+ mutations: (mutation) => ({
74
+ patch: mutation.patch(),
75
+ }),
76
+ });
69
77
  // The records `Record.onApply`'s specs commit through beside the jobs (#1378),
70
78
  // each through its patch door: jobs whose index refuses a quantity below zero,
71
79
  // so a write fails as an index's program does; a page whose cells a layout
72
80
  // edits inside its one entry; and a week whose groups and loose tasks a Sheet
73
81
  // edits inside its entry.
74
- export const checkedJobs = e3.record("checked_jobs", DictType(StringType, JobType), new Map());
75
- export const checkedJobsPatch = e3.mutation.patch(checkedJobs);
76
- export const checkedJobsByQty = e3.recordIndex("checked_jobs_by_qty", checkedJobs, {
77
- key: East.function([StringType, JobType], IntegerType, (_$, _id, job) => East.less(job.qty, 0n).ifElse(() => East.error("a job's quantity is never below zero"), () => job.qty)),
82
+ export const checkedJobs = e3.record("checked_jobs", DictType(StringType, JobType), {
83
+ initial: new Map(),
84
+ indexes: (index) => ({
85
+ checked_jobs_by_qty: index.key(East.function([StringType, JobType], IntegerType, (_$, _id, job) => East.less(job.qty, 0n).ifElse(() => East.error("a job's quantity is never below zero"), () => job.qty))),
86
+ }),
87
+ mutations: (mutation) => ({
88
+ patch: mutation.patch(),
89
+ }),
78
90
  });
79
91
  export const CellType = StructType({ key: StringType, span: IntegerType });
80
92
  export const PageType = StructType({ title: StringType, cells: ArrayType(CellType) });
81
- export const layoutPages = e3.record("layout_pages", DictType(StringType, PageType), new Map());
82
- export const layoutPagesPatch = e3.mutation.patch(layoutPages);
93
+ export const layoutPages = e3.record("layout_pages", DictType(StringType, PageType), {
94
+ initial: new Map(),
95
+ mutations: (mutation) => ({
96
+ patch: mutation.patch(),
97
+ }),
98
+ });
83
99
  export const WeekLineType = StructType({ id: StringType, task: StringType });
84
100
  export const WeekGroupType = StructType({ id: StringType, name: StringType, lines: ArrayType(WeekLineType) });
85
101
  export const WeekEntryType = Editing.Types.Entry(WeekGroupType, "lines");
86
102
  export const WeekType = StructType({ title: StringType, entries: ArrayType(WeekEntryType) });
87
- export const plannedWeeks = e3.record("planned_weeks", DictType(StringType, WeekType), new Map());
88
- export const plannedWeeksPatch = e3.mutation.patch(plannedWeeks);
103
+ export const plannedWeeks = e3.record("planned_weeks", DictType(StringType, WeekType), {
104
+ initial: new Map(),
105
+ mutations: (mutation) => ({
106
+ patch: mutation.patch(),
107
+ }),
108
+ });
89
109
  export const recordSheetApply = example({
90
110
  keywords: ["Record", "onApply", "Sheet", "Save", "patch", "commit", "conflict", "discard", "bindPaged", "editing", "system of record"],
91
111
  description: "A Sheet over a record: its rows paged from the record, each Save one commit through the record's patch door — a stale Save is a conflict naming the entry, and nothing is overwritten",
92
112
  fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
93
113
  const rows = $.let(Data.bindPaged(jobs));
94
- const record = $.let(Record.bind(jobs, [jobsPatch]));
114
+ const record = $.let(Record.bind(jobs));
95
115
  return (_jsx(Box, { height: "360px", children: _jsx(Sheet, { data: rows, columns: {
96
116
  task: Sheet.column.text(JobType, { header: "Task", width: "220px" }),
97
117
  qty: Sheet.column.integer(JobType, { header: "Qty", width: "96px" }),
@@ -103,7 +123,7 @@ export const recordBindHistory = example({
103
123
  keywords: ["Record", "bind", "history", "audit", "commit", "chain"],
104
124
  description: "Read the record's commit history (the audit trail) alongside its current value",
105
125
  fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
106
- const r = $.let(Record.bind(counter, [increment]));
126
+ const r = $.let(Record.bind(counter, ["increment"]));
107
127
  const count = $.let(r.history().match({
108
128
  some: (_$, commits) => commits.size(),
109
129
  none: _$ => 0n,
@@ -1 +1 @@
1
- {"version":3,"file":"record.examples.js","sourceRoot":"","sources":["../../../../test/bind/record/record.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClH,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/G,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,aAAa,CAAC;AAE7B,0EAA0E;AAC1E,4EAA4E;AAC5E,+EAA+E;AAC/E,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,SAAS,GAAG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AAE,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,eAAe,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAC3C,KAAC,QAAQ,cAAE,CAAC,CAAC,EAAE;YACX,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YACrD,MAAM,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC;gBAClC,IAAI,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE;gBACrC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE;aACjB,CAAC,CAAC,CAAC;YACJ,OAAO,CACH,MAAC,MAAM,IAAC,GAAG,EAAC,GAAG,EAAC,KAAK,EAAC,SAAS,aAC3B,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,GAAI,EACrD,KAAC,IAAI,CAAC,SAAS,cAAE,IAAI,CAAC,GAAG,CAAA,GAAG,KAAK,UAAU,GAAkB,IACxD,CACZ,CAAC;QACN,CAAC,GAAY,CAChB,CAAC;IACF,MAAM,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -21,208 +21,200 @@ export declare const indexedCalendarEvents: e3.RecordDef<DictType<StringType, St
21
21
  readonly machine: StringType;
22
22
  readonly status: StringType;
23
23
  readonly customer: StringType;
24
- }>>, [variant<"field", "records">, variant<"field", "indexed_calendar_events">]>;
25
- export declare const indexedCalendarPatch: e3.MutationDef<"patch", DictType<StringType, StructType<{
24
+ }>>, [variant<"field", "records">, variant<"field", "indexed_calendar_events">], e3.IndexesOf<{
25
+ calendar_by_time: e3.IndexDraft<StructType<{
26
+ on: StructType<Record<never, never>>;
27
+ node: import("@elaraai/east").IntegerType;
28
+ at: OptionType<DateTimeType>;
29
+ }>, import("@elaraai/east").NullType, readonly [], {
30
+ readonly interval: {
31
+ readonly from: "start";
32
+ readonly to: "end";
33
+ };
34
+ }>;
35
+ calendar_by_status_time: e3.IndexDraft<StructType<{
36
+ on: StructType<{
37
+ status: StringType;
38
+ }>;
39
+ node: import("@elaraai/east").IntegerType;
40
+ at: OptionType<DateTimeType>;
41
+ }>, import("@elaraai/east").NullType, readonly ["status"], {
42
+ readonly interval: {
43
+ readonly from: "start";
44
+ readonly to: "end";
45
+ };
46
+ }>;
47
+ calendar_by_machine_time: e3.IndexDraft<StructType<{
48
+ on: StructType<{
49
+ machine: StringType;
50
+ }>;
51
+ node: import("@elaraai/east").IntegerType;
52
+ at: OptionType<DateTimeType>;
53
+ }>, import("@elaraai/east").NullType, readonly ["machine"], {
54
+ readonly interval: {
55
+ readonly from: "start";
56
+ readonly to: "end";
57
+ };
58
+ }>;
59
+ }, DictType<StringType, StructType<{
26
60
  readonly title: StringType;
27
61
  readonly start: OptionType<DateTimeType>;
28
62
  readonly end: OptionType<DateTimeType>;
29
63
  readonly machine: StringType;
30
64
  readonly status: StringType;
31
65
  readonly customer: StringType;
32
- }>>, [import("@elaraai/east").VariantType<{
33
- unchanged: import("@elaraai/east").NullType;
34
- replace: StructType<{
35
- before: DictType<StringType, StructType<{
36
- readonly title: StringType;
37
- readonly start: OptionType<DateTimeType>;
38
- readonly end: OptionType<DateTimeType>;
39
- readonly machine: StringType;
40
- readonly status: StringType;
41
- readonly customer: StringType;
42
- }>>;
43
- after: DictType<StringType, StructType<{
44
- readonly title: StringType;
45
- readonly start: OptionType<DateTimeType>;
46
- readonly end: OptionType<DateTimeType>;
47
- readonly machine: StringType;
48
- readonly status: StringType;
49
- readonly customer: StringType;
50
- }>>;
51
- }>;
52
- patch: DictType<StringType, import("@elaraai/east").VariantType<{
53
- delete: StructType<{
54
- readonly title: StringType;
55
- readonly start: OptionType<DateTimeType>;
56
- readonly end: OptionType<DateTimeType>;
57
- readonly machine: StringType;
58
- readonly status: StringType;
59
- readonly customer: StringType;
60
- }>;
61
- insert: StructType<{
62
- readonly title: StringType;
63
- readonly start: OptionType<DateTimeType>;
64
- readonly end: OptionType<DateTimeType>;
65
- readonly machine: StringType;
66
- readonly status: StringType;
67
- readonly customer: StringType;
66
+ }>>>, e3.MutationsOf<{
67
+ patch: e3.MutationDraft<[import("@elaraai/east").VariantType<{
68
+ unchanged: import("@elaraai/east").NullType;
69
+ replace: StructType<{
70
+ before: DictType<StringType, StructType<{
71
+ readonly title: StringType;
72
+ readonly start: OptionType<DateTimeType>;
73
+ readonly end: OptionType<DateTimeType>;
74
+ readonly machine: StringType;
75
+ readonly status: StringType;
76
+ readonly customer: StringType;
77
+ }>>;
78
+ after: DictType<StringType, StructType<{
79
+ readonly title: StringType;
80
+ readonly start: OptionType<DateTimeType>;
81
+ readonly end: OptionType<DateTimeType>;
82
+ readonly machine: StringType;
83
+ readonly status: StringType;
84
+ readonly customer: StringType;
85
+ }>>;
68
86
  }>;
69
- update: import("@elaraai/east").VariantType<{
70
- unchanged: import("@elaraai/east").NullType;
71
- replace: StructType<{
72
- before: StructType<{
73
- readonly title: StringType;
74
- readonly start: OptionType<DateTimeType>;
75
- readonly end: OptionType<DateTimeType>;
76
- readonly machine: StringType;
77
- readonly status: StringType;
78
- readonly customer: StringType;
79
- }>;
80
- after: StructType<{
81
- readonly title: StringType;
82
- readonly start: OptionType<DateTimeType>;
83
- readonly end: OptionType<DateTimeType>;
84
- readonly machine: StringType;
85
- readonly status: StringType;
86
- readonly customer: StringType;
87
- }>;
87
+ patch: DictType<StringType, import("@elaraai/east").VariantType<{
88
+ delete: StructType<{
89
+ readonly title: StringType;
90
+ readonly start: OptionType<DateTimeType>;
91
+ readonly end: OptionType<DateTimeType>;
92
+ readonly machine: StringType;
93
+ readonly status: StringType;
94
+ readonly customer: StringType;
88
95
  }>;
89
- patch: StructType<{
90
- readonly title: import("@elaraai/east").VariantType<{
91
- unchanged: import("@elaraai/east").NullType;
92
- replace: StructType<{
93
- before: StringType;
94
- after: StringType;
96
+ insert: StructType<{
97
+ readonly title: StringType;
98
+ readonly start: OptionType<DateTimeType>;
99
+ readonly end: OptionType<DateTimeType>;
100
+ readonly machine: StringType;
101
+ readonly status: StringType;
102
+ readonly customer: StringType;
103
+ }>;
104
+ update: import("@elaraai/east").VariantType<{
105
+ unchanged: import("@elaraai/east").NullType;
106
+ replace: StructType<{
107
+ before: StructType<{
108
+ readonly title: StringType;
109
+ readonly start: OptionType<DateTimeType>;
110
+ readonly end: OptionType<DateTimeType>;
111
+ readonly machine: StringType;
112
+ readonly status: StringType;
113
+ readonly customer: StringType;
114
+ }>;
115
+ after: StructType<{
116
+ readonly title: StringType;
117
+ readonly start: OptionType<DateTimeType>;
118
+ readonly end: OptionType<DateTimeType>;
119
+ readonly machine: StringType;
120
+ readonly status: StringType;
121
+ readonly customer: StringType;
95
122
  }>;
96
123
  }>;
97
- readonly start: import("@elaraai/east").VariantType<{
98
- unchanged: import("@elaraai/east").NullType;
99
- replace: StructType<{
100
- before: OptionType<DateTimeType>;
101
- after: OptionType<DateTimeType>;
124
+ patch: StructType<{
125
+ readonly title: import("@elaraai/east").VariantType<{
126
+ unchanged: import("@elaraai/east").NullType;
127
+ replace: StructType<{
128
+ before: StringType;
129
+ after: StringType;
130
+ }>;
102
131
  }>;
103
- patch: import("@elaraai/east").VariantType<{
104
- none: import("@elaraai/east").VariantType<{
105
- unchanged: import("@elaraai/east").NullType;
106
- replace: StructType<{
107
- before: import("@elaraai/east").NullType;
108
- after: import("@elaraai/east").NullType;
109
- }>;
132
+ readonly start: import("@elaraai/east").VariantType<{
133
+ unchanged: import("@elaraai/east").NullType;
134
+ replace: StructType<{
135
+ before: OptionType<DateTimeType>;
136
+ after: OptionType<DateTimeType>;
110
137
  }>;
111
- some: import("@elaraai/east").VariantType<{
112
- unchanged: import("@elaraai/east").NullType;
113
- replace: StructType<{
114
- before: DateTimeType;
115
- after: DateTimeType;
138
+ patch: import("@elaraai/east").VariantType<{
139
+ none: import("@elaraai/east").VariantType<{
140
+ unchanged: import("@elaraai/east").NullType;
141
+ replace: StructType<{
142
+ before: import("@elaraai/east").NullType;
143
+ after: import("@elaraai/east").NullType;
144
+ }>;
145
+ }>;
146
+ some: import("@elaraai/east").VariantType<{
147
+ unchanged: import("@elaraai/east").NullType;
148
+ replace: StructType<{
149
+ before: DateTimeType;
150
+ after: DateTimeType;
151
+ }>;
116
152
  }>;
117
153
  }>;
118
154
  }>;
119
- }>;
120
- readonly end: import("@elaraai/east").VariantType<{
121
- unchanged: import("@elaraai/east").NullType;
122
- replace: StructType<{
123
- before: OptionType<DateTimeType>;
124
- after: OptionType<DateTimeType>;
125
- }>;
126
- patch: import("@elaraai/east").VariantType<{
127
- none: import("@elaraai/east").VariantType<{
128
- unchanged: import("@elaraai/east").NullType;
129
- replace: StructType<{
130
- before: import("@elaraai/east").NullType;
131
- after: import("@elaraai/east").NullType;
132
- }>;
155
+ readonly end: import("@elaraai/east").VariantType<{
156
+ unchanged: import("@elaraai/east").NullType;
157
+ replace: StructType<{
158
+ before: OptionType<DateTimeType>;
159
+ after: OptionType<DateTimeType>;
133
160
  }>;
134
- some: import("@elaraai/east").VariantType<{
135
- unchanged: import("@elaraai/east").NullType;
136
- replace: StructType<{
137
- before: DateTimeType;
138
- after: DateTimeType;
161
+ patch: import("@elaraai/east").VariantType<{
162
+ none: import("@elaraai/east").VariantType<{
163
+ unchanged: import("@elaraai/east").NullType;
164
+ replace: StructType<{
165
+ before: import("@elaraai/east").NullType;
166
+ after: import("@elaraai/east").NullType;
167
+ }>;
168
+ }>;
169
+ some: import("@elaraai/east").VariantType<{
170
+ unchanged: import("@elaraai/east").NullType;
171
+ replace: StructType<{
172
+ before: DateTimeType;
173
+ after: DateTimeType;
174
+ }>;
139
175
  }>;
140
176
  }>;
141
177
  }>;
142
- }>;
143
- readonly machine: import("@elaraai/east").VariantType<{
144
- unchanged: import("@elaraai/east").NullType;
145
- replace: StructType<{
146
- before: StringType;
147
- after: StringType;
178
+ readonly machine: import("@elaraai/east").VariantType<{
179
+ unchanged: import("@elaraai/east").NullType;
180
+ replace: StructType<{
181
+ before: StringType;
182
+ after: StringType;
183
+ }>;
148
184
  }>;
149
- }>;
150
- readonly status: import("@elaraai/east").VariantType<{
151
- unchanged: import("@elaraai/east").NullType;
152
- replace: StructType<{
153
- before: StringType;
154
- after: StringType;
185
+ readonly status: import("@elaraai/east").VariantType<{
186
+ unchanged: import("@elaraai/east").NullType;
187
+ replace: StructType<{
188
+ before: StringType;
189
+ after: StringType;
190
+ }>;
155
191
  }>;
156
- }>;
157
- readonly customer: import("@elaraai/east").VariantType<{
158
- unchanged: import("@elaraai/east").NullType;
159
- replace: StructType<{
160
- before: StringType;
161
- after: StringType;
192
+ readonly customer: import("@elaraai/east").VariantType<{
193
+ unchanged: import("@elaraai/east").NullType;
194
+ replace: StructType<{
195
+ before: StringType;
196
+ after: StringType;
197
+ }>;
162
198
  }>;
163
199
  }>;
164
200
  }>;
165
- }>;
166
- }>>;
167
- }>]>;
168
- export declare const indexedCalendarByTime: e3.RecordIndexDef<"calendar_by_time", DictType<StringType, StructType<{
169
- readonly title: StringType;
170
- readonly start: OptionType<DateTimeType>;
171
- readonly end: OptionType<DateTimeType>;
172
- readonly machine: StringType;
173
- readonly status: StringType;
174
- readonly customer: StringType;
175
- }>>, StructType<Record<never, never> & {
176
- __interval: import("@elaraai/east").IntegerType;
177
- } & {
178
- start: OptionType<DateTimeType>;
179
- }>, import("@elaraai/east").NullType, readonly ["start"]> & {
180
- interval: {
181
- readonly from: "start";
182
- readonly to: "end";
183
- };
184
- };
185
- export declare const indexedCalendarByStatus: e3.RecordIndexDef<"calendar_by_status_time", DictType<StringType, StructType<{
186
- readonly title: StringType;
187
- readonly start: OptionType<DateTimeType>;
188
- readonly end: OptionType<DateTimeType>;
189
- readonly machine: StringType;
190
- readonly status: StringType;
191
- readonly customer: StringType;
192
- }>>, StructType<{
193
- status: StringType;
194
- } & {
195
- __interval: import("@elaraai/east").IntegerType;
196
- } & {
197
- start: OptionType<DateTimeType>;
198
- }>, import("@elaraai/east").NullType, readonly ["status", "start"]> & {
199
- interval: {
200
- readonly from: "start";
201
- readonly to: "end";
202
- };
203
- };
204
- export declare const indexedCalendarByMachine: e3.RecordIndexDef<"calendar_by_machine_time", DictType<StringType, StructType<{
201
+ }>>;
202
+ }>]>;
203
+ }, DictType<StringType, StructType<{
205
204
  readonly title: StringType;
206
205
  readonly start: OptionType<DateTimeType>;
207
206
  readonly end: OptionType<DateTimeType>;
208
207
  readonly machine: StringType;
209
208
  readonly status: StringType;
210
209
  readonly customer: StringType;
211
- }>>, StructType<{
212
- machine: StringType;
213
- } & {
214
- __interval: import("@elaraai/east").IntegerType;
215
- } & {
216
- start: OptionType<DateTimeType>;
217
- }>, import("@elaraai/east").NullType, readonly ["machine", "start"]> & {
218
- interval: {
219
- readonly from: "start";
220
- readonly to: "end";
221
- };
222
- };
210
+ }>>>>;
223
211
  export declare const indexedCalendarMachines: e3.RecordDef<DictType<StringType, StructType<{
224
212
  readonly name: StringType;
225
- }>>, [variant<"field", "records">, variant<"field", "indexed_calendar_machines">]>;
213
+ }>>, [variant<"field", "records">, variant<"field", "indexed_calendar_machines">], e3.IndexesOf<Record<never, never>, DictType<StringType, StructType<{
214
+ readonly name: StringType;
215
+ }>>>, e3.MutationsOf<Record<never, never>, DictType<StringType, StructType<{
216
+ readonly name: StringType;
217
+ }>>>>;
226
218
  export declare const calendarRecordIndexes: import("@elaraai/east").ExampleDef<[], any>;
227
219
  export declare const calendarRecordIndexesMobile: import("@elaraai/east").ExampleDef<[], any>;
228
220
  //# sourceMappingURL=calendar-records.examples.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-records.examples.d.ts","sourceRoot":"","sources":["../../../test/calendar/calendar-records.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AACtC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAUhC,CAAC;AACH,eAAO,MAAM,uBAAuB;;;;;;KAIlC,CAAC;AAEH,eAAO,MAAM,qBAAqB,6CA4BhC,CAAC;AAEH,eAAO,MAAM,2BAA2B,6CA4BtC,CAAC"}
@@ -38,22 +38,30 @@ function calendarSeed() {
38
38
  }
39
39
  return rows;
40
40
  }
41
- export const indexedCalendarEvents = e3.record("indexed_calendar_events", DictType(StringType, IndexedCalendarEvent), calendarSeed());
42
- export const indexedCalendarPatch = e3.mutation.patch(indexedCalendarEvents);
43
- export const indexedCalendarByTime = e3.recordIndex.interval("calendar_by_time", indexedCalendarEvents, { from: "start", to: "end" });
44
- export const indexedCalendarByStatus = e3.recordIndex.interval("calendar_by_status_time", indexedCalendarEvents, { on: ["status"], from: "start", to: "end" });
45
- export const indexedCalendarByMachine = e3.recordIndex.interval("calendar_by_machine_time", indexedCalendarEvents, { on: ["machine"], from: "start", to: "end" });
46
- export const indexedCalendarMachines = e3.record("indexed_calendar_machines", DictType(StringType, StructType({ name: StringType })), new Map([
47
- ["press-a", { name: "Press A" }], ["press-b", { name: "Press B" }],
48
- ]));
41
+ export const indexedCalendarEvents = e3.record("indexed_calendar_events", DictType(StringType, IndexedCalendarEvent), {
42
+ initial: calendarSeed(),
43
+ indexes: (index) => ({
44
+ calendar_by_time: index.interval({ from: "start", to: "end" }),
45
+ calendar_by_status_time: index.interval({ on: ["status"], from: "start", to: "end" }),
46
+ calendar_by_machine_time: index.interval({ on: ["machine"], from: "start", to: "end" }),
47
+ }),
48
+ mutations: (mutation) => ({
49
+ patch: mutation.patch(),
50
+ }),
51
+ });
52
+ export const indexedCalendarMachines = e3.record("indexed_calendar_machines", DictType(StringType, StructType({ name: StringType })), {
53
+ initial: new Map([
54
+ ["press-a", { name: "Press A" }], ["press-b", { name: "Press B" }],
55
+ ]),
56
+ });
49
57
  export const calendarRecordIndexes = example({
50
58
  description: "12,000 events across a year, narrowed through interval indexes. The opening days demonstrate carry-in and year-long events; navigate to other dates for the larger production schedule. Filters and navigation share Slice, and drafts save by original key.",
51
59
  keywords: ["Calendar", "Slice", "Slice.bindRecords", "interval", "overlap", "records", "paging"],
52
60
  inputs: [],
53
61
  fn: East.function([], UIComponentType, _$ => _jsx(Reactive, { children: $ => {
54
- const events = $.let(Record.bind(indexedCalendarEvents, [indexedCalendarPatch]));
62
+ const events = $.let(Record.bind(indexedCalendarEvents));
55
63
  const entries = $.let(Data.bindPaged(indexedCalendarEvents));
56
- const indexed = $.let(Data.bindPaged(indexedCalendarEvents, { indexes: [indexedCalendarByTime, indexedCalendarByStatus, indexedCalendarByMachine] }));
64
+ const indexed = $.let(Data.bindPaged(indexedCalendarEvents, { indexes: ["calendar_by_time", "calendar_by_status_time", "calendar_by_machine_time"] }));
57
65
  // The rail's one source, named after the kind it narrows (#1343): its interval indexes keep every overlapping event.
58
66
  const slice = $.let(Slice.bindRecords("ex.calendarRecordIndexes", {
59
67
  job: { source: indexed, icon: { prefix: "fas", name: "print" },
@@ -74,9 +82,9 @@ export const calendarRecordIndexesMobile = example({
74
82
  keywords: ["Calendar", "Slice", "Slice.bindRecords", "interval", "mobile", "agenda"],
75
83
  inputs: [],
76
84
  fn: East.function([], UIComponentType, _$ => _jsx(Reactive, { children: $ => {
77
- const events = $.let(Record.bind(indexedCalendarEvents, [indexedCalendarPatch]));
85
+ const events = $.let(Record.bind(indexedCalendarEvents));
78
86
  const entries = $.let(Data.bindPaged(indexedCalendarEvents));
79
- const indexed = $.let(Data.bindPaged(indexedCalendarEvents, { indexes: [indexedCalendarByTime, indexedCalendarByStatus, indexedCalendarByMachine] }));
87
+ const indexed = $.let(Data.bindPaged(indexedCalendarEvents, { indexes: ["calendar_by_time", "calendar_by_status_time", "calendar_by_machine_time"] }));
80
88
  // The rail's one source, named after the kind it narrows (#1343): its interval indexes keep every overlapping event.
81
89
  const slice = $.let(Slice.bindRecords("ex.calendarRecordIndexesMobile", {
82
90
  job: { source: indexed, icon: { prefix: "fas", name: "print" },