@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
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * # Two platforms, one model
9
9
  *
10
- * - `Slice.bind<T>(key, config)` — stateful. Browser-local reactive
10
+ * - `Slice.bind(key, rows, options)` — stateful. Browser-local reactive
11
11
  * state + structured mutators.
12
12
  * Implemented by the host (React
13
13
  * renderer).
@@ -61,6 +61,9 @@
61
61
  * @packageDocumentation
62
62
  */
63
63
  import { StringType, NullType, BooleanType, IntegerType, FloatType, DateTimeType, StructType, VariantType, ArrayType, SetType, DictType, OptionType, FunctionType, type EastType, type ExprType, type SubtypeExprOrValue, type ValueTypeOf } from "@elaraai/east";
64
+ import { bindRecord } from "./record.js";
65
+ import { bindLocal } from "./local.js";
66
+ import { ValueFormatType } from "../../contracts/format.js";
64
67
  import { TimeResolutionType } from "../../contracts/time.js";
65
68
  /**
66
69
  * Absolute datetime interval — `from` inclusive, `to` inclusive.
@@ -393,6 +396,8 @@ export type SliceFieldFormat = "number" | "percent" | "compact" | {
393
396
  } | {
394
397
  datetime: string;
395
398
  };
399
+ /** Build the {@link ValueFormatType} variant value for a field-format shorthand. */
400
+ export declare function toValueFormat(f: SliceFieldFormat): ValueTypeOf<ValueFormatType>;
396
401
  /**
397
402
  * One field declaration in `Slice.config`. Only the label is required —
398
403
  * the accessor is auto-derived as `r => r[fieldId]` and the field's kind
@@ -468,8 +473,8 @@ export interface SliceUserConfig<Fields extends Record<string, SliceFieldUserCon
468
473
  * breakdownFieldIds: ["country"],
469
474
  * }));
470
475
  *
471
- * const slice = $.let(Slice.bind([UserEventType], "demo.events", cfg, Slice.state()));
472
- * const filtered = $.let(Slice.apply.where([UserEventType], slice.read(), cfg, events));
476
+ * const state = $.let(Slice.state({}));
477
+ * const filtered = $.let(Slice.apply.where([UserEventType], state, cfg, events));
473
478
  * ```
474
479
  *
475
480
  * @typeParam RowType - The row's East StructType (passed positionally)
@@ -2148,6 +2153,13 @@ export declare const SliceBindType: StructType<{
2148
2153
  }>>], NullType>;
2149
2154
  }>;
2150
2155
  export type SliceBindType = typeof SliceBindType;
2156
+ /**
2157
+ * Project an authoring handle onto the frozen, non-generic component wire.
2158
+ * @param input - A local handle, including its typed data reader.
2159
+ * @returns The original SliceBindType payload, evaluated once.
2160
+ * @internal
2161
+ */
2162
+ export declare function localSliceHandle(input: SubtypeExprOrValue<SliceBindType>): ExprType<SliceBindType>;
2151
2163
  /**
2152
2164
  * Low-level platform primitives that back {@link Slice.bind}'s handle methods.
2153
2165
  *
@@ -2811,1089 +2823,278 @@ export declare const SliceBindPrimitives: {
2811
2823
  }>>>;
2812
2824
  readonly cohortCounts: import("@elaraai/east").PlatformDefinition<[StringType], DictType<StringType, IntegerType>>;
2813
2825
  };
2814
- /**
2815
- * Materialise the concrete partition-row East type for a row type — one bound
2816
- * row `value` paired with whether it passes the active narrowing (`matched`).
2817
- * The module-scope {@link SlicePartitionRowType} keeps the `"T"` placeholder for
2818
- * the `slice_partition` declaration; consumers rarely need this — `Slice.partition`
2819
- * infers the type at the call site.
2820
- *
2821
- * @param rowType - The East row type the slice narrows
2822
- * @returns The `{ value, matched }` East StructType for that row type
2823
- */
2824
- export declare function slicePartitionRowFor<T extends EastType>(rowType: T): StructType<{
2825
- readonly value: T;
2826
- readonly matched: BooleanType;
2827
- }>;
2828
- /** The `{ value: T, matched }` partition row — carries the `"T"` placeholder for
2829
- * the `slice_partition` generic-platform declaration. */
2830
- export declare const SlicePartitionRowType: StructType<{
2831
- readonly value: "T";
2832
- readonly matched: BooleanType;
2833
- }>;
2834
- /** Type alias for {@link SlicePartitionRowType}. */
2835
- export type SlicePartitionRowType = typeof SlicePartitionRowType;
2836
- /**
2837
- * The slice-chrome payload every slice-accepting component carries — the
2838
- * bound handle plus the affordances its rail mounts. Chrome only: the
2839
- * component's data is always fed explicitly (`Slice.rows([RowType], slice)`).
2840
- */
2841
- export declare const SliceChromeType: StructType<{
2842
- readonly slice: StructType<{
2843
- /** The store key this slice is bound to — lets renderers self-subscribe. */
2844
- readonly key: StringType;
2845
- /** Read the entire slice state; tracked for reactive re-render. */
2846
- readonly read: FunctionType<[], StructType<{
2847
- readonly range: OptionType<VariantType<{
2848
- readonly datetime: StructType<{
2849
- readonly from: DateTimeType;
2850
- readonly to: DateTimeType;
2851
- }>;
2852
- readonly datetimePreset: VariantType<{
2853
- readonly today: NullType;
2854
- readonly last7d: NullType;
2855
- readonly last30d: NullType;
2856
- readonly last90d: NullType;
2857
- readonly ytd: NullType;
2858
- }>;
2859
- readonly integer: StructType<{
2860
- readonly from: IntegerType;
2861
- readonly to: IntegerType;
2862
- }>;
2863
- readonly float: StructType<{
2864
- readonly from: FloatType;
2865
- readonly to: FloatType;
2826
+ /** The unchanged local runtime call, shared by the typed authoring factory. @internal */
2827
+ export declare const slice_bind: import("@elaraai/east").GenericPlatformDefinition<readonly ["T"], readonly [StringType, StructType<{
2828
+ readonly fields: DictType<StringType, VariantType<{
2829
+ readonly string: StructType<{
2830
+ readonly label: StringType;
2831
+ readonly accessor: FunctionType<["T"], StringType>;
2832
+ readonly format: OptionType<VariantType<{
2833
+ readonly number: NullType;
2834
+ readonly currency: StructType<{
2835
+ readonly code: StringType;
2836
+ readonly compact: BooleanType;
2866
2837
  }>;
2838
+ readonly percent: NullType;
2839
+ readonly compact: NullType;
2840
+ readonly date: StringType;
2841
+ readonly time: StringType;
2842
+ readonly datetime: StringType;
2867
2843
  }>>;
2868
- readonly compare: OptionType<VariantType<{
2869
- readonly previousPeriod: NullType;
2870
- readonly previousYear: NullType;
2871
- }>>;
2872
- readonly filters: ArrayType<VariantType<{
2873
- readonly string: StructType<{
2874
- readonly fieldId: StringType;
2875
- readonly op: VariantType<{
2876
- readonly eq: StringType;
2877
- readonly neq: StringType;
2878
- readonly in: SetType<StringType>;
2879
- readonly notIn: SetType<StringType>;
2880
- readonly contains: StringType;
2881
- readonly matches: StringType;
2882
- readonly startsWith: StringType;
2883
- readonly endsWith: StringType;
2884
- readonly isEmpty: NullType;
2885
- readonly isNotEmpty: NullType;
2886
- }>;
2887
- }>;
2888
- readonly integer: StructType<{
2889
- readonly fieldId: StringType;
2890
- readonly op: VariantType<{
2891
- readonly eq: IntegerType;
2892
- readonly neq: IntegerType;
2893
- readonly lt: IntegerType;
2894
- readonly lte: IntegerType;
2895
- readonly gt: IntegerType;
2896
- readonly gte: IntegerType;
2897
- readonly in: SetType<IntegerType>;
2898
- }>;
2844
+ }>;
2845
+ readonly integer: StructType<{
2846
+ readonly label: StringType;
2847
+ readonly accessor: FunctionType<["T"], IntegerType>;
2848
+ readonly format: OptionType<VariantType<{
2849
+ readonly number: NullType;
2850
+ readonly currency: StructType<{
2851
+ readonly code: StringType;
2852
+ readonly compact: BooleanType;
2899
2853
  }>;
2900
- readonly float: StructType<{
2901
- readonly fieldId: StringType;
2902
- readonly op: VariantType<{
2903
- readonly lt: FloatType;
2904
- readonly lte: FloatType;
2905
- readonly gt: FloatType;
2906
- readonly gte: FloatType;
2907
- }>;
2854
+ readonly percent: NullType;
2855
+ readonly compact: NullType;
2856
+ readonly date: StringType;
2857
+ readonly time: StringType;
2858
+ readonly datetime: StringType;
2859
+ }>>;
2860
+ }>;
2861
+ readonly float: StructType<{
2862
+ readonly label: StringType;
2863
+ readonly accessor: FunctionType<["T"], FloatType>;
2864
+ readonly format: OptionType<VariantType<{
2865
+ readonly number: NullType;
2866
+ readonly currency: StructType<{
2867
+ readonly code: StringType;
2868
+ readonly compact: BooleanType;
2908
2869
  }>;
2909
- readonly datetime: StructType<{
2910
- readonly fieldId: StringType;
2911
- readonly op: VariantType<{
2912
- readonly before: DateTimeType;
2913
- readonly after: DateTimeType;
2914
- readonly between: StructType<{
2915
- readonly from: DateTimeType;
2916
- readonly to: DateTimeType;
2917
- }>;
2918
- }>;
2870
+ readonly percent: NullType;
2871
+ readonly compact: NullType;
2872
+ readonly date: StringType;
2873
+ readonly time: StringType;
2874
+ readonly datetime: StringType;
2875
+ }>>;
2876
+ }>;
2877
+ readonly datetime: StructType<{
2878
+ readonly label: StringType;
2879
+ readonly accessor: FunctionType<["T"], DateTimeType>;
2880
+ readonly format: OptionType<VariantType<{
2881
+ readonly number: NullType;
2882
+ readonly currency: StructType<{
2883
+ readonly code: StringType;
2884
+ readonly compact: BooleanType;
2919
2885
  }>;
2920
- readonly boolean: StructType<{
2921
- readonly fieldId: StringType;
2922
- readonly op: VariantType<{
2923
- readonly is: BooleanType;
2924
- }>;
2886
+ readonly percent: NullType;
2887
+ readonly compact: NullType;
2888
+ readonly date: StringType;
2889
+ readonly time: StringType;
2890
+ readonly datetime: StringType;
2891
+ }>>;
2892
+ }>;
2893
+ readonly boolean: StructType<{
2894
+ readonly label: StringType;
2895
+ readonly accessor: FunctionType<["T"], BooleanType>;
2896
+ readonly format: OptionType<VariantType<{
2897
+ readonly number: NullType;
2898
+ readonly currency: StructType<{
2899
+ readonly code: StringType;
2900
+ readonly compact: BooleanType;
2925
2901
  }>;
2902
+ readonly percent: NullType;
2903
+ readonly compact: NullType;
2904
+ readonly date: StringType;
2905
+ readonly time: StringType;
2906
+ readonly datetime: StringType;
2926
2907
  }>>;
2927
- readonly cohorts: ArrayType<StructType<{
2928
- readonly id: StringType;
2929
- readonly name: StringType;
2930
- readonly filters: ArrayType<VariantType<{
2931
- readonly string: StructType<{
2932
- readonly fieldId: StringType;
2933
- readonly op: VariantType<{
2934
- readonly eq: StringType;
2935
- readonly neq: StringType;
2936
- readonly in: SetType<StringType>;
2937
- readonly notIn: SetType<StringType>;
2938
- readonly contains: StringType;
2939
- readonly matches: StringType;
2940
- readonly startsWith: StringType;
2941
- readonly endsWith: StringType;
2942
- readonly isEmpty: NullType;
2943
- readonly isNotEmpty: NullType;
2944
- }>;
2945
- }>;
2946
- readonly integer: StructType<{
2947
- readonly fieldId: StringType;
2948
- readonly op: VariantType<{
2949
- readonly eq: IntegerType;
2950
- readonly neq: IntegerType;
2951
- readonly lt: IntegerType;
2952
- readonly lte: IntegerType;
2953
- readonly gt: IntegerType;
2954
- readonly gte: IntegerType;
2955
- readonly in: SetType<IntegerType>;
2956
- }>;
2957
- }>;
2958
- readonly float: StructType<{
2959
- readonly fieldId: StringType;
2960
- readonly op: VariantType<{
2961
- readonly lt: FloatType;
2962
- readonly lte: FloatType;
2963
- readonly gt: FloatType;
2964
- readonly gte: FloatType;
2965
- }>;
2966
- }>;
2967
- readonly datetime: StructType<{
2968
- readonly fieldId: StringType;
2969
- readonly op: VariantType<{
2970
- readonly before: DateTimeType;
2971
- readonly after: DateTimeType;
2972
- readonly between: StructType<{
2973
- readonly from: DateTimeType;
2974
- readonly to: DateTimeType;
2975
- }>;
2976
- }>;
2977
- }>;
2978
- readonly boolean: StructType<{
2979
- readonly fieldId: StringType;
2980
- readonly op: VariantType<{
2981
- readonly is: BooleanType;
2982
- }>;
2983
- }>;
2984
- }>>;
2985
- readonly group: OptionType<StringType>;
2908
+ }>;
2909
+ readonly text: StructType<{
2910
+ readonly label: StringType;
2911
+ readonly accessor: FunctionType<["T"], StringType>;
2912
+ readonly format: OptionType<VariantType<{
2913
+ readonly number: NullType;
2914
+ readonly currency: StructType<{
2915
+ readonly code: StringType;
2916
+ readonly compact: BooleanType;
2917
+ }>;
2918
+ readonly percent: NullType;
2919
+ readonly compact: NullType;
2920
+ readonly date: StringType;
2921
+ readonly time: StringType;
2922
+ readonly datetime: StringType;
2986
2923
  }>>;
2987
- readonly activeCohorts: SetType<StringType>;
2988
- readonly breakdown: OptionType<StructType<{
2989
- readonly fieldId: StringType;
2990
- readonly limit: OptionType<IntegerType>;
2991
- }>>;
2992
- readonly search: OptionType<StringType>;
2993
- readonly visible: OptionType<SetType<StringType>>;
2994
- readonly selectedIndex: OptionType<IntegerType>;
2995
- readonly resolution: OptionType<VariantType<{
2996
- readonly auto: NullType;
2997
- readonly hour: NullType;
2998
- readonly day: NullType;
2999
- readonly week: NullType;
3000
- readonly month: NullType;
3001
- readonly quarter: NullType;
3002
- readonly year: NullType;
3003
- }>>;
3004
- }>>;
3005
- /** Replace the entire slice state. Rare — prefer the structured mutators. */
3006
- readonly write: FunctionType<[StructType<{
3007
- readonly range: OptionType<VariantType<{
3008
- readonly datetime: StructType<{
3009
- readonly from: DateTimeType;
3010
- readonly to: DateTimeType;
3011
- }>;
3012
- readonly datetimePreset: VariantType<{
3013
- readonly today: NullType;
3014
- readonly last7d: NullType;
3015
- readonly last30d: NullType;
3016
- readonly last90d: NullType;
3017
- readonly ytd: NullType;
3018
- }>;
3019
- readonly integer: StructType<{
3020
- readonly from: IntegerType;
3021
- readonly to: IntegerType;
3022
- }>;
3023
- readonly float: StructType<{
3024
- readonly from: FloatType;
3025
- readonly to: FloatType;
3026
- }>;
3027
- }>>;
3028
- readonly compare: OptionType<VariantType<{
3029
- readonly previousPeriod: NullType;
3030
- readonly previousYear: NullType;
3031
- }>>;
3032
- readonly filters: ArrayType<VariantType<{
3033
- readonly string: StructType<{
3034
- readonly fieldId: StringType;
3035
- readonly op: VariantType<{
3036
- readonly eq: StringType;
3037
- readonly neq: StringType;
3038
- readonly in: SetType<StringType>;
3039
- readonly notIn: SetType<StringType>;
3040
- readonly contains: StringType;
3041
- readonly matches: StringType;
3042
- readonly startsWith: StringType;
3043
- readonly endsWith: StringType;
3044
- readonly isEmpty: NullType;
3045
- readonly isNotEmpty: NullType;
3046
- }>;
3047
- }>;
3048
- readonly integer: StructType<{
3049
- readonly fieldId: StringType;
3050
- readonly op: VariantType<{
3051
- readonly eq: IntegerType;
3052
- readonly neq: IntegerType;
3053
- readonly lt: IntegerType;
3054
- readonly lte: IntegerType;
3055
- readonly gt: IntegerType;
3056
- readonly gte: IntegerType;
3057
- readonly in: SetType<IntegerType>;
3058
- }>;
3059
- }>;
3060
- readonly float: StructType<{
3061
- readonly fieldId: StringType;
3062
- readonly op: VariantType<{
3063
- readonly lt: FloatType;
3064
- readonly lte: FloatType;
3065
- readonly gt: FloatType;
3066
- readonly gte: FloatType;
3067
- }>;
3068
- }>;
3069
- readonly datetime: StructType<{
3070
- readonly fieldId: StringType;
3071
- readonly op: VariantType<{
3072
- readonly before: DateTimeType;
3073
- readonly after: DateTimeType;
3074
- readonly between: StructType<{
3075
- readonly from: DateTimeType;
3076
- readonly to: DateTimeType;
3077
- }>;
3078
- }>;
3079
- }>;
3080
- readonly boolean: StructType<{
3081
- readonly fieldId: StringType;
3082
- readonly op: VariantType<{
3083
- readonly is: BooleanType;
3084
- }>;
3085
- }>;
3086
- }>>;
3087
- readonly cohorts: ArrayType<StructType<{
3088
- readonly id: StringType;
3089
- readonly name: StringType;
3090
- readonly filters: ArrayType<VariantType<{
3091
- readonly string: StructType<{
3092
- readonly fieldId: StringType;
3093
- readonly op: VariantType<{
3094
- readonly eq: StringType;
3095
- readonly neq: StringType;
3096
- readonly in: SetType<StringType>;
3097
- readonly notIn: SetType<StringType>;
3098
- readonly contains: StringType;
3099
- readonly matches: StringType;
3100
- readonly startsWith: StringType;
3101
- readonly endsWith: StringType;
3102
- readonly isEmpty: NullType;
3103
- readonly isNotEmpty: NullType;
3104
- }>;
3105
- }>;
3106
- readonly integer: StructType<{
3107
- readonly fieldId: StringType;
3108
- readonly op: VariantType<{
3109
- readonly eq: IntegerType;
3110
- readonly neq: IntegerType;
3111
- readonly lt: IntegerType;
3112
- readonly lte: IntegerType;
3113
- readonly gt: IntegerType;
3114
- readonly gte: IntegerType;
3115
- readonly in: SetType<IntegerType>;
3116
- }>;
3117
- }>;
3118
- readonly float: StructType<{
3119
- readonly fieldId: StringType;
3120
- readonly op: VariantType<{
3121
- readonly lt: FloatType;
3122
- readonly lte: FloatType;
3123
- readonly gt: FloatType;
3124
- readonly gte: FloatType;
3125
- }>;
3126
- }>;
3127
- readonly datetime: StructType<{
3128
- readonly fieldId: StringType;
3129
- readonly op: VariantType<{
3130
- readonly before: DateTimeType;
3131
- readonly after: DateTimeType;
3132
- readonly between: StructType<{
3133
- readonly from: DateTimeType;
3134
- readonly to: DateTimeType;
3135
- }>;
3136
- }>;
3137
- }>;
3138
- readonly boolean: StructType<{
3139
- readonly fieldId: StringType;
3140
- readonly op: VariantType<{
3141
- readonly is: BooleanType;
3142
- }>;
3143
- }>;
3144
- }>>;
3145
- readonly group: OptionType<StringType>;
3146
- }>>;
3147
- readonly activeCohorts: SetType<StringType>;
3148
- readonly breakdown: OptionType<StructType<{
3149
- readonly fieldId: StringType;
3150
- readonly limit: OptionType<IntegerType>;
3151
- }>>;
3152
- readonly search: OptionType<StringType>;
3153
- readonly visible: OptionType<SetType<StringType>>;
3154
- readonly selectedIndex: OptionType<IntegerType>;
3155
- readonly resolution: OptionType<VariantType<{
3156
- readonly auto: NullType;
3157
- readonly hour: NullType;
3158
- readonly day: NullType;
3159
- readonly week: NullType;
3160
- readonly month: NullType;
3161
- readonly quarter: NullType;
3162
- readonly year: NullType;
3163
- }>>;
3164
- }>], NullType>;
3165
- /** Set or clear the ranged narrowing. `none` clears; `some(range)` activates. */
3166
- readonly setRange: FunctionType<[OptionType<VariantType<{
3167
- readonly datetime: StructType<{
3168
- readonly from: DateTimeType;
3169
- readonly to: DateTimeType;
3170
- }>;
3171
- readonly datetimePreset: VariantType<{
3172
- readonly today: NullType;
3173
- readonly last7d: NullType;
3174
- readonly last30d: NullType;
3175
- readonly last90d: NullType;
3176
- readonly ytd: NullType;
3177
- }>;
3178
- readonly integer: StructType<{
3179
- readonly from: IntegerType;
3180
- readonly to: IntegerType;
3181
- }>;
3182
- readonly float: StructType<{
3183
- readonly from: FloatType;
3184
- readonly to: FloatType;
3185
- }>;
3186
- }>>], NullType>;
3187
- /** Set or clear the comparison period. `none` clears. */
3188
- readonly setCompare: FunctionType<[OptionType<VariantType<{
3189
- readonly previousPeriod: NullType;
3190
- readonly previousYear: NullType;
3191
- }>>], NullType>;
3192
- /** Append a new filter clause to the AND chain. */
3193
- readonly addFilter: FunctionType<[VariantType<{
3194
- readonly string: StructType<{
3195
- readonly fieldId: StringType;
3196
- readonly op: VariantType<{
3197
- readonly eq: StringType;
3198
- readonly neq: StringType;
3199
- readonly in: SetType<StringType>;
3200
- readonly notIn: SetType<StringType>;
3201
- readonly contains: StringType;
3202
- readonly matches: StringType;
3203
- readonly startsWith: StringType;
3204
- readonly endsWith: StringType;
3205
- readonly isEmpty: NullType;
3206
- readonly isNotEmpty: NullType;
3207
- }>;
3208
- }>;
3209
- readonly integer: StructType<{
3210
- readonly fieldId: StringType;
3211
- readonly op: VariantType<{
3212
- readonly eq: IntegerType;
3213
- readonly neq: IntegerType;
3214
- readonly lt: IntegerType;
3215
- readonly lte: IntegerType;
3216
- readonly gt: IntegerType;
3217
- readonly gte: IntegerType;
3218
- readonly in: SetType<IntegerType>;
3219
- }>;
3220
- }>;
3221
- readonly float: StructType<{
3222
- readonly fieldId: StringType;
3223
- readonly op: VariantType<{
3224
- readonly lt: FloatType;
3225
- readonly lte: FloatType;
3226
- readonly gt: FloatType;
3227
- readonly gte: FloatType;
3228
- }>;
3229
- }>;
3230
- readonly datetime: StructType<{
3231
- readonly fieldId: StringType;
3232
- readonly op: VariantType<{
3233
- readonly before: DateTimeType;
3234
- readonly after: DateTimeType;
3235
- readonly between: StructType<{
3236
- readonly from: DateTimeType;
3237
- readonly to: DateTimeType;
3238
- }>;
3239
- }>;
3240
- }>;
3241
- readonly boolean: StructType<{
3242
- readonly fieldId: StringType;
3243
- readonly op: VariantType<{
3244
- readonly is: BooleanType;
3245
- }>;
3246
- }>;
3247
- }>], NullType>;
3248
- /** Remove the filter at the given index. */
3249
- readonly removeFilter: FunctionType<[IntegerType], NullType>;
3250
- /** Clear every applied filter (and active cohorts). */
3251
- readonly clearFilters: FunctionType<[], NullType>;
3252
- /** Register a new cohort definition. Errors if id already exists. */
3253
- readonly defineCohort: FunctionType<[StructType<{
3254
- readonly id: StringType;
3255
- readonly name: StringType;
3256
- readonly filters: ArrayType<VariantType<{
3257
- readonly string: StructType<{
3258
- readonly fieldId: StringType;
3259
- readonly op: VariantType<{
3260
- readonly eq: StringType;
3261
- readonly neq: StringType;
3262
- readonly in: SetType<StringType>;
3263
- readonly notIn: SetType<StringType>;
3264
- readonly contains: StringType;
3265
- readonly matches: StringType;
3266
- readonly startsWith: StringType;
3267
- readonly endsWith: StringType;
3268
- readonly isEmpty: NullType;
3269
- readonly isNotEmpty: NullType;
3270
- }>;
3271
- }>;
3272
- readonly integer: StructType<{
3273
- readonly fieldId: StringType;
3274
- readonly op: VariantType<{
3275
- readonly eq: IntegerType;
3276
- readonly neq: IntegerType;
3277
- readonly lt: IntegerType;
3278
- readonly lte: IntegerType;
3279
- readonly gt: IntegerType;
3280
- readonly gte: IntegerType;
3281
- readonly in: SetType<IntegerType>;
3282
- }>;
3283
- }>;
3284
- readonly float: StructType<{
3285
- readonly fieldId: StringType;
3286
- readonly op: VariantType<{
3287
- readonly lt: FloatType;
3288
- readonly lte: FloatType;
3289
- readonly gt: FloatType;
3290
- readonly gte: FloatType;
3291
- }>;
3292
- }>;
3293
- readonly datetime: StructType<{
3294
- readonly fieldId: StringType;
3295
- readonly op: VariantType<{
3296
- readonly before: DateTimeType;
3297
- readonly after: DateTimeType;
3298
- readonly between: StructType<{
3299
- readonly from: DateTimeType;
3300
- readonly to: DateTimeType;
3301
- }>;
3302
- }>;
3303
- }>;
3304
- readonly boolean: StructType<{
3305
- readonly fieldId: StringType;
3306
- readonly op: VariantType<{
3307
- readonly is: BooleanType;
3308
- }>;
3309
- }>;
3310
- }>>;
3311
- readonly group: OptionType<StringType>;
3312
- }>], NullType>;
3313
- /** Replace the cohort with the given id in place (keeps active state). */
3314
- readonly updateCohort: FunctionType<[StringType, StructType<{
3315
- readonly id: StringType;
3316
- readonly name: StringType;
3317
- readonly filters: ArrayType<VariantType<{
3318
- readonly string: StructType<{
3319
- readonly fieldId: StringType;
3320
- readonly op: VariantType<{
3321
- readonly eq: StringType;
3322
- readonly neq: StringType;
3323
- readonly in: SetType<StringType>;
3324
- readonly notIn: SetType<StringType>;
3325
- readonly contains: StringType;
3326
- readonly matches: StringType;
3327
- readonly startsWith: StringType;
3328
- readonly endsWith: StringType;
3329
- readonly isEmpty: NullType;
3330
- readonly isNotEmpty: NullType;
3331
- }>;
3332
- }>;
3333
- readonly integer: StructType<{
3334
- readonly fieldId: StringType;
3335
- readonly op: VariantType<{
3336
- readonly eq: IntegerType;
3337
- readonly neq: IntegerType;
3338
- readonly lt: IntegerType;
3339
- readonly lte: IntegerType;
3340
- readonly gt: IntegerType;
3341
- readonly gte: IntegerType;
3342
- readonly in: SetType<IntegerType>;
3343
- }>;
3344
- }>;
3345
- readonly float: StructType<{
3346
- readonly fieldId: StringType;
3347
- readonly op: VariantType<{
3348
- readonly lt: FloatType;
3349
- readonly lte: FloatType;
3350
- readonly gt: FloatType;
3351
- readonly gte: FloatType;
3352
- }>;
3353
- }>;
3354
- readonly datetime: StructType<{
3355
- readonly fieldId: StringType;
3356
- readonly op: VariantType<{
3357
- readonly before: DateTimeType;
3358
- readonly after: DateTimeType;
3359
- readonly between: StructType<{
3360
- readonly from: DateTimeType;
3361
- readonly to: DateTimeType;
3362
- }>;
3363
- }>;
3364
- }>;
3365
- readonly boolean: StructType<{
3366
- readonly fieldId: StringType;
3367
- readonly op: VariantType<{
3368
- readonly is: BooleanType;
3369
- }>;
3370
- }>;
3371
- }>>;
3372
- readonly group: OptionType<StringType>;
3373
- }>], NullType>;
3374
- /** Drop a cohort from the registry (and from active cohorts). */
3375
- readonly removeCohort: FunctionType<[StringType], NullType>;
3376
- /** Flip whether the cohort with this id is being applied. */
3377
- readonly toggleCohort: FunctionType<[StringType], NullType>;
3378
- /** Set or clear the group-by dimension. `none` = no breakdown. */
3379
- readonly setBreakdown: FunctionType<[OptionType<StructType<{
3380
- readonly fieldId: StringType;
3381
- readonly limit: OptionType<IntegerType>;
3382
- }>>], NullType>;
3383
- /** Set the typeahead query. `none` clears; `some("query")` activates it. */
3384
- readonly setSearch: FunctionType<[OptionType<StringType>], NullType>;
3385
- /** Set the visible-series whitelist. `none` = all series visible. */
3386
- readonly setVisible: FunctionType<[OptionType<SetType<StringType>>], NullType>;
3387
- /** Set the master-detail selection index. `none` = no selection. */
3388
- readonly select: FunctionType<[OptionType<IntegerType>], NullType>;
3389
- /** True when at least one narrowing is active. */
3390
- readonly isActive: FunctionType<[], BooleanType>;
3391
- /** Count of currently-applied narrowings — used by `Slice.Summary`. */
3392
- readonly activeCount: FunctionType<[], IntegerType>;
3393
- /** Selectable breakdown dimensions for this slice's config → `[{ fieldId, label }]`. */
3394
- readonly dimensions: FunctionType<[], ArrayType<StructType<{
3395
- readonly fieldId: StringType;
3396
- readonly label: StringType;
3397
- }>>>;
3398
- /** Every filterable field → `[{ fieldId, label, kind }]`; feeds the predicate builder. */
3399
- readonly fields: FunctionType<[], ArrayType<StructType<{
3400
- readonly fieldId: StringType;
3401
- readonly label: StringType;
3402
- readonly kind: StringType;
3403
- readonly hints: ArrayType<StringType>;
3404
- /** Declared display format for the field's values (#190) — `none` = kind default. */
3405
- readonly format: OptionType<VariantType<{
3406
- readonly number: NullType;
3407
- readonly currency: StructType<{
3408
- readonly code: StringType;
3409
- readonly compact: BooleanType;
3410
- }>;
3411
- readonly percent: NullType;
3412
- readonly compact: NullType;
3413
- readonly date: StringType;
3414
- readonly time: StringType;
3415
- readonly datetime: StringType;
3416
- }>>;
3417
- }>>>;
3418
- /** Field ids the typeahead searches over — the chrome rail shows Search when non-empty. */
3419
- readonly searchFieldIds: FunctionType<[], ArrayType<StringType>>;
3420
- /** Field id `Slice.Range` narrows on — the chrome rail shows Range when `some`. */
3421
- readonly rangeFieldId: FunctionType<[], OptionType<StringType>>;
3422
- /** Total bound rows, before any narrowing — used by the chrome footer ("N of M"). */
3423
- readonly totalCount: FunctionType<[], IntegerType>;
3424
- /** Count of bound rows passing every active narrowing — used by Filter / Summary. */
3425
- readonly resultCount: FunctionType<[], IntegerType>;
3426
- /** Active-breakdown series over the bound rows → `[{ key, count }]` — Breakdown / Legend. */
3427
- readonly groups: FunctionType<[], ArrayType<StructType<{
3428
- readonly key: StringType;
3429
- readonly count: IntegerType;
3430
- readonly color: StringType;
3431
- }>>>;
3432
- /**
3433
- * Pivot the narrowed rows into chart-ready multi-series long format:
3434
- * grouped by the active breakdown dimension (`key`) and the given x-axis
3435
- * field, summing the value field → `[{ key, x, value }]`. Feed a
3436
- * multi-series chart by filtering per (statically-known) series key.
3437
- * @param xFieldId - field whose value positions each point on the x-axis
3438
- * @param valueFieldId - numeric field summed into each point's `value`
3439
- */
3440
- readonly series: FunctionType<[StringType, StringType], ArrayType<StructType<{
3441
- readonly key: StringType;
3442
- readonly color: StringType;
3443
- readonly points: ArrayType<StructType<{
3444
- readonly x: VariantType<{
3445
- readonly category: StringType;
3446
- readonly number: FloatType;
3447
- readonly time: DateTimeType;
3448
- }>;
3449
- readonly value: FloatType;
3450
- readonly size: OptionType<FloatType>;
3451
- readonly color: OptionType<StringType>;
3452
- }>>;
3453
- }>>>;
3454
- /** Typeahead suggestions for the current query (via the bind `toMatch`) → `[{ id, label, meta }]`. */
3455
- readonly matches: FunctionType<[], ArrayType<StructType<{
3456
- readonly id: StringType;
3457
- readonly label: StringType;
3458
- readonly meta: OptionType<StringType>;
3459
- }>>>;
3460
- /** Size of each cohort over the bound rows, keyed by cohort id — Cohort chips. */
3461
- readonly cohortCounts: FunctionType<[], DictType<StringType, IntegerType>>;
3462
- /**
3463
- * Idempotent filter toggle: appends the predicate when no
3464
- * structurally-equal clause is applied, removes the structurally-equal
3465
- * one when it is. Backs custom "filter to this" wiring; the Legend /
3466
- * Breakdown facet gestures use in-set semantics over `write` instead.
3467
- */
3468
- readonly toggleFilter: FunctionType<[VariantType<{
3469
- readonly string: StructType<{
3470
- readonly fieldId: StringType;
3471
- readonly op: VariantType<{
3472
- readonly eq: StringType;
3473
- readonly neq: StringType;
3474
- readonly in: SetType<StringType>;
3475
- readonly notIn: SetType<StringType>;
3476
- readonly contains: StringType;
3477
- readonly matches: StringType;
3478
- readonly startsWith: StringType;
3479
- readonly endsWith: StringType;
3480
- readonly isEmpty: NullType;
3481
- readonly isNotEmpty: NullType;
3482
- }>;
3483
- }>;
3484
- readonly integer: StructType<{
3485
- readonly fieldId: StringType;
3486
- readonly op: VariantType<{
3487
- readonly eq: IntegerType;
3488
- readonly neq: IntegerType;
3489
- readonly lt: IntegerType;
3490
- readonly lte: IntegerType;
3491
- readonly gt: IntegerType;
3492
- readonly gte: IntegerType;
3493
- readonly in: SetType<IntegerType>;
3494
- }>;
3495
- }>;
3496
- readonly float: StructType<{
3497
- readonly fieldId: StringType;
3498
- readonly op: VariantType<{
3499
- readonly lt: FloatType;
3500
- readonly lte: FloatType;
3501
- readonly gt: FloatType;
3502
- readonly gte: FloatType;
3503
- }>;
3504
- }>;
3505
- readonly datetime: StructType<{
3506
- readonly fieldId: StringType;
3507
- readonly op: VariantType<{
3508
- readonly before: DateTimeType;
3509
- readonly after: DateTimeType;
3510
- readonly between: StructType<{
3511
- readonly from: DateTimeType;
3512
- readonly to: DateTimeType;
3513
- }>;
3514
- }>;
3515
- }>;
3516
- readonly boolean: StructType<{
3517
- readonly fieldId: StringType;
3518
- readonly op: VariantType<{
3519
- readonly is: BooleanType;
3520
- }>;
3521
- }>;
3522
- }>], NullType>;
3523
- /**
3524
- * Self-excluding facet options (#188): the active breakdown's groups
3525
- * computed under the current narrowing MINUS `state.filters` entries
3526
- * on the breakdown field itself — so a facet keeps showing every
3527
- * option (with live counts) while some are selected. Feeds the
3528
- * filter-mode `Slice.Legend`.
3529
- */
3530
- readonly facetGroups: FunctionType<[], ArrayType<StructType<{
3531
- readonly key: StringType;
3532
- readonly count: IntegerType;
3533
- readonly color: StringType;
3534
- }>>>;
3535
- /** Set or clear the shared time-bucket resolution. `none` clears; every
3536
- * bound time-bucketed surface re-buckets together. */
3537
- readonly setResolution: FunctionType<[OptionType<VariantType<{
3538
- readonly auto: NullType;
3539
- readonly hour: NullType;
3540
- readonly day: NullType;
3541
- readonly week: NullType;
3542
- readonly month: NullType;
3543
- readonly quarter: NullType;
3544
- readonly year: NullType;
3545
- }>>], NullType>;
3546
- }>;
3547
- readonly affordances: ArrayType<VariantType<{
3548
- readonly filter: NullType;
3549
- readonly search: NullType;
3550
- readonly breakdown: NullType;
3551
- readonly range: NullType;
3552
- readonly cohort: NullType;
3553
- readonly brush: NullType;
3554
- readonly presets: NullType;
3555
- readonly legend: NullType;
3556
- readonly resolution: NullType;
3557
- readonly summary: NullType;
3558
- }>>;
3559
- }>;
3560
- /** Type alias for {@link SliceChromeType}. */
3561
- export type SliceChromeType = typeof SliceChromeType;
3562
- /**
3563
- * A standalone `Slice.Rail` — the `SliceRail` arm of `UIComponentType`: the
3564
- * slice chrome as its own strip, with the rail-only options.
3565
- *
3566
- * @property slice - The bound slice every affordance writes to
3567
- * @property affordances - The affordances the rail mounts, in order
3568
- * @property persist - Where the slice's state persists (#168); `none` = in memory only
3569
- * @property brush - The brush strip's presentation (#190); `none` = the rich default
3570
- */
3571
- export declare const SliceRailType: StructType<{
3572
- readonly slice: StructType<{
3573
- /** The store key this slice is bound to — lets renderers self-subscribe. */
3574
- readonly key: StringType;
3575
- /** Read the entire slice state; tracked for reactive re-render. */
3576
- readonly read: FunctionType<[], StructType<{
3577
- readonly range: OptionType<VariantType<{
3578
- readonly datetime: StructType<{
3579
- readonly from: DateTimeType;
3580
- readonly to: DateTimeType;
3581
- }>;
3582
- readonly datetimePreset: VariantType<{
3583
- readonly today: NullType;
3584
- readonly last7d: NullType;
3585
- readonly last30d: NullType;
3586
- readonly last90d: NullType;
3587
- readonly ytd: NullType;
3588
- }>;
3589
- readonly integer: StructType<{
3590
- readonly from: IntegerType;
3591
- readonly to: IntegerType;
3592
- }>;
3593
- readonly float: StructType<{
3594
- readonly from: FloatType;
3595
- readonly to: FloatType;
3596
- }>;
3597
- }>>;
3598
- readonly compare: OptionType<VariantType<{
3599
- readonly previousPeriod: NullType;
3600
- readonly previousYear: NullType;
3601
- }>>;
3602
- readonly filters: ArrayType<VariantType<{
3603
- readonly string: StructType<{
3604
- readonly fieldId: StringType;
3605
- readonly op: VariantType<{
3606
- readonly eq: StringType;
3607
- readonly neq: StringType;
3608
- readonly in: SetType<StringType>;
3609
- readonly notIn: SetType<StringType>;
3610
- readonly contains: StringType;
3611
- readonly matches: StringType;
3612
- readonly startsWith: StringType;
3613
- readonly endsWith: StringType;
3614
- readonly isEmpty: NullType;
3615
- readonly isNotEmpty: NullType;
3616
- }>;
3617
- }>;
3618
- readonly integer: StructType<{
3619
- readonly fieldId: StringType;
3620
- readonly op: VariantType<{
3621
- readonly eq: IntegerType;
3622
- readonly neq: IntegerType;
3623
- readonly lt: IntegerType;
3624
- readonly lte: IntegerType;
3625
- readonly gt: IntegerType;
3626
- readonly gte: IntegerType;
3627
- readonly in: SetType<IntegerType>;
3628
- }>;
3629
- }>;
3630
- readonly float: StructType<{
3631
- readonly fieldId: StringType;
3632
- readonly op: VariantType<{
3633
- readonly lt: FloatType;
3634
- readonly lte: FloatType;
3635
- readonly gt: FloatType;
3636
- readonly gte: FloatType;
3637
- }>;
3638
- }>;
3639
- readonly datetime: StructType<{
3640
- readonly fieldId: StringType;
3641
- readonly op: VariantType<{
3642
- readonly before: DateTimeType;
3643
- readonly after: DateTimeType;
3644
- readonly between: StructType<{
3645
- readonly from: DateTimeType;
3646
- readonly to: DateTimeType;
3647
- }>;
3648
- }>;
3649
- }>;
3650
- readonly boolean: StructType<{
3651
- readonly fieldId: StringType;
3652
- readonly op: VariantType<{
3653
- readonly is: BooleanType;
3654
- }>;
3655
- }>;
3656
- }>>;
3657
- readonly cohorts: ArrayType<StructType<{
3658
- readonly id: StringType;
3659
- readonly name: StringType;
3660
- readonly filters: ArrayType<VariantType<{
3661
- readonly string: StructType<{
3662
- readonly fieldId: StringType;
3663
- readonly op: VariantType<{
3664
- readonly eq: StringType;
3665
- readonly neq: StringType;
3666
- readonly in: SetType<StringType>;
3667
- readonly notIn: SetType<StringType>;
3668
- readonly contains: StringType;
3669
- readonly matches: StringType;
3670
- readonly startsWith: StringType;
3671
- readonly endsWith: StringType;
3672
- readonly isEmpty: NullType;
3673
- readonly isNotEmpty: NullType;
3674
- }>;
3675
- }>;
3676
- readonly integer: StructType<{
3677
- readonly fieldId: StringType;
3678
- readonly op: VariantType<{
3679
- readonly eq: IntegerType;
3680
- readonly neq: IntegerType;
3681
- readonly lt: IntegerType;
3682
- readonly lte: IntegerType;
3683
- readonly gt: IntegerType;
3684
- readonly gte: IntegerType;
3685
- readonly in: SetType<IntegerType>;
3686
- }>;
3687
- }>;
3688
- readonly float: StructType<{
3689
- readonly fieldId: StringType;
3690
- readonly op: VariantType<{
3691
- readonly lt: FloatType;
3692
- readonly lte: FloatType;
3693
- readonly gt: FloatType;
3694
- readonly gte: FloatType;
3695
- }>;
3696
- }>;
3697
- readonly datetime: StructType<{
3698
- readonly fieldId: StringType;
3699
- readonly op: VariantType<{
3700
- readonly before: DateTimeType;
3701
- readonly after: DateTimeType;
3702
- readonly between: StructType<{
3703
- readonly from: DateTimeType;
3704
- readonly to: DateTimeType;
3705
- }>;
3706
- }>;
3707
- }>;
3708
- readonly boolean: StructType<{
3709
- readonly fieldId: StringType;
3710
- readonly op: VariantType<{
3711
- readonly is: BooleanType;
3712
- }>;
3713
- }>;
3714
- }>>;
3715
- readonly group: OptionType<StringType>;
3716
- }>>;
3717
- readonly activeCohorts: SetType<StringType>;
3718
- readonly breakdown: OptionType<StructType<{
3719
- readonly fieldId: StringType;
3720
- readonly limit: OptionType<IntegerType>;
3721
- }>>;
3722
- readonly search: OptionType<StringType>;
3723
- readonly visible: OptionType<SetType<StringType>>;
3724
- readonly selectedIndex: OptionType<IntegerType>;
3725
- readonly resolution: OptionType<VariantType<{
3726
- readonly auto: NullType;
3727
- readonly hour: NullType;
3728
- readonly day: NullType;
3729
- readonly week: NullType;
3730
- readonly month: NullType;
3731
- readonly quarter: NullType;
3732
- readonly year: NullType;
3733
- }>>;
3734
- }>>;
3735
- /** Replace the entire slice state. Rare — prefer the structured mutators. */
3736
- readonly write: FunctionType<[StructType<{
3737
- readonly range: OptionType<VariantType<{
3738
- readonly datetime: StructType<{
2924
+ }>;
2925
+ }>>;
2926
+ readonly rangeFieldId: OptionType<StringType>;
2927
+ readonly searchFieldIds: ArrayType<StringType>;
2928
+ readonly breakdownFieldIds: ArrayType<StringType>;
2929
+ readonly fieldHints: DictType<StringType, ArrayType<StringType>>;
2930
+ }>, StructType<{
2931
+ readonly range: OptionType<VariantType<{
2932
+ readonly datetime: StructType<{
2933
+ readonly from: DateTimeType;
2934
+ readonly to: DateTimeType;
2935
+ }>;
2936
+ readonly datetimePreset: VariantType<{
2937
+ readonly today: NullType;
2938
+ readonly last7d: NullType;
2939
+ readonly last30d: NullType;
2940
+ readonly last90d: NullType;
2941
+ readonly ytd: NullType;
2942
+ }>;
2943
+ readonly integer: StructType<{
2944
+ readonly from: IntegerType;
2945
+ readonly to: IntegerType;
2946
+ }>;
2947
+ readonly float: StructType<{
2948
+ readonly from: FloatType;
2949
+ readonly to: FloatType;
2950
+ }>;
2951
+ }>>;
2952
+ readonly compare: OptionType<VariantType<{
2953
+ readonly previousPeriod: NullType;
2954
+ readonly previousYear: NullType;
2955
+ }>>;
2956
+ readonly filters: ArrayType<VariantType<{
2957
+ readonly string: StructType<{
2958
+ readonly fieldId: StringType;
2959
+ readonly op: VariantType<{
2960
+ readonly eq: StringType;
2961
+ readonly neq: StringType;
2962
+ readonly in: SetType<StringType>;
2963
+ readonly notIn: SetType<StringType>;
2964
+ readonly contains: StringType;
2965
+ readonly matches: StringType;
2966
+ readonly startsWith: StringType;
2967
+ readonly endsWith: StringType;
2968
+ readonly isEmpty: NullType;
2969
+ readonly isNotEmpty: NullType;
2970
+ }>;
2971
+ }>;
2972
+ readonly integer: StructType<{
2973
+ readonly fieldId: StringType;
2974
+ readonly op: VariantType<{
2975
+ readonly eq: IntegerType;
2976
+ readonly neq: IntegerType;
2977
+ readonly lt: IntegerType;
2978
+ readonly lte: IntegerType;
2979
+ readonly gt: IntegerType;
2980
+ readonly gte: IntegerType;
2981
+ readonly in: SetType<IntegerType>;
2982
+ }>;
2983
+ }>;
2984
+ readonly float: StructType<{
2985
+ readonly fieldId: StringType;
2986
+ readonly op: VariantType<{
2987
+ readonly lt: FloatType;
2988
+ readonly lte: FloatType;
2989
+ readonly gt: FloatType;
2990
+ readonly gte: FloatType;
2991
+ }>;
2992
+ }>;
2993
+ readonly datetime: StructType<{
2994
+ readonly fieldId: StringType;
2995
+ readonly op: VariantType<{
2996
+ readonly before: DateTimeType;
2997
+ readonly after: DateTimeType;
2998
+ readonly between: StructType<{
3739
2999
  readonly from: DateTimeType;
3740
3000
  readonly to: DateTimeType;
3741
3001
  }>;
3742
- readonly datetimePreset: VariantType<{
3743
- readonly today: NullType;
3744
- readonly last7d: NullType;
3745
- readonly last30d: NullType;
3746
- readonly last90d: NullType;
3747
- readonly ytd: NullType;
3748
- }>;
3749
- readonly integer: StructType<{
3750
- readonly from: IntegerType;
3751
- readonly to: IntegerType;
3752
- }>;
3753
- readonly float: StructType<{
3754
- readonly from: FloatType;
3755
- readonly to: FloatType;
3756
- }>;
3757
- }>>;
3758
- readonly compare: OptionType<VariantType<{
3759
- readonly previousPeriod: NullType;
3760
- readonly previousYear: NullType;
3761
- }>>;
3762
- readonly filters: ArrayType<VariantType<{
3763
- readonly string: StructType<{
3764
- readonly fieldId: StringType;
3765
- readonly op: VariantType<{
3766
- readonly eq: StringType;
3767
- readonly neq: StringType;
3768
- readonly in: SetType<StringType>;
3769
- readonly notIn: SetType<StringType>;
3770
- readonly contains: StringType;
3771
- readonly matches: StringType;
3772
- readonly startsWith: StringType;
3773
- readonly endsWith: StringType;
3774
- readonly isEmpty: NullType;
3775
- readonly isNotEmpty: NullType;
3776
- }>;
3777
- }>;
3778
- readonly integer: StructType<{
3779
- readonly fieldId: StringType;
3780
- readonly op: VariantType<{
3781
- readonly eq: IntegerType;
3782
- readonly neq: IntegerType;
3783
- readonly lt: IntegerType;
3784
- readonly lte: IntegerType;
3785
- readonly gt: IntegerType;
3786
- readonly gte: IntegerType;
3787
- readonly in: SetType<IntegerType>;
3788
- }>;
3789
- }>;
3790
- readonly float: StructType<{
3791
- readonly fieldId: StringType;
3792
- readonly op: VariantType<{
3793
- readonly lt: FloatType;
3794
- readonly lte: FloatType;
3795
- readonly gt: FloatType;
3796
- readonly gte: FloatType;
3797
- }>;
3002
+ }>;
3003
+ }>;
3004
+ readonly boolean: StructType<{
3005
+ readonly fieldId: StringType;
3006
+ readonly op: VariantType<{
3007
+ readonly is: BooleanType;
3008
+ }>;
3009
+ }>;
3010
+ }>>;
3011
+ readonly cohorts: ArrayType<StructType<{
3012
+ readonly id: StringType;
3013
+ readonly name: StringType;
3014
+ readonly filters: ArrayType<VariantType<{
3015
+ readonly string: StructType<{
3016
+ readonly fieldId: StringType;
3017
+ readonly op: VariantType<{
3018
+ readonly eq: StringType;
3019
+ readonly neq: StringType;
3020
+ readonly in: SetType<StringType>;
3021
+ readonly notIn: SetType<StringType>;
3022
+ readonly contains: StringType;
3023
+ readonly matches: StringType;
3024
+ readonly startsWith: StringType;
3025
+ readonly endsWith: StringType;
3026
+ readonly isEmpty: NullType;
3027
+ readonly isNotEmpty: NullType;
3798
3028
  }>;
3799
- readonly datetime: StructType<{
3800
- readonly fieldId: StringType;
3801
- readonly op: VariantType<{
3802
- readonly before: DateTimeType;
3803
- readonly after: DateTimeType;
3804
- readonly between: StructType<{
3805
- readonly from: DateTimeType;
3806
- readonly to: DateTimeType;
3807
- }>;
3808
- }>;
3029
+ }>;
3030
+ readonly integer: StructType<{
3031
+ readonly fieldId: StringType;
3032
+ readonly op: VariantType<{
3033
+ readonly eq: IntegerType;
3034
+ readonly neq: IntegerType;
3035
+ readonly lt: IntegerType;
3036
+ readonly lte: IntegerType;
3037
+ readonly gt: IntegerType;
3038
+ readonly gte: IntegerType;
3039
+ readonly in: SetType<IntegerType>;
3809
3040
  }>;
3810
- readonly boolean: StructType<{
3811
- readonly fieldId: StringType;
3812
- readonly op: VariantType<{
3813
- readonly is: BooleanType;
3814
- }>;
3041
+ }>;
3042
+ readonly float: StructType<{
3043
+ readonly fieldId: StringType;
3044
+ readonly op: VariantType<{
3045
+ readonly lt: FloatType;
3046
+ readonly lte: FloatType;
3047
+ readonly gt: FloatType;
3048
+ readonly gte: FloatType;
3815
3049
  }>;
3816
- }>>;
3817
- readonly cohorts: ArrayType<StructType<{
3818
- readonly id: StringType;
3819
- readonly name: StringType;
3820
- readonly filters: ArrayType<VariantType<{
3821
- readonly string: StructType<{
3822
- readonly fieldId: StringType;
3823
- readonly op: VariantType<{
3824
- readonly eq: StringType;
3825
- readonly neq: StringType;
3826
- readonly in: SetType<StringType>;
3827
- readonly notIn: SetType<StringType>;
3828
- readonly contains: StringType;
3829
- readonly matches: StringType;
3830
- readonly startsWith: StringType;
3831
- readonly endsWith: StringType;
3832
- readonly isEmpty: NullType;
3833
- readonly isNotEmpty: NullType;
3834
- }>;
3835
- }>;
3836
- readonly integer: StructType<{
3837
- readonly fieldId: StringType;
3838
- readonly op: VariantType<{
3839
- readonly eq: IntegerType;
3840
- readonly neq: IntegerType;
3841
- readonly lt: IntegerType;
3842
- readonly lte: IntegerType;
3843
- readonly gt: IntegerType;
3844
- readonly gte: IntegerType;
3845
- readonly in: SetType<IntegerType>;
3846
- }>;
3847
- }>;
3848
- readonly float: StructType<{
3849
- readonly fieldId: StringType;
3850
- readonly op: VariantType<{
3851
- readonly lt: FloatType;
3852
- readonly lte: FloatType;
3853
- readonly gt: FloatType;
3854
- readonly gte: FloatType;
3855
- }>;
3856
- }>;
3857
- readonly datetime: StructType<{
3858
- readonly fieldId: StringType;
3859
- readonly op: VariantType<{
3860
- readonly before: DateTimeType;
3861
- readonly after: DateTimeType;
3862
- readonly between: StructType<{
3863
- readonly from: DateTimeType;
3864
- readonly to: DateTimeType;
3865
- }>;
3866
- }>;
3867
- }>;
3868
- readonly boolean: StructType<{
3869
- readonly fieldId: StringType;
3870
- readonly op: VariantType<{
3871
- readonly is: BooleanType;
3872
- }>;
3050
+ }>;
3051
+ readonly datetime: StructType<{
3052
+ readonly fieldId: StringType;
3053
+ readonly op: VariantType<{
3054
+ readonly before: DateTimeType;
3055
+ readonly after: DateTimeType;
3056
+ readonly between: StructType<{
3057
+ readonly from: DateTimeType;
3058
+ readonly to: DateTimeType;
3873
3059
  }>;
3874
- }>>;
3875
- readonly group: OptionType<StringType>;
3876
- }>>;
3877
- readonly activeCohorts: SetType<StringType>;
3878
- readonly breakdown: OptionType<StructType<{
3060
+ }>;
3061
+ }>;
3062
+ readonly boolean: StructType<{
3879
3063
  readonly fieldId: StringType;
3880
- readonly limit: OptionType<IntegerType>;
3881
- }>>;
3882
- readonly search: OptionType<StringType>;
3883
- readonly visible: OptionType<SetType<StringType>>;
3884
- readonly selectedIndex: OptionType<IntegerType>;
3885
- readonly resolution: OptionType<VariantType<{
3886
- readonly auto: NullType;
3887
- readonly hour: NullType;
3888
- readonly day: NullType;
3889
- readonly week: NullType;
3890
- readonly month: NullType;
3891
- readonly quarter: NullType;
3892
- readonly year: NullType;
3893
- }>>;
3894
- }>], NullType>;
3895
- /** Set or clear the ranged narrowing. `none` clears; `some(range)` activates. */
3896
- readonly setRange: FunctionType<[OptionType<VariantType<{
3064
+ readonly op: VariantType<{
3065
+ readonly is: BooleanType;
3066
+ }>;
3067
+ }>;
3068
+ }>>;
3069
+ readonly group: OptionType<StringType>;
3070
+ }>>;
3071
+ readonly activeCohorts: SetType<StringType>;
3072
+ readonly breakdown: OptionType<StructType<{
3073
+ readonly fieldId: StringType;
3074
+ readonly limit: OptionType<IntegerType>;
3075
+ }>>;
3076
+ readonly search: OptionType<StringType>;
3077
+ readonly visible: OptionType<SetType<StringType>>;
3078
+ readonly selectedIndex: OptionType<IntegerType>;
3079
+ readonly resolution: OptionType<VariantType<{
3080
+ readonly auto: NullType;
3081
+ readonly hour: NullType;
3082
+ readonly day: NullType;
3083
+ readonly week: NullType;
3084
+ readonly month: NullType;
3085
+ readonly quarter: NullType;
3086
+ readonly year: NullType;
3087
+ }>>;
3088
+ }>, ArrayType<"T">, OptionType<FunctionType<["T"], StructType<{
3089
+ readonly id: StringType;
3090
+ readonly label: StringType;
3091
+ readonly meta: OptionType<StringType>;
3092
+ }>>>], StructType<{
3093
+ /** The store key this slice is bound to — lets renderers self-subscribe. */
3094
+ readonly key: StringType;
3095
+ /** Read the entire slice state; tracked for reactive re-render. */
3096
+ readonly read: FunctionType<[], StructType<{
3097
+ readonly range: OptionType<VariantType<{
3897
3098
  readonly datetime: StructType<{
3898
3099
  readonly from: DateTimeType;
3899
3100
  readonly to: DateTimeType;
@@ -3913,14 +3114,12 @@ export declare const SliceRailType: StructType<{
3913
3114
  readonly from: FloatType;
3914
3115
  readonly to: FloatType;
3915
3116
  }>;
3916
- }>>], NullType>;
3917
- /** Set or clear the comparison period. `none` clears. */
3918
- readonly setCompare: FunctionType<[OptionType<VariantType<{
3117
+ }>>;
3118
+ readonly compare: OptionType<VariantType<{
3919
3119
  readonly previousPeriod: NullType;
3920
3120
  readonly previousYear: NullType;
3921
- }>>], NullType>;
3922
- /** Append a new filter clause to the AND chain. */
3923
- readonly addFilter: FunctionType<[VariantType<{
3121
+ }>>;
3122
+ readonly filters: ArrayType<VariantType<{
3924
3123
  readonly string: StructType<{
3925
3124
  readonly fieldId: StringType;
3926
3125
  readonly op: VariantType<{
@@ -3974,13 +3173,8 @@ export declare const SliceRailType: StructType<{
3974
3173
  readonly is: BooleanType;
3975
3174
  }>;
3976
3175
  }>;
3977
- }>], NullType>;
3978
- /** Remove the filter at the given index. */
3979
- readonly removeFilter: FunctionType<[IntegerType], NullType>;
3980
- /** Clear every applied filter (and active cohorts). */
3981
- readonly clearFilters: FunctionType<[], NullType>;
3982
- /** Register a new cohort definition. Errors if id already exists. */
3983
- readonly defineCohort: FunctionType<[StructType<{
3176
+ }>>;
3177
+ readonly cohorts: ArrayType<StructType<{
3984
3178
  readonly id: StringType;
3985
3179
  readonly name: StringType;
3986
3180
  readonly filters: ArrayType<VariantType<{
@@ -4037,11 +3231,110 @@ export declare const SliceRailType: StructType<{
4037
3231
  readonly is: BooleanType;
4038
3232
  }>;
4039
3233
  }>;
4040
- }>>;
4041
- readonly group: OptionType<StringType>;
4042
- }>], NullType>;
4043
- /** Replace the cohort with the given id in place (keeps active state). */
4044
- readonly updateCohort: FunctionType<[StringType, StructType<{
3234
+ }>>;
3235
+ readonly group: OptionType<StringType>;
3236
+ }>>;
3237
+ readonly activeCohorts: SetType<StringType>;
3238
+ readonly breakdown: OptionType<StructType<{
3239
+ readonly fieldId: StringType;
3240
+ readonly limit: OptionType<IntegerType>;
3241
+ }>>;
3242
+ readonly search: OptionType<StringType>;
3243
+ readonly visible: OptionType<SetType<StringType>>;
3244
+ readonly selectedIndex: OptionType<IntegerType>;
3245
+ readonly resolution: OptionType<VariantType<{
3246
+ readonly auto: NullType;
3247
+ readonly hour: NullType;
3248
+ readonly day: NullType;
3249
+ readonly week: NullType;
3250
+ readonly month: NullType;
3251
+ readonly quarter: NullType;
3252
+ readonly year: NullType;
3253
+ }>>;
3254
+ }>>;
3255
+ /** Replace the entire slice state. Rare — prefer the structured mutators. */
3256
+ readonly write: FunctionType<[StructType<{
3257
+ readonly range: OptionType<VariantType<{
3258
+ readonly datetime: StructType<{
3259
+ readonly from: DateTimeType;
3260
+ readonly to: DateTimeType;
3261
+ }>;
3262
+ readonly datetimePreset: VariantType<{
3263
+ readonly today: NullType;
3264
+ readonly last7d: NullType;
3265
+ readonly last30d: NullType;
3266
+ readonly last90d: NullType;
3267
+ readonly ytd: NullType;
3268
+ }>;
3269
+ readonly integer: StructType<{
3270
+ readonly from: IntegerType;
3271
+ readonly to: IntegerType;
3272
+ }>;
3273
+ readonly float: StructType<{
3274
+ readonly from: FloatType;
3275
+ readonly to: FloatType;
3276
+ }>;
3277
+ }>>;
3278
+ readonly compare: OptionType<VariantType<{
3279
+ readonly previousPeriod: NullType;
3280
+ readonly previousYear: NullType;
3281
+ }>>;
3282
+ readonly filters: ArrayType<VariantType<{
3283
+ readonly string: StructType<{
3284
+ readonly fieldId: StringType;
3285
+ readonly op: VariantType<{
3286
+ readonly eq: StringType;
3287
+ readonly neq: StringType;
3288
+ readonly in: SetType<StringType>;
3289
+ readonly notIn: SetType<StringType>;
3290
+ readonly contains: StringType;
3291
+ readonly matches: StringType;
3292
+ readonly startsWith: StringType;
3293
+ readonly endsWith: StringType;
3294
+ readonly isEmpty: NullType;
3295
+ readonly isNotEmpty: NullType;
3296
+ }>;
3297
+ }>;
3298
+ readonly integer: StructType<{
3299
+ readonly fieldId: StringType;
3300
+ readonly op: VariantType<{
3301
+ readonly eq: IntegerType;
3302
+ readonly neq: IntegerType;
3303
+ readonly lt: IntegerType;
3304
+ readonly lte: IntegerType;
3305
+ readonly gt: IntegerType;
3306
+ readonly gte: IntegerType;
3307
+ readonly in: SetType<IntegerType>;
3308
+ }>;
3309
+ }>;
3310
+ readonly float: StructType<{
3311
+ readonly fieldId: StringType;
3312
+ readonly op: VariantType<{
3313
+ readonly lt: FloatType;
3314
+ readonly lte: FloatType;
3315
+ readonly gt: FloatType;
3316
+ readonly gte: FloatType;
3317
+ }>;
3318
+ }>;
3319
+ readonly datetime: StructType<{
3320
+ readonly fieldId: StringType;
3321
+ readonly op: VariantType<{
3322
+ readonly before: DateTimeType;
3323
+ readonly after: DateTimeType;
3324
+ readonly between: StructType<{
3325
+ readonly from: DateTimeType;
3326
+ readonly to: DateTimeType;
3327
+ }>;
3328
+ }>;
3329
+ }>;
3330
+ readonly boolean: StructType<{
3331
+ readonly fieldId: StringType;
3332
+ readonly op: VariantType<{
3333
+ readonly is: BooleanType;
3334
+ }>;
3335
+ }>;
3336
+ }>>;
3337
+ readonly cohorts: ArrayType<StructType<{
4045
3338
  readonly id: StringType;
4046
3339
  readonly name: StringType;
4047
3340
  readonly filters: ArrayType<VariantType<{
@@ -4100,102 +3393,178 @@ export declare const SliceRailType: StructType<{
4100
3393
  }>;
4101
3394
  }>>;
4102
3395
  readonly group: OptionType<StringType>;
4103
- }>], NullType>;
4104
- /** Drop a cohort from the registry (and from active cohorts). */
4105
- readonly removeCohort: FunctionType<[StringType], NullType>;
4106
- /** Flip whether the cohort with this id is being applied. */
4107
- readonly toggleCohort: FunctionType<[StringType], NullType>;
4108
- /** Set or clear the group-by dimension. `none` = no breakdown. */
4109
- readonly setBreakdown: FunctionType<[OptionType<StructType<{
3396
+ }>>;
3397
+ readonly activeCohorts: SetType<StringType>;
3398
+ readonly breakdown: OptionType<StructType<{
4110
3399
  readonly fieldId: StringType;
4111
3400
  readonly limit: OptionType<IntegerType>;
4112
- }>>], NullType>;
4113
- /** Set the typeahead query. `none` clears; `some("query")` activates it. */
4114
- readonly setSearch: FunctionType<[OptionType<StringType>], NullType>;
4115
- /** Set the visible-series whitelist. `none` = all series visible. */
4116
- readonly setVisible: FunctionType<[OptionType<SetType<StringType>>], NullType>;
4117
- /** Set the master-detail selection index. `none` = no selection. */
4118
- readonly select: FunctionType<[OptionType<IntegerType>], NullType>;
4119
- /** True when at least one narrowing is active. */
4120
- readonly isActive: FunctionType<[], BooleanType>;
4121
- /** Count of currently-applied narrowings — used by `Slice.Summary`. */
4122
- readonly activeCount: FunctionType<[], IntegerType>;
4123
- /** Selectable breakdown dimensions for this slice's config → `[{ fieldId, label }]`. */
4124
- readonly dimensions: FunctionType<[], ArrayType<StructType<{
3401
+ }>>;
3402
+ readonly search: OptionType<StringType>;
3403
+ readonly visible: OptionType<SetType<StringType>>;
3404
+ readonly selectedIndex: OptionType<IntegerType>;
3405
+ readonly resolution: OptionType<VariantType<{
3406
+ readonly auto: NullType;
3407
+ readonly hour: NullType;
3408
+ readonly day: NullType;
3409
+ readonly week: NullType;
3410
+ readonly month: NullType;
3411
+ readonly quarter: NullType;
3412
+ readonly year: NullType;
3413
+ }>>;
3414
+ }>], NullType>;
3415
+ /** Set or clear the ranged narrowing. `none` clears; `some(range)` activates. */
3416
+ readonly setRange: FunctionType<[OptionType<VariantType<{
3417
+ readonly datetime: StructType<{
3418
+ readonly from: DateTimeType;
3419
+ readonly to: DateTimeType;
3420
+ }>;
3421
+ readonly datetimePreset: VariantType<{
3422
+ readonly today: NullType;
3423
+ readonly last7d: NullType;
3424
+ readonly last30d: NullType;
3425
+ readonly last90d: NullType;
3426
+ readonly ytd: NullType;
3427
+ }>;
3428
+ readonly integer: StructType<{
3429
+ readonly from: IntegerType;
3430
+ readonly to: IntegerType;
3431
+ }>;
3432
+ readonly float: StructType<{
3433
+ readonly from: FloatType;
3434
+ readonly to: FloatType;
3435
+ }>;
3436
+ }>>], NullType>;
3437
+ /** Set or clear the comparison period. `none` clears. */
3438
+ readonly setCompare: FunctionType<[OptionType<VariantType<{
3439
+ readonly previousPeriod: NullType;
3440
+ readonly previousYear: NullType;
3441
+ }>>], NullType>;
3442
+ /** Append a new filter clause to the AND chain. */
3443
+ readonly addFilter: FunctionType<[VariantType<{
3444
+ readonly string: StructType<{
4125
3445
  readonly fieldId: StringType;
4126
- readonly label: StringType;
4127
- }>>>;
4128
- /** Every filterable field → `[{ fieldId, label, kind }]`; feeds the predicate builder. */
4129
- readonly fields: FunctionType<[], ArrayType<StructType<{
3446
+ readonly op: VariantType<{
3447
+ readonly eq: StringType;
3448
+ readonly neq: StringType;
3449
+ readonly in: SetType<StringType>;
3450
+ readonly notIn: SetType<StringType>;
3451
+ readonly contains: StringType;
3452
+ readonly matches: StringType;
3453
+ readonly startsWith: StringType;
3454
+ readonly endsWith: StringType;
3455
+ readonly isEmpty: NullType;
3456
+ readonly isNotEmpty: NullType;
3457
+ }>;
3458
+ }>;
3459
+ readonly integer: StructType<{
4130
3460
  readonly fieldId: StringType;
4131
- readonly label: StringType;
4132
- readonly kind: StringType;
4133
- readonly hints: ArrayType<StringType>;
4134
- /** Declared display format for the field's values (#190) — `none` = kind default. */
4135
- readonly format: OptionType<VariantType<{
4136
- readonly number: NullType;
4137
- readonly currency: StructType<{
4138
- readonly code: StringType;
4139
- readonly compact: BooleanType;
3461
+ readonly op: VariantType<{
3462
+ readonly eq: IntegerType;
3463
+ readonly neq: IntegerType;
3464
+ readonly lt: IntegerType;
3465
+ readonly lte: IntegerType;
3466
+ readonly gt: IntegerType;
3467
+ readonly gte: IntegerType;
3468
+ readonly in: SetType<IntegerType>;
3469
+ }>;
3470
+ }>;
3471
+ readonly float: StructType<{
3472
+ readonly fieldId: StringType;
3473
+ readonly op: VariantType<{
3474
+ readonly lt: FloatType;
3475
+ readonly lte: FloatType;
3476
+ readonly gt: FloatType;
3477
+ readonly gte: FloatType;
3478
+ }>;
3479
+ }>;
3480
+ readonly datetime: StructType<{
3481
+ readonly fieldId: StringType;
3482
+ readonly op: VariantType<{
3483
+ readonly before: DateTimeType;
3484
+ readonly after: DateTimeType;
3485
+ readonly between: StructType<{
3486
+ readonly from: DateTimeType;
3487
+ readonly to: DateTimeType;
4140
3488
  }>;
4141
- readonly percent: NullType;
4142
- readonly compact: NullType;
4143
- readonly date: StringType;
4144
- readonly time: StringType;
4145
- readonly datetime: StringType;
4146
- }>>;
4147
- }>>>;
4148
- /** Field ids the typeahead searches over — the chrome rail shows Search when non-empty. */
4149
- readonly searchFieldIds: FunctionType<[], ArrayType<StringType>>;
4150
- /** Field id `Slice.Range` narrows on — the chrome rail shows Range when `some`. */
4151
- readonly rangeFieldId: FunctionType<[], OptionType<StringType>>;
4152
- /** Total bound rows, before any narrowing — used by the chrome footer ("N of M"). */
4153
- readonly totalCount: FunctionType<[], IntegerType>;
4154
- /** Count of bound rows passing every active narrowing — used by Filter / Summary. */
4155
- readonly resultCount: FunctionType<[], IntegerType>;
4156
- /** Active-breakdown series over the bound rows → `[{ key, count }]` — Breakdown / Legend. */
4157
- readonly groups: FunctionType<[], ArrayType<StructType<{
4158
- readonly key: StringType;
4159
- readonly count: IntegerType;
4160
- readonly color: StringType;
4161
- }>>>;
4162
- /**
4163
- * Pivot the narrowed rows into chart-ready multi-series long format:
4164
- * grouped by the active breakdown dimension (`key`) and the given x-axis
4165
- * field, summing the value field → `[{ key, x, value }]`. Feed a
4166
- * multi-series chart by filtering per (statically-known) series key.
4167
- * @param xFieldId - field whose value positions each point on the x-axis
4168
- * @param valueFieldId - numeric field summed into each point's `value`
4169
- */
4170
- readonly series: FunctionType<[StringType, StringType], ArrayType<StructType<{
4171
- readonly key: StringType;
4172
- readonly color: StringType;
4173
- readonly points: ArrayType<StructType<{
4174
- readonly x: VariantType<{
4175
- readonly category: StringType;
4176
- readonly number: FloatType;
4177
- readonly time: DateTimeType;
3489
+ }>;
3490
+ }>;
3491
+ readonly boolean: StructType<{
3492
+ readonly fieldId: StringType;
3493
+ readonly op: VariantType<{
3494
+ readonly is: BooleanType;
3495
+ }>;
3496
+ }>;
3497
+ }>], NullType>;
3498
+ /** Remove the filter at the given index. */
3499
+ readonly removeFilter: FunctionType<[IntegerType], NullType>;
3500
+ /** Clear every applied filter (and active cohorts). */
3501
+ readonly clearFilters: FunctionType<[], NullType>;
3502
+ /** Register a new cohort definition. Errors if id already exists. */
3503
+ readonly defineCohort: FunctionType<[StructType<{
3504
+ readonly id: StringType;
3505
+ readonly name: StringType;
3506
+ readonly filters: ArrayType<VariantType<{
3507
+ readonly string: StructType<{
3508
+ readonly fieldId: StringType;
3509
+ readonly op: VariantType<{
3510
+ readonly eq: StringType;
3511
+ readonly neq: StringType;
3512
+ readonly in: SetType<StringType>;
3513
+ readonly notIn: SetType<StringType>;
3514
+ readonly contains: StringType;
3515
+ readonly matches: StringType;
3516
+ readonly startsWith: StringType;
3517
+ readonly endsWith: StringType;
3518
+ readonly isEmpty: NullType;
3519
+ readonly isNotEmpty: NullType;
4178
3520
  }>;
4179
- readonly value: FloatType;
4180
- readonly size: OptionType<FloatType>;
4181
- readonly color: OptionType<StringType>;
4182
- }>>;
4183
- }>>>;
4184
- /** Typeahead suggestions for the current query (via the bind `toMatch`) → `[{ id, label, meta }]`. */
4185
- readonly matches: FunctionType<[], ArrayType<StructType<{
4186
- readonly id: StringType;
4187
- readonly label: StringType;
4188
- readonly meta: OptionType<StringType>;
4189
- }>>>;
4190
- /** Size of each cohort over the bound rows, keyed by cohort id — Cohort chips. */
4191
- readonly cohortCounts: FunctionType<[], DictType<StringType, IntegerType>>;
4192
- /**
4193
- * Idempotent filter toggle: appends the predicate when no
4194
- * structurally-equal clause is applied, removes the structurally-equal
4195
- * one when it is. Backs custom "filter to this" wiring; the Legend /
4196
- * Breakdown facet gestures use in-set semantics over `write` instead.
4197
- */
4198
- readonly toggleFilter: FunctionType<[VariantType<{
3521
+ }>;
3522
+ readonly integer: StructType<{
3523
+ readonly fieldId: StringType;
3524
+ readonly op: VariantType<{
3525
+ readonly eq: IntegerType;
3526
+ readonly neq: IntegerType;
3527
+ readonly lt: IntegerType;
3528
+ readonly lte: IntegerType;
3529
+ readonly gt: IntegerType;
3530
+ readonly gte: IntegerType;
3531
+ readonly in: SetType<IntegerType>;
3532
+ }>;
3533
+ }>;
3534
+ readonly float: StructType<{
3535
+ readonly fieldId: StringType;
3536
+ readonly op: VariantType<{
3537
+ readonly lt: FloatType;
3538
+ readonly lte: FloatType;
3539
+ readonly gt: FloatType;
3540
+ readonly gte: FloatType;
3541
+ }>;
3542
+ }>;
3543
+ readonly datetime: StructType<{
3544
+ readonly fieldId: StringType;
3545
+ readonly op: VariantType<{
3546
+ readonly before: DateTimeType;
3547
+ readonly after: DateTimeType;
3548
+ readonly between: StructType<{
3549
+ readonly from: DateTimeType;
3550
+ readonly to: DateTimeType;
3551
+ }>;
3552
+ }>;
3553
+ }>;
3554
+ readonly boolean: StructType<{
3555
+ readonly fieldId: StringType;
3556
+ readonly op: VariantType<{
3557
+ readonly is: BooleanType;
3558
+ }>;
3559
+ }>;
3560
+ }>>;
3561
+ readonly group: OptionType<StringType>;
3562
+ }>], NullType>;
3563
+ /** Replace the cohort with the given id in place (keeps active state). */
3564
+ readonly updateCohort: FunctionType<[StringType, StructType<{
3565
+ readonly id: StringType;
3566
+ readonly name: StringType;
3567
+ readonly filters: ArrayType<VariantType<{
4199
3568
  readonly string: StructType<{
4200
3569
  readonly fieldId: StringType;
4201
3570
  readonly op: VariantType<{
@@ -4249,229 +3618,193 @@ export declare const SliceRailType: StructType<{
4249
3618
  readonly is: BooleanType;
4250
3619
  }>;
4251
3620
  }>;
4252
- }>], NullType>;
4253
- /**
4254
- * Self-excluding facet options (#188): the active breakdown's groups
4255
- * computed under the current narrowing MINUS `state.filters` entries
4256
- * on the breakdown field itself — so a facet keeps showing every
4257
- * option (with live counts) while some are selected. Feeds the
4258
- * filter-mode `Slice.Legend`.
4259
- */
4260
- readonly facetGroups: FunctionType<[], ArrayType<StructType<{
4261
- readonly key: StringType;
4262
- readonly count: IntegerType;
4263
- readonly color: StringType;
4264
- }>>>;
4265
- /** Set or clear the shared time-bucket resolution. `none` clears; every
4266
- * bound time-bucketed surface re-buckets together. */
4267
- readonly setResolution: FunctionType<[OptionType<VariantType<{
4268
- readonly auto: NullType;
4269
- readonly hour: NullType;
4270
- readonly day: NullType;
4271
- readonly week: NullType;
4272
- readonly month: NullType;
4273
- readonly quarter: NullType;
4274
- readonly year: NullType;
4275
- }>>], NullType>;
4276
- }>;
4277
- readonly affordances: ArrayType<VariantType<{
4278
- readonly filter: NullType;
4279
- readonly search: NullType;
4280
- readonly breakdown: NullType;
4281
- readonly range: NullType;
4282
- readonly cohort: NullType;
4283
- readonly brush: NullType;
4284
- readonly presets: NullType;
4285
- readonly legend: NullType;
4286
- readonly resolution: NullType;
4287
- readonly summary: NullType;
4288
- }>>;
4289
- readonly persist: OptionType<VariantType<{
4290
- readonly local: NullType;
4291
- readonly session: NullType;
4292
- readonly url: NullType;
4293
- }>>;
4294
- readonly brush: OptionType<StructType<{
4295
- readonly axis: OptionType<BooleanType>;
4296
- readonly count: OptionType<BooleanType>;
4297
- readonly buckets: OptionType<IntegerType>;
4298
- }>>;
4299
- }>;
4300
- /** Type alias for {@link SliceRailType}. */
4301
- export type SliceRailType = typeof SliceRailType;
4302
- /**
4303
- * Slice platform — typed narrowing state for the `Slice.*` UI family.
4304
- *
4305
- * @example
4306
- * ```ts
4307
- * import { East, ArrayType, StringType, IntegerType, NullType, variant, some, none } from "@elaraai/east";
4308
- * import { Reactive, Slice, Text, UIComponentType } from "@elaraai/east-ui";
4309
- *
4310
- * // 1. Declare the row type
4311
- * const UserEventType = StructType({
4312
- * timestamp: DateTimeType,
4313
- * country: StringType,
4314
- * sessions: IntegerType,
4315
- * });
4316
- *
4317
- * const view = East.function([], UIComponentType, (_$) => {
4318
- * return Reactive.Root(East.function([], UIComponentType, $ => {
4319
- * // 2. Bind with a config declaring available dimensions
4320
- * const slice = $.let(Slice.bind("view.events", East.value({
4321
- * fields: new Map([
4322
- * ["timestamp", variant("datetime", { label: "Time", accessor: East.function([UserEventType], DateTimeType, ($, r) => r.timestamp) })],
4323
- * ["country", variant("string", { label: "Country", accessor: East.function([UserEventType], StringType, ($, r) => r.country) })],
4324
- * ["sessions", variant("integer", { label: "Sessions", accessor: East.function([UserEventType], IntegerType, ($, r) => r.sessions) })],
4325
- * ]),
4326
- * timeFieldId: some("timestamp"),
4327
- * searchFieldIds: ["country"],
4328
- * breakdownFieldIds: ["country"],
4329
- * })));
4330
- *
4331
- * // 3. Add a TYPED filter — `integerGte` carries an IntegerType, not a parsed string
4332
- * $(slice.addFilter(East.value({
4333
- * fieldId: "sessions",
4334
- * op: variant("integerGte", 10n),
4335
- * }, Slice.Types.Predicate)));
4336
- *
4337
- * // 4. Apply: pure narrowing engine
4338
- * // const filtered = $.let(Slice.apply.where(slice.read(), config, events));
4339
- *
4340
- * const state = $.let(slice.read(), Slice.Types.State);
4341
- * return Text.Root(East.str`${state.filters.length()} active filters`);
4342
- * }));
4343
- * });
4344
- * ```
4345
- */
4346
- export declare const Slice: {
3621
+ }>>;
3622
+ readonly group: OptionType<StringType>;
3623
+ }>], NullType>;
3624
+ /** Drop a cohort from the registry (and from active cohorts). */
3625
+ readonly removeCohort: FunctionType<[StringType], NullType>;
3626
+ /** Flip whether the cohort with this id is being applied. */
3627
+ readonly toggleCohort: FunctionType<[StringType], NullType>;
3628
+ /** Set or clear the group-by dimension. `none` = no breakdown. */
3629
+ readonly setBreakdown: FunctionType<[OptionType<StructType<{
3630
+ readonly fieldId: StringType;
3631
+ readonly limit: OptionType<IntegerType>;
3632
+ }>>], NullType>;
3633
+ /** Set the typeahead query. `none` clears; `some("query")` activates it. */
3634
+ readonly setSearch: FunctionType<[OptionType<StringType>], NullType>;
3635
+ /** Set the visible-series whitelist. `none` = all series visible. */
3636
+ readonly setVisible: FunctionType<[OptionType<SetType<StringType>>], NullType>;
3637
+ /** Set the master-detail selection index. `none` = no selection. */
3638
+ readonly select: FunctionType<[OptionType<IntegerType>], NullType>;
3639
+ /** True when at least one narrowing is active. */
3640
+ readonly isActive: FunctionType<[], BooleanType>;
3641
+ /** Count of currently-applied narrowings — used by `Slice.Summary`. */
3642
+ readonly activeCount: FunctionType<[], IntegerType>;
3643
+ /** Selectable breakdown dimensions for this slice's config → `[{ fieldId, label }]`. */
3644
+ readonly dimensions: FunctionType<[], ArrayType<StructType<{
3645
+ readonly fieldId: StringType;
3646
+ readonly label: StringType;
3647
+ }>>>;
3648
+ /** Every filterable field → `[{ fieldId, label, kind }]`; feeds the predicate builder. */
3649
+ readonly fields: FunctionType<[], ArrayType<StructType<{
3650
+ readonly fieldId: StringType;
3651
+ readonly label: StringType;
3652
+ readonly kind: StringType;
3653
+ readonly hints: ArrayType<StringType>;
3654
+ /** Declared display format for the field's values (#190) — `none` = kind default. */
3655
+ readonly format: OptionType<VariantType<{
3656
+ readonly number: NullType;
3657
+ readonly currency: StructType<{
3658
+ readonly code: StringType;
3659
+ readonly compact: BooleanType;
3660
+ }>;
3661
+ readonly percent: NullType;
3662
+ readonly compact: NullType;
3663
+ readonly date: StringType;
3664
+ readonly time: StringType;
3665
+ readonly datetime: StringType;
3666
+ }>>;
3667
+ }>>>;
3668
+ /** Field ids the typeahead searches over — the chrome rail shows Search when non-empty. */
3669
+ readonly searchFieldIds: FunctionType<[], ArrayType<StringType>>;
3670
+ /** Field id `Slice.Range` narrows on — the chrome rail shows Range when `some`. */
3671
+ readonly rangeFieldId: FunctionType<[], OptionType<StringType>>;
3672
+ /** Total bound rows, before any narrowing — used by the chrome footer ("N of M"). */
3673
+ readonly totalCount: FunctionType<[], IntegerType>;
3674
+ /** Count of bound rows passing every active narrowing — used by Filter / Summary. */
3675
+ readonly resultCount: FunctionType<[], IntegerType>;
3676
+ /** Active-breakdown series over the bound rows → `[{ key, count }]` — Breakdown / Legend. */
3677
+ readonly groups: FunctionType<[], ArrayType<StructType<{
3678
+ readonly key: StringType;
3679
+ readonly count: IntegerType;
3680
+ readonly color: StringType;
3681
+ }>>>;
4347
3682
  /**
4348
- * Bind a slice to a named key. Returns a closure struct UI components
4349
- * plug into and downstream consumers read.
4350
- *
4351
- * The third argument is the initial `SliceState` — built ergonomically
4352
- * with `Slice.state({...})` (omitted fields default to "no narrowing
4353
- * active"). First bind for a key seeds the store with it; subsequent
4354
- * binds return a fresh closure struct over the existing state and ignore
4355
- * the initial value. `read()` tracks the dependency so `Reactive.Root`
4356
- * re-renders on change.
4357
- *
4358
- * @example
4359
- * ```ts
4360
- * // Empty slice — all defaults
4361
- * const slice = $.let(Slice.bind([EventType], "view.events", cfg, Slice.state({})));
4362
- *
4363
- * // Seeded — a preset range and an active cohort on first bind
4364
- * const seeded = $.let(Slice.bind([EventType], "view.seeded", cfg, Slice.state({
4365
- * range: some(variant("datetimePreset", variant("last30d", null))),
4366
- * cohorts: [{ id: "power", name: "Power users", filters: [] }],
4367
- * activeCohorts: new Set(["power"]),
4368
- * })));
4369
- * ```
3683
+ * Pivot the narrowed rows into chart-ready multi-series long format:
3684
+ * grouped by the active breakdown dimension (`key`) and the given x-axis
3685
+ * field, summing the value field → `[{ key, x, value }]`. Feed a
3686
+ * multi-series chart by filtering per (statically-known) series key.
3687
+ * @param xFieldId - field whose value positions each point on the x-axis
3688
+ * @param valueFieldId - numeric field summed into each point's `value`
4370
3689
  */
4371
- readonly bind: import("@elaraai/east").GenericPlatformDefinition<readonly ["T"], readonly [StringType, StructType<{
4372
- readonly fields: DictType<StringType, VariantType<{
4373
- readonly string: StructType<{
4374
- readonly label: StringType;
4375
- readonly accessor: FunctionType<["T"], StringType>;
4376
- readonly format: OptionType<VariantType<{
4377
- readonly number: NullType;
4378
- readonly currency: StructType<{
4379
- readonly code: StringType;
4380
- readonly compact: BooleanType;
4381
- }>;
4382
- readonly percent: NullType;
4383
- readonly compact: NullType;
4384
- readonly date: StringType;
4385
- readonly time: StringType;
4386
- readonly datetime: StringType;
4387
- }>>;
3690
+ readonly series: FunctionType<[StringType, StringType], ArrayType<StructType<{
3691
+ readonly key: StringType;
3692
+ readonly color: StringType;
3693
+ readonly points: ArrayType<StructType<{
3694
+ readonly x: VariantType<{
3695
+ readonly category: StringType;
3696
+ readonly number: FloatType;
3697
+ readonly time: DateTimeType;
4388
3698
  }>;
4389
- readonly integer: StructType<{
4390
- readonly label: StringType;
4391
- readonly accessor: FunctionType<["T"], IntegerType>;
4392
- readonly format: OptionType<VariantType<{
4393
- readonly number: NullType;
4394
- readonly currency: StructType<{
4395
- readonly code: StringType;
4396
- readonly compact: BooleanType;
4397
- }>;
4398
- readonly percent: NullType;
4399
- readonly compact: NullType;
4400
- readonly date: StringType;
4401
- readonly time: StringType;
4402
- readonly datetime: StringType;
4403
- }>>;
3699
+ readonly value: FloatType;
3700
+ readonly size: OptionType<FloatType>;
3701
+ readonly color: OptionType<StringType>;
3702
+ }>>;
3703
+ }>>>;
3704
+ /** Typeahead suggestions for the current query (via the bind `toMatch`) → `[{ id, label, meta }]`. */
3705
+ readonly matches: FunctionType<[], ArrayType<StructType<{
3706
+ readonly id: StringType;
3707
+ readonly label: StringType;
3708
+ readonly meta: OptionType<StringType>;
3709
+ }>>>;
3710
+ /** Size of each cohort over the bound rows, keyed by cohort id — Cohort chips. */
3711
+ readonly cohortCounts: FunctionType<[], DictType<StringType, IntegerType>>;
3712
+ /**
3713
+ * Idempotent filter toggle: appends the predicate when no
3714
+ * structurally-equal clause is applied, removes the structurally-equal
3715
+ * one when it is. Backs custom "filter to this" wiring; the Legend /
3716
+ * Breakdown facet gestures use in-set semantics over `write` instead.
3717
+ */
3718
+ readonly toggleFilter: FunctionType<[VariantType<{
3719
+ readonly string: StructType<{
3720
+ readonly fieldId: StringType;
3721
+ readonly op: VariantType<{
3722
+ readonly eq: StringType;
3723
+ readonly neq: StringType;
3724
+ readonly in: SetType<StringType>;
3725
+ readonly notIn: SetType<StringType>;
3726
+ readonly contains: StringType;
3727
+ readonly matches: StringType;
3728
+ readonly startsWith: StringType;
3729
+ readonly endsWith: StringType;
3730
+ readonly isEmpty: NullType;
3731
+ readonly isNotEmpty: NullType;
4404
3732
  }>;
4405
- readonly float: StructType<{
4406
- readonly label: StringType;
4407
- readonly accessor: FunctionType<["T"], FloatType>;
4408
- readonly format: OptionType<VariantType<{
4409
- readonly number: NullType;
4410
- readonly currency: StructType<{
4411
- readonly code: StringType;
4412
- readonly compact: BooleanType;
4413
- }>;
4414
- readonly percent: NullType;
4415
- readonly compact: NullType;
4416
- readonly date: StringType;
4417
- readonly time: StringType;
4418
- readonly datetime: StringType;
4419
- }>>;
3733
+ }>;
3734
+ readonly integer: StructType<{
3735
+ readonly fieldId: StringType;
3736
+ readonly op: VariantType<{
3737
+ readonly eq: IntegerType;
3738
+ readonly neq: IntegerType;
3739
+ readonly lt: IntegerType;
3740
+ readonly lte: IntegerType;
3741
+ readonly gt: IntegerType;
3742
+ readonly gte: IntegerType;
3743
+ readonly in: SetType<IntegerType>;
4420
3744
  }>;
4421
- readonly datetime: StructType<{
4422
- readonly label: StringType;
4423
- readonly accessor: FunctionType<["T"], DateTimeType>;
4424
- readonly format: OptionType<VariantType<{
4425
- readonly number: NullType;
4426
- readonly currency: StructType<{
4427
- readonly code: StringType;
4428
- readonly compact: BooleanType;
4429
- }>;
4430
- readonly percent: NullType;
4431
- readonly compact: NullType;
4432
- readonly date: StringType;
4433
- readonly time: StringType;
4434
- readonly datetime: StringType;
4435
- }>>;
3745
+ }>;
3746
+ readonly float: StructType<{
3747
+ readonly fieldId: StringType;
3748
+ readonly op: VariantType<{
3749
+ readonly lt: FloatType;
3750
+ readonly lte: FloatType;
3751
+ readonly gt: FloatType;
3752
+ readonly gte: FloatType;
4436
3753
  }>;
4437
- readonly boolean: StructType<{
4438
- readonly label: StringType;
4439
- readonly accessor: FunctionType<["T"], BooleanType>;
4440
- readonly format: OptionType<VariantType<{
4441
- readonly number: NullType;
4442
- readonly currency: StructType<{
4443
- readonly code: StringType;
4444
- readonly compact: BooleanType;
4445
- }>;
4446
- readonly percent: NullType;
4447
- readonly compact: NullType;
4448
- readonly date: StringType;
4449
- readonly time: StringType;
4450
- readonly datetime: StringType;
4451
- }>>;
3754
+ }>;
3755
+ readonly datetime: StructType<{
3756
+ readonly fieldId: StringType;
3757
+ readonly op: VariantType<{
3758
+ readonly before: DateTimeType;
3759
+ readonly after: DateTimeType;
3760
+ readonly between: StructType<{
3761
+ readonly from: DateTimeType;
3762
+ readonly to: DateTimeType;
3763
+ }>;
4452
3764
  }>;
4453
- readonly text: StructType<{
4454
- readonly label: StringType;
4455
- readonly accessor: FunctionType<["T"], StringType>;
4456
- readonly format: OptionType<VariantType<{
4457
- readonly number: NullType;
4458
- readonly currency: StructType<{
4459
- readonly code: StringType;
4460
- readonly compact: BooleanType;
4461
- }>;
4462
- readonly percent: NullType;
4463
- readonly compact: NullType;
4464
- readonly date: StringType;
4465
- readonly time: StringType;
4466
- readonly datetime: StringType;
4467
- }>>;
3765
+ }>;
3766
+ readonly boolean: StructType<{
3767
+ readonly fieldId: StringType;
3768
+ readonly op: VariantType<{
3769
+ readonly is: BooleanType;
4468
3770
  }>;
4469
- }>>;
4470
- readonly rangeFieldId: OptionType<StringType>;
4471
- readonly searchFieldIds: ArrayType<StringType>;
4472
- readonly breakdownFieldIds: ArrayType<StringType>;
4473
- readonly fieldHints: DictType<StringType, ArrayType<StringType>>;
4474
- }>, StructType<{
3771
+ }>;
3772
+ }>], NullType>;
3773
+ /**
3774
+ * Self-excluding facet options (#188): the active breakdown's groups
3775
+ * computed under the current narrowing MINUS `state.filters` entries
3776
+ * on the breakdown field itself — so a facet keeps showing every
3777
+ * option (with live counts) while some are selected. Feeds the
3778
+ * filter-mode `Slice.Legend`.
3779
+ */
3780
+ readonly facetGroups: FunctionType<[], ArrayType<StructType<{
3781
+ readonly key: StringType;
3782
+ readonly count: IntegerType;
3783
+ readonly color: StringType;
3784
+ }>>>;
3785
+ /** Set or clear the shared time-bucket resolution. `none` clears; every
3786
+ * bound time-bucketed surface re-buckets together. */
3787
+ readonly setResolution: FunctionType<[OptionType<VariantType<{
3788
+ readonly auto: NullType;
3789
+ readonly hour: NullType;
3790
+ readonly day: NullType;
3791
+ readonly week: NullType;
3792
+ readonly month: NullType;
3793
+ readonly quarter: NullType;
3794
+ readonly year: NullType;
3795
+ }>>], NullType>;
3796
+ }>>;
3797
+ /**
3798
+ * The narrowed rows for a bound slice — every row bound at `Slice.bind`
3799
+ * that passes the active narrowing. The explicit, typed data feed for
3800
+ * consumers: `rows={Slice.rows(slice)}`. A component's `slice`
3801
+ * chrome option never narrows data itself.
3802
+ */
3803
+ export declare const slice_rows: import("@elaraai/east").GenericPlatformDefinition<readonly ["T"], readonly [StructType<{
3804
+ /** The store key this slice is bound to — lets renderers self-subscribe. */
3805
+ readonly key: StringType;
3806
+ /** Read the entire slice state; tracked for reactive re-render. */
3807
+ readonly read: FunctionType<[], StructType<{
4475
3808
  readonly range: OptionType<VariantType<{
4476
3809
  readonly datetime: StructType<{
4477
3810
  readonly from: DateTimeType;
@@ -4510,319 +3843,51 @@ export declare const Slice: {
4510
3843
  readonly startsWith: StringType;
4511
3844
  readonly endsWith: StringType;
4512
3845
  readonly isEmpty: NullType;
4513
- readonly isNotEmpty: NullType;
4514
- }>;
4515
- }>;
4516
- readonly integer: StructType<{
4517
- readonly fieldId: StringType;
4518
- readonly op: VariantType<{
4519
- readonly eq: IntegerType;
4520
- readonly neq: IntegerType;
4521
- readonly lt: IntegerType;
4522
- readonly lte: IntegerType;
4523
- readonly gt: IntegerType;
4524
- readonly gte: IntegerType;
4525
- readonly in: SetType<IntegerType>;
4526
- }>;
4527
- }>;
4528
- readonly float: StructType<{
4529
- readonly fieldId: StringType;
4530
- readonly op: VariantType<{
4531
- readonly lt: FloatType;
4532
- readonly lte: FloatType;
4533
- readonly gt: FloatType;
4534
- readonly gte: FloatType;
4535
- }>;
4536
- }>;
4537
- readonly datetime: StructType<{
4538
- readonly fieldId: StringType;
4539
- readonly op: VariantType<{
4540
- readonly before: DateTimeType;
4541
- readonly after: DateTimeType;
4542
- readonly between: StructType<{
4543
- readonly from: DateTimeType;
4544
- readonly to: DateTimeType;
4545
- }>;
4546
- }>;
4547
- }>;
4548
- readonly boolean: StructType<{
4549
- readonly fieldId: StringType;
4550
- readonly op: VariantType<{
4551
- readonly is: BooleanType;
4552
- }>;
4553
- }>;
4554
- }>>;
4555
- readonly cohorts: ArrayType<StructType<{
4556
- readonly id: StringType;
4557
- readonly name: StringType;
4558
- readonly filters: ArrayType<VariantType<{
4559
- readonly string: StructType<{
4560
- readonly fieldId: StringType;
4561
- readonly op: VariantType<{
4562
- readonly eq: StringType;
4563
- readonly neq: StringType;
4564
- readonly in: SetType<StringType>;
4565
- readonly notIn: SetType<StringType>;
4566
- readonly contains: StringType;
4567
- readonly matches: StringType;
4568
- readonly startsWith: StringType;
4569
- readonly endsWith: StringType;
4570
- readonly isEmpty: NullType;
4571
- readonly isNotEmpty: NullType;
4572
- }>;
4573
- }>;
4574
- readonly integer: StructType<{
4575
- readonly fieldId: StringType;
4576
- readonly op: VariantType<{
4577
- readonly eq: IntegerType;
4578
- readonly neq: IntegerType;
4579
- readonly lt: IntegerType;
4580
- readonly lte: IntegerType;
4581
- readonly gt: IntegerType;
4582
- readonly gte: IntegerType;
4583
- readonly in: SetType<IntegerType>;
4584
- }>;
4585
- }>;
4586
- readonly float: StructType<{
4587
- readonly fieldId: StringType;
4588
- readonly op: VariantType<{
4589
- readonly lt: FloatType;
4590
- readonly lte: FloatType;
4591
- readonly gt: FloatType;
4592
- readonly gte: FloatType;
4593
- }>;
4594
- }>;
4595
- readonly datetime: StructType<{
4596
- readonly fieldId: StringType;
4597
- readonly op: VariantType<{
4598
- readonly before: DateTimeType;
4599
- readonly after: DateTimeType;
4600
- readonly between: StructType<{
4601
- readonly from: DateTimeType;
4602
- readonly to: DateTimeType;
4603
- }>;
4604
- }>;
4605
- }>;
4606
- readonly boolean: StructType<{
4607
- readonly fieldId: StringType;
4608
- readonly op: VariantType<{
4609
- readonly is: BooleanType;
4610
- }>;
4611
- }>;
4612
- }>>;
4613
- readonly group: OptionType<StringType>;
4614
- }>>;
4615
- readonly activeCohorts: SetType<StringType>;
4616
- readonly breakdown: OptionType<StructType<{
4617
- readonly fieldId: StringType;
4618
- readonly limit: OptionType<IntegerType>;
4619
- }>>;
4620
- readonly search: OptionType<StringType>;
4621
- readonly visible: OptionType<SetType<StringType>>;
4622
- readonly selectedIndex: OptionType<IntegerType>;
4623
- readonly resolution: OptionType<VariantType<{
4624
- readonly auto: NullType;
4625
- readonly hour: NullType;
4626
- readonly day: NullType;
4627
- readonly week: NullType;
4628
- readonly month: NullType;
4629
- readonly quarter: NullType;
4630
- readonly year: NullType;
4631
- }>>;
4632
- }>, ArrayType<"T">, OptionType<FunctionType<["T"], StructType<{
4633
- readonly id: StringType;
4634
- readonly label: StringType;
4635
- readonly meta: OptionType<StringType>;
4636
- }>>>], StructType<{
4637
- /** The store key this slice is bound to — lets renderers self-subscribe. */
4638
- readonly key: StringType;
4639
- /** Read the entire slice state; tracked for reactive re-render. */
4640
- readonly read: FunctionType<[], StructType<{
4641
- readonly range: OptionType<VariantType<{
4642
- readonly datetime: StructType<{
4643
- readonly from: DateTimeType;
4644
- readonly to: DateTimeType;
4645
- }>;
4646
- readonly datetimePreset: VariantType<{
4647
- readonly today: NullType;
4648
- readonly last7d: NullType;
4649
- readonly last30d: NullType;
4650
- readonly last90d: NullType;
4651
- readonly ytd: NullType;
4652
- }>;
4653
- readonly integer: StructType<{
4654
- readonly from: IntegerType;
4655
- readonly to: IntegerType;
4656
- }>;
4657
- readonly float: StructType<{
4658
- readonly from: FloatType;
4659
- readonly to: FloatType;
4660
- }>;
4661
- }>>;
4662
- readonly compare: OptionType<VariantType<{
4663
- readonly previousPeriod: NullType;
4664
- readonly previousYear: NullType;
4665
- }>>;
4666
- readonly filters: ArrayType<VariantType<{
4667
- readonly string: StructType<{
4668
- readonly fieldId: StringType;
4669
- readonly op: VariantType<{
4670
- readonly eq: StringType;
4671
- readonly neq: StringType;
4672
- readonly in: SetType<StringType>;
4673
- readonly notIn: SetType<StringType>;
4674
- readonly contains: StringType;
4675
- readonly matches: StringType;
4676
- readonly startsWith: StringType;
4677
- readonly endsWith: StringType;
4678
- readonly isEmpty: NullType;
4679
- readonly isNotEmpty: NullType;
4680
- }>;
4681
- }>;
4682
- readonly integer: StructType<{
4683
- readonly fieldId: StringType;
4684
- readonly op: VariantType<{
4685
- readonly eq: IntegerType;
4686
- readonly neq: IntegerType;
4687
- readonly lt: IntegerType;
4688
- readonly lte: IntegerType;
4689
- readonly gt: IntegerType;
4690
- readonly gte: IntegerType;
4691
- readonly in: SetType<IntegerType>;
4692
- }>;
3846
+ readonly isNotEmpty: NullType;
4693
3847
  }>;
4694
- readonly float: StructType<{
4695
- readonly fieldId: StringType;
4696
- readonly op: VariantType<{
4697
- readonly lt: FloatType;
4698
- readonly lte: FloatType;
4699
- readonly gt: FloatType;
4700
- readonly gte: FloatType;
4701
- }>;
3848
+ }>;
3849
+ readonly integer: StructType<{
3850
+ readonly fieldId: StringType;
3851
+ readonly op: VariantType<{
3852
+ readonly eq: IntegerType;
3853
+ readonly neq: IntegerType;
3854
+ readonly lt: IntegerType;
3855
+ readonly lte: IntegerType;
3856
+ readonly gt: IntegerType;
3857
+ readonly gte: IntegerType;
3858
+ readonly in: SetType<IntegerType>;
4702
3859
  }>;
4703
- readonly datetime: StructType<{
4704
- readonly fieldId: StringType;
4705
- readonly op: VariantType<{
4706
- readonly before: DateTimeType;
4707
- readonly after: DateTimeType;
4708
- readonly between: StructType<{
4709
- readonly from: DateTimeType;
4710
- readonly to: DateTimeType;
4711
- }>;
4712
- }>;
3860
+ }>;
3861
+ readonly float: StructType<{
3862
+ readonly fieldId: StringType;
3863
+ readonly op: VariantType<{
3864
+ readonly lt: FloatType;
3865
+ readonly lte: FloatType;
3866
+ readonly gt: FloatType;
3867
+ readonly gte: FloatType;
4713
3868
  }>;
4714
- readonly boolean: StructType<{
4715
- readonly fieldId: StringType;
4716
- readonly op: VariantType<{
4717
- readonly is: BooleanType;
3869
+ }>;
3870
+ readonly datetime: StructType<{
3871
+ readonly fieldId: StringType;
3872
+ readonly op: VariantType<{
3873
+ readonly before: DateTimeType;
3874
+ readonly after: DateTimeType;
3875
+ readonly between: StructType<{
3876
+ readonly from: DateTimeType;
3877
+ readonly to: DateTimeType;
4718
3878
  }>;
4719
3879
  }>;
4720
- }>>;
4721
- readonly cohorts: ArrayType<StructType<{
4722
- readonly id: StringType;
4723
- readonly name: StringType;
4724
- readonly filters: ArrayType<VariantType<{
4725
- readonly string: StructType<{
4726
- readonly fieldId: StringType;
4727
- readonly op: VariantType<{
4728
- readonly eq: StringType;
4729
- readonly neq: StringType;
4730
- readonly in: SetType<StringType>;
4731
- readonly notIn: SetType<StringType>;
4732
- readonly contains: StringType;
4733
- readonly matches: StringType;
4734
- readonly startsWith: StringType;
4735
- readonly endsWith: StringType;
4736
- readonly isEmpty: NullType;
4737
- readonly isNotEmpty: NullType;
4738
- }>;
4739
- }>;
4740
- readonly integer: StructType<{
4741
- readonly fieldId: StringType;
4742
- readonly op: VariantType<{
4743
- readonly eq: IntegerType;
4744
- readonly neq: IntegerType;
4745
- readonly lt: IntegerType;
4746
- readonly lte: IntegerType;
4747
- readonly gt: IntegerType;
4748
- readonly gte: IntegerType;
4749
- readonly in: SetType<IntegerType>;
4750
- }>;
4751
- }>;
4752
- readonly float: StructType<{
4753
- readonly fieldId: StringType;
4754
- readonly op: VariantType<{
4755
- readonly lt: FloatType;
4756
- readonly lte: FloatType;
4757
- readonly gt: FloatType;
4758
- readonly gte: FloatType;
4759
- }>;
4760
- }>;
4761
- readonly datetime: StructType<{
4762
- readonly fieldId: StringType;
4763
- readonly op: VariantType<{
4764
- readonly before: DateTimeType;
4765
- readonly after: DateTimeType;
4766
- readonly between: StructType<{
4767
- readonly from: DateTimeType;
4768
- readonly to: DateTimeType;
4769
- }>;
4770
- }>;
4771
- }>;
4772
- readonly boolean: StructType<{
4773
- readonly fieldId: StringType;
4774
- readonly op: VariantType<{
4775
- readonly is: BooleanType;
4776
- }>;
4777
- }>;
4778
- }>>;
4779
- readonly group: OptionType<StringType>;
4780
- }>>;
4781
- readonly activeCohorts: SetType<StringType>;
4782
- readonly breakdown: OptionType<StructType<{
3880
+ }>;
3881
+ readonly boolean: StructType<{
4783
3882
  readonly fieldId: StringType;
4784
- readonly limit: OptionType<IntegerType>;
4785
- }>>;
4786
- readonly search: OptionType<StringType>;
4787
- readonly visible: OptionType<SetType<StringType>>;
4788
- readonly selectedIndex: OptionType<IntegerType>;
4789
- readonly resolution: OptionType<VariantType<{
4790
- readonly auto: NullType;
4791
- readonly hour: NullType;
4792
- readonly day: NullType;
4793
- readonly week: NullType;
4794
- readonly month: NullType;
4795
- readonly quarter: NullType;
4796
- readonly year: NullType;
4797
- }>>;
4798
- }>>;
4799
- /** Replace the entire slice state. Rare — prefer the structured mutators. */
4800
- readonly write: FunctionType<[StructType<{
4801
- readonly range: OptionType<VariantType<{
4802
- readonly datetime: StructType<{
4803
- readonly from: DateTimeType;
4804
- readonly to: DateTimeType;
4805
- }>;
4806
- readonly datetimePreset: VariantType<{
4807
- readonly today: NullType;
4808
- readonly last7d: NullType;
4809
- readonly last30d: NullType;
4810
- readonly last90d: NullType;
4811
- readonly ytd: NullType;
4812
- }>;
4813
- readonly integer: StructType<{
4814
- readonly from: IntegerType;
4815
- readonly to: IntegerType;
4816
- }>;
4817
- readonly float: StructType<{
4818
- readonly from: FloatType;
4819
- readonly to: FloatType;
3883
+ readonly op: VariantType<{
3884
+ readonly is: BooleanType;
4820
3885
  }>;
4821
- }>>;
4822
- readonly compare: OptionType<VariantType<{
4823
- readonly previousPeriod: NullType;
4824
- readonly previousYear: NullType;
4825
- }>>;
3886
+ }>;
3887
+ }>>;
3888
+ readonly cohorts: ArrayType<StructType<{
3889
+ readonly id: StringType;
3890
+ readonly name: StringType;
4826
3891
  readonly filters: ArrayType<VariantType<{
4827
3892
  readonly string: StructType<{
4828
3893
  readonly fieldId: StringType;
@@ -4862,102 +3927,45 @@ export declare const Slice: {
4862
3927
  }>;
4863
3928
  readonly datetime: StructType<{
4864
3929
  readonly fieldId: StringType;
4865
- readonly op: VariantType<{
4866
- readonly before: DateTimeType;
4867
- readonly after: DateTimeType;
4868
- readonly between: StructType<{
4869
- readonly from: DateTimeType;
4870
- readonly to: DateTimeType;
4871
- }>;
4872
- }>;
4873
- }>;
4874
- readonly boolean: StructType<{
4875
- readonly fieldId: StringType;
4876
- readonly op: VariantType<{
4877
- readonly is: BooleanType;
4878
- }>;
4879
- }>;
4880
- }>>;
4881
- readonly cohorts: ArrayType<StructType<{
4882
- readonly id: StringType;
4883
- readonly name: StringType;
4884
- readonly filters: ArrayType<VariantType<{
4885
- readonly string: StructType<{
4886
- readonly fieldId: StringType;
4887
- readonly op: VariantType<{
4888
- readonly eq: StringType;
4889
- readonly neq: StringType;
4890
- readonly in: SetType<StringType>;
4891
- readonly notIn: SetType<StringType>;
4892
- readonly contains: StringType;
4893
- readonly matches: StringType;
4894
- readonly startsWith: StringType;
4895
- readonly endsWith: StringType;
4896
- readonly isEmpty: NullType;
4897
- readonly isNotEmpty: NullType;
4898
- }>;
4899
- }>;
4900
- readonly integer: StructType<{
4901
- readonly fieldId: StringType;
4902
- readonly op: VariantType<{
4903
- readonly eq: IntegerType;
4904
- readonly neq: IntegerType;
4905
- readonly lt: IntegerType;
4906
- readonly lte: IntegerType;
4907
- readonly gt: IntegerType;
4908
- readonly gte: IntegerType;
4909
- readonly in: SetType<IntegerType>;
4910
- }>;
4911
- }>;
4912
- readonly float: StructType<{
4913
- readonly fieldId: StringType;
4914
- readonly op: VariantType<{
4915
- readonly lt: FloatType;
4916
- readonly lte: FloatType;
4917
- readonly gt: FloatType;
4918
- readonly gte: FloatType;
4919
- }>;
4920
- }>;
4921
- readonly datetime: StructType<{
4922
- readonly fieldId: StringType;
4923
- readonly op: VariantType<{
4924
- readonly before: DateTimeType;
4925
- readonly after: DateTimeType;
4926
- readonly between: StructType<{
4927
- readonly from: DateTimeType;
4928
- readonly to: DateTimeType;
4929
- }>;
4930
- }>;
4931
- }>;
4932
- readonly boolean: StructType<{
4933
- readonly fieldId: StringType;
4934
- readonly op: VariantType<{
4935
- readonly is: BooleanType;
4936
- }>;
4937
- }>;
4938
- }>>;
4939
- readonly group: OptionType<StringType>;
4940
- }>>;
4941
- readonly activeCohorts: SetType<StringType>;
4942
- readonly breakdown: OptionType<StructType<{
4943
- readonly fieldId: StringType;
4944
- readonly limit: OptionType<IntegerType>;
4945
- }>>;
4946
- readonly search: OptionType<StringType>;
4947
- readonly visible: OptionType<SetType<StringType>>;
4948
- readonly selectedIndex: OptionType<IntegerType>;
4949
- readonly resolution: OptionType<VariantType<{
4950
- readonly auto: NullType;
4951
- readonly hour: NullType;
4952
- readonly day: NullType;
4953
- readonly week: NullType;
4954
- readonly month: NullType;
4955
- readonly quarter: NullType;
4956
- readonly year: NullType;
3930
+ readonly op: VariantType<{
3931
+ readonly before: DateTimeType;
3932
+ readonly after: DateTimeType;
3933
+ readonly between: StructType<{
3934
+ readonly from: DateTimeType;
3935
+ readonly to: DateTimeType;
3936
+ }>;
3937
+ }>;
3938
+ }>;
3939
+ readonly boolean: StructType<{
3940
+ readonly fieldId: StringType;
3941
+ readonly op: VariantType<{
3942
+ readonly is: BooleanType;
3943
+ }>;
3944
+ }>;
4957
3945
  }>>;
4958
- }>], NullType>;
4959
- /** Set or clear the ranged narrowing. `none` clears; `some(range)` activates. */
4960
- readonly setRange: FunctionType<[OptionType<VariantType<{
3946
+ readonly group: OptionType<StringType>;
3947
+ }>>;
3948
+ readonly activeCohorts: SetType<StringType>;
3949
+ readonly breakdown: OptionType<StructType<{
3950
+ readonly fieldId: StringType;
3951
+ readonly limit: OptionType<IntegerType>;
3952
+ }>>;
3953
+ readonly search: OptionType<StringType>;
3954
+ readonly visible: OptionType<SetType<StringType>>;
3955
+ readonly selectedIndex: OptionType<IntegerType>;
3956
+ readonly resolution: OptionType<VariantType<{
3957
+ readonly auto: NullType;
3958
+ readonly hour: NullType;
3959
+ readonly day: NullType;
3960
+ readonly week: NullType;
3961
+ readonly month: NullType;
3962
+ readonly quarter: NullType;
3963
+ readonly year: NullType;
3964
+ }>>;
3965
+ }>>;
3966
+ /** Replace the entire slice state. Rare — prefer the structured mutators. */
3967
+ readonly write: FunctionType<[StructType<{
3968
+ readonly range: OptionType<VariantType<{
4961
3969
  readonly datetime: StructType<{
4962
3970
  readonly from: DateTimeType;
4963
3971
  readonly to: DateTimeType;
@@ -4977,14 +3985,12 @@ export declare const Slice: {
4977
3985
  readonly from: FloatType;
4978
3986
  readonly to: FloatType;
4979
3987
  }>;
4980
- }>>], NullType>;
4981
- /** Set or clear the comparison period. `none` clears. */
4982
- readonly setCompare: FunctionType<[OptionType<VariantType<{
3988
+ }>>;
3989
+ readonly compare: OptionType<VariantType<{
4983
3990
  readonly previousPeriod: NullType;
4984
3991
  readonly previousYear: NullType;
4985
- }>>], NullType>;
4986
- /** Append a new filter clause to the AND chain. */
4987
- readonly addFilter: FunctionType<[VariantType<{
3992
+ }>>;
3993
+ readonly filters: ArrayType<VariantType<{
4988
3994
  readonly string: StructType<{
4989
3995
  readonly fieldId: StringType;
4990
3996
  readonly op: VariantType<{
@@ -5038,13 +4044,8 @@ export declare const Slice: {
5038
4044
  readonly is: BooleanType;
5039
4045
  }>;
5040
4046
  }>;
5041
- }>], NullType>;
5042
- /** Remove the filter at the given index. */
5043
- readonly removeFilter: FunctionType<[IntegerType], NullType>;
5044
- /** Clear every applied filter (and active cohorts). */
5045
- readonly clearFilters: FunctionType<[], NullType>;
5046
- /** Register a new cohort definition. Errors if id already exists. */
5047
- readonly defineCohort: FunctionType<[StructType<{
4047
+ }>>;
4048
+ readonly cohorts: ArrayType<StructType<{
5048
4049
  readonly id: StringType;
5049
4050
  readonly name: StringType;
5050
4051
  readonly filters: ArrayType<VariantType<{
@@ -5103,163 +4104,178 @@ export declare const Slice: {
5103
4104
  }>;
5104
4105
  }>>;
5105
4106
  readonly group: OptionType<StringType>;
5106
- }>], NullType>;
5107
- /** Replace the cohort with the given id in place (keeps active state). */
5108
- readonly updateCohort: FunctionType<[StringType, StructType<{
5109
- readonly id: StringType;
5110
- readonly name: StringType;
5111
- readonly filters: ArrayType<VariantType<{
5112
- readonly string: StructType<{
5113
- readonly fieldId: StringType;
5114
- readonly op: VariantType<{
5115
- readonly eq: StringType;
5116
- readonly neq: StringType;
5117
- readonly in: SetType<StringType>;
5118
- readonly notIn: SetType<StringType>;
5119
- readonly contains: StringType;
5120
- readonly matches: StringType;
5121
- readonly startsWith: StringType;
5122
- readonly endsWith: StringType;
5123
- readonly isEmpty: NullType;
5124
- readonly isNotEmpty: NullType;
5125
- }>;
5126
- }>;
5127
- readonly integer: StructType<{
5128
- readonly fieldId: StringType;
5129
- readonly op: VariantType<{
5130
- readonly eq: IntegerType;
5131
- readonly neq: IntegerType;
5132
- readonly lt: IntegerType;
5133
- readonly lte: IntegerType;
5134
- readonly gt: IntegerType;
5135
- readonly gte: IntegerType;
5136
- readonly in: SetType<IntegerType>;
5137
- }>;
4107
+ }>>;
4108
+ readonly activeCohorts: SetType<StringType>;
4109
+ readonly breakdown: OptionType<StructType<{
4110
+ readonly fieldId: StringType;
4111
+ readonly limit: OptionType<IntegerType>;
4112
+ }>>;
4113
+ readonly search: OptionType<StringType>;
4114
+ readonly visible: OptionType<SetType<StringType>>;
4115
+ readonly selectedIndex: OptionType<IntegerType>;
4116
+ readonly resolution: OptionType<VariantType<{
4117
+ readonly auto: NullType;
4118
+ readonly hour: NullType;
4119
+ readonly day: NullType;
4120
+ readonly week: NullType;
4121
+ readonly month: NullType;
4122
+ readonly quarter: NullType;
4123
+ readonly year: NullType;
4124
+ }>>;
4125
+ }>], NullType>;
4126
+ /** Set or clear the ranged narrowing. `none` clears; `some(range)` activates. */
4127
+ readonly setRange: FunctionType<[OptionType<VariantType<{
4128
+ readonly datetime: StructType<{
4129
+ readonly from: DateTimeType;
4130
+ readonly to: DateTimeType;
4131
+ }>;
4132
+ readonly datetimePreset: VariantType<{
4133
+ readonly today: NullType;
4134
+ readonly last7d: NullType;
4135
+ readonly last30d: NullType;
4136
+ readonly last90d: NullType;
4137
+ readonly ytd: NullType;
4138
+ }>;
4139
+ readonly integer: StructType<{
4140
+ readonly from: IntegerType;
4141
+ readonly to: IntegerType;
4142
+ }>;
4143
+ readonly float: StructType<{
4144
+ readonly from: FloatType;
4145
+ readonly to: FloatType;
4146
+ }>;
4147
+ }>>], NullType>;
4148
+ /** Set or clear the comparison period. `none` clears. */
4149
+ readonly setCompare: FunctionType<[OptionType<VariantType<{
4150
+ readonly previousPeriod: NullType;
4151
+ readonly previousYear: NullType;
4152
+ }>>], NullType>;
4153
+ /** Append a new filter clause to the AND chain. */
4154
+ readonly addFilter: FunctionType<[VariantType<{
4155
+ readonly string: StructType<{
4156
+ readonly fieldId: StringType;
4157
+ readonly op: VariantType<{
4158
+ readonly eq: StringType;
4159
+ readonly neq: StringType;
4160
+ readonly in: SetType<StringType>;
4161
+ readonly notIn: SetType<StringType>;
4162
+ readonly contains: StringType;
4163
+ readonly matches: StringType;
4164
+ readonly startsWith: StringType;
4165
+ readonly endsWith: StringType;
4166
+ readonly isEmpty: NullType;
4167
+ readonly isNotEmpty: NullType;
4168
+ }>;
4169
+ }>;
4170
+ readonly integer: StructType<{
4171
+ readonly fieldId: StringType;
4172
+ readonly op: VariantType<{
4173
+ readonly eq: IntegerType;
4174
+ readonly neq: IntegerType;
4175
+ readonly lt: IntegerType;
4176
+ readonly lte: IntegerType;
4177
+ readonly gt: IntegerType;
4178
+ readonly gte: IntegerType;
4179
+ readonly in: SetType<IntegerType>;
4180
+ }>;
4181
+ }>;
4182
+ readonly float: StructType<{
4183
+ readonly fieldId: StringType;
4184
+ readonly op: VariantType<{
4185
+ readonly lt: FloatType;
4186
+ readonly lte: FloatType;
4187
+ readonly gt: FloatType;
4188
+ readonly gte: FloatType;
4189
+ }>;
4190
+ }>;
4191
+ readonly datetime: StructType<{
4192
+ readonly fieldId: StringType;
4193
+ readonly op: VariantType<{
4194
+ readonly before: DateTimeType;
4195
+ readonly after: DateTimeType;
4196
+ readonly between: StructType<{
4197
+ readonly from: DateTimeType;
4198
+ readonly to: DateTimeType;
5138
4199
  }>;
5139
- readonly float: StructType<{
5140
- readonly fieldId: StringType;
5141
- readonly op: VariantType<{
5142
- readonly lt: FloatType;
5143
- readonly lte: FloatType;
5144
- readonly gt: FloatType;
5145
- readonly gte: FloatType;
5146
- }>;
4200
+ }>;
4201
+ }>;
4202
+ readonly boolean: StructType<{
4203
+ readonly fieldId: StringType;
4204
+ readonly op: VariantType<{
4205
+ readonly is: BooleanType;
4206
+ }>;
4207
+ }>;
4208
+ }>], NullType>;
4209
+ /** Remove the filter at the given index. */
4210
+ readonly removeFilter: FunctionType<[IntegerType], NullType>;
4211
+ /** Clear every applied filter (and active cohorts). */
4212
+ readonly clearFilters: FunctionType<[], NullType>;
4213
+ /** Register a new cohort definition. Errors if id already exists. */
4214
+ readonly defineCohort: FunctionType<[StructType<{
4215
+ readonly id: StringType;
4216
+ readonly name: StringType;
4217
+ readonly filters: ArrayType<VariantType<{
4218
+ readonly string: StructType<{
4219
+ readonly fieldId: StringType;
4220
+ readonly op: VariantType<{
4221
+ readonly eq: StringType;
4222
+ readonly neq: StringType;
4223
+ readonly in: SetType<StringType>;
4224
+ readonly notIn: SetType<StringType>;
4225
+ readonly contains: StringType;
4226
+ readonly matches: StringType;
4227
+ readonly startsWith: StringType;
4228
+ readonly endsWith: StringType;
4229
+ readonly isEmpty: NullType;
4230
+ readonly isNotEmpty: NullType;
5147
4231
  }>;
5148
- readonly datetime: StructType<{
5149
- readonly fieldId: StringType;
5150
- readonly op: VariantType<{
5151
- readonly before: DateTimeType;
5152
- readonly after: DateTimeType;
5153
- readonly between: StructType<{
5154
- readonly from: DateTimeType;
5155
- readonly to: DateTimeType;
5156
- }>;
5157
- }>;
4232
+ }>;
4233
+ readonly integer: StructType<{
4234
+ readonly fieldId: StringType;
4235
+ readonly op: VariantType<{
4236
+ readonly eq: IntegerType;
4237
+ readonly neq: IntegerType;
4238
+ readonly lt: IntegerType;
4239
+ readonly lte: IntegerType;
4240
+ readonly gt: IntegerType;
4241
+ readonly gte: IntegerType;
4242
+ readonly in: SetType<IntegerType>;
5158
4243
  }>;
5159
- readonly boolean: StructType<{
5160
- readonly fieldId: StringType;
5161
- readonly op: VariantType<{
5162
- readonly is: BooleanType;
5163
- }>;
4244
+ }>;
4245
+ readonly float: StructType<{
4246
+ readonly fieldId: StringType;
4247
+ readonly op: VariantType<{
4248
+ readonly lt: FloatType;
4249
+ readonly lte: FloatType;
4250
+ readonly gt: FloatType;
4251
+ readonly gte: FloatType;
5164
4252
  }>;
5165
- }>>;
5166
- readonly group: OptionType<StringType>;
5167
- }>], NullType>;
5168
- /** Drop a cohort from the registry (and from active cohorts). */
5169
- readonly removeCohort: FunctionType<[StringType], NullType>;
5170
- /** Flip whether the cohort with this id is being applied. */
5171
- readonly toggleCohort: FunctionType<[StringType], NullType>;
5172
- /** Set or clear the group-by dimension. `none` = no breakdown. */
5173
- readonly setBreakdown: FunctionType<[OptionType<StructType<{
5174
- readonly fieldId: StringType;
5175
- readonly limit: OptionType<IntegerType>;
5176
- }>>], NullType>;
5177
- /** Set the typeahead query. `none` clears; `some("query")` activates it. */
5178
- readonly setSearch: FunctionType<[OptionType<StringType>], NullType>;
5179
- /** Set the visible-series whitelist. `none` = all series visible. */
5180
- readonly setVisible: FunctionType<[OptionType<SetType<StringType>>], NullType>;
5181
- /** Set the master-detail selection index. `none` = no selection. */
5182
- readonly select: FunctionType<[OptionType<IntegerType>], NullType>;
5183
- /** True when at least one narrowing is active. */
5184
- readonly isActive: FunctionType<[], BooleanType>;
5185
- /** Count of currently-applied narrowings — used by `Slice.Summary`. */
5186
- readonly activeCount: FunctionType<[], IntegerType>;
5187
- /** Selectable breakdown dimensions for this slice's config → `[{ fieldId, label }]`. */
5188
- readonly dimensions: FunctionType<[], ArrayType<StructType<{
5189
- readonly fieldId: StringType;
5190
- readonly label: StringType;
5191
- }>>>;
5192
- /** Every filterable field → `[{ fieldId, label, kind }]`; feeds the predicate builder. */
5193
- readonly fields: FunctionType<[], ArrayType<StructType<{
5194
- readonly fieldId: StringType;
5195
- readonly label: StringType;
5196
- readonly kind: StringType;
5197
- readonly hints: ArrayType<StringType>;
5198
- /** Declared display format for the field's values (#190) — `none` = kind default. */
5199
- readonly format: OptionType<VariantType<{
5200
- readonly number: NullType;
5201
- readonly currency: StructType<{
5202
- readonly code: StringType;
5203
- readonly compact: BooleanType;
4253
+ }>;
4254
+ readonly datetime: StructType<{
4255
+ readonly fieldId: StringType;
4256
+ readonly op: VariantType<{
4257
+ readonly before: DateTimeType;
4258
+ readonly after: DateTimeType;
4259
+ readonly between: StructType<{
4260
+ readonly from: DateTimeType;
4261
+ readonly to: DateTimeType;
4262
+ }>;
5204
4263
  }>;
5205
- readonly percent: NullType;
5206
- readonly compact: NullType;
5207
- readonly date: StringType;
5208
- readonly time: StringType;
5209
- readonly datetime: StringType;
5210
- }>>;
5211
- }>>>;
5212
- /** Field ids the typeahead searches over — the chrome rail shows Search when non-empty. */
5213
- readonly searchFieldIds: FunctionType<[], ArrayType<StringType>>;
5214
- /** Field id `Slice.Range` narrows on — the chrome rail shows Range when `some`. */
5215
- readonly rangeFieldId: FunctionType<[], OptionType<StringType>>;
5216
- /** Total bound rows, before any narrowing — used by the chrome footer ("N of M"). */
5217
- readonly totalCount: FunctionType<[], IntegerType>;
5218
- /** Count of bound rows passing every active narrowing — used by Filter / Summary. */
5219
- readonly resultCount: FunctionType<[], IntegerType>;
5220
- /** Active-breakdown series over the bound rows → `[{ key, count }]` — Breakdown / Legend. */
5221
- readonly groups: FunctionType<[], ArrayType<StructType<{
5222
- readonly key: StringType;
5223
- readonly count: IntegerType;
5224
- readonly color: StringType;
5225
- }>>>;
5226
- /**
5227
- * Pivot the narrowed rows into chart-ready multi-series long format:
5228
- * grouped by the active breakdown dimension (`key`) and the given x-axis
5229
- * field, summing the value field → `[{ key, x, value }]`. Feed a
5230
- * multi-series chart by filtering per (statically-known) series key.
5231
- * @param xFieldId - field whose value positions each point on the x-axis
5232
- * @param valueFieldId - numeric field summed into each point's `value`
5233
- */
5234
- readonly series: FunctionType<[StringType, StringType], ArrayType<StructType<{
5235
- readonly key: StringType;
5236
- readonly color: StringType;
5237
- readonly points: ArrayType<StructType<{
5238
- readonly x: VariantType<{
5239
- readonly category: StringType;
5240
- readonly number: FloatType;
5241
- readonly time: DateTimeType;
4264
+ }>;
4265
+ readonly boolean: StructType<{
4266
+ readonly fieldId: StringType;
4267
+ readonly op: VariantType<{
4268
+ readonly is: BooleanType;
5242
4269
  }>;
5243
- readonly value: FloatType;
5244
- readonly size: OptionType<FloatType>;
5245
- readonly color: OptionType<StringType>;
5246
- }>>;
5247
- }>>>;
5248
- /** Typeahead suggestions for the current query (via the bind `toMatch`) → `[{ id, label, meta }]`. */
5249
- readonly matches: FunctionType<[], ArrayType<StructType<{
5250
- readonly id: StringType;
5251
- readonly label: StringType;
5252
- readonly meta: OptionType<StringType>;
5253
- }>>>;
5254
- /** Size of each cohort over the bound rows, keyed by cohort id — Cohort chips. */
5255
- readonly cohortCounts: FunctionType<[], DictType<StringType, IntegerType>>;
5256
- /**
5257
- * Idempotent filter toggle: appends the predicate when no
5258
- * structurally-equal clause is applied, removes the structurally-equal
5259
- * one when it is. Backs custom "filter to this" wiring; the Legend /
5260
- * Breakdown facet gestures use in-set semantics over `write` instead.
5261
- */
5262
- readonly toggleFilter: FunctionType<[VariantType<{
4270
+ }>;
4271
+ }>>;
4272
+ readonly group: OptionType<StringType>;
4273
+ }>], NullType>;
4274
+ /** Replace the cohort with the given id in place (keeps active state). */
4275
+ readonly updateCohort: FunctionType<[StringType, StructType<{
4276
+ readonly id: StringType;
4277
+ readonly name: StringType;
4278
+ readonly filters: ArrayType<VariantType<{
5263
4279
  readonly string: StructType<{
5264
4280
  readonly fieldId: StringType;
5265
4281
  readonly op: VariantType<{
@@ -5275,71 +4291,257 @@ export declare const Slice: {
5275
4291
  readonly isNotEmpty: NullType;
5276
4292
  }>;
5277
4293
  }>;
5278
- readonly integer: StructType<{
5279
- readonly fieldId: StringType;
5280
- readonly op: VariantType<{
5281
- readonly eq: IntegerType;
5282
- readonly neq: IntegerType;
5283
- readonly lt: IntegerType;
5284
- readonly lte: IntegerType;
5285
- readonly gt: IntegerType;
5286
- readonly gte: IntegerType;
5287
- readonly in: SetType<IntegerType>;
5288
- }>;
4294
+ readonly integer: StructType<{
4295
+ readonly fieldId: StringType;
4296
+ readonly op: VariantType<{
4297
+ readonly eq: IntegerType;
4298
+ readonly neq: IntegerType;
4299
+ readonly lt: IntegerType;
4300
+ readonly lte: IntegerType;
4301
+ readonly gt: IntegerType;
4302
+ readonly gte: IntegerType;
4303
+ readonly in: SetType<IntegerType>;
4304
+ }>;
4305
+ }>;
4306
+ readonly float: StructType<{
4307
+ readonly fieldId: StringType;
4308
+ readonly op: VariantType<{
4309
+ readonly lt: FloatType;
4310
+ readonly lte: FloatType;
4311
+ readonly gt: FloatType;
4312
+ readonly gte: FloatType;
4313
+ }>;
4314
+ }>;
4315
+ readonly datetime: StructType<{
4316
+ readonly fieldId: StringType;
4317
+ readonly op: VariantType<{
4318
+ readonly before: DateTimeType;
4319
+ readonly after: DateTimeType;
4320
+ readonly between: StructType<{
4321
+ readonly from: DateTimeType;
4322
+ readonly to: DateTimeType;
4323
+ }>;
4324
+ }>;
4325
+ }>;
4326
+ readonly boolean: StructType<{
4327
+ readonly fieldId: StringType;
4328
+ readonly op: VariantType<{
4329
+ readonly is: BooleanType;
4330
+ }>;
4331
+ }>;
4332
+ }>>;
4333
+ readonly group: OptionType<StringType>;
4334
+ }>], NullType>;
4335
+ /** Drop a cohort from the registry (and from active cohorts). */
4336
+ readonly removeCohort: FunctionType<[StringType], NullType>;
4337
+ /** Flip whether the cohort with this id is being applied. */
4338
+ readonly toggleCohort: FunctionType<[StringType], NullType>;
4339
+ /** Set or clear the group-by dimension. `none` = no breakdown. */
4340
+ readonly setBreakdown: FunctionType<[OptionType<StructType<{
4341
+ readonly fieldId: StringType;
4342
+ readonly limit: OptionType<IntegerType>;
4343
+ }>>], NullType>;
4344
+ /** Set the typeahead query. `none` clears; `some("query")` activates it. */
4345
+ readonly setSearch: FunctionType<[OptionType<StringType>], NullType>;
4346
+ /** Set the visible-series whitelist. `none` = all series visible. */
4347
+ readonly setVisible: FunctionType<[OptionType<SetType<StringType>>], NullType>;
4348
+ /** Set the master-detail selection index. `none` = no selection. */
4349
+ readonly select: FunctionType<[OptionType<IntegerType>], NullType>;
4350
+ /** True when at least one narrowing is active. */
4351
+ readonly isActive: FunctionType<[], BooleanType>;
4352
+ /** Count of currently-applied narrowings — used by `Slice.Summary`. */
4353
+ readonly activeCount: FunctionType<[], IntegerType>;
4354
+ /** Selectable breakdown dimensions for this slice's config → `[{ fieldId, label }]`. */
4355
+ readonly dimensions: FunctionType<[], ArrayType<StructType<{
4356
+ readonly fieldId: StringType;
4357
+ readonly label: StringType;
4358
+ }>>>;
4359
+ /** Every filterable field → `[{ fieldId, label, kind }]`; feeds the predicate builder. */
4360
+ readonly fields: FunctionType<[], ArrayType<StructType<{
4361
+ readonly fieldId: StringType;
4362
+ readonly label: StringType;
4363
+ readonly kind: StringType;
4364
+ readonly hints: ArrayType<StringType>;
4365
+ /** Declared display format for the field's values (#190) — `none` = kind default. */
4366
+ readonly format: OptionType<VariantType<{
4367
+ readonly number: NullType;
4368
+ readonly currency: StructType<{
4369
+ readonly code: StringType;
4370
+ readonly compact: BooleanType;
4371
+ }>;
4372
+ readonly percent: NullType;
4373
+ readonly compact: NullType;
4374
+ readonly date: StringType;
4375
+ readonly time: StringType;
4376
+ readonly datetime: StringType;
4377
+ }>>;
4378
+ }>>>;
4379
+ /** Field ids the typeahead searches over — the chrome rail shows Search when non-empty. */
4380
+ readonly searchFieldIds: FunctionType<[], ArrayType<StringType>>;
4381
+ /** Field id `Slice.Range` narrows on — the chrome rail shows Range when `some`. */
4382
+ readonly rangeFieldId: FunctionType<[], OptionType<StringType>>;
4383
+ /** Total bound rows, before any narrowing — used by the chrome footer ("N of M"). */
4384
+ readonly totalCount: FunctionType<[], IntegerType>;
4385
+ /** Count of bound rows passing every active narrowing — used by Filter / Summary. */
4386
+ readonly resultCount: FunctionType<[], IntegerType>;
4387
+ /** Active-breakdown series over the bound rows → `[{ key, count }]` — Breakdown / Legend. */
4388
+ readonly groups: FunctionType<[], ArrayType<StructType<{
4389
+ readonly key: StringType;
4390
+ readonly count: IntegerType;
4391
+ readonly color: StringType;
4392
+ }>>>;
4393
+ /**
4394
+ * Pivot the narrowed rows into chart-ready multi-series long format:
4395
+ * grouped by the active breakdown dimension (`key`) and the given x-axis
4396
+ * field, summing the value field → `[{ key, x, value }]`. Feed a
4397
+ * multi-series chart by filtering per (statically-known) series key.
4398
+ * @param xFieldId - field whose value positions each point on the x-axis
4399
+ * @param valueFieldId - numeric field summed into each point's `value`
4400
+ */
4401
+ readonly series: FunctionType<[StringType, StringType], ArrayType<StructType<{
4402
+ readonly key: StringType;
4403
+ readonly color: StringType;
4404
+ readonly points: ArrayType<StructType<{
4405
+ readonly x: VariantType<{
4406
+ readonly category: StringType;
4407
+ readonly number: FloatType;
4408
+ readonly time: DateTimeType;
4409
+ }>;
4410
+ readonly value: FloatType;
4411
+ readonly size: OptionType<FloatType>;
4412
+ readonly color: OptionType<StringType>;
4413
+ }>>;
4414
+ }>>>;
4415
+ /** Typeahead suggestions for the current query (via the bind `toMatch`) → `[{ id, label, meta }]`. */
4416
+ readonly matches: FunctionType<[], ArrayType<StructType<{
4417
+ readonly id: StringType;
4418
+ readonly label: StringType;
4419
+ readonly meta: OptionType<StringType>;
4420
+ }>>>;
4421
+ /** Size of each cohort over the bound rows, keyed by cohort id — Cohort chips. */
4422
+ readonly cohortCounts: FunctionType<[], DictType<StringType, IntegerType>>;
4423
+ /**
4424
+ * Idempotent filter toggle: appends the predicate when no
4425
+ * structurally-equal clause is applied, removes the structurally-equal
4426
+ * one when it is. Backs custom "filter to this" wiring; the Legend /
4427
+ * Breakdown facet gestures use in-set semantics over `write` instead.
4428
+ */
4429
+ readonly toggleFilter: FunctionType<[VariantType<{
4430
+ readonly string: StructType<{
4431
+ readonly fieldId: StringType;
4432
+ readonly op: VariantType<{
4433
+ readonly eq: StringType;
4434
+ readonly neq: StringType;
4435
+ readonly in: SetType<StringType>;
4436
+ readonly notIn: SetType<StringType>;
4437
+ readonly contains: StringType;
4438
+ readonly matches: StringType;
4439
+ readonly startsWith: StringType;
4440
+ readonly endsWith: StringType;
4441
+ readonly isEmpty: NullType;
4442
+ readonly isNotEmpty: NullType;
4443
+ }>;
4444
+ }>;
4445
+ readonly integer: StructType<{
4446
+ readonly fieldId: StringType;
4447
+ readonly op: VariantType<{
4448
+ readonly eq: IntegerType;
4449
+ readonly neq: IntegerType;
4450
+ readonly lt: IntegerType;
4451
+ readonly lte: IntegerType;
4452
+ readonly gt: IntegerType;
4453
+ readonly gte: IntegerType;
4454
+ readonly in: SetType<IntegerType>;
5289
4455
  }>;
5290
- readonly float: StructType<{
5291
- readonly fieldId: StringType;
5292
- readonly op: VariantType<{
5293
- readonly lt: FloatType;
5294
- readonly lte: FloatType;
5295
- readonly gt: FloatType;
5296
- readonly gte: FloatType;
5297
- }>;
4456
+ }>;
4457
+ readonly float: StructType<{
4458
+ readonly fieldId: StringType;
4459
+ readonly op: VariantType<{
4460
+ readonly lt: FloatType;
4461
+ readonly lte: FloatType;
4462
+ readonly gt: FloatType;
4463
+ readonly gte: FloatType;
5298
4464
  }>;
5299
- readonly datetime: StructType<{
5300
- readonly fieldId: StringType;
5301
- readonly op: VariantType<{
5302
- readonly before: DateTimeType;
5303
- readonly after: DateTimeType;
5304
- readonly between: StructType<{
5305
- readonly from: DateTimeType;
5306
- readonly to: DateTimeType;
5307
- }>;
4465
+ }>;
4466
+ readonly datetime: StructType<{
4467
+ readonly fieldId: StringType;
4468
+ readonly op: VariantType<{
4469
+ readonly before: DateTimeType;
4470
+ readonly after: DateTimeType;
4471
+ readonly between: StructType<{
4472
+ readonly from: DateTimeType;
4473
+ readonly to: DateTimeType;
5308
4474
  }>;
5309
4475
  }>;
5310
- readonly boolean: StructType<{
5311
- readonly fieldId: StringType;
5312
- readonly op: VariantType<{
5313
- readonly is: BooleanType;
5314
- }>;
4476
+ }>;
4477
+ readonly boolean: StructType<{
4478
+ readonly fieldId: StringType;
4479
+ readonly op: VariantType<{
4480
+ readonly is: BooleanType;
5315
4481
  }>;
5316
- }>], NullType>;
5317
- /**
5318
- * Self-excluding facet options (#188): the active breakdown's groups
5319
- * computed under the current narrowing MINUS `state.filters` entries
5320
- * on the breakdown field itself — so a facet keeps showing every
5321
- * option (with live counts) while some are selected. Feeds the
5322
- * filter-mode `Slice.Legend`.
5323
- */
5324
- readonly facetGroups: FunctionType<[], ArrayType<StructType<{
5325
- readonly key: StringType;
5326
- readonly count: IntegerType;
5327
- readonly color: StringType;
5328
- }>>>;
5329
- /** Set or clear the shared time-bucket resolution. `none` clears; every
5330
- * bound time-bucketed surface re-buckets together. */
5331
- readonly setResolution: FunctionType<[OptionType<VariantType<{
5332
- readonly auto: NullType;
5333
- readonly hour: NullType;
5334
- readonly day: NullType;
5335
- readonly week: NullType;
5336
- readonly month: NullType;
5337
- readonly quarter: NullType;
5338
- readonly year: NullType;
5339
- }>>], NullType>;
5340
- }>>;
5341
- /** Narrowed rows for a bound slice — the typed data feed (`Slice.rows([RowType], slice)`). */
5342
- readonly rows: import("@elaraai/east").GenericPlatformDefinition<readonly ["T"], readonly [StructType<{
4482
+ }>;
4483
+ }>], NullType>;
4484
+ /**
4485
+ * Self-excluding facet options (#188): the active breakdown's groups
4486
+ * computed under the current narrowing MINUS `state.filters` entries
4487
+ * on the breakdown field itself — so a facet keeps showing every
4488
+ * option (with live counts) while some are selected. Feeds the
4489
+ * filter-mode `Slice.Legend`.
4490
+ */
4491
+ readonly facetGroups: FunctionType<[], ArrayType<StructType<{
4492
+ readonly key: StringType;
4493
+ readonly count: IntegerType;
4494
+ readonly color: StringType;
4495
+ }>>>;
4496
+ /** Set or clear the shared time-bucket resolution. `none` clears; every
4497
+ * bound time-bucketed surface re-buckets together. */
4498
+ readonly setResolution: FunctionType<[OptionType<VariantType<{
4499
+ readonly auto: NullType;
4500
+ readonly hour: NullType;
4501
+ readonly day: NullType;
4502
+ readonly week: NullType;
4503
+ readonly month: NullType;
4504
+ readonly quarter: NullType;
4505
+ readonly year: NullType;
4506
+ }>>], NullType>;
4507
+ }>], ArrayType<"T">>;
4508
+ /** Read current local rows lazily, including changes made after binding. */
4509
+ declare function rows<T extends EastType>(slice: ExprType<StructType<{
4510
+ data: FunctionType<[], T>;
4511
+ }>>): ExprType<T>;
4512
+ /** Read the narrowed data retained by a typed record Slice handle. */
4513
+ declare function rows<T extends EastType>(slice: ExprType<StructType<{
4514
+ data: T;
4515
+ }>>): ExprType<T>;
4516
+ /**
4517
+ * Materialise the concrete partition-row East type for a row type — one bound
4518
+ * row `value` paired with whether it passes the active narrowing (`matched`).
4519
+ * The module-scope {@link SlicePartitionRowType} keeps the `"T"` placeholder for
4520
+ * the `slice_partition` declaration; consumers rarely need this — `Slice.partition`
4521
+ * infers the type at the call site.
4522
+ *
4523
+ * @param rowType - The East row type the slice narrows
4524
+ * @returns The `{ value, matched }` East StructType for that row type
4525
+ */
4526
+ export declare function slicePartitionRowFor<T extends EastType>(rowType: T): StructType<{
4527
+ readonly value: T;
4528
+ readonly matched: BooleanType;
4529
+ }>;
4530
+ /** The `{ value: T, matched }` partition row — carries the `"T"` placeholder for
4531
+ * the `slice_partition` generic-platform declaration. */
4532
+ export declare const SlicePartitionRowType: StructType<{
4533
+ readonly value: "T";
4534
+ readonly matched: BooleanType;
4535
+ }>;
4536
+ /** Type alias for {@link SlicePartitionRowType}. */
4537
+ export type SlicePartitionRowType = typeof SlicePartitionRowType;
4538
+ /**
4539
+ * The slice-chrome payload every slice-accepting component carries — the
4540
+ * bound handle plus the affordances its rail mounts. Chrome only: the
4541
+ * component's data is always fed explicitly (`Slice.rows(slice)`).
4542
+ */
4543
+ export declare const SliceChromeType: StructType<{
4544
+ readonly slice: StructType<{
5343
4545
  /** The store key this slice is bound to — lets renderers self-subscribe. */
5344
4546
  readonly key: StringType;
5345
4547
  /** Read the entire slice state; tracked for reactive re-render. */
@@ -6043,24 +5245,33 @@ export declare const Slice: {
6043
5245
  readonly quarter: NullType;
6044
5246
  readonly year: NullType;
6045
5247
  }>>], NullType>;
6046
- }>], ArrayType<"T">>;
6047
- /**
6048
- * The FULL bound rows, each tagged `{ value, matched }` — the "keep the
6049
- * excluded" feed. Drive a de-emphasis effect from `matched` instead of
6050
- * hiding filtered-out rows.
6051
- *
6052
- * @example
6053
- * ```ts
6054
- * // Feed the full set to a Schematic and ghost the filtered-out items.
6055
- * const tagged = $.let(Slice.partition([EquipType], slice));
6056
- * // Schematic.Root(tagged, {
6057
- * // item: t => ({ key: t.value.id, x: t.value.x, y: t.value.y, label: t.value.id,
6058
- * // excluded: t.matched.not() }),
6059
- * // slice, sliceEffect: { excluded: { opacity: 0.25 }, emphasis: "pulse" },
6060
- * // })
6061
- * ```
6062
- */
6063
- readonly partition: import("@elaraai/east").GenericPlatformDefinition<readonly ["T"], readonly [StructType<{
5248
+ }>;
5249
+ readonly affordances: ArrayType<VariantType<{
5250
+ readonly filter: NullType;
5251
+ readonly search: NullType;
5252
+ readonly breakdown: NullType;
5253
+ readonly range: NullType;
5254
+ readonly cohort: NullType;
5255
+ readonly brush: NullType;
5256
+ readonly presets: NullType;
5257
+ readonly legend: NullType;
5258
+ readonly resolution: NullType;
5259
+ readonly summary: NullType;
5260
+ }>>;
5261
+ }>;
5262
+ /** Type alias for {@link SliceChromeType}. */
5263
+ export type SliceChromeType = typeof SliceChromeType;
5264
+ /**
5265
+ * A standalone `Slice.Rail` — the `SliceRail` arm of `UIComponentType`: the
5266
+ * slice chrome as its own strip, with the rail-only options.
5267
+ *
5268
+ * @property slice - The bound slice every affordance writes to
5269
+ * @property affordances - The affordances the rail mounts, in order
5270
+ * @property persist - Where the slice's state persists (#168); `none` = in memory only
5271
+ * @property brush - The brush strip's presentation (#190); `none` = the rich default
5272
+ */
5273
+ export declare const SliceRailType: StructType<{
5274
+ readonly slice: StructType<{
6064
5275
  /** The store key this slice is bound to — lets renderers self-subscribe. */
6065
5276
  readonly key: StringType;
6066
5277
  /** Read the entire slice state; tracked for reactive re-render. */
@@ -6764,10 +5975,84 @@ export declare const Slice: {
6764
5975
  readonly quarter: NullType;
6765
5976
  readonly year: NullType;
6766
5977
  }>>], NullType>;
6767
- }>], ArrayType<StructType<{
6768
- readonly value: "T";
5978
+ }>;
5979
+ readonly affordances: ArrayType<VariantType<{
5980
+ readonly filter: NullType;
5981
+ readonly search: NullType;
5982
+ readonly breakdown: NullType;
5983
+ readonly range: NullType;
5984
+ readonly cohort: NullType;
5985
+ readonly brush: NullType;
5986
+ readonly presets: NullType;
5987
+ readonly legend: NullType;
5988
+ readonly resolution: NullType;
5989
+ readonly summary: NullType;
5990
+ }>>;
5991
+ readonly persist: OptionType<VariantType<{
5992
+ readonly local: NullType;
5993
+ readonly session: NullType;
5994
+ readonly url: NullType;
5995
+ }>>;
5996
+ readonly brush: OptionType<StructType<{
5997
+ readonly axis: OptionType<BooleanType>;
5998
+ readonly count: OptionType<BooleanType>;
5999
+ readonly buckets: OptionType<IntegerType>;
6000
+ }>>;
6001
+ }>;
6002
+ /** Type alias for {@link SliceRailType}. */
6003
+ export type SliceRailType = typeof SliceRailType;
6004
+ /**
6005
+ * Slice platform — typed narrowing for local rows and indexed records.
6006
+ * `bind` infers its row type from the data; `bindRecord` infers available
6007
+ * fields from the binding's indexes. Both handles carry their narrowed
6008
+ * data, read with `Slice.rows(slice)`.
6009
+ */
6010
+ export declare const Slice: {
6011
+ /**
6012
+ * Bind local rows under a named key. Fields are inferred from the row.
6013
+ * `initial` and `presets` seed the store once; rebinding preserves the
6014
+ * current controls and supplies the latest rows.
6015
+ *
6016
+ * ```ts
6017
+ * const slice = $.let(Slice.bind("view.events", events));
6018
+ * const seeded = $.let(Slice.bind("view.seeded", events, {
6019
+ * range: "timestamp",
6020
+ * initial: { timestamp: { preset: "last30d" } },
6021
+ * presets: [{ id: "power", name: "Power users", where: { sessions: { gte: 20n } }, active: true }],
6022
+ * }));
6023
+ * ```
6024
+ */
6025
+ readonly bind: typeof bindLocal & {
6026
+ implement: (factory: (typeParams_0: import("@elaraai/east").EastTypeValue) => (...args: unknown[]) => unknown) => import("@elaraai/east/internal").PlatformFunction;
6027
+ };
6028
+ /** Narrowed rows for a bound slice — the typed data feed (`Slice.rows(slice)`). */
6029
+ readonly rows: typeof rows & {
6030
+ implement: (factory: (typeParams_0: import("@elaraai/east").EastTypeValue) => (...args: unknown[]) => unknown) => import("@elaraai/east/internal").PlatformFunction;
6031
+ };
6032
+ /** Narrow a record through the fields its bound indexes order on. */
6033
+ readonly bindRecord: typeof bindRecord;
6034
+ /**
6035
+ * The FULL bound rows, each tagged `{ value, matched }` — the "keep the
6036
+ * excluded" feed. Drive a de-emphasis effect from `matched` instead of
6037
+ * hiding filtered-out rows.
6038
+ *
6039
+ * @example
6040
+ * ```ts
6041
+ * // Feed the full set to a Schematic and ghost the filtered-out items.
6042
+ * const tagged = $.let(Slice.partition([EquipType], slice));
6043
+ * // Schematic.Root(tagged, {
6044
+ * // item: t => ({ key: t.value.id, x: t.value.x, y: t.value.y, label: t.value.id,
6045
+ * // excluded: t.matched.not() }),
6046
+ * // slice, sliceEffect: { excluded: { opacity: 0.25 }, emphasis: "pulse" },
6047
+ * // })
6048
+ * ```
6049
+ */
6050
+ readonly partition: (<T extends EastType>(types: [T], handle: SubtypeExprOrValue<SliceBindType>) => import("@elaraai/east").ArrayExpr<StructType<{
6051
+ readonly value: T;
6769
6052
  readonly matched: BooleanType;
6770
- }>>>;
6053
+ }>>) & {
6054
+ implement: (factory: (typeParams_0: import("@elaraai/east").EastTypeValue) => (...args: unknown[]) => unknown) => import("@elaraai/east/internal").PlatformFunction;
6055
+ };
6771
6056
  /** Materialise the `{ value, matched }` partition-row type for a row type. */
6772
6057
  readonly partitionRowType: typeof slicePartitionRowFor;
6773
6058
  /**