lintje 0.6.0 → 0.8.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 (310) hide show
  1. package/NOTICE.md +2 -0
  2. package/README.md +2 -2
  3. package/dist-elements/actions.js +1 -1
  4. package/dist-elements/chat.js +1 -1
  5. package/dist-elements/chunks/addon-B-nZKTVZ.js +5 -0
  6. package/dist-elements/chunks/avatar-C1Wj9drG.js +1 -0
  7. package/dist-elements/chunks/axes-DPj3RyPk.js +129 -0
  8. package/dist-elements/chunks/base-lxVG98kf.js +226 -0
  9. package/dist-elements/chunks/chart-styles-sK3xVPFj.js +45 -0
  10. package/dist-elements/chunks/controls-lVYdiFQu.js +1 -0
  11. package/dist-elements/chunks/{date-format-5bii3QLP.js → date-format-DvDaZtFc.js} +1 -1
  12. package/dist-elements/chunks/dialog-close-DpjJ6JbT.js +1 -0
  13. package/dist-elements/chunks/disclosure-Ch2SwnkG.js +1 -0
  14. package/dist-elements/chunks/disclosure-o3Agc4Ji.js +20 -0
  15. package/dist-elements/chunks/download-C74iql1Q.js +18 -0
  16. package/dist-elements/chunks/focus-trap-xGyZPSzU.js +1 -0
  17. package/dist-elements/chunks/follow-7IBDa51N.js +1 -0
  18. package/dist-elements/chunks/frame-BMR48Vea.js +1 -0
  19. package/dist-elements/chunks/input-C7MnFu5X.js +8 -0
  20. package/dist-elements/chunks/input-CCT6CcW1.js +1 -0
  21. package/dist-elements/chunks/month-grid-CoYFI13w.js +26 -0
  22. package/dist-elements/chunks/other-D_wlqvPA.js +11 -0
  23. package/dist-elements/chunks/{player-Dh7ZHcMF.js → player-BW0tPg9_.js} +14 -14
  24. package/dist-elements/chunks/{prose-DOF7h3je.js → prose-aNcSsHId.js} +1 -1
  25. package/dist-elements/chunks/search-text-i-Em9oIy.js +1 -0
  26. package/dist-elements/chunks/sentence-CJX3W7W5.js +3 -0
  27. package/dist-elements/chunks/stagger-DYloMMgF.js +27 -0
  28. package/dist-elements/chunks/wheel-Co2Dpj0Q.js +1 -0
  29. package/dist-elements/content.js +1 -1
  30. package/dist-elements/core.js +1 -1
  31. package/dist-elements/custom-elements.json +1757 -222
  32. package/dist-elements/data-types.json +3857 -1500
  33. package/dist-elements/feedback.js +1 -1
  34. package/dist-elements/graph.d.ts +1 -0
  35. package/dist-elements/graph.js +1 -0
  36. package/dist-elements/guides/events.md +13 -3
  37. package/dist-elements/guides/loading.md +12 -9
  38. package/dist-elements/inputs.js +1 -1
  39. package/dist-elements/layout.js +1 -1
  40. package/dist-elements/lintje.js +3240 -2434
  41. package/dist-elements/overlays.js +1 -1
  42. package/dist-elements/skills/lintje/SKILL.md +26 -5
  43. package/dist-elements/skills/lintje/check.mjs +180 -0
  44. package/dist-elements/skills/lintje/reference.mjs +24 -3
  45. package/dist-elements/tables.js +1 -1
  46. package/dist-elements/tag/accordion.d.ts +1 -0
  47. package/dist-elements/tag/accordion.js +6 -0
  48. package/dist-elements/tag/activity-log.js +13 -11
  49. package/dist-elements/tag/ai-label.js +5 -5
  50. package/dist-elements/tag/announcement.js +9 -9
  51. package/dist-elements/tag/app-search.js +15 -15
  52. package/dist-elements/tag/attachment.d.ts +1 -0
  53. package/dist-elements/tag/attachment.js +54 -0
  54. package/dist-elements/tag/audio-player.js +27 -27
  55. package/dist-elements/tag/badge.js +1 -1
  56. package/dist-elements/tag/breadcrumbs.js +7 -7
  57. package/dist-elements/tag/button.js +1 -1
  58. package/dist-elements/tag/card-list.js +8 -8
  59. package/dist-elements/tag/card.js +36 -30
  60. package/dist-elements/tag/chart.js +674 -411
  61. package/dist-elements/tag/chat-answer.js +43 -41
  62. package/dist-elements/tag/chat-composer.js +101 -43
  63. package/dist-elements/tag/chat-message.js +16 -11
  64. package/dist-elements/tag/chat-questions.d.ts +1 -0
  65. package/dist-elements/tag/chat-questions.js +133 -0
  66. package/dist-elements/tag/chat-steps.d.ts +1 -0
  67. package/dist-elements/tag/chat-steps.js +52 -0
  68. package/dist-elements/tag/chat-strip.js +7 -7
  69. package/dist-elements/tag/chat-suggestions.js +7 -8
  70. package/dist-elements/tag/chat.js +65 -37
  71. package/dist-elements/tag/checkbox-group.js +14 -6
  72. package/dist-elements/tag/checkbox.js +8 -8
  73. package/dist-elements/tag/code.js +8 -8
  74. package/dist-elements/tag/combobox.js +18 -18
  75. package/dist-elements/tag/conflict-alert.js +4 -4
  76. package/dist-elements/tag/copy-button.js +7 -7
  77. package/dist-elements/tag/data-table.js +255 -246
  78. package/dist-elements/tag/date-input.js +17 -41
  79. package/dist-elements/tag/date-range.js +22 -46
  80. package/dist-elements/tag/description-list.js +17 -15
  81. package/dist-elements/tag/dialog.js +7 -7
  82. package/dist-elements/tag/document-viewer.js +34 -26
  83. package/dist-elements/tag/drawer.js +9 -9
  84. package/dist-elements/tag/empty-state.js +1 -1
  85. package/dist-elements/tag/error-page.js +7 -7
  86. package/dist-elements/tag/error-summary.js +12 -12
  87. package/dist-elements/tag/expander.js +5 -5
  88. package/dist-elements/tag/explainer.js +5 -5
  89. package/dist-elements/tag/field.js +5 -5
  90. package/dist-elements/tag/file-upload.js +34 -44
  91. package/dist-elements/tag/filter-bar.js +18 -18
  92. package/dist-elements/tag/filter-sheet.js +3 -3
  93. package/dist-elements/tag/filter-zone.js +14 -15
  94. package/dist-elements/tag/find.js +14 -14
  95. package/dist-elements/tag/footer.js +14 -14
  96. package/dist-elements/tag/form-actions.js +3 -3
  97. package/dist-elements/tag/form-section.js +4 -4
  98. package/dist-elements/tag/form.js +5 -5
  99. package/dist-elements/tag/gallery.js +11 -11
  100. package/dist-elements/tag/graph.d.ts +1 -0
  101. package/dist-elements/tag/graph.js +102 -0
  102. package/dist-elements/tag/grid-item.js +1 -1
  103. package/dist-elements/tag/grid.js +1 -1
  104. package/dist-elements/tag/hero.js +5 -5
  105. package/dist-elements/tag/highlight.js +1 -1
  106. package/dist-elements/tag/icon-button.js +1 -1
  107. package/dist-elements/tag/icon.js +1 -1
  108. package/dist-elements/tag/job-list.js +3 -3
  109. package/dist-elements/tag/key.d.ts +1 -0
  110. package/dist-elements/tag/key.js +1 -0
  111. package/dist-elements/tag/kpi-row.js +5 -5
  112. package/dist-elements/tag/kpi.js +69 -69
  113. package/dist-elements/tag/level-meter.js +5 -5
  114. package/dist-elements/tag/list.js +29 -28
  115. package/dist-elements/tag/log-viewer.js +68 -68
  116. package/dist-elements/tag/logo.js +26 -29
  117. package/dist-elements/tag/map.js +161 -158
  118. package/dist-elements/tag/menu-button.js +32 -32
  119. package/dist-elements/tag/modal.js +6 -6
  120. package/dist-elements/tag/multiselect.js +21 -22
  121. package/dist-elements/tag/note.js +2 -2
  122. package/dist-elements/tag/notifications.js +21 -21
  123. package/dist-elements/tag/number-input.js +18 -17
  124. package/dist-elements/tag/page-header.js +15 -16
  125. package/dist-elements/tag/pagination.js +18 -20
  126. package/dist-elements/tag/person-group.d.ts +1 -0
  127. package/dist-elements/tag/person-group.js +36 -0
  128. package/dist-elements/tag/person.d.ts +1 -0
  129. package/dist-elements/tag/person.js +11 -0
  130. package/dist-elements/tag/popover.js +1 -1
  131. package/dist-elements/tag/progress-bar.js +1 -1
  132. package/dist-elements/tag/prose.js +1 -1
  133. package/dist-elements/tag/qr-code.js +5 -5
  134. package/dist-elements/tag/radio-group.js +31 -22
  135. package/dist-elements/tag/range.js +27 -31
  136. package/dist-elements/tag/recording-status.js +8 -8
  137. package/dist-elements/tag/repeater.js +4 -4
  138. package/dist-elements/tag/segmented.js +11 -11
  139. package/dist-elements/tag/select.js +6 -6
  140. package/dist-elements/tag/shell.js +229 -240
  141. package/dist-elements/tag/skeleton.js +1 -1
  142. package/dist-elements/tag/slot-picker.js +11 -11
  143. package/dist-elements/tag/sortable-list.js +8 -8
  144. package/dist-elements/tag/spinner.js +1 -1
  145. package/dist-elements/tag/split-pane.js +5 -5
  146. package/dist-elements/tag/status-dot.js +1 -1
  147. package/dist-elements/tag/stepper.js +12 -12
  148. package/dist-elements/tag/streaming-text.js +12 -12
  149. package/dist-elements/tag/sub-nav.js +20 -20
  150. package/dist-elements/tag/tabs.js +12 -13
  151. package/dist-elements/tag/tag-input.js +22 -22
  152. package/dist-elements/tag/text-editor.js +26 -25
  153. package/dist-elements/tag/text-input.js +52 -37
  154. package/dist-elements/tag/textarea.js +14 -14
  155. package/dist-elements/tag/tile.js +1 -1
  156. package/dist-elements/tag/time-input.js +14 -14
  157. package/dist-elements/tag/toast.js +8 -8
  158. package/dist-elements/tag/toggle.js +7 -7
  159. package/dist-elements/tag/toggletip.js +6 -7
  160. package/dist-elements/tag/token-value.js +1 -1
  161. package/dist-elements/tag/tooltip.js +1 -1
  162. package/dist-elements/tag/transcript.js +27 -27
  163. package/dist-elements/tag/translator.js +6 -6
  164. package/dist-elements/tag/tree-view.js +18 -18
  165. package/dist-elements/tag/user-menu.js +34 -22
  166. package/dist-elements/tag/video-player.js +17 -14
  167. package/dist-elements/tokens.css +54 -1
  168. package/dist-elements/tokens.json +704 -312
  169. package/dist-elements/types/bundle/chat.d.ts +2 -0
  170. package/dist-elements/types/bundle/content.d.ts +2 -0
  171. package/dist-elements/types/bundle/graph.d.ts +2 -0
  172. package/dist-elements/types/bundle/index.d.ts +1 -1
  173. package/dist-elements/types/bundle/layout.d.ts +1 -0
  174. package/dist-elements/types/bundle/tables.d.ts +2 -0
  175. package/dist-elements/types/components/actions/button/button.d.ts +1 -0
  176. package/dist-elements/types/components/actions/icon/icon.d.ts +2 -1
  177. package/dist-elements/types/components/actions/icon-button/icon-button.d.ts +0 -5
  178. package/dist-elements/types/components/actions/logo/logo.d.ts +7 -2
  179. package/dist-elements/types/components/charts/chart/chart.d.ts +3 -12
  180. package/dist-elements/types/components/chat/chat/chat.d.ts +11 -4
  181. package/dist-elements/types/components/chat/chat-answer/chat-answer.d.ts +6 -4
  182. package/dist-elements/types/components/chat/chat-composer/chat-composer.d.ts +62 -15
  183. package/dist-elements/types/components/chat/chat-message/chat-message.d.ts +6 -2
  184. package/dist-elements/types/components/chat/chat-questions/chat-questions.d.ts +106 -0
  185. package/dist-elements/types/components/chat/chat-steps/chat-steps.d.ts +53 -0
  186. package/dist-elements/types/components/chat/chat-suggestions/chat-suggestions.d.ts +4 -11
  187. package/dist-elements/types/components/content/attachment/attachment.d.ts +58 -0
  188. package/dist-elements/types/components/content/audio-player/audio-player.d.ts +2 -1
  189. package/dist-elements/types/components/content/document-viewer/document-viewer.d.ts +14 -1
  190. package/dist-elements/types/components/content/key/key.d.ts +21 -0
  191. package/dist-elements/types/components/content/log-viewer/log-viewer.d.ts +1 -0
  192. package/dist-elements/types/components/content/prose/prose.d.ts +4 -3
  193. package/dist-elements/types/components/content/shared/player.d.ts +2 -1
  194. package/dist-elements/types/components/content/transcript/transcript.d.ts +7 -0
  195. package/dist-elements/types/components/content/video-player/video-player.d.ts +12 -3
  196. package/dist-elements/types/components/feedback/empty-state/empty-state.d.ts +2 -2
  197. package/dist-elements/types/components/feedback/job-list/job-list.d.ts +9 -2
  198. package/dist-elements/types/components/feedback/status-dot/status-dot.d.ts +13 -2
  199. package/dist-elements/types/components/filters/filter-bar/filter-bar.d.ts +3 -0
  200. package/dist-elements/types/components/filters/filter-sheet/filter-sheet.d.ts +2 -7
  201. package/dist-elements/types/components/filters/filter-zone/filter-zone.d.ts +0 -2
  202. package/dist-elements/types/components/forms/error-summary/error-summary.d.ts +5 -1
  203. package/dist-elements/types/components/forms/form/form.d.ts +10 -3
  204. package/dist-elements/types/components/forms/form-actions/form-actions.d.ts +9 -3
  205. package/dist-elements/types/components/frame/app-search/app-search.d.ts +1 -2
  206. package/dist-elements/types/components/frame/page-header/page-header.d.ts +1 -1
  207. package/dist-elements/types/components/frame/shell/header.d.ts +6 -8
  208. package/dist-elements/types/components/frame/shell/navigation.d.ts +0 -7
  209. package/dist-elements/types/components/frame/shell/shell.d.ts +7 -6
  210. package/dist-elements/types/components/frame/shell/top-bar.d.ts +5 -2
  211. package/dist-elements/types/components/frame/user-menu/user-menu.d.ts +17 -4
  212. package/dist-elements/types/components/graph/graph/graph.d.ts +147 -0
  213. package/dist-elements/types/components/graph/graph/layout-runner.d.ts +13 -0
  214. package/dist-elements/types/components/graph/graph/layout-worker.d.ts +1 -0
  215. package/dist-elements/types/components/graph/graph/layout.d.ts +27 -0
  216. package/dist-elements/types/components/graph/graph/model.d.ts +81 -0
  217. package/dist-elements/types/components/graph/graph/routes.d.ts +62 -0
  218. package/dist-elements/types/components/graph/graph/view.d.ts +58 -0
  219. package/dist-elements/types/components/index.d.ts +22 -5
  220. package/dist-elements/types/components/inputs/checkbox-group/checkbox-group.d.ts +13 -7
  221. package/dist-elements/types/components/inputs/combobox/combobox.d.ts +0 -2
  222. package/dist-elements/types/components/inputs/date-input/date-input.d.ts +1 -1
  223. package/dist-elements/types/components/inputs/date-range/date-range.d.ts +17 -6
  224. package/dist-elements/types/components/inputs/file-upload/file-upload.d.ts +10 -33
  225. package/dist-elements/types/components/inputs/multiselect/multiselect.d.ts +1 -11
  226. package/dist-elements/types/components/inputs/number-input/number-input.d.ts +4 -2
  227. package/dist-elements/types/components/inputs/radio-group/radio-group.d.ts +16 -4
  228. package/dist-elements/types/components/inputs/range/range.d.ts +0 -1
  229. package/dist-elements/types/components/inputs/segmented/segmented.d.ts +0 -2
  230. package/dist-elements/types/components/inputs/shared/addon.d.ts +14 -0
  231. package/dist-elements/types/components/inputs/shared/input.d.ts +58 -1
  232. package/dist-elements/types/components/inputs/text-input/text-input.d.ts +15 -1
  233. package/dist-elements/types/components/inputs/textarea/textarea.d.ts +3 -2
  234. package/dist-elements/types/components/layout/accordion/accordion.d.ts +37 -0
  235. package/dist-elements/types/components/layout/expander/expander.d.ts +5 -1
  236. package/dist-elements/types/components/layout/split-pane/split-pane.d.ts +2 -0
  237. package/dist-elements/types/components/layout/tabs/tabs.d.ts +3 -4
  238. package/dist-elements/types/components/overlays/popover/popover.d.ts +9 -4
  239. package/dist-elements/types/components/overlays/toggletip/toggletip.d.ts +2 -4
  240. package/dist-elements/types/components/overlays/tooltip/tooltip.d.ts +1 -3
  241. package/dist-elements/types/components/shared/avatar.d.ts +21 -0
  242. package/dist-elements/types/components/shared/charts/bar-chart/bar-chart.d.ts +3 -2
  243. package/dist-elements/types/components/shared/charts/dumbbell-chart/dumbbell-chart.d.ts +33 -0
  244. package/dist-elements/types/components/shared/charts/index.d.ts +6 -2
  245. package/dist-elements/types/components/shared/charts/kinds.d.ts +22 -4
  246. package/dist-elements/types/components/shared/charts/line-chart/line-chart.d.ts +3 -2
  247. package/dist-elements/types/components/shared/charts/sankey-chart/sankey-chart.d.ts +124 -0
  248. package/dist-elements/types/components/shared/charts/shared/axes.d.ts +33 -6
  249. package/dist-elements/types/components/shared/charts/shared/chart-states.d.ts +1 -1
  250. package/dist-elements/types/components/shared/charts/shared/chart-styles.d.ts +2 -0
  251. package/dist-elements/types/components/shared/charts/shared/colors.d.ts +29 -4
  252. package/dist-elements/types/components/shared/charts/shared/controller.d.ts +23 -3
  253. package/dist-elements/types/components/shared/charts/shared/forecast.d.ts +21 -0
  254. package/dist-elements/types/components/shared/charts/shared/plot-keys.d.ts +5 -0
  255. package/dist-elements/types/components/shared/charts/shared/tints.d.ts +2 -0
  256. package/dist-elements/types/components/shared/charts/shared/types.d.ts +146 -0
  257. package/dist-elements/types/components/shared/charts/shared/wheel.d.ts +11 -0
  258. package/dist-elements/types/components/shared/charts/treemap-chart/squarify.d.ts +16 -0
  259. package/dist-elements/types/components/shared/charts/treemap-chart/treemap-chart.d.ts +18 -0
  260. package/dist-elements/types/components/shared/charts/treemap-chart/treemap-labels.d.ts +36 -0
  261. package/dist-elements/types/components/shared/charts/treemap-chart/treemap-parts.d.ts +64 -0
  262. package/dist-elements/types/components/shared/controls.d.ts +26 -0
  263. package/dist-elements/types/components/shared/cut-text.d.ts +6 -0
  264. package/dist-elements/types/components/shared/dialog.d.ts +8 -2
  265. package/dist-elements/types/components/shared/disclosure.d.ts +5 -3
  266. package/dist-elements/types/components/shared/download.d.ts +28 -2
  267. package/dist-elements/types/components/shared/empty-state-block.d.ts +1 -1
  268. package/dist-elements/types/components/shared/files.d.ts +67 -0
  269. package/dist-elements/types/components/shared/focus-trap.d.ts +2 -0
  270. package/dist-elements/types/components/shared/follow.d.ts +8 -0
  271. package/dist-elements/types/components/shared/heading.d.ts +4 -0
  272. package/dist-elements/types/components/shared/month-grid.d.ts +33 -0
  273. package/dist-elements/types/components/shared/other.d.ts +24 -0
  274. package/dist-elements/types/components/shared/overflow.d.ts +4 -3
  275. package/dist-elements/types/components/shared/place.d.ts +7 -2
  276. package/dist-elements/types/components/shared/search-text.d.ts +5 -0
  277. package/dist-elements/types/components/tables/activity-log/activity-log.d.ts +9 -2
  278. package/dist-elements/types/components/tables/card/card.d.ts +13 -2
  279. package/dist-elements/types/components/tables/data-table/actions.d.ts +1 -1
  280. package/dist-elements/types/components/tables/data-table/data-table.d.ts +15 -3
  281. package/dist-elements/types/components/tables/data-table/editing.d.ts +7 -2
  282. package/dist-elements/types/components/tables/data-table/filters.d.ts +2 -0
  283. package/dist-elements/types/components/tables/description-list/description-list.d.ts +4 -0
  284. package/dist-elements/types/components/tables/list/list.d.ts +11 -6
  285. package/dist-elements/types/components/tables/person/person.d.ts +35 -0
  286. package/dist-elements/types/components/tables/person-group/person-group.d.ts +42 -0
  287. package/dist-elements/types/core/format.d.ts +2 -2
  288. package/dist-elements/types/core/frame-state.d.ts +2 -0
  289. package/dist-elements/types/core/id.d.ts +2 -0
  290. package/dist-elements/types/icons/register.d.ts +1 -1
  291. package/dist-elements/types/icons/render.d.ts +1 -1
  292. package/dist-elements/types/types.d.ts +221 -19
  293. package/dist-elements/workers/layout-worker.js +3 -0
  294. package/dist-icons/functioneel-link.svg +1 -0
  295. package/dist-icons/functioneel-ondertiteling.svg +1 -0
  296. package/package.json +8 -1
  297. package/dist-elements/chunks/base-DuuwEY22.js +0 -224
  298. package/dist-elements/chunks/chart-styles-zJy-DGvZ.js +0 -44
  299. package/dist-elements/chunks/controls-IwMNNdZt.js +0 -1
  300. package/dist-elements/chunks/dialog-CuB90unp.js +0 -1
  301. package/dist-elements/chunks/dialog-close-CIwpGpo7.js +0 -1
  302. package/dist-elements/chunks/disclosure-DHZz0V4I.js +0 -22
  303. package/dist-elements/chunks/disclosure-DjLQzn9n.js +0 -1
  304. package/dist-elements/chunks/download-D1wbtARJ.js +0 -13
  305. package/dist-elements/chunks/focus-trap-qYvMiFZF.js +0 -1
  306. package/dist-elements/chunks/frame-resize-observer-BGZg6VbV.js +0 -1
  307. package/dist-elements/chunks/input-CTxDOlLs.js +0 -1
  308. package/dist-elements/chunks/input-fzGBdp-5.js +0 -8
  309. package/dist-elements/chunks/sentence-DCIShaRE.js +0 -3
  310. package/dist-elements/chunks/stagger-nGiD5JgJ.js +0 -133
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The squarified treemap layout (Bruls, Huizing and Van Wijk): the values fill the box in rows
3
+ * along its short side, each row as square as it can be. The first value lies top left. Pure:
4
+ * the same values in the same box give the same rectangles.
5
+ */
6
+ export interface TreemapRect {
7
+ x: number;
8
+ y: number;
9
+ width: number;
10
+ height: number;
11
+ }
12
+ /**
13
+ * One rectangle per value, in their order, together exactly the box. A value that is not
14
+ * positive has no area: its rectangle is empty, at the box's corner.
15
+ */
16
+ export declare function squarify(values: readonly number[], box: TreemapRect): TreemapRect[];
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Treemap: the parts of one whole on one moment, each an area in proportion to its value, the
3
+ * largest top left, with their sub-parts inside them. The parts take the tints of one variable;
4
+ * a sub-part shares its part's tint and is told apart by a line, never by a colour of its own.
5
+ * Parts under 1 % of the whole fold into one grey "Overig" that is not clickable. With two levels
6
+ * the part is the click target. Below 768 px the whole becomes one strip over a row per part
7
+ * (rule 9).
8
+ */
9
+ import { type TemplateResult } from 'lit';
10
+ import type { ChartOptions } from '../shared/controller.js';
11
+ import type { ChartSpec } from '../shared/types.js';
12
+ export { squarify } from './squarify.js';
13
+ export { fitLabel } from './treemap-labels.js';
14
+ export { treemapModel, treemapRows } from './treemap-parts.js';
15
+ type TreemapSpec = Extract<ChartSpec, {
16
+ kind: 'treemap';
17
+ }>;
18
+ export declare function renderTreemapChart(spec: TreemapSpec, options: ChartOptions): TemplateResult;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * What an area of a treemap says of itself: as much as fits, in a fixed order of fallbacks, and
3
+ * nothing where not even four letters of its name do. The full name and amount are always in the
4
+ * tooltip and the table.
5
+ */
6
+ export interface LabelLine {
7
+ text: string;
8
+ size: 14 | 12;
9
+ bold: boolean;
10
+ }
11
+ /** The width of a text in px at a size and weight. */
12
+ export type Measure = (text: string, size: number, bold: boolean) => number;
13
+ export interface LabelText {
14
+ name: string;
15
+ /** The amount, formatted. */
16
+ amount: string;
17
+ /** The share of the whole, formatted; a part shows it, a sub-part does not. */
18
+ share?: string;
19
+ }
20
+ /** From the area's edge to its text. */
21
+ export declare const LABEL_PAD = 8;
22
+ /** The height of a line of text, per size. */
23
+ export declare const LINE_HEIGHT: {
24
+ readonly 14: 18;
25
+ readonly 12: 16;
26
+ };
27
+ /**
28
+ * The label of an area of `width` by `height`: for a part (`share` given) its name in 14 px bold
29
+ * with amount and share under it, then the same in 12 px, then without the share, then the name
30
+ * alone; for a sub-part its name in 12 px and the amount in bold, then the name alone. Last, the
31
+ * name cut short with the amount if that fits. Empty where four letters do not fit.
32
+ */
33
+ export declare function fitLabel(label: LabelText, box: {
34
+ width: number;
35
+ height: number;
36
+ }, measure: Measure): LabelLine[];
@@ -0,0 +1,64 @@
1
+ /**
2
+ * What a treemap draws, from the host's parts: the parts that have an area, largest first, with
3
+ * the parts under 1 % of the whole folded into one grey "Overig" (at the top and inside a part),
4
+ * the total of what is drawn and what is missing from it. Also the table's rows, which keep
5
+ * every part apart.
6
+ */
7
+ import type { ChartSpec, TreemapPart } from '../shared/types.js';
8
+ type TreemapSpec = Extract<ChartSpec, {
9
+ kind: 'treemap';
10
+ }>;
11
+ /** A part under this share of the whole folds into "Overig", if another one does too. */
12
+ export declare const FOLD_SHARE = 0.01;
13
+ /** A part folded into an "Overig", for its tooltip. */
14
+ export interface FoldedPart {
15
+ label: string;
16
+ value: number;
17
+ }
18
+ /** One area of the drawing: a part without sub-parts, a sub-part, or an "Overig". */
19
+ export interface TreemapArea {
20
+ label: string;
21
+ value: number;
22
+ /** Grey and never labelled: the parts under 1 % together. */
23
+ other: boolean;
24
+ folded: FoldedPart[];
25
+ }
26
+ /** A part of the whole as drawn: one area, or its sub-parts' areas inside it. */
27
+ export interface TreemapGroup {
28
+ label: string;
29
+ /** What is drawn of it: its value, or the sum of its sub-parts that have one. */
30
+ value: number;
31
+ /** Its identity for a choice: its `id`, else its label. */
32
+ id: string;
33
+ href?: string;
34
+ other: boolean;
35
+ folded: FoldedPart[];
36
+ /** With sub-parts, their areas, largest first and their own "Overig" last; else empty. */
37
+ areas: TreemapArea[];
38
+ /** Sub-parts without data: its sum is without them. */
39
+ missing: string[];
40
+ /** Its place among the parts that take a tint, darkest first; -1 for "Overig". */
41
+ rank: number;
42
+ }
43
+ export interface TreemapModel {
44
+ groups: TreemapGroup[];
45
+ /** The sum of what is drawn. */
46
+ total: number;
47
+ /** The decimals of the most precise value the host sent. */
48
+ decimals: number;
49
+ /** What has no data, in the host's order: a part, or a sub-part by its own name. */
50
+ missing: string[];
51
+ /** Some parts fold into an "Overig". */
52
+ folded: boolean;
53
+ /** Some part has sub-parts. */
54
+ nested: boolean;
55
+ }
56
+ /** A part without any data: its value, or every one of its sub-parts. */
57
+ export declare function isMissing(part: TreemapPart): boolean;
58
+ export declare function treemapModel(spec: Pick<TreemapSpec, 'parts'>): TreemapModel;
59
+ /**
60
+ * The table's and the CSV's rows, header first: a row per sub-part, or per part without them,
61
+ * in the drawn order and those without an area after them. What the drawing folds stays apart.
62
+ */
63
+ export declare function treemapRows(spec: TreemapSpec): (string | number | null)[][];
64
+ export {};
@@ -14,6 +14,32 @@ export declare function disableableControls(root: ParentNode): HTMLElement[];
14
14
  export declare function namedControls(root: ParentNode): HTMLElement[];
