derive-dashboards 0.7.1 → 0.9.0

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 (591) hide show
  1. package/CHANGELOG.md +513 -0
  2. package/README.md +8 -2
  3. package/dist/adapter/statement.mjs +9 -7
  4. package/dist/authorize.mjs +27 -6
  5. package/dist/body.mjs +28 -25
  6. package/dist/cache.d.mts +2 -2
  7. package/dist/charts/data/buckets.d.mts +25 -7
  8. package/dist/charts/data/buckets.mjs +92 -15
  9. package/dist/charts/data/clean.mjs +254 -12
  10. package/dist/charts/data/format.d.mts +7 -2
  11. package/dist/charts/data/format.mjs +68 -70
  12. package/dist/charts/data/input-error.d.mts +2 -0
  13. package/dist/charts/data/input-error.mjs +2 -0
  14. package/dist/charts/data/rows.d.mts +3 -1
  15. package/dist/charts/data/rows.mjs +4 -2
  16. package/dist/charts/data/types.d.mts +50 -7
  17. package/dist/charts/data/words.d.mts +13 -0
  18. package/dist/charts/data/words.mjs +8 -1
  19. package/dist/charts/describe.mjs +6 -6
  20. package/dist/charts/index.d.mts +14 -14
  21. package/dist/charts/index.mjs +4 -1
  22. package/dist/charts/kinds/area-marks.mjs +86 -44
  23. package/dist/charts/kinds/area.d.mts +3 -3
  24. package/dist/charts/kinds/area.mjs +32 -11
  25. package/dist/charts/kinds/bars-data.d.mts +3 -3
  26. package/dist/charts/kinds/bars-data.mjs +12 -6
  27. package/dist/charts/kinds/bars-layout.mjs +60 -6
  28. package/dist/charts/kinds/bars-marks.mjs +6 -6
  29. package/dist/charts/kinds/bars.d.mts +5 -3
  30. package/dist/charts/kinds/bars.mjs +39 -6
  31. package/dist/charts/kinds/columns-data.mjs +14 -5
  32. package/dist/charts/kinds/columns-marks.mjs +52 -23
  33. package/dist/charts/kinds/columns.d.mts +2 -2
  34. package/dist/charts/kinds/columns.mjs +36 -10
  35. package/dist/charts/kinds/course-data.mjs +44 -0
  36. package/dist/charts/kinds/course-layout.mjs +77 -0
  37. package/dist/charts/kinds/course-marks.mjs +52 -0
  38. package/dist/charts/kinds/course-words.mjs +64 -0
  39. package/dist/charts/kinds/course.d.mts +10 -0
  40. package/dist/charts/kinds/course.mjs +55 -0
  41. package/dist/charts/kinds/dumbbell-data.d.mts +4 -4
  42. package/dist/charts/kinds/dumbbell-data.mjs +3 -3
  43. package/dist/charts/kinds/dumbbell-layout.mjs +17 -8
  44. package/dist/charts/kinds/dumbbell.d.mts +5 -3
  45. package/dist/charts/kinds/dumbbell.mjs +35 -4
  46. package/dist/charts/kinds/funnel-data.d.mts +3 -3
  47. package/dist/charts/kinds/funnel-data.mjs +11 -16
  48. package/dist/charts/kinds/funnel-layout.mjs +7 -6
  49. package/dist/charts/kinds/funnel.d.mts +5 -4
  50. package/dist/charts/kinds/funnel.mjs +33 -6
  51. package/dist/charts/kinds/grid-data.d.mts +3 -3
  52. package/dist/charts/kinds/grid-data.mjs +55 -13
  53. package/dist/charts/kinds/grid-layout.mjs +88 -13
  54. package/dist/charts/kinds/grid-legend.mjs +60 -0
  55. package/dist/charts/kinds/grid-marks.mjs +81 -32
  56. package/dist/charts/kinds/grid-time.mjs +19 -5
  57. package/dist/charts/kinds/grid-words.mjs +57 -35
  58. package/dist/charts/kinds/grid.d.mts +7 -4
  59. package/dist/charts/kinds/grid.mjs +51 -9
  60. package/dist/charts/kinds/histogram-data.mjs +68 -26
  61. package/dist/charts/kinds/histogram-layout.mjs +4 -3
  62. package/dist/charts/kinds/histogram-words.mjs +2 -3
  63. package/dist/charts/kinds/histogram.d.mts +2 -2
  64. package/dist/charts/kinds/histogram.mjs +17 -1
  65. package/dist/charts/kinds/line-marks.mjs +19 -11
  66. package/dist/charts/kinds/line.d.mts +2 -2
  67. package/dist/charts/kinds/line.mjs +21 -3
  68. package/dist/charts/kinds/multiples-grid.mjs +57 -27
  69. package/dist/charts/kinds/multiples-head.mjs +52 -22
  70. package/dist/charts/kinds/multiples-layout.mjs +106 -52
  71. package/dist/charts/kinds/multiples-marks.mjs +6 -5
  72. package/dist/charts/kinds/multiples-words.mjs +53 -38
  73. package/dist/charts/kinds/multiples.d.mts +2 -2
  74. package/dist/charts/kinds/multiples.mjs +35 -7
  75. package/dist/charts/kinds/row-chart.d.mts +7 -0
  76. package/dist/charts/kinds/row-chart.mjs +47 -10
  77. package/dist/charts/kinds/row-marks.mjs +5 -5
  78. package/dist/charts/kinds/scatter-data.d.mts +5 -5
  79. package/dist/charts/kinds/scatter-data.mjs +6 -6
  80. package/dist/charts/kinds/scatter-marks.mjs +46 -19
  81. package/dist/charts/kinds/scatter-words.mjs +8 -8
  82. package/dist/charts/kinds/scatter.d.mts +5 -3
  83. package/dist/charts/kinds/scatter.mjs +18 -0
  84. package/dist/charts/kinds/stat-data.mjs +7 -7
  85. package/dist/charts/kinds/stat-marks.mjs +2 -2
  86. package/dist/charts/kinds/stat.d.mts +4 -4
  87. package/dist/charts/kinds/stat.mjs +19 -0
  88. package/dist/charts/kinds/time-chart.mjs +13 -4
  89. package/dist/charts/kinds/time-frame.mjs +50 -19
  90. package/dist/charts/kinds/time-plan.mjs +29 -2
  91. package/dist/charts/kinds/time-plot.mjs +1 -1
  92. package/dist/charts/kinds/time-stops.mjs +58 -29
  93. package/dist/charts/kinds/waterfall-data.d.mts +3 -3
  94. package/dist/charts/kinds/waterfall-data.mjs +2 -2
  95. package/dist/charts/kinds/waterfall.d.mts +5 -4
  96. package/dist/charts/kinds/waterfall.mjs +29 -2
  97. package/dist/charts/layout/frame.mjs +5 -3
  98. package/dist/charts/layout/stack.mjs +43 -22
  99. package/dist/charts/marks/axes.mjs +12 -6
  100. package/dist/charts/marks/budget.mjs +14 -0
  101. package/dist/charts/marks/end-labels.mjs +24 -10
  102. package/dist/charts/marks/legend.mjs +19 -8
  103. package/dist/charts/marks/lines.mjs +3 -3
  104. package/dist/charts/marks/more.mjs +79 -13
  105. package/dist/charts/marks/notes.mjs +12 -6
  106. package/dist/charts/marks/series-line.mjs +14 -10
  107. package/dist/charts/marks/thin.mjs +16 -33
  108. package/dist/charts/marks/x-axis.mjs +3 -2
  109. package/dist/charts/scale/calendar.mjs +41 -26
  110. package/dist/charts/scale/linear.mjs +58 -0
  111. package/dist/charts/scale/value.d.mts +21 -0
  112. package/dist/charts/scale/value.mjs +67 -9
  113. package/dist/charts/scene/lazy.mjs +27 -0
  114. package/dist/charts/scene/markup.mjs +2 -1
  115. package/dist/charts/scene/svg.mjs +20 -8
  116. package/dist/charts/scene/types.d.mts +34 -0
  117. package/dist/charts/text/measure.mjs +33 -3
  118. package/dist/charts/theme.d.mts +25 -25
  119. package/dist/charts/theme.mjs +47 -30
  120. package/dist/charts-react/Chart.d.mts +20 -0
  121. package/dist/charts-react/Chart.mjs +9 -67
  122. package/dist/charts-react/Reader.mjs +50 -96
  123. package/dist/charts-react/box.mjs +106 -0
  124. package/dist/charts-react/bucket-names.mjs +9 -24
  125. package/dist/charts-react/columns-picture.mjs +12 -0
  126. package/dist/charts-react/exact-sum.mjs +4 -7
  127. package/dist/charts-react/from-answer.mjs +9 -4
  128. package/dist/charts-react/index.d.mts +9 -2
  129. package/dist/charts-react/index.mjs +9 -2
  130. package/dist/charts-react/kinds/area.d.mts +4 -0
  131. package/dist/charts-react/kinds/area.mjs +38 -0
  132. package/dist/charts-react/kinds/bar.d.mts +4 -0
  133. package/dist/charts-react/kinds/bar.mjs +15 -0
  134. package/dist/charts-react/kinds/funnel.d.mts +4 -0
  135. package/dist/charts-react/kinds/funnel.mjs +13 -0
  136. package/dist/charts-react/kinds/heatmap.d.mts +4 -0
  137. package/dist/charts-react/kinds/heatmap.mjs +13 -0
  138. package/dist/charts-react/kinds/line.d.mts +4 -0
  139. package/dist/charts-react/kinds/line.mjs +20 -0
  140. package/dist/charts-react/kinds/multiples.d.mts +4 -0
  141. package/dist/charts-react/kinds/multiples.mjs +33 -0
  142. package/dist/charts-react/kinds/number.d.mts +5 -0
  143. package/dist/charts-react/kinds/number.mjs +86 -0
  144. package/dist/charts-react/plan-bars.mjs +15 -8
  145. package/dist/charts-react/plan-funnel.mjs +3 -1
  146. package/dist/charts-react/plan-grid.mjs +14 -5
  147. package/dist/charts-react/plan-of.mjs +17 -0
  148. package/dist/charts-react/plan-parts.mjs +16 -5
  149. package/dist/charts-react/plan-time.mjs +4 -53
  150. package/dist/charts-react/reader-page.d.mts +1 -1
  151. package/dist/charts-react/reader-page.mjs +19 -9
  152. package/dist/charts-react/renderers.d.mts +14 -0
  153. package/dist/charts-react/renderers.mjs +22 -0
  154. package/dist/charts-react/table.d.mts +1 -0
  155. package/dist/charts-react/table.mjs +108 -0
  156. package/dist/charts-react/tiles.mjs +21 -49
  157. package/dist/charts-react/useScene.mjs +45 -17
  158. package/dist/charts-react/words.mjs +19 -0
  159. package/dist/checks.mjs +97 -19
  160. package/dist/cli/add.mjs +4 -3
  161. package/dist/cli/doctor.mjs +2 -2
  162. package/dist/core/conformance/index.d.mts +5 -2
  163. package/dist/core/conformance/index.mjs +5 -2
  164. package/dist/core/conformance/memory/aggregate.mjs +11 -6
  165. package/dist/core/conformance/memory/rows.d.mts +7 -3
  166. package/dist/core/conformance/memory/rows.mjs +19 -13
  167. package/dist/core/conformance/memory/source.mjs +4 -4
  168. package/dist/core/document/control-fields.d.mts +20 -0
  169. package/dist/core/document/control-fields.mjs +117 -0
  170. package/dist/core/document/display-comparisons.d.mts +17 -0
  171. package/dist/core/document/display-comparisons.mjs +15 -4
  172. package/dist/core/document/display-entries.d.mts +14 -0
  173. package/dist/core/document/display-entries.mjs +25 -9
  174. package/dist/core/document/display-validation.d.mts +5 -1
  175. package/dist/core/document/display-validation.mjs +14 -7
  176. package/dist/core/document/display.d.mts +11 -8
  177. package/dist/core/document/display.mjs +26 -3
  178. package/dist/core/document/layout.d.mts +8 -9
  179. package/dist/core/document/layout.mjs +23 -6
  180. package/dist/core/document/stacked.d.mts +0 -7
  181. package/dist/core/document/types.mjs +8 -6
  182. package/dist/core/document/upgrade.d.mts +1 -0
  183. package/dist/core/document/upgrade.mjs +4 -2
  184. package/dist/core/engine/access.mjs +3 -3
  185. package/dist/core/engine/assert.mjs +4 -2
  186. package/dist/core/engine/bucket.mjs +2 -2
  187. package/dist/core/engine/checks.mjs +6 -7
  188. package/dist/core/engine/custom/ask.mjs +22 -2
  189. package/dist/core/engine/custom/cells.mjs +22 -22
  190. package/dist/core/engine/custom/level.mjs +12 -13
  191. package/dist/core/engine/custom/measures.mjs +12 -9
  192. package/dist/core/engine/custom/reader.mjs +3 -1
  193. package/dist/core/engine/custom/records.mjs +8 -7
  194. package/dist/core/engine/custom/unread.mjs +78 -0
  195. package/dist/core/engine/custom/where.mjs +15 -10
  196. package/dist/core/engine/index.d.mts +2 -13
  197. package/dist/core/engine/index.mjs +2 -12
  198. package/dist/core/engine/measure.mjs +1 -0
  199. package/dist/core/engine/members.mjs +7 -3
  200. package/dist/core/engine/nan.mjs +10 -1
  201. package/dist/core/engine/native.mjs +2 -20
  202. package/dist/core/engine/numbers.mjs +26 -14
  203. package/dist/core/engine/postgres.mjs +9 -5
  204. package/dist/core/engine/prepare.mjs +4 -4
  205. package/dist/core/engine/rank-sets.mjs +1 -1
  206. package/dist/core/engine/read.mjs +5 -4
  207. package/dist/core/engine/reader.d.mts +6 -0
  208. package/dist/core/engine/record-layout.mjs +3 -3
  209. package/dist/core/engine/run.mjs +77 -20
  210. package/dist/core/engine/segmented.d.mts +2 -1
  211. package/dist/core/engine/segmented.mjs +19 -12
  212. package/dist/core/engine/series.mjs +1 -1
  213. package/dist/core/engine/shape.mjs +8 -8
  214. package/dist/core/engine/sql-partition.mjs +2 -2
  215. package/dist/core/engine/sql-pass.mjs +3 -2
  216. package/dist/core/engine/sql-reader.mjs +13 -5
  217. package/dist/core/engine/sql-reads.mjs +2 -1
  218. package/dist/core/engine/sql-records.mjs +2 -2
  219. package/dist/core/engine/sql-split.mjs +1 -1
  220. package/dist/core/engine/sql-unread.mjs +70 -0
  221. package/dist/core/engine/time.mjs +2 -1
  222. package/dist/core/engine/types.d.mts +17 -0
  223. package/dist/core/engine/version.d.mts +1 -1
  224. package/dist/core/engine/version.mjs +1 -1
  225. package/dist/core/error/codes.d.mts +24 -1
  226. package/dist/core/error/codes.mjs +23 -3
  227. package/dist/core/error/refusal.d.mts +8 -3
  228. package/dist/core/error/refusal.mjs +6 -1
  229. package/dist/core/exact/decimal.d.mts +1 -14
  230. package/dist/core/exact/decimal.mjs +9 -19
  231. package/dist/core/exact/stored.d.mts +9 -0
  232. package/dist/core/exact/stored.mjs +38 -0
  233. package/dist/core/exact/text.d.mts +16 -1
  234. package/dist/core/exact/text.mjs +50 -1
  235. package/dist/core/format/digits.mjs +55 -0
  236. package/dist/core/format/index.d.mts +16 -0
  237. package/dist/core/format/index.mjs +27 -0
  238. package/dist/core/format/number.d.mts +27 -0
  239. package/dist/core/format/number.mjs +158 -0
  240. package/dist/core/format/write.d.mts +6 -0
  241. package/dist/core/format/write.mjs +57 -0
  242. package/dist/core/index.d.mts +43 -33
  243. package/dist/core/index.mjs +31 -28
  244. package/dist/core/model/defaults.d.mts +18 -1
  245. package/dist/core/model/defaults.mjs +19 -1
  246. package/dist/core/model/define.d.mts +17 -8
  247. package/dist/core/model/define.mjs +2 -0
  248. package/dist/core/model/member.d.mts +5 -3
  249. package/dist/core/model/member.mjs +33 -6
  250. package/dist/core/model/storage.mjs +40 -12
  251. package/dist/core/model/types.d.mts +17 -1
  252. package/dist/core/model/types.mjs +5 -0
  253. package/dist/core/model/validate/expr.d.mts +1 -7
  254. package/dist/core/model/validate/fields.d.mts +2 -0
  255. package/dist/core/model/validate/fields.mjs +14 -7
  256. package/dist/core/model/validate/issues.mjs +5 -1
  257. package/dist/core/model/validate/known-members.mjs +6 -5
  258. package/dist/core/model/validate/shape.mjs +36 -3
  259. package/dist/core/model/validate/source.mjs +2 -2
  260. package/dist/core/oracle/data.d.mts +4 -2
  261. package/dist/core/oracle/evaluate.d.mts +19 -1
  262. package/dist/core/oracle/evaluate.mjs +56 -10
  263. package/dist/core/oracle/expr.mjs +1 -1
  264. package/dist/core/oracle/facts.mjs +12 -5
  265. package/dist/core/oracle/measure.mjs +1 -1
  266. package/dist/core/oracle/request.mjs +39 -4
  267. package/dist/core/oracle/segmented.d.mts +3 -1
  268. package/dist/core/oracle/segmented.mjs +19 -13
  269. package/dist/core/oracle/unread.mjs +32 -0
  270. package/dist/core/oracle/visibility.mjs +4 -3
  271. package/dist/core/policy/bind.d.mts +2 -11
  272. package/dist/core/policy/bind.mjs +1 -1
  273. package/dist/core/policy/match.mjs +1 -1
  274. package/dist/core/query/closure.d.mts +7 -2
  275. package/dist/core/query/closure.mjs +29 -12
  276. package/dist/core/query/compose-tile.d.mts +3 -2
  277. package/dist/core/query/compose-tile.mjs +32 -13
  278. package/dist/core/query/compose.d.mts +0 -5
  279. package/dist/core/query/drill/internal.d.mts +5 -5
  280. package/dist/core/query/drill/internal.mjs +11 -0
  281. package/dist/core/query/drill/links.d.mts +2 -3
  282. package/dist/core/query/drill/links.mjs +18 -4
  283. package/dist/core/query/drill/selection.d.mts +8 -2
  284. package/dist/core/query/drill/selection.mjs +14 -3
  285. package/dist/core/query/drill/synthetic.mjs +1 -1
  286. package/dist/core/query/drill/time.mjs +11 -10
  287. package/dist/core/query/filter.d.mts +1 -6
  288. package/dist/core/query/filter.mjs +1 -4
  289. package/dist/core/query/fold.mjs +23 -0
  290. package/dist/core/query/segments.mjs +42 -3
  291. package/dist/core/query/to-wire.d.mts +7 -0
  292. package/dist/core/query/to-wire.mjs +14 -2
  293. package/dist/core/query/types.d.mts +30 -13
  294. package/dist/core/result/columns.mjs +23 -13
  295. package/dist/core/result/number.mjs +3 -3
  296. package/dist/core/result/status.d.mts +13 -0
  297. package/dist/core/result/status.mjs +18 -0
  298. package/dist/core/result/time-axis.d.mts +14 -13
  299. package/dist/core/result/time-axis.mjs +20 -2
  300. package/dist/core/result/types.d.mts +33 -3
  301. package/dist/core/result/whole.d.mts +23 -0
  302. package/dist/core/result/whole.mjs +27 -0
  303. package/dist/core/schema/agent-query.d.mts +89 -0
  304. package/dist/core/schema/agent-query.mjs +115 -0
  305. package/dist/core/schema/aliases.mjs +1 -52
  306. package/dist/core/schema/answer-parts.mjs +17 -13
  307. package/dist/core/schema/answers.d.mts +787 -319
  308. package/dist/core/schema/commands.d.mts +33 -23
  309. package/dist/core/schema/commands.mjs +26 -18
  310. package/dist/core/schema/custom.mjs +46 -45
  311. package/dist/core/schema/document.d.mts +32 -27
  312. package/dist/core/schema/document.mjs +61 -81
  313. package/dist/core/schema/drill-answers.mjs +4 -1
  314. package/dist/core/schema/drill.d.mts +14 -9
  315. package/dist/core/schema/drill.mjs +23 -22
  316. package/dist/core/schema/index.d.mts +5 -3
  317. package/dist/core/schema/index.mjs +5 -3
  318. package/dist/core/schema/options.d.mts +92 -0
  319. package/dist/core/schema/options.mjs +104 -0
  320. package/dist/core/schema/picks.d.mts +2 -2
  321. package/dist/core/schema/picks.mjs +7 -6
  322. package/dist/core/schema/query.d.mts +9 -83
  323. package/dist/core/schema/query.mjs +49 -73
  324. package/dist/core/schema/strict.d.mts +3 -0
  325. package/dist/core/schema/strict.mjs +91 -0
  326. package/dist/core/schema/union-error.mjs +30 -7
  327. package/dist/core/schema/view.d.mts +4 -3
  328. package/dist/core/schema/view.mjs +16 -11
  329. package/dist/core/store/ddl.d.mts +0 -2
  330. package/dist/core/store/ddl.mjs +1 -5
  331. package/dist/core/time/bucket.d.mts +1 -18
  332. package/dist/core/time/bucket.mjs +12 -8
  333. package/dist/core/time/compare.mjs +3 -2
  334. package/dist/core/time/index.d.mts +7 -8
  335. package/dist/core/time/instant.d.mts +15 -9
  336. package/dist/core/time/instant.mjs +23 -9
  337. package/dist/core/time/range.d.mts +3 -15
  338. package/dist/core/time/range.mjs +17 -7
  339. package/dist/core/time/stored.d.mts +8 -5
  340. package/dist/core/time/stored.mjs +51 -15
  341. package/dist/core/time/temporal.d.mts +1 -5
  342. package/dist/core/time/temporal.mjs +9 -4
  343. package/dist/core/time/text-time.d.mts +31 -2
  344. package/dist/core/time/text-time.mjs +139 -22
  345. package/dist/core/time/zone.d.mts +6 -1
  346. package/dist/core/time/zone.mjs +13 -4
  347. package/dist/core/types/api.d.mts +1 -1
  348. package/dist/core/types/api.mjs +1 -1
  349. package/dist/core/types/dashboard.d.mts +185 -0
  350. package/dist/core/types/dashboard.mjs +26 -0
  351. package/dist/core/types/drill-api.d.mts +14 -2
  352. package/dist/core/types/infer.d.mts +0 -4
  353. package/dist/core/types/options-check.d.mts +42 -0
  354. package/dist/core/types/options-check.mjs +90 -0
  355. package/dist/core/types/options.d.mts +14 -8
  356. package/dist/core/value/casefold.d.mts +1 -3
  357. package/dist/core/value/stored.d.mts +26 -0
  358. package/dist/core/value/stored.mjs +28 -0
  359. package/dist/cursor-seal.mjs +37 -9
  360. package/dist/dashboard-documents.d.mts +14 -6
  361. package/dist/dashboard-documents.mjs +32 -12
  362. package/dist/dashboards.mjs +10 -9
  363. package/dist/drill-access.mjs +6 -6
  364. package/dist/drill-change.mjs +18 -20
  365. package/dist/drill-comparison.mjs +2 -1
  366. package/dist/drill-crumbs.mjs +63 -28
  367. package/dist/drill-distinct.mjs +2 -1
  368. package/dist/drill-explain.mjs +1 -1
  369. package/dist/drill-items.mjs +1 -1
  370. package/dist/drill-open.mjs +39 -23
  371. package/dist/drill-seal.mjs +41 -13
  372. package/dist/drill-share.mjs +1 -1
  373. package/dist/drill-summary.mjs +2 -1
  374. package/dist/drill-targets.mjs +4 -4
  375. package/dist/drill-views.mjs +4 -3
  376. package/dist/drill.mjs +1 -1
  377. package/dist/editing.mjs +5 -3
  378. package/dist/endpoints/index.d.mts +29 -8
  379. package/dist/endpoints/index.mjs +4 -1
  380. package/dist/endpoints/meta.mjs +4 -3
  381. package/dist/endpoints/query.mjs +5 -2
  382. package/dist/endpoints/read.mjs +7 -6
  383. package/dist/endpoints/versions.mjs +2 -1
  384. package/dist/execute.d.mts +3 -0
  385. package/dist/execute.mjs +23 -12
  386. package/dist/grant.d.mts +9 -0
  387. package/dist/grant.mjs +43 -0
  388. package/dist/handler.mjs +8 -13
  389. package/dist/http.d.mts +6 -2
  390. package/dist/http.mjs +6 -2
  391. package/dist/index.d.mts +25 -4
  392. package/dist/index.mjs +91 -40
  393. package/dist/llms.txt +3 -3
  394. package/dist/mcp/api.mjs +2 -1
  395. package/dist/mcp/query.mjs +3 -8
  396. package/dist/mcp/resolve.mjs +9 -2
  397. package/dist/node/index.d.mts +36 -0
  398. package/dist/node/index.mjs +89 -0
  399. package/dist/node/request.d.mts +12 -0
  400. package/dist/node/request.mjs +119 -0
  401. package/dist/node/response.mjs +58 -0
  402. package/dist/principal.mjs +15 -7
  403. package/dist/react/Canvas.mjs +90 -69
  404. package/dist/react/Cell.mjs +2 -1
  405. package/dist/react/Dashboard.d.mts +15 -1
  406. package/dist/react/Dashboard.mjs +43 -42
  407. package/dist/react/DashboardList.mjs +9 -4
  408. package/dist/react/Editing.d.mts +9 -0
  409. package/dist/react/Editing.mjs +8 -3
  410. package/dist/react/Grid.mjs +1 -1
  411. package/dist/react/Header.mjs +25 -52
  412. package/dist/react/History.mjs +3 -2
  413. package/dist/react/LoadFailed.mjs +59 -0
  414. package/dist/react/Panel.d.mts +1 -1
  415. package/dist/react/Panel.mjs +1 -1
  416. package/dist/react/Parts.d.mts +34 -0
  417. package/dist/react/Parts.mjs +9 -6
  418. package/dist/react/ReviewPanel.mjs +1 -1
  419. package/dist/react/RowBody.d.mts +2 -0
  420. package/dist/react/RowBody.mjs +5 -1
  421. package/dist/react/Share.mjs +153 -0
  422. package/dist/react/TabStrip.mjs +37 -0
  423. package/dist/react/Tile.d.mts +3 -1
  424. package/dist/react/Tile.mjs +89 -92
  425. package/dist/react/TileState.mjs +117 -0
  426. package/dist/react/ago.mjs +45 -0
  427. package/dist/react/arrange.mjs +1 -1
  428. package/dist/react/board.mjs +2 -2
  429. package/dist/react/bucket-name.d.mts +8 -0
  430. package/dist/react/bucket-name.mjs +13 -0
  431. package/dist/react/builder/DisplayOptions.mjs +219 -0
  432. package/dist/react/builder/Preview.mjs +13 -13
  433. package/dist/react/builder/RangeEditor.mjs +4 -3
  434. package/dist/react/builder/WidgetBuilder.d.mts +1 -7
  435. package/dist/react/builder/WidgetBuilder.mjs +12 -3
  436. package/dist/react/builder/base.d.mts +13 -2
  437. package/dist/react/builder/base.mjs +70 -12
  438. package/dist/react/builder/display.d.mts +3 -0
  439. package/dist/react/builder/display.mjs +256 -0
  440. package/dist/react/builder/labels.mjs +19 -5
  441. package/dist/react/builder/options.mjs +11 -6
  442. package/dist/react/builder/state.mjs +25 -3
  443. package/dist/react/builder/useBuilder.d.mts +7 -1
  444. package/dist/react/builder/useBuilder.mjs +6 -9
  445. package/dist/react/builder/usePreview.mjs +3 -2
  446. package/dist/react/builder/words.d.mts +16 -1
  447. package/dist/react/builder/words.mjs +41 -1
  448. package/dist/react/change-text.mjs +149 -0
  449. package/dist/react/client.d.mts +9 -0
  450. package/dist/react/client.mjs +105 -14
  451. package/dist/react/columns.mjs +9 -1
  452. package/dist/react/context.d.mts +24 -3
  453. package/dist/react/context.mjs +23 -7
  454. package/dist/react/dates-shown.mjs +76 -0
  455. package/dist/react/draft.mjs +3 -2
  456. package/dist/react/drill/Bars.mjs +12 -16
  457. package/dist/react/drill/Comparison.mjs +1 -1
  458. package/dist/react/drill/DrillPanel.d.mts +1 -1
  459. package/dist/react/drill/DrillPanel.mjs +2 -1
  460. package/dist/react/drill/Header.mjs +65 -12
  461. package/dist/react/drill/Items.d.mts +1 -1
  462. package/dist/react/drill/Notes.mjs +10 -7
  463. package/dist/react/drill/PanelStates.mjs +8 -1
  464. package/dist/react/drill/Trend.mjs +10 -5
  465. package/dist/react/drill/board.d.mts +1 -1
  466. package/dist/react/drill/board.mjs +1 -0
  467. package/dist/react/drill/host.mjs +4 -1
  468. package/dist/react/drill/lazy.mjs +2 -27
  469. package/dist/react/drill/props.d.mts +19 -8
  470. package/dist/react/drill/props.mjs +62 -18
  471. package/dist/react/drill/state.d.mts +15 -5
  472. package/dist/react/drill/state.mjs +12 -3
  473. package/dist/react/drill/words.d.mts +46 -3
  474. package/dist/react/drill/words.mjs +30 -5
  475. package/dist/react/english.mjs +33 -8
  476. package/dist/react/export/ExportButton.mjs +4 -1
  477. package/dist/react/export/csv.d.mts +7 -2
  478. package/dist/react/export/csv.mjs +24 -7
  479. package/dist/react/failure-words.mjs +60 -0
  480. package/dist/react/filters/bar.d.mts +1 -1
  481. package/dist/react/filters/bar.mjs +4 -1
  482. package/dist/react/filters/calendar.mjs +23 -8
  483. package/dist/react/filters/chip.mjs +7 -3
  484. package/dist/react/filters/context.d.mts +13 -1
  485. package/dist/react/filters/context.mjs +1 -1
  486. package/dist/react/filters/dates-said.mjs +57 -0
  487. package/dist/react/filters/days.d.mts +3 -4
  488. package/dist/react/filters/days.mjs +10 -17
  489. package/dist/react/filters/hooks.d.mts +11 -0
  490. package/dist/react/filters/hooks.mjs +10 -6
  491. package/dist/react/filters/menu-search.mjs +17 -9
  492. package/dist/react/filters/menu.mjs +10 -8
  493. package/dist/react/filters/phone.mjs +41 -16
  494. package/dist/react/filters/place.mjs +40 -0
  495. package/dist/react/filters/popover.mjs +18 -13
  496. package/dist/react/filters/rules.d.mts +4 -3
  497. package/dist/react/filters/rules.mjs +3 -3
  498. package/dist/react/filters/sheet.mjs +7 -3
  499. package/dist/react/filters/state.mjs +6 -1
  500. package/dist/react/filters/values.mjs +24 -7
  501. package/dist/react/filters/words.d.mts +13 -0
  502. package/dist/react/filters/words.mjs +5 -0
  503. package/dist/react/format-time.d.mts +17 -6
  504. package/dist/react/format-time.mjs +152 -33
  505. package/dist/react/format.d.mts +3 -3
  506. package/dist/react/format.mjs +35 -122
  507. package/dist/react/headline.d.mts +12 -0
  508. package/dist/react/headline.mjs +107 -0
  509. package/dist/react/index.d.mts +20 -17
  510. package/dist/react/index.mjs +13 -10
  511. package/dist/react/lazy.mjs +38 -0
  512. package/dist/react/messages.d.mts +78 -2
  513. package/dist/react/now.mjs +38 -0
  514. package/dist/react/place.mjs +4 -2
  515. package/dist/react/read.d.mts +1 -0
  516. package/dist/react/read.mjs +140 -9
  517. package/dist/react/renderers/exact.mjs +31 -59
  518. package/dist/react/renderers/index.d.mts +27 -6
  519. package/dist/react/renderers/index.mjs +154 -92
  520. package/dist/react/renderers/list-parts.mjs +24 -0
  521. package/dist/react/renderers/list.d.mts +1 -0
  522. package/dist/react/renderers/list.mjs +99 -43
  523. package/dist/react/renderers/more-rows.mjs +75 -0
  524. package/dist/react/renderers/number-before.mjs +320 -0
  525. package/dist/react/renderers/number-period.mjs +54 -0
  526. package/dist/react/renderers/number-whole.mjs +29 -0
  527. package/dist/react/renderers/props.d.mts +24 -1
  528. package/dist/react/renderers/props.mjs +8 -0
  529. package/dist/react/renderers/table-cells.mjs +137 -31
  530. package/dist/react/renderers/table-fit.mjs +55 -10
  531. package/dist/react/renderers/table-measure.mjs +29 -9
  532. package/dist/react/renderers/table-row.mjs +14 -9
  533. package/dist/react/renderers/table-scale.mjs +2 -3
  534. package/dist/react/renderers/table-sort.mjs +3 -2
  535. package/dist/react/renderers/table-whole.mjs +37 -0
  536. package/dist/react/renderers/table.mjs +73 -53
  537. package/dist/react/review.d.mts +7 -0
  538. package/dist/react/review.mjs +35 -8
  539. package/dist/react/roving.d.mts +6 -0
  540. package/dist/react/roving.mjs +123 -0
  541. package/dist/react/says-dates.d.mts +7 -0
  542. package/dist/react/says-dates.mjs +51 -0
  543. package/dist/react/series.mjs +5 -6
  544. package/dist/react/stable.mjs +1 -1
  545. package/dist/react/tabs/EditTabs.mjs +125 -0
  546. package/dist/react/tabs/NameField.mjs +72 -0
  547. package/dist/react/tabs/TabMenu.mjs +175 -0
  548. package/dist/react/tabs/actions.mjs +37 -0
  549. package/dist/react/tabs/commands.mjs +76 -0
  550. package/dist/react/tabs/focus.mjs +22 -0
  551. package/dist/react/tabs/keys.mjs +28 -0
  552. package/dist/react/theme-unlayered.css +1 -1
  553. package/dist/react/theme.css +1 -1
  554. package/dist/react/tile-store.d.mts +4 -0
  555. package/dist/react/tile-store.mjs +93 -13
  556. package/dist/react/touch.d.mts +16 -0
  557. package/dist/react/touch.mjs +39 -0
  558. package/dist/react/useBoard.d.mts +6 -0
  559. package/dist/react/useBoard.mjs +1 -0
  560. package/dist/react/useDashboard.d.mts +2 -0
  561. package/dist/react/useDashboard.mjs +5 -2
  562. package/dist/react/useTiles.d.mts +3 -0
  563. package/dist/react/useTiles.mjs +73 -17
  564. package/dist/react/view-grid.mjs +2 -2
  565. package/dist/react/view.mjs +1 -1
  566. package/dist/recharts/axes.mjs +1 -1
  567. package/dist/recharts/axis.mjs +23 -73
  568. package/dist/recharts/bar.d.mts +2 -1
  569. package/dist/recharts/bar.mjs +140 -64
  570. package/dist/recharts/fit.mjs +33 -0
  571. package/dist/recharts/line.mjs +23 -17
  572. package/dist/recharts/marks.mjs +2 -1
  573. package/dist/recharts/parts.mjs +19 -14
  574. package/dist/recharts/table.mjs +8 -3
  575. package/dist/refusal.mjs +46 -0
  576. package/dist/registry/filter-bar.json +1 -1
  577. package/dist/skills/derive-dashboards/SKILL.md +25 -9
  578. package/dist/tile-doc.mjs +1 -1
  579. package/package.json +21 -6
  580. package/dist/charts-react/plan.d.mts +0 -3
  581. package/dist/charts-react/plan.mjs +0 -37
  582. package/dist/charts-react/tiles.d.mts +0 -24
  583. package/dist/core/policy/match.d.mts +0 -16
  584. package/dist/core/schema/aliases.d.mts +0 -7
  585. package/dist/core/time/compare.d.mts +0 -30
  586. package/dist/react/EditBar.d.mts +0 -16
  587. package/dist/react/History.d.mts +0 -30
  588. package/dist/react/ReviewPanel.d.mts +0 -15
  589. package/dist/react/digits.mjs +0 -46
  590. package/dist/react/drill/trend-touch.mjs +0 -33
  591. package/dist/react/renderers/exact.d.mts +0 -6
