derive-dashboards 0.5.1 → 0.7.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 (342) hide show
  1. package/README.md +4 -2
  2. package/dist/body.mjs +2 -2
  3. package/dist/charts/data/buckets.d.mts +11 -0
  4. package/dist/charts/data/buckets.mjs +66 -0
  5. package/dist/charts/data/clean.mjs +55 -0
  6. package/dist/charts/data/format.d.mts +19 -0
  7. package/dist/charts/data/format.mjs +174 -0
  8. package/dist/charts/data/input-error.d.mts +5 -0
  9. package/dist/charts/data/input-error.mjs +11 -0
  10. package/dist/charts/data/range.mjs +14 -0
  11. package/dist/charts/data/rows.d.mts +13 -0
  12. package/dist/charts/data/rows.mjs +31 -0
  13. package/dist/charts/data/shares.mjs +55 -0
  14. package/dist/charts/data/types.d.mts +106 -0
  15. package/dist/charts/data/words.d.mts +44 -0
  16. package/dist/charts/data/words.mjs +31 -0
  17. package/dist/charts/describe.mjs +110 -0
  18. package/dist/charts/index.d.mts +34 -0
  19. package/dist/charts/index.mjs +24 -0
  20. package/dist/charts/kinds/area-marks.mjs +120 -0
  21. package/dist/charts/kinds/area.d.mts +23 -0
  22. package/dist/charts/kinds/area.mjs +71 -0
  23. package/dist/charts/kinds/bars-data.d.mts +11 -0
  24. package/dist/charts/kinds/bars-data.mjs +30 -0
  25. package/dist/charts/kinds/bars-layout.mjs +30 -0
  26. package/dist/charts/kinds/bars-marks.mjs +93 -0
  27. package/dist/charts/kinds/bars-words.mjs +56 -0
  28. package/dist/charts/kinds/bars.d.mts +17 -0
  29. package/dist/charts/kinds/bars.mjs +68 -0
  30. package/dist/charts/kinds/columns-data.mjs +116 -0
  31. package/dist/charts/kinds/columns-layout.mjs +29 -0
  32. package/dist/charts/kinds/columns-marks.mjs +200 -0
  33. package/dist/charts/kinds/columns-words.mjs +26 -0
  34. package/dist/charts/kinds/columns.d.mts +13 -0
  35. package/dist/charts/kinds/columns.mjs +80 -0
  36. package/dist/charts/kinds/dumbbell-data.d.mts +22 -0
  37. package/dist/charts/kinds/dumbbell-data.mjs +59 -0
  38. package/dist/charts/kinds/dumbbell-layout.mjs +113 -0
  39. package/dist/charts/kinds/dumbbell-marks.mjs +119 -0
  40. package/dist/charts/kinds/dumbbell-words.d.mts +7 -0
  41. package/dist/charts/kinds/dumbbell-words.mjs +94 -0
  42. package/dist/charts/kinds/dumbbell.d.mts +14 -0
  43. package/dist/charts/kinds/dumbbell.mjs +67 -0
  44. package/dist/charts/kinds/funnel-data.d.mts +11 -0
  45. package/dist/charts/kinds/funnel-data.mjs +70 -0
  46. package/dist/charts/kinds/funnel-layout.mjs +32 -0
  47. package/dist/charts/kinds/funnel-marks.mjs +204 -0
  48. package/dist/charts/kinds/funnel-words.mjs +77 -0
  49. package/dist/charts/kinds/funnel.d.mts +11 -0
  50. package/dist/charts/kinds/funnel.mjs +75 -0
  51. package/dist/charts/kinds/grid-data.d.mts +18 -0
  52. package/dist/charts/kinds/grid-data.mjs +35 -0
  53. package/dist/charts/kinds/grid-layout.mjs +77 -0
  54. package/dist/charts/kinds/grid-marks.mjs +140 -0
  55. package/dist/charts/kinds/grid-time.mjs +41 -0
  56. package/dist/charts/kinds/grid-words.mjs +86 -0
  57. package/dist/charts/kinds/grid.d.mts +22 -0
  58. package/dist/charts/kinds/grid.mjs +55 -0
  59. package/dist/charts/kinds/histogram-data.mjs +142 -0
  60. package/dist/charts/kinds/histogram-layout.mjs +144 -0
  61. package/dist/charts/kinds/histogram-marks.mjs +110 -0
  62. package/dist/charts/kinds/histogram-words.mjs +104 -0
  63. package/dist/charts/kinds/histogram.d.mts +15 -0
  64. package/dist/charts/kinds/histogram.mjs +47 -0
  65. package/dist/charts/kinds/line-marks.mjs +36 -0
  66. package/dist/charts/kinds/line.d.mts +17 -0
  67. package/dist/charts/kinds/line.mjs +52 -0
  68. package/dist/charts/kinds/multiples-grid.mjs +107 -0
  69. package/dist/charts/kinds/multiples-head.mjs +44 -0
  70. package/dist/charts/kinds/multiples-layout.mjs +159 -0
  71. package/dist/charts/kinds/multiples-marks.mjs +95 -0
  72. package/dist/charts/kinds/multiples-words.mjs +110 -0
  73. package/dist/charts/kinds/multiples.d.mts +26 -0
  74. package/dist/charts/kinds/multiples.mjs +42 -0
  75. package/dist/charts/kinds/row-chart.mjs +112 -0
  76. package/dist/charts/kinds/row-marks.mjs +121 -0
  77. package/dist/charts/kinds/scatter-data.d.mts +18 -0
  78. package/dist/charts/kinds/scatter-data.mjs +123 -0
  79. package/dist/charts/kinds/scatter-layout.mjs +189 -0
  80. package/dist/charts/kinds/scatter-marks.mjs +149 -0
  81. package/dist/charts/kinds/scatter-words.mjs +80 -0
  82. package/dist/charts/kinds/scatter.d.mts +21 -0
  83. package/dist/charts/kinds/scatter.mjs +72 -0
  84. package/dist/charts/kinds/stat-data.mjs +91 -0
  85. package/dist/charts/kinds/stat-layout.mjs +108 -0
  86. package/dist/charts/kinds/stat-marks.mjs +85 -0
  87. package/dist/charts/kinds/stat-words.mjs +57 -0
  88. package/dist/charts/kinds/stat.d.mts +28 -0
  89. package/dist/charts/kinds/stat.mjs +35 -0
  90. package/dist/charts/kinds/time-chart.mjs +74 -0
  91. package/dist/charts/kinds/time-frame.mjs +113 -0
  92. package/dist/charts/kinds/time-notes.mjs +36 -0
  93. package/dist/charts/kinds/time-plan.d.mts +8 -0
  94. package/dist/charts/kinds/time-plan.mjs +57 -0
  95. package/dist/charts/kinds/time-plot.mjs +56 -0
  96. package/dist/charts/kinds/time-stops.mjs +56 -0
  97. package/dist/charts/kinds/value-plot.mjs +33 -0
  98. package/dist/charts/kinds/waterfall-data.d.mts +7 -0
  99. package/dist/charts/kinds/waterfall-data.mjs +71 -0
  100. package/dist/charts/kinds/waterfall-layout.mjs +38 -0
  101. package/dist/charts/kinds/waterfall-marks.mjs +82 -0
  102. package/dist/charts/kinds/waterfall-words.mjs +118 -0
  103. package/dist/charts/kinds/waterfall.d.mts +17 -0
  104. package/dist/charts/kinds/waterfall.mjs +66 -0
  105. package/dist/charts/layout/boxes.mjs +28 -0
  106. package/dist/charts/layout/dodge.mjs +75 -0
  107. package/dist/charts/layout/extent.mjs +25 -0
  108. package/dist/charts/layout/frame.mjs +97 -0
  109. package/dist/charts/layout/place-labels.mjs +101 -0
  110. package/dist/charts/layout/stack.mjs +31 -0
  111. package/dist/charts/marks/axes.mjs +137 -0
  112. package/dist/charts/marks/dot.mjs +31 -0
  113. package/dist/charts/marks/end-labels.mjs +124 -0
  114. package/dist/charts/marks/legend.mjs +141 -0
  115. package/dist/charts/marks/lines.d.mts +2 -0
  116. package/dist/charts/marks/lines.mjs +38 -0
  117. package/dist/charts/marks/lit.d.mts +3 -0
  118. package/dist/charts/marks/lit.mjs +63 -0
  119. package/dist/charts/marks/more.mjs +18 -0
  120. package/dist/charts/marks/notes.mjs +253 -0
  121. package/dist/charts/marks/series-line.mjs +110 -0
  122. package/dist/charts/marks/thin.mjs +138 -0
  123. package/dist/charts/marks/x-axis.mjs +32 -0
  124. package/dist/charts/scale/calendar.mjs +174 -0
  125. package/dist/charts/scale/time-ticks.mjs +154 -0
  126. package/dist/charts/scale/time.mjs +33 -0
  127. package/dist/charts/scale/value.mjs +161 -0
  128. package/dist/charts/scene/defs.mjs +33 -0
  129. package/dist/charts/scene/markup.mjs +35 -0
  130. package/dist/charts/scene/nearest.d.mts +11 -0
  131. package/dist/charts/scene/nearest.mjs +49 -0
  132. package/dist/charts/scene/paint.d.mts +12 -0
  133. package/dist/charts/scene/paint.mjs +13 -0
  134. package/dist/charts/scene/svg.d.mts +18 -0
  135. package/dist/charts/scene/svg.mjs +185 -0
  136. package/dist/charts/scene/types.d.mts +177 -0
  137. package/dist/charts/text/measure.d.mts +9 -0
  138. package/dist/charts/text/measure.mjs +123 -0
  139. package/dist/charts/theme.d.mts +47 -0
  140. package/dist/charts/theme.mjs +239 -0
  141. package/dist/charts-react/Chart.d.mts +91 -0
  142. package/dist/charts-react/Chart.mjs +166 -0
  143. package/dist/charts-react/Overlay.mjs +171 -0
  144. package/dist/charts-react/Picture.mjs +22 -0
  145. package/dist/charts-react/Reader.mjs +147 -0
  146. package/dist/charts-react/bucket-names.mjs +29 -0
  147. package/dist/charts-react/chart-unlayered.css +1 -0
  148. package/dist/charts-react/chart-unlayered.css.d.ts +1 -0
  149. package/dist/charts-react/chart.css +1 -0
  150. package/dist/charts-react/chart.css.d.ts +1 -0
  151. package/dist/charts-react/events.mjs +72 -0
  152. package/dist/charts-react/exact-sum.mjs +24 -0
  153. package/dist/charts-react/from-answer.mjs +185 -0
  154. package/dist/charts-react/index.d.mts +3 -0
  155. package/dist/charts-react/index.mjs +4 -0
  156. package/dist/charts-react/keys.mjs +117 -0
  157. package/dist/charts-react/opens.mjs +28 -0
  158. package/dist/charts-react/plan-bars.mjs +95 -0
  159. package/dist/charts-react/plan-funnel.mjs +120 -0
  160. package/dist/charts-react/plan-grid.mjs +121 -0
  161. package/dist/charts-react/plan-parts.d.mts +2 -0
  162. package/dist/charts-react/plan-parts.mjs +30 -0
  163. package/dist/charts-react/plan-time.mjs +84 -0
  164. package/dist/charts-react/plan.d.mts +3 -0
  165. package/dist/charts-react/plan.mjs +37 -0
  166. package/dist/charts-react/point-keys.mjs +22 -0
  167. package/dist/charts-react/pointer.mjs +99 -0
  168. package/dist/charts-react/reader-page.d.mts +8 -0
  169. package/dist/charts-react/reader-page.mjs +116 -0
  170. package/dist/charts-react/tiles.d.mts +24 -0
  171. package/dist/charts-react/tiles.mjs +142 -0
  172. package/dist/charts-react/tip-place.mjs +107 -0
  173. package/dist/charts-react/tip-room.mjs +31 -0
  174. package/dist/charts-react/useClientLayoutEffect.mjs +8 -0
  175. package/dist/charts-react/useScene.mjs +76 -0
  176. package/dist/charts-react/useSize.mjs +44 -0
  177. package/dist/charts-react/useStop.mjs +68 -0
  178. package/dist/core/conformance/memory/aggregate.mjs +2 -1
  179. package/dist/core/conformance/memory/rows.mjs +1 -1
  180. package/dist/core/conformance/memory/source.mjs +3 -2
  181. package/dist/core/document/display-comparisons.mjs +49 -0
  182. package/dist/core/document/display-entries.mjs +2 -1
  183. package/dist/core/document/display-validation.d.mts +12 -0
  184. package/dist/core/document/display-validation.mjs +56 -0
  185. package/dist/core/document/display.d.mts +27 -12
  186. package/dist/core/document/display.mjs +40 -49
  187. package/dist/core/document/view-layout.mjs +16 -0
  188. package/dist/core/engine/access.mjs +4 -2
  189. package/dist/core/engine/context.mjs +5 -7
  190. package/dist/core/engine/custom/cells.mjs +1 -1
  191. package/dist/core/engine/custom/records.mjs +2 -1
  192. package/dist/core/engine/dialect.d.mts +2 -0
  193. package/dist/core/engine/index.mjs +1 -1
  194. package/dist/core/engine/levels.mjs +33 -1
  195. package/dist/core/engine/plan.d.mts +2 -0
  196. package/dist/core/engine/postgres.mjs +1 -0
  197. package/dist/core/engine/rank.mjs +1 -1
  198. package/dist/core/engine/reader.d.mts +4 -0
  199. package/dist/core/engine/sql-partition.mjs +45 -0
  200. package/dist/core/engine/sql-reads.mjs +4 -1
  201. package/dist/core/engine/statement.mjs +4 -4
  202. package/dist/core/engine/version.d.mts +1 -1
  203. package/dist/core/engine/version.mjs +1 -1
  204. package/dist/core/error/codes.d.mts +1 -1
  205. package/dist/core/error/codes.mjs +1 -1
  206. package/dist/core/exact/decimal.d.mts +1 -4
  207. package/dist/core/exact/decimal.mjs +1 -14
  208. package/dist/core/exact/text.d.mts +5 -0
  209. package/dist/core/exact/text.mjs +19 -0
  210. package/dist/core/index.d.mts +9 -6
  211. package/dist/core/index.mjs +11 -8
  212. package/dist/core/model/types.d.mts +2 -0
  213. package/dist/core/model/validate/fields.mjs +1 -1
  214. package/dist/core/model/validate/known-members.mjs +2 -0
  215. package/dist/core/model/validate/shape.mjs +5 -1
  216. package/dist/core/oracle/visibility.mjs +2 -2
  217. package/dist/core/policy/bind.mjs +29 -1
  218. package/dist/core/query/drill/compose.d.mts +2 -0
  219. package/dist/core/query/drill/compose.mjs +1 -1
  220. package/dist/core/query/drill/synthetic.mjs +2 -1
  221. package/dist/core/query/drill/types.d.mts +7 -0
  222. package/dist/core/query/drill/types.mjs +3 -1
  223. package/dist/core/result/number.mjs +2 -1
  224. package/dist/core/result/time-axis.mjs +2 -1
  225. package/dist/core/schema/answers.d.mts +1176 -362
  226. package/dist/core/schema/commands.mjs +2 -1
  227. package/dist/core/schema/document.mjs +27 -2
  228. package/dist/core/schema/drill-answers.mjs +19 -1
  229. package/dist/core/schema/drill.d.mts +21 -6
  230. package/dist/core/schema/drill.mjs +7 -1
  231. package/dist/core/schema/index.d.mts +2 -1
  232. package/dist/core/schema/index.mjs +2 -1
  233. package/dist/core/schema/null-ops.d.mts +6 -0
  234. package/dist/core/schema/null-ops.mjs +18 -0
  235. package/dist/core/schema/query.mjs +30 -4
  236. package/dist/core/schema/tools.mjs +13 -0
  237. package/dist/core/schema/union-error.mjs +38 -0
  238. package/dist/core/time/bucket.mjs +2 -1
  239. package/dist/core/time/index.d.mts +3 -2
  240. package/dist/core/time/instant.d.mts +1 -2
  241. package/dist/core/time/instant.mjs +2 -30
  242. package/dist/core/time/range.mjs +2 -1
  243. package/dist/core/time/stored.mjs +2 -1
  244. package/dist/core/time/text-time.d.mts +10 -0
  245. package/dist/core/time/text-time.mjs +80 -0
  246. package/dist/core/types/api.d.mts +1 -1
  247. package/dist/core/types/api.mjs +1 -1
  248. package/dist/core/types/drill-api.d.mts +22 -2
  249. package/dist/dashboard-documents.d.mts +8 -0
  250. package/dist/dashboard-documents.mjs +52 -0
  251. package/dist/drill-access.mjs +40 -3
  252. package/dist/drill-comparison.mjs +71 -0
  253. package/dist/drill-crumbs.mjs +21 -2
  254. package/dist/drill-group-seal.mjs +13 -0
  255. package/dist/drill-open.mjs +7 -1
  256. package/dist/drill-seal.mjs +4 -6
  257. package/dist/drill-views.mjs +5 -13
  258. package/dist/drill.mjs +28 -58
  259. package/dist/editing.mjs +1 -1
  260. package/dist/endpoints/drill.mjs +2 -3
  261. package/dist/endpoints/index.d.mts +20 -0
  262. package/dist/index.d.mts +2 -1
  263. package/dist/index.mjs +6 -27
  264. package/dist/llms.txt +1 -1
  265. package/dist/react/Cell.mjs +2 -2
  266. package/dist/react/DashboardList.mjs +3 -3
  267. package/dist/react/Editing.mjs +3 -3
  268. package/dist/react/Header.mjs +2 -2
  269. package/dist/react/History.mjs +3 -3
  270. package/dist/react/Parts.mjs +2 -2
  271. package/dist/react/RowBody.d.mts +2 -4
  272. package/dist/react/RowBody.mjs +14 -39
  273. package/dist/react/Tile.mjs +4 -5
  274. package/dist/react/builder/FilterEditor.mjs +2 -2
  275. package/dist/react/builder/Picker.mjs +3 -3
  276. package/dist/react/builder/RangeEditor.mjs +3 -3
  277. package/dist/react/builder/Time.mjs +3 -3
  278. package/dist/react/builder/Values.mjs +2 -2
  279. package/dist/react/builder/WidgetBuilder.mjs +2 -2
  280. package/dist/react/digits.mjs +1 -1
  281. package/dist/react/drill/Bars.mjs +34 -38
  282. package/dist/react/drill/Comparison.mjs +204 -0
  283. package/dist/react/drill/Controls.mjs +8 -12
  284. package/dist/react/drill/DrillDrawer.mjs +42 -0
  285. package/dist/react/drill/DrillPanel.mjs +61 -41
  286. package/dist/react/drill/Header.mjs +65 -35
  287. package/dist/react/drill/ItemLink.mjs +40 -0
  288. package/dist/react/drill/Items.d.mts +2 -1
  289. package/dist/react/drill/Items.mjs +126 -99
  290. package/dist/react/drill/ItemsBody.mjs +38 -0
  291. package/dist/react/drill/ItemsFoot.mjs +24 -19
  292. package/dist/react/drill/Notes.mjs +23 -13
  293. package/dist/react/drill/PanelBody.mjs +7 -25
  294. package/dist/react/drill/RecordRow.mjs +47 -0
  295. package/dist/react/drill/Trend.mjs +186 -0
  296. package/dist/react/drill/board.mjs +21 -11
  297. package/dist/react/drill/drawer-context.mjs +5 -0
  298. package/dist/react/drill/item-parts.mjs +53 -35
  299. package/dist/react/drill/item-type.d.mts +2 -2
  300. package/dist/react/drill/lazy.d.mts +1 -4
  301. package/dist/react/drill/lazy.mjs +29 -11
  302. package/dist/react/drill/panel-focus.mjs +18 -7
  303. package/dist/react/drill/props.d.mts +7 -1
  304. package/dist/react/drill/props.mjs +39 -8
  305. package/dist/react/drill/record-page.mjs +61 -0
  306. package/dist/react/drill/state.mjs +17 -2
  307. package/dist/react/drill/trend-touch.mjs +33 -0
  308. package/dist/react/drill/useDrill.d.mts +3 -3
  309. package/dist/react/drill/useDrill.mjs +35 -15
  310. package/dist/react/drill/words.d.mts +14 -0
  311. package/dist/react/drill/words.mjs +20 -8
  312. package/dist/react/english.d.mts +4 -1
  313. package/dist/react/english.mjs +17 -2
  314. package/dist/react/filters/chip.mjs +2 -2
  315. package/dist/react/filters/menu-search.mjs +5 -5
  316. package/dist/react/filters/menu.mjs +2 -2
  317. package/dist/react/filters/number.mjs +2 -2
  318. package/dist/react/filters/operator.mjs +2 -2
  319. package/dist/react/filters/phone.mjs +2 -2
  320. package/dist/react/filters/values.mjs +4 -4
  321. package/dist/react/format-time.d.mts +2 -1
  322. package/dist/react/format-time.mjs +42 -34
  323. package/dist/react/format.mjs +15 -3
  324. package/dist/react/index.d.mts +4 -3
  325. package/dist/react/index.mjs +4 -3
  326. package/dist/react/messages.d.mts +23 -2
  327. package/dist/react/renderers/entries.d.mts +11 -0
  328. package/dist/react/renderers/list.mjs +8 -10
  329. package/dist/react/renderers/table-cells.mjs +38 -9
  330. package/dist/react/renderers/table-measure.mjs +2 -0
  331. package/dist/react/renderers/table-row.mjs +64 -7
  332. package/dist/react/renderers/table-sort.mjs +2 -8
  333. package/dist/react/renderers/table.mjs +16 -15
  334. package/dist/react/series.mjs +8 -3
  335. package/dist/react/theme-unlayered.css +1 -3144
  336. package/dist/react/theme.css +1 -3146
  337. package/dist/recharts/parts.mjs +1 -1
  338. package/dist/skills/derive-dashboards/SKILL.md +10 -5
  339. package/dist/store/apply.mjs +2 -2
  340. package/dist/store/editor.mjs +2 -2
  341. package/dist/store/writer.mjs +2 -2
  342. package/package.json +27 -2