15
15
  /** The named controls in an added or removed node: the node itself and those below it. */
16
16
  export declare function namedControlsIn(node: Node): HTMLElement[];
17
+ /** The value of a choice group's own answer, "Anders". */
18
+ export declare const OTHER_VALUE = "other";
19
+ /** After a group's `name`: the key of its "Anders" text in a post, a draft and `errors.fields`. */
20
+ export declare const OTHER_SUFFIX = "-other";
21
+ /** A choice group with "Anders" on, as its holders see it. */
22
+ export interface OtherHolder {
23
+ other: boolean;
24
+ otherText: string;
25
+ otherError?: string;
26
+ label?: string;
27
+ }
28
+ export declare function holdsOther(control: HTMLElement): control is HTMLElement & OtherHolder;
29
+ /** The field of a group's "Anders" in its root (`renderOtherField` marks it). */
30
+ export declare function otherField<T extends HTMLElement = HTMLElement & {
31
+ updateComplete: Promise<unknown>;
32
+ }>(root: ParentNode): T | null;
33
+ /** The text of "Anders" counts: it is chosen in `value`, the group's value. */
34
+ export declare function otherChosen(value: unknown): boolean;
35
+ /**
36
+ * The control a key of `errors.fields` (or a draft) belongs to: the one with that `name`, or for
37
+ * `<name>-other` the group with that `name` and "Anders" on (`other: true`).
38
+ */
39
+ export declare function controlForKey(controls: HTMLElement[], key: string): {
40
+ control: HTMLElement;
41
+ other: boolean;
42
+ } | null;
17
43
  export declare function readControl(control: HTMLElement): unknown;