@@ -1,7 +1,19 @@
1
- import { lastIncludedMillisecond } from "derive-dashboards/core";
1
+ import { isDateOnly, lastIncludedMillisecond, parseTextTime, textMillis } from "derive-dashboards/core";
2
2
  // src/format-time.ts
3
- /** Date formats by locale and style, made once: a table would make one for every cell of a time column. */
3
+ /** The kit's one cache of date formats: a table would make one for every cell of a time column. */
4
4
  const FORMATS = /* @__PURE__ */ new Map();
5
+ /** A date format for a locale and a zone (the viewer's when none), made once. */
6
+ function dateFormat(locale, options, timeZone) {
7
+ const key = `${locale ?? ""}|${timeZone ?? ""}|${JSON.stringify(options)}`;
8
+ const cached = FORMATS.get(key);
9
+ if (cached !== void 0) return cached;
10
+ const made = new Intl.DateTimeFormat(locale, {
11
+ timeZone,
12
+ ...options
13
+ });
14
+ FORMATS.set(key, made);
15
+ return made;
16
+ }
5
17
  const DATE_LABEL = /^\d{4}-\d{2}-\d{2}$/u;
6
18
  const STYLES = {
7
19
  day: {
@@ -21,59 +33,166 @@ const STYLES = {
21
33
  hour: {
22
34
  dateStyle: "medium",
23
35
  timeStyle: "short"
36
+ },
37
+ zone: { timeZoneName: "short" },
38
+ wall: {
39
+ year: "numeric",
40
+ month: "numeric",
41
+ day: "numeric",
42
+ hour: "numeric",
43
+ minute: "numeric",
44
+ second: "numeric",
45
+ hourCycle: "h23"
24
46
  }
25
47
  };
26
48
  function styleFor(grain, withYear = false) {
27
- if (grain === "week" || grain === "day") return withYear ? "dated" : "day";
28
- return grain === "quarter" ? "month" : grain;
49
+ if (grain === "week" || grain === "day") return withYear ? STYLES.dated : STYLES.day;
50
+ return STYLES[grain === "quarter" ? "month" : grain];
29
51
  }
30
- function dateFormat(locale, style, timeZone) {
31
- const key = `${locale ?? ""}|${style}|${timeZone ?? ""}`;
32
- const cached = FORMATS.get(key);
33
- if (cached !== void 0) return cached;
34
- const made = new Intl.DateTimeFormat(locale, {
35
- ...STYLES[style],
36
- timeZone
37
- });
38
- FORMATS.set(key, made);
39
- return made;
52
+ /**
53
+ * An hour's label as an instant, read by the one grammar text time has (`parseTextTime`). A
54
+ * label that names no zone of its own ("2026-03-11 12:00:00", as a host's own rows may carry)
55
+ * is read as UTC: read on the wall of the machine that draws it, a server and a browser would
56
+ * write different hours. A label that is not a time is no instant, and stays as sent.
57
+ */
58
+ function hourInstant(label) {
59
+ const micros = parseTextTime(label) ?? parseTextTime(`${label}Z`);
60
+ return micros === void 0 ? void 0 : new Date(Number(micros / 1000n));
61
+ }
62
+ /**
63
+ * A text as an instant, for every namer here: a time by the one grammar text time has, one
64
+ * that names no zone read as UTC (`hourInstant`); else a calendar date alone, which is its
65
+ * first instant in UTC, read as core reads a date (`textMillis`). Anything else is no instant:
66
+ * what core refuses ("2026-02-30") comes back as it was sent.
67
+ */
68
+ function instantOf(text) {
69
+ const timed = hourInstant(text);
70
+ if (timed !== void 0 || !DATE_LABEL.test(text)) return timed;
71
+ const day = textMillis(text);
72
+ return day === void 0 ? void 0 : new Date(day.ms);
73
+ }
74
+ const DAY_MS = 864e5;
75
+ /** A zone's offset from UTC at an instant, in milliseconds, read off the wall clock Intl gives there. */
76
+ function offsetAt(date, timeZone) {
77
+ const parts = dateFormat("en-US", STYLES.wall, timeZone).formatToParts(date);
78
+ const read = (type) => Number(parts.find((part) => part.type === type)?.value ?? 0);
79
+ return Date.UTC(read("year"), read("month") - 1, read("day"), read("hour"), read("minute"), read("second")) - Math.floor(date.getTime() / 1e3) * 1e3;
80
+ }
81
+ /** Whether each UTC day asked of a zone is steady (`steady`), kept: every hour of a day asks the same. */
82
+ const STEADY = /* @__PURE__ */ new Map();
83
+ const DAYS_KEPT = 4096;
84
+ /**
85
+ * Whether no clock changes within a day either side of an instant: its zone's offset is the
86
+ * same at the midnights around it. Nearly every hour of a year is so, and is named by one
87
+ * format of its own with no look at its neighbours.
88
+ */
89
+ function steady(date, timeZone) {
90
+ const day = Math.floor(date.getTime() / DAY_MS);
91
+ const zone = timeZone ?? "";
92
+ const days = STEADY.get(zone) ?? /* @__PURE__ */ new Map();
93
+ const kept = days.get(day);
94
+ if (kept !== void 0) return kept;
95
+ const [first = 0, ...rest] = [
96
+ day - 1,
97
+ day,
98
+ day + 1,
99
+ day + 2
100
+ ].map((other) => offsetAt(/* @__PURE__ */ new Date(other * DAY_MS), timeZone));
101
+ const calm = rest.every((offset) => offset === first);
102
+ if (days.size >= DAYS_KEPT) days.clear();
103
+ days.set(day, calm);
104
+ STEADY.set(zone, days);
105
+ return calm;
106
+ }
107
+ /**
108
+ * Where an instant's twin would be, if a clock change repeats its wall time: as far before it
109
+ * as the clock was set back in the day before, and as far after it as the clock is set back in
110
+ * the day after. Whatever the zone sets its clock back by: an hour nearly everywhere, half an
111
+ * hour on Lord Howe Island, two hours at Troll station. No clock change near, no twin.
112
+ */
113
+ function twinsOf(date, timeZone) {
114
+ const at = offsetAt(date, timeZone);
115
+ const before = offsetAt(/* @__PURE__ */ new Date(date.getTime() - DAY_MS), timeZone) - at;
116
+ const after = at - offsetAt(new Date(date.getTime() + DAY_MS), timeZone);
117
+ return [-Math.max(0, before), Math.max(0, after)].filter((by) => by !== 0).map((by) => new Date(date.getTime() + by));
40
118
  }
119
+ /** The zone's short name at an instant ("EDT"), in the locale; none when Intl gives none. */
120
+ const zoneName = (date, locale, timeZone) => dateFormat(locale, STYLES.zone, timeZone).formatToParts(date).find((part) => part.type === "timeZoneName")?.value;
41
121
  /**
42
- * A time bucket's label for a person: "Nov 2" for a day or week, "Jun 2026" for a month or
43
- * the month a (possibly fiscal) quarter starts. The label names a calendar date, so it is formatted as that date,
44
- * not as an instant in any zone. Hour labels stay as sent.
122
+ * An hour as its date and clock time on the wall. The hour a clock change repeats reads twice
123
+ * alike there ("Nov 1, 2026, 1:00 AM"), so each of the two also says its zone's short name at
124
+ * its instant ("1:00 AM EDT", "1:00 AM EST"), however far the clock is set back; every other
125
+ * hour says the wall time alone.
45
126
  */
46
- function formatBucket(label, grain, locale, withYear = false) {
47
- if (grain === "hour" || !DATE_LABEL.test(label)) return label;
127
+ function hourText(date, locale, timeZone) {
128
+ const wall = dateFormat(locale, STYLES.hour, timeZone);
129
+ const text = wall.format(date);
130
+ if (steady(date, timeZone)) return text;
131
+ const zone = twinsOf(date, timeZone).some((twin) => wall.format(twin) === text) ? zoneName(date, locale, timeZone) : void 0;
132
+ return zone === void 0 ? text : `${text} ${zone}`;
133
+ }
134
+ /**
135
+ * An hour bucket's name in a zone, the one name every table, list, drill and chart gives it:
136
+ * its date and clock time there, with the zone's short name where a clock change repeats the
137
+ * hour (`hourText`). With no zone to read it in it stays as sent: read in whatever zone the
138
+ * code runs in, a server and a browser would write it differently. So does an hour in a zone
139
+ * that is none, and a label that is not a time.
140
+ */
141
+ function nameHour(label, locale, timeZone) {
142
+ const instant = timeZone === void 0 ? void 0 : hourInstant(label);
143
+ if (instant === void 0) return label;
144
+ try {
145
+ return hourText(instant, locale, timeZone);
146
+ } catch (failure) {
147
+ if (failure instanceof RangeError) return label;
148
+ throw failure;
149
+ }
150
+ }
151
+ /**
152
+ * A time bucket's label for a person, the one name every table and chart gives it: "Nov 2" for
153
+ * a day or week, "Jun 2026" for a month or the month a (possibly fiscal) quarter starts. A date
154
+ * label names a calendar date, so it is formatted as that date, not as an instant in any zone.
155
+ * An hour's label is an instant, named in the zone given by `nameHour`, and left as sent with
156
+ * none.
157
+ */
158
+ function formatBucket(label, grain, locale, at = {}) {
159
+ if (grain === "hour") return nameHour(label, locale, at.timeZone);
160
+ if (!isDateOnly(label)) return label;
48
161
  const [year = 0, month = 1, day = 1] = label.split("-").map(Number);
49
162
  const date = /* @__PURE__ */ new Date(0);
50
163
  date.setUTCFullYear(year, month - 1, day);
51
- return dateFormat(locale, styleFor(grain, withYear), "UTC").format(date);
164
+ return dateFormat(locale, styleFor(grain, at.withYear), "UTC").format(date);
52
165
  }
53
166
  /** An instant (text time to the microsecond) as a date and time, in a zone (the dashboard's) or the viewer's own. */
54
167
  function formatInstant(text, locale, timeZone) {
55
- const date = new Date(text.replace(/(\.\d{3})\d+/u, "$1"));
56
- if (Number.isNaN(date.getTime())) return text;
57
- return dateFormat(locale, "hour", timeZone).format(date);
168
+ const date = instantOf(text);
169
+ return date === void 0 ? text : dateFormat(locale, STYLES.hour, timeZone).format(date);
58
170
  }
59
171
  /**
60
172
  * The bucket an instant starts, named at its grain in a zone, as a chart names it: "Nov 9" for
61
- * a day or week, "Jul 2026" for a month, and a date with its clock time for an hour. A text
62
- * that is not a time is given back as it is, as `formatInstant` gives it.
173
+ * a day or week, "Jul 2026" for a month, and a date with its clock time for an hour, with its
174
+ * zone's short name where a clock change repeats that hour. A time that names no zone of its
175
+ * own is read as UTC, never in the zone the code runs in. A text that is not a time is given
176
+ * back as it is, as `formatInstant` gives it.
63
177
  */
64
178
  function formatInstantAt(text, grain, locale, timeZone) {
65
- const date = new Date(text.replace(/(\.\d{3})\d+/u, "$1"));
66
- if (Number.isNaN(date.getTime())) return text;
179
+ const date = instantOf(text);
180
+ if (date === void 0) return text;
181
+ if (grain === "hour") return hourText(date, locale, timeZone);
67
182
  return dateFormat(locale, styleFor(grain), timeZone).format(date);
68
183
  }
69
- /** The included calendar days in a receipt, shared by tiles and every drill view. */
184
+ /**
185
+ * The included calendar days in a receipt, shared by tiles and every drill view: its first day
186
+ * to its last, or the one day when it is one ("Nov 1", not "Nov 1 to Nov 1").
187
+ */
70
188
  function formatPeriod(range, format, timeZone) {
71
189
  const last = lastIncludedMillisecond(range);
72
- if (last === void 0) return format.messages.noData;
73
- const first = new Date(range.from);
74
- const year = dateFormat(format.locale, "year", timeZone);
190
+ const first = instantOf(range.from);
191
+ if (last === void 0 || first === void 0) return format.messages.noData;
192
+ const year = dateFormat(format.locale, STYLES.year, timeZone);
75
193
  const crossesYear = year.format(first) !== year.format(last);
76
194
  const day = dateFormat(format.locale, styleFor("day", crossesYear), timeZone);
77
- return format.messages.drillRange(day.format(first), day.format(last));
195
+ const [from, to] = [day.format(first), day.format(last)];
196
+ return from === to ? from : format.messages.drillRange(from, to);
78
197
  }
79
- export { formatBucket, formatInstant, formatInstantAt, formatPeriod };
198
+ export { dateFormat, formatBucket, formatInstant, formatInstantAt, formatPeriod, instantOf };
@@ -1,13 +1,13 @@
1
1
  import { CellFormat } from "./messages.mjs";
2
2
  import { formatBucket, formatInstant, formatInstantAt } from "./format-time.mjs";
3
- import { ResultCell, ResultColumn } from "derive-dashboards/core";
3
+ import { NumberShape, ResultCell, ResultColumn } from "derive-dashboards/core";
4
4
  /**
5
5
  * A number for drawing. Exact values stay strings everywhere else; a chart needs a number
6
6
  * for the pixel position only, never for a label.
7
7
  */
8
8
  export declare function plotValue(cell: ResultCell): number | null;
9
9
  /** What formatting reads of a column: its type, and a time bucket's grain or a money unit. */
10
- type Shape = Pick<ResultColumn, "type" | "grain" | "unit" | "format" | "signed" | "fraction">;
10
+ export type Shape = Pick<ResultColumn, "id" | "role" | "type" | "grain" | "unit" | "format" | "signed" | "fraction"> & Pick<NumberShape, "beside">;
11
11
  /**
12
12
  * A cell as text for a person, in their locale and words. A renderer can pass its own props as
13
13
  * `format`: they carry both.
@@ -17,5 +17,5 @@ export declare function formatCell(cell: ResultCell, column?: Partial<Shape>, fo
17
17
  * A short axis label: 12K, $1.25M, 0.025. A tick is written in three figures, which hold
18
18
  * every round step an axis takes, so no two ticks read alike and none reads off its line.
19
19
  */
20
- export declare function formatTick(value: number, column?: ResultColumn, locale?: string): string;
20
+ export declare function formatTick(value: number, column?: Partial<Shape>, locale?: string): string;
21
21
  export { formatBucket, formatInstant, formatInstantAt };
@@ -1,12 +1,23 @@
1
- import { digitsFor, fine, lost, percentDigits, tickDigits } from "./digits.mjs";
1
+ import { isNumberValue } from "./columns.mjs";
2
2
  import { formatBucket, formatInstant, formatInstantAt } from "./format-time.mjs";
3
- import { ENGLISH } from "./english.mjs";
4
- import { plainOf, plainText } from "./renderers/exact.mjs";
5
- import { isMark } from "derive-dashboards/core";
3
+ import { cellDigits, isMark, numberWriters } from "derive-dashboards/core";
6
4
  // src/format.ts
7
- function currencyOf(unit) {
8
- return unit !== void 0 && /^[A-Z]{3}$/u.test(unit) ? unit : void 0;
9
- }
5
+ /** The kit's number writer for each locale, made once: a table writes every cell by one. */
6
+ const writerIn = numberWriters();
7
+ /**
8
+ * The words a cell is written with: a gap, Other, a total, a group with none, true and false.
9
+ * `formatCell`'s default and part of `ENGLISH`, held apart so a chart tile brings these words,
10
+ * not the whole catalog.
11
+ */
12
+ const ENGLISH_CELL = {
13
+ other: "Other",
14
+ total: "Total",
15
+ empty: "None",
16
+ noValue: "–",
17
+ drillNone: (field) => `No ${field.toLowerCase()}`,
18
+ drillYes: "Yes",
19
+ drillNo: "No"
20
+ };
10
21
  /**
11
22
  * A number for drawing. Exact values stay strings everywhere else; a chart needs a number
12
23
  * for the pixel position only, never for a label.
@@ -17,6 +28,8 @@ function plotValue(cell) {
17
28
  const value = Number(typeof cell === "string" ? cell : cell.v);
18
29
  return Number.isFinite(value) ? value : null;
19
30
  }
31
+ /** Whether a cell is a total's mark: it stands for every group of its column. */
32
+ const isTotal = (cell) => cell !== void 0 && isMark(cell) && cell.mark === "all";
20
33
  /** The unformatted key used for group matching, lexical sorting and template links. */
21
34
  function rawCellText(cell) {
22
35
  if (cell === void 0 || cell === null || isMark(cell)) return void 0;
@@ -31,132 +44,32 @@ function groupText(cell, column, format) {
31
44
  * `format`: they carry both.
32
45
  */
33
46
  function formatCell(cell, column, format = {}) {
34
- const { locale, messages = ENGLISH } = format;
47
+ const { locale, messages = ENGLISH_CELL } = format;
35
48
  if (cell === null) return messages.noValue;
36
- if (isMark(cell)) return cell.mark === "all" ? messages.total : messages.other;
37
- if (typeof cell === "string") return formatText(cell, column, locale, format.timeZone);
49
+ if (isMark(cell)) return isTotal(cell) ? messages.total : messages.other;
38
50
  if (typeof cell === "boolean") return cell ? messages.drillYes : messages.drillNo;
39
- return numberText(cell, column, locale);
40
- }
41
- /** Number formats by locale and style: making one costs fifty times a format, and a table or a chart would make one for every cell. */
42
- const FORMATS = /* @__PURE__ */ new Map();
43
- /** The number format for a locale and a style, made once. */
44
- function numberFormat(locale, style) {
45
- const key = `${locale ?? ""}|${JSON.stringify(style)}`;
46
- const made = FORMATS.get(key) ?? new Intl.NumberFormat(locale, {
47
- signDisplay: "negative",
48
- ...style
49
- });
50
- FORMATS.set(key, made);
51
- return made;
51
+ if (typeof cell !== "string") return writerIn(locale).text(cell, column);
52
+ const sent = numberSent(cell, column);
53
+ if (sent === void 0) return formatText(cell, column, locale, format.timeZone);
54
+ return writerIn(locale).text(sent, column);
52
55
  }
53
- /** A number by its column's format: a percent, a duration, money or a plain number. */
54
- function numberText(cell, column, locale) {
55
- if (column?.format === "percent") return percentText(cell, {
56
- signed: column.signed === true,
57
- fraction: column.fraction === true
58
- }, locale);
59
- if (column?.format === "duration") return durationText(typeof cell === "number" ? cell : Number(cell.v), locale);
60
- const currency = currencyOf(column?.unit);
61
- const style = currency === void 0 ? {} : {
62
- style: "currency",
63
- currency
64
- };
65
- if (typeof cell === "number") return numberFormat(locale, {
66
- ...digitsFor(cell, 2),
67
- ...style
68
- }).format(cell);
69
- return exactText(cell.v, currency, locale);
70
- }
71
- /**
72
- * A value in percent points (42.5) as a percent (42.5%). Exact digits move two places as text,
73
- * so Intl formats them without a float.
74
- */
75
- function percentText(cell, how, locale) {
76
- const { signed } = how;
77
- const shift = how.fraction ? "" : "E-2";
78
- const style = {
79
- style: "percent",
80
- ...percentDigits(weigh(cell), how.fraction ? 1 : 100),
81
- signDisplay: signed ? "exceptZero" : "negative"
82
- };
83
- const digits = typeof cell === "number" ? floatText(cell) : plainText(cell.v) ?? cell.v;
84
- return numberFormat(locale, style).format(`${digits}${shift}`);
85
- }
86
- /**
87
- * A cell's value as a float, for choosing its digits only. An exact text too small for a
88
- * float, yet not zero, weighs as the smallest float there is, so it is never taken for zero;
89
- * the digits written are still the text's own.
90
- */
91
- function weigh(cell) {
92
- if (typeof cell === "number") return cell;
93
- const value = Number(cell.v);
94
- const digits = cell.v.split(/e/iu)[0] ?? "";
95
- return value === 0 && /[1-9]/u.test(digits) ? Number.MIN_VALUE : value;
96
- }
97
- /** A float as text Intl reads: its plain decimal digits, or what it is called when it is not a finite number. */
98
- const floatText = (value) => Number.isFinite(value) ? plainOf(value) : String(value);
99
- const DURATION_UNITS = [
100
- ["day", 86400],
101
- ["hour", 3600],
102
- ["minute", 60],
103
- ["second", 1]
104
- ];
105
- /** Seconds in the largest unit that keeps the value at one or more: 90 is "1.5 min". A tick keeps three figures (75 is "1.25 min"). */
106
- function durationText(seconds, locale, tick = false) {
107
- const size = Math.abs(seconds);
108
- const [unit, per] = DURATION_UNITS.find(([, n]) => size >= n) ?? ["second", 1];
109
- return numberFormat(locale, {
110
- style: "unit",
111
- unit,
112
- unitDisplay: "short",
113
- ...tick ? tickDigits(seconds / per, 1) : digitsFor(seconds / per, 1)
114
- }).format(seconds / per);
56
+ /** Decimal text as a driver may write it: a plus before it, a point with no digit before or after it. */
57
+ const plain = (text) => text.trim().replace(/^\+/u, "").replace(/^(-?)\./u, "$10.").replace(/\.$/u, "");
58
+ /** A value a driver sent as its text, in a measure or a calc of numbers: its digits, to be written as any number is. */
59
+ function numberSent(text, column) {
60
+ const digits = isNumberValue(column) && /\d/u.test(text) ? cellDigits(plain(text)) : void 0;
61
+ return digits === void 0 ? void 0 : { v: digits };
115
62
  }
116
63
  /** A text cell: a time bucket's label, an instant (in the dashboard's zone when given), or the text itself. */
117
64
  function formatText(text, column, locale, timeZone) {
118
- if (column?.grain !== void 0) return formatBucket(text, column.grain, locale);
65
+ if (column?.grain !== void 0) return formatBucket(text, column.grain, locale, { timeZone });
119
66
  return column?.type === "time" ? formatInstant(text, locale, timeZone) : text;
120
67
  }
121
- /** Decimal text in the viewer's locale, exactly: Intl formats the digits, never a float. */
122
- function exactText(text, currency, locale) {
123
- const cents = text.split(".")[1] ?? "";
124
- const style = currency === void 0 ? {} : {
125
- style: "currency",
126
- currency
127
- };
128
- const places = /^0*$/u.test(cents) ? 0 : currency === void 0 ? Math.min(cents.length, 2) : 2;
129
- const size = Math.abs(weigh({ v: text }));
130
- const written = numberFormat(locale, {
131
- ...lost(size, places) ? fine(size) : {
132
- minimumFractionDigits: places,
133
- maximumFractionDigits: places
134
- },
135
- ...style
136
- }).format(text);
137
- return written.includes("∞") ? text : written;
138
- }
139
68
  /**
140
69
  * A short axis label: 12K, $1.25M, 0.025. A tick is written in three figures, which hold
141
70
  * every round step an axis takes, so no two ticks read alike and none reads off its line.
142
71
  */
143
72
  function formatTick(value, column, locale) {
144
- if (column?.format === "percent") {
145
- const [whole, shift] = column.fraction === true ? [1, ""] : [100, "E-2"];
146
- return numberFormat(locale, {
147
- style: "percent",
148
- ...tickDigits(value, whole)
149
- }).format(`${floatText(value)}${shift}`);
150
- }
151
- if (column?.format === "duration") return durationText(value, locale, true);
152
- const currency = currencyOf(column?.unit);
153
- const style = currency === void 0 ? {} : {
154
- style: "currency",
155
- currency
156
- };
157
- return numberFormat(locale, {
158
- ...tickDigits(value, 1),
159
- ...style
160
- }).format(value);
73
+ return writerIn(locale).tick(value, column);
161
74
  }
162
- export { formatBucket, formatCell, formatInstant, formatInstantAt, formatTick, groupText, plotValue, rawCellText };
75
+ export { ENGLISH_CELL, formatBucket, formatCell, formatInstant, formatInstantAt, formatTick, groupText, isTotal, numberSent, plotValue, rawCellText, writerIn };
@@ -0,0 +1,12 @@
1
+ import { Shape } from "./format.mjs";
2
+ import { CellFormat } from "./messages.mjs";
3
+ import { ResultCell } from "derive-dashboards/core";
4
+ /**
5
+ * A cell as a tile's headline, the one number it is read by. An amount or a plain number of a
6
+ * thousand or more is written in whole units, rounded: $1,487,340 for 1487340.03. A rate of
7
+ * ten percent or more keeps a tenth of a point: 25.2%. Anything else is written as
8
+ * `formatCell` writes it, which is also how a headline is written in full.
9
+ * A figure that stands beside the headline (its change, the period before) passes the
10
+ * headline as `headline` and is written in its places: "1,981" then "+249 from 1,732".
11
+ */
12
+ export declare function formatHeadline(cell: ResultCell, column?: Partial<Shape>, format?: CellFormat, headline?: ResultCell): string;
@@ -0,0 +1,107 @@
1
+ import { formatCell, numberSent, writerIn } from "./format.mjs";
2
+ import { compareExact } from "./renderers/exact.mjs";
3
+ import { cellDigits, currencyOf, displayOf, signOf } from "derive-dashboards/core";
4
+ // src/headline.ts
5
+ /**
6
+ * From this size a headline is written in whole units: $205.35 reads as an amount, the cents
7
+ * of $1,487,340.03 as noise. It is the least amount two places write as a thousand, so no
8
+ * headline reads "$1,000.00" beside one that reads "$1,000".
9
+ */
10
+ const WHOLE_FROM = "999.995";
11
+ /** A number's digits when it is of the size written whole: a thousand or more, either side of nothing. */
12
+ function wholeDigits(cell, column) {
13
+ const digits = digitsOf(cell, column);
14
+ return digits !== void 0 && compareExact(digits.replace("-", ""), WHOLE_FROM) >= 0 ? digits : void 0;
15
+ }
16
+ /** A cell's digits as decimal text, a number a driver sent as text among them; none for what is no number. */
17
+ const digitsOf = (cell, column) => typeof cell === "string" ? numberSent(cell, column)?.v : cellDigits(cell);
18
+ /**
19
+ * The percents whose headline keeps a tenth of a point: from ten to under a thousand. Below
20
+ * ten every percent is written to a tenth, or to its first figures, already, and so is one
21
+ * that rounds up to ten (9.96 is "10.0%" in a cell, which a headline must not say less than);
22
+ * from a thousand a tenth of a point is noise, as cents are from a thousand dollars.
23
+ */
24
+ const TENTHS = {
25
+ from: 10,
26
+ under: 999.95
27
+ };
28
+ /** Whether a percent's headline keeps a tenth of a point (`TENTHS`), by its digits. */
29
+ function keepsTenth(digits, fraction) {
30
+ const points = Math.abs(Number(digits)) * (fraction ? 100 : 1);
31
+ return points >= TENTHS.from && points < TENTHS.under;
32
+ }
33
+ /** The style of a rate's headline: at most a tenth of a point, a whole rate whole, signed as its column says (core's `signOf`). */
34
+ const rateStyle = (column) => ({
35
+ style: "percent",
36
+ minimumFractionDigits: 0,
37
+ maximumFractionDigits: 1,
38
+ ...signOf(column)
39
+ });
40
+ /**
41
+ * A rate as a headline, from ten percent to under a thousand: to a tenth of a point (25.2%),
42
+ * where a cell keeps whole percents. A tile's rate is read against what it was, and half a
43
+ * point is a change to see in both; a whole rate is written whole (25%). Null for a smaller
44
+ * or a larger rate, written as everywhere, or for what is no number.
45
+ */
46
+ function rateText(cell, column, writer) {
47
+ const digits = digitsOf(cell, column);
48
+ const fraction = column.fraction === true;
49
+ if (digits === void 0 || !keepsTenth(digits, fraction)) return null;
50
+ const shifted = `${digits}${fraction ? "" : "E-2"}`;
51
+ const written = writer.styled(rateStyle(column), shifted);
52
+ return written.includes("∞") ? null : written;
53
+ }
54
+ /** Whether a column's numbers can be written in whole units at all: not a percent or a duration, nor a currency of three places. */
55
+ const takesWhole = (column, locale) => column?.format !== "percent" && column?.format !== "duration" && writerIn(locale).places(currencyOf(column?.unit)) <= 2;
56
+ /**
57
+ * A cell in whole units, rounded, when it is an amount or a plain number of a thousand or
58
+ * more: $1,487,340 for 1487340.03. Null for anything else, and for an amount past what Intl
59
+ * holds, whose own digits are the truth.
60
+ */
61
+ function wholeText(cell, column, format, headline = cell) {
62
+ const digits = takesWhole(column, format.locale) && wholeDigits(headline, column) !== void 0 ? digitsOf(cell, column) : void 0;
63
+ if (digits === void 0) return null;
64
+ const currency = currencyOf(column?.unit);
65
+ const style = currency === void 0 ? {} : {
66
+ style: "currency",
67
+ currency
68
+ };
69
+ const whole = {
70
+ minimumFractionDigits: 0,
71
+ maximumFractionDigits: 0,
72
+ ...signOf(column ?? {})
73
+ };
74
+ const written = writerIn(format.locale).styled({
75
+ ...whole,
76
+ ...style
77
+ }, digits);
78
+ return written.includes("∞") ? null : written;
79
+ }
80
+ /**
81
+ * A cell as a tile's headline, the one number it is read by. An amount or a plain number of a
82
+ * thousand or more is written in whole units, rounded: $1,487,340 for 1487340.03. A rate of
83
+ * ten percent or more keeps a tenth of a point: 25.2%. Anything else is written as
84
+ * `formatCell` writes it, which is also how a headline is written in full.
85
+ * A figure that stands beside the headline (its change, the period before) passes the
86
+ * headline as `headline` and is written in its places: "1,981" then "+249 from 1,732".
87
+ */
88
+ function formatHeadline(cell, column, format = {}, headline = cell) {
89
+ const rate = column?.format === "percent" ? rateText(cell, column, writerIn(format.locale)) : null;
90
+ return wholeText(cell, column, format, headline) ?? rate ?? formatCell(cell, column, format);
91
+ }
92
+ /**
93
+ * A headline's value in full, a pointer away from it: as a cell writes it (an amount with its
94
+ * cents), except a rate, whose headline says more than a cell does (25.2% for 25%) and is its
95
+ * own value in full.
96
+ */
97
+ function formatFull(cell, column, format = {}) {
98
+ return (column?.format === "percent" ? rateText(cell, column, writerIn(format.locale)) : null) ?? formatCell(cell, column, format);
99
+ }
100
+ /**
101
+ * How a number tile writes its large value, and what that value is read against (the period
102
+ * before): in full where its widget asks (`display.full`), else as a headline. In full is
103
+ * `formatFull`: an amount with its cents, and a rate with the tenth its headline has, never the
104
+ * whole percent of a cell, which says less than the headline does.
105
+ */
106
+ const headlineWriterOf = (widget) => displayOf("number", widget.display).full === true ? formatFull : formatHeadline;
107
+ export { digitsOf, formatFull, formatHeadline, headlineWriterOf, takesWhole, wholeDigits, wholeText };
@@ -1,53 +1,56 @@
1
1
  import { ItemFor } from "./drill/item-type.mjs";
2
+ import { bucketName } from "./bucket-name.mjs";
3
+ import { ENGLISH_FILTERS, FilterWords } from "./filters/words.mjs";
2
4
  import { WidgetPreview } from "./builder/Preview.mjs";
5
+ import { ENGLISH } from "./english.mjs";
3
6
  import { Builder, useBuilder } from "./builder/useBuilder.mjs";
4
- import { WidgetBuilder, WidgetBuilderProps } from "./builder/WidgetBuilder.mjs";
5
- import { DashboardsError, DashboardsErrorCode } from "./errors.mjs";
7
+ import { WidgetBuilderProps } from "./builder/WidgetBuilder.mjs";
6
8
  import { ClientOptions, DashboardsClient, DashboardsServer, TypedCall, createDashboardsClient } from "./client.mjs";
7
- import { Components, DashboardsProvider, DashboardsProviderProps, LinkComponent, LinkProps, useDashboards } from "./context.mjs";
8
- import { ENGLISH_FILTERS, FilterWords } from "./filters/words.mjs";
9
+ import { Components, DashboardRead, DashboardsProvider, DashboardsProviderProps, LinkComponent, LinkProps, ServedTiles, useDashboards } from "./context.mjs";
10
+ import { Dashboard, DashboardProps } from "./Dashboard.mjs";
11
+ import { DashboardsError, DashboardsErrorCode } from "./errors.mjs";
12
+ import { DashboardList } from "./DashboardList.mjs";
13
+ import { Attempt, DraftClosed, DraftEditor, DraftStatus, useDraft } from "./draft.mjs";
9
14
  import { FilterBarOptions, FilterIcon } from "./filters/context.mjs";
10
15
  import { FilterBarProps, fieldOf, useControlValues, useFilterFields } from "./filters/hooks.mjs";
11
16
  import { FilterBar } from "./filters/bar.mjs";
12
17
  import { Popover } from "./filters/popover.mjs";
18
+ import { formatBucket, formatInstant, formatInstantAt } from "./format-time.mjs";
13
19
  import { rules_d_exports } from "./filters/rules.mjs";
14
- import { Dashboard, DashboardProps } from "./Dashboard.mjs";
15
- import { DashboardList } from "./DashboardList.mjs";
16
- import { Attempt, DraftClosed, DraftEditor, DraftStatus, useDraft } from "./draft.mjs";
17
- import { ENGLISH } from "./english.mjs";
18
20
  import { DashboardDrillProps, DrillEvent } from "./drill/board.mjs";
19
21
  import { DashboardTile, DashboardTileProps } from "./drill/DashboardTile.mjs";
20
22
  import { DrillPanelProps } from "./drill/DrillPanel.mjs";
21
- import { TileRenderer, TileRendererProps } from "./renderers/props.mjs";
22
- import { exactDigits } from "./renderers/exact.mjs";
23
- import { TableTile } from "./renderers/table.mjs";
24
23
  import { ItemHelpers, ItemOptions } from "./drill/Items.mjs";
24
+ import { TileRenderer, TileRendererProps, fitted } from "./renderers/props.mjs";
25
+ import { TableTile } from "./renderers/table.mjs";
25
26
  import { DrillPanel } from "./drill/lazy.mjs";
26
27
  import { DrillMarkProps, TileDrill } from "./drill/props.mjs";
27
28
  import { DrillChange, DrillHistory, drillFrom } from "./drill/state.mjs";
28
29
  import { DrillController, DrillOptions, useDrill } from "./drill/useDrill.mjs";
29
30
  import { DrillMessages, ENGLISH_DRILL } from "./drill/words.mjs";
30
- import { EditBar } from "./EditBar.mjs";
31
+ import { WidgetBuilder } from "./Editing.mjs";
31
32
  import { csvOf, exportRows } from "./export/csv.mjs";
32
33
  import { downloadCsv } from "./export/download.mjs";
33
34
  import "./FilterBar.mjs";
34
35
  import { formatCell, formatTick, plotValue } from "./format.mjs";
35
- import { HistoryPanel, VersionBar } from "./History.mjs";
36
+ import { formatHeadline } from "./headline.mjs";
36
37
  import { CellFormat, ChartKind, Messages } from "./messages.mjs";
37
38
  import { ChangeList, Panel } from "./Panel.mjs";
38
- import { ReviewPanel } from "./ReviewPanel.mjs";
39
+ import { EditBar, HistoryPanel, ReviewPanel, VersionBar } from "./Parts.mjs";
39
40
  import { ClientSchemas } from "./read.mjs";
40
41
  import { answerIds } from "./renderers/entries.mjs";
41
- import { NumberTile } from "./renderers/index.mjs";
42
+ import { BUILTIN_RENDERERS, NumberTile, headlineColumn } from "./renderers/index.mjs";
42
43
  import { ListDisplay, ListTile } from "./renderers/list.mjs";
43
- import { formatBucket, formatInstant, formatInstantAt } from "./format-time.mjs";
44
44
  import { Moved, Review, useReview } from "./review.mjs";
45
45
  import { ENGLISH_REVIEW, ReviewMessages } from "./review-words.mjs";
46
+ import { Roving } from "./roving.mjs";
47
+ import { useSaysDates } from "./says-dates.mjs";
46
48
  import { SeriesSlotsContext } from "./scope.mjs";
47
49
  import { Drawn, OTHER_KEY, Point, Series, lastBucketOpen, toSeries } from "./series.mjs";
48
50
  import { pointCell, pointText, rowAt } from "./series-points.mjs";
49
51
  import { SeriesSlots, SplitSeries, chartColors, seriesSlots } from "./series-slots.mjs";
50
52
  import { Tile } from "./Tile.mjs";
53
+ import { tapOpens, useTapPreview } from "./touch.mjs";
51
54
  import { useBoard } from "./useBoard.mjs";
52
55
  import { useDashboard } from "./useDashboard.mjs";
53
56
  import { useTiles } from "./useTiles.mjs";
@@ -63,4 +66,4 @@ export interface Register {}
63
66
  export type Item = Register extends {
64
67
  server: infer S;
65
68
  } ? ItemFor<S> : DrillItem;
66
- export { type Attempt, type Builder, type CellFormat, ChangeList, type ChartKind, type ClientOptions, type ClientSchemas, type Components, Dashboard, type DashboardDrillProps, DashboardList, type DashboardProps, DashboardTile, type DashboardTileProps, type DashboardsClient, DashboardsError, type DashboardsErrorCode, DashboardsProvider, type DashboardsProviderProps, type DashboardsServer, type DraftClosed, type DraftEditor, type DraftStatus, type Drawn, type DrillChange, type DrillController, type DrillEvent, type DrillHistory, type DrillMarkProps, type DrillMessages, type DrillOptions, DrillPanel, type DrillPanelProps, ENGLISH, ENGLISH_DRILL, ENGLISH_FILTERS, ENGLISH_REVIEW, EditBar, FilterBar, type FilterBarOptions, type FilterBarProps, type FilterIcon, type FilterWords, HistoryPanel, type ItemFor, type ItemHelpers, type ItemOptions, type LinkComponent, type LinkProps, type ListDisplay, ListTile, type Messages, type Moved, NumberTile, OTHER_KEY, Panel, type Point, Popover, type Review, type ReviewMessages, ReviewPanel, type Series, type SeriesSlots, SeriesSlotsContext, type SplitSeries, TableTile, Tile, type TileDrill, type TileRenderer, type TileRendererProps, type TypedCall, VersionBar, type ViewChange, WidgetBuilder, type WidgetBuilderProps, WidgetPreview, answerIds, chartColors, createDashboardsClient, csvOf, downloadCsv, drillFrom, exactDigits, exportRows, fieldOf, rules_d_exports as filterRules, formatBucket, formatCell, formatInstant, formatInstantAt, formatTick, lastBucketOpen, plotValue, pointCell, pointText, rowAt, seriesSlots, toSeries, useBoard, useBuilder, useControlValues, useDashboard, useDashboards, useDraft, useDrill, useFilterFields, useReview, useTiles };
69
+ export { type Attempt, BUILTIN_RENDERERS, type Builder, type CellFormat, ChangeList, type ChartKind, type ClientOptions, type ClientSchemas, type Components, Dashboard, type DashboardDrillProps, DashboardList, type DashboardProps, type DashboardRead, DashboardTile, type DashboardTileProps, type DashboardsClient, DashboardsError, type DashboardsErrorCode, DashboardsProvider, type DashboardsProviderProps, type DashboardsServer, type DraftClosed, type DraftEditor, type DraftStatus, type Drawn, type DrillChange, type DrillController, type DrillEvent, type DrillHistory, type DrillMarkProps, type DrillMessages, type DrillOptions, DrillPanel, type DrillPanelProps, ENGLISH, ENGLISH_DRILL, ENGLISH_FILTERS, ENGLISH_REVIEW, EditBar, FilterBar, type FilterBarOptions, type FilterBarProps, type FilterIcon, type FilterWords, HistoryPanel, type ItemFor, type ItemHelpers, type ItemOptions, type LinkComponent, type LinkProps, type ListDisplay, ListTile, type Messages, type Moved, NumberTile, OTHER_KEY, Panel, type Point, Popover, type Review, type ReviewMessages, ReviewPanel, Roving, type Series, type SeriesSlots, SeriesSlotsContext, type ServedTiles, type SplitSeries, TableTile, Tile, type TileDrill, type TileRenderer, type TileRendererProps, type TypedCall, VersionBar, type ViewChange, WidgetBuilder, type WidgetBuilderProps, WidgetPreview, answerIds, bucketName, chartColors, createDashboardsClient, csvOf, downloadCsv, drillFrom, exportRows, fieldOf, rules_d_exports as filterRules, fitted, formatBucket, formatCell, formatHeadline, formatInstant, formatInstantAt, formatTick, headlineColumn, lastBucketOpen, plotValue, pointCell, pointText, rowAt, seriesSlots, tapOpens, toSeries, useBoard, useBuilder, useControlValues, useDashboard, useDashboards, useDraft, useDrill, useFilterFields, useReview, useSaysDates, useTapPreview, useTiles };