@@ -2,7 +2,7 @@ import { useDashboards } from "./context.mjs";
2
2
  import { Row } from "./DashboardListRow.mjs";
3
3
  import { useId, useState } from "react";
4
4
  import useSWR from "swr";
5
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
6
  // src/DashboardList.tsx
7
7
  /** The SWR key of the dashboard list, refreshed whenever a dashboard is made, published or discarded. */
8
8
  const LIST_KEY = "dd-list";
@@ -59,7 +59,7 @@ function CopyLink(props) {
59
59
  function Search(props) {
60
60
  const { messages } = useDashboards();
61
61
  const { all, search, setSearch } = props;
62
- return /* @__PURE__ */ jsxs(Fragment, { children: [all.length > 6 ? /* @__PURE__ */ jsx("input", {
62
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [all.length > 6 ? /* @__PURE__ */ jsx("input", {
63
63
  type: "search",
64
64
  className: "dd-list-search",
65
65
  "aria-label": messages.searchDashboards,
@@ -109,7 +109,7 @@ function Groups(props) {
109
109
  const builtIn = props.items.filter((d) => d.id.startsWith("default:"));
110
110
  const made = props.items.filter((d) => !d.id.startsWith("default:"));
111
111
  if (builtIn.length === 0 || made.length === 0) return /* @__PURE__ */ jsx(Items, { ...props });
112
- return /* @__PURE__ */ jsxs(Fragment, { children: [
112
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
113
113
  /* @__PURE__ */ jsx("h3", {
114
114
  className: "dd-list-group",
115
115
  children: messages.builtIn
@@ -2,7 +2,7 @@ import { WidgetBuilder } from "./builder/WidgetBuilder.mjs";
2
2
  import { useDashboards } from "./context.mjs";
3
3
  import { useState } from "react";
4
4
  import { freeSpot } from "derive-dashboards/core";
5
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
6
  // src/Editing.tsx
7
7
  /** Edit for those who may change the dashboard; while editing, + Add widget instead. */
8
8
  function EditButton({ edit, canEdit, waiting, onAdd }) {
@@ -35,7 +35,7 @@ function StepButtons(props) {
35
35
  onClick: props.busy ? void 0 : run,
36
36
  children: arrow
37
37
  });
38
- return /* @__PURE__ */ jsxs(Fragment, { children: [step("up", messages.moveUp(props.title), props.onUp, "↑"), step("down", messages.moveDown(props.title), props.onDown, "↓")] });
38
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [step("up", messages.moveUp(props.title), props.onUp, "↑"), step("down", messages.moveDown(props.title), props.onDown, "↓")] });
39
39
  }
40
40
  /**
41
41
  * A tile's own Edit and Remove while the dashboard is a draft, named for the tile; at phone
@@ -43,7 +43,7 @@ function StepButtons(props) {
43
43
  */
44
44
  function TileActions(props) {
45
45
  const { messages } = useDashboards();
46
- return /* @__PURE__ */ jsxs(Fragment, { children: [
46
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
47
47
  /* @__PURE__ */ jsx(StepButtons, { ...props }),
48
48
  /* @__PURE__ */ jsx("button", {
49
49
  type: "button",
@@ -3,7 +3,7 @@ import { LIST_KEY } from "./DashboardList.mjs";
3
3
  import { EditButton } from "./Editing.mjs";
4
4
  import { useEffect, useRef, useState } from "react";
5
5
  import { useSWRConfig } from "swr";
6
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
7
  // src/Header.tsx
8
8
  /** The title: words to read, or while editing a field to rename the dashboard in place. */
9
9
  function Title({ doc, edit, isNew }) {
@@ -65,7 +65,7 @@ function ShareButton({ link }) {
65
65
  setSaid(url);
66
66
  }
67
67
  };
68
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("button", {
68
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("button", {
69
69
  type: "button",
70
70
  className: "dd-button dd-quiet",
71
71
  onClick: () => void share(),
@@ -6,7 +6,7 @@ import { Panel } from "./Panel.mjs";
6
6
  import { ReadFailed } from "./ReadFailed.mjs";
7
7
  import { useState } from "react";
8
8
  import { useSWRConfig } from "swr";
9
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
10
  import useSWRInfinite from "swr/infinite";
11
11
  // src/History.tsx
12
12
  /** One version in the timeline: when, by whom (for editors, when the host names people), what it restored. */
@@ -16,7 +16,7 @@ function Entry(props) {
16
16
  const name = entry.author === void 0 ? void 0 : authorName?.(entry.author);
17
17
  const agent = entry.author?.kind === "agent";
18
18
  const when = formatInstant(entry.createdAt, locale);
19
- const body = /* @__PURE__ */ jsxs(Fragment, { children: [
19
+ const body = /* @__PURE__ */ jsxs(Fragment$1, { children: [
20
20
  /* @__PURE__ */ jsx("strong", { children: messages.version(entry.version) }),
21
21
  props.current ? /* @__PURE__ */ jsx("em", { children: messages.current }) : null,
22
22
  /* @__PURE__ */ jsx("span", { children: [when, name].filter((part) => part !== void 0).join(" · ") }),
@@ -157,7 +157,7 @@ function VersionActions(props) {
157
157
  onClick,
158
158
  children: label
159
159
  });
160
- return /* @__PURE__ */ jsxs(Fragment, { children: [
160
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
161
161
  asking ? /* @__PURE__ */ jsx(CancelRestore, {
162
162
  busy: actions.busy,
163
163
  onCancel: () => {
@@ -5,7 +5,7 @@ import { HistoryPanel, VersionBar } from "./History.mjs";
5
5
  import { PublishedNotice } from "./Notice.mjs";
6
6
  import { ReviewPanel } from "./ReviewPanel.mjs";
7
7
  import { useState } from "react";
8
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
9
  // src/Parts.tsx
10
10
  /** The notice after a publish; its Undo restores the version before as the next one. */
11
11
  function Published({ board, props }) {
@@ -45,7 +45,7 @@ function Published({ board, props }) {
45
45
  /** The bars over the canvas: the publish notice, the edit bar, an earlier version's bar. */
46
46
  function Bars({ board, props }) {
47
47
  const { edit, panels } = board;
48
- return /* @__PURE__ */ jsxs(Fragment, { children: [
48
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
49
49
  /* @__PURE__ */ jsx(Published, {
50
50
  board,
51
51
  props
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from "react";
2
2
  /**
3
- * What one row of a list shows, for a drill's Items and the list widget alike: a title, a meta
4
- * line, an optional lead (an avatar), badge and trailing value, and a chevron when it opens.
3
+ * Display values for list tiles and drill records.
5
4
  */
6
5
  export type RowContent = {
7
6
  title: string;
@@ -14,6 +13,5 @@ export type RowContent = {
14
13
  lead?: string | undefined;
15
14
  /** After the text: one number. */
16
15
  value?: string | undefined;
17
- /** The row opens something: a chevron says so. */
18
- opens?: boolean;
16
+ valueLabel?: string | undefined;
19
17
  };
@@ -1,55 +1,30 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  // src/RowBody.tsx
3
- /** The class names of one family of rows: `dd-item-*` (Items) or `dd-lines-*` (the list widget). */
4
- const CLASSES = {
5
- item: {
6
- lead: "dd-item-lead",
7
- text: "dd-item-text",
8
- title: "dd-item-title",
9
- meta: "dd-item-meta",
10
- value: "dd-item-value"
11
- },
12
- lines: {
13
- lead: "dd-lines-avatar",
14
- text: "dd-lines-text",
15
- title: "dd-lines-title",
16
- meta: "dd-lines-sub",
17
- value: "dd-lines-meta"
18
- }
19
- };
20
- /** One row's parts, the one markup every list of rows shares. */
21
- function RowBody({ row, family }) {
22
- const c = CLASSES[family];
3
+ /** A list tile can carry a leading avatar and a trailing measure beside its title. */
4
+ function RowBody({ row }) {
23
5
  return /* @__PURE__ */ jsxs(Fragment, { children: [
24
6
  row.lead === void 0 ? null : /* @__PURE__ */ jsx("span", {
25
- className: c.lead,
7
+ className: "dd-lines-avatar",
26
8
  "aria-hidden": "true",
27
9
  children: row.lead
28
10
  }),
29
11
  /* @__PURE__ */ jsxs("span", {
30
- className: c.text,
12
+ className: "dd-lines-text",
31
13
  children: [/* @__PURE__ */ jsx("strong", {
32
- className: c.title,
14
+ className: "dd-lines-title",
33
15
  children: row.title
34
- }), family === "item" && row.meta.length === 0 ? null : /* @__PURE__ */ jsx("span", {
35
- className: c.meta,
16
+ }), /* @__PURE__ */ jsx("span", {
17
+ className: "dd-lines-sub",
36
18
  children: row.meta.join(" · ")
37
19
  })]
38
20
  }),
39
- row.badge === void 0 ? null : /* @__PURE__ */ jsx("span", {
40
- className: "dd-item-badge",
41
- "data-tone": row.badge.tone ?? "neutral",
42
- children: row.badge.text
43
- }),
44
- row.value === void 0 ? null : /* @__PURE__ */ jsx("span", {
45
- className: c.value,
46
- children: row.value
47
- }),
48
- row.opens === true ? /* @__PURE__ */ jsx("span", {
49
- className: "dd-item-go",
50
- "aria-hidden": "true",
51
- children: "›"
52
- }) : null
21
+ row.value === void 0 ? null : /* @__PURE__ */ jsxs("span", {
22
+ className: "dd-lines-meta",
23
+ children: [row.valueLabel !== void 0 && /* @__PURE__ */ jsxs("span", {
24
+ className: "dd-sr-only",
25
+ children: [row.valueLabel, " "]
26
+ }), row.value]
27
+ })
53
28
  ] });
54
29
  }
55
30
  export { RowBody };
@@ -1,12 +1,12 @@
1
1
  import { useDashboards } from "./context.mjs";
2
2
  import { useTileDrill } from "./drill/host.mjs";
3
3
  import { ExportButton } from "./export/ExportButton.mjs";
4
- import { formatInstantAt } from "./format-time.mjs";
4
+ import { formatPeriod } from "./format-time.mjs";
5
5
  import { SeriesSlotsContext } from "./scope.mjs";
6
6
  import { seriesSlots } from "./series-slots.mjs";
7
7
  import { memo, useContext, useState } from "react";
8
8
  import { sharedDisplay } from "derive-dashboards/core";
9
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
10
  // src/Tile.tsx
11
11
  /** Refusals that last only until the dashboard is read again, never shown as errors. */
12
12
  const PASSING = /* @__PURE__ */ new Set(["VERSION_CONFLICT", "TILE_UNKNOWN"]);
@@ -71,7 +71,7 @@ function Notes({ result, controlLabels }) {
71
71
  const { messages } = useDashboards();
72
72
  if (result === void 0 || "error" in result) return null;
73
73
  const dropped = result.receipt.coverage.dropped.map((id) => controlLabels?.get(id) ?? id);
74
- return /* @__PURE__ */ jsxs(Fragment, { children: [
74
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
75
75
  dropped.length === 0 ? null : /* @__PURE__ */ jsx("p", {
76
76
  className: "dd-tile-note",
77
77
  children: messages.notFilteredBy(dropped)
@@ -104,10 +104,9 @@ function Span({ result, shared }) {
104
104
  const range = result.receipt.range;
105
105
  if (range === void 0 || shared !== void 0 && spanKey(result) === shared) return null;
106
106
  const zone = result.receipt.calendar.timezone;
107
- const day = (at) => formatInstantAt(at, "day", format.locale, zone);
108
107
  return /* @__PURE__ */ jsx("p", {
109
108
  className: "dd-tile-span",
110
- children: format.messages.drillRange(day(range.from), day(range.to))
109
+ children: formatPeriod(range, format, zone)
111
110
  });
112
111
  }
113
112
  /**
@@ -4,7 +4,7 @@ import { fieldOptions } from "./options.mjs";
4
4
  import { Chip } from "./Sections.mjs";
5
5
  import { ValuePicker } from "./Values.mjs";
6
6
  import { useState } from "react";
7
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
8
  // src/builder/FilterEditor.tsx
9
9
  /** The operators a field's type has, in the order the editor offers them. */
10
10
  const OPS = {
@@ -94,7 +94,7 @@ function Inputs(props) {
94
94
  className: "dd-range-row",
95
95
  children: box(0, "number")
96
96
  });
97
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
97
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
98
98
  className: "dd-range-row",
99
99
  children: [
100
100
  box(0, "number"),
@@ -1,6 +1,6 @@
1
1
  import { useDashboards } from "../context.mjs";
2
2
  import { useEffect, useId, useRef, useState } from "react";
3
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
4
4
  // src/builder/Picker.tsx
5
5
  /** The options whose group and label hold every word typed, in their groups' order. */
6
6
  function matching(options, search) {
@@ -13,8 +13,8 @@ function matching(options, search) {
13
13
  /** A label with the typed text in bold, so the match is easy to see. */
14
14
  function Marked({ label, search }) {
15
15
  const at = search === "" ? -1 : label.toLowerCase().indexOf(search.toLowerCase());
16
- if (at === -1) return /* @__PURE__ */ jsx(Fragment, { children: label });
17
- return /* @__PURE__ */ jsxs(Fragment, { children: [
16
+ if (at === -1) return /* @__PURE__ */ jsx(Fragment$1, { children: label });
17
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
18
18
  label.slice(0, at),
19
19
  /* @__PURE__ */ jsx("b", { children: label.slice(at, at + search.length) }),
20
20
  label.slice(at + search.length)
@@ -1,7 +1,7 @@
1
1
  import { useDashboards } from "../context.mjs";
2
2
  import { DAY_ONLY, addDays, fromIsoDay, isoDay } from "../filters/days.mjs";
3
3
  import { useState } from "react";
4
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
5
5
  // src/builder/RangeEditor.tsx
6
6
  const UNITS = [
7
7
  "day",
@@ -55,7 +55,7 @@ function Rolling(props) {
55
55
  ...change
56
56
  });
57
57
  };
58
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
58
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
59
59
  className: "dd-custom-row",
60
60
  children: [
61
61
  messages.last,
@@ -100,7 +100,7 @@ function Between(props) {
100
100
  to: isoDay(addDays(fromIsoDay(next.last), 1))
101
101
  });
102
102
  };
103
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
103
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
104
104
  className: "dd-custom-dates",
105
105
  children: [
106
106
  /* @__PURE__ */ jsx("span", {
@@ -5,7 +5,7 @@ import { Picker } from "./Picker.mjs";
5
5
  import { RangeEditor } from "./RangeEditor.mjs";
6
6
  import { Entry, Section } from "./Sections.mjs";
7
7
  import { useState } from "react";
8
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
9
  // src/builder/Time.tsx
10
10
  /** The quick ranges, each with the grain it reads best at. */
11
11
  const RANGES = [
@@ -61,7 +61,7 @@ function TimeField({ b, time }) {
61
61
  };
62
62
  const others = fieldOptions(b.meta, source, true).filter((o) => o.id !== time.dimension);
63
63
  if (others.length === 0) return null;
64
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
64
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
65
65
  className: "dd-form-label",
66
66
  children: messages.timeField
67
67
  }), /* @__PURE__ */ jsxs("div", {
@@ -96,7 +96,7 @@ function QuickRanges(props) {
96
96
  const [open, setOpen] = useState(false);
97
97
  const preset = RANGES.findIndex((r) => same(time.range, r.range));
98
98
  const custom = open || preset === -1;
99
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("fieldset", {
99
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("fieldset", {
100
100
  className: "dd-seg dd-seg-fill",
101
101
  "aria-label": messages.timeRange,
102
102
  children: [RANGES.map((r, i) => /* @__PURE__ */ jsx("button", {
@@ -3,7 +3,7 @@ import { useDebounced } from "../debounce.mjs";
3
3
  import { Chip } from "./Sections.mjs";
4
4
  import { useState } from "react";
5
5
  import useSWR from "swr";
6
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
7
  // src/builder/Values.tsx
8
8
  /** A field's values as chips, the chosen ones pressed. */
9
9
  function ValueChips(props) {
@@ -59,7 +59,7 @@ function ValuePicker(props) {
59
59
  limit: 50,
60
60
  ...sent === "" ? {} : { search: sent }
61
61
  }));
62
- return /* @__PURE__ */ jsxs(Fragment, { children: [
62
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
63
63
  /* @__PURE__ */ jsx("input", {
64
64
  className: "dd-search",
65
65
  type: "search",
@@ -8,7 +8,7 @@ import { Chip, KeptNote, MeasureSection, OpenSection } from "./Sections.mjs";
8
8
  import { TimeSection } from "./Time.mjs";
9
9
  import { useBuilder } from "./useBuilder.mjs";
10
10
  import { useEffect, useRef, useState } from "react";
11
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
12
12
  // src/builder/WidgetBuilder.tsx
13
13
  /** The usual kinds first; any other renderer the host registered follows, by its kind. */
14
14
  const USUAL = [
@@ -120,7 +120,7 @@ function OptionsSection({ b }) {
120
120
  onClick: () => void copy(),
121
121
  children: copied === "yes" ? messages.copied : messages.copyJson
122
122
  }),
123
- copied === "refused" ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
123
+ copied === "refused" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("p", {
124
124
  className: "dd-builder-note",
125
125
  role: "status",
126
126
  children: messages.copyByHand
@@ -20,7 +20,7 @@ const digitsFor = (value, places) => lost(value, places) ? fine(Math.abs(value))
20
20
  * where one decimal wrote 0.05, 0.1 and 0.15 all as 0.1. Under a millionth of the whole the
21
21
  * figures come with their power of ten.
22
22
  */
23
- const tickDigits = (value, whole) => value !== 0 && Math.abs(value) < MINUTE * whole ? {
23
+ const tickDigits = (value, whole) => value !== 0 && (Math.abs(value) < MINUTE * whole || Math.abs(value) >= 0x38d7ea4c68000 * whole) ? {
24
24
  notation: "scientific",
25
25
  maximumSignificantDigits: 3
26
26
  } : {
@@ -1,8 +1,10 @@
1
- import { formatBucket } from "../format-time.mjs";
2
1
  import { useDashboards } from "../context.mjs";
2
+ import { formatBucket } from "../format-time.mjs";
3
+ import { ENGLISH } from "../english.mjs";
3
4
  import { formatCell, plotValue } from "../format.mjs";
4
5
  import { rowEntry } from "./state.mjs";
5
- import { isMark, roleOf } from "derive-dashboards/core";
6
+ import { Columns } from "./Trend.mjs";
7
+ import { MAX_DRILL_ROWS, isMark, parseTextTime, roleOf } from "derive-dashboards/core";
6
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
9
  // src/drill/Bars.tsx
8
10
  /** A row's name: its time bucket or its group, as the tile names it ("No assignee" for no value). */
@@ -26,6 +28,27 @@ const lineAt = (view, entry) => {
26
28
  /** A change with its sign: "+6" when it went up. */
27
29
  const signed = (text, size) => size > 0 && !text.startsWith("+") ? `+${text}` : text;
28
30
  const isAll = (row) => row.some((c) => isMark(c) && c.mark === "all");
31
+ /** Use the reporting instant, so a clipped historical month has a different label from this month. */
32
+ function isRunning(bucket, now) {
33
+ const from = parseTextTime(bucket.from);
34
+ const to = parseTextTime(bucket.to);
35
+ return bucket.partial !== "start" && now !== void 0 && from !== void 0 && to !== void 0 && from <= now && now < to;
36
+ }
37
+ /** A range ending before the reporting instant is clipped, even if both instants name the same month. */
38
+ function runningAt(view) {
39
+ const receipt = view.answer.receipt;
40
+ const now = parseTextTime(receipt.computedAt);
41
+ const end = view.range?.to ?? receipt.range?.to;
42
+ const until = end === void 0 ? void 0 : parseTextTime(end);
43
+ if (view.throughNow !== void 0) return view.throughNow ? until : void 0;
44
+ return now !== void 0 && until !== void 0 && now <= until ? now : void 0;
45
+ }
46
+ function partialNotes(view, { messages }) {
47
+ const notes = /* @__PURE__ */ new Map();
48
+ const now = runningAt(view);
49
+ for (const bucket of view.answer.time?.buckets ?? []) if (bucket.partial) notes.set(bucket.label, isRunning(bucket, now) ? messages.soFar : messages.chartPartial ?? ENGLISH.chartPartial);
50
+ return notes;
51
+ }
29
52
  /**
30
53
  * Each row as a bar: sized by its value, or for a Breakdown of the change by its change, and
31
54
  * read as the value, or as now, before and the change. A total is not drawn.
@@ -43,11 +66,13 @@ function barsOf(view, entry, format) {
43
66
  const sized = compared ? change : at;
44
67
  const max = Math.max(0, ...rows.map(({ row }) => Math.abs(plotValue(row[sized] ?? null) ?? 0)));
45
68
  const text = (row, i) => formatCell(row[i] ?? null, columns[i], format);
69
+ const notes = partialNotes(view, format);
46
70
  return rows.map(({ row, selection }) => {
47
71
  const size = plotValue(row[sized] ?? null) ?? 0;
48
72
  return {
49
73
  bar: {
50
74
  name: rowName(view, row, format),
75
+ note: typeof row[0] === "string" ? notes.get(row[0]) : void 0,
51
76
  width: max === 0 ? 0 : Math.abs(size) / max * 100,
52
77
  negative: size < 0,
53
78
  text: compared && (row[before] ?? null) !== null ? format.messages.drillChange(text(row, at), formatCell(row[before] ?? null, columns[at], format), signed(text(row, sized), size)) : text(row, at)
@@ -116,51 +141,22 @@ function changeLine(view, entry, format) {
116
141
  const size = plotValue(total[change] ?? null) ?? 0;
117
142
  return format.messages.drillVersus(formatCell(total[before] ?? null, columns[at], format), signed(formatCell(total[change] ?? null, columns[change], format), size));
118
143
  }
119
- /** Over time as columns, oldest to newest: each bucket a column to scale, a button when it goes deeper. */
120
- function Columns(props) {
121
- return /* @__PURE__ */ jsx("ol", {
122
- className: "dd-drill-columns",
123
- children: props.bars.map(({ bar, selection }, i) => {
124
- const label = `${bar.name}, ${bar.text}`;
125
- const column = /* @__PURE__ */ jsx("span", {
126
- className: "dd-drill-column",
127
- "data-negative": bar.negative,
128
- style: { blockSize: `${Math.max(bar.width, 2)}%` }
129
- });
130
- return /* @__PURE__ */ jsx("li", {
131
- title: label,
132
- children: selection === void 0 ? /* @__PURE__ */ jsx("span", {
133
- role: "img",
134
- "aria-label": label,
135
- children: column
136
- }) : /* @__PURE__ */ jsx("button", {
137
- type: "button",
138
- "aria-label": label,
139
- onClick: () => {
140
- props.onOpen(selection);
141
- },
142
- children: column
143
- })
144
- }, i);
145
- })
146
- });
147
- }
148
- /**
149
- * A Breakdown as a list of bars, or Over time as columns: each group or bucket with its value
150
- * to scale and, when it drills, a button that goes one step deeper. A total is not drawn; a
151
- * Breakdown of the change says the whole change first.
152
- */
144
+ /** A breakdown shows groups and their changes. A trend shows the same values in time order. */
153
145
  function Bars(props) {
154
146
  const format = useDashboards();
155
147
  const { view } = props;
148
+ const { messages } = format;
156
149
  const bars = barsOf(view, props.entry, format);
157
150
  if (bars.length === 0) return /* @__PURE__ */ jsx("p", {
158
151
  className: "dd-tile-state",
159
- children: view.search === void 0 ? format.messages.drillNoGroups : format.messages.drillNoMatch
152
+ children: view.search === void 0 ? messages.drillNoGroups : messages.drillNoMatch
160
153
  });
161
154
  if (view.by === "trend") return /* @__PURE__ */ jsx(Columns, {
162
155
  bars,
163
- onOpen: props.onOpen
156
+ onOpen: props.onOpen,
157
+ details: messages.drillHint,
158
+ pages: messages.drillRecordPages,
159
+ limitNote: view.answer.rows.length > MAX_DRILL_ROWS ? messages.drillReasons.ROW_CAP : void 0
164
160
  });
165
161
  const change = changeLine(view, props.entry, format);
166
162
  return /* @__PURE__ */ jsxs(Fragment, { children: [change === void 0 ? null : /* @__PURE__ */ jsx("p", {