18
44
  /** Returns `false` for a control that cannot take a value back. */
19
45
  export declare function writeControl(control: HTMLElement, value: unknown): boolean;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A text cut to one line with an ellipsis carries its whole words in `title`, for a pointer; one
3
+ * that fits carries none, so a plain label gets no tooltip that repeats it. Measured when the
4
+ * pointer arrives, not by an observer per element: as `@pointerenter=${titleWhenCut}` on the text.
5
+ */
6
+ export declare function titleWhenCut(event: Event): void;
@@ -1,9 +1,15 @@
1
+ export interface HoldOptions {
2
+ /** As `FocusTrap.activate`; `false` leaves it, for a window that moves it once its content has drawn. */
3
+ focus?: boolean | HTMLElement;
4
+ /** The element that scrolls behind the window, when the host names one; else the page. */
5
+ scroller?: HTMLElement | null;
6
+ }
1
7
  export declare class DialogHold {
2
8
  #private;
9
+ /** `onEscape` runs only for the window on top; a window with its own condition checks it there. */
3
10
  constructor(onEscape: () => void);
4
11
  get held(): boolean;
5
12
  isTopmost(): boolean;
6
- /** The focus stays where it is: the window moves it once its content has drawn. */
7
- hold(container: HTMLElement): void;
13
+ hold(container: HTMLElement, { focus, scroller }?: HoldOptions): void;
8
14
  release(): void;
9
15
  }
