@elaraai/east-ui 1.0.85 → 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,287 +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
- * `Calendar` — a day-of-week × week heatmap coloured by intensity (forecast,
7
- * demand, OT exposure). **Visualisation only**: clicking selects/drills into
8
- * a day, but the Calendar is not part of the Planner family — no events, no
9
- * committed/proposed state, no drag & drop. Takes one flat table with a
10
- * chart-style field encoding; the component owns the week (columns are always
11
- * Mon–Sun). Optional chrome — the weekly totals rail, the per-weekday
12
- * aggregate row, and the selection footer — is composed with the
13
- * `Calendar.*` sub-factories.
14
- *
15
- * @packageDocumentation
16
- */
17
- import { East, Expr, variant, some, none, ArrayType, BooleanType, FloatType, IntegerType, StringType, StructType, } from "@elaraai/east";
18
- import { UIComponentType } from "../../component.js";
19
- import { mapRows } from "../../shared/reify.js";
20
- import { DensityType } from "../../style.js";
21
- import { PlotGutterType } from "../../shared/plot-gutter.js";
22
- import { CalendarRootType, CalendarCellType, CalendarCellRefType, CalendarAggregateType, CalendarScaleType, CalendarTotalsType, CalendarAggregateRowType, CalendarLegendType, CalendarFooterType, } from "./types.js";
23
- // Re-export types
24
- export { CalendarRootType, CalendarCellType, CalendarCellRefType, CalendarAggregateType, CalendarScaleType, CalendarTotalsType, CalendarAggregateRowType, CalendarLegendType, CalendarFooterType, } from "./types.js";
25
- // ============================================================================
26
- // Sub-factory helpers
27
- // ============================================================================
28
- /** Normalise an aggregate literal / expression into a `CalendarAggregateType`. */
29
- function aggregateValue(agg) {
30
- return typeof agg === "string"
31
- ? East.value(variant(agg, null), CalendarAggregateType)
32
- : agg;
33
- }
34
- /**
35
- * Builds a heatmap scale — the low→high colour ramp and bucket count that map
36
- * a cell value to its fill. Pass the result as `config.scale`.
37
- *
38
- * @param options - The scale options ({@link CalendarScaleOptions})
39
- * @returns An East `CalendarScaleType` value
40
- *
41
- * @example
42
- * ```ts
43
- * Calendar.scale({ steps: 6 })
44
- * ```
45
- */
46
- function calendarScale(options = {}) {
47
- return East.value({
48
- ramp: options.ramp !== undefined
49
- ? some(East.value(options.ramp, ArrayType(StringType)))
50
- : none,
51
- steps: options.steps ?? 8n,
52
- }, CalendarScaleType);
53
- }
54
- /**
55
- * Builds the weekly totals rail — a trailing column reducing each week row,
56
- * with an optional proportion bar. Pass the result as `config.totals`.
57
- * The aggregate vocabulary (`sum` / `mean` / `min` / `max` / `count`) matches
58
- * the Table component.
59
- *
60
- * @param options - The totals options ({@link CalendarTotalsOptions})
61
- * @returns An East `CalendarTotalsType` value
62
- *
63
- * @example
64
- * ```ts
65
- * Calendar.totals({ aggregate: "sum", label: "Σ wk" })
66
- * ```
67
- */
68
- function calendarTotals(options = {}) {
69
- return East.value({
70
- aggregate: aggregateValue(options.aggregate ?? "sum"),
71
- label: options.label ?? "Σ wk",
72
- bar: options.bar ?? true,
73
- }, CalendarTotalsType);
74
- }
75
- /**
76
- * Builds the per-weekday aggregate row — a trailing row reducing each weekday
77
- * column, pinned under the grid. Pass the result as `config.aggregateRow`.
78
- *
79
- * @param options - The aggregate-row options ({@link CalendarAggregateRowOptions})
80
- * @returns An East `CalendarAggregateRowType` value
81
- *
82
- * @example
83
- * ```ts
84
- * Calendar.aggregateRow({ aggregate: "mean", label: "mean" })
85
- * ```
86
- */
87
- function calendarAggregateRow(options = {}) {
88
- return East.value({
89
- aggregate: aggregateValue(options.aggregate ?? "mean"),
90
- label: options.label ?? "mean",
91
- }, CalendarAggregateRowType);
92
- }
93
- /**
94
- * Builds the selection footer — the strip shown once a cell is selected,
95
- * printing the cell value (labelled `valueLabel`), its `compare` baseline
96
- * (labelled `compareLabel`) and a computed delta chip, plus an optional
97
- * low→high gradient legend pinned right. Pass the result as `config.footer`.
98
- *
99
- * @param options - The footer options ({@link CalendarFooterOptions})
100
- * @returns An East `CalendarFooterType` value
101
- *
102
- * @example
103
- * ```ts
104
- * Calendar.footer({ valueLabel: "predicted", compareLabel: "last yr", legend: true })
105
- * ```
106
- */
107
- function calendarFooter(options = {}) {
108
- const legend = options.legend;
109
- const legendValue = legend === undefined || legend === false
110
- ? none
111
- : some(East.value({
112
- low: (legend === true ? undefined : legend.low) ?? "low",
113
- high: (legend === true ? undefined : legend.high) ?? "high",
114
- }, CalendarLegendType));
115
- return East.value({
116
- valueLabel: options.valueLabel ?? "value",
117
- compareLabel: options.compareLabel ?? "prev",
118
- legend: legendValue,
119
- }, CalendarFooterType);
120
- }
121
- function buildRoot(data, config) {
122
- const cellMapper = config.cell;
123
- const cells = cellMapper === undefined
124
- ? East.value(data, ArrayType(CalendarCellType))
125
- : mapRows(East.value(data), CalendarCellType, (row) => {
126
- const r = cellMapper(row);
127
- if (r instanceof Expr)
128
- return East.value(r, CalendarCellType);
129
- const value = East.value(r.value, FloatType);
130
- return East.value({
131
- week: r.week,
132
- day: r.day,
133
- value,
134
- text: r.text !== undefined ? r.text : East.print(value),
135
- compare: r.compare !== undefined ? some(East.value(r.compare, FloatType)) : none,
136
- summary: r.summary !== undefined ? some(r.summary) : none,
137
- }, CalendarCellType);
138
- });
139
- const densityValue = config.density !== undefined
140
- ? (typeof config.density === "string"
141
- ? East.value(variant(config.density, null), DensityType)
142
- : config.density)
143
- : undefined;
144
- return East.value(variant("Calendar", {
145
- cells,
146
- values: config.values ?? true,
147
- scale: config.scale !== undefined ? some(East.value(config.scale, CalendarScaleType)) : none,
148
- domain: config.domain !== undefined
149
- ? some(East.value({ min: config.domain.min, max: config.domain.max }, StructType({ min: FloatType, max: FloatType })))
150
- : none,
151
- totals: config.totals !== undefined ? some(East.value(config.totals, CalendarTotalsType)) : none,
152
- aggregateRow: config.aggregateRow !== undefined ? some(East.value(config.aggregateRow, CalendarAggregateRowType)) : none,
153
- footer: config.footer !== undefined ? some(East.value(config.footer, CalendarFooterType)) : none,
154
- actionLabel: config.actionLabel !== undefined ? some(config.actionLabel) : none,
155
- onAction: config.onAction !== undefined ? some(config.onAction) : none,
156
- onSelect: config.onSelect !== undefined ? some(config.onSelect) : none,
157
- density: densityValue !== undefined ? some(densityValue) : none,
158
- height: config.height !== undefined ? some(config.height) : none,
159
- maxHeight: config.maxHeight !== undefined ? some(config.maxHeight) : none,
160
- plotGutter: config.plotGutter !== undefined
161
- ? some(East.value({
162
- left: config.plotGutter.left !== undefined ? some(config.plotGutter.left) : none,
163
- right: config.plotGutter.right !== undefined ? some(config.plotGutter.right) : none,
164
- }, PlotGutterType))
165
- : none,
166
- }), UIComponentType);
167
- }
168
- /**
169
- * Creates a Calendar — a day-of-week × week intensity heatmap.
170
- *
171
- * @typeParam R - The day-table input
172
- * @param data - The day rows (one element per week × day cell; sparse is fine)
173
- * @param config - The Calendar configuration ({@link CalendarConfig})
174
- * @returns An East expression of `UIComponentType`
175
- *
176
- * @example
177
- * ```ts
178
- * import { East } from "@elaraai/east";
179
- * import { Calendar, UIComponentType } from "@elaraai/east-ui";
180
- *
181
- * const example = East.function([], UIComponentType, _$ =>
182
- * Calendar.Root(
183
- * [{ week: "W37", day: "Mon", demand: 102.0 }],
184
- * {
185
- * cell: d => ({ week: d.week, day: d.day, value: d.demand }),
186
- * totals: Calendar.totals(),
187
- * footer: Calendar.footer({ legend: true }),
188
- * },
189
- * ),
190
- * );
191
- * ```
192
- */
193
- function createCalendar(data, config) {
194
- return buildRoot(data, config);
195
- }
196
- // ============================================================================
197
- // Namespace export
198
- // ============================================================================
199
- /**
200
- * Calendar component namespace.
201
- *
202
- * @remarks
203
- * `Calendar.Root(data, config)` builds the heatmap from one flat day table.
204
- * Compose the optional chrome with the sub-factories: `Calendar.scale` (the
205
- * colour ramp), `Calendar.totals` (the weekly rail), `Calendar.aggregateRow`
206
- * (the per-weekday row), and `Calendar.footer` (the selection footer + legend).
207
- * Visualisation only — pair it with a `Slice.Range` in the surrounding chrome
208
- * if the time window needs to narrow.
209
- */
210
- export const Calendar = {
211
- /**
212
- * Creates a Calendar — a day-of-week × week intensity heatmap.
213
- *
214
- * @typeParam R - The day-table input
215
- * @param data - The day rows (one element per week × day cell; sparse is fine)
216
- * @param config - The Calendar configuration ({@link CalendarConfig})
217
- * @returns An East expression of `UIComponentType`
218
- *
219
- * @remarks
220
- * Cells fill with the heatmap ramp normalised over the visible values (or
221
- * the explicit `domain`); missing (week, day) combinations render the
222
- * neutral hatched fill. Selecting a cell shows its details in the footer.
223
- */
224
- Root: createCalendar,
225
- /**
226
- * Builds a heatmap scale — the low→high colour ramp and bucket count.
227
- * Pass the result as `config.scale`.
228
- *
229
- * @param options - The scale options ({@link CalendarScaleOptions})
230
- * @returns An East `CalendarScaleType` value
231
- */
232
- scale: calendarScale,
233
- /**
234
- * Builds the weekly totals rail (per-row aggregation) — a trailing column
235
- * with an optional proportion bar. Pass the result as `config.totals`.
236
- *
237
- * @param options - The totals options ({@link CalendarTotalsOptions})
238
- * @returns An East `CalendarTotalsType` value
239
- */
240
- totals: calendarTotals,
241
- /**
242
- * Builds the per-weekday aggregate row (per-column aggregation). Pass the
243
- * result as `config.aggregateRow`.
244
- *
245
- * @param options - The aggregate-row options ({@link CalendarAggregateRowOptions})
246
- * @returns An East `CalendarAggregateRowType` value
247
- */
248
- aggregateRow: calendarAggregateRow,
249
- /**
250
- * Builds the selection footer (value / compare / delta + legend). Pass the
251
- * result as `config.footer`.
252
- *
253
- * @param options - The footer options ({@link CalendarFooterOptions})
254
- * @returns An East `CalendarFooterType` value
255
- */
256
- footer: calendarFooter,
257
- Types: {
258
- /**
259
- * East StructType for the Calendar component.
260
- *
261
- * @remarks
262
- * The resolved grid; see {@link CalendarRootType} for per-field docs.
263
- */
264
- Calendar: CalendarRootType,
265
- /**
266
- * A resolved calendar cell.
267
- */
268
- Cell: CalendarCellType,
269
- /**
270
- * A cell reference — what `onSelect` / `onAction` receive.
271
- */
272
- CellRef: CalendarCellRefType,
273
- /** The aggregate reduction vocabulary (sum / mean / min / max / count). */
274
- Aggregate: CalendarAggregateType,
275
- /** The heatmap scale (ramp / steps). */
276
- Scale: CalendarScaleType,
277
- /** The weekly totals rail. */
278
- Totals: CalendarTotalsType,
279
- /** The per-weekday aggregate row. */
280
- AggregateRow: CalendarAggregateRowType,
281
- /** The selection footer. */
282
- Footer: CalendarFooterType,
283
- /** The heatmap legend. */
284
- Legend: CalendarLegendType,
285
- },
286
- };
287
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/collections/calendar/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;GAWG;AAEH,OAAO,EAIH,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,SAAS,E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3
- * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
- */
5
- import { ArrayType, BooleanType, FloatType, FunctionType, IntegerType, NullType, OptionType, StringType, StructType, VariantType } from "@elaraai/east";
6
- /**
7
- * A reduction applied across a calendar row (the weekly totals rail) or
8
- * column (the aggregate row). Mirrors the Table component's aggregate
9
- * vocabulary so the two collections stay consistent.
10
- *
11
- * @property sum - Numeric sum of the member cell values
12
- * @property mean - Numeric mean of the member cell values
13
- * @property min - Minimum member value
14
- * @property max - Maximum member value
15
- * @property count - Number of member cells present
16
- */
17
- export declare const CalendarAggregateType: VariantType<{
18
- /** Numeric sum of the member cell values */
19
- readonly sum: NullType;
20
- /** Numeric mean of the member cell values */
21
- readonly mean: NullType;
22
- /** Minimum member value */
23
- readonly min: NullType;
24
- /** Maximum member value */
25
- readonly max: NullType;
26
- /** Number of member cells present */
27
- readonly count: NullType;
28
- }>;
29
- /** Type representing a calendar aggregate reduction. */
30
- export type CalendarAggregateType = typeof CalendarAggregateType;
31
- /** String-literal shorthand for {@link CalendarAggregateType}. */
32
- export type CalendarAggregateLiteral = "sum" | "mean" | "min" | "max" | "count";
33
- /**
34
- * The heatmap colour scale — how a cell value maps to a fill.
35
- *
36
- * @remarks
37
- * `ramp` is a low→high list of CSS colours; when absent the renderer uses
38
- * the built-in eight-step teal ramp (theme-aware — it flips to a bright-on-
39
- * dark ramp in dark mode). `steps` buckets the domain (default the ramp
40
- * length). The intensity domain lives on the root as `domain`.
41
- *
42
- * @property ramp - Optional low→high colour list (absent = the default ramp)
43
- * @property steps - Number of intensity buckets
44
- */
45
- export declare const CalendarScaleType: StructType<{
46
- /** Optional low→high colour list (absent = the default ramp) */
47
- readonly ramp: OptionType<ArrayType<StringType>>;
48
- /** Number of intensity buckets */
49
- readonly steps: IntegerType;
50
- }>;
51
- /** Type representing a calendar heatmap scale. */
52
- export type CalendarScaleType = typeof CalendarScaleType;
53
- /**
54
- * The weekly totals rail — a trailing column that reduces each week row and
55
- * (optionally) shows a proportion bar against the largest total.
56
- *
57
- * @property aggregate - The reduction applied across each week's cells
58
- * @property label - The rail's column header (e.g. `"Σ wk"`)
59
- * @property bar - Whether to draw the proportion bar under each total
60
- */
61
- export declare const CalendarTotalsType: StructType<{
62
- /** The reduction applied across each week's cells */
63
- readonly aggregate: VariantType<{
64
- /** Numeric sum of the member cell values */
65
- readonly sum: NullType;
66
- /** Numeric mean of the member cell values */
67
- readonly mean: NullType;
68
- /** Minimum member value */
69
- readonly min: NullType;
70
- /** Maximum member value */
71
- readonly max: NullType;
72
- /** Number of member cells present */
73
- readonly count: NullType;
74
- }>;
75
- /** The rail's column header (e.g. `"Σ wk"`) */
76
- readonly label: StringType;
77
- /** Whether to draw the proportion bar under each total */
78
- readonly bar: BooleanType;
79
- }>;
80
- /** Type representing the weekly totals rail. */
81
- export type CalendarTotalsType = typeof CalendarTotalsType;
82
- /**
83
- * The aggregate row — a trailing row that reduces each weekday column
84
- * (e.g. the per-weekday mean), pinned under the grid with a top rule.
85
- *
86
- * @property aggregate - The reduction applied across each weekday's cells
87
- * @property label - The row's label (e.g. `"mean"`)
88
- */
89
- export declare const CalendarAggregateRowType: StructType<{
90
- /** The reduction applied across each weekday's cells */
91
- readonly aggregate: VariantType<{
92
- /** Numeric sum of the member cell values */
93
- readonly sum: NullType;
94
- /** Numeric mean of the member cell values */
95
- readonly mean: NullType;
96
- /** Minimum member value */
97
- readonly min: NullType;
98
- /** Maximum member value */
99
- readonly max: NullType;
100
- /** Number of member cells present */
101
- readonly count: NullType;
102
- }>;
103
- /** The row's label (e.g. `"mean"`) */
104
- readonly label: StringType;
105
- }>;
106
- /** Type representing the per-weekday aggregate row. */
107
- export type CalendarAggregateRowType = typeof CalendarAggregateRowType;
108
- /**
109
- * The footer's low→high gradient legend that decodes the heatmap ramp.
110
- *
111
- * @property low - The low-end caption (e.g. `"low"`)
112
- * @property high - The high-end caption (e.g. `"high"`)
113
- */
114
- export declare const CalendarLegendType: StructType<{
115
- /** The low-end caption (e.g. `"low"`) */
116
- readonly low: StringType;
117
- /** The high-end caption (e.g. `"high"`) */
118
- readonly high: StringType;
119
- }>;
120
- /** Type representing the heatmap legend. */
121
- export type CalendarLegendType = typeof CalendarLegendType;
122
- /**
123
- * The selection footer — shown once a cell is selected. Reads the selected
124
- * cell's `value` (labelled `valueLabel`) and, when present, its `compare`
125
- * baseline (labelled `compareLabel`) plus the computed delta chip.
126
- *
127
- * @property valueLabel - Label for the cell value (e.g. `"predicted"`)
128
- * @property compareLabel - Label for the compare baseline (e.g. `"last yr"`)
129
- * @property legend - Optional low→high gradient legend, pinned footer-right
130
- */
131
- export declare const CalendarFooterType: StructType<{
132
- /** Label for the cell value (e.g. `"predicted"`) */
133
- readonly valueLabel: StringType;
134
- /** Label for the compare baseline (e.g. `"last yr"`) */
135
- readonly compareLabel: StringType;
136
- /** Optional low→high gradient legend, pinned footer-right */
137
- readonly legend: OptionType<StructType<{
138
- /** The low-end caption (e.g. `"low"`) */
139
- readonly low: StringType;
140
- /** The high-end caption (e.g. `"high"`) */
141
- readonly high: StringType;
142
- }>>;
143
- }>;
144
- /** Type representing the selection footer. */
145
- export type CalendarFooterType = typeof CalendarFooterType;
146
- /**
147
- * A cell reference on the calendar grid — what `onSelect` receives.
148
- *
149
- * @property week - The row's week label
150
- * @property day - The day column ("Mon" … "Sun")
151
- */
152
- export declare const CalendarCellRefType: StructType<{
153
- /** The row's week label */
154
- readonly week: StringType;
155
- /** The day column ("Mon" … "Sun") */
156
- readonly day: StringType;
157
- }>;
158
- /**
159
- * Type representing calendar cell references.
160
- */
161
- export type CalendarCellRefType = typeof CalendarCellRefType;
162
- /**
163
- * A resolved calendar cell.
164
- *
165
- * @remarks
166
- * One element per (week, day) the data covered; days with no cell render
167
- * the neutral hatched fill. `compare` is the footer's baseline (last year /
168
- * forecast) — when present the footer prints it and a computed delta chip;
169
- * `summary` is optional extra footer text.
170
- *
171
- * @property week - The row's week label (rows appear in first-appearance order)
172
- * @property day - The day column ("Mon" … "Sun", exact match)
173
- * @property value - The intensity / printed value
174
- * @property text - The cell text (formatted value)
175
- * @property compare - Optional baseline for the footer delta (e.g. last year)
176
- * @property summary - Optional extra selection-footer text for this day
177
- */
178
- export declare const CalendarCellType: StructType<{
179
- /** The row's week label (rows appear in first-appearance order) */
180
- readonly week: StringType;
181
- /** The day column ("Mon" … "Sun", exact match) */
182
- readonly day: StringType;
183
- /** The intensity / printed value */
184
- readonly value: FloatType;
185
- /** The cell text (formatted value) */
186
- readonly text: StringType;
187
- /** Optional baseline for the footer delta (e.g. last year) */
188
- readonly compare: OptionType<FloatType>;
189
- /** Optional extra selection-footer text for this day */
190
- readonly summary: OptionType<StringType>;
191
- }>;
192
- /**
193
- * Type representing resolved calendar cells.
194
- */
195
- export type CalendarCellType = typeof CalendarCellType;
196
- /**
197
- * East StructType for the Calendar component.
198
- *
199
- * @remarks
200
- * Day-of-week × week heatmap coloured by intensity — visualisation only:
201
- * clicking selects/drills a day (`onSelect` / the footer `action`), but
202
- * there are no events, no committed/proposed state, and no drag & drop.
203
- * Optional chrome: the weekly `totals` rail, the per-weekday `aggregateRow`,
204
- * and the selection `footer` (with its gradient legend).
205
- *
206
- * @property cells - The resolved cells
207
- * @property values - Whether the numeric value is printed inside each cell
208
- * @property scale - Optional heatmap scale override (ramp / steps)
209
- * @property domain - Optional explicit intensity domain (default: observed min/max)
210
- * @property totals - Optional weekly totals rail (per-row aggregation)
211
- * @property aggregateRow - Optional per-weekday aggregate row (per-column aggregation)
212
- * @property footer - Optional selection footer (value / compare / delta + legend)
213
- * @property actionLabel - Optional footer drill label
214
- * @property onAction - Optional footer drill callback (receives the selected cell)
215
- * @property onSelect - Optional cell-click callback
216
- * @property density - Optional density preset (comfortable | compact | condensed)
217
- */
218
- export declare const CalendarRootType: StructType<{
219
- /** The resolved cells */
220
- readonly cells: ArrayType<StructType<{
221
- /** The row's week label (rows appear in first-appearance order) */
222
- readonly week: StringType;
223
- /** The day column ("Mon" … "Sun", exact match) */
224
- readonly day: StringType;
225
- /** The intensity / printed value */
226
- readonly value: FloatType;
227
- /** The cell text (formatted value) */
228
- readonly text: StringType;
229
- /** Optional baseline for the footer delta (e.g. last year) */
230
- readonly compare: OptionType<FloatType>;
231
- /** Optional extra selection-footer text for this day */
232
- readonly summary: OptionType<StringType>;
233
- }>>;
234
- /** Whether the numeric value is printed inside each cell */
235
- readonly values: BooleanType;
236
- /** Optional heatmap scale override (ramp / steps) */
237
- readonly scale: OptionType<StructType<{
238
- /** Optional low→high colour list (absent = the default ramp) */
239
- readonly ramp: OptionType<ArrayType<StringType>>;
240
- /** Number of intensity buckets */
241
- readonly steps: IntegerType;
242
- }>>;
243
- /** Optional explicit intensity domain (default: observed min/max) */
244
- readonly domain: OptionType<StructType<{
245
- /** Domain minimum */
246
- readonly min: FloatType;
247
- /** Domain maximum */
248
- readonly max: FloatType;
249
- }>>;
250
- /** Optional weekly totals rail (per-row aggregation) */
251
- readonly totals: OptionType<StructType<{
252
- /** The reduction applied across each week's cells */
253
- readonly aggregate: VariantType<{
254
- /** Numeric sum of the member cell values */
255
- readonly sum: NullType;
256
- /** Numeric mean of the member cell values */
257
- readonly mean: NullType;
258
- /** Minimum member value */
259
- readonly min: NullType;
260
- /** Maximum member value */
261
- readonly max: NullType;
262
- /** Number of member cells present */
263
- readonly count: NullType;
264
- }>;
265
- /** The rail's column header (e.g. `"Σ wk"`) */
266
- readonly label: StringType;
267
- /** Whether to draw the proportion bar under each total */
268
- readonly bar: BooleanType;
269
- }>>;
270
- /** Optional per-weekday aggregate row (per-column aggregation) */
271
- readonly aggregateRow: OptionType<StructType<{
272
- /** The reduction applied across each weekday's cells */
273
- readonly aggregate: VariantType<{
274
- /** Numeric sum of the member cell values */
275
- readonly sum: NullType;
276
- /** Numeric mean of the member cell values */
277
- readonly mean: NullType;
278
- /** Minimum member value */
279
- readonly min: NullType;
280
- /** Maximum member value */
281
- readonly max: NullType;
282
- /** Number of member cells present */
283
- readonly count: NullType;
284
- }>;
285
- /** The row's label (e.g. `"mean"`) */
286
- readonly label: StringType;
287
- }>>;
288
- /** Optional selection footer (value / compare / delta + legend) */
289
- readonly footer: OptionType<StructType<{
290
- /** Label for the cell value (e.g. `"predicted"`) */
291
- readonly valueLabel: StringType;
292
- /** Label for the compare baseline (e.g. `"last yr"`) */
293
- readonly compareLabel: StringType;
294
- /** Optional low→high gradient legend, pinned footer-right */
295
- readonly legend: OptionType<StructType<{
296
- /** The low-end caption (e.g. `"low"`) */
297
- readonly low: StringType;
298
- /** The high-end caption (e.g. `"high"`) */
299
- readonly high: StringType;
300
- }>>;
301
- }>>;
302
- /** Optional footer drill label */
303
- readonly actionLabel: OptionType<StringType>;
304
- /** Optional footer drill callback (receives the selected cell) */
305
- readonly onAction: OptionType<FunctionType<[StructType<{
306
- /** The row's week label */
307
- readonly week: StringType;
308
- /** The day column ("Mon" … "Sun") */
309
- readonly day: StringType;
310
- }>], NullType>>;
311
- /** Optional cell-click callback */
312
- readonly onSelect: OptionType<FunctionType<[StructType<{
313
- /** The row's week label */
314
- readonly week: StringType;
315
- /** The day column ("Mon" … "Sun") */
316
- readonly day: StringType;
317
- }>], NullType>>;
318
- /** Optional density preset (comfortable | compact | condensed); default comfortable */
319
- readonly density: OptionType<VariantType<{
320
- readonly comfortable: NullType;
321
- readonly compact: NullType;
322
- readonly condensed: NullType;
323
- }>>;
324
- /** Shared plot gutter (#147) — pins the day grid to `[left, W−right]` so a Calendar stacked under a Chart lines up; `left` is the week-label column width */
325
- readonly plotGutter: OptionType<StructType<{
326
- readonly left: OptionType<StringType>;
327
- readonly right: OptionType<StringType>;
328
- }>>;
329
- /** Uniform sizing (#320): bound the calendar; it scrolls within. `"fill"` fills the parent box. */
330
- readonly height: OptionType<StringType>;
331
- /** Uniform sizing (#320): max-height cap; content-sized up to it. */
332
- readonly maxHeight: OptionType<StringType>;
333
- }>;
334
- /**
335
- * Type representing the Calendar component.
336
- */
337
- export type CalendarRootType = typeof CalendarRootType;
338
- //# sourceMappingURL=types.d.ts.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