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
@@ -2,13 +2,14 @@
2
2
  * `<lintje-date-range>` — the date range picker: a field and a popover with a calendar, presets
3
3
  * and "Wissen"/"Toepassen".
4
4
  *
5
- * Escape closes only the popover; it and "Toepassen" give the focus back to the field. Tab out of
6
- * the element closes the popover.
5
+ * The popover is fixed to the viewport, so a scrolling filter bar or tile around it does not cut it
6
+ * off. Escape closes only the popover; it and "Toepassen" give the focus back to the field. Tab out
7
+ * of the element closes the popover.
7
8
  *
8
9
  * Events: `lintje-change` `{ from, to }`, `lintje-values-change` `{ [name]: value }` (with a
9
10
  * `name`), `lintje-reset` (the reset link was pressed).
10
11
  */
11
- import { type PropertyDeclarations, type TemplateResult } from 'lit';
12
+ import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
12
13
  import { LintjeInputElement } from '../shared/input.js';
13
14
  import '../../actions/button/button.js';
14
15
  import '../../actions/icon-button/icon-button.js';
@@ -23,7 +24,7 @@ export interface DateRange {
23
24
  from: string | null;
24
25
  to: string | null;
25
26
  }
26
- /** dd-mm-yyyy */
27
+ /** dd-mm-yyyy, the local day of `date`. */
27
28
  export declare function formatDate(date: Date): string;