@@ -4,7 +4,7 @@
4
4
  * not `--dur-collapse`: whatever `tokens/base.css` lets move under reduced motion decides the wait.
5
5
  */
6
6
  import { type ReactiveController, type ReactiveControllerHost, type TemplateResult } from 'lit';
7
- export declare function nextDisclosureId(): string;
7
+ import { type HeadingLevel } from './heading.js';
8
8
  export declare class DisclosureSettle implements ReactiveController {
9
9
  #private;
10
10
  /** False while the body is growing; the box clips until then. */
@@ -17,17 +17,19 @@ export declare class DisclosureSettle implements ReactiveController {
17
17
  export interface DisclosureHeaderOptions {
18
18
  bodyId: string;
19
19
  open: boolean;
20
- /** The title text, drawn inside an `<h3>`. */
20
+ /** The title text, drawn inside the heading. */
21
21
  title: unknown;
22
22
  subtitle?: string;
23
23
  /** An icon file name. Decorative. */
24
24
  icon?: string;
25
25
  /** The chevron before the title instead of at the end of the row. */
26
26
  leading?: boolean;
27
+ /** The heading's level; `h3` when unset. */
28
+ level?: HeadingLevel;
27
29
  toggle: () => void;
28
30
  }
29
31
  /**
30
- * The heading holds the button, not the reverse: an `<h3>` inside a `<button>` is presentational
32
+ * The heading holds the button, not the reverse: a heading inside a `<button>` is presentational
31
33
  * and reaches no assistive technology. Inside the button only phrasing content.
32
34
  */
33
35
  export declare function disclosureHeader(options: DisclosureHeaderOptions): TemplateResult;
@@ -1,7 +1,11 @@
1
1
  /**
2
2
  * The downloads a tile offers: the numbers as CSV (semicolons, decimal comma and a byte order
3
- * mark, so a Dutch spreadsheet opens columns) and the chart's `<svg>` as PNG.
3
+ * mark, so a Dutch spreadsheet opens columns) and the image of a chart as PNG.
4
4
  * A missing value is an empty cell, never 0 (rule 15).
5
+ *
6
+ * The image is what the chart shows on screen without its controls, composed as one `<svg>`
7
+ * (`chartImage`) before it becomes a PNG. Every part is drawn where the screen has it, in plain
8
+ * SVG: HTML in a `<foreignObject>` does not reliably reach a canvas, in WebKit least of all.
5
9
  */
6
10
  export type CsvCell = string | number | null | undefined;
7
11
  export declare function toCsv(rows: CsvCell[][]): string;
@@ -10,5 +14,27 @@ export declare function downloadText(name: string, text: string, type: string):
10
14
  export declare function downloadCsv(filename: string, rows: CsvCell[][]): void;
11
15
  /** The surface a PNG is drawn on; an empty string leaves the PNG transparent. */
12
16
  export declare function surfaceColour(svg: Element): string;
13
- /** The chart's `<svg>` as a PNG, twice its size. The web font is not embedded: the system face. */
17
+ /** What an element that is no chart tells the image about itself. */
18
+ export interface ImageOptions {
19
+ /** Its controls, left out as a tooltip is: zoom buttons, an overview. */
20
+ skip?: string;
21
+ /** Buttons that are content, drawn with their own box: a node that is a card. */
22
+ buttons?: string;
23
+ }
24
+ /** What the tile around a chart says; the image draws it around the chart, as the tile does. */
25
+ export interface ImageFrame {
26
+ title?: string;
27
+ subtitle?: string;
28
+ footnote?: string;
29
+ }
30
+ /**
31
+ * The chart in `root` as one `<svg>` on the surface of the mode the reader looks in: the legend,
32
+ * axis titles, drawing, events and legend table where they stand on screen. With a `frame`, the
33
+ * tile around it as well: its padding and edge, the title and subtitle above, the footnote below.
34
+ */
35
+ export declare function chartImage(root: Element, frame?: ImageFrame, options?: ImageOptions): SVGSVGElement;
36
+ /**
37
+ * An image of `chartImage` as a PNG, in the page's web font. A drawing still on the page is made
38
+ * one first, alone.
39
+ */
14
40
  export declare function downloadPng(filename: string, svg: SVGSVGElement): Promise<void>;
@@ -4,7 +4,7 @@
4
4
  * arrives with its words is not announced.
5
5
  */
6
6
  import { nothing, type CSSResult, type TemplateResult } from 'lit';
7
- export type HeadingLevel = 2 | 3 | 4 | 5 | 6;
7
+ import { type HeadingLevel } from './heading.js';
8
8
  export declare const emptyStateBlockStyles: CSSResult;
9
9
  export interface EmptyStateBlockOptions {
10
10
  /** Not drawn when `compact`. */
@@ -0,0 +1,67 @@
1
+ /** One file, as the host keeps it: chosen, sent along with a question or given back in an answer. */
2
+ export interface UploadFile {
3
+ id: string;
4
+ name: string;
5
+ /** In bytes. Without it and without `detail`, only the name stands. */
6
+ size?: number;
7
+ state: 'busy' | 'done' | 'error';
8
+ /** 0–100 while busy; left out, the line is indeterminate. */
9
+ progress?: number;
10
+ /** Why it failed or was refused, in Dutch. */
11
+ message?: string;
12
+ /** The MIME type; it picks the icon. Without it the extension does. */
13
+ type?: string;
14
+ /** Stands in for the size: "blz. 4" beside a source. */
15
+ detail?: string;
16
+ /** A small picture the host made; an image without one gets the blank sheet. */
17
+ thumbnail?: string;
18
+ /** The chip is a link to it. */
19
+ href?: string;
20
+ /** With `href`: the link hands over the file, and the browser keeps the click. */
21
+ download?: boolean;
22
+ /** With `state: 'error'`: the upload can be tried again. */
23
+ retry?: boolean;
24
+ }
25
+ export declare function formatSize(bytes: number): string;
26
+ export declare function typesText(accept: string): string;
27
+ /** The types and the largest size, as the line under a drop zone: "PDF of JPG · hoogstens 10 MB". */
28
+ export declare function limitsText(accept: string, maxSize: number | undefined): string;
29
+ export declare function accepts(file: {
30
+ name: string;
31
+ type: string;
32
+ }, accept: string): boolean;
33
+ export declare function refusal(file: {
34
+ name: string;
35
+ type: string;
36
+ size: number;
37
+ }, accept: string, maxSize: number | undefined): string;
38
+ /** A file's state in words: the icon and the line beside the name are drawing only. */
39
+ export declare const STATE_TEXT: {
40
+ readonly busy: 'bezig';
41
+ readonly done: 'klaar';
42
+ /** An error of the host's: the upload failed. */
43
+ readonly error: 'mislukt';
44
+ /** An error of the element's own: it never let the file through. */
45
+ readonly refused: 'geweigerd';
46
+ };
47
+ /** What changed between two lists, for a status region. `refused`: the errors are the element's own. */
48
+ export declare function rowNews(before: UploadFile[], after: UploadFile[], refused?: boolean): string;
49
+ /**
50
+ * What a drop zone says while files are dragged: beside it, it points at itself; over it, what
51
+ * letting go does. `count` is 0 when the browser does not say.
52
+ */
53
+ export declare function dropText(count: number, over?: boolean): string;
54
+ /** Whether a drag carries files, and not only text or a link. */
55
+ export declare const carriesFiles: (event: DragEvent) => boolean;
56
+ /** The files on the clipboard, only when it carries no text: pasted text stays text. */
57
+ export declare function pastedFiles(event: ClipboardEvent): File[];
58
+ /**
59
+ * The focus of a list of files whose rows can leave: held before the rows change, and handed to
60
+ * the row now in its place (else the one before, else `fallback`) once its row has left.
61
+ * A row is an element with `data-id` that takes the focus through its own `focus()`.
62
+ */
63
+ export declare class RowFocus {
64
+ #private;
65
+ hold(rows: HTMLElement[]): void;
66
+ restore(rows: HTMLElement[], fallback: () => void): void;
67
+ }
@@ -9,6 +9,8 @@
9
9
  export { deepActiveElement, modalAround, ownsEscape } from '../../core/focus.js';
10
10
  /** Every element under `root` that Tab stops on, in composed-tree order. */
11
11
  export declare function tabbables(root: ParentNode): HTMLElement[];
12
+ /** The first stop after `element` in the document that is not inside `skip`. */
13
+ export declare function stopAfter(element: HTMLElement, skip: Node): HTMLElement | null;
12
14
  /** The element itself when Tab stops on it, else its first stop (through its shadow root). */
13
15
  export declare function focusTarget(element: HTMLElement): HTMLElement;
14
16
  export declare class FocusTrap {
@@ -0,0 +1,8 @@
1
+ /** Pixels from the end that still count as standing at it. */
2
+ export declare const AT_END = 8;
3
+ /**
4
+ * Whether a reader stands at the end after a scroll from `lastTop` to `top`, with `beyond` pixels
5
+ * still below. Content that grows below moves no reader: only scrolling up leaves the end, and
6
+ * only arriving at it returns there. A pixel of upward jitter is not a scroll of theirs.
7
+ */
8
+ export declare function atEndAfterScroll(wasAtEnd: boolean, top: number, lastTop: number, beyond: number): boolean;
@@ -0,0 +1,4 @@
1
+ /** A heading at the level the host asks for; `h3` when it asks for none. */
2
+ import { type TemplateResult } from 'lit';
3
+ export type HeadingLevel = 2 | 3 | 4 | 5 | 6;
4
+ export declare function renderHeading(level: HeadingLevel | undefined, className: string, content: unknown, id?: string): TemplateResult;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The one month grid of the date input and the date range: the weekday heads, the weeks as day
3
+ * cells, their states and their keys. Its owner draws it in its own root, with `monthGridCss`,
4
+ * and says per day what it means there.
5
+ */
6
+ import { type TemplateResult } from 'lit';
7
+ /** What one day is to the grid's owner. */
8
+ export interface GridDay {
9
+ /** Filled in the primary: the chosen day, or the start or end of a period. */
10
+ selected?: boolean;
11
+ /** Between the start and the end of a period. */
12
+ inRange?: boolean;
13
+ /** Outside what may be chosen: it keeps its tab stop, a press does nothing. */
14
+ blocked?: boolean;
15
+ /** What the day's name adds, after a comma. */
16
+ note?: string;
17
+ }
18
+ export interface MonthGrid {
19
+ /** The day that holds the grid's one tab stop, ISO; the grid shows its month. */
20
+ focus: string;
21
+ /** The day marked as today, ISO. */
22
+ today: string;
23
+ /** More than one day is selected at once: a period and the days in it. */
24
+ multiselectable?: boolean;
25
+ day: (iso: string) => GridDay;
26
+ /** A click, Enter or Space on a day that is not blocked. */
27
+ onPick: (iso: string) => void;
28
+ /** An arrow, Home, End or PageUp/PageDown: the day the tab stop goes to, in any month. */
29
+ onMove: (iso: string) => void;
30
+ }
31
+ export declare function renderMonthGrid(grid: MonthGrid): TemplateResult;
32
+ /** Focuses the day that holds the tab stop, once the owner has drawn it. */
33
+ export declare function focusGridDay(root: ParentNode): void;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The field of an own answer ("Anders, namelijk"): a `lintje-text-input` under the option that
3
+ * opens it, labelled by the option's word. The choice groups and the chat questions' "Iets
4
+ * anders…" draw it. It checks nothing: whoever draws it sets the host's message as `error`.
5
+ */
6
+ import { type TemplateResult } from 'lit';
7
+ import '../inputs/text-input/text-input.js';
8
+ /** The words for a chosen "Anders" with an empty field, so every form says the same. */
9
+ export declare const OTHER_MISSING_TEXT = "Vul in wat je bedoelt.";
10
+ export interface OtherFieldOptions {
11
+ /** The option's word: the field's hidden label. */
12
+ label: string;
13
+ text: string;
14
+ placeholder?: string;
15
+ error?: string;
16
+ disabled?: boolean;
17
+ /** The holder's class for the field's place. */
18
+ className?: string;
19
+ /** The text, committed when the reader leaves the field or presses Enter. */
20
+ onCommit: (text: string) => void;
21
+ }
22
+ export declare function renderOtherField(options: OtherFieldOptions): TemplateResult;
23
+ /** Puts the focus in the field once it has drawn itself. */
24
+ export declare function focusOtherField(root: ParentNode): Promise<void>;
@@ -50,9 +50,10 @@ export declare class OverflowController implements ReactiveController {
50
50
  /** A chosen row clicks its button, so the owner's own listener sees the click. */
51
51
  activate(value: string): void;
52
52
  /**
53
- * Reads the room and every natural width, and asks for a render when the count changes. The
54
- * attributes are written after that render (`hostUpdated`), never inside the observer: a
55
- * synchronous change there would resize the row during the observer's own delivery.
53
+ * Reads the room and every natural width, and writes the outcome straight onto the actions and
54
+ * the menu, after a render (`hostUpdated`) or a frame after the observer, never inside it: a
55
+ * synchronous change there would resize the row during the observer's own delivery. A render
56
+ * asked for here would draw the host twice.
56
57
  */
57
58
  measure(): void;
58
59
  }
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Where a floating box stands against its anchor, in viewport pixels: below or above at a fixed
3
3
  * gap, flipped when the room is too small and the other side has more, never past the viewport.
4
- * Shared by the popover and the tooltip.
4
+ * Shared by the popover, the tooltip, the toggletip, the multiselect and the date range.
5
5
  */
6
- export type Placement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'top-center' | 'left-center' | 'left-start';
6
+ export type Placement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'top-center' | 'bottom-center' | 'left-center' | 'left-start';
7
7
  /** `bottom` is set instead of `top` when the box stands above the anchor. */
8
8
  export interface Place {
9
9
  top: number | null;
@@ -33,3 +33,8 @@ export declare function viewport(): {
33
33
  width: number;
34
34
  height: number;
35
35
  };
36
+ /**
37
+ * Writes the place onto its box through the CSSOM, as a strict `style-src` allows. Measured after
38
+ * a render, it never goes through a reactive property: that would draw the element twice.
39
+ */
40
+ export declare function stand(box: HTMLElement, spot: Place): void;
@@ -0,0 +1,5 @@
1
+ /** The words of a search, shared by the app search, the combobox, the tag input and the multiselect. */
2
+ /** The label split around the first case-insensitive occurrence of the term; null when absent. */
3
+ export declare function splitMatch(label: string, query: string): [string, string, string] | null;
4
+ /** "1 resultaat", "3 resultaten". */
5
+ export declare function resultsText(count: number): string;
@@ -7,9 +7,14 @@
7
7
  import { type PropertyDeclarations, type TemplateResult } from 'lit';
8
8
  import { LintjeElement } from '../../../core/element.js';
9
9
  import '../../actions/button/button.js';
10
+ import '../person/person.js';
11
+ import type { Person } from '../../../types.js';
10
12
  export interface ActivityEntry {
11
- /** A name, or "Systeem". */
12
- who: string;
13
+ /**
14
+ * Someone, with the circle before the name and a link with `href`; or a text that is no person
15
+ * ("Systeem"), as the bold name alone.
16
+ */
17
+ who: string | Person;
13
18
  /** The rest of the sentence: "wijzigde de omschrijving". */
14
19
  what: string;
15
20
  /** The moment as the host wrote it, in Dutch. */
@@ -28,6 +33,8 @@ export declare class LintjeActivityLog extends LintjeElement {
28
33
  limit: number;
29
34
  private showMore;
30
35
  private renderHeading;
36
+ /** A person's circle before the name; a text keeps the circle's room empty where others have one. */
37
+ private who;
31
38
  private entry;
32
39
  protected render(): TemplateResult;
33
40
  }
@@ -17,6 +17,9 @@ import { type Tone } from '../../shared/tone.js';
17
17
  import '../../actions/button/button.js';
18
18
  import '../../actions/icon-button/icon-button.js';
19
19
  import '../../feedback/skeleton/skeleton.js';
20
+ import '../person/person.js';
21
+ import '../person-group/person-group.js';
22
+ import type { Person } from '../../../types.js';
20
23
  export type CardStatusTone = Tone;
21
24
  export interface CardStatus {
22
25
  /** The word that carries the status: "Je hebt toegang". */
@@ -50,10 +53,16 @@ export interface CardIconAction {
50
53
  /** The icon while pressed, so the glyph carries the state too: the filled beside the outlined. */
51
54
  iconPressed?: string;
52
55
  }
56
+ /** One of `person`, `people` or `value`; with more, `person` wins, then `people`. */
53
57
  export interface CardFact {
58
+ /** The term: "Behandelaar", "Meelezers"; also the name of a row of people. */
54
59
  label: string;
55
60
  /** Text the host formatted. Missing is a dash, never 0. */
56
- value: string | null;
61
+ value?: string | null;
62
+ /** One person at 24 px; `null` is "Niet toegewezen". On a card that is a link, never a link. */
63
+ person?: Person | null;
64
+ /** A row of people that opens the list of everyone: a control of its own, also on a link. */
65
+ people?: Person[];
57
66
  }
58
67
  export interface CardMedia {
59
68
  src: string;
@@ -108,9 +117,11 @@ export declare class LintjeCard extends LintjeElement {
108
117
  private onTitleClick;
109
118
  private onAction;
110
119
  private renderIconAction;
111
- private heading;
112
120
  private renderTitle;
113
121
  private renderStatus;
122
+ /** On a card that is a link, a person is no second link: the card opens. */
123
+ private shownPerson;
124
+ private renderFactValue;
114
125
  private renderFacts;
115
126
  private renderAction;
116
127
  private renderMedia;
@@ -2,7 +2,7 @@
2
2
  * Actions in `<lintje-data-table>`: a menu at the end of every row (`rowActions`) and a bar of
3
3
  * actions on the checked rows (`bulkActions`).
4
4
  *
5
- * A row choice is `lintje-row-action` `{ id, action }`, a bar choice `lintje-bulk-action`
5
+ * A row choice is `lintje-row-action` `{ id, label, action }`, a bar choice `lintje-bulk-action`
6
6
  * `{ ids, action }`. The table does not confirm: the host does before a destructive action.
7
7
  */
8
8
  import { type TemplateResult } from 'lit';
@@ -9,9 +9,9 @@
9
9
  *
10
10
  * Events: `lintje-sort-change` `{ key, direction } | null`, `lintje-row-click`
11
11
  * `{ id, label, href? }`, `lintje-row-open` `{ id, label, href? }`, `lintje-checked-change`
12
- * `string[]`, `lintje-cell-edit` `{ id, column, value }`, `lintje-row-action` `{ id, action }`,
13
- * `lintje-bulk-action` `{ ids, action }`, `lintje-filter-change` `{ column, value }`,
14
- * `lintje-columns-change` `{ order, hidden }`.
12
+ * `string[]`, `lintje-cell-edit` `{ id, column, value }`, `lintje-row-action`
13
+ * `{ id, label, action }`, `lintje-bulk-action` `{ ids, action }`, `lintje-filter-change`
14
+ * `{ column, value }`, `lintje-columns-change` `{ order, hidden }`.
15
15
  */
16
16
  import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
17
17
  import { type FrameSettings } from '../../../core/element.js';
@@ -106,6 +106,7 @@ export declare class LintjeDataTable extends LintjeContentTileElement {
106
106
  private rowKey;
107
107
  /** The row's key, the name in its first column and the `href` the host minted on the row. */
108
108
  private rowDetail;
109
+ private rowAction;
109
110
  private get initialSort();
110
111
  private get activeSort();
111
112
  /** Missing sorts lowest. */
@@ -186,6 +187,12 @@ export declare class LintjeDataTable extends LintjeContentTileElement {
186
187
  private totalsRow;
187
188
  /** A totals or subtotal row: its label in the name's place, the host's values under their columns. */
188
189
  private sumRow;
190
+ /**
191
+ * The check and detail cells before a group's or a total's name: one per column, with its
192
+ * class, so paper drops them as it drops the column. Only a group's heading has a check.
193
+ */
194
+ private leadCells;
195
+ private actionCell;
189
196
  private totalCell;
190
197
  private editableCell;
191
198
  private mobileTable;
@@ -221,6 +228,11 @@ export declare class LintjeDataTable extends LintjeContentTileElement {
221
228
  private mobileStatus;
222
229
  /** The header box covers all rows, not only this page. */
223
230
  private headerCheck;
231
+ /**
232
+ * A group's box: on, half or off by its rows that can be checked. It leaves other groups as they
233
+ * are; a group without such rows has none.
234
+ */
235
+ private groupCheck;
224
236
  private rowCheck;
225
237
  /** The checkbox markup of `inputs/shared/input.css`, without an element of its own. */
226
238
  private checkbox;
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { type TemplateResult } from 'lit';
10
10
  import '../../feedback/spinner/spinner.js';
11
- import type { CellValue, DataTableData, TableCellRef, TableColumnData } from '../../../types.js';
11
+ import type { CellValue, DataTableData, TableCellRef, TableColumnData, TableOption } from '../../../types.js';
12
12
  export interface CellPosition {
13
13
  row: number;
14
14
  column: number;
@@ -18,6 +18,11 @@ export type CellMove = 'down' | 'next' | 'previous';
18
18
  export declare function nextEditableCell(from: CellPosition, move: CellMove, rows: number, columns: number, editable: (row: number, column: number) => boolean): CellPosition | null;
19
19
  export declare function cellKey(ref: TableCellRef): string;
20
20
  export declare function editText(value: CellValue): string;
21
+ /**
22
+ * The options of a `select` editor. A `person` column without its own takes the people, in their
23
+ * order, after the empty word: its value `''` is sent as `null`.
24
+ */
25
+ export declare function editorOptions(column: TableColumnData): TableOption[];
21
26
  export type CellMode = {
22
27
  kind: 'rest';
23
28
  } | {
@@ -40,7 +45,7 @@ export interface EditGrid {
40
45
  export interface EditingHost {
41
46
  requestUpdate(): void;
42
47
  editCell(detail: TableCellRef & {
43
- value: string;
48
+ value: string | null;
44
49
  }): void;
45
50
  }
46
51
  export declare class CellEditing {
@@ -61,6 +61,8 @@ export declare function renderToolbar(options: {
61
61
  chooser?: unknown;
62
62
  onClearFilter: (column: string, button: HTMLElement) => void;
63
63
  onClearAll: (button: HTMLElement) => void;
64
+ /** Whether the sheet of filters is open, for the "Filters" button's `aria-expanded`. */
65
+ sheetOpen: boolean;
64
66
  onOpenSheet: () => void;
65
67
  }): TemplateResult;
66
68
  /**