@elaraai/east-ui 1.0.86 → 1.0.87

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 (561) hide show
  1. package/dist/src/buttons/button/index.d.ts +4 -0
  2. package/dist/src/buttons/button/index.d.ts.map +1 -1
  3. package/dist/src/buttons/button/index.js +8 -1
  4. package/dist/src/buttons/button/index.js.map +1 -1
  5. package/dist/src/buttons/button/types.d.ts +6 -5
  6. package/dist/src/buttons/button/types.d.ts.map +1 -1
  7. package/dist/src/buttons/button/types.js.map +1 -1
  8. package/dist/src/buttons/icon-button/index.d.ts +5 -5
  9. package/dist/src/buttons/icon-button/index.d.ts.map +1 -1
  10. package/dist/src/buttons/icon-button/index.js +8 -2
  11. package/dist/src/buttons/icon-button/index.js.map +1 -1
  12. package/dist/src/buttons/icon-button/types.d.ts +8 -12
  13. package/dist/src/buttons/icon-button/types.d.ts.map +1 -1
  14. package/dist/src/buttons/icon-button/types.js +2 -2
  15. package/dist/src/buttons/icon-button/types.js.map +1 -1
  16. package/dist/src/buttons/toggle/index.d.ts +4 -0
  17. package/dist/src/buttons/toggle/index.d.ts.map +1 -1
  18. package/dist/src/buttons/toggle/index.js +6 -1
  19. package/dist/src/buttons/toggle/index.js.map +1 -1
  20. package/dist/src/buttons/toggle/types.d.ts +3 -2
  21. package/dist/src/buttons/toggle/types.d.ts.map +1 -1
  22. package/dist/src/buttons/toggle/types.js.map +1 -1
  23. package/dist/src/charts/chart/index.d.ts.map +1 -1
  24. package/dist/src/charts/chart/index.js +3 -3
  25. package/dist/src/charts/chart/index.js.map +1 -1
  26. package/dist/src/charts/spec/index.d.ts.map +1 -1
  27. package/dist/src/charts/spec/index.js +5 -2
  28. package/dist/src/charts/spec/index.js.map +1 -1
  29. package/dist/src/collections/deck/index.d.ts.map +1 -1
  30. package/dist/src/collections/deck/index.js +2 -2
  31. package/dist/src/collections/deck/index.js.map +1 -1
  32. package/dist/src/collections/index.d.ts +0 -6
  33. package/dist/src/collections/index.d.ts.map +1 -1
  34. package/dist/src/collections/index.js +0 -6
  35. package/dist/src/collections/index.js.map +1 -1
  36. package/dist/src/collections/library/index.d.ts +1 -1
  37. package/dist/src/collections/library/index.d.ts.map +1 -1
  38. package/dist/src/collections/library/index.js +2 -2
  39. package/dist/src/collections/library/index.js.map +1 -1
  40. package/dist/src/collections/schematic/index.d.ts.map +1 -1
  41. package/dist/src/collections/schematic/index.js +2 -2
  42. package/dist/src/collections/schematic/index.js.map +1 -1
  43. package/dist/src/collections/table/index.d.ts +1 -1
  44. package/dist/src/collections/table/index.d.ts.map +1 -1
  45. package/dist/src/collections/table/index.js +2 -2
  46. package/dist/src/collections/table/index.js.map +1 -1
  47. package/dist/src/collections/tree-view/index.d.ts +11 -32
  48. package/dist/src/collections/tree-view/index.d.ts.map +1 -1
  49. package/dist/src/collections/tree-view/index.js +15 -10
  50. package/dist/src/collections/tree-view/index.js.map +1 -1
  51. package/dist/src/component.d.ts +673 -9344
  52. package/dist/src/component.d.ts.map +1 -1
  53. package/dist/src/component.js +5 -259
  54. package/dist/src/component.js.map +1 -1
  55. package/dist/src/contracts/approval.d.ts +6 -8
  56. package/dist/src/contracts/approval.d.ts.map +1 -1
  57. package/dist/src/contracts/approval.js +6 -8
  58. package/dist/src/contracts/approval.js.map +1 -1
  59. package/dist/src/contracts/drag.d.ts +1 -1
  60. package/dist/src/contracts/drag.d.ts.map +1 -1
  61. package/dist/src/contracts/drag.js +4 -5
  62. package/dist/src/contracts/drag.js.map +1 -1
  63. package/dist/src/contracts/editing.d.ts +19 -19
  64. package/dist/src/contracts/editing.js +14 -14
  65. package/dist/src/contracts/fields.d.ts +471 -0
  66. package/dist/src/contracts/fields.d.ts.map +1 -0
  67. package/dist/src/contracts/fields.js +492 -0
  68. package/dist/src/contracts/fields.js.map +1 -0
  69. package/dist/src/contracts/index.d.ts +1 -0
  70. package/dist/src/contracts/index.d.ts.map +1 -1
  71. package/dist/src/contracts/index.js +1 -0
  72. package/dist/src/contracts/index.js.map +1 -1
  73. package/dist/src/contracts/indexed-source.d.ts +118 -0
  74. package/dist/src/contracts/indexed-source.d.ts.map +1 -0
  75. package/dist/src/contracts/indexed-source.js +89 -0
  76. package/dist/src/contracts/indexed-source.js.map +1 -0
  77. package/dist/src/contracts/pick.d.ts +0 -16
  78. package/dist/src/contracts/pick.d.ts.map +1 -1
  79. package/dist/src/contracts/review.d.ts +4 -6
  80. package/dist/src/contracts/review.d.ts.map +1 -1
  81. package/dist/src/contracts/review.js +4 -6
  82. package/dist/src/contracts/review.js.map +1 -1
  83. package/dist/src/contracts/source.d.ts +2 -2
  84. package/dist/src/contracts/source.d.ts.map +1 -1
  85. package/dist/src/contracts/source.js.map +1 -1
  86. package/dist/src/contracts/states.d.ts +1 -3
  87. package/dist/src/contracts/states.d.ts.map +1 -1
  88. package/dist/src/contracts/states.js +1 -3
  89. package/dist/src/contracts/states.js.map +1 -1
  90. package/dist/src/display/editable-chip/index.d.ts +2 -0
  91. package/dist/src/display/editable-chip/index.d.ts.map +1 -1
  92. package/dist/src/display/editable-chip/index.js +4 -1
  93. package/dist/src/display/editable-chip/index.js.map +1 -1
  94. package/dist/src/display/icon/index.d.ts +14 -31
  95. package/dist/src/display/icon/index.d.ts.map +1 -1
  96. package/dist/src/display/icon/index.js +15 -19
  97. package/dist/src/display/icon/index.js.map +1 -1
  98. package/dist/src/display/icon/solid.d.ts +24 -0
  99. package/dist/src/display/icon/solid.d.ts.map +1 -0
  100. package/dist/src/display/icon/solid.js +39 -0
  101. package/dist/src/display/icon/solid.js.map +1 -0
  102. package/dist/src/display/icon/types.d.ts +14 -38
  103. package/dist/src/display/icon/types.d.ts.map +1 -1
  104. package/dist/src/display/icon/types.js +6 -15
  105. package/dist/src/display/icon/types.js.map +1 -1
  106. package/dist/src/display/metric-chip/index.d.ts +2 -0
  107. package/dist/src/display/metric-chip/index.d.ts.map +1 -1
  108. package/dist/src/display/metric-chip/index.js +4 -1
  109. package/dist/src/display/metric-chip/index.js.map +1 -1
  110. package/dist/src/display/stat/index.d.ts +2 -0
  111. package/dist/src/display/stat/index.d.ts.map +1 -1
  112. package/dist/src/display/stat/index.js +4 -1
  113. package/dist/src/display/stat/index.js.map +1 -1
  114. package/dist/src/display/stat/types.d.ts +3 -5
  115. package/dist/src/display/stat/types.d.ts.map +1 -1
  116. package/dist/src/display/stat/types.js +5 -2
  117. package/dist/src/display/stat/types.js.map +1 -1
  118. package/dist/src/feedback/banner/index.d.ts +5 -3
  119. package/dist/src/feedback/banner/index.d.ts.map +1 -1
  120. package/dist/src/feedback/banner/index.js +4 -1
  121. package/dist/src/feedback/banner/index.js.map +1 -1
  122. package/dist/src/feedback/empty-state/index.d.ts +16 -19
  123. package/dist/src/feedback/empty-state/index.d.ts.map +1 -1
  124. package/dist/src/feedback/empty-state/index.js +17 -10
  125. package/dist/src/feedback/empty-state/index.js.map +1 -1
  126. package/dist/src/feedback/status/index.d.ts +5 -3
  127. package/dist/src/feedback/status/index.d.ts.map +1 -1
  128. package/dist/src/feedback/status/index.js +4 -1
  129. package/dist/src/feedback/status/index.js.map +1 -1
  130. package/dist/src/index.d.ts +5 -6
  131. package/dist/src/index.d.ts.map +1 -1
  132. package/dist/src/index.js +12 -11
  133. package/dist/src/index.js.map +1 -1
  134. package/dist/src/internal.d.ts +23 -16
  135. package/dist/src/internal.d.ts.map +1 -1
  136. package/dist/src/internal.js +29 -13
  137. package/dist/src/internal.js.map +1 -1
  138. package/dist/src/navigation/index.d.ts +0 -2
  139. package/dist/src/navigation/index.d.ts.map +1 -1
  140. package/dist/src/navigation/index.js +0 -2
  141. package/dist/src/navigation/index.js.map +1 -1
  142. package/dist/src/navigation/nav-list/index.d.ts +2 -0
  143. package/dist/src/navigation/nav-list/index.d.ts.map +1 -1
  144. package/dist/src/navigation/nav-list/index.js +4 -1
  145. package/dist/src/navigation/nav-list/index.js.map +1 -1
  146. package/dist/src/navigation/nav-list/types.d.ts +3 -14
  147. package/dist/src/navigation/nav-list/types.d.ts.map +1 -1
  148. package/dist/src/navigation/nav-list/types.js.map +1 -1
  149. package/dist/src/overlays/command-palette/index.d.ts +2 -0
  150. package/dist/src/overlays/command-palette/index.d.ts.map +1 -1
  151. package/dist/src/overlays/command-palette/index.js +5 -0
  152. package/dist/src/overlays/command-palette/index.js.map +1 -1
  153. package/dist/src/overlays/command-palette/types.d.ts +0 -8
  154. package/dist/src/overlays/command-palette/types.d.ts.map +1 -1
  155. package/dist/src/pick/index.d.ts +1 -17
  156. package/dist/src/pick/index.d.ts.map +1 -1
  157. package/dist/src/pick/index.js +1 -1
  158. package/dist/src/platform/slice/index.d.ts +1324 -2039
  159. package/dist/src/platform/slice/index.d.ts.map +1 -1
  160. package/dist/src/platform/slice/index.js +55 -74
  161. package/dist/src/platform/slice/index.js.map +1 -1
  162. package/dist/src/platform/slice/local.d.ts +743 -0
  163. package/dist/src/platform/slice/local.d.ts.map +1 -0
  164. package/dist/src/platform/slice/local.js +133 -0
  165. package/dist/src/platform/slice/local.js.map +1 -0
  166. package/dist/src/platform/slice/record-chrome.d.ts +211 -0
  167. package/dist/src/platform/slice/record-chrome.d.ts.map +1 -0
  168. package/dist/src/platform/slice/record-chrome.js +52 -0
  169. package/dist/src/platform/slice/record-chrome.js.map +1 -0
  170. package/dist/src/platform/slice/record-interval.d.ts +24 -0
  171. package/dist/src/platform/slice/record-interval.d.ts.map +1 -0
  172. package/dist/src/platform/slice/record-interval.js +61 -0
  173. package/dist/src/platform/slice/record-interval.js.map +1 -0
  174. package/dist/src/platform/slice/record-plan.d.ts +54 -0
  175. package/dist/src/platform/slice/record-plan.d.ts.map +1 -0
  176. package/dist/src/platform/slice/record-plan.js +139 -0
  177. package/dist/src/platform/slice/record-plan.js.map +1 -0
  178. package/dist/src/platform/slice/record-types.d.ts +2739 -0
  179. package/dist/src/platform/slice/record-types.d.ts.map +1 -0
  180. package/dist/src/platform/slice/record-types.js +209 -0
  181. package/dist/src/platform/slice/record-types.js.map +1 -0
  182. package/dist/src/platform/slice/record.d.ts +109 -0
  183. package/dist/src/platform/slice/record.d.ts.map +1 -0
  184. package/dist/src/platform/slice/record.js +210 -0
  185. package/dist/src/platform/slice/record.js.map +1 -0
  186. package/dist/src/reactive/match.d.ts +4 -6
  187. package/dist/src/reactive/match.d.ts.map +1 -1
  188. package/dist/src/reactive/match.js +4 -6
  189. package/dist/src/reactive/match.js.map +1 -1
  190. package/dist/src/runtime/collections/deck.d.ts.map +1 -1
  191. package/dist/src/runtime/collections/index.d.ts +0 -6
  192. package/dist/src/runtime/collections/index.d.ts.map +1 -1
  193. package/dist/src/runtime/collections/index.js +0 -6
  194. package/dist/src/runtime/collections/index.js.map +1 -1
  195. package/dist/src/runtime/display/icon.d.ts +6 -5
  196. package/dist/src/runtime/display/icon.d.ts.map +1 -1
  197. package/dist/src/runtime/display/icon.js +6 -5
  198. package/dist/src/runtime/display/icon.js.map +1 -1
  199. package/dist/src/runtime/feedback/empty-state.d.ts +5 -5
  200. package/dist/src/runtime/feedback/empty-state.js +5 -5
  201. package/dist/src/runtime/layout/dock.d.ts +2 -1
  202. package/dist/src/runtime/layout/dock.d.ts.map +1 -1
  203. package/dist/src/runtime/layout/dock.js +2 -1
  204. package/dist/src/runtime/layout/dock.js.map +1 -1
  205. package/dist/src/runtime/navigation/index.d.ts +0 -3
  206. package/dist/src/runtime/navigation/index.d.ts.map +1 -1
  207. package/dist/src/runtime/navigation/index.js +0 -3
  208. package/dist/src/runtime/navigation/index.js.map +1 -1
  209. package/dist/src/runtime/reactive/match.d.ts +2 -3
  210. package/dist/src/runtime/reactive/match.d.ts.map +1 -1
  211. package/dist/src/runtime/reactive/match.js +2 -3
  212. package/dist/src/runtime/reactive/match.js.map +1 -1
  213. package/dist/src/runtime/record-slice-source.d.ts +78 -0
  214. package/dist/src/runtime/record-slice-source.d.ts.map +1 -0
  215. package/dist/src/runtime/record-slice-source.js +201 -0
  216. package/dist/src/runtime/record-slice-source.js.map +1 -0
  217. package/dist/src/runtime/record-slice.d.ts +110 -0
  218. package/dist/src/runtime/record-slice.d.ts.map +1 -0
  219. package/dist/src/runtime/record-slice.js +374 -0
  220. package/dist/src/runtime/record-slice.js.map +1 -0
  221. package/dist/src/runtime/slice.d.ts +11 -13
  222. package/dist/src/runtime/slice.d.ts.map +1 -1
  223. package/dist/src/runtime/slice.js +41 -93
  224. package/dist/src/runtime/slice.js.map +1 -1
  225. package/dist/src/shared/plot-gutter.d.ts +1 -1
  226. package/dist/src/shared/plot-gutter.js +1 -1
  227. package/dist/src/shared/resolve-tag.d.ts +23 -0
  228. package/dist/src/shared/resolve-tag.d.ts.map +1 -0
  229. package/dist/src/shared/resolve-tag.js +26 -0
  230. package/dist/src/shared/resolve-tag.js.map +1 -0
  231. package/dist/src/shared/tree.d.ts +1 -1
  232. package/dist/src/shared/tree.js +1 -1
  233. package/dist/src/slice/breakdown/index.d.ts +1 -1
  234. package/dist/src/slice/breakdown/index.d.ts.map +1 -1
  235. package/dist/src/slice/breakdown/index.js +3 -3
  236. package/dist/src/slice/breakdown/index.js.map +1 -1
  237. package/dist/src/slice/cohort/index.d.ts +4 -5
  238. package/dist/src/slice/cohort/index.d.ts.map +1 -1
  239. package/dist/src/slice/cohort/index.js +6 -7
  240. package/dist/src/slice/cohort/index.js.map +1 -1
  241. package/dist/src/slice/filter/index.d.ts +1 -1
  242. package/dist/src/slice/filter/index.d.ts.map +1 -1
  243. package/dist/src/slice/filter/index.js +3 -3
  244. package/dist/src/slice/filter/index.js.map +1 -1
  245. package/dist/src/slice/index.d.ts +20 -2230
  246. package/dist/src/slice/index.d.ts.map +1 -1
  247. package/dist/src/slice/legend/index.d.ts +2 -2
  248. package/dist/src/slice/legend/index.d.ts.map +1 -1
  249. package/dist/src/slice/legend/index.js +4 -4
  250. package/dist/src/slice/legend/index.js.map +1 -1
  251. package/dist/src/slice/rail/index.d.ts +7 -4
  252. package/dist/src/slice/rail/index.d.ts.map +1 -1
  253. package/dist/src/slice/rail/index.js +10 -5
  254. package/dist/src/slice/rail/index.js.map +1 -1
  255. package/dist/src/slice/range/index.d.ts +1 -1
  256. package/dist/src/slice/range/index.d.ts.map +1 -1
  257. package/dist/src/slice/range/index.js +3 -3
  258. package/dist/src/slice/range/index.js.map +1 -1
  259. package/dist/src/slice/record/index.d.ts +171 -0
  260. package/dist/src/slice/record/index.d.ts.map +1 -0
  261. package/dist/src/slice/record/index.js +10 -0
  262. package/dist/src/slice/record/index.js.map +1 -0
  263. package/dist/src/slice/search/index.d.ts +6 -6
  264. package/dist/src/slice/search/index.d.ts.map +1 -1
  265. package/dist/src/slice/search/index.js +7 -7
  266. package/dist/src/slice/search/index.js.map +1 -1
  267. package/dist/src/slice/summary/index.d.ts +1 -1
  268. package/dist/src/slice/summary/index.d.ts.map +1 -1
  269. package/dist/src/slice/summary/index.js +3 -3
  270. package/dist/src/slice/summary/index.js.map +1 -1
  271. package/dist/src/typography/list/index.d.ts +2 -8
  272. package/dist/src/typography/list/index.d.ts.map +1 -1
  273. package/dist/src/typography/list/index.js +4 -1
  274. package/dist/src/typography/list/index.js.map +1 -1
  275. package/dist/src/typography/list/types.d.ts +0 -8
  276. package/dist/src/typography/list/types.d.ts.map +1 -1
  277. package/dist/test/collections/deck.examples.d.ts.map +1 -1
  278. package/dist/test/collections/deck.examples.js +6 -7
  279. package/dist/test/collections/deck.examples.js.map +1 -1
  280. package/dist/test/collections/index.d.ts +0 -1
  281. package/dist/test/collections/index.d.ts.map +1 -1
  282. package/dist/test/collections/index.js +0 -1
  283. package/dist/test/collections/index.js.map +1 -1
  284. package/dist/test/collections/library.examples.d.ts.map +1 -1
  285. package/dist/test/collections/library.examples.js +6 -7
  286. package/dist/test/collections/library.examples.js.map +1 -1
  287. package/dist/test/collections/schematic.examples.d.ts.map +1 -1
  288. package/dist/test/collections/schematic.examples.js +11 -19
  289. package/dist/test/collections/schematic.examples.js.map +1 -1
  290. package/dist/test/collections/tree-view.examples.js +2 -2
  291. package/dist/test/contracts/editing.examples.d.ts +1 -0
  292. package/dist/test/contracts/editing.examples.d.ts.map +1 -1
  293. package/dist/test/contracts/editing.examples.js +37 -6
  294. package/dist/test/contracts/editing.examples.js.map +1 -1
  295. package/dist/test/contracts/fields.examples.d.ts +7 -0
  296. package/dist/test/contracts/fields.examples.d.ts.map +1 -0
  297. package/dist/test/contracts/fields.examples.js +42 -0
  298. package/dist/test/contracts/fields.examples.js.map +1 -0
  299. package/dist/test/display/avatar.examples.d.ts.map +1 -1
  300. package/dist/test/display/avatar.examples.js +3 -3
  301. package/dist/test/display/avatar.examples.js.map +1 -1
  302. package/dist/test/display/icon.examples.d.ts.map +1 -1
  303. package/dist/test/display/icon.examples.js +12 -11
  304. package/dist/test/display/icon.examples.js.map +1 -1
  305. package/dist/test/feedback/empty-state.examples.js +9 -9
  306. package/dist/test/feedback/empty-state.examples.js.map +1 -1
  307. package/dist/test/layout/dock.examples.d.ts +0 -8
  308. package/dist/test/layout/dock.examples.d.ts.map +1 -1
  309. package/dist/test/layout/dock.examples.js +2 -42
  310. package/dist/test/layout/dock.examples.js.map +1 -1
  311. package/dist/test/layout/snap-grid.examples.d.ts.map +1 -1
  312. package/dist/test/layout/snap-grid.examples.js +18 -28
  313. package/dist/test/layout/snap-grid.examples.js.map +1 -1
  314. package/dist/test/navigation/index.d.ts +0 -2
  315. package/dist/test/navigation/index.d.ts.map +1 -1
  316. package/dist/test/navigation/index.js +0 -2
  317. package/dist/test/navigation/index.js.map +1 -1
  318. package/dist/test/navigation/nav-list.examples.js.map +1 -1
  319. package/dist/test/platform/index.d.ts +1 -0
  320. package/dist/test/platform/index.d.ts.map +1 -1
  321. package/dist/test/platform/index.js +1 -0
  322. package/dist/test/platform/index.js.map +1 -1
  323. package/dist/test/platform/slice-local.examples.d.ts +2 -0
  324. package/dist/test/platform/slice-local.examples.d.ts.map +1 -0
  325. package/dist/test/platform/slice-local.examples.js +31 -0
  326. package/dist/test/platform/slice-local.examples.js.map +1 -0
  327. package/dist/test/platform/slice.examples.js +61 -61
  328. package/dist/test/platform/slice.examples.js.map +1 -1
  329. package/dist/test/slice/slice.examples.d.ts +0 -1
  330. package/dist/test/slice/slice.examples.d.ts.map +1 -1
  331. package/dist/test/slice/slice.examples.js +67 -181
  332. package/dist/test/slice/slice.examples.js.map +1 -1
  333. package/package.json +4 -4
  334. package/dist/src/collections/board/index.d.ts +0 -855
  335. package/dist/src/collections/board/index.d.ts.map +0 -1
  336. package/dist/src/collections/board/index.js +0 -416
  337. package/dist/src/collections/board/index.js.map +0 -1
  338. package/dist/src/collections/board/types.d.ts +0 -111
  339. package/dist/src/collections/board/types.d.ts.map +0 -1
  340. package/dist/src/collections/board/types.js +0 -89
  341. package/dist/src/collections/board/types.js.map +0 -1
  342. package/dist/src/collections/calendar/index.d.ts +0 -446
  343. package/dist/src/collections/calendar/index.d.ts.map +0 -1
  344. package/dist/src/collections/calendar/index.js +0 -287
  345. package/dist/src/collections/calendar/index.js.map +0 -1
  346. package/dist/src/collections/calendar/types.d.ts +0 -338
  347. package/dist/src/collections/calendar/types.d.ts.map +0 -1
  348. package/dist/src/collections/calendar/types.js +0 -206
  349. package/dist/src/collections/calendar/types.js.map +0 -1
  350. package/dist/src/collections/flowchart/index.d.ts +0 -430
  351. package/dist/src/collections/flowchart/index.d.ts.map +0 -1
  352. package/dist/src/collections/flowchart/index.js +0 -292
  353. package/dist/src/collections/flowchart/index.js.map +0 -1
  354. package/dist/src/collections/flowchart/types.d.ts +0 -333
  355. package/dist/src/collections/flowchart/types.d.ts.map +0 -1
  356. package/dist/src/collections/flowchart/types.js +0 -263
  357. package/dist/src/collections/flowchart/types.js.map +0 -1
  358. package/dist/src/collections/plan/assemble.d.ts +0 -2274
  359. package/dist/src/collections/plan/assemble.d.ts.map +0 -1
  360. package/dist/src/collections/plan/assemble.js +0 -210
  361. package/dist/src/collections/plan/assemble.js.map +0 -1
  362. package/dist/src/collections/plan/builders.d.ts +0 -765
  363. package/dist/src/collections/plan/builders.d.ts.map +0 -1
  364. package/dist/src/collections/plan/builders.js +0 -673
  365. package/dist/src/collections/plan/builders.js.map +0 -1
  366. package/dist/src/collections/plan/factories.d.ts +0 -512
  367. package/dist/src/collections/plan/factories.d.ts.map +0 -1
  368. package/dist/src/collections/plan/factories.js +0 -539
  369. package/dist/src/collections/plan/factories.js.map +0 -1
  370. package/dist/src/collections/plan/index.d.ts +0 -324
  371. package/dist/src/collections/plan/index.d.ts.map +0 -1
  372. package/dist/src/collections/plan/index.js +0 -193
  373. package/dist/src/collections/plan/index.js.map +0 -1
  374. package/dist/src/collections/plan/ir.d.ts +0 -2490
  375. package/dist/src/collections/plan/ir.d.ts.map +0 -1
  376. package/dist/src/collections/plan/ir.js +0 -107
  377. package/dist/src/collections/plan/ir.js.map +0 -1
  378. package/dist/src/collections/plan/pick.d.ts +0 -133
  379. package/dist/src/collections/plan/pick.d.ts.map +0 -1
  380. package/dist/src/collections/plan/pick.js +0 -208
  381. package/dist/src/collections/plan/pick.js.map +0 -1
  382. package/dist/src/collections/plan/root.d.ts +0 -297
  383. package/dist/src/collections/plan/root.d.ts.map +0 -1
  384. package/dist/src/collections/plan/root.js +0 -427
  385. package/dist/src/collections/plan/root.js.map +0 -1
  386. package/dist/src/collections/plan/series.d.ts +0 -13887
  387. package/dist/src/collections/plan/series.d.ts.map +0 -1
  388. package/dist/src/collections/plan/series.js +0 -1710
  389. package/dist/src/collections/plan/series.js.map +0 -1
  390. package/dist/src/collections/plan/types.d.ts +0 -12612
  391. package/dist/src/collections/plan/types.d.ts.map +0 -1
  392. package/dist/src/collections/plan/types.js +0 -1345
  393. package/dist/src/collections/plan/types.js.map +0 -1
  394. package/dist/src/collections/roster/index.d.ts +0 -787
  395. package/dist/src/collections/roster/index.d.ts.map +0 -1
  396. package/dist/src/collections/roster/index.js +0 -325
  397. package/dist/src/collections/roster/index.js.map +0 -1
  398. package/dist/src/collections/roster/types.d.ts +0 -97
  399. package/dist/src/collections/roster/types.d.ts.map +0 -1
  400. package/dist/src/collections/roster/types.js +0 -72
  401. package/dist/src/collections/roster/types.js.map +0 -1
  402. package/dist/src/collections/sheet/bridge.d.ts +0 -376
  403. package/dist/src/collections/sheet/bridge.d.ts.map +0 -1
  404. package/dist/src/collections/sheet/bridge.js +0 -773
  405. package/dist/src/collections/sheet/bridge.js.map +0 -1
  406. package/dist/src/collections/sheet/columns.d.ts +0 -410
  407. package/dist/src/collections/sheet/columns.d.ts.map +0 -1
  408. package/dist/src/collections/sheet/columns.js +0 -99
  409. package/dist/src/collections/sheet/columns.js.map +0 -1
  410. package/dist/src/collections/sheet/context-bridge.d.ts +0 -48
  411. package/dist/src/collections/sheet/context-bridge.d.ts.map +0 -1
  412. package/dist/src/collections/sheet/context-bridge.js +0 -216
  413. package/dist/src/collections/sheet/context-bridge.js.map +0 -1
  414. package/dist/src/collections/sheet/draft-bridge.d.ts +0 -37
  415. package/dist/src/collections/sheet/draft-bridge.d.ts.map +0 -1
  416. package/dist/src/collections/sheet/draft-bridge.js +0 -153
  417. package/dist/src/collections/sheet/draft-bridge.js.map +0 -1
  418. package/dist/src/collections/sheet/drafts.d.ts +0 -14
  419. package/dist/src/collections/sheet/drafts.d.ts.map +0 -1
  420. package/dist/src/collections/sheet/drafts.js +0 -14
  421. package/dist/src/collections/sheet/drafts.js.map +0 -1
  422. package/dist/src/collections/sheet/editing-bridge.d.ts +0 -36
  423. package/dist/src/collections/sheet/editing-bridge.d.ts.map +0 -1
  424. package/dist/src/collections/sheet/editing-bridge.js +0 -196
  425. package/dist/src/collections/sheet/editing-bridge.js.map +0 -1
  426. package/dist/src/collections/sheet/editing-types.d.ts +0 -268
  427. package/dist/src/collections/sheet/editing-types.d.ts.map +0 -1
  428. package/dist/src/collections/sheet/editing-types.js +0 -34
  429. package/dist/src/collections/sheet/editing-types.js.map +0 -1
  430. package/dist/src/collections/sheet/edits.d.ts +0 -37
  431. package/dist/src/collections/sheet/edits.d.ts.map +0 -1
  432. package/dist/src/collections/sheet/edits.js +0 -31
  433. package/dist/src/collections/sheet/edits.js.map +0 -1
  434. package/dist/src/collections/sheet/group.d.ts +0 -165
  435. package/dist/src/collections/sheet/group.d.ts.map +0 -1
  436. package/dist/src/collections/sheet/group.js +0 -52
  437. package/dist/src/collections/sheet/group.js.map +0 -1
  438. package/dist/src/collections/sheet/index.d.ts +0 -351
  439. package/dist/src/collections/sheet/index.d.ts.map +0 -1
  440. package/dist/src/collections/sheet/index.js +0 -208
  441. package/dist/src/collections/sheet/index.js.map +0 -1
  442. package/dist/src/collections/sheet/link.d.ts +0 -398
  443. package/dist/src/collections/sheet/link.d.ts.map +0 -1
  444. package/dist/src/collections/sheet/link.js +0 -228
  445. package/dist/src/collections/sheet/link.js.map +0 -1
  446. package/dist/src/collections/sheet/registers.d.ts +0 -278
  447. package/dist/src/collections/sheet/registers.d.ts.map +0 -1
  448. package/dist/src/collections/sheet/registers.js +0 -268
  449. package/dist/src/collections/sheet/registers.js.map +0 -1
  450. package/dist/src/collections/sheet/root.d.ts +0 -328
  451. package/dist/src/collections/sheet/root.d.ts.map +0 -1
  452. package/dist/src/collections/sheet/root.js +0 -432
  453. package/dist/src/collections/sheet/root.js.map +0 -1
  454. package/dist/src/collections/sheet/seed-bridge.d.ts +0 -14
  455. package/dist/src/collections/sheet/seed-bridge.d.ts.map +0 -1
  456. package/dist/src/collections/sheet/seed-bridge.js +0 -51
  457. package/dist/src/collections/sheet/seed-bridge.js.map +0 -1
  458. package/dist/src/collections/sheet/sub-rows.d.ts +0 -249
  459. package/dist/src/collections/sheet/sub-rows.d.ts.map +0 -1
  460. package/dist/src/collections/sheet/sub-rows.js +0 -222
  461. package/dist/src/collections/sheet/sub-rows.js.map +0 -1
  462. package/dist/src/collections/sheet/transactions.d.ts +0 -76
  463. package/dist/src/collections/sheet/transactions.d.ts.map +0 -1
  464. package/dist/src/collections/sheet/transactions.js +0 -40
  465. package/dist/src/collections/sheet/transactions.js.map +0 -1
  466. package/dist/src/collections/sheet/types.d.ts +0 -14992
  467. package/dist/src/collections/sheet/types.d.ts.map +0 -1
  468. package/dist/src/collections/sheet/types.js +0 -1061
  469. package/dist/src/collections/sheet/types.js.map +0 -1
  470. package/dist/src/navigation/app/index.d.ts +0 -150
  471. package/dist/src/navigation/app/index.d.ts.map +0 -1
  472. package/dist/src/navigation/app/index.js +0 -191
  473. package/dist/src/navigation/app/index.js.map +0 -1
  474. package/dist/src/navigation/pages/index.d.ts +0 -165
  475. package/dist/src/navigation/pages/index.d.ts.map +0 -1
  476. package/dist/src/navigation/pages/index.js +0 -152
  477. package/dist/src/navigation/pages/index.js.map +0 -1
  478. package/dist/src/navigation/pages/types.d.ts +0 -111
  479. package/dist/src/navigation/pages/types.d.ts.map +0 -1
  480. package/dist/src/navigation/pages/types.js +0 -101
  481. package/dist/src/navigation/pages/types.js.map +0 -1
  482. package/dist/src/runtime/collections/board.d.ts +0 -73
  483. package/dist/src/runtime/collections/board.d.ts.map +0 -1
  484. package/dist/src/runtime/collections/board.js +0 -68
  485. package/dist/src/runtime/collections/board.js.map +0 -1
  486. package/dist/src/runtime/collections/calendar.d.ts +0 -54
  487. package/dist/src/runtime/collections/calendar.d.ts.map +0 -1
  488. package/dist/src/runtime/collections/calendar.js +0 -54
  489. package/dist/src/runtime/collections/calendar.js.map +0 -1
  490. package/dist/src/runtime/collections/flowchart.d.ts +0 -58
  491. package/dist/src/runtime/collections/flowchart.d.ts.map +0 -1
  492. package/dist/src/runtime/collections/flowchart.js +0 -54
  493. package/dist/src/runtime/collections/flowchart.js.map +0 -1
  494. package/dist/src/runtime/collections/plan.d.ts +0 -181
  495. package/dist/src/runtime/collections/plan.d.ts.map +0 -1
  496. package/dist/src/runtime/collections/plan.js +0 -186
  497. package/dist/src/runtime/collections/plan.js.map +0 -1
  498. package/dist/src/runtime/collections/roster.d.ts +0 -60
  499. package/dist/src/runtime/collections/roster.d.ts.map +0 -1
  500. package/dist/src/runtime/collections/roster.js +0 -59
  501. package/dist/src/runtime/collections/roster.js.map +0 -1
  502. package/dist/src/runtime/collections/sheet.d.ts +0 -122
  503. package/dist/src/runtime/collections/sheet.d.ts.map +0 -1
  504. package/dist/src/runtime/collections/sheet.js +0 -73
  505. package/dist/src/runtime/collections/sheet.js.map +0 -1
  506. package/dist/src/runtime/navigation/app.d.ts +0 -52
  507. package/dist/src/runtime/navigation/app.d.ts.map +0 -1
  508. package/dist/src/runtime/navigation/app.js +0 -53
  509. package/dist/src/runtime/navigation/app.js.map +0 -1
  510. package/dist/src/runtime/navigation/pages.d.ts +0 -50
  511. package/dist/src/runtime/navigation/pages.d.ts.map +0 -1
  512. package/dist/src/runtime/navigation/pages.js +0 -52
  513. package/dist/src/runtime/navigation/pages.js.map +0 -1
  514. package/dist/src/runtime/navigation/route.d.ts +0 -46
  515. package/dist/src/runtime/navigation/route.d.ts.map +0 -1
  516. package/dist/src/runtime/navigation/route.js +0 -47
  517. package/dist/src/runtime/navigation/route.js.map +0 -1
  518. package/dist/test/collections/board.examples.d.ts +0 -18
  519. package/dist/test/collections/board.examples.d.ts.map +0 -1
  520. package/dist/test/collections/board.examples.js +0 -297
  521. package/dist/test/collections/board.examples.js.map +0 -1
  522. package/dist/test/collections/calendar.examples.d.ts +0 -5
  523. package/dist/test/collections/calendar.examples.d.ts.map +0 -1
  524. package/dist/test/collections/calendar.examples.js +0 -147
  525. package/dist/test/collections/calendar.examples.js.map +0 -1
  526. package/dist/test/collections/flowchart.examples.d.ts +0 -17
  527. package/dist/test/collections/flowchart.examples.d.ts.map +0 -1
  528. package/dist/test/collections/flowchart.examples.js +0 -243
  529. package/dist/test/collections/flowchart.examples.js.map +0 -1
  530. package/dist/test/collections/plan.examples.d.ts +0 -200
  531. package/dist/test/collections/plan.examples.d.ts.map +0 -1
  532. package/dist/test/collections/plan.examples.js +0 -3665
  533. package/dist/test/collections/plan.examples.js.map +0 -1
  534. package/dist/test/collections/roster.examples.d.ts +0 -26
  535. package/dist/test/collections/roster.examples.d.ts.map +0 -1
  536. package/dist/test/collections/roster.examples.js +0 -237
  537. package/dist/test/collections/roster.examples.js.map +0 -1
  538. package/dist/test/collections/sheet-link.examples.d.ts +0 -7
  539. package/dist/test/collections/sheet-link.examples.d.ts.map +0 -1
  540. package/dist/test/collections/sheet-link.examples.js +0 -41
  541. package/dist/test/collections/sheet-link.examples.js.map +0 -1
  542. package/dist/test/collections/sheet-transactions.examples.d.ts +0 -7
  543. package/dist/test/collections/sheet-transactions.examples.d.ts.map +0 -1
  544. package/dist/test/collections/sheet-transactions.examples.js +0 -58
  545. package/dist/test/collections/sheet-transactions.examples.js.map +0 -1
  546. package/dist/test/collections/sheet.examples.d.ts +0 -96
  547. package/dist/test/collections/sheet.examples.d.ts.map +0 -1
  548. package/dist/test/collections/sheet.examples.js +0 -1040
  549. package/dist/test/collections/sheet.examples.js.map +0 -1
  550. package/dist/test/navigation/app.examples.d.ts +0 -22
  551. package/dist/test/navigation/app.examples.d.ts.map +0 -1
  552. package/dist/test/navigation/app.examples.js +0 -136
  553. package/dist/test/navigation/app.examples.js.map +0 -1
  554. package/dist/test/navigation/pages.examples.d.ts +0 -13
  555. package/dist/test/navigation/pages.examples.d.ts.map +0 -1
  556. package/dist/test/navigation/pages.examples.js +0 -113
  557. package/dist/test/navigation/pages.examples.js.map +0 -1
  558. package/dist/test/navigation/route.examples.d.ts +0 -13
  559. package/dist/test/navigation/route.examples.d.ts.map +0 -1
  560. package/dist/test/navigation/route.examples.js +0 -69
  561. package/dist/test/navigation/route.examples.js.map +0 -1