28
29
  export declare class LintjeDateRange extends LintjeInputElement {
29
30
  static styles: import("lit").CSSResult[];
@@ -47,20 +48,30 @@ export declare class LintjeDateRange extends LintjeInputElement {
47
48
  month?: Date;
48
49
  /** The day cell that holds the grid's one tab stop, yyyy-mm-dd; `''` until a key or a click. */
49
50
  protected focusDay: string;
51
+ /** Where the popover stands; not reactive, as it is measured after a render. */
52
+ private spot;
53
+ private reflowFrame;
50
54
  private readonly onOutsideClick;
51
55
  private readonly onEscape;
52
56
  /** Closes the popover; the focus it held goes back to the field instead of to the page. */
53
57
  private close;
54
58
  private onFocusOut;
59
+ private readonly onReflow;
55
60
  connectedCallback(): void;
56
61
  disconnectedCallback(): void;
62
+ /**
63
+ * Places the popover at the field. Written straight onto the panel, through the CSSOM as a
64
+ * strict `style-src` allows: a reactive property set after a render would draw it twice.
65
+ */
66
+ private measure;
67
+ protected updated(changed: PropertyValues<this>): void;
57
68
  private get day();
58
69
  private toggle;
59
70
  private select;
60
71
  private applyPreset;
61
72
  private pick;
62
- /** Moves the tab stop; the month turns when the day is not in view, or on PageUp/PageDown. */
63
- private onGridKeydown;
73
+ /** Moves the tab stop; the month follows it. */
74
+ private moveTo;
64
75
  private shiftMonth;
65
76
  private focusCell;
66
77
  private apply;
@@ -2,41 +2,19 @@
2
2
  * `<lintje-file-upload>` — choose or drop files, and see per file how far it is and how it ended.
3
3
  *
4
4
  * It never uploads: it checks files against `accept` and `max-size`, sends the ones that pass with
5
- * `lintje-files-add` and draws the rows from `files`. A file it refuses never reaches the host.
6
- * Its value is the ids of the rows that are done. While it takes files, a file dropped beside the
7
- * zone does nothing, instead of opening in the browser.
5
+ * `lintje-files-add` and draws `files` as attachments under the zone. A file it refuses never
6
+ * reaches the host, nor do the events of its chip. Its value is the ids of the files that are done.
7
+ * While it takes files, a file dropped beside the zone does nothing, instead of opening in the browser.
8
8
  *
9
- * Events: `lintje-files-add` `File[]`, `lintje-file-remove` `{ id }`, `lintje-file-cancel`
10
- * `{ id }`, `lintje-change` `string[]`, `lintje-values-change` `{ [name]: value }` (with a
11
- * `name`), `lintje-reset` (the reset link was pressed).
9
+ * Events: `lintje-files-add` `File[]`, `lintje-change` `string[]`, `lintje-values-change`
10
+ * `{ [name]: value }` (with a `name`), `lintje-reset` (the reset link was pressed); from its chips
11
+ * `lintje-file-remove` `{ id }`, `lintje-file-cancel` `{ id }` and `lintje-file-retry` `{ id }`.
12
12
  */
13
13
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
14
14
  import '../../actions/button/button.js';
15
- import '../../feedback/progress-bar/progress-bar.js';
15
+ import '../../content/attachment/attachment.js';
16
+ import { type UploadFile } from '../../shared/files.js';
16
17
  import { LintjeInputElement } from '../shared/input.js';
17
- /** One row, as the host keeps it. */
18
- export interface UploadFile {
19
- id: string;
20
- name: string;
21
- size: number;
22
- state: 'busy' | 'done' | 'error';
23
- /** 0–100 while busy; left out, the bar is indeterminate. */
24
- progress?: number;
25
- /** Why it was refused, in Dutch. */
26
- message?: string;
27
- }
28
- export declare function formatSize(bytes: number): string;
29
- export declare function typesText(accept: string): string;
30
- export declare function accepts(file: {
31
- name: string;
32
- type: string;
33
- }, accept: string): boolean;
34
- export declare function refusal(file: {
35
- name: string;
36
- type: string;
37
- size: number;
38
- }, accept: string, maxSize: number | undefined): string;
39
- export declare function rowNews(before: UploadFile[], after: UploadFile[]): string;
40
18
  export declare class LintjeFileUpload extends LintjeInputElement {
41
19
  #private;
42
20
  static styles: import("lit").CSSResult[];
@@ -70,7 +48,6 @@ export declare class LintjeFileUpload extends LintjeInputElement {
70
48
  protected updated(changed: PropertyValues<this>): void;
71
49
  private get rowElements();
72
50
  private get chooser();
73
- private focusedRow;
74
51
  add(chosen: File[]): void;
75
52
  /**
76
53
  * The label's click lands on the one thing in the zone that answers: the button. Its own
@@ -84,8 +61,8 @@ export declare class LintjeFileUpload extends LintjeInputElement {
84
61
  private onZoneEnter;
85
62
  private onZoneLeave;
86
63
  private onDrop;
87
- private removeRow;
88
- private get dropText();
64
+ /** A chip of its own refusal is the element's alone: its event stops here and the chip goes. */
65
+ private onChipEvent;
89
66
  private get metaText();
90
67
  private renderRow;
91
68
  protected render(): TemplateResult;
@@ -12,16 +12,8 @@ import { type PropertyDeclarations, type PropertyValues, type TemplateResult } f
12
12
  import { LintjeInputElement } from '../shared/input.js';
13
13
  import '../checkbox/checkbox.js';
14
14
  import type { FilterOption } from '../../../types.js';
15
- /** Where the popover stands, in viewport pixels; `bottom` is set when it flips above. */
16
- interface PopoverAnchor {
17
- top: number | null;
18
- bottom: number | null;
19
- left: number;
20
- width: number;
21
- /** The popover's `max-height`. */
22
- space: number;
23
- }
24
15
  export declare class LintjeMultiselect extends LintjeInputElement {
16
+ #private;
25
17
  static styles: import("lit").CSSResult[];
26
18
  static properties: PropertyDeclarations;
27
19
  placeholder: string;
@@ -32,7 +24,6 @@ export declare class LintjeMultiselect extends LintjeInputElement {
32
24
  options?: FilterOption[];
33
25
  selected?: string[];
34
26
  query: string;
35
- protected anchor: PopoverAnchor | null;
36
27
  /** What the status region says: the result count of a search, the count after a choice. */
37
28
  protected news: string;
38
29
  private reflowFrame;
@@ -61,4 +52,3 @@ declare global {
61
52
  'lintje-multiselect': LintjeMultiselect;
62
53
  }
63
54
  }
64
- export {};
@@ -1,6 +1,6 @@
1
1
  /**
2
- * `<lintje-number-input>` — a −/+ stepper around a centred value, or a unit on the right without
3
- * the stepper.
2
+ * `<lintje-number-input>` — a −/+ stepper around a centred value, or without the stepper a fixed
3
+ * text before the value (`prefix`) and a unit after it.
4
4
  *
5
5
  * It commits on `change`; a press on − or + commits at once and says the new value, since the
6
6
  * focus stays on the step. At `min` or `max` the step stays focusable but does nothing.
@@ -19,6 +19,8 @@ export declare class LintjeNumberInput extends LintjeFormInputElement {
19
19
  min?: number;
20
20
  max?: number;
21
21
  step: number;
22
+ /** The fixed text before the value, e.g. "€", which describes the field; only without the stepper. */
23
+ prefix: string | null;
22
24
  /** The unit on the right, e.g. "min", which describes the field; only without the stepper. */
23
25
  unit?: string;
24
26
  /** The −/+ buttons. Bind as `.stepper=${false}`, never `?stepper=`. */
@@ -1,20 +1,32 @@
1
1
  /**
2
2
  * `<lintje-radio-group>` — one option per line, for options that do not fit `lintje-segmented`.
3
3
  *
4
- * Events: `lintje-change` `string`, `lintje-values-change` `{ [name]: value }` (with a `name`),
5
- * `lintje-reset` (the reset link was pressed).
4
+ * With `other` the last option is "Anders", value `other`, with a text field under it while it is
5
+ * chosen; a click, a tap or Space puts the focus in it, an arrow key does not. The group checks
6
+ * nothing: the host sets `error`, and `other-error` for an empty field. Cards draw no "Anders".
7
+ *
8
+ * Events: `lintje-change` `string`, `lintje-other-change` `string` (the field's text, on leaving
9
+ * it or Enter), `lintje-values-change` `{ [name]: value, [name-other]: text | null }` (with a
10
+ * `name`; the second key with `other`), `lintje-reset` (the reset link was pressed).
6
11
  */
7
12
  import { type PropertyDeclarations, type TemplateResult } from 'lit';
8
- import { LintjeInputElement } from '../shared/input.js';
13
+ import { LintjeChoiceGroupElement } from '../shared/input.js';
14
+ import '../text-input/text-input.js';
9
15
  import type { FilterOption } from '../../../types.js';
10
- export declare class LintjeRadioGroup extends LintjeInputElement {
16
+ export declare class LintjeRadioGroup extends LintjeChoiceGroupElement {
17
+ #private;
11
18
  static styles: import("lit").CSSResult[];
12
19
  static properties: PropertyDeclarations;
13
20
  value: string;
21
+ /** A `description` stands under its label, tied to its radio. */
14
22
  options?: FilterOption[];
15
23
  /** `cards`: the options side by side as cards, each with its description. */
16
24
  variant: 'lines' | 'cards';
25
+ protected get otherChosen(): boolean;
26
+ protected get otherOption(): HTMLElement | null;
27
+ protected get drawsOther(): boolean;
17
28
  private choose;
29
+ private renderOption;
18
30
  protected render(): TemplateResult;
19
31
  }
20
32
  declare global {
@@ -31,7 +31,6 @@ export declare class LintjeRange extends LintjeInputElement {
31
31
  disconnectedCallback(): void;
32
32
  protected get missing(): boolean;
33
33
  protected willUpdate(changed: PropertyValues<this>): void;
34
- protected updated(): void;
35
34
  private get lastIndex();
36
35
  private get index();
37
36
  private get pair();
@@ -20,10 +20,8 @@ export declare class LintjeSegmented extends LintjeInputElement {
20
20
  bold: boolean;
21
21
  stacked: boolean;
22
22
  options?: FilterOption[];
23
- protected column: boolean;
24
23
  connectedCallback(): void;
25
24
  disconnectedCallback(): void;
26
- protected willUpdate(changed: PropertyValues<this>): void;
27
25
  protected updated(changed: PropertyValues<this>): void;
28
26
  private choose;
29
27
  protected render(): TemplateResult;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The fixed text beside a field's input — a currency sign, a domain, a unit — which the reader
3
+ * never types and which is never part of the value. The input names it in `aria-describedby`.
4
+ */
5
+ import { nothing, type TemplateResult } from 'lit';
6
+ export declare const PREFIX_ID = "lintje-input-prefix";
7
+ export declare const SUFFIX_ID = "lintje-input-suffix";
8
+ export interface AddonState {
9
+ readonly: boolean;
10
+ disabled: boolean;
11
+ }
12
+ export declare function renderAddon(side: 'prefix' | 'suffix', text: string | null | undefined, state: AddonState): TemplateResult | typeof nothing;
13
+ /** The addons' ids before what the field already points at, in reading order. */
14
+ export declare function addonDescribedBy(prefix: boolean, suffix: boolean, rest: string | typeof nothing): string | typeof nothing;
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
9
9
  import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
10
+ import type { FilterOption } from '../../../types.js';
10
11
  /** What an input may commit. A host serialises it into the URL. */
11
12
  export type InputValue = string | number | boolean | null;
12
13
  export declare abstract class LintjeInputElement extends LintjeGridItemElement {
@@ -53,13 +54,20 @@ export declare abstract class LintjeInputElement extends LintjeGridItemElement {
53
54
  protected get postedValue(): unknown;
54
55
  /** Puts the value in the native form around the control, in the shape `formEntries` gives. */
55
56
  protected syncForm(): void;
57
+ /** What the control posts beside its value, under keys of its own. */
58
+ protected get formExtras(): [string, string][];
56
59
  /** Empty for the form: it posts nothing, or one of its values is empty. Counts without `name`. */
57
60
  protected get missing(): boolean;
58
61
  /** Reports `required` to the native form, the message anchored where the focus goes. */
59
62
  protected syncValidity(): void;
60
63
  formResetCallback(): void;
61
- /** The control's own `disabled`, or a `<fieldset disabled>` around it. */
64
+ /**
65
+ * Off for the form: its own `disabled`, or a `<fieldset disabled>` around it. Kept apart from
66
+ * `disabled`, which stays the host's: written there, it would outlive the fieldset.
67
+ */
62
68
  formDisabledCallback(disabled: boolean): void;
69
+ /** Off, by the host's `disabled` or by the form; what every part reads. */
70
+ protected get isDisabled(): boolean;
63
71
  protected get labelId(): string;
64
72
  /** The id of the one native control, for the label's `for`. */
65
73
  protected get controlId(): string;
@@ -80,6 +88,8 @@ export declare abstract class LintjeInputElement extends LintjeGridItemElement {
80
88
  protected commit(value: InputValue): void;
81
89
  /** The same commit for a non-scalar value; `url` is the shape sent in `lintje-values-change`. */
82
90
  protected announce(value: unknown, url?: unknown): void;
91
+ /** The detail of `lintje-values-change` for a value in its URL shape. */
92
+ protected valuesChange(url: unknown): Record<string, unknown>;
83
93
  /**
84
94
  * The label line. With `forId` a real `<label for>`; without, a span whose click focuses the
85
95
  * first part. `value` is shown behind the label and hidden with it.
@@ -127,3 +137,50 @@ export declare abstract class LintjeFormInputElement extends LintjeInputElement
127
137
  protected submitOnEnter(event: KeyboardEvent, commit: () => void): void;
128
138
  formResetCallback(): void;
129
139
  }
140
+ /**
141
+ * `LintjeChoiceGroupElement` — the radio group and the checkbox group, which can end in an own
142
+ * answer: the option "Anders" (value `other`) with a text field under it while it is chosen. The
143
+ * text is a value beside the choice: posted and told under `<name>-other`, kept when "Anders" goes.
144
+ */
145
+ export declare abstract class LintjeChoiceGroupElement extends LintjeInputElement {
146
+ #private;
147
+ static properties: PropertyDeclarations;
148
+ options?: FilterOption[];
149
+ /**
150
+ * Ends the options in "Anders", value `other`, with a text field under it while it is chosen.
151
+ * Left out when an option of the host already has the value `other`.
152
+ */
153
+ other: boolean;
154
+ /** The word of the option "Anders"; also the field's label, hidden. */
155
+ otherLabel: string;
156
+ /**
157
+ * What the reader typed under "Anders". It changes when the field commits (leaving it, Enter)
158
+ * and stays when "Anders" goes. A property, not an attribute: a server-rendered page sets it as
159
+ * data.
160
+ */
161
+ otherText: string;
162
+ otherPlaceholder?: string;
163
+ /**
164
+ * The host's message under the field of "Anders", such as `OTHER_MISSING_TEXT`; `lintje-form`
165
+ * sets it from `errors.fields['<name>-other']`. The group never sets it itself.
166
+ */
167
+ otherError?: string;
168
+ /** "Anders" is the choice, or one of them. */
169
+ protected abstract get otherChosen(): boolean;
170
+ /** The control of the option "Anders", where the focus goes when its field goes. */
171
+ protected abstract get otherOption(): HTMLElement | null;
172
+ protected warnOnce(key: string, message: string): void;
173
+ /** The group draws "Anders": `other` is on and no option of the host holds its value. */
174
+ protected get drawsOther(): boolean;
175
+ /** "Anders" is drawn and chosen: its field stands, and its text counts. */
176
+ protected get otherOpen(): boolean;
177
+ protected get formExtras(): [string, string][];
178
+ protected valuesChange(url: unknown): Record<string, unknown>;
179
+ /** The field's commit: `lintje-other-change`, and `lintje-values-change` with a `name`. */
180
+ protected commitOther(text: string): void;
181
+ /** After "Anders" is chosen by a click, a tap or Space: the focus goes into its field. */
182
+ protected focusOther(): Promise<void>;
183
+ formResetCallback(): void;
184
+ protected willUpdate(changed: PropertyValues<this>): void;
185
+ protected updated(changed: PropertyValues<this>): void;
186
+ }
@@ -5,8 +5,12 @@
5
5
  * Enter), since every commit is a URL change and a tile reload, and never commits the same value
6
6
  * twice.
7
7
  *
8
+ * A fixed text may stand before or after the input (`prefix`, `suffix`) and one button at the end
9
+ * (`action`). A password ignores `action`: its end holds Tonen.
10
+ *
8
11
  * Events: `lintje-change` `string`, `lintje-values-change` `{ [name]: value }` (with a `name`),
9
- * `lintje-reset` (the reset link was pressed).
12
+ * `lintje-reset` (the reset link was pressed), `lintje-action` `string` (the button was pressed,
13
+ * after the typed text was committed).
10
14
  */
11
15
  import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
12
16
  import '../../actions/button/button.js';
@@ -31,6 +35,15 @@ export declare class LintjeTextInput extends LintjeFormInputElement {
31
35
  commitOn: CommitOn;
32
36
  /** Passed to the native input as is. */
33
37
  autocomplete: string;
38
+ /** The fixed text before the input, as written ("€", "www."); never part of `value`. */
39
+ prefix: string | null;
40
+ /** The fixed text after the input (".nl", "@rijksoverheid.nl"); never part of `value`. */
41
+ suffix?: string;
42
+ /**
43
+ * The word on the button at the end ("Zoek"). A press commits the typed text as Enter does,
44
+ * then sends `lintje-action`; it works when `readonly`. Ignored for a password.
45
+ */
46
+ action?: string;
34
47
  protected revealed: boolean;
35
48
  private readonly typing;
36
49
  protected get formValue(): string;
@@ -41,6 +54,7 @@ export declare class LintjeTextInput extends LintjeFormInputElement {
41
54
  private onKeydown;
42
55
  private clear;
43
56
  private reveal;
57
+ private act;
44
58
  protected renderFoot(): TemplateResult | typeof nothing;
45
59
  private get inputType();
46
60
  protected render(): TemplateResult;
@@ -3,8 +3,9 @@
3
3
  * there is a `maxlength`.
4
4
  *
5
5
  * It commits like `lintje-text-input`; Ctrl+Enter commits and submits a host's form. Typing past
6
- * the limit is allowed, so a paste lands whole: the field shows the error. The counter is
7
- * `part="counter"`, so a surface can stand it on its own line.
6
+ * the limit is allowed, so a paste lands whole: the field shows the error. The counter stands
7
+ * right on the line of the hint or the error, and drops under it, still right, where the two do
8
+ * not fit side by side. It is `part="counter"`, so a surface can stand it on its own line.
8
9
  *
9
10
  * Events: `lintje-change` `string`, `lintje-values-change` `{ [name]: value }` (with a `name`),
10
11
  * `lintje-reset` (the reset link was pressed).
@@ -0,0 +1,37 @@
1
+ /**
2
+ * `<lintje-accordion>` — expanders stacked as one list: a row per `<lintje-expander>`, lines
3
+ * between them, the chevron before each title.
4
+ *
5
+ * It holds nothing: each row keeps its own `open`, and a host that keeps an open row in the URL
6
+ * sets `open` on that row. More rows may stand open at once unless `exclusive`. Hide nothing here
7
+ * that every reader needs: what a row holds is easily missed.
8
+ *
9
+ * Events: none of its own. Each row sends `lintje-toggle`, also when `exclusive` or the link
10
+ * "Alles openen" opened or closed it.
11
+ */
12
+ import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
13
+ import { LintjeElement } from '../../../core/element.js';
14
+ import type { HeadingLevel } from '../../shared/heading.js';
15
+ import '../../actions/button/button.js';
16
+ export declare class LintjeAccordion extends LintjeElement {
17
+ #private;
18
+ static styles: import("lit").CSSResult;
19
+ static properties: PropertyDeclarations;
20
+ /** Opening a row closes the others; content then moves away under the reader. */
21
+ exclusive: boolean;
22
+ /** A link above the rows, "Alles openen" or "Alles sluiten". Not with `exclusive`. */
23
+ toggleAll: boolean;
24
+ /** The rows' heading level, 2 to 6; each row's own (`h3`) when unset. */
25
+ level?: HeadingLevel;
26
+ protected allOpen: boolean;
27
+ private get rows();
28
+ connectedCallback(): void;
29
+ disconnectedCallback(): void;
30
+ protected updated(changed: PropertyValues<this>): void;
31
+ protected render(): TemplateResult;
32
+ }
33
+ declare global {
34
+ interface HTMLElementTagNameMap {
35
+ 'lintje-accordion': LintjeAccordion;
36
+ }
37
+ }
@@ -5,10 +5,12 @@
5
5
  * slotted in `actions` stands beside the title, outside its button: a few icon buttons about the
6
6
  * content.
7
7
  *
8
- * Events: `lintje-toggle` `boolean` (open, after the reader pressed the title).
8
+ * Events: `lintje-toggle` `boolean` (open, after the reader pressed the title, or after the
9
+ * `lintje-accordion` it stands in opened or closed it for the reader).
9
10
  */
10
11
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
11
12
  import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
13
+ import type { HeadingLevel } from '../../shared/heading.js';
12
14
  export declare class LintjeExpander extends LintjeGridItemElement {
13
15
  #private;
14
16
  static styles: import("lit").CSSResult[];
@@ -27,6 +29,8 @@ export declare class LintjeExpander extends LintjeGridItemElement {
27
29
  * of text beside their speaker; a narrow expander stacks them again.
28
30
  */
29
31
  columns: boolean;
32
+ /** The title's heading level, 2 to 6; `h3` when unset. */
33
+ level?: HeadingLevel;
30
34
  protected updated(changed: PropertyValues<this>): void;
31
35
  protected render(): TemplateResult;
32
36
  }
@@ -42,6 +42,8 @@ export declare class LintjeSplitPane extends LintjeElement {
42
42
  private readonly onPointerUp;
43
43
  /** The click after the lifting one places the split where it lands. */
44
44
  private readonly onPlace;
45
+ /** A placing press that is cancelled or released outside brings no click: the next one counts. */
46
+ private readonly onPlacingEnd;
45
47
  private readonly onPlacedClick;
46
48
  /** A press outside the element puts the split back. */
47
49
  private readonly onOutside;
@@ -44,10 +44,9 @@ export declare class LintjeTabs extends LintjeElement {
44
44
  * with an icon and a hint; on a phone the icon stands above the label and the hint goes.
45
45
  */
46
46
  variant: TabsVariant;
47
- protected edges: {
48
- start: boolean;
49
- end: boolean;
50
- };
47
+ /** Only the press itself counts: one cancelled or released elsewhere leaves no mark. */
48
+ private readonly onPanelPress;
49
+ private readonly onPressEnd;
51
50
  private onPanelFocus;
52
51
  get selectedIndex(): number;
53
52
  /** Every tab a link: the row is navigation between pages. */
@@ -8,8 +8,9 @@
8
8
  */
9
9
  import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
10
10
  import { LintjeElement } from '../../../core/element.js';
11
- import { type Place, type Placement } from '../../shared/place.js';
11
+ import { type Placement } from '../../shared/place.js';
12
12
  export declare class LintjePopover extends LintjeElement {
13
+ #private;
13
14
  static styles: import("lit").CSSResult;
14
15
  static properties: PropertyDeclarations;
15
16
  /** The owner's; the popover never opens or closes itself. */
@@ -21,9 +22,15 @@ export declare class LintjePopover extends LintjeElement {
21
22
  matchWidth: boolean;
22
23
  /** What the panel hangs under; default the previous sibling. */
23
24
  anchor?: Element | null;
24
- protected spot: Place | null;
25
+ /**
26
+ * The control that opens the panel, where it is not the anchor: a press on it, or the focus it
27
+ * takes, is not outside, so the owner's own toggle closes the panel instead of opening it again.
28
+ */
29
+ opener?: Element | null;
25
30
  private reflowFrame;
26
31
  private get anchorElement();
32
+ /** Whether an event passed through the panel, its anchor or its opener. */
33
+ private fromOwn;
27
34
  private readonly onOutsidePress;
28
35
  /**
29
36
  * The focus landing outside the panel and its anchor, also from an anchor whose panel never took
@@ -44,8 +51,6 @@ export declare class LintjePopover extends LintjeElement {
44
51
  disconnectedCallback(): void;
45
52
  private anchorWidth;
46
53
  private measure;
47
- /** Measures before the first paint, so nothing flashes in the corner. */
48
- protected willUpdate(changed: PropertyValues<this>): void;
49
54
  protected updated(changed: PropertyValues<this>): void;
50
55
  protected render(): TemplateResult | typeof nothing;
51
56
  }
@@ -8,16 +8,15 @@
8
8
  */
9
9
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
10
10
  import { LintjeElement } from '../../../core/element.js';
11
- import { type Place } from '../../shared/place.js';
12
11
  export type ToggletipPlacement = 'bottom-start' | 'bottom-end';
13
12
  export declare class LintjeToggletip extends LintjeElement {
13
+ #private;
14
14
  static styles: import("lit").CSSResult[];
15
15
  static properties: PropertyDeclarations;
16
16
  /** The trigger's accessible name and tooltip. */
17
17
  label: string;
18
18
  placement: ToggletipPlacement;
19
19
  open: boolean;
20
- protected spot: Place | null;
21
20
  private readonly popoverId;
22
21
  private reflowFrame;
23
22
  private get trigger();
@@ -30,10 +29,9 @@ export declare class LintjeToggletip extends LintjeElement {
30
29
  constructor();
31
30
  connectedCallback(): void;
32
31
  disconnectedCallback(): void;
32
+ private get panel();
33
33
  private measure;
34
- protected willUpdate(changed: PropertyValues<this>): void;
35
34
  protected updated(changed: PropertyValues<this>): void;
36
- private spotStyle;
37
35
  protected render(): TemplateResult;
38
36
  }
39
37
  declare global {
@@ -7,13 +7,12 @@
7
7
  */
8
8
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
9
9
  import { LintjeElement } from '../../../core/element.js';
10
- import { type Place } from '../../shared/place.js';
11
10
  export declare const TOOLTIP_DELAY = 300;
12
11
  /** How long the bubble waits after the pointer leaves: time to cross the gap onto it. */
13
12
  export declare const TOOLTIP_LINGER = 150;
14
13
  export declare class LintjeTooltip extends LintjeElement {
15
14
  #private;
16
- static styles: import("lit").CSSResult;
15
+ static styles: import("lit").CSSResult[];
17
16
  static properties: PropertyDeclarations;
18
17
  text: string;
19
18
  /** The text is already the element's accessible name: it is not given as its description too. */
@@ -21,7 +20,6 @@ export declare class LintjeTooltip extends LintjeElement {
21
20
  /** Above the element, or `left` of it, level with it: for a column of buttons along an edge. */
22
21
  placement: 'top' | 'left';
23
22
  open: boolean;
24
- protected spot: Place | null;
25
23
  private timer;
26
24
  private reflowFrame;
27
25
  private get target();
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The one drawing of a person's circle: a photo, the initials or an icon, and dashed where nobody
3
+ * stands. A root that draws it calls `renderAvatar()` and adopts `avatarStyles` and `iconStyles`.
4
+ * The circle is `aria-hidden`: the name beside it is the text.
5
+ */
6
+ import { type CSSResult, type TemplateResult } from 'lit';
7
+ import type { SpeakerColour } from '../content/shared/playback.js';
8
+ import type { Person } from '../../types.js';
9
+ export type AvatarSize = 'small' | 'medium' | 'large';
10
+ export declare const avatarStyles: CSSResult;
11
+ export interface AvatarOptions {
12
+ /** 24, 32 or 40 px; default `medium`. */
13
+ size?: AvatarSize;
14
+ /** A speaker's colour, only where the people are the variable; `other` is the neutral circle. */
15
+ color?: SpeakerColour;
16
+ /** The circle stands on the menu and takes its colours. */
17
+ onNav?: boolean;
18
+ className?: string;
19
+ }
20
+ /** `null` is the empty place: a dashed circle with nothing in it. */
21
+ export declare function renderAvatar(person: Person | null, options?: AvatarOptions): TemplateResult;
@@ -1,6 +1,7 @@
1
1
  /**
2
- * Vertical bars with data labels and an optional trend line. When one label doesn't fit,
3
- * all data labels drop rather than leaving single bars unlabeled.
2
+ * Vertical bars with data labels, an optional trend line and a forecast. When one label doesn't
3
+ * fit, all data labels drop rather than leaving single bars unlabeled. A forecast bar is open,
4
+ * never the full colour of a measured one.
4
5
  */
5
6
  import { type TemplateResult } from 'lit';
6
7
  import { type ChartOptions } from '../shared/controller.js';
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Dumbbell chart: one measure per row at two moments, the earlier a grey ring and the later a
3
+ * dot in the variable's colour, joined by a neutral line; the signed difference stands in a
4
+ * column of its own. A dumbbell carries a position, not a length, so the host may shorten the
5
+ * axis; a value outside it stands on the edge with an off-axis mark. Below 768 px the name
6
+ * stands on a line of its own above its row (rule 9).
7
+ */
8
+ import { type TemplateResult } from 'lit';
9
+ import type { ChartOptions } from '../shared/controller.js';
10
+ import type { ChartSpec, DumbbellRow } from '../shared/types.js';
11
+ type DumbbellSpec = Extract<ChartSpec, {
12
+ kind: 'dumbbell';
13
+ }>;
14
+ /** The legend keys of the two moments: never the host's labels, which may name anything. */
15
+ export declare const FROM_KEY = "moment:from";
16
+ export declare const TO_KEY = "moment:to";
17
+ /** The chart's height: a row each, the head above and the scale under them. */
18
+ export declare function dumbbellHeight(count: number, mobile?: boolean): number;
19
+ /** As many decimals as the most precise value of the rows. */
20
+ export declare function dumbbellDecimals(rows: DumbbellRow[]): number;
21
+ /** `to` minus `from`, rounded to `decimals`, from the real values; `null` when an end is missing. */
22
+ export declare function dumbbellDifference(row: Pick<DumbbellRow, 'from' | 'to'>, decimals: number): number | null;
23
+ /**
24
+ * The axis: the host's `min` and `max`, each without it the default, which runs from 0 to a
25
+ * round value above the data and the norm. Ticks are the round steps inside it.
26
+ */
27
+ export declare function dumbbellAxis(spec: Pick<DumbbellSpec, 'rows' | 'min' | 'max' | 'threshold'>): {
28
+ min: number;
29
+ max: number;
30
+ ticks: number[];
31
+ };
32
+ export declare function renderDumbbellChart(spec: DumbbellSpec, options: ChartOptions): TemplateResult;
33
+ export {};