@@ -1,765 +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
- * Plan value builders — shorthand resolvers, the instant sugar
7
- * ({@link resolveInstant} / `Plan.at`), the axis declarations (`Plan.axis`,
8
- * `.time` / `.number` / `.ordinal`), element value builders (`Plan.run` /
9
- * `decision` / `port` / `event` / `marker` / `chip` / `mark`) and cell
10
- * builders (`heatCells` / `weightCells` / `segmentCells` / `tableCells`).
11
- * Every element is pure data — rich click/hover surfaces resolve through
12
- * the ROOT's `popover` / `hover` functions over `PlanElementRefType`
13
- * (`Plan Data Interface.md` §3.3), never per-element embeds.
14
- *
15
- * @packageDocumentation
16
- */
17
- import { type EastType, type ExprType, type SubtypeExprOrValue, ArrayType, BooleanType, DateTimeType, FloatType, IntegerType, OptionType, StringType, StructType } from "@elaraai/east";
18
- import { TickFormatType } from "../../format/types.js";
19
- import { IconType, type IconName } from "../../display/icon/types.js";
20
- import { StatusValueType, type StatusValueLiteral } from "../../feedback/status/types.js";
21
- import { ColorSchemeType, type ColorSchemeLiteral } from "../../style/scheme.js";
22
- import { EventStateType, type EventStateLiteral } from "../../contracts/states.js";
23
- import { type MatrixFillLiteral, MatrixFillType } from "../matrix/types.js";
24
- import { type PlanAxisOptions, type PlanNumberAxisOptions, type PlanOrdinalAxisOptions, PlanInstantType, type PlanInstantLikeType, type PlanInstantInput, type PlanAxisKindLiteral, type PlanKindOf, type PlanInstantExpr, type PlanRunExpr, type PlanDecisionMarkExpr, type PlanPortExpr, type PlanBucketEventExpr, type PlanCellMarkerExpr, type PlanChipExpr, type PlanEventMarkExpr, type PlanHeatCellsExpr, type PlanTableCellsExpr, type PlanTableSeriesExpr, type PlanAxisExpr, type PlanCellsInput, type PlanTableCellsInput, PlanStretchType, type PlanStretchLiteral, PlanContentAlignType, type PlanContentAlignLiteral, PlanAnimationType, type PlanAnimationLiteral, PlanEventMarkKindType, PlanHeatCellType, PlanWeightCellType, PlanSegmentType, PlanSegmentCellType, PlanTableToneType, type PlanTableToneLiteral, PlanLinkType, PlanLaneType, PlanRowIdType, PlanFoldType, type PlanFoldLiteral, PlanQuantityType, PlanHeatScaleType, PlanUiStateType } from "./types.js";
25
- /**
26
- * Resolves the shared event-lifecycle string shorthands into an
27
- * {@link EventStateType} value: `"estimated"`, `"added"`, `"recommended"`,
28
- * `"removed"` (the three `proposed` flavours), `"confirmed"`,
29
- * `"in-progress"`, `"actual"`, `"rejected"`.
30
- *
31
- * @param state - An `EventStateType` value/expression or a string shorthand
32
- * @returns The resolved `EventStateType` value
33
- */
34
- export declare function resolvePlanEventState(state: SubtypeExprOrValue<EventStateType> | EventStateLiteral): SubtypeExprOrValue<EventStateType>;
35
- /** Resolve a null-payload variant string shorthand against its East type. */
36
- export declare function resolveTag<T extends EastType>(v: SubtypeExprOrValue<NoInfer<T>> | string, type: T): ExprType<T>;
37
- /** A fold input — a {@link PlanFoldLiteral} or a `PlanFoldType` value / expression (#824). */
38
- export type PlanFoldInput = PlanFoldLiteral | SubtypeExprOrValue<PlanFoldType>;
39
- /**
40
- * Resolve a fold input, falling back to the default of what it folds.
41
- *
42
- * @param fold - The declared fold, if any
43
- * @param fallback - The default for the values being folded (`mean` for levels, `sum` for amounts)
44
- * @returns The fold
45
- */
46
- export declare function resolveFold(fold: PlanFoldInput | undefined, fallback: PlanFoldLiteral): ExprType<PlanFoldType>;
47
- /**
48
- * An icon input — a bare Font Awesome solid name (`"rocket"`), a
49
- * `{ prefix, name }` pair, or an `IconType` expression (the Banner envelope
50
- * precedent). The mounting context pins size and colour; hosts choose the
51
- * glyph, never the geometry.
52
- */
53
- export type PlanIconInput = IconName | {
54
- prefix: string;
55
- name: string;
56
- } | SubtypeExprOrValue<IconType>;
57
- /** Resolve a {@link PlanIconInput} into an `IconType` value. */
58
- export declare function resolveIcon(icon: PlanIconInput): SubtypeExprOrValue<IconType>;
59
- /**
60
- * Resolves an instant input into a {@link PlanInstantType} value — the one
61
- * place the arm is inferred (#631).
62
- *
63
- * @remarks
64
- * The input is any {@link PlanInstantLikeType} value or expression. JS values
65
- * wrap by their type (`Date` ⇒ `time`, `number` / `bigint` ⇒ `number`,
66
- * `string` ⇒ `ordinal`); East expressions wrap by their STATIC type
67
- * (`DateTimeType` ⇒ `time`, `FloatType` ⇒ `number`, `IntegerType` ⇒ `number`
68
- * via `toFloat`, `StringType` ⇒ `ordinal`); a {@link PlanInstantType} value
69
- * or expression passes through (subtype-checked by `East.value`). Nothing
70
- * here knows the canvas axis — the arm is the INPUT's; the renderer holds it
71
- * against the root's declaration.
72
- *
73
- * @param v - The instant (a value or expression of a {@link PlanInstantLikeType})
74
- * @param where - The field being resolved, for the error message
75
- * @returns The instant as a `PlanInstantType` expression
76
- * @throws {Error} If `v` is an expression of a non-instant type
77
- */
78
- export declare function resolveInstant(v: PlanInstantInput, where: string): ExprType<PlanInstantType>;
79
- /**
80
- * The `Plan.at` builders — one instant per axis kind, explicitly. The
81
- * element builders already wrap by type; these are for element RECORDS
82
- * written as data (`{ at: Plan.at.time(week(27n)), … }` in a
83
- * `Plan.Types.HeatCell` array) and for reading as a declaration. Each
84
- * result is BRANDED with its arm ({@link PlanInstantExpr}), so a cell
85
- * list built from them carries the kind to the root's compile-time check.
86
- */
87
- export declare const at: {
88
- /**
89
- * A `time` instant.
90
- *
91
- * @param v - The UTC instant (a `Date` or `DateTimeType` expression)
92
- * @returns A `PlanInstantType` expression with the `time` arm, branded `"time"`
93
- */
94
- readonly time: (v: SubtypeExprOrValue<DateTimeType>) => PlanInstantExpr<"time">;
95
- /**
96
- * A `number` instant.
97
- *
98
- * @param v - The position (a number or `FloatType` expression)
99
- * @returns A `PlanInstantType` expression with the `number` arm, branded `"number"`
100
- */
101
- readonly number: (v: SubtypeExprOrValue<FloatType> | number) => PlanInstantExpr<"number">;
102
- /**
103
- * An `ordinal` instant.
104
- *
105
- * @param v - The declared value (a string or `StringType` expression)
106
- * @returns A `PlanInstantType` expression with the `ordinal` arm, branded `"ordinal"`
107
- */
108
- readonly ordinal: (v: SubtypeExprOrValue<StringType>) => PlanInstantExpr<"ordinal">;
109
- };
110
- /**
111
- * The axis values built WITHOUT a window (#822) — a canvas given one must bind
112
- * a slice, whose range supplies the window, or the root refuses it at build
113
- * time. An axis held in a variable (`$.const(Plan.axis(…))`) is not the value
114
- * recorded here, so its canvas is held to the rule at render instead.
115
- */
116
- export declare const WINDOWLESS_AXES: WeakSet<object>;
117
- /**
118
- * Builds the `time` axis declaration — `Plan.axis({ … })` / `Plan.axis.time`.
119
- *
120
- * @param options - Window, resolution(s), now instant and tick format ({@link PlanAxisOptions})
121
- * @returns An East expression of {@link PlanAxisType} (the `time` arm), branded `"time"` — the root's canvas kind
122
- *
123
- * @remarks
124
- * The window is half-open `[min, max)` in UTC; omit it to follow the bound
125
- * slice's datetime range — a canvas states one or the other (#822). There is
126
- * no fit to the data. `resolutions` lists the WEEK/DAY-style segment options
127
- * (omit ⇒ no segment). When the Plan is slice-bound, slice state supersedes
128
- * window + resolution after mount — the slice is the single source of truth.
129
- */
130
- export declare function createTimeAxis(options: PlanAxisOptions): PlanAxisExpr<"time">;
131
- /**
132
- * Builds the `number` axis declaration — `Plan.axis.number({ … })`.
133
- *
134
- * @param options - Window, step, now position and tick format ({@link PlanNumberAxisOptions})
135
- * @returns An East expression of {@link PlanAxisType} (the `number` arm), branded `"number"` — the root's canvas kind
136
- * @throws {Error} If a literal `step` is not `> 0`
137
- *
138
- * @remarks
139
- * `[min, max)` ÷ `step` = `n` buckets, edges on whole multiples of `step`
140
- * (the `TimeResolution` rule, numerically). Omit the window to follow the
141
- * bound slice's `float` / `integer` range — a canvas states one or the other
142
- * (#822). Element instants on this canvas are numbers — a `FloatType` /
143
- * `IntegerType` accessor or a bare number wraps to the `number` arm.
144
- */
145
- export declare function createNumberAxis(options: PlanNumberAxisOptions): PlanAxisExpr<"number">;
146
- /**
147
- * Builds the `ordinal` axis declaration — `Plan.axis.ordinal({ … })`.
148
- *
149
- * @param options - The ordered values and the now value ({@link PlanOrdinalAxisOptions})
150
- * @returns An East expression of {@link PlanAxisType} (the `ordinal` arm), branded `"ordinal"` — the root's canvas kind
151
- * @throws {Error} If a literal `values` list is empty
152
- *
153
- * @remarks
154
- * The declared values ARE the buckets, one each, in order; the window is
155
- * the whole list, so there is no slice range to brush and the window keys
156
- * idle. Element instants on this canvas are the values — a `StringType`
157
- * accessor or a bare string wraps to the `ordinal` arm.
158
- */
159
- export declare function createOrdinalAxis(options: PlanOrdinalAxisOptions): PlanAxisExpr<"ordinal">;
160
- /**
161
- * The `Plan.axis` builder — the `time` shorthand, with the explicit
162
- * per-kind builders as members (the Planner's `Planner.axis.time / .number /
163
- * .ordinal` names).
164
- */
165
- export interface PlanAxisBuilder {
166
- /** The `time` axis (the shorthand — `Plan.axis({ resolution: "week", … })`). */
167
- (options: PlanAxisOptions): PlanAxisExpr<"time">;
168
- /** The `time` axis, explicitly. */
169
- time: typeof createTimeAxis;
170
- /** The `number` axis — a numeric window ÷ `step`. */
171
- number: typeof createNumberAxis;
172
- /** The `ordinal` axis — a declared list of values. */
173
- ordinal: typeof createOrdinalAxis;
174
- }
175
- /**
176
- * Builds the shared axis declaration — `Plan.axis({ … })` is the `time`
177
- * shorthand; `Plan.axis.time` / `.number` / `.ordinal` declare each kind.
178
- *
179
- * @param options - The time-axis options ({@link PlanAxisOptions})
180
- * @returns An East expression of {@link PlanAxisType}, branded with its kind
181
- */
182
- export declare const createAxis: PlanAxisBuilder;
183
- /**
184
- * How a quantity prints — see {@link Plan.quantity}.
185
- *
186
- * @property unit - The unit it is in (`"t"`); quantities in different units never sum together
187
- * @property format - How the value prints (a `Format.*` spec); omit ⇒ the canvas's plain number
188
- * @property text - The caption to print instead of the formatted value and unit
189
- */
190
- export interface PlanQuantityOptions {
191
- /** The unit the value is in (`"t"`) — printed after it, and what a rollup sums by. */
192
- unit?: SubtypeExprOrValue<StringType>;
193
- /** How the value prints — a `Format.*` spec (the shared `TickFormatType`), in the viewer's locale. */
194
- format?: SubtypeExprOrValue<TickFormatType>;
195
- /** The caption to print instead of the formatted value and unit — the value still sums and weighs. */
196
- text?: SubtypeExprOrValue<StringType>;
197
- }
198
- /**
199
- * Builds a quantity — a number with its unit and how it prints (#824). A run
200
- * carries one as its `quantity` (its bar prints it; a parent's rollup band sums
201
- * its runs' per unit), and so does a link (its ribbon's share and caption).
202
- *
203
- * @param value - The amount (a number or `FloatType` expression)
204
- * @param options - Its unit, format and caption override ({@link PlanQuantityOptions})
205
- * @returns An East expression of {@link PlanQuantityType}
206
- */
207
- export declare function createQuantity(value: SubtypeExprOrValue<FloatType> | number, options?: PlanQuantityOptions): ExprType<PlanQuantityType>;
208
- /**
209
- * Flat input for {@link Plan.run} — one continuous state-run bar.
210
- *
211
- * @typeParam S - The `start` input's type — its axis kind brands the result ({@link PlanKindOf})
212
- * @typeParam E - The `end` input's type
213
- * @property key - Stable run identity (drag refs, link edges)
214
- * @property start - Run start (inclusive) — an instant input (a Date / number / string, or a typed expression)
215
- * @property end - Run end (exclusive)
216
- * @property label - The bar text (`"RUN · B-214"`)
217
- * @property quantity - Optional quantity (`Plan.quantity(96, { unit: "t" })`) — printed after the label, summed into rollup bands per unit
218
- * @property state - The lifecycle state (string shorthand or `EventStateType`)
219
- * @property status - Optional status tint (`"warning"` ⇒ the over-dwell ring)
220
- * @property moved - Optional same-status churn counter (`moved ×k`)
221
- * @property icon - Optional leading FA glyph (10px, inherits bar text colour)
222
- */
223
- export interface PlanRunInput<S extends PlanInstantInput = PlanInstantInput, E extends PlanInstantInput = PlanInstantInput> {
224
- /** Stable run identity (drag refs, link edges). */
225
- key: SubtypeExprOrValue<StringType>;
226
- /** Run start (inclusive) — wraps to the axis arm by its type (see {@link PlanInstantLikeType}). */
227
- start: S;
228
- /** Run end (exclusive). */
229
- end: E;
230
- /** The bar text (`"RUN · B-214"`). */
231
- label: SubtypeExprOrValue<StringType>;
232
- /** Optional quantity — `Plan.quantity(96, { unit: "t" })`: the bar prints its caption after the label
233
- * (the muted `.q` text), and a parent's rollup band sums it with its siblings' in the same unit. */
234
- quantity?: SubtypeExprOrValue<PlanQuantityType>;
235
- /** The lifecycle state — a string shorthand or an `EventStateType` value. */
236
- state: SubtypeExprOrValue<EventStateType> | EventStateLiteral;
237
- /** Optional status tint — `"warning"` draws the `.stuck` over-dwell ring. */
238
- status?: SubtypeExprOrValue<StatusValueType> | StatusValueLiteral;
239
- /** Optional same-status churn counter (rendered `moved ×k`, never extra bars). */
240
- moved?: SubtypeExprOrValue<IntegerType> | number;
241
- /** Optional leading FA glyph (10px, inherits the bar text colour). */
242
- icon?: PlanIconInput;
243
- }
244
- /**
245
- * Builds one span run from a flat input. The result is BRANDED with the axis
246
- * kind `start` / `end` imply ({@link PlanKindOf}) — a `DateTimeType` accessor
247
- * makes a `"time"` run, a `FloatType` one a `"number"` run — so the series and
248
- * root can refuse a mismatched kind at compile time; an erased input (an
249
- * `Expr<PlanInstantType>`) leaves the run unbranded.
250
- *
251
- * @typeParam S - The `start` input's type
252
- * @typeParam E - The `end` input's type
253
- * @param input - The run configuration ({@link PlanRunInput})
254
- * @returns An East expression of {@link PlanRunType}, branded with its kind
255
- */
256
- export declare function createRun<S extends PlanInstantInput, E extends PlanInstantInput>(input: PlanRunInput<S, E>): PlanRunExpr<PlanKindOf<S | E>>;
257
- /**
258
- * Flat input for {@link Plan.decision} — a ◇/◆ diamond on a run transition.
259
- *
260
- * @typeParam A - The `at` input's type — its axis kind brands the result
261
- * @property key - Stable decision identity
262
- * @property at - The transition instant the diamond sits on
263
- * @property applied - `true` fills the diamond (◆)
264
- */
265
- export interface PlanDecisionInput<A extends PlanInstantInput = PlanInstantInput> {
266
- /** Stable decision identity. */
267
- key: SubtypeExprOrValue<StringType>;
268
- /** The transition instant the diamond sits on (see {@link PlanInstantLikeType}). */
269
- at: A;
270
- /** `true` fills the diamond (◆ applied). */
271
- applied: SubtypeExprOrValue<BooleanType> | boolean;
272
- }
273
- /**
274
- * Builds one decision mark from a flat input, branded with `at`'s kind.
275
- *
276
- * @typeParam A - The `at` input's type
277
- * @param input - The decision configuration ({@link PlanDecisionInput})
278
- * @returns An East expression of {@link PlanDecisionMarkType}, branded with its kind
279
- */
280
- export declare function createDecision<A extends PlanInstantInput>(input: PlanDecisionInput<A>): PlanDecisionMarkExpr<PlanKindOf<A>>;
281
- /**
282
- * Flat input for {@link Plan.port} — a quantity in/out glyph on a span row.
283
- *
284
- * @typeParam A - The `at` input's type — its axis kind brands the result
285
- * @property at - The instant the quantity moves
286
- * @property label - Optional caption (`"−24 t"`)
287
- */
288
- export interface PlanPortInput<A extends PlanInstantInput = PlanInstantInput> {
289
- /** The instant the quantity moves (see {@link PlanInstantLikeType}). */
290
- at: A;
291
- /** Optional caption (`"−24 t"`). */
292
- label?: SubtypeExprOrValue<StringType>;
293
- }
294
- /**
295
- * Builds one port glyph from a flat input, branded with `at`'s kind.
296
- *
297
- * @typeParam A - The `at` input's type
298
- * @param input - The port configuration ({@link PlanPortInput})
299
- * @returns An East expression of {@link PlanPortType}, branded with its kind
300
- */
301
- export declare function createPort<A extends PlanInstantInput>(input: PlanPortInput<A>): PlanPortExpr<PlanKindOf<A>>;
302
- /**
303
- * Flat input for {@link Plan.event} — one bucket-row tile (the full Planner
304
- * point-event grammar).
305
- *
306
- * @typeParam A - The `at` input's type — its axis kind brands the result
307
- * @property key - Stable event identity (drag refs)
308
- * @property at - The bucket instant
309
- * @property lane - The lane key (`[]`-laned rows omit it; in a laned row, omitting takes the full cell)
310
- * @property label - Optional tile text; omitted ⇒ the resting ✓ / `plan` chip
311
- * @property icon - Optional leading FA glyph (icon-only tile when `label` omitted)
312
- * @property state - The lifecycle state (string shorthand or value)
313
- * @property tone - Optional semantic tile tint
314
- * @property color - Optional raw colour token override
315
- * @property colorPalette - Optional brand palette override
316
- * @property stretch - Optional fill axis (`"horizontal"` / `"vertical"` / `"both"`)
317
- * @property content - Optional two-axis content alignment
318
- * @property animation - Optional attention animation (`"pulse"`)
319
- */
320
- export interface PlanBucketEventInput<A extends PlanInstantInput = PlanInstantInput> {
321
- /** Stable event identity (drag-grammar cell refs). */
322
- key: SubtypeExprOrValue<StringType>;
323
- /** The bucket instant (see {@link PlanInstantLikeType}). */
324
- at: A;
325
- /** The lane key. In a laned row, omitting takes the full cell (the mixed grammar). */
326
- lane?: SubtypeExprOrValue<StringType>;
327
- /** Optional tile text; omitted ⇒ ✓ (confirmed/actual) or the dashed `plan` chip (proposed). */
328
- label?: SubtypeExprOrValue<StringType>;
329
- /** Optional leading FA glyph (chip-sized, inherits chip colour; icon-only tile when `label` omitted). */
330
- icon?: PlanIconInput;
331
- /** The lifecycle state — a string shorthand or an `EventStateType` value. */
332
- state: SubtypeExprOrValue<EventStateType> | EventStateLiteral;
333
- /** Optional semantic tile tint (keeps the state's border-style). */
334
- tone?: SubtypeExprOrValue<StatusValueType> | StatusValueLiteral;
335
- /** Optional raw colour token override (`"teal.solid"`). */
336
- color?: SubtypeExprOrValue<StringType>;
337
- /** Optional brand palette override (`"teal"`, `"purple"`). */
338
- colorPalette?: SubtypeExprOrValue<ColorSchemeType> | ColorSchemeLiteral;
339
- /** Optional fill axis. */
340
- stretch?: SubtypeExprOrValue<PlanStretchType> | PlanStretchLiteral;
341
- /** Optional two-axis content alignment (defaults to top-left). */
342
- content?: {
343
- /** Horizontal content alignment (→ `justifyContent`). */
344
- horizontal?: SubtypeExprOrValue<PlanContentAlignType> | PlanContentAlignLiteral;
345
- /** Vertical content alignment (→ `alignItems`). */
346
- vertical?: SubtypeExprOrValue<PlanContentAlignType> | PlanContentAlignLiteral;
347
- };
348
- /** Optional attention animation (`"pulse"` honours `prefers-reduced-motion`). */
349
- animation?: SubtypeExprOrValue<PlanAnimationType> | PlanAnimationLiteral;
350
- }
351
- /**
352
- * Builds one bucket event from a flat input, branded with `at`'s kind.
353
- *
354
- * @typeParam A - The `at` input's type
355
- * @param input - The event configuration ({@link PlanBucketEventInput})
356
- * @returns An East expression of {@link PlanBucketEventType}, branded with its kind
357
- */
358
- export declare function createBucketEvent<A extends PlanInstantInput>(input: PlanBucketEventInput<A>): PlanBucketEventExpr<PlanKindOf<A>>;
359
- /**
360
- * Flat input for {@link Plan.lane} — one bucket-row sub-slot lane.
361
- *
362
- * @property key - The lane key (`"am"`) — bucket events reference it via `lane`
363
- * @property label - Optional printed caption (`"AM"`); omitted ⇒ an unlabelled strip
364
- */
365
- export interface PlanLaneInput {
366
- /** The lane key (`"am"`) — bucket events reference it via `lane`. */
367
- key: SubtypeExprOrValue<StringType>;
368
- /** Optional printed caption (`"AM"`); omitted ⇒ an unlabelled strip. */
369
- label?: SubtypeExprOrValue<StringType>;
370
- }
371
- /**
372
- * Builds one bucket-row lane from a flat input.
373
- *
374
- * @param input - The lane configuration ({@link PlanLaneInput})
375
- * @returns An East expression of {@link PlanLaneType}
376
- */
377
- export declare function createLane(input: PlanLaneInput): ExprType<PlanLaneType>;
378
- /**
379
- * A row's id by its series and path — `Plan.ref("machine-jobs", "L1", "m03")`
380
- * is the row series `machine-jobs` made from entry `m03` under `L1` (#822).
381
- * What `links` name their ends with, and what a callback's row compares to.
382
- *
383
- * @remarks
384
- * A segment is an entry's key as the canvas prints it: a String key as is, any
385
- * other key type as its `.east` text (`printFor`), an `Array` child's index as
386
- * its digits.
387
- *
388
- * @param series - The series key
389
- * @param path - The entry keys that lead to the row, outermost first
390
- * @returns The `entry` id
391
- */
392
- export declare function createRef(series: SubtypeExprOrValue<StringType>, ...path: SubtypeExprOrValue<StringType>[]): ExprType<PlanRowIdType>;
393
- /**
394
- * A section header's id — `Plan.sectionRef("crew-block", "L1")` is the
395
- * `crew-block` section's header under entry `L1`; a top-level section's path
396
- * is empty (#822).
397
- *
398
- * @param series - The section's series key
399
- * @param path - The path of the entry the section sits under (empty at the top level)
400
- * @returns The `section` id
401
- */
402
- export declare function createSectionRef(series: SubtypeExprOrValue<StringType>, ...path: SubtypeExprOrValue<StringType>[]): ExprType<PlanRowIdType>;
403
- /**
404
- * What a bound `ui` state starts as — see {@link Plan.uiState}.
405
- *
406
- * @property selected - The selected row
407
- * @property collapsed - Rows folded against what they declare
408
- * @property expanded - Rows opened against what they declare
409
- * @property charts - Chart rows expanded from spark
410
- * @property focus - A row to bring into view (a request the canvas spends)
411
- */
412
- export interface PlanUiStateInput {
413
- /** The selected row. */
414
- selected?: SubtypeExprOrValue<PlanRowIdType>;
415
- /** Rows folded — overriding what they declare. */
416
- collapsed?: SubtypeExprOrValue<PlanRowIdType>[] | SubtypeExprOrValue<ArrayType<PlanRowIdType>>;
417
- /** Rows opened — overriding what they declare. */
418
- expanded?: SubtypeExprOrValue<PlanRowIdType>[] | SubtypeExprOrValue<ArrayType<PlanRowIdType>>;
419
- /** Chart rows expanded from spark to full height. */
420
- charts?: SubtypeExprOrValue<PlanRowIdType>[] | SubtypeExprOrValue<ArrayType<PlanRowIdType>>;
421
- /** A row to bring into view — the canvas spends the request (`none`) once it has. */
422
- focus?: SubtypeExprOrValue<PlanRowIdType>;
423
- }
424
- /**
425
- * Builds a {@link PlanUiStateType} value — the seed of a bound `ui` state
426
- * (`State.bind([Plan.Types.UiState], key, Plan.uiState())`, #824). Omitted
427
- * fields are empty: nothing selected, every row as it declares, no chart
428
- * expanded, nothing to bring into view.
429
- *
430
- * @param init - What the state starts as ({@link PlanUiStateInput})
431
- * @returns An East expression of {@link PlanUiStateType}
432
- */
433
- export declare function createUiState(init?: PlanUiStateInput): ExprType<PlanUiStateType>;
434
- /**
435
- * Flat input for {@link Plan.link} — one run-edge quantity link of the
436
- * canvas's link graph (`Plan.Root`'s `links`).
437
- *
438
- * @property key - The link's identity — what a click on its ribbon names it by (#824)
439
- * @property from - The source row's id (`Plan.ref(series, …path)`)
440
- * @property fromRun - The source run key (the ribbon leaves this run's end edge)
441
- * @property to - The destination row's id
442
- * @property toRun - The destination run key (the ribbon lands on this run's start edge)
443
- * @property quantity - The moved quantity (`Plan.quantity(34, { unit: "t" })`) — the ribbon's share, opacity and caption
444
- */
445
- export interface PlanLinkInput {
446
- /** The link's identity — what the `link` element ref a ribbon click reports names it by (#824). */
447
- key: SubtypeExprOrValue<StringType>;
448
- /** The source row's id (`Plan.ref(series, …path)`). */
449
- from: SubtypeExprOrValue<PlanRowIdType>;
450
- /** The source run key (the ribbon leaves this run's end edge). */
451
- fromRun: SubtypeExprOrValue<StringType>;
452
- /** The destination row's id. */
453
- to: SubtypeExprOrValue<PlanRowIdType>;
454
- /** The destination run key (the ribbon lands on this run's start edge). */
455
- toRun: SubtypeExprOrValue<StringType>;
456
- /** The moved quantity — `Plan.quantity(34, { unit: "t" })`: its value weighs the ribbon's share of the
457
- * family's largest, and its caption prints on the ribbon. Omit ⇒ the faintest ribbon, no caption. */
458
- quantity?: SubtypeExprOrValue<PlanQuantityType>;
459
- }
460
- /**
461
- * Builds one link edge from a flat input. Links are root DATA
462
- * (`links={transfers.map(($, t) => Plan.link({ … }))}`): the links-focus
463
- * control gathers a row's transitive upstream/downstream family over them.
464
- *
465
- * @param input - The link configuration ({@link PlanLinkInput})
466
- * @returns An East expression of {@link PlanLinkType}
467
- */
468
- export declare function createLink(input: PlanLinkInput): ExprType<PlanLinkType>;
469
- /**
470
- * Flat input for {@link Plan.marker} — a bucket-cell status ring.
471
- *
472
- * @typeParam A - The `at` input's type — its axis kind brands the result
473
- * @property at - The bucket instant the marker rings
474
- * @property lane - The lane key within the cell
475
- * @property status - The semantic status (default `"danger"`)
476
- * @property message - The hover-tooltip text
477
- */
478
- export interface PlanCellMarkerInput<A extends PlanInstantInput = PlanInstantInput> {
479
- /** The bucket instant the marker rings (see {@link PlanInstantLikeType}). */
480
- at: A;
481
- /** The lane key within the cell. */
482
- lane?: SubtypeExprOrValue<StringType>;
483
- /** The semantic status (default `"danger"`). */
484
- status?: SubtypeExprOrValue<StatusValueType> | StatusValueLiteral;
485
- /** The hover-tooltip text. */
486
- message: SubtypeExprOrValue<StringType>;
487
- }
488
- /**
489
- * Builds one cell marker from a flat input, branded with `at`'s kind.
490
- *
491
- * @typeParam A - The `at` input's type
492
- * @param input - The marker configuration ({@link PlanCellMarkerInput})
493
- * @returns An East expression of {@link PlanCellMarkerType}, branded with its kind
494
- */
495
- export declare function createCellMarker<A extends PlanInstantInput>(input: PlanCellMarkerInput<A>): PlanCellMarkerExpr<PlanKindOf<A>>;
496
- /**
497
- * Flat input for {@link Plan.chip} — one cards-row shift chip.
498
- *
499
- * @typeParam F - The `from` input's type — its axis kind brands the result
500
- * @typeParam T - The `to` input's type
501
- * @property key - Stable chip identity
502
- * @property from - Chip start (inclusive)
503
- * @property to - Chip end (exclusive)
504
- * @property label - The chip text (`"80h"`, `"+64h"`)
505
- * @property state - The lifecycle state (string shorthand or value)
506
- * @property icon - Optional leading FA glyph
507
- */
508
- export interface PlanChipInput<F extends PlanInstantInput = PlanInstantInput, T extends PlanInstantInput = PlanInstantInput> {
509
- /** Stable chip identity (drag refs). */
510
- key: SubtypeExprOrValue<StringType>;
511
- /** Chip start (inclusive) — see {@link PlanInstantLikeType}. */
512
- from: F;
513
- /** Chip end (exclusive). */
514
- to: T;
515
- /** The chip text (`"80h"`, `"+64h"`). */
516
- label: SubtypeExprOrValue<StringType>;
517
- /** The lifecycle state — confirmed tint · proposed dashed · removed strikethrough · estimated ghost. */
518
- state: SubtypeExprOrValue<EventStateType> | EventStateLiteral;
519
- /** Optional leading FA glyph (shift-type etc.). */
520
- icon?: PlanIconInput;
521
- }
522
- /**
523
- * Builds one cards chip from a flat input, branded with the kind `from` /
524
- * `to` imply.
525
- *
526
- * @typeParam F - The `from` input's type
527
- * @typeParam T - The `to` input's type
528
- * @param input - The chip configuration ({@link PlanChipInput})
529
- * @returns An East expression of {@link PlanChipType}, branded with its kind
530
- */
531
- export declare function createChip<F extends PlanInstantInput, T extends PlanInstantInput>(input: PlanChipInput<F, T>): PlanChipExpr<PlanKindOf<F | T>>;
532
- /**
533
- * Flat input for {@link Plan.mark} — one event-row instant mark.
534
- *
535
- * @typeParam A - The `at` input's type — its axis kind brands the result
536
- * @property key - Stable mark identity
537
- * @property at - The instant
538
- * @property kind - `"milestone"` / `"exception"` / `Plan.markKind.decision(applied)`
539
- * @property icon - Optional FA glyph swap (12px, kind-coloured)
540
- * @property label - Optional caption (printed when there is room)
541
- */
542
- export interface PlanEventMarkInput<A extends PlanInstantInput = PlanInstantInput> {
543
- /** Stable mark identity. */
544
- key: SubtypeExprOrValue<StringType>;
545
- /** The instant (see {@link PlanInstantLikeType}). */
546
- at: A;
547
- /** The mark kind — `"milestone"` / `"exception"` string shorthand or a `PlanEventMarkKindType` value (see `Plan.markKind`). */
548
- kind: SubtypeExprOrValue<PlanEventMarkKindType> | "milestone" | "exception";
549
- /** Optional FA glyph swap (12px, still kind-coloured). */
550
- icon?: PlanIconInput;
551
- /** Optional caption (printed when there is room). */
552
- label?: SubtypeExprOrValue<StringType>;
553
- }
554
- /**
555
- * Builds one event mark from a flat input, branded with `at`'s kind.
556
- *
557
- * @typeParam A - The `at` input's type
558
- * @param input - The mark configuration ({@link PlanEventMarkInput})
559
- * @returns An East expression of {@link PlanEventMarkType}, branded with its kind
560
- */
561
- export declare function createEventMark<A extends PlanInstantInput>(input: PlanEventMarkInput<A>): PlanEventMarkExpr<PlanKindOf<A>>;
562
- /** The `Plan.markKind` builders — non-null mark kinds. */
563
- export declare const markKind: {
564
- /**
565
- * A decision diamond mark — ◇ pending / ◆ applied.
566
- *
567
- * @param applied - `true` fills the diamond
568
- * @returns A `PlanEventMarkKindType` expression with the `decision` arm
569
- */
570
- readonly decision: (applied: SubtypeExprOrValue<BooleanType> | boolean) => ExprType<PlanEventMarkKindType>;
571
- };
572
- /**
573
- * A heat scale — the value at no depth, the value at full depth, and the warn
574
- * threshold ({@link PlanHeatScaleType}).
575
- *
576
- * @property min - The value painted at no depth (default: the least shown)
577
- * @property max - The value painted at full depth (default: the greatest shown)
578
- * @property warnAt - Warn-ring threshold (≥ it rings the cell)
579
- */
580
- export interface PlanHeatScaleInput {
581
- /** The value painted at no depth (default: the least value shown). */
582
- min?: SubtypeExprOrValue<FloatType> | number;
583
- /** The value painted at full depth (default: the greatest value shown). */
584
- max?: SubtypeExprOrValue<FloatType> | number;
585
- /** Warn-ring threshold (≥ it rings the cell). */
586
- warnAt?: SubtypeExprOrValue<FloatType> | number;
587
- }
588
- /**
589
- * Build a heat scale value from its input.
590
- *
591
- * @param input - The scale ({@link PlanHeatScaleInput}); omit ⇒ every bound from the values shown
592
- * @returns An East expression of {@link PlanHeatScaleType}
593
- */
594
- export declare function createHeatScale(input?: PlanHeatScaleInput): ExprType<PlanHeatScaleType>;
595
- /**
596
- * How a cells arm folds and prints (#824) — the options every cell builder
597
- * takes.
598
- *
599
- * @property fold - How a bucket folds the cells that fall in it at a coarser resolution than theirs
600
- * @property format - How the arm's values print (a `Format.*` spec)
601
- */
602
- export interface PlanCellsFoldOptions {
603
- /** How a bucket folds the cells that fall in it at a coarser resolution than theirs
604
- * (`"sum"` / `"mean"` / `"min"` / `"max"` / `"last"` / `"count"`; each builder says its default). */
605
- fold?: PlanFoldInput;
606
- /** How the arm's values print — a `Format.*` spec (the shared `TickFormatType`), in the viewer's locale. */
607
- format?: SubtypeExprOrValue<TickFormatType>;
608
- }
609
- /**
610
- * Options for {@link Plan.heatCells} — the heat scale, the warn threshold, and
611
- * how the cells fold and print.
612
- *
613
- * @property min - Scale minimum (default: the least shown)
614
- * @property max - Scale maximum (default: the greatest shown)
615
- * @property warnAt - Warn-ring threshold (≥ it rings the cell)
616
- * @property fold - How a bucket folds its cells (default `"mean"`)
617
- * @property format - How a value prints — a cell without a `label` prints its value only when one is declared
618
- */
619
- export interface PlanHeatCellsOptions extends PlanHeatScaleInput, PlanCellsFoldOptions {
620
- }
621
- /**
622
- * Wraps per-bucket heat cells into the `heat` arm of {@link PlanHeatCellsType}.
623
- * Literal records whose `at` is a `Plan.at.*` value brand the result with
624
- * that kind ({@link PlanCellsInput}); an East array is kind-erased.
625
- *
626
- * @remarks
627
- * At a coarser resolution than the cells', a bucket shows ONE cell — the
628
- * `fold` of the cells in it (`"mean"` by default: a heat cell is a level).
629
- * A cell prints its `label`; one without prints its value only through a
630
- * declared `format` (#824).
631
- *
632
- * @typeParam K - The kind inferred from the literal records' `at`
633
- * @param cells - The cells (`{ at, value, label }` structs; `value: none` ⇒ the no-data hatch)
634
- * @param options - Scale, warn threshold, fold and format ({@link PlanHeatCellsOptions})
635
- * @returns A `PlanHeatCellsType` expression, branded with the cells' kind
636
- */
637
- export declare function createHeatCells<K extends PlanAxisKindLiteral = never>(cells: PlanCellsInput<PlanHeatCellType, K>, options?: PlanHeatCellsOptions): PlanHeatCellsExpr<K>;
638
- /**
639
- * Wraps per-bucket weight cells into the `weight` arm of
640
- * {@link PlanHeatCellsType} (booked-vs-free bars; planned ⇒ pale). Literal
641
- * records with `Plan.at.*` instants brand the result with their kind.
642
- *
643
- * @remarks
644
- * At a coarser resolution, a bucket shows ONE bar — the `fold` of its cells'
645
- * fractions (`"mean"` by default: a cell is the fraction of its bucket booked,
646
- * and a month's fraction is its weeks' mean), pale only when every cell in it
647
- * is planned. `format` prints the fraction in the words a reader hears
648
- * (default: a percent).
649
- *
650
- * @typeParam K - The kind inferred from the literal records' `at`
651
- * @param cells - The cells (`{ at, fraction, planned }` structs)
652
- * @param options - Fold and format ({@link PlanCellsFoldOptions})
653
- * @returns A `PlanHeatCellsType` expression, branded with the cells' kind
654
- */
655
- export declare function createWeightCells<K extends PlanAxisKindLiteral = never>(cells: PlanCellsInput<PlanWeightCellType, K>, options?: PlanCellsFoldOptions): PlanHeatCellsExpr<K>;
656
- /**
657
- * Wraps per-bucket segment cells into the `segments` arm of
658
- * {@link PlanHeatCellsType} (committed / pending / slack compositions).
659
- * Literal records with `Plan.at.*` instants brand the result with their kind.
660
- *
661
- * @remarks
662
- * At a coarser resolution, a bucket shows ONE composition — each fill's
663
- * weights folded across the cells in it (`"sum"` by default: the weights are
664
- * amounts, and the bar normalises them). `format` prints a segment's share in
665
- * the words a reader hears (default: a percent).
666
- *
667
- * @typeParam K - The kind inferred from the literal records' `at`
668
- * @param cells - The cells (`{ at, segments }` structs — build segments with `Plan.segment`)
669
- * @param options - Fold and format ({@link PlanCellsFoldOptions})
670
- * @returns A `PlanHeatCellsType` expression, branded with the cells' kind
671
- */
672
- export declare function createSegmentCells<K extends PlanAxisKindLiteral = never>(cells: PlanCellsInput<PlanSegmentCellType, K>, options?: PlanCellsFoldOptions): PlanHeatCellsExpr<K>;
673
- /**
674
- * Flat input for {@link Plan.segment} — one weighted slice of a segment cell.
675
- *
676
- * @property fill - The status-leveraged fill (string shorthand or `MatrixFillType`)
677
- * @property weight - The proportional weight
678
- * @property label - Optional in-bar text (printed when wide enough)
679
- */
680
- export interface PlanSegmentInput {
681
- /** The status-leveraged fill. */
682
- fill: SubtypeExprOrValue<MatrixFillType> | MatrixFillLiteral;
683
- /** The proportional weight (normalised with siblings). */
684
- weight: SubtypeExprOrValue<FloatType> | number;
685
- /** Optional in-bar text (printed when the segment is wide enough). */
686
- label?: SubtypeExprOrValue<StringType>;
687
- }
688
- /**
689
- * Builds one segment from a flat input (the Matrix segment vocabulary).
690
- *
691
- * @param input - The segment configuration ({@link PlanSegmentInput})
692
- * @returns An East expression of {@link PlanSegmentType}
693
- */
694
- export declare function createSegment(input: PlanSegmentInput): ExprType<typeof PlanSegmentType>;
695
- /**
696
- * Flat input for {@link Plan.tableSeries} — one value series of a
697
- * multi-series table row. Style is declared ONCE here, per position (never
698
- * per cell — the wire-lean contract); the cells stay raw values.
699
- *
700
- * @typeParam K - The cells' axis kind (a `Plan.tableCells` result carries it)
701
- * @property cells - The series' cells (a `Plan.tableCells` result / `PlanTableCellType` values)
702
- * @property format - Numeral format override for this series (else the row's `format`)
703
- * @property tone - Default tone for the series' values (`"muted"` de-emphasises a plan column)
704
- * @property strong - Semibold emphasis for this series' values
705
- * @property rollup - `true` ⇒ this series feeds declared parent aggregation (flag none ⇒ every series does)
706
- * @property fold - How a bucket folds this series' cells at a coarser resolution (default `"sum"`)
707
- */
708
- export interface PlanTableSeriesInput<K extends PlanAxisKindLiteral = never> {
709
- /** The series' cells (a `Plan.tableCells` result / `PlanTableCellType` values). */
710
- cells: PlanTableCellsInput<K>;
711
- /** Numeral format override for THIS series — a `Format.*` spec (else the row's `format`). */
712
- format?: SubtypeExprOrValue<TickFormatType>;
713
- /** Default tone for the series' values; per-cell tones and the derived neg/em-dash win. */
714
- tone?: SubtypeExprOrValue<PlanTableToneType> | PlanTableToneLiteral;
715
- /** Semibold emphasis for this series' values (default `false`). */
716
- strong?: SubtypeExprOrValue<BooleanType> | boolean;
717
- /** `true` ⇒ this series feeds declared parent aggregation (default `false` — flag none and every series does). */
718
- rollup?: SubtypeExprOrValue<BooleanType> | boolean;
719
- /** How a bucket folds this series' cells at a coarser resolution than theirs (default `"sum"`, #824). */
720
- fold?: PlanFoldInput;
721
- }
722
- /**
723
- * Builds one table-row value series (see {@link Plan.table}'s `series`) —
724
- * per-position style declared once, raw cells beneath it; the result carries
725
- * the cells' axis kind.
726
- *
727
- * @typeParam K - The cells' axis kind
728
- * @param input - The series configuration ({@link PlanTableSeriesInput})
729
- * @returns An East expression of {@link PlanTableSeriesType}, branded with the cells' kind
730
- */
731
- export declare function createTableSeries<K extends PlanAxisKindLiteral = never>(input: PlanTableSeriesInput<K>): PlanTableSeriesExpr<K>;
732
- /**
733
- * The raw table-cell record — `{ at, value }`, its `at` any
734
- * {@link PlanInstantLikeType} (wrapped to the axis arm by its static type).
735
- */
736
- export type PlanRawTableCellType = StructType<{
737
- at: PlanInstantLikeType;
738
- value: OptionType<FloatType>;
739
- }>;
740
- /**
741
- * Builds per-bucket table cells from raw values. The RENDERER prints each
742
- * value through the row's `format` (a `Format.*` spec — the shared
743
- * `TickFormatType`), tones negatives `neg` and renders `none` as the muted
744
- * em-dash; build `PlanTableCellType` values directly for explicit `text` /
745
- * `tone` overrides.
746
- *
747
- * @remarks
748
- * The `at` of each raw cell wraps to the axis arm by its type — a
749
- * `DateTimeType` field to `time`, a numeric field to `number`, a string
750
- * field to `ordinal`, a {@link PlanInstantType} field as is — so a
751
- * `{ at: DateTimeType, value }` dataset keeps compiling unchanged.
752
- *
753
- * Literal records brand the result with the kind their `at` implies
754
- * ({@link PlanKindOf}); an East array is kind-erased.
755
- *
756
- * @typeParam A - The literal records' `at` type
757
- * @param cells - The raw cells (`{ at, value }` records; `value` an `Option<Float>`)
758
- * @returns An `ArrayType(PlanTableCellType)` expression, branded with the cells' kind
759
- * @throws {Error} If an East array's element `at` is not an instant-typed field
760
- */
761
- export declare function createTableCells<A extends PlanInstantInput = never>(cells: {
762
- at: A;
763
- value: SubtypeExprOrValue<OptionType<FloatType>>;
764
- }[] | SubtypeExprOrValue<ArrayType<PlanRawTableCellType>>): PlanTableCellsExpr<PlanKindOf<A>>;
765
- //# sourceMappingURL=builders.d.ts.map